1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{31:(N,I,T)=>{"use strict";T.r(I),T.d(I,{PORTALS:()=>P,flattenMenuItems:()=>R,resolveActivePortal:()=>D,resolveAlternativeLanguages:()=>$,resolveCurrentLanguage:()=>L,resolveLogoutUrls:()=>F,shouldShowUserDropdown:()=>M});let P=["mybrunel","mytaylorhopkinson"],D=(N,I=P)=>I.find(I=>N.startsWith(`/${I}`)),M=(N,I,T,D=P)=>!N.includes("/login")&&D.some(N=>I.startsWith(`/${N}`))&&!!T,R=N=>{let I=[];return N.forEach(N=>{N.children?.results&&N.children.results.forEach(N=>{I.push(N)})}),I},L=(N,I)=>N?.find(({name:N})=>N===I)??null,$=(N,I)=>N?.filter(({name:N})=>I.split("-")[0]!==N.split("-")[0])??[],F=(N,I,T)=>{let P=`/${N}/${I??"mybrunel"}/login`,D=`${T}/${N}/${I??"mybrunel"}/login`;return{callbackUrl:P,azureLogoutUrl:`https://login.microsoftonline.com/{tenant}/oauth2/v2.0/logout?post_logout_redirect_uri=${encodeURIComponent(D)}`}}},86:(N,I,T)=>{"use strict";var P=T(29563);Object.defineProperty(I,"__esModule",{value:!0}),I.default=L;var D=P(T(51062)),M=P(T(91362)),R=P(T(62353));async function L(N){let{options:I,query:T,body:P}=N,{url:L,callbacks:$,logger:F,provider:B}=I;if(!B.type)return{status:500,text:`Error: Type not specified for ${B.name}`};if("oauth"===B.type)try{return await (0,D.default)({options:I,query:T})}catch(N){return F.error("SIGNIN_OAUTH_ERROR",{error:N,providerId:B.id}),{redirect:`${L}/error?error=OAuthSignin`}}if("email"===B.type){var U;let N=null==P?void 0:P.email;if(!N)return{redirect:`${L}/error?error=EmailSignin`};let T=null!=(U=B.normalizeIdentifier)?U:N=>{var I;let T=N.normalize("NFKC").trim();if(1!==(null!=(I=T.match(/@/g))?I:[]).length||T.includes('"'))throw Error("Invalid email address format.");let[P,D]=T.toLowerCase().split("@");if(!P||!D||!(D=D.split(",")[0]).includes("."))throw Error("Invalid email address format.");return`${P}@${D}`};try{N=T(null==P?void 0:P.email)}catch(N){return F.error("SIGNIN_EMAIL_ERROR",{error:N,providerId:B.id}),{redirect:`${L}/error?error=EmailSignin`}}let D=await (0,R.default)({email:N,adapter:I.adapter}),H={providerAccountId:N,userId:N,type:"email",provider:B.id};try{let N=await $.signIn({user:D,account:H,email:{verificationRequest:!0}});if(!N)return{redirect:`${L}/error?error=AccessDenied`};if("string"==typeof N)return{redirect:N}}catch(N){return{redirect:`${L}/error?${new URLSearchParams({error:N})}`}}try{return{redirect:await (0,M.default)(N,I)}}catch(N){return F.error("SIGNIN_EMAIL_ERROR",{error:N,providerId:B.id}),{redirect:`${L}/error?error=EmailSignin`}}}return{redirect:`${L}/signin`}}},92:(N,I,T)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return T(51272)}])},310:N=>{"use strict";N.exports={stringReplaceAll:(N,I,T)=>{let P=N.indexOf(I);if(-1===P)return N;let D=I.length,M=0,R="";do R+=N.substr(M,P-M)+I+T,M=P+D,P=N.indexOf(I,M);while(-1!==P);return R+N.substr(M)},stringEncaseCRLFWithFirstIndex:(N,I,T,P)=>{let D=0,M="";do{let R="\r"===N[P-1];M+=N.substr(D,(R?P-1:P)-D)+I+(R?"\r\n":"\n")+T,D=P+1,P=N.indexOf("\n",D)}while(-1!==P);return M+N.substr(D)}}},320:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),Object.defineProperty(I,"workAsyncStorageInstance",{enumerable:!0,get:function(){return P}});let P=(0,T(55786).createAsyncLocalStorage)()},440:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),function(N,I){for(var T in I)Object.defineProperty(N,T,{enumerable:!0,get:I[T]})}(I,{default:function(){return ee},useLinkStatus:function(){return X}});let P=T(88365),D=T(37876),M=P._(T(14232)),R=T(6662),L=T(7652),$=T(34989),F=T(347),B=T(87876),U=T(32925),H=T(53947),z=T(94400),W=T(55561),q=T(85022),G=new Set;function K(N,I,T,P){if((0,L.isLocalURL)(I)){if(!P.bypassPrefetchedCheck){let D=I+"%"+T+"%"+(void 0!==P.locale?P.locale:"locale"in N?
1N.locale:void 0);if(G.has(D))return;G.add(D)}N.prefetch(I,T,P).catch(N=>{})}}function V(N){let I=N.currentTarget.getAttribute("target");return I&&"_self"!==I||N.metaKey||N.ctrlKey||N.shiftKey||N.altKey||N.nativeEvent&&2===N.nativeEvent.which}function Y(N,I,T,P,D,M,R,$,F){let{nodeName:B}=N.currentTarget;if(!("A"===B.toUpperCase()&&V(N)||N.currentTarget.hasAttribute("download"))){if(!(0,L.isLocalURL)(T)){D&&(N.preventDefault(),location.replace(T));return}N.preventDefault(),(()=>{if(F){let N=!1;if(F({preventDefault:()=>{N=!0}}),N)return}let N=R??!0;"beforePopState"in I?I[D?"replace":"push"](T,P,{shallow:M,locale:$,scroll:N}):I[D?"replace":"push"](P||T,{scroll:N})})()}}function J(N){return"string"==typeof N?N:(0,$.formatUrl)(N)}let Q=M.default.forwardRef(function(N,I){let T,P,{href:L,as:$,children:G,prefetch:V=null,passHref:Q,replace:Z,shallow:X,scroll:ee,locale:et,onClick:er,onNavigate:en,onMouseEnter:ea,onTouchStart:ei,legacyBehavior:eo=!1,transitionTypes:es,...el}=N;T=G,eo&&("string"==typeof T||"number"==typeof T)&&(T=(0,D.jsx)("a",{children:T}));let ec=M.default.useContext(U.RouterContext),eu=!1!==V,{href:ed,as:ef}=M.default.useMemo(()=>{if(!ec){let N=J(L);return{href:N,as:$?J($):N}}let[N,I]=(0,R.resolveHref)(ec,L,!0);return{href:N,as:$?(0,R.resolveHref)(ec,$):I||N}},[ec,L,$]),eh=M.default.useRef(ed),ep=M.default.useRef(ef);eo&&(P=M.default.Children.only(T));let em=eo?P&&"object"==typeof P&&P.ref:I,[eg,ey,eb]=(0,H.useIntersection)({rootMargin:"200px"}),ev=M.default.useCallback(N=>{(ep.current!==ef||eh.current!==ed)&&(eb(),ep.current=ef,eh.current=ed),eg(N)},[ef,ed,eb,eg]),ew=(0,q.useMergedRef)(ev,em);M.default.useEffect(()=>{!ec||ey&&eu&&K(ec,ed,ef,{bypassPrefetchedCheck:!1,locale:et})},[ef,ed,ey,et,eu,ec?.locale,ec]);let ex={ref:ew,onClick(N){eo||"function"!=typeof er||er(N),eo&&P.props&&"function"==typeof P.props.onClick&&P.props.onClick(N),!ec||N.defaultPrevented||Y(N,ec,ed,ef,Z,X,ee,et,en)},onMouseEnter(N){eo||"function"!=typeof ea||ea(N),eo&&P.props&&"function"==typeof P.props.onMouseEnter&&P.props.onMouseEnter(N),ec&&K(ec,ed,ef,{locale:et,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart:function(N){eo||"function"!=typeof ei||ei(N),eo&&P.props&&"function"==typeof P.props.onTouchStart&&P.props.onTouchStart(N),ec&&K(ec,ed,ef,{locale:et,priority:!0,bypassPrefetchedCheck:!0})}};if((0,F.isAbsoluteUrl)(ef))ex.href=ef;else if(!eo||Q||"a"===P.type&&!("href"in P.props)){let N=void 0!==et?et:ec?.locale;ex.href=ec?.isLocaleDomain&&(0,z.getDomainLocale)(ef,N,ec?.locales,ec?.domainLocales)||(0,W.addBasePath)((0,B.addLocale)(ef,N,ec?.defaultLocale))}return eo?M.default.cloneElement(P,ex):(0,D.jsx)("a",{...el,...ex,children:T})}),Z=(0,M.createContext)({pending:!1}),X=()=>(0,M.useContext)(Z),ee=Q;("function"==typeof I.default||"object"==typeof I.default&&null!==I.default)&&void 0===I.default.__esModule&&(Object.defineProperty(I.default,"__esModule",{value:!0}),Object.assign(I.default,I),N.exports=I.default)},920:(N,I,T)=>{"use strict";T.d(I,{Uk:()=>B,ZK:()=>U,qL:()=>M});let P=" - Brunel",D="Brunel",M=N=>{let I=("string"==typeof N?N:String(N??"")).trim();return I.length>0?I:void 0},R=(N,I=P)=>{let T=N.trim();if(!I)return T;let D=T.toLowerCase(),M=I.toLowerCase();return D.endsWith(M)?T.slice(0,T.length-I.length).trim():T},L=N=>{let I=M(N);if(!I)return!1;let T=I.toLowerCase();return"brunel"!==T&&"-"!==T},$=(N,I=P)=>{let T=M(N);if(!T)return!1;let D=T.toLowerCase();return"brunel"!==D&&"- brunel"!==D&&L(R(T,I))},F=(N,I=P)=>{if(!$(N,I))return;let T=N.trim();return I&&T.toLowerCase().endsWith(I.toLowerCase())?T:I?`${T}${I}`:T},B=({metaTitle:N,metaOGTitle:I,displayName:T,routeName:R,suffix:L=P,fallback:$=D})=>{for(let P of[N,I,T,R]){let N=M(P);if(!N)continue;let I=F(N,L);if(I)return I}return $},U=({heroTitle:N,metaTitle:I,metaOGTitle:T,suffix:R=P})=>{let L=F(N,R)??`${M(N)??D}${R}`;return B({metaTitle:I,metaOGTitle:T,suffix:R,fallback:L})}},1035:(N,I,T)=>{"use strict";var P=T(29563);Object.defineProperty(I,"__esModule",{value:!0}),I.AuthHandler=G;var D=z(T(5861)),M=T(57735),R=z(T(1240)),L=P(T(88984)),$=T(81343),F=T(58291),B=T(3883),U=T(53441);function H(N){if("function"!=typeof WeakMap)return null;var I=new WeakMap,T=new WeakMap;return(H=function(N){return N?T:I})(N)}function z(N,I){if(!I&&N&&N.__esModule)return N;if(null===N||"object"!=typeof N&&"function"!=typeof N)return{default:N};var T=H(I);if(T&&T.has(N))return T.get(N);var P={__proto__:null},D=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in N)if("default"!==M&&({}).hasOwnProperty.call(N,M)){var R=D?Object.getOwnPropertyDescriptor(N,M):null;R&&(R.get||R.set)?Object.defineProperty(P,M,R):P[M]=N[M]}return P.default=N,T&&T.set(N,P),P}async function W(N){try{return await N.json()}catch(N){}}async function q(N){var I,T,P,D;if(N instanceof Request){let I=new URL(N.url),R=I.pathname.split("/").slice(3),L=Object.fromEntries(N.headers),$=Object.fromEntries(I.searchParams);return $.nextauth=R,{action:R[0],method:N.method,headers:L,body:await W(N),cookies:(0,U.parse)(null!=(T=N.headers.get("cookie"))?T:""),providerId:R[1],error:null!=(P=I.searchParams.get("error"))?P:R[1],origin:(0,M.detectOrigin)(null!=(D=L["x-forwarded-host"])?D:L.host,L["x-forwarded-proto"]),query:$}}let{headers:R}=N,L=null!=(I=null==R?void 0:R["x-forwarded-host"])?I:null==R?void 0:R.host;return N.origin=(0,M.detectOrigin)(L,null==R?void 0:R["x-forwarded-proto"]),N}async function G(N){var I,T,P,M,U,H,z;let{options:W,req:G}=N,K=await q(G);(0,D.setLogger)(W.logger,W.debug);let V=(0,F.assertConfig)({options:W,req:K});if(Array.isArray(V))V.forEach(D.default.warn);else if(V instanceof Error){if(D.default.error(V.code,V),!["signin","signout","error","verify-request"].includes(K.action)||"GET"!==K.method)return{status:500,headers:[{key:"Content-Type",value:"application/json"}],body:{message:"There is a problem with the server configuration. Check the server logs for more information."}};let{pages:N,theme:I}=W,T=(null==N?void 0:N.error)&&(null==(U=K.query)||null==(U=U.callbackUrl)?void 0:U.startsWith(N.error));return!(null!=N&&N.error)||T?(T&&D.default.error("AUTH_ON_ERROR_PAGE_ERROR",Error(`The error page ${null==N?void 0:N.error} should not require authentication`)),(0,L.default)({theme:I}).error({error:"configuration"})):{redirect:`${N.error}?error=Configuration`}}let{action:Y,providerId:J,error:Q,method:Z="GET"}=K,{options:X,cookies:ee}=await (0,$.init)({authOptions:W,action:Y,providerId:J,origin:K.origin,callbackUrl:null!=(I=null==(T=K.body)?void 0:T.callbackUrl)?I:null==(P=K.query)?void 0:P.callbackUrl,csrfToken:null==(M=K.body)?void 0:M.csrfToken,cookies:K.cookies,isPost:"POST"===Z}),et=new B.SessionStore(X.cookies.sessionToken,K,X.logger);
1if("GET"===Z){let N=(0,L.default)({...X,query:K.query,cookies:ee}),{pages:I}=X;switch(Y){case"providers":return await R.providers(X.providers);case"session":{let N=await R.session({options:X,sessionStore:et});return N.cookies&&ee.push(...N.cookies),{...N,cookies:ee}}case"csrf":return{headers:[{key:"Content-Type",value:"application/json"},{key:"Cache-Control",value:"private, no-cache, no-store"},{key:"Pragma",value:"no-cache"},{key:"Expires",value:"0"}],body:{csrfToken:X.csrfToken},cookies:ee};case"signin":if(I.signIn){let N=`${I.signIn}${I.signIn.includes("?")?"&":"?"}callbackUrl=${encodeURIComponent(X.callbackUrl)}`;return Q&&(N=`${N}&error=${encodeURIComponent(Q)}`),{redirect:N,cookies:ee}}return N.signin();case"signout":if(I.signOut)return{redirect:I.signOut,cookies:ee};return N.signout();case"callback":if(X.provider){let N=await R.callback({body:K.body,query:K.query,headers:K.headers,cookies:K.cookies,method:Z,options:X,sessionStore:et});return N.cookies&&ee.push(...N.cookies),{...N,cookies:ee}}break;case"verify-request":if(I.verifyRequest)return{redirect:I.verifyRequest,cookies:ee};return N.verifyRequest();case"error":if(["Signin","OAuthSignin","OAuthCallback","OAuthCreateAccount","EmailCreateAccount","Callback","OAuthAccountNotLinked","EmailSignin","CredentialsSignin","SessionRequired"].includes(Q))return{redirect:`${X.url}/signin?error=${Q}`,cookies:ee};if(I.error)return{redirect:`${I.error}${I.error.includes("?")?"&":"?"}error=${Q}`,cookies:ee};return N.error({error:Q})}}else if("POST"===Z)switch(Y){case"signin":if(X.csrfTokenVerified&&X.provider){let N=await R.signin({query:K.query,body:K.body,options:X});return N.cookies&&ee.push(...N.cookies),{...N,cookies:ee}}return{redirect:`${X.url}/signin?csrf=true`,cookies:ee};case"signout":if(X.csrfTokenVerified){let N=await R.signout({options:X,sessionStore:et});return N.cookies&&ee.push(...N.cookies),{...N,cookies:ee}}return{redirect:`${X.url}/signout?csrf=true`,cookies:ee};case"callback":if(X.provider){if("credentials"===X.provider.type&&!X.csrfTokenVerified)return{redirect:`${X.url}/signin?csrf=true`,cookies:ee};let N=await R.callback({body:K.body,query:K.query,headers:K.headers,cookies:K.cookies,method:Z,options:X,sessionStore:et});return N.cookies&&ee.push(...N.cookies),{...N,cookies:ee}}break;case"_log":if(W.logger)try{let{code:N,level:I,...T}=null!=(H=K.body)?H:{};D.default[I](N,T)}catch(N){D.default.error("LOGGER_ERROR",N)}return{};case"session":if(X.csrfTokenVerified){let N=await R.session({options:X,sessionStore:et,newSession:null==(z=K.body)?void 0:z.data,isUpdate:!0});return N.cookies&&ee.push(...N.cookies),{...N,cookies:ee}}return{status:400,body:{},cookies:ee}}return{status:400,body:`Error: This action with HTTP ${Z} is not supported by NextAuth.js`}}},1100:(N,I)=>{"use strict";function T(){return{requiredIds:new Map,renderedIds:new Set}}function P(N){for(let I of N.requiredIds.keys())if(!N.renderedIds.has(I))return!1;return!0}Object.defineProperty(I,"__esModule",{value:!0}),function(N,I){for(var T in I)Object.defineProperty(N,T,{enumerable:!0,get:I[T]})}(I,{allRequiredBoundariesRendered:function(){return P},createValidationBoundaryTracking:function(){return T}})},1240:(N,I,T)=>{"use strict";var P=T(29563);Object.defineProperty(I,"__esModule",{value:!0}),Object.defineProperty(I,"callback",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(I,"providers",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(I,"session",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(I,"signin",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(I,"signout",{enumerable:!0,get:function(){return R.default}});var D=P(T(23463)),M=P(T(86)),R=P(T(73411)),L=P(T(4328)),$=P(T(93910))},1705:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),Object.defineProperty(I,"unstable_rethrow",{enumerable:!0,get:function(){return M}});let P=T(33870),D=T(31746);function M(N){if((0,D.isNextRouterError)(N)||(0,P.isBailoutToCSRError)(N))throw N;N instanceof Error&&"cause"in N&&M(N.cause)}("function"==typeof I.default||"object"==typeof I.default&&null!==I.default)&&void 0===I.default.__esModule&&(Object.defineProperty(I.default,"__esMo
1dule",{value:!0}),Object.assign(I.default,I),N.exports=I.default)},1806:(N,I,T)=>{"use strict";T.d(I,{c:()=>H});var P=T(71947),D=T(71523);let M={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},R={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},L={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},$={date:(0,D.k)({formats:M,defaultWidth:"full"}),time:(0,D.k)({formats:R,defaultWidth:"full"}),dateTime:(0,D.k)({formats:L,defaultWidth:"full"})};var F=T(40908),B=T(19996),U=T(51952);let H={code:"en-US",formatDistance:P.B,formatLong:$,formatRelative:F.o,localize:B.k,match:U.Y,options:{weekStartsOn:0,firstWeekContainsDate:1}}},2075:(N,I,T)=>{"use strict";T.r(I),T.d(I,{Default:()=>R,HeroWithCenteredAlignment:()=>$,HeroWithLeftAlignment:()=>L,HeroWithoutYellowDivider:()=>F});var P=T(37876),D=T(63366);let M=({rendering:N,fields:I,variant:T="brunel"})=>{let M=N?.params?.Styles,R="string"==typeof M?M:M?.Value?.value??"",L=R?R.split(/\s+/).filter(Boolean):[];return(0,P.jsx)(D.tk,{styledClasses:L,heroContent:I,variant:T})},R=N=>(0,P.jsx)(M,{...N}),L=N=>(0,P.jsx)(M,{...N}),$=N=>(0,P.jsx)(M,{...N}),F=N=>(0,P.jsx)(M,{...N,variant:"taylorhopkinson"})},2171:(N,I,T)=>{"use strict";T.r(I),T.d(I,{useApplyForm:()=>H,useApplyFormFormikHandlers:()=>z});var P=T(17033),D=T(85609),M=T(55333),R=T(14e3),L=T(14232),$=T(67881),F=T(8496),B=T(98566),U=T(95750);let H=({fields:N,vacancyData:I,seek:T,openVacancyIDs:H})=>{let[z,W]=(0,L.useState)({title:"",message:""}),[q,G]=(0,L.useState)({hostname:""}),[K,V]=(0,L.useState)(null),{page:Y}=(0,D.M5)(),J=(0,R.useRouter)(),{getParam:Q}=(0,B.BB)(),Z=I?.currentLanguage??Y.locale??"en",X=(0,P.resolveApplicationType)(T?.candidateProfile?.profileId?.value),ee=(0,P.resolveIsOpenVacancy)(H,Q("vacancyID")),et=(0,M.Cx)(),er=async()=>{let T=await (0,F.f)(I?.businessUnit??"",Z);return(0,P.buildApplyFormExtraFields)({language:Z,vacancyId:I?.publicationId??Q("vacancyID")??"open",preMatchingIsLeading:N?.preMatchingIsLeading??!1,mercuryId:I?.mercuryId??"",vacancyTitle:I?.title??"",vacancyParentNumber:I?.parentNumber??"",marketName:N?.marketName??"",marketLanguageCodes:N?.marketLanguageCodes??"",businessUnit:I?.businessUnit??"",businessUnitName:T?.[0]?.text?.value??"",hostname:q.hostname,contactOfficeName:I?.contactOfficeName??"",atsSource:(0,P.resolveAtsSource)(I?.atsSource,ee),publicationCountry:I?.country??"",contactName:I?.contactName??"",contactPhone:I?.contactPhone??"",contactEmail:I?.contactEmail??"",publicationId:I?.publicationId,utmParameters:(0,U.Df)(Q),applicationSourceId:Q("applicationSourceId"),managerSu:Q("su"),piwikId:(0,P.extractPiwikId)(document.cookie)})};(0,L.useLayoutEffect)(()=>{(0,M.Cx)()||(T?.resume?.base64&&fetch(`data:${T?.resume?.fileType};base64,${T?.resume?.base64}`).then(N=>{N.blob().then(N=>{V(new File([N],T?.resume?.filename??"seek_cv.pdf",{type:T?.resume?.fileType}))})}),I?.publicationId?(async()=>{await $.q.common.vacancyDetailOnPageEnter("open direct apply page",I,Z),$.q.applyForm.startDirectApplication(X,I.publicationId,N?.variantType)})():ee?$.q.applyForm.startOpenApplication(X,N?.variantType):$.q.applyForm.startPersonalApplication(X,Q("applicationSourceId"),N?.variantType),G({hostname:window.location.origin}))},[]);let en=(N,T)=>()=>{I?.publicationId?$.q.applyForm.interactFormFieldDirectApplication(X,N,T):ee?$.q.applyForm.interactFormFieldOpenApplication(X,N,T):$.q.applyForm.interactFormFieldPersonalApplication(X,N,T)},ea=()=>{I?.publicationId?(localStorage.setItem("vacancyData",JSON.stringify(I)),$.q.applyForm.submitDirectApplication(X,I?.publicationId,N?.variantType)):ee?$.q.applyForm.submitOpenApplication(X,N?.variantType):$.q.applyForm.submitPersonalApplication(X,Q("applicationSourceId"),N?.variantType)};return{error:z,setError:W,file:K,language:Z,applicationType:X,isOpenVacancy:ee,isEditing:et,getExtraFields:er,setInteractionDataLayer:en,setSubmissionDataLayer:ea,getParam:Q,router:J}},z=({values:N,touched:I,setFieldValue:T,setFieldTouched:P})=>({handleResumeDrop:N=>{if(!N)return;T("resumeData.file",N,I?.resumeData?.file??!1),T("resumeData.fileName",N?.name,I?.resumeData?.fileName??!1);let P=new FileReader;
1P.readAsDataURL(N),P.onloadend=N=>{T("resumeData.base64BinaryData",N?.target?.result,I?.resumeData?.base64BinaryData??!1)}},handleResumeDelete:()=>{P("resumeData.file",!1,!1),T("resumeData.file",null,!1),P("resumeData.fileName",!1,!1),T("resumeData.fileName","",!1),P("resumeData.base64BinaryData",!1,!1),T("resumeData.base64BinaryData","",!1)},handleTravelOptionSelect:I=>{let D="Relocate"===I;D!==N.willRelocate&&(T("willRelocate",D),T("travelPreference",""),P("travelPreference",!1,!1),T("travelDistancePreference",""),P("travelDistancePreference",!1,!1),T("travelTime",""),P("travelTime",!1,!1))}})},2467:(N,I,T)=>{"use strict";T.r(I),T.d(I,{useOtpLoginForm:()=>q});var P=T(13185),D=T(29454),M=T(89099),R=T(10553),L=T(14232),$=T(67881),F=T(85728),B=T(65212),U=T(98176),H=T(51725),z=T(16227);let W=N=>({emailField:N?.formFields?.find(N=>"otpLoginLabelFieldEmailAddress"===N.fullName),otpField:N?.formFields?.find(N=>"otpLoginLabelFieldOtpCode"===N.fullName),submitButton:N?.generalFields?.find(N=>"otpLoginEmailSubmitButtonLabel"===N.fullName),sendOtpButton:N?.generalFields?.find(N=>"otpLoginOtpSubmitButtonLabel"===N.fullName),resendOtpButton:N.generalFields?.find(N=>"otpLoginRenewSubmitButtonLabel"===N.fullName)}),q=({page:N,fields:I})=>{let T=N.locale,{dictionary:q,session:G}=N.layout,{emailField:K,otpField:V,submitButton:Y,sendOtpButton:J,resendOtpButton:Q}=W(I),Z=(0,M.useRouter)(),{setLoading:X,setToast:ee}=(0,L.useContext)(F._t),[et,er]=(0,L.useState)(!1),[en,ea]=(0,L.use
1State)(null),[ei,eo]=(0,L.useState)(!1),[es,el]=(0,L.useState)(()=>(0,P.formatResendState)(0,Q?.value)),[ec,eu]=(0,L.useState)(en);en!==ec&&(eu(en),el((0,P.formatResendState)((0,P.getResendRemainingSeconds)(en?.resendEmail),Q?.value))),(0,L.useEffect)(()=>{if(!en?.resendEmail)return;let N=setInterval(()=>{let I=(0,P.getResendRemainingSeconds)(en.resendEmail);el((0,P.formatResendState)(I,Q?.value)),I<=0&&clearInterval(N)},1e3);return()=>clearInterval(N)},[en,Q?.value]),(0,L.useEffect)(()=>{let N=(0,P.resolveCallbackUrl)(new URLSearchParams(window.location.search),T);Z.prefetch(N)},[]);let ed=(0,L.useCallback)(async(N,I,M)=>{let L=M?.isResend??!1,$=(0,P.normalizeLocale)(T);L?eo(!0):X({isLoading:!0,messages:[q?.["sending-code"]??"[sending-code]"]});let F=await (0,R.signIn)("credentials",{redirect:!1,email:N,locale:$}).finally(()=>{L?eo(!1):X({isLoading:!1,messages:[]})});if(I?.setFieldTouched("otpCode",!1,!1),F?.error===U.Hk.OTP_SENT){let N=D.A.get("otp_session");er(!0),N&&(ea(JSON.parse(N)),setTimeout(()=>{er(!1)},1e3*U.QA))}else B.A.authMyApplications("Failed to login: ",F?.error),ee({type:"error",data:{title:q?.["otp-login-error"]??"[otp-login-error]",message:q?.["otp-login-error-message"]??"[otp-login-error-message]"},open:!0})},[T,q,X,ee]),ef=(0,L.useCallback)(async(N,I,{resetForm:M,setFieldValue:L,setFieldTouched:F})=>{let B=(0,P.resolveCallbackUrl)(new URLSearchParams(window.location.search),T);X({isLoading:!0,messages:[q?.["logging-in"]??"[logging-in]"]});let U=!1;try{G&&!H.n.isOTPProvider(G?.user?.provider??"")&&await (0,R.signOut)({redirect:!1});let T=await (0,R.signIn)("credentials",{redirect:!1,callbackUrl:B,email:en?.email??N,otp:I});if(T?.url){D.A.remove("otp_session"),await (0,R.getSession)().then(N=>{N?.user?.id&&$.q.auth.login(N.user.id)}),U=!0,(0,z.b)(T.url);return}ee({type:"error",data:{title:q?.["otp-login-error"]??"[otp-login-error]",message:q?.["otp-login-error-message"]??"[otp-login-error-message]"},open:!0}),(0,P.shouldResetToEmailStep)(T?.error)?(D.A.remove("otp_session"),er(!1),M()):(L("otpCode","",!1),F("otpCode",!1,!1))}finally{U||X({isLoading:!1,messages:[]})}},[T,q,G,en,X,ee]),eh=(0,L.useCallback)(()=>ed(en?.email??"",null,{isResend:!0}),[ed,en?.email]);return{otpSent:et,otpSession:en,resend:es,resendPending:ei,emailField:K,otpField:V,submitButton:Y,sendOtpButton:J,dictionary:q,handleEmailSubmit:ed,handleOtpSubmit:ef,handleResendClick:eh}}},2582:(N,I,T)=>{"use strict";T.d(I,{$3:()=>B,Bn:()=>H,K4:()=>F,ZF:()=>U});var P=T(86170),D=T(60409),M=T(65212);let R=` 2 fragment blogPreviewFields on Item { 3 ... on BlogPage { 4 displayName 5 language { 6 name 7 } 8 url { 9 path 10 } 11 previewTitle { 12 value 13 } 14 previewIntro { 15 value 16 } 17 previewImage { 18 data: jsonValue 19 } 20 } 21 } 22`,L=` 23 fragment blogFields on Item { 24 ... on BlogPage { 25 name 26 blogPostIsActive { 27 active: boolValue 28 } 29 blogHeroTitle { 30 value 31 } 32 blogHeroImage { 33 data: jsonValue 34 } 35 blogPostTags { 36 data: jsonValue 37 } 38 blogHeroCategory { 39 id: value 40 data: jsonValue 41 } 42 blogHeroPublicationDate { 43 date: value 44 } 45 } 46 } 47`,$=` 48 fragment blogCategoryFields on BlogCategory { 49 id(format: "B") 50 name 51 blogCategoryName { 52 value 53 } 54 blogCategoryIntroText { 55 value 56 } 57 blogCategoryHeaderImage { 58 data: jsonValue 59 } 60 } 61`,F=(N,I,T)=>(0,P.A)().request(` 62 ${R} 63 ${L} 64 65 query ( 66 $blogPageTemplateId: String! 67 $blogItemId: String! 68 $totalResults: Int! 69 $locale: String! 70 $blogPostIsActive: String! 71 ) { 72 blogs: search( 73 where: { 74 AND: [ 75 { name: "_language", value: $locale, operator: EQ } 76 { name: "_templates", value: $blogPageTemplateId, operator: CONTAINS } 77 { name: "_path", value: $blogItemId, operator: CONTAINS } 78 { name: "blogPostIsActive", value: $blogPostIsActive, operator: EQ } 79 ] 80 } 81 first: $totalResults 82 orderBy: { name: "blogHeroPublicationDate", direction: DESC } 83 ) { 84 results { 85 ...blogPreviewFields 86 ...blogFields 87 } 88 pageInfo { 89 endCursor 90 hasNext 91 } 92 total 93 } 94 } 95 `,{blogPageTemplateId:D.YZ,blogItemId:N,totalResults:I,locale:T,blogPostIsActive:"1"}).then(N=>N).catch(N=>(M.A.blog("Failed getBlogsData",N),null)),B=(N,I,T,$,F)=>(0,P.A)().request(` 96 ${R} 97 ${L} 98 query ( 99 $totalResults: Int! 100 ) { 101 blogs: search( 102 where: { 103 AND: [ 104 { name: "_language", value: "${F}", operator: EQ } 105 { name: "_templates", value: "${D.YZ}", operator: CONTAINS } 106 { name: "_path", value: "${N}", operator: CONTAINS } 107 { name: "blogPostIsActive", value: "1", operator: EQ } 108 ${I?`{ name: "_path", value: "${I}", operator: NCONTAINS }`:""} 109 { 110 AND: [{ 111 OR: [${$.map(N=>`{ name: "${D.QF.blogCategory}
111", value: "${N.toSitecoreGUID()}", operator: CONTAINS }`)} 112 ] 113 }] 114 } 115 ] 116 } 117 first: $totalResults 118 orderBy: { name: "blogHeroPublicationDate", direction: DESC } 119 ) { 120 results { 121 ...blogPreviewFields 122 ...blogFields 123 } 124 pageInfo { 125 endCursor 126 hasNext 127 } 128 total 129 } 130 } 131 `,{totalResults:T}).then(N=>N).catch(N=>(M.A.blog("Failed getBlogsDataByCategory",N),null)),U=(N,I,T,$,F)=>(0,P.A)().request(` 132 ${R} 133 ${L} 134 135 query ( 136 $totalResults: Int! 137 $endCursor: String! 138 ) { 139 blogs: search( 140 where: { 141 AND: [ 142 { name: "_language", value: "${F}", operator: EQ } 143 { name: "_templates", value: "${D.YZ}", operator: CONTAINS } 144 { name: "_path", value: "${N}", operator: CONTAINS } 145 { name: "blogPostIsActive", value: "1", operator: EQ } 146 ${$&&`{ 147 AND: [{ 148 OR: [${$.map(N=>`{ name: "blogHeroCategory", value: "${N.toSitecoreGUID()}", operator: CONTAINS }`)} 149 ] 150 }] 151 }`} 152 ] 153 } 154 first: $totalResults 155 after: $endCursor 156 orderBy: { name: "blogHeroPublicationDate", direction: DESC } 157 ) { 158 results { 159 ...blogPreviewFields 160 ...blogFields 161 } 162 pageInfo { 163 endCursor 164 hasNext 165 } 166 total 167 } 168 } 169 `,{totalResults:I,endCursor:T}).then(N=>N).catch(N=>(M.A.blog("Failed getNextBlogsData",N),null)),H=(N,I)=>(0,P.A)().request(` 170 ${$} 171 172 query ($path: String!, $locale: String!) { 173 item(path: $path, language: $locale) { 174 ...blogCategoryFields 175 } 176 } 177 `,{path:`${N}`,locale:`${I}`}).then(N=>N).catch(N=>(M.A.blog("Failed getBlogCategoryById",N),null))},2650:(N,I,T)=>{"use strict";T.d(I,{CY:()=>U,s9:()=>H});var P=T(14232),D=T(67138);let M=/{{(.*?)}}/g;function R(N,I){return N.replace(M,(N,T,P)=>{for(N=0,P=I,T=T.trim().split(".");P&&N<T.length;)P=P[T[N++]];return null!=P?P:""})}function L(N){var I="",T=N||{};return{set(N,I){T[N]=Object.assign(T[N]||{},I)},locale:N=>I=N||I,table:N=>T[N],t(N,P,M){var L=D(T[M||I],N,"");return"function"==typeof L?L(P):"string"==typeof L?R(L,P):L}}}function $(){return($=Object.assign||function(N){for(var I=1;I<arguments.length;I++){var T=arguments[I];for(var P in T)Object.prototype.hasOwnProperty.call(T,P)&&(N[P]=T[P])}return N}).apply(this,arguments)}var F=(0,P.createContext)(),B=function(N){var I=L(N);return{_onUpdate:function(){},t:I.t,table:I.table,set:I.set,locale:function(N){if(void 0===N)return I.locale();var T=I.locale(N);return this._onUpdate(),T},withPlural:function(N){var T=this;void 0===N&&(N={type:"ordinal"});var P=new Intl.PluralRules(I.locale(),N);return function(N,I){return Object.keys(I).map(function(N){if("number"==typeof I[N]){var D=P.select(I[N]);I[N]=T.t(N+"."+D)}}),T.t.apply(T,[N,I].concat([].slice.call(arguments,2)))}}}};function U(N){var I=N.children,T=N.locale,D=void 0===T?"en":T,M=N.lngDict,R=N.i18nInstance,L=(0,P.useState)(0)[1],U=(0,P.useMemo)(function(){var N=null!=R?R:B();return N._onUpdate=function(){return L(function(N){return N+1})},N.set(D,M),N.locale(D),N},[R]);return(0,P.useEffect)(function(){U.set(D,M),U.locale(D)},[D,M]),P.createElement(F.Provider,{value:$({},U)},I)}function H(){return(0,P.useContext)(F)}},2896:()=>{},3004:(N,I,T)=>{I.OAuth=T(79919).OAuth,I.OAuthEcho=T(79919).OAuthEcho,I.OAuth2=T(63991).OAuth2},3139:N=>{var I=1e3,T=6e4,P=36e5,D=864e5,M=6048e5,R=315576e5;function L(N){if(!((N=String(N)).length>100)){var L=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(N);if(L){var $=parseFloat(L[1]),F=(L[2]||"ms").toLowerCase();switch(F){case"years":case"year":case"yrs":case"yr":case"y":return $*R;case"weeks":case"week":case"w":return $*M;case"days":case"day":case"d":return $*D;case"hours":case"hour":case"hrs":case"hr":case"h":return $*P;case"minutes":case"minute":case"mins":case"min":case"m":return $*T;case"seconds":case"second":case"secs":case"sec":case"s":return $*I;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return $;default:return}}}}function $(N){var M=Math.abs(N);return M>=D?Math.round(N/D)+"d":M>=P?Math.round(N/P)+"h":M>=T?Math.round(N/T)+"m":M>=I?Math.round(N/I)+"s":N+"ms"}function F(N){var M=Math.abs(N);return M>=D?B(N,M,D,"day"):M>=P?B(N,M,P,"hour"):M>=T?B(N,M,T,"minute"):M>=I?B(N,M,I,"second"):N+" ms"}function B(N,I,T,P){var D=I>=1.5*T;return Math.round(N/T)+" "+P+(D?"s":"")}N.exports=function(N,I){I=I||{};var T=typeof N;if("string"===T&&N.length>0)return L(N);if("number"===T&&isFinite(N))return I.long?F(N):$(N);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(N))}},3305:(N,I,T)=>{var P={221:function(N){"use strict";N.exports=T(48041)}},D={};function M(N){var I=D[N];if(void 0!==I)return I.exports;
177var T=D[N]={exports:{}},R=!0;try{P[N](T,T.exports,M),R=!1}finally{R&&delete D[N]}return T.exports}M.ab="//";var R={};!function(){var N,I=R,T=(N=M(221))&&"object"==typeof N&&"default"in N?N.default:N,P=/https?|ftp|gopher|file/;function D(N){"string"==typeof N&&(N=Y(N));var I,D,M,R,L,$,F,B,U,H,z,W=(I=N,D=T,M=P,R=I.auth,L=I.hostname,$=I.protocol||"",F=I.pathname||"",B=I.hash||"",U=I.query||"",H=!1,R=R?encodeURIComponent(R).replace(/%3A/i,":")+"@":"",I.host?H=R+I.host:L&&(H=R+(~L.indexOf(":")?"["+L+"]":L),I.port&&(H+=":"+I.port)),U&&"object"==typeof U&&(U=D.encode(U)),z=I.search||U&&"?"+U||"",$&&":"!==$.substr(-1)&&($+=":"),I.slashes||(!$||M.test($))&&!1!==H?(H="//"+(H||""),F&&"/"!==F[0]&&(F="/"+F)):H||(H=""),B&&"#"!==B[0]&&(B="#"+B),z&&"?"!==z[0]&&(z="?"+z),{protocol:$,host:H,pathname:F=F.replace(/[?#]/g,encodeURIComponent),search:z=z.replace("#","%23"),hash:B});return""+W.protocol+W.host+W.pathname+W.search+W.hash}var L="http://",$="w.w",F=L+$,B=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,U=/https?|ftp|gopher|file/;function H(N,I){var T="string"==typeof N?Y(N):N;N="object"==typeof N?D(N):N;var P=Y(I),M="";T.protocol&&!T.slashes&&(M=T.protocol,N=N.replace(T.protocol,""),M+="/"===I[0]||"/"===N[0]?"/":""),M&&P.protocol&&(M="",P.slashes||(M=P.protocol,I=I.replace(P.protocol,"")));var R=N.match(B);R&&!P.protocol&&(N=N.substr((M=R[1]+(R[2]||"")).length),/^\/\/[^/]/.test(I)&&(M=M.slice(0,-1)));var $=new URL(N,F+"/"),H=new URL(I,$).toString().replace(F,""),z=P.protocol||T.protocol;return z+=T.slashes||P.slashes?"//":"",!M&&z?H=H.replace(L,z):M&&(H=H.replace(L,"")),U.test(H)||~I.indexOf(".")||"/"===N.slice(-1)||"/"===I.slice(-1)||"/"!==H.slice(-1)||(H=H.slice(0,-1)),M&&(H=M+("/"===H[0]?H.substr(1):H)),H}function z(){}z.prototype.parse=Y,z.prototype.format=D,z.prototype.resolve=H,z.prototype.resolveObject=H;var W=/^https?|ftp|gopher|file/,q=/^(.*?)([#?].*)/,G=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,K=/^([a-z0-9.+-]*:)?\/\/\/*/i,V=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function Y(N,I,P){if(void 0===I&&(I=!1),void 0===P&&(P=!1),N&&"object"==typeof N&&N instanceof z)return N;var M=(N=N.trim()).match(q);N=M?M[1].replace(/\\/g,"/")+M[2]:N.replace(/\\/g,"/"),V.test(N)&&"/"!==N.slice(-1)&&(N+="/");var R=!/(^javascript)/.test(N)&&N.match(G),L=K.test(N),B="";R&&(W.test(R[1])||(B=R[1].toLowerCase(),N=""+R[2]+R[3]),R[2]||(L=!1,W.test(R[1])?(B=R[1],N=""+R[3]):N="//"+R[3]),3!==R[2].length&&1!==R[2].length||(B=R[1],N="/"+R[3]));var U,H=(M?M[1]:N).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),Y=H&&H[1],J=new z,Q="",Z="";try{U=new URL(N)}catch(I){Q=I,B||P||!/^\/\//.test(N)||/^\/\/.+[@.]/.test(N)||(Z="/",N=N.substr(1));try{U=new URL(N,F)}catch(N){return J.protocol=B,J.href=B,J}}J.slashes=L&&!Z,J.host=U.host===$?"":U.host,J.hostname=U.hostname===$?"":U.hostname.replace(/(\[|\])/g,""),J.protocol=Q?B||null:U.protocol,J.search=U.search.replace(/\\/g,"%5C"),J.hash=U.hash.replace(/\\/g,"%5C");var X=N.split("#");!J.search&&~X[0].indexOf("?")&&(J.search="?"),J.hash||""!==X[1]||(J.hash="#"),J.query=I?T.decode(U.search.substr(1)):J.search.substr(1),J.pathname=Z+(R?U.pathname.replace(/['^|`]/g,function(N){return"%"+N.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(N,I){try{return decodeURIComponent(I).split("").map(function(N){var I=N.charCodeAt();return I>256||/^[a-z0-9]$/i.test(N)?N:"%"+I.toString(16).toUpperCase()}).join("")}catch(N){return I}}):U.pathname),"about:"===J.protocol&&"blank"===J.pathname&&(J.protocol="",J.pathname=""),Q&&"/"!==N[0]&&(J.pathname=J.pathname.substr(1)),B&&!W.test(B)&&"/"!==N.slice(-1)&&"/"===J.pathname&&(J.pathname=""),J.path=J.pathname+J.search,J.auth=[U.username,U.password].map(decodeURIComponent).filter(Boolean).join(":"),J.port=U.port,Y&&!J.host.endsWith(Y)&&(J.host+=Y,J.port=Y.slice(1)),J.href=Z?""+J.pathname+J.search+J.hash:D(J);var ee=/^(file)/.test(J.href)?["host","hostname"]:[];return Object.keys(J).forEach(function(N){~ee.indexOf(N)||(J[N]=J[N]||null)}),J}I.parse=Y,I.format=D,I.resolve=H,I.resolveObject=function(N,I){return Y(H(N,I))},I.Url=z}(),N.exports=R},3583:N=>{function I(){try{var T=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(N){}return(N.exports=I=function(){return!!T}
177,N.exports.__esModule=!0,N.exports.default=N.exports)()}N.exports=I,N.exports.__esModule=!0,N.exports.default=N.exports},3717:N=>{"use strict";N.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},3721:(N,I,T)=>{"use strict";T.d(I,{l:()=>M});var P=T(37876),D=T(14232);let M=({children:N,open:I})=>((0,D.useEffect)(()=>{I?document.documentElement.classList.add("overflow-hidden"):document.documentElement.classList.remove("overflow-hidden")},[I]),I?(0,P.jsxs)("div",{className:"relative z-100","aria-labelledby":"modal-title",role:"dialog","aria-modal":"true",children:[(0,P.jsx)("div",{className:"fixed inset-0 z-100 bg-black opacity-40 transition-opacity","aria-hidden":"true"}),(0,P.jsx)("div",{className:"fixed inset-0 z-100 w-screen overflow-y-auto",children:(0,P.jsx)("div",{className:"flex min-h-full flex-1 items-center justify-center p-4 text-center sm:p-0",children:N})})]}):null)},3883:(N,I)=>{"use strict";function T(N,I){D(N,I),I.add(N)}function P(N,I,T){D(N,I),I.set(N,T)}function D(N,I){if(I.has(N))throw TypeError("Cannot initialize the same private elements twice on an object")}function M(N,I){return N.get(L(N,I))}function R(N,I,T){return N.set(L(N,I),T),T}function L(N,I,T){if("function"==typeof N?N===I:N.has(I))return arguments.length<3?I:T;throw TypeError("Private element is not present on this object")}Object.defineProperty(I,"__esModule",{value:!0}),I.SessionStore=void 0,I.defaultCookies=U;let $=4096,F=163,B=3933;function U(N){let I=N?"__Secure-":"";return{sessionToken:{name:`${I}next-auth.session-token`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:N}},callbackUrl:{name:`${I}next-auth.callback-url`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:N}},csrfToken:{name:`${N?"__Host-":""}next-auth.csrf-token`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:N}},pkceCodeVerifier:{name:`${I}next-auth.pkce.code_verifier`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:N,maxAge:900}},state:{name:`${I}next-auth.state`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:N,maxAge:900}},nonce:{name:`${I}next-auth.nonce`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:N}}}}var H=new WeakMap,z=new WeakMap,W=new WeakMap,q=new WeakSet;class G{constructor(N,I,D){T(this,q),P(this,H,{}),P(this,z,void 0),P(this,W,void 0),R(W,this,D),R(z,this,N);const{cookies:L}=I,{name:$}=N;if("function"==typeof(null==L?void 0:L.getAll))for(const{name:N,value:I}of L.getAll())N.startsWith($)&&(M(H,this)[N]=I);else if(L instanceof Map)for(const N of L.keys())N.startsWith($)&&(M(H,this)[N]=L.get(N));else for(const N in L)N.startsWith($)&&(M(H,this)[N]=L[N])}get value(){return Object.keys(M(H,this)).sort((N,I)=>{var T,P;return parseInt(null!=(T=N.split(".").pop())?T:"0")-parseInt(null!=(P=I.split(".").pop())?P:"0")}).map(N=>M(H,this)[N]).join("")}chunk(N,I){let T=L(q,this,V).call(this);for(let P of L(q,this,K).call(this,{name:M(z,this).name,value:N,options:{...M(z,this).options,...I}}))T[P.name]=P;return Object.values(T)}clean(){return Object.values(L(q,this,V).call(this))}}function K(N){let I=Math.ceil(N.value.length/B);if(1===I)return M(H,this)[N.name]=N.value,[N];let T=[];for(let P=0;P<I;P++){let I=`${N.name}.${P}`,D=N.value.substr(P*B,B);T.push({...N,name:I,value:D}),M(H,this)[I]=D}return M(W,this).debug("CHUNKING_SESSION_COOKIE",{message:`Session cookie exceeds allowed ${$} bytes.`,emptyCookieSize:F,valueSize:N.value.length,chunks:T.map(N=>N.value.length+F)}),T}function V(){let N={};for(let T in M(H,this)){var I;null==(I=M(H,this))||delete I[T],N[T]={name:T,value:"",options:{...M(z,this).options,maxAge:0}}}return N}I.SessionStore=G},4006:(N,I,T)=>{"use strict";T.d(I,{H9:()=>L,Sc:()=>M,VS:()=>D});let P="line-";function D(N){return N?.trim()?N.split(/\s+/).filter(N=>N.startsWith(P)).join(" ").trim():""}function M(N){return N?.trim()?N.split(/\s+/).filter(N=>!N.startsWith(P)).join(" ").trim():""}function R(N,I){return N?.trim()?N.split(/\s+/).filter(Boolean).find(N=>N.startsWith(I))??"":""}function L(N,I,T){return R(N,I)||T}},4022:(N,I,T)=>{var P=T(99742);let{inspect:D}=T(68994),{RPError:M,OPError:R}=T(79391),L=T(71807);class ${#e;#t;#r;#n;#a;#i;#o;#s;#l;constructor({client:N,exchangeBody:I,clientAssertionPayload:T,response:P,maxAge:D,DPoP:R}){if(["verification_uri","user_code","device_code"].forEach(N=>{if("string"!=typeof P[N]||!P[N])throw new M(`expected ${N} string to be returned by Device Authorization Response, got %j`,P[N])}),!Number.isSafeInteger(P.expires_in))throw new M("expected expires_in number to be returned by Device Authorization Response, got %j",P.expires_in);this.#i=L()+P.expires_in,this.#t=N,this.#n=R,this.#s=D,this.#a=I,this.#r=T,this.#l=P,this.#o=1e3*P.interval||5e3}abort(){this.#e=!0}async poll({signal:N}={}){let I;if(N&&N.aborted||this.#e)throw new M("polling aborted");if(this.expired())throw new M("the device code %j has expired and the device authorization session has concluded",this.device_code);await new Promise(N=>setTimeout(N,this.#o));try{I=await this.#t.grant({...this.#a,grant_type:"urn:ietf:params:oauth:grant-type:device_code",device_code:this.device_code},{clientAssertionPayload:this.#r,DPoP:this.#n})}catch(I){switch(I instanceof R&&I.error){case"slow_down":this.#o+=5e3;case"authorization_pending":return this.poll({signal:N});default:throw I}}return"id_token"in I&&(await this.#t.decryptIdToken(I),await this.#t.validateIdToken(I,void 0,"token",this.#s)),I}get device_code(){return this.#l.device_code}get user_code(){return this.#l.user_code}get verification_uri(){return this.#l.verification_uri}get verification_uri_complete(){return this.#l.verification_uri_complete}get expires_in(){return Math.max.apply(null,[this.#i-L(),0])}expired(){return 0===this.expires_in}[D.custom](){return`${this.constructor.name} ${D(this.#l,{depth:1/0,colors:P.stdout.isTTY,compact:!1,sorted:!0}
177)}`}}N.exports=$},4103:function(N){var I;N.exports=(I=function(){var N=JSON.parse('{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","\xa2":"cent","\xa3":"pound","\xa4":"currency","\xa5":"yen","\xa9":"(c)","\xaa":"a","\xae":"(r)","\xba":"o","\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xc6":"AE","\xc7":"C","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xd0":"D","\xd1":"N","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xdd":"Y","\xde":"TH","\xdf":"ss","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xe6":"ae","\xe7":"c","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xf0":"d","\xf1":"n","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xfd":"y","\xfe":"th","\xff":"y","Ä":"A","Ä":"a","Ä":"A","Ä":"a","Ä":"A","Ä
":"a","Ä":"C","Ä":"c","Ä":"C","Ä":"c","Ä":"D","Ä":"d","Ä":"DJ","Ä":"dj","Ä":"E","Ä":"e","Ä":"E","Ä":"e","Ä":"e","Ä":"e","Ä":"E","Ä":"e","Ä":"G","Ä":"g","Ä¢":"G","Ä£":"g","Ĩ":"I","Ä©":"i","Ī":"i","Ä«":"i","Ä®":"I","į":"i","İ":"I","ı":"i","Ķ":"k","Ä·":"k","Ä»":"L","ļ":"l","Ľ":"L","ľ":"l","Å":"L","Å":"l","Å":"N","Å":"n","Å
":"N","Å":"n","Å":"N","Å":"n","Å":"O","Å":"o","Å":"O","Å":"o","Å":"OE","Å":"oe","Å":"R","Å":"r","Å":"R","Å":"r","Å":"S","Å":"s","Å":"S","Å":"s","Å ":"S","Å¡":"s","Å¢":"T","Å£":"t","Ť":"T","Å¥":"t","Ũ":"U","Å©":"u","Ū":"u","Å«":"u","Å®":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Å´":"W","ŵ":"w","Ŷ":"Y","Å·":"y","Ÿ":"Y","Ź":"Z","ź":"z","Å»":"Z","ż":"z","Ž":"Z","ž":"z","Æ":"E","Æ":"f","Æ ":"O","Æ¡":"o","Ư":"U","ư":"u","Ç":"LJ","Ç":"lj","Ç":"NJ","Ç":"nj","È":"S","È":"s","È":"T","È":"t","É":"e","Ë":"o","Î":"A","Î":"E","Î":"H","Î":"I","Î":"O","Î":"Y","Î":"W","Î":"i","Î":"A","Î":"B","Î":"G","Î":"D","Î":"E","Î":"Z","Î":"H","Î":"8","Î":"I","Î":"K","Î":"L","Î":"M","Î":"N","Î":"3","Î":"O","Î ":"P","Ρ":"R","Σ":"S","Τ":"T","Î¥":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","Î":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","Ï":"p","Ï":"r","Ï":"s","Ï":"s","Ï":"t","Ï
":"y","Ï":"f","Ï":"x","Ï":"ps","Ï":"w","Ï":"i","Ï":"y","Ï":"o","Ï":"y","Ï":"w","Ð":"Yo","Ð":"DJ","Ð":"Ye","Ð":"I","Ð":"Yi","Ð":"J","Ð":"LJ","Ð":"NJ","Ð":"C","Ð":"DZ","Ð":"A","Ð":"B","Ð":"V","Ð":"G","Ð":"D","Ð":"E","Ð":"Zh","Ð":"Z","Ð":"I","Ð":"J","Ð":"K","Ð":"L","Ð":"M","Ð":"N","Ð":"O","Ð":"P","Ð ":"R","С":"S","Т":"T","У":"U","Ф":"F","Ð¥":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Ð":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","Ñ":"r","Ñ":"s","Ñ":"t","Ñ":"u","Ñ":"f","Ñ
":"h","Ñ":"c","Ñ":"ch","Ñ":"sh","Ñ":"sh","Ñ":"u","Ñ":"y","Ñ":"","Ñ":"e","Ñ":"yu","Ñ":"ya","Ñ":"yo","Ñ":"dj","Ñ":"ye","Ñ":"i","Ñ":"yi","Ñ":"j","Ñ":"lj","Ñ":"nj","Ñ":"c","Ñ":"u","Ñ":"dz","Ò":"G","Ò":"g","Ò":"GH","Ò":"gh","Ò":"KH","Ò":"kh","Ò¢":"NG","Ò£":"ng","Ò®":"UE","Ò¯":"ue","Ò°":"U","Ò±":"u","Òº":"H","Ò»":"h","Ó":"AE","Ó":"ae","Ó¨":"OE","Ó©":"oe","Ô±":"A","Ô²":"B","Ô³":"G","Ô´":"D","Ôµ":"E","Ô¶":"Z","Ô·":"E\'","Ô¸":"Y\'","Ô¹":"T\'","Ôº":"JH","Ô»":"I","Ô¼":"L","Ô½":"X","Ô¾":"C\'","Ô¿":"K","Õ":"H","Õ":"D\'","Õ":"GH","Õ":"TW","Õ":"M","Õ
":"Y","Õ":"N","Õ":"SH","Õ":"CH","Õ":"P","Õ":"J","Õ":"R\'","Õ":"S","Õ":"V","Õ":"T","Õ":"R","Õ":"C","Õ":"P\'","Õ":"Q\'","Õ":"O\'\'","Õ":"F","Ö":"EV","Ø¡":"a","Ø¢":"aa","Ø£":"a","ؤ":"u","Ø¥":"i","ئ":"e","ا":"a","ب":"b","Ø©":"h","ت":"t","Ø«":"th","ج":"j","Ø":"h","Ø®":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","Ø´":"sh","ص":"s","ض":"dh","Ø·":"t","ظ":"z","ع":"a","غ":"gh","Ù":"f","Ù":"q","Ù":"k","Ù":"l","Ù
":"m","Ù":"n","Ù":"h","Ù":"w","Ù":"a","Ù":"y","Ù":"an","Ù":"on","Ù":"en","Ù":"a","Ù":"u","Ù":"e","Ù":"","Ù ":"0","Ù¡":"1","Ù¢":"2","Ù£":"3","Ù¤":"4","Ù¥":"5","Ù¦":"6","Ù§":"7","Ù¨":"8","Ù©":"9","Ù¾":"p","Ú":"ch","Ú":"zh","Ú©":"k","Ú¯":"g","Û":"y","Û°":"0","Û±":"1","Û²":"2","Û³":"3","Û´":"4","Ûµ":"5","Û¶":"6","Û·":"7","Û¸":"8","Û¹":"9","฿":"baht","á":"a","á":"b","á":"g","á":"d","á":"e","á":"v","á":"z","á":"t","á":"i","á":"k","á":"l","á":"m","á":"n","á":"o","á":"p","á":"zh","á ":"r","á¡":"s","á¢":"t","á£":"u","á¤":"f","á¥":"k","á¦":"gh","á§":"q","á¨":"sh","á©":"ch","áª":"ts","á«":"dz","á¬":"ts","á":"ch","á®":"kh","á¯":"j","á°":"h","á¹¢":"S","á¹£":"s","áº":"W","áº":"w","áº":"W","áº":"w","áº":"W","áº
":"w","áº":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","áº":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","á»":"E","á»":"e","á»":"E","á»":"e","á»":"E","á»
":"e","á»":"E","á»":"e","á»":"I","á»":"i","á»":"I","á»":"i","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á»":"O","á»":"o","á» ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","á»§":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","á»":"u","á»®":"U","ữ":"u","á»°":"U","á»±":"u","Ỳ":"Y","ỳ":"y","á»´":"Y","ỵ":"y","á»¶":"Y","á»·":"y","Ỹ":"Y","ỹ":"y","â":"-","â":"\'","â":"\'","â":"\\"","â":"\\"","â":"\\"","â ":"+","â¢":"*","â¦":"...","â ":"ecu","â¢":"cruzeiro","â£":"french franc","â¤":"lira","â¥":"mill","â¦":"naira","â
177§":"peseta","â¨":"rupee","â©":"won","âª":"new shequel","â«":"dong","â¬":"euro","â":"kip","â®":"tugrik","â¯":"drachma","â°":"penny","â±":"peso","â²":"guarani","â³":"austral","â´":"hryvnia","âµ":"cedi","â¸":"kazakhstani tenge","â¹":"indian rupee","âº":"turkish lira","â½":"russian ruble","â¿":"bitcoin","â ":"sm","â¢":"tm","â":"d","â":"delta","â":"sum","â":"infinity","â¥":"love","å ":"yuan","å":"yen","ï·¼":"rial","ﻵ":"laa","ï»·":"laa","ﻹ":"lai","ï»»":"la"}'),I=JSON.parse('{"bg":{"Ð":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","Ñ":"ts","Ñ":"sht","Ñ":"a","Ñ":"y"},"de":{"\xc4":"AE","\xe4":"ae","\xd6":"OE","\xf6":"oe","\xdc":"UE","\xfc":"ue","\xdf":"ss","%":"prozent","&":"und","|":"oder","â":"summe","â":"unendlich","â¥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","\xa2":"centavos","\xa3":"libras","\xa4":"moneda","â£":"francos","â":"suma","â":"infinito","â¥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","\xa2":"centime","\xa3":"livre","\xa4":"devise","â£":"franc","â":"somme","â":"infini","â¥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","\xa2":"centavo","â":"soma","\xa3":"libra","â":"infinito","â¥":"amor"},"uk":{"Ð":"Y","и":"y","Ð":"Y","й":"y","Ц":"Ts","Ñ":"ts","Ð¥":"Kh","Ñ ":"kh","Щ":"Shch","Ñ":"shch","Ð":"H","г":"h"},"vi":{"Ä":"D","Ä":"d"},"da":{"\xd8":"OE","\xf8":"oe","\xc5":"AA","\xe5":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"st\xf8rre end"},"nb":{"&":"og","\xc5":"AA","\xc6":"AE","\xd8":"OE","\xe5":"aa","\xe6":"ae","\xf8":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","\xc5":"AA","\xc4":"AE","\xd6":"OE","\xe5":"aa","\xe4":"ae","\xf6":"oe"}}');function T(T,P){if("string"!=typeof T)throw Error("slugify: string argument expected");var D=I[(P="string"==typeof P?{replacement:P}:P||{}).locale]||{},M=void 0===P.replacement?"-":P.replacement,R=void 0===P.trim||P.trim,L=T.normalize().split("").reduce(function(I,T){var R=D[T];return void 0===R&&(R=N[T]),void 0===R&&(R=T),R===M&&(R=" "),I+R.replace(P.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return P.strict&&(L=L.replace(/[^A-Za-z0-9\s]/g,"")),R&&(L=L.trim()),L=L.replace(/\s+/g,M),P.lower&&(L=L.toLowerCase()),L}return T.extend=function(I){Object.assign(N,I)},T})(),N.exports.default=I()},4328:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=D;var P=T(41362);async function D(N){var I,T,D,M,R,L;let{options:$,sessionStore:F,newSession:B,isUpdate:U}=N,{adapter:H,jwt:z,events:W,callbacks:q,logger:G,session:{strategy:K,maxAge:V}}=$,Y={body:{},headers:[{key:"Content-Type",value:"application/json"},...U?[]:[{key:"Cache-Control",value:"private, no-cache, no-store"},{key:"Pragma",value:"no-cache"},{key:"Expires",value:"0"}]].filter(Boolean),cookies:[]},J=F.value;if(!J)return Y;if("jwt"===K)try{let N=await z.decode({...z,token:J});if(!N)throw Error("JWT invalid");let D=await q.jwt({token:N,...U&&{trigger:"update"},session:B}),M=(0,P.fromDate)(V),R=await q.session({session:{user:{name:null==N?void 0:N.name,email:null==N?void 0:N.email,image:null==N?void 0:N.picture},expires:M.toISOString()},token:D});Y.body=R;let L=await z.encode({...z,token:D,maxAge:$.session.maxAge}),H=F.chunk(L,{expires:M});null==(I=Y.cookies)||I.push(...H),await (null==(T=W.session)?void 0:T.call(W,{session:R,token:D}))}catch(N){G.error("JWT_SESSION_ERROR",N),null==(D=Y.cookies)||D.push(...F.clean())}else try{let{getSessionAndUser:N,deleteSession:I,updateSession:T}=H,D=await N(J);if(D&&D.session.expires.valueOf()<Date.now()&&(await I(J),D=null),D){let{user:N,session:I}=D,L=$.session.updateAge,F=I.expires.valueOf()-1e3*V+1e3*L,H=(0,P.fromDate)(V);F<=Date.now()&&await T({sessionToken:J,expires:H});let z=await q.session({session:{user:{name:N.name,email:N.email,image:N.image},expires:I.expires.toISOString()},user:N,newSession:B,...U?{trigger:"update"}:{}});Y.body=z,null==(M=Y.cookies)||M.push({name:$.cookies.sessionToken.name,value:J,options:{...$.cookies.sessionToken.options,expires:H}}),await (null==(R=W.session)?void 0:R.call(W,{session:z}))}else J&&(null==(L=Y.cookies)||L.push(...F.clean()))}catch(N){G.error("SESSION_ERROR",N)}return Y}},4338:N=>{N.exports=function(N,I){if(!(N instanceof I))throw TypeError("Cannot call a class as a function")},N.exports.__esModule=!0,N.exports.default=N.exports},4634:(N,I,T)=>{"use strict";T.r(I),T.d(I,{buildLanguageData:()=>$,resolveAlternativeLanguage:()=>M,resolveCountryCode:()=>R,resolveCurrentLanguage:()=>D,resolveIsGlobalLanguage:()=>L});var P=T(60409);let D=(N,I)=>N?.find(({name:N})=>N===I?.toLowerCase())??null,M=(N,I)=>N?.find(({name:N})=>N!==I?.toLowerCase())??null,R=N=>N?.split("-")[1]??P.Xn,L=N=>N===P.Xn,$=(N,I,T,P,D)=>({...N,currentLanguage:I,alternativeLanguage:T,countryCode:P,isGlobal:D})},4695:(N,I,T)=>{"use strict";T.d(I,{ao:()=>V,in:()=>z,td:()=>K,x6:()=>G,yi:()=>q});var P=T(86170),D=T(60409),M=T(65212),R=T(18571);T(19472);let L=` 178 fragment caseStudyPreviewFields on Item { 179 ... on CaseStudyPage { 180 displayName 181 language { 182 name 183 } 184 url {
185 path 186 } 187 previewTitle { 188 value 189 } 190 previewIntro { 191 value 192 } 193 previewImage { 194 data: jsonValue 195 } 196 metaImage { 197 data: jsonValue 198 } 199 } 200 } 201`,$=` 202 fragment caseStudyFields on Item { 203 ... on CaseStudyPage { 204 name 205 caseStudyCategory { 206 id: value 207 data: jsonValue 208 } 209 caseStudyHeroPublicationDate { 210 value 211 } 212 } 213 } 214`,F=` 215 fragment caseStudyCategoryFields on CaseStudyCategory { 216 id(format: "B") 217 name 218 caseStudyCategoryName { 219 value 220 } 221 caseStudyCategoryIntroText { 222 value 223 } 224 caseStudyCategoryHeaderImage { 225 data: jsonValue 226 } 227 } 228`,B=()=>({byName:new Map,byId:new Map}),U=N=>{let I=B();for(let T of N?.results??[]){let N=T?.parent?.parent?.name,P=T?.parent?.parent?.id,D=T?.heroImage?.data?.value?.src?T.heroImage:void 0;D&&(N&&I.byName.set(N.toLowerCase(),D),P&&I.byId.set((0,R.mf)(P),D))}return I},H=async(N,I,T)=>(await z([N],I,Math.max(4*T,50))).byName,z=async(N,I,T=Math.max(2*N.length,4))=>{let R=N.map(N=>N?.toSitecoreGUID()).filter(N=>!!N);if(!R.length)return B();let L=1===R.length?`{ name: "_path", value: "${R[0]}", operator: CONTAINS }`:`{ OR: [${R.map(N=>`{ name: "_path", value: "${N}", operator: CONTAINS }`).join(",")}] }`;try{let N=await (0,P.A)().request(` 229 query ( 230 $heroTemplateId: String! 231 $locale: String! 232 $heroItemName: String! 233 $totalResults: Int! 234 ) { 235 heroes: search( 236 where: { 237 AND: [ 238 { name: "_language", value: $locale, operator: EQ } 239 { name: "_templates", value: $heroTemplateId, operator: CONTAINS } 240 { name: "_name", value: $heroItemName, operator: EQ } 241 ${L} 242 ] 243 } 244 first: $totalResults 245 ) { 246 results { 247 name 248 ... on Hero { 249 heroImage { 250 data: jsonValue 251 } 252 parent { 253 parent { 254 id 255 name 256 } 257 } 258 } 259 } 260 } 261 } 262 `,{heroTemplateId:D.ak,locale:I,heroItemName:D.Ui,totalResults:T});return U(N?.heroes)}catch(N){return M.A.caseStudy("Failed getCaseStudyHeroImagesByPathIds",N),B()}},W=async(N,I,T,P)=>{if(!N?.caseStudies?.results?.length)return N;let D=await H(I,T,P);return D.size?{...N,caseStudies:{...N.caseStudies,results:N.caseStudies.results.map(N=>{let I=D.get(N.name?.toLowerCase()??"");return I?{...N,heroImage:I}:N})}}:N},q=(N,I,T)=>(0,P.A)().request(` 263 ${L} 264 ${$} 265 266 query ( 267 $caseStudyPageTemplateId: String! 268 $caseStudyItemId: String! 269 $totalResults: Int! 270 $locale: String! 271 ) { 272 caseStudies: search( 273 where: { 274 AND: [ 275 { name: "_language", value: $locale, operator: EQ } 276 { name: "_templates", value: $caseStudyPageTemplateId, operator: CONTAINS } 277 { name: "_path", value: $caseStudyItemId, operator: CONTAINS } 278 ] 279 } 280 first: $totalResults 281 orderBy: { name: "caseStudyHeroPublicationDate", direction: DESC } 282 ) { 283 results { 284 ...caseStudyPreviewFields 285 ...caseStudyFields 286 } 287 pageInfo { 288 endCursor 289 hasNext 290 } 291 total 292 } 293 } 294 `,{caseStudyPageTemplateId:D.qN,caseStudyItemId:N,totalResults:I,locale:T}).then(P=>W(P,N,T,I)).catch(N=>(M.A.caseStudy("Failed getCaseStudiesData",N),null)),G=(N,I,T,R,F)=>(0,P.A)().request(` 295 ${L} 296 ${$} 297 query ( 298 $totalResults: Int! 299 ) { 300 caseStudies: search( 301 where: { 302 AND: [ 303 { name: "_language", value: "${F}", operator: EQ } 304 { name: "_templates", value: "${D.qN}", operator: CONTAINS } 305 { name: "_path", value: "${N}", operator: CONTAINS } 306 ${I?`{ name: "_path", value: "${I}", operator: NCONTAINS }`:""} 307 { 308 AND: [{ 309 OR: [${R.map(N=>
309`{ name: "caseStudyCategory", value: "${N.toSitecoreGUID()}", operator: CONTAINS }`)} 310 ] 311 }] 312 } 313 ] 314 } 315 first: $totalResults 316 orderBy: { name: "caseStudyHeroPublicationDate", direction: DESC } 317 ) { 318 results { 319 ...caseStudyPreviewFields 320 ...caseStudyFields 321 } 322 pageInfo { 323 endCursor 324 hasNext 325 } 326 total 327 } 328 } 329 `,{totalResults:T}).then(I=>W(I,N,F,T)).catch(N=>(M.A.caseStudy("Failed getCaseStudiesDataByCategory",N),null)),K=(N,I,T,R,F)=>(0,P.A)().request(` 330 ${L} 331 ${$} 332 333 query ( 334 $totalResults: Int! 335 $endCursor: String! 336 ) { 337 caseStudies: search( 338 where: { 339 AND: [ 340 { name: "_language", value: "${F}", operator: EQ } 341 { name: "_templates", value: "${D.qN}", operator: CONTAINS } 342 { name: "_path", value: "${N}", operator: CONTAINS } 343 ${R&&`{ 344 AND: [{ 345 OR: [${R.map(N=>`{ name: "caseStudyCategory", value: "${N.toSitecoreGUID()}", operator: CONTAINS }`)} 346 ] 347 }] 348 }`} 349 ] 350 } 351 first: $totalResults 352 after: $endCursor 353 orderBy: { name: "caseStudyHeroPublicationDate", direction: DESC } 354 ) { 355 results { 356 ...caseStudyPreviewFields 357 ...caseStudyFields 358 } 359 pageInfo { 360 endCursor 361 hasNext 362 } 363 total 364 } 365 } 366 `,{totalResults:I,endCursor:T}).then(T=>W(T,N,F,I)).catch(N=>(M.A.caseStudy("Failed getNextCaseStudiesData",N),null)),V=(N,I)=>(0,P.A)().request(` 367 ${F} 368 369 query ($path: String!, $locale: String!) { 370 item(path: $path, language: $locale) { 371 ...caseStudyCategoryFields 372 } 373 } 374 `,{path:`${N}`,locale:`${I}`}).then(N=>N).catch(N=>(M.A.caseStudy("Failed getCaseStudyCategoryById",N),null))},4863:(N,I,T)=>{"use strict";T.d(I,{V:()=>L});var P=T(78028),D=T(82752),M=T(99742);class R{#c;constructor(N){this.#c=P.A.create({baseURL:N?M.env.MY_BRUNEL_API_URL:"/api/gdpr",timeout:15e3,headers:{"Content-Type":"application/json","Ocp-Apim-Subscription-Key":M.env.MY_BRUNEL_API_TOKEN}}),this.#c.interceptors.response.use(N=>N,N=>(0,D.r)(N))}sendConsent=N=>this.#c.post("api/gdpr/consent",{token:N.token,instruction:N.instruction}).then(N=>N.data)}let L=new R;new R(!0)},4896:(N,I,T)=>{"use strict";T.d(I,{Z:()=>q});var P=T(37876),D=T(68602),M=T(77374),R=T(14232),L=T(35662),$=T(98176);let F=({locale:N,initialFile:I=null,fileSizeIncorrect:T,fileTypeIncorrect:P,fileUploadAddedOn:D,fileProps:F,setDataLayer:B})=>{let U=(0,R.useRef)(!1),H=(0,R.useRef)(null),z=(0,R.useRef)(null),[W,q]=(0,R.useState)(null),[G,K]=(0,R.useState)(null),V=(0,L.VB)({noClick:!0,noKeyboard:!0,maxFiles:1,accept:{"application/pdf":[".pdf"],"application/rtf":[".rtf"],"application/msword":[".doc"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":[".docx"]},maxSize:$.CF,onDrop:(N,I)=>{let D=N?.[0];I?.length?K((0,M.Du)(I[0],P,T)):(B?.(),D&&(K(null),F?.onDrop?.(D),q(D)))},onDragOver:N=>N.preventDefault()}),Y=N=>{let I=N.currentTarget.files?.[0];B?.(),I&&(0,M.kD)(I)&&(F?.onDrop?.(I),q(I))},J=()=>{q(null),F?.onDelete?.()},Q=N=>{U.current||(N?.(),U.current=!0)},Z=I=>(0,M.F8)(I,D,N);return(0,R.useEffect)(()=>{W&&(H.current&&URL.revokeObjectURL(H.current),H.current=URL.createObjectURL(W))},[W]),(0,R.useEffect)(()=>{I&&(0,M.kD)(I)&&(K(null),F?.onDrop?.(I),q(I))},[I]),{...V,mobileRef:z,fileDownloadUrl:H,uploadedFile:W,errorMessage:G,handleMobileFileChange:Y,handleDeleteFile:J,triggerDataLayerErrorOnce:Q,resolveFileAddedDate:Z,formatFileSizeInMB:M.Tv}};var B=T(77470),U=T(84612),H=T(6807),z=T(92678),W=T(36379);let q=({id:N,locale:I,initialFile:T=null,showHeader:M=!0,label:R,placeholder:L,dragAndDropPlaceholder:$,dragAndDropActivePlaceholder:q,fileSizeIncorrect:G,fileTypeIncorrect:K,chooseFile:V,fileUploadAddedOn:Y,errors:J,fileProps:Q,setDataLayer:Z,setDataLayerError:X,trackingProps:ee,variant:et="brunel"})=>{let{getRootProps:er,getInputProps:en,inputRef:ea,isFocused:ei,isDragAccept:eo,isDragReject:es,isDragActive:el,mobileRef:ec,fileDownloadUrl:eu,uploadedFile:ed,errorMessage:ef,handleMobileFileChange:eh,handleDeleteFile:ep,triggerDataLayerErrorOnce:em,resolveFileAddedDate:eg,formatFileSizeInMB:ey}=F({locale:I,initialFile:T,fileSizeIncorrect:G,fileTypeIncorrect:K,fileUploadAddedOn:Y,fileProps:Q,setDataLayer:Z}),eb=()=>(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)("div",{className:(0,W.cn)("hidden flex-col items-center gap-2 lg:flex",{"pointer-events-none":el}),children:[(0,P.jsx)("input",{...ee,...en()}),(0,P.jsx)(z.Button,{variant:"taylorhopkinson"===et?"taylorhopkinson":"alternative",background:"white",plainText:V,iconName:"plus",iconSide:"left",iconColor:"white",onClick:()=>{ea.current?.click()}}),(0,P.jsx)(H.o,{className:(0,W.cn)("text-center text-ui-grey",{"text-th-body-text":"taylorhopkinson"===et}),plainText:el?q:$})]}),(0,P.jsxs)("div",{className:"lg:hidden",children:[(0,P.jsx)("input",{...ee,...en(),ref:ec,title:R,type:"file",className:"hidden",onChange:eh}),(0,P.jsx)(z.Button,{className:"w-full",variant:"taylorhopkinson"===et?"taylorhopkinson":"alternative",background:"white",plainText:V,iconName:"plus",iconSide:"left",iconColor:"white",onClick:()=>ec?.current?.click()})]})]}),ev=()=>ed?(0,P.jsxs)("div",{className:"flex w-full flex-col justify-between gap-2 rounded-sm border border-solid border-ui-grey p-4 md:flex-row",children:[(0,P.jsxs)("div",{className:"flex flex-1 flex-col md:gap-2",children:[(0,P.jsx)(H.o,{type:"h4",className:(0,W.cn)("wrap-break-word text-brunel-dark-grey",{"text-th-body-text":"taylorhopkinson"===et}),plainText:ed.name,suppressHotjar:!0}),(0,P.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,P.jsx)(H.o,{type:"medium",className:(0,W.cn)("text-brunel-dark-grey",{"text-th-body-text":"taylorhopkinson"===et}),suppressHotjar:!0,plainText:eg(new Date)}),(0,P.jsx)(H.o,{type:"small",className:(0,W.cn)("text-ui-grey",{"text-th-body-text":"taylorhopkinson"===et}),suppressHotjar:!0,plainText:ey(ed.size)})]})]}),(0,P.jsxs)("div",{className:"flex gap-3",children:[(0,P.jsx)("a",{title:"Download",download:!0,href:eu.current??"#",className:"flex size-12 cursor-pointer items-center justify-center border-2 border-brunel-dark-grey shadow-form-file-button",children:(0,P.jsx)(U.s3,{})}),(0,P.jsx)("div",{id:`FormFile-${N}-delete`,className:"flex size-12 cursor-pointer items-center justify-center border-2 border-ui-bourbon shadow-form-file-button",onClick:ep,children:(0,P.jsx)(U.uc,{color:"ui-bourbon"})})]})]}):null;return(0,P.jsxs)("div",{id:`FormFile-${N}`,className:(0,W.cn)("flex w-full flex-col gap-2"),children:[M&&(0,P.jsxs)("div",{className:"flex flex-col",children:[(0,P.jsx)(B.l,{id:N,label:R,type:"taylorhopkinson"===et?"title-th":"title"}),(0,P.jsx)(H.o,{type:"medium",plainText:L}),J?.map(I=>
374{if(I?.touched&&I?.message)return em(X),(0,P.jsx)(D.j,{id:I?.id??N,error:I.message},`FormError-${I?.id??N}`)})]}),ed?(0,P.jsx)(ev,{}):(0,P.jsx)("div",{...er({className:(0,W.cn)("dropzone hidden h-auto flex-1 flex-col items-center justify-center gap-2 rounded-lg border border-dashed border-brunel-dark-grey bg-white p-6 select-none focus-within:border-2 lg:flex",{"bg-th-generic-background-background border-th-primary-background":"taylorhopkinson"===et},{"border-ui-grey":ei},{"border-brunel-yellow":eo},{"border-ui-bourbon":es})}),children:(0,P.jsx)(eb,{})}),ef?(0,P.jsx)(H.o,{className:"text-red-500",plainText:ef}):null,(0,P.jsx)("div",{className:"lg:hidden",children:!ed&&(0,P.jsx)(eb,{})})]})}},5117:(N,I,T)=>{"use strict";T.d(I,{A:()=>q});var P,D,M=T(37876),R=T(14232),L=T(74218),$=T(25602),F=T(85609),B=T(12130);T(81548),(P=D||(D={})).Preview="preview",P.Edit="edit",P.Normal="normal";var U=T(18847),H=T.n(U),z=T(30463);let W=H()(()=>T.e(328).then(T.bind(T,88328)),{loadableGenerated:{webpack:()=>[88328]},ssr:!1});L.enableNextClientsideComponents(H(),W);let q=()=>{let{page:N}=R.useContext(F.w_),{pageState:I}=N.layout.sitecore.context;return L.setContextProperties({sitecoreEdgeUrl:z.A.api.edge?.edgeUrl,sitecoreEdgeContextId:z.A.api.edge?.contextId,pageState:I||B.IY.Normal,siteName:N.siteName||z.A.defaultSite,eventsSDK:$}),(0,M.jsx)(L.ExternalComponentBundle,{})}},5392:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),Object.defineProperty(I,"default",{enumerable:!0,get:function(){return W}});let P=T(64252)._(T(14232)),D=T(15374);function M(N){return N&&N.default?N.default:N}let R=[],L=[],$=!1;function F(N){let I=N(),T={loading:!0,loaded:null,error:null};return T.promise=I.then(N=>(T.loading=!1,T.loaded=N,N)).catch(N=>{throw T.loading=!1,T.error=N,N}),T}function B(N,I){let T=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},I),R=null;function F(){if(!R){let I=new U(N,T);R={getCurrentValue:I.getCurrentValue.bind(I),subscribe:I.subscribe.bind(I),retry:I.retry.bind(I),promise:I.promise.bind(I)}}return R.promise()}if(!$){let N=T.webpack&&1?T.webpack():T.modules;N&&L.push(I=>{for(let T of N)if(I.includes(T))return F()})}function B(){F();let N=P.default.useContext(D.LoadableContext);N&&Array.isArray(T.modules)&&T.modules.forEach(I=>{N(I)})}function H(N,I){B();let D=P.default.useSyncExternalStore(R.subscribe,R.getCurrentValue,R.getCurrentValue);return P.default.useImperativeHandle(I,()=>({retry:R.retry}),[]),P.default.useMemo(()=>D.loading||D.error?P.default.createElement(T.loading,{isLoading:D.loading,pastDelay:D.pastDelay,timedOut:D.timedOut,error:D.error,retry:R.retry}):D.loaded?P.default.createElement(M(D.loaded),N):null,[N,D])}return H.preload=()=>F(),H.displayName="LoadableComponent",P.default.forwardRef(H)}class U{constructor(N,I){this._loadFn=N,this._opts=I,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:N,_opts:I}=this;N.loading&&("number"==typeof I.delay&&(0===I.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},I.delay)),"number"==typeof I.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},I.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(N=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(N){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...N},this._callbacks.forEach(N=>N())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(N){return this._callbacks.add(N),()=>{this._callbacks.delete(N)}}}function H(N){return B(F,N)}function z(N,I){let T=[];for(;N.length;){let P=N.pop();T.push(P(I))}return Promise.all(T).then(()=>{if(N.length)return z(N,I)})}H.preloadAll=()=>new Promise((N,I)=>{z(R).then(N,I)}),H.preloadReady=(N=[])=>new Promise(I=>{let T=()=>($=!0,I());z(L,N).then(T,T)}),window.__NEXT_PRELOADREADY=H.preloadReady;let W=H},5419:(N,I,T)=>{"use strict";T.d(I,{G:()=>D});var P,D=((P={}).Default="default",P.MyBrunel="31D8124C-289C-4B7C-AD33-4833ADDA0DCA",P.BrunelApp="1E7DCC61-6BE9-457B-872F-685C0EA9DAFE",P.VacancyDetails="1CCEC1F8-3EEA-48A5-B932-6F0E78800245",P)},5552:(N,I,T)=>{"use strict";T.d(I,{f:()=>M});var P=T(25258),D=T(43691);function M(N){return!(!(0,P.$)(N)&&"number"!=typeof N||isNaN(+(0,D.a)(N)))}},5665:(N,I,T)=>{"use strict";T.r(I),T.d(I,{buildOverviewCategories:()=>M,getActiveCategoryLabel:()=>R,normalizeOverviewCategories:()=>D});let P=N=>(N?.caseStudyCategoryName?.value||N?.fields?.caseStudyCategoryName?.value||N?.fields?.eventCategoryName?.value||N?.displayName||N?.name||"").trim(),D=N=>N?.length?N.map(N=>{let I=P(N);return N?.id&&I?{id:N.id,caseStudyCategoryName:{value:I}}:null}).filter(N=>null!=N):[],M=(N,I,T)=>[{id:"",caseStudyCategoryName:{value:T}},...[...D(N?.data?.datasource?.allCategories?.targetItems),...D(N?.data?.datasource?.parent?.allCategories?.targetItems),...I??[]].filter((N,I,T)=>T.findIndex(I=>I.caseStudyCategoryName.value.toLowerCase()===N.caseStudyCategoryName.value.toLowerCase())===I)],R=(N,I,T)=>{if(!N||!N.categoryPageId&&(!N.category||"All"===N.category))return I;let P=T.find(I=>I.id&&I.id===N.categoryPageId);if(P)return P.caseStudyCategoryName.value;let D=N.category?.replaceSpacesWithDashes().toLowerCase()??"",M=T.find(N=>N.id&&N.caseStudyCategoryName.value.replaceSpacesWithDashes().toLowerCase()===D);return M?.caseStudyCategoryName.value??N.category?.replaceDashesWithSpaces()??I}},5742:(N,I,T)=>{"use strict";T.d(I,{J:()=>H});var P=T(37876),D=T(68602),M=T(77470),R=T(6807),L=T(47137),$=T(63808),F=T(14232),B=T(36379);let U=(0,L.F)([],{variants:{direction:{vertical:"[&>div]:flex-col",horizontal:"[&>div]:flex-row"},mode:{light:"brunel-radio-light",dark:"brunel-radio-dark"}},defaultVariants:{direction:"vertical",mode:"light"}}),H=(0,F.forwardRef)(({id:N,showHeader:I=!0,options:T,checkedValue:L,label:H,direction:z,mode:W,errors:q,setDataLayer:G,setDataLayerError:K,useFormik:V=!0,onSelect:Y,trackingProps:J},Q)=>{let Z=(0,F.useRef)(!1);return(0,P.jsxs)("fieldset",{id:`FormRadioGroup-${N}`,className:(0,B.cn)("brunel-radio relative flex w-full flex-col gap-2",U({direction:z,mode:W})),children:[I&&(0,P.jsxs)("div",{className:"flex flex-col",children:[(0,P.jsx)(M.l,{id:N,label:H,focusOnClick:!1}),q?.map(I=>
374{if(I?.touched&&I?.message)return Z.current||(K?.(),Z.current=!0),(0,P.jsx)(D.j,{id:I?.id??N,error:I.message},`FormError-${I?.id??N}`)})]}),(0,P.jsx)("div",{className:"flex gap-3",children:Object.entries(T).map(([I,T])=>{let D={...J,id:`${N}-${T}`,name:N,type:"radio",className:"radio form-radio size-4 cursor-pointer radio-neutral",value:I,...void 0!==L?{checked:L===I}:{},onClick:()=>{Y?.(I),G?.()},onKeyUp:N=>{"Tab"===N.key&&(G?.(),Y?.(I))}};return(0,P.jsxs)("div",{className:"flex h-max items-center gap-2",children:[V?(0,P.jsx)($.D0,{ref:Q,...D}):(0,P.jsx)("input",{ref:Q,...D}),(0,P.jsx)("label",{htmlFor:`${N}-${T}`,className:"hover:cursor-pointer",children:(0,P.jsx)(R.o,{type:"medium",plainText:T.decodeURIComponentOrNull()})})]},`${N}-${T}`)})})]})});H.displayName="FormRadioGroup"},5861:(N,I,T)=>{"use strict";var P=T(29563);Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0,I.proxyLogger=W,I.setLogger=z;var D=P(T(43081)),M=P(T(84620)),R=P(T(16108)),L=T(42226);function $(N,I){var T=Object.keys(N);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(N);I&&(P=P.filter(function(I){return Object.getOwnPropertyDescriptor(N,I).enumerable})),T.push.apply(T,P)}return T}function F(N){for(var I=1;I<arguments.length;I++){var T=null!=arguments[I]?arguments[I]:{};I%2?$(Object(T),!0).forEach(function(I){(0,M.default)(N,I,T[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(T)):$(Object(T)).forEach(function(I){Object.defineProperty(N,I,Object.getOwnPropertyDescriptor(T,I))})}return N}function B(N){if(N instanceof Error&&!(N instanceof L.UnknownError))return{message:N.message,stack:N.stack,name:N.name};if(U(N)){var I;N.error=B(N.error),N.message=null!=(I=N.message)?I:N.error.message}return N}function U(N){return!!(null!=N&&N.error)}var H={error:function(N,I){I=B(I),console.error("[next-auth][error][".concat(N,"]"),"\nhttps://next-auth.js.org/errors#".concat(N.toLowerCase()),I.message,I)},warn:function(N){console.warn("[next-auth][warn][".concat(N,"]"),"\nhttps://next-auth.js.org/warnings#".concat(N.toLowerCase()))},debug:function(N,I){console.log("[next-auth][debug][".concat(N,"]"),I)}};function z(){var N=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},I=arguments.length>1?arguments[1]:void 0;I||(H.debug=function(){}),N.error&&(H.error=N.error),N.warn&&(H.warn=N.warn),N.debug&&(H.debug=N.debug)}function W(){var N=arguments.length>0&&void 0!==arguments[0]?arguments[0]:H,I=arguments.length>1?arguments[1]:void 0;try{if("u"<typeof window)return N;var T={},P=function(N){var P;T[N]=(P=(0,R.default)(D.default.mark(function T(P,M){var R,L;return D.default.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(H[N](P,M),"error"===N&&(M=B(M)),M.client=!0,R="".concat(I,"/_log"),L=new URLSearchParams(F({level:N,code:P},M)),!navigator.sendBeacon){T.next=8;break}return T.abrupt("return",navigator.sendBeacon(R,L));case 8:return T.next=10,fetch(R,{method:"POST",body:L,keepalive:!0});case 10:return T.abrupt("return",T.sent);case 11:case"end":return T.stop()}},T)})),function(N,I){return P.apply(this,arguments)})};for(var M in N)P(M);return T}catch(N){return H}}I.default=H},6032:(N,I,T)=>{"use strict";T.d(I,{MS:()=>L,e_:()=>R,zP:()=>M});let P=N=>{if(null==N)return;let I="string"==typeof N?N.trim():String(N);if(!I)return;let T=Number(I);return Number.isFinite(T)?T:void 0},D=(N,I)=>{let T=P(N),D=P(I);if(void 0!==T&&void 0!==D)return`https://www.google.com/maps?q=${T},${D}`},M=N=>{let I=N?.eventLocationName?.value;return"string"==typeof I&&I.trim().length>0?I.trim():void 0},R=N=>{let I=P(N?.brunelMapCentralPointLatitude?.value),T=P(N?.brunelMapCentralPointLongitude?.value);if(void 0!==I&&void 0!==T)return{latitude:I,longitude:T}},L=N=>{let I=R(N);if(I)return D(I.latitude,I.longitude)}},6326:(N,I,T)=>{let P=T(79289);function D(N,...I){for(let T of I)if(P(T))for(let[I,M]of Object.entries(T))"__proto__"!==I&&"constructor"!==I&&(P(N[I])&&P(M)?N[I]=D(N[I],M):void 0!==M&&(N[I]=M));return N}N.exports=D},6623:(N,I,T)=>{"use strict";T.r(I),T.d(I,{useOneTrustLoaded:()=>M,useOneTrustPrivacyNotice:()=>R});var P=T(36429),D=T(14232);let M=()=>{let[N,I]=(0,D.useState)(!1);return(0,D.useEffect)(()=>{(0,P.isOneTrustLoaded)()&&I(!0)},[]),N},R=()=>{let N=M(),[I,T]=(0,D.useState)(!1);return{oneTrustLoaded:N,noticesLoaded:I,setNoticesLoaded:T}}},6807:(N,I,T)=>{"use strict";T.d(I,{o:()=>U});var P=T(37876),D=T(85609),M=T(22544),R=T(40163),L=T(47137),$=T(14232),F=T(36379);let B=(0,L.F)("",{variants:{size:{desktop:"",mobile:""},type:{h1:"text-2xl md:text-d-h1",h2:"mb-6 text-m-h2 md:mb-8 md:text-d-h2",h3:"mb-4 text-m-h3 md:mb-6 md:text-d-h3",h4:"mb-2 text-m-h4 md:text-d-h4",h5:"mb-2 text-m-h5 md:text-d-h5",large:"text-m-body-large md:text-d-body-large",medium:"text-m-body-medium md:text-d-body-medium",small:"text-m-body-small md:text-d-body-small"}
374,suppressHotjar:{true:"data-hj-suppress",false:""}},defaultVariants:{size:"desktop"}}),U=({type:N="medium",plainText:I,linkField:T,textField:L,className:U,parseText:H,suppressHotjar:z=!1,...W})=>{let{page:q}=(0,D.M5)(),G=q.mode.isEditing,K=T&&T?.value?.href!==""||G&&!L,V=L&&L?.value!==""||G&&!T,Y=I&&""!==I&&!L&&!T,J=["large","medium","small"].includes(N)?"p":N;return Y?(0,$.createElement)(J,{className:(0,F.cn)(B({type:N,className:U,suppressHotjar:z})),...H&&{dangerouslySetInnerHTML:{__html:String(I)},suppressHydrationWarning:!0},...W},H?null:I):K?(0,$.createElement)(J,{className:(0,F.cn)(B({type:N,className:U,suppressHotjar:z})),...W},(0,P.jsx)(M.N,{field:T})):V?(0,$.createElement)(J,{className:(0,F.cn)(B({type:N,className:U,suppressHotjar:z})),...W},(0,P.jsx)(R.E,{field:L})):null}},7073:(N,I,T)=>{"use strict";T.d(I,{o:()=>D});let P=N=>{if(!N)return;if("string"==typeof N)return{value:N};let I=N;return"string"==typeof I.value?{value:I.value}:I.jsonValue&&"string"==typeof I.jsonValue.value?{value:I.jsonValue.value}:void 0},D=(N,I="center center")=>{let T=P(N),D=T?.value;if(!D)return I;try{let N=JSON.parse(D);if(N&&"object"==typeof N){let I=N.x,T=N.y;if("number"==typeof I&&"number"==typeof T)return`${I}% ${T}%`}}catch(N){console.warn("Failed to parse heroImageFocalPoint:",N)}return I}},7111:(N,I,T)=>{"use strict";T.r(I),T.d(I,{MY_BRUNEL_CHAT_ID:()=>P,MY_BRUNEL_SENDER:()=>M,MY_BRUNEL_SENDER_ID:()=>D});let P=-1,D="brunel",M="Brunel"},7162:N=>{N.exports=function(N,I){(null==I||I>N.length)&&(I=N.length);for(var T=0,P=Array(I);T<I;T++)P[T]=N[T];return P},N.exports.__esModule=!0,N.exports.default=N.exports},7294:N=>{N.exports=function(N){if(void 0===N)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return N},N.exports.__esModule=!0,N.exports.default=N.exports},7436:(N,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),function(N,I){for(var T in I)Object.defineProperty(N,T,{enumerable:!0,get:I[T]})}(I,{UnrecognizedActionError:function(){return T},unstable_isUnrecognizedActionError:function(){return P}});class T extends Error{constructor(...N){super(...N),this.name="UnrecognizedActionError"}}function P(N){return!!(N&&"object"==typeof N&&N instanceof T)}("function"==typeof I.default||"object"==typeof I.default&&null!==I.default)&&void 0===I.default.__esModule&&(Object.defineProperty(I.default,"__esModule",{value:!0}),Object.assign(I.default,I),N.exports=I.default)},7749:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),function(N,I){for(var T in I)Object.defineProperty(N,T,{enumerable:!0,get:I[T]})}(I,{default:function(){return $},getImageProps:function(){return L}});let P=T(64252),D=T(45119),M=T(22843),R=P._(T(90969));function L(N){let{props:I}=(0,D.getImgProps)(N,{defaultLoader:R.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[N,T]of Object.entries(I))void 0===T&&delete I[N];return{props:I}}let $=M.Image},7877:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});let P=T(73593);I.default=function(N){if(!(0,P.default)(N))throw TypeError("Invalid UUID");return parseInt(N.slice(14,15),16)}},7945:(N,I,T)=>{var P=T(12883).default,D=T(7294);N.exports=function(N,I){if(I&&("object"==P(I)||"function"==typeof I))return I;if(void 0!==I)throw TypeError("Derived constructors may only return object or undefined");return D(N)},N.exports.__esModule=!0,N.exports.default=N.exports},7957:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});let P=T(26584),D=T(36592),M=T(72736);I.default=function(N,I,T){if(P.default.randomUUID&&!I&&!N)return P.default.randomUUID();let R=(N=N||{}).random??N.rng?.()??(0,D.default)();if(R.length<16)throw Error("Random bytes length must be >= 16");if(R[6]=15&R[6]|64,R[8]=63&R[8]|128,I){if((T=T||0)<0||T+16>I.length)throw RangeError(`UUID byte range ${T}:${T+15} is out of buffer bounds`);for(let N=0;N<16;++N)I[T+N]=R[N];return I}return(0,M.unsafeStringify)(R)}},8496:(N,I,T)=>{"use strict";T.d(I,{f:()=>R});var P=T(86170),D=T(65212);let M=` 375 fragment metaItemViewModel on Item { 376 ... on IMetaData { 377 id: xrmId { 378 value 379 } 380 text: xrmText { 381 value 382 } 383 name: urlDisplayName { 384 value 385 } 386 type: __typename 387 } 388 } 389`,R=(N,I)=>N&&""!==N.trim()?(0,P.A)(!0).request(` 390 ${M} 391 392 query ($keyId: String!, $language: String!) { 393 IMetaData: search( 394 where: { 395 AND: [ 396 { name: "_path", value: "F3025431-454E-431E-A8E2-ADD3C1669FD7", operator: CONTAINS } 397 { 398 name: "_templates" 399 value: "DE70EA6F-EB70-4161-95C5-C2E94D51FB87" 400 operator: CONTAINS 401 } 402 { name: "xrmId", value: $keyId, operator: EQ } 403 { name: "_language", value: $language, operator: CONTAINS } 404 ] 405 } 406 first: 1 407 ) { 408 translations: results { 409 ...metaItemViewModel 410 } 411 } 412 } 413 `,{keyId:N,language:I}).then(N=>N?.IMetaData?.translations).catch(N=>(D.A.ui("Failed to fetch getFacetValue",N),null)):Promise.resolve(null)},8871:(N,I,T)=>{"use strict";T.d(I,{r:()=>F});var P=T(78028),D=T(54956),M=T(65212),R=T(82752),L=T(99742);class ${#u;#d={token:"",expiresAt:0};constructor(){this.#u=(0,D.WQ)(P.A.create({baseURL:L.env.API_HOST_CRM||"/api/mybrunel/crm",timeout:3e4,headers:{"Ocp-Apim-Subscription-Key":L.env.API_HOST_CRM_KEY??""}}),{ttl:3e5}),this.#u.interceptors.request.use(async N=>((!this.#d.token||Date.now()>=this.#d.expiresAt)&&await this.#f(!!L.env.API_HOST_CRM),this.#d.token&&(N.headers.Authorization=`Bearer ${this.#d.token}
413`),N)),this.#u.interceptors.response.use(async N=>N,N=>(0,R.r)(N))}async #f(N){let I=L.env.AZURE_AD_TENANT_ID,T=L.env.CRM_CLIENT_ID,D=L.env.CRM_CLIENT_SECRET,R=L.env.CRM_SCOPE;try{let L;if(N){if(!I||!T||!D||!R)throw M.A.api("Missing environment variables for CRM client credentials"),Error("Missing CRM credentials configuration.");L=await P.A.post(`https://login.microsoftonline.com/${I}/oauth2/v2.0/token`,new URLSearchParams({client_id:T,client_secret:D,grant_type:"client_credentials",scope:R}),{headers:{"Content-Type":"application/x-www-form-urlencoded"}})}else L=await P.A.post("/api/mybrunel/crm/refreshToken");let{access_token:$,expires_in:F}=L.data;this.#d.token=$,this.#d.expiresAt=Date.now()+1e3*F-5e3,M.A.api("Fetched new CRM token successfully."),M.A.api(`${$}`)}catch{throw Error("Error refreshing CRM access token.")}}async getUserDataCrm(N){if(!N?.email)return null;try{let I=await this.#u.get("/candidates",{headers:{"X-Email-Address":N.email}});return I.data?.value??null}catch(N){return M.A.api("Failed to fetch user from CRM API",N instanceof Error?N.message:N),null}}async getUserPlacementsCrm(N){if(!N?.userId)return[];try{let I=await this.#u.get(`/candidates/${N.userId}/placements`);return I.data?.value??[]}catch(N){return M.A.api("Failed to fetch placements from CRM API",N instanceof Error?N.message:N),[]}}async getUserConsultantCrm(N){if(!N?.userId)return null;try{let I=await this.#u.get(`/candidates/${N.userId}/consultant`);return I.data?.value??null}catch(N){return M.A.api("Failed to fetch consultant from CRM API",N instanceof Error?N.message:N),null}}async getUserColleaguesCrm(N){if(!N?.userId)return[];try{let I=await this.#u.get(`/candidates/${N.userId}/colleagues`);return I.data?.value??[]}catch(N){return M.A.api("Failed to fetch colleagues from CRM API",N instanceof Error?N.message:N),[]}}}let F=new $},9277:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),Object.defineProperty(I,"workUnitAsyncStorageInstance",{enumerable:!0,get:function(){return P}});let P=(0,T(55786).createAsyncLocalStorage)()},9391:N=>{let I=/(\w+)=("[^"]*")/g;N.exports=N=>{let T={};try{for(;null!==I.exec(N);)RegExp.$1&&RegExp.$2&&(T[RegExp.$1]=RegExp.$2.slice(1,-1))}catch(N){}return T}},9557:(N,I,T)=>{"use strict";T.r(I),T.d(I,{default:()=>B});var P=T(37876),D=T(85609),M=T(77328),R=T.n(M),L=T(920),$=T(72930),F=T(85464);let B=({fields:N})=>{let{page:I}=(0,D.M5)();if(!N?.eventHeroTitle?.value||!N?.eventHeroPublicationDate?.value)return null;let T=I.layout.sitecore.route?.fields,M=I.layout.sitecore.context,B=(0,F.p)(M),U=" - Brunel",H=String(N.eventHeroTitle.value),z=(0,$.G)(M,B,N.eventUrl),W=N.eventDescription?.value,q="string"==typeof W?W:String(W??""),G=q.trim().length>0?q:H,K=N.eventHeroImage?.value?.src,V=(0,L.qL)(T?.metaOGTitle?.value),Y=(0,L.qL)(T?.metaDescription?.value)||(0,L.qL)(T?.metaOGDescription?.value),J=T?.metaImage?.value?.src||T?.metaOGImage?.value?.src,Q=(0,L.ZK)({heroTitle:H,metaTitle:T?.metaTitle?.value,metaOGTitle:T?.metaOGTitle?.value,suffix:U}),Z=Y??G,X=J??K,ee=z?{"@context":"https://schema.org","@type":"Event",name:H,description:Z,url:z,startDate:N.eventHeroPublicationDate.value,...N.eventHeroPublicationEndDate?.value?{endDate:N.eventHeroPublicationEndDate.value}:{},image:X,organizer:{"@type":"Organization","@id":"https://www.brunel.net/#organization"},...N.eventLocationName?.value||N.brunelMapCentralPointLatitude?.value&&N.brunelMapCentralPointLongitude?.value?{location:{"@type":"Place",...N.eventLocationName?.value?{name:String(N.eventLocationName.value)}:{},...N.brunelMapCentralPointLatitude?.value&&N.brunelMapCentralPointLongitude?.value?{geo:{"@type":"GeoCoordinates",latitude:N.brunelMapCentralPointLatitude.value,longitude:N.brunelMapCentralPointLongitude.value}}:{}}}:{}}:null;return(0,P.jsxs)(R(),{children:[(0,P.jsx)("title",{children:Q}),(0,P.jsx)("meta",{property:"og:title",content:V??Q}),(0,P.jsx)("meta",{name:"twitter:title",content:Q}),(0,P.jsx)("meta",{name:"description",content:Z}),(0,P.jsx)("meta",{property:"og:description",content:Z}),(0,P.jsx)("meta",{name:"twitter:description",content:Z}),X&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("meta",{property:"og:image",content:X}),(0,P.jsx)("meta",{name:"twitter:image",content:X})]}),ee&&(0,P.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(ee)}})]})}},9863:(N,I,T)=>{"use strict";T.d(I,{K:()=>D});var P=T(14232);let D=N=>{let I=N.rendering&&N.rendering.componentName?N.rendering.componentName:"Unnamed Component";N.errorOverride||console.log(`Component props for unimplemented '${I}' component`,N);let T=N.errorOverride||"Content SDK component is missing React implementation. See the developer console for more information.";return P.createElement("div",{style:{background:"darkorange",outline:"5px solid orange",padding:"10px",color:"white",maxWidth:"500px"}},P.createElement("h2",null,I),P.createElement("p",null,T))};D.displayName="MissingComponent"},9955:(N,I,T)=>{let P=T(98311);function D(){let N={},I=Object.keys(P);for(let T=I.length,P=0;P<T;P++)N[I[P]]={distance:-1,parent:null};return N}function M(N){let I=D(),T=[N];for(I[N].distance=0;T.length;){let N=T.pop(),D=Object.keys(P[N]);for(let P=D.length,M=0;M<P;M++){let P=D[M],R=I[P];-1===R.distance&&(R.distance=I[N].distance+1,R.parent=N,T.unshift(P))}}return I}function R(N,I){return function(T){return I(N(T))}}function L(N,I){let T=[I[N].parent,N],D=P[I[N].parent][N],M=I[N].parent;for(;I[M].parent;)T.unshift(I[M].parent),D=R(P[I[M].parent][M],D),M=I[M].parent;return D.conversion=T,D}N.exports=function(N){let I=M(N),T={},P=Object.keys(I);for(let N=P.length,D=0;D<N;D++){let N=P[D];null!==I[N].parent&&(T[N]=L(N,I))}return T}},10409:(N,I,T)=>{"use strict";T.d(I,{a:()=>$});var P=T(47137),D=T(14232),M=T(36379);let R=` 414 box box-border 415`,L=(0,P.F)([R],{variants:{m:{0:"m-0",2:"m-2",4:"m-4",8:"m-8"},p:{0:"p-0",2:"p-2",4:"p-4",8:"p-8"},h:{fit:"h-fit"},bgColor:{default:"inherit",white:"bg-white",red:"bg-red-500"}},defaultVariants:{m:0,p:0,bgColor:"default"}}),$=(0,D.forwardRef)(({m:N,p:I,h:T,bgColor:P,className:R,as:$="div",children:F,...B},U)=>{let H={...B};return delete H.modifyComponentProps,delete H.componentFactory,delete H.sitecoreContext,delete H.updateSitecoreContext,(0,D.createElement)($,{ref:U,className:(0,M.cn)(L({m:N,p:I,h:T,bgColor:P,className:R})),...H},F)});$.displayName="Box"},10490:(N,I,T)=>{let P=T(93298),D=T(71807);class M{constructor(N){Object.assign(this,N);const{constructor:I,...T}=Object.getOwnPropertyDescriptors(this.constructor.prototype);Object.defineProperties(this,T)}set expires_in(N){this.expires_at=D()+Number(N)}get expires_in(){return Math.max.apply(null,[this.expires_at-D(),0])}expired(){return 0===this.expires_in}claims(){if(!this.id_token)throw TypeError("id_token not present in TokenSet");return JSON.parse(P.decode(this.id_token.split(".")[1]))}}N.exports=M},10553:(N,I,T)=>{"use strict";var P,D,M,R,L,$=T(99742),F=T(29563),B=T(12883);Object.defineProperty(I,"__esModule",{value:!0});
415var U={SessionContext:!0,useSession:!0,getSession:!0,getCsrfToken:!0,getProviders:!0,signIn:!0,signOut:!0,SessionProvider:!0};I.SessionContext=void 0,I.SessionProvider=eb,I.getCsrfToken=eu,I.getProviders=ef,I.getSession=el,I.signIn=ep,I.signOut=eg,I.useSession=es;var H=F(T(43081)),z=F(T(84620)),W=F(T(16108)),q=F(T(37990)),G=X(T(14232)),K=X(T(5861)),V=F(T(40316)),Y=T(25443),J=T(37876),Q=T(29e3);function Z(N){if("function"!=typeof WeakMap)return null;var I=new WeakMap,T=new WeakMap;return(Z=function(N){return N?T:I})(N)}function X(N,I){if(!I&&N&&N.__esModule)return N;if(null===N||"object"!=B(N)&&"function"!=typeof N)return{default:N};var T=Z(I);if(T&&T.has(N))return T.get(N);var P={__proto__:null},D=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in N)if("default"!==M&&({}).hasOwnProperty.call(N,M)){var R=D?Object.getOwnPropertyDescriptor(N,M):null;R&&(R.get||R.set)?Object.defineProperty(P,M,R):P[M]=N[M]}return P.default=N,T&&T.set(N,P),P}function ee(N,I){var T=Object.keys(N);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(N);I&&(P=P.filter(function(I){return Object.getOwnPropertyDescriptor(N,I).enumerable})),T.push.apply(T,P)}return T}function et(N){for(var I=1;I<arguments.length;I++){var T=null!=arguments[I]?arguments[I]:{};I%2?ee(Object(T),!0).forEach(function(I){(0,z.default)(N,I,T[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(T)):ee(Object(T)).forEach(function(I){Object.defineProperty(N,I,Object.getOwnPropertyDescriptor(T,I))})}return N}Object.keys(Q).forEach(function(N){"default"===N||"__esModule"===N||Object.prototype.hasOwnProperty.call(U,N)||N in I&&I[N]===Q[N]||Object.defineProperty(I,N,{enumerable:!0,get:function(){return Q[N]}})});var er={baseUrl:(0,V.default)(null!=(P=$.env.NEXTAUTH_URL)?P:$.env.VERCEL_URL).origin,basePath:(0,V.default)($.env.NEXTAUTH_URL).path,baseUrlServer:(0,V.default)(null!=(D=null!=(M=$.env.NEXTAUTH_URL_INTERNAL)?M:$.env.NEXTAUTH_URL)?D:$.env.VERCEL_URL).origin,basePathServer:(0,V.default)(null!=(R=$.env.NEXTAUTH_URL_INTERNAL)?R:$.env.NEXTAUTH_URL).path,_lastSync:0,_session:void 0,_getSession:function(){}},en=(0,Y.BroadcastChannel)(),ea=(0,K.proxyLogger)(K.default,er.basePath);function ei(){var N=G.useState("u">typeof navigator&&navigator.onLine),I=(0,q.default)(N,2),T=I[0],P=I[1],D=function(){return P(!0)},M=function(){return P(!1)};return G.useEffect(function(){return window.addEventListener("online",D),window.addEventListener("offline",M),function(){window.removeEventListener("online",D),window.removeEventListener("offline",M)}},[]),T}var eo=I.SessionContext=null==(L=G.createContext)?void 0:L.call(G,void 0);function es(N){if(!eo)throw Error("React Context is unavailable in Server Components");var I=G.useContext(eo),T=null!=N?N:{},P=T.required,D=T.onUnauthenticated,M=P&&"unauthenticated"===I.status;return(G.useEffect(function(){if(M){var N="/api/auth/signin?".concat(new URLSearchParams({error:"SessionRequired",callbackUrl:window.location.href}));D?D():window.location.href=N}},[M,D]),M)?{data:I.data,update:I.update,status:"loading"}:I}function el(N){return ec.apply(this,arguments)}function ec(){return(ec=(0,W.default)(H.default.mark(function N(I){var T,P;return H.default.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return N.next=2,(0,Y.fetchData)("session",er,ea,I);case 2:return P=N.sent,(null==(T=null==I?void 0:I.broadcast)||T)&&en.post({event:"session",data:{trigger:"getSession"}}),N.abrupt("return",P);case 5:case"end":return N.stop()}},N)}))).apply(this,arguments)}function eu(N){return ed.apply(this,arguments)}function ed(){return(ed=(0,W.default)(H.default.mark(function N(I){var T;return H.default.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return N.next=2,(0,Y.fetchData)("csrf",er,ea,I);case 2:return T=N.sent,N.abrupt("return",null==T?void 0:T.csrfToken);case 4:case"end":return N.stop()}},N)}))).apply(this,arguments)}function ef(){return eh.apply(this,arguments)}function eh(){return(eh=(0,W.default)(H.default.mark(function N(){return H.default.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return N.next=2,(0,Y.fetchData)("providers",er,ea);case 2:return N.abrupt("return",N.sent);case 3:case"end":return N.stop()}},N)}))).apply(this,arguments)}function ep(N,I,T){return em.apply(this,arguments)}function em(){return(em=(0,W.default)(H.default.mark(function N(I,T,P){var D,M,R,L,$,F,B,U,z,W,q,G,K,V,J,Q,Z;return H.default.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return R=void 0===(M=(D=null!=T?T:{}).callbackUrl)?window.location.href:M,$=void 0===(L=D.redirect)||L,F=(0,Y.apiBaseUrl)(er),N.next=4,ef();case 4:if(B=N.sent){N.next=8;break}return window.location.href="".concat(F,"/error"),N.abrupt("return");case 8:if(!(!I||!(I in B))){N.next=11;break}
415return window.location.href="".concat(F,"/signin?").concat(new URLSearchParams({callbackUrl:R})),N.abrupt("return");case 11:return U="credentials"===B[I].type,z="email"===B[I].type,W=U||z,q="".concat(F,"/").concat(U?"callback":"signin","/").concat(I),G="".concat(q).concat(P?"?".concat(new URLSearchParams(P)):""),N.t0=fetch,N.t1=G,N.t2={"Content-Type":"application/x-www-form-urlencoded"},N.t3=URLSearchParams,N.t4=et,N.t5=et({},T),N.t6={},N.next=25,eu();case 25:return N.t7=N.sent,N.t8=R,N.t9={csrfToken:N.t7,callbackUrl:N.t8,json:!0},N.t10=(0,N.t4)(N.t5,N.t6,N.t9),N.t11=new N.t3(N.t10),N.t12={method:"post",headers:N.t2,body:N.t11},N.next=33,(0,N.t0)(N.t1,N.t12);case 33:return K=N.sent,N.next=36,K.json();case 36:if(V=N.sent,!($||!W)){N.next=42;break}return Q=null!=(J=V.url)?J:R,window.location.href=Q,Q.includes("#")&&window.location.reload(),N.abrupt("return");case 42:if(Z=new URL(V.url).searchParams.get("error"),!K.ok){N.next=46;break}return N.next=46,er._getSession({event:"storage"});case 46:return N.abrupt("return",{error:Z,status:K.status,ok:K.ok,url:Z?null:V.url});case 47:case"end":return N.stop()}},N)}))).apply(this,arguments)}function eg(N){return ey.apply(this,arguments)}function ey(){return(ey=(0,W.default)(H.default.mark(function N(I){var T,P,D,M,R,L,$,F,B;return H.default.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return D=void 0===(P=(null!=I?I:{}).callbackUrl)?window.location.href:P,M=(0,Y.apiBaseUrl)(er),N.t0={"Content-Type":"application/x-www-form-urlencoded"},N.t1=URLSearchParams,N.next=6,eu();case 6:return N.t2=N.sent,N.t3=D,N.t4={csrfToken:N.t2,callbackUrl:N.t3,json:!0},N.t5=new N.t1(N.t4),R={method:"post",headers:N.t0,body:N.t5},N.next=13,fetch("".concat(M,"/signout"),R);case 13:return L=N.sent,N.next=16,L.json();case 16:if($=N.sent,en.post({event:"session",data:{trigger:"signout"}}),!(null==(T=null==I?void 0:I.redirect)||T)){N.next=23;break}return B=null!=(F=$.url)?F:D,window.location.href=B,B.includes("#")&&window.location.reload(),N.abrupt("return");case 23:return N.next=25,er._getSession({event:"storage"});case 25:return N.abrupt("return",$);case 26:case"end":return N.stop()}},N)}))).apply(this,arguments)}function eb(N){if(!eo)throw Error("React Context is unavailable in Server Components");var I=N.children,T=N.basePath,P=N.refetchInterval,D=N.refetchWhenOffline;T&&(er.basePath=T);var M=void 0!==N.session;er._lastSync=M?(0,Y.now)():0;var R=G.useState(function(){return M&&(er._session=N.session),N.session}),L=(0,q.default)(R,2),$=L[0],F=L[1],B=G.useState(!M),U=(0,q.default)(B,2),z=U[0],K=U[1];G.useEffect(function(){return er._getSession=(0,W.default)(H.default.mark(function N(){var I,T,P=arguments;return H.default.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:if(I=(P.length>0&&void 0!==P[0]?P[0]:{}).event,N.prev=1,!((T="storage"===I)||void 0===er._session)){N.next=10;break}return er._lastSync=(0,Y.now)(),N.next=7,el({broadcast:!T});case 7:return er._session=N.sent,F(er._session),N.abrupt("return");case 10:if(!(!I||null===er._session||(0,Y.now)()<er._lastSync)){N.next=12;break}return N.abrupt("return");case 12:return er._lastSync=(0,Y.now)(),N.next=15,el();case 15:er._session=N.sent,F(er._session),N.next=22;break;case 19:N.prev=19,N.t0=N.catch(1),ea.error("CLIENT_SESSION_ERROR",N.t0);case 22:return N.prev=22,K(!1),N.finish(22);case 25:case"end":return N.stop()}},N,null,[[1,19,22,25]])})),er._getSession(),function(){er._lastSync=0,er._session=void 0,er._getSession=function(){}}},[]),G.useEffect(function(){var N=en.receive(function(){return er._getSession({event:"storage"})});return function(){return N()}},[]),G.useEffect(function(){var I=N.refetchOnWindowFocus,T=void 0===I||I,P=function(){T&&"visible"===document.visibilityState&&er._getSession({event:"visibilitychange"})};return document.addEventListener("visibilitychange",P,!1),function(){return document.removeEventListener("visibilitychange",P,!1)}},[N.refetchOnWindowFocus]);var V=ei(),Q=!1!==D||V;G.useEffect(function(){if(P&&Q){var N=setInterval(function(){er._session&&er._getSession({event:"poll"})},1e3*P);return function(){return clearInterval(N)}}},[P,Q]);var Z=G.useMemo(function(){return{data:$,status:z?"loading":$?"authenticated":"unauthenticated",update:function(N){return(0,W.default)(H.default.mark(function I(){var T;return H.default.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:if(!(z||!$)){I.next=2;break}return I.abrupt("return");case 2:return K(!0),I.t0=Y.fetchData,I.t1=er,I.t2=ea,I.next=8,eu();case 8:return I.t3=I.sent,I.t4=N,I.t5={csrfToken:I.t3,data:I.t4},I.t6={body:I.t5},I.t7={req:I.t6},I.next=15,(0,I.t0)("session",I.t1,I.t2,I.t7);case 15:return T=I.sent,K(!1),T&&(F(T),en.post({event:"session",data:{trigger:"getSession"}})),I.abrupt("return",T);case 19:case"end":return I.stop()}},I)}))()}}},[$,z]);return(0,J.jsx)(eo.Provider,{value:Z,children:I})}},10594:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});let P=T(73593);I.default=function(N){let I;if(!(0,P.default)(N))throw TypeError("Invalid UUID");return Uint8Array.of((I=parseInt(N.slice(0,8),16))>>>24,I>>>16&255,I>>>
4158&255,255&I,(I=parseInt(N.slice(9,13),16))>>>8,255&I,(I=parseInt(N.slice(14,18),16))>>>8,255&I,(I=parseInt(N.slice(19,23),16))>>>8,255&I,(I=parseInt(N.slice(24,36),16))/0x10000000000&255,I/0x100000000&255,I>>>24&255,I>>>16&255,I>>>8&255,255&I)}},10988:(N,I,T)=>{"use strict";T.d(I,{CV:()=>$,X:()=>R,aI:()=>L,fW:()=>F});var P=T(86170),D=T(60409),M=T(65212);let R=(N,I)=>(0,P.A)().request(` 416 query ($siteName: String!, $routePath: String!, $locale: String!) { 417 layout(site: $siteName, routePath: $routePath, language: $locale) { 418 item { 419 homeItemPath: path 420 contentRoot: parent { 421 id 422 path 423 } 424 } 425 } 426 } 427 `,{siteName:N,routePath:"/",locale:I}).then(N=>N?.layout?.item).catch(N=>(M.A.ui("getRootItemPath",N),null)),L=(N,I,T)=>(0,P.A)().request(` 428 query ($siteName: String!, $routePath: String!, $locale: String!) { 429 layout(site: $siteName, routePath: $routePath, language: $locale) { 430 item { 431 id 432 categories: field(name: "${D.QF.blogOverviewCategories}") { 433 data: jsonValue 434 } 435 } 436 } 437 } 438 `,{siteName:N,routePath:`${I}`,locale:T}).then(N=>N?.layout?.item).catch(N=>(M.A.ui("getRootBlogItemData",N),null)),$=(N,I,T)=>(0,P.A)().request(` 439 query ($siteName: String!, $routePath: String!, $locale: String!) { 440 layout(site: $siteName, routePath: $routePath, language: $locale) { 441 item { 442 id 443 categories: field(name: "${D.sA.eventOverviewCategories}") { 444 data: jsonValue 445 } 446 } 447 } 448 } 449 `,{siteName:N,routePath:`${I}`,locale:T}).then(N=>N?.layout?.item).catch(N=>(M.A.ui("getRootEventItemData",N),null)),F=(N,I,T)=>(0,P.A)().request(` 450 query ($siteName: String!, $routePath: String!, $locale: String!) { 451 layout(site: $siteName, routePath: $routePath, language: $locale) { 452 item { 453 id 454 categories: field(name: "${D.lI.caseStudyOverviewCategories}") { 455 data: jsonValue 456 } 457 } 458 } 459 } 460 `,{siteName:N,routePath:`${I}`,locale:T}).then(N=>N?.layout?.item).catch(N=>(M.A.ui("getRootCaseStudyItemData",N),null))},11282:(N,I,T)=>{"use strict";T.d(I,{l:()=>P});let P=N=>N.endsWith("/")?N.slice(0,-1):N},12130:(N,I,T)=>{"use strict";var P,D,M,R;T.d(I,{BQ:()=>$,IY:()=>P,TB:()=>L}),(R=P||(P={})).Preview="preview",R.Edit="edit",R.Normal="normal",(D||(D={})).Metadata="metadata",(M||(M={})).Component="component";let L="editing-componentmode-placeholder",$="editing-component"},12235:(N,I,T)=>{"use strict";T.d(I,{Cg:()=>M,_P:()=>$,_m:()=>L,my:()=>P,s0:()=>R,w4:()=>D});let P=6048e5,D=864e5,M=6e4,R=36e5,L=1e3,$=Symbol.for("constructDateFrom")},12544:(N,I,T)=>{"use strict";T.d(I,{S5:()=>U});var P,D=" daum[ /]| deusu/|(?:^|[^g])news(?!sapphire)|(?<! (?:channel/|google/))google(?!(app|/google| pixel))|(?<! cu)bots?(?:\\b|_)|(?<!(?:lib))http|(?<!cam)scan|24x7|@[a-z][\\w-]+\\.|\\(\\)|\\.com\\b|\\b\\w+\\.ai|\\bcursor/|\\bmanus-user/|\\bort/|\\bperl\\b|\\bplaywright\\b|\\bsecurityheaders\\b|\\bselenium\\b|\\btime/|\\||^[\\w \\.\\-\\(?:\\):%]+(?:/v?\\d+(?:\\.\\d+)?(?:\\.\\d{1,10})*?)?(?:,|$)|^[\\w\\-]+/[\\w]+$|^[^ ]{50,}$|^\\d+\\b|^\\W|^\\w*search\\b|^\\w+/[\\w\\(\\)]*$|^\\w+/\\d\\.\\d\\s\\([\\w@]+\\)$|^active|^ad muncher|^amaya|^apache/|^avsdevicesdk/|^azure|^biglotron|^bot|^bw/|^clamav[ /]|^claude-code/|^client/|^cobweb/|^custom|^ddg[_-]android|^discourse|^dispatch/\\d|^downcast/|^duckduckgo|^email|^facebook|^getright/|^gozilla/|^hobbit|^hotzonu|^hwcdn/|^igetter/|^jeode/|^jetty/|^jigsaw|^microsoft bits|^movabletype|^mozilla/\\d\\.\\d\\s[\\w\\.-]+$|^mozilla/\\d\\.\\d\\s\\((?:compatible;)?(?:\\s?[\\w\\d-.]+\\/\\d+\\.\\d+)?\\)$|^navermailapp|^netsurf|^offline|^openai/|^owler|^php|^postman|^python|^rank|^read|^reed|^rest|^rss|^snapchat|^space bison|^svn|^swcd |^taringa|^thumbor/|^track|^w3c|^webbandit/|^webcopier|^wget|^whatsapp|^wordpress|^xenu link sleuth|^yahoo|^yandex|^zdm/\\d|^zoom marketplace/|advisor|agent\\b|analyzer|archive|ask jeeves/teoma|audit|bit\\.ly/|bluecoat drtr|browsex|burpcollaborator|capture|catch|check\\b|checker|chrome-lighthouse|chromeframe|classifier|cloudflare|convertify|crawl|cypress/|dareboost|datanyze|dejaclick|detect|dmbrowser|download|exaleadcloudview|feed|fetcher|firephp|functionize|grab|headless|httrack|hubspot marketing grader|ibisbrowser|infrawatch|insight|inspect|iplabel|java(?!;)|library|linkcheck|mail\\.ru/|manager|measure|monitor\\b|neustar wpm|node\\b|nutch|offbyone|onetrust|optimize|pageburst|pagespeed|parser|phantomjs|pingdom|powermarks|preview|proxy|ptst[ /]\\d|retriever|rexx;|rigor|rss\\b|scrape|server|sogou|sparkler/|speedcurve|spider|splash|statuscake|supercleaner|synapse|synthetic|tools|torrent|transcoder|url|validator|virtuoso|wappalyzer|webglance|webkit2png|whatcms/|xtate/",M=/bot|crawl|http|lighthouse|scan|search|spider/i;function R(){if(P instanceof RegExp)return P;try{P=RegExp(D,"i")}catch(N){P=M}return P}var L=N=>"string"==typeof N&&""!==N;function $(N){return L(N)&&R().test(N)}var F=T(87429);let B="sc_bot",U=()=>!!H()||$(navigator.userAgent);function H(){return(0,F.k)(B)}},12637:N=>{"use strict";let I=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,T=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,P=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,D=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,M=new Map([["n","\n"],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1b"],["a","\x07"]]);function R(N){let I="u"===N[0],T="{"===N[1];return I&&!T&&5===N.length||"x"===N[0]&&3===N.length?String.fromCharCode(parseInt(N.slice(1),16)):I&&T?String.fromCodePoint(parseInt(N.slice(2,-1),16)):M.get(N)||N}function L(N,I){let T,M=[];for(let L of I.trim().split(/\s*,\s*/g)){let I=Number(L);if(Number.isNaN(I))if(T=L.match(P))M.push(T[2].replace(D,(N,I,T)=>I?R(I):T));else throw Error(`Invalid Chalk template style argument: ${L} (in style '${N}')`);else M.push(I)}return M}function $(N){let I;T.lastIndex=0;let P=[];for(;null!==(I=T.exec(N));){let N=I[1];if(I[2]){let T=L(N,I[2]);P.push([N].concat(T))}
460else P.push([N])}return P}function F(N,I){let T={};for(let N of I)for(let I of N.styles)T[I[0]]=N.inverse?null:I.slice(1);let P=N;for(let[N,I]of Object.entries(T))if(Array.isArray(I)){if(!(N in P))throw Error(`Unknown Chalk style: ${N}`);P=I.length>0?P[N](...I):P[N]}return P}N.exports=(N,T)=>{let P=[],D=[],M=[];if(T.replace(I,(I,T,L,B,U,H)=>{if(T)M.push(R(T));else if(B){let I=M.join("");M=[],D.push(0===P.length?I:F(N,P)(I)),P.push({inverse:L,styles:$(B)})}else if(U){if(0===P.length)throw Error("Found extraneous } in Chalk template literal");D.push(F(N,P)(M.join(""))),M=[],P.pop()}else M.push(H)}),D.push(M.join("")),P.length>0)throw Error(`Chalk template literal is missing ${P.length} closing bracket${1===P.length?"":"s"} (\`}\`)`);return D.join("")}},12708:(N,I,T)=>{"use strict";T.r(I),T.d(I,{EventOverviewResultCardList:()=>R});var P=T(37876),D=T(54603),M=T(63366);let R=({results:N})=>N?.length>0?(0,P.jsx)(M.az,{className:"flex-1 flex-row items-center justify-center",children:(0,P.jsx)(M.az,{className:"mt-8 grid grid-flow-row-dense sm:grid-cols-2 sm:gap-8 md:grid-cols-3 lg:grid-cols-4",children:N.map((I,T)=>(0,P.jsx)(D.EventOverviewResultCard,{result:I,lastCard:T===N.length-1},I.eventHeroTitle?.value))})}):null},12879:(N,I,T)=>{"use strict";T.r(I),T.d(I,{ContactCardContent:()=>W});var P=T(37876),D=T(87273),M=T(40163),R=T(22544),L=T(55333),$=T(23649),F=T(63366),B=T(36379),U=T(90938),H=T(51314),z=T(42339);let W=({id:N,fields:I,isEditing:T=!1,contactPersonImage:W=null})=>{let q=I.contactCardPicture,G=I.contactCardName,K=I.contactCardJobTitle,V=I.contactCardText,Y=I.contactCardPhoneNumber,J=I.contactCardButtonLink,Q=I.contactCardButtonTitle,Z={...J,value:{...J?.value,...Q?.value?{text:Q.value}:{}}},X=!!q?.value?.src,ee=(0,U.y)(Y?.value),et=!!(G?.value||I.contactCardEmail?.value),er=!X&&et?W?.src:void 0,en=!!er&&!(0,L.Cx)();return(0,P.jsxs)(F.az,{className:"mx-auto flex w-full rounded-sm border border-accent-iron bg-white p-4 text-brunel-dark-grey shadow md:m-0 lg:w-160",id:N,children:[X?(0,P.jsx)(F.az,{className:(0,B.cn)("w-22 md:w-32"),children:(0,P.jsx)(D._,{field:q,alt:q?.value?.alt,className:"aspect-3/4 w-full rounded-xs object-cover"})}):en?(0,P.jsx)(F.az,{className:(0,B.cn)("w-22 shrink-0 overflow-hidden rounded-xs md:w-32"),children:(0,P.jsx)(D._,{field:{src:er,alt:W?.alt??G?.value??"Contact"},alt:W?.alt??G?.value??"Contact",className:"aspect-3/4 w-full object-cover",unoptimized:(0,H.D)(er)})}):(0,P.jsx)(F.az,{className:"size-27",children:(0,P.jsx)(F.az,{className:"flex size-full items-center justify-center rounded-full bg-brunel-dark-grey",children:(0,P.jsx)(F.o5,{type:"medium",plainText:(0,z.NQ)(G?.value),className:"text-5xl! text-white"})})}),(0,P.jsxs)(F.az,{className:(0,B.cn)("flex-1 bg-white p-0 pl-4 text-brunel-dark-grey md:pl-6"),children:[(0,P.jsx)(M.E,{field:G,tag:"h4",className:"mb-0 font-semibold"}),(0,P.jsx)(M.E,{field:K,tag:"p",className:"mb-0"}),(T||Y?.value)&&(0,P.jsxs)(F.az,{className:"md:mt-2",children:[(0,P.jsx)(F.az,{className:"hidden md:inline-flex",as:"span",children:(0,P.jsx)(M.E,{field:V,tag:"span"})}),(0,P.jsx)(M.E,{className:"ml-0 font-medium underline decoration-2 underline-offset-2 hover:no-underline focus:no-underline md:ml-1",field:Y,href:`tel:${ee}`,tag:"a"})]}),(T||J?.value?.href)&&(0,P.jsx)(F.az,{className:"mt-4 hidden md:block",children:T?(0,P.jsx)(R.N,{field:Z}):(0,P.jsx)($.Button,{variant:"alternative",linkField:Z,isMailLink:!0})})]})]})}},12883:N=>{function I(T){return N.exports=I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(N){return typeof N}:function(N){return N&&"function"==typeof Symbol&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},N.exports.__esModule=!0,N.exports.default=N.exports,I(T)}N.exports=I,N.exports.__esModule=!0,N.exports.default=N.exports},13185:(N,I,T)=>{"use strict";T.r(I),T.d(I,{formatResendState:()=>L,getResendRemainingSeconds:()=>R,normalizeLocale:()=>M,resolveCallbackUrl:()=>B,shouldResetToEmailStep:()=>F});var P=T(98176),D=T(19718);let M=N=>{switch(N?.toLowerCase()){case"de-de":case"de-at":case"de-ch":return"de-de";case"nl-nl":case"nl-be":return"nl-nl";case"cs-cz":return"cs-cz";case"zh-cn":return"zh-cn";default:return"en"}},R=(N,I=Date.now())=>N?Math.max(0,Math.ceil((N-I)/1e3)):0,L=(N,I="otpLoginRenewSubmitButtonLabel")=>{if(N<=0)return{disabled:!1,secondsRemaining:0,text:I};let T=Math.floor(N/60),P=N%60,D=P<10?`0${P}`:`${P}`;return{disabled:!0,secondsRemaining:N,text:`${I} in ${T}:${D}`}},$=[P.Hk.OTP_SESSION_EXPIRED,P.Hk.ACCESS_DENIED],F=N=>!!(N&&$.includes(N)),B=(N,I)=>{let T=`/${I}/myapplications`,P=N.get("callbackUrl");return(0,D.p)(P)?P:T}},13466:N=>{let I=Symbol();N.exports={CLOCK_TOLERANCE:Symbol(),HTTP_OPTIONS:I}},13486:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.updateV1State=void 0;let P=T(36592),D=T(72736),M={};function R(N,I,T){let R,F=N?._v6??!1;if(N){let I=Object.keys(N);1===I.length&&"_v6"===I[0]&&(N=void 0)}if(N)R=$(N.random??N.rng?.()??(0,P.default)(),N.msecs,N.nsecs,N.clockseq,N.node,I,T);else{let N=Date.now(),D=(0,P.default)();L(M,N,D),R=$(D,M.msecs,M.nsecs,F?void 0:M.clockseq,F?void 0:M.node,I,T)}return I??(0,D.unsafeStringify)(R)}function L(N,I,T){return N.msecs??=-1/0,N.nsecs??=0,I===N.msecs?(N.nsecs++,N.nsecs>=1e4&&(N.node=void 0,N.nsecs=0)):I>N.msecs?N.nsecs=0:I<N.msecs&&(N.node=void 0),N.node||(N.node=T.slice(10,16),N.node[0]|=1,N.clockseq=(T[8]<<8|T[9])&16383),N.msecs=I,N}function $(N,I,T,P,D,M,R=0){if(N.length<16)throw Error("Random bytes length must be >= 16");
460if(M){if(R<0||R+16>M.length)throw RangeError(`UUID byte range ${R}:${R+15} is out of buffer bounds`)}else M=new Uint8Array(16),R=0;I??=Date.now(),T??=0,P??=(N[8]<<8|N[9])&16383,D??=N.slice(10,16);let L=((0xfffffff&(I+=122192928e5))*1e4+T)%0x100000000;M[R++]=L>>>24&255,M[R++]=L>>>16&255,M[R++]=L>>>8&255,M[R++]=255&L;let F=I/0x100000000*1e4&0xfffffff;M[R++]=F>>>8&255,M[R++]=255&F,M[R++]=F>>>24&15|16,M[R++]=F>>>16&255,M[R++]=P>>>8|128,M[R++]=255&P;for(let N=0;N<6;++N)M[R++]=D[N];return M}I.updateV1State=L,I.default=R},14e3:(N,I,T)=>{N.exports=T(26987)},14111:(N,I,T)=>{"use strict";T.d(I,{h:()=>L});var P=T(42586),D=T(69867),M=T(48459),R=T(43691);function L(N,I){let T=(0,R.a)(N,I?.in),L=T.getFullYear(),$=(0,P.q)(),F=I?.firstWeekContainsDate??I?.locale?.options?.firstWeekContainsDate??$.firstWeekContainsDate??$.locale?.options?.firstWeekContainsDate??1,B=(0,D.w)(I?.in||N,0);B.setFullYear(L+1,0,F),B.setHours(0,0,0,0);let U=(0,M.k)(B,I),H=(0,D.w)(I?.in||N,0);H.setFullYear(L,0,F),H.setHours(0,0,0,0);let z=(0,M.k)(H,I);return+T>=+U?L+1:+T>=+z?L:L-1}},14169:(N,I,T)=>{"use strict";T.d(I,{$:()=>G});var P=T(94012),D=T(58621),M=T(46575),R=T(75217),L=T(38505);let $={narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},F={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},B={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["J\xe4n","Feb","M\xe4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["J\xe4nner","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},U={narrow:B.narrow,abbreviated:["J\xe4n.","Feb.","M\xe4rz","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:B.wide},H={narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},z={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},W={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},q={ordinalNumber:N=>Number(N)+".",era:(0,L.o)({values:$,defaultWidth:"wide"}),quarter:(0,L.o)({values:F,defaultWidth:"wide",argumentCallback:N=>N-1}),month:(0,L.o)({values:B,formattingValues:U,defaultWidth:"wide"}),day:(0,L.o)({values:H,defaultWidth:"wide"}),dayPeriod:(0,L.o)({values:z,defaultWidth:"wide",formattingValues:W,defaultFormattingWidth:"wide"})},G={code:"de-AT",formatDistance:P.B,formatLong:D.s,formatRelative:M.o,localize:q,match:R.Y,options:{weekStartsOn:1,firstWeekContainsDate:4}}},14341:(N,I,T)=>{"use strict";T.r(I),T.d(I,{buildOverviewCategories:()=>P});let P=(N,I)=>[{id:"",eventCategoryName:{value:I}},...N?.data?.datasource?.allCategories?.targetItems??[],...N?.data?.datasource?.parent?.allCategories?.targetItems??[]]},14388:(N,I,T)=>{"use strict";T.d(I,{nl:()=>ec});let P={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},D=(N,I,T)=>{let D,M=P[N];if(D="string"==typeof M?M:1===I?M.one:M.other.replace("{{count}}",String(I)),T?.addSuffix)if(T.comparison&&T.comparison>0)return"over "+D;else return D+" geleden";return D};var M=T(71523);let R={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},L={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},$={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},F={date:(0,M.k)({formats:R,defaultWidth:"full"}),time:(0,M.k)({formats:L,defaultWidth:"full"}),dateTime:(0,M.k)({formats:$,defaultWidth:"full"})},B={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},U=(N,I,T,P)=>B[N];var H=T(38505);let z={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},W={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},q={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},G={narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},K={narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"}},V={ordinalNumber:(N,I)=>Number(N)+"e",era:(0,H.o)({values:z,defaultWidth:"wide"}),quarter:(0,H.o)({values:W,defaultWidth:"wide",argumentCallback:N=>N-1}),month:(0,H.o)({values:q,defaultWidth:"wide"}),day:(0,H.o)({values:G,defaultWidth:"wide"}),dayPeriod:(0,H.o)({values:K,defaultWidth:"wide"})};var Y=T(80663),J=T(85843);let Q=/^(\d+)e?/i,Z=/\d+/i,X={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},ee={any:[/^v/,/^n/]},et={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},er={any:[/1/i,/2/i,/3/i,/4/i]},en={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},ea={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},ei={narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},eo={narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},es={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},el={any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},ec={code:"nl",formatDistance:D,formatLong:F,formatRelative:U,localize:V,match:{ordinalNumber:(0,J.K)({matchPattern:Q,parsePattern:Z,valueCallback:N=>parseInt(N,10)}),era:(0,Y.A)({matchPatterns:X,defaultMatchWidth:"wide",parsePatterns:ee,defaultParseWidth:"any"}),quarter:(0,Y.A)({matchPatterns:et,defaultMatchWidth:"wide",parsePatterns:er,defaultParseWidth:"any",valueCallback:N=>N+1}),month:(0,Y.A)({matchPatterns:en,defaultMatchWidth:"wide",parsePatterns:ea,defaultParseWidth:"any"}),day:(0,Y.A)({matchPatterns:ei,defaultMatchWidth:"wide",parsePatterns:eo,defaultParseWidth:"any"}),dayPeriod:(0,Y.A)({matchPatterns:es,defaultMatchWidth:"any",parsePatterns:el,defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}}},14580:(N,I,T)=>{"use strict";T.r(I),T.d(I,{useNotificationPopup:()=>$});var P=T(36776),D=T(78028),M=T(10553),R=T(14232),L=T(65212);let $=()=>{let{data:N}=(0,M.useSession)(),[I,T]=(0,R.useState)(),[$,F]=(0,R.useState)(),B=(N,I)=>{localStorage.setItem("versionNr",N),localStorage.setItem("buildNr",I)};async function U(){if(N&&$&&N.user?.email)try{let N=await D.A.delete("/api/pushtokens/deleteusertoken").then(N=>(0,P.extractResponseData)(N,"NotificationPopup")).catch(N=>{L.A.api(N)});L.A.api("Deleted token:",N)}catch(N){L.A.api("Error deleting push token:",N)}}let H=(0,R.useRef)(U);function z(N,I,T,P){let D=window.webkit?.messageHandlers?.mybrunel;D&&(D.postMessage("didFinishLoading"),window.removePush=()=>{T()},D.postMessage("removePush"),window.registerPush=(T,P)=>(N(T),I(P),window),window.setAppInfo=(N,I)=>(P(N,I),window),D.postMessage("registerPush"))}H.current=U,(0,R.useEffect)(()=>{!async function(){if(N?.user?.email)try{let N=await D.A.get("/api/pushtokens/getusertoken").then(N=>(0,P.extractResponseData)(N,"NotificationPopup"));N.pushToken&&T(N.pushToken.token)}catch(N){L.A.api(N)}}()},[N]),(0,R.useEffect)(()=>{!async function(){if(N&&I&&$&&N.user?.email)try{let T={token:I,email:N.user.email,installationID:$},M=await D.A.post("/api/pushtokens/storetoken",JSON.stringify(T),{headers:{"Content-Type":"application/json"}}).then(N=>(0,P.extractResponseData)(N,"NotificationPopup"));L.A.api("Stored Notifications token:",M.newPushToken)}catch(N){L.A.api(N)}}()},[N,I,$]),(0,R.useEffect)(()=>{let N=()=>z(T,F,()=>H.current(),B);return"complete"===document.readyState?N():window.addEventListener("load",N,{once:!0}),window.androidRegisterPush=(N,I)=>{T(N),F(I)},window.androidRemovePush=()=>{H.current()},window.androidSetAppInfo=(N,I)=>{B(N,I)},()=>{window.removeEventListener("load",N)}},[])}},14605:(N,I,T)=>{"use strict";T.r(I),T.d(I,{default:()=>$});var P=T(37876),D=T(14232),M=T(23649),R=T(66963),L=T(42339);let $=({colleagues:N,onClose:I,onSend:T,isSending:$,dictionary:F})=>{let[B,U]=(0,D.useState)("select"),[H,z]=(0,D.useState)(null),[W,q]=(0,D.useState)(""),[G,K]=(0,D.useState)(""),V=(0,D.useMemo)(()=>N.filter(N=>(N.firstName??"").toLowerCase().includes(G.toLowerCase())),[N,G]),Y=async()=>{H&&W.trim()&&!$&&await T(H,W)};return(0,P.jsxs)("div",{className:"flex h-full flex-col",children:[(0,P.jsxs)("div",{className:"flex h-14 items-center justify-between gap-2 border-b border-accent-iron bg-white px-6 py-4",children:[(0,P.jsx)("h2",{className:"m-0 text-sm font-semibold",children:"select"===B?F?.["new-message"]??"[new-message]":`${F?.["message-to"]??"[message-to]"} ${H?.firstName}`}),"compose"===B?(0,P.jsx)("button",{onClick:()=>U("select"),className:"block cursor-pointer rounded-xl bg-accent-iron p-2 text-xs font-medium hover:bg-accent-fiord hover:text-white",children:"â"}):(0,P.jsx)("button",{onClick:I,className:"block rounded-xl bg-accent-iron p-2 text-xs font-medium md:hidden",children:"â"})]}),"select"===B?(0,P.jsxs)("div",{className:"flex flex-1 flex-col overflow-hidden",children:[(0,P.jsx)("div",{className:"border-b border-accent-iron bg-white px-4 py-3",children:(0,P.jsx)("input",{type:"text",placeholder:F?.["search-colleague"]??"[search-colleague]",value:G,onChange:N=>K(N.target.value),className:"w-full rounded-full border border-accent-iron px-4 py-2 text-sm focus:ring-2 focus:ring-brunel-yellow focus:outline-none"})}),(0,P.jsx)("div",{className:"flex-1 overflow-y-auto",children:0===V.length?(0,P.jsx)("p",{className:"p-6 text-center text-sm text-gray-400",children:F?.["no-colleagues-found"]??"[no-colleagues-found]"}):V.map(N=>{let I=`${N.firstName} ${N.lastName}`;return(0,P.jsxs)("div",{onClick:()=>{z(N),U("compose")},className:"flex cursor-pointer items-center gap-4 border-b border-accent-iron px-4 py-3 transition hover:bg-gray-100",children:[(0,P.jsx)(R.e,{initials:(0,L.IM)(I)}),(0,P.jsxs)("p",{className:"text-sm font-medium text-gray-800",children:[N.firstName," ",N.lastName]})]},N.mercuryId)})})]}):(0,P.jsxs)("div",{className:"flex flex-1 flex-col overflow-hidden bg-gray-50",children:[(0,P.jsxs)("div",{className:"flex items-center gap-3 border-b border-accent-iron bg-white px-6 py-4",children:[(0,P.jsx)(R.e,{initials:(0,L.IM)(`${H?.firstName} ${H?.lastName}`)}),(0,P.jsxs)("p",{className:"text-sm font-semibold text-gray-800",children:[H?.firstName," ",H?.lastName]})]}),(0,P.jsx)("div",{className:"flex flex-1 items-center justify-center text-sm text-gray-400",children:F?.["start-conversation"]??"[start-conversation]"}),(0,P.jsxs)("div",{className:"flex gap-2 bg-white p-4",children:[(0,P.jsx)("input",{value:W,onChange:N=>q(N.target.value),placeholder:F?.["type-message-placeholder"]??"[type-message-placeholder]",className:"h-10 flex-1 rounded-full border border-accent-iron px-4 py-1 text-sm focus:ring-2 focus:ring-brunel-yellow focus:outline-none",onKeyDown:N=>{"Enter"!==N.key||N.shiftKey||(N.preventDefault(),Y())}}),(0,P.jsx)(M.Button,{className:"px-2 py-0",variant:"primaryrounded",onClick:()=>{Y()}
460,plainText:$?"...":"Send",iconName:"send",iconSide:"right",iconSize:"small",disabled:$})]})]})]})}},14866:(N,I,T)=>{var P=T(56057);N.exports=function(N,I){if("function"!=typeof I&&null!==I)throw TypeError("Super expression must either be null or a function");N.prototype=Object.create(I&&I.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),Object.defineProperty(N,"prototype",{writable:!1}),I&&P(N,I)},N.exports.__esModule=!0,N.exports.default=N.exports},14885:N=>{var I=1e3,T=6e4,P=36e5,D=864e5,M=315576e5;function R(N){if(!((N=String(N)).length>100)){var R=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(N);if(R){var L=parseFloat(R[1]),$=(R[2]||"ms").toLowerCase();switch($){case"years":case"year":case"yrs":case"yr":case"y":return L*M;case"days":case"day":case"d":return L*D;case"hours":case"hour":case"hrs":case"hr":case"h":return L*P;case"minutes":case"minute":case"mins":case"min":case"m":return L*T;case"seconds":case"second":case"secs":case"sec":case"s":return L*I;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return L;default:return}}}}function L(N){return N>=D?Math.round(N/D)+"d":N>=P?Math.round(N/P)+"h":N>=T?Math.round(N/T)+"m":N>=I?Math.round(N/I)+"s":N+"ms"}function $(N){return F(N,D,"day")||F(N,P,"hour")||F(N,T,"minute")||F(N,I,"second")||N+" ms"}function F(N,I,T){if(!(N<I))return N<1.5*I?Math.floor(N/I)+" "+T:Math.ceil(N/I)+" "+T+"s"}N.exports=function(N,I){I=I||{};var T=typeof N;if("string"===T&&N.length>0)return R(N);if("number"===T&&!1===isNaN(N))return I.long?$(N):L(N);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(N))}},14949:(N,I,T)=>{"use strict";T.r(I),T.d(I,{FooterTH:()=>F});var P=T(37876),D=T(22544),M=T(87273),R=T(63366),L=T(36379),$=T(82868);let F=N=>{let I=N.params.RenderingIdentifier,T=N.fields?.data?.datasource??{},F=T?.children?.results?.map((N,I)=>{let{menuSectionLink:T,menuSectionTitle:M,menuSectionReadMoreLink:$}=N,F=T?.link?.value?.href??T?.link?.value?.anchor;return(0,P.jsxs)(R.az,{className:"border-b border-th-bold-text px-6 py-6! md:border-none md:p-0",children:[F&&(0,P.jsx)(D.N,{className:(0,L.cn)(R.kL,R.lJ,"text-base leading-5 text-th-bold-text hover:text-th-bold-text lg:py-0"),href:T?.link?.value?.href,field:T.link,tabIndex:0,children:M?.text?.value}),(0,P.jsx)(R.c0,{items:N.children?.results,readMoreLink:$,menuItem:"taylorHopkinson",tabIndex:0})]},I)});return(0,P.jsxs)(R.az,{id:I||void 0,className:"flex w-screen flex-col bg-th-primary-background md:flex-row","data-testid":$.Qa.TestIds.FooterComponent.base,children:[(0,P.jsx)(R.az,{className:"flex border-b border-th-generic-background p-6 lg:border-0",children:(0,P.jsx)(M._,{field:T.navigationLogo?.image,alt:T.navigationLogo?.image?.alt??"Taylor Hopkinson Powered By Brunel Logo",className:"h-10 w-50 cursor-pointer object-contain"})}),(0,P.jsx)(R.zk,{columns:"4",gap:"lg",contentBgColor:"taylorHopkinson",height:"full",children:F})]})}},14953:(N,I,T)=>{"use strict";T.d(I,{Eu:()=>B,k6:()=>U,tS:()=>H});let P=/\/([-~]{1})\/media\//i,D="http://__sitecore_content_sdk_media__/";function M(N){return/^[a-z][a-z0-9+.-]*:/i.test(N)||N.startsWith("//")}function R(N){if(M(N))try{return{url:N.startsWith("//")?new URL(N,"http://_"):new URL(N),relative:!1}}catch(N){}return{url:new URL(N,D),relative:!0}}function L(N,I){return I?`${N.pathname}${N.search}${N.hash}`:N.toString()}function $(N){let I={};return N.forEach((N,T)=>{I[T]=N}),I}let F=N=>{let{rev:I,db:T,la:P,vs:D,ts:M,ttc:R,tt:L,hash:$}=N;return{rev:I,db:T,la:P,vs:D,ts:M,ttc:R,tt:L,hash:$}},B=(N,I=P)=>{let{url:T,relative:D}=R(N),M=I.exec(T.pathname);return M&&M.length>1&&(T.pathname=T.pathname.replace(I,`/${M[1]}/jssmedia/`)),L(T,D)},U=(N,I,T=P)=>{if(!I||0===Object.keys(I).length)return N;let{url:D,relative:M}=R(B(N,T)),U=F($(D.searchParams)),H={};for(let[N,T]of Object.entries(I))null!=T&&""!==T&&(H[N]=String(T));
460for(let[N,I]of(Object.entries(U).forEach(([N,I])=>{null!=I&&""!==I&&(H[N]=I)}),D.search="",Object.entries(H)))D.searchParams.set(N,I);return L(D,M)},H=(N,I,T,P)=>I.map(I=>{let D=Object.assign(Object.assign({},T),I),M=D.w||D.mw;return M?`${U(N,D,P)} ${M}w`:null}).filter(N=>N).join(", ")},14990:(N,I,T)=>{"use strict";T.d(I,{ZP:()=>z.Z,mG:()=>P.mG,aG:()=>P.aG,MR:()=>U,UO:()=>H.U,Xm:()=>D,S5:()=>W.S5,BH:()=>M,$p:()=>R});var P=T(19299);function D(N=P.xu,I){return{domain:I,maxAge:N*P.UV,path:"/",sameSite:"None",secure:!0}}function M(){return"u"<typeof window||window.document.documentElement.lang.length<=1?void 0:new Intl.Locale(window.document.documentElement.lang).language.toLocaleUpperCase()}function R(){return"u"<typeof window?"":"/"===window.location.pathname?"Home Page":window.location.pathname.split("/").pop()}var L=T(47804),$=T(68890);function F(N){return`${N}/v1/events/${P.mG}/browser/create.json?client_key=`}let{UU:B}=L;async function U(N,I,T){let D={headers:{"X-Library-Version":P.Zh,"x-sitecore-contextid":I}},M=F(N),R=new $.j({timeout:T}),L=await R.fetch(M,D).then(N=>N.data||null).catch(N=>{if(N.message===B.IV_002||N.message===B.IE_003)throw Error(N.message);return null});if(!(null==L?void 0:L.ref))throw Error(B.IE_005);let{ref:U,customer_ref:H}=L;return{clientId:U,profileId:H}}var H=T(34683),z=T(79639),W=T(12544)},15039:(N,I)=>{var T;!function(){"use strict";var P={}.hasOwnProperty;function D(){for(var N="",I=0;I<arguments.length;I++){var T=arguments[I];T&&(N=R(N,M(T)))}return N}function M(N){if("string"==typeof N||"number"==typeof N)return N;if("object"!=typeof N)return"";if(Array.isArray(N))return D.apply(null,N);if(N.toString!==Object.prototype.toString&&!N.toString.toString().includes("[native code]"))return N.toString();var I="";for(var T in N)P.call(N,T)&&N[T]&&(I=R(I,T));return I}function R(N,I){return I?N?N+" "+I:N+I:N}N.exports?(D.default=D,N.exports=D):void 0===(T=(function(){return D}).apply(I,[]))||(N.exports=T)}()},15374:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),Object.defineProperty(I,"LoadableContext",{enumerable:!0,get:function(){return P}});let P=T(64252)._(T(14232)).default.createContext(null)},15583:(N,I,T)=>{"use strict";T.d(I,{u:()=>B});var P=T(37876),D=T(18908),M=T(77470),R=T(63808),L=T(14232),$=T(36379);let F=N=>(0,$.cn)("flex-1 cursor-pointer px-4 py-2 text-sm transition-colors",N?"bg-brunel-dark-grey text-white":"bg-white text-ui-grey hover:bg-ui-light-grey"),B=({showHeader:N=!0,permanent:I,freelanceDay:T,freelanceHourly:$})=>{let[B,U]=(0,L.useState)("permanent"),[H,z]=(0,L.useState)("day"),{setFieldValue:W,setFieldTouched:q}=(0,R.j7)(),G=N=>{"permanent"===N?(W("freelanceWagePerDay",""),q("freelanceWagePerDay",!1,!1),W("freelanceWagePerHour",""),q("freelanceWagePerHour",!1,!1)):(W("preferredWagePerYear",""),q("preferredWagePerYear",!1,!1)),U(N)},K=N=>{"day"===N?(W("freelanceWagePerHour",""),q("freelanceWagePerHour",!1,!1)):(W("freelanceWagePerDay",""),q("freelanceWagePerDay",!1,!1)),z(N)},V=(0,L.useMemo)(()=>"freelance"===B&&"day"===H?T:"freelance"===B&&"hourly"===H?$:I,[B,H,I,T,$]);return(0,P.jsxs)("div",{className:"flex flex-col gap-3",children:[N&&(0,P.jsx)("div",{className:"flex flex-col",children:(0,P.jsx)(M.l,{id:V?.id??"",label:V?.label,focusOnClick:!1})}),(0,P.jsxs)("div",{className:"flex h-12 overflow-hidden rounded-sm border border-accent-iron",children:[(0,P.jsx)("button",{type:"button",onClick:()=>G("permanent"),className:F("permanent"===B),children:I?.label??"Permanent salary"}),(0,P.jsx)("div",{className:"w-px shrink-0 bg-accent-iron"}),(0,P.jsx)("button",{type:"button",onClick:()=>G("freelance"),className:F("freelance"===B),children:"Freelance"})]}),"freelance"===B&&(0,P.jsxs)("div",{className:"flex h-12 overflow-hidden rounded-sm border border-accent-iron",children:[(0,P.jsx)("button",{type:"button",onClick:()=>K("day"),className:F("day"===H),children:T?.secondaryLabel??"[buttonLabel]"}),(0,P.jsx)("div",{className:"w-px shrink-0 bg-accent-iron"}),(0,P.jsx)("button",{type:"button",onClick:()=>K("hourly"),className:F("hourly"===H),children:$?.secondaryLabel??"[buttonLabel]"})]}),"permanent"===B&&(0,P.jsx)(D.Z,{id:"preferredWagePerYear",placeholder:I?.placeholder,errors:I?.errors,setDataLayer:I?.setDataLayer,setDataLayerError:I?.setDataLayerError}),"freelance"===B&&"day"===H&&(0,P.jsx)(D.Z,{id:"freelanceWagePerDay",placeholder:T?.placeholder,errors:T?.errors,setDataLayer:T?.setDataLayer,setDataLayerError:T?.setDataLayerError}),"freelance"===B&&"hourly"===H&&(0,P.jsx)(D.Z,{id:"freelanceWagePerHour",placeholder:$?.placeholder,errors:$?.errors,setDataLayer:$?.setDataLayer,setDataLayerError:$?.setDataLayerError})]})}},15773:(N,I,T)=>{"use strict";var P=T(31059).Buffer,D=P.isEncoding||function(N){switch((N=""+N)&&N.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function M(N){var I;if(!N)return"utf8";for(;;)switch(N){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";
460case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return N;default:if(I)return;N=(""+N).toLowerCase(),I=!0}}function R(N){var I=M(N);if("string"!=typeof I&&(P.isEncoding===D||!D(N)))throw Error("Unknown encoding: "+N);return I||N}function L(N){var I;switch(this.encoding=R(N),this.encoding){case"utf16le":this.text=W,this.end=q,I=4;break;case"utf8":this.fillLast=U,I=4;break;case"base64":this.text=G,this.end=K,I=3;break;default:this.write=V,this.end=Y;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=P.allocUnsafe(I)}function $(N){return N<=127?0:N>>5==6?2:N>>4==14?3:N>>3==30?4:N>>6==2?-1:-2}function F(N,I,T){var P=I.length-1;if(P<T)return 0;var D=$(I[P]);return D>=0?(D>0&&(N.lastNeed=D-1),D):--P<T||-2===D?0:(D=$(I[P]))>=0?(D>0&&(N.lastNeed=D-2),D):--P<T||-2===D?0:(D=$(I[P]))>=0?(D>0&&(2===D?D=0:N.lastNeed=D-3),D):0}function B(N,I,T){if((192&I[0])!=128)return N.lastNeed=0,"�";if(N.lastNeed>1&&I.length>1){if((192&I[1])!=128)return N.lastNeed=1,"�";if(N.lastNeed>2&&I.length>2&&(192&I[2])!=128)return N.lastNeed=2,"�"}}function U(N){var I=this.lastTotal-this.lastNeed,T=B(this,N,I);return void 0!==T?T:this.lastNeed<=N.length?(N.copy(this.lastChar,I,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(N.copy(this.lastChar,I,0,N.length),this.lastNeed-=N.length)}function H(N,I){var T=F(this,N,I);if(!this.lastNeed)return N.toString("utf8",I);this.lastTotal=T;var P=N.length-(T-this.lastNeed);return N.copy(this.lastChar,0,P),N.toString("utf8",I,P)}function z(N){var I=N&&N.length?this.write(N):"";return this.lastNeed?I+"�":I}function W(N,I){if((N.length-I)%2==0){var T=N.toString("utf16le",I);if(T){var P=T.charCodeAt(T.length-1);if(P>=55296&&P<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=N[N.length-2],this.lastChar[1]=N[N.length-1],T.slice(0,-1)}return T}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=N[N.length-1],N.toString("utf16le",I,N.length-1)}function q(N){var I=N&&N.length?this.write(N):"";if(this.lastNeed){var T=this.lastTotal-this.lastNeed;return I+this.lastChar.toString("utf16le",0,T)}return I}function G(N,I){var T=(N.length-I)%3;return 0===T?N.toString("base64",I):(this.lastNeed=3-T,this.lastTotal=3,1===T?this.lastChar[0]=N[N.length-1]:(this.lastChar[0]=N[N.length-2],this.lastChar[1]=N[N.length-1]),N.toString("base64",I,N.length-T))}function K(N){var I=N&&N.length?this.write(N):"";return this.lastNeed?I+this.lastChar.toString("base64",0,3-this.lastNeed):I}function V(N){return N.toString(this.encoding)}function Y(N){return N&&N.length?this.write(N):""}I.StringDecoder=L,L.prototype.write=function(N){var I,T;if(0===N.length)return"";if(this.lastNeed){if(void 0===(I=this.fillLast(N)))return"";T=this.lastNeed,this.lastNeed=0}else T=0;return T<N.length?I?I+this.text(N,T):this.text(N,T):I||""},L.prototype.end=z,L.prototype.text=H,L.prototype.fillLast=function(N){if(this.lastNeed<=N.length)return N.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);N.copy(this.lastChar,this.lastTotal-this.lastNeed,0,N.length),this.lastNeed-=N.length}},16108:N=>{function I(N,I,T,P,D,M,R){try{var L=N[M](R),$=L.value}catch(N){return void T(N)}L.done?I($):Promise.resolve($).then(P,D)}N.exports=function(N){return function(){var T=this,P=arguments;return new Promise(function(D,M){var R=N.apply(T,P);function L(N){I(R,D,M,L,$,"next",N)}function $(N){I(R,D,M,L,$,"throw",N)}L(void 0)})}},N.exports.__esModule=!0,N.exports.default=N.exports},16227:(N,I,T)=>{"use strict";T.d(I,{b:()=>P});let P=N=>{window.location.assign(N)}},16436:(N,I,T)=>{let{createHash:P,randomBytes:D}=T(63426),M=T(93298),R=(N=32)=>M.encode(D(N));N.exports={random:R,state:R,nonce:R,codeVerifier:R,codeChallenge:N=>M.encode(P("sha256").update(N).digest())}},16502:(N,I,T)=>{"use strict";function P(N){var I=this;if(I instanceof P||(I=new P),I.tail=null,I.head=null,I.length=0,N&&"function"==typeof N.forEach)N.forEach(function(N){I.push(N)});else if(arguments.length>0)for(var T=0,D=arguments.length;T<D;T++)I.push(arguments[T]);return I}function D(N,I,T){var P=I===N.head?new L(T,null,I,N):new L(T,I,I.next,N);return null===P.next&&(N.tail=P),null===P.prev&&(N.head=P),N.length++,P}function M(N,I){N.tail=new L(I,N.tail,null,N),N.head||(N.head=N.tail),N.length++}function R(N,I){N.head=new L(I,null,N.head,N),N.tail||(N.tail=N.head),N.length++}function L(N,I,T,P){if(!(this instanceof L))return new L(N,I,T,P);this.list=P,this.value=N,I?(I.next=this,this.prev=I):this.prev=null,T?(T.prev=this,this.next=T):this.next=null}N.exports=P,P.Node=L,P.create=P,P.prototype.removeNode=function(N){if(N.list!==this)throw Error("remov
460ing node which does not belong to this list");var I=N.next,T=N.prev;return I&&(I.prev=T),T&&(T.next=I),N===this.head&&(this.head=I),N===this.tail&&(this.tail=T),N.list.length--,N.next=null,N.prev=null,N.list=null,I},P.prototype.unshiftNode=function(N){if(N!==this.head){N.list&&N.list.removeNode(N);var I=this.head;N.list=this,N.next=I,I&&(I.prev=N),this.head=N,this.tail||(this.tail=N),this.length++}},P.prototype.pushNode=function(N){if(N!==this.tail){N.list&&N.list.removeNode(N);var I=this.tail;N.list=this,N.prev=I,I&&(I.next=N),this.tail=N,this.head||(this.head=N),this.length++}},P.prototype.push=function(){for(var N=0,I=arguments.length;N<I;N++)M(this,arguments[N]);return this.length},P.prototype.unshift=function(){for(var N=0,I=arguments.length;N<I;N++)R(this,arguments[N]);return this.length},P.prototype.pop=function(){if(this.tail){var N=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,N}},P.prototype.shift=function(){if(this.head){var N=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,N}},P.prototype.forEach=function(N,I){I=I||this;for(var T=this.head,P=0;null!==T;P++)N.call(I,T.value,P,this),T=T.next},P.prototype.forEachReverse=function(N,I){I=I||this;for(var T=this.tail,P=this.length-1;null!==T;P--)N.call(I,T.value,P,this),T=T.prev},P.prototype.get=function(N){for(var I=0,T=this.head;null!==T&&I<N;I++)T=T.next;if(I===N&&null!==T)return T.value},P.prototype.getReverse=function(N){for(var I=0,T=this.tail;null!==T&&I<N;I++)T=T.prev;if(I===N&&null!==T)return T.value},P.prototype.map=function(N,I){I=I||this;for(var T=new P,D=this.head;null!==D;)T.push(N.call(I,D.value,this)),D=D.next;return T},P.prototype.mapReverse=function(N,I){I=I||this;for(var T=new P,D=this.tail;null!==D;)T.push(N.call(I,D.value,this)),D=D.prev;return T},P.prototype.reduce=function(N,I){var T,P=this.head;if(arguments.length>1)T=I;else if(this.head)P=this.head.next,T=this.head.value;else throw TypeError("Reduce of empty list with no initial value");for(var D=0;null!==P;D++)T=N(T,P.value,D),P=P.next;return T},P.prototype.reduceReverse=function(N,I){var T,P=this.tail;if(arguments.length>1)T=I;else if(this.tail)P=this.tail.prev,T=this.tail.value;else throw TypeError("Reduce of empty list with no initial value");for(var D=this.length-1;null!==P;D--)T=N(T,P.value,D),P=P.prev;return T},P.prototype.toArray=function(){for(var N=Array(this.length),I=0,T=this.head;null!==T;I++)N[I]=T.value,T=T.next;return N},P.prototype.toArrayReverse=function(){for(var N=Array(this.length),I=0,T=this.tail;null!==T;I++)N[I]=T.value,T=T.prev;return N},P.prototype.slice=function(N,I){(I=I||this.length)<0&&(I+=this.length),(N=N||0)<0&&(N+=this.length);var T=new P;if(I<N||I<0)return T;N<0&&(N=0),I>this.length&&(I=this.length);for(var D=0,M=this.head;null!==M&&D<N;D++)M=M.next;for(;null!==M&&D<I;D++,M=M.next)T.push(M.value);return T},P.prototype.sliceReverse=function(N,I){(I=I||this.length)<0&&(I+=this.length),(N=N||0)<0&&(N+=this.length);var T=new P;if(I<N||I<0)return T;N<0&&(N=0),I>this.length&&(I=this.length);for(var D=this.length,M=this.tail;null!==M&&D>I;D--)M=M.prev;for(;null!==M&&D>N;D--,M=M.prev)T.push(M.value);return T},P.prototype.splice=function(N,I,...T){N>this.length&&(N=this.length-1),N<0&&(N=this.length+N);for(var P=0,M=this.head;null!==M&&P<N;P++)M=M.next;for(var R=[],P=0;M&&P<I;P++)R.push(M.value),M=this.removeNode(M);null===M&&(M=this.tail),M!==this.head&&M!==this.tail&&(M=M.prev);for(var P=0;P<T.length;P++)M=D(this,M,T[P]);return R},P.prototype.reverse=function(){for(var N=this.head,I=this.tail,T=N;null!==T;T=T.prev){var P=T.prev;T.prev=T.next,T.next=P}return this.head=I,this.tail=N,this};try{T(83154)(P)}catch(N){}},16580:(N,I,T)=>{"use strict";T.d(I,{$O:()=>K,$r:()=>H,$u:()=>Y,Ri:()=>V,gn:()=>D,mv:()=>G,sI:()=>B});var P,D,M=T(47804),R=T(11282),L=T(35122);let{UU:$}=M,F="component:status";(P=D||(D={})).READY="ready",P.RENDERED="rendered";let B=(N,I)=>{if(!window)return;let T=T=>z(T,N,I);return window.addEventListener("message",T),()=>{window.removeEventListener("message",T)}},U=N=>["*"].some(I=>I===N.origin||RegExp("^"+I.replace(".","\\.").replace(/\*/g,".*")+"$").test(N.origin)),H=(N,I)=>!!N.origin&&!!N.data&&N.data.name===I||(U(N)||console.debug("Component Library: event skipped - invalid origin: message %s from origin %s",N.data.name,N.origin),!1),z=(N,I,T)=>{var P;let D=N.data;if(!N.origin||!D||"component:update"!==D.name){U(N)||console.debug("Component Library: event skipped: message %s from origin %s",D.name,N.origin);return}
460if(!(null==(P=D.details)?void 0:P.uid))return void console.debug("Received component:update event without uid, aborting event handler...");let M=W(I,D.details.uid);return M?(console.debug("Found component with uid %s to update. Update fields: %o. Update params: %o.",D.details.uid,D.details.fields,D.details.params),q(M,D.details.fields,D.details.params),T&&T(I)):console.debug("Rendering with uid %s not found",D.details.uid),I},W=(N,I)=>{var T;if((null==(T=N.uid)?void 0:T.toLowerCase())===I.toLowerCase())return N;if(N.placeholders)for(let T of Object.keys(N.placeholders))for(let P of N.placeholders[T]){let N=W(P,I);if(N)return N}return null},q=(N,I,T)=>{I&&(N.fields=Object.assign(Object.assign({},N.fields),I)),T&&(N.params=Object.assign(Object.assign({},N.params),T))};function G(N,I,T=!1){return{name:F,message:{status:N,uid:I,isRenderingServerComponent:T}}}function K(N=M.Ty){return`${(0,R.l)(N)}/v1/files/designlibrary/lib/rh-lib-script.js`}function V(N){return N===L.lq.Normal||N===L.lq.Metadata}let Y=N=>{if("u"<typeof window)return;let I=window.parent&&window.parent!==window?window.parent:window;try{console.log("Component Library: sending event",N.name,N),I.postMessage(N,"*")}catch(I){console.error(`Component Library: postMessage failed. ${$.CONTACT_SUPPORT}`,I,N)}}},17033:(N,I,T)=>{"use strict";T.r(I),T.d(I,{buildApplyFormExtraFields:()=>$,extractPiwikId:()=>L,resolveApplicationType:()=>M,resolveAtsSource:()=>R,resolveIsOpenVacancy:()=>D});var P=T(95750);let D=(N,I)=>N.includes(I?.toLowerCase()??""),M=N=>N?"Seek":"MyBrunel",R=(N,I)=>(N??"")||(I?"Broadbean":""),L=N=>/_pk_id.*?=(\w+)/i.exec(N)?.[1]??"",$=N=>({language:N.language,vacancyId:N.vacancyId,preMatchingIsLeading:N.preMatchingIsLeading,mercuryId:N.mercuryId,metaData:{vacancyTitle:N.vacancyTitle,vacancyParentNumber:N.vacancyParentNumber,marketName:N.marketName,marketCountryCode:N.marketLanguageCodes,accountManagerRef:"",accountManagerLocation:"",businessUnitAutoNumber:N.businessUnit,businessUnitName:N.businessUnitName,myBrunelHostname:N.hostname,contactOfficeName:N.contactOfficeName,atsSource:N.atsSource,publicationCountry:N.publicationCountry},manager:{managerTitle:"",managerName:N.contactName,managerPhone:N.contactPhone,managerEmail:N.contactEmail},pages:{feedbackPage:"https://brunel.net/en",magicLinkPage:(0,P.wg)(N.businessUnit,N.publicationId),termOfUse:"https://brunel.net/en",disclaimer:"https://brunel.net/en",unsubscribe:"https://brunel.net/en"},utmParameters:N.utmParameters,personalApplyParameters:{applicationSourceId:N.applicationSourceId,managerSu:N.managerSu},piwikId:N.piwikId})},17813:(N,I,T)=>{"use strict";T.r(I),T.d(I,{BreadcrumbLink:()=>F});var P=T(37876),D=T(47137),M=T(48230),R=T.n(M),L=T(36379);let $=(0,D.F)([],{variants:{weight:{normal:"text-m-body-medium font-normal text-brunel-dark-grey",medium:"text-m-body-medium font-medium text-brunel-dark-grey underline decoration-3 underline-offset-3"}},defaultVariants:{weight:"medium"}}),F=({href:N,text:I,weight:T,className:D})=>(0,P.jsx)(R(),{href:N,className:(0,L.cn)($({weight:T}),D),children:I})},18070:(N,I,T)=>{"use strict";T.d(I,{t:()=>D});var P=T(90089);let D=new class extends P.Q{#h=!0;#p;#m;constructor(){super(),this.#m=N=>{if("u">typeof window&&window.addEventListener){let I=()=>N(!0),T=()=>N(!1);return window.addEventListener("online",I,!1),window.addEventListener("offline",T,!1),()=>{window.removeEventListener("online",I),window.removeEventListener("offline",T)}}}}onSubscribe(){this.#p||this.setEventListener(this.#m)}onUnsubscribe(){this.hasListeners()||(this.#p?.(),this.#p=void 0)}setEventListener(N){this.#m=N,this.#p?.(),this.#p=N(this.setOnline.bind(this))}setOnline(N){this.#h!==N&&(this.#h=N,this.listeners.forEach(I=>{I(N)}))}isOnline(){return this.#h}}},18135:(N,I,T)=>{"use strict";let P;N=T.nmd(N);let D=(N,I)=>(...T)=>{let P=N(...T);return`\u001B[${P+I}m`},M=(N,I)=>(...T)=>{let P=N(...T);return`\u001B[${38+I};5;${P}m`},R=(N,I)=>(...T)=>{let P=N(...T);return`\u001B[${38+I};2;${P[0]};${P[1]};${P[2]}m`},L=N=>N,$=(N,I,T)=>[N,I,T],F=(N,I,T)=>{Object.defineProperty(N,I,{get:()=>{let P=T();return Object.defineProperty(N,I,{value:P,enumerable:!0,configurable:!0}),P},enumerable:!0,configurable:!0})},B=(N,I,D,M)=>{void 0===P&&(P=T(67274));let R=10*!!M,L={};for(let[T,M]of Object.entries(P)){let P="ansi16"===T?"ansi":T;T===I?L[P]=N(D,R):"object"==typeof M&&(L[P]=N(M[I],R))}return L};Object.defineProperty(N,"exports",{enumerable:!0,get:function(){let N=new Map,I={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};for(let[T,P]of(I.color.gray=I.color.blackBright,I.bgColor.bgGray=I.bgColor.bgBlackBright,I.color.grey=I.color.blackBright,I.bgColor.bgGrey=I.bgColor.bgBlackBright,Object.entries(I))){for(let[T,D]of Object.entries(P))I[T]={open:`\u001B[${D[0]}m`,close:`\u001B[${D[1]}m`},P[T]=I[T],N.set(D[0],D[1]);Object.defineProperty(I,T,{value:P,enumerable:!1})}return Object.defineProperty(I,"codes",{value:N,enumerable:!1}),I.color.close="\x1b[39m",I.bgColor.close="\x1b[49m",F(I.color,"ansi",()=>B(D,"ansi16",L,!1)),F(I.color,"ansi256",()=>B(M,"ansi256",L,!1)),F(I.color,"ansi16m",()=>B(R,"rgb",$,!1)),F(I.bgColor,"ansi",()=>B(D,"ansi16",L,!0)),F(I.bgColor,"ansi256",()=>B(M,"ansi256",L,!0)),F(I.bgColor,"ansi16m",()=>B(R,"rgb",$,!0)),I}})},18249:(N,I,T)=>{"use strict";T.d(I,{A:()=>z});var P=T(37876),D=T(40163),M=T(22544),R=T(29454),L=T(10409),$=T(58138),F=T(60409),B=T(36379),U=T(78557),H=T(29087);let z=({languageData:N,nativeName:I})=>{let{alternativeLanguage:T,currentLanguage:z,languageSectionCountryColumnTitle:W,languageSectionCountrySelectorPage:q,languageSectionLanguageColumnTitle:G}=N,K=z?.nativeName?.split("(")[1]?.replace(/["'()]/g,""),V=z?.name===F.Xn&&T?.englishName||T?.nativeName,Y=q?.jsonValue?.value?.href,J=q?.jsonValue?.value?.text;return(0,P.jsxs)(L.a,{className:"sidenav-menu",children:[(0,P.jsx)(L.a,{className:"flex border-b border-accent-iron px-6 py-4 text-base leading-[18px]! font-medium text-brunel-dark-grey",children:G?.value}),(0,P.jsxs)("ul",{children:[z&&(0,P.jsx)("li",{className:(0,$.BV)({listItem:"subMenu"}),children:(0,P.jsx)(D.E,{field:{value:I},className:(0,B.cn)((0,$.C0)({menuItem:"subMenu"}
460),"cursor-text text-base! text-brunel-dark-grey"),tag:"p"})}),V&&(0,P.jsx)("li",{className:(0,$.BV)({listItem:"subMenu"}),children:(0,P.jsx)(M.N,{className:(0,B.cn)((0,$.C0)({menuItem:"subMenu"}),"text-base!"),field:{href:`/${T?.name??F.Xn}`,target:"_top"},onClick:()=>{(0,H.R)(window.OnetrustActiveGroups).hasLocaleCookieConsent&&R.A.set(U.g,T?.name??F.Xn,{expires:365,path:"/",sameSite:"lax"})},children:V})})]}),(0,P.jsx)(L.a,{className:"flex border-b border-accent-iron px-6 py-4 text-base leading-[18px]! font-medium text-brunel-dark-grey",children:W?.value}),(0,P.jsxs)("ul",{children:[(0,P.jsx)("li",{className:(0,$.BV)({listItem:"subMenu"}),children:(0,P.jsx)(D.E,{field:{value:K},className:(0,B.cn)((0,$.C0)({menuItem:"subMenu"}),"cursor-text text-base! text-brunel-dark-grey"),tag:"p"})}),(0,P.jsx)("li",{className:(0,$.BV)({listItem:"subMenu"}),children:(0,P.jsx)(M.N,{className:(0,B.cn)((0,$.C0)(),"text-base!"),field:{href:Y??"#",target:"_top"},children:J})})]})]})}},18571:(N,I,T)=>{"use strict";T.d(I,{$I:()=>R,Cs:()=>L,ZS:()=>D,mf:()=>M});let P=N=>!!(N?.data?.value?.src||N?.value?.src),D=N=>P(N),M=N=>N?.replace(/[{}-]/g,"").toLowerCase()??"",R=N=>N?.previewImage?.data?.value?.src?N.previewImage.data:N?.previewImage?.value?.src?N.previewImage:N?.heroImage?.data?.value?.src?N.heroImage.data:N?.heroImage?.value?.src?N.heroImage:N?.metaImage?.data?.value?.src?N.metaImage.data:N?.metaImage?.value?.src?N.metaImage:void 0,L=N=>{let I=N?.data,T=Array.isArray(I)?I[0]:I;if(!T)return;let P=T.displayName||T.name||T.fields?.caseStudyCategoryName?.value||T.fields?.eventCategoryName?.value;return{name:T.name||P,displayName:T.displayName||P}}},18707:(N,I,T)=>{let P;var D=T(82909).Buffer;let M=T(34322),R=T(48041),L=T(40939),$=T(58184),{once:F}=T(95284),{URL:B}=T(3305),U=T(69288),H=T(56106),{RPError:z}=T(79391),W=T(86355),{deep:q}=T(53412),{HTTP_OPTIONS:G}=T(13466),K=/^[\x21\x23-\x5B\x5D-\x7E]+$/,V=["agent","ca","cert","crl","headers","key","lookup","passphrase","pfx","timeout"],Y=(N,I)=>{P=q({},N.length?W(I,...N):I,P)};function J(N,I,T){T&&(N.removeHeader("content-type"),N.setHeader("content-type",T)),I&&(N.removeHeader("content-length"),N.setHeader("content-length",D.byteLength(I)),N.write(I)),N.end()}Y([],{headers:{"User-Agent":`${H.name}/${H.version} (${H.homepage})`,"Accept-Encoding":"identity"},timeout:3500});let Q=new U({max:100});N.exports=async function(N,{accessToken:I,mTLS:T=!1,DPoP:U}={}){let H,Y,Z,X,ee,et,er;try{H=new B(N.url),delete N.url,M(/^(https?:)$/.test(H.protocol))}catch(N){throw TypeError("only valid absolute URLs can be requested")}let en=this[G],ea=N,ei=`${H.origin}${H.pathname}`;if(U&&"dpopProof"in this&&(ea.headers=ea.headers||{},ea.headers.DPoP=await this.dpopProof({htu:`${H.origin}${H.pathname}`,htm:N.method||"GET",nonce:Q.get(ei)},U,I)),en&&(Y=W(en.call(this,H,q({},ea,P)),...V)),ea=q({},Y,ea,P),T&&!ea.pfx&&!(ea.key&&ea.cert))throw TypeError("mutual-TLS certificate and key not set");if(ea.searchParams)for(let[N,I]of Object.entries(ea.searchParams))H.searchParams.delete(N),H.searchParams.set(N,I);for(let[N,I]of({form:X,responseType:Z,json:ee,body:et,...ea}=ea,Object.entries(ea.headers||{})))void 0===I&&delete ea.headers[N];let eo=("https:"===H.protocol?$.request:L.request)(H.href,ea);return(async()=>{if(ee?J(eo,JSON.stringify(ee),"application/json"):X?J(eo,R.stringify(X),"application/x-www-form-urlencoded"):et?J(eo,et):J(eo),[er]=await Promise.race([F(eo,"response"),F(eo,"timeout")]),!er)throw eo.destroy(),new z(`outgoing request timed out after ${ea.timeout}ms`);let N=[];for await(let I of er)N.push(I);if(N.length)switch(Z){case"json":Object.defineProperty(er,"body",{get(){let I=D.concat(N);try{I=JSON.parse(I)}catch(N){throw Object.defineProperty(N,"response",{value:er}),N}finally{Object.defineProperty(er,"body",{value:I,configurable:!0})}return I},configurable:!0});break;case void 0:case"buffer":Object.defineProperty(er,"body",{get(){let I=D.concat(N);return Object.defineProperty(er,"body",{value:I,configurable:!0}),I},configurable:!0});break;default:throw TypeError("unsupported responseType request option")}return er})().catch(N=>{throw er&&Object.defineProperty(N,"response",{value:er}),N}).finally(()=>{let N=er&&er.headers["dpop-nonce"];N&&K.test(N)&&Q.set(ei,N)})},N.exports.setDefaults=Y.bind(void 0,V)},18736:(N,I,T)=>{"use strict";var P,D,M=T(99742);Object.defineProperty(I,"__esModule",{value:!0}),function(N,I){for(var T in I)Object.defineProperty(N,T,{enumerable:!0,get:I[T]})}(I,{DynamicHoleKind:function(){return eL},Postpone:function(){return el},PreludeState:function(){return eW},abortAndThrowOnSynchronousRequestDataAccess:function(){return es}
460,abortOnSynchronousPlatformIOAccess:function(){return eo},accessedDynamicData:function(){return eg},annotateDynamicAccess:function(){return eE},consumeDynamicAccess:function(){return ey},createDynamicTrackingState:function(){return Z},createDynamicValidationState:function(){return X},createHangingInputAbortSignal:function(){return ex},createInstantValidationState:function(){return e$},createRenderInBrowserAbortSignal:function(){return ew},formatDynamicAPIAccesses:function(){return eb},getFirstDynamicReason:function(){return et},getNavigationDisallowedDynamicReasons:function(){return eY},getStaticShellDisallowedDynamicReasons:function(){return eV},isDynamicPostpone:function(){return ed},isPrerenderInterruptedError:function(){return em},logDisallowedDynamicError:function(){return eq},markCurrentScopeAsDynamic:function(){return er},postponeWithTracking:function(){return ec},throwIfDisallowedDynamic:function(){return eK},throwIfSyncIOUsed:function(){return eG},throwToInterruptStaticGeneration:function(){return en},trackAllowedDynamicAccess:function(){return eR},trackDynamicDataInDynamicRender:function(){return ea},trackDynamicHoleInNavigation:function(){return eF},trackDynamicHoleInRuntimeShell:function(){return eU},trackDynamicHoleInStaticShell:function(){return eH},trackThrownErrorInNavigation:function(){return eB},useDynamicRouteParams:function(){return eS},useDynamicSearchParams:function(){return e_}});let R=J(T(14232)),L=T(70515),$=T(50473),F=T(20368),B=T(57049),U=T(61303),H=T(53812),z=T(96820),W=T(33870),q=T(26650),G=T(29877),K=T(34594),V=T(1100),Y=T(55534);function J(N){return N&&N.__esModule?N:{default:N}}let Q="function"==typeof R.default.unstable_postpone;function Z(N){return{isDebugDynamicAccesses:N,dynamicAccesses:[],syncDynamicErrorWithStack:null,syncDynamicErrorWithStackPostMicrotask:!1}}function X(){return{hasSuspenseAboveBody:!1,hasDynamicMetadata:!1,dynamicMetadata:null,hasDynamicViewport:!1,hasAllowedDynamic:!1,dynamicErrors:[]}}function ee(N){return N.syncDynamicErrorWithStackPostMicrotask?null:N.syncDynamicErrorWithStack}function et(N){var I;return null==(I=N.dynamicAccesses[0])?void 0:I.expression}function er(N,I,T){if(I)switch(I.type){case"cache":case"unstable-cache":case"private-cache":return}if(!N.forceDynamic&&!N.forceStatic){if(N.dynamicShouldError)throw Object.defineProperty(new $.StaticGenBailoutError(`Route ${N.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${T}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E553",enumerable:!1,configurable:!0});if(I)switch(I.type){case"prerender-ppr":return ec(N.route,T,I.dynamicTracking);case"prerender-legacy":I.revalidate=0;let P=Object.defineProperty(new L.DynamicServerError(`Route ${N.route} couldn't be rendered statically because it used ${T}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`),"__NEXT_ERROR_CODE",{value:"E550",enumerable:!1,configurable:!0});throw N.dynamicUsageDescription=T,N.dynamicUsageStack=P.stack,P}}}function en(N,I,T){let P=Object.defineProperty(new L.DynamicServerError(`Route ${I.route} couldn't be rendered statically because it used \`${N}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`),"__NEXT_ERROR_CODE",{value:"E558",enumerable:!1,configurable:!0});throw T.revalidate=0,I.dynamicUsageDescription=N,I.dynamicUsageStack=P.stack,P}function ea(N){switch(N.type){case"cache":case"unstable-cache":case"private-cache":return}}function ei(N,I,T){let P=ep(`Route ${N} needs to bail out of prerendering at this point because it used ${I}.`);T.controller.abort(P);let D=T.dynamicTracking;D&&D.dynamicAccesses.push({stack:D.isDebugDynamicAccesses?Error().stack:void 0,expression:I})}function eo(N,I,T,P){let D=P.dynamicTracking;D&&null===D.syncDynamicErrorWithStack&&(D.syncDynamicErrorWithStack=T,queueMicrotask(()=>{D.syncDynamicErrorWithStackPostMicrotask=!0})),ei(N,I,P)}function es(N,I,T,P){if((0,U.trackRuntimeDataAccessed)(P),!1===P.controller.signal.aborted){ei(N,I,P);let D=P.dynamicTracking;D&&null===D.syncDynamicErrorWithStack&&(D.syncDynamicErrorWithStack=T)}throw ep(`Route ${N} needs to bail out of prerendering at this point because it used ${I}.`)}function el({reason:N,route:I}){let T=F.workUnitAsyncStorage.getStore();ec(I,N,T&&"prerender-ppr"===T.type?T.dynamicTracking:null)}function ec(N,I,T){ev(),T&&T.dynamicAccesses.push({stack:T.isDebugDynamicAccesses?Error().stack:void 0,expression:I}),R.default.unstable_postpone(eu(N,I))}function eu(N,I){return`Route ${N} needs to bail out of prerendering at this point because it used ${I}. React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`}function ed(N){return"object"==typeof N&&null!==N&&"string"==typeof N.message&&ef(N.message)}function ef(N){return N.includes("needs to bail out of prerendering at this point because it used")&&N.includes("Learn more: https://nextjs.org/docs/messages/ppr-caught-error")}if(!1===ef(eu("%%%","^^^")))throw Object.defineProperty(Error("Invariant: isDynamicPostpone misidentified a postpone reason. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E296",enumerable:!1,
460configurable:!0});let eh="NEXT_PRERENDER_INTERRUPTED";function ep(N){let I=Object.defineProperty(Error(N),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return I.digest=eh,I}function em(N){return"object"==typeof N&&null!==N&&N.digest===eh&&"name"in N&&"message"in N&&N instanceof Error}function eg(N){return N.length>0}function ey(N,I){return N.dynamicAccesses.push(...I.dynamicAccesses),N.dynamicAccesses}function eb(N){return N.filter(N=>"string"==typeof N.stack&&N.stack.length>0).map(({expression:N,stack:I})=>(I=I.split("\n").slice(4).filter(N=>!(N.includes("node_modules/next/")||N.includes(" (<anonymous>)")||N.includes(" (node:"))).join("\n"),`Dynamic API Usage Debug - ${N}: 461${I}`))}function ev(){if(!Q)throw Object.defineProperty(Error("Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E224",enumerable:!1,configurable:!0})}function ew(){let N=new AbortController;return N.abort(Object.defineProperty(new W.BailoutToCSRError("Render in Browser"),"__NEXT_ERROR_CODE",{value:"E721",enumerable:!1,configurable:!0})),N.signal}function ex(N){switch(N.type){case"prerender":case"prerender-runtime":let I=new AbortController;if(N.cacheSignal)N.cacheSignal.inputReady().then(()=>{I.abort()});else{let T=(0,F.getStagedRenderingController)(N);T&&null!==T.finalStage?T.waitForStage(T.finalStage).then(()=>(0,z.scheduleOnNextTick)(()=>I.abort()),eA):(0,z.scheduleOnNextTick)(()=>I.abort())}return I.signal;case"prerender-client":case"validation-client":case"prerender-ppr":case"prerender-legacy":case"request":case"cache":case"private-cache":case"unstable-cache":case"generate-static-params":return}}function eA(){}function eE(N,I){let T=I.dynamicTracking;T&&T.dynamicAccesses.push({stack:T.isDebugDynamicAccesses?Error().stack:void 0,expression:N})}function eS(N){let I=B.workAsyncStorage.getStore(),T=F.workUnitAsyncStorage.getStore();if(I&&T)switch(T.type){case"prerender-client":{let P=T.fallbackRouteParams;P&&P.size>0&&R.default.use((0,U.makeClientHookHangingPromise)(T.renderSignal,new U.ClientHookDynamicError(I.route,N)));break}case"prerender":throw Object.defineProperty(new G.InvariantError(`\`${N}\` was called from a Server Component. Next.js should be preventing ${N} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E795",enumerable:!1,configurable:!0});case"prerender-ppr":{let P=T.fallbackRouteParams;if(P&&P.size>0)return ec(I.route,N,T.dynamicTracking);break}case"validation-client":case"prerender-legacy":case"request":case"unstable-cache":break;case"prerender-runtime":throw Object.defineProperty(new G.InvariantError(`\`${N}\` was called during a runtime prerender. Next.js should be preventing ${N} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E771",enumerable:!1,configurable:!0});case"cache":case"private-cache":throw Object.defineProperty(new G.InvariantError(`\`${N}\` was called inside a cache scope. Next.js should be preventing ${N} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E745",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new G.InvariantError(`\`${N}\` was called in \`generateStaticParams\`. Next.js should be preventing ${N} from being included in server component files statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1130",enumerable:!1,configurable:!0})}}function e_(N){let I=B.workAsyncStorage.getStore(),T=F.workUnitAsyncStorage.getStore();if(I)switch(!T&&(0,F.throwForMissingRequestStore)(N),T.type){case"validation-client":case"request":return;case"prerender-client":R.default.use((0,U.makeClientHookHangingPromise)(T.renderSignal,new U.ClientHookDynamicError(I.route,N)));break;case"prerender-legacy":case"prerender-ppr":if(I.forceStatic)return;throw Object.defineProperty(new W.BailoutToCSRError(N),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});case"prerender":case"prerender-runtime":throw Object.defineProperty(new G.InvariantError(`\`${N}\` was called from a Server Component. Next.js should be preventing ${N} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E795",enumerable:!1,
461configurable:!0});case"cache":case"unstable-cache":case"private-cache":throw Object.defineProperty(new G.InvariantError(`\`${N}\` was called inside a cache scope. Next.js should be preventing ${N} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E745",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new G.InvariantError(`\`${N}\` was called in \`generateStaticParams\`. Next.js should be preventing ${N} from being included in server component files statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1130",enumerable:!1,configurable:!0})}}let ek=/\n\s+at Suspense \(<anonymous>\)/,eC="body|div|main|section|article|aside|header|footer|nav|form|p|span|h1|h2|h3|h4|h5|h6",ej=RegExp(`\\n\\s+at Suspense \\(<anonymous>\\)(?:(?!\\n\\s+at (?:${eC}) \\(<anonymous>\\))[\\s\\S])*?\\n\\s+at ${H.ROOT_LAYOUT_BOUNDARY_NAME} \\([^\\n]*\\)`),eO=RegExp(`\\n\\s+at ${H.METADATA_BOUNDARY_NAME}[\\n\\s]`),eN=RegExp(`\\n\\s+at ${H.VIEWPORT_BOUNDARY_NAME}[\\n\\s]`),eI=RegExp(`\\n\\s+at ${H.OUTLET_BOUNDARY_NAME}[\\n\\s]`),eT=RegExp(`\\n\\s+at ${K.INSTANT_VALIDATION_BOUNDARY_NAME}[\\n\\s]`),eP=RegExp(`\\n\\s+at ${K.INSTANT_SLOT_MARKER_PREFIX}(\\d+)${K.INSTANT_SLOT_MARKER_SUFFIX}[\\n\\s]`);function eD(N,I){let{slotStacks:T}=I;if(T.length>1){let I=eP.exec(N);if(I){let N=T[parseInt(I[1],10)+1];if(null!=N)return N}}return T[0]??null}function eM(N,I){ej.test(N)&&(I.hasSuspenseAboveBody=!0)}function eR(N,I,T,P,D){let M=ee(D);if(eI.test(T))return void eM(T,P);if(eO.test(T)){P.hasDynamicMetadata=!0;return}if(eN.test(T)){P.hasDynamicViewport=!0;return}if(ej.test(T)){P.hasAllowedDynamic=!0,P.hasSuspenseAboveBody=!0;return}if(ek.test(T)){P.hasAllowedDynamic=!0;return}else if(M)return void P.dynamicErrors.push(M);if((0,U.isClientHookDynamicError)(N))return void P.dynamicErrors.push(ez(N,T,null));let R=ez((0,q.createDynamicOrRuntimeBodyError)(I.route),T,null);P.dynamicErrors.push(R)}var eL=((P={})[P.Link=1]="Link",P[P.Runtime=2]="Runtime",P[P.Dynamic=3]="Dynamic",P);function e$(N){return{hasDynamicMetadata:!1,hasAllowedClientDynamicAboveBoundary:!1,dynamicMetadata:null,hasDynamicViewport:!1,hasAllowedDynamic:!1,dynamicErrors:[],validationPreventingErrors:[],thrownErrorsOutsideBoundary:[],slotStacks:N}}function eF(N,I,T,P,D,M,R){let L=ee(D);if(eI.test(T))return;let $=eD(T,P);if(eO.test(T)){P.dynamicMetadata=ez(1===M?(0,q.createLinkMetadataError)(I.route):2===M?(0,q.createRuntimeMetadataError)(I.route):(0,q.createDynamicMetadataError)(I.route),T,$);return}if(eN.test(T)){let N=ez(1===M?(0,q.createLinkViewportError)(I.route):2===M?(0,q.createRuntimeViewportError)(I.route):(0,q.createDynamicViewportError)(I.route),T,$);P.dynamicErrors.push(N);return}let F=eT.exec(T);if(F){let N=ek.exec(T);if(N&&N.index<F.index){P.hasAllowedDynamic=!0;return}}else if((0,V.allRequiredBoundariesRendered)(R)){P.hasAllowedClientDynamicAboveBoundary=!0,P.hasAllowedDynamic=!0;return}else{let N=ez(Object.defineProperty(Error(`Route "${I.route}": Could not validate \`instant\` because a Client Component in a parent segment prevented the page from rendering.`),"__NEXT_ERROR_CODE",{value:"E1331",enumerable:!1,configurable:!0}),T,$);P.validationPreventingErrors.push(N);return}if(L){null!==$&&void 0===L.cause&&(L.cause=$()),P.dynamicErrors.push(L);return}
461if((0,U.isClientHookDynamicError)(N))return void P.dynamicErrors.push(ez(N,T,$));let B=ez(1===M?(0,q.createLinkBodyErrorInNavigation)(I.route):2===M?(0,q.createRuntimeBodyErrorInNavigation)(I.route):(0,q.createDynamicBodyErrorInNavigation)(I.route),T,$);P.dynamicErrors.push(B)}function eB(N,I,T,P){let D=eT.exec(P);if(D){let M=ek.exec(P);if(M&&M.index<D.index)return;let R=ez(Object.defineProperty(Error(`Route "${N.route}": Could not validate \`instant\` because an error prevented the target segment from rendering.`,{cause:T}),"__NEXT_ERROR_CODE",{value:"E1338",enumerable:!1,configurable:!0}),P,null);I.validationPreventingErrors.push(R)}else{let N=ez(Object.defineProperty(Error("An error occurred while attempting to validate instant UI. This error may be preventing the validation from completing.",{cause:T}),"__NEXT_ERROR_CODE",{value:"E1118",enumerable:!1,configurable:!0}),P,null);I.thrownErrorsOutsideBoundary.push(N)}}function eU(N,I,T,P,D){let M=ee(D);if(eI.test(T))return void eM(T,P);if(eO.test(T)){P.dynamicMetadata=ez((0,q.createDynamicMetadataError)(I.route),T,null);return}if(eN.test(T)){let N=ez((0,q.createDynamicViewportError)(I.route),T,null);P.dynamicErrors.push(N);return}if(ej.test(T)){P.hasAllowedDynamic=!0,P.hasSuspenseAboveBody=!0;return}if(ek.test(T)){P.hasAllowedDynamic=!0;return}else if(M)return void P.dynamicErrors.push(M);if((0,U.isClientHookDynamicError)(N))return void P.dynamicErrors.push(ez(N,T,null));let R=ez((0,q.createDynamicBodyError)(I.route),T,null);P.dynamicErrors.push(R)}function eH(N,I,T,P,D){let M=ee(D);if(eI.test(T))return void eM(T,P);if(eO.test(T)){P.dynamicMetadata=ez((0,q.createRuntimeMetadataError)(I.route),T,null);return}if(eN.test(T)){let N=ez((0,q.createRuntimeViewportError)(I.route),T,null);P.dynamicErrors.push(N);return}if(ej.test(T)){P.hasAllowedDynamic=!0,P.hasSuspenseAboveBody=!0;return}if(ek.test(T)){P.hasAllowedDynamic=!0;return}else if(M)return void P.dynamicErrors.push(M);if((0,U.isClientHookDynamicError)(N))return void P.dynamicErrors.push(ez(N,T,null));let R=ez((0,q.createRuntimeBodyError)(I.route),T,null);P.dynamicErrors.push(R)}function ez(N,I,T){let P=null;return null!==T&&(N.cause=T()),N.stack=N.name+": "+N.message+(P||I),N}var eW=((D={})[D.Full=0]="Full",D[D.Empty=1]="Empty",D[D.Errored=2]="Errored",D);function eq(N,I){console.error(I),(0,q.logBuildDebugHint)(N.route)}function eG(N,I){if(I.syncDynamicErrorWithStack)throw eq(N,I.syncDynamicErrorWithStack),new $.StaticGenBailoutError}function eK(N,I,T,P,D){if(eG(N,P),0===I&&!1===T.hasAllowedDynamic&&T.hasDynamicMetadata)throw console.error((0,q.createDynamicOrRuntimeMetadataError)(N.route).message),new $.StaticGenBailoutError;if(!D&&!T.hasSuspenseAboveBody&&0!==I){let P=T.dynamicErrors;if(P.length>0){for(let I=0;I<P.length;I++)eq(N,P[I]);throw new $.StaticGenBailoutError}if(T.hasDynamicViewport)throw console.error((0,q.createDynamicOrRuntimeViewportError)(N.route).message),new $.StaticGenBailoutError;if(1===I)throw console.error(`Route "${N.route}" did not produce a static shell and Next.js was unable to determine a reason. This is a bug in Next.js.`),new $.StaticGenBailoutError}}function eV(N,I,T,P){if(0===I&&!1===T.hasAllowedDynamic&&0===T.dynamicErrors.length&&T.dynamicMetadata)return[T.dynamicMetadata];if(P||T.hasSuspenseAboveBody)return[];if(0!==I){let P=T.dynamicErrors;if(P.length>0)return P;if(1===I)return[Object.defineProperty(new G.InvariantError(`Route "${N.route}" did not produce a static shell and Next.js was unable to determine a reason.`),"__NEXT_ERROR_CODE",{value:"E936",enumerable:!1,configurable:!0})]}return[]}function eY(N,I,T,P,D,R){if(P){let{missingSampleErrors:N}=P;if(N.length>0)return N}let{validationPreventingErrors:L}=T;if(L.length>0)return L;if(0!==I){let P=T.dynamicErrors;if(P.length>0)return P;if(1===I&&!T.hasAllowedClientDynamicAboveBoundary&&(0,V.allRequiredBoundariesRendered)(D))return Object.defineProperty(new G.InvariantError(`Route "${N.route}" failed to render during instant validation and Next.js was unable to determine a reason.`),"__NEXT_ERROR_CODE",{value:"E1055",enumerable:!1,configurable:!0})}else{let N=T.dynamicErrors;if(N.length>0)return N;if(!1===T.hasAllowedDynamic&&T.dynamicMetadata)return[T.dynamicMetadata]}if(!(0,V.allRequiredBoundariesRendered)(D)){let{thrownErrorsOutsideBoundary:I}
461=T,P=T.slotStacks[0];if(0===I.length){let I=[];for(let[N,T]of D.requiredIds)if(!D.renderedIds.has(N))for(let N of T){let T=N.replace(/^\[project\][\\/]?/,"").replace(M.cwd()+"/","").replace(M.cwd()+"\\","");I.push(T)}return I.sort(),(0,Y.createUnrenderedSegmentError)(N.route,I)}if(1===I.length){let T=`Route "${N.route}": Could not validate \`instant\` because the target segment was prevented from rendering, likely due to the following error.`,D=null!==P?P():Error();return D.name="Error",D.message=T,AggregateError([D,I[0]])}{let T=`Route "${N.route}": Could not validate \`instant\` because the target segment was prevented from rendering, likely due to one of the following errors.`,D=null!==P?P():Error();return D.name="Error",D.message=T,AggregateError([D,...I])}}return[]}},18758:(N,I,T)=>{var P=T(31365);function D(N,I){for(var T=0;T<I.length;T++){var D=I[T];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(N,P(D.key),D)}}N.exports=function(N,I,T){return I&&D(N.prototype,I),T&&D(N,T),Object.defineProperty(N,"prototype",{writable:!1}),N},N.exports.__esModule=!0,N.exports.default=N.exports},18769:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),function(N,I){for(var T in I)Object.defineProperty(N,T,{enumerable:!0,get:I[T]})}(I,{RequestCookies:function(){return P.RequestCookies},ResponseCookies:function(){return P.ResponseCookies},stringifyCookie:function(){return P.stringifyCookie}});let P=T(77820)},18847:(N,I,T)=>{N.exports=T(64415)},18908:(N,I,T)=>{"use strict";T.d(I,{Z:()=>B});var P=T(37876),D=T(68602),M=T(77470),R=T(84612),L=T(63808),$=T(14232),F=T(36379);let B=({id:N,showHeader:I=!0,label:T,placeholder:B,errors:U,type:H="text",setDataLayer:z,setDataLayerError:W,trackingProps:q,variant:G="brunel"})=>{let K=(0,$.useRef)(!1),[V]=(0,L.Mt)(N),Y=(0,$.useMemo)(()=>!!V.value&&U?.length===U?.filter(N=>N?.touched&&!N?.message)?.length,[U,V.value]);return(0,P.jsxs)("div",{id:`FormInput-${N}`,className:(0,F.cn)("relative flex w-full flex-col gap-2"),children:[I&&(0,P.jsxs)("div",{className:"flex flex-col",children:[(0,P.jsx)(M.l,{id:N,label:T,focusOnClick:!1,type:"taylorhopkinson"===G?"title-th":"title"}),U?.map(I=>{if(I?.touched&&I?.message)return K.current||(W?.(),K.current=!0),(0,P.jsx)(D.j,{id:I?.id??N,error:I.message},`FormError-${I?.id??N}`)})]}),(0,P.jsxs)("div",{className:"relative flex",children:[(0,P.jsx)(L.D0,{...q,id:N,type:H,name:N,placeholder:" ",className:(0,F.cn)("input w-full",{"rounded-lg":"taylorhopkinson"===G}),onClick:z,onKeyUp:N=>{"Tab"===N.key&&z?.()}}),Y&&(0,P.jsx)(R.Sr,{className:"absolute right-0 mr-4 self-center"}),B&&!V.value&&(0,P.jsx)(M.l,{id:N,type:"taylorhopkinson"===G?"subtitle-th":"subtitle",effect:"floating-peer",label:B})]})]})}},19299:(N,I,T)=>{"use strict";T.d(I,{mG:()=>$,Xv:()=>M,aG:()=>D,UV:()=>L,xu:()=>R,Zh:()=>P});let P="2.1.2",D="sc_",M="cid",R=730,L=86400,$="v1.2"},19472:(N,I,T)=>{"use strict";var P=T(4103),D=T.n(P);String.prototype.toSlug=function(N){return D()(this?.toString(),{replacement:"-",lower:!0,strict:!0,locale:N,trim:!0})},String.prototype.replaceDashesWithSpaces=function(){return this?.replace(/-/g," ")},String.prototype.replaceSpacesWithDashes=function(){return this?.replace(/\s/g,"-")},String.prototype.toTitleCase=function(){return this?.replaceAll(/\S*[(\W?)\w]/g,N=>N.charAt(0).toUpperCase()+N.substring(1).toLowerCase())},String.prototype.toCamelCase=function(){return this.replace(/(?:^\w|[A-Z]|\b\w)/g,function(N,I){return 0==I?N.toLowerCase():N.toUpperCase()}).replace(/\s+/g,"")},String.prototype.capitalize=function(){return this?.charAt(0)?.toUpperCase()+this?.toLowerCase()?.slice(1)},String.prototype.removeHTML=function(){return this?.replace(/(<([^>]+)>)/gi,"")},String.prototype.remove=function(N){return this?.replaceAll(N,"")},String.prototype.equalsIgnoreCase=function(N){return this?.localeCompare(N,void 0,{sensitivity:"accent"})===0},String.prototype.isEmpty=function(){return!this&&!this?.length},String.prototype.removeTrailingSlash=function(){return this?.charAt(this?.length-1)==="/"?this?.slice(0,this?.length-1):this?.toString()},String.prototype.removeLocaleUrlSegment=function(){let N=this?.startsWith("/"),I=this.replace(/^\/([a-z][a-z]-[A-Z][A-Z]|en)\/?/gi,"");return N?I.ensureStartingSlash():I},String.prototype.ensureStartingSlash=function(){return this?.startsWith("/")?this.toString():`/${this.toString()}`}
461,String.prototype.toSitecoreGUID=function(){if(this.isValidGUID())return/^\{.*\}$/.test(this)?this?.toString():`{${this.toString()}}`;let N="{"+this.slice(0,8)+"-"+this.slice(8,12)+"-"+this.slice(12,16)+"-"+this.slice(16,20)+"-"+this.slice(20,32)+"}";return N.isValidGUID(!0)?N:void 0},String.prototype.toSitecoreLocale=function(){return this.slice(0,2).toLowerCase()+this.slice(2,5)?.toUpperCase()},String.prototype.isValidGUID=function(N){if(this.length>0){let I=/^(\{){0,1}([0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12})(\}){0,1}$/;return!0===N&&(I=/^(\{)([0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12})(\})$/),I.test(this.toString())}return!1},String.prototype.whack=function(){return this.replace(/[^A-Za-z0-9]+/g,"").normalize()},String.prototype.emptyStringToNull=function(){return""!==this.toString()?this.toString():null},String.prototype.escapeXml=function(){return this.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},String.prototype.decodeURIOrNull=function(){try{return decodeURI(this)}catch{return null}},String.prototype.decodeURIComponentOrNull=function(){try{return decodeURIComponent(this)}catch{return null}},String.prototype.hexToGuid=function(N=!0){if(32!==this.length)return this.toString();let I=this.match(/.{2}/g),T=I.slice(0,4).reverse().join(""),P=I.slice(4,6).reverse().join(""),D=I.slice(6,8).reverse().join(""),M=I.slice(8,10).join(""),R=I.slice(10).join(""),L=`${T}-${P}-${D}-${M}-${R}`.toUpperCase();return N?`{${L}}`:L}},19718:(N,I,T)=>{"use strict";T.d(I,{p:()=>P}),T(51725);let P=N=>!!N&&N.startsWith("/")&&!N.startsWith("//")},19908:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),function(N,I){for(var T in I)Object.defineProperty(N,T,{enumerable:!0,get:I[T]})}(I,{isRequestApiAllowedInCurrentPhase:function(){return $},throwForSearchParamsAccessInUseCache:function(){return L},throwWithStaticGenerationBailoutErrorWithDynamicError:function(){return R}});let P=T(50473),D=T(88264),M=T(44538);function R(N,I){throw Object.defineProperty(new P.StaticGenBailoutError(`Route ${N} with \`dynamic = "error"\` couldn't be rendered statically because it used ${I}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E543",enumerable:!1,configurable:!0})}function L(N,I){let T=Object.defineProperty(Error(`Route ${N.route} used \`searchParams\` inside "use cache". Accessing dynamic request data inside a cache scope is not supported. If you need some search params inside a cached function await \`searchParams\` outside of the cached function and pass only the required search params as arguments to the cached function. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E842",enumerable:!1,configurable:!0});throw Error.captureStackTrace(T,I),N.invalidDynamicUsageError??=T,T}function $(N){switch(N.phase){case"action":case"render":return!0;case"after":{let N=D.actionAsyncStorage.getStore();if(N&&(N.isAppRoute||N.isAction))return!0;let I=M.afterTaskAsyncStorage.getStore();if(I)return"action"===I.rootTaskSpawnPhase;return!1}}}},19996:(N,I,T)=>{"use strict";T.d(I,{k:()=>B});var P=T(38505);let D={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},M={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},R={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},L={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},$={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},F={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},B={ordinalNumber:(N,I)=>{let T=Number(N),P=T%100;if(P>20||P<10)switch(P%10){case 1:return T+"st";case 2:return T+"nd";case 3:return T+"rd"}return T+"th"},era:(0,P.o)({values:D,defaultWidth:"wide"}),quarter:(0,P.o)({values:M,defaultWidth:"wide",argumentCallback:N=>N-1}),month:(0,P.o)({values:R,defaultWidth:"wide"}),day:(0,P.o)({values:L,defaultWidth:"wide"}),dayPeriod:(0,P.o)({values:$,defaultWidth:"wide",formattingValues:F,defaultFormattingWidth:"wide"})}},20368:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),function(N,I){for(var T in I)Object.defineProperty(N,T,{enumerable:!0,get:I[T]})}(I,{getCacheSignal:function(){return z},getDraftModeProviderForCacheScope:function(){return U},getHmrRefreshHash:function(){return $},getResumeDataCache:function(){return L},getServerComponentsHmrCache:function(){return B},getStagedRenderingController:function(){return H},getVaryParamsAccumulator:function(){return W},isHmrRefresh:function(){return F},throwForMissingRequestStore:function(){return M},throwInvariantForMissingStore:function(){return R},workUnitAsyncStorage:function(){return P.workUnitAsyncStorageInstance}});let P=T(9277),D=T(29877);function M(N){throw Object.defineProperty(Error(`\`${N}\` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`),"__NEXT_ERROR_CODE",{value:"E251",enumerable:!1,
461configurable:!0})}function R(){throw Object.defineProperty(new D.InvariantError("Expected workUnitAsyncStorage to have a store."),"__NEXT_ERROR_CODE",{value:"E696",enumerable:!1,configurable:!0})}function L(N){switch(N.type){case"request":case"prerender":case"prerender-runtime":case"prerender-client":case"validation-client":case"prerender-ppr":return N.resumeDataCache;case"cache":case"private-cache":case"unstable-cache":case"prerender-legacy":case"generate-static-params":return null;default:return N}}function $(N){}function F(N){return!1}function B(N){}function U(N,I){if(N.isDraftMode)switch(I.type){case"cache":case"private-cache":case"unstable-cache":case"prerender-runtime":case"request":return I.draftMode}}function H(N){switch(N.type){case"request":case"prerender-runtime":case"prerender":return N.stagedRendering??null;case"prerender-client":case"validation-client":case"prerender-ppr":case"prerender-legacy":case"cache":case"private-cache":case"unstable-cache":case"generate-static-params":return null;default:return N}}function z(N){switch(N.type){case"prerender":case"prerender-client":case"validation-client":case"prerender-runtime":return N.cacheSignal;case"request":if(N.cacheSignal)return N.cacheSignal;case"prerender-ppr":case"prerender-legacy":case"cache":case"private-cache":case"unstable-cache":case"generate-static-params":return null;default:return N}}function W(N){switch(N.type){case"prerender":case"prerender-runtime":case"request":return N.varyParamsAccumulator??null;default:return null}}},20528:(N,I,T)=>{"use strict";T.r(I),T.d(I,{GlobalNewsCard:()=>F});var P=T(37876),D=T(23649),M=T(87273),R=T(79239),L=T(63366);function $(N,I){if(!N)return"";let T=N instanceof Date?N:new Date(N);return Number.isNaN(T.getTime())?"string"==typeof N?N:"":T.toLocaleDateString("en"===I?"en-GB":I??"en-GB",{day:"numeric",month:"short",year:"numeric"})}function F({item:N,variants:I,locale:T,readMoreText:B,readInText:U}){let H=N.datePublished?.value,z=N.url?.path??"#";return(0,P.jsxs)(L.az,{className:"flex flex-row overflow-hidden rounded-sm border border-accent-iron bg-white shadow",children:[N.newsImage?.value&&(0,P.jsx)(L.az,{className:"relative shrink-0 overflow-hidden bg-gray-100 md:w-64",children:(0,P.jsx)(M._,{field:N.newsImage,alt:N.newsImage?.value?.alt??N.name,className:"h-full w-full object-cover"})}),(0,P.jsxs)(L.az,{className:"flex flex-1 flex-col justify-center p-6 md:p-8",children:[(0,P.jsx)(L.o5,{plainText:$(H,T),className:"mb-2 text-xs! text-gray-900"}),(0,P.jsx)(L.o5,{type:"h3",plainText:N.name,className:"line-clamp-2"}),N.newsShortDescription&&(0,P.jsx)(R.s,{field:N.newsShortDescription,className:"prose mb-4 line-clamp-3 max-w-none md:line-clamp-none"}),(0,P.jsxs)(L.az,{className:"flex flex-wrap items-center gap-2",children:[(0,P.jsx)(D.Button,{variant:"primaryrounded",className:"self-start py-1 font-medium text-brunel-yellow",linkField:{value:{href:z,linktype:z.startsWith("http")?"external":"internal",target:"_blank",text:B}}}),I.length>1&&(0,P.jsxs)(L.az,{className:"flex flex-wrap items-center gap-1.5 text-sm text-gray-600",children:[(0,P.jsx)(L.o5,{plainText:U,className:"mr-1 shrink-0"}),I.map((N,I)=>(0,P.jsxs)(L.az,{as:"span",className:"inline-flex items-center gap-1.5",children:[I>0&&(0,P.jsx)("span",{className:"text-gray-400",children:"|"}),(0,P.jsx)("a",{href:N.url?.path??"#",className:"text-brunel-yellow underline hover:no-underline",target:"_blank",rel:"noopener noreferrer",children:N.language?.nativeName??N.language?.name??"â"})]},N.id))]})]})]})]})}},20934:(N,I,T)=>{"use strict";T.r(I),T.d(I,{default:()=>z,fetchPlacements:()=>H});var P=T(37876),D=T(55333),M=T(67914),R=T(8871),L=T(63366),$=T(60409),F=T(27400),B=T(36379),U=T(81202);let H=async N=>N&&N?.user?.id?await R.r.getUserPlacementsCrm({userId:N.user.id})??[]:[],z=({page:N,fields:I,params:T})=>{let{data:R,isPending:z}=(0,M.I)({queryKey:["placements"],queryFn:async()=>H(N.layout.session),enabled:!!N.layout.session}),W=N.locale??$.Xn,q=(0,B.Qh)(T?.Styles);return(0,D.Cx)()?(0,P.jsx)(L.az,{className:`border border-dashed border-gray-400 p-4 text-center text-gray-500 ${q}`,children:(0,P.jsx)(F.$,{id:"placements-id",title:"Placements",msg:"Placeholder for placements component"})}):R?.length?(0,P.jsx)("ul",{className:"mt-6 list-none overflow-hidden rounded-lg shadow-md",children:R.map(N=>{let I=(0,U.rn)(new Date(N?.startDate??0).toISOString(),W),T=(0,U.rn)(new Date(N?.endDate??0).toISOString(),W);return(0,P.jsx)("li",{className:"relative flex flex-col border-accent-iron bg-white p-6 shadow not-last:border-b md:flex-row",children:(0,P.jsxs)(L.az,{children:[(0,P.jsx)(L.o5,{type:"h3",plainText:N.jobTitle}),(0,P.jsx)(L.o5,{plainText:`${N?.clientName?.name} `}),(0,P.jsx)(L.o5,{plainText:`${I} / ${T}`})]})},N.placementNumber)})}):(0,P.jsxs)(L.az,{className:"flex w-full flex-col items-center bg-accent-pampas p-8 text-accent-fiord!",children:[(0,P.jsx)(L.az,{dangerouslySetInnerHTML:{__html:I.noDataDescription.value||"There are no placements at this time"}}),z&&(0,P.jsxs)(L.az,{className:"flex items-center gap-2",children:[(0,P.jsx)(L.az,{as:"span",className:"loading-spoinner loading w-6 text-brunel-yellow"}),(0,P.jsx)(L.o5,{plainText:"Loading Placements..."})]})]})}},21407:(N,I,T)=>{"use strict";T.d(I,{$:()=>L,s:()=>R});var P=T(60388),D=T(48149),M=T(46305),R=class extends M.k{#t;#g;#y;#b;constructor(N){super(),this.#t=N.client,this.mutationId=N.mutationId,this.#y=N.mutationCache,this.#g=[],this.state=N.state||L(),this.setOptions(N.options),this.scheduleGc()}setOptions(N){this.options=N,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(N){this.#g.includes(N)||(this.#g.push(N),this.clearGcTimeout(),this.#y.notify({type:"observerAdded",mutation:this,observer:N}))}removeObserver(N){this.#g=this.#g.filter(I=>I!==N),this.scheduleGc(),this.#y.notify({type:"observerRemoved",mutation:this,observer:N})}optionalRemove(){this.#g.length||("pending"===this.state.status?this.scheduleGc():this.#y.remove(this))}continue(){return this.#b?.continue()??("pending"===this.state.status?this.execute(this.state.variables):Promise.resolve())}async execute(N){let I=()=>{this.#v({type:"continue"})},T={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey},P=this.#b=(0,D.II)({fn:()=>this.options.mutationFn?this.options.mutationFn(N,T):Promise.reject(Error("No mutationFn found")),onFail:(N,I)=>{this.#v({type:"failed",failureCount:N,error:I})},onPause:()=>{this.#v({type:"pause"})},onContinue:I,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#y.canRun(this)}),M="pending"===this.state.status,R=!P.canStart();try{if(M)I();else{this.#v({type:"pending",variables:N,isPaused:R}),this.#y.config.onMutate&&await this.#y.config.onMutate(N,this,T);let I=await this.options.onMutate?.(N,T);I!==this.state.context&&this.#v({type:"pending",context:I,variables:N,isPaused:R})}let D=await P.start();
461return await this.#y.config.onSuccess?.(D,N,this.state.context,this,T),await this.options.onSuccess?.(D,N,this.state.context,T),await this.#y.config.onSettled?.(D,null,this.state.variables,this.state.context,this,T),await this.options.onSettled?.(D,null,N,this.state.context,T),this.#v({type:"success",data:D}),D}catch(I){try{await this.#y.config.onError?.(I,N,this.state.context,this,T)}catch(N){Promise.reject(N)}try{await this.options.onError?.(I,N,this.state.context,T)}catch(N){Promise.reject(N)}try{await this.#y.config.onSettled?.(void 0,I,this.state.variables,this.state.context,this,T)}catch(N){Promise.reject(N)}try{await this.options.onSettled?.(void 0,I,N,this.state.context,T)}catch(N){Promise.reject(N)}throw this.#v({type:"error",error:I}),I}finally{this.#b===P&&(this.#b=void 0),this.#y.runNext(this)}}#v(N){let I=I=>{switch(N.type){case"failed":return{...I,failureCount:N.failureCount,failureReason:N.error};case"pause":return{...I,isPaused:!0};case"continue":return{...I,isPaused:!1};case"pending":return{...I,context:N.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:N.isPaused,status:"pending",variables:N.variables,submittedAt:Date.now()};case"success":return{...I,data:N.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...I,data:void 0,error:N.error,failureCount:I.failureCount+1,failureReason:N.error,isPaused:!1,status:"error"}}};this.state=I(this.state),P.jG.batch(()=>{this.#g.forEach(I=>{I.onMutationUpdate(N)}),this.#y.notify({mutation:this,type:"updated",action:N})})}};function L(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},21426:(N,I,T)=>{"use strict";T.r(I),T.d(I,{default:()=>es,render:()=>ee,renderToStaticMarkup:()=>ee,renderToString:()=>ee,shallowRender:()=>Z});var P=T(63780),D=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,M=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,R=/[\s\n\\/='"\0<>]/,L=/^xlink:?./,$=/["&<]/;function F(N){if(!1===$.test(N+=""))return N;for(var I=0,T=0,P="",D="";T<N.length;T++){switch(N.charCodeAt(T)){case 34:D=""";break;case 38:D="&";break;case 60:D="<";break;default:continue}T!==I&&(P+=N.slice(I,T)),P+=D,I=T+1}return T!==I&&(P+=N.slice(I,T)),P}var B=function(N,I){return String(N).replace(/(\n+)/g,"$1"+(I||" "))},U=function(N,I,T){return String(N).length>(I||40)||!T&&-1!==String(N).indexOf("\n")||-1!==String(N).indexOf("<")},H={},z=/([A-Z])/g;function W(N){var I="";for(var T in N){var P=N[T];null!=P&&""!==P&&(I&&(I+=" "),I+="-"==T[0]?T:H[T]||(H[T]=T.replace(z,"-$1").toLowerCase()),I="number"==typeof P&&!1===D.test(T)?I+": "+P+"px;":I+": "+P+";")}return I||void 0}function q(N,I){return Array.isArray(I)?I.reduce(q,N):null!=I&&!1!==I&&N.push(I),N}function G(){this.__d=!0}function K(N,I){return{__v:N,context:I,props:N.props,setState:G,forceUpdate:G,__d:!0,__h:[]}}function V(N,I){var T=N.contextType,P=T&&I[T.__c];return null!=T?P?P.props.value:T.__:I}var Y=[];function J(N,I,T,D,$,H){if(null==N||"boolean"==typeof N)return"";if("object"!=typeof N)return"function"==typeof N?"":F(N);var z=T.pretty,G=z&&"string"==typeof z?z:" ";if(Array.isArray(N)){for(var Q="",Z=0;Z<N.length;Z++)z&&Z>0&&(Q+="\n"),Q+=J(N[Z],I,T,D,$,H);return Q}if(void 0!==N.constructor)return"";var X,ee=N.type,et=N.props,er=!1;if("function"==typeof ee){if(er=!0,!T.shallow||!D&&!1!==T.renderRootComponent){if(ee===P.Fragment){var en=[];return q(en,N.props.children),J(en,I,T,!1!==T.shallowHighOrder,$,H)}var ea,ei=N.__c=K(N,I);P.options.__b&&P.options.__b(N);var eo=P.options.__r;if(ee.prototype&&"function"==typeof ee.prototype.render){var es=V(ee,I);(ei=N.__c=new ee(et,es)).__v=N,ei._dirty=ei.__d=!0,ei.props=et,null==ei.state&&(ei.state={}),null==ei._nextState&&null==ei.__s&&(ei._nextState=ei.__s=ei.state),ei.context=es,ee.getDerivedStateFromProps?ei.state=Object.assign({},ei.state,ee.getDerivedStateFromProps(ei.props,ei.state)):ei.componentWillMount&&(ei.componentWillMount(),ei.state=ei._nextState!==ei.state?ei._nextState:ei.__s!==ei.state?ei.__s:ei.state),eo&&eo(N),ea=ei.render(ei.props,ei.state,ei.c
461ontext)}else for(var el=V(ee,I),ec=0;ei.__d&&ec++<25;)ei.__d=!1,eo&&eo(N),ea=ee.call(N.__c,et,el);return ei.getChildContext&&(I=Object.assign({},I,ei.getChildContext())),P.options.diffed&&P.options.diffed(N),J(ea,I,T,!1!==T.shallowHighOrder,$,H)}ee=(X=ee).displayName||X!==Function&&X.name||function(N){var I=(Function.prototype.toString.call(N).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!I){for(var T=-1,P=Y.length;P--;)if(Y[P]===N){T=P;break}T<0&&(T=Y.push(N)-1),I="UnnamedComponent"+T}return I}(X)}var eu,ed,ef="<"+ee;if(et){var eh=Object.keys(et);T&&!0===T.sortAttributes&&eh.sort();for(var ep=0;ep<eh.length;ep++){var em=eh[ep],eg=et[em];if("children"!==em){if(!R.test(em)&&(T&&T.allAttributes||"key"!==em&&"ref"!==em&&"__self"!==em&&"__source"!==em)){if("defaultValue"===em)em="value";else if("defaultChecked"===em)em="checked";else if("defaultSelected"===em)em="selected";else if("className"===em){if(void 0!==et.class)continue;em="class"}else $&&L.test(em)&&(em=em.toLowerCase().replace(/^xlink:?/,"xlink:"));if("htmlFor"===em){if(et.for)continue;em="for"}"style"===em&&eg&&"object"==typeof eg&&(eg=W(eg)),"a"===em[0]&&"r"===em[1]&&"boolean"==typeof eg&&(eg=String(eg));var ey=T.attributeHook&&T.attributeHook(em,eg,I,T,er);if(ey||""===ey)ef+=ey;else if("dangerouslySetInnerHTML"===em)ed=eg&&eg.__html;else if("textarea"===ee&&"value"===em)eu=eg;else if((eg||0===eg||""===eg)&&"function"!=typeof eg){if(!(!0!==eg&&""!==eg||(eg=em,T&&T.xml))){ef=ef+" "+em;continue}if("value"===em){if("select"===ee){H=eg;continue}"option"===ee&&H==eg&&void 0===et.selected&&(ef+=" selected")}ef=ef+" "+em+'="'+F(eg)+'"'}}}else eu=eg}}if(z){var eb=ef.replace(/\n\s*/," ");eb===ef||~eb.indexOf("\n")?z&&~ef.indexOf("\n")&&(ef+="\n"):ef=eb}if(ef+=">",R.test(ee))throw Error(ee+" is not a valid HTML tag name in "+ef);var ev,ew=M.test(ee)||T.voidElements&&T.voidElements.test(ee),ex=[];if(ed)z&&U(ed)&&(ed="\n"+G+B(ed,G)),ef+=ed;else if(null!=eu&&q(ev=[],eu).length){for(var eA=z&&~ef.indexOf("\n"),eE=!1,eS=0;eS<ev.length;eS++){var e_=ev[eS];if(null!=e_&&!1!==e_){var ek=J(e_,I,T,!0,"svg"===ee||"foreignObject"!==ee&&$,H);if(z&&!eA&&U(ek)&&(eA=!0),ek)if(z){var eC=ek.length>0&&"<"!=ek[0];eE&&eC?ex[ex.length-1]+=ek:ex.push(ek),eE=eC}else ex.push(ek)}}if(z&&eA)for(var ej=ex.length;ej--;)ex[ej]="\n"+G+B(ex[ej],G)}if(ex.length||ed)ef+=ex.join("");else if(T&&T.xml)return ef.substring(0,ef.length-1)+" />";return!ew||ev||ed?(z&&~ef.indexOf("\n")&&(ef+="\n"),ef=ef+"</"+ee+">"):ef=ef.replace(/>$/," />"),ef}var Q={shallow:!0};ee.render=ee;var Z=function(N,I){return ee(N,I,Q)},X=[];function ee(N,I,T){I=I||{};var D=P.options.__s;P.options.__s=!0;var M,R=(0,P.h)(P.Fragment,null);return R.__k=[N],M=T&&(T.pretty||T.voidElements||T.sortAttributes||T.shallow||T.allAttributes||T.xml||T.attributeHook)?J(N,I,T):eo(N,I,!1,void 0,R),P.options.__c&&P.options.__c(N,X),P.options.__s=D,X.length=0,M}function et(N){return null==N||"boolean"==typeof N?null:"string"==typeof N||"number"==typeof N||"bigint"==typeof N?(0,P.h)(null,null,N):N}function er(N,I){return"className"===N?"class":"htmlFor"===N?"for":"defaultValue"===N?"value":"defaultChecked"===N?"checked":"defaultSelected"===N?"selected":I&&L.test(N)?N.toLowerCase().replace(/^xlink:?/,"xlink:"):N}function en(N,I){return"style"===N&&null!=I&&"object"==typeof I?W(I):"a"===N[0]&&"r"===N[1]&&"boolean"==typeof I?String(I):I}var ea=Array.isArray,ei=Object.assign;function eo(N,I,T,D,L){if(null==N||!0===N||!1===N||""===N)return"";if("object"!=typeof N)return"function"==typeof N?"":F(N);if(ea(N)){var $="";L.__k=N;for(var B=0;B<N.length;B++)$+=eo(N[B],I,T,D,L),N[B]=et(N[B]);return $}if(void 0!==N.constructor)return"";N.__=L,P.options.__b&&P.options.__b(N);var U=N.type,H=N.props;if("function"==typeof U){if(U===P.Fragment)Q=H.children;else{var z,W,q,G,Y,J,Q=U.prototype&&"function"==typeof U.prototype.render?(z=N,W=I,G=V(q=z.type,W),Y=new q(z.props,G),z.__c=Y,Y.__v=z,Y.__d=!0,Y.props=z.props,null==Y.state&&(Y.state={}),null==Y.__s&&(Y.__s=Y.state),Y.context=G,q.getDerivedStateFromProps?Y.state=ei({},Y.state,q.getDerivedStateFromProps(Y.props,Y.state)):Y.componentWillMount&&(Y.componentWillMount(),Y.state=Y.__s!==Y.state?Y.__s:Y.state),(J=P.options.__r)&&J(z),Y.render(Y.props,Y.state,Y.context)):function(N,I){var T,D=K(N,I),M=V(N.t
461ype,I);N.__c=D;for(var R=P.options.__r,L=0;D.__d&&L++<25;)D.__d=!1,R&&R(N),T=N.type.call(D,N.props,M);return T}(N,I),Z=N.__c;Z.getChildContext&&(I=ei({},I,Z.getChildContext()))}var X=eo(Q=null!=Q&&Q.type===P.Fragment&&null==Q.key?Q.props.children:Q,I,T,D,N);return P.options.diffed&&P.options.diffed(N),N.__=void 0,P.options.unmount&&P.options.unmount(N),X}var ee,es,el="<";if(el+=U,H)for(var ec in ee=H.children,H){var eu=H[ec];if(!("key"===ec||"ref"===ec||"__self"===ec||"__source"===ec||"children"===ec||"className"===ec&&"class"in H||"htmlFor"===ec&&"for"in H||R.test(ec))){if(eu=en(ec=er(ec,T),eu),"dangerouslySetInnerHTML"===ec)es=eu&&eu.__html;else if("textarea"===U&&"value"===ec)ee=eu;else if((eu||0===eu||""===eu)&&"function"!=typeof eu){if(!0===eu||""===eu){eu=ec,el=el+" "+ec;continue}if("value"===ec){if("select"===U){D=eu;continue}"option"!==U||D!=eu||"selected"in H||(el+=" selected")}el=el+" "+ec+'="'+F(eu)+'"'}}}var ed=el;if(el+=">",R.test(U))throw Error(U+" is not a valid HTML tag name in "+el);var ef="",eh=!1;if(es)ef+=es,eh=!0;else if("string"==typeof ee)ef+=F(ee),eh=!0;else if(ea(ee)){N.__k=ee;for(var ep=0;ep<ee.length;ep++){var em=ee[ep];if(ee[ep]=et(em),null!=em&&!1!==em){var eg=eo(em,I,"svg"===U||"foreignObject"!==U&&T,D,N);eg&&(ef+=eg,eh=!0)}}}else if(null!=ee&&!1!==ee&&!0!==ee){N.__k=[et(ee)];var ey=eo(ee,I,"svg"===U||"foreignObject"!==U&&T,D,N);ey&&(ef+=ey,eh=!0)}if(P.options.diffed&&P.options.diffed(N),N.__=void 0,P.options.unmount&&P.options.unmount(N),eh)el+=ef;else if(M.test(U))return ed+" />";return el+"</"+U+">"}ee.shallowRender=Z;let es=ee},21442:(N,I,T)=>{"use strict";T.d(I,{nC:()=>M,qw:()=>D,t_:()=>R});var P=T(91408);let D={emailAddress:"",otpCode:""},M=(N,I)=>P.Ik().shape({emailAddress:P.Yj().email(N).required(I)}),R=(N,I)=>P.Ik().shape({otpCode:P.Yj().matches(/^[0-9]{6}$/,I).min(6,N).max(6,N).required(I)})},21791:(N,I,T)=>{"use strict";T.d(I,{y:()=>$});var P=T(37876),D=T(84612),M=T(6807),R=T(14232),L=T(36379);let $=({type:N,data:I,open:T=!1,autoClose:$=5,onClose:F})=>{let B=()=>(0,P.jsx)(M.o,{className:(0,L.cn)({"text-toast-info":"info"===N,"text-toast-success":"success"===N,"text-toast-warning":"warning"===N,"text-toast-error":"error"===N}),plainText:I.title});return(0,R.useEffect)(()=>{T&&(I?.dataLayer?.(),setTimeout(()=>{F?.()},1e3*$))},[T]),T?(0,P.jsx)("div",{className:"toast z-60 h-max",children:(0,P.jsxs)("div",{className:(0,L.cn)("flex min-h-30 max-w-max rounded-xl bg-white p-4 pl-2 shadow-default",{"alert-info [&>span]:bg-toast-info":"info"===N,"alert-success [&>span]:bg-toast-success":"success"===N,"alert-warning [&>span]:bg-toast-warning":"warning"===N,"alert-error [&>span]:bg-toast-error":"error"===N}),children:[(0,P.jsx)("span",{className:"mr-6 ml-1 flex w-2 rounded-xl"}),(0,P.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,P.jsxs)("span",{className:"flex items-center justify-between gap-6",children:[B(),(0,P.jsx)("span",{className:"hover:cursor-pointer",onClick:F,children:(0,P.jsx)(D.EO,{})})]}),(0,P.jsx)("div",{className:"flex max-w-100 flex-1 flex-wrap pr-12",children:(0,P.jsx)(M.o,{className:"flex text-pretty break-normal",plainText:I.message})})]})]})}):null}},21962:(N,I)=>{"use strict";var T;T={value:!0},I.A=function N(N){return{id:"credentials",name:"Credentials",type:"credentials",credentials:{},authorize:()=>null,options:N}}},22544:(N,I,T)=>{"use strict";T.d(I,{N:()=>V});var P=T(14232),D=T(48230),M=T.n(D),R=T(73813),L=T(98741),$=T(63561),F=T(53282),B=function(N,I){var T={};for(var P in N)Object.prototype.hasOwnProperty.call(N,P)&&0>I.indexOf(P)&&(T[P]=N[P]);if(null!=N&&"function"==typeof Object.getOwnPropertySymbols)for(var D=0,P=Object.getOwnPropertySymbols(N);D<P.length;D++)0>I.indexOf(P[D])&&Object.prototype.propertyIsEnumerable.call(N,P[D])&&(T[P[D]]=N[P[D]]);return T};let U=N=>{var{field:I,showLinkTextWithChildrenPresent:T,renderChildrenWhenEmpty:D,ref:M}=N,L=B(N,["field","showLinkTextWithChildrenPresent","renderChildrenWhenEmpty","ref"]);let $=L.children,F=I;delete L.editable;let U=()=>D&&$?P.createElement("a",Object.assign({},L,{key:"link",ref:M}),$):null,H=(0,R.JE)(F),z=H?void 0:F.href?I:F.value;if(H||!z)return U();
461let W="anchor"!==z.linktype&&z.anchor?`#${z.anchor}`:"",q=z.querystring?`?${z.querystring}`:"",G={href:`${z.href}${q}${W}`,className:z.class,title:z.title,target:z.target};"_blank"!==G.target||G.rel||(G.rel="noopener noreferrer");let K=T||!$?z.text||z.href:null;return P.createElement("a",Object.assign({},G,L,{key:"link",ref:M}),K,$)},H=(0,L.O)((0,$.N)(U,{defaultEmptyFieldEditingComponent:F.G}));H.displayName="Link";var z=T(34824),W=T(99742),q=function(N,I){var T={};for(var P in N)Object.prototype.hasOwnProperty.call(N,P)&&0>I.indexOf(P)&&(T[P]=N[P]);if(null!=N&&"function"==typeof Object.getOwnPropertySymbols)for(var D=0,P=Object.getOwnPropertySymbols(N);D<P.length;D++)0>I.indexOf(P[D])&&Object.prototype.propertyIsEnumerable.call(N,P[D])&&(T[P[D]]=N[P[D]]);return T};let G=["as","onNavigate","passHref","prefetch","replace","scroll","shallow"],K=/^\/.*\.\w+$/,V=(0,P.forwardRef)((N,I)=>{let T=(0,z.useRouter)(),{field:D,editable:R=!0,children:L,internalLinkMatcher:$=/^\//g,showLinkTextWithChildrenPresent:F,renderChildrenWhenEmpty:B}=N,U=q(N,["field","editable","children","internalLinkMatcher","showLinkTextWithChildrenPresent","renderChildrenWhenEmpty"]);if(!D||!D.value&&!D.href&&!D.metadata){if(B&&L){let N=Object.assign({},U);for(let I of G)delete N[I];return P.createElement("a",Object.assign({},N,{ref:I}),L)}return null}let V=D.href?D:D.value,{href:J,querystring:Q,anchor:Z}=V||{},X=R&&D.metadata;if(J&&!X){let D=F||!L?V.text||V.href:null,R=$.test(J),B=K.test(J);if(R&&!B)return P.createElement(M(),Object.assign({href:{pathname:J,query:Q,hash:Z},key:"link",title:V.title,target:V.target,className:V.class},U,{locale:!T&&void 0,ref:I},W.env.TEST?{"data-nextjs-link":!0,"data-nextjs-prefetch":N.prefetch,"data-nextjs-locale":!T&&void 0}:{}),D,L)}let ee=Y(N);return P.createElement(H,Object.assign({},ee,{ref:I},W.env.TEST?{"data-react-link":!0}:{}))});function Y(N){let I=["internalLinkMatcher"],T=Object.assign({},N);for(let N of[...G,...I])delete T[N];return T}V.displayName="NextLink"},22642:(N,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default="00000000-0000-0000-0000-000000000000"},22843:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),Object.defineProperty(I,"Image",{enumerable:!0,get:function(){return Q}});let P=T(64252),D=T(88365),M=T(37876),R=D._(T(14232)),L=P._(T(98477)),$=P._(T(48496)),F=T(45119),B=T(79484),U=T(11580),H=T(32925),z=P._(T(90969)),W=T(85022),q={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function G(N,I,T,P,D,M,R){let L=N?.src;N&&N["data-loaded-src"]!==L&&(N["data-loaded-src"]=L,("decode"in N?N.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(N.parentElement&&N.isConnected){if("empty"!==I&&D(!0),T?.current){let I=new Event("load");Object.defineProperty(I,"target",{writable:!1,value:N});let P=!1,D=!1;T.current({...I,nativeEvent:I,currentTarget:N,target:N,isDefaultPrevented:()=>P,isPropagationStopped:()=>D,persist:()=>{},preventDefault:()=>{P=!0,I.preventDefault()},stopPropagation:()=>{D=!0,I.stopPropagation()}})}P?.current&&P.current(N)}}))}function K(N){return R.use?{fetchPriority:N}:{fetchpriority:N}}let V=R.useLayoutEffect,Y=(0,R.forwardRef)(({src:N,srcSet:I,sizes:T,height:P,width:D,decoding:L,className:$,style:F,fetchPriority:B,placeholder:U,loading:H,unoptimized:z,fill:q,onLoadRef:Y,onLoadingCompleteRef:J,setBlurComplete:Q,setShowAltText:Z,sizesInput:X,onLoad:ee,onError:et,...er},en)=>{let ea=(0,R.useRef)(!1),ei=(0,R.useRef)(null);V(()=>{let{current:N}=ea,{current:I}=ei;N||null===I||(et&&(I.src=I.src),I.complete&&G(I,U,Y,J,Q,z,X),ea.current=!0)},[N,U,Y,J,et,z,X]);let eo=(0,W.useMergedRef)(en,ei);return(0,M.jsx)("img",{...er,...K(B),loading:H,width:D,height:P,decoding:L,"data-nimg":q?"fill":"1",className:$,style:F,sizes:T,srcSet:I,src:N,ref:eo,onLoad:N=>{G(N.currentTarget,U,Y,J,Q,z,X)},onError:N=>{Z(!0),"empty"!==U&&Q(!0),et&&et(N)}})});function J({isAppRouter:N,imgAttributes:I}){let T={as:"image",imageSrcSet:I.srcSet,imageSizes:I.sizes,crossOrigin:I.crossOrigin,referrerPolicy:I.referrerPolicy,...K(I.fetchPriority)};return N&&L.default.preload?(L.default.preload(I.src,T),null):(0,M.jsx)($.default,{children:(0,M.jsx)("link",{rel:"preload",href:I.srcSet?void 0:I.src,...T},"__nimg-"+I.src+I.srcSet+I.sizes)})}let Q=(0,R.forwardRef)((N,I)=>{let T=!(0,R.useContext)(H.RouterContext),P=(0,R.useContext)(U.ImageConfigContext),D=(0,R.useMemo)(()=>{let N=q||P||B.imageConfigDefault,I=[...N.deviceSizes,...N.imageSizes].sort((N,I)=>N-I),T=N.deviceSizes.sort((N,I)=>N-I),D=N.qualities?.sort((N,I)=>N-I);return{...N,allSizes:I,deviceSizes:T,qualities:D,localPatterns:N.localPatterns}
461},[P]),{onLoad:L,onLoadingComplete:$}=N,W=(0,R.useRef)(L);(0,R.useEffect)(()=>{W.current=L},[L]);let G=(0,R.useRef)($);(0,R.useEffect)(()=>{G.current=$},[$]);let[K,V]=(0,R.useState)(!1),[Q,Z]=(0,R.useState)(!1),{props:X,meta:ee}=(0,F.getImgProps)(N,{defaultLoader:z.default,imgConf:D,blurComplete:K,showAltText:Q});return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(Y,{...X,unoptimized:ee.unoptimized,placeholder:ee.placeholder,fill:ee.fill,onLoadRef:W,onLoadingCompleteRef:G,setBlurComplete:V,setShowAltText:Z,sizesInput:N.sizes,ref:I}),ee.preload?(0,M.jsx)(J,{isAppRouter:T,imgAttributes:X}):null]})});("function"==typeof I.default||"object"==typeof I.default&&null!==I.default)&&void 0===I.default.__esModule&&(Object.defineProperty(I.default,"__esModule",{value:!0}),Object.assign(I.default,I),N.exports=I.default)},23041:(N,I,T)=>{"use strict";T.d(I,{Xf:()=>F,dW:()=>B});var P=T(14232),D=T(74218),M=T(86056),R=T(9863);let{ExternalComponent:L}=D,$=N=>{var I;return P.createElement("div",null,"A rendering error occurred: ",null==(I=N.error)?void 0:I.message,".")};class F extends P.Component{constructor(N){super(N),this.state={}}static getDerivedStateFromError(N){return{error:N}}componentDidCatch(N){this.setState({error:N})}render(){var N,I,T;let D=this.props;if(this.state.error)return this.props.errorComponent?P.createElement(this.props.errorComponent,{error:this.state.error}):P.createElement($,{error:this.state.error});let{ComponentName:F}=D.params||{};if(!F){let N={errorOverride:"BYOC: The ComponentName for this rendering is missing"},I=this.props.missingComponentComponent;return I?P.createElement(I,Object.assign({},N)):P.createElement(R.K,Object.assign({},N))}let B={rendering:{componentName:F},errorOverride:"BYOC: This component was not registered."},U=this.props.missingComponentComponent?P.createElement(this.props.missingComponentComponent,Object.assign({},B)):P.createElement(R.K,Object.assign({},B)),H=this.props.errorComponent,z={};if(null==(N=D.params)?void 0:N.ComponentProps)try{z=null!=(I=JSON.parse(D.params.ComponentProps))?I:{}}catch(N){return console.error(`Parsing props for ${F} component from rendering params failed. Error: ${N}`),H?P.createElement(H,{error:N}):P.createElement($,{error:N})}let W=Object.assign(Object.assign({},D.fetchedData),{_:(0,M.q)(null!=(T=D.fields)?T:{})});return P.createElement(L,Object.assign({},D.rendering,{componentName:F,clientFallback:U,datasources:W},z))}}let B=N=>{var I,T,D;let M=null==(T=null==(I=N.params)?void 0:I.styles)?void 0:T.trimEnd(),R=null==(D=N.params)?void 0:D.RenderingIdentifier;return P.createElement("div",{className:M||void 0,id:R||void 0},P.createElement("div",{className:"component-content"},P.createElement(F,Object.assign({},N))))}},23463:(N,I,T)=>{"use strict";var P=T(29563);Object.defineProperty(I,"__esModule",{value:!0}),I.default=$;var D=P(T(41446)),M=P(T(48579)),R=T(41362),L=P(T(62353));async function $(N){var I,T,P,$,F,B;let{options:U,query:H,body:z,method:W,headers:q,sessionStore:G}=N,{provider:K,adapter:V,url:Y,callbackUrl:J,pages:Q,jwt:Z,events:X,callbacks:ee,session:{strategy:et,maxAge:er},logger:en}=U,ea=[],ei="jwt"===et;if("oauth"===K.type)try{let{profile:P,account:R,OAuthProfile:L,cookies:$}=await (0,D.default)({query:H,body:z,method:W,options:U,cookies:N.cookies});$.length&&ea.push(...$);try{if(en.debug("OAUTH_CALLBACK_RESPONSE",{profile:P,account:R,OAuthProfile:L}),!P||!R||!L)return{redirect:`${Y}/signin`,cookies:ea};let N=P;if(V){let{getUserByAccount:I}=V,T=await I({providerAccountId:R.providerAccountId,provider:K.id});T&&(N=T)}try{let I=await ee.signIn({user:N,account:R,profile:L});if(!I)return{redirect:`${Y}/error?error=AccessDenied`,cookies:ea};if("string"==typeof I)return{redirect:I,cookies:ea}}catch(N){return{redirect:`${Y}/error?error=${encodeURIComponent(N.message)}`,cookies:ea}}let{user:D,session:$,isNewUser:F}=await (0,M.default)({sessionToken:G.value,profile:P,account:R,options:U});if(ei){let N={name:D.name,email:D.email,picture:D.image,sub:null==(T=D.id)?void 0:T.toString()},I=await ee.jwt({token:N,user:D,account:R,profile:L,isNewUser:F,trigger:F?"signUp":"signIn"}),P=await Z.encode({...Z,token:I}),M=new Date;M.setTime(M.getTime()+1e3*er);let $=G.chunk(P,{expires:M});ea.push(...$)}else ea.push({name:U.cookies.sessionToken.name,value:$.sessionToken,options:{...U.cookies.sessionToken.options,expires:$.expires}});if(await (null==(I=X.signIn)?void 0:I.call(X,{user:D,account:R,profile:P,isNewUser:F})),F&&Q.newUser)return{redirect:`${Q.newUser}${Q.newUser.includes("?")?"&":"?"}callbackUrl=${encodeURIComponent(J)}`,cookies:ea};return{redirect:J,cookies:ea}}catch(N){if("AccountNotLinkedError"===N.name)return{redirect:`${Y}
461/error?error=OAuthAccountNotLinked`,cookies:ea};if("CreateUserError"===N.name)return{redirect:`${Y}/error?error=OAuthCreateAccount`,cookies:ea};return en.error("OAUTH_CALLBACK_HANDLER_ERROR",N),{redirect:`${Y}/error?error=Callback`,cookies:ea}}}catch(N){if("OAuthCallbackError"===N.name)return en.error("OAUTH_CALLBACK_ERROR",{error:N,providerId:K.id}),{redirect:`${Y}/error?error=OAuthCallback`,cookies:ea};return en.error("OAUTH_CALLBACK_ERROR",N),{redirect:`${Y}/error?error=Callback`,cookies:ea}}if("email"===K.type)try{let N=null==H?void 0:H.token,I=null==H?void 0:H.email;if(!N)return{redirect:`${Y}/error?error=configuration`,cookies:ea};let T=await V.useVerificationToken({identifier:I,token:(0,R.hashToken)(N,U)});if(!T||T.expires.valueOf()<Date.now()||I&&T.identifier!==I)return{redirect:`${Y}/error?error=Verification`,cookies:ea};let D=await (0,L.default)({email:T.identifier,adapter:V}),F={providerAccountId:D.email,type:"email",provider:K.id};try{let N=await ee.signIn({user:D,account:F});if(!N)return{redirect:`${Y}/error?error=AccessDenied`,cookies:ea};if("string"==typeof N)return{redirect:N,cookies:ea}}catch(N){return{redirect:`${Y}/error?error=${encodeURIComponent(N.message)}`,cookies:ea}}let{user:B,session:z,isNewUser:W}=await (0,M.default)({sessionToken:G.value,profile:D,account:F,options:U});if(ei){let N={name:B.name,email:B.email,picture:B.image,sub:null==($=B.id)?void 0:$.toString()},I=await ee.jwt({token:N,user:B,account:F,isNewUser:W,trigger:W?"signUp":"signIn"}),T=await Z.encode({...Z,token:I}),P=new Date;P.setTime(P.getTime()+1e3*er);let D=G.chunk(T,{expires:P});ea.push(...D)}else ea.push({name:U.cookies.sessionToken.name,value:z.sessionToken,options:{...U.cookies.sessionToken.options,expires:z.expires}});if(await (null==(P=X.signIn)?void 0:P.call(X,{user:B,account:F,isNewUser:W})),W&&Q.newUser)return{redirect:`${Q.newUser}${Q.newUser.includes("?")?"&":"?"}callbackUrl=${encodeURIComponent(J)}`,cookies:ea};return{redirect:J,cookies:ea}}catch(N){if("CreateUserError"===N.name)return{redirect:`${Y}/error?error=EmailCreateAccount`,cookies:ea};return en.error("CALLBACK_EMAIL_ERROR",N),{redirect:`${Y}/error?error=Callback`,cookies:ea}}if("credentials"===K.type&&"POST"===W){let N,I=z;try{if(!(N=await K.authorize(I,{query:H,body:z,headers:q,method:W})))return{status:401,redirect:`${Y}/error?${new URLSearchParams({error:"CredentialsSignin",provider:K.id})}`,cookies:ea}}catch(N){return{status:401,redirect:`${Y}/error?error=${encodeURIComponent(N.message)}`,cookies:ea}}let T={providerAccountId:N.id,type:"credentials",provider:K.id};try{let P=await ee.signIn({user:N,account:T,credentials:I});if(!P)return{status:403,redirect:`${Y}/error?error=AccessDenied`,cookies:ea};if("string"==typeof P)return{redirect:P,cookies:ea}}catch(N){return{redirect:`${Y}/error?error=${encodeURIComponent(N.message)}`,cookies:ea}}let P={name:N.name,email:N.email,picture:N.image,sub:null==(F=N.id)?void 0:F.toString()},D=await ee.jwt({token:P,user:N,account:T,isNewUser:!1,trigger:"signIn"}),M=await Z.encode({...Z,token:D}),R=new Date;R.setTime(R.getTime()+1e3*er);let L=G.chunk(M,{expires:R});return ea.push(...L),await (null==(B=X.signIn)?void 0:B.call(X,{user:N,account:T})),{redirect:J,cookies:ea}}return{status:500,body:`Error: Callback for provider type ${K.type} not supported`,cookies:ea}}},23520:(N,I,T)=>{"use strict";var P=T(68128),D={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},M={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},R={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},L={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},$={};function F(N){return P.isMemo(N)?L:$[N.$$typeof]||D}$[P.ForwardRef]=R,$[P.Memo]=L;var B=Object.defineProperty,U=Object.getOwnPropertyNames,H=Object.getOwnPropertySymbols,z=Object.getOwnPropertyDescriptor,W=Object.getPrototypeOf,q=Object.prototype;
461function G(N,I,T){if("string"!=typeof I){if(q){var P=W(I);P&&P!==q&&G(N,P,T)}var D=U(I);H&&(D=D.concat(H(I)));for(var R=F(N),L=F(I),$=0;$<D.length;++$){var K=D[$];if(!M[K]&&!(T&&T[K])&&!(L&&L[K])&&!(R&&R[K])){var V=z(I,K);try{B(N,K,V)}catch(N){}}}}return N}N.exports=G},23649:(N,I,T)=>{"use strict";T.r(I),T.d(I,{Button:()=>U});var P=T(37876),D=T(34644),M=T(85609),R=T(22544),L=T(14232),$=T(63366),F=T(36379),B=T(33076);let U=(0,L.forwardRef)(({iconSide:N="left",...I},T)=>{let L=I.id,U=I?.linkField,H=I?.textField,z=I?.plainText,{page:W}=(0,M.M5)(),{obfuscatedEmail:q,handleDeobfuscation:G}=(0,F.M_)(U),K=W.mode.isEditing,V=(0,B.l)(U)&&!H||K&&U,Y=!!(H?.value&&!U)||K&&H,J=!!(z&&!U&&!H)||K&&z,Q=I.iconClassNames?.includes("icon-only")??I.className?.includes("icon-only"),Z=T=>N===T&&I?.iconName&&(0,P.jsx)($.In,{name:I.iconName,color:I?.iconColor,size:I?.iconSize,className:I?.iconClassNames});if(V){let N=I?.iconClassNames?.includes("icon-only")??I?.className?.includes("icon-only"),M=U?.value?.text??(K?"Button Placeholder Text":void 0);return(0,P.jsx)(R.N,{ref:T,id:L,field:I?.isMailLink?q:U,className:(0,F.cn)("flex items-center gap-2","full"===I.width?"grow text-center":""),tabIndex:0,onClick:K?void 0:I?.isMailLink?G:I?.onClick,children:(0,P.jsxs)($.az,{className:(0,F.cn)((0,D.ButtonVariants)({width:I.width,background:I.background,variant:I.variant}),K&&"[&>span]:bg-transparent",I?.className),children:[Z("left"),!N&&(0,P.jsx)($.o5,{className:(0,F.cn)("w-full font-medium",I.textClasses),type:"medium",textField:{value:M},plainText:M}),Z("right")]})})}return Y||J||Q?(0,P.jsxs)("button",{ref:T,id:L,className:(0,F.cn)((0,D.ButtonVariants)({width:I.width,background:I.background,variant:I.variant}),"flex items-center justify-center",I?.className),tabIndex:0,onClick:K?void 0:I?.onClick,type:I?.formButton?"submit":"button",disabled:I?.disabled,children:[Z("left"),!I?.className?.includes("icon-only")&&Y&&(0,P.jsx)($.o5,{className:(0,F.cn)("font-medium!",I.textClasses),textField:H}),!I?.className?.includes("icon-only")&&J&&(0,P.jsx)($.o5,{className:(0,F.cn)("w-full font-medium!",I.textClasses),type:"medium",plainText:z}),I?.loading&&(0,P.jsx)("span",{className:"loading loading-md loading-spinner"}),Z("right")]}):null});U.displayName="Button"},24081:(N,I,T)=>{"use strict";T.r(I),T.d(I,{useVacancyApplyButton:()=>U});var P=T(84471),D=T(55333),M=T(2650),R=T(14232),L=T(67881),$=T(65212),F=T(98566),B=T(66419);let U=({fields:N,vacancyData:I,locale:T})=>{let U=(0,M.s9)().table(T),H=(0,F.BB)(),z=(0,R.useRef)(null),W=(0,D.Cx)(),q=!W&&(0,B.Ho)(I?.endDate),G=N?.data?.datasource?.applyJobPage?.jsonValue?.value?.href??"",K=window.location.host,V=H.getParam("seek-prefill-id",{addToQuery:!0})??"",Y=H.getParam("seek-token",{addToQuery:!0})??"",{applicationUrl:J,vacancyQueryString:Q}=(0,P.resolveApplicationUrl)(I,K,G,T,V,Y),Z=(0,R.useMemo)(()=>(0,B.wL)(I?.hoursPerWeek,U),[I?.hoursPerWeek,U]),X=(0,R.useMemo)(()=>()=>{L.q.vacancyDetailPage.vacancyDetailPageApplyButton({...I,vacancyWorkHours:Z,applicationUrl:J??""},T).catch(()=>{$.A.piwik("Failed to push the vacancyDetailPageApplyButton event to the dataLayer")})},[I,Z,J,T]);return(0,R.useEffect)(()=>{L.q.common.vacancyDetailOnPageEnter("open vacancy detail page",I,T).catch(()=>{$.A.piwik("Failed to push the vacancyDetailOnPageEnter event to the dataLayer")})},[]),{ref:z,dictionary:U,isEditing:W,isExpired:q,applicationUrl:J,vacancyQueryString:Q,applyNowOnClickHandler:X}}},24210:(N,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),function(N,I){for(var T in I)Object.defineProperty(N,T,{enumerable:!0,get:I[T]})}(I,{ActionDidNotRevalidate:function(){return T},ActionDidRevalidateDynamicOnly:function(){return D},ActionDidRevalidateStaticAndDynamic:function(){return P}});let T=0,P=1,D=2},24492:(N,I,T)=>{"use strict";let P;T.d(I,{r:()=>B,g:()=>U});var D=T(52770),M=T(47804);let R=D.Ay.init;function L(N,I){if(N.dependencies){for(let T of N.dependencies)if(!I.has(T))throw Error(M.UU.IE_001(N.name,T));R(`All required dependencies for "${N.name}" are present`)}}async function $(N){var I;for(let T of(R(`Initializing ${N.size}
461 plugins`),N.values()))L(T,N),await (null==(I=T.init)?void 0:I.call(T)),R(`Successfully initialized "${T.name}"`);R(`Successfully initialized ${N.size} plugins`)}function F(N){var I;let{contextId:T,siteName:P,edgeUrl:D}=N;if(!T||0===T.trim().length)throw Error(M.UU.MV_001);if(!P||0===P.trim().length)throw Error(M.UU.MV_002);if(void 0!==D)try{new URL(D)}catch(N){throw Error(M.UU.IV_001)}return R("Configuration is valid"),Object.assign(Object.assign({},N),{edgeUrl:null!=(I=null==D?void 0:D.trim())?I:M.Ty})}function B(){if(!P)throw Error(M.UU.IE_002);return P}async function U(N){D.Ay.init("Initializing Content SDK with params:",N);let{config:I,plugins:T}=N,M=F(I);for(let N of(0===T.length&&D.Ay.init("No plugins provided to the plugins array"),P={config:M,plugins:new Map,readyPromise:null},T))P.plugins.set(N.name,N);D.Ay.init(`Registered ${P.plugins.size} plugins`),P.readyPromise=$(P.plugins),await P.readyPromise,D.Ay.init("Content SDK initialization complete")}},24528:(N,I,T)=>{"use strict";T.d(I,{vD:()=>X}),T(98877);var P=T(8871),D=T(65899),M=T(78028),R=T(65212),L=T(82752),$=T(99742);class F{#u;#d={token:"",expiresAt:0};constructor(){this.#u=M.A.create({baseURL:$.env.WIZARD_API_HOST,timeout:3e4}),this.#u.interceptors.request.use(async N=>((!this.#d.token||Date.now()>=this.#d.expiresAt)&&await this.#f(),this.#d.token&&(N.headers.Authorization=`Bearer ${this.#d.token}`),N)),this.#u.interceptors.response.use(async N=>N,N=>(0,L.r)(N))}async #f(){let N=$.env.AZURE_AD_TENANT_ID,I=$.env.WIZARD_CLIENT_ID,T=$.env.WIZARD_CLIENT_SECRET,P=$.env.WIZARD_SCOPE;try{if(!N||!I||!T||!P)throw Error("Missing Wizard credentials configuration in environment variables.");let{access_token:D,expires_in:L}=(await M.A.post(`https://login.microsoftonline.com/${N}/oauth2/v2.0/token`,new URLSearchParams({client_id:I,client_secret:T,grant_type:"client_credentials",scope:P}),{headers:{"Content-Type":"application/x-www-form-urlencoded"}})).data;this.#d.token=D,this.#d.expiresAt=Date.now()+1e3*L-5e3,R.A.api("Fetched new Wizard token successfully.")}catch{throw Error("Error refreshing Wizard access token.")}}async getUserDataWizard(N){if(!N?.email)return null;try{let I=await this.#u.get("/MyBrunel/GetAtsIds",{params:new URLSearchParams({emailaddress:N.email})});if(!I.data.status.Success)throw Error(I.data.status.Message);return I.data?.responsedata??null}catch(N){return R.A.api("Failed to fetch user from Wizard API:",N instanceof Error?N.message:N),null}}}let B=new F;var U=T(60409),H=T(98176),z=T(92234),W=T(51725),q=T(83828),G=T(42339),K=T(99742);let V=new Map,Y=6e4,J=async N=>{let I=V.get(N),T=Date.now();if(I&&T-I.timestamp<Y)return I.data;let P=await D.l.getUserData({email:N});return V.set(N,{data:P,timestamp:T}),P},Q=async N=>{try{await D.l.addUser(N)}catch(N){R.A.authMyBrunel("Error adding user to Notifications API database:",N)}},Z=async N=>{let[I,T]=await Promise.all([B.getUserDataWizard({email:N}),P.r.getUserDataCrm({email:N})]);return{wizardUserData:I,mercuryUserData:T}},X=(N,I)=>({secret:K.env.NEXTAUTH_SECRET,debug:!1,session:{strategy:"jwt",updateAge:1200},providers:[W.n.CredentialsProvider(N,I),z.J.AzureAD,z.J.AzureB2C],callbacks:{async signIn({user:I,profile:T,account:P}){if(P?.provider==="credentials"||N?.headers.host?.includes("localhost"))return!0;let D=await J(I.email??T?.email??T?.emails?.[0]??"");if(D?.userEnvironment==="th"){let I=N?.headers.host?.includes("acc");if(!N?.headers.host?.includes("my.taylorhopkinson.com")&&!I)return"https://my.taylorhopkinson.com/login?autoSignIn=true";if(!N?.headers.host?.includes("acc.th.cloudsites.brunel.net")&&I)return"https://acc.th.cloudsites.brunel.net/en-gb/mybrunel/login?autoSignIn=true"}return!0},async redirect({url:N,baseUrl:I}){if(N.startsWith("/"))return`${I}${N}`;try{let T=new URL(N).origin,P=["https://my.taylorhopkinson.com","https://acc.th.cloudsites.brunel.net"];if(T===I||P.includes(T))return N}catch{}return I},async jwt({token:N,account:I,profile:T,user:P}){let D=N?.provider??P?.provider??I?.provider,M="credentials"===D,L=z.J.isAzureProvider(D);if(M)P&&(N.id=P.id,N.accessToken=P.accessToken,N.refreshToken=P.refreshToken,N.expireToken=W.n.sessionExpiration,N.provider=D);else if(I&&L&&I){let P=await J(N.email??"");if(D===z.J.provider.AZURE_B2C&&(N.name=T?.name??"",N.email=T?.emails?.[0]??"",N.employeeType="specialist",N.roles=["specialist"],N.country=T?.country?.length===2?(0,q.zZ)(T.country):T?.country??"",N.countryCode=(0,q.Rt)(N.country)??"GB",N.userEnvironment=P?.userEnvironment??H.qy),D===z.J.provider.AZURE_AD){let I=P?.azureADData,D=I?.country??T?.ctry;
461N.name=T?.name??"",N.email=T?.email??"",N.employeeType=I?.employeeType??"specialist",N.roles=I?.roles?.length?I.roles:["specialist"],N.country=D?.length===2?(0,q.zZ)(D):D??"",N.userEnvironment=P?.userEnvironment??U.Xn}if(N.refreshToken=I.refresh_token??"",N.accessToken=I.access_token??I.id_token??"",N.expireToken=z.J.sessionExpiration,N.provider=D,N.firstLogin=!P?.user?.firstLoginDate,N.id=P?.user?.candidateId??"",!P?.user&&N?.accessToken){let{wizardUserData:I,mercuryUserData:T}=await Z(N.email);N.id=I?.atsid??T?.mercuryId??"",await Q({email:T?.workEmailAddress??N.email??"",country:T?.country?.name??"",businessLine:T?.payrollParty?.brunelRegion?.name??"",startAtBrunelDate:T?.startAtBrunelDate??new Date().toISOString(),isActive:T?.isActive??!0,candidateId:I?.atsid??T?.mercuryId??"00000000-0000-0000-0000-000000000000"})}}if(Date.now()<N.expireToken)R.A.tools.sessionExpiration(D,Number(N.expireToken)-Date.now());else if(M){R.A.authSession(`[${D}] Token EXPIRED - Refreshing token...`);try{return await W.n.refreshAccessToken(N)}catch(I){return R.A.authSession(`[${D}] Failed to refresh access token: ${I instanceof Error?I.message:I}`),{...N,error:H.Hk.REFRESH_TOKEN_ERROR}}}else if(L){R.A.authSession(`[${D}] Token EXPIRED - Refreshing token...`);try{return await z.J.refreshAccessToken(N,D)}catch(I){return R.A.authSession(`[${D}] Failed to refresh access token: ${I instanceof Error?I.message:I}`),{...N,error:H.Hk.REFRESH_TOKEN_ERROR}}}return N},session:async({session:N,token:I})=>("credentials"===I.provider&&I.accessToken?N={...N,user:{id:I.id,name:I.name,email:I.email,provider:I.provider,accessToken:I.accessToken,isWebview:!!I.isWebview},expired:I.error===H.Hk.REFRESH_TOKEN_ERROR}:z.J.isAzureProvider(I.provider)&&I.accessToken&&(N={...N,user:{id:I.id,name:(0,G.dS)(I.accessToken),email:I.email,provider:I.provider,roles:I.roles,employeeType:I.employeeType,country:I.country,countryCode:I.countryCode,accessToken:I.accessToken,firstLogin:I.firstLogin??!1,userEnvironment:I.userEnvironment,isWebview:!!I.isWebview},expired:I.error===H.Hk.REFRESH_TOKEN_ERROR}),N)},cookies:{sessionToken:{name:"__Secure-next-auth.session-token",options:{httpOnly:!0,sameSite:"lax",path:"/",secure:!0}},pkceCodeVerifier:{name:"next-auth.pkce.code_verifier",options:{httpOnly:!0,sameSite:"lax",path:"/",secure:!0,maxAge:900}}}})},25028:(N,I,T)=>{"use strict";T.d(I,{S:()=>M});var P=T(37149);let D=()=>P.S$,M=()=>D()},25228:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.URL=I.DNS=void 0;let P=T(58449),D=T(51935);var M=T(51935);function R(N,I,T,M){return(0,D.default)(48,P.default,N,I,T,M)}Object.defineProperty(I,"DNS",{enumerable:!0,get:function(){return M.DNS}}),Object.defineProperty(I,"URL",{enumerable:!0,get:function(){return M.URL}}),R.DNS=D.DNS,R.URL=D.URL,I.default=R},25258:(N,I,T)=>{"use strict";function P(N){return N instanceof Date||"object"==typeof N&&"[object Date]"===Object.prototype.toString.call(N)}T.d(I,{$:()=>P})},25443:(N,I,T)=>{"use strict";var P=T(29563);Object.defineProperty(I,"__esModule",{value:!0}),I.BroadcastChannel=z,I.apiBaseUrl=U,I.fetchData=F,I.now=H;var D=P(T(43081)),M=P(T(84620)),R=P(T(16108));function L(N,I){var T=Object.keys(N);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(N);I&&(P=P.filter(function(I){return Object.getOwnPropertyDescriptor(N,I).enumerable})),T.push.apply(T,P)}return T}function $(N){for(var I=1;I<arguments.length;I++){var T=null!=arguments[I]?arguments[I]:{};I%2?L(Object(T),!0).forEach(function(I){(0,M.default)(N,I,T[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(T)):L(Object(T)).forEach(function(I){Object.defineProperty(N,I,Object.getOwnPropertyDescriptor(T,I))})}return N}function F(N,I,T){return B.apply(this,arguments)}function B(){return(B=(0,R.default)(D.default.mark(function N(I,T,P){var M,R,L,F,B,H,z,W,q,G=arguments;return D.default.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return R=(M=G.length>3&&void 0!==G[3]?G[3]:{}).ctx,F=void 0===(L=M.req)?null==R?void 0:R.req:L,B="".concat(U(T),"/").concat(I),N.prev=2,z={headers:$({"Content-Type":"application/json"}
461,null!=F&&null!=(H=F.headers)&&H.cookie?{cookie:F.headers.cookie}:{})},null!=F&&F.body&&(z.body=JSON.stringify(F.body),z.method="POST"),N.next=7,fetch(B,z);case 7:return W=N.sent,N.next=10,W.json();case 10:if(q=N.sent,W.ok){N.next=13;break}throw q;case 13:return N.abrupt("return",Object.keys(q).length>0?q:null);case 16:return N.prev=16,N.t0=N.catch(2),P.error("CLIENT_FETCH_ERROR",{error:N.t0,url:B}),N.abrupt("return",null);case 20:case"end":return N.stop()}},N,null,[[2,16]])}))).apply(this,arguments)}function U(N){return"u"<typeof window?"".concat(N.baseUrlServer).concat(N.basePathServer):N.basePath}function H(){return Math.floor(Date.now()/1e3)}function z(){var N=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"nextauth.message";return{receive:function(I){var T=function(T){if(T.key===N){var P,D=JSON.parse(null!=(P=T.newValue)?P:"{}");(null==D?void 0:D.event)==="session"&&null!=D&&D.data&&I(D)}};return window.addEventListener("storage",T),function(){return window.removeEventListener("storage",T)}},post:function(I){if("u">typeof window)try{localStorage.setItem(N,JSON.stringify($($({},I),{},{timestamp:H()})))}catch(N){}}}}},25602:(N,I,T)=>{"use strict";T.r(I),T.d(I,{botPageView:()=>ex,event:()=>X,eventsPlugin:()=>eg,form:()=>eb,identity:()=>ei,pageView:()=>el});var P=T(14990);let D=JSON.parse('{"UU":"@sitecore-content-sdk/events","rE":"2.1.2"}'),M=D.rE,R=D.UU,L=`${R} ${M}`;var $=T(68890),F=T(52770);let B="events",U={events:(0,F.wV)(`${F.DS}:${B}`)};async function H(N,I){let T=`${I.edgeUrl}/v1/events/${P.mG}/events?siteId=${I.siteName}`,D={body:JSON.stringify(N),headers:{"Content-Type":"application/json","X-Client-Software-ID":L,"X-Library-Version":M,"x-sitecore-contextid":I.contextId},method:"POST"},R=new $.j({debugger:U.events});return await R.fetch(T,D).then(async N=>N.data).catch(()=>null)}function z(N){var I;let{currentKey:T,object:P}=N,D=null!=(I=N.newObject)?I:{};for(let N in P){let I=P[N];void 0!==I&&("object"!=typeof I||Array.isArray(I)?D[T?`${T}_${N}`:N]=I:z({currentKey:`${T?`${T}_${N}`:N}`,newObject:D,object:I}))}return D}class W{constructor(N,I){var T,D;this.baseEventData=N,this.clientId=I,this.language=null!=(T=this.baseEventData.language)?T:(0,P.BH)(),this.page=null!=(D=this.baseEventData.page)?D:(0,P.$p)()}mapBaseEventPayload(){return{browser_id:this.clientId,channel:this.baseEventData.channel,client_key:"",currency:this.baseEventData.currency,language:this.language,page:this.page,pos:"",requested_at:new Date().toISOString()}}}let q=50,G="utm_";var K=T(47804),V=function(N,I){var T={};for(var P in N)Object.prototype.hasOwnProperty.call(N,P)&&0>I.indexOf(P)&&(T[P]=N[P]);if(null!=N&&"function"==typeof Object.getOwnPropertySymbols)for(var D=0,P=Object.getOwnPropertySymbols(N);D<P.length;D++)0>I.indexOf(P[D])&&Object.prototype.propertyIsEnumerable.call(N,P[D])&&(T[P[D]]=N[P[D]]);return T};let{UU:Y}=K;class J extends W{constructor(N){const I=N.eventData,{channel:T,currency:P,language:D,page:M,type:R,extensionData:L,searchData:$}=I,F=V(I,["channel","currency","language","page","type","extensionData","searchData"]);super({channel:T,currency:P,language:D,page:M},N.id),this.extensionData={},this.sendEvent=N.sendEvent,this.config=N.config,this.customEventPayload=Object.assign({type:R},F),L&&(this.extensionData=z({object:L}));const B=Object.entries(this.extensionData).length;if(B>q)throw Error(Y.IV_006(q));B>0&&(this.customEventPayload.ext=this.extensionData),$&&(this.customEventPayload.sc_search={data:$,metadata:{ut_api_version:"1.0"}})}async send(){let N=this.mapBaseEventPayload(),I=Object.assign({},this.customEventPayload,N);return await this.sendEvent(I,this.config)}}var Q=T(24492);let Z="EventsPlugin";async function X(N){let I=(0,Q.r)();await I.readyPromise,ey();let{options:T,adapter:D}=(0,P.UO)();return new J({eventData:N,id:D.getClientId()||"",sendEvent:H,config:Object.assign(Object.assign({},I.config),T)}).send()}function ee(N){try{return new Date(N).toISOString().substring(0,10)===N}catch(N){return!1}}function et(N){try{let I=N+"Z";return new Date(I).toISOString().substring(0,16)===N}catch(N){return!1}}function er(N){let I=/^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/;return!!N&&!(N.length>320)&&I.test(N)}let{UU:en}=K;class ea extends W{constructor(N){const{channel:I,currency:T,language:P,page:D,extensionData:M}=N.identityData;if(super({channel:I,currency:T,language:P,page:D},N.id),this.extensionData={},this.numberOfExtensionDataProperties=0,this.validateAttributes(N.identityData),this.identityData=N.identityData,this.sendEvent=N.sendEvent,this.config=N.config,M&&(this.extensionData=z({object:M})),this.numberOfExtensionDataProperties=Object.entries(this.extensionData).length,this.numberOfExtensionDataProperties>q)throw Error(en.IV_006(q))}async send(){let N=this.mapBaseEventPayload(),I=Object.assign({},this.mapAttributes(),N);return await this.sendEvent(I,this.config)}validateAttributes(N){if(0===N.identifiers.length)throw Error(en.MV_003);if(void 0!==N.dob&&!ee(N.dob))throw Error(en.IV_003);
461if(N.identifiers.forEach(N=>{if(N.expiryDate&&!et(N.expiryDate))throw Error(en.IV_005)}),N.email&&!er(N.email))throw Error(en.IV_004)}mapAttributes(){let N={city:this.identityData.city,country:this.identityData.country,dob:this.identityData.dob,email:this.identityData.email,firstname:this.identityData.firstName,gender:this.identityData.gender,identifiers:this.identityData.identifiers.map(N=>({expiry_date:N.expiryDate,id:N.id,provider:N.provider})),lastname:this.identityData.lastName,mobile:this.identityData.mobile,phone:this.identityData.phone,postal_code:this.identityData.postalCode,state:this.identityData.state,street:this.identityData.street,title:this.identityData.title,type:"IDENTITY"};return this.numberOfExtensionDataProperties>0&&(N.ext=this.extensionData),N}}async function ei(N){let I=(0,Q.r)();await I.readyPromise,ey();let{options:T,adapter:D}=(0,P.UO)();return new ea({id:D.getClientId()||"",identityData:N,sendEvent:H,config:Object.assign(Object.assign({},I.config),T)}).send()}let{UU:eo}=K;class es extends W{constructor(N){var I;const{channel:T,currency:P,language:D,page:M,extensionData:R}=Object.assign({},N.pageViewData);if(super({channel:T,currency:P,language:D,page:M},N.id),this.extensionData={},this.pageViewData=N.pageViewData,this.sendEvent=N.sendEvent,this.config=N.config,this.urlSearchParams=new URLSearchParams(decodeURI(N.searchParams)),R&&(this.extensionData=z({object:R})),Object.entries(this.extensionData).length>q)throw Error(eo.IV_006(q));this.includeUTMParameters=null==(I=N.pageViewData&&N.pageViewData.includeUTMParameters)||I}async send(){let N=this.mapBaseEventPayload(),I=this.mapAttributes();return es.isFirstPageView=!1,await this.sendEvent(Object.assign(Object.assign({},N),I),this.config)}getPageVariantId(N,I){if(N)return N;let T=this.urlSearchParams.get("variantid");return T||I||null}getReferrer(){var N;if(null==(N=this.pageViewData)?void 0:N.referrer)return this.pageViewData.referrer;if("u"<typeof window||!es.isFirstPageView||!document.referrer)return null;let{hostname:I,href:T}=new URL(document.referrer);return window.location.hostname!==I?T:null}mapAttributes(){var N;let I={type:"VIEW"},T=this.pageViewData&&this.getPageVariantId(this.pageViewData.pageVariantId,this.extensionData.pageVariantId);if(null!==T&&(I.ext=Object.assign(Object.assign({},I.ext),{pageVariantId:T})),Object.keys(this.extensionData).length>0&&(delete this.extensionData.pageVariantId,I.ext=Object.assign(Object.assign({},I.ext),this.extensionData)),this.includeUTMParameters){let N=this.getUTMParameters();I=Object.assign(Object.assign({},I),N)}let P=this.getReferrer();return null!==P&&(I=Object.assign(Object.assign({},I),{referrer:P})),(null==(N=this.pageViewData)?void 0:N.searchData)&&(I.sc_search={data:this.pageViewData.searchData,metadata:{ut_api_version:"1.0"}}),I}getUTMParameters(){let N={};return this.urlSearchParams.forEach((I,T)=>{let P=T.toLowerCase();0===P.indexOf(G)&&(N[P]=I)}),N}}async function el(N){var I;let T=(0,Q.r)();await T.readyPromise,ey();let{options:D,adapter:M}=(0,P.UO)();return(null==(I=M.isBot)?void 0:I.call(M))?(U.events("pageView skipped (visitor is a bot)"),null):new es({id:M.getClientId()||"",pageViewData:N,searchParams:M.location.getSearchParams(),sendEvent:H,config:Object.assign(Object.assign({},T.config),D)}).send()}es.isFirstPageView=!0;class ec{constructor(){this.key="EventQueue"}enqueueEvent(N){var I,T;let D=this.getSessionStorage();N.eventData.page=null!=(I=N.eventData.page)?I:(0,P.$p)(),N.eventData.language=null!=(T=N.eventData.language)?T:(0,P.BH)(),new J(Object.assign({sendEvent:H},N));let M=this.getEventQueue();M.push(N),D.setItem(this.key,JSON.stringify(M))}async sendAllEvents(){for(let N of this.getEventQueue())await new J({eventData:N.eventData,id:N.id,sendEvent:H,config:N.config}).send();this.clearQueue()}clearQueue(){this.getSessionStorage().removeItem(this.key)}getEventQueue(){var N;let I=null!=(N=this.getSessionStorage().getItem(this.key))?N:'""';try{let N=JSON.parse(I);return Array.isArray(N)?N:[]}catch(N){return[]}}getSessionStorage(){return sessionStorage}}let eu=new ec;async function ed(N){let I=(0,Q.r)();await I.readyPromise,ey();let{options:T,adapter:D}=(0,P.UO)(),M={eventData:N,id:D.getClientId()||"",config:Object.assign(Object.assign({},I.config),T)};eu.enqueueEvent(M)}async function ef(){await (0,Q.r)().readyPromise,ey(),eu.clearQueue()}async function eh(){await (0,Q.r)().readyPromise,ey(),eu.sendAllEvents()}let{UU:ep}
461=K;async function em(){"u">typeof window&&(window.scContentSDK=Object.assign(Object.assign({},window.scContentSDK),{events:{addToEventQueue:ed,clearEventQueue:ef,event:X,form:eb,identity:ei,pageView:el,processEventQueue:eh,version:M}}))}function eg(){return{name:Z,init:em,dependencies:[P.ZP]}}function ey(){let N=(0,Q.r)().plugins.get(Z);if(!N)throw Error(ep.IE_004(Z));return N}async function eb(N,I,T){let D=(0,Q.r)();await D.readyPromise,ey();let{options:M,adapter:R}=(0,P.UO)(),L=R.getClientId()||"",$=new J({eventData:{extensionData:{componentInstanceId:T,formId:N,interactionType:I.toUpperCase()},type:"FORM"},id:L,sendEvent:H,config:Object.assign(Object.assign({},D.config),M)});return $.page=void 0,$.send()}let ev="bot";async function ew(N){let I=new TextEncoder().encode(N),T=Array.from(new Uint8Array(await globalThis.crypto.subtle.digest("SHA-256",I)).slice(0,16),N=>N.toString(16).padStart(2,"0")).join("");return`${T.slice(0,8)}-${T.slice(8,12)}-${T.slice(12,16)}-${T.slice(16,20)}-${T.slice(20)}`}async function ex(N){let I=(0,Q.r)();await I.readyPromise,ey();let{options:T,adapter:D}=(0,P.UO)();return new es({id:await ew(N.userAgent),pageViewData:{channel:ev,page:N.page,language:N.language,extensionData:{sourceUserAgent:N.userAgent}},searchParams:D.location.getSearchParams(),sendEvent:H,config:Object.assign(Object.assign({},I.config),T)}).send()}},25637:(N,I,T)=>{"use strict";T.d(I,{Ss:()=>$,ef:()=>R,xM:()=>L});let P=/^D+$/,D=/^Y+$/,M=["D","DD","YY","YYYY"];function R(N){return P.test(N)}function L(N){return D.test(N)}function $(N,I,T){let P=F(N,I,T);if(console.warn(P),M.includes(N))throw RangeError(P)}function F(N,I,T){let P="Y"===N[0]?"years":"days of the month";return`Use \`${N.toLowerCase()}\` instead of \`${N}\` (in \`${I}\`) for formatting ${P} to the input \`${T}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}},25680:(N,I,T)=>{"use strict";T.d(I,{C:()=>R,d:()=>M});var P,D,M=((P={}).Necessary="optanon-category-1",P.Analytics="optanon-category-2",P.SocialMedia="optanon-category-3",P.Marketing="optanon-category-4",P.Functional="optanon-category-5",P),R=((D={}).Necessary="1",D.Analytics="2",D.SocialMedia="3",D.Marketing="4",D.Functional="5",D)},26197:(N,I,T)=>{"use strict";T.d(I,{H:()=>P});let P=(N,I,T,P,D)=>{let M=N?N?.[Number(I)>1?"headerNoParams":"headerNoParamsSingular"]:"[list results texts undefined]";return 1===Number(I)?T||P?T&&!P?M=N?.headerOnlyKeywordSingular:!T&&P&&"0"===D?M=N?.headerOnlyLocationSingular:!T&&P&&"0"!==D?M=N?.headerOnlyLocationWithRangeSingular:T&&P&&"0"===D?M=N?.headerOnlyLocationWithKeywordSingular:T&&P&&"0"!==D&&(M=N?.headerOnlyLocationWithKeywordAndRangeSingular):M=N?.headerNoParamsSingular:Number(I)>1&&(T||P?T&&!P?M=N?.headerOnlyKeyword:!T&&P&&"0"===D?M=N?.headerOnlyLocation:!T&&P&&"0"!==D?M=N?.headerOnlyLocationWithRange:T&&P&&"0"===D?M=N?.headerOnlyLocationWithKeyword:T&&P&&"0"!==D&&(M=N?.headerOnlyLocationWithKeywordAndRange):M=N?.headerNoParams),M?.replace("{{total}}",I)?.replace("{{keywords}}",T?.toSlug()?.replaceAll("-"," ")??"")?.replace("{{location}}",P??"")?.replace("{{distance}}",D??"")}},26584:(N,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default={randomUUID:"u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)}},26650:(N,I)=>{"use strict";function T(N){return Object.defineProperty(Error(`Route "${N}": Next.js encountered runtime data during prerendering. 462 463\`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` accessed outside of \`<Suspense>\` prevents the route from being prerendered, blocking the page load and leading to a slower user experience. 464 465Ways to fix this: 466 - [stream] Provide a placeholder with \`<Suspense fallback={...}>\` around the data access 467 - [block] Set \`export const instant = false\` to allow a blocking route 468 469Learn more: https://nextjs.org/docs/messages/blocking-prerender-runtime`),"__NEXT_ERROR_CODE",{value:"E1427",enumerable:!1,configurable:!0})}function P(N){return Object.defineProperty(Error(`Route "${N}": Next.js encountered uncached data during prerendering. 470
471\`fetch(...)\` or \`connection()\` accessed outside of \`<Suspense>\` prevents the route from being prerendered, blocking the page load and leading to a slower user experience. 472 473Ways to fix this: 474 - [stream] Provide a placeholder with \`<Suspense fallback={...}>\` around the data access 475 - [cache] Cache the data access with \`"use cache"\` (does not apply to \`connection()\`) 476 - [block] Set \`export const instant = false\` to allow a blocking route 477 478Learn more: https://nextjs.org/docs/messages/blocking-prerender-dynamic`),"__NEXT_ERROR_CODE",{value:"E1440",enumerable:!1,configurable:!0})}function D(N){return Object.defineProperty(Error(`Route "${N}": Next.js encountered runtime data during prerendering or a navigation. 479 480\`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` accessed outside of \`<Suspense>\` prevents the route from being prerendered or the navigation from being instant, leading to a slower user experience. 481 482Ways to fix this: 483 - [stream] Provide a placeholder with \`<Suspense fallback={...}>\` around the data access 484 - [block] Set \`export const instant = false\` to allow a blocking route 485 486Learn more: https://nextjs.org/docs/messages/blocking-prerender-runtime`),"__NEXT_ERROR_CODE",{value:"E1430",enumerable:!1,configurable:!0})}function M(N){return Object.defineProperty(Error(`Route "${N}": Next.js encountered URL data during prerendering or a navigation. 487 488\`params\` or \`searchParams\` accessed outside of \`<Suspense>\` may prevent the navigation from being instant, leading to a slower user experience. 489 490Ways to fix this: 491 - [stream] Provide a placeholder with \`<Suspense fallback={...}>\` around the data access 492 - [block] Set \`export const instant = false\` to allow a blocking route 493 494Learn more: https://nextjs.org/docs/messages/instant-shell-url-data`),"__NEXT_ERROR_CODE",{value:"E1439",enumerable:!1,configurable:!0})}function R(N){return Object.defineProperty(Error(`Route "${N}": Next.js encountered uncached data during prerendering or a navigation. 495 496\`fetch(...)\` or \`connection()\` accessed outside of \`<Suspense>\` prevents the route from being prerendered or the navigation from being instant, leading to a slower user experience. 497 498Ways to fix this: 499 - [stream] Provide a placeholder with \`<Suspense fallback={...}>\` around the data access 500 - [cache] Cache the data access with \`"use cache"\` (does not apply to \`connection()\`) 501 - [block] Set \`export const instant = false\` to allow a blocking route 502 503Learn more: https://nextjs.org/docs/messages/blocking-prerender-dynamic`),"__NEXT_ERROR_CODE",{value:"E1437",enumerable:!1,configurable:!0})}function L(N){return Object.defineProperty(Error(`Route "${N}": Next.js encountered uncached or runtime data during prerendering. 504 505\`fetch(...)\`, \`cookies()\`, \`headers()\`, \`params\`, \`searchParams\`, or \`connection()\` accessed outside of \`<Suspense>\` prevents the route from being prerendered, blocking the page load and leading to a slower user experience. 506 507Ways to fix this: 508 - [stream] Provide a placeholder with \`<Suspense fallback={...}>\` around the data access 509 - [cache] For uncached data (\`fetch\`, database calls): cache the access with \`"use cache"\` (does not apply to \`connection()\`) 510 - [block] Set \`export const instant = false\` to allow a blocking route 511 512Learn more: https://nextjs.org/docs/messages/blocking-prerender-dynamic`),"__NEXT_ERROR_CODE",{value:"E1428",enumerable:!1,configurable:!0})}function $(N){return Object.defineProperty(Error(`Route "${N}": Next.js encountered URL data in \`generateMetadata()\`. 513 514This route's metadata is blocked, but the rest of its content can be prefetched. \`params\` or \`searchParams\` accessed in \`generateMetadata()\` prevent it from being prefetched. 515 516Ways to fix this: 517 - [static] Use a static metadata export instead of \`generateMetadata()\` 518 - [dynamic] Render a marker component that calls \`await connection()\` inside \`<Suspense>\` on the page 519 520Learn more: https://nextjs.org/docs/messages/blocking-prerender-metadata-runtime`),"__NEXT_ERROR_CODE",{value:"E1429",enumerable:!1,
520configurable:!0})}function F(N){return Object.defineProperty(Error(`Route "${N}": Next.js encountered runtime data in \`generateMetadata()\`. 521 522This route's metadata is blocked, but the rest of its content can be prerendered. \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` accessed in \`generateMetadata()\` cause it to run dynamically. 523 524Ways to fix this: 525 - [static] Use a static metadata export instead of \`generateMetadata()\` 526 - [dynamic] Render a marker component that calls \`await connection()\` inside \`<Suspense>\` on the page 527 528Learn more: https://nextjs.org/docs/messages/blocking-prerender-metadata-runtime`),"__NEXT_ERROR_CODE",{value:"E1423",enumerable:!1,configurable:!0})}function B(N){return Object.defineProperty(Error(`Route "${N}": Next.js encountered uncached data in \`generateMetadata()\`. 529 530This route's metadata is blocked, but the rest of its content can be prerendered. \`fetch(...)\` or \`connection()\` accessed in \`generateMetadata()\` cause it to run dynamically. 531 532Ways to fix this: 533 - [cache] Cache the metadata with \`"use cache"\` in \`generateMetadata()\` (does not apply to \`connection()\`) 534 - [dynamic] Render a marker component that calls \`await connection()\` inside \`<Suspense>\` on the page 535 536Learn more: https://nextjs.org/docs/messages/blocking-prerender-metadata-dynamic`),"__NEXT_ERROR_CODE",{value:"E1425",enumerable:!1,configurable:!0})}function U(N){return Object.defineProperty(Error(`Route "${N}": Next.js encountered URL data in \`generateViewport()\`. 537 538\`params\` or \`searchParams\` in \`generateViewport()\` prevents the page from being prerendered, leading to a slower user experience. 539 540Ways to fix this: 541 - [static] Use a static viewport export instead of \`generateViewport()\` 542 - [block] Set \`export const instant = false\` to allow a blocking route 543 544Learn more: https://nextjs.org/docs/messages/blocking-prerender-viewport-runtime`),"__NEXT_ERROR_CODE",{value:"E1431",enumerable:!1,configurable:!0})}function H(N){return Object.defineProperty(Error(`Route "${N}": Next.js encountered runtime data in \`generateViewport()\`. 545 546\`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` in \`generateViewport()\` prevents the page from being prerendered, leading to a slower user experience. 547 548Ways to fix this: 549 - [static] Use a static viewport export instead of \`generateViewport()\` 550 - [block] Set \`export const instant = false\` to allow a blocking route 551 552Learn more: https://nextjs.org/docs/messages/blocking-prerender-viewport-runtime`),"__NEXT_ERROR_CODE",{value:"E1424",enumerable:!1,configurable:!0})}function z(N){return Object.defineProperty(Error(`Route "${N}": Next.js encountered uncached data in \`generateViewport()\`. 553 554\`fetch(...)\` or \`connection()\` in \`generateViewport()\` prevents the page from being prerendered, leading to a slower user experience. 555 556Ways to fix this: 557 - [cache] Cache the viewport data with \`"use cache"\` in \`generateViewport()\` (does not apply to \`connection()\`) 558 - [block] Set \`export const instant = false\` to allow a blocking route 559 560Learn more: https://nextjs.org/docs/messages/blocking-prerender-viewport-dynamic`),"__NEXT_ERROR_CODE",{value:"E1438",enumerable:!1,configurable:!0})}function W(N){return Object.defineProperty(Error(`Route "${N}": Next.js encountered uncached or runtime data in \`generateViewport()\`. 561 562This prevents the page from being prerendered, leading to a slower user experience. Unlike metadata, viewport cannot be streamed behind \`<Suspense>\` because it affects the initial page load. 563 564Ways to fix this: 565 - [static] Use a static viewport export instead of \`generateViewport()\` 566 - [cache] For uncached data (\`fetch\`, database calls): cache the viewport with \`"use cache"\` in \`generateViewport()\` (does not apply to \`connection()\`) 567 - [block] Set \`export const instant = false\` to allow a blocking route 568 569Learn more: https://nextjs.org/docs/messages/blocking-prerender-viewport-runtime`),"__NEXT_ERROR_CODE",{value:"E1436",enumerable:!1,configurable:!0})}function q(N){return Object.defineProperty(Error(`Route "${N}": Next.js encountered uncached or runtime data in \`generateMetadata()\`. 570 571This route's metadata is blocked, but the rest of its content can be prerendered. 572 573Ways to fix this: 574 - [static] Use a static metadata export instead of \`generateMetadata()\` 575 - [cache] Cache the metadata with \`"use cache"\` in \`generateMetadata()\` (does not apply to \`connection()\`) 576 - [dynamic] Render a marker component that calls \`await connection()\` inside \`<Suspense>\` on the page 577 578Learn more: https://nextjs.org/docs/messages/blocking-prerender-metadata-runtime`),"__NEXT_ERROR_CODE",{value:"E1426",enumerable:!1,
578configurable:!0})}function G(N){console.error(`To get a more detailed stack trace and pinpoint the issue, try one of the following: 579 - Start the app in development mode by running \`next dev\`, then open "${N}" in your browser to investigate the error. 580 - Rerun the production build with \`next build --debug-prerender\` to generate better stack traces.`)}Object.defineProperty(I,"__esModule",{value:!0}),function(N,I){for(var T in I)Object.defineProperty(N,T,{enumerable:!0,get:I[T]})}(I,{createDynamicBodyError:function(){return P},createDynamicBodyErrorInNavigation:function(){return R},createDynamicMetadataError:function(){return B},createDynamicOrRuntimeBodyError:function(){return L},createDynamicOrRuntimeMetadataError:function(){return q},createDynamicOrRuntimeViewportError:function(){return W},createDynamicViewportError:function(){return z},createLinkBodyErrorInNavigation:function(){return M},createLinkMetadataError:function(){return $},createLinkViewportError:function(){return U},createRuntimeBodyError:function(){return T},createRuntimeBodyErrorInNavigation:function(){return D}
580,createRuntimeMetadataError:function(){return F},createRuntimeViewportError:function(){return H},logBuildDebugHint:function(){return G}})},26777:(N,I,T)=>{"use strict";T.r(I),T.d(I,{buildSelectedFiltersQueryObject:()=>$,resolveInitialSearchBarData:()=>R,resolveResultTitle:()=>M,resolveSelectedFiltersFromUrl:()=>L,translateFacetValue:()=>D});var P=T(26197);let D=(N,I,T)=>{let P=T?.toString()??"";return/^([A-Za-z]{1,5}\d{0,5}|\d{1,5})$/.test(P)?N?.find(N=>N.category===I)?.facets?.find(N=>N.id===P)?.value:P},M=(N,I,T,D,M)=>(0,P.H)(N,I.toString(),T,D,M)??"",R=(N,I,T,P)=>{let D=N?.keyword??"",R=N?.location??"",L=N?.distanceValue??I?.distances?.defaultValue?.toString()??"0";return{keyword:D,location:R,distance:L,distanceUnit:I?.distances?.defaultUnit??"km",sortBy:T?.sortByItems?.[0].key??"0",resultTitle:M(T,P,D,R,L)}},L=(N,I)=>{let T=new Map([]),P=new Map([]);return I&&N?.forEach(N=>{let M=decodeURIComponent(N),R=I.map(N=>({filterName:N?.category,facet:N?.facets?.find(N=>N.value?.replaceAll("-","_")?.replaceAll(" ","-")?.toLowerCase()===M)})).find(N=>N?.facet),L=R?.filterName,$=isNaN(+(R?.facet?.id??0))?R?.facet?.id:Number(R?.facet?.id);if(L&&$){let N=D(I,L,$)??"";T.set(L,[...T.get(L)??[],$]),P.set(N,{facet:L,facetValue:$})}}),{selectedFilters:T,selectedFiltersTags:P}},$=(N,I)=>I?{}:Array.from(N,([N,I])=>({[N]:I})).reduce((N,I)=>({...I,...N}),{})},26807:(N,I,T)=>{"use strict";T.r(I),T.d(I,{default:()=>B});var P=T(37876),D=T(85609),M=T(77328),R=T.n(M),L=T(920),$=T(72930),F=T(85464);let B=({fields:N})=>{let{page:I}=(0,D.M5)();if(!N?.blogHeroTitle?.value||!N?.blogHeroPublicationDate?.value)return null;let T=I.layout.sitecore.route?.fields,M=I.layout.sitecore.context,B=(0,F.p)(M),U=" - Brunel",H=String(N.blogHeroTitle.value),z=(0,$.G)(M,B,N.blogUrl),W=N.blogDescription?.value,q="string"==typeof W?W:String(W??""),G=q.trim().length>0?q:H,K=N.blogHeroImage?.value?.src,V=(0,L.qL)(T?.metaOGTitle?.value),Y=(0,L.qL)(T?.metaDescription?.value)||(0,L.qL)(T?.metaOGDescription?.value),J=T?.metaImage?.value?.src||T?.metaOGImage?.value?.src,Q=(0,L.ZK)({heroTitle:H,metaTitle:T?.metaTitle?.value,metaOGTitle:T?.metaOGTitle?.value,suffix:U}),Z=Y??G,X=J??K,ee=z?{"@context":"https://schema.org","@type":"BlogPosting",headline:H,description:Z,url:z,datePublished:N.blogHeroPublicationDate.value,author:{"@type":"Organization","@id":"https://www.brunel.net/#organization"},mainEntityOfPage:{"@type":"WebPage","@id":z},image:X,keywords:N.blogHeroCategory?.name||""}:null;return(0,P.jsxs)(R(),{children:[(0,P.jsx)("title",{children:Q}),(0,P.jsx)("meta",{property:"og:title",content:V??Q}),(0,P.jsx)("meta",{name:"twitter:title",content:Q}),(0,P.jsx)("meta",{name:"description",content:Z}),(0,P.jsx)("meta",{property:"og:description",content:Z}),(0,P.jsx)("meta",{name:"twitter:description",content:Z}),X&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("meta",{property:"og:image",content:X}),(0,P.jsx)("meta",{name:"twitter:image",content:X})]}),ee&&(0,P.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(ee)}})]})}},26987:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),function(N,I){for(var T in I)Object.defineProperty(N,T,{enumerable:!0,get:I[T]})}(I,{ReadonlyURLSearchParams:function(){return M.ReadonlyURLSearchParams},RedirectType:function(){return B.RedirectType},ServerInsertedHTMLContext:function(){return $.ServerInsertedHTMLContext},forbidden:function(){return B.forbidden},notFound:function(){return B.notFound},permanentRedirect:function(){return B.permanentRedirect},redirect:function(){return B.redirect},unauthorized:function(){return B.unauthorized},unstable_isUnrecognizedActionError:function(){return F.unstable_isUnrecognizedActionError},unstable_rethrow:function(){return B.unstable_rethrow},useParams:function(){return K},usePathname:function(){return q},useRouter:function(){return G},useSearchParams:function(){return W},useSelectedLayoutSegment:function(){return Y},useSelectedLayoutSegments:function(){return V},useServerInsertedHTML:function(){return $.useServerInsertedHTML}});let P=T(88365)._(T(14232)),D=T(31335),M=T(12998),R=T(31967),L=T(27680),$=T(76588),F=T(7436),B=T(82730),{instrumentParam
580sForClientValidation:U,instrumentSearchParamsForClientValidation:H,expectCompleteParamsInClientValidation:z}={};function W(){L.useDynamicSearchParams?.("useSearchParams()");let N=(0,P.useContext)(M.SearchParamsContext);return(0,P.useMemo)(()=>N?new M.ReadonlyURLSearchParams(N):null,[N])}function q(){return L.useDynamicRouteParams?.("usePathname()"),(0,P.useContext)(M.PathnameContext)}function G(){let N=(0,P.useContext)(D.AppRouterContext);if(null===N)throw Object.defineProperty(Error("invariant expected app router to be mounted"),"__NEXT_ERROR_CODE",{value:"E238",enumerable:!1,configurable:!0});let I=(0,P.useContext)(D.LayoutRouterContext),T=I?.parentCacheNode.bfcacheId??0;return(0,P.useMemo)(()=>({back:N.back,forward:N.forward,refresh:N.refresh,hmrRefresh:N.hmrRefresh,push:N.push,replace:N.replace,prefetch:N.prefetch,experimental_gesturePush:N.experimental_gesturePush,bfcacheId:"_b_"+T+"_"}),[N,T])}function K(){return L.useDynamicRouteParams?.("useParams()"),(0,P.useContext)(M.PathParamsContext)}function V(N="children"){L.useDynamicRouteParams?.("useSelectedLayoutSegments()");let I=(0,P.useContext)(D.LayoutRouterContext);return I?(0,R.getSelectedLayoutSegmentPath)(I.parentTree,N):null}function Y(N="children"){L.useDynamicRouteParams?.("useSelectedLayoutSegment()"),(0,P.useContext)(M.NavigationPromisesContext);let I=V(N);return(0,R.computeSelectedLayoutSegment)(I,N)}("function"==typeof I.default||"object"==typeof I.default&&null!==I.default)&&void 0===I.default.__esModule&&(Object.defineProperty(I.default,"__esModule",{value:!0}),Object.assign(I.default,I),N.exports=I.default)},27198:(N,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i},27400:(N,I,T)=>{"use strict";T.d(I,{$:()=>M});var P=T(37876),D=T(55333);let M=N=>(0,D.Cx)()?(0,P.jsx)("div",{id:N.id?N.id:void 0,children:(0,P.jsxs)("div",{className:"component-content",children:[(0,P.jsx)("h3",{children:N.title}),(0,P.jsx)("p",{children:N.msg})]})}):null},27548:(N,I,T)=>{"use strict";T.r(I),T.d(I,{HUBSPOT_UTM_CAMPAIGN_FIELD:()=>$,HUBSPOT_UTM_MEDIUM_FIELD:()=>L,HUBSPOT_UTM_SOURCE_FIELD:()=>R,enrichFormDataWithUtmParams:()=>q,getUtmParamsFromCampaignCookie:()=>z,setHubSpotUtmFieldValues:()=>W});var P=T(29454);let D="__gtm_campaign_url",M="brutmParams",R="0-1/utm_source",L="0-1/utm_medium",$="0-1/utm_campaign",F={utmSource:"",utmMedium:"",utmCampaign:""};function B(N){return!!(N.utmSource||N.utmMedium||N.utmCampaign)}function U(){let N=P.A.get(D);if(!N)return F;try{let I=new URL(N);return{utmSource:I.searchParams.get("utm_source")??"",utmMedium:I.searchParams.get("utm_medium")??"",utmCampaign:I.searchParams.get("utm_campaign")??""}}catch{return F}}function H(){let N=P.A.get(M);if(!N)return F;let I=new Map;for(let T of N.split("&")){let[N,P]=T.split("=");N&&P&&I.set(N,decodeURIComponent(P))}return{utmSource:I.get("brutm_source")??"",utmMedium:I.get("brutm_medium")??"",utmCampaign:I.get("brutm_campaign")??""}}function z(){let N=U();if(B(N))return N;let I=H();return B(I)?I:null}function W(N,I){N&&(I.utmSource&&N.setFieldValue(R,I.utmSource),I.utmMedium&&N.setFieldValue(L,I.utmMedium),I.utmCampaign&&N.setFieldValue($,I.utmCampaign))}function q(N,I){I.utmSource&&!N.utm_source&&(N.utm_source=I.utmSource),I.utmMedium&&!N.utm_medium&&(N.utm_medium=I.utmMedium),I.utmCampaign&&!N.utm_campaign&&(N.utm_campaign=I.utmCampaign)}},27680:(N,I)=>{"use strict";let T,P;Object.defineProperty(I,"__esModule",{value:!0}),function(N,I){for(var T in I)Object.defineProperty(N,T,{enumerable:!0,get:I[T]})}(I,{useDynamicRouteParams:function(){return T},useDynamicSearchParams:function(){return P}});("function"==typeof I.default||"object"==typeof I.default&&null!==I.default)&&void 0===I.default.__esModule&&(Object.defineProperty(I.default,"__esModule",{value:!0}),Object.assign(I.default,I),N.exports=I.default)},27883:(N,I,T)=>{"use strict";T.d(I,{J1:()=>F,JL:()=>L});var P=T(4103),D=T.n(P),M=T(60409);T(75636);var R=T(99742);let L=(N,I)=>{let T=N;try{T=decodeURIComponent(N)}catch{}return D()(T,{replacement:"-",lower:!0,strict:!0,locale:I,trim:!0})},$=(N,I,T)=>{let P=I?.toLowerCase()??"";if(!P)return"";let D=N?L(N,T):"";return D?`${D}-${P}`:P},F=(N,I,T,P,D)=>{let R=$(I,T,P);if(!N||!R)return N;let L=/\/jobs\/?$/i.test(N)?`${N.replace(/\/?$/,"/")}${R}`:`${N.replace(/\/?$/,"")}/jobs/${R}`;if(D){let N=B(D,P??M.Xn);L=L.replace(/\/[a-z]{2,5}(?:-[a-z]{2,5})?(?=\/)/i,`/${N}`)}return L},B=(N,I)=>{let T=N?.toLocaleLowerCase();return("en-en"===T&&(T=T.replace(/([a-z]{2})-\1/,"$1")),T&&R.env.LANGUAGES?.split(",").includes(T)||T&&(T=T?.split("-")[1]+"-"+T?.split("-")[0],R.env.LANGUAGES?.split(",").includes(T)))?T:I}},28046:(N,I,T)=>{"use strict";T.d(I,{de:()=>G});var P=T(94012),D=T(58621),M=T(46575),R=T(38505);let L={narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},$={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},F={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","M\xe4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},B={narrow:F.narrow,abbreviated:["Jan.","Feb.","M\xe4rz","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:F.wide},U={narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},H={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nac
580hm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},z={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},W={ordinalNumber:N=>Number(N)+".",era:(0,R.o)({values:L,defaultWidth:"wide"}),quarter:(0,R.o)({values:$,defaultWidth:"wide",argumentCallback:N=>N-1}),month:(0,R.o)({values:F,formattingValues:B,defaultWidth:"wide"}),day:(0,R.o)({values:U,defaultWidth:"wide"}),dayPeriod:(0,R.o)({values:H,defaultWidth:"wide",formattingValues:z,defaultFormattingWidth:"wide"})};var q=T(75217);let G={code:"de",formatDistance:P.B,formatLong:D.s,formatRelative:M.o,localize:W,match:q.Y,options:{weekStartsOn:1,firstWeekContainsDate:4}}},28213:(N,I,T)=>{"use strict";T.r(I),T.d(I,{UspVerticalList:()=>R});var P=T(37876),D=T(63366),M=T(27400);let R=N=>{let I=N.fields?.data?.datasource,T=N.params.RenderingIdentifier;if(I?.children?.results){if(0===I.children.results.length)return(0,P.jsx)(M.$,{id:T,title:R.name,msg:"Please add Usps using the toolbar"});let N=I.children.results.filter(N=>N?.uspText?.text?.value).map((N,T)=>(0,P.jsx)(L,{id:N.id,field:N.uspText.text,total:I.children.results.length},T));return(0,P.jsx)(D.az,{className:"flex w-screen flex-col bg-white px-6 py-5 text-base font-normal",id:T||void 0,children:N})}return(0,P.jsx)(M.$,{id:T,title:R.name,msg:"Please add a datasource for USP List"})},L=N=>(0,P.jsxs)(D.az,{id:N.id?N.id:void 0,className:"my-2 flex items-center pl-0 text-brunel-dark-grey",children:[(0,P.jsx)(D.In,{name:"check",color:"ui-green",className:"mr-2"}),(0,P.jsx)(D.o5,{textField:N.field})]})},28412:(N,I,T)=>{"use strict";T.d(I,{D:()=>Q});var P=T(37876);let D=N=>{let I=parseFloat(N?.office?.item?.brunelMapCentralPointLatitude?.value),T=parseFloat(N?.office?.item?.brunelMapCentralPointLongitude?.value);return isNaN(I)||isNaN(T)?null:{lat:I,lng:T}},M=N=>({officeId:N?.id,officeName:(N?.office?.item?.officeName?.value??"").toLowerCase(),officeAddress:N?.office?.item?.streetAddress?.value??"",officePostalCode:N?.office?.item?.postalCode?.value??""}),R=N=>N?.toLowerCase()||"roadmap",L=()=>void 0!==window.google?.maps;var $=T(85609),F=T(14232),B=T(98566),U=T(54449);let H=({brunelMapCentralPointLatitude:N,brunelMapCentralPointLongitude:I,brunelMapZoom:T,markers:P})=>{let M=(0,B.K_)(),R=(0,$.M5)()?.page.mode.isEditing??!1,[,H]=(0,F.useState)(null),[z,W]=(0,F.useState)(!1),[q,G]=(0,F.useState)(null),[K,V]=(0,F.useState)(null),Y=(0,F.useRef)(!1),J=(0,F.useRef)(null),Q=(0,F.useRef)(!1),Z=(0,U.u)(),X=(0,F.useMemo)(()=>({lat:N,lng:I}),[N,I]);(0,F.useEffect)(()=>{Q.current=!1,J.current=null},[P]),(0,F.useEffect)(()=>{if(Y.current)return;let N=()=>!!L()&&!Y.current&&(Y.current=!0,W(!0),!0);if(N())return;let I=setInterval(()=>{N()&&clearInterval(I)},100),T=setTimeout(()=>clearInterval(I),1e4);return()=>{clearInterval(I),clearTimeout(T)}},[]);let ee=(0,F.useCallback)(N=>{if(Q.current&&J.current===N)return;Q.current=!0,J.current=N;let I=new window.google.maps.LatLngBounds,M=!1;P?.forEach(N=>{let T=D(N);T&&(I.extend(new google.maps.LatLng(T.lat,T.lng)),M=!0)}),N.setCenter(X),N.setZoom(T),requestAnimationFrame(()=>{setTimeout(()=>{try{M&&!I.isEmpty()&&N.getDiv()&&N.getDiv().offsetHeight>0&&N.fitBounds(I,{top:50,right:50,bottom:50,left:50})}catch(I){console.error("BrunelMap: Error in onMapLoad",I),N.setCenter(X),N.setZoom(T)}},300)}),H(N)},[P,X,T]),et=(0,F.useCallback)(()=>{Y.current||(Y.current=!0,W(!0))},[]);return{dictionary:M,isPageEditing:R,cookieConsent:Z,loadError:q,selectedOfficeId:K,setSelectedOfficeId:V,defaultCenter:X,onMapLoad:ee,onScriptLoad:et,onScriptError:(0,F.useCallback)(N=>{console.error("BrunelMap: LoadScriptNext onError",N),G(N)},[]),shouldRenderMap:z||L()||Y.current}};
580var z=T(10409),W=T(56375),q=T(6807),G=T(62945),K=T(92678),V=T(68894),Y=T(36379),J=T(41655);let Q=N=>{let{brunelMapType:I,markers:T,officeData:L,officeId:$}=N,{dictionary:B,isPageEditing:U,cookieConsent:Q,loadError:Z,selectedOfficeId:X,setSelectedOfficeId:ee,defaultCenter:et,onMapLoad:er,onScriptLoad:en,onScriptError:ea,shouldRenderMap:ei}=H(N),eo=L?.officeName?.value??"",es=L?.streetAddress?.value??"",el=L?.postalCode?.value??"",ec=()=>(0,P.jsx)(z.a,{className:"relative h-93.75 md:h-105",children:(0,P.jsxs)(z.a,{className:"absolute inset-0 flex flex-col items-center justify-center bg-accent-fiord text-center",children:[(0,P.jsx)(z.a,{className:"mb-4 text-3xl",children:(0,P.jsx)(W.I,{name:"cookies",size:"partners",color:"white"})}),(0,P.jsxs)(z.a,{className:"flex flex-col px-6 md:gap-4",children:[(0,P.jsx)(q.o,{type:"h2",className:"text-white",plainText:B?.["cookies-required-title"]??"[cookies-required-title]",color:"white"}),(0,P.jsx)(q.o,{type:"medium",className:"mb-6 line-clamp-2 text-white",plainText:B?.["map-cookies-message"]??"[map-cookies-message]"}),(0,P.jsx)(K.Button,{id:"change-cookie-settings",variant:"primary",className:"mx-auto",onClick:(0,Y.RT)([]).handleChangeCookieSettings,plainText:B?.["change-cookie-settings-button"]??"[change-cookie-settings-button]"})]})]})}),eu=()=>(0,P.jsx)(z.a,{className:"mx-6 h-93.75 md:mx-0 md:h-93.75",children:(0,P.jsx)("div",{className:"flex h-full items-center justify-center bg-ui-grey",children:(0,P.jsx)(q.o,{type:"large",className:"text-white",plainText:Z?Z.message:"Map is loading..."})})});return!J.h&&Q.loading?(0,P.jsx)(z.a,{className:"h-93.75 bg-accent-fiord opacity-90 md:h-105"}):J.h||Q.mapConsent||U?(0,P.jsx)(G.BH,{googleMapsApiKey:"AIzaSyD4F49Do8KHt4uB_hFLasbOb1V1u2fVi2A",loadingElement:(0,P.jsx)(eu,{}),onLoad:en,onError:ea,children:ei&&!Z?(0,P.jsx)(z.a,{className:"h-93.75 md:h-105",children:(0,P.jsx)(G.u6,{mapContainerClassName:"size-full",center:et,mapTypeId:R(I),onLoad:er,options:{disableDefaultUI:!1,zoomControl:!0},children:T?.length?T.map((N,I)=>{let T=D(N);if(!T)return null;let R=M(N);return(0,P.jsxs)(F.Fragment,{children:[(0,P.jsx)(G.X0,{position:T,onClick:()=>ee(R.officeId)}),X===R.officeId&&(0,P.jsx)(V.OfficeMapPopup,{officeId:R.officeId,coordinates:T,officeAddress:R.officeAddress,officeName:R.officeName,officePostalCode:R.officePostalCode,setOfficeId:ee})]},I+1)}):(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(G.X0,{position:et,onClick:()=>ee($??"")}),X===$&&(0,P.jsx)(V.OfficeMapPopup,{officeId:$,coordinates:et,officeAddress:es,officeName:eo,officePostalCode:el,setOfficeId:ee})]})})}):Z?(0,P.jsx)(z.a,{className:"h-93.75 md:h-105",children:(0,P.jsx)("div",{className:"flex h-full items-center justify-center bg-ui-grey",children:(0,P.jsx)(q.o,{type:"large",className:"text-white",plainText:U||J.h?`Error loading map: ${Z.message}`:"Something went wrong while loading the map."})})}):(0,P.jsx)(eu,{})}):(0,P.jsx)(ec,{})}},28518:(N,I,T)=>{"use strict";T.d(I,{A:()=>q});var P=T(37876),D=T(40163),M=T(22544),R=T(29454),L=T(10409),$=T(58138),F=T(60409),B=T(36379),U=T(78557),H=T(29087);let z=({languageData:N,nativeName:I})=>{let{alternativeLanguage:T,currentLanguage:z,languageSectionCountryColumnTitle:W,languageSectionCountrySelectorPage:q,languageSectionLanguageColumnTitle:G}=N,K=z?.nativeName?.split("(")[1]?.replace(/["'()]/g,""),V=z?.name===F.Xn&&T?.englishName||T?.nativeName,Y=q?.jsonValue?.value?.href,J=q?.jsonValue?.value?.text;return(0,P.jsx)(L.a,{className:"top-18 left-0 flex w-screen flex-wrap overflow-hidden bg-brunel-dark-grey lg:fixed lg:max-h-0 lg:rounded-none lg:transition-all lg:duration-500 lg:ease-in-out lg:group-hover:max-h-full lg:group-hover:border-b-4 lg:group-hover:border-brunel-yellow lg:group-hover:py-5",children:(0,P.jsxs)(L.a,{className:"lg:last-child:mr-0 lg:mx-auto lg:grid lg:w-full lg:max-w-(--breakpoint-lg) lg:grid-cols-4 lg:gap-x-10",children:[(0,P.jsxs)("ul",{children:[(0,P.jsx)("li",{children:(0,P.jsx)(D.E,{field:G,className:(0,B.cn)($.kL,$.lJ,"text-base leading-5 font-semibold! text-brunel-yellow"),tag:"p"})}),z&&(0,P.jsx)("li",{className:(0,B.cn)((0,$.BV)({listItem:"subMenu"})),children:(0,P.jsx)(D.E,{field:{value:I},className:"cursor-text text-brunel-yellow",tag:"p"})}),T&&(0,P.jsx)("li",{children:(0,P.jsx)(M.N,{className:(0,B.cn)((0,$.C0)(),"text-base!"),field:{href:`/${T?.name??F.Xn}`,target:"_top"},onClick:()=>{(0,H.R)(window.OnetrustActiveGroups).hasLocaleCookieConsent&&R.A.set(U.g,T?.name??F.Xn,{expires:365,path:"/",sameSite:"lax"})},children:V})})]}),(0,P.jsxs)("ul",{children:[(0,P.jsx)("li",{children:(0,P.jsx)(D.E,{field:W,className:(0,B.cn)($.kL,$.lJ,"text-base leading-5 font-semibold! text-brunel-yellow"),tag:"p"})}),K&&(0,P.jsx)("li",{className:(0,B.cn)((0,$.BV)({listItem:"subMenu"})),children:(0,P.jsx)(D.E,{field:{value:K},className:"cursor-text text-brunel-yellow",tag:"p"})}),(0,P.jsx)("li",{children:(0,P.jsx)(M.N,{className:(0,B.cn)((0,$.C0)(),"text-base!"),field:{href:Y??"#"},children:J})})]})]})})};var W=T(56375);let q=({languageData:N,setActiveNavItem:I})=>{let{countryCode:T,currentLanguage:D,isGlobal:M}=N,R=()=>{I&&I(N)};return(0,P.jsx)(P.Fragment,{children:(0,P.jsxs)("div",{tabIndex:0,className:(0,B.cn)("nav-item underline-effect nav-item group relative flex w-full cursor-pointer items-center border-b border-none border-accent-iron p-0 px-1 py-4 text-start"),onClick:()=>R(),children:[(0,P.jsx)(W.I,{name:M?"global":T,size:"small",color:"white"}),(0,P.jsx)("div",{className:"ml-auto flex",children:(0,P.jsx)(W.I,{name:"chevron-down",color:"white"})}),(0,P.jsx)(z,{languageData:N,nativeName:D?.nativeName})]})})}},28823:(N,I,T)=>{"use strict";T.d(I,{Kz:()=>eU,Ot:()=>ec,Y4:()=>eF,_z:()=>ew,aZ:()=>es,ik:()=>eu,r6:()=>eM,uI:()=>eh,uv:()=>ez,wk:()=>eA});var P=T(37876),D=T(14232),M=T(15039),R=T(90661),L=Object.defineProperty,$=Object.defineProperties,F=Object.getOwnPropertyDescriptors,B=Object.getOwnPropertySymbols,U=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable,z=(N,I,T)=>I in N?L(N,I,{enumerable:!0,configurable:!0,writable:!0,value:T}):N[I]=T,W=(N,I)=>{for(var T in I||(I={}))U.call(I,T)&&z(N,T,I[T]);
580if(B)for(var T of B(I))H.call(I,T)&&z(N,T,I[T]);return N},q=(N,I)=>$(N,F(I)),G=(N,I)=>{var T={};for(var P in N)U.call(N,P)&&0>I.indexOf(P)&&(T[P]=N[P]);if(null!=N&&B)for(var P of B(N))0>I.indexOf(P)&&H.call(N,P)&&(T[P]=N[P]);return T};function K(N,I){return D.Children.map(N,N=>(0,D.isValidElement)(N)&&void 0===N.props.fill?(0,D.cloneElement)(N,{fill:I}):N)}function V(N){var I=N,{bgStyle:T={},borderRadius:D=0,children:M,color:R,iconFillColor:L="white",round:$=!1,size:F=64}=I,B=G(I,["bgStyle","borderRadius","children","color","iconFillColor","round","size"]);let U=K(M,L);return(0,P.jsxs)("svg",q(W({viewBox:"0 0 64 64",width:F,height:F},B),{children:[$?(0,P.jsx)("circle",{cx:"32",cy:"32",r:"32",fill:R,style:T}):(0,P.jsx)("rect",{width:"64",height:"64",rx:D,ry:D,fill:R,style:T}),U]}))}class Y extends Error{constructor(N){super(N),this.name="AssertionError"}}function J(N,I){if(!N)throw new Y(I)}function Q(N){let I=Object.entries(N).filter(([,N])=>null!=N).map(([N,I])=>`${encodeURIComponent(N)}=${encodeURIComponent(String(I))}`);return I.length>0?`?${I.join("&")}`:""}let Z={bluesky:"Share on Bluesky",email:"Share by email",facebook:"Share on Facebook",facebookmessenger:"Share in Messenger",gab:"Share on Gab",hatena:"Share on Hatena",instapaper:"Save to Instapaper",line:"Share on Line",linkedin:"Share on LinkedIn",livejournal:"Share on LiveJournal",mailru:"Share on Mail.ru",ok:"Share on OK",pinterest:"Pin on Pinterest",pocket:"Save to Pocket",reddit:"Share on Reddit",telegram:"Share on Telegram",threads:"Share on Threads",tumblr:"Share on Tumblr",twitter:"Share on X",viber:"Share on Viber",vk:"Share on VK",weibo:"Share on Weibo",whatsapp:"Share on WhatsApp",workplace:"Share on Workplace"},X=N=>!!N&&("object"==typeof N||"function"==typeof N)&&"then"in N&&"function"==typeof N.then,ee=(N,I)=>({left:window.outerWidth/2+(window.screenX||window.screenLeft||0)-N/2,top:window.outerHeight/2+(window.screenY||window.screenTop||0)-I/2}),et=(N,I)=>({top:(window.screen.height-I)/2,left:(window.screen.width-N)/2});function er(N){var I;let T=D.Children.toArray(N);if(1!==T.length)return;let[P]=T;if((0,D.isValidElement)(P))return P.props.round?"50%":null!=(I=P.props.borderRadius)?I:0}function en(N){return D.Children.toArray(N).some(N=>"string"==typeof N?N.trim().length>0:"number"==typeof N||!!(0,D.isValidElement)(N)&&en(N.props.children))}function ea(N,I,T){var P=I,{height:D,width:M}=P;let R=W({height:D,width:M,location:"no",toolbar:"no",status:"no",directories:"no",menubar:"no",scrollbars:"yes",resizable:"no",centerscreen:"yes",chrome:"yes"},G(P,["height","width"])),L=window.open(N,"",Object.keys(R).map(N=>`${N}=${R[N]}`).join(", "));if(T){let N=window.setInterval(()=>{try{(null===L||L.closed)&&(window.clearInterval(N),T(L))}catch(N){console.error(N)}},1e3)}return L}function ei(N){var I=N,{"aria-label":T,"aria-labelledby":D,beforeOnClick:R,children:L,className:$,disabled:F,disabledStyle:B={opacity:.6},forwardedRef:U,htmlTitle:H,networkLink:z,networkName:K,onClick:V,onShareWindowClose:Y,openShareDialogOnClick:J=!0,opts:Q,resetButtonStyle:ei=!0,style:eo,title:es,type:el="button",url:ec,windowHeight:eu=400,windowPosition:ed="windowCenter",windowWidth:ef=550}=I,eh=G(I,["aria-label","aria-labelledby","beforeOnClick","children","className","disabled","disabledStyle","forwardedRef","htmlTitle","networkLink","networkName","onClick","onShareWindowClose","openShareDialogOnClick","opts","resetButtonStyle","style","title","type","url","windowHeight","windowPosition","windowWidth"]);let ep=er(L),em=T||D||en(L)?void 0:Z[K],eg=async N=>{if(F)return;let I=z(ec,Q);if(N.preventDefault(),R){let N=R();X(N)&&await N}J&&ea(I,W({height:eu,width:ef},"windowCenter"===ed?ee(ef,eu):et(ef,eu)),Y),V&&V(N,I)},ey=M("react-share__ShareButton",{"react-share__ShareButton--disabled":!!F,disabled:!!F},$),eb=ei?W(W({backgroundColor:"transparent",border:"none",padding:0,display:"inline-flex",borderRadius:ep,outlineOffset:2,font:"inherit",color:"inherit",cursor:"pointer"},eo),F&&B):W(W({},eo),F&&B);return(0,P.jsx)("button",q(W({},eh),{"aria-label":T||em,"aria-labelledby":D,className:ey,disabled:F,onClick:eg,ref:U,style:eb,title:H,type:el,children:L}))}function eo(N,{title:I,separator:T}){return J(N,"bluesky.url"),"https://bsky.app/intent/compose"+Q({text:I?I+T+N:N})}function es(N){return(0,P.jsx)(V,q(W({color:"#7f7f7f"},N),{children:(0,P.jsx)("path",{d:"M17,22v20h30V22H17z M41.1,25L32,32.1L22.9,25H41.1z M20,39V26.6l12,9.3l12-9.3V39H20z"})}))}function el(N,{subject:I,body:T,separator:P}){return"mailto:"+Q({subject:I,body:T?T+P+N:N})}(0,D.forwardRef)((N,I)=>{var T=N,{separator:D,title:M}=T,R=G(T,["separator","title"]);return(0,P.jsx)(ei,q(W({},R),{forwardedRef:I,networkName:"bluesky",networkLink:eo,opts:{title:M,separator:D||" "},windowHeight:460,windowPosition:"windowCenter",windowWidth:660}))}).displayName="BlueskyShareButton";let ec=(0,D.forwardRef)((N,I)=>{var T=N,{body:D,separator:M,subject:R}=T,L=G(T,["body","separator","subject"]);return(0,P.jsx)(ei,q(W({},L),{forwardedRef:I,networkName:"email",networkLink:el,onClick:(N,I)=>{window.location.href=I},openShareDialogOnClick:!1,opts:{subject:R,body:D,separator:M||" "}}))});function eu(N){return(0,P.jsx)(V,q(W({color:"#0866FF"},N),{children:(0,P.jsx)("path",{d:"M34.1,47V33.3h4.6l0.7-5.3h-5.3v-3.4c0-1.5,0.4-2.6,2.6-2.6l2.8,0v-4.8c-0.5-0.1-2.2-0.2-4.1-0.2 c-4.1,0-6.9,2.5-6.9,7V28H24v5.3h4.6V47H34.1z"})}))}
580function ed(N,{appId:I,redirectUri:T,to:P}){return"https://www.facebook.com/dialog/send"+Q({link:N,redirect_uri:T||N,app_id:I,to:P})}function ef(N,{hashtag:I}){return J(N,"facebook.url"),"https://www.facebook.com/sharer/sharer.php"+Q({u:N,hashtag:I})}ec.displayName="EmailShareButton",(0,D.forwardRef)((N,I)=>{var T=N,{appId:D,redirectUri:M,to:R}=T,L=G(T,["appId","redirectUri","to"]);return(0,P.jsx)(ei,q(W({},L),{forwardedRef:I,networkName:"facebookmessenger",networkLink:ed,opts:{appId:D,redirectUri:M,to:R},windowHeight:820,windowWidth:1e3}))}).displayName="FacebookMessengerShareButton";let eh=(0,D.forwardRef)((N,I)=>{var T=N,{hashtag:D}=T,M=G(T,["hashtag"]);return(0,P.jsx)(ei,q(W({},M),{forwardedRef:I,networkName:"facebook",networkLink:ef,opts:{hashtag:D},windowHeight:400,windowWidth:550}))});function ep(){let N=(0,D.useRef)(!1);return(0,D.useEffect)(()=>(N.current=!0,()=>{N.current=!1}),[]),(0,D.useCallback)(()=>N.current,[])}function em(N){var I=N,{children:T=N=>N,className:R,getCount:L,url:$}=I,F=G(I,["children","className","getCount","url"]);let B=ep(),[U,H]=(0,D.useState)(void 0),[z,K]=(0,D.useState)(!1);return(0,D.useEffect)(()=>{K(!0),L($,N=>{B()&&(H(N),K(!1))})},[$]),(0,P.jsx)("span",q(W({className:M("react-share__ShareCount",R)},F),{children:!z&&void 0!==U&&T(U)}))}function eg(N){let I=I=>(0,P.jsx)(em,W({getCount:N},I));return I.displayName=`ShareCount(${N.name})`,I}function ey(N,{title:I}){return J(N,"hatena.url"),`http://b.hatena.ne.jp/add?mode=confirm&url=${N}&title=${I}`}function eb(N,{title:I,description:T}){return J(N,"instapaper.url"),"http://www.instapaper.com/hello2"+Q({url:N,title:I,description:T})}function ev(N,{title:I}){return J(N,"line.url"),"https://social-plugins.line.me/lineit/share"+Q({url:N,text:I})}function ew(N){return(0,P.jsx)(V,q(W({color:"#0077B5"},N),{children:(0,P.jsx)("path",{d:"M20.4,44h5.4V26.6h-5.4V44z M23.1,18c-1.7,0-3.1,1.4-3.1,3.1c0,1.7,1.4,3.1,3.1,3.1 c1.7,0,3.1-1.4,3.1-3.1C26.2,19.4,24.8,18,23.1,18z M39.5,26.2c-2.6,0-4.4,1.4-5.1,2.8h-0.1v-2.4h-5.2V44h5.4v-8.6 c0-2.3,0.4-4.5,3.2-4.5c2.8,0,2.8,2.6,2.8,4.6V44H46v-9.5C46,29.8,45,26.2,39.5,26.2z"})}))}function ex(N,{title:I,summary:T,source:P}){return J(N,"linkedin.url"),"https://linkedin.com/shareArticle"+Q({url:N,mini:"true",title:I,summary:T,source:P})}eh.displayName="FacebookShareButton",eg(function(N,I){R(`https://graph.facebook.com/?id=${N}&fields=og_object{engagement}`,(N,T)=>{I(!N&&T&&T.og_object&&T.og_object.engagement?T.og_object.engagement.count:void 0)})}),(0,D.forwardRef)((N,I)=>{var T=N,{title:D}=T,M=G(T,["title"]);return(0,P.jsx)(ei,q(W({},M),{forwardedRef:I,networkName:"hatena",networkLink:ey,opts:{title:D},windowHeight:460,windowPosition:"windowCenter",windowWidth:660}))}).displayName="HatenaShareButton",eg(function(N,I){R("https://bookmark.hatenaapis.com/count/entry"+Q({url:N}),(N,T)=>{I(null!=T?T:void 0)})}),(0,D.forwardRef)((N,I)=>{var T=N,{description:D,title:M}=T,R=G(T,["description","title"]);return(0,P.jsx)(ei,q(W({},R),{forwardedRef:I,networkName:"instapaper",networkLink:eb,opts:{title:M,description:D},windowHeight:500,windowPosition:"windowCenter",windowWidth:500}))}).displayName="InstapaperShareButton",(0,D.forwardRef)((N,I)=>{var T=N,{title:D}=T,M=G(T,["title"]);return(0,P.jsx)(ei,q(W({},M),{forwardedRef:I,networkName:"line",networkLink:ev,opts:{title:D},windowHeight:500,windowWidth:500}))}).displayName="LineShareButton";let eA=(0,D.forwardRef)((N,I)=>{var T=N,{source:D,summary:M,title:R}=T,L=G(T,["source","summary","title"]);return(0,P.jsx)(ei,q(W({},L),{forwardedRef:I,networkName:"linkedin",networkLink:ex,opts:{title:R,summary:M,source:D},windowHeight:600,windowWidth:750}))});function eE(N,{title:I,description:T}){return J(N,"livejournal.url"),"https://www.livejournal.com/update.bml"+Q({subject:I,event:T})}function eS(N,{title:I,description:T,imageUrl:P}){return J(N,"mailru.url"),"https://connect.mail.ru/share"+Q({url:N,title:I,description:T,image_url:P})}function e_(N,{title:I,description:T,image:P}){return J(N,"ok.url"),"https://connect.ok.ru/offer"+Q({url:N,title:I,description:T,imageUrl:P})}function ek(N,{media:I,description:T,pinId:P}){return P?`https://pinterest.com/pin/${P}/repin/x/`:(J(N,"pinterest.url"),J(I,"pinterest.media"),"https://pinterest.com/pin/create/button/"+Q({url:N,media:I,description:T}))}function eC(N,{title:I}){return J(N,"pocket.url"),"https://getpocket.com/save"+Q({url:N,title:I})}function ej(N,{title:I}){return J(N,"reddit.url"),"https://www.reddit.com/submit"+Q({url:N,title:I})}function eO(N,{title:I}){return J(N,"gab.url"),"https://gab.com/compose"+Q({url:N,text:I})}function eN(N,{title:I}){return J(N,"telegram.url"),"https://telegram.me/share/url"+Q({url:N,text:I})}function eI(N,{title:I}){return J(N,"threads.url"),"https://threads.net/intent/post"+Q({url:N,text:I})}function eT(N,{title:I,caption:T,tags:P,posttype:D}){return J(N,"tumblr.url"),"https://www.tumblr.com/widgets/share/tool"+Q({canonicalUrl:N,title:I,caption:T,tags:P,posttype:D})}function eP(N,{title:I,via:T,hashtags:P=[],related:D=[]}){return J(N,"x.url"),J(Array.isArray(P),"x.hashtags is not an array"),J(Array.isArray(D),"x.related is not an array"),"https://twitter.com/intent/tweet"+Q({url:N,text:I,via:T,hashtags:P.length>0?P.join(","):void 0,related:D.length>0?D.join(","):void 0})}eA.displayName="LinkedinShareButton",(0,D.forwardRef)((N,I)=>{var T=N,{description:D,title:M}=T,R=G(T,["description","title"]);return(0,P.jsx)(ei,q(W({},R),{forwardedRef:I,networkName:"livejournal",networkLink:eE,opts:{title:M,description:D},windowHeight:460,windowWidth:660}))}).displayName="LivejournalShareButton",(0,D.forwardRef)((N,I)=>{var T=N,{description:D,imageUrl:M,title:R}
580=T,L=G(T,["description","imageUrl","title"]);return(0,P.jsx)(ei,q(W({},L),{forwardedRef:I,networkName:"mailru",networkLink:eS,opts:{title:R,description:D,imageUrl:M},windowHeight:460,windowWidth:660}))}).displayName="MailruShareButton",(0,D.forwardRef)((N,I)=>{var T=N,{description:D,image:M,title:R}=T,L=G(T,["description","image","title"]);return(0,P.jsx)(ei,q(W({},L),{forwardedRef:I,networkName:"ok",networkLink:e_,opts:{title:R,description:D,image:M},windowHeight:480,windowPosition:"screenCenter",windowWidth:588}))}).displayName="OKShareButton",eg(function(N,I){window.OK||(window.OK={Share:{count:function(N,I){var T,P;null==(P=(T=window.OK.callbacks)[N])||P.call(T,I)}},callbacks:[]});let T="https://connect.ok.ru/dk",P=window.OK.callbacks.length;return window.ODKL={updateCount(N,I){var T,P;let D=""===N?0:parseInt(N.replace("react-share-",""),10);null==(P=(T=window.OK.callbacks)[D])||P.call(T,""===I?void 0:parseInt(I,10))}},window.OK.callbacks.push(I),R(T+Q({"st.cmd":"extLike",uid:`react-share-${P}`,ref:N}))}),(0,D.forwardRef)((N,I)=>{var T=N,{description:D,media:M,pinId:R}=T,L=G(T,["description","media","pinId"]);return(0,P.jsx)(ei,q(W({},L),{forwardedRef:I,networkName:"pinterest",networkLink:ek,opts:{media:M,description:D,pinId:R},windowHeight:730,windowWidth:1e3}))}).displayName="PinterestShareButton",eg(function(N,I){R("https://api.pinterest.com/v1/urls/count.json"+Q({url:N}),(N,T)=>{I(T?T.count:void 0)})}),(0,D.forwardRef)((N,I)=>{var T=N,{title:D}=T,M=G(T,["title"]);return(0,P.jsx)(ei,q(W({},M),{forwardedRef:I,networkName:"pocket",networkLink:eC,opts:{title:D},windowHeight:500,windowWidth:500}))}).displayName="PocketShareButton",(0,D.forwardRef)((N,I)=>{var T=N,{title:D}=T,M=G(T,["title"]);return(0,P.jsx)(ei,q(W({},M),{forwardedRef:I,networkName:"reddit",networkLink:ej,opts:{title:D},windowHeight:460,windowPosition:"windowCenter",windowWidth:660}))}).displayName="RedditShareButton",(0,D.forwardRef)((N,I)=>{var T=N,{title:D}=T,M=G(T,["title"]);return(0,P.jsx)(ei,q(W({},M),{forwardedRef:I,networkName:"gab",networkLink:eO,opts:{title:D},windowHeight:640,windowPosition:"windowCenter",windowWidth:660}))}).displayName="GabShareButton",eg(function(N,I){R(`https://www.reddit.com/api/info.json?limit=1&url=${N}`,{param:"jsonp"},(N,T)=>{I(!N&&T&&T.data&&T.data.children.length>0&&T.data.children[0].data.score?T.data.children[0].data.score:void 0)})}),(0,D.forwardRef)((N,I)=>{var T=N,{title:D}=T,M=G(T,["title"]);return(0,P.jsx)(ei,q(W({},M),{forwardedRef:I,networkName:"telegram",networkLink:eN,opts:{title:D},windowHeight:400,windowWidth:550}))}).displayName="TelegramShareButton",(0,D.forwardRef)((N,I)=>{var T=N,{hashtags:D,related:M,title:R,via:L}=T,$=G(T,["hashtags","related","title","via"]);return(0,P.jsx)(ei,q(W({},$),{forwardedRef:I,networkName:"threads",networkLink:eI,opts:{title:R},windowHeight:600,windowWidth:550}))}).displayName="ThreadsShareButton",(0,D.forwardRef)((N,I)=>{var T=N,{caption:D,posttype:M,tags:R,title:L}=T,$=G(T,["caption","posttype","tags","title"]);return(0,P.jsx)(ei,q(W({},$),{forwardedRef:I,networkName:"tumblr",networkLink:eT,opts:{title:L,tags:(R||[]).join(","),caption:D,posttype:M||"link"},windowHeight:460,windowWidth:660}))}).displayName="TumblrShareButton",eg(function(N,I){return R("https://api.tumblr.com/v2/share/stats"+Q({url:N}),(N,T)=>{I(!N&&T&&T.response?T.response.note_count:void 0)})});let eD=(0,D.forwardRef)((N,I)=>{var T=N,{hashtags:D,related:M,title:R,via:L}=T,$=G(T,["hashtags","related","title","via"]);return(0,P.jsx)(ei,q(W({},$),{forwardedRef:I,networkName:"twitter",networkLink:eP,opts:{hashtags:D,title:R,via:L,related:M},windowHeight:400,windowWidth:550}))});eD.displayName="XShareButton";let eM=(0,D.forwardRef)((N,I)=>(0,P.jsx)(eD,q(W({},N),{ref:I})));function eR(N,{title:I,separator:T}){return J(N,"viber.url"),"viber://forward"+Q({text:I?I+T+N:N})}function eL(N,{title:I,image:T,noParse:P,noVkLinks:D}){return J(N,"vk.url"),"https://vk.com/share.php"+Q({url:N,title:I,image:T,noparse:+!!P,no_vk_links:+!!D})}function e$(N,{title:I,image:T}){return J(N,"weibo.url"),"http://service.weibo.com/share/share.php"+Q({url:N,title:I,pic:T})}function eF(N){return(0,P.jsx)(V,q(W({color:"#25D366"},N),{children:(0,P.jsx)("path",{d:"m42.32286,33.93287c-0.5178,-0.2589 -3.04726,-1.49644 -3.52105,-1.66732c-0.4712,-0.17346 -0.81554,-0.2589 -1.15987,0.2589c-0.34175,0.51004 -1.33075,1.66474 -1.63108,2.00648c-0.30032,0.33658 -0.60064,0.36247 -1.11327,
5800.12945c-0.5178,-0.2589 -2.17994,-0.80259 -4.14759,-2.56312c-1.53269,-1.37217 -2.56312,-3.05503 -2.86603,-3.57283c-0.30033,-0.5178 -0.03366,-0.80259 0.22524,-1.06149c0.23301,-0.23301 0.5178,-0.59547 0.7767,-0.90616c0.25372,-0.31068 0.33657,-0.5178 0.51262,-0.85437c0.17088,-0.36246 0.08544,-0.64725 -0.04402,-0.90615c-0.12945,-0.2589 -1.15987,-2.79613 -1.58964,-3.80584c-0.41424,-1.00971 -0.84142,-0.88027 -1.15987,-0.88027c-0.29773,-0.02588 -0.64208,-0.02588 -0.98382,-0.02588c-0.34693,0 -0.90616,0.12945 -1.37736,0.62136c-0.4712,0.5178 -1.80194,1.76053 -1.80194,4.27186c0,2.51134 1.84596,4.945 2.10227,5.30747c0.2589,0.33657 3.63497,5.51458 8.80262,7.74113c1.23237,0.5178 2.1903,0.82848 2.94111,1.08738c1.23237,0.38836 2.35599,0.33657 3.24402,0.20712c0.99159,-0.15534 3.04985,-1.24272 3.47963,-2.45956c0.44013,-1.21683 0.44013,-2.22654 0.31068,-2.45955c-0.12945,-0.23301 -0.46601,-0.36247 -0.98382,-0.59548m-9.40068,12.84407l-0.02589,0c-3.05503,0 -6.08417,-0.82849 -8.72495,-2.38189l-0.62136,-0.37023l-6.47252,1.68286l1.73463,-6.29129l-0.41424,-0.64725c-1.70875,-2.71846 -2.6149,-5.85116 -2.6149,-9.07706c0,-9.39809 7.68934,-17.06155 17.15993,-17.06155c4.58253,0 8.88029,1.78642 12.11655,5.02268c3.23625,3.21036 5.02267,7.50812 5.02267,12.06476c-0.0078,9.3981 -7.69712,17.06155 -17.14699,17.06155m14.58906,-31.58846c-3.93529,-3.80584 -9.1133,-5.95471 -14.62789,-5.95471c-11.36055,0 -20.60848,9.2065 -20.61625,20.52564c0,3.61684 0.94757,7.14565 2.75211,10.26282l-2.92557,10.63564l10.93337,-2.85309c3.0136,1.63108 6.4052,2.4958 9.85634,2.49839l0.01037,0c11.36574,0 20.61884,-9.2091 20.62403,-20.53082c0,-5.48093 -2.14111,-10.64081 -6.03239,-14.51915"})}))}function eB(N,{title:I,separator:T}){return J(N,"whatsapp.url"),"https://api.whatsapp.com/send"+Q({text:I?I+T+N:N})}eM.displayName="TwitterShareButton",(0,D.forwardRef)((N,I)=>{var T=N,{separator:D,title:M}=T,R=G(T,["separator","title"]);return(0,P.jsx)(ei,q(W({},R),{forwardedRef:I,networkName:"viber",networkLink:eR,opts:{title:M,separator:D||" "},windowHeight:460,windowWidth:660}))}).displayName="ViberShareButton",(0,D.forwardRef)((N,I)=>{var T=N,{image:D,noParse:M,noVkLinks:R,title:L}=T,$=G(T,["image","noParse","noVkLinks","title"]);return(0,P.jsx)(ei,q(W({},$),{forwardedRef:I,networkName:"vk",networkLink:eL,opts:{title:L,image:D,noParse:M,noVkLinks:R},windowHeight:460,windowWidth:660}))}).displayName="VKShareButton",eg(function(N,I){window.VK||(window.VK={}),window.VK.Share={count:(N,I)=>{var T,P;return null==(P=null==(T=window.VK.callbacks)?void 0:T[N])?void 0:P.call(T,I)}},window.VK.callbacks=[];let T="https://vk.com/share.php",P=window.VK.callbacks.length;return window.VK.callbacks.push(I),R(T+Q({act:"count",index:P,url:N}))}),(0,D.forwardRef)((N,I)=>{var T=N,{image:D,title:M}=T,R=G(T,["image","title"]);return(0,P.jsx)(ei,q(W({},R),{forwardedRef:I,networkName:"weibo",networkLink:e$,opts:{title:M,image:D},windowHeight:550,windowPosition:"screenCenter",windowWidth:660}))}).displayName="WeiboShareButton";let eU=(0,D.forwardRef)((N,I)=>{var T=N,{separator:D,title:M}=T,R=G(T,["separator","title"]);return(0,P.jsx)(ei,q(W({},R),{forwardedRef:I,networkName:"whatsapp",networkLink:eB,opts:{title:M,separator:D||" "},windowHeight:400,windowWidth:550}))});function eH(N,{quote:I,hashtag:T}){return J(N,"workplace.url"),"https://work.facebook.com/sharer.php"+Q({u:N,quote:I,hashtag:T})}function ez(N){return(0,P.jsx)(V,q(W({color:"#000000"},N),{children:(0,P.jsx)("path",{d:"M 41.116 18.375 h 4.962 l -10.8405 12.39 l 12.753 16.86 H 38.005 l -7.821 -10.2255 L 21.235 47.625 H 16.27 l 11.595 -13.2525 L 15.631 18.375 H 25.87 l 7.0695 9.3465 z m -1.7415 26.28 h 2.7495 L 24.376 21.189 H 21.4255 z"})}))}eU.displayName="WhatsappShareButton",(0,D.forwardRef)((N,I)=>{var T=N,{hashtag:D,quote:M}=T,R=G(T,["hashtag","quote"]);return(0,P.jsx)(ei,q(W({},R),{forwardedRef:I,networkName:"workplace",networkLink:eH,opts:{quote:M,hashtag:D},windowHeight:400,windowWidth:550}))}).displayName="WorkplaceShareButton"},29e3:(N,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0})},29005:N=>{let I=/^\d+$/;function T(N){if(N.includes("://"))return!0;let T=N.replace(/(\/|\?)/g,"#").split("#")[0];if(T.includes(":")){let N=T.indexOf(":"),P=T.slice(N+1);if(!I.test(P))return!0}return!1}function P(N){if(!N.includes("@"))return!1;let I=N.split("@"),T=I[I.length-1];return!(T.includes(":")||T.includes("/")||T.includes("?"))}N.exports=function(N){let I;if("string"!=typeof N)throw TypeError("input must be a string");return(I=T(N)?N:P(N)?`acct:${N}`:`https://${N}`).split("#")[0]}},29044:(N,I)=>{"use strict";var T="function"==typeof Symbol&&Symbol.for,P=T?Symbol.for("react.element"):60103,D=T?Symbol.for("react.portal"):60106,M=T?Symbol.for("react.fragment"):60107,R=T?Symbol.for("react.strict_mode"):60108,L=T?Symbol.for("react.profiler"):60114,$=T?Symbol.for("react.provider"):60109,F=T?Symbol.for("react.context"):60110,B=T?Symbol.for("react.async_mode"):60111,U=T?Symbol.for("react.concurrent_mode"):60111,H=T?Symbol.for("react.forward_ref"):60112,z=T?Symbol.for("react.suspense"):60113,W=T?Symbol.for("react.suspense_list"):60120,q=T?Symbol.for("react.memo"):60115,G=T?Symbol.for("react.lazy"):60116,K=T?Symbol.for("react.block"):60121,V=T?Symbol.for("react.fundamental"):60117,Y=T?Symbol.for("react.responder"):60118,J=T?Symbol.for("react.scope"):60119;
580function Q(N){if("object"==typeof N&&null!==N){var I=N.$$typeof;switch(I){case P:switch(N=N.type){case B:case U:case M:case L:case R:case z:return N;default:switch(N=N&&N.$$typeof){case F:case H:case G:case q:case $:return N;default:return I}}case D:return I}}}function Z(N){return Q(N)===U}I.AsyncMode=B,I.ConcurrentMode=U,I.ContextConsumer=F,I.ContextProvider=$,I.Element=P,I.ForwardRef=H,I.Fragment=M,I.Lazy=G,I.Memo=q,I.Portal=D,I.Profiler=L,I.StrictMode=R,I.Suspense=z,I.isAsyncMode=function(N){return Z(N)||Q(N)===B},I.isConcurrentMode=Z,I.isContextConsumer=function(N){return Q(N)===F},I.isContextProvider=function(N){return Q(N)===$},I.isElement=function(N){return"object"==typeof N&&null!==N&&N.$$typeof===P},I.isForwardRef=function(N){return Q(N)===H},I.isFragment=function(N){return Q(N)===M},I.isLazy=function(N){return Q(N)===G},I.isMemo=function(N){return Q(N)===q},I.isPortal=function(N){return Q(N)===D},I.isProfiler=function(N){return Q(N)===L},I.isStrictMode=function(N){return Q(N)===R},I.isSuspense=function(N){return Q(N)===z},I.isValidElementType=function(N){return"string"==typeof N||"function"==typeof N||N===M||N===U||N===L||N===R||N===z||N===W||"object"==typeof N&&null!==N&&(N.$$typeof===G||N.$$typeof===q||N.$$typeof===$||N.$$typeof===F||N.$$typeof===H||N.$$typeof===V||N.$$typeof===Y||N.$$typeof===J||N.$$typeof===K)},I.typeOf=Q},29087:(N,I,T)=>{"use strict";T.d(I,{R:()=>M});var P=T(41655),D=T(25680);let M=(N=[])=>{let I=I=>!!P.h||N.includes(I),T=()=>{window.OneTrust.ToggleInfoDisplay()};return{hasGoogleMapCookieConsent:I(D.C.Necessary)&&I(D.C.Functional),hasVideoCookieConsent:I(D.C.Necessary)&&I(D.C.Functional),hasLocaleCookieConsent:I(D.C.Necessary)&&I(D.C.Functional),handleChangeCookieSettings:T}}},29164:(N,I,T)=>{"use strict";T.r(I),T.d(I,{BlogOverviewResultCardList:()=>L});var P=T(37876),D=T(70208),M=T(63366),R=T(82868);let L=({results:N})=>N?.length>0?(0,P.jsx)(M.az,{className:"flex-1 flex-row items-center justify-center","data-testid":R.Qa.TestIds.BlogOverviewComponent.results,children:(0,P.jsx)(M.az,{className:"mt-8 grid grid-flow-row-dense sm:grid-cols-2 sm:gap-8 md:grid-cols-3 lg:grid-cols-4",children:N.map((I,T)=>(0,P.jsx)(D.BlogOverviewResultCard,{result:I,lastCard:T===N.length-1},I.blogHeroTitle.value))})}):null},29338:(N,I,T)=>{let P=T(3305),{format:D}=T(68994),M=T(85418),{RPError:R,OPError:L}=T(79391),{BaseClient:$}=T(47099),{random:F,codeChallenge:B}=T(16436),U=T(86355),{resolveResponseType:H,resolveRedirectUri:z}=T(78425);function W(N,I,T={}){N?this.error(N):I?this.success(I,T):this.fail(T)}function q({client:N,params:I={},passReqToCallback:T=!1,sessionKey:D,usePKCE:R=!0,extras:L={}}={},F){if(!(N instanceof $))throw TypeError("client must be an instance of openid-client Client");if("function"!=typeof F)throw TypeError("verify callback must be a function");if(!N.issuer||!N.issuer.issuer)throw TypeError("client must have an issuer with an identifier");if(this._client=N,this._issuer=N.issuer,this._verify=F,this._passReqToCallback=T,this._usePKCE=R,this._key=D||`oidc:${P.parse(this._issuer.issuer).hostname}`,this._params=M(I),delete this._params.state,delete this._params.nonce,this._extras=M(L),this._params.response_type||(this._params.response_type=H.call(N)),this._params.redirect_uri||(this._params.redirect_uri=z.call(N)),this._params.scope||(this._params.scope="openid"),!0===this._usePKCE){let N=!!Array.isArray(this._issuer.code_challenge_methods_supported)&&this._issuer.code_challenge_methods_supported;if(N&&N.includes("S256"))this._usePKCE="S256";else if(N&&N.includes("plain"))this._usePKCE="plain";else if(N)throw TypeError("neither code_challenge_method supported by the client is supported by the issuer");else this._usePKCE="S256"}else if("string"==typeof this._usePKCE&&!["plain","S256"].includes(this._usePKCE))throw TypeError(`${this._usePKCE} is not valid/implemented PKCE code_challenge_method`);this.name=P.parse(N.issuer.issuer).hostname}q.prototype.authenticate=function(N,I){(async()=>{let T=this._client;if(!N.session)throw TypeError("authentication requires session support");let P=T.callbackParams(N),M=this._key,{0:L,length:$}=Object.keys(P);if(0===$||1===$&&"iss"===L){let P={state:F(),...this._params,...I};if(!P.nonce&&P.response_type.includes("id_token")&&(P.nonce=F()),N.session[M]=U(P,"nonce","state","max_age","response_type"),this._usePKCE&&P.response_type.includes("code")){let I=F();switch(N.session[M].code_verifier=I,this._usePKCE){case"S256":P.code_challenge=
580B(I),P.code_challenge_method="S256";break;case"plain":P.code_challenge=I}}this.redirect(T.authorizationUrl(P));return}let H=N.session[M];if(0===Object.keys(H||{}).length)throw Error(D('did not find expected authorization request details in session, req.session["%s"] is %j',M,H));let{state:z,nonce:q,max_age:G,code_verifier:K,response_type:V}=H;try{delete N.session[M]}catch(N){}let Y={redirect_uri:this._params.redirect_uri,...I},J={state:z,nonce:q,max_age:G,code_verifier:K,response_type:V},Q=await T.callback(Y.redirect_uri,P,J,this._extras),Z=this._passReqToCallback,X=this._verify.length>(Z?3:2)&&T.issuer.userinfo_endpoint,ee=[Q,W.bind(this)];if(X){if(!Q.access_token)throw new R({message:"expected access_token to be returned when asking for userinfo in verify callback",tokenset:Q});let N=await T.userinfo(Q);ee.splice(1,0,N)}Z&&ee.unshift(N),this._verify(...ee)})().catch(N=>{N instanceof L&&"server_error"!==N.error&&!N.error.startsWith("invalid")||N instanceof R?this.fail(N):this.error(N)})},N.exports=q},29454:(N,I,T)=>{"use strict";function P(N){for(var I=1;I<arguments.length;I++){var T=arguments[I];for(var P in T)"__proto__"!==P&&(N[P]=T[P])}return N}function D(N,I){function T(T,D,M){if("u">typeof document){M=P({},I,M),"number"==typeof M.expires&&(M.expires=new Date(Date.now()+864e5*M.expires)),M.expires&&(M.expires=M.expires.toUTCString()),T=encodeURIComponent(T).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var R="";for(var L in M)M[L]&&(R+="; "+L,!0!==M[L]&&(R+="="+M[L].split(";")[0]));return document.cookie=T+"="+N.write(D,T)+R}}return Object.create({set:T,get:function(I){if("u">typeof document&&(!arguments.length||I)){for(var T=document.cookie?document.cookie.split("; "):[],P={},D=0;D<T.length;D++){var M=T[D].split("="),R=M.slice(1).join("=");try{var L=decodeURIComponent(M[0]);if(L in P||(P[L]=N.read(R,L)),I===L)break}catch(N){}}return I?P[I]:P}},remove:function(N,I){T(N,"",P({},I,{expires:-1}))},withAttributes:function(N){return D(this.converter,P({},this.attributes,N))},withConverter:function(N){return D(P({},this.converter,N),this.attributes)}},{attributes:{value:Object.freeze(I)},converter:{value:Object.freeze(N)}})}T.d(I,{A:()=>M});var M=D({read:function(N){return'"'===N[0]&&(N=N.slice(1,-1)),N.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(N){return encodeURIComponent(N).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})},29463:(N,I,T)=>{"use strict";T.r(I),T.d(I,{filterSubMenuItems:()=>U,isDesktopNavItemActive:()=>G,isMobileNavItemActive:()=>q,isNavigationGroup:()=>$,resolveBorderColorClass:()=>L,resolveFlatMenuItems:()=>B,resolveMobileSidebarItems:()=>H,resolveNavHref:()=>z,resolveSortedNavItems:()=>F});var P=T(36379),D=T(41655),M=T(4006),R=T(35062);let L=N=>(0,M.H9)((0,P.Qh)(N),"border-","border-brunel-yellow"),$=N=>"groupTitle"in N,F=(N,I)=>(N?.filter(N=>$(N)||(0,R.F)(N.roleBasedAuthorizationsRoles?.jsonValue,I))??[]).sort((N,I)=>{let T=N=>!$(N)&&N.menuItemLink?.link.value.linktype==="external";return Number(T(N))-Number(T(I))}),B=N=>N.flatMap(N=>$(N)?N.submenu.results:[N]),U=(N,I)=>N.submenu.results.filter(N=>(0,R.F)(N.roleBasedAuthorizationsRoles?.jsonValue,I))??[],H=(N,I)=>N.reduce((N,T,P)=>{if($(T)){let D=T.submenu.results.filter(N=>!I.has(N));return D.length&&N.push({item:{...T,submenu:{results:D}},originalIndex:P}),N}return I.has(T)||N.push({item:T,originalIndex:P}),N},[]),z=N=>D.H.isProd?N.replace(/(\/\w{2}-\w{2})?\/mybrunel/,"/"):N,W=/^\/[a-z]{2}(?:-[a-z]{2})?(?=\/|$)/,q=(N,I)=>N===I.replace(W,"")||N.startsWith(I),G=(N,I)=>N===I.replace(W,"")},29504:(N,I,T)=>{"use strict";T.r(I),T.d(I,{default:()=>R});var P=T(37876),D=T(89099),M=T(14232);function R(){let[N,I]=(0,M.useState)(!1),T=(0,D.useRouter)();return((0,M.useEffect)(()=>{let N=null,P=()=>N=setTimeout(()=>I(!0),250),D=()=>{N&&clearTimeout(N),I(!1)};return T.events.on("routeChangeStart",P),T.events.on("routeChangeComplete",D),T.events.on("routeChangeError",D),()=>{T.events.off("routeChangeStart",P),T.events.off("routeChangeComplete",D),T.events.off("routeChangeError",D),N&&clearTimeout(N)}},[T.events]),N)?(0,P.jsx)("div",{className:"fixed inset-0 z-100 flex size-full items-center justify-center bg-[rgba(0,0,0,.5)] text-white",children:(0,P.jsx)("div",{className:"loading mx-4 mb-2 size-12 loading-lg bg-brunel-yellow loading-spinner"})}):null}},29511:(N,I,T)=>{"use strict";T.r(I),T.d(I,{applyHeroFallbackImages:()=>L,buildInitialResultList:()=>M,idsMissingPreviewImage:()=>R});var P=T(92594),D=T(18571);let M=N=>N?.map(N=>{let I={id:N.id,name:N.name,url:{path:N.url},displayName:N.displayName,previewTitle:N.fields?.previewTitle,previewText:N.fields?.previewText,previewIntro:N.fields?.previewIntro,previewImage:N.fields?.previewImage,metaImage:N.fields?.metaImage,heroImage:N.fields?.heroImage,caseStudyHeroPublicationDate:N.fields?.caseStudyHeroPublicationDate,caseStudyCategory:{}};return(0,P.G_)(I,N),I})??[],R=N=>N.filter(N=>!(0,D.ZS)(N.previewImage)).map(N=>N.id).filter(N=>!!N),L=(N,I)=>N.map(N=>{if((0,D.ZS)(N.previewImage)||N.heroImage)return N;let T=(N.id?I.byId.get((0,D.mf)(N.id)):void 0)??I.byName.get(N.name.toLowerCase());return T?{...N,heroImage:T}:N})},29563:N=>{N.exports=function(N){return N&&N.__esModule?N:{default:N}},N.exports.__esModule=!0,N.exports.default=N.exports},30463:(N,I,T)=>{"use strict";T.d(I,{A:()=>Q});var P=T(47804),D=T(50063),M=T(72850);let R="SITECORE_CLI_MODE";var L=T(99742);let{UU:$}=P,F=N=>{let I=N.CSDK_PUBLIC_SITECORE_EDGE_PLATFORM_HOSTNAME||N[M.tM];return{api:{edge:{contextId:N.SITECORE_EDGE_CONTEXT_ID||"",clientContextId:N.SITECORE_EDGE_CLIENT_CONTEXT_ID||N.CSDK_PUBLIC_SITECORE_EDGE_CONTEXT_ID||"",edgeUrl:(0,M.Hk)(I)},local:{apiKey:N.SITECORE_API_KEY||N.CSDK_PUBLIC_SITECORE_API_KEY||N.NEXT_PUBLIC_SITECORE_API_KEY||"",apiHost:N.SITECORE_API_HOST||N.CSDK_PUBLIC_SITECORE_API_HOST||N.NEXT_PUBLIC_SITECORE_API_HOST||"",path:"/sitecore/api/gra
580ph/edge"}},editingSecret:N.SITECORE_EDITING_SECRET||"editing-secret-missing",retries:{count:3,retryStrategy:new D.H({statusCodes:[429,502,503,504,520,521,522,523,524]})},redirects:{enabled:"development"!==N.NODE_ENV,locales:["en"]},multisite:{enabled:!0,useCookieResolution:()=>!1},personalize:{enabled:"development"!==N.NODE_ENV,edgeTimeout:parseInt(N.PERSONALIZE_MIDDLEWARE_EDGE_TIMEOUT||"",10)||400,cdpTimeout:parseInt(N.PERSONALIZE_MIDDLEWARE_CDP_TIMEOUT||"",10)||400,scope:N.SITECORE_PERSONALIZE_SCOPE||N.CSDK_PUBLIC_PERSONALIZE_SCOPE||N.NEXT_PUBLIC_PERSONALIZE_SCOPE||"",channel:"WEB",currency:"USD"},defaultSite:N.SITECORE_DEFAULT_SITE||N.CSDK_PUBLIC_SITECORE_DEFAULT_SITE||N.CSDK_PUBLIC_DEFAULT_SITE||"",defaultLanguage:N.SITECORE_DEFAULT_LANGUAGE||N.CSDK_PUBLIC_DEFAULT_LANGUAGE||"en",layout:{formatLayoutQuery:null},dictionary:{caching:{enabled:!0,timeout:60}},rewriteMediaUrls:!1,disableCodeGeneration:!1}};function B(N,I){if(!I)return N;let T=Object.assign({},N);for(let P in I){if(!Object.prototype.hasOwnProperty.call(I,P))continue;let D=P,M=N[D],R=I[D];void 0!==R&&""!==R&&("object"!=typeof R||null===R||Array.isArray(R)||Object.getPrototypeOf(R)!==Object.prototype?T[D]=R:T[D]=B(M,R))}return T}let U=(N,I)=>{let T=B(N,I);return(Number.isNaN(T.personalize.cdpTimeout)||!T.personalize.cdpTimeout)&&(T.personalize.cdpTimeout=N.personalize.cdpTimeout),(Number.isNaN(T.personalize.edgeTimeout)||!T.personalize.edgeTimeout)&&(T.personalize.edgeTimeout=N.personalize.edgeTimeout),T.api.edge.edgeUrl=(0,M.Hk)(T.api.edge.edgeUrl),T},H=N=>{var I,T,P,D,M,R,L,F;let B="u">typeof window,U=!!(null==(T=null==(I=N.api)?void 0:I.edge)?void 0:T.contextId),H=(null==(D=null==(P=N.api)?void 0:P.edge)||D.clientContextId,!!(null==(R=null==(M=N.api)?void 0:M.local)?void 0:R.apiHost)&&!!(null==(F=null==(L=N.api)?void 0:L.local)?void 0:F.apiKey));if(!B){if(!U&&!H)throw Error($.MV_007);return}},z={"api.edge.contextId":H,"api.local.apiKey":H},W=N=>{let I=new Set,T=(P,D="")=>new Proxy(P,{get(P,M,R){if("symbol"==typeof M)return Reflect.get(P,M,R);let L=D?`${D}.${M}`:M,$=Reflect.get(P,M,R);return(L in z&&!I.has(L)&&((0,z[L])(N),I.add(L)),"object"!=typeof $||null===$||Array.isArray($))?$:T($,L)}});return T(N)},q=(N={},I)=>{let T=I||(void 0!==L?L.env:{}),P=U(F(T),N);return(null==T?void 0:T[R])==="true"?W(P):(H(P),P)};var G=T(99742);let K="NEXT_PUBLIC_SITECORE_EDGE_PLATFORM_HOSTNAME",V=N=>{var I,T,P,D,R,L,$,F,B,U,H,z,W,q,V,Y,J;return Object.assign(Object.assign({},N),{api:Object.assign(Object.assign({},null==N?void 0:N.api),{edge:Object.assign(Object.assign({},null==(I=null==N?void 0:N.api)?void 0:I.edge),{contextId:(null==(P=null==(T=null==N?void 0:N.api)?void 0:T.edge)?void 0:P.contextId)||"",clientContextId:(null==(R=null==(D=null==N?void 0:N.api)?void 0:D.edge)?void 0:R.clientContextId)||"3QIzC5HcWW11pwqrwHFrBF",edgeUrl:(0,M.Hk)(null!=(F=null==($=null==(L=null==N?void 0:N.api)?void 0:L.edge)?void 0:$.edgeUrl)?F:G.env[K])}),local:Object.assign(Object.assign({},null==(B=null==N?void 0:N.api)?void 0:B.local),{apiKey:(null==(H=null==(U=null==N?void 0:N.api)?void 0:U.local)?void 0:H.apiKey)||G.env.NEXT_PUBLIC_SITECORE_API_KEY||"",apiHost:(null==(W=null==(z=null==N?void 0:N.api)?void 0:z.local)?void 0:W.apiHost)||G.env.NEXT_PUBLIC_SITECORE_API_HOST||""})}),defaultSite:(null==N?void 0:N.defaultSite)||"US",defaultLanguage:(null==N?void 0:N.defaultLanguage)||"default",multisite:Object.assign(Object.assign({},null==N?void 0:N.multisite),{useCookieResolution:null!=(V=null==(q=null==N?void 0:N.multisite)?void 0:q.useCookieResolution)?V:()=>"preview"===G.env.VERCEL_ENV}),personalize:Object.assign(Object.assign({},null==N?void 0:N.personalize),{scope:(null==(Y=null==N?void 0:N.personalize)?void 0:Y.scope)||G.env.NEXT_PUBLIC_PERSONALIZE_SCOPE}),generateStaticPaths:void 0!==G.env.GENERATE_STATIC_PATHS?"true"===G.env.GENERATE_STATIC_PATHS.toLowerCase():null==(J=null==N?void 0:N.generateStaticPaths)||J,sitecoreInternalEditingHostUrl:(null==N?void 0:N.sitecoreInternalEditingHostUrl)||G.env.SITECORE_INTERNAL_EDITING_HOST_URL})},Y=N=>q(V(N));var J=T(99742);let Q=Y({api:{edge:{contextId:J.env.SITECORE_EDGE_CONTEXT_ID||"3QIzC5HcWW11pwqrwHFrB
580F",clientContextId:"3QIzC5HcWW11pwqrwHFrBF",edgeUrl:J.env.NEXT_PUBLIC_SITECORE_EDGE_PLATFORM_HOSTNAME||J.env.SITECORE_EDGE_PLATFORM_HOSTNAME},local:{apiKey:J.env.NEXT_PUBLIC_SITECORE_API_KEY||"",apiHost:J.env.NEXT_PUBLIC_SITECORE_API_HOST||""}},defaultSite:"US",defaultLanguage:"default".replace("default","en")||0,editingSecret:J.env.SITECORE_EDITING_SECRET,redirects:{enabled:!0,locales:J.env.LANGUAGES?J.env.LANGUAGES.replace("default,","").split(","):["en"]},retries:{count:5}})},30866:(N,I,T)=>{"use strict";T.d(I,{b:()=>L});var P=T(37876),D=T(28823),M=T(23649),R=T(63366);let L=(N,I,T="")=>({email:(0,P.jsx)(D.Ot,{className:"absolute inset-0 flex items-center justify-center",subject:T,url:I,children:(0,P.jsx)(R.In,{name:"socialshare-email",color:"brunel-dark-grey"})}),facebook:(0,P.jsx)(D.uI,{className:"absolute inset-0 flex",title:T,url:I,children:(0,P.jsx)(R.In,{name:"socialshare-facebook",color:"brunel-dark-grey",socialShare:"center"})}),x:(0,P.jsx)(D.r6,{className:"absolute inset-0 flex",title:T,url:I,children:(0,P.jsx)(D.uv,{iconFillC
580olor:"brunel-dark-grey",className:"x-social-icon h-full"})}),whatsapp:(0,P.jsx)(D.Kz,{className:"absolute inset-0 flex",title:T,url:I,children:(0,P.jsx)(R.In,{name:"socialshare-whatsapp",color:"brunel-dark-grey",socialShare:"center"})}),linkedin:(0,P.jsx)(D.wk,{className:"absolute inset-0 flex",title:T,url:I,children:(0,P.jsx)(R.In,{name:"socialshare-linkedin",color:"brunel-dark-grey",socialShare:"center"})}),xing:(0,P.jsx)(M.Button,{iconClassNames:"icon-only",variant:"tertiary",linkField:{value:{href:`https://www.xing.com/spi/shares/new?url=${I}`,target:"_blank"}},className:"absolute inset-0 flex size-full items-center justify-center p-0",iconColor:"brunel-dark-grey",iconName:"socialshare-xing"})})[N]},31059:(N,I,T)=>{var P=T(82909),D=P.Buffer;function M(N,I){for(var T in N)I[T]=N[T]}function R(N,I,T){return D(N,I,T)}D.from&&D.alloc&&D.allocUnsafe&&D.allocUnsafeSlow?N.exports=P:(M(P,I),I.Buffer=R),M(D,R),R.from=function(N,I,T){if("number"==typeof N)throw TypeError("Argument must not be a number");return D(N,I,T)},R.alloc=function(N,I,T){if("number"!=typeof N)throw TypeError("Argument must be a number");var P=D(N);return void 0!==I?"string"==typeof T?P.fill(I,T):P.fill(I):P.fill(0),P},R.allocUnsafe=function(N){if("number"!=typeof N)throw TypeError("Argument must be a number");return D(N)},R.allocUnsafeSlow=function(N){if("number"!=typeof N)throw TypeError("Argument must be a number");return P.SlowBuffer(N)}},31365:(N,I,T)=>{var P=T(12883).default,D=T(78212);N.exports=function(N){var I=D(N,"string");return"symbol"==P(I)?I:I+""},N.exports.__esModule=!0,N.exports.default=N.exports},31529:(N,I,T)=>{"use strict";T.r(I),T.d(I,{useVacancyHero:()=>G});var P=T(32351),D=T(85609),M=T(2650),R=T(14232),L=T(67881),$=T(65212),F=T(60409),B=T(98566),U=T(75636),H=T(33076),z=T(66419);let W=328,q=480,G=({fields:N,vacancyData:I,vacancyInfo:T,context:G})=>{let{page:K}=(0,D.M5)(),V=(0,M.s9)().table(G?.locale??F.Xn),[Y,J]=(0,R.useState)({src:"",alt:""}),[Q,Z]=(0,R.useState)(void 0),X=G?.locale??F.Xn,ee=K.mode.isEditing,et=!ee&&(0,z.Ho)(I?.endDate),er=N?.data?.datasource,en=er?.children?.results??[],ea=er?.vacancyFieldsToDisplay?.jsonValue,ei=(0,R.useMemo)(()=>(0,P.resolveVacancyFields)(ea),[ea]),eo=window.location.host,es=(0,B.BB)(),el=es.getParam("seek-prefill-id",{addToQuery:!0})??"",ec=es.getParam("seek-token",{addToQuery:!0})??"",eu=(0,H.U)(K.layout.sitecore.route?.fields?.applyJobPage)||er?.applyJobPage?.jsonValue?.value?.href||"",{applicationUrl:ed,vacancyQueryString:ef}=(0,P.resolveApplicationUrl)(I,eo,X,eu,el,ec);(0,R.useLayoutEffect)(()=>{let{heroImage:N,heroImageFocalPoint:T}=(0,P.resolveHeroImageMatch)(en,I?.branche,er?.defaultHeroImage,er?.heroImageFocalPoint);J(N),Z(T)},[]);let[eh,ep]=(0,R.useState)(!1);(0,R.useLayoutEffect)(()=>{let N=()=>{ep((window.scrollY||window.pageYOffset)>W)},I=window.innerWidth>=q,T=()=>{let N=window.innerWidth>=q;N!==I&&(I=N,ep(!!N&&(window.scrollY||window.pageYOffset)>W))};return N(),window.addEventListener("scroll",N),window.addEventListener("resize",T),()=>{window.removeEventListener("scroll",N),window.removeEventListener("resize",T)}},[]);let em=(0,R.useMemo)(()=>(0,z.wL)(I?.hoursPerWeek,V),[I?.hoursPerWeek,V]),eg=(0,R.useMemo)(()=>(0,U.HC)(T?.salary),[T?.salary]),ey=(0,R.useMemo)(()=>(0,z.ZN)(T?.totalYearsOfExperience??"",V),[T?.totalYearsOfExperience,V]),eb=(0,R.useMemo)(()=>(0,P.resolveEducationLevelText)(V,T?.educationLevel),[T?.educationLevel,V]),ev=(0,R.useMemo)(()=>(0,P.resolveEndDateText)(V,T?.endDate,X),[T?.endDate,V,X]),ew=(0,R.useMemo)(()=>()=>{L.q.vacancyDetailPage.vacancyDetailPageApplyButton({...I,vacancyWorkHours:em,applicationUrl:ed??""},X).catch(()=>{$.A.piwik("Failed to push vacancyDetailPageApplyButton to the dataLayer")})},[I,em,ed,X]),{showLocation:ex,showExperience:eA,showEducation:eE,showOffice:eS,showEndDate:e_}=(0,P.resolveFieldVisibility)(et,ei,ey,T),ek=(0,R.useMemo)(()=>(0,P.resolveClockInfoText)(et,ei,em,eg),[et,ei,em,eg]);return{dictionary:V,locale:X,isEditing:ee,isExpired:et,heroImage:Y,heroImageFocalPoint:Q,isSticky:eh,applicationUrl:ed,vacancyQueryString:ef,workingHours:em,totalYearsOfExperience:ey,educationLevel:eb,endDate:ev,handleApplyNowClick:ew,showLocation:ex,showExperience:eA,showEducation:eE,showOffice:eS,showEndDate:e_,clockInfoText:ek}}},31611:(N,I,T)=>{"use strict";T.d(I,{cs:()=>ef});let P={lessThanXSeconds:{one:{regular:"m\xe9nÄ než 1 sekunda",past:"pÅed m\xe9nÄ než 1 sekundou",future:"za m\xe9nÄ než 1 sekundu"},few:{regular:"m\xe9nÄ než {{count}} sekundy",past:"pÅed m\xe9nÄ než {{count}} sekundami",future:"za m\xe9nÄ než {{count}} sekundy"},many:{regular:"m\xe9nÄ než {{count}} sekund",past:"pÅed m\xe9nÄ než {{count}} sekundami",future:"za m\xe9nÄ než {{count}} sekund"}},xSeconds:{one:{regular:"1 sekunda",past:"pÅed 1 sekundou",future:"za 1 sekundu"},few:{regular:"{{count}} sekundy",past:"pÅed {{count}} sekundami",future:"za {{count}} sekundy"},many:{regular:"{{count}} sekund",past:"pÅed {{count}} sekundami",future:"za {{count}} sekund"}},halfAMinute:{type:"other",other:{regular:"půl minuty",past:"pÅed půl minutou",future:"za půl minuty"}},lessThanXMinutes:{one:{regular:"m\xe9nÄ než 1 minuta",past:"pÅed m\xe9nÄ než 1 minutou",future:"za m\xe9nÄ než 1 minutu"},few:{regular:"m\xe9nÄ než {{count}} minuty",past:"pÅed m\xe9nÄ než {{count}} minutami",future:"za m\xe9nÄ než {{count}} minuty"},many:{regular:"m\xe9nÄ než {{count}} minut",past:"pÅed m\xe9nÄ než {{count}} minutami",future:"za m\xe9nÄ než {{count}} minut"}},xMinutes:{one:{regular:"1 minuta",past:"pÅed 1 minutou",future:"za 1 minutu"},few:{regular:"{{count}} minuty",past:"pÅed {{count}} minutami",future:"za {{count}} minuty"},many:{regular:"{{count}} minut",past:"pÅed {{count}} minutami",future:"za {{count}} minut"}},aboutXHours:{one:{regular:"pÅibližnÄ 1 hodina",past:"pÅibližnÄ pÅed 1 hodinou",future:"pÅibližnÄ za 1 hodinu"},few:{regular:"pÅibližnÄ {{count}} hodiny",past:"pÅibližnÄ pÅed {{count}} hodinami",future:"pÅibližnÄ za {{count}} hodiny"},many:{regular:"pÅibližnÄ {{count}} hodin",past:"pÅibližnÄ pÅed {{count}} hodinami",future:"pÅibližnÄ za {{count}} hodin"}},xHours:{one:{regular:"1 hodina",past:"pÅed 1 hodinou",future:"za 1 hodinu"},few:{regular:"{{count}} hodiny",past:"pÅed {{count}} hodinami",future:"za {{count}} hodiny"},many:{regular:"{{count}} hodin",past:"pÅed {{count}} hodinami",future:"za {{count}} hodin"}},xDays:{one:{regular:"1 den",past:"pÅed 1 dnem",future:"za 1 den"},few:{regular:"{{count}} dny",past:"pÅed {{count}} dny",future:"za {{count}} dny"},many:{regular:"{{count}} dn\xed",past:"pÅed {{count}} dny",future:"za {{count}} dn\xed"}},aboutXWeeks:{one:{regular:"pÅibližnÄ 1 t\xfdden",past:"pÅibližnÄ pÅed 1 t\xfddnem",future:"pÅibližnÄ za 1 t\xfdden"},few:{regular:"pÅibližnÄ {{count}} t\xfddny",past:"pÅibližnÄ pÅed {{count}} t\xfddny",future:"pÅibližnÄ za {{count}} t\xfddny"},many:{regular:"pÅibližnÄ {{count}} t\xfddnů",past:"pÅibližnÄ pÅed {{count}} t\xfddny",future:"pÅibližnÄ za {{count}} t\xfddnů"}},xWeeks:{one:{regular:"1 t\xfdden",past:"pÅed 1 t\xfddnem",future:"za 1 t\xfdden"},few:{regular:"{{count}} t\xfddny",past:"pÅed {{count}} t\xfddny",future:"za {{count}} t\xfddny"},many:{regular:"{{count}} t\xfddnů",past:"pÅed {{count}} t\xfddny",future:"za {{count}} t\xfddnů"}},aboutXMonths:{one:{regular:"pÅibližnÄ 1 mÄs\xedc",past:"pÅibližnÄ pÅed 1 mÄs\xedcem",future:"pÅibližnÄ za 1 mÄs\xedc"},few:{regular:"pÅibližnÄ {{count}} mÄs\xedce",past:"pÅibližnÄ pÅed {{count}} mÄs\xedci",future:"pÅibližnÄ za {{count}} mÄs\xedce"},many:{regular:"pÅibližnÄ {{count}} mÄs\xedců",past:"pÅibližnÄ pÅed {{count}} mÄs\xedci",future:"pÅibližnÄ za {{count}} mÄs\xedců"}},xMonths:{one:{regular:"1 mÄs\xedc",past:"pÅed 1 mÄs\xedcem",future:"za 1 mÄs\xedc"},few:{regular:"{{count}} mÄs\xedce",past:"pÅed {{count}} mÄs\xedci",future:"za {{count}} mÄs\xedce"},many:{regular:"{{count}} mÄs\xedců",past:"pÅed {{count}} mÄs\xedci",future:"za {{count}} mÄs\xedců"}},aboutXYears:{one:{regular:"pÅibližnÄ 1 rok",past:"pÅibližnÄ pÅed 1 rokem",future:"pÅibližnÄ za 1 rok"},few:{regular:"pÅibližnÄ {{count}} roky",past:"pÅibližnÄ pÅed {{count}} roky",future:"pÅibližnÄ za {{count}} roky"},many:{regular:"pÅibližnÄ {{count}} roků",past:"pÅibližnÄ pÅed {{count}} roky",future:"pÅibližnÄ za {{count}} roků"}},xYears:{one:{regular:"1 rok",past:"pÅed 1 rokem",future:"za 1 rok"},few:{regular:"{{count}} roky",past:"pÅed {{count}} roky",future:"za {{count}} roky"},many:{regular:"{{count}} roků",past:"pÅed {{count}} roky",future:"za {{count}} roků"}},overXYears:{one:{regular:"v\xedce než 1 rok",past:"pÅed v\xedce než 1 rokem",future:"za v\xedce než 1 rok"},few:{regular:"v\xedce než {{count}} roky",past:"pÅed v\xedce než {{count}} roky",future:"za v\xedce než {{count}} roky"},many:{regular:"v\xedce než {{count}} roků",past:"pÅed v\xedce než {{count}} roky",future:"za v\xedce než {{count}} roků"}},almostXYears:{one:{regular:"skoro 1 rok",past:"skoro pÅed 1 rokem",future:"skoro za 1 rok"},few:{regular:"skoro {{count}} roky",past:"skoro pÅed {{count}} roky",future:"skoro za {{count}} roky"},many:{regular:"skoro {{count}} roků",past:"skoro pÅed {{count}} roky",future:"skoro za {{count}} roků"}}},D=(N,I,T)=>{let D,M,R=P[N];D="other"===R.type?R.other:1===I?R.one:I>1&&I<5?R.few:R.many;let L=T?.addSuffix===!0,$=T?.comparison;return(M=L&&-1===$?D.past:L&&1===$?D.future:D.regular).replace("{{count}}",String(I))};var M=T(71523);let R={full:"EEEE, d. MMMM yyyy",long:"d. MMMM yyyy",medium:"d. M. yyyy",short:"dd.MM.yyyy"},L={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},$={full:"{{date}} 'v' {{time}}",long:"{{date}} 'v' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},F={date:(0,M.k)({formats:R,defaultWidth:"full"}),time:(0,M.k)({formats:L,defaultWidth:"full"}),dateTime:(0,M.k)({formats:$,defaultWidth:"full"})},B=["nedÄli","pondÄl\xed","\xfater\xfd","stÅedu","Ätvrtek","p\xe1tek","sobotu"],U={lastWeek:"'posledn\xed' eeee 've' p",yesterday:"'vÄera v' p",today:"'dnes v' p",tomorrow:"'z\xedtra v' p",nextWeek:N=>"'v "+B[N.getDay()]+" o' p",other:"P"},H=(N,I)=>{let T=U[N];return"function"==typeof T?T(I):T};var z=T(38505);let W={narrow:["pÅ. n. l.","n. l."],abbreviated:["pÅ. n. l.","n. l."],wide:["pÅed naÅ¡\xedm letopoÄtem","naÅ¡eho letopoÄtu"]},q={narrow:["1","2","3","4"],abbreviated:["1. Ätvrtlet\xed","2. Ätvrtlet\xed","3. Ätvrtlet\xed","4. Ätvrtlet\xed"],wide:["1. Ätvrtlet\xed","2. Ätvrtlet\xed","3. Ätvrtlet\xed","4. Ätvrtlet\xed"]},G={narrow:["L","\xda","B","D","K","Ä","Ä","S","Z","Å","L","P"],abbreviated:["led","\xfano","bÅe","dub","kvÄ","Ävn","Ävc","srp","z\xe1Å","Å\xedj","lis","pro"],wide:["leden","\xfanor","bÅezen","duben","kvÄten","Äerven","Äervenec","srpe
580n","z\xe1Å\xed","Å\xedjen","listopad","prosinec"]},K={narrow:["L","\xda","B","D","K","Ä","Ä","S","Z","Å","L","P"],abbreviated:["led","\xfano","bÅe","dub","kvÄ","Ävn","Ävc","srp","z\xe1Å","Å\xedj","lis","pro"],wide:["ledna","\xfanora","bÅezna","dubna","kvÄtna","Äervna","Äervence","srpna","z\xe1Å\xed","Å\xedjna","listopadu","prosince"]},V={narrow:["ne","po","\xfat","st","Ät","p\xe1","so"],short:["ne","po","\xfat","st","Ät","p\xe1","so"],abbreviated:["ned","pon","\xfate","stÅ","Ätv","p\xe1t","sob"],wide:["nedÄle","pondÄl\xed","\xfater\xfd","stÅeda","Ätvrtek","p\xe1tek","sobota"]},Y={narrow:{am:"dop.",pm:"odp.",midnight:"půlnoc",noon:"poledne",morning:"r\xe1no",afternoon:"odpoledne",evening:"veÄer",night:"noc"},abbreviated:{am:"dop.",pm:"odp.",midnight:"půlnoc",noon:"poledne",morning:"r\xe1no",afternoon:"odpoledne",evening:"veÄer",night:"noc"},wide:{am:"dopoledne",pm:"odpoledne",midnight:"půlnoc",noon:"poledne",morning:"r\xe1no",afternoon:"odpoledne",evening:"veÄer",night:"noc"}},J={narrow:{am:"dop.",pm:"odp.",midnight:"půlnoc",noon:"poledne",morning:"r\xe1no",afternoon:"odpoledne",evening:"veÄer",night:"noc"},abbreviated:{am:"dop.",pm:"odp.",midnight:"půlnoc",noon:"poledne",morning:"r\xe1no",afternoon:"odpoledne",evening:"veÄer",night:"noc"},wide:{am:"dopoledne",pm:"odpoledne",midnight:"půlnoc",noon:"poledne",morning:"r\xe1no",afternoon:"odpoledne",evening:"veÄer",night:"noc"}},Q={ordinalNumber:(N,I)=>Number(N)+".",era:(0,z.o)({values:W,defaultWidth:"wide"}),quarter:(0,z.o)({values:q,defaultWidth:"wide",argumentCallback:N=>N-1}),month:(0,z.o)({values:G,defaultWidth:"wide",formattingValues:K,defaultFormattingWidth:"wide"}),day:(0,z.o)({values:V,defaultWidth:"wide"}),dayPeriod:(0,z.o)({values:Y,defaultWidth:"wide",formattingValues:J,defaultFormattingWidth:"wide"})};var Z=T(80663),X=T(85843);let ee=/^(\d+)\.?/i,et=/\d+/i,er={narrow:/^(p[År](\.|ed) Kr\.|p[År](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i,abbreviated:/^(p[År](\.|ed) Kr\.|p[År](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i,wide:/^(p[År](\.|ed) Kristem|p[År](\.|ed) na[Å¡s][Ãi]m letopo[Äc]tem|po Kristu|na[Å¡s]eho letopo[Äc]tu)/i},en={any:[/^p[År]/i,/^(po|n)/i]},ea={narrow:/^[1234]/i,abbreviated:/^[1234]\. [Äc]tvrtlet[Ãi]/i,wide:/^[1234]\. [Äc]tvrtlet[Ãi]/i},ei={any:[/1/i,/2/i,/3/i,/4/i]},eo={narrow:/^[lúubdkÄcszÅrlp]/i,abbreviated:/^(led|[úu]no|b[År]e|dub|kv[Äe]|[Äc]vn|[Äc]vc|srp|z[áa][År]|[År][Ãi]j|lis|pro)/i,wide:/^(leden|ledna|[úu]nora?|b[År]ezen|b[År]ezna|duben|dubna|kv[Äe]ten|kv[Äe]tna|[Äc]erven(ec|ce)?|[Äc]ervna|srpen|srpna|z[áa][År][Ãi]|[År][Ãi]jen|[År][Ãi]jna|listopad(a|u)?|prosinec|prosince)/i},es={narrow:[/^l/i,/^[úu]/i,/^b/i,/^d/i,/^k/i,/^[Äc]/i,/^[Äc]/i,/^s/i,/^z/i,/^[År]/i,/^l/i,/^p/i],any:[/^led/i,/^[úu]n/i,/^b[År]e/i,/^dub/i,/^kv[Äe]/i,/^[Äc]vn|[Äc]erven(?!\w)|[Äc]ervna/i,/^[Äc]vc|[Äc]erven(ec|ce)/i,/^srp/i,/^z[áa][År]/i,/^[År][Ãi]j/i,/^lis/i,/^pro/i]},el={narrow:/^[npuúsÄps]/i,short:/^(ne|po|[úu]t|st|[Äc]t|p[áa]|so)/i,abbreviated:/^(ned|pon|[úu]te|st[rÅ]|[Äc]tv|p[áa]t|sob)/i,wide:/^(ned[Äe]le|pond[Äe]l[Ãi]|[úu]ter[ýy]|st[År]eda|[Äc]tvrtek|p[áa]tek|sobota)/i}
580,ec={narrow:[/^n/i,/^p/i,/^[úu]/i,/^s/i,/^[Äc]/i,/^p/i,/^s/i],any:[/^ne/i,/^po/i,/^[úu]t/i,/^st/i,/^[Äc]t/i,/^p[áa]/i,/^so/i]},eu={any:/^dopoledne|dop\.?|odpoledne|odp\.?|p[ůu]lnoc|poledne|r[áa]no|odpoledne|ve[Äc]er|(v )?noci?/i},ed={any:{am:/^dop/i,pm:/^odp/i,midnight:/^p[ůu]lnoc/i,noon:/^poledne/i,morning:/r[áa]no/i,afternoon:/odpoledne/i,evening:/ve[Äc]er/i,night:/noc/i}},ef={code:"cs",formatDistance:D,formatLong:F,formatRelative:H,localize:Q,match:{ordinalNumber:(0,X.K)({matchPattern:ee,parsePattern:et,valueCallback:N=>parseInt(N,10)}),era:(0,Z.A)({matchPatterns:er,defaultMatchWidth:"wide",parsePatterns:en,defaultParseWidth:"any"}),quarter:(0,Z.A)({matchPatterns:ea,defaultMatchWidth:"wide",parsePatterns:ei,defaultParseWidth:"any",valueCallback:N=>N+1}),month:(0,Z.A)({matchPatterns:eo,defaultMatchWidth:"wide",parsePatterns:es,defaultParseWidth:"any"}),day:(0,Z.A)({matchPatterns:el,defaultMatchWidth:"wide",parsePatterns:ec,defaultParseWidth:"any"}),dayPeriod:(0,Z.A)({matchPatterns:eu,defaultMatchWidth:"any",parsePatterns:ed,defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}}},31905:(N,I,T)=>{"use strict";T.d(I,{BM:()=>D,Te:()=>P,um:()=>M}),T(55333),T(99742);let P=(N=!1)=>{},D=N=>{var I;return void 0===N.params?"/":Array.isArray(N.params.path)?N.params.path.join("/"):null!=(I=N.params.path)?I:"/"},M=N=>void 0!==N.req},32038:(N,I,T)=>{"use strict";T.d(I,{x:()=>H});var P=T(37876),D=T(68602),M=T(77470),R=T(56375),L=T(84612),$=T(6807),F=T(63808),B=T(14232),U=T(23649);let H=({id:N,label:I,addLabel:T="+ Add language",languageOptions:H=[],proficiencyOptions:z=[],errors:W,setDataLayer:q,setDataLayerError:G})=>{let K=(0,B.useRef)(!1),{values:V,setFieldValue:Y}=(0,F.j7)(),J=V[N]??[],Q=J.map(N=>N.skillName),Z=()=>({skillName:H.find(N=>!Q.includes(N.value))?.value??"",proficiency:z[0]?.value??""});return(0,P.jsxs)("div",{id:`FormSkillLevels-${N}`,className:"flex w-full flex-col gap-2",children:[(0,P.jsxs)("div",{className:"flex flex-col",children:[(0,P.jsx)(M.l,{id:N,label:I,focusOnClick:!1}),W?.map(I=>{if(I?.touched&&I?.message)return K.current||(G?.(),K.current=!0),(0,P.jsx)(D.j,{id:I?.id??N,error:I.message},`FormError-${I?.id??N}`)})]}),(0,P.jsx)(F.ED,{name:N,children:({push:D,remove:M})=>(0,P.jsx)("fieldset",{id:`FormSkillLevels-${N}`,children:(0,P.jsxs)("div",{className:"flex flex-col gap-3",children:[J.map((T,D)=>{let F=J.filter((N,I)=>I!==D).map(N=>N.skillName),B=H.filter(N=>!F.includes(N.value));return(0,P.jsxs)("div",{className:"brunel-radio-light flex flex-col gap-2 sm:items-center",children:[(0,P.jsxs)("div",{className:"flex w-full flex-row items-center gap-2",children:[(0,P.jsxs)("div",{className:"group/dropdown dropdown flex w-full flex-1",children:[(0,P.jsxs)("div",{tabIndex:0,role:"button",className:"input flex w-full cursor-pointer items-center justify-between bg-white px-4",children:[(0,P.jsx)($.o,{type:"small",className:"text-brunel-dark-grey",plainText:H.find(N=>N.value===T.skillName)?.label??T.skillName??H[0]?.label??""}),(0,P.jsx)(L.D3,{className:"min-h-4 min-w-4 transition-transform duration-150 group-focus-within/dropdown:-scale-y-100"})]}),(0,P.jsx)("ul",{tabIndex:0,className:"dropdown-content z-10 max-h-48 w-full overflow-auto rounded-b-xs border border-accent-iron bg-white py-1",children:B.map(I=>(0,P.jsx)("li",{className:"cursor-pointer px-4 py-2 text-sm hover:bg-ui-light-grey",onClick:()=>{Y(`${N}[${D}].skillName`,I.value),document.activeElement?.blur(),q?.()},children:I.label},I.value))})]}),(0,P.jsx)(R.I,{name:"cross",size:"32",onClick:()=>M(D)})]}),(0,P.jsx)("div",{className:"flex flex-col gap-2 self-start",children:z.map((T,M)=>(0,P.jsxs)("div",{className:"flex h-max items-center gap-2",onClick:()=>{Y(`${N}[${D}].proficiency`,T.value),q?.()},children:[(0,P.jsx)("input",{type:"radio",className:"radio form-radio size-4 cursor-pointer radio-neutral",value:T.value,defaultChecked:!1,checked:V[N][D].proficiency===T.value},T.value),(0,P.jsx)("label",{htmlFor:`${N}-${I}`,className:"hover:cursor-pointer",children:(0,P.jsx)($.o,{type:"medium",plainText:T.label.decodeURIComponentOrNull()})})]},`${N}-${I}-${M}`))})]},`${T.skillName}-${D}`)}),J.length<H.length&&(0,P.jsx)(U.Button,{variant:"alternative",plainText:T,iconName:"plus",iconSide:"left",iconColor:"white",onClick:()=>{D(Z()),q?.()}})]})})})]})}},32166:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=D;var P=T(63780);function D(N){var I;let{url:T,error:D="default",theme:M}=N,R=`${T}/signin`,L={default:{status:200,heading:"Error",message:(0,P.h)("p",null,(0,P.h)("a",{className:"site",href:null==T?void 0:T.origin},null==T?void 0:T.host))},configuration:{status:500,heading:"Server error",message:(0,P.h)("div",null,(0,P.h)("p",null,"There is a problem with the server configuration."),(0,P.h)("p",null,"Check the server logs for more information."))},accessdenied:{status:403,heading:"Access Denied",message:(0,P.h)("div",null,(0,P.h)("p",null,"You do not have permission to sign in."),(0,P.h)("p",null,(0,P.h)("a",{className:"button",href:R},"Sign in")))},verification:{status:403,heading:"Unable to sign in",message:(0,P.h)("div",null,(0,P.h)("p",null,"The sign in link is no longer valid."),(0,P.h)("p",null,"It may have been used already or it may have expired.")),signin:(0,P.h)("a",{className:"button",href:R},"Sign in")}},{status:$,heading:F,message:B,signin:U}=null!=(I=L[D.toLowerCase()])?I:L.default;return{status:$,html:(0,P.h)("div",{className:"error"},(null==M?void 0:M.brandColor)&&(0,P.h)("style",{dangerouslySetInnerHTML:{__html:` 581 :root { 582 --brand-color: ${null==M?void 0:M.brandColor} 583 } 584 `}}),(0,P.h)("div",{className:"card"}
584,(null==M?void 0:M.logo)&&(0,P.h)("img",{src:M.logo,alt:"Logo",className:"logo"}),(0,P.h)("h1",null,F),(0,P.h)("div",{className:"message"},B),U))}}},32351:(N,I,T)=>{"use strict";T.r(I),T.d(I,{normalizeFocalPoint:()=>D,resolveApplicationUrl:()=>$,resolveClockInfoText:()=>F,resolveEducationLevelText:()=>U,resolveEndDateText:()=>H,resolveFieldVisibility:()=>B,resolveHeroImageMatch:()=>L,resolveVacancyFields:()=>R,t:()=>M});var P=T(84471);let D=N=>{if(!N||"object"!=typeof N)return;let I=N;if("string"==typeof I.value)return{value:I.value};let T=I.jsonValue;if("string"==typeof T?.value)return{value:T.value}},M=(N,I)=>N?.[I]??`[${I}]`,R=N=>N?.map(N=>N.name)?.slice(0,5)??[],L=(N,I,T,P)=>{let M=N.find(N=>N.vacancyHeroBranches?.jsonValue?.some(N=>N.fields?.XrmId?.value===I));return{heroImage:M?.vacancyHeroBranchImage?.jsonValue??T?.jsonValue??{src:"",alt:""},heroImageFocalPoint:D(M?.heroImageFocalPoint??P)}},$=(N,I,T,D,M,R)=>{let L=(0,P.generateApplicationUrl)(N,I),$="";if(L){let I=(0,P.applyParametersToUrl)({...N,locale:T,baseUrl:""},"");if(I){let N=L?.includes("?")?"&":"?";L+=N+I}}else{let I="en-au"!==T&&N?.country==="AUS"?"en-au":T,P=D.split("/").pop()??"";$=`vacancyID=${N?.publicationId??""}${M}${R}`,L=`/${I}/${P}`}return{applicationUrl:L,vacancyQueryString:$}},F=(N,I,T,P)=>N?"":[I.includes("workingHours")?T:"",I.includes("salary")?P:""].filter(Boolean).join(" "),B=(N,I,T,P)=>({showLocation:I.includes("location"),showExperience:!N&&I.includes("totalYearsOfExperience")&&!!T,showEducation:!N&&I.includes("educationLevel")&&!!P?.educationLevel,showOffice:!N&&I.includes("office")&&!!P?.branch,showEndDate:!N&&I.includes("endDate")&&!!P?.endDate}),U=(N,I)=>`${M(N,"vacancy-education-level-caption")}: ${I}`,H=(N,I,T)=>`${M(N,"vacancy-valid-until-caption")}: ${new Date(I??"").toLocaleDateString(T,{month:"long",day:"2-digit",year:"numeric"})}`},32479:(N,I,T)=>{"use strict";T.d(I,{E8:()=>F,F3:()=>M,SH:()=>$,XG:()=>R,um:()=>P});let P="_default",D="_variantId_";function M(N,I){let T=N.endsWith("/")?N.slice(0,-1):N;return`${T}${I.map(N=>`/${D}${N}`).join("")}`}function R(N){let I=N.split("/"),T=[];return I.forEach(N=>{let I=N.match(`${D}(.*$)`);I&&T.push(I[1])}),L(T)}function L(N){let I={variantId:P,componentVariantIds:[]};return N.forEach(N=>{var T;N.includes("_")?null==(T=I.componentVariantIds)||T.push(N):I.variantId=N}),I}function $(N){if(!N.includes(D))return N;let I=N.split("/");return(I=I.filter(N=>!N.includes(D))).join("/")||"/"}class F{static getPageVariantId(N,I,T,D){let M=N.replace(/[{}-]/g,""),R=I.replace("-","_"),L=D?`${this.normalizeScope(D)}_`:"",$=T;return T&&T!==P||($="default"),`${L}${M}_${R}_${$}`.toLowerCase()}static getPageFriendlyId(N,I,T){let P=N.replace(/[{}-]/g,""),D=I.replace("-","_"),M=T?`${this.normalizeScope(T)}_`:"";return`embedded_${M}${P}_${D}`.toLowerCase()}static getComponentFriendlyId(N,I,T,P){let D=N.replace(/[{}-]/g,""),M=I.replace(/[{}-]/g,""),R=T.replace("-","_"),L=P?`${this.normalizeScope(P)}_`:"";return`component_${L}${D}_${M}_${R}*`.toLowerCase()}static normalizeScope(N){return(null==N?void 0:N.replace(/[^a-zA-Z0-9]+/g,""))||""}}},32545:(N,I,T)=>{var P="/",D=T(99742),M={638:function(N){"function"==typeof Object.create?N.exports=function(N,I){I&&(N.super_=I,N.prototype=Object.create(I.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}))}:N.exports=function(N,I){if(I){N.super_=I;var T=function(){};T.prototype=I.prototype,N.prototype=new T,N.prototype.constructor=N}}},329:function(N){"use strict";let I={};function T(N,T,P){function D(N,I,P){return"string"==typeof T?T:T(N,I,P)}P||(P=Error);class M extends P{constructor(N,I,T){super(D(N,I,T))}}M.prototype.name=P.name,M.prototype.code=N,I[N]=M}function P(N,I){if(!Array.isArray(N))return`of ${I} ${String(N)}`;{let T=N.length;return(N=N.map(N=>String(N)),T>2)?`one of ${I} ${N.slice(0,T-1).join(", ")}, or `+N[T-1]:2===T?`one of ${I} ${N[0]} or ${N[1]}`:`of ${I} ${N[0]}`}}function D(N,I,T){return N.substr(!T||T<0?0:+T,I.length)===I}function M(N,I,T){return(void 0===T||T>N.length)&&(T=N.length),N.substring(T-I.length,T)===I}function R(N,I,T){return"number"!=typeof T&&(T=0),!(T+I.length>N.length)&&-1!==N.indexOf(I,T)}T("ERR_INVALID_OPT_VALUE",function(N,I){return'The value "'+I+'" is invali
584d for option "'+N+'"'},TypeError),T("ERR_INVALID_ARG_TYPE",function(N,I,T){let L,$;if("string"==typeof I&&D(I,"not ")?(L="must not be",I=I.replace(/^not /,"")):L="must be",M(N," argument"))$=`The ${N} ${L} ${P(I,"type")}`;else{let T=R(N,".")?"property":"argument";$=`The "${N}" ${T} ${L} ${P(I,"type")}`}return $+`. Received type ${typeof T}`},TypeError),T("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),T("ERR_METHOD_NOT_IMPLEMENTED",function(N){return"The "+N+" method is not implemented"}),T("ERR_STREAM_PREMATURE_CLOSE","Premature close"),T("ERR_STREAM_DESTROYED",function(N){return"Cannot call "+N+" after a stream was destroyed"}),T("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),T("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),T("ERR_STREAM_WRITE_AFTER_END","write after end"),T("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),T("ERR_UNKNOWN_ENCODING",function(N){return"Unknown encoding: "+N},TypeError),T("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),N.exports.F=I},686:function(N,I,T){"use strict";var P=Object.keys||function(N){var I=[];for(var T in N)I.push(T);return I};N.exports=B;var M=T(276),R=T(732);T(638)(B,M);for(var L=P(R.prototype),$=0;$<L.length;$++){var F=L[$];B.prototype[F]||(B.prototype[F]=R.prototype[F])}function B(N){if(!(this instanceof B))return new B(N);M.call(this,N),R.call(this,N),this.allowHalfOpen=!0,N&&(!1===N.readable&&(this.readable=!1),!1===N.writable&&(this.writable=!1),!1===N.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",U)))}function U(){this._writableState.ended||D.nextTick(H,this)}function H(N){N.end()}Object.defineProperty(B.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(B.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(B.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(B.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(N){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=N,this._writableState.destroyed=N)}})},512:function(N,I,T){"use strict";N.exports=D;var P=T(586);function D(N){if(!(this instanceof D))return new D(N);P.call(this,N)}T(638)(D,P),D.prototype._transform=function(N,I,T){T(null,N)}},276:function(N,I,P){"use strict";N.exports=ei,ei.ReadableState=ea,P(434).EventEmitter;var M,R,L,$,F,B=function(N,I){return N.listeners(I).length},U=P(120),H=P(181).Buffer,z=T.g.Uint8Array||function(){};function W(N){return H.from(N)}function q(N){return H.isBuffer(N)||N instanceof z}var G=P(23);R=G&&G.debuglog?G.debuglog("stream"):function(){};var K=P(137),V=P(528),Y=P(771).getHighWaterMark,J=P(329).F,Q=J.ERR_INVALID_ARG_TYPE,Z=J.ERR_STREAM_PUSH_AFTER_EOF,X=J.ERR_METHOD_NOT_IMPLEMENTED,ee=J.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;P(638)(ei,U);var et=V.errorOrDestroy,er=["error","close","destroy","pause","resume"];function en(N,I,T){if("function"==typeof N.prependListener)return N.prependListener(I,T);N._events&&N._events[I]?Array.isArray(N._events[I])?N._events[I].unshift(T):N._events[I]=[T,N._events[I]]:N.on(I,T)}function ea(N,I,T){M=M||P(686),N=N||{},"boolean"!=typeof T&&(T=I instanceof M),this.objectMode=!!N.objectMode,T&&(this.objectMode=this.objectMode||!!N.readableObjectMode),this.highWaterMark=Y(this,N,"readableHighWaterMark",T),this.buffer=new K,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==N.emitClose,this.autoDestroy=!!N.autoDestroy,this.destroyed=!1,this.defaultEncoding=N.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,N.encoding&&(L||(L=P(319).I),this.decoder=new L(N.encoding),this.encoding=N.encoding)}function ei(N){if(M=M||P(686),!(this instanceof ei))return new ei(N);var I=this instanceof M;this._readableState=new ea(N,this,I),this.readable=!0,N&&("function"==typeof N.read&&(this._read=N.read),"function"==typeof N.destroy&&(this._destroy=N.destroy)),U.call(this)}function eo(N,I,T,P,D){R("readableAddChunk",I);var M,L=N._readableState;if(null===I)L.reading=!1,ef(N,L);else if(D||(M=el(L,I)),M)et(N,M);else if(L.objectMode||I&&I.length>0)if("string"==typeof I||L.objectMode||Object.getPrototypeOf(I)===H.prototype||(I=W(I)),P)L.endEmitted?et(N,new ee):es(N,L,I,!0);else if(L.ended)et(N,new Z);else{if(L.destroyed)return!1;L.reading=!1,L.decoder&&!T?(I=L.decoder.write(I),L.objectMode||0!==I.length?es(N,L,I,!1):em(N,L)):es(N,L,I,!1)}else P||(L.reading=!1,em(N,L));return!L.ended&&(L.length<L.highWaterMark||0===L.length)}
vendor: 4,900 bytes, line 584
584function es(N,I,T,P){I.flowing&&0===I.length&&!I.sync?(I.awaitDrain=0,N.emit("data",T)):(I.length+=I.objectMode?1:T.length,P?I.buffer.unshift(T):I.buffer.push(T),I.needReadable&&eh(N)),em(N,I)}function el(N,I){var T;return q(I)||"string"==typeof I||void 0===I||N.objectMode||(T=new Q("chunk",["string","Buffer","Uint8Array"],I)),T}Object.defineProperty(ei.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(N){this._readableState&&(this._readableState.destroyed=N)}}),ei.prototype.destroy=V.destroy,ei.prototype._undestroy=V.undestroy,ei.prototype._destroy=function(N,I){I(N)},ei.prototype.push=function(N,I){var T,P=this._readableState;return P.objectMode?T=!0:"string"==typeof N&&((I=I||P.defaultEncoding)!==P.encoding&&(N=H.from(N,I),I=""),T=!0),eo(this,N,I,!1,T)},ei.prototype.unshift=function(N){return eo(this,N,null,!0,!1)},ei.prototype.isPaused=function(){return!1===this._readableState.flowing},ei.prototype.setEncoding=function(N){L||(L=P(319).I);var I=new L(N);this._readableState.decoder=I,this._readableState.encoding=this._readableState.decoder.encoding;for(var T=this._readableState.buffer.head,D="";null!==T;)D+=I.write(T.data),T=T.next;return this._readableState.buffer.clear(),""!==D&&this._readableState.buffer.push(D),this._readableState.length=D.length,this};var ec=0x40000000;function eu(N){return N>=ec?N=ec:(N--,N|=N>>>1,N|=N>>>2,N|=N>>>4,N|=N>>>8,N|=N>>>16,N++),N}function ed(N,I){if(N<=0||0===I.length&&I.ended)return 0;if(I.objectMode)return 1;if(N!=N)if(I.flowing&&I.length)return I.buffer.head.data.length;else return I.length;return(N>I.highWaterMark&&(I.highWaterMark=eu(N)),N<=I.length)?N:I.ended?I.length:(I.needReadable=!0,0)}function ef(N,I){if(R("onEofChunk"),!I.ended){if(I.decoder){var T=I.decoder.end();T&&T.length&&(I.buffer.push(T),I.length+=I.objectMode?1:T.length)}I.ended=!0,I.sync?eh(N):(I.needReadable=!1,I.emittedReadable||(I.emittedReadable=!0,ep(N)))}}function eh(N){var I=N._readableState;R("emitReadable",I.needReadable,I.emittedReadable),I.needReadable=!1,I.emittedReadable||(R("emitReadable",I.flowing),I.emittedReadable=!0,D.nextTick(ep,N))}function ep(N){var I=N._readableState;R("emitReadable_",I.destroyed,I.length,I.ended),!I.destroyed&&(I.length||I.ended)&&(N.emit("readable"),I.emittedReadable=!1),I.needReadable=!I.flowing&&!I.ended&&I.length<=I.highWaterMark,eA(N)}function em(N,I){I.readingMore||(I.readingMore=!0,D.nextTick(eg,N,I))}function eg(N,I){for(;!I.reading&&!I.ended&&(I.length<I.highWaterMark||I.flowing&&0===I.length);){var T=I.length;if(R("maybeReadMore read 0"),N.read(0),T===I.length)break}I.readingMore=!1}function ey(N){return function(){var I=N._readableState;R("pipeOnDrain",I.awaitDrain),I.awaitDrain&&I.awaitDrain--,0===I.awaitDrain&&B(N,"data")&&(I.flowing=!0,eA(N))}}function eb(N){var I=N._readableState;I.readableListening=N.listenerCount("readable")>0,I.resumeScheduled&&!I.paused?I.flowing=!0:N.listenerCount("data")>0&&N.resume()}function ev(N){R("readable nexttick read 0"),N.read(0)}function ew(N,I){I.resumeScheduled||(I.resumeScheduled=!0,D.nextTick(ex,N,I))}function ex(N,I){R("resume",I.reading),I.reading||N.read(0),I.resumeScheduled=!1,N.emit("resume"),eA(N),I.flowing&&!I.reading&&N.read(0)}function eA(N){var I=N._readableState;for(R("flow",I.flowing);I.flowing&&null!==N.read(););}function eE(N,I){var T;return 0===I.length?null:(I.objectMode?T=I.buffer.shift():!N||N>=I.length?(T=I.decoder?I.buffer.join(""):1===I.buffer.length?I.buffer.first():I.buffer.concat(I.length),I.buffer.clear()):T=I.buffer.consume(N,I.decoder),T)}function eS(N){var I=N._readableState;R("endReadable",I.endEmitted),I.endEmitted||(I.ended=!0,D.nextTick(e_,I,N))}function e_(N,I){if(R("endReadableNT",N.endEmitted,N.length),!N.endEmitted&&0===N.length&&(N.endEmitted=!0,I.readable=!1,I.emit("end"),N.autoDestroy)){var T=I._writableState;(!T||T.autoDestroy&&T.finished)&&I.destroy()}}function ek(N,I){for(var T=0,P=N.length;T<P;T++)if(N[T]===I)return T;return -1}ei.prototype.read=function(N){R("read",N),N=parseInt(N,10);var I,T=this._readableState,P=N;if(0!==N&&(T.emittedReadable=!1),0===N&&T.needReadable&&((0!==T.highWaterMark?T.length>=T.highWaterMark:T.length>0)||T.ended))return R("read: emitReadable",T.length,T.ended),0===T.length&&T.ended?eS(this):eh(this),null;if(0===(N=ed(N,T))&&T.ended)return 0===T.length&&eS(this),null;var D=T.needReadable;return R("need readable",D),(0===T.length||T.length-N<T.highWaterMark)&&R("length less than watermark",D=!0),T.ended||T.reading?R("reading or ended",D=!1):D&&(R("do read"),T.reading=!0,T.sync=!0,0===T.length&&(T.needReadable=!0),this._read(T.highWaterMark),T.sync=!1,T.reading||(N=ed(P,T))),null===(I=N>0?eE(N,T):null)?(T.needReadable=T.length<=T.highWaterMark,N=0):(T.length-=N,T.awaitDrain=0),0===T.length&&(T.ended||(T.needReadable=!0),P!==N&&T.ended&&eS(this)),null!==I&&this.emit
vendor: 4,589 bytes, line 584
584("data",I),I},ei.prototype._read=function(N){et(this,new X("_read()"))},ei.prototype.pipe=function(N,I){var T=this,P=this._readableState;switch(P.pipesCount){case 0:P.pipes=N;break;case 1:P.pipes=[P.pipes,N];break;default:P.pipes.push(N)}P.pipesCount+=1,R("pipe count=%d opts=%j",P.pipesCount,I);var M=I&&!1===I.end||N===D.stdout||N===D.stderr?K:$;function L(N,I){R("onunpipe"),N===T&&I&&!1===I.hasUnpiped&&(I.hasUnpiped=!0,H())}function $(){R("onend"),N.end()}P.endEmitted?D.nextTick(M):T.once("end",M),N.on("unpipe",L);var F=ey(T);N.on("drain",F);var U=!1;function H(){R("cleanup"),N.removeListener("close",q),N.removeListener("finish",G),N.removeListener("drain",F),N.removeListener("error",W),N.removeListener("unpipe",L),T.removeListener("end",$),T.removeListener("end",K),T.removeListener("data",z),U=!0,P.awaitDrain&&(!N._writableState||N._writableState.needDrain)&&F()}function z(I){R("ondata");var D=N.write(I);R("dest.write",D),!1===D&&((1===P.pipesCount&&P.pipes===N||P.pipesCount>1&&-1!==ek(P.pipes,N))&&!U&&(R("false write response, pause",P.awaitDrain),P.awaitDrain++),T.pause())}function W(I){R("onerror",I),K(),N.removeListener("error",W),0===B(N,"error")&&et(N,I)}function q(){N.removeListener("finish",G),K()}function G(){R("onfinish"),N.removeListener("close",q),K()}function K(){R("unpipe"),T.unpipe(N)}return T.on("data",z),en(N,"error",W),N.once("close",q),N.once("finish",G),N.emit("pipe",T),P.flowing||(R("pipe resume"),T.resume()),N},ei.prototype.unpipe=function(N){var I=this._readableState,T={hasUnpiped:!1};if(0===I.pipesCount)return this;if(1===I.pipesCount)return N&&N!==I.pipes||(N||(N=I.pipes),I.pipes=null,I.pipesCount=0,I.flowing=!1,N&&N.emit("unpipe",this,T)),this;if(!N){var P=I.pipes,D=I.pipesCount;I.pipes=null,I.pipesCount=0,I.flowing=!1;for(var M=0;M<D;M++)P[M].emit("unpipe",this,{hasUnpiped:!1});return this}var R=ek(I.pipes,N);return -1===R||(I.pipes.splice(R,1),I.pipesCount-=1,1===I.pipesCount&&(I.pipes=I.pipes[0]),N.emit("unpipe",this,T)),this},ei.prototype.on=function(N,I){var T=U.prototype.on.call(this,N,I),P=this._readableState;return"data"===N?(P.readableListening=this.listenerCount("readable")>0,!1!==P.flowing&&this.resume()):"readable"!==N||P.endEmitted||P.readableListening||(P.readableListening=P.needReadable=!0,P.flowing=!1,P.emittedReadable=!1,R("on readable",P.length,P.reading),P.length?eh(this):P.reading||D.nextTick(ev,this)),T},ei.prototype.addListener=ei.prototype.on,ei.prototype.removeListener=function(N,I){var T=U.prototype.removeListener.call(this,N,I);return"readable"===N&&D.nextTick(eb,this),T},ei.prototype.removeAllListeners=function(N){var I=U.prototype.removeAllListeners.apply(this,arguments);return("readable"===N||void 0===N)&&D.nextTick(eb,this),I},ei.prototype.resume=function(){var N=this._readableState;return N.flowing||(R("resume"),N.flowing=!N.readableListening,ew(this,N)),N.paused=!1,this},ei.prototype.pause=function(){return R("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(R("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},ei.prototype.wrap=function(N){var I=this,T=this._readableState,P=!1;for(var D in N.on("end",function(){if(R("wrapped end"),T.decoder&&!T.ended){var N=T.decoder.end();N&&N.length&&I.push(N)}I.push(null)}),N.on("data",function(D){R("wrapped data"),T.decoder&&(D=T.decoder.write(D)),T.objectMode&&null==D||(T.objectMode||D&&D.length)&&(I.push(D)||(P=!0,N.pause()))}),N)void 0===this[D]&&"function"==typeof N[D]&&(this[D]=function(I){return function(){return N[I].apply(N,arguments)}}(D));for(var M=0;M<er.length;M++)N.on(er[M],this.emit.bind(this,er[M]));return this._read=function(I){R("wrapped _read",I),P&&(P=!1,N.resume())},this},"function"==typeof Symbol&&(ei.prototype[Symbol.asyncIterator]=function(){return void 0===$&&($=P(531)),$(this)}),Object.defineProperty(ei.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(ei.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(ei.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(N){this._readableState&&(this._readableState.flowing=N)}}),ei._fromList=eE,Object.defineProperty(ei.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(ei.from=function(N,I){return void 0===F&&(F=P(812)),F(ei,N,I)})},586:function(N,I,T){"use strict";N.exports=B;
vendor: 4,189 bytes, line 584
584var P=T(329).F,D=P.ERR_METHOD_NOT_IMPLEMENTED,M=P.ERR_MULTIPLE_CALLBACK,R=P.ERR_TRANSFORM_ALREADY_TRANSFORMING,L=P.ERR_TRANSFORM_WITH_LENGTH_0,$=T(686);function F(N,I){var T=this._transformState;T.transforming=!1;var P=T.writecb;if(null===P)return this.emit("error",new M);T.writechunk=null,T.writecb=null,null!=I&&this.push(I),P(N);var D=this._readableState;D.reading=!1,(D.needReadable||D.length<D.highWaterMark)&&this._read(D.highWaterMark)}function B(N){if(!(this instanceof B))return new B(N);$.call(this,N),this._transformState={afterTransform:F.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,N&&("function"==typeof N.transform&&(this._transform=N.transform),"function"==typeof N.flush&&(this._flush=N.flush)),this.on("prefinish",U)}function U(){var N=this;"function"!=typeof this._flush||this._readableState.destroyed?H(this,null,null):this._flush(function(I,T){H(N,I,T)})}function H(N,I,T){if(I)return N.emit("error",I);if(null!=T&&N.push(T),N._writableState.length)throw new L;if(N._transformState.transforming)throw new R;return N.push(null)}T(638)(B,$),B.prototype.push=function(N,I){return this._transformState.needTransform=!1,$.prototype.push.call(this,N,I)},B.prototype._transform=function(N,I,T){T(new D("_transform()"))},B.prototype._write=function(N,I,T){var P=this._transformState;if(P.writecb=T,P.writechunk=N,P.writeencoding=I,!P.transforming){var D=this._readableState;(P.needTransform||D.needReadable||D.length<D.highWaterMark)&&this._read(D.highWaterMark)}},B.prototype._read=function(N){var I=this._transformState;null===I.writechunk||I.transforming?I.needTransform=!0:(I.transforming=!0,this._transform(I.writechunk,I.writeencoding,I.afterTransform))},B.prototype._destroy=function(N,I){$.prototype._destroy.call(this,N,function(N){I(N)})}},732:function(N,I,P){"use strict";function M(N){var I=this;this.next=null,this.entry=null,this.finish=function(){ex(I,N)}}N.exports=ea,ea.WritableState=en;var R,L,$={deprecate:P(774)},F=P(120),B=P(181).Buffer,U=T.g.Uint8Array||function(){};function H(N){return B.from(N)}function z(N){return B.isBuffer(N)||N instanceof U}var W=P(528),q=P(771).getHighWaterMark,G=P(329).F,K=G.ERR_INVALID_ARG_TYPE,V=G.ERR_METHOD_NOT_IMPLEMENTED,Y=G.ERR_MULTIPLE_CALLBACK,J=G.ERR_STREAM_CANNOT_PIPE,Q=G.ERR_STREAM_DESTROYED,Z=G.ERR_STREAM_NULL_VALUES,X=G.ERR_STREAM_WRITE_AFTER_END,ee=G.ERR_UNKNOWN_ENCODING,et=W.errorOrDestroy;function er(){}function en(N,I,T){R=R||P(686),N=N||{},"boolean"!=typeof T&&(T=I instanceof R),this.objectMode=!!N.objectMode,T&&(this.objectMode=this.objectMode||!!N.writableObjectMode),this.highWaterMark=q(this,N,"writableHighWaterMark",T),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var D=!1===N.decodeStrings;this.decodeStrings=!D,this.defaultEncoding=N.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(N){ef(I,N)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==N.emitClose,this.autoDestroy=!!N.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new M(this)}P(638)(ea,F),en.prototype.getBuffer=function(){for(var N=this.bufferedRequest,I=[];N;)I.push(N),N=N.next;return I};try{Object.defineProperty(en.prototype,"buffer",{get:$.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(N){}function ea(N){var I=this instanceof(R=R||P(686));if(!I&&!L.call(ea,this))return new ea(N);this._writableState=new en(N,this,I),this.writable=!0,N&&("function"==typeof N.write&&(this._write=N.write),"function"==typeof N.writev&&(this._writev=N.writev),"function"==typeof N.destroy&&(this._destroy=N.destroy),"function"==typeof N.final&&(this._final=N.final)),F.call(this)}function ei(N,I){var T=new X;et(N,T),D.nextTick(I,T)}function eo(N,I,T,P){var M;return null===T?M=new Z:"string"==typeof T||I.objectMode||(M=new K("chunk",["string","Buffer"],T)),!M||
vendor: 5,442 bytes, line 584
584(et(N,M),D.nextTick(P,M),!1)}function es(N,I,T){return N.objectMode||!1===N.decodeStrings||"string"!=typeof I||(I=B.from(I,T)),I}function el(N,I,T,P,D,M){if(!T){var R=es(I,P,D);P!==R&&(T=!0,D="buffer",P=R)}var L=I.objectMode?1:P.length;I.length+=L;var $=I.length<I.highWaterMark;if($||(I.needDrain=!0),I.writing||I.corked){var F=I.lastBufferedRequest;I.lastBufferedRequest={chunk:P,encoding:D,isBuf:T,callback:M,next:null},F?F.next=I.lastBufferedRequest:I.bufferedRequest=I.lastBufferedRequest,I.bufferedRequestCount+=1}else ec(N,I,!1,L,P,D,M);return $}function ec(N,I,T,P,D,M,R){I.writelen=P,I.writecb=R,I.writing=!0,I.sync=!0,I.destroyed?I.onwrite(new Q("write")):T?N._writev(D,I.onwrite):N._write(D,M,I.onwrite),I.sync=!1}function eu(N,I,T,P,M){--I.pendingcb,T?(D.nextTick(M,P),D.nextTick(ev,N,I),N._writableState.errorEmitted=!0,et(N,P)):(M(P),N._writableState.errorEmitted=!0,et(N,P),ev(N,I))}function ed(N){N.writing=!1,N.writecb=null,N.length-=N.writelen,N.writelen=0}function ef(N,I){var T=N._writableState,P=T.sync,M=T.writecb;if("function"!=typeof M)throw new Y;if(ed(T),I)eu(N,T,P,I,M);else{var R=eg(T)||N.destroyed;R||T.corked||T.bufferProcessing||!T.bufferedRequest||em(N,T),P?D.nextTick(eh,N,T,R,M):eh(N,T,R,M)}}function eh(N,I,T,P){T||ep(N,I),I.pendingcb--,P(),ev(N,I)}function ep(N,I){0===I.length&&I.needDrain&&(I.needDrain=!1,N.emit("drain"))}function em(N,I){I.bufferProcessing=!0;var T=I.bufferedRequest;if(N._writev&&T&&T.next){var P=Array(I.bufferedRequestCount),D=I.corkedRequestsFree;D.entry=T;for(var R=0,L=!0;T;)P[R]=T,T.isBuf||(L=!1),T=T.next,R+=1;P.allBuffers=L,ec(N,I,!0,I.length,P,"",D.finish),I.pendingcb++,I.lastBufferedRequest=null,D.next?(I.corkedRequestsFree=D.next,D.next=null):I.corkedRequestsFree=new M(I),I.bufferedRequestCount=0}else{for(;T;){var $=T.chunk,F=T.encoding,B=T.callback,U=I.objectMode?1:$.length;if(ec(N,I,!1,U,$,F,B),T=T.next,I.bufferedRequestCount--,I.writing)break}null===T&&(I.lastBufferedRequest=null)}I.bufferedRequest=T,I.bufferProcessing=!1}function eg(N){return N.ending&&0===N.length&&null===N.bufferedRequest&&!N.finished&&!N.writing}function ey(N,I){N._final(function(T){I.pendingcb--,T&&et(N,T),I.prefinished=!0,N.emit("prefinish"),ev(N,I)})}function eb(N,I){I.prefinished||I.finalCalled||("function"!=typeof N._final||I.destroyed?(I.prefinished=!0,N.emit("prefinish")):(I.pendingcb++,I.finalCalled=!0,D.nextTick(ey,N,I)))}function ev(N,I){var T=eg(I);if(T&&(eb(N,I),0===I.pendingcb)&&(I.finished=!0,N.emit("finish"),I.autoDestroy)){var P=N._readableState;(!P||P.autoDestroy&&P.endEmitted)&&N.destroy()}return T}function ew(N,I,T){I.ending=!0,ev(N,I),T&&(I.finished?D.nextTick(T):N.once("finish",T)),I.ended=!0,N.writable=!1}function ex(N,I,T){var P=N.entry;for(N.entry=null;P;){var D=P.callback;I.pendingcb--,D(T),P=P.next}I.corkedRequestsFree.next=N}"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(L=Function.prototype[Symbol.hasInstance],Object.defineProperty(ea,Symbol.hasInstance,{value:function(N){return!!L.call(this,N)||this===ea&&N&&N._writableState instanceof en}})):L=function(N){return N instanceof this},ea.prototype.pipe=function(){et(this,new J)},ea.prototype.write=function(N,I,T){var P=this._writableState,D=!1,M=!P.objectMode&&z(N);return M&&!B.isBuffer(N)&&(N=H(N)),"function"==typeof I&&(T=I,I=null),M?I="buffer":I||(I=P.defaultEncoding),"function"!=typeof T&&(T=er),P.ending?ei(this,T):(M||eo(this,P,N,T))&&(P.pendingcb++,D=el(this,P,M,N,I,T)),D},ea.prototype.cork=function(){this._writableState.corked++},ea.prototype.uncork=function(){var N=this._writableState;N.corked&&(N.corked--,N.writing||N.corked||N.bufferProcessing||!N.bufferedRequest||em(this,N))},ea.prototype.setDefaultEncoding=function(N){if("string"==typeof N&&(N=N.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((N+"").toLowerCase())>-1))throw new ee(N);return this._writableState.defaultEncoding=N,this},Object.defineProperty(ea.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(ea.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),ea.prototype._write=function(N,I,T){T(new V("_write()"))},ea.prototype._writev=null,ea.prototype.end=function(N,I,T){var P=this._writableState;return"function"==typeof N?(T=N,N=null,I=null):"function"==typeof I&&(T=I,I=null),null!=N&&this.write(N,I),P.corked&&(P.corked=1,this.uncork()),P.ending||ew(this,P,T),this},Object.defineProperty(ea.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(ea.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(N){this._writableState&&(this._writableState.destroyed=N)}}),ea.prototype.destroy=W.destroy,ea.prototype._undestroy=W.undestroy,ea.prototype._destroy=function(N,I){I(N)}},531:function(N,I,T){"use strict";function P(N,I,T){return I in N?Object.defineProperty(N,I,{value:T,enumerable:!0,configurable:!0,writable:!0}):N[I]=T,N}var M,R=T(134),L=Symbol("lastResolve"),$=Symbol("lastReject"),F=Symbol("error"),B=Symbol("ended"),U=Symbol("lastPromise"),H=Symbol("handlePromise"),z=Symbol("stream");function W(N,I){return{value:N,done:I}}function q(N){var I=N[L];if(null!==I){var T=N[z].read();
vendor: 5,856 bytes, line 584
584null!==T&&(N[U]=null,N[L]=null,N[$]=null,I(W(T,!1)))}}function G(N){D.nextTick(q,N)}function K(N,I){return function(T,P){N.then(function(){I[B]?T(W(void 0,!0)):I[H](T,P)},P)}}var V=Object.getPrototypeOf(function(){}),Y=Object.setPrototypeOf((P(M={get stream(){return this[z]},next:function(){var N,I=this,T=this[F];if(null!==T)return Promise.reject(T);if(this[B])return Promise.resolve(W(void 0,!0));if(this[z].destroyed)return new Promise(function(N,T){D.nextTick(function(){I[F]?T(I[F]):N(W(void 0,!0))})});var P=this[U];if(P)N=new Promise(K(P,this));else{var M=this[z].read();if(null!==M)return Promise.resolve(W(M,!1));N=new Promise(this[H])}return this[U]=N,N}},Symbol.asyncIterator,function(){return this}),P(M,"return",function(){var N=this;return new Promise(function(I,T){N[z].destroy(null,function(N){N?T(N):I(W(void 0,!0))})})}),M),V);N.exports=function(N){var I,T=Object.create(Y,(P(I={},z,{value:N,writable:!0}),P(I,L,{value:null,writable:!0}),P(I,$,{value:null,writable:!0}),P(I,F,{value:null,writable:!0}),P(I,B,{value:N._readableState.endEmitted,writable:!0}),P(I,H,{value:function(N,I){var P=T[z].read();P?(T[U]=null,T[L]=null,T[$]=null,N(W(P,!1))):(T[L]=N,T[$]=I)},writable:!0}),I));return T[U]=null,R(N,function(N){if(N&&"ERR_STREAM_PREMATURE_CLOSE"!==N.code){var I=T[$];null!==I&&(T[U]=null,T[L]=null,T[$]=null,I(N)),T[F]=N;return}var P=T[L];null!==P&&(T[U]=null,T[L]=null,T[$]=null,P(W(void 0,!0))),T[B]=!0}),N.on("readable",G.bind(null,T)),T}},137:function(N,I,T){"use strict";function P(N,I){var T=Object.keys(N);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(N);I&&(P=P.filter(function(I){return Object.getOwnPropertyDescriptor(N,I).enumerable})),T.push.apply(T,P)}return T}function D(N){for(var I=1;I<arguments.length;I++){var T=null!=arguments[I]?arguments[I]:{};I%2?P(Object(T),!0).forEach(function(I){M(N,I,T[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(T)):P(Object(T)).forEach(function(I){Object.defineProperty(N,I,Object.getOwnPropertyDescriptor(T,I))})}return N}function M(N,I,T){return I in N?Object.defineProperty(N,I,{value:T,enumerable:!0,configurable:!0,writable:!0}):N[I]=T,N}function R(N,I){if(!(N instanceof I))throw TypeError("Cannot call a class as a function")}function L(N,I){for(var T=0;T<I.length;T++){var P=I[T];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(N,P.key,P)}}function $(N,I,T){return I&&L(N.prototype,I),T&&L(N,T),N}var F=T(181).Buffer,B=T(23).inspect,U=B&&B.custom||"inspect";function H(N,I,T){F.prototype.copy.call(N,I,T)}N.exports=function(){function N(){R(this,N),this.head=null,this.tail=null,this.length=0}return $(N,[{key:"push",value:function(N){var I={data:N,next:null};this.length>0?this.tail.next=I:this.head=I,this.tail=I,++this.length}},{key:"unshift",value:function(N){var I={data:N,next:this.head};0===this.length&&(this.tail=I),this.head=I,++this.length}},{key:"shift",value:function(){if(0!==this.length){var N=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,N}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(N){if(0===this.length)return"";for(var I=this.head,T=""+I.data;I=I.next;)T+=N+I.data;return T}},{key:"concat",value:function(N){if(0===this.length)return F.alloc(0);for(var I=F.allocUnsafe(N>>>0),T=this.head,P=0;T;)H(T.data,I,P),P+=T.data.length,T=T.next;return I}},{key:"consume",value:function(N,I){var T;return N<this.head.data.length?(T=this.head.data.slice(0,N),this.head.data=this.head.data.slice(N)):T=N===this.head.data.length?this.shift():I?this._getString(N):this._getBuffer(N),T}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(N){var I=this.head,T=1,P=I.data;for(N-=P.length;I=I.next;){var D=I.data,M=N>D.length?D.length:N;if(M===D.length?P+=D:P+=D.slice(0,N),0==(N-=M)){M===D.length?(++T,I.next?this.head=I.next:this.head=this.tail=null):(this.head=I,I.data=D.slice(M));break}++T}return this.length-=T,P}},{key:"_getBuffer",value:function(N){var I=F.allocUnsafe(N),T=this.head,P=1;for(T.data.copy(I),N-=T.data.length;T=T.next;){var D=T.data,M=N>D.length?D.length:N;if(D.copy(I,I.length-N,0,M),0==(N-=M)){M===D.length?(++P,T.next?this.head=T.next:this.head=this.tail=null):(this.head=T,T.data=D.slice(M));break}++P}return this.length-=P,I}},{key:U,value:function(N,I){return B(this,D({},I,{depth:0,customInspect:!1}))}}]),N}()},528:function(N){"use strict";function I(N,I){P(N,I),T(N)}function T(N){N._writableState&&!N._writableState.emitClose||(!N._readableState||N._readableState.emitClose)&&N.emit("close")}function P(N,I){N.emit("error",I)}N.exports={destroy:function(N,M){var R=this,L=this._readableState&&this._readableState.destroyed,$=this._writableState&&this._writableState.destroyed;return L||$?M?M(N):N&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,D.nextTick(P,this,N)):D.nextTick(P,this,N)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(N||null,function(N){!M&&N?R._writableState?R._writableState.errorEmitted?D.nextTick(T,R):(R._writableState.errorEmitted=!0,D.nextTick(I,R,N)):D.nextTick(I,R,N):M?(D.nextTick(T,R),M(N)):D.nextTick(T,R)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(N,I){var T=N._readableState,P=N._writableState;
584T&&T.autoDestroy||P&&P.autoDestroy?N.destroy(I):N.emit("error",I)}}},134:function(N,I,T){"use strict";var P=T(329).F.ERR_STREAM_PREMATURE_CLOSE;function D(N){var I=!1;return function(){if(!I){I=!0;for(var T=arguments.length,P=Array(T),D=0;D<T;D++)P[D]=arguments[D];N.apply(this,P)}}}function M(){}function R(N){return N.setHeader&&"function"==typeof N.abort}function L(N,I,T){if("function"==typeof I)return L(N,null,I);I||(I={}),T=D(T||M);var $=I.readable||!1!==I.readable&&N.readable,F=I.writable||!1!==I.writable&&N.writable,B=function(){N.writable||H()},U=N._writableState&&N._writableState.finished,H=function(){F=!1,U=!0,$||T.call(N)},z=N._readableState&&N._readableState.endEmitted,W=function(){$=!1,z=!0,F||T.call(N)},q=function(I){T.call(N,I)},G=function(){var I;return $&&!z?(N._readableState&&N._readableState.ended||(I=new P),T.call(N,I)):F&&!U?(N._writableState&&N._writableState.ended||(I=new P),T.call(N,I)):void 0},K=function(){N.req.on("finish",H)};return R(N)?(N.on("complete",H),N.on("abort",G),N.req?K():N.on("request",K)):F&&!N._writableState&&(N.on("end",B),N.on("close",B)),N.on("end",W),N.on("finish",H),!1!==I.error&&N.on("error",q),N.on("close",G),function(){N.removeListener("complete",H),N.removeListener("abort",G),N.removeListener("request",K),N.req&&N.req.removeListener("finish",H),N.removeListener("end",B),N.removeListener("close",B),N.removeListener("finish",H),N.removeListener("end",W),N.removeListener("error",q),N.removeListener("close",G)}}N.exports=L},812:function(N,I,T){"use strict";function P(N,I,T,P,D,M,R){try{var L=N[M](R),$=L.value}catch(N){T(N);return}L.done?I($):Promise.resolve($).then(P,D)}function D(N){return function(){var I=this,T=arguments;return new Promise(function(D,M){var R=N.apply(I,T);function L(N){P(R,D,M,L,$,"next",N)}function $(N){P(R,D,M,L,$,"throw",N)}L(void 0)})}}function M(N,I){var T=Object.keys(N);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(N);I&&(P=P.filter(function(I){return Object.getOwnPropertyDescriptor(N,I).enumerable})),T.push.apply(T,P)}return T}function R(N){for(var I=1;I<arguments.length;I++){var T=null!=arguments[I]?arguments[I]:{};I%2?M(Object(T),!0).forEach(function(I){L(N,I,T[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(T)):M(Object(T)).forEach(function(I){Object.defineProperty(N,I,Object.getOwnPropertyDescriptor(T,I))})}return N}function L(N,I,T){return I in N?Object.defineProperty(N,I,{value:T,enumerable:!0,configurable:!0,writable:!0}):N[I]=T,N}var $=T(329).F.ERR_INVALID_ARG_TYPE;N.exports=function(N,I,T){if(I&&"function"==typeof I.next)P=I;else if(I&&I[Symbol.asyncIterator])P=I[Symbol.asyncIterator]();else if(I&&I[Symbol.iterator])P=I[Symbol.iterator]();else throw new $("iterable",["Iterable"],I);var P,M=new N(R({objectMode:!0},T)),L=!1;function F(){return B.apply(this,arguments)}function B(){return(B=D(function*(){try{var N=yield P.next(),I=N.value;N.done?M.push(null):M.push((yield I))?F():L=!1}catch(N){M.destroy(N)}})).apply(this,arguments)}return M._read=function(){L||(L=!0,F())},M}},694:function(N,I,T){"use strict";function P(N){var I=!1;return function(){I||(I=!0,N.apply(void 0,arguments))}}var D,M=T(329).F,R=M.ERR_MISSING_ARGS,L=M.ERR_STREAM_DESTROYED;function $(N){if(N)throw N}function F(N){return N.setHeader&&"function"==typeof N.abort}function B(N,I,M,R){R=P(R);var $=!1;N.on("close",function(){$=!0}),void 0===D&&(D=T(134)),D(N,{readable:I,writable:M},function(N){if(N)return R(N);$=!0,R()});var B=!1;return function(I){if(!$&&!B){if(B=!0,F(N))return N.abort();if("function"==typeof N.destroy)return N.destroy();R(I||new L("pipe"))}}}function U(N){N()}function H(N,I){return N.pipe(I)}function z(N){return N.length&&"function"==typeof N[N.length-1]?N.pop():$}N.exports=function(){for(var N,I=arguments.length,T=Array(I),P=0;P<I;P++)T[P]=arguments[P];var D=z(T);if(Array.isArray(T[0])&&(T=T[0]),T.length<2)throw new R("streams");var M=T.map(function(I,P){var R=P<T.length-1;return B(I,R,P>0,function(I){N||(N=I),I&&M.forEach(U),R||(M.forEach(U),D(N))})});return T.reduce(H)}},771:function(N,I,T){"use strict";var P=T(329).F.ERR_INVALID_OPT_VALUE;function D(N,I,T){return null!=N.highWaterMark?N.highWaterMark:I?N[T]:null}N.exports={getHighWaterMark:function(N,I,T,M){var R=D(I,M,T);if(null!=R){if(!(isFinite(R)&&Math.floor(R)===R)||R<0)throw new P(M?T:"highWaterMark",R);return Math.floor(R)}return N.objectMode?16:16384}}},120:function(N,I,T){N.exports=T(203)},56:function(N,I,T){var P=T(181),D=P.Buffer;function M(N,I){for(var T in N)I[T]=N[T]}function R(N,I,T){return D(N,I,T)}D.from&&D.alloc&&D.allocUnsafe&&D.allocUnsafeSlow?N.exports=P:(M(P,I),I.Buffer=R),R.prototype=Object.create(D.prototype),M(D,R),R.from=function(N,I,T){if("number"==typeof N)throw TypeError("Argument must not be a number");return D(N,I,T)},R.alloc=function(N,I,T){if("number"!=typeof N)throw TypeError("Argument must be a number");var P=D(N);return void 0!==I?"string"==typeof T?P.fill(I,T):P.fill(I):P.fill(0),P},R.allocUnsafe=function(N){if("number"!=typeof N)throw TypeError("Argument must be a number");return D(N)},R.allocUnsafeSlow=function(N){if("number"!=typeof N)throw TypeError("Argument must be a number");
vendor: 1,602 bytes, line 584
584return P.SlowBuffer(N)}},854:function(N,I,T){N.exports=D;var P=T(434).EventEmitter;function D(){P.call(this)}T(638)(D,P),D.Readable=T(276),D.Writable=T(732),D.Duplex=T(686),D.Transform=T(586),D.PassThrough=T(512),D.finished=T(134),D.pipeline=T(694),D.Stream=D,D.prototype.pipe=function(N,I){var T=this;function D(I){N.writable&&!1===N.write(I)&&T.pause&&T.pause()}function M(){T.readable&&T.resume&&T.resume()}T.on("data",D),N.on("drain",M),N._isStdio||I&&!1===I.end||(T.on("end",L),T.on("close",$));var R=!1;function L(){R||(R=!0,N.end())}function $(){R||(R=!0,"function"==typeof N.destroy&&N.destroy())}function F(N){if(B(),0===P.listenerCount(this,"error"))throw N}function B(){T.removeListener("data",D),N.removeListener("drain",M),T.removeListener("end",L),T.removeListener("close",$),T.removeListener("error",F),N.removeListener("error",F),T.removeListener("end",B),T.removeListener("close",B),N.removeListener("close",B)}return T.on("error",F),N.on("error",F),T.on("end",B),T.on("close",B),N.on("close",B),N.emit("pipe",T),N}},319:function(N,I,T){"use strict";var P=T(56).Buffer,D=P.isEncoding||function(N){switch((N=""+N)&&N.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function M(N){var I;if(!N)return"utf8";for(;;)switch(N){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return N;default:if(I)return;N=(""+N).toLowerCase(),I=!0}
584}function R(N){var I=M(N);if("string"!=typeof I&&(P.isEncoding===D||!D(N)))throw Error("Unknown encoding: "+N);return I||N}function L(N){var I;switch(this.encoding=R(N),this.encoding){case"utf16le":this.text=W,this.end=q,I=4;break;case"utf8":this.fillLast=U,I=4;break;case"base64":this.text=G,this.end=K,I=3;break;default:this.write=V,this.end=Y;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=P.allocUnsafe(I)}function $(N){return N<=127?0:N>>5==6?2:N>>4==14?3:N>>3==30?4:N>>6==2?-1:-2}function F(N,I,T){var P=I.length-1;if(P<T)return 0;var D=$(I[P]);return D>=0?(D>0&&(N.lastNeed=D-1),D):--P<T||-2===D?0:(D=$(I[P]))>=0?(D>0&&(N.lastNeed=D-2),D):--P<T||-2===D?0:(D=$(I[P]))>=0?(D>0&&(2===D?D=0:N.lastNeed=D-3),D):0}function B(N,I,T){if((192&I[0])!=128)return N.lastNeed=0,"�";if(N.lastNeed>1&&I.length>1){if((192&I[1])!=128)return N.lastNeed=1,"�";if(N.lastNeed>2&&I.length>2&&(192&I[2])!=128)return N.lastNeed=2,"�"}}function U(N){var I=this.lastTotal-this.lastNeed,T=B(this,N,I);return void 0!==T?T:this.lastNeed<=N.length?(N.copy(this.lastChar,I,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(N.copy(this.lastChar,I,0,N.length),this.lastNeed-=N.length)}function H(N,I){var T=F(this,N,I);if(!this.lastNeed)return N.toString("utf8",I);this.lastTotal=T;var P=N.length-(T-this.lastNeed);return N.copy(this.lastChar,0,P),N.toString("utf8",I,P)}function z(N){var I=N&&N.length?this.write(N):"";return this.lastNeed?I+"�":I}function W(N,I){if((N.length-I)%2==0){var T=N.toString("utf16le",I);if(T){var P=T.charCodeAt(T.length-1);if(P>=55296&&P<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=N[N.length-2],this.lastChar[1]=N[N.length-1],T.slice(0,-1)}return T}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=N[N.length-1],N.toString("utf16le",I,N.length-1)}function q(N){var I=N&&N.length?this.write(N):"";if(this.lastNeed){var T=this.lastTotal-this.lastNeed;return I+this.lastChar.toString("utf16le",0,T)}return I}function G(N,I){var T=(N.length-I)%3;return 0===T?N.toString("base64",I):(this.lastNeed=3-T,this.lastTotal=3,1===T?this.lastChar[0]=N[N.length-1]:(this.lastChar[0]=N[N.length-2],this.lastChar[1]=N[N.length-1]),N.toString("base64",I,N.length-T))}function K(N){var I=N&&N.length?this.write(N):"";return this.lastNeed?I+this.lastChar.toString("base64",0,3-this.lastNeed):I}function V(N){return N.toString(this.encoding)}function Y(N){return N&&N.length?this.write(N):""}I.I=L,L.prototype.write=function(N){var I,T;if(0===N.length)return"";if(this.lastNeed){if(void 0===(I=this.fillLast(N)))return"";T=this.lastNeed,this.lastNeed=0}else T=0;return T<N.length?I?I+this.text(N,T):this.text(N,T):I||""},L.prototype.end=z,L.prototype.text=H,L.prototype.fillLast=function(N){if(this.lastNeed<=N.length)return N.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);N.copy(this.lastChar,this.lastTotal-this.lastNeed,0,N.length),this.lastNeed-=N.length}},774:function(N){function I(N){try{if(!T.g.localStorage)return!1}catch(N){return!1}var I=T.g.localStorage[N];return null!=I&&"true"===String(I).toLowerCase()}N.exports=function N(N,T){if(I("noDeprecation"))return N;var P=!1;return function(){if(!P){if(I("throwDeprecation"))throw Error(T);I("traceDeprecation")?console.trace(T):console.warn(T),P=!0}return N.apply(this,arguments)}}},181:function(N){"use strict";N.exports=T(82909)},434:function(N){"use strict";N.exports=T(95284)},203:function(N){"use strict";N.exports=T(95284).EventEmitter},23:function(N){"use strict";N.exports=T(68994)}},R={};function L(N){var I=R[N];if(void 0!==I)return I.exports;
584var T=R[N]={exports:{}},P=!0;try{M[N](T,T.exports,L),P=!1}finally{P&&delete R[N]}return T.exports}L.ab=P+"/",N.exports=L(854)},32586:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.URL=I.DNS=void 0;let P=T(60346),D=T(51935);var M=T(51935);function R(N,I,T,M){return(0,D.default)(80,P.default,N,I,T,M)}Object.defineProperty(I,"DNS",{enumerable:!0,get:function(){return M.DNS}}),Object.defineProperty(I,"URL",{enumerable:!0,get:function(){return M.URL}}),R.DNS=D.DNS,R.URL=D.URL,I.default=R},32705:(N,I,T)=>{"use strict";T.r(I),T.d(I,{useRelatedCaseStudies:()=>F});var P=T(29511),D=T(85609),M=T(14232),R=T(65212),L=T(60409),$=T(4695);let F=N=>{let{page:I}=(0,D.M5)(),[T,F]=(0,M.useState)((0,P.buildInitialResultList)(N?.caseStudiesListToDisplay)),B=T.length>0;return(0,M.useEffect)(()=>{let N=(0,P.idsMissingPreviewImage)(T);if(0===N.length)return;let D=I.locale??L.Xn;(async()=>{let I=await (0,$.in)(N,D);F(N=>(0,P.applyHeroFallbackImages)(N,I))})().catch(()=>R.A.caseStudy("Failed to fetch related case study hero fallback images"))},[]),{resultList:T,showStatic:B}}},32882:(N,I,T)=>{"use strict";T.d(I,{S:()=>ec});let P={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},D=(N,I,T)=>{let D,M=P[N];if(D="string"==typeof M?M:1===I?M.one:M.other.replace("{{count}}",String(I)),T?.addSuffix)if(T.comparison&&T.comparison>0)return"over "+D;else return D+" geleden";return D};var M=T(71523);let R={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.y"},L={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},$={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},F={date:(0,M.k)({formats:R,defaultWidth:"full"}),time:(0,M.k)({formats:L,defaultWidth:"full"}),dateTime:(0,M.k)({formats:$,defaultWidth:"full"})},B={lastWeek:"'vorige' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},U=(N,I,T,P)=>B[N];var H=T(38505);let z={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},W={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},q={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},G={narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},K={narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middag",morning:"'s ochtends",afternoon:"'s namiddags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middag",morning:"'s ochtends",afternoon:"'s namiddags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middag",morning:"'s ochtends",afternoon:"'s namiddags",evening:"'s avonds",night:"'s nachts"}},V={ordinalNumber:(N,I)=>Number(N)+"e",era:(0,H.o)({values:z,defaultWidth:"wide"}),quarter:(0,H.o)({values:W,defaultWidth:"wide",argumentCallback:N=>N-1}),month:(0,H.o)({values:q,defaultWidth:"wide"}),day:(0,H.o)({values:G,defaultWidth:"wide"}),dayPeriod:(0,H.o)({values:K,defaultWidth:"wide"})};var Y=T(80663),J=T(85843);let Q=/^(\d+)e?/i,Z=/\d+/i,X={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},ee={any:[/^v/,/^n/]},et={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},er={any:[/1/i,/2/i,/3/i,/4/i]},en={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},ea={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},ei={narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},eo={narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},es={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},el={any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},ec={code:"nl-BE",formatDistance:D,formatLong:F,formatRelative:U,localize:V,match:{ordinalNumber:(0,J.K)({matchPattern:Q,parsePattern:Z,valueCallback:N=>parseInt(N,10)}),era:(0,Y.A)({matchPatterns:X,defaultMatchWidth:"wide",parsePatterns:ee,defaultParseWidth:"any"}),quarter:(0,Y.A)({matchPatterns:et,defaultMatchWidth:"wide",parsePatterns:er,defaultParseWidth:"any",valueCallback:N=>N+1}),month:(0,Y.A)({matchPatterns:en,defaultMatchWidth:"wide",parsePatterns:ea,defaultParseWidth:"any"}),day:(0,Y.A)({matchPatterns:ei,defaultMatchWidth:"wide",parsePatterns:eo,defaultParseWidth:"any"}),dayPeriod:(0,Y.A)({matchPatterns:es,defaultMatchWidth:"any",parsePatterns:el,defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}}},32920:(N,I,T)=>{"use strict";T.d(I,{$:()=>ef});var P=T(37876),D=T(10409),M=T(56375);let R=(N,I)=>new URL(N,I).toString(),L=(N,I,T)=>({top:`${N-T-12}px`,left:`${I}
584px`});var $=T(14232),F=T(42135);let B=({url:N})=>{let[I,T]=(0,$.useState)(!1),[P,D]=(0,$.useState)(N),M=(0,$.useRef)(null),L=(0,$.useRef)(null),B=(0,$.useRef)(null),U=(0,$.useRef)(null);(0,F.Wr)(M,()=>T(!1));let H=()=>T(N=>!N);return(0,$.useEffect)(()=>{let I=N=>{"Escape"===N.key&&T(!1)};return D(R(N,window.location.href)),document.addEventListener("keydown",I),()=>{document.removeEventListener("keydown",I)}},[]),(0,$.useEffect)(()=>{I&&U.current&&U.current.focus()},[I]),{isOpen:I,fullUrl:P,parentRef:M,buttonRef:L,popupRef:B,firstShareButtonRef:U,toggleOpen:H}};var U=T(98477),H=T(95062),z=T.n(H),W=!!("u">typeof window&&window.document&&window.document.createElement),q=function(){function N(N,I){for(var T=0;T<I.length;T++){var P=I[T];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(N,P.key,P)}}return function(I,T,P){return T&&N(I.prototype,T),P&&N(I,P),I}}();function G(N,I){if(!(N instanceof I))throw TypeError("Cannot call a class as a function")}function K(N,I){if(!N)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&("object"==typeof I||"function"==typeof I)?I:N}function V(N,I){if("function"!=typeof I&&null!==I)throw TypeError("Super expression must either be null or a function, not "+typeof I);N.prototype=Object.create(I&&I.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(N,I):N.__proto__=I)}var Y=function(N){function I(){return G(this,I),K(this,(I.__proto__||Object.getPrototypeOf(I)).apply(this,arguments))}return V(I,N),q(I,[{key:"componentWillUnmount",value:function(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}},{key:"render",value:function(){return W?(this.props.node||this.defaultNode||(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),U.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}]),I}($.Component);Y.propTypes={children:z().node.isRequired,node:z().any};let J=Y;var Q=function(){function N(N,I){for(var T=0;T<I.length;T++){var P=I[T];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(N,P.key,P)}}return function(I,T,P){return T&&N(I.prototype,T),P&&N(I,P),I}}();function Z(N,I){if(!(N instanceof I))throw TypeError("Cannot call a class as a function")}function X(N,I){if(!N)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&("object"==typeof I||"function"==typeof I)?I:N}function ee(N,I){if("function"!=typeof I&&null!==I)throw TypeError("Super expression must either be null or a function, not "+typeof I);N.prototype=Object.create(I&&I.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(N,I):N.__proto__=I)}var et=function(N){function I(){return Z(this,I),X(this,(I.__proto__||Object.getPrototypeOf(I)).apply(this,arguments))}return ee(I,N),Q(I,[{key:"componentDidMount",value:function(){this.renderPortal()}},{key:"componentDidUpdate",value:function(N){this.renderPortal()}},{key:"componentWillUnmount",value:function(){U.unmountComponentAtNode(this.defaultNode||this.props.node),this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null,this.portal=null}},{key:"renderPortal",value:function(N){this.props.node||this.defaultNode||(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode));var I=this.props.children;"function"==typeof this.props.children.type&&(I=$.cloneElement(this.props.children)),this.portal=U.unstable_renderSubtreeIntoContainer(this,I,this.props.node||this.defaultNode)}},{key:"render",value:function(){return null}}]),I}($.Component);let er=et;et.propTypes={children:z().node.isRequired,node:z().any};var en=void 0;let ea=en=U.createPortal?J:er;var ei=T(28823),eo=T(92678),es=T(36379);let el=({url:N,title:I="",shareButtonText:T,variant:M,background:R})=>{let{isOpen:$,fullUrl:F,parentRef:U,buttonRef:H,popupRef:z,firstShareButtonRef:W,toggleOpen:q}=B({url:N}),G=L(H.current?.offsetTop??0,H.current?.offsetLeft??0,z.current?.clientHeight??0);return(0,P.jsxs)("div",{ref:U,className:"pointer-events-auto relative inline-block",children:[(0,P.jsx)(eo.Button,{ref:H,id:"share-button",variant:M,background:R,className:"h-12",plainText:T||"
584Share",onClick:N=>{N.preventDefault(),N.stopPropagation(),q()}}),U.current&&(0,P.jsx)(ea,{node:U.current,children:(0,P.jsxs)(D.a,{ref:z,className:(0,es.cn)("absolute z-10 flex gap-4 rounded-md bg-white p-4 shadow-md transition-opacity duration-300 *:size-8",{"pointer opacity-100":$,"pointer-events-none opacity-0":!$}),style:G,role:"dialog","aria-labelledby":"share-button","aria-modal":"true","aria-hidden":!$,children:[(0,P.jsx)(ei.Ot,{ref:W,name:"share-button-email",className:"flex cursor-pointer items-center justify-center",subject:I,url:F,children:(0,P.jsx)(ei.aZ,{borderRadius:50})}),(0,P.jsx)(ei.uI,{name:"share-button-facebook",className:"flex cursor-pointer items-center justify-center",title:I,url:F,children:(0,P.jsx)(ei.ik,{borderRadius:50})}),(0,P.jsx)(ei.r6,{name:"share-button-x",className:"flex cursor-pointer items-center justify-center",title:I,url:F,children:(0,P.jsx)(ei.uv,{iconFillColor:"white",borderRadius:50})}),(0,P.jsx)(ei.Kz,{name:"share-button-whatsapp",className:"flex cursor-pointer items-center justify-center",title:I,url:F,children:(0,P.jsx)(ei.Y4,{borderRadius:50})}),(0,P.jsx)(ei.wk,{name:"share-button-linkedin",className:"flex cursor-pointer items-center justify-center",title:I,url:F,children:(0,P.jsx)(ei._z,{borderRadius:50})})]})})]})};var ec=T(6807),eu=T(48230),ed=T.n(eu);let ef=({vacancyLink:N,vacancyTitle:I,weeklyWorkHours:T,vacancyLocation:R,vacancyEndDate:L,shareButtonText:$="",vacancyFieldsToDisplay:F})=>{let B=!F||F.includes("location"),U=!F||F.includes("workingHours"),H=!F||F.includes("endDate");return(0,P.jsxs)(D.a,{className:"flex flex-col rounded-sm border-b-2 border-accent-iron text-d-h4 text-brunel-dark-grey md:items-start md:border md:bg-white md:shadow md:hover:bg-accent-spring-wood lg:min-h-48.5",children:[(0,P.jsxs)(ed(),{prefetch:!1,target:"_blank",href:`${N?.value?.href}`,className:(0,es.cn)("flex w-full flex-col gap-4 px-0 py-4 md:rounded-sm md:px-4 md:focus:outline-[1.5px] md:focus:outline-dashed lg:px-6",{"flex-1":!($&&N?.value?.href)}),children:[(0,P.jsx)(ec.o,{type:"h4",textField:I,className:"mb-0 w-fit overflow-hidden font-medium! text-ellipsis underline decoration-3 underline-offset-3 md:no-underline md:hover:underline md:hover:decoration-3 md:hover:underline-offset-3 md:focus:underline md:focus:decoration-3 md:focus:underline-offset-3 lg:max-w-42.5"}),(0,P.jsxs)(D.a,{className:"flex flex-col text-d-body-small! text-ui-grey",children:[B&&(0,P.jsxs)(D.a,{className:"mb-px flex items-center whitespace-break-spaces",children:[(0,P.jsx)(M.I,{className:"mr-1",name:"location",size:"small",color:"ui-grey"}),(0,P.jsx)(ec.o,{type:"small",className:"text-d-body-small",textField:R})]}),U&&T?.value&&(0,P.jsxs)(D.a,{className:"my-px flex items-center whitespace-break-spaces",children:[(0,P.jsx)(M.I,{className:"mr-1",name:"clock",size:"small",color:"ui-grey"}),(0,P.jsx)(ec.o,{type:"small",className:"text-d-body-small",textField:T})]}),H&&(0,P.jsxs)(D.a,{className:"mt-px flex items-center whitespace-break-spaces",children:[(0,P.jsx)(M.I,{className:"mr-1",name:"calendar",size:"small",color:"ui-grey"}),(0,P.jsx)(ec.o,{type:"small",className:"text-d-body-small",textField:L})]})]})]}),$&&N?.value?.href&&(0,P.jsx)(D.a,{className:"mt-auto px-0 py-4 md:px-4 lg:px-6",children:(0,P.jsx)(el,{title:String(I?.value),url:N?.value?.href,shareButtonText:$,variant:"secondary"})})]})}},33076:(N,I,T)=>{"use strict";T.d(I,{U:()=>D,l:()=>P});let P=N=>!!(N?.value?.href&&("internal"===N.value.linktype||"external"===N.value.linktype||"media"===N.value.linktype||"mailto"===N.value.linktype)),D=N=>N?.value?.href??""},33433:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.version=I.validate=I.v7=I.v6ToV1=I.v6=I.v5=I.v4=I.v3=I.v1ToV6=I.v1=I.stringify=I.parse=I.NIL=I.MAX=void 0;var P=T(42983);Object.defineProperty(I,"MAX",{enumerable:!0,get:function(){return P.default}});var D=T(22642);Object.defineProperty(I,"NIL",{enumerable:!0,get:function(){return D.default}});var M=T(10594);Object.defineProperty(I,"parse",{enumerable:!0,get:function(){return M.default}});var R=T(72736);Object.defineProperty(I,"stringify",{enumerable:!0,get:function(){return R.default}});var L=T(13486);Object.defineProperty(I,"v1",{enumerable:!0,get:function(){return L.default}});var $=T(47783);Object.defineProperty(I,"v1ToV6",{enumerable:!0,get:function(){return $.default}});var F=T(25228);Object.defineProperty(I,"v3",{enumerable:!0,get:function(){return F.default}});var B=T(7957);Object.defineProperty(I,"v4",{enumerable:!0,get:function(){return B.default}});var U=T(32586);Object.defineProperty(I,"v5",{enumerable:!0,get:function(){return U.default}});var H=T(78267);Object.defineProperty(I,"v6",{enumerable:!0,get:function(){return H.default}});var z=T(47643);Object.defineProperty(I,"v6ToV1",{enumerable:!0,get:function(){return z.default}});var W=T(74120);Object.defineProperty(I,"v7",{enumerable:!0,get:function(){return W.default}});var q=T(73593);Object.defineProperty(I,"validate",{enumerable:!0,get:function(){return q.default}});var G=T(7877);Object.defineProperty(I,"version",{enumerable:!0,get:function(){return G.default}})},33455:(N,I,T)=>{"use strict";T.r(I),T.d(I,{useBlogOverviewResults:()=>$});var P=T(14232),D=T(85728),M=T(65212),R=T(2582),L=T(98176);let $=({data:N,locale:I,categories:T,allCategoriesLabel:$})=>{let{setToast:F}=(0,P.useContext)(D._t),B=N?.blogItemId??"",U=(0,P.useRef)(!0),[H,z]=(0,P.useState)(!0),[W,q]=(0,P.useState)([$]),[G,K]=(0,P.useState)([]),[V,Y]=(0,P.useState)({endCursor:"",hasNext:!1}),[J,Q]=(0,P.useState)(0),Z=(0,P.useCallback)(N=>{if(W.includes(N)){let I=W.filter(I=>I!==N);q([...I,...0===I.length?[$]:[]])}else N===$?q([$]):q([...W.filter(N=>N!==$)].concat(N))},[$,W]),X=(0,P.useCallback)(async()=>
584{if(N?.blogItemId){z(!0);let T=await (0,R.K4)(N?.blogItemId,L.RM,I).catch(T=>{M.A.blog("Failed to fetch getBlogsData inside BlogOverview component",{...T,blogItemId:N?.blogItemId,language:I})}).finally(()=>z(!1));T&&(K([...T.blogs?.results??[]]),Y(T?.blogs?.pageInfo),Q(T?.blogs?.total??0))}},[N?.blogItemId,I]),ee=(0,P.useCallback)(async()=>{let P=[...W.map(N=>T.find(I=>I.blogCategoryName.value===N)?.id??"")];if(N?.blogItemId){z(!0);let T=await (0,R.$3)(N?.blogItemId,B.hexToGuid(!0),L.RM,P.filter(N=>void 0!==N),I).catch(T=>{M.A.blog("Failed to fetch getBlogsDataByCategory inside BlogOverview component",{...T,blogItemId:N?.blogItemId,categoryIds:P,language:I})}).finally(()=>z(!1));K([...T?.blogs?.results??[]]),Y(T?.blogs?.pageInfo??{endCursor:"",hasNext:!1}),Q(T?.blogs?.total??0)}},[N,B,W,T,I]),et=(0,P.useCallback)(async()=>{if(N?.blogItemId&&V?.endCursor){let P=N?.categoryPageId?[N?.categoryPageId]:[...W.map(N=>T.find(I=>I.blogCategoryName.value===N)?.id??"")],D=await (0,R.ZF)(N?.blogItemId,L.RM,V?.endCursor,P?.filter(N=>""!==N),I).catch(T=>{F({data:{title:"Something went wrong",message:"Couldn't fetch the next blogs data."},open:!0,type:"error"}),M.A.blog("Failed to fetch getNextBlogsData inside BlogOverview component",{...T,blogItemId:N?.blogItemId,categoryIds:P,language:I})});D?(K([...G,...D.blogs?.results??[]]),Y(D?.blogs?.pageInfo),Q(D?.blogs?.total??0)):M.A.blog("Failed to fetch blog data while executing getNextResults() inside BlogOverview component")}},[N?.blogItemId,N?.categoryPageId,V?.endCursor,W,T,G,I,F]);return(0,P.useLayoutEffect)(()=>{if(N){if(N.blog?.blogs&&U.current){U.current=!1,K([...N.blog.blogs.results??[]]),Y(N.blog.blogs.pageInfo??{endCursor:"",hasNext:!1}),Q(N.blog.blogs.total??0),z(!1);return}N.categoryPageId||(W.includes($)?X():ee())}},[N,W,$,X,ee]),{loading:H,results:G,pageInfo:V,total:J,selectedCategories:W,updateSelectedCategories:Z,getNextResults:et}}},33468:(N,I,T)=>{var P=T(50466);N.exports=function(N,I,T,D,M){var R=P(N,I,T,D,M);return R.next().then(function(N){return N.done?N.value:R.next()})},N.exports.__esModule=!0,N.exports.default=N.exports},33657:(N,I,T)=>{"use strict";T.d(I,{q:()=>rc});var P,D,M,R,L,$,F,B,U,H,z,W,q,G,K,V,Y,J,Q,Z,X,ee,et,er,en,ea,ei,eo,es,el,ec,eu={};T.r(eu),T.d(eu,{rC:()=>eO,vv:()=>eP,RL:()=>eD,hO:()=>eL});var ed={};T.r(ed),T.d(ed,{$u:()=>ew.$u});var ef={};T.r(ef),T.d(ef,{ClientConfiguration:()=>tj,ContentTracking:()=>tb,CookieManagement:()=>tv,CrossDomainTracking:()=>tC,CustomDimensions:()=>tw,CustomEvent:()=>ty,DataLayer:()=>tu,DownloadAndOutlink:()=>tx,ErrorTracking:()=>tk,GoalConversions:()=>tE,Heartbeat:()=>tO,Miscellaneous:()=>tN,PageViews:()=>tg,SiteSearch:()=>tS,UserManagement:()=>t_,default:()=>tD,eCommerce:()=>tA});var eh=T(37876),ep=T(85728),em=T(60409),eg=T(57910),ey=T(69228),eb=T(14232),ev=T(12130),ew=T(16580);let{Ty:ex,UU:eA}=T(47804),eE="component:generation:import-map",eS="component:generation:component-props",e_="component:generation:component-preview",ek="component:generation:component-preview-error",eC="component:generation:error";function ej(N,I){let T=[],P={modules:[],exports:[]};return N.forEach(N=>{let D=I.find(I=>I.module===N.module);if(!D)return void P.modules.push({module:N.module,alias:N.alias});let M=D.exports.find(I=>I.name===N.export);return M?T.push({name:N.alias,value:M.value}):void P.exports.push({alias:N.alias,export:N.export,module:N.module})}),{successful:T,missing:P}}(P=G||(G={})).Render="render",P.RenderInit="render-init",P.ImportMapMissing="import-map-missing",P.ImportMapLoad="import-map-load-error",P.GeneratedComponentFetch="generated-component-fetch-error";let eO=(N,I)=>{if(!window)return;let T=T=>{let P=T.data;try{if(!(0,ew.$r)(T,e_))return;console.debug("Component Library: message received",P);let D=eI(N,P.message);eN(P.message.styles.content),I(null,D)}catch(N){eL(P.message.uid,N,G.RenderInit),I(N,null)}};return window.addEventListener("message",T),()=>{window.removeEventListener("message",T)}};function eN(N){let I="content-sdk-style-preview",T=document.getElementById(I);T&&T.remove();let P=document.createElement("style");P.setAttribute("id",I),P.innerHTML=N,document.head.appendChild(P)}let eI=(N,I)=>{let T=ej(I.imports,N);if(T.missing.modules.length>0||T.missing.exports.length>0){let N="";
584throw T.missing.modules.forEach(I=>{N+=`Missing module: '${I.module}' with alias: '${I.alias}' 585`}),T.missing.exports.forEach(I=>{let T=I.export!==I.alias?` with alias: '${I.alias}'`:"";N+=`Missing export: '${I.export}' from module: '${I.module}'${T} 586`}),N}let P=T.successful.map(N=>N.name),D=T.successful.map(N=>N.value),M={Component:null};return Function("exports",I.styles.styleImport.name,...P,I.code.content)(M,I.styles.styleImport.content,...D),M.Component};function eT(N,I,T){switch(T){case G.Render:case G.RenderInit:return{name:ek,message:{uid:N,error:I,type:T}};default:return{name:eC,message:{uid:N,error:I,type:T}}}}function eP(N,I={},T={}){return{name:eS,message:{uid:N,fields:I,parameters:T}}}function eD(N,I){return{name:eE,message:{uid:N,importMap:eR(I)?I:eM(I)}}}function eM(N){return N.map(N=>({module:N.module,exports:N.exports.map(N=>N.name)}))}function eR(N){return Array.isArray(N)&&N.length>0&&"string"==typeof N[0].module&&Array.isArray(N[0].exports)&&"string"==typeof N[0].exports[0]}let eL=(N,I,T)=>{let P=eT(N,I,T);console.error(`Component Library: sending error event. ${eA.CONTACT_SUPPORT}`,P),"u">typeof window&&(window.parent&&window.parent!==window?window.parent:window).postMessage(P,"*")};var e$=T(85609),eF=T(99514),eB=T(51958);class eU extends eb.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidUpdate(N){N.renderKey!==this.props.renderKey&&this.setState({hasError:!1})}componentDidCatch(N){eL(this.props.uid,N,G.Render)}render(){return this.state.hasError?eb.createElement("div",null,"Error during component rendering"):eb.createElement(eb.Suspense,null,this.props.children)}}var eH=T(59764);let{RL:ez,vv:eW,rC:eq,hO:eG}=eu,{$u:eK}=ed,eV=()=>{var N,I;let{page:T,loadImportMap:P}=(0,e$.M5)(),D=T.layout.sitecore.route,M=null==(N=null==D?void 0:D.placeholders[ev.TB])?void 0:N[0],R=null==M?void 0:M.uid,{isDesignLibrary:L}=T.mode,$=null==(I=T.mode.designLibrary)?void 0:I.isVariantGeneration,[F,B]=(0,eb.useState)({fields:null==M?void 0:M.fields,params:null==M?void 0:M.params}),[U,H]=(0,eb.useState)(0),[z,W]=(0,eb.useState)(null),q=!!z;return L?R?((0,eb.useEffect)(()=>{eK((0,ew.mv)(ew.gn.READY,R)),$||requestAnimationFrame(()=>{H(N=>0===N?N+1:N)});let N=(0,ew.sI)(M,N=>{B({fields:N.fields,params:N.params}),H(N=>N+1)});return()=>N&&N()},[$,M,R]),(0,eb.useEffect)(()=>{0!==U&&eK((0,ew.mv)(ew.gn.RENDERED,R))},[U,R]),(0,eb.useEffect)(()=>{let N;if(!L||!$)return;let I=!1;return(async()=>{let T;if(!P)return eG(R,"No loadImportMap provided",G.ImportMapMissing);try{T=(await P()).default}catch(N){eG(R,`Error loading import map: ${N}`,G.ImportMapLoad);return}I||(N=eq(T,(N,I)=>{N||(W(()=>I),H(N=>N+1))}),eK(ez(R,T)),eK(eW(R,F.fields,F.params)))})(),()=>{I=!0,N&&N()}},[L,$,R,P,F]),eb.createElement("main",null,q?eb.createElement(eU,{uid:R,renderKey:U},eb.createElement(eF.f,{rendering:M},eb.createElement(z,{fields:F.fields,params:F.params,key:U}))):eb.createElement("div",{id:ev.BQ},D&&eb.createElement(eB.O,{name:ev.TB,rendering:D,key:U})))):eb.createElement(eH.A,{message:"Rendering UID is missing in the rendering data"}):null};var eY=T(55333),eJ=T(77328),eQ=T.n(eJ),eZ=T(89099),eX=T(30463),e0=T(77501);let e1=()=>{var N;let{page:{mode:I,layout:T},api:P}=(0,e$.M5)(),{clientData:D,clientScripts:M}=T.sitecore.context;if(I.isNormal||I.isPreview)return eb.createElement(eb.Fragment,null);if(I.isDesignLibrary){let I=new Date,T=String(I.getUTCHours()).padStart(2,"0"),D=String(I.getUTCDate()).padStart(2,"0"),M=String(I.getUTCMonth()+1).padStart(2,"0"),R=String(I.getUTCFullYear()),L=`${T}-${D}-${M}-${R}`,$=`${(0,ew.$O)(null==(N=null==P?void 0:P.edge)?void 0:N.edgeUrl)}?cb=${L}`;return eb.createElement(eb.Fragment,null,eb.createElement("script",{src:$,suppressHydrationWarning:!0}))}let R=Object.assign(Object.assign({},D),(0,eY.Z1)());return eb.createElement(eb.Fragment,null,null==M?void 0:M.map((N,I)=>eb.createElement("script",{src:N,key:I})),Object.keys(R).map(N=>eb.createElement("script",{key:N,id:N,type:"application/json",dangerouslySetInnerHTML:{__html:JSON.stringify(R[N])}})))};var e2=T(5117),e3=T(32479),e4=T(25602);let e5=()=>{let{page:{layout:N,siteName:I,mode:T}}=(0,e$.M5)(),{route:P,context:D}=N.sitecore,M=()=>!1;return(0,eb.useEffect)(()=>
586{if(!T.isNormal||!P?.itemId||M())return;let N=P.itemLanguage||eX.A.defaultLanguage,I=eX.A.personalize?.scope,R=e3.E8.getPageVariantId(P.itemId,N,D.variantId,I);(0,e4.pageView)({channel:"WEB",currency:"USD",page:P.name,pageVariantId:R,language:N}).catch(N=>console.debug(N))},[T,P,D.variantId,I]),(0,eh.jsx)(eh.Fragment,{})};var e6=T(74218),e8=T(54587),e7=T.n(e8),e9=T(80811),te=T.n(e9);let tt=()=>{let N=N=>N.replace(".","\\.").replace(/\*/g,".*"),I=I=>{if(I.startsWith("http")){let T=new URL(I),P=te().images?.domains||[],D=te().images?.remotePatterns||[];return P.some(N=>T.hostname===N)||D.some(I=>I.protocol===T.protocol.slice(0,-1)&&RegExp("^"+N(I.hostname)+"$").test(T.hostname))}return!0};return e6.setElementImplementation("img",N=>{let{_children:T,src:P,alt:D,...M}=N;return(0,eh.jsx)(e7(),{height:1920,width:1200,unoptimized:!I(P),src:P,alt:D,...M})}),(0,eh.jsx)(eh.Fragment,{})},tr=()=>(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)(e2.A,{}),(0,eh.jsx)(e5,{}),(0,eh.jsx)(tt,{}),(0,eh.jsx)(e1,{}),(0,eh.jsx)(e0.IntractiveStoryEmbed,{})]}),tn=({layoutData:N,client:I,enableStyles:T,enableThemes:P})=>{try{let D=I.getHeadLinks(N,{enableStyles:T,enableThemes:P});if(0===D.length)return null;return(0,eh.jsx)(eQ(),{children:D.map(({rel:N,href:I})=>(0,eh.jsx)("link",{rel:N,href:I},I))})}catch(N){return null}};var ta=T(72679),ti=T(45105);T(99742);let to=N=>N.replace(/\/+$/,""),ts="dataLayer",tl=ts;function tc(N){tl=N}let tu=Object.freeze(Object.defineProperty({__proto__:null,push:function(N){return"object"!=typeof window[tl]&&(window[tl]=[]),tp&&console.log("DataLayer push",N),window[tl].push(N)},setDataLayerName:tc},Symbol.toStringTag,{value:"Module"}));function td(N){return"string"==typeof N?{dataLayerName:ts,nonce:N}:N||{dataLayerName:ts}}let tf=(N,I,T)=>{if(!N)return void console.error("Empty tracking code for Piwik Pro.");if(!I)return void console.error("Empty tracking URL for Piwik Pro.");if("u"<typeof window)return void console.error("Was not possible to access window. Make sure this module is running in a browser");let P=td(T);P.dataLayerName&&tc(P.dataLayerName);let D=document.createElement("script");D.id="PiwikPROInitializer",D.async=!0,P.nonce&&(D.nonce=P.nonce),D.text=th({containerId:N,containerUrl:I,dataLayerName:P.dataLayerName,nonceValue:P.nonce}),document.getElementsByTagName("body")[0].prepend(D)};function th({containerId:N,containerUrl:I,dataLayerName:T,nonceValue:P}){let D=T||ts,M=P?`,tags.nonce="${P}"`:"",R=to(I);return`(function(window, document, dataLayerName, id) { 587 window[dataLayerName]=window[dataLayerName]||[],window[dataLayerName].push({start:(new Date).getTime(),event:"stg.start"});var scripts=document.getElementsByTagName('script')[0],tags=document.createElement('script'); 588 function stgCreateCookie(a,b,c){var d="";if(c){var e=new Date;e.setTime(e.getTime()+24*c*60*60*1e3),d="; expires="+e.toUTCString();f="; SameSite=Strict"}document.cookie=a+"="+b+d+f+"; path=/"} 589 var isStgDebug=(window.location.href.match("stg_debug")||document.cookie.match("stg_debug"))&&!window.location.href.match("stg_disable_debug");stgCreateCookie("stg_debug",isStgDebug?1:"",isStgDebug?14:-1); 590 var qP=[];dataLayerName!=="dataLayer"&&qP.push("data_layer_name="+dataLayerName)${M},isStgDebug&&qP.push("stg_debug");var qPString=qP.length>0?("?"+qP.join("&")):""; 591 tags.async=!0,tags.src="${R}/"+id+".js"+qPString,scripts.parentNode.insertBefore(tags,scripts); 592 !function(a,n,i){a[n]=a[n]||{};for(var c=0;c<i.length;c++)!function(i){a[n][i]=a[n][i]||{},a[n][i].api=a[n][i].api||function(){var a=[].slice.call(arguments,0);"string"==typeof a[0]&&window[dataLayerName].push({event:n+"."+i+":"+a[0],parameters:[].slice.call(arguments,1)})}}(i[c])}(window,"ppms",["tm","cm"]); 593 })(window, document, '${D}', '${N}');`}let tp="u">typeof window&&window.IS_DEBUG||!1;function tm(N,I){return window._paq||(window._paq=[]),(null==I?void 0:I.skipSettingPageData)||(window._paq.push([ei.SET_CUSTOM_URL,window.location.href]),window._paq.push([ei.SET_DOCUMENT_TITLE,document.title])),tp&&console.log("Push",N),window._paq.push(N)}(D=K||(K={})).TRACK_ECOMMERCE_CART_UPDATE="trackEcommerceCartUpdate",D.TRACK_ECOMMERCE_ORDER="trackEcommerceOrder",D.REMOVE_ECOMMERCE_ITEM="removeEcommerceItem",D.SET_ECOMMERCE_VIEW="setEcommerceView",D.CLEAR_ECOMMERCE_CART="clearEcommerceCart",D.ADD_ECOMMERCE_ITEM="addEcommerceItem",(M=V||(V={})).ECOMMERCE_ADD_TO_CART="ecommerceAddToCart",M.ECOMMERCE_REMOVE_FROM_CART="ecommerceRemoveFromCart",M.ECOMMERCE_PRODUCT_DETAIL_VIEW="ecommerceProductDetailVie
593w",M.ECOMMERCE_CART_UPDATE="ecommerceCartUpdate",M.ECOMMERCE_ORDER="ecommerceOrder",(R=Y||(Y={})).DISABLE_COOKIES="disableCookies",R.ENABLE_COOKIES="enableCookies",R.DELETE_COOKIES="deleteCookies",R.SET_COOKIE_NAME_PREFIX="setCookieNamePrefix",R.SET_COOKIE_DOMAIN="setCookieDomain",R.SET_COOKIE_PATH="setCookiePath",R.SET_SECURE_COOKIE="setSecureCookie",R.SET_VISITOR_COOKIE_TIMEOUT="setVisitorCookieTimeout",R.SET_SESSION_COOKIE_TIMEOUT="setSessionCookieTimeout",R.SET_VISITOR_ID_COOKIE="setVisitorIdCookie",R.SET_REFERRAL_COOKIE_TIMEOUT="setReferralCookieTimeout",(L=J||(J={})).ALL_CONTENT_IMPRESSIONS="trackAllContentImpressions",L.VISIBLE_CONTENT_IMPRESSIONS="trackVisibleContentImpressions",L.CONTENT_IMPRESSIONS_WITH_NODE="trackContentImpressionsWithinNode",L.CONTENT_IMPRESSION="trackContentImpression",L.LOG_ALL_CONTENT_BLOCKS_ON_PAGE="logAllContentBlocksOnPage",L.CONTENT_INTERACTION_NODE="trackContentInteractionNode",L.CONTENT_INTERACTION="trackContentInteraction",($=Q||(Q={})).SET_CUSTOM_DIMENSION_VALUE="setCustomDimensionValue",$.DELETE_CUSTOM_DIMENSION="deleteCustomDimension",$.SET_CUSTOM_DIMENSION="setCustomDimension",(Z||(Z={})).CUSTOM_EVENT="trackEvent",(F=X||(X={})).LINK="trackLink",F.ENABLE_LINK_TRACKING="enableLinkTracking",F.SET_IGNORE_CLASSES="setIgnoreClasses",F.SET_LINK_CLASSES="setLinkClasses",F.SET_DOWNLOAD_CLASSES="setDownloadClasses",F.ADD_DOWNLOAD_CLASSES="addDownloadClasses",F.REMOVE_DOWNLOAD_CLASSES="removeDownloadClasses",F.SET_DOWNLOAD_EXTENSIONS="setDownloadExtensions",F.ADD_DOWNLOAD_EXTENSIONS="addDownloadExtensions",F.REMOVE_DOWNLOAD_EXTENSIONS="removeDownloadExtensions",F.SET_LINK_TRACKING_TIMER="setLinkTrackingTimer",(ee||(ee={})).GOAL="trackGoal",(et||(et={})).PAGE_VIEW="trackPageView",(er||(er={})).SEARCH="trackSiteSearch",(B=en||(en={})).ENABLE_CROSS_DOMAIN_LINKING="enableCrossDomainLinking",B.DISABLE_CROSS_DOMAIN_LINKING="disableCrossDomainLinking",B.SET_CROSS_DOMAIN_LINKING_TIMEOUT="setCrossDomainLinkingTimeout",B.IS_CROSS_DOMAIN_LINKING_ENABLED="isCrossDomainLinkingEnabled",B.GET_CROSS_DOMAIN_LINKING_URL_PARAMETER="getCrossDomainLinkingUrlParameter",B.CUSTOM_CROSS_DOMAIN_LINK_DECORATOR="customCrossDomainLinkDecorator",B.CUSTOM_CROSS_DOMAIN_LINK_VISITOR_ID_GETTER="customCrossDomainLinkVisitorIdGetter",(U=ea||(ea={})).SET_USER_ID="setUserId",U.RESET_USER_ID="resetUserId",U.SET_USER_IS_ANONYMOUS="setUserIsAnonymous",U.DEANONYMIZE_USER="deanonymizeUser",(H=ei||(ei={})).SET_CUSTOM_URL="setCustomUrl",H.SET_DOCUMENT_TITLE="setDocumentTitle",(z=eo||(eo={})).ENABLE_JS_ERROR_TRACKING="enableJSErrorTracking",z.TRACK_ERROR="trackError",(W=es||(es={})).SET_DOMAINS="setDomains",W.GET_DOMAINS="getDomains",(q=el||(el={})).ENABLE_HEARTBEAT_TIMER="enableHeartBeatTimer",q.DISABLE_HEARTBEAT_TIMER="disableHeartBeatTimer",(ec||(ec={})).SET_TRACKING_SOURCE_PROVIDER="setTrackingSourceProvider";let tg=Object.freeze(Object.defineProperty({__proto__:null,trackPageView:function(N){tm([et.PAGE_VIEW,...N?[N]:[]])}},Symbol.toStringTag,{value:"Module"})),ty=Object.freeze(Object.defineProperty({__proto__:null,trackEvent:function(N,I,T,P,D){let M=[N,I,T,P,D];tm([Z.CUSTOM_EVENT,...M])}},Symbol.toStringTag,{value:"Module"})),tb=Object.freeze(Object.defineProperty({__proto__:null,logAllContentBlocksOnPage:function(){tm([J.LOG_ALL_CONTENT_BLOCKS_ON_PAGE])},trackAllContentImpressions:function(){tm([J.ALL_CONTENT_IMPRESSIONS])},trackContentImpression:function(N,I,T){tm([J.CONTENT_IMPRESSION,N,I,T])},trackContentImpressionsWithinNode:function(N){tm([J.CONTENT_IMPRESSIONS_WITH_NODE,N])},trackContentInteraction:function(N,I,T,P){tm([J.CONTENT_INTERACTION,N,I,T,P])},trackContentInteractionNode:function(N,I="Unknown"){tm([J.CONTENT_INTERACTION_NODE,N,I])},trackVisibleContentImpressions:function(N=!0,I=750){tm([J.VISIBLE_CONTENT_IMPRESSIONS,N,I])}},Symbol.toStringTag,{value:"Module"})),tv=Object.freeze(Object.defineProperty({__proto__:null,deleteCookies:function(){tm([Y.DELETE_COOKIES])},disableCookies:function(){tm([Y.DISABLE_COOKIES])},enableCookies:function(){tm([Y.ENABLE_COOKIES])},getConfigVisitorCookieTimeout:function(){return new Promise((N,I)=>{try{tm([function(){N(this.getConfigVisitorCookieTimeout())}])}catch(N){N instanceof ReferenceError&&I(N)}})},getCookieDomain:function(){return new Promise((N,I)=>{try{tm([function(){N(this.getCookieDomain())}])}catch(N){N instanceof ReferenceError&&I(N)}})},getCookiePath:function(){return new Promise((N,I)=>{try{tm([function(){N(this.getCookiePath())}])}catch(N){N instanceof ReferenceError&&I(N)}})},getSessionCookieTimeout:function(){return new Promise((N,I)=>{try{tm([function(){N(this.getSessionCookieTimeout())}])}catch(N){N instanceof ReferenceError&&I(N)}})},hasCookies:function(){return new Promise((N,I)=>{try{tm([function(){N(this.hasCookies())}])}catch(N){N instanceof ReferenceError&&I(N)}})}
593,setCookieDomain:function(N){tm([Y.SET_COOKIE_DOMAIN,N])},setCookieNamePrefix:function(N){tm([Y.SET_COOKIE_NAME_PREFIX,N])},setCookiePath:function(N){tm([Y.SET_COOKIE_PATH,N])},setReferralCookieTimeout:function(N){tm([Y.SET_REFERRAL_COOKIE_TIMEOUT,N])},setSecureCookie:function(N){tm([Y.SET_SECURE_COOKIE,N])},setSessionCookieTimeout:function(N){tm([Y.SET_SESSION_COOKIE_TIMEOUT,N])},setVisitorCookieTimeout:function(N){tm([Y.SET_VISITOR_COOKIE_TIMEOUT,N])},setVisitorIdCookie:function(){tm([Y.SET_VISITOR_ID_COOKIE])}},Symbol.toStringTag,{value:"Module"})),tw=Object.freeze(Object.defineProperty({__proto__:null,deleteCustomDimension:function(N){tm([Q.DELETE_CUSTOM_DIMENSION,N])},getCustomDimensionValue:function(N){return new Promise((I,T)=>{try{tm([function(){I(this.getCustomDimensionValue(N))}])}catch(N){N instanceof ReferenceError&&T(N)}})},setCustomDimensionValue:function(N,I){tm([Q.SET_CUSTOM_DIMENSION_VALUE,N,I])}},Symbol.toStringTag,{value:"Module"})),tx=Object.freeze(Object.defineProperty({__proto__:null,addDownloadClasses:function(N){tm([X.ADD_DOWNLOAD_CLASSES,N])},addDownloadExtensions:function(N){tm([X.ADD_DOWNLOAD_EXTENSIONS,N])},enableLinkTracking:function(N=!0){tm([X.ENABLE_LINK_TRACKING,N])},getDownloadClasses:function(){return new Promise((N,I)=>{try{tm([function(){N(this.getDownloadClasses())}])}catch(N){N instanceof ReferenceError&&I(N)}})},getLinkTrackingTimer:function(){return new Promise((N,I)=>{try{tm([function(){N(this.getLinkTrackingTimer())}])}catch(N){N instanceof ReferenceError&&I(N)}})},removeDownloadClasses:function(N){tm([X.REMOVE_DOWNLOAD_CLASSES,N])},removeDownloadExtensions:function(N){tm([X.REMOVE_DOWNLOAD_EXTENSIONS,N])},setDownloadClasses:function(N){tm([X.SET_DOWNLOAD_CLASSES,N])},setDownloadExtensions:function(N){tm([X.SET_DOWNLOAD_EXTENSIONS,N])},setIgnoreClasses:function(N){tm([X.SET_IGNORE_CLASSES,N])},setLinkClasses:function(N){tm([X.SET_LINK_CLASSES,N])},setLinkTrackingTimer:function(N){tm([X.SET_LINK_TRACKING_TIMER,N])},trackLink:function(N,I,T,P){tm([X.LINK,N,I,T,P])}},Symbol.toStringTag,{value:"Module"})),tA=Object.freeze(Object.defineProperty({__proto__:null,addEcommerceItem:function(N,I,T,P,D){tm([K.ADD_ECOMMERCE_ITEM,N,I,T,P,D])},clearEcommerceCart:function(){tm([K.CLEAR_ECOMMERCE_CART])},ecommerceAddToCart:function(N,I){tm([V.ECOMMERCE_ADD_TO_CART,N,I])},ecommerceCartUpdate:function(N,I,T){tm([V.ECOMMERCE_CART_UPDATE,N,I,T])},ecommerceOrder:function(N,I,T){tm([V.ECOMMERCE_ORDER,N,I,T])},ecommerceProductDetailView:function(N,I){tm([V.ECOMMERCE_PRODUCT_DETAIL_VIEW,N,I])},ecommerceRemoveFromCart:function(N,I){tm([V.ECOMMERCE_REMOVE_FROM_CART,N,I])},getEcommerceItems:function(){return new Promise((N,I)=>{try{tm([function(){N(this.getEcommerceItems())}])}catch(N){N instanceof ReferenceError&&I(N)}})},removeEcommerceItem:function(N){tm([K.REMOVE_ECOMMERCE_ITEM,N])},setEcommerceView:function(N,I,T,P){tm([K.SET_ECOMMERCE_VIEW,N,I,T,P])},trackEcommerceCartUpdate:function(N){tm([K.TRACK_ECOMMERCE_CART_UPDATE,N])},trackEcommerceOrder:function(N,I,T,P,D,M){tm([K.TRACK_ECOMMERCE_ORDER,N,I,T,P,D,M])}},Symbol.toStringTag,{value:"Module"})),tE=Object.freeze(Object.defineProperty({__proto__:null,trackGoal:function(N,I,T,P){tm([ee.GOAL,N,I,T?{...T}:void 0,P])}},Symbol.toStringTag,{value:"Module"})),tS=Object.freeze(Object.defineProperty({__proto__:null,trackSiteSearch:function(N,I,T,P){tm([er.SEARCH,N,I,T,P])}},Symbol.toStringTag,{value:"Module"})),t_=Object.freeze(Object.defineProperty({__proto__:null,deanonymizeUser:function(){tm([ea.DEANONYMIZE_USER])},getUserId:function(){return new Promise((N,I)=>{try{tm([function(){N(this.getUserId())}])}catch(N){N instanceof ReferenceError&&I(N)}})},getVisitorId:function(){return new Promise((N,I)=>{try{tm([function(){N(this.getVisitorId())}])}catch(N){N instanceof ReferenceError&&I(N)}})},getVisitorInfo:function(){return new Promise((N,I)=>{try{tm([function(){N(this.getVisitorInfo())}])}catch(N){N instanceof ReferenceError&&I(N)}})},resetUserId:function(){tm([ea.RESET_USER_ID])},setUserId:function(N){tm([ea.SET_USER_ID,N])},setUserIsAnonymous:function(N){tm([ea.SET_USER_IS_ANONYMOUS,N])}},Symbol.toStringTag,{value:"Module"})),tk=Object.freeze(Object.defineProperty({__proto__:null,enableJSErrorTracking:function(N=!0){tm([eo.ENABLE_JS_ERROR_TRACKING,N])},trackError:function(N){tm([eo.TRACK_ERROR,N])}},Symbol.toStringTag,{value:"Module"})),tC=Object.freeze(Object.defineProperty({__proto__:null,customCrossDomainLinkDecorator:function(N){tm([en.CUSTOM_CROSS_DOMAIN_LINK_DECORATOR,function(...I){return N(...I)}])},customCrossDomainLinkVisitorIdGetter:function(N){tm([en.CUSTOM_CROSS_DOMAIN_LINK_VISITOR_ID_GETTER,function(...I){return N(...I)}])},disableCrossDomainLinking:function(){tm([en.DISABLE_CROSS_DOMAIN_LINKING])},enableCrossDomainLinking:function(){tm([en.ENABLE_CROSS_DOMAIN_LINKING])},getCrossDomainLinkingUrlParameter:function(){return new Promise((N,I)=>{try{tm([function(){N(this.getCrossDomainLinkingUrlParameter())}])}catch(N){N instanceof ReferenceError&&I(N)}})},isCrossDomainLinkingEnabled:function(){return new Promise((N,I)=>{try{tm([function(){N(this.isCrossDomainLinkingEnabled())}])}catch(N){N instanceof ReferenceError&&I(N)}})},setCrossDomainLinkingTimeout:function(N){tm([en.SET_CROSS_DOMAIN_LINKING_TIMEOUT,N])}},Symbol.toStringTag,{value:"Module"})),tj=Object.freeze(Object.defineProperty({__proto__:null,getDomains:function(){return new Promise((N,I)=>{try{tm([function(){N(this.getDomains())}])}catch(N){N instanceof ReferenceError&&I(N)}})},setDomains:function(N){tm([es.SET_DOMAINS,N])}},Symbol.toStringTag,{value:"Module"})),tO=Object.freeze(Object.defineProperty({__proto__:null,disableHeartBeatTimer:function(){tm([el.DISABLE_HEARTBEAT_TIMER])},enableHeartBeatTimer:function(N){tm([el.ENABLE_HEARTBEAT_TIMER,N])}},Symbol.toStringTag,{value:"Module"})),tN=Object.freeze(Object.defineProperty({__proto__:null,setTrackingSourceProvider:function(N,I){tm([ec.SET_TRACKING_SOURCE_PROVIDER,N,I],{skipSettingPageData:!0})}},Symbol.toStringTag,{value:"Module"})),tI={initialize:tf,getInitScript:th},tT="2.6.0",tP=(...N)=>{"u">typeof window&&tN.setTrackingSourceProvider("react",tT),tI.initialize(...N)},tD={...tI,initialize:tP};var tM="3.5.0",tR=eb.createContext(ef),tL=function(N){var I=N.children,T=N.containerId,P=N.containerUrl,D=N.nonce,M=N.dataLayerName,R=(0,eb.useRef)(!1);if(!T)throw Error("Empty containerId for Piwik PRO.");if(!P)throw Error("Empty containerUrl for Piwik PRO.");return(0,eb.useEffect)(function(){R.current||(tN.setTrackingSourceProvider("nextjs",tM),M&&tu.setDataLayerName(M),R.current=!0)},[]),eb.createElement(eb.Fragment,null,eb.createElement(ti,{id:"piwik-tag-manager-".concat(T),strategy:"afterInteractive",nonce:D},"".concat(tD.getInitScript({containerId:T,containerUrl:P,dataLayerName:M}),"\n ")),eb.createElement(tR.Provider,{value:ef},I))},t$=T(25680),tF=T(41655),tB=T(99742);let tU=({id:N,url:I,children:T})=>{let[P,D]=(0,eb.useState)(!1),M=(0,eb.useMemo)(()=>P?N:"",[P,N]),R=(0,eb.useMemo)(()=>P?I:"",[P,I]),L=tB.env.NEXT_PUBLIC_CONTAINER_ID_TAYLORHOPKINSON,$="https://brunel.piwik.pro";return((0,eb.useEffect)(()=>{let N=N=>
593{N.detail.includes(t$.C.Necessary)&&D(!0)};return window.addEventListener("OneTrustGroupsUpdated",N),()=>window.removeEventListener("OneTrustGroupsUpdated",N)},[]),tF.H.isProd&&L&&$)?(0,eh.jsx)(tL,{containerId:L,containerUrl:$,children:T}):M&&R?(0,eh.jsx)(tL,{containerId:M,containerUrl:R,children:T}):T};var tH=T(3721),tz=T(84210),tW=T(21791),tq=T(52063),tG=T(920),tK=T(95121);let tV=N=>N.replace(/\s*-\s*Brunel\s*$/i,"").trim(),tY=N=>N.split(/[\s-]+/).filter(Boolean).map(N=>N.charAt(0).toUpperCase()+N.slice(1)).join(" "),tJ=({pageUrl:N,pageTitle:I,variant:T,areaServed:P})=>{let D=tV(I);switch(T){case"recruitment-hub":return{name:"Recruitment Services",serviceType:`Comprehensive recruitment services for businesses in ${P}`};case"industry":return{name:`${D} Recruitment`,serviceType:`${D} recruitment services for employers in ${P}`};case"specialisation":return{name:`${D} Recruitment`,serviceType:`${D} recruitment services for businesses in ${P}`};default:return{name:D||tY(new URL(N).pathname.split("/").pop()??"Service"),serviceType:`${D||"Professional"} services for businesses in ${P}`}}},tQ=({pageUrl:N,pageTitle:I,description:T,variant:P,providerId:D=tK.ac,areaServed:M})=>{let{name:R,serviceType:L}=tJ({pageUrl:N,pageTitle:I,variant:P,areaServed:M});return{"@context":tK.WX,"@type":"Service","@id":`${N}#service`,name:R,serviceType:L,description:T,url:N,provider:{"@type":"Organization","@id":D},areaServed:{"@type":"Country",name:M}}},tZ=N=>{let I=decodeURIComponent(N);return"-"===I?"-":I.split("-").filter(Boolean).map(N=>N.charAt(0).toUpperCase()+N.slice(1)).join(" ")},tX=(N,I)=>{if(0===N.length)return[{name:"Home",item:I("/")}];let[T,...P]=N,D=[{name:"Home",item:I(`/${T}/`)}],M=`/${T}`;return P.forEach(N=>{M+=`/${N}`,D.push({name:tZ(N),item:I(M)})}),D},t0=N=>{if(!N?.trim())return[];let I=N.trim();try{let N=new URL(I),T=N.pathname.split("/").filter(Boolean);return tX(T,I=>"/"===I?`${N.origin}/`:`${N.origin}${I}`).map((N,I)=>({"@type":"ListItem",position:I+1,name:N.name,item:N.item}))}catch{if(!I.startsWith("/"))return[];return tX(I.split("/").filter(Boolean),N=>N).map((N,I)=>({"@type":"ListItem",position:I+1,name:N.name,item:N.item}))}};var t1=T(78961);let t2=({canonicalUrl:N,pathname:I="",name:T,description:P,inLanguage:D,primaryImage:M,publisherId:R=tK.ac,about:L,datePublished:$,dateModified:F,additionalTypes:B=[],omitDuplicatePageMetadata:U=!1})=>{let H=(0,t1.K)(N,I),z=H?t0(H):[];if(!H||0===z.length)return[];let W=["WebPage",...B.filter(N=>"WebPage"!==N)],q=!!M.url?.trim();return[{"@context":tK.WX,"@type":1===W.length?W[0]:W,url:H,"@id":H,publisher:{"@id":R},breadcrumb:{"@type":"BreadcrumbList","@id":`${H}#breadcrumb`,itemListElement:z},...!U&&{name:T,description:P,inLanguage:D,...q&&{primaryImageOfPage:{"@type":"ImageObject",url:M.url,width:M.width,height:M.height}},...L&&{about:{"@type":"Thing",name:L.name,description:L.description}},...$?.trim()&&{datePublished:$},...F?.trim()&&{dateModified:F}}}]},t3=N=>{let I=N.toLowerCase(),T={"en-au":"Australia","nl-nl":"Netherlands","nl-be":"Belgium","en-us":"United States","en-sg":"Singapore","de-de":"Germany","de-at":"Austria","de-ch":"Switzerland","cs-cz":"Czech Republic","zh-cn":"China","en-gb":"United Kingdom","en-ca":"Canada"};return T[I]??T[I.split("-")[1]??""]??""},t4=N=>{let I=N.split("/").filter(Boolean),T=I.indexOf("events");if(T>=0&&I.length===T+2)return!0;let P=I.indexOf("case-studies");if(P>=0&&I.length===P+2)return!0;let D=I.indexOf("blog");return D>=0&&I.length>D+2};var t5=T(84799);let t6=N=>N?.toUpperCase()??"",t8=N=>{try{let I=new URL(N,"https://www.brunel.net").pathname.split("/").filter(Boolean).slice(1);if(0===I.length)return null;let[T,P]=I;if("recruitment"===T)return P?"industry":"recruitment-hub";if("services"===T&&P)return"service";if("specialisations"===T&&P)return"specialisation";return null}catch{return null}},t7=(N,I)=>{let T=t6(N);if(T===tK.a$.VACANCY_PAGE)return{includeWebPage:!1,webPageAdditionalTypes:[],includeService:!1};let P=t8(I);return{includeWebPage:!0,webPageAdditionalTypes:T===tK.a$.OFFICE_OVERVIEW_PAGE?["CollectionPage"]:[],includeService:null!==P,serviceVariant:P??void 0}};var t9=T(67561);let re=({canonicalUrl:N,pathname:I,name:T,description:P,inLanguage:D,primaryImage:M,datePublished:R,dateModified:L,about:$,templateId:F,areaServed:B})=>{let U=t7(F,I),H=B||t3(D),z=(0,t5.I)(I),W=t4(I),q=[];return U.includeWebPage&&q.push(...t2({canonicalUrl:N,pathname:I,name:T,description:P,inLanguage:D,primaryImage:M,about:$,datePublished:R,dateModified:L,additionalTypes:U.webPageAdditionalTypes,publisherId:z,omitDuplicatePageMetadata:W}).map(N=>N)),U.includeService&&U.serviceVariant&&H&&q.push(tQ({pageUrl:N,pageTitle:T,description:P,variant:U.serviceVariant,providerId:z,areaServed:H})),(0,eh.jsx)(t9.s,{schemas:q})},rt=({page:N,searchUrl:I})=>{let{asPath:T}=(0,eZ.useRouter)(),{loading:P,toast:D,setToast:M}=(0,eb.useContext)(ep._t),{layout:R,mode:L}=N,{route:$,context:F}=R.sitecore,B=$?.fields,U=L.isEditing?"editing-mode":"prod-mode",H=R?.sitecore?.context?.language??em.Xn,z=B?.metaDescription?.value,W=B?.metaImage?.value?.src,q=B?.metaOGTitle?.value,G=(0,tG.Uk)({metaTitle:B?.metaTitle?.value,metaOGTitle:q,displayName:$?.displayName,routeName:$?.name,suffix:"TH"===eX.A.defaultSite?"":" - Brunel"}),K=B?.metaOGImage?.value?.src,V=B?.metaOGDescription?.value,Y=B?.metaOGType?.value||"website",J=B?.metaNoIndex?.value??!1,Q=B?.metaNoFollow?.value??!1,Z=F.googleSiteVerification,X=F.facebookSiteVerification,{canonicalUrl:ee,pageHrefLangUrl:et}=(0,eg.U)(F.pageCanonicalUrl,F.pageHrefLangUrl,T);return(0,eh.jsxs)(tU,{id:"18b30efb-fb78-4610-9384-3bd0be42235e",url:"https://brunel.piwik.pro",children:[$&&(0,eh.jsx)(ey.O,{name:"system-header",rendering:$}),(0,eh.jsx)(tr,{}),(0,eh.jsx)(tn,{layoutData:R,client:tq.A}),(0,eh.jsx)(re,{canonicalUrl:ee,pathname:T,name:G,description:z,inLanguage:H,primaryImage:{url:W??K??"",width:1200,height:630},datePublished:F.pageDatePublished??"",dateModified:F.pageDatePublished??"",about:{name:"Brunel",description:z??""},templateId:$?.templateId}),(0,eh.jsxs)(eQ(),{children:[(0,eh.jsx)("meta",{name:"referrer",content:"origin"}),(0,eh.jsx)("title",{children:G}),(0,eh.jsx)("link",{rel:"icon",href:tF.H.isBoth?tF.H.url+"/th-favicon.webp":"/favicon.ico"}),(0,eh.jsx)("meta",{name:"application-name",content:"Brunel"}),z&&(0,eh.jsx)("meta",{name:"description",content:z}),W&&(0,eh.jsx)("meta",{name:"image",content:W}),(0,eh.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,eh.jsx)("meta",{name:"twitter:site",content:"Brunel"}),(0,eh.jsx)("meta",{name:"twitter:creator",content:"Brunel"}),G&&(0,eh.jsx)("meta",{name:"twitter:title",content:G}),z&&(0,eh.jsx)("meta",{name:"twitter:description",content:z}
593),W&&(0,eh.jsx)("meta",{name:"twitter:image:src",content:W}),K&&(0,eh.jsx)("meta",{property:"og:image",content:K}),q&&(0,eh.jsx)("meta",{property:"og:title",content:q??G}),V&&(0,eh.jsx)("meta",{property:"og:description",content:V}),Y&&(0,eh.jsx)("meta",{property:"og:type",content:Y}),(0,eh.jsx)("meta",{property:"og:site_name",content:"Brunel"}),(0,eh.jsx)("meta",{property:"og:locale",content:H}),I&&(I?.normalizedUrl!==""||I?.filters&&I?.filters?.length>0)&&(0,eh.jsx)("meta",{name:"robots",content:"noindex, nofollow"}),(J||Q)&&(0,eh.jsx)("meta",{name:"robots",content:[J?"noindex":null,Q?"nofollow":null].filter(Boolean).join(", ")}),ee&&(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)("meta",{property:"og:url",content:ee}),(0,eh.jsx)("link",{rel:"canonical",href:ee},"canonical")]}),et?.map(N=>(0,eh.jsx)("link",{rel:"alternate",hrefLang:N.hreflang,href:N.url},`${N.hreflang}`))]}),(0,eh.jsx)(ta.SiteVerification,{googleSiteVerification:Z,facebookSiteVerification:X}),(0,eh.jsx)(tH.l,{open:P.isLoading,children:(0,eh.jsx)(tz.R,{messages:P.messages})}),(0,eh.jsx)(tW.y,{...D,onClose:()=>M(ep.W6.toast)}),(0,eh.jsx)("div",{className:U,children:L.isDesignLibrary?(0,eh.jsx)(eV,{}):(0,eh.jsxs)(eh.Fragment,{children:[(0,eh.jsx)("header",{id:"header",children:$&&(0,eh.jsx)(ey.O,{name:"headless-header",rendering:$})}),(0,eh.jsxs)("main",{children:[(0,eh.jsx)("div",{id:"content",className:`bg-main h-full max-w-full grow items-stretch ${(0,eY.Cx)()&&"md:mt-0"} md:pt-0`,children:$&&(0,eh.jsx)(ey.O,{name:"headless-main",rendering:$,passThroughComponentProps:{searchUrl:I}})},R?.sitecore?.route?.itemId??R?.sitecore?.route?.name??T),$&&(0,eh.jsx)(ey.O,{name:"headless-aside-left",rendering:$}),$&&(0,eh.jsx)(ey.O,{name:"headless-aside-right",rendering:$})]}),(0,eh.jsx)("footer",{id:"footer",children:$&&(0,eh.jsx)(ey.O,{name:"headless-footer",rendering:$})})]})})]})};var rr=T(5419),rn=T(29504),ra=T(63366);let ri=({page:N})=>{let{loading:I,toast:T,setToast:P}=(0,eb.useContext)(ep._t),{layout:D,mode:M}=N,{route:R}=D.sitecore,L=R?.fields,$=M.isEditing?"editing-mode":"prod-mode",F=(L?.metaTitle?.value??R?.displayName??R?.name)+" - My Applications";return(0,eh.jsxs)(tU,{id:"18b30efb-fb78-4610-9384-3bd0be42235e",url:"https://brunel.piwik.pro",children:[(0,eh.jsx)(tr,{}),(0,eh.jsx)(tn,{layoutData:D,client:tq.A}),(0,eh.jsxs)(eQ(),{children:[(0,eh.jsx)("meta",{name:"referrer",content:"origin"}),(0,eh.jsx)("title",{children:F}),(0,eh.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,eh.jsx)(tH.l,{open:I.isLoading,children:(0,eh.jsx)(tz.R,{messages:I.messages})}),(0,eh.jsx)(tW.y,{...T,onClose:()=>P(ep.W6.toast)}),(0,eh.jsx)(rn.default,{}),(0,eh.jsx)("header",{className:"fixed top-0 z-50 h-17.5 bg-brunel-dark-grey",children:R&&(0,eh.jsx)(ey.O,{name:"mybrunel-applicant-header",rendering:R})}),(0,eh.jsxs)(ra.az,{className:`flex flex-col ${$}`,children:[R&&(0,eh.jsx)(ey.O,{name:"mybrunel-applicant-nav",rendering:R}),(0,eh.jsx)("main",{className:"mt-17.5 flex min-h-[calc(100vh-70px)] grow bg-accent-pampas",children:(0,eh.jsx)(ra.az,{className:"w-full flex-1 p-4 md:p-12 lg:ml-100",children:R&&(0,eh.jsx)(ey.O,{name:"mybrunel-applicant-main",rendering:R})})}),(0,eh.jsx)("footer",{className:"w-screen text-brunel-dark-grey shadow",children:R&&(0,eh.jsx)(ey.O,{name:"mybrunel-applicant-footer",rendering:R})})]})]})};var ro=T(36379),rs=T(64028);let rl=({page:N})=>{let I=(0,eZ.useRouter)(),{session:T}=N.layout,{layout:P,mode:D}=N,{route:M}=P.sitecore,R=M?.fields,L=D.isEditing?"editing-mode":"prod-mode",$=(R?.metaTitle?.value??M?.displayName??M?.name)+(tF.H.isBoth?" | Taylor Hopkinson":" - MyBrunel"),{loading:F,toast:B,setToast:U}=(0,eb.useContext)(ep._t),[H,z]=(0,eb.useState)(!1);return(0,eb.useEffect)(()=>{let T=(T,{shallow:P})=>{P||T===`/${N.locale}${I.asPath}`||z(!0)},P=()=>z(!1);return eZ.Router.events.on("routeChangeStart",T),eZ.Router.events.on("routeChangeComplete",P),eZ.Router.events.on("routeChangeError",P),()=>{eZ.Router.events.off("routeChangeStart",T),eZ.Router.events.off("routeChangeComplete",P),eZ.Router.events.off("routeChangeError",P)}},[N.locale,I.asPath]),(0,eh.jsxs)(tU,{id:"fa557a09-209b-4a78-b407-80f339e48b05",url:"https://brunel.piwik.pro",children:[(0,eh.jsx)(tr,{}),(0,eh.jsx)(tn,{layoutData:P,client:tq.A}),(0,eh.jsxs)(eQ(),{children:[(0,eh.jsx)("title",{children:$}),(0,eh.jsx)("link",{rel:"icon",href:tF.H.isBoth?tF.H.url+"/th-favicon.webp":"/favicon.ico"}),(0,eh.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"}),(0,eh.jsx)("meta",{name:"referrer",content:"origin"})]}),(0,eh.jsx)(tH.l,{open:F.isLoading,children:(0,eh.jsx)(tz.R,{messages:F.messages})}),(0,eh.jsx)(tW.y,{...B,onClose:()=>U(ep.W6.toast)}),M&&(0,eh.jsx)(ey.O,{name:"mybrunel-headless-header",rendering:M}),(0,eh.jsxs)(ra.az,{className:(0,ro.cn)(`flex h-screen overflow-hidden ${L}`,{"th-mybrunel-header-content pt-17.5":!T?.user?.isWebview}),children:[H&&(0,eh.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:(0,eh.jsx)("div",{className:"rounded-3xl bg-black/50 p-4",children:(0,eh.jsx)("span",{className:"loading-spoinner loading w-12 text-brunel-yellow"})})}),M&&(0,eh.jsx)(ey.O,{name:"mybrunel-headless-nav",rendering:M}),(0,eh.jsx)("main",{className:(0,ro.cn)("h-full flex-1 overflow-y-scroll bg-accent-spring-wood pb-18 lg:pt-0 lg:pb-0 lg:pl-60",{"pt-8":!T?.user?.isWebview}),children:M&&(0,eh.jsx)(ey.O,{name:"mybrunel-headless-main",rendering:M})})]}),(0,eh.jsx)(rs.default,{})]})},rc=N=>N.id.toUpperCase()===rr.G.MyBrunel?(0,eh.jsx)(ri,{...N}):N.id.toUpperCase()===rr.G.BrunelApp?(0,eh.jsx)(rl,{...N}):(0,eh.jsx)(rt,{...N})},34322:(N,I,T)=>{var P="/",D=T(99742),M=T(82909).Buffer,R={7492:function(N){N.exports=function(N,T,P){if(N.filter)return N.filter(T,P);if(null==N||"function"!=typeof T)throw TypeError();for(var D=[],M=0;M<N.length;M++)if(I.call(N,M)){var R=N[M];T.call(P,R,M,N)&&D.push(R)}return D};var I=Object.prototype.hasOwnProperty},6810:function(N,I,T){"use strict";function P(N){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(N){return typeof N}
593:function(N){return N&&"function"==typeof Symbol&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N})(N)}function M(N,I){if(!(N instanceof I))throw TypeError("Cannot call a class as a function")}var R,L,$=T(3431).codes,F=$.ERR_AMBIGUOUS_ARGUMENT,B=$.ERR_INVALID_ARG_TYPE,U=$.ERR_INVALID_ARG_VALUE,H=$.ERR_INVALID_RETURN_VALUE,z=$.ERR_MISSING_ARGS,W=T(9396),q=T(4268).inspect,G=T(4268).types,K=G.isPromise,V=G.isRegExp,Y=Object.assign?Object.assign:T(3639).assign,J=Object.is?Object.is:T(8388);function Q(){var N=T(2761);R=N.isDeepEqual,L=N.isDeepStrictEqual}var Z=!1,X=N.exports=ea,ee={};function et(N){if(N.message instanceof Error)throw N.message;throw new W(N)}function er(N,I,T,P,M){var R,L=arguments.length;if(0===L?R="Failed":1===L?(T=N,N=void 0):(!1===Z&&(Z=!0,(D.emitWarning?D.emitWarning:console.warn.bind(console))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===L&&(P="!=")),T instanceof Error)throw T;var $={actual:N,expected:I,operator:void 0===P?"fail":P,stackStartFn:M||er};void 0!==T&&($.message=T);var F=new W($);throw R&&(F.message=R,F.generatedMessage=!0),F}function en(N,I,T,P){if(!T){var D=!1;if(0===I)D=!0,P="No value argument passed to `assert.ok()`";else if(P instanceof Error)throw P;var M=new W({actual:T,expected:!0,message:P,operator:"==",stackStartFn:N});throw M.generatedMessage=D,M}}function ea(){for(var N=arguments.length,I=Array(N),T=0;T<N;T++)I[T]=arguments[T];en.apply(void 0,[ea,I.length].concat(I))}function ei(N,I,T){if(arguments.length<2)throw new z("actual","expected");void 0===R&&Q(),L(N,I)&&et({actual:N,expected:I,message:T,operator:"notDeepStrictEqual",stackStartFn:ei})}X.fail=er,X.AssertionError=W,X.ok=ea,X.equal=function N(I,T,P){if(arguments.length<2)throw new z("actual","expected");I!=T&&et({actual:I,expected:T,message:P,operator:"==",stackStartFn:N})},X.notEqual=function N(I,T,P){if(arguments.length<2)throw new z("actual","expected");I==T&&et({actual:I,expected:T,message:P,operator:"!=",stackStartFn:N})},X.deepEqual=function N(I,T,P){if(arguments.length<2)throw new z("actual","expected");void 0===R&&Q(),R(I,T)||et({actual:I,expected:T,message:P,operator:"deepEqual",stackStartFn:N})},X.notDeepEqual=function N(I,T,P){if(arguments.length<2)throw new z("actual","expected");void 0===R&&Q(),R(I,T)&&et({actual:I,expected:T,message:P,operator:"notDeepEqual",stackStartFn:N})},X.deepStrictEqual=function N(I,T,P){if(arguments.length<2)throw new z("actual","expected");void 0===R&&Q(),L(I,T)||et({actual:I,expected:T,message:P,operator:"deepStrictEqual",stackStartFn:N})},X.notDeepStrictEqual=ei,X.strictEqual=function N(I,T,P){if(arguments.length<2)throw new z("actual","expected");J(I,T)||et({actual:I,expected:T,message:P,operator:"strictEqual",stackStartFn:N})},X.notStrictEqual=function N(I,T,P){if(arguments.length<2)throw new z("actual","expected");J(I,T)&&et({actual:I,expected:T,message:P,operator:"notStrictEqual",stackStartFn:N})};var eo=function N(I,T,P){var D=this;M(this,N),T.forEach(function(N){N in I&&(void 0!==P&&"string"==typeof P[N]&&V(I[N])&&I[N].test(P[N])?D[N]=P[N]:D[N]=I[N])})};function es(N,I,T,P,D,M){if(!(T in N)||!L(N[T],I[T])){if(!P){var R=new W({actual:new eo(N,D),expected:new eo(I,D,N),operator:"deepStrictEqual",stackStartFn:M});throw R.actual=N,R.expected=I,R.operator=M.name,R}et({actual:N,expected:I,message:P,operator:M.name,stackStartFn:M})}}function el(N,I,T,D){if("function"!=typeof I){if(V(I))return I.test(N);if(2==arguments.length)throw new B("expected",["Function","RegExp"],I);if("object"!==P(N)||null===N){var M=new W({actual:N,expected:I,message:T,operator:"deepStrictEqual",stackStartFn:D});throw M.operator=D.name,M}var L=Object.keys(I);if(I instanceof Error)L.push("name","message");else if(0===L.length)throw new U("error",I,"may not be an empty object");return void 0===R&&Q(),L.forEach(function(P){"string"==typeof N[P]&&V(I[P])&&I[P].test(N[P])||es(N,I,P,T,L,D)}),!0}return void 0!==I.prototype&&N instanceof I||!Error.isPrototypeOf(I)&&!0===I.call({},N)}function ec(N){if("function"!=typeof N)throw new B("fn","Function",N);try{N()}catch(N){return N}return ee}function eu(N){return K(N)||null!==N&&"object"===P(N)&&"function"==typeof N.then&&"function"==typeof N.catch}function ed(N){return Promise.resolve().then(function(){var I;
593if("function"==typeof N){if(!eu(I=N()))throw new H("instance of Promise","promiseFn",I)}else if(eu(N))I=N;else throw new B("promiseFn",["Function","Promise"],N);return Promise.resolve().then(function(){return I}).then(function(){return ee}).catch(function(N){return N})})}function ef(N,I,T,D){if("string"==typeof T){if(4==arguments.length)throw new B("error",["Object","Error","Function","RegExp"],T);if("object"===P(I)&&null!==I){if(I.message===T)throw new F("error/message",'The error message "'.concat(I.message,'" is identical to the message.'))}else if(I===T)throw new F("error/message",'The error "'.concat(I,'" is identical to the message.'));D=T,T=void 0}else if(null!=T&&"object"!==P(T)&&"function"!=typeof T)throw new B("error",["Object","Error","Function","RegExp"],T);if(I===ee){var M="";T&&T.name&&(M+=" (".concat(T.name,")")),M+=D?": ".concat(D):".";var R="rejects"===N.name?"rejection":"exception";et({actual:void 0,expected:T,operator:N.name,message:"Missing expected ".concat(R).concat(M),stackStartFn:N})}if(T&&!el(I,T,D,N))throw I}function eh(N,I,T,P){if(I!==ee){if("string"==typeof T&&(P=T,T=void 0),!T||el(I,T)){var D=P?": ".concat(P):".",M="doesNotReject"===N.name?"rejection":"exception";et({actual:I,expected:T,operator:N.name,message:"Got unwanted ".concat(M).concat(D,"\n")+'Actual message: "'.concat(I&&I.message,'"'),stackStartFn:N})}throw I}}function ep(){for(var N=arguments.length,I=Array(N),T=0;T<N;T++)I[T]=arguments[T];en.apply(void 0,[ep,I.length].concat(I))}X.throws=function N(I){for(var T=arguments.length,P=Array(T>1?T-1:0),D=1;D<T;D++)P[D-1]=arguments[D];ef.apply(void 0,[N,ec(I)].concat(P))},X.rejects=function N(I){for(var T=arguments.length,P=Array(T>1?T-1:0),D=1;D<T;D++)P[D-1]=arguments[D];return ed(I).then(function(I){return ef.apply(void 0,[N,I].concat(P))})},X.doesNotThrow=function N(I){for(var T=arguments.length,P=Array(T>1?T-1:0),D=1;D<T;D++)P[D-1]=arguments[D];eh.apply(void 0,[N,ec(I)].concat(P))},X.doesNotReject=function N(I){for(var T=arguments.length,P=Array(T>1?T-1:0),D=1;D<T;D++)P[D-1]=arguments[D];return ed(I).then(function(I){return eh.apply(void 0,[N,I].concat(P))})},X.ifError=function N(I){if(null!=I){var T="ifError got unwanted exception: ";"object"===P(I)&&"string"==typeof I.message?0===I.message.length&&I.constructor?T+=I.constructor.name:T+=I.message:T+=q(I);var D=new W({actual:I,expected:null,operator:"ifError",message:T,stackStartFn:N}),M=I.stack;if("string"==typeof M){var R=M.split("\n");R.shift();for(var L=D.stack.split("\n"),$=0;$<R.length;$++){var F=L.indexOf(R[$]);if(-1!==F){L=L.slice(0,F);break}}D.stack="".concat(L.join("\n"),"\n").concat(R.join("\n"))}throw D}},X.strict=Y(ep,X,{equal:X.strictEqual,deepEqual:X.deepStrictEqual,notEqual:X.notStrictEqual,notDeepEqual:X.notDeepStrictEqual}),X.strict.strict=X.strict},9396:function(N,I,T){"use strict";function P(N){for(var I=1;I<arguments.length;I++){var T=null!=arguments[I]?arguments[I]:{},P=Object.keys(T);"function"==typeof Object.getOwnPropertySymbols&&(P=P.concat(Object.getOwnPropertySymbols(T).filter(function(N){return Object.getOwnPropertyDescriptor(T,N).enumerable}))),P.forEach(function(I){M(N,I,T[I])})}return N}function M(N,I,T){return I in N?Object.defineProperty(N,I,{value:T,enumerable:!0,configurable:!0,writable:!0}):N[I]=T,N}function R(N,I){if(!(N instanceof I))throw TypeError("Cannot call a class as a function")}function L(N,I){for(var T=0;T<I.length;T++){var P=I[T];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(N,P.key,P)}}function $(N,I,T){return I&&L(N.prototype,I),T&&L(N,T),N}function F(N,I){return I&&("object"===V(I)||"function"==typeof I)?I:B(N)}function B(N){if(void 0===N)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function U(N,I){if("function"!=typeof I&&null!==I)throw TypeError("Super expression must either be null or a function");N.prototype=Object.create(I&&I.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),I&&G(N,I)}function H(N){var I="function"==typeof Map?new Map:void 0;return(H=function(N){if(null===N||!q(N))return N;if("function"!=typeof N)throw TypeError("Super expression must either be null or a function");if(void 0!==I){if(I.has(N))return I.get(N);I.set(N,T)}function T(){return W(N,arguments,K(this).constructor)}return T.prototype=Object.create(N.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),G(T,N)})(N)}function z(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(N){return!1}}function W(N,I,T){return(W=z()?Reflect.construct:function(N,I,T){var P=[null];P.push.apply(P,I);var D=new(Function.bind.apply(N,P));return T&&G(D,T.prototype),D}).apply(null,arguments)}function q(N){return -1!==Function.toString.call(N).indexOf("[native code]")}function G(N,I){return(G=Object.setPrototypeOf||function(N,I){return N.__proto__=I,N})(N,I)}
vendor: 3,665 bytes, line 593
593function K(N){return(K=Object.setPrototypeOf?Object.getPrototypeOf:function(N){return N.__proto__||Object.getPrototypeOf(N)})(N)}function V(N){return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(N){return typeof N}:function(N){return N&&"function"==typeof Symbol&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N})(N)}var Y=T(4268).inspect,J=T(3431).codes.ERR_INVALID_ARG_TYPE;function Q(N,I,T){return(void 0===T||T>N.length)&&(T=N.length),N.substring(T-I.length,T)===I}function Z(N,I){if(I=Math.floor(I),0==N.length||0==I)return"";var T=N.length*I;for(I=Math.floor(Math.log(I)/Math.log(2));I;)N+=N,I--;return N+N.substring(0,T-N.length)}var X="",ee="",et="",er="",en={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},ea=10;function ei(N){var I=Object.keys(N),T=Object.create(Object.getPrototypeOf(N));return I.forEach(function(I){T[I]=N[I]}),Object.defineProperty(T,"message",{value:N.message}),T}function eo(N){return Y(N,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function es(N,I,T){var P="",M="",R=0,L="",$=!1,F=eo(N),B=F.split("\n"),U=eo(I).split("\n"),H=0,z="";if("strictEqual"===T&&"object"===V(N)&&"object"===V(I)&&null!==N&&null!==I&&(T="strictEqualObject"),1===B.length&&1===U.length&&B[0]!==U[0]){var W=B[0].length+U[0].length;if(W<=ea){if(("object"!==V(N)||null===N)&&("object"!==V(I)||null===I)&&(0!==N||0!==I))return"".concat(en[T],"\n\n")+"".concat(B[0]," !== ").concat(U[0],"\n")}else if("strictEqualObject"!==T&&W<(D.stderr&&D.stderr.isTTY?D.stderr.columns:80)){for(;B[0][H]===U[0][H];)H++;H>2&&(z="\n ".concat(Z(" ",H),"^"),H=0)}}for(var q=B[B.length-1],G=U[U.length-1];q===G&&(H++<2?L="\n ".concat(q).concat(L):P=q,B.pop(),U.pop(),0!==B.length&&0!==U.length);)q=B[B.length-1],G=U[U.length-1];var K=Math.max(B.length,U.length);if(0===K){var Y=F.split("\n");if(Y.length>30)for(Y[26]="".concat(X,"...").concat(er);Y.length>27;)Y.pop();return"".concat(en.notIdentical,"\n\n").concat(Y.join("\n"),"\n")}H>3&&(L="\n".concat(X,"...").concat(er).concat(L),$=!0),""!==P&&(L="\n ".concat(P).concat(L),P="");var J=0,ei=en[T]+"\n".concat(ee,"+ actual").concat(er," ").concat(et,"- expected").concat(er),es=" ".concat(X,"...").concat(er," Lines skipped");for(H=0;H<K;H++){var el=H-R;if(B.length<H+1)el>1&&H>2&&(el>4?(M+="\n".concat(X,"...").concat(er),$=!0):el>3&&(M+="\n ".concat(U[H-2]),J++),M+="\n ".concat(U[H-1]),J++),R=H,P+="\n".concat(et,"-").concat(er," ").concat(U[H]),J++;else if(U.length<H+1)el>1&&H>2&&(el>4?(M+="\n".concat(X,"...").concat(er),$=!0):el>3&&(M+="\n ".concat(B[H-2]),J++),M+="\n ".concat(B[H-1]),J++),R=H,M+="\n".concat(ee,"+").concat(er," ").concat(B[H]),J++;else{var ec=U[H],eu=B[H],ed=eu!==ec&&(!Q(eu,",")||eu.slice(0,-1)!==ec);ed&&Q(ec,",")&&ec.slice(0,-1)===eu&&(ed=!1,eu+=","),ed?(el>1&&H>2&&(el>4?(M+="\n".concat(X,"...").concat(er),$=!0):el>3&&(M+="\n ".concat(B[H-2]),J++),M+="\n ".concat(B[H-1]),J++),R=H,M+="\n".concat(ee,"+").concat(er," ").concat(eu),P+="\
593n".concat(et,"-").concat(er," ").concat(ec),J+=2):(M+=P,P="",(1===el||0===H)&&(M+="\n ".concat(eu),J++))}if(J>20&&H<K-2)return"".concat(ei).concat(es,"\n").concat(M,"\n").concat(X,"...").concat(er).concat(P,"\n")+"".concat(X,"...").concat(er)}return"".concat(ei).concat($?es:"","\n").concat(M).concat(P).concat(L).concat(z)}N.exports=function(N){function I(N){if(R(this,I),"object"!==V(N)||null===N)throw new J("options","Object",N);var T,P=N.message,M=N.operator,L=N.stackStartFn,$=N.actual,U=N.expected,H=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=P)T=F(this,K(I).call(this,String(P)));else if(D.stderr&&D.stderr.isTTY&&(D.stderr&&D.stderr.getColorDepth&&1!==D.stderr.getColorDepth()?(X="\x1b[34m",ee="\x1b[32m",er="\x1b[39m",et="\x1b[31m"):(X="",ee="",er="",et="")),"object"===V($)&&null!==$&&"object"===V(U)&&null!==U&&"stack"in $&&$ instanceof Error&&"stack"in U&&U instanceof Error&&($=ei($),U=ei(U)),"deepStrictEqual"===M||"strictEqual"===M)T=F(this,K(I).call(this,es($,U,M)));else if("notDeepStrictEqual"===M||"notStrictEqual"===M){var z=en[M],W=eo($).split("\n");if("notStrictEqual"===M&&"object"===V($)&&null!==$&&(z=en.notStrictEqualObject),W.length>30)for(W[26]="".concat(X,"...").concat(er);W.length>27;)W.pop();T=1===W.length?F(this,K(I).call(this,"".concat(z," ").concat(W[0]))):F(this,K(I).call(this,"".concat(z,"\n\n").concat(W.join("\n"),"\n")))}else{var q=eo($),G="",Y=en[M];"notDeepEqual"===M||"notEqual"===M?(q="".concat(en[M],"\n\n").concat(q)).length>1024&&(q="".concat(q.slice(0,1021),"...")):(G="".concat(eo(U)),q.length>512&&(q="".concat(q.slice(0,509),"...")),G.length>512&&(G="".concat(G.slice(0,509),"...")),"deepEqual"===M||"equal"===M?q="".concat(Y,"\n\n").concat(q,"\n\nshould equal\n\n"):G=" ".concat(M," ").concat(G)),T=F(this,K(I).call(this,"".concat(q).concat(G)))}return Error.stackTraceLimit=H,T.generatedMessage=!P,Object.defineProperty(B(T),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),T.code="ERR_ASSERTION",T.actual=$,T.expected=U,T.operator=M,Error.captureStackTrace&&Error.captureStackTrace(B(T),L),T.stack,T.name="AssertionError",F(T)}return U(I,N),$(I,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:Y.custom,value:function(N,I){return Y(this,P({},I,{customInspect:!1,depth:0}))}}]),I}(H(Error))},3431:function(N,I,T){"use strict";function P(N){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(N){return typeof N}:function(N){return N&&"function"==typeof Symbol&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N})(N)}function D(N,I){if(!(N instanceof I))throw TypeError("Cannot call a class as a function")}function M(N,I){return I&&("object"===P(I)||"function"==typeof I)?I:R(N)}function R(N){if(void 0===N)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function L(N){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(N){return N.__proto__||Object.getPrototypeOf(N)})(N)}function $(N,I){if("function"!=typeof I&&null!==I)throw TypeError("Super expression must either be null or a function");N.prototype=Object.create(I&&I.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),I&&F(N,I)}function F(N,I){return(F=Object.setPrototypeOf||function(N,I){return N.__proto__=I,N})(N,I)}var B,U,H={};function z(N,I,T){function P(N,T,P){return"string"==typeof I?I:I(N,T,P)}T||(T=Error);var R=function(I){function T(I,R,$){var F;return D(this,T),(F=M(this,L(T).call(this,P(I,R,$)))).code=N,F}return $(T,I),T}(T);H[N]=R}function W(N,I){if(!Array.isArray(N))return"of ".concat(I," ").concat(String(N));var T=N.length;return(N=N.map(function(N){return String(N)}),T>2)?"one of ".concat(I," ").concat(N.slice(0,T-1).join(", "),", or ")+N[T-1]:2===T?"one of ".concat(I," ").concat(N[0]," or ").concat(N[1]):"of ".concat(I," ").concat(N[0])}function q(N,I,T){return N.substr(!T||T<0?0:+T,I.length)===I}function G(N,I,T){return(void 0===T||T>N.length)&&(T=N.length),N.substring(T-I.length,T)===I}function K(N,I,T){return"number"!=typeof T&&(T=0),!(T+I.length>N.length)&&-1!==N.indexOf(I,T)}z("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),z("ERR_INVALID_ARG_TYPE",function(N,I,D){if(void 0===B&&(B=T(6810)),B("string"==typeof N,"'name' must be a string"),"string"==typeof I&&q(I,"not ")?(M="must not be",I=I.replace(/^not /,"")):M="must be",G(N," argument"))R="The ".concat(N," ").concat(M," ").concat(W(I,"type"));else{var M,R,L=K(N,".")?"property":"argument";R='The "'.concat(N,'" ').concat(L," ").concat(M," ").concat(W(I,"type"))}return R+". Received type ".concat(P(D))},TypeError),z("ERR_INVALID_ARG_VALUE",function(N,I){var P=arguments.length>
5932&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===U&&(U=T(4268));var D=U.inspect(I);return D.length>128&&(D="".concat(D.slice(0,128),"...")),"The argument '".concat(N,"' ").concat(P,". Received ").concat(D)},TypeError,RangeError),z("ERR_INVALID_RETURN_VALUE",function(N,I,T){var D;return D=T&&T.constructor&&T.constructor.name?"instance of ".concat(T.constructor.name):"type ".concat(P(T)),"Expected ".concat(N,' to be returned from the "').concat(I,'"')+" function but got ".concat(D,".")},TypeError),z("ERR_MISSING_ARGS",function(){for(var N=arguments.length,I=Array(N),P=0;P<N;P++)I[P]=arguments[P];void 0===B&&(B=T(6810)),B(I.length>0,"At least one arg needs to be specified");var D="The ",M=I.length;switch(I=I.map(function(N){return'"'.concat(N,'"')}),M){case 1:D+="".concat(I[0]," argument");break;case 2:D+="".concat(I[0]," and ").concat(I[1]," arguments");break;default:D+=I.slice(0,M-1).join(", "),D+=", and ".concat(I[M-1]," arguments")}return"".concat(D," must be specified")},TypeError),N.exports.codes=H},2761:function(N,I,T){"use strict";function P(N,I){return R(N)||M(N,I)||D()}function D(){throw TypeError("Invalid attempt to destructure non-iterable instance")}function M(N,I){var T=[],P=!0,D=!1,M=void 0;try{for(var R,L=N[Symbol.iterator]();!(P=(R=L.next()).done)&&(T.push(R.value),!I||T.length!==I);P=!0);}catch(N){D=!0,M=N}finally{try{P||null==L.return||L.return()}finally{if(D)throw M}}return T}function R(N){if(Array.isArray(N))return N}function L(N){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(N){return typeof N}:function(N){return N&&"function"==typeof Symbol&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N})(N)}var $=void 0!==/a/g.flags,F=function(N){var I=[];return N.forEach(function(N){return I.push(N)}),I},B=function(N){var I=[];return N.forEach(function(N,T){return I.push([T,N])}),I},U=Object.is?Object.is:T(8388),H=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},z=Number.isNaN?Number.isNaN:T(5211);function W(N){return N.call.bind(N)}var q=W(Object.prototype.hasOwnProperty),G=W(Object.prototype.propertyIsEnumerable),K=W(Object.prototype.toString),V=T(4268).types,Y=V.isAnyArrayBuffer,J=V.isArrayBufferView,Q=V.isDate,Z=V.isMap,X=V.isRegExp,ee=V.isSet,et=V.isNativeError,er=V.isBoxedPrimitive,en=V.isNumberObject,ea=V.isStringObject,ei=V.isBooleanObject,eo=V.isBigIntObject,es=V.isSymbolObject,el=V.isFloat32Array,ec=V.isFloat64Array;function eu(N){if(0===N.length||N.length>10)return!0;for(var I=0;I<N.length;I++){var T=N.charCodeAt(I);if(T<48||T>57)return!0}return 10===N.length&&N>=0x100000000}function ed(N){return Object.keys(N).filter(eu).concat(H(N).filter(Object.prototype.propertyIsEnumerable.bind(N)))}function ef(N,I){if(N===I)return 0;for(var T=N.length,P=I.length,D=0,M=Math.min(T,P);D<M;++D)if(N[D]!==I[D]){T=N[D],P=I[D];break}return T<P?-1:+(P<T)}var eh=!0,ep=!1,em=0,eg=1,ey=2,eb=3;function ev(N,I){return $?N.source===I.source&&N.flags===I.flags:RegExp.prototype.toString.call(N)===RegExp.prototype.toString.call(I)}function ew(N,I){if(N.byteLength!==I.byteLength)return!1;for(var T=0;T<N.byteLength;T++)if(N[T]!==I[T])return!1;return!0}function ex(N,I){return N.byteLength===I.byteLength&&0===ef(new Uint8Array(N.buffer,N.byteOffset,N.byteLength),new Uint8Array(I.buffer,I.byteOffset,I.byteLength))}function eA(N,I){return N.byteLength===I.byteLength&&0===ef(new Uint8Array(N),new Uint8Array(I))}function eE(N,I){return en(N)?en(I)&&U(Number.prototype.valueOf.call(N),Number.prototype.valueOf.call(I)):ea(N)?ea(I)&&String.prototype.valueOf.call(N)===String.prototype.valueOf.call(I):ei(N)?ei(I)&&Boolean.prototype.valueOf.call(N)===Boolean.prototype.valueOf.call(I):eo(N)?eo(I)&&BigInt.prototype.valueOf.call(N)===BigInt.prototype.valueOf.call(I):es(I)&&Symbol.prototype.valueOf.call(N)===Symbol.prototype.valueOf.call(I)}function eS(N,I,T,P){if(N===I)return 0!==N||!T||U(N,I);if(T){if("object"!==L(N))return"number"==typeof N&&z(N)&&z(I);if("object"!==L(I)||null===N||null===I||Object.getPrototypeOf(N)!==Object.getPrototypeOf(I))return!1}else{if(null===N||"object"!==L(N))return(null===I||"object"!==L(I)
593)&&N==I;if(null===I||"object"!==L(I))return!1}var D=K(N);if(D!==K(I))return!1;if(Array.isArray(N)){if(N.length!==I.length)return!1;var M=ed(N),R=ed(I);return M.length===R.length&&ek(N,I,T,P,eg,M)}if("[object Object]"===D&&(!Z(N)&&Z(I)||!ee(N)&&ee(I)))return!1;if(Q(N)){if(!Q(I)||Date.prototype.getTime.call(N)!==Date.prototype.getTime.call(I))return!1}else if(X(N)){if(!X(I)||!ev(N,I))return!1}else if(et(N)||N instanceof Error){if(N.message!==I.message||N.name!==I.name)return!1}else if(J(N)){if(!T&&(el(N)||ec(N))){if(!ew(N,I))return!1}else if(!ex(N,I))return!1;var $=ed(N),F=ed(I);return $.length===F.length&&ek(N,I,T,P,em,$)}else if(ee(N))return!!ee(I)&&N.size===I.size&&ek(N,I,T,P,ey);else if(Z(N))return!!Z(I)&&N.size===I.size&&ek(N,I,T,P,eb);else if(Y(N)){if(!eA(N,I))return!1}else if(er(N)&&!eE(N,I))return!1;return ek(N,I,T,P,em)}function e_(N,I){return I.filter(function(I){return G(N,I)})}function ek(N,I,T,P,D,M){if(5==arguments.length){M=Object.keys(N);var R=Object.keys(I);if(M.length!==R.length)return!1}for(var L=0;L<M.length;L++)if(!q(I,M[L]))return!1;if(T&&5==arguments.length){var $=H(N);if(0!==$.length){var F=0;for(L=0;L<$.length;L++){var B=$[L];if(G(N,B)){if(!G(I,B))return!1;M.push(B),F++}else if(G(I,B))return!1}var U=H(I);if($.length!==U.length&&e_(I,U).length!==F)return!1}else{var z=H(I);if(0!==z.length&&0!==e_(I,z).length)return!1}}if(0===M.length&&(D===em||D===eg&&0===N.length||0===N.size))return!0;if(void 0===P)P={val1:new Map,val2:new Map,position:0};else{var W=P.val1.get(N);if(void 0!==W){var K=P.val2.get(I);if(void 0!==K)return W===K}P.position++}P.val1.set(N,P.position),P.val2.set(I,P.position);var V=eD(N,I,T,M,P,D);return P.val1.delete(N),P.val2.delete(I),V}function eC(N,I,T,P){for(var D=F(N),M=0;M<D.length;M++){var R=D[M];if(eS(I,R,T,P))return N.delete(R),!0}return!1}function ej(N){switch(L(N)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":N*=1;case"number":if(z(N))return!1}return!0}function eO(N,I,T){var P=ej(T);return null!=P?P:I.has(P)&&!N.has(P)}function eN(N,I,T,P,D){var M=ej(T);if(null!=M)return M;var R=I.get(M);return(void 0!==R||!!I.has(M))&&!!eS(P,R,!1,D)&&!N.has(M)&&eS(P,R,!1,D)}function eI(N,I,T,P){for(var D=null,M=F(N),R=0;R<M.length;R++){var $=M[R];if("object"===L($)&&null!==$)null===D&&(D=new Set),D.add($);else if(!I.has($)){if(T||!eO(N,I,$))return!1;null===D&&(D=new Set),D.add($)}}if(null!==D){for(var B=F(I),U=0;U<B.length;U++){var H=B[U];if("object"===L(H)&&null!==H){if(!eC(D,H,T,P))return!1}else if(!T&&!N.has(H)&&!eC(D,H,T,P))return!1}return 0===D.size}return!0}function eT(N,I,T,P,D,M){for(var R=F(N),L=0;L<R.length;L++){var $=R[L];if(eS(T,$,D,M)&&eS(P,I.get($),D,M))return N.delete($),!0}return!1}function eP(N,I,T,D){for(var M=null,R=B(N),$=0;$<R.length;$++){var F=P(R[$],2),U=F[0],H=F[1];if("object"===L(U)&&null!==U)null===M&&(M=new Set),M.add(U);else{var z=I.get(U);if(void 0===z&&!I.has(U)||!eS(H,z,T,D)){if(T||!eN(N,I,U,H,D))return!1;null===M&&(M=new Set),M.add(U)}}}if(null!==M){for(var W=B(I),q=0;q<W.length;q++){var G=P(W[q],2),U=G[0],K=G[1];if("object"===L(U)&&null!==U){if(!eT(M,N,U,K,T,D))return!1}else if(!T&&(!N.has(U)||!eS(N.get(U),K,!1,D))&&!eT(M,N,U,K,!1,D))return!1}return 0===M.size}return!0}function eD(N,I,T,P,D,M){var R=0;if(M===ey){if(!eI(N,I,T,D))return!1}else if(M===eb){if(!eP(N,I,T,D))return!1}else if(M===eg)for(;R<N.length;R++)if(q(N,R)){if(!q(I,R)||!eS(N[R],I[R],T,D))return!1}else{if(q(I,R))return!1;for(var L=Object.keys(N);R<L.length;R++){var $=L[R];if(!q(I,$)||!eS(N[$],I[$],T,D))return!1}if(L.length!==Object.keys(I).length)return!1;return!0}for(R=0;R<P.length;R++){var F=P[R];if(!eS(N[F],I[F],T,D))return!1}return!0}N.exports={isDeepEqual:function(N,I){return eS(N,I,ep)},isDeepStrictEqual:function(N,I){return eS(N,I,eh)}}},1648:function(N,I,T){"use strict";var P=T(7797),D=T(4834),M=T(8772);N.exports=T(9095)||P.call(M,D)},4757:function(N,I,T){"use strict";var P=T(7797),D=T(4834),M=T(1648);N.exports=function(){return M(P,D,arguments)}},4834:function(N){"use strict";N.exports=Function.prototype.apply},8772:function(N){"use strict";N.exports=Function.prototype.call},2462:function(N,I,T){"use strict";var P=T(7797),D=T(4785),M=T(8772),R=T(1648);N.exports=function(N){if(N.length<1||"function"!=typeof N[0])throw new D("a function is required");return R(P,M,N)}},9095:function(N){"use strict";N.exports="u">typeof Reflect&&Reflect&&Reflect.apply},2400:function(N,I,T){"use strict";var P=T(7797),D=T(1893),M=D("%Function.prototype.apply%"),R=D("%Function.prototype.call%"),L=D("%Reflect.apply%",!0)||P.call(
593R,M),$=D("%Object.getOwnPropertyDescriptor%",!0),F=D("%Object.defineProperty%",!0),B=D("%Math.max%");if(F)try{F({},"a",{value:1})}catch(N){F=null}N.exports=function(N){var I=L(P,R,arguments);return $&&F&&$(I,"length").configurable&&F(I,"length",{value:1+B(0,N.length-(arguments.length-1))}),I};var U=function(){return L(P,M,arguments)};F?F(N.exports,"apply",{value:U}):N.exports.apply=U},2982:function(N,I,T){"use strict";var P=T(1893),D=T(5494),M=D(P("String.prototype.indexOf"));N.exports=function(N,I){var T=P(N,!!I);return"function"==typeof T&&M(N,".prototype.")>-1?D(T):T}},5494:function(N,I,T){"use strict";var P=T(3798),D=T(871),M=T(2462),R=T(4757);N.exports=function(N){var I=M(arguments),T=N.length-(arguments.length-1);return P(I,1+(T>0?T:0),!0)},D?D(N.exports,"apply",{value:R}):N.exports.apply=R},2071:function(N,I,T){"use strict";var P=T(871),D=T(9546),M=T(4785),R=T(8322);N.exports=function(N,I,T){if(!N||"object"!=typeof N&&"function"!=typeof N)throw new M("`obj` must be an object or a function`");if("string"!=typeof I&&"symbol"!=typeof I)throw new M("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new M("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new M("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new M("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new M("`loose`, if provided, must be a boolean");var L=arguments.length>3?arguments[3]:null,$=arguments.length>4?arguments[4]:null,F=arguments.length>5?arguments[5]:null,B=arguments.length>6&&arguments[6],U=!!R&&R(N,I);if(P)P(N,I,{configurable:null===F&&U?U.configurable:!F,enumerable:null===L&&U?U.enumerable:!L,value:T,writable:null===$&&U?U.writable:!$});else if(!B&&(L||$||F))throw new D("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else N[I]=T}},1246:function(N,I,T){"use strict";var P=T(7238),D="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),M=Object.prototype.toString,R=Array.prototype.concat,L=Object.defineProperty,$=function(N){return"function"==typeof N&&"[object Function]"===M.call(N)},F=function(){var N={};try{for(var I in L(N,"x",{enumerable:!1,value:N}),N)return!1;return N.x===N}catch(N){return!1}},B=L&&F(),U=function(N,I,T,P){(!(I in N)||$(P)&&P())&&(B?L(N,I,{configurable:!0,enumerable:!1,value:T,writable:!0}):N[I]=T)},H=function(N,I){var T=arguments.length>2?arguments[2]:{},M=P(I);D&&(M=R.call(M,Object.getOwnPropertySymbols(I)));for(var L=0;L<M.length;L+=1)U(N,M[L],I[M[L]],T[M[L]])};H.supportsDescriptors=!!B,N.exports=H},3859:function(N,I,T){"use strict";var P,D=T(2462),M=T(8322);try{P=[].__proto__===Array.prototype}catch(N){if(!N||"object"!=typeof N||!("code"in N)||"ERR_PROTO_ACCESS"!==N.code)throw N}var R=!!P&&M&&M(Object.prototype,"__proto__"),L=Object,$=L.getPrototypeOf;N.exports=R&&"function"==typeof R.get?D([R.get]):"function"==typeof $&&function(N){return $(null==N?N:L(N))}},871:function(N){"use strict";var I=Object.defineProperty||!1;if(I)try{I({},"a",{value:1})}catch(N){I=!1}N.exports=I},1247:function(N){"use strict";N.exports=EvalError},6621:function(N){"use strict";N.exports=Error},6136:function(N){"use strict";N.exports=RangeError},252:function(N){"use strict";N.exports=ReferenceError},9546:function(N){"use strict";N.exports=SyntaxError},4785:function(N){"use strict";N.exports=TypeError},1223:function(N){"use strict";N.exports=URIError},8300:function(N){"use strict";N.exports=Object},3639:function(N){"use strict";function I(N,I){if(null==N)throw TypeError("Cannot convert first argument to object");for(var T=Object(N),P=1;P<arguments.length;P++){var D=arguments[P];if(null!=D)for(var M=Object.keys(Object(D)),R=0,L=M.length;R<L;R++){var $=M[R],F=Object.getOwnPropertyDescriptor(D,$);void 0!==F&&F.enumerable&&(T[$]=D[$])}}return T}function T(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,
593configurable:!0,writable:!0,value:I})}N.exports={assign:I,polyfill:T}},4680:function(N){var I=Object.prototype.hasOwnProperty,T=Object.prototype.toString;N.exports=function(N,P,D){if("[object Function]"!==T.call(P))throw TypeError("iterator must be a function");var M=N.length;if(M===+M)for(var R=0;R<M;R++)P.call(D,N[R],R,N);else for(var L in N)I.call(N,L)&&P.call(D,N[L],L,N)}},6555:function(N){"use strict";var I="Function.prototype.bind called on incompatible ",T=Object.prototype.toString,P=Math.max,D="[object Function]",M=function(N,I){for(var T=[],P=0;P<N.length;P+=1)T[P]=N[P];for(var D=0;D<I.length;D+=1)T[D+N.length]=I[D];return T},R=function(N,I){for(var T=[],P=I||0,D=0;P<N.length;P+=1,D+=1)T[D]=N[P];return T},L=function(N,I){for(var T="",P=0;P<N.length;P+=1)T+=N[P],P+1<N.length&&(T+=I);return T};N.exports=function(N){var $,F=this;if("function"!=typeof F||T.apply(F)!==D)throw TypeError(I+F);for(var B=R(arguments,1),U=function(){if(this instanceof $){var I=F.apply(this,M(B,arguments));return Object(I)===I?I:this}return F.apply(N,M(B,arguments))},H=P(0,F.length-B.length),z=[],W=0;W<H;W++)z[W]="$"+W;if($=Function("binder","return function ("+L(z,",")+"){ return binder.apply(this,arguments); }")(U),F.prototype){var q=function(){};q.prototype=F.prototype,$.prototype=new q,q.prototype=null}return $}},7797:function(N,I,T){"use strict";var P=T(6555);N.exports=Function.prototype.bind||P},1893:function(N,I,T){"use strict";var P,D=T(8300),M=T(6621),R=T(1247),L=T(6136),$=T(252),F=T(9546),B=T(4785),U=T(1223),H=T(4197),z=T(4455),W=T(1295),q=T(6949),G=T(2943),K=T(1721),V=T(3536),Y=Function,J=function(N){try{return Y('"use strict"; return ('+N+").constructor;")()}catch(N){}},Q=T(8322),Z=T(871),X=function(){throw new B},ee=Q?function(){try{return arguments.callee,X}catch(N){try{return Q(arguments,"callee").get}catch(N){return X}}}():X,et=T(9131)(),er=T(9717),en=T(45),ea=T(7767),ei=T(4834),eo=T(8772),es={},el="u">typeof Uint8Array&&er?er(Uint8Array):P,ec={__proto__:null,"%AggregateError%":"u"<typeof AggregateError?P:AggregateError,"%Array%":Array,"%ArrayBuffer%":"u"<typeof ArrayBuffer?P:ArrayBuffer,"%ArrayIteratorPrototype%":et&&er?er([][Symbol.iterator]()):P,"%AsyncFromSyncIteratorPrototype%":P,"%AsyncFunction%":es,"%AsyncGenerator%":es,"%AsyncGeneratorFunction%":es,"%AsyncIteratorPrototype%":es,"%Atomics%":"u"<typeof Atomics?P:Atomics,"%BigInt%":"u"<typeof BigInt?P:BigInt,"%BigInt64Array%":"u"<typeof BigInt64Array?P:BigInt64Array,"%BigUint64Array%":"u"<typeof BigUint64Array?P:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"u"<typeof DataView?P:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":M,"%eval%":eval,"%EvalError%":R,"%Float16Array%":"u"<typeof Float16Array?P:Float16Array,"%Float32Array%":"u"<typeof Float32Array?P:Float32Array,"%Float64Array%":"u"<typeof Float64Array?P:Float64Array,"%FinalizationRegistry%":"u"<typeof FinalizationRegistry?P:FinalizationRegistry,"%Function%":Y,"%GeneratorFunction%":es,"%Int8Array%":"u"<typeof Int8Array?P:Int8Array,"%Int16Array%":"u"<typeof Int16Array?P:Int16Array,"%Int32Array%":"u"<typeof Int32Array?P:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
593IteratorPrototype%":et&&er?er(er([][Symbol.iterator]())):P,"%JSON%":"object"==typeof JSON?JSON:P,"%Map%":"u"<typeof Map?P:Map,"%MapIteratorPrototype%":"u">typeof Map&&et&&er?er((new Map)[Symbol.iterator]()):P,"%Math%":Math,"%Number%":Number,"%Object%":D,"%Object.getOwnPropertyDescriptor%":Q,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"u"<typeof Promise?P:Promise,"%Proxy%":"u"<typeof Proxy?P:Proxy,"%RangeError%":L,"%ReferenceError%":$,"%Reflect%":"u"<typeof Reflect?P:Reflect,"%RegExp%":RegExp,"%Set%":"u"<typeof Set?P:Set,"%SetIteratorPrototype%":"u">typeof Set&&et&&er?er((new Set)[Symbol.iterator]()):P,"%SharedArrayBuffer%":"u"<typeof SharedArrayBuffer?P:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":et&&er?er(""[Symbol.iterator]()):P,"%Symbol%":et?Symbol:P,"%SyntaxError%":F,"%ThrowTypeError%":ee,"%TypedArray%":el,"%TypeError%":B,"%Uint8Array%":"u"<typeof Uint8Array?P:Uint8Array,"%Uint8ClampedArray%":"u"<typeof Uint8ClampedArray?P:Uint8ClampedArray,"%Uint16Array%":"u"<typeof Uint16Array?P:Uint16Array,"%Uint32Array%":"u"<typeof Uint32Array?P:Uint32Array,"%URIError%":U,"%WeakMap%":"u"<typeof WeakMap?P:WeakMap,"%WeakRef%":"u"<typeof WeakRef?P:WeakRef,"%WeakSet%":"u"<typeof WeakSet?P:WeakSet,"%Function.prototype.call%":eo,"%Function.prototype.apply%":ei,"%Object.defineProperty%":Z,"%Object.getPrototypeOf%":en,"%Math.abs%":H,"%Math.floor%":z,"%Math.max%":W,"%Math.min%":q,"%Math.pow%":G,"%Math.round%":K,"%Math.sign%":V,"%Reflect.getPrototypeOf%":ea};if(er)try{null.error}catch(N){var eu=er(er(N));ec["%Error.prototype%"]=eu}var ed=function N(I){var T;if("%AsyncFunction%"===I)T=J("async function () {}");else if("%GeneratorFunction%"===I)T=J("function* () {}");else if("%AsyncGeneratorFunction%"===I)T=J("async function* () {}");else if("%AsyncGenerator%"===I){var P=N("%AsyncGeneratorFunction%");P&&(T=P.prototype)}else if("%AsyncIteratorPrototype%"===I){var D=N("%AsyncGenerator%");D&&er&&(T=er(D.prototype))}return ec[I]=T,T},ef={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},eh=T(7797),ep=T(3383),em=eh.call(eo,Array.prototype.concat),eg=eh.call(ei,Array.prototype.splice),ey=eh.call(eo,String.prototype.replace),eb=eh.call(eo,String.prototype.slice),ev=eh.call(eo,RegExp.prototype.exec),ew=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ex=/\\(\\)?/g,eA=function(N){var I=eb(N,0,1),T=eb(N,-1);if("%"===I&&"%"!==T)throw new F("invalid intrinsic syntax, expected closing `%`");if("%"===T&&"%"!==I)throw new F("invalid intrinsic syntax, expected opening `%`");var P=[];return ey(N,ew,function(N,I,T,D){P[P.length]=T?ey(D,ex,"$1"):I||N}),P},eE=function(N,I){var T,P=N;if(ep(ef,P)&&(P="%"+(T=ef[P])[0]+"%"),ep(ec,P)){var D=ec[P];if(D===es&&(D=ed(P)),void 0===D&&!I)throw new B("intrinsic "+N+" exists, but is not available. Please file an issue!");return{alias:T,name:P,value:D}}throw new F("intrinsic "+N+" does not exist!")};N.exports=function(N,I){if("string"!=typeof N||0===N.length)throw new B("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof I)throw new B('"allowMissing" argument must be a boolean');if(null===ev(/^%?[^%]*%?$/,N))throw new F("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var T=eA(N),P=T.length>0?T[0]:"",D=eE("%"+P+"%",I),M=D.name,R=D.value,L=!1,$=D.alias;$&&(P=$[0],eg(T,em([0,1],$)));for(var U=1,H=!0;U<T.length;U+=1){var z=T[U],W=eb(z,0,1),q=eb(z,-1);if(('"'===W||"'"===W||"`"===W||'"'===q||"'"===q||"`"===q)&&W!==q)throw new F("property names with quotes must have matching quotes");if("constructor"!==z&&H||(L=!0),P+="."+z,ep(ec,M="%"+P+"%"))R=ec[M];else if(null!=R){if(!(z in R)){if(!I)throw new B("base intrinsic for "+N+" exists, but the property is not available.");return}if(Q&&U+1>=T.length){var G=Q(R,z);R=(H=!!G)&&"get"in G&&!("originalValue"in G.get)?G.get:R[z]}else H=ep(R,z),R=R[z];H&&!L&&(ec[M]=R)}}return R}},45:function(N,I,T){"use strict";N.exports=T(8300).getPrototypeOf||null},7767:function(N){"use strict";N.exports="u">typeof Reflect&&Reflect.getPrototypeOf||null},9717:function(N,I,T){"use strict";var P=T(7767),D=T(45),M=T(3859);N.exports=P?function(N){return P(N)}:D?function(N){if(!N||"object"!=typeof N&&"function"!=typeof N)throw TypeError("getProto: not an object");return D(N)}:M?function(N){return M(N)}:null},8422:function(N){"use strict";N.exports=Object.getOwnPropertyDescriptor},8322:function(N,I,T){"use strict";var P=T(8422);if(P)try{P([],"length")}catch(N){P=null}N.exports=P},8122:function(N,I,T){"use strict";var P=T(871),D=function(){return!!P};D.hasArrayLengthDefineBug=function(){if(!P)return null;try{return 1!==P([],"length",{value:1}).length}catch(N){return!0}},N.exports=D},8564:function(N,I,T){"use strict";var P="u">typeof Symbol&&Symbol,D=T(9094);N.exports=function(){return"function"==typeof P&&"function"==typeof Symbol&&"symbol"==typeof P("foo")&&"symbol"==typeof Symbol("bar")&&D()}},9094:function(N){"use strict";N.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var N={}
593,I=Symbol("test"),T=Object(I);if("string"==typeof I||"[object Symbol]"!==Object.prototype.toString.call(I)||"[object Symbol]"!==Object.prototype.toString.call(T))return!1;var P=42;for(I in N[I]=P,N)return!1;if("function"==typeof Object.keys&&0!==Object.keys(N).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(N).length)return!1;var D=Object.getOwnPropertySymbols(N);if(1!==D.length||D[0]!==I||!Object.prototype.propertyIsEnumerable.call(N,I))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var M=Object.getOwnPropertyDescriptor(N,I);if(M.value!==P||!0!==M.enumerable)return!1}return!0}},9131:function(N,I,T){"use strict";var P="u">typeof Symbol&&Symbol,D=T(6313);N.exports=function(){return"function"==typeof P&&"function"==typeof Symbol&&"symbol"==typeof P("foo")&&"symbol"==typeof Symbol("bar")&&D()}},6313:function(N){"use strict";N.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var N={},I=Symbol("test"),T=Object(I);if("string"==typeof I||"[object Symbol]"!==Object.prototype.toString.call(I)||"[object Symbol]"!==Object.prototype.toString.call(T))return!1;var P=42;for(var D in N[I]=P,N)return!1;if("function"==typeof Object.keys&&0!==Object.keys(N).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(N).length)return!1;var M=Object.getOwnPropertySymbols(N);if(1!==M.length||M[0]!==I||!Object.prototype.propertyIsEnumerable.call(N,I))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var R=Object.getOwnPropertyDescriptor(N,I);if(R.value!==P||!0!==R.enumerable)return!1}return!0}},3383:function(N,I,T){"use strict";var P=Function.prototype.call,D=Object.prototype.hasOwnProperty;N.exports=T(7797).call(P,D)},1638:function(N){"function"==typeof Object.create?N.exports=function(N,I){I&&(N.super_=I,N.prototype=Object.create(I.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}))}:N.exports=function(N,I){if(I){N.super_=I;var T=function(){};T.prototype=I.prototype,N.prototype=new T,N.prototype.constructor=N}}},6960:function(N){"use strict";var I="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,T=Object.prototype.toString,P=function(N){return(!I||!N||"object"!=typeof N||!(Symbol.toStringTag in N))&&"[object Arguments]"===T.call(N)},D=function(N){return!!P(N)||null!==N&&"object"==typeof N&&"number"==typeof N.length&&N.length>=0&&"[object Array]"!==T.call(N)&&"[object Function]"===T.call(N.callee)},M=function(){return P(arguments)}();P.isLegacyArguments=D,N.exports=M?P:D},8979:function(N){"use strict";var I=Object.prototype.toString,T=Function.prototype.toString,P=/^\s*(?:function)?\*/,D="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,M=Object.getPrototypeOf,R=function(){if(!D)return!1;try{return Function("return function*() {}")()}catch(N){}}(),L=R?M(R):{};N.exports=function(N){return"function"==typeof N&&(!!P.test(T.call(N))||(D?M(N)===L:"[object GeneratorFunction]"===I.call(N)))}},2397:function(N){"use strict";N.exports=function(N){return N!=N}},5211:function(N,I,T){"use strict";
593var P=T(2400),D=T(1246),M=T(2397),R=T(8840),L=T(9682),$=P(R(),Number);D($,{getPolyfill:R,implementation:M,shim:L}),N.exports=$},8840:function(N,I,T){"use strict";var P=T(2397);N.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:P}},9682:function(N,I,T){"use strict";var P=T(1246),D=T(8840);N.exports=function(){var N=D();return P(Number,{isNaN:N},{isNaN:function(){return Number.isNaN!==N}}),N}},9572:function(N,I,P){"use strict";var D=P(4680),M=P(3147),R=P(2982),L=R("Object.prototype.toString"),$=P(8564)()&&"symbol"==typeof Symbol.toStringTag,F=M(),B=R("Array.prototype.indexOf",!0)||function(N,I){for(var T=0;T<N.length;T+=1)if(N[T]===I)return T;return -1},U=R("String.prototype.slice"),H={},z=P(9745),W=Object.getPrototypeOf;$&&z&&W&&D(F,function(N){var I=new T.g[N];if(!(Symbol.toStringTag in I))throw EvalError("this engine has support for Symbol.toStringTag, but "+N+" does not have the property! Please report this.");var P=W(I),D=z(P,Symbol.toStringTag);D||(D=z(W(P),Symbol.toStringTag)),H[N]=D.get});var q=function(N){var I=!1;return D(H,function(T,P){if(!I)try{I=T.call(N)===P}catch(N){}}),I};N.exports=function(N){return!!N&&"object"==typeof N&&($?!!z&&q(N):B(F,U(L(N),8,-1))>-1)}},4197:function(N){"use strict";N.exports=Math.abs},4455:function(N){"use strict";N.exports=Math.floor},6128:function(N){"use strict";N.exports=Number.isNaN||function(N){return N!=N}},1295:function(N){"use strict";N.exports=Math.max},6949:function(N){"use strict";N.exports=Math.min},2943:function(N){"use strict";N.exports=Math.pow},1721:function(N){"use strict";N.exports=Math.round},3536:function(N,I,T){"use strict";var P=T(6128);N.exports=function(N){return P(N)||0===N?N:N<0?-1:1}},8388:function(N){"use strict";var I=function(N){return N!=N};N.exports=function(N,T){return 0===N&&0===T?1/N==1/T:!!(N===T||I(N)&&I(T))}},7742:function(N,I,T){"use strict";var P;if(!Object.keys){var D=Object.prototype.hasOwnProperty,M=Object.prototype.toString,R=T(426),L=Object.prototype.propertyIsEnumerable,$=!L.call({toString:null},"toString"),F=L.call(function(){},"prototype"),B=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],U=function(N){var I=N.constructor;return I&&I.prototype===N},H={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},z=function(){if("u"<typeof window)return!1;for(var N in window)try{if(!H["$"+N]&&D.call(window,N)&&null!==window[N]&&"object"==typeof window[N])try{U(window[N])}catch(N){return!0}}catch(N){return!0}return!1}(),W=function(N){if("u"<typeof window||!z)return U(N);try{return U(N)}catch(N){return!1}};P=function(N){var I=null!==N&&"object"==typeof N,T="[object Function]"===M.call(N),P=R(N),L=I&&"[object String]"===M.call(N),U=[];if(!I&&!T&&!P)throw TypeError("Object.keys called on a non-object");var H=F&&T;if(L&&N.length>0&&!D.call(N,0))for(var z=0;z<N.length;++z)U.push(String(z));if(P&&N.length>0)for(var q=0;q<N.length;++q)U.push(String(q));else for(var G in N)!(H&&"prototype"===G)&&D.call(N,G)&&U.push(String(G));if($)for(var K=W(N),V=0;V<B.length;++V)!(K&&"constructor"===B[V])&&D.call(N,B[V])&&U.push(B[V]);return U}}N.exports=P},7238:function(N,I,T){"use strict";var P=Array.prototype.slice,D=T(426),M=Object.keys,R=M?function(N){return M(N)}:T(7742),L=Object.keys;R.shim=function(){return Object.keys?!function(){var N=Object.keys(arguments);return N&&N.length===arguments.length}(1,2)&&(Object.keys=function(N){return D(N)?L(P.call(N)):L(N)}):Object.keys=R,Object.keys||R},N.exports=R},426:function(N){"use strict";var I=Object.prototype.toString;N.exports=function(N){var T=I.call(N),P="[object Arguments]"===T;return P||(P="[object Array]"!==T&&null!==N&&"object"==typeof N&&"number"==typeof N.length&&N.length>=0&&"[object Function]"===I.call(N.callee)),P}},3798:function(N,I,T){"use strict";var P=T(1893),D=T(2071),M=T(8122)(),R=T(8322),L=T(4785),$=P("%Math.floor%");N.exports=function(N,I){if("function"!=typeof N)throw new L("`fn` is not a function");if("number"!=typeof I||I<0||I>0xffffffff||$(I)!==I)throw new L("`length` must be a positive 32-bit integer");var T=arguments.length>2&&!!arguments[2],P=!0,F=!0;if("length"in N&&R){var B=R(N,"length");B&&!B.configurable&&(P=!1),B&&!B.writable&&(F=!1)}return(P||F||!T)&&(M?D(N,"length",I,!0,!0):D(N,"length",I)),N}},3614:function(N){N.exports=function(N){return N instanceof M}},7551:function(N,I,T){"use strict";var P=T(6960),D=T(8979),M=T(3051),R=T(9572);function L(N){return N.call.bind(N)}var $="u">typeof BigInt,F="u">typeof Symbol,B=L(Object.prototype.toString),U=L(Number.prototype.valueOf),H=L(String.prototype.valueOf),z=L(Boolean.prototype.valueOf);if($)var W=L(BigInt.prototype.valueOf);if(F)var q=L(Symbol.prototype.valueOf);function G(N,I){if("object"!=typeof N)return!1;try{return I(N),!0}catch(N){return!1}}function K(N){return"[object Map]"===B(N)}function V(N){return"[object Set]"===B(N)}function Y(N){return"[object WeakMap]"===B(N)}function J(N){return"[object WeakSet]"===B(N)}function Q(N){return"[object ArrayBuffer]"===B(N)}function Z(N){return!("u"<typeof ArrayBuffer)&&(Q.working?Q(N):N instanceof ArrayBuffer)}function X(N){return"[object DataView]"===B(N)}function ee(N){return!("u"<typeof DataView)&&(X.working?X(N):N instanceof DataView)}I.isArgumentsObject=P,I.isGeneratorFunction=D,I.isTypedArray=R,I.isPromise=function(N){return"u">typeof Promise&&N instanceof Promise||null!==N&&"object"==typeof N&&"function"==typeof N.then&&"function"==typeof N.catch},I.isArrayBufferView=function(N){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(N):R(N)||ee(N)},I.isUint8Array=function(N){return"Uint8Array"===M(N)},I.isUint8ClampedArray=function(N){return"Uint8ClampedArray"===M(N)},I.isUint16Array=function(N){return"Uint16Array"===M(N)},I.isUint32Array=function(N){return"Uint32Array"===M(N)},I.isInt8Array=function(N){return"Int8Array"===M(N)},I.isInt16Array=function(N){return"Int16Array"===M(N)},I.isInt32Array=function(N){return"Int32Array"===M(N)},I.isFloat32Array=function(N){return"Float32Array"===M(N)},I.isFloat64Array=function(N){return"Float64Array"===M(N)},I.isBigInt64Array=function(N){return"BigInt64Array"===M(N)},I.isBigUint64Array=function(N){return"BigUint64Array"===M(N)},K.working="u">typeof Map&&K(new Map),I.isMap=function(N){return!("u"<typeof Map)&&(K.working?K(N):N instanceof Map)},V.working="u">typeof Set&&V(new Set),I.isSet=function(N){return!("u"<typeof Set)&&(V.working?V(N):N instanceof Set)},Y.working="u">typeof WeakMap&&Y(new WeakMap),I.isWeakMap=function(N){return!("u"<typeof WeakMap)&&(Y.working?Y(N):N instanceof WeakMap)},J.working="u">typeof WeakSet&&J(new WeakSet),I.isWeakSet=function(N){return J(N)},Q.working="u">typeof ArrayBuffer&&Q(new ArrayBuffer),I.isArrayBuffer=Z,X.working="u">typeof ArrayBuffer&&"u">typeof DataView&&X(new DataView(new ArrayBuffer(1),0,1)),I.isDataView=ee;var et="u">typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function er(N){return"[object SharedArrayBuffer]"===B(N)}function en(N){return void 0!==et&&(void 0===er.working&&(er.working=er(new et)),er.working?er(N):N instanceof et)}function ea(N){return G(N,U)}function ei(N){return G(N,H)}function eo(N){return G(N,z)}function es(N){return $&&G(N,W)}function el(N){return F&&G(N,q)}I.isSharedArrayBuffer=en,I.isAsyncFunction=function(N){return"[object AsyncFunction]"===B(N)},I.isMapIterator=function(N){return"[object Map Iterator]"===B(N)},I.isSetIterator=function(N){return"[object Set Iterator]"===B(N)},I.isGeneratorObject=function(N){return"[object Generator]"===B(N)},I.isWebAssemblyCompiledModule=function(N){return"[object WebAssembly.Module]"===B(N)},I.isNumberObject=ea,I.isStringObject=ei,I.isBooleanObject=eo,I.isBigIntObject=es,I.isSymbolObject=el,I.isBoxedPrimitive=function(N){return ea(N)||ei(N)||eo(N)||es(N)||el(N)},I.isAnyArrayBuffer=function(N){return"u">typeof Uint8Array&&(Z(N)||en(N))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(N){Object.defineProperty(I,N,{enumerable:!1,value:function(){throw Error(N+" is not supported in userland")}})})},4268:function(N,I,T){var P=Object.getOwnPropertyDescriptors||function(N){for(var I=Object.keys(N),T={},P=0;P<I.length;P++)T[I[P]]=Object.getOwnPropertyDescriptor(N,I[P]);return T},M=/%[sdj%]/g;I.format=function(N){if(!X(N)){for(var I=[],T=0;T<arguments.length;T++)I.push(F(arguments[T]));return I.join(" ")}for(var T=1,P=arguments,D=P.length,R=String(N).replace(M,function(N){if("%%"===N)return"%";if(T>=D)return N;switch(N){case"%s":return String(P[T++]);case"%d":return Number(P[T++]);case"%j":try{return JSON.stringify(P[T++])}catch(N){return"[Circular]"}default:return N}}),L=P[T];T<D;L=P[++T])Q(L)||!er(L)?R+=" "+L:R+=" "+F(L);return R},I.deprecate=function(N,T){if(void 0!==D&&!0===D.noDeprecation)return N;if(void 0===D)return function(){return I.deprecate(N,T).apply(this,arguments)};var P=!1;return function(){if(!P){if(D.throwDeprecation)throw Error(T);D.traceDeprecation?console.trace(T):console.error(T),P=!0}return N.apply(this,arguments)}};var R={},L=/^$/;if(D.env.NODE_DEBUG){var $=D.env.NODE_DEBUG;L=RegExp("^"+($=$.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase())+"$","i")}function F(N,T){var P={seen:[],stylize:U};return arguments.length>=3&&(P.depth=arguments[2]),arguments.length>=4&&(P.colors=arguments[3]),J(T)?P.showHidden=T:T&&I._extend(P,T),ee(P.showHidden)&&(P.showHidden=!1),ee(P.depth)&&(P.depth=2),ee(P.colors)&&(P.colors=!1),ee(P.customInspect)&&(P.customInspect=!0),P.colors&&(P.stylize=B),z(P,N,P.depth)}function B(N,I){var T=F.styles[I];return T?"\x1b["+F.colors[T][0]+"m"+N+"\x1b["+F.colors[T][1]+"m":N}function U(N,I){return N}function H(N){var I={};
593return N.forEach(function(N,T){I[N]=!0}),I}function z(N,T,P){if(N.customInspect&&T&&ei(T.inspect)&&T.inspect!==I.inspect&&!(T.constructor&&T.constructor.prototype===T)){var D,M=T.inspect(P,N);return X(M)||(M=z(N,M,P)),M}var R=W(N,T);if(R)return R;var L=Object.keys(T),$=H(L);if(N.showHidden&&(L=Object.getOwnPropertyNames(T)),ea(T)&&(L.indexOf("message")>=0||L.indexOf("description")>=0))return q(T);if(0===L.length){if(ei(T)){var F=T.name?": "+T.name:"";return N.stylize("[Function"+F+"]","special")}if(et(T))return N.stylize(RegExp.prototype.toString.call(T),"regexp");if(en(T))return N.stylize(Date.prototype.toString.call(T),"date");if(ea(T))return q(T)}var B="",U=!1,J=["{","}"];if(Y(T)&&(U=!0,J=["[","]"]),ei(T)&&(B=" [Function"+(T.name?": "+T.name:"")+"]"),et(T)&&(B=" "+RegExp.prototype.toString.call(T)),en(T)&&(B=" "+Date.prototype.toUTCString.call(T)),ea(T)&&(B=" "+q(T)),0===L.length&&(!U||0==T.length))return J[0]+B+J[1];if(P<0)if(et(T))return N.stylize(RegExp.prototype.toString.call(T),"regexp");else return N.stylize("[Object]","special");return N.seen.push(T),D=U?G(N,T,P,$,L):L.map(function(I){return K(N,T,P,$,I,U)}),N.seen.pop(),V(D,B,J)}function W(N,I){if(ee(I))return N.stylize("undefined","undefined");if(X(I)){var T="'"+JSON.stringify(I).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return N.stylize(T,"string")}return Z(I)?N.stylize(""+I,"number"):J(I)?N.stylize(""+I,"boolean"):Q(I)?N.stylize("null","null"):void 0}function q(N){return"["+Error.prototype.toString.call(N)+"]"}function G(N,I,T,P,D){for(var M=[],R=0,L=I.length;R<L;++R)eu(I,String(R))?M.push(K(N,I,T,P,String(R),!0)):M.push("");return D.forEach(function(D){D.match(/^\d+$/)||M.push(K(N,I,T,P,D,!0))}),M}function K(N,I,T,P,D,M){var R,L,$;if(($=Object.getOwnPropertyDescriptor(I,D)||{value:I[D]}).get?L=$.set?N.stylize("[Getter/Setter]","special"):N.stylize("[Getter]","special"):$.set&&(L=N.stylize("[Setter]","special")),eu(P,D)||(R="["+D+"]"),!L&&(0>N.seen.indexOf($.value)?(L=Q(T)?z(N,$.value,null):z(N,$.value,T-1)).indexOf("\n")>-1&&(L=M?L.split("\n").map(function(N){return" "+N}).join("\n").substr(2):"\n"+L.split("\n").map(function(N){return" "+N}).join("\n")):L=N.stylize("[Circular]","special")),ee(R)){if(M&&D.match(/^\d+$/))return L;(R=JSON.stringify(""+D)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(R=R.substr(1,R.length-2),R=N.stylize(R,"name")):(R=R.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),R=N.stylize(R,"string"))}return R+": "+L}function V(N,I,T){var P=0;return N.reduce(function(N,I){return P++,I.indexOf("\n")>=0&&P++,N+I.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?T[0]+(""===I?"":I+"\n ")+" "+N.join(",\n ")+" "+T[1]:T[0]+I+" "+N.join(", ")+" "+T[1]}function Y(N){return Array.isArray(N)}function J(N){return"boolean"==typeof N}function Q(N){return null===N}function Z(N){return"number"==typeof N}function X(N){return"string"==typeof N}function ee(N){return void 0===N}function et(N){return er(N)&&"[object RegExp]"===eo(N)}function er(N){return"object"==typeof N&&null!==N}function en(N){return er(N)&&"[object Date]"===eo(N)}function ea(N){return er(N)&&("[object Error]"===eo(N)||N instanceof Error)}function ei(N){return"function"==typeof N}function eo(N){return Object.prototype.toString.call(N)}function es(N){return N<10?"0"+N.toString(10):N.toString(10)}I.debuglog=function(N){if(!R[N=N.toUpperCase()])if(L.test(N)){var T=D.pid;R[N]=function(){var P=I.format.apply(I,arguments);console.error("%s %d: %s",N,T,P)}}else R[N]=function(){};return R[N]},I.inspect=F,F.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},F.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},I.types=T(7551),I.isArray=Y,I.isBoolean=J,I.isNull=Q,I.isNullOrUndefined=function(N){return null==N},I.isNumber=Z,I.isString=X,I.isSymbol=function(N){return"symbol"==typeof N},I.isUndefined=ee,I.isRegExp=et,I.types.isRegExp=et,I.isObject=er,I.isDate=en,I.types.isDate=en,I.isError=ea,I.types.isNativeError=ea,I.isFunction=ei,I.isPrimitive=function(N){return null===N||"boolean"==typeof N||"number"==typeof N||"string"==typeof N||"symbol"==typeof N||void 0===N},I.isBuffer=T(3614);var el=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ec(){var N=new Date,I=[es(N.getHours()),es(N.getMinutes()),es(N.getSeconds())].join(":");return[N.getDate(),el[N.getMonth()],I].join(" ")}function eu(N,I){return Object.prototype.hasOwnProperty.call(N,I)}I.log=function(){console.log("%s - %s",ec(),I.format.apply(I,arguments))},I.inherits=T(1638),I._extend=function(N,I){if(!I||!er(I))return N;for(var T=Object.keys(I),P=T.length;P--;)N[T[P]]=I[T[P]];return N};var ed="u">typeof Symbol?Symbol("util.promisify.custom"):void 0;function ef(N,I){if(!N){var T=Error("Promise was rejected with a falsy value");T.reason=N,N=T}return I(N)}I.promisify=function(N){if("function"!=typeof N)throw TypeError('The "original" argument must be of type Function');
593if(ed&&N[ed]){var I=N[ed];if("function"!=typeof I)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(I,ed,{value:I,enumerable:!1,writable:!1,configurable:!0}),I}function I(){for(var I,T,P=new Promise(function(N,P){I=N,T=P}),D=[],M=0;M<arguments.length;M++)D.push(arguments[M]);D.push(function(N,P){N?T(N):I(P)});try{N.apply(this,D)}catch(N){T(N)}return P}return Object.setPrototypeOf(I,Object.getPrototypeOf(N)),ed&&Object.defineProperty(I,ed,{value:I,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(I,P(N))},I.promisify.custom=ed,I.callbackify=function(N){if("function"!=typeof N)throw TypeError('The "original" argument must be of type Function');function I(){for(var I=[],T=0;T<arguments.length;T++)I.push(arguments[T]);var P=I.pop();if("function"!=typeof P)throw TypeError("The last argument must be of type Function");var M=this,R=function(){return P.apply(M,arguments)};N.apply(this,I).then(function(N){D.nextTick(R.bind(null,null,N))},function(N){D.nextTick(ef.bind(null,N,R))})}return Object.setPrototypeOf(I,Object.getPrototypeOf(N)),Object.defineProperties(I,P(N)),I}},3051:function(N,I,P){"use strict";var D=P(4680),M=P(3147),R=P(2982),L=R("Object.prototype.toString"),$=P(8564)()&&"symbol"==typeof Symbol.toStringTag,F=M(),B=R("String.prototype.slice"),U={},H=P(9745),z=Object.getPrototypeOf;$&&H&&z&&D(F,function(N){if("function"==typeof T.g[N]){var I=new T.g[N];if(!(Symbol.toStringTag in I))throw EvalError("this engine has support for Symbol.toStringTag, but "+N+" does not have the property! Please report this.");var P=z(I),D=H(P,Symbol.toStringTag);D||(D=H(z(P),Symbol.toStringTag)),U[N]=D.get}});var W=function(N){var I=!1;return D(U,function(T,P){if(!I)try{var D=T.call(N);D===P&&(I=D)}catch(N){}}),I},q=P(9572);N.exports=function(N){return!!q(N)&&($?W(N):B(L(N),8,-1))}},3147:function(N,I,P){"use strict";var D=P(7492);N.exports=function(){return D(["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],function(N){return"function"==typeof T.g[N]})}},9745:function(N,I,T){"use strict";N.exports=T(8322)}},L={};function $(N){var I=L[N];if(void 0!==I)return I.exports;var T=L[N]={exports:{}},P=!0;try{R[N](T,T.exports,$),P=!1}finally{P&&delete L[N]}return T.exports}$.ab=P+"/",N.exports=$(6810)},34341:(N,I,T)=>{let P=T(53168),D=T(69288),{RPError:M}=T(79391),{assertIssuerConfiguration:R}=T(52492),L=T(75402),{keystores:$}=T(86159),F=T(79435),B=T(18707),U=new WeakMap,H=new WeakMap,z=N=>(H.has(N)||H.set(N,new D({max:100})),H.get(N));async function W(N=!1){R(this,"jwks_uri");let I=$.get(this),T=z(this);return N||!I?(U.has(this)||(T.reset(),U.set(this,(async()=>{let N=F(await B.call(this,{method:"GET",responseType:"json",url:this.jwks_uri,headers:{Accept:"application/json, application/jwk-set+json"}}).finally(()=>{U.delete(this)})),I=L.fromJWKS(N,{onlyPublic:!0});return T.set("throttle",!0,6e4),$.set(this,I),I})())),U.get(this)):I}async function q({kid:N,kty:I,alg:T,use:D},{allowMulti:R=!1}={}){let L=z(this),$={kid:N,kty:I,alg:T,use:D},F=P($,{algorithm:"sha256",ignoreUnknown:!0,unorderedArrays:!0,unorderedSets:!0,respectType:!1}),B=L.get(F)||L.get("throttle"),U=await W.call(this,!B),H=U.all($);if(delete $.use,0===H.length)throw new M({printf:["no valid key found in issuer's jwks_uri for key parameters %j",$],jwks:U});if(!R&&H.length>1&&!N)throw new M({printf:["multiple matching keys found in issuer's jwks_uri for key parameters %j, kid must be provided in this case",$],jwks:U});return L.set(F,!0),H}N.exports.queryKeyStore=q,N.exports.keystore=W},34594:(N,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),function(N,I){for(var T in I)Object.defineProperty(N,T,{enumerable:!0,get:I[T]})}(I,{INSTANT_SLOT_MARKER_PREFIX:function(){return P},INSTANT_SLOT_MARKER_SUFFIX:function(){return D},INSTANT_VALIDATION_BOUNDARY_NAME:function(){return T}});let T="__next_instant_validation_boundary__",P="__next_instant_slot_",D="__"},34644:(N,I,T)=>{"use strict";T.r(I),T.d(I,{ButtonVariants:()=>R});var P=T(96847),D=T(47137);let M=(0,P.cn)("flex items-center gap-2 rounded-xs px-3 py-4","underline decoration-transparent decoration-3 underline-offset-6","outline-[1.5px] outline-transparent outline-dashed","rounded-xs","transition-all duration-300 ease-in-out [&>span]:transition-all [&>span]:duration-300 [&>span]:ease-in-out","hover:cursor-pointer focus:shadow-transparent active:shadow-transparent md:w-max"),R=(0,D.F)([M],{variants:{width:{full:"w-full! grow"},background:{white:"",grey:"",yellow:"",darkGrey:"",transparent:""},variant:{primary:"",primaryrounded:"",alternative:"",black:"",greyGreen:"",secondary:"",tertiary:"",mybrunel:"",textOnly:"",taylorhopkinson:""}},compoundVariants:[{background:["white","grey"],variant:"primary",className:"bg-brunel-yellow shadow-accent-pacifika hover:bg-accent-corn hover:decoration-brunel-dark-grey focus:bg-accent-corn focus:outline-brunel-dark-grey active:bg-accent-corn active:outline-brunel-dark-grey [&>p]:text-brunel-dark-grey [&>span]:bg-brunel-dark-grey"},{background:["white","grey"],variant:"primaryrounded",className:"rounded-full bg-brunel-yellow transition-all duration-500 ease-in-out hover:bg-accent-corn hover:text-brunel-dark-grey hover:shadow-lg focus:bg-accent-corn focus:outline-brunel-dark-grey active:bg-accent-corn active:outline-brunel-dark-grey [&>p]:text-brunel-dark-grey [&>span]:bg-brunel-dark-grey"},{background:["white","grey"],variant:"alternative",className:"bg-brunel-dark-grey text-white shadow-ui-green-grey hover:decoration-brunel-yellow focus:outline-brunel-yellow active:outline-brunel-yellow [&>a>p]:text-white [&>p]:text-white"},{background:["white","grey"],variant:"black",className:"bg-brunel-black text-white shadow-ui-green-grey hover:decoration-brunel-yellow focus:outline-brunel-yellow active:outline-brunel-yellow [&>a>p]:text-white [&>p]:text-white"},{background:["white","grey"],variant:"greyGreen",className:"bg-brunel-grey-green text-white shadow-ui-green-grey hover:decoration-brunel-yellow focus:outline-brunel-yellow active:outline-brunel-yellow [&>a>p]:text-white [&>p]:text-white"},{background:["white","grey"],variant:"secondary",className:"solid border-3 border-brunel-dark-grey bg-transparent shadow-ui-light-grey hover:border-3 hover:decoration-brunel-dark-grey focus:outline-brunel-dark-grey active:outline-brunel-dark-grey [&>p]:text-brunel-dark-grey [&>span]:bg-brunel-dark-grey"},{background:["white","grey"],variant:"tertiary",className:"bg-transparent uppercase shadow-transparent hover:
593decoration-brunel-dark-grey focus:outline-brunel-dark-grey active:outline-brunel-dark-grey disabled:cursor-not-allowed disabled:no-underline disabled:opacity-50 disabled:focus:outline-none disabled:active:outline-none [&>p]:text-brunel-dark-grey [&>span]:bg-brunel-dark-grey"},{background:["white","grey"],variant:"mybrunel",className:"solid w-full! bg-accent-pampas p-2 focus:outline-brunel-dark-grey active:outline-brunel-dark-grey [&>p]:text-brunel-dark-grey [&>span]:bg-brunel-dark-grey"},{background:["white","grey"],variant:"textOnly",className:"solid w-full! bg-transparent p-0 hover:decoration-brunel-dark-grey focus:outline-brunel-dark-grey active:outline-brunel-dark-grey [&>p]:text-brunel-dark-grey [&>span]:bg-brunel-dark-grey"},{background:["yellow"],variant:"primary",className:"bg-brunel-dark-grey shadow-accent-pacifika hover:decoration-brunel-yellow focus:outline-brunel-dark-grey active:outline-brunel-dark-grey [&>p]:text-white [&>span]:bg-white"},{background:["yellow"],variant:"alternative",className:"bg-white shadow-ui-green-grey hover:decoration-brunel-dark-grey focus:outline-brunel-dark-grey active:outline-brunel-dark-grey [&>p]:text-brunel-dark-grey [&>span]:bg-brunel-dark-grey"},{background:["yellow"],variant:"black",className:"bg-brunel-black text-white shadow-ui-green-grey hover:decoration-brunel-yellow focus:outline-brunel-dark-grey active:outline-brunel-dark-grey [&>a>p]:text-white [&>p]:text-white [&>span]:bg-white"},{background:["yellow"],variant:"greyGreen",className:"bg-brunel-grey-green text-white shadow-ui-green-grey hover:decoration-brunel-yellow focus:outline-brunel-dark-grey active:outline-brunel-dark-grey [&>a>p]:text-white [&>p]:text-white [&>span]:bg-white"},{background:["yellow"],variant:"secondary",className:"solid border-3 border-brunel-dark-grey bg-transparent shadow-ui-light-grey hover:border-3 hover:decoration-brunel-dark-grey focus:outline-brunel-dark-grey active:outline-brunel-dark-grey [&>p]:text-brunel-dark-grey [&>span]:bg-brunel-dark-grey"},{background:["yellow"],variant:"tertiary",className:"bg-transparent uppercase shadow-transparent hover:decoration-brunel-dark-grey focus:outline-brunel-dark-grey active:outline-brunel-dark-grey [&>p]:text-brunel-dark-grey [&>span]:bg-brunel-dark-grey"},{background:["darkGrey"],variant:"primary",className:"bg-brunel-yellow shadow-accent-pacifika hover:bg-accent-corn hover:decoration-brunel-dark-grey focus:bg-accent-corn focus:outline-white active:bg-accent-corn active:outline-white [&>p]:text-white [&>span]:bg-brunel-dark-grey"},{background:["darkGrey"],variant:"alternative",className:"bg-white shadow-ui-green-grey hover:decoration-brunel-dark-grey focus:outline-white active:outline-white [&>p]:text-white [&>span]:bg-brunel-dark-grey"},{background:["darkGrey"],variant:"black",className:"bg-brunel-black text-white shadow-ui-green-grey hover:decoration-brunel-yellow focus:outline-white active:outline-white [&>a>p]:text-white [&>p]:text-white [&>span]:bg-white"},{background:["darkGrey"],variant:"greyGreen",className:"bg-brunel-grey-green text-white shadow-ui-green-grey hover:decoration-brunel-yellow focus:outline-white active:outline-white [&>a>p]:text-white [&>p]:text-white [&>span]:bg-white"},{background:["darkGrey"],variant:"secondary",className:"solid border-3 border-white bg-transparent shadow-ui-light-grey hover:border-3 hover:decoration-white focus:border-3 focus:outline-white active:border-3 active:outline-white [&>p]:text-white [&>span]:bg-white"},{background:["darkGrey"],variant:"tertiary",className:"bg-transparent uppercase shadow-transparent hover:decoration-white focus:outline-white active:outline-white [&>p]:text-white [&>span]:bg-white"},{background:["transparent"],variant:"secondary",className:"border border-brunel-dark-grey bg-transparent shadow-transparent hover:bg-slate-100"},{background:["white","grey","yellow","darkGrey","transparent"],variant:"taylorhopkinson",className:"focus:bg-th-hover-navy-blue active:bg-th-hover-navy-blue rounded-full border-2 border-th-primary-background bg-th-generic-background text-th-body-text hover:border-2 hover:border-th-cta-background hover:bg-th-cta-background hover:text-th-bold-text [&>span]:bg-th-body-text! hover:[&>span]:bg-th-bold-text!"}],defaultVariants:{background:"white",variant:"primary"}})},34647:(N,I,T)=>{"use strict";T.r(I),T.d(I,{RelatedEventsCard:()=>K});var P=T(37876),D=T(94274),M=T(85609),R=T(87273),L=T(61584),$=T(48230),F=T.n($),B=T(63366),U=T(60409),H=T(98566),z=T(36379),W=T(81202),q=T(69755),G=T(6032);let K=({result:N,lastCard:I})=>{let{page:T}=(0,M.M5)(),$=(0,H.K_)(),K=$?.["event-past-label"]??"Past event",V=N?.eventCategory?.data?.name,Y=N?.eventCategory?.data?.displayName,J=T?.locale??U.Xn,Q=N?.previewImage?.data?.value?.src?N.previewImage.data:N?.eventHeroImage?.data?.value?.src?N.eventHeroImage.data:N?.previewImage?.value?.src?N.previewImage:N?.eventHeroImage?.value?.src?N.eventHeroImage:void 0,Z={value:N?.eventHeroPublicationDate?.value??""},X={value:N?.eventHeroPublicationEndDate?.value??""},ee=(0,W.Yq)(Z,J),et=(0,W.Yq)(X,J),er=(0,W.Qc)(Z.value)&&"Invalid Date"!==ee.value,en=(0,W.Qc)(X.value)&&"Invalid Date"!==et.value,ea=(0,W.D2)(N?.eventHeroPublicationDate?.value,N?.eventHeroPublicationEndDate?.value),ei=(0,G.zP)(N),eo=(0,G.MS)(N);return(0,P.jsxs)(B.az,{className:(0,z.cn)("flex flex-col border-ui-grey py-4 sm:border-none sm:bg-white sm:py-0 sm:sh
593adow-blog-card",{"border-b":!I}),children:[(0,P.jsxs)(F(),{className:"group flex h-full flex-row sm:flex-col",href:N.url?.path??"#",children:[Q&&(0,P.jsxs)(B.az,{className:"relative flex items-center overflow-hidden",children:[(0,P.jsx)(R._,{className:(0,z.cn)("aspect-square max-w-26 object-cover transition-all delay-75 ease-linear hover:scale-105 sm:aspect-video sm:w-full sm:max-w-full"),field:Q,alt:Q?.value?.alt||"Event Card Image",imageParams:{mw:250}}),ea&&(0,P.jsx)(B.az,{className:"pointer-events-none absolute top-2 left-2 rounded bg-black/75 px-2 py-0.5 text-[10px] font-semibold tracking-wide text-white uppercase sm:top-3 sm:left-3 sm:text-xs",children:K})]}),(0,P.jsx)(B.az,{className:"relative flex flex-1 flex-col justify-start px-4 sm:justify-between sm:p-4",children:(0,P.jsxs)(B.az,{className:"flex flex-col gap-2",children:[(0,P.jsx)(B.o5,{className:"mb-0 text-brunel-dark-grey group-hover:brunel-underline-3-brunel-dark-grey sm:line-clamp-2",type:"h4",plainText:N?.previewTitle?.value}),er&&(0,P.jsxs)(B.az,{className:"text-sm font-medium text-ui-grey",children:[(0,P.jsx)(L.v,{field:Z,tag:"span",render:()=>ee.value}),en&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("span",{children:" - "}),(0,P.jsx)(L.v,{field:X,tag:"span",render:()=>et.value})]})]}),(0,P.jsx)(B.o5,{className:"line-clamp-3 text-sm leading-snug text-ui-grey/90",type:"small",plainText:N?.previewIntro?.value})]})})]}),(V||ei)&&(0,P.jsxs)(B.az,{className:"mb-4 ml-4 flex w-max flex-wrap gap-2",children:[ei&&(0,P.jsx)(D.TagButton,{value:ei,link:eo,external:!!eo,className:"hidden sm:flex"}),V&&(0,P.jsx)(D.TagButton,{className:"hidden sm:flex",value:Y??V,link:(0,q.qo)()})]})]})}},34683:(N,I,T)=>{"use strict";T.d(I,{U:()=>z,Y:()=>U});var P=T(19299),D=T(79639),M=T(52770),R=T(47804),L=T(24492),$=T(67815);let F=M.Ay.init,{UU:B}=R;function U(N){var I;let{options:T,adapter:M}=N,R={cookies:{domain:null==T?void 0:T.cookieDomain,enabled:null!=(I=null==T?void 0:T.enableCookie)&&I,expiryDays:(null==T?void 0:T.cookieExpiryDays)||P.xu,name:`${P.aG}${P.Xv}`,path:(null==T?void 0:T.cookiePath)||"/"},timeout:null==T?void 0:T.timeout};return{name:D.Z,init:H,options:R,adapter:M}}async function H(){var N;F(`Initializing ${D.Z}`);let I=(0,L.r)(),T=z();if(!T.options.cookies.enabled)return void F(`Cookies are disabled for ${D.Z}. If this was not intentional, set "enableCookie" to "true".`);let M=T.adapter;(null==(N=M.isBot)?void 0:N.call(M))||M.getClientId()&&"browser"===T.adapter.type||(await M.setClientId(),F(`Cookie set for ${D.Z}`)),"browser"===T.adapter.type&&(window.scContentSDK=Object.assign(Object.assign({},window.scContentSDK),{analytics_core:{getClientId:$.f,options:{siteName:I.config.siteName,contextId:I.config.contextId,edgeUrl:I.config.edgeUrl},version:P.Zh}}))}function z(){let N=(0,L.r)().plugins.get(D.Z);if(!N)throw Error(B.IE_004(D.Z));return N}},34699:(N,I,T)=>{"use strict";T.d(I,{Fz:()=>M,Ph:()=>R,sL:()=>D});var P=T(14232);let D=(0,P.createContext)({});function M(N){if(N)return(0,P.useContext)(D)[N]}let R=({children:N,value:I})=>P.createElement(D.Provider,{value:I},N)},34743:(N,I,T)=>{"use strict";T.d(I,{w:()=>ex});var P=T(37876),D=T(56840);let M=N=>N.reduce((N,I)=>{let T=I.section||D.Q.SECTION_DEFAULT;return N[T]||(N[T]=[]),N[T].push(I),N},{}),R=N=>N.reduce((N,I)=>(I.name===D.Q.ADD_MORE_LABEL&&(N[I.section]=I.value),N),{}),L=N=>N.find(N=>N.name===D.Q.SUBMIT_BUTTON_LABEL)?.value??"Submit",$=N=>N.reduce((N,I)=>(N[I.section]||(N[I.section]={}),I.name===D.Q.TITLE?N[I.section].title=I.value:I.name===D.Q.DESCRIPTION&&(N[I.section].description=I.value),N),{}),F=(N,I)=>{if(!I||0===Object.keys(N).length)return null;let T=Object.keys(N)[0],P=T,D=Object.keys(N[P]??{}).filter(I=>N[P]?.[parseInt(I)]!==void 0),M=D.length>0?D[0]:null;if(null===M)return null;let R=Object.keys(N[P]?.[parseInt(M)]??{})[0];return R?`[id^="${T}.${M}.${R}"]`:null};var B=T(89099),U=T(14232),H=T(67881),z=T(62467),W=T(49705),q=T(85728),G=T(65212),K=T(91408);let V=(N,I)=>""===I?void 0:N,Y=(N,I,T)=>{let P=K.p6().transform(V).typeError(I),D=K.p6().transform(V).typeError(I).test("is-after-start",T,function(N){let I=(this?.parent).startDate;return!N||!I||new Date(N)>=new Date(I)});return N?D:P},J=N=>{let I={};return Object.entries(N)?.forEach(([N,T])=>{let P=N,D=T.reduce((N,I)=>{let P,{name:D,fieldType:M,validationMesssage:R,label:L}=I,$=R?.required||void 0,F=R?.invalid||`Please provide a valid ${L} value`,B=R?.daterangeerror||`${L} must be on or after the start date`;switch(M){case"text":P=K.Yj().max(500,F);break;case"textarea":P=K.Yj().max(2e3,F);break;case"number":P=K.Yj().matches(/^\d+$/,{message:F,excludeEmptyString:!0});break;case"postalcode":P=K.Yj().matches(/^[a-z0-9][a-z0-9\- ]{0,10}[a-z0-9]$/i,{message:F,excludeEmptyString:!0}).max(10,F);break;case"select":P=K.Yj();break;case"phone":P=K.Yj().matches(/^[0-9+() ]{4,15}$/,{message:F,excludeEmptyString:!0}).max(15,F);break;case"email":P=K.Yj().matches(/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,{message:F,excludeEmptyString:!0}).max(100,F);break;case"date":{let N=T.some(N=>N.name.toLowerCase().includes("startdate"));P=Y(D.toLowerCase().includes("enddate")&&N,F,B);break}default:P=K.gl()}return $&&(P=P.required($)),{...N,[D.toCamelCase()]:P}},{});I[P]=K.YO(K.Ik(D))}),K.Ik().shape(I)},Q=({session:N,formName:I,formData:T,mercuryData:P,dictionary:D,refetchMercuryData:F,onSaveSuccess:K})=>{let V=(0,B.useRouter)(),{setLoading:Y,setToast:Q}=(0,U.useContext)(q._t),{formFields:Z,generalFields:X}=T??{formFields:[],generalFields:[]},[ee,et]=(0,U.useState)(!1),[er,en]=(0,U.useState)(null),[ea,ei]=(0,U.useState)(!1),eo=P?.mercuryId??N?.user?.id??"unknown",es=N?.user?.roles?.join(",")??"unknown",el=M(Z),ec=R(X),eu=L(X),ed=$(X),ef=J(el),eh=(0,W.mapMercuryCandidateDataToApplicantFormData)(P),ep=N=>{ei(!1),et(!1),N(),er&&V.push(er)},em=()=>{et(!1),ei(!1),er&&V.push(er)},eg=async(N,I,T,P)=>{let M=T[N][I],R=1===T[N].length,L=(0,W.mapMercuryCandidateDataToApplicantFormData)({})?.[N][0],$=()=>{R?(P.replace(I,L),Object.keys(L??{}
593).forEach(T=>{P.form.setFieldTouched(`${N}.${I}.${T}`,!1,!1)})):P.remove(I)};if(!M?.mercuryId)return void $();let F="workExperience"===N?z.U.deleteExperience:z.U.deleteEducation;Y({isLoading:!0,messages:[D?.["message-updating"]??"[message-updating]"]});try{let N=await F({candidateId:T?.mercuryId?.[0]??"",mercuryId:M.mercuryId,bearerToken:""});if(200===N.statusCode)$(),Q({type:"success",data:{title:D?.["message-success"]??"[message-success]",message:D?.["message-update-mercury-success"]??"[message-update-mercury-success]"},open:!0});else throw Error("Failed to delete section")}catch(N){G.A.api("Error submitting data to Mercury:",N),Q({type:"error",data:{title:D?.["message-error"]??"[message-error]",message:D?.["message-update-mercury-error"]??"[message-update-mercury-error]"},open:!0})}finally{Y({isLoading:!1,messages:[]})}},ey=async(N,{setSubmitting:T})=>{T(!0),Y({isLoading:!0,messages:[D?.["message-updating"]??"[message-updating]"]});let{diff:M,full:R}=(0,W.mapApplicantFormDataToMercuryCandidateDataVariants)(P,N);try{await z.U.updateMercuryData({body:M,bearerToken:""}).then(N=>(N?.statusCode===200?(G.A.api("Success submitting data to Mercury:",N),H.q.applicantPortal.completeApplicantPortalForm(I,eo,es),Q({type:"success",data:{title:D?.["message-success"]??"[message-success]",message:D?.["message-update-mercury-success"]??"[message-update-mercury-success]"},open:!0}),ei(!1),K?.(R),[...M.workExperiences??[],...M.educations??[]].some(N=>!N.mercuryId)&&(F?F():V.replace(V.asPath))):(G.A.api("Mercury reported a non-200 result:",N),Q({type:"error",data:{title:D?.["message-error"]??"[message-error]",message:D?.["message-update-mercury-error"]??"[message-update-mercury-error]"},open:!0})),N)).catch(N=>{G.A.api("Error submitting data to Mercury:",N),Q({type:"error",data:{title:D?.["message-error"]??"[message-error]",message:D?.["message-update-mercury-error"]??"[message-update-mercury-error]"},open:!0})})}catch(N){G.A.api("Internal error:",N),Q({type:"error",data:{title:D?.["message-error"]??"[message-error]",message:D?.["message-update-mercury-error"]??"[message-update-mercury-error]"},open:!0})}finally{T(!1),Y({isLoading:!1,messages:[]})}};return(0,U.useEffect)(()=>{H.q.applicantPortal.applicantPortalPageLoad(eo),H.q.applicantPortal.startApplicantPortalForm(I,eo,es)},[]),(0,U.useEffect)(()=>{let N=N=>{ea&&(N.preventDefault(),N.returnValue="")};return window.addEventListener("beforeunload",N),()=>window.removeEventListener("beforeunload",N)},[ea]),(0,U.useEffect)(()=>{let N=N=>{if(ea)throw en(N),et(!0),V.events.emit("routeChangeError"),Error("Navigation blocked due to unsaved changes")};return V.events.on("routeChangeStart",N),()=>V.events.off("routeChangeStart",N)},[ea,V]),{setToast:Q,groupedFields:el,addMoreButtonLabels:ec,submitButtonLabel:eu,sectionData:ed,validationSchema:ef,initialValues:eh,isModalOpen:ee,setIsModalOpen:et,setHasUnsavedChanges:ei,handleSaveAndNavigate:ep,handleDiscardAndNavigate:em,handleRemoveSection:eg,handleSubmit:ey}},Z=({errors:N,isSubmitting:I,dirty:T,setHasUnsavedChanges:P})=>{(0,U.useEffect)(()=>{let T=F(N,I);if(!T)return;let P=document.querySelector(T);P&&(P.scrollIntoView({behavior:"smooth",block:"center"}),setTimeout(()=>{P.focus()},200))},[N,I]),(0,U.useEffect)(()=>{P(T)},[T,P])};var X=T(60547),ee=T(68602),et=T(77470),er=T(84612),en=T(63808),ea=T(36379);let ei=({id:N,showHeader:I=!0,label:T,placeholder:D,errors:M,setDataLayer:R,setDataLayerError:L,trackingProps:$})=>{let F=(0,U.useRef)(!1),B=(0,U.useMemo)(()=>M?.length===M?.filter(N=>N?.touched&&!N?.message)?.length,[M]),[H]=(0,en.Mt)(N);return(0,P.jsxs)("div",{id:`FormInput-${N}`,className:(0,ea.cn)("relative flex w-full flex-col gap-2"),children:[I&&(0,P.jsxs)("div",{className:"flex flex-col",children:[(0,P.jsx)(et.l,{id:N,label:T,focusOnClick:!1}),M?.map(I=>{if(I?.touched&&I?.message)return F.current||(L?.(),F.current=!0),(0,P.jsx)(ee.j,{id:I?.id??N,error:I.message},`FormError-${I?.id??N}`)})]}),(0,P.jsxs)("div",{className:"relative flex",children:[(0,P.jsx)(en.D0,{...$,id:N,name:N,placeholder:" ",className:(0,ea.cn)("input w-full"),onClick:R,onKeyUp:N=>{"Tab"===N.key&&R?.()}}
593),B&&(0,P.jsx)(er.Sr,{className:"absolute right-0 mr-4 self-center"}),D&&!H.value&&(0,P.jsx)(et.l,{id:N,type:"subtitle",effect:"floating-peer",label:D})]})]})};var eo=T(18908),es=T(65825);let el=({id:N,label:I,placeholder:T,errors:D,setDataLayer:M,setDataLayerError:R,trackingProps:L})=>{let $=(0,U.useRef)(!1),[F]=(0,en.Mt)(N);return(0,P.jsxs)("div",{id:`FormTextArea-${N}`,className:(0,ea.cn)("relative flex w-full flex-col gap-2"),children:[(0,P.jsxs)("div",{className:"flex flex-col",children:[(0,P.jsx)(et.l,{id:N,label:I,focusOnClick:!1}),D?.map(I=>{if(I?.touched&&I?.message)return $.current||(R?.(),$.current=!0),(0,P.jsx)(ee.j,{id:I?.id??N,error:I.message},`FormError-${I?.id??N}`)})]}),(0,P.jsxs)("div",{className:"relative flex",children:[(0,P.jsx)(en.D0,{...L,id:N,name:N,component:"textarea",rows:4,maxLength:2e3,placeholder:" ",className:(0,ea.cn)("textarea-bordered textarea w-full"),onClick:M,onKeyUp:N=>{"Tab"===N.key&&M?.()}}),T&&!F.value&&(0,P.jsx)(et.l,{id:N,type:"subtitle",effect:"floating-peer",label:T})]})]})};var ec=T(96824),eu=T(5742);let ed=N=>Object.entries(N??{}),ef=(N,I)=>N.filter(([,N])=>N.toLowerCase().includes(I)),eh=(N,I,T)=>{if(!N)return T??"";let P=N.find(([N])=>N?.toLowerCase?.()===I?.toLowerCase?.())?.[1];return P?decodeURIComponent(P):T??""},ep=N=>N.length>
59310,em=({id:N,value:I,placeholder:T,options:P,setDataLayer:D})=>{let M=(0,U.useRef)(!1),{touched:R,setFieldTouched:L,setFieldValue:$}=(0,en.j7)(),F=(0,U.useRef)(null),B=(0,U.useRef)(null),[H,z]=(0,U.useState)(!1),[W,q]=(0,U.useState)(!1);(0,U.useEffect)(()=>{if(W&&F.current&&B.current){let N=F.current.getBoundingClientRect(),I=B.current.clientHeight;z(window.innerHeight-N.bottom-80<I)}},[W,P]),(0,U.useEffect)(()=>{let N=N=>{F.current&&!F.current.contains(N.target)&&q(!1)};return document.addEventListener("mousedown",N),()=>{document.removeEventListener("mousedown",N)}},[F]);let G=(0,U.useMemo)(()=>ed(P),[P]),[K,V]=(0,U.useState)(G),[Y,J]=(0,U.useState)(""),Q=()=>{J(""),V(G)},Z=N=>{let I=N.target.value.toLowerCase();J(I),V(ef(G,I))},X=(0,U.useMemo)(()=>({label:eh(K,I,T)}),[K,I,T]);return{selectRef:F,dropdownRef:B,openAbove:H,optionsArray:G,filteredOptions:K,searchTerm:Y,selectedData:X,handleSearch:Z,handleToggleClick:()=>{q(N=>!N),D&&D()},triggerDataLayerErrorOnce:N=>{M.current||(N?.(),M.current=!0)},selectOption:I=>{document.activeElement?.blur(),q(!1),Q(),R[N]||L(N,!0,!0),$(N,I)}}};var eg=T(6807);let ey=({id:N,label:I,value:T,placeholder:D,errors:M,options:R,className:L,dropdownClassName:$,dropdownDataClassName:F,outline:B=!0,setDataLayer:U,setDataLayerError:H,trackingProps:z,dictionary:W})=>{let{selectRef:q,dropdownRef:G,openAbove:K,optionsArray:V,filteredOptions:Y,searchTerm:J,selectedData:Q,handleSearch:Z,handleToggleClick:X,triggerDataLayerErrorOnce:ei,selectOption:eo}=em({id:N,value:T,placeholder:D,options:R,setDataLayer:U});return(0,P.jsxs)("div",{id:`FormSelect-${N}`,className:(0,ea.cn)("flex flex-1 flex-col gap-2",L),children:[(0,P.jsxs)("div",{className:"flex flex-col",children:[(0,P.jsx)(et.l,{id:N,label:I,focusOnClick:!1}),M?.map(I=>I?.touched&&I?.message?(ei(H),(0,P.jsx)(ee.j,{id:I?.id??N,error:I.message},`FormError-${I?.id??N}`)):null)]}),(0,P.jsxs)("div",{className:(0,ea.cn)("group/dropdown dropdown",{"focus-within:rounded-xs focus-within:outline-2 focus-within:outline-offset-1 focus-within:outline-accent-iron focus-within:outline-dashed":B}),ref:q,children:[(0,P.jsxs)("div",{tabIndex:0,role:"button",onClick:X,className:(0,ea.cn)("input flex w-full cursor-pointer items-center justify-between",$),children:[(0,P.jsx)(en.D0,{id:N,name:N,className:"hidden",value:T,readOnly:!0}),(0,P.jsx)(eg.o,{type:"medium",className:(0,ea.cn)("line-clamp-2 w-full",{"text-ui-grey":!T}),plainText:Q?.label}),(0,P.jsx)(er.D3,{className:(0,ea.cn)("min-h-6 min-w-6 transition-transform duration-150 ease-linear group-focus-within/dropdown:-scale-y-100")})]}),(0,P.jsxs)("ul",{ref:G,tabIndex:0,className:(0,ea.cn)("dropdown-content w-full overflow-auto rounded-lg bg-white py-4 shadow-lg group-focus-within/dropdown:border-2",K?"bottom-full mb-1":"top-full mt-1",F),onKeyDown:N=>{"Space"===N.code&&N.preventDefault()},children:[Y&&ep(V)&&(0,P.jsx)("li",{className:"sticky -top-4 -mt-4 bg-white p-4",children:(0,P.jsx)("input",{...z,type:"text",placeholder:W?.["applicant-portal-search-placeholder"]??"[Search]",value:J,onChange:Z,className:"w-full rounded-xs border border-accent-iron bg-white px-4 py-2 outline-none"})}),Y?.map(([N,I],T)=>(0,P.jsx)("li",{className:"flex px-4 py-2 hover:bg-ui-light-grey focus:outline-accent-iron",onClick:()=>eo(N),onKeyUp:I=>{"Space"===I.code&&eo(N)},children:(0,P.jsx)("span",{children:I.decodeURIComponentOrNull()})},`${I}_${T}`))]})]})]})};var eb=T(3721),ev=T(92678);let ew={text:eo.Z,date:X.d,select:ey,phone:ec.p,email:ei,postalcode:eo.Z,option:eu.J,file:es.z,number:eo.Z,textarea:el},ex=N=>{let{isPreview:I,locale:T,formData:M,dictionary:R,hideSaveBtn:L=!1}=N,{setToast:$,groupedFields:F,addMoreButtonLabels:B,submitButtonLabel:U,sectionData:H,validationSchema:z,initialValues:q,isModalOpen:G,setIsModalOpen:K,setHasUnsavedChanges:V,handleSaveAndNavigate:Y,handleDiscardAndNavigate:J,handleRemoveSection:X,handleSubmit:ee}=Q(N);return I?(0,P.jsx)("div",{children:(0,P.jsx)("p",{className:"text-m-h3 text-brunel-dark-grey md:text-d-h3",children:"DynamicForm component will be rendered here."})}):(0,P.jsx)(en.l1,{enableReinitialize:!0,initialValues:q,validationSchema:z,onSubmit:ee,children:I=>{let{values:z,errors:q,isSubmitting:Q,dirty:ee,submitForm:et}=I;return Z({errors:q,isSubmitting:Q,dirty:ee,setHasUnsavedChanges:V}),(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(en.lV,{name:N.formName,children:[Object.entries(F)?.map(([L,F])=>{let U=L,q=!!M.generalFields.find(N=>N.section===L&&N.name===D.Q.IS_REPEATING);return(0,P.jsx)(en.ED,{name:L,children:D=>(0,P.jsxs)("div",{className:"form-section not-first-of-type:mt-12",children:[(0,P.jsx)("h3",{children:H[L].title??L}),H[L].description&&(0,P.jsx)(eg.o,{className:"mb-4",plainText:H[L].description}),z?.[U]?.map((M,B)=>(0,P.jsxs)("div",{className:"section-copy mb-4 flex flex-col rounded-lg bg-accent-spring-wood p-4",children:[F.map(D=>{let M=ew[D.fieldType];return M?(0,P.jsx)("div",{className:"mt-4",children:(0,P.jsx)(M,{...(0,W.getDynamicFormFieldProps)(N.formName,`${L}.${B}.${D.name.toCamelCase()}`,T,D,I,$,R)})},D.name):null}),(q?z[U].length>1||Object.values(M??{}).some(N=>N):z?.[U]?.length>
5931)&&(0,P.jsx)(ev.Button,{className:"m-4 h-12 self-end",iconName:"trash",iconSide:"left",plainText:R?.["applicant-portal-button-remove"]??"[applicant-portal-button-remove]",onClick:()=>void X(U,B,z,D)})]},`${U}-${B}`)),q&&z?.[U]?.length<=25&&(0,P.jsx)(ev.Button,{variant:"secondary",className:"h-12",onClick:()=>{D.push((0,W.mapMercuryCandidateDataToApplicantFormData)({})?.[U][0])},plainText:`${B[L]||L}`})]},L)},L)}),!L&&(0,P.jsx)(ev.Button,{className:"mt-8 h-12 min-w-48",formButton:!0,disabled:Q,plainText:U})]}),(0,P.jsx)(eb.l,{open:G,children:(0,P.jsxs)("div",{className:"flex min-w-150 flex-col rounded-lg bg-white p-8 shadow-lg",children:[(0,P.jsx)("p",{children:R?.["applicant-portal-navigation-dialog-description"]??"[applicant-portal-navigation-dialog-description]"}),(0,P.jsxs)("div",{className:"flex justify-between pt-4",children:[(0,P.jsx)(ev.Button,{onClick:()=>Y(et),plainText:R?.["applicant-portal-button-save-continue"]??"[applicant-portal-button-save-continue]",width:"full",className:"mr-2"}),(0,P.jsx)(ev.Button,{variant:"alternative",onClick:J,plainText:R?.["applicant-portal-button-discard-continue"]??"[applicant-portal-button-discard-continue]",width:"full",className:"ml-2"})]}),(0,P.jsx)(ev.Button,{onClick:()=>K(!1),variant:"tertiary",plainText:R?.["applicant-portal-button-cancel"]??"[applicant-portal-button-cancel]",className:"mt-6 self-center"})]})})]})}})}},34817:(N,I,T)=>{"use strict";T.r(I),T.d(I,{default:()=>F});var P=T(37876),D=T(87253),M=T(89099),R=T(14232),L=T(10409),$=T(63366);let F=({session:N,notifications:I,locale:T,dictionary:F,theme:B="mybrunel"})=>{let U=(0,M.useRouter)(),H=["mybrunel","mytaylorhopkinson"],z=new Date;z.setMonth(z.getMonth()-1);let W=(I??[]).filter(N=>new Date(N.createdDate)>=z&&!N.isDone).sort((N,I)=>N.isRead!==I.isRead?N.isRead?1:-1:N.priority-I.priority),q=W.filter(N=>!N.isRead).length||!1,[G,K]=(0,R.useState)(!1),[V,Y]=(0,R.useState)(new Set),J=W.filter(N=>!V.has(N.userNotificationId)),Q=(0,R.useRef)(null),Z=()=>{K(!G)},X=async(N,I=!1)=>{I&&Y(I=>new Set(I).add(N));try{if(!(await fetch("/api/notifications/updatenotification",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:N,isDone:I,isRead:!0})})).ok)throw Error("Failed to update notification")}catch(T){I&&Y(I=>{let T=new Set(I);return T.delete(N),T}),console.error(T)}},ee=N=>{X(N,!0)},et=(N,I)=>{X(N),window.open(I,"_blank","noopener,noreferrer")};return(0,R.useEffect)(()=>{let N=N=>{Q.current?.contains(N.target)||K(!1)};return window.addEventListener("mousedown",N),()=>{window.removeEventListener("mousedown",N)}},[Q]),!U.asPath.includes("/login")&&H.some(N=>U.pathname.startsWith(`/${N}`))&&N?(0,P.jsx)(L.a,{ref:Q,children:(0,P.jsxs)(L.a,{className:"relative mr-4",children:[(0,P.jsx)(L.a,{onClick:Z,className:"flex items-center rounded-full",children:(0,P.jsxs)(L.a,{className:"group bg-opacity-60 bg-opacity-5 relative flex h-10 w-10 cursor-pointer items-center justify-center rounded-full border border-accent-iron bg-accent-pampas/75 transition-colors hover:bg-accent-pampas md:px-1",tabIndex:0,children:[q&&(0,P.jsx)(L.a,{className:"absolute -right-1 h-5 w-5 -translate-y-1/2 rounded-full bg-brunel-yellow text-center text-sm font-medium text-black shadow",children:q}),(0,P.jsx)($.In,{name:"bell",className:"",size:"large"})]})}),(0,P.jsx)(L.a,{className:`fixed top-16 left-1/2 z-50 w-[calc(100vw-2rem)] -translate-x-1/2 rounded-lg bg-accent-pampas shadow-md transition-all duration-300 ease-in-out md:absolute md:top-full md:right-0 md:left-auto md:w-67.5 md:translate-x-0 ${G?"mt-2 opacity-100":"mt-0 max-h-0 opacity-0"} overflow-hidden`,children:(0,P.jsxs)(L.a,{className:"overflow-y-auto",children:[0===J.length?(0,P.jsx)(L.a,{className:"px-4 py-6 text-center text-sm text-gray-500",children:F?.["no-notifications"]??"No notifications"}):J.map(N=>(0,P.jsx)(D.SwipeableNotification,{notification:N,locale:T,onDismiss:ee,onOpen:et,theme:B},N.userNotificationId)),J.length>0&&(0,P.jsxs)(L.a,{className:"flex items-center justify-center gap-1.5 border-t border-gray-200 px-4 py-2 md:hidden",children:[(0,P.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-3 w-3 text-gray-400",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,P.jsx)("line",{x1:"19",y1:"12",x2:"5",y2:"12"}),(0,P.jsx)("polyline",{points:"12 19 5 12 12 5"})]}),(0,P.jsx)("span",{className:"text-xs text-gray-400",children:F?.["swipe-message"]??"[Swipe message]"})]})]})})]})}):null}},34824:(N,I,T)=>{N.exports=T(48398)},34911:(N,I,T)=>{"use strict";T.r(I),T.d(I,{ContinentInfo:()=>F});var P=T(37876),D=T(48230),M=T.n(D),R=T(14232),L=T(63366),$=T(36379);let F=({id:N,info:I,left:T,top:D})=>{let F=(0,R.useCallback)(()=>(0,P.jsxs)(L.az,{id:N,className:(0,$.cn)("group peer absolute right-0 w-max rounded-sm bg-white shadow-continent transition-all duration-300 hover:shadow-continent-hover",{"left-7":I?.side==="right"}),onMouseEnter:()=>document.getElementById(N?.remove("Info")??"")?.classList.add("continent-hover"),onMouseLeave:()=>document.getElementById(N?.remove("Info")??"")?.classList.remove("continent-hover"),children:[(0,P.jsxs)(M(),{href:I?.url??"#",locale:"",className:"flex cursor-pointer gap-1 p-2",children:[(0,P.jsx)(L.In,{name:"chevron-right",size:"medium"}),(0,P.jsx)(L.o5,{type:"h4",plainText:I?.title,className:"mb-0! group-hover:brunel-underline-3-brunel-dark-grey group-[.info-hover]:brunel-underline-3-brunel-dark-grey"})]}),(0,P.jsx)(L.az,{className:"grid grid-rows-[0fr] transition-[grid-template-rows] duration-300 lg:group-hover:grid-rows-[1fr] lg:group-[.info-hover]:grid-rows-[1fr]",children:(0,P.jsx)(L.az,{className:"overflow-hidden",children:(0,P.jsx)(L.o5,{className:"p-2",type:"small",plainText:I?.description})})})]}),[]);return(0,P.jsxs)(L.az,{className:"absolute flex cursor-pointer gap-2",style:{left:T,top:D},children:[(0,P.jsx)(F,{}),(0,P.jsx)(L.az,{as:"span",className:"info-hover-bullet peer-hover:info-hover-bullet-show peer-[.info-hover]:info-hover-bullet-show absolute top-3.5 -right-5 size-3 rounded-full border border-brunel-dark-grey bg-brunel-yellow"})]})}},35062:(N,I,T)=>{"use strict";T.d(I,{F:()=>D});var P=T(55333);let D=(N,I)=>!!(0,P.Cx)()||!!(N&&N?.length>0)&&N.map(N=>N.name).some(N=>I.includes(N))},35122:(N,I,T)=>{"use strict";var P,D,M,R,L,$,F;T.d(I,{dQ:()=>P,lq:()=>M,mV:()=>D,pM:()=>R}),(L=P||(P={})).Final="final",L.Shared="shared",($=D||(D={})).Open="open",$.Close="close",(F=M||(M={})).Normal="library",F.Metadata="library-metadata",(R||(R={})).Variant="variant"},35210:(N,I,T)=>{"use strict";T.r(I),T.d(I,{RelatedBlogCard:()=>B});var P=T(37876),D=T(94274),M=T(87273),R=T(48230),L=T.n(R),$=T(63366),F=T(36379);let B=({result:N,lastCard:I})=>{let T=N?.blogHeroCategory?.data?.name,R=N?.previewImage?.value?.src??N?.previewImage?.data?.value?.src,B=N?.previewImage?.value?.alt??N?.previewImage?.data?.value?.alt;return(0,P.jsxs)($.az,{className:(0,F.cn)("border-ui-grey py-4 sm:border-none sm:bg-white sm:py-0 sm:sh
593adow-blog-card",{"border-b":!I}),children:[(0,P.jsxs)(L(),{className:"group flex sm:flex-col",href:N.url?.path??"#",children:[(0,P.jsx)($.az,{className:"flex items-center overflow-hidden",children:(0,P.jsx)(M._,{className:(0,F.cn)("h-26 w-24.5 object-cover transition-all delay-75 ease-linear hover:scale-105 sm:w-full",{"sm:h-47 sm:w-61.5 md:w-full":N?.previewIntro?.value,"sm:h-62.5 sm:w-76 md:w-full":!N?.previewIntro?.value}),field:{src:R},alt:B,srcSet:[{mw:250}],sizes:"250px"})}),(0,P.jsx)($.az,{className:"relative flex flex-1 flex-col justify-center p-4 sm:gap-4",children:(0,P.jsxs)($.az,{className:"flex flex-col gap-2",children:[(0,P.jsx)($.o5,{className:"mb-0 group-hover:brunel-underline-3-brunel-dark-grey sm:line-clamp-2",type:"h4",plainText:N?.previewTitle?.value}),(0,P.jsx)($.o5,{className:"line-clamp-3 text-ui-grey",type:"small",plainText:N?.previewIntro?.value})]})})]}),T&&(0,P.jsx)($.az,{className:"mb-4 ml-4 w-max",children:(0,P.jsx)(D.TagButton,{className:"hidden sm:block",value:T,link:(0,F.K5)(T)})})]})}},35662:(N,I,T)=>{"use strict";T.d(I,{O4:()=>ep,VB:()=>eY});let P=new Map([["avif","image/avif"],["bmp","image/bmp"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["gif","image/gif"],["gz","application/gzip"],["htm","text/html"],["html","text/html"],["ico","image/x-icon"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","application/javascript"],["json","application/json"],["md","text/markdown"],["mjs","application/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["ogg","audio/ogg"],["pdf","application/pdf"],["png","image/png"],["ppt","application/powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["svg","image/svg+xml"],["tif","image/tiff"],["tiff","image/tiff"],["txt","text/plain"],["wasm","application/wasm"],["wav","audio/x-wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["zip","application/zip"]]);var D,M=class extends Error{constructor(N){super("DataTransferItem is not a file"),this.item=N,this.name="UnexpectedObjectError"}};function R(N,I,T){let P=N,{webkitRelativePath:D}=N,M="string"==typeof I?I:"string"==typeof D&&D.length>0?D:`./${N.name}`;return"string"!=typeof P.path&&$(P,"path",M),void 0!==T&&Object.defineProperty(P,"handle",{value:T,writable:!1,configurable:!1,enumerable:!0}),$(P,"relativePath",M),P}function L(N,I=P){let{name:T}=N;if(T&&-1!==T.lastIndexOf(".")&&!N.type){let P=T.split(".").pop().toLowerCase(),D=I.get(P);D&&Object.defineProperty(N,"type",{value:D,writable:!1,configurable:!1,enumerable:!0})}return N}function $(N,I,T){Object.defineProperty(N,I,{value:T,writable:!1,configurable:!1,enumerable:!0})}let F=[".DS_Store","Thumbs.db"];async function B(N,{mimeTypes:I=P}={}){return(await U(N)).map(N=>N instanceof File?L(N,I):N)}async function U(N){return q(N)&&H(N.dataTransfer)?V(N.dataTransfer,N.type):z(N)?Y(N.clipboardData):W(N)?G(N):Array.isArray(N)&&N.every(N=>"getFile"in N&&"function"==typeof N.getFile)?K(N):[]}function H(N){return q(N)}function z(N){return q(N)&&H(N.clipboardData)}function W(N){return q(N)&&q(N.target)}function q(N){return"object"==typeof N&&null!==N}function G(N){return Q(N.target.files).map(N=>R(N))}async function K(N){return(await Promise.all(N.map(N=>N.getFile()))).map(N=>R(N))}async function V(N,I){let T=Q(N.items).filter(N=>"file"===N.kind);return"drop"!==I?T:J(X(await Promise.all(T.map(Z))))}function Y(N){let I=Q(N.items).filter(N=>"file"===N.kind).map(N=>N.getAsFile()).filter(N=>null!==N);return J((I.length>0?I:Q(N.files)).map(N=>R(N)))}function J(N){return N.filter(N=>-1===F.indexOf(N.name))}function Q(N){return null===N?[]:Array.from(N)}async function Z(N){if("function"!=typeof N.webkitGetAsEntry)return ee(N);let I=N.webkitGetAsEntry();if(I?.isDirectory){let T=await et(N);return T?.kind==="directory"?er(T,`/${T.name}`):ea(I)}return ee(N,I)}function X(N){let I=[];for(let T of N)Array.isArray(T)?I.push(...X(T)):I.push(T);return I}async function ee(N,I){let T=N.getAsFile(),P=await et(N);if(null!=P){let N=T??await P.getFile();return N.handle=P,R(N)}if(!T)throw new M(N);return R(T,I?.fullPath??void 0)}async function et(N){if(globalThis.isSecureContext&&"function"==typeof N.getAsFileSystemHandle)return N.getAsFileSystemHandle()}async function er(N,I){let T=[];for await(let P of N.values()){let N=`${I}/${P.name}`;if("directory"===P.kind)T.push(...await er(P,N));else{let I=await P.getFile();T.push(R(I,N,P))}}return T}async function en(N){return N.isDirectory?ea(N):ei(N)}function ea(N){let I=N.createReader();return new Promise((N,T)=>{let P=[];function D(){I.readEntries(async I=>{if(I.length){let N=Promise.all(I.map(en));P.push(N),D()}else try{N(await Promise.all(P))}catch(N){T(N)}},N=>{T(N)})}D()})}async function ei(N){return new Promise((I,T)=>{N.file(T=>{I(R(T,N.fullPath))},N=>{T(N)})})}var eo=T(14232);function es(N,I){if(N&&I){let T=Array.isArray(I)?I:I.split(",");if(0===T.length)return!0;let P=N.name||"",D=(N.type||"").toLowerCase(),M=D.replace(/\/.*$/,"");
593return T.some(N=>{let I=N.trim().toLowerCase();return"."===I.charAt(0)?P.toLowerCase().endsWith(I):I.endsWith("/*")?M===I.replace(/\/.*$/,""):D===I})}return!0}var el=T(37876);let ec=es,eu="file-invalid-type",ed="file-too-large",ef="file-too-small",eh="too-many-files",ep=((D={}).FileInvalidType="file-invalid-type",D.FileTooLarge="file-too-large",D.FileTooSmall="file-too-small",D.TooManyFiles="too-many-files",D);function em(N=""){let I=N.split(","),T=I.length>1?`one of ${I.join(", ")}`:I[0];return{code:eu,message:`File type must be ${T}`}}let eg=["KB","MB","GB","TB","PB"];function ey(N){if(N<1024)return`${N} ${1===N?"byte":"bytes"}`;let I=N/1024,T=0;for(;I>=1024&&T<eg.length-1;)I/=1024,T++;return`${Number(I.toFixed(2))} ${eg[T]}`}function eb(N){return{code:ed,message:`File is larger than ${ey(N)}`}}function ev(N){return{code:ef,message:`File is smaller than ${ey(N)}`}}let ew={code:eh,message:"Too many files"};function ex(N){return""===N.type&&"function"==typeof N.getAsFile}function eA(N,I){let T="application/x-moz-file"===N.type||ec(N,I??"")||ex(N);return[T,T?null:em(I)]}function eE(N,I,T){if(eS(N.size)){if(eS(I)&&eS(T)){if(N.size>T)return[!1,eb(T)];if(N.size<I)return[!1,ev(I)]}else if(eS(I)&&N.size<I)return[!1,ev(I)];else if(eS(T)&&N.size>T)return[!1,eb(T)]}return[!0,null]}function eS(N){return null!=N}function e_(N){return null!=N&&"function"==typeof N.then}function ek({files:N,accept:I,minSize:T,maxSize:P,multiple:D,maxFiles:M=0,validator:R,getErrorMessage:L}){let $=[],F=[],B=(N,I)=>L&&"u">typeof File&&I instanceof File?{...N,message:L(N,I)}:N;N.forEach(N=>{let[D,M]=eA(N,I),[R,L]=eE(N,T,P);D&&R?$.push(N):F.push({file:N,errors:[M,L].filter(N=>null!=N).map(I=>B(I,N))})});let U=D?M>=1?M:1/0:1;return($.length>U&&$.slice(U).forEach(N=>{F.push({file:N,errors:[B(ew,N)]})}),F.length>0)?{verdict:"reject",rejections:F}:{verdict:R?"unknown":"accept",rejections:F}}function eC(N){return"function"==typeof N.isPropagationStopped?N.isPropagationStopped():void 0!==N.cancelBubble&&N.cancelBubble}function ej(N){let I=N.dataTransfer??N.clipboardData;return I?Array.prototype.some.call(I.types,N=>"Files"===N||"application/x-moz-file"===N)||Array.prototype.some.call(I.items??[],eO):!!N.target&&!!N.target.files}function eO(N){return"object"==typeof N&&null!==N&&"file"===N.kind}function eN(N){N.preventDefault()}function eI(N){return -1!==N.indexOf("MSIE")||-1!==N.indexOf("Trident/")}function eT(N){return -1!==N.indexOf("Edge/")}function eP(N=window.navigator.userAgent){return eI(N)||eT(N)}function eD(...N){return(I,...T)=>N.some(N=>(!eC(I)&&N&&N(I,...T),eC(I)))}function eM(){return"showOpenFilePicker"in window}function eR(N){return Array.isArray(N)?N:"string"==typeof N?[N]:[]}function eL(N){if(eS(N))return Array.isArray(N)?N.filter(N=>eS(N)&&eS(N.accept)):[{accept:N}]}function e$(N){let I=[],T=Object.keys(N);for(let T of Object.values(N))for(let N of eR(T))I.includes(N)||I.push(N);return I.length>0?I.join(", "):T.length>0?T.join(", "):"Files"}function eF(N){let I=eL(N);if(!eS(I))return;let T={};for(let N of I)for(let[I,P]of Object.entries(N.accept)){let N=T[I]??(T[I]=[]);for(let I of eR(P))N.includes(I)||N.push(I)}return T}function eB(N){let I=eL(N);if(!eS(I))return;let T=I.map(N=>{let I=Object.entries(N.accept).filter(([N,I])=>{let T=!0;return eq(N)||(console.warn(`Skipped "${N}" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.`),T=!1),(Array.isArray(I)||"string"==typeof I)&&eR(I).every(eK)||(console.warn(`Skipped "${N}" because an invalid file extension was provided.`),T=!1),T}).reduce((N,[I,T])=>(N[I]=eR(T),N),{});return{description:eS(N.description)&&""!==N.description?N.description:e$(I),accept:I}}).filter(N=>Object.keys(N.accept).length>0);return T.length>0?T:void 0}function eU(N,{omitWildcardMimeTypesWithExtensions:I=!1}={}){if(eS(N))return Object.entries(N).reduce((N,[T,P])=>{let D=eR(P);return I&&eG(T)&&D.some(eK)?N.push(...D):N.push(T,...D),N},[]).filter(N=>eq(N)||eK(N)).join(",")}function eH(N){return N instanceof DOMException&&("AbortError"===N.name||N.code===N.ABORT_ERR)}function ez(N){return N instanceof DOMException&&("SecurityError"===N.name||N.code===N.SECURITY_ERR)}function eW(N){return N instanceof DOMException&&"NotAllowedError"===N.name}function eq(N){return"audio/*"===N||"video/*"===N||"image/*"===N||"text/*"===N||"application/*"===N||/\w+\/[-+.\w]+/g.test(N)}function eG(N){return N.endsWith("/*")}function eK(N){return/^.*\.[\w]+$/.test(N)}(0,eo.forwardRef)(({children:N,...I},T)=>{let{open:P,...D}=eY(I);return(0,eo.useImperativeHandle)(T,()=>({open:P}),[P]),(0,el.jsx)(el.Fragment,{children:N?.({...D,open:P})})}).displayName="Dropzone";let eV={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,isDragUnknown:!1,isDragGlobal:!1,isProcessing:!1,acceptedFiles:[],fileRejections:[],dragFileRejections:[]};function eY(N={}){let{accept:I,disabled:T=!1,getFilesFromEvent:P=B,maxSize:D=1/0,minSize:M=0,multiple:R=!0,maxFiles:L=0,onDragEnter:$,onDragLeave:F,onDragOver:U,onDrop:H,onDropAccepted:z,onDropRejected:W,onFileDialogCancel:q,onFileDialogOpen:G,useFsAccessApi:K=!1,autoFocus:V=!1,preventDropOnDocument:Y=!0,noClick:J=!1,noKeyboard:Q=!1,noDrag:Z=!1,noDragEventsBubbling:X=!1,noPaste:ee=!1,onError:et,validator:er,getErrorMessage:en}=N,ea=(0,eo.useMemo)(()=>eF(I),[I]),ei=(0,eo.useMemo)(()=>eU(ea),[ea]),es=(0,eo.useMemo)(()=>eU(ea,{omitWildcardMimeTypesWithExtensions:!0}),[ea]),el=(0,eo.useMemo)(()=>eB(I),[I]),ec=(0,eo.useMemo)(()=>"function"==typeof G?G:eQ,[G]),eu=(0,eo.useMemo)(()=>"function"==typeof q?q:eQ,[q]),ed=(0,eo.useRef)(null),ef=(0,eo.useRef)(null),[eh,ep]=(0,eo.useReducer)(eJ,eV),{isFocused:em,isFileDialogActive:eg}=eh,ey=(0,eo.useRef)(eg);ey.current=eg;let eb=(0,eo.useRef)(null),ev=(0,eo.useCallback)(()=>{eb.current?.abort();let N=new AbortController;return eb.current=N,ep({type:"setProcessing",isProcessing:!0}),N.signal},[]),ex=(0,eo.useCallback)(N=>{N.aborted||ep({type:"setProcessing",isProcessing:!1})},[]),eS=(0,eo.useRef)("u">typeof window&&window.isSecureContext&&K&&eM()),eO=()=>{!eS.current&&eg&&setTimeout(()=>{if(ef.current){let{files:N}=ef.current;N?.length||(ep({type:"closeDialog"}),eu())}},300)};(0,eo.useEffect)(()=>(window.addEventListener("focus",eO,!1),()=>{window.removeEventListener("focus",eO,!1)}),[ef,eg,eu,eS]);let eI=(0,eo.useRef)([]),eT=(0,eo.useRef)([]),eR=N=>{ed.current&&N.target&&ed.current.contains(N.target)&&N.defaultPrevented||(N.preventDefault(),eI.current=[])};(0,eo.useEffect)(()=>(Y&&(document.addEventListener("dragover",eN,!1),document.addEventListener("drop",eR,!1)),()=>{Y&&(document.removeEventListener("dragover",eN),document.removeEventListener("drop",eR))}),[ed,Y]),(0,eo.useEffect)(()=>{let N=N=>
593{N.target&&(eT.current=[...eT.current,N.target]),ej(N)&&ep({isDragGlobal:!0,type:"setDragGlobal"})},I=N=>{eT.current=eT.current.filter(I=>I!==N.target&&null!==I),eT.current.length>0||ep({isDragGlobal:!1,type:"setDragGlobal"})},T=()=>{eT.current=[],ep({isDragGlobal:!1,type:"setDragGlobal"})},P=()=>{eT.current=[],ep({isDragGlobal:!1,type:"setDragGlobal"})};return document.addEventListener("dragenter",N,!1),document.addEventListener("dragleave",I,!1),document.addEventListener("dragend",T,!1),document.addEventListener("drop",P,!1),()=>{document.removeEventListener("dragenter",N),document.removeEventListener("dragleave",I),document.removeEventListener("dragend",T),document.removeEventListener("drop",P)}},[ed]),(0,eo.useEffect)(()=>(!T&&V&&ed.current&&ed.current.focus(),()=>{}),[ed,V,T]);let eL=(0,eo.useCallback)(N=>{et?et(N):console.error(N)},[et]),e$=(0,eo.useCallback)(N=>{N.preventDefault(),N.persist?.(),e9(N),!ey.current&&(eI.current=[...eI.current,N.target],ej(N)&&Promise.resolve(P(N)).then(I=>{if(eC(N)&&!X)return;let T=I.length>0?ek({files:I,accept:ei,minSize:M,maxSize:D,multiple:R,maxFiles:L,validator:er,getErrorMessage:en}):null;ep({isDragAccept:T?.verdict==="accept",isDragReject:T?.verdict==="reject",isDragUnknown:T?.verdict==="unknown",isDragActive:!0,dragFileRejections:T?.rejections??[],type:"setDraggedFiles"}),$&&$(N)}).catch(N=>eL(N)))},[P,$,eL,X,ei,M,D,R,L,er,en]),eq=(0,eo.useCallback)(N=>{if(N.preventDefault(),N.persist?.(),e9(N),ey.current)return!1;let I=ej(N);if(I&&N.dataTransfer)try{N.dataTransfer.dropEffect="copy"}catch{}return I&&U&&U(N),!1},[U,X]),eG=(0,eo.useCallback)(N=>{N.preventDefault(),N.persist?.(),e9(N);let I=eI.current.filter(N=>ed.current?.contains(N)),T=I.indexOf(N.target);-1!==T&&I.splice(T,1),eI.current=I,!(I.length>0)&&(ep({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1,isDragUnknown:!1,dragFileRejections:[]}),ej(N)&&F&&F(N))},[ed,F,X]),eK=(0,eo.useCallback)(async(N,I,T)=>{let P,$=(N,I)=>en?{...N,message:en(N,I)}:N,F=N=>{let T=[],P=[];N.forEach(({file:N,accepted:I,acceptError:D,sizeMatch:M,sizeError:R,customErrors:L})=>{let F=!L||Array.isArray(L)&&0===L.length;if(I&&M&&F)T.push(N);else{let I=[D,R];L&&(I=I.concat(L)),P.push({file:N,errors:I.filter(N=>null!=N).map(I=>$(I,N))})}});let D=R?L>=1?L:1/0:1;T.length>D&&T.splice(D).forEach(N=>{P.push({file:N,errors:[$(ew,N)]})}),ep({acceptedFiles:T,fileRejections:P,type:"setFiles"}),H&&H(T,P,I),P.length>0&&W&&W(P,I),T.length>0&&z&&z(T,I)},B=N.map(N=>{let[I,T]=eA(N,es),[P,R]=eE(N,M,D);return{file:N,accepted:I,acceptError:T,sizeMatch:P,sizeError:R,customErrors:er?er(N):null}});if(!B.some(({customErrors:N})=>e_(N)))return void F(B);try{P=await Promise.all(B.map(async({customErrors:N,...I})=>({...I,customErrors:await N})))}catch(N){T.aborted||(ex(T),eL(N));return}T.aborted||F(P)},[ep,R,es,M,D,L,H,z,W,er,en,eL,ex]),eZ=(0,eo.useCallback)(N=>{if(N.preventDefault(),N.persist?.(),e9(N),eI.current=[],(!ey.current||!N.dataTransfer)&&(ep({type:"reset"}),ej(N))){let I=ev();Promise.resolve(P(N)).then(T=>{if(!I.aborted)return eC(N)&&!X?void ex(I):eK(T,N,I)}).catch(N=>{I.aborted||(ex(I),eL(N))})}},[P,eK,eL,X,ev,ex]),eX=(0,eo.useCallback)(N=>{if(!ej(N))return;N.preventDefault(),N.persist?.(),e9(N);let I=ev();Promise.resolve(P(N)).then(T=>{if(!I.aborted)return eC(N)&&!X?void ex(I):eK(T,N,I)}).catch(N=>{I.aborted||(ex(I),eL(N))})},[P,eK,eL,X,ev,ex]),e0=(0,eo.useCallback)(()=>{if(eS.current){let N;ep({type:"openDialog"}),ec();let I={multiple:R,types:el};window.showOpenFilePicker(I).then(I=>(N=ev(),P(I))).then(I=>{if(ep({type:"closeDialog"}),!N.aborted)return eK(I,null,N)}).catch(I=>{N&&ex(N),eH(I)?(eu(I),ep({type:"closeDialog"})):ez(I)||eW(I)?(eS.current=!1,ef.current?(ef.current.value="",ef.current.click()):eL(Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):eL(I)});return}ef.current&&(ep({type:"openDialog"}),ec(),ef.current.value="",ef.current.click())},[ep,ec,eu,K,eK,eL,el,R,ev,ex]),e1=(0,eo.useCallback)(N=>{ed.current?.isEqualNode(N.target)&&(" "===N.key||"Enter"===N.key||32===N.keyCode||13===N.keyCode)&&(N.preventDefault(),e0())},[ed,e0]),e2=(0,eo.useCallback)(()=>{ep({type:"focus"})},[]),e3=(0,eo.useCallback)(()=>{ep({type:"blur"})},[]),e4=(0,eo.useCallback)(()=>{J||(eP()?setTimeout(e0,0):e0())},[J,e0]),e5=N=>T?null:N,e6=N=>Q?null:e5(N),e8=N=>Z?null:e5(N),e7=N=>ee?null:e5(N),e9=N=>{X&&N.stopPropagation()},te=(0,eo.useMemo)(()=>({refKey:N="ref",role:I,onKeyDown:P,onFocus:D,onBlur:M,onClick:R,onDragEnter:L,onDragOver:$,onDragLeave:F,onDrop:B,onPaste:U,...H}={})=>({onKeyDown:e6(eD(P,e1)),onFocus:e6(eD(D,e2)),onBlur:e6(eD(M,e3)),onClick:e5(eD(R,e4)),onDragEnter:e8(eD(L,e$)),onDragOver:e8(eD($,eq)),onDragLeave:e8(eD(F,eG)),onDrop:e8(eD(B,eZ)),onPaste:e7(eD(U,eX)),role:"string"==typeof I&&""!==I?I:"presentation",[N]:ed,...!T&&!Q?{tabIndex:0}:{},...T?{"aria-disabled":!0}:{},...H}),[ed,e1,e2,e3,e4,e$,eq,eG,eZ,eX,Q,Z,ee,T]),tt=(0,eo.useCallback)(N=>{N.stopPropagation()},[]),tr=(0,eo.useMemo)(()=>({refKey:N="ref",onChange:I,onClick:T,...P}={})=>({accept:es,multiple:R,type:"file","aria-label":"file upload",style:{border:0,display:"block",height:0,margin:0,opacity:0,overflow:"hidden",padding:0,width:0},onChange:e5(eD(I,eZ)),onClick:e5(eD(T,tt)),tabIndex:-1,[N]:ef,...P}),[ef,I,R,eZ,T]);
593return{...eh,isFocused:em&&!T,getRootProps:te,getInputProps:tr,rootRef:ed,inputRef:ef,open:e5(e0)}}function eJ(N,I){switch(I.type){case"focus":return{...N,isFocused:!0};case"blur":return{...N,isFocused:!1};case"openDialog":return{...eV,isFileDialogActive:!0};case"closeDialog":return{...N,isFileDialogActive:!1};case"setDraggedFiles":return{...N,isDragActive:I.isDragActive,isDragAccept:I.isDragAccept,isDragReject:I.isDragReject,isDragUnknown:I.isDragUnknown,dragFileRejections:I.dragFileRejections};case"setProcessing":return{...N,isProcessing:I.isProcessing};case"setFiles":return{...N,acceptedFiles:I.acceptedFiles,fileRejections:I.fileRejections,dragFileRejections:[],isProcessing:!1,isDragReject:!1,isDragUnknown:!1};case"setDragGlobal":return{...N,isDragGlobal:I.isDragGlobal};case"reset":return{...eV};default:return N}}function eQ(){}},35782:(N,I,T)=>{"use strict";T.r(I),T.d(I,{useMobileNavigation:()=>R});var P=T(4634),D=T(85609),M=T(14232);let R=({locale:N})=>{let{page:I}=(0,D.M5)(),[T,R]=(0,M.useState)(!1),[L,$]=(0,M.useState)(null),[F,B]=(0,M.useState)(!1),{pageLanguages:U}=I.layout.sitecore.context,H=(0,P.resolveCurrentLanguage)(U,N),z=(0,P.resolveAlternativeLanguage)(U,N),W=(0,P.resolveCountryCode)(H?.name),q=(0,P.resolveIsGlobalLanguage)(H?.name),G=(0,P.buildLanguageData)(L,H,z,W,q),K=()=>{F&&B(!1),R(N=>!N),$(null)},V=N=>{let I=!!N?.children?.results?.length;$(N?.children?.results?.length?N:null),R(I)},Y=()=>{L&&(F&&B(!1),$(null))};return{page:I,isMobileMenuOpen:T,activeNavItem:L,setActiveNavItem:$,currentLanguage:H,languageData:G,toggleMobileMenu:K,handleNavItemClick:V,handlePreviousNavMenuClick:Y}}},35976:(N,I,T)=>{"use strict";T.r(I),T.d(I,{CaseStudyOverviewResultCardList:()=>R});var P=T(37876),D=T(49324),M=T(63366);let R=({results:N})=>N?.length>0?(0,P.jsx)(M.az,{className:"flex-1 flex-row items-center justify-center",children:(0,P.jsx)(M.az,{className:"mt-8 grid grid-flow-row-dense sm:grid-cols-2 sm:gap-8 md:grid-cols-3 lg:grid-cols-4",children:N.map((I,T)=>(0,P.jsx)(D.CaseStudyOverviewResultCard,{result:I,lastCard:T===N.length-1},I.previewTitle?.value??I.name))})}):null},36246:(N,I,T)=>{"use strict";T.d(I,{A:()=>D});var P=T(65745);let D={getApplyWithSeekButtonQuery:async N=>await P.h.makeGraphQLRequest(` 594 query ApplyWithSeekButton($input: ApplyWithSeekButtonInput!) { 595 applyWithSeekButton(input: $input) { 596 buttonLabel 597 images { 598 accent 599 } 600 url 601 } 602 } 603 `,{input:N}),getSeekCandidateProfileQuery:async N=>await P.h.makeGraphQLRequest(` 604 query GetSeekCandidateProfile($id: String!) { 605 candidateProfile(id: $id) { 606 profileId { 607 value 608 } 609 candidate { 610 person { 611 name { 612 formattedName 613 given 614 family 615 } 616 communication { 617 email { 618 address 619 } 620 phone { 621 formattedNumber 622 } 623 } 624 } 625 } 626 attachments { 627 descriptions 628 seekRoleCode 629 url 630 } 631 } 632 } 633 `,{...N}),sendSignalQuery:async N=>await P.h.makeGraphQLRequest(` 634 mutation ($input: SendSignalInput!) { 635 sendSignal(input: $input) 636 } 637 `,{input:N})}},36379:(N,I,T)=>{"use strict";T.d(I,{RT:()=>ee.R,Qs:()=>et,Vf:()=>Q,cn:()=>M.cn,K5:()=>V,xd:()=>K,_3:()=>X._3,J6:()=>Z.J6,oF:()=>G,UJ:()=>P,Qh:()=>D,M_:()=>U});let P=(N,I)=>N?.find(N=>N.startsWith(I))??"",D=N=>{if("string"==typeof N)return N.trim();if(N&&"object"==typeof N&&null!==N&&"Value"in N){let I=N;return I.Value?.value?.trim()??""}return""};var M=T(96847),R=T(14232),L=T(65212);let $=N=>btoa(N),F=N=>atob(N),B="mailto:",U=N=>{let[I,T]=(0,R.useState)(N),P=N?.value?.href?.slice(B.length),D=/^\S+@\S+\.\S+$/.test(P)||N?.value?.linktype==="mailto";(0,R.useEffect)(()=>{if(D){let I=`${B}${$(P)}`;T({...N,value:{...N.value,href:I,url:I,text:N?.value?.text}})}},[]);let M=N=>{N.preventDefault();try{let N=I?.value?.href?.startsWith(B)?I.value?.href.slice(B.length):I?.value?.href,P=F(N);P&&(window.location.href=B+P),T({...I,value:{...I?.value,href:I?.value?.href}})}catch(N){L.A.ui("handleDeobfuscation: Failed",N)}};return{obfuscatedEmail:I,handleDeobfuscation:M}};var H=T(55333),z=T(60409);T(2582);var W=T(10988),q=T(98176);let G=async(N,I)=>
637{if(N&&I)try{return await (0,W.aI)(N,q.kJ,I)}catch(N){L.A.blog("Failed to fetch blogRootPageData inside blog/[...path].tsx",N)}},K=(N,I)=>(0,H.Cx)()?"#":`${q.kJ}/${Y(I)}/${N}`,V=N=>(0,H.Cx)()?"#":`${q.kJ}/${Y(N)}`,Y=N=>N?.toLowerCase()?.replaceSpacesWithDashes()??q.kB,J=N=>N?.toLowerCase().includes(q.kJ),Q=(N,I)=>{if(J(I.url)&&I.fields?.[z.QF.blogCategory]){let T=I.fields?.[z.QF.blogCategory];N.url={path:K(I.name,T.name)},N.blogHeroCategory={data:{name:T.name,displayName:T.displayName}}}return N};var Z=T(69755),X=T(92594),ee=T(29087);let et={white:"#FFF /**/","brunel-yellow":"#F2E400 /**/","brunel-clay":"#D2CEC5 /**/","brunel-teal":"#9EC5C4 /**/","brunel-grey-green":"#2B454A /**/","brunel-black":"#000000 /**/","brunel-dark-grey":"#353F49 /**/","ui-grey":"#5D656D /**/","ui-light-grey":"#ECECEC /**/","ui-green":"#008800 /**/","ui-bourbon":"#BC6A20 /**/","ui-purple":"#884488 /**/","ui-lilac":"#C58AF9 /**/","accent-iron":"#E4E5E7 /**/","accent-spring-wood":"#FAF9F5 /**/","accent-pampas":"#F1EFE7 /**/","accent-old-lace":"#FDF3EA /**/","accent-catskill-white":"#EBF3F5 /**/","accent-fiord":"#4F5D6B /**/","accent-corn":"#D0C400 /**/","accent-pacifika":"#8F8922 /**/","toast-info":"#0DCAF0 /**/","toast-success":"#198754 /**/","toast-warning":"#FFC107 /**/","toast-error":"#DC3545 /**/","th-primary-background":"#2cb5a7","th-white-background":"#ffffff","th-generic-background":"#f7f9fa","th-cta-background":"#f36a25","th-body-text":"#2a4a7b","th-bold-text":"#f7f9fa"}},36429:(N,I,T)=>{"use strict";T.r(I),T.d(I,{buildOneTrustNoticeLoadScript:()=>M,isOneTrustLoaded:()=>P,resolveHasNoFields:()=>D});let P=()=>!!window?.OneTrust,D=N=>!N||0===Object.keys(N).length,M=N=>` 638 OneTrust.NoticeApi.Initialized.then(function() { 639 OneTrust.NoticeApi.LoadNotices([ 640 "https://privacyportalde-cdn.onetrust.com/6ccc745c-c6e3-4778-89de-fb77b92aac8f/privacy-notices/${N}.json" 641 ]); 642 }); 643 `},36592:(N,I)=>{"use strict";let T;Object.defineProperty(I,"__esModule",{value:!0});let P=new Uint8Array(16);I.default=function(){if(!T){if("u"<typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");T=crypto.getRandomValues.bind(crypto)}return T(P)}},36635:(N,I,T)=>{"use strict";T.d(I,{h:()=>H});var P=T(40908),D=T(19996),M=T(51952);let R={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"a second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"a minute",other:"{{count}} minutes"},aboutXHours:{one:"about an hour",other:"about {{count}} hours"},xHours:{one:"an hour",other:"{{count}} hours"},xDays:{one:"a day",other:"{{count}} days"},aboutXWeeks:{one:"about a week",other:"about {{count}} weeks"},xWeeks:{one:"a week",other:"{{count}} weeks"},aboutXMonths:{one:"about a month",other:"about {{count}} months"},xMonths:{one:"a month",other:"{{count}} months"},aboutXYears:{one:"about a year",other:"about {{count}} years"},xYears:{one:"a year",other:"{{count}} years"},overXYears:{one:"over a year",other:"over {{count}} years"},almostXYears:{one:"almost a year",other:"almost {{count}} years"}},L=(N,I,T)=>{let P,D=R[N];if(P="string"==typeof D?D:1===I?D.one:D.other.replace("{{count}}",I.toString()),T?.addSuffix)if(T.comparison&&T.comparison>0)return"in "+P;else return P+" ago";return P};var $=T(71523);let F={full:"EEEE, MMMM do, yyyy",long:"MMMM do, yyyy",medium:"MMM d, yyyy",short:"yyyy-MM-dd"},B={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},U={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},H={code:"en-CA",formatDistance:L,formatLong:{date:(0,$.k)({formats:F,defaultWidth:"full"}),time:(0,$.k)({formats:B,defaultWidth:"full"}),dateTime:(0,$.k)({formats:U,defaultWidth:"full"})},formatRelative:P.o,localize:D.k,match:M.Y,options:{weekStartsOn:0,firstWeekContainsDate:1}}},36776:(N,I,T)=>{"use strict";T.r(I),T.d(I,{extractResponseData:()=>P});let P=(N,I)=>
643{if(200===N.status)return N.data;throw Error(`Failed to fetch Notification token on ${I} | Status: ${N.status}`)}},37051:(N,I,T)=>{"use strict";T.d(I,{o:()=>D});var P=T(43691);function D(N,I){let T=(0,P.a)(N,I?.in);return T.setHours(0,0,0,0),T}},37149:(N,I,T)=>{"use strict";T.d(I,{Cp:()=>W,EN:()=>z,F$:()=>H,GF:()=>F,GU:()=>en,MK:()=>B,S$:()=>D,ZM:()=>er,ZZ:()=>ee,Zw:()=>R,f8:()=>K,gn:()=>L,hT:()=>et,j3:()=>$,lQ:()=>M,nJ:()=>U,ox:()=>ea,pl:()=>Z,y9:()=>X,yy:()=>Q});var P=T(48306);let D="u"<typeof window||"Deno"in globalThis;function M(){}function R(N,I){return"function"==typeof N?N(I):N}function L(N){return"number"==typeof N&&N>=0&&N!==1/0}function $(N,I){return Math.max(N+(I||0)-Date.now(),0)}function F(N,I){return"function"==typeof N?N(I):N}function B(N,I){let{type:T="all",exact:P,fetchStatus:D,predicate:M,queryKey:R,stale:L}=N;if(R){if(P){if(I.queryHash!==H(R,I.options))return!1}else if(!W(I.queryKey,R))return!1}if("all"!==T){let N=I.isActive();if("active"===T&&!N||"inactive"===T&&N)return!1}return("boolean"!=typeof L||I.isStale()===L)&&(!D||D===I.state.fetchStatus)&&(!M||!!M(I))}function U(N,I){let{exact:T,status:P,predicate:D,mutationKey:M}=N;if(M){if(!I.options.mutationKey)return!1;if(T){if(z(I.options.mutationKey)!==z(M))return!1}else if(!W(I.options.mutationKey,M))return!1}return(!P||I.state.status===P)&&(!D||!!D(I))}function H(N,I){return(I?.queryKeyHashFn||z)(N)}function z(N){return JSON.stringify(N,(N,I)=>Y(I)?Object.keys(I).sort().reduce((N,T)=>(N[T]=I[T],N),{}):I)}function W(N,I){if(N===I)return!0;if(typeof N!=typeof I)return!1;if(N&&I&&"object"==typeof N&&"object"==typeof I){if(Array.isArray(N)&&Array.isArray(I)){if(I.length>N.length)return!1;for(let T=0;T<I.length;T++)if(!W(N[T],I[T]))return!1;return!0}for(let T of Object.keys(I))if(!W(N[T],I[T]))return!1;return!0}return!1}let q=Object.prototype.hasOwnProperty;function G(N,I,T=0){if(N===I)return N;if(T>500)return I;let P=V(N)&&V(I);if(!P&&!(Y(N)&&Y(I)))return I;let D=(P?N:Object.keys(N)).length,M=P?I:Object.keys(I),R=M.length,L=P?Array(R):{},$=0;for(let F=0;F<R;F++){let R=P?F:M[F],B=N[R],U=I[R];if(B===U){L[R]=B,(P?F<D:q.call(N,R))&&$++;continue}if(null===B||null===U||"object"!=typeof B||"object"!=typeof U){L[R]=U;continue}let H=G(B,U,T+1);L[R]=H,H===B&&$++}return D===R&&$===D?N:L}function K(N,I){if(!I||Object.keys(N).length!==Object.keys(I).length)return!1;for(let T in N)if(N[T]!==I[T])return!1;return!0}function V(N){return Array.isArray(N)&&N.length===Object.keys(N).length}function Y(N){if(!J(N))return!1;let I=Object.getPrototypeOf(N),T=I?.constructor;if(void 0===T)return!0;if("function"!=typeof T)return!1;let P=T.prototype;return!!J(P)&&!!P.hasOwnProperty("isPrototypeOf")&&I===Object.prototype}function J(N){return"[object Object]"===Object.prototype.toString.call(N)}function Q(N){return new Promise(I=>{P.zs.setTimeout(I,N)})}function Z(N,I,T){return"function"==typeof T.structuralSharing?T.structuralSharing(N,I):!1!==T.structuralSharing?G(N,I):I}function X(N,I,T=0){let P=[...N,I];return T&&P.length>T?P.slice(1):P}function ee(N,I,T=0){let P=[I,...N];return T&&P.length>T?P.slice(0,-1):P}let et=Symbol();function er(N,I){return!N.queryFn&&I?.initialPromise?()=>I.initialPromise:N.queryFn&&N.queryFn!==et?N.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${N.queryHash}'`))}function en(N,I){return"function"==typeof N?N(...I):!!N}function ea(N,I,T){let P,D=!1;return Object.defineProperty(N,"signal",{enumerable:!0,get:()=>(P??=I(),D||(D=!0,P.aborted?T():P.addEventListener("abort",T,{once:!0})),P)}),N}},37990:(N,I,T)=>{var P=T(99838),D=T(96777),M=T(85403),R=T(72773);N.exports=function(N,I){return P(N)||D(N,I)||M(N,I)||R()},N.exports.__esModule=!0,N.exports.default=N.exports},38505:(N,I,T)=>{"use strict";function P(N){return(I,T)=>{let P;if("formatting"===(T?.context?String(T.context):"standalone")&&N.formattingValues){let I=N.defaultFormattingWidth||N.defaultWidth,D=T?.width?String(T.width):I;P=N.formattingValues[D]||N.formattingValues[I]}else{let I=N.defaultWidth,D=T?.width?String(T.width):N.defaultWidth;P=N.values[D]||N.values[I]}return P[N.argumentCallback?N.argumentCallback(I):I]}}T.d(I,{o:()=>P})},38767:(N,I,T)=>{"use strict";T.d(I,{Q:()=>$});var P=T(78028),D=T(65212),M=T(82752),R=T(99742);class L{#w;#d={token:"",expiresAt:0};constructor(){this.#w=P.A.create({baseURL:R.env.API_HOST_NOTIFICATIONS,timeout:3e4}),this.#w.interceptors.request.use(async N=>((!this.#d.token||Date.now()>=this.#d.expiresAt)&&await this.#f(),this.#d.token&&(N.headers.Authorization=`Bearer ${this.#d.token}
643`),N)),this.#w.interceptors.response.use(N=>N,N=>(0,M.r)(N))}async #f(){let N=R.env.AZURE_AD_TENANT_ID,I=R.env.NOTIFICATIONS_CLIENT_ID,T=R.env.NOTIFICATIONS_CLIENT_SECRET,M=R.env.NOTIFICATIONS_SCOPE;try{if(!N||!I||!T||!M)throw D.A.api("Missing environment variables for CRM client credentials"),Error("Missing CRM credentials configuration.");let{access_token:R,expires_in:L}=(await P.A.post(`https://login.microsoftonline.com/${N}/oauth2/v2.0/token`,new URLSearchParams({client_id:I,client_secret:T,grant_type:"client_credentials",scope:M}),{headers:{"Content-Type":"application/x-www-form-urlencoded"}})).data;this.#d.token=R,this.#d.expiresAt=Date.now()+1e3*L-5e3,D.A.api("Fetched new Notifications token successfully."),D.A.api(`Token ${R}.`)}catch{throw Error("Error refreshing Notifications access token.")}}async getConversations(N){return this.#w.get("/api/chat/conversations",{params:{mercuryUserId:N.mercuryUserId}}).then(N=>N.data.conversations??[]).catch(N=>(D.A.api("Failed to fetch conversations from Notifications API:",N instanceof Error?N.message:N),[]))}async getConversationMessages(N){let{mercuryUserId:I,chatId:T,skip:P=0,take:M=50}=N;return this.#w.get(`/api/chat/${T}/messages`,{params:{mercuryUserId:I,skip:P,take:M}}).then(N=>N.data??null).catch(N=>(D.A.api("Failed to fetch chat messages from Chat API:",N instanceof Error?N.message:N),null))}async sendChatMessage(N){return this.#w.post("/api/chat/send",N).then(N=>N.data??null).catch(N=>(D.A.api("Failed to send message via Notifications API:",N instanceof Error?N.message:N),null))}async hideChat(N){let{chatId:I,mercuryUserId:T}=N;return this.#w.post(`/api/chat/${I}/hide`,null,{params:{mercuryUserId:T}}).then(N=>N.data??null).catch(N=>(D.A.api("Failed to hide chat via Chat API:",(N instanceof Error,N)),null))}async unHideChat(N){return this.#w.post(`/api/chat/${N.chatId}/unhide`,null,{params:{mercuryUserId:N.mercuryUserId}}).then(N=>N.data??null).catch(N=>(D.A.api("Failed to unhide chat via Notifications API:",N instanceof Error?N.message:N),null))}}new L;let $=()=>new L},38870:module=>{var __dirname="/";!function(){var __webpack_modules__={285:function(__unused_webpack_module,exports){var indexOf=function(N,I){if(N.indexOf)return N.indexOf(I);for(var T=0;T<N.length;T++)if(N[T]===I)return T;return -1},Object_keys=function(N){if(Object.keys)return Object.keys(N);var I=[];for(var T in N)I.push(T);return I},forEach=function(N,I){if(N.forEach)return N.forEach(I);for(var T=0;T<N.length;T++)I(N[T],T,N)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(N,I,T){Object.defineProperty(N,I,{writable:!0,enumerable:!1,configurable:!0,value:T})}}catch(N){return function(N,I,T){N[I]=T}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(N){if(!(this instanceof Script))return new Script(N);this.code=N};Script.prototype.runInContext=function(N){if(!(N instanceof Context))throw TypeError("needs a 'context' argument.");var I=document.createElement("iframe");I.style||(I.style={}),I.style.display="none",document.body.appendChild(I);var T=I.contentWindow,P=T.eval,D=T.execScript;!P&&D&&(D.call(T,"null"),P=T.eval),forEach(Object_keys(N),function(I){T[I]=N[I]}),forEach(globals,function(I){N[I]&&(T[I]=N[I])});var M=Object_keys(T),R=P.call(T,this.code);return forEach(Object_keys(T),function(I){(I in N||-1===indexOf(M,I))&&(N[I]=T[I])}),forEach(globals,function(I){I in N||defineProp(N,I,T[I])}),document.body.removeChild(I),R},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(N){var I=Script.createContext(N),T=this.runInContext(I);return N&&forEach(Object_keys(I),function(T){N[T]=I[T]}),T},forEach(Object_keys(Script.prototype),function(N){exports[N]=Script[N]=function(I){var T=Script(I);
643return T[N].apply(T,[].slice.call(arguments,1))}}),exports.isContext=function(N){return N instanceof Context},exports.createScript=function(N){return exports.Script(N)},exports.createContext=Script.createContext=function(N){var I=new Context;return"object"==typeof N&&forEach(Object_keys(N),function(T){I[T]=N[T]}),I}}};"u">typeof __nccwpck_require__&&(__nccwpck_require__.ab=__dirname+"/");var __nested_webpack_exports__={};__webpack_modules__[285](0,__nested_webpack_exports__),module.exports=__nested_webpack_exports__}()},39149:(N,I,T)=>{var P="Expected a function",D=0/0,M="[object Symbol]",R=/^\s+|\s+$/g,L=/^[-+]0x[0-9a-f]+$/i,$=/^0b[01]+$/i,F=/^0o[0-7]+$/i,B=parseInt,U="object"==typeof T.g&&T.g&&T.g.Object===Object&&T.g,H="object"==typeof self&&self&&self.Object===Object&&self,z=U||H||Function("return this")(),W=Object.prototype.toString,q=Math.max,G=Math.min,K=function(){return z.Date.now()};function V(N){var I=typeof N;return!!N&&("object"==I||"function"==I)}function Y(N){return!!N&&"object"==typeof N}function J(N){return"symbol"==typeof N||Y(N)&&W.call(N)==M}function Q(N){if("number"==typeof N)return N;if(J(N))return D;if(V(N)){var I="function"==typeof N.valueOf?N.valueOf():N;N=V(I)?I+"":I}if("string"!=typeof N)return 0===N?N:+N;N=N.replace(R,"");var T=$.test(N);return T||F.test(N)?B(N.slice(2),T?2:8):L.test(N)?D:+N}N.exports=function(N,I,T){var D,M,R,L,$,F,B=0,U=!1,H=!1,z=!0;if("function"!=typeof N)throw TypeError(P);function W(I){var T=D,P=M;return D=M=void 0,B=I,L=N.apply(P,T)}function Y(N){return B=N,$=setTimeout(X,I),U?W(N):L}function J(N){var T=N-F,P=N-B,D=I-T;return H?G(D,R-P):D}function Z(N){var T=N-F,P=N-B;return void 0===F||T>=I||T<0||H&&P>=R}function X(){var N=K();if(Z(N))return ee(N);$=setTimeout(X,J(N))}function ee(N){return($=void 0,z&&D)?W(N):(D=M=void 0,L)}function et(){return void 0===$?L:ee(K())}function er(){var N=K(),T=Z(N);if(D=arguments,M=this,F=N,T){if(void 0===$)return Y(F);if(H)return $=setTimeout(X,I),W(F)}return void 0===$&&($=setTimeout(X,I)),L}return I=Q(I)||0,V(T)&&(U=!!T.leading,R=(H="maxWait"in T)?q(Q(T.maxWait)||0,I):R,z="trailing"in T?!!T.trailing:z),er.cancel=function(){void 0!==$&&clearTimeout($),B=0,D=F=M=$=void 0},er.flush=et,er}},39244:(N,I,T)=>{"use strict";T.d(I,{B:()=>z});var P=T(37876),D=T(68602),M=T(18908),R=T(77470),L=T(63808),$=T(14232),F=T(36379);let B=({id:N,showHeader:I=!0,label:T,placeholder:B,options:U,errors:H,setDataLayer:z,setDataLayerError:W})=>{let q=(0,$.useRef)(!1),[G,K]=(0,$.useState)(""),{setFieldValue:V,setFieldTouched:Y}=(0,L.j7)(),J=I=>{K(I),V(N,"-"===I?"":I),Y(N,!0,!0),z?.()};return(0,$.useEffect)(()=>{["","-"].includes(G)||Y(N,!0,!0)},[N,Y,G]),(0,P.jsxs)("div",{id:`FormChips-${N}`,className:"flex w-full flex-col gap-2",children:[I&&(0,P.jsxs)("div",{className:"flex flex-col",children:[(0,P.jsx)(R.l,{id:N,label:T,focusOnClick:!1}),H?.map(I=>{if(I?.touched&&I?.message)return q.current||(W?.(),q.current=!0),(0,P.jsx)(D.j,{id:I?.id??N,error:I.message},`FormError-${I?.id??N}`)})]}),(0,P.jsxs)("div",{className:"flex flex-wrap gap-2",children:[U.map(N=>(0,P.jsx)("button",{type:"button",onClick:()=>J(N.value),className:(0,F.cn)("h-12 cursor-pointer rounded-sm border px-4 text-sm transition-colors",G===N.value?"border-brunel-dark-grey bg-brunel-dark-grey text-white":"border-accent-iron bg-white text-ui-grey hover:bg-ui-light-grey"),children:N.label},N.value)),"-"===G&&(0,P.jsx)(M.Z,{id:N,placeholder:B})]})]})};var U=T(60547);let H=N=>(0,F.cn)("flex-1 cursor-pointer px-4 py-2 text-sm transition-colors",N?"bg-brunel-dark-grey text-white":"bg-white text-ui-grey hover:bg-ui-light-grey"),z=({noticePeriod:N,availableFrom:I,showNoticePeriod:T=!0,showAvailableFrom
643:D=!0})=>{let[M,R]=(0,$.useState)("noticePeriod"),{setFieldValue:F,setFieldTouched:z}=(0,L.j7)(),W=N=>{"noticePeriod"===N?(F("availableFrom",""),z("availableFrom",!1,!1)):(F("noticePeriodDays",""),z("noticePeriodDays",!1,!1)),R(N)};return(0,P.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,P.jsxs)("div",{className:"flex h-12 overflow-hidden rounded-sm border border-accent-iron",children:[T&&(0,P.jsx)("button",{type:"button",onClick:()=>W("noticePeriod"),className:H("noticePeriod"===M),children:N?.label??"[noticePeriodDays]"}),T&&D&&(0,P.jsx)("div",{className:"w-px shrink-0 bg-accent-iron"}),D&&(0,P.jsx)("button",{type:"button",onClick:()=>W("availableFrom"),className:H("availableFrom"===M),children:I?.label??"[availableFrom]"})]}),"noticePeriod"===M&&T&&(0,P.jsx)(B,{id:"noticePeriodDays",placeholder:N?.placeholder,options:N?.options??[],errors:N?.errors,setDataLayer:N?.setDataLayer,setDataLayerError:N?.setDataLayerError}),"availableFrom"===M&&D&&(0,P.jsx)(U.d,{id:"availableFrom",locale:I?.locale,placeholder:I?.placeholder,effect:"floating-peer",errors:I?.errors,setDataLayer:I?.setDataLayer,setDataLayerError:I?.setDataLayerError})]})}},39582:(N,I,T)=>{"use strict";T.d(I,{b:()=>D});var P=T(14232);function D(N){let I=(0,P.useRef)(null),[T,D]=(0,P.useState)(!1);return(0,P.useEffect)(()=>{I.current&&D(I.current.scrollHeight>N)},[N]),{ref:I,isOverflowing:T}}},40097:(N,I,T)=>{"use strict";T.d(I,{n:()=>B});var P=T(67768),D=T(14232),M=T(37149),R=T(90089),L=T(60388),$=T(21407),F=class extends R.Q{#t;#x=void 0;#A;#E;constructor(N,I){super(),this.#t=N,this.setOptions(I),this.bindMethods(),this.#S()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(N){let I=this.options;this.options=this.#t.defaultMutationOptions(N),(0,M.f8)(this.options,I)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#A,observer:this}),I?.mutationKey&&this.options.mutationKey&&(0,M.EN)(I.mutationKey)!==(0,M.EN)(this.options.mutationKey)?this.reset():this.#A?.state.status==="pending"&&this.#A.setOptions(this.options)}onSubscribe(){1===this.listeners.size&&this.#A&&(this.#A.addObserver(this),this.#S())}onUnsubscribe(){this.hasListeners()||this.#A?.removeObserver(this)}onMutationUpdate(N){this.#S(),this.#_(N)}getCurrentResult(){return this.#x}reset(){this.#A?.removeObserver(this),this.#A=void 0,this.#S(),this.#_()}mutate(N,I){return this.#E=I,this.#A?.removeObserver(this),this.#A=this.#t.getMutationCache().build(this.#t,this.options),this.#A.addObserver(this),this.#A.execute(N)}#S(){let N=this.#A?.state??(0,$.$)();this.#x={...N,isPending:"pending"===N.status,isSuccess:"success"===N.status,isError:"error"===N.status,isIdle:"idle"===N.status,mutate:this.mutate,reset:this.reset}}#_(N){L.jG.batch(()=>{if(this.#E&&this.hasListeners()){let I=this.#x.variables,T=this.#x.context,P={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(N?.type==="success"){try{this.#E.onSuccess?.(N.data,I,T,P)}catch(N){Promise.reject(N)}try{this.#E.onSettled?.(N.data,null,I,T,P)}catch(N){Promise.reject(N)}}else if(N?.type==="error"){try{this.#E.onError?.(N.error,I,T,P)}catch(N){Promise.reject(N)}try{this.#E.onSettled?.(void 0,N.error,I,T,P)}catch(N){Promise.reject(N)}}}this.listeners.forEach(N=>{N(this.#x)})})}};function B(N,I){let T=(0,P.jE)(I),[R]=D.useState(()=>new F(T,N));D.useEffect(()=>{R.setOptions(N)},[R,N]);let $=D.useSyncExternalStore(D.useCallback(N=>R.subscribe(L.jG.batchCalls(N)),[R]),()=>R.getCurrentResult(),()=>R.getCurrentResult()),B=D.useCallback((...N)=>{R.mutate(N[0],N[1]).catch(M.lQ)},[R]);if($.error&&(0,M.GU)(R.options.throwOnError,[$.error]))throw $.error;return{...$,mutate:B,mutateAsync:$.mutate}}},40163:(N,I,T)=>{"use strict";T.d(I,{E:()=>B});var P=T(14232),D=T(73813),M=T(98741),R=T(63561),L=T(53282),$=function(N,I){var T={};for(var P in N)Object.prototype.hasOwnProperty.call(N,P)&&0>I.indexOf(P)&&(T[P]=N[P]);if(null!=N&&"function"==typeof Object.getOwnPropertySymbols)for(var D=0,P=Object.getOwnPropertySymbols(N);D<P.length;D++)0>I.indexOf(P[D])&&Object.prototype.propertyIsEnumerable.call(N,P[D])&&
643(T[P[D]]=N[P[D]]);return T};let F=N=>{var I,{field:T,tag:M,editable:R=!0,encode:L=!0}=N,F=$(N,["field","tag","editable","encode"]);if((0,D.JE)(T))return null;L||(R=!1);let B=null!=(I=T.value)?I:"",U=null,H=Object.assign({},F);if(L){let N=B,I=String(N).split("\n");if(I.length){let T=[];I.forEach((N,D)=>{let M=D===I.length-1;T.push(N),M||T.push(P.createElement("br",{key:D}))}),N=T}U=N}else H.dangerouslySetInnerHTML={__html:String(B).split("\n").join("<br>")};let z=M||"span";return T.metadata?P.createElement(z,Object.assign({},H,{suppressHydrationWarning:!0}),U):M||!L?P.createElement(z,Object.assign({},H),U):P.createElement(P.Fragment,null,U)},B=(0,M.O)((0,R.N)(F,{defaultEmptyFieldEditingComponent:L.G}));B.displayName="Text"},40164:(N,I,T)=>{"use strict";T.r(I),T.d(I,{default:()=>B,hkdf:()=>B});let P=()=>{if("u">typeof globalThis)return globalThis;if("u">typeof self)return self;if("u">typeof window)return window;throw Error("unable to locate global object")},D=async(N,I,T,D,M)=>{let{crypto:{subtle:R}}=P();return new Uint8Array(await R.deriveBits({name:"HKDF",hash:`SHA-${N.substr(3)}`,salt:T,info:D},await R.importKey("raw",I,"HKDF",!1,["deriveBits"]),M<<3))};function M(N){switch(N){case"sha256":case"sha384":case"sha512":case"sha1":return N;default:throw TypeError('unsupported "digest" value')}}function R(N,I){if("string"==typeof N)return new TextEncoder().encode(N);if(!(N instanceof Uint8Array))throw TypeError(`"${I}"" must be an instance of Uint8Array or a string`);return N}function L(N){let I=R(N,"ikm");if(!I.byteLength)throw TypeError('"ikm" must be at least one byte in length');return I}function $(N){let I=R(N,"info");if(I.byteLength>1024)throw TypeError('"info" must not contain more than 1024 bytes');return I}function F(N,I){if("number"!=typeof N||!Number.isInteger(N)||N<1)throw TypeError('"keylen" must be a positive integer');if(N>255*(parseInt(I.substr(3),10)>>3||20))throw TypeError('"keylen" too large');return N}async function B(N,I,T,P,B){return D(M(N),L(I),R(T,"salt"),$(P),F(B,N))}},40203:(N,I,T)=>{"use strict";T.d(I,{c:()=>F});var P=T(37876),D=T(68602),M=T(77470),R=T(63808),L=T(14232),$=T(36379);let F=({id:N,showHeader:I=!0,label:T,min:F=0,max:B=200,step:U=5,unit:H="km",errors:z,setDataLayer:W,setDataLayerError:q})=>{let G=(0,L.useRef)(!1),[K]=(0,R.Mt)(N),{setFieldValue:V,setFieldTouched:Y}=(0,R.j7)(),J=""!==K.value?Number(K.value):F;return(0,L.useEffect)(()=>{B<K.value&&V(N,B,!0)},[N,K.value,V,B]),(0,P.jsxs)("div",{id:`FormSlider-${N}`,className:(0,$.cn)("flex w-full flex-col gap-2"),children:[I&&(0,P.jsxs)("div",{className:"flex flex-col",children:[(0,P.jsx)(M.l,{id:N,label:T,focusOnClick:!1}),z?.map(I=>{if(I?.touched&&I?.message)return G.current||(q?.(),G.current=!0),(0,P.jsx)(D.j,{id:I?.id??N,error:I.message},`FormError-${I?.id??N}`)})]}),(0,P.jsxs)("div",{className:"flex items-center gap-4",children:[(0,P.jsx)("input",{id:N,name:N,type:"range",min:F,max:B,step:U,value:J,className:"h-3 w-full cursor-pointer appearance-none rounded-full border-2 bg-accent-iron accent-brunel-dark-grey",onChange:I=>{V(N,I.target.value),Y(N,!0,!1),W?.()}}),(0,P.jsxs)("span",{className:"min-w-16 text-right text-sm font-medium text-brunel-dark-grey",children:[J," ",H]})]})]})}},40316:(N,I)=>{"use strict";function T(N){var I;let T=new URL("http://localhost:3000/api/auth");N&&!N.startsWith("http")&&(N=`https://${N}`);let P=new URL(null!=(I=N)?I:T),D=("/"===P.pathname?T.pathname:P.pathname).replace(/\/$/,""),M=`${P.origin}${D}`;return{origin:P.origin,host:P.host,path:D,base:M,toString:()=>M}}Object.defineProperty(I,"__esModule",{value:!0}),I.default=T},40323:N=>{function I(N){var I=Error("Cannot find module '"+N+"'");throw I.code="MODULE_NOT_FOUND",I}I.keys=()=>[],I.resolve=I,I.id=40323,N.exports=I},40406:(N,I,T)=>{"use strict";T.d(I,{g:()=>ep});let P={lessThanXSeconds:{one:"ä¸å° 1 ç§",other:"ä¸å° {{count}} ç§"},xSeconds:{one:"1 ç§",other:"{{count}} ç§"},halfAMinute:"ååé",lessThanXMinutes:{one:"ä¸å° 1 åé",other:"ä¸å° {{count}} åé"},xMinutes:{one:"1 åé",other:"{{count}} åé"},xHours:{one:"1 å°æ¶",other:"{{count}} å°æ¶"},aboutXHours:{one:"大约 1 å°æ¶",other:"大约 {{count}} å°æ¶"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个ææ",other:"大约 {{count}} 个ææ"},xWeeks:{one:"1 个ææ",other:"{{count}} 个ææ"},aboutXMonths:{one:"大约 1 个æ",other:"大约 {{count}} 个æ"},xMonths:{one:"1 个æ",other:"{{count}} 个æ"},aboutXYears:{one:"大约 1 å¹´",other:"大约 {{count}} å¹´"},xYears:{one:"1 å¹´",other:"{{count}} å¹´"},overXYears:{one:"è¶
è¿ 1 å¹´",other:"è¶
è¿ {{count}} å¹´"},almostXYears:{one:"å°è¿ 1 å¹´",other:"å°è¿ {{count}} å¹´"}},D=(N,I,T)=>{let D,M=P[N];if(D="string"==typeof M?M:1===I?M.one:M.other.replace("{{count}}",String(I)),T?.addSuffix)if(T.comparison&&T.comparison>0)return D+"å
";else return D+"å";return D};var M=T(71523);let R={full:"y'å¹´'M'æ'd'æ¥' EEEE",long:"y'å¹´'M'æ'd'æ¥'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},L={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},$={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},F={date:(0,M.k)({formats:R,defaultWidth:"full"}),time:(0,M.k)({formats:L,defaultWidth:"full"}),dateTime:(0,M.k)({formats:$,defaultWidth:"full"})};var B=T(44371),U=T(48459);function H(N,I,T){let[P,D]=(0,B.x)(T?.in,N,I);return+(0,U.k)(P,T)==+(0,U.k)(D,T)}function z(N,I,T){let P="eeee p";return H(N,I,T)?P:N.getTime()>I.getTime()?"'ä¸ä¸ª'"+P:"'ä¸ä¸ª'"+P}let W={lastWeek:z,yesterday:"'æ¨å¤©' p",today:"'ä»å¤©' p",tomorrow:"'æå¤©' p",nextWeek:z,other:"PP p"},q=(N,I,T,P)=>{let D=W[N];return"function"==typeof D?D(I,T,P):D};var G=T(38505);let K={narrow:["å","å
Œ
"],abbreviated:["å","å
Œ
"],wide:["å
Œ
å","å
Œ
"]},V={narrow:["1","2","3","4"],abbreviated:["第ä¸å£","第äºå£","第ä¸å£","第åå£"],wide:["第ä¸å£åº¦","第äºå£åº¦","第ä¸å£åº¦","第åå£åº¦"]},Y={narrow:["ä¸","äº","ä¸","å","äº","å
","ä¸","å
«","ä¹","å","åä¸","åäº"],abbreviated:["1æ","2æ","3æ","4æ","5æ","6æ","7æ","8æ","9æ","10æ","11æ","12æ"],wide:["䏿","äºæ","䏿","åæ","äºæ","å
æ","䏿","å
«æ","乿","åæ","å䏿","åäºæ"]},J={narrow:["æ¥","ä¸","äº","ä¸","å","äº","å
"],short:["æ¥","ä¸","äº","ä¸","å","äº","å
"],abbreviated:["卿¥","å¨ä¸","å¨äº","å¨ä¸","å¨å","å¨äº","å¨å
"],wide:["æææ¥","ææä¸","ææäº","ææä¸","ææå","ææäº","ææå
"]},Q={narrow:{am:"ä¸",pm:"ä¸",midnight:"忍",noon:"å",morning:"æ©",afternoon:"ä¸å",evening:"æ",night:"å¤"},abbreviated:{am:"ä¸å",pm:"ä¸å",midnight:"忍",noon:"ä¸å",morning:"æ©æ¨",afternoon:"ä¸å",evening:"æä¸",night:"å¤é´"},wide:{am:"ä¸å",pm:"ä¸å",midnight:"忍",noon:"ä¸å",morning:"æ©æ¨",afternoon:"ä¸å",evening:"æä¸",night:"å¤é´"}},Z={narrow:{am:"ä¸",pm:"ä¸",midnight:"忍",noon:"å",morning:"æ©",afternoon:"ä¸å",evening:"æ",night:"å¤"},abbreviated:{am:"ä¸å",pm:"ä¸å",midnight:"忍",noon:"ä¸å",morning:"æ©æ¨",afternoon:"ä¸å",evening:"æä¸",night:"å¤é´"},wide:{am:"ä¸å",pm:"ä¸å",midnight:"忍",noon:"ä¸å",morning:"æ©æ¨",afternoon:"ä¸å",evening:"æä¸",night:"å¤é´"}},X={ordinalNumber:(N,I)=>{let T=Number(N);switch(I?.unit){case"date":return T.toString()+"æ¥";case"hour":return T.toString()+"æ¶";case"minute":return T.toString()+"å";case"second":return T.toString()+"ç§";default:return"第 "+T.toString()}},era:(0,G.o)({values:K,defaultWidth:"wide"}),quarter:(0,G.o)({values:V,defaultWidth:"wide",argumentCallback:N=>N-1}),month:(0,G.o)({values:Y,defaultWidth:"wide"}),day:(0,G.o)({values:J,defaultWidth:"wide"}),dayPeriod:(0,G.o)({values:Q,defaultWidth:"wide",formattingValues:Z,defaultFormattingWidth:"wide"})};var ee=T(80663),et=T(85843);
643let er=/^(第\s*)?\d+(æ¥|æ¶|å|ç§)?/i,en=/\d+/i,ea={narrow:/^(å)/i,abbreviated:/^(å)/i,wide:/^(å
Œ
å|å
Œ
)/i},ei={any:[/^(å)/i,/^(å
Œ
)/i]},eo={narrow:/^[1234]/i,abbreviated:/^第[ä¸äºä¸å]å»/i,wide:/^第[ä¸äºä¸å]å»é/i},es={any:[/(1|ä¸)/i,/(2|äº)/i,/(3|ä¸)/i,/(4|å)/i]},el={narrow:/^(ä¸|äº|ä¸|å|äº|å
|ä¸|å
«|ä¹|å[äºä¸]?)/i,abbreviated:/^(ä¸|äº|ä¸|å|äº|å
|ä¸|å
«|ä¹|å[äºä¸]?|\d|1[0-2])æ/i,wide:/^(ä¸|äº|ä¸|å|äº|å
|ä¸|å
«|ä¹|å[äºä¸]?)æ/i},ec={narrow:[/^ä¸/i,/^äº/i,/^ä¸/i,/^å/i,/^äº/i,/^å
/i,/^ä¸/i,/^å
«/i,/^ä¹/i,/^å(?!(ä¸|äº))/i,/^åä¸/i,/^åäº/i],any:[/^(ä¸|1(?!\d))/i,/^(äº|2)/i,/^(ä¸|3)/i,/^(å|4)/i,/^(äº|5)/i,/^(å
|6)/i,/^(ä¸|7)/i,/^(å
«|8)/i,/^(ä¹|9)/i,/^(å(?!(ä¸|äº))|10)/i,/^(åä¸|11)/i,/^(åäº|12)/i]},eu={narrow:/^[ä¸äºä¸åäºå
æ¥]/i,short:/^[ä¸äºä¸åäºå
æ¥]/i,abbreviated:/^å¨[ä¸äºä¸åäºå
æ¥]/i,wide:/^ææ[ä¸äºä¸åäºå
æ¥]/i},ed={any:[/æ¥/i,/ä¸/i,/äº/i,/ä¸/i,/å/i,/äº/i,/å
/i]},ef={any:/^(ä¸å?|ä¸å?|åå¤|[䏿£]å|æ©ä¸?|ä¸å|æä¸?|忍|)/i},eh={any:{am:/^ä¸å?/i,pm:/^ä¸å?/i,midnight:/^åå¤/i,noon:/^[䏿£]å/i,morning:/^æ©ä¸/i,afternoon:/^ä¸å/i,evening:/^æä¸?/i,night:/^忍/i}},ep={code:"zh-CN",formatDistance:D,formatLong:F,formatRelative:q,localize:X,match:{ordinalNumber:(0,et.K)({matchPattern:er,parsePattern:en,valueCallback:N=>parseInt(N,10)}),era:(0,ee.A)({matchPatterns:ea,defaultMatchWidth:"wide",parsePatterns:ei,defaultParseWidth:"any"}),quarter:(0,ee.A)({matchPatterns:eo,defaultMatchWidth:"wide",parsePatterns:es,defaultParseWidth:"any",valueCallback:N=>N+1}),month:(0,ee.A)({matchPatterns:el,defaultMatchWidth:"wide",parsePatterns:ec,defaultParseWidth:"any"}),day:(0,ee.A)({matchPatterns:eu,defaultMatchWidth:"wide",parsePatterns:ed,defaultParseWidth:"any"}),dayPeriod:(0,ee.A)({matchPatterns:ef,defaultMatchWidth:"any",parsePatterns:eh,defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}}},40658:(N,I,T)=>{"use strict";var P;P={value:!0},Object.defineProperty(I,"cookies",{enumerable:!0,get:function(){return W}});let D=T(63234),M=T(18769),R=T(57049),L=T(20368),$=T(18736),F=T(50473),B=T(61303),U=T(49961),H=T(19908),z=T(29877);function W(){let N="cookies",I=R.workAsyncStorage.getStore(),T=L.workUnitAsyncStorage.getStore();if(I){if(T&&!(0,H.isRequestApiAllowedInCurrentPhase)(T))throw Object.defineProperty(Error(`Route ${I.route} used \`cookies()\` inside \`after()\` while rendering. This is not supported. If you need this data inside an \`after()\` callback, use \`cookies()\` outside of the callback. See more info here: https://nextjs.org/docs/app/api-reference/functions/after`),"__NEXT_ERROR_CODE",{value:"E1381",enumerable:!1,configurable:!0});if(I.forceStatic)return V(q());if(I.dynamicShouldError)throw Object.defineProperty(new F.StaticGenBailoutError(`Route ${I.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`cookies()\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E849",enumerable:!1,configurable:!0});if(T)switch(T.type){case"cache":let P=Object.defineProperty(Error(`Route ${I.route} used \`cookies()\` inside "use cache". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \`cookies()\` outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E831",enumerable:!1,configurable:!0});throw Error.captureStackTrace(P,W),(0,B.applyOwnerStack)(P),I.invalidDynamicUsageError??=P,P;case"unstable-cache":throw Object.defineProperty(Error(`Route ${I.route} used \`cookies()\` inside a function cached with \`unstable_cache()\`. Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \`cookies()\` outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`),"__NEXT_ERROR_CODE",{value:"E846",enumerable:!1,
643configurable:!0});case"generate-static-params":throw Object.defineProperty(Error(`Route ${I.route} used \`cookies()\` inside \`generateStaticParams\`. This is not supported because \`generateStaticParams\` runs at build time without an HTTP request. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`),"__NEXT_ERROR_CODE",{value:"E1123",enumerable:!1,configurable:!0});case"prerender":return K(I,T);case"prerender-client":case"validation-client":let M="`cookies`";throw Object.defineProperty(new z.InvariantError(`${M} must not be used within a Client Component. Next.js should be preventing ${M} from being included in Client Components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1037",enumerable:!1,configurable:!0});case"prerender-ppr":return(0,$.postponeWithTracking)(I.route,N,T.dynamicTracking);case"prerender-legacy":return(0,$.throwToInterruptStaticGeneration)(N,I,T);case"prerender-runtime":{let{stagedRendering:N}=T;if(N)return N.delayUntilStage(B.RENDER_STAGES_BY_DATA_KIND.sessionData,"cookies",T.cookies);return V(T.cookies)}case"private-cache":return V(T.cookies);case"request":let R;if((0,$.trackDynamicDataInDynamicRender)(T),R=(0,D.areCookiesMutableInCurrentPhase)(T)?T.userspaceMutableCookies:T.cookies,!T.asyncApiPromises)return V(R);if(R===T.mutableCookies)return T.asyncApiPromises.mutableCookies;return T.asyncApiPromises.cookies}}(0,L.throwForMissingRequestStore)(N)}function q(){return D.RequestCookiesAdapter.seal(new M.RequestCookies(new Headers({})))}let G=new WeakMap;function K(N,I){let T=G.get(I);if(T)return T;let P=(0,B.makeRuntimeHangingPromise)(I.renderSignal,N.route,"`cookies()`",I);return G.set(I,P),P}function V(N){let I=G.get(N);if(I)return I;let T=Promise.resolve(N);return G.set(N,T),T}function Y(N,I){let T=N?`Route "${N}" `:"This route ";return Object.defineProperty(Error(`${T}used ${I}. \`cookies()\` returns a Promise and must be unwrapped with \`await\` or \`React.use()\` before accessing its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`),"__NEXT_ERROR_CODE",{value:"E830",enumerable:!1,configurable:!0})}(0,U.createDedupedByCallsiteServerErrorLoggerDev)(Y)},40908:(N,I,T)=>{"use strict";T.d(I,{o:()=>D});let P={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},D=(N,I,T,D)=>P[N]},40939:(N,I,T)=>{var P="/",D=T(99742),M=T(82909).Buffer,R={514:function(N){N.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},638:function(N){"function"==typeof Object.create?N.exports=function(N,I){I&&(N.super_=I,N.prototype=Object.create(I.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}))}:N.exports=function(N,I){if(I){N.super_=I;var T=function(){};T.prototype=I.prototype,N.prototype=new T,N.prototype.constructor=N}}},329:function(N){"use strict";let I={};function T(N,T,P){function D(N,I,P){return"string"==typeof T?T:T(N,I,P)}P||(P=Error);class M extends P{constructor(N,I,T){super(D(N,I,T))}}M.prototype.name=P.name,M.prototype.code=N,I[N]=M}function P(N,I){if(!Array.isArray(N))return`of ${I} ${String(N)}`;{let T=N.length;return(N=N.map(N=>String(N)),T>2)?`one of ${I} ${N.slice(0,T-1).join(", ")}, or `+N[T-1]:2===T?`one of ${I} ${N[0]} or ${N[1]}`:`of ${I} ${N[0]}`}}function D(N,I,T){return N.substr(!T||T<0?0:+T,I.length)===I}function M(N,I,T){return(void 0===T||T>N.length)&&(T=N.length),N.substring(T-I.length,T)===I}function R(N,I,T){return"number"!=typeof T&&(T=0),!(T+I.length>N.length)&&-1!==N.indexOf(I,T)}T("ERR_INVALID_OPT_VALUE",function(N,I){return'The value "'+I+'" is invali
643d for option "'+N+'"'},TypeError),T("ERR_INVALID_ARG_TYPE",function(N,I,T){let L,$;if("string"==typeof I&&D(I,"not ")?(L="must not be",I=I.replace(/^not /,"")):L="must be",M(N," argument"))$=`The ${N} ${L} ${P(I,"type")}`;else{let T=R(N,".")?"property":"argument";$=`The "${N}" ${T} ${L} ${P(I,"type")}`}return $+`. Received type ${typeof T}`},TypeError),T("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),T("ERR_METHOD_NOT_IMPLEMENTED",function(N){return"The "+N+" method is not implemented"}),T("ERR_STREAM_PREMATURE_CLOSE","Premature close"),T("ERR_STREAM_DESTROYED",function(N){return"Cannot call "+N+" after a stream was destroyed"}),T("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),T("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),T("ERR_STREAM_WRITE_AFTER_END","write after end"),T("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),T("ERR_UNKNOWN_ENCODING",function(N){return"Unknown encoding: "+N},TypeError),T("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),N.exports.F=I},686:function(N,I,T){"use strict";var P=Object.keys||function(N){var I=[];for(var T in N)I.push(T);return I};N.exports=B;var M=T(276),R=T(732);T(638)(B,M);for(var L=P(R.prototype),$=0;$<L.length;$++){var F=L[$];B.prototype[F]||(B.prototype[F]=R.prototype[F])}function B(N){if(!(this instanceof B))return new B(N);M.call(this,N),R.call(this,N),this.allowHalfOpen=!0,N&&(!1===N.readable&&(this.readable=!1),!1===N.writable&&(this.writable=!1),!1===N.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",U)))}function U(){this._writableState.ended||D.nextTick(H,this)}function H(N){N.end()}Object.defineProperty(B.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(B.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(B.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(B.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(N){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=N,this._writableState.destroyed=N)}})},512:function(N,I,T){"use strict";N.exports=D;var P=T(586);function D(N){if(!(this instanceof D))return new D(N);P.call(this,N)}T(638)(D,P),D.prototype._transform=function(N,I,T){T(null,N)}},276:function(N,I,P){"use strict";N.exports=ei,ei.ReadableState=ea,P(434).EventEmitter;var M,R,L,$,F,B=function(N,I){return N.listeners(I).length},U=P(120),H=P(181).Buffer,z=T.g.Uint8Array||function(){};function W(N){return H.from(N)}function q(N){return H.isBuffer(N)||N instanceof z}var G=P(23);R=G&&G.debuglog?G.debuglog("stream"):function(){};var K=P(137),V=P(528),Y=P(771).getHighWaterMark,J=P(329).F,Q=J.ERR_INVALID_ARG_TYPE,Z=J.ERR_STREAM_PUSH_AFTER_EOF,X=J.ERR_METHOD_NOT_IMPLEMENTED,ee=J.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;P(638)(ei,U);var et=V.errorOrDestroy,er=["error","close","destroy","pause","resume"];function en(N,I,T){if("function"==typeof N.prependListener)return N.prependListener(I,T);N._events&&N._events[I]?Array.isArray(N._events[I])?N._events[I].unshift(T):N._events[I]=[T,N._events[I]]:N.on(I,T)}function ea(N,I,T){M=M||P(686),N=N||{},"boolean"!=typeof T&&(T=I instanceof M),this.objectMode=!!N.objectMode,T&&(this.objectMode=this.objectMode||!!N.readableObjectMode),this.highWaterMark=Y(this,N,"readableHighWaterMark",T),this.buffer=new K,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==N.emitClose,this.autoDestroy=!!N.autoDestroy,this.destroyed=!1,this.defaultEncoding=N.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,N.encoding&&(L||(L=P(319).I),this.decoder=new L(N.encoding),this.encoding=N.encoding)}function ei(N){if(M=M||P(686),!(this instanceof ei))return new ei(N);var I=this instanceof M;this._readableState=new ea(N,this,I),this.readable=!0,N&&("function"==typeof N.read&&(this._read=N.read),"function"==typeof N.destroy&&(this._destroy=N.destroy)),U.call(this)}function eo(N,I,T,P,D){R("readableAddChunk",I);var M,L=N._readableState;if(null===I)L.reading=!1,ef(N,L);else if(D||(M=el(L,I)),M)et(N,M);else if(L.objectMode||I&&I.length>0)if("string"==typeof I||L.objectMode||Object.getPrototypeOf(I)===H.prototype||(I=W(I)),P)L.endEmitted?et(N,new ee):es(N,L,I,!0);else if(L.ended)et(N,new Z);else{if(L.destroyed)return!1;L.reading=!1,L.decoder&&!T?(I=L.decoder.write(I),L.objectMode||0!==I.length?es(N,L,I,!1):em(N,L)):es(N,L,I,!1)}else P||(L.reading=!1,em(N,L));return!L.ended&&(L.length<L.highWaterMark||0===L.length)}
vendor: 4,900 bytes, line 643
643function es(N,I,T,P){I.flowing&&0===I.length&&!I.sync?(I.awaitDrain=0,N.emit("data",T)):(I.length+=I.objectMode?1:T.length,P?I.buffer.unshift(T):I.buffer.push(T),I.needReadable&&eh(N)),em(N,I)}function el(N,I){var T;return q(I)||"string"==typeof I||void 0===I||N.objectMode||(T=new Q("chunk",["string","Buffer","Uint8Array"],I)),T}Object.defineProperty(ei.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(N){this._readableState&&(this._readableState.destroyed=N)}}),ei.prototype.destroy=V.destroy,ei.prototype._undestroy=V.undestroy,ei.prototype._destroy=function(N,I){I(N)},ei.prototype.push=function(N,I){var T,P=this._readableState;return P.objectMode?T=!0:"string"==typeof N&&((I=I||P.defaultEncoding)!==P.encoding&&(N=H.from(N,I),I=""),T=!0),eo(this,N,I,!1,T)},ei.prototype.unshift=function(N){return eo(this,N,null,!0,!1)},ei.prototype.isPaused=function(){return!1===this._readableState.flowing},ei.prototype.setEncoding=function(N){L||(L=P(319).I);var I=new L(N);this._readableState.decoder=I,this._readableState.encoding=this._readableState.decoder.encoding;for(var T=this._readableState.buffer.head,D="";null!==T;)D+=I.write(T.data),T=T.next;return this._readableState.buffer.clear(),""!==D&&this._readableState.buffer.push(D),this._readableState.length=D.length,this};var ec=0x40000000;function eu(N){return N>=ec?N=ec:(N--,N|=N>>>1,N|=N>>>2,N|=N>>>4,N|=N>>>8,N|=N>>>16,N++),N}function ed(N,I){if(N<=0||0===I.length&&I.ended)return 0;if(I.objectMode)return 1;if(N!=N)if(I.flowing&&I.length)return I.buffer.head.data.length;else return I.length;return(N>I.highWaterMark&&(I.highWaterMark=eu(N)),N<=I.length)?N:I.ended?I.length:(I.needReadable=!0,0)}function ef(N,I){if(R("onEofChunk"),!I.ended){if(I.decoder){var T=I.decoder.end();T&&T.length&&(I.buffer.push(T),I.length+=I.objectMode?1:T.length)}I.ended=!0,I.sync?eh(N):(I.needReadable=!1,I.emittedReadable||(I.emittedReadable=!0,ep(N)))}}function eh(N){var I=N._readableState;R("emitReadable",I.needReadable,I.emittedReadable),I.needReadable=!1,I.emittedReadable||(R("emitReadable",I.flowing),I.emittedReadable=!0,D.nextTick(ep,N))}function ep(N){var I=N._readableState;R("emitReadable_",I.destroyed,I.length,I.ended),!I.destroyed&&(I.length||I.ended)&&(N.emit("readable"),I.emittedReadable=!1),I.needReadable=!I.flowing&&!I.ended&&I.length<=I.highWaterMark,eA(N)}function em(N,I){I.readingMore||(I.readingMore=!0,D.nextTick(eg,N,I))}function eg(N,I){for(;!I.reading&&!I.ended&&(I.length<I.highWaterMark||I.flowing&&0===I.length);){var T=I.length;if(R("maybeReadMore read 0"),N.read(0),T===I.length)break}I.readingMore=!1}function ey(N){return function(){var I=N._readableState;R("pipeOnDrain",I.awaitDrain),I.awaitDrain&&I.awaitDrain--,0===I.awaitDrain&&B(N,"data")&&(I.flowing=!0,eA(N))}}function eb(N){var I=N._readableState;I.readableListening=N.listenerCount("readable")>0,I.resumeScheduled&&!I.paused?I.flowing=!0:N.listenerCount("data")>0&&N.resume()}function ev(N){R("readable nexttick read 0"),N.read(0)}function ew(N,I){I.resumeScheduled||(I.resumeScheduled=!0,D.nextTick(ex,N,I))}function ex(N,I){R("resume",I.reading),I.reading||N.read(0),I.resumeScheduled=!1,N.emit("resume"),eA(N),I.flowing&&!I.reading&&N.read(0)}function eA(N){var I=N._readableState;for(R("flow",I.flowing);I.flowing&&null!==N.read(););}function eE(N,I){var T;return 0===I.length?null:(I.objectMode?T=I.buffer.shift():!N||N>=I.length?(T=I.decoder?I.buffer.join(""):1===I.buffer.length?I.buffer.first():I.buffer.concat(I.length),I.buffer.clear()):T=I.buffer.consume(N,I.decoder),T)}function eS(N){var I=N._readableState;R("endReadable",I.endEmitted),I.endEmitted||(I.ended=!0,D.nextTick(e_,I,N))}function e_(N,I){if(R("endReadableNT",N.endEmitted,N.length),!N.endEmitted&&0===N.length&&(N.endEmitted=!0,I.readable=!1,I.emit("end"),N.autoDestroy)){var T=I._writableState;(!T||T.autoDestroy&&T.finished)&&I.destroy()}}function ek(N,I){for(var T=0,P=N.length;T<P;T++)if(N[T]===I)return T;return -1}ei.prototype.read=function(N){R("read",N),N=parseInt(N,10);var I,T=this._readableState,P=N;if(0!==N&&(T.emittedReadable=!1),0===N&&T.needReadable&&((0!==T.highWaterMark?T.length>=T.highWaterMark:T.length>0)||T.ended))return R("read: emitReadable",T.length,T.ended),0===T.length&&T.ended?eS(this):eh(this),null;if(0===(N=ed(N,T))&&T.ended)return 0===T.length&&eS(this),null;var D=T.needReadable;return R("need readable",D),(0===T.length||T.length-N<T.highWaterMark)&&R("length less than watermark",D=!0),T.ended||T.reading?R("reading or ended",D=!1):D&&(R("do read"),T.reading=!0,T.sync=!0,0===T.length&&(T.needReadable=!0),this._read(T.highWaterMark),T.sync=!1,T.reading||(N=ed(P,T))),null===(I=N>0?eE(N,T):null)?(T.needReadable=T.length<=T.highWaterMark,N=0):(T.length-=N,T.awaitDrain=0),0===T.length&&(T.ended||(T.needReadable=!0),P!==N&&T.ended&&eS(this)),null!==I&&this.emit
vendor: 4,589 bytes, line 643
643("data",I),I},ei.prototype._read=function(N){et(this,new X("_read()"))},ei.prototype.pipe=function(N,I){var T=this,P=this._readableState;switch(P.pipesCount){case 0:P.pipes=N;break;case 1:P.pipes=[P.pipes,N];break;default:P.pipes.push(N)}P.pipesCount+=1,R("pipe count=%d opts=%j",P.pipesCount,I);var M=I&&!1===I.end||N===D.stdout||N===D.stderr?K:$;function L(N,I){R("onunpipe"),N===T&&I&&!1===I.hasUnpiped&&(I.hasUnpiped=!0,H())}function $(){R("onend"),N.end()}P.endEmitted?D.nextTick(M):T.once("end",M),N.on("unpipe",L);var F=ey(T);N.on("drain",F);var U=!1;function H(){R("cleanup"),N.removeListener("close",q),N.removeListener("finish",G),N.removeListener("drain",F),N.removeListener("error",W),N.removeListener("unpipe",L),T.removeListener("end",$),T.removeListener("end",K),T.removeListener("data",z),U=!0,P.awaitDrain&&(!N._writableState||N._writableState.needDrain)&&F()}function z(I){R("ondata");var D=N.write(I);R("dest.write",D),!1===D&&((1===P.pipesCount&&P.pipes===N||P.pipesCount>1&&-1!==ek(P.pipes,N))&&!U&&(R("false write response, pause",P.awaitDrain),P.awaitDrain++),T.pause())}function W(I){R("onerror",I),K(),N.removeListener("error",W),0===B(N,"error")&&et(N,I)}function q(){N.removeListener("finish",G),K()}function G(){R("onfinish"),N.removeListener("close",q),K()}function K(){R("unpipe"),T.unpipe(N)}return T.on("data",z),en(N,"error",W),N.once("close",q),N.once("finish",G),N.emit("pipe",T),P.flowing||(R("pipe resume"),T.resume()),N},ei.prototype.unpipe=function(N){var I=this._readableState,T={hasUnpiped:!1};if(0===I.pipesCount)return this;if(1===I.pipesCount)return N&&N!==I.pipes||(N||(N=I.pipes),I.pipes=null,I.pipesCount=0,I.flowing=!1,N&&N.emit("unpipe",this,T)),this;if(!N){var P=I.pipes,D=I.pipesCount;I.pipes=null,I.pipesCount=0,I.flowing=!1;for(var M=0;M<D;M++)P[M].emit("unpipe",this,{hasUnpiped:!1});return this}var R=ek(I.pipes,N);return -1===R||(I.pipes.splice(R,1),I.pipesCount-=1,1===I.pipesCount&&(I.pipes=I.pipes[0]),N.emit("unpipe",this,T)),this},ei.prototype.on=function(N,I){var T=U.prototype.on.call(this,N,I),P=this._readableState;return"data"===N?(P.readableListening=this.listenerCount("readable")>0,!1!==P.flowing&&this.resume()):"readable"!==N||P.endEmitted||P.readableListening||(P.readableListening=P.needReadable=!0,P.flowing=!1,P.emittedReadable=!1,R("on readable",P.length,P.reading),P.length?eh(this):P.reading||D.nextTick(ev,this)),T},ei.prototype.addListener=ei.prototype.on,ei.prototype.removeListener=function(N,I){var T=U.prototype.removeListener.call(this,N,I);return"readable"===N&&D.nextTick(eb,this),T},ei.prototype.removeAllListeners=function(N){var I=U.prototype.removeAllListeners.apply(this,arguments);return("readable"===N||void 0===N)&&D.nextTick(eb,this),I},ei.prototype.resume=function(){var N=this._readableState;return N.flowing||(R("resume"),N.flowing=!N.readableListening,ew(this,N)),N.paused=!1,this},ei.prototype.pause=function(){return R("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(R("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},ei.prototype.wrap=function(N){var I=this,T=this._readableState,P=!1;for(var D in N.on("end",function(){if(R("wrapped end"),T.decoder&&!T.ended){var N=T.decoder.end();N&&N.length&&I.push(N)}I.push(null)}),N.on("data",function(D){R("wrapped data"),T.decoder&&(D=T.decoder.write(D)),T.objectMode&&null==D||(T.objectMode||D&&D.length)&&(I.push(D)||(P=!0,N.pause()))}),N)void 0===this[D]&&"function"==typeof N[D]&&(this[D]=function(I){return function(){return N[I].apply(N,arguments)}}(D));for(var M=0;M<er.length;M++)N.on(er[M],this.emit.bind(this,er[M]));return this._read=function(I){R("wrapped _read",I),P&&(P=!1,N.resume())},this},"function"==typeof Symbol&&(ei.prototype[Symbol.asyncIterator]=function(){return void 0===$&&($=P(531)),$(this)}),Object.defineProperty(ei.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(ei.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(ei.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(N){this._readableState&&(this._readableState.flowing=N)}}),ei._fromList=eE,Object.defineProperty(ei.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(ei.from=function(N,I){return void 0===F&&(F=P(812)),F(ei,N,I)})},586:function(N,I,T){"use strict";N.exports=B;
vendor: 4,189 bytes, line 643
643var P=T(329).F,D=P.ERR_METHOD_NOT_IMPLEMENTED,M=P.ERR_MULTIPLE_CALLBACK,R=P.ERR_TRANSFORM_ALREADY_TRANSFORMING,L=P.ERR_TRANSFORM_WITH_LENGTH_0,$=T(686);function F(N,I){var T=this._transformState;T.transforming=!1;var P=T.writecb;if(null===P)return this.emit("error",new M);T.writechunk=null,T.writecb=null,null!=I&&this.push(I),P(N);var D=this._readableState;D.reading=!1,(D.needReadable||D.length<D.highWaterMark)&&this._read(D.highWaterMark)}function B(N){if(!(this instanceof B))return new B(N);$.call(this,N),this._transformState={afterTransform:F.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,N&&("function"==typeof N.transform&&(this._transform=N.transform),"function"==typeof N.flush&&(this._flush=N.flush)),this.on("prefinish",U)}function U(){var N=this;"function"!=typeof this._flush||this._readableState.destroyed?H(this,null,null):this._flush(function(I,T){H(N,I,T)})}function H(N,I,T){if(I)return N.emit("error",I);if(null!=T&&N.push(T),N._writableState.length)throw new L;if(N._transformState.transforming)throw new R;return N.push(null)}T(638)(B,$),B.prototype.push=function(N,I){return this._transformState.needTransform=!1,$.prototype.push.call(this,N,I)},B.prototype._transform=function(N,I,T){T(new D("_transform()"))},B.prototype._write=function(N,I,T){var P=this._transformState;if(P.writecb=T,P.writechunk=N,P.writeencoding=I,!P.transforming){var D=this._readableState;(P.needTransform||D.needReadable||D.length<D.highWaterMark)&&this._read(D.highWaterMark)}},B.prototype._read=function(N){var I=this._transformState;null===I.writechunk||I.transforming?I.needTransform=!0:(I.transforming=!0,this._transform(I.writechunk,I.writeencoding,I.afterTransform))},B.prototype._destroy=function(N,I){$.prototype._destroy.call(this,N,function(N){I(N)})}},732:function(N,I,P){"use strict";function M(N){var I=this;this.next=null,this.entry=null,this.finish=function(){ex(I,N)}}N.exports=ea,ea.WritableState=en;var R,L,$={deprecate:P(774)},F=P(120),B=P(181).Buffer,U=T.g.Uint8Array||function(){};function H(N){return B.from(N)}function z(N){return B.isBuffer(N)||N instanceof U}var W=P(528),q=P(771).getHighWaterMark,G=P(329).F,K=G.ERR_INVALID_ARG_TYPE,V=G.ERR_METHOD_NOT_IMPLEMENTED,Y=G.ERR_MULTIPLE_CALLBACK,J=G.ERR_STREAM_CANNOT_PIPE,Q=G.ERR_STREAM_DESTROYED,Z=G.ERR_STREAM_NULL_VALUES,X=G.ERR_STREAM_WRITE_AFTER_END,ee=G.ERR_UNKNOWN_ENCODING,et=W.errorOrDestroy;function er(){}function en(N,I,T){R=R||P(686),N=N||{},"boolean"!=typeof T&&(T=I instanceof R),this.objectMode=!!N.objectMode,T&&(this.objectMode=this.objectMode||!!N.writableObjectMode),this.highWaterMark=q(this,N,"writableHighWaterMark",T),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var D=!1===N.decodeStrings;this.decodeStrings=!D,this.defaultEncoding=N.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(N){ef(I,N)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==N.emitClose,this.autoDestroy=!!N.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new M(this)}P(638)(ea,F),en.prototype.getBuffer=function(){for(var N=this.bufferedRequest,I=[];N;)I.push(N),N=N.next;return I};try{Object.defineProperty(en.prototype,"buffer",{get:$.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(N){}function ea(N){var I=this instanceof(R=R||P(686));if(!I&&!L.call(ea,this))return new ea(N);this._writableState=new en(N,this,I),this.writable=!0,N&&("function"==typeof N.write&&(this._write=N.write),"function"==typeof N.writev&&(this._writev=N.writev),"function"==typeof N.destroy&&(this._destroy=N.destroy),"function"==typeof N.final&&(this._final=N.final)),F.call(this)}function ei(N,I){var T=new X;et(N,T),D.nextTick(I,T)}function eo(N,I,T,P){var M;return null===T?M=new Z:"string"==typeof T||I.objectMode||(M=new K("chunk",["string","Buffer"],T)),!M||
vendor: 5,442 bytes, line 643
643(et(N,M),D.nextTick(P,M),!1)}function es(N,I,T){return N.objectMode||!1===N.decodeStrings||"string"!=typeof I||(I=B.from(I,T)),I}function el(N,I,T,P,D,M){if(!T){var R=es(I,P,D);P!==R&&(T=!0,D="buffer",P=R)}var L=I.objectMode?1:P.length;I.length+=L;var $=I.length<I.highWaterMark;if($||(I.needDrain=!0),I.writing||I.corked){var F=I.lastBufferedRequest;I.lastBufferedRequest={chunk:P,encoding:D,isBuf:T,callback:M,next:null},F?F.next=I.lastBufferedRequest:I.bufferedRequest=I.lastBufferedRequest,I.bufferedRequestCount+=1}else ec(N,I,!1,L,P,D,M);return $}function ec(N,I,T,P,D,M,R){I.writelen=P,I.writecb=R,I.writing=!0,I.sync=!0,I.destroyed?I.onwrite(new Q("write")):T?N._writev(D,I.onwrite):N._write(D,M,I.onwrite),I.sync=!1}function eu(N,I,T,P,M){--I.pendingcb,T?(D.nextTick(M,P),D.nextTick(ev,N,I),N._writableState.errorEmitted=!0,et(N,P)):(M(P),N._writableState.errorEmitted=!0,et(N,P),ev(N,I))}function ed(N){N.writing=!1,N.writecb=null,N.length-=N.writelen,N.writelen=0}function ef(N,I){var T=N._writableState,P=T.sync,M=T.writecb;if("function"!=typeof M)throw new Y;if(ed(T),I)eu(N,T,P,I,M);else{var R=eg(T)||N.destroyed;R||T.corked||T.bufferProcessing||!T.bufferedRequest||em(N,T),P?D.nextTick(eh,N,T,R,M):eh(N,T,R,M)}}function eh(N,I,T,P){T||ep(N,I),I.pendingcb--,P(),ev(N,I)}function ep(N,I){0===I.length&&I.needDrain&&(I.needDrain=!1,N.emit("drain"))}function em(N,I){I.bufferProcessing=!0;var T=I.bufferedRequest;if(N._writev&&T&&T.next){var P=Array(I.bufferedRequestCount),D=I.corkedRequestsFree;D.entry=T;for(var R=0,L=!0;T;)P[R]=T,T.isBuf||(L=!1),T=T.next,R+=1;P.allBuffers=L,ec(N,I,!0,I.length,P,"",D.finish),I.pendingcb++,I.lastBufferedRequest=null,D.next?(I.corkedRequestsFree=D.next,D.next=null):I.corkedRequestsFree=new M(I),I.bufferedRequestCount=0}else{for(;T;){var $=T.chunk,F=T.encoding,B=T.callback,U=I.objectMode?1:$.length;if(ec(N,I,!1,U,$,F,B),T=T.next,I.bufferedRequestCount--,I.writing)break}null===T&&(I.lastBufferedRequest=null)}I.bufferedRequest=T,I.bufferProcessing=!1}function eg(N){return N.ending&&0===N.length&&null===N.bufferedRequest&&!N.finished&&!N.writing}function ey(N,I){N._final(function(T){I.pendingcb--,T&&et(N,T),I.prefinished=!0,N.emit("prefinish"),ev(N,I)})}function eb(N,I){I.prefinished||I.finalCalled||("function"!=typeof N._final||I.destroyed?(I.prefinished=!0,N.emit("prefinish")):(I.pendingcb++,I.finalCalled=!0,D.nextTick(ey,N,I)))}function ev(N,I){var T=eg(I);if(T&&(eb(N,I),0===I.pendingcb)&&(I.finished=!0,N.emit("finish"),I.autoDestroy)){var P=N._readableState;(!P||P.autoDestroy&&P.endEmitted)&&N.destroy()}return T}function ew(N,I,T){I.ending=!0,ev(N,I),T&&(I.finished?D.nextTick(T):N.once("finish",T)),I.ended=!0,N.writable=!1}function ex(N,I,T){var P=N.entry;for(N.entry=null;P;){var D=P.callback;I.pendingcb--,D(T),P=P.next}I.corkedRequestsFree.next=N}"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(L=Function.prototype[Symbol.hasInstance],Object.defineProperty(ea,Symbol.hasInstance,{value:function(N){return!!L.call(this,N)||this===ea&&N&&N._writableState instanceof en}})):L=function(N){return N instanceof this},ea.prototype.pipe=function(){et(this,new J)},ea.prototype.write=function(N,I,T){var P=this._writableState,D=!1,M=!P.objectMode&&z(N);return M&&!B.isBuffer(N)&&(N=H(N)),"function"==typeof I&&(T=I,I=null),M?I="buffer":I||(I=P.defaultEncoding),"function"!=typeof T&&(T=er),P.ending?ei(this,T):(M||eo(this,P,N,T))&&(P.pendingcb++,D=el(this,P,M,N,I,T)),D},ea.prototype.cork=function(){this._writableState.corked++},ea.prototype.uncork=function(){var N=this._writableState;N.corked&&(N.corked--,N.writing||N.corked||N.bufferProcessing||!N.bufferedRequest||em(this,N))},ea.prototype.setDefaultEncoding=function(N){if("string"==typeof N&&(N=N.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((N+"").toLowerCase())>-1))throw new ee(N);return this._writableState.defaultEncoding=N,this},Object.defineProperty(ea.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(ea.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),ea.prototype._write=function(N,I,T){T(new V("_write()"))},ea.prototype._writev=null,ea.prototype.end=function(N,I,T){var P=this._writableState;return"function"==typeof N?(T=N,N=null,I=null):"function"==typeof I&&(T=I,I=null),null!=N&&this.write(N,I),P.corked&&(P.corked=1,this.uncork()),P.ending||ew(this,P,T),this},Object.defineProperty(ea.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(ea.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(N){this._writableState&&(this._writableState.destroyed=N)}}),ea.prototype.destroy=W.destroy,ea.prototype._undestroy=W.undestroy,ea.prototype._destroy=function(N,I){I(N)}},531:function(N,I,T){"use strict";function P(N,I,T){return I in N?Object.defineProperty(N,I,{value:T,enumerable:!0,configurable:!0,writable:!0}):N[I]=T,N}var M,R=T(134),L=Symbol("lastResolve"),$=Symbol("lastReject"),F=Symbol("error"),B=Symbol("ended"),U=Symbol("lastPromise"),H=Symbol("handlePromise"),z=Symbol("stream");function W(N,I){return{value:N,done:I}}function q(N){var I=N[L];if(null!==I){var T=N[z].read();
vendor: 5,856 bytes, line 643
643null!==T&&(N[U]=null,N[L]=null,N[$]=null,I(W(T,!1)))}}function G(N){D.nextTick(q,N)}function K(N,I){return function(T,P){N.then(function(){I[B]?T(W(void 0,!0)):I[H](T,P)},P)}}var V=Object.getPrototypeOf(function(){}),Y=Object.setPrototypeOf((P(M={get stream(){return this[z]},next:function(){var N,I=this,T=this[F];if(null!==T)return Promise.reject(T);if(this[B])return Promise.resolve(W(void 0,!0));if(this[z].destroyed)return new Promise(function(N,T){D.nextTick(function(){I[F]?T(I[F]):N(W(void 0,!0))})});var P=this[U];if(P)N=new Promise(K(P,this));else{var M=this[z].read();if(null!==M)return Promise.resolve(W(M,!1));N=new Promise(this[H])}return this[U]=N,N}},Symbol.asyncIterator,function(){return this}),P(M,"return",function(){var N=this;return new Promise(function(I,T){N[z].destroy(null,function(N){N?T(N):I(W(void 0,!0))})})}),M),V);N.exports=function(N){var I,T=Object.create(Y,(P(I={},z,{value:N,writable:!0}),P(I,L,{value:null,writable:!0}),P(I,$,{value:null,writable:!0}),P(I,F,{value:null,writable:!0}),P(I,B,{value:N._readableState.endEmitted,writable:!0}),P(I,H,{value:function(N,I){var P=T[z].read();P?(T[U]=null,T[L]=null,T[$]=null,N(W(P,!1))):(T[L]=N,T[$]=I)},writable:!0}),I));return T[U]=null,R(N,function(N){if(N&&"ERR_STREAM_PREMATURE_CLOSE"!==N.code){var I=T[$];null!==I&&(T[U]=null,T[L]=null,T[$]=null,I(N)),T[F]=N;return}var P=T[L];null!==P&&(T[U]=null,T[L]=null,T[$]=null,P(W(void 0,!0))),T[B]=!0}),N.on("readable",G.bind(null,T)),T}},137:function(N,I,T){"use strict";function P(N,I){var T=Object.keys(N);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(N);I&&(P=P.filter(function(I){return Object.getOwnPropertyDescriptor(N,I).enumerable})),T.push.apply(T,P)}return T}function D(N){for(var I=1;I<arguments.length;I++){var T=null!=arguments[I]?arguments[I]:{};I%2?P(Object(T),!0).forEach(function(I){M(N,I,T[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(T)):P(Object(T)).forEach(function(I){Object.defineProperty(N,I,Object.getOwnPropertyDescriptor(T,I))})}return N}function M(N,I,T){return I in N?Object.defineProperty(N,I,{value:T,enumerable:!0,configurable:!0,writable:!0}):N[I]=T,N}function R(N,I){if(!(N instanceof I))throw TypeError("Cannot call a class as a function")}function L(N,I){for(var T=0;T<I.length;T++){var P=I[T];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(N,P.key,P)}}function $(N,I,T){return I&&L(N.prototype,I),T&&L(N,T),N}var F=T(181).Buffer,B=T(23).inspect,U=B&&B.custom||"inspect";function H(N,I,T){F.prototype.copy.call(N,I,T)}N.exports=function(){function N(){R(this,N),this.head=null,this.tail=null,this.length=0}return $(N,[{key:"push",value:function(N){var I={data:N,next:null};this.length>0?this.tail.next=I:this.head=I,this.tail=I,++this.length}},{key:"unshift",value:function(N){var I={data:N,next:this.head};0===this.length&&(this.tail=I),this.head=I,++this.length}},{key:"shift",value:function(){if(0!==this.length){var N=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,N}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(N){if(0===this.length)return"";for(var I=this.head,T=""+I.data;I=I.next;)T+=N+I.data;return T}},{key:"concat",value:function(N){if(0===this.length)return F.alloc(0);for(var I=F.allocUnsafe(N>>>0),T=this.head,P=0;T;)H(T.data,I,P),P+=T.data.length,T=T.next;return I}},{key:"consume",value:function(N,I){var T;return N<this.head.data.length?(T=this.head.data.slice(0,N),this.head.data=this.head.data.slice(N)):T=N===this.head.data.length?this.shift():I?this._getString(N):this._getBuffer(N),T}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(N){var I=this.head,T=1,P=I.data;for(N-=P.length;I=I.next;){var D=I.data,M=N>D.length?D.length:N;if(M===D.length?P+=D:P+=D.slice(0,N),0==(N-=M)){M===D.length?(++T,I.next?this.head=I.next:this.head=this.tail=null):(this.head=I,I.data=D.slice(M));break}++T}return this.length-=T,P}},{key:"_getBuffer",value:function(N){var I=F.allocUnsafe(N),T=this.head,P=1;for(T.data.copy(I),N-=T.data.length;T=T.next;){var D=T.data,M=N>D.length?D.length:N;if(D.copy(I,I.length-N,0,M),0==(N-=M)){M===D.length?(++P,T.next?this.head=T.next:this.head=this.tail=null):(this.head=T,T.data=D.slice(M));break}++P}return this.length-=P,I}},{key:U,value:function(N,I){return B(this,D({},I,{depth:0,customInspect:!1}))}}]),N}()},528:function(N){"use strict";function I(N,I){P(N,I),T(N)}function T(N){N._writableState&&!N._writableState.emitClose||(!N._readableState||N._readableState.emitClose)&&N.emit("close")}function P(N,I){N.emit("error",I)}N.exports={destroy:function(N,M){var R=this,L=this._readableState&&this._readableState.destroyed,$=this._writableState&&this._writableState.destroyed;return L||$?M?M(N):N&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,D.nextTick(P,this,N)):D.nextTick(P,this,N)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(N||null,function(N){!M&&N?R._writableState?R._writableState.errorEmitted?D.nextTick(T,R):(R._writableState.errorEmitted=!0,D.nextTick(I,R,N)):D.nextTick(I,R,N):M?(D.nextTick(T,R),M(N)):D.nextTick(T,R)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(N,I){var T=N._readableState,P=N._writableState;
643T&&T.autoDestroy||P&&P.autoDestroy?N.destroy(I):N.emit("error",I)}}},134:function(N,I,T){"use strict";var P=T(329).F.ERR_STREAM_PREMATURE_CLOSE;function D(N){var I=!1;return function(){if(!I){I=!0;for(var T=arguments.length,P=Array(T),D=0;D<T;D++)P[D]=arguments[D];N.apply(this,P)}}}function M(){}function R(N){return N.setHeader&&"function"==typeof N.abort}function L(N,I,T){if("function"==typeof I)return L(N,null,I);I||(I={}),T=D(T||M);var $=I.readable||!1!==I.readable&&N.readable,F=I.writable||!1!==I.writable&&N.writable,B=function(){N.writable||H()},U=N._writableState&&N._writableState.finished,H=function(){F=!1,U=!0,$||T.call(N)},z=N._readableState&&N._readableState.endEmitted,W=function(){$=!1,z=!0,F||T.call(N)},q=function(I){T.call(N,I)},G=function(){var I;return $&&!z?(N._readableState&&N._readableState.ended||(I=new P),T.call(N,I)):F&&!U?(N._writableState&&N._writableState.ended||(I=new P),T.call(N,I)):void 0},K=function(){N.req.on("finish",H)};return R(N)?(N.on("complete",H),N.on("abort",G),N.req?K():N.on("request",K)):F&&!N._writableState&&(N.on("end",B),N.on("close",B)),N.on("end",W),N.on("finish",H),!1!==I.error&&N.on("error",q),N.on("close",G),function(){N.removeListener("complete",H),N.removeListener("abort",G),N.removeListener("request",K),N.req&&N.req.removeListener("finish",H),N.removeListener("end",B),N.removeListener("close",B),N.removeListener("finish",H),N.removeListener("end",W),N.removeListener("error",q),N.removeListener("close",G)}}N.exports=L},812:function(N,I,T){"use strict";function P(N,I,T,P,D,M,R){try{var L=N[M](R),$=L.value}catch(N){T(N);return}L.done?I($):Promise.resolve($).then(P,D)}function D(N){return function(){var I=this,T=arguments;return new Promise(function(D,M){var R=N.apply(I,T);function L(N){P(R,D,M,L,$,"next",N)}function $(N){P(R,D,M,L,$,"throw",N)}L(void 0)})}}function M(N,I){var T=Object.keys(N);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(N);I&&(P=P.filter(function(I){return Object.getOwnPropertyDescriptor(N,I).enumerable})),T.push.apply(T,P)}return T}function R(N){for(var I=1;I<arguments.length;I++){var T=null!=arguments[I]?arguments[I]:{};I%2?M(Object(T),!0).forEach(function(I){L(N,I,T[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(T)):M(Object(T)).forEach(function(I){Object.defineProperty(N,I,Object.getOwnPropertyDescriptor(T,I))})}return N}function L(N,I,T){return I in N?Object.defineProperty(N,I,{value:T,enumerable:!0,configurable:!0,writable:!0}):N[I]=T,N}var $=T(329).F.ERR_INVALID_ARG_TYPE;N.exports=function(N,I,T){if(I&&"function"==typeof I.next)P=I;else if(I&&I[Symbol.asyncIterator])P=I[Symbol.asyncIterator]();else if(I&&I[Symbol.iterator])P=I[Symbol.iterator]();else throw new $("iterable",["Iterable"],I);var P,M=new N(R({objectMode:!0},T)),L=!1;function F(){return B.apply(this,arguments)}function B(){return(B=D(function*(){try{var N=yield P.next(),I=N.value;N.done?M.push(null):M.push((yield I))?F():L=!1}catch(N){M.destroy(N)}})).apply(this,arguments)}return M._read=function(){L||(L=!0,F())},M}},694:function(N,I,T){"use strict";function P(N){var I=!1;return function(){I||(I=!0,N.apply(void 0,arguments))}}var D,M=T(329).F,R=M.ERR_MISSING_ARGS,L=M.ERR_STREAM_DESTROYED;function $(N){if(N)throw N}function F(N){return N.setHeader&&"function"==typeof N.abort}function B(N,I,M,R){R=P(R);var $=!1;N.on("close",function(){$=!0}),void 0===D&&(D=T(134)),D(N,{readable:I,writable:M},function(N){if(N)return R(N);$=!0,R()});var B=!1;return function(I){if(!$&&!B){if(B=!0,F(N))return N.abort();if("function"==typeof N.destroy)return N.destroy();R(I||new L("pipe"))}}}function U(N){N()}function H(N,I){return N.pipe(I)}function z(N){return N.length&&"function"==typeof N[N.length-1]?N.pop():$}N.exports=function(){for(var N,I=arguments.length,T=Array(I),P=0;P<I;P++)T[P]=arguments[P];var D=z(T);if(Array.isArray(T[0])&&(T=T[0]),T.length<2)throw new R("streams");var M=T.map(function(I,P){var R=P<T.length-1;return B(I,R,P>0,function(I){N||(N=I),I&&M.forEach(U),R||(M.forEach(U),D(N))})});return T.reduce(H)}},771:function(N,I,T){"use strict";var P=T(329).F.ERR_INVALID_OPT_VALUE;function D(N,I,T){return null!=N.highWaterMark?N.highWaterMark:I?N[T]:null}N.exports={getHighWaterMark:function(N,I,T,M){var R=D(I,M,T);if(null!=R){if(!(isFinite(R)&&Math.floor(R)===R)||R<0)throw new P(M?T:"highWaterMark",R);return Math.floor(R)}return N.objectMode?16:16384}}},120:function(N,I,T){N.exports=T(203)},486:function(N,I,T){var P=T(203);"disable"===D.env.READABLE_STREAM&&P?(N.exports=P.Readable,Object.assign(N.exports,P),N.exports.Stream=P):((I=N.exports=T(276)).Stream=P||I,I.Readable=I,I.Writable=T(732),I.Duplex=T(686),I.Transform=T(586),I.PassThrough=T(512),I.finished=T(134),I.pipeline=T(694))},56:function(N,I,T){var P=T(181),D=P.Buffer;function M(N,I){for(var T in N)I[T]=N[T]}function R(N,I,T){return D(N,I,T)}D.from&&D.alloc&&D.allocUnsafe&&D.allocUnsafeSlow?N.exports=P:(M(P,I),I.Buffer=R),R.prototype=Object.create(D.prototype),M(D,R),R.from=function(N,I,T){if("number"==typeof N)throw TypeError("Argument must not be a number");return D(N,I,T)},R.alloc=function(N,I,T){if("number"!=typeof N)throw TypeError("Argument must be a number");var P=D(N);return void 0!==I?"string"==typeof T?P.fill(I,T):P.fill(I):P.fill(0),P},R.allocUnsafe=function(N){if("number"!=typeof N)throw TypeError("Argument must be a number");return D(N)},R.allocUnsafeSlow=function(N){if("number"!=typeof N)throw TypeError("Argument must be a number");
643return P.SlowBuffer(N)}},534:function(N,I,P){var D=P(291),M=P(935),R=P(663),L=P(514),$=P(16),F=I;F.request=function(N,I){N="string"==typeof N?$.parse(N):R(N);var P=-1===T.g.location.protocol.search(/^https?:$/)?"http:":"",M=N.protocol||P,L=N.hostname||N.host,F=N.port,B=N.path||"/";L&&-1!==L.indexOf(":")&&(L="["+L+"]"),N.url=(L?M+"//"+L:"")+(F?":"+F:"")+B,N.method=(N.method||"GET").toUpperCase(),N.headers=N.headers||{};var U=new D(N);return I&&U.on("response",I),U},F.get=function(N,I){var T=F.request(N,I);return T.end(),T},F.ClientRequest=D,F.IncomingMessage=M.IncomingMessage,F.Agent=function(){},F.Agent.defaultMaxSockets=4,F.globalAgent=new F.Agent,F.STATUS_CODES=L,F.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]},102:function(N,I){var P;function D(){if(void 0!==P)return P;if(T.g.XMLHttpRequest){P=new T.g.XMLHttpRequest;try{P.open("GET",T.g.XDomainRequest?"/":"https://example.com")}catch(N){P=null}}else P=null;return P}function M(N){var I=D();if(!I)return!1;try{return I.responseType=N,I.responseType===N}catch(N){}return!1}function R(N){return"function"==typeof N}I.fetch=R(T.g.fetch)&&R(T.g.ReadableStream),I.writableStream=R(T.g.WritableStream),I.abortController=R(T.g.AbortController),I.arraybuffer=I.fetch||M("arraybuffer"),I.msstream=!I.fetch&&M("ms-stream"),I.mozchunkedarraybuffer=!I.fetch&&M("moz-chunked-arraybuffer"),I.overrideMimeType=I.fetch||!!D()&&R(D().overrideMimeType),P=null},291:function(N,I,P){var R=P(102),L=P(638),$=P(935),F=P(486),B=$.IncomingMessage,U=$.readyStates;function H(N,I){return R.fetch&&I?"fetch":R.mozchunkedarraybuffer?"moz-chunked-arraybuffer":R.msstream?"ms-stream":R.arraybuffer&&N?"arraybuffer":"text"}var z=N.exports=function(N){var I,T=this;F.Writable.call(T),T._opts=N,T._body=[],T._headers={},N.auth&&T.setHeader("Authorization","Basic "+M.from(N.auth).toString("base64")),Object.keys(N.headers).forEach(function(I){T.setHeader(I,N.headers[I])});var P=!0;if("disable-fetch"===N.mode||"requestTimeout"in N&&!R.abortController)P=!1,I=!0;else if("prefer-streaming"===N.mode)I=!1;else if("allow-wrong-content-type"===N.mode)I=!R.overrideMimeType;else if(N.mode&&"default"!==N.mode&&"prefer-fast"!==N.mode)throw Error("Invalid value for opts.mode");else I=!0;T._mode=H(I,P),T._fetchTimer=null,T.on("finish",function(){T._onFinish()})};function W(N){try{var I=N.status;return null!==I&&0!==I}catch(N){return!1}}L(z,F.Writable),z.prototype.setHeader=function(N,I){var T=this,P=N.toLowerCase();-1===q.indexOf(P)&&(T._headers[P]={name:N,value:I})},z.prototype.getHeader=function(N){var I=this._headers[N.toLowerCase()];return I?I.value:null},z.prototype.removeHeader=function(N){var I=this;delete I._headers[N.toLowerCase()]},z.prototype._onFinish=function(){var N=this;if(!N._destroyed){var I=N._opts,P=N._headers,M=null;"GET"!==I.method&&"HEAD"!==I.method&&(M=new Blob(N._body,{type:(P["content-type"]||{}).value||""}));var L=[];if(Object.keys(P).forEach(function(N){var I=P[N].name,T=P[N].value;Array.isArray(T)?T.forEach(function(N){L.push([I,N])}):L.push([I,T])}),"fetch"===N._mode){var $=null;if(R.abortController){var F=new AbortController;$=F.signal,N._fetchAbortController=F,"requestTimeout"in I&&0!==I.requestTimeout&&(N._fetchTimer=T.g.setTimeout(function(){N.emit("requestTimeout"),N._fetchAbortController&&N._fetchAbortController.abort()},I.requestTimeout))}T.g.fetch(N._opts.url,{method:N._opts.method,headers:L,body:M||void 0,mode:"cors",credentials:I.withCredentials?"include":"same-origin",signal:$}).then(function(I){N._fetchResponse=I,N._connect()},function(I){T.g.clearTimeout(N._fetchTimer),N._destroyed||N.emit("error",I)})}else{var B=N._xhr=new T.g.XMLHttpRequest;try{B.open(N._opts.method,N._opts.url,!0)}catch(I){D.nextTick(function(){N.emit("error",I)});return}"responseType"in B&&(B.responseType=N._mode),"withCredentials"in B&&(B.withCredentials=!!I.withCredentials),"text"===N._mode&&"overrideMimeType"in B&&B.overrideMimeType("text/plain;
643 charset=x-user-defined"),"requestTimeout"in I&&(B.timeout=I.requestTimeout,B.ontimeout=function(){N.emit("requestTimeout")}),L.forEach(function(N){B.setRequestHeader(N[0],N[1])}),N._response=null,B.onreadystatechange=function(){switch(B.readyState){case U.LOADING:case U.DONE:N._onXHRProgress()}},"moz-chunked-arraybuffer"===N._mode&&(B.onprogress=function(){N._onXHRProgress()}),B.onerror=function(){N._destroyed||N.emit("error",Error("XHR error"))};try{B.send(M)}catch(I){D.nextTick(function(){N.emit("error",I)});return}}}},z.prototype._onXHRProgress=function(){var N=this;W(N._xhr)&&!N._destroyed&&(N._response||N._connect(),N._response._onXHRProgress())},z.prototype._connect=function(){var N=this;N._destroyed||(N._response=new B(N._xhr,N._fetchResponse,N._mode,N._fetchTimer),N._response.on("error",function(I){N.emit("error",I)}),N.emit("response",N._response))},z.prototype._write=function(N,I,T){var P=this;P._body.push(N),T()},z.prototype.abort=z.prototype.destroy=function(){var N=this;N._destroyed=!0,T.g.clearTimeout(N._fetchTimer),N._response&&(N._response._destroyed=!0),N._xhr?N._xhr.abort():N._fetchAbortController&&N._fetchAbortController.abort()},z.prototype.end=function(N,I,T){var P=this;"function"==typeof N&&(T=N,N=void 0),F.Writable.prototype.end.call(P,N,I,T)},z.prototype.flushHeaders=function(){},z.prototype.setTimeout=function(){},z.prototype.setNoDelay=function(){},z.prototype.setSocketKeepAlive=function(){};var q=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]},935:function(N,I,P){var R=P(102),L=P(638),$=P(486),F=I.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},B=I.IncomingMessage=function(N,I,P,L){var F=this;if($.Readable.call(F),F._mode=P,F.headers={},F.rawHeaders=[],F.trailers={},F.rawTrailers=[],F.on("end",function(){D.nextTick(function(){F.emit("close")})}),"fetch"===P){if(F._fetchResponse=I,F.url=I.url,F.statusCode=I.status,F.statusMessage=I.statusText,I.headers.forEach(function(N,I){F.headers[I.toLowerCase()]=N,F.rawHeaders.push(I,N)}),R.writableStream){var B=new WritableStream({write:function(N){return new Promise(function(I,T){F._destroyed?T():F.push(M.from(N))?I():F._resumeFetch=I})},close:function(){T.g.clearTimeout(L),F._destroyed||F.push(null)},abort:function(N){F._destroyed||F.emit("error",N)}});try{I.body.pipeTo(B).catch(function(N){T.g.clearTimeout(L),F._destroyed||F.emit("error",N)});return}catch(N){}}var U=I.body.getReader();function H(){U.read().then(function(N){if(!F._destroyed){if(N.done){T.g.clearTimeout(L),F.push(null);return}F.push(M.from(N.value)),H()}}).catch(function(N){T.g.clearTimeout(L),F._destroyed||F.emit("error",N)})}H()}else if(F._xhr=N,F._pos=0,F.url=N.responseURL,F.statusCode=N.status,F.statusMessage=N.statusText,N.getAllResponseHeaders().split(/\r?\n/).forEach(function(N){var I=N.match(/^([^:]+):\s*(.*)/);if(I){var T=I[1].toLowerCase();"set-cookie"===T?(void 0===F.headers[T]&&(F.headers[T]=[]),F.headers[T].push(I[2])):void 0!==F.headers[T]?F.headers[T]+=", "+I[2]:F.headers[T]=I[2],F.rawHeaders.push(I[1],I[2])}}),F._charset="x-user-defined",!R.overrideMimeType){var z=F.rawHeaders["mime-type"];if(z){var W=z.match(/;\s*charset=([^;])(;|$)/);W&&(F._charset=W[1].toLowerCase())}F._charset||(F._charset="utf-8")}};L(B,$.Readable),B.prototype._read=function(){var N=this,I=N._resumeFetch;I&&(N._resumeFetch=null,I())},B.prototype._onXHRProgress=function(){var N=this,I=N._xhr,P=null;switch(N._mode){case"text":if((P=I.responseText).length>N._pos){var D=P.substr(N._pos);if("x-user-defined"===N._charset){for(var R=M.alloc(D.length),L=0;L<D.length;L++)R[L]=255&D.charCodeAt(L);N.push(R)}else N.push(D,N._charset);N._pos=P.length}break;case"arraybuffer":if(I.readyState!==F.DONE||!I.response)break;P=I.response,N.push(M.from(new Uint8Array(P)));break;case"moz-chunked-arraybuffer":if(P=I.response,I.readyState!==F.LOADING||!P)break;N.push(M.from(new Uint8Array(P)));break;case"ms-stream":if(P=I.response,I.readyState!==F.LOADING)break;var $=new T.g.MSStreamReader;$.onprogress=function(){$.result.byteLength>N._pos&&(N.push(M.from(new Uint8Array($.result.slice(N._pos)))),N._pos=$.result.byteLength)},$.onload=function(){N.push(null)},$.readAsArrayBuffer(P)}N._xhr.readyState===F.DONE&&"ms-stream"!==N._mode&&N.push(null)}},319:function(N,I,T){"use strict";var P=T(56).Buffer,D=P.isEncoding||function(N){switch((N=""+N)&&N.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function M(N){var I;if(!N)return"utf8";for(;;)switch(N){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";
643case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return N;default:if(I)return;N=(""+N).toLowerCase(),I=!0}}function R(N){var I=M(N);if("string"!=typeof I&&(P.isEncoding===D||!D(N)))throw Error("Unknown encoding: "+N);return I||N}function L(N){var I;switch(this.encoding=R(N),this.encoding){case"utf16le":this.text=W,this.end=q,I=4;break;case"utf8":this.fillLast=U,I=4;break;case"base64":this.text=G,this.end=K,I=3;break;default:this.write=V,this.end=Y;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=P.allocUnsafe(I)}function $(N){return N<=127?0:N>>5==6?2:N>>4==14?3:N>>3==30?4:N>>6==2?-1:-2}function F(N,I,T){var P=I.length-1;if(P<T)return 0;var D=$(I[P]);return D>=0?(D>0&&(N.lastNeed=D-1),D):--P<T||-2===D?0:(D=$(I[P]))>=0?(D>0&&(N.lastNeed=D-2),D):--P<T||-2===D?0:(D=$(I[P]))>=0?(D>0&&(2===D?D=0:N.lastNeed=D-3),D):0}function B(N,I,T){if((192&I[0])!=128)return N.lastNeed=0,"�";if(N.lastNeed>1&&I.length>1){if((192&I[1])!=128)return N.lastNeed=1,"�";if(N.lastNeed>2&&I.length>2&&(192&I[2])!=128)return N.lastNeed=2,"�"}}function U(N){var I=this.lastTotal-this.lastNeed,T=B(this,N,I);return void 0!==T?T:this.lastNeed<=N.length?(N.copy(this.lastChar,I,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(N.copy(this.lastChar,I,0,N.length),this.lastNeed-=N.length)}function H(N,I){var T=F(this,N,I);if(!this.lastNeed)return N.toString("utf8",I);this.lastTotal=T;var P=N.length-(T-this.lastNeed);return N.copy(this.lastChar,0,P),N.toString("utf8",I,P)}function z(N){var I=N&&N.length?this.write(N):"";return this.lastNeed?I+"�":I}function W(N,I){if((N.length-I)%2==0){var T=N.toString("utf16le",I);if(T){var P=T.charCodeAt(T.length-1);if(P>=55296&&P<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=N[N.length-2],this.lastChar[1]=N[N.length-1],T.slice(0,-1)}return T}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=N[N.length-1],N.toString("utf16le",I,N.length-1)}function q(N){var I=N&&N.length?this.write(N):"";if(this.lastNeed){var T=this.lastTotal-this.lastNeed;return I+this.lastChar.toString("utf16le",0,T)}return I}function G(N,I){var T=(N.length-I)%3;return 0===T?N.toString("base64",I):(this.lastNeed=3-T,this.lastTotal=3,1===T?this.lastChar[0]=N[N.length-1]:(this.lastChar[0]=N[N.length-2],this.lastChar[1]=N[N.length-1]),N.toString("base64",I,N.length-T))}function K(N){var I=N&&N.length?this.write(N):"";return this.lastNeed?I+this.lastChar.toString("base64",0,3-this.lastNeed):I}function V(N){return N.toString(this.encoding)}function Y(N){return N&&N.length?this.write(N):""}I.I=L,L.prototype.write=function(N){var I,T;if(0===N.length)return"";if(this.lastNeed){if(void 0===(I=this.fillLast(N)))return"";T=this.lastNeed,this.lastNeed=0}else T=0;return T<N.length?I?I+this.text(N,T):this.text(N,T):I||""},L.prototype.end=z,L.prototype.text=H,L.prototype.fillLast=function(N){if(this.lastNeed<=N.length)return N.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);N.copy(this.lastChar,this.lastTotal-this.lastNeed,0,N.length),this.lastNeed-=N.length}},774:function(N){function I(N){try{if(!T.g.localStorage)return!1}catch(N){return!1}var I=T.g.localStorage[N];return null!=I&&"true"===String(I).toLowerCase()}N.exports=function N(N,T){if(I("noDeprecation"))return N;var P=!1;return function(){if(!P){if(I("throwDeprecation"))throw Error(T);I("traceDeprecation")?console.trace(T):console.warn(T),P=!0}return N.apply(this,arguments)}}},663:function(N){N.exports=T;var I=Object.prototype.hasOwnProperty;function T(){for(var N={},T=0;T<arguments.length;T++){var P=arguments[T];for(var D in P)I.call(P,D)&&(N[D]=P[D])}return N}},181:function(N){"use strict";N.exports=T(82909)},434:function(N){"use strict";N.exports=T(95284)},203:function(N){"use strict";N.exports=T(32545)},16:function(N){"use strict";N.exports=T(3305)},23:function(N){"use strict";N.exports=T(68994)}},L={};function $(N){var I=L[N];if(void 0!==I)return I.exports;var T=L[N]={exports:{}},P=!0;try{R[N](T,T.exports,$),P=!1}finally{P&&delete L[N]}return T.exports}$.ab=P+"/",N.exports=$(534)},41329:(N,I,T)=>{"use strict";T.r(I),T.d(I,{useIsMobile:()=>F,usePrimaryMenu:()=>B});var P=T(29463),D=T(31),M=T(85609),R=T(89099),L=T(14232),$=T(60409);let F=(N=768)=>
643{let[I,T]=(0,L.useState)(!1);return(0,L.useEffect)(()=>{let I=window.matchMedia(`(max-width: ${N-1}px)`),P=N=>T(N?.matches||I.matches);return P(),I.addEventListener("change",P),()=>I.removeEventListener("change",P)},[N]),I},B=({page:N,navItems:I,styles:T})=>{let[B,U]=(0,L.useState)(!1),[H,z]=(0,L.useState)(null),W=(0,R.useRouter)(),q=F(),{page:G}=(0,M.M5)(),K=(0,L.useMemo)(()=>N.layout.session?.user?.roles??[],[N.layout.session]),V=N.locale??$.Xn,Y=(0,D.resolveActivePortal)(W.pathname),J=G.layout.sitecore.context.pageLanguages??[],Q=(0,D.resolveCurrentLanguage)(J,V),Z=(0,D.resolveAlternativeLanguages)(J,V),X=Q?.name===$.Xn,ee=!X&&!!Q&&Z.length>0,et=(0,P.resolveBorderColorClass)(T),er=!q||B,en=()=>{U(N=>!N)},ea=()=>{U(!1)},ei=(0,L.useMemo)(()=>(0,P.resolveSortedNavItems)(I,K),[I,K]),eo=(0,L.useMemo)(()=>(0,P.resolveFlatMenuItems)(ei),[ei]),es=eo.slice(0,3),el=(0,L.useMemo)(()=>new Set(es),[es]),ec=(0,L.useMemo)(()=>(0,P.resolveMobileSidebarItems)(ei,el),[ei,el]);return(0,L.useEffect)(()=>{ei.forEach(N=>{if((0,P.filterSubMenuItems)(N,K).some(N=>(N.menuItemLink?.link.value.href??"")===W.asPath)){let I="groupTitle"in N?null:N.menuItemLink?.link.value.href??null;I&&z(I)}})},[W.asPath,ei,K]),(0,L.useEffect)(()=>(B&&q?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[B,q]),{isOpen:B,expandedHref:H,setExpandedHref:z,router:W,isMobile:q,userRoles:K,borderColorClass:et,shouldRenderSidebarItems:er,toggleSidebar:en,handleItemClick:ea,sortedItems:ei,flatMenuItems:eo,primaryItems:es,mobileSidebarItems:ec,locale:V,activePortal:Y,currentLanguage:Q,alternativeLanguages:Z,isGlobal:X,showMobileLanguageSelector:ee}}},41362:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.createSecret=R,I.fromDate=D,I.hashToken=M;var P=T(63426);function D(N,I=Date.now()){return new Date(I+1e3*N)}function M(N,I){var T;let{provider:D,secret:M}=I;return(0,P.createHash)("sha256").update(`${N}${null!=(T=D.secret)?T:M}`).digest("hex")}function R(N){var I;let{authOptions:T,url:D}=N;return null!=(I=T.secret)?I:(0,P.createHash)("sha256").update(JSON.stringify({...D,...T})).digest("hex")}},41446:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=B;var P=T(89632),D=T(89918),M=T(68782),R=F(T(57260)),L=T(42226);function $(N){if("function"!=typeof WeakMap)return null;var I=new WeakMap,T=new WeakMap;return($=function(N){return N?T:I})(N)}function F(N,I){if(!I&&N&&N.__esModule)return N;if(null===N||"object"!=typeof N&&"function"!=typeof N)return{default:N};var T=$(I);if(T&&T.has(N))return T.get(N);var P={__proto__:null},D=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in N)if("default"!==M&&({}).hasOwnProperty.call(N,M)){var R=D?Object.getOwnPropertyDescriptor(N,M):null;R&&(R.get||R.set)?Object.defineProperty(P,M,R):P[M]=N[M]}return P.default=N,T&&T.set(N,P),P}async function B(N){var I,T,$,F,B,H;let{options:z,query:W,body:q,method:G,cookies:K}=N,{logger:V,provider:Y}=z,J=null!=(I=null==q?void 0:q.error)?I:null==W?void 0:W.error;if(J){let N=Error(J);throw V.error("OAUTH_CALLBACK_HANDLER_ERROR",{error:N,error_description:null==W?void 0:W.error_description,providerId:Y.id}),V.debug("OAUTH_CALLBACK_HANDLER_ERROR",{body:q}),N}if(null!=(T=Y.version)&&T.startsWith("1."))try{let N=await (0,M.oAuth1Client)(z),{oauth_token:I,oauth_verifier:T}=null!=W?W:{},P=await N.getOAuthAccessToken(I,M.oAuth1TokenStore.get(I),T),D=await N.get(Y.profileUrl,P.oauth_token,P.oauth_token_secret);return"string"==typeof D&&(D=JSON.parse(D)),{...await U({profile:D,tokens:P,provider:Y,logger:V}),cookies:[]}}catch(N){throw V.error("OAUTH_V1_GET_ACCESS_TOKEN_ERROR",N),N}null!=W&&W.oauth_token&&M.oAuth1TokenStore.delete(W.oauth_token);try{let N,I,T=await (0,D.openidClient)(z),M={},L=[];await R.state.use(K,L,z,M),await R.pkce.use(K,L,z,M),await R.nonce.use(K,L,z,M);let J={...T.callbackParams({url:`http://n?${new URLSearchParams(W)}`,body:q,method:G}),...null==($=Y.token)?void 0:$.params};if(null!=(F=Y.token)&&F.request){let I=await Y.token.request({provider:Y,params:J,checks:M,client:T});
643N=new P.TokenSet(I.tokens)}else N=Y.idToken?await T.callback(Y.callbackUrl,J,M):await T.oauthCallback(Y.callbackUrl,J,M);return Array.isArray(N.scope)&&(N.scope=N.scope.join(" ")),I=null!=(B=Y.userinfo)&&B.request?await Y.userinfo.request({provider:Y,tokens:N,client:T}):Y.idToken?N.claims():await T.userinfo(N,{params:null==(H=Y.userinfo)?void 0:H.params}),{...await U({profile:I,provider:Y,tokens:N,logger:V}),cookies:L}}catch(N){throw new L.OAuthCallbackError(N)}}async function U({profile:N,tokens:I,provider:T,logger:P}){try{var D;P.debug("PROFILE_DATA",{OAuthProfile:N});let M=await T.profile(N,I);if(M.email=null==(D=M.email)?void 0:D.toLowerCase(),!M.id)throw TypeError(`Profile id is missing in ${T.name} OAuth profile response`);return{profile:M,account:{provider:T.id,type:T.type,providerAccountId:M.id.toString(),...I},OAuthProfile:N}}catch(I){P.error("OAUTH_PARSE_PROFILE_ERROR",{error:I,OAuthProfile:N})}}},41655:(N,I,T)=>{"use strict";T.d(I,{H:()=>D,h:()=>P});let P=!1,D={isProd:!1,isAcc:!1,isBoth:!1,url:"https://us.brunel.net"}},41760:(N,I,T)=>{"use strict";T.d(I,{m:()=>R});let P=(N,I)=>{switch(N){case"P":return I.date({width:"short"});case"PP":return I.date({width:"medium"});case"PPP":return I.date({width:"long"});default:return I.date({width:"full"})}},D=(N,I)=>{switch(N){case"p":return I.time({width:"short"});case"pp":return I.time({width:"medium"});case"ppp":return I.time({width:"long"});default:return I.time({width:"full"})}},M=(N,I)=>{let T,M=N.match(/(P+)(p+)?/)||[],R=M[1],L=M[2];if(!L)return P(N,I);switch(R){case"P":T=I.dateTime({width:"short"});break;case"PP":T=I.dateTime({width:"medium"});break;case"PPP":T=I.dateTime({width:"long"});break;default:T=I.dateTime({width:"full"})}return T.replace("{{date}}",P(R,I)).replace("{{time}}",D(L,I))},R={p:D,P:M}},42059:N=>{"use strict";N.exports=function N(I,T){if(I===T)return!0;if(I&&T&&"object"==typeof I&&"object"==typeof T){if(I.constructor!==T.constructor)return!1;if(Array.isArray(I)){if((P=I.length)!=T.length)return!1;for(D=P;0!=D--;)if(!N(I[D],T[D]))return!1;return!0}if(I instanceof Map&&T instanceof Map){if(I.size!==T.size)return!1;for(D of I.entries())if(!T.has(D[0]))return!1;for(D of I.entries())if(!N(D[1],T.get(D[0])))return!1;return!0}if(I instanceof Set&&T instanceof Set){if(I.size!==T.size)return!1;for(D of I.entries())if(!T.has(D[0]))return!1;return!0}if(ArrayBuffer.isView(I)&&ArrayBuffer.isView(T)){if((P=I.length)!=T.length)return!1;for(D=P;0!=D--;)if(I[D]!==T[D])return!1;return!0}if(I.constructor===RegExp)return I.source===T.source&&I.flags===T.flags;if(I.valueOf!==Object.prototype.valueOf)return I.valueOf()===T.valueOf();if(I.toString!==Object.prototype.toString)return I.toString()===T.toString();if((P=(M=Object.keys(I)).length)!==Object.keys(T).length)return!1;for(D=P;0!=D--;)if(!Object.prototype.hasOwnProperty.call(T,M[D]))return!1;for(D=P;0!=D--;){var P,D,M,R=M[D];if(("_owner"!==R||!I.$$typeof)&&!N(I[R],T[R]))return!1}return!0}return I!=I&&T!=T}},42097:(N,I)=>{"use strict";let T,P,D;Object.defineProperty(I,"__esModule",{value:!0}),function(N,I){for(var T in I)Object.defineProperty(N,T,{enumerable:!0,get:I[T]})}(I,{actionAsyncStorage:function(){return T},workAsyncStorage:function(){return P},workUnitAsyncStorage:function(){return D}});("function"==typeof I.default||"object"==typeof I.default&&null!==I.default)&&void 0===I.default.__esModule&&(Object.defineProperty(I.default,"__esModule",{value:!0}),Object.assign(I.default,I),N.exports=I.default)},42135:(N,I,T)=>{"use strict";T.d(I,{Fo:()=>K,Mj:()=>F,Ub:()=>U,Wr:()=>q,_6:()=>z,ko:()=>W});var P=T(14232),D=T(39149),M="u">typeof window?P.useLayoutEffect:P.useEffect;function R(N,I,T,D){let R=(0,P.useRef)(I);M(()=>{R.current=I},[I]),(0,P.useEffect)(()=>{let I=(null==T?void 0:T.current)??window;if(!(I&&I.addEventListener))return;let P=N=>{R.current(N)};return I.addEventListener(N,P,D),()=>{I.removeEventListener(N,P,D)}},[N,T,D])}function L(N){let I=(0,P.useRef)(()=>{throw Error("Cannot call an event handler while rendering.")});return M(()=>{I.current=N},[N]),(0,P.useCallback)((...N)=>{var T;return null==(T=I.current)?void 0:T.call(I,...N)},[I])}var $="u"<typeof window;function F(N,I,T={}){let{initializeWithValue:D=!0}=T,M=(0,P.useCallback)(N=>T.serializer?T.serializer(N):JSON.stringify(N),[T]),B=(0,P.useCallback)(N=>{let P;if(T.deserializer)return T.deserializer(N);if("undefined"===N)return;let D=I instanceof Function?I():I;try{P=JSON.parse(N)}catch(N){return console.error("Error parsing JSON:",N),D}return P},[T,I]),U=(0,P.useCallback)(()=>{let T=I instanceof Function?I():I;if($)return T;try{let I=window.localStorage.getItem(N);return I?B(I):T}catch(I){return console.warn(`Error reading localStorage key \u201C${N}\u201D:`,I),T}},[I,N,B]),[H,z]=(0,P.useState)(()=>D?U():I instanceof Function?I():I),W=L(I=>{$&&console.warn(`Tried setting localStorage key \u201C${N}\u201D even though environment is not a client`);try{let T=I instanceof Function?I(U()):I;window.localStorage.setItem(N,M(T)),z(T),window.dispatchEvent(new StorageEvent("local-storage",{key:N}))}catch(I){console.warn(`Error setting localStorage key \u201C${N}\u201D:`,I)}}),q=L(()=>{$&&console.warn(`Tried removing localStorage key \u201C${N}\u201D even though environment is not a client`);let T=I instanceof Function?I():I;window.localStorage.removeItem(N),z(T),window.dispatchEvent(new StorageEvent("local-storage",{key:N}))});(0,P.useEffect)(()=>{z(U())},[N]);let G=(0,P.useCallback)(I=>{I.key&&I.key!==N||z(U())},[N,U]);return R("storage",G),R("local-storage",G),[H,W,q]}var B="u"<typeof window;function U(N,{defaultValue:I=!1,initializeWithValue:T=!0}={}){let D=N=>B?I:window.matchMedia(N).matches,[R,L]=(0,P.useState)(()=>T?D(N):I);function $(){L(D(N))}return M(()=>{let I=window.matchMedia(N);return $(),I.addListener?I.addListener($):I.addEventListener("change",$),()=>{I.removeListener?I.removeListener($):I.removeEventListener("change",$)}},[N]),R}function H(N){let I=(0,P.useRef)(N);I.current=N,(0,P.useEffect)(()=>()=>{I.current()},[])}function z(N,I=500,T){let M=(0,P.useRef)();H(()=>{M.current&&M.current.cancel()});let R=(0,P.useMemo)(()=>{let P=D(N,I,T),R=(...N)=>P(...N);return R.cancel=()=>{P.cancel()},R.isPending=()=>!!M.current,R.flush=()=>P.flush(),R},[N,I,T]);return(0,P.useEffect)(()=>{M.current=D(N,I,T)},[N,I,T]),R}function W(N=new Map){let[I,T]=(0,P.useState)(new Map(N));return[I,{set:(0,P.useCallback)((N,I)=>{T(T=>{let P=new Map(T);return P.set(N,I),P})},[]),setAll:(0,P.useCallback)(N=>{T(()=>new Map(N))},[]),remove:(0,P.useCallback)(N=>{T(I=>{let T=new Map(I);return T.delete(N),T})},[]),reset:(0,P.useCallback)(()=>{T(()=>new Map)},[])}]}function q(N,I,T="mousedown",P={}){R(T,T=>{let P=T.target;P&&P.isConnected&&(Array.isArray(N)?N.filter(N=>!!N.current).every(N=>N.current&&!N.current.contains(P)):N.current&&!N.current.contains(P))&&I(T)},void 0,P)}var G="u"<typeof window;function K(N,I,T={}){let{initializeWithValue:D=!0}=T,M=(0,P.useCallback)(N=>T.serializer?T.serializer(N):JSON.stringify(N),[T]),$=(0,P.useCallback)(N=>{let P;if(T.deserializer)return T.deserializer(N);if("undefined"===N)return;let D=I instanceof Function?I():I;try{P=JSON.parse(N)}catch(N){return console.error("Error parsing JSON:",N),D}return P},[T,I]),F=(0,P.useCallback)(()=>{let T=I instanceof Function?I():I;if(G)return T;try{let I=window.sessionStorage.getItem(N);return I?$(I):T}catch(I){return console.warn(`Error reading sessionStorage key \u201C${N}\u201D:`,I),T}},[I,N,$]),[B,U]=(0,P.useState)(()=>D?F():I instanceof Function?I():I),H=L(I=>{G&&console.warn(`Tried setting sessionStorage key \u201C${N}\u201D even though environment is not a client`);try{let T=I instanceof Function?I(F()):I;window.sessionStorage.setItem(N,M(T)),U(T),window.dispatchEvent(new StorageEvent("session-storage",{key:N}))}catch(I){console.warn(`Error setting sessionStorage key \u201C${N}\u201D:`,I)}}),z=L(()=>{G&&console.warn(`Tried removing sessionStorage key \u201C${N}\u201D even though environment is not a client`);let T=I instanceof Function?I():I;window.sessionStorage.removeItem(N),U(T),window.dispatchEvent(new StorageEvent("session-storage",{key:N}))});(0,P.useEffect)(()=>{U(F())},[N]);let W=(0,P.useCallback)(I=>{I.key&&I.key!==N||U(F())},[N,F]);return R("storage",W),R("session-storage",W),[B,H,z]}},42226:(N,I,T)=>{"use strict";var P=T(29563);Object.defineProperty(I,"__esModule",{value:!0}),I.UnsupportedStrategy=I.UnknownError=I.OAuthCallbackError=I.MissingSecret=I.MissingAuthorize=I.MissingAdapterMethods=I.MissingAdapter=I.MissingAPIRoute=I.InvalidCallbackUrl=I.AccountNotLinkedError=void 0,I.adapterErrorHandler=V,I.capitalize=G,I.eventsErrorHandler=K,I.upperSnake=q;var D=P(T(43081)),M=P(T(16108)),R=P(T(84620)),L=P(T(4338)),$=P(T(18758)),F=P(T(7945)),B=P(T(88461)),U=P(T(14866));function H(N,I,T){return I=(0,B.default)(I),(0,F.default)(N,z()?Reflect.construct(I,T||[],(0,B.default)(N).constructor):I.apply(N,T))}function z(){try{var N=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(N){}return(z=function(){return!!N})()}var W=I.UnknownError=function(N){function I(N){var T,P;return(0,L.default)(this,I),(P=H(this,I,[null!=(T=null==N?void 0:N.message)?T:N])).name="UnknownError",P.code=N.code,N instanceof Error&&(P.stack=N.stack),P}return(0,U.default)(I,N),(0,$.default)(I,[{key:"toJSON",value:function(){return{name:this.name,message:this.message,stack:this.stack}}}])}((0,P(T(95852)).default)(Error));function q(N){return N.replace(/([A-Z])/g,"_$1").toUpperCase()}function G(N){return"".concat(N[0].toUpperCase()).concat(N.slice(1))}function K(N,I){return Object.keys(N).reduce(function(T,P){return T[P]=(0,M.default)(D.default.mark(function T(){var M,R=arguments;return D.default.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return T.prev=0,M=N[P],T.next=4,M.apply(void 0,R);case 4:return T.abrupt("return",T.sent);case 7:T.prev=7,T.t0=T.catch(0),I.error("".concat(q(P),"_EVENT_ERROR"),T.t0);
643case 10:case"end":return T.stop()}},T,null,[[0,7]])})),T},{})}function V(N,I){if(N)return Object.keys(N).reduce(function(T,P){return T[P]=(0,M.default)(D.default.mark(function T(){var M,R,L,$,F,B=arguments;return D.default.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:for(T.prev=0,R=Array(M=B.length),L=0;L<M;L++)R[L]=B[L];return I.debug("adapter_".concat(P),{args:R}),$=N[P],T.next=6,$.apply(void 0,R);case 6:return T.abrupt("return",T.sent);case 9:throw T.prev=9,T.t0=T.catch(0),I.error("adapter_error_".concat(P),T.t0),(F=new W(T.t0)).name="".concat(G(P),"Error"),F;case 15:case"end":return T.stop()}},T,null,[[0,9]])})),T},{})}I.OAuthCallbackError=function(N){function I(){var N;(0,L.default)(this,I);for(var T=arguments.length,P=Array(T),D=0;D<T;D++)P[D]=arguments[D];return N=H(this,I,[].concat(P)),(0,R.default)(N,"name","OAuthCallbackError"),N}return(0,U.default)(I,N),(0,$.default)(I)}(W),I.AccountNotLinkedError=function(N){function I(){var N;(0,L.default)(this,I);for(var T=arguments.length,P=Array(T),D=0;D<T;D++)P[D]=arguments[D];return N=H(this,I,[].concat(P)),(0,R.default)(N,"name","AccountNotLinkedError"),N}return(0,U.default)(I,N),(0,$.default)(I)}(W),I.MissingAPIRoute=function(N){function I(){var N;(0,L.default)(this,I);for(var T=arguments.length,P=Array(T),D=0;D<T;D++)P[D]=arguments[D];return N=H(this,I,[].concat(P)),(0,R.default)(N,"name","MissingAPIRouteError"),(0,R.default)(N,"code","MISSING_NEXTAUTH_API_ROUTE_ERROR"),N}return(0,U.default)(I,N),(0,$.default)(I)}(W),I.MissingSecret=function(N){function I(){var N;(0,L.default)(this,I);for(var T=arguments.length,P=Array(T),D=0;D<T;D++)P[D]=arguments[D];return N=H(this,I,[].concat(P)),(0,R.default)(N,"name","MissingSecretError"),(0,R.default)(N,"code","NO_SECRET"),N}return(0,U.default)(I,N),(0,$.default)(I)}(W),I.MissingAuthorize=function(N){function I(){var N;(0,L.default)(this,I);for(var T=arguments.length,P=Array(T),D=0;D<T;D++)P[D]=arguments[D];return N=H(this,I,[].concat(P)),(0,R.default)(N,"name","MissingAuthorizeError"),(0,R.default)(N,"code","CALLBACK_CREDENTIALS_HANDLER_ERROR"),N}return(0,U.default)(I,N),(0,$.default)(I)}(W),I.MissingAdapter=function(N){function I(){var N;(0,L.default)(this,I);for(var T=arguments.length,P=Array(T),D=0;D<T;D++)P[D]=arguments[D];return N=H(this,I,[].concat(P)),(0,R.default)(N,"name","MissingAdapterError"),(0,R.default)(N,"code","EMAIL_REQUIRES_ADAPTER_ERROR"),N}return(0,U.default)(I,N),(0,$.default)(I)}(W),I.MissingAdapterMethods=function(N){function I(){var N;(0,L.default)(this,I);for(var T=arguments.length,P=Array(T),D=0;D<T;D++)P[D]=arguments[D];return N=H(this,I,[].concat(P)),(0,R.default)(N,"name","MissingAdapterMethodsError"),(0,R.default)(N,"code","MISSING_ADAPTER_METHODS_ERROR"),N}return(0,U.default)(I,N),(0,$.default)(I)}(W),I.UnsupportedStrategy=function(N){function I(){var N;(0,L.default)(this,I);for(var T=arguments.length,P=Array(T),D=0;D<T;D++)P[D]=arguments[D];return N=H(this,I,[].concat(P)),(0,R.default)(N,"name","UnsupportedStrategyError"),(0,R.default)(N,"code","CALLBACK_CREDENTIALS_JWT_ERROR"),N}return(0,U.default)(I,N),(0,$.default)(I)}(W),I.InvalidCallbackUrl=function(N){function I(){var N;(0,L.default)(this,I);for(var T=arguments.length,P=Array(T),D=0;D<T;D++)P[D]=arguments[D];return N=H(this,I,[].concat(P)),(0,R.default)(N,"name","InvalidCallbackUrl"),(0,R.default)(N,"code","INVALID_CALLBACK_URL_ERROR"),N}return(0,U.default)(I,N),(0,$.default)(I)}(W)},42339:(N,I,T)=>{"use strict";T.d(I,{IM:()=>D,NQ:()=>R,dS:()=>M});var P=T(76984);let D=N=>{let I=N.split(" "),T=I[0].charAt(0);if(1===I.length)return T;let P=I[I.length-1].charAt(0);return`${T}${P}`};function M(N){try{let I=(0,P.s)(N),T=I.name?.replace(/\(.*?\)/g,"")?.trim();if(T)return T;return[I.given_name,I.family_name].filter(Boolean).join(" ").trim()||"Unknown User"}catch(N){return console.error("Error decoding the access token:",N),"Unknown User"}}function R(N){return N?N.replace(/\(.*?\)/g,"").trim().split(/\s+/).filter(N=>/^[A-Z]/.test(N)).map(N=>N[0]).join(""):""}},42482:N=>{let I=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['â](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['â](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['â](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['â](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,T=N=>N.match(I)||[],P=N=>N[0].toUpperCase()+N.slice(1),D=(N,I)=>T(N).join(I).toLowerCase(),M=N=>T(N).reduce((N,I)=>`${N}${!N?I.toLowerCase():I[0].toUpperCase()+I.slice(1).toLowerCase()}`,""),R=N=>P(M(N)),L=N=>P(D(N," ")),$=N=>T(N).map(P).join(" ");N.exports={words:T,upperFirst:P,camelCase:M,pascalCase:R,snakeCase:N=>D(N,"_"),kebabCase:N=>D(N,"-"),sentenceCase:L,titleCase:$}},42586:(N,I,T)=>{"use strict";T.d(I,{q:()=>D});let P={};function D(){return P}},42663:(N,I,T)=>{"use strict";T.r(I),T.d(I,{useEventOverviewResults:()=>$});var P=T(14232),D=T(85728),M=T(65212),R=T(62288),L=T(98176);let $=({data:N,locale:I,categories:T,allCategoriesLabel:$})=>{let{setToast:F}=(0,P.useContext)(D._t),B=N?.eventItemId??"",U=(0,P.useRef)(!0),[H,z]=(0,P.useState)(!0),[W,q]=(0,P.useState)([$]),[G,K]=(0,P.useState)([]),[V,Y]=(0,P.useState)({endCursor:"",hasNext:!1}),[J,Q]=(0,P.useState)(0),Z=(0,P.useCallback)(N=>{if(W.includes(N)){let I=W.filter(I=>I!==N);q([...I,...0===I.length?[$]:[]])}else N===$?q([$]):q([...W.filter(N=>N!==$)].concat(N))},[$,W]),X=(0,P.useCallback)(async()=>
643{if(N?.eventItemId){z(!0);let T=await (0,R.KR)(N?.eventItemId,L.Pw,I).catch(T=>{M.A.event("Failed to fetch getEventsData inside EventOverview component",{...T,eventItemId:N?.eventItemId,language:I})}).finally(()=>z(!1));T&&(K([...T.events?.results??[]]),Y(T?.events?.pageInfo),Q(T?.events?.total??0))}},[N?.eventItemId,I]),ee=(0,P.useCallback)(async()=>{let P=[...W.map(N=>T.find(I=>I.eventCategoryName.value===N)?.id??"")];if(N?.eventItemId){z(!0);let T=await (0,R.j_)(N?.eventItemId,B.hexToGuid(!0),L.Pw,P.filter(N=>void 0!==N),I).catch(T=>{M.A.event("Failed to fetch getEventsDataByCategory inside EventOverview component",{...T,eventItemId:N?.eventItemId,categoryIds:P,language:I})}).finally(()=>z(!1));K([...T?.events?.results??[]]),Y(T?.events?.pageInfo??{endCursor:"",hasNext:!1}),Q(T?.events?.total??0)}},[N,B,W,T,I]),et=(0,P.useCallback)(async()=>{if(N?.eventItemId&&V?.endCursor){let P=N?.categoryPageId?[N?.categoryPageId]:[...W.map(N=>T.find(I=>I.eventCategoryName.value===N)?.id??"")],D=await (0,R.z8)(N?.eventItemId,L.Pw,V?.endCursor,P?.filter(N=>""!==N),I).catch(T=>{F({data:{title:"Something went wrong",message:"Couldn't fetch the next events data."},open:!0,type:"error"}),M.A.event("Failed to fetch getNextEventsData inside EventOverview component",{...T,eventItemId:N?.eventItemId,categoryIds:P,language:I})});D?(K([...G,...D.events?.results??[]]),Y(D?.events?.pageInfo),Q(D?.events?.total??0)):M.A.event("Failed to fetch event data while executing getNextResults() inside EventOverview component")}},[N?.eventItemId,N?.categoryPageId,V?.endCursor,W,T,G,I,F]);return(0,P.useLayoutEffect)(()=>{if(N){if(N.event?.events&&U.current){U.current=!1,K([...N.event.events.results??[]]),Y(N.event.events.pageInfo??{endCursor:"",hasNext:!1}),Q(N.event.events.total??0),z(!1);return}N.categoryPageId||(W.includes($)?X():ee())}},[N,W,$,X,ee]),{loading:H,results:G,pageInfo:V,total:J,selectedCategories:W,updateSelectedCategories:Z,getNextResults:et}}},42827:(N,I,T)=>{"use strict";T.r(I),T.d(I,{useSearchBar:()=>F});var P=T(98905),D=T(14232),M=T(67881),R=T(53724),L=T(60409),$=T(56556);let F=({fields:N,locale:I})=>{let T=N?.currentLanguage?.split("-")?.[0]??L.Xn,[F,B]=(0,D.useState)(()=>(0,P.resolveInitialSearchBarData)(N?.translations?.searchBar)),{keywordData:U,locationData:H,updateKeywordSuggestion:z,updateLocationSuggestion:W,honeypotValue:q,setHoneypotValue:G}=(0,R.useSearchConfigurationBar)({language:T});(0,$.ND)({fields:N,locale:I??N?.currentLanguage??L.Xn,searchBarData:F,setSearchBarData:N=>B({...F,...N})});let K=()=>{if(q)return;let N=(0,P.resolveJobsSearchPath)(I??L.Xn,F);M.q.common.searchPageSearchButton({...F}),window.location.href=`${window.location.origin}${N}`};return{searchBarData:F,setSearchBarData:B,keywordData:U,locationData:H,updateKeywordSuggestion:z,updateLocationSuggestion:W,honeypotValue:q,setHoneypotValue:G,onSearch:()=>{let N=document.getElementById("SearchBarButton");N?.click()},search:K}}},42983:(N,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default="ffffffff-ffff-ffff-ffff-ffffffffffff"},43081:(N,I,T)=>{var P=T(84096)();N.exports=P;try{regeneratorRuntime=P}catch(N){"object"==typeof globalThis?globalThis.regeneratorRuntime=P:Function("r","regeneratorRuntime = r")(P)}},43402:(N,I,T)=>{"use strict";T.r(I),T.d(I,{Default:()=>H,QuoteFullWidth:()=>U});var P=T(37876),D=T(23649),M=T(85609),R=T(87273),L=T(63366),$=T(27400),F=T(36379);let B=({rendering:N,params:I,fields:T})=>{let P=N?.fields??T,D=N?.params??I,M=(0,F.Qh)(D?.Styles),R=M?M.split(/\s+/).filter(Boolean):[];return{fields:P,params:D,id:D?.RenderingIdentifier,styledClasses:R}},U=({rendering:N,params:I,fields:T})=>{let{fields:H,params:z,id:W,styledClasses:q}=B({rendering:N,params:I,fields:T}),{page:G}=(0,M.M5)(),K=G.mode.isEditing,V=(0,F.UJ)(q,"object-").replace("object-","")??"center";if(!H||0===Object.keys(H).length)return(0,P.jsx)($.$,{id:W??"",title:U.name,msg:"Please add a Quote background image, name and role."});let Y=H.quoteName?.value;return(0,P.jsxs)(L.az,{id:W||void 0,className:"relative flex size-full justify-center",children:[(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(R._,{priority:!0,field:H?.quoteImage,alt:"Quote",className:`object-[center_${V}] absolute size-full object-cover`,srcSet:[{mw:3840},{mw:1920},{mw:1280},{mw:1024},{mw:768},{mw:640},{mw:500}],sizes:"(min-width: 3840px) 3840px, (min-width: 1920px) 1920px, (min-width: 1280px) 1280px, (min-width: 1024px) 1024px, (min-width: 768px) 768px, (min-width: 640px) 640px, 500px"}),!K&&(0,P.jsx)(L.az,{className:"absolute-overlay absolute inset-0 bg-black opacity-20"})]}),(0,P.jsx)(L.az,{className:"relative flex w-full max-w-(--breakpoint-lg) justify-center",children:(0,P.jsxs)(L.az,{className:"z-2 flex min-h-[375px] w-full max-w-(--breakpoint-lg) flex-col justify-center gap-4 px-6 py-10 sm:min-h-105 md:py-18 lg:px-0",children:[(0,P.jsxs)(L.az,{as:"span",className:"flex whitespace-pre-wrap",children:[(0,P.jsx)(L.o5,{className:"text-white",type:"large",textField:{...H.quoteName,value:Y?Y.concat(", "):Y}}),(0,P.jsx)(L.o5,{className:"text-white",type:"large",textField:H.quoteRole})]}),(0,P.jsx)(L.o5,{className:"text-white before:text-brunel-yellow before:content-['â'] after:text-brunel-yellow after:content-['â'] sm:max-w-(--breakpoint-sm)",type:"h3",textField:H?.quoteText}),z?.QuoteUseCTA==="1"&&(0,P.jsx)(D.Button,{background:"white",variant:"primary",linkField:H?.quoteLink})]})})]})},H=U},43452:(N,I,T)=>{"use strict";T.d(I,{m:()=>q});var P=T(37876);let D=N=>N.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"),M=(N,I)=>{let T=D(I??""),P=N.split(RegExp(T,"gi")),M=N.match(RegExp(T,"gi")),R=[];return P.forEach((N,I)=>{R.push({text:N,bold:!1}),I!==P.length-1&&M&&R.push({text:M[I],bold:!0})}),R};var R=T(14232),L=T(42135);let $=({data:N,onChange:I,onSelect:T,onEnter:P})=>{let D=(0,R.useRef)(null),M=(0,R.useRef)(null),$=(0,R.useRef)(!1),[F,B]=(0,R.useState)(!1),[U,H]=(0,R.useState)(!1),z=N=>{$.current||($.current=!0),N&&T?.(N),B(!1)},W=N=>{$.current&&($.current=!1),I?.(N)},q=N=>{"Enter"===N&&(P?.(),B(!1))};return(0,L.Wr)(D,()=>B(!1)),(0,R.useEffect)(()=>{F&&M.current?.scrollTo({top:0,behavior:"smooth"})},[F]),(0,R.useEffect)(()=>{N&&N.length>0&&!$.current&&B(!0)},[N]),(0,R.useEffect)(()=>{B(!1)},[]),{ref:D,dropdownContentRef:M,open:F,setOpen:B,hoverClose:U,setHoverClose:H,handleSelect:z,handleInputChange:W,handleInputKeyUp:q}};var F=T(10409),B=T(56375),U=T(6807),H=T(54587),z=T.n(H),W=T(36379);let q=({title:N,placeholder:I,value:T,boldMatchValue:D,iconNameRight:L,iconNameLeft:H,iconLeftClasses:q,iconRightClasses:G,containerClasses:K,headerClasses:V,contentClasses:Y,data:J,onChange:Q,onSelect:Z,onDelete:X,onEnter:ee})=>{let{ref:et,dropdownContentRef:er,open:en,setOpen:ea,hoverClose:ei,setHoverClose:eo,handleSelect:es,handleInputChange:el,handleInputKeyUp:ec}=$({data:J,onChange:Q,onSelect:Z,onEnter:ee}),eu=N=>(0,P.jsx)("span",{children:M(N,T).map((N,I)=>N.bold?(0,P.jsx)("b",{children:N.text},I):(0,P.jsx)(R.Fragment,{children:N.text},I))});return(0,P.jsxs)("details",{ref:et,open:en,className:(0,W.cn)("group dropdown transition-all delay-150 ease-in-out hover:cursor-pointer",K),onClick:N=>{N.preventDefault(),ea(!en)},children:[(0,P.jsxs)("summary",{className:(0,W.cn)("flex items-center gap-4 px-4 py-5",V),children:[H&&(0,P.jsx)(B.I,{className:(0,W.cn)(q),name:H,size:"medium"}),(0,P.jsxs)(F.a,{className:"flex flex-1 flex-col justify-center gap-1",children:[(0,P.jsx)(U.o,{className:"!mb-0",type:"h5",plainText:N}),!Q&&(0,P.jsx)(U.o,{className:"text-ui-grey",type:"small",plainText:""!==T?T:I}),Q&&(0,P.jsx)("input",{className:"input size-full rounded-none border-0 bg-transparent p-0 text-d-body-medium text-brunel-dark-grey placeholder:text-ui-grey focus:border-0 focus:outline-none disabled:cursor-pointer disabled:bg-transparent disabled:text-brunel-dark-grey",type:"text",placeholder:I,value:T,disabled:!Q,autoComplete:"keyword",onClick:()=>ea(!en),onChange:N=>el(N.currentTarget.value),onKeyUp:N=>ec(N.key)})]}),L&&(0,P.jsx)(B.I,{className:(0,W.cn)(G),name:L,size:"medium"}),""!==T&&Q&&(0,P.jsx)(F.a,{className:"hidden size-max lg:inline-flex",children:ei?(0,P.jsx)(z(),{className:"flex h-full w-6 items-center",src:"/images/cancel-hover.svg",width:24,height:24,onMouseLeave:()=>eo(!1),onClick:N=>{N.stopPropagation(),N.preventDefault(),X?.(),eo(!1)},alt:"cancel-hover icon"}):(0,P.jsx)(B.I,{color:"brunel-dark-grey",name:"cancel",size:"medium",onHover:N=>eo(N)})}),""!==T&&!L&&(0,P.jsx)(B.I,{className:"lg:hidden",color:"brunel-dark-grey",name:"cancel",size:"medium",onClick:N=>{N.stopPropagation(),N.preventDefault(),X?.()}})]}),J&&J.length>0&&(0,P.jsx)(F.a,{className:(0,W.cn)("dropdown-content z-10 mt-px overflow-hidden rounded-b-lg bg-white shadow",{open:en},Y),children:(0,P.jsx)("ul",{ref:er,className:(0,W.cn)("scrollbar h-max max-h-63.5 scrollbar-thumb-ui-grey scrollbar-track-accent-spring-wood overflow-y-auto py-4"),tabIndex:0,children:J.map(N=>(0,P.jsx)("li",{children:(0,P.jsx)(U.o,{type:"small",className:"flex h-8.5 items-center px-4 py-2 text-brunel-dark-grey hover:bg-accent-catskill-white hover:brunel-underline-2-brunel-dark-grey",plainText:D?eu(N?.toString()):N?.toString(),onClick:()=>es(N?.toString())})},N))})})]})}},43491:(N,I,T)=>{"use strict";T.r(I),T.d(I,{default:()=>U});var P=T(37876),D=T(90921),M=T(23649),R=T(22544),L=T(66963),$=T(10409),F=T(63366),B=T(60409);let U=({session:N,locale:I,dictionary:T,menuItems:U,theme:H="mybrunel"})=>{let{ref:z,dropdownVisible:W,toggleDropdown:q,fullName:G,initials:K,currentLanguage:V,alternativeLanguages:Y,isGlobal:J,flattenedMenuItems:Q,timedGreeting:Z,isVisible:X,handleSignOut:ee}=(0,D.useUserDropdown)({session:N,locale:I,dictionary:T,menuItems:U});return X?(0,P.jsx)("div",{ref:z,children:(0,P.jsxs)($.a,{className:"relative",children:[(0,P.jsx)($.a,{onClick:q,className:"flex items-center rounded-full",children:(0,P.jsxs)($.a,{className:"group bg-opacity-60 relative flex h-10 cursor-pointer items-center rounded-full border border-accent-iron bg-accent-pampas/75 px-1 py-0 transition-colors md:px-1",tabIndex:0,children:[(0,P.jsx)(L.e,{className:`md-flex mr-2 ${"taylorhopkinson"===H?"bg-th-cta-background text-white":"border border-accent-corn"}`,size:"sm",initials:K}),(0,P.jsx)(F.o5,{className:"ml-1 hidden text-sm! font-semibold sm:block",plainText:G}),(0,P.jsx)($.a,{as:"span",className:`${W?"rotate-180":""} ml-2 transition-transform`,children:(0,P.jsx)(F.In,{name:"chevron-down",className:"mt-2"})})]})}),(0,P.jsx)($.a,{className:`fixed top-16 left-1/2 z-50 w-[calc(100vw-2rem)] -translate-x-1/2 roun
643ded-2xl shadow-xl transition-all duration-300 ease-in-out md:absolute md:top-full md:right-0 md:left-auto md:w-75 md:translate-x-0 ${W?"mt-2 max-h-150 opacity-100":"mt-0 max-h-0 opacity-0"} overflow-hidden`,children:(0,P.jsxs)($.a,{as:"nav",className:`rounded-2xl bg-accent-pampas shadow-xl ${W?"block":"hidden"}`,children:[(0,P.jsxs)($.a,{className:"relative overflow-hidden rounded-t-2xl bg-gradient-to-br from-accent-pampas to-[#E8E5D8] px-5 py-5",children:[(0,P.jsxs)($.a,{className:"relative flex items-center gap-3",children:[(0,P.jsx)($.a,{className:`flex h-12 w-12 shrink-0 items-center justify-center rounded-full text-base font-bold shadow-md ${"taylorhopkinson"===H?"bg-th-cta-background text-white":"border-2 border-brunel-yellow bg-white text-gray-800"}`,children:K}),(0,P.jsxs)($.a,{className:"min-w-0",children:[(0,P.jsx)($.a,{className:"truncate text-sm font-bold text-gray-900",children:G}),(0,P.jsx)($.a,{className:"text-xs text-gray-500",children:Z})]})]}),T?.["general-nice-to-have-you"]&&(0,P.jsx)($.a,{className:"relative mt-3 rounded-lg bg-white/50 px-3 py-2 text-xs text-gray-600 backdrop-blur-sm",children:T["general-nice-to-have-you"]})]}),!J&&V&&Y?.length>0&&(0,P.jsxs)($.a,{className:"border-b border-gray-200/60 px-3 py-3",children:[(0,P.jsx)($.a,{className:"mb-1.5 px-2 text-[10px] font-semibold tracking-widest text-gray-400 uppercase",children:"Language"}),(0,P.jsxs)($.a,{as:"ul",className:"space-y-0.5",children:[(0,P.jsx)($.a,{as:"li",className:"rounded-lg bg-brunel-yellow/20 px-3 py-2",children:(0,P.jsx)(F.o5,{plainText:V.nativeName,className:"text-sm! font-semibold text-gray-800"})}),Y.map(N=>(0,P.jsx)($.a,{as:"li",children:(0,P.jsx)(R.N,{className:"block rounded-lg px-3 py-2 text-sm text-gray-600 transition-colors hover:bg-[#E8E5D8] hover:text-gray-900 hover:underline",field:{href:`/${N.name??B.Xn}/mybrunel`,target:"_top"},children:N.nativeName})},N.name))]})]}),Q.length>0&&(0,P.jsx)($.a,{as:"ul",className:"space-y-0.5 border-b border-gray-200/60 px-3 py-3",children:Q.map((N,I)=>(0,P.jsx)($.a,{as:"li",children:(0,P.jsxs)(R.N,{className:"group/item flex items-center gap-3 rounded-xl px-3 py-2.5 text-sm text-gray-700 transition-all hover:bg-[#E8E5D8] hover:text-gray-900",field:{href:N.menuItemLink.link.value.href,target:N.menuItemLink.link.value.target??"_self"},children:[N.menuItemIcon.data.value&&(0,P.jsx)($.a,{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-lg bg-white shadow-sm transition-shadow group-hover/item:shadow-md",children:(0,P.jsx)(F.In,{name:N.menuItemIcon.data.value,className:"text-gray-600"})}),(0,P.jsx)($.a,{as:"span",className:"font-medium capitalize",children:N.menuItemTitle.text.value??"[No Text]"}),(0,P.jsx)($.a,{as:"span",className:"ml-auto text-gray-300 transition-transform group-hover/item:translate-x-0.5",children:(0,P.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-3.5 w-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",children:(0,P.jsx)("polyline",{points:"9 18 15 12 9 6"})})})]})},I))}),(0,P.jsx)($.a,{className:"px-4 py-4",children:(0,P.jsx)(M.Button,{className:"w-full! p-2",variant:"mybrunel"===H?"primaryrounded":"taylorhopkinson",iconName:"off",iconSize:"small",onClick:ee,plainText:T?.signout??"[signout]"})})]})})]})}):null}},43573:(N,I,T)=>{"use strict";T.r(I),T.d(I,{HeaderTH:()=>V,getComponentServerProps:()=>K});var P=T(37876),D=T(87273),M=T(55333),R=T(54587),L=T.n(R),$=T(48230),F=T.n($),B=T(65212),U=T(63366),H=T(60409),z=T(45034),W=T(36379),q=T(41655),G=T(82868);let K=async(N,I,T)=>{let P=I?.sitecore?.route?.itemId??"",D=T?.locale??H.Xn,M=null,R=I.loginPage;try{M=await (0,z.B)(I?.sitecore?.context.pageLanguages,D)}catch(N){B.A.ui("Failed to get languageData in getComponentServerProps inside Header component",N)}return{languageDataInfo:M,itemId:P,locale:D,loginPageUrl:R}},V=({params:N,fields:I})=>{let T=N.RenderingIdentifier,R=I.data.datasource??{};return(0,P.jsx)(U.az,{id:T||void 0,className:(0,W.cn)("fixed top-0 z-20 mx-auto flex w-full items-center px-6 py-0 text-th-bold-text transition duration-300",N.Styles,(0,M.Cx)()&&"relative","bg-th-primary-background"),"data-testid":G.Qa.TestIds.HeaderComponent.base,children:(0,P.jsxs)(U.az,{className:"my-8 flex h-full flex-1 justify-between lg:items-center",children:[(0,P.jsx)(F(),{href:"/en-gb",tabIndex:0,target:"_top",type:"internal",children:(0,P.jsx)(D._,{field:R.navigationLogo.image,alt:R.navigationLogo.image.value.alt??"Taylor Hopkinson Powered By Brunel Logo",className:"h-10 w-50 cursor-pointer object-contain"})}),(0,P.jsx)(L(),{src:q.H.isProd?q.H.url+"/images/taylorhopkinson/th_good_energy_recruitment_logo.svg":"/images/taylorhopkinson/th_good_energy_recruitment_logo.svg",alt:"Taylor Hopkinson Good Energy Recruitment Logo",width:200,height:40})]})})}},43632:(N,I,T)=>{"use strict";T.d(I,{X:()=>B,k:()=>U});var P=T(37149),D=T(60388),M=T(48149),R=T(46305);function L(N){return{onFetch:(I,T)=>
vendor: 4,333 bytes, line 643
643{let D=I.options,M=I.fetchOptions?.meta?.fetchMore?.direction,R=I.state.data?.pages||[],L=I.state.data?.pageParams||[],B={pages:[],pageParams:[]},U=0,H=async()=>{let T=!1,H=N=>{(0,P.ox)(N,()=>I.signal,()=>T=!0)},z=(0,P.ZM)(I.options,I.fetchOptions),W=async(N,D,M)=>{let R;if(T)return Promise.reject(I.signal.reason);if(null==D&&N.pages.length)return Promise.resolve(N);let L=(H(R={client:I.client,queryKey:I.queryKey,pageParam:D,direction:M?"backward":"forward",meta:I.options.meta}),R),$=await z(L),{maxPages:F}=I.options,B=M?P.ZZ:P.y9;return{pages:B(N.pages,$,F),pageParams:B(N.pageParams,D,F)}};if(M&&R.length){let N="backward"===M,I=N?F:$,T={pages:R,pageParams:L};B=await W(T,I(D,T),N)}else{let I=N??R.length;do{let N=0===U?L[0]??D.initialPageParam:$(D,B);if(U>0&&null==N)break;B=await W(B,N),U++}while(U<I)}return B};I.options.persister?I.fetchFn=()=>I.options.persister?.(H,{client:I.client,queryKey:I.queryKey,meta:I.options.meta,signal:I.signal},T):I.fetchFn=H}}}function $(N,{pages:I,pageParams:T}){let P=I.length-1;return I.length>0?N.getNextPageParam(I[P],I,T[P],T):void 0}function F(N,{pages:I,pageParams:T}){return I.length>0?N.getPreviousPageParam?.(I[0],I,T[0],T):void 0}var B=class extends R.k{#k;#C;#j;#d;#t;#b;#O;#N;constructor(N){super(),this.#N=!1,this.#O=N.defaultOptions,this.setOptions(N.options),this.observers=[],this.#t=N.client,this.#d=this.#t.getQueryCache(),this.queryKey=N.queryKey,this.queryHash=N.queryHash,this.#C=z(this.options),this.state=N.state??this.#C,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#k}get promise(){return this.#b?.promise}setOptions(N){if(this.options={...this.#O,...N},N?._type&&(this.#k=N._type),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let N=z(this.options);void 0!==N.data&&(this.setState(H(N.data,N.dataUpdatedAt)),this.#C=N)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#d.remove(this)}setData(N,I){let T=(0,P.pl)(this.state.data,N,this.options);return this.#v({data:T,type:"success",dataUpdatedAt:I?.updatedAt,manual:I?.manual}),T}setState(N){this.#v({type:"setState",state:N})}cancel(N){let I=this.#b?.promise;return this.#b?.cancel(N),I?I.then(P.lQ).catch(P.lQ):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#C}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(N=>!1!==(0,P.GF)(N.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===P.hT||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(N=>"static"===(0,P.GF)(N.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(N=>N.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(N=0){return void 0===this.state.data||"static"!==N&&(!!this.state.isInvalidated||!(0,P.j3)(this.state.dataUpdatedAt,N))}onFocus(){this.observers.find(N=>N.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#b?.continue()}onOnline(){this.observers.find(N=>N.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#b?.continue()}addObserver(N){this.observers.includes(N)||(this.observers.push(N),this.clearGcTimeout(),this.#d.notify({type:"observerAdded",query:this,observer:N}))}removeObserver(N){let I=this.observers.indexOf(N);-1!==I&&(this.observers.splice(I,1),this.observers.length||(this.#b&&(this.#N||"paused"===this.state.fetchStatus&&"pending"===this.state.status?this.#b.cancel({revert:!0}):this.#b.cancelRetry()),this.scheduleGc()),this.#d.notify({type:"observerRemoved",query:this,observer:N}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#v({type:"invalidate"})}async fetch(N,I){let T;if("idle"!==this.state.fetchStatus&&this.#b?.status()!=="rejected"){if(void 0!==this.state.data&&I?.cancelRefetch)this.cancel({silent:!0});else if(this.#b)return this.#b.continueRetry(),this.#b.promise}if(N&&this.setOptions(N),!this.options.queryFn){let N=this.observers.find(N=>N.options.queryFn);N&&this.setOptions(N.options)}let D=new AbortController,R=N=>{Object.defineProperty(N,"signal",{enumerable:!0,get:()=>(this.#N=!0,D.signal)}
643)},$=()=>{let N,T=(0,P.ZM)(this.options,I),D=(R(N={client:this.#t,queryKey:this.queryKey,meta:this.meta}),N);return(this.#N=!1,this.options.persister)?this.options.persister(T,D,this):T(D)},F=(R(T={fetchOptions:I,options:this.options,queryKey:this.queryKey,client:this.#t,state:this.state,fetchFn:$}),T);("infinite"===this.#k?L(this.options.pages):this.options.behavior)?.onFetch(F,this),this.#j=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==F.fetchOptions?.meta)&&this.#v({type:"fetch",meta:F.fetchOptions?.meta});let B=this.#b=(0,M.II)({initialPromise:I?.initialPromise,fn:F.fetchFn,onCancel:N=>{N instanceof M.cc&&N.revert&&this.setState({...this.#j,fetchStatus:"idle"}),D.abort()},onFail:(N,I)=>{this.#v({type:"failed",failureCount:N,error:I})},onPause:()=>{this.#v({type:"pause"})},onContinue:()=>{this.#v({type:"continue"})},retry:F.options.retry,retryDelay:F.options.retryDelay,networkMode:F.options.networkMode,canRun:()=>!0});try{let N=await B.start();if(void 0===N)throw Error(`${this.queryHash} data is undefined`);return this.setData(N),this.#d.config.onSuccess?.(N,this),this.#d.config.onSettled?.(N,this.state.error,this),N}catch(N){if(N instanceof M.cc){if(N.silent)return this.#b.promise;else if(N.revert){if(void 0===this.state.data)throw N;return this.state.data}}throw this.#v({type:"error",error:N}),this.#d.config.onError?.(N,this),this.#d.config.onSettled?.(this.state.data,N,this),N}finally{this.#b===B&&(this.#b=void 0),this.scheduleGc()}}#v(N){let I=I=>{switch(N.type){case"failed":return{...I,fetchFailureCount:N.failureCount,fetchFailureReason:N.error};case"pause":return{...I,fetchStatus:"paused"};case"continue":return{...I,fetchStatus:"fetching"};case"fetch":return{...I,...U(I.data,this.options),fetchMeta:N.meta??null};case"success":let T={...I,...H(N.data,N.dataUpdatedAt),dataUpdateCount:I.dataUpdateCount+1,...!N.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#j=N.manual?T:void 0,T;case"error":let P=N.error;return{...I,error:P,errorUpdateCount:I.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:I.fetchFailureCount+1,fetchFailureReason:P,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...I,isInvalidated:!0};case"setState":return{...I,...N.state}}};this.state=I(this.state),D.jG.batch(()=>{this.observers.slice().forEach(N=>{N.onQueryUpdate()}),this.#d.notify({query:this,type:"updated",action:N})})}};function U(N,I){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,M.v_)(I.networkMode)?"fetching":"paused",...void 0===N&&{error:null,status:"pending"}}}function H(N,I){return{data:N,dataUpdatedAt:I??Date.now(),error:null,isInvalidated:!1,status:"success"}}function z(N){let I="function"==typeof N.initialData?N.initialData():N.initialData,T=void 0!==I,P=T?"function"==typeof N.initialDataUpdatedAt?N.initialDataUpdatedAt():N.initialDataUpdatedAt:0;return{data:I,dataUpdateCount:0,dataUpdatedAt:T?P??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:T?"success":"pending",fetchStatus:"idle"}}},43680:(N,I,T)=>{"use strict";T.d(I,{a:()=>X});var P=T(37876),D=T(14232);let M=(N,I)=>I&&N?RegExp(/\(.*\)/).exec(N)?.[0]??null:N,R=(N,I)=>{let T=N?.label||null,P=N?.flag||null;return{label:M(T,I),flag:P}},L=(N,I)=>N?.find(N=>N.value===I),$=(N,I)=>N?.filter(N=>N.label.toLowerCase().includes(I.toLocaleLowerCase())),F=(N,I)=>`${I}/countries/${N}.svg`,B=N=>`${N}/countries/other.svg`;var U=T(63808);let H=({value:N,data:I,isPhone:T})=>{let P=(0,D.useRef)(!1),[M,$]=(0,D.useState)({label:null,flag:null});return(0,D.useEffect)(()=>{if(!N||!I)return;let P=L(I,N);P&&$(R(P,T))},[N,I,T]),{selectedData:M,setSelectedData:$,triggerDataLayerErrorOnce:N=>{P.current||(N?.(),P.current=!0)}}},z=({id:N,data:I,isPhone:T,searchable:P,setSelectedData:M})=>{let[L,F]=(0,D.useState)(""),[B,H]=(0,D.useState)(I),{touched:z,setFieldTouched:W,setFieldValue:q}=(0,U.j7)();(0,D.useEffect)(()=>{H(I)},[I]);let G=()=>{F(""),H(I)};return{searchTerm:L,filteredData:B,handleSearch:N=>{let T=N.target.value;F(T),H($(I,T))},selectOption:I=>{document.activeElement?.blur(),P&&G(),z[N]||W(N,!0,!0),q(N,I.value),M(R(I,T))}}};var W=T(68602),q=T(77470),G=T(84612),K=T(6807),V=T(93639),Y=T(36379),J=T(41655);let Q=N=>{let I=J.H.isProd?J.H.url:"";return(0,P.jsx)(V.Z,{className:"mr-2",height:24,width:24,style:{width:"24px",height:"24px"},field:{src:F(N,I)},alt:N,onError:N=>{N.target.src=B(I)}})},Z=({id:N,data:I,dropdownDataClassName:T,searchable:M,trackingProps:R,searchPlaceholder:L,isPhone:$,setSelectedData:F})=>{let{searchTerm:B,filteredData:U,handleSearch:H,selectOption:W}=z({id:N,data:I,isPhone:$,searchable:M,setSelectedData:F});return(0,P.jsxs)("ul",{tabIndex:0,className:(0,Y.cn)("dropdown-content z-1 max-h-79.5 w-full flex-col overflow-auto rounded-b-sm border border-accent-iron bg-white py-4 text-ui-grey group-focus-within/dropdown:border-2",T),onClick:N=>{N.preventDefault(),N.stopPropagation()},onKeyDown:N=>{"Space"===N.code&&N.preventDefault()},children:[M&&(0,P.jsx)("li",{className:"sticky -top-4 -mt-4 bg-white p-4",children:(0,P.jsx)("input",{...R,type:"text",placeholder:L,value:B,onChange:H,className:"w-full rounded-xs border border-accent-iron px-4 py-2 outline-none"})}),U&&U.length>0&&U.filter(N=>""!==N.label).map((N,I)=>N?.value&&N?.value!==""&&(0,D.createElement)("li",{...0===I?{tabIndex:0}:{tabIndex:-1},key:`${N.value}-${I}`,className:"flex cursor-pointer px-4 py-2 hover:bg-ui-light-grey focus:rounded-xs focus:outline-1 focus:-outline-offset-2 focus:outline-accent-iron focus:outline-dashed",onClick:()=>W(N),onKeyUp:I=>{"Space"===I.code&&W(N)},children:[N?.flag&&Q(N.flag),(0,P.jsx)(K.o,{type:"medium",plainText:N.label})]}))]})},X=N=>{let{id:I,showHeader:T=!0,label:D,value:M,placeholder:R,errors:L,data:$,isPhone:F,className:B,dropdownClassName:z,outline:V=!0,setDataLayer:J,setDataLayerError:X}=N,{selectedData:ee,setSelectedData:et,triggerDataLayerErrorOnce:er}=H({value:M,data:$,isPhone:F});return(0,P.jsxs)("div",{id:`FormDropdown-${I}`,className:(0,Y.cn)("flex flex-1 flex-col gap-2",B),children:[T&&(0,P.jsxs)("div",{className:"flex flex-col",children:[(0,P.jsx)(q.l,{id:I,label:D,focusOnClick:!1}),L?.map(N=>{if(N?.touched&&N?.message)return er(X),(0,P.jsx)(W.j,{id:N?.id??I,error:N.message},`FormError-${N?.id??I}`)})]}),(0,P.jsxs)("div",{className:(0,Y.cn)("group/dropdown dropdown",{"focus-within:rounded-xs focus-within:outline-2 focus-within:outline-offset-1 focus-within:outline-accent-iron focus-within:outline-dashed":V}),onClick:J,children:[(0,P.jsxs)("div",{tabIndex:0,role:"button",className:(0,Y.cn)("space-between input flex h-12 w-full cursor-pointer items-center bg-white p-4 group-focus-within/dropdown:rounded-b-none group-focus-within/dropdown:border-2 group-focus-within/dropdown:border-b-0",{"group-focus-within/phone:border-r-2! lg:rounded-r-none":F},z),children:[(0,P.jsx)(U.D0,{id:I,name:I,className:"hidden",value:M,readOnly:!0}),ee?.flag&&Q(ee.flag),(0,P.jsx)(K.o,{type:"small",className:(0,Y.cn)("w-full",{"text-ui-grey!":!ee?.label}),plainText:ee?.label??R}),(0,P.jsx)(G.D3,{className:"min-h-6 min-w-6 transition-transform duration-150 ease-linear group-focus-within/dropdown:-scale-y-100"})]}),(0,P.jsx)(Z,{...N,setSelectedData:et})]})]})}},43691:(N,I,T)=>{"use strict";T.d(I,{a:()=>D});var P=T(69867);function D(N,I){return(0,P.w)(I||N,N)}},43774:(N,I,T)=>{"use strict";let P,D=T(18135),{stdout:M,stderr:R}=T(58361),{stringReplaceAll:L,stringEncaseCRLFWithFirstIndex:$}=T(310),{isArray:F}=Array,B=["ansi","ansi","ansi256","ansi16m"],U=Object.create(null),H=(N,I={})=>
643{if(I.level&&!(Number.isInteger(I.level)&&I.level>=0&&I.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let T=M?M.level:0;N.level=void 0===I.level?T:I.level};class z{constructor(N){return W(N)}}let W=N=>{let I={};return H(I,N),I.template=(...N)=>Q(I.template,...N),Object.setPrototypeOf(I,q.prototype),Object.setPrototypeOf(I.template,I),I.template.constructor=()=>{throw Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},I.template.Instance=z,I.template};function q(N){return W(N)}for(let[N,I]of Object.entries(D))U[N]={get(){let T=Y(this,V(I.open,I.close,this._styler),this._isEmpty);return Object.defineProperty(this,N,{value:T}),T}};U.visible={get(){let N=Y(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:N}),N}};let G=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let N of G)U[N]={get(){let{level:I}=this;return function(...T){return Y(this,V(D.color[B[I]][N](...T),D.color.close,this._styler),this._isEmpty)}}};for(let N of G)U["bg"+N[0].toUpperCase()+N.slice(1)]={get(){let{level:I}=this;return function(...T){return Y(this,V(D.bgColor[B[I]][N](...T),D.bgColor.close,this._styler),this._isEmpty)}}};let K=Object.defineProperties(()=>{},{...U,level:{enumerable:!0,get(){return this._generator.level},set(N){this._generator.level=N}}}),V=(N,I,T)=>{let P,D;return void 0===T?(P=N,D=I):(P=T.openAll+N,D=I+T.closeAll),{open:N,close:I,openAll:P,closeAll:D,parent:T}},Y=(N,I,T)=>{let P=(...N)=>F(N[0])&&F(N[0].raw)?J(P,Q(P,...N)):J(P,1===N.length?""+N[0]:N.join(" "));return Object.setPrototypeOf(P,K),P._generator=N,P._styler=I,P._isEmpty=T,P},J=(N,I)=>{if(N.level<=0||!I)return N._isEmpty?"":I;let T=N._styler;if(void 0===T)return I;let{openAll:P,closeAll:D}=T;if(-1!==I.indexOf("\x1b"))for(;void 0!==T;)I=L(I,T.close,T.open),T=T.parent;let M=I.indexOf("\n");return -1!==M&&(I=$(I,D,P,M)),P+I+D},Q=(N,...I)=>{let[D]=I;if(!F(D)||!F(D.raw))return I.join(" ");let M=I.slice(1),R=[D.raw[0]];for(let N=1;N<D.length;N++)R.push(String(M[N-1]).replace(/[{}\\]/g,"\\$&"),String(D.raw[N]));return void 0===P&&(P=T(12637)),P(N,R.join(""))};Object.defineProperties(q.prototype,U);let Z=q();Z.supportsColor=M,Z.stderr=q({level:R?R.level:0}),Z.stderr.supportsColor=R,N.exports=Z},44371:(N,I,T)=>{"use strict";T.d(I,{x:()=>D});var P=T(69867);function D(N,...I){let T=P.w.bind(null,N||I.find(N=>"object"==typeof N));return I.map(T)}},44538:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),Object.defineProperty(I,"afterTaskAsyncStorage",{enumerable:!0,get:function(){return P.afterTaskAsyncStorageInstance}});let P=T(78491)},45034:(N,I,T)=>{"use strict";T.d(I,{B:()=>M});var P=T(60409),D=T(65212);let M=async(N,I)=>{try{let T=N=>"zh-ch"===N.toLocaleLowerCase(),D=N?.find(N=>N.name===I.toLowerCase())??null,M=T(I)?N?.find(N=>N.name===P.Xn):N?.find(N=>N.name!==I.toLowerCase())??null,R=D?.name.split("-")[1]??P.Xn,L=D?.name===P.Xn;return{currentLanguage:D,alternativeLanguage:M,countryCode:R,isGlobal:L}}catch(N){return D.A.ui(N),{currentLanguage:null,alternativeLanguage:null,countryCode:P.Xn,isGlobal:!0}}}},45105:(N,I,T)=>{N.exports=T(14087)},45119:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),Object.defineProperty(I,"getImgProps",{enumerable:!0,get:function(){return z}});let P=T(68833),D=T(93440),M=T(79484),R=["-moz-initial","fill","none","scale-down",void 0];function L(N){return void 0!==N.default}function $(N){return void 0!==N.src}function F(N){return!!N&&"object"==typeof N&&(L(N)||$(N))}function B(N){return void 0===N?N:"number"==typeof N?Number.isFinite(N)?N:NaN:"string"==typeof N&&/^[0-9]+$/.test(N)?parseInt(N,10):NaN}function U({deviceSizes:N,allSizes:I},T,P){if(P){let T=/(^|\s)(1?\d?\d)vw/g,D=[];for(let N;N=T.exec(P);)D.push(parseInt(N[2]));if(D.length){let T=.01*Math.min(...D);return{widths:I.filter(I=>I>=N[0]*T),kind:"w"}}return{widths:I,kind:"w"}}return"number"!=typeof T?{widths:N,kind:"w"}:{widths:[...new Set([T,2*T].map(N=>I.find(I=>I>=N)||I[I.length-1]))],kind:"x"}}function H({config:N,src:I,unoptimized:T,width:D,quality:M,sizes:R,loader:L}){if(T){if(I.startsWith("/")&&!I.startsWith("//")){let N=(0,P.getDeploymentId)();if(I.includes("/_next/static/immutable")&&!(0,P.getAssetToken)())N=void 0;else if(N){let T=I.indexOf("?");if(-1!==T){let P=new URLSearchParams(I.slice(T+1));P.get("dpl")||(P.append("dpl",N),I=I.slice(0,T)+"?"+P.toString())}else I+=`?dpl=${N}`}}return{src:I,srcSet:void 0,sizes:void 0}}let{widths:$,kind:F}=U(N,D,R),B=$.length-1;return{sizes:R||"w"!==F?R:"100vw",srcSet:$.map((T,P)=>`${L({config:N,src:I,quality:M,width:T})} ${"w"===F?T:P+1}${F}`).join(", "),src:L({config:N,src:I,quality:M,width:$[B]})}}function z({src:N,sizes:I,unoptimized:T=!1,priority:P=!1,preload:$=!1,loading:U,className:W,quality:q,width:G,height:K,fill:V=!1,style:Y,overrideSrc:J,onLoad:Q,onLoadingComplete:Z,placeholder:X="empty",blurDataURL:ee,fetchPriority:et,decoding:er="async",layout:en,objectFit:ea,objectPosition:ei,lazyBoundary:eo,lazyRoot:es,...el},ec){let eu,ed,ef,{imgConf:eh,showAltText:ep,blurComplete:em,defaultLoader:eg}=ec,ey=eh||M.imageConfigDefault;if("allSizes"in ey)eu=ey;else{let N=[...ey.deviceSizes,...ey.imageSizes].sort((N,I)=>N-I),I=ey.deviceSizes.sort((N,I)=>N-I),T=ey.qualities?.sort((N,I)=>N-I);eu={...ey,allSizes:N,deviceSizes:I,qualities:T}}if(void 0===eg)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,
643configurable:!0});let eb=el.loader||eg;delete el.loader,delete el.srcSet;let ev="__next_img_default"in eb;if(ev){if("custom"===eu.loader)throw Object.defineProperty(Error(`Image with src "${N}" is missing "loader" prop. 644Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let N=eb;eb=I=>{let{config:T,...P}=I;return N(P)}}if(en){"fill"===en&&(V=!0);let N={responsive:"100vw",fill:"100vw"},T={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[en];T&&(Y={...Y,...T});let P=N[en];P&&!I&&(I=P)}let ew="",ex=B(G),eA=B(K);if(F(N)){let I=L(N)?N.default:N;if(!I.src)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(I)}`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!I.height||!I.width)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(I)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(ed=I.blurWidth,ef=I.blurHeight,ee=ee||I.blurDataURL,ew=I.src,!V)if(ex||eA){if(ex&&!eA){let N=ex/I.width;eA=Math.round(I.height*N)}else if(!ex&&eA){let N=eA/I.height;ex=Math.round(I.width*N)}}else ex=I.width,eA=I.height}let eE=!P&&!$&&("lazy"===U||void 0===U);(!(N="string"==typeof N?N:ew)||N.startsWith("data:")||N.startsWith("blob:"))&&(T=!0,eE=!1),eu.unoptimized&&(T=!0),ev&&!eu.dangerouslyAllowSVG&&N.split("?",1)[0].endsWith(".svg")&&(T=!0);let eS=B(q),e_=Object.assign(V?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:ea,objectPosition:ei}:{},ep?{}:{color:"transparent"},Y),ek=em||"empty"===X?null:"blur"===X?`url("data:image/svg+xml;charset=utf-8,${(0,D.getImageBlurSvg)({widthInt:ex,heightInt:eA,blurWidth:ed,blurHeight:ef,blurDataURL:ee||"",objectFit:e_.objectFit})}")`:`url("${X}")`,eC=R.includes(e_.objectFit)?"fill"===e_.objectFit?"100% 100%":"cover":e_.objectFit,ej=ek?{backgroundSize:eC,backgroundPosition:e_.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:ek}:{},eO=H({config:eu,src:N,unoptimized:T,width:ex,quality:eS,sizes:I,loader:eb}),eN=eE?"lazy":U;return{props:{...el,loading:eN,fetchPriority:et,width:ex,height:eA,decoding:er,className:W,style:{...e_,...ej},sizes:eO.sizes,srcSet:eO.srcSet,src:J||eO.src},meta:{unoptimized:T,preload:$||P,placeholder:X,fill:V}}}},45123:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=D;var P=T(63780);function D(N){let{url:I,csrfToken:T,theme:D}=N;return(0,P.h)("div",{className:"signout"},D.brandColor&&(0,P.h)("style",{dangerouslySetInnerHTML:{__html:` 645 :root { 646 --brand-color: ${D.brandColor} 647 } 648 `}}),D.buttonText&&(0,P.h)("style",{dangerouslySetInnerHTML:{__html:` 649 :root { 650 --button-text-color: ${D.buttonText} 651 } 652 `}}),(0,P.h)("div",{className:"card"},D.logo&&(0,P.h)("img",{src:D.logo,alt:"Logo",className:"logo"}),(0,P.h)("h1",null,"Signout"),(0,P.h)("p",null,"Are you sure you want to sign out?"),(0,P.h)("form",{action:`${I}/signout`,method:"POST"},(0,P.h)("input",{type:"hidden",name:"csrfToken",value:T}),(0,P.h)("button",{id:"submitButton",type:"submit"},"Sign out"))))}},45817:(N,I,T)=>{"use strict";T.r(I),T.d(I,{RelatedBlogResultCardList:()=>R});var P=T(37876),D=T(35210),M=T(63366);let R=({results:N})=>N?.length>0?(0,P.jsx)(M.az,{className:"flex-1 flex-row items-center justify-center",children:(0,P.jsx)(M.az,{className:"mt-8 grid grid-flow-row-dense grid-cols-1 sm:grid-cols-2 sm:gap-8 lg:grid-cols-4",children:N.map((I,T)=>(0,P.jsx)(D.RelatedBlogCard,{result:I,lastCard:T===N.length-1},I?.previewTitle?.value))})}):null},46209:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=D;var P=T(87435);function D(N){let{url:I,providerId:T}=N,D=N.providers.map(({options:N,...T})=>{var D,R;if("oauth"===T.type){let D=M(T),L=M(N,!0),$=null!=(R=null==L?void 0:L.id)?R:T.id;return(0,P.merge)(D,{...L,signinUrl:`${I}/signin/${$}`,callbackUrl:`${I}/callback/${$}`})}let L=null!=(D=null==N?void 0:N.id)?D:T.id;return(0,P.merge)(T,{...N,signinUrl:`${I}/signin/${L}`,callbackUrl:`${I}/callback/${L}`})});return{providers:D,provider:D.find(({id:N})=>N===T)}}function M(N,I=!1){var T,P,D,R,L;if(!N)return;let $=Object.entries(N).reduce((N,[I,T])=>{if(["authorization","token","userinfo"].includes(I)&&"string"==typeof T){var P;let D=new URL(T);N[I]={url:`${D.origin}${D.pathname}`,params:Object.fromEntries(null!=(P=D.searchParams)?P:[])}}else N[I]=T;return N},{});return I||null!=(T=$.version)&&T.startsWith("1.")||($.idToken=!!(null!=(P=null!=(D=$.idToken)?D:null==(R=$.wellKnown)?void 0:R.includes("openid-configuration"))?P:null==(L=$.authorization)||null==(L=L.params)||null==(L=L.scope)?void 0:L.includes("openid")),$.checks||($.checks=["state"])),$}},46305:(N,I,T)=>{"use strict";T.d(I,{k:()=>R});var P=T(48306),D=T(37149),M=T(25028),R=class{#I;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,D.gn)(this.gcTime)&&(this.#I=P.zs.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(N){this.gcTime=Math.max(this.gcTime||0,N??((0,M.S)()?1/0:3e5))}clearGcTimeout(){void 0!==this.#I&&(P.zs.clearTimeout(this.#I),this.#I=void 0)}}},46575:(N,I,T)=>{"use strict";T.d(I,{o:()=>D});let P={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},D=(N,I,T,D)=>P[N]},46615:(N,I,T)=>{"use strict";T.d(I,{P:()=>$,u:()=>F});var P=T(78028),D=T(54956),M=T(65212),R=T(82752);class L{#T;#P;constructor(N){this.#T=(0,D.WQ)(P.A.create({baseURL:N?"https://api.brunel.net/publicationsearch/api/PublicationsSearch":"/api/search/PublicationsSearch",timeout:3e4,headers:N?{"Ocp-Apim-Subscription-Key":"eb0dfbddc7564004b2da4d064f2c54e2"}:{}}),{ttl:36e5}),this.#P=(0,D.WQ)(P.A.create({baseURL:N?"https://api.brunel.net/publicationsearch/api/Suggestions":"/api/search/Suggestions",timeout:3e4,headers:N?{"Ocp-Apim-Subscription-Key":"eb0dfbddc7564004b2da4d064f2c54e2"}:{}}),{ttl:36e5}),this.#T.interceptors.response.use(N=>N,N=>(0,R.r)(N)),this.#P.interceptors.response.use(N=>N,N=>(0,R.r)(N))}getAllByPage=(N,I)=>this.#T.post("/Get",{...N},{headers:{"Content-Type":"application/json"},signal:I}).then(N=>N.data).catch(N=>{M.A.api(`'${N._currentUrl}' Failed to fetch getAllByPage from SearchAPI`,N)});getByPublicationId=(N,I,T)=>this.#T.get("/GetByPublicationId",{params:{publicationId:N,language:I},...T?{cache:{ttl:T}}
652:{}}).then(N=>N.data).catch(N=>{M.A.api(`'${N._currentUrl}' Failed to fetch getByPublicationId from SearchAPI`,N)});getPublicationsForSitemap=(N,I)=>this.#T.post("/GetForSitemap",{language:N,countryPreset:I},{headers:{"Content-Type":"text/json"}}).then(N=>N.data).catch(N=>{M.A.api(`'${N._currentUrl}' Failed to fetch getPublicationsForSitemap from SearchAPI`,N)});getSuggestionsFromKeyword=(N,I)=>this.#P.get("/GetSuggestionsFromKeyword",{params:{keyword:N,language:I}}).then(N=>N.data).catch(N=>{M.A.api(`'${N._currentUrl}' Failed to fetch getSuggestionsFromKeyword from Search API`,N)});getSuggestionsFromLocation=(N,I)=>this.#P.get("/GetSuggestionsFromLocation",{params:{location:N,language:I}}).then(N=>N.data).catch(N=>{M.A.api(`'${N._currentUrl}' Failed to fetch getSuggestionsFromLocation from Search API`,N)});getPostalCodeSuggestions=(N,I)=>this.#P.get("/GetPostalCodeSuggestions",{params:{postalCode:N,language:I}}).then(N=>N.data).catch(N=>{M.A.api(`'${N._currentUrl}' Failed to fetch getPostalCodeSuggestions from Search API`,N)})}let $=new L,F=new L(!0)},46708:(N,I,T)=>{"use strict";T.r(I),T.d(I,{SearchConfigurationBar:()=>W});var P=T(37876),D=T(55776),M=T(53724),R=T(23649),L=T(87273),$=T(55333),F=T(67881),B=T(63366),U=T(43452),H=T(27400),z=T(82868);let W=({language:N,topHero:I,searchBar:T,searchBarData:W,setSearchBarData:q,getPublicationsQuery:G,onSearch:K})=>{let{keywordData:V,locationData:Y,updateKeywordSuggestion:J,updateLocationSuggestion:Q,honeypotValue:Z,setHoneypotValue:X}=(0,M.useSearchConfigurationBar)({language:N}),ee=(0,D.resolveTopHeroImage)(I),et=()=>{Z||K()};return(0,P.jsxs)(B.az,{"data-testid":z.Qa.TestIds.JobsSearchBarComponent.base,className:"relative top-0 z-10 flex h-70 w-full bg-accent-fiord bg-cover md:h-100 lg:relative lg:h-130 lg:justify-center",children:[ee&&(0,P.jsx)(L._,{priority:!0,field:{src:ee},alt:"Search Bar Hero Image",className:"absolute size-full object-cover object-top"}),!ee&&(0,$.Cx)()&&(0,P.jsx)(H.$,{id:"SearchConfigurationBarHero",title:"Hero Image not Defined",msg:"Please define a hero image."}),(0,P.jsx)(B.az,{className:"absolute size-full bg-black opacity-40"}),(0,P.jsxs)(B.az,{className:"lg:x-0 relative top-0 flex h-full max-w-(--breakpoint-lg) flex-1 flex-col justify-center gap-6 px-6 md:h-full md:pt-18.5 lg:mt-0 lg:gap-4 lg:px-0",children:[(0,P.jsx)(B.o5,{className:"line-clamp-1 hidden tracking-normal! text-white md:block lg:line-clamp-none lg:text-[90px] lg:leading-[90px]",type:"h1",plainText:I?.title,"data-testid":z.Qa.TestIds.General.pageTitle}),(0,P.jsxs)(B.az,{id:"searchBar",className:"z-10 flex h-15 flex-col rounded-sm shadow-default md:h-20 md:flex-row","data-testid":z.Qa.TestIds.JobsSearchBarComponent.searchbar,children:[(0,P.jsx)(U.m,{containerClasses:"search-bar-keyword-dropdown-container",headerClasses:"search-bar-keyword-dropdown-header",contentClasses:"search-bar-keyword-dropdown-content",iconNameLeft:"search",title:T?.keyword?.title??"[keyword title]",placeholder:T?.keyword?.placeholder??"[keyword placeholder]",value:W.keyword,boldMatchValue:!0,data:V,onChange:N=>{q({...W,keyword:N}),J(N)},onSelect:N=>{q({...W,keyword:N}),J(N)},onDelete:()=>{q({...W,keyword:""}),J(""),G(void 0,void 0,{...W,keyword:""})},onEnter:et}),(0,P.jsx)("input",{type:"text",name:"a3f9e21c-6b84-4f10-9d27-8c5e0b1a4f93",value:Z,onChange:N=>X(N.target.value),tabIndex:-1,autoComplete:"off","aria-hidden":"true",className:"absolute size-0 overflow-hidden opacity-0"}),(0,P.jsx)(U.m,{containerClasses:"search-bar-location-dropdown-container hidden md:block",headerClasses:"search-bar-location-dropdown-header",contentClasses:"search-bar-location-dropdown-content",iconNameLeft:"location",title:T?.location?.title??"[location title]",placeholder:T?.location?.placeholder??"[location placeholder]",value:W.location,boldMatchValue:!0,data:Y,onChange:N=>{q({...W,location:N}),Q(N)},onSelect:N=>{q({...W,location:N}),Q(N)},onDelete:()=>{q({...W,location:""}),Q(""),G(void 0,void 0,{...W,location:""})},onEnter:et}),(0,P.jsx)(U.m,{containerClasses:"search-bar-distance-dropdown-container hidden md:block",headerClasses:"search-bar-distance-dropdown-header",contentClasses:"search-bar-distance-dropdown-content",iconNameRight:"chevron-down",title:T?.distance?.title??"[distance title]",value:W.distance.concat(" ").concat(T?.distances?.defaultUnit??"[default unit]"),data:T?.distances?.valueOptions,onSelect:N=>{q({...W,distance:N})}}),(0,P.jsx)(B.az,{className:"search-bar-search-button-container",children:(0,P.jsx)(R.Button,{id:F.y.CTAButton,className:"h-12 w-full lg:w-37.5",iconSide:"right",iconName:"
652chevron-right",variant:"primary",background:"white",plainText:T?.searchButtonLabel??"[search button label]",onClick:et})})]})]})]})}},46968:(N,I,T)=>{var P=T(94147);function D(){var I,T,M="function"==typeof Symbol?Symbol:{},R=M.iterator||"@@iterator",L=M.toStringTag||"@@toStringTag";function $(N,D,M,R){var L=Object.create((D&&D.prototype instanceof B?D:B).prototype);return P(L,"_invoke",function(N,P,D){var M,R,L,$=0,B=D||[],U=!1,H={p:0,n:0,v:I,a:z,f:z.bind(I,4),d:function(N,T){return M=N,R=0,L=I,H.n=T,F}};function z(N,P){for(R=N,L=P,T=0;!U&&$&&!D&&T<B.length;T++){var D,M=B[T],z=H.p,W=M[2];N>3?(D=W===P)&&(L=M[(R=M[4])?5:(R=3,3)],M[4]=M[5]=I):M[0]<=z&&((D=N<2&&z<M[1])?(R=0,H.v=P,H.n=M[1]):z<W&&(D=N<3||M[0]>P||P>W)&&(M[4]=N,M[5]=P,H.n=W,R=0))}if(D||N>1)return F;throw U=!0,P}return function(D,B,W){if($>1)throw TypeError("Generator is already running");for(U&&1===B&&z(B,W),R=B,L=W;(T=R<2?I:L)||!U;){M||(R?R<3?(R>1&&(H.n=-1),z(R,L)):H.n=L:H.v=L);try{if($=2,M){if(R||(D="next"),T=M[D]){if(!(T=T.call(M,L)))throw TypeError("iterator result is not an object");if(!T.done)return T;L=T.value,R<2&&(R=0)}else 1===R&&(T=M.return)&&T.call(M),R<2&&(L=TypeError("The iterator does not provide a '"+D+"' method"),R=1);M=I}else if((T=(U=H.n<0)?L:N.call(P,H))!==F)break}catch(N){M=I,R=1,L=N}finally{$=1}}return{value:T,done:U}}}(N,M,R),!0),L}var F={};function B(){}function U(){}function H(){}T=Object.getPrototypeOf;var z=H.prototype=B.prototype=Object.create([][R]?T(T([][R]())):(P(T={},R,function(){return this}),T));function W(N){return Object.setPrototypeOf?Object.setPrototypeOf(N,H):(N.__proto__=H,P(N,L,"GeneratorFunction")),N.prototype=Object.create(z),N}return U.prototype=H,P(z,"constructor",H),P(H,"constructor",U),U.displayName="GeneratorFunction",P(H,L,"GeneratorFunction"),P(z),P(z,L,"Generator"),P(z,R,function(){return this}),P(z,"toString",function(){return"[object Generator]"}),(N.exports=D=function(){return{w:$,m:W}}
652,N.exports.__esModule=!0,N.exports.default=N.exports)()}N.exports=D,N.exports.__esModule=!0,N.exports.default=N.exports},46995:(N,I,T)=>{"use strict";T.r(I),T.d(I,{resolveVacancyFields:()=>P,resolveVacancyResultUrl:()=>M,resolveVisibleFields:()=>D});let P=N=>N?.map(N=>N.name)?.slice(0,5)??[],D=(N,I)=>N.length>0?N:I?["location","endDate"]:["location","workingHours","endDate"],M=(N,I,T)=>`${N?.toSlug(T)}-${I}`.toLowerCase()},47099:(N,I,T)=>{let P;var D=T(99742),M=T(82909).Buffer;let{inspect:R}=T(68994),L=T(40939),$=T(63426),{strict:F}=T(34322),B=T(48041),U=T(3305),{URL:H,URLSearchParams:z}=T(3305),W=T(77254),q=T(60247),G=T(47848),K=T(93022),V=T(93298),Y=T(53412),J=T(9391),{assertSigningAlgValuesSupport:Q,assertIssuerConfiguration:Z}=T(52492),X=T(86355),ee=T(79289),et=T(79435),er=T(10490),{OPError:en,RPError:ea}=T(79391),ei=T(71807),{random:eo}=T(16436),es=T(18707),{CLOCK_TOLERANCE:el}=T(13466),{keystores:ec}=T(86159),eu=T(75402),ed=T(85418),{authenticatedPost:ef,resolveResponseType:eh,resolveRedirectUri:ep}=T(78425),{queryKeyStore:em}=T(34341),eg=T(4022),[ey,eb]=D.version.slice(1).split(".").map(N=>parseInt(N,10)),ev=ey>=17||16===ey&&eb>=9,ew=Symbol(),ex=Symbol(),eA=Symbol();function eE(N){return X(N,"access_token","code","error_description","error_uri","error","expires_in","id_token","iss","response","session_state","state","token_type")}function eS(N,I="Bearer"){return`${I} ${N}`}function e_(N){let I=U.parse(N);return I.search?B.parse(I.search.substring(1)):{}}function ek(N,I,T){if(void 0===N[T])throw new ea({message:`missing required JWT property ${T}`,jwt:I})}function eC(N){let I={client_id:this.client_id,scope:"openid",response_type:eh.call(this),redirect_uri:ep.call(this),...N};return Object.entries(I).forEach(([N,T])=>{null==T?delete I[N]:"claims"===N&&"object"==typeof T?I[N]=JSON.stringify(T):"resource"===N&&Array.isArray(T)?I[N]=T:"string"!=typeof T&&(I[N]=String(T))}),I}function ej(N){if(!ee(N)||!Array.isArray(N.keys)||N.keys.some(N=>!ee(N)||!("kty"in N)))throw TypeError("jwks must be a JSON Web Key Set formatted object");return eu.fromJWKS(N,{onlyPrivate:!0})}function eO(N,I){try{let T=N.issuer.token_endpoint_auth_methods_supported;!T.includes(I.token_endpoint_auth_method)&&T.includes("client_secret_post")&&(I.token_endpoint_auth_method="client_secret_post")}catch(N){}}function eN(N,I,T){if(I.token_endpoint_auth_method||eO(N,T),I.redirect_uri){if(I.redirect_uris)throw TypeError("provide a redirect_uri or redirect_uris, not both");T.redirect_uris=[I.redirect_uri],delete T.redirect_uri}if(I.response_type){if(I.response_types)throw TypeError("provide a response_type or response_types, not both");T.response_types=[I.response_type],delete T.response_type}}function eI(N,I,T){if(!I[`${N}_endpoint`])return;let P=T.token_endpoint_auth_method,D=T.token_endpoint_auth_signing_alg,M=`${N}_endpoint_auth_method`,R=`${N}_endpoint_auth_signing_alg`;void 0===T[M]&&void 0===T[R]&&(void 0!==P&&(T[M]=P),void 0!==D&&(T[R]=D))}class eT{#D;#M;#R;#L;constructor(N,I,T={},P,D){if(this.#D=new Map,this.#M=N,this.#R=I,"string"!=typeof T.client_id||!T.client_id)throw TypeError("client_id is required");const M={grant_types:["authorization_code"],id_token_signed_response_alg:"RS256",authorization_signed_response_alg:"RS256",response_types:["code"],token_endpoint_auth_method:"client_secret_basic",...this.fapi1()?{grant_types:["authorization_code","implicit"],id_token_signed_response_alg:"PS256",authorization_signed_response_alg:"PS256",response_types:["code id_token"],tls_client_certificate_bound_access_tokens:!0,token_endpoint_auth_method:void 0}:void 0,...this.fapi2()?{id_token_signed_response_alg:"PS256",authorization_signed_response_alg:"PS256",token_endpoint_auth_method:void 0}:void 0,...T};if(this.fapi())switch(M.token_endpoint_auth_method){case"self_signed_tls_client_auth":case"tls_client_auth":break;case"private_key_jwt":if(!P)throw TypeError("jwks is required");break;case void 0:throw TypeError("token_endpoint_auth_method is required");default:throw TypeError("invalid or unsupported token_endpoint_auth_method")}if(this.fapi2()&&(M.tls_client_certificate_bound_access_tokens&&M.dpop_bound_access_tokens||!M.tls_client_certificate_bound_access_tokens&&!M.dpop_bound_access_tokens))throw TypeError("either tls_client_certificate_bound_access_tokens or dpop_bound_access_tokens must be set to true");if(eN(this,T,M),Q("token",this.issuer,M),["introspection","revocation"].forEach(N=>{eI(N,this.issuer,M),Q(N,this.issuer,M)}
652),Object.entries(M).forEach(([N,I])=>{this.#D.set(N,I),this[N]||Object.defineProperty(this,N,{get(){return this.#D.get(N)},enumerable:!0})}),void 0!==P){const N=ej.call(this,P);ec.set(this,N)}null!=D&&D.additionalAuthorizedParties&&(this.#L=ed(D.additionalAuthorizedParties)),this[el]=0}authorizationUrl(N={}){if(!ee(N))throw TypeError("params must be a plain object");Z(this.issuer,"authorization_endpoint");let I=new H(this.issuer.authorization_endpoint);for(let[T,P]of Object.entries(eC.call(this,N)))if(Array.isArray(P))for(let N of(I.searchParams.delete(T),P))I.searchParams.append(T,N);else I.searchParams.set(T,P);return I.href.replace(/\+/g,"%20")}authorizationPost(N={}){if(!ee(N))throw TypeError("params must be a plain object");let I=eC.call(this,N),T=Object.keys(I).map(N=>`<input type="hidden" name="${N}" value="${I[N]}"/>`).join("\n");return`<!DOCTYPE html> 653<head> 654<title>Requesting Authorization</title> 655</head> 656<body onload="javascript:document.forms[0].submit()"> 657<form method="post" action="${this.issuer.authorization_endpoint}"> 658 ${T} 659</form> 660</body> 661</html>`}endSessionUrl(N={}){let I;Z(this.issuer,"end_session_endpoint");let{0:T,length:P}=this.post_logout_redirect_uris||[],{post_logout_redirect_uri:D=1===P?T:void 0}=N;if({id_token_hint:I,...N}=N,I instanceof er){if(!I.id_token)throw TypeError("id_token not present in TokenSet");I=I.id_token}let M=U.parse(this.issuer.end_session_endpoint),R=Y(e_(this.issuer.end_session_endpoint),N,{post_logout_redirect_uri:D,client_id:this.client_id},{id_token_hint:I});return Object.entries(R).forEach(([N,I])=>{null==I&&delete R[N]}),M.search=null,M.query=R,U.format(M)}callbackParams(N){let I=N instanceof L.IncomingMessage||N&&N.method&&N.url;if("string"!=typeof N&&!I)throw TypeError("#callbackParams only accepts string urls, http.IncomingMessage or a lookalike");if(!I)return eE(e_(N));switch(N.method){case"GET":return eE(e_(N.url));case"POST":if(void 0===N.body)throw TypeError("incoming message body missing, include a body parser prior to this method call");switch(typeof N.body){case"object":case"string":if(M.isBuffer(N.body))return eE(B.parse(N.body.toString("utf-8")));if("string"==typeof N.body)return eE(B.parse(N.body));return eE(N.body);default:throw TypeError("invalid IncomingMessage body object")}default:throw TypeError("invalid IncomingMessage method")}}async callback(N,I,T={},{exchangeBody:P,clientAssertionPayload:D,DPoP:M}={}){let R=eE(I);if(!T.jarm||"response"in I){if("response"in I){let N=await this.decryptJARM(R.response);R=await this.validateJARM(N)}}else throw new ea({message:"expected a JARM response",checks:T,params:R});if(this.default_max_age&&!T.max_age&&(T.max_age=this.default_max_age),R.state&&!T.state)throw TypeError("checks.state argument is missing");if(!R.state&&T.state)throw new ea({message:"state missing from the response",checks:T,params:R});if(T.state!==R.state)throw new ea({printf:["state mismatch, expected %s, got: %s",T.state,R.state],checks:T,params:R});if("iss"in R){if(Z(this.issuer,"issuer"),R.iss!==this.issuer.issuer)throw new ea({printf:["iss mismatch, expected %s, got: %s",this.issuer.issuer,R.iss],params:R})}else if(this.issuer.authorization_response_iss_parameter_supported&&!("id_token"in R)&&!("response"in I))throw new ea({message:"iss missing from the response",params:R});if(R.error)throw new en(R);let L={code:["code"],id_token:["id_token"],token:["access_token","token_type"]};if(T.response_type){for(let N of T.response_type.split(" "))if("none"===N){if(R.code||R.id_token||R.access_token)throw new ea({message:'unexpected params encountered for "none" response',checks:T,params:R})}else for(let I of L[N])if(!R[I])throw new ea({message:`${I} missing from response`,checks:T,params:R})}if(R.id_token){let N=new er(R);if(await this.decryptIdToken(N),await this.validateIdToken(N,T.nonce,"authorization",T.max_age,T.state),!R.code)return N}if(R.code){let I=await this.grant({...P,grant_type:"authorization_code",code:R.code,redirect_uri:N,code_verifier:T.code_verifier},{clientAssertionPayload:D,DPoP:M});return await this.decryptIdToken(I),await this.validateIdToken(I,T.nonce,"token",T.max_age),R.session_state&&(I.session_state=R.session_state),I}return new er(R)}async oauthCallback(N,I,T={},{exchangeBody:P,clientAssertionPayload:D,DPoP:M}={}){let R=eE(I);if(!T.jarm||"response"in I){if("response"in I){let N=await this.decryptJARM(R.response);R=await this.validateJARM(N)}}else throw new ea({message:"expected a JARM response",checks:T,params:R});if(R.state&&!T.state)throw TypeError("checks.state argument is missing");if(!R.state&&T.state)throw new ea({message:"state missing from the response",checks:T,params:R});if(T.state!==R.state)throw new ea({printf:["state mismatch, expected %s, got: %s",T.state,R.state],checks:T,params:R});if("iss"in R){if(Z(this.issuer,"issuer"),R.iss!==this.issuer.issuer)throw new ea({printf:["iss mismatch, expected %s, got: %s",this.issuer.issuer,R.iss],params:R})}else if(this.issuer.authorization_response_iss_parameter_supported&&!("id_token"in R)&&!("response"in I))throw new ea({message:"iss missing from the response",params:R});if(R.error)throw new en(R);if("string"==typeof R.id_token&&R.id_token.length)throw new ea({message:"id_token detected in the response, you must use client.callback() instead of client.oauthCallback()",params:R});delete R.id_token;let L={code:["code"],token:["access_token","token_type"]};if(T.response_type)for(let N of T.response_type.split(" ")){if("none"===N&&(R.code||R.id_token||R.access_token))throw new ea({message:'unexpected params encountered for "none" response',checks:T,params:R});if(L[N]){for(let I of L[N])if(!R[I])throw new ea({message:`${I} missing from response`,checks:T,params:R})}}if(R.code){let I=await this.grant({...P,grant_type:"authorization_code",code:R.code,redirect_uri:N,code_verifier:T.code_verifier},{clientAssertionPayload:D,DPoP:M});if("string"==typeof I.id_token&&I.id_token.length)throw new ea({message:"id_token detected in the response, you must use client.callback() instead of client.oauthCallback()",params:R});return delete I.id_token,I}return new er(R)}async decryptIdToken(N){if(!this.id_token_encrypted_response_alg)return N;let I=N;if(I instanceof er){if(!I.id_token)throw TypeError("id_token not present in TokenSet");I=I.id_token}let T=this.id_token_encrypted_response_alg,P=this.id_token_encrypted_response_enc,D=await this.decryptJWE(I,T,P);return N instanceof er?(N.id_token=D,N):D}async validateJWTUserinfo(N){let I=this.userinfo_signed_response_alg;return this.validateJWT(N,I,[])}async decryptJARM(N){if(!this.authorization_encrypted_response_alg)return N;let I=this.authorization_encrypted_response_alg,T=this.authorization_encrypted_response_enc;return this.decryptJWE(N,I,T)}async decryptJWTUserinfo(N){if(!this.userinfo_encrypted_response_alg)return N;let I=this.userinfo_encrypted_response_alg,T=this.userinfo_encrypted_response_enc;return this.decryptJWE(N,I,T)}async decryptJWE(N,I,T="A128CBC-HS256"){let P,D=JSON.parse(V.decode(N.split(".")[0]));if(D.alg!==I)throw new ea({printf:["unexpected JWE alg received, expected %s, got: %s",I,D.alg],jwt:N});
661if(D.enc!==T)throw new ea({printf:["unexpected JWE enc received, expected %s, got: %s",T,D.enc],jwt:N});let M=N=>new TextDecoder().decode(N.plaintext);if(I.match(/^(?:RSA|ECDH)/)){let I=await ec.get(this),T=W.decodeProtectedHeader(N);for(let D of I.all({...T,use:"enc"}))if(P=await W.compactDecrypt(N,await D.keyObject(T.alg)).then(M,()=>{}))break}else P=await W.compactDecrypt(N,this.secretForAlg("dir"===I?T:I)).then(M,()=>{});if(!P)throw new ea({message:"failed to decrypt JWE",jwt:N});return P}async validateIdToken(N,I,T,P,D){let M=N,R=this.id_token_signed_response_alg;if(M instanceof er){if(!M.id_token)throw TypeError("id_token not present in TokenSet");M=M.id_token}M=String(M);let L=ei(),{protected:$,payload:F,key:B}=await this.validateJWT(M,R);if("number"==typeof P||P!==eA&&this.require_auth_time){if(!F.auth_time)throw new ea({message:"missing required JWT property auth_time",jwt:M});if("number"!=typeof F.auth_time)throw new ea({message:"JWT auth_time claim must be a JSON numeric value",jwt:M})}if("number"==typeof P&&F.auth_time+P<L-this[el])throw new ea({printf:["too much time has elapsed since the last End-User authentication, max_age %i, auth_time: %i, now %i",P,F.auth_time,L-this[el]],now:L,tolerance:this[el],auth_time:F.auth_time,jwt:M});if(I!==ex&&(F.nonce||void 0!==I)&&F.nonce!==I)throw new ea({printf:["nonce mismatch, expected %s, got: %s",I,F.nonce],jwt:M});if("authorization"===T){if(!F.at_hash&&N.access_token)throw new ea({message:"missing required property at_hash",jwt:M});if(!F.c_hash&&N.code)throw new ea({message:"missing required property c_hash",jwt:M});if(this.fapi1()&&!F.s_hash&&(N.state||D))throw new ea({message:"missing required property s_hash",jwt:M});if(F.s_hash){if(!D)throw TypeError('cannot verify s_hash, "checks.state" property not provided');try{q.validate({claim:"s_hash",source:"state"},F.s_hash,D,$.alg,B.jwk&&B.jwk.crv)}catch(N){throw new ea({message:N.message,jwt:M})}}}if(this.fapi()&&F.iat<L-3600)throw new ea({printf:["JWT issued too far in the past, now %i, iat %i",L,F.iat],now:L,tolerance:this[el],iat:F.iat,jwt:M});if(N.access_token&&void 0!==F.at_hash)try{q.validate({claim:"at_hash",source:"access_token"},F.at_hash,N.access_token,$.alg,B.jwk&&B.jwk.crv)}catch(N){throw new ea({message:N.message,jwt:M})}if(N.code&&void 0!==F.c_hash)try{q.validate({claim:"c_hash",source:"code"},F.c_hash,N.code,$.alg,B.jwk&&B.jwk.crv)}catch(N){throw new ea({message:N.message,jwt:M})}return N}async validateJWT(N,I,T=["iss","sub","aud","exp","iat"]){let P,D,M,R="https://self-issued.me"===this.issuer.issuer,L=ei();try{({header:P,payload:D}=K(N,{complete:!0}))}catch(I){throw new ea({printf:["failed to decode JWT (%s: %s)",I.name,I.message],jwt:N})}if(P.alg!==I)throw new ea({printf:["unexpected JWT alg received, expected %s, got: %s",I,P.alg],jwt:N});if(R&&(T=[...T,"sub_jwk"]),T.forEach(ek.bind(void 0,D,N)),void 0!==D.iss){let I=this.issuer.issuer;if(this.#R&&(I=this.issuer.issuer.replace("{tenantid}",D.tid)),D.iss!==I)throw new ea({printf:["unexpected iss value, expected %s, got: %s",I,D.iss],jwt:N})}if(void 0!==D.iat&&"number"!=typeof D.iat)throw new ea({message:"JWT iat claim must be a JSON numeric value",jwt:N});if(void 0!==D.nbf){if("number"!=typeof D.nbf)throw new ea({message:"JWT nbf claim must be a JSON numeric value",jwt:N});if(D.nbf>L+this[el])throw new ea({printf:["JWT not active yet, now %i, nbf %i",L+this[el],D.nbf],now:L,tolerance:this[el],nbf:D.nbf,jwt:N})}if(void 0!==D.exp){if("number"!=typeof D.exp)throw new ea({message:"JWT exp claim must be a JSON numeric value",jwt:N});if(L-this[el]>=D.exp)throw new ea({printf:["JWT expired, now %i, exp %i",L-this[el],D.exp],now:L,tolerance:this[el],exp:D.exp,jwt:N})}if(void 0!==D.aud){if(Array.isArray(D.aud)){if(D.aud.length>1&&!D.azp)throw new ea({message:"missing required JWT property azp",jwt:N});if(!D.aud.includes(this.client_id))throw new ea({printf:["aud is missing the client_id, expected %s to be included in %j",this.client_id,D.aud],jwt:N})}else if(D.aud!==this.client_id)throw new ea({printf:["aud mismatch, expected %s, got: %s",this.client_id,D.aud],jwt:N})}if(void 0!==D.azp){let I=this.#L;if(!(I="string"==typeof I?[this.client_id,I]:Array.isArray(I)?[this.client_id,...I]:[this.client_id]).includes(D.azp))throw new ea({printf:["azp mismatch, got: %s",D.azp],jwt:N})}if(R){try{F(ee(D.sub_jwk));let N=await W.importJWK(D.sub_jwk,P.alg);F.equal(N.type,"public"),M=[{keyObject:()=>N}]}catch(I){throw new ea({message:"failed to use sub_jwk claim as an asymmetric JSON Web Key",jwt:N})}if(await W.calculateJwkThumbprint(D.sub_jwk)!==D.sub)throw new ea({message:"failed to match the subject with sub_jwk",jwt:N})}else P.alg.startsWith("HS")?M=[this.secretForAlg(P.alg)]:"none"!==P.alg&&(M=await em.call(this.issuer,{...P,use:"sig"}));if(!M&&"none"===P.alg)return{protected:P,payload:D};for(let I of M){let T=await W.compactVerify(N,I instanceof Uint8Array?I:await I.keyObject(P.alg)).catch(()=>{});if(T)return{payload:D,protected:T.protectedHeader,key:I}}throw new ea({message:"failed to validate JWT signature",jwt:N})}async refresh(N,{exchangeBody:I,clientAssertionPayload:T,DPoP:P}={}){let D=N;if(D instanceof er){if(!D.refresh_token)throw TypeError("refresh_token not present in TokenSet");D=D.refresh_token}let M=await this.grant({...I,grant_type:"refresh_token",refresh_token:String(D)},{clientAssertionPayload:T,DPoP:P});if(M.id_token&&(await this.decryptIdToken(M),await this.validateIdToken(M,ex,"token",eA),N instanceof er&&N.id_token)){let I=N.claims().sub,T=M.claims().sub;if(T!==I)throw new ea({printf:["sub mismatch, expected %s, got: %s",I,T],jwt:M.id_token})}return M}async requestResource(N,I,{method:T,headers:P,body:D,DPoP:M,tokenType:R=M?"DPoP":I instanceof er?I.token_type:"Bearer"}={}
661,L){if(I instanceof er){if(!I.access_token)throw TypeError("access_token not present in TokenSet");I=I.access_token}if(I){if("string"!=typeof I)throw TypeError("invalid access token provided")}else throw TypeError("no access token provided");let $={headers:{Authorization:eS(I,R),...P},body:D},F=!!this.tls_client_certificate_bound_access_tokens,B=await es.call(this,{...$,responseType:"buffer",method:T,url:N},{accessToken:I,mTLS:F,DPoP:M}),U=B.headers["www-authenticate"];return L!==ew&&U&&U.toLowerCase().startsWith("dpop ")&&"use_dpop_nonce"===J(U).error?this.requestResource(N,I,{method:T,headers:P,body:D,DPoP:M,tokenType:R}):B}async userinfo(N,{method:I="GET",via:T="header",tokenType:P,params:D,DPoP:M}={}){let R;Z(this.issuer,"userinfo_endpoint");let L={tokenType:P,method:String(I).toUpperCase(),DPoP:M};if("GET"!==L.method&&"POST"!==L.method)throw TypeError("#userinfo() method can only be POST or a GET");if("body"===T&&"POST"!==L.method)throw TypeError("can only send body on POST");let $=!!(this.userinfo_signed_response_alg||this.userinfo_encrypted_response_alg);$?L.headers={Accept:"application/jwt"}:L.headers={Accept:"application/json"},this.tls_client_certificate_bound_access_tokens&&this.issuer.mtls_endpoint_aliases&&(R=this.issuer.mtls_endpoint_aliases.userinfo_endpoint),R=new H(R||this.issuer.userinfo_endpoint),"body"===T&&(L.headers.Authorization=void 0,L.headers["Content-Type"]="application/x-www-form-urlencoded",L.body=new z,L.body.append("access_token",N instanceof er?N.access_token:N)),D&&("GET"===L.method?Object.entries(D).forEach(([N,I])=>{R.searchParams.append(N,I)}):L.body?Object.entries(D).forEach(([N,I])=>{L.body.append(N,I)}):(L.body=new z,L.headers["Content-Type"]="application/x-www-form-urlencoded",Object.entries(D).forEach(([N,I])=>{L.body.append(N,I)}))),L.body&&(L.body=L.body.toString());let B=await this.requestResource(R,N,L),U=et(B,{bearer:!0});if($){if(!/^application\/jwt/.test(B.headers["content-type"]))throw new ea({message:"expected application/jwt response from the userinfo_endpoint",response:B});let N=B.body.toString(),I=await this.decryptJWTUserinfo(N);if(this.userinfo_signed_response_alg)({payload:U}=await this.validateJWTUserinfo(I));else try{U=JSON.parse(I),F(ee(U))}catch(N){throw new ea({message:"failed to parse userinfo JWE payload as JSON",jwt:I})}}else try{U=JSON.parse(B.body)}catch(N){throw Object.defineProperty(N,"response",{value:B}),N}if(N instanceof er&&N.id_token){let I=N.claims().sub;if(U.sub!==I)throw new ea({printf:["userinfo sub mismatch, expected %s, got: %s",I,U.sub],body:U,jwt:N.id_token})}return U}encryptionSecret(N){let I=N<=256?"sha256":N<=384?"sha384":N<=512&&"sha512";if(!I)throw Error("unsupported symmetric encryption key derivation");return $.createHash(I).update(this.client_secret).digest().slice(0,N/8)}secretForAlg(N){if(!this.client_secret)throw TypeError("client_secret is required");return/^A(\d{3})(?:GCM)?KW$/.test(N)?this.encryptionSecret(parseInt(RegExp.$1,10)):/^A(\d{3})(?:GCM|CBC-HS(\d{3}))$/.test(N)?this.encryptionSecret(parseInt(RegExp.$2||RegExp.$1,10)):new TextEncoder().encode(this.client_secret)}async grant(N,{clientAssertionPayload:I,DPoP:T}={},P){let D;Z(this.issuer,"token_endpoint");let M=await ef.call(this,"token",{form:N,responseType:"json"},{clientAssertionPayload:I,DPoP:T});try{D=et(M)}catch(D){if(P!==ew&&D instanceof en&&"use_dpop_nonce"===D.error)return this.grant(N,{clientAssertionPayload:I,DPoP:T},ew);throw D}return new er(D)}async deviceAuthorization(N={},{exchangeBody:I,clientAssertionPayload:T,DPoP:P}={}){Z(this.issuer,"device_authorization_endpoint"),Z(this.issuer,"token_endpoint");let D=eC.call(this,{client_id:this.client_id,redirect_uri:null,response_type:null,...N}),M=et(await ef.call(this,"device_authorization",{responseType:"json",form:D},{clientAssertionPayload:T,endpointAuthMethod:"token"}));return new eg({client:this,exchangeBody:I,clientAssertionPayload:T,response:M,maxAge:N.max_age,DPoP:P})}async revoke(N,I,{revokeBody:T,clientAssertionPayload:P}={}){if(Z(this.issuer,"revocation_endpoint"),void 0!==I&&"string"!=typeof I)throw TypeError("hint must be a string");let D={...T,token:N};I&&(D.token_type_hint=I),et(await ef.call(this,"revocation",{form:D},{clientAssertionPayload:P}),{body:!1})}async introspect(N,I,{introspectBody:T,clientAssertionPayload:P}={}){if(Z(this.issuer,"introspection_endpoint"),void 0!==I&&"string"!=typeof I)throw TypeError("hint must be a string");let D={...T,token:N};return I&&(D.token_type_hint=I),et(await ef.call(this,"introspection",{form:D,responseType:"json"},{clientAssertionPayload:P}))}static async register(N,I={}){let{initialAccessToken:T,jwks:P,...D}=I;return Z(this.issuer,"registration_endpoint"),void 0===P||N.jwks||N.jwks_uri||(N.jwks=(await ej.call(this,P)).toJWKS()),new this(et(await es.call(this,{headers:{Accept:"application/json",...T?{Authorization:eS(T)}:void 0},responseType:"json",json:N,url:this.issuer.registration_endpoint,method:"POST"}),{statusCode:201,bearer:!0}),P,D)}get metadata(){return ed(Object.fromEntries(this.#D.entries()))}static async fromUri(N,I,T,P){return new this(et(await es.call(this,{method:"GET",url:N,responseType:"json",headers:{Authorization:eS(I),Accept:"application/json"}}),{bearer:!0}),T,P)}async requestObject(N={},{sign:I=this.request_object_signing_alg||"none",encrypt:{alg:T=this.request_object_encryption_alg,enc:P=this.request_object_encryption_enc||"A128CBC-HS256"}={}}={}){let D,M;if(!ee(N))throw TypeError("requestObject must be a plain object");let R=ei(),L={alg:I,typ:"oauth-authz-req+jwt"},$=JSON.stringify(Y({},N,{iss:this.client_id,aud:this.issuer.issuer,client_id:this.client_id,jti:eo(),iat:R,exp:R+300,...this.fapi()?{nbf:R}:void 0}));if("none"===I)D=[V.encode(JSON.stringify(L)),V.encode($),""].join(".");else{let N=I.startsWith("HS");if(N)M=this.secretForAlg(I);else{let N=await ec.get(this);if(!N)throw TypeError(`no keystore present for client, cannot sign using alg ${I}`);if(!(M=N.get({alg:I,use:"sig"})))throw TypeError(`no key to sign with found for alg ${I}`)}D=await new W.CompactSign(new TextEncoder().encode($)).setProtectedHeader({...L,kid:N?void 0:M.jwk.kid}
661).sign(N?M:await M.keyObject(I))}if(!T)return D;let F={alg:T,enc:P,cty:"oauth-authz-req+jwt"};return F.alg.match(/^(RSA|ECDH)/)?[M]=await em.call(this.issuer,{alg:F.alg,use:"enc"},{allowMulti:!0}):M=this.secretForAlg("dir"===F.alg?F.enc:F.alg),new W.CompactEncrypt(new TextEncoder().encode(D)).setProtectedHeader({...F,kid:M instanceof Uint8Array?void 0:M.jwk.kid}).encrypt(M instanceof Uint8Array?M:await M.keyObject(F.alg))}async pushedAuthorizationRequest(N={},{clientAssertionPayload:I}={}){Z(this.issuer,"pushed_authorization_request_endpoint");let T={..."request"in N?N:eC.call(this,N),client_id:this.client_id},P=await ef.call(this,"pushed_authorization_request",{responseType:"json",form:T},{clientAssertionPayload:I,endpointAuthMethod:"token"}),D=et(P,{statusCode:201});if(!("expires_in"in D))throw new ea({message:"expected expires_in in Pushed Authorization Successful Response",response:P});if("number"!=typeof D.expires_in)throw new ea({message:"invalid expires_in value in Pushed Authorization Successful Response",response:P});if(!("request_uri"in D))throw new ea({message:"expected request_uri in Pushed Authorization Successful Response",response:P});if("string"!=typeof D.request_uri)throw new ea({message:"invalid request_uri value in Pushed Authorization Successful Response",response:P});return D}get issuer(){return this.#M}[R.custom](){return`${this.constructor.name} ${R(this.metadata,{depth:1/0,colors:D.stdout.isTTY,compact:!1,sorted:!0})}`}fapi(){return this.fapi1()||this.fapi2()}fapi1(){return"FAPI1Client"===this.constructor.name}fapi2(){return"FAPI2Client"===this.constructor.name}async validateJARM(N){let I=this.authorization_signed_response_alg,{payload:T}=await this.validateJWT(N,I,["iss","exp","aud"]);return eE(T)}async dpopProof(N,I,T){let D;if(!ee(N))throw TypeError("payload must be a plain object");if(G(I))D=I;else if("CryptoKey"===I[Symbol.toStringTag])D=I;else if("node:crypto"===W.cryptoRuntime)D=$.createPrivateKey(I);else throw TypeError("unrecognized crypto runtime");if("private"!==D.type)throw TypeError('"DPoP" option must be a private key');let M=P.call(this,D,I);if(!M)throw TypeError("could not determine DPoP JWS Algorithm");return new W.SignJWT({ath:T?V.encode($.createHash("sha256").update(T).digest()):void 0,...N}).setProtectedHeader({alg:M,typ:"dpop+jwt",jwk:await eL(D,I)}).setIssuedAt().setJti(eo()).sign(D)}}
661function eP(N){switch(N.algorithm.name){case"Ed25519":case"Ed448":return"EdDSA";case"ECDSA":switch(N.algorithm.namedCurve){case"P-256":return"ES256";case"P-384":return"ES384";case"P-521":return"ES512"}break;case"RSASSA-PKCS1-v1_5":return`RS${N.algorithm.hash.name.slice(4)}`;case"RSA-PSS":return`PS${N.algorithm.hash.name.slice(4)}`;default:throw TypeError("unsupported DPoP private key")}}if("node:crypto"===W.cryptoRuntime){P=function(N,I){if("CryptoKey"===I[Symbol.toStringTag])return eP(N);switch(N.asymmetricKeyType){case"ed25519":case"ed448":return"EdDSA";case"ec":return eM(N,I);case"rsa":case ev&&"rsa-pss":return eD(N,I,this.issuer.dpop_signing_alg_values_supported);default:throw TypeError("unsupported DPoP private key")}};let N=/^(?:RS|PS)(?:256|384|512)$/;function eD(I,T,P){if("object"==typeof T&&"jwk"===T.format&&T.key&&T.key.alg)return T.key.alg;if(Array.isArray(P)){let T=P.filter(RegExp.prototype.test.bind(N));return"rsa-pss"===I.asymmetricKeyType&&(T=T.filter(N=>N.startsWith("PS"))),["PS256","PS384","PS512","RS256","RS384","RS384"].find(N=>T.includes(N))}return"PS256"}let I=M.from([42,134,72,206,61,3,1,7]),T=M.from([43,129,4,0,34]),D=M.from([43,129,4,0,35]),R=M.from([43,129,4,0,10]);function eM(N,P){switch("object"==typeof P&&"object"==typeof P.key&&P.key.crv){case"P-256":return"ES256";case"secp256k1":return"ES256K";case"P-384":return"ES384";case"P-512":return"ES512"}let M=N.export({format:"der",type:"pkcs8"}),L=M[1]<128?17:18,$=M[L],F=M.slice(L+1,L+1+$);if(F.equals(I))return"ES256";if(F.equals(T))return"ES384";if(F.equals(D))return"ES512";if(F.equals(R))return"ES256K";throw TypeError("unsupported DPoP private key curve")}}else P=eP;let eR=new WeakMap;async function eL(N,I){if("node:crypto"===W.cryptoRuntime&&"object"==typeof I&&"object"==typeof I.key&&"jwk"===I.format)return X(I.key,"kty","crv","x","y","e","n");if(eR.has(I))return eR.get(I);let T=X(await W.exportJWK(N),"kty","crv","x","y","e","n");return(G(I)||"WebCryptoAPI"===W.cryptoRuntime)&&eR.set(I,T),T}N.exports=(N,I=!1)=>class extends eT{constructor(...T){super(N,I,...T)}static get issuer(){return N}},N.exports.BaseClient=eT},47137:(N,I,T)=>{"use strict";T.d(I,{F:()=>R});var P=T(69241);let D=N=>"boolean"==typeof N?`${N}`:0===N?"0":N,M=P.$,R=(N,I)=>T=>{var P;if((null==I?void 0:I.variants)==null)return M(N,null==T?void 0:T.class,null==T?void 0:T.className);let{variants:R,defaultVariants:L}=I,$=Object.keys(R).map(N=>{let I=null==T?void 0:T[N],P=null==L?void 0:L[N];if(null===I)return null;let M=D(I)||D(P);return R[N][M]}),F=T&&Object.entries(T).reduce((N,I)=>{let[T,P]=I;return void 0===P||(N[T]=P),N},{});return M(N,$,null==I||null==(P=I.compoundVariants)?void 0:P.reduce((N,I)=>{let{class:T,className:P,...D}=I;return Object.entries(D).every(N=>{let[I,T]=N;return Array.isArray(T)?T.includes({...L,...F}[I]):({...L,...F})[I]===T})?[...N,T,P]:N},[]),null==T?void 0:T.class,null==T?void 0:T.className)}},47348:(N,I,T)=>{"use strict";T.d(I,{A:()=>D});var P=T(66419);function D({vacancy:N,pageUrl:I,pageName:T,pageDescription:M,language:R="en"}){if(!N||!I)return;let L=`${I}#jobposting`,$=N=>{let I=N?.toUpperCase(),T={HOUR:!0,DAY:!0,WEEK:!0,MONTH:!0,YEAR:!0};return I&&T[I]?I:"MONTH"};function F(N){if(N?.salaryHide||N?.salaryMin===void 0&&N?.salaryMax===void 0)return;let I=N?.salaryMin??0,T=N?.salaryMax??0;if(0===I||0===T||I===T)return;let P=I,D=T,M=$(N?.salaryPeriod);return{"@type":"MonetaryAmount",currency:(N?.salaryCurrency??"USD").toUpperCase(),value:{"@type":"QuantitativeValue",minValue:P,maxValue:D,unitText:M}}}function B(N){if(N?.salaryHide)return;let I=Math.max(N?.salaryMin??0,N?.salaryMax??0);if(0===I)return;let T=$(N?.salaryPeriod);return{"@type":"MonetaryAmount",currency:(N?.salaryCurrency??"USD").toUpperCase(),value:{"@type":"QuantitativeValue",value:I,unitText:T}}}let U=(0,P.Ho)(N.endDate),H={"@type":"JobPosting","@id":L,title:N.title,description:N.description,identifier:{"@type":"PropertyValue",name:N.title,value:N.publicationId},datePosted:N.startDate,validThrough:N.endDate,directApply:!U,employmentType:(0,P._S)(N.hoursPerWeek)&&N.hoursPerWeek<P.iM?"PART_TIME":"FULL_TIME",hiringOrganization:{"@type":"Organization","@id":"https://www.brunel.net/#organization"},jobLocation:[{"@type":"Place",address:{"@type":"PostalAddress",streetAddress:N.addressLine,addressLocality:N.city,addressRegion:N.region,postalCode:N.postalCode,addressCountry:N.countryName}}],estimatedSalary:F(N),baseSalary:B(N)};return{"@context":"https://schema.org","@graph":[{"@type":"WebPage","@id":I,url:I,name:T,description:M,inLanguage:R,mainEntity:{"@id":L},publisher:{"@type":"Organization","@id":"https://www.brunel.net/#organization"},datePublished:N.startDate,dateModified:N.endDate}
661,H]}}},47643:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});let P=T(10594),D=T(72736);function M(N){return Uint8Array.of((15&N[3])<<4|N[4]>>4&15,(15&N[4])<<4|(240&N[5])>>4,(15&N[5])<<4|15&N[6],N[7],(15&N[1])<<4|(240&N[2])>>4,(15&N[2])<<4|(240&N[3])>>4,16|(240&N[0])>>4,(15&N[0])<<4|(240&N[1])>>4,N[8],N[9],N[10],N[11],N[12],N[13],N[14],N[15])}I.default=function(N){let I=M("string"==typeof N?(0,P.default)(N):N);return"string"==typeof N?(0,D.unsafeStringify)(I):I}},47783:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});let P=T(10594),D=T(72736);function M(N){return Uint8Array.of((15&N[6])<<4|N[7]>>4&15,(15&N[7])<<4|(240&N[4])>>4,(15&N[4])<<4|(240&N[5])>>4,(15&N[5])<<4|(240&N[0])>>4,(15&N[0])<<4|(240&N[1])>>4,(15&N[1])<<4|(240&N[2])>>4,96|15&N[2],N[3],N[8],N[9],N[10],N[11],N[12],N[13],N[14],N[15])}I.default=function(N){let I=M("string"==typeof N?(0,P.default)(N):N);return"string"==typeof N?(0,D.unsafeStringify)(I):I}},47804:(N,I,T)=>{"use strict";T.d(I,{Cn:()=>D,Ty:()=>P,UU:()=>M});let P="https://edge-platform.sitecorecloud.io",D="https://edge.sitecorecloud.io",M={IV_001:'[IV-001] Incorrect value for "edgeUrl". Set the value to a valid URL.',IV_002:'[IV-002] Incorrect value for "timeout". Set the value to an integer greater than or equal to 0.',IV_003:'[IV-003] Incorrect value for "dob". Format the value according to ISO 8601.',IV_004:'[IV-004] Incorrect value for "email". Set the value to a valid email address.',IV_005:'[IV-005] Incorrect value for "expiryDate". Format the value according to ISO 8601.',IV_006:N=>`[IV-006] "extensionData" supports maximum ${N} attributes. Reduce the number of attributes.`,IV_007:N=>`[IV-007] Site "${N}" does not exist or site item tree is missing.`,IE_001:(N,I)=>`[IE-001] "${N}" also requires "${I}". Add the missing dependency.`,IE_002:'[IE-002] SDK not initialized. You must first initialize the SDK using "initContentSdk()".',IE_003:"[IE-003] Timeout exceeded. The server did not respond within the allotted time.",IE_004:N=>`[IE-004] Plugin not registered. You must first add "${N}" to the "initContentSdk()" "plugins" array.`,IE_005:'[IE-005] Unable to set the "sc_cid" cookie because the client ID could not be retrieved from the server. Make sure to set the correct values for "contextId" and "siteName". If the issue persists, try again later or use try-catch blocks to handle this error.',IE_006:'[IE-006] Unable to set the "sc_cid_personalize" cookie because the visitor ID could not be retrieved from the server. Make sure to set the correct values for "contextId" and "siteName". If the issue persists, try again later or use try-catch blocks to handle this error.',IE_007:N=>`[IE-007] Could not resolve site for host "${N}".`,MV_001:'[MV-001] "contextId" is required.',MV_002:'[MV-002] "siteName" is required.',MV_003:'[MV-003] "identifiers" is required.',MV_004:'[MV-004] "friendlyId" is required.',MV_005:N=>`[MV-005] The "sitecore.cli.config" file is missing a "${N}". Please add it to use this command.`,MV_006:'[MV-006] "clientContextId" is missing. Client-side functionalities may be limited.',MV_007:'[MV-007] Provide either "contextId" or both "apiHost" and "apiKey".',MV_008:"[MV-008] Verify that sitecore.config is properly imported and correctly referenced.",MV_009:'[MV-009] "language" is required.',CONTACT_SUPPORT:"If the issue persists, please contact Sitecore Support."}},47805:(N,I,T)=>{"use strict";T.r(I),T.d(I,{buildVacancyResultListGetPublicationsQuery:()=>B,getVacancyResultListBrancheCode:()=>R});var P=T(60409);let D=N=>N?.[0]?.fields?.XrmId?.value??"",M=N=>(N??[]).map(N=>N?.fields?.XrmId?.value||"").filter(N=>""!==N);function R(N){return M(N?.vacancyResultListBranche)?.[0]??""}let L=N=>(N??[]).map(N=>N?.fields?.XrmId?.value).map(N=>parseInt(N??"",10)).filter(N=>!Number.isNaN(N)),$=N=>{let I=parseInt(N?.[0]?.fields?.XrmId?.value??"",10);return Number.isNaN(I)?void 0:I},F=N=>{let I=N?.[0];if(!I)return;let T=I?.fields?.Min?.value,P=I?.fields?.Max?.value,D="number"!=typeof T||Number.isNaN(T)?void 0:T,M="number"!=typeof P||Number.isNaN(P)?void 0:P;if(void 0!==D||void 0!==M)return{minimum:D,maximum:M}};function B(N,I){let T=I?.locale??P.Xn,R=N?.searchTitlesOnly?.value??!1,B=N?.searchTerm?.value?.trim()??"",U=M(N?.vacancyResultListBranche),H=M(N?.vacancyResultListAreaOfExpertise),z=M(N?.vacancyResultListCountries),W=M(N?.vacancyResultListEducation),q=M(N?.vacancyResultListBusinessLines),G=M(N?.vacancyResultListBusinessServices),K=M(N?.vacancyResultListBusinessUnits),V=M(N?.vacancyResultListBusinessOffices),Y=M(N?.vacancyResultListBusinessRegions),J=M(N?.vacancyResultListCountryPreset),Q=M(N?.vacancyResultListBusinessUnitPreset),Z=L(N?.vacancyResultListYearsOfExperience),X=$(N?.vacancyResultListWorkLevels),ee=F(N?.vacancyResultListHoursPerWeek),et=N?.vacancyResultListBusinessUnitSortOrder?.value??void 0,er=N?.vacancyResultListLocationTerm?.value??"",en=parseInt(D(N?.vacancyResultListRadius??[]),10),ea=N?.vacancyResultListParentNumber?.value??void 0,ei=N?.vacancyResultListPublicationsPastDaysToRetrieve?.value??void 0,eo=N?.vacancyResultListExcludeFacets?.value??void 0,es=N?.vacancyResultListUseAsExcludeCountryFilter?.value??void 0,el=N?.vacancyResultListAccountId?.value??void 0,ec=M(N?.vacancyResultListVacancyIds);return{page:N?.vacancyResultListPage?.value??1,searchText:B,searchTitlesOnly:R,pageSize:N?.vacancyResultListMaxPublicationsAmount?.value??4,language:T,businessUnitSortOrder:et,countryPreset:J,businessUnitPreset:Q,areaOfExpertiseFilter:H,brancheFilter:U,businessLineFilter:q,businessServiceFilter:G,businessUnitFilter:K,contactOfficeNumberFilter:V,countryFilter:z,educationlevelFilter:W,marketFilter:M(N?.vacancyResultListMarket),regionFilter:Y,totalYearsOfExperienceFilter:Z,workLevelFilter:void 0!==X?[X]:void 0,hoursPerWeekFilter:ee,locationFilter:(()=>
661{if(!(!er&&Number.isNaN(en)))return{location:er||void 0,range:Number.isNaN(en)?void 0:en}})(),parentNumber:ea,publicationsPastDaysToRetrieve:ei,excludeFacets:eo,useAsExcludeCountryFilter:es,accountId:el,vacancyIdFilter:ec}}},47848:(N,I,T)=>{let P=T(68994),D=T(63426);N.exports=P.types.isKeyObject||(N=>N&&N instanceof D.KeyObject)},48041:N=>{var I="/";!function(){"use strict";var T,P={922:function(N){function I(N,I){return Object.prototype.hasOwnProperty.call(N,I)}N.exports=function(N,P,D,M){P=P||"&",D=D||"=";var R={};if("string"!=typeof N||0===N.length)return R;var L=/\+/g;N=N.split(P);var $=1e3;M&&"number"==typeof M.maxKeys&&($=M.maxKeys);var F=N.length;$>0&&F>$&&(F=$);for(var B=0;B<F;++B){var U,H,z,W,q=N[B].replace(L,"%20"),G=q.indexOf(D);G>=0?(U=q.substr(0,G),H=q.substr(G+1)):(U=q,H=""),z=decodeURIComponent(U),W=decodeURIComponent(H),I(R,z)?T(R[z])?R[z].push(W):R[z]=[R[z],W]:R[z]=W}return R};var T=Array.isArray||function(N){return"[object Array]"===Object.prototype.toString.call(N)}},790:function(N){var I=function(N){switch(typeof N){case"string":return N;case"boolean":return N?"true":"false";case"number":return isFinite(N)?N:"";default:return""}};N.exports=function(N,M,R,L){return(M=M||"&",R=R||"=",null===N&&(N=void 0),"object"==typeof N)?P(D(N),function(D){var L=encodeURIComponent(I(D))+R;return T(N[D])?P(N[D],function(N){return L+encodeURIComponent(I(N))}).join(M):L+encodeURIComponent(I(N[D]))}).join(M):L?encodeURIComponent(I(L))+R+encodeURIComponent(I(N)):""};var T=Array.isArray||function(N){return"[object Array]"===Object.prototype.toString.call(N)};function P(N,I){if(N.map)return N.map(I);for(var T=[],P=0;P<N.length;P++)T.push(I(N[P],P));return T}var D=Object.keys||function(N){var I=[];for(var T in N)Object.prototype.hasOwnProperty.call(N,T)&&I.push(T);return I}}},D={};function M(N){var I=D[N];if(void 0!==I)return I.exports;var T=D[N]={exports:{}},R=!0;try{P[N](T,T.exports,M),R=!1}finally{R&&delete D[N]}return T.exports}M.ab=I+"/";var R={};(T=R).decode=T.parse=M(922),T.encode=T.stringify=M(790),N.exports=R}()},48149:(N,I,T)=>{"use strict";T.d(I,{II:()=>B,cc:()=>F,v_:()=>$});var P=T(37149),D=T(25028),M=T(98275),R=T(18070);function L(N){return Math.min(1e3*2**N,3e4)}function $(N){return(N??"online")!=="online"||R.t.isOnline()}var F=class extends Error{constructor(N){super("CancelledError"),this.revert=N?.revert,this.silent=N?.silent}};function B(N){let I,T,B,U=!1,H=0,z="pending",W=new Promise((N,I)=>{T=N,B=I});W.catch(P.lQ);let q=()=>"pending"!==z,G=()=>M.m.isFocused()&&("always"===N.networkMode||R.t.isOnline())&&N.canRun(),K=()=>$(N.networkMode)&&N.canRun(),V=N=>{q()||(I?.(),z="resolved",T(N))},Y=N=>{q()||(I?.(),z="rejected",B(N))},J=()=>new Promise(T=>{I=N=>{(q()||G())&&T(N)},N.onPause?.()}).then(()=>{I=void 0,q()||N.onContinue?.()}),Q=()=>{let I;if(q())return;let T=0===H?N.initialPromise:void 0;try{I=T??N.fn()}catch(N){I=Promise.reject(N)}Promise.resolve(I).then(V).catch(I=>{if(q())return;let T=N.retry??3*!(0,D.S)(),M=N.retryDelay??L,R="function"==typeof M?M(H,I):M,$=!0===T||"number"==typeof T&&H<T||"function"==typeof T&&T(H,I);U||!$?Y(I):(H++,N.onFail?.(H,I),(0,P.yy)(R).then(()=>G()?void 0:J()).then(()=>{U?Y(I):Q()}))})};return{promise:W,status:()=>z,cancel:I=>{if(!q()){let T=new F(I);Y(T),N.onCancel?.(T)}},continue:()=>(I?.(),W),cancelRetry:()=>{U=!0},continueRetry:()=>{U=!1},canStart:K,start:()=>(K()?Q():J().then(Q),W)}}},48226:(N,I,T)=>{"use strict";T.d(I,{o:()=>D});var P=T(95121);let D=({pageUrl:N,office:I,parentOrganizationId:T=P.ac})=>{let D=I.officeName?.trim(),M=I.streetAddress?.trim(),R=I.city?.trim();if(!D||!M||!R)return null;let L=Number(I.latitude),$=Number(I.longitude),F=I.openingHoursOpens?.trim()||P.Ri.opens,B=I.openingHoursCloses?.trim()||P.Ri.closes;return{"@context":P.WX,"@type":P.Fl,"@id":`${N}#office`,name:D,...I.imageUrl?.trim()&&{image:I.imageUrl.trim()},url:N,...I.phone?.trim()&&{telephone:I.phone.trim()},address:{"@type":"PostalAddress",streetAddress:M,addressLocality:R,...I.addressRegion?.trim()&&{addressRegion:I.addressRegion.trim()},postalCode:I.postalCode?.trim()??"",addressCountry:I.country?.trim()??""},...Number.isFinite(L)&&Number.isFinite($)&&{geo:{"@type":"GeoCoordinates",latitude:L,longitude:$}},openingHoursSpecification:[{"@type":"OpeningHoursSpecification",dayOfWeek:[...P.tS],opens:F,closes:B}],parentOrganization:{"@type":"Organization","@id":T}}}},48230:(N,I,T)=>{N.exports=T(440)},48253:(N,I,T)=>{"use strict";T.r(I),T.d(I,{formatKpiSuffix:()=>D,getSelectedTags:()=>R,getTagName:()=>M});let P={plus:"+",percent:"%"},D=N=>N&&"none"!==N.toLowerCase()?P[N.toLowerCase()]??N:"",M=N=>{if(!N)return"";let I=N.fields?.caseStudyTagName;return"string"==typeof I?I:I?.value?String(I.value):N.displayName||N.name||""},R=N=>Array.isArray(N)?N.map(N=>({id:N.id||N.name||M(N),name:M(N)})).filter(N=>N.name):[]},48269:(N,I,T)=>{"use strict";T.d(I,{Z:()=>U});var P=T(37876);let D=(N,I)=>N?.filter(N=>!I.includes(N.value));var M=T(14232);let R=({clearData:N,onAdd:I,onRemove:T,onChange:P})=>{let D=(0,M.useRef)(null),[R,L]=(0,M.useState)([]),$=(0,M.useMemo)(()=>R.map(N=>N.value),[R]),F=()=>{D?.current&&(D.current.value="",P?.(""))},B=N=>{R.length<1&&(L([...R,N]),I?.(N.value)),F()},U=N=>{L([...R.filter(I=>I.value!==N)]),T?.(N)},H=N=>{P?.(N)};return(0,M.useEffect)(()=>{N&&L([])},[N]),{inputRef:D,selection:R,selectionValues:$,handleInputChange:H,handleSelection:B,removeSelection:U}};var L=T(84612),$=T(6807);let F=({text:N,onRemove:I,iconSide:T="right"})=>(0,P.jsxs)("div",{className:"flex max-w-max items-center gap-2 rounded-full border border-brunel-dark-grey bg-brunel-yellow p-1 px-4 text-brunel-dark-grey",children:[I&&"left"===T&&(0,P.jsx)(L.w0,{className:"size-3 cursor-pointer",onClick:()=>I()}),(0,P.jsx)($.o,{type:"small",className:"text-brunel-dark-grey",plainText:N}),I&&"right"===T&&(0,P.jsx)(L.w0,{className:"size-3 cursor-pointer",onClick:()=>I()})]});var B=T(36379);let U=({id:N,isLoading:I=!1,data:T,clearData:M,className:L,placeholder:U,onAdd:H,onRemove:z,onChange:W,trackingProps:q})=>{let{inputRef:G,selection:K,selectionValues:V,handleInputChange:Y,handleSelection:J,removeSelection:Q}=R({clearData:M,onAdd:H,onRemove:z,onChange:W}),Z=D(T,V);return(0,P.jsx)("div",{id:`FormSearchSelect-${N}`,className:(0,B.cn)("flex flex-1 flex-col justify-between gap-6",L),children:(0,P.jsxs)("div",{className:"relative",children:[(0,P.jsxs)("div",{className:"group/dropdown dropdown relative flex h-12 w-full flex-col",children:[(0,P.jsx)("div",{className:(0,B.cn)("absolute top-1.5 left-1 mb-2 flex flex-wrap",{"gap-2":K.length>1}),children:K.map(N=>(0,P.jsx)(F,{text:N.label,onRemove:()=>Q(N.value)},`${N.label}-badge`))}),(0,P.jsx)("input",{...q,ref:G,type:"text",className:(0,B.cn)("space-between flex h-10 w-full items-center rounded-md border border-ui-grey bg-ui-light-grey p-4"),placeholder:U,onChange:N=>Y(N.currentTarget.value)})]}),(I||T.length>0)&&(0,P.jsxs)("ul",{tabIndex:0,className:(0,B.cn)("dropdown-content absolute z-10 flex h-40 w-full flex-col overflow-auto rounded-md bg-white text-ui-grey shadow-md"),children:[Z?.map(({label:N,value:
661I},T)=>(0,P.jsx)("li",{className:"flex min-h-8 cursor-pointer items-center border-b px-4 text-left hover:bg-ui-light-grey",onClick:()=>J({label:N,value:I}),children:(0,P.jsx)($.o,{type:"medium",plainText:N})},`${N}-${T}`)),I&&(0,P.jsx)("div",{className:"flex size-full items-center justify-center",children:(0,P.jsx)("span",{className:"loading mx-4 size-10 loading-lg bg-brunel-yellow loading-spinner"})})]})]})})}},48306:(N,I,T)=>{"use strict";T.d(I,{Zq:()=>M,zs:()=>D});let P={setTimeout:(N,I)=>setTimeout(N,I),clearTimeout:N=>clearTimeout(N),setInterval:(N,I)=>setInterval(N,I),clearInterval:N=>clearInterval(N)},D=new class{#$=P;#F=!1;setTimeoutProvider(N){this.#$=N}setTimeout(N,I){return this.#$.setTimeout(N,I)}clearTimeout(N){this.#$.clearTimeout(N)}setInterval(N,I){return this.#$.setInterval(N,I)}clearInterval(N){this.#$.clearInterval(N)}};function M(N){setTimeout(N,0)}},48398:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),Object.defineProperty(I,"useRouter",{enumerable:!0,get:function(){return M}});let P=T(14232),D=T(32925);function M(){return(0,P.useContext)(D.RouterContext)}("function"==typeof I.default||"object"==typeof I.default&&null!==I.default)&&void 0===I.default.__esModule&&(Object.defineProperty(I.default,"__esModule",{value:!0}),Object.assign(I.default,I),N.exports=I.default)},48454:N=>{N.exports.isAnEarlyCloseHost=function(N){return N&&N.match(".*google(apis)?.com$")}},48459:(N,I,T)=>{"use strict";T.d(I,{k:()=>M});var P=T(42586),D=T(43691);function M(N,I){let T=(0,P.q)(),M=I?.weekStartsOn??I?.locale?.options?.weekStartsOn??T.weekStartsOn??T.locale?.options?.weekStartsOn??0,R=(0,D.a)(N,I?.in),L=R.getDay(),$=7*(L<M)+L-M;return R.setDate(R.getDate()-$),R.setHours(0,0,0,0),R}},48579:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=M;var P=T(42226),D=T(41362);async function M(N){var I,T,M,R,L,$;let{sessionToken:F,profile:B,account:U,options:H}=N;if(!(null!=U&&U.providerAccountId)||!U.type)throw Error("Missing or invalid provider account");if(!["email","oauth"].includes(U.type))throw Error("Provider not supported");let{adapter:z,jwt:W,events:q,session:{strategy:G,generateSessionToken:K}}=H;if(!z)return{user:B,account:U};let V=B,{createUser:Y,updateUser:J,getUser:Q,getUserByAccount:Z,getUserByEmail:X,linkAccount:ee,createSession:et,getSessionAndUser:er,deleteSession:en}=z,ea=null,ei=null,eo=!1,es="jwt"===G;if(F)if(es)try{(ea=await W.decode({...W,token:F}))&&"sub"in ea&&ea.sub&&(ei=await Q(ea.sub))}catch(N){}else{let N=await er(F);N&&(ea=N.session,ei=N.user)}if("email"===U.type){let N=await X(V.email);if(N)(null==(I=ei)?void 0:I.id)!==N.id&&!es&&F&&await en(F),ei=await J({id:N.id,emailVerified:new Date}),await (null==(T=q.updateUser)?void 0:T.call(q,{user:ei}));else{let{id:N,...I}={...V,emailVerified:new Date};ei=await Y(I),await (null==(M=q.createUser)?void 0:M.call(q,{user:ei})),eo=!0}return{session:ea=es?{}:await et({sessionToken:await K(),userId:ei.id,expires:(0,D.fromDate)(H.session.maxAge)}),user:ei,isNewUser:eo}}if("oauth"===U.type){let N=await Z({providerAccountId:U.providerAccountId,provider:U.provider});if(N){if(ei){if(N.id===ei.id)return{session:ea,user:ei,isNewUser:eo};throw new P.AccountNotLinkedError("The account is already associated with another user")}return{session:ea=es?{}:await et({sessionToken:await K(),userId:N.id,expires:(0,D.fromDate)(H.session.maxAge)}),user:N,isNewUser:eo}}{if(ei)return await ee({...U,userId:ei.id}),await (null==($=q.linkAccount)?void 0:$.call(q,{user:ei,account:U,profile:V})),{session:ea,user:ei,isNewUser:eo};let N=V.email?await X(V.email):null;if(N){let I=H.provider;if(null!=I&&I.allowDangerousEmailAccountLinking)ei=N;else throw new P.AccountNotLinkedError("Another account already exists with the same e-mail address")}else{let{id:N,...I}={...V,emailVerified:null};ei=await Y(I)}return await (null==(R=q.createUser)?void 0:R.call(q,{user:ei})),await ee({...U,userId:ei.id}),await (null==(L=q.linkAccount)?void 0:L.call(q,{user:ei,account:U,profile:V})),{session:ea=es?{}:await et({sessionToken:await K(),userId:ei.id,expires:(0,D.fromDate)(H.session.maxAge)}),user:ei,isNewUser:!0}}}throw Error("Unsupported account type")}},49006:(N,I,T)=>{"use strict";function P(N,I={}){if(!N||!("value"in N))return N;let T=N.value;if("string"!=typeof T)return N;let D=T;for(let[N,T]of Object.entries(I)){if("string"!=typeof T)continue;let I=RegExp(`\\{${N}\\}`,"g");D=D.replace(I,T)}return D!==T?{...N,value:D}:N}T.d(I,{Z:()=>P})},49324:(N,I,T)=>{"use strict";T.r(I),T.d(I,{CaseStudyOverviewResultCard:()=>W});var P=T(37876),D=T(85609),M=T(87273),R=T(61584),L=T(48230),$=T.n(L),F=T(63366),B=T(60409),U=T(36379),H=T(18571),z=T(81202);let W=({result:N,lastCard:I})=>{let{page:T}=(0,D.M5)(),L=N.name,W=(0,H.Cs)(N?.caseStudyCategory),q=W?.name,G=(0,H.$I)(N),K=G?.value?.src,V=G?.value?.alt||"Case Study Card Image",Y=T?.locale??B.Xn,J={value:N?.caseStudyHeroPublicationDate?.value??""},Q=(0,z.Yq)(J,Y),Z=(0,z.Qc)(J.value)&&"Invalid Date"!==Q.value;return(0,P.jsx)(F.az,{className:(0,U.cn)("flex flex-col border-accent-iron bg-white! py-5 sm:border sm:p-0 sm:sh
661adow-blog-card",{"border-b-2":!I}),children:(0,P.jsxs)($(),{prefetch:!1,className:"group flex h-full flex-row sm:flex-col",href:(0,U._3)(L,q),children:[K&&(0,P.jsx)(F.az,{className:"relative flex items-center overflow-hidden",children:(0,P.jsx)(M._,{className:(0,U.cn)("aspect-square max-w-26 object-cover transition-all delay-75 ease-linear hover:scale-105 sm:aspect-video sm:w-full sm:max-w-full"),field:{src:K},srcSet:[{mw:250}],sizes:"250px",alt:V})}),(0,P.jsx)(F.az,{className:"relative flex flex-1 flex-col justify-start px-4 sm:justify-between sm:p-4",children:(0,P.jsxs)(F.az,{className:"flex flex-col gap-2",children:[(0,P.jsx)(F.o5,{className:"mb-0 line-clamp-2 text-brunel-dark-grey group-hover:brunel-underline-3-brunel-dark-grey sm:line-clamp-none",type:"h4",plainText:N?.previewTitle?.value}),Z&&(0,P.jsx)(F.az,{className:"text-sm font-medium text-ui-grey",children:(0,P.jsx)(R.v,{field:J,tag:"span",render:()=>Q.value})}),(0,P.jsx)(F.o5,{className:"line-clamp-2 text-sm leading-snug text-ui-grey/90 sm:line-clamp-3",type:"small",plainText:N?.previewIntro?.value})]})})]})})}},49705:(N,I,T)=>{"use strict";T.r(I),T.d(I,{getDynamicFormFieldProps:()=>U,mapApplicantFormDataToFullMercuryCandidateData:()=>B,mapApplicantFormDataToMercuryCandidateData:()=>F,mapApplicantFormDataToMercuryCandidateDataVariants:()=>$,mapMercuryCandidateDataToApplicantFormData:()=>L});var P=T(66799),D=T(67881),M=T(62467),R=T(56840);let L=N=>({mercuryId:[N?.mercuryId??""],personalInformation:[{firstName:N?.firstName??"",lastName:N?.lastName??"",gender:N?.gender??"",birthday:N?.dateOfBirth?(0,P.GP)(N.dateOfBirth,"yyyy-MM-dd"):"",nationality:N?.nationality??"",jobTitle:N?.jobTitle??"",communicationLanguage:N?.communicationLanguage??"",driversLicense:String(N?.hasDriversLicense??"")}],contactDetails:[{phoneNumber:N?.privatePhoneNumber??"",alternativePhoneNumber:N?.secondPhoneNumber??"",emailAddress:N?.email??"",addressLineOne:N?.address?.addressLine1??"",postalCode:N?.address?.postalCode??"",city:N?.address?.city??"",country:N?.address?.country??""}],workExperience:N?.workExperiences?.length?N?.workExperiences?.map(N=>({mercuryId:N?.mercuryId??"",employer:N?.employerName??"",jobTitle:N?.jobTitle??"",description:N?.description??"",startDate:N?.startDate??"",endDate:N?.endDate??""})):[{mercuryId:"",employer:"",jobTitle:"",description:"",startDate:"",endDate:""}],education:N?.educations?.length?N?.educations?.filter(N=>N?.levelOfEducation?.toLowerCase()!==R.Q.EDUCATION_COURSE_TYPE)?.map(N=>({mercuryId:N?.mercuryId??"",institution:N?.institutionName??"",educationName:N?.educationName??"",educationLevel:N?.levelOfEducation??"",progress:N.progress??"",startDate:N?.startDate??"",endDate:N?.completionDate??"",activitiesAndSocieties:N.activitiesAndSocieties??""})):[{mercuryId:"",institution:"",educationName:"",educationLevel:"",progress:"",startDate:"",endDate:"",activitiesAndSocieties:""}],course:N?.educations?.length?N?.educations?.filter(N=>N?.levelOfEducation?.toLowerCase()===R.Q.EDUCATION_COURSE_TYPE)?.map(N=>({courseName:N?.educationName??"",mercuryId:N?.mercuryId??"",institution:N?.institutionName??"",educationName:N?.educationName??"",educationLevel:N?.levelOfEducation??"",progress:N?.progress??"",startDate:N?.startDate??"",endDate:N?.completionDate??"",activitiesAndSocieties:N?.activitiesAndSocieties??""})):[{courseName:"",mercuryId:"",institution:"",educationName:"",educationLevel:"",progress:"",startDate:"",endDate:"",activitiesAndSocieties:""}],category:[{category:"",description:"",level:""}],language:[{language:"",level:""}],uploadResume:[{resume:{file:null}}],uploadDocuments:[{documentTypes:"",additionalDocuments:{file:null}}],additionalInformation:[{salaryCurrency:N?.salaryCurrency??"",salaryPreferredWage:String(N?.preferredWage??""),salaryFrequency:N?.salaryFrequency??"",dateAvailable:N?.availableFrom??"",noticePeriod:String(N?.noticePeriod??""),noticePeriodPeriod:String(N?.noticePeriodPeriod??""),availability:String(N?.availableHoursPerWeek??""),travelPreference:String(N?.travelPreference??""),travelTime:String(N?.travelTime??""),travelDistance:String(N?.travelDistancePreference??""),availabilityNotes:N?.availabilityNotes??""}]}),$=(N,I)=>{let T,D,M,L=N=>N?!!N:null,$=N=>N?Number(N):null,F=()=>{let T=I?.workExperience,D=I?.education,M=I?.course,L=[],$=[];D?.forEach(I=>{let T=N?.educations?.find(N=>
661N.mercuryId===I.mercuryId),D=!T;if(T){let N={mercuryId:"mercuryId",institution:"institutionName",educationName:"educationName",educationLevel:"levelOfEducation",progress:"progress",startDate:"startDate",endDate:"completionDate",activitiesAndSocieties:"activitiesAndSocieties"};D=Object.keys(I).some(P=>String(T[N[P]])!==String(I[P]?.emptyStringToNull()))}if(!T&&Object.values(I).every(N=>!N))return;let M={mercuryId:I.mercuryId?.emptyStringToNull(),institutionName:I.institution?.emptyStringToNull(),educationName:I.educationName?.emptyStringToNull(),levelOfEducation:I.educationLevel?.emptyStringToNull(),progress:I.progress?.emptyStringToNull(),startDate:I.startDate?(0,P.GP)(I.startDate,"yyyy-MM-dd'T'00:00:00"):null,completionDate:I.endDate?(0,P.GP)(I.endDate,"yyyy-MM-dd'T'00:00:00"):null,activitiesAndSocieties:I.activitiesAndSocieties?.emptyStringToNull()};D&&L.push(M),$.push(D?M:T)});let F=[],B=[];M?.forEach(I=>{let T=N?.educations?.find(N=>N.mercuryId===I.mercuryId),D=!T;if(T){let N={courseName:"educationName",endDate:"completionDate"};D=Object.keys(N).some(P=>String(T[N[P]])!==String(I[P]?.emptyStringToNull()))}if(!T&&Object.values(I).every(N=>!N))return;let M={mercuryId:I.mercuryId?.emptyStringToNull(),institutionName:I.institution?.emptyStringToNull(),educationName:I.courseName?.emptyStringToNull(),levelOfEducation:R.Q.EDUCATION_COURSE_TYPE.capitalize(),progress:I.progress?.emptyStringToNull(),startDate:I.startDate?(0,P.GP)(I.startDate,"yyyy-MM-dd'T'00:00:00"):null,completionDate:I.endDate?(0,P.GP)(I.endDate,"yyyy-MM-dd'T'00:00:00"):null,activitiesAndSocieties:I.activitiesAndSocieties?.emptyStringToNull()};D&&F.push(M),B.push(D?M:T)});let U=[],H=[];return T?.forEach(I=>{let T=N?.workExperiences?.find(N=>N.mercuryId===I.mercuryId),D=!T;if(T){let N={mercuryId:"mercuryId",employer:"employerName",jobTitle:"jobTitle",description:"description",startDate:"startDate",endDate:"endDate"};D=Object.keys(I).some(P=>String(T[N[P]])!==String(I[P]?.emptyStringToNull()))}if(!T&&Object.values(I).every(N=>!N))return;let M={mercuryId:I.mercuryId?.emptyStringToNull(),employerName:I.employer?.emptyStringToNull(),jobTitle:I.jobTitle?.emptyStringToNull(),description:I.description?.emptyStringToNull(),startDate:I.startDate?(0,P.GP)(I.startDate,"yyyy-MM-dd'T'00:00:00"):null,endDate:I.endDate?(0,P.GP)(I.endDate,"yyyy-MM-dd'T'00:00:00"):null};D&&U.push(M),H.push(D?M:T)}),{diff:{workExperiences:U,educations:[...L,...F]},full:{workExperiences:H,educations:[...$,...B]}}},B=()=>{let N=I?.additionalInformation?.[0];return N?{salaryCurrency:N?.salaryCurrency?.emptyStringToNull(),preferredWage:$(String(N?.salaryPreferredWage)?.emptyStringToNull()),salaryFrequency:N?.salaryFrequency?.emptyStringToNull(),availableFrom:N?.dateAvailable?(0,P.GP)(N?.dateAvailable,"yyyy-MM-dd'T'00:00:00"):null,noticePeriod:$(String(N?.noticePeriod)?.emptyStringToNull()),noticePeriodPeriod:$(String(N?.noticePeriodPeriod)?.emptyStringToNull()),availableHoursPerWeek:$(String(N?.availability)?.emptyStringToNull()),travelPreference:$(N?.travelPreference?.emptyStringToNull()),travelTime:$(N?.travelTime?.emptyStringToNull()),travelDistancePreference:$(N?.travelDistance?.emptyStringToNull()),availabilityNotes:N?.availabilityNotes?.emptyStringToNull()}:{}},U=(T={},D=I?.personalInformation?.[0],M=I?.contactDetails?.[0],D&&(T={firstName:D?.firstName?.emptyStringToNull(),lastName:D?.lastName?.emptyStringToNull(),gender:D?.gender?.emptyStringToNull(),dateOfBirth:D?.birthday?(0,P.GP)(D?.birthday,"yyyy-MM-dd'T'00:00:00"):null,nationality:D?.nationality?.emptyStringToNull(),jobTitle:D?.jobTitle?.emptyStringToNull(),communicationLanguage:D?.communicationLanguage?.emptyStringToNull(),hasDriversLicense:L(D?.driversLicense)}),M&&(T={...T,privatePhoneNumber:M?.phoneNumber?.emptyStringToNull(),secondPhoneNumber:M?.alternativePhoneNumber?.emptyStringToNull(),email:M?.emailAddress?.emptyStringToNull(),address:{...N?.address,addressLine1:M?.addressLineOne?.emptyStringToNull(),postalCode:M?.postalCode?.emptyStringToNull(),city:M?.city?.emptyStringToNull(),country:M?.country?.emptyStringToNull()}}),T),H=B(),{diff:z,full:W}=F();return{diff:{...N,...U,...z,...H,skillLevels:[]},full:{...N,...U,...W,...H}}},F=(N,I)=>$(N,I).diff,B=(N,I)=>$(N,I).full,U=(N,I,T,P,R,L,$)=>{let{values:F,touched:B,errors:U}=R,[H,z,W]=I.split("."),q=B?.[H]?.[z]?.[W],G=U?.[H]?.[z]?.[W],K=F?.[H]?.[z]?.[W],V=()=>{D.q.applicantPortal.interactFormFieldApplicantPortal(N,"formClick",W)},Y=()=>{D.q.applicantPortal.interactFormFieldApplicantPortal(N,"formError",W)},J={...P,trackingProps:{"data-fieldname":W},id:I,name:I,errors:[{id:I,touched:q,message:G}],setDataLayer:V,setDataLayerError:Y};switch(P.fieldType){case"text":case"textarea":case"phone":case"email":case"postalcode":return{...J};case"number":return{...J,type:"number"};case"date":return{...J,value:K,locale:T,maxDate:J?.attributes?.["18plus"]==="true"?new Date(new Date().setFullYear(new Date().getFullYear()-18)):void 0};case"select":return{...J,value:K,dictionary:$};case"option":return{...J,checkedValue:K};case"file":return{...J,fileProps:{onDrop:async(N,I)=>{"uploadResume"===P.section?M.U.uploadCV({mercuryId:F?.mercuryId?.[0],file:N}).then(()=>{L({type:"success",data:{title:$?.["message-success"]??"[message-success]",message:$?.["message-upload-cv-success"]??"[message-upload-cv-success]"},open:!0}),I?.()}).catch(()=>{L({type:"error",data:{title:$?.["message-error"]??"[message-error]",message:$?.["message-upload-cv-error"]??"[message-upload-cv-error]"},open:!0}),I?.()}):M.U.uploadDocument({mercuryId:F?.mercuryId?.[0],documentType:F?.uploadDocuments?.[0].documentTypes,file:N}).then(()=>{L({type:"success",data:{title:$?.["message-success"]??"[message-success]",message:$?.["message-upload-document-success"]??"[message-upload-document-success]"},open:!0}),R.setFieldValue("uploadDocuments[0].documentTypes",""),I?.()}).catch(()=>{L({type:"error",data:{title:$?.["message-error"]??"[message-error]",message:$?.["message-upload-document-error"]??"[message-upload-document-error]"},open:!0}),R.setFieldValue("uploadDocuments[0].documentTypes",""),I?.()})}},disabled:"uploadResume"!==P.section&&!F?.uploadDocuments?.[0]?.documentTypes};default:return{id:I,name:I}}}},49711:(N,I,T)=>{"use strict";T.r(I),T.d(I,{LinkListWithIcon:()=>U,LinkListWithIconBlock:()=>H});var P=T(37876),D=T(22544),M=T(63366),R=T(78624),L=T(27400);let $=` 662 border-grey-400 skip-ink 663 mb-6 flex h-16 w-full items-center border
664 bg-white p-1 text-xs font-medium tracking-body text-brunel-dark-grey 665 shadow-sm last:mb-0 focus-within:outline-dashed 666 hover:border-2 hover:border-brunel-dark-grey hover:bg-accent-spring-wood hover:underline hover:decoration-2 hover:underline-offset-2 focus:border-2 667 focus:border-brunel-dark-grey focus:bg-accent-spring-wood focus:underline focus:decoration-2 focus:outline-dashed focus:outline-2 focus:outline-offset-0 sm:p-4 sm:text-base 668`,F=N=>(0,P.jsxs)(D.N,{id:N.id?N.id:void 0,field:(0,R.X)(N.field),title:N.field?.value?.text,className:$,target:"_top",children:[(0,P.jsx)(M.az,{as:"span",className:"flex",children:(0,P.jsx)(M.In,{className:"size-8",name:N.icon})}),(0,P.jsx)(M.az,{as:"span",className:"ml-4",children:N.field?.value?.text})]}),B=N=>(0,P.jsxs)(D.N,{id:N.id?N.id:void 0,field:(0,R.X)(N.field),title:N.field?.value?.text,target:"_blank",className:"m-0 flex w-full items-center font-medium brunel-underline-3-brunel-yellow hover:brunel-underline-3-brunel-dark-grey focus:brunel-underline-3-brunel-dark-grey",children:[(0,P.jsx)(M.az,{as:"span",className:"flex",children:(0,P.jsx)(M.In,{className:"size-8",name:N.icon})}),(0,P.jsx)(M.az,{as:"span",children:N.field.value?.text})]}),U=N=>{let I=N.fields?.data?.datasource,T=N.params.RenderingIdentifier;if(I?.children?.results){if(0==I.children.results.length)return(0,P.jsx)(L.$,{id:T,title:U.name,msg:"Please add links using the toolbar"});let N=I.children.results.filter(N=>N?.linkWithIconLink?.link).map((N,T)=>(0,P.jsx)(F,{id:N.id,field:N.linkWithIconLink.link,icon:N.linkWithIconIcon?.data?.value,total:I.children.results.length},T));return(0,P.jsx)(M.az,{id:T||void 0,className:"linklist-with-icon w-full",children:N})}return(0,P.jsx)(L.$,{id:T,title:U.name,msg:"Please add a datasource"})},H=N=>{let I=N.fields?.data?.datasource,T=N.params.RenderingIdentifier;if(I?.children?.results){if(0==I.children.results.length)return(0,P.jsx)(L.$,{id:T,title:H.name,msg:"Please add links using the toolbar"});let N=I.children.results.filter(N=>N?.linkWithIconLink?.link).map((N,T)=>(0,P.jsx)(B,{id:N.id,field:N.linkWithIconLink.link,icon:N.linkWithIconIcon?.data?.value,total:I.children.results.length},T));return(0,P.jsx)(M.az,{id:T||void 0,className:"w-full grow rounded-sm border border-accent-iron bg-white p-10 shadow lg:max-w-84.5",children:(0,P.jsx)("ul",{className:"flex w-full flex-col",children:N.map((N,I)=>(0,P.jsxs)("li",{className:"flex items-center border-b border-accent-iron py-4 last:border-0",children:[N,(0,P.jsx)(M.In,{name:"chevron-right",size:"medium",color:"brunel-dark-grey",className:"ml-auto"})]},I))})})}return(0,P.jsx)(L.$,{id:T,title:H.name,msg:"Please add a datasource"})}},49961:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),Object.defineProperty(I,"createDedupedByCallsiteServerErrorLoggerDev",{enumerable:!0,get:function(){return F}});let P=M(T(14232));function D(N){if("function"!=typeof WeakMap)return null;var I=new WeakMap,T=new WeakMap;return(D=function(N){return N?T:I})(N)}function M(N,I){if(!I&&N&&N.__esModule)return N;if(null===N||"object"!=typeof N&&"function"!=typeof N)return{default:N};var T=D(I);if(T&&T.has(N))return T.get(N);var P={__proto__:null},M=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var R in N)if("default"!==R&&Object.prototype.hasOwnProperty.call(N,R)){var L=M?Object.getOwnPropertyDescriptor(N,R):null;L&&(L.get||L.set)?Object.defineProperty(P,R,L):P[R]=N[R]}return P.default=N,T&&T.set(N,P),P}let R={current:null},L="function"==typeof P.cache?P.cache:N=>N,$=console.warn;function F(N){return function(...I){$(N(...I))}}L(N=>{try{$(R.current)}finally{R.current=null}})},50063:(N,I,T)=>{"use strict";T.d(I,{H:()=>P});class P{constructor(N={}){this.statusCodes=N.statusCodes||[429],this.errorCodes=N.errorCodes||["ECONNRESET","ETIMEDOUT","EPROTO"],this.factor=N.factor||2}shouldRetry(N,I,T){var P;let D=(null==(P=N.response)?void 0:P.status)!==void 0&&this.statusCodes.includes(N.response.status),M=void 0!==N.code&&this.errorCodes.includes(N.code);return T>0&&I<=T&&(D||M)}getDelay(N,I){var T;let P=null==(T=N.response)?void 0:T.headers,D=null==P?void 0:P.get("Retry-After");return null!=D&&""!==D.trim()?1e3*Number.parseFloat(D):1e3*Math.pow(this.factor,I-1)}}},50122:(N,I,T)=>{"use strict";T.d(I,{L:()=>B,z:()=>F});var P=T(86170),D=T(60409),M=T(65212);let R="staff",L="specialist",$=N=>N.replace(/[{}
668-]/g,"").toLowerCase(),F=N=>{let I=N.some(N=>N?.toLowerCase()===R),T=N.some(N=>N?.toLowerCase()===L);if(0===N.length)return[D.UF,D.Lt];let P=[];return I&&P.push(D.UF),T&&P.push(D.Lt),0===P.length&&P.push(D.UF,D.Lt),P},B=(N,I,T,R)=>{let L=R.map(N=>`{ name: "roleBasedAuthorizationsRoles", value: "${N}", operator: CONTAINS }`),F=T.map(N=>`{ name: "targetSites", value: "${N}", operator: CONTAINS }`),B=L.length>0?`{ OR: [ ${L.join(", ")} ] }`:`{ name: "roleBasedAuthorizationsRoles", value: "${D.Lt}", operator: CONTAINS }`,U=F.length>0?`{ OR: [ ${F.join(", ")} ] }`:"",H=$(N),z=$(D.pQ),W=[`{ name: "_path", value: "${H}", operator: CONTAINS }`,`{ name: "_templates", value: "${z}", operator: EQ }`,B];U&&W.push(U);let q=` 669 query SharedNews { 670 search( 671 where: { 672 AND: [ 673 ${W.join(",\n ")} 674 ] 675 } 676 orderBy: { name: "datePublished", direction: DESC } 677 first: ${I} 678 ) { 679 results { 680 ... on NewsPage { 681 id 682 name 683 path 684 datePublished { jsonValue } 685 newsImage { jsonValue } 686 newsShortDescription { jsonValue } 687 roleBasedAuthorizationsRoles { jsonValue } 688 url { path } 689 language { name nativeName } 690 targetSites { id } 691 } 692 } 693 } 694 } 695 `;return(0,P.A)().request(q,{}).then(N=>N).catch(N=>(M.A.ui("getSharedNews failed",N),null))}},50338:(N,I,T)=>{"use strict";T.d(I,{D:()=>D});var P=T(43691);function D(N,I){let T=(0,P.a)(N,I?.in);return T.setFullYear(T.getFullYear(),0,1),T.setHours(0,0,0,0),T}},50466:(N,I,T)=>{var P=T(46968),D=T(56202);N.exports=function(N,I,T,M,R){return new D(P().w(N,I,T,M),R||Promise)},N.exports.__esModule=!0,N.exports.default=N.exports},50473:(N,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),function(N,I){for(var T in I)Object.defineProperty(N,T,{enumerable:!0,get:I[T]})}(I,{StaticGenBailoutError:function(){return P},isStaticGenBailoutError:function(){return D}});let T="NEXT_STATIC_GEN_BAILOUT";class P extends Error{constructor(...N){super(...N),this.code=T}}function D(N){return"object"==typeof N&&null!==N&&"code"in N&&N.code===T}("function"==typeof I.default||"object"==typeof I.default&&null!==I.default)&&void 0===I.default.__esModule&&(Object.defineProperty(I.default,"__esModule",{value:!0}),Object.assign(I.default,I),N.exports=I.default)},51062:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=$;var P=T(89918),D=T(68782),M=L(T(57260));function R(N){if("function"!=typeof WeakMap)return null;var I=new WeakMap,T=new WeakMap;return(R=function(N){return N?T:I})(N)}function L(N,I){if(!I&&N&&N.__esModule)return N;if(null===N||"object"!=typeof N&&"function"!=typeof N)return{default:N};var T=R(I);if(T&&T.has(N))return T.get(N);var P={__proto__:null},D=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in N)if("default"!==M&&({}).hasOwnProperty.call(N,M)){var L=D?Object.getOwnPropertyDescriptor(N,M):null;L&&(L.get||L.set)?Object.defineProperty(P,M,L):P[M]=N[M]}return P.default=N,T&&T.set(N,P),P}async function $({options:N,query:I}){var T,R,L;let{logger:F,provider:B}=N,U={};if("string"==typeof B.authorization){let N=Object.fromEntries(new URL(B.authorization).searchParams);U={...U,...N}}else U={...U,...null==(R=B.authorization)?void 0:R.params};if(U={...U,...I},null!=(T=B.version)&&T.startsWith("1.")){let I=(0,D.oAuth1Client)(N),T=await I.getOAuthRequestToken(U),P=`${null==(L=B.authorization)?void 0:L.url}?${new URLSearchParams({oauth_token:T.oauth_token,oauth_token_secret:T.oauth_token_secret,...T.params})}`;return D.oAuth1TokenStore.set(T.oauth_token,T.oauth_token_secret),F.debug("GET_AUTHORIZATION_URL",{url:P,provider:B}),{redirect:P}}let H=await (0,P.openidClient)(N),z=U,W=[];await M.state.create(N,W,z),await M.pkce.create(N,W,z),await M.nonce.create(N,W,z);let q=H.authorizationUrl(z);return F.debug("GET_AUTHORIZATION_URL",{url:q,cookies:W,provider:B}),{redirect:q,cookies:W}}},51161:N=>{"use strict";var I=Array.isArray,T=Object.keys,P=Object.prototype.hasOwnProperty,D="u">typeof Element;function M(N,R){if(N===R)return!0;
695if(N&&R&&"object"==typeof N&&"object"==typeof R){var L,$,F,B=I(N),U=I(R);if(B&&U){if(($=N.length)!=R.length)return!1;for(L=$;0!=L--;)if(!M(N[L],R[L]))return!1;return!0}if(B!=U)return!1;var H=N instanceof Date,z=R instanceof Date;if(H!=z)return!1;if(H&&z)return N.getTime()==R.getTime();var W=N instanceof RegExp,q=R instanceof RegExp;if(W!=q)return!1;if(W&&q)return N.toString()==R.toString();var G=T(N);if(($=G.length)!==T(R).length)return!1;for(L=$;0!=L--;)if(!P.call(R,G[L]))return!1;if(D&&N instanceof Element&&R instanceof Element)return N===R;for(L=$;0!=L--;)if(("_owner"!==(F=G[L])||!N.$$typeof)&&!M(N[F],R[F]))return!1;return!0}return N!=N&&R!=R}N.exports=function(N,I){try{return M(N,I)}catch(N){if(N.message&&N.message.match(/stack|recursion/i)||-0x7ff5ffe4===N.number)return console.warn("Warning: react-fast-compare does not handle circular references.",N.name,N.message),!1;throw N}}},51272:(N,I,T)=>{"use strict";T.r(I),T.d(I,{default:()=>ep});var P=T(37876),D=T(76111),M=T(37149),R=T(98275),L=T(60388),$=T(18070),F=T(90089),B=T(21407),U=class extends F.Q{#B;#U;#H;constructor(N={}){super(),this.config=N,this.#B=new Set,this.#U=new Map,this.#H=0}build(N,I,T){let P=new B.s({client:N,mutationCache:this,mutationId:++this.#H,options:N.defaultMutationOptions(I),state:T});return this.add(P),P}add(N){this.#B.add(N);let I=H(N);if("string"==typeof I){let T=this.#U.get(I);T?T.push(N):this.#U.set(I,[N])}this.notify({type:"added",mutation:N})}remove(N){if(this.#B.delete(N)){let I=H(N);if("string"==typeof I){let T=this.#U.get(I);if(T)if(T.length>1){let I=T.indexOf(N);-1!==I&&T.splice(I,1)}else T[0]===N&&this.#U.delete(I)}}this.notify({type:"removed",mutation:N})}canRun(N){let I=H(N);if("string"!=typeof I)return!0;{let T=this.#U.get(I)?.find(N=>"pending"===N.state.status);return!T||T===N}}runNext(N){let I=H(N);return"string"==typeof I?this.#U.get(I)?.find(I=>I!==N&&I.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){L.jG.batch(()=>{this.#B.forEach(N=>{this.notify({type:"removed",mutation:N})}),this.#B.clear(),this.#U.clear()})}getAll(){return Array.from(this.#B)}find(N){let I={exact:!0,...N};return this.getAll().find(N=>(0,M.nJ)(I,N))}findAll(N={}){return this.getAll().filter(I=>(0,M.nJ)(N,I))}notify(N){L.jG.batch(()=>{this.listeners.forEach(I=>{I(N)})})}resumePausedMutations(){let N=this.getAll().filter(N=>N.state.isPaused);return L.jG.batch(()=>Promise.all(N.map(N=>N.continue().catch(M.lQ))))}};function H(N){return N.options.scope?.id}var z=T(43632),W=class extends F.Q{#z;constructor(N={}){super(),this.config=N,this.#z=new Map}build(N,I,T){let P=I.queryKey,D=I.queryHash??(0,M.F$)(P,I),R=this.get(D);return R||(R=new z.X({client:N,queryKey:P,queryHash:D,options:N.defaultQueryOptions(I),state:T,defaultOptions:N.getQueryDefaults(P)}),this.add(R)),R}add(N){this.#z.has(N.queryHash)||(this.#z.set(N.queryHash,N),this.notify({type:"added",query:N}))}remove(N){this.#z.get(N.queryHash)===N&&(N.destroy(),this.#z.delete(N.queryHash),this.notify({type:"removed",query:N}))}clear(){L.jG.batch(()=>{this.getAll().forEach(N=>{this.remove(N)})})}get(N){return this.#z.get(N)}getAll(){return[...this.#z.values()]}find(N){let I={exact:!0,...N};return this.getAll().find(N=>(0,M.MK)(I,N))}findAll(N={}){let I=this.getAll();return Object.keys(N).length>0?I.filter(I=>(0,M.MK)(N,I)):I}notify(N){L.jG.batch(()=>{this.listeners.forEach(I=>{I(N)})})}onFocus(){L.jG.batch(()=>{this.getAll().forEach(N=>{N.onFocus()})})}onOnline(){L.jG.batch(()=>{this.getAll().forEach(N=>{N.onOnline()})})}},q=class{#W;#y;#O;#q;#G;#K;#V;#Y;constructor(N={}){this.#W=N.queryCache||new W,this.#y=N.mutationCache||new U,this.#O=N.defaultOptions||{},this.#q=new Map,this.#G=new Map,this.#K=0}mount(){this.#K++,1===this.#K&&(this.#V=R.m.subscribe(async N=>{N&&(await this.resumePausedMutations(),this.#W.onFocus())}),this.#Y=$.t.subscribe(async N=>{N&&(await this.resumePausedMutations(),this.#W.onOnline())}))}unmount(){this.#K--,0===this.#K&&(this.#V?.(),this.#V=void 0,this.#Y?.(),this.#Y=void 0)}isFetching(N){return this.#W.findAll({...N,fetchStatus:"fetching"}).length}isMutating(N){return this.#y.findAll({...N,status:"pending"}).length}getQueryData(N){let I=this.defaultQueryOptions({queryKey:N});return this.#W.get(I.queryHash)?.state.data}ensureQueryData(N){let I=this.defaultQueryOptions(N),T=this.#W.build(this,I),P=T.state.data;return void 0===P?this.fetchQuery(N):(N.revalidateIfStale&&T.isStaleByTime((0,M.GF)(I.staleTime,T))&&this.prefetchQuery(I),Promise.resolve(P))}getQueriesData(N){return this.#W.findAll(N).map(({queryKey:N,state:I})=>[N,I.data])}setQueryData(N,I,T){let P=this.defaultQueryOptions({queryKey:N}),D=this.#W.get(P.queryHash)?.state.data,R=(0,M.Zw)(I,D);if(void 0!==R)return this.#W.build(this,P).setData(R,{...T,manual:!0})}
695setQueriesData(N,I,T){return L.jG.batch(()=>this.#W.findAll(N).map(({queryKey:N})=>[N,this.setQueryData(N,I,T)]))}getQueryState(N){let I=this.defaultQueryOptions({queryKey:N});return this.#W.get(I.queryHash)?.state}removeQueries(N){let I=this.#W;L.jG.batch(()=>{I.findAll(N).forEach(N=>{I.remove(N)})})}resetQueries(N,I){let T=this.#W;return L.jG.batch(()=>{let P=T.findAll(N),D=new Set(P);return P.forEach(N=>{N.reset()}),this.refetchQueries({type:"active",predicate:N=>D.has(N)},I)})}cancelQueries(N,I={}){let T={revert:!0,...I};return Promise.all(L.jG.batch(()=>this.#W.findAll(N).map(N=>N.cancel(T)))).then(M.lQ).catch(M.lQ)}invalidateQueries(N,I={}){return L.jG.batch(()=>(this.#W.findAll(N).forEach(N=>{N.invalidate()}),N?.refetchType==="none")?Promise.resolve():this.refetchQueries({...N,type:N?.refetchType??N?.type??"active"},I))}refetchQueries(N,I={}){let T={...I,cancelRefetch:I.cancelRefetch??!0};return Promise.all(L.jG.batch(()=>this.#W.findAll(N).filter(N=>!N.isDisabled()&&!N.isStatic()).map(N=>{let I=N.fetch(void 0,T);return T.throwOnError||(I=I.catch(M.lQ)),"paused"===N.state.fetchStatus?Promise.resolve():I}))).then(M.lQ)}async query(N){let I=this.defaultQueryOptions(N);void 0===I.retry&&(I.retry=!1);let T=this.#W.build(this,I),P=T.isStaleByTime((0,M.GF)(I.staleTime,T))?await T.fetch(I):T.state.data,D=I.select;return D?D(P):P}fetchQuery(N){let I=this.defaultQueryOptions(N);void 0===I.retry&&(I.retry=!1);let T=this.#W.build(this,I);return T.isStaleByTime((0,M.GF)(I.staleTime,T))?T.fetch(I):Promise.resolve(T.state.data)}prefetchQuery(N){return this.fetchQuery(N).then(M.lQ).catch(M.lQ)}infiniteQuery(N){return N._type="infinite",this.query(N)}fetchInfiniteQuery(N){return N._type="infinite",this.fetchQuery(N)}prefetchInfiniteQuery(N){return this.fetchInfiniteQuery(N).then(M.lQ).catch(M.lQ)}ensureInfiniteQueryData(N){return N._type="infinite",this.ensureQueryData(N)}resumePausedMutations(){return $.t.isOnline()?this.#y.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#W}getMutationCache(){return this.#y}getDefaultOptions(){return this.#O}setDefaultOptions(N){this.#O=N}setQueryDefaults(N,I){this.#q.set((0,M.EN)(N),{queryKey:N,defaultOptions:I})}getQueryDefaults(N){let I=[...this.#q.values()],T={};return I.forEach(I=>{(0,M.Cp)(N,I.queryKey)&&Object.assign(T,I.defaultOptions)}),T}setMutationDefaults(N,I){this.#G.set((0,M.EN)(N),{mutationKey:N,defaultOptions:I})}getMutationDefaults(N){let I=[...this.#G.values()],T={};return I.forEach(I=>{(0,M.Cp)(N,I.mutationKey)&&Object.assign(T,I.defaultOptions)}),T}defaultQueryOptions(N){if(N._defaulted)return N;let I={...this.#O.queries,...this.getQueryDefaults(N.queryKey),...N,_defaulted:!0};return I.queryHash||(I.queryHash=(0,M.F$)(I.queryKey,I)),void 0===I.refetchOnReconnect&&(I.refetchOnReconnect="always"!==I.networkMode),void 0===I.throwOnError&&(I.throwOnError=!!I.suspense),!I.networkMode&&I.persister&&(I.networkMode="offlineFirst"),I.queryFn===M.hT&&(I.enabled=!1),I}defaultMutationOptions(N){return N?._defaulted?N:{...this.#O.mutations,...N?.mutationKey&&this.getMutationDefaults(N.mutationKey),...N,_defaulted:!0}}clear(){this.#W.clear(),this.#y.clear()}},G=T(67768),K=T(10553),V=T(2650),Y=T(14232);T(67815);var J=T(34683),Q=T(14990),Z=T(12544),X=T(87429);function ee(N,I,T){let P=`${N}=${I};`;return P+=` Max-Age=${T.maxAge}; SameSite=${T.sameSite};`,P+=T.secure?" Secure;":"",P+=T.path?` Path=${T.path};`:"",P+=T.domain?` Domain=${T.domain};`:"",P=P.substring(0,P.length-1)}function et(N){document.cookie=N+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"}var er=T(24492);function en(){return{type:"browser",isBot:()=>(0,Z.S5)(),getClientId:()=>(0,X.k)((0,J.U)().options.cookies.name),setClientId:async()=>{let N=(0,er.r)().config,I=(0,J.U)().options,T=(0,Q.Xm)(I.cookies.expiryDays,I.cookies.domain),P=(0,X.k)(`${Q.aG}${N.contextId}`);if(P){document.cookie=ee(I.cookies.name,P,T),et(`${Q.aG}${N.contextId}`);return}let D=await (0,Q.MR)(N.edgeUrl,N.contextId,I.timeout);I.visitorIds=D,document.cookie=ee(I.cookies.name,D.clientId,T)},location:{getSearchParams:()=>window.location.search}}}var ea=T(25602),ei=T(30463);let eo=N=>
695{let{page:I}=N;return(0,Y.useEffect)(()=>{I&&(I.mode.isNormal?ei.A.api.edge?.clientContextId?(0,er.g)({config:{contextId:ei.A.api.edge.clientContextId,edgeUrl:ei.A.api.edge.edgeUrl,siteName:I.siteName||ei.A.defaultSite},plugins:[(0,J.Y)({options:{enableCookie:!0,cookieDomain:window.location.hostname.replace(/^www\./,"")},adapter:en()}),(0,ea.eventsPlugin)()]}):console.error("Client Edge API settings missing from configuration"):console.debug("Browser Events SDK is not initialized in edit and preview modes"))},[I?.siteName]),null};var es=T(14e3),el=T(67881),ec=T(42135);let eu=({pageId:N,pageType:I,contentGroup:T,locale:P,session:D})=>{let M=(0,es.usePathname)()??"",[R,L]=(0,ec.Fo)(M,!1,{initializeWithValue:!0}),$=(0,Y.useEffectEvent)(()=>{R||el.q.common.metadataOnLoad(N,I,T,P,D?.user?.id??"",D?.user?.roles?.toString()??"").then(()=>{L(!0)})});return(0,Y.useEffect)(()=>{$()},[]),null};var ed=T(85728),ef=T(60409),eh=T(69452);T(2896),T(19472);let ep=function({Component:N,pageProps:I}){let[T]=(0,Y.useState)(()=>new q({defaultOptions:{queries:{staleTime:6e4}}}));if(I.serverError){let N=I.page?.locale??ef.Xn;return(0,P.jsx)(V.CY,{lngDict:eh.S[N],locale:N,children:(0,P.jsx)(D.ServerError,{locale:N})})}return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(eu,{pageId:I?.page?.layout?.sitecore?.route?.itemId??"",pageType:I?.page?.layout?.sitecore?.route?.displayName??"",contentGroup:I?.page?.layout?.sitecore?.route?.templateName??"",locale:I.page?.locale??ef.Xn,session:I.page?.layout?.session}),(0,P.jsx)(eo,{...I}),(0,P.jsx)(G.Ht,{client:T,children:(0,P.jsx)(K.SessionProvider,{refetchOnWindowFocus:!0,refetchInterval:300,children:(0,P.jsx)(V.CY,{lngDict:I.page?.layout?.dictionary??[],locale:I.page?.locale??ef.Xn,children:(0,P.jsx)(ed.z2,{children:(0,P.jsx)(N,{...I})})})})})]})}},51314:(N,I,T)=>{"use strict";T.d(I,{D:()=>D,c:()=>P});let P={mw:112,mh:112};function D(N){return/^https?:\/\//i.test(N)}},51725:(N,I,T)=>{"use strict";T.d(I,{n:()=>G});var P=T(76984),D=T(21962),M=T(78028),R=T(82752),L=T(99742);class ${#J;constructor(N){this.#J=M.A.create({baseURL:N?L.env.MY_APPLICATIONS_API_URL:"/api/auth",timeout:15e3,headers:{"Content-Type":"application/json","Ocp-Apim-Subscription-Key":N?L.env.MY_APPLICATIONS_API_TOKEN:void 0}}),this.#J.interceptors.response.use(N=>N,N=>(0,R.r)(N))}generateOTP=N=>this.#J.post("/api/otp/generate",N).then(N=>N.data).catch(N=>{if(N?.statusCode&&N.statusCode>=200)return N;throw Error("Generate OTP Request timed out!")});validateOTP=N=>this.#J.post("/api/otp/validate",{email:N.email,code:N.code}).then(N=>N.data).catch(N=>{if(N?.statusCode&&N.statusCode>=200)return N;throw Error("Validate OTP Request timed out!")});verify=N=>{let{email:I,code:T}=N,P=`/api/auth/otp/${encodeURIComponent(I)}/verify`,D={emailAddress:I,code:T};return this.#J.post(P,D).then(N=>N.data).catch(N=>{if(N?.statusCode&&N.statusCode>=200)return N;throw Error("Verify OTP Request timed out!")})};refreshToken=N=>this.#J.post("/api/auth/refresh-token",N,{headers:{Authorization:`Bearer ${N.bearerToken}`}}).then(N=>N.data).catch(N=>{if(N?.statusCode&&N.statusCode>=200)return N;throw Error("Refresh Token Request timed out!")})}new $;let F=new $(!0);var B=T(65212),U=T(98176),H=T(41655);let z=Date.now()+12e5,W=(N,I)=>{if(!N)return;let T=N.getHeader("Set-Cookie"),P=T?Array.isArray(T)?T.map(String):[String(T)]:[];N.setHeader("Set-Cookie",[...P,I])},q=N=>(0,P.s)(N),G={refreshAccessToken:async N=>await F.refreshToken({clientId:"48DA0E92-90A0-4AD5-8BBF-8ED9656910F6",clientSecret:"kO7}C6(I3]o1H%yb",refreshToken:N.refreshToken,bearerToken:N.accessToken}).then(I=>{if("accessToken"in I)return B.A.authSession("OTP Access token refreshed successfully"),{...N,accessToken:I.accessToken??"",refreshToken:I.refreshToken??"",expireToken:z};throw Error("Failed to refresh OTP access token")}),CredentialsProvider:(N,I)=>(0,D.A)({credentials:{email:{},otp:{},locale:{}},async authorize(T){if(!T)return null;let{email:P,otp:D,locale:M}=T;if(P&&!D){let T=await F.generateOTP({email:P,locale:M});if(T?.status==="OK"&&T?.statusCode===200){let D=N?.cookies?.otp_session?JSON.parse(N.cookies.otp_session):null,M=D&&D.email!==P,R=D&&!M?{email:P,resendEmail:Date.now()+U.kt*(D.retryCount+1)*1e3,retryCount:D.retryCount+1}:{email:P,resendEmail:Date.now()+1e3*U.kt,retryCount:1};throw W(I,`otp_session=${JSON.stringify(R)}; Path=/; Max-Age=${U.QA}; ${!H.h?"Secure; SameSite=Lax;":""};`),B.A.authMyApplications("Created otp_session cookie: ",{...T,email:P}),Error(U.Hk.OTP_SENT)}throw B.A.authMyApplications("First step OTP authentication failed."),Error(U.Hk.OTP_SENT_FAILED)}if(P&&D){let T=N?.cookies?.otp_session;if(T){let N=null;try{N=JSON.parse(T)}catch(N){throw B.A.authMyApplications("Second step OTP authentication failed: failed to parse session",N),Error(U.Hk.OTP_VERIFICATION_FAILED)}if(N.email!==P)throw Error(U.Hk.OTP_VERIFICATION_FAILED);let M=await F.validateOTP({email:N.email,code:D}).catch(N=>{throw B.A.authMyApplications("OTP validation failed with error:",N),Error(U.Hk.OTP_VERIFICATION_FAILED)}),R=M?.Status==="Valid"||M?.Status==="Success";
695if(M?.StatusCode!==200||!R)if(M?.StatusCode===404)throw B.A.authMyApplications("OTP expired or not found"),Error(U.Hk.OTP_SESSION_EXPIRED);else if(M?.StatusCode===403)throw B.A.authMyApplications("Too many attempts, request new code"),Error(U.Hk.OTP_VERIFICATION_FAILED);else throw B.A.authMyApplications("OTP validation failed:",{StatusCode:M?.StatusCode,Status:M?.Status,Message:M?.Message}),Error(U.Hk.OTP_VERIFICATION_FAILED);let L=await F.verify({email:N.email,code:D}).catch(N=>{throw B.A.authMyApplications("Failed to get tokens after validation:",N),Error(U.Hk.OTP_VERIFICATION_FAILED)});if("accessToken"in L&&"refreshToken"in L)return W(I,`otp_session=; Path=/; Max-Age=0; ${!H.h?"Secure; SameSite=Lax;":""}`),{id:q(L.accessToken??"").mercuryId,name:N.email.split("@")[0],email:N.email,accessToken:L?.accessToken?.trim(),refreshToken:L?.refreshToken?.trim(),expireToken:z,provider:"credentials"};throw B.A.authMyApplications("Second step OTP authentication failed: "),Error(U.Hk.OTP_SESSION_EXPIRED)}throw B.A.authMyApplications("Second step OTP authentication failed."),Error(U.Hk.ACCESS_DENIED)}throw B.A.authMyApplications("Second step OTP authentication failed."),Error(U.Hk.ACCESS_FORBIDDEN)}}),isOTPProvider:N=>"credentials"===N,sessionExpiration:z}},51784:(N,I,T)=>{"use strict";T.d(I,{R:()=>F});var P=T(37876),D=T(10409),M=T(6807),R=T(87273),L=T(92678),$=T(36379);let F=({marketingMessage:N})=>{let{marketingTitle:I="",marketingDescription:T="",marketingCtaLink:F=null,marketingImage:B=null,marketingImagePosition:U=""}=N,H=(F?.url??"")||F?.friendlyUrl,z=(N={className:"",textWhite:!1})=>(0,P.jsxs)(D.a,{className:(0,$.cn)("flex justify-center gap-4 roun
695ded-lg bg-white opacity-90",N.className),children:[(0,P.jsxs)(D.a,{className:(0,$.cn)("flex flex-col",{"text-white":N.textWhite}),children:[I&&(0,P.jsx)(M.o,{type:"h4",className:(0,$.cn)({"text-white":N.textWhite}),plainText:I}),T&&(0,P.jsx)(D.a,{dangerouslySetInnerHTML:{__html:T}})]}),(0,P.jsx)(L.Button,{linkField:{value:{href:H,text:F?.text,linktype:"external",className:F?.class??"",target:(F?.target??"")||"_self",title:F?.title??""}},variant:"primary",className:(0,$.cn)(F?.class??"")})]});return(0,P.jsxs)(D.a,{className:(0,$.cn)("group flex flex-col items-center gap-6 overflow-hidden rounded-md border border-accent-iron bg-white shadow-search-card focus:outline-2 focus:outline-brunel-dark-grey focus:outline-dashed md:flex-row",{"p-6":"image-background"!==U}),children:["image-left"===U&&(0,P.jsx)(D.a,{className:"relative size-full md:w-1/2",children:(0,P.jsx)(R._,{field:{src:B?.src},alt:B?.alt,className:"h-auto w-full rounded-lg object-cover"})}),"image-background"===U?(0,P.jsxs)(D.a,{className:"relative size-full h-46.5 bg-cover bg-center",children:[(0,P.jsx)(R._,{field:{src:B?.src},alt:B?.alt,className:"size-full object-cover"}),(0,P.jsx)(D.a,{className:"absolute inset-0 bg-black/30"}),(0,P.jsx)(D.a,{className:"absolute top-0 z-10 flex size-full justify-center",children:(0,P.jsx)(z,{className:"items-center",textWhite:!0})})]}):(0,P.jsx)(z,{className:"flex-col pl-12"}),"image-right"===U&&(0,P.jsx)(D.a,{className:"w-full md:w-1/2",children:(0,P.jsx)(R._,{field:{src:B?.src},alt:B?.alt,className:"h-auto w-full rounded-lg object-cover"})})]})}},51935:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.URL=I.DNS=I.stringToBytes=void 0;let P=T(10594),D=T(72736);function M(N){let I=new Uint8Array((N=unescape(encodeURIComponent(N))).length);for(let T=0;T<N.length;++T)I[T]=N.charCodeAt(T);return I}I.stringToBytes=M,I.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",I.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",I.default=function(N,I,T,R,L,$){let F="string"==typeof T?M(T):T,B="string"==typeof R?(0,P.default)(R):R;if("string"==typeof R&&(R=(0,P.default)(R)),R?.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let U=new Uint8Array(16+F.length);if(U.set(B),U.set(F,B.length),(U=I(U))[6]=15&U[6]|N,U[8]=63&U[8]|128,L){if(($=$||0)<0||$+16>L.length)throw RangeError(`UUID byte range ${$}:${$+15} is out of buffer bounds`);for(let N=0;N<16;++N)L[$+N]=U[N];return L}return(0,D.unsafeStringify)(U)}},51952:(N,I,T)=>{"use strict";T.d(I,{Y:()=>K});var P=T(80663),D=T(85843);let M=/^(\d+)(th|st|nd|rd)?/i,R=/\d+/i,L={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},$={any:[/^b/i,/^(a|c)/i]},F={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},B={any:[/1/i,/2/i,/3/i,/4/i]},U={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},H={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},z={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},W={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},q={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},G={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},K={ordinalNumber:(0,D.K)({matchPattern:M,parsePattern:R,valueCallback:N=>parseInt(N,10)}),era:(0,P.A)({matchPatterns:L,defaultMatchWidth:"wide",parsePatterns:$,defaultParseWidth:"any"}),quarter:(0,P.A)({matchPatterns:F,defaultMatchWidth:"wide",parsePatterns:B,defaultParseWidth:"any",valueCallback:N=>N+1}),month:(0,P.A)({matchPatterns:U,defaultMatchWidth:"wide",parsePatterns:H,defaultParseWidth:"any"}),day:(0,P.A)({matchPatterns:z,defaultMatchWidth:"wide",parsePatterns:W,defaultParseWidth:"any"}),dayPeriod:(0,P.A)({matchPatterns:q,defaultMatchWidth:"any",parsePatterns:G,defaultParseWidth:"any"})}},51958:(N,I,T)=>{"use strict";T.d(I,{O:()=>es});var P=T(14232),D=T(55333),M=T(9863);let R="Default";var L=T(73813),$=T(83802);let F={backgroundSize:"3px 3px",display:"flex",justifyContent:"center",alignItems:"center",padding:"30px",color:"#aaa"},B={backgroundImage:"linear-gradient(45deg, #ffffff 25%, #dcdcdc 25%, #dcdcdc 50%, #ffffff 50%, #ffffff 75%, #dcdcdc 75%, #dcdcdc 100%)"},U=()=>{let N=Object.assign(Object.assign({},F),B);return P.createElement("div",{style:N},"The component is hidden")},H="FEaaSWrapper",z="FEaaSComponent",W="BYOCWrapper",q="BYOCComponent";var G=T(72914),K=T(23041);let V=(N,I,T)=>{let P,D=I.slice();return((null==N?void 0:N.placeholders)&&Object.entries(N.placeholders).forEac
695h(([I,P])=>{let M=(0,L.Np)(I)?(0,L.jz)(I):null;M&&M.test(D)&&(T?D=I:(N.placeholders[D]=P,delete N.placeholders[I]))}),P=N&&N.placeholders&&Object.keys(N.placeholders).length>0?N.placeholders[D]:null)?P:(console.warn(`Placeholder '${D}' was not found in the current rendering data`,JSON.stringify(N,null,2)),[])},Y=N=>{var I,T;if(!N.params)return{styles:""};let P=[null!=(I=(0,L.tX)(N.params.GridParameters))?I:"",null!=(T=(0,L.tX)(N.params.Styles))?T:""].filter(Boolean).join(" ");if(P)return{styles:P}},J=N=>P.createElement("div",{className:"sc-jss-empty-placeholder",suppressHydrationWarning:!0},N);function Q(N,I){return{fields:Object.assign(Object.assign({},N.fields||{}),I.fields||{}),params:Object.assign(Object.assign({},Object.assign(Object.assign({},N.params||{}),I.params||{})),Y(I)),rendering:I}}let Z=(N,I,T,D,L)=>{var F,B;let V=T=>{console.error(`Placeholder ${I} contains unknown component ${N.componentName}${T?` (${T})`:""}. Ensure that a React component exists for it, and that it is registered in your component-map file.`)};if(N.componentName===$.Y)return{component:null!=D?D:U,isEmpty:!0,componentType:"universal"};
695if(!N.componentName)return{component:()=>P.createElement(P.Fragment,null),isEmpty:!0,componentType:"universal"};let Y=null;if(T&&0!==T.size?Y=T.get(N.componentName):console.warn(`No components were available in component map to service request for component ${N}`),!Y){if(N.componentName===z)return{component:G.a,isEmpty:!1,componentType:"universal"};if(N.componentName===H)return{component:G.M,isEmpty:!1,componentType:"universal"};if(N.componentName===q)return{component:K.Xf,isEmpty:!1,componentType:"universal"};else if(N.componentName===W)return{component:K.dW,dynamic:!0,componentType:"universal",isEmpty:!1};return V(),{component:null!=L?L:M.K,isEmpty:!0,componentType:"universal"}}let J=null==(F=N.params)?void 0:F.FieldNames,Q=J&&J!==R?Y[J]:Y.default||Y.Default||Y;if(!Q)return V(J!==R?J:void 0),{component:null!=L?L:M.K,isEmpty:!0,componentType:"universal"};let Z=!!(null==(B=Q.render)?void 0:B.preload)||N.componentName===W;return{component:Q,dynamic:Z,componentType:Y.componentType,isEmpty:!1}};var X=T(85609),ee=T(59764);let et=N=>{let{page:I,componentMap:T}=(0,X.M5)(),D=Object.assign(Object.assign({},N.componentProps),{rendering:N.rendering,componentMap:T,page:I}),{component:M}=Z(N.rendering,N.placeholderName,T);return P.createElement(M,Object.assign({},D))},er=!1;var en=T(99514);let ea=N=>{let I=N.rendering,T=N.page.mode.isEditing,P=V(I,N.name,T),D=!P.length,M=ei(N,P);if(D){let I=M;return N.renderEmpty&&(I=N.renderEmpty(M)),T?J(I):I}return N.render?N.render(M,P,N):M},ei=(N,I)=>{let{name:T,rendering:D,passThroughComponentProps:M,missingComponentComponent:R,hiddenRenderingComponent:L,errorComponent:$,componentLoadingMessage:F,renderEach:B,modifyComponentProps:U,componentMap:H,page:z}=N,W=z.mode.isEditing,q=er?"server":"client",G=I.map((I,D)=>{let{component:G,isEmpty:K,componentType:V,dynamic:Y}=Z(I,T,H,L,R),J=I.uid||`component-${D}`,X=U?U(Q(N,I)):Q(N,I),ea="client"===V&&er&&!K?P.createElement(et,{rendering:X.rendering,componentProps:Object.assign(Object.assign({},X),M),placeholderName:T,key:J}):P.createElement(G,Object.assign({key:J},X,M,{page:z,componentMap:H}));if(B&&(ea=B(ea,D)),!K){let I=ea.type+"-"+D;ea=P.createElement(ee.h,{"data-testid":"error-boundary",key:I,errorComponent:$,componentLoadingMessage:F,isDynamic:Y,disableSuspense:N.disableSuspense,rendering:ea.props.rendering},ea)}return W?P.createElement(en.f,{key:J,rendering:I,componentRuntime:q},ea):ea}).filter(N=>N);return W?[P.createElement(en.f,{key:D.uid||`placeholder-metadata-${T}`,placeholderName:T,rendering:D},G)]:G},eo=N=>P.createElement(ee.h,{errorComponent:N.errorComponent},P.createElement(ea,Object.assign({},N))),es=N=>{let{page:I,componentMap:T}=(0,X.M5)(),M=!V(N.rendering,N.name,I.mode.isEditing).length;(0,P.useEffect)(()=>{M&&D.qH.isActive()&&D.qH.resetChromes()},[]);let R=Object.assign(Object.assign({},N),{page:I,componentMap:T});return P.createElement(eo,Object.assign({},R))}},52035:(N,I,T)=>{T(17347)},52063:(N,I,T)=>{"use strict";T.d(I,{A:()=>nf});var P,D,M,R,L,$,F,B,U,H,z=T(81187);let W=Object.freeze({cacheTimeout:60,cacheEnabled:!0});class q{constructor(N){var I;this.options=N,this.cache=new z.Cache,this.options.cacheTimeout=(null!=(I=this.options.cacheTimeout)?I:W.cacheTimeout)*1e3,void 0===this.options.cacheEnabled&&(this.options.cacheEnabled=W.cacheEnabled)}getCacheValue(N){return this.options.cacheEnabled?this.cache.get(N):null}setCacheValue(N,I){return this.options.cacheEnabled?this.cache.put(N,I,this.options.cacheTimeout):I}}var G=T(47804),K=T(52770),V=T(68890),Y=T(72850),J=T(75984);let{UU:Q}=G,Z=` 696 query DictionarySiteQuery( 697 $siteName: String! 698 $language: String! 699 $pageSize: Int = 500 700 $after: String 701 ) { 702 site { 703 siteInfo(site: $siteName) { 704 dictionary(language: $language, first: $pageSize, after: $after) { 705 pageInfo { 706 endCursor 707 hasNext 708 } 709 results { 710 key 711 value 712 } 713 } 714 } 715 } 716 } 717`;class X{constructor(N){this.options=N,this.cache=this.getCacheClient(),this.graphQLClient=this.getGraphQLClient()}async fetchDictionaryData(N,I,T){var P,D;let M=I+N,R=this.getCacheValue(M);if(R)return J.A.dictionary("using cached dictionary data for %s %s",N,I),R;let L={};J.A.dictionary("fetching dictionary data for %s %s",N,I);let $=[],F=!0,B="";if(!I)throw RangeError(Q.MV_002);if(!N)throw RangeError(Q.MV_009);for(;F;){let M=await this.graphQLClient.request(Z,{siteName:I,language:N,pageSize:this.options.pageSize,after:B},T);(null==(D=null==(P=null==M?void 0:M.site)?void 0:P.siteInfo)?void 0:D.dictionary)?($=$.concat(M.site.siteInfo.dictionary.results),B=M.site.siteInfo.dictionary.pageInfo.endCursor,F=M.site.siteInfo.dictionary.pageInfo.hasNext):F=!1}return $.forEach(N=>L[N.key]=N.value),this.setCacheValue(M,L),L}setCacheValue(N,I){return this.cache.setCacheValue(N,I)}getCacheValue(N){return this.cache.getCacheValue(N)}getCacheClient(){return new q(this.options)}getGraphQLClient(){var N,I;if(!this.options.clientFactory)throw Error("clientFactory needs to be provided when initializing GraphQL client.");return this.options.clientFactory({debugger:J.A.dictionary,retries:null==(N=this.options.retries)?void 0:N.count,retryStrategy:null==(I=this.options.retries)?void 0:I.retryStrategy})}}var ee=T(12130),et=T(11282);let er=/class=".*(\bck-content\b).*"/g,en=(N,I,T=G.Ty)=>{if(!N.sitecore.route)return null;let P={loadStyles:!1};return(es(N.sitecore.route,P),P.loadStyles)?{href:ea(I,T),rel:"stylesheet"}:null},ea=(N,I=G.Ty)=>`${(0,et.l)(I)}/v1/files/pages/styles/content-styles.css?sitecoreContextId=${N}`,ei=(N,I)=>
717{I.loadStyles||N.forEach(N=>{es(N,I)})},eo=(N,I)=>{N&&"object"==typeof N&&!I.loadStyles&&("value"in N&&"string"==typeof N.value?I.loadStyles=er.test(N.value):"fields"in N?Object.values(N.fields).forEach(N=>{eo(N,I)}):Array.isArray(N)&&N.forEach(N=>{eo(N,I)}))},es=(N,I)=>{if(I.loadStyles)return;"fields"in N&&N.fields&&Object.values(N.fields).forEach(N=>{eo(N,I)});let T=N.placeholders||{};Object.keys(T).forEach(N=>{ei(T[N],I)})};var el=T(73813);let ec=/-library--([^\s]+)/;function eu(N,I,T=G.Ty){let P=new Set;return N.sitecore.route?(eh(N.sitecore.route,P),[...P].map(N=>({href:ed(N,I,T),rel:"stylesheet"}))):[]}let ed=(N,I,T=G.Ty)=>`${(0,et.l)(T)}/v1/files/components/styles/${N}.css?sitecoreContextId=${I}`,ef=(N,I)=>{N.map(N=>eh(N,I))},eh=(N,I)=>{var T,P,D,M;let R;if("params"in N&&N.params){let I=(0,el.tX)(N.params.CSSStyles),D=(0,el.tX)(N.params.Styles),M=(0,el.tX)(N.params.LibraryId);R=(null==(T=null==I?void 0:I.match(ec))?void 0:T[1])||(null==(P=null==D?void 0:D.match(ec))?void 0:P[1])||M||void 0}if(!R&&"fields"in N&&N.fields){let I=(0,el.tX)((0,el.GR)(N.fields,"CSSStyles","")),T=(0,el.tX)((0,el.GR)(N.fields,"Styles","")),P=(0,el.tX)((0,el.GR)(N.fields,"LibraryId",""));R=(null==(D=null==I?void 0:I.match(ec))?void 0:D[1])||(null==(M=null==T?void 0:T.match(ec))?void 0:M[1])||P||void 0}R&&I.add(R);let L=N.placeholders||{};Object.keys(L).forEach(N=>{ef(L[N],I)})};var ep=T(98217);function em(N){return Object.keys(N).map(I=>`${encodeURIComponent(I)}=${encodeURIComponent(String(N[I]))}`).join("&")}function eg(N,I={}){if(!N)throw RangeError("url must be a non-empty string");if((0,ep.A)()){let T=new URL(N);for(let N in I)({}).hasOwnProperty.call(I,N)&&T.searchParams.append(N,String(I[N]));return T.toString()}let T=em(I);return -1!==N.indexOf("?")?`${N}&${T}`:`${N}?${T}`}function ey(N){return N.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}T(99742);let eb=new URL(G.Cn).hostname;function ev(N){try{return new URL(N.startsWith("http")?N:`https://${N}`).hostname.toLowerCase()!==eb}catch(N){return!1}}let ew=RegExp(`https?://${ey(eb)}`,"gi");function ex(N,I){let T=(0,et.l)(I);return ev(T)?eA(N,T):N}function eA(N,I){if(null==N)return N;if("string"==typeof N)return eE(N,I);if(Array.isArray(N))return N.map(N=>eA(N,I));if("object"==typeof N){if(Object.getPrototypeOf(N)!==Object.prototype)return N;let T={};for(let P of Object.keys(N))T[P]=eA(N[P],I);return T}return N}function eE(N,I){return ew.lastIndex=0,N.replace(ew,I)}function eS(N){let I=(0,et.l)(N);return ev(I)?N=>eE(N,I):N=>N}function e_(N,I){if(null==N)return N;if("string"==typeof N)return I(N);if(Array.isArray(N))return N.map(N=>e_(N,I));if("object"==typeof N&&Object.getPrototypeOf(N)===Object.prototype){let T={};for(let P of Object.keys(N))T[P]=e_(N[P],I);return T}return N}class ek{constructor(N){this.serviceConfig=N,this.graphQLClient=this.getGraphQLClient()}getGraphQLClient(){var N,I;if(!this.serviceConfig.clientFactory)throw Error("clientFactory needs to be provided when initializing GraphQL client.");return this.serviceConfig.clientFactory({debugger:this.serviceConfig.debugger||K.Ay.http,retries:null==(N=this.serviceConfig.retries)?void 0:N.count,retryStrategy:null==(I=this.serviceConfig.retries)?void 0:I.retryStrategy})}}let eC="ContentSdkLayoutQuery";class ej extends ek{constructor(N){super(N),this.serviceConfig=N}async fetchLayoutData(N,I,T){var P,D;let M=I.site,R=this.getLayoutQuery(N,M,null==I?void 0:I.locale);J.A.layout("fetching layout data for %s %s %s",N,null==I?void 0:I.locale,M);let L=await this.graphQLClient.request(R,{},T);return(null==(D=null==(P=null==L?void 0:L.layout)?void 0:P.item)?void 0:D.rendered)||{sitecore:{context:{pageEditing:!1,language:null==I?void 0:I.locale},route:null}}}getLayoutQuery(N,I,T){let P=T?`, language:"${T}"`:"",D=this.serviceConfig.formatLayoutQuery?this.serviceConfig.formatLayoutQuery(I,N,T):`layout(site:"${I}", routePath:"${N}"${P})`;return`query ${eC} { 718 ${D}{ 719 item { 720 rendered 721 } 722 } 723 }`}}var eO=T(83802);let eN=N=>Object.assign(Object.assign({},N),{componentName:eO.Y,experiences:{}});function eI(N,I,T){var P;N.sitecore.context.variantId=I;let D=(null==(P=N.sitecore.route)?void 0:P.placeholders)||{};if(0===Object.keys(D).length)return;let M=N.sitecore.context.pageEditing;
723return D&&Object.keys(D).forEach(N=>{D[N]=eT(D[N],[I,...T||[]],M)}),D}function eT(N,I,T){return N.map(N=>{let P=N;if(void 0!==P.experiences)return eP(P,I,T);if(P.placeholders){let N=P.placeholders;Object.keys(N).forEach(P=>{N[P]=eT(N[P],I,T)})}return N}).filter(Boolean)}function eP(N,I,T){let P=Object.keys(N.experiences).find(N=>I.includes(N)),D=P&&N.experiences[P];if(D||N.componentName)if(D&&null===D.componentName&&null===D.dataSource)if(!T)return null;else N=eN(N);else D&&(N=D);else{if(!T)return null;N=eN(N)}return N.experiences&&(N.experiences={}),N.placeholders&&Object.keys(null==N?void 0:N.placeholders).forEach(P=>{N.placeholders&&(N.placeholders[P]=eT(N.placeholders[P],I,T))}),N}let{UU:eD}=G,eM="sitemap",eR=` 724 query SitemapQuery($siteName: String!) { 725 site { 726 siteInfo(site: $siteName) { 727 sitemap 728 } 729 } 730 } 731`;class eL{constructor(N){this.options=N,this.graphQLClient=this.getGraphQLClient()}get query(){return eR}async fetchSitemaps(N){let I=this.options.siteName;if(!I)throw Error(eD.MV_002);let T=this.graphQLClient.request(this.query,{siteName:I},N);try{return T.then(N=>N.site.siteInfo.sitemap)}catch(N){return Promise.reject(N)}}async getSitemap(N){let I;if(void 0!==N){if(""===N)I=`${eM}.xml`;else{let T=N.startsWith("-")?N.slice(1):N;I=`${eM}-${T}.xml`}return(await this.fetchSitemaps()).find(N=>N.includes(I))}}getGraphQLClient(){if(!this.options.clientFactory)throw Error("clientFactory needs to be provided when initializing GraphQL client.");return this.options.clientFactory({debugger:J.A.sitemap})}}let{UU:e$}=G,eF=` 732 query ErrorPagesQuery($siteName: String!, $language: String!) { 733 site { 734 siteInfo(site: $siteName) { 735 errorHandling(language: $language) { 736 notFoundPage { 737 rendered 738 } 739 notFoundPagePath 740 serverErrorPage { 741 rendered 742 } 743 serverErrorPagePath 744 } 745 } 746 } 747 } 748`;class eB{constructor(N){this.options=N,this.graphQLClient=this.getGraphQLClient()}get query(){return eF}async fetchErrorPages(N,I,T){let P=I||this.options.language;if(!N)throw Error(e$.MV_002);return this.graphQLClient.request(this.query,{siteName:N,language:P},T).then(N=>{var I,T;if(!N.site.siteInfo)return null;let P=N.site.siteInfo.errorHandling,D=(null==(I=P.notFoundPage)?void 0:I.rendered)?{rendered:P.notFoundPage.rendered}:null,M=(null==(T=P.serverErrorPage)?void 0:T.rendered)?{rendered:P.serverErrorPage.rendered}:null;return Object.assign(Object.assign({},P),{notFoundPage:D,serverErrorPage:M})}).catch(N=>Promise.reject(N))}getGraphQLClient(){var N,I;if(!this.options.clientFactory)throw Error("clientFactory needs to be provided when initializing GraphQL client.");return this.options.clientFactory({debugger:J.A.errorpages,retries:null==(N=this.options.retries)?void 0:N.count,retryStrategy:null==(I=this.options.retries)?void 0:I.retryStrategy})}}var eU=T(32479);let eH="_site_";function ez(N,I){let T=N.startsWith("/")?N:"/"+N;return`/${eH}${I.siteName}${T}`}function eW(N,I){let T={siteName:I},P=(N.endsWith("/")?N:N+"/").match(`${eH}(.*?)\\/`);return P&&""!==P[1]&&(T.siteName=P[1]),T}function eq(N){let I=N.match(`${eH}.*?(?:\\/|$)`);return null===I?N:N.replace(I[0],"")}let{UU:eG}=G,eK="The list of sites cannot be empty";function eV(N){return eG.IV_007(N)}let eY=N=>` 749query ${N?"PersonalizeSitemapQuery":"DefaultSitemapQuery"}( 750 $siteName: String! 751 $language: String! 752 $includedPaths: [String] 753 $excludedPaths: [String] 754 $pageSize: Int = 100 755 $after: String 756) { 757 site { 758 siteInfo(site: $siteName) { 759 routes( 760 language: $language 761 includedPaths: $includedPaths 762 excludedPaths: $excludedPaths 763 first: $pageSize 764 after: $after 765 ){ 766 total 767 pageInfo { 768 endCursor 769 hasNext 770 } 771 results { 772 path: routePath 773 ${N?` 774 route { 775 personalization { 776 variantIds 777 } 778 }`:""} 779 } 780 } 781 } 782 } 783} 784`;class eJ{constructor(N){this.options=N,this._graphQLClient=this.getGraphQLClient()}get graphQLClient(){return this._graphQLClient}get query(){return eY(this.options.includePersonalizedRoutes)}async fetchSiteRoutes(N,I,T){let P=(N,I)=>({params:{path:N},locale:I}),D=[];if(!I.length)throw RangeError(eG.MV_009);if(!N||!N.length)throw RangeError(eK);for(let M=0;M<N.length;M++)for(let R of I){let I=await this.fetchLanguageSitePaths(R,N[M],T),L=await this.transformLanguageSitePaths(I,P,R);D.push(...L)}return[].concat(...D)}async transformLanguageSitePaths(N,I,T){let P=N=>decodeURI(N).replace(/^\/|\/$/g,"").split("/"),D=[];
784return N.forEach(N=>{var M,R,L;if(!N)return;D.push(I(P(N.path),T));let $=null==(L=null==(R=null==(M=N.route)?void 0:M.personalization)?void 0:R.variantIds)?void 0:L.filter(N=>!N.includes("_"));(null==$?void 0:$.length)&&D.push(...$.map(D=>I(P((0,eU.F3)(N.path,[D])),T)))}),D}getGraphQLClient(){if(!this.options.clientFactory)throw Error("clientFactory needs to be provided when initializing GraphQL client.");return this.options.clientFactory({debugger:J.A.sitemap})}async fetchLanguageSitePaths(N,I,T){var P,D,M,R;let L={siteName:I,language:N,pageSize:this.options.pageSize,includedPaths:this.options.includedPaths,excludedPaths:this.options.excludedPaths},$=[],F=!0,B="";for(J.A.sitemap("fetching sitemap data for %s %s",N,I);F;){let N=await this.graphQLClient.request(this.query,Object.assign(Object.assign({},L),{after:B}),T);if(null==(P=null==N?void 0:N.site)?void 0:P.siteInfo)$=$.concat(null==(D=N.site.siteInfo.routes)?void 0:D.results),F=null==(M=N.site.siteInfo.routes)?void 0:M.pageInfo.hasNext,B=null==(R=N.site.siteInfo.routes)?void 0:R.pageInfo.endCursor;else throw RangeError(eV(I))}return $.forEach(N=>{N&&(N.path=ez(N.path,{siteName:I}))}),$}}let eQ=JSON,eZ=N=>N.toUpperCase(),eX=N=>{let I={};return N.forEach((N,T)=>{I[T]=N}),I},e0=(N,I,T)=>N.document?N:{document:N,variables:I,requestHeaders:T,signal:void 0},e1=(N,I,T)=>N.query?N:{query:N,variables:I,requestHeaders:T,signal:void 0},e2=(N,I)=>N.documents?N:{documents:N,requestHeaders:I,signal:void 0};function e3(N){return"object"==typeof N&&null!==N}function e4(N,I){if(!N)throw Error(null!=I?I:"Unexpected invariant triggered.")}let e5=/\r\n|[\n\r]/g;function e6(N,I){let T=0,P=1;for(let D of N.body.matchAll(e5)){if("number"==typeof D.index||e4(!1),D.index>=I)break;T=D.index+D[0].length,P+=1}return{line:P,column:I+1-T}}function e8(N){return e7(N.source,e6(N.source,N.start))}function e7(N,I){let T=N.locationOffset.column-1,P="".padStart(T)+N.body,D=I.line-1,M=N.locationOffset.line-1,R=I.line+M,L=1===I.line?T:0,$=I.column+L,F=`${N.name}:${R}:${$} 785`,B=P.split(/\r\n|[\n\r]/g),U=B[D];if(U.length>120){let N=Math.floor($/80),I=$%80,T=[];for(let N=0;N<U.length;N+=80)T.push(U.slice(N,N+80));return F+e9([[`${R} |`,T[0]],...T.slice(1,N+1).map(N=>["|",N]),["|","^".padStart(I)],["|",T[N+1]]])}return F+e9([[`${R-1} |`,B[D-1]],[`${R} |`,U],["|","^".padStart($)],[`${R+1} |`,B[D+1]]])}function e9(N){let I=N.filter(([N,I])=>void 0!==I),T=Math.max(...I.map(([N])=>N.length));return I.map(([N,I])=>N.padStart(T)+(I?" "+I:"")).join("\n")}function te(N){let I=N[0];return null==I||"kind"in I||"length"in I?{nodes:I,source:N[1],positions:N[2],path:N[3],originalError:N[4],extensions:N[5]}:I}class tt extends Error{constructor(N,...I){var T,P,D;const{nodes:M,source:R,positions:L,path:$,originalError:F,extensions:B}=te(I);super(N),this.name="GraphQLError",this.path=null!=$?$:void 0,this.originalError=null!=F?F:void 0,this.nodes=tr(Array.isArray(M)?M:M?[M]:void 0);const U=tr(null==(T=this.nodes)?void 0:T.map(N=>N.loc).filter(N=>null!=N));this.source=null!=R?R:null==U||null==(P=U[0])?void 0:P.source,this.positions=null!=L?L:null==U?void 0:U.map(N=>N.start),this.locations=L&&R?L.map(N=>e6(R,N)):null==U?void 0:U.map(N=>e6(N.source,N.start));const H=e3(null==F?void 0:F.extensions)?null==F?void 0:F.extensions:void 0;this.extensions=null!=(D=null!=B?B:H)?D:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=F&&F.stack?Object.defineProperty(this,"stack",{value:F.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,tt):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let N=this.message;if(this.nodes)for(let I of this.nodes)I.loc&&(N+="\n\n"+e8(I.loc));else if(this.source&&this.locations)for(let I of this.locations)N+="\n\n"+e7(this.source,I);return N}toJSON(){let N={message:this.message};return null!=this.locations&&(N.locations=this.locations),null!=this.path&&(N.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(N.extensions=this.extensions),N}}function tr(N){return void 0===N||0===N.length?void 0:N}function tn(N,I,T){return new tt(`Syntax Error: ${T}`,{source:N,positions:[I]})}class ta{constructor(N,I,T){this.start=N.start,this.end=I.end,this.startToken=N,this.endToken=I,this.source=T}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class ti{constructor(N,I,T,P,D,M){this.kind=N,this.start=I,this.end=T,this.line=P,this.column=D,this.value=M,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}let to={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],Float
785Value:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},ts=new Set(Object.keys(to));function tl(N){let I=null==N?void 0:N.kind;return"string"==typeof I&&ts.has(I)}function tc(N){return 9===N||32===N}function tu(N){return N>=48&&N<=57}function td(N){return N>=97&&N<=122||N>=65&&N<=90}function tf(N){return td(N)||95===N}function th(N){return td(N)||tu(N)||95===N}function tp(N){var I,T;let P=Number.MAX_SAFE_INTEGER,D=null,M=-1;for(let I=0;I<N.length;++I){let R=N[I],L=tm(R);L!==R.length&&(D=null!=(T=D)?T:I,M=I,0!==I&&L<P&&(P=L))}return N.map((N,I)=>0===I?N:N.slice(P)).slice(null!=(I=D)?I:0,M+1)}function tm(N){let I=0;for(;I<N.length&&tc(N.charCodeAt(I));)++I;return I}function tg(N,I){let T=N.replace(/"""/g,'\\"""'),P=T.split(/\r\n|[\n\r]/g),D=1===P.length,M=P.length>1&&P.slice(1).every(N=>0===N.length||tc(N.charCodeAt(0))),R=T.endsWith('\\"""'),L=N.endsWith('"')&&!R,$=N.endsWith("\\"),F=L||$,B=!(null!=I&&I.minimize)&&(!D||N.length>70||F||M||R),U="",H=D&&tc(N.charCodeAt(0));return(B&&!H||M)&&(U+="\n"),U+=T,(B||F)&&(U+="\n"),'"""'+U+'"""'}(P=$||($={})).QUERY="query",P.MUTATION="mutation",P.SUBSCRIPTION="subscription",(D=F||(F={})).QUERY="QUERY",D.MUTATION="MUTATION",D.SUBSCRIPTION="SUBSCRIPTION",D.FIELD="FIELD",D.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",D.FRAGMENT_SPREAD="FRAGMENT_SPREAD",D.INLINE_FRAGMENT="INLINE_FRAGMENT",D.VARIABLE_DEFINITION="VARIABLE_DEFINITION",D.SCHEMA="SCHEMA",D.SCALAR="SCALAR",D.OBJECT="OBJECT",D.FIELD_DEFINITION="FIELD_DEFINITION",D.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",D.INTERFACE="INTERFACE",D.UNION="UNION",D.ENUM="ENUM",D.ENUM_VALUE="ENUM_VALUE",D.INPUT_OBJECT="INPUT_OBJECT",D.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",(M=B||(B={})).NAME="Name",M.DOCUMENT="Document",M.OPERATION_DEFINITION="OperationDefinition",M.VARIABLE_DEFINITION="VariableDefinition",M.SELECTION_SET="SelectionSet",M.FIELD="Field",M.ARGUMENT="Argument",M.FRAGMENT_SPREAD="FragmentSpread",M.INLINE_FRAGMENT="InlineFragment",M.FRAGMENT_DEFINITION="FragmentDefinition",M.VARIABLE="Variable",M.INT="IntValue",M.FLOAT="FloatValue",M.STRING="StringValue",M.BOOLEAN="BooleanValue",M.NULL="NullValue",M.ENUM="EnumValue",M.LIST="ListValue",M.OBJECT="ObjectValue",M.OBJECT_FIELD="ObjectField",M.DIRECTIVE="Directive",M.NAMED_TYPE="NamedType",M.LIST_TYPE="ListType",M.NON_NULL_TYPE="NonNullType",M.SCHEMA_DEFINITION="SchemaDefinition",M.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",M.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",M.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",M.FIELD_DEFINITION="FieldDefinition",M.INPUT_VALUE_DEFINITION="InputValueDefinition",M.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",M.UNION_TYPE_DEFINITION="UnionTypeDefinition",M.ENUM_TYPE_DEFINITION="EnumTypeDefinition",M.ENUM_VALUE_DEFINITION="EnumValueDefinition",M.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",M.DIRECTIVE_DEFINITION="DirectiveDefinition",M.SCHEMA_EXTENSION="SchemaExtension",M.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",M.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",M.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",M.UNION_TYPE_EXTENSION="UnionTypeExtension",M.ENUM_TYPE_EXTENSION="EnumTypeExtension",M.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",M.TYPE_COORDINATE="TypeCoordinate",M.MEMBER_COORDINATE="MemberCoordinate",M.ARGUMENT_COORDINATE="ArgumentCoordinate",M.DIRECTIVE_COORDINATE="DirectiveCoordinate",M.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate",(R=U||(U={})).SOF="<SOF>",R.EOF="<EOF>",R.BANG="!",R.DOLLAR="$",R.AMP="&",R.PAREN_L="(",R.PAREN_R=")",R.DOT=".",R.SPREAD="...",R.COLON=":",R.EQUALS="=",R.AT="@",R.BRACKET_L="[",R.BRACKET_R="]",R.BRACE_L="{",R.PIPE="|",R.BRACE_R="}
785",R.NAME="Name",R.INT="Int",R.FLOAT="Float",R.STRING="String",R.BLOCK_STRING="BlockString",R.COMMENT="Comment";class ty{constructor(N){const I=new ti(U.SOF,0,0,0,0);this.source=N,this.lastToken=I,this.token=I,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let N=this.token;if(N.kind!==U.EOF)do if(N.next)N=N.next;else{let I=t_(this,N.end);N.next=I,I.prev=N,N=I}while(N.kind===U.COMMENT);return N}}function tb(N){return N===U.BANG||N===U.DOLLAR||N===U.AMP||N===U.PAREN_L||N===U.PAREN_R||N===U.DOT||N===U.SPREAD||N===U.COLON||N===U.EQUALS||N===U.AT||N===U.BRACKET_L||N===U.BRACKET_R||N===U.BRACE_L||N===U.PIPE||N===U.BRACE_R}function tv(N){return N>=0&&N<=55295||N>=57344&&N<=1114111}function tw(N,I){return tx(N.charCodeAt(I))&&tA(N.charCodeAt(I+1))}function tx(N){return N>=55296&&N<=56319}function tA(N){return N>=56320&&N<=57343}function tE(N,I){let T=N.source.body.codePointAt(I);if(void 0===T)return U.EOF;if(T>=32&&T<=126){let N=String.fromCodePoint(T);return'"'===N?"'\"'":`"${N}"`}return"U+"+T.toString(16).toUpperCase().padStart(4,"0")}function tS(N,I,T,P,D){let M=N.line,R=1+T-N.lineStart;return new ti(I,T,P,M,R,D)}function t_(N,I){let T=N.source.body,P=T.length,D=I;for(;D<P;){let I=T.charCodeAt(D);switch(I){case 65279:case 9:case 32:case 44:++D;continue;case 10:++D,++N.line,N.lineStart=D;continue;case 13:10===T.charCodeAt(D+1)?D+=2:++D,++N.line,N.lineStart=D;continue;case 35:return tk(N,D);case 33:return tS(N,U.BANG,D,D+1);case 36:return tS(N,U.DOLLAR,D,D+1);case 38:return tS(N,U.AMP,D,D+1);case 40:return tS(N,U.PAREN_L,D,D+1);case 41:return tS(N,U.PAREN_R,D,D+1);case 46:if(46===T.charCodeAt(D+1)&&46===T.charCodeAt(D+2))return tS(N,U.SPREAD,D,D+3);break;case 58:return tS(N,U.COLON,D,D+1);case 61:return tS(N,U.EQUALS,D,D+1);case 64:return tS(N,U.AT,D,D+1);case 91:return tS(N,U.BRACKET_L,D,D+1);case 93:return tS(N,U.BRACKET_R,D,D+1);case 123:return tS(N,U.BRACE_L,D,D+1);case 124:return tS(N,U.PIPE,D,D+1);case 125:return tS(N,U.BRACE_R,D,D+1);case 34:if(34===T.charCodeAt(D+1)&&34===T.charCodeAt(D+2))return tM(N,D);return tO(N,D)}if(tu(I)||45===I)return tC(N,D,I);if(tf(I))return tR(N,D);throw tn(N.source,D,39===I?"Unexpected single quote character ('), did you mean to use a double quote (\")?":tv(I)||tw(T,D)?`Unexpected character: ${tE(N,D)}.`:`Invalid character: ${tE(N,D)}.`)}return tS(N,U.EOF,P,P)}function tk(N,I){let T=N.source.body,P=T.length,D=I+1;for(;D<P;){let N=T.charCodeAt(D);if(10===N||13===N)break;if(tv(N))++D;else if(tw(T,D))D+=2;else break}return tS(N,U.COMMENT,I,D,T.slice(I+1,D))}function tC(N,I,T){let P=N.source.body,D=I,M=T,R=!1;if(45===M&&(M=P.charCodeAt(++D)),48===M){if(tu(M=P.charCodeAt(++D)))throw tn(N.source,D,`Invalid number, unexpected digit after 0: ${tE(N,D)}.`)}else D=tj(N,D,M),M=P.charCodeAt(D);if(46===M&&(R=!0,M=P.charCodeAt(++D),D=tj(N,D,M),M=P.charCodeAt(D)),(69===M||101===M)&&(R=!0,(43===(M=P.charCodeAt(++D))||45===M)&&(M=P.charCodeAt(++D)),D=tj(N,D,M),M=P.charCodeAt(D)),46===M||tf(M))throw tn(N.source,D,`Invalid number, expected digit but got: ${tE(N,D)}.`);return tS(N,R?U.FLOAT:U.INT,I,D,P.slice(I,D))}function tj(N,I,T){if(!tu(T))throw tn(N.source,I,`Invalid number, expected digit but got: ${tE(N,I)}.`);let P=N.source.body,D=I+1;for(;tu(P.charCodeAt(D));)++D;return D}function tO(N,I){let T=N.source.body,P=T.length,D=I+1,M=D,R="";for(;D<P;){let P=T.charCodeAt(D);if(34===P)return R+=T.slice(M,D),tS(N,U.STRING,I,D+1,R);if(92===P){R+=T.slice(M,D);let I=117===T.charCodeAt(D+1)?123===T.charCodeAt(D+2)?tN(N,D):tI(N,D):tD(N,D);R+=I.value,D+=I.size,M=D;continue}if(10===P||13===P)break;if(tv(P))++D;else if(tw(T,D))D+=2;else throw tn(N.source,D,`Invalid character within String: ${tE(N,D)}.`)}throw tn(N.source,D,"Unterminated string.")}function tN(N,I){let T=N.source.body,P=0,D=3;for(;D<12;){let N=T.charCodeAt(I+D++);if(125===N){if(D<5||!tv(P))break;return{value:String.fromCodePoint(P),size:D}}if((P=P<<4|tP(N))<0)break}throw tn(N.source,I,`Invalid Unicode escape sequence: "${T.slice(I,I+D)}".`)}function tI(N,I){let T=N.source.body,P=tT(T,I+2);if(tv(P))return{value:String.fromCodePoint(P),size:6};if(tx(P)&&92===T.charCodeAt(I+6)&&117===T.charCodeAt(I+7)){let N=tT(T,I+8);if(tA(N))return{value:String.fromCodePoint(P,N),size:12}}throw tn(N.source,I,`Invalid Unicode escape sequence: "${T.slice(I,I+6)}".`)}function tT(N,I){return tP(N.charCodeAt(I))<<12|tP(N.charCodeAt(I+1))<<8|tP(N.charCodeAt(I+2))<<4|tP(N.charCodeAt(I+3))}function tP(N){return N>=48&&N<=57?N-48:N>=65&&N<=70?N-55:N>=97&&N<=102?N-87:-1}function tD(N,I){let T=N.source.body;switch(T.charCodeAt(I+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw tn(N.source,I,`Invalid character escape sequence: "${T.slice(I,I+2)}".`)}function tM(N,I){let T=N.source.body,P=T.length,D=N.lineStart,M=I+3,R=M,L="",$=[];for(;M<P;){let P=T.charCodeAt(M);if(34===P&&34===T.charCodeAt(M+1)&&34===T.charCodeAt(M+2)){L+=T.slice(R,M),$.push(L);let P=tS(N,U.BLOCK_STRING,I,M+3,tp($).join("\n"));return N.line+=$.length-1,N.lineStart=D,P}if(92===P&&34===T.charCodeAt(M+1)&&34===T.charCodeAt(M+2)&&34===T.charCodeAt(M+3)){L+=T.slice(R,M),R=M+1,M+=4;continue}if(10===P||13===P){L+=T.slice(R,M),$.push(L),13===P&&10===T.charCodeAt(M+1)?M+=2:++M,L="",R=M,D=M;continue}if(tv(P))++M;else if(tw(T,M))M+=2;else throw tn(N.source,M,`Invalid character within String: ${tE(N,M)}.`)}throw tn(N.source,M,"Unterminated string.")}function tR(N,I){let T=N.source.body,P=T.length,D=I+1;for(;D<P;)if(th(T.charCodeAt(D)))++D;else break;return tS(N,U.NAME,I,D,T.slice(I,D))}function tL(N,I){if(!N)throw Error(I)}
785let t$=10,tF=2;function tB(N){return tU(N,[])}function tU(N,I){switch(typeof N){case"string":return JSON.stringify(N);case"function":return N.name?`[function ${N.name}]`:"[function]";case"object":return tH(N,I);default:return String(N)}}function tH(N,I){if(null===N)return"null";if(I.includes(N))return"[Circular]";let T=[...I,N];if(tz(N)){let I=N.toJSON();if(I!==N)return"string"==typeof I?I:tU(I,T)}else if(Array.isArray(N))return tq(N,T);return tW(N,T)}function tz(N){return"function"==typeof N.toJSON}function tW(N,I){let T=Object.entries(N);return 0===T.length?"{}":I.length>tF?"["+tG(N)+"]":"{ "+T.map(([N,T])=>N+": "+tU(T,I)).join(", ")+" }"}function tq(N,I){if(0===N.length)return"[]";if(I.length>tF)return"[Array]";let T=Math.min(t$,N.length),P=N.length-T,D=[];for(let P=0;P<T;++P)D.push(tU(N[P],I));return 1===P?D.push("... 1 more item"):P>1&&D.push(`... ${P} more items`),"["+D.join(", ")+"]"}function tG(N){let I=Object.prototype.toString.call(N).replace(/^\[object /,"").replace(/]$/,"");if("Object"===I&&"function"==typeof N.constructor){let I=N.constructor.name;if("string"==typeof I&&""!==I)return I}return I}let tK=globalThis.process&&1?function(N,I){return N instanceof I}:function(N,I){if(N instanceof I)return!0;if("object"==typeof N&&null!==N){var T;let P=I.prototype[Symbol.toStringTag];if(P===(Symbol.toStringTag in N?N[Symbol.toStringTag]:null==(T=N.constructor)?void 0:T.name)){let I=tB(N);throw Error(`Cannot use ${P} "${I}" from another module or realm. 786 787Ensure that there is only one instance of "graphql" in the node_modules 788directory. If different versions of "graphql" are the dependencies of other 789relied on modules, use "resolutions" to ensure only one version is installed. 790 791https://yarnpkg.com/en/docs/selective-version-resolutions 792 793Duplicate "graphql" modules cannot be used at the same time since different 794versions may have different capabilities and behavior. The data from one 795version used in the function from another could produce confusing and 796spurious results.`)}}return!1};class tV{constructor(N,I="GraphQL request",T={line:1,column:1}){"string"==typeof N||tL(!1,`Body must be a string. Received: ${tB(N)}.`),this.body=N,this.name=I,this.locationOffset=T,this.locationOffset.line>0||tL(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||tL(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function tY(N){return tK(N,tV)}function tJ(N,I){let T=new tQ(N,I),P=T.parseDocument();return Object.defineProperty(P,"tokenCount",{enumerable:!1,value:T.tokenCount}),P}class tQ{constructor(N,I={}){const{lexer:T,...P}=I;if(T)this._lexer=T;else{const I=tY(N)?N:new tV(N);this._lexer=new ty(I)}this._options=P,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let N=this.expectToken(U.NAME);return this.node(N,{kind:B.NAME,value:N.value})}parseDocument(){return this.node(this._lexer.token,{kind:B.DOCUMENT,definitions:this.many(U.SOF,this.parseDefinition,U.EOF)})}parseDefinition(){if(this.peek(U.BRACE_L))return this.parseOperationDefinition();let N=this.peekDescription(),I=N?this._lexer.lookahead():this._lexer.token;if(N&&I.kind===U.BRACE_L)throw tn(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(I.kind===U.NAME){switch(I.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(I.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(N)throw tn(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if("extend"===I.value)return this.parseTypeSystemExtension()}throw this.unexpected(I)}parseOperationDefinition(){let N,I=this._lexer.token;if(this.peek(U.BRACE_L))return this.node(I,{kind:B.OPERATION_DEFINITION,operation:$.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let T=this.parseDescription(),P=this.parseOperationType();return this.peek(U.NAME)&&(N=this.parseName()),this.node(I,{kind:B.OPERATION_DEFINITION,operation:P,description:T,name:N,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let N=this.expectToken(U.NAME);switch(N.value){case"query":return $.QUERY;case"mutation":return $.MUTATION;case"subscription":return $.SUBSCRIPTION}throw this.unexpected(N)}parseVariableDefinitions(){return this.optionalMany(U.PAREN_L,this.parseVariableDefinition,U.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:B.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(U.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(U.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let N=this._lexer.token;return this.expectToken(U.DOLLAR),this.node(N,{kind:B.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:B.SELECTION_SET,selections:this.many(U.BRACE_L,this.parseSelection,U.BRACE_R)})}parseSelection(){return this.peek(U.SPREAD)?this.parseFragment():this.parseField()}parseField(){let N,I,T=this._lexer.token,P=this.parseName();return this.expectOptionalToken(U.COLON)?(N=P,I=this.parseName()):I=P,this.node(T,{kind:B.FIELD,alias:N,name:I,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(U.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(N){let I=N?this.parseConstArgument:this.parseArgument;return this.optionalMany(U.PAREN_L,I,U.PAREN_R)}parseArgument(N=!1){let I=this._lexer.token,T=this.parseName();return this.expectToken(U.COLON),this.node(I,{kind:B.ARGUMENT,name:T,value:this.parseValueLiteral(N)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let N=this._lexer.token;this.expectToken(U.SPREAD);let I=this.expectOptionalKeyword("on");return!I&&this.peek(U.NAME)?this.node(N,{kind:B.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(N,{kind:B.INLINE_FRAGMENT,typeCondition:I?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let N=this._lexer.token,I=this.parseDescription();return(this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables)?this.node(N,{kind:B.FRAGMENT_DEFINITION,description:I,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(N,{kind:B.FRAGMENT_DEFINITION,description:I,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(N){let I=this._lexer.token;switch(I.kind){case U.BRACKET_L:return this.parseList(N);case U.BRACE_L:return this.parseObject(N);case U.INT:return this.advanceLexer(),this.node(I,{kind:B.INT,value:I.value});case U.FLOAT:return this.advanceLexer(),this.node(I,{kind:B.FLOAT,value:I.value});case U.STRING:case U.BLOCK_STRING:return this.parseStringLiteral();case U.NAME:switch(this.advanceLexer(),I.value){case"true":return this.node(I,{kind:B.BOOLEAN,value:!0});case"false":return this.node(I,{kind:B.BOOLEAN,value:!1});case"null":return this.node(I,{kind:B.NULL});default:return this.node(I,{kind:B.ENUM,value:I.value})}case U.DOLLAR:if(N){if(this.expectToken(U.DOLLAR),this._lexer.token.kind===U.NAME){let N=this._lexer.token.value;throw tn(this._lexer.source,I.start,`Unexpected variable "$${N}" in constant value.`)}throw this.unexpected(I)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let N=this._lexer.token;return this.advanceLexer(),this.node(N,{kind:B.STRING,value:N.value,block:N.kind===U.BLOCK_STRING})}parseList(N){let I=()=>this.parseValueLiteral(N);return this.node(this._lexer.token,{kind:B.LIST,values:this.any(U.BRACKET_L,I,U.BRACKET_R)})}parseObject(N){let I=()=>this.parseObjectField(N);return this.node(this._lexer.token,{kind:B.OBJECT,fields:this.any(U.BRACE_L,I,U.BRACE_R)})}parseObjectField(N){let I=this._lexer.token,T=this.parseName();return this.expectToken(U.COLON),this.node(I,{kind:B.OBJECT_FIELD,name:T,value:this.parseValueLiteral(N)})}parseDirectives(N){let I=[];for(;this.peek(U.AT);)I.push(this.parseDirective(N));return I}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(N){let I=this._lexer.token;return this.expectToken(U.AT),this.node(I,{kind:B.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(N)})}parseTypeReference(){let N,I=this._lexer.token;if(this.expectOptionalToken(U.BRACKET_L)){let T=this.parseTypeReference();this.expectToken(U.BRACKET_R),N=this.node(I,{kind:B.LIST_TYPE,type:T})}else N=this.parseNamedType();return this.expectOptionalToken(U.BANG)?this.node(I,{kind:B.NON_NULL_TYPE,type:N}):N}parseNamedType(){return this.node(this._lexer.token,{kind:B.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(U.STRING)||this.peek(U.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let N=this._lexer.token,I=this.parseDescription();this.expectKeyword("schema");let T=this.parseConstDirectives(),P=this.many(U.BRACE_L,this.parseOperationTypeDefinition,U.BRACE_R);return this.node(N,{kind:B.SCHEMA_DEFINITION,description:I,directives:T,operationTypes:P})}parseOperationTypeDefinition(){let N=this._lexer.token,I=this.parseOperationType();this.expectToken(U.COLON);let T=this.parseNamedType();return this.node(N,{kind:B.OPERATION_TYPE_DEFINITION,operation:I,type:T})}parseScalarTypeDefinition(){let N=this._lexer.token,I=this.parseDescription();this.expectKeyword("scalar");let T=this.parseName(),P=this.parseConstDirectives();return this.node(N,{kind:B.SCALAR_TYPE_DEFINITION,description:I,name:T,directives:P})}parseObjectTypeDefinition(){let N=this._lexer.token,I=this.parseDescription();this.expectKeyword("type");let T=this.parseName(),P=this.parseImplementsInterfaces(),D=this.parseConstDirectives(),M=this.parseFieldsDefinition();return this.node(N,{kind:B.OBJECT_TYPE_DEFINITION,description:I,name:T,interfaces:P,directives:D,fields:M})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(U.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(U.BRACE_L,this.parseFieldDefinition,U.BRACE_R)}parseFieldDefinition(){let N=this._lexer.token,I=this.parseDescription(),T=this.parseName(),P=this.parseArgumentDefs();this.expectToken(U.COLON);let D=this.parseTypeReference(),M=this.parseConstDirectives();return this.node(N,{kind:B.FIELD_DEFINITION,description:I,name:T,arguments:P,type:D,directives:M})}parseArgumentDefs(){return this.optionalMany(U.PAREN_L,this.parseInputValueDef,U.PAREN_R)}parseInputValueDef(){let N,I=this._lexer.token,T=this.parseDescription(),P=this.parseName();this.expectToken(U.COLON);let D=this.parseTypeReference();this.expectOptionalToken(U.EQUALS)&&(N=this.parseConstValueLiteral());let M=this.parseConstDirectives();return this.node(I,{kind:B.INPUT_VALUE_DEFINITION,description:T,name:P,type:D,defaultValue:N,directives:M})}parseInterfaceTypeDefinition(){let N=this._lexer.token,I=this.parseDescription();this.expectKeyword("interface");let T=this.parseName(),P=this.parseImplementsInterfaces(),D=this.parseConstDirectives(),M=this.parseFieldsDefinition();return this.node(N,{kind:B.INTERFACE_TYPE_DEFINITION,description:I,name:T,interfaces:P,directives:D,fields:M})}parseUnionTypeDefinition(){let N=this._lexer.token,I=this.parseDescription();this.expectKeyword("union");let T=this.parseName(),P=this.parseConstDirectives(),D=this.parseUnionMemberTypes();return this.node(N,{kind:B.UNION_TYPE_DEFINITION,description:I,name:T,directives:P,types:D})}parseUnionMemberTypes(){return this.expectOptionalToken(U.EQUALS)?this.delimitedMany(U.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let N=this._lexer.token,I=this.parseDescription();this.expectKeyword("enum");let T=this.parseName(),P=this.parseConstDirectives(),D=this.parseEnumValuesDefinition();return this.node(N,{kind:B.ENUM_TYPE_DEFINITION,description:I,name:T,directives:P,values:D})}parseEnumValuesDefinition(){return this.optionalMany(U.BRACE_L,this.parseEnumValueDefinition,U.BRACE_R)}parseEnumValueDefinition(){let N=this._lexer.token,I=this.parseDescription(),T=this.parseEnumValueName(),P=this.parseConstDirectives();return this.node(N,{kind:B.ENUM_VALUE_DEFINITION,description:I,name:T,directives:P})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw tn(this._lexer.source,this._lexer.token.start,`${tZ(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let N=this._lexer.token,I=this.parseDescription();this.expectKeyword("input");let T=this.parseName(),P=this.parseConstDirectives(),D=this.parseInputFieldsDefinition();return this.node(N,{kind:B.INPUT_OBJECT_TYPE_DEFINITION,description:I,name:T,directives:P,fields:D})}parseInputFieldsDefinition(){return this.optionalMany(U.BRACE_L,this.parseInputValueDef,U.BRACE_R)}parseTypeSystemExtension(){let N=this._lexer.lookahead();if(N.kind===U.NAME)switch(N.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(N)}parseSchemaExtension(){let N=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let I=this.parseConstDirectives(),T=this.optionalMany(U.BRACE_L,this.parseOperationTypeDefinition,U.BRACE_R);if(0===I.length&&0===T.length)throw this.unexpected();return this.node(N,{kind:B.SCHEMA_EXTENSION,directives:I,operationTypes:T})}parseScalarTypeExtension(){let N=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let I=this.parseName(),T=this.parseConstDirectives();if(0===T.length)throw this.unexpected();return this.node(N,{kind:B.SCALAR_TYPE_EXTENSION,name:I,directives:T})}parseObjectTypeExtension(){let N=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let I=this.parseName(),T=this.parseImplementsInterfaces(),P=this.parseConstDirectives(),D=this.parseFieldsDefinition();if(0===T.length&&0===P.length&&0===D.length)throw this.unexpected();return this.node(N,{kind:B.OBJECT_TYPE_EXTENSION,name:I,interfaces:T,directives:P,fields:D})}parseInterfaceTypeExtension(){let N=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let I=this.parseName(),T=this.parseImplementsInterfaces(),P=this.parseConstDirectives(),D=this.parseFieldsDefinition();if(0===T.length&&0===P.length&&0===D.length)throw this.unexpected();return this.node(N,{kind:B.INTERFACE_TYPE_EXTENSION,name:I,interfaces:T,directives:P,fields:D})}parseUnionTypeExtension(){let N=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let I=this.parseName(),T=this.parseConstDirectives(),P=this.parseUnionMemberTypes();if(0===T.length&&0===P.length)throw this.unexpected();return this.node(N,{kind:B.UNION_TYPE_EXTENSION,name:I,directives:T,types:P})}parseEnumTypeExtension(){let N=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let I=this.parseName(),T=this.parseCo
796nstDirectives(),P=this.parseEnumValuesDefinition();if(0===T.length&&0===P.length)throw this.unexpected();return this.node(N,{kind:B.ENUM_TYPE_EXTENSION,name:I,directives:T,values:P})}parseInputObjectTypeExtension(){let N=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let I=this.parseName(),T=this.parseConstDirectives(),P=this.parseInputFieldsDefinition();if(0===T.length&&0===P.length)throw this.unexpected();return this.node(N,{kind:B.INPUT_OBJECT_TYPE_EXTENSION,name:I,directives:T,fields:P})}parseDirectiveDefinition(){let N=this._lexer.token,I=this.parseDescription();this.expectKeyword("directive"),this.expectToken(U.AT);let T=this.parseName(),P=this.parseArgumentDefs(),D=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let M=this.parseDirectiveLocations();return this.node(N,{kind:B.DIRECTIVE_DEFINITION,description:I,name:T,arguments:P,repeatable:D,locations:M})}parseDirectiveLocations(){return this.delimitedMany(U.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let N=this._lexer.token,I=this.parseName();if(Object.prototype.hasOwnProperty.call(F,I.value))return I;throw this.unexpected(N)}parseSchemaCoordinate(){let N,I,T=this._lexer.token,P=this.expectOptionalToken(U.AT),D=this.parseName();return(!P&&this.expectOptionalToken(U.DOT)&&(N=this.parseName()),(P||N)&&this.expectOptionalToken(U.PAREN_L)&&(I=this.parseName(),this.expectToken(U.COLON),this.expectToken(U.PAREN_R)),P)?I?this.node(T,{kind:B.DIRECTIVE_ARGUMENT_COORDINATE,name:D,argumentName:I}):this.node(T,{kind:B.DIRECTIVE_COORDINATE,name:D}):N?I?this.node(T,{kind:B.ARGUMENT_COORDINATE,name:D,fieldName:N,argumentName:I}):this.node(T,{kind:B.MEMBER_COORDINATE,name:D,memberName:N}):this.node(T,{kind:B.TYPE_COORDINATE,name:D})}node(N,I){return!0!==this._options.noLocation&&(I.loc=new ta(N,this._lexer.lastToken,this._lexer.source)),I}peek(N){return this._lexer.token.kind===N}expectToken(N){let I=this._lexer.token;if(I.kind===N)return this.advanceLexer(),I;throw tn(this._lexer.source,I.start,`Expected ${tX(N)}, found ${tZ(I)}.`)}expectOptionalToken(N){return this._lexer.token.kind===N&&(this.advanceLexer(),!0)}expectKeyword(N){let I=this._lexer.token;if(I.kind===U.NAME&&I.value===N)this.advanceLexer();else throw tn(this._lexer.source,I.start,`Expected "${N}", found ${tZ(I)}.`)}expectOptionalKeyword(N){let I=this._lexer.token;return I.kind===U.NAME&&I.value===N&&(this.advanceLexer(),!0)}unexpected(N){let I=null!=N?N:this._lexer.token;return tn(this._lexer.source,I.start,`Unexpected ${tZ(I)}.`)}any(N,I,T){this.expectToken(N);let P=[];for(;!this.expectOptionalToken(T);)P.push(I.call(this));return P}optionalMany(N,I,T){if(this.expectOptionalToken(N)){let N=[];do N.push(I.call(this));while(!this.expectOptionalToken(T));return N}return[]}many(N,I,T){this.expectToken(N);let P=[];do P.push(I.call(this));while(!this.expectOptionalToken(T));return P}delimitedMany(N,I){this.expectOptionalToken(N);let T=[];do T.push(I.call(this));while(this.expectOptionalToken(N));return T}advanceLexer(){let{maxTokens:N}=this._options,I=this._lexer.advance();if(I.kind!==U.EOF&&(++this._tokenCounter,void 0!==N&&this._tokenCounter>N))throw tn(this._lexer.source,I.start,`Document contains more that ${N} tokens. Parsing aborted.`)}}function tZ(N){let I=N.value;return tX(N.kind)+(null!=I?` "${I}"`:"")}function tX(N){return tb(N)?`"${N}"`:N}function t0(N){return`"${N.replace(t1,t2)}"`}let t1=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
796function t2(N){return t3[N.charCodeAt(0)]}let t3=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],t4=Object.freeze({});function t5(N,I,T=to){let P,D,M,R=new Map;for(let N of Object.values(B))R.set(N,t6(I,N));let L=Array.isArray(N),$=[N],F=-1,U=[],H=N,z=[],W=[];do{var q,G,K;let N,B=++F===$.length,V=B&&0!==U.length;if(B){if(D=0===W.length?void 0:z[z.length-1],H=M,M=W.pop(),V)if(L){H=H.slice();let N=0;for(let[I,T]of U){let P=I-N;null===T?(H.splice(P,1),N++):H[P]=T}}else for(let[N,I]of(H={...H},U))H[N]=I;F=P.index,$=P.keys,U=P.edits,L=P.inArray,P=P.prev}else if(M){if(null==(H=M[D=L?F:$[F]]))continue;z.push(D)}if(!Array.isArray(H)){tl(H)||tL(!1,`Invalid AST Node: ${tB(H)}.`);let T=B?null==(q=R.get(H.kind))?void 0:q.leave:null==(G=R.get(H.kind))?void 0:G.enter;if((N=null==T?void 0:T.call(I,H,D,M,z,W))===t4)break;if(!1===N){if(!B){z.pop();continue}}else if(void 0!==N&&(U.push([D,N]),!B))if(tl(N))H=N;else{z.pop();continue}}void 0===N&&V&&U.push([D,H]),B?z.pop():(P={inArray:L,index:F,keys:$,edits:U,prev:P},$=(L=Array.isArray(H))?H:null!=(K=T[H.kind])?K:[],F=-1,U=[],M&&W.push(M),M=H)}while(void 0!==P);return 0!==U.length?U[U.length-1][1]:N}function t6(N,I){let T=N[I];return"object"==typeof T?T:"function"==typeof T?{enter:T,leave:void 0}:{enter:N.enter,leave:N.leave}}function t8(N){return t5(N,t9)}let t7=80,t9={Name:{leave:N=>N.value},Variable:{leave:N=>"$"+N.name},Document:{leave:N=>re(N.definitions,"\n\n")},OperationDefinition:{leave(N){let I=ra(N.variableDefinitions)?rr("(\n",re(N.variableDefinitions,"\n"),"\n)"):rr("(",re(N.variableDefinitions,", "),")"),T=rr("",N.description,"\n")+re([N.operation,re([N.name,I]),re(N.directives," ")]," ");return("query"===T?"":T+" ")+N.selectionSet}},VariableDefinition:{leave:({variable:N,type:I,defaultValue:T,directives:P,description:D})=>rr("",D,"\n")+N+": "+I+rr(" = ",T)+rr(" ",re(P," "))},SelectionSet:{leave:({selections:N})=>rt(N)},Field:{leave({alias:N,name:I,arguments:T,directives:P,selectionSet:D}){let M=rr("",N,": ")+I,R=M+rr("(",re(T,", "),")");return R.length>t7&&(R=M+rr("(\n",rn(re(T,"\n")),"\n)")),re([R,re(P," "),D]," ")}},Argument:{leave:({name:N,value:I})=>N+": "+I},FragmentSpread:{leave:({name:N,directives:I})=>"..."+N+rr(" ",re(I," "))},InlineFragment:{leave:({typeCondition:N,directives:I,selectionSet:T})=>re(["...",rr("on ",N),re(I," "),T]," ")},FragmentDefinition:{leave:({name:N,typeCondition:I,variableDefinitions:T,directives:P,selectionSet:D,description:M})=>rr("",M,"\n")+`fragment ${N}${rr("(",re(T,", "),")")} `+`on ${I} ${rr("",re(P," ")," ")}`+D},IntValue:{leave:({value:N})=>N},FloatValue:{leave:({value:N})=>N},StringValue:{leave:({value:N,block:I})=>I?tg(N):t0(N)},BooleanValue:{leave:({value:N})=>N?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:N})=>N},ListValue:{leave:({values:N})=>"["+re(N,", ")+"]"},ObjectValue:{leave:({fields:N})=>"{"+re(N,", ")+"}"},ObjectField:{leave:({name:N,value:I})=>N+": "+I},Directive:{leave:({name:N,arguments:I})=>"@"+N+rr("(",re(I,", "),")")},NamedType:{leave:({name:N})=>N},ListType:{leave:({type:N})=>"["+N+"]"},NonNullType:{leave:({type:N})=>N+"!"},SchemaDefinition:{leave:({description:N,directives:I,operationTypes:T})=>rr("",N,"\n")+re(["schema",re(I," "),rt(T)]," ")},OperationTypeDefinition:{leave:({operation:N,type:I})=>N+": "+I},ScalarTypeDefinition:{leave:({description:N,name:I,directives:T})=>rr("",N,"\n")+re(["scalar",I,re(T," ")]," ")},ObjectTypeDefinition:{leave:({description:N,name:I,interfaces:T,directives:P,fields:D})=>rr("",N,"\n")+re(["type",I,rr("implements ",re(T," & ")),re(P," "),rt(D)]," ")},FieldDefinition:{leave:({description:N,name:I,arguments:T,type:P,directives:D})=>rr("",N,"\n")+I+(ra(T)?rr("(\n",rn(re(T,"\n")),"\n)"):rr("(",re(T,", "),")"))+": "+P+rr(" ",re(D," "))},InputValueDefinition:{leave:({description:N,name:I,type:T,defaultValue:P,directives:D})=>rr("",N,"\n")+re([I+": "+T,rr("= ",P),re(D," ")]," ")},InterfaceTypeDefinition:{leave:({description:N,name:I,interfaces:T,directives:P,fields:D})=>rr("",N,"\n")+re(["interface",I,rr("implements ",re(T," & ")),re(P," "),rt(D)]," ")},UnionTypeDefinition:{leave:({description:N,name:I,directives:T,types:P})=>rr("",N,"\n")+re(["union",I,re(T," "),rr("= ",re(P," | "))]," ")},EnumTypeDefinition:{leave:({description:N,name:I,directives:T,values:P})=>rr("",N,"\n")+re(["enum",I,re(T," "),rt(P)]," ")},EnumValueDefinition:{leave:({description:N,name:I,directives:T})=>rr("",N,"\n")+re([I,re(T," ")]," ")},InputObjectTypeDefinition:{leave:({description:N,name:I,directives:T,fields:P})=>rr("",N,"\n")+re(["input",I,re(T," "),rt(P)]," ")},DirectiveDefinition:{leave:({description:N,name:I,arguments:T,repeatable:P,locations:D})=>rr("",N,"\n")+"directive @"+I+(ra(T)?rr("(\n",rn(re(T,"\n")),"\n)"):rr("(",re(T,", "),")"))+(P?" repeatable":"")+" on "+re(D," | ")},SchemaExtension:{leave:({directives:N,operationTypes:I})=>re(["extend schema",re(N," "),rt(I)]," ")},ScalarTypeExtension:{leave:({name:N,directives:I})=>re(["extend scalar",N,re(I," ")]," ")},ObjectTypeExtension:{leave:({name:N,interfaces:I,directives:T,fields:P})=>re(["extend type",N,rr("implements ",re(I," & ")),re(T," "),rt(P)]," ")},InterfaceTypeExtension:{leave:({name:N,interfaces:I,directives:T,fields:P})=>re(["extend interface",N,rr("implements ",re(I," & ")),re(T," "),rt(P)]," ")},UnionTypeExtension:{leave:({name:N,directives:I,types:T})=>re(["extend union",N,re(I," "),rr("= ",re(T," | "))]," ")},EnumTypeExtension:{leave:({name:N,directives:I,values:T})=>re(["extend enum",N,re(I," "),rt(T)]," ")},InputObjectTypeExtension:{leave:({name:N,directives:I,fields:T})=>
796re(["extend input",N,re(I," "),rt(T)]," ")},TypeCoordinate:{leave:({name:N})=>N},MemberCoordinate:{leave:({name:N,memberName:I})=>re([N,rr(".",I)])},ArgumentCoordinate:{leave:({name:N,fieldName:I,argumentName:T})=>re([N,rr(".",I),rr("(",T,":)")])},DirectiveCoordinate:{leave:({name:N})=>re(["@",N])},DirectiveArgumentCoordinate:{leave:({name:N,argumentName:I})=>re(["@",N,rr("(",I,":)")])}};function re(N,I=""){var T;return null!=(T=null==N?void 0:N.filter(N=>N).join(I))?T:""}function rt(N){return rr("{\n",rn(re(N,"\n")),"\n}")}function rr(N,I,T=""){return null!=I&&""!==I?N+I+T:""}function rn(N){return rr(" ",N.replace(/\n/g,"\n "))}function ra(N){var I;return null!=(I=null==N?void 0:N.some(N=>N.includes("\n")))&&I}let ri=N=>{let I,T=N.definitions.filter(N=>"OperationDefinition"===N.kind);return 1===T.length&&(I=T[0]?.name?.value),I},ro=N=>{if("string"==typeof N){let I;try{let T=tJ(N);I=ri(T)}catch(N){}return{query:N,operationName:I}}let I=ri(N);return{query:t8(N),operationName:I}};class rs extends Error{constructor(N,I){super(`${rs.extractMessage(N)}: ${JSON.stringify({response:N,request:I})}`),Object.setPrototypeOf(this,rs.prototype),this.response=N,this.request=I,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,rs)}static extractMessage(N){return N.errors?.[0]?.message??`GraphQL Error (Code: ${N.status})`}}var rl=T(55541),rc=T.t(rl,2);let ru="connection_init",rd="connection_ack",rf="ping",rh="pong",rp="subscribe",rm="next",rg="error",ry="complete";class rb{get type(){return this._type}get id(){return this._id}get payload(){return this._payload}constructor(N,I,T){this._type=N,this._payload=I,this._id=T}get text(){let N={type:this.type};return null!=this.id&&void 0!=this.id&&(N.id=this.id),null!=this.payload&&void 0!=this.payload&&(N.payload=this.payload),JSON.stringify(N)}static parse(N,I){let{type:T,payload:P,id:D}=JSON.parse(N);return new rb(T,I(P),D)}}class rv{constructor(N,{onInit:I,onAcknowledged:T,onPing:P,onPong:D}){this.socketState={acknowledged:!1,lastRequestId:0,subscriptions:{}},this.socket=N,N.addEventListener("open",async T=>{this.socketState.acknowledged=!1,this.socketState.subscriptions={},N.send(rx(I?await I():null).text)}),N.addEventListener("close",N=>{this.socketState.acknowledged=!1,this.socketState.subscriptions={}}),N.addEventListener("error",N=>{console.error(N)}),N.addEventListener("message",I=>{try{let M=rw(I.data);switch(M.type){case rd:this.socketState.acknowledged?console.warn("Duplicate CONNECTION_ACK message ignored"):(this.socketState.acknowledged=!0,T&&T(M.payload));return;case rf:P?P(M.payload).then(I=>N.send(rE(I).text)):N.send(rE(null).text);return;case rh:D&&D(M.payload);return}if(!this.socketState.acknowledged||void 0===M.id||null===M.id||!this.socketState.subscriptions[M.id])return;let{query:R,variables:L,subscriber:$}=this.socketState.subscriptions[M.id];switch(M.type){case rm:!M.payload.errors&&M.payload.data&&$.next&&$.next(M.payload.data),M.payload.errors&&$.error&&$.error(new rs({...M.payload,status:200},{query:R,variables:L}));return;case rg:$.error&&$.error(new rs({errors:M.payload,status:200},{query:R,variables:L}));return;case ry:$.complete&&$.complete(),delete this.socketState.subscriptions[M.id];return}}catch(I){console.error(I),N.close(1006)}N.close(4400,"Unknown graphql-ws message.")})}makeSubscribe(N,I,T,P){let D=(this.socketState.lastRequestId++).toString();return this.socketState.subscriptions[D]={query:N,variables:P,subscriber:T},this.socket.send(rS(D,{query:N,operationName:I,variables:P}).text),()=>{this.socket.send(r_(D).text),delete this.socketState.subscriptions[D]}}rawRequest(N,I){return new Promise((T,P)=>{let D;this.rawSubscribe(N,{next:(N,I)=>D={data:N,extensions:I},error:P,complete:()=>T(D)},I)})}request(N,I){return new Promise((T,P)=>{let D;this.subscribe(N,{next:N=>D=N,error:P,complete:()=>T(D)},I)})}subscribe(N,I,T){let{query:P,operationName:D}=ro(N);return this.makeSubscribe(P,D,I,T)}rawSubscribe(N,I,T){return this.makeSubscribe(N,void 0,I,T)}ping(N){this.socket.send(rA(N).text)}close(){this.socket.close(1e3)}}function rw(N,I=N=>N){return rb.parse(N,I)}function rx(N){return new rb(ru,N)}function rA(N){return new rb(rf,N,void 0)}function rE(N){return new rb(rh,N,void 0)}function rS(N,I){return new rb(rp,I,N)}function r_(N){return new rb(ry,void 0,N)}rv.PROTOCOL="graphql-transport-ws";let rk=N=>{let I={};return N&&("u">typeof Headers&&N instanceof Headers||rc&&rl.Headers&&N instanceof rl.Headers?I=eX(N):Array.isArray(N)?N.forEac
796h(([N,T])=>{N&&void 0!==T&&(I[N]=T)}):I=N),I},rC=N=>N.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),rj=N=>{if(!Array.isArray(N.query)){let I=N,T=[`query=${encodeURIComponent(rC(I.query))}`];return N.variables&&T.push(`variables=${encodeURIComponent(I.jsonSerializer.stringify(I.variables))}`),I.operationName&&T.push(`operationName=${encodeURIComponent(I.operationName)}`),T.join("&")}if(void 0!==N.variables&&!Array.isArray(N.variables))throw Error("Cannot create query with given variable type, array expected");let I=N,T=N.query.reduce((N,T,P)=>(N.push({query:rC(T),variables:I.variables?I.jsonSerializer.stringify(I.variables[P]):void 0}),N),[]);return`query=${encodeURIComponent(I.jsonSerializer.stringify(T))}`},rO=N=>async I=>{let T,{url:P,query:D,variables:M,operationName:R,fetch:L,fetchOptions:$,middleware:F}=I,B={...I.headers},U="";"POST"===N?"string"==typeof(T=rT(D,M,R,$.jsonSerializer))&&(B["Content-Type"]="application/json"):U=rj({query:D,variables:M,operationName:R,jsonSerializer:$.jsonSerializer??eQ});let H={method:N,headers:B,body:T,...$},z=P,W=H;if(F){let{url:N,...I}=await Promise.resolve(F({...H,url:P,operationName:R,variables:M}));z=N,W=I}return U&&(z=`${z}?${U}`),await L(z,W)};class rN{constructor(N,I={}){this.url=N,this.requestConfig=I,this.rawRequest=async(...N)=>{let[I,T,P]=N,D=e1(I,T,P),{headers:M,fetch:R=rl,method:L="POST",requestMiddleware:$,responseMiddleware:F,...B}=this.requestConfig,{url:U}=this;void 0!==D.signal&&(B.signal=D.signal);let{operationName:H}=ro(D.query);return rI({url:U,query:D.query,variables:D.variables,headers:{...rk(rD(M)),...rk(D.requestHeaders)},operationName:H,fetch:R,method:L,fetchOptions:B,middleware:$}).then(N=>(F&&F(N),N)).catch(N=>{throw F&&F(N),N})}}async request(N,...I){let[T,P]=I,D=e0(N,T,P),{headers:M,fetch:R=rl,method:L="POST",requestMiddleware:$,responseMiddleware:F,...B}=this.requestConfig,{url:U}=this;void 0!==D.signal&&(B.signal=D.signal);let{query:H,operationName:z}=ro(D.document);return rI({url:U,query:H,variables:D.variables,headers:{...rk(rD(M)),...rk(D.requestHeaders)},operationName:z,fetch:R,method:L,fetchOptions:B,middleware:$}).then(N=>(F&&F(N),N.data)).catch(N=>{throw F&&F(N),N})}batchRequests(N,I){let T=e2(N,I),{headers:P,...D}=this.requestConfig;void 0!==T.signal&&(D.signal=T.signal);let M=T.documents.map(({document:N})=>ro(N).query),R=T.documents.map(({variables:N})=>N);return rI({url:this.url,query:M,variables:R,headers:{...rk(rD(P)),...rk(T.requestHeaders)},operationName:void 0,fetch:this.requestConfig.fetch??rl,method:this.requestConfig.method||"POST",fetchOptions:D,middleware:this.requestConfig.requestMiddleware}).then(N=>(this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(N),N.data)).catch(N=>{throw this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(N),N})}setHeaders(N){return this.requestConfig.headers=N,this}setHeader(N,I){let{headers:T}=this.requestConfig;return T?T[N]=I:this.requestConfig.headers={[N]:I},this}setEndpoint(N){return this.url=N,this}}let rI=async N=>{let{query:I,variables:T,fetchOptions:P}=N,D=rO(eZ(N.method??"post")),M=Array.isArray(N.query),R=await D(N),L=await rP(R,P.jsonSerializer??eQ),$=Array.isArray(L)?!L.some(({data:N})=>!N):!!L.data,F=Array.isArray(L)||!L.errors||Array.isArray(L.errors)&&!L.errors.length||"all"===P.errorPolicy||"ignore"===P.errorPolicy;if(R.ok&&F&&$){let{errors:N,...I}=(Array.isArray(L),L),T="ignore"===P.errorPolicy?I:L;return{...M?{data:T}:T,headers:R.headers,status:R.status}}throw new rs({..."string"==typeof L?{error:L}:L,status:R.status,headers:R.headers},{query:I,variables:T})},rT=(N,I,T,P)=>{let D=P??eQ;if(!Array.isArray(N))return D.stringify({query:N,variables:I,operationName:T});if(void 0!==I&&!Array.isArray(I))throw Error("Cannot create request body with given variable type, array expected");let M=N.reduce((N,T,P)=>(N.push({query:T,variables:I?I[P]:void 0}),N),[]);return D.stringify(M)},rP=async(N,I)=>{let T;return(N.headers.forEach((N,I)=>{"content-type"===I.toLowerCase()&&(T=N)}),T&&(T.toLowerCase().startsWith("application/json")||T.toLowerCase().startsWith("application/graphql+json")||T.toLowerCase().startsWith("application/graphql-response+json")))?I.parse(await N.text()):N.text()},rD=N=>"function"==typeof N?N():N;var rM=T(84090),rR=T(50063),rL=function(N,I){var T={};for(var P in N)Object.prototype.hasOwnProperty.call(N,P)&&0>I.indexOf(P)&&(T[P]=N[P]);if(null!=N&&"function"==typeof Object.getOwnPropertySymbols)for(var D=0,P=Object.getOwnPropertySymbols(N);D<P.length;D++)0>I.indexOf(P[D])&&Object.prototype.propertyIsEnumerable.call(N,P[D])&&
796(T[P[D]]=N[P[D]]);return T};class r${constructor(N,I={}){var T,P;this.endpoint=N,this.headers={},I.apiKey&&(this.headers.sc_apikey=I.apiKey),I.headers&&(this.headers=Object.assign(Object.assign({},this.headers),I.headers)),I.contextId&&(this.headers["x-sitecore-contextid"]=I.contextId);let D=!1;try{D=!!new URL(N).hostname}catch(N){}if(!N||!D)throw Error(`Invalid GraphQL endpoint '${N}'. Verify that appropriate environment variable is set`);this.timeout=I.timeout,this.retries=null!=(T=I.retries)?T:3,this.retryStrategy=I.retryStrategy||new rR.H({statusCodes:[429,502,503,504,520,521,522,523,524]}),this.client=new rN(N,{headers:this.headers,fetch:null!=(P=I.fetch)?P:(N,I)=>globalThis.fetch(N,I)}),this.debug=I.debugger||K.Ay.http}static createClientFactory(N){var{endpoint:I}=N,T=rL(N,["endpoint"]);return (N={})=>new r$(I,Object.assign(Object.assign({},T),N))}async request(N,I,T){let P=1,D=async()=>{let M=(null==T?void 0:T.retries)||this.retries,R=(null==T?void 0:T.retryStrategy)||this.retryStrategy,L=(null==T?void 0:T.debugger)||this.debug;L("request: %o",{url:this.endpoint,headers:Object.assign(Object.assign({},this.headers),null==T?void 0:T.headers),query:N,variables:I,timeout:this.timeout});let $=Object.assign(Object.assign({},this.headers),null==T?void 0:T.headers),F=performance.now(),B=[this.client.request(N,I,$)];return this.timeout&&(this.abortTimeout=new rM.A(this.timeout),B.push(this.abortTimeout.start)),Promise.race(B).then(N=>{var I;return null==(I=this.abortTimeout)||I.clear(),this.debug("response in %dms: %o",performance.now()-F,N),Promise.resolve(N)},async N=>{var I,T;null==(I=this.abortTimeout)||I.clear(),L("response error: %o",N.response||N.message||N);let $=(null==(T=N.response)?void 0:T.status)||N.code;if(!R.shouldRetry(N,P,M))return Promise.reject(N);{let I=R.getDelay(N,P);return L("Error: %s. Retrying in %dms (attempt %d).",$,I,P),P++,new Promise(N=>setTimeout(N,I)).then(D)}})};return D()}}var rF=T(88847);let rB=N=>{let I,{api:T}=N,{edge:P,local:D}=null!=T?T:{},M="u">typeof window;if(null==P?void 0:P.contextId)I={endpoint:(0,rF.i)(P.edgeUrl),contextId:P.contextId};else if(M&&(null==P?void 0:P.clientContextId))I={endpoint:(0,rF.i)(P.edgeUrl),contextId:P.clientContextId};else if((null==D?void 0:D.apiKey)&&(null==D?void 0:D.apiHost))I={endpoint:`${D.apiHost}${D.path}`,apiKey:D.apiKey};else if(M)console.warn("GraphQL client initialised in the browser without Edge or local API configuration; client-side requests may fail."),I={endpoint:"/api/graphql"};else throw Error(`GraphQL client misconfigured. 797 Configure one of the following in sitecore.config or your .env file: 798 Edge mode: set both sitecore.edge.contextId (server-side) and sitecore.edge.clientContextId (browser). 799 Local API mode: set api.local.apiHost and api.local.apiKey. 800 Supplying only api.edge.clientContextId will cause the application to fail at runtime.`);return r$.createClientFactory(Object.assign(Object.assign({},I),N))},{UU:rU}=G,rH=` 801 query RobotsQuery($siteName: String!) { 802 site { 803 siteInfo(site: $siteName) { 804 robots 805 } 806 } 807 } 808`;class rz{constructor(N){this.options=N,this.graphQLClient=this.getGraphQLClient()}get query(){return rH}async fetchRobots(N){let I=this.options.siteName;if(!I)throw Error(rU.MV_002);let T=this.graphQLClient.request(this.query,{siteName:I},N);try{return T.then(N=>{var I,T;return null==(T=null==(I=null==N?void 0:N.site)?void 0:I.siteInfo)?void 0:T.robots})}catch(N){return Promise.reject(N)}}getGraphQLClient(){if(!this.options.clientFactory)throw Error("clientFactory needs to be provided when initializing GraphQL client.");return this.options.clientFactory({debugger:J.A.robots})}}let{UU:rW}=G,rq=` 809 query LlmsTxtQuery($siteName: String!) { 810 site { 811 siteInfo(site: $siteName) { 812 llmsTxt 813 } 814 } 815 } 816`;class rG{constructor(N){this.options=N,this.graphQLClient=this.getGraphQLClient()}get query(){return rq}async fetchLlmsTxt(N){let I=this.options.siteName;if(!I)throw Error(rW.MV_002);let T=this.graphQLClient.request(this.query,{siteName:I},N);try{return T.then(N=>{var I,T;return null==(T=null==(I=null==N?void 0:N.site)?void 0:I.siteInfo)?void 0:T.llmsTxt})}catch(N){return Promise.reject(N)}}getGraphQLClient(){if(!this.options.clientFactory)throw Error("clientFactory needs to be provided when initializing GraphQL client.");return this.options.clientFactory({debugger:J.A.llmsTxt})}}var rK=T(35122);let rV=` 817 query EditingQuery($itemId: String!, $language: String!, $version: String) { 818 item(path: $itemId, language: $language, version: $version) { 819 rendered 820 } 821 } 822`;class rY{constructor(N){this.serviceConfig=N,this.graphQLClient=this.getGraphQLClient()}async fetchEditingData({itemId:N,language:I,version:T,layoutKind:P=rK.dQ.Final,mode:D,site:M,variantId:R,previewTime:L},$){var F;if(J.A.editing("fetching editing data for %s %s %s %s",N,I,T,P),!I)throw RangeError("The language must be a non-empty string");let B="edit"===D?"true":"false",U="preview"===D?"true":"false",H=await this.graphQLClient.request(rV,{itemId:N,version:T,language:I},Object.assign(Object.assign({},$),{headers:Object.assign(Object.assign(Object.assign(Object.assign({},null==$?void 0:$.headers),{sc_layoutKind:P,sc_editMode:B,sc_previewMode:U,sc_variant:R===eU.um?"default":R}),M&&{sc_site:M}),L&&{sc_previewTime:L})}));return{layoutData:(null==(F=null==H?void 0:H.item)?void 0:F.rendered)||{sitecore:{context:{pageEditing:!0,language:I},route:null}}}}getGraphQLClient(){if(!this.serviceConfig.clientFactory)throw Error("clientFactory needs to be provided when initializing GraphQL client.");return this.serviceConfig.clientFactory({debugger:J.A.editing})}}let{UU:rJ}=G;class rQ{constructor(N){this.config=N}fetchComponentData(N,I){let T=this.config.contextId||this.config.clientContextId;if(!T)throw Error(rJ.MV_001);let P=new V.j({debugger:J.A.layout});return J.A.layout("fetching component with uid %s for %s %s %s %s",N.componentUid,N.itemId,N.language,N.siteName,N.dataSourceId),P.get(this.getFetchUrl(N),Object.assign(Object.assign({},I),{headers:Object.assign(Object.assign({},null==I?void 0:I.headers),{"x-sitecore-contextid":T,sc_editMode:`${N.mode===rK.lq.Metadata}`})})).then(N=>N.data).catch(N=>{var I;if((null==(I=N.response)?void 0:I.status)===404)return N.response.data;throw N})}getComponentFetchParams(N){return JSON.parse(JSON.stringify({item:N.itemId,uid:N.componentUid,dataSourceId:N.dataSourceId,renderingItemId:N.renderingId,version:N.version,sc_site:N.siteName,sc_lang:N.language||"en"}))}getFetchUrl(N){var I;let T=(0,et.l)(null!=(I=this.config.edgeUrl)?I:G.Ty);return eg(`${T}/layout/component`,this.getComponentFetchParams(N))}}let{UU:rZ}=G;(L=H||(H={})).NotFound="404",L.InternalServerError="500";class rX{constructor(N){var I,T,P,D,M,R,L,$,F,B;this.initOptions=N,this.clientFactory=this.getClientFactory(),this.graphQLClient=this.clientFactory({debugger:K.Ay.http});const U=this.getBaseServiceOptions();this.layoutService=null!=(T=null==(I=N.custom)?void 0:I.layoutService)?T:this.getLayoutService(U),this.dictionaryService=null!=(D=null==(P=N.custom)?void 0:P.dictionaryService)?D:this.getDictionaryService(U),this.editingService=null!=(R=null==(M=N.custom)?void 0:M.editingService)?R:this.getEditingService(),this.errorPagesService=null!=($=null==(L=N.custom)?void 0:L.errorPagesService)?$:this.getErrorPagesService(),this.sitePathService=null!=(B=null==(F=N.custom)?void 0:F.sitePathService)?B:this.getSitePathService(),this.componentService=this.getComponentService()}parsePath(N){return"string"==typeof N?N.startsWith("/")?N:`/${N}`:`/${N.filter(N=>"/"!==N).map(N=>N.replace(/^\/+/,"").replace(/\/+$/,"")).join("/")}`}getData(N,I,T){return this.graphQLClient.request(N,I,T)}async getPage(N,I,T){var P,D,M,R;let L=this.parsePath(N),$=null!=(P=null==I?void 0:I.locale)?P:this.initOptions.defaultLanguage,F=null!=(D=null==I?void 0:I.site)?D:this.initOptions.defaultSite,B=await this.layoutService.fetchLayoutData(L,{locale:$,site:F},T);return B.sitecore.route?((null==(M=null==I?void 0:I.personalize)?void 0:M.variantId)&&eI(B,I.personalize.variantId,I.personalize.componentVariantIds),{layout:B=this.applyContentRewrite(B),siteName:(null==(R=B.sitecore.context.site)?void 0:R.name)||F,locale:$,mode:this.getPageMode(ee.IY.Normal)}):null}getHeadLinks(N,I={}){let{enableStyles:T=!0,enableThemes:P=!0}=I,{contextId:D,clientContextId:M}=this.initOptions.api.edge,R=[],L=D||M,$=(0,Y.Ly)(this.initOptions.api.edge.edgeUrl);if(T){let I=en(N,L,$);I&&R.push(I)}return P&&R.push(...eu(N,L,$)),R}async getDictionary(N,I){let T=(null==N?void 0:N.locale)||this.initOptions.defaultLanguage,P=(null==N?void 0:N.site)||this.initOptions.defaultSite;return await this.dictionaryService.fetchDictionaryData(T,P,I)}async getErrorPages(N,I){let T=(null==N?void 0:N.locale)||this.initOptions.defaultLanguage,P=(null==N?void 0:N.site)||this.initOptions.defaultSite;return await this.errorPagesService.fetchErrorPages(P,T,I)}async getPreview(N,I){var T;if(!N)return console.error("Preview data missing"),null;let{site:P,itemId:D,language:M,version:R,layoutKind:L,mode:$,variantId:F,previewTime:B}=N,U=await this.editingService.fetchEditingData({itemId:D,language:M,version:R,layoutKind:L,mode:$,site:P,variantId:F,previewTime:B},I);if(!U)throw Error(`Unable to fetch editing data for preview ${JSON.stringify(N)}. ${rZ.CONTACT_SUPPORT}`);if(!U.layoutData.sitecore.route)return null;let H=U.layoutData;return{locale:M,layout:H=this.applyContentRewrite(H),siteName:(null==(T=H.sitecore.context.site)?void 0:T.name)||P,mode:this.getPageMode($)}}async getDesignLibraryData(N,I){var T;let{itemId:P,componentUid:D,site:M,language:R,renderingId:L,dataSourceId:$,version:F,mode:B,generation:U}=N,H=await this.componentService.fetchComponentData(Object.assign({siteName:M,itemId:P,language:R,componentUid:D,renderingId:L,dataSourceId:$,version:F,mode:B},U?{generation:U}:{}),I);if(!H)throw Error(`Unable to fetch editing data for preview ${JSON.stringify(N)}. ${rZ.CONTACT_SUPPORT}`);let z=this.applyContentRewrite(H);return{locale:N.language,layout:z,siteName:(null==(T=z.sitecore.context.site)?void 0:T.name)||M,mode:this.getPageMode(B,U)}}async getErrorPage(N,I,T){var P,D;let M=(null==I?void 0:I.locale)||this.initOptions.defaultLanguage,R=(null==I?void 0:I.site)||this.initOptions.defaultSite,L=await this.getErrorPages({site:R,locale:M},T),$=null;switch(N){case H.NotFound:$=(null==(P=null==L?void 0:L.notFoundPage)?void 0:P.rendered)||null;break;case H.InternalServerError:$=(null==(D=null==L?void 0:L.serverErrorPage)?void 0:D.rendered)||null;break;default:return null}return $?{layout:$=this.applyContentRewrite($),locale:M,mode:this.getPageMode(ee.IY.Normal),siteName:R}:null}async getPagePaths(N,I,T){return this.sitePathService.fetchSiteRoutes(N,I||[],T)}async getSiteMap(N,I){let{reqHost:T,reqProtocol:P,id:D,siteName:M}=N,R=this.getGraphqlSitemapXMLService(M||this.initOptions.defaultSite),L=await R.getSitemap(D);if(L)try{let N=(0,Y.NP)(),I=ex(L,N),T=new V.j,P=await T.fetch(I);if(!P.data)throw Error("REDIRECT_404");return ex(P.data,N)}catch(N){throw Error("REDIRECT_404")}let $=await R.fetchSitemaps(I);if(!$.length)throw Error("REDIRECT_404");return`<?xml version="1.0" encoding="UTF-8"?> 823 <sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> 824 ${$.map(N=>{let I=N.split("/"),D=I[I.length-1],M=`${P}://${T}/${D}`.replace(/&/g,"&");return`<sitemap><loc>${M}</loc></sitemap>`}).join("")} 825 </sitemapindex>`}async getRobots(N,I){let T=this.getRobotsService(N||this.initOptions.defaultSite);return await T.fetchRobots(I)||null}async getLlmsTxt(N,I){let T=this.getLlmsTxtService(N.siteName||this.initOptions.defaultSite);return await T.fetchLlmsTxt(I)||null}getGraphqlSitemapXMLService(N){return new eL({clientFactory:this.clientFactory,siteName:N})}getRobotsService(N){return new rz({clientFactory:this.clientFactory,siteName:N})}getLlmsTxtService(N){return new rG({clientFactory:this.clientFactory,siteName:N})}getBaseServiceOptions(){return{defaultSite:this.initOptions.defaultSite,clientFactory:this.clientFactory,retries:this.initOptions.retries}}applyContentRewrite(N){let I=this.initOptions.rewriteMediaUrls;if(!I)return N;let T=(0,Y.NP)();return e_(N,!0===I?eS(T):I)}getPageMode(N,I){let T={name:N,isNormal:!1,isPreview:!1,isEditing:!1,isDesignLibrary:!1,designLibrary:{isVariantGeneration:!1}};switch(N){case ee.IY.Normal:T.isNormal=!0;break;case ee.IY.Preview:T.isPreview=!0;break;case ee.IY.Edit:T.isEditing=!0;break;case rK.lq.Normal:T.isDesignLibrary=!0;break;case rK.lq.Metadata:T.isDesignLibrary=!0,T.isEditing=!0}return T.isDesignLibrary&&I===rK.pM.Variant&&(T.designLibrary.isVariantGeneration=!0,T.isEditing=!0),T}getClientFactory(){return rB({api:this.initOptions.api,retries:this.initOptions.retries.count,retryStrategy:this.initOptions.retries.retryStrategy})}getLayoutService(N){return new ej(Object.assign(Object.assign({},N),{formatLayoutQuery:this.initOptions.layout.formatLayoutQuery}))}getDictionaryService(N){return new X(Object.assign(Object.assign({},N),{cacheEnabled:this.initOptions.dictionary.caching.enabled,cacheTimeout:this.initOptions.dictionary.caching.timeout}))}getEditingService(){return new rY({clientFactory:this.clientFactory})}getErrorPagesService(){return new eB(Object.assign(Object.assign({},this.initOptions),{language:this.initOptions.defaultLanguage,clientFactory:this.clientFactory}))}getComponentService(){return new rQ(this.initOptions.api.edge)}getSitePathService(){return new eJ({clientFactory:this.clientFactory})}}var r0=T(43774),r1=T.n(r0);class r2{async fetchComponentProps(N){var I;let{layoutData:T,context:P,components:D}=N,M=await this.collectRequests({placeholders:null==(I=T.sitecore.route)?void 0:I.placeholders,components:D,layoutData:T,context:P});return await this.execRequests(M)}async collectRequests(N){let{placeholders:I={},components:T,layoutData:P,context:D}=N;N.requests||(N.requests=[]);let M=this.flatRenderings(I).map(async I=>{var M;let R=null==(M=await this.getModule(T,I.componentName))?void 0:M.getComponentServerProps;R&&N.requests&&N.requests.push({fetch:R,rendering:I,layoutData:P,context:D}),I.placeholders&&await this.collectRequests(Object.assign(Object.assign({},N),{placeholders:I.placeholders}))});return await Promise.all(M),N.requests}async execRequests(N){let I={},T=N.map(N=>{let{uid:T}=N.rendering;return T?N.fetch(N.rendering,N.layoutData,N.context).then(N=>{I[T]=N}).catch(P=>{let D=`Error during preload data for component ${N.rendering.componentName} (${T}): ${P.message||P}`;
825console.error(r1().red(D)),I[T]={error:P.message||D,componentName:N.rendering.componentName}}):void console.log(`Component ${N.rendering.componentName} doesn't have uid, can't store data for this component`)});return await Promise.all(T),I}flatRenderings(N){let I=[];return Object.values(N).forEach(N=>{let T=N;I.push(...T)}),I}async getModule(N,I){var T;let P=N.get(I);return P?P.dynamicModule?await (null==(T=null==P?void 0:P.dynamicModule)?void 0:T.call(P)):P:null}}let r3="x-sitecore-editing-params";class r4 extends rX{constructor(N){super(N),this.initOptions=N,this.componentPropsService=this.getComponentPropsService()}getSiteNameFromPath(N){return eW(super.parsePath(N),this.initOptions.defaultSite).siteName}parsePath(N){let I=super.parsePath(N);return eq((0,eU.SH)(I))}async getPage(N,I,T){let P=this.parsePath(N),D=I.personalize||(0,eU.XG)(super.parsePath(N)),M=I.site||this.getSiteNameFromPath(N);return await super.getPage(P,{locale:I.locale,site:M,personalize:D},T)}async getDesignLibraryData(N,I){return super.getDesignLibraryData(N,I)}async getPreview(N,I){return super.getPreview(N,I)}async getAppRouterStaticParams(N,I,T){let P=await super.getPagePaths(N,I,T),D=[];return P.map(N=>{var I;let T=eq(N.params.path.join("/")).split("/");D.push({locale:null!=(I=N.locale)?I:this.initOptions.defaultLanguage,site:this.getSiteNameFromPath(N.params.path),path:T})}),D}async getPagePaths(N,I,T){var P;let D=await super.getPagePaths(N,I,T);return(null==(P=this.initOptions.multisite)?void 0:P.enabled)||D.map(N=>{N.params.path=eq(N.params.path.join("/")).split("/")}),D}async getComponentData(N,I,T){let P={};if(!N.sitecore.route)return P;let D=Object.keys(P=await this.componentPropsService.fetchComponentProps({layoutData:N,context:I,components:T})).map(N=>{let I=P[N];return I.error?` 826Unable to get component props for ${I.componentName} (${N}): ${I.error}`:""}).join("");if(D.length)throw Error(D);return P}getPreviewData(N){var I;let T=null!=(I=N.get(r3))?I:"";if(!T)return{};try{return JSON.parse(T)}catch(N){return{}}}getComponentPropsService(){return new r2}}var r5=T(16580);T(52035),T(99742);let r6=N=>"object"==typeof N&&null!==N&&"mode"in N&&(0,r5.Ri)(N.mode);
826var r8=T(31905),r7=T(98877),r9=T(55197),ne=T(30463),nt=T(65212),nr=T(60409),nn=T(86170);let na="/sitecore/content/Brunel/Brunel Shared Website/Settings/LLMS Settings",ni="en",no=()=>(0,nn.A)(!0).request(` 827 query ($path: String!, $language: String!) { 828 item(path: $path, language: $language) { 829 llmsEnabled: field(name: "llmsEnabled") { 830 ... on CheckboxField { 831 boolValue 832 } 833 } 834 llmsText: field(name: "llmsText") { 835 value 836 } 837 llmsFullText: field(name: "llmsFullText") { 838 value 839 } 840 } 841 } 842 `,{path:na,language:ni}).then(N=>({llmsEnabled:N?.item?.llmsEnabled?.boolValue??!1,llmsText:N?.item?.llmsText?.value?.trim()??"",llmsFullText:N?.item?.llmsFullText?.value?.trim()??""})).catch(N=>(nt.A.ui("getLlmsSettings failed",N),{llmsEnabled:!1,llmsText:"",llmsFullText:""})),ns=async()=>{let{llmsEnabled:N,llmsText:I}=await no();return N&&I?I:null},nl=N=>(0,nn.A)(!0).request(` 843 query ($sitename: String!) { 844 site { 845 siteInfo(site: $sitename) { 846 attributes { 847 key 848 value 849 } 850 } 851 } 852 } 853 `,{sitename:N??ne.A.defaultSite}).then(N=>N?.site?.siteInfo?.attributes);var nc=T(24528),nu=T(69452);class nd extends r4{LOGIN_PAGE_KEY="loginPage";LOGIN_PAGE_URL_TOKEN="{locale}";sanitizeForSerialization=N=>
853JSON.parse(JSON.stringify(N));getLlmsTxt=async(N,I)=>ns();getCachedData=async(N,I)=>{let T=new q({cacheEnabled:!0,cacheTimeout:60});if("string"!=typeof N)return this.getData(N,I);{let P=T.getCacheValue(N);if(P)return P;let D=await this.getData(N,I);return T.setCacheValue(N,D),D}};getPage=async(N,I,T)=>{let P=await super.getPage(N,I,T);if(P){let[N,I]=await Promise.all([this.getDictionary({site:P?.siteName,locale:P?.locale}),!P.mode.isPreview?nl(P?.siteName):Promise.resolve(null)]);if(P.layout.dictionary={...nu.S[P.locale??nr.Xn],...N},P.mode.isPreview)P.layout.loginPage="#";else{let N=I?.find(N=>N.key===this.LOGIN_PAGE_KEY)?.value;P.locale&&N?.indexOf(this.LOGIN_PAGE_URL_TOKEN)&&(N=N?.replace(this.LOGIN_PAGE_URL_TOKEN,P.locale)),P.layout.loginPage=N??""}}return P};getErrorPage=async(N,I,T)=>{let P=await super.getErrorPage(N,I,T);if(P)if(P.mode.isPreview)P.layout.loginPage="#";else{let N=await nl(P?.siteName),I=N?.find(N=>N.key===this.LOGIN_PAGE_KEY)?.value;P.locale&&I?.indexOf(this.LOGIN_PAGE_URL_TOKEN)&&(I=I?.replace(this.LOGIN_PAGE_URL_TOKEN,P.locale)),P.layout.loginPage=I??""}return P};getComponentData=async(N,I,T)=>{let P=new Map;for(let[N,I]of T.entries())if(I&&"object"==typeof I&&"getComponentServerProps"in I){let T=I.getComponentServerProps;P.set(N,{...I,getComponentServerProps:async(...I)=>{try{let P=T?await T(...I):void 0;if(void 0===P)return nt.A.sitecore(`getComponentServerProps for ${N} returned undefined, returning empty object`),{};return P}catch(I){return nt.A.sitecore(`Error in getComponentServerProps for ${N}:`,I),{}}}})}else P.set(N,I);try{return await super.getComponentData(N,I,P)}catch(N){return nt.A.sitecore("getComponentData error details:",{errorMessage:N instanceof Error?N.message:String(N),errorStack:N instanceof Error?N.stack:void 0}),{}}};getSitecorePageProps=async(N,I)=>{let T,P,D={...N,params:{...N.params??{}}},M=(N,I)=>({...N,params:{...N.params??{},path:I.path,requestPath:I.requestPath??[]}}),R=I?(0,r8.BM)(M(D,I)):(0,r8.BM)(N),L="req"in N&&!N.preview?(0,r7.getServerSession)(N.req,N.res,(0,nc.vD)(N.req,N.res)):Promise.resolve(null);return(P=N.preview&&r6(N.previewData)?await this.getDesignLibraryData(N.previewData):N.preview?await this.getPreview(N.previewData):await this.getPage(R,{locale:N.locale}))?(P.layout.session=await L,T={page:P,componentProps:await this.getComponentData(P.layout,N,r9.A)},this.sanitizeForSerialization(T)):{page:null,notFound:!0}}}let nf=new nd({...ne.A})},52175:(N,I,T)=>{"use strict";T.r(I),T.d(I,{RelatedEventsResultCardList:()=>R});var P=T(37876),D=T(34647),M=T(63366);let R=({results:N})=>N?.length>0?(0,P.jsx)(M.az,{className:"flex-1 flex-row items-center justify-center",children:(0,P.jsx)(M.az,{className:"mt-8 grid grid-flow-row-dense grid-cols-1 sm:grid-cols-2 sm:gap-8 lg:grid-cols-4",children:N.map((I,T)=>(0,P.jsx)(D.RelatedEventsCard,{result:I,lastCard:T===N.length-1},I?.previewTitle?.value))})}):null},52492:N=>{N.exports={assertSigningAlgValuesSupport:function(N,I,T){if(!I[`${N}_endpoint`])return;let P=`${N}_endpoint_auth_method`,D=`${N}_endpoint_auth_signing_alg`,M=`${N}_endpoint_auth_signing_alg_values_supported`;if(T[P]&&T[P].endsWith("_jwt")&&!T[D]&&!I[M])throw TypeError(`${M} must be configured on the issuer if ${D} is not defined on a client`)},assertIssuerConfiguration:function(N,I){if(!N[I])throw TypeError(`${I} must be configured on the issuer`)}}},52770:(N,I,T)=>{"use strict";T.d(I,{Ay:()=>B,DS:()=>F,wV:()=>$});var P,D=T(71673),M=T.n(D),R=T(98217),L=T(99742);let $=M(),F="content-sdk";(0,R.A)()&&(null==(P=null==L?void 0:L.env)?void 0:P.DEBUG_MULTILINE)==="true"&&M().formatters.o&&M().formatters.O&&(M().formatters.o=M().formatters.O);let B={common:M()(`${F}:common`),http:M()(`${F}:http`),init:M()(`${F}:init`)}},53168:N=>{N.exports=(function N(I,T,P){function D(R,L){if(!T[R]){if(!I[R]){var $=void 0;if(!L&&$)return require(R,!0);if(M)return M(R,!0);throw Error("Cannot find module '"+R+"'")}var F=T[R]={exports:{}};I[R][0].call(F.exports,function(N){return D(I[R][1][N]||N)},F,F.exports,N,I,T,P)}return T[R].exports}for(var M=void 0,R=0;R<P.length;R++)D(P[R]);return D})({1:[function(N,I,T){(function(P,D,M,R,L,$,F,B,U){"use strict";var H=N("crypto");function z(N,I){var T=N,P=I=G(N,I);if(void 0===(D="passthrough"!==P.algorithm?H.createHash(P.algorithm):new Y).write&&(D.write=D.update,D.end=D.update),V(P,D).dispatch(T),D.update||D.end(""),D.digest)return D.digest("buffer"===P.encoding?void 0:P.encoding);var D,M=D.read();return"buffer"!==P.encoding?M.toString(P.encoding):M}(T=I.exports=z).sha1=function(N){return z(N)},T.keys=function(N){return z(N,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},T.MD5=function(N){return z(N,{algorithm:"md5",encoding:"hex"})},T.keysMD5=function(N){return z(N,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var W=H.getHashes?H.getHashes().slice():["sha1","md5"];W.push("passthrough");var q=["buffer","hex","binary","base64"];function G(N,I){var T={};if(T.algorithm=(I=I||{}).algorithm||"sha1",T.encoding=I.encoding||"hex",T.excludeValues=!!I.excludeValues,T.algorithm=T.algorithm.toLowerCase(),T.encoding=T.encoding.toLowerCase(),T.ignoreUnknown=!0===I.ignoreUnknown,T.respectType=!1!==I.respectType,T.respectFunctionNames=!1!==I.respectFunctionNames,T.respectFunctionProperties=!1!==I.respectFunctionProperties,T.unorderedArrays=!0===I.unorderedArrays,T.unorderedSets=!1!==I.unorderedSets,T.unorderedObjects=!1!==I.unorderedObjects,T.replacer=I.replacer||void 0,T.excludeKeys=I.excludeKeys||void 0,void 0===N)throw Error("Object argument required.");for(var P=0;P<W.length;++P)W[P].toLowerCase()===T.algorithm.toLowerCase()&&(T.algorithm=W[P]);if(-1===W.indexOf(T.algorithm))throw Error('Algorithm "'+T.algorithm+'" not supported. supported values: '+W.join(", "));if(-1===q.indexOf(T.encoding)&&"passthrough"!==T.algorithm)throw Error('Encoding "'+T.encoding+'" not supported. supported values: '+q.join(", "));return T}function K(N){if("function"==typeof N)return null!=/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(N))}function V(N,I,T){function P(N){return I.update?I.update(N,"utf8"):I.write(N,"utf8")}return T=T||[],{dispatch:function(I){return N.replacer&&(I=N.replacer(I)),this["_"+(null===I?"null":typeof I)](I)},_object:function(I){var D,R=Object.prototype.toString.call(I),L=/\[object (.*)\]/i.exec(R);if(L=(L=L?L[1]:"unknown:["+R+"]").toLowerCase(),0<=(D=T.indexOf(I)))return this.dispatch("[CIRCULAR:"+D+"]");if(T.push(I),void 0!==M&&M.isBuffer&&M.isBuffer(I))return P("buffer:"),P(I);if("object"===L||"function"===L||"asyncfunction"===L){var $=Object.keys(I);
853N.unorderedObjects&&($=$.sort()),!1===N.respectType||K(I)||$.splice(0,0,"prototype","__proto__","constructor"),N.excludeKeys&&($=$.filter(function(I){return!N.excludeKeys(I)})),P("object:"+$.length+":");var F=this;return $.forEach(function(T){F.dispatch(T),P(":"),N.excludeValues||F.dispatch(I[T]),P(",")})}if(!this["_"+L]){if(N.ignoreUnknown)return P("["+L+"]");throw Error('Unknown object type "'+L+'"')}this["_"+L](I)},_array:function(I,D){D=void 0!==D?D:!1!==N.unorderedArrays;var M=this;if(P("array:"+I.length+":"),!D||I.length<=1)return I.forEach(function(N){return M.dispatch(N)});var R=[],L=I.map(function(I){var P=new Y,D=T.slice();return V(N,P,D).dispatch(I),R=R.concat(D.slice(T.length)),P.read().toString()});return T=T.concat(R),L.sort(),this._array(L,!1)},_date:function(N){return P("date:"+N.toJSON())},_symbol:function(N){return P("symbol:"+N.toString())},_error:function(N){return P("error:"+N.toString())},_boolean:function(N){return P("bool:"+N.toString())},_string:function(N){P("string:"+N.length+":"),P(N.toString())},_function:function(I){P("fn:"),K(I)?this.dispatch("[native]"):this.dispatch(I.toString()),!1!==N.respectFunctionNames&&this.dispatch("function-name:"+String(I.name)),N.respectFunctionProperties&&this._object(I)},_number:function(N){return P("number:"+N.toString())},_xml:function(N){return P("xml:"+N.toString())},_null:function(){return P("Null")},_undefined:function(){return P("Undefined")},_regexp:function(N){return P("regex:"+N.toString())},_uint8array:function(N){return P("uint8array:"),this.dispatch(Array.prototype.slice.call(N))},_uint8clampedarray:function(N){return P("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(N))},_int8array:function(N){return P("uint8array:"),this.dispatch(Array.prototype.slice.call(N))},_uint16array:function(N){return P("uint16array:"),this.dispatch(Array.prototype.slice.call(N))},_int16array:function(N){return P("uint16array:"),this.dispatch(Array.prototype.slice.call(N))},_uint32array:function(N){return P("uint32array:"),this.dispatch(Array.prototype.slice.call(N))},_int32array:function(N){return P("uint32array:"),this.dispatch(Array.prototype.slice.call(N))},_float32array:function(N){return P("float32array:"),this.dispatch(Array.prototype.slice.call(N))},_float64array:function(N){return P("float64array:"),this.dispatch(Array.prototype.slice.call(N))},_arraybuffer:function(N){return P("arraybuffer:"),this.dispatch(new Uint8Array(N))},_url:function(N){return P("url:"+N.toString())},_map:function(I){P("map:");var T=Array.from(I);return this._array(T,!1!==N.unorderedSets)},_set:function(I){P("set:");var T=Array.from(I);return this._array(T,!1!==N.unorderedSets)},_file:function(N){return P("file:"),this.dispatch([N.name,N.size,N.type,N.lastModfied])},_blob:function(){if(N.ignoreUnknown)return P("[blob]");throw Error('Hashing Blob objects is currently not supported\n(see https://github.com/puleos/object-hash/issues/26)\nUse "options.replacer" or "options.ignoreUnknown"\n')},_domwindow:function(){return P("domwindow")},_bigint:function(N){return P("bigint:"+N.toString())},_process:function(){return P("process")},_timer:function(){return P("timer")},_pipe:function(){return P("pipe")},_tcp:function(){return P("tcp")},_udp:function(){return P("udp")},_tty:function(){return P("tty")},_statwatcher:function(){return P("statwatcher")},_securecontext:function(){return P("securecontext")},_connection:function(){return P("connection")},_zlib:function(){return P("zlib")},_context:function(){return P("context")},_nodescript:function(){return P("nodescript")},_httpparser:function(){return P("httpparser")},_dataview:function(){return P("dataview")},_signal:function(){return P("signal")},_fsevent:function(){return P("fsevent")},_tlswrap:function(){return P("tlswrap")}}}function Y(){return{buf:"",write:function(N){this.buf+=N},end:function(N){this.buf+=N},read:function(){return this.buf}}}T.writeToStream=function(N,I,T){return void 0===T&&(T=I,I={}),V(I=G(N,I),T).dispatch(N)}}).call(this,N("lYpoI2"),"u">typeof self?self:"u">typeof window?window:{},N("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_7eac155c.js","/")},{buffer:3,crypto:5,lYpoI2:10}],2:[function(N,I,T){(function(N,I,P,D,M,R,L,$,F){!function(N){"use strict";var I="u">typeof Uint8Array?Uint8Array:Array,T=43,P=47,D=48,M=97,R=65,L=45,$=95;function F(N){var I=N.charCodeAt(0);return I===T||I===L?62:I===P||I===$?63:I<D?-1:I<D+10?I-D+26+26:I<R+26?I-R:I<M+26?I-M+26:void 0}N.toByteArray=function(N){if(0<N.length%4)throw Error("Invalid string. Length must be a multiple of 4");var T,P,D=N.length,M="="===N.charAt(D-2)?2:+("="===N.charAt(D-1)),R=new I(3*N.length/4-M),L=0<M?N.length-4:N.length,$=0;function B(N){R[$++]=N}for(T=0;T<L;T+=4)B((0xff0000&(P=F(N.charAt(T))<<18|F(N.charAt(T+1))<<12|F(N.charAt(T+2))<<6|F(N.charAt(T+3))))>>16),B((65280&P)>>8),B(255&P);return 2==M?B(255&(P=F(N.charAt(T))<<2|F(N.charAt(T+1))>>4)):1==M&&(B((P=F(N.charAt(T))<<10|F(N.charAt(T+1))<<4|F(N.charAt(T+2))>>2)>>8&255),B(255&P)),R},N.fromByteArray=function(N){var I,T,P,D,M=N.length%3,R="";function L(N){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
853+/".charAt(N)}for(I=0,P=N.length-M;I<P;I+=3)R+=L((D=T=(N[I]<<16)+(N[I+1]<<8)+N[I+2])>>18&63)+L(D>>12&63)+L(D>>6&63)+L(63&D);switch(M){case 1:R+=L((T=N[N.length-1])>>2),R+=L(T<<4&63),R+="==";break;case 2:R+=L((T=(N[N.length-2]<<8)+N[N.length-1])>>10),R+=L(T>>4&63),R+=L(T<<2&63),R+="="}return R}}(void 0===T?this.base64js={}:T)}).call(this,N("lYpoI2"),"u">typeof self?self:"u">typeof window?window:{},N("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:10}],3:[function(N,I,T){(function(I,P,D,M,R,L,$,F,B){var U=N("base64-js"),H=N("ieee754");function D(N,I,T){if(!(this instanceof D))return new D(N,I,T);var P,M,R,L,$,F=typeof N;if("base64"===I&&"string"==F)for(N=(P=N).trim?P.trim():P.replace(/^\s+|\s+$/g,"");N.length%4!=0;)N+="=";if("number"==F)M=eo(N);else if("string"==F)M=D.byteLength(N,I);else{if("object"!=F)throw Error("First argument needs to be a number, array or string.");M=eo(N.length)}if(D._useTypedArrays?R=D._augment(new Uint8Array(M)):((R=this).length=M,R._isBuffer=!0),D._useTypedArrays&&"number"==typeof N.byteLength)R._set(N);else if(es($=N)||D.isBuffer($)||$&&"object"==typeof $&&"number"==typeof $.length)for(L=0;L<M;L++)D.isBuffer(N)?R[L]=N.readUInt8(L):R[L]=N[L];else if("string"==F)R.write(N,0,I);else if("number"==F&&!D._useTypedArrays&&!T)for(L=0;L<M;L++)R[L]=0;return R}function z(N,I,T,P){return D._charsWritten=ed(function(N){for(var I=[],T=0;T<N.length;
vendor: 12,103 bytes, line 853
853T++)I.push(255&N.charCodeAt(T));return I}(I),N,T,P)}function W(N,I,T,P){return D._charsWritten=ed(function(N){for(var I,T,P=[],D=0;D<N.length;D++)T=(I=N.charCodeAt(D))>>8,P.push(I%256),P.push(T);return P}(I),N,T,P)}function q(N,I,T){var P="";T=Math.min(N.length,T);for(var D=I;D<T;D++)P+=String.fromCharCode(N[D]);return P}function G(N,I,T,P){P||(eg("boolean"==typeof T,"missing or invalid endian"),eg(null!=I,"missing offset"),eg(I+1<N.length,"Trying to read beyond buffer length"));var D,M=N.length;if(!(M<=I))return T?(D=N[I],I+1<M&&(D|=N[I+1]<<8)):(D=N[I]<<8,I+1<M&&(D|=N[I+1])),D}function K(N,I,T,P){P||(eg("boolean"==typeof T,"missing or invalid endian"),eg(null!=I,"missing offset"),eg(I+3<N.length,"Trying to read beyond buffer length"));var D,M=N.length;if(!(M<=I))return T?(I+2<M&&(D=N[I+2]<<16),I+1<M&&(D|=N[I+1]<<8),D|=N[I],I+3<M&&(D+=N[I+3]<<24>>>0)):(I+1<M&&(D=N[I+1]<<16),I+2<M&&(D|=N[I+2]<<8),I+3<M&&(D|=N[I+3]),D+=N[I]<<24>>>0),D}function V(N,I,T,P){if(P||(eg("boolean"==typeof T,"missing or invalid endian"),eg(null!=I,"missing offset"),eg(I+1<N.length,"Trying to read beyond buffer length")),!(N.length<=I)){var D=G(N,I,T,!0);return 32768&D?-1*(65535-D+1):D}}function Y(N,I,T,P){if(P||(eg("boolean"==typeof T,"missing or invalid endian"),eg(null!=I,"missing offset"),eg(I+3<N.length,"Trying to read beyond buffer length")),!(N.length<=I)){var D=K(N,I,T,!0);return 0x80000000&D?-1*(0xffffffff-D+1):D}}function J(N,I,T,P){return P||(eg("boolean"==typeof T,"missing or invalid endian"),eg(I+3<N.length,"Trying to read beyond buffer length")),H.read(N,I,T,23,4)}function Q(N,I,T,P){return P||(eg("boolean"==typeof T,"missing or invalid endian"),eg(I+7<N.length,"Trying to read beyond buffer length")),H.read(N,I,T,52,8)}function Z(N,I,T,P,D){D||(eg(null!=I,"missing value"),eg("boolean"==typeof P,"missing or invalid endian"),eg(null!=T,"missing offset"),eg(T+1<N.length,"trying to write beyond buffer length"),eh(I,65535));var M=N.length;if(!(M<=T))for(var R=0,L=Math.min(M-T,2);R<L;R++)N[T+R]=(I&255<<8*(P?R:1-R))>>>8*(P?R:1-R)}function X(N,I,T,P,D){D||(eg(null!=I,"missing value"),eg("boolean"==typeof P,"missing or invalid endian"),eg(null!=T,"missing offset"),eg(T+3<N.length,"trying to write beyond buffer length"),eh(I,0xffffffff));var M=N.length;if(!(M<=T))for(var R=0,L=Math.min(M-T,4);R<L;R++)N[T+R]=I>>>8*(P?R:3-R)&255}function ee(N,I,T,P,D){D||(eg(null!=I,"missing value"),eg("boolean"==typeof P,"missing or invalid endian"),eg(null!=T,"missing offset"),eg(T+1<N.length,"Trying to write beyond buffer length"),ep(I,32767,-32768)),N.length<=T||Z(N,0<=I?I:65535+I+1,T,P,D)}function et(N,I,T,P,D){D||(eg(null!=I,"missing value"),eg("boolean"==typeof P,"missing or invalid endian"),eg(null!=T,"missing offset"),eg(T+3<N.length,"Trying to write beyond buffer length"),ep(I,0x7fffffff,-0x80000000)),N.length<=T||X(N,0<=I?I:0xffffffff+I+1,T,P,D)}function er(N,I,T,P,D){D||(eg(null!=I,"missing value"),eg("boolean"==typeof P,"missing or invalid endian"),eg(null!=T,"missing offset"),eg(T+3<N.length,"Trying to write beyond buffer length"),em(I,34028234663852886e22,-34028234663852886e22)),N.length<=T||H.write(N,I,T,P,23,4)}function en(N,I,T,P,D){D||(eg(null!=I,"missing value"),eg("boolean"==typeof P,"missing or invalid endian"),eg(null!=T,"missing offset"),eg(T+7<N.length,"Trying to write beyond buffer length"),em(I,17976931348623157e292,-17976931348623157e292)),N.length<=T||H.write(N,I,T,P,52,8)}T.Buffer=D,T.SlowBuffer=D,T.INSPECT_MAX_BYTES=50,D.poolSize=8192,D._useTypedArrays=function(){try{var N=new ArrayBuffer(0),I=new Uint8Array(N);return I.foo=function(){return 42},42===I.foo()&&"function"==typeof I.subarray}catch(N){return!1}}(),D.isEncoding=function(N){switch(String(N).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},D.isBuffer=function(N){return!(null==N||!N._isBuffer)},D.byteLength=function(N,I){var T;switch(N+="",I||"utf8"){case"hex":T=N.length/2;break;case"utf8":case"utf-8":T=ec(N).length;break;case"ascii":case"binary":case"raw":T=N.length;break;case"base64":T=eu(N).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":T=2*N.length;break;default:throw Error("Unknown encoding")}return T},D.concat=function(N,I){if(eg(es(N),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===N.length)return new D(0);if(1===N.length)return N[0];if("number"!=typeof I)for(M=I=0;M<N.length;M++)I+=N[M].length;for(var T=new D(I),P=0,M=0;M<N.length;M++){var R=N[M];R.copy(T,P),P+=R.length}return T},D.prototype.write=function(N,I,T,P){isFinite(I)?isFinite(T)||(P=T,T=void 0):(M=P,P=I,I=T,T=M),I=Number(I)||0;var M,R,L,$,F,B,U,H,q,G,K=this.length-I;switch((!T||K<(T=Number(T)))&&(T=K),P=String(P||"utf8").toLowerCase()){case"hex":R=function(N,I,T,P){T=Number(T)||0;var M=N.length-T;(!P||M<(P=Number(P)))&&(P=M);var R=I.length;eg(R%2==0,"Invalid hex string"),R/2<P&&(P=R/2);for(var L=0;L<P;L++){var $=parseInt(I.substr(2*L,2),16);eg(!isNaN($),"Invalid hex string"),N[T+L]=$}return D._charsWritten=2*L,L}(this,N,I,T);break;case"utf8":case"utf-8":U=this,H=N,q=I,G=T,R=D._charsWritten=ed(ec(H),U,q,G);break;case"ascii":case"binary":R=z(this,N,I,T);break;case"base64":L=this,$=N,F=I,B=T,R=D._charsWritten=ed(eu($),L,F,B);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":R=W(this,N,I,T);break;default:throw Error("Unknown encoding")}return R},D.prototype.toString=function(N,I,T){var P,D,M,R,L=this;if(N=String(N||"utf8").toLowerCase(),I=Number(I)||0,(T=void 0!==T?Number(T):T=L.length)===I)return"";switch(N){case"hex":P=function(N,I,T){var P=N.length;(!I||I<0)&&(I=0),(!T||T<0||P<T)&&(T=P);for(var D="",M=I;M<T;M++)D+=el(N[M]);return D}(L,I,T);break;case"utf8":case"utf-8":P=function(N,I,T){var P="",D="";T=Math.min(N.length,T);for(var M=I;M<T;M++)N[M]<=127?(P+=ef(D)+String.fromCharCode(N[M]),D=""):D+="%"+N[M].toString(16);return P+ef(D)}(L,I,T);break;case"ascii":case"binary":P=q(L,I,T);break;case"base64":D=L,R=T,P=0===(M=I)&&R===D.length?U.fromByteArray(D):U.fromByteArray(D.slice(M,R));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":P=function(N,I,T){for(var P=N.slice(I,T),D="",M=0;M<P.length;M+=2)D+=String.fromCharCode(P[M]+256*P[M+1]);return D}(L,I,T);break;default:throw Error("Unknown encoding")}return P},D.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},D.prototype.copy=function(N,I,T,P){if(T=T||0,P||0===P||(P=this.length),I=I||0,P!==T&&0!==N.length&&0!==this.length){eg(T<=P,"sourceEnd < sourceStart"),eg(0<=I&&I<N.length,"targetStart out of bounds"),eg(0<=T&&T<this.length,"sourceStart out of bounds"),eg(0<=P&&P<=this.length,"sourceEnd out of bounds"),P>this.length&&(P=this.length),N.length-I<P-T&&(P=N.length-I+T);var M=P-T;if(M<100||!D._useTypedArrays)for(var R=0;R<M;R++)N[R+I]=this[R+T];else N._set(this.subarray(T,T+M),I)}},D.prototype.slice=function(N,I){var T=this.length;if(N=ei(N,T,0),I=ei(I,T,T),D._useTypedArrays)return D._augment(this.subarray(N,I));for(var P=I-N,M=new D(P,void 0,!0),R=0;R<P;R++)M[R]=this[R+N];return M},D.prototype.get=function(N){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(N)},D.prototype.set=function(N,I){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(N,I)},D.prototype.readUInt8=function(N,I){if(I||(eg(null!=N,"missing offset"),eg(N<this.length,"Trying to read beyond buffer length")),!(N>=this.length))return this[N]},D.prototype.readUInt16LE=function(N,I){return G(this,N,!0,I)},D.prototype.readUInt16BE=function(N,I){return G(this,N,!1,I)},D.prototype.readUInt32LE=function(N,I){return K(this,N,!0,I)},D.prototype.readUInt32BE=function(N,I){return K(this,N,!1,I)},D.prototype.readInt8=function(N,I){if(I||(eg(null!=N,"missing offset"),eg(N<this.length,"Trying to read beyond buffer length")),!(N>=this.length))return 128&this[N]?-1*(255-this[N]+1):this[N]},D.prototype.readInt16LE=function(N,I){return V(this,N,!0,I)},D.prototype.readInt16BE=function(N,I){return V(this,N,!1,I)},D.prototype.readInt32LE=function(N,I){return Y(this,N,!0,I)},D.prototype.readInt32BE=function(N,I){return Y(this,N,!1,I)},D.prototype.readFloatLE=function(N,I){return J(this,N,!0,I)},D.prototype.readFloatBE=function(N,I){return J(this,N,!1,I)},D.prototype.readDoubleLE=function(N,I){return Q(this,N,!0,I)},D.prototype.readDoubleBE=function(N,I){return Q(this,N,!1,I)},D.prototype.writeUInt8=function(N,I,T){T||(eg(null!=N,"missing value"),eg(null!=I,"missing offset"),eg(I<this.length,"trying to write beyond buffer length"),eh(N,255)),I>=this.length||(this[I]=N)},D.prototype.writeUInt16LE=function(N,I,T){Z(this,N,I,!0,T)},D.prototype.writeUInt16BE=function(N,I,T){Z(this,N,I,!1,T)},D.prototype.writeUInt32LE=function(N,I,T){X(this,N,I,!0,T)},D.prototype.writeUInt32BE=function(N,I,T){X(this,N,I,!1,T)},D.prototype.writeInt8=function(N,I,T){T||(eg(null!=N,"missing value"),eg(null!=I,"missing offset"),eg(I<this.length,"Trying to write beyond buffer length"),ep(N,127,-128)),I>=this.length||(0<=N?this.writeUInt8(N,I,T):this.writeUInt8(255+N+1,I,T))},D.prototype.writeInt16LE=function(N,I,T){ee(this,N,I,!0,T)},D.prototype.writeInt16BE=function(N,I,T){ee(this,N,I,!1,T)},D.prototype.writeInt32LE=function(N,I,T){et(this,N,I,!0,T)},D.prototype.writeInt32BE=function(N,I,T){et(this,N,I,!1,T)},D.prototype.writeFloatLE=function(N,I,T){er(this,N,I,!0,T)},D.prototype.writeFloatBE=function(N,I,T){er(this,N,I,!1,T)},D.prototype.writeDoubleLE=function(N,I,T){en(this,N,I,!0,T)},D.prototype.writeDoubleBE=function(N,I,T){en(this,N,I,!1,T)},D.prototype.fill=function(N,I,T){if(N=N||0,I=I||0,T=T||this.length,"string"==typeof N&&(N=N.charCodeAt(0)),eg("number"==typeof N&&!isNaN(N),"value is not a number"),eg(I<=T,"end < start"),T!==I&&0!==this.length){eg(0<=I&&I<this.length,"start out of bounds"),eg(0<=T&&T<=this.length,"end out of bounds");for(var P=I;P<T;P++)this[P]=N}},D.prototype.inspect=function(){for(var N=[],I=this.length,P=0;P<I;P++)if(N[P]=el(this[P]),P===T.INSPECT_MAX_BYTES){N[P+1]="...";break}return"<Buffer "+N.join(" ")+">"},D.prototype.toArrayBuffer=function(){if("u"<typeof Uint8Array)throw Error("Buffer.toArrayBuffer not supported in this browser");if(D._useTypedArrays)return new D(this).buffer;for(var N=new Uint8Array(this.length),I=0,T=N.length;I<T;I+=1)N[I]=this[I];return N.buffer};var ea=D.prototype;function ei(N,I,T){return"number"!=typeof N?T:I<=(N=~~N)?I:0<=N||0<=(N+=I)?N:0}function eo(N){return(N=~~Math.ceil(+N))<0?0:N}function es(N){return(Array.isArray||function(N){return"[object Array]"===Object.prototype.toString.call(N)})(N)}function el(N){return N<16?"0"+N.toString(16):N.toString(16)}function ec(N){for(var I=[],T=0;T<N.length;T++){var P=N.charCodeAt(T);if(P<=127)I.push(N.charCodeAt(T));else{var D=T;55296<=P&&P<=57343&&T++;for(var M=encodeURIComponent(N.slice(D,T+1)).substr(1).split("%"),R=0;R<M.length;R++)I.push(parseInt(M[R],16))}}return I}function eu(N){return U.toByteArray(N)}function ed(N,I,T,P){for(var D=0;D<P&&!(D+T>=I.length||D>=N.length);D++)I[D+T]=N[D];return D}function ef(N){try{return decodeURIComponent(N)}catch(N){return String.fromCharCode(65533)}}function eh(N,I){eg("number"==typeof N,"cannot write a non-number as a number"),eg(0<=N,"specified a negative value for writing an unsigned value"),eg(N<=I,"value is larger than maximum value for type"),eg(Math.floor(N)===N,"value has a fractional component")}function ep(N,I,T){eg("number"==typeof N,"cannot write a non-number as a number"),eg(N<=I,"value larger than maximum allowed value"),eg(T<=N,"value smaller than minimum allowed value"),eg(Math.floor(N)===N,"value has a fractional component")}function em(N,I,T){eg("number"==typeof N,"cannot write a non-number as a number"),eg(N<=I,"value larger than maximum allowed value"),eg(T<=N,"value smaller than minimum allowed value")}function eg(N,I){if(!N)throw Error(I||"Failed assertion")}D._augment=function(N){return N._isBuffer=!0,N._get=N.get,N._set=N.set,N.get=ea.get,N.set=ea.set,N.write=ea.write,N.toString=ea.toString,N.toLocaleStr
853ing=ea.toString,N.toJSON=ea.toJSON,N.copy=ea.copy,N.slice=ea.slice,N.readUInt8=ea.readUInt8,N.readUInt16LE=ea.readUInt16LE,N.readUInt16BE=ea.readUInt16BE,N.readUInt32LE=ea.readUInt32LE,N.readUInt32BE=ea.readUInt32BE,N.readInt8=ea.readInt8,N.readInt16LE=ea.readInt16LE,N.readInt16BE=ea.readInt16BE,N.readInt32LE=ea.readInt32LE,N.readInt32BE=ea.readInt32BE,N.readFloatLE=ea.readFloatLE,N.readFloatBE=ea.readFloatBE,N.readDoubleLE=ea.readDoubleLE,N.readDoubleBE=ea.readDoubleBE,N.writeUInt8=ea.writeUInt8,N.writeUInt16LE=ea.writeUInt16LE,N.writeUInt16BE=ea.writeUInt16BE,N.writeUInt32LE=ea.writeUInt32LE,N.writeUInt32BE=ea.writeUInt32BE,N.writeInt8=ea.writeInt8,N.writeInt16LE=ea.writeInt16LE,N.writeInt16BE=ea.writeInt16BE,N.writeInt32LE=ea.writeInt32LE,N.writeInt32BE=ea.writeInt32BE,N.writeFloatLE=ea.writeFloatLE,N.writeFloatBE=ea.writeFloatBE,N.writeDoubleLE=ea.writeDoubleLE,N.writeDoubleBE=ea.writeDoubleBE,N.fill=ea.fill,N.inspect=ea.inspect,N.toArrayBuffer=ea.toArrayBuffer,N}}).call(this,N("lYpoI2"),"u">typeof self?self:"u">typeof window?window:{},N("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:11,lYpoI2:10}],4:[function(N,I,T){(function(T,P,D,M,R,L,$,F,B){var D=N("buffer").Buffer,U=4,H=new D(4);H.fill(0),I.exports={hash:function(N,I,T,P){return D.isBuffer(N)||(N=new D(N)),function(N,I,T){for(var P=new D(I),M=T?P.writeInt32BE:P.writeInt32LE,R=0;R<N.length;R++)M.call(P,N[R],4*R,!0);return P}(I(function(N,I){var T;N.length%U!=0&&(T=N.length+(U-N.length%U),N=D.concat([N,H],T));for(var P=[],M=I?N.readInt32BE:N.readInt32LE,R=0;R<N.length;R+=U)P.push(M.call(N,R));return P}(N,P),8*N.length),T,P)}}}).call(this,N("lYpoI2"),"u">typeof self?self:"u">typeof window?window:{},N("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],5:[function(N,I,T){(function(I,P,D,M,R,L,$,F,B){var D=N("buffer").Buffer,U=N("./sha"),H=N("./sha256"),z=N("./rng"),W={sha1:U,sha256:H,md5:N("./md5")},q=64,G=new D(64);function K(N,I){var T=W[N=N||"sha1"],P=[];return T||V("algorithm:",N,"is not yet supported"),{update:function(N){return D.isBuffer(N)||(N=new D(N)),P.push(N),N.length,this},digest:function(N){var M=D.concat(P),R=I?function(N,I,T){D.isBuffer(I)||(I=new D(I)),D.isBuffer(T)||(T=new D(T)),I.length>q?I=N(I):I.length<q&&(I=D.concat([I,G],q));for(var P=new D(q),M=new D(q),R=0;R<q;R++)P[R]=54^I[R],M[R]=92^I[R];var L=N(D.concat([P,T]));return N(D.concat([M,L]))}(T,I,M):T(M);return P=null,N?R.toString(N):R}}}function V(){var N=[].slice.call(arguments).join(" ");throw Error([N,"we accept pull requests\nhttp://github.com/dominictarr/crypto-browserify"].join("\n"))}G.fill(0),T.createHash=function(N){return K(N)},T.createHmac=K,T.randomBytes=function(N,I){if(!I||!I.call)return new D(z(N));try{I.call(this,void 0,new D(z(N)))}catch(N){I(N)}},function(N,I){for(var T in N)I(N[T],T)}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],function(N){T[N]=function(){V("sorry,",N,"is not implemented yet")}})}).call(this,N("lYpoI2"),"u">typeof self?self:"u">typeof window?window:{},N("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:10}],6:[function(N,I,T){(function(T,P,D,M,R,L,$,F,B){var U=N("./helpers");function H(N,I){N[I>>5]|=128<<I%32,N[14+(I+64>>>9<<4)]=I;for(var T=0x67452301,P=-0x10325477,D=-0x67452302,M=0x10325476,R=0;R<N.length;R+=16){var L=T,$=P,F=D,B=M,T=W(T,P,D,M,N[R+0],7,-0x28955b88),M=W(M,T,P,D,N[R+1],12,-0x173848aa),D=W(D,M,T,P,N[R+2],17,0x242070db),P=W(P,D,M,T,N[R+3],22,-0x3e423112);T=W(T,P,D,M,N[R+4],7,-0xa83f051),M=W(M,T,P,D,N[R+5],12,0x4787c62a),D=W(D,M,T,P,N[R+6],17,-0x57cfb9ed),P=W(P,D,M,T,N[R+7],22,-0x2b96aff),T=W(T,P,D,M,N[R+8],7,0x698098d8),M=W(M,T,P,D,N[R+9],12,-0x74bb0851),D=W(D,M,T,P,N[R+10],17,-42063),P=W(P,D,M,T,N[R+11],22,-0x76a32842),T=W(T,P,D,M,N[R+12],7,0x6b901122),M=W(M,T,P,D,N[R+13],12,-0x2678e6d),D=W(D,M,T,P,N[R+14],17,-0x5986bc72),T=q(T,P=W(P,D,M,T,N[R+15],22,0x49b40821),D,M,N[R+1],5,-0x9e1da9e),M=q(M,T,P,D,N[R+6],9,-0x3fbf4cc0),D=q(D,M,T,P,N[R+11],14,0x265e5a51),P=q(P,D,M,T,N[R+0],20,-0x16493856),T=q(T,P,D,M,N[R+5],5,-0x29d0efa3),M=q(M,T,P,D,N[R+10],9,0x2441453),D=q(D,M,T,P,N[R+15],14,-0x275e197f),P=q(P,D,M,T,N[R+4],20,-0x182c0438),T=q(T,P,D,M,N[R+9],5,0x21e1cde6),M=q(M,T,P,D,N[R+14],9,-0x3cc8f82a),D=q(D,M,T,P,N[R+3],14,-0xb2af279),P=q(P,D,M,T,N[R+8],20,0x455a14ed),T=q(T,P,D,M,N[R+13],5,-0x561c16fb),M=q(M,T,P,D,N[R+2],9,-0x3105c08),D=q(D,M,T,P,N[R+7],14,0x676f02d9),T=G
853(T,P=q(P,D,M,T,N[R+12],20,-0x72d5b376),D,M,N[R+5],4,-378558),M=G(M,T,P,D,N[R+8],11,-0x788e097f),D=G(D,M,T,P,N[R+11],16,0x6d9d6122),P=G(P,D,M,T,N[R+14],23,-0x21ac7f4),T=G(T,P,D,M,N[R+1],4,-0x5b4115bc),M=G(M,T,P,D,N[R+4],11,0x4bdecfa9),D=G(D,M,T,P,N[R+7],16,-0x944b4a0),P=G(P,D,M,T,N[R+10],23,-0x41404390),T=G(T,P,D,M,N[R+13],4,0x289b7ec6),M=G(M,T,P,D,N[R+0],11,-0x155ed806),D=G(D,M,T,P,N[R+3],16,-0x2b10cf7b),P=G(P,D,M,T,N[R+6],23,0x4881d05),T=G(T,P,D,M,N[R+9],4,-0x262b2fc7),M=G(M,T,P,D,N[R+12],11,-0x1924661b),D=G(D,M,T,P,N[R+15],16,0x1fa27cf8),T=K(T,P=G(P,D,M,T,N[R+2],23,-0x3b53a99b),D,M,N[R+0],6,-0xbd6ddbc),M=K(M,T,P,D,N[R+7],10,0x432aff97),D=K(D,M,T,P,N[R+14],15,-0x546bdc59),P=K(P,D,M,T,N[R+5],21,-0x36c5fc7),T=K(T,P,D,M,N[R+12],6,0x655b59c3),M=K(M,T,P,D,N[R+3],10,-0x70f3336e),D=K(D,M,T,P,N[R+10],15,-1051523),P=K(P,D,M,T,N[R+1],21,-0x7a7ba22f),T=K(T,P,D,M,N[R+8],6,0x6fa87e4f),M=K(M,T,P,D,N[R+15],10,-0x1d31920),D=K(D,M,T,P,N[R+6],15,-0x5cfebcec),P=K(P,D,M,T,N[R+13],21,0x4e0811a1),T=K(T,P,D,M,N[R+4],6,-0x8ac817e),M=K(M,T,P,D,N[R+11],10,-0x42c50dcb),D=K(D,M,T,P,N[R+2],15,0x2ad7d2bb),P=K(P,D,M,T,N[R+9],21,-0x14792c6f),T=V(T,L),P=V(P,$),D=V(D,F),M=V(M,B)}return[T,P,D,M]}function z(N,I,T,P,D,M){var R,L;return V((R=V(V(I,N),V(P,M)))<<(L=D)|R>>>32-L,T)}function W(N,I,T,P,D,M,R){return z(I&T|~I&P,N,I,D,M,R)}function q(N,I,T,P,D,M,R){return z(I&P|T&~P,N,I,D,M,R)}function G(N,I,T,P,D,M,R){return z(I^T^P,N,I,D,M,R)}function K(N,I,T,P,D,M,R){return z(T^(I|~P),N,I,D,M,R)}function V(N,I){var T=(65535&N)+(65535&I);return(N>>16)+(I>>16)+(T>>16)<<16|65535&T}I.exports=function(N){return U.hash(N,H,16)}}).call(this,N("lYpoI2"),"u">typeof self?self:"u">typeof window?window:{},N("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],7:[function(N,I,T){(function(N,T,P,D,M,R,L,$,F){var B,U;U=function(N){for(var I,T=Array(N),P=0;P<N;P++)0==(3&P)&&(I=0x100000000*Math.random()),T[P]=I>>>((3&P)<<3)&255;return T},I.exports=B||U}).call(this,N("lYpoI2"),"u">typeof self?self:"u">typeof window?window:{},N("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],8:[function(N,I,T){(function(T,P,D,M,R,L,$,F,B){var U=N("./helpers");function H(N,I){N[I>>5]|=128<<24-I%32,N[15+(I+64>>9<<4)]=I;for(var T,P,D,M,R,L=Array(80),$=0x67452301,F=-0x10325477,B=-0x67452302,U=0x10325476,H=-0x3c2d1e10,q=0;q<N.length;q+=16){for(var G=$,K=F,V=B,Y=U,J=H,Q=0;Q<80;Q++){L[Q]=Q<16?N[q+Q]:W(L[Q-3]^L[Q-8]^L[Q-14]^L[Q-16],1);var Z=z(z(W($,5),(D=F,M=B,R=U,(P=Q)<20?D&M|~D&R:!(P<40)&&P<60?D&M|D&R|M&R:D^M^R)),z(z(H,L[Q]),(T=Q)<20?0x5a827999:T<40?0x6ed9eba1:T<60?-0x70e44324:-0x359d3e2a)),H=U,U=B,B=W(F,30),F=$,$=Z}$=z($,G),F=z(F,K),B=z(B,V),U=z(U,Y),H=z(H,J)}return[$,F,B,U,H]}function z(N,I){var T=(65535&N)+(65535&I);return(N>>16)+(I>>16)+(T>>16)<<16|65535&T}function W(N,I){return N<<I|N>>>32-I}I.exports=function(N){return U.hash(N,H,20,!0)}}).call(this,N("lYpoI2"),"u">typeof self?self:"u">typeof window?window:{},N("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],9:[function(N,I,T){(function(T,P,D,M,R,L,$,F,B){function U(N,I){var T=(65535&N)+(65535&I);return(N>>16)+(I>>16)+(T>>16)<<16|65535&T}function H(N,I){return N>>>I|N<<32-I}function z(N,I){var T,P,D,M,R,L,$,F,B,z,W=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc
85376c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2],q=[0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19],G=Array(64);N[I>>5]|=128<<24-I%32,N[15+(I+64>>9<<4)]=I;for(var K,V,Y,J,Q,Z,X,ee,et=0;et<N.length;et+=16){T=q[0],P=q[1],D=q[2],M=q[3],R=q[4],L=q[5],$=q[6],F=q[7];for(var er=0;er<64;er++)G[er]=er<16?N[er+et]:U(U(U(H(ee=G[er-2],17)^H(ee,19)^ee>>>10,G[er-7]),H(X=G[er-15],7)^H(X,18)^X>>>3),G[er-16]),B=U(U(U(U(F,H(Z=R,6)^H(Z,11)^H(Z,25)),(Q=R)&L^~Q&$),W[er]),G[er]),z=U(H(J=T,2)^H(J,13)^H(J,22),(K=T)&(V=P)^K&(Y=D)^V&Y),F=$,$=L,L=R,R=U(M,B),M=D,D=P,P=T,T=U(B,z);q[0]=U(T,q[0]),q[1]=U(P,q[1]),q[2]=U(D,q[2]),q[3]=U(M,q[3]),q[4]=U(R,q[4]),q[5]=U(L,q[5]),q[6]=U($,q[6]),q[7]=U(F,q[7])}return q}var W=N("./helpers");I.exports=function(N){return W.hash(N,z,32,!0)}}).call(this,N("lYpoI2"),"u">typeof self?self:"u">typeof window?window:{},N("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],10:[function(N,I,T){(function(N,T,P,D,M,R,L,$,F){function B(){}(N=I.exports={}).nextTick=function(){var N="u">typeof window&&window.setImmediate,I="u">typeof window&&window.postMessage&&window.addEventListener;if(N)return function(N){return window.setImmediate(N)};if(I){var T=[];return window.addEventListener("message",function(N){var I=N.source;I!==window&&null!==I||"process-tick"!==N.data||(N.stopPropagation(),0<T.length&&T.shift()())},!0),function(N){T.push(N),window.postMessage("process-tick","*")}}return function(N){setTimeout(N,0)}}(),N.title="browser",N.browser=!0,N.env={},N.argv=[],N.on=B,N.addListener=B,N.once=B,N.off=B,N.removeListener=B,N.removeAllListeners=B,N.emit=B,N.binding=function(N){throw Error("process.binding is not supported")},N.cwd=function(){return"/"},N.chdir=function(N){throw Error("process.chdir is not supported")}}).call(this,N("lYpoI2"),"u">typeof self?self:"u">typeof window?window:{},N("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:10}],11:[function(N,I,T){(function(N,I,P,D,M,R,L,$,F){T.read=function(N,I,T,P,D){var M,R,L=8*D-P-1,$=(1<<L)-1,F=$>>1,B=-7,U=T?D-1:0,H=T?-1:1,z=N[I+U];for(U+=H,M=z&(1<<-B)-1,z>>=-B,B+=L;0<B;M=256*M+N[I+U],U+=H,B-=8);for(R=M&(1<<-B)-1,M>>=-B,B+=P;0<B;R=256*R+N[I+U],U+=H,B-=8);if(0===M)M=1-F;else{if(M===$)return R?NaN:1/0*(z?-1:1);R+=Math.pow(2,P),M-=F}return(z?-1:1)*R*Math.pow(2,M-P)},T.write=function(N,I,T,P,D,M){var R,L,$,F=8*M-D-1,B=(1<<F)-1,U=B>>1,H=5960464477539062e-23*(23===D),z=P?0:M-1,W=P?1:-1,q=+(I<0||0===I&&1/I<0);for(isNaN(I=Math.abs(I))||I===1/0?(L=+!!isNaN(I),R=B):(R=Math.floor(Math.log(I)/Math.LN2),I*($=Math.pow(2,-R))<1&&(R--,$*=2),2<=(I+=1<=R+U?H/$:H*Math.pow(2,1-U))*$&&(R++,$/=2),B<=R+U?(L=0,R=B):1<=R+U?(L=(I*$-1)*Math.pow(2,D),R+=U):(L=I*Math.pow(2,U-1)*Math.pow(2,D),R=0));8<=D;N[T+z]=255&L,z+=W,L/=256,D-=8);for(R=R<<D|L,F+=D;0<F;N[T+z]=255&R,z+=W,R/=256,F-=8);N[T+z-W]|=128*q}}).call(this,N("lYpoI2"),"u">typeof self?self:"u">typeof window?window:{},N("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/ieee754/index.js","/node_modules/ieee754")},{buffer:3,lYpoI2:10}]},{},[1])(1)},53282:(N,I,T)=>{"use strict";T.d(I,{G:()=>D,n:()=>M});var P=T(14232);let D=N=>{let I=N.tag||"span";return P.createElement(I,Object.assign({},N,{suppressHydrationWarning:!0}),"[No text in field]")},M=N=>{let I={minWidth:"48px",minHeight:"48px",maxWidth:"400px",maxHeight:"400px",cursor:"pointer"};return P.createElement("img",Object.assign({},N,{suppressContentEditableWarning:!0,alt:"",src:'data:image/svg+xml,%3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 240 240" style="enable-background:new 0 0 240 240;" xml:space="preserve"%3E%3Cstyle type="text/css"%3E .st0%7Bfill:none;%7D .st1%7Bfill:%23969696;%7D .st2%7Bfill:%23FFFFFF;%7D .st3%7Bfill:%23FFFFFF;stroke:%23FFFFFF;stroke-width:0.75;stroke-miterlimit:10;%7D%0A%3C/style%3E%3Cg%3E%3Crect class="st0" width="240" height="240"/%3E%3Cg%3E%3Cg%3E%3Crect x="20" y="20" class="st1" width="200" height="200"/%3E%3C/g%3E%3Cg%3E%3Ccircle class="st2" cx="174" cy="67" r="14"/%3E%3Cpath class="st2" d="M174,54c7.17,0,13,5.83,13,13s-5.83,13-13,13s-13-5.83-13-13S166.83,54,174,54 M174,52 c-8.28,0-15,6.72-15,15s6.72,15,15,15s15-6.72,15-15S182.28,52,174,52L174,52z"/%3E%3C/g%3E%3Cpolyline class="st3" points="29.5,179.25 81.32,122.25 95.41,137.75 137.23,91.75 209.5,179.75 "/%3E%3C/g%3E%3C/g%3E%3C/svg%3E',className:`scEmptyImage ${N.className||""}`,style:I}
853))}},53301:(N,I,T)=>{"use strict";T.d(I,{ol:()=>K,tk:()=>V});var P=T(37876),D=T(59088),M=T(10409),R=T(6807),L=T(81943),$=T(85609),F=T(47137),B=T(92678),U=T(79517),H=T(36379),z=T(82868);let W=` 854 flex justify-center items-center 855 size-full 856 text-m-h-1 md:text-d-h-1 857 overflow-hidden 858 relative 859`,q=(0,F.F)([W],{variants:{height:{sm:"h-96 md:h-128 lg:h-92",md:"h-96 md:h-128 lg:h-112.5",lg:"h-96 md:h-128 lg:h-192"}}}),G=N=>(0,H.UJ)(N,U.Su.HERO_HEIGHT_SM)?"sm":(0,H.UJ)(N,U.Su.HERO_HEIGHT_MD)?"md":((0,H.UJ)(N,U.Su.HERO_HEIGHT_LG),"lg"),K=N=>{switch(N?.toLowerCase()){case"small":return"sm";case"medium":return"md";default:return"lg"}},V=({heroContent:N,contentSlot:I,image:T,imageAlt:F,focalPoint:U,overlayClassName:W="bg-black opacity-20",height:K,styledClasses:V,className:Y,variant:J,priority:Q=!0,...Z})=>{let X,ee,et,er,en,{page:ea}=(0,$.M5)(),ei=ea.mode.isEditing,eo=(0,H.UJ)(V,"object-").replace("object-","")??"center",es=K??G(V),el="sm"===es;N&&(X=N.heroTitle??{value:""},ee=N.heroText??{value:""},et=N.heroImage,en=!!(X||ee),er=N.heroCtaButton);let ec=T??et,eu=F??((et?.value.alt??"")||"Hero Image"),ed=U??N?.heroImageFocalPoint;return(0,P.jsxs)(M.a,{className:(0,H.cn)(q({height:es,className:Y}),{"th-hero":"taylorhopkinson"===J}),...Z,children:[(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(D.Cv,{field:ec,priority:Q,alt:eu,focalPoint:ed,fallbackPosition:"center "+eo,className:(0,H.cn)({"th-hero-img":"taylorhopkinson"===J})}),!ei&&(0,P.jsx)(M.a,{className:(0,H.cn)("absolute-overlay absolute inset-0",W,{"th-hero-img":"taylorhopkinson"===J})})]}),I??(en&&(0,P.jsx)(M.a,{className:"relative mx-auto flex w-full max-w-(--breakpoint-lg) py-10 lg:py-20",children:(0,P.jsxs)(M.a,{className:"text-content mx-6 mt-6 lg:mx-0",children:[(0,P.jsx)(R.o,{textField:X,type:"h1",className:(0,H.cn)("text-white",{"w-[95%] text-[min(3rem,1rem+2.5vw)]!":"taylorhopkinson"===J}),"data-testid":z.Qa.TestIds.General.pageTitle}),"brunel"===J&&(0,P.jsx)(L.g,{length:48,orientation:"horizontal",className:"my-4"}),!el&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(R.o,{textField:ee,className:"mb-6 text-white lg:mb-8"}),(0,P.jsx)(B.Button,{linkField:er,iconName:"arrow-right",iconSide:"right",className:"mt-6"})]})]})}))]})}},53412:(N,I,T)=>{let P=T(79289);function D(N,I,...T){for(let M of T)if(P(M))for(let[T,R]of Object.entries(M))"__proto__"!==T&&"constructor"!==T&&(void 0===I[T]&&void 0!==R&&(I[T]=R),N&&P(I[T])&&P(R)&&D(!0,I[T],R));return I}N.exports=D.bind(void 0,!1),N.exports.deep=D.bind(void 0,!0)},53441:(N,I)=>{"use strict";I.parse=$,I.serialize=U;var T=Object.prototype.toString,P=Object.prototype.hasOwnProperty,D=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,M=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,R=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,L=/^[\u0020-\u003A\u003D-\u007E]*$/;function $(N,I){if("string"!=typeof N)throw TypeError("argument str must be a string");var T={},D=N.length;if(D<2)return T;var M=I&&I.decode||H,R=0,L=0,$=0;do{if(-1===(L=N.indexOf("=",R)))break;if(-1===($=N.indexOf(";",R)))$=D;else if(L>$){R=N.lastIndexOf(";",L-1)+1;continue}var U=F(N,R,L),z=B(N,L,U),q=N.slice(U,z);if(!P.call(T,q)){var G=F(N,L+1,$),K=B(N,$,G);34===N.charCodeAt(G)&&34===N.charCodeAt(K-1)&&(G++,K--);var V=N.slice(G,K);T[q]=W(V,M)}R=$+1}while(R<D);return T}function F(N,I,T){do{var P=N.charCodeAt(I);if(32!==P&&9!==P)return I}while(++I<T);return T}function B(N,I,T){for(;I>T;){var P=N.charCodeAt(--I);if(32!==P&&9!==P)return I+1}return T}function U(N,I,T){var P=T&&T.encode||encodeURIComponent;if("function"!=typeof P)throw TypeError("option encode is invalid");if(!D.test(N))throw TypeError("argument name is invalid");var $=P(I);if(!M.test($))throw TypeError("argument val is invalid");var F=N+"="+$;if(!T)return F;if(null!=T.maxAge){var B=Math.floor(T.maxAge);if(!isFinite(B))throw TypeError("option maxAge is invalid");F+="; Max-Age="+B}if(T.domain){if(!R.test(T.domain))throw TypeError("option domain is invalid");F+="; Domain="+T.domain}if(T.path){if(!L.test(T.path))throw TypeError("option path is invalid");F+="; Path="+T.path}if(T.expires){var U=T.expires;if(!z(U)||isNaN(U.valueOf()))throw TypeError("option expires is invali
859d");F+="; Expires="+U.toUTCString()}if(T.httpOnly&&(F+="; HttpOnly"),T.secure&&(F+="; Secure"),T.partitioned&&(F+="; Partitioned"),T.priority)switch("string"==typeof T.priority?T.priority.toLowerCase():T.priority){case"low":F+="; Priority=Low";break;case"medium":F+="; Priority=Medium";break;case"high":F+="; Priority=High";break;default:throw TypeError("option priority is invalid")}if(T.sameSite)switch("string"==typeof T.sameSite?T.sameSite.toLowerCase():T.sameSite){case!0:case"strict":F+="; SameSite=Strict";break;case"lax":F+="; SameSite=Lax";break;case"none":F+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return F}function H(N){return -1!==N.indexOf("%")?decodeURIComponent(N):N}function z(N){return"[object Date]"===T.call(N)}function W(N,I){try{return I(N)}catch(I){return N}}},53576:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),Object.defineProperty(I,"normalizeLocalePath",{enumerable:!0,get:function(){return P}});let P=(N,I)=>T(56945).normalizeLocalePath(N,I);("function"==typeof I.default||"object"==typeof I.default&&null!==I.default)&&void 0===I.default.__esModule&&(Object.defineProperty(I.default,"__esModule",{value:!0}),Object.assign(I.default,I),N.exports=I.default)},53724:(N,I,T)=>{"use strict";T.r(I),T.d(I,{useSearchConfigurationBar:()=>R});var P=T(14232),D=T(42135),M=T(46615);let R=({language:N})=>{let[I,T]=(0,P.useState)([]),[R,L]=(0,P.useState)([]),[$,F]=(0,P.useState)("");return{keywordData:I,locationData:R,updateKeywordSuggestion:(0,D._6)((0,P.useCallback)(I=>{""!==I.trim()&&I.length>=3?M.P.getSuggestionsFromKeyword(I,N).then(N=>{N?.suggestionList&&N?.suggestionList?.length>0?T([...N.suggestionList]):T([])}).catch(N=>{console.error("Error fetching keyword suggestions",N)}):T([])},[]),300),updateLocationSuggestion:(0,D._6)((0,P.useCallback)(I=>{""!==I.trim()&&I.length>=3?M.P.getSuggestionsFromLocation(I,N).then(N=>{N?.suggestionList&&N?.suggestionList?.length>0?L([...N.suggestionList]):L([])}).catch(N=>{console.error("Error fetching location suggestions",N)}):L([])},[]),300),honeypotValue:$,setHoneypotValue:F}}},53812:(N,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),function(N,I){for(var T in I)Object.defineProperty(N,T,{enumerable:!0,get:I[T]})}(I,{METADATA_BOUNDARY_NAME:function(){return T},OUTLET_BOUNDARY_NAME:function(){return D},ROOT_LAYOUT_BOUNDARY_NAME:function(){return M},VIEWPORT_BOUNDARY_NAME:function(){return P}});let T="__next_metadata_boundary__",P="__next_viewport_boundary__",D="__next_outlet_boundary__",M="__next_root_layout_boundary__"},53947:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),Object.defineProperty(I,"useIntersection",{enumerable:!0,get:function(){return B}});let P=T(14232),D=T(29382),M="function"==typeof IntersectionObserver,R=new Map,L=[];function $(N){let I,T={root:N.root||null,margin:N.rootMargin||""},P=L.find(N=>N.root===T.root&&N.margin===T.margin);if(P&&(I=R.get(P)))return I;let D=new Map;return I={id:T,observer:new IntersectionObserver(N=>{N.forEach(N=>{let I=D.get(N.target),T=N.isIntersecting||N.intersectionRatio>0;I&&T&&I(T)})},N),elements:D},L.push(T),R.set(T,I),I}function F(N,I,T){let{id:P,observer:D,elements:M}=$(T);return M.set(N,I),D.observe(N),function(){if(M.delete(N),D.unobserve(N),0===M.size){D.disconnect(),R.delete(P);let N=L.findIndex(N=>N.root===P.root&&N.margin===P.margin);N>-1&&L.splice(N,1)}}}function B({rootRef:N,rootMargin:I,disabled:T}){let R=T||!M,[L,$]=(0,P.useState)(!1),U=(0,P.useRef)(null),H=(0,P.useCallback)(N=>{U.current=N},[]);return(0,P.useEffect)(()=>{if(M){if(R||L)return;let T=U.current;if(T&&T.tagName)return F(T,N=>N&&$(N),{root:N?.current,rootMargin:I})}else if(!L){let N=(0,D.requestIdleCallback)(()=>$(!0));return()=>(0,D.cancelIdleCallback)(N)}},[R,I,N,L,U.current]),[H,L,(0,P.useCallback)(()=>{$(!1)},[])]}("function"==typeof I.default||"object"==typeof I.default&&null!==I.default)&&void 0===I.default.__esModule&&(Object.defineProperty(I.default,"__esModule",{value:!0}),Object.assign(I.default,I),N.exports=I.default)},53992:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.getBody=M,I.setCookie=D,I.toResponse=R;var P=T(53441);function D(N,I){var T;let D=null!=(T=N.getHeader("Set-Cookie"))?T:[];Array.isArray(D)||(D=[D]);let{name:M,value:R,options:L}=I,$=(0,P.serialize)(M,R,L);D.push($),N.setHeader("Set-Cookie",D)}async function M(N){if(!("body"in N)||!N.body||"POST"!==N.method)return;let I=N.headers.get("content-type");return null!=I&&I.includes("application/json")?await N.json():null!=I&&I.includes("application/x-www-form-urlencoded")?Object.fromEntries(new URLSearchParams(await N.text())):void 0}function R(N){var I,T,D;let M=new Headers(null==(I=N.headers)?void 0:I.reduce((N,{key:I,value:T})=>(N[I]=T,N),{}));null==(T=N.cookies)||T.forEach(N=>{let{name:I,value:T,options:D}=N,R=(0,P.serialize)(I,T,D);M.has("Set-Cookie")?M.append("Set-Cookie",R):M.set("Set-Cookie",R)});let R=N.body;"application/json"===M.get("content-type")?R=JSON.stringify(N.body):"application/x-www-form-urlencoded"===M.get("content-type")&&(R=new URLSearchParams(N.body).toString());let L=new Response(R,{headers:M,status:N.redirect?302:null!=(D=N.status)?D:200});return N.redirect&&L.headers.set("Location",N.redirect),L}},54099:(N,I,T)=>{"use strict";T.r(I),T.d(I,{useSearchConfigurationResults:()=>L});var P=T(73521),D=T(2650),M=T(14232),R=T(42135);let L=({language:N,listResults:I,publications:T,searchBarData:L,setSearchBarData:$,getPublicationsQuery:F})=>{let B=(0,D.s9)().table(N.toLowerCase()??"en"),[U,H]=(0,R.ko)([]),z=(0,P.resolveSortByMap)(I),[W]=(0,M.useState)(Array.from(z.values())
859),q=N=>{let I=(0,P.resolveSortByKey)(z,N);if(I){let N={...L,sortBy:I};$(N),F(!1,!1,N)}};return(0,M.useEffect)(()=>{T?.forEach(I=>{let T=(0,P.resolveVacancySalary)(N,B,I);(void 0===U.get(I?.publicationId??"")||U.get(I?.publicationId??"")!==T)&&H.set(I?.publicationId??"",T)})},[T,U,N,B,H]),{sortBy:z,sortByData:W,salaries:U,handleSortChange:q}}},54334:(N,I,T)=>{"use strict";T.d(I,{p:()=>R});var P=T(69867),D=T(61120),M=T(43691);function R(N,I){let T=(0,M.a)(N,I?.in),R=T.getFullYear(),L=(0,P.w)(T,0);L.setFullYear(R+1,0,4),L.setHours(0,0,0,0);let $=(0,D.b)(L),F=(0,P.w)(T,0);F.setFullYear(R,0,4),F.setHours(0,0,0,0);let B=(0,D.b)(F);return T.getTime()>=$.getTime()?R+1:T.getTime()>=B.getTime()?R:R-1}},54449:(N,I,T)=>{"use strict";T.d(I,{u:()=>M});var P=T(14232),D=T(36379);let M=()=>{let[N,I]=(0,P.useState)({mapConsent:!1,videoConsent:!1,loading:!0});return(0,P.useEffect)(()=>{let N=()=>{if(!window.OnetrustActiveGroups)return;let N=(0,D.RT)(window.OnetrustActiveGroups);I({mapConsent:N.hasGoogleMapCookieConsent,videoConsent:N.hasVideoCookieConsent,loading:!1})};return N(),window.addEventListener("OneTrustGroupsUpdated",N),()=>{window.removeEventListener("OneTrustGroupsUpdated",N)}},[]),N}},54587:(N,I,T)=>{N.exports=T(7749)},54603:(N,I,T)=>{"use strict";T.r(I),T.d(I,{EventOverviewResultCard:()=>G});var P=T(37876),D=T(94274),M=T(85609),R=T(87273),L=T(61584),$=T(48230),F=T.n($),B=T(63366),U=T(60409),H=T(98566),z=T(36379),W=T(81202),q=T(6032);let G=({result:N,lastCard:I})=>{let{page:T}=(0,M.M5)(),$=(0,H.K_)(),G=$?.["event-past-label"]??"Past event",K=N.name,V=N.previewImage?.data?.value?.src?N.previewImage.data:N.eventHeroImage.data,Y=T?.locale??U.Xn,J={value:N?.eventHeroPublicationDate?.value??""},Q={value:N?.eventHeroPublicationEndDate?.value??""},Z=(0,W.Yq)(J,Y),X=(0,W.Yq)(Q,Y),ee=(0,W.Qc)(J.value)&&"Invalid Date"!==Z.value,et=(0,W.Qc)(Q.value)&&"Invalid Date"!==X.value,er=(0,W.D2)(N?.eventHeroPublicationDate?.value,N?.eventHeroPublicationEndDate?.value),en=(0,q.zP)(N),ea=(0,q.MS)(N);return(0,P.jsxs)(B.az,{className:(0,z.cn)("flex flex-col border-accent-iron bg-white! py-5 sm:border sm:p-0 sm:shadow-blog-card",{"border-b-2":!I}),children:[(0,P.jsxs)(F(),{prefetch:!1,className:"group flex h-full flex-row sm:flex-col",href:(0,z.J6)(K),children:[(0,P.jsxs)(B.az,{className:"relative flex items-center overflow-hidden",children:[(0,P.jsx)(R._,{className:(0,z.cn)("aspect-square max-w-26 object-cover transition-all delay-75 ease-linear hover:scale-105 sm:aspect-video sm:w-full sm:max-w-full"),field:V,srcSet:[{mw:120}],sizes:"120px",alt:V?.value?.alt||"Event Card Image"}),er&&(0,P.jsx)(B.az,{className:"pointer-events-none absolute top-2 left-2 rounded bg-black/75 px-2 py-0.5 text-[10px] font-semibold tracking-wide text-white uppercase sm:top-3 sm:left-3 sm:text-xs",children:G})]}),(0,P.jsx)(B.az,{className:"relative flex flex-1 flex-col justify-start px-4 sm:justify-between sm:p-4",children:(0,P.jsxs)(B.az,{className:"flex flex-col gap-2",children:[(0,P.jsx)(B.o5,{className:"mb-0 line-clamp-2 text-brunel-dark-grey group-hover:brunel-underline-3-brunel-dark-grey sm:line-clamp-none",type:"h4",plainText:N?.previewTitle?.value}),ee&&(0,P.jsxs)(B.az,{className:"text-sm font-medium text-ui-grey",children:[(0,P.jsx)(L.v,{field:J,tag:"span",render:()=>Z.value}),et&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("span",{children:" - "}),(0,P.jsx)(L.v,{field:Q,tag:"span",render:()=>X.value})]})]}),(0,P.jsx)(B.o5,{className:"line-clamp-2 text-sm leading-snug text-ui-grey/90 sm:line-clamp-3",type:"small",plainText:N?.previewIntro?.value})]})})]}),en&&(0,P.jsx)(B.az,{className:"mt-3 px-4 sm:mt-0 sm:mb-4 sm:px-4",children:(0,P.jsx)(D.TagButton,{value:en,link:ea,external:!!ea,className:"hidden sm:flex"})})]})}},54687:(N,I,T)=>{"use strict";T.r(I),T.d(I,{useApplyFormTH:()=>z});var P=T(17033),D=T(55333),M=T(14e3),R=T(14232),L=T(67881),$=T(8496),F=T(98566),B=T(95750);let U="TaylorHopkinson",H="en",z=({fields:N,vacancyData:I,openVacancyIDs:T})=>{let[z,W]=(0,R.useState)({title:"",message:""}),[q,G]=(0,R.useState)({hostname:""}),K=(0,M.useRouter)(),{getParam:V}=(0,F.BB)(),Y=(0,P.resolveIsOpenVacancy)(T,V("vacancyID")),J=(0,D.Cx)(),Q=async()=>{let T=await (0,$.f)(I?.businessUnit??"",H);return(0,P.buildApplyFormExtraFields)({language:H,vacancyId:I?.publicationId??V("vacancyID")??"open",preMatchingIsLeading:N?.preMatchingIsLeading??!1,mercur
859yId:I?.mercuryId??"",vacancyTitle:I?.title??"",vacancyParentNumber:I?.parentNumber??"",marketName:N?.marketName??"",marketLanguageCodes:N?.marketLanguageCodes??"",businessUnit:I?.businessUnit??"",businessUnitName:T?.[0]?.text?.value??"",hostname:q.hostname,contactOfficeName:I?.contactOfficeName??"",atsSource:(0,P.resolveAtsSource)(I?.atsSource,Y),publicationCountry:I?.country??"",contactName:I?.contactName??"",contactPhone:I?.contactPhone??"",contactEmail:I?.contactEmail??"",publicationId:I?.publicationId,utmParameters:(0,B.Df)(V),applicationSourceId:V("applicationSourceId"),managerSu:V("su"),piwikId:(0,P.extractPiwikId)(document.cookie)})};return(0,R.useEffect)(()=>{(0,D.Cx)()||(I?.publicationId?(L.q.common.vacancyDetailOnPageEnter("open direct apply page",I,H),L.q.applyForm.startDirectApplication(U,I?.publicationId)):Y?L.q.applyForm.startOpenApplication(U):L.q.applyForm.startPersonalApplication(U,V("applicationSourceId")),G({hostname:window.location.origin}))},[]),{error:z,setError:W,language:H,isEditing:J,getExtraFields:Q,setInteractionDataLayer:(N,T)=>()=>{I?.publicationId?L.q.applyForm.interactFormFieldDirectApplication(U,N,T):Y?L.q.applyForm.interactFormFieldOpenApplication(U,N,T):L.q.applyForm.interactFormFieldPersonalApplication(U,N,T)},setSubmissionDataLayer:()=>{I?.publicationId?(localStorage.setItem("vacancyData",JSON.stringify(I)),L.q.applyForm.submitDirectApplication(U,I?.publicationId,N?.variantType)):Y?L.q.applyForm.submitOpenApplication(U,N?.variantType):L.q.applyForm.submitPersonalApplication(U,V("applicationSourceId"),N?.variantType)},router:K}}},54755:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),Object.defineProperty(I,"notFound",{enumerable:!0,get:function(){return M}});let P=T(64494),D=`${P.HTTP_ERROR_FALLBACK_ERROR_CODE};404`;function M(){let N=Object.defineProperty(Error(D),"__NEXT_ERROR_CODE",{value:"E1041",enumerable:!1,configurable:!0});throw N.digest=D,N}("function"==typeof I.default||"object"==typeof I.default&&null!==I.default)&&void 0===I.default.__esModule&&(Object.defineProperty(I.default,"__esModule",{value:!0}),Object.assign(I.default,I),N.exports=I.default)},54956:(N,I,T)=>{"use strict";T.d(I,{WQ:()=>eD});var P,D=Symbol("cache-parser");function M(N,I){(null==I||I>N.length)&&(I=N.length);for(var T=0,P=Array(I);T<I;T++)P[T]=N[T];return P}function R(N){return("string"==typeof N||"number"==typeof N)&&(N=Number(N))>=0&&N<1/0}function L(N){return!0===N||"number"==typeof N||"string"==typeof N&&"false"!==N}var $=Number;function F(N){var I=Object.defineProperty({},D,{enumerable:!1,value:1});if(!N||"string"!=typeof N)return I;var T=function(N){for(var I,T={},P=function(N){var I="u">typeof Symbol&&N[Symbol.iterator]||N["@@iterator"];if(I)return(I=I.call(N)).next.bind(I);if(Array.isArray(N)||(I=function(N){if(N){if("string"==typeof N)return M(N,void 0);var I=({}).toString.call(N).slice(8,-1);return"Object"===I&&N.constructor&&(I=N.constructor.name),"Map"===I||"Set"===I?Array.from(N):"Arguments"===I||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I)?M(N,void 0):void 0}}(N))){I&&(N=I);var T=0;return function(){return T>=N.length?{done:!0}:{done:!1,value:N[T++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(N.toLowerCase().replace(/\s+/g,"").split(","));!(I=P()).done;){var D,R=I.value.split("=",2);T[R[0]]=null==(D=R[1])||D}return T}(N),P=T["max-age"],F=T["max-stale"],B=T["min-fresh"],U=T["s-maxage"],H=T["stale-if-error"],z=T["stale-while-revalidate"];return L(T.immutable)&&(I.immutable=!0),R(P)&&(I.maxAge=$(P)),R(F)&&(I.maxStale=$(F)),R(B)&&(I.minFresh=$(B)),L(T["must-revalidate"])&&(I.mustRevalidate=!0),L(T["must-understand"])&&(I.mustUnderstand=!0),L(T["no-cache"])&&(I.noCache=!0),L(T["no-store"])&&(I.noStore=!0),L(T["no-transform"])&&(I.noTransform=!0),L(T["only-if-cached"])&&(I.onlyIfCached=!0),L(T.private)&&(I.private=!0),L(T["proxy-revalidate"])&&(I.proxyRevalidate=!0),L(T.public)&&(I.public=!0),R(U)&&(I.sMaxAge=$(U)),R(H)&&(I.staleIfError=$(H)),R(z)&&(I.staleWhileRevalidate=$(z)),I}var B=Symbol();function U(){var N,I,T=new Promise(function(T,P){N=T,I=P});return T.resolve=N,T.reject=I,T[B]=1,T}function H(N,I){(null==I||I>N.length)&&(I=N.length);for(var T=0,P=Array(I);T<I;T++)P[T]=N[T];return P}function z(N,I){var T="u">typeof Symbol&&N[Symbol.iterator]||N["@@iterator"];if(T)return(T=T.call(N)).next.bind(T);if(Array.isArray(N)||(T=function(N){if(N){if("string"==typeof N)return H(N,void 0);var I=({}).toString.call(N).slice(8,-1);return"Object"===I&&N.constructor&&(I=N.constructor.name),"Map"===I||"Set"===I?Array.from(N):"Arguments"===I||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I)?H(N,void 0):void 0}}(N))||I&&N&&"number"==typeof N.length){T&&(N=T);var P=0;return function(){return P>=N.length?{done:!0}:{done:!1,value:N[P++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function W(N,I,T){if("*"===N||null===N)return!1;for(var P,D=Object.keys(I),M=Object.keys(T),R=z(N);!(P=R()).done;){for(var L,$=P.value,F=void 0,B=void 0,U=z(D);!(L=U()).done;){var H,W=L.value;if(W.toLowerCase()===$){F=null==(H=I[W])||null==(H=H.toString())?void 0:H.trim();break}}for(var q,G=z(M);!(q=G()).done;){var K,V=q.value;if(V.toLowerCase()===$){B=null==(K=T[V])||null==(K=K.toString())?void 0:K.trim();break}}if(F!=B)return!1}return!0}var q=/^[a-z0-9-]+$/i;function G(N,I){if(void 0===I&&(I=16),"string"!=typeof N)return null;if(N.includes("*"))return"*";for(var T=new Set,P=0;P<N.length;P++){var D=N[P];if(" "!==D&&" "!==D&&","!==D){for(var M=P;P<N.length&&","!==N[P];)P++;var R=N.slice(M,P).trim().toLowerCase();if(0!==R.length&&q.test(R)&&(T.add(R),T.size>=I))break}}return 0===T.size?null:Array.from(T)}function K(N,I){return N>I?1:-1}function V(N,I){return K(String(N[0]),String(I[0]))}function Y(N,I){return 33*N^I}function J(N,I){var T=5381;if("object"==typeof N&&null!==N){var P="function"==typeof N.entries,D=Object.keys(N).length>0;if(N.toString===Object.prototype.toString||N.toString===Array.prototype.toString||P&&!D){I||(I=new WeakSet),I.add(N);var M=P&&!D?Array.from(N.entries()):Object.keys(N).sort(K).map(function(I){return[I,N[I]]});P&&!D&&M.sort(V);for(var R=0;R<M.length;R++){var L=M[R],$=L[1];if(T=Y(T,J(L[0],I)),"object"==typeof $&&null!==$&&($.toString===Object.prototype.toString||$.toString===Array.prototype.toString)){if(I.has($))continue;I.add($)}T=Y(T,J($,I))}return Y(T,J(N.constructor,I))}}for(var F,B=typeof N,U=0;U<B.length;U++)T=Y(T,B.charCodeAt(U));if(N instanceof Date)return Y(T,N.getTime());if("number"===B)return Y(T,function(N){if(Number.isNaN(N))return 0x7ff80000;if(1/0===N)return 0x7ff00000;if(-1/0===N)return 0xfff00000;if(Math.abs(N)>Number.MAX_SAFE_INTEGER){for(var I=String(N),T=0,P=0;P<I.length;P++)T=Y(T,I.charCodeAt(P));return T}return N}(N));if("boolean"===B)return Y(T,+!!N);try{F=String(N)}catch(I){F=Object.prototype.toString.call(N)}for(var H=0;H<F.length;
859H++)T=Y(T,F.charCodeAt(H));return T}let Q="if-modified-since",Z="last-modified",X="if-none-match",ee="cache-control",et="pragma",er="etag",en="expires",ea="age",ei="x-axios-cache-etag",eo="x-axios-cache-last-modified",es="x-axios-cache-stale-if-error",el="vary",ec=(N,I)=>{if(!N)return"not enough headers";let T=N[ee];if(T){let P=F(String(T));if(P.noCache||P.noStore||"server"===I&&P.private)return"dont cache";if(P.immutable)return{cache:31536e6};if(void 0!==P.maxAge){let I=N[ea];return{cache:I?(P.maxAge-Number(I))*1e3:1e3*P.maxAge,stale:void 0!==P.maxStale?1e3*P.maxStale:void 0!==P.staleWhileRevalidate?1e3*P.staleWhileRevalidate:void 0}}}let P=N[en];if(P){let N=Date.parse(String(P))-Date.now();return N>=0?{cache:N}:"dont cache"}return"not enough headers"};function eu(N,I){let T={};for(let P of I)T[P]=N.get(P)?.toString();return T}async function ed(N,I){if("function"==typeof I)return I(N);let{statusCheck:T,responseMatch:P,containsHeaders:D}=I;if(T&&!await T(N.status)||P&&!await P(N))return!1;if(D){for(let[I,T]of Object.entries(D))if(!await T(N.headers[I.toLowerCase()]??N.headers[I]))return!1}return!0}function ef(N,I){return N instanceof RegExp?(N.lastIndex=0,N.test(I)):I.includes(N)}function eh(N){return N?I=>N(I)||304===I:N=>N>=200&&N<300||304===N}function ep(N="get",I=[]){return N=N.toLowerCase(),I.some(I=>I===N)}function em(N,I){let{etag:T,modifiedSince:P}=I.cache,D=N.data?.meta?.revalidation;if(T){let P;(P=D?.etag?D.etag:!0===T?N.data?.headers[er]:T)&&I.headers.set(X,P)}if(P){let T;T=D?.lastModified?!0===D.lastModified?new Date(N.createdAt).toUTCString():D.lastModified:!0===P?N.data.headers[Z]||new Date(N.createdAt).toUTCString():P.toUTCString(),I.headers.set(Q,T)}}function eg(N,I){return 304===N.status&&I?(N.cached=!0,N.data=I.data,N.status=I.status,N.statusText=I.statusText,N.headers={...I.headers,...N.headers},I):{data:N.data,status:N.status,statusText:N.statusText,headers:N.headers}}function ey(N){let I=async T=>{let P;if(T.id=N.generateKey(T,{vary:T.cache&&Array.isArray(T.cache.vary)?eu(T.headers,T.cache.vary):void 0}),!1===T.cache||(T.cache={...N.defaults.cache,...T.cache},!1===T.cache.enabled))return T;if("object"==typeof T.cache.cachePredicate&&T.cache.cachePredicate.ignoreUrls&&T.url){for(let N of T.cache.cachePredicate.ignoreUrls)if(ef(N,T.url))return T}if("object"==typeof T.cache.cachePredicate&&T.cache.cachePredicate.allowUrls&&T.url){let N=!1;for(let I of T.cache.cachePredicate.allowUrls)if(ef(I,T.url)){N=!0;break}if(!N)return T}if(T.cache.cacheTakeover&&(T.headers.set(ee,"no-cache, no-store, must-revalidate, max-age=0",!1),T.headers.set(et,"no-cache",!1),T.headers.set(en,"0",!1)),!ep(T.method,T.cache.methods))return T;let D=await N.storage.get(T.id,T),M=T.cache.override;if(!1!==T.cache.vary&&D.data?.meta?.vary&&D.data.headers[el]){let I=Array.isArray(T.cache.vary)?T.cache.vary:G(D.data.headers[el]);if(I&&"*"!==I&&!W(I,D.data.meta?.vary,T.headers)){let P=eu(T.headers,I),M=N.generateKey({...T,id:void 0},{vary:P});T.id!==M&&(T.id=M,D=await N.storage.get(M,T))}}e:if("empty"===D.state||"stale"===D.state||"must-revalidate"===D.state||M){if(N.waiting.has(T.id)&&!M&&"empty"!==(D=await N.storage.get(T.id,T)).state&&"must-revalidate"!==D.state)break e;let I=U();return N.waiting.set(T.id,I),I.catch(()=>void 0),await N.storage.set(T.id,{state:"loading",previous:M?D.data?"stale":"empty":D.state,data:D.data,createdAt:M&&!D.createdAt?Date.now():D.createdAt},T),"stale"!==D.state&&"must-revalidate"!==D.state||M||em(D,{...T,cache:T.cache}),T.validateStatus=eh(T.validateStatus),("stale"===D.state||D.data&&"must-revalidate"!==D.state)&&await T.cache.hydrate?.(D),T}if("loading"===D.state){let M=N.waiting.get(T.id);if(!M)return D.data&&await T.cache.hydrate?.(D),T;try{await M;let D=await N.storage.get(T.id,T);if(!D.data)return I(T);if(!1!==T.cache.vary&&D.data.headers[el]){let N=Array.isArray(T.cache.vary)?T.cache.vary:G(D.data.headers[el]),P=D.data.meta?.vary;if("*"===N||N&&P&&!W(N,P,T.headers))return I(T)}P=D.data}catch(N){throw N}}else P=D.data;return T.transformResponse=void 0,T.adapter=function(){return Promise.resolve({config:T,data:P.data,headers:P.headers,status:P.status,statusText:P.statusText,cached:!0,stale:"stale"===D.previous,id:T.id})},T};return{onFulfilled:I}}
859async function eb(N,I,T){if("function"==typeof T)return T(I);for(let[P,D]of Object.entries(T)){if("delete"===D){await N.remove(P,I.config);continue}let T=await N.get(P,I.config);if("loading"===T.state)continue;let M=await D(T,I);if("delete"===M){await N.remove(P,I.config);continue}"ignore"!==M&&await N.set(P,M,I.config)}}function ev(N){let I=(I,T,P)=>{let D=N.waiting.get(I);D&&(D[T](P),N.waiting.delete(I))};return{onFulfilled:async T=>{let P;if(!T?.config)throw T;T.id=T.config.id,T.cached??=!1;let D=T.config,M=D.cache;if(T.cached)return T;if(!M)return T.cached=!1,T;if(M.update&&await eb(N.storage,T,M.update),!ep(D.method,M.methods))return T;let R=await N.storage.get(T.id,D);if("loading"!==R.state||!R.data&&!await ed(T,M.cachePredicate))return I(T.id,"resolve"),T;for(let N of Object.keys(T.headers))N.startsWith("x-axios-cache")&&delete T.headers[N];let L=M.ttl||-1;if(M.interpretHeader){let D=N.headerInterpreter(T.headers,N.location);if("dont cache"===D)return I(T.id,"resolve"),T;"not enough headers"!==D&&("number"==typeof D?L=D:(L=D.cache,P=D.stale))}"function"==typeof L&&(L=await L(T));let $=eg(T,R.data);if(M.etag||M.modifiedSince){if($.meta??={},$.meta.revalidation={},M.etag){let N=!0===M.etag?T.headers[er]:M.etag;N&&($.meta.revalidation.etag=N)}M.modifiedSince&&($.meta.revalidation.lastModified=!0===M.modifiedSince?T.headers[Z]||!0:M.modifiedSince.toUTCString())}if(!1!==M.vary&&T.headers[el]){let P=Array.isArray(M.vary)?M.vary:G(T.headers[el]);if(Array.isArray(P))$.meta??={},$.meta.vary=eu(D.headers,P);else if("*"===P)return await N.storage.set(T.id,{state:"stale",createdAt:Date.now(),data:$,ttl:L},D),I(T.id,"resolve"),T}let F={state:"cached",ttl:L,staleTtl:P,createdAt:Date.now(),data:$};return await N.storage.set(T.id,F,D),I(T.id,"resolve"),T},onRejected:async T=>{if(!T.isAxiosError||!T.config)throw T;let P=T.config,D=P.id,M=P.cache,R=T.response;if(!M||!D)throw T;if(!ep(P.method,M.methods))throw await N.storage.remove(D,P),I(D,"reject",T),T;let L=await N.storage.get(D,P);if("loading"!==L.state||"stale"!==L.previous)throw("ERR_CANCELED"!==T.code||"ERR_CANCELED"===T.code&&"cached"!==L.state)&&await N.storage.remove(D,P),"ERR_CANCELED"===T.code?I(D,"resolve"):I(D,"reject",T),T;if(M.staleIfError){let I=String(R?.headers[ee]),$=I&&F(I).staleIfError,B="function"==typeof M.staleIfError?await M.staleIfError(R,L,T):!0===M.staleIfError&&$?1e3*$:M.staleIfError;if(!0===B||"number"==typeof B&&L.createdAt+B>Date.now()){await N.storage.set(D,{state:"stale",createdAt:Date.now(),data:L.data},P);let I=N.waiting.get(D);return I&&(I.resolve(),N.waiting.delete(D)),{cached:!0,stale:!0,config:P,id:D,data:L.data.data,headers:L.data.headers,status:L.data.status,statusText:L.data.statusText}}}throw await N.storage.remove(D,P),I(D,"reject",T),T}}}let ew=N=>!!N&&!!N["is-storage"];function ex(N){if(N.meta?.revalidation)return;let I=N.headers[ei],T=N.headers[eo];(I||T)&&(N.meta??={},N.meta.revalidation={},I&&(N.meta.revalidation.etag=I),T&&(N.meta.revalidation.lastModified="use-cache-timestamp"===T||T),delete N.headers[ei],delete N.headers[eo],delete N.headers[es])}function eA(N){ex(N.data);let I=N.data.headers,T=N.data.meta?.revalidation;return er in I||Z in I||!!(T?.etag||T?.lastModified)}function eE(N){return String(N.data.headers[ee]).includes("must-revalidate")}function eS(N){return!!eA(N)||"cached"===N.state&&void 0!==N.staleTtl&&Math.abs(Date.now()-(N.createdAt+N.ttl))<=N.staleTtl}function e_(N){return void 0!==N.ttl&&N.createdAt+N.ttl<=Date.now()}let ek={empty:0,"must-revalidate":1,stale:2,cached:3,loading:4};function eC([,N],[,I]){let T=ek[N.state]-ek[I.state];return 0!==T?T:(N.createdAt||0)-(I.createdAt||0)}function ej(N,I){switch(N.state){case"loading":return!1;case"empty":case"must-revalidate":return!0;case"cached":return e_(N)&&!eS(N);case"stale":if(void 0!==I&&void 0!==N.ttl)return Date.now()>N.createdAt+N.ttl+I;return!1}}function eO({set:N,find:I,remove:T,clear:P}){return{"is-storage":1,set:N,remove:T,clear:P,get:async(P,D)=>{let M=await I(P,D);if(!M)return{state:"empty"};if("empty"===M.state||"loading"===M.state||"must-revalidate"===M.state)return M;if(("cached"===M.state||"stale"===M.state)&&ex(M.data),"cached"===M.state){if(!e_
859(M))return M;if(!eS(M))return await T(P,D),{state:"empty"};if(M={state:"stale",createdAt:M.createdAt,data:M.data,ttl:void 0!==M.staleTtl?M.staleTtl+M.ttl:void 0},await N(P,M,D),eE(M))return{...M,state:"must-revalidate"}}return!e_(M)||eA(M)?M:(await T(P,D),{state:"empty"})}}}let eN="function"==typeof structuredClone?structuredClone:N=>JSON.parse(JSON.stringify(N));function eI(N=!1,I=3e5,T=1024,P=36e5){function D(){return Array.from(M.data.entries()).sort(eC)}let M=eO({set:(I,P)=>{if(T&&M.data.size>=T&&(M.cleanup(),M.data.size>=T)){for(let[N]of D())if(M.data.delete(N),M.data.size<T)break}M.data.set(I,"double"===N?eN(P):P)},remove:N=>{M.data.delete(N)},find:I=>{let T=M.data.get(I);return N&&void 0!==T?eN(T):T},clear:()=>{M.data.clear()}});return M.data=new Map,M.cleanup=()=>{for(let[N,I]of D())ej(I,P)&&M.data.delete(N)},I&&(M.cleaner=setInterval(M.cleanup,I),"object"==typeof M.cleaner&&"unref"in M.cleaner&&M.cleaner.unref()),M}let eT=/^\/|\/$/g,eP=(P=({baseURL:N,url:I,method:T,params:P,data:D},M)=>(N=void 0!==N?N.replace(eT,""):"",I=void 0!==I?I.replace(eT,""):"",{url:N+(N&&I?"/":"")+I,params:P,method:T=void 0!==T?T.toLowerCase():"get",data:D,...M}),(N,I)=>{if(N.id)return N.id;let T=P(N,I);return"string"==typeof T||"number"==typeof T?`${T}`:`${J(T)}`});function eD(N,I={}){let T=N;if(T.defaults.cache)throw Error("setupCache() should be called only once");if(T.location="u"<typeof window?"server":"client",T.storage=I.storage||eI(),!ew(T.storage))throw Error("Use buildStorage() function");return T.waiting=I.waiting||new Map,T.generateKey=I.generateKey||eP,T.headerInterpreter=I.headerInterpreter||ec,T.requestInterceptor=I.requestInterceptor||ey(T),T.responseInterceptor=I.responseInterceptor||ev(T),T.debug=I.debug||function(){},T.defaults.cache={enabled:I.enabled??!0,update:I.update||{},ttl:I.ttl??3e5,methods:I.methods||["get","head"],cachePredicate:I.cachePredicate||{statusCheck:N=>[200,203,300,301,302,404,405,410,414,501].includes(N)},etag:I.etag??!0,modifiedSince:I.modifiedSince??!1===I.etag,interpretHeader:I.interpretHeader??!0,cacheTakeover:I.cacheTakeover??!0,staleIfError:I.staleIfError??!0,override:I.override??!1,hydrate:I.hydrate??void 0,vary:I.vary??!0},(I.register??!0)&&(T.interceptors.request.use(T.requestInterceptor.onFulfilled,T.requestInterceptor.onRejected),T.interceptors.response.use(T.responseInterceptor.onFulfilled,T.responseInterceptor.onRejected)),T}},55027:(N,I,T)=>{"use strict";T(37876),T(36379);T(14232)},55197:(N,I,T)=>{"use strict";T.d(I,{A:()=>cJ});var P={};T.r(P),T.d(P,{default:()=>rh,getComponentServerProps:()=>rf});var D={};T.r(D),T.d(D,{default:()=>ry,getComponentServerProps:()=>rg});var M={};T.r(M),T.d(M,{mZ:()=>rk,dX:()=>r_,u2:()=>rC});var R={};T.r(R),T.d(R,{Default:()=>rV});var L={};T.r(L),T.d(L,{Default:()=>rZ});var $={};T.r($);var F={};T.r(F),T.d(F,{Default:()=>nt,JobTitleSearch:()=>nr,getComponentServerProps:()=>ne});var B={};T.r(B);var U={};T.r(U),T.d(U,{Default:()=>na});var H={};T.r(H),T.d(H,{Default:()=>nd,getComponentServerProps:()=>nu});var z={};T.r(z);var W={};T.r(W),T.d(W,{Default:()=>nA,getComponentServerProps:()=>nx});var q={};T.r(q),T.d(q,{default:()=>nk,getComponentServerProps:()=>n_});var G={};T.r(G),T.d(G,{Default:()=>nM,StaticContactCard:()=>nD,getComponentServerProps:()=>nP});var K={};T.r(K);var V={};T.r(V),T.d(V,{default:()=>nB,getComponentServerProps:()=>nF});var Y={};T.r(Y);var J={};T.r(J),T.d(J,{Default:()=>nq,JobTitleSearch:()=>nG,getComponentServerProps:()=>nW});var Q={};T.r(Q),T.d(Q,{Default:()=>nY});var Z={};T.r(Z),T.d(Z,{Default:()=>n2});var X={};T.r(X),T.d(X,{Default:()=>n7});var ee={};T.r(ee);var et={};T.r(et),T.d(et,{default:()=>an});var er={};T.r(er);var en={};T.r(en),T.d(en,{Default:()=>ao});var ea={};T.r(ea),T.d(ea,{Default:()=>as});var ei={};T.r(ei);var eo={};T.r(eo);var es={};T.r(es);var el={};T.r(el);var ec={};T.r(ec);var eu={};T.r(eu),T.d(eu,{Default:()=>aA,getComponentServerProps:()=>ax});var ed={};T.r(ed);var ef={};T.r(ef),T.d(ef,{Default:()=>aj,getComponentServerProps:()=>aC}
859);var eh={};T.r(eh),T.d(eh,{Default:()=>aO});var ep={};T.r(ep);var em={};T.r(em),T.d(em,{Default:()=>aN});var eg={};T.r(eg);var ey={};T.r(ey),T.d(ey,{Default:()=>aD});var eb={};T.r(eb);var ev={};T.r(ev),T.d(ev,{Default:()=>aF});var ew={};T.r(ew);var ex={};T.r(ex),T.d(ex,{Default:()=>aW});var eA={};T.r(eA);var eE={};T.r(eE),T.d(eE,{Quote:()=>aG,QuoteFullWidth:()=>aq.QuoteFullWidth});var eS={};T.r(eS),T.d(eS,{Default:()=>aY,WithText:()=>aJ});var e_={};T.r(e_);var ek={};T.r(ek),T.d(ek,{Default:()=>aX});var eC={};T.r(eC),T.d(eC,{default:()=>a1});var ej={};T.r(ej),T.d(ej,{Default:()=>a3});var eO={};T.r(eO);var eN={};T.r(eN),T.d(eN,{Default:()=>a8});var eI={};T.r(eI),T.d(eI,{Default:()=>ii,OneTrustCookieList:()=>io});var eT={};T.r(eT);var eP={};T.r(eP),T.d(eP,{Default:()=>ic});var eD={};T.r(eD);var eM={};T.r(eM),T.d(eM,{Default:()=>id});var eR={};T.r(eR);var eL={};T.r(eL),T.d(eL,{Default:()=>im,getComponentServerProps:()=>ip});var e$={};T.r(e$),T.d(e$,{Default:()=>iy});var eF={};T.r(eF),T.d(eF,{Default:()=>ib});var eB={};T.r(eB);var eU={};T.r(eU);var eH={};T.r(eH),T.d(eH,{Default:()=>ix});var ez={};T.r(ez),T.d(ez,{Default:()=>ik});var eW={};T.r(eW);var eq={};T.r(eq),T.d(eq,{Default:()=>iD,List:()=>iM});var eG={};T.r(eG);var eK={};T.r(eK),T.d(eK,{default:()=>iU});var eV={};T.r(eV);var eY={};T.r(eY),T.d(eY,{default:()=>i7,getComponentServerProps:()=>i8});var eJ={};T.r(eJ);var eQ={};T.r(eQ),T.d(eQ,{Default:()=>oc,getComponentServerProps:()=>oa});var eZ={};T.r(eZ),T.d(eZ,{default:()=>od});var eX={};T.r(eX),T.d(eX,{Default:()=>om});var e0={};T.r(e0),T.d(e0,{MyButton:()=>ow});var e1={};T.r(e1),T.d(e1,{default:()=>ox});var e2={};T.r(e2),T.d(e2,{Default:()=>oE,getComponentServerProps:()=>oA});var e3={};T.r(e3),T.d(e3,{default:()=>oS});var e4={};T.r(e4);var e5={};T.r(e5),T.d(e5,{default:()=>oC});var e6={};T.r(e6),T.d(e6,{default:()=>oI,getComponentServerProps:()=>oN});var e8={};T.r(e8),T.d(e8,{default:()=>oP});var e7={};T.r(e7),T.d(e7,{Default:()=>oL,getComponentServerProps:()=>oR});var e9={};T.r(e9),T.d(e9,{Default:()=>oF,getComponentServerProps:()=>o$});var te={};T.r(te),T.d(te,{Default:()=>oU,getComponentServerProps:()=>oB});var tt={};T.r(tt),T.d(tt,{Default:()=>oz,getComponentServerProps:()=>oH});var tr={};T.r(tr),T.d(tr,{Default:()=>oV,getComponentServerProps:()=>oK});var tn={};T.r(tn),T.d(tn,{Default:()=>oJ,getComponentServerProps:()=>oY});var ta={};T.r(ta);var ti={};T.r(ti);var to={};T.r(to);var ts={};T.r(ts),T.d(ts,{Default:()=>o4});var tl={};T.r(tl);var tc={};T.r(tc),T.d(tc,{Default:()=>o8});var tu={};T.r(tu),T.d(tu,{default:()=>o7});var td={};T.r(td);var tf={};T.r(tf),T.d(tf,{Default:()=>sn});var th={};T.r(th);var tp={};T.r(tp);var tm={};T.r(tm),T.d(tm,{Banner:()=>sl,Default:()=>sc});var tg={};T.r(tg);var ty={};T.r(ty),T.d(ty,{Default:()=>sb});var tb={};T.r(tb);var tv={};T.r(tv),T.d(tv,{Default:()=>sx});var tw={};T.r(tw);var tx={};T.r(tx),T.d(tx,{Default:()=>sE});var tA={};T.r(tA),T.d(tA,{MyTHHeader:()=>sC,default:()=>sj,getComponentServerProps:()=>sk});var tE={};T.r(tE);var tS={};T.r(tS),T.d(tS,{Default:()=>sM});var t_={};T.r(t_),T.d(t_,{Default:()=>sR});var tk={};T.r(tk);var tC={};T.r(tC),T.d(tC,{Copyright:()=>sz});var tj={};T.r(tj);var tO={};T.r(tO),T.d(tO,{Default:()=>sJ,WithH3Title:()=>sQ});var tN={};T.r(tN),T.d(tN,{default:()=>sX});var tI={};T.r(tI);var tT={};T.r(tT),T.d(tT,{Default:()=>s9,getComponentServerProps:()=>s7});var tP={};T.r(tP);var tD={};T.r(tD),T.d(tD,{Default:()=>lr,EmbeddedVideo:()=>le,EmbeddedVideoFullWidth:()=>lt});var tM={};T.r(tM);var tR={};T.r(tR),T.d(tR,{Default:()=>li,HubSpotForm:()=>la});var tL={};T.r(tL),T.d(tL,{TitleContainer:()=>lm,TitleContainerFullWidth:()=>lb,TitleContainerOneColumn:()=>ly,TitleContainerThreeColumns:()=>lw,TitleContainerWithTwoColumns:()=>lv,default:()=>lx});var t$={};T.r(t$),T.d(t$,{Default:()=>lE});var tF={};T.r(tF),T.d(tF,{Default:()=>lC,getComponentServerProps:()=>l_});var tB={};T.r(tB);var tU={};T.r(tU),T.d(tU,{Default:()=>lO});var tH={};T.r(tH),T.d(tH,{default:()=>lT});var tz={};T.r(tz);var tW={};T.r(tW),T.d(tW,{Default:()=>lB,getComponentServerProps:()=>lF});var tq={};T.r(tq);var tG={};T.r(tG),T.d(tG,{Default:()=>lq,DiagonalSplit:()=>lG,default:()=>lK});var tK={};T.r(tK);var tV={};T.r(tV),T.d(tV,{Default:()=>lZ,GlobalContactCard:()=>lQ,getComponentServerProps:()=>lJ});var tY={};T.r(tY);var tJ={};T.r(tJ),T.d(tJ,{ContactCard:()=>l0,Default:()=>l1,getComponentServerProps:()=>lX});var tQ={};T.r(tQ),T.d(tQ,{Default:()=>l3});var tZ={};T.r(tZ),T.d(tZ,{CardTaskListItem:()=>l8,Default:()=>l7});var tX={};T.r(tX);var t0={};T.r(t0),T.d(t0,{Default:()=>ce});var t1={};T.r(t1);var t2={};T.r(t2),T.d(t2,{AppCard:()=>cn,Card:()=>ct,Default:()=>ci,MarketCard:()=>cr,NonClickableCard:()=>ca});var t3={};T.r(t3),T.d(t3,{default:()=>co});var t4={};T.r(t4),T.d(t4,{Default:()=>cl});var t5={};T.r(t5);var t6={};T.r(t6),T.d(t6,{Breadcrumb:()=>cu});var t8={};T.r(t8);var t7={};T.r(t7),T.d(t7,{Default:()=>cy,getComponentServerProps:()=>cg});var t9={};T.r(t9),T.d(t9,{ApplyFormTH:()=>cj,getComponentServerProps:()=>cC});var re={};T.r(re);var rt={};T.r(rt),T.d(rt,{APPLY_FORM_MOCK_EXTENDED_FIELDS:()=>cO});var rr={};T.r(rr),T.d(rr,{ApplyFormTH:()=>cj,Default:()=>cH,getComponentServerProps:()=>cU});
859var rn={};T.r(rn);var ra={};T.r(ra),T.d(ra,{Default:()=>cV,WithH3Title:()=>cY,getComponentServerProps:()=>cq});var ri=T(74218);async function ro(N){let I=N.ComponentDataOverride?JSON.parse(N.ComponentDataOverride):{};return{fetchedData:await ri.DataSettings.fetch(I||{})}}async function rs(N,I,T){let P=I?"published":"staged",D=T||ru(N,P),M="",R={},L=N.ComponentDataOverride?JSON.parse(N.ComponentDataOverride):{};try{M=await rl(D,N,P),R=await rc(L)}catch(N){console.error(N)}return{fetchedData:R,revisionFallback:P,template:M}}async function rl(N,I,T){try{let{template:I}=await ri.fetchComponent(N);return I}catch(P){throw console.error(`Fetch FEAAS component from ${N} failed. Ensure the component revision "${I.ComponentRevision||T}" is present`),P}}async function rc(N){try{return await ri.DataSettings.fetch(N||{})}catch(N){throw console.error("Fetch FEAAS component data settings failed"),N}}let ru=(N,I)=>{var T;let P=N.ComponentRevision||I,D=(null==(T=N.ComponentHostName)?void 0:T.startsWith("https://"))?N.ComponentHostName:`https://${N.
859ComponentHostName}`;return`${D}/components/${N.LibraryId}/${N.ComponentId}/${N.ComponentVersion}/${P}`};var rd=T(23041);let rf=async N=>{let I=N.params||{};return await ro(I)},rh=rd.dW;var rp=T(12130),rm=T(72914);let rg=async(N,I)=>{let T=N.params||{},P=!I.sitecore.context.pageState||I.sitecore.context.pageState===rp.IY.Normal;return await rs(T,P)},ry=rm.M;var rb=T(14232),rv=T(14990),rw=T(25602),rx=T(47804),rA=T(88847),rE=T(75984);let{UU:rS}=rx,r_=async(N,I,T,P)=>{if(!N)return rE.A.form(`${rS.MV_001}. Form was not able to render.`),"";let D=(0,rA.k)(N,I,T,P);try{rE.A.form(`Fetching form data from ${D}`);let N=await fetch(D,{method:"GET",cache:"no-cache"});if(200!==N.status)throw Error(`Failed to fetch form data. ${rS.CONTACT_SUPPORT}`);let I=await N.text();return rE.A.form(`Form data fetch response: ${I}`),I}catch(N){throw rE.A.form(`Form '${I}' was not able to render. ${rS.CONTACT_SUPPORT}`,N),N}},rk=N=>{let I=N.querySelectorAll("script");I&&Array.from(I).forEach(N=>{var I;let T=document.createElement("script");Array.from(N.attributes).forEach(N=>{T.setAttribute(N.name,N.value)}),T.text=N.text,null==(I=null==N?void 0:N.parentNode)||I.replaceChild(T,N)})},rC=(N,I,T)=>{N.addEventListener("form:engage",N=>{let{formId:T,name:P}=N.detail;T&&P&&(rE.A.form("Sending form event",T,P),(0,rw.form)(T,P,(null==I?void 0:I.replace(/-/g,""))||""))},{signal:T})};var rj=T(85609),rO=T(59764);let{UU:rN}=rx,{mZ:rI,dX:rT,u2:rP}=M,{S5:rD}=rv,rM=({params:N,rendering:I})=>{var T,P,D,M,R;let L=null==N?void 0:N.RenderingIdentifier,[$,F]=(0,rb.useState)(!1),[B,U]=(0,rb.useState)(""),H=(0,rj.M5)(),z=(0,rb.useRef)(null),W=H.page.locale,q=H.page.mode.isEditing;return((0,rb.useEffect)(()=>{var I,T,P,D;if(!B){let M=null==(T=null==(I=H.api)?void 0:I.edge)?void 0:T.clientContextId;if(!M)return void console.warn(`${rN.MV_006}. Form cannot be loaded properly on the client`);rT(M,N.FormId,null==(D=null==(P=H.api)?void 0:P.edge)?void 0:D.edgeUrl,W).then(U).catch(()=>{q&&console.error(`Failed to load form with id ${N.FormId}. Check debug logs for content-sdk:form for more details. ${rN.CONTACT_SUPPORT}`),F(!0)})}},[B,q,N.FormId,W,null==(P=null==(T=H.api)?void 0:T.edge)?void 0:P.clientContextId,null==(M=null==(D=H.api)?void 0:D.edge)?void 0:M.edgeUrl]),(0,rb.useEffect)(()=>{B&&z.current&&(z.current.innerHTML=B,rI(z.current),q||rD()||rP(z.current,I.uid))},[B,q,I.uid]),q&&$)?rb.createElement(rO.A,{message:"There was a problem loading this section"}):rb.createElement("div",{ref:z,className:null==(R=N.styles)?void 0:R.trimEnd(),id:L||void 0,lang:W||void 0})};var rR=T(92678),rL=T(92879),r$=T(63136),rF=T(37876),rB=T(34911),rU=T(23649),rH=T(48230),rz=T.n(rH),rW=T(85728),rq=T(63366),rG=T(27400),rK=T(36379);let rV=({params:N,fields:I})=>{let T=N.RenderingIdentifier,{isTablet:P}=(0,rb.useContext)(rW._t),D=[{value:I?.worldMapRegionValue?.value,caption:I?.worldMapRegionCaption?.value},{value:I?.worldMapCountriesValue?.value,caption:I?.worldMapCountriesCaption?.value},{value:I?.worldMapOfficesValue?.value,caption:I?.worldMapOfficesCaption?.value},{value:I?.worldMapPeopleTotalValue?.value,caption:I?.worldMapPeopleTotalCaption?.value}];return!I||0===Object.keys(I).length||Object.keys(I).length<22?(0,rF.jsx)(rG.$,{id:T,title:rV.name,msg:"Please add the required fields for the World Map"}):(0,rF.jsx)(rq.az,{className:"flex w-full justify-center bg-accent-pampas p-6",id:T||void 0,children:(0,rF.jsxs)(rq.az,{className:"flex w-full max-w-(--breakpoint-lg) flex-col gap-8 md:py-10 lg:py-12",children:[(0,rF.jsx)(rq.o5,{className:"z-10 md:z-0",type:"h2",plainText:I?.worldMapCaption?.value}),(0,rF.jsxs)(rq.az,{className:"relative flex size-full flex-col justify-center overflow-hidden sm:gap-8 md:flex-col-reverse lg:max-w-(--breakpoint-lg) lg:flex-row lg:justify-between lg:gap-10",children:[(0,rF.jsxs)("ul",{className:"z-10 flex flex-col gap-8 sm:h-full sm:justify-between md:z-0 md:flex-row lg:flex-col lg:justify-normal lg:gap-8",children:[D.map((N,I)=>(0,rF.jsxs)("li",{children:[(0,rF.jsx)(rq.o5,{className:"mb-0!",type:"h3",plainText:N.value}),(0,rF.jsx)(rq.o5,{className:"mb-0!",type:"h5",plainText:N.caption})]},I)),(0,rF.jsx)("li",{className:"md:hidden",children:(0,rF.jsx)(rz(),{href:I?.worldMapAllOfficesUrl?.value?.href??"",children:(0,rF.jsx)(rU.Button,{className:"h-12 [&>p]:font-medium",variant:"secondary",plainText:"View locations by region"})})})]}),(0,rF.jsxs)(rq.az,{className:"absolute w-full scale-150 sm:scale-110 md:relative md:scale-100",children:[(0,rF.jsx)(rL.WorldMapSVG,{width:"100%",height:"100%",continentClassNames:(0,rK.cn)("fill-white transition-colors duration-300 ease-in-out md:fill-accent-fiord md:hover:cursor-pointer md:hover:fill-accent-corn md:hover:stroke-brunel-dark-grey")}),(0,rF.jsxs)(rq.az,{className:"hidden md:block",children:[(0,rF.jsx)(rB.C
859ontinentInfo,{id:r$.Continents.NorthAmericaInfo,info:{title:I?.worldMapNorthAmericaCaption?.value,description:I?.worldMapNorthAmericaOfficesValue?.value,url:I?.worldMapNorthAmericaUrl?.value?.href,side:P?"right":"left"},left:"20.5%",top:"25%"}),(0,rF.jsx)(rB.ContinentInfo,{id:r$.Continents.SouthAmericaInfo,info:{title:I?.worldMapSouthAmericaCaption?.value,description:I?.worldMapSouthAmericaOfficesValue?.value,url:I?.worldMapSouthAmericaUrl?.value?.href,side:"left"},left:"31.5%",top:"62.5%"}),(0,rF.jsx)(rB.ContinentInfo,{id:r$.Continents.EuropeInfo,info:{title:I?.worldMapEuropeCaption?.value,description:I?.worldMapEuropeOfficesValue?.value,url:I?.worldMapEuropeUrl?.value?.href,side:P?"right":"left"},left:"48.5%",top:P?"24%":"26%"}),(0,rF.jsx)(rB.ContinentInfo,{id:r$.Continents.AfricaInfo,info:{title:I?.worldMapAfricaCaption?.value,description:I?.worldMapAfricaOfficesValue?.value,url:I?.worldMapAfricaUrl?.value?.href,side:"left"},left:"52.5%",top:"45%"}),(0,rF.jsx)(rB.ContinentInfo,{id:r$.Continents.AsiaInfo,info:{title:I?.worldMapAsiaCaption?.value,description:I?.worldMapAsiaOfficesValue?.value,url:I?.worldMapAsiaUrl?.value?.href,side:P?"right":"left"},left:"76.5%",top:"54%"}),(0,rF.jsx)(rB.ContinentInfo,{id:r$.Continents.MiddleEastInfo,info:{title:I?.worldMapMiddleEastCaption?.value,description:I?.worldMapMiddleEastOfficesValue?.value,url:I?.worldMapMiddleEastUrl?.value?.href,side:"right"},left:"60.5%",top:"39.5%"}),(0,rF.jsx)(rB.ContinentInfo,{id:r$.Continents.AustralasiaInfo,info:{title:I?.worldMapAustralasiaCaption?.value,description:I?.worldMapAustralasiaOfficesValue?.value,url:I?.worldMapAustralasiaUrl?.value?.href,side:"left"},left:"85%",top:"73%"})]})]})]})]})})};var rY=T(66799),rJ=T(84612),rQ=T(66419);let rZ=N=>{let I=N.params.RenderingIdentifier,[T,P]=(0,rb.useState)({});return(0,rb.useEffect)(()=>{window?.vacancyData&&P(window?.vacancyData)},[]),Object.keys(T).length>0?(0,rF.jsx)("div",{id:I||void 0,className:"flex flex-1 items-center justify-center gap-4",children:(0,rF.jsxs)("div",{className:"solid flex flex-col gap-4 border border-accent-iron p-6 [&_svg]:max-h-4 [&_svg]:min-h-4 [&_svg]:max-w-4 [&_svg]:min-w-4",children:[(0,rF.jsx)(rq.o5,{type:"h4",plainText:"Vacancy Info:"}),(0,rF.jsxs)("span",{className:"flex items-center gap-3",children:[(0,rF.jsx)(rJ.PT,{}),(0,rF.jsx)(rq.o5,{type:"small",className:"text-ui-grey",plainText:T.title})]}),(0,rF.jsxs)("span",{className:"flex items-center gap-3",children:[(0,rF.jsx)(rJ.BT,{}),(0,rF.jsx)(rq.o5,{type:"small",className:"text-ui-grey",plainText:`${T.city}, ${T.country}`})]}),(0,rF.jsxs)("span",{className:"flex items-center gap-3",children:[(0,rF.jsx)(rJ._z,{}),(0,rF.jsx)(rq.o5,{type:"small",className:"text-ui-grey",plainText:T.publicationId})]}),(0,rQ._S)(T.hoursPerWeek)&&(0,rF.jsxs)("span",{className:"flex items-center gap-3",children:[(0,rF.jsx)(rJ.O4,{}),(0,rF.jsx)(rq.o5,{type:"small",className:"text-ui-grey",plainText:`${T.hoursPerWeek} hrs per week`})]}),(0,rF.jsxs)("span",{className:"flex items-center gap-3",children:[(0,rF.jsx)(rJ.CT,{}),(0,rF.jsx)(rq.o5,{type:"small",className:"text-ui-grey",plainText:`Closing ${(0,rY.GP)(new Date(T?.endDate??new Date),"dd MMMM yyyy")}`})]})]})}):null};var rX=T(47805),r0=T(55325),r1=T(46995),r2=T(79239),r3=T(31905),r4=T(30463),r5=T(46615),r6=T(65212),r8=T(86812),r7=T(60409),r9=T(8496);let ne=async(N,I,T)=>{if((0,r3.um)(T))return{dictionary:I.dictionary};let P=N?.fields,D=P?.searchTerm?.value?.trim()??"",M=await r5.u.getAllByPage((0,rX.buildVacancyResultListGetPublicationsQuery)(P,T));return M||r6.A.ui("Failed to fetch VacancyResultList publications inside getStaticProps","debug"),{searchText:D,translations:await Promise.all((M?.publications??[]).map(async N=>{let I=await (0,r9.f)(N?.branche??"",T?.locale??r7.Xn),P=await (0,r9.f)(N?.areaOfExpertise??"",T?.locale??r7.Xn);return{...N,branche:I?.[0]?.text?.value??N.branche,areaOfExpertise:P?.[0]?.text?.value??N.areaOfExpertise}})).catch(N=>{r6.A.ui("Failed to fetch the VacancyResultList translations inside getStaticProps",N)})??null,brancheCode:(0,rX.getVacancyResultListBrancheCode)(P),context:T,dictionary:I.dictionary}},nt=N=>{let{fields:I,params:T,context:P,dictionary:D}=N,M=N?.params.RenderingIdentifier,R=P?.locale??r7.Xn,L=T.isHorizontal,$="AU"===r4.A.defaultSite,{translations:F,visibleFields:B}=(0,r0.useVacancyResultList)({fields:I,context:P,translations:N?.translations,isAuSite:$});return(0,rF.jsx)(rq.az,{className:`component ${T.styles}`,id:M||void 0,children:(0,rF.jsxs)(rq.az,{className:"max-w-(--breakpoint-lg) lg:mx-auto",children:[(0,rF.jsx)(rq.o5,{className:"mb-4",type:"h2",textField:I?.vacancyResultListTitle}),F&&F.length>0&&(0,rF.jsx)(rq.az,{className:`${L?"gap-8 md:grid md:grid-cols-4":"flex flex-col"} gap-8`,children:F.slice(0,L?4:F.length).map((N,I)=>(0,rF.jsx)(r8.L,{url:(0,r1.resolveVacancyResultUrl)(N?.title,N?.publicationId,R),title:N?.title??"",city:N?.city??"",countryName:N?.countryName??"",region:N?.region??"",locationDetail:N?.locationDetail??"",areaOfExpertise:N?.areaOfExpertise??"",branche:N?.branche??"",totalYearsOfExperience:N?.totalYearsOfExperience??1,description:N?.description??"",dictionary:D,endDate:(0,rQ.Dx)(N?.endDate??"",P?.locale??r7.Xn),hoursPerWeek:N?.hoursPerWeek,isHorizontal:L,visibleFields:B},`${N?.title}-${I}`))}),(!F||0===F.length)&&I?.vacancyResultListNoResults&&(0,rF.jsx)(rq.az,{className:"mt-4",children:(0,rF.jsx)(r2.s,{field:I.vacancyResultListNoResults})}),(0,rF.jsx)(rq.az,{className:"mt-8 w-full",children:(0,rF.jsx)(rU.Button,{linkField:I?.vacancyResultListMoreJobsLink,variant:"secondary",iconSide:"right",iconName:"arrow-right",plainText:`${D?.more} ${D?.["more-jobs"]??"[more-jobs]"}`})})]})})},nr=nt;var nn=T(22544);let na=({params:N,fields:I})=>{let T=N.RenderingIdentifier,P=I?.data?.datasource,D=P?.children?.results.slice(0,2);return P&&0!==D.length?(0,rF.jsx)(rq.az,{className:`component basis-full ${N.styles}`,id:T||void 0,children:(0,rF.jsx)(rq.az,{className:"md:grid md:grid-cols-2",children:D.map((N,I)=>(0,rF.jsx)("ul",{className:"mb-6 md:mb-0",children:N?.children?.results?.map(N=>(0,rF.jsx)("li",{className:"mb-6 last:mb-0",children:(0,rF.jsx)(nn.N,{field:N?.menuItemLink?.link,className:"text-d-h4 text-brunel-dark-grey underline decoration-2 underline-offset-4"})},N.menuItemTitle?.text?.value))},I))})}):(0,rF.jsx)(rG.$,{id:T,title:na.name,msg:"Please add some vacancy navigation items"})};var ni=T(55333),no=T(80043),ns=T(39582),nl=T(75636);let nc=N=>(0,rK.cn)("relative prose max-w-none",N?"text-ui-grey prose-headings:text-ui-grey prose-p:text-ui-grey prose-a:text-ui-grey prose-strong:text-ui-grey prose-em:text-ui-grey prose-li:text-ui-grey":"text-brunel-dark-grey prose-headings:text-brunel-dark-grey prose-p:text-brunel-dark-grey prose-a:text-brunel-dark-grey prose-strong:text-brunel-dark-grey prose-em:text-brunel-dark-grey prose-li:text-brunel-dark-grey"),nu=async(N,I,T)=>{let P=T?.params?.path?.[0]??"",D=await (0,nl.O2)(P,T?.locale);return D?{vacancyData:D,dictionary:I.dictionary}:(r6.A.ui("Failed to fetch the vacancyData while executing getStaticProps in VacancyHtmlField component"),{vacancyData:null,dictionary:I.dictionary})},nd=({params:N,fields:I,vacancyData:T,dictionary:P})=>{let D=N?.RenderingIdentifier??"",M=N?.VacancyProperty,R=N?.DisplayReadMoreButton==="1",L=T?.[M]??"",$=(0,no.qg)(L,{parseNoneClosedTags:!0,fixNestedATags:!0,closeAllByClosing:!0}),F=I?.hide?.value??!1,B=!!$.text.trim()||$.querySelectorAll("img").filter(N=>N.getAttribute("src")).length>0,[U,H]=(0,rb.useState)(!1),z=(0,ni.Cx)(),W=!z&&(0,rQ.Ho)(T?.endD
859ate),q=nc(W),G=z&&!B,K=` 860 <h3>Example HTML Preview</h3> 861 <p>This is sample text for Page Builder Editor only.</p> 862 <p>Real data will be pulled from <strong>${M??"[VacancyProperty not set]"}</strong> on the real site.</p> 863 <ul> 864 <li>Bullet one with a bit more text for realism.</li> 865 <li>Bullet two with even more text to mimic real content length.</li> 866 <li>Bullet three with descriptive wording to extend height.</li> 867 </ul> 868 <p>Additional paragraph to ensure we have enough height to demonstrate the read more behavior in preview.</p> 869 <p>This exists to appease the scroll gods; please proceed to click âRead more.â</p> 870 `,V=G?K:L,{ref:Y,isOverflowing:J}=(0,ns.b)(300),Q=R&&(J||G);return G?(0,rF.jsxs)(rF.Fragment,{children:[(0,rF.jsx)(rq.o5,{type:"h2",className:(0,rK.cn)("text-d-h3! sm:max-w-(--breakpoint-sm)",W&&"text-ui-grey"),textField:I?.vacancyFieldCaption}),(0,rF.jsxs)("div",{className:"relative mt-4 transition-all duration-300 ease-in-out",children:[(0,rF.jsx)("div",{ref:Y,className:(0,rK.cn)(q,M,!U&&Q?"max-h-75":"max-h-none","overflow-hidden border border-dashed border-gray-300 p-4"),dangerouslySetInnerHTML:{__html:V}}),Q&&(0,rF.jsxs)("div",{className:"mt-4 flex w-full justify-center",children:[!U&&(0,rF.jsx)("div",{className:"pointer-events-none absolute bottom-0 left-0 h-32 w-full bg-linear-to-t from-white via-white/90 to-transparent"}),(0,rF.jsx)(rU.Button,{onClick:()=>H(!U),variant:"tertiary",className:"relative z-10 w-full bg-white px-5 py-2 font-medium text-brunel-dark-grey",plainText:U?P?.["vacancy-segment-read-less"]??"[vacancy-segment-read-less]":P?.["vacancy-segment-read-more"]??"[vacancy-segment-read-more]",iconName:U?"arrow-up":"arrow-down",iconSide:"right"})]})]})]}):(0,rF.jsxs)(rq.az,{id:D,className:(0,rK.cn)(`component basis-full pb-12 ${N.styles}`,{hidden:F&&!B}),children:[(0,rF.jsx)(rq.az,{children:(0,rF.jsx)(rq.o5,{type:"h2",className:(0,rK.cn)("sm:max-w-(--breakpoint-sm)",W&&"text-ui-grey"),textField:I?.vacancyFieldCaption})}),(0,rF.jsxs)("div",{className:"relative transition-all duration-300 ease-in-out",children:[(0,rF.jsx)("div",{ref:Y,className:(0,rK.cn)(q,M,!U&&Q?"max-h-75":"max-h-none","overflow-hidden"),dangerouslySetInnerHTML:{__html:L}}),Q&&(0,rF.jsxs)("div",{className:"mt-4 flex w-full justify-center",children:[!U&&(0,rF.jsx)("div",{className:"pointer-events-none absolute bottom-0 left-0 h-32 w-full bg-linear-to-t from-white via-white/90 to-transparent"}),(0,rF.jsx)(rU.Button,{onClick:()=>H(!U),variant:"tertiary",className:"relative z-10 w-full bg-white px-5 py-2 font-medium text-brunel-dark-grey",plainText:U?P?.["vacancy-segment-read-less"]??"[vacancy-segment-read-less]":P?.["vacancy-segment-read-more"]??"[vacancy-segment-read-more]",iconName:U?"arrow-up":"arrow-down",iconSide:"right"})]})]})]})};var nf=T(31529),nh=T(32351),np=T(77328),nm=T.n(np),ng=T(59088),ny=T(66089),nb=T(27883),nv=T(90078),nw=T(47348);let nx=async(N,I,T)=>{let P=T?.params?.path?.[0]??"",D=I?.sitecore?.route?.fields??{},M=T?.locale??r7.Xn,R=await (0,nl.O2)(P,M);if(!R)return r6.A.ui("Failed to fetch vacancyData in VacancyHero.getComponentServerProps"),{vacancyData:null,vacancyInfo:null,context:T};let L=async N=>N?(0,r9.f)(N,M).then(N=>N?.[0]?.text?.value??""):"",$=await L(R?.branche??""),F=await L(R?.educationlevel??""),B=await L(R?.region??""),U=await L(R?.totalYearsOfExperience?.toString()??""),H=(0,nv.B)({Country:R.countryName??"",Region:B||(R.region??""),City:R.city??""},R.locationDetail),z=R.title??"",W=(0,nl.ku)(M,I.dictionary,R),q=R.seoMetaTitle?.length?R.seoMetaTitle:D?.metaTitle?.value?.toString()??`${z} | Brunel`,G=R.seoMetaDescription?.length?R.seoMetaDescription:D?.metaDescription?.value?.toString()??`${z} | Brunel`,{title:K,description:V}=(0,ny.K)(H,z,$,q,G),Y=(0,nb.J1)(I?.sitecore?.context?.pageCanonicalUrl??"",R.title,R.publicationId,M,R.publicationLanguage);return{vacancyData:R,vacancyInfo:{branch:$,educationLevel:F,region:B,totalYearsOfExperience:U,countryName:R.countryName??"",city:R.city??"",hoursPerWeek:R.hoursPerWeek??0,endDate:R.endDate??"",jobTitle:z,location:H,salary:W,title:K,description:V,canonicalUrl:Y,jobPostingData:JSON.stringify((0,nw.A)({vacancy:R,pageUrl:Y,pageName:K,pageDescription:V,language:M}))},context:T}},nA=({params:N,fields:I,vacancyData:T,vacancyInfo:P,context:D})=>{let{dictionary:M,isEditing:R,isExpired:L,heroImage:$,heroImageFocalPoint:F,isSticky:B,applicationUrl:U,vacancyQueryString:H,endDate:z,totalYearsOfExperience:W,educationLevel:q,handleApplyNowClick:G,showLocation:K,showExperience:V,showEducation:Y,showOffice:J,showEndDate:Q,clockInfoText:Z}=(0,nf.useVacancyHero)({fields:I,vacancyData:T,vacancyInfo:P,context:D}),X=(0,rF.jsx)(rU.Button,{width:"full",textClasses:"!font-semibold !text-xl",linkField:{value:{linktype:"internal",href:(0,ni.Cx)()?"Apply Now":U??"#",text:M?.["apply-now"]??"[dictionary:apply-now]",querystring:H,target:"_top"}},onClick:G});return(0,rF.jsxs)(rq.az,{id:N.RenderingIdentifier??void 0,className:`component relative w-full md:mt-0 ${N.Styles}`,children:[!R&&P?.jobPostingData&&(0,rF.jsxs)(rF.Fragment,{children:[(0,rF.jsx)(nm(),{children:(0,rF.jsx)("script",{id:"vacancy-schema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:P.jobPostingData}})}),(0,rF.jsx)(ny.j,{metaTitle:P.title,metaDescription:P.description,canonicalUrl:P.canonicalUrl,robots:L?"noindex, follow":void 0})]}),B&&!L&&(0,rF.jsx)(rq.az,{className:(0,rK.cn)("fixed top-18 left-0 z-20 w-full! flex-row items-center justify-center rounded-xs bg-accent-pampas p-4 px-0 md:p-6",N?.Styles),children:(0,rF.jsxs)(rq.az,{className:"mx-auto flex max-w-(--breakpoint-lg) items-center justify-between gap-10",children:[(0,rF.jsxs)(rq.az,{className:"flex grow basis-3/4 flex-col pl-6 lg:pl-0",children:[(0,rF.jsx)(rq.o5,{plainText:(0,ni.Cx)()?"Vacancy Title":T?.title,type:"h1",className:"text-m-4 m-0 md:mb-2 md:text-d-h3"}),(0,rF.jsxs)(rq.az,{className:"hidden items-center gap-6 md:flex",children:[K&&(0,rF.jsxs)(rq.az,{className:"flex items-center gap-3",children:[(0,rF.jsx)(rq.In,{name:"location",size:"small"}),(0,rF.jsx)(rq.o5,{type:"small",plainText:P?.location,className:"line-clamp-1 h-4 text-brunel-dark-grey"})]}),Z&&(0,rF.jsxs)(rq.az,{className:"flex items-center gap-3",children:[(0,rF.jsx)(rq.In,{name:"clock",size:"small"}),(0,rF.jsx)(rq.o5,{type:"small",plainText:Z,className:"text-brunel-dark-grey"})]}),Q&&(0,rF.jsxs)(rq.az,{className:"flex items-center gap-3",children:[(0,rF.jsx)(rq.In,{name:"calendar",size:"small"}),(0,rF.jsx)(rq.o5,{type:"small",plainText:z,className:"text-brunel-dark-grey"})]})]})]}),(0,rF.jsx)(rq.az,{className:"hidden h-12 px-6 md:mx-6 md:flex md:min-w-75 lg:mx-0 lg:min-w-87.5",children:X})]})}),(0,rF.jsxs)(rq.az,{className:"relative h-88",children:[(0,rF.jsx)(ng.Cv,{priority:!0,field:$,alt:R?"Vacancy Hero Image":T?.title||$.alt||"Vacancy Hero Image",focalPoint:F,className:(0,rK.cn)(L&&"grayscale")}
870),!R&&(0,rF.jsx)(rq.az,{className:(0,rK.cn)("absolute inset-0",L?"bg-ui-grey/70":"absolute-overlay bg-linear-to-b from-black/10 via-black/50 to-black opacity-90")})]}),(0,rF.jsx)(rq.az,{className:"absolute inset-0 mt-18 flex max-w-(--breakpoint-lg) flex-col justify-center md:mx-auto",children:(0,rF.jsxs)(rq.az,{className:"text-content mx-6 lg:mx-0",children:[L&&(0,rF.jsx)(rq.o5,{type:"large",plainText:(0,nh.t)(M,"vacancy-no-longer-active-caption"),className:"mb-2 font-medium text-accent-iron"}),(0,rF.jsx)(rq.o5,{plainText:R?"Vacancy Title":T?.title,type:"h1",className:(0,rK.cn)("m-0 text-m-h2 md:text-d-h2!",L?"text-accent-iron":"text-white")}),!L&&(0,rF.jsx)(rq.gO,{length:90,orientation:"horizontal",className:"my-4"}),R?(0,rF.jsx)(rq.o5,{type:"large",className:"text-white",plainText:"Vacancy information details will be displayed here"}):(0,rF.jsxs)(rq.az,{className:"flex flex-col gap-2",children:[K&&(0,rF.jsxs)(rq.az,{className:"flex max-h-6 items-center gap-3",children:[(0,rF.jsx)(rq.In,{color:L?"ui-grey":"white",name:"location",size:"medium"}),(0,rF.jsx)(rq.o5,{plainText:P?.location,className:(0,rK.cn)("line-clamp-1 font-medium",L?"text-ui-grey":"text-white")})]}),Z&&(0,rF.jsxs)(rq.az,{className:"flex max-h-6 items-center gap-3",children:[(0,rF.jsx)(rq.In,{color:"white",name:"clock",size:"medium"}),(0,rF.jsx)(rq.o5,{plainText:Z,className:"line-clamp-1 font-medium text-white"})]}),V&&(0,rF.jsxs)(rq.az,{className:"flex max-h-6 items-center gap-3",children:[(0,rF.jsx)(rq.In,{color:"white",name:"job",size:"medium"}),(0,rF.jsx)(rq.o5,{plainText:W,className:"line-clamp-1 font-medium text-white"})]}),Y&&(0,rF.jsxs)(rq.az,{className:"flex max-h-6 items-center gap-3",children:[(0,rF.jsx)(rq.In,{color:"white",name:"education",size:"medium"}),(0,rF.jsx)(rq.o5,{plainText:q,className:"line-clamp-1 font-medium text-white"})]}),J&&(0,rF.jsxs)(rq.az,{className:"flex max-h-6 items-center gap-3",children:[(0,rF.jsx)(rq.In,{color:"white",name:"office",size:"medium"}),(0,rF.jsx)(rq.o5,{plainText:P?.branch,className:"line-clamp-1 font-medium text-white"})]}),Q&&(0,rF.jsxs)(rq.az,{className:"flex max-h-6 items-center gap-3",children:[(0,rF.jsx)(rq.In,{color:"white",name:"calendar",size:"medium"}),(0,rF.jsx)(rq.o5,{plainText:z,className:"line-clamp-1 font-medium text-white"})]})]})]})})]})};T(19472);let nE=` 871 [&_ul]:list-disc [&_ul]:pl-5 relative [&_ul>li]:text-brunel-dark-grey [&_ul>li]:py-2 [&_p]:text-brunel-dark-grey [&_ul>li>ul>li]:pl-0 pl-4 872`,nS=` 873 [&_ul]:list-disc [&_ul]:pl-5 relative [&_ul>li]:text-ui-grey [&_ul>li]:py-2 [&_p]:text-ui-grey [&_h2]:text-ui-grey [&_h3]:text-ui-grey [&_strong]:text-ui-grey [&_ul>li>ul>li]:pl-0 pl-4 text-ui-grey 874`,n_=async(N,I,T)=>{let P=T?.params?.path?.[0]??"",D=await (0,nl.O2)(P,T?.locale);return D?{vacancyData:D,dictionary:I.dictionary}:(r6.A.ui("Failed to fetch the vacancyData while executing getStaticProps in VacancyDetails component"),{vacancyData:null,dictionary:I.dictionary})},nk=({params:N,vacancyData:I,dictionary:T})=>{let P=N?.RenderingIdentifier,D=!(0,ni.Cx)()&&(0,rQ.Ho)(I?.endDate),M=D?nS:nE,R=["introduction","description","joboffer","jobrequirements"],L={introduction:"Introduction",description:"Job description",joboffer:"Job offer",jobrequirements:"Job requirements"},$=(N,I,P)=>(0,rF.jsx)(rq.az,{className:"container-default w-full",children:(0,rF.jsxs)(rq.az,{className:"flex max-w-(--breakpoint-lg) flex-col p-6 md:flex-row md:justify-between lg:mx-auto lg:my-12 lg:px-0",children:[(0,rF.jsx)(rq.az,{className:"flex flex-1 flex-col flex-wrap pr-12",children:(0,rF.jsx)(rq.o5,{textField:{value:T?.[`vacancy-details-${N}-title`]??L[N]},type:"h2",className:(0,rK.cn)(D&&"text-ui-grey")})}),(0,rF.jsx)(rq.az,{className:"w-full md:flex md:w-3/5 md:flex-wrap xl:w-160",children:(0,rF.jsx)(rq.az,{className:(0,rK.cn)(M,N),dangerouslySetInnerHTML:{__html:I}},P)})]})},P),F=()=>R?.map((N,T)=>{let P=(0,ni.Cx)()?"Content is not visible in preview mode":I?.[N];return P?$(N,P,T):null});return(0,rF.jsx)(rq.az,{className:`basis-full border-b border-accent-iron pb-6 ${N?.styles}`,id:P||void 0,children:F()})};var nC=T(87273),nj=T(72541),nO=T(42135),nN=T(74624),nI=T(51314),nT=T(42339);let nP=async(N,I,T)=>{let P=T?.params?.path?.[0]??"",D=T?.locale??r7.Xn,M=I?.sitecore?.context?.site?.name??"",R=await (0,nl.O2)(P,D),L=R?await (0,nN.R)(R.contactName,R.contactEmail,D,M):null;return{vacancyData:R,dictionary:I.dictionary,contactPersonImage:L,locale:D,siteName:M}},nD=({params:N,fields:I,vacancyData:T,dictionary:P})=>{let D=N.RenderingIdentifier;return(0,rF.jsxs)(rq.az,{id:D||void 0,className:`flex w-full flex-1 grow flex-col gap-3 rounded-xs bg-accent-pampas p-6 md:w-75 lg:w-87.5 ${N.Styles}`,children:[(0,rF.jsxs)(rq.az,{className:"mb-6 flex flex-col gap-3",children:[(0,rF.jsx)(rq.o5,{type:"h3",className:"!mb-0 text-brunel-dark-grey",plainText:P?.["contact-card-title"]??"[contact-card-title]"}),(0,rF.jsx)(rq.o5,{type:"medium",className:"text-brunel-dark-grey",plainText:P?.["contact-card-vacancy-reference"]?.concat(`: ${T.publicationId}`)??"[contact-card-vacancy-reference]: Publication ID"})]}),I.vacancyContactCardText&&(0,rF.jsx)(rq.az,{dangerouslySetInnerHTML:{__html:I?.vacancyContactCardText?.value??""}})]})},nM=({params:N,vacancyData:I,dictionary:T,contactPersonImage:P,locale:D=r7.Xn,siteName:M=""})=>{let[R]=(0,nO.Mj)("vacancyData",""),[L,$]=(0,rb.useState)(I),[F,B]=(0,rb.useState)(P??null),U=N.RenderingIdentifier;return((0,rb.useEffect)(()=>{!I&&R&&$(R)},[I,R]),(0,rb.useEffect)(()=>
874{if((0,ni.Cx)())return;let N=L??I;N?.contactName||N?.contactEmail?(0,nN.R)(N.contactName,N.contactEmail,D,M).then(B):B(null)},[L,I,D,M]),!(0,ni.Cx)()&&(0,rQ.Ho)((L??I)?.endDate))?null:(0,rF.jsxs)(rq.az,{id:U||void 0,className:`flex w-full flex-1 grow flex-col gap-3 rounded-xs bg-accent-pampas p-6 md:w-75 lg:w-87.5 ${N.Styles}`,children:[(0,rF.jsxs)(rq.az,{className:"mb-6 flex flex-col gap-3",children:[(0,rF.jsx)(rq.o5,{type:"h3",className:"!mb-0 text-brunel-dark-grey",plainText:T?.["contact-card-title"]??"[contact-card-title]"}),(0,rF.jsx)(rq.o5,{type:"medium",className:"text-brunel-dark-grey",plainText:L?.publicationId?T?.["contact-card-vacancy-reference"]?.concat(`: ${L?.publicationId}`)??"[contact-card-vacancy-reference]: Publication ID":""})]}),(0,rF.jsxs)(rq.az,{className:"flex flex-col gap-4",children:[(0,rF.jsxs)(rq.az,{className:"flex items-center gap-4",children:[F?.src&&!(0,ni.Cx)()?(0,rF.jsx)(rq.az,{className:"size-14 shrink-0 overflow-hidden rounded-xs",children:(0,rF.jsx)(nC._,{field:{src:F.src,alt:F.alt??L?.contactName??"Recruiter"},alt:F.alt??L?.contactName??"Recruiter",width:56,height:56,className:"size-full object-cover",imageParams:nI.c,unoptimized:(0,nI.D)(F.src)})}):(0,rF.jsx)(rq.az,{className:"flex size-14 items-center justify-center rounded-xs bg-brunel-yellow",children:(0,rF.jsx)(rq.o5,{type:"large",className:"mb-0 font-medium text-brunel-dark-grey",plainText:(0,ni.Cx)()?"JD":(0,nT.NQ)(L?.contactName??"")})}),(0,rF.jsxs)(rq.az,{className:"flex min-w-0 flex-1 flex-col",children:[(0,rF.jsx)(rq.o5,{type:"medium",className:"mb-0 font-medium text-brunel-dark-grey",plainText:T?.["contact-recruiter"]??"[contact-recruiter]"}),(0,rF.jsx)(rq.o5,{type:"medium",className:"mb-0 text-brunel-dark-grey",plainText:(0,ni.Cx)()?"Recruiter Name":L?.contactName??""})]})]}),(L?.contactPhone||(0,ni.Cx)())&&(0,rF.jsxs)(rq.az,{className:"group w-fit ps-18 hover:cursor-pointer",children:[(0,rF.jsx)(rq.o5,{type:"medium",className:"mb-0 text-brunel-dark-grey",plainText:(0,ni.Cx)()?"Recruiter Phone Number":(0,nj.l)(L.contactPhone??"")?.formatInternational(),onClick:(0,ni.Cx)()?void 0:()=>{window.location.href=`tel:${L.contactPhone?.replace(/[^+\d]+/g,"")}`}}),(0,rF.jsx)("span",{className:"block h-[3px] w-0 bg-brunel-dark-grey transition-all duration-300 group-hover:w-full"})]})]}),(0,rF.jsx)(rU.Button,{variant:"alternative",width:"full",className:"h-12 !w-full justify-center",isMailLink:!0,linkField:{value:{linktype:"mailto",href:L?.contactEmail?`mailto:${L.contactEmail}?subject=${L?.publicationId?T?.["vacancy-contact-subject"]?.concat(` ${L.publicationId}`)??"":""}`:"",text:T?.["contact-recruiter-button"]??"[contact-recruiter-button]",target:"external"}}})]})};var nR=T(24081),nL=T(84471),n$=T(10409);let nF=async(N,I,T)=>{let P=T?.params?.path?.[0]??"";return{vacancyData:await (0,nl.O2)(P,T?.locale),locale:T?.locale??r7.Xn}},nB=({params:N,fields:I,vacancyData:T,locale:P})=>{let D=N?.RenderingIdentifier,{ref:M,dictionary:R,isEditing:L,isExpired:$,applicationUrl:F,vacancyQueryString:B,applyNowOnClickHandler:U}=(0,nR.useVacancyApplyButton)({fields:I,vacancyData:T,locale:P});return $?null:(0,rF.jsx)("div",{ref:M,children:(0,rF.jsxs)(n$.a,{id:D||void 0,className:(0,rK.cn)("fixed bottom-0 left-0 z-10 flex h-max w-full flex-col items-center justify-center gap-4 roun
874ded-xs bg-accent-pampas p-6 md:static md:bottom-auto md:left-auto md:mb-10 md:flex md:w-75 lg:top-0 lg:w-87.5",N?.Styles),children:[(0,rF.jsx)(n$.a,{className:"absolute top-0 left-0 z-20 h-[1px] w-full bg-white md:hidden"}),(0,rF.jsxs)(n$.a,{className:"flex flex-wrap items-center justify-center gap-3",children:[(0,rF.jsx)(rq.In,{name:"calendar",className:"min-h-4.5 min-w-4.5"}),(0,rF.jsx)(rq.o5,{type:"small",className:"text-center text-brunel-dark-grey",plainText:(0,nL.resolveVacancyEndDateLabel)(L,T?.endDate,P,R?.["vacancy-valid-until-caption"])})]}),(0,rF.jsx)(n$.a,{className:"flex w-full",children:(0,rF.jsx)(rU.Button,{width:"full",className:(0,rK.cn)("h-14"),textClasses:"!font-semibold !text-xl",linkField:{value:{linktype:"internal",href:L?"Apply Now":F??"#",text:R?.["apply-now"]??"[dictionary:apply-now]",querystring:B,target:"_top"}},onClick:U})})]})})};var nU=T(89099),nH=T(2650),nz=T(32920);let nW=async(N,I,T)=>{let P=N.fields,D=T?.params?.path?.[0]??T?.params?.id??"",M=await (0,nl.O2)(D,T?.locale),R=M?.currentLanguage??T?.locale?.split("-")?.[1]??r7.Xn,L=P?.searchTitlesOnly?.value??!1,$=P?.searchTerm?.value?.trim()??M?.title??"",F=await r5.u.getAllByPage({page:1,pageSize:4,countryPreset:M?.country?[M.country]:P?.countryPreset??[],businessLineFilter:M?.businessLine?[M.businessLine]:P?.businessLines??[],searchText:$,searchTitlesOnly:L,language:R}),B=M?.branche??"",U=await (0,r9.f)(B,T?.locale??r7.Xn),H=U?.[0]?.name?.value,z=F?.publications?.filter(N=>N?.publicationId!==M?.publicationId).slice(0,4),W=z?.sort((N,I)=>{let T=Date.parse(N.startDate??"");return Date.parse(I.startDate??"")-T});return F?.publications||r6.A.ui("Failed to fetch the search data on Related Vacancies component","debug"),{relatedJobs:W??null,branche:B,brancheName:H,context:T}},nq=({params:N,relatedJobs:I,context:T,fields:P,brancheName:D})=>{let M=N.RenderingIdentifier,R=(0,nH.s9)().table(T?.locale??r7.Xn),L=P?.relatedVacanciesAllJobsCaption,$=P?.relatedVacanciesTitle??"",F=(0,nU.useRouter)(),[B,U]=(0,rb.useState)(""),H=P?.vacancyFieldsToDisplay??[];return((0,rb.useEffect)(()=>{{let N=new URL(window.location.href);U(`${N?.origin}/${T.locale}/`)}},[F]),I?.length)?(0,rF.jsx)(rq.az,{className:`w-full bg-ui-light-grey p-6 py-12 lg:my-0 ${N.styles}`,id:M||void 0,children:(0,rF.jsxs)(rq.az,{className:"md:mx-auto md:max-w-(--breakpoint-lg)",children:[(0,rF.jsxs)(rq.az,{className:"flex items-center justify-between md:mx-6 lg:mx-0",children:[(0,rF.jsx)(rq.o5,{type:"h2",plainText:$}),(0,rF.jsx)(rq.o5,{type:"h4",className:"hidden cursor-pointer uppercase md:ml-auto md:block",linkField:{value:{href:`${B}jobs/${D}`,text:L||"all related jobs"}}})]}),(0,rF.jsxs)(rq.az,{className:"rounded-xs md:mx-6 md:grid md:grid-cols-4 md:gap-3 lg:mx-0 xl:gap-6",children:[I?.map((N,I)=>{let P=N.title??"",D=N.endDate??"",M=N.city??"",L=N.hoursPerWeek,$=N.countryName,F=`/jobs/${N.title?.toSlug(T.locale)}-${N.publicationId?.toLowerCase()}`;return(0,rF.jsx)(nz.$,{vacancyLink:{value:{href:F}},vacancyTitle:{value:P},vacancyEndDate:{value:(0,rQ.Dx)(D,T?.locale??"",R)},vacancyLocation:{value:`${M}, ${$}`},weeklyWorkHours:{value:(0,rQ.wL)(L,R)},vacancyFieldsToDisplay:H},`${N.accountId}-${I+1}`)}),(0,rF.jsx)(rq.o5,{type:"h4",className:"px-2 py-8 uppercase md:hidden md:px-6",linkField:{value:{href:`${B}jobs/${D}`,text:L||""}}})]})]})}):(0,rF.jsx)(rG.$,{id:M,title:"Related Vacancies",msg:"Please configure the related vacancies component"})},nG=nq;var nK=T(40163);let nV=N=>{let I=N.id;return(0,rF.jsx)(rq.az,{className:`component title ${N.styles}`,id:I||void 0,children:(0,rF.jsx)(rq.az,{className:"component-content",children:(0,rF.jsx)(rq.az,{className:"field-title",children:N.children})})})},nY=N=>{let I=N.fields?.data?.datasource||N.fields?.data?.contextItem,{page:T}=(0,rj.M5)(),[P,D]=(0,rb.useState)(I?.field?.jsonValue||{}),M={value:{href:I?.url?.path,title:I?.field?.jsonValue?.value}};return!T.mode.isNormal&&(M.value.querystring=`sc_site=${I?.url?.siteName}`,P?.value||(D({...P,value:"Title field"}),M.value.href="#")),(0,rF.jsx)(nV,{styles:N.params.styles,id:N.params.RenderingIdentifier,children:(0,rF.jsx)(rF.Fragment,{children:T.mode.isEditing?(0,rF.jsx)(nK.E,{field:P}):(0,rF.jsx)(nn.N,{field:M,children:(0,rF.jsx)(nK.E,{field:P})})})})};var nJ=T(75042),nQ=T(95121),nZ=T(67561),nX=T(99742);let n0="www.brunel.net",n1=N=>N?.url?.url?N.url.url:N?.url?.path?`https://${nX.env.SITEMAP_HOSTNAME??n0}${N.url.path}`:"",n2=({fields:N})=>
874{let{page:I}=(0,rj.M5)();if(I.layout.sitecore.route?.templateId?.toUpperCase()!==nQ.a$.OFFICE_OVERVIEW_PAGE)return null;let T=I.layout.sitecore.context?.pageCanonicalUrl,P=N?.data?.datasource?.officeCardsData?.officeData??[];if(!T||0===P.length)return null;let D=(0,nJ.U)({listId:`${T}#offices`,name:"Brunel Offices",offices:P.map(N=>({name:N.office?.item?.officeName?.value?.trim()??"",url:n1(N)})).filter(N=>N.name&&N.url)});return(0,rF.jsx)(nZ.s,{schemas:[D]})};var n3=T(48226),n4=T(85464),n5=T(84799);let n6=N=>N?.region?.targetItems?.[0]?.title?.value??"",n8=N=>N?.image?.jsonValue?.value?.src??"",n7=({fields:N})=>{let{page:I}=(0,rj.M5)(),T=(0,n4.p)(I.layout.sitecore.context);if(I.layout.sitecore.route?.templateId?.toUpperCase()!==nQ.a$.OFFICES_PAGE)return null;let P=I.layout.sitecore.context?.pageCanonicalUrl,D=N?.data?.datasource?.office?.officeData;if(!P||!D)return null;let M=(0,n3.o)({pageUrl:P,parentOrganizationId:(0,n5.I)(T),office:{officeName:D.officeName?.value,imageUrl:n8(D),phone:D.phone?.value,streetAddress:D.streetAddress?.value,city:D.city?.value,addressRegion:n6(D),postalCode:D.postalCode?.value,country:D.country?.value,latitude:D.brunelMapCentralPointLatitude?.value,longitude:D.brunelMapCentralPointLongitude?.value,openingHoursOpens:D.officeOpeningHoursOpens?.value,openingHoursCloses:D.officeOpeningHoursCloses?.value}});return(0,rF.jsx)(nZ.s,{schemas:[M]})};var n9=T(68031),ae=T(67085);let at=({fields:N})=>(0,rF.jsxs)(rF.Fragment,{children:[(0,rF.jsx)(rq.o5,{type:"h3",className:"text-brunel-dark-grey",textField:N.stickyTeaserTitle}),(0,rF.jsx)(rq.o5,{type:"small",className:"text-ui-grey",textField:N.stickyTeaserText}),(0,rF.jsx)(rR.Button,{variant:"primary",linkField:N.stickyTeaserCtaLink,iconName:"arrow-right",iconSide:"right"})]}),ar=({fields:N})=>(0,rF.jsxs)(rF.Fragment,{children:[(0,rF.jsxs)(rq.az,{className:"flex min-w-0 flex-1 items-center gap-3 overflow-hidden whitespace-nowrap",children:[(0,rF.jsx)(rq.o5,{type:"h5",className:"mb-0 truncate text-brunel-dark-grey",textField:N.stickyTeaserTitle}),(0,rF.jsx)(rq.o5,{type:"small",className:"mb-0 min-w-0 truncate text-ui-grey",textField:N.stickyTeaserText})]}),(0,rF.jsx)(rq.az,{className:"shrink-0",children:(0,rF.jsx)(rR.Button,{variant:"primary",linkField:N.stickyTeaserCtaLink,iconName:"arrow-right",iconSide:"right"})})]}),an=({params:N,fields:I})=>{let T=N.RenderingIdentifier,{useBottomBar:P,sidePanelPosition:D}=(0,n9.useStickyTeaserBar)();return(0,ae.resolveHasNoFields)(I)?(0,rF.jsx)(rG.$,{id:T,title:"Sticky Teaser Bar",msg:"Please add a title, text and CTA link."}):(0,rF.jsxs)(rF.Fragment,{children:[!P&&D&&(0,rF.jsx)(rq.az,{id:T,className:"fixed z-100 flex w-70 flex-col gap-4 bg-white p-6 shadow-md",style:{to
874p:D.top,left:D.left},children:(0,rF.jsx)(at,{fields:I})}),P&&(0,rF.jsx)(rq.az,{id:T,className:"fixed inset-x-0 bottom-0 z-100 bg-white py-3 shadow-[0_-4px_16px_rgba(0,0,0,0.08)]",children:(0,rF.jsx)(rq.az,{className:"mx-auto flex max-w-(--breakpoint-lg) items-center gap-4 px-4 md:px-6",children:(0,rF.jsx)(ar,{fields:I})})})]})};var aa=T(30866),ai=T(82868);let ao=({params:N,fields:I})=>{let T=N.RenderingIdentifier,P=I?.data?.datasource??{},D=P?.socialShareList?.targetItems??[],[M,R]=(0,rb.useState)("");return((0,rb.useEffect)(()=>{R(window.location.href)},[M]),!I||I&&0===Object.keys(I).length)?(0,rF.jsx)(rG.$,{id:T,title:ao.name,msg:"Please add some social share links."}):(0,rF.jsx)(rq.az,{className:`component flex flex-wrap items-center ${N.styles}`,id:T||void 0,"data-testid":ai.Qa.TestIds.SocialShareComponent.base,children:D.map((N,I)=>{let T=N?.socialShareName?.value?.trim().toLowerCase();return(0,rF.jsx)(rq.az,{className:"relative my-6 mr-8 flex size-12 rounded-xs border-2 border-brunel-dark-grey p-3 last:mr-0",children:(0,aa.b)(T,M)},I)})})},as=({rendering:N,fields:I})=>{let{RenderingIdentifier:T}=N.params,P=I?.data?.datasource,{navigationLogo:D,navigationLogoCaption:M}=P??{},R=P?.children?.results.filter(N=>"NavigationItem"===N.type),L=P?.children?.results.filter(N=>"SocialMediaNavigationHtmlSnippet"===N.type);return(0,rF.jsx)(rq.az,{id:T||void 0,className:"w-screen bg-accent-fiord",children:(0,rF.jsxs)(rq.az,{className:(0,rK.cn)("mx-auto grid grid-cols-1 md:max-w-(--breakpoint-lg) md:grid-cols-3 md:gap-6"),children:[(0,rF.jsx)(rq.az,{className:"hidden md:block",children:(0,rF.jsxs)(rq.az,{className:"border-b border-white p-6 md:border-0 xl:px-0",children:[(0,rF.jsx)(rq.az,{className:"mb-3 flex",children:D?.image?.value?(0,rF.jsx)(nC._,{field:D?.image,alt:"Social Media Logo"}):(0,rF.jsx)(rq.In,{name:"logo",alt:"logo",size:"large",color:"white"})}),(0,rF.jsx)(rq.o5,{className:"text-sm! text-white",textField:M?.text})]})}),(0,rF.jsxs)(rq.az,{className:"border-b border-white p-6 md:border-none md:px-0",children:[(0,rF.jsx)(rq.az,{children:(0,rF.jsx)(rq.o5,{className:"font-medium! text-white!",textField:P?.socialMediaNavigationCaption?.text})}),(0,rF.jsx)(rq.az,{className:"flex",children:R?.map((N,I)=>(0,rF.jsx)(rU.Button,{linkField:N?.menuItemLink?.link,variant:"tertiary",iconColor:"white",iconName:N?.menuItemIcon?.data?.value,className:(0,rK.cn)(N.menuItemStyle?.item?.value?.value,"mr-4 h-fit p-0! text-white shadow-none focus:outline-2 focus:outline-white! focus-visible:outline-white focus-visible:outline-dashed"),iconClassNames:"outline-0 hover:bg-brunel-yellow!"},N?.menuItemTitle?.text?.value+I))})]}),L?.length>0&&(0,rF.jsx)(rq.az,{className:"align-center my-4 flex px-6 md:px-0 [&_img]:w-30",children:L.map((N,I)=>(0,rF.jsx)("div",{className:"mr-4",dangerouslySetInnerHTML:{__html:N.htmlSnippetCode.html.value}},I))})]})})};var al=T(72679),ac=T(54099),au=T(73521),ad=T(69613),af=T(84758),ah=T(82826),ap=T(65558),am=T(53724),ag=T(55776),ay=T(46708),ab=T(73323),av=T(26777),aw=T(98176);let ax=async(N,I,T)=>{let P=N?.fields,D=P?.customCountryPreset??P?.countryPreset??[],M=P?.bussinessUnitPreset??[],R=P?.bussinesLines??[],L=P?.translations?.listResults?.sortByItems?.[0].key??"0",$=await r5.u.getAllByPage({page:1,pageSize:aw.dn,language:T?.locale??r7.Xn,countryPreset:D,businessUnitPreset:M,businessLineFilter:R,sortOrder:L});return $||r6.A.ui("Failed to fetch initial search data in SearchConfiguration component","debug"),{search:$??null,locale:T?.locale??r7.Xn}},aA=N=>{let I=N.params.RenderingIden,T=N?.fields,P=T?.translations?.topHero,D=T?.translations?.searchBar,M=T?.translations?.filters,R=T?.filters,L=T?.translations?.listResults,{totalCount:$,publications:F,page:B,facets:U,searchBarData:H,setSearchBarData:z,selectedFilters:W,setSelectedFilters:q,selectedFiltersTags:G,setSelectedFiltersTags:K,sideDrawerOpen:V,setSideDrawerOpen:Y,getPublicationsQuery:J,onSearch:Q,translateFacets:Z}=(0,ab.useSearchConfiguration)({fields:T,search:N?.search,searchUrl:N?.searchUrl,locale:N?.locale,listResults:L});return(0,rF.jsxs)(rq.az,{id:I||void 0,className:"flex w-full flex-col justify-center lg:pt-0","data-testid":ai.Qa.TestIds.JobsSearchComponent.base,children:[(0,rF.jsx)(ay.SearchConfigurationBar,{language:T?.currentLanguage?.split("-")?.[0]??r7.Xn,topHero:P,searchBar:D,searchBarData:H,setSearchBarData:z,getPublicationsQuery:J,onSearch:Q}),(0,rF.jsx)(rq.az,{className:"flex w-full flex-col items-center p-6 lg:py-10",
874style:{backgroundColor:"#F7F7F7"},children:(0,rF.jsxs)(rq.az,{className:"flex w-full max-w-(--breakpoint-lg) lg:gap-10",children:[(0,rF.jsx)(ap.SearchConfigurationFilters,{filters:M,facets:U,originalFacets:N?.search?.facets,filtersFacets:R,totalCount:$,getPublicationsQuery:J,sideDrawerOpen:V,setSideDrawerOpen:Y,selectedFilters:W,setSelectedFilters:q,selectedFiltersTags:G,setSelectedFiltersTags:K,translateFacets:Z}),(0,rF.jsx)(ad.SearchConfigurationResults,{language:T?.currentLanguage??r7.Xn,filters:M,listResults:L,page:B,totalCount:$,publications:F,searchBarData:H,setSearchBarData:z,getPublicationsQuery:J,setSideDrawerOpen:Y,translateFacets:Z,marketingMessage:T?.marketingMessage})]})})]})};var aE=T(42827),aS=T(98905),a_=T(43452),ak=T(7073);let aC=async(N,I,T)=>({locale:T?.locale??r7.Xn}),aj=N=>{let I=N.params.RenderingIdentifier,T=N.locale,P=N?.fields,D=P?.translations?.topHero,M=P?.translations?.searchBar,R=D?.image?.[0]?.src,L=D?.image?.[0]?.heroImageFocalPoint,{searchBarData:$,setSearchBarData:F,keywordData:B,locationData:U,updateKeywordSuggestion:H,updateLocationSuggestion:z,honeypotValue:W,setHoneypotValue:q,onSearch:G,search:K}=(0,aE.useSearchBar)({fields:P,locale:T});return(0,rF.jsxs)(rq.az,{id:I||void 0,className:"relative flex h-90 flex-1 justify-center bg-accent-fiord md:h-100 lg:h-130","data-testid":ai.Qa.TestIds.JobsSearchBarComponent.base,children:[R&&(0,rF.jsx)(nC._,{fill:!0,priority:!0,field:{src:R},alt:D?.title??"Search Bar Hero Image",srcSet:[{mw:3840},{mw:1920},{mw:1280},{mw:1024},{mw:768},{mw:640},{mw:500}],sizes:"(min-width: 3840px) 3840px, (min-width: 1920px) 1920px, (min-width: 1280px) 1280px, (min-width: 1024px) 1024px, (min-width: 768px) 768px, (min-width: 640px) 640px, 500px",className:"absolute size-full object-cover",style:{objectPosition:(0,ak.o)(L,"center top")}}),!R&&(0,ni.Cx)()&&(0,rF.jsx)(rG.$,{id:"SearchBarHero",title:"Hero Image not Defined",msg:"Please define a hero image."}),(0,rF.jsx)(rq.az,{className:"absolute size-full bg-black opacity-40"}),(0,rF.jsxs)(rq.az,{className:"relative flex h-full max-w-(--breakpoint-lg) flex-1 flex-col justify-center gap-6 px-6 md:h-full md:pt-18.5 lg:gap-4 lg:px-0",children:[(0,rF.jsx)(rq.o5,{className:"tracking-normal! text-white lg:text-[90px] lg:leading-[90px]",type:"h1",plainText:D?.title,"data-testid":ai.Qa.TestIds.General.pageTitle}),(0,rF.jsxs)(rq.az,{id:"searchBar",className:"z-10 flex h-15 flex-col rounded-lg shadow-default md:h-20 md:flex-row","data-testid":ai.Qa.TestIds.JobsSearchBarComponent.searchbar,children:[(0,rF.jsx)(a_.m,{containerClasses:"search-bar-keyword-dropdown-container",headerClasses:"search-bar-keyword-dropdown-header",contentClasses:"search-bar-keyword-dropdown-content",iconNameLeft:"search",iconLeftClasses:"bg-brunel-dark-grey",title:M?.keyword?.title??"[keyword title]",placeholder:M?.keyword?.placeholder??"[keyword placeholder]",value:$.keyword,boldMatchValue:!0,data:B,onChange:N=>{F({...$,keyword:N}),H(N)},onSelect:N=>{F({...$,keyword:N}),H(N)},onDelete:()=>{F({...$,keyword:""})},onEnter:G}),(0,rF.jsx)("input",{type:"text",name:"a3f9e21c-6b84-4f10-9d27-8c5e0b1a4f93",value:W,onChange:N=>q(N.target.value),tabIndex:-1,autoComplete:"off","aria-hidden":"true",className:"absolute size-0 overflow-hidden opacity-0"}),(0,rF.jsx)(a_.m,{containerClasses:"search-bar-location-dropdown-container hidden md:block",headerClasses:"search-bar-location-dropdown-header",contentClasses:"search-bar-location-dropdown-content",iconNameLeft:"location",iconLeftClasses:"bg-brunel-dark-grey",title:M?.location?.title??"[location title]",placeholder:M?.location?.placeholder??"[location placeholder]",value:$.location,boldMatchValue:!0,data:U,onChange:N=>{F({...$,location:N}),z(N)},onSelect:N=>{F({...$,location:N}),z(N)},onDelete:()=>{F({...$,location:""})},onEnter:G}),(0,rF.jsx)(a_.m,{containerClasses:"search-bar-distance-dropdown-container hidden md:block",headerClasses:"search-bar-distance-dropdown-header",contentClasses:"search-bar-distance-dropdown-content",iconNameRight:"chevron-down",iconLeftClasses:"bg-brunel-dark-grey",title:M?.distance?.title??"[distance title]",value:$.distance.concat(" ").concat(M?.distances?.defaultUnit??""),data:M?.distances?.valueOptions,onSelect:N=>F({...$,distance:N})}),(0,rF.jsx)(rq.az,{className:"z-10 md:flex md:h-20 md:rounded-r-sm md:border-ui-grey md:bg-white md:p-4 md:pl-6",children:(0,rF.jsx)(rU.Button,{id:"SearchBarButton",className:"h-12 w-full lg:w-37.5",iconSide:"right",iconName:"arrow-right",variant:"primary",background:"grey",plainText:M?.searchButtonLabel??"[search button label]",onClick:K})})]})]})]})},aO=N=>{let I=N.fields&&(0,rF.jsx)(r2.s,{field:N.fields.Text}),T=N.params.RenderingIdentifier;return(0,rF.jsx)(rF.Fragment,{children:I&&(0,rF.jsx)(rq.az,{className:`component rich-text ${N.params.styles??""}`.trimEnd(),id:T||void 0,children:(0,rF.jsx)(rq.az,{className:"component-content",children:I})})})},aN=N=>null;var aI=T(34647),aT=T(52175),aP=T(69755);let aD=({params:N,fields:I})=>{let T=I,P=(T?.eventsListToDisplay??[]).map(N=>{let I={id:N.id,name:N.name,url:{path:N.url},displayName:N.displayName,previewTitle:N.fields?.previewTitle,previewText:N.fields?.previewText,previewIntro:N.fields?.previewIntro,previewImage:N.fields?.previewImage,eventHeroImage:N.fields?.eventHeroImage,eventHeroPublicationDate:N.fields?.eventHeroPublicationDate,eventHeroPublicationEndDate:N.fields?.eventHeroPublicationEndDate,eventLocationName:N.fields?.eventLocationName,brunelMapCe
874ntralPointLatitude:N.fields?.brunelMapCentralPointLatitude,brunelMapCentralPointLongitude:N.fields?.brunelMapCentralPointLongitude,blogHeroCategory:{}};return(0,aP.h)(I,N),I}),D=N.RenderingIdentifier,M=P.length>0;return T?M?(0,rF.jsxs)(rq.az,{id:D||void 0,className:"flex w-full max-w-(--breakpoint-lg) flex-col",children:[(0,rF.jsxs)(rq.az,{className:"flex items-center justify-between",children:[(0,rF.jsx)(nK.E,{field:T.relatedEventsTitle,className:"mb-0! max-w-[70%]",tag:"h2"}),(0,rF.jsx)(nn.N,{field:T.relatedEventsSeeMoreLink,className:"mb-0! font-medium tracking-[1.5px] text-brunel-dark-grey uppercase"})]}),(0,rF.jsx)(aT.RelatedEventsResultCardList,{results:P})]}):(0,rF.jsx)(rG.$,{id:D,title:"Related Events",msg:"Please add events to the Events List To Display field."}):(0,rF.jsx)(rG.$,{id:D,title:"Related Events",msg:"Please configure the 'Related Events' component"})};var aM=T(60194),aR=T(57661),aL=T(32705),a$=T(29511);let aF=({params:N,fields:I})=>{let T=I,{resultList:P,showStatic:D}=(0,aL.useRelatedCaseStudies)(T),M=N.RenderingIdentifier;return T?D?(0,rF.jsxs)(rq.az,{id:M||void 0,className:"flex w-full max-w-(--breakpoint-lg) flex-col",children:[(0,rF.jsxs)(rq.az,{className:"flex items-center justify-between",children:[(0,rF.jsx)(nK.E,{field:T.relatedArticlesTitle,className:"mb-0! max-w-[70%]",tag:"h2"}),(0,rF.jsx)(nn.N,{field:T.relatedArticlesSeeMoreLink,className:"mb-0! font-medium tracking-[1.5px] text-brunel-dark-grey uppercase"})]}),(0,rF.jsx)(aM.RelatedCaseStudiesResultCardList,{results:P})]}):(0,rF.jsx)(rG.$,{id:M,title:"Related Case Studies",msg:"Please add case studies to the Case Studies List To Display field."}):(0,rF.jsx)(rG.$,{id:M,title:"Related Case Studies",msg:"Please configure the 'Related Case Studies' component"})};var aB=T(45817),aU=T(35210),aH=T(89479),az=T(95154);let aW=({params:N,fields:I})=>{let{resultList:T,showStatic:P,showDynamic:D}=(0,aH.useRelatedBlogArticles)(I),M=N.RenderingIdentifier;return I?D||P?(0,rF.jsxs)(rq.az,{id:M||void 0,className:"flex w-full max-w-(--breakpoint-lg) flex-col",children:[(0,rF.jsxs)(rq.az,{className:"flex items-center justify-between",children:[(0,rF.jsx)(nK.E,{field:I?.relatedArticlesTitle,className:"mb-0! max-w-[70%]",tag:"h2"}),(0,rF.jsx)(nn.N,{field:I?.relatedArticlesSeeMoreLink,className:"mb-0! font-medium tracking-[1.5px] text-brunel-dark-grey uppercase"})]}),(0,rF.jsx)(aB.RelatedBlogResultCardList,{results:T})]}):(0,rF.jsx)(rG.$,{id:M,title:"Related Articles",msg:"Please add a static pages to the Page List field or configure categories in the Category Filter field "}):(0,rF.jsx)(rG.$,{id:M,title:"Related Articles",msg:"Please configure the 'Related Article' component"})};var aq=T(43402);let aG=({params:N,fields:I})=>{let T=N.RenderingIdentifier;return!I||I&&0===Object.keys(I).length?(0,rF.jsx)(rG.$,{id:T,title:aG.name,msg:"Please add a Quote text, image, name and role."}):(0,rF.jsx)(rq.az,{id:T||void 0,className:"h-min w-full bg-white",children:(0,rF.jsxs)(rq.az,{className:"speech-bubble mb-26.5 min-h-80 w-full bg-accent-spring-wood p-6 sm:p-8",children:[(0,rF.jsx)(rq.o5,{type:"large",className:"before:content-['â'] after:content-['â'] sm:max-w-(--breakpoint-sm)",textField:I?.quoteText}),(0,rF.jsxs)(rq.az,{className:"absolute top-[calc(100%+53px)] left-[calc(16%+100px)] flex max-h-15 items-center gap-4",children:[(I.quoteImage&&Object.keys(I.quoteImage.value).length>0||(0,ni.Cx)())&&(0,rF.jsx)(nC._,{field:I.quoteImage,alt:"Quote",className:"size-15 rounded-full"}),(0,rF.jsxs)(rq.az,{children:[(0,rF.jsx)(rq.o5,{type:"large",className:"sm:max-w-(--breakpoint-sm)",textField:I?.quoteName}),(0,rF.jsx)(rq.o5,{type:"large",className:"sm:max-w-(--breakpoint-sm)",textField:I?.quoteRole})]})]})]})})};var aK=T(93639);let aV=N=>(0,rF.jsx)(rq.az,{className:`component promo ${N.params.styles}`,children:(0,rF.jsx)(rq.az,{className:"component-content",children:(0,rF.jsx)(rq.az,{as:"span",className:"is-empty-hint",children:"Promo"})})}),aY=N=>{let I=N.params.RenderingIdentifier;return N.fields?(0,rF.jsx)(rq.az,{className:`component promo ${N.params.styles}`,id:I||void 0,children:(0,rF.jsxs)(rq.az,{className:"component-content",children:[(0,rF.jsx)(rq.az,{className:"field-
874promoicon",children:(0,rF.jsx)(aK.Z,{field:N.fields.PromoIcon})}),(0,rF.jsxs)(rq.az,{className:"promo-text",children:[(0,rF.jsx)(rq.az,{children:(0,rF.jsx)(rq.az,{className:"field-promotext",children:(0,rF.jsx)(r2.s,{field:N.fields.PromoText})})}),(0,rF.jsx)(rq.az,{className:"field-promolink",children:(0,rF.jsx)(nn.N,{field:N.fields.PromoLink})})]})]})}):(0,rF.jsx)(aV,{...N})},aJ=N=>{let I=N.params.RenderingIdentifier;return N.fields?(0,rF.jsx)(rq.az,{className:`component promo ${N.params.styles}`,id:I||void 0,children:(0,rF.jsxs)(rq.az,{className:"component-content",children:[(0,rF.jsx)(rq.az,{className:"field-promoicon",children:(0,rF.jsx)(aK.Z,{field:N.fields.PromoIcon})}),(0,rF.jsxs)(rq.az,{className:"promo-text",children:[(0,rF.jsx)(rq.az,{children:(0,rF.jsx)(rq.az,{className:"field-promotext",children:(0,rF.jsx)(r2.s,{className:"promo-text",field:N.fields.PromoText})})}),(0,rF.jsx)(rq.az,{className:"field-promotext",children:(0,rF.jsx)(r2.s,{className:"promo-text",field:N.fields.PromoText2})})]})]})}):(0,rF.jsx)(aV,{...N})},aQ=` 875 flex flex-wrap flex-col md:flex-row md:flex-nowrap justify-between 876 max-w-(--breakpoint-lg) mx-auto h-fit 877`,aZ=` 878 flex justify-center items-center 879 w-[calc(50%-8px)] max-h-12 mb-4 odd:mr-2 even:ml-2 last:w-full last:mr-0! md:w-full md:odd:mr-8 md:even:mr-8 md:even:ml-0 880 grayscale 881 border border-solid border-grey-400 882 brand-logos 883`,aX=N=>{let{params:I,sitecoreContext:T,fields:P}=N,D=N.rendering.uid??"",M=T?.pageEditing,R=(P?.partnersIconsList?.length??0)>0;if(P?.partnersIconsList){if(!R)return(0,rF.jsx)(rG.$,{id:D,title:"Partners",msg:"Please add Partners using the toolbar"});let I=P.partnersIconsList.filter(N=>N?.url).map(N=>(0,rF.jsx)(rq.az,{className:aZ,children:(0,rF.jsx)(rq.az,{className:"h-14 w-auto py-2",children:(0,rF.jsx)(nC._,{className:"mb-4 h-full flex-auto justify-center object-cover px-2 grayscale last:mb-0 md:mb-0",field:{src:N.url,value:{alt:N.fields?.Alt}},editable:M,alt:"Partners List"})})},N.id));return(0,rF.jsx)(rq.az,{className:`component ${N.params.styles}`,id:D||void 0,children:(0,rF.jsxs)(rq.az,{className:(0,rK.cn)(aQ,"flex-col md:flex-row"),children:[(0,rF.jsx)(rq.az,{className:"flex w-full flex-row flex-wrap md:hidden",children:I}),(0,rF.jsx)(rq.az,{className:"hidden md:flex md:flex-1",children:I})]})})}return(0,rF.jsx)(rq.az,{className:`component ${I.styles}`,id:D||void 0,children:(0,rF.jsx)(rq.az,{className:aQ,children:(0,rF.jsx)(rq.o5,{type:"h3",plainText:"PartnersList"})})})};var a0=T(69228);let a1=N=>(0,rF.jsx)(a0.O,{name:N.rendering?.params?.sig??"",rendering:N.rendering}),a2=N=>{let I=N.id;return(0,rF.jsx)(rq.az,{className:`component content ${N.styles}`,id:I||void 0,children:(0,rF.jsx)(rq.az,{className:"component-content",children:(0,rF.jsx)(rq.az,{className:"field-content",children:N.children})})})},a3=N=>{let{page:I}=(0,rj.M5)(),T=N.params.RenderingIdentifier;if(!N.fields?.Content&&!I.layout.sitecore.route?.fields?.Content)return(0,rF.jsx)(rq.az,{className:`component content ${N.params.styles}`,id:T||void 0,children:(0,rF.jsx)(rq.az,{className:"component-content",children:(0,rF.jsx)(rq.az,{className:"field-content",children:"[Content]"})})});let P=N.fields?.Content?N.fields.Content:I.layout.sitecore.route?.fields?.Content;return(0,rF.jsx)(a2,{styles:N.params.styles,id:T,children:(0,rF.jsx)(r2.s,{field:P})})};var a4=T(69202),a5=T(55657),a6=T(71959);let a8=({fields:N})=>{let{page:I}=(0,rj.M5)(),T=(0,n4.p)(I.layout.sitecore.context),P=(0,a5.W)(N);if(!(0,a6.c)({pathname:T,pathPattern:P.organizationPathPattern,excludePathPatterns:P.organizationExcludePathPatterns}))return null;let D=(0,a4.q)(P);return(0,rF.jsx)(nZ.s,{schemas:[D]})};var a7=T(6623),a9=T(36429),ie=T(45105),it=T.n(ie),ir=T(41655);let ia=()=>(0,rF.jsx)(it(),{src:"https://privacyportalde-cdn.onetrust.com/privacy-notice-scripts/otnotice-1.0.min.js",id:"otprivacy-notice-script",strategy:"afterInteractive",children:'settings="eyJjYWxsYmFja1VybCI6Imh0dHBzOi8vcHJpdmFjeXBvcnRhbC1kZS5vbmV0cnVzdC5jb20vcmVxdWVzdC92MS9wcml2YWN5Tm90aWNlcy9zdGF0cy92aWV3cyJ9"'}),ii=({params:N,fields:I,...T})=>{let P=N?.RenderingIdentifier,D=I?.oneTrustPrivacyNoticeId?.value,{oneTrustLoaded:M,noticesLoaded:R,setNoticesLoaded:L}=(0,a7.useOneTrustPrivacyNotice)();return(0,a9.resolveHasNoFields)(I)?(0,rF.jsx)(rG.$,{id:P,title:P,msg:"Please set the OneTrust Privacy Notice ID using the content editor."}):!(0,a9.resolveHasNoFields)(I)&&(0,ni.Cx)()?(0,rF.jsx)(rG.$,{id:P,title:`You privacy notice is configured correctly with id '${D}'.`,msg:"The privacy notice text is fetched from OneTrust using scripts. In editing mode the script is disabled to prevent script errors. Please use the preview mode to see the actual content of the privacy notice."}):ir.h?(0,rF.jsxs)("div",{className:"flex flex-1 flex-col items-center",children:[(0,rF.jsx)(rq.o5,{type:"large",plainText:"OneTrust scripts are not loaded in development mode."}),(0,rF.jsx)(rq.o5,{type:"large",plainText:"To change this for testing modify devMode variable inside devMode.ts file."})]}):(0,rF.jsxs)(rq.az,{id:P||void 0,className:"onetrust-privacy-notice",...T,children:[(0,rF.jsx)(rq.az,{id:`otnotice-${D}`,className:"otnotice",children:!R&&(0,rF.jsxs)(rq.az,{className:"flex flex-1 justify-center gap-4",children:[(0,rF.jsx)("span",{className:"loading size-6"}),(0,rF.jsx)(rq.o5,{type:"large",plainText:"Loading Privacy Policy"})]})}),M&&(0,rF.jsx)(it(),{src:"https://privacyportalde-cdn.onetrust.com/privacy-notice-scripts/otnotice-1.0.min.js",id:"otprivacy-notice-script",strategy:"afterInteractive",onLoad:()=>L(!0),children:'settings="eyJjYWxsYmFja1VybCI6Imh0dHBzOi8vcHJpdmFjeXBvcnRhbC1kZS5vbmV0cnVzdC5jb20vcmVxdWVzdC92MS9wcml2YWN5Tm90aWNlcy9zdGF0cy92aWV3cyJ9"'}),R&&(0,rF.jsx)(it(),{id:P,type:"text/javascript",strategy:"afterInteractive",onLoad:()=>L(!0),children:(0,a9.buildOneTrustNoticeLoadScript)(D)})]})},io=({params:N})=>{let I=N?.RenderingIdentifier,T=(0,a7.useOneTrustLoaded)();return(0,ni.Cx)()?(0,rF.jsx)(rG.$,{id:I,title:"One Trust Cookie List'.",msg:"The cookie list is fetched from OneTrust using scripts. In editing mode the script is disabled to prevent script errors. Please use the preview mode to see the actual content of the cookie list."}):ir.h?(0,rF.jsxs)("div",{className:"flex flex-1 flex-col items-center",children:[(0,rF.jsx)(rq.o5,{type:"large",plainText:"OneTrust scripts are not loaded in development mode."}),(0,rF.jsx)(rq.o5,{type:"large",plainText:"To change this for testing modify devMode variable inside devMode.ts file."})]}):(0,rF.jsxs)(rF.Fragment,{children:[(0,rF.jsx)(rq.az,{id:"one-trust-cookie-list",children:(0,rF.jsx)(rq.az,{id:"optanon-cookie-policy"})}),T&&(0,rF.jsx)(ia,{})]})};var is=T(68894),il=T(28412);let ic=({params:N,fields:I})=>{let T=N.RenderingIdentifier,P=I?.data?.datasource?.office?.officeData;if(!I||!P||P&&0===Object.keys(P).length)return(0,rF.jsx)(rG.$,{id:T,title:ic.name,msg:"Please add latitude and longitude coordinates and a zoom value to the map."});
883let D=P?.brunelMapZoom,M=P?.brunelMapCentralPointLatitude,R=P?.brunelMapCentralPointLongitude,L=P?.brunelMapMode,$=P?.officeName,F=M?.value,B=R?.value,U=F?Number(F):NaN,H=B?Number(B):NaN,z=D?.mapZoom?.value?.value,W=z&&Number.isFinite(Number(z))?Number(z):10,q=L?.mapMode?.value?.value?.toLowerCase()??"roadmap";if(!Number.isFinite(U)||!Number.isFinite(H))return(0,rF.jsx)(rG.$,{id:T,title:ic.name,msg:"Please add latitude and longitude coordinates to the map"});let G=(0,rK.Qh)(N.Styles);return(0,rF.jsx)(rq.az,{className:`component basis-full ${G}`,id:T||void 0,children:(0,rF.jsx)(il.D,{brunelMapCentralPointLatitude:U,brunelMapCentralPointLongitude:H,brunelMapZoom:W,brunelMapType:q,officeName:$?.value,officeData:P,officeId:I?.data?.datasource?.office?.id})})};var iu=T(53301);let id=({params:N,fields:I})=>{let T=N.RenderingIdentifier,P=I?.data?.datasource?.office?.item;if(!I||!P||P&&0===Object.keys(P).length)return(0,rF.jsx)(rG.$,{id:T,title:id.name,msg:"Please add a hero image and office address information."});let D=P?.officeName,M=P?.image,R=P?.city,L=P?.postalCode,$=P?.streetAddress;return(0,rF.jsx)(rq.tk,{styledClasses:[],height:(0,iu.ol)(N?.imageSize),image:M.jsonValue,imageAlt:"Office Hero Image",className:`component ${N.styles}`,id:T||void 0,contentSlot:(0,rF.jsx)(rq.az,{className:"absolute-overlay absolute inset-0 mx-6 flex max-w-(--breakpoint-lg) flex-col items-start justify-center lg:mx-auto",children:(0,rF.jsxs)(rq.az,{className:"text-content absolute flex flex-col text-left lg:ml-6 lg:-translate-y-3 xl:ml-0",children:[(0,rF.jsx)(rq.o5,{textField:D,type:"h1",className:"mb-4 max-w-(--breakpoint-md) text-white"}),(0,rF.jsx)(rq.gO,{orientation:"horizontal",length:48}),(0,rF.jsxs)(rq.az,{className:"mt-4 inline-block text-[14px] text-white sm:text-d-body-small md:flex md:items-center md:text-d-body-large",children:[(0,rF.jsx)(rq.o5,{textField:$,type:"large",className:"inline-flex text-white"}),(0,rF.jsx)(rq.az,{className:"mx-4 my-1 inline-block size-1 bg-white md:mx-4"}),(0,rF.jsxs)(rq.az,{className:"flex",children:[(0,rF.jsx)(rq.o5,{textField:L,type:"large",className:"mr-1 text-white"}),(0,rF.jsx)(rq.o5,{textField:R,type:"large",className:"text-white"})]})]})]})})})};var ih=T(85906);let ip=async(N,I,T)=>({context:T,dictionary:I.dictionary}),im=({fields:N,params:I,dictionary:T})=>{let P=N?.data?.datasource?.office?.id,D=N?.data?.datasource?.office?.officeData,M={value:{href:`mailto:${D?.email?.value}`,linkType:"mailto"}},{handleDeobfuscation:R,obfuscatedEmail:L}=(0,rK.M_)(M);if(!N||!D||D&&0===Object.keys(D).length)return(0,rF.jsx)(rG.$,{id:P,title:im.name,msg:"Please add office contact information."});let $=D?.phone,F=D?.brunelMapCentralPointLongitude,B=D?.brunelMapCentralPointLatitude,U=`https://www.google.com/maps/dir/?api=1&origin=Current+Location&destination=${B?.value},${F?.value}`;return(0,rF.jsx)(rq.az,{className:`component container-default w-full lg:ml-auto lg:w-fit ${I.styles}`,id:P||void 0,children:(0,rF.jsx)(rq.az,{className:"w-full md:flex md:flex-wrap xl:w-160",children:(0,rF.jsxs)(rq.az,{className:"grid grid-cols-1 md:grid-cols-2 md:gap-x-10 md:gap-y-6",children:[(0,rF.jsx)(ih.i,{href:$?.value?`tel:${$?.value}
883`:"",icon:"phone",label:$?.value}),(0,rF.jsx)(ih.i,{href:`${L?.value?.href}`,onClick:R,icon:"email",label:T?.["contact-us"]}),(0,rF.jsx)(ih.i,{href:U,icon:"location",label:T?.["get-directions"]})]})})})};var ig=T(72616);let iy=({params:N,fields:I})=>{let T=N.RenderingIdentifier,P=I?.data?.datasource?.officeCardsData?.officeData;return I&&P?.length?(0,rF.jsx)(rq.az,{className:`component -mx-6 flex flex-col md:gap-6 ${N.styles}`,id:T||void 0,children:P.map(N=>{if(!N?.office?.item)return(0,rF.jsx)(rG.$,{id:T,title:iy.name,msg:"Please add one ore more offices"},T);let I=N?.office,P=N?.url,D=I?.item,M=D?.image,R=D?.city,L=D?.streetAddress,$=D?.postalCode;return(0,rF.jsx)(ig.p,{url:P.path,image:M.jsonValue,city:R,streetAddress:L,postalCode:$},N?.id)})}):(0,rF.jsx)(rG.$,{id:T,title:iy.name,msg:"Please add one or more offices"})},ib=({params:N,fields:I})=>{let T=N.RenderingIdentifier,P=I?.data?.datasource?.officeCardsData?.officeData??[];if(!I||!P.length)return(0,rF.jsx)(rG.$,{id:T,title:ib.name,msg:"Please add latitude and longitude coordinates and a zoom value to the map."});let D=P[0]?.office?.item,M=D?.brunelMapCentralPointLatitude?.value,R=D?.brunelMapCentralPointLongitude?.value,L=M?Number(M):NaN,$=R?Number(R):NaN;if(!Number.isFinite(L)||!Number.isFinite($))return(0,rF.jsx)(rG.$,{id:T,title:ib.name,msg:"Please add latitude and longitude coordinates to the map"});let F=3,B="ROADMAP",U=(0,rK.Qh)(N.Styles);return(0,rF.jsx)(rq.az,{className:`component container-default group w-full scroll-mt-18 has-[.hidden-content]:hidden ${U}`,id:T||void 0,children:(0,rF.jsx)(il.D,{brunelMapCentralPointLatitude:L,brunelMapCentralPointLongitude:$,brunelMapZoom:F,brunelMapType:B,markers:P})})};var iv=T(10553),iw=T(3721);let ix=({params:N,fields:I})=>{let{data:T,update:P}=(0,iv.useSession)(),D=T?.user?.firstLogin,M=I?.embeddedVideoUrl.value,R=N.RenderingIdentifier,[L,$]=(0,rb.useState)(!1);(0,rb.useEffect)(()=>{D&&$(!0)},[D]);let F=async()=>{try{let N=await fetch("/api/users/updateuserlogin",{method:"PUT",headers:{"Content-Type":"application/json"}});if($(!1),!N.ok)throw Error("Failed to update user login");await P({user:{...T?.user,firstLogin:!1}})}catch(N){console.error(N)}};if((0,ni.Cx)())return(0,rF.jsx)(rG.$,{id:R,title:ix.name,msg:"Please set title and video url properties."});let B=(0,rK.Qh)(N.Styles);return(0,rF.jsx)(iw.l,{open:L,children:(0,rF.jsxs)(rq.az,{className:`component ${B} relative mx-auto w-full max-w-(--breakpoint-lg) p-0`,id:R||void 0,children:[(0,rF.jsx)("button",{onClick:()=>void F(),className:"absolute -top-4 -right-4 z-10 flex h-8 w-8 cursor-pointer items-center justify-center rounded-full border-3 border-white bg-black font-bold text-white",children:"X"}),(0,rF.jsx)(rq.L9,{src:M})]})})};var iA=T(20934),iE=T(67914),iS=T(83828);let i_=async(N,I)=>{let T=await r5.u.getAllByPage({page:1,searchText:I??"",pageSize:4,language:N,countryFilter:[(0,iS.KM)(N)]});return T?T.publications:[]},ik=({page:N,params:I})=>{let{data:T}=(0,iE.I)({queryKey:["placements"],queryFn:async()=>(0,iA.fetchPlacements)(N.layout.session),enabled:!!N.layout.session}),{data:P}=(0,iE.I)({queryKey:["referral-publications"],queryFn:async()=>i_(N.locale??r7.Xn,T?.[0]?.jobTitle||""),enabled:!!T}),D=I.RenderingIdentifier,M=(0,rK.Qh)(I?.Styles),R=N.locale??r7.Xn,{dictionary:L}=N.layout;return(0,ni.Cx)()?(0,rF.jsx)(rG.$,{id:D,title:"Referral Vacancies",msg:"Please set title and vacancy properties."}):(0,rF.jsx)(n$.a,{className:`rounded-xs md:mx-6 md:grid md:grid-cols-3 md:gap-3 lg:mx-0 xl:grid-cols-4 xl:gap-6 ${M}`,children:P?.map((N,I)=>{let T=`/jobs/${N.title?.toSlug(R)}-${N.publicationId?.toLowerCase()}`;return(0,rF.jsx)(nz.$,{vacancyLink:{value:{href:T}},vacancyTitle:{value:N.title??""},vacancyEndDate:{value:(0,rQ.Dx)(N.endDate??"",R??"",L)},vacancyLocation:{value:`${N.city}, ${N.countryName}`},weeklyWorkHours:{value:(0,rQ.wL)(N.hoursPerWeek,L)},shareButtonText:L?.["share-button-text"]??"[share-button-text]"},`${N.accountId}-${I+1}`)})})};var iC=T(14580),ij=T(36776),iO=T(64028),iN=T(88940),iI=T(66896),iT=T(85981);let iP=async(N,I=r7.Xn,T,P)=>{if(!N)return[];let D=(0,iT.K)(N);return(await D.getArticles({locale:I,page:T,pageSize:P})).sort((N,I)=>N.firstPublishedDate.localeCompare(I.firstPublishedDate)).reverse()},iD=({page:N,fields:I,params:T})=>{let{data:P,isPending:D}=(0,iE.I)({queryKey:["news_grid"],queryFn:async()=>iP(N.layout.session??null,M,0,3),enabled:!!N.layout.session}),M=N.locale??r7.Xn,R=N.layout.dictionary,L=(0,rK.Qh)(T?.Styles);return(0,ni.Cx)()?(0,rF.jsx)(n$.a,{className:`border border-dashed border-gray-400 p-4 text-center text-gray-500 ${L}`,children:(0,rF.jsx)(rG.$,{id:"news-id",title:"News Items",msg:"Placeholder for news component"})}):(0,rF.jsx)(iN.ArticlesGrid,{dictionary:R,locale:M,articles:P??[],isPending:D,noData:I.noDataDescription.value||"There are no messages at this time"})},iM=({page:N,fields:I,params:T})=>{let{data:P,isPending:D}=(0,iE.I)({queryKey:["news_list"],queryFn:async()=>iP(N.layout.session,M,0,10),enabled:!!N.layout.session}),M=N.locale??r7.Xn,R=N.layout.dictionary,L=(0,rK.Qh)(T?.Styles);return(0,ni.Cx)()?(0,rF.jsx)(n$.a,{className:`border border-dashed border-gray-400 p-4 text-center text-gray-500 ${L}`,children:(0,rF.jsx)(rG.$,{id:"news-id",title:"News Items",msg:"Placeholder for news component"})}):(0,rF.jsx)(iI.ArticlesList,{dictionary:R,locale:M,articles:P??[],isPending:D,noData:I.noDataDescription.value||"There are no messages at this time"})};var iR=T(41329),iL=T(29463);let i$=` 884 relative justify-between 885 p-2 my-2 font-regular z-50 text-sm 886 group flex hover:text-black hover:bg-brunel-yellow rounded-sm 887 transition transform duration-150 888`,iF=` 889 relative justify-between 890 p-2 my-2 font-small z-50 text-sm 891 group flex hover:text-black hover:underline rounded-sm 892 transition transform duration-150 893`,iB=`
894 inline-block 895 w-1.5 h-1.5 [&:nth-child(2)]:my-0 [&:nth-child(2)]:mx-2 896 bg-brunel-dark-grey 897 rounded-full 898`,iU=({page:N,fields:{data:{datasource:{children:{results:I}}}},params:T})=>{let{isOpen:P,expandedHref:D,setExpandedHref:M,router:R,userRoles:L,borderColorClass:$,shouldRenderSidebarItems:F,toggleSidebar:B,handleItemClick:U,sortedItems:H,mobileSidebarItems:z,primaryItems:W,activePortal:q,currentLanguage:G,alternativeLanguages:K,showMobileLanguageSelector:V}=(0,iR.usePrimaryMenu)({page:N,navItems:I,styles:T?.Styles});return(0,rF.jsxs)(rF.Fragment,{children:[(0,rF.jsx)(n$.a,{className:"fixed bottom-0 left-0 z-50 flex h-18.75 w-full items-center justify-between border-accent-iron bg-white shadow-xl sm:px-4 lg:hidden",children:(0,rF.jsxs)("div",{className:"flex w-full items-center justify-between gap-4",children:[(0,rF.jsx)("div",{className:"flex flex-1 items-center justify-evenly",children:W.map((N,I)=>{let T=N.menuItemLink?.link.value.href??"#",P=(0,iL.isMobileNavItemActive)(R.asPath,T);return(0,rF.jsxs)(rz(),{href:(0,iL.resolveNavHref)(T),onClick:()=>U(),target:N.menuItemLink?.link.value.linktype=="external"?"_blank":void 0,className:`relative flex h-18.75 flex-col items-center justify-center text-center transition-colors ${P?`scale-90 rounded-xl border-t-2 ${$} bg-brunel-yellow text-black`:""}`,locale:!ir.H.isProd&&void 0,prefetch:!1,children:[(0,rF.jsx)(rq.In,{name:N.menuItemIcon.data.value,size:"large"}),(0,rF.jsx)("span",{className:"mt-1 text-xs",children:N.menuItemTitle.text.value})]},I)})}),(0,rF.jsx)("button",{className:"mr-4 flex h-21.25 flex-col items-center justify-center",onClick:N=>{N.preventDefault(),N.stopPropagation(),B()},children:(0,rF.jsxs)("span",{className:"flex items-center",children:[(0,rF.jsx)("span",{className:iB}),(0,rF.jsx)("span",{className:iB}),(0,rF.jsx)("span",{className:iB})]})})]})}),(0,rF.jsx)(n$.a,{as:"aside",className:`fixed top-17.5 left-0 z-40 flex h-[calc(100vh-70px)] w-screen shrink-0 grow flex-col overflow-y-auto overscroll-contain border-r border-accent-iron bg-white pb-20 transition-transform duration-300 ease-in-out lg:w-60 ${P?"translate-x-0":"translate-x-[105%]"} mt-8 lg:mt-0 lg:translate-x-0`,children:F&&(0,rF.jsxs)(rF.Fragment,{children:[(0,rF.jsx)("nav",{id:"dashboard-nav",children:(0,rF.jsx)("ul",{id:"dashboard-nav__list",children:(P?z:H.map((N,I)=>({item:N,originalIndex:I}))).map(({item:N,originalIndex:I})=>{if((0,iL.isNavigationGroup)(N)){let T=(0,iL.filterSubMenuItems)(N,L);return 0===T.length?null:(0,rF.jsxs)("li",{className:"pr-4 pl-4",children:[(0,rF.jsx)("span",{className:"block px-2 pt-4 pb-1 text-xs tracking-widest text-brunel-dark-grey uppercase opacity-70",children:N.groupTitle.value}),(0,rF.jsx)("ul",{className:"mb-2",children:T.map((N,T)=>{let P=N.menuItemLink?.link.value,D=P?.linktype==="external",M=P?.href??"#",L=(0,iL.isDesktopNavItemActive)(R.asPath,M);return(0,rF.jsx)("li",{children:(0,rF.jsxs)(rz(),{className:`${i$} ${L?"bg-brunel-yellow":""}`,href:(0,iL.resolveNavHref)(M),onClick:()=>U(),target:D?"_blank":"_self",children:[(0,rF.jsxs)(n$.a,{as:"span",className:"flex items-center",children:[(0,rF.jsx)(rq.In,{name:N.menuItemIcon.data.value,size:"18",color:"ui-grey"}),(0,rF.jsx)(n$.a,{as:"span",className:"ml-4",children:N.menuItemTitle.text.value})]}),D&&(0,rF.jsx)(rJ.Gr,{})]})},`${I}-${T}`)})})]},`group-${I}`)}let T=N.menuItemLink?.link.value,P=T?.linktype==="external",$=T?.href??"#",F=(0,iL.filterSubMenuItems)(N,L),B=D===$,H=(0,iL.isDesktopNavItemActive)(R.asPath,$);return(0,rF.jsxs)("li",{className:"group pr-4 pl-4",children:[(0,rF.jsxs)(rz(),{id:"primary_menu_link",className:`${i$} ${H?"bg-brunel-yellow":""} ${P?"border-2 border-accent-pampas":""}`,href:(0,iL.resolveNavHref)($),onClick:N=>{F.length>0?(N.preventDefault(),M(B?null:$)):U()},target:P?"_blank":void 0,locale:!ir.H.isProd&&void 0,prefetch:!1,children:[(0,rF.jsxs)(n$.a,{as:"span",className:"flex items-center",children:[(0,rF.jsx)(rq.In,{name:N.menuItemIcon.data.value,size:"18",color:"ui-grey"}),(0,rF.jsx)(n$.a,{as:"span",className:"ml-4",children:N.menuItemTitle.text.value})]}),(0,rF.jsxs)(n$.a,{as:"span",className:"ml-auto flex items-center gap-2",children:[F.length>0&&(0,rF.jsx)(rq.In,{name:B?"chevron-up":"chevron-down",size:"small",color:"ui-grey"}),P&&(0,rF.jsx)(rJ.Gr,{})]})]}),(0,rF.jsx)("ul",{className:`overflow-hidden transition-[max-height] duration-300 ease-in-out ${B?"max-h-125":"max-h-0"}`,children:F.map((N,T)=>{let P=N.menuItemLink?.link.value,D=P?.linktype==="external",M=P?.href??"#";return(0,rF.jsx)("li",{className:"pl-4",children:(0,rF.jsx)(rz(),{className:iF,href:(0,iL.resolveNavHref)(M),onClick:()=>U(),target:D?"_blank":void 0,locale:!ir.H.isProd&&void 0,prefetch:!1,children:(0,rF.jsx)(n$.a,{as:"span",className:"flex items-center",children:(0,rF.jsx)(n$.a,{as:"span",className:"ml-8",children:N.menuItemTitle.text.value})})})},`${I}-${T}`)})})]},I)})})}),V&&G&&(0,rF.jsxs)(n$.a,{className:"mt-4 border-t border-accent-iron px-4 pt-6 pb-6 lg:hidden",children:[(0,rF.jsx)(n$.a,{className:"px-2 pb-1 text-xs tracking-widest text-brunel-dark-grey uppercase opacity-70",children:"Language"}),(0,rF.jsxs)(n$.a,{as:"ul",className:"mb-2",children:[(0,rF.jsx)(n$.a,{as:"li",children:(0,rF.jsx)(n$.a,{className:`${i$} cursor-default bg-brunel-yellow/20`,children:(0,rF.jsx)(n$.a,{as:"span",className:"flex items-center",children:(0,rF.jsx)(n$.a,{as:"span",className:"ml-4",children:G.nativeName})})})}),K.map(N=>(0,rF.jsx)(n$.a,{as:"li",children:(0,rF.jsx)(rz(),{className:iF,href:`/${N.name??r7.Xn}/${q??"mybrunel"}`,onClick:()=>U(),locale:!1,prefetch:!1,children:(0,rF.jsx)(n$.a,{as:"span",className:"flex items-center",children:(0,rF.jsx)(n$.a,{as:"span",className:"ml-4",children:N.nativeName})})})},N.name))]})]})]})})]})};var iH=T(90921),iz=T(31),iW=T(43491),iq=T(87253),iG=T(34817),iK=T(82837),iV=T(14605
898),iY=T(7111),iJ=T(67768),iQ=T(40097),iZ=T(98877),iX=T(38767),i0=T(8871),i1=T(65899),i2=T(67340),i3=T(66963),i4=T(24528);let i5=N=>{if(Array.isArray(N))return N;if(N&&"object"==typeof N){let I=N;if(Array.isArray(I.conversations))return I.conversations;if(Array.isArray(I.data))return I.data}return[]},i6=N=>N.filter(N=>!N.isDone),i8=async(N,I,T)=>{if(!(0,r3.um)(T))return{session:null,colleagues:[],conversations:[],notifications:[],dictionary:I.dictionary};let P=T?.preview?null:await (0,iZ.getServerSession)(T.req,T.res,(0,i4.vD)());if(!P)return{session:null,colleagues:[],conversations:[],notifications:[],dictionary:I.dictionary};let D=(0,iX.Q)(),M=(0,i1.A)(),[R,L]=await Promise.all([i0.r.getUserColleaguesCrm({userId:P.user.id??""}),D.getConversations({mercuryUserId:P.user.id??""})]),$=await M.getUserNotifications({email:P.user.email??""});return{session:P,colleagues:R,conversations:i5(L),notifications:$,dictionary:I.dictionary}},i7=({fields:N,dictionary:I,session:T,colleagues:P,conversations:D,notifications:M})=>{let R=(0,iJ.jE)(),[L,$]=(0,rb.useState)(null),[F,B]=(0,rb.useState)(null),[U,H]=(0,rb.useState)(M??[]),[z,W]=(0,rb.useState)(!1),q=N?.hideChatMessage?.value??!1,{data:G=[]}=(0,iE.I)({queryKey:["conversations",T?.user.id],queryFn:async()=>{let N=await fetch("/api/chat/conversations");if(!N.ok)throw Error("Failed to fetch conversations");return N.json().then(i5)},initialData:i5(D)}),K=(0,rb.useMemo)(()=>i6(U),[U]),V=(0,rb.useMemo)(()=>({type:"notifications",chatId:iY.MY_BRUNEL_CHAT_ID,otherUserId:iY.MY_BRUNEL_SENDER_ID,otherUserDisplayName:iY.MY_BRUNEL_SENDER,otherUserBusinessLine:"",hasNewMessages:K.some(N=>!N.isRead),totalMessagesCount:K.length,unreadMessagesCount:K.filter(N=>!N.isRead).length}),[K]),Y=(0,rb.useMemo)(()=>[V],[V]),J=(0,rb.useMemo)(()=>G.map(N=>({...N,type:"chat"})),[G]),Q=(0,rb.useMemo)(()=>q?Y:[...Y,...J],[J,q,Y]),Z=(0,rb.useCallback)(async(N,I=N.isDone)=>{if(!(await fetch("/api/notifications/updatenotification",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:N.userNotificationId,isDone:I,isRead:!0})})).ok)throw Error("Failed to update notification")},[]),X=(0,rb.useCallback)(()=>{let N=K.filter(N=>!N.isRead);N.length&&(H(I=>I.map(I=>N.some(N=>N.userNotificationId===I.userNotificationId)?{...I,isRead:!0}:I)),Promise.all(N.map(N=>Z(N))).catch(I=>{H(I=>I.map(I=>N.some(N=>N.userNotificationId===I.userNotificationId)?{...I,isRead:!1}:I)),console.error(I)}))},[Z,K]);(0,rb.useEffect)(()=>{q&&V&&($(null),B(V),W(!1),X())},[q,X,V]);let ee=N=>{(B(N),W(!1),"notifications"===N.type)?X():R.setQueryData(["conversations",T?.user.id],I=>(I??[]).map(I=>I.chatId===N.chatId?{...I,hasNewMessages:!1,unreadMessagesCount:0}:I))},et=(0,iQ.n)({mutationFn:async N=>(await fetch(`/api/chat/${N}/hide?mercuryUserId=${T?.user.id}`,{method:"POST"})).json(),onSuccess:(N,I)=>{N.success&&(R.setQueryData(["conversations",T?.user.id],N=>(N??[]).filter(N=>N.chatId!==I)),B(null))}}),er=(0,iQ.n)({mutationFn:async({recipient:N,message:I})=>(await fetch("/api/chat/send",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({fromDisplayName:T.user.name??"",toDisplayName:N.firstName+" "+N.lastName,toMercuryUserId:N.mercuryId??void 0,fromMercuryUserId:T?.user.id??void 0,message:I,replyToChatMessageId:null})})).json(),onSuccess:async N=>{if(N.success){await R.refetchQueries({queryKey:["conversations",T?.user.id]});let I=R.getQueryData(["conversations",T?.user.id]),P=I?.find(I=>I.chatId===N.chatId);P&&B({...P,type:"chat"})}W(!1)}}),en=async(N,I)=>{er.mutate({recipient:N,message:I})},ea=N=>{H(I=>I.map(I=>I.userNotificationId===N.userNotificationId?{...I,isRead:!0}:I)),Z(N).catch(console.error),window.open(N.url,"_blank","noopener,noreferrer")},ei=N=>{H(I=>I.map(I=>I.userNotificationId===N.userNotificationId?{...I,isDone:!0,isRead:!0}:I)),Z(N,!0).catch(I=>{H(I=>I.map(I=>I.userNotificationId===N.userNotificationId?N:I)),console.error(I)})},eo=N=>(0,rF.jsx)(rq.az,{onClick:()=>ee(N),className:`cursor-pointer border-b border-accent-iron p-4 transition hover:bg-gray-100 ${F?.type===N.type&&F?.chatId===N.chatId&&!z?"bg-gray-100":""}`,children:(0,rF.jsxs)(rq.az,{className:"flex items-center gap-3",children:[(0,rF.jsx)(i3.e,{initials:(0,nT.IM)(N.otherUserDisplayName),className:"shrink-0"}),(0,rF.jsxs)(rq.az,{className:"min-w-0 flex-1",children:[(0,rF.jsxs)(rq.az,{className:"flex items-center justify-between",children:[(0,rF.jsx)("p",{className:`truncate text-sm ${N.unreadMessagesCount>0?"font-semibold text-black":"font-normal text-gray-700"}`,children:N.otherUserDisplayName}),N.unreadMessagesCount>0&&(0,rF.jsx)("span",{className:"ml-2 shrink-0 rounded-full bg-brunel-yellow px-2 py-0.5 text-xs text-brunel-dark-grey",children:N.unreadMessagesCount})]}),(0,rF.jsxs)("p",{className:"truncate text-xs text-gray-400",children:[N.totalMessagesCount," ",1!==N.totalMessagesCount?I?.["chat-messages"]??"[chat-messages]":I?.["chat-message"]??"[chat-message]"]})]})]})},`${N.type}-${N.chatId}`);return(0,rF.jsx)("div",{className:"flex h-[calc(100vh-70px)] flex-col overflow-hidden border-accent-iron bg-white",children:(0,rF.jsxs)("div",{className:"flex flex-1 overflow-hidden",children:[(0,rF.jsx)("div",{className:`${L||F||z?"hidden md:flex":"flex"} w-full flex-col border-accent-iron bg-white md:w-1/3 md:border-r`,children:(0,rF.jsxs)(rF.Fragment,{children:[!q&&(0,rF.jsx)("div",{className:"flex items-center justify-end border-b border-accent-iron px-4 py-2",children:(0,rF.jsx)("button",{onClick:()=>{W(!0),B(null)},className:"size-10 cursor-pointer rounded-full border border-accent-iron bg-accent-pampas px-2 text-xs font-medium hover:bg-yellow-100",children:(0,rF.jsx)(rq.In,{name:"edit",size:"small"})})}),(0,rF.jsx)("div",{className:"flex-1 overflow-y-auto",children:0===Q.length?(0,rF.jsx)("p",{className:"p-6 text-center text-sm text-gray-400",children:I?.["no-conversations"]??"[no-conversations]"}):(0,rF.jsxs)(rF.Fragment,{children:[Y.length>0&&(0,rF.jsxs)("section",{children:[(0,rF.jsx)("div",{className:"border-b border-accent-iron bg-accent-pampas px-4 py-2 text-xs font-semibold text-gray-500 uppercase",children:I?.messages??"Messages"}),Y.map(eo)]}),!q&&(0,rF.jsxs)("section",{children:[(0,rF.jsx)("div",{className:"border-y border-accent-iron bg-accent-pampas px-4 py-2 text-xs font-semibold text-gray-500 uppercase",children:I?.chat??"Chat"}),J.length>0?J.map(eo):(0,rF.jsx)("p",{className:"p-4 text-sm text-gray-400",children:I?.["no-conversations"]??"[no-conversations]"})]})]})})]})}),(0,rF.jsx)("div",{className:`flex flex-1 flex-col bg-gray-50 ${L||F||z?"flex":"hidden md:flex"}`,children:z?(0,rF.jsx)(iV.default,{colleagues:P,onClose:()=>W(!1),onSend:en,isSending:er.isPending,dictionary:I}):F?.type==="notifications"?(0,rF.jsx)(iK.default,{notifications:K,onBack:()=>B(null),onCompleteNotification:ei,onOpenNotification:ea,dictionary:I}):F?(0,rF.jsx)(i2.default,{conversation:F,onHide:N=>et.mutate(N),onBack:()=>B(null),session:T,dictionary:I}):L?(0,rF.jsx)(rF.Fragment,{children:(0,rF.jsx)("div",{className:"flex items-center gap-3 p-6",children:(0,rF.jsx)("button",{onClick:()=>$(null),className:"block rounded-xl bg-accent-iron p-2 font-medium md:hidden",children:"â"})})}):(0,rF.jsxs)(rq.az,{className:"flex flex-1 flex-col items-center justify-center gap-4 p-6 text-center",children:[!q&&(0,rF.jsx)(rU.Button,{variant:"primaryrounded",onClick:()=>
898W(!0),plainText:I?.["send-new-message"]??"[send-new-message]",className:"flex items-center gap-2 rounded-full bg-brunel-yellow px-5 py-2 text-sm font-semibold transition hover:bg-brunel-yellow hover:text-white"}),!G&&(0,rF.jsx)("p",{className:"text-sm text-gray-400",children:I?.["no-messages-found"]??"[no-messages-found]"})]})})]})})};var i9=T(20528),oe=T(50122);let ot=10;function or(N){if(!N||!Array.isArray(N)||0===N.length)return"";let I=N[0];return I?.id??""}function on(N){return N&&Array.isArray(N)&&0!==N.length?N.map(N=>N.id).filter(Boolean):[]}let oa=async(N,I,T)=>{let P=N?.fields??{},D=or(P.newsFolder),M=Math.max(1,Math.min(Number(P.newsAmount?.value)||ot,100)),R=on(P.newsSites);if(!D)return{results:[],locale:T.locale??r7.Xn,dictionary:I?.dictionary};let L=I.session?.user?.roles??[],$=(0,oe.z)(L),F=await (0,oe.L)(D,M,R,$);return{results:(F?.search?.results??[]).map(N=>({...N,datePublished:{value:new Date(N.datePublished?.jsonValue?.value??"")},newsImage:{value:N.newsImage?.jsonValue?.value},newsShortDescription:{value:N.newsShortDescription?.jsonValue?.value??""}})),locale:T.locale??r7.Xn,dictionary:I?.dictionary}};function oi(N){return N.id}function oo(N){let I=new Map;for(let T of N){let N=oi(T),P=I.get(N)??[];P.push(T),I.set(N,P)}return I}function os(N,I){return N.find(N=>{let T=N.language?.name;return I("string"==typeof T?T:void 0)})}function ol(N,I){let T=("string"==typeof I?I:"").toLowerCase().split("-")[0]??"";return os(N,N=>"string"==typeof N&&N.toLowerCase()===T)??os(N,N=>!!(T.length>0&&"string"==typeof N&&N.toLowerCase().startsWith(T)))??N[0]}let oc=({results:N,locale:I,dictionary:T,fields:P,params:D})=>{let M=(0,rK.Qh)(D?.Styles),R=T?.readMore??"Read more",L=T?.readIn??"Read in:";if(!N?.length){let N=!!P?.noDataDescription;return(0,rF.jsx)(rq.az,{className:`flex w-full flex-col items-center justify-center bg-accent-pampas p-8 text-accent-fiord! ${M}`,children:N&&P?.noDataDescription?(0,rF.jsx)(r2.s,{field:P.noDataDescription,className:"prose max-w-none"}):(0,rF.jsx)(rq.az,{className:"prose max-w-none",children:(0,rF.jsx)("p",{children:"No news available."})})})}let $=Array.from(oo(N).entries());return(0,rF.jsx)(rq.az,{className:`flex flex-col gap-6 ${M}`,children:$.map(([N,T])=>{let P=ol(T,I);return(0,rF.jsx)(i9.GlobalNewsCard,{item:P,variants:T,locale:I,readMoreText:R,readInText:L},N)})})},ou=async N=>N&&N?.user?.id?await i0.r.getUserConsultantCrm({userId:N.user.id}):null,od=({page:N,params:I})=>{let{data:T}=(0,iE.I)({queryKey:["consultant_card"],queryFn:async()=>ou(N.layout.session),staleTime:3e5,enabled:!!N.layout.session}),P=(0,rK.Qh)(I?.Styles);return(0,ni.Cx)()?(0,rF.jsx)(rq.az,{className:`border border-dashed border-gray-400 p-4 text-center text-gray-500 ${P}`,children:(0,rF.jsx)(rG.$,{id:"consultant-id",title:"Consultant Card",msg:"Placeholder for consultant card component"})}):T?T&&(0,rF.jsx)(rq.az,{className:"rounded-lg border border-accent-iron bg-white p-8 shadow",children:(0,rF.jsxs)(rq.az,{className:"flex",children:[(0,rF.jsx)(i3.e,{size:"lg",initials:(0,nT.NQ)(T.fullName??"B")}),(0,rF.jsxs)(rq.az,{className:"flex flex-col pl-4",children:[(0,rF.jsx)(rq.o5,{plainText:T?.fullName??""}),(0,rF.jsx)(rq.o5,{plainText:T?.brunelOffice?.name??"",className:"mb-2 text-sm! text-accent-fiord"}),(0,rF.jsx)(rU.Button,{variant:"textOnly",linkField:{value:{text:T?.email??"Send a e-mail",href:`mailto:${T?.email}`,linktype:"internal"}}}),(0,rF.jsx)(rU.Button,{variant:"textOnly",linkField:{value:{text:T?.phone??"",href:`tel:${T?.phone}`,linktype:"internal"}}})]})]})}):null};var of=T(62467),oh=T(65825),op=T(84210);let om=({page:N,fields:I,params:T})=>{let{setToast:P}=(0,rb.useContext)(rW._t),[D,M]=(0,rb.useState)(null),[R,L]=(0,rb.useState)(!1),[$,F]=(0,rb.useState)(0),B=(0,rK.Qh)(T?.Styles),U=N.locale??r7.Xn,{dictionary:H,session:z}=N.layout,W=async N=>{if(!z?.user?.id)return void console.error("No User ID");L(!0);try{await of.U.mercuryUploadCV({mercuryId:z?.user?.id,file:N}),P({data:{title:H?.["message-success"]??"[message-success]",message:H?.["message-upload-cv-success"]??"[message-upload-cv-success]"},open:!0,type:"success"}),L(!1),M(null),F(N=>N+1)}catch(N){P({data:{title:H?.["message-error"]??"[message-error]",message:H?.["message-upload-cv-error"]??"[message-upload-cv-error]"},open:!0,type:"error"}),L(!1),r6.A.api("Error uploading CV in CVUploadElement",N)}};return(0,rF.jsxs)("div",{className:`w-full ${B}`,children:[R&&(0,rF.jsx)(iw.l,{open:R,children:(0,rF.jsx)(op.R,{messages:[H?.["message-updating"]]})}),(0,rF.jsx)(oh.z,{id:"cv-upload",locale:U,disabled:R,label:I.resumeData.value,file:{dragndroptext:I.resumeDragAndDropPlaceholder.value,acceptfiletypestext:"PDF, DOC, DOCX, RTF",choosetext:I.resumeData.value},initialFile:D??null,fileProps:{onDrop:N=>{M(N),W(N)},onDelete:()=>{M(null)}}},$)]})};var og=T(47137),oy=T(33076);let ob=` 899 flex items-center gap-2 w-max py-4 px-3 rounded-lg 900 transition-all duration-300 ease pointer 901`,ov=(0,og.F)([ob],{variants:{width:{full:"w-full"},size:{xs:"",sm:"h-6!",md:"h-10 w-32 px-2 py-0",lg:"",xl:""}
901,background:{yellow:"bg-brunel-yellow shadow-accent-corn",dark:"bg-brunel-dark-grey"},variant:{primary:"shadow-sm [&>p]:text-sm [&>p]:text-brunel-dark-grey group-hover:[&>p]:text-brunel-yellow [&>span]:bg-brunel-dark-grey",secondary:"bg-brunel-dark-grey px-2 py-0 shadow-accent-corn [&>p]:text-sm [&>p]:text-brunel-dark-grey [&>span]:bg-brunel-dark-grey",tertiary:""}},defaultVariants:{variant:"primary",size:"md"}}),ow=({linkField:N,textField:I,plainText:T,isMailLink:P,iconSide:D="right",iconName:M,iconSize:R,iconClassNames:L,className:$,textClasses:F,width:B,variant:U,background:H,onClick:z,id:W,formButton:q,disabled:G,loading:K,size:V})=>{let{page:Y}=(0,rj.M5)(),{obfuscatedEmail:J,handleDeobfuscation:Q}=(0,rK.M_)(N),Z=Y.mode.isEditing,X=(0,oy.l)(N)&&!I,ee=!!(I?.value&&!N),et=!!(T&&!N&&!I),er=N?.value?.text??(Z?"Button Placeholder Text":null),en=N=>D===N&&M&&(0,rF.jsx)(rq.In,{name:M,size:R,className:(0,rK.cn)({background:H},L)}),ea=N=>(0,rF.jsx)(rq.o5,{className:(0,rK.cn)("w-full font-medium!",F),type:"medium",textField:{value:N},plainText:N}),ei=L?.includes("icon-only")??$?.includes("icon-only");if(X||Z&&N){let I=(0,rF.jsxs)(rF.Fragment,{children:[en("left"),!ei&&ea(er),en("right")]});return(0,rF.jsxs)(rq.az,{className:(0,rK.cn)(ov({width:B,variant:U}),Z&&"[&>span]:bg-transparent"),children:[(0,rF.jsx)(nn.N,{id:W,field:P?J:N,className:(0,rK.cn)("relative flex items-center gap-2"),tabIndex:0,onClick:P?Q:z,children:I}),(0,rF.jsx)("div",{className:"absolute inset-0 origin-left scale-x-0 rounded-lg bg-gray-800 transition-all duration-300 group-hover:scale-x-100"})]})}let eo=(0,rF.jsxs)(rF.Fragment,{children:[en("left"),!$?.includes("icon-only")&&ee&&(0,rF.jsx)(rq.o5,{className:(0,rK.cn)("font-medium!",F),textField:I}),!$?.includes("icon-only")&&et&&ea(T),K&&(0,rF.jsx)("span",{className:"loading loading-md loading-spinner"}),en("right")]});return ee||Z&&I||et||ei?(0,rF.jsxs)(rq.az,{className:(0,rK.cn)(ov({background:H,size:V}),"group relative overflow-hidden rounded-lg",$),children:[(0,rF.jsx)("button",{id:W,className:(0,rK.cn)(ov({width:B,variant:U}),"relative z-10 size-full rounded font-bold",$),tabIndex:0,onClick:z,type:q?"submit":"button",disabled:G,children:eo}),(0,rF.jsx)("div",{className:"absolute inset-0 origin-left scale-x-0 rounded-lg bg-brunel-dark-grey transition-transform duration-200 ease-in-out will-change-transform group-hover:scale-x-100"})]}):null},ox=({documents:N})=>(0,rF.jsxs)("div",{children:[(0,rF.jsxs)("div",{className:"flex items-center justify-between",children:[(0,rF.jsx)("h3",{children:"Documents"}),(0,rF.jsx)(rU.Button,{plainText:"Upload",className:"h-12"})]}),(0,rF.jsx)("div",{id:"documents",className:"flex h-[calc(100vh-250px)] flex-col gap-4 overflow-x-auto md:h-auto",children:(0,rF.jsxs)("table",{className:"table",children:[(0,rF.jsx)("thead",{children:(0,rF.jsxs)("tr",{children:[(0,rF.jsx)("th",{children:"Name"}),(0,rF.jsx)("th",{colSpan:2,children:"Size"})]})}),(0,rF.jsx)("tbody",{id:"documents__table__body",className:"mb-8",children:N.map((N,I)=>(0,rF.jsxs)("tr",{className:"items-center",children:[(0,rF.jsx)("td",{children:(0,rF.jsxs)("div",{className:"flex items-center font-medium",children:[(0,rF.jsx)(rq.In,{name:N.type,useOriginalColor:!0}),(0,rF.jsx)("span",{className:"ml-4",children:N.title})]})}),(0,rF.jsx)("td",{children:(0,rF.jsxs)("span",{children:["Size: ",N.size]})}),(0,rF.jsxs)("td",{className:"align-center flex justify-end",children:[(0,rF.jsx)(rU.Button,{className:"h-12",linkField:{value:{href:N.link??"",linktype:"internal",text:"Download"}}}),(0,rF.jsx)(rU.Button,{className:"icon-only ml-4 h-12",iconName:"trash",onClick:()=>alert("Delete"+N.title)})]})]},I))})]})})]}),oA=async(N,I,T)=>{if(!(0,r3.um)(T))return{session:null,locale:T.locale,dictionary:I.dictionary};let P=I.session,D=await of.b.getMercuryDataByEmail({email:P?.user?.email??"",bearerToken:P?.user?.accessToken??""}).catch(N=>{r6.A.authMyApplications("ERROR FETCHING CANDIDATE INFO:",N)});return{applicationsData:await of.b.getApplicationsByMercuryID({mercuryId:D?.mercuryId??"",bearerToken:P?.user?.accessToken??""}).catch(N=>{r6.A.authMyApplications("ERROR FETCHING APPLICATIONS:",N)})??[],locale:T.locale,dictionary:I.dictionary}},oE=({applicationsData:N,dictionary:I})=>{let T={active:I?.["application-portal-application-status-active"]??["Active"],inactive:I?.["application-portal-application-status-inactive"]??["Inactive"]};return(0,rF.jsx)(rF.Fragment,{children:N&&N.length>0&&(0,rF.jsx)(rq.az,{className:"mb-12 grid grid-rows-2 gap-12",children:N?.map((N,P)=>(0,rF.jsxs)(rq.az,{className:"flex flex-col rounded-lg bg-white p-12 shadow-md",children:[(0,rF.jsxs)(rq.az,{className:"flex items-center justify-between",children:[(0,rF.jsxs)(rq.az,{className:"flex items-center",children:[(0,rF.jsx)("span",{className:`mr-4 inline-block size-4 rounded-full ${"Active"===N.status?"bg-green-500":"bg-red-400"}`}),(0,rF.jsx)("span",{className:"text-sm font-bold text-slate-500 uppercase",children:T[N?.status?.toLowerCase()]})]}),(0,rF.jsxs)(rq.az,{className:"text-md font-bold text-slate-400 uppercase",children:[I?.["applicant-portal-application-vacancy-id"]??"[Vacancy ID]",":",N.publicationNumber]})]}),(0,rF.jsxs)(rq.az,{className:"mt-2",children:[(0,rF.jsx)("h4",{className:"font-bold text-brunel-dark-grey",children:N.vacancy.title}),(0,rF.jsxs)("ul",{className:"text-sm",children:[N.vacancy.discipline&&(0,rF.jsxs)("li",{children:[I?.["applicant-portal-application-category"]??"[Category]",":",N.vacancy.discipline]}),N.vacancy.location&&(0,rF.jsxs)("li",{children:[I?.["applicant-portal-application-location"]??"[Location]",":",N.vacancy.location]})]})]})]},P))})})},oS=({name:N})=>(0,rF.jsxs)(rq.az,{className:"p-12",children:[(0,rF.jsxs)("h1",{className:"mb-0",children:["Welcome ",N]}),(0,rF.jsx)(rq.gO,{length:68,orientation:"horizontal"}),(0,rF.jsx)("p",{className:"mt-5",children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus nec hendrerit justo, ut imperdiet augue. Nunc ornare mauris ligula, eu pretium justo ultricies eget. Donec in nisi ac odio egestas vehicula a volutpat lectus."})]});var o_=T(29504);let ok=` 902 relative justify-between 903 p-4 font-regular z-50 text-sm 904 group flex hover:text-black hover:bg-accent-pampas rounded-lg 905 transition transform duration-150 906`;function oC({fields:{data:{datasource:{children:{results:N}}}}}){let[I,T]=(0,rb.useState)(!1),[P,D]=(0,rb.useState)(null),M=()=>{T(!I)},R=N=>{D(N),T(!1)};return(0,rF.jsxs)(rF.Fragment,{children:[(0,rF.jsx)(rq.In,{onClick:M,className:"fixed top-6 right-4 z-50 rounded-md p-2 text-white lg:hidden",name:I?"cross":"hamburger",color:"white"}),(0,rF.jsx)(rq.az,{as:"aside",className:`fixed top-17.5 left-0 z-50 h-screen shrink-0 grow bg-white pt-10 transition-transform duration-300 ease-in-out lg:w-100 ${I?"translate-x-0":"translate-x-[105%]"} w-screen lg:translate-x-0`,children:(0,rF.jsx)("nav",{id:"dashboard-nav",children:(0,rF.jsx)("ul",{id:"dashboard-nav__list",children:N?.map((N,I)=>(0,rF.jsx)("li",{id:"dashboard-nav__item",className:"group pr-4 pl-8",children:(0,rF.jsxs)(rz(),{id:"dashboard-nav__link",className:`${ok} ${P===I?"bg-accent-pampas":""}`,href:N.menuItemLink?.link.value.href??"#",onClick:()=>R(I),prefetch:!1,children:[(0,rF.jsxs)(rq.az,{as:"span",className:"flex items-center",children:[(0,rF.jsx)(rq.In,{name:N.menuItemIcon.data.value,size:"medium",color:"ui-grey"}),(0,rF.jsx)(rq.az,{as:"span",className:"ml-4",children:N.menuItemTitle.text.value})]}),(0,rF.jsx)(rq.az,{as:"span",className:"transition-all ease-in-out group-hover:translate-x-2.5",children:(0,rF.jsx)(rJ.vK,{})})]})},I))})})})]})}let oj=` 907 flex items-center justify-between top-0 908 h-17.5 w-screen py-0 px-6 909 fixed 910`,oO=(0,og.F)([oj],{variants:{variant:{default:"bg-brunel-dark-grey",yellow:"bg-brunel-yellow"}},defaultVariants:{variant:"default"}}),oN=async(N,I,T)=>({props:{locale:T?.locale??r7.Xn,dictionary:I.dictionary,loginPage:I.loginPage}});function oI({variant:N,className:I,props:T}){let{status:P}=(0,iv.useSession)(),D=T?.dictionary;return(0,rF.jsxs)(rq.az,{className:(0,rK.cn)(oO({variant:N,className:I})),children:[(0,rF.jsx)(rz(),{href:"/",children:(0,rF.jsx)(nC._,{priority:!0,field:{src:"/images/logo.svg"},alt:"Brunel Logo",className:"w-25"})}),"authenticated"===P&&(0,rF.jsx)(rU.Button,{className:"mr-8 h-8 p-2",plainText:D?.signout??"[signout]",onClick:()=>{(async()=>{await (0,iv.signOut)({callbackUrl:T.loginPage})})()}})]})}let oT=` 911 flex items-center justify-center w-full text-[#8d9297] bg-accent-pampas md:h-17.5 912`;function oP({fields:{data:{datasource:{children:{results:N}}}}}){return(0,rF.jsx)(rq.az,{className:oT,children:(0,rF.jsx)("ul",{className:"my-4 flex flex-col items-center text-sm md:flex-row md:items-start",children:N?.map((N,I)=>(0,rF.jsx)("li",{className:"mr-4",children:(0,rF.jsx)(rz(),{className:"",href:N.menuItemLink?.link.value.href??"#",children:N.menuItemTitle.text.value})},I))})})}var oD=T(87841),oM=T(34743);let oR=oD.getMercuryDataApplicantFormServerProps,oL=N=>
912{let[I,T]=(0,rb.useState)(N.mercuryData),P=async()=>{let I=await of.U.getMercuryDataByEmail({email:N.session?.user.email??"",bearerToken:""}).catch(N=>{r6.A.api("ERROR REFETCHING CANDIDATE INFO (FORCING RELOAD):",N),window.location.reload()});I?.mercuryId&&T(I)};return(0,rF.jsx)(rq.az,{className:"rounded-lg bg-white p-4 shadow-md md:p-12",children:(0,rF.jsx)(oM.w,{formName:"Profile",...N,mercuryData:I,refetchMercuryData:()=>void P(),onSaveSuccess:T})})},o$=oD.getMercuryDataApplicantFormServerProps,oF=N=>{let[I,T]=(0,rb.useState)(N.mercuryData),P=async()=>{let I=await of.U.getMercuryDataByEmail({email:N.session?.user.email??"",bearerToken:""}).catch(N=>{r6.A.api("ERROR REFETCHING CANDIDATE INFO (FORCING RELOAD):",N),window.location.reload()});I?.mercuryId&&T(I)};return(0,rF.jsx)(rq.az,{className:"rounded-lg bg-white p-4 shadow-md md:p-12",children:(0,rF.jsx)(oM.w,{formName:"Personal",...N,mercuryData:I,refetchMercuryData:()=>void P(),onSaveSuccess:T})})},oB=oD.getMercuryDataApplicantFormServerProps,oU=N=>{let[I,T]=(0,rb.useState)(N.mercuryData),P=async()=>{let I=await of.U.getMercuryDataByEmail({email:N.session?.user.email??"",bearerToken:""}).catch(N=>{r6.A.api("ERROR REFETCHING CANDIDATE INFO (FORCING RELOAD):",N),window.location.reload()});I?.mercuryId&&T(I)};return(0,rF.jsx)(rq.az,{className:"rounded-lg bg-white p-4 shadow-md md:p-12",children:(0,rF.jsx)(oM.w,{formName:"Education",...N,mercuryData:I,refetchMercuryData:()=>void P(),onSaveSuccess:T})})},oH=oD.getMercuryDataApplicantFormServerProps,oz=N=>(0,rF.jsx)(rq.az,{className:"rounded-lg bg-white p-4 shadow-md md:p-12",children:(0,rF.jsx)(oM.w,{formName:"Documents",hideSaveBtn:!0,...N})});var oW=T(91165),oq=T(5742),oG=T(48269);let oK=oD.getMercuryDataApplicantFormServerProps,oV=N=>{let{userID:I,dictionary:T,isLoading:P,skills:D,searchSkills:M,selectedSkill:R,saveSkills:L,deleteSkill:$,skillsAsFormSearchSelectData:F,candidateSkills:B,groupedSkills:U,selectCandidateSkill:H,unselectCandidateSkill:z,updateCandidateSkill:W,openAddCandidateSkills:q,setOpenAddCandidateSkills:G,proficiencyToNameMap:K,experiencePeroidToNameMap:V,hasNewSkills:Y,setHasNewSkills:J,handleAddCandidateSkill:Q}=(0,oW.useMyBrunelApplicantCompetenceLanguageForm)(N),Z=()=>(0,rF.jsx)(rU.Button,{plainText:T?.["applicant-portal-add-skill"]??"[applicant-portal-add-skill]",className:"h-12",onClick:()=>G(!0)}),X=()=>(0,rF.jsx)(rU.Button,{variant:"secondary",plainText:T?.["applicant-portal-save-skills"]??"[applicant-portal-save-skills]",className:"h-12",disabled:P,onClick:()=>{L(N.mercuryData).then(N=>{N&&J(!1)}).catch(N=>{r6.A.api("Error saving skills:",N)})}});return(0,rF.jsxs)(rq.az,{className:"rounded-lg bg-white p-4 shadow-md md:p-12",children:[(0,rF.jsxs)(rq.az,{className:"flex items-center justify-between",children:[(0,rF.jsx)("h3",{children:T?.["applicant-portal-skills-page-name"]??"[Skills]"}),(0,rF.jsxs)(rq.az,{className:"mb-2 flex gap-4",children:[(0,rF.jsx)(Z,{}),Y&&(0,rF.jsx)(X,{})]})]}),(0,rF.jsx)(iw.l,{open:q,children:(0,rF.jsxs)("div",{className:"flex h-auto w-full flex-col gap-4 roun
912ded-md border border-brunel-dark-grey bg-white p-6 text-left shadow-md transition-all md:w-195",children:[(0,rF.jsxs)("div",{className:"flex flex-row items-center justify-between",children:[(0,rF.jsx)("div",{className:"flex flex-col text-left",children:(0,rF.jsx)(rq.o5,{className:"mb-0!",type:"h3",plainText:T?.["applicant-portal-add-skill"]??"[Add Skill]"})}),(0,rF.jsx)(rJ.w0,{className:"cursor-pointer",onClick:()=>{z(),G(!1)}})]}),(0,rF.jsx)(oG.Z,{id:"CandidateSkills",isLoading:P,data:F,placeholder:T?.["applicant-portal-search-placeholder"]??"[Search Skills]",clearData:!R,onAdd:N=>{let I=D.find(I=>I.mercuryId===N);I&&H(I)},onRemove:()=>{z()},onChange:N=>{M(N)}}),R&&(0,rF.jsxs)(rF.Fragment,{children:[(0,rF.jsx)(oq.J,{id:"CandidateSkillProficiency",label:T?.["applicant-portal-proficiency-label"]??"[Proficiency]",options:{14357e4:T?.["applicant-portal-proficiency-beginner"]??"[Beginner]",0x88eb451:T?.["applicant-portal-proficiency-working"]??"[Working]",0x88eb452:T?.["applicant-portal-proficiency-good"]??"[Good]",0x88eb453:T?.["applicant-portal-proficiency-expert"]??"[Expert]"},checkedValue:R?.proficiency?.toString(),useFormik:!1,onSelect:N=>W(N)}),R.proficiency&&(0,rF.jsx)(rU.Button,{plainText:T?.["applicant-portal-add-skill"]??"[applicant-portal-add-skill]",className:"h-12 self-end",onClick:()=>Q()})]})]})}),B.length>0?(0,rF.jsx)("div",{id:"skills",className:"flex h-[calc(100vh-250px)] flex-col gap-4 overflow-x-auto md:h-auto",children:(0,rF.jsx)("table",{id:"skills__table",className:"table table-pin-rows",children:Object.keys(U)?.sort((N,I)=>Number(I)-Number(N))?.map(N=>(0,rF.jsxs)(rb.Fragment,{children:[(0,rF.jsx)("thead",{children:(0,rF.jsx)("tr",{children:(0,rF.jsxs)("th",{colSpan:2,className:"flex items-center text-left",children:[(0,rF.jsx)(rq.o5,{className:"m-0 font-bold!",plainText:K[Number(N)]}),(0,rF.jsx)("span",{className:"ml-2 badge bg-brunel-yellow badge-md text-brunel-dark-grey",children:U[Number(N)]?.length??0})]})})}),(0,rF.jsx)("tbody",{id:"skills__table__body",className:"mb-8",children:U[Number(N)]?.map((N,T)=>(0,rF.jsxs)("tr",{id:"skills__table__row",className:"hover",children:[(0,rF.jsx)("td",{id:"skills__table__skill-name",children:N.name}),(0,rF.jsx)("td",{id:"skills__table__skill-value",children:(N.experience??0)>0?`${N.experience} ${V[Number(N.experiencePeriod)]}`:" "}),(0,rF.jsx)("td",{className:"flex justify-end",children:(0,rF.jsx)("a",{href:"#",onClick:()=>void $(N,I),children:(0,rF.jsx)(rJ.uc,{})})})]},T))})]},N))})}):(0,rF.jsx)(rq.az,{className:"flex flex-col gap-2",children:(0,rF.jsx)(rq.o5,{type:"medium",plainText:T?.["applicant-portal-no-skills"]??"[No Skills Message]"})})]})},oY=oD.getMercuryDataApplicantFormServerProps,oJ=N=>{let[I,T]=(0,rb.useState)(N.mercuryData),P=async()=>{let I=await of.U.getMercuryDataByEmail({email:N.session?.user.email??"",bearerToken:""}).catch(N=>{r6.A.api("ERROR REFETCHING CANDIDATE INFO (FORCING RELOAD):",N),window.location.reload()});I?.mercuryId&&T(I)};return(0,rF.jsx)(rq.az,{className:"rounded-lg bg-white p-4 shadow-md md:p-12",children:(0,rF.jsx)(oM.w,{formName:"Additional",...N,mercuryData:I,refetchMercuryData:()=>void P(),onSaveSuccess:T})})};
912var oQ=T(49705),oZ=T(2467),oX=T(13185),o0=T(63808),o1=T(18908),o2=T(95527),o3=T(21442);let o4=({page:N,params:I,fields:T})=>{let P=I.RenderingIdentifier,{otpSent:D,otpSession:M,resend:R,resendPending:L,emailField:$,otpField:F,submitButton:B,sendOtpButton:U,handleEmailSubmit:H,handleOtpSubmit:z,handleResendClick:W}=(0,oZ.useOtpLoginForm)({page:N,fields:T});return(0,rF.jsx)(n$.a,{id:P||void 0,className:"flex flex-1 flex-col items-center justify-center gap-4",children:(0,rF.jsx)(o0.l1,{initialValues:{emailAddress:M?.email??o3.qw.emailAddress,otpCode:o3.qw.otpCode},validationSchema:D?(0,o3.t_)(F?.validationMesssage?.invalid??"Is invalid",F?.validationMesssage?.required??"Is required"):(0,o3.nC)($?.validationMesssage?.invalid??"Is invalid",$?.validationMesssage?.required??"Is Required"),onSubmit:(N,I)=>D?z(N.emailAddress,N.otpCode,I):H(N.emailAddress,I),children:({touched:N,errors:I,isSubmitting:T})=>(0,rF.jsxs)(o0.lV,{name:"otpLogin",method:"POST",className:"flex w-72 flex-col gap-4",children:[D?(0,rF.jsx)(o2.I,{id:"otpCode",label:F?.label??"OTP Code",errors:[{touched:N?.otpCode,message:I?.otpCode}]}):(0,rF.jsx)(o1.Z,{id:"emailAddress",label:$?.label??"Email Address",errors:[{touched:N?.emailAddress,message:I?.emailAddress}]}),(0,rF.jsxs)(n$.a,{className:"flex flex-1 flex-col items-center justify-center gap-4",children:[(0,rF.jsx)(rU.Button,{className:(0,rK.cn)("h-12",{"opacity-50":T}),variant:"primary",width:"full",plainText:D?U?.value??"Login":B?.value??"Verify",formButton:!0,disabled:T,loading:T,iconName:"arrow-right"}),D&&(0,rF.jsx)(rU.Button,{variant:"tertiary",plainText:R.text,disabled:R.disabled||L,loading:L,onClick:()=>void W()})]})]})})})};var o5=T(92234);function o6(N){let I={};return N.generalFields?.forEach(N=>
912{"azureLoginFormBackground"===N.fullName&&"object"==typeof N.value&&null!==N.value&&"url"in N.value?I[N.fullName]={value:N.value.url??""}:I[N.fullName]={value:N.value??""}}),N.formFields?.forEach(N=>{I[N.fullName.replace("azureLoginLabelField","azureLoginForm")]={value:N.label??""}}),I}let o8=({page:N,fields:I})=>{let T=N.locale,{session:P}=N.layout,D=o6(I),M=D.azureLoginFormB2BButton?.value??"Brunel E-mail",R=D.azureLoginFormB2BButtonDescription?.value??"Log in for Brunel e-mail accounts or Asia region",L=D.azureLoginFormB2CButton?.value??"Other E-mail",$=D.azureLoginFormB2CButtonDescription?.value??"Log in with personal e-mail",F=D.azureLoginFormBackground?.value??ir.H.isProd?ir.H.url.concat("/images/mybrunel/login-bg-2.jpg"):"/images/mybrunel/login-bg-2.jpg",B=async N=>{P&&!o5.J.isAzureProvider(P.user.provider??"")&&await (0,iv.signOut)({redirect:!1}),await (0,iv.signIn)(N,{callbackUrl:ir.H.isProd?"/login":`/${T}/mybrunel/login`})};return(0,rF.jsx)(n$.a,{className:"fixed top-0 left-0 flex h-screen w-screen items-center justify-center bg-[radial-gradient(ellipse,var(--color-brunel-dark-grey)_40%,var(--color-black)_100%)] p-4",children:(0,rF.jsxs)(n$.a,{className:"flex w-full max-w-4xl flex-col overflow-hidden rounded-2xl shadow-2xl md:flex-row",children:[(0,rF.jsxs)(n$.a,{className:"relative h-64 w-full bg-black md:h-auto md:w-1/2",children:[(0,rF.jsx)(nC._,{field:{value:{src:F,alt:"Login background"}},alt:"Login background",className:"h-full w-full rounded-t-2xl bg-left object-cover opacity-30 md:rounded-t-none"}),(0,rF.jsx)(nC._,{field:{value:{src:ir.H.isProd?ir.H.url.concat("/images/mybrunel/logo-brunel-th.svg"):"/images/mybrunel/logo-brunel-th.svg",alt:"Logo"}},alt:"Logo",className:"absolute top-1/2 left-1/2 h-18 w-auto -translate-x-1/2 -translate-y-1/2 pl-3 shadow-lg md:h-22 md:pl-5"})]}),(0,rF.jsxs)(n$.a,{className:"flex w-full flex-col justify-center gap-8 bg-white p-12 md:w-1/2",children:[(0,rF.jsxs)(n$.a,{className:"flex flex-col items-center gap-4 text-center",children:[(0,rF.jsx)(n$.a,{dangerouslySetInnerHTML:{__html:R}}),(0,rF.jsx)(rR.Button,{onClick:()=>void B("azure-ad"),className:"w-full min-w-62.5 rounded-lg md:w-auto",plainText:M})]}),R&&$&&(0,rF.jsx)(n$.a,{className:"hidden h-px bg-gray-200 md:block md:h-full md:w-px md:bg-gray-300"}),(0,rF.jsxs)(n$.a,{className:"flex flex-col items-center gap-4 text-center",children:[(0,rF.jsx)(n$.a,{dangerouslySetInnerHTML:{__html:$}}),(0,rF.jsx)(rR.Button,{onClick:()=>void B("azure-ad-b2c"),plainText:L,variant:"alternative",className:"md:w-auto] w-full min-w-62.5 rounded-lg bg-[#2a4b7d]"})]})]})]})})},o7=()=>(0,rF.jsx)(rq.az,{className:"flex gap-x-3"});var o9=T(28213),se=T(65575),st=T(49711);let sr=N=>{let I=`item${N.index}`;return I+=(N.index+1)%2==0?" even":" odd",0==N.index&&(I+=" first"),N.index+1==N.total&&(I+=" last"),(0,rF.jsx)("li",{className:I,children:(0,rF.jsx)("div",{className:"field-link",children:(0,rF.jsx)(nn.N,{field:N.field})})})},sn=N=>{let I=N.fields?.data?.datasource,T=`component link-list ${N.params.styles??""}`.trimEnd(),P=N.params.RenderingIdentifier;if(I?.children?.results){let N=I.children.results.filter(N=>N?.field?.link).map((N,T)=>(0,rF.jsx)(sr,{index:T,total:I.children.results.length,field:N.field.link},`${T}${N.field.link.value.href}`));return(0,rF.jsx)(rq.az,{className:T,id:P||void 0,children:(0,rF.jsxs)(rq.az,{className:"component-content",children:[(0,rF.jsx)(rq.o5,{type:"h3",textField:I?.field?.title}),(0,rF.jsx)("ul",{children:N})]})})}return(0,rF.jsx)(rq.az,{className:T,id:P||void 0,children:(0,rF.jsx)(rq.az,{className:"component-content",children:(0,rF.jsx)(rq.o5,{type:"h3",plainText:"Link List"})})})};var sa=T(77501),si=T(97618),so=T(99604);let ss=N=>(0,rF.jsx)(rq.az,{className:`component image ${N.params.styles}`.trimEnd(),children:(0,rF.jsx)(rq.az,{className:"component-content",children:(0,rF.jsx)(rq.az,{as:"span",className:"is-empty-hint",children:"Image"})})}),sl=N=>{let I=N.params.RenderingIdentifier,{page:T}=(0,rj.M5)(),P=T.mode.isEditing,D=T.mode.isDesignLibrary,M=P&&N.fields?.Image?.value?.class==="scEmptyImage"?"hero-banner-empty":"",R=N?.fields?.Image?.value?.src&&{backgroundImage:`url('${N.fields.Image.value.src}')`},L=D?{...N.fields.Image,value:{...N.fields.Image.value,style:{width:"100%",height:"100%"}}}:{...N.fields.Image,metadata:{...N.fields.Image.metadata,width:"100%",height:"100%"}};return(0,rF.jsx)(rq.az,{className:`component hero-banner ${N.params.styles} ${M}`,id:I||void 0,children:(0,rF.jsx)(rq.az,{className:"component-content sc-sxa-image-hero-banner",style:R,children:T.mode.isEditing?(0,rF.jsx)(aK.Z,{field:L}):""})})},sc=N=>
912{let{page:I}=(0,rj.M5)();if(N.fields){let T=()=>(0,rF.jsx)(aK.Z,{field:N.fields.Image,className:"min-h-62.5 w-full max-w-(--breakpoint-xxl) xxl:mx-auto",imageParams:{mw:1080}}),P=N.params.RenderingIdentifier;return(0,rF.jsx)(rq.az,{className:`component image ${N.params.styles}`,id:P||void 0,children:(0,rF.jsx)(rq.az,{className:"component-content",children:I.mode.isEditing||!N.fields.TargetUrl?.value?.href?(0,rF.jsx)(T,{}):(0,rF.jsx)(nn.N,{field:N.fields.TargetUrl,children:(0,rF.jsx)(T,{})})})})}return(0,rF.jsx)(ss,{...N})};var su=T(2075),sd=T(9557),sf=T(85753),sh=T(61584),sp=T(81943),sm=T(98566),sg=T(81202),sy=T(6032);let sb=({params:N,fields:I})=>{let{page:T}=(0,rj.M5)(),P=(0,sm.K_)(),D=P?.["event-past-label"]??"Past event",M=N.RenderingIdentifier,R=T?.locale??r7.Xn,L=(0,sg.Yq)(I?.eventHeroPublicationDate??{value:""},R),$=(0,sg.Yq)(I?.eventHeroPublicationEndDate??{value:""},R),F=T.layout.sitecore.context?.pageCanonicalUrl??"",B=T.layout.sitecore.route?.fields,U=B.metaDescription??B.metaOGDescription,H={...I,eventUrl:F,eventDescription:U},z=!!$.value,W=(0,sg.D2)(I?.eventHeroPublicationDate?.value,I?.eventHeroPublicationEndDate?.value),q=(0,sy.zP)(I),G=(0,sy.MS)(I);return!I||I&&0===Object.keys(I).length?(0,rF.jsx)(rG.$,{id:M,title:sb.name,msg:"Please add an Event hero, image, and title."}):(0,rF.jsxs)(rF.Fragment,{children:[(0,rF.jsx)(sd.default,{fields:H}),(0,rF.jsx)(rq.tk,{styledClasses:[],height:(0,iu.ol)(N?.imageSize),image:I?.eventHeroImage,imageAlt:(I?.eventHeroImage?.value?.alt??"")||`${I?.eventHeroTitle?.value??""} Event Hero Image`.trimStart(),focalPoint:I?.heroImageFocalPoint,overlayClassName:"bg-black opacity-30",className:`component ${N.styles} flex-1`,id:M||void 0,contentSlot:(0,rF.jsx)(rq.az,{className:"relative mx-auto flex w-full max-w-screen-lg items-center md:my-0",children:(0,rF.jsxs)(rq.az,{className:"text-content relative mx-6 w-full md:mt-6 lg:mx-0 lg:mt-0",children:[W&&(0,rF.jsx)(rq.az,{className:"mb-3 inline-block rounded bg-white/90 px-3 py-1 text-xs font-semibold tracking-wide text-brunel-dark-grey uppercase",children:D}),(0,rF.jsx)(rq.o5,{textField:I?.eventHeroTitle,type:"h1",className:"mb-4 text-left text-white"}),(0,rF.jsx)(sp.g,{orientation:"horizontal",length:48}),(0,rF.jsxs)(rq.az,{className:"mt-4 flex flex-col gap-2 text-[14px] text-white sm:text-d-body-small md:text-d-body-large",children:[(0,rF.jsxs)(rq.az,{className:"flex items-center",children:[(0,rF.jsx)(sh.v,{field:I?.eventHeroPublicationDate,tag:"span",render:()=>L.value}),z&&(0,rF.jsxs)(rF.Fragment,{children:[(0,rF.jsx)("span",{className:"mx-2",children:"-"}),(0,rF.jsx)(sh.v,{field:I?.eventHeroPublicationEndDate??{value:""},tag:"span",render:()=>$.value})]})]}),q&&(0,rF.jsxs)(rq.az,{className:"flex items-center gap-2",children:[(0,rF.jsx)(rq.In,{name:"location",size:"small",color:"white"}),G?(0,rF.jsx)("a",{href:G,target:"_blank",rel:"noopener noreferrer",className:"underline decoration-white/60 underline-offset-2 hover:
912decoration-white",children:q}):(0,rF.jsx)("span",{children:q})]})]})]})})}),(0,rF.jsx)(sf.EventLocationMap,{fields:I})]})};var sv=T(70934);let sw=N=>{if(!N)return"";if(Array.isArray(N)){let I=N[0];return I?.displayName||I?.name||""}if("data"in N&&N.data)return N.data.displayName||N.data.name||"";let I=N;return I.displayName||I.name||""},sx=({params:N,fields:I})=>{let{page:T}=(0,rj.M5)(),P=N.RenderingIdentifier,D=T?.locale??r7.Xn,M=T.layout.sitecore.route,R=M?.fields,L=R?.caseStudyHeroPublicationDate??{value:""},$=(0,sg.Yq)(L,D),F=sw(R?.caseStudyCategory),B=I?.heroTitle,U=B?.value?String(B.value):"",H=T.layout.sitecore.context?.pageCanonicalUrl??"",z=R?.metaDescription??R?.metaOGDescription,W={...I,caseStudyUrl:H,caseStudyDescription:z,caseStudyHeroPublicationDate:L};return!I||I&&0===Object.keys(I).length?(0,rF.jsx)(rG.$,{id:P,title:sx.name,msg:"Please select a Case Study Hero datasource (title and image)."}):(0,rF.jsxs)(rF.Fragment,{children:[(0,rF.jsx)(sv.default,{fields:W,title:U}),(0,rF.jsx)(rq.tk,{styledClasses:[],height:(0,iu.ol)(N?.imageSize),image:I?.heroImage,imageAlt:(I?.heroImage?.value?.alt??"")||`${U} Case Study Hero Image`.trimStart(),focalPoint:I?.heroImageFocalPoint,overlayClassName:"bg-black opacity-30",className:`component ${N.styles} flex-1`,id:P||void 0,contentSlot:(0,rF.jsx)(rq.az,{className:"relative mx-auto flex w-full max-w-screen-lg items-center md:my-0",children:(0,rF.jsxs)(rq.az,{className:"text-content relative mx-6 w-full md:mt-6 lg:mx-0 lg:mt-0",children:[B&&(0,rF.jsx)(rq.o5,{textField:B,type:"h1",className:"mb-4 text-left text-white"}),(0,rF.jsx)(sp.g,{orientation:"horizontal",length:48}),(0,rF.jsxs)(rq.az,{className:"mt-4 flex flex-col gap-2 text-[14px] text-white sm:text-d-body-small md:text-d-body-large",children:[$.value&&(0,rF.jsx)(rq.az,{className:"flex items-center",children:(0,rF.jsx)(sh.v,{field:L,tag:"span",render:()=>$.value})}),F&&(0,rF.jsx)(rq.az,{className:"flex items-center",children:(0,rF.jsx)("span",{children:F})})]})]})})})]})};var sA=T(26807);let sE=({params:N,fields:I})=>{let{page:T}=(0,rj.M5)(),P=N.RenderingIdentifier,D=T?.locale??r7.Xn,M=(0,sg.Yq)(I?.blogHeroPublicationDate??{value:""},D),R=T.layout.sitecore.context?.pageCanonicalUrl??"",L=T.layout.sitecore.route?.fields,$=L.metaDescription??L.metaOGDescription,F={...I,blogUrl:R,blogDescription:$};return!I||I&&0===Object.keys(I).length?(0,rF.jsx)(rG.$,{id:P,title:sE.name,msg:"Please add a Blog hero, image, and title."}):(0,rF.jsxs)(rF.Fragment,{children:[(0,rF.jsx)(sA.default,{fields:F}),(0,rF.jsx)(rq.tk,{styledClasses:[],height:(0,iu.ol)(N?.imageSize),image:I?.blogHeroImage,imageAlt:(I?.blogHeroImage?.value?.alt??"")||`${I?.blogHeroTitle?.value??""} Blog Hero Image`.trimStart(),focalPoint:I?.heroImageFocalPoint,overlayClassName:"bg-black opacity-30",className:`component ${N.styles} flex-1`,id:P||void 0,contentSlot:(0,rF.jsx)(rq.az,{className:"relative mx-auto flex w-full max-w-screen-lg items-center md:my-0",children:(0,rF.jsxs)(rq.az,{className:"text-content mx-6 w-full md:mt-6 lg:mx-0 lg:mt-0",children:[(0,rF.jsx)(rq.o5,{textField:I?.blogHeroTitle,type:"h1",className:"mb-4 text-left text-white"}),(0,rF.jsx)(sp.g,{orientation:"horizontal",length:48}),(0,rF.jsxs)(rq.az,{className:"mt-4 flex items-center text-[14px] text-white sm:text-d-body-small md:text-d-body-large",children:[(0,rF.jsx)(sh.v,{field:I?.blogHeroPublicationDate,tag:"span",render:()=>M.value}),I?.blogHeroCategory?.name&&(0,rF.jsxs)(rF.Fragment,{children:[(0,rF.jsx)(rq.az,{className:"mx-2 inline-block size-1 bg-white md:mx-4"}),(0,rF.jsx)(rq.o5,{textField:{value:I?.blogHeroCategory?.name},className:"text-white"})]})]})]})})})]})};var sS=T(78253),s_=T(78200);let sk=async(N,I,T)=>{if(!(0,r3.um)(T))return{};let P=T?.locale??r7.Xn,D=T?.preview?null:await (0,iZ.getServerSession)(T.req,T.res,(0,i4.vD)());if(!D||!o5.J.isAzureProvider(D.user.provider??""))return{locale:T.locale,dictionary:I?.dictionary??null,session:null};let M=(0,i1.A)();return{locale:P,notifications:await M.getUserNotifications({email:D.user.email??""})??[],dictionary:I?.dictionary??null,session:D}},sC=({page:N,fields:I,notifications:T})=>{let P=N.locale??r7.Xn,{dictionary:D,session:M}=N.layout,R=I?.data?.datasource?.navigationLogo?.image?.value.src??"/images/mybrunel/taylorhopkinson.svg",L="My Taylor Hopkinson",$=N.layout.sitecore?.route?.fields?.["Page Name"];return $?.value&&"string"==typeof $.value&&(L=$.value),(0,rF.jsxs)(rF.Fragment,{children:[(0,rF.jsxs)(rq.az,{className:"flex h-full items-center justify-between bg-th-primary-background px-6 py-4",children:[(0,rF.jsx)(nC._,{field:{value:{src:R,alt:"My Taylor Hopkinson"}},alt:"Logo",className:"h-10 w-auto"}),(0,rF.jsxs)(rq.az,{className:"flex",children:[(0,rF.jsx)(iG.default,{locale:P,dictionary:D,notifications:T}),(0,rF.jsx)(iW.default,{session:M,locale:P,dictionary:D,menuItems:I?.data?.datasource?.children?.results?.filter(N=>"LanguageSection"!==N.type),theme:"taylorhopkinson"})]})]}),(0,rF.jsx)(rq.az,{className:"-mt-1 block border-b border-accent-iron/20 bg-[#555] px-6 py-2 text-sm font-bold text-white uppercase lg:hidden",children:L})]})},sj=({page:N,fields:I})=>{let T=N.locale??r7.Xn,{dictionary:P,session:D}=N.layout,M="My Brunel",R=N.layout.sitecore?.route?.fields?.["Page Name"];return(R?.value&&"string"==typeof R.value&&(M=R.value),D?.user?.isWebview)?null:(0,rF.jsxs)("header",{className:(0,rK.cn)("th-mybrunel-header fixed top-0 z-50 h-17.5 w-full border-b border-accent-iron bg-white"),children:[(0,rF.jsxs)(rq.az,{className:"flex items-center justify-between px-6 py-4",children:[(0,rF.jsxs)(rq.az,{className:"flex",children:[(0,rF.jsx)(rq.az,{className:"mr-2 flex size-8 items-center justify-center rounded-lg bg-brunel-yellow",children:(0,rF.jsx)(rq.In,{name:"dashboard"})}),(0,rF.jsx)(nC._,{field:{value:{src:"/images/mybrunel/mybrunel-logo-dark.svg",alt:"Logo"}},alt:"Logo"})]}),(0,rF.jsx)(rq.az,{className:"flex",children:(0,rF.jsx)(iW.default,{session:D,locale:T,dictionary:P,menuItems:I?.data?.datasource?.children?.results?.filter(N=>"LanguageSection"!==N.type)})})]}),(0,rF.jsx)(rq.az,{as:"div",className:"-mt-1 block border-b border-accent-iron/20 bg-brunel-yellow px-6 py-2 text-sm font-bold text-brunel-dark-grey uppercase lg:hidden",children:M})]})};var sO=T(35782),sN=T(4634),sI=T(71590),sT=T(43573),sP=T(85503),sD=T(71017);let sM=N=>{let I=`${N.params.GridParameters??""} ${N.params.Styles??""}`.trimEnd(),T=[N.params.Styles1,N.params.Styles2,N.params.Styles3,N.params.Styles4,N.params.Styles5,N.params.Styles6,N.params.Styles7,N.params.Styles8],P=N.params.EnabledPlaceholders?.split(",")??[],D=N.params.RenderingIdentifier;return(0,rF.jsx)(rq.az,{className:`component row-splitter ${I}`,id:D||void 0,children:P.map((I,P)=>{let D=`row-${I}-{*}`,M=`${T[I-1]??""}`.trimEnd();return(0,rF.jsx)(rq.az,{className:`container-fluid ${M}`.trimEnd(),children:(0,rF.jsx)(rq.az,{children:(0,rF.jsx)(rq.az,{className:"flex flex-wrap",children:(0,rF.jsx)(a0.O,{name:D,rendering:N.rendering},P)},P)},P)},P)})})},sR=N=>{let I=`${N.params.GridParameters??""} ${N.params.Styles??""}`.trimEnd(),T=[N.params.ColumnWidth1,N.params.ColumnWidth2,N.params.ColumnWidth3,N.params.ColumnWidth4,N.params.ColumnWidth5,N.params.ColumnWidth6,N.params.ColumnWidth7,N.params.ColumnWidth8],P=[N.params.Styles1,N.params.Styles2,N.params.Styles3,N.params.Styles4,N.params.Styles5,N.params.Styles6,N.params.Styles7,N.params.Styles8],D=N.params.EnabledPlaceholders?.split(",")??[],M=N.params.RenderingIdentifier;return(0,rF.jsx)(rq.az,{className:`component column-splitter flex w-full flex-col gap-4 md:flex-row ${I}`,id:M||void 0,children:D.map((I,D)=>{let M=`column-${I}-{*}`,R=`${T[I-1]} ${P[I-1]??""}`.trimEnd();return(0,rF.jsx)(rq.az,{className:R,children:(0,rF.jsx)(rq.az,{className:"flex flex-wrap",children:(0,rF.jsx)(a0.O,{name:M,rendering:N.rendering,passThroughComponentProps:{columnWidth:N.rendering.params.ColumnWidth1}},D)},D)},D)})})};var sL=T(14949),s$=T(62713);let sF=` 913 flex flex-col md:flex-row justify-center 914 py-[15.2px] pl-6 py-6 min-h-7.5 915 bg-success900 916`,sB=(0,og.F)([sF],{variants:{align:{default:"md:flex"},text:{default:"text-grey-400 md:text-grey-400"}},defaultVariants:{text:"default"}}),sU=` 917 flex copyright-links-item h-fit 918`,sH=` 919 p-px 920 font-medium underline underline-offset-2 decoration-2 skip-ink text-grey-400 text-sm 921 hover:no-underline border-2 border-dashed border-transparent 922 focus:outline-none focus-within:outline-none focus-visible:border-dashed focus-visible:border-2 focus-visible:border-grey-400 923`,sz=N=>{let I=N.params.RenderingIdentifier,T=N.fields?.data?.datasource??{},P=T?.children?.results?T.children.results:[],D=T?.copyrightText?.text.value??"",M=D?.replace("{year}",new Date().getFullYear().toString())??"",R=N?.text,L=N?.align;return(0,rF.jsxs)(rq.az,{id:I||void 0,className:(0,rK.cn)(sB({text:R,align:L}),"w-screen md:items-center"),"data-testid":ai.Qa.TestIds.CopyrightComponent.base,children:[(0,rF.jsx)(rq.az,{className:"copyright-links-item md:border-grey-400 pb-4 text-sm leading-[1.2] md:pb-0",children:M}),(0,rF.jsx)(rq.zk,{align:"default",bgColor:"transparent",contentBgColor:"transparent",textColor:"textGrey",className:"flex w-fit justify-center md:min-h-7.5",contentPadding:"none",contentWidth:"fit",wrapperVariant:"fit",children:(0,rF.jsx)("ul",{className:"copyright-list flex flex-wrap",children:P.map((N,I)=>(0,rF.jsx)("li",{className:sU,children:(0,rF.jsx)(nn.N,{field:N.menuItemLink.link,tabIndex:0,className:sH,editable:!1,
923children:N.menuItemTitle.text.value||N.menuItemLink.link.value.text})},I))})})]})};var sW=T(78624),sq=T(4006);let sG=N=>(N??"").replace(/<style[^>]*>[\s\S]*?<\/style>/gi,"").replace(/<script[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<[^>]+>/g," ").replace(/\s+/g," ").trim();function sK(N){if(!N||0===N.length)return null;let I=N.flatMap(N=>{let I=N.faqItemQuestion?.value?.toString().trim()??"";return I?[{"@type":"Question",name:I,acceptedAnswer:{"@type":"Answer",text:sG(N.faqItemAnswer?.value??"")}}]:[]});return I.length?{"@context":"https://schema.org","@type":"FAQPage",mainEntity:I}:null}function sV({id:N,item:I,isActive:T,onToggle:P,scrollMarginTop:D,itemClassName:M}){let R=(0,sW.S)(I.faqItemAnswer?.value??"");return(0,rF.jsx)(rq.az,{id:N,className:"relative",style:{scrollMarginTop:D},children:(0,rF.jsxs)(rq.az,{className:(0,rK.cn)("collapse-arrow collapse mb-2 rounded-sm bg-accent-pampas",M),onTransitionEnd:()=>{if(T&&N===window.location.hash.slice(1)){let I=document.getElementById(N);I&&I.scrollIntoView({behavior:"smooth"})}},children:[(0,rF.jsx)("input",{type:"radio",className:"size-full",onClick:P,name:N,checked:T,onChange:()=>{}}),(0,rF.jsx)(rq.az,{className:"collapse-title min-h-0 p-0 py-3 text-xl font-medium after:!top-1/2 after:!-translate-y-1/2",children:(0,rF.jsx)(rq.az,{className:"flex items-center pr-10 pl-4 md:pr-16",children:(0,rF.jsx)(rq.o5,{textField:I?.faqItemQuestion,className:(0,rK.cn)(T&&"font-medium!")})})}),(0,rF.jsx)(rq.az,{className:"rich-text collapse-content pr-4 pl-4",children:(0,rF.jsx)(r2.s,{field:{value:R}})})]})})}function sY({params:N,fields:I,titleType:T,variantName:P}){let D=N.RenderingIdentifier,[M,R]=(0,rb.useState)(null),L=I?.data?.datasource,$=L?.children?.results?L.children.results:[],F=L?.faqTitle,B=(0,rb.useRef)(72);if((0,rb.useEffect)(()=>{let N=()=>{let N=window.location.hash,I=N.startsWith("#")?document.getElementById(N.slice(1)):null;I&&R(I.id)};return window.location.href.includes("/jobs")&&(B.current=162),window.addEventListener("hashchange",N),N(),()=>{window.removeEventListener("hashchange",N)}},[]),(0,ni.Cx)()&&($?.length===0||!F))return(0,rF.jsx)(rG.$,{id:D,title:P,msg:"Please add a title and some faq items"});let U=N=>{R(M===N?null:N)},H=sK($);return(0,rF.jsxs)(rF.Fragment,{children:[(0,rF.jsx)(nm(),{children:(0,rF.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(H)}})}),(0,rF.jsxs)(rq.az,{className:(0,rK.cn)("faq-component component",(0,sq.Sc)(N.styles)),style:{scrollMarginTop:B.current},id:D||void 0,children:[(0,rF.jsx)(rq.o5,{textField:F,type:T}),$.filter(N=>N?.faqItemQuestion?.value).map((I,T)=>{let P=`${D}-${T+1}`;return(0,rF.jsx)(sV,{id:P,item:I,isActive:M===P,onToggle:()=>U(P),scrollMarginTop:B.current,itemClassName:(0,sq.VS)(N.styles)},I?.id)})]})]})}let sJ=N=>(0,rF.jsx)(sY,{...N,titleType:"h2",variantName:"Default"}),sQ=N=>(0,rF.jsx)(sY,{...N,titleType:"h3",variantName:"WithH3Title"});T(78220);var sZ=T(25680);let sX=({fields:N})=>{let I=N?.data?.datasource?.children?.results||[],T=N=>N?sZ.d[N]:"";return I?.map(N=>({html:N.headSection?.value??"",oneTrustCategories:N?.oneTrustCategories?.settings?.map(N=>T(N.name))??[]})).filter(N=>""!==N.html),I?.map(N=>({html:N.bodySection?.value??"",oneTrustCategories:N?.oneTrustCategories?.settings?.map(N=>T(N.name))??[]})).filter(N=>""!==N.html),null};var s0=T(12708),s1=T(54603),s2=T(42663),s3=T(14341),s4=T(94274),s5=T(34699),s6=T(62288),s8=T(10988);let s7=async(N,I,T)=>{let P=I.sitecore.context.site?.name??"",D=I.sitecore.context.language??r7.Xn,M=await (0,s8.CV)(P,aw.yl,D),R=M?.id;if(!R)return r6.A.event("Failed to fetch the eventItemData while executing getStaticProps in EventOverview component"),{};let L="All";if(!I.sitecore.context.pageEditing){let N=T?.params?.requestPath;void 0!==N&&(Array.isArray(N)&&N.length>0?L=N[N.length-1]??"All":"string"==typeof N&&(L=N))}let $=N?.fields,F=$?.data?.datasource?.allCategories?.targetItems,B="All"===L?"":L.replaceSpacesWithDashes().toLowerCase(),U="All"===L?null:F?.find(N=>N?.eventCategoryName?.value?.replaceSpacesWithDashes().toLowerCase()===B)?.id??"",H=I.sitecore.route?.itemId?.toUpperCase()??"",z=await (U?(0,s6.j_)(R,H,aw.Pw,[U],D):(0,s6.KR)(R,aw.Pw,D));return z?{categoryPageId:U,eventItemId:R,category:L,categoryPage:U&&R?await (0,s6.fB)(U??"",D).catch(N=>{r6.A.event("Failed to fetch getEventCategoryById inside EventOverview component",{...N})}):void 0,event:z,context:T,dictionary:I.dictionary}:(r6.A.event(`No event data found for Event Page Overview with ID '${R}'`),{})},s9=({rendering:N,fields:I})=>{let T=(0,s5.Fz)(N.uid),{page:P}=(0,rj.M5)(),D=P.locale??r7.Xn,M=T?.dictionary,R=M?.all??"[all]",L=(0,rb.useMemo)(()=>(0,s3.buildOverviewCategories)(I,R),[R,I]),{loading:$,results:F,pageInfo:B,total:U,selectedCategories:H,updateSelectedCategories:z,getNextResults:W}=(0,s2.useEventOverviewResults)({data:T,locale:D,categories:L,allCategoriesLabel:R});return T?(0,rF.jsxs)(rq.az,{className:"flex flex-1 flex-col items-center gap-12",children:[T.categoryPage&&(0,rF.jsx)(rq.tk,{styledClasses:[],height:"sm",heroContent:{heroTitle:{value:T?.categoryPage?.item?.eventCategoryName?.value?.toString().capitalize()??"[hero title]"},heroImage:T?.categoryPage?.item?.eventCategoryHeaderImage?.data}}),(0,rF.jsxs)(rq.az,{className:"w-full max-w-(--breakpoint-lg) py-8 lg:px-0",children:[!T.categoryPageId&&T.eventItemId&&(0,rF.jsx)(rq.o5,{type:"h2",plainText:(T?.categoryPage?.item?.eventCategoryName?.value?.toString()??R??T?.category?.replaceDashesWithSpaces()??"Filter by category")?.toTitleCase()}),!T.categoryPageId&&(0,rF.jsx)(rq.az,{className:"flex flex-wrap gap-4",children:L.map((N,I)=>(0,rF.jsx)(s4.TagButton,{value:(0,ni.Cx)()?`Label ${I}`:N?.eventCategoryName?.value??R,selected:H.includes(N?.eventCategoryName?.value),onSelect:z,tabIndex:I},N.id))}),T.categoryPage?.item?.eventCategoryIntroText?.value&&(0,rF.jsx)(rq.az,{className:"rich-text",dangerouslySetInnerHTML:{__html:T.categoryPage?.item?.eventCategoryIntroText?.value?.toString()??""}}),F.length?(0,rF.jsxs)(rF.Fragment,{children:[(0,rF.jsx)(s0.EventOverviewResultCardList,{results:F}),(0,rF.jsxs)(rq.az,{className:"mt-10 flex flex-col items-center justify-center gap-6",children:[(0,rF.jsxs)(rq.az,{className:"flex w-full items-center justify-center gap-6",children:[(0,rF.jsx)(rq.az,{as:"span",className:"h-px w-full flex-1 bg-brunel-dark-grey"}),(0,rF.jsx)(rq.o5,{type:"medium",plainText:`${F.length} ${M?.of} ${U} ${M?.["viewed-events"]}`}),(0,rF.jsx)(rq.az,{as:"span",className:"h-px w-full flex-1 bg-brunel-dark-grey"})]}),B.hasNext&&(0,rF.jsx)(rU.Button,{variant:"secondary",iconSide:"right",iconName:"
923chevron-down",plainText:`${M?.more??"Show more"} ${M?.["event-article"]??"events"}`,onClick:()=>{W()}})]})]}):$?(0,rF.jsx)(rq.az,{className:"flex flex-1 flex-col items-center",children:(0,rF.jsx)(op.R,{messages:["Loading..."]})}):(0,rF.jsx)(rq.az,{className:"flex flex-1 flex-col items-center p-10",children:(0,rF.jsx)(rq.o5,{type:"large",plainText:[M?.["event-no-results"]??"[event-no-results]"]})})]})]}):null},le=({params:N,fields:I})=>{let T=I?.embeddedVideoUrl,P=I?.embeddedVideoTitle,D=N.RenderingIdentifier;return I&&(!I||I.embeddedVideoUrl)?(0,rF.jsxs)(rq.az,{className:`component ${N.styles} mx-auto w-full max-w-(--breakpoint-lg) p-0`,id:D||void 0,children:[(0,rF.jsx)(rq.o5,{textField:P,type:"h2"}),(0,rF.jsx)(rq.L9,{src:T?.value})]}):(0,rF.jsx)(rG.$,{id:D,title:le.name,msg:"Please set title and video url properties."})},lt=({params:N,fields:I})=>{let T=I?.embeddedVideoUrl,P=I?.embeddedVideoTitle,D=N.RenderingIdentifier;return I&&(!I||I.embeddedVideoUrl)?(0,rF.jsxs)(rq.az,{className:`component ${N.styles} mx-auto my-12 w-full p-0`,id:D||void 0,children:[(0,rF.jsx)(rq.az,{className:"mx-auto max-w-(--breakpoint-lg)",children:(0,rF.jsx)(rq.o5,{textField:P,type:"h2"})}),(0,rF.jsx)(rq.L9,{src:T?.value,isFullWidth:!0})]}):(0,rF.jsx)(rG.$,{id:D,title:lt.name,msg:"Please set title and video url properties."})},lr=le;var ln=T(27548);let la=N=>{let[I,T]=(0,rb.useState)(!1),{params:P,fields:D,page:M}=N,R=P.RenderingIdentifier,L=String(D?.hubSpotFormName?.value??""),$=String(D?.hubSpotScriptUrl?.value??""),F=String(D?.hubSpotRegion?.value??"na1"),B=String(D?.hubSpotPortalId?.value??""),U=String(D?.hubSpotFormId?.value??""),H=String(D?.hubSpotCssClass?.value??"hs-form-frame"),z=!!(L&&$&&B&&U),W=(0,ni.Cx)();return((0,rb.useLayoutEffect)(()=>{if(W)return;let N=N=>{if(N?.detail?.formId===U){T(!0);let I=(0,ln.getUtmParamsFromCampaignCookie)();if(I){let T=window.HubspotFormsV4?.getFormFromEvent(N);(0,ln.setHubSpotUtmFieldValues)(T,I)}}},I=N=>{if(N?.detail?.formId===U){let I=window.HubspotFormsV4.getFormFromEvent(N);I&&I.getFormFieldValues().then(N=>{let T=N.reduce((N,I)=>{let T=I.name.split("/")[1];return T&&(N[T]=I.value),N},{}),P=(0,ln.getUtmParamsFromCampaignCookie)();P&&(0,ln.enrichFormDataWithUtmParams)(T,P),window.dataLayer.push({event:"hubspot_form_submission_v4",form_id:I.getFormId(),form_instance_id:I?.getInstanceId(),conversion_id:I.getConversionId(),form_name:L,form_data:T,locale:M.locale})})}};return window.addEventListener("hs-form-event:on-ready",N),window.addEventListener("hs-form-event:on-submission:success",I),()=>{window.removeEventListener("hs-form-event:on-ready",N),window.removeEventListener("hs-form-event:on-submission:success",I)}},[]),W)?(0,rF.jsx)(rq.az,{className:P.Styles,id:R||U,children:(0,rF.jsx)(rG.$,{id:R,title:"HubSpotForm",msg:z?"HubSpot form will be rendered in this area at runtim or preview mode.":"Please configure HubSpot script URL, portal ID and form ID in Sitecore."})}):(0,rF.jsxs)(rq.az,{className:P.Styles,id:R||U,children:[(0,rF.jsx)(it(),{src:$,strategy:"lazyOnload"}),(0,rF.jsx)(rb.Suspense,{fallback:"",children:(0,rF.jsx)(rb.Activity,{mode:I?"visible":"hidden",children:(0,rF.jsx)("div",{className:H,"data-region":F,"data-portal-id":B,"data-form-id":U})})})]})},li=la;li.displayName="Default";var lo=T(67881);let ls={primary:"primary",alternative:"alternative",black:"black","grey-green":"greyGreen",secondary:"secondary",tertiary:"tertiary"},ll="titlecontainercolumn-1-{*}",lc="titlecontainercolumn-2-{*}",lu="titlecontainercolumn-3-{*}",ld=new RegExp(/mediaurl="([^"]+)"/),lf=N=>(0,rF.jsxs)("div",{className:"mb-6 flex flex-col",children:[(0,rF.jsx)(rU.Button,{id:lo.y.CTAButton,linkField:N?.linkField,variant:N?.variant,iconName:"arrow-right",iconSide:"right"}),(0,rF.jsx)(nK.E,{className:"text-grey-400 mt-2 text-sm",field:N?.labelField,tag:"span"})]}),lh=N=>{let I=N.match(/button-(primary|alternative|black|grey-green|secondary|tertiary)/i),T=I?.[1]?.toLowerCase();return T&&ls[T]||"primary"},lp=N=>window.location.hash===`#${N}`,lm=N=>{let I=N?.params?.RenderingIdentifier,T=(0,rK.Qh)(N?.params?.Styles);return((0,rb.useEffect)(()=>{let N=()=>
923{if(lp(I)){let N=document.getElementById(I??"");N&&N.scrollIntoView({block:"start",behavior:"smooth"})}};return window.addEventListener("resize",N),N(),()=>{window.removeEventListener("resize",N)}},[I]),N?.fields)?(0,rF.jsx)(rq.az,{id:I,className:`component container-default group w-full has-[.hidden-content]:hidden ${T} scroll-mt-18`,children:(0,rF.jsxs)(rq.az,{className:"component-content flex max-w-(--breakpoint-lg) flex-col p-6 md:mx-auto md:flex-row md:justify-between lg:px-0 lg:py-12",children:[(0,rF.jsxs)(rq.az,{className:"flex flex-1 flex-col flex-wrap lg:pr-12",children:[(0,rF.jsx)(rq.o5,{textField:N.fields?.titleContainerTitle,type:"h2"}),(0,rF.jsx)(lf,{linkField:N.fields?.titleContainerLink,labelField:N.fields?.titleContainerLinkLabel,variant:lh(T)})]}),(0,rF.jsx)(rq.az,{className:"w-full md:w-3/5 xl:w-160",children:(0,rF.jsx)(a0.O,{name:ll,rendering:N?.rendering,fields:{hide:N?.fields?.titleContainerHideOnEmptyData??{value:!1}}},ll)})]})}):(0,rF.jsx)(rG.$,{id:I,title:"TitleContainer",msg:"Please add a title and a link using the toolbar"})},lg=lm;lg.displayName="Default";let ly=N=>{let I=N?.params?.RenderingIdentifier,T=(0,rK.Qh)(N?.params?.Styles);return((0,rb.useEffect)(()=>{let N=()=>{if(lp(I)){let N=document.getElementById(I??"");N&&N.scrollIntoView({block:"start",behavior:"smooth"})}};return window.addEventListener("resize",N),N(),()=>{window.removeEventListener("resize",N)}},[I]),N?.fields)?(0,rF.jsx)(rq.az,{id:I,className:`component container-default group w-full has-[.hidden-content]:hidden ${T} scroll-mt-18`,children:(0,rF.jsxs)(rq.az,{className:"component-content flex max-w-(--breakpoint-lg) flex-col gap-6 p-6 md:mx-auto md:flex-row md:justify-between lg:px-0 lg:py-12",children:[(0,rF.jsxs)(rq.az,{className:"flex w-full flex-col flex-wrap md:w-1/2 lg:pr-12",children:[(0,rF.jsx)(rq.o5,{textField:N.fields?.titleContainerTitle,type:"h2"}),(0,rF.jsx)(lf,{linkField:N.fields?.titleContainerLink,labelField:N.fields?.titleContainerLinkLabel,variant:lh(T)})]}),(0,rF.jsx)(rq.az,{className:"w-full md:w-1/2",children:(0,rF.jsx)(a0.O,{name:ll,rendering:N?.rendering,fields:{hide:N?.fields?.titleContainerHideOnEmptyData??{value:!1}}},ll)})]})}):(0,rF.jsx)(rG.$,{id:I,title:"TitleContainer",msg:"Please add a title and a link using the toolbar"})},lb=N=>{let I=N?.params?.RenderingIdentifier,T=(0,rK.Qh)(N?.params?.Styles),P=(0,rK.UJ)(T?.split(/\s+/),"object-").replace("object-","")??"center",D=N.params.BackgroundImage,M={};return((0,rb.useEffect)(()=>{let N=()=>{if(lp(I)){let N=document.getElementById(I??"");N&&N.scrollIntoView({block:"start",behavior:"smooth"})}};return window.addEventListener("resize",N),N(),()=>{window.removeEventListener("resize",N)}},[I]),N?.fields)?(D&&(D=`${ld.exec(D)?.pop()}`,M={backgroundImage:`url('${D}')`,backgroundSize:"cover",backgroundPosition:`center ${P}`}),(0,rF.jsx)(rq.az,{id:I,className:`component container-default w-full scroll-mt-18 has-[.hidden-content]:hidden ${T}`,style:M,children:(0,rF.jsx)(rq.az,{className:"component-content flex max-w-(--breakpoint-lg) flex-col p-6 md:mx-auto md:flex-row md:justify-between lg:px-0 lg:py-12",children:(0,rF.jsxs)(rq.az,{className:"flex flex-1 flex-col flex-wrap",children:[(0,rF.jsx)(rq.o5,{textField:N?.fields?.titleContainerTitle,type:"h2",className:D?"text-white":""}),(0,rF.jsx)(a0.O,{name:ll,rendering:N?.rendering,fields:{hide:N?.fields?.titleContainerHideOnEmptyData??{value:!1}}},ll)]})})})):(0,rF.jsx)(rG.$,{id:I,title:"TitleContainer",msg:"Please add a title and a link using the toolbar"})},lv=N=>{let I=N?.params?.RenderingIdentifier,T=(0,rK.Qh)(N?.params?.Styles);return((0,rb.useEffect)(()=>{let N=()=>{if(lp(I)){let N=document.getElementById(I??"");N&&N.scrollIntoView({block:"start",behavior:"smooth"})}};return window.addEventListener("resize",N),N(),()=>{window.removeEventListener("resize",N)}},[I]),N?.fields)?(0,rF.jsx)(rq.az,{id:I,className:`component container-default w-full scroll-mt-18 has-[.hidden-content]:hidden ${T}`,children:(0,rF.jsxs)(rq.az,{className:"component-content flex max-w-(--breakpoint-lg) flex-col p-6 md:mx-auto md:justify-between lg:px-0 lg:py-12",children:[(0,rF.jsxs)(rq.az,{className:"mb-6 flex flex-col flex-wrap",children:[(0,rF.jsx)(rq.o5,{textField:N?.fields?.titleContainerTitle,type:"h2"}),(0,rF.jsx)(lf,{linkField:N?.fields?.titleContainerLink,labelField:N?.fields?.titleContainerLinkLabel,variant:lh(T)})]}),(0,rF.jsxs)(rq.az,{className:"flex flex-col gap-6 md:flex-row",children:[(0,rF.jsx)(rq.az,{className:"w-full md:w-2/3",children:(0,rF.jsx)(a0.O,{name:ll,rendering:N?.rendering,fields:{hide:N?.fields?.titleContainerHideOnEmptyData??{value:!1}}},ll)}),(0,rF.jsx)(rq.az,{className:"w-full md:w-1/3",children:(0,rF.jsx)(a0.O,{name:lc,rendering:N?.rendering,fields:{hide:N?.fields?.titleContainerHideOnEmptyData??{value:!1}}},lc)})]})]})}):(0,rF.jsx)(rG.$,{id:I,title:"TitleContainer",msg:"Please add a title and a link using the toolbar"})},lw=N=>{let I=N?.params?.RenderingIdentifier,T=(0,rK.Qh)(N?.params?.Styles),P=(0,rK.UJ)(T?.split(/\s+/),"object-").replace("object-","")??"center",D=N.params.Backgroun
923dImage,M={};return((0,rb.useEffect)(()=>{let N=()=>{if(lp(I)){let N=document.getElementById(I??"");N&&N.scrollIntoView({block:"start",behavior:"smooth"})}};return window.addEventListener("resize",N),N(),()=>{window.removeEventListener("resize",N)}},[I]),N?.fields)?(D&&(D=`${ld.exec(D)?.pop()}`,M={backgroundImage:`url('${D}')`,backgroundSize:"cover",backgroundPosition:`center ${P}`}),(0,rF.jsx)(rq.az,{id:I,className:`component container-default w-full scroll-mt-18 has-[.hidden-content]:hidden ${T}`,style:M,children:(0,rF.jsxs)(rq.az,{className:"component-content flex max-w-(--breakpoint-lg) flex-col p-6 md:mx-auto md:justify-between lg:px-0 lg:py-12",children:[(0,rF.jsxs)(rq.az,{className:"mb-6 flex flex-col flex-wrap pr-8",children:[(0,rF.jsx)(rq.o5,{textField:N?.fields?.titleContainerTitle,type:"h2"}),(0,rF.jsx)(lf,{linkField:N?.fields?.titleContainerLink,labelField:N?.fields?.titleContainerLinkLabel,variant:lh(T)})]}),(0,rF.jsxs)(rq.az,{className:"flex flex-col gap-6 md:flex-row",children:[(0,rF.jsx)(rq.az,{className:"w-full md:w-1/3",children:(0,rF.jsx)(a0.O,{name:ll,rendering:N?.rendering,fields:{hide:N?.fields?.titleContainerHideOnEmptyData??{value:!1}}},ll)}),(0,rF.jsx)(rq.az,{className:"w-full md:w-1/3",children:(0,rF.jsx)(a0.O,{name:lc,rendering:N?.rendering,fields:{hide:N?.fields?.titleContainerHideOnEmptyData??{value:!1}}},lc)}),(0,rF.jsx)(rq.az,{className:"w-full md:w-1/3",children:(0,rF.jsx)(a0.O,{name:lu,rendering:N?.rendering,fields:{hide:N?.fields?.titleContainerHideOnEmptyData??{value:!1}}},lu)})]})]})})):(0,rF.jsx)(rG.$,{id:I,title:"TitleContainer",msg:"Please add a title and a link using the toolbar"})},lx=lg,lA=N=>{let I=(0,rK.Qh)(N?.params.Styles),T=`${N.params.GridParameters} ${I}`.trimEnd(),P=`container-${N.params.DynamicPlaceholderId}`,D=N.params.RenderingIdentifier,M=RegExp(/mediaurl="([^"]*)"/,"i"),R=N.params.BackgroundImage,L={};if(R&&M.exec(R)){let N=M.exec(R)?.[1]??"";L={backgroundImage:`url('${N}')`}}return(0,rF.jsx)(rq.az,{className:`component container-default w-full lg:px-0 ${T}`,id:D||"container",children:(0,rF.jsx)(rq.az,{className:"component-content max-w-(--breakpoint-lg) p-6 md:mx-auto lg:p-12 lg:px-0",style:L,children:(0,rF.jsx)(a0.O,{name:P,rendering:N.rendering})})})},lE=N=>
923{let I=(0,rK.Qh)(N.params?.Styles),T=I?I.split(" "):[];return T?.includes("container")?(0,rF.jsx)(rq.az,{className:"container-wrapper",children:(0,rF.jsx)(lA,{...N})}):(0,rF.jsx)(lA,{...N})},lS=new RegExp(/mediaurl="([^"]+)"/),l_=async N=>{let{params:I}=N;return{placeholderLength:N?.placeholders?.["cardscontainer-{*}"]?.length??5,placeholderMaxColumns:I?.MaxColumns??"5"}},lk=N=>{let I="cardscontainer-{*}",T=(0,rK.Qh)(N?.params.Styles),P=T?T.split(/\s+/):[],D=`${N.params.GridParameters} ${T}`.trimEnd(),M=N.params.RenderingIdentifier,R=(0,rK.UJ)(P,"object-").replace("object-","")??"center",L=N.params.BackgroundImage,$={};if(L&&(L=`${lS.exec(L)?.pop()}`,$={backgroundImage:`url('${L}')`,backgroundSize:"cover",backgroundPosition:`center ${R}`}),!N.fields)return(0,rF.jsx)(rG.$,{id:M,title:"CardsContainer",msg:"Please add a title"});let F=!!N.fields.cardsContainerDescription?.value,B=Math.min(N.placeholderLength,N.placeholderMaxColumns);return(0,rF.jsx)(rq.az,{className:`component cards-container-default basis-full ${D}`,id:M||"card-container",style:$,children:(0,rF.jsx)(rq.az,{className:"component-content",children:(0,rF.jsxs)(rq.az,{className:"max-w-(--breakpoint-lg) p-6 lg:mx-auto lg:px-0 lg:py-12",children:[N.fields.cardsContainerTitle&&(0,rF.jsx)(rq.o5,{textField:N.fields.cardsContainerTitle,type:"h2",className:`md:ml-0 ${L?"text-white":""}`}),(0,ni.Cx)()||F?(0,rF.jsx)(rq.az,{className:"mb-8",children:(0,rF.jsx)(r2.s,{field:N.fields.cardsContainerDescription})}):null,(0,rF.jsx)(rq.az,{id:"cards-container",className:"cards-container-wrapper flex flex-wrap place-items-stretch lg:grid lg:gap-8",style:{gridTemplateColumns:`repeat(${B<3?"3":B}, minmax(auto, 1fr))`},children:(0,rF.jsx)(a0.O,{name:I,rendering:N.rendering},I)})]})})})},lC=N=>{let I=(0,rK.Qh)(N?.params.Styles),T=I?I.split(" "):[];return T?.includes("container")?(0,rF.jsx)(rq.az,{className:"container-wrapper",children:(0,rF.jsx)(lk,{...N})}):(0,rF.jsx)(lk,{...N})};var lj=T(4863);let lO=N=>{let I=(0,nU.useRouter)(),{setToast:T,setLoading:P}=(0,rb.useContext)(rW._t),{gdprconsentexpirationtoken:D}=I.query,M=N.fields?.generalFields.find(N=>"defaultFormSubmitButtonLabel"===N.fullName),R=N.fields?.formFields.find(N=>"consentLabelFieldConsent"===N.fullName),L=N.fields?.generalFields.find(N=>"consentSuccessPageLink"===N.fullName);return(0,rF.jsx)(rF.Fragment,{children:(D??(0,ni.Cx)())&&(0,rF.jsx)(o0.l1,{initialValues:{answer:"1"},onSubmit:async N=>{try{P({isLoading:!0,messages:[]}),await lj.V.sendConsent({token:D,instruction:Number(N.answer)}).then(()=>{P({isLoading:!1,messages:[]}),L?.value?.friendlyUrl&&I.push(L.value.friendlyUrl)}).catch(N=>{r6.A.api("Error submitting consent",N),T({type:"error",data:{title:"Something went wrong",message:"Something went wrong with your consent, please try again."},open:!0}),P({isLoading:!1,messages:[]})})}catch(N){r6.A.api("Internal error:",N)}},children:({values:N,errors:I,touched:T,handleChange:P})=>(0,rF.jsxs)(o0.lV,{children:[(0,rF.jsxs)("div",{className:"flex flex-col",children:[(0,rF.jsxs)("label",{children:[(0,rF.jsx)("input",{className:"mr-2",type:"radio",name:"answer",value:"1",checked:"1"===N.answer,onChange:P}),R?.options?.true?.decodeURIOrNull()||"Yes"]}),(0,rF.jsxs)("label",{children:[(0,rF.jsx)("input",{className:"mr-2",type:"radio",name:"answer",value:"2",checked:"2"===N.answer,onChange:P}),R?.options?.false?.decodeURIOrNull()||"No"]})]}),I.answer&&T.answer&&(0,rF.jsx)("div",{className:"text-red",children:I.answer}),(0,rF.jsx)(rU.Button,{formButton:!0,plainText:M?.value??"send",className:"mt-4"})]})})})};var lN=T(75677);let lI=N=>"string"!=typeof N?[]:N.split(/[;,]/).map(N=>N.trim()).filter(Boolean),lT=({fields:N})=>{let{locale:I="",asPath:T}=(0,nU.useRouter)(),P=N?.chatbotUrl?.value??"",D=N?.chatbotWidgetId?.value??"",M=N?.chatbotSettingsId?.value??"",R=N?.chatbotHideOnPaths?.value??"",L=N?.chatbotHideOnLocales?.value??"",$=(0,lN.isPathHidden)(T,I,R),F=lI(L).includes(I);return(0,ni.Cx)()||$||F?null:(0,rF.jsx)(it(),{async:!0,type:"module",strategy:"lazyOnload",src:P,"data-watermelon-widget-id":D,"data-watermelon-settings-id":M})};var lP=T(35976),lD=T(49324),lM=T(64579),lR=T(5665),lL=T(4695),l$=T(92594);let lF=async(N,I,T)=>{let P=I.sitecore.context.site?.name??"",D=I.sitecore.context.language??r7.Xn,M=await (0,s8.fW)(P,aw.Qm,D),R=M?.id;if(!R)return r6.A.caseStudy("Failed to fetch the caseStudyItemData while executing getStaticProps in CaseStudyOverview component"),{};let L="All",$=N?.fields,F=(0,lR.normalizeOverviewCategories)($?.data?.datasource?.allCategories?.targetItems),B=(0,lR.normalizeOverviewCategories)(M?.categories?.data),U=F.length?F:B;if(!I.sitecore.context.pageEditing){let N=T?.params?.requestPath;Array.isArray(N)&&N.length>=1?L=N[0]??"All":"string"==typeof N&&(L=N)}L===aw.oC&&(L="All");let H="All"===L?"":L.replaceSpacesWithDashes().toLowerCase(),z="All"===L?null:U.find(N=>N.caseStudyCategoryName.value.replaceSpacesWithDashes().toLowerCase()===H)?.id??"",W=I.sitecore.route?.itemId?.toUpperCase()??"",q=await (z?(0,lL.x6)(R,W,aw.t7,[z],D):(0,lL.yi)(R,aw.t7,D));return q?{categoryPageId:z,caseStudyItemId:R,availableCategories:U,category:L,categoryPage:z&&R?await (0,lL.ao)(z??"",D).catch(N=>{r6.A.caseStudy("Failed to fetch getCaseStudyCategoryById inside CaseStudyOverview component",{...N})}):void 0,caseStudy:q,context:T,dictionary:I.dictionary}:(r6.A.caseStudy(`No case study data found for Case Study Page Overview with ID '${R}'`),{})},lB=({rendering:N,fields:I})=>{let T=(0,s5.Fz)(N.uid),{page:P}=(0,rj.M5)(),D=P.locale??r7.Xn,M=T?.dictionary,R=M?.all??"[all]",L=(0,rb.useMemo)(()=>(0,lR.buildOverviewCategories)(I,T?.availableCategories,R),[R,T?.availableCategories,I]),$=(0,rb.useMemo)(()=>(0,lR.getActiveCategoryLabel)(T,R,L),[T,R,L]),{loading:F,results:B,pageInfo:U,total:H,selectedCategories:z,updateSelectedCategories:W,getNextResults:q}=(0,lM.useCaseStudyOverviewResults)({data:T,locale:D,categories:L,allCategoriesLabel:R,activeCategoryLabel:$});if(!T)return null;let G=T.categoryPage?.item?.caseStudyCategoryName?.value?.toString().trim()||"",K=T.categoryPage?.item?.caseStudyCategoryHeaderImage?.data,V=!!(G||K);return(0,rF.jsxs)(rq.az,{className:"flex flex-1 flex-col items-center gap-12",children:[V&&(0,rF.jsx)(rq.tk,{styledClasses:[],height:"sm",heroContent:{heroTitle:{value:(G||$).capitalize()},heroImage:K}}),(0,rF.jsxs)(rq.az,{className:"w-full max-w-(--breakpoint-lg) py-8 lg:px-0",children:[T.caseStudyItemId&&(0,rF.jsx)(rq.o5,{type:"h2",plainText:(T?.categoryPage?.item?.caseStudyCategoryName?.value?.toString()??$??T?.category?.replaceDashesWithSpaces()??"Filter by category")?.toTitleCase()}),(0,rF.jsx)(rq.az,{className:"flex flex-wrap gap-4",children:L.map((N,I)=>{let T=N?.caseStudyCategoryName?.value??R,P=N.id&&T!==R?(0,l$.dX)(T):aw.Qm;return(0,rF.jsx)(s4.TagButton,{value:(0,ni.Cx)()?`Label ${I}`:T,selected:z.includes(T),link:(0,ni.Cx)()?void 0:P,onSelect:(0,ni.Cx)()?W:void 0,tabIndex:I},N.id||"all")})}),T.categoryPage?.item?.caseStudyCategoryIntroText?.value&&(0,rF.jsx)(rq.az,{className:"rich-text",dangerouslySetInnerHTML:{__html:T.categoryPage?.item?.caseStudyCategoryIntroText?.value?.toString()??""}}),B.length?(0,rF.jsxs)(rF.Fragment,{children:[(0,rF.jsx)(lP.CaseStudyOverviewResultCardList,{results:B}),(0,rF.jsxs)(rq.az,{className:"mt-10 flex flex-col items-center justify-center gap-6",children:[(0,rF.jsxs)(rq.az,{className:"flex w-full items-center justify-center gap-6",children:[(0,rF.jsx)(rq.az,{as:"span",className:"h-px w-full flex-1 bg-brunel-dark-grey"}),(0,rF.jsx)(rq.o5,{type:"medium",plainText:`${B.length} ${M?.of} ${H} ${M?.["viewed-case-studies"]}`}),(0,rF.jsx)(rq.az,{as:"span",className:"h-px w-full flex-1 bg-brunel-dark-grey"})]}),U.hasNext&&(0,rF.jsx)(rU.Button,{variant:"secondary",iconSide:"right",iconName:"
923chevron-down",plainText:`${M?.more??"Show more"} ${M?.["case-study-article"]??"case studies"}`,onClick:()=>{q()}})]})]}):F?(0,rF.jsx)(rq.az,{className:"flex flex-1 flex-col items-center",children:(0,rF.jsx)(op.R,{messages:["Loading..."]})}):(0,rF.jsx)(rq.az,{className:"flex flex-1 flex-col items-center p-10",children:(0,rF.jsx)(rq.o5,{type:"large",plainText:[M?.["case-study-no-results"]??"[case-study-no-results]"]})})]})]})};var lU=T(48253);let lH=()=>(0,rF.jsx)("svg",{width:"18",height:"14",viewBox:"0 0 18 14",fill:"none","aria-hidden":"true",children:(0,rF.jsx)("path",{d:"M1 7h15M11 2l5 5-5 5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),lz=({kpi:N,isEditing:I})=>{let T=!!N.value?.value,P=(0,lU.formatKpiSuffix)(N.suffix?.value!==void 0&&N.suffix?.value!==null?String(N.suffix.value):void 0);return T||I?(0,rF.jsxs)(rq.az,{className:"min-w-0",children:[(0,rF.jsxs)("p",{className:"text-[28px] leading-none font-bold tracking-tight text-brunel-dark-grey md:text-4xl",children:[(0,rF.jsx)(nK.E,{field:N.value}),I?(0,rF.jsx)(nK.E,{field:N.suffix}):P&&(0,rF.jsx)("span",{className:"font-semibold",children:P})]}),(0,rF.jsx)(rq.az,{className:"mt-2.5 mb-3 h-0.75 w-8.5 rounded-xs bg-brunel-yellow md:w-10"}),(0,rF.jsx)(rq.o5,{textField:N.caption,type:"small",className:"text-[12.5px] leading-snug text-ui-grey md:text-[13.5px]"})]}):null},lW=({params:N,fields:I,imageSplit:T})=>{let{page:P}=(0,rj.M5)(),D=P.mode.isEditing,M=N.RenderingIdentifier;if(!I||0===Object.keys(I).length)return(0,rF.jsx)(rG.$,{id:M,title:"Case Study Highlight",msg:"Please add a datasource with title, introduction and image."});let R=(0,lU.getSelectedTags)(I.caseStudyTags),L=I.caseStudyImageTag?.value||I.caseStudySubject?.value||"",$=I.caseStudyCtaLink,F=[{value:I.caseStudyKpi1Value,suffix:I.caseStudyKpi1Suffix,caption:I.caseStudyKpi1Caption},{value:I.caseStudyKpi2Value,suffix:I.caseStudyKpi2Suffix,caption:I.caseStudyKpi2Caption},{value:I.caseStudyKpi3Value,suffix:I.caseStudyKpi3Suffix,caption:I.caseStudyKpi3Caption}].filter(N=>D||N.value?.value);if(!(I.caseStudyTitle?.value||I.caseStudyIntroduction?.value||I.caseStudyImage?.value?.src))return(0,rF.jsx)(rG.$,{id:M,title:"Case Study Highlight",msg:"Please add a title, introduction and image."});let B="diagonal"===T?"lg:grid-cols-[1.02fr_1fr]":"lg:grid-cols-2",U="diagonal"===T?"relative order-1 aspect-16/11 min-h-55 overflow-hidden bg-linear-to-br from-[#dbe2e8] via-[#eaeef1] to-[#f4f5f6] lg:order-2 lg:aspect-auto lg:min-h-full lg:[clip-path:polygon(7%_0,100%_0,100%_100%,0_100%)]":"relative order-1 aspect-16/11 min-h-55 overflow-hidden bg-linear-to-br from-[#dbe2e8] via-[#eaeef1] to-[#f4f5f6] lg:order-2 lg:aspect-auto lg:min-h-full",H="diagonal"===T?"absolute top-4 left-4.5 z-2 text-[13px] font-semibold tracking-wide text-[#2a3138] drop-shadow-[0_1px_2px_rgba(255,255,255,0.6)] md:top-5.5 md:left-[14%] md:text-sm":"absolute top-4 left-4.5 z-2 text-[13px] font-semibold tracking-wide text-[#2a3138] drop-shadow-[0_1px_2px_rgba(255,255,255,0.6)] md:top-5.5 md:left-5.5 md:text-sm";return(0,rF.jsxs)(rq.az,{id:M,className:`mx-auto grid w-full max-w-310 overflow-hidden rounded-[22px] bg-white shadow-[0_18px_40px_rgba(20,22,26,0.07),0_2px_6px_rgba(20,22,26,0.04)] md:shadow-[0_30px_60px_rgba(20,22,26,0.09),0_4px_10px_rgba(20,22,26,0.04)] ${B}`,children:[(0,rF.jsxs)(rq.az,{className:"order-2 px-5.5 py-6 md:px-7 md:py-8 lg:order-1 lg:px-15 lg:pt-14 lg:pb-13",children:[R.length>0&&(0,rF.jsx)(rq.az,{className:"flex flex-wrap gap-2",children:R.map(N=>(0,rF.jsxs)("span",{className:"inline-flex items-center gap-2 rounded-full bg-brunel-dark-grey px-3.25 py-2.5 text-[12.5px] leading-none font-semibold text-white md:gap-2.25 md:px-4.25 md:py-2.5 md:text-[13px]",children:[(0,rF.jsx)("span",{className:"size-2 shrink-0 rounded-full bg-brunel-yellow","aria-hidden":"true"}),N.name]},N.id))}),I.caseStudySubject&&(0,rF.jsx)(rq.o5,{textField:I.caseStudySubject,type:"small",className:"mt-5 mb-2 text-[11.5px] font-semibold tracking-[0.16em] text-[#9aa0a6] uppercase md:mt-6.5 md:text-xs md:tracking-[0.17em]"}),I.caseStudyTitle&&(0,rF.jsx)(rq.o5,{textField:I.caseStudyTitle,type:"h2",className:"m-0 max-w-[15ch] text-[26px] leading-[1.18] font-semibold tracking-tight text-brunel-dark-grey md:text-[30px] lg:text-[40px] lg:leading-[1.16]"}),(I.caseStudyIntroduction?.value||D)&&(0,rF.jsx)(r2.s,{field:I.caseStudyIntroduction,className:"rich-text mt-4.5 text-[15px] leading-[1.6] text-[#3f4145] md:mt-6.5 md:max-w-[52ch] md:text-base md:leading-[1.62] [&>p+p]:mt-4 [&>p+p]:text-[#6b7078] md:[&>p+p]:mt-5"}),F.length>0&&(0,rF.jsxs)(rF.Fragment,{children:[(0,rF.jsx)(rq.az,{className:"my-6.5 h-px bg-[#e8e8e4] md:my-8.5"}),(0,rF.jsx)(rq.az,{className:"grid grid-cols-3 gap-3 md:max-w-130 md:gap-5.5",children:F.map((N,I)=>(0,rF.jsx)(lz,{kpi:N,isEditing:D},I))})]}),$&&(0,rF.jsxs)(nn.N,{field:$,className:"group mt-7 inline-flex items-center gap-2.25 border-b-2 border-brunel-yellow pb-1.5 text-[15px] font-semibold text-brunel-dark-grey no-underline transition-[gap] duration-200 hover:gap-3.25 focus-visible:rounded-xs focus-visible:outline-2 focus-visible:outline-offset-3 focus-visible:outline-brunel-yellow md:mt-9 md:gap-2.5 md:text-base md:hover:gap-3.75",children:[(0,rF.jsx)(rq.o5,{type:"medium",plainText:$.value?.text||"Read the full story",className:"font-semibold text-brunel-dark-grey"}),(0,rF.jsx)(lH,{})]})]}),(0,rF.jsxs)(rq.az,{className:U,children:[D&&I.caseStudyImageTag?(0,rF.jsx)(rq.o5,{textField:I.caseStudyImageTag,type:"small",className:H}):L&&(0,rF.jsx)("span",{className:H,children:L}),I.caseStudyImage&&(0,rF.jsx)(nC._,{field:I.caseStudyImage,alt:I.caseStudyImage.value?.alt||"Case Study Highlight Image",className:"absolute inset-0 size-full object-cover",style:{objectPosition:(0,ak.o)(I.heroImageFocalPoint,"center center")},sizes:"(min-width: 1024px) 50vw, 100vw",srcSet:[{mw:1920},{mw:1280},{mw:1024},{mw:768},{mw:640},{mw:500}]})]})]})},lq=N=>(0,rF.jsx)(lW,{...N,imageSplit:"vertical"}),lG=N=>(0,rF.jsx)(lW,{...N,imageSplit:"diagonal"}),lK=lq;var lV=T(93738),lY=T(12879);let lJ=async(N,I,T)=>{let P=N?.fields,D=T?.locale??r7.Xn,M=I?.sitecore?.context?.site?.name??"",R=(0,lV.mapGlobalContactCardFields)(P);
923return!R||R.contactCardPicture?.value?.src?{contactPersonImage:null,locale:D,siteName:M}:{contactPersonImage:await (0,nN.R)(R.contactCardName?.value,R.contactCardEmail?.value,D,M),locale:D,siteName:M}},lQ=({rendering:N,fields:I,sitecoreContext:T,contactPersonImage:P,locale:D=r7.Xn,siteName:M="",...R})=>{let L=N.params?.RenderingIdentifier,$=T?.pageEditing,F=(0,lV.mapGlobalContactCardFields)(I),[B,U]=(0,rb.useState)(P??null),H=!!F?.contactCardPicture?.value?.src;return((0,rb.useEffect)(()=>{if(!F||(0,ni.Cx)()||H)return;let N=F.contactCardName?.value,I=F.contactCardEmail?.value;(N||I)&&(0,nN.R)(N,I,D,M).then(U)},[F,H,D,M]),F)?(0,rF.jsx)(lY.ContactCardContent,{id:L||void 0,fields:F,isEditing:$,contactPersonImage:B,...R}):(0,rF.jsx)(rG.$,{id:L||"",title:"Global Contact Card",msg:"Please select a contact person from the global contact cards library"})};lQ.displayName="Global Contact Card";let lZ=lQ,lX=async(N,I,T)=>{let P=N?.fields,D=T?.locale??r7.Xn,M=I?.sitecore?.context?.site?.name??"";return P?.contactCardPicture?.value?.src?{contactPersonImage:null,locale:D,siteName:M}:{contactPersonImage:await (0,nN.R)(P?.contactCardName?.value,P?.contactCardEmail?.value,D,M),locale:D,siteName:M}},l0=({rendering:N,fields:I,sitecoreContext:T,contactPersonImage:P,locale:D=r7.Xn,siteName:M="",...R})=>{let L=N.params?.RenderingIdentifier,$=T?.pageEditing,[F,B]=(0,rb.useState)(P??null),U=!!I?.contactCardPicture?.value?.src;return(0,rb.useEffect)(()=>{if((0,ni.Cx)()||U)return;let N=I?.contactCardName?.value,T=I?.contactCardEmail?.value;(N||T)&&(0,nN.R)(N,T,D,M).then(B)},[I?.contactCardEmail?.value,I?.contactCardName?.value,U,D,M]),(0,rF.jsx)(lY.ContactCardContent,{id:L||void 0,fields:I,isEditing:$,contactPersonImage:F,...R})};l0.displayName="ContactCard";let l1=l0;var l2=T(94936);let l3=({rendering:N,fields:I,...T})=>{let P=N?.params?.DynamicPlaceholderId,D=I?.cardImage,M=I?.cardLink,R=I?.cardTitle;return!I||I&&0===Object.keys(I).length?(0,rF.jsx)(rG.$,{id:P,title:"Card Title",msg:"Please add a Card image, link and title."}):(0,rF.jsx)(l2.Zp,{cardImage:D,cardLink:M,cardTitle:R,...T},P)};var l4=T(98199);let l5=` 924 relative md:flex-row md:gap-0 925 shadow-sm rounded-sm 926 h-fit w-full my-4 max-w-165 927 border-accent-iron md:border 928`,l6=(0,og.F)([l5],{variants:{completed:{true:"bg-accent-pampas text-gray-500 shadow-none",false:"bg-white"},defaultVariants:{width:"default"}}}),l8=({notification:N,className:I,dictionary:T,onDone:P,...D})=>{let[M,R]=(0,rb.useState)(N),[L,$]=(0,rb.useState)(!1),F=async()=>{$(!0),R({...M,isDone:!0,isRead:!0});try{if(!(await fetch("/api/notifications/updatenotification",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:M.userNotificationId,isDone:!0,isRead:!0})})).ok)throw Error("Failed to update notification");P?.()}catch(I){R(N),console.error(I)}finally{$(!1)}},B="HoursPortal"===N.source,U=B?T?.["write-hours"]:N.description,H=l4.C[N.type].toLowerCase(),z=(0,sW.X)({value:{href:N.url,text:B?T?.["tasks-register-hours"]??"Register hours":T?.["general-mark-done"]??"Open link",linktype:"external",target:"_blank"}}),W=!!N.url;return(0,rF.jsx)(n$.a,{className:(0,rK.cn)(l6({className:I,completed:!!N.isDone})),...D,children:L?(0,rF.jsx)(n$.a,{className:"flex items-center justify-center p-6",children:(0,rF.jsx)(op.R,{messages:[]})}):(0,rF.jsxs)(n$.a,{className:`grow ${N.isDone?"line-through":""}`,children:[(0,rF.jsxs)(n$.a,{className:"flex p-6",children:[(0,rF.jsx)(rq.In,{name:H,useOriginalColor:!0}),(0,rF.jsx)(rq.o5,{className:"mt-2 ml-4 font-medium md:mt-1 md:mb-0",plainText:N.title})]}),(0,rF.jsx)(rq.o5,{className:"pr-4 pl-18",plainText:U}),W?(0,rF.jsxs)(n$.a,{className:"mt-6 flex h-15 border-t border-accent-iron",children:[(0,rF.jsx)(nn.N,{className:"flex w-1/2 items-center justify-center border-r border-accent-iron text-sm font-bold text-ui-grey uppercase hover:bg-accent-pampas md:mt-0",field:z}),(0,rF.jsx)("a",{className:"flex w-1/2 items-center justify-center pl-4 font-bold text-ui-grey uppercase hover:bg-accent-pampas",onClick:()=>void F(),href:"#",children:(0,rF.jsx)("label",{htmlFor:"task-checkbox",className:"cursor-pointer text-sm",children:T?.["general-undo"]??"Afronden"})})]}):(0,rF.jsx)("a",{className:"mt-6 flex h-15 w-full cursor-pointer items-center justify-center border-t border-accent-iron text-sm font-bold text-ui-grey uppercase hover:bg-accent-pampas",onClick:()=>void F(),href:"#",children:T?.["general-mark-done"]??"Afronden"})]})})},l7=l8,l9=` 929 grow rounded-sm border border-accent-iron bg-white p-8 930 flex-col items-center lg:items-start 931 h-full w-full 932 md:mb-4 lg:mb-0 933 border-b-2 border-accent-iron md:border 934 bg-white 935 text-brunel-dark-grey text-d-h4 936 overflow-hidden rounded-sm 937 shadow-sm underline underline-offset-3 decoration-3 md:no-underline 938 939 `,ce=({fields:N})=>{let I=N?.data?.datasource?.downloadLinksCardTitle?.jsonValue?.value??"",T=(N?.data?.datasource?.children?.results??[]).filter(N=>{let I=N?.downloadLink?.jsonValue?.value;return I?.displayName&&I?.src});return(0,rF.jsxs)(rq.az,{className:l9,children:[(0,rF.jsx)(rq.o5,{type:"h3",plainText:I}),0===T.length?(0,rF.jsx)(rq.o5,{type:"medium",plainText:"No links added",className:"text-ui-grey"}):(0,rF.jsx)("ul",{className:"m-0 list-inside list-none",children:T.map((N,I)=>{let T=N?.downloadLink?.jsonValue?.value;if(!T)return null;let{displayName:P,src:D}=T;return(0,rF.jsx)("li",{className:"flex items-center border-b border-accent-iron py-4 last:border-0",children:(0,rF.jsxs)("a",{href:D,className:"m-0 line-clamp-1 flex w-full items-center font-medium brunel-underline-3-brunel-yellow hover:brunel-underline-3-brunel-dark-grey focus:brunel-underline-3-brunel-dark-grey",target:"_blank",rel:"noreferrer",children:[P,(0,rF.jsx)(rq.In,{name:"download",size:"xsmall",className:"ml-auto"})]})},`${I}_${P}`)})})]})},ct=({rendering:N,fields:I,...T})=>{let P=N?.params?.DynamicPlaceholderId,D=I?.cardImage,M=(0,sW.X)(I?.cardLink),R=I?.cardTitle,L=(0,rK.Qh)(N?.params?.Styles);return!I||I&&0===Object.keys(I).length?(0,rF.jsx)(rG.$,{id:P,title:ct.name,msg:"Please add a Card image, link and title."}):(0,rF.jsx)(l2.Zp,{cardImage:D,cardLink:M,cardTitle:R,className:L,...T},P)},cr=({rendering:N,fields:I,...T})=>{let P=N.params.DynamicPlaceholderId,D=I?.cardImage,M=I?.cardTitle,R=I?.cardDescription,L=(0,sW.X)(I?.cardLink),$=(0,rK.Qh)(N?.params?.Styles);return!I||I&&0===Object.keys(I).length?(0,rF.jsx)(rG.$,{id:P,title:ct.name,msg:"Please add a Card image, link and title and description."}):(0,rF.jsx)(l2._h,{cardImage:D,cardLink:L,cardTitle:M,cardDescription:R,className:$,...T},P)},cn=({rendering:N,fields:I,...T})=>{let P=N.params.DynamicPlaceholderId,D=I?.cardImage,M=I?.cardTitle,R=I?.cardDescription,L=(0,sW.X)(I?.cardLink??{href:""}),$=(0,rK.Qh)(N?.params?.Styles);return!I||I&&0===Object.keys(I).length?(0,rF.jsx)(rG.$,{id:P,title:ct.name,msg:"Please add a Card image, link and title and description."}):(0,rF.jsx)(l2.bp,{cardImage:D,cardLink:L,cardTitle:M,cardDescription:R,className:$,...T},P)},ca=({rendering:N,fields:I,...T})=>{let P=N.params.DynamicPlaceholderId,D=I?.cardImage,M=I?.cardTitle,R=I?.cardDescription,L=I?.cardTag,$=(0,rK.Qh)(N?.params?.Styles);return!I||I&&0===Object.keys(I).length?(0,rF.jsx)(rG.$,{id:P,title:ct.name,msg:"Please add a Card image, link and title and description."}):(0,rF.jsx)(l2.L_,{cardLink:{value:{href:""}},cardImage:D,cardTag:L,cardTitle:M,cardDescription:R,className:$,...T},P)},ci=ct;
939ci.displayName="Default",ct.displayName="Card",cr.displayName="MarketCard",cn.displayName="AppCard",ca.displayName="NonClickableCard";let co=({fields:N})=>{let{ctaButtonAlignment:{value:I},ctaButtonLink:T,ctaButtonColorVariant:{value:P}}=N,D="right"===I.toLowerCase(),M=["primary","alternative","secondary","tertiary"].includes(P?.toLowerCase())?P.toLowerCase():"primary";return(0,rF.jsx)(n$.a,{className:`flex w-full py-4 ${D?"justify-end":"justify-start"}`,children:(0,rF.jsx)(rU.Button,{variant:M,linkField:T,iconName:"arrow-right",iconSide:"right"})})};var cs=T(34644);let cl=({fields:N,params:I})=>{let T=I.RenderingIdentifier,P=N?.brunelMapCentralPointLatitude,D=N?.brunelMapCentralPointLongitude,M=N?.brunelMapZoom,R=N?.brunelMapMode;if(!N||0===Object.keys(N).length)return(0,rF.jsx)(rG.$,{id:T,title:cl.name,msg:"Please add map coordinates, zoom level and a mapmode"});if(!P?.value||!D?.value)return(0,rF.jsx)(rG.$,{id:T,title:cl.name,msg:"Please add latitude and longitude coordinates to the map"});let L=+M?.fields?.Value?.value,$=parseFloat(P?.value),F=parseFloat(D?.value),B=R?.value?.value;return(0,rF.jsx)(rq.az,{className:`component p-0 ${I.styles}`,id:T||void 0,children:(0,rF.jsx)(il.D,{brunelMapCentralPointLatitude:$,brunelMapCentralPointLongitude:F,brunelMapZoom:L,brunelMapType:B})})};var cc=T(17813);let cu=N=>{let I=N.fields?.data?.datasource,T=(I?.ancestors??[]).slice().reverse(),P=T.length>1?T[T.length-1]:T[0],D=P?.pageName?.value??"Home";return T?.length==0?(0,rF.jsx)(rG.$,{id:N.params.id,title:cu.name,msg:"The breadcrumb will not have any content on this page. please remove it."}):(0,rF.jsx)(rF.Fragment,{children:(0,rF.jsx)(rq.az,{className:"component bg-grey-200 solid h-18 w-full border-y border-accent-iron",children:(0,rF.jsx)(rq.az,{className:"component-content max-w-(--breakpoint-lg) p-6 xl:mx-auto",children:(0,rF.jsxs)(rq.az,{className:"flex gap-4",children:[(0,rF.jsx)(rz(),{href:P?.url?.path??"#",className:"flex sm:hidden",children:(0,rF.jsx)(rq.In,{name:"chevron-left",alt:P?.pageName?.value,className:"inline sm:hidden"})}),(0,rF.jsx)(cc.BreadcrumbLink,{className:"inline pb-[3px] sm:hidden",weight:"medium",href:P?.url?.path??"#",text:D}),(0,rF.jsx)(rz(),{href:T[0]?.url?.path??"#",className:"flex",children:(0,rF.jsx)(rq.In,{name:"home",alt:"Home",className:"hidden sm:inline-block"})}),(0,rF.jsx)(rq.In,{name:"chevron-right",className:"hidden sm:inline"}),T.slice(1).map((N,I)=>(0,rF.jsxs)(rb.Fragment,{children:[(0,rF.jsx)(cc.BreadcrumbLink,{className:"hidden sm:inline",weight:"medium",href:N?.url?.path??"#",text:N?.pageName?.value}),(0,rF.jsx)(rq.In,{name:"chevron-right",size:"medium",color:"brunel-dark-grey",className:"hidden hover:bg-brunel-dark-grey sm:inline"})]},`breadcrumb-${I}`)),(0,rF.jsx)(cc.BreadcrumbLink,{className:"pointer-events-none hidden sm:inline",weight:"normal",href:I?.url?.path??"#",text:I?.pageName?.value})]})})})})};var cd=T(29164),cf=T(70208),ch=T(33455),cp=T(61181),cm=T(2582);let cg=async(N,I,T)=>{let P=I.sitecore.context.site?.name??"",D=I.sitecore.context.language??r7.Xn,M=await (0,s8.aI)(P,aw.kJ,D),R=M?.id;if(!R)return r6.A.blog("Failed to fetch the blogItemData while executing getStaticProps in BlogOverview component"),{};let L="All";if(!I.sitecore.context.pageEditing){let N=T?.params?.requestPath;void 0!==N&&(L="string"!=typeof N?N.pop()??"":N)}let $=N?.fields,F=$?.data?.datasource?.parent?.allCategories?.targetItems,B="All"===L?null:F?.find(N=>N?.blogCategoryName?.value?.replaceSpacesWithDashes().toLowerCase()===L.toLowerCase())?.id??"",U=I.sitecore.route?.itemId?.toUpperCase()??"",H=await (B?(0,cm.$3)(R,U,aw.RM,[B],D):(0,cm.K4)(R,aw.RM,D));return H?{categoryPageId:B,blogItemId:R,category:L,categoryPage:B&&R?await (0,cm.Bn)(B??"",D).catch(N=>{r6.A.blog("Failed to fetch getBlogCategoryById inside BlogOverview component",{...N})}):void 0,blog:H,context:T,dictionary:I.dictionary}:(r6.A.blog(`No blog data found for Blog Page Overview with ID '${R}'`),{})},cy=({rendering:N,fields:I})=>{let T=(0,s5.Fz)(N.uid),{page:P}=(0,rj.M5)(),D=P.locale??r7.Xn,M=T?.dictionary,R=M?.all??"[all]",L=(0,rb.useMemo)(()=>(0,cp.buildOverviewCategories)(I,R),[R,I]),{loading:$,results:F,pageInfo:B,total:U,selectedCategories:H,updateSelectedCategories:z,getNextResults:W}=(0,ch.useBlogOverviewResults)({data:T,locale:D,categories:L,allCategoriesLabel:R});return T?(0,rF.jsxs)(rq.az,{className:"flex flex-1 flex-col items-center gap-12","data-testid":ai.Qa.TestIds.BlogOverviewComponent.base,children:[T.categoryPage&&(0,rF.jsx)(rq.tk,{styledClasses:[],height:"sm",heroContent:{heroTitle:{value:T?.categoryPage?.item?.blogCategoryName?.value?.toString().capitalize()??"[hero title]"},heroImage:T?.categoryPage?.item?.blogCategoryHeaderImage?.data}}),(0,rF.jsxs)(rq.az,{className:"w-full max-w-(--breakpoint-lg) py-8 lg:px-0",children:[!T.categoryPageId&&T.blogItemId&&(0,rF.jsx)(rq.o5,{type:"h2",plainText:(T?.categoryPage?.item?.blogCategoryName?.value?.toString()??R??T?.category?.replaceDashesWithSpaces()??"Filter by category")?.toTitleCase()}),!T.categoryPageId&&(0,rF.jsx)(rq.az,{className:"flex flex-wrap gap-4",children:L.map((N,I)=>(0,rF.jsx)(s4.TagButton,{value:(0,ni.Cx)()?`Label ${I}`:N?.blogCategoryName?.value??R,selected:H.includes(N?.blogCategoryName?.value),onSelect:z,tabIndex:I},N.id))}),T.categoryPage?.item?.blogCategoryIntroText?.value&&(0,rF.jsx)(rq.az,{className:"rich-text",dangerouslySetInnerHTML:{__html:T.categoryPage?.item?.blogCategoryIntroText?.value?.toString()??""}}),F.length?(0,rF.jsxs)(rF.Fragment,{children:[(0,rF.jsx)(cd.BlogOverviewResultCardList,{results:F}),(0,rF.jsxs)(rq.az,{className:"mt-10 flex flex-col items-center justify-center gap-6",children:[(0,rF.jsxs)(rq.az,{className:"flex w-full items-center justify-center gap-6",children:[(0,rF.jsx)(rq.az,{as:"span",className:"h-px w-full flex-1 bg-brunel-dark-grey"}),(0,rF.jsx)(rq.o5,{type:"medium",plainText:`${F.length} ${M?.of} ${U} ${M?.viewed}`}),(0,rF.jsx)(rq.az,{as:"span",className:"h-px w-full flex-1 bg-brunel-dark-grey"})]}),B.hasNext&&(0,rF.jsx)(rU.Button,{variant:"secondary",iconSide:"right",iconName:"
939chevron-down",plainText:`${M?.more??"Show more"} ${M?.["blog-artikel"]??"blogs"}`,onClick:()=>{W()}})]})]}):$?(0,rF.jsx)(rq.az,{className:"flex flex-1 flex-col items-center",children:(0,rF.jsx)(op.R,{messages:["Loading..."]})}):(0,rF.jsx)(rq.az,{className:"flex flex-1 flex-col items-center p-10",children:(0,rF.jsx)(rq.o5,{type:"large",plainText:[M?.["blog-no-results"]??"[blog-no-results]"]})})]})]}):null};var cb=T(78211),cv=T(54687),cw=T(2171),cx=T(43680),cA=T(4896),cE=T(96824),cS=T(21791),c_=T(95750),ck=T(99742);let cC=async(N,I,T)=>{if(!(0,r3.um)(T))return{dictionary:I.dictionary,vacancyData:null,seek:{},openVacancyIDs:ck.env.OPEN_VACANCY_IDS?.toLowerCase()?.split(",")??[]};if(T?.preview)return{dictionary:I.dictionary,vacancyData:null,seek:{},openVacancyIDs:[]};let P=Object.keys(T.query).reduce((N,I)=>(N[I.toLowerCase()]=T.query[I],N),{}),D=await r5.u.getByPublicationId(P?.vacancyid,T?.locale??r7.Xn)??{};return{dictionary:I.dictionary,vacancyData:D,openVacancyIDs:ck.env.OPEN_VACANCY_IDS?.toLowerCase()?.split(",")??[]}},cj=({fields:N,dictionary:I,vacancyData:T,openVacancyIDs:P})=>{let{error:D,setError:M,language:R,isEditing:L,getExtraFields:$,setInteractionDataLayer:F,setSubmissionDataLayer:B,router:U}=(0,cv.useApplyFormTH)({fields:N,vacancyData:T,openVacancyIDs:P}),H=null;return L?(0,rF.jsx)("div",{className:"flex flex-1 justify-center bg-accent-spring-wood p-8",children:(0,rF.jsx)(rq.o5,{type:"h4",className:"text-center",textField:{value:"The ApplyForm component will show here.\nNot available in editor mode."}})}):(0,rF.jsx)("div",{id:"ApplyFormTH",className:"flex flex-1 justify-center bg-th-generic-background text-th-body-text",children:(0,rF.jsx)("div",{className:"flex max-w-(--breakpoint-lg) flex-1 lg:justify-center [&_input]:bg-white",children:(0,rF.jsx)(o0.l1,{initialValues:{...c_.ft,firstName:"",lastName:"",emailAddress:"",phonePrefix:N?.phonePrefix?.data?.[0]?.label?.match(/\+\d{1,3}/)?.[0]??"",phoneNumber:"",country:N?.country?.data?.[0]?.value??T?.searchfieldcountry??"",hidden:{country:N?.country?.hide??!1,postalCode:N?.postalCode?.hide??!1},required:{phoneNumber:N?.phoneNumber?.required??!1}},initialTouched:{phonePrefix:!!N?.phonePrefix?.data?.[0]?.label&&N?.phonePrefix?.data?.[0]?.label!=="",country:!!N?.country?.data?.[0]?.value&&N?.country?.data?.[0]?.value!==""},validationSchema:(0,c_.X$)(N),onSubmit:(0,c_.xy)($,()=>{r6.A.forms("Redirecting to thank you page"),B(),N?.successPageLink?.friendlyUrl&&U.push(N.successPageLink.friendlyUrl)},I=>{switch(I){case 409:if(r6.A.forms(`[${I}]: Email already applied to this vacancy. Redirecting to thank you page...`),N?.successPageLink?.friendlyUrl){U.push(N?.successPageLink?.friendlyUrl,{});break}default:r6.A.forms(`[${I}]: Something went wrong on ApplyFormSubmission.`),M({title:N?.applyFormApiErrorMessageTitle??"applyFormApiErrorMessageTitle",message:N?.applyFormApiErrorMessage??"applyFormApiErrorMessage",dataLayer:F("formError","generic-error-message")})}}),children:({values:P,errors:L,touched:$,isSubmitting:B,setTouched:U,setFieldTouched:z,setFieldValue:W,setSubmitting:q,submitForm:G})=>{let{handleResumeDrop:K,handleResumeDelete:V}=(0,cw.useApplyFormFormikHandlers)({values:P,touched:$,setFieldValue:W,setFieldTouched:z}),Y=({className:N})=>(0,rF.jsx)(rU.Button,{id:lo.y.ApplyNowButton,className:(0,rK.cn)("h-12",N,{"opacity-50":B}),variant:"taylorhopkinson",plainText:I?.["apply-now"]??"[apply now]",disabled:B,loading:B,iconName:"arrow-right",iconSide:"right",onClick:()=>{U({resumeData:{file:!0,fileName:!0,base64BinaryData:!0}},!0),G()}});return(0,rF.jsxs)("div",{className:"flex flex-1 flex-col",children:[(0,rF.jsx)(cS.y,{type:"error",data:D,open:""!==D.message,onClose:()=>{q(!1),M({title:"",message:"",dataLayer:void 0})}}),(0,rF.jsx)(iw.l,{open:B,children:(0,rF.jsx)(op.R,{messages:N?.submittingFormMessages?.split("|")??[]})}),(0,rF.jsx)(o0.lV,{name:"apply",method:"POST",encType:"multipart/form-data",className:"flex flex-1 flex-col lg:flex-row",children:(0,rF.jsxs)("div",{className:"flex flex-1 flex-col gap-8 px-6 py-8 lg:px-0 lg:py-12 lg:pr-12",children:[(0,rF.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,rF.jsx)(rq.o5,{type:"h2",plainText:N?.formTitle?.replace("${vacancyTitle}",T?.title??"")}),(0,rF.jsx)(o1.Z,{id:"firstName",label:N?.firstName?.label,placeholder:N?.firstName?.placeholder,errors:[{touched:$?.firstName,message:L?.firstName}],variant:"taylorhopkinson",setDataLayer:F("formClick","firstName"),setDataLayerError:F("formError","firstName")}
939),(0,rF.jsx)(o1.Z,{id:"lastName",label:N?.lastName?.label,placeholder:N?.lastName?.placeholder,errors:[{touched:$?.lastName,message:L?.lastName}],variant:"taylorhopkinson",setDataLayer:F("formClick","lastName"),setDataLayerError:F("formError","lastName")}),(0,rF.jsx)(o1.Z,{id:"emailAddress",label:N?.email?.label,placeholder:N?.email?.placeholder,errors:[{touched:$?.emailAddress,message:L?.emailAddress}],variant:"taylorhopkinson",setDataLayer:F("formClick","emailAddress"),setDataLayerError:F("formError","emailAddress")}),(0,rF.jsx)(cE.p,{id:"phoneNumber",label:N?.phoneNumber?.label,placeholder:N?.phoneNumber?.placeholder,errors:[{id:"phonePrefix",touched:$?.phonePrefix,message:L?.phonePrefix},{id:"phoneNumber",touched:$?.phoneNumber,message:L?.phoneNumber}],prefixProps:{id:"phonePrefix",placeholder:N?.phonePrefix?.placeholder,searchPlaceholder:N?.phonePrefix?.searchPlaceholder,value:P.phonePrefix,data:N?.phonePrefix?.data,setDataLayer:F("formClick","phonePrefix"),setDataLayerError:F("formError","phonePrefix")},variant:"taylorhopkinson",setDataLayer:F("formClick","phoneNumber"),setDataLayerError:F("formError","phoneNumber")}),!N?.country?.hide&&(0,rF.jsx)(cx.a,{id:"country",label:N?.country?.label,searchable:!0,searchPlaceholder:N?.country?.searchPlaceholder,placeholder:N?.country?.placeholder,value:P.country,data:N?.country?.data,errors:[{touched:$?.country,message:L?.country}],setDataLayer:F("formClick","country"),setDataLayerError:F("formError","country")}),!N?.postalCode?.hide&&c_.zm.includes(P.country)&&(0,rF.jsx)(o1.Z,{id:"postalCode",label:N?.postalCode?.label,placeholder:N?.postalCode?.placeholder,errors:[{touched:$?.postalCode,message:L?.postalCode}],variant:"taylorhopkinson",setDataLayer:F("formClick","postalCode"),setDataLayerError:F("formError","postalCode")}),(0,rF.jsx)(cA.Z,{id:"resumeData",locale:R.toLowerCase(),initialFile:H,label:N?.resume?.label,placeholder:N?.resume?.placeholder,variant:"taylorhopkinson",dragAndDropPlaceholder:N?.resume?.dragAndDropPlaceholder,dragAndDropActivePlaceholder:N?.resume?.dragAndDropActivePlaceholder,chooseFile:N?.resume?.resumeChooseFile??"[choose file]",fileUploadAddedOn:N?.resume?.uploadFileAddedOn,fileSizeIncorrect:N?.resume?.errors?.fileWrongSize??"[fileWrongSize]",fileTypeIncorrect:N?.resume?.errors?.invalidFormat??"[invalidFormat]",errors:[{id:"resumeData.file",touched:$?.resumeData?.file,message:L?.resumeData?.file},{id:"resumeData.fileName",touched:$?.resumeData?.fileName,message:L?.resumeData?.fileName},{id:"resumeData.base64BinaryData",touched:$?.resumeData?.base64BinaryData,message:L?.resumeData?.base64BinaryData}],fileProps:{onDrop:K,onDelete:V},setDataLayer:F("formClick","resumeData"),setDataLayerError:F("formError","resumeData")})]}),(0,rF.jsxs)("div",{className:"flex flex-col gap-2 text-ui-grey",children:[(0,rF.jsx)(Y,{className:"w-full lg:w-max"}),(0,rF.jsx)(rq.o5,{type:"small",className:"text-bol mt-2 text-justify text-th-body-text!",parseText:!0,plainText:N?.privacyPolicyText})]})]})})]})}})})})},cO={availableFrom:{label:"Available from",placeholder:"Day / Month / Year",required:!0,hide:!1,errors:{required:"Available from date is required",invalidFormat:"Please enter a valid date"}},noticePeriodDays:{label:"Notice period",placeholder:"Enter number of days",required:!0,hide:!1,errors:{required:"Please select your notice period",invalidFormat:"Please enter a valid number of days"},data:[{label:"Immediately Available",value:"0"},{label:"1 month",value:"30"},{label:"2 months",value:"60"},{label:"3 months",value:"90"},{label:"Other",value:"-"}]},rolesSought:{label:"Dream job",placeholder:"e.g. Senior Project Engineer, Lead Mechanical Designer",required:!0,hide:!1,errors:{required:"Please enter the roles you are seeking",maxLength:"Maximum 200 characters"}},preferredWagePerYear:{label:"Preferred salary",placeholder:"⬠per year",required:!0,hide:!1,errors:{required:"Please enter your preferred annual salary",invalidFormat:"Please enter a valid amount"}},freelanceWagePerDay:{label:"Preferred salary",secondaryLabel:"Per Day",placeholder:"⬠per day",required:!0,hide:!1,errors:{required:"Please enter your daily freelance rate",invalidFormat:"Please enter a valid amount"}},freelanceWagePerHour:{label:"Preferred salary",secondaryLabel:"Per Hour",placeholder:"⬠per hour",required:!0,hide:!1,errors:{required:"Please enter your hourly freelance rate",invalidFormat:"Please enter a valid amount"}},travelOption:{label:"Where would you like to work?",placeholder:"",required:!0,hide:!1,errors:{required:"Please select your work location preference"},data:[{label:"I'm willing to relocate",value:"Relocate"},{label:"I'd commute daily",value:"Daily"},{label:"I'd commute weekly (weekend commute)",value:"Weekly"}]},travelPreference:{label:"Travel Preference",placeholder:"Travel preference",required:!0,hide:!1,errors:{required:"Please set your travel preference"},data:[{label:"Own transportation",value:"OwnTransportation"},{label:"Public transporation",value:"PublicTransportation"},{label:"No preference",value:"NoPreference"}]},travelDistancePreference:{label:"Travel Distance Preference",placeholder:"",required:!0,hide:!1,errors:{minLength:"0",maxLength:"200",required:"Please set your maximum commute distance"}},travelTime:{label:"Travel time",placeholder:"Travel time",required:!0,hide:!1,errors:{required:"Please set your travel time"},data:[{label:"30 minutes",value:"HalfHour"},{label:"45 minutes",value:"ThreeQuartersOfAnHour"},{label:"1 hour",value:"OneHour"},{label:"1.5 hours",value:"OneAndAHalfHours"},{label:"2 hours",value:"TwoHours"},{label:"> 2 hours",value:"MoreThanTwoHours"}]},willRelocate:{label:"I'm willing to relocate",placeholder:"",required:!0,hide:!1,errors:{}},skillLevels:{label:"Language skills",placeholder:"Add language",required:!0,hide:!1,errors:{required:"Please add at least one language"},data:[{label:"German",value:"German"},{label:"English",value:"English"},{label:"Dutch",value:"Dutch"},{label:"French",value:"French"},{label:"Spanish",value:"Spanish"},{label:"Italian",value:"Italian"},{label:"Polish",value:"Polish"}],profiencyOptions:[{label:"Basic",value:"Basic"},{label:"Working",value:"Working"},{label:"Good",value:"Good"},{label:"Excellent",value:"Excellent"}]}};var cN=T(17033),cI=T(78028),cT=T(54587),cP=T.n(cT),cD=T(65745),cM=T(39244),cR=T(32038),cL=T(40203),c$=T(15583),cF=T(36246),cB=T(99742);let cU=async(N,I,T)=>{if(!(0,r3.um)(T))return{dictionary:I.dictionary,vacancyData:null,seek:{},openVacancyIDs:cB.env.OPEN_VACANCY_IDS?.toLowerCase()?.split(",")??[]};if(T?.preview)return{dictionary:I.dictionary,vacancyData:null,seek:{},openVacancyIDs:[]};let P=cB.env.SEEK_REDIRECT_URI,D=Object.keys(T.query).reduce((N,I)=>(N[I.toLowerCase()]=T.query[I],N),{}),M=await r5.u.getByPublicationId(D?.vacancyid,T?.locale??r7.Xn)??{},R={};try{let N=D["seek-prefill-id"],I=D["seek-token"];R={seekToken:I??null,seekButton:(await cF.A.getApplyWithSeekButtonQuery({redirectUri:`${P}/${T.locale}/apply?vacancyID=${M?.publicationId}`,hirerId:"seekAnz:organization:seek:wDC6b7WP",applicationUri:`${P}/${T.locale}/apply?vacancyID=${M?.publicationId}`,seekHirerJobReference:M?.publicationId??null,token:I??null}))?.data?.applyWithSeekButton,candidateProfile:N?(await cF.A.getSeekCandidateProfileQuery({id:N}))?.data?.candidateProfile:void 0};let L=R?.candidateProfile?.attachments?.find(N=>N?.seekRoleCode==="Resume")?.url;if(L)try{let N=await cD.h.downloadResume(L);R={...R,resume:{base64:N?.base64,filename:N?.filename,fileType:N?.type}}}catch(N){R={...R,debug:{error:JSON.stringify(N)}},r6.A.forms("Failed to fetch resume as blob",N)}}catch(N){R={...R,debug:{error:JSON.stringify(N)}},r6.A.forms("SEEK V2",N)}return{dictionary:I.dictionary,vacancyData:M,seek:R,openVacancyIDs:cB.env.OPEN_VACANCY_IDS?.toLowerCase()?.split(",")??[]}},cH=({fields:N,dictionary:I,vacancyData:T,seek:P,openVacancyIDs:D})=>{let{error:M,setError:R,file:L,language:$,isEditing:F,getExtraFields:B,setInteractionDataLayer:U,setSubmissionDataLayer:H,router:z}=(0,cw.useApplyForm)({fields:N,vacancyData:T,seek:P,openVacancyIDs:D});return F?(0,rF.jsx)("div",{className:"flex flex-1 justify-center bg-accent-spring-wood p-8",children:(0,rF.jsx)(rq.o5,{type:"h4",className:"text-center",textField:{value:"The ApplyForm component will show here.\nNot available in editor mode."}})}):(0,rF.jsx)("div",{id:"ApplyForm",className:"flex flex-1 justify-center bg-[linear-gradient(to_right,#FAF9F5_50%,#F7F7F7_50%)]",children:(0,rF.jsx)("div",{className:"flex max-w-(--breakpoint-lg) flex-1 lg:justify-center [&_input]:bg-white",children:(0,rF.jsx)(o0.l1,{initialValues:{...c_.ft,firstName:P?.candidateProfile?.candidate?.person?.name?.given??"",lastName:P?.candidateProfile?.candidate?.person?.name?.fam
939ily??"",emailAddress:P?.candidateProfile?.candidate?.person?.communication?.email?.[0]?.address??"",phonePrefix:P?.candidateProfile?.candidate?.person?.communication?.phone?.[0]?.formattedNumber?.split(" ")?.[0]??N?.phonePrefix?.data?.[0]?.label?.match(/\+\d{1,3}/)?.[0]??"",phoneNumber:P?.candidateProfile?.candidate?.person?.communication?.phone?.[0]?.formattedNumber?.replace(/\+\d{1,3}/,"")?.replace(/ /g,"")??"",country:N?.country?.data?.[0]?.value??T?.searchfieldcountry??"",hidden:{country:N?.country?.hide??!1,postalCode:N?.postalCode?.hide??!1},required:{phoneNumber:N?.phoneNumber?.required??!1,availableFrom:N?.availableFrom?.required??!1,noticePeriodDays:N?.noticePeriodDays?.required??!1,rolesSought:N?.rolesSought?.required??!1,preferredWagePerYear:N?.preferredWagePerYear?.required??!1,freelanceWagePerDay:N?.freelanceWagePerDay?.required??!1,freelanceWagePerHour:N?.freelanceWagePerHour?.required??!1,travelOption:N?.travelOption?.required??!1,travelDistancePreference:N?.travelDistancePreference?.required??!1,travelPreference:N?.travelPreference?.required??!1,travelTime:N?.travelTime?.required??!1,willRelocate:N?.willRelocate?.required??!1,skillLevels:N?.skillLevels?.required??!1}},initialTouched:{firstName:!!P?.candidateProfile?.candidate?.person?.name?.given,lastName:!!P?.candidateProfile?.candidate?.person?.name?.family,emailAddress:!!P?.candidateProfile?.candidate?.person?.communication?.email?.[0]?.address,phonePrefix:!!N?.phonePrefix?.data?.[0]?.label&&N?.phonePrefix?.data?.[0]?.label!=="",phoneNumber:!!P?.candidateProfile?.candidate?.person?.communication?.phone?.[0]?.formattedNumber?.replace(/\+\d{1,3}/,""),country:!!N?.country?.data?.[0]?.value&&N?.country?.data?.[0]?.value!==""},validationSchema:(0,c_.X$)(N),onSubmit:(0,c_.xy)(B,()=>{P?.seekToken?cI.A.post("/api/forms/seek-send-signal",{typeCode:"ApplicationComplete",token:P?.seekToken??null}).catch(N=>{r6.A.forms("Failed to send signal to SEEK",N)}).finally(()=>{r6.A.forms("Signal sent to SEEK"),H(),N?.successPageLink?.friendlyUrl&&z.pu
939sh(N.successPageLink.friendlyUrl,{})}):(r6.A.forms("No SEEK token, redirecting to thank you page"),H(),N?.successPageLink?.friendlyUrl&&z.push(N.successPageLink.friendlyUrl))},I=>{switch(I){case 409:if(r6.A.forms(`[${I}]: Email already applied to this vacancy. Redirecting to thank you page...`),N?.successPageLink?.friendlyUrl){z.push(N?.successPageLink?.friendlyUrl,{});break}default:r6.A.forms(`[${I}]: Something went wrong on ApplyFormSubmission.`),R({title:N?.applyFormApiErrorMessageTitle??"applyFormApiErrorMessageTitle",message:N?.applyFormApiErrorMessage??"applyFormApiErrorMessage",dataLayer:U("formError","generic-error-message")})}}),children:({values:D,errors:F,touched:B,isSubmitting:H,setTouched:z,setFieldTouched:W,setFieldValue:q,setSubmitting:G,submitForm:K})=>{let{handleResumeDrop:V,handleResumeDelete:Y,handleTravelOptionSelect:J}=(0,cw.useApplyFormFormikHandlers)({values:D,touched:B,setFieldValue:q,setFieldTouched:W}),Q=({className:N})=>(0,rF.jsx)(rU.Button,{id:lo.y.ApplyNowButton,className:(0,rK.cn)("h-12",N,{"opacity-50":H}),variant:"primary",plainText:I?.["apply-now"]??"[apply now]",disabled:H,loading:H,iconName:"arrow-right",onClick:()=>{z((0,o0.dc)(D,!0),!0),K()}});return(0,rF.jsxs)("div",{className:"flex flex-1 flex-col",children:[(0,rF.jsx)(cS.y,{type:"error",data:M,open:""!==M.message,onClose:()=>{G(!1),R({title:"",message:"",dataLayer:void 0})}}),(0,rF.jsx)(iw.l,{open:H,children:(0,rF.jsx)(op.R,{messages:N?.submittingFormMessages?.split("|")??[]})}),(0,rF.jsxs)(o0.lV,{name:"apply",method:"POST",encType:"multipart/form-data",className:"flex flex-1 flex-col lg:flex-row",children:[(0,rF.jsxs)("div",{className:"flex flex-1 flex-col gap-8 bg-accent-spring-wood px-6 py-8 lg:px-0 lg:py-12 lg:pr-12",children:[(0,rF.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,rF.jsx)(rq.o5,{type:"h2",plainText:N?.formTitle?.replace("${vacancyTitle}",T?.title??"")}),N?.seek?.active&&P?.seekButton&&(0,rF.jsxs)("div",{className:"flex flex-col gap-4 lg:max-w-200",children:[(0,rF.jsx)(rq.o5,{type:"large",plainText:N?.seek?.applyWithText??""}),(0,rF.jsx)("a",{className:"max-w-max",href:P?.seekButton.url,onClick:U("formClick","seekLogin"),children:(0,rF.jsx)(cP(),{src:P?.seekButton.images.accent,alt:N?.seek?.applyWithText??""})})]}),(0,rF.jsx)(o1.Z,{id:"firstName",label:N?.firstName?.label,placeholder:N?.firstName?.placeholder,errors:[{touched:B?.firstName,message:F?.firstName}],setDataLayer:U("formClick","firstName"),setDataLayerError:U("formError","firstName")}),(0,rF.jsx)(o1.Z,{id:"lastName",label:N?.lastName?.label,placeholder:N?.lastName?.placeholder,errors:[{touched:B?.lastName,message:F?.lastName}],setDataLayer:U("formClick","lastName"),setDataLayerError:U("formError","lastName")}),(0,rF.jsx)(o1.Z,{id:"emailAddress",label:N?.email?.label,placeholder:N?.email?.placeholder,errors:[{touched:B?.emailAddress,message:F?.emailAddress}],setDataLayer:U("formClick","emailAddress"),setDataLayerError:U("formError","emailAddress")}),(0,rF.jsx)(cE.p,{id:"phoneNumber",label:N?.phoneNumber?.label,placeholder:N?.phoneNumber?.placeholder,errors:[{id:"phonePrefix",touched:B?.phonePrefix,message:F?.phonePrefix},{id:"phoneNumber",touched:B?.phoneNumber,message:F?.phoneNumber}],prefixProps:{id:"phonePrefix",placeholder:N?.phonePrefix?.placeholder,searchPlaceholder:N?.phonePrefix?.searchPlaceholder,value:D.phonePrefix,data:N?.phonePrefix?.data,setDataLayer:U("formClick","phonePrefix"),setDataLayerError:U("formError","phonePrefix")},setDataLayer:U("formClick","phoneNumber"),setDataLayerError:U("formError","phoneNumber")}),!N?.country?.hide&&(0,rF.jsx)(cx.a,{id:"country",label:N?.country?.label,searchable:!0,searchPlaceholder:N?.country?.searchPlaceholder,placeholder:N?.country?.placeholder,value:D.country,data:N?.country?.data,errors:[{touched:B?.country,message:F?.country}],setDataLayer:U("formClick","country"),setDataLayerError:U("formError","country")}),!N?.postalCode?.hide&&c_.zm.includes(D.country)&&(0,rF.jsx)(o1.Z,{id:"postalCode",label:N?.postalCode?.label,placeholder:N?.postalCode?.placeholder,errors:[{touched:B?.postalCode,message:F?.postalCode}],setDataLayer:U("formClick","postalCode"),setDataLayerError:U("formError","postalCode")}),(!N?.availableFrom?.hide||!N?.noticePeriodDays?.hide)&&c_.Cc.includes(D.country)&&(0,rF.jsx)(cM.B,{showNoticePeriod:!N?.noticePeriodDays?.hide,showAvailableFrom
939:!N?.availableFrom?.hide,noticePeriod:{label:N?.noticePeriodDays?.label,placeholder:N?.noticePeriodDays?.placeholder,options:N?.noticePeriodDays?.data??[],errors:[{touched:B?.noticePeriodDays,message:F?.noticePeriodDays}],setDataLayer:U("formClick","noticePeriodDays"),setDataLayerError:U("formError","noticePeriodDays")},availableFrom:{label:N?.availableFrom?.label,locale:$.toLowerCase(),placeholder:N?.availableFrom?.placeholder,errors:[{touched:B?.availableFrom,message:F?.availableFrom}],setDataLayer:U("formClick","availableFrom"),setDataLayerError:U("formError","availableFrom")}}),!N?.rolesSought?.hide&&c_.Cc.includes(D.country)&&(0,rF.jsx)(o1.Z,{id:"rolesSought",label:N?.rolesSought?.label,placeholder:N?.rolesSought?.placeholder,errors:[{touched:B?.rolesSought,message:F?.rolesSought}],setDataLayer:U("formClick","rolesSought"),setDataLayerError:U("formError","rolesSought")}),(!N?.preferredWagePerYear?.hide||!N?.freelanceWagePerDay?.hide||!N?.freelanceWagePerHour?.hide)&&c_.Cc.includes(D.country)&&(0,rF.jsx)(c$.u,{permanent:{id:"preferredWagePerYear",label:N?.preferredWagePerYear?.label,placeholder:N?.preferredWagePerYear?.placeholder,errors:[{touched:B?.preferredWagePerYear,message:F?.preferredWagePerYear}],setDataLayer:U("formClick","preferredWagePerYear"),setDataLayerError:U("formError","preferredWagePerYear")},freelanceDay:{id:"freelanceWagePerDay",label:N?.freelanceWagePerDay?.label,secondaryLabel:N?.freelanceWagePerDay?.secondaryLabel,placeholder:N?.freelanceWagePerDay?.placeholder,errors:[{touched:B?.freelanceWagePerDay,message:F?.freelanceWagePerDay}],setDataLayer:U("formClick","freelanceWagePerDay"),setDataLayerError:U("formError","freelanceWagePerDay")},freelanceHourly:{id:"freelanceWagePerHour",label:N?.freelanceWagePerHour?.label,secondaryLabel:N?.freelanceWagePerHour?.secondaryLabel,placeholder:N?.freelanceWagePerHour?.placeholder,errors:[{touched:B?.freelanceWagePerHour,message:F?.freelanceWagePerHour}],setDataLayer:U("formClick","freelanceWagePerHour"),setDataLayerError:U("formError","freelanceWagePerHour")}}),!N?.travelOption?.hide&&c_.Cc.includes(D.country)&&(0,rF.jsxs)(rF.Fragment,{children:[(0,rF.jsx)(oq.J,{id:"travelOption",label:N?.travelOption?.label,direction:"vertical",options:Object.fromEntries((N?.travelOption?.data??[]).map(N=>[N.value,N.label])),errors:[{touched:B?.travelOption,message:F?.travelOption}],onSelect:J,setDataLayer:U("formClick","travelOption"),setDataLayerError:U("formError","travelOption")}),!N?.travelPreference?.hide&&!D.willRelocate&&""!==D.travelOption&&(0,rF.jsx)(cx.a,{id:"travelPreference",label:N?.travelPreference?.label,placeholder:N?.travelPreference?.placeholder,data:N?.travelPreference?.data,errors:[{touched:B?.travelPreference,message:F?.travelPreference}],setDataLayer:U("formClick","travelPreference"),setDataLayerError:U("formError","travelPreference")}),!N?.travelDistancePreference?.hide&&!D.willRelocate&&""!==D.travelOption&&(0,rF.jsx)(cL.c,{id:"travelDistancePreference",label:N?.travelDistancePreference?.label,min:Number(N?.travelDistancePreference?.errors?.minLength??0),max:Number(N?.travelDistancePreference?.errors?.maxLength??("Week"===D.travelOption?500:200)),errors:[{touched:B?.travelDistancePreference,message:F?.travelDistancePreference}],setDataLayer:U("formClick","travelDistancePreference"),setDataLayerError:U("formError","travelDistancePreference")}),!N?.travelTime?.hide&&!D.willRelocate&&""!==D.travelOption&&(0,rF.jsx)(cx.a,{id:"travelTime",label:N?.travelTime?.label,data:N?.travelTime?.data,placeholder:N?.travelTime?.placeholder,errors:[{touched:B?.travelTime,message:F?.travelTime}],setDataLayer:U("formClick","travelTime"),setDataLayerError:U("formError","travelTime")})]}),!N?.skillLevels?.hide&&c_.Cc.includes(D.country)&&(0,rF.jsx)(cR.x,{id:"skillLevels",label:N?.skillLevels?.label,addLabel:N?.skillLevels?.placeholder,languageOptions:N?.skillLevels?.data,proficiencyOptions:N?.skillLevels?.profiencyOptions,errors:[{touched:!!B?.skillLevels,message:"string"==typeof F?.skillLevels?F.skillLevels:void 0}],setDataLayer:U("formClick","skillLevels"),setDataLayerError:U("formError","skillLevels")}
939),(0,rF.jsx)(cA.Z,{id:"resumeData",locale:$.toLowerCase(),initialFile:L,label:N?.resume?.label,placeholder:N?.resume?.placeholder,dragAndDropPlaceholder:N?.resume?.dragAndDropPlaceholder,dragAndDropActivePlaceholder:N?.resume?.dragAndDropActivePlaceholder,chooseFile:N?.resume?.resumeChooseFile??"[choose file]",fileUploadAddedOn:N?.resume?.uploadFileAddedOn,fileSizeIncorrect:N?.resume?.errors?.fileWrongSize??"[fileWrongSize]",fileTypeIncorrect:N?.resume?.errors?.invalidFormat??"[invalidFormat]",errors:[{id:"resumeData.file",touched:B?.resumeData?.file,message:F?.resumeData?.file},{id:"resumeData.fileName",touched:B?.resumeData?.fileName,message:F?.resumeData?.fileName},{id:"resumeData.base64BinaryData",touched:B?.resumeData?.base64BinaryData,message:F?.resumeData?.base64BinaryData}],fileProps:{onDrop:V,onDelete:Y},setDataLayer:U("formClick","resumeData"),setDataLayerError:U("formError","resumeData")})]}),(0,rF.jsxs)("div",{className:"flex flex-col gap-2 text-ui-grey",children:[(0,rF.jsx)(Q,{className:"w-full lg:w-max"}),(0,rF.jsx)(rq.o5,{type:"small",className:"text-bol mt-2 text-justify text-ui-grey!",parseText:!0,plainText:N?.privacyPolicyText})]})]}),T?.publicationId&&(0,rF.jsx)("div",{id:"ApplyJobExtraInfo",className:"flex w-full flex-col gap-6 border-t border-accent-iron bg-[#F7F7F7] px-6 py-8 lg:max-w-110 lg:border-t-0 lg:border-l lg:py-12 lg:pr-25 lg:pl-12",children:(0,rF.jsx)(cb.DirectApplySideInfo,{locale:$.toLowerCase(),vacancyData:T,dictionary:I})})]})]})}})})})};var cz=T(99991),cW=T(65493);let cq=async(N,I,T)=>{let P=T?.params?.path?.[0]??"",D=await (0,nl.O2)(P,T?.locale);return D?{vacancyData:D,context:T}:(r6.A.ui("Failed to fetch the vacancyData while executing getStaticProps in Accordion component"),{vacancyData:null,context:T})};function cG({id:N,item:I,groupName:T,isActive:P,onToggle:D,scrollMarginTop:M,itemClassName:R}){let L=(0,sW.S)(I?.accordionItemDescription?.value??"");return(0,rF.jsx)(rq.az,{id:N,className:"relative",style:{scrollMarginTop:M},children:(0,rF.jsxs)(rq.az,{className:(0,rK.cn)("collapse-arrow collapse mb-2 max-w-175 rounded-sm bg-accent-pampas",R),onTransitionEnd:()=>
939{if(P&&N===window.location.hash.slice(1)){let I=document.getElementById(N);I&&I.scrollIntoView({behavior:"smooth"})}},children:[(0,rF.jsx)("input",{type:"radio",className:"size-full",onClick:D,checked:P,onChange:()=>{},name:T}),(0,rF.jsx)(rq.az,{className:"collapse-title min-h-0 p-0 py-3 text-xl font-medium",children:(0,rF.jsx)(rq.az,{className:"flex items-center pr-10 pl-4 md:pr-16",children:(0,rF.jsx)(rq.o5,{textField:I?.accordionItemTitle,className:(0,rK.cn)(P&&"font-medium!")})})}),(0,rF.jsx)(rq.az,{className:`rich-text collapse-content pl-4 ${P?"p-4":""}`,children:(0,rF.jsx)(r2.s,{field:{value:L}})})]})})}function cK({params:N,fields:I,vacancyData:T,titleType:P,variantName:D}){let M=N.RenderingIdentifier,{activeItemID:R,handleToggleClick:L,scrollMarginTop:$}=(0,cz.useAccordionContent)(),F=I?.data?.datasource,B=F?.children?.results?F.children.results:[],U=F?.accordionTitle,H=F?.accordionDisplayMode?.value??"",z=T?.publicationId??"";return(0,cW.resolveShouldRenderAccordion)(H,z,(0,ni.Cx)())?B?.length!==0&&U?(0,rF.jsxs)(rq.az,{className:(0,rK.cn)("accordion-component",(0,sq.Sc)(N.styles)),style:{scrollMarginTop:$.current},id:M||void 0,children:[(0,rF.jsx)(rq.o5,{textField:U,type:P}),B.filter(N=>N?.accordionItemTitle).map((I,T)=>{let P=(0,cW.buildAccordionItemId)(M,T);return(0,rF.jsx)(cG,{id:P,item:I,isActive:R===P,onToggle:()=>L(P),scrollMarginTop:$.current,itemClassName:(0,sq.VS)(N.styles),groupName:M},I?.id)})]}):(0,rF.jsx)(rG.$,{id:M,title:D,msg:"Please add a title and some accordion items"}):null}let cV=N=>(0,rF.jsx)(cK,{...N,titleType:"h2",variantName:"Default"}),cY=N=>(0,rF.jsx)(cK,{...N,titleType:"h3",variantName:"WithH3Title"}),cJ=new Map([["BYOCWrapper",P],["FEaaSWrapper",D],["Form",rM],["index",{...rR}],["WorldMapSVG",{...rL}],["WorldMap",{...r$,...R,componentType:"client"}],["ContinentInfo",{...rB,componentType:"client"}],["VacancyInformation",{...L,componentType:"client"}],["vacancyResultListSearchQuery",{...rX}],["VacancyResultList",{...$,...r0,...r1,...F,componentType:"client"}],["VacancyNavigation",{...B,...U}],["VacancyHtmlField",{...H,componentType:"client"}],["VacancyHero",{...z,...nf,...nh,...W,componentType:"client"}],["VacancyDetails",{...q}],["VacancyContactCard",{...G,componentType:"client"}],["VacancyApplyButton",{...K,...nR,...nL,...V,componentType:"client"}],["RelatedVacancies",{...Y,...J,componentType:"client"}],["Title",{...Q,componentType:"client"}],["OfficeListStructuredData",{...Z}],["LocalBusinessStructuredData",{...X}],["StickyTeaserBar",{...ee,...n9,...ae,...et,componentType:"client"}],["SocialShare",{...er,...en,componentType:"client"}],["SocialMediaNavigation",{...ea}],["SocialMedia",{...ei}],["SiteVerification",{...al}],["SearchConfigurationResults",{...eo,...ac,...au,...ad,componentType:"client"}],["SearchConfigurationFilters",{...es,...af,...ah,...ap,componentType:"client"}],["SearchConfigurationBar",{...el,...am,...ag,...ay,componentType:"client"}],["SearchConfiguration",{...ec,...ab,...av,...eu,componentType:"client"}],["SearchBar",{...ed,...aE,...aS,...ef,componentType:"client"}],["RichText",{...eh}],["Reviews",{...ep,...em}],["RelatedEventsCard",{...aI}],["RelatedEvents",{...eg,...ey}],["RelatedEventResultCardList",{...aT}],["RelatedCaseStudiesResultCardList",{...aM}],["RelatedCaseStudiesCard",{...aR}],["RelatedCaseStudies",{...eb,...aL,...a$,...ev,componentType:"client"}],["RelatedBlogResultCardList",{...aB}],["RelatedBlogCard",{...aU}],["RelatedBlogArticles",{...ew,...aH,...az,...ex,componentType:"client"}],["QuoteFullWidth",{...aq}],["Quote",{...eA,...eE}],["Promo",{...eS}],["PartnersList",{...e_,...ek}],["PartialDesignDynamicPlaceholder",{...eC}],["PageContent",{...ej}],["OrganizationStructuredData",{...eO,...eN}],["OneTrustPrivacyNotice",{...a7,...a9,...eI,componentType:"client"}],["OfficeMapPopup",{...is,componentType:"client"}],["OfficeMap",{...eT,...eP}],["OfficeHero",{...eD,...eM}],["OfficeContactInformation",{...eR,...eL}],["OfficeCards",{...e$}],["OfficeCardsMap",{...eF}],["OfficeCard",{...eB}],["NavigationLogo",{...eU}],["FirstTimeVideo",{...eH,componentType:"client"}],["ReferralVacancy",{...ez}],["Placements",{...iA}],["NotificationPopup",{...eW,...iC,...ij,...iO,componentType:"client"}],["News",{...eq}],["ArticlesList",{...iI}],["ArticlesGrid",{...iN}],["PrimaryMenu",{...eG,...iR,...iL,...eK,componentType:"client"}],["UserDropdown",{...eV,...iH,...iz,...iW,componentType:"client"}],["SwipeableNotification",{...iq,componentType:"client"}],["NotificationsDropdown",{...iG,componentType:"client"}],["NotificationChatThread",{...iK,componentType:"client"}],["NewMessagePanel",{...iV,componentType:"client"}],["Messages",{...iY,...eY,componentType:"client"}],["ChatThread",{...i2,componentType:"client"}],["GlobalNewsCard",{...i9}],["GlobalNews",{...eJ,...eQ}],["ConsultantCard",{...eZ}],["CVUploadElement",{...eX,componentType:"client"}],["MyButton",{...e0}],["MyBrunelApplicantDocumentsOverview",{...e1}],["MyBrunelApplicantApplicationsOverview",{...e2}],["MyBrunelApplicantWelcome",{...e3}],["MyBrunelApplicantNavigationLoader",{...o_,componentType:"client"}],["MyBrunelApplicantNavigation",{...e4,...e5,componentType:"client"}],["MyBrunelApplicantHeader",{...e6}],["MyBrunelApplicantFooter",{...e8}],["MyBrunelApplicantProfileForm",{...e7,componentType:"client"}],["MyBrunelApplicantPersonalInformationForm",{...e9,componentType:"client"}],["MyBrunelApplicantEducationCoursesExperienceForm",{...te,componentType:"client"}],["MyBrunelApplicantDocumentsForm",{...tt}],["MyBrunelApplicantCompetenceLanguageForm",{...oW,...tr,componentType:"client"}],["MyBrunelApplicantAdditionalInformationForm",{...tn,componentType:"client"}],["MyBrunelApplicant",{...ta}],["ApplicantForms",{...ti,...oD,...oQ}],["OtpLoginForm",{...to,...oZ,...oX,...ts,componentType:"client"}],["AzureLoginForm",{...tl,...tc}],["LocaleSwitcher",{...tu}],["UspVerticalList",{...o9}],["UspList",{...td,...se}],["LinkListWithIcon",{...st}],["LinkList",{...tf}],["IntractiveStoryEmbed",{...sa}],["TextWithImage",{...th,...si}],["TextWithIcon",{...tp,...so}],["Image",{...tm}],["Hero",{...su}],["EventHero",{...tg,...ty}],["EventData",{...sd}],["CaseStudyHero",{...tb,...tv}],["CaseStudyData",{...sv}],["BlogHero",{...tw,...tx}],["BlogData",{...sA}],["Navigation",{...sS,...s_}],["MyBrunelHeader",{...tA}],["MobileNavigation",{...sO,...sN,...sI,componentType:"client"}],["HeaderTH",{...sT}
939],["Header",{...tE,...sP,...sD,componentType:"client"}],["RowSplitter",{...tS}],["ColumnSplitter",{...t_}],["FooterTH",{...sL}],["Footer",{...tk,...s$}],["Copyright",{...tC}],["Faq",{...tj,...tO,componentType:"client"}],["BrunelExternalScripts",{...tN,componentType:"client"}],["EventOverviewResultCardList",{...s0}],["EventOverviewResultCard",{...s1}],["EventOverview",{...tI,...s2,...s3,...tT,componentType:"client"}],["EventLocationMap",{...sf,componentType:"client"}],["EmbeddedVideo",{...tP,...tD}],["hubSpotUtmHelper",{...ln}],["HubSpotForm",{...tM,...tR,componentType:"client"}],["TitleContainer",{...tL,componentType:"client"}],["Container",{...t$}],["CardsContainer",{...tF}],["ConsentForm",{...tB,...tU,componentType:"client"}],["Chatbot",{...lN,...tH,componentType:"client"}],["CaseStudyOverviewResultCardList",{...lP}],["CaseStudyOverviewResultCard",{...lD}],["CaseStudyOverview",{...tz,...lM,...lR,...tW,componentType:"client"}],["CaseStudyHighlight",{...tq,...lU,...tG}],["mapGlobalContactCardFields",{...lV}],["GlobalContactCard",{...tK,...tV,componentType:"client"}],["ContactCardContent",{...lY,componentType:"client"}],["ContactCard",{...tY,...tJ,componentType:"client"}],["CardWithImage",{...tQ}],["CardTaskListItem",{...tZ,componentType:"client"}],["DownloadLinksCard",{...tX,...t0}],["Card",{...t1,...t2}],["TagButton",{...s4}],["CtaButton",{...t3}],["Button",{...cs,...rU}],["BrunelMap",{...t4}],["Brunel",{...t5}],["BreadcrumbLink",{...cc}],["Breadcrumb",{...t6}],["BlogOverviewResultCardList",{...cd}],["BlogOverviewResultCard",{...cf}],["BlogOverview",{...t8,...ch,...cp,...t7,componentType:"client"}],["DirectApplySideInfo",{...cb}],["ApplyFormTH",{...cv,...t9,componentType:"client"}],["ApplyForm",{...re,...rt,...cw,...cN,...rr,componentType:"client"}],["Accordion",{...rn,...cz,...cW,...ra,componentType:"client"}]])},55325:(N,I,T)=>{"use strict";T.r(I),T.d(I,{useVacancyResultList:()=>B});var P=T(46995),D=T(47805),M=T(14232),R=T(46615),L=T(65212),$=T(60409),F=T(8496);let B=({fields:N,context:I,translations:T,isAuSite:B})=>{let[U,H]=(0,M.useState)(T),z=(0,M.useMemo)(()=>(0,P.resolveVacancyFields)(N?.vacancyFieldsToDisplay),[N]),W=(0,M.useMemo)(()=>(0,P.resolveVisibleFields)(z,B),[B,z]);return(0,M.useEffect)(()=>{let P=async()=>{await R.P.getAllByPage((0,D.buildVacancyResultListGetPublicationsQuery)(N,I)).then(N=>{(async()=>{let T=await Promise.all(N?.publications?.map(async N=>{let T=await (0,F.f)(N?.branche??"",I?.locale??$.Xn),P=await (0,F.f)(N?.areaOfExpertise??"",I?.locale??$.Xn),D=await (0,F.f)(N?.region??"",I?.locale??$.Xn);return{...N,branche:T?.[0]?.text?.value??N.branche,areaOfExpertise:P?.[0]?.text?.value??N.areaOfExpertise,region:D?.[0]?.text?.value??N.region}})).catch(N=>{L.A.ui("Failed to fetch the VacancyResultList translations inside getStaticProps",N)})??null;T&&H(T)})()})};T||P().catch(()=>{L.A.api("Failed to fetch getPublications inside VacancyResultList")})},[]),{translations:U,vacancyFields:z,visibleFields:W}}},55333:(N,I,T)=>{"use strict";T.d(I,{Cx:()=>$,Z1:()=>B,fF:()=>D,qH:()=>L,sx:()=>F});var P=T(98217);let D="00000000-0000-0000-0000-000000000000",M="jss-hrz-editing",R="Sitecore.Horizon.ResetChromes";class L{static isActive(){return!(0,P.A)()&&(window.location.search.indexOf("sc_headless_mode=edit")>-1||!!window.document.getElementById(M))}static resetChromes(){!(0,P.A)()&&window[R]&&window[R]()}}let $=()=>L.isActive(),F=()=>{L.isActive()&&L.resetChromes()},B=()=>{let N={};return N[M]={},N}},55534:(N,I)=>{"use strict";function T(N,I){let T=`Route "${N}": Could not validate that a segment in your UI has instant navigation.`;if(I.length>0){let N=1===I.length?"Dropped segment":"Dropped segments";T+=` 940 941This segment was dropped from rendering. Issues that would prevent instant navigation will go undetected. 942 943${N}: 944${I.map(N=>` ${N}`).join("\n")} 945 946Ways to fix this: 947 - [render] Render the dropped segment 948 - [ignore] Set \`export const instant = false\` to opt the dropped segment out of instant-navigation validation 949 950Learn more: https://nextjs.org/docs/messages/instant-unrendered-segment`}return Object.defineProperty(Error(T),"__NEXT_ERROR_CODE",{value:"E1286",enumerable:!1,
950configurable:!0})}function P(N){return Object.defineProperty(Error(`Next.js encountered dynamic data during prefetching for "${N}". 951 952This will lead to slower, more expensive prefetches. 953 954Ways to fix this: 955 - [upgrade] Opt into Partial Prefetching by exporting \`const prefetch = 'partial'\` from the page or layout, or by setting \`partialPrefetching: true\` in next.config to opt the whole app in 956 - [disable] Remove \`prefetch={true}\` from the <Link> to use the default prefetch 957 - [ignore] Set \`export const instant = false\` to opt the route out of instant-navigation validation 958 959Learn more: https://nextjs.org/docs/messages/instant-link-prefetch-partial`),"__NEXT_ERROR_CODE",{value:"E1435",enumerable:!1,configurable:!0})}Object.defineProperty(I,"__esModule",{value:!0}),function(N,I){for(var T in I)Object.defineProperty(N,T,{enumerable:!0,get:I[T]})}(I,{createLinkPrefetchPartialError:function(){return P},createUnrenderedSegmentError:function(){return T}})},55541:(N,I,T)=>{var P,D="u">typeof globalThis&&globalThis||"u">typeof self&&self||void 0!==T.g&&T.g,M=function(){function N(){this.fetch=!1,this.DOMException=D.DOMException}return N.prototype=D,new N}();P=M,function(N){var I=void 0!==P&&P||"u">typeof self&&self||void 0!==T.g&&T.g||{},D={searchParams:"URLSearchParams"in I,iterable:"Symbol"in I&&"iterator"in Symbol,blob:"FileReader"in I&&"Blob"in I&&function(){try{return new Blob,!0}catch(N){return!1}}(),formData:"FormData"in I,arrayBuffer:"ArrayBuffer"in I};function M(N){return N&&DataView.prototype.isPrototypeOf(N)}if(D.arrayBuffer)var R=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],L=ArrayBuffer.isView||function(N){return N&&R.indexOf(Object.prototype.toString.call(N))>-1};function $(N){if("string"!=typeof N&&(N=String(N)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(N)||""===N)throw TypeError('Invalid character in header field name: "'+N+'"');return N.toLowerCase()}function F(N){return"string"!=typeof N&&(N=String(N)),N}function B(N){var I={next:function(){var I=N.shift();return{done:void 0===I,value:I}}};return D.iterable&&(I[Symbol.iterator]=function(){return I}),I}function U(N){this.map={},N instanceof U?N.forEach(function(N,I){this.append(I,N)},this):Array.isArray(N)?N.forEach(function(N){if(2!=N.length)throw TypeError("Headers constructor: expected name/value pair to be length 2, found"+N.length);this.append(N[0],N[1])},this):N&&Object.getOwnPropertyNames(N).forEach(function(I){this.append(I,N[I])},this)}function H(N){if(!N._noBody){if(N.bodyUsed)return Promise.reject(TypeError("Already read"));N.bodyUsed=!0}}function z(N){return new Promise(function(I,T){N.onload=function(){I(N.result)},N.onerror=function(){T(N.error)}})}function W(N){var I=new FileReader,T=z(I);return I.readAsArrayBuffer(N),T}function q(N){var I=new FileReader,T=z(I),P=/charset=([A-Za-z0-9_-]+)/.exec(N.type),D=P?P[1]:"utf-8";return I.readAsText(N,D),T}function G(N){for(var I=new Uint8Array(N),T=Array(I.length),P=0;P<I.length;P++)T[P]=String.fromCharCode(I[P]);return T.join("")}function K(N){if(N.slice)return N.slice(0);var I=new Uint8Array(N.byteLength);return I.set(new Uint8Array(N)),I.buffer}function V(){return this.bodyUsed=!1,this._initBody=function(N){this.bodyUsed=this.bodyUsed,this._bodyInit=N,N?"string"==typeof N?this._bodyText=N:D.blob&&Blob.prototype.isPrototypeOf(N)?this._bodyBlob=N:D.formData&&FormData.prototype.isPrototypeOf(N)?this._bodyFormData=N:D.searchParams&&URLSearchParams.prototype.isPrototypeOf(N)?this._bodyText=N.toString():D.arrayBuffer&&D.blob&&M(N)?(this._bodyArrayBuffer=K(N.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):D.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(N)||L(N))?this._bodyArrayBuffer=K(N):this._bodyText=N=Object.prototype.toString.call(N):(this._noBody=!0,this._bodyText=""),!this.headers.get("content-type")&&("string"==typeof N?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):D.searchParams&&URLSearchParams.prototype.isPrototypeOf(N)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},D.blob&&(this.blob=function(){var N=H(this);if(N)return N;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var N=H(this);return N||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(D.blob)return this.blob().then(W);throw Error("could not read as ArrayBuffer")},this.text=function(){var N=H(this);if(N)return N;if(this._bodyBlob)return q(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(G(this._bodyArrayBuffer));if(!this._bodyFormData)return Promise.resolve(this._bodyText);throw Error("could not read FormData body as text")}
959,D.formData&&(this.formData=function(){return this.text().then(Z)}),this.json=function(){return this.text().then(JSON.parse)},this}U.prototype.append=function(N,I){N=$(N),I=F(I);var T=this.map[N];this.map[N]=T?T+", "+I:I},U.prototype.delete=function(N){delete this.map[$(N)]},U.prototype.get=function(N){return N=$(N),this.has(N)?this.map[N]:null},U.prototype.has=function(N){return this.map.hasOwnProperty($(N))},U.prototype.set=function(N,I){this.map[$(N)]=F(I)},U.prototype.forEach=function(N,I){for(var T in this.map)this.map.hasOwnProperty(T)&&N.call(I,this.map[T],T,this)},U.prototype.keys=function(){var N=[];return this.forEach(function(I,T){N.push(T)}),B(N)},U.prototype.values=function(){var N=[];return this.forEach(function(I){N.push(I)}),B(N)},U.prototype.entries=function(){var N=[];return this.forEach(function(I,T){N.push([T,I])}),B(N)},D.iterable&&(U.prototype[Symbol.iterator]=U.prototype.entries);var Y=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function J(N){var I=N.toUpperCase();return Y.indexOf(I)>-1?I:N}function Q(N,T){if(!(this instanceof Q))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var P=(T=T||{}).body;if(N instanceof Q){if(N.bodyUsed)throw TypeError("Already read");this.url=N.url,this.credentials=N.credentials,T.headers||(this.headers=new U(N.headers)),this.method=N.method,this.mode=N.mode,this.signal=N.signal,P||null==N._bodyInit||(P=N._bodyInit,N.bodyUsed=!0)}else this.url=String(N);if(this.credentials=T.credentials||this.credentials||"same-origin",(T.headers||!this.headers)&&(this.headers=new U(T.headers)),this.method=J(T.method||this.method||"GET"),this.mode=T.mode||this.mode||null,this.signal=T.signal||this.signal||function(){if("AbortController"in I)return new AbortController().signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&P)throw TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(P),("GET"===this.method||"HEAD"===this.method)&&("no-store"===T.cache||"no-cache"===T.cache)){var D=/([?&])_=[^&]*/;if(D.test(this.url))this.url=this.url.replace(D,"$1_="+new Date().getTime());else{var M=/\?/;this.url+=(M.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}function Z(N){var I=new FormData;return N.trim().split("&").forEach(function(N){if(N){var T=N.split("="),P=T.shift().replace(/\+/g," "),D=T.join("=").replace(/\+/g," ");I.append(decodeURIComponent(P),decodeURIComponent(D))}}),I}function X(N){var I=new U;return N.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(N){return 0===N.indexOf("\n")?N.substr(1,N.length):N}).forEach(function(N){var T=N.split(":"),P=T.shift().trim();if(P){var D=T.join(":").trim();try{I.append(P,D)}catch(N){console.warn("Response "+N.message)}}}),I}function ee(N,I){if(!(this instanceof ee))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(I||(I={}),this.type="default",this.status=void 0===I.status?200:I.status,this.status<200||this.status>599)throw RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===I.statusText?"":""+I.statusText,this.headers=new U(I.headers),this.url=I.url||"",this._initBody(N)}Q.prototype.clone=function(){return new Q(this,{body:this._bodyInit})},V.call(Q.prototype),V.call(ee.prototype),ee.prototype.clone=function(){return new ee(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new U(this.headers),url:this.url})},ee.error=function(){var N=new ee(null,{status:200,statusText:""});return N.ok=!1,N.status=0,N.type="error",N};var et=[301,302,303,307,308];ee.redirect=function(N,I){if(-1===et.indexOf(I))throw RangeError("Invalid status code");return new ee(null,{status:I,headers:{location:N}})},N.DOMException=I.DOMException;try{new N.DOMException}catch(I){N.DOMException=function(N,I){this.message=N,this.name=I;var T=Error(N);this.stack=T.stack},N.DOMException.prototype=Object.create(Error.prototype),N.DOMException.prototype.constructor=N.DOMException}function er(T,P){return new Promise(function(M,R){var L=new Q(T,P);if(L.signal&&L.signal.aborted)return R(new N.DOMException("Aborted","AbortError"));var B=new XMLHttpRequest;function H(){B.abort()}function z(N){try{return""===N&&I.location.href?I.location.href:N}catch(I){return N}}if(B.onload=function(){var N={statusText:B.statusText,headers:X(B.getAllResponseHeaders()||"")};0===L.url.indexOf("file://")&&(B.status<200||B.status>599)?N.status=200:N.status=B.status,N.url="responseURL"in B?B.responseURL:N.headers.get("X-Request-URL");var I="response"in B?B.response:B.responseText;setTimeout(function(){M(new ee(I,N))},0)},B.onerror=function(){setTimeout(function(){R(TypeError("Network request failed"))},0)},B.ontimeout=function(){setTimeout(function(){R(TypeError("Network request timed out"))},0)},B.onabort=function(){setTimeout(function(){R(new N.DOMException("Aborted","AbortError"))},0)},B.open(L.method,z(L.url),!0),"include"===L.credentials?B.withCredentials=!0:"omit"===L.credentials&&(B.withCredentials=!1),"responseType"in B&&(D.blob?B.responseType="blob":D.arrayBuffer&&(B.responseType="arraybuffer")),P&&"object"==typeof P.headers&&!(P.headers instanceof U||I.Headers&&P.headers instanceof I.Headers)){var W=[];
959Object.getOwnPropertyNames(P.headers).forEach(function(N){W.push($(N)),B.setRequestHeader(N,F(P.headers[N]))}),L.headers.forEach(function(N,I){-1===W.indexOf(I)&&B.setRequestHeader(I,N)})}else L.headers.forEach(function(N,I){B.setRequestHeader(I,N)});L.signal&&(L.signal.addEventListener("abort",H),B.onreadystatechange=function(){4===B.readyState&&L.signal.removeEventListener("abort",H)}),B.send(void 0===L._bodyInit?null:L._bodyInit)})}er.polyfill=!0,I.fetch||(I.fetch=er,I.Headers=U,I.Request=Q,I.Response=ee),N.Headers=U,N.Request=Q,N.Response=ee,N.fetch=er,Object.defineProperty(N,"__esModule",{value:!0})}({}),M.fetch.ponyfill=!0,delete M.fetch.polyfill;var R=D.fetch?D:M;(I=R.fetch).default=R.fetch,I.fetch=R.fetch,I.Headers=R.Headers,I.Request=R.Request,I.Response=R.Response,N.exports=I},55657:(N,I,T)=>{"use strict";T.d(I,{W:()=>P});let P=N=>({organizationId:String(N?.organizationId?.value??""),organizationTypes:String(N?.organizationTypes?.value??""),organizationName:String(N?.organizationName?.value??""),organizationLegalName:String(N?.organizationLegalName?.value??""),organizationUrl:String(N?.organizationUrl?.value??""),organizationLogoUrl:N?.organizationLogo?.value?.src??"",organizationSameAs:String(N?.organizationSameAs?.value??""),organizationAreaServed:String(N?.organizationAreaServed?.value??""),organizationPathPattern:String(N?.organizationPathPattern?.value??""),organizationExcludePathPatterns:String(N?.organizationExcludePathPatterns?.value??"")})},55776:(N,I,T)=>{"use strict";T.r(I),T.d(I,{resolveTopHeroImage:()=>P});let P=N=>N?.image?.[0]?.src??N?.image?.[4]?.src},55786:(N,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),function(N,I){for(var T in I)Object.defineProperty(N,T,{enumerable:!0,get:I[T]})}(I,{bindSnapshot:function(){return R},createAsyncLocalStorage:function(){return M},createSnapshot:function(){return L}});let T=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class P{disable(){throw T}getStore(){}run(){throw T}exit(){throw T}enterWith(){throw T}static bind(N){return N}}let D="u">typeof globalThis&&globalThis.AsyncLocalStorage;function M(){return D?new D:new P}function R(N){return D?D.bind(N):P.bind(N)}function L(){return D?D.snapshot():function(N,...I){return N(...I)}}},56057:N=>{function I(T,P){return N.exports=I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(N,I){return N.__proto__=I,N},N.exports.__esModule=!0,N.exports.default=N.exports,I(T,P)}N.exports=I,N.exports.__esModule=!0,N.exports.default=N.exports},56106:N=>{"use strict";N.exports=JSON.parse('{"name":"openid-client","version":"5.7.1","description":"OpenID Connect Relying Party (RP, Client) implementation for Node.js runtime, supports passportjs","keywords":["auth","authentication","basic","certified","client","connect","dynamic","electron","hybrid","identity","implicit","oauth","oauth2","oidc","openid","passport","relying party","strategy"],"homepage":"https://github.com/panva/openid-client","repository":"panva/openid-client","funding":{"url":"https://github.com/sponsors/panva"},"license":"MIT","author":"Filip Skokan <[email protected]>","exports":{"types":"./types/index.d.ts","import":"./lib/index.mjs","require":"./lib/index.js"},"main":"./lib/index.js","types":"./types/index.d.ts","files":["lib","types/index.d.ts"],"scripts":{"format":"npx prettier --loglevel silent --write ./lib ./test ./certification ./types","test":"mocha test/**/*.test.js"},"dependencies":{"jose":"^4.15.9","lru-cache":"^6.0.0","object-hash":"^2.2.0","oidc-token-hash":"^5.0.3"},"devDependencies":{"@types/node":"^16.18.106","@types/passport":"^1.0.16","base64url":"^3.0.1","chai":"^4.5.0","mocha":"^10.7.3","nock":"^13.5.5","prettier":"^2.8.8","readable-mock-req":"^0.2.2","sinon":"^9.2.4","timekeeper":"^2.3.1"},"standard-version":{"scripts":{"postchangelog":"sed -i \'\' -e \'s/### \\\\[/## [/g\' CHANGELOG.md"},"types":[{"type":"feat","section":"Features"},{"type":"fix","section":"Fixes"},{"type":"chore","hidden":true},{"type":"docs","hidden":true},{"type":"style","hidden":true},{"type":"refactor","section":"Refactor","hidden":false},{"type":"perf","section":"Performance","hidden":false},{"type":"test","hidden":true}]}}')},56202:(N,I,T)=>{var P=T(66713),D=T(94147);function M(N,I){var T;function R(T,D,M,L){try{var $=N[T](D),F=$.value;return F instanceof P?I.resolve(F.v).then(function(N){R("next",N,M,L)},function(N){R("throw",N,M,L)}):I.resolve(F).then(function(N){$.value=N,M($)},function(N){return R("throw",N,M,L)})}catch(N){L(N)}}this.next||(D(M.prototype),D(M.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),D(this,"_invoke",function(N,P,D){function M(){return new I(function(I,T){R(N,D,I,T)})}return T=T?T.then(M,M):M()},!0)}N.exports=M,N.exports.__esModule=!0,N.exports.default=N.exports},56375:(N,I,T)=>{"use strict";T.d(I,{I:()=>U});var P=T(37876),D=T(10409),M=T(87273),R=T(47137),L=T(36379),$=T(41655);let F=`
960 inline-block 961 bg-no-repeat bg-center bg-contain fill-current 962`,B=(0,R.F)([F],{variants:{size:{xsmall:"min-h-4 min-w-4",18:"min-h-4.5 min-w-4.5",small:"min-h-5 min-w-5",medium:"min-h-6 min-w-6",32:"size-8",large:"min-h-6 min-w-23",xl:"min-h-55 min-w-55",partners:"min-h-10 min-w-30"},clickable:{yes:"cursor-pointer"},socialShare:{center:"w-full self-center"}},defaultVariants:{size:"medium"}}),U=({name:N,size:I,alt:T,color:R="brunel-dark-grey",className:F,useOriginalColor:U=!1,onClick:H,onHover:z,socialShare:W,style:q,...G})=>{if(!N)return null;let K=$.H.isProd?$.H.url:"",V=/^[a-z]{2}$/i.test(N),Y=`${K}/images/${V?`${K}/countries/${N}`:N}.svg`.toLowerCase(),J=U||V,Q=L.Qs[R]||L.Qs["brunel-dark-grey"];if(J)return(0,P.jsx)(M._,{field:{src:Y},alt:T??`${N} icon`});let Z=(0,L.cn)(B({size:I,clickable:H?"yes":void 0,socialShare:W}),F),X=!J&&{backgroundColor:Q,mask:`url(${Y}) no-repeat center / contain`,WebkitMask:`url(${Y}) no-repeat center / contain`};return(0,P.jsx)(D.a,{as:"span",className:(0,L.cn)(Z,F,`bg-${R}`),style:{...X,...q},onClick:H,onMouseEnter:()=>z?.(!0),role:"img","aria-label":T??"icon",...G})}},56556:(N,I,T)=>{"use strict";T.d(I,{Dd:()=>es,ND:()=>eu});let P=()=>{if("u"<typeof document)return;let N=document.modelContext;if(N?.registerTool)return N;if("u"<typeof navigator)return;let I=navigator.modelContext;if(I?.registerTool)return I},D=N=>({type:"array",description:N,items:{type:"string"}}),M=N=>({type:"array",description:N,items:{type:"string"}}),R={type:"object",description:"Search parameters for Brunel job vacancies. Locale is taken from the current page and must not be overridden.",properties:{keyword:{type:"string",description:"Job title or free-text search. Prefer at least 3 characters."},location:{type:"string",description:"City, region, or place name. Prefer at least 3 characters."},distance:{type:"number",description:"Search radius around location (numeric value only).",minimum:0},distanceUnit:{type:"string",enum:["km","mi"],description:"Distance unit. Defaults to the site search bar setting."},sortOrder:{type:"number",enum:[0,1,2,3],description:"Sort order used by the jobs search API (0-3)."},page:{type:"number",description:"Results page number, starting at 1. Defaults to 1.",minimum:1},searchTitlesOnly:{type:"boolean",description:"When true, match job titles only."},brancheFilter:D("Industry / branche filter values (id or label)."),areaOfExpertiseFilter:D("Area of expertise filter values (id or label)."),countryFilter:D("Country filter values (id or label)."),educationlevelFilter:D("Education level filter values (id or label)."),marketFilter:D("Market filter values (id or label)."),regionFilter:D("Region filter values (id or label)."),workLevelFilter:M("Work level filter values (id or label)."),totalYearsOfExperienceFilter:M("Years of experience filter values (id or label)."),businessUnitFilter:D("Business unit filter values (id or label)."),businessServiceFilter:D("Business service filter values (id or label)."),contactOfficeNumberFilter:D("Contact office number filter values (id or label)."),hoursPerWeekFilter:{type:"object",description:"Hours per week range filter.",properties:{minimum:{type:"number",description:"Minimum hours per week."},maximum:{type:"number",description:"Maximum hours per week."}}}}},L={type:"object",properties:{}},$={type:"object",properties:{keyword:{type:"string",description:"Parti
962al job keyword to autocomplete. Prefer at least 3 characters."}},required:["keyword"]},F={type:"object",properties:{location:{type:"string",description:"Partial location to autocomplete. Prefer at least 3 characters."}},required:["location"]},B={type:"object",properties:{publicationId:{type:"string",description:'Vacancy publicationId from search_jobs results (for example "tr-282809"). Required to open the apply page.'}},required:["publicationId"]},U=N=>[{name:"search_jobs",description:"Search Brunel job vacancies on the current site locale. Use for finding jobs by keyword, location, sort, and filters. Updates the visible jobs search UI and URL. Locale is always taken from the current page. After choosing a job, call open_job_apply with its publicationId.",inputSchema:R,annotations:{readOnlyHint:!0},execute:async I=>{let T=N();return T?T.search(I??{}):JSON.stringify({error:"Job search is not ready on this page."})}},{name:"get_job_search_context",description:"Return the current Brunel jobs search state for this page: locale, keyword, location, distance, selected filters, total result count, page, and current search URL. Use before or after search_jobs to understand what is on screen.",inputSchema:L,annotations:{readOnlyHint:!0},execute:async()=>{let I=N();return I?JSON.stringify(I.getContext()):JSON.stringify({error:"Job search is not ready on this page."})}},{name:"suggest_job_keywords",description:"Autocomplete job keyword suggestions for the current site language. Prefer at least 3 characters. Use to refine keyword before calling search_jobs.",inputSchema:$,annotations:{readOnlyHint:!0},execute:async I=>{let{keyword:T}=I,P=N();return P?P.suggestKeywords(T??""):JSON.stringify({error:"Job search is not ready on this page."})}},{name:"suggest_locations",description:"Autocomplete location suggestions for the current site language. Prefer at least 3 characters. Use to refine location before calling search_jobs.",inputSchema:F,annotations:{readOnlyHint:!0},execute:async I=>{let{location:T}=I,P=N();return P?P.suggestLocations(T??""):JSON.stringify({error:"Job search is not ready on this page."})}},{name:"open_job_apply",description:"Open the Brunel apply page for a job found via search_jobs. Pass publicationId from search results. Navigates to /{locale}/apply?vacancyID=... (or the external ATS apply URL when required). Use after the user chooses a specific vacancy to apply for.",inputSchema:B,annotations:{readOnlyHint:!1},execute:async I=>{let T="string"==typeof I.publicationId?I.publicationId:"",P=N();return P?P.openApply(T):JSON.stringify({error:"Job search is not ready on this page."})}}];var H=T(65212);let z=async(N,I)=>{let T=P();if(!T)return!1;let D=U(N);try{return await Promise.all(D.map(N=>Promise.resolve(T.registerTool(N,I)))),H.A.ui("WebMCP job search tools registered","debug"),!0}catch(N){return H.A.api("Failed to register WebMCP job search tools",N),!1}};var W=T(46615),q=T(84471);let G=async(N,I)=>{let T=I?.trim();if(!T)return JSON.stringify({error:"publicationId is required. Use a publicationId from search_jobs results."});let P=await W.P.getByPublicationId(T,N);if(!P)return JSON.stringify({error:"Job not found for this publicationId on the current locale.",publicationId:T,locale:N});let D=P.mercuryId??P.publicationId??T,M=(0,q.generateApplicationUrl)(P,window.location.hostname),R=M??`${window.location.origin}/${N}/apply?vacancyID=${encodeURIComponent(D)}`;return window.location.href=R,JSON.stringify({locale:N,publicationId:D,title:P.title??null,applyUrl:R,external:!!M})},K=(N,I,T)=>{let P=T??window.location.origin;return`${P}/${N}/apply?vacancyID=${encodeURIComponent(I)}`},V=(N,I,T,P)=>{let D=T?.publications??[],M=window.location.origin,R=D.map(I=>{let T=I.title??"",P=I.publicationId??"",D="function"==typeof T.toSlug?`${T.toSlug(N)}-${P}`.toLowerCase():`${P}`.toLowerCase();return{publicationId:P,title:T,city:I.city??null,country:I.countryName??I.country??null,branche:I.branche??null,areaOfExpertise:I.areaOfExpertise??null,url:`/jobs/${D}`,applyUrl:P?K(N,P,M):null}});return JSON.stringify({locale:N,totalCount:T?.totalCount??0,returnedCount:R.length,searchUrl:P,query:{keyword:I.keyword??null,location:I.location??null,distance:I.distance??null,page:I.page??1},jobs:R})},Y=(N,I,T)=>JSON.stringify({kind:N,query:I,suggestions:T}),J=["brancheFilter","areaOfExpertiseFilter","countryFilter","educationlevelFilter","marketFilter","regionFilter","workLevelFilter","totalYearsOfExperienceFilter","businessUnitFilter","businessServiceFilter","contactOfficeNumberFilter"],Q=N=>N.toString().trim().toLowerCase(),Z=(N,I,T)=>{let P=T?.find(I=>I.category===N)?.facets??[],D=Q(I),M=P.find(N=>Q(N.id??"")===D);if(M?.id!==void 0&&null!==M.id&&""!==M.id)return isNaN(+M.id)?M.id:Number(M.id);let R=P.find(N=>Q(N.value??"")===D);return R?.id!==void 0&&null!==R.id&&""!==R.id?isNaN(+R.id)?R.id:Number(R.id):isNaN(+I)?I:Number(I)},X=(N,I,T)=>{let P=new Map([]),D=new Map([]),M={};return J.forEach(R=>{let L=N[R];if(!L?.length)return;let $=L.map(N=>Z(R,N,I)).filter(N=>void 0!==N);$.length&&(P.set(R,$),M[R]=$,$.forEach(N=>{let I=T(R,N)??N.toString();D.set(I,{facet:R,facetValue:N})}))}),N.hoursPerWeekFilter&&(M.hoursPerWeekFilter={minimum:N.hoursPerWeekFilter.minimum,maximum:N.hoursPerWeekFilter.maximum}),{selectedFilters:P,selectedFiltersTags:D,apiFilters:M}},ee=N=>{let I={};
962return N.forEach((N,T)=>{I[T]=N}),I};var et=T(14232),er=T(60409),en=T(98176),ea=T(26197),ei=T(67922);let eo=3,es=({fields:N,locale:I,searchBarData:T,setSearchBarData:P,selectedFilters:D,setSelectedFilters:M,selectedFiltersTags:R,setSelectedFiltersTags:L,totalCount:$,setTotalCount:F,page:B,setPage:U,setPublications:H,setFacets:q,translateFacets:K,listResults:J})=>{let Q=(0,et.useRef)(null),Z=(0,et.useRef)({searchBarData:T,selectedFilters:D,selectedFiltersTags:R,totalCount:$,page:B,locale:I,fields:N,listResults:J});Z.current={searchBarData:T,selectedFilters:D,selectedFiltersTags:R,totalCount:$,page:B,locale:I,fields:N,listResults:J},Q.current={getContext:()=>{let N=Z.current;return{locale:N.fields?.currentLanguage??N.locale??er.Xn,keyword:N.searchBarData.keyword,location:N.searchBarData.location,distance:N.searchBarData.distance,distanceUnit:N.searchBarData.distanceUnit,sortBy:N.searchBarData.sortBy,totalCount:N.totalCount,page:N.page,selectedFilters:ee(N.selectedFilters),selectedFilterLabels:Array.from(N.selectedFiltersTags.keys()),searchUrl:window.location.href,availableFilterCategories:(N.fields?.filters??[]).map(N=>N.category).filter(N=>!!N)}},search:async N=>{let I=Z.current,T=I.fields?.currentLanguage??I.locale??er.Xn,D={...I.searchBarData,keyword:N.keyword??I.searchBarData.keyword,location:N.location??I.searchBarData.location,distance:void 0!==N.distance?String(N.distance):I.searchBarData.distance,distanceUnit:N.distanceUnit??I.searchBarData.distanceUnit,sortBy:void 0!==N.sortOrder?String(N.sortOrder):I.searchBarData.sortBy},{selectedFilters:R,selectedFiltersTags:$,apiFilters:B}=N.brancheFilter?.length||N.areaOfExpertiseFilter?.length||N.countryFilter?.length||N.educationlevelFilter?.length||N.marketFilter?.length||N.regionFilter?.length||N.workLevelFilter?.length||N.totalYearsOfExperienceFilter?.length||N.businessUnitFilter?.length||N.businessServiceFilter?.length||N.contactOfficeNumberFilter?.length||N.hoursPerWeekFilter?X(N,I.fields?.filters,K):{selectedFilters:I.selectedFilters,selectedFiltersTags:I.selectedFiltersTags,apiFilters:ee(I.selectedFilters)},z=D.keyword,G=D.location,Y=N.page&&N.page>0?N.page:1,J=await W.P.getAllByPage({page:Y,pageSize:en.dn,language:T,countryPreset:I.fields?.customCountryPreset??I.fields?.countryPreset??[],businessUnitPreset:I.fields?.bussinessUnitPreset??[],businessLineFilter:I.fields?.bussinesLines??[],sortOrder:D.sortBy,searchText:z.length>=eo?z:void 0,searchTitlesOnly:N.searchTitlesOnly,locationFilter:{location:G.length>=eo?G:void 0,range:G.length>=eo?Number(D.distance):void 0},...B}),Q=(0,ea.H)(I.listResults,(J?.totalCount??0).toString(),D.keyword,D.location,D.distance),et={...D,resultTitle:Q};return P(et),M(R),L($),F(J?.totalCount??0),H(J?.publications??[]),U(Y),J?.facets&&q(J.facets),(0,ei.X7)(T,et,$),V(T,N,J,window.location.href)},suggestKeywords:async N=>{let I=Z.current,T=(I.fields?.currentLanguage??I.locale??er.Xn).split("-")[0]??er.Xn;if(!N||N.length<eo)return Y("keyword",N,[]);let P=await W.P.getSuggestionsFromKeyword(N,T);return Y("keyword",N,P?.suggestionList??[])},suggestLocations:async N=>{let I=Z.current,T=(I.fields?.currentLanguage??I.locale??er.Xn).split("-")[0]??er.Xn;if(!N||N.length<eo)return Y("location",N,[]);let P=await W.P.getSuggestionsFromLocation(N,T);return Y("location",N,P?.suggestionList??[])},openApply:async N=>{let I=Z.current;return G(I.fields?.currentLanguage??I.locale??er.Xn,N)}},(0,et.useEffect)(()=>{let N=new AbortController;return z(()=>Q.current,{signal:N.signal}),()=>{N.abort()}},[I,N?.currentLanguage])},el=3,ec=(N,I)=>{let T=`${window.location.origin}/${N}/jobs`,P=N.split("-")?.[0]??er.Xn,D=en.TT[P]?.value??"keyword";return""!==I.keyword&&(T+=`/${D}/${I.keyword.toSlug()}`),""!==I.location&&(T+=`/${I.location.replaceAll(" ","-")}-${I.distance}${I.distanceUnit}`),encodeURI(T.toLowerCase())},eu=({fields:N,locale:I,searchBarData:T,setSearchBarData:P})=>{let D=(0,et.useRef)(null),M=(0,et.useRef)({searchBarData:T,locale:I,fields:N});M.current={searchBarData:T,locale:I,fields:N},D.current={getContext:()=>{let N=M.current;return{locale:N.fields?.currentLanguage??N.locale??er.Xn,keyword:N.searchBarData.keyword,location:N.searchBarData.location,distance:N.searchBarData.distance,distanceUnit:N.searchBarData.distanceUnit,sortBy:"0",totalCount:0,page:1,selectedFilters:{},selectedFilterLabels:[],searchUrl:window.location.href,availableFilterCategories:[]}},search:async N=>{let I=M.current,T=I.fields?.currentLanguage??I.locale??er.Xn,D={...I.searchBarData,keyword:N.keyword??I.searchBarData.keyword,location:N.location??I.searchBarData.location,distance:void 0!==N.distance?String(N.distance):I.searchBarData.distance,distanceUnit:N.distanceUnit??I.searchBarData.distanceUnit};P(D);let R=D.keyword,L=D.location,$=N.page&&N.page>0?N.page:1,F=await W.P.getAllByPage({page:$,pageSize:en.dn,language:T,countryPreset:I.fields?.countryPreset??[],businessUnitPreset:I.fields?.bussinessUnitPreset??[],sortOrder:N.sortOrder??0,searchText:R.length>=el?R:void 0,searchTitlesOnly:N.searchTitlesOnly,locationFilter:{location:L.length>=el?L:void 0,range:L.length>=el?Number(D.distance):void 0},brancheFilter:N.brancheFilter,areaOfExpertiseFilter:N.areaOfExpertiseFilter,countryFilter:N.countryFilter,educationlevelFilter:N.educationlevelFilter,marketFilter:N.marketFilter,regionFilter:N.regionFilter,workLevelFilter:N.workLevelFilter?.map(N=>"number"==typeof N?N:Number(N)).filter(N=>!Number.isNaN(N)),totalYearsOfExperienceFilter:N.totalYearsOfExperienceFilter?.map(N=>"number"==typeof N?N:Number(N)).filter(N=>!Number.isNaN(N)),businessUnitFilter:N.businessUnitFilter,businessServiceFilter:N.businessServiceFilter,contactOfficeNumberFilter:N.contactOfficeNumberFilter,hoursPerWeekFilter:N.hoursPerWeekFilter}),B=ec(T,D),U=V(T,N,F,B);return window.location.href=B,U},suggestKeywords:async N=>{let I=M.current,T=(I.fields?.currentLanguage??I.locale??er.Xn).split("-")[0]??er.Xn;if(!N||N.length<el)return Y("keyword",N,[]);let P=await W.P.getSuggestionsFromKeyword(N,T);return Y("keyword",N,P?.suggestionList??[])},suggestLocations:async N=>{let I=M.current,T=(I.fields?.currentLanguage??I.locale??er.Xn).split("-")[0]??er.Xn;if(!N||N.length<el)return Y("location",N,[]);let P=await W.P.getSuggestionsFromLocation(N,T);return Y("location",N,P?.suggestionList??[])},openApply:async N=>{let I=M.current;return G(I.fields?.currentLanguage??I.locale??er.Xn,N)}},(0,et.useEffect)(()=>{let N=new AbortController;return z(()=>D.current,{signal:N.signal}),()=>{N.abort()}},[I,N?.currentLanguage])}},56840:(N,I,T)=>{"use strict";T.d(I,{Q:()=>D});var P,D=((P={}
962).SUBMIT_BUTTON_LABEL="FormSubmitButtonLabel",P.TITLE="Title",P.DESCRIPTION="Description",P.SECTION_DEFAULT="default",P.IS_REPEATING="IsRepeating",P.ADD_MORE_LABEL="AddMoreButtonLabel",P.EDUCATION_COURSE_TYPE="course",P)},57049:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),Object.defineProperty(I,"workAsyncStorage",{enumerable:!0,get:function(){return P.workAsyncStorageInstance}});let P=T(320)},57260:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.pkce=I.nonce=I.PKCE_CODE_CHALLENGE_METHOD=void 0,I.signCookie=L,I.state=void 0;var P=T(89632),D=R(T(61075));function M(N){if("function"!=typeof WeakMap)return null;var I=new WeakMap,T=new WeakMap;return(M=function(N){return N?T:I})(N)}function R(N,I){if(!I&&N&&N.__esModule)return N;if(null===N||"object"!=typeof N&&"function"!=typeof N)return{default:N};var T=M(I);if(T&&T.has(N))return T.get(N);var P={__proto__:null},D=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var R in N)if("default"!==R&&({}).hasOwnProperty.call(N,R)){var L=D?Object.getOwnPropertyDescriptor(N,R):null;L&&(L.get||L.set)?Object.defineProperty(P,R,L):P[R]=N[R]}return P.default=N,T&&T.set(N,P),P}async function L(N,I,T,P){let{cookies:M,logger:R}=P;R.debug(`CREATE_${N.toUpperCase()}`,{value:I,maxAge:T});let{name:L}=M[N],$=new Date;return $.setTime($.getTime()+1e3*T),{name:L,value:await D.encode({...P.jwt,maxAge:T,token:{value:I,provider:P.provider.id},salt:L}),options:{...M[N].options,expires:$}}}let $=900,F=I.PKCE_CODE_CHALLENGE_METHOD="S256";I.pkce={async create(N,I,T){var D,M;if(!(null!=(D=N.provider)&&null!=(D=D.checks)&&D.includes("pkce")))return;let R=P.generators.codeVerifier();T.code_challenge=P.generators.codeChallenge(R),T.code_challenge_method=F;let B=null!=(M=N.cookies.pkceCodeVerifier.options.maxAge)?M:$;I.push(await L("pkceCodeVerifier",R,B,N))},async use(N,I,T,P){var M,R;if(!(null!=(M=T.provider)&&null!=(M=M.checks)&&M.includes("pkce")))return;let L=null==N?void 0:N[T.cookies.pkceCodeVerifier.name];if(!L)throw TypeError("PKCE code_verifier cookie was missing.");let{name:$}=T.cookies.pkceCodeVerifier,F=await D.decode({...T.jwt,token:L,salt:$});if(!(null!=F&&F.value))throw TypeError("PKCE code_verifier value could not be parsed.");if(F.provider!==(null==(R=T.provider)?void 0:R.id))throw TypeError(`${$} cookie was created for a different provider than the one handling the callback.`);I.push({name:$,value:"",options:{...T.cookies.pkceCodeVerifier.options,maxAge:0}}),P.code_verifier=F.value}};let B=900;I.state={async create(N,I,T){var D,M;if(!(null!=(D=N.provider.checks)&&D.includes("state")))return;let R=P.generators.state();T.state=R;let $=null!=(M=N.cookies.state.options.maxAge)?M:B;I.push(await L("state",R,$,N))},async use(N,I,T,P){var M,R;if(!(null!=(M=T.provider.checks)&&M.includes("state")))return;let L=null==N?void 0:N[T.cookies.state.name];if(!L)throw TypeError("State cookie was missing.");let{name:$}=T.cookies.state,F=await D.decode({...T.jwt,token:L,salt:$});if(!(null!=F&&F.value))throw TypeError("State value could not be parsed.");if(F.provider!==(null==(R=T.provider)?void 0:R.id))throw TypeError(`${$} cookie was created for a different provider than the one handling the callback.`);I.push({name:$,value:"",options:{...T.cookies.state.options,maxAge:0}}),P.state=F.value}};let U=900;I.nonce={async create(N,I,T){var D,M;if(!(null!=(D=N.provider.checks)&&D.includes("nonce")))return;let R=P.generators.nonce();T.nonce=R;let $=null!=(M=N.cookies.nonce.options.maxAge)?M:U;I.push(await L("nonce",R,$,N))},async use(N,I,T,P){var M,R;if(!(null!=(M=T.provider)&&null!=(M=M.checks)&&M.includes("nonce")))return;let L=null==N?void 0:N[T.cookies.nonce.name];if(!L)throw TypeError("Nonce cookie was missing.");let{name:$}=T.cookies.nonce,F=await D.decode({...T.jwt,token:L,salt:$});if(!(null!=F&&F.value))throw TypeError("Nonce value could not be parsed.");if(F.provider!==(null==(R=T.provider)?void 0:R.id))throw TypeError(`${$} cookie was created for a different provider than the one handling the callback.`);I.push({name:$,value:"",options:{...T.cookies.nonce.options,maxAge:0}}),P.nonce=F.value}}},57479:(N,I,T)=>{"use strict";T.d(I,{A:()=>U,G:()=>B});var P=T(37876),D=T(10409),M=T(56375),R=T(48230),L=T.n(R),$=T(36379);let F=(N,I,T,P)=>{let D=N?"authenticated":"user",M=N?P?.value?.text??"":T?.value??"Login",R=N?P?.value?.href??"":I??"";return{icon:D,text:M,link:R,target:N?P?.value?.target??"":"",hasLink:!R.isEmpty(),hasText:!M.toString().isEmpty()}},B=({loginPage:N,securitySectionLoginLabel:I,securitySectionLoggedinLink:T,authenticated:R})=>{let B=F(R,N,I,T?.link);return(0,P.jsx)(P.Fragment,{children:(0,P.jsxs)(D.a,{tabIndex:0,className:(0,$.cn)("nav-item group flex w-full cursor-pointer items-center border-b border-accent-iron p-0 px-6 py-4 text-start"),children:[(0,P.jsx)(M.I,{name:B.icon,size:"small",color:"brunel-dark-grey"}),(0,P.jsx)(D.a,{className:"pl-4 font-semibold! text-brunel-dark-grey",children:B.hasLink&&(0,P.jsx)(L(),{href:B.link,target:B.target,children:B.hasText&&B.text})}),(0,P.jsx)(D.a,{className:"ml-auto flex"})]})})},U=({loginPage:N,securitySectionLoginLabel:I,securitySectionLoggedinLink:T,authenticated:R})=>{let B=F(R,N,I,T?.link);return B.hasLink?(0,P.jsxs)(L(),{href:B.link,target:B.target,tabIndex:0,className:(0,$.cn)("nav-item underline-effect group relative flex w-full cursor-pointer items-center border-b border-none border-accent-iron p-0 py-4 text-start text-white after:right-0"),children:[(0,P.jsx)(M.I,{name:B.icon??"user",size:"small",color:"white"}),B.hasText&&(0,P.jsx)(D.a,{className:"ml-auto flex pl-2 font-semibold",children:B.text})]}):null}},57661:(N,I,T)=>{"use strict";T.r(I),T.d(I,{RelatedCaseStudiesCard:()=>G});var P=T(37876),D=T(94274),M=T(85609),R=T(87273),L=T(61584),$=T(48230),F=T.n($),B=T(63366),U=T(60409),H=T(36379),z=T(92594),W=T(18571),q=T(81202);let G=({result:N,lastCard:I})=>{let{page:T}=(0,M.M5)(),$=(0,W.Cs)(N?.caseStudyCategory),G=$?.name,K=$?.displayName,V=T?.locale??U.Xn,Y=(0,W.$I)(N),J=Y?.value?.src,Q=Y?.value?.alt||"Case Study Card Image",Z={value:N?.caseStudyHeroPublicationDate?.value??""},X=(0,q.Yq)(Z,V),ee=(0,q.Qc)(Z.value)&&"Invalid Date"!==X.value;return(0,P.jsxs)(B.az,{className:(0,H.cn)("flex flex-col border-ui-grey py-4 sm:border-none sm:bg-white sm:py-0 sm:sh
962adow-blog-card",{"border-b":!I}),children:[(0,P.jsxs)(F(),{className:"group flex h-full flex-row sm:flex-col",href:N.url?.path??"#",children:[J&&(0,P.jsx)(B.az,{className:"relative flex items-center overflow-hidden",children:(0,P.jsx)(R._,{className:(0,H.cn)("aspect-square max-w-26 object-cover transition-all delay-75 ease-linear hover:scale-105 sm:aspect-video sm:w-full sm:max-w-full"),field:{src:J},alt:Q,srcSet:[{mw:250}],sizes:"250px"})}),(0,P.jsx)(B.az,{className:"relative flex flex-1 flex-col justify-start px-4 sm:justify-between sm:p-4",children:(0,P.jsxs)(B.az,{className:"flex flex-col gap-2",children:[(0,P.jsx)(B.o5,{className:"mb-0 text-brunel-dark-grey group-hover:brunel-underline-3-brunel-dark-grey sm:line-clamp-2",type:"h4",plainText:N?.previewTitle?.value}),ee&&(0,P.jsx)(B.az,{className:"text-sm font-medium text-ui-grey",children:(0,P.jsx)(L.v,{field:Z,tag:"span",render:()=>X.value})}),(0,P.jsx)(B.o5,{className:"line-clamp-3 text-sm leading-snug text-ui-grey/90",type:"small",plainText:N?.previewIntro?.value})]})})]}),G&&(0,P.jsx)(B.az,{className:"mb-4 ml-4 flex w-max flex-wrap gap-2",children:(0,P.jsx)(D.TagButton,{className:"hidden sm:flex",value:K??G,link:(0,z.dX)(G)})})]})}},57735:(N,I,T)=>{"use strict";var P=T(99742);function D(N,I){var T;return P.env.NEXTAUTH_URL?P.env.NEXTAUTH_URL:(null!=(T=P.env.VERCEL)?T:P.env.AUTH_TRUST_HOST)?`${"http"===I?"http":"https"}://${N}`:P.env.NEXTAUTH_URL}Object.defineProperty(I,"__esModule",{value:!0}),I.detectOrigin=D},57910:(N,I,T)=>{"use strict";T.d(I,{U:()=>F});var P=T(75636),D=T(27883);let M=/^\/([a-z]{2,5}(?:-[a-z]{2,5})?)\//i,R=/expired-vacancy\/([^/?#]+)/i,L=(N,I,T)=>{if("jobs"!==I||!T)return T;let R=M.exec(N)?.[1],[L,...$]=T.split("/");if(!L||!(0,P.jl)(L))return T;let F=(0,D.JL)(L,R);return $.length?`${F}/${$.join("/")}`:F},$=(N,I,T)=>{let P=R.exec(T)?.[1]?.toLowerCase();if(!P)return{canonicalUrl:N,pageHrefLangUrl:I};let D="expired-vacancy",M=/^\/[a-z]{2,5}(-[a-z]{2,5})?\//.exec(T),L=M?M[0]:"";if(!(N.endsWith(`/${D}/`)||N.endsWith(`/${D}
962`))||!(T.includes(`${D}/`)||T.includes(`${L}${D}/`)))return{canonicalUrl:N,pageHrefLangUrl:I};let $=`${D}/${P}`;return{canonicalUrl:N.replace(`/${D}/`,`/${$}`),pageHrefLangUrl:I.map(N=>N.url.endsWith(`/${D}/`)||N.url.endsWith(`/${D}`)?{...N,url:N.url.replace(`/${D}/`,`/${$}`)}:N)}},F=(N,I,T)=>{let P=["jobs","blog","events","case-studies"],D=/^\/[a-z]{2,5}(-[a-z]{2,5})?\//,M=N,R=I;if(M&&R){P.forEach(N=>{let I=D.exec(T),P=I?I[0]:"";if((M.endsWith(`/${N}/`)||M.endsWith(`/${N}`))&&(T.startsWith(`/${N}/`)||T.startsWith(`${P}${N}/`))){let I=T.split(`${N}/`)[1],P=L(T,N,I),D=`${N}/${P}`;M=M.replace(`/${N}/`,`/${D}`),R=R.map(I=>I.url.endsWith(`/${N}/`)||I.url.endsWith(`/${N}`)?{...I,url:I.url.replace(`/${N}/`,`/${D}`)}:I)}});let N=$(M,R,T);M=N.canonicalUrl,R=N.pageHrefLangUrl}return{canonicalUrl:M,pageHrefLangUrl:R}}},58138:(N,I,T)=>{"use strict";T.d(I,{BV:()=>P.BV,C0:()=>P.C0,kL:()=>P.kL,lJ:()=>P.lJ});var P=T(96201)},58171:(N,I)=>{"use strict";var T;T={value:!0},I.A=function N(N){var I;let{tenantId:T,primaryUserFlow:P}=N,D=null!=(I=N.issuer)?I:`https://${T}.b2clogin.com/${T}.onmicrosoft.com/${P}/v2.0`;return{id:"azure-ad-b2c",name:"Azure Active Directory B2C",type:"oauth",wellKnown:`${D}/.well-known/openid-configuration`,idToken:!0,profile:N=>({id:N.sub,name:N.name,email:N.emails[0],image:null}),style:{logo:"/azure.svg",text:"#fff",bg:"#0072c6"},options:N}}},58184:(N,I,T)=>{var P={572:function(N,I,T){var P=T(611),D=T(16),M=N.exports;for(var R in P)P.hasOwnProperty(R)&&(M[R]=P[R]);function L(N){if("string"==typeof N&&(N=D.parse(N)),N.protocol||(N.protocol="https:"),"https:"!==N.protocol)throw Error('Protocol "'+N.protocol+'" not supported. Expected "https:"');return N}M.request=function(N,I){return N=L(N),P.request.call(this,N,I)},M.get=function(N,I){return N=L(N),P.get.call(this,N,I)}},611:function(N){"use strict";N.exports=T(40939)},16:function(N){"use strict";N.exports=T(3305)}},D={};function M(N){var I=D[N];if(void 0!==I)return I.exports;var T=D[N]={exports:{}},R=!0;try{P[N](T,T.exports,M),R=!1}finally{R&&delete D[N]}return T.exports}M.ab="//",N.exports=M(572)},58291:(N,I,T)=>{"use strict";var P=T(29563);Object.defineProperty(I,"__esModule",{value:!0}),I.assertConfig=F;var D=T(42226),M=P(T(40316)),R=T(3883);let L=!1;function $(N,I){try{return/^https?:/.test(new URL(N,N.startsWith("/")?I:void 0).protocol)}catch(N){return!1}}function F(N){var I,T,P,F,B,U,H;let z,W,q,{options:G,req:K}=N,V=[];if(!L&&(K.origin||V.push("NEXTAUTH_URL"),G.secret,G.debug&&V.push("DEBUG_ENABLED")),!G.secret)return new D.MissingSecret("Please define a `secret` in production.");if(!(null!=(I=K.query)&&I.nextauth)&&!K.action)return new D.MissingAPIRoute("Cannot find [...nextauth].{js,ts} in `/pages/api/auth`. Make sure the filename is written correctly.");let Y=null==(T=K.query)?void 0:T.callbackUrl,J=(0,M.default)(K.origin);if(Y&&!$(Y,J.base))return new D.InvalidCallbackUrl(`Invalid callback URL. Received: ${Y}`);let{callbackUrl:Q}=(0,R.defaultCookies)(null!=(P=G.useSecureCookies)?P:J.base.startsWith("https://")),Z=null==(F=K.cookies)?void 0:F[null!=(B=null==(U=G.cookies)||null==(U=U.callbackUrl)?void 0:U.name)?B:Q.name];if(Z&&!$(Z,J.base))return new D.InvalidCallbackUrl(`Invalid callback URL. Received: ${Z}`);for(let N of G.providers)"credentials"===N.type?z=!0:"email"===N.type?W=!0:"twitter"===N.id&&"2.0"===N.version&&(q=!0);if(z){let N=(null==(H=G.session)?void 0:H.strategy)==="database",I=!G.providers.some(N=>
962"credentials"!==N.type);if(N&&I)return new D.UnsupportedStrategy("Signin in with credentials only supported if JWT strategy is enabled");if(G.providers.some(N=>"credentials"===N.type&&!N.authorize))return new D.MissingAuthorize("Must define an authorize() handler to use credentials authentication provider")}if(W){let{adapter:N}=G;if(!N)return new D.MissingAdapter("E-mail login requires an adapter.");let I=["createVerificationToken","useVerificationToken","getUserByEmail"].filter(I=>!N[I]);if(I.length)return new D.MissingAdapterMethods(`Required adapter methods were missing: ${I.join(", ")}`)}return L||(q&&V.push("TWITTER_OAUTH_2_BETA"),L=!0),V}},58361:N=>{"use strict";N.exports={stdout:!1,stderr:!1}},58449:(N,I)=>{"use strict";function T(N){let I=new Uint8Array(4*N.length);for(let T=0;T<4*N.length;T++)I[T]=N[T>>2]>>>T%4*8&255;return I}function P(N){return(N+64>>>9<<4)+14+1}function D(N,I){let T=new Uint32Array(P(I)).fill(0);T.set(N),T[I>>5]|=128<<I%32,T[T.length-1]=I,N=T;let D=0x67452301,M=-0x10325477,L=-0x67452302,$=0x10325476;for(let I=0;I<N.length;I+=16){let T=D,P=M,z=L,W=$;D=F(D,M,L,$,N[I],7,-0x28955b88),$=F($,D,M,L,N[I+1],12,-0x173848aa),L=F(L,$,D,M,N[I+2],17,0x242070db),M=F(M,L,$,D,N[I+3],22,-0x3e423112),D=F(D,M,L,$,N[I+4],7,-0xa83f051),$=F($,D,M,L,N[I+5],12,0x4787c62a),L=F(L,$,D,M,N[I+6],17,-0x57cfb9ed),M=F(M,L,$,D,N[I+7],22,-0x2b96aff),D=F(D,M,L,$,N[I+8],7,0x698098d8),$=F($,D,M,L,N[I+9],12,-0x74bb0851),L=F(L,$,D,M,N[I+10],17,-42063),M=F(M,L,$,D,N[I+11],22,-0x76a32842),D=F(D,M,L,$,N[I+12],7,0x6b901122),$=F($,D,M,L,N[I+13],12,-0x2678e6d),L=F(L,$,D,M,N[I+14],17,-0x5986bc72),M=F(M,L,$,D,N[I+15],22,0x49b40821),D=B(D,M,L,$,N[I+1],5,-0x9e1da9e),$=B($,D,M,L,N[I+6],9,-0x3fbf4cc0),L=B(L,$,D,M,N[I+11],14,0x265e5a51),M=B(M,L,$,D,N[I],20,-0x16493856),D=B(D,M,L,$,N[I+5],5,-0x29d0efa3),$=B($,D,M,L,N[I+10],9,0x2441453),L=B(L,$,D,M,N[I+15],14,-0x275e197f),M=B(M,L,$,D,N[I+4],20,-0x182c0438),D=B(D,M,L,$,N[I+9],5,0x21e1cde6),$=B($,D,M,L,N[I+14],9,-0x3cc8f82a),L=B(L,$,D,M,N[I+3],14,-0xb2af279),M=B(M,L,$,D,N[I+8],20,0x455a14ed),D=B(D,M,L,$,N[I+13],5,-0x561c16fb),$=B($,D,M,L,N[I+2],9,-0x3105c08),L=B(L,$,D,M,N[I+7],14,0x676f02d9),M=B(M,L,$,D,N[I+12],20,-0x72d5b376),D=U(D,M,L,$,N[I+5],4,-378558),$=U($,D,M,L,N[I+8],11,-0x788e097f),L=U(L,$,D,M,N[I+11],16,0x6d9d6122),M=U(M,L,$,D,N[I+14],23,-0x21ac7f4),D=U(D,M,L,$,N[I+1],4,-0x5b4115bc),$=U($,D,M,L,N[I+4],11,0x4bdecfa9),L=U(L,$,D,M,N[I+7],16,-0x944b4a0),M=U(M,L,$,D,N[I+10],23,-0x41404390),D=U(D,M,L,$,N[I+13],4,0x289b7ec6),$=U($,D,M,L,N[I],11,-0x155ed806),L=U(L,$,D,M,N[I+3],16,-0x2b10cf7b),M=U(M,L,$,D,N[I+6],23,0x4881d05),D=U(D,M,L,$,N[I+9],4,-0x262b2fc7),$=U($,D,M,L,N[I+12],11,-0x1924661b),L=U(L,$,D,M,N[I+15],16,0x1fa27cf8),M=U(M,L,$,D,N[I+2],23,-0x3b53a99b),D=H(D,M,L,$,N[I],6,-0xbd6ddbc),$=H($,D,M,L,N[I+7],10,0x432aff97),L=H(L,$,D,M,N[I+14],15,-0x546bdc59),M=H(M,L,$,D,N[I+5],21,-0x36c5fc7),D=H(D,M,L,$,N[I+12],6,0x655b59c3),$=H($,D,M,L,N[I+3],10,-0x70f3336e),L=H(L,$,D,M,N[I+10],15,-1051523),M=H(M,L,$,D,N[I+1],21,-0x7a7ba22f),D=H(D,M,L,$,N[I+8],6,0x6fa87e4f),$=H($,D,M,L,N[I+15],10,-0x1d31920),L=H(L,$,D,M,N[I+6],15,-0x5cfebcec),M=H(M,L,$,D,N[I+13],21,0x4e0811a1),D=H(D,M,L,$,N[I+4],6,-0x8ac817e),$=H($,D,M,L,N[I+11],10,-0x42c50dcb),L=H(L,$,D,M,N[I+2],15,0x2ad7d2bb),M=H(M,L,$,D,N[I+9],21,-0x14792c6f),D=R(D,T),M=R(M,P),L=R(L,z),$=R($,W)}return Uint32Array.of(D,M,L,$)}function M(N){if(0===N.length)return new Uint32Array;let I=new Uint32Array(P(8*N.length)).fill(0);for(let T=0;T<N.length;T++)I[T>>2]|=(255&N[T])<<T%4*8;return I}function R(N,I){let T=(65535&N)+(65535&I);return(N>>16)+(I>>16)+(T>>16)<<16|65535&T}function L(N,I){return N<<I|N>>>32-I}function $(N,I,T,P,D,M){return R(L(R(R(I,N),R(P,M)),D),T)}function F(N,I,T,P,D,M,R){return $(I&T|~I&P,N,I,D,M,R)}function B(N,I,T,P,D,M,R){return $(I&P|T&~P,N,I,D,M,R)}function U(N,I,T,P,D,M,R){return $(I^T^P,N,I,D,M,R)}function H(N,I,T,P,D,M,R){return $(T^(I|~P),N,I,D,M,R)}Object.defineProperty(I,"__esModule",{value:!0}),I.default=function(N){return T(D(M(N),8*N.length))}},58621:(N,I,T)=>{"use strict";T.d(I,{s:()=>L});var P=T(71523);let D={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},M={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},R={full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},L={date:(0,P.k)({formats:D,defaultWidth:"full"}),time:(0,P.k)({formats:M,defaultWidth:"full"}),dateTime:(0,P.k)({formats:R,defaultWidth:"full"})}},59088:(N,I,T)=>{"use strict";T.d(I,{Cv:()=>F});var P=T(37876),D=T(87273),M=T(36379),R=T(7073);let L=[{mw:3840},{mw:1920},{mw:1280},{mw:1024},{mw:768},{mw:640},{mw:500}],$="(min-width: 3840px) 3840px, (min-width: 1920px) 1920px, (min-width: 1280px) 1280px, (min-width: 1024px) 1024px, (min-width: 768px) 768px, (min-width: 640px) 640px, 500px",F=({field:N,alt:I,priority:T,focalPoint:F,fallbackPosition:B="center center",className:U})=>(0,P.jsx)(D._,{fill:!0,priority:T,field:N??{value:{src:"",alt:""}},alt:I,srcSet:L,sizes:$,className:(0,M.cn)("absolute size-full object-cover",U),style:{objectPosition:(0,R.o)(F,B)}})},59764:(N,I,T)=>{"use strict";T.d(I,{A:()=>M,h:()=>L});var P=T(14232),D=T(85609);let M=N=>P.createElement("div",{className:"sc-content-sdk-placeholder-error"},N.message?N.message:N.children);class R extends P.Component{constructor(N){super(N),this.defaultErrorMessage="There was a problem loading this section.",this.defaultLoadingMessage="Loading component...",this.state={error:null}}static getDerivedStateFromError(N){return{error:N}}componentDidCatch(N,I){var T,P;this.showErrorDetails()&&console.error(`An error occurred in component ${null==(T=this.props.rendering)?void 0:T.componentName} (${null==(P=this.props.rendering)?void 0:P.uid}): `),console.error({error:N,errorInfo:I})}isInDevMode(){return!1}showErrorDetails(){return this.isInDevMode()||this.props.page.mode.isEditing||this.props.page.mode.isPreview}render(){var N,I;if(this.state.error)if(this.props.errorComponent)return P.createElement(this.props.errorComponent,{error:this.state.error});else if(this.showErrorDetails())return P.createElement("div",null,P.createElement(M,null,"A rendering error occurred in component"," ",P.createElement("em",null,null==(N=this.props.rendering)?void 0:N.componentName),P.createElement("br",null),"Error: ",P.createElement("em",null,this.state.error.message||JSON.stringify(this.state.error))));else return P.createElement("div",null,P.createElement(M,{message:this.defaultErrorMessage}));return null==(I=this.props.disableSuspense)||I||this.props.isDynamic?this.props.children:P.createElement(P.Suspense,{fallback:P.createElement("h4",null,this.props.componentLoadingMessage||this.defaultLoadingMessage)},this.props.children)}}let L=N=>
962{let{page:I}=(0,D.M5)(),T=Object.assign(Object.assign({},N),{page:I});return P.createElement(R,Object.assign({},T))}},60194:(N,I,T)=>{"use strict";T.r(I),T.d(I,{RelatedCaseStudiesResultCardList:()=>R});var P=T(37876),D=T(57661),M=T(63366);let R=({results:N})=>N?.length>0?(0,P.jsx)(M.az,{className:"flex-1 flex-row items-center justify-center",children:(0,P.jsx)(M.az,{className:"mt-8 grid grid-flow-row-dense grid-cols-1 sm:grid-cols-2 sm:gap-8 lg:grid-cols-4",children:N.map((I,T)=>(0,P.jsx)(D.RelatedCaseStudiesCard,{result:I,lastCard:T===N.length-1},I?.previewTitle?.value??I?.name))})}):null},60247:(N,I,T)=>{let P;var D=T(82909).Buffer;let{strict:M}=T(34322),{createHash:R}=T(63426),{format:L}=T(68994);if(D.isEncoding("base64url"))P=N=>N.toString("base64url");else{let N=N=>N.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_");P=I=>N(I.toString("base64"))}function $(N,I){switch(N){case"HS256":case"RS256":case"PS256":case"ES256":case"ES256K":return R("sha256");case"HS384":case"RS384":case"PS384":case"ES384":return R("sha384");case"HS512":case"RS512":case"PS512":case"ES512":case"Ed25519":return R("sha512");case"Ed448":return R("shake256",{outputLength:114});case"ML-DSA-44":case"ML-DSA-65":case"ML-DSA-87":return R("shake256",{outputLength:64});case"EdDSA":switch(I){case"Ed25519":return R("sha512");case"Ed448":return R("shake256",{outputLength:114});default:throw TypeError("unrecognized or invalid EdDSA curve provided")}default:throw TypeError("unrecognized or invalid JWS algorithm provided")}}function F(N,I,T){let D=$(I,T).update(N).digest();return P(D.slice(0,D.length/2))}N.exports={validate:function(N,I,T,P,D){let R,$;if("string"!=typeof N.claim||!N.claim)throw TypeError("names.claim must be a non-empty string");if("string"!=typeof N.source||!N.source)throw TypeError("names.source must be a non-empty string");M("string"==typeof I&&I,`${N.claim} must be a non-empty string`),M("string"==typeof T&&T,`${N.source} must be a non-empty string`);try{R=F(T,P,D)}catch(I){$=L("%s could not be validated (%s)",N.claim,I.message)}$=$||L("%s mismatch, expected %s, got: %s",N.claim,R,I),M.equal(R,I,$)},generate:F}},60346:(N,I)=>{"use strict";function T(N,I,T,P){switch(N){case 0:return I&T^~I&P;case 1:case 3:return I^T^P;case 2:return I&T^I&P^T&P}}function P(N,I){return N<<I|N>>>32-I}Object.defineProperty(I,"__esModule",{value:!0}),I.default=function(N){let I=[0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xca62c1d6],D=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0],M=new Uint8Array(N.length+1);M.set(N),M[N.length]=128;let R=Math.ceil(((N=M).length/4+2)/16),L=Array(R);for(let I=0;I<R;++I){let T=new Uint32Array(16);for(let P=0;P<16;++P)T[P]=N[64*I+4*P]<<24|N[64*I+4*P+1]<<16|N[64*I+4*P+2]<<8|N[64*I+4*P+3];L[I]=T}L[R-1][14]=(N.length-1)*8/0x100000000,L[R-1][14]=Math.floor(L[R-1][14]),L[R-1][15]=(N.length-1)*8|0;for(let N=0;N<R;++N){let M=new Uint32Array(80);for(let I=0;I<16;++I)M[I]=L[N][I];for(let N=16;N<80;++N)M[N]=P(M[N-3]^M[N-8]^M[N-14]^M[N-16],1);let R=D[0],$=D[1],F=D[2],B=D[3],U=D[4];for(let N=0;N<80;++N){let D=Math.floor(N/20),L=P(R,5)+T(D,$,F,B)+U+I[D]+M[N]>>>0;U=B,B=F,F=P($,30)>>>0,$=R,R=L}D[0]=D[0]+R>>>0,D[1]=D[1]+$>>>0,D[2]=D[2]+F>>>0,D[3]=D[3]+B>>>0,D[4]=D[4]+U>>>0}return Uint8Array.of(D[0]>>24,D[0]>>16,D[0]>>8,D[0],D[1]>>24,D[1]>>16,D[1]>>8,D[1],D[2]>>24,D[2]>>16,D[2]>>8,D[2],D[3]>>24,D[3]>>16,D[3]>>8,D[3],D[4]>>24,D[4]>>16,D[4]>>8,D[4])}},60388:(N,I,T)=>{"use strict";let P,D,M,R,L,$,F;T.d(I,{jG:()=>U});let B=T(48306).Zq,U=(P=[],D=0,M=N=>{N()},R=N=>{N()},L=B,$=N=>{D?P.push(N):L(()=>{M(N)})},F=()=>{let N=P;P=[],N.length&&L(()=>{R(()=>{N.forEach(N=>{M(N)})})})},{batch:N=>{let I;D++;try{I=N()}finally{--D||F()}return I},batchCalls:N=>(...I)=>{$(()=>{N(...I)})},schedule:$,setNotifyFunction:N=>{M=N},setBatchNotifyFunction:N=>{R=N},setScheduler:N=>{L=N}})},60409:(N,I,T)=>{"use strict";T.d(I,{$d:()=>Y,Lt:()=>B,OV:()=>D,QF:()=>W,UF:()=>F,Ui:()=>L,Xn:()=>K,YZ:()=>P,Zf:()=>J,ak:()=>R,lI:()=>G,pQ:()=>$,qN:()=>M,sA:()=>q,wT:()=>V});let P="{E512B079-0728-4D4F-8DD2-32702FA190D4}",D="{77EAEA1B-EBBB-444F-8973-AD2D0B0C910F}",M="{DB5DF2D8-571C-4067-839B-F4DE72C56926}",R="{AC118D95-0DA8-4B31-AB99-F292FF8D7107}",L="Main Hero",$="{8BA70B41-1859-47EB-B188-942BD1786794}",F="629e3ffa-aecd-421e-ac8f-e7f2a24f31e7",B="844877ee-45c0-4d41-a186-f2637def338f";var U,H,z,W=((U={}).blogCategory="blogHeroCategory",U.blogOverviewCategories="blogOverviewCategories",U),q=((H={}).eventCategory="eventsListToDisplay",H.eventOverviewCategories="eventOverviewCategories",H),G=((z={}).caseStudyCategory="caseStudyCategory",z.caseStudyOverviewCategories="caseStudyOverviewCategories",z.caseStudiesListToDisplay="caseStudiesListToDisplay",z);let K="en",V="/sitecore/content/Brunel/Brunel Shared Website/Data/Global Contact Cards",Y="Data/Contact Cards",J="BDC6243B7C8049C49EE4B4B5CABC2649"},60547:(N,I,T)=>{"use strict";let P;T.d(I,{d:()=>oq});var D,M,R,L=T(37876),$=T(68602),F=T(77470),B=T(84612),U=T(63808),H=T(14232),z=T.t(H,2),W=T(69241),q=T(12235),G=T(69867),K=T(43691);function V(N,I){let T,P,D=()=>(0,G.w)(I?.in,NaN),M=I?.additionalDigits??2,R=et(N);if(R.date){let N=er(R.date,M);T=en(N.restDateString,N.year)}if(!T||isNaN(+T))return D();let L=+T,$=0;if(R.time&&isNaN($=ei(R.time)))return D();if(R.timezone){if(isNaN(P=es(R.timezone)))return D()}else{let N=new Date(L+$),T=(0,K.a)(0,I?.in);
962return T.setFullYear(N.getUTCFullYear(),N.getUTCMonth(),N.getUTCDate()),T.setHours(N.getUTCHours(),N.getUTCMinutes(),N.getUTCSeconds(),N.getUTCMilliseconds()),T}return(0,K.a)(L+$+P,I?.in)}let Y=/[T ]/,J=/[Z ]/i,Q=/([Z+-].*)$/,Z=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,X=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,ee=/^([+-])(\d{2})(?::?(\d{2}))?$/;function et(N){let I,T={},P=N.split(Y);if(P.length>2)return T;if(/:/.test(P[0])?I=P[0]:(T.date=P[0],I=P[1],J.test(T.date)&&(T.date=N.split(J)[0],I=N.substr(T.date.length,N.length))),I){let N=Q.exec(I);N?(T.time=I.replace(N[1],""),T.timezone=N[1]):T.time=I}return T}function er(N,I){let T=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+I)+"})|(\\d{2}|[+-]\\d{"+(2+I)+"})$)"),P=N.match(T);if(!P)return{year:NaN,restDateString:""};let D=P[1]?parseInt(P[1]):null,M=P[2]?parseInt(P[2]):null;return{year:null===M?D:100*M,restDateString:N.slice((P[1]||P[2]).length)}}function en(N,I){if(null===I)return new Date(NaN);let T=N.match(Z);if(!T)return new Date(NaN);let P=!!T[4],D=ea(T[1]),M=ea(T[2])-1,R=ea(T[3]),L=ea(T[4]),$=ea(T[5])-1;if(P)return eh(I,L,$)?el(I,L,$):new Date(NaN);{let N=new Date(0);return ed(I,M,R)&&ef(I,D)?(N.setUTCFullYear(I,M,Math.max(D,R)),N):new Date(NaN)}}function ea(N){return N?parseInt(N):1}function ei(N){let I=N.match(X);if(!I)return NaN;let T=eo(I[1]),P=eo(I[2]),D=eo(I[3]);return ep(T,P,D)?T*q.s0+P*q.Cg+1e3*D:NaN}function eo(N){return N&&parseFloat(N.replace(",","."))||0}function es(N){if("Z"===N)return 0;let I=N.match(ee);if(!I)return 0;let T="+"===I[1]?-1:1,P=parseInt(I[2]),D=I[3]&&parseInt(I[3])||0;return em(P,D)?T*(P*q.s0+D*q.Cg):NaN}function el(N,I,T){let P=new Date(0);P.setUTCFullYear(N,0,4);let D=(I-1)*7+T+1-(P.getUTCDay()||7);return P.setUTCDate(P.getUTCDate()+D),P}let ec=[31,null,31,30,31,30,31,31,30,31,30,31];function eu(N){return N%400==0||N%4==0&&N%100!=0}function ed(N,I,T){return I>=0&&I<=11&&T>=1&&T<=(ec[I]||(eu(N)?29:28))}function ef(N,I){return I>=1&&I<=(eu(N)?366:365)}function eh(N,I,T){return I>=1&&I<=53&&T>=0&&T<=6}function ep(N,I,T){return 24===N?0===I&&0===T:T>=0&&T<60&&I>=0&&I<60&&N>=0&&N<25}function em(N,I){return I>=0&&I<=59}var eg=T(1806),ey=T(41760),eb=T(25637),ev=T(42586);function ew(){return Object.assign({},(0,ev.q)())}function ex(N,I){let T=eA(I)?new I(0):(0,G.w)(I,0);return T.setFullYear(N.getFullYear(),N.getMonth(),N.getDate()),T.setHours(N.getHours(),N.getMinutes(),N.getSeconds(),N.getMilliseconds()),T}function eA(N){return"function"==typeof N&&N.prototype?.constructor===N}let eE=10;class eS{subPriority=0;validate(N,I){return!0}}class e_ extends eS{constructor(N,I,T,P,D){super(),this.value=N,this.validateValue=I,this.setValue=T,this.priority=P,D&&(this.subPriority=D)}validate(N,I){return this.validateValue(N,this.value,I)}set(N,I,T){return this.setValue(N,I,this.value,T)}}class ek extends eS{priority=eE;subPriority=-1;constructor(N,I){super(),this.context=N||(N=>(0,G.w)(I,N))}set(N,I){return I.timestampIsSet?N:(0,G.w)(N,ex(N,this.context))}}class eC{run(N,I,T,P){let D=this.parse(N,I,T,P);return D?{setter:new e_(D.value,this.validate,this.set,this.priority,this.subPriority),rest:D.rest}:null}validate(N,I,T){return!0}}class ej extends eC{priority=140;parse(N,I,T){switch(I){case"G":case"GG":case"GGG":return T.era(N,{width:"abbreviated"})||T.era(N,{width:"narrow"});case"GGGGG":return T.era(N,{width:"narrow"});default:return T.era(N,{width:"wide"})||T.era(N,{width:"abbreviated"})||T.era(N,{width:"narrow"})}}set(N,I,T){return I.era=T,N.setFullYear(T,0,1),N.setHours(0,0,0,0),N}incompatibleTokens=["R","u","t","T"]}let eO=/^(1[0-2]|0?\d)/,eN=/^(3[0-1]|[0-2]?\d)/,eI=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,eT=/^(5[0-3]|[0-4]?\d)/,eP=/^(2[0-3]|[0-1]?\d)/,eD=/^(2[0-4]|[0-1]?\d)/,eM=/^(1[0-1]|0?\d)/,eR=/^(1[0-2]|0?\d)/,eL=/^[0-5]?\d/,e$=/^[0-5]?\d/,eF=/^\d/,eB=/^\d{1,2}/,eU=/^\d{1,3}/,eH=/^\d{1,4}/,ez=/^-?\d+/,eW=/^-?\d/,eq=/^-?\d{1,2}/,eG=/^-?\d{1,3}/,eK=/^-?\d{1,4}/,eV=/^([+-])(\d{2})(\d{2})?|Z/,eY=/^([+-])(\d{2})(\d{2})|Z/,eJ=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,eQ=/^([+-])(\d{2}):(\d{2})|Z/,eZ=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function eX(N,I){return N?{value:I(N.value),rest:N.rest}:N}function e0(N,I){let T=I.match(N);return T?{value:parseInt(T[0],10),rest:I.slice(T[0].length)}:null}function e1(N,I){let T=I.match(N);if(!T)return null;if("Z"===T[0])return{value:0,rest:I.slice(1)};let P="+"===T[1]?1:-1,D=T[2]?parseInt(T[2],10):0,M=T[3]?parseInt(T[3],10):0,R=T[5]?parseInt(T[5],10):0;return{value:P*(D*q.s0+M*q.Cg+R*q._m),rest:I.slice(T[0].length)}}function e2(N){return e0(ez,N)}function e3(N,I){switch(N){case 1:return e0(eF,I);case 2:return e0(eB,I);case 3:return e0(eU,I);case 4:return e0(eH,I);default:return e0(RegExp("^\\d{1,"+N+"}"),I)}}function e4(N,I){switch(N){case 1:return e0(eW,I);case 2:return e0(eq,I);case 3:return e0(eG,I);case 4:return e0(eK,I);default:return e0(RegExp("^-?\\d{1,"+N+"}"),I)}}function e5(N){switch(N){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function e6(N,I){let T,P=I>0,D=P?I:1-I;if(D<=50)T=N||100;else{let I=D+50,P=100*Math.trunc(I/100),M=N>=I%100;T=N+P-100*!!M}return P?T:1-T}function e8(N){return N%400==0||N%4==0&&N%100!=0}class e7 extends eC{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(N,I,T){let P=N=>({year:N,isTwoDigitYear:"yy"===I});switch(I){case"y":return eX(e3(4,N),P);case"yo":return eX(T.ordinalNumber(N,{unit:"year"}),P);default:return eX(e3(I.length,N),P)}}validate(N,I){return I.isTwoDigitYear||I.year>0}set(N,I,T){let P=N.getFullYear();if(T.isTwoDigitYear){let I=e6(T.year,P);return N.setFullYear(I,0,1),N.setHours(0,0,0,0),N}let D="era"in I&&1!==I.era?1-T.year:T.year;return N.setFullYear(D,0,1),N.setHours(0,0,0,0),N}}var e9=T(14111),te=T(48459);class tt extends eC{priority=130;parse(N,I,T){let P=N=>({year:N,isTwoDigitYear:"YY"===I});switch(I){case"Y":return eX(e3(4,N),P);case"Yo":return eX(T.ordinalNumber(N,{unit:"year"}),P);default:return eX(e3(I.length,N),P)}}validate(N,I){return I.isTwoDigitYear||I.year>0}set(N,I,T,P){let D=(0,e9.h)(N,P);if(T.isTwoDigitYear){let I=e6(T.year,D);return N.setFullYear(I,0,P.firstWeekContainsDate),N.setHours(0,0,0,0),(0,te.k)(N,P)}let M="era"in I&&1!==I.era?1-T.year:T.year;return N.setFullYear(M,0,P.firstWeekContainsDate),N.setHours(0,0,0,0),(0,te.k)(N,P)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}var tr=T(61120);class tn extends eC{priority=130;parse(N,I){return"R"===I?e4(4,N):e4(I.length,N)}set(N,I,T){let P=(0,G.w)(N,0);return P.setFullYear(T,0,4),P.setHours(0,0,0,0),(0,tr.b)(P)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}class ta extends eC{priority=130;parse(N,I){return"u"===I?e4(4,N):e4(I.length,N)}set(N,I,T){return N.setFullYear(T,0,1),N.setHours(0,0,0,0),N}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}class ti extends eC{priority=120;parse(N,I,T){switch(I){case"Q":case"QQ":return e3(I.length,N);case"Qo":return T.ordinalNumber(N,{unit:"quarter"});case"QQQ":return T.quarter(N,{width:"abbreviated",context:"formatting"})||T.quarter(N,{width:"narrow",context:"formatting"});case"QQQQQ":return T.quarter(N,{width:"narrow",context:"formatting"});default:return T.quarter(N,{width:"wide",context:"formatting"})||T.quarter(N,{width:"abbreviated",context:"formatting"})||T.quarter(N,{width:"narrow",context:"formatting"})}}validate(N,I){return I>=1&&I<=4}set(N,I,T){return N.setMonth((T-1)*3,1),N.setHours(0,0,0,0),N}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}class to extends eC{priority=120;parse(N,I,T){switch(I){case"q":case"qq":return e3(I.length,N);case"qo":return T.ordinalNumber(N,{unit:"quarter"});case"qqq":return T.quarter(N,{width:"abbreviated",context:"standalone"})||T.quarter(N,{width:"narrow",context:"standalone"});case"qqqqq":return T.quarter(N,{width:"narrow",context:"standalone"});default:return T.quarter(N,{width:"wide",context:"standalone"})||T.quarter(N,{width:"abbreviated",context:"standalone"})||T.quarter(N,{width:"narrow",context:"standalone"})}}validate(N,I){return I>=1&&I<=4}set(N,I,T){return N.setMonth((T-1)*3,1),N.setHours(0,0,0,0),N}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}class ts extends eC{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(N,I,T){let P=N=>N-1;switch(I){case"M":return eX(e0(eO,N),P);case"MM":return eX(e3(2,N),P);case"Mo":return eX(T.ordinalNumber(N,{unit:"month"}),P);case"MMM":return T.month(N,{width:"abbreviated",context:"formatting"})||T.month(N,{width:"narrow",context:"formatting"});case"MMMMM":return T.month(N,{width:"narrow",context:"formatting"});default:return T.month(N,{width:"wide",context:"formatting"})||T.month(N,{width:"abbreviated",context:"formatting"})||T.month(N,{width:"narrow",context:"formatting"})}}validate(N,I){return I>=0&&I<=11}set(N,I,T){return N.setMonth(T,1),N.setHours(0,0,0,0),N}}class tl extends eC{priority=110;parse(N,I,T){let P=N=>N-1;switch(I){case"L":return eX(e0(eO,N),P);case"LL":return eX(e3(2,N),P);case"Lo":return eX(T.ordinalNumber(N,{unit:"month"}),P);case"LLL":return T.month(N,{width:"abbreviated",context:"standalone"})||T.month(N,{width:"narrow",context:"standalone"});case"LLLLL":return T.month(N,{width:"narrow",context:"standalone"});default:return T.month(N,{width:"wide",context:"standalone"})||T.month(N,{width:"abbreviated",context:"standalone"})||T.month(N,{width:"narrow",context:"standalone"})}}validate(N,I){return I>=0&&I<=11}set(N,I,T){return N.setMonth(T,1),N.setHours(0,0,0,0),N}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}var tc=T(90051);function tu(N,I,T){let P=(0,K.a)(N,T?.in),D=(0,tc.N)(P,T)-I;return P.setDate(P.getDate()-7*D),(0,K.a)(P,T?.in)}class td extends eC{priority=100;parse(N,I,T){switch(I){case"w":return e0(eT,N);case"wo":return T.ordinalNumber(N,{unit:"week"});default:return e3(I.length,N)}}validate(N,I){return I>=1&&I<=53}set(N,I,T,P){return(0,te.k)(tu(N,T,P),P)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}var tf=T(91317);function th(N,I,T){let P=(0,K.a)(N,T?.in),D=(0,tf.s)(P,T)-I;return P.setDate(P.getDate()-7*D),P}class tp extends eC{priority=100;parse(N,I,T){switch(I){case"I":return e0(eT,N);case"Io":return T.ordinalNumber(N,{unit:"week"});default:return e3(I.length,N)}}validate(N,I){return I>=1&&I<=53}set(N,I,T){return(0,tr.b)(th(N,T))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}let tm=[31,28,31,30,31,30,31,31,30,31,30,31],tg=[31,29,31,30,31,30,31,31,30,31,30,31];class ty extends eC{priority=90;subPriority=1;parse(N,I,T){switch(I){case"d":return e0(eN,N);case"do":return T.ordinalNumber(N,{unit:"date"});default:return e3(I.length,N)}}validate(N,I){let T=e8(N.getFullYear()),P=N.getMonth();return T?I>=1&&I<=tg[P]:I>=1&&I<=tm[P]}set(N,I,T){return N.setDate(T),N.setHours(0,0,0,0),N}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}class tb extends eC{priority=90;subpriority=1;parse(N,I,T){switch(I){case"D":case"DD":return e0(eI,N);case"Do":return T.ordinalNumber(N,{unit:"date"});default:return e3(I.length,N)}}validate(N,I){return e8(N.getFullYear())?I>=1&&I<=366:I>=1&&I<=365}set(N,I,T){return N.setMonth(0,T),N.setHours(0,0,0,0),N}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}function tv(N,I,T){let P=(0,K.a)(N,T?.in);return isNaN(I)?(0,G.w)(T?.in||N,NaN):(I&&P.setDate(P.getDate()+I),P)}function tw(N,I,T){let P=(0,ev.q)(),D=T?.weekStartsOn??T?.locale?.options?.weekStartsOn??P.weekStartsOn??P.locale?.options?.weekStartsOn??0,M=(0,K.a)(N,T?.in),R=M.getDay(),L=(I%7+7)%7,$=7-D;return tv(M,I<0||I>6?I-(R+$)%7:(L+$)%7-(R+$)%7,T)}class tx extends eC{priority=90;parse(N,I,T){switch(I){case"E":case"EE":case"EEE":return T.day(N,{width:"abbreviated",context:"formatting"})||T.day(N,{width:"short",context:"formatting"})||T.day(N,{width:"narrow",context:"formatting"});case"EEEEE":return T.day(N,{width:"narrow",context:"formatting"});case"EEEEEE":return T.day(N,{width:"short",context:"formatting"})||T.day(N,{width:"narrow",context:"formatting"});default:return T.day(N,{width:"wide",context:"formatting"})||T.day(N,{width:"abbreviated",context:"formatting"})||T.day(N,{width:"short",context:"formatting"})||T.day(N,{width:"narrow",context:"formatting"})}}validate(N,I){return I>=0&&I<=6}set(N,I,T,P){return(N=tw(N,T,P)).setHours(0,0,0,0),N}incompatibleTokens=["D","i","e","c","t","T"]}class tA extends eC{priority=90;parse(N,I,T,P){let D=N=>{let I=7*Math.floor((N-1)/7);return(N+P.weekStartsOn+6)%7+I};switch(I){case"e":case"ee":return eX(e3(I.length,N),D);case"eo":return eX(T.ordinalNumber(N,{unit:"day"}),D);case"eee":return T.day(N,{width:"abbreviated",context:"formatting"})||T.day(N,{width:"short",context:"formatting"})||T.day(N,{width:"narrow",context:"formatting"});case"eeeee":return T.day(N,{width:"narrow",context:"formatting"});case"eeeeee":return T.day(N,{width:"short",context:"formatting"})||T.day(N,{width:"narrow",context:"formatting"});default:return T.day(N,{width:"wide",context:"formatting"})||T.day(N,{width:"abbreviated",context:"formatting"})||T.day(N,{width:"short",context:"formatting"})||T.day(N,{width:"narrow",context:"formatting"})}}validate(N,I){return I>=0&&I<=6}set(N,I,T,P){return(N=tw(N,T,P)).setHours(0,0,0,0),N}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}class tE extends eC{priority=90;parse(N,I,T,P){let D=N=>{let I=7*Math.floor((N-1)/7);return(N+P.weekStartsOn+6)%7+I};switch(I){case"c":case"cc":return eX(e3(I.length,N),D);case"co":return eX(T.ordinalNumber(N,{unit:"day"}),D);case"ccc":return T.day(N,{width:"abbreviated",context:"standalone"})||T.day(N,{width:"short",context:"standalone"})||T.day(N,{width:"narrow",context:"standalone"});case"ccccc":return T.day(N,{width:"narrow",context:"standalone"});case"cccccc":return T.day(N,{width:"short",context:"standalone"})||T.day(N,{width:"narrow",context:"standalone"});default:return T.day(N,{width:"wide",context:"standalone"})||T.day(N,{width:"abbreviated",context:"standalone"})||T.day(N,{width:"short",context:"standalone"})||T.day(N,{width:"narrow",context:"standalone"})}}validate(N,I){return I>=0&&I<=6}set(N,I,T,P){return(N=tw(N,T,P)).setHours(0,0,0,0),N}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}function tS(N,I){let T=(0,K.a)(N,I?.in).getDay();return 0===T?7:T}function t_(N,I,T){let P=(0,K.a)(N,T?.in),D=I-tS(P,T);return tv(P,D,T)}class tk extends eC{priority=90;parse(N,I,T){let P=N=>0===N?7:N;switch(I){case"i":case"ii":return e3(I.length,N);case"io":return T.ordinalNumber(N,{unit:"day"});case"iii":return eX(T.day(N,{width:"abbreviated",context:"formatting"})||T.day(N,{width:"short",context:"formatting"})||T.day(N,{width:"narrow",context:"formatting"}),P);case"iiiii":return eX(T.day(N,{width:"narrow",context:"formatting"}),P);case"iiiiii":return eX(T.day(N,{width:"short",context:"formatting"})||T.day(N,{width:"narrow",context:"formatting"}),P);default:return eX(T.day(N,{width:"wide",context:"formatting"})||T.day(N,{width:"abbreviated",context:"formatting"})||T.day(N,{width:"short",context:"formatting"})||T.day(N,{width:"narrow",context:"formatting"}),P)}}validate(N,I){return I>=1&&I<=7}set(N,I,T){return(N=t_(N,T)).setHours(0,0,0,0),N}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}class tC extends eC{priority=80;parse(N,I,T){switch(I){case"a":case"aa":case"aaa":return T.dayPeriod(N,{width:"abbreviated",context:"formatting"})||T.dayPeriod(N,{width:"narrow",context:"formatting"});case"aaaaa":return T.dayPeriod(N,{width:"narrow",context:"formatting"});default:return T.dayPeriod(N,{width:"wide",context:"formatting"})||T.dayPeriod(N,{width:"abbreviated",context:"formatting"})||T.dayPeriod(N,{width:"narrow",context:"formatting"})}}set(N,I,T){return N.setHours(e5(T),0,0,0),N}incompatibleTokens=["b","B","H","k","t","T"]}class tj extends eC{priority=80;
962parse(N,I,T){switch(I){case"b":case"bb":case"bbb":return T.dayPeriod(N,{width:"abbreviated",context:"formatting"})||T.dayPeriod(N,{width:"narrow",context:"formatting"});case"bbbbb":return T.dayPeriod(N,{width:"narrow",context:"formatting"});default:return T.dayPeriod(N,{width:"wide",context:"formatting"})||T.dayPeriod(N,{width:"abbreviated",context:"formatting"})||T.dayPeriod(N,{width:"narrow",context:"formatting"})}}set(N,I,T){return N.setHours(e5(T),0,0,0),N}incompatibleTokens=["a","B","H","k","t","T"]}class tO extends eC{priority=80;parse(N,I,T){switch(I){case"B":case"BB":case"BBB":return T.dayPeriod(N,{width:"abbreviated",context:"formatting"})||T.dayPeriod(N,{width:"narrow",context:"formatting"});case"BBBBB":return T.dayPeriod(N,{width:"narrow",context:"formatting"});default:return T.dayPeriod(N,{width:"wide",context:"formatting"})||T.dayPeriod(N,{width:"abbreviated",context:"formatting"})||T.dayPeriod(N,{width:"narrow",context:"formatting"})}}set(N,I,T){return N.setHours(e5(T),0,0,0),N}incompatibleTokens=["a","b","t","T"]}class tN extends eC{priority=70;parse(N,I,T){switch(I){case"h":return e0(eR,N);case"ho":return T.ordinalNumber(N,{unit:"hour"});default:return e3(I.length,N)}}validate(N,I){return I>=1&&I<=12}set(N,I,T){let P=N.getHours()>=12;return P&&T<12?N.setHours(T+12,0,0,0):P||12!==T?N.setHours(T,0,0,0):N.setHours(0,0,0,0),N}incompatibleTokens=["H","K","k","t","T"]}class tI extends eC{priority=70;parse(N,I,T){switch(I){case"H":return e0(eP,N);case"Ho":return T.ordinalNumber(N,{unit:"hour"});default:return e3(I.length,N)}}validate(N,I){return I>=0&&I<=23}set(N,I,T){return N.setHours(T,0,0,0),N}incompatibleTokens=["a","b","h","K","k","t","T"]}class tT extends eC{priority=70;parse(N,I,T){switch(I){case"K":return e0(eM,N);case"Ko":return T.ordinalNumber(N,{unit:"hour"});default:return e3(I.length,N)}}validate(N,I){return I>=0&&I<=11}set(N,I,T){return N.getHours()>=12&&T<12?N.setHours(T+12,0,0,0):N.setHours(T,0,0,0),N}incompatibleTokens=["h","H","k","t","T"]}class tP extends eC{priority=70;parse(N,I,T){switch(I){case"k":return e0(eD,N);case"ko":return T.ordinalNumber(N,{unit:"hour"});default:return e3(I.length,N)}}validate(N,I){return I>=1&&I<=24}set(N,I,T){let P=T<=24?T%24:T;return N.setHours(P,0,0,0),N}incompatibleTokens=["a","b","h","H","K","t","T"]}class tD extends eC{priority=60;parse(N,I,T){switch(I){case"m":return e0(eL,N);case"mo":return T.ordinalNumber(N,{unit:"minute"});default:return e3(I.length,N)}}validate(N,I){return I>=0&&I<=59}set(N,I,T){return N.setMinutes(T,0,0),N}incompatibleTokens=["t","T"]}class tM extends eC{priority=50;parse(N,I,T){switch(I){case"s":return e0(e$,N);case"so":return T.ordinalNumber(N,{unit:"second"});default:return e3(I.length,N)}}validate(N,I){return I>=0&&I<=59}set(N,I,T){return N.setSeconds(T,0),N}incompatibleTokens=["t","T"]}class tR extends eC{priority=30;parse(N,I){let T=N=>Math.trunc(N*Math.pow(10,-I.length+3));return eX(e3(I.length,N),T)}set(N,I,T){return N.setMilliseconds(T),N}incompatibleTokens=["t","T"]}var tL=T(61768);class t$ extends eC{priority=10;parse(N,I){switch(I){case"X":return e1(eV,N);case"XX":return e1(eY,N);case"XXXX":return e1(eJ,N);case"XXXXX":return e1(eZ,N);default:return e1(eQ,N)}}set(N,I,T){return I.timestampIsSet?N:(0,G.w)(N,N.getTime()-(0,tL.G)(N)-T)}incompatibleTokens=["t","T","x"]}class tF extends eC{priority=10;parse(N,I){switch(I){case"x":return e1(eV,N);case"xx":return e1(eY,N);case"xxxx":return e1(eJ,N);case"xxxxx":return e1(eZ,N);default:return e1(eQ,N)}}set(N,I,T){return I.timestampIsSet?N:(0,G.w)(N,N.getTime()-(0,tL.G)(N)-T)}incompatibleTokens=["t","T","X"]}class tB extends eC{priority=40;parse(N){return e2(N)}set(N,I,T){return[(0,G.w)(N,1e3*T),{timestampIsSet:!0}]}incompatibleTokens="*"}class tU extends eC{priority=20;parse(N){return e2(N)}set(N,I,T){return[(0,G.w)(N,T),{timestampIsSet:!0}]}incompatibleTokens="*"}let tH={G:new ej,y:new e7,Y:new tt,R:new tn,u:new ta,Q:new ti,q:new to,M:new ts,L:new tl,w:new td,I:new tp,d:new ty,D:new tb,E:new tx,e:new tA,c:new tE,i:new tk,a:new tC,b:new tj,B:new tO,h:new tN,H:new tI,K:new tT,k:new tP,m:new tD,s:new tM,S:new tR,X:new t$,x:new tF,t:new tB,T:new tU},tz=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,tW=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,tq=/^'([^]*?)'?$/,tG=/''/g,tK=/\S/,tV=/[a-zA-Z]/;function tY(N,I,T,P){let D=()=>(0,G.w)(P?.in||T,NaN),M=ew(),R=P?.locale??M.locale??eg.c,L=P?.firstWeekContainsDate??P?.locale?.options?.firstWeekContainsDate??M.firstWeekContainsDate??M.locale?.options?.firstWeekContainsDate??1,$=P?.weekStartsOn??P?.locale?.options?.weekStartsOn??M.weekStartsOn??M.locale?.options?.weekStartsOn??0;if(!I)return N?D():(0,K.a)(T,P?.in);let F={firstWeekContainsDate:L,weekStartsOn:$,locale:R},B=[new ek(P?.in,T)],U=I.match(tW).map(N=>{let I=N[0];return I in ey.m?(0,ey.m[I])(N,R.formatLong):N}).join("").match(tz),H=[];for(let T of U){!P?.useAdditionalWeekYearTokens&&(0,eb.xM)(T)&&(0,eb.Ss)(T,I,N),!P?.useAdditionalDayOfYearTokens&&(0,eb.ef)(T)&&(0,eb.Ss)(T,I,N);let M=T[0],L=tH[M];if(L){let{incompatibleTokens:I}=L;if(Array.isArray(I)){let N=H.find(N=>I.includes(N.token)||N.token===M);
962if(N)throw RangeError(`The format string mustn't contain \`${N.fullToken}\` and \`${T}\` at the same time`)}else if("*"===L.incompatibleTokens&&H.length>0)throw RangeError(`The format string mustn't contain \`${T}\` and any other token at the same time`);H.push({token:M,fullToken:T});let P=L.run(N,T,R.match,F);if(!P)return D();B.push(P.setter),N=P.rest}else{if(M.match(tV))throw RangeError("Format string contains an unescaped latin alphabet character `"+M+"`");if("''"===T?T="'":"'"===M&&(T=tJ(T)),0!==N.indexOf(T))return D();N=N.slice(T.length)}}if(N.length>0&&tK.test(N))return D();let z=B.map(N=>N.priority).sort((N,I)=>I-N).filter((N,I,T)=>T.indexOf(N)===I).map(N=>B.filter(I=>I.priority===N).sort((N,I)=>I.subPriority-N.subPriority)).map(N=>N[0]),W=(0,K.a)(T,P?.in);if(isNaN(+W))return D();let q={};for(let N of z){if(!N.validate(W,F))return D();let I=N.set(W,q,F);Array.isArray(I)?(W=I[0],Object.assign(q,I[1])):W=I}return W}function tJ(N){return N.match(tq)[1].replace(tG,"'")}var tQ=T(5552),tZ=T(25258),tX=T(66799);function t0(N,I,T){let P=(0,K.a)(N,T?.in);return P.setHours(I),P}function t1(N,I,T){let P=(0,K.a)(N,T?.in);return P.setMinutes(I),P}function t2(N,I,T){let P=(0,K.a)(N,T?.in);return P.setSeconds(I),P}var t3=T(37051);function t4(N,I){let T=(0,K.a)(N,I?.in);return T.setDate(1),T.setHours(0,0,0,0),T}var t5=T(50338);function t6(N,I){let T=(0,K.a)(N,I?.in),P=T.getMonth(),D=P-P%3;return T.setMonth(D,1),T.setHours(0,0,0,0),T}function t8(N,I){let T=(0,K.a)(N,I?.in);return T.setHours(23,59,59,999),T}function t7(N,I){let T=(0,ev.q)(),P=I?.weekStartsOn??I?.locale?.options?.weekStartsOn??T.weekStartsOn??T.locale?.options?.weekStartsOn??0,D=(0,K.a)(N,I?.in),M=D.getDay(),R=(M<P?-7:0)+6-(M-P);return D.setDate(D.getDate()+R),D.setHours(23,59,59,999),D}function t9(N,I){let T=(0,K.a)(N,I?.in),P=T.getMonth();return T.setFullYear(T.getFullYear(),P+1,0),T.setHours(23,59,59,999),T}var re=T(44371);function rt(N,I,T){let[P,D]=(0,re.x)(T?.in,N,I);return P.getFullYear()===D.getFullYear()}function rr(N,I,T){let[P,D]=(0,re.x)(T?.in,N,I);return P.getFullYear()===D.getFullYear()&&P.getMonth()===D.getMonth()}function rn(N,I,T){let[P,D]=(0,re.x)(T?.in,N,I);return+t6(P)==+t6(D)}function ra(N,I,T){let[P,D]=(0,re.x)(T?.in,N,I);return+(0,t3.o)(P)==+(0,t3.o)(D)}function ri(N,I){return+(0,K.a)(N)==+(0,K.a)(I)}function ro(N,I,T){let P=+(0,K.a)(N,T?.in),[D,M]=[+(0,K.a)(I.start,T?.in),
962+(0,K.a)(I.end,T?.in)].sort((N,I)=>N-I);return P>=D&&P<=M}function rs(N,I){let T=(0,K.a)(N,I?.in),P=T.getFullYear(),D=T.getMonth(),M=(0,G.w)(T,0);return M.setFullYear(P,D+1,0),M.setHours(0,0,0,0),M.getDate()}function rl(N,I,T){let P=(0,K.a)(N,T?.in),D=P.getFullYear(),M=P.getDate(),R=(0,G.w)(T?.in||N,0);R.setFullYear(D,I,15),R.setHours(0,0,0,0);let L=rs(R);return P.setMonth(I,Math.min(M,L)),P}function rc(N,I,T){let P=(0,K.a)(N,T?.in),D=I-(Math.trunc(P.getMonth()/3)+1);return rl(P,P.getMonth()+3*D)}function ru(N,I){return(0,K.a)(N,I?.in).getFullYear()}function rd(N,I){return(0,K.a)(N,I?.in).getMonth()}function rf(N,I){let T=(0,K.a)(N,I?.in),P=T.getFullYear();return T.setFullYear(P+1,0,0),T.setHours(23,59,59,999),T}function rh(N,I){return Math.trunc((0,K.a)(N,I?.in).getMonth()/3)+1}var rp=T(95643);function rm(N,I){return(0,K.a)(N,I?.in).getHours()}function rg(N,I){return(0,K.a)(N,I?.in).getMinutes()}function ry(N){return(0,K.a)(N).getSeconds()}function rb(N,I,T){let P=(0,K.a)(N,T?.in);if(isNaN(I))return(0,G.w)(T?.in||N,NaN);if(!I)return P;let D=P.getDate(),M=(0,G.w)(T?.in||N,P.getTime());return(M.setMonth(P.getMonth()+I+1,0),D>=M.getDate())?M:(P.setFullYear(M.getFullYear(),M.getMonth(),D),P)}function rv(N,I,T){return rb(N,-I,T)}function rw(N,I,T){let[P,D]=(0,re.x)(T?.in,N,I);return 12*(P.getFullYear()-D.getFullYear())+(P.getMonth()-D.getMonth())}function rx(N,I,T){return rb(N,3*I,T)}function rA(N,I,T){return rx(N,-I,T)}function rE(N,I,T){let[P,D]=(0,re.x)(T?.in,N,I);return 4*(P.getFullYear()-D.getFullYear())+(rh(P)-rh(D))}function rS(N,I,T){return rb(N,12*I,T)}function r_(N,I,T){return rS(N,-I,T)}function rk(N,I,T){let[P,D]=(0,re.x)(T?.in,N,I);return P.getFullYear()-D.getFullYear()}function rC(N,I){let T,P=I?.in;return N.forEach(N=>{P||"object"!=typeof N||(P=G.w.bind(null,N));let I=(0,K.a)(N,P);(!T||T>I||isNaN(+I))&&(T=I)}),(0,G.w)(P,T||NaN)}function rj(N,I){let T,P=I?.in;return N.forEach(N=>{P||"object"!=typeof N||(P=G.w.bind(null,N));let I=(0,K.a)(N,P);(!T||T<I||isNaN(+I))&&(T=I)}),(0,G.w)(P,T||NaN)}function rO(N,I,T){return(0,G.w)(T?.in||N,+(0,K.a)(N)+I)}function rN(N,I,T){return rO(N,I*q.s0,T)}function rI(N,I,T){let P=(0,K.a)(N,T?.in);return P.setTime(P.getTime()+I*q.Cg),P}function rT(N,I,T){return rO(N,1e3*I,T)}var rP=T(84696);function rD(N,I){return+(0,K.a)(N)<+(0,K.a)(I)}function rM(N,I){return(0,K.a)(N,I?.in).getDay()}function rR(N,I){return(0,K.a)(N,I?.in).getDate()}function rL(N,I,T){return tv(N,7*I,T)}function r$(N){return+(0,K.a)(N)}function rF(N,I,T){let P=(0,K.a)(N,T?.in);return isNaN(+P)?(0,G.w)(T?.in||N,NaN):(P.setFullYear(I),P)}function rB(N,I,T){let[P,D]=(0,re.x)(T?.in,N,I),M=rU(P,D),R=Math.abs((0,rp.m)(P,D));P.setDate(P.getDate()-M*R);let L=Number(rU(P,D)===-M),$=M*(R-L);return 0===$?0:$}function rU(N,I){let T=N.getFullYear()-I.getFullYear()||N.getMonth()-I.getMonth()||N.getDate()-I.getDate()||N.getHours()-I.getHours()||N.getMinutes()-I.getMinutes()||N.getSeconds()-I.getSeconds()||N.getMilliseconds()-I.getMilliseconds();return T<0?-1:T>0?1:T}function rH(N,I,T){return rL(N,-I,T)}function rz(N,I,T){return tv(N,-I,T)}var rW=function(){},rq="u">typeof document?H.useLayoutEffect:rW;let rG={...z}.useInsertionEffect||(N=>N());function rK(N){let I=H.useRef(()=>{});return rG(()=>{I.current=N}),H.useCallback(function(){for(var N=arguments.length,T=Array(N),P=0;P<N;P++)T[P]=arguments[P];return null==I.current?void 0:I.current(...T)},[])}function rV(){return"u">typeof window}function rY(N){return rZ(N)?(N.nodeName||"").toLowerCase():"#document"}function rJ(N){var I;return(null==N||null==(I=N.ownerDocument)?void 0:I.defaultView)||window}function rQ(N){var I;return null==(I=(rZ(N)?N.ownerDocument:N.document)||window.document)?void 0:I.documentElement}function rZ(N){return!!rV()&&(N instanceof Node||N instanceof rJ(N).Node)}function rX(N){return!!rV()&&(N instanceof Element||N instanceof rJ(N).Element)}function r0(N){return!!rV()&&(N instanceof HTMLElement||N instanceof rJ(N).HTMLElement)}function r1(N){return!(!rV()||"u"<typeof ShadowRoot)&&(N instanceof ShadowRoot||N instanceof rJ(N).ShadowRoot)}function r2(N){let{overflow:I,overflowX:T,overflowY:P,display:D}=nr(N);return/auto|scroll|overlay|hidden|clip/.test(I+P+T)&&"inline"!==D&&"contents"!==D}function r3(N){return/^(table|td|th)$/.test(rY(N))}function r4(N){try{if(N.matches(":popover-open"))return!0}catch(N){}try{return N.matches(":modal")}catch(N){return!1}}let r5=/transform|translate|scale|rotate|perspective|filter/,r6=/paint|layout|strict|content/,r8=N=>!!N&&"none"!==N;function r7(N){let I=rX(N)?nr(N):N;return r8(I.transform)||r8(I.translate)||r8(I.scale)||r8(I.rotate)||r8(I.perspective)||!ne()&&(r8(I.backdropFilter)||r8(I.filter))||r5.test(I.willChange||"")||r6.test(I.contain||"")}function r9(N){let I=na(N);for(;r0(I)&&!nt(I);
962){if(r7(I))return I;if(r4(I))break;I=na(I)}return null}function ne(){return null==P&&(P="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),P}function nt(N){return/^(html|body|#document)$/.test(rY(N))}function nr(N){return rJ(N).getComputedStyle(N)}function nn(N){return rX(N)?{scrollLeft:N.scrollLeft,scrollTop:N.scrollTop}:{scrollLeft:N.scrollX,scrollTop:N.scrollY}}function na(N){if("html"===rY(N))return N;let I=N.assignedSlot||N.parentNode||r1(N)&&N.host||rQ(N);return r1(I)?I.host:I}function ni(N){let I=na(N);return nt(I)?N.ownerDocument?N.ownerDocument.body:N.body:r0(I)&&r2(I)?I:ni(I)}function no(N,I,T){var P;void 0===I&&(I=[]),void 0===T&&(T=!0);let D=ni(N),M=D===(null==(P=N.ownerDocument)?void 0:P.body),R=rJ(D);if(!M)return I.concat(D,no(D,[],T));{let N=ns(R);return I.concat(R,R.visualViewport||[],r2(D)?D:[],N&&T?no(N):[])}}function ns(N){return N.parent&&Object.getPrototypeOf(N.parent)?N.frameElement:null}var nl=T(98477);let nc=Math.min,nu=Math.max,nd=Math.round,nf=Math.floor,nh=N=>({x:N,y:N}),np={left:"right",right:"left",bottom:"top",top:"bottom"};function nm(N,I,T){return nu(N,nc(I,T))}function ng(N,I){return"function"==typeof N?N(I):N}function ny(N){return N.split("-")[0]}function nb(N){return N.split("-")[1]}function nv(N){return"x"===N?"y":"x"}function nw(N){return"y"===N?"height":"width"}function nx(N){let I=N[0];return"t"===I||"b"===I?"y":"x"}function nA(N){return nv(nx(N))}function nE(N,I,T){void 0===T&&(T=!1);let P=nb(N),D=nA(N),M=nw(D),R="x"===D?P===(T?"end":"start")?"right":"left":"start"===P?"bottom":"top";return I.reference[M]>I.floating[M]&&(R=nT(R)),[R,nT(R)]}function nS(N){let I=nT(N);return[n_(N),I,n_(I)]}function n_(N){return N.includes("start")?N.replace("start","end"):N.replace("end","start")}let nk=["left","right"],nC=["right","left"],nj=["top","bottom"],nO=["bottom","top"];function nN(N,I,T){switch(N){case"top":case"bottom":if(T)return I?nC:nk;return I?nk:nC;case"left":case"right":return I?nj:nO;default:return[]}}function nI(N,I,T,P){let D=nb(N),M=nN(ny(N),"start"===T,P);return D&&(M=M.map(N=>N+"-"+D),I&&(M=M.concat(M.map(n_)))),M}function nT(N){let I=ny(N);return np[I]+N.slice(I.length)}function nP(N){return{top:0,right:0,bottom:0,left:0,...N}}function nD(N){return"number"!=typeof N?nP(N):{top:N,right:N,bottom:N,left:N}}function nM(N){let{x:I,y:T,width:P,height:D}=N;return{width:P,height:D,top:T,left:I,right:I+P,bottom:T+D,x:I,y:T}}function nR(N,I,T){let P,{reference:D,floating:M}=N,R=nx(I),L=nA(I),$=nw(L),F=ny(I),B="y"===R,U=D.x+D.width/2-M.width/2,H=D.y+D.height/2-M.height/2,z=D[$]/2-M[$]/2;switch(F){case"top":P={x:U,y:D.y-M.height};break;case"bottom":P={x:U,y:D.y+D.height};break;case"right":P={x:D.x+D.width,y:H};break;case"left":P={x:D.x-M.width,y:H};break;default:P={x:D.x,y:D.y}}switch(nb(I)){case"start":P[L]-=z*(T&&B?-1:1);break;case"end":P[L]+=z*(T&&B?-1:1)}return P}async function nL(N,I){var T;void 0===I&&(I={});let{x:P,y:D,platform:M,rects:R,elements:L,strategy:$}=N,{boundary:F="clippingAncestors",rootBoundary:B="viewport",elementContext:U="floating",altBoundary:H=!1,padding:z=0}=ng(I,N),W=nD(z),q="floating"===U?"reference":"floating",G=L[H?q:U],K=nM(await M.getClippingRect({element:null==(T=await (null==M.isElement?void 0:M.isElement(G)))||T?G:G.contextElement||await (null==M.getDocumentElement?void 0:M.getDocumentElement(L.floating)),boundary:F,rootBoundary:B,strategy:$})),V="floating"===U?{x:P,y:D,width:R.floating.width,height:R.floating.height}:R.reference,Y=await (null==M.getOffsetParent?void 0:M.getOffsetParent(L.floating)),J=await (null==M.isElement?void 0:M.isElement(Y))&&await (null==M.getScale?void 0:M.getScale(Y))||{x:1,y:1},Q=nM(M.convertOffsetParentRelativeRectToViewportRelativeRect?await M.convertOffsetParentRelativeRectToViewportRelativeRect({elements:L,rect:V,offsetParent:Y,strategy:$}):V);return{top:(K.top-Q.top+W.top)/J.y,bottom:(Q.bottom-K.bottom+W.bottom)/J.y,left:(K.left-Q.left+W.left)/J.x,right:(Q.right-K.right+W.right)/J.x}}let n$=50,nF=async(N,I,T)=>{let{placement:P="bottom",strategy:D="absolute",middleware:M=[],platform:R}=T,L=R.detectOverflow?R:{...R,detectOverflow:nL},$=await (null==R.isRTL?void 0:R.isRTL(I)),F=await R.getElementRects({reference:N,floating:I,strategy:D}),{x:B,y:U}=nR(F,P,$),H=P,z=0,W={};for(let T=0;T<M.length;T++){let q=M[T];if(!q)continue;let{name:G,fn:K}=q,{x:V,y:Y,data:J,reset:Q}=await K({x:B,y:U,initialPlacement:P,placement:H,strategy:D,middlewareData:W,re
962cts:F,platform:L,elements:{reference:N,floating:I}});B=null!=V?V:B,U=null!=Y?Y:U,W[G]={...W[G],...J},Q&&z<n$&&(z++,"object"==typeof Q&&(Q.placement&&(H=Q.placement),Q.rects&&(F=!0===Q.rects?await R.getElementRects({reference:N,floating:I,strategy:D}):Q.rects),{x:B,y:U}=nR(F,H,$)),T=-1)}return{x:B,y:U,placement:H,strategy:D,middlewareData:W}},nB=N=>({name:"arrow",options:N,async fn(I){let{x:T,y:P,placement:D,rects:M,platform:R,elements:L,middlewareData:$}=I,{element:F,padding:B=0}=ng(N,I)||{};if(null==F)return{};let U=nD(B),H={x:T,y:P},z=nA(D),W=nw(z),q=await R.getDimensions(F),G="y"===z,K=G?"top":"left",V=G?"bottom":"right",Y=G?"clientHeight":"clientWidth",J=M.reference[W]+M.reference[z]-H[z]-M.floating[W],Q=H[z]-M.reference[z],Z=await (null==R.getOffsetParent?void 0:R.getOffsetParent(F)),X=Z?Z[Y]:0;X&&await (null==R.isElement?void 0:R.isElement(Z))||(X=L.floating[Y]||M.floating[W]);let ee=J/2-Q/2,et=X/2-q[W]/2-1,er=nc(U[K],et),en=nc(U[V],et),ea=er,ei=X-q[W]-en,eo=X/2-q[W]/2+ee,es=nm(ea,eo,ei),el=!$.arrow&&null!=nb(D)&&eo!==es&&M.reference[W]/2-(eo<ea?er:en)-q[W]/2<0,ec=el?eo<ea?eo-ea:eo-ei:0;return{[z]:H[z]+ec,data:{[z]:es,centerOffset:eo-es-ec,...el&&{alignmentOffset:ec}},reset:el}}}),nU=function(N){return void 0===N&&(N={}),{name:"flip",options:N,async fn(I){var T,P,D,M,R;let{placement:L,middlewareData:$,rects:F,initialPlacement:B,platform:U,elements:H}=I,{mainAxis:z=!0,crossAxis:W=!0,fallbackPlacements:q,fallbackStrategy:G="bestFit",fallbackAxisSideDirection:K="none",flipAlignment:V=!0,...Y}=ng(N,I);if(null!=(T=$.arrow)&&T.alignmentOffset)return{};let J=ny(L),Q=nx(B),Z=ny(B)===B,X=await (null==U.isRTL?void 0:U.isRTL(H.floating)),ee=q||(Z||!V?[nT(B)]:nS(B)),et="none"!==K;!q&&et&&ee.push(...nI(B,V,K,X));let er=[B,...ee],en=await U.detectOverflow(I,Y),ea=[],ei=(null==(P=$.flip)?void 0:P.overflows)||[];if(z&&ea.push(en[J]),W){let N=nE(L,F,X);ea.push(en[N[0]],en[N[1]])}if(ei=[...ei,{placement:L,overflows:ea}],!ea.every(N=>N<=0)){let N=((null==(D=$.flip)?void 0:D.index)||0)+1,I=er[N];if(I&&("alignment"!==W||Q===nx(I)||ei.every(N=>nx(N.placement)!==Q||N.overflows[0]>0)))return{data:{index:N,overflows:ei},reset:{placement:I}};let T=null==(M=ei.filter(N=>N.overflows[0]<=0).sort((N,I)=>N.overflows[1]-I.overflows[1])[0])?void 0:M.placement;if(!T)switch(G){case"bestFit":{let N=null==(R=ei.filter(N=>{if(et){let I=nx(N.placement);return I===Q||"y"===I}return!0}).map(N=>[N.placement,N.overflows.filter(N=>N>0).reduce((N,I)=>N+I,0)]).sort((N,I)=>N[1]-I[1])[0])?void 0:R[0];N&&(T=N);break}case"initialPlacement":T=B}if(L!==T)return{reset:{placement:T}}}return{}}}},nH=new Set(["left","top"]);async function nz(N,I){let{placement:T,platform:P,elements:D}=N,M=await (null==P.isRTL?void 0:P.isRTL(D.floating)),R=ny(T),L=nb(T),$="y"===nx(T),F=nH.has(R)?-1:1,B=M&&$?-1:1,U=ng(I,N),{mainAxis:H,crossAxis:z,alignmentAxis:W}="number"==typeof U?{mainAxis:U,crossAxis:0,alignmentAxis:null}:{mainAxis:U.mainAxis||0,crossAxis:U.crossAxis||0,alignmentAxis:U.alignmentAxis};return L&&"number"==typeof W&&(z="end"===L?-1*W:W),$?{x:z*B,y:H*F}:{x:H*F,y:z*B}}let nW=function(N){return void 0===N&&(N=0),{name:"offset",options:N,async fn(I){var T,P;let{x:D,y:M,placement:R,middlewareData:L}=I,$=await nz(I,N);return R===(null==(T=L.offset)?void 0:T.placement)&&null!=(P=L.arrow)&&P.alignmentOffset?{}:{x:D+$.x,y:M+$.y,data:{...$,placement:R}}}}};function nq(N){let I=nr(N),T=parseFloat(I.width)||0,P=parseFloat(I.height)||0,D=r0(N),M=D?N.offsetWidth:T,R=D?N.offsetHeight:P,L=nd(T)!==M||nd(P)!==R;return L&&(T=M,P=R),{width:T,height:P,$:L}}function nG(N){return rX(N)?N:N.contextElement}function nK(N){let I=nG(N);if(!r0(I))return nh(1);let T=I.getBoundingClientRect(),{width:P,height:D,$:M}=nq(I),R=(M?nd(T.width):T.width)/P,L=(M?nd(T.height):T.height)/D;return R&&Number.isFinite(R)||(R=1),L&&Number.isFinite(L)||(L=1),{x:R,y:L}}let nV=nh(0);function nY(N){let I=rJ(N);return ne()&&I.visualViewport?{x:I.visualViewport.offsetLeft,y:I.visualViewport.offsetTop}:nV}function nJ(N,I,T){return void 0===I&&(I=!1),!!T&&(!I||T===rJ(N))&&I}function nQ(N,I,T,P){void 0===I&&(I=!1),void 0===T&&(T=!1);let D=N.getBoundingClientRect(),M=nG(N),R=nh(1);I&&(P?rX(P)&&(R=nK(P)):R=nK(N));let L=nJ(M,T,P)?nY(M):nh(0),$=(D.left+L.x)/R.x,F=(D.top+L.y)/R.y,B=D.width/R.x,U=D.height/R.y;if(M){let N=rJ(M),I=P&&rX(P)?rJ(P):P,T=N,D=ns(T);for(;D&&P&&I!==T;){let N=nK(D),I=D.getBoundingClientRect(),P=nr(D),M=I.left+(D.clientLeft+parseFloat(P.paddingLeft))*N.x,R=I.top+(D.clientTop+parseFloat(P.paddingTop))*N.y;$*=N.x,F*=N.y,B*=N.x,U*=N.y,$+=M,F+=R,D=ns(T=rJ(D))}}return nM({width:B,height:U,x:$,y:F})}function nZ(N,I){let T=nn(N).scrollLeft;return I?I.left+T:nQ(rQ(N)).left+T}function nX(N,I){let T=N.getBoundingClientRect();return{x:T.left+I.scrollLeft-nZ(N,T),y:T.top+I.scrollTop}}function n0(N){let I=rQ(N),T=nn(N),P=N.ownerDocument.body,D=nu(I.scrollWidth,I.clientWidth,P.scrollWidth,P.clientWidth),M=nu(I.scrollHeight,I.clientHeight,P.scrollHeight,P.clientHeight),R=-T.scrollLeft+nZ(N),L=-T.scrollTop;return"rtl"===nr(P).direction&&(R+=nu(I.clientWidth,P.clientWidth)-D),{width:D,height:M,x:R,y:L}}let n1=25;
962function n2(N,I){let T=rJ(N),P=rQ(N),D=T.visualViewport,M=P.clientWidth,R=P.clientHeight,L=0,$=0;if(D){M=D.width,R=D.height;let N=ne();(!N||N&&"fixed"===I)&&(L=D.offsetLeft,$=D.offsetTop)}let F=nZ(P);if(F<=0){let N=P.ownerDocument,I=N.body,T=getComputedStyle(I),D="CSS1Compat"===N.compatMode&&parseFloat(T.marginLeft)+parseFloat(T.marginRight)||0,R=Math.abs(P.clientWidth-I.clientWidth-D);R<=n1&&(M-=R)}else F<=n1&&(M+=F);return{width:M,height:R,x:L,y:$}}function n3(N,I){let T=nQ(N,!0,"fixed"===I),P=T.top+N.clientTop,D=T.left+N.clientLeft,M=r0(N)?nK(N):nh(1),R=N.clientWidth*M.x,L=N.clientHeight*M.y;return{width:R,height:L,x:D*M.x,y:P*M.y}}function n4(N,I,T){let P;if("viewport"===I)P=n2(N,T);else if("document"===I)P=n0(rQ(N));else if(rX(I))P=n3(I,T);else{let T=nY(N);P={x:I.x-T.x,y:I.y-T.y,width:I.width,height:I.height}}return nM(P)}function n5(N,I){let T=na(N);return!(T===I||!rX(T)||nt(T))&&("fixed"===nr(T).position||n5(T,I))}function n6(N,I){let T=I.get(N);if(T)return T;let P=no(N,[],!1).filter(N=>rX(N)&&"body"!==rY(N)),D=null,M="fixed"===nr(N).position,R=M?na(N):N;for(;rX(R)&&!nt(R);){let I=nr(R),T=r7(R);T||"fixed"!==I.position||(D=null),(M?T||D:!(!T&&"static"===I.position&&D&&("absolute"===D.position||"fixed"===D.position)||r2(R)&&!T&&n5(N,R)))?D=I:P=P.filter(N=>N!==R),R=na(R)}return I.set(N,P),P}function n8(N,I,T){let P=r0(I),D=rQ(I),M="fixed"===T,R=nQ(N,!0,M,I),L={scrollLeft:0,scrollTop:0},$=nh(0);function F(){$.x=nZ(D)}if(P||!P&&!M)if(("body"!==rY(I)||r2(D))&&(L=nn(I)),P){let N=nQ(I,!0,M,I);$.x=N.x+I.clientLeft,$.y=N.y+I.clientTop}else D&&F();M&&!P&&D&&F();let B=!D||P||M?nh(0):nX(D,L);return{x:R.left+L.scrollLeft-$.x-B.x,y:R.top+L.scrollTop-$.y-B.y,width:R.width,height:R.height}}function n7(N){return"static"===nr(N).position}function n9(N,I){if(!r0(N)||"fixed"===nr(N).position)return null;if(I)return I(N);let T=N.offsetParent;return rQ(N)===T&&(T=T.ownerDocument.body),T}function ae(N,I){let T=rJ(N);if(r4(N))return T;if(!r0(N)){let I=na(N);for(;I&&!nt(I);){if(rX(I)&&!n7(I))return I;I=na(I)}return T}let P=n9(N,I);for(;P&&r3(P)&&n7(P);)P=n9(P,I);return P&&nt(P)&&n7(P)&&!r7(P)?T:P||r9(N)||T}let at=async function(N){let I=this.getOffsetParent||ae,T=this.getDimensions,P=await T(N.floating);return{reference:n8(N.reference,await I(N.floating),N.strategy),floating:{x:0,y:0,width:P.width,height:P.height}}},ar={convertOffsetParentRelativeRectToViewportRelativeRect:function(N){let{elements:I,rect:T,offsetParent:P,strategy:D}=N,M="fixed"===D,R=rQ(P),L=!!I&&r4(I.floating);if(P===R||L&&M)return T;let $={scrollLeft:0,scrollTop:0},F=nh(1),B=nh(0),U=r0(P);if((U||!U&&!M)&&(("body"!==rY(P)||r2(R))&&($=nn(P)),U)){let N=nQ(P);F=nK(P),B.x=N.x+P.clientLeft,B.y=N.y+P.clientTop}let H=!R||U||M?nh(0):nX(R,$);return{width:T.width*F.x,height:T.height*F.y,x:T.x*F.x-$.scrollLeft*F.x+B.x+H.x,y:T.y*F.y-$.scrollTop*F.y+B.y+H.y}},getDocumentElement:rQ,getClippingRect:function(N){let{element:I,boundary:T,rootBoundary:P,strategy:D}=N,M=[..."clippingAncestors"===T?r4(I)?[]:n6(I,this._c):[].concat(T),P],R=n4(I,M[0],D),L=R.top,$=R.right,F=R.bottom,B=R.left;for(let N=1;N<M.length;N++){let T=n4(I,M[N],D);L=nu(T.top,L),$=nc(T.right,$),F=nc(T.bottom,F),B=nu(T.left,B)}return{width:$-B,height:F-L,x:B,y:L}},getOffsetParent:ae,getElementRects:at,getClientRects:function(N){return Array.from(N.getClientRects())},getDimensions:function(N){let{width:I,height:T}=nq(N);return{width:I,height:T}},getScale:nK,isElement:rX,isRTL:function(N){return"rtl"===nr(N).direction}};function an(N,I){return N.x===I.x&&N.y===I.y&&N.width===I.width&&N.height===I.height}function aa(N,I){let T,P=null,D=rQ(N);function M(){var N;clearTimeout(T),null==(N=P)||N.disconnect(),P=null}function R(L,$){void 0===L&&(L=!1),void 0===$&&($=1),M();let F=N.getBoundingClientRect(),{left:B,top:U,width:H,height:z}=F;if(L||I(),!H||!z)return;let W={rootMargin:-nf(U)+"px "+-nf(D.clientWidth-(B+H))+"px "+-nf(D.clientHeight-(U+z))+"px "+-nf(B)+"px",threshold:nu(0,nc(1,$))||1},q=!0;function G(I){let P=I[0].intersectionRatio;if(P!==$){if(!q)return R();P?R(!1,P):T=setTimeout(()=>{R(!1,1e-7)},1e3)}1!==P||an(F,N.getBoundingClientRect())||R(),q=!1}try{P=new IntersectionObserver(G,{...W,root:D.ownerDocument})}catch(N){P=new IntersectionObserver(G,W)}P.observe(N)}return R(!0),M}
962function ai(N,I,T,P){let D;void 0===P&&(P={});let{ancestorScroll:M=!0,ancestorResize:R=!0,elementResize:L="function"==typeof ResizeObserver,layoutShift:$="function"==typeof IntersectionObserver,animationFrame:F=!1}=P,B=nG(N),U=M||R?[...B?no(B):[],...I?no(I):[]]:[];U.forEach(N=>{M&&N.addEventListener("scroll",T,{passive:!0}),R&&N.addEventListener("resize",T)});let H=B&&$?aa(B,T):null,z=-1,W=null;L&&(W=new ResizeObserver(N=>{let[P]=N;P&&P.target===B&&W&&I&&(W.unobserve(I),cancelAnimationFrame(z),z=requestAnimationFrame(()=>{var N;null==(N=W)||N.observe(I)})),T()}),B&&!F&&W.observe(B),I&&W.observe(I));let q=F?nQ(N):null;function G(){let I=nQ(N);q&&!an(q,I)&&T(),q=I,D=requestAnimationFrame(G)}return F&&G(),T(),()=>{var N;U.forEach(N=>{M&&N.removeEventListener("scroll",T),R&&N.removeEventListener("resize",T)}),null==H||H(),null==(N=W)||N.disconnect(),W=null,F&&cancelAnimationFrame(D)}}let ao=nW,as=nU,al=nB,ac=(N,I,T)=>{let P=new Map,D={platform:ar,...T},M={...D.platform,_c:P};return nF(N,I,{...D,platform:M})};var au=function(){},ad="u">typeof document?H.useLayoutEffect:au;function af(N,I){let T,P,D;if(N===I)return!0;if(typeof N!=typeof I)return!1;if("function"==typeof N&&N.toString()===I.toString())return!0;if(N&&I&&"object"==typeof N){if(Array.isArray(N)){if((T=N.length)!==I.length)return!1;for(P=T;0!=P--;)if(!af(N[P],I[P]))return!1;return!0}if((T=(D=Object.keys(N)).length)!==Object.keys(I).length)return!1;for(P=T;0!=P--;)if(!({}).hasOwnProperty.call(I,D[P]))return!1;for(P=T;0!=P--;){let T=D[P];if(("_owner"!==T||!N.$$typeof)&&!af(N[T],I[T]))return!1}return!0}return N!=N&&I!=I}function ah(N){return"u"<typeof window?1:(N.ownerDocument.defaultView||window).devicePixelRatio||1}function ap(N,I){let T=ah(N);return Math.round(I*T)/T}function am(N){let I=H.useRef(N);return ad(()=>{I.current=N}),I}function ag(N){void 0===N&&(N={});let{placement:I="bottom",strategy:T="absolute",middleware:P=[],platform:D,elements:{reference:M,floating:R}={},transform:L=!0,whileElementsMounted:$,open:F}=N,[B,U]=H.useState({x:0,y:0,strategy:T,placement:I,middlewareData:{},isPositioned:!1}),[z,W]=H.useState(P);af(z,P)||W(P);let[q,G]=H.useState(null),[K,V]=H.useState(null),Y=H.useCallback(N=>{N!==X.current&&(X.current=N,G(N))},[]),J=H.useCallback(N=>{N!==ee.current&&(ee.current=N,V(N))},[]),Q=M||q,Z=R||K,X=H.useRef(null),ee=H.useRef(null),et=H.useRef(B),er=null!=$,en=am($),ea=am(D),ei=am(F),eo=H.useCallback(()=>{if(!X.current||!ee.current)return;let N={placement:I,strategy:T,middleware:z};ea.current&&(N.platform=ea.current),ac(X.current,ee.current,N).then(N=>{let I={...N,isPositioned:!1!==ei.current};es.current&&!af(et.current,I)&&(et.current=I,nl.flushSync(()=>{U(I)}))})},[z,I,T,ea,ei]);ad(()=>{!1===F&&et.current.isPositioned&&(et.current.isPositioned=!1,U(N=>({...N,isPositioned:!1})))},[F]);let es=H.useRef(!1);ad(()=>(es.current=!0,()=>{es.current=!1}),[]),ad(()=>{if(Q&&(X.current=Q),Z&&(ee.current=Z),Q&&Z){if(en.current)return en.current(Q,Z,eo);eo()}},[Q,Z,eo,en,er]);let el=H.useMemo(()=>({reference:X,floating:ee,setReference:Y,setFloating:J}),[Y,J]),ec=H.useMemo(()=>({reference:Q,floating:Z}),[Q,Z]),eu=H.useMemo(()=>{let N={position:T,left:0,top:0};if(!ec.floating)return N;let I=ap(ec.floating,B.x),P=ap(ec.floating,B.y);return L?{...N,transform:"translate("+I+"px, "+P+"px)",...ah(ec.floating)>=1.5&&{willChange:"transform"}}:{position:T,left:I,top:P}},[T,L,ec.floating,B.x,B.y]);return H.useMemo(()=>({...B,update:eo,refs:el,elements:ec,floatingStyles:eu}),[B,eo,el,ec,eu])}let ay=N=>{function I(N){return({}).hasOwnProperty.call(N,"current")}return{name:"arrow",options:N,fn(T){let{element:P,padding:D}="function"==typeof N?N(T):N;return P&&I(P)?null!=P.current?al({element:P.current,padding:D}).fn(T):{}:P?al({element:P,padding:D}).fn(T):{}}}},ab=(N,I)=>{let T=ao(N);return{name:T.name,fn:T.fn,options:[N,I]}},av=(N,I)=>{let T=as(N);return{name:T.name,fn:T.fn,options:[N,I]}},aw=(N,I)=>{let T=ay(N);return{name:T.name,fn:T.fn,options:[N,I]}},ax={...z},aA=!1,aE=0,aS=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+aE++;function a_(){let[N,I]=H.useState(()=>aA?aS():void 0);return rq(()=>{null==N&&I(aS())},[]),H.useEffect(()=>{aA=!0},[]),N}let ak=ax.useId||a_,aC=H.forwardRef(function(N,I){let{context:{placement:T,elements:{floating:P},middlewareData:{arrow:D,shift:M}},width:R=14,height:$=7,tipRadius:F=0,strokeWidth:B=0,staticOffset:U,stroke:z,d:W,style:{transform:q,...G}={},...K}=N,V=ak(),[Y,J]=H.useState(!1);if(rq(()=>{P&&"rtl"===nr(P).direction&&J(!0)},[P]),!P)return null;let[Q,Z]=T.split("-"),X="top"===Q||"bottom"===Q,ee=U;(X&&null!=M&&M.x||!X&&null!=M&&M.y)&&(ee=null);let et=2*B,er=et/2,en=R/2*(-(F/8)+1),ea=$/2*F/4,ei=!!W,eo=ee&&"end"===Z?"bottom":"top",es=ee&&"end"===Z?"right":"left";ee&&Y&&(es="end"===Z?"left":"right");let el=(null==D?void 0:D.x)!=null?ee||D.x:"",ec=(null==D?void 0:D.y)!=null?ee||D.y:"",eu=W||"M0,0 H"+R+(" L"+(R-en))+","+($-ea)+(" Q"+R/2+","+$+" "+en)+","+($-ea)+" Z",ed={top:ei?"rotate(180deg)":"",left:ei?"rotate(90deg)":"rotate(-90deg)",bottom:ei?"":"rotate(180deg)",right:ei?"rotate(-90deg)":"rotate(90deg)"}[Q];return(0,L.jsxs)("svg",{...K,"aria-hidden":!0,ref:I,width:ei?R:R+et,height:R,viewBox:"0 0 "+R+" "+($>R?$:R),style:{position:"absolute",pointerEvents:"none",[es]:el,[eo]:ec,[Q]:X||ei?"100%":"calc(100% - "+et/2+"px)",transform:[ed,q].filter(N=>!!N).join(" "),...G},children:[et>0&&(0,L.jsx)("path",{clipPath:"url(#"+V+")",fill:"none",stroke:z,strokeWidth:et+ +!W,d:eu}),(0,L.jsx)("path",{stroke:et&&!W?K.fill:"none",d:eu}),(0,L.jsx)("clipPath",{id:V,children:(0,L.jsx)("rect",{x:-er,y:er*(ei?-1:1),width:R+et,height:R})})]})});function aj(){let N=new Map;return{emit(I,T){var P;null==(P=N.get(I))||P.forEach(N=>N(T))},on(I,T){N.has(I)||N.set(I,new Set),N.get(I).add(T)},off(I,T){var P;null==(P=N.get(I))||P.delete(T)}}}let aO=H.createContext(null),aN=H.createContext(null),aI=()=>{var N;return(null==(N=H.useContext(aO))?void 0:N.id)||null},aT=()=>H.useContext(aN);function aP(N){let{open:I=!1,onOpenChange:T,elements:P}=N,D=ak(),M=H.useRef({}),[R]=H.useState(()=>aj()),L=null!=aI(),[$,F]=H.useState(P.reference),B=rK((N,I,P)=>{M.current.openEvent=N?I:void 0,R.emit("openchange",{open:N,event:I,reason:P,nested:L}),null==T||T(N,I,P)}),U=H.useMemo(()=>({setPositionReference:F}),[]),z=H.useMemo(()=>({reference:$||P.reference||null,floating:P.floating||null,domReference:P.reference}),[$,P.reference,P.floating]);return H.useMemo(()=>({dataRef:M,open:I,onOpenChange:B,elements:z,events:R,floatingId:D,refs:U}),[I,B,z,R,D,U])}function aD(N){void 0===N&&(N={});let{nodeId:I}=N,T=aP({...N,elements:{reference:null,floating:null,...N.elements}}),P=N.rootContext||T,D=P.elements,[M,R]=H.useState(null),[L,$]=H.useState(null),F=(null==D?void 0:D.domReference)||M,B=H.useRef(null),U=aT();rq(()=>{F&&(B.current=F)},[F]);let z=ag({...N,elements:{...D,...L&&{reference:L}}}),W=H.useCallback(N=>{let I=rX(N)?{getBoundingClientRect:()=>N.getBoundingClientRect(),getClientRects:()=>N.getClientRects(),contextElement:N}:N;$(I),z.refs.setReference(I)},[z.refs]),q=H.useCallback(N=>{(rX(N)||null===N)&&(B.current=N,R(N)),(rX(z.refs.reference.current)||null===z.refs.reference.current||null!==N&&!rX(N))&&z.refs.setReference(N)},[z.refs]),G=H.useMemo(()=>({...z.refs,setReference:q,setPositionReference:W,domReference:B}),[z.refs,q,W]),K=H.useMemo(()=>({...z.elements,domReference:F}
962),[z.elements,F]),V=H.useMemo(()=>({...z,...P,refs:G,elements:K,nodeId:I}),[z,G,K,I,P]);return rq(()=>{P.dataRef.current.floatingContext=V;let N=null==U?void 0:U.nodesRef.current.find(N=>N.id===I);N&&(N.context=V)}),H.useMemo(()=>({...z,context:V,refs:G,elements:K}),[z,G,K,V])}var aM=function(N,I){return(aM=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(N,I){N.__proto__=I}||function(N,I){for(var T in I)Object.prototype.hasOwnProperty.call(I,T)&&(N[T]=I[T])})(N,I)};function aR(N,I){if("function"!=typeof I&&null!==I)throw TypeError("Class extends value "+String(I)+" is not a constructor or null");function T(){this.constructor=N}aM(N,I),N.prototype=null===I?Object.create(I):(T.prototype=I.prototype,new T)}var aL=function(){return(aL=Object.assign||function(N){for(var I,T=1,P=arguments.length;T<P;T++)for(var D in I=arguments[T])Object.prototype.hasOwnProperty.call(I,D)&&(N[D]=I[D]);return N}).apply(this,arguments)};function a$(N,I,T){if(T||2==arguments.length)for(var P,D=0,M=I.length;D<M;D++)!P&&D in I||(P||(P=Array.prototype.slice.call(I,0,D)),P[D]=I[D]);return N.concat(P||Array.prototype.slice.call(I))}"function"==typeof SuppressedError&&SuppressedError;var aF=function(N){var I=N.showTimeSelectOnly,T=void 0!==I&&I,P=N.showTime,D=void 0!==P&&P,M=N.className,R=N.children,L=N.inline,$=T?"Choose Time":"Choose Date".concat(D?" and Time":"");return H.createElement("div",{className:M,"aria-label":$,role:L?void 0:"dialog","aria-modal":L?void 0:"true",translate:"no"},R)},aB=function(N,I){var T=(0,H.useRef)(null),P=(0,H.useRef)(N);(0,H.useEffect)(function(){P.current=N},[N]);var D=(0,H.useCallback)(function(N){var D,M=N.composed&&N.composedPath&&N.composedPath().find(function(N){return N instanceof Node})||N.target;!T.current||T.current.contains(M)||I&&M instanceof HTMLElement&&M.classList.contains(I)||null==(D=P.current)||D.call(P,N)},[I]);return(0,H.useEffect)(function(){return document.addEventListener("mousedown",D),function(){document.removeEventListener("mousedown",D)}},[D]),T},aU=function(N){var I=N.children,T=N.onClickOutside,P=N.className,D=N.containerRef,M=N.style,R=aB(T,N.ignoreClass);return H.createElement("div",{className:P,style:M,ref:function(N){R.current=N,D&&(D.current=N)}},I)},aH=null,az=!1;function aW(){if(az)return aH;az=!0;try{var N="date-fns-tz";aH=T(40323)(N)}catch(N){aH=null}return aH}function aq(N,I){if(!I)return N;var T=aW();return T?T.toZonedTime(N,I):N}function aG(N,I){if(!I)return N;var T=aW();return T?T.fromZonedTime(N,I):N}function aK(){return"u">typeof window?window:globalThis}(D=M||(M={})).ArrowUp="ArrowUp",D.ArrowDown="ArrowDown",D.ArrowLeft="ArrowLeft",D.ArrowRight="ArrowRight",D.PageUp="PageUp",D.PageDown="PageDown",D.Home="Home",D.End="End",D.Enter="Enter",D.Space=" ",D.Tab="Tab",D.Escape="Escape",D.Backspace="Backspace",D.X="x";var aV=12;function aY(N){if(null==N)return new Date;var I="string"==typeof N?V(N):(0,K.a)(N);return aZ(I)?I:new Date}function aJ(N,I,T,P,D){void 0===D&&(D=aY());for(var M=iy(T)||iy(ig()),R=Array.isArray(I)?I:[I],L=0,$=R;L<$.length;L++){var F=$[L],B=tY(N,F,D,{locale:M,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});if(aZ(B)&&(!P||N===a0(B,F,T)))return B}if(!P&&N&&N.length>=8){var U=new Date(N);if((0,tQ.f)(U))return U}return null}function aQ(N,I){if(void 0===I&&(I=aY()),!N)return null;var T=N.match(/\b(1\d{3}|2\d{3})\b/);if(!T||!T[1])return null;var P=parseInt(T[1],10),D=N.match(/(?:^|[/\-\s])?(0?[1-9]|1[0-2])(?:[/\-\s]|$)/);return new Date(P,D&&D[1]?parseInt(D[1],10)-1:I.getMonth(),1)}function aZ(N){return(0,tQ.f)(N)}function aX(N){return null==N?null:(0,tZ.$)(N)&&(0,tQ.f)(N)?N:null}function a0(N,I,T){if("en"===T)return(0,tX.GP)(N,I,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});var P=T?iy(T):void 0;return T&&!P&&console.warn('A locale object was not found for the provided string ["'.concat(T,'"].')),P=P||iy(ig()),(0,tX.GP)(N,I,{locale:P,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})}function a1(N,I){var T=I.dateFormat,P=I.locale,D=Array.isArray(T)&&T.length>0?T[0]:T;return N&&a0(N,D,P)||""}var a2=" - ";function a3(N,I,T){if(!N&&!I)return"";var P=N?a1(N,T):"",D=I?a1(I,T):"",M=T.rangeSeparator||a2;return"".concat(P).concat(M).concat(D)}function a4(N,I){if(!(null==N?void 0:N.length))return"";var T=N[0]?a1(N[0],I):"";if(1===N.length)return T;if(2===N.length&&N[1]){var P=a1(N[1],I);return"".concat(T,", ").concat(P)}var D=N.length-1;return"".concat(T," (+").concat(D,")")}function a5(N,I){var T=I.hour,P=void 0===T?0:T,D=I.minute,M=void 0===D?0:D,R=I.second;return t0(t1(t2(N,void 0===R?0:R),M),P)}function a6(N){return(0,tf.s)(N)}function a8(N,I){return a0(N,"ddd",I)}function a7(N){return(0,t3.o)(N)}function a9(N,I,T){var P=I?iy(I):iy(ig());return(0,te.k)(N,{locale:P,weekStartsOn:T})}function ie(N){return t4(N)}function it(N){return(0,t5.D)(N)}function ir(N){return t6(N)}function ia(){return(0,t3.o)(aY())}function ii(N){return t8(N)}function io(N){return t7(N)}function is(N){return t9(N)}function il(N,I){return N&&I?rt(N,I):!N&&!I}function ic(N,I){return N&&I?rr(N,I):!N&&!I}function iu(N,I){return N&&I?rn(N,I):!N&&!I}function id(N,I){return N&&I?ra(N,I):!N&&!I}function ih(N,I){return N&&I?ri(N,I):!N&&!I}function ip(N,I,T){var P,D=(0,t3.o)(I),M=t8(T);try{P=ro(N,{start:D,end:M})}catch(N){P=!1}return P}function im(N,I){var T=aK();T.__localeData__||(T.__localeData__={}),T.__localeData__[N]=I}function ig(){return aK().__localeId__}
962function iy(N){if("string"!=typeof N)return N;var I=aK();return I.__localeData__?I.__localeData__[N]:void 0}function ib(N,I,T){return I(a0(N,"EEEE",T))}function iv(N,I){return a0(N,"EEEEEE",I)}function iw(N,I){return a0(N,"EEE",I)}function ix(N,I){return a0(rl(aY(),N),"LLLL",I)}function iA(N,I){return a0(rl(aY(),N),"LLL",I)}function iE(N,I){return a0(rc(aY(),N),"QQQ",I)}function iS(N,I){var T=void 0===I?{}:I,P=T.minDate,D=T.maxDate,M=T.excludeDates,R=T.excludeDateIntervals,L=T.includeDates,$=T.includeDateIntervals,F=T.filterDate;return!!T.disabled||iP(N,{minDate:P,maxDate:D})||M&&M.some(function(I){return I instanceof Date?id(N,I):id(N,I.date)})||R&&R.some(function(I){return ro(N,{start:I.start,end:I.end})})||L&&!L.some(function(I){return id(N,I)})||$&&!$.some(function(I){return ro(N,{start:I.start,end:I.end})})||F&&!F(aY(N))||!1}function i_(N,I){var T=void 0===I?{}:I,P=T.excludeDates,D=T.excludeDateIntervals;return D&&D.length>0?D.some(function(I){return ro(N,{start:I.start,end:I.end})}):P&&P.some(function(I){var T;return I instanceof Date?id(N,I):id(N,null!=(T=I.date)?T:new Date)})||!1}function ik(N,I){var T=void 0===I?{}:I,P=T.minDate,D=T.maxDate,M=T.excludeDates,R=T.includeDates,L=T.filterDate;return iP(N,{minDate:P?t4(P):void 0,maxDate:D?t9(D):void 0})||(null==M?void 0:M.some(function(I){return ic(N,I instanceof Date?I:I.date)}))||R&&!R.some(function(I){return ic(N,I)})||L&&!L(aY(N))||!1}function iC(N,I,T,P){var D=ru(N),M=rd(N),R=ru(I),L=rd(I),$=ru(P);return D===R&&D===$?M<=T&&T<=L:D<R&&($===D&&M<=T||$===R&&L>=T||$<R&&$>D)}function ij(N,I){var T=void 0===I?{}:I,P=T.minDate,D=T.maxDate,M=T.excludeDates,R=T.includeDates;return iP(N,{minDate:P,maxDate:D})||M&&M.some(function(I){return ic(I instanceof Date?I:I.date,N)})||R&&!R.some(function(I){return ic(I,N)})||!1}function iO(N,I){var T=void 0===I?{}:I,P=T.minDate,D=T.maxDate,M=T.excludeDates,R=T.includeDates,L=T.filterDate;return!!T.disabled||iP(N,{minDate:P,maxDate:D})||(null==M?void 0:M.some(function(I){return iu(N,I instanceof Date?I:I.date)}))||R&&!R.some(function(I){return iu(N,I)})||L&&!L(aY(N))||!1}function iN(N,I,T){if(!I||!T||!(0,tQ.f)(I)||!(0,tQ.f)(T))return!1;var P=ru(I),D=ru(T);return P<=N&&D>=N}function iI(N,I){var T=void 0===I?{}:I,P=T.minDate,D=T.maxDate,M=T.excludeDates,R=T.includeDates,L=T.filterDate;if(T.disabled)return!0;var $=new Date(N,0,1);return iP($,{minDate:P?(0,t5.D)(P):void 0,maxDate:D?rf(D):void 0})||(null==M?void 0:M.some(function(N){return il($,N instanceof Date?N:N.date)}))||R&&!R.some(function(N){return il($,N)})||L&&!L(aY($))||!1}function iT(N,I,T,P){var D=ru(N),M=rh(N),R=ru(I),L=rh(I),$=ru(P);return D===R&&D===$?M<=T&&T<=L:D<R&&($===D&&M<=T||$===R&&L>=T||$<R&&$>D)}function iP(N,I){var T,P=void 0===I?{}:I,D=P.minDate,M=P.maxDate;return null!=(T=D&&0>(0,rp.m)(N,D)||M&&(0,rp.m)(N,M)>0)&&T}function iD(N,I){return I.some(function(I){return rm(I)===rm(N)&&rg(I)===rg(N)&&ry(I)===ry(N)})}function iM(N,I){var T=void 0===I?{}:I,P=T.excludeTimes,D=T.includeTimes,M=T.filterTime;return P&&iD(N,P)||D&&!iD(N,D)||M&&!M(N)||!1}function iR(N,I){var T,P=I.minTime,D=I.maxTime;if(!P||!D)throw Error("Both minTime and maxTime props required");var M=aY();M=t2(M=t1(M=t0(M,rm(N)),rg(N)),ry(N));var R=aY();R=t2(R=t1(R=t0(R,rm(P)),rg(P)),ry(P));var L=aY();L=t2(L=t1(L=t0(L,rm(D)),rg(D)),ry(D));try{T=!ro(M,{start:R,end:L})}catch(N){T=!1}return T}function iL(N,I){var T=void 0===I?{}:I,P=T.minDate,D=T.includeDates,M=rv(N,1);return P&&rw(P,M)>0||D&&D.every(function(N){return rw(N,M)>0})||!1}function i$(N,I){var T=void 0===I?{}:I,P=T.maxDate,D=T.includeDates,M=rb(N,1);return P&&rw(M,P)>0||D&&D.every(function(N){return rw(M,N)>0})||!1}function iF(N,I){var T=void 0===I?{}:I,P=T.minDate,D=T.includeDates,M=rA((0,t5.D)(N),1);return P&&rE(P,M)>0||D&&D.every(function(N){return rE(N,M)>0})||!1}function iB(N,I){var T=void 0===I?{}:I,P=T.maxDate,D=T.includeDates,M=rx(rf(N),1);return P&&rE(M,P)>0||D&&D.every(function(N){return rE(M,N)>0})||!1}function iU(N,I){var T=void 0===I?{}:I,P=T.minDate,D=T.includeDates,M=r_(N,1);return P&&rk(P,M)>0||D&&D.every(function(N){return rk(N,M)>0})||!1}function iH(N,I){var T=void 0===I?{}:I,P=T.minDate,D=T.yearItemNumber,M=void 0===D?aV:D,R=iZ(it(r_(N,M)),M).endPeriod,L=P&&ru(P);return L&&L>R||!1}function iz(N,I){var T=void 0===I?{}:I,P=T.maxDate,D=T.includeDates,M=rS(N,1);return P&&rk(M,P)>0||D&&D.every(function(N){return rk(M,N)>0})||!1}function iW(N,I){var T=void 0===I?{}:I,P=T.maxDate,D=T.yearItemNumber,M=void 0===D?aV:D,R=iZ(rS(N,M),M).startPeriod,L=P&&ru(P);return L&&L<R||!1}function iq(N){var I=N.minDate,T=N.includeDates;return T&&I?rC(T.filter(function(N){return(0,rp.m)(N,I)>=0})):T?rC(T):I}function iG(N){var I=N.maxDate,T=N.includeDates;return T&&I?rj(T.filter(function(N){return 0>=(0,rp.m)(N,I)})):T?rj(T):I}function iK(N,I){void 0===N&&(N=[]),void 0===I&&(I="react-datepicker__day--highlighted");for(var T,P=new Map,D=0,M=N.length;D<M;D++){var R=N[D];if((0,tZ.$)(R)){var L=a0(R,"MM.dd.yyyy"),$=P.get(L)||[];$.includes(I)||($.push(I),P.set(L,$))}else if("object"==typeof R){var F=null!=(T=Object.keys(R)[0])?T:"",B=R[F];if("string"==typeof F&&Array.isArray(B))for(var U=0,H=B.length;U<H;U++){var z=B[U];if(z){var L=a0(z,"MM.dd.yyyy"),$=P.get(L)||[];$.includes(F)||($.push(F),P.set(L,$))}}}}return P}function iV(N,I){return N.length===I.length&&N.every(function(N,T){return N===I[T]})}function iY(N,I){void 0===N&&(N=[]),void 0===I&&(I="react-datepicker__day--holidays");var T=new Map;
962return N.forEach(function(N){var P=N.date,D=N.holidayName;if((0,tZ.$)(P)){var M=a0(P,"MM.dd.yyyy"),R=T.get(M)||{className:"",holidayNames:[]};if(!("className"in R&&R.className===I&&iV(R.holidayNames,[D]))){R.className=I;var L=R.holidayNames;R.holidayNames=L?a$(a$([],L,!0),[D],!1):[D],T.set(M,R)}}}),T}function iJ(N,I,T,P,D){for(var M=D.length,R=[],L=0;L<M;L++){var $=N,F=D[L];F&&($=rT($=rI($=rN($,rm(F)),rg(F)),ry(F)));var B=rI(N,(T+1)*P);(0,rP.d)($,I)&&rD($,B)&&void 0!=F&&R.push(F)}return R}function iQ(N){return N<10?"0".concat(N):"".concat(N)}function iZ(N,I){void 0===I&&(I=aV);var T=Math.ceil(ru(N)/I)*I;return{startPeriod:T-(I-1),endPeriod:T}}function iX(N){var I=new Date(N.getFullYear(),N.getMonth(),N.getDate());return Math.round((new Date(N.getFullYear(),N.getMonth(),N.getDate(),24)-I)/36e5)}function i0(N){var I=N.getSeconds(),T=N.getMilliseconds();return(0,K.a)(N.getTime()-1e3*I-T)}function i1(N,I){return i0(N).getTime()===i0(I).getTime()}function i2(N){if(!(0,tZ.$)(N))throw Error("Invalid date");var I=new Date(N);return I.setHours(0,0,0,0),I}function i3(N,I){if(!(0,tZ.$)(N)||!(0,tZ.$)(I))throw Error("Invalid date received");return rD(i2(N),i2(I))}function i4(N){return N.key===M.Space}var i5=function(N){function I(I){var T=N.call(this,I)||this;return T.inputRef=H.createRef(),T.onTimeChange=function(N){T.setState({time:N});var I,P,D=T.props.date,M=D instanceof Date&&!isNaN(+D)?D:new Date;if(null==N?void 0:N.includes(":")){var R=N.split(":"),L=R[0],$=R[1];M.setHours(Number(L)),M.setMinutes(Number($))}null==(P=(I=T.props).onChange)||P.call(I,M)},T.renderTimeInput=function(){var N=T.state.time,I=T.props,P=I.date,D=I.timeString,M=I.customTimeInput;return M?(0,H.cloneElement)(M,{date:P,value:N,onChange:T.onTimeChange}):H.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",ref:T.inputRef,onClick:function(){var N;null==(N=T.inputRef.current)||N.focus()},required:!0,value:N,onChange:function(N){T.onTimeChange(N.target.value||D)}})},T.state={time:T.props.timeString},T}return aR(I,N),I.getDerivedStateFromProps=function(N,I){return N.timeString!==I.time?{time:N.timeString}:null},I.prototype.render=function(){return H.createElement("div",{className:"react-datepicker__input-time-container"},H.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),H.createElement("div",{className:"react-datepicker-time__input-container"},H.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))},I}(H.Component),i6=function(N){function I(){var I=null!==N&&N.apply(this,arguments)||this;return I.dayEl=(0,H.createRef)(),I.handleClick=function(N){!I.isDisabled()&&I.props.onClick&&I.props.onClick(N)},I.handleMouseEnter=function(N){!I.isDisabled()&&I.props.onMouseEnter&&I.props.onMouseEnter(N)},I.handleOnKeyDown=function(N){var T,P;N.key===M.Space&&(N.preventDefault(),N.key=M.Enter),null==(P=(T=I.props).handleOnKeyDown)||P.call(T,N)},I.isSameDay=function(N){return id(I.props.day,N)},I.isKeyboardSelected=function(){if(I.props.disabledKeyboardNavigation)return!1;var N,T=I.props.selectsMultiple?null==(N=I.props.selectedDates)?void 0:N.some(function(N){return I.isSameDayOrWeek(N)}):I.isSameDayOrWeek(I.props.selected),P=I.props.preSelection&&I.isDisabled(I.props.preSelection);return!T&&I.isSameDayOrWeek(I.props.preSelection)&&!P},I.isDisabled=function(N){return void 0===N&&(N=I.props.day),iS(N,{minDate:I.props.minDate,maxDate:I.props.maxDate,excludeDates:I.props.excludeDates,excludeDateIntervals:I.props.excludeDateIntervals,includeDateIntervals:I.props.includeDateIntervals,includeDates:I.props.includeDates,filterDate:I.props.filterDate,disabled:I.props.disabled})},I.isExcluded=function(){return i_(I.props.day,{excludeDates:I.props.excludeDates,excludeDateIntervals:I.props.excludeDateIntervals})},I.isStartOfWeek=function(){return id(I.props.day,a9(I.props.day,I.props.locale,I.props.calendarStartDay))},I.isSameWeek=function(N){return I.props.showWeekPicker&&id(N,a9(I.props.day,I.props.locale,I.props.calendarStartDay))},I.isSameDayOrWeek=function(N){return I.isSameDay(N)||I.isSameWeek(N)},I.getHighLightedClass=function(){var N=I.props,T=N.day,P=N.highlightDates;if(!P)return!1;var D=a0(T,"MM.dd.yyyy");return P.get(D)},I.getHolidaysClass=function(){var N,T=I.props,P=T.day,D=T.holidays;if(!D)return[void 0];var M=a0(P,"MM.dd.yyyy");return D.has(M)?[null==(N=D.get(M))?void 0:N.className]:[void 0]},I.isInRange=function(){var N=I.props,T=N.day,P=N.startDate,D=N.endDate;return!!P&&!!D&&ip(T,P,D)},I.isInSelectingRange=function(){var N,T=I.props,P=T.day,D=T.selectsStart,M=T.selectsEnd,R=T.selectsRange,L=T.selectsDisabledDaysInRange,$=T.startDate,F=T.swapRange,B=T.endDate,U=null!=(N=I.props.selectingDate)?N:I.props.preSelection;if(I.isAfterMonth()||I.isBeforeMonth()||!(D||M||R)||!U||!L&&I.isDisabled())return!1;if(D&&B&&(rD(U,B)||ih(U,B)))return ip(P,U,B);if(M&&$&&((0,rP.d)(U,$)||ih(U,$)))return ip(P,$,U);if(R&&$&&!B){if(ih(U,$)||(0,rP.d)(U,$))return ip(P,$,U);if(F&&rD(U,$))return ip(P,U,$)}return!1},I.isSelectingRangeStart=function(){if(!I.isInSelectingRange())return!1;var N,T=I.props,P=T.day,D=T.startDate,M=T.selectsStart,R=T.swapRange,L=T.selectsRange,$=null!=(N=I.props.selectingDate)?N:I.props.preSelection;
962return M?id(P,$):L&&R&&D&&$?id(P,rD($,D)?$:D):id(P,D)},I.isSelectingRangeEnd=function(){if(!I.isInSelectingRange())return!1;var N,T=I.props,P=T.day,D=T.endDate,M=T.selectsEnd,R=T.selectsRange,L=T.swapRange,$=T.startDate,F=null!=(N=I.props.selectingDate)?N:I.props.preSelection;return M?id(P,F):R&&L&&$&&F?id(P,rD(F,$)?$:F):R?id(P,F):id(P,D)},I.isRangeStart=function(){var N=I.props,T=N.day,P=N.startDate,D=N.endDate;return!!P&&!!D&&id(P,T)},I.isRangeEnd=function(){var N=I.props,T=N.day,P=N.startDate,D=N.endDate;return!!P&&!!D&&id(D,T)},I.isWeekend=function(){var N=rM(I.props.day);return 0===N||6===N},I.isAfterMonth=function(){return void 0!==I.props.month&&(I.props.month+1)%12===rd(I.props.day)},I.isBeforeMonth=function(){return void 0!==I.props.month&&(rd(I.props.day)+1)%12===I.props.month},I.isCurrentDay=function(){return I.isSameDay(aY())},I.isSelected=function(){var N;return I.props.selectsMultiple?null==(N=I.props.selectedDates)?void 0:N.some(function(N){return I.isSameDayOrWeek(N)}):I.isSameDayOrWeek(I.props.selected)},I.getClassNames=function(N){var T=I.props.dayClassName?I.props.dayClassName(N):void 0;return(0,W.$)("react-datepicker__day",T,"react-datepicker__day--"+a8(I.props.day),{"react-datepicker__day--disabled":I.isDisabled(),"react-datepicker__day--excluded":I.isExcluded(),"react-datepicker__day--selected":I.isSelected(),"react-datepicker__day--keyboard-selected":I.isKeyboardSelected(),"react-datepicker__day--range-start":I.isRangeStart(),"react-datepicker__day--range-end":I.isRangeEnd(),"react-datepicker__day--in-range":I.isInRange(),"react-datepicker__day--in-selecting-range":I.isInSelectingRange(),"react-datepicker__day--selecting-range-start":I.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":I.isSelectingRangeEnd(),"react-datepicker__day--today":I.isCurrentDay(),"react-datepicker__day--weekend":I.isWeekend(),"react-datepicker__day--outside-month":I.isAfterMonth()||I.isBeforeMonth()},I.getHighLightedClass(),I.getHolidaysClass())},I.getAriaLabel=function(){var N=I.props,T=N.day,P=N.ariaLabelPrefixWhenEnabled,D=void 0===P?"Choose":P,M=N.ariaLabelPrefixWhenDisabled,R=void 0===M?"Not available":M,L=I.isDisabled()||I.isExcluded()?R:D;return"".concat(L," ").concat(a0(T,"PPPP",I.props.locale))},I.getTitle=function(){var N=I.props,T=N.day,P=N.holidays,D=void 0===P?new Map:P,M=N.excludeDates,R=a0(T,"MM.dd.yyyy"),L=[];return D.has(R)&&L.push.apply(L,D.get(R).holidayNames),I.isExcluded()&&L.push(null==M?void 0:M.filter(function(N){return N instanceof Date?id(N,T):id(null==N?void 0:N.date,T)}).map(function(N){if(!(N instanceof Date))return null==N?void 0:N.message})),L.join(", ")},I.getTabIndex=function(){var N=I.props.selected,T=I.props.preSelection;return!(I.props.showWeekPicker&&(I.props.showWeekNumber||!I.isStartOfWeek()))&&(I.isKeyboardSelected()||I.isSameDay(N)&&id(T,N))?0:-1},I.handleFocusDay=function(){var N;I.shouldFocusDay()&&(null==(N=I.dayEl.current)||N.focus({preventScroll:!0}))},I.renderDayContents=function(){return I.props.monthShowsDuplicateDaysEnd&&I.isAfterMonth()||I.props.monthShowsDuplicateDaysStart&&I.isBeforeMonth()?null:I.props.renderDayContents?I.props.renderDayContents(rR(I.props.day),I.props.day):rR(I.props.day)},I.render=function(){return H.createElement("div",{ref:I.dayEl,className:I.getClassNames(I.props.day),onKeyDown:I.handleOnKeyDown,onClick:I.handleClick,onMouseEnter:I.props.usePointerEvent?void 0:I.handleMouseEnter,onPointerEnter:I.props.usePointerEvent?I.handleMouseEnter:void 0,tabIndex:I.getTabIndex(),"aria-label":I.getAriaLabel(),role:"gridcell",title:I.getTitle(),"aria-disabled":I.isDisabled(),"aria-current":I.isCurrentDay()?"date":void 0,"aria-selected":I.isSelected()||I.isInRange()},I.renderDayContents(),""!==I.getTitle()&&H.createElement("span",{className:"overlay"},I.getTitle()))},I}return aR(I,N),I.prototype.componentDidMount=function(){this.handleFocusDay()},I.prototype.componentDidUpdate=function(){this.handleFocusDay()},I.prototype.shouldFocusDay=function(){var N=!1;return 0===this.getTabIndex()&&this.isSameDay(this.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(N=!0),this.props.inline&&!this.props.shouldFocusDayInline&&(N=!1),this.isDayActiveElement()&&
962(N=!0),this.isDuplicateDay()&&(N=!1)),N},I.prototype.isDayActiveElement=function(){var N,I,T;return(null==(I=null==(N=this.props.containerRef)?void 0:N.current)?void 0:I.contains(document.activeElement))&&(null==(T=document.activeElement)?void 0:T.classList.contains("react-datepicker__day"))},I.prototype.isDuplicateDay=function(){return this.props.monthShowsDuplicateDaysEnd&&this.isAfterMonth()||this.props.monthShowsDuplicateDaysStart&&this.isBeforeMonth()},I}(H.Component),i8=function(N){function I(){var I=null!==N&&N.apply(this,arguments)||this;return I.weekNumberEl=(0,H.createRef)(),I.handleClick=function(N){I.props.onClick&&I.props.onClick(N)},I.handleOnKeyDown=function(N){var T,P;N.key===M.Space&&(N.preventDefault(),N.key=M.Enter),null==(P=(T=I.props).handleOnKeyDown)||P.call(T,N)},I.isKeyboardSelected=function(){return!I.props.disabledKeyboardNavigation&&!id(I.props.date,I.props.selected)&&id(I.props.date,I.props.preSelection)},I.getTabIndex=function(){return I.props.showWeekPicker&&I.props.showWeekNumber&&(I.isKeyboardSelected()||id(I.props.date,I.props.selected)&&id(I.props.preSelection,I.props.selected))?0:-1},I.handleFocusWeekNumber=function(N){var T=!1;0===I.getTabIndex()&&!(null==N?void 0:N.isInputFocused)&&id(I.props.date,I.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(T=!0),I.props.inline&&!I.props.shouldFocusDayInline&&(T=!1),I.props.containerRef&&I.props.containerRef.current&&I.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(T=!0)),T&&I.weekNumberEl.current&&I.weekNumberEl.current.focus({preventScroll:!0})},I}return aR(I,N),Object.defineProperty(I,"defaultProps",{get:function(){return{ariaLabelPrefix:"week "}},enumerable:!1,configurable:!0}),I.prototype.componentDidMount=function(){this.handleFocusWeekNumber()},I.prototype.componentDidUpdate=function(N){this.handleFocusWeekNumber(N)},I.prototype.render=function(){var N=this.props,T=N.weekNumber,P=N.isWeekDisabled,D=N.ariaLabelPrefix,M=void 0===D?I.defaultProps.ariaLabelPrefix:D,R=N.onClick,L={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!R&&!P,"react-datepicker__week-number--selected":!!R&&id(this.props.date,this.props.selected)};return H.createElement("div",{ref:this.weekNumberEl,className:(0,W.$)(L),"aria-label":"".concat(M," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex(),role:"gridcell"},T)},I}(H.Component),i7=function(N){function I(){var T=null!==N&&N.apply(this,arguments)||this;return T.isDisabled=function(N){return iS(N,{minDate:T.props.minDate,maxDate:T.props.maxDate,excludeDates:T.props.excludeDates,excludeDateIntervals:T.props.excludeDateIntervals,includeDateIntervals:T.props.includeDateIntervals,includeDates:T.props.includeDates,filterDate:T.props.filterDate})},T.handleDayClick=function(N,I){T.props.onDayClick&&T.props.onDayClick(N,I)},T.handleDayMouseEnter=function(N){T.props.onDayMouseEnter&&T.props.onDayMouseEnter(N)},T.handleWeekClick=function(N,P,D){for(var M,R,L,$=new Date(N),F=0;F<7;F++){var B=new Date(N);if(B.setDate(B.getDate()+F),!T.isDisabled(B)){$=B;break}}"function"==typeof T.props.onWeekSelect&&T.props.onWeekSelect($,P,D),T.props.showWeekPicker&&T.handleDayClick($,D),(null!=(M=T.props.shouldCloseOnSelect)?M:I.defaultProps.shouldCloseOnSelect)&&(null==(L=(R=T.props).setOpen)||L.call(R,!1))},T.formatWeekNumber=function(N){return T.props.formatWeekNumber?T.props.formatWeekNumber(N):a6(N)},T.isWeekDisabled=function(){for(var N=T.startOfWeek(),I=tv(N,6),P=new Date(N);P<=I;){if(!T.isDisabled(P))return!1;P=tv(P,1)}return!0},T.renderDays=function(){var N=T.startOfWeek(),P=[],D=T.formatWeekNumber(N);if(T.props.showWeekNumber){var M=T.props.onWeekSelect||T.props.showWeekPicker?T.handleWeekClick.bind(T,N,D):void 0;P.push(H.createElement(i8,aL({key:"W"},I.defaultProps,T.props,{weekNumber:D,isWeekDisabled:T.isWeekDisabled(),date:N,onClick:M})))}return P.concat([0,1,2,3,4,5,6].map(function(P){var D=tv(N,P);return H.createElement(i6,aL({},I.defaultProps,T.props,{ariaLabelPrefixWhenEnabled:T.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:T.props.disabledDayAriaLabelPrefix,key:D.valueOf(),day:D,onClick:T.handleDayClick.bind(T,D),onMouseEnter:T.handleDayMouseEnter.bind(T,D)}))}))},T.startOfWeek=function(){return a9(T.props.day,T.props.locale,T.props.calendarStartDay)},T.isKeyboardSelected=function(){return!T.props.disabledKeyboardNavigation&&!id(T.startOfWeek(),T.props.selected)&&id(T.startOfWeek(),T.props.preSelection)},T}return aR(I,N),Object.defineProperty(I,"defaultProps",{get:function(){return{shouldCloseOnSelect:!0}}
962,enumerable:!1,configurable:!0}),I.prototype.render=function(){var N={"react-datepicker__week":!0,"react-datepicker__week--selected":id(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()},I=this.props.weekClassName?this.props.weekClassName(this.startOfWeek()):void 0;return H.createElement("div",{className:(0,W.$)(N,I),role:"row"},this.renderDays())},I}(H.Component),i9=6,oe="two_columns",ot="three_columns",or="four_columns",on=((R={})[oe]={grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2},R[ot]={grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3},R[or]={grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4},R),oa=1;function oi(N,I){return N?or:I?oe:ot}var oo=function(N){function I(){var I=null!==N&&N.apply(this,arguments)||this;return I.MONTH_REFS=a$([],Array(12),!0).map(function(){return(0,H.createRef)()}),I.QUARTER_REFS=a$([],[,,,,],!0).map(function(){return(0,H.createRef)()}),I.isDisabled=function(N){return iS(N,{minDate:I.props.minDate,maxDate:I.props.maxDate,excludeDates:I.props.excludeDates,excludeDateIntervals:I.props.excludeDateIntervals,includeDateIntervals:I.props.includeDateIntervals,includeDates:I.props.includeDates,filterDate:I.props.filterDate,disabled:I.props.disabled})},I.isExcluded=function(N){return i_(N,{excludeDates:I.props.excludeDates,excludeDateIntervals:I.props.excludeDateIntervals})},I.handleDayClick=function(N,T){var P,D;
962null==(D=(P=I.props).onDayClick)||D.call(P,N,T,I.props.orderInDisplay)},I.handleDayMouseEnter=function(N){var T,P;null==(P=(T=I.props).onDayMouseEnter)||P.call(T,N)},I.handleMouseLeave=function(){var N,T;null==(T=(N=I.props).onMouseLeave)||T.call(N)},I.isRangeStartMonth=function(N){var T=I.props,P=T.day,D=T.startDate,M=T.endDate;return!!D&&!!M&&ic(rl(P,N),D)},I.isRangeStartQuarter=function(N){var T=I.props,P=T.day,D=T.startDate,M=T.endDate;return!!D&&!!M&&iu(rc(P,N),D)},I.isRangeEndMonth=function(N){var T=I.props,P=T.day,D=T.startDate,M=T.endDate;return!!D&&!!M&&ic(rl(P,N),M)},I.isRangeEndQuarter=function(N){var T=I.props,P=T.day,D=T.startDate,M=T.endDate;return!!D&&!!M&&iu(rc(P,N),M)},I.isInSelectingRangeMonth=function(N){var T,P=I.props,D=P.day,M=P.selectsStart,R=P.selectsEnd,L=P.selectsRange,$=P.startDate,F=P.endDate,B=null!=(T=I.props.selectingDate)?T:I.props.preSelection;return!!(M||R||L)&&!!B&&(M&&F?iC(B,F,N,D):(!!R&&!!$||!!L&&!!$&&!F)&&iC($,B,N,D))},I.isSelectingMonthRangeStart=function(N){if(!I.isInSelectingRangeMonth(N))return!1;var T,P=I.props,D=P.day,M=P.startDate,R=P.selectsStart,L=rl(D,N),$=null!=(T=I.props.selectingDate)?T:I.props.preSelection;return R?ic(L,$):ic(L,M)},I.isSelectingMonthRangeEnd=function(N){if(!I.isInSelectingRangeMonth(N))return!1;var T,P=I.props,D=P.day,M=P.endDate,R=P.selectsEnd,L=P.selectsRange,$=rl(D,N),F=null!=(T=I.props.selectingDate)?T:I.props.preSelection;return R||L?ic($,F):ic($,M)},I.isInSelectingRangeQuarter=function(N){var T,P=I.props,D=P.day,M=P.selectsStart,R=P.selectsEnd,L=P.selectsRange,$=P.startDate,F=P.endDate,B=null!=(T=I.props.selectingDate)?T:I.props.preSelection;return!!(M||R||L)&&!!B&&(M&&F?iT(B,F,N,D):(!!R&&!!$||!!L&&!!$&&!F)&&iT($,B,N,D))},I.isWeekInMonth=function(N){var T=I.props.day,P=tv(N,6);return ic(N,T)||ic(P,T)},I.isCurrentMonth=function(N,I){return ru(N)===ru(aY())&&I===rd(aY())},I.isCurrentQuarter=function(N,I){return ru(N)===ru(aY())&&I===rh(aY())},I.isSelectedMonth=function(N,I,T){return rd(T)===I&&ru(N)===ru(T)},I.isSelectMonthInList=function(N,T,P){return P.some(function(P){return I.isSelectedMonth(N,T,P)})},I.isSelectedQuarter=function(N,I,T){return rh(T)===I&&ru(N)===ru(T)},I.isSelectQuarterInList=function(N,T,P){return P.some(function(P){return I.isSelectedQuarter(N,T,P)})},I.isMonthSelected=function(){var N=I.props,T=N.day,P=N.selected,D=N.selectedDates,M=N.selectsMultiple,R=rd(T);return M?null==D?void 0:D.some(function(N){return I.isSelectedMonth(T,R,N)}):!!P&&I.isSelectedMonth(T,R,P)},I.isQuarterSelected=function(){var N=I.props,T=N.day,P=N.selected,D=N.selectedDates,M=N.selectsMultiple,R=rh(T);return M?null==D?void 0:D.some(function(N){return I.isSelectedQuarter(T,R,N)}):!!P&&I.isSelectedQuarter(T,R,P)},I.renderWeeks=function(){if(!aZ(I.props.day))return[];for(var N=[],T=I.props.fixedHeight,P=0,D=!1,M=a9(ie(I.props.day),I.props.locale,I.props.calendarStartDay),R=function(N){return I.props.showWeekPicker?a9(N,I.props.locale,I.props.calendarStartDay):I.props.preSelection},L=function(N){return I.props.showWeekPicker?a9(N,I.props.locale,I.props.calendarStartDay):I.props.selected},$=I.props.selected?L(I.props.selected):void 0,F=I.props.preSelection?R(I.props.preSelection):void 0;N.push(H.createElement(i7,aL({},I.props,{ariaLabelPrefix:I.props.weekAriaLabelPrefix,key:P,day:M,month:rd(I.props.day),onDayClick:I.handleDayClick,onDayMouseEnter:I.handleDayMouseEnter,selected:$,preSelection:F,showWeekNumber:I.props.showWeekNumbers}))),!D;){P++,M=rL(M,1);var B=T&&P>=i9,U=!T&&!I.isWeekInMonth(M);if(B||U)if(I.props.peekNextMonth)D=!0;else break}return N},I.onMonthClick=function(N,T){var P=I.isMonthDisabledForLabelDate(T),D=P.isDisabled,M=P.labelDate;D||I.handleDayClick(ie(M),N)},I.onMonthMouseEnter=function(N){var T=I.isMonthDisabledForLabelDate(N),P=T.isDisabled,D=T.labelDate;P||I.handleDayMouseEnter(ie(D))},I.handleMonthNavigation=function(N,T){var P,D,M,R;null==(D=(P=I.props).setPreSelection)||D.call(P,T),null==(R=null==(M=I.MONTH_REFS[N])?void 0:M.current)||R.focus()},I.handleKeyboardNavigation=function(N,T,P){var D,R=I.props,L=R.selected,$=R.preSelection,F=R.setPreSelection,B=R.minDate,U=R.maxDate,H=R.showFourColumnMonthYearPicker,z=R.showTwoColumnMonthYearPicker;if($){var W=oi(H,z),q=I.getVerticalOffset(W),G=null==(D=on[W])?void 0:D.grid,K=function(N,I,T){var P,D,R=I,L=T;switch(N){case M.ArrowRight:R=rb(I,oa),L=11===T?0:T+oa;break;
962case M.ArrowLeft:R=rv(I,oa),L=0===T?11:T-oa;break;case M.ArrowUp:R=rv(I,q),L=(null==(P=null==G?void 0:G[0])?void 0:P.includes(T))?T+12-q:T-q;break;case M.ArrowDown:R=rb(I,q),L=(null==(D=null==G?void 0:G[G.length-1])?void 0:D.includes(T))?T-12+q:T+q}return{newCalculatedDate:R,newCalculatedMonth:L}},V=function(N,T,P){for(var D=40,R=N,L=!1,$=0,F=K(R,T,P),H=F.newCalculatedDate,z=F.newCalculatedMonth;!L;){if($>=D){H=T,z=P;break}if(B&&H<B){var W=K(R=M.ArrowRight,H,z);H=W.newCalculatedDate,z=W.newCalculatedMonth}if(U&&H>U){var W=K(R=M.ArrowLeft,H,z);H=W.newCalculatedDate,z=W.newCalculatedMonth}if(ij(H,I.props)){var W=K(R,H,z);H=W.newCalculatedDate,z=W.newCalculatedMonth}else L=!0;$++}return{newCalculatedDate:H,newCalculatedMonth:z}};if(T===M.Enter){I.isMonthDisabled(P)||(I.onMonthClick(N,P),null==F||F(L));return}var Y=V(T,$,P),J=Y.newCalculatedDate,Q=Y.newCalculatedMonth;switch(T){case M.ArrowRight:case M.ArrowLeft:case M.ArrowUp:case M.ArrowDown:I.handleMonthNavigation(Q,J)}}},I.getVerticalOffset=function(N){var I,T;return null!=(T=null==(I=on[N])?void 0:I.verticalNavigationOffset)?T:0},I.onMonthKeyDown=function(N,T){var P=I.props,D=P.disabledKeyboardNavigation,R=P.handleOnMonthKeyDown,L=N.key;L!==M.Tab&&N.preventDefault(),D||I.handleKeyboardNavigation(N,L,T),R&&R(N)},I.onQuarterClick=function(N,T){var P=rc(I.props.day,T);iO(P,I.props)||I.handleDayClick(ir(P),N)},I.onQuarterMouseEnter=function(N){var T=rc(I.props.day,N);iO(T,I.props)||I.handleDayMouseEnter(ir(T))},I.handleQuarterNavigation=function(N,T){var P,D,M,R;I.isDisabled(T)||I.isExcluded(T)||(null==(D=(P=I.props).setPreSelection)||D.call(P,T),null==(R=null==(M=I.QUARTER_REFS[N-1])?void 0:M.current)||R.focus())},I.onQuarterKeyDown=function(N,T){var P,D,R=N.key;if(!I.props.disabledKeyboardNavigation)switch(R){case M.Enter:I.onQuarterClick(N,T),null==(D=(P=I.props).setPreSelection)||D.call(P,I.props.selected);break;case M.ArrowRight:if(!I.props.preSelection)break;I.handleQuarterNavigation(4===T?1:T+1,rx(I.props.preSelection,1));break;case M.ArrowLeft:if(!I.props.preSelection)break;I.handleQuarterNavigation(1===T?4:T-1,rA(I.props.preSelection,1))}},I.isMonthDisabledForLabelDate=function(N){var T,P=I.props,D=P.day,M=P.disabled,R=P.minDate,L=P.maxDate,$=P.excludeDates,F=P.includeDates,B=rl(D,N);return M?{isDisabled:!0,labelDate:rl(D,N)}:{isDisabled:null!=(T=(R||L||$||F)&&ik(B,I.props))&&T,labelDate:B}},I.isMonthDisabled=function(N){return I.isMonthDisabledForLabelDate(N).isDisabled},I.getMonthClassNames=function(N){var T=I.props,P=T.day,D=T.startDate,M=T.endDate,R=T.preSelection,L=T.monthClassName,$=L?L(rl(P,N)):void 0,F=I.getSelection();return(0,W.$)("react-datepicker__month-text","react-datepicker__month-".concat(N),$,{"react-datepicker__month-text--disabled":I.isMonthDisabled(N),"react-datepicker__month-text--selected":F?I.isSelectMonthInList(P,N,F):void 0,"react-datepicker__month-text--keyboard-selected":!I.props.disabledKeyboardNavigation&&R&&I.isSelectedMonth(P,N,R)&&!I.isMonthSelected()&&!I.isMonthDisabled(N),"react-datepicker__month-text--in-selecting-range":I.isInSelectingRangeMonth(N),"react-datepicker__month-text--in-range":D&&M?iC(D,M,N,P):void 0,"react-datepicker__month-text--range-start":I.isRangeStartMonth(N),"react-datepicker__month-text--range-end":I.isRangeEndMonth(N),"react-datepicker__month-text--selecting-range-start":I.isSelectingMonthRangeStart(N),"react-datepicker__month-text--selecting-range-end":I.isSelectingMonthRangeEnd(N),"react-datepicker__month-text--today":I.isCurrentMonth(P,N)})},I.getTabIndex=function(N){if(null==I.props.preSelection)return"-1";var T=rd(I.props.preSelection),P=I.isMonthDisabledForLabelDate(T).isDisabled;return N!==T||P||I.props.disabledKeyboardNavigation?"-1":"0"},I.getQuarterTabIndex=function(N){if(null==I.props.preSelection)return"-1";var T=rh(I.props.preSelection),P=iO(I.props.day,I.props);return N!==T||P||I.props.disabledKeyboardNavigation?"-1":"0"},I.getAriaLabel=function(N){var T=I.props,P=T.chooseDayAriaLabelPrefix,D=void 0===P?"Choose":P,M=T.disabledDayAriaLabelPrefix,R=void 0===M?"Not available":M,L=T.day,$=T.locale,F=rl(L,N),B=I.isDisabled(F)||I.isExcluded(F)?R:D;return"".concat(B," ").concat(a0(F,"MMMM yyyy",$))},I.getQuarterClassNames=function(N){var T=I.props,P=T.day,D=T.startDate,M=T.endDate,R=T.minDate,L=T.maxDate,$=T.excludeDates,F=T.includeDates,B=T.filterDate,U=T.preSelection,H=T.disabledKeyboardNavigation,z=T.disabled,q=(R||L||$||F||B||z)&&iO(rc(P,N),I.props),G=I.getSelection();return(0,W.$)("react-datepicker__quarter-text","react-datepicker__quarter-".concat(N),{"react-datepicker__quarter-text--disabled":q,"react-datepicker__quarter-text--selected":G?I.isSelectQuarterInList(P,N,G):void 0,"react-datepicker__quarter-text--keyboard-selected":!H&&U&&I.isSelectedQuarter(P,N,U)&&!I.isQuarterSelected()&&!q,"react-datepicker__quarter-text--in-selecting-range":I.isInSelectingRangeQuarter(N),"react-datepicker__quarter-text--in-range":D&&M?iT(
vendor: 5,455 bytes, line 962
962D,M,N,P):void 0,"react-datepicker__quarter-text--range-start":I.isRangeStartQuarter(N),"react-datepicker__quarter-text--range-end":I.isRangeEndQuarter(N),"react-datepicker__quarter-text--today":I.isCurrentQuarter(P,N)})},I.getMonthContent=function(N){var T=I.props,P=T.showFullMonthYearPicker,D=T.renderMonthContent,M=T.locale,R=T.day,L=iA(N,M),$=ix(N,M);return D?D(N,L,$,R):P?$:L},I.getQuarterContent=function(N){var T,P=I.props,D=P.renderQuarterContent,M=iE(N,P.locale);return null!=(T=null==D?void 0:D(N,M))?T:M},I.renderMonths=function(){var N,T=I.props,P=T.showTwoColumnMonthYearPicker,D=T.showFourColumnMonthYearPicker,R=T.day,L=T.selected,$=null==(N=on[oi(D,P)])?void 0:N.grid;return null==$?void 0:$.map(function(N,T){return H.createElement("div",{className:"react-datepicker__month-wrapper",key:T},N.map(function(N,T){return H.createElement("div",{ref:I.MONTH_REFS[N],key:T,onClick:function(T){I.onMonthClick(T,N)},onKeyDown:function(T){i4(T)&&(T.preventDefault(),T.key=M.Enter),I.onMonthKeyDown(T,N)},onMouseEnter:I.props.usePointerEvent?void 0:function(){return I.onMonthMouseEnter(N)},onPointerEnter:I.props.usePointerEvent?function(){return I.onMonthMouseEnter(N)}:void 0,tabIndex:Number(I.getTabIndex(N)),className:I.getMonthClassNames(N),"aria-disabled":I.isMonthDisabled(N),role:"option","aria-label":I.getAriaLabel(N),"aria-current":I.isCurrentMonth(R,N)?"date":void 0,"aria-selected":L?I.isSelectedMonth(R,N,L):void 0},I.getMonthContent(N))}))})},I.renderQuarters=function(){var N=I.props,T=N.day,P=N.selected,D=[1,2,3,4];return H.createElement("div",{className:"react-datepicker__quarter-wrapper"},D.map(function(N,D){return H.createElement("div",{key:D,ref:I.QUARTER_REFS[D],role:"option",onClick:function(T){I.onQuarterClick(T,N)},onKeyDown:function(T){I.onQuarterKeyDown(T,N)},onMouseEnter:I.props.usePointerEvent?void 0:function(){return I.onQuarterMouseEnter(N)},onPointerEnter:I.props.usePointerEvent?function(){return I.onQuarterMouseEnter(N)}:void 0,className:I.getQuarterClassNames(N),"aria-selected":P?I.isSelectedQuarter(T,N,P):void 0,tabIndex:Number(I.getQuarterTabIndex(N)),"aria-current":I.isCurrentQuarter(T,N)?"date":void 0},I.getQuarterContent(N))}))},I.getClassNames=function(){var N=I.props,T=N.selectingDate,P=N.selectsStart,D=N.selectsEnd,M=N.showMonthYearPicker,R=N.showQuarterYearPicker,L=N.showWeekPicker;return(0,W.$)("react-datepicker__month",{"react-datepicker__month--selecting-range":T&&(P||D)},{"react-datepicker__monthPicker":M},{"react-datepicker__quarterPicker":R},{"react-datepicker__weekPicker":L})},I}return aR(I,N),I.prototype.getSelection=function(){var N=this.props,I=N.selected,T=N.selectedDates;return N.selectsMultiple?T:I?[I]:void 0},I.prototype.render=function(){var N=this.props,I=N.showMonthYearPicker,T=N.showQuarterYearPicker,P=N.day,D=N.ariaLabelPrefix,M=void 0===D?"Month ":D,R=M?M.trim()+" ":"",L=aZ(P)?"".concat(R).concat(a0(P,"MMMM, yyyy",this.props.locale)):"";return I||T?H.createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":L,role:"listbox"},I?this.renderMonths():this.renderQuarters()):H.createElement("div",{role:"table"},this.props.dayNamesHeader&&H.createElement("div",{role:"rowgroup"},this.props.dayNamesHeader),this.props.monthHeader&&H.createElement("div",{role:"rowgroup"},this.props.monthHeader),H.createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":L,role:"rowgroup"},this.renderWeeks()),this.props.monthFooter&&H.createElement("div",{role:"rowgroup"},this.props.monthFooter))},I}(H.Component),os=function(N){function I(){var I=null!==N&&N.apply(this,arguments)||this;return I.monthOptionButtonsRef={},I.isSelectedMonth=function(N){return I.props.month===N},I.handleOptionKeyDown=function(N,T){var P;switch(T.key){case"Enter":T.preventDefault(),I.onChange(N);break;case"Escape":T.preventDefault(),I.props.onCancel();break;case"ArrowUp":case"ArrowDown":T.preventDefault();var D=(N+("ArrowUp"===T.key?-1:1)+I.props.monthNames.length)%I.props.monthNames.length;null==(P=I.monthOptionButtonsRef[D])||P.focus()}},I.renderOptions=function(){return I.monthOptionButtonsRef={},I.props.monthNames.map(function(N,T){return H.createElement("div",{ref:function(N){I.monthOptionButtonsRef[T]=N,I.isSelectedMonth(T)&&(null==N||N.focus())},role:"button",tabIndex:0,className:I.isSelectedMonth(T)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:N,onClick:I.onChange.bind(I,T),onKeyDown:I.handleOptionKeyDown.bind(I,T),"aria-selected":I.isSelectedMonth(T)?"true":void 0},I.isSelectedMonth(T)?H.createElement("span",{className:"react-datepicker__month-option--selected"},"â"):"",N)})},I.onChange=function(N){return I.props.onChange(N)},I.handleClickOutside=function(){return I.props.onCancel()},I}return aR(I,N),I.prototype.render=function(){return H.createElement(aU,{className:"react-datepicker__month-dropdown",onClickOutside:this.handleClickOutside},this.renderOptions())},I}(H.Component),ol=function(N){function I(){var I=null!==N&&N.apply(this,arguments)||this;return I.state={dropdownVisible:!1},I.renderSelectOptions=function(N){return N.map(function(N,I){return H.createElement("option",{key:N,value:
962I},N)})},I.renderSelectMode=function(N){return H.createElement("select",{value:I.props.month,className:"react-datepicker__month-select",onChange:function(N){return I.onChange(parseInt(N.target.value))}},I.renderSelectOptions(N))},I.renderReadView=function(N,T){return H.createElement("button",{key:"read",type:"button",style:{visibility:N?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:I.toggleDropdown},H.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),H.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},T[I.props.month]))},I.renderDropdown=function(N){return H.createElement(os,aL({key:"dropdown"},I.props,{monthNames:N,onChange:I.onChange,onCancel:I.toggleDropdown}))},I.renderScrollMode=function(N){var T=I.state.dropdownVisible,P=[I.renderReadView(!T,N)];return T&&P.unshift(I.renderDropdown(N)),P},I.onChange=function(N){I.toggleDropdown(),N!==I.props.month&&I.props.onChange(N)},I.toggleDropdown=function(){return I.setState({dropdownVisible:!I.state.dropdownVisible})},I}return aR(I,N),I.prototype.render=function(){var N,I=this,T=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(N){return iA(N,I.props.locale)}:function(N){return ix(N,I.props.locale)});switch(this.props.dropdownMode){case"scroll":N=this.renderScrollMode(T);break;case"select":N=this.renderSelectMode(T)}return H.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},N)},I}(H.Component),oc=5;function ou(N,I,T){for(var P=[],D=null!=N?N:r_(T,oc),M=null!=I?I:rS(T,oc),R=ie(D),L=ie(M);!(0,rP.d)(R,L);)P.push(aY(R)),R=rb(R,1);return P}var od=function(N){function I(I){var T=N.call(this,I)||this;return T.renderOptions=function(){return T.state.monthYearsList.map(function(N){var I=r$(N),P=il(T.props.date,N)&&ic(T.props.date,N);return H.createElement("div",{className:P?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:I,onClick:T.onChange.bind(T,I),"aria-selected":P?"true":void 0},P?H.createElement("span",{className:"react-datepicker__month-year-option--selected"},"â"):"",a0(N,T.props.dateFormat,T.props.locale))})},T.onChange=function(N){return T.props.onChange(N)},T.handleClickOutside=function(){T.props.onCancel()},T.state={monthYearsList:ou(T.props.minDate,T.props.maxDate,T.props.date)},T}return aR(I,N),I.prototype.render=function(){var N=(0,W.$)({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return H.createElement(aU,{className:N,onClickOutside:this.handleClickOutside},this.renderOptions())},I}(H.Component),of=5,oh=function(N){function I(){var I=null!==N&&N.apply(this,arguments)||this;return I.state={dropdownVisible:!1},I.renderSelectOptions=function(){for(var N,T,P=null!=(N=I.props.minDate)?N:r_(I.props.date,of),D=null!=(T=I.props.maxDate)?T:rS(I.props.date,of),M=ie(P),R=ie(D),L=[];!(0,rP.d)(M,R);){var $=r$(M);L.push(H.createElement("option",{key:$,value:$},a0(M,I.props.dateFormat,I.props.locale))),M=rb(M,1)}return L},I.onSelectChange=function(N){I.onChange(parseInt(N.target.value))},I.renderSelectMode=function(){return H.createElement("select",{value:r$(ie(I.props.date)),className:"react-datepicker__month-year-select",onChange:I.onSelectChange},I.renderSelectOptions())},I.renderReadView=function(N){var T=a0(I.props.date,I.props.dateFormat,I.props.locale);return H.createElement("div",{key:"read",style:{visibility:N?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:I.toggleDropdown},H.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),H.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},T))},I.renderDropdown=function(){return H.createElement(od,aL({key:"dropdown"},I.props,{onChange:I.onChange,onCancel:I.toggleDropdown}))},I.renderScrollMode=function(){var N=I.state.dropdownVisible,T=[I.renderReadView(!N)];return N&&T.unshift(I.renderDropdown()),T},I.onChange=function(N){I.toggleDropdown();var T=aY(N);il(I.props.date,T)&&ic(I.props.date,T)||I.props.onChange(T)},I.toggleDropdown=function(){return I.setState({dropdownVisible:!I.state.dropdownVisible})},I}return aR(I,N),I.prototype.render=function(){var N;switch(this.props.dropdownMode){case"scroll":N=this.renderScrollMode();break;case"select":N=this.renderSelectMode()}return H.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},N)},I}(H.Component),op=function(N){function I(){var T=null!==N&&N.apply(this,arguments)||this;
962return T.state={height:null},T.scrollToTheSelectedTime=function(){requestAnimationFrame(function(){var N,P,D;T.list&&(T.list.scrollTop=null!=(D=T.centerLi&&I.calcCenterPosition(T.props.monthRef?T.props.monthRef.clientHeight-(null!=(P=null==(N=T.header)?void 0:N.clientHeight)?P:0):T.list.clientHeight,T.centerLi))?D:0)})},T.handleClick=function(N){var I,P;(T.props.minTime||T.props.maxTime)&&iR(N,T.props)||(T.props.excludeTimes||T.props.includeTimes||T.props.filterTime)&&iM(N,T.props)||null==(P=(I=T.props).onChange)||P.call(I,N)},T.isSelectedTime=function(N){var I=aX(T.props.selected);return I&&i1(I,N)},T.isDisabledTime=function(N){return(T.props.minTime||T.props.maxTime)&&iR(N,T.props)||(T.props.excludeTimes||T.props.includeTimes||T.props.filterTime)&&iM(N,T.props)},T.liClasses=function(N){var P,D=["react-datepicker__time-list-item",T.props.timeClassName?T.props.timeClassName(N):void 0];return T.isSelectedTime(N)&&D.push("react-datepicker__time-list-item--selected"),T.isDisabledTime(N)&&D.push("react-datepicker__time-list-item--disabled"),T.props.injectTimes&&(3600*rm(N)+60*rg(N)+ry(N))%((null!=(P=T.props.intervals)?P:I.defaultProps.intervals)*60)!=0&&D.push("react-datepicker__time-list-item--injected"),D.join(" ")},T.handleOnKeyDown=function(N,I){var P,D;N.key===M.Space&&(N.preventDefault(),N.key=M.Enter),(N.key===M.ArrowUp||N.key===M.ArrowLeft)&&N.target instanceof HTMLElement&&N.target.previousSibling&&(N.preventDefault(),N.target.previousSibling instanceof HTMLElement&&N.target.previousSibling.focus()),(N.key===M.ArrowDown||N.key===M.ArrowRight)&&N.target instanceof HTMLElement&&N.target.nextSibling&&(N.preventDefault(),N.target.nextSibling instanceof HTMLElement&&N.target.nextSibling.focus()),N.key===M.Enter&&T.handleClick(I),null==(D=(P=T.props).handleOnKeyDown)||D.call(P,N)},T.renderTimes=function(){for(var N,P=[],D="string"==typeof T.props.format?T.props.format:"p",M=null!=(N=T.props.intervals)?N:I.defaultProps.intervals,R=aX(T.props.selected)||aX(T.props.openToDate)||aY(),L=a7(R),$=T.props.injectTimes&&T.props.injectTimes.sort(function(N,I){return N.getTime()-I.getTime()}),F=60*iX(R)/M,B=0;B<F;B++){var U=rI(L,B*M);if(P.push(U),$){var z=iJ(L,U,B,M,$);P=P.concat(z)}}var W=P.reduce(function(N,I){return I.getTime()<=R.getTime()?I:N},P[0]);return P.map(function(N){return H.createElement("li",{key:N.valueOf(),onClick:T.handleClick.bind(T,N),className:T.liClasses(N),ref:function(I){N===W&&(T.centerLi=I)},onKeyDown:function(I){T.handleOnKeyDown(I,N)},tabIndex:N===W?0:-1,role:"option","aria-selected":T.isSelectedTime(N)?"true":void 0,"aria-disabled":T.isDisabledTime(N)?"true":void 0},a0(N,D,T.props.locale))})},T.renderTimeCaption=function(){return!1===T.props.showTimeCaption?H.createElement(H.Fragment,null):H.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(T.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(N){T.header=N}},H.createElement("div",{className:"react-datepicker-time__header"},T.props.timeCaption))},T}return aR(I,N),Object.defineProperty(I,"defaultProps",{get:function(){return{intervals:30,todayButton:null,timeCaption:"Time",showTimeCaption:!0}},enumerable:!1,configurable:!0}),I.prototype.componentDidMount=function(){this.scrollToTheSelectedTime(),this.observeDatePickerHeight
962Changes()},I.prototype.componentWillUnmount=function(){var N;null==(N=this.resizeObserver)||N.disconnect()},I.prototype.observeDatePickerHeightChanges=function(){var N=this,I=this.props.monthRef;this.updateContainerHeight(),I&&(this.resizeObserver=new ResizeObserver(function(){N.updateContainerHeight()}),this.resizeObserver.observe(I))},I.prototype.updateContainerHeight=function(){if(this.props.monthRef&&this.header){var N=this.props.monthRef.clientHeight-this.header.clientHeight;this.state.height!==N&&this.setState({height:N})}},I.prototype.render=function(){var N,T=this,P=this.state.height;return H.createElement("div",{className:"react-datepicker__time-container ".concat((null!=(N=this.props.todayButton)?N:I.defaultProps.todayButton)?"react-datepicker__time-container--with-today-button":"")},this.renderTimeCaption(),H.createElement("div",{className:"react-datepicker__time"},H.createElement("div",{className:"react-datepicker__time-box"},H.createElement("ul",{className:"react-datepicker__time-list",ref:function(N){T.list=N},style:P?{height:P}:{},role:"listbox","aria-label":this.props.timeCaption},this.renderTimes()))))},I.calcCenterPosition=function(N,I){return I.offsetTop-(N/2-I.clientHeight/2)},I}(H.Component),om=3,og=function(N){function I(I){var T=N.call(this,I)||this;return T.YEAR_REFS=a$([],Array(T.props.yearItemNumber),!0).map(function(){return(0,H.createRef)()}),T.isDisabled=function(N){return iS(N,{minDate:T.props.minDate,maxDate:T.props.maxDate,excludeDates:T.props.excludeDates,includeDates:T.props.includeDates,filterDate:T.props.filterDate})},T.isExcluded=function(N){return i_(N,{excludeDates:T.props.excludeDates})},T.selectingDate=function(){var N;return null!=(N=T.props.selectingDate)?N:T.props.preSelection},T.updateFocusOnPaginate=function(N){var I=function(){var I,P;null==(P=null==(I=T.YEAR_REFS[N])?void 0:I.current)||P.focus()};window.requestAnimationFrame(I)},T.handleYearClick=function(N,I){T.props.onDayClick&&T.props.onDayClick(N,I)},T.handleYearNavigation=function(N,I){var P,D,M,R,L=T.props,$=L.date,F=L.yearItemNumber;if(void 0!==$&&void 0!==F){var B=iZ($,F).startPeriod;T.isDisabled(I)||T.isExcluded(I)||(null==(D=(P=T.props).setPreSelection)||D.call(P,I),N-B<0?T.updateFocusOnPaginate(F-(B-N)):N-B>=F?T.updateFocusOnPaginate(Math.abs(F-(N-B))):null==(R=null==(M=T.YEAR_REFS[N-B])?void 0:M.current)||R.focus())}},T.isSameDay=function(N,I){return id(N,I)},T.isCurrentYear=function(N){return N===ru(aY())},T.isRangeStart=function(N){return T.props.startDate&&T.props.endDate&&il(rF(aY(),N),T.props.startDate)},T.isRangeEnd=function(N){return T.props.startDate&&T.props.endDate&&il(rF(aY(),N),T.props.endDate)},T.isInRange=function(N){return iN(N,T.props.startDate,T.props.endDate)},T.isInSelectingRange=function(N){var I=T.props,P=I.selectsStart,D=I.selectsEnd,M=I.selectsRange,R=I.startDate,L=I.endDate;return!!(P||D||M)&&!!T.selectingDate()&&(P&&L?iN(N,T.selectingDate(),L):(!!D&&!!R||!!M&&!!R&&!L)&&iN(N,R,T.selectingDate()))},T.isSelectingRangeStart=function(N){if(!T.isInSelectingRange(N))return!1;var I,P=T.props,D=P.startDate,M=P.selectsStart,R=rF(aY(),N);return M?il(R,null!=(I=T.selectingDate())?I:null):il(R,null!=D?D:null)},T.isSelectingRangeEnd=function(N){if(!T.isInSelectingRange(N))return!1;var I,P=T.props,D=P.endDate,M=P.selectsEnd,R=P.selectsRange,L=rF(aY(),N);return M||R?il(L,null!=(I=T.selectingDate())?I:null):il(L,null!=D?D:null)},T.isKeyboardSelected=function(N){if(!T.props.disabledKeyboardNavigation&&void 0!==T.props.date&&null!=T.props.preSelection){var I=T.props,P=I.minDate,D=I.maxDate,M=I.excludeDates,R=I.includeDates,L=I.filterDate,$=I.selected,F=it(rF(T.props.date,N)),B=(P||D||M||R||L)&&iI(N,T.props),U=!!$&&id(F,it($)),H=id(F,it(T.props.preSelection));return!T.props.inline&&!U&&H&&!B}},T.isSelectedYear=function(N){var I=T.props,P=I.selectsMultiple,D=I.selected,M=I.selectedDates;return P?null==M?void 0:M.some(function(I){return N===ru(I)}):!!D&&N===ru(D)},T.onYearClick=function(N,I){var P=T.props.date;void 0!==P&&T.handleYearClick(it(rF(P,I)),N)},T.onYearKeyDown=function(N,I){var P,D,R=N.key,L=T.props,$=L.date,F=L.yearItemNumber,B=L.handleOnKeyDown;if(R!==M.Tab&&N.preventDefault(),!T.props.disabledKeyboardNavigation)switch(R){case M.Enter:if(null==T.props.selected)break;T.onYearClick(N,I),null==(D=(P=T.props).setPreSelection)||D.call(P,T.props.selected);break;case M.ArrowRight:if(null==T.props.preSelection)break;T.handleYearNavigation(I+1,rS(T.props.preSelection,1));break;case M.ArrowLeft:if(null==T.props.preSelection)break;T.handleYearNavigation(I-1,r_(T.props.preSelection,1));break;case M.ArrowUp:if(void 0===$||void 0===F||null==T.props.preSelection)break;var U=iZ($,F).startPeriod,H=om,z=I-H;if(z<U){var W=F%H;I>=U&&I<U+W?H=W:H+=W,z=I-H}T.handleYearNavigation(z,r_(T.props.preSelection,H));break;case M.ArrowDown:if(void 0===$||void 0===F||null==T.props.preSelection)break;var q=iZ($,F).endPeriod,H=om,z=I+H;if(z>q){var W=F%H;I<=q&&I>q-W?H=W:H+=W,z=I+H}T.handleYearNavigation(z,rS(T.props.preSelection,H))}B&&B(N)},T.getYearClassNames=function(N){var I=T.props,P=I.date,D=I.disabled,M=I.minDate,R=I.maxDate,L=I.excludeDates,$=I.includeDates,F=I.filterDate,B=I.yearClassName;return(0,W.$)("react-datepicker__year-text","react-datepicker__year-".concat(N),P?null==B?void 0:B(rF(P,N)):void 0,{"react-datepicker__year-text--selected":T.isSelectedYear(N),"react-datepicker__year-text--disabled":(M||R||L||$||F||D)&&iI(N,T.props),"react-datepicker__year-text--keyboard-selected":T.isKeyboardSelected(N),"react-datepicker__year-text--range-start":T.isRangeStart(N),"react-datepicker__year-text--range-end":T.isRangeEnd(N),"react-datepicker__year-text--in-range":T.isInRange(N),"react-datepicker__year-text--in-selecting-range":T.isInSelectingRange(N),"react-datepicker__year-text--selecting-range-start":T.isSelectingRangeStart(N),"react-datepicker__year-text--selecting-range-end":T.isSelectingRangeEnd(N),"react-datepicker__year-text--today":T.isCurrentYear(N)})},T.getYearTabIndex=function(N){if(T.props.disabledKeyboardNavigation||null==T.props.preSelection)return"-1";var I=ru(T.props.preSelection),P=iI(N,T.props);return N!==I||P?"-1":"0"},T.getYearContent=function(N){return T.props.renderYearContent?T.props.renderYearContent(N):N},T}return aR(I,N),I.prototype.render=function(){var N=this,I=[],T=this.props,P=T.date,D=T.yearItemNumber,R=T.onYearMouseEnter,L=T.onYearMouseLeave;if(void 0===P)return null;for(var $=iZ(P,D),F=$.startPeriod,B=$.endPeriod,U=function(T){I.push(H.createElement("div",{ref:z.YEAR_REFS[T-F],onClick:function(I){N.onYearClick(I,T)},onKeyDown:function(I){i4(I)&&(I.preventDefault(),I.key=M.Enter),N.onYearKeyDown(I,T)},tabIndex:Number(z.getYearTabIndex(T)),className:z.getYearClassNames(T),onMouseEnter:z.props.usePointerEvent?void 0:function(N){return R(N,T)},onPointerEnter:z.props.usePointerEvent?function(N){return R(N,T)}:void 0,onMouseLeave:z.props.usePointerEvent?void 0:function(N){return L(N,T)},onPointerLeave:z.props.usePointerEvent?function(N){return L(N,T)}:void 0,key:T,"aria-current":z.isCurrentYear(T)?"date":void 0},z.getYearContent(T)))},z=this,W=F;W<=B;W++)U(W);return H.createElement("div",{className:"react-datepicker__year"},H.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.usePointerEvent?void 0:this.props.clearSelectingDate,onPointerLeave:this.props.usePointerEvent?this.props.clearSelectingDate:void 0},I))},I}(H.Component);function oy(N,I,T,P){for(var D=[],M=0;M<2*I+1;M++){var R=N+I-M,L=!0;T&&(L=ru(T)<=R),P&&L&&(L=ru(P)>=R),L&&D.push(R)}return D}var ob=function(N){function I(I){var T=N.call(this,I)||this;T.yearOptionButtonsRef={},T.handleOptionKeyDown=function(N,I){var P;switch(I.key){case"Enter":I.preventDefault(),T.onChange(N);break;case"Escape":I.preventDefault(),T.props.onCancel();break;case"ArrowUp":case"ArrowDown":I.preventDefault();var D=N+("ArrowUp"===I.key?1:-1);T.yearOptionButtonsRef[D]&&(null==(P=T.yearOptionButtonsRef[D])||P.focu
962s())}},T.renderOptions=function(){T.yearOptionButtonsRef={};var N=T.props.year,I=T.state.yearsList.map(function(I){return H.createElement("div",{ref:function(P){T.yearOptionButtonsRef[I]=P,I===N&&(null==P||P.focus())},role:"button",tabIndex:0,className:N===I?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:I,onClick:T.onChange.bind(T,I),onKeyDown:T.handleOptionKeyDown.bind(T,I),"aria-selected":N===I?"true":void 0},N===I?H.createElement("span",{className:"react-datepicker__year-option--selected"},"â"):"",I)}),P=T.props.minDate?ru(T.props.minDate):null,D=T.props.maxDate?ru(T.props.maxDate):null;return D&&T.state.yearsList.find(function(N){return N===D})||I.unshift(H.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:T.incrementYears},H.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),P&&T.state.yearsList.find(function(N){return N===P})||I.push(H.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:T.decrementYears},H.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),I},T.onChange=function(N){T.props.onChange(N)},T.handleClickOutside=function(){T.props.onCancel()},T.shiftYears=function(N){var I=T.state.yearsList.map(function(I){return I+N});T.setState({yearsList:I})},T.incrementYears=function(){return T.shiftYears(1)},T.decrementYears=function(){return T.shiftYears(-1)};var P=I.yearDropdownItemNumber,D=I.scrollableYearDropdown,M=P||(D?10:5);return T.state={yearsList:oy(T.props.year,M,T.props.minDate,T.props.maxDate)},T.dropdownRef=(0,H.createRef)(),T}return aR(I,N),I.prototype.componentDidMount=function(){var N=this.dropdownRef.current;if(N){var I=N.children?Array.from(N.children):null,T=I?I.find(function(N){return N.ariaSelected}):null;N.scrollTop=T&&T instanceof HTMLElement?T.offsetTop+(T.clientHeight-N.clientHeight)/2:(N.scrollHeight-N.clientHeight)/2}},I.prototype.render=function(){var N=(0,W.$)({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return H.createElement(aU,{className:N,containerRef:this.dropdownRef,onClickOutside:this.handleClickOutside},this.renderOptions())},I}(H.Component),ov=function(N){function I(){var I=null!==N&&N.apply(this,arguments)||this;return I.state={dropdownVisible:!1},I.renderSelectOptions=function(){for(var N=I.props.minDate?ru(I.props.minDate):1900,T=I.props.maxDate?ru(I.props.maxDate):2100,P=[],D=N;D<=T;D++)P.push(H.createElement("option",{key:D,value:D},D));return P},I.onSelectChange=function(N){I.onChange(parseInt(N.target.value))},I.renderSelectMode=function(){return H.createElement("select",{value:I.props.year,className:"react-datepicker__year-select",onChange:I.onSelectChange},I.renderSelectOptions())},I.renderReadView=function(N){return H.createElement("button",{key:"read",type:"button",style:{visibility:N?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:I.toggleDropdown},H.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),H.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},I.props.year))},I.renderDropdown=function(){return H.createElement(ob,aL({key:"dropdown"},I.props,{onChange:I.onChange,onCancel:I.toggleDropdown}))},I.renderScrollMode=function(){var N=I.state.dropdownVisible,T=[I.renderReadView(!N)];return N&&T.unshift(I.renderDropdown()),T},I.onChange=function(N){I.toggleDropdown(),N!==I.props.year&&I.props.onChange(N)},I.toggleDropdown=function(N){I.setState({dropdownVisible:!I.state.dropdownVisible},function(){I.props.adjustDateOnChange&&I.handleYearChange(I.props.date,N)})},I.handleYearChange=function(N,T){var P;null==(P=I.onSelect)||P.call(I,N,T),I.setOpen()},I.onSelect=function(N,T){var P,D;null==(D=(P=I.props).onSelect)||D.call(P,N,T)},I.setOpen=function(){var N,T;null==(T=(N=I.props).setOpen)||T.call(N,!0)},I}return aR(I,N),I.prototype.render=function(){var N;switch(this.props.dropdownMode){case"scroll":N=this.renderScrollMode();break;case"select":N=this.renderSelectMode()}return H.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},N)},I}(H.Component),ow=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],ox="react-datepicker-ignore-onclickoutside",oA=function(N){var I=(N.className||"").split(/\s+/);return ow.some(function(N){return I.indexOf(N)>=0})},oE=function(N){function I(T){var P=N.call(this,T)||this;return P.monthContainer=void 0,P.handleClickOutside=function(N){P.props.onClickOutside(N)},P.setClickOutsideRef=function(){return P.containerRef.current},P.handleDropdownFocus=function(N){var I,T;oA(N.target)&&(null==(T=(I=P.props).onDropdownFocus)||T.call(I,N))},P.getDateInView=function(){var N=P.props,I=N.preSelection,T=N.selected,D=N.openToDate,M=iq(P.props),R=iG(P.props),L=aY(),$=D||T||I;return $?$:M&&rD(L,M)?M:R&&(0,rP.d)(L,R)?R:L},P.increaseMonth=function(){P.setState(function(N){return{date:rb(N.date,1)}},function(){return P.handleMonthChange(P.state.date)})},P.decreaseMonth=function(){P.setState(function(N){return{date:rv(N.date,1)}},function(){return P.handleMonthChange(P.state.date)})},P.handleDayClick=function(N,I,T){P.props.onSelect(N,I,T),P.props.setPreSelection&&P.props.setPreSelection(N)},P.handleDayMouseEnter=function(N){P.setState({selectingDate:N}),P.props.onDayMouseEnter&&P.props.onDayMouseEnter(N)},P.handleMonthMouseLeave=function(){P.setState({selectingDate:void 0}),P.props.onMonthMouseLeave&&P.props.onMonthMouseLeave()},P.handleYearMouseEnter=function(N,I){P.setState({selectingDate:rF(aY(),I)}),P.props.onYearMouseEnter&&P.props.onYearMouseEnter(N,I)},P.handleYearMouseLeave=function(N,I){P.props.onYearMouseLeave&&P.props.onYearMouseLeave(N,I)},P.handleYearChange=function(N){var I,T,D,M;null==(T=(I=P.props).onYearChange)||T.call(I,N),P.setState({isRenderAriaLiveMessage:!0}),P.props.adjustDateOnChange&&(P.props.onSelect(N),null==(M=(D=P.props).setOpen)||M.call(D,!0)),P.props.setPreSelection&&P.props.setPreSelection(N)},P.getEnabledPreSelectionDateForMonth=function(N){if(!iS(N,P.props))return N;for(var I=ie(N),T=rB(is(N),I),D=null,M=0;M<=T;M++){var R=tv(I,M);if(!iS(R,P.props)){D=R;break}}return D},P.handleMonthChange=function(N){var I,T,D,M=null!=(I=P.getEnabledPreSelectionDateForMonth(N))?I:N;P.handleCustomMonthChange(M),P.props.adjustDateOnChange&&(P.props.onSelect(M),null==(D=(T=P.props).setOpen)||D.call(T,!0)),P.props.setPreSelection&&P.props.setPreSelection(M)},P.handleCustomMonthChange=function(N){var I,T;null==(T=(I=P.props).onMonthChange)||T.call(I,N),P.setState({isRenderAriaLiveMessage:!0})},P.handleMonthYearChange=function(N){P.handleYearChange(N),P.handleMonthChange(N)},P.changeYear=function(N){P.setState(function(I){return{date:rF(I.date,Number(N))}},function(){return P.handleYearChange(P.state.date)})},P.changeMonth=function(N){P.setState(function(I){return{date:rl(I.date,Number(N))}},function(){var N,I;P.handleMonthChange(P.state.date),null==(I=(N=P.props).onMonthSelectedInChange)||I.call(N,0)})},P.changeMonthYear=function(N){P.setState(function(I){return{date:rF(rl(I.date,rd(N)),ru(N))}},function(){return P.handleMonthYearChange(P.state.date)})},P.header=function(N,I){if(void 0===N&&(N=P.state.date),void 0===I&&(I=0),!aZ(N))return[];var T=P.props.disabled,D=a9(N,P.props.locale,P.props.calendarStartDay),M=[];return P.props.showWeekNumbers&&M.push(H.createElement("div",{key:"W",className:"react-datepicker__day-name ".concat(T?"react-datepicker__day-name--disabled":""),role:"columnheader"},H.createElement("span",{className:"react-datepicker__sr-only"},"Week number"),H.createElement("span",{"aria-hidden":"true"},P.props.weekLabel||"#"))),M.concat([0,1,2,3,4,5,6].map(function(N){var M=tv(D,N),R=P.formatWeekday(M,P.props.locale),L=a0(M,"EEEE",P.props.locale),$=P.props.weekDayClassName?P.props.weekDayClassName(M):void 0;if(P.props.renderCustomDayName){var F=P.props.renderCustomDayName({day:M,shortName:R,fullName:L,locale:P.props.locale,customDayNameCount:I});return H.createElement("div",{key:N,role:"columnheader",className:(0,W.$)("react-datepicker__day-name",$,T?"react-datepicker__day-name--disabled":"")},F)}return H.createElement("div",{key:N,role:"columnheader",className:(0,W.$)("react-datepicker__day-name",$,T?"react-datepicker__day-name--disabled":"")},H.createElement("span",{className:"react-datepicker__sr-only"},L),H.createElement("span",{"aria-hidden":"true"},R))}))},P.formatWeekday=function(N,I){return P.props.formatWeekDay?ib(N,P.props.formatWeekDay,I):P.props.useWeekdaysShort?iw(N,I):iv(N,I)},P.decreaseYear=function(){P.setState(function(N){var T;return{date:r_(N.date,P.props.showYearPicker?null!=(T=P.props.yearItemNumber)?T:I.defaultProps.yearItemNumber:1)}},function(){return P.handleYearChange(P.state.date)})},P.clearSelectingDate=function(){P.setState({selectingDate:void 0})},P.renderPreviousButton=function(){if(!P.props.renderCustomHeader){var N,T,D,M,R=null!=(N=P.props.monthsShown)?N:I.defaultProps.monthsShown,L=P.props.showPreviousMonths?R-1:0,$=null!=(T=P.props.monthSelectedIn)?T:L,F=rv(P.state.date,$);switch(!0){case P.props.disabled:M=!0;break;case P.props.showMonthYearPicker:M=iU(P.state.date,P.props);break;case P.props.showYearPicker:M=iH(P.state.date,P.props);break;case P.props.showQuarterYearPicker:M=iF(P.state.date,P.props);break;default:M=iL(F,P.props)}if(((null!=(D=P.props.forceShowMonthNavigation)?D:I.defaultProps.forceShowMonthNavigation)||P.props.showDisabledMonthNavigation||!M)&&!P.props.showTimeSelectOnly){var B=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"],U=["react-datepicker__navigation","react-datepicker__navigation--previous"],z=P.decreaseMonth;(P.props.showMonthYearPicker||P.props.showQuarterYearPicker||P.props.showYearPicker)&&(z=P.decreaseYear),M&&P.props.showDisabledMonthNavigation&&(U.push("react-datepicker__navigation--previous--disabled"),z=void 0);var W=P.props.showMonthYearPicker||P.props.showQuarterYearPicker||P.props.showYearPicker,q=P.props,G=q.previousMonthButtonLabel,K=void 0===G?I.defaultProps.previousMonthButtonLabel:G,V=q.previousYearButtonLabel,Y=void 0===V?I.defaultProps.previousYearButtonLabel:V,J=P.props,Q=J.previousMonthAriaLabel,Z=void 0===Q?"string"==typeof K?K:"Previous Month":Q,X=J.previousYearAriaLabel,ee=void 0===X?"string"==typeof Y?Y:"Previous Year":X;return H.createElement("button",{type:"button",className:U.join(" "),onClick:z,onKeyDown:P.props.handleOnKeyDown,"aria-label":W?ee:Z},H.createElement("span",{className:B.join(" ")},W?Y:K))}}},P.increaseYear=function(){P.setState(function(N){var T;return{date:rS(N.date,P.props.showYearPicker?null!=(T=P.props.yearItemNumber)?T:I.defaultProps.yearItemNumber:1)}},function(){return P.handleYearChange(P.state.date)})},P.renderNextButton=function(){if(!P.props.renderCustomHeader){switch(!0){case P.props.disabled:T=!0;break;case P.props.showMonthYearPicker:T=iz(P.state.date,P.props);break;case P.props.showYearPicker:T=iW(P.state.date,P.props);break;case P.props.showQuarterYearPicker:T=iB(P.state.date,P.props);break;default:T=i$(P.state.date,P.props)}if(((null!=(N=P.props.forceShowMonthNavigation)?N:I.defaultProps.forceShowMonthNavigation)||P.props.showDisabledMonthNavigation||!T)&&!P.props.showTimeSelectOnly){var N,T,D=["react-datepicker__navigation","react-datepicker__navigation--next"],M=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"];P.props.showTimeSelect&&D.push("react-datepicker__navigation--next--with-time"),P.props.todayButton&&D.push("react-datepicker__navigation--next--with-today-button");var R=P.increaseMonth;(P.props.showMonthYearPicker||P.props.showQuarterYearPicker||P.props.showYearPicker)&&(R=P.increaseYear),T&&P.props.showDisabledMonthNavigation&&(D.push("react-datepicker__navigation--next--disabled"),R=void 0);var L=P.props.showMonthYearPicker||P.props.showQuarterYearPicker||P.props.showYearPicker,$=P.props,F=$.nextMonthButtonLabel,B=void 0===F?I.defaultProps.nextMonthButtonLabel:F,U=$.nextYearButtonLabel,z
962=void 0===U?I.defaultProps.nextYearButtonLabel:U,W=P.props,q=W.nextMonthAriaLabel,G=void 0===q?"string"==typeof B?B:"Next Month":q,K=W.nextYearAriaLabel,V=void 0===K?"string"==typeof z?z:"Next Year":K;return H.createElement("button",{type:"button",className:D.join(" "),onClick:R,onKeyDown:P.props.handleOnKeyDown,"aria-label":L?V:G},H.createElement("span",{className:M.join(" ")},L?z:B))}}},P.renderCurrentMonth=function(N){void 0===N&&(N=P.state.date);var I=["react-datepicker__current-month"];return P.props.showYearDropdown&&I.push("react-datepicker__current-month--hasYearDropdown"),P.props.showMonthDropdown&&I.push("react-datepicker__current-month--hasMonthDropdown"),P.props.showMonthYearDropdown&&I.push("react-datepicker__current-month--hasMonthYearDropdown"),H.createElement("h2",{className:I.join(" ")},aZ(N)?a0(N,P.props.dateFormat,P.props.locale):"")},P.renderYearDropdown=function(N){if(void 0===N&&(N=!1),P.props.showYearDropdown&&!N)return H.createElement(ov,aL({},I.defaultProps,P.props,{date:P.state.date,onChange:P.changeYear,year:ru(P.state.date)}))},P.renderMonthDropdown=function(N){if(void 0===N&&(N=!1),P.props.showMonthDropdown&&!N)return H.createElement(ol,aL({},I.defaultProps,P.props,{month:rd(P.state.date),onChange:P.changeMonth}))},P.renderMonthYearDropdown=function(N){if(void 0===N&&(N=!1),P.props.showMonthYearDropdown&&!N)return H.createElement(oh,aL({},I.defaultProps,P.props,{date:P.state.date,onChange:P.changeMonthYear}))},P.handleTodayButtonClick=function(N){P.props.onSelect(ia(),N),P.props.setPreSelection&&P.props.setPreSelection(ia())},P.renderTodayButton=function(){if(P.props.todayButton&&!P.props.showTimeSelectOnly)return H.createElement("div",{className:"react-datepicker__today-button",onClick:P.handleTodayButtonClick},P.props.todayButton)},P.renderDayNamesHeader=function(N,I){return void 0===I&&(I=0),H.createElement("div",{className:"react-datepicker__day-names",role:"row"},P.header(N,I))},P.renderDefaultHeader=function(N){var I=N.monthDate,T=N.i,D=H.createElement("div",{className:(0,W.$)("react-datepicker__header",{"react-datepicker__header--has-time-select":P.props.showTimeSelect,"react-datepicker__header--middle":"middle"===P.props.monthHeaderPosition,"react-datepicker__header--bottom":"bottom"===P.props.monthHeaderPosition})},P.renderCurrentMonth(I),H.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(P.props.dropdownMode),onFocus:P.handleDropdownFocus},P.renderMonthDropdown(0!==T),P.renderMonthYearDropdown(0!==T),P.renderYearDropdown(0!==T)));return"top"===P.props.monthHeaderPosition?D:H.createElement("div",{className:"react-datepicker__header-wrapper"},P.renderPreviousButton()||null,P.renderNextButton()||null,D)},P.renderCustomHeader=function(N){var I,T,D,M=N.monthDate,R=N.i;if(P.props.showTimeSelect&&!P.state.monthContainer||P.props.showTimeSelectOnly)return null;var L=P.props,$=L.showYearPicker,F=L.yearItemNumber;if($){var B=iZ(M,F);D={startYear:B.startPeriod,endYear:B.endPeriod}}var U=iL(P.state.date,P.props),z=i$(P.state.date,P.props),W=iU(P.state.date,P.props),q=iz(P.state.date,P.props);return H.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:P.props.onDropdownFocus},null==(T=(I=P.props).renderCustomHeader)?void 0:T.call(I,aL(aL(aL({},P.state),$&&{visibleYearsRange:D}),{customHeaderCount:R,monthDate:M,changeMonth:P.changeMonth,changeYear:P.changeYear,decreaseMonth:P.decreaseMonth,increaseMonth:P.increaseMonth,decreaseYear:P.decreaseYear,increaseYear:P.increaseYear,prevMonthButtonDisabled:U,nextMonthButtonDisabled:z,prevYearButtonDisabled:W,nextYearButtonDisabled:q})))},P.renderYearHeader=function(N){var T=N.monthDate,D=P.props,M=D.showYearPicker,R=D.yearItemNumber,L=iZ(T,void 0===R?I.defaultProps.yearItemNumber:R),$=L.startPeriod,F=L.endPeriod;return H.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},M?"".concat($," - ").concat(F):ru(T))},P.renderHeader=function(N){var I=N.monthDate,T=N.i,D={monthDate:I,i:void 0===T?0:T};switch(!0){case void 0!==P.props.renderCustomHeader:return P.renderCustomHeader(
962D);case P.props.showMonthYearPicker||P.props.showQuarterYearPicker||P.props.showYearPicker:return P.renderYearHeader(D);default:return P.renderDefaultHeader(D)}},P.renderMonths=function(){if(!P.props.showTimeSelectOnly&&!P.props.showYearPicker){for(var N,T,D=[],M=null!=(N=P.props.monthsShown)?N:I.defaultProps.monthsShown,R=P.props.showPreviousMonths?M-1:0,L=P.props.showMonthYearPicker||P.props.showQuarterYearPicker?rS(P.state.date,R):rv(P.state.date,R),$=null!=(T=P.props.monthSelectedIn)?T:R,F=0;F<M;++F){var B=F-$+R,U=P.props.showMonthYearPicker||P.props.showQuarterYearPicker?rS(L,B):rb(L,B),z="month-".concat(F),W=F<M-1,q=F>0;D.push(H.createElement("div",{key:z,ref:function(N){P.monthContainer=null!=N?N:void 0},className:"react-datepicker__month-container"},"top"===P.props.monthHeaderPosition&&P.renderHeader({monthDate:U,i:F}),H.createElement(oo,aL({},I.defaultProps,P.props,{containerRef:P.containerRef,ariaLabelPrefix:P.props.monthAriaLabelPrefix,day:U,onDayClick:P.handleDayClick,handleOnKeyDown:P.props.handleOnDayKeyDown,handleOnMonthKeyDown:P.props.handleOnKeyDown,onDayMouseEnter:P.handleDayMouseEnter,onMouseLeave:P.handleMonthMouseLeave,orderInDisplay:F,selectingDate:P.state.selectingDate,monthShowsDuplicateDaysEnd:W,monthShowsDuplicateDaysStart:q,dayNamesHeader:P.renderDayNamesHeader(U,F),monthHeader:"middle"===P.props.monthHeaderPosition?P.renderHeader({monthDate:U,i:F}):void 0,monthFooter:"bottom"===P.props.monthHeaderPosition?P.renderHeader({monthDate:U,i:F}):void 0}))))}return D}},P.renderYears=function(){if(!P.props.showTimeSelectOnly&&P.props.showYearPicker)return H.createElement("div",{className:"react-datepicker__year--container"},P.renderHeader({monthDate:P.state.date}),H.createElement(og,aL({},I.defaultProps,P.props,{selectingDate:P.state.selectingDate,date:P.state.date,onDayClick:P.handleDayClick,clearSelectingDate:P.clearSelectingDate,onYearMouseEnter:P.handleYearMouseEnter,onYearMouseLeave:P.handleYearMouseLeave})))},P.renderTimeSection=function(){if(P.props.showTimeSelect&&(P.state.monthContainer||P.props.showTimeSelectOnly))return H.createElement(op,aL({},I.defaultProps,P.props,{onChange:P.props.onTimeChange,format:P.props.timeFormat,intervals:P.props.timeIntervals,monthRef:P.state.monthContainer}))},P.renderInputTimeSection=function(){if(P.props.showTimeInput){if(P.props.selectsRange){var N,T,D=P.props,M=D.startDate,R=D.endDate,L=M?new Date(M):void 0,$=L&&aZ(L)&&M?"".concat(iQ(L.getHours()),":").concat(iQ(L.getMinutes())):"",F=R?new Date(R):void 0,B=F&&aZ(F)&&R?"".concat(iQ(F.getHours()),":").concat(iQ(F.getMinutes())):"";return H.createElement(H.Fragment,null,H.createElement(i5,aL({},I.defaultProps,P.props,{date:L,timeString:$,onChange:function(N){var I,T;null==(T=(I=P.props).onTimeChange)||T.call(I,N,"start")},timeInputLabel:(null!=(N=P.props.timeInputLabel)?N:"Time")+" (Start)"})),H.createElement(i5,aL({},I.defaultProps,P.props,{date:F,timeString:B,onChange:function(N){var I,T;null==(T=(I=P.props).onTimeChange)||T.call(I,N,"end")},timeInputLabel:(null!=(T=P.props.timeInputLabel)?T:"Time")+" (End)"})))}var U=P.props.selected?new Date(P.props.selected):void 0,z=U&&aZ(U)&&!!P.props.selected,W=z?"".concat(iQ(U.getHours()),":").concat(iQ(U.getMinutes())):"";return H.createElement(i5,aL({},I.defaultProps,P.props,{date:U,timeString:W,onChange:function(N){var I,T;null==(T=(I=P.props).onTimeChange)||T.call(I,N)}}))}},P.renderAriaLiveRegion=function(){if(!aZ(P.state.date))return H.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"});var N,T,D=iZ(P.state.date,null!=(N=P.props.yearItemNumber)?N:I.defaultProps.yearItemNumber),M=D.startPeriod,R=D.endPeriod;return T=P.props.showYearPicker?"".concat(M," - ").concat(R):P.props.showMonthYearPicker||P.props.showQuarterYearPicker?ru(P.state.date):"".concat(ix(rd(P.state.date),P.props.locale)," ").concat(ru(P.state.date)),H.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},P.state.isRenderAriaLiveMessage&&T)},P.renderChildren=function(){if(P.props.children)return H.createElement("div",{className:"react-datepicker__children-container"},P.props.children)}
962,P.containerRef=(0,H.createRef)(),P.state={date:P.getDateInView(),selectingDate:void 0,monthContainer:void 0,isRenderAriaLiveMessage:!1},P}return aR(I,N),Object.defineProperty(I,"defaultProps",{get:function(){return{monthsShown:1,forceShowMonthNavigation:!1,outsideClickIgnoreClass:ox,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",yearItemNumber:aV,monthHeaderPosition:"top"}},enumerable:!1,configurable:!0}),I.prototype.componentDidMount=function(){var N=this;this.props.showTimeSelect&&(this.assignMonthContainer=void N.setState({monthContainer:N.monthContainer}))},I.prototype.componentDidUpdate=function(N){var I=this;if(this.props.preSelection&&aZ(this.props.preSelection)&&(!id(this.props.preSelection,N.preSelection)||this.props.monthSelectedIn!==N.monthSelectedIn)){var T=!ic(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return T&&I.handleCustomMonthChange(I.state.date)})}else this.props.openToDate&&!id(this.props.openToDate,N.openToDate)&&this.setState({date:this.props.openToDate})},I.prototype.render=function(){var N=this.props.container||aF;return H.createElement(aU,{onClickOutside:this.handleClickOutside,style:{display:"contents"},ignoreClass:this.props.outsideClickIgnoreClass},H.createElement("div",{style:{display:"contents"},ref:this.containerRef},H.createElement(N,{className:(0,W.$)("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showTime:this.props.showTimeSelect||this.props.showTimeInput,showTimeSelectOnly:this.props.showTimeSelectOnly,inline:this.props.inline},this.renderAriaLiveRegion(),"top"===this.props.monthHeaderPosition&&this.renderPreviousButton(),"top"===this.props.monthHeaderPosition&&this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren())))},I}(H.Component),oS=function(N){var I=N.icon,T=N.className,P=void 0===T?"":T,D=N.onClick,M="react-datepicker__calendar-icon";if("string"==typeof I)return H.createElement("i",{className:"".concat(M," ").concat(I," ").concat(P),"aria-hidden":"true",onClick:D});if(H.isValidElement(I)){var R=I;return H.cloneElement(R,{className:"".concat(R.props.className||""," ").concat(M," ").concat(P),onClick:function(N){"function"==typeof R.props.onClick&&R.props.onClick(N),"function"==typeof D&&D(N)}})}return H.createElement("svg",{className:"".concat(M," ").concat(P),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:D},H.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},o_=function(N){function I(I){var T=N.call(this,I)||this;return T.portalRoot=null,T.el=document.createElement("div"),T}return aR(I,N),I.prototype.componentDidMount=function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)},I.prototype.componentWillUnmount=function(){this.portalRoot&&this.portalRoot.removeChild(this.el)},I.prototype.render=function(){return nl.createPortal(this.props.children,this.el)},I}(H.Component),ok="[tabindex], a, button, input, select, textarea",oC=function(N){return N instanceof HTMLAnchorElement?-1!==N.tabIndex:!N.disabled&&-1!==N.tabIndex},oj=function(N){function I(I){var T=N.call(this,I)||this;return T.getTabChildren=function(){var N;return Array.prototype.slice.call(null==(N=T.tabLoopRef.current)?void 0:N.querySelectorAll(ok),1,-1).filter(oC)},T.handleFocusStart=function(){var N=T.getTabChildren();N&&N.length>1&&N[N.length-1].focus()},T.handleFocusEnd=function(){var N=T.getTabChildren();N&&N.length>1&&N[0].focus()},T.tabLoopRef=(0,H.createRef)(),T}return aR(I,N),I.prototype.render=function(){var N;return(null!=(N=this.props.enableTabLoop)?N:I.defaultProps.enableTabLoop)?H.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},H.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:0,onFocus:this.handleFocusStart}),this.props.children,H.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:0,onFocus:this.handleFocusEnd})):this.props.children},I.defaultProps={enableTabLoop:!0},I}(H.Component),oO=function(N){function I(I){var T,P="boolean"!=typeof I.hidePopper||I.hidePopper,D=(0,H.useRef)(null),M=aD(aL({open:!P,whileElementsMounted:ai,placement:I.popperPlacement,middleware:a$([av({padding:15}),ab(10),aw({element:D})],null!=(T=I.popperModifiers)?T:[],!0)},I.popperProps)),R=aL(aL({},I),{hidePopper:P,popperProps:aL(aL({},M),{arrowRef:D})});return H.createElement(N,aL({},R))}return I.displayName="withFloating(".concat(N.displayName||N.name||"Component",")"),I}(function(N){var I=N.className,T=N.wrapperClassName,P=N.hidePopper,D=void 0===P||P,M=N.popperComponent,R=N.targetComponent,L=N.enableTabLoop,$=N.popperOnKeyDown,F=N.portalId,B=N.portalHost,U=N.popperProps,z=N.showArrow,q=N.popperTargetRef,G=N.monthHeaderPosition;(0,H.useEffect)(function(){(null==q?void 0:q.current)&&U.refs.setPositionReference(q.current)},[q,U.refs]);var K=void 0;if(!D){var V=(0,W.$)("react-datepicker-popper",!z&&"react-datepicker-popper-offset","middle"===G&&"react-datepicker-popper--header-middle","bottom"===G&&"react-datepicker-popper--header-bottom",I);K=H.createElement(oj,{enableTabLoop:L},H.createElement("div",{ref:U.refs.setFloating,style:U.floatingStyles,className:V,"data-placement":U.placement,onKeyDown:$},M,z&&H.createElement(aC,{ref:U.arrowRef,context:U.context,fill:"currentColor",strokeWidth:1,height:8,width:16,style:{transform:"translateY(-1px)"},className:"react-datepicker__triangle"})))}N.popperContainer&&(K=(0,H.createElement)(N.popperContainer,{},K)),F&&!D&&(K=H.createElement(o_,{portalId:F,portalHost:B},K));var Y=(0,W.$)("react-datepicker-wrapper",T);return H.createElement(H.Fragment,null,H.createElement("div",{ref:U.refs.setReference,className:Y},R),K)});function oN(N,I){return N&&I?rd(N)!==rd(I)||ru(N)!==ru(I):N!==I}var oI="Date input not valid.",oT=function(N){function I(T){var P=N.call(this,T)||this;
962return P.calendar=null,P.input=null,P.getPreSelection=function(){var N=P.props.timeZone,I=P.props.openToDate?P.props.openToDate:P.props.selectsEnd&&P.props.startDate?P.props.startDate:P.props.selectsStart&&P.props.endDate?P.props.endDate:aY();return N?aq(I,N):I},P.modifyHolidays=function(){var N;return null==(N=P.props.holidays)?void 0:N.reduce(function(N,I){var T=aJ(I.date,"yyyy-MM-dd",void 0,!1);return T?a$(a$([],N,!0),[aL(aL({},I),{date:T})],!1):N},[])},P.calcInitialState=function(){var N=P.props.timeZone,I=P.getPreSelection(),T=iq(P.props),D=iG(P.props),M=T&&rD(I,a7(T))?T:D&&(0,rP.d)(I,ii(D))?D:I,R=P.props.selectsRange?P.props.startDate:P.props.selected;return R&&N&&(R=aq(R,N)),{open:P.props.startOpen||!1,preventFocus:!1,inputValue:null,preSelection:null!=R?R:M,highlightDates:iK(P.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1,wasHidden:!1}},P.getInputValue=function(){var N,T=P.props,D=T.locale,M=T.startDate,R=T.endDate,L=T.rangeSeparator,$=T.selected,F=T.selectedDates,B=T.selectsMultiple,U=T.selectsRange,H=T.formatMultipleDates,z=T.value,W=null!=(N=P.props.dateFormat)?N:I.defaultProps.dateFormat,q=P.state.inputValue;return"string"==typeof z?z:"string"==typeof q?q:U?a3(M,R,{dateFormat:W,locale:D,rangeSeparator:L}):B?H?H(null!=F?F:[],function(N){return a1(N,{dateFormat:W,locale:D})}):a4(null!=F?F:[],{dateFormat:W,locale:D}):a1($,{dateFormat:W,locale:D})},P.resetHiddenStatus=function(){P.setState(aL(aL({},P.state),{wasHidden:!1}))},P.setHiddenStatus=function(){P.setState(aL(aL({},P.state),{wasHidden:!0}))},P.setHiddenStateOnVisibilityHidden=function(){"hidden"===document.visibilityState&&P.setHiddenStatus()},P.clearPreventFocusTimeout=function(){P.preventFocusTimeout&&clearTimeout(P.preventFocusTimeout)},P.setFocus=function(){var N,I;null==(I=null==(N=P.input)?void 0:N.focus)||I.call(N,{preventScroll:!0})},P.setBlur=function(){var N,I;null==(I=null==(N=P.input)?void 0:N.blur)||I.call(N),P.cancelFocusInput()},P.deferBlur=function(){requestAnimationFrame(function(){P.setBlur()})},P.setOpen=function(N,I){void 0===I&&(I=!1),P.setState({open:N,preSelection:N&&P.state.open?P.state.preSelection:P.calcInitialState().preSelection,lastPreSelectChange:oD},function(){N||P.setState(function(N){return{focused:!!I&&N.focused}},function(){I||P.deferBlur(),P.setState({inputValue:null})})})},P.inputOk=function(){return(0,tZ.$)(P.state.preSelection)},P.isCalendarOpen=function(){return void 0===P.props.open?P.state.open&&!P.props.disabled&&!P.props.readOnly:P.props.open},P.handleFocus=function(N){var I,T,D=P.state.wasHidden,M=!D||P.state.open;D&&P.resetHiddenStatus(),!P.state.preventFocus&&(null==(T=(I=P.props).onFocus)||T.call(I,N),!M||P.props.preventOpenOnFocus||P.props.readOnly||P.setOpen(!0)),P.setState({focused:!0})},P.sendFocusBackToInput=function(){P.preventFocusTimeout&&P.clearPreventFocusTimeout(),P.setState({preventFocus:!0},function(){P.preventFocusTimeout=setTimeout(function(){P.setFocus(),P.setState({preventFocus:!1})})})}
962,P.cancelFocusInput=function(){clearTimeout(P.inputFocusTimeout),P.inputFocusTimeout=void 0},P.deferFocusInput=function(){P.cancelFocusInput(),P.inputFocusTimeout=setTimeout(function(){return P.setFocus()},1)},P.handleDropdownFocus=function(){P.cancelFocusInput()},P.resetInputValue=function(){P.setState(aL(aL({},P.state),{inputValue:null}))},P.handleBlur=function(N){(!P.state.open||P.props.withPortal||P.props.showTimeInput)&&(null==(T=(I=P.props).onBlur)||T.call(I,N));var I,T,D=P.state.inputValue;"string"==typeof D&&D.length>0&&!/[a-zA-Z0-9]/.test(D)&&P.props.selected&&P.setSelected(null,void 0,!0),P.resetInputValue(),P.state.open&&!1===P.props.open&&P.setOpen(!1),P.setState({focused:!1})},P.handleCalendarClickOutside=function(N){var I,T;null==(T=(I=P.props).onClickOutside)||T.call(I,N),P.props.inline||N.defaultPrevented||P.setOpen(!1),P.props.withPortal&&N.preventDefault()},P.handleChange=function(){for(var N,T,D,M,R,L,$,F,B=[],U=0;U<arguments.length;U++)B[U]=arguments[U];var H=B[0];if(!(P.props.onChangeRaw&&(P.props.onChangeRaw.apply(P,B),!H||"function"!=typeof H.isDefaultPrevented||H.isDefaultPrevented()))){P.setState({inputValue:(null==H?void 0:H.target)instanceof HTMLInputElement?H.target.value:null,lastPreSelectChange:oP});var z=P.props,W=z.selectsRange,q=z.startDate,G=z.endDate,K=null!=(N=P.props.dateFormat)?N:I.defaultProps.dateFormat,V=null!=(T=P.props.strictParsing)?T:I.defaultProps.strictParsing,Y=(null==H?void 0:H.target)instanceof HTMLInputElement?H.target.value:"";if(W){var J=P.props.rangeSeparator,Q=J.trim(),Z=Y.split(K.includes(Q)?J:Q,2).map(function(N){return N.trim()}),X=Z[0],ee=Z[1],et=aJ(null!=X?X:"",K,P.props.locale,V),er=et?aJ(null!=ee?ee:"",K,P.props.locale,V):null,en=(null==(D=aX(q))?void 0:D.getTime())!==(null==et?void 0:et.getTime()),ea=(null==(M=aX(G))?void 0:M.getTime())!==(null==er?void 0:er.getTime());if(!en&&!ea||et&&iS(et,P.props)||er&&iS(er,P.props))return;et&&P.setState({preSelection:et}),null==(L=(R=P.props).onChange)||L.call(R,[et,er],H)}else{var ei=aJ(Y,K,P.props.locale,V,null!=($=P.props.selected)?$:void 0);if(ei||!Y)P.setSelected(ei,H,!0);else if(!P.props.inline){var eo=aQ(Y,null!=(F=P.state.preSelection)?F:void 0);!eo||P.props.minDate&&rD(eo,P.props.minDate)||P.props.maxDate&&(0,rP.d)(eo,P.props.maxDate)||P.setState({preSelection:eo})}}}},P.handleSelect=function(N,T,D){if(!P.props.readOnly){var M,R=P.props,L=R.selectsRange,$=R.startDate,F=R.endDate,B=R.locale,U=R.swapRange,H=null!=(M=P.props.dateFormat)?M:I.defaultProps.dateFormat,z=!L||$&&!F&&(U||!i3(N,$));if(P.props.shouldCloseOnSelect&&!P.props.showTimeSelect&&z&&P.sendFocusBackToInput(),P.props.onChangeRaw){var W=a1(N,{dateFormat:H,locale:B});P.props.onChangeRaw(T,{date:N,formattedDate:W})}P.setSelected(N,T,!1,D),P.props.showDateSelect&&P.setState({isRenderAriaLiveMessage:!0}),!P.props.shouldCloseOnSelect||P.props.showTimeSelect?P.setPreSelection(N):z&&P.setOpen(!1)}},P.setSelected=function(N,I,T,D){var M,R,L=P.props.timeZone,$=N;if($&&L&&($=aG($,L)),P.props.showYearPicker){if(null!==$&&iI(ru($),P.props))return}else if(P.props.showMonthYearPicker){if(null!==$&&ik($,P.props))return}else if(null!==$&&iS($,P.props))return;var F=P.props,B=F.onChange,U=F.selectsRange,H=F.startDate,z=F.endDate,W=F.selectsMultiple,q=F.selectedDates,G=F.minTime,K=F.swapRange;if(!ih(P.props.selected,$)||P.props.allowSameDay||U||W)if(null!==$&&(!P.props.selected||T&&(P.props.showTimeSelect||P.props.showTimeSelectOnly||P.props.showTimeInput)||($=a5($,{hour:rm(P.props.selected),minute:rg(P.props.selected),second:ry(P.props.selected)})),!T&&(P.props.showTimeSelect||P.props.showTimeSelectOnly)&&G&&($=a5($,{hour:G.getHours(),minute:G.getMinutes(),second:G.getSeconds()})),P.props.inline||P.setState({preSelection:$}),P.props.focusSelectedMonth||P.setState({monthSelectedIn:D})),U){var V=B,Y=!H&&!z,J=H&&!z,Q=!H&&!!z,Z=H&&z;Y?null==V||V([$,null],I):J?null===$?null==V||V([null,null],I):i3($,H)?K?null==V||V([$,H],I):null==V||V([$,null],I):null==V||V([H,$],I):Q&&($&&i3($,z)?null==V||V([$,z],I):null==V||V([$,null],I)),Z&&(null==V||V([$,null],I))}else if(W){var X=B;if(null!==$)if(null==q?void 0:q.length)if(q.some(function(N){return id(N,$)})){var ee=q.filter(function(N){return!id(N,$)});null==X||X(ee,I)}else null==X||X(a$(a$([],q,!0),[$],!1),I);else null==X||X([$],I)}else null==B||B($,I);T||(null==(R=(M=P.props).onSelect)||R.call(M,$,I),P.setState({inputValue:null}))},P.setPreSelection=function(N){if(!P.props.readOnly){var I=(0,tZ.$)(P.props.minDate),T=(0,tZ.$)(P.props.maxDate),D=!0;if(N){var M=a7(N);if(I&&T)D=ip(N,P.props.minDate,P.props.maxDate);else if(I){var R=a7(P.props.minDate);D=(0,rP.d)(N,R)||ih(M,R)}else if(T){var L=ii(P.props.maxDate);D=rD(N,L)||ih(M,L)}}D&&P.setState({preSelection:N})}},P.toggleCalendar=function(){P.setOpen(!P.state.open)},P.handleTimeChange=function(N,I){if(!P.props.selectsMultiple){var T,D,M=P.props,R=M.selectsRange,L=M.startDate,$=M.endDate,F=M.onChange,B=M.timeZone;if(R){var U=F;
962if("start"===I){if(L){var H=a5(L,{hour:rm(N),minute:rg(N)});P.setState({preSelection:H}),B&&(H=aG(H,B)),null==U||U([H,$?B?aG($,B):$:null],void 0)}}else if("end"===I){if($){var z=a5($,{hour:rm(N),minute:rg(N)});P.setState({preSelection:z}),B&&(z=aG(z,B)),null==U||U([L?B?aG(L,B):L:null,z],void 0)}}else if(L&&!$){var H=a5(L,{hour:rm(N),minute:rg(N)});P.setState({preSelection:H}),B&&(H=aG(H,B)),null==U||U([H,null],void 0)}else if(L&&$){var z=a5($,{hour:rm(N),minute:rg(N)});P.setState({preSelection:z}),B&&(z=aG(z,B)),null==U||U([B?aG(L,B):L,z],void 0)}else{var W=a5(P.getPreSelection(),{hour:rm(N),minute:rg(N)});P.setState({preSelection:W})}}else{var q=P.props.selected?P.props.selected:P.getPreSelection(),W=P.props.selected?N:a5(q,{hour:rm(N),minute:rg(N)});P.setState({preSelection:W}),W&&B&&(W=aG(W,B)),null==(D=(T=P.props).onChange)||D.call(T,W)}P.props.shouldCloseOnSelect&&!P.props.showTimeInput&&(P.sendFocusBackToInput(),P.setOpen(!1)),P.props.showTimeInput&&P.setOpen(!0),(P.props.showTimeSelectOnly||P.props.showTimeSelect)&&P.setState({isRenderAriaLiveMessage:!0}),P.setState({inputValue:null})}},P.onInputClick=function(){var N,I;P.props.disabled||P.props.readOnly||P.setOpen(!0),null==(I=(N=P.props).onInputClick)||I.call(N)},P.handleTimeOnlyArrowKey=function(N){var T,D,R,L,$,F=aX(P.props.selected)||P.state.preSelection||aY(),B=null!=(T=P.props.timeIntervals)?T:30,U=null!=(D=P.props.dateFormat)?D:I.defaultProps.dateFormat,H=Array.isArray(U)?U[0]:U,z=a7(F),W=60*rm(F)+rg(F),q=1440-B;if(N===M.ArrowUp){var G=Math.max(0,W-B);$=rI(z,G)}else{var G=Math.min(q,W+B);$=rI(z,G)}var K=a0($,H||I.defaultProps.dateFormat,P.props.locale);if(P.setState({preSelection:$,inputValue:K}),!P.props.selectsRange&&!P.props.selectsMultiple){var V=P.props.selected?P.props.selected:P.getPreSelection(),Y=P.props.selected?$:a5(V,{hour:rm($),minute:rg($)});null==(L=(R=P.props).onChange)||L.call(R,Y),(P.props.showTimeSelectOnly||P.props.showTimeSelect)&&P.setState({isRenderAriaLiveMessage:!0}),requestAnimationFrame(function(){P.scrollToTimeOption($)})}},P.handleTimeOnlyEnterKey=function(N){var T,D,M,R,L=N.target.value,$=null!=(T=P.props.dateFormat)?T:I.defaultProps.dateFormat,F=P.props.timeFormat||"p",B=P.state.preSelection||aX(P.props.selected)||aY(),U=aJ(L,$,P.props.locale,null!=(D=P.props.strictParsing)&&D,B),H=B;if(U&&aZ(U))H=U;else{var z=(null==(M=P.calendar)?void 0:M.containerRef.current)instanceof Element&&P.calendar.containerRef.current.querySelector(".react-datepicker__time-list-item[tabindex='0']");if(z instanceof HTMLElement){var W=null==(R=z.textContent)?void 0:R.trim();if(W){var q=aJ(W,F,P.props.locale,!1,B);q&&aZ(q)&&(H=q)}}}P.handleTimeChange(H),P.setOpen(!1),P.sendFocusBackToInput()},P.scrollToTimeOption=function(N){if(null==(I=P.calendar)?void 0:I.containerRef.current){for(var I,T,D=P.calendar.containerRef.current,M=Array.from(D.querySelectorAll(".react-datepicker__time-list-item")),R=null,L=1/0,$=P.props.timeFormat||"p",F=0,B=M;F<B.length;F++){var U=B[F],H=null==(T=U.textContent)?void 0:T.trim();if(H){var z=aJ(H,$,P.props.locale,!1,N);if(z&&aZ(z)){if(i1(z,N)){R=U;break}var W=Math.abs(z.getTime()-N.getTime());W<L&&(L=W,R=U)}}}R&&(M.forEach(function(N){N.setAttribute("tabindex","-1")}),R.setAttribute("tabindex","0"),R.scrollIntoView({behavior:"smooth",block:"center"}))}},P.onInputKeyDown=function(N){null==(T=(I=P.props).onKeyDown)||T.call(I,N);var I,T,D,R,L,$,F=N.key;if(!P.state.open&&!P.props.inline&&!P.props.preventOpenOnFocus){(F===M.ArrowDown||F===M.ArrowUp||F===M.Enter)&&(null==(D=P.onInputClick)||D.call(P));return}if(P.state.open&&P.props.showTimeSelectOnly){if(F===M.ArrowDown||F===M.ArrowUp){N.preventDefault(),P.handleTimeOnlyArrowKey(F);return}if(F===M.Enter){N.preventDefault(),P.handleTimeOnlyEnterKey(N);return}}if(P.state.open){if(F===M.ArrowDown||F===M.ArrowUp){N.preventDefault();var B=P.props.showTimeSelectOnly?".react-datepicker__time-list-item[tabindex='0']":P.props.showWeekPicker&&P.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':P.props.showFullMonthYearPicker||P.props.showMonthYearPicker?'.react-datepicker__month-text[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',U=(null==(R=P.calendar)?void 0:R.containerRef.current)instanceof Element&&P.calendar.containerRef.current.querySelector(B);U instanceof HTMLElement&&U.focus({preventScroll:!0});return}var H=aY(P.state.preSelection);F===M.Enter?(N.preventDefault(),N.target.blur(),P.inputOk()&&P.state.lastPreSelectChange===oD?(P.handleSelect(H,N),P.props.shouldCloseOnSelect||P.setPreSelection(H)):P.setOpen(!1)):F===M.Escape?(N.preventDefault(),N.target.blur(),P.sendFocusBackToInput(),P.setOpen(!1)):F===M.Tab&&P.setOpen(!1),P.inputOk()||null==($=(L=P.props).onInputError)||$.call(L,{code:1,msg:oI})}}
962,P.onPortalKeyDown=function(N){N.key===M.Escape&&(N.preventDefault(),P.setState({preventFocus:!0},function(){P.setOpen(!1),setTimeout(function(){P.setFocus(),P.setState({preventFocus:!1})})}))},P.onDayKeyDown=function(N){var I,T,D,R,L,$,F=P.props,B=F.minDate,U=F.maxDate,H=F.disabledKeyboardNavigation,z=F.showWeekPicker,W=F.shouldCloseOnSelect,q=F.locale,G=F.calendarStartDay,K=F.adjustDateOnChange,V=F.inline;if(null==(T=(I=P.props).onKeyDown)||T.call(I,N),!H){var Y=N.key,J=N.shiftKey,Q=aY(P.state.preSelection),Z=function(N,I){var T=I;switch(N){case M.ArrowRight:T=z?rL(I,1):tv(I,1);break;case M.ArrowLeft:T=z?rH(I,1):rz(I,1);break;case M.ArrowUp:T=rH(I,1);break;case M.ArrowDown:T=rL(I,1);break;case M.PageUp:T=J?r_(I,1):rv(I,1);break;case M.PageDown:T=J?rS(I,1):rb(I,1);break;case M.Home:T=a9(I,q,G);break;case M.End:T=io(I)}return T},X=function(N,I){for(var T=40,D=N,R=!1,L=0,$=Z(N,I);!R;){if(L>=T){$=I;break}B&&$<B&&(D=M.ArrowRight,$=iS(B,P.props)?Z(D,$):B),U&&$>U&&(D=M.ArrowLeft,$=iS(U,P.props)?Z(D,$):U),iS($,P.props)?((D===M.PageUp||D===M.Home)&&(D=M.ArrowRight),(D===M.PageDown||D===M.End)&&(D=M.ArrowLeft),$=Z(D,$)):R=!0,L++}return $};if(Y===M.Enter){N.preventDefault(),P.handleSelect(Q,N),W||P.setPreSelection(Q);return}if(Y===M.Escape){N.preventDefault(),P.setOpen(!1),P.inputOk()||null==(R=(D=P.props).onInputError)||R.call(D,{code:1,msg:oI});return}var ee=null;switch(Y){case M.ArrowLeft:case M.ArrowRight:case M.ArrowUp:case M.ArrowDown:case M.PageUp:case M.PageDown:case M.Home:case M.End:ee=X(Y,Q)}if(!ee){null==($=(L=P.props).onInputError)||$.call(L,{code:1,msg:oI});return}N.preventDefault(),P.setState({lastPreSelectChange:oD}),K&&P.setSelected(ee),P.setPreSelection(ee),V&&P.setState({shouldFocusDayInline:!0})}},P.onPopperKeyDown=function(N){N.key===M.Escape&&(N.preventDefault(),P.sendFocusBackToInput(),P.setOpen(!1))},P.onClearClick=function(N){N&&N.preventDefault&&N.preventDefault(),P.sendFocusBackToInput();var I=P.props,T=I.selectsRange,D=I.onChange;T?null==D||D([null,null],N):null==D||D(null,N),P.setState({inputValue:null})},P.clear=function(){P.onClearClick()},P.onScroll=function(N){"boolean"==typeof P.props.closeOnScroll&&P.props.closeOnScroll?(N.target===document||N.target===document.documentElement||N.target===document.body)&&P.setOpen(!1):"function"==typeof P.props.closeOnScroll&&P.props.closeOnScroll(N)&&P.setOpen(!1)},P.handleMonthSelectedInChange=function(N){P.setState({monthSelectedIn:N})},P.renderCalendar=function(){var N,T;return P.props.inline||P.isCalendarOpen()?H.createElement(oE,aL({showMonthYearDropdown:void 0,ref:function(N){P.calendar=N}},P.props,P.state,{setOpen:P.setOpen,dateFormat:null!=(N=P.props.dateFormatCalendar)?N:I.defaultProps.dateFormatCalendar,onSelect:P.handleSelect,onClickOutside:P.handleCalendarClickOutside,holidays:iY(P.modifyHolidays()),outsideClickIgnoreClass:P.props.outsideClickIgnoreClass,onDropdownFocus:P.handleDropdownFocus,onTimeChange:P.handleTimeChange,className:P.props.calendarClassName,container:P.props.calendarContainer,handleOnKeyDown:P.props.onKeyDown,handleOnDayKeyDown:P.onDayKeyDown,setPreSelection:P.setPreSelection,dropdownMode:null!=(T=P.props.dropdownMode)?T:I.defaultProps.dropdownMode,onMonthSelectedInChange:P.handleMonthSelectedInChange}),P.props.children):null},P.renderAriaLiveRegion=function(){var N,T,D=P.props.locale,M=null!=(N=P.props.dateFormat)?N:I.defaultProps.dateFormat,R=P.props.showTimeInput||P.props.showTimeSelect?"PPPPp":"PPPP";return T=P.props.selectsRange?"Selected start date: ".concat(a1(P.props.startDate,{dateFormat:R,locale:D}),". ").concat(P.props.endDate?"End date: "+a1(P.props.endDate,{dateFormat:R,locale:D}):""):P.props.showTimeSelectOnly?"Selected time: ".concat(a1(P.props.selected,{dateFormat:M,locale:D})):P.props.showYearPicker?"Selected year: ".concat(a1(P.props.selected,{dateFormat:"yyyy",locale:D})):P.props.showMonthYearPicker?"Selected month: ".concat(a1(P.props.selected,{dateFormat:"MMMM yyyy",locale:D})):P.props.showQuarterYearPicker?"Selected quarter: ".concat(a1(P.props.selected,{dateFormat:"yyyy, QQQ",locale:D})):"Selected date: ".concat(a1(P.props.selected,{dateFormat:R,locale:D})),H.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-l
962ive"},T)},P.renderDateInput=function(){var N,T,D,M,R,L,$,F=(0,W.$)(P.props.className,((N={})[P.props.outsideClickIgnoreClass||I.defaultProps.outsideClickIgnoreClass]=P.state.open,N)),B=P.props.customInput||H.createElement("input",{type:"text"}),U=P.props.customInputRef||"ref",z={},q=null!=(D=P.props["aria-describedby"])?D:P.props.ariaDescribedBy,G=null!=(M=P.props["aria-invalid"])?M:P.props.ariaInvalid,K=null!=(R=P.props["aria-label"])?R:P.props.ariaLabel,V=null!=(L=P.props["aria-labelledby"])?L:P.props.ariaLabelledBy,Y=null!=($=P.props["aria-required"])?$:P.props.ariaRequired;return null!=q&&(z["aria-describedby"]=q),null!=G&&(z["aria-invalid"]=G),null!=K&&(z["aria-label"]=K),null!=V&&(z["aria-labelledby"]=V),null!=Y&&(z["aria-required"]=Y),(0,H.cloneElement)(B,aL(((T={})[U]=function(N){P.input=N},T.value=P.getInputValue(),T.onBlur=P.handleBlur,T.onChange=P.handleChange,T.onClick=P.onInputClick,T.onFocus=P.handleFocus,T.onKeyDown=P.onInputKeyDown,T.id=P.props.id,T.name=P.props.name,T.form=P.props.form,T.autoFocus=P.props.autoFocus,T.placeholder=P.props.placeholderText,T.disabled=P.props.disabled,T.autoComplete=P.props.autoComplete,T.className=(0,W.$)(B.props.className,F),T.title=P.props.title,T.readOnly=P.props.readOnly,T.required=P.props.required,T.tabIndex=P.props.tabIndex,T),z))},P.renderClearButton=function(){var N=P.props,I=N.isClearable,T=N.disabled,D=N.selected,M=N.startDate,R=N.endDate,L=N.clearButtonTitle,$=N.clearButtonClassName,F=void 0===$?"":$,B=N.ariaLabelClose,U=void 0===B?"Close":B,z=N.selectedDates,q=N.readOnly;return I&&!q&&(null!=D||null!=M||null!=R||(null==z?void 0:z.length))?H.createElement("button",{type:"button",className:(0,W.$)("react-datepicker__close-icon",F,{"react-datepicker__close-icon--disabled":T}),disabled:T,"aria-label":U,onClick:P.onClearClick,title:L,tabIndex:-1}):null},P.state=P.calcInitialState(),P.preventFocusTimeout=void 0,P}return aR(I,N),Object.defineProperty(I,"defaultProps",{get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",preventOpenOnFocus:!1,monthsShown:1,outsideClickIgnoreClass:ox,readOnly:!1,rangeSeparator:a2,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,swapRange:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:aV,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1,usePointerEvent:!1}},enumerable:!1,configurable:!0}),I.prototype.componentDidMount=function(){window.addEventListener("scroll",this.onScroll,!0),document.addEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},I.prototype.componentDidUpdate=function(N,I){var T,P,D,M;this.props.selectsRange&&oN(N.startDate,this.props.startDate)?this.setPreSelection(this.props.startDate):oN(N.selected,this.props.selected)&&this.setPreSelection(this.props.selected),void 0!==this.state.monthSelectedIn&&N.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),this.props.selectsRange&&!1===I.open&&!0===this.state.open&&0!==this.state.monthSelectedIn&&this.setState({monthSelectedIn:0}),N.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:iK(this.props.highlightDates)}),I.focused||ih(N.selected,this.props.selected)||this.setState({inputValue:null}),I.open!==this.state.open&&(!1===I.open&&!0===this.state.open&&(null==(P=(T=this.props).onCalendarOpen)||P.call(T)),!0===I.open&&!1===this.state.open&&(null==(M=(D=this.props).onCalendarClose)||M.call(D)))},I.prototype.componentWillUnmount=function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0),document.removeEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},I.prototype.renderInputContainer=function(){var N=this.props,I=N.showIcon,T=N.icon,P=N.calendarIconClassname,D=N.calendarIconClassName,M=N.toggleCalendarOnIconClick,R=this.state.open;return P&&console.warn("calendarIconClassname props is deprecated. should use calendarIconClassName props."),H.createElement("div",{className:"react-datepicker__input-container".concat(I?" react-datepicker__view-calendar-icon":"")},I&&H.createElement(oS,aL({icon:T,className:(0,W.$)(D,!D&&P,R&&"react-datepicker-ignore-onclickoutside")},M?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())}
962,I.prototype.render=function(){var N=this.renderCalendar();if(this.props.inline)return N;if(this.props.withPortal){var I=this.state.open?H.createElement(oj,{enableTabLoop:this.props.enableTabLoop},H.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},N)):null;return this.state.open&&this.props.portalId&&(I=H.createElement(o_,aL({portalId:this.props.portalId},this.props),I)),H.createElement(H.Fragment,null,this.renderInputContainer(),I)}return H.createElement(oO,aL({},this.props,{className:this.props.popperClassName,hidePopper:!this.isCalendarOpen(),targetComponent:this.renderInputContainer(),popperComponent:N,popperOnKeyDown:this.onPopperKeyDown,showArrow:this.props.showPopperArrow,monthHeaderPosition:this.props.monthHeaderPosition}))},I}(H.Component),oP="input",oD="navigate",oM=T(36379),oR=T(99210),oL=T(36635),o$=T(14388),oF=T(32882),oB=T(28046),oU=T(14169),oH=T(97644),oz=T(40406),oW=T(31611);im("en",oR.b),im("en-us",eg.c),im("en-ca",oL.h),im("nl-nl",o$.nl),im("en-nl",oR.b),im("nl-be",oF.S),im("de-de",oB.de),im("en-de",oR.b),im("de-at",oU.$),im("de-ch",oB.de),im("en-sg",oR.b),im("en-au",oH.c),im("zh-cn",oz.g),im("cs-cz",oW.cs);let oq=({id:N,locale:I="en",showHeader:T=!0,label:P,value:D,placeholder:M="Day / Month / Year",errors:R,setDataLayer:z,setDataLayerError:W,trackingProps:q,maxDate:G,effect:K="floating-group"})=>{let V=(0,H.useRef)(!1),[Y,J]=(0,H.useState)(D??null),{setFieldValue:Q,setFieldTouched:Z}=(0,U.j7)(),[X]=(0,U.Mt)(N),ee=(0,H.useMemo)(()=>R?.length===R?.filter(N=>N?.touched&&!N?.message)?.length,[R]);return(0,L.jsxs)("div",{id:`FormDate-${N}`,children:[T&&(0,L.jsxs)("div",{className:"flex flex-col pb-2",children:[(0,L.jsx)(F.l,{id:N,label:P,focusOnClick:!1}),R?.map(I=>{if(I?.touched&&I?.message)return V.current||(W?.(),V.current=!0),(0,L.jsx)($.j,{id:I?.id??N,error:I.message},`FormError-${I?.id??N}`)})]}),(0,L.jsxs)("div",{className:"group relative flex flex-col justify-center",children:[(0,L.jsx)(oT,{...q,id:N,name:N,locale:I,className:(0,oM.cn)("input w-full"),popperClassName:"top-1!",selected:Y,placeholderText:" ",dateFormat:"P",maxDate:G,onChange:I=>{I instanceof Date&&(J(I),Z(N,!0,!1),Q(N,I.toISOString(),!0))},onInputClick:z,onKeyDown:N=>{"Tab"===N.key&&z?.()},showYearDropdown:!0}),ee&&(0,L.jsx)(B.Sr,{className:"absolute right-0 mr-4 self-center"}),M&&!X.value&&(0,L.jsx)(F.l,{id:N,type:"subtitle",effect:K,label:M})]})]})}},61075:(N,I,T)=>{"use strict";var P=T(99742),D=T(29563);Object.defineProperty(I,"__esModule",{value:!0});var M={encode:!0,decode:!0,getToken:!0};I.decode=W,I.encode=z,I.getToken=q;var R=T(77254),L=D(T(40164)),$=T(33433),F=T(3883),B=T(68306);Object.keys(B).forEach(function(N){"default"===N||"__esModule"===N||Object.prototype.hasOwnProperty.call(M,N)||N in I&&I[N]===B[N]||Object.defineProperty(I,N,{enumerable:!0,get:function(){return B[N]}})});let U=2592e3,H=()=>Date.now()/1e3|0;async function z(N){let{token:I={},secret:T,maxAge:P=U,salt:D=""}=N,M=await G(T,D);return await new R.EncryptJWT(I).setProtectedHeader({alg:"dir",enc:"A256GCM"}).setIssuedAt().setExpirationTime(H()+P).setJti((0,$.v4)()).encrypt(M)}async function W(N){let{token:I,secret:T,salt:P=""}=N;if(!I)return null;let D=await G(T,P),{payload:M}=await (0,R.jwtDecrypt)(I,D,{clockTolerance:15});return M}async function q(N){var I,T,D,M;let{req:R,secureCookie:L=null!=(I=null==(T=P.env.NEXTAUTH_URL)?void 0:T.startsWith("https://"))?I:!!P.env.VERCEL,cookieName:$=L?"__Secure-next-auth.session-token":"next-auth.session-token",raw:B,decode:U=W,logger:H=console,secret:z=null!=(D=P.env.NEXTAUTH_SECRET)?D:P.env.AUTH_SECRET}=N;if(!R)throw Error("Must pass `req` to JWT getToken()");let q=new F.SessionStore({name:$,options:{secure:L}},{cookies:R.cookies,headers:R.headers},H).value,G=R.headers instanceof Headers?R.headers.get("authorization"):null==(M=R.headers)?void 0:M.authorization;if(!q&&(null==G?void 0:G.split(" ")[0])==="Bearer"){let N=G.split(" ")[1];try{q=decodeURIComponent(N)}catch(N){return null}}if(!q)return null;if(B)return q;try{return await U({token:q,secret:z})}catch(N){return null}}async function G(N,I){return await (0,L.default)("sha256",N,I,`NextAuth.js Generated Encryption Key${I?` (${I})`:""}`,32)}},61120:(N,I,T)=>{"use strict";T.d(I,{b:()=>D});var P=T(48459);function D(N,I){return(0,P.k)(N,{...I,weekStartsOn:1}
962)}},61181:(N,I,T)=>{"use strict";T.r(I),T.d(I,{buildOverviewCategories:()=>P});let P=(N,I)=>[{id:"",blogCategoryName:{value:I}},...N?.data?.datasource?.allCategories?.targetItems??[],...N?.data?.datasource?.parent?.allCategories?.targetItems??[]]},61303:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),function(N,I){for(var T in I)Object.defineProperty(N,T,{enumerable:!0,get:I[T]})}(I,{ClientHookDynamicError:function(){return $},RENDER_STAGES_BY_DATA_KIND:function(){return ee},applyOwnerStack:function(){return et},isClientHookDynamicError:function(){return F},isHangingPromiseRejectionError:function(){return D},makeClientHookHangingPromise:function(){return Y},makeDevtoolsIOAwarePromise:function(){return X},makeDynamicHangingPromise:function(){return U},makeFallbackParamsHangingPromise:function(){return W},makePromiseFromTrigger:function(){return Z},makeRuntimeHangingPromise:function(){return z},makeStageHangingPromise:function(){return q},makeUntrackedHangingPromise:function(){return H},trackFallbackParamsAccessed:function(){return K},trackRuntimeDataAccessed:function(){return G}});let P=T(98351);function D(N){return"object"==typeof N&&null!==N&&"digest"in N&&N.digest===M}T(20368),T(70743);let M="HANGING_PROMISE_REJECTION";class R extends Error{constructor(N,I){super(`During prerendering, ${I} rejects when the prerender is complete. Typically these errors are handled by React but if you move ${I} to a different context by using \`setTimeout\`, \`after\`, or similar functions you may observe this error and you should handle it in that context. This occurred at route "${N}".`),this.route=N,this.expression=I,this.digest=M}}let L="CLIENT_HOOK_DYNAMIC";class $ extends Error{constructor(N,I){super(`Route "${N}": Next.js encountered URL data \`${I}\` in a Client Component outside of \`<Suspense>\`. 963 964This blocks prerendering because the value is only available at runtime. 965 966Ways to fix this: 967 - [stream] Wrap the component in \`<Suspense fallback={...}>\` so the hook value streams in after prerendering 968 - [block] Set \`export const instant = false\` to allow a blocking route 969 970Learn more: https://nextjs.org/docs/messages/blocking-prerender-client-hook`),this.digest=L,Object.defineProperty(this,"__NEXT_ERROR_CODE",{value:"E1433",enumerable:!1,configurable:!0})}}function F(N){return"object"==typeof N&&null!==N&&"digest"in N&&N.digest===L}let B=new WeakMap;function U(N,I,T){return J(N,new R(I,T))}function H(N,I,T){return J(N,new R(I,T))}function z(N,I,T,P){return null!==P&&G(P),J(N,new R(I,T))}function W(N,I,T,P){return null!==P&&K(P),J(N,new R(I,T))}function q(N,I,T,P){return G(P),J(N,new R(I,T))}function G(N){V(N,!1)}function K(N){V(N,!0)}function V(N,I){if("prerender"===N.type){var T;null==(T=N.runtimeDataAccessed)||T.resolve(!0);let P=N.shouldAttemptStaticPrefetch;null===P||I&&N.isFallbackUpgradeable||(P.current=!1)}}function Y(N,I){return J(N,I)}function J(N,I){if(N.aborted)return Promise.reject(I);{let T=new Promise((T,P)=>{let D=P.bind(null,I),M=B.get(N);if(M)M.push(D);else{let I=[D];B.set(N,I),N.addEventListener("abort",()=>{for(let N=0;N<I.length;N++)I[N]()},{once:!0})}});return T.catch(Q),T}}function Q(){}function Z(N,I){let T=N.then(()=>I);return T.catch(Q),T}function X(N,I,T){return I.stagedRendering?I.stagedRendering.delayUntilStage(T,void 0,N):new Promise(I=>{setTimeout(()=>{I(N)},0)})}let ee={sessionData:P.RenderStage.ShellRuntime,staticLinkData:P.RenderStage.Static,runtimeLinkData:P.RenderStage.Runtime};function et(N){return N}},61584:(N,I,T)=>{"use strict";T.d(I,{v:()=>B});var P=T(14232),D=T(98741),M=T(63561),R=T(53282),L=T(73813),$=function(N,I){var T={};for(var P in N)Object.prototype.hasOwnProperty.call(N,P)&&0>I.indexOf(P)&&(T[P]=N[P]);if(null!=N&&"function"==typeof Object.getOwnPropertySymbols)for(var D=0,P=Object.getOwnPropertySymbols(N);D<P.length;D++)0>I.indexOf(P[D])&&Object.prototype.propertyIsEnumerable.call(N,P[D])&&(T[P[D]]=N[P[D]]);return T};let F=N=>{let I;var{field:T,tag:D,render:M}=N,R=$(N,["field","tag","render"]);if((0,L.JE)(T))return null;if(delete R.editable,I=M?M(T.value?new Date(T.value):null):T.value,!D)return P.createElement(P.Fragment,null,I);{let N=D||"span";return P.createElement(N,Object.assign({},R),I)}},B=(0,D.O)((0,M.N)(F,{defaultEmptyFieldEditingComponent:R.G}));B.displayName="Date"},61768:(N,I,T)=>{"use strict";T.d(I,{G:()=>D});var P=T(43691);function D(N){let I=(0,P.a)(N),T=new Date(Date.UTC(I.getFullYear(),I.getMonth(),I.getDate(),I.getHours(),I.getMinutes(),I.getSeconds(),I.getMilliseconds()));
970return T.setUTCFullYear(I.getFullYear()),N-T}},61792:(N,I,T)=>{var P;function D(N){var T,P=0;for(T in N)P=(P<<5)-P+N.charCodeAt(T)|0;return I.colors[Math.abs(P)%I.colors.length]}function M(N){function T(){if(T.enabled){var N=T,D=+new Date,M=D-(P||D);N.diff=M,N.prev=P,N.curr=D,P=D;for(var R=Array(arguments.length),L=0;L<R.length;L++)R[L]=arguments[L];R[0]=I.coerce(R[0]),"string"!=typeof R[0]&&R.unshift("%O");var $=0;R[0]=R[0].replace(/%([a-zA-Z%])/g,function(T,P){if("%%"===T)return T;$++;var D=I.formatters[P];if("function"==typeof D){var M=R[$];T=D.call(N,M),R.splice($,1),$--}return T}),I.formatArgs.call(N,R);var F=T.log||I.log||console.log.bind(console);F.apply(N,R)}}return T.namespace=N,T.enabled=I.enabled(N),T.useColors=I.useColors(),T.color=D(N),"function"==typeof I.init&&I.init(T),T}function R(N){I.save(N),I.names=[],I.skips=[];for(var T=("string"==typeof N?N:"").split(/[\s,]+/),P=T.length,D=0;D<P;D++)T[D]&&("-"===(N=T[D].replace(/\*/g,".*?"))[0]?I.skips.push(RegExp("^"+N.substr(1)+"$")):I.names.push(RegExp("^"+N+"$")))}function L(){I.enable("")}function $(N){var T,P;for(T=0,P=I.skips.length;T<P;T++)if(I.skips[T].test(N))return!1;for(T=0,P=I.names.length;T<P;T++)if(I.names[T].test(N))return!0;return!1}function F(N){return N instanceof Error?N.stack||N.message:N}(I=N.exports=M.debug=M.default=M).coerce=F,I.disable=L,I.enable=R,I.enabled=$,I.humanize=T(14885),I.names=[],I.skips=[],I.formatters={}},62288:(N,I,T)=>{"use strict";T.d(I,{KR:()=>F,fB:()=>H,j_:()=>B,z8:()=>U});var P=T(86170),D=T(60409),M=T(65212);let R=` 971 fragment eventPreviewFields on Item { 972 ... on EventPage { 973 displayName 974 language { 975 name 976 } 977 url { 978 path 979 } 980 previewTitle { 981 value 982 } 983 previewIntro { 984 value 985 } 986 previewImage { 987 data: jsonValue 988 } 989 } 990 } 991`,L=` 992 fragment eventFields on Item { 993 ... on EventPage { 994 name 995 eventHeroTitle { 996 value 997 } 998 eventHeroImage { 999 data: jsonValue 1000 } 1001 eventCategory { 1002 id: value 1003 data: jsonValue 1004 } 1005 eventHeroPublicationDate { 1006 value 1007 } 1008 eventHeroPublicationEndDate { 1009 value 1010 } 1011 eventLocationName { 1012 value 1013 } 1014 brunelMapCentralPointLatitude { 1015 value 1016 } 1017 brunelMapCentralPointLongitude { 1018 value 1019 } 1020 } 1021 } 1022`,$=` 1023 fragment eventCategoryFields on EventCategory { 1024 id(format: "B") 1025 name 1026 eventCategoryName { 1027 value 1028 } 1029 eventCategoryIntroText { 1030 value 1031 } 1032 eventCategoryHeaderImage { 1033 data: jsonValue 1034 } 1035 } 1036`,F=(N,I,T)=>(0,P.A)().request(` 1037 ${R} 1038 ${L} 1039 1040 query ( 1041 $eventPageTemplateId: String! 1042 $eventItemId: String! 1043 $totalResults: Int! 1044 $locale: String! 1045 ) { 1046 events: search( 1047 where: { 1048 AND: [ 1049 { name: "_language", value: $locale, operator: EQ } 1050 { name: "_templates", value: $eventPageTemplateId, operator: CONTAINS } 1051 { name: "_path", value: $eventItemId, operator: CONTAINS } 1052 ] 1053 } 1054 first: $totalResults 1055 orderBy: { name: "eventHeroPublicationDate", direction: DESC } 1056 ) { 1057 results { 1058 ...eventPreviewFields 1059 ...eventFields 1060 } 1061 pageInfo { 1062 endCursor 1063 hasNext 1064 } 1065 total 1066 } 1067 } 1068 `,{eventPageTemplateId:D.OV,eventItemId:N,totalResults:I,locale:T}).then(N=>N).catch(N=>(M.A.blog("Failed getEventsData",N),null)),B=(N,I,T,$,F)=>(0,P.A)().request(` 1069 ${R} 1070 ${L} 1071 query ( 1072 $totalResults: Int! 1073 ) { 1074 events: search( 1075 where: { 1076 AND: [ 1077 { name: "_language", value: "${F}", operator: EQ } 1078 { name: "_templates", value: "${D.OV}", operator: CONTAINS } 1079 { name: "_path", value: "${N}", operator: CONTAINS } 1080 ${I?`{ name: "_path", value: "${I}", operator: NCONTAINS }`:""} 1081 { 1082 AND: [{ 1083 OR: [${$.map(N=>
1083`{ name: "eventCategory", value: "${N.toSitecoreGUID()}", operator: CONTAINS }`)} 1084 ] 1085 }] 1086 } 1087 ] 1088 } 1089 first: $totalResults 1090 orderBy: { name: "eventHeroPublicationDate", direction: DESC } 1091 ) { 1092 results { 1093 ...eventPreviewFields 1094 ...eventFields 1095 } 1096 pageInfo { 1097 endCursor 1098 hasNext 1099 } 1100 total 1101 } 1102 } 1103 `,{totalResults:T}).then(N=>N).catch(N=>(M.A.event("Failed getEventsDataByCategory",N),null)),U=(N,I,T,$,F)=>(0,P.A)().request(` 1104 ${R} 1105 ${L} 1106 1107 query ( 1108 $totalResults: Int! 1109 $endCursor: String! 1110 ) { 1111 events: search( 1112 where: { 1113 AND: [ 1114 { name: "_language", value: "${F}", operator: EQ } 1115 { name: "_templates", value: "${D.OV}", operator: CONTAINS } 1116 { name: "_path", value: "${N}", operator: CONTAINS } 1117 ${$&&`{ 1118 AND: [{ 1119 OR: [${$.map(N=>`{ name: "eventCategory", value: "${N.toSitecoreGUID()}", operator: CONTAINS }`)} 1120 ] 1121 }] 1122 }`} 1123 ] 1124 } 1125 first: $totalResults 1126 after: $endCursor 1127 orderBy: { name: "eventHeroPublicationDate", direction: DESC } 1128 ) { 1129 results { 1130 ...eventPreviewFields 1131 ...eventFields 1132 } 1133 pageInfo { 1134 endCursor 1135 hasNext 1136 } 1137 total 1138 } 1139 } 1140 `,{totalResults:I,endCursor:T}).then(N=>N).catch(N=>(M.A.event("Failed getNextEventsData",N),null)),H=(N,I)=>(0,P.A)().request(` 1141 ${$} 1142 1143 query ($path: String!, $locale: String!) { 1144 item(path: $path, language: $locale) { 1145 ...eventCategoryFields 1146 } 1147 } 1148 `,{path:`${N}`,locale:`${I}`}).then(N=>N).catch(N=>(M.A.blog("Failed getEventCategoryById",N),null))},62353:(N,I)=>{"use strict";async function T({email:N,adapter:I}){let{getUserByEmail:P}=I,D=N?await P(N):null;return D||{id:N,email:N,emailVerified:null}}Object.defineProperty(I,"__esModule",{value:!0}),I.default=T},62467:(N,I,T)=>{"use strict";T.d(I,{U:()=>$,b:()=>F});var P=T(78028),D=T(65212),M=T(82752),R=T(99742);class L{#Q;#Z;constructor(N){this.#Q=P.A.create({baseURL:N?R.env.MY_APPLICATIONS_API_URL:"/api/mercury",timeout:3e4,headers:{"Content-Type":"application/json","Ocp-Apim-Subscription-Key":R.env.MY_APPLICATIONS_API_TOKEN}}),this.#Q.interceptors.response.use(N=>N,N=>(0,M.r)(N)),this.#Z=P.A.create({baseURL:N?R.env.MCRY_API_URL:"/api/mercury/direct",timeout:3e4,headers:{"Content-Type":"application/json","Ocp-Apim-Subscription-Key":R.env.MCRY_API_TOKEN}}),this.#Z.interceptors.response.use(N=>N,N=>(0,M.r)(N))}getMercuryDataByID=N=>this.#Q.get(`/api/mercury/id/${N.mercuryId}`,{headers:{Authorization:`Bearer ${N.bearerToken}`,"Cache-Control":"no-cache",Pragma:"no-cache"}}).then(N=>N.data);getMercuryDataByEmail=N=>this.#Q.get(`/api/mercury/email/${N.email}`,{headers:{Authorization:`Bearer ${N.bearerToken}`,"Cache-Control":"no-cache",Pragma:"no-cache"}}).then(N=>N.data);getApplicationsByMercuryID=N=>this.#Q.get(`/api/mercury/candidate/${N.mercuryId}/applications`,{headers:{Authorization:`Bearer ${N.bearerToken}`}}).then(N=>N.data);updateMercuryData=N=>this.#Q.put("/api/mercury/candidate",N.body).then(N=>N.data).catch(N=>{throw D.A.api("Error updating Mercury Data",N),N});uploadDocument=N=>this.#Q.post(`/api/mercury/candidate/${N.mercuryId}/document`,{file:N.file},{headers:{"Content-Type":"multipart/form-data"},params:{documentType:N.documentType}}).then(N=>N.data).catch(N=>{throw D.A.api("Error uploading Document",N),N});uploadCV=N=>this.#Q.put(`/api/mercury/candidate/${N.mercuryId}/cv-parse`,{file:N.file},{headers:{"Content-Type":"multipart/form-data"}}).then(N=>N.data).catch(N=>{throw D.A.api("Error uploading CV",N),N});mercuryUploadCV=N=>this.#Z.put(`/candidate/${N.mercuryId}/CVParse`,{file:N.file},{headers:{"Content-Type":"multipart/form-data"}}).then(N=>N.data).catch(N=>{throw D.A.api("Error uploading CV Directly to Mercury",N),N});getSkills=N=>this.#Q.get("/api/mercury/skills",{params:{keyword:N.keyword},headers:{"Content-Type":"multipart/form-data",Authorization:`Bearer ${N.bearerToken}`}}).then(N=>N.data);deleteSkills=N=>this.#Q.delete(`/api/mercury/candidate/${N.candidateId}/skilllevel/${N.mercuryId}`,{headers:{Authorization:`Bearer ${N.bearerToken}`}}).then(N=>N.data);
1148deleteExperience=N=>this.#Q.delete(`/api/mercury/candidate/${N.candidateId}/experience/${N.mercuryId}`,{headers:{Authorization:`Bearer ${N.bearerToken}`}}).then(N=>N.data);deleteEducation=N=>this.#Q.delete(`/api/mercury/candidate/${N.candidateId}/education/${N.mercuryId}`,{headers:{Authorization:`Bearer ${N.bearerToken}`}}).then(N=>N.data)}let $=new L,F=new L(!0)},62713:(N,I,T)=>{"use strict";T.r(I),T.d(I,{Footer:()=>B,FooterTH:()=>F.FooterTH});var P=T(37876),D=T(22544),M=T(87273),R=T(63366),L=T(36379),$=T(82868),F=T(14949);let B=N=>{let I=N.params.RenderingIdentifier,T=N.fields?.data?.datasource??{},{navigationLogo:F,navigationLogoCaption:B}=T??{navigationLogo:{},navigationLogoCaption:{}},U=T?.children?.results?.map((N,I)=>{let{menuSectionLink:T,menuSectionTitle:M,menuSectionReadMoreLink:$}=N,F=T?.link?.value?.href??T?.link?.value?.anchor;return(0,P.jsxs)(R.az,{className:"border-grey300 border-b px-6 py-6! text-white md:border-none md:p-0",children:[F&&(0,P.jsx)(D.N,{className:(0,L.cn)(R.kL,R.lJ,"text-base leading-5 text-white hover:text-white lg:py-0"),href:T?.link?.value?.href,field:T.link,tabIndex:0,children:M?.text?.value}),(0,P.jsx)(R.c0,{items:N.children?.results,readMoreLink:$,menuItem:"footer",tabIndex:0})]},I)});return(0,P.jsxs)(R.az,{id:I||void 0,className:"w-screen bg-brunel-dark-grey","data-testid":$.Qa.TestIds.FooterComponent.base,children:[(0,P.jsxs)(R.az,{className:"flex flex-col items-center justify-center border-b border-white p-6 md:hidden lg:border-0",children:[(0,P.jsx)(R.az,{className:"mb-3","data-testid":"footer-logo",children:F?.image?.src?(0,P.jsx)(M._,{field:F.image,alt:"Footer Logo"}):(0,P.jsx)(R.In,{name:"logo",alt:"Brunel Footer Logo",size:"large",color:"white"})}),(0,P.jsx)(R.az,{children:(0,P.jsx)(R.o5,{className:"text-white!",textField:B?.text})})]}),(0,P.jsx)(R.zk,{columns:"4",gap:"lg",contentBgColor:"transparent",className:"md:from-brunel-dark-grey-light bg-brunel-dark-grey text-white md:bg-linear-to-b md:to-brunel-dark-grey md:px-6",children:U})]})}},62794:(N,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0})},62945:(N,I,T)=>{"use strict";let P;T.d(I,{BH:()=>ej,P3:()=>rQ,X0:()=>eQ,i3:()=>rZ,u6:()=>eu});var D,M,R,L,$,F,B,U,H,z=T(37876),W=T(14232),q=T(98477);function G(N){return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(N){return typeof N}:function(N){return N&&"function"==typeof Symbol&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N})(N)}function K(N,I){if("object"!=G(N)||!N)return N;var T=N[Symbol.toPrimitive];if(void 0!==T){var P=T.call(N,I||"default");if("object"!=G(P))return P;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===I?String:Number)(N)}function V(N){var I=K(N,"string");return"symbol"==G(I)?I:I+""}function Y(N,I,T){return(I=V(I))in N?Object.defineProperty(N,I,{value:T,enumerable:!0,configurable:!0,writable:!0}):N[I]=T,N}function J(N){return N&&N.__esModule&&Object.prototype.hasOwnProperty.call(N,"default")?N.default:N}var Q=J(function(){if(L)return R;L=1;var N="production";return R=function(I,T,P,D,M,R,L,$){if("production"!==N&&void 0===T)throw Error("invariant requires an error message argument");if(!I){var F;if(void 0===T)F=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var B=[P,D,M,R,L,$],U=0;(F=Error(T.replace(/%s/g,function(){return B[U++]}))).name="Invariant Violation"}throw F.framesToPop=1,F}}}()),Z=(0,W.createContext)(null);function X(){Q(!!W.useContext,"useGoogleMap is React hook and requires React version 16.8+");var N=(0,W.useContext)(Z);return Q(!!N,"useGoogleMap needs a GoogleMap available up in the tree"),N}function ee(N,I,T){return Object.keys(N).reduce(function(T,P){return I(T,N[P],P)},T)}function et(N,I){Object.keys(N).forEach(T=>I(N[T],T))}function er(N,I,T,P){var D={};return et(N,(N,M)=>{var R=T[M];R!==I[M]&&(D[M]=R,N(P,R))}),D}function en(N,I,T){return ee(T,function(T,P,D){return"function"==typeof N[D]&&T.push(google.maps.event.addListener(I,P,N[D])),T},[])}function ea(N){google.maps.event.removeListener(N)}function ei(){var N=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];
1148N.forEach(ea)}function eo(N){var{updaterMap:I,eventMap:T,prevProps:P,nextProps:D,instance:M}=N,R=en(D,M,T);return er(I,P,D,M),R}var es={onDblClick:"dblclick",onDragEnd:"dragend",onDragStart:"dragstart",onMapTypeIdChanged:"maptypeid_changed",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseDown:"mousedown",onMouseUp:"mouseup",onRightClick:"rightclick",onTilesLoaded:"tilesloaded",onBoundsChanged:"bounds_changed",onCenterChanged:"center_changed",onClick:"click",onDrag:"drag",onHeadingChanged:"heading_changed",onIdle:"idle",onProjectionChanged:"projection_changed",onResize:"resize",onTiltChanged:"tilt_changed",onZoomChanged:"zoom_changed"},el={extraMapTypes(N,I){I.forEach(function(I,T){N.mapTypes.set(String(T),I)})},center(N,I){N.setCenter(I)},clickableIcons(N,I){N.setClickableIcons(I)},heading(N,I){N.setHeading(I)},mapTypeId(N,I){N.setMapTypeId(I)},options(N,I){N.setOptions(I)},streetView(N,I){N.setStreetView(I)},tilt(N,I){N.setTilt(I)},zoom(N,I){N.setZoom(I)}};function ec(N){var{children:I,options:T,id:P,mapContainerStyle:D,mapContainerClassName:M,center:R,onClick:L,onDblClick:$,onDrag:F,onDragEnd:B,onDragStart:U,onMouseMove:H,onMouseOut:q,onMouseOver:G,onMouseDown:K,onMouseUp:V,onRightClick:Y,onCenterChanged:J,onLoad:Q,onUnmount:X}=N,[ee,et]=(0,W.useState)(null),er=(0,W.useRef)(null),[en,ea]=(0,W.useState)(null),[ei,eo]=(0,W.useState)(null),[es,el]=(0,W.useState)(null),[ec,eu]=(0,W.useState)(null),[ed,ef]=(0,W.useState)(null),[eh,ep]=(0,W.useState)(null),[em,eg]=(0,W.useState)(null),[ey,eb]=(0,W.useState)(null),[ev,ew]=(0,W.useState)(null),[ex,eA]=(0,W.useState)(null),[eE,eS]=(0,W.useState)(null),[e_,ek]=(0,W.useState)(null);return(0,W.useEffect)(()=>{T&&null!==ee&&ee.setOptions(T)},[ee,T]),(0,W.useEffect)(()=>{null!==ee&&void 0!==R&&ee.setCenter(R)},[ee,R]),(0,W.useEffect)(()=>{ee&&$&&(null!==ei&&google.maps.event.removeListener(ei),eo(google.maps.event.addListener(ee,"dblclick",$)))},[$]),(0,W.useEffect)(()=>{ee&&B&&(null!==es&&google.maps.event.removeListener(es),el(google.maps.event.addListener(ee,"dragend",B)))},[B]),(0,W.useEffect)(()=>{ee&&U&&(null!==ec&&google.maps.event.removeListener(ec),eu(google.maps.event.addListener(ee,"dragstart",U)))},[U]),(0,W.useEffect)(()=>{ee&&K&&(null!==ed&&google.maps.event.removeListener(ed),ef(google.maps.event.addListener(ee,"mousedown",K)))},[K]),(0,W.useEffect)(()=>{ee&&H&&(null!==eh&&google.maps.event.removeListener(eh),ep(google.maps.event.addListener(ee,"mousemove",H)))},[H]),(0,W.useEffect)(()=>{ee&&q&&(null!==em&&google.maps.event.removeListener(em),eg(google.maps.event.addListener(ee,"mouseout",q)))},[q]),(0,W.useEffect)(()=>{ee&&G&&(null!==ey&&google.maps.event.removeListener(ey),eb(google.maps.event.addListener(ee,"mouseover",G)))},[G]),(0,W.useEffect)(()=>{ee&&V&&(null!==ev&&google.maps.event.removeListener(ev),ew(google.maps.event.addListener(ee,"mouseup",V)))},[V]),(0,W.useEffect)(()=>{ee&&Y&&(null!==ex&&google.maps.event.removeListener(ex),eA(google.maps.event.addListener(ee,"rightclick",Y)))},[Y]),(0,W.useEffect)(()=>{ee&&L&&(null!==eE&&google.maps.event.removeListener(eE),eS(google.maps.event.addListener(ee,"click",L)))},[L]),(0,W.useEffect)(()=>{ee&&F&&(null!==e_&&google.maps.event.removeListener(e_),ek(google.maps.event.addListener(ee,"drag",F)))},[F]),(0,W.useEffect)(()=>{ee&&J&&(null!==en&&google.maps.event.removeListener(en),ea(google.maps.event.addListener(ee,"center_changed",J)))},[L]),(0,W.useEffect)(()=>{var N=null===er.current?null:new google.maps.Map(er.current,T);return et(N),null!==N&&Q&&Q(N),()=>{null!==N&&X&&X(N)}},[]),(0,z.jsx)("div",{id:P,ref:er,style:D,className:M,children:(0,z.jsx)(Z.Provider,{value:ee,children:null!==ee?I:null})})}(0,W.memo)(ec);class eu extends W.PureComponent{constructor(){super(...arguments),Y(this,"state",{map:null}),Y(this,"registeredEvents",[]),Y(this,"mapRef",null),Y(this,"getInstance",()=>null===this.mapRef?null:new google.maps.Map(this.mapRef,this.props.options)),Y(this,"panTo",N=>{var I=this.getInstance();I&&I.panTo(N)}),Y(this,"setMapCallback",()=>{null!==this.state.map&&this.props.onLoad&&this.props.onLoad(this.state.map)}),Y(this,"getRef",N=>{this.mapRef=N})}componentDidMount(){var N=this.getInstance();this.registeredEvents=eo({updaterMap:el,eventMap:es,prevProps:{},nextProps:this.props,instance:N}),this.setState(function(){return{map:N}},this.setMapCallback)}componentDidUpdate(N){null!==this.state.map&&(ei(this.registeredEvents),this.registeredEvents=eo({updaterMap:el,eventMap:es,prevProps:N,nextProps:this.props,instance:this.state.map}))}componentWillUnmount(){null!==this.state.map&&(this.props.onUnmount&&this.props.onUnmount(this.state.map),ei(this.registeredEvents))}render(){return(0,z.jsx)("div",{id:this.props.id,ref:this.getRef,style:this.props.mapContainerStyle,className:this.props.mapContainerClassName,children:(0,z.jsx)(Z.Provider,{value:this.state.map,children:null!==this.state.map?this.props.children:null})})}}function ed(N,I,T,P,D,M,R){try{var L=N[M](R),$=L.value}catch(N){return void T(N)}L.done?I($):Promise.resolve($).then(P,D)}function ef(N){return function(){var I=this,T=arguments;return new Promise(function(P,D){var M=N.apply(I,T);function R(N){ed(M,P,D,R,L,"next",N)}function L(N){ed(M,P,D,R,L,"throw",N)}R(void 0)})}}function eh(N){var{googleMapsApiKey:I,googleMapsClientId:T,version:P="weekly",language:D,region:M,libraries:R,channel:L,mapIds:$,authReferrerPolicy:F,apiUrl:B="https://maps.googleapis.com"}=N,U=[];return Q(I&&T||!(I&&T),"You need to specify either googleMapsApiKey or googleMapsClientId for @react-google-maps/api load script to work. You cannot use both at the same time."),I?U.push("key=".concat(I
1148)):T&&U.push("client=".concat(T)),P&&U.push("v=".concat(P)),D&&U.push("language=".concat(D)),M&&U.push("region=".concat(M)),R&&R.length&&U.push("libraries=".concat(R.sort().join(","))),L&&U.push("channel=".concat(L)),$&&$.length&&U.push("map_ids=".concat($.join(","))),F&&U.push("auth_referrer_policy=".concat(F)),U.push("loading=async"),U.push("callback=initMap"),"".concat(B,"/maps/api/js?").concat(U.join("&"))}var ep="u">typeof document;function em(N){var{url:I,id:T,nonce:P}=N;return ep?new Promise(function(N,D){var M=document.getElementById(T),R=window;if(M){var L=M.getAttribute("data-state");if(M.src===I&&"error"!==L)if("ready"===L)return N(T);else{var $=R.initMap,F=M.onerror;R.initMap=function(){$&&$(),N(T)},M.onerror=function(N){F&&F(N),D(N)};return}M.remove()}var B=document.createElement("script");B.type="text/javascript",B.src=I,B.id=T,B.async=!0,B.nonce=P||"",B.onerror=function(N){B.setAttribute("data-state","error"),D(N)},R.initMap=function(){B.setAttribute("data-state","ready"),N(T)},document.head.appendChild(B)}).catch(N=>{throw console.error("injectScript error: ",N),N}):Promise.reject(Error("document is undefined"))}function eg(N){var I=N.href;return!!I&&(0===I.indexOf("https://fonts.googleapis.com/css?family=Roboto")||0===I.indexOf("https://fonts.googleapis.com/css?family=Google+Sans+Text"))||("style"===N.tagName.toLowerCase()&&N.styleSheet&&N.styleSheet.cssText&&0===N.styleSheet.cssText.replace("\r\n","").indexOf(".gm-style")?(N.styleSheet.cssText="",!0):"style"===N.tagName.toLowerCase()&&N.innerHTML&&0===N.innerHTML.replace("\r\n","").indexOf(".gm-style")?(N.innerHTML="",!0):"style"===N.tagName.toLowerCase()&&!N.styleSheet&&!N.innerHTML)}function ey(){var N=document.getElementsByTagName("head")[0];if(N){var I=N.insertBefore.bind(N);N.insertBefore=function(T,P){return eg(T)||Reflect.apply(I,N,[T,P]),T};var T=N.appendChild.bind(N);N.appendChild=function(I){return eg(I)||Reflect.apply(T,N,[I]),I}}}var eb=!1;function ev(){return(0,z.jsx)("div",{children:"Loading..."})}var ew={id:"script-loader",version:"weekly"};class ex extends W.PureComponent{constructor(){super(...arguments),Y(this,"check",null),Y(this,"state",{loaded:!1}),Y(this,"cleanupCallback",()=>{delete window.google.maps,this.injectScript()}),Y(this,"isCleaningUp",ef(function*(){return new Promise(function(N){if(eb){if(ep)var I=window.setInterval(function(){eb||(window.clearInterval(I),N())},1)}else N()})})),Y(this,"cleanup",()=>{eb=!0;var N=document.getElementById(this.props.id);N&&N.parentNode&&N.parentNode.removeChild(N),Array.prototype.slice.call(document.getElementsByTagName("script")).filter(function(N){return"string"==typeof N.src&&N.src.includes("maps.googleapis")}).forEach(function(N){N.parentNode&&N.parentNode.removeChild(N)}),Array.prototype.slice.call(document.getElementsByTagName("link")).filter(function(N){return"https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Google+Sans"===N.href}).forEach(function(N){N.parentNode&&N.parentNode.removeChild(N)}),Array.prototype.slice.call(document.getElementsByTagName("style")).filter(function(N){return void 0!==N.innerText&&N.innerText.length>0&&N.innerText.includes(".gm-")}).forEach(function(N){N.parentNode&&N.parentNode.removeChild(N)})}),Y(this,"injectScript",()=>{this.props.preventGoogleFontsLoading&&ey(),Q(!!this.props.id,'LoadScript requires "id" prop to be a string: %s',this.props.id),em({id:this.props.id,nonce:this.props.nonce,url:eh(this.props)}).then(()=>{this.props.onLoad&&this.props.onLoad(),this.setState(function(){return{loaded:!0}})}).catch(N=>{this.props.onError&&this.props.onError(N),console.error("\n There has been an Error with loading Google Maps API script, please check that you provided correct google API key (".concat(this.props.googleMapsApiKey||"-",") or Client ID (").concat(this.props.googleMapsClientId||"-",") to <LoadScript />\n Otherwise it is a Network issue.\n "))})}),Y(this,"getRef",N=>{this.check=N})}componentDidMount(){if(ep){if(window.google&&window.google.maps&&!eb)return void console.error("google api is already presented");this.isCleaningUp().then(this.injectScript).catch(function(N){console.error("Error at injecting script after cleaning up: ",N)})}}componentDidUpdate(N){this.props.libraries!==N.libraries&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as
1148static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),ep&&N.language!==this.props.language&&(this.cleanup(),this.setState(function(){return{loaded:!1}},this.cleanupCallback))}componentWillUnmount(){if(ep){this.cleanup();var N=()=>{this.check||(delete window.google,eb=!1)};window.setTimeout(N,1),this.props.onUnmount&&this.props.onUnmount()}}render(){return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)("div",{ref:this.getRef}),this.state.loaded?this.props.children:this.props.loadingElement||(0,z.jsx)(ev,{})]})}}function eA(N,I){if(null==N)return{};var T={};for(var P in N)if(({}).hasOwnProperty.call(N,P)){if(I.includes(P))continue;T[P]=N[P]}return T}function eE(N,I){if(null==N)return{};var T,P,D=eA(N,I);if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(N);for(P=0;P<M.length;P++)T=M[P],I.includes(T)||({}).propertyIsEnumerable.call(N,T)&&(D[T]=N[T])}return D}function eS(N){var{id:I=ew.id,version:T=ew.version,nonce:P,googleMapsApiKey:D,googleMapsClientId:M,language:R,region:L,libraries:F,preventGoogleFontsLoading:B,channel:U,mapIds:H,authReferrerPolicy:z,apiUrl:q="https://maps.googleapis.com"}=N,G=(0,W.useRef)(!1),[K,V]=(0,W.useState)(!1),[Y,J]=(0,W.useState)(void 0);(0,W.useEffect)(function(){return G.current=!0,()=>{G.current=!1}},[]),(0,W.useEffect)(function(){ep&&B&&ey()},[B]),(0,W.useEffect)(function(){K&&Q(!!window.google,"useLoadScript was marked as loaded, but window.google is not present. Something went wrong.")},[K]);var Z=eh({version:T,googleMapsApiKey:D,googleMapsClientId:M,language:R,region:L,libraries:F,channel:U,mapIds:H,authReferrerPolicy:z,apiUrl:q});(0,W.useEffect)(function(){if(ep){if(window.google&&window.google.maps&&$===Z)return void N();em({id:I,url:Z,nonce:P}).then(N).catch(function(N){G.current&&J(N),console.warn("\n There has been an Error with loading Google Maps API script, please check that you provided correct google API key (".concat(D||"-",") or Client ID (").concat(M||"-",")\n Otherwise it is a Network issue.\n ")),console.error(N)})}function N(){G.current&&(V(!0),$=Z)}},[I,Z,P]);var X=(0,W.useRef)(void 0);return(0,W.useEffect)(function(){X.current&&F!==X.current&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),X.current=F},[F]),{isLoaded:K,loadError:Y,url:Z}}Y(ex,"defaultProps",ew);var e_=["loadingElement","onLoad","onError","onUnmount","children"],ek=(0,z.jsx)(ev,{});function eC(N){var{loadingElement:I,onLoad:T,onError:P,onUnmount:D,children:M}=N,{isLoaded:R,loadError:L}=eS(eE(N,e_));return(0,W.useEffect)(function(){R&&"function"==typeof T&&T()},[R,T]),(0,W.useEffect)(function(){L&&"function"==typeof P&&P(L)},[L,P]),(0,W.useEffect)(function(){return()=>{D&&D()}},[D]),R?M:I||ek}var ej=(0,W.memo)(eC);function eO(N,I){var T=Object.keys(N);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(N);I&&(P=P.filter(function(I){return Object.getOwnPropertyDescriptor(N,I).enumerable})),T.push.apply(T,P)}return T}function eN(N){for(var I=1;I<arguments.length;I++){var T=null!=arguments[I]?arguments[I]:{};I%2?eO(Object(T),!0).forEach(function(I){Y(N,I,T[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(T)):eO(Object(T)).forEach(function(I){Object.defineProperty(N,I,Object.getOwnPropertyDescriptor(T,I))})}return N}"function"==typeof SuppressedError&&SuppressedError,(D=F||(F={}))[D.INITIALIZED=0]="INITIALIZED",D[D.LOADING=1]="LOADING",D[D.SUCCESS=2]="SUCCESS",D[D.FAILURE=3]="FAILURE";var eI={},eT={options(N,I){N.setOptions(I)}};function eP(N){var{options:I,onLoad:T,onUnmount:P}=N,D=(0,W.useContext)(Z),[M,R]=(0,W.useState)(null);return(0,W.useEffect)(()=>{null!==M&&M.setMap(D)},[D]),(0,W.useEffect)(()=>{I&&null!==M&&M.setOptions(I)},[M,I]),(0,W.useEffect)(()=>{var N=new google.maps.TrafficLayer(eN(eN({},I),{},{map:D}));return R(N),T&&T(N),()=>{null!==M&&(P&&P(M),M.setMap(null))}},[]),null}(0,W.memo)(eP);class eD extends W.PureComponent{constructor(){super(...arguments),Y(this,"state",{trafficLayer:null}),Y(this,"setTrafficLayerCallback",()=>{null!==this.state.trafficLayer&&this.props.onLoad&&this.props.onLoad(this.state.trafficLayer)}),Y(this,"registeredEvents",[])}componentDidMount(){var N=new google.maps.TrafficLayer(eN(eN({},this.props.options),{},{map:this.context}));this.registeredEvents=eo({updaterMap:eT,eventMap:eI,prevProps:{},nextProps:this.props,instance:N}),this.setState(function(){return{trafficLayer:N}},this.setTrafficLayerCallback)}componentDidUpdate(N){null!==this.state.trafficLayer&&(ei(this.registeredEvents),this.registeredEvents=eo({updaterMap:eT,eventMap:eI,prevProps:N,nextProps:this.props,instance:this.state.trafficLayer}))}componentWillUnmount(){null!==this.state.trafficLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.trafficLayer),ei(this.registeredEvents),this.state.trafficLayer.setMap(null))}render(){return null}}function eM(N){var{onLoad:I,onUnmount:T}=N,P=(0,W.useContext)(Z),[D,M]=(0,W.useState)(null);return(0,W.useEffect)(()=>{null!==D&&D.setMap(P)},[P]),(0,W.useEffect)(()=>{var N=new google.maps.BicyclingLayer;return M(N),N.setMap(P),I&&I(N),()=>{null!==N&&(T&&T(N),N.setMap(null))}},[]),null}Y(eD,"contextType",Z),(0,W.memo)(eM);class eR extends W.PureComponent{constructor(){super(...arguments),Y(this,"state",{bicyclingLayer:null}),Y(this,"setBicyclingLayerCallback",()=>{null!==this.state.bicyclingLayer&&(this.state.bicyclingLayer.setMap(this.context),this.props.onLoad&&this.props.onLoad(this.state.bicyclingLayer))})}componentDidMount(){var N=new google.maps.BicyclingLayer;this.setState(()=>({bicyclingLayer:N}),this.setBicyclingLayerCallback)}componentWillUnmount(){null!==this.state.bicyclingLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.bicyclingLayer),this.state.bicyclingLayer.setMap(null))}render(){return null}}function eL(N){var{onLoad:I,onUnmount:T}=N,P=(0,W.useContext)(Z),[D,M]=(0,W.useState)(null);return(0,W.useEffect)(()=>{null!==D&&D.setMap(P)},[P]),(0,W.useEffect)(()=>{var N=new google.maps.TransitLayer;return M(N),N.setMap(P),I&&I(N),()=>{null!==D&&(T&&T(D),D.setMap(null))}},[]),null}Y(eR,"contextType",Z),(0,W.memo)(eL);class e$ extends W.PureComponent{constructor(){super(...arguments),Y(this,"state",{transitLayer:null}),Y(this,"setTransitLayerCallback",()=>{null!==this.state.transitLayer&&(this.state.transitLayer.setMap(this.context),this.props.onLoad&&this.props.onLoad(this.state.transitLayer))})}componentDidMount(){var N=new google.maps.TransitLayer;this.setState(function(){return{transitLayer:N}},this.setTransitLayerCallback)}componentWillUnmount(){null!==this.state.transitLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.transitLayer),this.state.transitLayer.setMap(null))}render(){return null}}function eF(N,I){var T=Object.keys(N);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(N);I&&(P=P.filter(function(I){return Object.getOwnPropertyDescriptor(N,I).enumerable})),T.push.apply(T,P)}return T}function eB(N){for(var I=1;I<arguments.length;I++){var T=null!=arguments[I]?arguments[I]:{};
1148I%2?eF(Object(T),!0).forEach(function(I){Y(N,I,T[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(T)):eF(Object(T)).forEach(function(I){Object.defineProperty(N,I,Object.getOwnPropertyDescriptor(T,I))})}return N}Y(e$,"contextType",Z);var eU={onCircleComplete:"circlecomplete",onMarkerComplete:"markercomplete",onOverlayComplete:"overlaycomplete",onPolygonComplete:"polygoncomplete",onPolylineComplete:"polylinecomplete",onRectangleComplete:"rectanglecomplete"},eH={drawingMode(N,I){N.setDrawingMode(I)},options(N,I){N.setOptions(I)}};function ez(N){var{options:I,drawingMode:T,onCircleComplete:P,onMarkerComplete:D,onOverlayComplete:M,onPolygonComplete:R,onPolylineComplete:L,onRectangleComplete:$,onLoad:F,onUnmount:B}=N,U=(0,W.useContext)(Z),[H,z]=(0,W.useState)(null),[q,G]=(0,W.useState)(null),[K,V]=(0,W.useState)(null),[Y,J]=(0,W.useState)(null),[X,ee]=(0,W.useState)(null),[et,er]=(0,W.useState)(null),[en,ea]=(0,W.useState)(null);return(0,W.useEffect)(()=>{null!==H&&H.setMap(U)},[U]),(0,W.useEffect)(()=>{I&&null!==H&&H.setOptions(I)},[H,I]),(0,W.useEffect)(()=>{null!==H&&H.setDrawingMode(null!=T?T:null)},[H,T]),(0,W.useEffect)(()=>{H&&P&&(null!==q&&google.maps.event.removeListener(q),G(google.maps.event.addListener(H,"circlecomplete",P)))},[H,P]),(0,W.useEffect)(()=>{H&&D&&(null!==K&&google.maps.event.removeListener(K),V(google.maps.event.addListener(H,"markercomplete",D)))},[H,D]),(0,W.useEffect)(()=>{H&&M&&(null!==Y&&google.maps.event.removeListener(Y),J(google.maps.event.addListener(H,"overlaycomplete",M)))},[H,M]),(0,W.useEffect)(()=>{H&&R&&(null!==X&&google.maps.event.removeListener(X),ee(google.maps.event.addListener(H,"polygoncomplete",R)))},[H,R]),(0,W.useEffect)(()=>{H&&L&&(null!==et&&google.maps.event.removeListener(et),er(google.maps.event.addListener(H,"polylinecomplete",L)))},[H,L]),(0,W.useEffect)(()=>{H&&$&&(null!==en&&google.maps.event.removeListener(en),ea(google.maps.event.addListener(H,"rectanglecomplete",$)))},[H,$]),(0,W.useEffect)(()=>{Q(!!google.maps.drawing,"Did you include prop libraries={['drawing']} in the URL? %s",google.maps.drawing);var N=new google.maps.drawing.DrawingManager(eB(eB({},I),{},{map:U}));return T&&N.setDrawingMode(T),P&&G(google.maps.event.addListener(N,"circlecomplete",P)),D&&V(google.maps.event.addListener(N,"markercomplete",D)),M&&J(google.maps.event.addListener(N,"overlaycomplete",M)),R&&ee(google.maps.event.addListener(N,"polygoncomplete",R)),L&&er(google.maps.event.addListener(N,"polylinecomplete",L)),$&&ea(google.maps.event.addListener(N,"rectanglecomplete",$)),z(N),F&&F(N),()=>{null!==H&&(q&&google.maps.event.removeListener(q),K&&google.maps.event.removeListener(K),Y&&google.maps.event.removeListener(Y),X&&google.maps.event.removeListener(X),et&&google.maps.event.removeListener(et),en&&google.maps.event.removeListener(en),B&&B(H),H.setMap(null))}},[]),null}(0,W.memo)(ez);class eW extends W.PureComponent{constructor(N){super(N),Y(this,"registeredEvents",[]),Y(this,"state",{drawingManager:null}),Y(this,"setDrawingManagerCallback",()=>{null!==this.state.drawingManager&&this.props.onLoad&&this.props.onLoad(this.state.drawingManager)}),Q(!!google.maps.drawing,"Did you include prop libraries={['drawing']} in the URL? %s",google.maps.drawing)}componentDidMount(){var N=new google.maps.drawing.DrawingManager(eB(eB({},this.props.options),{},{map:this.context}));this.registeredEvents=eo({updaterMap:eH,eventMap:eU,prevProps:{},nextProps:this.props,instance:N}),this.setState(function(){return{drawingManager:N}},this.setDrawingManagerCallback)}componentDidUpdate(N){null!==this.state.drawingManager&&(ei(this.registeredEvents),this.registeredEvents=eo({updaterMap:eH,eventMap:eU,prevProps:N,nextProps:this.props,instance:this.state.drawingManager}))}componentWillUnmount(){null!==this.state.drawingManager&&(this.props.onUnmount&&this.props.onUnmount(this.state.drawingManager),ei(this.registeredEvents),this.state.drawingManager.setMap(null))}render(){return null}}function eq(N,I){var T=Object.keys(N);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(N);I&&(P=P.filter(function(I){return Object.getOwnPropertyDescriptor(N,I).enumerable})),T.push.apply(T,P)}return T}function eG(N){for(var I=1;I<arguments.length;I++){var T=null!=arguments[I]?arguments[I]:{};
1148I%2?eq(Object(T),!0).forEach(function(I){Y(N,I,T[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(T)):eq(Object(T)).forEach(function(I){Object.defineProperty(N,I,Object.getOwnPropertyDescriptor(T,I))})}return N}Y(eW,"contextType",Z);var eK={onAnimationChanged:"animation_changed",onClick:"click",onClickableChanged:"clickable_changed",onCursorChanged:"cursor_changed",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDraggableChanged:"draggable_changed",onDragStart:"dragstart",onFlatChanged:"flat_changed",onIconChanged:"icon_changed",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onPositionChanged:"position_changed",onRightClick:"rightclick",onShapeChanged:"shape_changed",onTitleChanged:"title_changed",onVisibleChanged:"visible_changed",onZindexChanged:"zindex_changed"},eV={animation(N,I){N.setAnimation(I)},clickable(N,I){N.setClickable(I)},cursor(N,I){N.setCursor(I)},draggable(N,I){N.setDraggable(I)},icon(N,I){N.setIcon(I)},label(N,I){N.setLabel(I)},map(N,I){N.setMap(I)},opacity(N,I){N.setOpacity(I)},options(N,I){N.setOptions(I)},position(N,I){N.setPosition(I)},shape(N,I){N.setShape(I)},title(N,I){N.setTitle(I)},visible(N,I){N.setVisible(I)},zIndex(N,I){N.setZIndex(I)}},eY={};function eJ(N){var{position:I,options:T,clusterer:P,noClustererRedraw:D,children:M,draggable:R,visible:L,animation:$,clickable:F,cursor:B,icon:U,label:H,opacity:q,shape:G,title:K,zIndex:V,onClick:Y,onDblClick:J,onDrag:Q,onDragEnd:X,onDragStart:ee,onMouseOut:et,onMouseOver:er,onMouseUp:en,onMouseDown:ea,onRightClick:ei,onClickableChanged:eo,onCursorChanged:es,onAnimationChanged:el,onDraggableChanged:ec,onFlatChanged:eu,onIconChanged:ed,onPositionChanged:ef,onShapeChanged:eh,onTitleChanged:ep,onVisibleChanged:em,onZindexChanged:eg,onLoad:ey,onUnmount:eb}=N,ev=(0,W.useContext)(Z),[ew,ex]=(0,W.useState)(null),[eA,eE]=(0,W.useState)(null),[eS,e_]=(0,W.useState)(null),[ek,eC]=(0,W.useState)(null),[ej,eO]=(0,W.useState)(null),[eN,eI]=(0,W.useState)(null),[eT,eP]=(0,W.useState)(null),[eD,eM]=(0,W.useState)(null),[eR,eL]=(0,W.useState)(null),[e$,eF]=(0,W.useState)(null),[eB,eU]=(0,W.useState)(null),[eH,ez]=(0,W.useState)(null),[eW,eq]=(0,W.useState)(null),[eK,eV]=(0,W.useState)(null),[eJ,eQ]=(0,W.useState)(null),[eZ,eX]=(0,W.useState)(null),[e0,e1]=(0,W.useState)(null),[e2,e3]=(0,W.useState)(null),[e4,e5]=(0,W.useState)(null),[e6,e8]=(0,W.useState)(null),[e7,e9]=(0,W.useState)(null),[te,tt]=(0,W.useState)(null);(0,W.useEffect)(()=>{null!==ew&&ew.setMap(ev)},[ev]),(0,W.useEffect)(()=>{void 0!==T&&null!==ew&&ew.setOptions(T)},[ew,T]),(0,W.useEffect)(()=>{void 0!==R&&null!==ew&&ew.setDraggable(R)},[ew,R]),(0,W.useEffect)(()=>{I&&null!==ew&&ew.setPosition(I)},[ew,I]),(0,W.useEffect)(()=>{void 0!==L&&null!==ew&&ew.setVisible(L)},[ew,L]),(0,W.useEffect)(()=>{null==ew||ew.setAnimation($)},[ew,$]),(0,W.useEffect)(()=>{ew&&void 0!==F&&ew.setClickable(F)},[ew,F]),(0,W.useEffect)(()=>{ew&&void 0!==B&&ew.setCursor(B)},[ew,B]),(0,W.useEffect)(()=>{ew&&void 0!==U&&ew.setIcon(U)},[ew,U]),(0,W.useEffect)(()=>{ew&&void 0!==H&&ew.setLabel(H)},[ew,H]),(0,W.useEffect)(()=>{ew&&void 0!==q&&ew.setOpacity(q)},[ew,q]),(0,W.useEffect)(()=>{ew&&void 0!==G&&ew.setShape(G)},[ew,G]),(0,W.useEffect)(()=>{ew&&void 0!==K&&ew.setTitle(K)},[ew,K]),(0,W.useEffect)(()=>{ew&&void 0!==V&&ew.setZIndex(V)},[ew,V]),(0,W.useEffect)(()=>{ew&&J&&(null!==eA&&google.maps.event.removeListener(eA),eE(google.maps.event.addListener(ew,"dblclick",J)))},[J]),(0,W.useEffect)(()=>{ew&&X&&(null!==eS&&google.maps.event.removeListener(eS),e_(google.maps.event.addListener(ew,"dragend",X)))},[X]),(0,W.useEffect)(()=>{ew&&ee&&(null!==ek&&google.maps.event.removeListener(ek),eC(google.maps.event.addListener(ew,"dragstart",ee)))},[ee]),(0,W.useEffect)(()=>{ew&&ea&&(null!==ej&&google.maps.event.removeListener(ej),eO(google.maps.event.addListener(ew,"mousedown",ea)))},[ea]),(0,W.useEffect)(()=>{ew&&et&&(null!==eN&&google.maps.event.removeListener(eN),eI(google.maps.event.addListener(ew,"mouseout",et)))},[et]),(0,W.useEffect)(()=>{ew&&er&&(null!==eT&&google.maps.event.removeListener(eT),eP(google.maps.event.addListener(ew,"mouseover",er)))},[er]),(0,W.useEffect)(()=>{ew&&en&&(null!==eD&&google.maps.event.removeListener(eD),eM(google.maps.event.addListener(ew,"mouseup",en)))},[en]),(0,W.useEffect)(()=>{ew&&ei&&(null!==eR&&google.maps.event.removeListener(eR),eL(google.maps.event.addListener(ew,"rightclick",ei)))},[ei]),(0,W.useEffect)(()=>{ew&&Y&&(null!==e$&&google.maps.event.removeListener(e$),eF(google.maps.event.addListener(ew,"click",Y)))},[Y]),(0,W.useEffect)(()=>{ew&&Q&&(null!==eB&&google.maps.event.removeListener(eB),eU(google.maps.event.addListener(ew,"drag",Q)))},[Q]),(0,W.useEffect)(()=>{ew&&eo&&(null!==eH&&google.maps.event.removeListener(eH),ez(google.maps.event.addListener(ew,"clickable_changed",eo)))},[eo]),(0,W.useEffect)(()=>{ew&&es&&(null!==eW&&google.maps.event.removeListener(eW),eq(google.maps.event.addListener(ew,"cursor_changed",es)))},[es]),(0,W.useEffect)(()=>{ew&&el&&(null!==eK&&google.maps.event.removeListener(eK),eV(google.maps.event.addListener(ew,"animation_changed",el)))},[el]),(0,W.useEffect)(()=>{ew&&ec&&(null!==eJ&&google.maps.event.removeListener(eJ),eQ(google.maps.event.addListener(ew,"draggable_changed",ec)))},[ec]),(0,W.useEffect)(()=>{ew&&eu&&(null!==eZ&&google.maps.event.removeListener(eZ),eX(google.maps.event.addListener(ew,"flat_changed",eu)))},[eu]),(0,W.useEffect)(()=>{ew&&ed&&(null!==e0&&google.maps.event.removeListener(e0),e1(google.maps.event.addListener(ew,"icon_changed",ed)))},[ed]),(0,W.useEffect)(()=>{ew&&ef&&(null!==e2&&google.maps.event.removeListener(e2),e3(google.maps.event.addListener(ew,"position_changed",ef)))},[ef]),(0,W.useEffect)(()=>{ew&&eh&&(null!==e4&&google.maps.event.removeListener(e4),e5(google.maps.event.addListener(ew,"shape_changed",eh)))},[eh]),(0,W.useEffect)(()=>{ew&&ep&&(null!==e6&&google.maps.event.removeListener(e6),e8(google.maps.event.addListener(ew,"title_changed",ep)))},[ep]),(0,W.useEffect)(()=>{ew&&em&&(null!==e7&&google.maps.event.removeListener(e7),e9(google.maps.event.addListener(ew,"visible_changed",em)))},[em]),(0,W.useEffect)(()=>{ew&&eg&&(null!==te&&google.maps.event.removeListener(te),tt(google.maps.event.addListener(ew,"zindex_changed",eg)))},[eg]),(0,W.useEffect)(()=>{var N=eG(eG(eG({},T||eY),P?eY:{map:ev}),{},{position:I}),M=new google.maps.Marker(N);return P?P.addMarker(M,!!D):M.setMap(ev),I&&M.setPosition(I),void 0!==L&&M.setVisible(L),void 0!==R&&M.setDraggable(R),void 0!==F&&M.setClickable(F),"string"==typeof B&&M.setCursor(B),U&&M.setIcon(U),void 0!==H&&M.setLabel(H),void 0!==q&&M.setOpacity(q),G&&M.setShape(G),"string"==typeof K&&M.setTitle(K),"number"==typeof V&&M.setZIndex(V),J&&eE(google.maps.event.addListener(M,"dblclick",J)),X&&e_(google.maps.event.addListener(M,"dragend",X)),ee&&eC(google.maps.event.addListener(M,"dragstart",ee)),ea&&eO(google.maps.event.addListener(M,"mousedown",ea)),et&&eI(google.maps.event.addListener(M,"mouseout",et)),er&&eP(google.maps.event.addListener(M,"mouseover",er)),en&&eM(google.maps.event.addListener(M,"mouseup",en)),ei&&eL(google.maps.event.addListener(M,"rightclick",ei)),Y&&eF(google.maps.event.addListener(M,"click",Y)),Q&&eU(google.maps.event.addListener(M,"drag",Q)),eo&&ez(google.maps.event.addListener(M,"clickable_changed",eo)),es&&eq(google.maps.event.addListener(M,"cursor_changed",es)),el&&eV(google.maps.event.addListener(M,"animation_changed",el)),ec&&eQ(google.maps.event.addListener(M,"draggable_changed",ec)),eu&&eX(google.maps.event.addListener(M,"flat_changed",eu)),ed&&e1(google.maps.event.addListener(M,"icon_changed",ed)),ef&&e3(google.maps.event.addListener(M,"position_changed",ef)),eh&&e5(google.maps.event.addListener(M,"shape_changed",eh)),ep&&e8(google.maps.event.addListener(M,"title_changed",ep)),em&&e9(google.maps.event.addListener(M,"visible_changed",em)),eg&&tt(google.maps.event.addListener(M,"zindex_changed",eg)),ex(M),ey&&ey(M),()=>{null!==eA&&google.maps.event.removeListener(eA),null!==eS&&google.maps.event.removeListener(eS),null!==ek&&google.maps.event.removeListener(ek),null!==ej&&google.maps.event.removeListener(ej),null!==eN&&google.maps.event.removeListener(eN),null!==eT&&google.maps.event.removeListener(eT),null!==eD&&google.maps.event.removeListener(eD),null!==eR&&google.maps.event.removeListener(eR),null!==e$&&google.maps.event.removeListener(e$),null!==eH&&google.maps.event.removeListener(eH),null!==eW&&google.maps.event.removeListener(eW),null!==eK&&google.maps.event.removeListener(eK),null!==eJ&&google.maps.event.removeListener(eJ),null!==eZ&&google.maps.event.removeListener(eZ),null!==e0&&google.maps.event.removeListener(e0),null!==e2&&google.maps.event.removeListener(e2),null!==e6&&google.maps.event.removeListener(e6),null!==e7&&google.maps.event.removeListener(e7),null!==te&&google.maps.event.removeListener(te),eb&&eb(M),P?P.removeMarker(M,!!D):M&&M.setMap(null)}},[]);var tr=(0,W.useMemo)(()=>M?W.Children.map(M,N=>
1148{if(!(0,W.isValidElement)(N))return N;var I=N;return(0,W.cloneElement)(I,{anchor:ew})}):null,[M,ew]);return(0,z.jsx)(z.Fragment,{children:tr})||null}var eQ=(0,W.memo)(eJ);class eZ extends W.PureComponent{constructor(){super(...arguments),Y(this,"registeredEvents",[])}componentDidMount(){var N=this;return ef(function*(){var I=eG(eG(eG({},N.props.options||eY),N.props.clusterer?eY:{map:N.context}),{},{position:N.props.position});N.marker=new google.maps.Marker(I),N.props.clusterer?N.props.clusterer.addMarker(N.marker,!!N.props.noClustererRedraw):N.marker.setMap(N.context),N.registeredEvents=eo({updaterMap:eV,eventMap:eK,prevProps:{},nextProps:N.props,instance:N.marker}),N.props.onLoad&&N.props.onLoad(N.marker)})()}componentDidUpdate(N){this.marker&&(ei(this.registeredEvents),this.registeredEvents=eo({updaterMap:eV,eventMap:eK,prevProps:N,nextProps:this.props,instance:this.marker}))}componentWillUnmount(){this.marker&&(this.props.onUnmount&&this.props.onUnmount(this.marker),ei(this.registeredEvents),this.props.clusterer?this.props.clusterer.removeMarker(this.marker,!!this.props.noClustererRedraw):this.marker&&this.marker.setMap(null))}render(){return(this.props.children?W.Children.map(this.props.children,N=>{if(!(0,W.isValidElement)(N))return N;var I=N;return(0,W.cloneElement)(I,{anchor:this.marker})}):null)||null}}Y(eZ,"contextType",Z);var eX=function(){function N(I,T){I.getClusterer().extend(N,google.maps.OverlayView),this.cluster=I,this.clusterClassName=this.cluster.getClusterer().getClusterClass(),this.className=this.clusterClassName,this.styles=T,this.center=void 0,this.div=null,this.sums=null,this.visible=!1,this.boundsChangedListener=null,this.url="",this.height=0,this.width=0,this.anchorText=[0,0],this.anchorIcon=[0,0],this.textColor="black",this.textSize=11,this.textDecoration="none",this.fontWeight="bold",this.fontStyle="normal",this.fontFamily="Arial,sans-serif",this.backgroundPosition="0 0",this.cMouseDownInCluster=null,this.cDraggingMapByCluster=null,this.timeOut=null,this.setMap(I.getMap()),this.onBoundsChanged=this.onBoundsChanged.bind(this),this.onMouseDown=this.onMouseDown.bind(this),this.onClick=this.onClick.bind(this),this.onMouseOver=this.onMouseOver.bind(this),this.onMouseOut=this.onMouseOut.bind(this),this.onAdd=this.onAdd.bind(this),this.onRemove=this.onRemove.bind(this),this.draw=this.draw.bind(this),this.hide=this.hide.bind(this),this.show=this.show.bind(this),this.useStyle=this.useStyle.bind(this),this.setCenter=this.setCenter.bind(this),this.getPosFromLatLng=this.getPosFromLatLng.bind(this)}return N.prototype.onBoundsChanged=function(){this.cDraggingMapByCluster=this.cMouseDownInCluster},N.prototype.onMouseDown=function(){this.cMouseDownInCluster=!0,this.cDraggingMapByCluster=!1},N.prototype.onClick=function(N){if(this.cMouseDownInCluster=!1,!this.cDraggingMapByCluster){var I=this.cluster.getClusterer();if(google.maps.event.trigger(I,"click",this.cluster),google.maps.event.trigger(I,"clusterclick",this.cluster),I.getZoomOnClick()){var T=I.getMaxZoom(),P=this.cluster.getBounds(),D=I.getMap();null!==D&&"fitBounds"in D&&D.fitBounds(P),this.timeOut=window.setTimeout(function(){var N=I.getMap();if(null!==N){"fitBounds"in N&&N.fitBounds(P);var D=N.getZoom()||0;null!==T&&D>T&&N.setZoom(T+1)}},100)}N.cancelBubble=!0,N.stopPropagation&&N.stopPropagation()}},N.prototype.onMouseOver=function(){google.maps.event.trigger(this.cluster.getClusterer(),"mouseover",this.cluster)},N.prototype.onMouseOut=function(){google.maps.event.trigger(this.cluster.getClusterer(),"mouseout",this.cluster)},N.prototype.onAdd=function(){this.div=document.createElement("div"),this.div.className=this.className,this.visible&&this.show(),null==(N=this.getPanes())||N.overlayMouseTarget.appendChild(this.div);var N,I=this.getMap();null!==I&&(this.boundsChangedListener=google.maps.event.addListener(I,"bounds_changed",this.onBoundsChanged),this.div.addEventListener("mousedown",this.onMouseDown),this.div.addEventListener("click",this.onClick),this.div.addEventListener("mouseover",this.onMouseOver),this.div.addEventListener("mouseout",this.onMouseOut))},N.prototype.onRemove=function(){this.div&&this.div.parentNode&&(this.hide(),null!==this.boundsChangedListener&&google.maps.event.removeListener(this.boundsChangedListener),this.div.removeEventListener("mousedown",this.onMouseDown),this.div.removeEventListener("click",this.onClick),this.div.removeEventListener("mouseover",this.onMouseOver),this.div.removeEventListener("mouseout",this.onMouseOut),this.div.parentNode.removeChild(this.div),null!==this.timeOut&&(window.clearTimeout(this.timeOut),this.timeOut=null),this.div=null)},N.prototype.draw=function(){if(this.visible&&null!==this.div&&this.center){var N=this.getPosFromLatLng(this.center);this.div.style.top=null!==N?"".concat(N.y,"px"):"0",this.div.style.left=null!==N?"".concat(N.x,"px"):"0"}},N.prototype.hide=function(){this.div&&(this.div.style.display="none"),this.visible=!1},N.prototype.show=function(){var N,I,T,P,D,M;
1148if(this.div&&this.center){var R=null===this.sums||void 0===this.sums.title||""===this.sums.title?this.cluster.getClusterer().getTitle():this.sums.title,L=this.backgroundPosition.split(" "),$=parseInt((null==(N=L[0])?void 0:N.replace(/^\s+|\s+$/g,""))||"0",10),F=parseInt((null==(I=L[1])?void 0:I.replace(/^\s+|\s+$/g,""))||"0",10),B=this.getPosFromLatLng(this.center);this.div.className=this.className,this.div.setAttribute("style","cursor: pointer; position: absolute; top: ".concat(null!==B?"".concat(B.y,"px"):"0","; left: ").concat(null!==B?"".concat(B.x,"px"):"0","; width: ").concat(this.width,"px; height: ").concat(this.height,"px; "));var U=document.createElement("img");U.alt=R,U.src=this.url,U.width=this.width,U.height=this.height,U.setAttribute("style","position: absolute; top: ".concat(F,"px; left: ").concat($,"px")),this.cluster.getClusterer().enableRetinaIcons||(U.style.clip="rect(-".concat(F,"px, -").concat($+this.width,"px, -").concat(F+this.height,", -").concat($,")"));var H=document.createElement("div");H.setAttribute("style","position: absolute; top: ".concat(this.anchorText[0],"px; left: ").concat(this.anchorText[1],"px; color: ").concat(this.textColor,"; font-size: ").concat(this.textSize,"px; font-family: ").concat(this.fontFamily,"; font-weight: ").concat(this.fontWeight,"; fontStyle: ").concat(this.fontStyle,"; text-decoration: ").concat(this.textDecoration,"; text-align: center; width: ").concat(this.width,"px; line-height: ").concat(this.height,"px")),(null==(T=this.sums)?void 0:T.text)&&(H.innerText="".concat(null==(P=this.sums)?void 0:P.text)),(null==(D=this.sums)?void 0:D.html)&&(H.innerHTML="".concat(null==(M=this.sums)?void 0:M.html)),this.div.innerHTML="",this.div.appendChild(U),this.div.appendChild(H),this.div.title=R,this.div.style.display=""}this.visible=!0},N.prototype.useStyle=function(N){this.sums=N;var I=this.cluster.getClusterer().getStyles(),T=I[Math.min(I.length-1,Math.max(0,N.index-1))];T&&(this.url=T.url,this.height=T.height,this.width=T.width,T.className&&(this.className="".concat(this.clusterClassName," ").concat(T.className)),this.anchorText=T.anchorText||[0,0],this.anchorIcon=T.anchorIcon||[this.height/2,this.width/2],this.textColor=T.textColor||"black",this.textSize=T.textSize||11,this.textDecoration=T.textDecoration||"none",this.fontWeight=T.fontWeight||"bold",this.fontStyle=T.fontStyle||"normal",this.fontFamily=T.fontFamily||"Arial,sans-serif",this.backgroundPosition=T.backgroundPosition||"0 0")},N.prototype.setCenter=function(N){this.center=N},N.prototype.getPosFromLatLng=function(N){var I=this.getProjection().fromLatLngToDivPixel(N);return null!==I&&(I.x-=this.anchorIcon[1],I.y-=this.anchorIcon[0]),I},N}(),e0=function(){function N(N){this.markerClusterer=N,this.map=this.markerClusterer.getMap(),this.gridSize=this.markerClusterer.getGridSize(),this.minClusterSize=this.markerClusterer.getMinimumClusterSize(),this.averageCenter=this.markerClusterer.getAverageCenter(),this.markers=[],this.center=void 0,this.bounds=null,this.clusterIcon=new eX(this,this.markerClusterer.getStyles()),this.getSize=this.getSize.bind(this),this.getMarkers=this.getMarkers.bind(this),this.getCenter=this.getCenter.bind(this),this.getMap=this.getMap.bind(this),this.getClusterer=this.getClusterer.bind(this),this.getBounds=this.getBounds.bind(this),this.remove=this.remove.bind(this),this.addMarker=this.addMarker.bind(this),this.isMarkerInClusterBounds=this.isMarkerInClusterBounds.bind(this),this.calculateBounds=this.calculateBounds.bind(this),this.updateIcon=this.updateIcon.bind(this),this.isMarkerAlreadyAdded=this.isMarkerAlreadyAdded.bind(this)}return N.prototype.getSize=function(){return this.markers.length},N.prototype.getMarkers=function(){return this.markers},N.prototype.getCenter=function(){return this.center},N.prototype.getMap=function(){return this.map},N.prototype.getClusterer=function(){return this.markerClusterer},N.prototype.getBounds=function(){for(var N=new google.maps.LatLngBounds(this.center,this.center),I=this.getMarkers(),T=0,P=I;T<P.length;T++){var D=P[T].getPosition();D&&N.extend(D)}return N},N.prototype.remove=function(){this.clusterIcon.setMap(null),this.markers=[],delete this.markers},N.prototype.addMarker=function(N){if(this.isMarkerAlreadyAdded(N))return!1;if(this.center){if(this.averageCenter){var I=N.getPosition();
1148if(I){var T=this.markers.length+1;this.center=new google.maps.LatLng((this.center.lat()*(T-1)+I.lat())/T,(this.center.lng()*(T-1)+I.lng())/T),this.calculateBounds()}}}else{var P,I=N.getPosition();I&&(this.center=I,this.calculateBounds())}N.isAdded=!0,this.markers.push(N);var D=this.markers.length,M=this.markerClusterer.getMaxZoom(),R=null==(P=this.map)?void 0:P.getZoom();if(null!==M&&void 0!==R&&R>M)N.getMap()!==this.map&&N.setMap(this.map);else if(D<this.minClusterSize)N.getMap()!==this.map&&N.setMap(this.map);else if(D===this.minClusterSize)for(var L=0,$=this.markers;L<$.length;L++)$[L].setMap(null);else N.setMap(null);return!0},N.prototype.isMarkerInClusterBounds=function(N){if(null!==this.bounds){var I=N.getPosition();if(I)return this.bounds.contains(I)}return!1},N.prototype.calculateBounds=function(){this.bounds=this.markerClusterer.getExtendedBounds(new google.maps.LatLngBounds(this.center,this.center))},N.prototype.updateIcon=function(){var N,I=this.markers.length,T=this.markerClusterer.getMaxZoom(),P=null==(N=this.map)?void 0:N.getZoom();null!==T&&void 0!==P&&P>T||I<this.minClusterSize?this.clusterIcon.hide():(this.center&&this.clusterIcon.setCenter(this.center),this.clusterIcon.useStyle(this.markerClusterer.getCalculator()(this.markers,this.markerClusterer.getStyles().length)),this.clusterIcon.show())},N.prototype.isMarkerAlreadyAdded=function(N){if(this.markers.includes)return this.markers.includes(N);for(var I=0;I<this.markers.length;I++)if(N===this.markers[I])return!0;return!1},N}();function e1(N,I){var T=N.length,P=Math.min(T.toString().length,I);return{text:T.toString(),index:P,title:""}}var e2=2e3,e3=500,e4="https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m",e5="png",e6=[53,56,66,78,90],e8="cluster",e7=function(){function N(I,T,P){void 0===T&&(T=[]),void 0===P&&(P={}),this.getMinimumClusterSize=this.getMinimumClusterSize.bind(this),this.setMinimumClusterSize=this.setMinimumClusterSize.bind(this),this.getEnableRetinaIcons=this.getEnableRetinaIcons.bind(this),this.setEnableRetinaIcons=this.setEnableRetinaIcons.bind(this),this.addToClosestCluster=this.addToClosestCluster.bind(this),this.getImageExtension=this.getImageExtension.bind(this),this.setImageExtension=this.setImageExtension.bind(this),this.getExtendedBounds=this.getExtendedBounds.bind(this),this.getAverageCenter=this.getAverageCenter.bind(this),this.setAverageCenter=this.setAverageCenter.bind(this),this.getTotalClusters=this.getTotalClusters.bind(this),this.fitMapToMarkers=this.fitMapToMarkers.bind(this),this.getIgnoreHidden=this.getIgnoreHidden.bind(this),this.setIgnoreHidden=this.setIgnoreHidden.bind(this),this.getClusterClass=this.getClusterClass.bind(this),this.setClusterClass=this.setClusterClass.bind(this),this.getTotalMarkers=this.getTotalMarkers.bind(this),this.getZoomOnClick=this.getZoomOnClick.bind(this),this.setZoomOnClick=this.setZoomOnClick.bind(this),this.getBatchSizeIE=this.getBatchSizeIE.bind(this),this.setBatchSizeIE=this.setBatchSizeIE.bind(this),this.createClusters=this.createClusters.bind(this),this.onZoomChanged=this.onZoomChanged.bind(this),this.getImageSizes=this.getImageSizes.bind(this),this.setImageSizes=this.setImageSizes.bind(this),this.getCalculator=this.getCalculator.bind(this),this.setCalculator=this.setCalculator.bind(this),this.removeMarkers=this.removeMarkers.bind(this),this.resetViewport=this.resetViewport.bind(this),this.getImagePath=this.getImagePath.bind(this),this.setImagePath=this.setImagePath.bind(this),this.pushMarkerTo=this.pushMarkerTo.bind(this),this.removeMarker=this.removeMarker.bind(this),this.clearMarkers=this.clearMarkers.bind(this),this.setupStyles=this.setupStyles.bind(this),this.getGridSize=this.getGridSize.bind(this),this.setGridSize=this.setGridSize.bind(this),this.getClusters=this.getClusters.bind(this),this.getMaxZoom=this.getMaxZoom.bind(this),this.setMaxZoom=this.setMaxZoom.bind(this),this.getMarkers=this.getMarkers.bind(this),this.addMarkers=this.addMarkers.bind(this),this.getStyles=this.getStyles.bind(this),this.setStyles=this.setStyles.bind(this),this.addMarker=this.addMarker.bind(this),this.onRemove=this.onRemove.bind(this),this.getTitle=this.getTitle.bind(this),this.setTitle=this.setTitle.bind(this),this.repaint=this.repaint.bind(this),this.onIdle=this.onIdle.bind(this),this.redraw=this.redraw.bind(this),this.onAdd=this.onAdd.bind(this),this.draw=this.draw.bind(this),this.extend=this.extend.bind(this),this.extend(N,google.maps.OverlayView),this.markers=[],this.cluster
1148s=[],this.listeners=[],this.activeMap=null,this.ready=!1,this.gridSize=P.gridSize||60,this.minClusterSize=P.minimumClusterSize||2,this.maxZoom=P.maxZoom||null,this.styles=P.styles||[],this.title=P.title||"",this.zoomOnClick=!0,void 0!==P.zoomOnClick&&(this.zoomOnClick=P.zoomOnClick),this.averageCenter=!1,void 0!==P.averageCenter&&(this.averageCenter=P.averageCenter),this.ignoreHidden=!1,void 0!==P.ignoreHidden&&(this.ignoreHidden=P.ignoreHidden),this.enableRetinaIcons=!1,void 0!==P.enableRetinaIcons&&(this.enableRetinaIcons=P.enableRetinaIcons),this.imagePath=P.imagePath||e4,this.imageExtension=P.imageExtension||e5,this.imageSizes=P.imageSizes||e6,this.calculator=P.calculator||e1,this.batchSize=P.batchSize||e2,this.batchSizeIE=P.batchSizeIE||e3,this.clusterClass=P.clusterClass||e8,-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(this.batchSize=this.batchSizeIE),this.timerRefStatic=null,this.setupStyles(),this.addMarkers(T,!0),this.setMap(I)}return N.prototype.onZoomChanged=function(){var N,I;this.resetViewport(!1),((null==(N=this.getMap())?void 0:N.getZoom())===(this.get("minZoom")||0)||(null==(I=this.getMap())?void 0:I.getZoom())===this.get("maxZoom"))&&google.maps.event.trigger(this,"idle")},N.prototype.onIdle=function(){this.redraw()},N.prototype.onAdd=function(){var N=this.getMap();this.activeMap=N,this.ready=!0,this.repaint(),null!==N&&(this.listeners=[google.maps.event.addListener(N,"zoom_changed",this.onZoomChanged),google.maps.event.addListener(N,"idle",this.onIdle)])},N.prototype.onRemove=function(){for(var N=0,I=this.markers;N<I.length;N++){var T=I[N];T.getMap()!==this.activeMap&&T.setMap(this.activeMap)}
1148for(var P=0,D=this.clusters;P<D.length;P++)D[P].remove();this.clusters=[];for(var M=0,R=this.listeners;M<R.length;M++){var L=R[M];google.maps.event.removeListener(L)}this.listeners=[],this.activeMap=null,this.ready=!1},N.prototype.draw=function(){},N.prototype.getMap=function(){return null},N.prototype.getPanes=function(){return null},N.prototype.getProjection=function(){return{fromContainerPixelToLatLng:function(){return null},fromDivPixelToLatLng:function(){return null},fromLatLngToContainerPixel:function(){return null},fromLatLngToDivPixel:function(){return null},getVisibleRegion:function(){return null},getWorldWidth:function(){return 0}}},N.prototype.setMap=function(){},N.prototype.addListener=function(){return{remove:function(){}}},N.prototype.bindTo=function(){},N.prototype.get=function(){},N.prototype.notify=function(){},N.prototype.set=function(){},N.prototype.setValues=function(){},N.prototype.unbind=function(){},N.prototype.unbindAll=function(){},N.prototype.setupStyles=function(){if(!(this.styles.length>0))for(var N=0;N<this.imageSizes.length;N++)this.styles.push({url:"".concat(this.imagePath+(N+1),".").concat(this.imageExtension),height:this.imageSizes[N]||0,width:this.imageSizes[N]||0})},N.prototype.fitMapToMarkers=function(){for(var N=this.getMarkers(),I=new google.maps.LatLngBounds,T=0,P=N;T<P.length;T++){var D=P[T].getPosition();D&&I.extend(D)}var M=this.getMap();null!==M&&"fitBounds"in M&&M.fitBounds(I)},N.prototype.getGridSize=function(){return this.gridSize},N.prototype.setGridSize=function(N){this.gridSize=N},N.prototype.getMinimumClusterSize=function(){return this.minClusterSize},N.prototype.setMinimumClusterSize=function(N){this.minClusterSize=N},N.prototype.getMaxZoom=function(){return this.maxZoom},N.prototype.setMaxZoom=function(N){this.maxZoom=N},N.prototype.getStyles=function(){return this.styles},N.prototype.setStyles=function(N){this.styles=N},N.prototype.getTitle=function(){return this.title},N.prototype.setTitle=function(N){this.title=N},N.prototype.getZoomOnClick=function(){return this.zoomOnClick},N.prototype.setZoomOnClick=function(N){this.zoomOnClick=N},N.prototype.getAverageCenter=function(){return this.averageCenter},N.prototype.setAverageCenter=function(N){this.averageCenter=N},N.prototype.getIgnoreHidden=function(){return this.ignoreHidden},N.prototype.setIgnoreHidden=function(N){this.ignoreHidden=N},N.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons},N.prototype.setEnableRetinaIcons=function(N){this.enableRetinaIcons=N},N.prototype.getImageExtension=function(){return this.imageExtension},N.prototype.setImageExtension=function(N){this.imageExtension=N},N.prototype.getImagePath=function(){return this.imagePath},N.prototype.setImagePath=function(N){this.imagePath=N},N.prototype.getImageSizes=function(){return this.imageSizes},N.prototype.setImageSizes=function(N){this.imageSizes=N},N.prototype.getCalculator=function(){return this.calculator},N.prototype.setCalculator=function(N){this.calculator=N},N.prototype.getBatchSizeIE=function(){return this.batchSizeIE},N.prototype.setBatchSizeIE=function(N){this.batchSizeIE=N},N.prototype.getClusterClass=function(){return this.clusterClass},N.prototype.setClusterClass=function(N){this.clusterClass=N},N.prototype.getMarkers=function(){return this.markers},N.prototype.getTotalMarkers=function(){return this.markers.length},N.prototype.getClusters=function(){return this.clusters},N.prototype.getTotalClusters=function(){return this.clusters.length},N.prototype.addMarker=function(N,I){this.pushMarkerTo(N),I||this.redraw()},N.prototype.addMarkers=function(N,I){for(var T in N)if(Object.prototype.hasOwnProperty.call(N,T)){var P=N[T];P&&this.pushMarkerTo(P)}I||this.redraw()},N.prototype.pushMarkerTo=function(N){var I=this;N.getDraggable()&&google.maps.event.addListener(N,"dragend",function(){I.ready&&(N.isAdded=!1,I.repaint())}),N.isAdded=!1,this.markers.push(N)},N.prototype.removeMarker_=function(N){var I=-1;if(this.markers.indexOf)I=this.markers.indexOf(N);else for(var T=0;T<this.markers.length;T++)if(N===this.markers[T]){I=T;break}return -1!==I&&(N.setMap(null),this.markers.splice(I,1),!0)},N.prototype.removeMarker=function(N,I){var T=this.removeMarker_(N);return!I&&T&&this.repaint(),T},N.prototype.removeMarkers=function(N,I){for(var T=!1,P=0,D=N;P<D.length;P++){var M=D[P];T=T||this.removeMarker_(M)}return!I&&T&&this.repaint(),T},N.prototype.clearMarkers=function(){this.resetViewport(!0),this.markers=[]}
1148,N.prototype.repaint=function(){var N=this.clusters.slice();this.clusters=[],this.resetViewport(!1),this.redraw(),setTimeout(function(){for(var I=0,T=N;I<T.length;I++)T[I].remove()},0)},N.prototype.getExtendedBounds=function(N){var I=this.getProjection(),T=I.fromLatLngToDivPixel(new google.maps.LatLng(N.getNorthEast().lat(),N.getNorthEast().lng()));null!==T&&(T.x+=this.gridSize,T.y-=this.gridSize);var P=I.fromLatLngToDivPixel(new google.maps.LatLng(N.getSouthWest().lat(),N.getSouthWest().lng()));if(null!==P&&(P.x-=this.gridSize,P.y+=this.gridSize),null!==T){var D=I.fromDivPixelToLatLng(T);null!==D&&N.extend(D)}if(null!==P){var M=I.fromDivPixelToLatLng(P);null!==M&&N.extend(M)}return N},N.prototype.redraw=function(){this.createClusters(0)},N.prototype.resetViewport=function(N){for(var I=0,T=this.clusters;I<T.length;I++)T[I].remove();this.clusters=[];for(var P=0,D=this.markers;P<D.length;P++){var M=D[P];M.isAdded=!1,N&&M.setMap(null)}},N.prototype.distanceBetweenPoints=function(N,I){var T=6371,P=(I.lat()-N.lat())*Math.PI/180,D=(I.lng()-N.lng())*Math.PI/180,M=Math.sin(P/2)*Math.sin(P/2)+Math.cos(N.lat()*Math.PI/180)*Math.cos(I.lat()*Math.PI/180)*Math.sin(D/2)*Math.sin(D/2);return 2*Math.atan2(Math.sqrt(M),Math.sqrt(1-M))*T},N.prototype.isMarkerInBounds=function(N,I){var T=N.getPosition();return!!T&&I.contains(T)},N.prototype.addToClosestCluster=function(N){for(var I,T=4e4,P=null,D=0,M=this.cluster
1148s;D<M.length;D++){var R=(I=M[D]).getCenter(),L=N.getPosition();if(R&&L){var $=this.distanceBetweenPoints(R,L);$<T&&(T=$,P=I)}}P&&P.isMarkerInClusterBounds(N)?P.addMarker(N):((I=new e0(this)).addMarker(N),this.clusters.push(I))},N.prototype.createClusters=function(N){var I=this;if(this.ready){0===N&&(google.maps.event.trigger(this,"clusteringbegin",this),null!==this.timerRefStatic&&(window.clearTimeout(this.timerRefStatic),delete this.timerRefStatic));for(var T=this.getMap(),P=null!==T&&("getBounds"in T)?T.getBounds():null,D=(null==T?void 0:T.getZoom())||0,M=D>3?new google.maps.LatLngBounds(null==P?void 0:P.getSouthWest(),null==P?void 0:P.getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625)),R=this.getExtendedBounds(M),L=Math.min(N+this.batchSize,this.markers.length),$=N;$<L;$++){var F=this.markers[$];F&&!F.isAdded&&this.isMarkerInBounds(F,R)&&(!this.ignoreHidden||this.ignoreHidden&&F.getVisible())&&this.addToClosestCluster(F)}if(L<this.markers.length)this.timerRefStatic=window.setTimeout(function(){I.createClusters(L)},0);else{this.timerRefStatic=null,google.maps.event.trigger(this,"clusteringend",this);
1148for(var B=0,U=this.clusters;B<U.length;B++)U[B].updateIcon()}}},N.prototype.extend=function(N,I){return(function(N){for(var I in N.prototype){var T=I;this.prototype[T]=N.prototype[T]}return this}).apply(N,[I])},N}();function e9(N,I){var T=Object.keys(N);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(N);I&&(P=P.filter(function(I){return Object.getOwnPropertyDescriptor(N,I).enumerable})),T.push.apply(T,P)}return T}function te(N){for(var I=1;I<arguments.length;I++){var T=null!=arguments[I]?arguments[I]:{};I%2?e9(Object(T),!0).forEach(function(I){Y(N,I,T[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(T)):e9(Object(T)).forEach(function(I){Object.defineProperty(N,I,Object.getOwnPropertyDescriptor(T,I))})}return N}var tt={onClick:"click",onClusteringBegin:"clusteringbegin",onClusteringEnd:"clusteringend",onMouseOut:"mouseout",onMouseOver:"mouseover"},tr={averageCenter(N,I){N.setAverageCenter(I)},batchSizeIE(N,I){N.setBatchSizeIE(I)},calculator(N,I){N.setCalculator(I)},clusterClass(N,I){N.setClusterClass(I)},enableRetinaIcons(N,I){N.setEnableRetinaIcons(I)},gridSize(N,I){N.setGridSize(I)},ignoreHidden(N,I){N.setIgnoreHidden(I)},imageExtension(N,I){N.setImageExtension(I)},imagePath(N,I){N.setImagePath(I)},imageSizes(N,I){N.setImageSizes(I)},maxZoom(N,I){N.setMaxZoom(I)},minimumClusterSize(N,I){N.setMinimumClusterSize(I)},styles(N,I){N.setStyles(I)},title(N,I){N.setTitle(I)},zoomOnClick(N,I){N.setZoomOnClick(I)}},tn={};function ta(N){var{children:I,options:T,averageCenter:P,batchSizeIE:D,calculator:M,clusterClass:R,enableRetinaIcons:L,gridSize:$,ignoreHidden:F,imageExtension:B,imagePath:U,imageSizes:H,maxZoom:z,minimumClusterSize:q,styles:G,title:K,zoomOnClick:V,onClick:Y,onClusteringBegin:J,onClusteringEnd:Q,onMouseOver:X,onMouseOut:ee,onLoad:et,onUnmount:er}=N,[en,ea]=(0,W.useState)(null),ei=(0,W.useContext)(Z),[eo,es]=(0,W.useState)(null),[el,ec]=(0,W.useState)(null),[eu,ed]=(0,W.useState)(null),[ef,eh]=(0,W.useState)(null),[ep,em]=(0,W.useState)(null);return(0,W.useEffect)(()=>{en&&ee&&(null!==ef&&google.maps.event.removeListener(ef),eh(google.maps.event.addListener(en,tt.onMouseOut,ee)))},[ee]),(0,W.useEffect)(()=>{en&&X&&(null!==ep&&google.maps.event.removeListener(ep),em(google.maps.event.addListener(en,tt.onMouseOver,X)))},[X]),(0,W.useEffect)(()=>{en&&Y&&(null!==eo&&google.maps.event.removeListener(eo),es(google.maps.event.addListener(en,tt.onClick,Y)))},[Y]),(0,W.useEffect)(()=>{en&&J&&(null!==el&&google.maps.event.removeListener(el),ec(google.maps.event.addListener(en,tt.onClusteringBegin,J)))},[J]),(0,W.useEffect)(()=>{en&&Q&&(null!==eu&&google.maps.event.removeListener(eu),ec(google.maps.event.addListener(en,tt.onClusteringEnd,Q)))},[Q]),(0,W.useEffect)(()=>{void 0!==P&&null!==en&&tr.averageCenter(en,P)},[en,P]),(0,W.useEffect)(()=>{void 0!==D&&null!==en&&tr.batchSizeIE(en,D)},[en,D]),(0,W.useEffect)(()=>{void 0!==M&&null!==en&&tr.calculator(en,M)},[en,M]),(0,W.useEffect)(()=>{void 0!==R&&null!==en&&tr.clusterClass(en,R)},[en,R]),(0,W.useEffect)(()=>{void 0!==L&&null!==en&&tr.enableRetinaIcons(en,L)},[en,L]),(0,W.useEffect)(()=>{void 0!==$&&null!==en&&tr.gridSize(en,$)},[en,$]),(0,W.useEffect)(()=>{void 0!==F&&null!==en&&tr.ignoreHidden(en,F)},[en,F]),(0,W.useEffect)(()=>{void 0!==B&&null!==en&&tr.imageExtension(en,B)},[en,B]),(0,W.useEffect)(()=>{void 0!==U&&null!==en&&tr.imagePath(en,U)},[en,U]),(0,W.useEffect)(()=>{void 0!==H&&null!==en&&tr.imageSizes(en,H)},[en,H]),(0,W.useEffect)(()=>{void 0!==z&&null!==en&&tr.maxZoom(en,z)},[en,z]),(0,W.useEffect)(()=>{void 0!==q&&null!==en&&tr.minimumClusterSize(en,q)},[en,q]),(0,W.useEffect)(()=>{void 0!==G&&null!==en&&tr.styles(en,G)},[en,G]),(0,W.useEffect)(()=>{void 0!==K&&null!==en&&tr.title(en,K)},[en,K]),(0,W.useEffect)(()=>{void 0!==V&&null!==en&&tr.zoomOnClick(en,V)},[en,V]),(0,W.useEffect)(()=>{if(ei){var N=te({},T||tn),I=new e7(ei,[],N);return P&&tr.averageCenter(I,P),D&&tr.batchSizeIE(I,D),M&&tr.calculator(I,M),R&&tr.clusterClass(I,R),L&&tr.enableRetinaIcons(I,L),$&&tr.gridSize(I,$),F&&tr.ignoreHidden(I,F),B&&tr.imageExtension(I,B),U&&tr.imagePath(I,U),H&&tr.imageSizes(I,H),z&&tr.maxZoom(I,z),q&&tr.minimumClusterSize(I,q),G&&tr.styles(I,G),K&&tr.title(I,K),V&&tr.zoomOnClick(I,V),ee&&eh(google.maps.event.addListener(I,tt.onMouseOut,ee)),X&&em(google.maps.event.addListener(I,tt.onMouseOver,X)),Y&&es(google.maps.event.addListener(I,tt.onClick,Y)),J&&ec(google.maps.event.addListener(I,tt.onClusteringBegin,J)),Q&&ed(google.maps.event.addListener(I,tt.onClusteringEnd,Q)),ea(I),et&&et(I),()=>{null!==ef&&google.maps.event.removeListener(ef),null!==ep&&google.maps.event.removeListener(ep),null!==eo&&google.maps.event.removeListener(eo),null!==el&&google.maps.event.removeListener(el),null!==eu&&google.maps.event.removeListener(eu),er&&er(I)}}},[]),null!==en&&I(en)||null}(0,W.memo)(ta);class ti extends W.PureComponent{constructor(){super(...arguments),Y(this,"registeredEvents",[]),Y(this,"state",{markerClusterer:null}),Y(this,"setClustererCallback",()=>{null!==this.state.markerClusterer&&this.props.onLoad&&this.props.onLoad(this.state.markerClusterer)})}componentDidMount(){if(this.context){var N=new e7(this.context,[],this.props.options);this.registeredEvents=eo({updaterMap:tr,eventMap:tt,prevProps:{},nextProps:this.props,instance:N}),this.setState(()=>({markerClusterer:N}),this.setClustererCallback)}}componentDidUpdate(N){this.state.markerClusterer&&(ei(this.registeredEvents),this.registeredEvents=eo({updaterMap:tr,eventMap:tt,prevProps:N,nextProps:this.props,instance:this.state.markerClusterer}))}componentWillUnmount(){null!==this.state.markerClusterer&&(this.props.onUnmount&&this.props.onUnmount(this.state.markerClusterer),ei(this.registeredEvents),this.state.markerClusterer.setMap(null))}render(){return null!==this.state.markerClusterer?this.props.children(this.state.markerClusterer):null}}function to(N){N.cancelBubble=!0,N.stopPropagation&&N.stopPropagation()}Y(ti,"contextType",Z);var ts=function(){function N(I){void 0===I&&(I={}),this.getCloseClickHandler=this.getCloseClickHandler.bind(this),this.closeClickHandler=this.closeClickHandler.bind(this),this.createInfoBoxDiv=this.createInfoBoxDiv.bind(this),this.addClickHandler=this.addClickHandler.bind(this),this.getCloseBoxImg=this.getCloseBoxImg.b
1148ind(this),this.getBoxWidths=this.getBoxWidths.bind(this),this.setBoxStyle=this.setBoxStyle.bind(this),this.setPosition=this.setPosition.bind(this),this.getPosition=this.getPosition.bind(this),this.setOptions=this.setOptions.bind(this),this.setContent=this.setContent.bind(this),this.setVisible=this.setVisible.bind(this),this.getContent=this.getContent.bind(this),this.getVisible=this.getVisible.bind(this),this.setZIndex=this.setZIndex.bind(this),this.getZIndex=this.getZIndex.bind(this),this.onRemove=this.onRemove.bind(this),this.panBox=this.panBox.bind(this),this.extend=this.extend.bind(this),this.close=this.close.bind(this),this.draw=this.draw.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.open=this.open.bind(this),this.extend(N,google.maps.OverlayView),this.content=I.content||"",this.disableAutoPan=I.disableAutoPan||!1,this.maxWidth=I.maxWidth||0,this.pixelOffset=I.pixelOffset||new google.maps.Size(0,0),this.position=I.position||new google.maps.LatLng(0,0),this.zIndex=I.zIndex||null,this.boxClass=I.boxClass||"infoBox",this.boxStyle=I.boxStyle||{},this.closeBoxMargin=I.closeBoxMargin||"2px",this.closeBoxURL=I.closeBoxURL||"http://www.google.com/intl/en_us/mapfiles/close.gif",""===I.closeBoxURL&&(this.closeBoxURL=""),this.infoBoxClearance=I.infoBoxClearance||new google.maps.Size(1,1),void 0===I.visible&&(void 0===I.isHidden?I.visible=!0:I.visible=!I.isHidden),this.isHidden=!I.visible,this.alignBottom=I.alignBottom||!1,this.pane=I.pane||"floatPane",this.enableEventPropagation=I.enableEventPropagation||!1,this.div=null,this.closeListener=null,this.moveListener=null,this.mapListener=null,this.contextListener=null,this.eventListeners=null,this.fixedWidthSet=null}return N.prototype.createInfoBoxDiv=function(){var N=this,I=function(I){I.returnValue=!1,I.preventDefault&&I.preventDefault(),N.enableEventPropagation||to(I)};if(!this.div){this.div=document.createElement("div"),this.setBoxStyle(),"string"==typeof this.content?this.div.innerHTML=this.getCloseBoxImg()+this.content:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(this.content));var T=this.getPanes();if(null!==T&&T[this.pane].appendChild(this.div),this.addClickHandler(),this.div.style.width)this.fixedWidthSet=!0;else if(0!==this.maxWidth&&this.div.offsetWidth>this.maxWidth)this.div.style.width=this.maxWidth+"px",this.fixedWidthSet=!0;else{var P=this.getBoxWidths();this.div.style.width=this.div.offsetWidth-P.left-P.right+"px",this.fixedWidthSet=!1}if(this.panBox(this.disableAutoPan),!this.enableEventPropagation){this.eventListeners=[];for(var D=["mousedown","mouseover","mouseout","mouseup","click","dblclick","touchstart","touchend","touchmove"],M=0,R=D;M<R.length;M++){var L=R[M];this.eventListeners.push(google.maps.event.addListener(this.div,L,to))}this.eventListeners.push(google.maps.event.addListener(this.div,"mouseover",function(){N.div&&(N.div.style.cursor="default")}))}this.contextListener=google.maps.event.addListener(this.div,"contextmenu",I),google.maps.event.trigger(this,"domready")}},N.prototype.getCloseBoxImg=function(){var N="";return""!==this.closeBoxURL&&(N='<img alt="" aria-hidden="true" src=\''+this.closeBoxURL+"' align=right style=' position: relative; cursor: pointer;"+(" margin: "+this.closeBoxMargin)+";'>"),N},N.prototype.addClickHandler=function(){this.closeListener=this.div&&this.div.firstChild&&""!==this.closeBoxURL?google.maps.event.addListener(this.div.firstChild,"click",this.getCloseClickHandler()):null},N.prototype.closeClickHandler=function(N){N.cancelBubble=!0,N.stopPropagation&&N.stopPropagation(),google.maps.event.trigger(this,"closeclick"),this.close()},N.prototype.getCloseClickHandler=function(){return this.closeClickHandler},N.prototype.panBox=function(N){if(this.div&&!N){var I=this.getMap();if(I instanceof google.maps.Map){var T=0,P=0,D=I.getBounds();D&&!D.contains(this.position)&&I.setCenter(this.position);var M=I.getDiv(),R=M.offsetWidth,L=M.offsetHeight,$=this.pixelOffset.width,F=this.pixelOffset.height,B=this.div.offsetWidth,U=this.div.offsetHeight,H=this.infoBoxClearance.width,z=this.infoBoxClearance.height,W=this.getProjection().fromLatLngToContainerPixel(this.position);null!==W&&(W.x<-$+H?T=W.x+$-H:W.x+B+$+H>R&&(T=W.x+B+$+H-R),this.alignBottom?W.y<-F+z+U?P=W.y+F-z-U:W.y+F+z>L&&(P=W.y+F+z-L):W.y<-F+z?P=W.y+F-z:W.y+U+F+z>L&&(P=W.y+U+F+z-L)),(0!==T||0!==P)&&I.panBy(T,P)}}},N.prototype.setBoxStyle=function(){if(this.div){this.div.className=this.boxClass,this.div.style.cssText="";var N=this.boxStyle;for(var I in N)Object.prototype.hasOwnProperty.call(N,I)&&(this.div.style[I]=N[I]);if(this.div.style.webkitTransform="translateZ(0)",void 0!==this.div.style.opacity&&""!==this.div.style.opacity){var T=parseFloat(this.div.style.opacity||"");this.div.style.msFilter='"progid:DXImageTransform.Microsoft.Alpha(Opacity='+100*T+')"',this.div.style.filter="alpha(opacity="+100*T+")"}this.div.style.position="absolute",this.div.style.visibility="hidden",null!==this.zIndex&&(this.div.style.zIndex=this.zIndex+""),this.div.style.overflow||(this.div.style.overflow="auto")}},N.prototype.getBoxWidths=function(){var N={top:0,bottom:0,left:0,right:0};if(!this.div)return N;if(document.defaultView){var I=this.div.ownerDocument,T=I&&I.defaultView?I.defaultView.getComputedStyle(this.div,""):null;T&&(N.top=parseInt(T.borderTopWidth||"",10)||0,N.bottom=parseInt(T.borderBottomWidth||"",10)||0,N.left=parseInt(T.borderLeftWidth||"",10)||0,N.right=parseInt(T.borderRightWidth||"",10)||0)}else if(document.documentElement.currentStyle){var P=this.div.currentStyle;P&&(N.top=parseInt(P.borderTopWidth||"",10)||0,N.bottom=parseInt(P.borderBottomWidth||"",10)||0,N.left=parseInt(P.borderLeftWidth||"",10)||0,N.right=parseInt(P.borderRightWidth||"",10)||0)}return N},N.prototype.onRemove=function(){this.div&&this.div.parentNode&&(this.div.parentNode.removeChild(this.div),this.div=null)},N.prototype.draw=function(){if(this.createInfoBoxDiv(),this.div){var N=this.getProjection().fromLatLngToDivPixel(this.position);null!==N&&(this.div.style.left=N.x+this.pixelOffset.width+"px",this.alignBottom?this.div.style.bottom=-(N.y+this.pixelOffset.height)+"px":this.div.style.top=N.y+this.pixelOffset.height+"px"),this.isHidden?this.div.style.visibility="hidden":this.div.style.visibility="visible"}},N.prototype.setOptions=function(N){void 0===N&&(N={}),void 0!==N.boxClass&&(this.boxClass=N.boxClass,this.setBoxStyle()),void 0!==N.boxStyle&&(this.boxStyle=N.boxStyle,this.setBoxStyle()),void 0!==N.content&&this.setContent(N.content),void 0!==N.disableAutoPan&&(this.disableAutoPan=N.disableAutoPan),void 0!==N.maxWidth&&(this.maxWidth=N.maxWidth),void 0!==N.pixelOffset&&(this.pixelOffset=N.pixelOffset),void 0!==N.alignBottom&&(this.alignBottom=N.alignBottom),void 0!==N.position&&this.setPosition(N.position),void 0!==N.zIndex&&this.setZIndex(N.zIndex),void 0!==N.closeBoxMargin&&(this.closeBoxMargin=N.closeBoxMargin),void 0!==N.closeBoxURL&&(this.closeBoxURL=N.closeBoxURL),void 0!==N.infoBoxClearance&&(this.infoBoxClearance=N.infoBoxClearance),void 0!==N.isHidden&&(this.isHidden=N.isHidden),void 0!==N.visible&&(this.isHidden=!N.visible),void 0!==N.enableEventPropagation&&(this.enableEventPropagation=N.enableEventPropagation),this.div&&this.draw()},N.prototype.setContent=function(N){this.content=N,this.div&&(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.fixedWidthSet||(this.div.style.width=""),"string"==typeof N?this.div.innerHTML=this.getCloseBoxImg()+N:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(N)),this.fixedWidthSet||(this.div.style.width=this.div.offsetWidth+"px","string"==typeof N?this.div.innerHTML=this.getCloseBoxImg()+N:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(N))),this.addClickHandler()),google.maps.event.trigger(this,"content_changed")},N.prototype.setPosition=function(N){this.position=N,this.div&&this.draw(),google.maps.event.trigger(this,"position_changed")},N.prototype.setVisible=function(N){this.isHidden=!N,this.div&&(this.div.style.visibility=this.isHidden?"hidden":"visible")},N.prototype.setZIndex=function(N){this.zIndex=N,this.div&&(this.div.style.zIndex=N+""),google.maps.event.trigger(this,"zindex_changed")},N.prototype.getContent=function(){return this.content},N.prototype.getPosition=function(){return this.position},N.prototype.getZIndex=function(){return this.zIndex},N.prototype.getVisible=function(){return null!=this.getMap()&&!this.isHidden},N.prototype.show=function(){this.isHidden=!1,this.div&&(this.div.style.visibility="visible")},N.prototype.hide=function(){this.isHidden=!0,this.div&&(this.div.style.visibility="hidden")},N.prototype.open=function(N,I){var T=this;I&&(this.position=I.getPosition(),this.moveListener=google.maps.event.addListener(I,"position_changed",function(){var N=I.getPosition();T.setPosition(N)}),this.mapListener=google.maps.event.addListener(I,"map_changed",function(){T.setMap(I.map)})),this.setMap(N),this.div&&this.panBox()},N.prototype.close=function(){if(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.eventListeners){for(var N=0,I=this.eventListeners;N<I.length;N++){var T=I[N];google.maps.event.removeListener(T)}this.eventListeners=null}this.moveListener&&(google.maps.event.removeListener(this.moveListener),this.moveListener=null),this.mapListener&&(google.maps.event.removeListener(this.mapListener),this.mapListener=null),this.contextListener&&(google.maps.event.removeListener(this.contextListener),this.contextListener=null),this.setMap(null)},N.prototype.extend=function(N,I){return(function(N){for(var I in N.prototype)Object.prototype.hasOwnProperty.call(this,I)||(this.prototype[I]=N.prototype[I]);return this}).apply(N,[I])},N}(),tl=["position"],tc=["position"];function tu(N,I){var T=Object.keys(N);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(N);I&&(P=P.filter(function(I){return Object.getOwnPropertyDescriptor(N,I).enumerable})),T.push.apply(T,P)}return T}function td(N){for(var I=1;I<arguments.length;I++){var T=null!=arguments[I]?arguments[I]:{};
1148I%2?tu(Object(T),!0).forEach(function(I){Y(N,I,T[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(T)):tu(Object(T)).forEach(function(I){Object.defineProperty(N,I,Object.getOwnPropertyDescriptor(T,I))})}return N}var tf={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},th={options(N,I){N.setOptions(I)},position(N,I){I instanceof google.maps.LatLng?N.setPosition(I):N.setPosition(new google.maps.LatLng(I.lat,I.lng))},visible(N,I){N.setVisible(I)},zIndex(N,I){N.setZIndex(I)}},tp={};function tm(N){var{children:I,anchor:T,options:P,position:D,zIndex:M,onCloseClick:R,onDomReady:L,onContentChanged:$,onPositionChanged:F,onZindexChanged:B,onLoad:U,onUnmount:H}=N,z=(0,W.useContext)(Z),[G,K]=(0,W.useState)(null),[V,Y]=(0,W.useState)(null),[J,X]=(0,W.useState)(null),[ee,et]=(0,W.useState)(null),[er,en]=(0,W.useState)(null),[ea,ei]=(0,W.useState)(null),eo=(0,W.useRef)(null);return(0,W.useEffect)(()=>{z&&null!==G&&(G.close(),T?G.open(z,T):G.getPosition()&&G.open(z))},[z,G,T]),(0,W.useEffect)(()=>{P&&null!==G&&G.setOptions(P)},[G,P]),(0,W.useEffect)(()=>{if(D&&null!==G){var N=D instanceof google.maps.LatLng?D:new google.maps.LatLng(D.lat,D.lng);G.setPosition(N)}},[D]),(0,W.useEffect)(()=>{"number"==typeof M&&null!==G&&G.setZIndex(M)},[M]),(0,W.useEffect)(()=>{G&&R&&(null!==V&&google.maps.event.removeListener(V),Y(google.maps.event.addListener(G,"closeclick",R)))},[R]),(0,W.useEffect)(()=>{G&&L&&(null!==J&&google.maps.event.removeListener(J),X(google.maps.event.addListener(G,"domready",L)))},[L]),(0,W.useEffect)(()=>{G&&$&&(null!==ee&&google.maps.event.removeListener(ee),et(google.maps.event.addListener(G,"content_changed",$)))},[$]),(0,W.useEffect)(()=>{G&&F&&(null!==er&&google.maps.event.removeListener(er),en(google.maps.event.addListener(G,"position_changed",F)))},[F]),(0,W.useEffect)(()=>{G&&B&&(null!==ea&&google.maps.event.removeListener(ea),ei(google.maps.event.addListener(G,"zindex_changed",B)))},[B]),(0,W.useEffect)(()=>{if(z){var N,I=P||tp,{position:D}=I,M=eE(I,tl);!D||D instanceof google.maps.LatLng||(N=new google.maps.LatLng(D.lat,D.lng));var W=new ts(td(td({},M),N?{position:N}:{}));eo.current=document.createElement("div"),K(W),R&&Y(google.maps.event.addListener(W,"closeclick",R)),L&&X(google.maps.event.addListener(W,"domready",L)),$&&et(google.maps.event.addListener(W,"content_changed",$)),F&&en(google.maps.event.addListener(W,"position_changed",F)),B&&ei(google.maps.event.addListener(W,"zindex_changed",B)),W.setContent(eo.current),T?W.open(z,T):W.getPosition()?W.open(z):Q(!1,"You must provide either an anchor or a position prop for <InfoBox>."),U&&U(W)}return()=>{null!==G&&(V&&google.maps.event.removeListener(V),ee&&google.maps.event.removeListener(ee),J&&google.maps.event.removeListener(J),er&&google.maps.event.removeListener(er),ea&&google.maps.event.removeListener(ea),H&&H(G),G.close())}},[]),eo.current?(0,q.createPortal)(W.Children.only(I),eo.current):null}(0,W.memo)(tm);class tg extends W.PureComponent{constructor(){super(...arguments),Y(this,"registeredEvents",[]),Y(this,"containerElement",null),Y(this,"state",{infoBox:null}),Y(this,"open",(N,I)=>{I?null!==this.context&&N.open(this.context,I):N.getPosition()?null!==this.context&&N.open(this.context):Q(!1,"You must provide either an anchor or a position prop for <InfoBox>.")}),Y(this,"setInfoBoxCallback",()=>{null!==this.state.infoBox&&null!==this.containerElement&&(this.state.infoBox.setContent(this.containerElement),this.open(this.state.infoBox,this.props.anchor),this.props.onLoad&&this.props.onLoad(this.state.infoBox))})}componentDidMount(){var N,I=this.props.options||{},{position:T}=I,P=eE(I,tc);!T||T instanceof google.maps.LatLng||(N=new google.maps.LatLng(T.lat,T.lng));var D=new ts(td(td({},P),N?{position:N}:{}));this.containerElement=document.createElement("div"),this.registeredEvents=eo({updaterMap:th,eventMap:tf,prevProps:{},nextProps:this.props,instance:D}),this.setState({infoBox:D},this.setInfoBoxCallback)}componentDidUpdate(N){var{infoBox:I}=this.state;null!==I&&(ei(this.registeredEvents),this.registeredEvents=eo({updaterMap:th,eventMap:tf,prevProps:N,nextProps:this.props,instance:I}))}componentWillUnmount(){var{onUnmount:N}=this.props,{infoBox:I}=this.state;null!==I&&(N&&N(I),ei(this.registeredEvents),I.close())}render(){return this.containerElement?(0,q.createPortal)(W.Children.only(this.props.children),this.containerElement):null}}Y(tg,"contextType",Z);var ty=J(U?B:(U=1,B=function N(I,T){if(I===T)return!0;
1148if(I&&T&&"object"==typeof I&&"object"==typeof T){if(I.constructor!==T.constructor)return!1;if(Array.isArray(I)){if((P=I.length)!=T.length)return!1;for(D=P;0!=D--;)if(!N(I[D],T[D]))return!1;return!0}if(I.constructor===RegExp)return I.source===T.source&&I.flags===T.flags;if(I.valueOf!==Object.prototype.valueOf)return I.valueOf()===T.valueOf();if(I.toString!==Object.prototype.toString)return I.toString()===T.toString();if((P=(M=Object.keys(I)).length)!==Object.keys(T).length)return!1;for(D=P;0!=D--;)if(!Object.prototype.hasOwnProperty.call(T,M[D]))return!1;for(D=P;0!=D--;){var P,D,M,R=M[D];if(!N(I[R],T[R]))return!1}return!0}return I!=I&&T!=T})),tb=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],tv=1,tw=8;class tx{static from(N){if(!(N instanceof ArrayBuffer))throw Error("Data must be an instance of ArrayBuffer.");var[I,T]=new Uint8Array(N,0,2);if(219!==I)throw Error("Data does not appear to be in a KDBush format.");var P=T>>4;if(P!==tv)throw Error("Got v".concat(P," data when expected v").concat(tv,"."));var D=tb[15&T];if(!D)throw Error("Unrecognized array type.");var[M]=new Uint16Array(N,2,1),[R]=new Uint32Array(N,4,1);return new tx(R,M,D,N)}constructor(N){var I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:64,T=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Float64Array,P=arguments.length>3?arguments[3]:void 0;if(isNaN(N)||N<0)throw Error("Unpexpected numItems value: ".concat(N,"."));this.numItems=+N,this.nodeSize=Math.min(Math.max(+I,2),65535),this.ArrayType=T,this.IndexArrayType=N<65536?Uint16Array:Uint32Array;var D=tb.indexOf(this.ArrayType),M=2*N*this.ArrayType.BYTES_PER_ELEMENT,R=N*this.IndexArrayType.BYTES_PER_ELEMENT,L=(8-R%8)%8;if(D<0)throw Error("Unexpected typed array class: ".concat(T,"."));P&&P instanceof ArrayBuffer?(this.data=P,this.ids=new this.IndexArrayType(this.data,tw,N),this.coords=new this.ArrayType(this.data,tw+R+L,2*N),this._pos=2*N,this._finished=!0):(this.data=new ArrayBuffer(tw+M+R+L),this.ids=new this.IndexArrayType(this.data,tw,N),this.coords=new this.ArrayType(this.data,tw+R+L,2*N),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,(tv<<4)+D]),new Uint16Array(this.data,2,1)[0]=I,new Uint32Array(this.data,4,1)[0]=N)}add(N,I){var T=this._pos>>1;return this.ids[T]=T,this.coords[this._pos++]=N,this.coords[this._pos++]=I,T}finish(){var N=this._pos>>1;if(N!==this.numItems)throw Error("Added ".concat(N," items when expected ").concat(this.numItems,"."));return tA(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(N,I,T,P){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");for(var{ids:D,coords:M,nodeSize:R}=this,L=[0,D.length-1,0],$=[];L.length;){var F=L.pop()||0,B=L.pop()||0,U=L.pop()||0;if(B-U<=R){for(var H=U;H<=B;H++){var z=M[2*H],W=M[2*H+1];z>=N&&z<=T&&W>=I&&W<=P&&$.push(D[H])}continue}var q=U+B>>1,G=M[2*q],K=M[2*q+1];G>=N&&G<=T&&K>=I&&K<=P&&$.push(D[q]),(0===F?N<=G:I<=K)&&(L.push(U),L.push(q-1),L.push(1-F)),(0===F?T>=G:P>=K)&&(L.push(q+1),L.push(B),L.push(1-F))}return $}within(N,I,T){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");for(var{ids:P,coords:D,nodeSize:M}=this,R=[0,P.length-1,0],L=[],$=T*T;R.length;){var F=R.pop()||0,B=R.pop()||0,U=R.pop()||0;if(B-U<=M){for(var H=U;H<=B;H++)tk(D[2*H],D[2*H+1],N,I)<=$&&L.push(P[H]);continue}var z=U+B>>1,W=D[2*z],q=D[2*z+1];tk(W,q,N,I)<=$&&L.push(P[z]),(0===F?N-T<=W:I-T<=q)&&(R.push(U),R.push(z-1),R.push(1-F)),(0===F?N+T>=W:I+T>=q)&&(R.push(z+1),R.push(B),R.push(1-F))}return L}}function tA(N,I,T,P,D,M){if(!(D-P<=T)){var R=P+D>>1;tE(N,I,R,P,D,M),tA(N,I,T,P,R-1,1-M),tA(N,I,T,R+1,D,1-M)}}function tE(N,I,T,P,D,M){for(;D>P;){if(D-P>600){var R=D-P+1,L=T-P+1,$=Math.log(R),F=.5*Math.exp(2*$/3),B=.5*Math.sqrt($*F*(R-F)/R)*(L-R/2<0?-1:1),U=Math.max(P,Math.floor(T-L*F/R+B)),H=Math.min(D,Math.floor(T+(R-L)*F/R+B));tE(N,I,T,U,H,M)}var z=I[2*T+M],W=P,q=D;for(tS(N,I,P,T),I[2*D+M]>z&&tS(N,I,P,D);W<q;){for(tS(N,I,W,q),W++,q--;I[2*W+M]<z;)W++;for(;I[2*q+M]>z;)q--}I[2*P+M]===z?tS(N,I,P,q):tS(N,I,++q,D),q<=T&&(P=q+1),T<=q&&(D=q-1)}}
1148function tS(N,I,T,P){t_(N,T,P),t_(I,2*T,2*P),t_(I,2*T+1,2*P+1)}function t_(N,I,T){var P=N[I];N[I]=N[T],N[T]=P}function tk(N,I,T,P){var D=N-T,M=I-P;return D*D+M*M}var tC={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:N=>N},tj=Math.fround||(P=new Float32Array(1),N=>(P[0]=+N,P[0])),tO=2,tN=3,tI=4,tT=5,tP=6;class tD{constructor(N){this.options=Object.assign(Object.create(tC),N),this.trees=Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(N){var{log:I,minZoom:T,maxZoom:P}=this.options;I&&console.time("total time");var D="prepare ".concat(N.length," points");I&&console.time(D),this.points=N;for(var M=[],R=0;R<N.length;R++){var L=N[R];if(L.geometry){var[$,F]=L.geometry.coordinates,B=tj(tL($)),U=tj(t$(F));M.push(B,U,1/0,R,-1,1),this.options.reduce&&M.push(0)}}var H=this.trees[P+1]=this._createTree(M);I&&console.timeEnd(D);for(var z=P;z>=T;z--){var W=+Date.now();H=this.trees[z]=this._createTree(this._cluster(H,z)),I&&console.log("z%d: %d clusters in %dms",z,H.numItems,Date.now()-W)}return I&&console.timeEnd("total time"),this}getClusters(N,I){var T=((N[0]+180)%360+360)%360-180,P=Math.max(-90,Math.min(90,N[1])),D=180===N[2]?180:((N[2]+180)%360+360)%360-180,M=Math.max(-90,Math.min(90,N[3]));if(N[2]-N[0]>=360)T=-180,D=180;else if(T>D){var R=this.getClusters([T,P,180,M],I),L=this.getClusters([-180,P,D,M],I);return R.concat(L)}var $=this.trees[this._limitZoom(I)],F=$.range(tL(T),t$(M),tL(D),t$(P)),B=$.data,U=[];for(var H of F){var z=this.stride*H;U.push(B[z+tT]>1?tM(B,z,this.clusterProps):this.points[B[z+tN]])}return U}getChildren(N){var I=this._getOriginId(N),T=this._getOriginZoom(N),P="No cluster with the specified id.",D=this.trees[T];if(!D)throw Error(P);var M=D.data;if(I*this.stride>=M.length)throw Error(P);var R=this.options.radius/(this.options.extent*Math.pow(2,T-1)),L=M[I*this.stride],$=M[I*this.stride+1],F=D.within(L,$,R),B=[];for(var U of F){var H=U*this.stride;M[H+tI]===N&&B.push(M[H+tT]>1?tM(M,H,this.clusterProps):this.points[M[H+tN]])}if(0===B.length)throw Error(P);return B}getLeaves(N,I,T){I=I||10,T=T||0;var P=[];return this._appendLeaves(P,N,I,T,0),P}getTile(N,I,T){var P=this.trees[this._limitZoom(N)],D=Math.pow(2,N),{extent:M,radius:R}=this.options,L=R/M,$=(T-L)/D,F=(T+1+L)/D,B={features:[]};return this._addTileFeatures(P.range((I-L)/D,$,(I+1+L)/D,F),P.data,I,T,D,B),0===I&&this._addTileFeatures(P.range(1-L/D,$,1,F),P.data,D,T,D,B),I===D-1&&this._addTileFeatures(P.range(0,$,L/D,F),P.data,-1,T,D,B),B.features.length?B:null}getClusterExpansionZoom(N){for(var I=this._getOriginZoom(N)-1;I<=this.options.maxZoom;){var T=this.getChildren(N);if(I++,1!==T.length)break;N=T[0].properties.cluster_id}return I}_appendLeaves(N,I,T,P,D){for(var M of this.getChildren(I)){var R=M.properties;if(R&&R.cluster?D+R.point_count<=P?D+=R.point_count:D=this._appendLeaves(N,R.cluster_id,T,P,D):D<P?D++:N.push(M),N.length===T)break}return D}_createTree(N){for(var I=new tx(N.length/this.stride|0,this.options.nodeSize,Float32Array),T=0;T<N.length;T+=this.stride)I.add(N[T],N[T+1]);return I.finish(),I.data=N,I}_addTileFeatures(N,I,T,P,D,M){for(var R of N){var L=R*this.stride,$=I[L+tT]>1,F=void 0,B=void 0,U=void 0;if($)F=tR(I,L,this.clusterProps),B=I[L],U=I[L+1];else{var H=this.points[I[L+tN]];F=H.properties;var[z,W]=H.geometry.coordinates;B=tL(z),U=t$(W)}var q={type:1,geometry:[[Math.round(this.options.extent*(B*D-T)),Math.round(this.options.extent*(U*D-P))]],tags:F},G=void 0;void 0!==(G=$||this.options.generateId?I[L+tN]:this.points[I[L+tN]].id)&&(q.id=G),M.features.push(q)}}_limitZoom(N){return Math.max(this.options.minZoom,Math.min(Math.floor(+N),this.options.maxZoom+1))}_cluster(N,I){for(var{radius:T,extent:P,reduce:D,minPoints:M}=this.options,R=T/(P*Math.pow(2,I)),L=N.data,$=[],F=this.stride,B=0;B<L.length;B+=F)if(!(L[B+tO]<=I)){L[B+tO]=I;var U=L[B],H=L[B+1],z=N.within(L[B],L[B+1],R),W=L[B+tT],q=W;for(var G of z){var K=G*F;L[K+tO]>I&&(q+=L[K+tT])}if(q>W&&q>=M){var V=U*W,Y=H*W,J=void 0,Q=-1,Z=(B/F<<5)+(I+1)+this.points.length;for(var X of z){var ee=X*F;if(!(L[ee+tO]<=I)){L[ee+tO]=I;var et=L[ee+tT];V+=L[ee]*et,Y+=L[ee+1]*et,L[ee+tI]=Z,D&&(J||(J=this._map(L,B,!0),Q=this.clusterProps.length,this.clusterProps.push(J)),D(J,this._map(L,ee)))}}L[B+tI]=Z,$.push(V/q,Y/q,1/0,Z,-1,q),D&&$.push(Q)}else{for(var er=0;er<F;er++)$.push(L[B+er]);if(q>1)for(var en of z){var ea=en*F;if(!(L[ea+tO]<=I)){L[ea+tO]=I;for(var ei=0;ei<F;ei++)$.push(L[ea+ei])}}}}return $}_getOriginId(N){return N-this.points.length>>5}_getOriginZoom(N){return(N-this.points.length)%32}_map(N,I,T){if(N[I+tT]>1){var P=this.clusterProps[N[I+tP]];return T?Object.assign({},P):P}var D=this.points[N[I+tN]].properties,M=this.options.map(D);return T&&M===D?Object.assign({},M):M}}function tM(N,I,T){return{type:"Feature",id:N[I+tN],properties:tR(N,I,T),geometry:{type:"Point",coordinates:[tF(N[I]),tB(N[I+1])]}}}function tR(N,I,T){var P=N[I+tT],D=P>=1e4?"".concat(Math.round(P/1e3),"k"):P>=1e3?"".concat(Math.round(P/100)/10,"k"):P,M=N[I+tP];return Object.assign(-1===M?{}:Object.assign({},T[M]),{cluster:!0,cluster_id:N[I+tN],point_count:P,point_count_abbreviated:D})}function tL(N){return N/360+.5}function t$(N){var I=Math.sin(N*Math.PI/180),T=.5-.25*Math.log((1+I)/(1-I))/Math.PI;return T<0?0:T>1?1:T}function tF(N){return(N-.5)*360}function tB(N){return 360*Math.atan(Math.exp((180-360*N)*Math.PI/180)
1148)/Math.PI-90}function tU(N,I){var T={};for(var P in N)Object.prototype.hasOwnProperty.call(N,P)&&0>I.indexOf(P)&&(T[P]=N[P]);if(null!=N&&"function"==typeof Object.getOwnPropertySymbols)for(var D=0,P=Object.getOwnPropertySymbols(N);D<P.length;D++)0>I.indexOf(P[D])&&Object.prototype.propertyIsEnumerable.call(N,P[D])&&(T[P[D]]=N[P[D]]);return T}class tH{static isAdvancedMarkerAvailable(N){return google.maps.marker&&!0===N.getMapCapabilities().isAdvancedMarkersAvailable}static isAdvancedMarker(N){return google.maps.marker&&N instanceof google.maps.marker.AdvancedMarkerElement}static setMap(N,I){this.isAdvancedMarker(N)?N.map=I:N.setMap(I)}static getPosition(N){if(this.isAdvancedMarker(N)){if(N.position){if(N.position instanceof google.maps.LatLng)return N.position;if(N.position.lat&&N.position.lng)return new google.maps.LatLng(N.position.lat,N.position.lng)}return new google.maps.LatLng(null)}return N.getPosition()}static getVisible(N){return!!this.isAdvancedMarker(N)||N.getVisible()}}class tz{constructor(N){var{markers:I,position:T}=N;this.markers=I,T&&(T instanceof google.maps.LatLng?this._position=T:this._position=new google.maps.LatLng(T))}get bounds(){if(0!==this.markers.length||this._position){var N=new google.maps.LatLngBounds(this._position,this._position);for(var I of this.markers)N.extend(tH.getPosition(I));return N}}get position(){return this._position||this.bounds.getCenter()}get count(){return this.markers.filter(N=>tH.getVisible(N)).length}push(N){this.markers.push(N)}delete(){this.marker&&(tH.setMap(this.marker,null),this.marker=void 0),this.markers.length=0}}class tW{constructor(N){var{maxZoom:I=16}=N;this.maxZoom=I}noop(N){var{markers:I}=N;return tq(I)}}var tq=N=>N.map(N=>new tz({position:tH.getPosition(N),markers:[N]}));class tG extends tW{constructor(N){var{maxZoom:I,radius:T=60}=N,P=tU(N,["maxZoom","radius"]);super({maxZoom:I}),this.state={zoom:-1},this.superCluster=new tD(Object.assign({maxZoom:this.maxZoom,radius:T},P))}calculate(N){var I=!1,T={zoom:N.map.getZoom()};if(!ty(N.markers,this.markers)){I=!0,this.markers=[...N.markers];var P=this.markers.map(N=>{var I=tH.getPosition(N);return{type:"Feature",geometry:{type:"Point",coordinates:[I.lng(),I.lat()]},properties:{marker:N}}});this.superCluster.load(P)}return!I&&(this.state.zoom<=this.maxZoom||T.zoom<=this.maxZoom)&&(I=!ty(this.state,T)),this.state=T,I&&(this.cluster
1148s=this.cluster(N)),{clusters:this.clusters,changed:I}}cluster(N){var{map:I}=N;return this.superCluster.getClusters([-180,-90,180,90],Math.round(I.getZoom())).map(N=>this.transformCluster(N))}transformCluster(N){var{geometry:{coordinates:[I,T]},properties:P}=N;if(P.cluster)return new tz({markers:this.superCluster.getLeaves(P.cluster_id,1/0).map(N=>N.properties.marker),position:{lat:T,lng:I}});var D=P.marker;return new tz({markers:[D],position:tH.getPosition(D)})}}class tK{constructor(N,I){this.markers={sum:N.length};var T=I.map(N=>N.count),P=T.reduce((N,I)=>N+I,0);this.clusters={count:I.length,markers:{mean:P/I.length,sum:P,min:Math.min(...T),max:Math.max(...T)}}}}class tV{render(N,I,T){var{count:P,position:D}=N,M=P>Math.max(10,I.clusters.markers.mean)?"#ff0000":"#0000ff",R='<svg fill="'.concat(M,'" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" width="50" height="50">\n<circle cx="120" cy="120" opacity=".6" r="70" />\n<circle cx="120" cy="120" opacity=".3" r="90" />\n<circle cx="120" cy="120" opacity=".2" r="110" />\n<text x="50%" y="50%" style="fill:#fff" text-anchor="middle" font-size="50" dominant-baseline="middle" font-family="roboto,arial,sans-serif">').concat(P,"</text>\n</svg>"),L="Cluster of ".concat(P," markers"),$=Number(google.maps.Marker.MAX_ZINDEX)+P;if(tH.isAdvancedMarkerAvailable(T)){var F=new DOMParser().parseFromString(R,"image/svg+xml").documentElement;F.setAttribute("transform","translate(0 25)");var B={map:T,position:D,zIndex:$,title:L,content:F};return new google.maps.marker.AdvancedMarkerElement(B)}var U={position:D,zIndex:$,title:L,icon:{url:"data:image/svg+xml;base64,".concat(btoa(R)),anchor:new google.maps.Point(25,25)}};return new google.maps.Marker(U)}}function tY(N,I){for(var T in I.prototype)N.prototype[T]=I.prototype[T]}class tJ{constructor(){tY(tJ,google.maps.OverlayView)}}(M=H||(H={})).CLUSTERING_BEGIN="clusteringbegin",M.CLUSTERING_END="clusteringend",M.CLUSTER_CLICK="click";var tQ=(N,I,T)=>{T.fitBounds(I.bounds)};class tZ extends tJ{constructor(N){var{map:I,markers:T=[],algorithmOptions:P={},algorithm:D=new tG(P),renderer:M=new tV,onClusterClick:R=tQ}=N;super(),this.markers=[...T],this.clusters=[],this.algorithm=D,this.renderer=M,this.onClusterClick=R,I&&this.setMap(I)}addMarker(N,I){!this.markers.includes(N)&&(this.markers.push(N),I||this.render())}addMarkers(N,I){N.forEach(N=>{this.addMarker(N,!0)}),I||this.render()}removeMarker(N,I){var T=this.markers.indexOf(N);return -1!==T&&(tH.setMap(N,null),this.markers.splice(T,1),I||this.render(),!0)}removeMarkers(N,I){var T=!1;return N.forEach(N=>{T=this.removeMarker(N,!0)||T}),T&&!I&&this.render(),T}clearMarkers(N){this.markers.length=0,N||this.render()}render(){var N=this.getMap();if(N instanceof google.maps.Map&&N.getProjection()){google.maps.event.trigger(this,H.CLUSTERING_BEGIN,this);var{clusters:I,changed:T}=this.algorithm.calculate({markers:this.markers,map:N,mapCanvasProjection:this.getProjection()});if(T||void 0==T){var P=new Set;for(var D of I)1==D.markers.length&&P.add(D.markers[0]);var M=[];for(var R of this.clusters)null!=R.marker&&(1==R.markers.length?P.has(R.marker)||tH.setMap(R.marker,null):M.push(R.marker));this.clusters=I,this.renderClusters(),requestAnimationFrame(()=>M.forEach(N=>tH.setMap(N,null)))}google.maps.event.trigger(this,H.CLUSTERING_END,this)}}onAdd(){this.idleListener=this.getMap().addListener("idle",this.render.bind(this)),this.render()}onRemove(){google.maps.event.removeListener(this.idleListener),this.reset()}reset(){this.markers.forEach(N=>tH.setMap(N,null)),this.clusters.forEach(N=>N.delete()),this.clusters=[]}renderClusters(){var N=new tK(this.markers,this.clusters),I=this.getMap();this.clusters.forEach(T=>{1===T.markers.length?T.marker=T.markers[0]:(T.marker=this.renderer.render(T,N,I),T.markers.forEach(N=>tH.setMap(N,null)),this.onClusterClick&&T.marker.addListener("click",N=>{google.maps.event.trigger(this,H.CLUSTER_CLICK,T),this.onClusterClick(N,T,I)})),tH.setMap(T.marker,I)})}}function tX(N,I){var T=Object.keys(N);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(N);I&&(P=P.filter(function(I){return Object.getOwnPropertyDescriptor(N,I).enumerable})),T.push.apply(T,P)}return T}function t0(N){for(var I=1;I<arguments.length;I++){var T=null!=arguments[I]?arguments[I]:{};
1148I%2?tX(Object(T),!0).forEach(function(I){Y(N,I,T[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(T)):tX(Object(T)).forEach(function(I){Object.defineProperty(N,I,Object.getOwnPropertyDescriptor(T,I))})}return N}function t1(N){var I=X(),[T,P]=(0,W.useState)(null);return(0,W.useEffect)(()=>{I&&null===T&&P(new tZ(t0(t0({},N),{},{map:I})))},[I]),T}function t2(N){var{children:I,options:T}=N,P=t1(T);return null!==P?I(P):null}(0,W.memo)(t2);var t3={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},t4={options(N,I){N.setOptions(I)},position(N,I){N.setPosition(I)},zIndex(N,I){N.setZIndex(I)}};function t5(N){var{children:I,anchor:T,options:P,position:D,zIndex:M,onCloseClick:R,onDomReady:L,onContentChanged:$,onPositionChanged:F,onZindexChanged:B,onLoad:U,onUnmount:H}=N,z=(0,W.useContext)(Z),[G,K]=(0,W.useState)(null),[V,Y]=(0,W.useState)(null),[J,X]=(0,W.useState)(null),[ee,et]=(0,W.useState)(null),[er,en]=(0,W.useState)(null),[ea,ei]=(0,W.useState)(null),eo=(0,W.useRef)(null);return(0,W.useEffect)(()=>{null!==G&&(G.close(),T?G.open(z,T):G.getPosition()&&G.open(z))},[z,G,T]),(0,W.useEffect)(()=>{P&&null!==G&&G.setOptions(P)},[G,P]),(0,W.useEffect)(()=>{D&&null!==G&&G.setPosition(D)},[D]),(0,W.useEffect)(()=>{"number"==typeof M&&null!==G&&G.setZIndex(M)},[M]),(0,W.useEffect)(()=>{G&&R&&(null!==V&&google.maps.event.removeListener(V),Y(google.maps.event.addListener(G,"closeclick",R)))},[R]),(0,W.useEffect)(()=>{G&&L&&(null!==J&&google.maps.event.removeListener(J),X(google.maps.event.addListener(G,"domready",L)))},[L]),(0,W.useEffect)(()=>{G&&$&&(null!==ee&&google.maps.event.removeListener(ee),et(google.maps.event.addListener(G,"content_changed",$)))},[$]),(0,W.useEffect)(()=>{G&&F&&(null!==er&&google.maps.event.removeListener(er),en(google.maps.event.addListener(G,"position_changed",F)))},[F]),(0,W.useEffect)(()=>{G&&B&&(null!==ea&&google.maps.event.removeListener(ea),ei(google.maps.event.addListener(G,"zindex_changed",B)))},[B]),(0,W.useEffect)(()=>{var N=new google.maps.InfoWindow(P);return K(N),eo.current=document.createElement("div"),R&&Y(google.maps.event.addListener(N,"closeclick",R)),L&&X(google.maps.event.addListener(N,"domready",L)),$&&et(google.maps.event.addListener(N,"content_changed",$)),F&&en(google.maps.event.addListener(N,"position_changed",F)),B&&ei(google.maps.event.addListener(N,"zindex_changed",B)),N.setContent(eo.current),D&&N.setPosition(D),M&&N.setZIndex(M),T?N.open(z,T):N.getPosition()?N.open(z):Q(!1,"You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>."),U&&U(N),()=>{V&&google.maps.event.removeListener(V),ee&&google.maps.event.removeListener(ee),J&&google.maps.event.removeListener(J),er&&google.maps.event.removeListener(er),ea&&google.maps.event.removeListener(ea),H&&H(N),N.close()}},[]),eo.current?(0,q.createPortal)(W.Children.only(I),eo.current):null}(0,W.memo)(t5);class t6 extends W.PureComponent{constructor(){super(...arguments),Y(this,"registeredEvents",[]),Y(this,"containerElement",null),Y(this,"state",{infoWindow:null}),Y(this,"open",(N,I)=>{I?N.open(this.context,I):N.getPosition()?N.open(this.context):Q(!1,"You must provide either an anchor (typically render it inside a <Marker>) or a position props for <InfoWindow>.")}),Y(this,"setInfoWindowCallback",()=>{null!==this.state.infoWindow&&null!==this.containerElement&&(this.state.infoWindow.setContent(this.containerElement),this.open(this.state.infoWindow,this.props.anchor),this.props.onLoad&&this.props.onLoad(this.state.infoWindow))})}componentDidMount(){var N=new google.maps.InfoWindow(this.props.options);this.containerElement=document.createElement("div"),this.registeredEvents=eo({updaterMap:t4,eventMap:t3,prevProps:{},nextProps:this.props,instance:N}),this.setState(()=>({infoWindow:N}),this.setInfoWindowCallback)}componentDidUpdate(N){null!==this.state.infoWindow&&(ei(this.registeredEvents),this.registeredEvents=eo({updaterMap:t4,eventMap:t3,prevProps:N,nextProps:this.props,instance:this.state.infoWindow}))}componentWillUnmount(){null!==this.state.infoWindow&&(ei(this.registeredEvents),this.props.onUnmount&&this.props.onUnmount(this.state.infoWindow),this.state.infoWindow.close())}render(){return this.containerElement?(0,q.createPortal)(W.Children.only(this.props.children),this.containerElement):null}}function t8(N,I){var T=Object.keys(N);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(N);I&&(P=P.filter(function(I){return Object.getOwnPropertyDescriptor(N,I).enumerable})),T.push.apply(T,P)}return T}function t7(N){for(var I=1;I<arguments.length;I++){var T=null!=arguments[I]?arguments[I]:{};
1148I%2?t8(Object(T),!0).forEach(function(I){Y(N,I,T[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(T)):t8(Object(T)).forEach(function(I){Object.defineProperty(N,I,Object.getOwnPropertyDescriptor(T,I))})}return N}Y(t6,"contextType",Z);var t9={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},re={draggable(N,I){N.setDraggable(I)},editable(N,I){N.setEditable(I)},map(N,I){N.setMap(I)},options(N,I){N.setOptions(I)},path(N,I){N.setPath(I)},visible(N,I){N.setVisible(I)}},rt={};function rr(N){var{options:I,draggable:T,editable:P,visible:D,path:M,onDblClick:R,onDragEnd:L,onDragStart:$,onMouseDown:F,onMouseMove:B,onMouseOut:U,onMouseOver:H,onMouseUp:z,onRightClick:q,onClick:G,onDrag:K,onLoad:V,onUnmount:Y}=N,J=(0,W.useContext)(Z),[Q,X]=(0,W.useState)(null),[ee,et]=(0,W.useState)(null),[er,en]=(0,W.useState)(null),[ea,ei]=(0,W.useState)(null),[eo,es]=(0,W.useState)(null),[el,ec]=(0,W.useState)(null),[eu,ed]=(0,W.useState)(null),[ef,eh]=(0,W.useState)(null),[ep,em]=(0,W.useState)(null),[eg,ey]=(0,W.useState)(null),[eb,ev]=(0,W.useState)(null),[ew,ex]=(0,W.useState)(null);return(0,W.useEffect)(()=>{null!==Q&&Q.setMap(J)},[J]),(0,W.useEffect)(()=>{void 0!==I&&null!==Q&&Q.setOptions(I)},[Q,I]),(0,W.useEffect)(()=>{void 0!==T&&null!==Q&&Q.setDraggable(T)},[Q,T]),(0,W.useEffect)(()=>{void 0!==P&&null!==Q&&Q.setEditable(P)},[Q,P]),(0,W.useEffect)(()=>{void 0!==D&&null!==Q&&Q.setVisible(D)},[Q,D]),(0,W.useEffect)(()=>{void 0!==M&&null!==Q&&Q.setPath(M)},[Q,M]),(0,W.useEffect)(()=>{Q&&R&&(null!==ee&&google.maps.event.removeListener(ee),et(google.maps.event.addListener(Q,"dblclick",R)))},[R]),(0,W.useEffect)(()=>{Q&&L&&(null!==er&&google.maps.event.removeListener(er),en(google.maps.event.addListener(Q,"dragend",L)))},[L]),(0,W.useEffect)(()=>{Q&&$&&(null!==ea&&google.maps.event.removeListener(ea),ei(google.maps.event.addListener(Q,"dragstart",$)))},[$]),(0,W.useEffect)(()=>{Q&&F&&(null!==eo&&google.maps.event.removeListener(eo),es(google.maps.event.addListener(Q,"mousedown",F)))},[F]),(0,W.useEffect)(()=>{Q&&B&&(null!==el&&google.maps.event.removeListener(el),ec(google.maps.event.addListener(Q,"mousemove",B)))},[B]),(0,W.useEffect)(()=>{Q&&U&&(null!==eu&&google.maps.event.removeListener(eu),ed(google.maps.event.addListener(Q,"mouseout",U)))},[U]),(0,W.useEffect)(()=>{Q&&H&&(null!==ef&&google.maps.event.removeListener(ef),eh(google.maps.event.addListener(Q,"mouseover",H)))},[H]),(0,W.useEffect)(()=>{Q&&z&&(null!==ep&&google.maps.event.removeListener(ep),em(google.maps.event.addListener(Q,"mouseup",z)))},[z]),(0,W.useEffect)(()=>{Q&&q&&(null!==eg&&google.maps.event.removeListener(eg),ey(google.maps.event.addListener(Q,"rightclick",q)))},[q]),(0,W.useEffect)(()=>{Q&&G&&(null!==eb&&google.maps.event.removeListener(eb),ev(google.maps.event.addListener(Q,"click",G)))},[G]),(0,W.useEffect)(()=>{Q&&K&&(null!==ew&&google.maps.event.removeListener(ew),ex(google.maps.event.addListener(Q,"drag",K)))},[K]),(0,W.useEffect)(()=>{var N=new google.maps.Polyline(t7(t7({},I||rt),{},{map:J}));return M&&N.setPath(M),void 0!==D&&N.setVisible(D),void 0!==P&&N.setEditable(P),void 0!==T&&N.setDraggable(T),R&&et(google.maps.event.addListener(N,"dblclick",R)),L&&en(google.maps.event.addListener(N,"dragend",L)),$&&ei(google.maps.event.addListener(N,"dragstart",$)),F&&es(google.maps.event.addListener(N,"mousedown",F)),B&&ec(google.maps.event.addListener(N,"mousemove",B)),U&&ed(google.maps.event.addListener(N,"mouseout",U)),H&&eh(google.maps.event.addListener(N,"mouseover",H)),z&&em(google.maps.event.addListener(N,"mouseup",z)),q&&ey(google.maps.event.addListener(N,"rightclick",q)),G&&ev(google.maps.event.addListener(N,"click",G)),K&&ex(google.maps.event.addListener(N,"drag",K)),X(N),V&&V(N),()=>{null!==ee&&google.maps.event.removeListener(ee),null!==er&&google.maps.event.removeListener(er),null!==ea&&google.maps.event.removeListener(ea),null!==eo&&google.maps.event.removeListener(eo),null!==el&&google.maps.event.removeListener(el),null!==eu&&google.maps.event.removeListener(eu),null!==ef&&google.maps.event.removeListener(ef),null!==ep&&google.maps.event.removeListener(ep),null!==eg&&google.maps.event.removeListener(eg),null!==eb&&google.maps.event.removeListener(eb),Y&&Y(N),N.setMap(null)}},[]),null}(0,W.memo)(rr);class rn extends W.PureComponent{constructor(){super(...arguments),Y(this,"registeredEvents",[]),Y(this,"state",{polyline:null}),Y(this,"setPolylineCallback",()=>{null!==this.state.polyline&&this.props.onLoad&&this.props.onLoad(this.state.polyline)})}componentDidMount(){var N=new google.maps.Polyline(t7(t7({},this.props.options),{},{map:this.context}));this.registeredEvents=eo({updaterMap:re,eventMap:t9,prevProps:{},nextProps:this.props,instance:N}),this.setState(function(){return{polyline:N}},this.setPolylineCallback)}componentDidUpdate(N){null!==this.state.polyline&&(ei(this.registeredEvents),this.registeredEvents=eo({updaterMap:re,eventMap:t9,prevProps:N,nextProps:this.props,instance:this.state.polyline}))}componentWillUnmount(){null!==this.state.polyline&&(this.props.onUnmount&&this.props.onUnmount(this.state.polyline),ei(this.registeredEvents),this.state.polyline.setMap(null))}render(){return null}}function ra(N,I){var T=Object.keys(N);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(N);I&&(P=P.filter(function(I){return Object.getOwnPropertyDescriptor(N,I).enumerable})),T.push.apply(T,P)}return T}function ri(N){for(var I=1;I<arguments.length;I++){var T=null!=arguments[I]?arguments[I]:{};
1148I%2?ra(Object(T),!0).forEach(function(I){Y(N,I,T[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(T)):ra(Object(T)).forEach(function(I){Object.defineProperty(N,I,Object.getOwnPropertyDescriptor(T,I))})}return N}Y(rn,"contextType",Z);var ro={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},rs={draggable(N,I){N.setDraggable(I)},editable(N,I){N.setEditable(I)},map(N,I){N.setMap(I)},options(N,I){N.setOptions(I)},path(N,I){N.setPath(I)},paths(N,I){N.setPaths(I)},visible(N,I){N.setVisible(I)}};function rl(N){var{options:I,draggable:T,editable:P,visible:D,path:M,paths:R,onDblClick:L,onDragEnd:$,onDragStart:F,onMouseDown:B,onMouseMove:U,onMouseOut:H,onMouseOver:z,onMouseUp:q,onRightClick:G,onClick:K,onDrag:V,onLoad:Y,onUnmount:J,onEdit:Q}=N,X=(0,W.useContext)(Z),[ee,et]=(0,W.useState)(null),[er,en]=(0,W.useState)(null),[ea,ei]=(0,W.useState)(null),[eo,es]=(0,W.useState)(null),[el,ec]=(0,W.useState)(null),[eu,ed]=(0,W.useState)(null),[ef,eh]=(0,W.useState)(null),[ep,em]=(0,W.useState)(null),[eg,ey]=(0,W.useState)(null),[eb,ev]=(0,W.useState)(null),[ew,ex]=(0,W.useState)(null),[eA,eE]=(0,W.useState)(null);return(0,W.useEffect)(()=>{null!==ee&&ee.setMap(X)},[X]),(0,W.useEffect)(()=>{void 0!==I&&null!==ee&&ee.setOptions(I)},[ee,I]),(0,W.useEffect)(()=>{void 0!==T&&null!==ee&&ee.setDraggable(T)},[ee,T]),(0,W.useEffect)(()=>{void 0!==P&&null!==ee&&ee.setEditable(P)},[ee,P]),(0,W.useEffect)(()=>{void 0!==D&&null!==ee&&ee.setVisible(D)},[ee,D]),(0,W.useEffect)(()=>{void 0!==M&&null!==ee&&ee.setPath(M)},[ee,M]),(0,W.useEffect)(()=>{void 0!==R&&null!==ee&&ee.setPaths(R)},[ee,R]),(0,W.useEffect)(()=>{ee&&"function"==typeof L&&(null!==er&&google.maps.event.removeListener(er),en(google.maps.event.addListener(ee,"dblclick",L)))},[L]),(0,W.useEffect)(()=>{ee&&(google.maps.event.addListener(ee.getPath(),"insert_at",()=>{null==Q||Q(ee)}),google.maps.event.addListener(ee.getPath(),"set_at",()=>{null==Q||Q(ee)}),google.maps.event.addListener(ee.getPath(),"remove_at",()=>{null==Q||Q(ee)}))},[ee,Q]),(0,W.useEffect)(()=>{ee&&"function"==typeof $&&(null!==ea&&google.maps.event.removeListener(ea),ei(google.maps.event.addListener(ee,"dragend",$)))},[$]),(0,W.useEffect)(()=>{ee&&"function"==typeof F&&(null!==eo&&google.maps.event.removeListener(eo),es(google.maps.event.addListener(ee,"dragstart",F)))},[F]),(0,W.useEffect)(()=>{ee&&"function"==typeof B&&(null!==el&&google.maps.event.removeListener(el),ec(google.maps.event.addListener(ee,"mousedown",B)))},[B]),(0,W.useEffect)(()=>{ee&&"function"==typeof U&&(null!==eu&&google.maps.event.removeListener(eu),ed(google.maps.event.addListener(ee,"mousemove",U)))},[U]),(0,W.useEffect)(()=>{ee&&"function"==typeof H&&(null!==ef&&google.maps.event.removeListener(ef),eh(google.maps.event.addListener(ee,"mouseout",H)))},[H]),(0,W.useEffect)(()=>{ee&&"function"==typeof z&&(null!==ep&&google.maps.event.removeListener(ep),em(google.maps.event.addListener(ee,"mouseover",z)))},[z]),(0,W.useEffect)(()=>{ee&&"function"==typeof q&&(null!==eg&&google.maps.event.removeListener(eg),ey(google.maps.event.addListener(ee,"mouseup",q)))},[q]),(0,W.useEffect)(()=>{ee&&"function"==typeof G&&(null!==eb&&google.maps.event.removeListener(eb),ev(google.maps.event.addListener(ee,"rightclick",G)))},[G]),(0,W.useEffect)(()=>{ee&&"function"==typeof K&&(null!==ew&&google.maps.event.removeListener(ew),ex(google.maps.event.addListener(ee,"click",K)))},[K]),(0,W.useEffect)(()=>{ee&&"function"==typeof V&&(null!==eA&&google.maps.event.removeListener(eA),eE(google.maps.event.addListener(ee,"drag",V)))},[V]),(0,W.useEffect)(()=>{var N=new google.maps.Polygon(ri(ri({},I),{},{map:X}));return M&&N.setPath(M),R&&N.setPaths(R),void 0!==D&&N.setVisible(D),void 0!==P&&N.setEditable(P),void 0!==T&&N.setDraggable(T),L&&en(google.maps.event.addListener(N,"dblclick",L)),$&&ei(google.maps.event.addListener(N,"dragend",$)),F&&es(google.maps.event.addListener(N,"dragstart",F)),B&&ec(google.maps.event.addListener(N,"mousedown",B)),U&&ed(google.maps.event.addListener(N,"mousemove",U)),H&&eh(google.maps.event.addListener(N,"mouseout",H)),z&&em(google.maps.event.addListener(N,"mouseover",z)),q&&ey(google.maps.event.addListener(N,"mouseup",q)),G&&ev(google.maps.event.addListener(N,"rightclick",G)),K&&ex(google.maps.event.addListener(N,"click",K)),V&&eE(google.maps.event.addListener(N,"drag",V)),et(N),Y&&Y
1148(N),()=>{null!==er&&google.maps.event.removeListener(er),null!==ea&&google.maps.event.removeListener(ea),null!==eo&&google.maps.event.removeListener(eo),null!==el&&google.maps.event.removeListener(el),null!==eu&&google.maps.event.removeListener(eu),null!==ef&&google.maps.event.removeListener(ef),null!==ep&&google.maps.event.removeListener(ep),null!==eg&&google.maps.event.removeListener(eg),null!==eb&&google.maps.event.removeListener(eb),null!==ew&&google.maps.event.removeListener(ew),J&&J(N),N.setMap(null)}},[]),null}(0,W.memo)(rl);class rc extends W.PureComponent{constructor(){super(...arguments),Y(this,"registeredEvents",[])}componentDidMount(){var N=this.props.options||{};this.polygon=new google.maps.Polygon(N),this.polygon.setMap(this.context),this.registeredEvents=eo({updaterMap:rs,eventMap:ro,prevProps:{},nextProps:this.props,instance:this.polygon}),this.props.onLoad&&this.props.onLoad(this.polygon)}componentDidUpdate(N){this.polygon&&(ei(this.registeredEvents),this.registeredEvents=eo({updaterMap:rs,eventMap:ro,prevProps:N,nextProps:this.props,instance:this.polygon}))}componentWillUnmount(){this.polygon&&(this.props.onUnmount&&this.props.onUnmount(this.polygon),ei(this.registeredEvents),this.polygon&&this.polygon.setMap(null))}render(){return null}}function ru(N,I){var T=Object.keys(N);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(N);I&&(P=P.filter(function(I){return Object.getOwnPropertyDescriptor(N,I).enumerable})),T.push.apply(T,P)}return T}function rd(N){for(var I=1;I<arguments.length;I++){var T=null!=arguments[I]?arguments[I]:{};I%2?ru(Object(T),!0).forEach(function(I){Y(N,I,T[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(T)):ru(Object(T)).forEach(function(I){Object.defineProperty(N,I,Object.getOwnPropertyDescriptor(T,I))})}return N}Y(rc,"contextType",Z);var rf={onBoundsChanged:"bounds_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},rh={bounds(N,I){N.setBounds(I)},draggable(N,I){N.setDraggable(I)},editable(N,I){N.setEditable(I)},map(N,I){N.setMap(I)},options(N,I){N.setOptions(I)},visible(N,I){N.setVisible(I)}};function rp(N){var{options:I,bounds:T,draggable:P,editable:D,visible:M,onDblClick:R,onDragEnd:L,onDragStart:$,onMouseDown:F,onMouseMove:B,onMouseOut:U,onMouseOver:H,onMouseUp:z,onRightClick:q,onClick:G,onDrag:K,onBoundsChanged:V,onLoad:Y,onUnmount:J}=N,Q=(0,W.useContext)(Z),[X,ee]=(0,W.useState)(null),[et,er]=(0,W.useState)(null),[en,ea]=(0,W.useState)(null),[ei,eo]=(0,W.useState)(null),[es,el]=(0,W.useState)(null),[ec,eu]=(0,W.useState)(null),[ed,ef]=(0,W.useState)(null),[eh,ep]=(0,W.useState)(null),[em,eg]=(0,W.useState)(null),[ey,eb]=(0,W.useState)(null),[ev,ew]=(0,W.useState)(null),[ex,eA]=(0,W.useState)(null),[eE,eS]=(0,W.useState)(null);return(0,W.useEffect)(()=>{null!==X&&X.setMap(Q)},[Q]),(0,W.useEffect)(()=>{void 0!==I&&null!==X&&X.setOptions(I)},[X,I]),(0,W.useEffect)(()=>{void 0!==P&&null!==X&&X.setDraggable(P)},[X,P]),(0,W.useEffect)(()=>{void 0!==D&&null!==X&&X.setEditable(D)},[X,D]),(0,W.useEffect)(()=>{void 0!==M&&null!==X&&X.setVisible(M)},[X,M]),(0,W.useEffect)(()=>{void 0!==T&&null!==X&&X.setBounds(T)},[X,T]),(0,W.useEffect)(()=>{X&&R&&(null!==et&&google.maps.event.removeListener(et),er(google.maps.event.addListener(X,"dblclick",R)))},[R]),(0,W.useEffect)(()=>{X&&L&&(null!==en&&google.maps.event.removeListener(en),ea(google.maps.event.addListener(X,"dragend",L)))},[L]),(0,W.useEffect)(()=>{X&&$&&(null!==ei&&google.maps.event.removeListener(ei),eo(google.maps.event.addListener(X,"dragstart",$)))},[$]),(0,W.useEffect)(()=>{X&&F&&(null!==es&&google.maps.event.removeListener(es),el(google.maps.event.addListener(X,"mousedown",F)))},[F]),(0,W.useEffect)(()=>{X&&B&&(null!==ec&&google.maps.event.removeListener(ec),eu(google.maps.event.addListener(X,"mousemove",B)))},[B]),(0,W.useEffect)(()=>{X&&U&&(null!==ed&&google.maps.event.removeListener(ed),ef(google.maps.event.addListener(X,"mouseout",U)))},[U]),(0,W.useEffect)(()=>{X&&H&&(null!==eh&&google.maps.event.removeListener(eh),ep(google.maps.event.addListener(X,"mouseover",H)))},[H]),(0,W.useEffect)(()=>{X&&z&&(null!==em&&google.maps.event.removeListener(em),eg(google.maps.event.addListener(X,"mouseup",z)))},[z]),(0,W.useEffect)(()=>{X&&q&&(null!==ey&&google.maps.event.removeListener(ey),eb(google.maps.event.addListener(X,"rightclick",q)))},[q]),(0,W.useEffect)(()=>{X&&G&&(null!==ev&&google.maps.event.removeListener(ev),ew(google.maps.event.addListener(X,"click",G)))},[G]),(0,W.useEffect)(()=>{X&&K&&(null!==ex&&google.maps.event.removeListener(ex),eA(google.maps.event.addListener(X,"drag",K)))},[K]),(0,W.useEffect)(()=>{X&&V&&(null!==eE&&google.maps.event.removeListener(eE),eS(google.maps.event.addListener(X,"bounds_changed",V)))},[V]),(0,W.useEffect)(()=>{var N=new google.maps.Rectangle(rd(rd({},I),{},{map:Q}));return void 0!==M&&N.setVisible(M),void 0!==D&&N.setEditable(D),void 0!==P&&N.setDraggable(P),void 0!==T&&N.setBounds(T),R&&er(google.maps.event.addListener(N,"dblclick",R)),L&&ea(google.maps.event.addListener(N,"dragend",L)),$&&eo(google.maps.event.addListener(N,"dragstart",$)),F&&el(google.maps.event.addListener(N,"mousedown",F)),B&&eu(google.maps.event.addListener(N,"mousemove",B)),U&&ef(google.maps.event.addListener(N,"mouseout",U)),H&&ep(google.maps.event.addListener(N,"mouseover",H)),z&&eg(google.maps.event.addListener(N,"mouseup",z)),q&&eb(google.maps.event.addListener(N,"rightclick",q)),G&&ew(google.maps.event.addListener(N,"click",G)),K&&eA(google.maps.event.addListener(N,"drag",K)),V&&eS(google.maps.event.addListener(N,"bounds_changed",V)),ee(N),Y&&Y
1148(N),()=>{null!==et&&google.maps.event.removeListener(et),null!==en&&google.maps.event.removeListener(en),null!==ei&&google.maps.event.removeListener(ei),null!==es&&google.maps.event.removeListener(es),null!==ec&&google.maps.event.removeListener(ec),null!==ed&&google.maps.event.removeListener(ed),null!==eh&&google.maps.event.removeListener(eh),null!==em&&google.maps.event.removeListener(em),null!==ey&&google.maps.event.removeListener(ey),null!==ev&&google.maps.event.removeListener(ev),null!==ex&&google.maps.event.removeListener(ex),null!==eE&&google.maps.event.removeListener(eE),J&&J(N),N.setMap(null)}},[]),null}(0,W.memo)(rp);class rm extends W.PureComponent{constructor(){super(...arguments),Y(this,"registeredEvents",[]),Y(this,"state",{rectangle:null}),Y(this,"setRectangleCallback",()=>{null!==this.state.rectangle&&this.props.onLoad&&this.props.onLoad(this.state.rectangle)})}componentDidMount(){var N=new google.maps.Rectangle(rd(rd({},this.props.options),{},{map:this.context}));this.registeredEvents=eo({updaterMap:rh,eventMap:rf,prevProps:{},nextProps:this.props,instance:N}),this.setState(function(){return{rectangle:N}},this.setRectangleCallback)}componentDidUpdate(N){null!==this.state.rectangle&&(ei(this.registeredEvents),this.registeredEvents=eo({updaterMap:rh,eventMap:rf,prevProps:N,nextProps:this.props,instance:this.state.rectangle}))}componentWillUnmount(){null!==this.state.rectangle&&(this.props.onUnmount&&this.props.onUnmount(this.state.rectangle),ei(this.registeredEvents),this.state.rectangle.setMap(null))}render(){return null}}function rg(N,I){var T=Object.keys(N);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(N);I&&(P=P.filter(function(I){return Object.getOwnPropertyDescriptor(N,I).enumerable})),T.push.apply(T,P)}return T}function ry(N){for(var I=1;I<arguments.length;I++){var T=null!=arguments[I]?arguments[I]:{};I%2?rg(Object(T),!0).forEach(function(I){Y(N,I,T[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(T)):rg(Object(T)).forEach(function(I){Object.defineProperty(N,I,Object.getOwnPropertyDescriptor(T,I))})}return N}Y(rm,"contextType",Z);var rb={onCenterChanged:"center_changed",onRadiusChanged:"radius_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},rv={center(N,I){N.setCenter(I)},draggable(N,I){N.setDraggable(I)},editable(N,I){N.setEditable(I)},map(N,I){N.setMap(I)},options(N,I){N.setOptions(I)},radius(N,I){N.setRadius(I)},visible(N,I){N.setVisible(I)}},rw={};function rx(N){var{options:I,center:T,radius:P,draggable:D,editable:M,visible:R,onDblClick:L,onDragEnd:$,onDragStart:F,onMouseDown:B,onMouseMove:U,onMouseOut:H,onMouseOver:z,onMouseUp:q,onRightClick:G,onClick:K,onDrag:V,onCenterChanged:Y,onRadiusChanged:J,onLoad:Q,onUnmount:X}=N,ee=(0,W.useContext)(Z),[et,er]=(0,W.useState)(null),[en,ea]=(0,W.useState)(null),[ei,eo]=(0,W.useState)(null),[es,el]=(0,W.useState)(null),[ec,eu]=(0,W.useState)(null),[ed,ef]=(0,W.useState)(null),[eh,ep]=(0,W.useState)(null),[em,eg]=(0,W.useState)(null),[ey,eb]=(0,W.useState)(null),[ev,ew]=(0,W.useState)(null),[ex,eA]=(0,W.useState)(null),[eE,eS]=(0,W.useState)(null),[e_,ek]=(0,W.useState)(null),[eC,ej]=(0,W.useState)(null);return(0,W.useEffect)(()=>{null!==et&&et.setMap(ee)},[ee]),(0,W.useEffect)(()=>{void 0!==I&&null!==et&&et.setOptions(I)},[et,I]),(0,W.useEffect)(()=>{void 0!==D&&null!==et&&et.setDraggable(D)},[et,D]),(0,W.useEffect)(()=>{void 0!==M&&null!==et&&et.setEditable(M)},[et,M]),(0,W.useEffect)(()=>{void 0!==R&&null!==et&&et.setVisible(R)},[et,R]),(0,W.useEffect)(()=>{"number"==typeof P&&null!==et&&et.setRadius(P)},[et,P]),(0,W.useEffect)(()=>{void 0!==T&&null!==et&&et.setCenter(T)},[et,T]),(0,W.useEffect)(()=>{et&&L&&(null!==en&&google.maps.event.removeListener(en),ea(google.maps.event.addListener(et,"dblclick",L)))},[L]),(0,W.useEffect)(()=>{et&&$&&(null!==ei&&google.maps.event.removeListener(ei),eo(google.maps.event.addListener(et,"dragend",$)))},[$]),(0,W.useEffect)(()=>{et&&F&&(null!==es&&google.maps.event.removeListener(es),el(google.maps.event.addListener(et,"dragstart",F)))},[F]),(0,W.useEffect)(()=>{et&&B&&(null!==ec&&google.maps.event.removeListener(ec),eu(google.maps.event.addListener(et,"mousedown",B)))},[B]),(0,W.useEffect)(()=>{et&&U&&(null!==ed&&google.maps.event.removeListener(ed),ef(google.maps.event.addListener(et,"mousemove",U)))},[U]),(0,W.useEffect)(()=>{et&&H&&(null!==eh&&google.maps.event.removeListener(eh),ep(google.maps.event.addListener(et,"mouseout",H)))},[H]),(0,W.useEffect)(()=>{et&&z&&(null!==em&&google.maps.event.removeListener(em),eg(google.maps.event.addListener(et,"mouseover",z)))},[z]),(0,W.useEffect)(()=>{et&&q&&(null!==ey&&google.maps.event.removeListener(ey),eb(google.maps.event.addListener(et,"mouseup",q)))},[q]),(0,W.useEffect)(()=>{et&&G&&(null!==ev&&google.maps.event.removeListener(ev),ew(google.maps.event.addListener(et,"rightclick",G)))},[G]),(0,W.useEffect)(()=>{et&&K&&(null!==ex&&google.maps.event.removeListener(ex),eA(google.maps.event.addListener(et,"click",K)))},[K]),(0,W.useEffect)(()=>{et&&V&&(null!==eE&&google.maps.event.removeListener(eE),eS(google.maps.event.addListener(et,"drag",V)))},[V]),(0,W.useEffect)(()=>{et&&Y&&(null!==e_&&google.maps.event.removeListener(e_),ek(google.maps.event.addListener(et,"center_changed",Y)))},[K]),(0,W.useEffect)(()=>{et&&J&&(null!==eC&&google.maps.event.removeListener(eC),ej(google.maps.event.addListener(et,"radius_changed",J)))},[J]),(0,W.useEffect)(()=>{var N=new google.maps.Circle(ry(ry({},I||rw),{},{map:ee}));return"number"==typeof P&&N.setRadius(P),void 0!==T&&N.setCenter(T),"number"==typeof P&&N.setRadius(P),void 0!==R&&N.setVisible(R),void 0!==M&&N.setEditable(M),void 0!==D&&N.setDraggable(D),L&&ea(google.maps.event.addListener(N,"dblclick",L)),$&&eo(google.maps.event.addListener(N,"dragend",$)),F&&el(google.maps.event.addListener(N,"dragstart",F)),B&&eu(google.maps.event.addListener(N,"mousedown",B)),U&&ef(google.maps.event.addListener(N,"mousemove",U)),H&&ep(google.maps.event.addListener(N,"mouseout",H)),z&&eg(google.maps.event.addListener(N,"mouseover",z)),q&&eb(google.maps.event.addListener(N,"mouseup",q)),G&&ew(google.maps.event.addListener(N,"rightclick",G)),K&&eA(google.maps.event.addListener(N,"click",K)),V&&eS(google.maps.event.addListener(N,"drag",V)),Y&&ek(google.maps.event.addListener(N,"center_changed",Y)),J&&ej(google.maps.event.addListener(N,"radiu
1148s_changed",J)),er(N),Q&&Q(N),()=>{null!==en&&google.maps.event.removeListener(en),null!==ei&&google.maps.event.removeListener(ei),null!==es&&google.maps.event.removeListener(es),null!==ec&&google.maps.event.removeListener(ec),null!==ed&&google.maps.event.removeListener(ed),null!==eh&&google.maps.event.removeListener(eh),null!==em&&google.maps.event.removeListener(em),null!==ey&&google.maps.event.removeListener(ey),null!==ev&&google.maps.event.removeListener(ev),null!==ex&&google.maps.event.removeListener(ex),null!==e_&&google.maps.event.removeListener(e_),null!==eC&&google.maps.event.removeListener(eC),X&&X(N),N.setMap(null)}},[]),null}(0,W.memo)(rx);class rA extends W.PureComponent{constructor(){super(...arguments),Y(this,"registeredEvents",[]),Y(this,"state",{circle:null}),Y(this,"setCircleCallback",()=>{null!==this.state.circle&&this.props.onLoad&&this.props.onLoad(this.state.circle)})}componentDidMount(){var N=new google.maps.Circle(ry(ry({},this.props.options),{},{map:this.context}));this.registeredEvents=eo({updaterMap:rv,eventMap:rb,prevProps:{},nextProps:this.props,instance:N}),this.setState(function(){return{circle:N}},this.setCircleCallback)}componentDidUpdate(N){null!==this.state.circle&&(ei(this.registeredEvents),this.registeredEvents=eo({updaterMap:rv,eventMap:rb,prevProps:N,nextProps:this.props,instance:this.state.circle}))}componentWillUnmount(){if(null!==this.state.circle){var N;this.props.onUnmount&&this.props.onUnmount(this.state.circle),ei(this.registeredEvents),null==(N=this.state.circle)||N.setMap(null)}}render(){return null}}function rE(N,I){var T=Object.keys(N);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(N);I&&(P=P.filter(function(I){return Object.getOwnPropertyDescriptor(N,I).enumerable})),T.push.apply(T,P)}return T}function rS(N){for(var I=1;I<arguments.length;I++){var T=null!=arguments[I]?arguments[I]:{};I%2?rE(Object(T),!0).forEach(function(I){Y(N,I,T[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(T)):rE(Object(T)).forEach(function(I){Object.defineProperty(N,I,Object.getOwnPropertyDescriptor(T,I))})}return N}Y(rA,"contextType",Z);var r_={onClick:"click",onDblClick:"dblclick",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick",onAddFeature:"addfeature",onRemoveFeature:"removefeature",onRemoveProperty:"removeproperty",onSetGeometry:"setgeometry",onSetProperty:"setproperty"},rk={add(N,I){N.add(I)},addgeojson(N,I,T){N.addGeoJson(I,T)},contains(N,I){N.contains(I)},foreach(N,I){N.forEach(I)},loadgeojson(N,I,T,P){N.loadGeoJson(I,T,P)},overridestyle(N,I,T){N.overrideStyle(I,T)},remove(N,I){N.remove(I)},revertstyle(N,I){N.revertStyle(I)},controlposition(N,I){N.setControlPosition(I)},controls(N,I){N.setControls(I)},drawingmode(N,I){N.setDrawingMode(I)},map(N,I){N.setMap(I)},style(N,I){N.setStyle(I)},togeojson(N,I){N.toGeoJson(I)}};function rC(N){var{options:I,onClick:T,onDblClick:P,onMouseDown:D,onMouseMove:M,onMouseOut:R,onMouseOver:L,onMouseUp:$,onRightClick:F,onAddFeature:B,onRemoveFeature:U,onRemoveProperty:H,onSetGeometry:z,onSetProperty:q,onLoad:G,onUnmount:K}=N,V=(0,W.useContext)(Z),[Y,J]=(0,W.useState)(null),[Q,X]=(0,W.useState)(null),[ee,et]=(0,W.useState)(null),[er,en]=(0,W.useState)(null),[ea,ei]=(0,W.useState)(null),[eo,es]=(0,W.useState)(null),[el,ec]=(0,W.useState)(null),[eu,ed]=(0,W.useState)(null),[ef,eh]=(0,W.useState)(null),[ep,em]=(0,W.useState)(null),[eg,ey]=(0,W.useState)(null),[eb,ev]=(0,W.useState)(null),[ew,ex]=(0,W.useState)(null),[eA,eE]=(0,W.useState)(null);return(0,W.useEffect)(()=>{null!==Y&&Y.setMap(V)},[V]),(0,W.useEffect)(()=>{Y&&P&&(null!==Q&&google.maps.event.removeListener(Q),X(google.maps.event.addListener(Y,"dblclick",P)))},[P]),(0,W.useEffect)(()=>{Y&&D&&(null!==ee&&google.maps.event.removeListener(ee),et(google.maps.event.addListener(Y,"mousedown",D)))},[D]),(0,W.useEffect)(()=>{Y&&M&&(null!==er&&google.maps.event.removeListener(er),en(google.maps.event.addListener(Y,"mousemove",M)))},[M]),(0,W.useEffect)(()=>{Y&&R&&(null!==ea&&google.maps.event.removeListener(ea),ei(google.maps.event.addListener(Y,"mouseout",R)))},[R]),(0,W.useEffect)(()=>{Y&&L&&(null!==eo&&google.maps.event.removeListener(eo),es(google.maps.event.addListener(Y,"mouseover",L)))},[L]),(0,W.useEffect)(()=>{Y&&$&&(null!==el&&google.maps.event.removeListener(el),ec(google.maps.event.addListener(Y,"mouseup",$)))},[$]),(0,W.useEffect)(()=>{Y&&F&&(null!==eu&&google.maps.event.removeListener(eu),ed(google.maps.event.addListener(Y,"rightclick",F)))},[F]),(0,W.useEffect)(()=>{Y&&T&&(null!==ef&&google.maps.event.removeListener(ef),eh(google.maps.event.addListener(Y,"click",T)))},[T]),(0,W.useEffect)(()=>{Y&&B&&(null!==ep&&google.maps.event.removeListener(ep),em(google.maps.event.addListener(Y,"addfeature",B)))},[B]),(0,W.useEffect)(()=>{Y&&U&&(null!==eg&&google.maps.event.removeListener(eg),ey(google.maps.event.addListener(Y,"removefeature",U)))},[U]),(0,W.useEffect)(()=>{Y&&H&&(null!==eb&&google.maps.event.removeListener(eb),ev(google.maps.event.addListener(Y,"removeproperty",H)))},[H]),(0,W.useEffect)(()=>{Y&&z&&(null!==ew&&google.maps.event.removeListener(ew),ex(google.maps.event.addListener(Y,"setgeometry",z)))},[z]),(0,W.useEffect)(()=>{Y&&q&&(null!==eA&&google.maps.event.removeListener(eA),eE(google.maps.event.addListener(Y,"setproperty",q)))},[q]),(0,W.useEffect)(()=>
1148{if(null!==V){var N=new google.maps.Data(rS(rS({},I),{},{map:V}));P&&X(google.maps.event.addListener(N,"dblclick",P)),D&&et(google.maps.event.addListener(N,"mousedown",D)),M&&en(google.maps.event.addListener(N,"mousemove",M)),R&&ei(google.maps.event.addListener(N,"mouseout",R)),L&&es(google.maps.event.addListener(N,"mouseover",L)),$&&ec(google.maps.event.addListener(N,"mouseup",$)),F&&ed(google.maps.event.addListener(N,"rightclick",F)),T&&eh(google.maps.event.addListener(N,"click",T)),B&&em(google.maps.event.addListener(N,"addfeature",B)),U&&ey(google.maps.event.addListener(N,"removefeature",U)),H&&ev(google.maps.event.addListener(N,"removeproperty",H)),z&&ex(google.maps.event.addListener(N,"setgeometry",z)),q&&eE(google.maps.event.addListener(N,"setproperty",q)),J(N),G&&G(N)}return()=>{Y&&(null!==Q&&google.maps.event.removeListener(Q),null!==ee&&google.maps.event.removeListener(ee),null!==er&&google.maps.event.removeListener(er),null!==ea&&google.maps.event.removeListener(ea),null!==eo&&google.maps.event.removeListener(eo),null!==el&&google.maps.event.removeListener(el),null!==eu&&google.maps.event.removeListener(eu),null!==ef&&google.maps.event.removeListener(ef),null!==ep&&google.maps.event.removeListener(ep),null!==eg&&google.maps.event.removeListener(eg),null!==eb&&google.maps.event.removeListener(eb),null!==ew&&google.maps.event.removeListener(ew),null!==eA&&google.maps.event.removeListener(eA),K&&K(Y),Y.setMap(null))}},[]),null}(0,W.memo)(rC);class rj extends W.PureComponent{constructor(){super(...arguments),Y(this,"registeredEvents",[]),Y(this,"state",{data:null}),Y(this,"setDataCallback",()=>{null!==this.state.data&&this.props.onLoad&&this.props.onLoad(this.state.data)})}componentDidMount(){if(null!==this.context){var N=new google.maps.Data(rS(rS({},this.props.options),{},{map:this.context}));this.registeredEvents=eo({updaterMap:rk,eventMap:r_,prevProps:{},nextProps:this.props,instance:N}),this.setState(()=>({data:N}),this.setDataCallback)}}componentDidUpdate(N){null!==this.state.data&&(ei(this.registeredEvents),this.registeredEvents=eo({updaterMap:rk,eventMap:r_,prevProps:N,nextProps:this.props,instance:this.state.data}))}componentWillUnmount(){null!==this.state.data&&(this.props.onUnmount&&this.props.onUnmount(this.state.data),ei(this.registeredEvents),this.state.data&&this.state.data.setMap(null))}render(){return null}}function rO(N,I){var T=Object.keys(N);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(N);I&&(P=P.filter(function(I){return Object.getOwnPropertyDescriptor(N,I).enumerable})),T.push.apply(T,P)}return T}function rN(N){for(var I=1;I<arguments.length;I++){var T=null!=arguments[I]?arguments[I]:{};I%2?rO(Object(T),!0).forEach(function(I){Y(N,I,T[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(T)):rO(Object(T)).forEach(function(I){Object.defineProperty(N,I,Object.getOwnPropertyDescriptor(T,I))})}return N}Y(rj,"contextType",Z);var rI={onClick:"click",onDefaultViewportChanged:"defaultviewport_changed",onStatusChanged:"status_changed"},rT={options(N,I){N.setOptions(I)},url(N,I){N.setUrl(I)},zIndex(N,I){N.setZIndex(I)}};class rP extends W.PureComponent{constructor(){super(...arguments),Y(this,"registeredEvents",[]),Y(this,"state",{kmlLayer:null}),Y(this,"setKmlLayerCallback",()=>{null!==this.state.kmlLayer&&this.props.onLoad&&this.props.onLoad(this.state.kmlLayer)})}componentDidMount(){var N=new google.maps.KmlLayer(rN(rN({},this.props.options),{},{map:this.context}));this.registeredEvents=eo({updaterMap:rT,eventMap:rI,prevProps:{},nextProps:this.props,instance:N}),this.setState(function(){return{kmlLayer:N}},this.setKmlLayerCallback)}componentDidUpdate(N){null!==this.state.kmlLayer&&(ei(this.registeredEvents),this.registeredEvents=eo({updaterMap:rT,eventMap:rI,prevProps:N,nextProps:this.props,instance:this.state.kmlLayer}))}componentWillUnmount(){null!==this.state.kmlLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.kmlLayer),ei(this.registeredEvents),this.state.kmlLayer.setMap(null))}render(){return null}}function rD(N,I){return"function"==typeof I?I(N.offsetWidth,N.offsetHeight):{x:0,y:0}}function rM(N,I){return new I(N.lat,N.lng)}
1148function rR(N,I){return new I(new google.maps.LatLng(N.ne.lat,N.ne.lng),new google.maps.LatLng(N.sw.lat,N.sw.lng))}function rL(N,I,T){return N instanceof I?N:T(N,I)}function r$(N,I,T){return N instanceof I?N:T(N,I)}function rF(N,I,T){var P=N&&N.fromLatLngToDivPixel(T.getNorthEast()),D=N&&N.fromLatLngToDivPixel(T.getSouthWest());return P&&D?{left:"".concat(D.x+I.x,"px"),top:"".concat(P.y+I.y,"px"),width:"".concat(P.x-D.x-I.x,"px"),height:"".concat(D.y-P.y-I.y,"px")}:{left:"-9999px",top:"-9999px"}}function rB(N,I,T){var P=N&&N.fromLatLngToDivPixel(T);if(P){var{x:D,y:M}=P;return{left:"".concat(D+I.x,"px"),top:"".concat(M+I.y,"px")}}return{left:"-9999px",top:"-9999px"}}function rU(N,I,T,P){return void 0!==T?rF(N,I,r$(T,google.maps.LatLngBounds,rR)):rB(N,I,rL(P,google.maps.LatLng,rM))}function rH(N,I){return N.left===I.left&&N.top===I.top&&N.width===I.height&&N.height===I.height}function rz(N,I){var T=Object.keys(N);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(N);I&&(P=P.filter(function(I){return Object.getOwnPropertyDescriptor(N,I).enumerable})),T.push.apply(T,P)}return T}function rW(N){for(var I=1;I<arguments.length;I++){var T=null!=arguments[I]?arguments[I]:{};I%2?rz(Object(T),!0).forEach(function(I){Y(N,I,T[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(T)):rz(Object(T)).forEach(function(I){Object.defineProperty(N,I,Object.getOwnPropertyDescriptor(T,I))})}return N}function rq(N,I,T,P,D){class M extends google.maps.OverlayView{constructor(N,I,T,P){super(),this.container=N,this.pane=I,this.position=T,this.bounds=P}onAdd(){var N,I=null==(N=this.getPanes())?void 0:N[this.pane];null==I||I.appendChild(this.container)}draw(){for(var[N,I]of Object.entries(rU(this.getProjection(),rW({},this.container?rD(this.container,D):{x:0,y:0}),this.bounds,this.position)))this.container.style[N]=I}onRemove(){null!==this.container.parentNode&&this.container.parentNode.removeChild(this.container)}}return new M(N,I,T,P)}function rG(N,I){var T=Object.keys(N);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(N);I&&(P=P.filter(function(I){return Object.getOwnPropertyDescriptor(N,I).enumerable})),T.push.apply(T,P)}return T}function rK(N){for(var I=1;I<arguments.length;I++){var T=null!=arguments[I]?arguments[I]:{};I%2?rG(Object(T),!0).forEach(function(I){Y(N,I,T[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(T)):rG(Object(T)).forEach(function(I){Object.defineProperty(N,I,Object.getOwnPropertyDescriptor(T,I))})}return N}function rV(N){return N?(N instanceof google.maps.LatLng?N:new google.maps.LatLng(N.lat,N.lng))+"":""}function rY(N){return N?(N instanceof google.maps.LatLngBounds?N:new google.maps.LatLngBounds(new google.maps.LatLng(N.south,N.east),new google.maps.LatLng(N.north,N.west)))+"":""}function rJ(N){var{position:I,bounds:T,mapPaneName:P,zIndex:D,onLoad:M,onUnmount:R,getPixelPositionOffset:L,children:$}=N,F=(0,W.useContext)(Z),B=(0,W.useMemo)(()=>{var N=document.createElement("div");return N.style.position="absolute",N},[]),U=(0,W.useMemo)(()=>rq(B,P,I,T,L),[B,P,I,T]);return(0,W.useEffect)(()=>(null==M||M(U),null==U||U.setMap(F),()=>{null==R||R(U),null==U||U.setMap(null)}),[F,U]),(0,W.useEffect)(()=>{B.style.zIndex="".concat(D)},[D,B]),q.createPortal($,B)}Y(rP,"contextType",Z);var rQ=(0,W.memo)(rJ);class rZ extends W.PureComponent{constructor(N){super(N),Y(this,"state",{paneEl:null,containerStyle:{position:"absolute"}}),Y(this,"updatePane",()=>{var N=this.props.mapPaneName,I=this.overlayView.getPanes();Q(!!N,"OverlayView requires props.mapPaneName but got %s",N),I?this.setState({paneEl:I[N]}):this.setState({paneEl:null})}),Y(this,"onAdd",()=>{var N,I;this.updatePane(),null==(N=(I=this.props).onLoad)||N.call(I,this.overlayView)}),Y(this,"onPositionElement",()=>{var N,I,T,P,D=rU(this.overlayView.getProjection(),rK({x:0,y:0},this.containerRef.current?rD(this.containerRef.current,this.props.getPixelPositionOffset):{}),this.props.bounds,this.props.position);rH(D,{left:this.state.containerStyle.left,top:this.state.containerStyle.top,width:this.state.containerStyle.width,height:this.state.containerStyle.height}
1148)||this.setState({containerStyle:{top:null!=(N=D.top)?N:0,left:null!=(I=D.left)?I:0,width:null!=(T=D.width)?T:0,height:null!=(P=D.height)?P:0,position:"absolute"}})}),Y(this,"draw",()=>{this.onPositionElement()}),Y(this,"onRemove",()=>{var N,I;this.setState(()=>({paneEl:null})),null==(N=(I=this.props).onUnmount)||N.call(I,this.overlayView)}),this.containerRef=(0,W.createRef)();var I=new google.maps.OverlayView;I.onAdd=this.onAdd,I.draw=this.draw,I.onRemove=this.onRemove,this.overlayView=I}componentDidMount(){this.overlayView.setMap(this.context)}componentDidUpdate(N){var I=rV(N.position),T=rV(this.props.position),P=rY(N.bounds),D=rY(this.props.bounds);(I!==T||P!==D)&&this.overlayView.draw(),N.mapPaneName!==this.props.mapPaneName&&this.updatePane()}componentWillUnmount(){this.overlayView.setMap(null)}render(){var N=this.state.paneEl;return N?q.createPortal((0,z.jsx)("div",{ref:this.containerRef,style:this.state.containerStyle,children:W.Children.only(this.props.children)}),N):null}}function rX(){}function r0(N,I){var T=Object.keys(N);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(N);I&&(P=P.filter(function(I){return Object.getOwnPropertyDescriptor(N,I).enumerable})),T.push.apply(T,P)}return T}function r1(N){for(var I=1;I<arguments.length;I++){var T=null!=arguments[I]?arguments[I]:{};I%2?r0(Object(T),!0).forEach(function(I){Y(N,I,T[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(T)):r0(Object(T)).forEach(function(I){Object.defineProperty(N,I,Object.getOwnPropertyDescriptor(T,I))})}return N}Y(rZ,"FLOAT_PANE","floatPane"),Y(rZ,"MAP_PANE","mapPane"),Y(rZ,"MARKER_LAYER","markerLayer"),Y(rZ,"OVERLAY_LAYER","overlayLayer"),Y(rZ,"OVERLAY_MOUSE_TARGET","overlayMouseTarget"),Y(rZ,"contextType",Z);var r2={onDblClick:"dblclick",onClick:"click"},r3={opacity(N,I){N.setOpacity(I)}};function r4(N){var{url:I,bounds:T,options:P,visible:D}=N,M=(0,W.useContext)(Z),R=new google.maps.LatLngBounds(new google.maps.LatLng(T.south,T.west),new google.maps.LatLng(T.north,T.east)),L=(0,W.useMemo)(()=>new google.maps.GroundOverlay(I,R,P),[]);return(0,W.useEffect)(()=>{null!==L&&L.setMap(M)},[M]),(0,W.useEffect)(()=>{void 0!==I&&null!==L&&(L.set("url",I),L.setMap(M))},[L,I]),(0,W.useEffect)(()=>{void 0!==D&&null!==L&&L.setOpacity(+!!D)},[L,D]),(0,W.useEffect)(()=>{var N=new google.maps.LatLngBounds(new google.maps.LatLng(T.south,T.west),new google.maps.LatLng(T.north,T.east));void 0!==T&&null!==L&&(L.set("bounds",N),L.setMap(M))},[L,T]),null}(0,W.memo)(r4);class r5 extends W.PureComponent{constructor(){super(...arguments),Y(this,"registeredEvents",[]),Y(this,"state",{groundOverlay:null}),Y(this,"setGroundOverlayCallback",()=>{null!==this.state.groundOverlay&&this.props.onLoad&&this.props.onLoad(this.state.groundOverlay)})}componentDidMount(){Q(!!this.props.url||!!this.props.bounds,"For GroundOverlay, url and bounds are passed in to constructor and are immutable after instantiated. This is the behavior of Google Maps JavaScript API v3 ( See https://developers.google.com/maps/documentation/javascript/reference#GroundOverlay) Hence, use the corresponding two props provided by `react-google-maps-api`, url and bounds. In some cases, you'll need the GroundOverlay component to reflect the changes of url and bounds. You can leverage the React's key property to remount the component. Typically, just `key={url}` would serve your need. See https://github.com/tomchentw/react-google-maps/issues/655");var N=new google.maps.GroundOverlay(this.props.url,this.props.bounds,r1(r1({},this.props.options),{},{map:this.context}));this.registeredEvents=eo({updaterMap:r3,eventMap:r2,prevProps:{},nextProps:this.props,instance:N}),this.setState(function(){return{groundOverlay:N}},this.setGroundOverlayCallback)}componentDidUpdate(N){null!==this.state.groundOverlay&&(ei(this.registeredEvents),this.registeredEvents=eo({updaterMap:r3,eventMap:r2,prevProps:N,nextProps:this.props,instance:this.state.groundOverlay}))}componentWillUnmount(){this.state.groundOverlay&&(this.props.onUnmount&&this.props.onUnmount(this.state.groundOverlay),this.state.groundOverlay.setMap(null))}render(){return null}}function r6(N,I){var T=Object.keys(N);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(N);I&&(P=P.filter(function(I){return Object.getOwnPropertyDescriptor(N,I).enumerable})),T.push.apply(T,P)}return T}function r8(N){for(var I=1;I<arguments.length;I++){var T=null!=arguments[I]?arguments[I]:{};
1148I%2?r6(Object(T),!0).forEach(function(I){Y(N,I,T[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(T)):r6(Object(T)).forEach(function(I){Object.defineProperty(N,I,Object.getOwnPropertyDescriptor(T,I))})}return N}Y(r5,"defaultProps",{onLoad:rX}),Y(r5,"contextType",Z);var r7={},r9={data(N,I){N.setData(I)},map(N,I){N.setMap(I)},options(N,I){N.setOptions(I)}};function ne(N){var{data:I,onLoad:T,onUnmount:P,options:D}=N,M=(0,W.useContext)(Z),[R,L]=(0,W.useState)(null);return(0,W.useEffect)(()=>{google.maps.visualization||Q(!!google.maps.visualization,'Did you include prop libraries={["visualization"]} in useJsApiScript? %s',google.maps.visualization)},[]),(0,W.useEffect)(()=>{Q(!!I,"data property is required in HeatmapLayer %s",I)},[I]),(0,W.useEffect)(()=>{null!==R&&R.setMap(M)},[M]),(0,W.useEffect)(()=>{D&&null!==R&&R.setOptions(D)},[R,D]),(0,W.useEffect)(()=>{var N=new google.maps.visualization.HeatmapLayer(r8(r8({},D),{},{data:I,map:M}));return L(N),T&&T(N),()=>{null!==R&&(P&&P(R),R.setMap(null))}},[]),null}(0,W.memo)(ne);class nt extends W.PureComponent{constructor(){super(...arguments),Y(this,"registeredEvents",[]),Y(this,"state",{heatmapLayer:null}),Y(this,"setHeatmapLayerCallback",()=>{null!==this.state.heatmapLayer&&this.props.onLoad&&this.props.onLoad(this.state.heatmapLayer)})}componentDidMount(){Q(!!google.maps.visualization,'Did you include prop libraries={["visualization"]} to <LoadScript />? %s',google.maps.visualization),Q(!!this.props.data,"data property is required in HeatmapLayer %s",this.props.data);var N=new google.maps.visualization.HeatmapLayer(r8(r8({},this.props.options),{},{data:this.props.data,map:this.context}));this.registeredEvents=eo({updaterMap:r9,eventMap:r7,prevProps:{},nextProps:this.props,instance:N}),this.setState(function(){return{heatmapLayer:N}},this.setHeatmapLayerCallback)}componentDidUpdate(N){ei(this.registeredEvents),this.registeredEvents=eo({updaterMap:r9,eventMap:r7,prevProps:N,nextProps:this.props,instance:this.state.heatmapLayer})}componentWillUnmount(){null!==this.state.heatmapLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.heatmapLayer),ei(this.registeredEvents),this.state.heatmapLayer.setMap(null))}render(){return null}}Y(nt,"contextType",Z);var nr={onCloseClick:"closeclick",onPanoChanged:"pano_changed",onPositionChanged:"position_changed",onPovChanged:"pov_changed",onResize:"resize",onStatusChanged:"status_changed",onVisibleChanged:"visible_changed",onZoomChanged:"zoom_changed"},nn={register(N,I,T){N.registerPanoProvider(I,T)},links(N,I){N.setLinks(I)},motionTracking(N,I){N.setMotionTracking(I)},options(N,I){N.setOptions(I)},pano(N,I){N.setPano(I)},position(N,I){N.setPosition(I)},pov(N,I){N.setPov(I)},visible(N,I){N.setVisible(I)},zoom(N,I){N.setZoom(I)}};class na extends W.PureComponent{constructor(){super(...arguments),Y(this,"registeredEvents",[]),Y(this,"state",{streetViewPanorama:null}),Y(this,"setStreetViewPanoramaCallback",()=>{null!==this.state.streetViewPanorama&&this.props.onLoad&&this.props.onLoad(this.state.streetViewPanorama)})}componentDidMount(){var N,I,T=null!=(N=null==(I=this.context)?void 0:I.getStreetView())?N:null;this.registeredEvents=eo({updaterMap:nn,eventMap:nr,prevProps:{},nextProps:this.props,instance:T}),this.setState(()=>({streetViewPanorama:T}),this.setStreetViewPanoramaCallback)}componentDidUpdate(N){null!==this.state.streetViewPanorama&&(ei(this.registeredEvents),this.registeredEvents=eo({updaterMap:nn,eventMap:nr,prevProps:N,nextProps:this.props,instance:this.state.streetViewPanorama}))}componentWillUnmount(){null!==this.state.streetViewPanorama&&(this.props.onUnmount&&this.props.onUnmount(this.state.streetViewPanorama),ei(this.registeredEvents),this.state.streetViewPanorama.setVisible(!1))}render(){return null}}Y(na,"contextType",Z);class ni extends W.PureComponent{constructor(){super(...arguments),Y(this,"state",{streetViewService:null}),Y(this,"setStreetViewServiceCallback",()=>{null!==this.state.streetViewService&&this.props.onLoad&&this.props.onLoad(this.state.streetViewService)})}componentDidMount(){var N=new google.maps.StreetViewService;this.setState(function(){return{streetViewService:N}},this.setStreetViewServiceCallback)}componentWillUnmount(){null!==this.state.streetViewService&&this.props.onUnmount&&this.props.onUnmount(this.state.streetViewService)}render(){return null}}Y(ni,"contextType",Z),W.PureComponent;var no={onDirectionsChanged:"directions_changed"},ns={directions(N,I){N.setDirections(I)},map(N,I){N.setMap(I)},options(N,I){N.setOptions(I)},panel(N,I){N.setPanel(I)},routeIndex(N,I){N.setRouteIndex(I)}};
1148class nl extends W.PureComponent{constructor(){super(...arguments),Y(this,"registeredEvents",[]),Y(this,"state",{directionsRenderer:null}),Y(this,"setDirectionsRendererCallback",()=>{null!==this.state.directionsRenderer&&(this.state.directionsRenderer.setMap(this.context),this.props.onLoad&&this.props.onLoad(this.state.directionsRenderer))})}componentDidMount(){var N=new google.maps.DirectionsRenderer(this.props.options);this.registeredEvents=eo({updaterMap:ns,eventMap:no,prevProps:{},nextProps:this.props,instance:N}),this.setState(function(){return{directionsRenderer:N}},this.setDirectionsRendererCallback)}componentDidUpdate(N){null!==this.state.directionsRenderer&&(ei(this.registeredEvents),this.registeredEvents=eo({updaterMap:ns,eventMap:no,prevProps:N,nextProps:this.props,instance:this.state.directionsRenderer}))}componentWillUnmount(){null!==this.state.directionsRenderer&&(this.props.onUnmount&&this.props.onUnmount(this.state.directionsRenderer),ei(this.registeredEvents),this.state.directionsRenderer&&this.state.directionsRenderer.setMap(null))}render(){return null}}Y(nl,"contextType",Z),W.PureComponent;var nc={onPlacesChanged:"places_changed"}
1148,nu={bounds(N,I){N.setBounds(I)}};class nd extends W.PureComponent{constructor(){super(...arguments),Y(this,"registeredEvents",[]),Y(this,"containerElement",(0,W.createRef)()),Y(this,"state",{searchBox:null}),Y(this,"setSearchBoxCallback",()=>{null!==this.state.searchBox&&this.props.onLoad&&this.props.onLoad(this.state.searchBox)})}componentDidMount(){if(Q(!!google.maps.places,'You need to provide libraries={["places"]} prop to <LoadScript /> component %s',google.maps.places),null!==this.containerElement&&null!==this.containerElement.current){var N=this.containerElement.current.querySelector("input");if(null!==N){var I=new google.maps.places.SearchBox(N,this.props.options);this.registeredEvents=eo({updaterMap:nu,eventMap:nc,prevProps:{},nextProps:this.props,instance:I}),this.setState(function(){return{searchBox:I}},this.setSearchBoxCallback)}}}componentDidUpdate(N){null!==this.state.searchBox&&(ei(this.registeredEvents),this.registeredEvents=eo({updaterMap:nu,eventMap:nc,prevProps:N,nextProps:this.props,instance:this.state.searchBox}))}componentWillUnmount(){null!==this.state.searchBox&&(this.props.onUnmount&&this.props.onUnmount(this.state.searchBox),ei(this.registeredEvents))}render(){return(0,z.jsx)("div",{ref:this.containerElement,children:W.Children.only(this.props.children)})}}Y(nd,"contextType",Z);var nf={onPlaceChanged:"place_changed"},nh={bounds(N,I){N.setBounds(I)},restrictions(N,I){N.setComponentRestrictions(I)},fields(N,I){N.setFields(I)},options(N,I){N.setOptions(I)},types(N,I){N.setTypes(I)}};class np extends W.PureComponent{constructor(){super(...arguments),Y(this,"registeredEvents",[]),Y(this,"containerElement",(0,W.createRef)()),Y(this,"state",{autocomplete:null}),Y(this,"setAutocompleteCallback",()=>{null!==this.state.autocomplete&&this.props.onLoad&&this.props.onLoad(this.state.autocomplete)})}componentDidMount(){Q(!!google.maps.places,'You need to provide libraries={["places"]} prop to <LoadScript /> component %s',google.maps.places);var N,I=null==(N=this.containerElement.current)?void 0:N.querySelector("input");if(I){var T=new google.maps.places.Autocomplete(I,this.props.options);this.registeredEvents=eo({updaterMap:nh,eventMap:nf,prevProps:{},nextProps:this.props,instance:T}),this.setState(()=>({autocomplete:T}),this.setAutocompleteCallback)}}componentDidUpdate(N){ei(this.registeredEvents),this.registeredEvents=eo({updaterMap:nh,eventMap:nf,prevProps:N,nextProps:this.props,instance:this.state.autocomplete})}componentWillUnmount(){null!==this.state.autocomplete&&ei(this.registeredEvents)}render(){return(0,z.jsx)("div",{ref:this.containerElement,className:this.props.className,children:W.Children.only(this.props.children)})}}Y(np,"defaultProps",{className:""}),Y(np,"contextType",Z)},63136:(N,I,T)=>{"use strict";T.r(I),T.d(I,{Continents:()=>D});var P,D=((P={}).NorthAmerica="NorthAmerica",P.NorthAmericaInfo="NorthAmericaInfo",P.SouthAmerica="SouthAmerica",P.SouthAmericaInfo="SouthAmericaInfo",P.Europe="Europe",P.EuropeInfo="EuropeInfo",P.Africa="Africa",P.AfricaInfo="AfricaInfo",P.Asia="Asia",P.AsiaInfo="AsiaInfo",P.MiddleEast="MiddleEast",P.MiddleEastInfo="MiddleEastInfo",P.Australasia="Australasia",P.AustralasiaInfo="AustralasiaInfo",P)},63234:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),function(N,I){for(var T in I)Object.defineProperty(N,T,{enumerable:!0,get:I[T]})}(I,{MutableRequestCookiesAdapter:function(){return H},ReadonlyRequestCookiesError:function(){return L},RequestCookiesAdapter:function(){return $},appendMutableCookies:function(){return U},areCookiesMutableInCurrentPhase:function(){return W},createCookiesWithMutableAccessCheck:function(){return z},getModifiedCookieValues:function(){return B},responseCookiesToRequestCookies:function(){return G}});let P=T(18769),D=T(81176),M=T(57049),R=T(24210);class L extends Error{constructor(){super("Cookies can only be modified in a Server Action or Route Handler. Read more: https://nextjs.org/docs/app/api-reference/functions/cookies#options"),Object.defineProperty(this,"__NEXT_ERROR_CODE",{value:"E1180",enumerable:!1,configurable:!0})}static callable(){throw new L}}class ${static seal(N){return new Proxy(N,{get(N,I,T){switch(I){case"clear":case"delete":case"set":return L.callable;default:return D.ReflectAdapter.get(N,I,T)}}})}static fresh(N){return new Proxy(N,{get:(N,I,T)=>D.ReflectAdapter.get(N,I,T)})}}let F=Symbol.for("next.mutated.cookies");function B(N){let I=N[F];return I&&Array.isArray(I)&&0!==I.length?I:[]}function U(N,I){let T=B(I);if(0===T.length)return!1;let D=new P.ResponseCookies(N),M=D.getAll();for(let N of T)D.set(N);for(let N of M)D.set(N);return!0}class H{static wrap(N,I){let T=new P.ResponseCookies(new Headers);for(let I of N.getAll())T.set(I);let L=[],$=new Set,B=()=>{let N=M.workAsyncStorage.getStore();if(N&&(N.pathWasRevalidated=R.ActionDidRevalidateStaticAndDynamic),L=T.getAll().filter(N=>$.has(N.name)),I){let N=[];for(let I of L){let T=new P.ResponseCookies(new Headers);T.set(I),N.push(T.toString())}I(N)}},U=new Proxy(T,{get(N,I,T){switch(I){case F:return L;
1148case"delete":return function(...I){$.add("string"==typeof I[0]?I[0]:I[0].name);try{return N.delete(...I),U}finally{B()}};case"set":return function(...I){$.add("string"==typeof I[0]?I[0]:I[0].name);try{return N.set(...I),U}finally{B()}};default:return D.ReflectAdapter.get(N,I,T)}}});return U}}function z(N){let I=new Proxy(N.mutableCookies,{get(T,P,M){switch(P){case"delete":return function(...P){return q(N,"cookies().delete"),T.delete(...P),I};case"set":return function(...P){return q(N,"cookies().set"),T.set(...P),I};default:return D.ReflectAdapter.get(T,P,M)}}});return I}function W(N){return"action"===N.phase}function q(N,I){if(!W(N))throw new L}function G(N){let I=new P.RequestCookies(new Headers);for(let T of N.getAll())I.set(T);return I}},63341:(N,I,T)=>{"use strict";T.d(I,{A:()=>$});var P=T(37876),D=T(34699),M=T(85609),R=T(55197),L=T(30463);let $=({children:N,componentProps:I,page:$})=>(0,P.jsx)(D.Ph,{value:I??{},children:(0,P.jsx)(M.Ex,{componentMap:R.A,api:L.A.api,page:$,loadImportMap:()=>T.e(29).then(T.bind(T,57029)),children:N})})},63366:(N,I,T)=>{"use strict";T.d(I,{az:()=>P.a,zk:()=>U,oM:()=>Y,tk:()=>eL.tk,In:()=>z.I,c0:()=>H.c0,o5:()=>J.o,L9:()=>eM,gO:()=>eR.g,lJ:()=>H.lJ,kL:()=>H.kL});var P=T(10409),D=T(37876),M=T(47137),R=T(14232),L=T(36379);let $=(0,M.F)("",{variants:{wrapperVariant:{default:"w-full",navMenu:"md:border-grey-400 fixed left-0 z-30 w-screen border-accent-iron bg-brunel-dark-grey!",full:"w-full",fit:"w-fit"},height:{fit:"h-fit",full:"h-full"},bgColor:{white:"bg-white",transparent:"bg-transparent"}},defaultVariants:{wrapperVariant:"default",height:"fit"}}),F=` 1149 w-full lg:px-5 xl:p-0 xl:pl-0.5 1150 text-brunel-dark-grey 1151 overflow-hidden 1152`,B=(0,M.F)([F],{variants:{variant:{default:"",navMenu:"inset-x-0 bg-transparent! md:h-fit",socialMedia:"p-3 first:pl-1"},columns:{1:"grid grid-cols-1",2:"grid grid-cols-1 md:grid-cols-2",3:"grid grid-cols-1 md:grid-cols-3",4:"grid grid-cols-1 md:grid-cols-4",5:"grid grid-cols-1 md:grid-cols-5","footer-3":"grid-cols-3"},gap:{none:"gap-0",xs:"gap-0 md:gap-2",sm:"gap-0 md:gap-4",md:"gap-0 md:gap-6",lg:"gap-0 md:gap-8"},contentWidth:{default:"mx-auto md:max-w-(--breakpoint-lg)",fit:"w-fit md:w-fit"},align:{default:"flex items-center"},contentBgColor:{default:"bg-brunel-dark-grey",white:"bg-white",lightGrey:"bg-accent-fiord px-0 md:px-0 xl:pl-0",transparent:"bg-transparent",taylorHopkinson:"bg-th-primary-background"},textColor:{textGrey:"text-grey-400 md:text-grey-400",textWhite:"text-white"},contentPadding:{none:"p-0 md:p-0 lg:p-0",small:"p-3 md:p-3 xl:p-3"}},defaultVariants:{variant:"default",columns:"1",gap:"none",contentWidth:"default",contentBgColor:"default"}}),U=(0,R.forwardRef)(({children:N,bgColor:I,contentBgColor:T,textColor:P,variant:M,contentWidth:R,align:F,wrapperVariant:U,className:H,columns:z,gap:W,contentPadding:q,...G},K)=>(0,D.jsx)("div",{className:(0,L.cn)($({bgColor:I,wrapperVariant:U}),H),ref:K,...G,children:(0,D.jsx)("div",{className:(0,L.cn)(B({variant:M,columns:z,gap:W,align:F,contentWidth:R,contentBgColor:T,textColor:P,contentPadding:q})),children:N})}));U.displayName="DataTableList";var H=T(96201),z=T(56375),W=T(87273),q=T(40163),G=T(79239),K=T(23649);let V=(0,M.F)("component-content flex h-full flex-col flex-wrap overflow-hidden rounded-sm md:flex-row",{variants:{imagePosition:{left:"flex-row",right:"flex-row-reverse md:flex-row-reverse"}}}),Y=({title:N,buttonLink:I,buttonIcon:T,buttonIconPosition:M,imagePosition:R,description:$,border:F=!0,icon:B,image:U})=>{let H=V({imagePosition:R});return(0,D.jsxs)(P.a,{className:H,children:[(U?.value?.src??B)&&(0,D.jsxs)(P.a,{className:(0,L.cn)("relative h-auto w-full md:w-1/2",B&&"flex items-center justify-center bg-brunel-dark-grey md:h-auto md:w-98"),children:[U?.value?.src&&(0,D.jsx)(W._,{field:U,alt:U?.value?.alt,className:"h-auto w-full object-cover object-center md:h-full"}),B&&(0,D.jsx)(P.a,{as:"span",className:"image-text-svg-wrapper flex size-27.5 items-center justify-center text-white md:size-55",children:(0,D.jsx)(z.I,{name:B?.value,color:"white",size:"xl"})})]}),(0,D.jsxs)(P.a,{className:(0,L.cn)("image-text-content h-auto flex-1 bg-white py-6 text-base md:flex md:flex-col md:justify-center md:p-6",B&&"md:w-[calc(100%-392px)]",!F&&"p-6 lg:p-24!"),children:[(0,D.jsx)(q.E,{field:N,tag:"h2",className:"mb-0 px-8 font-semibold lg:px-4"}),(0,D.jsx)(G.s,{field:$,className:"break-word rich-text p-8 pt-6 text-base lg:p-4"}),(0,D.jsx)(K.Button,{variant:"secondary",linkField:I,iconName:T,iconSide:M,className:"mt-6 ml-8 lg:ml-4"})]})]})};T(55027);var J=T(6807),Q=T(85609);let Z=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,X=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,ee=/\.(m3u8)($|\?)/i,et=/\.(mpd)($|\?)/i,er=
1152/stream\.mux\.com\/(?!\w+\.m3u8)(\w+)/,en=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,ea=/vimeo\.com\/(?!progressive_redirect).+/,ei=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,eo=/open\.spotify\.com\/(\w+)\/(\w+)/i,es=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+|(videos?\/|\?video=)\d+)($|\?)/,el=/tiktok\.com\/(?:player\/v1\/|share\/video\/|@[^/]+\/video\/)([0-9]+)/,ec=(N,I)=>{if(Array.isArray(N)){for(let T of N)if("string"==typeof T&&ec(T,I)||ec(T.src,I))return!0;return!1}return I(N)},eu=N=>ec(N,N=>Z.test(N)||X.test(N)),ed=N=>ec(N,N=>ee.test(N)),ef=N=>ec(N,N=>et.test(N)),eh=N=>er.test(N),ep=N=>en.test(N),em=N=>ea.test(N)&&!X.test(N)&&!ee.test(N),eg=N=>ei.test(N),ey=N=>eo.test(N),eb=N=>es.test(N),ev=N=>el.test(N);var ew=R.forwardRef((N,I)=>{let T=Z.test(`${N.src}`)?"audio":"video";return R.createElement(T,{...N,ref:I},N.children)}),ex=[{key:"hls",name:"hls.js",canPlay:ed,canEnablePIP:()=>!0,player:(0,R.lazy)(()=>Promise.all([T.e(888),T.e(454),T.e(262)]).then(T.bind(T,59108)))},{key:"dash",name:"dash.js",canPlay:ef,canEnablePIP:()=>!0,player:(0,R.lazy)(()=>Promise.all([T.e(454),T.e(395)]).then(T.bind(T,35111)))},{key:"mux",name:"Mux",canPlay:eh,canEnablePIP:()=>!0,player:(0,R.lazy)(()=>Promise.all([T.e(888),T.e(454),T.e(723)]).then(T.bind(T,54904)))},{key:"youtube",name:"YouTube",canPlay:ep,player:(0,R.lazy)(()=>T.e(446).then(T.bind(T,74734)))},{key:"vimeo",name:"Vimeo",canPlay:em,player:(0,R.lazy)(()=>T.e(173).then(T.bind(T,8101)))},{key:"wistia",name:"Wistia",canPlay:eg,canEnablePIP:()=>!0,player:(0,R.lazy)(()=>T.e(340).then(T.bind(T,71624)))},{key:"spotify",name:"Spotify",canPlay:ey,canEnablePIP:()=>!1,player:(0,R.lazy)(()=>T.e(771).then(T.bind(T,33608)))},{key:"twitch",name:"Twitch",canPlay:eb,canEnablePIP:()=>!1,player:(0,R.lazy)(()=>T.e(42).then(T.bind(T,13276)))}
1152,{key:"tiktok",name:"TikTok",canPlay:ev,canEnablePIP:()=>!1,player:(0,R.lazy)(()=>T.e(85).then(T.bind(T,91948)))},{key:"html",name:"html",canPlay:eu,canEnablePIP:()=>!0,player:ew}];let eA={width:"320px",height:"180px",volume:1,playbackRate:1,previewTabIndex:0,previewAriaLabel:"",oEmbedUrl:"https://noembed.com/embed?url={url}"},eE=R.forwardRef((N,I)=>{let{playing:T,pip:P}=N,D=N.activePlayer,M=(0,R.useRef)(null),L=(0,R.useRef)(!0);(0,R.useEffect)(()=>{var I,P;M.current&&(M.current.paused&&!0===T&&M.current.play(),M.current.paused||!1!==T||M.current.pause(),M.current.playbackRate=null!=(I=N.playbackRate)?I:1,M.current.volume=null!=(P=N.volume)?P:1)}),(0,R.useEffect)(()=>{var N,I,T,D,R;if(M.current&&globalThis.document){if(P&&!document.pictureInPictureElement)try{null==(I=(N=M.current).requestPictureInPicture)||I.call(N)}catch(N){}if(!P&&document.pictureInPictureElement)try{null==(D=(T=M.current).exitPictureInPicture)||D.call(T),null==(R=document.exitPictureInPicture)||R.call(document)}catch(N){}}},[P]);let $=I=>{var T,P;L.current=!0,null==(T=N.onReady)||T.call(N),null==(P=N.onLoadStart)||P.call(N,I)},F=I=>{var T,P;L.current&&(L.current=!1,null==(T=N.onStart)||T.call(N,I)),null==(P=N.onPlay)||P.call(N,I)};if(!D)return null;let B={},U=["onReady","onStart"];for(let I in N)I.startsWith("on")&&!U.includes(I)&&(B[I]=N[I]);return R.createElement(D,{...B,style:N.style,className:N.className,slot:N.slot,ref:(0,R.useCallback)(N=>{M.current=N,"function"==typeof I?I(N):null!==I&&(I.current=N)},[I]),src:N.src,crossOrigin:N.crossOrigin,preload:N.preload,controls:N.controls,muted:N.muted,autoPlay:N.autoPlay,loop:N.loop,playsInline:N.playsInline,disableRemotePlayback:N.disableRemotePlayback,config:N.config,onLoadStart:$,onPlay:F},N.children)});eE.displayName="Player";var eS=eE;let e_=(0,R.lazy)(()=>T.e(353).then(T.bind(T,16521))),ek=[],eC=(N,I)=>{let T=T=>{for(let I of[...ek,...N])if(T&&I.canPlay(T))return I;return I||null},P=R.forwardRef((N,I)=>{let P={...eA,...N},{src:D,slot:M,className:L,style:$,width:F,height:B,fallback:U,wrapper:H}=P,[z,W]=(0,R.useState)(!!P.light);(0,R.useEffect)(()=>{P.light?W(!0):W(!1)},[P.light]);let q=N=>{var I;W(!1),null==(I=P.onClickPreview)||I.call(P,N)},G=N=>{if(!N)return null;let{light:I,playIcon:T,previewTabIndex:D,oEmbedUrl:M,previewAriaLabel:L}=P;return R.createElement(e_,{src:N,light:I,playIcon:T,previewTabIndex:D,previewAriaLabel:L,oEmbedUrl:M,onClickPreview:q})},K=N=>{var D,$;let F=T(N);if(!F)return null;let{style:B,width:U,height:H,wrapper:z}=P,W=null==(D=P.config)?void 0:D[F.key];return R.createElement(eS,{...P,ref:I,activePlayer:null!=($=F.player)?$:F,slot:z?void 0:M,className:z?void 0:L,style:z?{display:"block",width:"100%",height:"100%"}:{display:"block",width:U,height:H,...B},config:W})},V=null==H?ej:H,Y=!1===U?ej:R.Suspense;return R.createElement(V,{slot:M,className:L,style:{width:F,height:B,...$}},R.createElement(Y,{fallback:U},z?G(D):K(D)))});return P.displayName="ReactPlayer",P.addCustomPlayer=N=>{ek.push(N)},P.removeCustomPlayers=()=>{ek.length=0},P.canPlay=I=>{if(I){for(let T of[...ek,...N])if(T.canPlay(I))return!0}return!1},P.canEnablePIP=I=>{var T;if(I){for(let P of[...ek,...N])if(P.canPlay(I)&&(null==(T=P.canEnablePIP)?void 0:T.call(P)))return!0}return!1},P},ej=({children:N})=>N,eO=ex[ex.length-1];var eN=eC(ex,eO),eI=T(92678),eT=T(98566),eP=T(54449);let eD=N=>{let I=/(?<=v=|\/v\/|\/embed\/|youtu.be\/|\/v=|\/embed=|youtu.be=|\/v\/|\/e\/|watch\?v=|v%3D|^youtu.be\/|embed\/|watch\?v=|\?v=)([^#\\&\\?]+).*/.exec(N);return I?I[1]:null},eM=({src:N,isFullWidth:I})=>{let T=(0,eT.K_)(),M=(0,Q.M5)()?.page.mode.isEditing??!1,[$,F]=(0,R.useState)(!1),[B,U]=(0,R.useState)(!1),H=(0,eP.u)(),W=eD(N),q=W?`https://img.youtube.com/vi/${W}/maxresdefault.jpg`:void 0,G=T?.["cookies-required-title"]??"[cookies-required-title]",K=T?.["video-player-cookies-message"]??"[video-player-cookies-message]",V=T?.["change-cookie-settings-button"]??"[change-cookie-settings-button]";return H.loading?(0,D.jsx)(P.a,{className:"aspect-video size-full bg-accent-fiord opacity-90"}):H.videoConsent||M?(0,D.jsx)(P.a,{className:"aspect-video size-full bg-black",children:$?(0,D.jsxs)("div",{className:"flex h-full flex-col items-center justify-center gap-4 text-white",children:[(0,D.jsx)(J.o,{type:"large",plainText:T?.["video-player-error-message"]??"[video-player-error-message]"}),(0,D.jsx)(eI.Button,{onClick:()=>F(!1),className:"h-10 p-4",plainText:T?.["video-player-retry-button"]??"[video-player-retry-button]"})]}
1152):(0,D.jsx)(eN,{className:`${I?"mx-auto h-full! w-full max-w-250":"h-full!"}`,src:N,width:"100%",controls:B,light:q,playIcon:(0,D.jsx)("img",{src:"/images/play-icon.svg",alt:"Play Video"}),onReady:()=>U(!0),onError:()=>F(!0)})}):(0,D.jsxs)(P.a,{className:"flex aspect-video flex-col items-center justify-center bg-accent-fiord p-6 text-center lg:p-0",children:[(0,D.jsx)(P.a,{className:"mb-4 text-3xl",children:(0,D.jsx)(z.I,{name:"cookies",size:"partners",color:"white"})}),(0,D.jsxs)(P.a,{className:"flex flex-col md:gap-4",children:[(0,D.jsx)(J.o,{type:"h2",className:"text-white! md:m-0",plainText:G,color:"white"}),(0,D.jsx)(J.o,{type:"medium",className:"mb-6 line-clamp-2 text-white",plainText:K}),(0,D.jsx)(eI.Button,{id:"change-cookie-settings",variant:"primary",className:"mx-auto",onClick:(0,L.RT)([]).handleChangeCookieSettings,plainText:V})]})]})};var eR=T(81943),eL=T(53301);T(59088)},63426:(N,I,T)=>{var P="/",D=T(82909).Buffer,M=T(99742),R={9186:function(N,I,T){var P=I;P.bignum=T(5944),P.define=T(5673).define,P.base=T(8747),P.constants=T(8063),P.decoders=T(2455),P.encoders=T(5555)},5673:function(N,I,T){var P=T(9186),D=T(1638);function M(N,I){this.name=N,this.body=I,this.decoders={},this.encoders={}}I.define=function(N,I){return new M(N,I)},M.prototype._createNamed=function(N){var I;try{I=T(9154).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(N){I=function(N){this._initNamed(N)}}return D(I,N),I.prototype._initNamed=function(I){N.call(this,I)},new I(this)},M.prototype._getDecoder=function(N){return N=N||"der",this.decoders.hasOwnProperty(N)||(this.decoders[N]=this._createNamed(P.decoders[N])),this.decoders[N]},M.prototype.decode=function(N,I,T){return this._getDecoder(I).decode(N,T)},M.prototype._getEncoder=function(N){return N=N||"der",this.encoders.hasOwnProperty(N)||(this.encoders[N]=this._createNamed(P.encoders[N])),this.encoders[N]},M.prototype.encode=function(N,I,T){return this._getEncoder(I).encode(N,T)}},5781:function(N,I,T){var P=T(1638),D=T(8747).Reporter,M=T(181).Buffer;function R(N,I){(D.call(this,I),M.isBuffer(N))?(this.base=N,this.offset=0,this.length=N.length):this.error("Input not Buffer")}function L(N,I){if(Array.isArray(N))this.length=0,this.value=N.map(function(N){return N instanceof L||(N=new L(N,I)),this.length+=N.length,N},this);else if("number"==typeof N){if(!(0<=N&&N<=255))return I.error("non-byte EncoderBuffer value");this.value=N,this.length=1}else if("string"==typeof N)this.value=N,this.length=M.byteLength(N);else{if(!M.isBuffer(N))return I.error("Unsupported type: "+typeof N);this.value=N,this.length=N.length}}P(R,D),I.t=R,R.prototype.save=function(){return{offset:this.offset,reporter:D.prototype.save.call(this)}},R.prototype.restore=function(N){var I=new R(this.base);return I.offset=N.offset,I.length=this.offset,this.offset=N.offset,D.prototype.restore.call(this,N.reporter),I},R.prototype.isEmpty=function(){return this.offset===this.length},R.prototype.readUInt8=function(N){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(N||"DecoderBuffer overrun")},R.prototype.skip=function(N,I){if(!(this.offset+N<=this.length))return this.error(I||"DecoderBuffer overrun");var T=new R(this.base);return T._reporterState=this._reporterState,T.offset=this.offset,T.length=this.offset+N,this.offset+=N,T},R.prototype.raw=function(N){return this.base.slice(N?N.offset:this.offset,this.length)},I.d=L,L.prototype.join=function(N,I){return N||(N=new M(this.length)),I||(I=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(T){T.join(N,I),I+=T.length}):("number"==typeof this.value?N[I]=this.value:"string"==typeof this.value?N.write(this.value,I):M.isBuffer(this.value)&&this.value.copy(N,I),I+=this.length)),N}},8747:function(N,I,T){var P=I;P.Reporter=T(9257).a,P.DecoderBuffer=T(5781).t,P.EncoderBuffer=T(5781).d,P.Node=T(763)},763:function(N,I,T){var P=T(8747).Reporter,D=T(8747).EncoderBuffer,M=T(8747).DecoderBuffer,R=T(7551),L=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],$=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(L),F=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function B(N,I){var T={};this._baseState=T,T.enc=N,T.parent=I||null,T.children=null,T.tag=null,T.args=null,T.reverseArgs=null,T.choice=null,T.optional=!1,T.any=!1,T.obj=!1,T.use=null,T.useDecoder=null,T.key=null,T.default=null,T.explicit=null,T.implicit=null,T.contains=null,T.parent||(T.children=[],this._wrap())}N.exports=B;var U=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];B.prototype.clone=function(){var N=this._baseState,I={};
vendor: 9,961 bytes, line 1152
1152U.forEach(function(T){I[T]=N[T]});var T=new this.constructor(I.parent);return T._baseState=I,T},B.prototype._wrap=function(){var N=this._baseState;$.forEach(function(I){this[I]=function(){var T=new this.constructor(this);return N.children.push(T),T[I].apply(T,arguments)}},this)},B.prototype._init=function(N){var I=this._baseState;R(null===I.parent),N.call(this),I.children=I.children.filter(function(N){return N._baseState.parent===this},this),R.equal(I.children.length,1,"Root node can have only one child")},B.prototype._useArgs=function(N){var I=this._baseState,T=N.filter(function(N){return N instanceof this.constructor},this);N=N.filter(function(N){return!(N instanceof this.constructor)},this),0!==T.length&&(R(null===I.children),I.children=T,T.forEach(function(N){N._baseState.parent=this},this)),0!==N.length&&(R(null===I.args),I.args=N,I.reverseArgs=N.map(function(N){if("object"!=typeof N||N.constructor!==Object)return N;var I={};return Object.keys(N).forEach(function(T){T==(0|T)&&(T|=0),I[N[T]]=T}),I}))},F.forEach(function(N){B.prototype[N]=function(){throw Error(N+" not implemented for encoding: "+this._baseState.enc)}}),L.forEach(function(N){B.prototype[N]=function(){var I=this._baseState,T=Array.prototype.slice.call(arguments);return R(null===I.tag),I.tag=N,this._useArgs(T),this}}),B.prototype.use=function(N){R(N);var I=this._baseState;return R(null===I.use),I.use=N,this},B.prototype.optional=function(){return this._baseState.optional=!0,this},B.prototype.def=function(N){var I=this._baseState;return R(null===I.default),I.default=N,I.optional=!0,this},B.prototype.explicit=function(N){var I=this._baseState;return R(null===I.explicit&&null===I.implicit),I.explicit=N,this},B.prototype.implicit=function(N){var I=this._baseState;return R(null===I.explicit&&null===I.implicit),I.implicit=N,this},B.prototype.obj=function(){var N=this._baseState,I=Array.prototype.slice.call(arguments);return N.obj=!0,0!==I.length&&this._useArgs(I),this},B.prototype.key=function(N){var I=this._baseState;return R(null===I.key),I.key=N,this},B.prototype.any=function(){return this._baseState.any=!0,this},B.prototype.choice=function(N){var I=this._baseState;return R(null===I.choice),I.choice=N,this._useArgs(Object.keys(N).map(function(I){return N[I]})),this},B.prototype.contains=function(N){var I=this._baseState;return R(null===I.use),I.contains=N,this},B.prototype._decode=function(N,I){var T,P=this._baseState;if(null===P.parent)return N.wrapResult(P.children[0]._decode(N,I));var D=P.default,R=!0,L=null;if(null!==P.key&&(L=N.enterKey(P.key)),P.optional){var $=null;if(null!==P.explicit?$=P.explicit:null!==P.implicit?$=P.implicit:null!==P.tag&&($=P.tag),null!==$||P.any){if(R=this._peekTag(N,$,P.any),N.isError(R))return R}else{var F=N.save();try{null===P.choice?this._decodeGeneric(P.tag,N,I):this._decodeChoice(N,I),R=!0}catch(N){R=!1}N.restore(F)}}if(P.obj&&R&&(T=N.enterObject()),R){if(null!==P.explicit){var B=this._decodeTag(N,P.explicit);if(N.isError(B))return B;N=B}var U=N.offset;if(null===P.use&&null===P.choice){if(P.any)var F=N.save();var H=this._decodeTag(N,null!==P.implicit?P.implicit:P.tag,P.any);if(N.isError(H))return H;P.any?D=N.raw(F):N=H}if(I&&I.track&&null!==P.tag&&I.track(N.path(),U,N.length,"tagged"),I&&I.track&&null!==P.tag&&I.track(N.path(),N.offset,N.length,"content"),P.any||(D=null===P.choice?this._decodeGeneric(P.tag,N,I):this._decodeChoice(N,I)),N.isError(D))return D;if(P.any||null!==P.choice||null===P.children||P.children.forEach(function(T){T._decode(N,I)}),P.contains&&("octstr"===P.tag||"bitstr"===P.tag)){var z=new M(D);D=this._getUse(P.contains,N._reporterState.obj)._decode(z,I)}}return P.obj&&R&&(D=N.leaveObject(T)),null!==P.key&&(null!==D||!0===R)?N.leaveKey(L,P.key,D):null!==L&&N.exitKey(L),D},B.prototype._decodeGeneric=function(N,I,T){var P=this._baseState;if("seq"===N||"set"===N)return null;if("seqof"===N||"setof"===N)return this._decodeList(I,N,P.args[0],T);if(/str$/.test(N))return this._decodeStr(I,N,T);if("objid"===N&&P.args)return this._decodeObjid(I,P.args[0],P.args[1],T);if("objid"===N)return this._decodeObjid(I,null,null,T);if("gentime"===N||"utctime"===N)return this._decodeTime(I,N,T);else if("null_"===N)return this._decodeNull(I,T);else if("bool"===N)return this._decodeBool(I,T);else if("objDesc"===N)return this._decodeStr(I,N,T);else if("int"===N||"enum"===N)return this._decodeInt(I,P.args&&P.args[0],T);return null!==P.use?this._getUse(P.use,I._reporterState.obj)._decode(I,T):I.error("unknown tag: "+N)},B.prototype._getUse=function(N,I){var T=this._baseState;return T.useDecoder=this._use(N,I),R(null===T.useDecoder._baseState.parent),T.useDecoder=T.useDecoder._baseState.children[0],T.implicit!==T.useDecoder._baseState.implicit&&(T.useDecoder=T.useDecoder.clone(),T.useDecoder._baseState.implicit=T.implicit),T.useDecoder},B.prototype._decodeChoice=function(N,I){var T=this._baseState,P=null,D=!1;return(Object.keys(T.choice).some(function(M){var R=N.save(),L=T.choice[M];try{var $=L._decode(N,I);if(N.isError($))return!1;P={type:M,value:$},D=!0}catch(I){return N.restore(R),!1}return!0},this),D)?P:N.error("Choice not matched")},B.prototype._createEncoderBuffer=function(N){return new D(N,this.reporter)},B.prototype._encode=function(N,I,T){var P=this._baseState;if(null===P.default||P.default!==N){var D=this._encodeValue(N,I,T);if(void 0!==D&&!this._skipDefault(D,I,T))return D}},B.prototype._encodeValue=function(N,I,T){var D,M=this._baseState;if(null===M.parent)return M.children[0]._encode(N,I||new P);var D=null;if(this.reporter=I,M.optional&&void 0===N)if(null===M.default)return;else N=M.default;var R=null,L=!1;if(M.any)D=this._createEncoderBuffer(N);else if(M.choice)D=this._encodeChoice(N,I);else if(M.contains)R=this._getUse(M.contains,T)._encode(N,I),L=!0;else if(M.children)R=M.children.map(function(T){if("null_"===T._baseState.tag)return T._encode(null,I,N);if(null===T._baseState.key)return I.error("Child should have a key");var P=I.enterKey(T._baseState.key);if("object"!=typeof N)return I.error("Child expected, but input is not object");var D=T._encode(N[T._baseState.key],I,N);return I.leaveKey(P),D},this).filter(function(N){return N}),R=this._createEncoderBuffer(R);else if("seqof"===M.tag||"setof"===M.tag){if(!(M.args&&1===M.args.length))return I.error("Too many args for : "+M.tag);if(!Array.isArray(N))return I.error("seqof/setof, but data is not Array");var $=this.clone();$._baseState.implicit=null,R=this._createEncoderBuffer(N.map(function(T){var P=this._baseState;return this._getUse(P.args[0],N)._encode(T,I)},$))}else null!==M.use?D=this._getUse(M.use,T)._encode(N,I):(R=this._encodePrimitive(M.tag,N),L=!0);if(!M.any&&null===M.choice){var F=null!==M.implicit?M.implicit:M.tag,B=null===M.implicit?"universal":"context";null===F?null===M.use&&I.error("Tag could be omitted only for .use()"):null===M.use&&(D=this._encodeComposite(F,L,B,R))}return null!==M.explicit&&(D=this._encodeComposite(M.explicit,!1,"context",D)),D},B.prototype._encodeChoice=function(N,I){var T=this._baseState,P=T.choice[N.type];return P||R(!1,N.type+" not found in "+JSON.stringify(Object.keys(T.choice))),P._encode(N.value,I)},B.prototype._encodePrimitive=function(N,I){var T=this._baseState;if(/str$/.test(N))return this._encodeStr(I,N);if("objid"===N&&T.args)return this._encodeObjid(I,T.reverseArgs[0],T.args[1]);if("objid"===N)return this._encodeObjid(I,null,null);if("gentime"===N||"utctime"===N)return this._encodeTime(I,N);if("null_"===N)return this._encodeNull();else if("int"===N||"enum"===N)return this._encodeInt(I,T.args&&T.reverseArgs[0]);else if("bool"===N)return this._encodeBool(I);else if("objDesc"===N)return this._encodeStr(I,N);else throw Error("Unsupported tag: "+N)},B.prototype._isNumstr=function(N){return/^[0-9 ]*$/.test(N)},B.prototype._isPrintstr=function(N){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(N)}},9257:function(N,I,T){var P=T(1638);function D(N){this._reporterState={obj:null,path:[],options:N||{},errors:[]}}function M(N,I){this.path=N,this.rethrow(I)}I.a=D,D.prototype.isError=function(N){return N instanceof M},D.prototype.save=function(){var N=this._reporterState;return{obj:N.obj,pathLen:N.path.length}},D.prototype.restore=function(N){var I=this._reporterState;I.obj=N.obj,I.path=I.path.slice(0,N.pathLen)},D.prototype.enterKey=function(N){return this._reporterState.path.push(N)},D.prototype.exitKey=function(N){var I=this._reporterState;I.path=I.path.slice(0,N-1)},D.prototype.leaveKey=function(N,I,T){var P=this._reporterState;this.exitKey(N),null!==P.obj&&(P.obj[I]=T)},D.prototype.path=function(){return this._reporterState.path.join("/")},D.prototype.enterObject=function(){var N=this._reporterState,I=N.obj;return N.obj={},I},D.prototype.leaveObject=function(N){var I=this._reporterState,T=I.obj;return I.obj=N,T},D.prototype.error=function(N){var I,T=this._reporterState,P=N instanceof M;if(I=P?N:new M(T.path.map(function(N){return"["+JSON.stringify(N)+"]"}).join(""),N.message||N,N.stack),!T.options.partial)throw I;return P||T.errors.push(I),I},D.prototype.wrapResult=function(N){var I=this._reporterState;return I.options.partial?{result:this.isError(N)?null:N,errors:I.errors}:N},P(M,Error),M.prototype.rethrow=function(N){if(this.message=N+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,M),!this.stack)try{throw Error(this.message)}catch(N){this.stack=N.stack}return this}},8060:function(N,I,T){var P=T(8063);I.tagClass={0:"universal",1:"application",2:"context",3:"private"},I.tagClassByName=P._reverse(I.tagClass),I.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},I.tagByName=P._reverse(I.tag)},8063:function(N,I,T){var P=I;P._reverse=function(N){var I={};
1152return Object.keys(N).forEach(function(T){(0|T)==T&&(T|=0),I[N[T]]=T}),I},P.der=T(8060)},8788:function(N,I,T){var P=T(1638),D=T(9186),M=D.base,R=D.bignum,L=D.constants.der;function $(N){this.enc="der",this.name=N.name,this.entity=N,this.tree=new F,this.tree._init(N.body)}function F(N){M.Node.call(this,"der",N)}function B(N,I){var T=N.readUInt8(I);if(N.isError(T))return T;var P=L.tagClass[T>>6],D=(32&T)==0;if((31&T)==31){var M=T;for(T=0;(128&M)==128;){if(M=N.readUInt8(I),N.isError(M))return M;T<<=7,T|=127&M}}else T&=31;var R=L.tag[T];return{cls:P,primitive:D,tag:T,tagStr:R}}function U(N,I,T){var P=N.readUInt8(T);if(N.isError(P))return P;if(!I&&128===P)return null;if((128&P)==0)return P;var D=127&P;if(D>4)return N.error("length octect is too long");P=0;for(var M=0;M<D;M++){P<<=8;var R=N.readUInt8(T);if(N.isError(R))return R;P|=R}return P}N.exports=$,$.prototype.decode=function(N,I){return N instanceof M.DecoderBuffer||(N=new M.DecoderBuffer(N,I)),this.tree._decode(N,I)},P(F,M.Node),F.prototype._peekTag=function(N,I,T){if(N.isEmpty())return!1;var P=N.save(),D=B(N,'Failed to peek tag: "'+I+'"');return N.isError(D)?D:(N.restore(P),D.tag===I||D.tagStr===I||D.tagStr+"of"===I||T)},F.prototype._decodeTag=function(N,I,T){var P=B(N,'Failed to decode tag of "'+I+'"');if(N.isError(P))return P;var D=U(N,P.primitive,'Failed to get length of "'+I+'"');if(N.isError(D))return D;if(!T&&P.tag!==I&&P.tagStr!==I&&P.tagStr+"of"!==I)return N.error('Failed to match tag: "'+I+'"');if(P.primitive||null!==D)return N.skip(D,'Failed to match body of: "'+I+'"');var M=N.save(),R=this._skipUntilEnd(N,'Failed to skip indefinite length body: "'+this.tag+'"');return N.isError(R)?R:(D=N.offset-M.offset,N.restore(M),N.skip(D,'Failed to match body of: "'+I+'"'))},F.prototype._skipUntilEnd=function(N,I){for(;;){var T,P=B(N,I);if(N.isError(P))return P;var D=U(N,P.primitive,I);if(N.isError(D))return D;if(T=P.primitive||null!==D?N.skip(D):this._skipUntilEnd(N,I),N.isError(T))return T;if("end"===P.tagStr)break}},F.prototype._decodeList=function(N,I,T,P){for(var D=[];!N.isEmpty();){var M=this._peekTag(N,"end");if(N.isError(M))return M;var R=T.decode(N,"der",P);if(N.isError(R)&&M)break;D.push(R)}return D},F.prototype._decodeStr=function(N,I){if("bitstr"===I){var T=N.readUInt8();return N.isError(T)?T:{unused:T,data:N.raw()}}if("bmpstr"===I){var P=N.raw();if(P.length%2==1)return N.error("Decoding of string type: bmpstr length mismatch");for(var D="",M=0;M<P.length/2;M++)D+=String.fromCharCode(P.readUInt16BE(2*M));return D}if("numstr"===I){var R=N.raw().toString("ascii");return this._isNumstr(R)?R:N.error("Decoding of string type: numstr unsupported characters")}if("octstr"===I)return N.raw();if("objDesc"===I)return N.raw();else if("printstr"===I){var L=N.raw().toString("ascii");return this._isPrintstr(L)?L:N.error("Decoding of string type: printstr unsupported characters")}else if(/str$/.test(I))return N.raw().toString();else return N.error("Decoding of string type: "+I+" unsupported")},F.prototype._decodeObjid=function(N,I,T){for(var P,D=[],M=0;!N.isEmpty();){var R=N.readUInt8();M<<=7,M|=127&R,(128&R)==0&&(D.push(M),M=0)}128&R&&D.push(M);var L=D[0]/40|0,$=D[0]%40;if(P=T?D:[L,$].concat(D.slice(1)),I){var F=I[P.join(" ")];void 0===F&&(F=I[P.join(".")]),void 0!==F&&(P=F)}return P},F.prototype._decodeTime=function(N,I){var T=N.raw().toString();if("gentime"===I)var P=0|T.slice(0,4),D=0|T.slice(4,6),M=0|T.slice(6,8),R=0|T.slice(8,10),L=0|T.slice(10,12),$=0|T.slice(12,14);else{if("utctime"!==I)return N.error("Decoding "+I+" time is not supported yet");var P=0|T.slice(0,2),D=0|T.slice(2,4),M=0|T.slice(4,6),R=0|T.slice(6,8),L=0|T.slice(8,10),$=0|T.slice(10,12);P=P<70?2e3+P:1900+P}return Date.UTC(P,D-1,M,R,L,$,0)},F.prototype._decodeNull=function(N){return null},F.prototype._decodeBool=function(N){var I=N.readUInt8();return N.isError(I)?I:0!==I},F.prototype._decodeInt=function(N,I){var T=new R(N.raw());return I&&(T=I[T.toString(10)]||T),T},F.prototype._use=function(N,I){return"function"==typeof N&&(N=N(I)),N._getDecoder("der").tree}},2455:function(N,I,T){var P=I;P.der=T(8788),P.pem=T(3093)},3093:function(N,I,T){var P=T(1638),D=T(181).Buffer,M=T(8788);function R(N){M.call(this,N),this.enc="pem"}P(R,M),N.exports=R,R.prototype.decode=function(N,I){for(var T=N.toString().split(/[\r\n]+/g),P=I.label.toUpperCase(),R=/^-----(BEGIN|END) ([^-]+)-----$/,L=-1,$=-1,F=0;F<T.length;F++){var B=T[F].match(R);if(null!==B&&B[2]===P)if(-1===L){if("BEGIN"!==B[1])break;L=F}else{if("END"!==B[1])break;$=F;break}}if(-1===L||-1===$)throw Error("PEM section not found for: "+P);var U=T.slice(L+1,$).join("");
1152U.replace(/[^a-z0-9\+\/=]+/gi,"");var H=new D(U,"base64");return M.prototype.decode.call(this,H,I)}},5640:function(N,I,T){var P=T(1638),D=T(181).Buffer,M=T(9186),R=M.base,L=M.constants.der;function $(N){this.enc="der",this.name=N.name,this.entity=N,this.tree=new F,this.tree._init(N.body)}function F(N){R.Node.call(this,"der",N)}function B(N){return N<10?"0"+N:N}function U(N,I,T,P){var D;if("seqof"===N?N="seq":"setof"===N&&(N="set"),L.tagByName.hasOwnProperty(N))D=L.tagByName[N];else{if("number"!=typeof N||(0|N)!==N)return P.error("Unknown tag: "+N);D=N}return D>=31?P.error("Multi-octet tag encoding unsupported"):(I||(D|=32),D|=L.tagClassByName[T||"universal"]<<6)}N.exports=$,$.prototype.encode=function(N,I){return this.tree._encode(N,I).join()},P(F,R.Node),F.prototype._encodeComposite=function(N,I,T,P){var M=U(N,I,T,this.reporter);if(P.length<128){var R=new D(2);return R[0]=M,R[1]=P.length,this._createEncoderBuffer([R,P])}for(var L=1,$=P.length;$>=256;$>>=8)L++;var R=new D(2+L);R[0]=M,R[1]=128|L;for(var $=1+L,F=P.length;F>0;$--,F>>=8)R[$]=255&F;return this._createEncoderBuffer([R,P])},F.prototype._encodeStr=function(N,I){if("bitstr"===I)return this._createEncoderBuffer([0|N.unused,N.data]);if("bmpstr"===I){for(var T=new D(2*N.length),P=0;P<N.length;P++)T.writeUInt16BE(N.charCodeAt(P),2*P);return this._createEncoderBuffer(T)}if("numstr"===I)return this._isNumstr(N)?this._createEncoderBuffer(N):this.reporter.error("Encoding of string type: numstr supports only digits and space");if("printstr"===I)return this._isPrintstr(N)?this._createEncoderBuffer(N):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark");if(/str$/.test(I))return this._createEncoderBuffer(N);else if("objDesc"===I)return this._createEncoderBuffer(N);else return this.reporter.error("Encoding of string type: "+I+" unsupported")},F.prototype._encodeObjid=function(N,I,T){if("string"==typeof N){if(!I)return this.reporter.error("string objid given, but no values map found");if(!I.hasOwnProperty(N))return this.reporter.error("objid not found in values map");N=I[N].split(/[\s\.]+/g);for(var P=0;P<N.length;P++)N[P]|=0}else if(Array.isArray(N)){N=N.slice();for(var P=0;P<N.length;P++)N[P]|=0}if(!Array.isArray(N))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(N));if(!T){if(N[1]>=40)return this.reporter.error("Second objid identifier OOB");N.splice(0,2,40*N[0]+N[1])}for(var M=0,P=0;P<N.length;P++){var R=N[P];for(M++;R>=128;R>>=7)M++}for(var L=new D(M),$=L.length-1,P=N.length-1;P>=0;P--){var R=N[P];for(L[$--]=127&R;(R>>=7)>0;)L[$--]=128|127&R}return this._createEncoderBuffer(L)},F.prototype._encodeTime=function(N,I){var T,P=new Date(N);return"gentime"===I?T=[B(P.getFullYear()),B(P.getUTCMonth()+1),B(P.getUTCDate()),B(P.getUTCHours()),B(P.getUTCMinutes()),B(P.getUTCSeconds()),"Z"].join(""):"utctime"===I?T=[B(P.getFullYear()%100),B(P.getUTCMonth()+1),B(P.getUTCDate()),B(P.getUTCHours()),B(P.getUTCMinutes()),B(P.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+I+" time is not supported yet"),this._encodeStr(T,"octstr")},F.prototype._encodeNull=function(){return this._createEncoderBuffer("")},F.prototype._encodeInt=function(N,I){if("string"==typeof N){if(!I)return this.reporter.error("String int or enum given, but no values map");if(!I.hasOwnProperty(N))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(N));N=I[N]}if("number"!=typeof N&&!D.isBuffer(N)){var T=N.toArray();!N.sign&&128&T[0]&&T.unshift(0),N=new D(T)}if(D.isBuffer(N)){var P=N.length;0===N.length&&P++;var M=new D(P);return N.copy(M),0===N.length&&(M[0]=0),this._createEncoderBuffer(M)}if(N<128)return this._createEncoderBuffer(N);if(N<256)return this._createEncoderBuffer([0,N]);for(var P=1,R=N;R>=256;R>>=8)P++;for(var M=Array(P),R=M.length-1;R>=0;R--)M[R]=255&N,N>>=8;return 128&M[0]&&M.unshift(0),this._createEncoderBuffer(new D(M))},F.prototype._encodeBool=function(N){return this._createEncoderBuffer(255*!!N)},F.prototype._use=function(N,I){return"function"==typeof N&&(N=N(I)),N._getEncoder("der").tree},F.prototype._skipDefault=function(N,I,T){var P,D=this._baseState;if(null===D.default)return!1;var M=N.join();if(void 0===D.defaultBuffer&&(D.defaultBuffer=this._encodeValue(D.default,I,T).join()),M.length!==D.defaultBuffer.length)return!1;for(P=0;P<M.length;P++)if(M[P]!==D.defaultBuffer[P])return!1;return!0}},5555:function(N,I,T){var P=I;P.der=T(5640),P.pem=T(969)},969:function(N,I,T){var P=T(1638),D=T(5640);function M(N){D.call(this,N),this.enc="pem"}P(M,D),N.exports=M,M.prototype.encode=function(N,I){for(var T=D.prototype.encode.call(this,N).toString("base64"),P=["-----BEGIN "+I.label+"-----"],M=0;M<T.length;M+=64)P.push(T.slice(M,M+64));return P.push("-----END "+I.label+"-----"),P.join("\n")}},5944:function(N,I,T){!function(N,I){"use strict";function P(N,I){if(!N)throw Error(I||"Assertion failed")}function D(N,I){N.super_=I;var T=function(){};T.prototype=I.prototype,N.prototype=new T,N.prototype.constructor=N}function M(N,I,T){if(M.isBN(N))return N;this.negative=0,this.words=null,this.length=0,this.red=null,null!==N&&(("le"===I||"be"===I)&&(T=I,I=10),this._init(N||0,I||10,T||"be"))}
vendor: 8,398 bytes, line 1152
1152"object"==typeof N?N.exports=M:I.BN=M,M.BN=M,M.wordSize=26;try{$=T(181).Buffer}catch(N){}function R(N,I,T){for(var P=0,D=Math.min(N.length,T),M=I;M<D;M++){var R=N.charCodeAt(M)-48;P<<=4,R>=49&&R<=54?P|=R-49+10:R>=17&&R<=22?P|=R-17+10:P|=15&R}return P}function L(N,I,T,P){for(var D=0,M=Math.min(N.length,T),R=I;R<M;R++){var L=N.charCodeAt(R)-48;D*=P,L>=49?D+=L-49+10:L>=17?D+=L-17+10:D+=L}return D}M.isBN=function(N){return N instanceof M||null!==N&&"object"==typeof N&&N.constructor.wordSize===M.wordSize&&Array.isArray(N.words)},M.max=function(N,I){return N.cmp(I)>0?N:I},M.min=function(N,I){return 0>N.cmp(I)?N:I},M.prototype._init=function(N,I,T){if("number"==typeof N)return this._initNumber(N,I,T);if("object"==typeof N)return this._initArray(N,I,T);"hex"===I&&(I=16),P(I===(0|I)&&I>=2&&I<=36);var D=0;"-"===(N=N.toString().replace(/\s+/g,""))[0]&&D++,16===I?this._parseHex(N,D):this._parseBase(N,I,D),"-"===N[0]&&(this.negative=1),this.strip(),"le"===T&&this._initArray(this.toArray(),I,T)},M.prototype._initNumber=function(N,I,T){N<0&&(this.negative=1,N=-N),N<0x4000000?(this.words=[0x3ffffff&N],this.length=1):N<0x10000000000000?(this.words=[0x3ffffff&N,N/0x4000000&0x3ffffff],this.length=2):(P(N<0x20000000000000),this.words=[0x3ffffff&N,N/0x4000000&0x3ffffff,1],this.length=3),"le"===T&&this._initArray(this.toArray(),I,T)},M.prototype._initArray=function(N,I,T){if(P("number"==typeof N.length),N.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(N.length/3),this.words=Array(this.length);for(var D,M,R=0;R<this.length;R++)this.words[R]=0;var L=0;if("be"===T)for(R=N.length-1,D=0;R>=0;R-=3)M=N[R]|N[R-1]<<8|N[R-2]<<16,this.words[D]|=M<<L&0x3ffffff,this.words[D+1]=M>>>26-L&0x3ffffff,(L+=24)>=26&&(L-=26,D++);else if("le"===T)for(R=0,D=0;R<N.length;R+=3)M=N[R]|N[R+1]<<8|N[R+2]<<16,this.words[D]|=M<<L&0x3ffffff,this.words[D+1]=M>>>26-L&0x3ffffff,(L+=24)>=26&&(L-=26,D++);return this.strip()},M.prototype._parseHex=function(N,I){this.length=Math.ceil((N.length-I)/6),this.words=Array(this.length);for(var T,P,D=0;D<this.length;D++)this.words[D]=0;var M=0;for(D=N.length-6,T=0;D>=I;D-=6)P=R(N,D,D+6),this.words[T]|=P<<M&0x3ffffff,this.words[T+1]|=P>>>26-M&4194303,(M+=24)>=26&&(M-=26,T++);D+6!==I&&(P=R(N,I,D+6),this.words[T]|=P<<M&0x3ffffff,this.words[T+1]|=P>>>26-M&4194303),this.strip()},M.prototype._parseBase=function(N,I,T){this.words=[0],this.length=1;for(var P=0,D=1;D<=0x3ffffff;D*=I)P++;P--,D=D/I|0;for(var M=N.length-T,R=M%P,$=Math.min(M,M-R)+T,F=0,B=T;B<$;B+=P)F=L(N,B,B+P,I),this.imuln(D),this.words[0]+F<0x4000000?this.words[0]+=F:this._iaddn(F);if(0!==R){var U=1;for(F=L(N,B,N.length,I),B=0;B<R;B++)U*=I;this.imuln(U),this.words[0]+F<0x4000000?this.words[0]+=F:this._iaddn(F)}},M.prototype.copy=function(N){N.words=Array(this.length);for(var I=0;I<this.length;I++)N.words[I]=this.words[I];N.length=this.length,N.negative=this.negative,N.red=this.red},M.prototype.clone=function(){var N=new M(null);return this.copy(N),N},M.prototype._expand=function(N){for(;this.length<N;)this.words[this.length++]=0;return this},M.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},M.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},M.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var $,F=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],B=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],U=[0,0,0x2000000,0x290d741,0x1000000,0x2e90edd,0x39aa400,0x267bf47,0x1000000,0x290d741,1e7,0x12959c3,0x222c000,0x3bd7765,7529536,0xadcea1,0x1000000,0x1704f61,0x206fc40,0x2cddcf9,64e6,4084101,5153632,6436343,7962624,9765625,0xb54ba0,0xdaf26b,0x1069c00,0x138f9ad,243e5,0x1b4d89f,0x2000000,0x25528a1,0x2b54a20,0x3216b93,0x39aa400];function H(N){for(var I=Array(N.bitLength()),T=0;T<I.length;T++){var P=T/26|0,D=T%26;I[T]=(N.words[P]&1<<D)>>>D}return I}function z(N,I,T){T.negative=I.negative^N.negative;var P=N.length+I.length|0;T.length=P,P=P-1|0;var D=0|N.words[0],M=0|I.words[0],R=D*M,L=0x3ffffff&R,$=R/0x4000000|0;T.words[0]=L;for(var F=1;F<P;F++){for(var B=$>>>26,U=0x3ffffff&$,H=Math.min(F,I.length-1),z=Math.max(0,F-N.length+1);z<=H;z++){var W=F-z|0;B+=(R=(D=0|N.words[W])*(M=0|I.words[z])+U)/0x4000000|0,U=0x3ffffff&R}T.words[F]=0|U,$=0|B}return 0!==$?T.words[F]=0|$:T.length--,T.strip()}M.prototype.toString=function(N,I){if(I=0|I||1,16===(N=N||10)||"hex"===N){for(var T="",D=0,M=0,R=0;R<this.length;R++){var L=this.words[R],$=((L<<D|M)&0xffffff).toString(16);T=0!=(M=L>>>24-D&0xffffff)||R!==this.length-1?F[6-$.length]+$+T:$+T,(D+=2)>=26&&(D-=26,R--)}for(0!==M&&(T=M.toString(16)+T);T.length%I!=0;)T="0"+T;return 0!==this.negative&&(T="-"+T),T}if(N===(0|N)&&N>=2&&N<=36){var H=B[N],z=U[N];T="";var W=this.clone();for(W.negative=0;!W.isZero();){var q=W.modn(z).toString(N);T=(W=W.idivn(z)).isZero()?q+T:F[H-q.length]+q+T}for(this.isZero()&&(T="0"+T);T.length%I!=0;)T="0"+T;return 0!==this.negative&&(T="-"+T),T}P(!1,"Base should be between 2 and 36")},M.prototype.toNumber=function(){var N=this.words[0];return 2===this.length?N+=0x4000000*this.words[1]:3===this.length&&1===this.words[2]?N+=0x10000000000000+0x4000000*this.words[1]:this.length>2&&P(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-N:N},M.prototype.toJSON=function(){return this.toString(16)},M.prototype.toBuffer=function(N,I){return P(void 0!==$),this.toArrayLike($,N,I)},M.prototype.toArray=function(N,I){return this.toArrayLike(Array,N,I)},M.prototype.toArrayLike=function(N,I,T){var D,M,R=this.byteLength(),L=T||Math.max(1,R);P(R<=L,"byte array longer than desired length"),P(L>0,"Requested array length <= 0"),this.strip();var $="le"===I,F=new N(L),B=this.clone();if($){for(M=0;!B.isZero();M++)D=B.andln(255),B.iushrn(8),F[M]=D;for(;M<L;M++)F[M]=0}else{for(M=0;M<L-R;M++)F[M]=0;for(M=0;!B.isZero();M++)D=B.andln(255),B.iushrn(8),F[L-M-1]=D}return F},Math.clz32?M.prototype._countBits=function(N){return 32-Math.clz32(N)}:M.prototype._countBits=function(N){var I=N,T=0;return I>=4096&&(T+=13,I>>>=13),I>=64&&(T+=7,I>>>=7),I>=8&&(T+=4,I>>>=4),I>=2&&(T+=2,I>>>=2),T+I},M.prototype._zeroBits=function(N){if(0===N)return 26;var I=N,T=0;return(8191&I)==0&&(T+=13,I>>>=13),(127&I)==0&&(T+=7,I>>>=7),(15&I)==0&&(T+=4,I>>>=4),(3&I)==0&&(T+=2,I>>>=2),(1&I)==0&&T++,T},M.prototype.bitLength=function(){var N=this.words[this.length-1],I=this._countBits(N);return(this.length-1)*26+I},M.prototype.zeroBits=function(){if(this.isZero())return 0;for(var N=0,I=0;I<this.length;I++){var T=this._zeroBits(this.words[I]);if(N+=T,26!==T)break}return N},M.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},M.prototype.toTwos=function(N){return 0!==this.negative?this.abs().inotn(N).iaddn(1):this.clone()},M.prototype.fromTwos=function(N){return this.testn(N-1)?this.notn(N).iaddn(1).ineg():this.clone()},M.prototype.isNeg=function(){return 0!==this.negative},M.prototype.neg=function(){return this.clone().ineg()},M.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},M.prototype.iuor=function(N){for(;this.length<N.length;)this.words[this.length++]=0;for(var I=0;I<N.length;I++)this.words[I]=this.words[I]|N.words[I];return this.strip()},M.prototype.ior=function(N){return P((this.negative|N.negative)==0),this.iuor(N)},M.prototype.or=function(N){return this.length>N.length?this.clone().ior(N):N.clone().ior(this)},M.prototype.uor=function(N){return this.length>N.length?this.clone().iuor(N):N.clone().iuor(this)},M.prototype.iuand=function(N){var I;I=this.length>N.length?N:this;for(var T=0;T<I.length;T++)this.words[T]=this.words[T]&N.words[T];return this.length=I.length,this.strip()},M.prototype.iand=function(N){return P((this.negative|N.negative)==0),this.iuand(N)},M.prototype.and=function(N){return this.length>N.length?this.clone().iand(N):N.clone().iand(this)},M.prototype.uand=function(N){return this.length>N.length?this.clone().iuand(N):N.clone().iuand(this)},M.prototype.iuxor=function(N){this.length>
vendor: 33,742 bytes, line 1152
1152N.length?(I=this,T=N):(I=N,T=this);for(var I,T,P=0;P<T.length;P++)this.words[P]=I.words[P]^T.words[P];if(this!==I)for(;P<I.length;P++)this.words[P]=I.words[P];return this.length=I.length,this.strip()},M.prototype.ixor=function(N){return P((this.negative|N.negative)==0),this.iuxor(N)},M.prototype.xor=function(N){return this.length>N.length?this.clone().ixor(N):N.clone().ixor(this)},M.prototype.uxor=function(N){return this.length>N.length?this.clone().iuxor(N):N.clone().iuxor(this)},M.prototype.inotn=function(N){P("number"==typeof N&&N>=0);var I=0|Math.ceil(N/26),T=N%26;this._expand(I),T>0&&I--;for(var D=0;D<I;D++)this.words[D]=0x3ffffff&~this.words[D];return T>0&&(this.words[D]=~this.words[D]&0x3ffffff>>26-T),this.strip()},M.prototype.notn=function(N){return this.clone().inotn(N)},M.prototype.setn=function(N,I){P("number"==typeof N&&N>=0);var T=N/26|0,D=N%26;return this._expand(T+1),I?this.words[T]=this.words[T]|1<<D:this.words[T]=this.words[T]&~(1<<D),this.strip()},M.prototype.iadd=function(N){if(0!==this.negative&&0===N.negative)return this.negative=0,I=this.isub(N),this.negative^=1,this._normSign();if(0===this.negative&&0!==N.negative)return N.negative=0,I=this.isub(N),N.negative=1,I._normSign();this.length>N.length?(T=this,P=N):(T=N,P=this);for(var I,T,P,D=0,M=0;M<P.length;M++)I=(0|T.words[M])+(0|P.words[M])+D,this.words[M]=0x3ffffff&I,D=I>>>26;for(;0!==D&&M<T.length;M++)I=(0|T.words[M])+D,this.words[M]=0x3ffffff&I,D=I>>>26;if(this.length=T.length,0!==D)this.words[this.length]=D,this.length++;else if(T!==this)for(;M<T.length;M++)this.words[M]=T.words[M];return this},M.prototype.add=function(N){var I;return 0!==N.negative&&0===this.negative?(N.negative=0,I=this.sub(N),N.negative^=1,I):0===N.negative&&0!==this.negative?(this.negative=0,I=N.sub(this),this.negative=1,I):this.length>N.length?this.clone().iadd(N):N.clone().iadd(this)},M.prototype.isub=function(N){if(0!==N.negative){N.negative=0;var I,T,P=this.iadd(N);return N.negative=1,P._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(N),this.negative=1,this._normSign();var D=this.cmp(N);if(0===D)return this.negative=0,this.length=1,this.words[0]=0,this;D>0?(I=this,T=N):(I=N,T=this);for(var M=0,R=0;R<T.length;R++)M=(P=(0|I.words[R])-(0|T.words[R])+M)>>26,this.words[R]=0x3ffffff&P;for(;0!==M&&R<I.length;R++)M=(P=(0|I.words[R])+M)>>26,this.words[R]=0x3ffffff&P;if(0===M&&R<I.length&&I!==this)for(;R<I.length;R++)this.words[R]=I.words[R];return this.length=Math.max(this.length,R),I!==this&&(this.negative=1),this.strip()},M.prototype.sub=function(N){return this.clone().isub(N)};var W=function(N,I,T){var P,D,M,R=N.words,L=I.words,$=T.words,F=0,B=0|R[0],U=8191&B,H=B>>>13,z=0|R[1],W=8191&z,q=z>>>13,G=0|R[2],K=8191&G,V=G>>>13,Y=0|R[3],J=8191&Y,Q=Y>>>13,Z=0|R[4],X=8191&Z,ee=Z>>>13,et=0|R[5],er=8191&et,en=et>>>13,ea=0|R[6],ei=8191&ea,eo=ea>>>13,es=0|R[7],el=8191&es,ec=es>>>13,eu=0|R[8],ed=8191&eu,ef=eu>>>13,eh=0|R[9],ep=8191&eh,em=eh>>>13,eg=0|L[0],ey=8191&eg,eb=eg>>>13,ev=0|L[1],ew=8191&ev,ex=ev>>>13,eA=0|L[2],eE=8191&eA,eS=eA>>>13,e_=0|L[3],ek=8191&e_,eC=e_>>>13,ej=0|L[4],eO=8191&ej,eN=ej>>>13,eI=0|L[5],eT=8191&eI,eP=eI>>>13,eD=0|L[6],eM=8191&eD,eR=eD>>>13,eL=0|L[7],e$=8191&eL,eF=eL>>>13,eB=0|L[8],eU=8191&eB,eH=eB>>>13,ez=0|L[9],eW=8191&ez,eq=ez>>>13;T.negative=N.negative^I.negative,T.length=19,P=Math.imul(U,ey);var eG=(F+P|0)+((8191&(D=(D=Math.imul(U,eb))+Math.imul(H,ey)|0))<<13)|0;F=((M=Math.imul(H,eb))+(D>>>13)|0)+(eG>>>26)|0,eG&=0x3ffffff,P=Math.imul(W,ey),D=(D=Math.imul(W,eb))+Math.imul(q,ey)|0,M=Math.imul(q,eb),P=P+Math.imul(U,ew)|0;var eK=(F+P|0)+((8191&(D=(D=D+Math.imul(U,ex)|0)+Math.imul(H,ew)|0))<<13)|0;F=((M=M+Math.imul(H,ex)|0)+(D>>>13)|0)+(eK>>>26)|0,eK&=0x3ffffff,P=Math.imul(K,ey),D=(D=Math.imul(K,eb))+Math.imul(V,ey)|0,M=Math.imul(V,eb),P=P+Math.imul(W,ew)|0,D=(D=D+Math.imul(W,ex)|0)+Math.imul(q,ew)|0,M=M+Math.imul(q,ex)|0,P=P+Math.imul(U,eE)|0;var eV=(F+P|0)+((8191&(D=(D=D+Math.imul(U,eS)|0)+Math.imul(H,eE)|0))<<13)|0;F=((M=M+Math.imul(H,eS)|0)+(D>>>13)|0)+(eV>>>26)|0,eV&=0x3ffffff,P=Math.imul(J,ey),D=(D=Math.imul(J,eb))+Math.imul(Q,ey)|0,M=Math.imul(Q,eb),P=P+Math.imul(K,ew)|0,D=(D=D+Math.imul(K,ex)|0)+Math.imul(V,ew)|0,M=M+Math.imul(V,ex)|0,P=P+Math.imul(W,eE)|0,D=(D=D+Math.imul(W,eS)|0)+Math.imul(q,eE)|0,M=M+Math.imul(q,eS)|0,P=P+Math.imul(U,ek)|0;var eY=(F+P|0)+((8191&(D=(D=D+Math.imul(U,eC)|0)+Math.imul(H,ek)|0))<<13)|0;F=((M=M+Math.imul(H,eC)|0)+(D>>>13)|0)+(eY>>>26)|0,eY&=0x3ffffff,P=Math.imul(X,ey),D=(D=Math.imul(X,eb))+Math.imul(ee,ey)|0,M=Math.imul(ee,eb),P=P+Math.imul(J,ew)|0,D=(D=D+Math.imul(J,ex)|0)+Math.imul(Q,ew)|0,M=M+Math.imul(Q,ex)|0,P=P+Math.imul(K,eE)|0,D=(D=D+Math.imul(K,eS)|0)+Math.imul(V,eE)|0,M=M+Math.imul(V,eS)|0,P=P+Math.imul(W,ek)|0,D=(D=D+Math.imul(W,eC)|0)+Math.imul(q,ek)|0,M=M+Math.imul(q,eC)|0,P=P+Math.imul(U,eO)|0;var eJ=(F+P|0)+((8191&(D=(D=D+Math.imul(U,eN)|0)+Math.imul(H,eO)|0))<<13)|0;F=((M=M+Math.imul(H,eN)|0)+(D>>>13)|0)+(eJ>>>26)|0,eJ&=0x3ffffff,P=Math.imul(er,ey),D=(D=Math.imul(er,eb))+Math.imul(en,ey)|0,M=Math.imul(en,eb),P=P+Math.imul(X,ew)|0,D=(D=D+Math.imul(X,ex)|0)+Math.imul(ee,ew)|0,M=M+Math.imul(ee,ex)|0,P=P+Math.imul(J,eE)|0,D=(D=D+Math.imul(J,eS)|0)+Math.imul(Q,eE)|0,M=M+Math.imul(Q,eS)|0,P=P+Math.imul(K,ek)|0,D=(D=D+Math.imul(K,eC)|0)+Math.imul(V,ek)|0,M=M+Math.imul(V,eC)|0,P=P+Math.imul(W,eO)|0,D=(D=D+Math.imul(W,eN)|0)+Math.imul(q,eO)|0,M=M+Math.imul(q,eN)|0,P=P+Math.imul(U,eT)|0;var eQ=(F+P|0)+((8191&(D=(D=D+Math.imul(U,eP)|0)+Math.imul(H,eT)|0))<<13)|0;F=((M=M+Math.imul(H,eP)|0)+(D>>>13)|0)+(eQ>>>26)|0,eQ&=0x3ffffff,P=Math.imul(ei,ey),D=(D=Math.imul(ei,eb))+Math.imul(eo,ey)|0,M=Math.imul(eo,eb),P=P+Math.imul(er,ew)|0,D=(D=D+Math.imul(er,ex)|0)+Math.imul(en,ew)|0,M=M+Math.imul(en,ex)|0,P=P+Math.imul(X,eE)|0,D=(D=D+Math.imul(X,eS)|0)+Math.imul(ee,eE)|0,M=M+Math.imul(ee,eS)|0,P=P+Math.imul(J,ek)|0,D=(D=D+Math.imul(J,eC)|0)+Math.imul(Q,ek)|0,M=M+Math.imul(Q,eC)|0,P=P+Math.imul(K,eO)|0,D=(D=D+Math.imul(K,eN)|0)+Math.imul(V,eO)|0,M=M+Math.imul(V,eN)|0,P=P+Math.imul(W,eT)|0,D=(D=D+Math.imul(W,eP)|0)+Math.imul(q,eT)|0,M=M+Math.imul(q,eP)|0,P=P+Math.imul(U,eM)|0;var eZ=(F+P|0)+((8191&(D=(D=D+Math.imul(U,eR)|0)+Math.imul(H,eM)|0))<<13)|0;F=((M=M+Math.imul(H,eR)|0)+(D>>>13)|0)+(eZ>>>26)|0,eZ&=0x3ffffff,P=Math.imul(el,ey),D=(D=Math.imul(el,eb))+Math.imul(ec,ey)|0,M=Math.imul(ec,eb),P=P+Math.imul(ei,ew)|0,D=(D=D+Math.imul(ei,ex)|0)+Math.imul(eo,ew)|0,M=M+Math.imul(eo,ex)|0,P=P+Math.imul(er,eE)|0,D=(D=D+Math.imul(er,eS)|0)+Math.imul(en,eE)|0,M=M+Math.imul(en,eS)|0,P=P+Math.imul(X,ek)|0,D=(D=D+Math.imul(X,eC)|0)+Math.imul(ee,ek)|0,M=M+Math.imul(ee,eC)|0,P=P+Math.imul(J,eO)|0,D=(D=D+Math.imul(J,eN)|0)+Math.imul(Q,eO)|0,M=M+Math.imul(Q,eN)|0,P=P+Math.imul(K,eT)|0,D=(D=D+Math.imul(K,eP)|0)+Math.imul(V,eT)|0,M=M+Math.imul(V,eP)|0,P=P+Math.imul(W,eM)|0,D=(D=D+Math.imul(W,eR)|0)+Math.imul(q,eM)|0,M=M+Math.imul(q,eR)|0,P=P+Math.imul(U,e$)|0;var eX=(F+P|0)+((8191&(D=(D=D+Math.imul(U,eF)|0)+Math.imul(H,e$)|0))<<13)|0;F=((M=M+Math.imul(H,eF)|0)+(D>>>13)|0)+(eX>>>26)|0,eX&=0x3ffffff,P=Math.imul(ed,ey),D=(D=Math.imul(ed,eb))+Math.imul(ef,ey)|0,M=Math.imul(ef,eb),P=P+Math.imul(el,ew)|0,D=(D=D+Math.imul(el,ex)|0)+Math.imul(ec,ew)|0,M=M+Math.imul(ec,ex)|0,P=P+Math.imul(ei,eE)|0,D=(D=D+Math.imul(ei,eS)|0)+Math.imul(eo,eE)|0,M=M+Math.imul(eo,eS)|0,P=P+Math.imul(er,ek)|0,D=(D=D+Math.imul(er,eC)|0)+Math.imul(en,ek)|0,M=M+Math.imul(en,eC)|0,P=P+Math.imul(X,eO)|0,D=(D=D+Math.imul(X,eN)|0)+Math.imul(ee,eO)|0,M=M+Math.imul(ee,eN)|0,P=P+Math.imul(J,eT)|0,D=(D=D+Math.imul(J,eP)|0)+Math.imul(Q,eT)|0,M=M+Math.imul(Q,eP)|0,P=P+Math.imul(K,eM)|0,D=(D=D+Math.imul(K,eR)|0)+Math.imul(V,eM)|0,M=M+Math.imul(V,eR)|0,P=P+Math.imul(W,e$)|0,D=(D=D+Math.imul(W,eF)|0)+Math.imul(q,e$)|0,M=M+Math.imul(q,eF)|0,P=P+Math.imul(U,eU)|0;var e0=(F+P|0)+((8191&(D=(D=D+Math.imul(U,eH)|0)+Math.imul(H,eU)|0))<<13)|0;F=((M=M+Math.imul(H,eH)|0)+(D>>>13)|0)+(e0>>>26)|0,e0&=0x3ffffff,P=Math.imul(ep,ey),D=(D=Math.imul(ep,eb))+Math.imul(em,ey)|0,M=Math.imul(em,eb),P=P+Math.imul(ed,ew)|0,D=(D=D+Math.imul(ed,ex)|0)+Math.imul(ef,ew)|0,M=M+Math.imul(ef,ex)|0,P=P+Math.imul(el,eE)|0,D=(D=D+Math.imul(el,eS)|0)+Math.imul(ec,eE)|0,M=M+Math.imul(ec,eS)|0,P=P+Math.imul(ei,ek)|0,D=(D=D+Math.imul(ei,eC)|0)+Math.imul(eo,ek)|0,M=M+Math.imul(eo,eC)|0,P=P+Math.imul(er,eO)|0,D=(D=D+Math.imul(er,eN)|0)+Math.imul(en,eO)|0,M=M+Math.imul(en,eN)|0,P=P+Math.imul(X,eT)|0,D=(D=D+Math.imul(X,eP)|0)+Math.imul(ee,eT)|0,M=M+Math.imul(ee,eP)|0,P=P+Math.imul(J,eM)|0,D=(D=D+Math.imul(J,eR)|0)+Math.imul(Q,eM)|0,M=M+Math.imul(Q,eR)|0,P=P+Math.imul(K,e$)|0,D=(D=D+Math.imul(K,eF)|0)+Math.imul(V,e$)|0,M=M+Math.imul(V,eF)|0,P=P+Math.imul(W,eU)|0,D=(D=D+Math.imul(W,eH)|0)+Math.imul(q,eU)|0,M=M+Math.imul(q,eH)|0,P=P+Math.imul(U,eW)|0;var e1=(F+P|0)+((8191&(D=(D=D+Math.imul(U,eq)|0)+Math.imul(H,eW)|0))<<13)|0;F=((M=M+Math.imul(H,eq)|0)+(D>>>13)|0)+(e1>>>26)|0,e1&=0x3ffffff,P=Math.imul(ep,ew),D=(D=Math.imul(ep,ex))+Math.imul(em,ew)|0,M=Math.imul(em,ex),P=P+Math.imul(ed,eE)|0,D=(D=D+Math.imul(ed,eS)|0)+Math.imul(ef,eE)|0,M=M+Math.imul(ef,eS)|0,P=P+Math.imul(el,ek)|0,D=(D=D+Math.imul(el,eC)|0)+Math.imul(ec,ek)|0,M=M+Math.imul(ec,eC)|0,P=P+Math.imul(ei,eO)|0,D=(D=D+Math.imul(ei,eN)|0)+Math.imul(eo,eO)|0,M=M+Math.imul(eo,eN)|0,P=P+Math.imul(er,eT)|0,D=(D=D+Math.imul(er,eP)|0)+Math.imul(en,eT)|0,M=M+Math.imul(en,eP)|0,P=P+Math.imul(X,eM)|0,D=(D=D+Math.imul(X,eR)|0)+Math.imul(ee,eM)|0,M=M+Math.imul(ee,eR)|0,P=P+Math.imul(J,e$)|0,D=(D=D+Math.imul(J,eF)|0)+Math.imul(Q,e$)|0,M=M+Math.imul(Q,eF)|0,P=P+Math.imul(K,eU)|0,D=(D=D+Math.imul(K,eH)|0)+Math.imul(V,eU)|0,M=M+Math.imul(V,eH)|0,P=P+Math.imul(W,eW)|0;var e2=(F+P|0)+((8191&(D=(D=D+Math.imul(W,eq)|0)+Math.imul(q,eW)|0))<<13)|0;F=((M=M+Math.imul(q,eq)|0)+(D>>>13)|0)+(e2>>>26)|0,e2&=0x3ffffff,P=Math.imul(ep,eE),D=(D=Math.imul(ep,eS))+Math.imul(em,eE)|0,M=Math.imul(em,eS),P=P+Math.imul(ed,ek)|0,D=(D=D+Math.imul(ed,eC)|0)+Math.imul(ef,ek)|0,M=M+Math.imul(ef,eC)|0,P=P+Math.imul(el,eO)|0,D=(D=D+Math.imul(el,eN)|0)+Math.imul(ec,eO)|0,M=M+Math.imul(ec,eN)|0,P=P+Math.imul(ei,eT)|0,D=(D=D+Math.imul(ei,eP)|0)+Math.imul(eo,eT)|0,M=M+Math.imul(eo,eP)|0,P=P+Math.imul(er,eM)|0,D=(D=D+Math.imul(er,eR)|0)+Math.imul(en,eM)|0,M=M+Math.imul(en,eR)|0,P=P+Math.imul(X,e$)|0,D=(D=D+Math.imul(X,eF)|0)+Math.imul(ee,e$)|0,M=M+Math.imul(ee,eF)|0,P=P+Math.imul(J,eU)|0,D=(D=D+Math.imul(J,eH)|0)+Math.imul(Q,eU)|0,M=M+Math.imul(Q,eH)|0,P=P+Math.imul(K,eW)|0;var e3=(F+P|0)+((8191&(D=(D=D+Math.imul(K,eq)|0)+Math.imul(V,eW)|0))<<13)|0;F=((M=M+Math.imul(V,eq)|0)+(D>>>13)|0)+(e3>>>26)|0,e3&=0x3ffffff,P=Math.imul(ep,ek),D=(D=Math.imul(ep,eC))+Math.imul(em,ek)|0,M=Math.imul(em,eC),P=P+Math.imul(ed,eO)|0,D=(D=D+Math.imul(ed,eN)|0)+Math.imul(ef,eO)|0,M=M+Math.imul(ef,eN)|0,P=P+Math.imul(el,eT)|0,D=(D=D+Math.imul(el,eP)|0)+Math.imul(ec,eT)|0,M=M+Math.imul(ec,eP)|0,P=P+Math.imul(ei,eM)|0,D=(D=D+Math.imul(ei,eR)|0)+Math.imul(eo,eM)|0,M=M+Math.imul(eo,eR)|0,P=P+Math.imul(er,e$)|0,D=(D=D+Math.imul(er,eF)|0)+Math.imul(en,e$)|0,M=M+Math.imul(en,eF)|0,P=P+Math.imul(X,eU)|0,D=(D=D+Math.imul(X,eH)|0)+Math.imul(ee,eU)|0,M=M+Math.imul(ee,eH)|0,P=P+Math.imul(J,eW)|0;var e4=(F+P|0)+((8191&(D=(D=D+Math.imul(J,eq)|0)+Math.imul(Q,eW)|0))<<13)|0;F=((M=M+Math.imul(Q,eq)|0)+(D>>>13)|0)+(e4>>>26)|0,e4&=0x3ffffff,P=Math.imul(ep,eO),D=(D=Math.imul(ep,eN))+Math.imul(em,eO)|0,M=Math.imul(em,eN),P=P+Math.imul(ed,eT)|0,D=(D=D+Math.imul(ed,eP)|0)+Math.imul(ef,eT)|0,M=M+Math.imul(ef,eP)|0,P=P+Math.imul(el,eM)|0,D=(D=D+Math.imul(el,eR)|0)+Math.imul(ec,eM)|0,M=M+Math.imul(ec,eR)|0,P=P+Math.imul(ei,e$)|0,D=(D=D+Math.imul(ei,eF)|0)+Math.imul(eo,e$)|0,M=M+Math.imul(eo,eF)|0,P=P+Math.imul(er,eU)|0,D=(D=D+Math.imul(er,eH)|0)+Math.imul(en,eU)|0,M=M+Math.imul(en,eH)|0,P=P+Math.imul(X,eW)|0;var e5=(F+P|0)+((8191&(D=(D=D+Math.imul(X,eq)|0)+Math.imul(ee,eW)|0))<<13)|0;F=((M=M+Math.imul(ee,eq)|0)+(D>>>13)|0)+(e5>>>26)|0,e5&=0x3ffffff,P=Math.imul(ep,eT),D=(D=Math.imul(ep,eP))+Math.imul(em,eT)|0,M=Math.imul(em,eP),P=P+Math.imul(ed,eM)|0,D=(D=D+Math.imul(ed,eR)|0)+Math.imul(ef,eM)|0,M=M+Math.imul(ef,eR)|0,P=P+Math.imul(el,e$)|0,D=(D=D+Math.imul(el,eF)|0)+Math.imul(ec,e$)|0,M=M+Math.imul(ec,eF)|0,P=P+Math.imul(ei,eU)|0,D=(D=D+Math.imul(ei,eH)|0)+Math.imul(eo,eU)|0,M=M+Math.imul(eo,eH)|0,P=P+Math.imul(er,eW)|0;var e6=(F+P|0)+((8191&(D=(D=D+Math.imul(er,eq)|0)+Math.imul(en,eW)|0))<<13)|0;F=((M=M+Math.imul(en,eq)|0)+(D>>>13)|0)+(e6>>>26)|0,e6&=0x3ffffff,P=Math.imul(ep,eM),D=(D=Math.imul(ep,eR))+Math.imul(em,eM)|0,M=Math.imul(em,eR),P=P+Math.imul(ed,e$)|0,D=(D=D+Math.imul(ed,eF)|0)+Math.imul(ef,e$)|0,M=M+Math.imul(ef,eF)|0,P=P+Math.imul(el,eU)|0,D=(D=D+Math.imul(el,eH)|0)+Math.imul(ec,eU)|0,M=M+Math.imul(ec,eH)|0,P=P+Math.imul(ei,eW)|0;var e8=(F+P|0)+((8191&(D=(D=D+Math.imul(ei,eq)|0)+Math.imul(eo,eW)|0))<<13)|0;F=((M=M+Math.imul(eo,eq)|0)+(D>>>13)|0)+(e8>>>26)|0,e8&=0x3ffffff,P=Math.imul(ep,e$),D=(D=Math.imul(ep,eF))+Math.imul(em,e$)|0,M=Math.imul(em,eF),P=P+Math.imul(ed,eU)|0,D=(D=D+Math.imul(ed,eH)|0)+Math.imul(ef,eU)|0,M=M+Math.imul(ef,eH)|0,P=P+Math.imul(el,eW)|0;var e7=(F+P|0)+((8191&(D=(D=D+Math.imul(el,eq)|0)+Math.imul(ec,eW)|0))<<13)|0;F=((M=M+Math.imul(ec,eq)|0)+(D>>>13)|0)+(e7>>>26)|0,e7&=0x3ffffff,P=Math.imul(ep,eU),D=(D=Math.imul(ep,eH))+Math.imul(em,eU)|0,M=Math.imul(em,eH),P=P+Math.imul(ed,eW)|0;var e9=(F+P|0)+((8191&(D=(D=D+Math.imul(ed,eq)|0)+Math.imul(ef,eW)|0))<<13)|0;F=((M=M+Math.imul(ef,eq)|0)+(D>>>13)|0)+(e9>>>26)|0,e9&=0x3ffffff,P=Math.imul(ep,eW);var te=(F+P|0)+((8191&(D=(D=Math.imul(ep,eq))+Math.imul(em,eW)|0))<<13)|0;return F=((M=Math.imul(em,eq))+(D>>>13)|0)+(te>>>26)|0,te&=0x3ffffff,$[0]=eG,$[1]=eK,$[2]=eV,$[3]=eY,$[4]=eJ,$[5]=eQ,$[6]=eZ,$[7]=eX,$[8]=e0,$[9]=e1,$[10]=e2,$[11]=e3,$[12]=e4,$[13]=e5,$[14]=e6,$[15]=e8,$[16]=e7,$[17]=e9,$[18]=te,0!==F&&($[19]=F,T.length++),T};function q(N,I,T){T.negative=I.negative^N.negative,T.length=N.length+I.length;for(var P=0,D=0,M=0;M<T.length-1;M++){var R=D;D=0;for(var L=0x3ffffff&P,$=Math.min(M,I.length-1),F=Math.max(0,M-N.length+1);F<=$;F++){var B=M-F,U=(0|N.words[B])*(0|I.words[F]),H=0x3ffffff&U;R=R+(U/0x4000000|0)|0,L=0x3ffffff&(H=H+L|0),D+=(R=R+(H>>>26)|0)>>>26,R&=0x3ffffff}T.words[M]=L,P=R,R=D}return 0!==P?T.words[M]=P:T.length--,T.strip()}function G(N,I,T){return(new K).mulp(N,I,T)}function K(N,I){this.x=N,this.y=I}Math.imul||(W=z),M.prototype.mulTo=function(N,I){var T=this.length+N.length;return 10===this.length&&10===N.length?W(this,N,I):T<63?z(this,N,I):T<1024?q(this,N,I):G(this,N,I)},K.prototype.makeRBT=function(N){for(var I=Array(N),T=M.prototype._countBits(N)-1,P=0;P<N;P++)I[P]=this.revBin(P,T,N);return I},K.prototype.revBin=function(N,I,T){if(0===N||N===T-1)return N;for(var P=0,D=0;D<I;D++)P|=(1&N)<<I-D-1,N>>=1;return P},K.prototype.permute=function(N,I,T,P,D,M){for(var R=0;R<M;R++)P[R]=I[N[R]],D[R]=T[N[R]]},K.prototype.transform=function(N,I,T,P,D,M){this.permute(M,N,I,T,P,D);for(var R=1;R<D;R<<=1)for(var L=R<<1,$=Math.cos(2*Math.PI/L),F=Math.sin(2*Math.PI/L),B=0;B<D;B+=L)for(var U=$,H=F,z=0;z<R;z++){var W=T[B+z],q=P[B+z],G=T[B+z+R],K=P[B+z+R],V=U*G-H*K;K=U*K+H*G,G=V,T[B+z]=W+G,P[B+z]=q+K,T[B+z+R]=W-G,P[B+z+R]=q-K,z!==L&&(V=$*U-F*H,H=$*H+F*U,U=V)}},K.prototype.guessLen13b=function(N,I){var T=1|Math.max(I,N),P=1&T,D=0;for(T=T/2|0;T;T>>>=1)D++;return 1<<D+1+P},K.prototype.conjugate=function(N,I,T){if(!(T<=1))for(var P=0;P<T/2;P++){var D=N[P];N[P]=N[T-P-1],N[T-P-1]=D,D=I[P],I[P]=-I[T-P-1],I[T-P-1]=-D}},K.prototype.normalize13b=function(N,I){for(var T=0,P=0;P<I/2;P++){var D=8192*Math.round(N[2*P+1]/I)+Math.round(N[2*P]/I)+T;N[P]=0x3ffffff&D,T=D<0x4000000?0:D/0x4000000|0}return N},K.prototype.convert13b=function(N,I,T,D){for(var M=0,R=0;R<I;R++)M+=0|N[R],T[2*R]=8191&M,M>>>=13,T[2*R+1]=8191&M,M>>>=13;for(R=2*I;R<D;++R)T[R]=0;P(0===M),P((-8192&M)==0)},K.prototype.stub=function(N){for(var I=Array(N),T=0;T<N;T++)I[T]=0;return I},K.prototype.mulp=function(N,I,T){var P=2*this.guessLen13b(N.length,I.length),D=this.makeRBT(P),M=this.stub(P),R=Array(P),L=Array(P),$=Array(P),F=Array(P),B=Array(P),U=Array(P),H=T.words;H.length=P,this.convert13b(N.words,N.length,R,P),this.convert13b(I.words,I.length,F,P),this.transform(R,M,L,$,P,D),this.transform(F,M,B,U,P,D);for(var z=0;z<P;z++){var W=L[z]*B[z]-$[z]*U[z];$[z]=L[z]*U[z]+$[z]*B[z],L[z]=W}return this.conjugate(L,$,P),this.transform(L,$,H,M,P,D),this.conjugate(H,M,P),this.normalize13b(H,P),T.negative=N.negative^I.negative,T.length=N.length+I.length,T.strip()},M.prototype.mul=function(N){var I=new M(null);return I.words=Array(this.length+N.length),this.mulTo(N,I)},M.prototype.mulf=function(N){var I=new M(null);return I.words=Array(this.length+N.length),G(this,N,I)},M.prototype.imul=function(N){return this.clone().mulTo(N,this)},M.prototype.imuln=function(N){P("number"==typeof N),P(N<0x4000000);for(var I=0,T=0;T<this.length;T++){var D=(0|this.words[T])*N,M=(0x3ffffff&D)+(0x3ffffff&I);I>>=26,I+=(D/0x4000000|0)+(M>>>26),this.words[T]=0x3ffffff&M}return 0!==I&&(this.words[T]=I,this.length++),this},M.prototype.muln=function(N){return this.clone().imuln(N)},M.prototype.sqr=function(){return this.mul(this)},M.prototype.isqr=function(){return this.imul(this.clone())},M.prototype.pow=function(N){var I=H(N);if(0===I.length)return new M(1);for(var T=this,P=0;P<I.length&&0===I[P];P++,T=T.sqr());if(++P<I.length)for(var D=T.sqr();P<I.length;P++,D=D.sqr())0!==I[P]&&(T=T.mul(D));return T},M.prototype.iushln=function(N){P("number"==typeof N&&N>=0);var I,T=N%26,D=(N-T)/26,M=0x3ffffff>>>26-T<<26-T;if(0!==T){var R=0;for(I=0;I<this.length;I++){var L=this.words[I]&M,$=(0|this.words[I])-L<<T;this.words[I]=$|R,R=L>>>26-T}R&&(this.words[I]=R,this.length++)}if(0!==D){for(I=this.length-1;I>=0;I--)this.words[I+D]=this.words[I];for(I=0;I<D;I++)this.words[I]=0;this.length+=D}return this.strip()},M.prototype.ishln=function(N){return P(0===this.negative),this.iushln(N)},M.prototype.iushrn=function(N,I,T){P("number"==typeof N&&N>=0);var D=I?(I-I%26)/26:0,M=N%26,R=Math.min((N-M)/26,this.length),L=0x3ffffff^0x3ffffff>>>M<<M,$=T;if(D-=R,D=Math.max(0,D),$){for(var F=0;F<R;F++)$.words[F]=this.words[F];$.length=R}if(0===R);else if(this.length>R)for(this.length-=R,F=0;F<this.length;F++)this.words[F]=this.words[F+R];else this.words[0]=0,this.length=1;var B=0;for(F=this.length-1;F>=0&&(0!==B||F>=D);F--){var U=0|this.words[F];this.words[F]=B<<26-M|U>>>M,B=U&L}return $&&0!==B&&($.words[$.length++]=B),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},M.prototype.ishrn=function(N,I,T){return P(0===this.negative),this.iushrn(N,I,T)},M.prototype.shln=function(N){return this.clone().ishln(N)},M.prototype.ushln=function(N){return this.clone().iushln(N)},M.prototype.shrn=function(N){return this.clone().ishrn(N)},M.prototype.ushrn=function(N){return this.clone().iushrn(N)},M.prototype.testn=function(N){P("number"==typeof N&&N>=0);var I=N%26,T=(N-I)/26,D=1<<I;return!(this.length<=T)&&!!(this.words[T]&D)},M.prototype.imaskn=function(N){P("number"==typeof N&&N>=0);var I=N%26,T=(N-I)/26;if(P(0===this.negative,"imaskn works only with positive numbers"),this.length<=T)return this;if(0!==I&&T++,this.length=Math.min(T,this.length),0!==I){var D=0x3ffffff^0x3ffffff>>>I<<I;this.words[this.length-1]&=D}return this.strip()},M.prototype.maskn=function(N){return this.clone().imaskn(N)},M.prototype.iaddn=function(N){return(P("number"==typeof N),P(N<0x4000000),N<0)?this.isubn(-N):0!==this.negative?(1===this.length&&(0|this.words[0])<N?(this.words[0]=N-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(N),this.negative=1),this):this._iaddn(N)},M.prototype._iaddn=function(N){this.words[0]+=N;for(var I=0;I<this.length&&this.words[I]>=0x4000000;I++)this.words[I]-=0x4000000,I===this.length-1?this.words[I+1]=1:this.words[I+1]++;return this.length=Math.max(this.length,I+1),this},M.prototype.isubn=function(N){if(P("number"==typeof N),P(N<0x4000000),N<0)return this.iaddn(-N);if(0!==this.negative)return this.negative=0,this.iaddn(N),this.negative=1,this;if(this.words[0]-=N,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var I=0;I<this.length&&this.words[I]<0;I++)this.words[I]+=0x4000000,this.words[I+1]-=1;return this.strip()},M.prototype.addn=function(N){return this.clone().iaddn(N)},M.prototype.subn=function(N){return this.clone().isubn(N)},M.prototype.iabs=function(){return this.negative=0,this},M.prototype.abs=function(){return this.clone().iabs()},M.prototype._ishlnsubmul=function(N,I,T){var D,M,R=N.length+T;this._expand(R);var L=0;for(D=0;D<N.length;D++){M=(0|this.words[D+T])+L;var $=(0|N.words[D])*I;M-=0x3ffffff&$,L=(M>>26)-($/0x4000000|0),this.words[D+T]=0x3ffffff&M}for(;D<this.length-T;D++)L=(M=(0|this.words[D+T])+L)>>26,this.words[D+T]=0x3ffffff&M;if(0===L)return this.strip();for(P(-1===L),L=0,D=0;D<this.length;D++)L=(M=-(0|this.words[D])+L)>>26,this.words[D]=0x3ffffff&M;return this.negative=1,this.strip()},M.prototype._wordDiv=function(N,I){var T,P=this.length-N.length,D=this.clone(),R=N,L=0|R.words[R.length-1];0!=(P=26-this._countBits(L))&&(R=R.ushln(P),D.iushln(P),L=0|R.words[R.length-1]);var $=D.length-R.length;if("mod"!==I){(T=new M(null)).length=$+1,T.words=Array(T.length);for(var F=0;F<T.length;F++)T.words[F]=0}var B=D.clone()._ishlnsubmul(R,1,$);0===B.negative&&(D=B,T&&(T.words[$]=1));for(var U=$-1;U>=0;U--){var H=(0|D.words[R.length+U])*0x4000000+(0|D.words[R.length+U-1]);for(H=Math.min(H/L|0,0x3ffffff),D._ishlnsubmul(R,H,U);0!==D.negative;)H--,D.negative=0,D._ishlnsubmul(R,1,U),D.isZero()||(D.negative^=1);T&&(T.words[U]=H)}return T&&T.strip(),D.strip(),"div"!==I&&0!==P&&D.iushrn(P),{div:T||null,mod:D}},M.prototype.divmod=function(N,I,T){var D,R,L;return(P(!N.isZero()),this.isZero())?{div:new M(0),mod:new M(0)}:0!==this.negative&&0===N.negative?(L=this.neg().divmod(N,I),"mod"!==I&&(D=L.div.neg()),"div"!==I&&(R=L.mod.neg(),T&&0!==R.negative&&R.iadd(N)),{div:D,mod:R}):0===this.negative&&0!==N.negative?(L=this.divmod(N.neg(),I),"mod"!==I&&(D=L.div.neg()),{div:D,mod:L.mod}):(this.negative&N.negative)!=0?(L=this.neg().divmod(N.neg(),I),"div"!==I&&(R=L.mod.neg(),T&&0!==R.negative&&R.isub(N)),{div:L.div,mod:R}):N.length>this.length||0>this.cmp(N)?{div:new M(0),mod:this}:1===N.length?"div"===I?{div:this.divn(N.words[0]),mod:null}:"mod"===I?{div:null,mod:new M(this.modn(N.words[0]))}:{div:this.divn(N.words[0]),mod:new M(this.modn(N.words[0]))}:this._wordDiv(N,I)},M.prototype.div=function(N){return this.divmod(N,"div",!1).div},M.prototype.mod=function(N){return this.divmod(N,"mod",!1).mod},M.prototype.umod=function(N){return this.divmod(N,"mod",!0).mod},M.prototype.divRound=function(N){var I=this.divmod(N);if(I.mod.isZero())return I.div;var T=0!==I.div.negative?I.mod.isub(N):I.mod,P=N.ushrn(1),D=N.andln(1),M=T.cmp(P);return M<0||1===D&&0===M?I.div:0!==I.div.negative?I.div.isubn(1):I.div.iaddn(1)},M.prototype.modn=function(N){P(N<=0x3ffffff);for(var I=0x4000000%N,T=0,D=this.length-1;D>=0;D--)T=(I*T+(0|this.words[D]))%N;return T},M.prototype.idivn=function(N){P(N<=0x3ffffff);for(var I=0,T=this.length-1;T>=0;T--){var D=(0|this.words[T])+0x4000000*I;this.words[T]=D/N|0,I=D%N}return this.strip()},M.prototype.divn=function(N){return this.clone().idivn(N)},M.prototype.egcd=function(N){P(0===N.negative),P(!N.isZero());var I=this,T=N.clone();I=0!==I.negative?I.umod(N):I.clone();for(var D=new M(1),R=new M(0),L=new M(0),$=new M(1),F=0;I.isEven()&&T.isEven();)I.iushrn(1),T.iushrn(1),++F;for(var B=T.clone(),U=I.clone();!I.isZero();){for(var H=0,z=1;(I.words[0]&z)==0&&H<26;++H,z<<=1);if(H>0)for(I.iushrn(H);H-- >0;)(D.isOdd()||R.isOdd())&&(D.iadd(B),R.isub(U)),D.iushrn(1),R.iushrn(1);for(var W=0,q=1;(T.words[0]&q)==0&&W<26;++W,q<<=1);if(W>0)for(T.iushrn(W);W-- >0;)(L.isOdd()||$.isOdd())&&(L.iadd(B),$.isub(U)),L.iushrn(1),$.iushrn(1);I.cmp(T)>=0?(I.isub(T),D.isub(L),R.isub($)):(T.isub(I),L.isub(D),$.isub(R))}return{a:L,b:$,gcd:T.iushln(F)}},M.prototype._invmp=function(N){P(0===N.negative),P(!N.isZero());var I,T=this,D=N.clone();T=0!==T.negative?T.umod(N):T.clone();for(var R=new M(1),L=new M(0),$=D.clone();T.cmpn(1)>0&&D.cmpn(1)>0;){for(var F=0,B=1;(T.words[0]&B)==0&&F<26;++F,B<<=1);if(F>0)for(T.iushrn(F);F-- >0;)R.isOdd()&&R.iadd($),R.iushrn(1);for(var U=0,H=1;(D.words[0]&H)==0&&U<26;++U,H<<=1);if(U>0)for(D.iushrn(U);U-- >0;)L.isOdd()&&L.iadd($),L.iushrn(1);T.cmp(D)>=0?(T.isub(D),R.isub(L)):(D.isub(T),L.isub(R))}return 0>(I=0===T.cmpn(1)?R:L).cmpn(0)&&I.iadd(N),I},M.prototype.gcd=function(N){if(this.isZero())return N.abs();if(N.isZero())return this.abs();var I=this.clone(),T=N.clone();I.negative=0,T.negative=0;for(var P=0;I.isEven()&&T.isEven();P++)I.iushrn(1),T.iushrn(1);for(;;){for(;I.isEven();)I.iushrn(1);for(;T.isEven();)T.iushrn(1);var D=I.cmp(T);if(D<0){var M=I;I=T,T=M}else if(0===D||0===T.cmpn(1))break;I.isub(T)}return T.iushln(P)},M.prototype.invm=function(N){return this.egcd(N).a.umod(N)},M.prototype.isEven=function(){return(1&this.words[0])==0},M.prototype.isOdd=function(){return(1&this.words[0])==1},M.prototype.andln=function(N){return this.words[0]&N},M.prototype.bincn=function(N){P("number"==typeof N);var I=N%26,T=(N-I)/26,D=1<<I;if(this.length<=T)return this._expand(T+1),this.words[T]|=D,this;for(var M=D,R=T;0!==M&&R<this.length;R++){var L=0|this.words[R];L+=M,M=L>>>26,L&=0x3ffffff,this.words[R]=L}return 0!==M&&(this.words[R]=M,this.length++),this},M.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},M.prototype.cmpn=function(N){var I,T=N<0;if(0!==this.negative&&!T)return -1;if(0===this.negative&&T)return 1;if(this.strip(),this.length>1)I=1;else{T&&(N=-N),P(N<=0x3ffffff,"Number is too big");var D=0|this.words[0];I=D===N?0:D<N?-1:1}return 0!==this.negative?0|-I:I},M.prototype.cmp=function(N){if(0!==this.negative&&0===N.negative)return -1;if(0===this.negative&&0!==N.negative)return 1;var I=this.ucmp(N);return 0!==this.negative?0|-I:I},M.prototype.ucmp=function(N){if(this.length>N.length)return 1;if(this.length<N.length)return -1;for(var I=0,T=this.length-1;T>=0;T--){var P=0|this.words[T],D=0|N.words[T];if(P!==D){P<D?I=-1:P>D&&(I=1);break}}return I},M.prototype.gtn=function(N){return 1===this.cmpn(N)},M.prototype.gt=function(N){return 1===this.cmp(N)},M.prototype.gten=function(N){return this.cmpn(N)>=0},M.prototype.gte=function(N){return this.cmp(N)>=0},M.prototype.ltn=function(N){return -1===this.cmpn(N)},M.prototype.lt=function(N){return -1===this.cmp(N)},M.prototype.lten=function(N){return 0>=this.cmpn(N)},M.prototype.lte=function(N){return 0>=this.cmp(N)},M.prototype.eqn=function(N){return 0===this.cmpn(N)},M.prototype.eq=function(N){return 0===this.cmp(N)},M.red=function(N){return new ee(N)},M.prototype.toRed=function(N){return P(!this.red,"Already a number in reduction context"),P(0===this.negative,"red works only with positives"),N.convertTo(this)._forceRed(N)},M.prototype.fromRed=function(){return P(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},M.prototype._forceRed=function(N){return this.red=N,this},M.prototype.forceRed=function(N){return P(!this.red,"Already a number in reduction context"),this._forceRed(N)},M.prototype.redAdd=function(N){return P(this.red,"redAdd works only with red numbers"),this.red.add(this,N)},M.prototype.redIAdd=function(N){return P(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,N)},M.prototype.redSub=function(N){return P(this.red,"redSub works only with red numbers"),this.red.sub(this,N)},M.prototype.redISub=function(N){return P(this.red,"redISub works only with red numbers"),this.red.isub(this,N)},M.prototype.redShl=function(N){return P(this.red,"redShl works only with red numbers"),this.red.shl(this,N)},M.prototype.redMul=function(N){return P(this.red,"redMul works only with red numbers"),this.red._verify2(this,N),this.red.mul(this,N)},M.prototype.redIMul=function(N){return P(this.red,"redMul works only with red numbers"),this.red._verify2(this,N),this.red.imul(this,N)},M.prototype.redSqr=function(){return P(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},M.prototype.redISqr=function(){return P(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},M.prototype.redSqrt=function(){return P(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},M.prototype.redInvm=function(){return P(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},M.prototype.redNeg=function(){return P(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},M.prototype.redPow=function(N){return P(this.red&&!N.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,N)};var V={k256:null,p224:null,p192:null,p25519:null};function Y(N,I){this.name=N,this.p=new M(I,16),this.n=this.p.bitLength(),this.k=new M(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function J(){Y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function Q(){Y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function Z(){Y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function X(){Y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function ee(N){if("string"==typeof N){var I=M._prime(N);this.m=I.p,this.prime=I}else P(N.gtn(1),"modulus must be greater than 1"),this.m=N,this.prime=null}function et(N){ee.call(this,N),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new M(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}Y.prototype._tmp=function(){var N=new M(null);return N.words=Array(Math.ceil(this.n/13)),N},Y.prototype.ireduce=function(N){var I,T=N;do this.split(T,this.tmp),I=(T=(T=this.imulK(T)).iadd(this.tmp)).bitLength();while(I>this.n);var P=I<this.n?-1:T.ucmp(this.p);return 0===P?(T.words[0]=0,T.length=1):P>0?T.isub(this.p):void 0!==T.strip?T.strip():T._strip(),T},Y.prototype.split=function(N,I){N.iushrn(this.n,0,I)},Y.prototype.imulK=function(N){return N.imul(this.k)},D(J,Y),J.prototype.split=function(N,I){for(var T=4194303,P=Math.min(N.length,9),D=0;D<P;D++)I.words[D]=N.words[D];if(I.length=P,N.length<=9){N.words[0]=0,N.length=1;return}var M=N.words[9];for(I.words[I.length++]=M&T,D=10;D<N.length;D++){var R=0|N.words[D];N.words[D-10]=(R&T)<<4|M>>>22,M=R}M>>>=22,N.words[D-10]=M,0===M&&N.length>10?N.length-=10:N.length-=9},J.prototype.imulK=function(N){N.words[N.length]=0,N.words[N.length+1]=0,N.length+=2;for(var I=0,T=0;T<N.length;T++){var P=0|N.words[T];I+=977*P,N.words[T]=0x3ffffff&I,I=64*P+(I/0x4000000|0)}return 0===N.words[N.length-1]&&(N.length--,0===N.words[N.length-1]&&N.length--),N},D(Q,Y),D(Z,Y),D(X,Y),X.prototype.imulK=function(N){for(var I=0,T=0;T<N.length;T++){var P=(0|N.words[T])*19+I,D=0x3ffffff&P;P>>>=26,N.words[T]=D,I=P}return 0!==I&&(N.words[N.length++]=I),N},M._prime=function(N){var I;if(V[N])return V[N];if("k256"===N)I=new J;else if("p224"===N)I=new Q;else if("p192"===N)I=new Z;else if("p25519"===N)I=new X;else throw Error("Unknown prime "+N);return V[N]=I,I},ee.prototype._verify1=function(N){P(0===N.negative,"red works only with positives"),P(N.red,"red works only with red numbers")},ee.prototype._verify2=function(N,I){P((N.negative|I.negative)==0,"red works only with positives"),P(N.red&&N.red===I.red,"red works only with red numbers")},ee.prototype.imod=function(N){return this.prime?this.prime.ireduce(N)._forceRed(this):N.umod(this.m)._forceRed(this)},ee.prototype.neg=function(N){return N.isZero()?N.clone():this.m.sub(N)._forceRed(this)},ee.prototype.add=function(N,I){this._verify2(N,I);var T=N.add(I);return T.cmp(this.m)>=0&&T.isub(this.m),T._forceRed(this)},ee.prototype.iadd=function(N,I){this._verify2(N,I);var T=N.iadd(I);return T.cmp(this.m)>=0&&T.isub(this.m),T},ee.prototype.sub=function(N,I){this._verify2(N,I);var T=N.sub(I);return 0>T.cmpn(0)&&T.iadd(this.m),T._forceRed(this)},ee.prototype.isub=function(N,I){this._verify2(N,I);var T=N.isub(I);return 0>T.cmpn(0)&&T.iadd(this.m),T},ee.prototype.shl=function(N,I){return this._verify1(N),this.imod(N.ushln(I))},ee.prototype.imul=function(N,I){return this._verify2(N,I),this.imod(N.imul(I))},ee.prototype.mul=function(N,I){return this._verify2(N,I),this.imod(N.mul(I))},ee.prototype.isqr=function(N){return this.imul(N,N.clone())},ee.prototype.sqr=function(N){return this.mul(N,N)},ee.prototype.sqrt=function(N){if(N.isZero())return N.clone();var I=this.m.andln(3);if(P(I%2==1),3===I){var T=this.m.add(new M(1)).iushrn(2);return this.pow(N,T)}for(var D=this.m.subn(1),R=0;!D.isZero()&&0===D.andln(1);)R++,D.iushrn(1);P(!D.isZero());var L=new M(1).toRed(this),$=L.redNeg(),F=this.m.subn(1).iushrn(1),B=this.m.bitLength();for(B=new M(2*B*B).toRed(this);0!==this.pow(B,F).cmp($);)B.redIAdd($);for(var U=this.pow(B,D),H=this.pow(N,D.addn(1).iushrn(1)),z=this.pow(N,D),W=R;0!==z.cmp(L);){for(var q=z,G=0;0!==q.cmp(L);G++)q=q.redSqr();P(G<W);var K=this.pow(U,new M(1).iushln(W-G-1));H=H.redMul(K),U=K.redSqr(),z=z.redMul(U),W=G}return H},ee.prototype.invm=function(N){var I=N._invmp(this.m);return 0!==I.negative?(I.negative=0,this.imod(I).redNeg()):this.imod(I)},ee.prototype.pow=function(N,I){if(I.isZero())return new M(1).toRed(this);if(0===I.cmpn(1))return N.clone();var T=4,P=Array(16);P[0]=new M(1).toRed(this),P[1]=N;for(var D=2;D<P.length;D++)P[D]=this.mul(P[D-1],N);var R=P[0],L=0,$=0,F=I.bitLength()%26;for(0===F&&(F=26),D=I.length-1;D>=0;D--){for(var B=I.words[D],U=F-1;U>=0;U--){var H=B>>U&1;if(R!==P[0]&&(R=this.sqr(R)),0===H&&0===L){$=0;continue}L<<=1,L|=H,(++$===T||0===D&&0===U)&&(R=this.mul(R,P[L]),$=0,L=0)}F=26}return R},ee.prototype.convertTo=function(N){var I=N.umod(this.m);
vendor: 5,638 bytes, line 1152
1152return I===N?I.clone():I},ee.prototype.convertFrom=function(N){var I=N.clone();return I.red=null,I},M.mont=function(N){return new et(N)},D(et,ee),et.prototype.convertTo=function(N){return this.imod(N.ushln(this.shift))},et.prototype.convertFrom=function(N){var I=this.imod(N.mul(this.rinv));return I.red=null,I},et.prototype.imul=function(N,I){if(N.isZero()||I.isZero())return N.words[0]=0,N.length=1,N;var T=N.imul(I),P=T.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),D=T.isub(P).iushrn(this.shift),M=D;return D.cmp(this.m)>=0?M=D.isub(this.m):0>D.cmpn(0)&&(M=D.iadd(this.m)),M._forceRed(this)},et.prototype.mul=function(N,I){if(N.isZero()||I.isZero())return new M(0)._forceRed(this);var T=N.mul(I),P=T.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),D=T.isub(P).iushrn(this.shift),R=D;return D.cmp(this.m)>=0?R=D.isub(this.m):0>D.cmpn(0)&&(R=D.iadd(this.m)),R._forceRed(this)},et.prototype.invm=function(N){return this.imod(N._invmp(this.m).mul(this.r2))._forceRed(this)}}(N=T.nmd(N),this)},1315:function(N,I,T){!function(N,I){"use strict";function P(N,I){if(!N)throw Error(I||"Assertion failed")}function D(N,I){N.super_=I;var T=function(){};T.prototype=I.prototype,N.prototype=new T,N.prototype.constructor=N}function M(N,I,T){if(M.isBN(N))return N;this.negative=0,this.words=null,this.length=0,this.red=null,null!==N&&(("le"===I||"be"===I)&&(T=I,I=10),this._init(N||0,I||10,T||"be"))}"object"==typeof N?N.exports=M:I.BN=M,M.BN=M,M.wordSize=26;try{B=T(181).Buffer}catch(N){}function R(N,I,T){for(var D=0,M=Math.min(N.length,T),R=0,L=I;L<M;L++){var $,F=N.charCodeAt(L)-48;D<<=4,D|=$=F>=49&&F<=54?F-49+10:F>=17&&F<=22?F-17+10:F,R|=$}return P(!(240&R),"Invalid character in "+N),D}function L(N,I,T,D){for(var M=0,R=0,L=Math.min(N.length,T),$=I;$<L;$++){var F=N.charCodeAt($)-48;M*=D,R=F>=49?F-49+10:F>=17?F-17+10:F,P(F>=0&&R<D,"Invalid character"),M+=R}return M}function $(N,I){N.words=I.words,N.length=I.length,N.negative=I.negative,N.red=I.red}function F(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}M.isBN=function(N){return N instanceof M||null!==N&&"object"==typeof N&&N.constructor.wordSize===M.wordSize&&Array.isArray(N.words)},M.max=function(N,I){return N.cmp(I)>0?N:I},M.min=function(N,I){return 0>N.cmp(I)?N:I},M.prototype._init=function(N,I,T){if("number"==typeof N)return this._initNumber(N,I,T);if("object"==typeof N)return this._initArray(N,I,T);"hex"===I&&(I=16),P(I===(0|I)&&I>=2&&I<=36);var D=0;"-"===(N=N.toString().replace(/\s+/g,""))[0]&&D++,16===I?this._parseHex(N,D):this._parseBase(N,I,D),"-"===N[0]&&(this.negative=1),this._strip(),"le"===T&&this._initArray(this.toArray(),I,T)},M.prototype._initNumber=function(N,I,T){N<0&&(this.negative=1,N=-N),N<0x4000000?(this.words=[0x3ffffff&N],this.length=1):N<0x10000000000000?(this.words=[0x3ffffff&N,N/0x4000000&0x3ffffff],this.length=2):(P(N<0x20000000000000),this.words=[0x3ffffff&N,N/0x4000000&0x3ffffff,1],this.length=3),"le"===T&&this._initArray(this.toArray(),I,T)},M.prototype._initArray=function(N,I,T){if(P("number"==typeof N.length),N.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(N.length/3),this.words=Array(this.length);for(var D,M,R=0;R<this.length;R++)this.words[R]=0;var L=0;if("be"===T)for(R=N.length-1,D=0;R>=0;R-=3)M=N[R]|N[R-1]<<8|N[R-2]<<16,this.words[D]|=M<<L&0x3ffffff,this.words[D+1]=M>>>26-L&0x3ffffff,(L+=24)>=26&&(L-=26,D++);else if("le"===T)for(R=0,D=0;R<N.length;R+=3)M=N[R]|N[R+1]<<8|N[R+2]<<16,this.words[D]|=M<<L&0x3ffffff,this.words[D+1]=M>>>26-L&0x3ffffff,(L+=24)>=26&&(L-=26,D++);return this._strip()},M.prototype._parseHex=function(N,I){this.length=Math.ceil((N.length-I)/6),this.words=Array(this.length);for(var T,P,D=0;D<this.length;D++)this.words[D]=0;var M=0;for(D=N.length-6,T=0;D>=I;D-=6)P=R(N,D,D+6),this.words[T]|=P<<M&0x3ffffff,this.words[T+1]|=P>>>26-M&4194303,(M+=24)>=26&&(M-=26,T++);D+6!==I&&(P=R(N,I,D+6),this.words[T]|=P<<M&0x3ffffff,this.words[T+1]|=P>>>26-M&4194303),this._strip()},M.prototype._parseBase=function(N,I,T){this.words=[0],this.length=1;for(var P=0,D=1;D<=0x3ffffff;D*=I)P++;P--,D=D/I|0;for(var M=N.length-T,R=M%P,$=Math.min(M,M-R)+T,F=0,B=T;B<$;B+=P)F=L(N,B,B+P,I),this.imuln(D),this.words[0]+F<0x4000000?this.words[0]+=F:this._iaddn(F);if(0!==R){var U=1;for(F=L(N,B,N.length,I),B=0;B<R;B++)U*=I;this.imuln(U),this.words[0]+F<0x4000000?this.words[0]+=F:this._iaddn(F)}},M.prototype.copy=function(N){N.words=Array(this.length);for(var I=0;I<this.length;I++)N.words[I]=this.words[I];N.length=this.length,N.negative=this.negative,N.red=this.red},M.prototype._move=function(N){$(N,this)},M.prototype.clone=function(){var N=new M(null);return this.copy(N),N},M.prototype._expand=function(N){for(;this.length<N;)this.words[this.length++]=0;return this},M.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},M.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"u">typeof Symbol&&"function"==typeof Symbol.for?M.prototype[Symbol.for("nodejs.util.inspect.custom")]=F:M.prototype.inspect=F;var B,U=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],H=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],z=[0,0,0x2000000,0x290d741,0x1000000,
vendor: 38,886 bytes, line 1152
11520x2e90edd,0x39aa400,0x267bf47,0x1000000,0x290d741,1e7,0x12959c3,0x222c000,0x3bd7765,7529536,0xadcea1,0x1000000,0x1704f61,0x206fc40,0x2cddcf9,64e6,4084101,5153632,6436343,7962624,9765625,0xb54ba0,0xdaf26b,0x1069c00,0x138f9ad,243e5,0x1b4d89f,0x2000000,0x25528a1,0x2b54a20,0x3216b93,0x39aa400];M.prototype.toString=function(N,I){if(I=0|I||1,16===(N=N||10)||"hex"===N){for(var T="",D=0,M=0,R=0;R<this.length;R++){var L=this.words[R],$=((L<<D|M)&0xffffff).toString(16);T=0!=(M=L>>>24-D&0xffffff)||R!==this.length-1?U[6-$.length]+$+T:$+T,(D+=2)>=26&&(D-=26,R--)}for(0!==M&&(T=M.toString(16)+T);T.length%I!=0;)T="0"+T;return 0!==this.negative&&(T="-"+T),T}if(N===(0|N)&&N>=2&&N<=36){var F=H[N],B=z[N];T="";var W=this.clone();for(W.negative=0;!W.isZero();){var q=W.modrn(B).toString(N);T=(W=W.idivn(B)).isZero()?q+T:U[F-q.length]+q+T}for(this.isZero()&&(T="0"+T);T.length%I!=0;)T="0"+T;return 0!==this.negative&&(T="-"+T),T}P(!1,"Base should be between 2 and 36")},M.prototype.toNumber=function(){var N=this.words[0];return 2===this.length?N+=0x4000000*this.words[1]:3===this.length&&1===this.words[2]?N+=0x10000000000000+0x4000000*this.words[1]:this.length>2&&P(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-N:N},M.prototype.toJSON=function(){return this.toString(16,2)},B&&(M.prototype.toBuffer=function(N,I){return this.toArrayLike(B,N,I)}),M.prototype.toArray=function(N,I){return this.toArrayLike(Array,N,I)};var W=function(N,I){return N.allocUnsafe?N.allocUnsafe(I):new N(I)};function q(N){for(var I=Array(N.bitLength()),T=0;T<I.length;T++){var P=T/26|0,D=T%26;I[T]=N.words[P]>>>D&1}return I}function G(N,I,T){T.negative=I.negative^N.negative;var P=N.length+I.length|0;T.length=P,P=P-1|0;var D=0|N.words[0],M=0|I.words[0],R=D*M,L=0x3ffffff&R,$=R/0x4000000|0;T.words[0]=L;for(var F=1;F<P;F++){for(var B=$>>>26,U=0x3ffffff&$,H=Math.min(F,I.length-1),z=Math.max(0,F-N.length+1);z<=H;z++){var W=F-z|0;B+=(R=(D=0|N.words[W])*(M=0|I.words[z])+U)/0x4000000|0,U=0x3ffffff&R}T.words[F]=0|U,$=0|B}return 0!==$?T.words[F]=0|$:T.length--,T._strip()}M.prototype.toArrayLike=function(N,I,T){this._strip();var D=this.byteLength(),M=T||Math.max(1,D);P(D<=M,"byte array longer than desired length"),P(M>0,"Requested array length <= 0");var R=W(N,M);return this["_toArrayLike"+("le"===I?"LE":"BE")](R,D),R},M.prototype._toArrayLikeLE=function(N,I){for(var T=0,P=0,D=0,M=0;D<this.length;D++){var R=this.words[D]<<M|P;N[T++]=255&R,T<N.length&&(N[T++]=R>>8&255),T<N.length&&(N[T++]=R>>16&255),6===M?(T<N.length&&(N[T++]=R>>24&255),P=0,M=0):(P=R>>>24,M+=2)}if(T<N.length)for(N[T++]=P;T<N.length;)N[T++]=0},M.prototype._toArrayLikeBE=function(N,I){for(var T=N.length-1,P=0,D=0,M=0;D<this.length;D++){var R=this.words[D]<<M|P;N[T--]=255&R,T>=0&&(N[T--]=R>>8&255),T>=0&&(N[T--]=R>>16&255),6===M?(T>=0&&(N[T--]=R>>24&255),P=0,M=0):(P=R>>>24,M+=2)}if(T>=0)for(N[T--]=P;T>=0;)N[T--]=0},Math.clz32?M.prototype._countBits=function(N){return 32-Math.clz32(N)}:M.prototype._countBits=function(N){var I=N,T=0;return I>=4096&&(T+=13,I>>>=13),I>=64&&(T+=7,I>>>=7),I>=8&&(T+=4,I>>>=4),I>=2&&(T+=2,I>>>=2),T+I},M.prototype._zeroBits=function(N){if(0===N)return 26;var I=N,T=0;return(8191&I)==0&&(T+=13,I>>>=13),(127&I)==0&&(T+=7,I>>>=7),(15&I)==0&&(T+=4,I>>>=4),(3&I)==0&&(T+=2,I>>>=2),(1&I)==0&&T++,T},M.prototype.bitLength=function(){var N=this.words[this.length-1],I=this._countBits(N);return(this.length-1)*26+I},M.prototype.zeroBits=function(){if(this.isZero())return 0;for(var N=0,I=0;I<this.length;I++){var T=this._zeroBits(this.words[I]);if(N+=T,26!==T)break}return N},M.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},M.prototype.toTwos=function(N){return 0!==this.negative?this.abs().inotn(N).iaddn(1):this.clone()},M.prototype.fromTwos=function(N){return this.testn(N-1)?this.notn(N).iaddn(1).ineg():this.clone()},M.prototype.isNeg=function(){return 0!==this.negative},M.prototype.neg=function(){return this.clone().ineg()},M.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},M.prototype.iuor=function(N){for(;this.length<N.length;)this.words[this.length++]=0;for(var I=0;I<N.length;I++)this.words[I]=this.words[I]|N.words[I];return this._strip()},M.prototype.ior=function(N){return P((this.negative|N.negative)==0),this.iuor(N)},M.prototype.or=function(N){return this.length>N.length?this.clone().ior(N):N.clone().ior(this)},M.prototype.uor=function(N){return this.length>N.length?this.clone().iuor(N):N.clone().iuor(this)},M.prototype.iuand=function(N){var I;I=this.length>N.length?N:this;for(var T=0;T<I.length;T++)this.words[T]=this.words[T]&N.words[T];return this.length=I.length,this._strip()},M.prototype.iand=function(N){return P((this.negative|N.negative)==0),this.iuand(N)},M.prototype.and=function(N){return this.length>N.length?this.clone().iand(N):N.clone().iand(this)},M.prototype.uand=function(N){return this.length>N.length?this.clone().iuand(N):N.clone().iuand(this)},M.prototype.iuxor=function(N){this.length>N.length?(I=this,T=N):(I=N,T=this);for(var I,T,P=0;P<T.length;P++)this.words[P]=I.words[P]^T.words[P];if(this!==I)for(;P<I.length;P++)this.words[P]=I.words[P];return this.length=I.length,this._strip()},M.prototype.ixor=function(N){return P((this.negative|N.negative)==0),this.iuxor(N)},M.prototype.xor=function(N){return this.length>N.length?this.clone().ixor(N):N.clone().ixor(this)},M.prototype.uxor=function(N){return this.length>N.length?this.clone().iuxor(N):N.clone().iuxor(this)},M.prototype.inotn=function(N){P("number"==typeof N&&N>=0);var I=0|Math.ceil(N/26),T=N%26;this._expand(I),T>0&&I--;for(var D=0;D<I;D++)this.words[D]=0x3ffffff&~this.words[D];return T>0&&(this.words[D]=~this.words[D]&0x3ffffff>>26-T),this._strip()},M.prototype.notn=function(N){return this.clone().inotn(N)},M.prototype.setn=function(N,I){P("number"==typeof N&&N>=0);var T=N/26|0,D=N%26;return this._expand(T+1),I?this.words[T]=this.words[T]|1<<D:this.words[T]=this.words[T]&~(1<<D),this._strip()},M.prototype.iadd=function(N){if(0!==this.negative&&0===N.negative)return this.negative=0,I=this.isub(N),this.negative^=1,this._normSign();if(0===this.negative&&0!==N.negative)return N.negative=0,I=this.isub(N),N.negative=1,I._normSign();this.length>N.length?(T=this,P=N):(T=N,P=this);for(var I,T,P,D=0,M=0;M<P.length;M++)I=(0|T.words[M])+(0|P.words[M])+D,this.words[M]=0x3ffffff&I,D=I>>>26;for(;0!==D&&M<T.length;M++)I=(0|T.words[M])+D,this.words[M]=0x3ffffff&I,D=I>>>26;if(this.length=T.length,0!==D)this.words[this.length]=D,this.length++;else if(T!==this)for(;M<T.length;M++)this.words[M]=T.words[M];return this},M.prototype.add=function(N){var I;return 0!==N.negative&&0===this.negative?(N.negative=0,I=this.sub(N),N.negative^=1,I):0===N.negative&&0!==this.negative?(this.negative=0,I=N.sub(this),this.negative=1,I):this.length>N.length?this.clone().iadd(N):N.clone().iadd(this)},M.prototype.isub=function(N){if(0!==N.negative){N.negative=0;var I,T,P=this.iadd(N);return N.negative=1,P._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(N),this.negative=1,this._normSign();var D=this.cmp(N);if(0===D)return this.negative=0,this.length=1,this.words[0]=0,this;D>0?(I=this,T=N):(I=N,T=this);for(var M=0,R=0;R<T.length;R++)M=(P=(0|I.words[R])-(0|T.words[R])+M)>>26,this.words[R]=0x3ffffff&P;for(;0!==M&&R<I.length;R++)M=(P=(0|I.words[R])+M)>>26,this.words[R]=0x3ffffff&P;if(0===M&&R<I.length&&I!==this)for(;R<I.length;R++)this.words[R]=I.words[R];return this.length=Math.max(this.length,R),I!==this&&(this.negative=1),this._strip()},M.prototype.sub=function(N){return this.clone().isub(N)};var K=function(N,I,T){var P,D,M,R=N.words,L=I.words,$=T.words,F=0,B=0|R[0],U=8191&B,H=B>>>13,z=0|R[1],W=8191&z,q=z>>>13,G=0|R[2],K=8191&G,V=G>>>13,Y=0|R[3],J=8191&Y,Q=Y>>>13,Z=0|R[4],X=8191&Z,ee=Z>>>13,et=0|R[5],er=8191&et,en=et>>>13,ea=0|R[6],ei=8191&ea,eo=ea>>>13,es=0|R[7],el=8191&es,ec=es>>>13,eu=0|R[8],ed=8191&eu,ef=eu>>>13,eh=0|R[9],ep=8191&eh,em=eh>>>13,eg=0|L[0],ey=8191&eg,eb=eg>>>13,ev=0|L[1],ew=8191&ev,ex=ev>>>13,eA=0|L[2],eE=8191&eA,eS=eA>>>13,e_=0|L[3],ek=8191&e_,eC=e_>>>13,ej=0|L[4],eO=8191&ej,eN=ej>>>13,eI=0|L[5],eT=8191&eI,eP=eI>>>13,eD=0|L[6],eM=8191&eD,eR=eD>>>13,eL=0|L[7],e$=8191&eL,eF=eL>>>13,eB=0|L[8],eU=8191&eB,eH=eB>>>13,ez=0|L[9],eW=8191&ez,eq=ez>>>13;T.negative=N.negative^I.negative,T.length=19,P=Math.imul(U,ey);var eG=(F+P|0)+((8191&(D=(D=Math.imul(U,eb))+Math.imul(H,ey)|0))<<13)|0;F=((M=Math.imul(H,eb))+(D>>>13)|0)+(eG>>>26)|0,eG&=0x3ffffff,P=Math.imul(W,ey),D=(D=Math.imul(W,eb))+Math.imul(q,ey)|0,M=Math.imul(q,eb),P=P+Math.imul(U,ew)|0;var eK=(F+P|0)+((8191&(D=(D=D+Math.imul(U,ex)|0)+Math.imul(H,ew)|0))<<13)|0;F=((M=M+Math.imul(H,ex)|0)+(D>>>13)|0)+(eK>>>26)|0,eK&=0x3ffffff,P=Math.imul(K,ey),D=(D=Math.imul(K,eb))+Math.imul(V,ey)|0,M=Math.imul(V,eb),P=P+Math.imul(W,ew)|0,D=(D=D+Math.imul(W,ex)|0)+Math.imul(q,ew)|0,M=M+Math.imul(q,ex)|0,P=P+Math.imul(U,eE)|0;var eV=(F+P|0)+((8191&(D=(D=D+Math.imul(U,eS)|0)+Math.imul(H,eE)|0))<<13)|0;F=((M=M+Math.imul(H,eS)|0)+(D>>>13)|0)+(eV>>>26)|0,eV&=0x3ffffff,P=Math.imul(J,ey),D=(D=Math.imul(J,eb))+Math.imul(Q,ey)|0,M=Math.imul(Q,eb),P=P+Math.imul(K,ew)|0,D=(D=D+Math.imul(K,ex)|0)+Math.imul(V,ew)|0,M=M+Math.imul(V,ex)|0,P=P+Math.imul(W,eE)|0,D=(D=D+Math.imul(W,eS)|0)+Math.imul(q,eE)|0,M=M+Math.imul(q,eS)|0,P=P+Math.imul(U,ek)|0;var eY=(F+P|0)+((8191&(D=(D=D+Math.imul(U,eC)|0)+Math.imul(H,ek)|0))<<13)|0;F=((M=M+Math.imul(H,eC)|0)+(D>>>13)|0)+(eY>>>26)|0,eY&=0x3ffffff,P=Math.imul(X,ey),D=(D=Math.imul(X,eb))+Math.imul(ee,ey)|0,M=Math.imul(ee,eb),P=P+Math.imul(J,ew)|0,D=(D=D+Math.imul(J,ex)|0)+Math.imul(Q,ew)|0,M=M+Math.imul(Q,ex)|0,P=P+Math.imul(K,eE)|0,D=(D=D+Math.imul(K,eS)|0)+Math.imul(V,eE)|0,M=M+Math.imul(V,eS)|0,P=P+Math.imul(W,ek)|0,D=(D=D+Math.imul(W,eC)|0)+Math.imul(q,ek)|0,M=M+Math.imul(q,eC)|0,P=P+Math.imul(U,eO)|0;var eJ=(F+P|0)+((8191&(D=(D=D+Math.imul(U,eN)|0)+Math.imul(H,eO)|0))<<13)|0;F=((M=M+Math.imul(H,eN)|0)+(D>>>13)|0)+(eJ>>>26)|0,eJ&=0x3ffffff,P=Math.imul(er,ey),D=(D=Math.imul(er,eb))+Math.imul(en,ey)|0,M=Math.imul(en,eb),P=P+Math.imul(X,ew)|0,D=(D=D+Math.imul(X,ex)|0)+Math.imul(ee,ew)|0,M=M+Math.imul(ee,ex)|0,P=P+Math.imul(J,eE)|0,D=(D=D+Math.imul(J,eS)|0)+Math.imul(Q,eE)|0,M=M+Math.imul(Q,eS)|0,P=P+Math.imul(K,ek)|0,D=(D=D+Math.imul(K,eC)|0)+Math.imul(V,ek)|0,M=M+Math.imul(V,eC)|0,P=P+Math.imul(W,eO)|0,D=(D=D+Math.imul(W,eN)|0)+Math.imul(q,eO)|0,M=M+Math.imul(q,eN)|0,P=P+Math.imul(U,eT)|0;var eQ=(F+P|0)+((8191&(D=(D=D+Math.imul(U,eP)|0)+Math.imul(H,eT)|0))<<13)|0;F=((M=M+Math.imul(H,eP)|0)+(D>>>13)|0)+(eQ>>>26)|0,eQ&=0x3ffffff,P=Math.imul(ei,ey),D=(D=Math.imul(ei,eb))+Math.imul(eo,ey)|0,M=Math.imul(eo,eb),P=P+Math.imul(er,ew)|0,D=(D=D+Math.imul(er,ex)|0)+Math.imul(en,ew)|0,M=M+Math.imul(en,ex)|0,P=P+Math.imul(X,eE)|0,D=(D=D+Math.imul(X,eS)|0)+Math.imul(ee,eE)|0,M=M+Math.imul(ee,eS)|0,P=P+Math.imul(J,ek)|0,D=(D=D+Math.imul(J,eC)|0)+Math.imul(Q,ek)|0,M=M+Math.imul(Q,eC)|0,P=P+Math.imul(K,eO)|0,D=(D=D+Math.imul(K,eN)|0)+Math.imul(V,eO)|0,M=M+Math.imul(V,eN)|0,P=P+Math.imul(W,eT)|0,D=(D=D+Math.imul(W,eP)|0)+Math.imul(q,eT)|0,M=M+Math.imul(q,eP)|0,P=P+Math.imul(U,eM)|0;var eZ=(F+P|0)+((8191&(D=(D=D+Math.imul(U,eR)|0)+Math.imul(H,eM)|0))<<13)|0;F=((M=M+Math.imul(H,eR)|0)+(D>>>13)|0)+(eZ>>>26)|0,eZ&=0x3ffffff,P=Math.imul(el,ey),D=(D=Math.imul(el,eb))+Math.imul(ec,ey)|0,M=Math.imul(ec,eb),P=P+Math.imul(ei,ew)|0,D=(D=D+Math.imul(ei,ex)|0)+Math.imul(eo,ew)|0,M=M+Math.imul(eo,ex)|0,P=P+Math.imul(er,eE)|0,D=(D=D+Math.imul(er,eS)|0)+Math.imul(en,eE)|0,M=M+Math.imul(en,eS)|0,P=P+Math.imul(X,ek)|0,D=(D=D+Math.imul(X,eC)|0)+Math.imul(ee,ek)|0,M=M+Math.imul(ee,eC)|0,P=P+Math.imul(J,eO)|0,D=(D=D+Math.imul(J,eN)|0)+Math.imul(Q,eO)|0,M=M+Math.imul(Q,eN)|0,P=P+Math.imul(K,eT)|0,D=(D=D+Math.imul(K,eP)|0)+Math.imul(V,eT)|0,M=M+Math.imul(V,eP)|0,P=P+Math.imul(W,eM)|0,D=(D=D+Math.imul(W,eR)|0)+Math.imul(q,eM)|0,M=M+Math.imul(q,eR)|0,P=P+Math.imul(U,e$)|0;var eX=(F+P|0)+((8191&(D=(D=D+Math.imul(U,eF)|0)+Math.imul(H,e$)|0))<<13)|0;F=((M=M+Math.imul(H,eF)|0)+(D>>>13)|0)+(eX>>>26)|0,eX&=0x3ffffff,P=Math.imul(ed,ey),D=(D=Math.imul(ed,eb))+Math.imul(ef,ey)|0,M=Math.imul(ef,eb),P=P+Math.imul(el,ew)|0,D=(D=D+Math.imul(el,ex)|0)+Math.imul(ec,ew)|0,M=M+Math.imul(ec,ex)|0,P=P+Math.imul(ei,eE)|0,D=(D=D+Math.imul(ei,eS)|0)+Math.imul(eo,eE)|0,M=M+Math.imul(eo,eS)|0,P=P+Math.imul(er,ek)|0,D=(D=D+Math.imul(er,eC)|0)+Math.imul(en,ek)|0,M=M+Math.imul(en,eC)|0,P=P+Math.imul(X,eO)|0,D=(D=D+Math.imul(X,eN)|0)+Math.imul(ee,eO)|0,M=M+Math.imul(ee,eN)|0,P=P+Math.imul(J,eT)|0,D=(D=D+Math.imul(J,eP)|0)+Math.imul(Q,eT)|0,M=M+Math.imul(Q,eP)|0,P=P+Math.imul(K,eM)|0,D=(D=D+Math.imul(K,eR)|0)+Math.imul(V,eM)|0,M=M+Math.imul(V,eR)|0,P=P+Math.imul(W,e$)|0,D=(D=D+Math.imul(W,eF)|0)+Math.imul(q,e$)|0,M=M+Math.imul(q,eF)|0,P=P+Math.imul(U,eU)|0;var e0=(F+P|0)+((8191&(D=(D=D+Math.imul(U,eH)|0)+Math.imul(H,eU)|0))<<13)|0;F=((M=M+Math.imul(H,eH)|0)+(D>>>13)|0)+(e0>>>26)|0,e0&=0x3ffffff,P=Math.imul(ep,ey),D=(D=Math.imul(ep,eb))+Math.imul(em,ey)|0,M=Math.imul(em,eb),P=P+Math.imul(ed,ew)|0,D=(D=D+Math.imul(ed,ex)|0)+Math.imul(ef,ew)|0,M=M+Math.imul(ef,ex)|0,P=P+Math.imul(el,eE)|0,D=(D=D+Math.imul(el,eS)|0)+Math.imul(ec,eE)|0,M=M+Math.imul(ec,eS)|0,P=P+Math.imul(ei,ek)|0,D=(D=D+Math.imul(ei,eC)|0)+Math.imul(eo,ek)|0,M=M+Math.imul(eo,eC)|0,P=P+Math.imul(er,eO)|0,D=(D=D+Math.imul(er,eN)|0)+Math.imul(en,eO)|0,M=M+Math.imul(en,eN)|0,P=P+Math.imul(X,eT)|0,D=(D=D+Math.imul(X,eP)|0)+Math.imul(ee,eT)|0,M=M+Math.imul(ee,eP)|0,P=P+Math.imul(J,eM)|0,D=(D=D+Math.imul(J,eR)|0)+Math.imul(Q,eM)|0,M=M+Math.imul(Q,eR)|0,P=P+Math.imul(K,e$)|0,D=(D=D+Math.imul(K,eF)|0)+Math.imul(V,e$)|0,M=M+Math.imul(V,eF)|0,P=P+Math.imul(W,eU)|0,D=(D=D+Math.imul(W,eH)|0)+Math.imul(q,eU)|0,M=M+Math.imul(q,eH)|0,P=P+Math.imul(U,eW)|0;var e1=(F+P|0)+((8191&(D=(D=D+Math.imul(U,eq)|0)+Math.imul(H,eW)|0))<<13)|0;F=((M=M+Math.imul(H,eq)|0)+(D>>>13)|0)+(e1>>>26)|0,e1&=0x3ffffff,P=Math.imul(ep,ew),D=(D=Math.imul(ep,ex))+Math.imul(em,ew)|0,M=Math.imul(em,ex),P=P+Math.imul(ed,eE)|0,D=(D=D+Math.imul(ed,eS)|0)+Math.imul(ef,eE)|0,M=M+Math.imul(ef,eS)|0,P=P+Math.imul(el,ek)|0,D=(D=D+Math.imul(el,eC)|0)+Math.imul(ec,ek)|0,M=M+Math.imul(ec,eC)|0,P=P+Math.imul(ei,eO)|0,D=(D=D+Math.imul(ei,eN)|0)+Math.imul(eo,eO)|0,M=M+Math.imul(eo,eN)|0,P=P+Math.imul(er,eT)|0,D=(D=D+Math.imul(er,eP)|0)+Math.imul(en,eT)|0,M=M+Math.imul(en,eP)|0,P=P+Math.imul(X,eM)|0,D=(D=D+Math.imul(X,eR)|0)+Math.imul(ee,eM)|0,M=M+Math.imul(ee,eR)|0,P=P+Math.imul(J,e$)|0,D=(D=D+Math.imul(J,eF)|0)+Math.imul(Q,e$)|0,M=M+Math.imul(Q,eF)|0,P=P+Math.imul(K,eU)|0,D=(D=D+Math.imul(K,eH)|0)+Math.imul(V,eU)|0,M=M+Math.imul(V,eH)|0,P=P+Math.imul(W,eW)|0;var e2=(F+P|0)+((8191&(D=(D=D+Math.imul(W,eq)|0)+Math.imul(q,eW)|0))<<13)|0;F=((M=M+Math.imul(q,eq)|0)+(D>>>13)|0)+(e2>>>26)|0,e2&=0x3ffffff,P=Math.imul(ep,eE),D=(D=Math.imul(ep,eS))+Math.imul(em,eE)|0,M=Math.imul(em,eS),P=P+Math.imul(ed,ek)|0,D=(D=D+Math.imul(ed,eC)|0)+Math.imul(ef,ek)|0,M=M+Math.imul(ef,eC)|0,P=P+Math.imul(el,eO)|0,D=(D=D+Math.imul(el,eN)|0)+Math.imul(ec,eO)|0,M=M+Math.imul(ec,eN)|0,P=P+Math.imul(ei,eT)|0,D=(D=D+Math.imul(ei,eP)|0)+Math.imul(eo,eT)|0,M=M+Math.imul(eo,eP)|0,P=P+Math.imul(er,eM)|0,D=(D=D+Math.imul(er,eR)|0)+Math.imul(en,eM)|0,M=M+Math.imul(en,eR)|0,P=P+Math.imul(X,e$)|0,D=(D=D+Math.imul(X,eF)|0)+Math.imul(ee,e$)|0,M=M+Math.imul(ee,eF)|0,P=P+Math.imul(J,eU)|0,D=(D=D+Math.imul(J,eH)|0)+Math.imul(Q,eU)|0,M=M+Math.imul(Q,eH)|0,P=P+Math.imul(K,eW)|0;var e3=(F+P|0)+((8191&(D=(D=D+Math.imul(K,eq)|0)+Math.imul(V,eW)|0))<<13)|0;F=((M=M+Math.imul(V,eq)|0)+(D>>>13)|0)+(e3>>>26)|0,e3&=0x3ffffff,P=Math.imul(ep,ek),D=(D=Math.imul(ep,eC))+Math.imul(em,ek)|0,M=Math.imul(em,eC),P=P+Math.imul(ed,eO)|0,D=(D=D+Math.imul(ed,eN)|0)+Math.imul(ef,eO)|0,M=M+Math.imul(ef,eN)|0,P=P+Math.imul(el,eT)|0,D=(D=D+Math.imul(el,eP)|0)+Math.imul(ec,eT)|0,M=M+Math.imul(ec,eP)|0,P=P+Math.imul(ei,eM)|0,D=(D=D+Math.imul(ei,eR)|0)+Math.imul(eo,eM)|0,M=M+Math.imul(eo,eR)|0,P=P+Math.imul(er,e$)|0,D=(D=D+Math.imul(er,eF)|0)+Math.imul(en,e$)|0,M=M+Math.imul(en,eF)|0,P=P+Math.imul(X,eU)|0,D=(D=D+Math.imul(X,eH)|0)+Math.imul(ee,eU)|0,M=M+Math.imul(ee,eH)|0,P=P+Math.imul(J,eW)|0;var e4=(F+P|0)+((8191&(D=(D=D+Math.imul(J,eq)|0)+Math.imul(Q,eW)|0))<<13)|0;F=((M=M+Math.imul(Q,eq)|0)+(D>>>13)|0)+(e4>>>26)|0,e4&=0x3ffffff,P=Math.imul(ep,eO),D=(D=Math.imul(ep,eN))+Math.imul(em,eO)|0,M=Math.imul(em,eN),P=P+Math.imul(ed,eT)|0,D=(D=D+Math.imul(ed,eP)|0)+Math.imul(ef,eT)|0,M=M+Math.imul(ef,eP)|0,P=P+Math.imul(el,eM)|0,D=(D=D+Math.imul(el,eR)|0)+Math.imul(ec,eM)|0,M=M+Math.imul(ec,eR)|0,P=P+Math.imul(ei,e$)|0,D=(D=D+Math.imul(ei,eF)|0)+Math.imul(eo,e$)|0,M=M+Math.imul(eo,eF)|0,P=P+Math.imul(er,eU)|0,D=(D=D+Math.imul(er,eH)|0)+Math.imul(en,eU)|0,M=M+Math.imul(en,eH)|0,P=P+Math.imul(X,eW)|0;var e5=(F+P|0)+((8191&(D=(D=D+Math.imul(X,eq)|0)+Math.imul(ee,eW)|0))<<13)|0;F=((M=M+Math.imul(ee,eq)|0)+(D>>>13)|0)+(e5>>>26)|0,e5&=0x3ffffff,P=Math.imul(ep,eT),D=(D=Math.imul(ep,eP))+Math.imul(em,eT)|0,M=Math.imul(em,eP),P=P+Math.imul(ed,eM)|0,D=(D=D+Math.imul(ed,eR)|0)+Math.imul(ef,eM)|0,M=M+Math.imul(ef,eR)|0,P=P+Math.imul(el,e$)|0,D=(D=D+Math.imul(el,eF)|0)+Math.imul(ec,e$)|0,M=M+Math.imul(ec,eF)|0,P=P+Math.imul(ei,eU)|0,D=(D=D+Math.imul(ei,eH)|0)+Math.imul(eo,eU)|0,M=M+Math.imul(eo,eH)|0,P=P+Math.imul(er,eW)|0;var e6=(F+P|0)+((8191&(D=(D=D+Math.imul(er,eq)|0)+Math.imul(en,eW)|0))<<13)|0;F=((M=M+Math.imul(en,eq)|0)+(D>>>13)|0)+(e6>>>26)|0,e6&=0x3ffffff,P=Math.imul(ep,eM),D=(D=Math.imul(ep,eR))+Math.imul(em,eM)|0,M=Math.imul(em,eR),P=P+Math.imul(ed,e$)|0,D=(D=D+Math.imul(ed,eF)|0)+Math.imul(ef,e$)|0,M=M+Math.imul(ef,eF)|0,P=P+Math.imul(el,eU)|0,D=(D=D+Math.imul(el,eH)|0)+Math.imul(ec,eU)|0,M=M+Math.imul(ec,eH)|0,P=P+Math.imul(ei,eW)|0;var e8=(F+P|0)+((8191&(D=(D=D+Math.imul(ei,eq)|0)+Math.imul(eo,eW)|0))<<13)|0;F=((M=M+Math.imul(eo,eq)|0)+(D>>>13)|0)+(e8>>>26)|0,e8&=0x3ffffff,P=Math.imul(ep,e$),D=(D=Math.imul(ep,eF))+Math.imul(em,e$)|0,M=Math.imul(em,eF),P=P+Math.imul(ed,eU)|0,D=(D=D+Math.imul(ed,eH)|0)+Math.imul(ef,eU)|0,M=M+Math.imul(ef,eH)|0,P=P+Math.imul(el,eW)|0;var e7=(F+P|0)+((8191&(D=(D=D+Math.imul(el,eq)|0)+Math.imul(ec,eW)|0))<<13)|0;F=((M=M+Math.imul(ec,eq)|0)+(D>>>13)|0)+(e7>>>26)|0,e7&=0x3ffffff,P=Math.imul(ep,eU),D=(D=Math.imul(ep,eH))+Math.imul(em,eU)|0,M=Math.imul(em,eH),P=P+Math.imul(ed,eW)|0;var e9=(F+P|0)+((8191&(D=(D=D+Math.imul(ed,eq)|0)+Math.imul(ef,eW)|0))<<13)|0;F=((M=M+Math.imul(ef,eq)|0)+(D>>>13)|0)+(e9>>>26)|0,e9&=0x3ffffff,P=Math.imul(ep,eW);var te=(F+P|0)+((8191&(D=(D=Math.imul(ep,eq))+Math.imul(em,eW)|0))<<13)|0;return F=((M=Math.imul(em,eq))+(D>>>13)|0)+(te>>>26)|0,te&=0x3ffffff,$[0]=eG,$[1]=eK,$[2]=eV,$[3]=eY,$[4]=eJ,$[5]=eQ,$[6]=eZ,$[7]=eX,$[8]=e0,$[9]=e1,$[10]=e2,$[11]=e3,$[12]=e4,$[13]=e5,$[14]=e6,$[15]=e8,$[16]=e7,$[17]=e9,$[18]=te,0!==F&&($[19]=F,T.length++),T};function V(N,I,T){T.negative=I.negative^N.negative,T.length=N.length+I.length;for(var P=0,D=0,M=0;M<T.length-1;M++){var R=D;D=0;for(var L=0x3ffffff&P,$=Math.min(M,I.length-1),F=Math.max(0,M-N.length+1);F<=$;F++){var B=M-F,U=(0|N.words[B])*(0|I.words[F]),H=0x3ffffff&U;R=R+(U/0x4000000|0)|0,L=0x3ffffff&(H=H+L|0),D+=(R=R+(H>>>26)|0)>>>26,R&=0x3ffffff}T.words[M]=L,P=R,R=D}return 0!==P?T.words[M]=P:T.length--,T._strip()}function Y(N,I,T){return V(N,I,T)}function J(N,I){this.x=N,this.y=I}Math.imul||(K=G),M.prototype.mulTo=function(N,I){var T=this.length+N.length;return 10===this.length&&10===N.length?K(this,N,I):T<63?G(this,N,I):T<1024?V(this,N,I):Y(this,N,I)},J.prototype.makeRBT=function(N){for(var I=Array(N),T=M.prototype._countBits(N)-1,P=0;P<N;P++)I[P]=this.revBin(P,T,N);return I},J.prototype.revBin=function(N,I,T){if(0===N||N===T-1)return N;for(var P=0,D=0;D<I;D++)P|=(1&N)<<I-D-1,N>>=1;return P},J.prototype.permute=function(N,I,T,P,D,M){for(var R=0;R<M;R++)P[R]=I[N[R]],D[R]=T[N[R]]},J.prototype.transform=function(N,I,T,P,D,M){this.permute(M,N,I,T,P,D);for(var R=1;R<D;R<<=1)for(var L=R<<1,$=Math.cos(2*Math.PI/L),F=Math.sin(2*Math.PI/L),B=0;B<D;B+=L)for(var U=$,H=F,z=0;z<R;z++){var W=T[B+z],q=P[B+z],G=T[B+z+R],K=P[B+z+R],V=U*G-H*K;K=U*K+H*G,G=V,T[B+z]=W+G,P[B+z]=q+K,T[B+z+R]=W-G,P[B+z+R]=q-K,z!==L&&(V=$*U-F*H,H=$*H+F*U,U=V)}},J.prototype.guessLen13b=function(N,I){var T=1|Math.max(I,N),P=1&T,D=0;for(T=T/2|0;T;T>>>=1)D++;return 1<<D+1+P},J.prototype.conjugate=function(N,I,T){if(!(T<=1))for(var P=0;P<T/2;P++){var D=N[P];N[P]=N[T-P-1],N[T-P-1]=D,D=I[P],I[P]=-I[T-P-1],I[T-P-1]=-D}},J.prototype.normalize13b=function(N,I){for(var T=0,P=0;P<I/2;P++){var D=8192*Math.round(N[2*P+1]/I)+Math.round(N[2*P]/I)+T;N[P]=0x3ffffff&D,T=D<0x4000000?0:D/0x4000000|0}return N},J.prototype.convert13b=function(N,I,T,D){for(var M=0,R=0;R<I;R++)M+=0|N[R],T[2*R]=8191&M,M>>>=13,T[2*R+1]=8191&M,M>>>=13;for(R=2*I;R<D;++R)T[R]=0;P(0===M),P((-8192&M)==0)},J.prototype.stub=function(N){for(var I=Array(N),T=0;T<N;T++)I[T]=0;return I},J.prototype.mulp=function(N,I,T){var P=2*this.guessLen13b(N.length,I.length),D=this.makeRBT(P),M=this.stub(P),R=Array(P),L=Array(P),$=Array(P),F=Array(P),B=Array(P),U=Array(P),H=T.words;H.length=P,this.convert13b(N.words,N.length,R,P),this.convert13b(I.words,I.length,F,P),this.transform(R,M,L,$,P,D),this.transform(F,M,B,U,P,D);for(var z=0;z<P;z++){var W=L[z]*B[z]-$[z]*U[z];$[z]=L[z]*U[z]+$[z]*B[z],L[z]=W}return this.conjugate(L,$,P),this.transform(L,$,H,M,P,D),this.conjugate(H,M,P),this.normalize13b(H,P),T.negative=N.negative^I.negative,T.length=N.length+I.length,T._strip()},M.prototype.mul=function(N){var I=new M(null);return I.words=Array(this.length+N.length),this.mulTo(N,I)},M.prototype.mulf=function(N){var I=new M(null);return I.words=Array(this.length+N.length),Y(this,N,I)},M.prototype.imul=function(N){return this.clone().mulTo(N,this)},M.prototype.imuln=function(N){var I=N<0;I&&(N=-N),P("number"==typeof N),P(N<0x4000000);for(var T=0,D=0;D<this.length;D++){var M=(0|this.words[D])*N,R=(0x3ffffff&M)+(0x3ffffff&T);T>>=26,T+=(M/0x4000000|0)+(R>>>26),this.words[D]=0x3ffffff&R}return 0!==T&&(this.words[D]=T,this.length++),I?this.ineg():this},M.prototype.muln=function(N){return this.clone().imuln(N)},M.prototype.sqr=function(){return this.mul(this)},M.prototype.isqr=function(){return this.imul(this.clone())},M.prototype.pow=function(N){var I=q(N);if(0===I.length)return new M(1);for(var T=this,P=0;P<I.length&&0===I[P];P++,T=T.sqr());if(++P<I.length)for(var D=T.sqr();P<I.length;P++,D=D.sqr())0!==I[P]&&(T=T.mul(D));return T},M.prototype.iushln=function(N){P("number"==typeof N&&N>=0);var I,T=N%26,D=(N-T)/26,M=0x3ffffff>>>26-T<<26-T;if(0!==T){var R=0;for(I=0;I<this.length;I++){var L=this.words[I]&M,$=(0|this.words[I])-L<<T;this.words[I]=$|R,R=L>>>26-T}R&&(this.words[I]=R,this.length++)}if(0!==D){for(I=this.length-1;I>=0;I--)this.words[I+D]=this.words[I];for(I=0;I<D;I++)this.words[I]=0;this.length+=D}return this._strip()},M.prototype.ishln=function(N){return P(0===this.negative),this.iushln(N)},M.prototype.iushrn=function(N,I,T){P("number"==typeof N&&N>=0);var D=I?(I-I%26)/26:0,M=N%26,R=Math.min((N-M)/26,this.length),L=0x3ffffff^0x3ffffff>>>M<<M,$=T;if(D-=R,D=Math.max(0,D),$){for(var F=0;F<R;F++)$.words[F]=this.words[F];$.length=R}if(0===R);else if(this.length>R)for(this.length-=R,F=0;F<this.length;F++)this.words[F]=this.words[F+R];else this.words[0]=0,this.length=1;var B=0;for(F=this.length-1;F>=0&&(0!==B||F>=D);F--){var U=0|this.words[F];this.words[F]=B<<26-M|U>>>M,B=U&L}return $&&0!==B&&($.words[$.length++]=B),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},M.prototype.ishrn=function(N,I,T){return P(0===this.negative),this.iushrn(N,I,T)},M.prototype.shln=function(N){return this.clone().ishln(N)},M.prototype.ushln=function(N){return this.clone().iushln(N)},M.prototype.shrn=function(N){return this.clone().ishrn(N)},M.prototype.ushrn=function(N){return this.clone().iushrn(N)},M.prototype.testn=function(N){P("number"==typeof N&&N>=0);var I=N%26,T=(N-I)/26,D=1<<I;return!(this.length<=T)&&!!(this.words[T]&D)},M.prototype.imaskn=function(N){P("number"==typeof N&&N>=0);var I=N%26,T=(N-I)/26;if(P(0===this.negative,"imaskn works only with positive numbers"),this.length<=T)return this;if(0!==I&&T++,this.length=Math.min(T,this.length),0!==I){var D=0x3ffffff^0x3ffffff>>>I<<I;this.words[this.length-1]&=D}return this._strip()},M.prototype.maskn=function(N){return this.clone().imaskn(N)},M.prototype.iaddn=function(N){return(P("number"==typeof N),P(N<0x4000000),N<0)?this.isubn(-N):0!==this.negative?(1===this.length&&(0|this.words[0])<=N?(this.words[0]=N-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(N),this.negative=1),this):this._iaddn(N)},M.prototype._iaddn=function(N){this.words[0]+=N;for(var I=0;I<this.length&&this.words[I]>=0x4000000;I++)this.words[I]-=0x4000000,I===this.length-1?this.words[I+1]=1:this.words[I+1]++;return this.length=Math.max(this.length,I+1),this},M.prototype.isubn=function(N){if(P("number"==typeof N),P(N<0x4000000),N<0)return this.iaddn(-N);if(0!==this.negative)return this.negative=0,this.iaddn(N),this.negative=1,this;if(this.words[0]-=N,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var I=0;I<this.length&&this.words[I]<0;I++)this.words[I]+=0x4000000,this.words[I+1]-=1;return this._strip()},M.prototype.addn=function(N){return this.clone().iaddn(N)},M.prototype.subn=function(N){return this.clone().isubn(N)},M.prototype.iabs=function(){return this.negative=0,this},M.prototype.abs=function(){return this.clone().iabs()},M.prototype._ishlnsubmul=function(N,I,T){var D,M,R=N.length+T;this._expand(R);var L=0;for(D=0;D<N.length;D++){M=(0|this.words[D+T])+L;var $=(0|N.words[D])*I;M-=0x3ffffff&$,L=(M>>26)-($/0x4000000|0),this.words[D+T]=0x3ffffff&M}for(;D<this.length-T;D++)L=(M=(0|this.words[D+T])+L)>>26,this.words[D+T]=0x3ffffff&M;if(0===L)return this._strip();for(P(-1===L),L=0,D=0;D<this.length;D++)L=(M=-(0|this.words[D])+L)>>26,this.words[D]=0x3ffffff&M;return this.negative=1,this._strip()},M.prototype._wordDiv=function(N,I){var T,P=this.length-N.length,D=this.clone(),R=N,L=0|R.words[R.length-1];0!=(P=26-this._countBits(L))&&(R=R.ushln(P),D.iushln(P),L=0|R.words[R.length-1]);var $=D.length-R.length;if("mod"!==I){(T=new M(null)).length=$+1,T.words=Array(T.length);for(var F=0;F<T.length;F++)T.words[F]=0}var B=D.clone()._ishlnsubmul(R,1,$);0===B.negative&&(D=B,T&&(T.words[$]=1));for(var U=$-1;U>=0;U--){var H=(0|D.words[R.length+U])*0x4000000+(0|D.words[R.length+U-1]);for(H=Math.min(H/L|0,0x3ffffff),D._ishlnsubmul(R,H,U);0!==D.negative;)H--,D.negative=0,D._ishlnsubmul(R,1,U),D.isZero()||(D.negative^=1);T&&(T.words[U]=H)}return T&&T._strip(),D._strip(),"div"!==I&&0!==P&&D.iushrn(P),{div:T||null,mod:D}},M.prototype.divmod=function(N,I,T){var D,R,L;return(P(!N.isZero()),this.isZero())?{div:new M(0),mod:new M(0)}:0!==this.negative&&0===N.negative?(L=this.neg().divmod(N,I),"mod"!==I&&(D=L.div.neg()),"div"!==I&&(R=L.mod.neg(),T&&0!==R.negative&&R.iadd(N)),{div:D,mod:R}):0===this.negative&&0!==N.negative?(L=this.divmod(N.neg(),I),"mod"!==I&&(D=L.div.neg()),{div:D,mod:L.mod}):(this.negative&N.negative)!=0?(L=this.neg().divmod(N.neg(),I),"div"!==I&&(R=L.mod.neg(),T&&0!==R.negative&&R.isub(N)),{div:L.div,mod:R}):N.length>this.length||0>this.cmp(N)?{div:new M(0),mod:this}:1===N.length?"div"===I?{div:this.divn(N.words[0]),mod:null}:"mod"===I?{div:null,mod:new M(this.modrn(N.words[0]))}:{div:this.divn(N.words[0]),mod:new M(this.modrn(N.words[0]))}:this._wordDiv(N,I)},M.prototype.div=function(N){return this.divmod(N,"div",!1).div},M.prototype.mod=function(N){return this.divmod(N,"mod",!1).mod},M.prototype.umod=function(N){return this.divmod(N,"mod",!0).mod},M.prototype.divRound=function(N){var I=this.divmod(N);if(I.mod.isZero())return I.div;var T=0!==I.div.negative?I.mod.isub(N):I.mod,P=N.ushrn(1),D=N.andln(1),M=T.cmp(P);return M<0||1===D&&0===M?I.div:0!==I.div.negative?I.div.isubn(1):I.div.iaddn(1)},M.prototype.modrn=function(N){var I=N<0;I&&(N=-N),P(N<=0x3ffffff);for(var T=0x4000000%N,D=0,M=this.length-1;M>=0;M--)D=(T*D+(0|this.words[M]))%N;return I?-D:D},M.prototype.modn=function(N){return this.modrn(N)},M.prototype.idivn=function(N){var I=N<0;I&&(N=-N),P(N<=0x3ffffff);for(var T=0,D=this.length-1;D>=0;D--){var M=(0|this.words[D])+0x4000000*T;this.words[D]=M/N|0,T=M%N}return this._strip(),I?this.ineg():this},M.prototype.divn=function(N){return this.clone().idivn(N)},M.prototype.egcd=function(N){P(0===N.negative),P(!N.isZero());var I=this,T=N.clone();I=0!==I.negative?I.umod(N):I.clone();for(var D=new M(1),R=new M(0),L=new M(0),$=new M(1),F=0;I.isEven()&&T.isEven();)I.iushrn(1),T.iushrn(1),++F;for(var B=T.clone(),U=I.clone();!I.isZero();){for(var H=0,z=1;(I.words[0]&z)==0&&H<26;++H,z<<=1);if(H>0)for(I.iushrn(H);H-- >0;)(D.isOdd()||R.isOdd())&&(D.iadd(B),R.isub(U)),D.iushrn(1),R.iushrn(1);for(var W=0,q=1;(T.words[0]&q)==0&&W<26;++W,q<<=1);if(W>0)for(T.iushrn(W);W-- >0;)(L.isOdd()||$.isOdd())&&(L.iadd(B),$.isub(U)),L.iushrn(1),$.iushrn(1);I.cmp(T)>=0?(I.isub(T),D.isub(L),R.isub($)):(T.isub(I),L.isub(D),$.isub(R))}return{a:L,b:$,gcd:T.iushln(F)}},M.prototype._invmp=function(N){P(0===N.negative),P(!N.isZero());var I,T=this,D=N.clone();T=0!==T.negative?T.umod(N):T.clone();for(var R=new M(1),L=new M(0),$=D.clone();T.cmpn(1)>0&&D.cmpn(1)>0;){for(var F=0,B=1;(T.words[0]&B)==0&&F<26;++F,B<<=1);if(F>0)for(T.iushrn(F);F-- >0;)R.isOdd()&&R.iadd($),R.iushrn(1);for(var U=0,H=1;(D.words[0]&H)==0&&U<26;++U,H<<=1);if(U>0)for(D.iushrn(U);U-- >0;)L.isOdd()&&L.iadd($),L.iushrn(1);T.cmp(D)>=0?(T.isub(D),R.isub(L)):(D.isub(T),L.isub(R))}return 0>(I=0===T.cmpn(1)?R:L).cmpn(0)&&I.iadd(N),I},M.prototype.gcd=function(N){if(this.isZero())return N.abs();if(N.isZero())return this.abs();var I=this.clone(),T=N.clone();I.negative=0,T.negative=0;for(var P=0;I.isEven()&&T.isEven();P++)I.iushrn(1),T.iushrn(1);for(;;){for(;I.isEven();)I.iushrn(1);for(;T.isEven();)T.iushrn(1);var D=I.cmp(T);if(D<0){var M=I;I=T,T=M}else if(0===D||0===T.cmpn(1))break;I.isub(T)}return T.iushln(P)},M.prototype.invm=function(N){return this.egcd(N).a.umod(N)},M.prototype.isEven=function(){return(1&this.words[0])==0},M.prototype.isOdd=function(){return(1&this.words[0])==1},M.prototype.andln=function(N){return this.words[0]&N},M.prototype.bincn=function(N){P("number"==typeof N);var I=N%26,T=(N-I)/26,D=1<<I;if(this.length<=T)return this._expand(T+1),this.words[T]|=D,this;for(var M=D,R=T;0!==M&&R<this.length;R++){var L=0|this.words[R];L+=M,M=L>>>26,L&=0x3ffffff,this.words[R]=L}return 0!==M&&(this.words[R]=M,this.length++),this},M.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},M.prototype.cmpn=function(N){var I,T=N<0;if(0!==this.negative&&!T)return -1;if(0===this.negative&&T)return 1;if(this._strip(),this.length>1)I=1;else{T&&(N=-N),P(N<=0x3ffffff,"Number is too big");var D=0|this.words[0];I=D===N?0:D<N?-1:1}return 0!==this.negative?0|-I:I},M.prototype.cmp=function(N){if(0!==this.negative&&0===N.negative)return -1;if(0===this.negative&&0!==N.negative)return 1;var I=this.ucmp(N);return 0!==this.negative?0|-I:I},M.prototype.ucmp=function(N){if(this.length>N.length)return 1;if(this.length<N.length)return -1;for(var I=0,T=this.length-1;T>=0;T--){var P=0|this.words[T],D=0|N.words[T];if(P!==D){P<D?I=-1:P>D&&(I=1);break}}return I},M.prototype.gtn=function(N){return 1===this.cmpn(N)},M.prototype.gt=function(N){return 1===this.cmp(N)},M.prototype.gten=function(N){return this.cmpn(N)>=0},M.prototype.gte=function(N){return this.cmp(N)>=0},M.prototype.ltn=function(N){return -1===this.cmpn(N)},M.prototype.lt=function(N){return -1===this.cmp(N)},M.prototype.lten=function(N){return 0>=this.cmpn(N)},M.prototype.lte=function(N){return 0>=this.cmp(N)},M.prototype.eqn=function(N){return 0===this.cmpn(N)},M.prototype.eq=function(N){return 0===this.cmp(N)},M.red=function(N){return new en(N)},M.prototype.toRed=function(N){return P(!this.red,"Already a number in reduction context"),P(0===this.negative,"red works only with positives"),N.convertTo(this)._forceRed(N)},M.prototype.fromRed=function(){return P(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},M.prototype._forceRed=function(N){return this.red=N,this},M.prototype.forceRed=function(N){return P(!this.red,"Already a number in reduction context"),this._forceRed(N)},M.prototype.redAdd=function(N){return P(this.red,"redAdd works only with red numbers"),this.red.add(this,N)},M.prototype.redIAdd=function(N){return P(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,N)},M.prototype.redSub=function(N){return P(this.red,"redSub works only with red numbers"),this.red.sub(this,N)},M.prototype.redISub=function(N){return P(this.red,"redISub works only with red numbers"),this.red.isub(this,N)},M.prototype.redShl=function(N){return P(this.red,"redShl works only with red numbers"),this.red.shl(this,N)},M.prototype.redMul=function(N){return P(this.red,"redMul works only with red numbers"),this.red._verify2(this,N),this.red.mul(this,N)},M.prototype.redIMul=function(N){return P(this.red,"redMul works only with red numbers"),this.red._verify2(this,N),this.red.imul(this,N)},M.prototype.redSqr=function(){return P(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},M.prototype.redISqr=function(){return P(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},M.prototype.redSqrt=function(){return P(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},M.prototype.redInvm=function(){return P(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},M.prototype.redNeg=function(){return P(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},M.prototype.redPow=function(N){return P(this.red&&!N.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,N)};var Q={k256:null,p224:null,p192:null,p25519:null};function Z(N,I){this.name=N,this.p=new M(I,16),this.n=this.p.bitLength(),this.k=new M(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function X(){Z.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ee(){Z.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function et(){Z.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function er(){Z.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function en(N){if("string"==typeof N){var I=M._prime(N);this.m=I.p,this.prime=I}else P(N.gtn(1),"modulus must be greater than 1"),this.m=N,this.prime=null}function ea(N){en.call(this,N),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new M(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}Z.prototype._tmp=function(){var N=new M(null);return N.words=Array(Math.ceil(this.n/13)),N},Z.prototype.ireduce=function(N){var I,T=N;do this.split(T,this.tmp),I=(T=(T=this.imulK(T)).iadd(this.tmp)).bitLength();while(I>this.n);var P=I<this.n?-1:T.ucmp(this.p);return 0===P?(T.words[0]=0,T.length=1):P>0?T.isub(this.p):void 0!==T.strip?T.strip():T._strip(),T},Z.prototype.split=function(N,I){N.iushrn(this.n,0,I)},Z.prototype.imulK=function(N){return N.imul(this.k)},D(X,Z),X.prototype.split=function(N,I){for(var T=4194303,P=Math.min(N.length,9),D=0;D<P;D++)I.words[D]=N.words[D];if(I.length=P,N.length<=9){N.words[0]=0,N.length=1;return}var M=N.words[9];for(I.words[I.length++]=M&T,D=10;D<N.length;D++){var R=0|N.words[D];N.words[D-10]=(R&T)<<4|M>>>22,M=R}M>>>=22,N.words[D-10]=M,0===M&&N.length>10?N.length-=10:N.length-=9},X.prototype.imulK=function(N){N.words[N.length]=0,N.words[N.length+1]=0,N.length+=2;for(var I=0,T=0;T<N.length;T++){var P=0|N.words[T];I+=977*P,N.words[T]=0x3ffffff&I,I=64*P+(I/0x4000000|0)}return 0===N.words[N.length-1]&&(N.length--,0===N.words[N.length-1]&&N.length--),N},D(ee,Z),D(et,Z),D(er,Z),er.prototype.imulK=function(N){for(var I=0,T=0;T<N.length;T++){var P=(0|N.words[T])*19+I,D=0x3ffffff&P;P>>>=26,N.words[T]=D,I=P}return 0!==I&&(N.words[N.length++]=I),N},M._prime=function(N){var I;if(Q[N])return Q[N];if("k256"===N)I=new X;else if("p224"===N)I=new ee;else if("p192"===N)I=new et;else if("p25519"===N)I=new er;else throw Error("Unknown prime "+N);return Q[N]=I,I},en.prototype._verify1=function(N){P(0===N.negative,"red works only with positives"),P(N.red,"red works only with red numbers")},en.prototype._verify2=function(N,I){P((N.negative|I.negative)==0,"red works only with positives"),P(N.red&&N.red===I.red,"red works only with red numbers")},en.prototype.imod=function(N){return this.prime?this.prime.ireduce(N)._forceRed(this):($(N,N.umod(this.m)._forceRed(this)),N)},en.prototype.neg=function(N){return N.isZero()?N.clone():this.m.sub(N)._forceRed(this)},en.prototype.add=function(N,I){this._verify2(N,I);var T=N.add(I);return T.cmp(this.m)>=0&&T.isub(this.m),T._forceRed(this)},en.prototype.iadd=function(N,I){this._verify2(N,I);var T=N.iadd(I);return T.cmp(this.m)>=0&&T.isub(this.m),T},en.prototype.sub=function(N,I){this._verify2(N,I);var T=N.sub(I);return 0>T.cmpn(0)&&T.iadd(this.m),T._forceRed(this)},en.prototype.isub=function(N,I){this._verify2(N,I);var T=N.isub(I);return 0>T.cmpn(0)&&T.iadd(this.m),T},en.prototype.shl=function(N,I){return this._verify1(N),this.imod(N.ushln(I))},en.prototype.imul=function(N,I){return this._verify2(N,I),this.imod(N.imul(I))},en.prototype.mul=function(N,I){return this._verify2(N,I),this.imod(N.mul(I))},en.prototype.isqr=function(N){return this.imul(N,N.clone())},en.prototype.sqr=function(N){return this.mul(N,N)},en.prototype.sqrt=function(N){if(N.isZero())return N.clone();var I=this.m.andln(3);if(P(I%2==1),3===I){var T=this.m.add(new M(1)).iushrn(2);return this.pow(N,T)}for(var D=this.m.subn(1),R=0;!D.isZero()&&0===D.andln(1);)R++,D.iushrn(1);P(!D.isZero());var L=new M(1).toRed(this),$=L.redNeg(),F=this.m.subn(1).iushrn(1),B=this.m.bitLength();for(B=new M(2*B*B).toRed(this);0!==this.pow(B,F).cmp($);)B.redIAdd($);for(var U=this.pow(B,D),H=this.pow(N,D.addn(1).iushrn(1)),z=this.pow(N,D),W=R;0!==z.cmp(L);){for(var q=z,G=0;0!==q.cmp(L);G++)q=q.redSqr();P(G<W);var K=this.pow(U,new M(1).iushln(W-G-1));H=H.redMul(K),U=K.redSqr(),z=z.redMul(U),W=G}return H},en.prototype.invm=function(N){var I=N._invmp(this.m);return 0!==I.negative?(I.negative=0,this.imod(I).redNeg()):this.imod(I)},en.prototype.pow=function(N,I){if(I.isZero())return new M(1).toRed(this);if(0===I.cmpn(1))return N.clone();var T=4,P=Array(16);P[0]=new M(1).toRed(this),P[1]=N;for(var D=2;D<P.length;D++)P[D]=this.mul(P[D-1],N);var R=P[0],L=0,$=0,F=I.bitLength()%26;for(0===F&&(F=26),D=I.length-1;D>=0;D--){for(var B=I.words[D],U=F-1;U>=0;U--){var H=B>>U&1;if(R!==P[0]&&(R=this.sqr(R)),0===H&&0===L){$=0;continue}L<<=1,L|=H,(++$===T||0===D&&0===U)&&(R=this.mul(R,P[L]),$=0,L=0)}F=26}return R},en.prototype.convertTo=function(N){var I=N.umod(this.m);
1152return I===N?I.clone():I},en.prototype.convertFrom=function(N){var I=N.clone();return I.red=null,I},M.mont=function(N){return new ea(N)},D(ea,en),ea.prototype.convertTo=function(N){return this.imod(N.ushln(this.shift))},ea.prototype.convertFrom=function(N){var I=this.imod(N.mul(this.rinv));return I.red=null,I},ea.prototype.imul=function(N,I){if(N.isZero()||I.isZero())return N.words[0]=0,N.length=1,N;var T=N.imul(I),P=T.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),D=T.isub(P).iushrn(this.shift),M=D;return D.cmp(this.m)>=0?M=D.isub(this.m):0>D.cmpn(0)&&(M=D.iadd(this.m)),M._forceRed(this)},ea.prototype.mul=function(N,I){if(N.isZero()||I.isZero())return new M(0)._forceRed(this);var T=N.mul(I),P=T.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),D=T.isub(P).iushrn(this.shift),R=D;return D.cmp(this.m)>=0?R=D.isub(this.m):0>D.cmpn(0)&&(R=D.iadd(this.m)),R._forceRed(this)},ea.prototype.invm=function(N){return this.imod(N._invmp(this.m).mul(this.r2))._forceRed(this)}}(N=T.nmd(N),this)},4259:function(N,I,T){var P;function D(N){this.rand=N}if(N.exports=function(N){return P||(P=new D(null)),P.generate(N)},N.exports.Rand=D,D.prototype.generate=function(N){return this._rand(N)},D.prototype._rand=function(N){if(this.rand.getBytes)return this.rand.getBytes(N);for(var I=new Uint8Array(N),T=0;T<I.length;T++)I[T]=this.rand.getByte();return I},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?D.prototype._rand=function(N){var I=new Uint8Array(N);return self.crypto.getRandomValues(I),I}:self.msCrypto&&self.msCrypto.getRandomValues?D.prototype._rand=function(N){var I=new Uint8Array(N);return self.msCrypto.getRandomValues(I),I}:"object"==typeof window&&(D.prototype._rand=function(){throw Error("Not implemented yet")});else try{var M=T(6982);if("function"!=typeof M.randomBytes)throw Error("Not supported");D.prototype._rand=function(N){return M.randomBytes(N)}}catch(N){}},6313:function(N,I,T){var P=T(5725).Buffer;function D(N){P.isBuffer(N)||(N=P.from(N));for(var I=N.length/4|0,T=Array(I),D=0;D<I;D++)T[D]=N.readUInt32BE(4*D);return T}function M(N){for(var I=0;I<N.length;N++)N[I]=0}function R(N,I,T,P,D){for(var M,R,L,$,F=T[0],B=T[1],U=T[2],H=T[3],z=N[0]^I[0],W=N[1]^I[1],q=N[2]^I[2],G=N[3]^I[3],K=4,V=1;V<D;V++)M=F[z>>>24]^B[W>>>16&255]^U[q>>>8&255]^H[255&G]^I[K++],R=F[W>>>24]^B[q>>>16&255]^U[G>>>8&255]^H[255&z]^I[K++],L=F[q>>>24]^B[G>>>16&255]^U[z>>>8&255]^H[255&W]^I[K++],$=F[G>>>24]^B[z>>>16&255]^U[W>>>8&255]^H[255&q]^I[K++],z=M,W=R,q=L,G=$;return M=(P[z>>>24]<<24|P[W>>>16&255]<<16|P[q>>>8&255]<<8|P[255&G])^I[K++],R=(P[W>>>24]<<24|P[q>>>16&255]<<16|P[G>>>8&255]<<8|P[255&z])^I[K++],L=(P[q>>>24]<<24|P[G>>>16&255]<<16|P[z>>>8&255]<<8|P[255&W])^I[K++],[M>>>=0,R>>>=0,L>>>=0,$=((P[G>>>24]<<24|P[z>>>16&255]<<16|P[W>>>8&255]<<8|P[255&q])^I[K++])>>>0]}var L=[0,1,2,4,8,16,32,64,128,27,54],$=function(){for(var N=Array(256),I=0;I<256;I++)I<128?N[I]=I<<1:N[I]=I<<1^283;for(var T=[],P=[],D=[[],[],[],[]],M=[[],[],[],[]],R=0,L=0,$=0;$<256;++$){var F=L^L<<1^L<<2^L<<3^L<<4;F=F>>>8^255&F^99,T[R]=F,P[F]=R;var B=N[R],U=N[B],H=N[U],z=257*N[F]^0x1010100*F;D[0][R]=z<<24|z>>>8,D[1][R]=z<<16|z>>>16,D[2][R]=z<<8|z>>>24,D[3][R]=z,z=0x1010101*H^65537*U^257*B^0x1010100*R,M[0][F]=z<<24|z>>>8,M[1][F]=z<<16|z>>>16,M[2][F]=z<<8|z>>>24,M[3][F]=z,0===R?R=L=1:(R=B^N[N[N[H^B]]],L^=N[N[L]])}return{SBOX:T,INV_SBOX:P,SUB_MIX:D,INV_SUB_MIX:M}}();function F(N){this._key=D(N),this._reset()}F.blockSize=16,F.keySize=32,F.prototype.blockSize=F.blockSize,F.prototype.keySize=F.keySize,F.prototype._reset=function(){for(var N=this._key,I=N.length,T=I+6,P=(T+1)*4,D=[],M=0;M<I;M++)D[M]=N[M];for(M=I;M<P;M++){var R=D[M-1];M%I==0?(R=R<<8|R>>>24,R=($.SBOX[R>>>24]<<24|$.SBOX[R>>>16&255]<<16|$.SBOX[R>>>8&255]<<8|$.SBOX[255&R])^L[M/I|0]<<24):I>6&&M%I==4&&(R=$.SBOX[R>>>24]<<24|$.SBOX[R>>>16&255]<<16|$.SBOX[R>>>8&255]<<8|$.SBOX[255&R]),D[M]=D[M-I]^R}for(var F=[],B=0;B<P;B++){var U=P-B,H=D[U-(B%4?0:4)];B<4||U<=4?F[B]=H:F[B]=$.INV_SUB_MIX[0][$.SBOX[H>>>24]]^$.INV_SUB_MIX[1][$.SBOX[H>>>16&255]]^$.INV_SUB_MIX[2][$.SBOX[H>>>8&255]]^$.INV_SUB_MIX[3][$.SBOX[255&H]]}this._nRounds=T,this._keySchedule=D,this._invKeySchedule=F},F.prototype.encryptBlockRaw=function(N){return R(N=D(N),this._keySchedule,$.SUB_MIX,$.SBOX,this._nR
1152ounds)},F.prototype.encryptBlock=function(N){var I=this.encryptBlockRaw(N),T=P.allocUnsafe(16);return T.writeUInt32BE(I[0],0),T.writeUInt32BE(I[1],4),T.writeUInt32BE(I[2],8),T.writeUInt32BE(I[3],12),T},F.prototype.decryptBlock=function(N){var I=(N=D(N))[1];N[1]=N[3],N[3]=I;var T=R(N,this._invKeySchedule,$.INV_SUB_MIX,$.INV_SBOX,this._nRounds),M=P.allocUnsafe(16);return M.writeUInt32BE(T[0],0),M.writeUInt32BE(T[3],4),M.writeUInt32BE(T[2],8),M.writeUInt32BE(T[1],12),M},F.prototype.scrub=function(){M(this._keySchedule),M(this._invKeySchedule),M(this._key)},N.exports.AES=F},1725:function(N,I,T){var P=T(6313),D=T(5725).Buffer,M=T(1888),R=T(1638),L=T(1267),$=T(6481),F=T(1995);function B(N,I){var T=0;N.length!==I.length&&T++;for(var P=Math.min(N.length,I.length),D=0;D<P;++D)T+=N[D]^I[D];return T}function U(N,I,T){if(12===I.length)return N._finID=D.concat([I,D.from([0,0,0,1])]),D.concat([I,D.from([0,0,0,2])]);var P=new L(T),M=I.length,R=M%16;P.update(I),R&&(R=16-R,P.update(D.alloc(R,0))),P.update(D.alloc(8,0));var $=8*M,B=D.alloc(8);B.writeUIntBE($,0,8),P.update(B),N._finID=P.state;var U=D.from(N._finID);return F(U),U}function H(N,I,T,R){M.call(this);var $=D.alloc(4,0);this._cipher=new P.AES(I);var F=this._cipher.encryptBlock($);this._ghash=new L(F),T=U(this,T,F),this._prev=D.from(T),this._cache=D.allocUnsafe(0),this._secCache=D.allocUnsafe(0),this._decrypt=R,this._alen=0,this._len=0,this._mode=N,this._authTag=null,this._called=!1}R(H,M),H.prototype._update=function(N){if(!this._called&&this._alen){var I=16-this._alen%16;I<16&&(I=D.alloc(I,0),this._ghash.update(I))}this._called=!0;var T=this._mode.encrypt(this,N);return this._decrypt?this._ghash.update(N):this._ghash.update(T),this._len+=N.length,T},H.prototype._final=function(){if(this._decrypt&&!this._authTag)throw Error("Unsupported state or unable to authenticate data");var N=$(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&B(N,this._authTag))throw Error("Unsupported state or unable to authenticate data");this._authTag=N,this._cipher.scrub()},H.prototype.getAuthTag=function(){if(this._decrypt||!D.isBuffer(this._authTag))throw Error("Attempting to get auth tag in unsupported state");return this._authTag},H.prototype.setAuthTag=function(N){if(!this._decrypt)throw Error("Attempting to set auth tag in unsupported state");this._authTag=N},H.prototype.setAAD=function(N){if(this._called)throw Error("Attempting to set AAD in unsupported state");this._ghash.update(N),this._alen+=N.length},N.exports=H},8642:function(N,I,T){var P=T(9780),D=T(7984),M=T(3349);function R(){return Object.keys(M)}I.createCipher=I.Cipher=P.createCipher,I.createCipheriv=I.Cipheriv=P.createCipheriv,I.createDecipher=I.Decipher=D.createDecipher,I.createDecipheriv=I.Decipheriv=D.createDecipheriv,I.listCiphers=I.getCiphers=R},7984:function(N,I,T){var P=T(1725),D=T(5725).Buffer,M=T(8597),R=T(959),L=T(1888),$=T(6313),F=T(689);function B(N,I,T){L.call(this),this._cache=new U,this._last=void 0,this._cipher=new $.AES(I),this._prev=D.from(T),this._mode=N,this._autopadding=!0}function U(){this.cache=D.allocUnsafe(0)}function H(N){var I=N[15];if(I<1||I>16)throw Error("unable to decrypt data");for(var T=-1;++T<I;)if(N[T+(16-I)]!==I)throw Error("unable to decrypt data");if(16!==I)return N.slice(0,16-I)}function z(N,I,T){var L=M[N.toLowerCase()];if(!L)throw TypeError("invalid suite type");if("string"==typeof T&&(T=D.from(T)),"GCM"!==L.mode&&T.length!==L.iv)throw TypeError("invalid iv length "+T.length);if("string"==typeof I&&(I=D.from(I)),I.length!==L.key/8)throw TypeError("invalid key length "+I.length);return"stream"===L.type?new R(L.module,I,T,!0):"auth"===L.type?new P(L.module,I,T,!0):new B(L.module,I,T)}T(1638)(B,L),B.prototype._update=function(N){this._cache.add(N);for(var I,T,P=[];I=this._cache.get(this._autopadding);)T=this._mode.decrypt(this,I),P.push(T);return D.concat(P)},B.prototype._final=function(){var N=this._cache.flush();if(this._autopadding)return H(this._mode.decrypt(this,N));if(N)throw Error("data not multiple of block length")},B.prototype.setAutoPadding=function(N){return this._autopadding=!!N,this},U.prototype.add=function(N){this.cache=D.concat([this.cache,N])},U.prototype.get=function(N){var I;if(N){if(this.cache.length>16)return I=this.cache.slice(0,16),this.cache=this.cache.slice(16),I}else if(this.cache.length>=16)return I=this.cache.slice(0,16),this.cache=this.cache.slice(16),I;return null},U.prototype.flush=function(){if(this.cache.length)return this.cache},I.createDecipher=function(N,I){var T=M[N.toLowerCase()];if(!T)throw TypeError("invalid suite type");var P=F(I,!1,T.key,T.iv);return z(N,P.key,P.iv)},I.createDecipheriv=z},9780:function(N,I,T){var P=T(8597),D=T(1725),M=T(5725).Buffer,R=T(959),L=T(1888),$=T(6313),F=T(689);function B(N,I,T){L.call(this),this._cache=new H,this._cipher=new $.AES(I),this._prev=M.from(T),this._mode=N,this._autopadding=!0}T(1638)(B,L),B.prototype._update=function(N){this._cache.add(N);for(var I,T,P=[];I=this._cache.get();)T=this._mode.encrypt(this,I),P.push(T);return M.concat(P)};var U=M.alloc(16,16);function H(){this.cache=M.allocUnsafe(0)}function z(N,I,T){var L=P[N.toLowerCase()];if(!L)throw TypeError("invalid suite type");if("string"==typeof I&&(I=M.from(I)),I.length!==L.key/8)throw TypeError("invalid key length "+I.length);if("string"==typeof T&&(T=M.from(T)),"GCM"!==L.mode&&T.length!==L.iv)throw TypeError("invalid iv length "+T.length);return"stream"===L.type?new R(L.module,I,T):"auth"===L.type?new D(L.module,I,T):new B(L.module,I,T)}function W(N,I){var T=P[N.toLowerCase()];if(!T)throw TypeError("invalid suite type");var D=F(I,!1,T.key,T.iv);return z(N,D.key,D.iv)}B.prototype._final=function(){var N=this._cache.flush();if(this._autopadding)return N=this._mode.encrypt(this,N),this._cipher.scrub(),N;if(!N.equals(U))throw this._cipher.scrub(),Error("data not multiple of block length")},B.prototype.setAutoPadding=function(N){return this._autopadding=!!N,this},H.prototype.add=function(N){this.cache=M.concat([this.cache,N])},H.prototype.get=function(){if(this.cache.length>15){var N=this.cache.slice(0,16);return this.cache=this.cache.slice(16),N}return null},H.prototype.flush=function(){for(var N=16-this.cache.length,I=M.allocUnsafe(N),T=-1;++T<N;)I.writeUInt8(N,T);return M.concat([this.cache,I])},I.createCipheriv=z,I.createCipher=W},1267:function(N,I,T){var P=T(5725).Buffer,D=P.alloc(16,0);function M(N){return[N.readUInt32BE(0),N.readUInt32BE(4),N.readUInt32BE(8),N.readUInt32BE(12)]}function R(N){var I=P.allocUnsafe(16);return I.writeUInt32BE(N[0]>>>0,0),I.writeUInt32BE(N[1]>>>0,4),I.writeUInt32BE(N[2]>>>0,8),I.writeUInt32BE(N[3]>>>0,12),I}function L(N){this.h=N,this.state=P.alloc(16,0),this.cache=P.allocUnsafe(0)}L.prototype.ghash=function(N){for(var I=-1;++I<N.length;)this.state[I]^=N[I];this._multiply()},L.prototype._multiply=function(){for(var N,I,T=M(this.h),P=[0,0,0,0],D=-1;++D<128;){for((this.state[~~(D/8)]&1<<7-D%8)!=0&&(P[0]^=T[0],P[1]^=T[1],P[2]^=T[2],P[3]^=T[3]),I=(1&T[3])!=0,N=3;N>0;N--)T[N]=T[N]>>>1|(1&T[N-1])<<31;T[0]=T[0]>>>1,I&&(T[0]=-0x1f000000^T[0])}this.state=R(P)},L.prototype.update=function(N){var I;for(this.cache=P.concat([this.cache,N]);this.cache.length>=16;)I=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(I)},L.prototype.final=function(N,I){return this.cache.length&&this.ghash(P.concat([this.cache,D],16)),this.ghash(R([0,N,0,I])),this.state},N.exports=L},1995:function(N){N.exports=function(N){for(var I,T=N.length;T--;)if(255===(I=N.readUInt8(T)))N.writeUInt8(0,T);else{I++,N.writeUInt8(I,T);break}}},1635:function(N,I,T){var P=T(6481);I.encrypt=function(N,I){var T=P(I,N._prev);return N._prev=N._cipher.encryptBlock(T),N._prev},I.decrypt=function(N,I){var T=N._prev;return N._prev=I,P(N._cipher.decryptBlock(I),T)}},4312:function(N,I,T){var P=T(5725).Buffer,D=T(6481);function M(N,I,T){var M=I.length,R=D(I,N._cache);return N._cache=N._cache.slice(M),N._prev=P.concat([N._prev,T?I:R]),R}I.encrypt=function(N,I,T){for(var D,R=P.allocUnsafe(0);I.length;)if(0===N._cache.length&&(N._cache=N._cipher.encryptBlock(N._prev),N._prev=P.allocUnsafe(0)),N._cache.length<=I.length)D=N._cache.length,R=P.concat([R,M(N,I.slice(0,D),T)]),I=I.slice(D);
1152else{R=P.concat([R,M(N,I,T)]);break}return R}},9225:function(N,I,T){var P=T(5725).Buffer;function D(N,I,T){for(var P,D,R,L=-1,$=8,F=0;++L<$;)P=N._cipher.encryptBlock(N._prev),D=I&1<<7-L?128:0,F+=(128&(R=P[0]^D))>>L%8,N._prev=M(N._prev,T?D:R);return F}function M(N,I){var T=N.length,D=-1,M=P.allocUnsafe(N.length);for(N=P.concat([N,P.from([I])]);++D<T;)M[D]=N[D]<<1|N[D+1]>>7;return M}I.encrypt=function(N,I,T){for(var M=I.length,R=P.allocUnsafe(M),L=-1;++L<M;)R[L]=D(N,I[L],T);return R}},610:function(N,I,T){var P=T(5725).Buffer;function D(N,I,T){var D=N._cipher.encryptBlock(N._prev)[0]^I;return N._prev=P.concat([N._prev.slice(1),P.from([T?I:D])]),D}I.encrypt=function(N,I,T){for(var M=I.length,R=P.allocUnsafe(M),L=-1;++L<M;)R[L]=D(N,I[L],T);return R}},8714:function(N,I,T){var P=T(6481),D=T(5725).Buffer,M=T(1995);function R(N){var I=N._cipher.encryptBlockRaw(N._prev);return M(N._prev),I}var L=16;I.encrypt=function(N,I){var T=Math.ceil(I.length/L),M=N._cache.length;N._cache=D.concat([N._cache,D.allocUnsafe(T*L)]);for(var $=0;$<T;$++){var F=R(N),B=M+$*L;N._cache.writeUInt32BE(F[0],B+0),N._cache.writeUInt32BE(F[1],B+4),N._cache.writeUInt32BE(F[2],B+8),N._cache.writeUInt32BE(F[3],B+12)}var U=N._cache.slice(0,I.length);return N._cache=N._cache.slice(I.length),P(I,U)}},6083:function(N,I){I.encrypt=function(N,I){return N._cipher.encryptBlock(I)},I.decrypt=function(N,I){return N._cipher.decryptBlock(I)}},8597:function(N,I,T){var P={ECB:T(6083),CBC:T(1635),CFB:T(4312),CFB8:T(610),CFB1:T(9225),OFB:T(4076),CTR:T(8714),GCM:T(8714)},D=T(3349);for(var M in D)D[M].module=P[D[M].mode];N.exports=D},4076:function(N,I,T){var P=T(6481);function M(N){return N._prev=N._cipher.encryptBlock(N._prev),N._prev}I.encrypt=function(N,I){for(;N._cache.length<I.length;)N._cache=D.concat([N._cache,M(N)]);var T=N._cache.slice(0,I.length);return N._cache=N._cache.slice(I.length),P(I,T)}},959:function(N,I,T){var P=T(6313),D=T(5725).Buffer,M=T(1888);function R(N,I,T,R){M.call(this),this._cipher=new P.AES(I),this._prev=D.from(T),this._cache=D.allocUnsafe(0),this._secCache=D.allocUnsafe(0),this._decrypt=R,this._mode=N}T(1638)(R,M),R.prototype._update=function(N){return this._mode.encrypt(this,N,this._decrypt)},R.prototype._final=function(){this._cipher.scrub()},N.exports=R},9131:function(N,I,T){var P=T(1862),D=T(8642),M=T(8597),R=T(1730),L=T(689);function $(N,I){if(M[N=N.toLowerCase()])T=M[N].key,P=M[N].iv;else if(R[N])T=8*R[N].key,P=R[N].iv;else throw TypeError("invalid suite type");var T,P,D=L(I,!1,T,P);return B(N,D.key,D.iv)}function F(N,I,T){if(M[N=N.toLowerCase()])return D.createCipheriv(N,I,T);if(R[N])return new P({key:I,iv:T,mode:N});throw TypeError("invalid suite type")}function B(N,I,T){if(M[N=N.toLowerCase()])return D.createDecipheriv(N,I,T);if(R[N])return new P({key:I,iv:T,mode:N,decrypt:!0});throw TypeError("invalid suite type")}function U(){return Object.keys(R).concat(D.getCiphers())}I.createCipher=I.Cipher=function(N,I){if(M[N=N.toLowerCase()])T=M[N].key,P=M[N].iv;else if(R[N])T=8*R[N].key,P=R[N].iv;else throw TypeError("invalid suite type");var T,P,D=L(I,!1,T,P);return F(N,D.key,D.iv)},I.createCipheriv=I.Cipheriv=F,I.createDecipher=I.Decipher=$,I.createDecipheriv=I.Decipheriv=B,I.listCiphers=I.getCiphers=U},1862:function(N,I,T){var P=T(1888),D=T(55),M=T(1638),R=T(5725).Buffer,L={"des-ede3-cbc":D.CBC.instantiate(D.EDE),"des-ede3":D.EDE,"des-ede-cbc":D.CBC.instantiate(D.EDE),"des-ede":D.EDE,"des-cbc":D.CBC.instantiate(D.DES),"des-ecb":D.DES};function $(N){P.call(this);var I,T=N.mode.toLowerCase(),D=L[T];I=N.decrypt?"decrypt":"encrypt";var M=N.key;R.isBuffer(M)||(M=R.from(M)),("des-ede"===T||"des-ede-cbc"===T)&&(M=R.concat([M,M.slice(0,8)]));var $=N.iv;R.isBuffer($)||($=R.from($)),this._des=D.create({key:M,iv:$,type:I})}L.des=L["des-cbc"],L.des3=L["des-ede3-cbc"],N.exports=$,M($,P),$.prototype._update=function(N){return R.from(this._des.update(N))},$.prototype._final=function(){return R.from(this._des.final())}},1730:function(N,I){I["des-ecb"]={key:8,iv:0},I["des-cbc"]=I.des={key:8,iv:8},I["des-ede3-cbc"]=I.des3={key:24,iv:8},I["des-ede3"]={key:24,iv:0},I["des-ede-cbc"]={key:16,iv:8},I["des-ede"]={key:16,iv:0}},640:function(N,I,T){var P=T(5944),M=T(376);function R(N){var I=$(N);return{blinder:I.toRed(P.mont(N.modulus)).redPow(new P(N.publicExponent)).fromRed(),unblinder:I.invm(N.modulus)}}function L(N,I){var T=R(I),M=I.modulus.byteLength();P.mont(I.modulus);var L=new P(N).mul(T.blinder).umod(I.modulus),$=L.toRed(P.mont(I.prime1)),F=L.toRed(P.mont(I.prime2)),B=I.coefficient,U=I.prime1,H=I.prime2,z=$.redPow(I.exponent1),W=F.redPow(I.exponent2);z=z.fromRed(),W=W.fromRed();var q=z.isub(W).imul(B).umod(U);return q.imul(H),W.iadd(q),new D(W.imul(T.unblinder).umod(I.modulus).toArray(!1,M))}function $(N){for(var I=N.modulus.byteLength(),T=new P(M(I));T.cmp(N.modulus)>=0||!T.umod(N.prime1)||!T.umod(N.prime2);)T=new P(M(I));return T}N.exports=L,L.getr=$},6713:function(N,I,T){N.exports=T(3678)},2926:function(N,I,T){var P=T(5725).Buffer,D=T(762),M=T(5486),R=T(1638),L=T(261),$=T(1541),F=T(3678);function B(N){M.Writable.call(this);var I=F[N];if(!I)throw Error("Unknown message digest");this._hashType=I.hash,this._hash=D(I.hash),this._tag=I.id,this._signType=I.sign}function U(N){M.Writable.call(this);var I=F[N];if(!I)throw Error("Unknown message digest");this._hash=D(I.hash),this._tag=I.id,this._signType=I.sign}function H(N){return new B(N)}function z(N){return new U(N)}
1152Object.keys(F).forEach(function(N){F[N].id=P.from(F[N].id,"hex"),F[N.toLowerCase()]=F[N]}),R(B,M.Writable),B.prototype._write=function(N,I,T){this._hash.update(N),T()},B.prototype.update=function(N,I){return"string"==typeof N&&(N=P.from(N,I)),this._hash.update(N),this},B.prototype.sign=function(N,I){this.end();var T=L(this._hash.digest(),N,this._hashType,this._signType,this._tag);return I?T.toString(I):T},R(U,M.Writable),U.prototype._write=function(N,I,T){this._hash.update(N),T()},U.prototype.update=function(N,I){return"string"==typeof N&&(N=P.from(N,I)),this._hash.update(N),this},U.prototype.verify=function(N,I,T){return"string"==typeof I&&(I=P.from(I,T)),this.end(),$(I,this._hash.digest(),N,this._signType,this._tag)},N.exports={Sign:H,Verify:z,createSign:H,createVerify:z}},261:function(N,I,T){var P=T(5725).Buffer,D=T(3256),M=T(640),R=T(2049).ec,L=T(1315),$=T(8012),F=T(6456);function B(N,I){var T=F[I.curve.join(".")];if(!T)throw Error("unknown curve "+I.curve.join("."));var D=new R(T).keyFromPrivate(I.privateKey).sign(N);return P.from(D.toDER())}function U(N,I,T){for(var P,D=I.params.priv_key,M=I.params.p,R=I.params.q,$=I.params.g,F=new L(0),B=W(N,R).mod(R),U=!1,q=z(D,R,N,T);!1===U;)F=K($,P=G(R,q,T),M,R),0===(U=P.invm(R).imul(B.add(D.mul(F))).mod(R)).cmpn(0)&&(U=!1,F=new L(0));return H(F,U)}function H(N,I){N=N.toArray(),I=I.toArray(),128&N[0]&&(N=[0].concat(N)),128&I[0]&&(I=[0].concat(I));var T=[48,N.length+I.length+4,2,N.length];return T=T.concat(N,[2,I.length],I),P.from(T)}function z(N,I,T,M){if((N=P.from(N.toArray())).length<I.byteLength()){var R=P.alloc(I.byteLength()-N.length);N=P.concat([R,N])}var L=T.length,$=q(T,I),F=P.alloc(L);F.fill(1);var B=P.alloc(L);return B=D(M,B).update(F).update(P.from([0])).update(N).update($).digest(),F=D(M,B).update(F).digest(),B=D(M,B).update(F).update(P.from([1])).update(N).update($).digest(),F=D(M,B).update(F).digest(),{k:B,v:F}}function W(N,I){var T=new L(N),P=(N.length<<3)-I.bitLength();return P>0&&T.ishrn(P),T}function q(N,I){N=(N=W(N,I)).mod(I);var T=P.from(N.toArray());if(T.length<I.byteLength()){var D=P.alloc(I.byteLength()-T.length);T=P.concat([D,T])}return T}function G(N,I,T){var M,R;do{for(M=P.alloc(0);8*M.length<N.bitLength();)I.v=D(T,I.k).update(I.v).digest(),M=P.concat([M,I.v]);R=W(M,N),I.k=D(T,I.k).update(I.v).update(P.from([0])).digest(),I.v=D(T,I.k).update(I.v).digest()}while(-1!==R.cmp(N));return R}function K(N,I,T,P){return N.toRed(L.mont(T)).redPow(I).fromRed().mod(P)}N.exports=function(N,I,T,D,R){var L=$(I);if(L.curve){if("ecdsa"!==D&&"ecdsa/rsa"!==D)throw Error("wrong private key type");return B(N,L)}if("dsa"===L.type){if("dsa"!==D)throw Error("wrong private key type");return U(N,L,T)}if("rsa"!==D&&"ecdsa/rsa"!==D)throw Error("wrong private key type");N=P.concat([R,N]);for(var F=L.modulus.byteLength(),H=[0,1];N.length+H.length+1<F;)H.push(255);H.push(0);for(var z=-1;++z<N.length;)H.push(N[z]);return M(H,L)},N.exports.getKey=z,N.exports.makeKey=G},1541:function(N,I,T){var P=T(5725).Buffer,D=T(1315),M=T(2049).ec,R=T(8012),L=T(6456);function $(N,I,T){var P=L[T.data.algorithm.curve.join(".")];if(!P)throw Error("unknown curve "+T.data.algorithm.curve.join("."));var D=new M(P),R=T.data.subjectPrivateKey.data;return D.verify(I,N,R)}function F(N,I,T){var P=T.data.p,M=T.data.q,L=T.data.g,$=T.data.pub_key,F=R.signature.decode(N,"der"),U=F.s,H=F.r;B(U,M),B(H,M);var z=D.mont(P),W=U.invm(M);return 0===L.toRed(z).redPow(new D(I).mul(W).mod(M)).fromRed().mul($.toRed(z).redPow(H.mul(W).mod(M)).fromRed()).mod(P).mod(M).cmp(H)}function B(N,I){if(0>=N.cmpn(0)||N.cmp(I)>=I)throw Error("invalid sig")}N.exports=function(N,I,T,M,L){var B=R(T);if("ec"===B.type){if("ecdsa"!==M&&"ecdsa/rsa"!==M)throw Error("wrong public key type");return $(N,I,B)}if("dsa"===B.type){if("dsa"!==M)throw Error("wrong public key type");return F(N,I,B)}if("rsa"!==M&&"ecdsa/rsa"!==M)throw Error("wrong public key type");I=P.concat([L,I]);for(var U=B.modulus.byteLength(),H=[1],z=0;I.length+H.length+2<U;)H.push(255),z++;H.push(0);for(var W=-1;++W<I.length;)H.push(I[W]);H=P.from(H);var q=D.mont(B.modulus);N=(N=new D(N).toRed(q)).redPow(new D(B.publicExponent));var G=+(z<8);for(U=Math.min((N=P.from(N.fromRed().toArray())).length,H.length),N.length!==H.length&&(G=1),W=-1;++W<U;)G|=N[W]^H[W];return 0===G}},6481:function(N){N.exports=function(N,I){for(var T=Math.min(N.length,I.length),P=new D(T),M=0;M<T;++M)P[M]=N[M]^I[M];return P}},1888:function(N,I,T){var P=T(5725).Buffer,D=T(2203).Transform,M=T(3193).StringDecoder;function R(N){D.call(this),this.hashMode="string"==typeof N,this.hashMode?this[N]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}T(1638)(R,D),R.prototype.update=function(N,I,T){"string"==typeof N&&(N=P.from(N,I));var D=this._update(N);return this.hashMode?this:(T&&(D=this._toString(D,T)),D)},R.prototype.setAutoPadding=function(){},R.prototype.getAuthTag=function(){throw Error("trying to get auth tag in unsupported state")},R.prototype.setAuthTag=function(){throw Error("trying to set auth tag in unsupported state")},R.prototype.setAAD=function(){throw Error("trying to set aad in unsupported state")},R.prototype._transform=function(N,I,T){var P;try{this.hashMode?this._update(N):this.push(this._update(N))}catch(N){P=N}finally{T(P)}},R.prototype._flush=function(N){var I;try{this.push(this.__final())}catch(N){I=N}N(I)},R.prototype._finalOrDigest=function(N){var I=this.__final()||P.alloc(0);return N&&(I=this._toString(I,N,!0)),I},R.prototype._toString=function(N,I,T){if(this._decoder||(this._decoder=new M(I),this._encoding=I),this._encoding!==I)throw Error("can't switch encodings");var P=this._decoder.write(N);return T&&(P+=this._decoder.end()),P},N.exports=R},8814:function(N,I,T){var P=T(2049),M=T(5944);N.exports=function(N){return new L(N)};var R={secp256k1:{name:"secp256k1",byteLength:32}
vendor: 6,115 bytes, line 1152
1152,secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function L(N){this.curveType=R[N],this.curveType||(this.curveType={name:N}),this.curve=new P.ec(this.curveType.name),this.keys=void 0}function $(N,I,T){Array.isArray(N)||(N=N.toArray());var P=new D(N);if(T&&P.length<T){var M=new D(T-P.length);M.fill(0),P=D.concat([M,P])}return I?P.toString(I):P}R.p224=R.secp224r1,R.p256=R.secp256r1=R.prime256v1,R.p192=R.secp192r1=R.prime192v1,R.p384=R.secp384r1,R.p521=R.secp521r1,L.prototype.generateKeys=function(N,I){return this.keys=this.curve.genKeyPair(),this.getPublicKey(N,I)},L.prototype.computeSecret=function(N,I,T){return I=I||"utf8",D.isBuffer(N)||(N=new D(N,I)),$(this.curve.keyFromPublic(N).getPublic().mul(this.keys.getPrivate()).getX(),T,this.curveType.byteLength)},L.prototype.getPublicKey=function(N,I){var T=this.keys.getPublic("compressed"===I,!0);return"hybrid"===I&&(T[T.length-1]%2?T[0]=7:T[0]=6),$(T,N)},L.prototype.getPrivateKey=function(N){return $(this.keys.getPrivate(),N)},L.prototype.setPublicKey=function(N,I){return I=I||"utf8",D.isBuffer(N)||(N=new D(N,I)),this.keys._importPublic(N),this},L.prototype.setPrivateKey=function(N,I){I=I||"utf8",D.isBuffer(N)||(N=new D(N,I));var T=new M(N);return T=T.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(T),this}},762:function(N,I,T){"use strict";var P=T(1638),D=T(3858),M=T(8987),R=T(3251),L=T(1888);function $(N){L.call(this,"digest"),this._hash=N}P($,L),$.prototype._update=function(N){this._hash.update(N)},$.prototype._final=function(){return this._hash.digest()},N.exports=function(N){return"md5"===(N=N.toLowerCase())?new D:"rmd160"===N||"ripemd160"===N?new M:new $(R(N))}},1334:function(N,I,T){var P=T(3858);N.exports=function(N){return(new P).update(N).digest()}},3256:function(N,I,T){"use strict";var P=T(1638),D=T(9189),M=T(1888),R=T(5725).Buffer,L=T(1334),$=T(8987),F=T(3251),B=R.alloc(128);function U(N,I){M.call(this,"digest"),"string"==typeof I&&(I=R.from(I));var T="sha512"===N||"sha384"===N?128:64;this._alg=N,this._key=I,I.length>T?I=("rmd160"===N?new $:F(N)).update(I).digest():I.length<T&&(I=R.concat([I,B],T));for(var P=this._ipad=R.allocUnsafe(T),D=this._opad=R.allocUnsafe(T),L=0;L<T;L++)P[L]=54^I[L],D[L]=92^I[L];this._hash="rmd160"===N?new $:F(N),this._hash.update(P)}P(U,M),U.prototype._update=function(N){this._hash.update(N)},U.prototype._final=function(){var N=this._hash.digest();return("rmd160"===this._alg?new $:F(this._alg)).update(this._opad).update(N).digest()},N.exports=function(N,I){return"rmd160"===(N=N.toLowerCase())||"ripemd160"===N?new U("rmd160",I):"md5"===N?new D(L,I):new U(N,I)}},9189:function(N,I,T){"use strict";var P=T(1638),D=T(5725).Buffer,M=T(1888),R=D.alloc(128),L=64;function $(N,I){M.call(this,"digest"),"string"==typeof I&&(I=D.from(I)),this._alg=N,this._key=I,I.length>L?I=N(I):I.length<L&&(I=D.concat([I,R],L));for(var T=this._ipad=D.allocUnsafe(L),P=this._opad=D.allocUnsafe(L),$=0;$<L;$++)T[$]=54^I[$],P[$]=92^I[$];this._hash=[T]}P($,M),$.prototype._update=function(N){this._hash.push(N)},$.prototype._final=function(){var N=this._alg(D.concat(this._hash));return this._alg(D.concat([this._opad,N]))},N.exports=$},55:function(N,I,T){"use strict";I.utils=T(4569),I.Cipher=T(4309),I.DES=T(8992),I.CBC=T(42),I.EDE=T(4960)},42:function(N,I,T){"use strict";var P=T(7551),D=T(1638),M={};function R(N){P.equal(N.length,8,"Invalid IV length"),this.iv=Array(8);for(var I=0;I<this.iv.length;I++)this.iv[I]=N[I]}I.instantiate=function(N){function I(I){N.call(this,I),this._cbcInit()}D(I,N);for(var T=Object.keys(M),P=0;P<T.length;P++){var R=T[P];I.prototype[R]=M[R]}return I.create=function(N){return new I(N)},I},M._cbcInit=function(){var N=new R(this.options.iv);this._cbcState=N},M._update=function(N,I,T,P){var D=this._cbcState,M=this.constructor.super_.prototype,R=D.iv;if("encrypt"===this.type){for(var L=0;L<this.blockSize;L++)R[L]^=N[I+L];M._update.call(this,R,0,T,P);for(var L=0;L<this.blockSize;L++)R[L]=T[P+L]}else{M._update.call(this,N,I,T,P);for(var L=0;L<this.blockSize;L++)T[P+L]^=R[L];for(var L=0;L<this.blockSize;L++)R[L]=N[I+L]}}},4309:function(N,I,T){"use strict";var P=T(7551);function D(N){this.options=N,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=Array(this.blockSize),this.bufferOff=0}N.exports=D,D.prototype._init=function(){},D.prototype.update=function(N){return 0===N.length?[]:"decrypt"===this.type?this._updateDecrypt(N):this._updateEncrypt(N)},D.prototype._buffer=function(N,I){for(var T=Math.min(this.buffer.length-this.bufferOff,N.length-I),P=0;P<T;P++)this.buffer[this.bufferOff+P]=N[I+P];return this.bufferOff+=T,T},D.prototype._flushBuffer=function(N,I){return this._update(this.buffer,0,N,I),this.bufferOff=0,this.blockSize},D.prototype._updateEncrypt=function(N){var I=0,T=0,P=Array(((this.bufferOff+N.length)/this.blockSize|0)*this.blockSize);0!==this.bufferOff&&(I+=this._buffer(N,I),this.bufferOff===this.buffer.length&&(T+=this._flushBuffer(P,T)));for(var D=N.length-(N.length-I)%this.blockSize;I<D;I+=this.blockSize)this._update(N,I,P,T),T+=this.blockSize;for(;I<N.length;I++,this.bufferOff++)this.buffer[this.bufferOff]=N[I];return P},D.prototype._updateDecrypt=function(N){for(var I=0,T=0,P=Math.ceil((this.bufferOff+N.length)/this.blockSize)-1,D=Array(P*this.blockSize);P>0;P--)I+=this._buffer(N,I),T+=this._flushBuffer(D,T);return I+=this._buffer(N,I),D},D.prototype.final=function(N){var I,T;return(N&&(I=this.update(N)),T="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),I)?I.concat(T):T},D.prototype._pad=function(N,I){if(0===I)return!1;for(;I<N.length;)N[I++]=0;return!0},D.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var N=Array(this.blockSize);return this._update(this.buffer,0,N,0),N},D.prototype._unpad=function(N){return N},D.prototype._finalDecrypt=function(){P.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var N=Array(this.blockSize);
1152return this._flushBuffer(N,0),this._unpad(N)}},8992:function(N,I,T){"use strict";var P=T(7551),D=T(1638),M=T(4569),R=T(4309);function L(){this.tmp=[,,],this.keys=null}function $(N){R.call(this,N);var I=new L;this._desState=I,this.deriveKeys(I,N.key)}D($,R),N.exports=$,$.create=function(N){return new $(N)};var F=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];$.prototype.deriveKeys=function(N,I){N.keys=Array(32),P.equal(I.length,this.blockSize,"Invalid key length");var T=M.readUInt32BE(I,0),D=M.readUInt32BE(I,4);M.pc1(T,D,N.tmp,0),T=N.tmp[0],D=N.tmp[1];for(var R=0;R<N.keys.length;R+=2){var L=F[R>>>1];T=M.r28shl(T,L),D=M.r28shl(D,L),M.pc2(T,D,N.keys,R)}},$.prototype._update=function(N,I,T,P){var D=this._desState,R=M.readUInt32BE(N,I),L=M.readUInt32BE(N,I+4);M.ip(R,L,D.tmp,0),R=D.tmp[0],L=D.tmp[1],"encrypt"===this.type?this._encrypt(D,R,L,D.tmp,0):this._decrypt(D,R,L,D.tmp,0),R=D.tmp[0],L=D.tmp[1],M.writeUInt32BE(T,R,P),M.writeUInt32BE(T,L,P+4)},$.prototype._pad=function(N,I){for(var T=N.length-I,P=I;P<N.length;P++)N[P]=T;return!0},$.prototype._unpad=function(N){for(var I=N[N.length-1],T=N.length-I;T<N.length;T++)P.equal(N[T],I);return N.slice(0,N.length-I)},$.prototype._encrypt=function(N,I,T,P,D){for(var R=I,L=T,$=0;$<N.keys.length;$+=2){var F=N.keys[$],B=N.keys[$+1];M.expand(L,N.tmp,0),F^=N.tmp[0],B^=N.tmp[1];var U=M.substitute(F,B),H=M.permute(U),z=L;L=(R^H)>>>0,R=z}M.rip(L,R,P,D)},$.prototype._decrypt=function(N,I,T,P,D){for(var R=T,L=I,$=N.keys.length-2;$>=0;$-=2){var F=N.keys[$],B=N.keys[$+1];M.expand(R,N.tmp,0),F^=N.tmp[0],B^=N.tmp[1];var U=M.substitute(F,B),H=M.permute(U),z=R;R=(L^H)>>>0,L=z}M.rip(R,L,P,D)}},4960:function(N,I,T){"use strict";var P=T(7551),D=T(1638),M=T(4309),R=T(8992);function L(N,I){P.equal(I.length,24,"Invalid key length");var T=I.slice(0,8),D=I.slice(8,16),M=I.slice(16,24);"encrypt"===N?this.ciphers=[R.create({type:"encrypt",key:T}),R.create({type:"decrypt",key:D}),R.create({type:"encrypt",key:M})]:this.ciphers=[R.create({type:"decrypt",key:M}),R.create({type:"encrypt",key:D}),R.create({type:"decrypt",key:T})]}function $(N){M.call(this,N);var I=new L(this.type,this.options.key);this._edeState=I}D($,M),N.exports=$,$.create=function(N){return new $(N)},$.prototype._update=function(N,I,T,P){var D=this._edeState;D.ciphers[0]._update(N,I,T,P),D.ciphers[1]._update(T,P,T,P),D.ciphers[2]._update(T,P,T,P)},$.prototype._pad=R.prototype._pad,$.prototype._unpad=R.prototype._unpad},4569:function(N,I){"use strict";I.readUInt32BE=function(N,I){return(N[0+I]<<24|N[1+I]<<16|N[2+I]<<8|N[3+I])>>>0},I.writeUInt32BE=function(N,I,T){N[0+T]=I>>>24,N[1+T]=I>>>16&255,N[2+T]=I>>>8&255,N[3+T]=255&I},I.ip=function(N,I,T,P){for(var D=0,M=0,R=6;R>=0;R-=2){for(var L=0;L<=24;L+=8)D<<=1,D|=I>>>L+R&1;for(var L=0;L<=24;L+=8)D<<=1,D|=N>>>L+R&1}for(var R=6;R>=0;R-=2){for(var L=1;L<=25;L+=8)M<<=1,M|=I>>>L+R&1;for(var L=1;L<=25;L+=8)M<<=1,M|=N>>>L+R&1}T[P+0]=D>>>0,T[P+1]=M>>>0},I.rip=function(N,I,T,P){for(var D=0,M=0,R=0;R<4;R++)for(var L=24;L>=0;L-=8)D<<=1,D|=I>>>L+R&1,D<<=1,D|=N>>>L+R&1;for(var R=4;R<8;R++)for(var L=24;L>=0;L-=8)M<<=1,M|=I>>>L+R&1,M<<=1,M|=N>>>L+R&1;T[P+0]=D>>>0,T[P+1]=M>>>0},I.pc1=function(N,I,T,P){for(var D=0,M=0,R=7;R>=5;R--){for(var L=0;L<=24;L+=8)D<<=1,D|=I>>L+R&1;for(var L=0;L<=24;L+=8)D<<=1,D|=N>>L+R&1}for(var L=0;L<=24;L+=8)D<<=1,D|=I>>L+R&1;for(var R=1;R<=3;R++){for(var L=0;L<=24;L+=8)M<<=1,M|=I>>L+R&1;for(var L=0;L<=24;L+=8)M<<=1,M|=N>>L+R&1}for(var L=0;L<=24;L+=8)M<<=1,M|=N>>L+R&1;T[P+0]=D>>>0,T[P+1]=M>>>0},I.r28shl=function(N,I){return N<<I&0xfffffff|N>>>28-I};var T=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];I.pc2=function(N,I,P,D){for(var M=0,R=0,L=T.length>>>1,$=0;$<L;$++)M<<=1,M|=N>>>T[$]&1;for(var $=L;$<T.length;$++)R<<=1,R|=I>>>T[$]&1;P[D+0]=M>>>0,P[D+1]=R>>>0},I.expand=function(N,I,T){var P=0,D=0;P=(1&N)<<5|N>>>27;for(var M=23;M>=15;M-=4)P<<=6,P|=N>>>M&63;for(var M=11;M>=3;M-=4)D|=N>>>M&63,D<<=6;D|=(31&N)<<1|N>>>31,I[T+0]=P>>>0,I[T+1]=D>>>0};var P=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];I.substitute=function(N,I){for(var T=0,D=0;D<4;D++){var M=N>>>18-6*D&63,R=P[64*D+M];T<<=4,T|=R}for(var D=0;D<4;D++){var M=I>>>18-6*D&63,R=P[256+64*D+M];T<<=4,T|=R}return T>>>0};var D=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];I.permute=function(N){for(var I=0,T=0;T<D.length;T++)I<<=1,I|=N>>>D[T]&1;return I>>>0},I.padSplit=function(N,I,T){for(var P=N.toString(2);P.length<I;)P="0"+P;for(var D=[],M=0;M<I;M+=T)D.push(P.slice(M,M+T));return D.join(" ")}},857:function(N,I,T){var P=T(3895),M=T(7821),R=T(2913),L={binary:!0,hex:!0,base64:!0};function $(N,I,T,M){return D.isBuffer(I)||void 0===L[I]?$(N,"binary",I,T):(I=I||"binary",M=M||"binary",T=T||new D([2]),D.isBuffer(T)||(T=new D(T,M)),"number"==typeof N)?new R(P(N,T),T,!0):(D.isBuffer(N)||(N=new D(N,I)),new R(N,T,!0))}I.DiffieHellmanGroup=I.createDiffieHellmanGroup=I.getDiffieHellman=function(N){return new R(new D(M[N].prime,"hex"),new D(M[N].gen,"hex"))},I.createDiffieHellman=I.DiffieHellman=$},2913:function(N,I,T){var P=T(5944),M=new(T(6821)),R=new P(24),L=new P(11),$=new P(10),F=new P(3),B=new P(7),U=T(3895),H=T(376);function z(N,I){return I=I||"utf8",D.isBuffer(N)||(N=new D(N,I)),this._pub=new P(N),this}function W(N,I){return I=I||"utf8",D.isBuffer(N)||(N=new D(N,I)),this._priv=new P(N),this}N.exports=K;var q={};function G(N,I){var T,P=I.toString("hex"),D=[P,N.toString(16)].join("_");if(D in q)return q[D];var H=0;
1152if(N.isEven()||!U.simpleSieve||!U.fermatTest(N)||!M.test(N))return H+=1,"02"===P||"05"===P?H+=8:H+=4,q[D]=H,H;switch(!M.test(N.shrn(1))&&(H+=2),P){case"02":N.mod(R).cmp(L)&&(H+=8);break;case"05":(T=N.mod($)).cmp(F)&&T.cmp(B)&&(H+=8);break;default:H+=4}return q[D]=H,H}function K(N,I,T){this.setGenerator(I),this.__prime=new P(N),this._prime=P.mont(this.__prime),this._primeLen=N.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,T?(this.setPublicKey=z,this.setPrivateKey=W):this._primeCode=8}function V(N,I){var T=new D(N.toArray());return I?T.toString(I):T}Object.defineProperty(K.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=G(this.__prime,this.__gen)),this._primeCode}}),K.prototype.generateKeys=function(){return this._priv||(this._priv=new P(H(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},K.prototype.computeSecret=function(N){var I=new D((N=(N=new P(N)).toRed(this._prime)).redPow(this._priv).fromRed().toArray()),T=this.getPrime();if(I.length<T.length){var M=new D(T.length-I.length);M.fill(0),I=D.concat([M,I])}return I},K.prototype.getPublicKey=function(N){return V(this._pub,N)},K.prototype.getPrivateKey=function(N){return V(this._priv,N)},K.prototype.getPrime=function(N){return V(this.__prime,N)},K.prototype.getGenerator=function(N){return V(this._gen,N)},K.prototype.setGenerator=function(N,I){return I=I||"utf8",D.isBuffer(N)||(N=new D(N,I)),this.__gen=N,this._gen=new P(N),this}},3895:function(N,I,T){var P=T(376);N.exports=V,V.simpleSieve=G,V.fermatTest=K;var D=T(5944),M=new D(24),R=new(T(6821)),L=new D(1),$=new D(2),F=new D(5);new D(16),new D(8);var B=new D(10),U=new D(3);new D(7);var H=new D(11),z=new D(4);new D(12);var W=null;function q(){if(null!==W)return W;var N=1048576,I=[];I[0]=2;for(var T=1,P=3;P<N;P+=2){for(var D=Math.ceil(Math.sqrt(P)),M=0;M<T&&I[M]<=D&&P%I[M]!=0;M++);T!==M&&I[M]<=D||(I[T++]=P)}return W=I,I}function G(N){for(var I=q(),T=0;T<I.length;T++)if(0===N.modn(I[T]))if(0!==N.cmpn(I[T]))return!1;else break;return!0}function K(N){var I=D.mont(N);return 0===$.toRed(I).redPow(N.subn(1)).fromRed().cmpn(1)}function V(N,I){var T,W;if(N<16)if(2===I||5===I)return new D([140,123]);else return new D([140,39]);for(I=new D(I);;){for(T=new D(P(Math.ceil(N/8)));T.bitLength()>N;)T.ishrn(1);if(T.isEven()&&T.iadd(L),T.testn(1)||T.iadd($),I.cmp($)){if(!I.cmp(F))for(;T.mod(B).cmp(U);)T.iadd(z)}else for(;T.mod(M).cmp(H);)T.iadd(z);if(G(W=T.shrn(1))&&G(T)&&K(W)&&K(T)&&R.test(W)&&R.test(T))return T}}},2049:function(N,I,T){"use strict";var P=I;P.version=T(4497).rE,P.utils=T(3355),P.rand=T(4259),P.curve=T(7942),P.curves=T(7736),P.ec=T(1039),P.eddsa=T(4226)},4285:function(N,I,T){"use strict";var P=T(5944),D=T(3355),M=D.getNAF,R=D.getJSF,L=D.assert;function $(N,I){this.type=N,this.p=new P(I.p,16),this.red=I.prime?P.red(I.prime):P.mont(this.p),this.zero=new P(0).toRed(this.red),this.one=new P(1).toRed(this.red),this.two=new P(2).toRed(this.red),this.n=I.n&&new P(I.n,16),this.g=I.g&&this.pointFromJSON(I.g,I.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var T=this.n&&this.p.div(this.n);!T||T.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}
vendor: 10,201 bytes, line 1152
1152function F(N,I){this.curve=N,this.type=I,this.precomputed=null}N.exports=$,$.prototype.point=function(){throw Error("Not implemented")},$.prototype.validate=function(){throw Error("Not implemented")},$.prototype._fixedNafMul=function(N,I){L(N.precomputed);var T=N._getDoubles(),P=M(I,1,this._bitLength),D=(1<<T.step+1)-(T.step%2==0?2:1);D/=3;for(var R=[],$=0;$<P.length;$+=T.step){for(var F=0,I=$+T.step-1;I>=$;I--)F=(F<<1)+P[I];R.push(F)}for(var B=this.jpoint(null,null,null),U=this.jpoint(null,null,null),H=D;H>0;H--){for(var $=0;$<R.length;$++){var F=R[$];F===H?U=U.mixedAdd(T.points[$]):F===-H&&(U=U.mixedAdd(T.points[$].neg()))}B=B.add(U)}return B.toP()},$.prototype._wnafMul=function(N,I){var T=4,P=N._getNAFPoints(T);T=P.wnd;for(var D=P.points,R=M(I,T,this._bitLength),$=this.jpoint(null,null,null),F=R.length-1;F>=0;F--){for(var I=0;F>=0&&0===R[F];F--)I++;if(F>=0&&I++,$=$.dblp(I),F<0)break;var B=R[F];L(0!==B),$="affine"===N.type?B>0?$.mixedAdd(D[B-1>>1]):$.mixedAdd(D[-B-1>>1].neg()):B>0?$.add(D[B-1>>1]):$.add(D[-B-1>>1].neg())}return"affine"===N.type?$.toP():$},$.prototype._wnafMulAdd=function(N,I,T,P,D){for(var L=this._wnafT1,$=this._wnafT2,F=this._wnafT3,B=0,U=0;U<P;U++){var H=I[U],z=H._getNAFPoints(N);L[U]=z.wnd,$[U]=z.points}for(var U=P-1;U>=1;U-=2){var W=U-1,q=U;if(1!==L[W]||1!==L[q]){F[W]=M(T[W],L[W],this._bitLength),F[q]=M(T[q],L[q],this._bitLength),B=Math.max(F[W].length,B),B=Math.max(F[q].length,B);continue}var G=[I[W],null,null,I[q]];0===I[W].y.cmp(I[q].y)?(G[1]=I[W].add(I[q]),G[2]=I[W].toJ().mixedAdd(I[q].neg())):0===I[W].y.cmp(I[q].y.redNeg())?(G[1]=I[W].toJ().mixedAdd(I[q]),G[2]=I[W].add(I[q].neg())):(G[1]=I[W].toJ().mixedAdd(I[q]),G[2]=I[W].toJ().mixedAdd(I[q].neg()));var K=[-3,-1,-5,-7,0,7,5,1,3],V=R(T[W],T[q]);B=Math.max(V[0].length,B),F[W]=Array(B),F[q]=Array(B);for(var Y=0;Y<B;Y++){var J=0|V[0][Y],Q=0|V[1][Y];F[W][Y]=K[(J+1)*3+(Q+1)],F[q][Y]=0,$[W]=G}}for(var Z=this.jpoint(null,null,null),X=this._wnafT4,U=B;U>=0;U--){for(var ee=0;U>=0;){for(var et=!0,Y=0;Y<P;Y++)X[Y]=0|F[Y][U],0!==X[Y]&&(et=!1);if(!et)break;ee++,U--}if(U>=0&&ee++,Z=Z.dblp(ee),U<0)break;for(var Y=0;Y<P;Y++){var H,er=X[Y];0!==er&&(er>0?H=$[Y][er-1>>1]:er<0&&(H=$[Y][-er-1>>1].neg()),Z="affine"===H.type?Z.mixedAdd(H):Z.add(H))}}for(var U=0;U<P;U++)$[U]=null;return D?Z:Z.toP()},$.BasePoint=F,F.prototype.eq=function(){throw Error("Not implemented")},F.prototype.validate=function(){return this.curve.validate(this)},$.prototype.decodePoint=function(N,I){N=D.toArray(N,I);var T=this.p.byteLength();if((4===N[0]||6===N[0]||7===N[0])&&N.length-1==2*T)return 6===N[0]?L(N[N.length-1]%2==0):7===N[0]&&L(N[N.length-1]%2==1),this.point(N.slice(1,1+T),N.slice(1+T,1+2*T));if((2===N[0]||3===N[0])&&N.length-1===T)return this.pointFromX(N.slice(1,1+T),3===N[0]);throw Error("Unknown point format")},F.prototype.encodeCompressed=function(N){return this.encode(N,!0)},F.prototype._encode=function(N){var I=this.curve.p.byteLength(),T=this.getX().toArray("be",I);return N?[this.getY().isEven()?2:3].concat(T):[4].concat(T,this.getY().toArray("be",I))},F.prototype.encode=function(N,I){return D.encode(this._encode(I),N)},F.prototype.precompute=function(N){if(this.precomputed)return this;var I={doubles:null,naf:null,beta:null};return I.naf=this._getNAFPoints(8),I.doubles=this._getDoubles(4,N),I.beta=this._getBeta(),this.precomputed=I,this},F.prototype._hasDoubles=function(N){if(!this.precomputed)return!1;var I=this.precomputed.doubles;return!!I&&I.points.length>=Math.ceil((N.bitLength()+1)/I.step)},F.prototype._getDoubles=function(N,I){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var T=[this],P=this,D=0;D<I;D+=N){for(var M=0;M<N;M++)P=P.dbl();T.push(P)}return{step:N,points:T}},F.prototype._getNAFPoints=function(N){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var I=[this],T=(1<<N)-1,P=1===T?null:this.dbl(),D=1;D<T;D++)I[D]=I[D-1].add(P);return{wnd:N,points:I}},F.prototype._getBeta=function(){return null},F.prototype.dblp=function(N){for(var I=this,T=0;T<N;T++)I=I.dbl();return I}},3546:function(N,I,T){"use strict";var P=T(3355),D=T(5944),M=T(1638),R=T(4285),L=P.assert;function $(N){this.twisted=(0|N.a)!=1,this.mOneA=this.twisted&&(0|N.a)==-1,this.extended=this.mOneA,R.call(this,"edwards",N),this.a=new D(N.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new D(N.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new D(N.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),L(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=(0|N.c)==1}function F(N,I,T,P,M){R.BasePoint.call(this,N,"projective"),null===I&&null===T&&null===P?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new D(I,16),this.y=new D(T,16),this.z=P?new D(P,16):this.curve.one,this.t=M&&new D(M,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}M($,R),N.exports=$,$.prototype._mulA=function(N){return this.mOneA?N.redNeg():this.a.redMul(N)},$.prototype._mulC=function(N){return this.oneC?N:this.c.redMul(N)},$.prototype.jpoint=function(N,I,T,P){return this.point(N,I,T,P)},$.prototype.pointFromX=function(N,I){(N=new D(N,16)).red||(N=N.toRed(this.red));var T=N.redSqr(),P=this.c2.redSub(this.a.redMul(T)),M=this.one.redSub(this.c2.redMul(this.d).redMul(T)),R=P.redMul(M.redInvm()),L=R.redSqrt();if(0!==L.redSqr().redSub(R).cmp(this.zero))throw Error("invalid point");var $=L.fromRed().isOdd();return(I&&!$||!I&&$)&&(L=L.redNeg()),this.point(N,L)},$.prototype.pointFromY=function(N,I){(N=new D(N,16)).red||(N=N.toRed(this.red));var T=N.redSqr(),P=T.redSub(this.c2),M=T.redMul(this.d).redMul(this.c2).redSub(this.a),R=P.redMul(M.redInvm());if(0===R.cmp(this.zero))if(!I)return this.point(this.zero,N);else throw Error("invalid point");var L=R.redSqrt();if(0!==L.redSqr().redSub(R).cmp(this.zero))throw Error("invalid point");return L.fromRed().isOdd()!==I&&(L=L.redNeg()),this.point(L,N)},$.prototype.validate=function(N){if(N.isInfinity())return!0;N.normalize();var I=N.x.redSqr(),T=N.y.redSqr(),P=I.redMul(this.a).redAdd(T),D=this.c2.redMul(this.one.redAdd(this.d.redMul(I).redMul(T)));return 0===P.cmp(D)},M(F,R.BasePoint),$.prototype.pointFromJSON=function(N){return F.fromJSON(this,N)},$.prototype.point=function(N,I,T,P){return new F(this,N,I,T,P)},F.fromJSON=function(N,I){return new F(N,I[0],I[1],I[2])},F.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},F.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},F.prototype._extDbl=function(){var N=this.x.redSqr(),I=this.y.redSqr(),T=this.z.redSqr();T=T.redIAdd(T);var P=this.curve._mulA(N),D=this.x.redAdd(this.y).redSqr().redISub(N).redISub(I),M=P.redAdd(I),R=M.redSub(T),L=P.redSub(I),$=D.redMul(R),F=M.redMul(L),B=D.redMul(L),U=R.redMul(M);return this.curve.point($,F,U,B)},F.prototype._projDbl=function(){var N,I,T,P=this.x.redAdd(this.y).redSqr(),D=this.x.redSqr(),M=this.y.redSqr();if(this.curve.twisted){var R=this.curve._mulA(D),L=R.redAdd(M);if(this.zOne)N=P.redSub(D).redSub(M).redMul(L.redSub(this.curve.two)),I=L.redMul(R.redSub(M)),T=L.redSqr().redSub(L).redSub(L);else{var $=this.z.redSqr(),F=L.redSub($).redISub($);N=P.redSub(D).redISub(M).redMul(F),I=L.redMul(R.redSub(M)),T=L.redMul(F)}}else{var R=D.redAdd(M),$=this.curve._mulC(this.z).redSqr(),F=R.redSub($).redSub($);N=this.curve._mulC(P.redISub(R)).redMul(F),I=this.curve._mulC(R).redMul(D.redISub(M)),T=R.redMul(F)}return this.curve.point(N,I,T)},F.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},F.prototype._extAdd=function(N){var I=this.y.redSub(this.x).redMul(N.y.redSub(N.x)),T=this.y.redAdd(this.x).redMul(N.y.redAdd(N.x)),P=this.t.redMul(this.curve.dd).redMul(N.t),D=this.z.redMul(N.z.redAdd(N.z)),M=T.redSub(I),R=D.redSub(P),L=D.redAdd(P),$=T.redAdd(I),F=M.redMul(R),B=L.redMul($),U=M.redMul($),H=R.redMul(L);return this.curve.point(F,B,H,U)},F.prototype._projAdd=function(N){var I,T,P=this.z.redMul(N.z),D=P.redSqr(),M=this.x.redMul(N.x),R=this.y.redMul(N.y),L=this.curve.d.redMul(M).redMul(R),$=D.redSub(L),F=D.redAdd(L),B=this.x.redAdd(this.y).redMul(N.x.redAdd(N.y)).redISub(M).redISub(R),U=P.redMul($).redMul(B);return this.curve.twisted?(I=P.redMul(F).redMul(R.redSub(this.curve._mulA(M))),T=$.redMul(F)):(I=P.redMul(F).redMul(R.redSub(M)),T=this.curve._mulC($).redMul(F)),this.curve.point(U,I,T)},F.prototype.add=function(N){return this.isInfinity()?N:N.isInfinity()?this:this.curve.extended?this._extAdd(N):this._projAdd(N)},F.prototype.mul=function(N){return this._hasDoubles(N)?this.curve._fixedNafMul(this,N):this.curve._wnafMul(this,N)},F.prototype.mulAdd=function(N,I,T){return this.curve._wnafMulAdd(1,[this,I],[N,T],2,!1)},F.prototype.jmulAdd=function(N,I,T){return this.curve._wnafMulAdd(1,[this,I],[N,T],2,!0)},F.prototype.normalize=function(){if(this.zOne)return this;var N=this.z.redInvm();return this.x=this.x.redMul(N),this.y=this.y.redMul(N),this.t&&(this.t=this.t.redMul(N)),this.z=this.curve.one,this.zOne=!0,this},F.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},F.prototype.getX=function(){return this.normalize(),this.x.fromRed()},F.prototype.getY=function(){return this.normalize(),this.y.fromRed()},F.prototype.eq=function(N){return this===N||0===this.getX().cmp(N.getX())&&0===this.getY().cmp(N.getY())},F.prototype.eqXToP=function(N){var I=N.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(I))return!0;for(var T=N.clone(),P=this.curve.redN.redMul(this.z);;){if(T.iadd(this.curve.n),T.cmp(this.curve.p)>=0)return!1;if(I.redIAdd(P),0===this.x.cmp(I))return!0}},F.prototype.toP=F.prototype.normalize,F.prototype.mixedAdd=F.prototype.add}
vendor: 6,442 bytes, line 1152
1152,7942:function(N,I,T){"use strict";var P=I;P.base=T(4285),P.short=T(2252),P.mont=T(5274),P.edwards=T(3546)},5274:function(N,I,T){"use strict";var P=T(5944),D=T(1638),M=T(4285),R=T(3355);function L(N){M.call(this,"mont",N),this.a=new P(N.a,16).toRed(this.red),this.b=new P(N.b,16).toRed(this.red),this.i4=new P(4).toRed(this.red).redInvm(),this.two=new P(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function $(N,I,T){M.BasePoint.call(this,N,"projective"),null===I&&null===T?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new P(I,16),this.z=new P(T,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}D(L,M),N.exports=L,L.prototype.validate=function(N){var I=N.normalize().x,T=I.redSqr(),P=T.redMul(I).redAdd(T.redMul(this.a)).redAdd(I);return 0===P.redSqrt().redSqr().cmp(P)},D($,M.BasePoint),L.prototype.decodePoint=function(N,I){return this.point(R.toArray(N,I),1)},L.prototype.point=function(N,I){return new $(this,N,I)},L.prototype.pointFromJSON=function(N){return $.fromJSON(this,N)},$.prototype.precompute=function(){},$.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},$.fromJSON=function(N,I){return new $(N,I[0],I[1]||N.one)},$.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},$.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},$.prototype.dbl=function(){var N=this.x.redAdd(this.z).redSqr(),I=this.x.redSub(this.z).redSqr(),T=N.redSub(I),P=N.redMul(I),D=T.redMul(I.redAdd(this.curve.a24.redMul(T)));return this.curve.point(P,D)},$.prototype.add=function(){throw Error("Not supported on Montgomery curve")},$.prototype.diffAdd=function(N,I){var T=this.x.redAdd(this.z),P=this.x.redSub(this.z),D=N.x.redAdd(N.z),M=N.x.redSub(N.z).redMul(T),R=D.redMul(P),L=I.z.redMul(M.redAdd(R).redSqr()),$=I.x.redMul(M.redISub(R).redSqr());return this.curve.point(L,$)},$.prototype.mul=function(N){for(var I=N.clone(),T=this,P=this.curve.point(null,null),D=this,M=[];0!==I.cmpn(0);I.iushrn(1))M.push(I.andln(1));for(var R=M.length-1;R>=0;R--)0===M[R]?(T=T.diffAdd(P,D),P=P.dbl()):(P=T.diffAdd(P,D),T=T.dbl());return P},$.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},$.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},$.prototype.eq=function(N){return 0===this.getX().cmp(N.getX())},$.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},$.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},2252:function(N,I,T){"use strict";var P=T(3355),D=T(5944),M=T(1638),R=T(4285),L=P.assert;function $(N){R.call(this,"short",N),this.a=new D(N.a,16).toRed(this.red),this.b=new D(N.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(N),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}function F(N,I,T,P){R.BasePoint.call(this,N,"affine"),null===I&&null===T?(this.x=null,this.y=null,this.inf=!0):(this.x=new D(I,16),this.y=new D(T,16),P&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function B(N,I,T,P){R.BasePoint.call(this,N,"jacobian"),null===I&&null===T&&null===P?(this.x=this.curve.one,this.y=this.curve.one,this.z=new D(0)):(this.x=new D(I,16),this.y=new D(T,16),this.z=new D(P,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}M($,R),N.exports=$,$.prototype._getEndomorphism=function(N){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){if(N.beta)I=new D(N.beta,16).toRed(this.red);else{var I,T,P,M=this._getEndoRoots(this.p);I=(I=0>M[0].cmp(M[1])?M[0]:M[1]).toRed(this.red)}if(N.lambda)T=new D(N.lambda,16);else{var R=this._getEndoRoots(this.n);0===this.g.mul(R[0]).x.cmp(this.g.x.redMul(I))?T=R[0]:(T=R[1],L(0===this.g.mul(T).x.cmp(this.g.x.redMul(I))))}return P=N.basis?N.basis.map(function(N){return{a:new D(N.a,16),b:new D(N.b,16)}}):this._getEndoBasis(T),{beta:I,lambda:T,basis:P}}},$.prototype._getEndoRoots=function(N){var I=N===this.p?this.red:D.mont(N),T=new D(2).toRed(I).redInvm(),P=T.redNeg(),M=new D(3).toRed(I).redNeg().redSqrt().redMul(T);return[P.redAdd(M).fromRed(),P.redSub(M).fromRed()]},$.prototype._getEndoBasis=function(N){for(var I,T,P,M,R,L,$,F,B,U=this.n.ushrn(Math.floor(this.n.bitLength()/2)),H=N,z=this.n.clone(),W=new D(1),q=new D(0),G=new D(0),K=new D(1),V=0;0!==H.cmpn(0);){var Y=z.div(H);F=z.sub(Y.mul(H)),B=G.sub(Y.mul(W));var J=K.sub(Y.mul(q));if(!P&&0>F.cmp(U))I=$.neg(),T=W,P=F.neg(),M=B;else if(P&&2==++V)break;$=F,z=H,H=F,G=W,W=B,K=q,q=J}R=F.neg(),L=B;var Q=P.sqr().add(M.sqr());return R.sqr().add(L.sqr()).cmp(Q)>=0&&(R=I,L=T),P.negative&&(P=P.neg(),M=M.neg()),R.negative&&(R=R.neg(),L=L.neg()),[{a:P,b:M},{a:R,b:L}]},$.prototype._endoSplit=function(N){var I=this.endo.basis,T=I[0],P=I[1],D=P.b.mul(N).divRound(this.n),M=T.b.neg().mul(N).divRound(this.n),R=D.mul(T.a),L=M.mul(P.a),$=D.mul(T.b),F=M.mul(P.b);return{k1:N.sub(R).sub(L),k2:$.add(F).neg()}},$.prototype.pointFromX=function(N,I){(N=new D(N,16)).red||(N=N.toRed(this.red));var T=N.redSqr().redMul(N).redIAdd(N.redMul(this.a)).redIAdd(this.b),P=T.redSqrt();if(0!==P.redSqr().redSub(T).cmp(this.zero))throw Error("invalid point");var M=P.fromRed().isOdd();return(I&&!M||!I&&M)&&(P=P.redNeg()),this.point(N,P)},$.prototype.validate=function(N){if(N.inf)return!0;var I=N.x,T=N.y,P=this.a.redMul(I),D=I.redSqr().redMul(I).redIAdd(P).redIAdd(this.b);return 0===T.redSqr().redISub(D).cmpn(0)},$.prototype._endoWnafMulAdd=function(N,I,T){for(var P=this._endoWnafT1,D=this._endoWnafT2,M=0;M<N.length;M++){var R=this._endoSplit(I[M]),L=N[M],$=L._getBeta();R.k1.negative&&(R.k1.ineg(),L=L.neg(!0)),R.k2.negative&&(R.k2.ineg(),$=$.neg(!0)),P[2*M]=L,P[2*M+1]=$,D[2*M]=R.k1,D[2*M+1]=R.k2}for(var F=this._wnafMulAdd(1,P,D,2*M,T),B=0;B<2*M;B++)P[B]=null,D[B]=null;return F},M(F,R.BasePoint),$.prototype.point=function(N,I,T){return new F(this,N,I,T)},$.prototype.pointFromJSON=function(N,I){return F.fromJSON(this,N,I)},F.prototype._getBeta=function(){if(this.curve.endo){var N=this.prec
vendor: 5,546 bytes, line 1152
1152omputed;if(N&&N.beta)return N.beta;var I=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(N){var T=this.curve,P=function(N){return T.point(N.x.redMul(T.endo.beta),N.y)};N.beta=I,I.precomputed={beta:null,naf:N.naf&&{wnd:N.naf.wnd,points:N.naf.points.map(P)},doubles:N.doubles&&{step:N.doubles.step,points:N.doubles.points.map(P)}}}return I}},F.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},F.fromJSON=function(N,I,T){"string"==typeof I&&(I=JSON.parse(I));var P=N.point(I[0],I[1],T);if(!I[2])return P;function D(I){return N.point(I[0],I[1],T)}var M=I[2];return P.precomputed={beta:null,doubles:M.doubles&&{step:M.doubles.step,points:[P].concat(M.doubles.points.map(D))},naf:M.naf&&{wnd:M.naf.wnd,points:[P].concat(M.naf.points.map(D))}},P},F.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},F.prototype.isInfinity=function(){return this.inf},F.prototype.add=function(N){if(this.inf)return N;if(N.inf)return this;if(this.eq(N))return this.dbl();if(this.neg().eq(N)||0===this.x.cmp(N.x))return this.curve.point(null,null);var I=this.y.redSub(N.y);0!==I.cmpn(0)&&(I=I.redMul(this.x.redSub(N.x).redInvm()));var T=I.redSqr().redISub(this.x).redISub(N.x),P=I.redMul(this.x.redSub(T)).redISub(this.y);return this.curve.point(T,P)},F.prototype.dbl=function(){if(this.inf)return this;var N=this.y.redAdd(this.y);if(0===N.cmpn(0))return this.curve.point(null,null);var I=this.curve.a,T=this.x.redSqr(),P=N.redInvm(),D=T.redAdd(T).redIAdd(T).redIAdd(I).redMul(P),M=D.redSqr().redISub(this.x.redAdd(this.x)),R=D.redMul(this.x.redSub(M)).redISub(this.y);return this.curve.point(M,R)},F.prototype.getX=function(){return this.x.fromRed()},F.prototype.getY=function(){return this.y.fromRed()},F.prototype.mul=function(N){return(N=new D(N,16),this.isInfinity())?this:this._hasDoubles(N)?this.curve._fixedNafMul(this,N):this.curve.endo?this.curve._endoWnafMulAdd([this],[N]):this.curve._wnafMul(this,N)},F.prototype.mulAdd=function(N,I,T){var P=[this,I],D=[N,T];return this.curve.endo?this.curve._endoWnafMulAdd(P,D):this.curve._wnafMulAdd(1,P,D,2)},F.prototype.jmulAdd=function(N,I,T){var P=[this,I],D=[N,T];return this.curve.endo?this.curve._endoWnafMulAdd(P,D,!0):this.curve._wnafMulAdd(1,P,D,2,!0)},F.prototype.eq=function(N){return this===N||this.inf===N.inf&&(this.inf||0===this.x.cmp(N.x)&&0===this.y.cmp(N.y))},F.prototype.neg=function(N){if(this.inf)return this;var I=this.curve.point(this.x,this.y.redNeg());if(N&&this.precomputed){var T=this.precomputed,P=function(N){return N.neg()};I.precomputed={naf:T.naf&&{wnd:T.naf.wnd,points:T.naf.points.map(P)},doubles:T.doubles&&{step:T.doubles.step,points:T.doubles.points.map(P)}}}return I},F.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},M(B,R.BasePoint),$.prototype.jpoint=function(N,I,T){return new B(this,N,I,T)},B.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var N=this.z.redInvm(),I=N.redSqr(),T=this.x.redMul(I),P=this.y.redMul(I).redMul(N);return this.curve.point(T,P)},B.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},B.prototype.add=function(N){if(this.isInfinity())return N;if(N.isInfinity())return this;var I=N.z.redSqr(),T=this.z.redSqr(),P=this.x.redMul(I),D=N.x.redMul(T),M=this.y.redMul(I.redMul(N.z)),R=N.y.redMul(T.redMul(this.z)),L=P.redSub(D),$=M.redSub(R);if(0===L.cmpn(0))if(0!==$.cmpn(0))return this.curve.jpoint(null,null,null);else return this.dbl();var F=L.redSqr(),B=F.redMul(L),U=P.redMul(F),H=$.redSqr().redIAdd(B).redISub(U).redISub(U),z=$.redMul(U.redISub(H)).redISub(M.redMul(B)),W=this.z.redMul(N.z).redMul(L);return this.curve.jpoint(H,z,W)},B.prototype.mixedAdd=function(N){if(this.isInfinity())return N.toJ();if(N.isInfinity())return this;var I=this.z.redSqr(),T=this.x,P=N.x.redMul(I),D=this.y,M=N.y.redMul(I).redMul(this.z),R=T.redSub(P),L=D.redSub(M);if(0===R.cmpn(0))if(0!==L.cmpn(0))return this.curve.jpoint(null,null,null);else return this.dbl();var $=R.redSqr(),F=$.redMul(R),B=T.redMul($),U=L.redSqr().redIAdd(F).redISub(B).redISub(B),H=L.redMul(B.redISub(U)).redISub(D.redMul(F)),z=this.z.redMul(R);return this.curve.jpoint(U,H,z)},B.prototype.dblp=function(N){if(0===N||this.isInfinity())return this;if(!N)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var I=this,T=0;T<N;T++)I=I.dbl();return I}for(var P=this.curve.a,D=this.curve.tinv,M=this.x,R=this.y,L=this.z,$=L.redSqr().redSqr(),F=R.redAdd(R),T=0;T<N;T++){var B=M.redSqr(),U=F.redSqr(),H=U.redSqr(),z=B.redAdd(B).redIAdd(B).redIAdd(P.redMul($)),W=M.redMul(U),q=z.redSqr().redISub(W.redAdd(W)),G=W.redISub(q),K=z.redMul(G);K=K.redIAdd(K).redISub(H);var V=F.redMul(L);T+1<N&&($=$.redMul(H)),M=q,L=V,F=K}return this.curve.jpoint(M,F.redMul(D),L)},B.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},B.prototype._zeroDbl=function(){if(this.zOne){var N,I,T,P=this.x.redSqr(),D=this.y.redSqr(),M=D.redSqr(),R=this.x.redAdd(D).redSqr().redISub(P).redISub(M);R=R.redIAdd(R);var L=P.redAdd(P).redIAdd(P),$=L.redSqr().redISub(R).redISub(R),F=M.redIAdd(M);
vendor: 8,051 bytes, line 1152
1152F=(F=F.redIAdd(F)).redIAdd(F),N=$,I=L.redMul(R.redISub($)).redISub(F),T=this.y.redAdd(this.y)}else{var B=this.x.redSqr(),U=this.y.redSqr(),H=U.redSqr(),z=this.x.redAdd(U).redSqr().redISub(B).redISub(H);z=z.redIAdd(z);var W=B.redAdd(B).redIAdd(B),q=W.redSqr(),G=H.redIAdd(H);G=(G=G.redIAdd(G)).redIAdd(G),N=q.redISub(z).redISub(z),I=W.redMul(z.redISub(N)).redISub(G),T=(T=this.y.redMul(this.z)).redIAdd(T)}return this.curve.jpoint(N,I,T)},B.prototype._threeDbl=function(){if(this.zOne){var N,I,T,P=this.x.redSqr(),D=this.y.redSqr(),M=D.redSqr(),R=this.x.redAdd(D).redSqr().redISub(P).redISub(M);R=R.redIAdd(R);var L=P.redAdd(P).redIAdd(P).redIAdd(this.curve.a),$=L.redSqr().redISub(R).redISub(R);N=$;var F=M.redIAdd(M);F=(F=F.redIAdd(F)).redIAdd(F),I=L.redMul(R.redISub($)).redISub(F),T=this.y.redAdd(this.y)}else{var B=this.z.redSqr(),U=this.y.redSqr(),H=this.x.redMul(U),z=this.x.redSub(B).redMul(this.x.redAdd(B));z=z.redAdd(z).redIAdd(z);var W=H.redIAdd(H),q=(W=W.redIAdd(W)).redAdd(W);N=z.redSqr().redISub(q),T=this.y.redAdd(this.z).redSqr().redISub(U).redISub(B);var G=U.redSqr();G=(G=(G=G.redIAdd(G)).redIAdd(G)).redIAdd(G),I=z.redMul(W.redISub(N)).redISub(G)}return this.curve.jpoint(N,I,T)},B.prototype._dbl=function(){var N=this.curve.a,I=this.x,T=this.y,P=this.z,D=P.redSqr().redSqr(),M=I.redSqr(),R=T.redSqr(),L=M.redAdd(M).redIAdd(M).redIAdd(N.redMul(D)),$=I.redAdd(I),F=($=$.redIAdd($)).redMul(R),B=L.redSqr().redISub(F.redAdd(F)),U=F.redISub(B),H=R.redSqr();H=(H=(H=H.redIAdd(H)).redIAdd(H)).redIAdd(H);var z=L.redMul(U).redISub(H),W=T.redAdd(T).redMul(P);return this.curve.jpoint(B,z,W)},B.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var N=this.x.redSqr(),I=this.y.redSqr(),T=this.z.redSqr(),P=I.redSqr(),D=N.redAdd(N).redIAdd(N),M=D.redSqr(),R=this.x.redAdd(I).redSqr().redISub(N).redISub(P),L=(R=(R=(R=R.redIAdd(R)).redAdd(R).redIAdd(R)).redISub(M)).redSqr(),$=P.redIAdd(P);$=($=($=$.redIAdd($)).redIAdd($)).redIAdd($);var F=D.redIAdd(R).redSqr().redISub(M).redISub(L).redISub($),B=I.redMul(F);B=(B=B.redIAdd(B)).redIAdd(B);var U=this.x.redMul(L).redISub(B);U=(U=U.redIAdd(U)).redIAdd(U);var H=this.y.redMul(F.redMul($.redISub(F)).redISub(R.redMul(L)));H=(H=(H=H.redIAdd(H)).redIAdd(H)).redIAdd(H);var z=this.z.redAdd(R).redSqr().redISub(T).redISub(L);return this.curve.jpoint(U,H,z)},B.prototype.mul=function(N,I){return N=new D(N,I),this.curve._wnafMul(this,N)},B.prototype.eq=function(N){if("affine"===N.type)return this.eq(N.toJ());if(this===N)return!0;var I=this.z.redSqr(),T=N.z.redSqr();if(0!==this.x.redMul(T).redISub(N.x.redMul(I)).cmpn(0))return!1;var P=I.redMul(this.z),D=T.redMul(N.z);return 0===this.y.redMul(D).redISub(N.y.redMul(P)).cmpn(0)},B.prototype.eqXToP=function(N){var I=this.z.redSqr(),T=N.toRed(this.curve.red).redMul(I);if(0===this.x.cmp(T))return!0;for(var P=N.clone(),D=this.curve.redN.redMul(I);;){if(P.iadd(this.curve.n),P.cmp(this.curve.p)>=0)return!1;if(T.redIAdd(D),0===this.x.cmp(T))return!0}},B.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},B.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},7736:function(N,I,T){"use strict";var P,D=I,M=T(8044),R=T(7942),L=T(3355).assert;function $(N){"short"===N.type?this.curve=new R.short(N):"edwards"===N.type?this.curve=new R.edwards(N):this.curve=new R.mont(N),this.g=this.curve.g,this.n=this.curve.n,this.hash=N.hash,L(this.g.validate(),"Invalid curve"),L(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function F(N,I){Object.defineProperty(D,N,{configurable:!0,enumerable:!0,get:function(){var T=new $(I);return Object.defineProperty(D,N,{configurable:!0,enumerable:!0,value:T}),T}})}D.PresetCurve=$,F("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:M.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),F("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:M.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),F("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:M.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),F("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:M.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),F("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:M.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),F("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:M.sha256,gRed:!1,g:["9"]}),F("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:M.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{P=T(5827)}catch(N){P=void 0}F("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:M.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"}
1152,{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",P]})},1039:function(N,I,T){"use strict";var P=T(5944),D=T(3730),M=T(3355),R=T(7736),L=T(4259),$=M.assert,F=T(2632),B=T(4233);function U(N){if(!(this instanceof U))return new U(N);"string"==typeof N&&($(R.hasOwnProperty(N),"Unknown curve "+N),N=R[N]),N instanceof R.PresetCurve&&(N={curve:N}),this.curve=N.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=N.curve.g,this.g.precompute(N.curve.n.bitLength()+1),this.hash=N.hash||N.curve.hash}N.exports=U,U.prototype.keyPair=function(N){return new F(this,N)},U.prototype.keyFromPrivate=function(N,I){return F.fromPrivate(this,N,I)},U.prototype.keyFromPublic=function(N,I){return F.fromPublic(this,N,I)},U.prototype.genKeyPair=function(N){N||(N={});for(var I=new D({hash:this.hash,pers:N.pers,persEnc:N.persEnc||"utf8",entropy:N.entropy||L(this.hash.hmacStrength),entropyEnc:N.entropy&&N.entropyEnc||"utf8",nonce:this.n.toArray()}),T=this.n.byteLength(),M=this.n.sub(new P(2));;){var R=new P(I.generate(T));if(!(R.cmp(M)>0))return R.iaddn(1),this.keyFromPrivate(R)}},U.prototype._truncateToN=function(N,I){var T=8*N.byteLength()-this.n.bitLength();return(T>0&&(N=N.ushrn(T)),!I&&N.cmp(this.n)>=0)?N.sub(this.n):N},U.prototype.sign=function(N,I,T,M){"object"==typeof T&&(M=T,T=null),M||(M={}),I=this.keyFromPrivate(I,T),N=this._truncateToN(new P(N,16));for(var R=this.n.byteLength(),L=I.getPrivate().toArray("be",R),$=N.toArray("be",R),F=new D({hash:this.hash,entropy:L,nonce:$,pers:M.pers,persEnc:M.persEnc||"utf8"}),U=this.n.sub(new P(1)),H=0;;H++){var z=M.k?M.k(H):new P(F.generate(this.n.byteLength()));if(0>=(z=this._truncateToN(z,!0)).cmpn(1)||z.cmp(U)>=0)continue;var W=this.g.mul(z);if(!W.isInfinity()){var q=W.getX(),G=q.umod(this.n);if(0!==G.cmpn(0)){var K=z.invm(this.n).mul(G.mul(I.getPrivate()).iadd(N));if(0!==(K=K.umod(this.n)).cmpn(0)){var V=!!W.getY().isOdd()|2*(0!==q.cmp(G));return M.canonical&&K.cmp(this.nh)>0&&(K=this.n.sub(K),V^=1),new B({r:G,s:K,recoveryParam:V})}}}}},U.prototype.verify=function(N,I,T,D){N=this._truncateToN(new P(N,16)),T=this.keyFromPublic(T,D);var M=(I=new B(I,"hex")).r,R=I.s;if(0>M.cmpn(1)||M.cmp(this.n)>=0||0>R.cmpn(1)||R.cmp(this.n)>=0)return!1;var L=R.invm(this.n),$=L.mul(N).umod(this.n),F=L.mul(M).umod(this.n);if(!this.curve._maxwellTrick){var U=this.g.mulAdd($,T.getPublic(),F);return!U.isInfinity()&&0===U.getX().umod(this.n).cmp(M)}var U=this.g.jmulAdd($,T.getPublic(),F);return!U.isInfinity()&&U.eqXToP(M)},U.prototype.recoverPubKey=function(N,I,T,D){$((3&T)===T,"The recovery param is more than two bits"),I=new B(I,D);var M=this.n,R=new P(N),L=I.r,F=I.s,U=1&T,H=T>>1;if(L.cmp(this.curve.p.umod(this.curve.n))>=0&&H)throw Error("Unable to find sencond key candinate");L=H?this.curve.pointFromX(L.add(this.curve.n),U):this.curve.pointFromX(L,U);var z=I.r.invm(M),W=M.sub(R).mul(z).umod(M),q=F.mul(z).umod(M);return this.g.mulAdd(W,L,q)},U.prototype.getKeyRecoveryParam=function(N,I,T,P){if(null!==(I=new B(I,P)).recoveryParam)return I.recoveryParam;for(var D,M=0;M<4;M++){try{D=this.recoverPubKey(N,I,M)}catch(N){continue}if(D.eq(T))return M}throw Error("Unable to find valid recovery factor")}},2632:function(N,I,T){"use strict";var P=T(5944),D=T(3355).assert;function M(N,I){this.ec=N,this.priv=null,this.pub=null,I.priv&&this._importPrivate(I.priv,I.privEnc),I.pub&&this._importPublic(I.pub,I.pubEnc)}N.exports=M,M.fromPublic=function(N,I,T){return I instanceof M?I:new M(N,{pub:I,pubEnc:T})},M.fromPrivate=function(N,I,T){return I instanceof M?I:new M(N,{priv:I,privEnc:T})},M.prototype.validate=function(){var N=this.getPublic();return N.isInfinity()?{result:!1,reason:"Invalid public key"}:N.validate()?N.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},M.prototype.getPublic=function(N,I){return("string"==typeof N&&(I=N,N=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),I)?this.pub.encode(I,N):this.pub},M.prototype.getPrivate=function(N){return"hex"===N?this.priv.toString(16,2):this.priv},M.prototype._importPrivate=function(N,I){this.priv=new P(N,I||16),this.priv=this.priv.umod(this.ec.curve.n)},M.prototype._importPublic=function(N,I){if(N.x||N.y){"mont"===this.ec.curve.type?D(N.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&D(N.x&&N.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(N.x,N.y);return}this.pub=this.ec.curve.decodePoint(N,I)},M.prototype.derive=function(N){return N.mul(this.priv).getX()},M.prototype.sign=function(N,I,T){return this.ec.sign(N,this,I,T)},M.prototype.verify=function(N,I){return this.ec.verify(N,I,this)},M.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},4233:function(N,I,T){"use strict";var P=T(5944),D=T(3355),M=D.assert;function R(N,I){if(N instanceof R)return N;this._importDER(N,I)||(M(N.r&&N.s,"Signature without r or s"),this.r=new P(N.r,16),this.s=new P(N.s,16),void 0===N.recoveryParam?this.recoveryParam=null:this.recoveryParam=N.recoveryParam)}function L(){this.place=0}function $(N,I){var T=N[I.place++];if(!(128&T))return T;var P=15&T;if(0===P||P>4)return!1;for(var D=0,M=0,R=I.place;M<P;M++,R++)D<<=8,D|=N[R],D>>>=0;return!(D<=127)&&(I.place=R,D)}function F(N){for(var I=0,T=N.length-1;!N[I]&&!(128&N[I+1])&&I<T;)I++;return 0===I?N:N.slice(I)}function B(N,I){if(I<128)return void N.push(I);var T=1+(Math.log(I)/Math.LN2>>>3);for(N.push(128|T);--T;)N.push(I>>>(T<<3)&255);N.push(I)}N.exports=R,R.prototype._importDER=function(N,I){N=D.toArray(N,I);var T=new L;if(48!==N[T.place++])return!1;var M=$(N,T);if(!1===M||M+T.place!==N.length||2!==N[T.place++])return!1;var R=$(N,T);if(!1===R)return!1;var F=N.slice(T.place,R+T.place);if(T.place+=R,2!==N[T.place++])return!1;var B=$(N,T);if(!1===B||N.length!==B+T.place)return!1;var U=N.slice(T.place,B+T.place);if(0===F[0])if(!(128&F[1]))return!1;else F=F.slice(1);if(0===U[0])if(!(128&U[1]))return!1;else U=U.slice(1);return this.r=new P(F),this.s=new P(U),this.recoveryParam=null,!0},R.prototype.toDER=function(N){var I=this.r.toArray(),T=this.s.toArray();
vendor: 4,240 bytes, line 1152
1152for(128&I[0]&&(I=[0].concat(I)),128&T[0]&&(T=[0].concat(T)),I=F(I),T=F(T);!T[0]&&!(128&T[1]);)T=T.slice(1);var P=[2];B(P,I.length),(P=P.concat(I)).push(2),B(P,T.length);var M=P.concat(T),R=[48];return B(R,M.length),R=R.concat(M),D.encode(R,N)}},4226:function(N,I,T){"use strict";var P=T(8044),D=T(7736),M=T(3355),R=M.assert,L=M.parseBytes,$=T(1101),F=T(2164);function B(N){if(R("ed25519"===N,"only tested with ed25519 so far"),!(this instanceof B))return new B(N);var N=D[N].curve;this.curve=N,this.g=N.g,this.g.precompute(N.n.bitLength()+1),this.pointClass=N.point().constructor,this.encodingLength=Math.ceil(N.n.bitLength()/8),this.hash=P.sha512}N.exports=B,B.prototype.sign=function(N,I){N=L(N);var T=this.keyFromSecret(I),P=this.hashInt(T.messagePrefix(),N),D=this.g.mul(P),M=this.encodePoint(D),R=this.hashInt(M,T.pubBytes(),N).mul(T.priv()),$=P.add(R).umod(this.curve.n);return this.makeSignature({R:D,S:$,Rencoded:M})},B.prototype.verify=function(N,I,T){N=L(N),I=this.makeSignature(I);var P=this.keyFromPublic(T),D=this.hashInt(I.Rencoded(),P.pubBytes(),N),M=this.g.mul(I.S());return I.R().add(P.pub().mul(D)).eq(M)},B.prototype.hashInt=function(){for(var N=this.hash(),I=0;I<arguments.length;I++)N.update(arguments[I]);return M.intFromLE(N.digest()).umod(this.curve.n)},B.prototype.keyFromPublic=function(N){return $.fromPublic(this,N)},B.prototype.keyFromSecret=function(N){return $.fromSecret(this,N)},B.prototype.makeSignature=function(N){return N instanceof F?N:new F(this,N)},B.prototype.encodePoint=function(N){var I=N.getY().toArray("le",this.encodingLength);return I[this.encodingLength-1]|=128*!!N.getX().isOdd(),I},B.prototype.decodePoint=function(N){var I=(N=M.parseBytes(N)).length-1,T=N.slice(0,I).concat(-129&N[I]),P=(128&N[I])!=0,D=M.intFromLE(T);return this.curve.pointFromY(D,P)},B.prototype.encodeInt=function(N){return N.toArray("le",this.encodingLength)},B.prototype.decodeInt=function(N){return M.intFromLE(N)},B.prototype.isPoint=function(N){return N instanceof this.pointClass}},1101:function(N,I,T){"use strict";var P=T(3355),D=P.assert,M=P.parseBytes,R=P.cachedProperty;function L(N,I){this.eddsa=N,this._secret=M(I.secret),N.isPoint(I.pub)?this._pub=I.pub:this._pubBytes=M(I.pub)}L.fromPublic=function(N,I){return I instanceof L?I:new L(N,{pub:I})},L.fromSecret=function(N,I){return I instanceof L?I:new L(N,{secret:I})},L.prototype.secret=function(){return this._secret},R(L,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),R(L,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),R(L,"privBytes",function(){var N=this.eddsa,I=this.hash(),T=N.encodingLength-1,P=I.slice(0,N.encodingLength);return P[0]&=248,P[T]&=127,P[T]|=64,P}),R(L,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),R(L,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),R(L,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),L.prototype.sign=function(N){return D(this._secret,"KeyPair can only verify"),this.eddsa.sign(N,this)},L.prototype.verify=function(N,I){return this.eddsa.verify(N,I,this)},L.prototype.getSecret=function(N){return D(this._secret,"KeyPair is public only"),P.encode(this.secret(),N)},L.prototype.getPublic=function(N){return P.encode(this.pubBytes(),N)},N.exports=L},2164:function(N,I,T){"use strict";var P=T(5944),D=T(3355),M=D.assert,R=D.cachedProperty,L=D.parseBytes;function $(N,I){this.eddsa=N,"object"!=typeof I&&(I=L(I)),Array.isArray(I)&&(I={R:I.slice(0,N.encodingLength),S:I.slice(N.encodingLength)}),M(I.R&&I.S,"Signature without R or S"),N.isPoint(I.R)&&(this._R=I.R),I.S instanceof P&&(this._S=I.S),this._Rencoded=Array.isArray(I.R)?I.R:I.Rencoded,this._Sencoded=Array.isArray(I.S)?I.S:I.Sencoded}R($,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),R($,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),R($,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),R($,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),$.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},$.prototype.toHex=function(){return D.encode(this.toBytes(),"hex").toUpperCase()},N.exports=$},5827:function(N){N
vendor: 18,403 bytes, line 1152
1152.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0
vendor: 7,734 bytes, line 1152
1152a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},
11523355:function(N,I,T){"use strict";var P=I,D=T(5944),M=T(7551),R=T(7356);function L(N){return"string"==typeof N?P.toArray(N,"hex"):N}P.assert=M,P.toArray=R.toArray,P.zero2=R.zero2,P.toHex=R.toHex,P.encode=R.encode,P.getNAF=function(N,I,T){var P=Array(Math.max(N.bitLength(),T)+1);P.fill(0);for(var D=1<<I+1,M=N.clone(),R=0;R<P.length;R++){var L,$=M.andln(D-1);M.isOdd()?(L=$>(D>>1)-1?(D>>1)-$:$,M.isubn(L)):L=0,P[R]=L,M.iushrn(1)}return P},P.getJSF=function(N,I){var T=[[],[]];N=N.clone(),I=I.clone();for(var P=0,D=0;N.cmpn(-P)>0||I.cmpn(-D)>0;){var M,R,L=N.andln(3)+P&3,$=I.andln(3)+D&3;if(3===L&&(L=-1),3===$&&($=-1),(1&L)==0)M=0;else{var F=N.andln(7)+P&7;M=(3===F||5===F)&&2===$?-L:L}if(T[0].push(M),(1&$)==0)R=0;else{var F=I.andln(7)+D&7;R=(3===F||5===F)&&2===L?-$:$}T[1].push(R),2*P===M+1&&(P=1-P),2*D===R+1&&(D=1-D),N.iushrn(1),I.iushrn(1)}return T},P.cachedProperty=function(N,I,T){var P="_"+I;N.prototype[I]=function(){return void 0!==this[P]?this[P]:this[P]=T.call(this)}},P.parseBytes=L,P.intFromLE=function(N){return new D(N,"hex","le")}},689:function(N,I,T){var P=T(5725).Buffer,D=T(3858);N.exports=function(N,I,T,M){if(P.isBuffer(N)||(N=P.from(N,"binary")),I&&(P.isBuffer(I)||(I=P.from(I,"binary")),8!==I.length))throw RangeError("salt should be Buffer with 8 byte length");for(var R=T/8,L=P.alloc(R),$=P.alloc(M||0),F=P.alloc(0);R>0||M>0;){var B=new D;B.update(F),B.update(N),I&&B.update(I),F=B.digest();var U=0;if(R>0){var H=L.length-R;U=Math.min(R,F.length),F.copy(L,H,0,U),R-=U}if(U<F.length&&M>0){var z=$.length-M,W=Math.min(M,F.length-U);F.copy($,z,U,U+W),M-=W}}return F.fill(0),{key:L,iv:$}}},2321:function(N,I,T){"use strict";var P=T(5725).Buffer,D=T(5486).Transform;function M(N,I){if(!P.isBuffer(N)&&"string"!=typeof N)throw TypeError(I+" must be a string or a buffer")}function R(N){D.call(this),this._block=P.allocUnsafe(N),this._blockSize=N,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}T(1638)(R,D),R.prototype._transform=function(N,I,T){var P=null;try{this.update(N,I)}catch(N){P=N}T(P)},R.prototype._flush=function(N){var I=null;try{this.push(this.digest())}catch(N){I=N}N(I)},R.prototype.update=function(N,I){if(M(N,"Data"),this._finalized)throw Error("Digest already called");P.isBuffer(N)||(N=P.from(N,I));for(var T=this._block,D=0;this._blockOffset+N.length-D>=this._blockSize;){for(var R=this._blockOffset;R<this._blockSize;)T[R++]=N[D++];this._update(),this._blockOffset=0}for(;D<N.length;)T[this._blockOffset++]=N[D++];for(var L=0,$=8*N.length;$>0;++L)this._length[L]+=$,($=this._length[L]/0x100000000|0)>0&&(this._length[L]-=0x100000000*$);return this},R.prototype._update=function(){throw Error("_update is not implemented")},R.prototype.digest=function(N){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var I=this._digest();void 0!==N&&(I=I.toString(N)),this._block.fill(0),this._blockOffset=0;for(var T=0;T<4;++T)this._length[T]=0;return I},R.prototype._digest=function(){throw Error("_digest is not implemented")},N.exports=R},8044:function(N,I,T){var P=I;P.utils=T(6302),P.common=T(1226),P.sha=T(4857),P.ripemd=T(9956),P.hmac=T(2184),P.sha1=P.sha.sha1,P.sha256=P.sha.sha256,P.sha224=P.sha.sha224,P.sha384=P.sha.sha384,P.sha512=P.
vendor: 10,492 bytes, line 1152
1152sha.sha512,P.ripemd160=P.ripemd.ripemd160},1226:function(N,I,T){"use strict";var P=T(6302),D=T(7551);function M(){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=M,M.prototype.update=function(N,I){if(N=P.toArray(N,I),this.pending?this.pending=this.pending.concat(N):this.pending=N,this.pendingTotal+=N.length,this.pending.length>=this._delta8){var T=(N=this.pending).length%this._delta8;this.pending=N.slice(N.length-T,N.length),0===this.pending.length&&(this.pending=null),N=P.join32(N,0,N.length-T,this.endian);for(var D=0;D<N.length;D+=this._delta32)this._update(N,D,D+this._delta32)}return this},M.prototype.digest=function(N){return this.update(this._pad()),D(null===this.pending),this._digest(N)},M.prototype._pad=function(){var N=this.pendingTotal,I=this._delta8,T=I-(N+this.padLength)%I,P=Array(T+this.padLength);P[0]=128;for(var D=1;D<T;D++)P[D]=0;if(N<<=3,"big"===this.endian){for(var M=8;M<this.padLength;M++)P[D++]=0;P[D++]=0,P[D++]=0,P[D++]=0,P[D++]=0,P[D++]=N>>>24&255,P[D++]=N>>>16&255,P[D++]=N>>>8&255,P[D++]=255&N}else for(P[D++]=255&N,P[D++]=N>>>8&255,P[D++]=N>>>16&255,P[D++]=N>>>24&255,P[D++]=0,P[D++]=0,P[D++]=0,P[D++]=0,M=8;M<this.padLength;M++)P[D++]=0;return P}},2184:function(N,I,T){"use strict";var P=T(6302),D=T(7551);function M(N,I,T){if(!(this instanceof M))return new M(N,I,T);this.Hash=N,this.blockSize=N.blockSize/8,this.outSize=N.outSize/8,this.inner=null,this.outer=null,this._init(P.toArray(I,T))}N.exports=M,M.prototype._init=function(N){N.length>this.blockSize&&(N=(new this.Hash).update(N).digest()),D(N.length<=this.blockSize);for(var I=N.length;I<this.blockSize;I++)N.push(0);for(I=0;I<N.length;I++)N[I]^=54;for(this.inner=(new this.Hash).update(N),I=0;I<N.length;I++)N[I]^=106;this.outer=(new this.Hash).update(N)},M.prototype.update=function(N,I){return this.inner.update(N,I),this},M.prototype.digest=function(N){return this.outer.update(this.inner.digest()),this.outer.digest(N)}},9956:function(N,I,T){"use strict";var P=T(6302),D=T(1226),M=P.rotl32,R=P.sum32,L=P.sum32_3,$=P.sum32_4,F=D.BlockHash;function B(){if(!(this instanceof B))return new B;F.call(this),this.h=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0],this.endian="little"}function U(N,I,T,P){return N<=15?I^T^P:N<=31?I&T|~I&P:N<=47?(I|~T)^P:N<=63?I&P|T&~P:I^(T|~P)}function H(N){return N<=15?0:N<=31?0x5a827999:N<=47?0x6ed9eba1:N<=63?0x8f1bbcdc:0xa953fd4e}function z(N){return N<=15?0x50a28be6:N<=31?0x5c4dd124:N<=47?0x6d703ef3:0x7a6d76e9*!!(N<=63)}P.inherits(B,F),I.ripemd160=B,B.blockSize=512,B.outSize=160,B.hmacStrength=192,B.padLength=64,B.prototype._update=function(N,I){for(var T=this.h[0],P=this.h[1],D=this.h[2],F=this.h[3],B=this.h[4],V=T,Y=P,J=D,Q=F,Z=B,X=0;X<80;X++){var ee=R(M($(T,U(X,P,D,F),N[W[X]+I],H(X)),G[X]),B);T=B,B=F,F=M(D,10),D=P,P=ee,ee=R(M($(V,U(79-X,Y,J,Q),N[q[X]+I],z(X)),K[X]),Z),V=Z,Z=Q,Q=M(J,10),J=Y,Y=ee}ee=L(this.h[1],D,Q),this.h[1]=L(this.h[2],F,Z),this.h[2]=L(this.h[3],B,V),this.h[3]=L(this.h[4],T,Y),this.h[4]=L(this.h[0],P,J),this.h[0]=ee},B.prototype._digest=function(N){return"hex"===N?P.toHex32(this.h,"little"):P.split32(this.h,"little")};var W=[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],q=[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],G=[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],K=[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]},4857:function(N,I,T){"use strict";I.sha1=T(2953),I.sha224=T(5334),I.sha256=T(5563),I.sha384=T(4811),I.sha512=T(5978)},2953:function(N,I,T){"use strict";var P=T(6302),D=T(1226),M=T(9101),R=P.rotl32,L=P.sum32,$=P.sum32_5,F=M.ft_1,B=D.BlockHash,U=[0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xca62c1d6];function H(){if(!(this instanceof H))return new H;B.call(this),this.h=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0],this.W=Array(80)}P.inherits(H,B),N.exports=H,H.blockSize=512,H.outSize=160,H.hmacStrength=80,H.padLength=64,H.prototype._update=function(N,I){for(var T=this.W,P=0;P<16;P++)T[P]=N[I+P];for(;P<T.length;P++)T[P]=R(T[P-3]^T[P-8]^T[P-14]^T[P-16],1);var D=this.h[0],M=this.h[1],B=this.h[2],H=this.h[3],z=this.h[4];for(P=0;P<T.length;P++){var W=~~(P/20),q=$(R(D,5),F(W,M,B,H),z,T[P],U[W]);z=H,H=B,B=R(M,30),M=D,D=q}this.h[0]=L(this.h[0],D),this.h[1]=L(this.h[1],M),this.h[2]=L(this.h[2],B),this.h[3]=L(this.h[3],H),this.h[4]=L(this.h[4],z)},H.prototype._digest=function(N){return"hex"===N?P.toHex32(this.h,"big"):P.split32(this.h,"big")}},5334:function(N,I,T){"use strict";var P=T(6302),D=T(5563);function M(){if(!(this instanceof M))return new M;D.call(this),this.h=[0xc1059ed8,0x367cd507,0x3070dd17,0xf70e5939,0xffc00b31,0x68581511,0x64f98fa7,0xbefa4fa4]}P.inherits(M,D),N.exports=M,M.blockSize=512,M.outSize=224,M.hmacStrength=192,M.padLength=64,M.prototype._digest=function(N){return"hex"===N?P.toHex32(this.h.slice(0,7),"big"):P.split32(this.h.slice(0,7),"big")}},5563:function(N,I,T){"use strict";var P=T(6302),D=T(1226),M=T(9101),R=T(7551),L=P.sum32,$=P.sum32_4,F=P.sum32_5,B=M.ch32,U=M.maj32,H=M.s0_256,z=M.s1_256,W=M.g0_256,q=M.g1_256,G=D.BlockHash,K=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2];function V(){if(!(this instanceof V))return new V;G.call(this),this.h=[0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19],this.k=K,this.W=Array(64)}P.inherits(V,G),N.exports=V,V.blockSize=512,V.outSize=256,V.hmacStrength=192,V.padLength=64,V.prototype._update=function(N,I){for(var T=this.W,P=0;P<16;P++)T[P]=N[I+P];for(;P<T.length;P++)T[P]=$(q(T[P-2]),T[P-7],W(T[P-15]),T[P-16]);var D=this.h[0],M=this.h[1],G=this.h[2],K=this.h[3],V=this.h[4],Y=this.h[5],J=this.h[6],Q=this.h[7];for(R(this.k.length===T.length),P=0;P<T.length;P++){var Z=F(Q,z(V),B(V,Y,J),this.k[P],T[P]),X=L(H(D),U(D,M,G));Q=J,J=Y,Y=V,V=L(K,Z),K=G,G=M,M=D,D=L(Z,X)}this.h[0]=L(this.h[0],D),this.h[1]=L(this.h[1],M),this.h[2]=L(this.h[2],G),this.h[3]=L(this.h[3],K),this.h[4]=L(this.h[4],V),this.h[5]=L(this.h[5],Y),this.h[6]=L(this.h[6],J),this.h[7]=L(this.h[7],Q)},V.prototype._digest=function(N){return"hex"===N?P.toHex32(this.h,"big"):P.split32(this.h,"big")}},4811:function(N,I,T){"use strict";var P=T(6302),D=T(5978);function M(){if(!(this instanceof M))return new M;D.call(this),this.h=[0xcbbb9d5d,0xc1059ed8,0x629a292a,0x367cd507,0x9159015a,0x3070dd17,0x152fecd8,0xf70e5939,0x67332667,0xffc00b31,0x8eb44a87,0x68581511,0xdb0c2e0d,0x64f98fa7,0x47b5481d,0xbefa4fa4]}P.inherits(M,D),N.exports=M,M.blockSize=1024,M.outSize=384,M.hmacStrength=192,M.padLength=128,M.prototype._digest=function(N){return"hex"===N?P.toHex32(this.h.slice(0,12),"big"):P.split32(this.h.slice(0,12),"big")}},5978:function(N,I,T){"use strict";var P=T(6302),D=T(1226),M=T(7551),R=P.rotr64_hi,L=P.rotr64_lo,$=P.shr64_hi,F=P.shr64_lo,B=P.sum64,U=P.sum64_hi,H=P.sum64_lo,z=P.sum64_4_hi,W=P.sum64_4_lo,q=P.sum64_5_hi,G=P.sum64_5_lo,K=D.BlockHash,V=[0x428a2f98,0xd728ae22,0x71374491,0x23ef65cd,0xb5c0fbcf,0xec4d3b2f,0xe9b5dba5,0x8189dbbc,0x3956c25b,0xf348b538,0x59f111f1,0xb605d019,0x923f82a4,0xaf194f9b,0xab1c5ed5,0xda6d8118,0xd807aa98,0xa3030242,0x12835b01,0x45706fbe,0x243185be,0x4ee4b28c,0x550c7dc3,0xd5ffb4e2,0x72be5d74,0xf27b896f,0x80deb1fe,0x3b1696b1,0x9bdc06a7,0x25c71235,0xc19bf174,0xcf692694,0xe49b69c1,0x9ef14ad2,0xefbe4786,0x384f25e3,0xfc19dc6,0x8b8cd5b5,0x240ca1cc,0x77ac9c65,0x2de92c6f,0x592b0275,0x4a7484aa,0x6ea6e483,0x5cb0a9dc,0xbd41fbd4,0x76f988da,0x831153b5,0x983e5152,0xee66dfab,0xa831c66d,0x2db43210,0xb00327c8,0x98fb213f,0xbf597fc7,0xbeef0ee4,0xc6e00bf3,0x3da88fc2,0xd5a79147,0x930aa725,0x6ca6351,0xe003826f,0x14292967,0xa0e6e70,0x27b70a85,0x46d22ffc,0x2e1b2138,0x5c26c926,0x4d2c6dfc,0x5ac42aed,0x53380d13,0x9d95b3df,0x650a7354,0x8baf63de,0x766a0abb,0x3c77b2a8,0x81c2c92e,0x47edaee6,0x92722c85,0x1482353b,0xa2bfe8a1,0x4cf10364,0xa81a664b,0xbc423001,0xc24b8b70,0xd0f89791,0xc76c51a3,0x654be30,0xd192e819,0xd6ef5218,0xd6990624,0x5565a910,0xf40e3585,0x5771202a,0x106aa070,0x32bbd1b8,0x19a4c116,0xb8d2d0c8,0x1e376c08,0x5141ab53,0x2748774c,0xdf8eeb99,0x34b0bcb5,0xe19b48a8,0x391c0cb3,0xc5c95a63,0x4ed8aa4a,0xe3418acb,0x5b9cca4f,0x7763e373,0x682e6ff3,0xd6b2b8a3,0x748f82ee,0x5defb2fc,0x78a5636f,0x43172f60,0x84c87814,0xa1f0ab72,0x8cc70208,0x1a6439ec,0x90befffa,0x23631e28,0xa4506ceb,0xde82bde9,0xbef9a3f7,0xb2c67915,0xc67178f2,0xe372532b,0xca273ece,0xea26619c,0xd186b8c7,0x21c0c207,0xeada7dd6,0xcde0eb1e,0xf57d4f7f,0xee6ed178,0x6f067aa,0x72176fba,0xa637dc5,0xa2c898a6,0x113f9804,0xbef90dae,0x1b710b35,0x131c471b,0x28db77f5,0x23047d84,0x32caab7b,0x40c72493,0x3c9ebe0a,0x15c9bebc,0x431d67c4,0x9c100d4c,0x4cc5d4be,0xcb3e42b6,0x597f299c,0xfc657e2a,0x5fcb6fab,0x3ad6faec,0x6c44198c,0x4a475817];function Y(){if(!(this instanceof Y))return new Y;K.call(this),this.h=[0x6a09e667,0xf3bcc908,0xbb67ae85,0x84caa73b,0x3c6ef372,0xfe94f82b,0xa54ff53a,0x5f1d36f1,0x510e527f,0xade682d1,0x9b05688c,0x2b3e6c1f,0x1f83d9ab,0xfb41bd6b,0x5be0cd19,0x137e2179],this.k=V,this.W=Array(160)}function J(N,I,T,P,D){var M=N&T^~N&D;return M<0&&(M+=0x100000000),M}function Q(N,I,T,P,D,M){var R=I&P^~I&M;return R<0&&(R+=0x100000000),R}function Z(N,I,T,P,D){var M=N&T^N&D^T&D;return M<0&&(M+=0x100000000),M}
1152function X(N,I,T,P,D,M){var R=I&P^I&M^P&M;return R<0&&(R+=0x100000000),R}function ee(N,I){var T=R(N,I,28)^R(I,N,2)^R(I,N,7);return T<0&&(T+=0x100000000),T}function et(N,I){var T=L(N,I,28)^L(I,N,2)^L(I,N,7);return T<0&&(T+=0x100000000),T}function er(N,I){var T=R(N,I,14)^R(N,I,18)^R(I,N,9);return T<0&&(T+=0x100000000),T}function en(N,I){var T=L(N,I,14)^L(N,I,18)^L(I,N,9);return T<0&&(T+=0x100000000),T}function ea(N,I){var T=R(N,I,1)^R(N,I,8)^$(N,I,7);return T<0&&(T+=0x100000000),T}function ei(N,I){var T=L(N,I,1)^L(N,I,8)^F(N,I,7);return T<0&&(T+=0x100000000),T}function eo(N,I){var T=R(N,I,19)^R(I,N,29)^$(N,I,6);return T<0&&(T+=0x100000000),T}function es(N,I){var T=L(N,I,19)^L(I,N,29)^F(N,I,6);return T<0&&(T+=0x100000000),T}P.inherits(Y,K),N.exports=Y,Y.blockSize=1024,Y.outSize=512,Y.hmacStrength=192,Y.padLength=128,Y.prototype._prepareBlock=function(N,I){for(var T=this.W,P=0;P<32;P++)T[P]=N[I+P];for(;P<T.length;P+=2){var D=eo(T[P-4],T[P-3]),M=es(T[P-4],T[P-3]),R=T[P-14],L=T[P-13],$=ea(T[P-30],T[P-29]),F=ei(T[P-30],T[P-29]),B=T[P-32],U=T[P-31];T[P]=z(D,M,R,L,$,F,B,U),T[P+1]=W(D,M,R,L,$,F,B,U)}},Y.prototype._update=function(N,I){this._prepareBlock(N,I);var T=this.W,P=this.h[0],D=this.h[1],R=this.h[2],L=this.h[3],$=this.h[4],F=this.h[5],z=this.h[6],W=this.h[7],K=this.h[8],V=this.h[9],Y=this.h[10],ea=this.h[11],ei=this.h[12],eo=this.h[13],es=this.h[14],el=this.h[15];M(this.k.length===T.length);for(var ec=0;ec<T.length;ec+=2){var eu=es,ed=el,ef=er(K,V),eh=en(K,V),ep=J(K,V,Y,ea,ei),em=Q(K,V,Y,ea,ei,eo),eg=this.k[ec],ey=this.k[ec+1],eb=T[ec],ev=T[ec+1],ew=q(eu,ed,ef,eh,ep,em,eg,ey,eb,ev),ex=G(eu,ed,ef,eh,ep,em,eg,ey,eb,ev);eu=ee(P,D),ed=et(P,D);var eA=U(eu,ed,ef=Z(P,D,R,L,$),eh=X(P,D,R,L,$,F)),eE=H(eu,ed,ef,eh);es=ei,el=eo,ei=Y,eo=ea,Y=K,ea=V,K=U(z,W,ew,ex),V=H(W,W,ew,ex),z=$,W=F,$=R,F=L,R=P,L=D,P=U(ew,ex,eA,eE),D=H(ew,ex,eA,eE)}B(this.h,0,P,D),B(this.h,2,R,L),B(this.h,4,$,F),B(this.h,6,z,W),B(this.h,8,K,V),B(this.h,10,Y,ea),B(this.h,12,ei,eo),B(this.h,14,es,el)},Y.prototype._digest=function(N){return"hex"===N?P.toHex32(this.h,"big"):P.split32(this.h,"big")}},9101:function(N,I,T){"use strict";var P=T(6302).rotr32;function D(N,I,T){return N&I^~N&T}function M(N,I,T){return N&I^N&T^I&T}function R(N,I,T){return N^I^T}I.ft_1=function(N,I,T,P){return 0===N?D(I,T,P):1===N||3===N?R(I,T,P):2===N?M(I,T,P):void 0},I.ch32=D,I.maj32=M,I.p32=R,I.s0_256=function(N){return P(N,2)^P(N,13)^P(N,22)},I.s1_256=function(N){return P(N,6)^P(N,11)^P(N,25)},I.g0_256=function(N){return P(N,7)^P(N,18)^N>>>3},I.g1_256=function(N){return P(N,17)^P(N,19)^N>>>10}},6302:function(N,I,T){"use strict";var P=T(7551);function D(N,I){return(64512&N.charCodeAt(I))==55296&&!(I<0)&&!(I+1>=N.length)&&(64512&N.charCodeAt(I+1))==56320}function M(N){return(N>>>24|N>>>8&65280|N<<8&0xff0000|(255&N)<<24)>>>0}function R(N){return 1===N.length?"0"+N:N}function L(N){if(7===N.length)return"0"+N;if(6===N.length)return"00"+N;if(5===N.length)return"000"+N;if(4===N.length)return"0000"+N;if(3===N.length)return"00000"+N;else if(2===N.length)return"000000"+N;else if(1===N.length)return"0000000"+N;else return N}I.inherits=T(1638),I.toArray=function(N,I){if(Array.isArray(N))return N.slice();if(!N)return[];var T=[];if("string"==typeof N)if(I){if("hex"===I)for((N=N.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(N="0"+N),M=0;M<N.length;M+=2)T.push(parseInt(N[M]+N[M+1],16))}else for(var P=0,M=0;M<N.length;M++){var R=N.charCodeAt(M);R<128?T[P++]=R:(R<2048?T[P++]=R>>6|192:(D(N,M)?(R=65536+((1023&R)<<10)+(1023&N.charCodeAt(++M)),T[P++]=R>>18|240,T[P++]=R>>12&63|128):T[P++]=R>>12|224,T[P++]=R>>6&63|128),T[P++]=63&R|128)}else for(M=0;M<N.length;M++)T[M]=0|N[M];return T},I.toHex=function(N){for(var I="",T=0;T<N.length;T++)I+=R(N[T].toString(16));return I},I.htonl=M,I.toHex32=function(N,I){for(var T="",P=0;P<N.length;P++){var D=N[P];"little"===I&&(D=M(D)),T+=L(D.toString(16))}return T},I.zero2=R,I.zero8=L,I.join32=function(N,I,T,D){var M,R=T-I;P(R%4==0);for(var L=Array(R/4),$=0,F=I;$<L.length;$++,F+=4)M="big"===D?N[F]<<24|N[F+1]<<16|N[F+2]<<8|N[F+3]:N[F+3]<<24|N[F+2]<<16|N[F+1]<<8|N[F],L[$]=M>>>0;return L},I.split32=function(N,I){for(var T=Array(4*N.length),P=0,D=0;P<N.length;P++,D+=4){var M=N[P];"big"===I?(T[D]=M>>>24,T[D+1]=M>>>16&255,T[D+2]=M>>>8&255,T[D+3]=255&M):(T[D+3]=M>>>24,T[D+2]=M>>>16&255,T[D+1]=M>>>8&255,T[D]=255&M)}return T},I.rotr32=function(N,I){return N>>>I|N<<32-I},I.rotl32=function(N,I){return N<<I|N>>>32-I},I.sum32=function(N,I){return N+I>>>0},I.sum32_3=function(N,I,T){return N+I+T>>>0},I.sum32_4=function(N,I,T,P){return N+I+T+P>>>0},I.sum32_5=function(N,I,T,P,D){return N+I+T+P+D>>>0},I.sum64=function(N,I,T,P){var D=N[I],M=P+N[I+1]>>>0,R=+(M<P)+T+D;N[I]=R>>>0,N[I+1]=M},I.sum64_hi=function(N,I,T,P){return+(I+P>>>0<I)+N+T>>>0},I.sum64_lo=function(N,I,T,P){return I+P>>>0},I.sum64_4_hi=function(N,I,T,P,D,M,R,L){var $,F=I;return N+T+D+R+($=0+ +((F=F+P>>>
vendor: 11,511 bytes, line 1152
11520)<I)+ +((F=F+M>>>0)<M)+ +((F=F+L>>>0)<L))>>>0},I.sum64_4_lo=function(N,I,T,P,D,M,R,L){return I+P+M+L>>>0},I.sum64_5_hi=function(N,I,T,P,D,M,R,L,$,F){var B,U=I;return N+T+D+R+$+(B=0+ +((U=U+P>>>0)<I)+ +((U=U+M>>>0)<M)+ +((U=U+L>>>0)<L)+ +((U=U+F>>>0)<F))>>>0},I.sum64_5_lo=function(N,I,T,P,D,M,R,L,$,F){return I+P+M+L+F>>>0},I.rotr64_hi=function(N,I,T){return(I<<32-T|N>>>T)>>>0},I.rotr64_lo=function(N,I,T){return(N<<32-T|I>>>T)>>>0},I.shr64_hi=function(N,I,T){return N>>>T},I.shr64_lo=function(N,I,T){return(N<<32-T|I>>>T)>>>0}},3730:function(N,I,T){"use strict";var P=T(8044),D=T(7356),M=T(7551);function R(N){if(!(this instanceof R))return new R(N);this.hash=N.hash,this.predResist=!!N.predResist,this.outLen=this.hash.outSize,this.minEntropy=N.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var I=D.toArray(N.entropy,N.entropyEnc||"hex"),T=D.toArray(N.nonce,N.nonceEnc||"hex"),P=D.toArray(N.pers,N.persEnc||"hex");M(I.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(I,T,P)}N.exports=R,R.prototype._init=function(N,I,T){var P=N.concat(I).concat(T);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var D=0;D<this.V.length;D++)this.K[D]=0,this.V[D]=1;this._update(P),this._reseed=1,this.reseedInterval=0x1000000000000},R.prototype._hmac=function(){return new P.hmac(this.hash,this.K)},R.prototype._update=function(N){var I=this._hmac().update(this.V).update([0]);N&&(I=I.update(N)),this.K=I.digest(),this.V=this._hmac().update(this.V).digest(),N&&(this.K=this._hmac().update(this.V).update([1]).update(N).digest(),this.V=this._hmac().update(this.V).digest())},R.prototype.reseed=function(N,I,T,P){"string"!=typeof I&&(P=T,T=I,I=null),N=D.toArray(N,I),T=D.toArray(T,P),M(N.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(N.concat(T||[])),this._reseed=1},R.prototype.generate=function(N,I,T,P){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof I&&(P=T,T=I,I=null),T&&(T=D.toArray(T,P||"hex"),this._update(T));for(var M=[];M.length<N;)this.V=this._hmac().update(this.V).digest(),M=M.concat(this.V);var R=M.slice(0,N);return this._update(T),this._reseed++,D.encode(R,I)}},1638:function(N){"function"==typeof Object.create?N.exports=function(N,I){I&&(N.super_=I,N.prototype=Object.create(I.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}))}:N.exports=function(N,I){if(I){N.super_=I;var T=function(){};T.prototype=I.prototype,N.prototype=new T,N.prototype.constructor=N}}},3858:function(N,I,T){"use strict";var P=T(1638),D=T(2321),M=T(5725).Buffer,R=Array(16);function L(){D.call(this,64),this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476}function $(N,I){return N<<I|N>>>32-I}function F(N,I,T,P,D,M,R){return $(N+(I&T|~I&P)+D+M|0,R)+I|0}function B(N,I,T,P,D,M,R){return $(N+(I&P|T&~P)+D+M|0,R)+I|0}function U(N,I,T,P,D,M,R){return $(N+(I^T^P)+D+M|0,R)+I|0}function H(N,I,T,P,D,M,R){return $(N+(T^(I|~P))+D+M|0,R)+I|0}P(L,D),L.prototype._update=function(){for(var N=R,I=0;I<16;++I)N[I]=this._block.readInt32LE(4*I);var T=this._a,P=this._b,D=this._c,M=this._d;T=F(T,P,D,M,N[0],0xd76aa478,7),M=F(M,T,P,D,N[1],0xe8c7b756,12),D=F(D,M,T,P,N[2],0x242070db,17),P=F(P,D,M,T,N[3],0xc1bdceee,22),T=F(T,P,D,M,N[4],0xf57c0faf,7),M=F(M,T,P,D,N[5],0x4787c62a,12),D=F(D,M,T,P,N[6],0xa8304613,17),P=F(P,D,M,T,N[7],0xfd469501,22),T=F(T,P,D,M,N[8],0x698098d8,7),M=F(M,T,P,D,N[9],0x8b44f7af,12),D=F(D,M,T,P,N[10],0xffff5bb1,17),P=F(P,D,M,T,N[11],0x895cd7be,22),T=F(T,P,D,M,N[12],0x6b901122,7),M=F(M,T,P,D,N[13],0xfd987193,12),D=F(D,M,T,P,N[14],0xa679438e,17),P=F(P,D,M,T,N[15],0x49b40821,22),T=B(T,P,D,M,N[1],0xf61e2562,5),M=B(M,T,P,D,N[6],0xc040b340,9),D=B(D,M,T,P,N[11],0x265e5a51,14),P=B(P,D,M,T,N[0],0xe9b6c7aa,20),T=B(T,P,D,M,N[5],0xd62f105d,5),M=B(M,T,P,D,N[10],0x2441453,9),D=B(D,M,T,P,N[15],0xd8a1e681,14),P=B(P,D,M,T,N[4],0xe7d3fbc8,20),T=B(T,P,D,M,N[9],0x21e1cde6,5),M=B(M,T,P,D,N[14],0xc33707d6,9),D=B(D,M,T,P,N[3],0xf4d50d87,14),P=B(P,D,M,T,N[8],0x455a14ed,20),T=B(T,P,D,M,N[13],0xa9e3e905,5),M=B(M,T,P,D,N[2],0xfcefa3f8,9),D=B(D,M,T,P,N[7],0x676f02d9,14),P=B(P,D,M,T,N[12],0x8d2a4c8a,20),T=U(T,P,D,M,N[5],0xfffa3942,4),M=U(M,T,P,D,N[8],0x8771f681,11),D=U(D,M,T,P,N[11],0x6d9d6122,16),P=U(P,D,M,T,N[14],0xfde5380c,23),T=U(T,P,D,M,N[1],0xa4beea44,4),M=U(M,T,P,D,N[4],0x4bdecfa9,11),D=U(D,M,T,P,N[7],0xf6bb4b60,16),P=U(P,D,M,T,N[10],0xbebfbc70,23),T=U(T,P,D,M,N[13],0x289b7ec6,4),M=U(M,T,P,D,N[0],0xeaa127fa,11),D=U(D,M,T,P,N[3],0xd4ef3085,16),P=U(P,D,M,T,N[6],0x4881d05,23),T=U(T,P,D,M,N[9],0xd9d4d039,4),M=U(M,T,P,D,N[12],0xe6db99e5,11),D=U(D,M,T,P,N[15],0x1fa27cf8,16),P=U(P,D,M,T,N[2],0xc4ac5665,23),T=H(T,P,D,M,N[0],0xf4292244,6),M=H(M,T,P,D,N[7],0x432aff97,10),D=H(D,M,T,P,N[14],0xab9423a7,15),P=H(P,D,M,T,N[5],0xfc93a039,21),T=H(T,P,D,M,N[12],0x655b59c3,6),M=H(M,T,P,D,N[3],0x8f0ccc92,10),D=H(D,M,T,P,N[10],0xffeff47d,15),P=H(P,D,M,T,N[1],0x85845dd1,21),T=H(T,P,D,M,N[8],0x6fa87e4f,6),M=H(M,T,P,D,N[15],0xfe2ce6e0,10),D=H(D,M,T,P,N[6],0xa3014314,15),P=H(P,D,M,T,N[13],0x4e0811a1,21),T=H(T,P,D,M,N[4],0xf7537e82,6),M=H(M,T,P,D,N[11],0xbd3af235,10),D=H(D,M,T,P,N[2],0x2ad7d2bb,15),P=H(P,D,M,T,N[9],0xeb86d391,21),this._a=this._a+T|0,this._b=this._b+P|0,this._c=this._c+D|0,this._d=this._d+M|0},L.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var N=M.allocUnsafe(16);return N.writeInt32LE(this._a,0),N.writeInt32LE(this._b,4),N.writeInt32LE(this._c,8),N.writeInt32LE(this._d,12),N},N.exports=L},6821:function(N,I,T){var P=T(5944),D=T(4259);function M(N){this.rand=N||new D.Rand}N.exports=M,M.create=function(N){return new M(N)},M.prototype._randbelow=function(N){var I=Math.ceil(N.bitLength()/8);do var T=new P(this.rand.generate(I));while(T.cmp(N)>=0);return T},M.prototype._randrange=function(N,I){var T=I.sub(N);return N.add(this._randbelow(T))},M.prototype.test=function(N,I,T){var D=N.bitLength(),M=P.mont(N),R=new P(1).toRed(M);I||(I=Math.max(1,D/48|0));for(var L=N.subn(1),$=0;!L.testn($);$++);for(var F=N.shrn($),B=L.toRed(M),U=!0;I>0;I--){var H=this._randrange(new P(2),L);T&&T(H);var z=H.toRed(M).redPow(F);if(0!==z.cmp(R)&&0!==z.cmp(B)){for(var W=1;W<$;W++){if(0===(z=z.redSqr()).cmp(R))return!1;if(0===z.cmp(B))break}if(W===$)return!1}}return U},M.prototype.getDivisor=function(N,I){var T=N.bitLength(),D=P.mont(N),M=new P(1).toRed(D);I||(I=Math.max(1,T/48|0));for(var R=N.subn(1),L=0;!R.testn(L);L++);for(var $=N.shrn(L),F=R.toRed(D);I>0;I--){var B=this._randrange(new P(2),R),U=N.gcd(B);if(0!==U.cmpn(1))return U;var H=B.toRed(D).redPow($);if(0!==H.cmp(M)&&0!==H.cmp(F)){for(var z=1;z<L;z++){if(0===(H=H.redSqr()).cmp(M))return H.fromRed().subn(1).gcd(N);if(0===H.cmp(F))break}if(z===L)return(H=H.redSqr()).fromRed().subn(1).gcd(N)}}return!1}},7551:function(N){function I(N,I){if(!N)throw Error(I||"Assertion failed")}N.exports=I,I.equal=function(N,I,T){if(N!=I)throw Error(T||"Assertion failed: "+N+" != "+I)}},7356:function(N,I){"use strict";var T=I;function P(N){return 1===N.length?"0"+N:N}function D(N){for(var I="",T=0;T<N.length;T++)I+=P(N[T].toString(16));return I}T.toArray=function(N,I){if(Array.isArray(N))return N.slice();if(!N)return[];var T=[];if("string"!=typeof N){for(var P=0;P<N.length;P++)T[P]=0|N[P];return T}if("hex"===I){(N=N.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(N="0"+N);for(var P=0;P<N.length;P+=2)T.push(parseInt(N[P]+N[P+1],16))}else for(var P=0;P<N.length;P++){var D=N.charCodeAt(P),M=D>>8,R=255&D;M?T.push(M,R):T.push(R)}return T},T.zero2=P,T.toHex=D,T.encode=function(N,I){return"hex"===I?D(N):N}},1907:function(N,I,T){"use strict";var P=T(9186);I.certificate=T(5627),I.RSAPrivateKey=P.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}),I.RSAPublicKey=P.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}),I.PublicKey=P.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(D),this.key("subjectPublicKey").bitstr())});var D=P.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())});I.PrivateKey=P.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(D),this.key("subjectPrivateKey").octstr())}),I.EncryptedPrivateKey=P.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}),I.DSAPrivateKey=P.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}),I.DSAparam=P.define("DSAparam",function(){this.int()}),I.ECPrivateKey=P.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(M),this.key("publicKey").optional().explicit(1).bitstr())});var M=P.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});I.signature=P.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},5627:function(N,I,T){"use strict";var P=T(9186),D=P.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),M=P.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),R=P.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),L=P.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(R),this.key("subjectPublicKey").bitstr())}),$=P.define("RelativeDistinguishedName",function(){this.setof(M)}),F=P.define("RDNSequence",function(){this.seqof($)}),B=P.define("Name",function(){this.choice({rdnSequence:this.use(F)})}),U=P.define("Validity",function(){this.seq().obj(this.key("notBefore").use(D),this.key("notAfter").use(D))}),H=P.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),z=P.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(R),this.key("issuer").use(B),this.key("validity").use(U),this.key("subject").use(B),this.key("subjectPublicKeyInfo").use(L),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(H).optional())});
1152N.exports=P.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(z),this.key("signatureAlgorithm").use(R),this.key("signatureValue").bitstr())})},4059:function(N,I,T){var P=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r\+\/\=]+)[\n\r]+/m,D=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,M=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,R=T(689),L=T(8642),$=T(5725).Buffer;N.exports=function(N,I){var T,F=N.toString(),B=F.match(P);if(B){var U="aes"+B[1],H=$.from(B[2],"hex"),z=$.from(B[3].replace(/[\r\n]/g,""),"base64"),W=R(I,H.slice(0,8),parseInt(B[1],10)).key,q=[],G=L.createDecipheriv(U,W,H);q.push(G.update(z)),q.push(G.final()),T=$.concat(q)}else T=new $(F.match(M)[2].replace(/[\r\n]/g,""),"base64");return{tag:F.match(D)[1],data:T}}},8012:function(N,I,T){var P=T(1907),D=T(7016),M=T(4059),R=T(8642),L=T(4542),$=T(5725).Buffer;function F(N){"object"!=typeof N||$.isBuffer(N)||(I=N.passphrase,N=N.key),"string"==typeof N&&(N=$.from(N));var I,T,D,R=M(N,I),L=R.tag,F=R.data;switch(L){case"CERTIFICATE":D=P.certificate.decode(F,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(!D&&(D=P.PublicKey.decode(F,"der")),T=D.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return P.RSAPublicKey.decode(D.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return D.subjectPrivateKey=D.subjectPublicKey,{type:"ec",data:D};case"1.2.840.10040.4.1":return D.algorithm.params.pub_key=P.DSAparam.decode(D.subjectPublicKey.data,"der"),{type:"dsa",data:D.algorithm.params};default:throw Error("unknown key id "+T)}case"ENCRYPTED PRIVATE KEY":F=B(F=P.EncryptedPrivateKey.decode(F,"der"),I);case"PRIVATE KEY":switch(T=(D=P.PrivateKey.decode(F,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return P.RSAPrivateKey.decode(D.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:D.algorithm.curve,privateKey:P.ECPrivateKey.decode(D.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return D.algorithm.params.priv_key=P.DSAparam.decode(D.subjectPrivateKey,"der"),{type:"dsa",params:D.algorithm.params};default:throw Error("unknown key id "+T)}case"RSA PUBLIC KEY":return P.RSAPublicKey.decode(F,"der");case"RSA PRIVATE KEY":return P.RSAPrivateKey.decode(F,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:P.DSAPrivateKey.decode(F,"der")};case"EC PRIVATE KEY":return{curve:(F=P.ECPrivateKey.decode(F,"der")).parameters.value,privateKey:F.privateKey};default:throw Error("unknown key type "+L)}}function B(N,I){var T=N.algorithm.decrypt.kde.kdeparams.salt,P=parseInt(N.algorithm.decrypt.kde.kdeparams.iters.toString(),10),M=D[N.algorithm.decrypt.cipher.algo.join(".")],F=N.algorithm.decrypt.cipher.iv,B=N.subjectPrivateKey,U=parseInt(M.split("-")[1],10)/8,H=L.pbkdf2Sync(I,T,P,U,"sha1"),z=R.createDecipheriv(M,H,F),W=[];return W.push(z.update(B)),W.push(z.final()),$.concat(W)}N.exports=F,F.signature=P.signature},4542:function(N,I,T){var P=T(6982),D=T(4410),M=T(741),R=T(508);function L(N,I,T,L,$,F){if(D(T,L),N=R(N,M,"Password"),I=R(I,M,"Salt"),"function"==typeof $&&(F=$,$="sha1"),"function"!=typeof F)throw Error("No callback provided to pbkdf2");return P.pbkdf2(N,I,T,L,$,F)}function $(N,I,T,L,$){return D(T,L),N=R(N,M,"Password"),I=R(I,M,"Salt"),$=$||"sha1",P.pbkdf2Sync(N,I,T,L,$)}P.pbkdf2Sync&&-1!==P.pbkdf2Sync.toString().indexOf("keylen, digest")?(I.pbkdf2Sync=$,I.pbkdf2=L):(I.pbkdf2Sync=T(8291),I.pbkdf2=T(9958))},9958:function(N,I,P){var D,R=P(5725).Buffer,L=P(4410),$=P(741),F=P(8291),B=P(508),U=T.g.crypto&&T.g.crypto.subtle,H={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},z=[];function W(N){if(T.g.process&&!T.g.process.browser||!U||!U.importKey||!U.deriveBits)return Promise.resolve(!1);if(void 0!==z[N])return z[N];var I=q(D=D||R.alloc(8),D,10,128,N).then(function(){return!0}).catch(function(){return!1});return z[N]=I,I}function q(N,I,T,P,D){return U.importKey("raw",N,{name:"PBKDF2"},!1,["deriveBits"]).then(function(N){return U.deriveBits({name:"PBKDF2",salt:I,iterations:T,hash:{name:D}},N,P<<3)}).then(function(N){return R.from(N)})}function G(N,I){N.then(function(N){M.nextTick(function(){I(null,N)})},function(N){M.nextTick(function(){I(N)})})}N.exports=function(N,I,P,D,R,U){"function"==typeof R&&(U=R,R=void 0);var z=H[(R=R||"sha1").toLowerCase()];if(!z||"function"!=typeof T.g.Promise)return M.nextTick(function(){var T;try{T=F(N,I,P,D,R)}catch(N){return U(N)}U(null,T)});if(L(P,D),N=B(N,$,"Password"),I=B(I,$,"Salt"),"function"!=typeof U)throw Error("No callback provided to pbkdf2");G(W(z).then(function(T){return T?q(N,I,P,D,z):F(N,I,P,D,R)}),U)}},741:function(N){N.exports="utf-8"},4410:function(N){var I=0x3fffffff;N.exports=function(N,T){if("number"!=typeof N)throw TypeError("Iterations not a number");if(N<0)throw TypeError("Bad iterations");
1152if("number"!=typeof T)throw TypeError("Key length not a number");if(T<0||T>I||T!=T)throw TypeError("Bad key length")}},8291:function(N,I,T){var P={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20},D=T(3256),M=T(5725).Buffer,R=T(4410),L=T(741),$=T(508);N.exports=function(N,I,T,F,B){R(T,F),N=$(N,L,"Password"),I=$(I,L,"Salt"),B=B||"sha1";var U=M.allocUnsafe(F),H=M.allocUnsafe(I.length+4);I.copy(H,0,0,I.length);for(var z=0,W=P[B],q=Math.ceil(F/W),G=1;G<=q;G++){H.writeUInt32BE(G,I.length);for(var K=D(B,N).update(H).digest(),V=K,Y=1;Y<T;Y++){V=D(B,N).update(V).digest();for(var J=0;J<W;J++)K[J]^=V[J]}K.copy(U,z),z+=W}return U}},508:function(N,I,T){var P=T(5725).Buffer;N.exports=function(N,I,T){if(P.isBuffer(N))return N;if("string"==typeof N)return P.from(N,I);if(ArrayBuffer.isView(N))return P.from(N.buffer);throw TypeError(T+" must be a string, a Buffer, a typed array or a DataView")}},6734:function(N,I,T){I.publicEncrypt=T(6480),I.privateDecrypt=T(8284),I.privateEncrypt=function(N,T){return I.publicEncrypt(N,T,!0)},I.publicDecrypt=function(N,T){return I.privateDecrypt(N,T,!0)}},6228:function(N,I,T){var P=T(762),D=T(5725).Buffer;function M(N){var I=D.allocUnsafe(4);return I.writeUInt32BE(N,0),I}N.exports=function(N,I){for(var T,R=D.alloc(0),L=0;R.length<I;)T=M(L++),R=D.concat([R,P("sha1").update(N).update(T).digest()]);return R.slice(0,I)}},8284:function(N,I,T){var P=T(8012),D=T(6228),M=T(8723),R=T(5944),L=T(640),$=T(762),F=T(5037),B=T(5725).Buffer;function U(N,I){var T=N.modulus.byteLength(),P=$("sha1").update(B.alloc(0)).digest(),R=P.length;if(0!==I[0])throw Error("decryption error");var L=I.slice(1,R+1),F=I.slice(R+1),U=M(L,D(F,R)),H=M(F,D(U,T-R-1));if(z(P,H.slice(0,R)))throw Error("decryption error");for(var W=R;0===H[W];)W++;if(1!==H[W++])throw Error("decryption error");return H.slice(W)}function H(N,I,T){for(var P=I.slice(0,2),D=2,M=0;0!==I[D++];)if(D>=I.length){M++;break}var R=I.slice(2,D-1);if(("0002"!==P.toString("hex")&&!T||"0001"!==P.toString("hex")&&T)&&M++,R.length<8&&M++,M)throw Error("decryption error");return I.slice(D)}function z(N,I){N=B.from(N),I=B.from(I);var T=0,P=N.length;N.length!==I.length&&(T++,P=Math.min(N.length,I.length));for(var D=-1;++D<P;)T+=N[D]^I[D];return T}N.exports=function(N,I,T){var D,M=N.padding?N.padding:T?1:4,$=P(N),z=$.modulus.byteLength();if(I.length>z||new R(I).cmp($.modulus)>=0)throw Error("decryption error");D=T?F(new R(I),$):L(I,$);var W=B.alloc(z-D.length);if(D=B.concat([W,D],z),4===M)return U($,D);if(1===M)return H($,D,T);if(3===M)return D;throw Error("unknown padding")}},6480:function(N,I,T){var P=T(8012),D=T(376),M=T(762),R=T(6228),L=T(8723),$=T(5944),F=T(5037),B=T(640),U=T(5725).Buffer;function H(N,I){var T=N.modulus.byteLength(),P=I.length,F=M("sha1").update(U.alloc(0)).digest(),B=F.length,H=2*B;if(P>T-H-2)throw Error("message too long");var z=U.alloc(T-P-H-2),W=T-B-1,q=D(B),G=L(U.concat([F,z,U.alloc(1,1),I],W),R(q,W)),K=L(q,R(G,B));return new $(U.concat([U.alloc(1),K,G],T))}function z(N,I,T){var P,D=I.length,M=N.modulus.byteLength();if(D>M-11)throw Error("message too long");return P=T?U.alloc(M-D-3,255):W(M-D-3),new $(U.concat([U.from([0,T?1:2]),P,U.alloc(1),I],M))}function W(N){for(var I,T=U.allocUnsafe(N),P=0,M=D(2*N),R=0;P<N;)R===M.length&&(M=D(2*N),R=0),(I=M[R++])&&(T[P++]=I);return T}N.exports=function(N,I,T){var D,M=N.padding?N.padding:T?1:4,R=P(N);if(4===M)D=H(R,I);else if(1===M)D=z(R,I,T);else if(3===M){if((D=new $(I)).cmp(R.modulus)>=0)throw Error("data too long for modulus")}else throw Error("unknown padding");return T?B(D,R):F(D,R)}},5037:function(N,I,T){var P=T(5944),D=T(5725).Buffer;N.exports=function(N,I){return D.from(N.toRed(P.mont(I.modulus)).redPow(new P(I.publicExponent)).fromRed().toArray())}},8723:function(N){N.exports=function(N,I){for(var T=N.length,P=-1;++P<T;)N[P]^=I[P];return N}},376:function(N,I,P){"use strict";var D=65536,R=0xffffffff;function L(){throw Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}var $=P(5725).Buffer,F=T.g.crypto||T.g.msCrypto;function B(N,I){if(N>R)throw RangeError("requested too many random bytes");var T=$.allocUnsafe(N);if(N>0)if(N>D)for(var P=0;P<N;P+=D)F.getRandomValues(T.slice(P,P+D));else F.getRandomValues(T);return"function"==typeof I?M.nextTick(function(){I(null,T)}):T}F&&F.getRandomValues?N.exports=B:N.exports=L},236:function(N,I,P){"use strict";function D(){throw Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var R=P(5725);P(376);var L=R.Buffer,$=R.kMaxLength,F=T.g.crypto||T.g.msCrypto,B=0xffffffff;function U(N,I){if("number"!=typeof N||N!=N)throw TypeError("offset must be a number");if(N>B||N<0)throw TypeError("offset must be a uint32");if(N>$||N>I)throw RangeError("offset out of range")}function H(N,I,T){if("number"!=typeof N||N!=N)throw TypeError("size must be a number");if(N>B||N<0)throw TypeError("size must be a uint32");if(N+I>T||N>$)throw RangeError("buffer too small")}function z(N,I,P,D){if(!L.isBuffer(N)&&!(N instanceof T.g.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof I)D=I,I=0,P=N.length;else if("function"==typeof P)D=P,P=N.length-I;else if("function"!=typeof D)throw TypeError('"cb" argument must be a function');return U(I,N.length),H(P,I,N.length),W(N,I,P,D)}function W(N,I,T,P){var D=new Uint8Array(N.buffer,I,T);return(F.getRandomValues(D),P)?void M.nextTick(function(){P(null,N)}):N}function q(N,I,P){if(void 0===I&&(I=0),!L.isBuffer(N)&&!(N instanceof T.g.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');return U(I,N.length),void 0===P&&(P=N.length-I),H(P,I,N.length),W(N,I,P)}F&&F.getRandomValues?(I.randomFill=z,I.randomFillSync=q):(I.randomFill=D,I.randomFillSync=D)},4329:function(N){"use strict";let I={};function T(N,T,P){function D(N,I,P){return"string"==typeof T?T:T(N,I,P)}P||(P=Error);class M extends P{constructor(N,I,T){super(D(N,I,T))}}M.prototype.name=P.name,M.prototype.code=N,I[N]=M}function P(N,I){if(!Array.isArray(N))return`of ${I} ${String(N)}`;{let T=N.length;return(N=N.map(N=>String(N)),T>2)?`one of ${I} ${N.slice(0,T-1).join(", ")}, or `+N[T-1]:2===T?`one of ${I} ${N[0]} or ${N[1]}`:`of ${I} ${N[0]}`}}function D(N,I,T){return N.substr(!T||T<0?0:+T,I.length)===I}function M(N,I,T){return(void 0===T||T>N.length)&&(T=N.length),N.substring(T-I.length,T)===I}function R(N,I,T){return"number"!=typeof T&&(T=0),!(T+I.length>N.length)&&-1!==N.indexOf(I,T)}T("ERR_INVALID_OPT_VALUE",function(N,I){return'The value "'+I+'" is invali
1152d for option "'+N+'"'},TypeError),T("ERR_INVALID_ARG_TYPE",function(N,I,T){let L,$;if("string"==typeof I&&D(I,"not ")?(L="must not be",I=I.replace(/^not /,"")):L="must be",M(N," argument"))$=`The ${N} ${L} ${P(I,"type")}`;else{let T=R(N,".")?"property":"argument";$=`The "${N}" ${T} ${L} ${P(I,"type")}`}return $+`. Received type ${typeof T}`},TypeError),T("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),T("ERR_METHOD_NOT_IMPLEMENTED",function(N){return"The "+N+" method is not implemented"}),T("ERR_STREAM_PREMATURE_CLOSE","Premature close"),T("ERR_STREAM_DESTROYED",function(N){return"Cannot call "+N+" after a stream was destroyed"}),T("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),T("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),T("ERR_STREAM_WRITE_AFTER_END","write after end"),T("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),T("ERR_UNKNOWN_ENCODING",function(N){return"Unknown encoding: "+N},TypeError),T("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),N.exports.F=I},8686:function(N,I,T){"use strict";var P=Object.keys||function(N){var I=[];for(var T in N)I.push(T);return I};N.exports=B;var D=T(7276),R=T(4732);T(1638)(B,D);for(var L=P(R.prototype),$=0;$<L.length;$++){var F=L[$];B.prototype[F]||(B.prototype[F]=R.prototype[F])}function B(N){if(!(this instanceof B))return new B(N);D.call(this,N),R.call(this,N),this.allowHalfOpen=!0,N&&(!1===N.readable&&(this.readable=!1),!1===N.writable&&(this.writable=!1),!1===N.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",U)))}function U(){this._writableState.ended||M.nextTick(H,this)}function H(N){N.end()}Object.defineProperty(B.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(B.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(B.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(B.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(N){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=N,this._writableState.destroyed=N)}})},5512:function(N,I,T){"use strict";N.exports=D;var P=T(586);function D(N){if(!(this instanceof D))return new D(N);P.call(this,N)}T(1638)(D,P),D.prototype._transform=function(N,I,T){T(null,N)}},7276:function(N,I,P){"use strict";N.exports=ei,ei.ReadableState=ea,P(4434).EventEmitter;var D,R,L,$,F,B=function(N,I){return N.listeners(I).length},U=P(5120),H=P(181).Buffer,z=T.g.Uint8Array||function(){};function W(N){return H.from(N)}function q(N){return H.isBuffer(N)||N instanceof z}var G=P(9023);R=G&&G.debuglog?G.debuglog("stream"):function(){};var K=P(1137),V=P(2528),Y=P(771).getHighWaterMark,J=P(4329).F,Q=J.ERR_INVALID_ARG_TYPE,Z=J.ERR_STREAM_PUSH_AFTER_EOF,X=J.ERR_METHOD_NOT_IMPLEMENTED,ee=J.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;P(1638)(ei,U);var et=V.errorOrDestroy,er=["error","close","destroy","pause","resume"];function en(N,I,T){if("function"==typeof N.prependListener)return N.prependListener(I,T);N._events&&N._events[I]?Array.isArray(N._events[I])?N._events[I].unshift(T):N._events[I]=[T,N._events[I]]:N.on(I,T)}function ea(N,I,T){D=D||P(8686),N=N||{},"boolean"!=typeof T&&(T=I instanceof D),this.objectMode=!!N.objectMode,T&&(this.objectMode=this.objectMode||!!N.readableObjectMode),this.highWaterMark=Y(this,N,"readableHighWaterMark",T),this.buffer=new K,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==N.emitClose,this.autoDestroy=!!N.autoDestroy,this.destroyed=!1,this.defaultEncoding=N.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,N.encoding&&(L||(L=P(7319).I),this.decoder=new L(N.encoding),this.encoding=N.encoding)}function ei(N){if(D=D||P(8686),!(this instanceof ei))return new ei(N);var I=this instanceof D;this._readableState=new ea(N,this,I),this.readable=!0,N&&("function"==typeof N.read&&(this._read=N.read),"function"==typeof N.destroy&&(this._destroy=N.destroy)),U.call(this)}function eo(N,I,T,P,D){R("readableAddChunk",I);var M,L=N._readableState;if(null===I)L.reading=!1,ef(N,L);else if(D||(M=el(L,I)),M)et(N,M);else if(L.objectMode||I&&I.length>0)if("string"==typeof I||L.objectMode||Object.getPrototypeOf(I)===H.prototype||(I=W(I)),P)L.endEmitted?et(N,new ee):es(N,L,I,!0);else if(L.ended)et(N,new Z);else{if(L.destroyed)return!1;L.reading=!1,L.decoder&&!T?(I=L.decoder.write(I),L.objectMode||0!==I.length?es(N,L,I,!1):em(N,L)):es(N,L,I,!1)}else P||(L.reading=!1,em(N,L));return!L.ended&&(L.length<L.highWaterMark||0===L.length)}
vendor: 4,901 bytes, line 1152
1152function es(N,I,T,P){I.flowing&&0===I.length&&!I.sync?(I.awaitDrain=0,N.emit("data",T)):(I.length+=I.objectMode?1:T.length,P?I.buffer.unshift(T):I.buffer.push(T),I.needReadable&&eh(N)),em(N,I)}function el(N,I){var T;return q(I)||"string"==typeof I||void 0===I||N.objectMode||(T=new Q("chunk",["string","Buffer","Uint8Array"],I)),T}Object.defineProperty(ei.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(N){this._readableState&&(this._readableState.destroyed=N)}}),ei.prototype.destroy=V.destroy,ei.prototype._undestroy=V.undestroy,ei.prototype._destroy=function(N,I){I(N)},ei.prototype.push=function(N,I){var T,P=this._readableState;return P.objectMode?T=!0:"string"==typeof N&&((I=I||P.defaultEncoding)!==P.encoding&&(N=H.from(N,I),I=""),T=!0),eo(this,N,I,!1,T)},ei.prototype.unshift=function(N){return eo(this,N,null,!0,!1)},ei.prototype.isPaused=function(){return!1===this._readableState.flowing},ei.prototype.setEncoding=function(N){L||(L=P(7319).I);var I=new L(N);this._readableState.decoder=I,this._readableState.encoding=this._readableState.decoder.encoding;for(var T=this._readableState.buffer.head,D="";null!==T;)D+=I.write(T.data),T=T.next;return this._readableState.buffer.clear(),""!==D&&this._readableState.buffer.push(D),this._readableState.length=D.length,this};var ec=0x40000000;function eu(N){return N>=ec?N=ec:(N--,N|=N>>>1,N|=N>>>2,N|=N>>>4,N|=N>>>8,N|=N>>>16,N++),N}function ed(N,I){if(N<=0||0===I.length&&I.ended)return 0;if(I.objectMode)return 1;if(N!=N)if(I.flowing&&I.length)return I.buffer.head.data.length;else return I.length;return(N>I.highWaterMark&&(I.highWaterMark=eu(N)),N<=I.length)?N:I.ended?I.length:(I.needReadable=!0,0)}function ef(N,I){if(R("onEofChunk"),!I.ended){if(I.decoder){var T=I.decoder.end();T&&T.length&&(I.buffer.push(T),I.length+=I.objectMode?1:T.length)}I.ended=!0,I.sync?eh(N):(I.needReadable=!1,I.emittedReadable||(I.emittedReadable=!0,ep(N)))}}function eh(N){var I=N._readableState;R("emitReadable",I.needReadable,I.emittedReadable),I.needReadable=!1,I.emittedReadable||(R("emitReadable",I.flowing),I.emittedReadable=!0,M.nextTick(ep,N))}function ep(N){var I=N._readableState;R("emitReadable_",I.destroyed,I.length,I.ended),!I.destroyed&&(I.length||I.ended)&&(N.emit("readable"),I.emittedReadable=!1),I.needReadable=!I.flowing&&!I.ended&&I.length<=I.highWaterMark,eA(N)}function em(N,I){I.readingMore||(I.readingMore=!0,M.nextTick(eg,N,I))}function eg(N,I){for(;!I.reading&&!I.ended&&(I.length<I.highWaterMark||I.flowing&&0===I.length);){var T=I.length;if(R("maybeReadMore read 0"),N.read(0),T===I.length)break}I.readingMore=!1}function ey(N){return function(){var I=N._readableState;R("pipeOnDrain",I.awaitDrain),I.awaitDrain&&I.awaitDrain--,0===I.awaitDrain&&B(N,"data")&&(I.flowing=!0,eA(N))}}function eb(N){var I=N._readableState;I.readableListening=N.listenerCount("readable")>0,I.resumeScheduled&&!I.paused?I.flowing=!0:N.listenerCount("data")>0&&N.resume()}function ev(N){R("readable nexttick read 0"),N.read(0)}function ew(N,I){I.resumeScheduled||(I.resumeScheduled=!0,M.nextTick(ex,N,I))}function ex(N,I){R("resume",I.reading),I.reading||N.read(0),I.resumeScheduled=!1,N.emit("resume"),eA(N),I.flowing&&!I.reading&&N.read(0)}function eA(N){var I=N._readableState;for(R("flow",I.flowing);I.flowing&&null!==N.read(););}function eE(N,I){var T;return 0===I.length?null:(I.objectMode?T=I.buffer.shift():!N||N>=I.length?(T=I.decoder?I.buffer.join(""):1===I.buffer.length?I.buffer.first():I.buffer.concat(I.length),I.buffer.clear()):T=I.buffer.consume(N,I.decoder),T)}function eS(N){var I=N._readableState;R("endReadable",I.endEmitted),I.endEmitted||(I.ended=!0,M.nextTick(e_,I,N))}function e_(N,I){if(R("endReadableNT",N.endEmitted,N.length),!N.endEmitted&&0===N.length&&(N.endEmitted=!0,I.readable=!1,I.emit("end"),N.autoDestroy)){var T=I._writableState;(!T||T.autoDestroy&&T.finished)&&I.destroy()}}function ek(N,I){for(var T=0,P=N.length;T<P;T++)if(N[T]===I)return T;return -1}ei.prototype.read=function(N){R("read",N),N=parseInt(N,10);var I,T=this._readableState,P=N;if(0!==N&&(T.emittedReadable=!1),0===N&&T.needReadable&&((0!==T.highWaterMark?T.length>=T.highWaterMark:T.length>0)||T.ended))return R("read: emitReadable",T.length,T.ended),0===T.length&&T.ended?eS(this):eh(this),null;if(0===(N=ed(N,T))&&T.ended)return 0===T.length&&eS(this),null;var D=T.needReadable;return R("need readable",D),(0===T.length||T.length-N<T.highWaterMark)&&R("length less than watermark",D=!0),T.ended||T.reading?R("reading or ended",D=!1):D&&(R("do read"),T.reading=!0,T.sync=!0,0===T.length&&(T.needReadable=!0),this._read(T.highWaterMark),T.sync=!1,T.reading||(N=ed(P,T))),null===(I=N>0?eE(N,T):null)?(T.needReadable=T.length<=T.highWaterMark,N=0):(T.length-=N,T.awaitDrain=0),0===T.length&&(T.ended||(T.needReadable=!0),P!==N&&T.ended&&eS(this)),null!==I&&this.emit
vendor: 4,590 bytes, line 1152
1152("data",I),I},ei.prototype._read=function(N){et(this,new X("_read()"))},ei.prototype.pipe=function(N,I){var T=this,P=this._readableState;switch(P.pipesCount){case 0:P.pipes=N;break;case 1:P.pipes=[P.pipes,N];break;default:P.pipes.push(N)}P.pipesCount+=1,R("pipe count=%d opts=%j",P.pipesCount,I);var D=I&&!1===I.end||N===M.stdout||N===M.stderr?K:$;function L(N,I){R("onunpipe"),N===T&&I&&!1===I.hasUnpiped&&(I.hasUnpiped=!0,H())}function $(){R("onend"),N.end()}P.endEmitted?M.nextTick(D):T.once("end",D),N.on("unpipe",L);var F=ey(T);N.on("drain",F);var U=!1;function H(){R("cleanup"),N.removeListener("close",q),N.removeListener("finish",G),N.removeListener("drain",F),N.removeListener("error",W),N.removeListener("unpipe",L),T.removeListener("end",$),T.removeListener("end",K),T.removeListener("data",z),U=!0,P.awaitDrain&&(!N._writableState||N._writableState.needDrain)&&F()}function z(I){R("ondata");var D=N.write(I);R("dest.write",D),!1===D&&((1===P.pipesCount&&P.pipes===N||P.pipesCount>1&&-1!==ek(P.pipes,N))&&!U&&(R("false write response, pause",P.awaitDrain),P.awaitDrain++),T.pause())}function W(I){R("onerror",I),K(),N.removeListener("error",W),0===B(N,"error")&&et(N,I)}function q(){N.removeListener("finish",G),K()}function G(){R("onfinish"),N.removeListener("close",q),K()}function K(){R("unpipe"),T.unpipe(N)}return T.on("data",z),en(N,"error",W),N.once("close",q),N.once("finish",G),N.emit("pipe",T),P.flowing||(R("pipe resume"),T.resume()),N},ei.prototype.unpipe=function(N){var I=this._readableState,T={hasUnpiped:!1};if(0===I.pipesCount)return this;if(1===I.pipesCount)return N&&N!==I.pipes||(N||(N=I.pipes),I.pipes=null,I.pipesCount=0,I.flowing=!1,N&&N.emit("unpipe",this,T)),this;if(!N){var P=I.pipes,D=I.pipesCount;I.pipes=null,I.pipesCount=0,I.flowing=!1;for(var M=0;M<D;M++)P[M].emit("unpipe",this,{hasUnpiped:!1});return this}var R=ek(I.pipes,N);return -1===R||(I.pipes.splice(R,1),I.pipesCount-=1,1===I.pipesCount&&(I.pipes=I.pipes[0]),N.emit("unpipe",this,T)),this},ei.prototype.on=function(N,I){var T=U.prototype.on.call(this,N,I),P=this._readableState;return"data"===N?(P.readableListening=this.listenerCount("readable")>0,!1!==P.flowing&&this.resume()):"readable"!==N||P.endEmitted||P.readableListening||(P.readableListening=P.needReadable=!0,P.flowing=!1,P.emittedReadable=!1,R("on readable",P.length,P.reading),P.length?eh(this):P.reading||M.nextTick(ev,this)),T},ei.prototype.addListener=ei.prototype.on,ei.prototype.removeListener=function(N,I){var T=U.prototype.removeListener.call(this,N,I);return"readable"===N&&M.nextTick(eb,this),T},ei.prototype.removeAllListeners=function(N){var I=U.prototype.removeAllListeners.apply(this,arguments);return("readable"===N||void 0===N)&&M.nextTick(eb,this),I},ei.prototype.resume=function(){var N=this._readableState;return N.flowing||(R("resume"),N.flowing=!N.readableListening,ew(this,N)),N.paused=!1,this},ei.prototype.pause=function(){return R("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(R("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},ei.prototype.wrap=function(N){var I=this,T=this._readableState,P=!1;for(var D in N.on("end",function(){if(R("wrapped end"),T.decoder&&!T.ended){var N=T.decoder.end();N&&N.length&&I.push(N)}I.push(null)}),N.on("data",function(D){R("wrapped data"),T.decoder&&(D=T.decoder.write(D)),T.objectMode&&null==D||(T.objectMode||D&&D.length)&&(I.push(D)||(P=!0,N.pause()))}),N)void 0===this[D]&&"function"==typeof N[D]&&(this[D]=function(I){return function(){return N[I].apply(N,arguments)}}(D));for(var M=0;M<er.length;M++)N.on(er[M],this.emit.bind(this,er[M]));return this._read=function(I){R("wrapped _read",I),P&&(P=!1,N.resume())},this},"function"==typeof Symbol&&(ei.prototype[Symbol.asyncIterator]=function(){return void 0===$&&($=P(531)),$(this)}),Object.defineProperty(ei.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(ei.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(ei.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(N){this._readableState&&(this._readableState.flowing=N)}}),ei._fromList=eE,Object.defineProperty(ei.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(ei.from=function(N,I){return void 0===F&&(F=P(8812)),F(ei,N,I)})},586:function(N,I,T){"use strict";N.exports=B;
vendor: 4,329 bytes, line 1152
1152var P=T(4329).F,D=P.ERR_METHOD_NOT_IMPLEMENTED,M=P.ERR_MULTIPLE_CALLBACK,R=P.ERR_TRANSFORM_ALREADY_TRANSFORMING,L=P.ERR_TRANSFORM_WITH_LENGTH_0,$=T(8686);function F(N,I){var T=this._transformState;T.transforming=!1;var P=T.writecb;if(null===P)return this.emit("error",new M);T.writechunk=null,T.writecb=null,null!=I&&this.push(I),P(N);var D=this._readableState;D.reading=!1,(D.needReadable||D.length<D.highWaterMark)&&this._read(D.highWaterMark)}function B(N){if(!(this instanceof B))return new B(N);$.call(this,N),this._transformState={afterTransform:F.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,N&&("function"==typeof N.transform&&(this._transform=N.transform),"function"==typeof N.flush&&(this._flush=N.flush)),this.on("prefinish",U)}function U(){var N=this;"function"!=typeof this._flush||this._readableState.destroyed?H(this,null,null):this._flush(function(I,T){H(N,I,T)})}function H(N,I,T){if(I)return N.emit("error",I);if(null!=T&&N.push(T),N._writableState.length)throw new L;if(N._transformState.transforming)throw new R;return N.push(null)}T(1638)(B,$),B.prototype.push=function(N,I){return this._transformState.needTransform=!1,$.prototype.push.call(this,N,I)},B.prototype._transform=function(N,I,T){T(new D("_transform()"))},B.prototype._write=function(N,I,T){var P=this._transformState;if(P.writecb=T,P.writechunk=N,P.writeencoding=I,!P.transforming){var D=this._readableState;(P.needTransform||D.needReadable||D.length<D.highWaterMark)&&this._read(D.highWaterMark)}},B.prototype._read=function(N){var I=this._transformState;null===I.writechunk||I.transforming?I.needTransform=!0:(I.transforming=!0,this._transform(I.writechunk,I.writeencoding,I.afterTransform))},B.prototype._destroy=function(N,I){$.prototype._destroy.call(this,N,function(N){I(N)})}},4732:function(N,I,P){"use strict";function D(N){var I=this;this.next=null,this.entry=null,this.finish=function(){ex(I,N)}}N.exports=ea,ea.WritableState=en;var R,L,$={deprecate:P(4774)},F=P(5120),B=P(181).Buffer,U=T.g.Uint8Array||function(){};function H(N){return B.from(N)}function z(N){return B.isBuffer(N)||N instanceof U}var W=P(2528),q=P(771).getHighWaterMark,G=P(4329).F,K=G.ERR_INVALID_ARG_TYPE,V=G.ERR_METHOD_NOT_IMPLEMENTED,Y=G.ERR_MULTIPLE_CALLBACK,J=G.ERR_STREAM_CANNOT_PIPE,Q=G.ERR_STREAM_DESTROYED,Z=G.ERR_STREAM_NULL_VALUES,X=G.ERR_STREAM_WRITE_AFTER_END,ee=G.ERR_UNKNOWN_ENCODING,et=W.errorOrDestroy;function er(){}function en(N,I,T){R=R||P(8686),N=N||{},"boolean"!=typeof T&&(T=I instanceof R),this.objectMode=!!N.objectMode,T&&(this.objectMode=this.objectMode||!!N.writableObjectMode),this.highWaterMark=q(this,N,"writableHighWaterMark",T),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var M=!1===N.decodeStrings;this.decodeStrings=!M,this.defaultEncoding=N.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(N){ef(I,N)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==N.emitClose,this.autoDestroy=!!N.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new D(this)}P(1638)(ea,F),en.prototype.getBuffer=function(){for(var N=this.bufferedRequest,I=[];N;)I.push(N),N=N.next;return I};try{Object.defineProperty(en.prototype,"buffer",{get:$.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(N){}function ea(N){var I=this instanceof(R=R||P(8686));if(!I&&!L.call(ea,this))return new ea(N);this._writableState=new en(N,this,I),this.writable=!0,N&&("function"==typeof N.write&&(this._write=N.write),"function"==typeof N.writev&&(this._writev=N.writev),"function"==typeof N.destroy&&(this._destroy=N.destroy),"function"==typeof N.final&&(this._final=N.final)),F.call(this)}function ei(N,I){var T=new X;et(N,T),M.nextTick(I,T)}function eo(N,I,T,P){var D;return null===T?D=new Z:"string"==typeof T||I.objectMode||(D=new K("chunk",["string","Buffer"],T)),!D||(et(N,D),M.nextTick(P,D),!1)}function es(N,I,T){return N.objectMode||!1===N.decodeStrings||"string"!=typeof I||(I=B.from(I,T)),I}
vendor: 5,314 bytes, line 1152
1152function el(N,I,T,P,D,M){if(!T){var R=es(I,P,D);P!==R&&(T=!0,D="buffer",P=R)}var L=I.objectMode?1:P.length;I.length+=L;var $=I.length<I.highWaterMark;if($||(I.needDrain=!0),I.writing||I.corked){var F=I.lastBufferedRequest;I.lastBufferedRequest={chunk:P,encoding:D,isBuf:T,callback:M,next:null},F?F.next=I.lastBufferedRequest:I.bufferedRequest=I.lastBufferedRequest,I.bufferedRequestCount+=1}else ec(N,I,!1,L,P,D,M);return $}function ec(N,I,T,P,D,M,R){I.writelen=P,I.writecb=R,I.writing=!0,I.sync=!0,I.destroyed?I.onwrite(new Q("write")):T?N._writev(D,I.onwrite):N._write(D,M,I.onwrite),I.sync=!1}function eu(N,I,T,P,D){--I.pendingcb,T?(M.nextTick(D,P),M.nextTick(ev,N,I),N._writableState.errorEmitted=!0,et(N,P)):(D(P),N._writableState.errorEmitted=!0,et(N,P),ev(N,I))}function ed(N){N.writing=!1,N.writecb=null,N.length-=N.writelen,N.writelen=0}function ef(N,I){var T=N._writableState,P=T.sync,D=T.writecb;if("function"!=typeof D)throw new Y;if(ed(T),I)eu(N,T,P,I,D);else{var R=eg(T)||N.destroyed;R||T.corked||T.bufferProcessing||!T.bufferedRequest||em(N,T),P?M.nextTick(eh,N,T,R,D):eh(N,T,R,D)}}function eh(N,I,T,P){T||ep(N,I),I.pendingcb--,P(),ev(N,I)}function ep(N,I){0===I.length&&I.needDrain&&(I.needDrain=!1,N.emit("drain"))}function em(N,I){I.bufferProcessing=!0;var T=I.bufferedRequest;if(N._writev&&T&&T.next){var P=Array(I.bufferedRequestCount),M=I.corkedRequestsFree;M.entry=T;for(var R=0,L=!0;T;)P[R]=T,T.isBuf||(L=!1),T=T.next,R+=1;P.allBuffers=L,ec(N,I,!0,I.length,P,"",M.finish),I.pendingcb++,I.lastBufferedRequest=null,M.next?(I.corkedRequestsFree=M.next,M.next=null):I.corkedRequestsFree=new D(I),I.bufferedRequestCount=0}else{for(;T;){var $=T.chunk,F=T.encoding,B=T.callback,U=I.objectMode?1:$.length;if(ec(N,I,!1,U,$,F,B),T=T.next,I.bufferedRequestCount--,I.writing)break}null===T&&(I.lastBufferedRequest=null)}I.bufferedRequest=T,I.bufferProcessing=!1}function eg(N){return N.ending&&0===N.length&&null===N.bufferedRequest&&!N.finished&&!N.writing}function ey(N,I){N._final(function(T){I.pendingcb--,T&&et(N,T),I.prefinished=!0,N.emit("prefinish"),ev(N,I)})}function eb(N,I){I.prefinished||I.finalCalled||("function"!=typeof N._final||I.destroyed?(I.prefinished=!0,N.emit("prefinish")):(I.pendingcb++,I.finalCalled=!0,M.nextTick(ey,N,I)))}function ev(N,I){var T=eg(I);if(T&&(eb(N,I),0===I.pendingcb)&&(I.finished=!0,N.emit("finish"),I.autoDestroy)){var P=N._readableState;(!P||P.autoDestroy&&P.endEmitted)&&N.destroy()}return T}function ew(N,I,T){I.ending=!0,ev(N,I),T&&(I.finished?M.nextTick(T):N.once("finish",T)),I.ended=!0,N.writable=!1}function ex(N,I,T){var P=N.entry;for(N.entry=null;P;){var D=P.callback;I.pendingcb--,D(T),P=P.next}I.corkedRequestsFree.next=N}"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(L=Function.prototype[Symbol.hasInstance],Object.defineProperty(ea,Symbol.hasInstance,{value:function(N){return!!L.call(this,N)||this===ea&&N&&N._writableState instanceof en}})):L=function(N){return N instanceof this},ea.prototype.pipe=function(){et(this,new J)},ea.prototype.write=function(N,I,T){var P=this._writableState,D=!1,M=!P.objectMode&&z(N);return M&&!B.isBuffer(N)&&(N=H(N)),"function"==typeof I&&(T=I,I=null),M?I="buffer":I||(I=P.defaultEncoding),"function"!=typeof T&&(T=er),P.ending?ei(this,T):(M||eo(this,P,N,T))&&(P.pendingcb++,D=el(this,P,M,N,I,T)),D},ea.prototype.cork=function(){this._writableState.corked++},ea.prototype.uncork=function(){var N=this._writableState;N.corked&&(N.corked--,N.writing||N.corked||N.bufferProcessing||!N.bufferedRequest||em(this,N))},ea.prototype.setDefaultEncoding=function(N){if("string"==typeof N&&(N=N.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((N+"").toLowerCase())>-1))throw new ee(N);return this._writableState.defaultEncoding=N,this},Object.defineProperty(ea.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(ea.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),ea.prototype._write=function(N,I,T){T(new V("_write()"))},ea.prototype._writev=null,ea.prototype.end=function(N,I,T){var P=this._writableState;return"function"==typeof N?(T=N,N=null,I=null):"function"==typeof I&&(T=I,I=null),null!=N&&this.write(N,I),P.corked&&(P.corked=1,this.uncork()),P.ending||ew(this,P,T),this},Object.defineProperty(ea.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(ea.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(N){this._writableState&&(this._writableState.destroyed=N)}}),ea.prototype.destroy=W.destroy,ea.prototype._undestroy=W.undestroy,ea.prototype._destroy=function(N,I){I(N)}},531:function(N,I,T){"use strict";function P(N,I,T){return I in N?Object.defineProperty(N,I,{value:T,enumerable:!0,configurable:!0,writable:!0}):N[I]=T,N}var D,R=T(8134),L=Symbol("lastResolve"),$=Symbol("lastReject"),F=Symbol("error"),B=Symbol("ended"),U=Symbol("lastPromise"),H=Symbol("handlePromise"),z=Symbol("stream");function W(N,I){return{value:N,done:I}}function q(N){var I=N[L];if(null!==I){var T=N[z].read();
vendor: 5,860 bytes, line 1152
1152null!==T&&(N[U]=null,N[L]=null,N[$]=null,I(W(T,!1)))}}function G(N){M.nextTick(q,N)}function K(N,I){return function(T,P){N.then(function(){I[B]?T(W(void 0,!0)):I[H](T,P)},P)}}var V=Object.getPrototypeOf(function(){}),Y=Object.setPrototypeOf((P(D={get stream(){return this[z]},next:function(){var N,I=this,T=this[F];if(null!==T)return Promise.reject(T);if(this[B])return Promise.resolve(W(void 0,!0));if(this[z].destroyed)return new Promise(function(N,T){M.nextTick(function(){I[F]?T(I[F]):N(W(void 0,!0))})});var P=this[U];if(P)N=new Promise(K(P,this));else{var D=this[z].read();if(null!==D)return Promise.resolve(W(D,!1));N=new Promise(this[H])}return this[U]=N,N}},Symbol.asyncIterator,function(){return this}),P(D,"return",function(){var N=this;return new Promise(function(I,T){N[z].destroy(null,function(N){N?T(N):I(W(void 0,!0))})})}),D),V);N.exports=function(N){var I,T=Object.create(Y,(P(I={},z,{value:N,writable:!0}),P(I,L,{value:null,writable:!0}),P(I,$,{value:null,writable:!0}),P(I,F,{value:null,writable:!0}),P(I,B,{value:N._readableState.endEmitted,writable:!0}),P(I,H,{value:function(N,I){var P=T[z].read();P?(T[U]=null,T[L]=null,T[$]=null,N(W(P,!1))):(T[L]=N,T[$]=I)},writable:!0}),I));return T[U]=null,R(N,function(N){if(N&&"ERR_STREAM_PREMATURE_CLOSE"!==N.code){var I=T[$];null!==I&&(T[U]=null,T[L]=null,T[$]=null,I(N)),T[F]=N;return}var P=T[L];null!==P&&(T[U]=null,T[L]=null,T[$]=null,P(W(void 0,!0))),T[B]=!0}),N.on("readable",G.bind(null,T)),T}},1137:function(N,I,T){"use strict";function P(N,I){var T=Object.keys(N);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(N);I&&(P=P.filter(function(I){return Object.getOwnPropertyDescriptor(N,I).enumerable})),T.push.apply(T,P)}return T}function D(N){for(var I=1;I<arguments.length;I++){var T=null!=arguments[I]?arguments[I]:{};I%2?P(Object(T),!0).forEach(function(I){M(N,I,T[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(T)):P(Object(T)).forEach(function(I){Object.defineProperty(N,I,Object.getOwnPropertyDescriptor(T,I))})}return N}function M(N,I,T){return I in N?Object.defineProperty(N,I,{value:T,enumerable:!0,configurable:!0,writable:!0}):N[I]=T,N}function R(N,I){if(!(N instanceof I))throw TypeError("Cannot call a class as a function")}function L(N,I){for(var T=0;T<I.length;T++){var P=I[T];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(N,P.key,P)}}function $(N,I,T){return I&&L(N.prototype,I),T&&L(N,T),N}var F=T(181).Buffer,B=T(9023).inspect,U=B&&B.custom||"inspect";function H(N,I,T){F.prototype.copy.call(N,I,T)}N.exports=function(){function N(){R(this,N),this.head=null,this.tail=null,this.length=0}return $(N,[{key:"push",value:function(N){var I={data:N,next:null};this.length>0?this.tail.next=I:this.head=I,this.tail=I,++this.length}},{key:"unshift",value:function(N){var I={data:N,next:this.head};0===this.length&&(this.tail=I),this.head=I,++this.length}},{key:"shift",value:function(){if(0!==this.length){var N=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,N}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(N){if(0===this.length)return"";for(var I=this.head,T=""+I.data;I=I.next;)T+=N+I.data;return T}},{key:"concat",value:function(N){if(0===this.length)return F.alloc(0);for(var I=F.allocUnsafe(N>>>0),T=this.head,P=0;T;)H(T.data,I,P),P+=T.data.length,T=T.next;return I}},{key:"consume",value:function(N,I){var T;return N<this.head.data.length?(T=this.head.data.slice(0,N),this.head.data=this.head.data.slice(N)):T=N===this.head.data.length?this.shift():I?this._getString(N):this._getBuffer(N),T}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(N){var I=this.head,T=1,P=I.data;for(N-=P.length;I=I.next;){var D=I.data,M=N>D.length?D.length:N;if(M===D.length?P+=D:P+=D.slice(0,N),0==(N-=M)){M===D.length?(++T,I.next?this.head=I.next:this.head=this.tail=null):(this.head=I,I.data=D.slice(M));break}++T}return this.length-=T,P}},{key:"_getBuffer",value:function(N){var I=F.allocUnsafe(N),T=this.head,P=1;for(T.data.copy(I),N-=T.data.length;T=T.next;){var D=T.data,M=N>D.length?D.length:N;if(D.copy(I,I.length-N,0,M),0==(N-=M)){M===D.length?(++P,T.next?this.head=T.next:this.head=this.tail=null):(this.head=T,T.data=D.slice(M));break}++P}return this.length-=P,I}},{key:U,value:function(N,I){return B(this,D({},I,{depth:0,customInspect:!1}))}}]),N}()},2528:function(N){"use strict";function I(N,I){P(N,I),T(N)}function T(N){N._writableState&&!N._writableState.emitClose||(!N._readableState||N._readableState.emitClose)&&N.emit("close")}function P(N,I){N.emit("error",I)}N.exports={destroy:function(N,D){var R=this,L=this._readableState&&this._readableState.destroyed,$=this._writableState&&this._writableState.destroyed;return L||$?D?D(N):N&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,M.nextTick(P,this,N)):M.nextTick(P,this,N)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(N||null,function(N){!D&&N?R._writableState?R._writableState.errorEmitted?M.nextTick(T,R):(R._writableState.errorEmitted=!0,M.nextTick(I,R,N)):M.nextTick(I,R,N):D?(M.nextTick(T,R),D(N)):M.nextTick(T,R)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(N,I){var T=N._readableState,P=N._writableState;
1152T&&T.autoDestroy||P&&P.autoDestroy?N.destroy(I):N.emit("error",I)}}},8134:function(N,I,T){"use strict";var P=T(4329).F.ERR_STREAM_PREMATURE_CLOSE;function D(N){var I=!1;return function(){if(!I){I=!0;for(var T=arguments.length,P=Array(T),D=0;D<T;D++)P[D]=arguments[D];N.apply(this,P)}}}function M(){}function R(N){return N.setHeader&&"function"==typeof N.abort}function L(N,I,T){if("function"==typeof I)return L(N,null,I);I||(I={}),T=D(T||M);var $=I.readable||!1!==I.readable&&N.readable,F=I.writable||!1!==I.writable&&N.writable,B=function(){N.writable||H()},U=N._writableState&&N._writableState.finished,H=function(){F=!1,U=!0,$||T.call(N)},z=N._readableState&&N._readableState.endEmitted,W=function(){$=!1,z=!0,F||T.call(N)},q=function(I){T.call(N,I)},G=function(){var I;return $&&!z?(N._readableState&&N._readableState.ended||(I=new P),T.call(N,I)):F&&!U?(N._writableState&&N._writableState.ended||(I=new P),T.call(N,I)):void 0},K=function(){N.req.on("finish",H)};return R(N)?(N.on("complete",H),N.on("abort",G),N.req?K():N.on("request",K)):F&&!N._writableState&&(N.on("end",B),N.on("close",B)),N.on("end",W),N.on("finish",H),!1!==I.error&&N.on("error",q),N.on("close",G),function(){N.removeListener("complete",H),N.removeListener("abort",G),N.removeListener("request",K),N.req&&N.req.removeListener("finish",H),N.removeListener("end",B),N.removeListener("close",B),N.removeListener("finish",H),N.removeListener("end",W),N.removeListener("error",q),N.removeListener("close",G)}}N.exports=L},8812:function(N,I,T){"use strict";function P(N,I,T,P,D,M,R){try{var L=N[M](R),$=L.value}catch(N){T(N);return}L.done?I($):Promise.resolve($).then(P,D)}function D(N){return function(){var I=this,T=arguments;return new Promise(function(D,M){var R=N.apply(I,T);function L(N){P(R,D,M,L,$,"next",N)}function $(N){P(R,D,M,L,$,"throw",N)}L(void 0)})}}function M(N,I){var T=Object.keys(N);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(N);I&&(P=P.filter(function(I){return Object.getOwnPropertyDescriptor(N,I).enumerable})),T.push.apply(T,P)}return T}function R(N){for(var I=1;I<arguments.length;I++){var T=null!=arguments[I]?arguments[I]:{};I%2?M(Object(T),!0).forEach(function(I){L(N,I,T[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(T)):M(Object(T)).forEach(function(I){Object.defineProperty(N,I,Object.getOwnPropertyDescriptor(T,I))})}return N}function L(N,I,T){return I in N?Object.defineProperty(N,I,{value:T,enumerable:!0,configurable:!0,writable:!0}):N[I]=T,N}var $=T(4329).F.ERR_INVALID_ARG_TYPE;N.exports=function(N,I,T){if(I&&"function"==typeof I.next)P=I;else if(I&&I[Symbol.asyncIterator])P=I[Symbol.asyncIterator]();else if(I&&I[Symbol.iterator])P=I[Symbol.iterator]();else throw new $("iterable",["Iterable"],I);var P,M=new N(R({objectMode:!0},T)),L=!1;function F(){return B.apply(this,arguments)}function B(){return(B=D(function*(){try{var N=yield P.next(),I=N.value;N.done?M.push(null):M.push((yield I))?F():L=!1}catch(N){M.destroy(N)}})).apply(this,arguments)}return M._read=function(){L||(L=!0,F())},M}},694:function(N,I,T){"use strict";function P(N){var I=!1;return function(){I||(I=!0,N.apply(void 0,arguments))}}var D,M=T(4329).F,R=M.ERR_MISSING_ARGS,L=M.ERR_STREAM_DESTROYED;function $(N){if(N)throw N}function F(N){return N.setHeader&&"function"==typeof N.abort}function B(N,I,M,R){R=P(R);var $=!1;N.on("close",function(){$=!0}),void 0===D&&(D=T(8134)),D(N,{readable:I,writable:M},function(N){if(N)return R(N);$=!0,R()});var B=!1;return function(I){if(!$&&!B){if(B=!0,F(N))return N.abort();if("function"==typeof N.destroy)return N.destroy();R(I||new L("pipe"))}}}function U(N){N()}function H(N,I){return N.pipe(I)}function z(N){return N.length&&"function"==typeof N[N.length-1]?N.pop():$}N.exports=function(){for(var N,I=arguments.length,T=Array(I),P=0;P<I;P++)T[P]=arguments[P];var D=z(T);if(Array.isArray(T[0])&&(T=T[0]),T.length<2)throw new R("streams");var M=T.map(function(I,P){var R=P<T.length-1;return B(I,R,P>0,function(I){N||(N=I),I&&M.forEach(U),R||(M.forEach(U),D(N))})});return T.reduce(H)}},771:function(N,I,T){"use strict";var P=T(4329).F.ERR_INVALID_OPT_VALUE;function D(N,I,T){return null!=N.highWaterMark?N.highWaterMark:I?N[T]:null}N.exports={getHighWaterMark:function(N,I,T,M){var R=D(I,M,T);if(null!=R){if(!(isFinite(R)&&Math.floor(R)===R)||R<0)throw new P(M?T:"highWaterMark",R);return Math.floor(R)}return N.objectMode?16:16384}}},5120:function(N,I,T){N.exports=T(2203)},5486:function(N,I,T){var P=T(2203);"disable"===M.env.READABLE_STREAM&&P?(N.exports=P.Readable,Object.assign(N.exports,P),N.exports.Stream=P):((I=N.exports=T(7276)).Stream=P||I,I.Readable=I,I.Writable=T(4732),I.Duplex=T(8686),I.Transform=T(586),I.PassThrough=T(5512),I.finished=T(8134),I.pipeline=T(694))},8987:function(N,I,T){"use strict";var P=T(181).Buffer,D=T(1638),M=T(2321),R=Array(16),L=[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],$=[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],F=[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],B=[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],U=[0,0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xa953fd4e],H=[0x50a28be6,0x5c4dd124,0x6d703ef3,0x7a6d76e9,0];function z(){M.call(this,64),this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476,this._e=0xc3d2e1f0}function W(N,I){return N<<I|N>>>32-I}function q(N,I,T,P,D,M,R,L){return W(N+(I^T^P)+M+R|0,L)+D|0}function G(N,I,T,P,D,M,R,L){return W(N+(I&T|~I&P)+M+R|0,L)+D|0}function K(N,I,T,P,D,M,R,L){return W(N+((I|~T)^P)+M+R|0,L)+D|0}function V(N,I,T,P,D,M,R,L){return W(N+(I&P|T&~P)+M+R|0,L)+D|0}function Y(N,I,T,P,D,M,R,L){return W(N+(I^(T|~P))+M+R|0,L)+D|0}D(z,M),z.prototype._update=function(){for(var N,I,T=R,P=0;P<16;++P)T[P]=this._block.readInt32LE(4*P);for(var D=0|this._a,M=0|this._b,z=0|this._c,J=0|this._d,Q=0|this._e,Z=0|this._a,X=0|this._b,ee=0|this._c,et=0|this._d,er=0|this._e,en=0;en<80;en+=1)en<16?(N=q(D,M,z,J,Q,T[L[en]],U[0],F[en]),I=Y(Z,X,ee,et,er,T[$[en]],H[0],B[en])):en<32?(N=G(D,M,z,J,Q,T[L[en]],U[1],F[en]),I=V(Z,X,ee,et,er,T[$[en]],H[1],B[en])):en<48?(N=K(D,M,z,J,Q,T[L[en]],U[2],F[en]),I=K(Z,X,ee,et,er,T[$[en]],H[2],B[en])):en<64?(N=V(D,M,z,J,Q,T[L[en]],U[3],F[en]),I=G(Z,X,ee,et,er,T[$[en]],H[3],B[en])):(N=Y(D,M,z,J,Q,T[L[en]],U[4],F[en]),I=q(Z,X,ee,et,er,T[$[en]],H[4],B[en])),D=Q,Q=J,J=W(z,10),z=M,M=N,Z=er,er=et,et=W(ee,10),ee=X,X=I;var ea=this._b+z+et|0;this._b=this._c+J+er|0,this._c=this._d+Q+Z|0,this._d=this._e+D+X|0,this._e=this._a+M+ee|0,this._a=ea},z.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var N=P.alloc?P.alloc(20):new P(20);return N.writeInt32LE(this._a,0),N.writeInt32LE(this._b,4),N.writeInt32LE(this._c,8),N.writeInt32LE(this._d,12),N.writeInt32LE(this._e,16),N},N.exports=z},5056:function(N,I,T){var P=T(181),D=P.Buffer;function M(N,I){for(var T in N)I[T]=N[T]}function R(N,I,T){return D(N,I,T)}D.from&&D.alloc&&D.allocUnsafe&&D.allocUnsafeSlow?N.exports=P:(M(P,I),I.Buffer=R),R.prototype=Object.create(D.prototype),M(D,R),R.from=function(N,I,T){if("number"==typeof N)throw TypeError("Argument must not be a number");return D(N,I,T)},R.alloc=function(N,I,T){if("number"!=typeof N)throw TypeError("Argument must be a number");var P=D(N);return void 0!==I?"string"==typeof T?P.fill(I,T):P.fill(I):P.fill(0),P},R.allocUnsafe=function(N){if("number"!=typeof N)throw TypeError("Argument must be a number");return D(N)},R.allocUnsafeSlow=function(N){if("number"!=typeof N)throw TypeError("Argument must be a number");
vendor: 5,293 bytes, line 1152
1152return P.SlowBuffer(N)}},5725:function(N,I,T){var P=T(181),D=P.Buffer;function M(N,I){for(var T in N)I[T]=N[T]}function R(N,I,T){return D(N,I,T)}D.from&&D.alloc&&D.allocUnsafe&&D.allocUnsafeSlow?N.exports=P:(M(P,I),I.Buffer=R),R.prototype=Object.create(D.prototype),M(D,R),R.from=function(N,I,T){if("number"==typeof N)throw TypeError("Argument must not be a number");return D(N,I,T)},R.alloc=function(N,I,T){if("number"!=typeof N)throw TypeError("Argument must be a number");var P=D(N);return void 0!==I?"string"==typeof T?P.fill(I,T):P.fill(I):P.fill(0),P},R.allocUnsafe=function(N){if("number"!=typeof N)throw TypeError("Argument must be a number");return D(N)},R.allocUnsafeSlow=function(N){if("number"!=typeof N)throw TypeError("Argument must be a number");return P.SlowBuffer(N)}},1007:function(N,I,T){var P=T(5725).Buffer;function D(N,I){this._block=P.alloc(N),this._finalSize=I,this._blockSize=N,this._len=0}D.prototype.update=function(N,I){"string"==typeof N&&(I=I||"utf8",N=P.from(N,I));for(var T=this._block,D=this._blockSize,M=N.length,R=this._len,L=0;L<M;){for(var $=R%D,F=Math.min(M-L,D-$),B=0;B<F;B++)T[$+B]=N[L+B];R+=F,L+=F,R%D==0&&this._update(T)}return this._len+=M,this},D.prototype.digest=function(N){var I=this._len%this._blockSize;this._block[I]=128,this._block.fill(0,I+1),I>=this._finalSize&&(this._update(this._block),this._block.fill(0));var T=8*this._len;if(T<=0xffffffff)this._block.writeUInt32BE(T,this._blockSize-4);else{var P=T>>>0,D=(T-P)/0x100000000;this._block.writeUInt32BE(D,this._blockSize-8),this._block.writeUInt32BE(P,this._blockSize-4)}this._update(this._block);var M=this._hash();return N?M.toString(N):M},D.prototype._update=function(){throw Error("_update must be implemented by subclass")},N.exports=D},3251:function(N,I,T){var P=N.exports=function(N){var I=P[N=N.toLowerCase()];if(!I)throw Error(N+" is not supported (we accept pull requests)");return new I};P.sha=T(569),P.sha1=T(822),P.sha224=T(5365),P.sha256=T(1380),P.sha384=T(3840),P.sha512=T(7921)},569:function(N,I,T){var P=T(1638),D=T(1007),M=T(5725).Buffer,R=[0x5a827999,0x6ed9eba1,-0x70e44324,-0x359d3e2a],L=Array(80);function $(){this.init(),this._w=L,D.call(this,64,56)}function F(N){return N<<5|N>>>27}function B(N){return N<<30|N>>>2}function U(N,I,T,P){return 0===N?I&T|~I&P:2===N?I&T|I&P|T&P:I^T^P}P($,D),$.prototype.init=function(){return this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476,this._e=0xc3d2e1f0,this},$.prototype._update=function(N){for(var I=this._w,T=0|this._a,P=0|this._b,D=0|this._c,M=0|this._d,L=0|this._e,$=0;$<16;++$)I[$]=N.readInt32BE(4*$);for(;$<80;++$)I[$]=I[$-3]^I[$-8]^I[$-14]^I[$-16];for(var H=0;H<80;++H){var z=~~(H/20),W=F(T)+U(z,P,D,M)+L+I[H]+R[z]|0;L=M,M=D,D=B(P),P=T,T=W}this._a=T+this._a|0,this._b=P+this._b|0,this._c=D+this._c|0,this._d=M+this._d|0,this._e=L+this._e|0},$.prototype._hash=function(){var N=M.allocUnsafe(20);return N.writeInt32BE(0|this._a,0),N.writeInt32BE(0|this._b,4),N.writeInt32BE(0|this._c,8),N.writeInt32BE(0|this._d,12),N.writeInt32BE(0|this._e,16),N},N.exports=$},822:function(N,I,T){var P=T(1638),D=T(1007),M=T(5725).Buffer,R=[0x5a827999,0x6ed9eba1,-0x70e44324,-0x359d3e2a],L=Array(80);function $(){this.init(),this._w=L,D.call(this,64,56)}function F(N){return N<<1|N>>>31}function B(N){return N<<5|N>>>27}function U(N){return N<<30|N>>>2}function H(N,I,T,P){return 0===N?I&T|~I&P:2===N?I&T|I&P|T&P:I^T^P}P($,D),$.prototype.init=function(){return this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476,this._e=0xc3d2e1f0,this},$.prototype._update=function(N){for(var I=this._w,T=0|this._a,P=0|this._b,D=0|this._c,M=0|this._d,L=0|this._e,$=0;$<16;++$)I[$]=N.readInt32BE(4*$);for(;$<80;++$)I[$]=F(I[$-3]^I[$-8]^I[$-14]^I[$-16]);for(var z=0;z<80;++z){var W=~~(z/20),q=B(T)+H(W,P,D,M)+L+I[z]+R[W]|0;L=M,M=D,D=U(P),P=T,T=q}this._a=T+this._a|0,this._b=P+this._b|0,this._c=D+this._c|0,this._d=M+this._d|0,this._e=L+this._e|0},$.prototype._hash=function(){var N=M.allocUnsafe(20);return N.writeInt32BE(0|this._a,0),N.writeInt32BE(0|this._b,4),N.writeInt32BE(0|this._c,8),N.writeInt32BE(0|this._d,12),N.writeInt32BE(0|this._e,16),N},N.exports=$},5365:function(N,I,T){var P=T(1638),D=T(1380),M=T(1007),R=T(5725).Buffer,L=Array(64);function $(){this.init(),this._w=L,M.call(this,64,56)}P($,D),$.prototype.init=function(){return this._a=0xc1059ed8,this._b=0x367cd507,this._c=0x3070dd17,this._d=0xf70e5939,this._e=0xffc00b31,this._f=0x68581511,this._g=0x64f98fa7,this._h=0xbefa4fa4,this},$.prototype._hash=function(){var N=R.allocUnsafe(28);return N.writeInt32BE(this._a,0),N.writeInt32BE(this._b,4),N.writeInt32BE(this._c,8),N.writeInt32BE(this._d,12),N.writeInt32BE(this._e,16),N.writeInt32BE(this._f,20),N.writeInt32BE(this._g,24),N},N.exports=$},1380:function(N,I,T){var P=T(1638),D=T(1007),M=T(5725).Buffer,R=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc
vendor: 4,767 bytes, line 1152
115276c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2],L=Array(64);function $(){this.init(),this._w=L,D.call(this,64,56)}function F(N,I,T){return T^N&(I^T)}function B(N,I,T){return N&I|T&(N|I)}function U(N){return(N>>>2|N<<30)^(N>>>13|N<<19)^(N>>>22|N<<10)}function H(N){return(N>>>6|N<<26)^(N>>>11|N<<21)^(N>>>25|N<<7)}function z(N){return(N>>>7|N<<25)^(N>>>18|N<<14)^N>>>3}function W(N){return(N>>>17|N<<15)^(N>>>19|N<<13)^N>>>10}P($,D),$.prototype.init=function(){return this._a=0x6a09e667,this._b=0xbb67ae85,this._c=0x3c6ef372,this._d=0xa54ff53a,this._e=0x510e527f,this._f=0x9b05688c,this._g=0x1f83d9ab,this._h=0x5be0cd19,this},$.prototype._update=function(N){for(var I=this._w,T=0|this._a,P=0|this._b,D=0|this._c,M=0|this._d,L=0|this._e,$=0|this._f,q=0|this._g,G=0|this._h,K=0;K<16;++K)I[K]=N.readInt32BE(4*K);for(;K<64;++K)I[K]=W(I[K-2])+I[K-7]+z(I[K-15])+I[K-16]|0;for(var V=0;V<64;++V){var Y=G+H(L)+F(L,$,q)+R[V]+I[V]|0,J=U(T)+B(T,P,D)|0;G=q,q=$,$=L,L=M+Y|0,M=D,D=P,P=T,T=Y+J|0}this._a=T+this._a|0,this._b=P+this._b|0,this._c=D+this._c|0,this._d=M+this._d|0,this._e=L+this._e|0,this._f=$+this._f|0,this._g=q+this._g|0,this._h=G+this._h|0},$.prototype._hash=function(){var N=M.allocUnsafe(32);return N.writeInt32BE(this._a,0),N.writeInt32BE(this._b,4),N.writeInt32BE(this._c,8),N.writeInt32BE(this._d,12),N.writeInt32BE(this._e,16),N.writeInt32BE(this._f,20),N.writeInt32BE(this._g,24),N.writeInt32BE(this._h,28),N},N.exports=$},3840:function(N,I,T){var P=T(1638),D=T(7921),M=T(1007),R=T(5725).Buffer,L=Array(160);function $(){this.init(),this._w=L,M.call(this,128,112)}P($,D),$.prototype.init=function(){return this._ah=0xcbbb9d5d,this._bh=0x629a292a,this._ch=0x9159015a,this._dh=0x152fecd8,this._eh=0x67332667,this._fh=0x8eb44a87,this._gh=0xdb0c2e0d,this._hh=0x47b5481d,this._al=0xc1059ed8,this._bl=0x367cd507,this._cl=0x3070dd17,this._dl=0xf70e5939,this._el=0xffc00b31,this._fl=0x68581511,this._gl=0x64f98fa7,this._hl=0xbefa4fa4,this},$.prototype._hash=function(){var N=R.allocUnsafe(48);function I(I,T,P){N.writeInt32BE(I,P),N.writeInt32BE(T,P+4)}return I(this._ah,this._al,0),I(this._bh,this._bl,8),I(this._ch,this._cl,16),I(this._dh,this._dl,24),I(this._eh,this._el,32),I(this._fh,this._fl,40),N},N.exports=$},7921:function(N,I,T){var P=T(1638),D=T(1007),M=T(5725).Buffer,R=[0x428a2f98,0xd728ae22,0x71374491,0x23ef65cd,0xb5c0fbcf,0xec4d3b2f,0xe9b5dba5,0x8189dbbc,0x3956c25b,0xf348b538,0x59f111f1,0xb605d019,0x923f82a4,0xaf194f9b,0xab1c5ed5,0xda6d8118,0xd807aa98,0xa3030242,0x12835b01,0x45706fbe,0x243185be,0x4ee4b28c,0x550c7dc3,0xd5ffb4e2,0x72be5d74,0xf27b896f,0x80deb1fe,0x3b1696b1,0x9bdc06a7,0x25c71235,0xc19bf174,0xcf692694,0xe49b69c1,0x9ef14ad2,0xefbe4786,0x384f25e3,0xfc19dc6,0x8b8cd5b5,0x240ca1cc,0x77ac9c65,0x2de92c6f,0x592b0275,0x4a7484aa,0x6ea6e483,0x5cb0a9dc,0xbd41fbd4,0x76f988da,0x831153b5,0x983e5152,0xee66dfab,0xa831c66d,0x2db43210,0xb00327c8,0x98fb213f,0xbf597fc7,0xbeef0ee4,0xc6e00bf3,0x3da88fc2,0xd5a79147,0x930aa725,0x6ca6351,0xe003826f,0x14292967,0xa0e6e70,0x27b70a85,0x46d22ffc,0x2e1b2138,0x5c26c926,0x4d2c6dfc,0x5ac42aed,0x53380d13,0x9d95b3df,0x650a7354,0x8baf63de,0x766a0abb,0x3c77b2a8,0x81c2c92e,0x47edaee6,0x92722c85,0x1482353b,0xa2bfe8a1,0x4cf10364,0xa81a664b,0xbc423001,0xc24b8b70,0xd0f89791,0xc76c51a3,0x654be30,0xd192e819,0xd6ef5218,0xd6990624,0x5565a910,0xf40e3585,0x5771202a,0x106aa070,0x32bbd1b8,0x19a4c116,0xb8d2d0c8,0x1e376c08,0x5141ab53,0x2748774c,0xdf8eeb99,0x34b0bcb5,0xe19b48a8,0x391c0cb3,0xc5c95a63,0x4ed8aa4a,0xe3418acb,0x5b9cca4f,0x7763e373,0x682e6ff3,0xd6b2b8a3,0x748f82ee,0x5defb2fc,0x78a5636f,0x43172f60,0x84c87814,0xa1f0ab72,0x8cc70208,0x1a6439ec,0x90befffa,0x23631e28,0xa4506ceb,0xde82bde9,0xbef9a3f7,0xb2c67915,0xc67178f2,0xe372532b,0xca273ece,0xea26619c,0xd186b8c7,0x21c0c207,0xeada7dd6,0xcde0eb1e,0xf57d4f7f,0xee6ed178,0x6f067aa,0x72176fba,0xa637dc5,0xa2c898a6,0x113f9804,0xbef90dae,0x1b710b35,0x131c471b,0x28db77f5,0x23047d84,0x32caab7b,0x40c72493,0x3c9ebe0a,0x15c9bebc,0x431d67c4,0x9c100d4c,0x4cc5d4be,0xcb3e42b6,0x597f299c,0xfc657e2a,0x5fcb6fab,0x3ad6faec,0x6c44198c,0x4a475817],L=Array(160);function $(){this.init(),this._w=L,D.call(this,128,112)}function F(N,I,T){return T^N&(I^T)}function B(N,I,T){return N&I|T&(N|I)}function U(N,I){return(N>>>28|I<<4)^(I>>>2|N<<30)^(I>>>7|N<<25)}function H(N,I){return(N>>>14|I<<18)^(N>>>18|I<<14)^(I>>>9|N<<23)}function z(N,I){return(N>>>1|I<<31)^(N>>>8|I<<24)^N>>>7}function W(N,I){return(N>>>1|I<<31)^(N>>>8|I<<24)^(N>>>7|I<<25)}function q(N,I){return(N>>>19|I<<13)^(I>>>29|N<<3)^N>>>6}function G(N,I){return(N>>>19|I<<13)^(I>>>29|N<<3)^(N>>>6|I<<26)}function K(N,I){return+(N>>>0<I>>>0)}
vendor: 2,761 bytes, line 1152
1152P($,D),$.prototype.init=function(){return this._ah=0x6a09e667,this._bh=0xbb67ae85,this._ch=0x3c6ef372,this._dh=0xa54ff53a,this._eh=0x510e527f,this._fh=0x9b05688c,this._gh=0x1f83d9ab,this._hh=0x5be0cd19,this._al=0xf3bcc908,this._bl=0x84caa73b,this._cl=0xfe94f82b,this._dl=0x5f1d36f1,this._el=0xade682d1,this._fl=0x2b3e6c1f,this._gl=0xfb41bd6b,this._hl=0x137e2179,this},$.prototype._update=function(N){for(var I=this._w,T=0|this._ah,P=0|this._bh,D=0|this._ch,M=0|this._dh,L=0|this._eh,$=0|this._fh,V=0|this._gh,Y=0|this._hh,J=0|this._al,Q=0|this._bl,Z=0|this._cl,X=0|this._dl,ee=0|this._el,et=0|this._fl,er=0|this._gl,en=0|this._hl,ea=0;ea<32;ea+=2)I[ea]=N.readInt32BE(4*ea),I[ea+1]=N.readInt32BE(4*ea+4);for(;ea<160;ea+=2){var ei=I[ea-30],eo=I[ea-30+1],es=z(ei,eo),el=W(eo,ei),ec=q(ei=I[ea-4],eo=I[ea-4+1]),eu=G(eo,ei),ed=I[ea-14],ef=I[ea-14+1],eh=I[ea-32],ep=I[ea-32+1],em=el+ef|0,eg=es+ed+K(em,el)|0;eg=(eg=eg+ec+K(em=em+eu|0,eu)|0)+eh+K(em=em+ep|0,ep)|0,I[ea]=eg,I[ea+1]=em}for(var ey=0;ey<160;ey+=2){eg=I[ey],em=I[ey+1];var eb=B(T,P,D),ev=B(J,Q,Z),ew=U(T,J),ex=U(J,T),eA=H(L,ee),eE=H(ee,L),eS=R[ey],e_=R[ey+1],ek=F(L,$,V),eC=F(ee,et,er),ej=en+eE|0,eO=Y+eA+K(ej,en)|0;eO=(eO=(eO=eO+ek+K(ej=ej+eC|0,eC)|0)+eS+K(ej=ej+e_|0,e_)|0)+eg+K(ej=ej+em|0,em)|0;var eN=ex+ev|0,eI=ew+eb+K(eN,ex)|0;Y=V,en=er,V=$,er=et,$=L,et=ee,L=M+eO+K(ee=X+ej|0,X)|0,M=D,X=Z,D=P,Z=Q,P=T,Q=J,T=eO+eI+K(J=ej+eN|0,ej)|0}this._al=this._al+J|0,this._bl=this._bl+Q|0,this._cl=this._cl+Z|0,this._dl=this._dl+X|0,this._el=this._el+ee|0,this._fl=this._fl+et|0,this._gl=this._gl+er|0,this._hl=this._hl+en|0,this._ah=this._ah+T+K(this._al,J)|0,this._bh=this._bh+P+K(this._bl,Q)|0,this._ch=this._ch+D+K(this._cl,Z)|0,this._dh=this._dh+M+K(this._dl,X)|0,this._eh=this._eh+L+K(this._el,ee)|0,this._fh=this._fh+$+K(this._fl,et)|0,this._gh=this._gh+V+K(this._gl,er)|0,this._hh=this._hh+Y+K(this._hl,en)|0},$.prototype._hash=function(){var N=M.allocUnsafe(64);function I(I,T,P){N.writeInt32BE(I,P),N.writeInt32BE(T,P+4)}return I(this._ah,this._al,0),I(this._bh,this._bl,8),I(this._ch,this._cl,16),I(this._dh,this._dl,24),I(this._eh,this._el,32),I(this._fh,this._fl,40),I(this._gh,this._gl,48),I(this._hh,this._hl,56),N},N.exports=$},7319:function(N,I,T){"use strict";var P=T(5056).Buffer,D=P.isEncoding||function(N){switch((N=""+N)&&N.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function M(N){var I;if(!N)return"utf8";for(;;)switch(N){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return N;default:if(I)return;N=(""+N).toLowerCase(),I=!0}
1152}function R(N){var I=M(N);if("string"!=typeof I&&(P.isEncoding===D||!D(N)))throw Error("Unknown encoding: "+N);return I||N}function L(N){var I;switch(this.encoding=R(N),this.encoding){case"utf16le":this.text=W,this.end=q,I=4;break;case"utf8":this.fillLast=U,I=4;break;case"base64":this.text=G,this.end=K,I=3;break;default:this.write=V,this.end=Y;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=P.allocUnsafe(I)}function $(N){return N<=127?0:N>>5==6?2:N>>4==14?3:N>>3==30?4:N>>6==2?-1:-2}function F(N,I,T){var P=I.length-1;if(P<T)return 0;var D=$(I[P]);return D>=0?(D>0&&(N.lastNeed=D-1),D):--P<T||-2===D?0:(D=$(I[P]))>=0?(D>0&&(N.lastNeed=D-2),D):--P<T||-2===D?0:(D=$(I[P]))>=0?(D>0&&(2===D?D=0:N.lastNeed=D-3),D):0}function B(N,I,T){if((192&I[0])!=128)return N.lastNeed=0,"�";if(N.lastNeed>1&&I.length>1){if((192&I[1])!=128)return N.lastNeed=1,"�";if(N.lastNeed>2&&I.length>2&&(192&I[2])!=128)return N.lastNeed=2,"�"}}function U(N){var I=this.lastTotal-this.lastNeed,T=B(this,N,I);return void 0!==T?T:this.lastNeed<=N.length?(N.copy(this.lastChar,I,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(N.copy(this.lastChar,I,0,N.length),this.lastNeed-=N.length)}function H(N,I){var T=F(this,N,I);if(!this.lastNeed)return N.toString("utf8",I);this.lastTotal=T;var P=N.length-(T-this.lastNeed);return N.copy(this.lastChar,0,P),N.toString("utf8",I,P)}function z(N){var I=N&&N.length?this.write(N):"";return this.lastNeed?I+"�":I}function W(N,I){if((N.length-I)%2==0){var T=N.toString("utf16le",I);if(T){var P=T.charCodeAt(T.length-1);if(P>=55296&&P<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=N[N.length-2],this.lastChar[1]=N[N.length-1],T.slice(0,-1)}return T}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=N[N.length-1],N.toString("utf16le",I,N.length-1)}function q(N){var I=N&&N.length?this.write(N):"";if(this.lastNeed){var T=this.lastTotal-this.lastNeed;return I+this.lastChar.toString("utf16le",0,T)}return I}function G(N,I){var T=(N.length-I)%3;return 0===T?N.toString("base64",I):(this.lastNeed=3-T,this.lastTotal=3,1===T?this.lastChar[0]=N[N.length-1]:(this.lastChar[0]=N[N.length-2],this.lastChar[1]=N[N.length-1]),N.toString("base64",I,N.length-T))}function K(N){var I=N&&N.length?this.write(N):"";return this.lastNeed?I+this.lastChar.toString("base64",0,3-this.lastNeed):I}function V(N){return N.toString(this.encoding)}function Y(N){return N&&N.length?this.write(N):""}I.I=L,L.prototype.write=function(N){var I,T;if(0===N.length)return"";if(this.lastNeed){if(void 0===(I=this.fillLast(N)))return"";T=this.lastNeed,this.lastNeed=0}else T=0;return T<N.length?I?I+this.text(N,T):this.text(N,T):I||""},L.prototype.end=z,L.prototype.text=H,L.prototype.fillLast=function(N){if(this.lastNeed<=N.length)return N.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);N.copy(this.lastChar,this.lastTotal-this.lastNeed,0,N.length),this.lastNeed-=N.length}},4774:function(N){function I(N){try{if(!T.g.localStorage)return!1}catch(N){return!1}var I=T.g.localStorage[N];return null!=I&&"true"===String(I).toLowerCase()}N.exports=function N(N,T){if(I("noDeprecation"))return N;var P=!1;return function(){if(!P){if(I("throwDeprecation"))throw Error(T);I("traceDeprecation")?console.trace(T):console.warn(T),P=!0}return N.apply(this,arguments)}}},181:function(N){"use strict";N.exports=T(82909)},6982:function(N){"use strict";N.exports=T(63426)},4434:function(N){"use strict";N.exports=T(95284)},2203:function(N){"use strict";N.exports=T(32545)},3193:function(N){"use strict";N.exports=T(15773)},9023:function(N){"use strict";N.exports=T(68994)},9154:function(N){"use strict";N.exports=T(38870)},3349:function(N){"use strict";N.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"}
1152,"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},3678:function(N){"use strict";N.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},6456:function(N){"use strict";N.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},7821:function(N){"use strict";N.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd4
115207b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},4497:function(N){"use strict";N.exports={rE:"6.5.3"}},7016:function(N){"use strict";N.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')}},L={};function $(N){var I=L[N];if(void 0!==I)return I.exports;var T=L[N]={id:N,loaded:!1,exports:{}},P=!0;try{R[N].call(T.exports,T,T.exports,$),P=!1}finally{P&&delete L[N]}return T.loaded=!0,T.exports}$.nmd=function(N){return N.paths=[],N.children||(N.children=[]),N},$.ab=P+"/";var F={};!function(){"use strict";var N=F;N.randomBytes=N.rng=N.pseudoRandomBytes=N.prng=$(376),N.createHash=N.Hash=$(762),N.createHmac=N.Hmac=$(3256);var I=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(Object.keys($(6713)));N.getHashes=function(){return I};var T=$(4542);N.pbkdf2=T.pbkdf2,N.pbkdf2Sync=T.pbkdf2Sync;var P=$(9131);N.Cipher=P.Cipher,N.createCipher=P.createCipher,N.Cipheriv=P.Cipheriv,N.createCipheriv=P.createCipheriv,N.Decipher=P.Decipher,N.createDecipher=P.createDecipher,N.Decipheriv=P.Decipheriv,N.createDecipheriv=P.createDecipheriv,N.getCiphers=P.getCiphers,N.listCiphers=P.listCiphers;var D=$(857);N.DiffieHellmanGroup=D.DiffieHellmanGroup,N.createDiffieHellmanGroup=D.createDiffieHellmanGroup,N.getDiffieHellman=D.getDiffieHellman,N.createDiffieHellman=D.createDiffieHellman,N.DiffieHellman=D.DiffieHellman;var M=$(2926);N.createSign=M.createSign,N.Sign=M.Sign,N.createVerify=M.createVerify,N.Verify=M.Verify,N.createECDH=$(8814);var R=$(6734);N.publicEncrypt=R.publicEncrypt,N.privateEncrypt=R.privateEncrypt,N.publicDecrypt=R.publicDecrypt,N.privateDecrypt=R.privateDecrypt;var L=$(236);N.randomFill=L.randomFill,N.randomFillSync=L.randomFillSync,N.createCredentials=function(){throw Error("sorry, createCredentials is not implemented yet\nwe accept pull requests\nhttps://github.com/crypto-browserify/crypto-browserify")},N.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}}(),N.exports=F},63561:(N,I,T)=>{"use strict";T.d(I,{N:()=>M});var P=T(14232),D=T(73813);function M(N,I){let T=N=>{var T;let{editable:M=!0}=N;if((null==(T=N.field)?void 0:T.metadata)&&M&&(0,D.JE)(N.field)&&!N.renderChildrenWhenEmpty){let T=N.emptyFieldEditingComponent||I.defaultEmptyFieldEditingComponent,D=N;return N.emptyFieldEditingComponent||(D=Object.assign(Object.assign({},N),{editable:void 0,field:void 0})),P.createElement(T,Object.assign({},D,{suppressHydrationWarning:!0}))}return null};return I.isForwardRef?I=>T(I)||P.createElement(N,Object.assign({},I)):I=>T(I)||P.createElement(N,Object.assign({},I))}},63780:(N,I,T)=>{"use strict";T.r(I),T.d(I,{Component:()=>ei,Fragment:()=>ea,cloneElement:()=>eO,createContext:()=>eN,createElement:()=>et,createRef:()=>en,h:()=>et,hydrate:()=>ej,isValidElement:()=>R,options:()=>D,render:()=>eC,toChildArray:()=>ep});var P,D,M,R,L,$,F,B,U,H,z,W,q,G,K,V,Y={},J=[],Q=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Z=Array.isArray;function X(N,I){for(var T in I)N[T]=I[T];return N}function ee(N){N&&N.parentNode&&N.parentNode.removeChild(N)}function et(N,I,T){var D,M,R,L={};for(R in I)"key"==R?D=I[R]:"ref"==R?M=I[R]:L[R]=I[R];if(arguments.length>2&&(L.children=arguments.length>3?P.call(arguments,2):T),"function"==typeof N&&null!=N.defaultProps)for(R in N.defaultProps)void 0===L[R]&&(L[R]=N.defaultProps[R]);return er(N,L,D,M,null)}function er(N,I,T,P,R){var L={type:N,props:I,key:T,ref:P,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==R?++M:R,__i:-1,__u:0};return null==R&&null!=D.vnode&&D.vnode(L),L}function en(){return{current:null}}function ea(N){return N.children}function ei(N,I){this.props=N,this.context=I}function eo(N,I){if(null==I)return N.__?eo(N.__,N.__i+1):null;for(var T;I<N.__k.length;I++)if(null!=(T=N.__k[I])&&null!=T.__e)return T.__e;return"function"==typeof N.type?eo(N):null}function es(N){if(N.__P&&N.__d){var I=N.__v,T=I.__e,P=[],M=[],R=X({},I);R.__v=I.__v+1,D.vnode&&D.vnode(R),ev(N.__P,R,I,N.__n,N.__P.namespaceURI,32&I.__u?[T]:null,P,null==T?eo(I):T,!!(32&I.__u),M),R.__v=I.__v,R.__.__k[R.__i]=R,ex(P,R,M),I.__e=I.__=null,R.__e!=T&&el(R)}}function el(N){if(null!=(N=N.__)&&null!=N.__c)return N.__e=N.__c.base=null,N.__k.some(function(I){if(null!=I&&null!=I.__e)return N.__e=N.__c.base=I.__e}),el(N)}function ec(N){(!N.__d&&(N.__d=!0)&&L.push(N)&&!eu.__r++||$!=D.debounceRendering)&&(($=D.debounceRendering)||F)(eu)}function eu(){try{for(var N,I=1;L.length;)L.length>I&&L.sort(B),N=L.shift(),I=L.length,es(N)}finally{L.length=eu.__r=0}}function ed(N,I,T,P,D,M,R,L,$,F,B){var U,H,z,W,q,G,K,V=P&&P.__k||J,Q=I.length;for($=ef(T,I,V,$,Q),U=0;U<Q;U++)null!=(z=T.__k[U])&&(H=-1!=z.__i&&V[z.__i]||Y,z.__i=U,G=ev(N,z,H,D,M,R,L,$,F,B),W=z.__e,z.ref&&H.ref!=z.ref&&(H.ref&&eS(H.ref,null,z),B.push(z.ref,z.__c||W,z)),null==q&&null!=W&&(q=W),(K=!!(4&z.__u))||H.__k===z.__k?($=eh(z,$,N,K),K&&H.__e&&(H.__e=null)):"function"==typeof z.type&&void 0!==G?$=G:W&&($=W.nextSibling),z.__u&=-7);return T.__e=q,$}function ef(N,I,T,P,D){var M,R,L,$,F,B=T.length,U=B,H=0;for(N.__k=Array(D),M=0;M<D;M++)null!=(R=I[M])&&"boolean"!=typeof R&&"function"!=typeof R?("string"==typeof R||"number"==typeof R||"bigint"==typeof R||R.constructor==String?R=N.__k[M]=er(null,R,null,null,null):Z(R)?R=N.__k[M]=er(ea,{children:R},null,null,null):void 0===R.constructor&&R.__b>0?R=N.__k[M]=er(R.type,R.props,R.key,R.ref?R.ref:null,R.__v):N.__k[M]=R,$=M+H,R.__=N,R.__b=N.__b+1,L=null,-1!=(F=R.__i=em(R,T,$,U))&&(U--,(L=T[F])&&(L.__u|=2)),null==L||null==L.__v?(-1==F&&(D>B?H--:D<B&&H++),"function"!=typeof R.type&&(R.__u|=4)):F!=$&&(F==$-1?H--:F==$+1?H++:(F>$?H--:H++,R.__u|=4))):N.__k[M]=null;if(U)for(M=0;M<B;M++)null!=(L=T[M])&&0==(2&L.__u)&&(L.__e==P&&(P=eo(L)),e_(L,L));return P}function eh(N,I,T,P){var D,M;if("function"==typeof N.type){for(D=N.__k,M=0;D&&M<D.length;M++)D[M]&&(D[M].__=N,I=eh(D[M],I,T,P));return I}N.__e!=I&&(P&&(I&&N.type&&!I.parentNode&&(I=eo(N)),T.insertBefore(N.__e,I||null)),I=N.__e);do I=I&&I.nextSibling;while(null!=I&&8==I.nodeType);return I}function ep(N,I){return I=I||[],null==N||"boolean"==typeof N||(Z(N)?N.some(function(N){ep(N,I)}):I.push(N)),I}function em(N,I,T,P){var D,M,R,L=N.key,$=N.type,F=I[T],B=null!=F&&0==(2&F.__u);if(null===F&&null==L||B&&L==F.key&&$==F.type)return T;if(P>+!!B){for(D=T-1,M=T+1;D>=0||M<I.length;)if(null!=(F=I[R=D>=0?D--:M++])&&0==(2&F.__u)&&L==F.key&&$==F.type)return R}return -1}function eg(N,I,T){"-"==I[0]?N.setProperty(I,null==T?"":T):N[I]=null==T?"":"number"!=typeof T||Q.test(I)?T:T+"px"}function ey(N,I,T,P,D){var M,R;t:if("style"==I)if("string"==typeof T)N.style.cssText=T;else{if("string"==typeof P&&(N.style.cssText=P=""),P)for(I in P)T&&I in T||eg(N.style,I,"");if(T)for(I in T)P&&T[I]==P[I]||eg(N.style,I,T[I])}else if("o"==I[0]&&"n"==I[1])M=I!=(I=I.replace(W,"$1")),I=(R=I.toLowerCase())in N||"onFocusOut"==I||"onFocusIn"==I?R.slice(2):I.slice(2),N.l||(N.l={}),N.l[I+M]=T,T?P?T[z]=P[z]:(T[z]=q,N.addEventListener(I,M?K:G,M)):N.removeEventListener(I,M?K:G,M);else{if("http://www.w3.org/2000/svg"==D)I=I.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=I&&"height"!=I&&"href"!=I&&"list"!=I&&"form"!=I&&"tabIndex"!=I&&"download"!=I&&"rowSpan"!=I&&"colSpan"!=I&&"role"!=I&&"popover"!=I&&I in N)try{N[I]=null==T?"":T;break t}catch(N){}"function"==typeof T||(null==T||!1===T&&"-"!=I[4]?N.removeAttribute(I):N.setAttribute(I,"popover"==I&&1==T?"":T))}}function eb(N){return function(I){if(this.l){var T=this.l[I.type+N];if(null==I[H])I[H]=q++;else if(I[H]<T[z])return;return T(D.event?D.event(I):I)}}}function ev(N,I,T,P,M,R,L,$,F,B){var U,H,z,W,q,G,K,V,Y,Q,et,er,en,eo,es,el=I.type;if(void 0!==I.constructor)return null;128&T.__u&&(F=!!(32&T.__u),R=[$=I.__e=T.__e]),(U=D.__b)&&U(I);t:if("function"==typeof el)try{if(V=I.props,Y=el.prototype&&el.prototype.render,Q=(U=el.contextType)&&P[U.__c],et=U?Q?Q.props.value:U.__:P,T.__c?K=(H=I.__c=T.__c).__=H.__E:(Y?I.__c=H=new el(V,et):(I.__c=H=new ei(V,et),H.constructor=el,H.render=ek),Q&&Q.sub(H),H.state||(H.state={}
vendor: 5,403 bytes, line 1152
1152),H.__n=P,z=H.__d=!0,H.__h=[],H._sb=[]),Y&&null==H.__s&&(H.__s=H.state),Y&&null!=el.getDerivedStateFromProps&&(H.__s==H.state&&(H.__s=X({},H.__s)),X(H.__s,el.getDerivedStateFromProps(V,H.__s))),W=H.props,q=H.state,H.__v=I,z)Y&&null==el.getDerivedStateFromProps&&null!=H.componentWillMount&&H.componentWillMount(),Y&&null!=H.componentDidMount&&H.__h.push(H.componentDidMount);else{if(Y&&null==el.getDerivedStateFromProps&&V!==W&&null!=H.componentWillReceiveProps&&H.componentWillReceiveProps(V,et),I.__v==T.__v||!H.__e&&null!=H.shouldComponentUpdate&&!1===H.shouldComponentUpdate(V,H.__s,et)){I.__v!=T.__v&&(H.props=V,H.state=H.__s,H.__d=!1),I.__e=T.__e,I.__k=T.__k,I.__k.some(function(N){N&&(N.__=I)}),J.push.apply(H.__h,H._sb),H._sb=[],H.__h.length&&L.push(H);break t}null!=H.componentWillUpdate&&H.componentWillUpdate(V,H.__s,et),Y&&null!=H.componentDidUpdate&&H.__h.push(function(){H.componentDidUpdate(W,q,G)})}if(H.context=et,H.props=V,H.__P=N,H.__e=!1,er=D.__r,en=0,Y)H.state=H.__s,H.__d=!1,er&&er(I),U=H.render(H.props,H.state,H.context),J.push.apply(H.__h,H._sb),H._sb=[];else do H.__d=!1,er&&er(I),U=H.render(H.props,H.state,H.context),H.state=H.__s;while(H.__d&&++en<25);H.state=H.__s,null!=H.getChildContext&&(P=X(X({},P),H.getChildContext())),Y&&!z&&null!=H.getSnapshotBeforeUpdate&&(G=H.getSnapshotBeforeUpdate(W,q)),eo=null!=U&&U.type===ea&&null==U.key?eA(U.props.children):U,$=ed(N,Z(eo)?eo:[eo],I,T,P,M,R,L,$,F,B),H.base=I.__e,I.__u&=-161,H.__h.length&&L.push(H),K&&(H.__E=H.__=null)}catch(N){if(I.__v=null,F||null!=R)if(N.then){for(I.__u|=F?160:128;$&&8==$.nodeType&&$.nextSibling;)$=$.nextSibling;R[R.indexOf($)]=null,I.__e=$}else{for(es=R.length;es--;)ee(R[es]);ew(I)}else I.__e=T.__e,I.__k=T.__k,N.then||ew(I);D.__e(N,I,T)}else null==R&&I.__v==T.__v?(I.__k=T.__k,I.__e=T.__e):$=I.__e=eE(T.__e,I,T,P,M,R,L,F,B);return(U=D.diffed)&&U(I),128&I.__u?void 0:$}function ew(N){N&&(N.__c&&(N.__c.__e=!0),N.__k&&N.__k.some(ew))}function ex(N,I,T){for(var P=0;P<T.length;P++)eS(T[P],T[++P],T[++P]);D.__c&&D.__c(I,N),N.some(function(I){try{N=I.__h,I.__h=[],N.some(function(N){N.call(I)})}catch(N){D.__e(N,I.__v)}})}function eA(N){return"object"!=typeof N||null==N||N.__b>0?N:Z(N)?N.map(eA):X({},N)}function eE(N,I,T,M,R,L,$,F,B){var U,H,z,W,q,G,K,V=T.props||Y,J=I.props,Q=I.type;if("svg"==Q?R="http://www.w3.org/2000/svg":"math"==Q?R="http://www.w3.org/1998/Math/MathML":R||(R="http://www.w3.org/1999/xhtml"),null!=L){for(U=0;U<L.length;U++)if((q=L[U])&&"setAttribute"in q==!!Q&&(Q?q.localName==Q:3==q.nodeType)){N=q,L[U]=null;break}}if(null==N){if(null==Q)return document.createTextNode(J);N=document.createElementNS(R,Q,J.is&&J),F&&(D.__m&&D.__m(I,L),F=!1),L=null}if(null==Q)V===J||F&&N.data==J||(N.data=J);else{if(L=L&&P.call(N.childNodes),!F&&null!=L)for(V={},U=0;U<N.attributes.length;U++)V[(q=N.attributes[U]).name]=q.value;for(U in V)q=V[U],"dangerouslySetInnerHTML"==U?z=q:"children"==U||U in J||"value"==U&&"defaultValue"in J||"checked"==U&&"defaultChecked"in J||ey(N,U,null,q,R);for(U in J)q=J[U],"children"==U?W=q:"dangerouslySetInnerHTML"==U?H=q:"value"==U?G=q:"checked"==U?K=q:F&&"function"!=typeof q||V[U]===q||ey(N,U,q,V[U],R);if(H)F||z&&(H.__html==z.__html||H.__html==N.innerHTML)||(N.innerHTML=H.__html),I.__k=[];else if(z&&(N.innerHTML=""),ed("template"==I.type?N.content:N,Z(W)?W:[W],I,T,M,"foreignObject"==Q?"http://www.w3.org/1999/xhtml":R,L,$,L?L[0]:T.__k&&eo(T,0),F,B),null!=L)for(U=L.length;U--;)ee(L[U]);F||(U="value","progress"==Q&&null==G?N.removeAttribute("value"):null==G||G===N[U]&&("progress"!=Q||G)&&("option"!=Q||G==V[U])||ey(N,U,G,V[U],R),U="checked",null!=K&&K!=N[U]&&ey(N,U,K,V[U],R))}return N}function eS(N,I,T){try{if("function"==typeof N){var P="function"==typeof N.__u;P&&N.__u(),P&&null==I||(N.__u=N(I))}else N.current=I}catch(N){D.__e(N,T)}}function e_(N,I,T){var P,M;if(D.unmount&&D.unmount(N),(P=N.ref)&&(P.current&&P.current!=N.__e||eS(P,null,I)),null!=(P=N.__c)){if(P.componentWillUnmount)try{P.componentWillUnmount()}catch(N){D.__e(N,I)}P.base=P.__P=null}if(P=N.__k)for(M=0;M<P.length;M++)P[M]&&e_(P[M],I,T||"function"!=typeof N.type);T||ee(N.__e),N.__c=N.__=N.__e=void 0}function ek(N,I,T){return this.constructor(N,T)}function eC(N,I,T){var M,R,L,$;I==document&&(I=document.documentElement),D.__&&D.__(N,I),R=(M="function"==typeof T)?null:T&&T.__k||I.__k,L=[],$=[],ev(I,N=(!M&&T||I).__k=et(ea,null,[N]),R||Y,Y,I.namespaceURI,!M&&T?[T]:R?null:I.firstChild?P.call(I.childNodes):null,L,!M&&T?T:R?R.__e:I.firstChild,M,$),ex(L,N,$)}function ej(N,I){eC(N,I,ej)}function eO(N,I,T){var D,M,R,L,$=X({},N.props);for(R in N.type&&N.type.defaultProps&&(L=N.type.defaultProps),I)"key"==R?D=I[R]:"ref"==R?M=I[R]:$[R]=void 0===I[R]&&null!=L?L[R]:I[R];return arguments.length>2&&($.children=arguments.length>3?P.call(arguments,2):T),er(N.type,$,D||N.key,M||N.ref,null)}function eN(N){function I(N){var T,P;return this.getChildContext||(T=new Set,(P={})[I.__c]=this,this.getChildContext=function(){return P},this.componentWillUnmount=function(){T=null},this.shouldComponentUpdate=function(N){this.props.value!=N.value&&T.forEach(function(N){N.__e=!0,ec(N)})},this.sub=function(N){T.add(N);var I=N.componentWillUnmount;N.componentWillUnmount=function(){T&&T.delete(N),I&&I.call(N)}}),N.children}return I.__c="__cC"+V++,I.__=N,I.Provider=I.__l=(I.Consumer=function(N,I){return N.children(I)}).contextType=I,I}P=J.slice,D={__e:function(N,I,T,P){for(var D,M,R;I=I.__;
1152)if((D=I.__c)&&!D.__)try{if((M=D.constructor)&&null!=M.getDerivedStateFromError&&(D.setState(M.getDerivedStateFromError(N)),R=D.__d),null!=D.componentDidCatch&&(D.componentDidCatch(N,P||{}),R=D.__d),R)return D.__E=D}catch(I){N=I}throw N}},M=0,R=function(N){return null!=N&&void 0===N.constructor},ei.prototype.setState=function(N,I){var T;T=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=X({},this.state),"function"==typeof N&&(N=N(X({},T),this.props)),N&&X(T,N),null!=N&&this.__v&&(I&&this._sb.push(I),ec(this))},ei.prototype.forceUpdate=function(N){this.__v&&(this.__e=!0,N&&this.__h.push(N),ec(this))},ei.prototype.render=ea,L=[],F="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,B=function(N,I){return N.__v.__b-I.__v.__b},eu.__r=0,H="__d"+(U=Math.random().toString(8)),z="__a"+U,W=/(PointerCapture)$|Capture$/i,q=0,G=eb(!1),K=eb(!0),V=0},63808:(N,I,T)=>{"use strict";T.d(I,{Kw:()=>ih,D0:()=>ie,ED:()=>id,lV:()=>it,l1:()=>a0,dc:()=>aY,Mt:()=>a9,j7:()=>aF});var P,D,M,R=function(N){return L(N)&&!$(N)};function L(N){return!!N&&"object"==typeof N}function $(N){var I=Object.prototype.toString.call(N);return"[object RegExp]"===I||"[object Date]"===I||B(N)}var F="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function B(N){return N.$$typeof===F}function U(N){return Array.isArray(N)?[]:{}}function H(N,I){return!1!==I.clone&&I.isMergeableObject(N)?q(U(N),N,I):N}
1152function z(N,I,T){return N.concat(I).map(function(N){return H(N,T)})}function W(N,I,T){var P={};return T.isMergeableObject(N)&&Object.keys(N).forEach(function(I){P[I]=H(N[I],T)}),Object.keys(I).forEach(function(D){T.isMergeableObject(I[D])&&N[D]?P[D]=q(N[D],I[D],T):P[D]=H(I[D],T)}),P}function q(N,I,T){(T=T||{}).arrayMerge=T.arrayMerge||z,T.isMergeableObject=T.isMergeableObject||R;var P=Array.isArray(I);return P!==Array.isArray(N)?H(I,T):P?T.arrayMerge(N,I,T):W(N,I,T)}q.all=function(N,I){if(!Array.isArray(N))throw Error("first argument should be an array");return N.reduce(function(N,T){return q(N,T,I)},{})};let G=q,K="object"==typeof global&&global&&global.Object===Object&&global;var V="object"==typeof self&&self&&self.Object===Object&&self;let Y=K||V||Function("return this")(),J=Y.Symbol;var Q=Object.prototype,Z=Q.hasOwnProperty,X=Q.toString,ee=J?J.toStringTag:void 0;let et=function(N){var I=Z.call(N,ee),T=N[ee];try{N[ee]=void 0;var P=!0}catch(N){}var D=X.call(N);return P&&(I?N[ee]=T:delete N[ee]),D};var er=Object.prototype.toString;let en=function(N){return er.call(N)};var ea="[object Null]",ei="[object Undefined]",eo=J?J.toStringTag:void 0;let es=function(N){return null==N?void 0===N?ei:ea:eo&&eo in Object(N)?et(N):en(N)},el=function(N,I){return function(T){return N(I(T))}},ec=el(Object.getPrototypeOf,Object),eu=function(N){return null!=N&&"object"==typeof N};var ed="[object Object]",ef=Object.prototype,eh=Function.prototype.toString,ep=ef.hasOwnProperty,em=eh.call(Object);let eg=function(N){if(!eu(N)||es(N)!=ed)return!1;var I=ec(N);if(null===I)return!0;var T=ep.call(I,"constructor")&&I.constructor;return"function"==typeof T&&T instanceof T&&eh.call(T)==em},ey=function(){this.__data__=[],this.size=0},eb=function(N,I){return N===I||N!=N&&I!=I},ev=function(N,I){for(var T=N.length;T--;)if(eb(N[T][0],I))return T;return -1};var ew=Array.prototype.splice;let ex=function(N){var I=this.__data__,T=ev(I,N);return!(T<0)&&(T==I.length-1?I.pop():ew.call(I,T,1),--this.size,!0)},eA=function(N){var I=this.__data__,T=ev(I,N);return T<0?void 0:I[T][1]},eE=function(N){return ev(this.__data__,N)>-1},eS=function(N,I){var T=this.__data__,P=ev(T,N);return P<0?(++this.size,T.push([N,I])):T[P][1]=I,this};function e_(N){var I=-1,T=null==N?0:N.length;for(this.clear();++I<T;){var P=N[I];this.set(P[0],P[1])}}e_.prototype.clear=ey,e_.prototype.delete=ex,e_.prototype.get=eA,e_.prototype.has=eE,e_.prototype.set=eS;let ek=e_,eC=function(){this.__data__=new ek,this.size=0},ej=function(N){var I=this.__data__,T=I.delete(N);return this.size=I.size,T},eO=function(N){return this.__data__.get(N)},eN=function(N){return this.__data__.has(N)},eI=function(N){var I=typeof N;return null!=N&&("object"==I||"function"==I)};var eT="[object AsyncFunction]",eP="[object Function]",eD="[object GeneratorFunction]",eM="[object Proxy]";let eR=function(N){if(!eI(N))return!1;var I=es(N);return I==eP||I==eD||I==eT||I==eM},eL=Y["__core-js_shared__"];var e$=(M=/[^.]+$/.exec(eL&&eL.keys&&eL.keys.IE_PROTO||""))?"Symbol(src)_1."+M:"";let eF=function(N){return!!e$&&e$ in N};var eB=Function.prototype.toString;let eU=function(N){if(null!=N){try{return eB.call(N)}catch(N){}try{return N+""}catch(N){}}return""};var eH=/[\\^$.*+?()[\]{}|]/g,ez=/^\[object .+?Constructor\]$/,eW=Object.prototype,eq=Function.prototype.toString,eG=eW.hasOwnProperty,eK=RegExp("^"+eq.call(eG).replace(eH,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");let eV=function(N){return!(!eI(N)||eF(N))&&(eR(N)?eK:ez).test(eU(N))},eY=function(N,I){return null==N?void 0:N[I]},eJ=function(N,I){var T=eY(N,I);return eV(T)?T:void 0},eQ=eJ(Y,"Map"),eZ=eJ(Object,"create"),eX=function(){this.__data__=eZ?eZ(null):{},this.size=0},e0=function(N){var I=this.has(N)&&delete this.__data__[N];return this.size-=!!I,I};var e1="__lodash_hash_undefined__",e2=Object.prototype.hasOwnProperty;let e3=function(N){var I=this.__data__;if(eZ){var T=I[N];return T===e1?void 0:T}return e2.call(I,N)?I[N]:void 0};var e4=Object.prototype.hasOwnProperty;let e5=function(N){var I=this.__data__;return eZ?void 0!==I[N]:e4.call(I,N)};var e6="__lodash_hash_undefined__";let e8=function(N,I){var T=this.__data__;return this.size+=+!this.has(N),T[N]=eZ&&void 0===I?e6:I,this};function e7(N){var I=-1,T=null==N?0:N.length;for(this.clear();++I<T;){var P=N[I];this.set(P[0],P[1])}}e7.prototype.clear=eX,e7.prototype.delete=e0,e7.prototype.get=e3,e7.prototype.has=e5,e7.prototype.set=e8;let e9=e7,te=function(){this.size=0,this.__data__={hash:new e9,map:new(eQ||ek),string:new e9}},tt=function(N){var I=typeof N;return"string"==I||"number"==I||"symbol"==I||"boolean"==I?"__proto__"!==N:null===N},tr=function(N,I){var T=N.__data__;return tt(I)?T["string"==typeof I?"string":"hash"]:T.map},tn=function(N){var I=tr(this,N).delete(N);return this.size-=!!I,I},ta=function(N){return tr(this,N).get(N)},ti=function(N){return tr(this,N).has(N)},to=function(N,I){var T=tr(this,N),P=T.size;
1152return T.set(N,I),this.size+=+(T.size!=P),this};function ts(N){var I=-1,T=null==N?0:N.length;for(this.clear();++I<T;){var P=N[I];this.set(P[0],P[1])}}ts.prototype.clear=te,ts.prototype.delete=tn,ts.prototype.get=ta,ts.prototype.has=ti,ts.prototype.set=to;let tl=ts;var tc=200;let tu=function(N,I){var T=this.__data__;if(T instanceof ek){var P=T.__data__;if(!eQ||P.length<tc-1)return P.push([N,I]),this.size=++T.size,this;T=this.__data__=new tl(P)}return T.set(N,I),this.size=T.size,this};function td(N){var I=this.__data__=new ek(N);this.size=I.size}td.prototype.clear=eC,td.prototype.delete=ej,td.prototype.get=eO,td.prototype.has=eN,td.prototype.set=tu;let tf=td,th=function(N,I){for(var T=-1,P=null==N?0:N.length;++T<P&&!1!==I(N[T],T,N););return N},tp=function(){try{var N=eJ(Object,"defineProperty");return N({},"",{}),N}catch(N){}}(),tm=function(N,I,T){"__proto__"==I&&tp?tp(N,I,{configurable:!0,enumerable:!0,value:T,writable:!0}):N[I]=T};var tg=Object.prototype.hasOwnProperty;let ty=function(N,I,T){var P=N[I];tg.call(N,I)&&eb(P,T)&&(void 0!==T||I in N)||tm(N,I,T)},tb=function(N,I,T,P){var D=!T;T||(T={});for(var M=-1,R=I.length;++M<R;){var L=I[M],$=P?P(T[L],N[L],L,T,N):void 0;void 0===$&&($=N[L]),D?tm(T,L,$):ty(T,L,$)}return T},tv=function(N,I){for(var T=-1,P=Array(N);++T<N;)P[T]=I(T);return P};var tw="[object Arguments]";let tx=function(N){return eu(N)&&es(N)==tw};var tA=Object.prototype,tE=tA.hasOwnProperty,tS=tA.propertyIsEnumerable;let t_=tx(function(){return arguments}())?tx:function(N){return eu(N)&&tE.call(N,"callee")&&!tS.call(N,"callee")},tk=Array.isArray,tC=function(){return!1};var tj="object"==typeof exports&&exports&&!exports.nodeType&&exports,tO=tj&&"object"==typeof module&&module&&!module.nodeType&&module,tN=tO&&tO.exports===tj?Y.Buffer:void 0;let tI=(tN?tN.isBuffer:void 0)||tC;var tT=0x1fffffffffffff,tP=/^(?:0|[1-9]\d*)$/;let tD=function(N,I){var T=typeof N;return!!(I=null==I?tT:I)&&("number"==T||"symbol"!=T&&tP.test(N))&&N>-1&&N%1==0&&N<I};var tM=0x1fffffffffffff;let tR=function(N){return"number"==typeof N&&N>-1&&N%1==0&&N<=tM};var tL="[object Arguments]",t$="[object Array]",tF="[object Boolean]",tB="[object Date]",tU="[object Error]",tH="[object Function]",tz="[object Map]",tW="[object Number]",tq="[object Object]",tG="[object RegExp]",tK="[object Set]",tV="[object String]",tY="[object WeakMap]",tJ="[object ArrayBuffer]",tQ="[object DataView]",tZ="[object Float64Array]",tX="[object Int8Array]",t0="[object Int16Array]",t1="[object Int32Array]",t2="[object Uint8Array]",t3="[object Uint8ClampedArray]",t4="[object Uint16Array]",t5="[object Uint32Array]",t6={};t6["[object Float32Array]"]=t6[tZ]=t6[tX]=t6[t0]=t6[t1]=t6[t2]=t6[t3]=t6[t4]=t6[t5]=!0,t6[tL]=t6[t$]=t6[tJ]=t6[tF]=t6[tQ]=t6[tB]=t6[tU]=t6[tH]=t6[tz]=t6[tW]=t6[tq]=t6[tG]=t6[tK]=t6[tV]=t6[tY]=!1;let t8=function(N){return eu(N)&&tR(N.length)&&!!t6[es(N)]},t7=function(N){return function(I){return N(I)}};var t9="object"==typeof exports&&exports&&!exports.nodeType&&exports,re=t9&&"object"==typeof module&&module&&!module.nodeType&&module,rt=re&&re.exports===t9&&K.process;let rr=function(){try{var N=re&&re.require&&re.require("util").types;if(N)return N;return rt&&rt.binding&&rt.binding("util")}catch(N){}}();var rn=rr&&rr.isTypedArray;let ra=rn?t7(rn):t8;var ri=Object.prototype.hasOwnProperty;let ro=function(N,I){var T=tk(N),P=!T&&t_(N),D=!T&&!P&&tI(N),M=!T&&!P&&!D&&ra(N),R=T||P||D||M,L=R?tv(N.length,String):[],$=L.length;for(var F in N)(I||ri.call(N,F))&&!(R&&("length"==F||D&&("offset"==F||"parent"==F)||M&&("buffer"==F||"byteLength"==F||"byteOffset"==F)||tD(F,$)))&&L.push(F);return L};var rs=Object.prototype;let rl=function(N){var I=N&&N.constructor;return N===("function"==typeof I&&I.prototype||rs)},rc=el(Object.keys,Object);var ru=Object.prototype.hasOwnProperty;let rd=function(N){if(!rl(N))return rc(N);var I=[];for(var T in Object(N))ru.call(N,T)&&"constructor"!=T&&I.push(T);return I},rf=function(N){return null!=N&&tR(N.length)&&!eR(N)},rh=function(N){return rf(N)?ro(N):rd(N)},rp=function(N,I){return N&&tb(I,rh(I),N)},rm=function(N){var I=[];if(null!=N)for(var T in Object(N))I.push(T);return I};var rg=Object.prototype.hasOwnProperty;let ry=function(N){if(!eI(N))return rm(N);var I=rl(N),T=[];for(var P in N)"constructor"==P&&(I||!rg.call(N,P))||T.push(P);return T}
1152,rb=function(N){return rf(N)?ro(N,!0):ry(N)},rv=function(N,I){return N&&tb(I,rb(I),N)};var rw="object"==typeof exports&&exports&&!exports.nodeType&&exports,rx=rw&&"object"==typeof module&&module&&!module.nodeType&&module,rA=rx&&rx.exports===rw?Y.Buffer:void 0,rE=rA?rA.allocUnsafe:void 0;let rS=function(N,I){if(I)return N.slice();var T=N.length,P=rE?rE(T):new N.constructor(T);return N.copy(P),P},r_=function(N,I){var T=-1,P=N.length;for(I||(I=Array(P));++T<P;)I[T]=N[T];return I},rk=function(N,I){for(var T=-1,P=null==N?0:N.length,D=0,M=[];++T<P;){var R=N[T];I(R,T,N)&&(M[D++]=R)}return M},rC=function(){return[]};var rj=Object.prototype.propertyIsEnumerable,rO=Object.getOwnPropertySymbols;let rN=rO?function(N){return null==N?[]:rk(rO(N=Object(N)),function(I){return rj.call(N,I)})}:rC,rI=function(N,I){return tb(N,rN(N),I)},rT=function(N,I){for(var T=-1,P=I.length,D=N.length;++T<P;)N[D+T]=I[T];return N},rP=Object.getOwnPropertySymbols?function(N){for(var I=[];N;)rT(I,rN(N)),N=ec(N);return I}:rC,rD=function(N,I){return tb(N,rP(N),I)},rM=function(N,I,T){var P=I(N);return tk(N)?P:rT(P,T(N))},rR=function(N){return rM(N,rh,rN)},rL=function(N){return rM(N,rb,rP)},r$=eJ(Y,"DataView"),rF=eJ(Y,"Promise"),rB=eJ(Y,"Set"),rU=eJ(Y,"WeakMap");var rH="[object Map]",rz="[object Object]",rW="[object Promise]",rq="[object Set]",rG="[object WeakMap]",rK="[object DataView]",rV=eU(r$),rY=eU(eQ),rJ=eU(rF),rQ=eU(rB),rZ=eU(rU),rX=es;(r$&&rX(new r$(new ArrayBuffer(1)))!=rK||eQ&&rX(new eQ)!=rH||rF&&rX(rF.resolve())!=rW||rB&&rX(new rB)!=rq||rU&&rX(new rU)!=rG)&&(rX=function(N){var I=es(N),T=I==rz?N.constructor:void 0,P=T?eU(T):"";if(P)switch(P){case rV:return rK;case rY:return rH;case rJ:return rW;case rQ:return rq;case rZ:return rG}return I});let r0=rX;var r1=Object.prototype.hasOwnProperty;let r2=function(N){var I=N.length,T=new N.constructor(I);return I&&"string"==typeof N[0]&&r1.call(N,"index")&&(T.index=N.index,T.input=N.input),T},r3=Y.Uint8Array,r4=function(N){var I=new N.constructor(N.byteLength);return new r3(I).set(new r3(N)),I},r5=function(N,I){var T=I?r4(N.buffer):N.buffer;return new N.constructor(T,N.byteOffset,N.byteLength)};var r6=/\w*$/;let r8=function(N){var I=new N.constructor(N.source,r6.exec(N));return I.lastIndex=N.lastIndex,I};var r7=J?J.prototype:void 0,r9=r7?r7.valueOf:void 0;let ne=function(N){return r9?Object(r9.call(N)):{}},nt=function(N,I){var T=I?r4(N.buffer):N.buffer;return new N.constructor(T,N.byteOffset,N.length)};var nr="[object Boolean]",nn="[object Date]",na="[object Map]",ni="[object Number]",no="[object RegExp]",ns="[object Set]",nl="[object String]",nc="[object Symbol]",nu="[object ArrayBuffer]",nd="[object DataView]",nf="[object Float32Array]",nh="[object Float64Array]",np="[object Int8Array]",nm="[object Int16Array]",ng="[object Int32Array]",ny="[object Uint8Array]",nb="[object Uint8ClampedArray]",nv="[object Uint16Array]",nw="[object Uint32Array]";let nx=function(N,I,T){var P=N.constructor;switch(I){case nu:return r4(N);case nr:case nn:return new P(+N);case nd:return r5(N,T);case nf:case nh:case np:case nm:case ng:case ny:case nb:case nv:case nw:return nt(N,T);case na:return new P;case ni:case nl:return new P(N);case no:return r8(N);case ns:return new P;case nc:return ne(N)}};var nA=Object.create;let nE=function(){function N(){}return function(I){if(!eI(I))return{};if(nA)return nA(I);N.prototype=I;var T=new N;return N.prototype=void 0,T}}(),nS=function(N){return"function"!=typeof N.constructor||rl(N)?{}:nE(ec(N))};var n_="[object Map]";let nk=function(N){return eu(N)&&r0(N)==n_};var nC=rr&&rr.isMap;let nj=nC?t7(nC):nk;var nO="[object Set]";let nN=function(N){return eu(N)&&r0(N)==nO};var nI=rr&&rr.isSet;let nT=nI?t7(nI):nN;var nP=1,nD=2,nM=4,nR="[object Arguments]",nL="[object Array]",n$="[object Boolean]",nF="[object Date]",nB="[object Error]",nU="[object Function]",nH="[object GeneratorFunction]",nz="[object Map]",nW="[object Number]",nq="[object Object]",nG="[object RegExp]",nK="[object Set]",nV="[object String]",nY="[object Symbol]",nJ="[object WeakMap]",nQ="[object ArrayBuffer]",nZ="[object DataView]",nX="[object Float32Array]",n0="[object Float64Array
1152]",n1="[object Int8Array]",n2="[object Int16Array]",n3="[object Int32Array]",n4="[object Uint8Array]",n5="[object Uint8ClampedArray]",n6="[object Uint16Array]",n8="[object Uint32Array]",n7={};function n9(N,I,T,P,D,M){var R,L=I&nP,$=I&nD,F=I&nM;if(T&&(R=D?T(N,P,D,M):T(N)),void 0!==R)return R;if(!eI(N))return N;var B=tk(N);if(B){if(R=r2(N),!L)return r_(N,R)}else{var U=r0(N),H=U==nU||U==nH;if(tI(N))return rS(N,L);if(U==nq||U==nR||H&&!D){if(R=$||H?{}:nS(N),!L)return $?rD(N,rv(R,N)):rI(N,rp(R,N))}else{if(!n7[U])return D?N:{};R=nx(N,U,L)}}M||(M=new tf);var z=M.get(N);if(z)return z;M.set(N,R),nT(N)?N.forEach(function(P){R.add(n9(P,I,T,P,N,M))}):nj(N)&&N.forEach(function(P,D){R.set(D,n9(P,I,T,D,N,M))});var W=F?$?rL:rR:$?rb:rh,q=B?void 0:W(N);return th(q||N,function(P,D){q&&(P=N[D=P]),ty(R,D,n9(P,I,T,D,N,M))}),R}n7[nR]=n7[nL]=n7[nQ]=n7[nZ]=n7[n$]=n7[nF]=n7[nX]=n7[n0]=n7[n1]=n7[n2]=n7[n3]=n7[nz]=n7[nW]=n7[nq]=n7[nG]=n7[nK]=n7[nV]=n7[nY]=n7[n4]=n7[n5]=n7[n6]=n7[n8]=!0,n7[nB]=n7[nU]=n7[nJ]=!1;let ae=n9;var at=1,ar=4;let an=function(N){return ae(N,at|ar)};var aa=T(14232),ai=T(51161),ao=T.n(ai),as=!0;let al=function(N,I){if(!as&&!N){var T="Warning: "+I;"u">typeof console&&console.warn(T);try{throw Error(T)}catch(N){}}};var ac=4;let au=function(N){return ae(N,ac)},ad=function(N,I){for(var T=-1,P=null==N?0:N.length,D=Array(P);++T<P;)D[T]=I(N[T],T,N);return D};var af="[object Symbol]";let ah=function(N){return"symbol"==typeof N||eu(N)&&es(N)==af};var ap="Expected a function";function am(N,I){if("function"!=typeof N||null!=I&&"function"!=typeof I)throw TypeError(ap);var T=function(){var P=arguments,D=I?I.apply(this,P):P[0],M=T.cache;if(M.has(D))return M.get(D);var R=N.apply(this,P);return T.cache=M.set(D,R)||M,R};return T.cache=new(am.Cache||tl),T}am.Cache=tl;let ag=am;var ay=500,ab=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,av=/\\(\\)?/g;let aw=(D=(P=ag(function(N){var I=[];return 46===N.charCodeAt(0)&&I.push(""),N.replace(ab,function(N,T,P,D){I.push(P?D.replace(av,"$1"):T||N)}),I},function(N){return D.size===ay&&D.clear(),N})).cache,P);var ax=1/0;let aA=function(N){if("string"==typeof N||ah(N))return N;var I=N+"";return"0"==I&&1/N==-ax?"-0":I};var aE=1/0,aS=J?J.prototype:void 0,a_=aS?aS.toString:void 0;function ak(N){if("string"==typeof N)return N;if(tk(N))return ad(N,ak)+"";if(ah(N))return a_?a_.call(N):"";var I=N+"";return"0"==I&&1/N==-aE?"-0":I}let aC=ak,aj=function(N){return null==N?"":aC(N)},aO=function(N){return tk(N)?ad(N,aA):ah(N)?[N]:r_(aw(aj(N)))};var aN=T(23520),aI=T.n(aN);function aT(){return(aT=Object.assign||function(N){for(var I=1;I<arguments.length;I++){var T=arguments[I];for(var P in T)Object.prototype.hasOwnProperty.call(T,P)&&(N[P]=T[P])}return N}).apply(this,arguments)}function aP(N,I){N.prototype=Object.create(I.prototype),N.prototype.constructor=N,N.__proto__=I}function aD(N,I){if(null==N)return{};var T,P,D={},M=Object.keys(N);for(P=0;P<M.length;P++)T=M[P],I.indexOf(T)>=0||(D[T]=N[T]);return D}function aM(N){if(void 0===N)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return N}var aR=(0,aa.createContext)(void 0);aR.displayName="FormikContext";var aL=aR.Provider,a$=aR.Consumer;function aF(){var N=(0,aa.useContext)(aR);return N||al(!1),N}var aB=function(N){return Array.isArray(N)&&0===N.length},aU=function(N){return"function"==typeof N},aH=function(N){return null!==N&&"object"==typeof N},az=function(N){return String(Math.floor(Number(N)))===N},aW=function(N){return"[object String]"===Object.prototype.toString.call(N)},aq=function(N){return 0===aa.Children.count(N)},aG=function(N){return aH(N)&&aU(N.then)};function aK(N,I,T,P){void 0===P&&(P=0);for(var D=aO(I);N&&P<D.length;)N=N[D[P++]];return P===D.length||N?void 0===N?T:N:T}function aV(N,I,T){for(var P=au(N),D=P,M=0,R=aO(I);M<R.length-1;M++){var L=R[M],$=aK(N,R.slice(0,M+1));if($&&(aH($)||Array.isArray($)))D=D[L]=au($);else{var F=R[M+1];D=D[L]=az(F)&&Number(F)>=0?[]:{}}}return(0===M?N:D)[R[M]]===T?N:(void 0===T?delete D[R[M]]:D[R[M]]=T,0===M&&void 0===T&&delete P[R[M]],P)}function aY(N,I,T,P){void 0===T&&(T=new WeakMap),void 0===P&&(P={});for(var D=0,M=Object.keys(N);D<M.length;D++){var R=M[D],L=N[R];aH(L)?T.get(L)||(T.set(L,!0),P[R]=Array.isArray(L)?[]:{},aY(L,I,T,P[R])):P[R]=I}return P}function aJ(N,I){switch(I.type){case"SET_VALUES":return aT({},N,{values:I.payload});case"SET_TOUCHED":return aT({},N,{touched:I.payload});case"SET_ERRORS":if(ao()(N.errors,I.payload))return N;return aT({},N,{errors:I.payload});case"SET_STATUS":return aT({},N,{status:I.payload});case"SET_ISSUBMITTING":return aT({},N,{isSubmitting:I.payload});case"SET_ISVALIDATING":return aT({},N,{isValidating:I.payload});case"SET_FIELD_VALUE":return aT({},N,{values:aV(N.values,I.payload.field,I.payload.value)});case"SET_FIELD_TOUCHED":return aT({},N,{touched:aV(N.touched,I.payload.field,I.payload.value)});case"SET_FIELD_ERROR":return aT({},N,{errors:aV(N.errors,I.payload.field,I.payload.value)});case"RESET_FORM":return aT({},N,I.payload);case"SET_FORMIK_STATE":return I.payload(N);case"SUBMIT_ATTEMPT":return aT({},N,{touched:aY(N.values,!0),isSubmitting:!0,submitCount:N.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return aT({},N,{isSubmitting:!1});default:return N}}var aQ={},aZ={};function aX(N){var I=N.validateOnChange,T=void 0===I||I,P=N.validateOnBlur,D=void 0===P||P,M=N.validateOnMount,R=void 0!==M&&M,L=N.isInitialValid,$=N.enableReinitialize,F=void 0!==$&&$,B=N.onSubmit,U=aD(N,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),H=aT({validateOnChange:T,validateOnBlur:D,validateOnMount:R,onSubmit:B},U),z=(0,aa.useRef)(H.initialValues),W=(0,aa.useRef)(H.initialErrors||aQ),q=(0,aa.useRef)(H.initialTouched||aZ),K=(0,aa.useRef)(H.initialStatus),V=(0,aa.useRef)(!1),Y=(0,aa.useRef)({});(0,aa.useEffect)(function(){return V.current=!0,function(){V.current=!1}},[]);
1152var J=(0,aa.useState)(0)[1],Q=(0,aa.useRef)({values:an(H.initialValues),errors:an(H.initialErrors)||aQ,touched:an(H.initialTouched)||aZ,status:an(H.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),Z=Q.current,X=(0,aa.useCallback)(function(N){var I=Q.current;Q.current=aJ(I,N),I!==Q.current&&J(function(N){return N+1})},[]),ee=(0,aa.useCallback)(function(N,I){return new Promise(function(T,P){var D=H.validate(N,I);null==D?T(aQ):aG(D)?D.then(function(N){T(N||aQ)},function(N){P(N)}):T(D)})},[H.validate]),et=(0,aa.useCallback)(function(N,I){var T=H.validationSchema,P=aU(T)?T(I):T,D=I&&P.validateAt?P.validateAt(I,N):a2(N,P);return new Promise(function(N,I){D.then(function(){N(aQ)},function(T){"ValidationError"===T.name?N(a1(T)):I(T)})})},[H.validationSchema]),er=(0,aa.useCallback)(function(N,I){return new Promise(function(T){return T(Y.current[N].validate(I))})},[]),en=(0,aa.useCallback)(function(N){var I=Object.keys(Y.current).filter(function(N){return aU(Y.current[N].validate)});return Promise.all(I.length>0?I.map(function(I){return er(I,aK(N,I))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")]).then(function(N){return N.reduce(function(N,T,P){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===T||T&&(N=aV(N,I[P],T)),N},{})})},[er]),ea=(0,aa.useCallback)(function(N){return Promise.all([en(N),H.validationSchema?et(N):{},H.validate?ee(N):{}]).then(function(N){var I=N[0],T=N[1],P=N[2];return G.all([I,T,P],{arrayMerge:a4})})},[H.validate,H.validationSchema,en,ee,et]),ei=a7(function(N){return void 0===N&&(N=Z.values),X({type:"SET_ISVALIDATING",payload:!0}),ea(N).then(function(N){return V.current&&(X({type:"SET_ISVALIDATING",payload:!1}),X({type:"SET_ERRORS",payload:N})),N})});(0,aa.useEffect)(function(){R&&!0===V.current&&ao()(z.current,H.initialValues)&&ei(z.current)},[R,ei]);var eo=(0,aa.useCallback)(function(N){var I=N&&N.values?N.values:z.current,T=N&&N.errors?N.errors:W.current?W.current:H.initialErrors||{},P=N&&N.touched?N.touched:q.current?q.current:H.initialTouched||{},D=N&&N.status?N.status:K.current?K.current:H.initialStatus;z.current=I,W.current=T,q.current=P,K.current=D;var M=function(){X({type:"RESET_FORM",payload:{isSubmitting:!!N&&!!N.isSubmitting,errors:T,touched:P,status:D,values:I,isValidating:!!N&&!!N.isValidating,submitCount:N&&N.submitCount&&"number"==typeof N.submitCount?N.submitCount:0}})};if(H.onReset){var R=H.onReset(Z.values,e_);aG(R)?R.then(M):M()}else M()},[H.initialErrors,H.initialStatus,H.initialTouched,H.onReset]);(0,aa.useEffect)(function(){!0===V.current&&!ao()(z.current,H.initialValues)&&F&&(z.current=H.initialValues,eo(),R&&ei(z.current))},[F,H.initialValues,eo,R,ei]),(0,aa.useEffect)(function(){F&&!0===V.current&&!ao()(W.current,H.initialErrors)&&(W.current=H.initialErrors||aQ,X({type:"SET_ERRORS",payload:H.initialErrors||aQ}))},[F,H.initialErrors]),(0,aa.useEffect)(function(){F&&!0===V.current&&!ao()(q.current,H.initialTouched)&&(q.current=H.initialTouched||aZ,X({type:"SET_TOUCHED",payload:H.initialTouched||aZ}))},[F,H.initialTouched]),(0,aa.useEffect)(function(){F&&!0===V.current&&!ao()(K.current,H.initialStatus)&&(K.current=H.initialStatus,X({type:"SET_STATUS",payload:H.initialStatus}))},[F,H.initialStatus,H.initialTouched]);var es=a7(function(N){if(Y.current[N]&&aU(Y.current[N].validate)){var I=aK(Z.values,N),T=Y.current[N].validate(I);return aG(T)?(X({type:"SET_ISVALIDATING",payload:!0}),T.then(function(N){return N}).then(function(I){X({type:"SET_FIELD_ERROR",payload:{field:N,value:I}}),X({type:"SET_ISVALIDATING",payload:!1})})):(X({type:"SET_FIELD_ERROR",payload:{field:N,value:T}}),Promise.resolve(T))}return H.validationSchema?(X({type:"SET_ISVALIDATING",payload:!0}),et(Z.values,N).then(function(N){return N}).then(function(I){X({type:"SET_FIELD_ERROR",payload:{field:N,value:aK(I,N)}}),X({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),el=(0,aa.useCallback)(function(N,I){var T=I.validate;Y.current[N]={validate:T}},[]),ec=(0,aa.useCallback)(function(N){delete Y.current[N]},[]),eu=a7(function(N,I){return X({type:"SET_TOUCHED",payload:N}),(void 0===I?D:I)?ei(Z.values):Promise.resolve()}),ed=(0,aa.useCallback)(function(N){X({type:"SET_ERRORS",payload:N})},[]),ef=a7(function(N,I){var P=aU(N)?N(Z.values):N;return X({type:"SET_VALUES",payload:P}),(void 0===I?T:I)?ei(P):Promise.resolve()}),eh=(0,aa.useCallback)(function(N,I){X({type:"SET_FIELD_ERROR",payload:{field:N,value:
1152I}})},[]),ep=a7(function(N,I,P){var D=aU(I)?I(aK(Z.values,N)):I;return X({type:"SET_FIELD_VALUE",payload:{field:N,value:D}}),(void 0===P?T:P)?ei(aV(Z.values,N,D)):Promise.resolve()}),em=(0,aa.useCallback)(function(N,I){var T,P=I,D=N;if(!aW(N)){N.persist&&N.persist();var M=N.target?N.target:N.currentTarget,R=M.type,L=M.name,$=M.id,F=M.value,B=M.checked,U=(M.outerHTML,M.options),H=M.multiple;P=I||L||$,D=/number|range/.test(R)?isNaN(T=parseFloat(F))?"":T:/checkbox/.test(R)?a6(aK(Z.values,P),B,F):U&&H?a5(U):F}P&&ep(P,D)},[ep,Z.values]),eg=a7(function(N){if(aW(N))return function(I){return em(I,N)};em(N)}),ey=a7(function(N,I,T){return void 0===I&&(I=!0),X({type:"SET_FIELD_TOUCHED",payload:{field:N,value:I}}),(void 0===T?D:T)?ei(Z.values):Promise.resolve()}),eb=(0,aa.useCallback)(function(N,I){N.persist&&N.persist();var T=N.target,P=T.name,D=T.id;T.outerHTML,ey(I||P||D,!0)},[ey]),ev=a7(function(N){if(aW(N))return function(I){return eb(I,N)};eb(N)}),ew=(0,aa.useCallback)(function(N){aU(N)?X({type:"SET_FORMIK_STATE",payload:N}):X({type:"SET_FORMIK_STATE",payload:function(){return N}})},[]),ex=(0,aa.useCallback)(function(N){X({type:"SET_STATUS",payload:N})},[]),eA=(0,aa.useCallback)(function(N){X({type:"SET_ISSUBMITTING",payload:N})},[]),eE=a7(function(){return X({type:"SUBMIT_ATTEMPT"}),ei().then(function(N){var I,T=N instanceof Error;if(!T&&0===Object.keys(N).length){try{if(I=ek(),void 0===I)return}catch(N){throw N}return Promise.resolve(I).then(function(N){return V.current&&X({type:"SUBMIT_SUCCESS"}),N}).catch(function(N){if(V.current)throw X({type:"SUBMIT_FAILURE"}),N})}if(V.current&&(X({type:"SUBMIT_FAILURE"}),T))throw N})}),eS=a7(function(N){N&&N.preventDefault&&aU(N.preventDefault)&&N.preventDefault(),N&&N.stopPropagation&&aU(N.stopPropagation)&&N.stopPropagation(),eE().catch(function(N){console.warn("Warning: An unhandled error was caught from submitForm()",N)})}),e_={resetForm:eo,validateForm:ei,validateField:es,setErrors:ed,setFieldError:eh,setFieldTouched:ey,setFieldValue:ep,setStatus:ex,setSubmitting:eA,setTouched:eu,setValues:ef,setFormikState:ew,submitForm:eE},ek=a7(function(){return B(Z.values,e_)}),eC=a7(function(N){N&&N.preventDefault&&aU(N.preventDefault)&&N.preventDefault(),N&&N.stopPropagation&&aU(N.stopPropagation)&&N.stopPropagation(),eo()}),ej=(0,aa.useCallback)(function(N){return{value:aK(Z.values,N),error:aK(Z.errors,N),touched:!!aK(Z.touched,N),initialValue:aK(z.current,N),initialTouched:!!aK(q.current,N),initialError:aK(W.current,N)}},[Z.errors,Z.touched,Z.values]),eO=(0,aa.useCallback)(function(N){return{setValue:function(I,T){return ep(N,I,T)},setTouched:function(I,T){return ey(N,I,T)},setError:function(I){return eh(N,I)}}},[ep,ey,eh]),eN=(0,aa.useCallback)(function(N){var I=aH(N),T=I?N.name:N,P=aK(Z.values,T),D={name:T,value:P,onChange:eg,onBlur:ev};if(I){var M=N.type,R=N.value,L=N.as,$=N.multiple;"checkbox"===M?void 0===R?D.checked=!!P:(D.checked=!!(Array.isArray(P)&&~P.indexOf(R)),D.value=R):"radio"===M?(D.checked=P===R,D.value=R):"select"===L&&$&&(D.value=D.value||[],D.multiple=!0)}return D},[ev,eg,Z.values]),eI=(0,aa.useMemo)(function(){return!ao()(z.current,Z.values)},[z.current,Z.values]),eT=(0,aa.useMemo)(function(){return void 0!==L?eI?Z.errors&&0===Object.keys(Z.errors).length:!1!==L&&aU(L)?L(H):L:Z.errors&&0===Object.keys(Z.errors).length},[L,eI,Z.errors,H]);return aT({},Z,{initialValues:z.current,initialErrors:W.current,initialTouched:q.current,initialStatus:K.current,handleBlur:ev,handleChange:eg,handleReset:eC,handleSubmit:eS,resetForm:eo,setErrors:ed,setFormikState:ew,setFieldTouched:ey,setFieldValue:ep,setFieldError:eh,setStatus:ex,setSubmitting:eA,setTouched:eu,setValues:ef,submitForm:eE,validateForm:ei,validateField:es,isValid:eT,dirty:eI,unregisterField:ec,registerField:el,getFieldProps:eN,getFieldMeta:ej,getFieldHelpers:eO,validateOnBlur:D,validateOnChange:T,validateOnMount:R})}function a0(N){var I=aX(N),T=N.component,P=N.children,D=N.render,M=N.innerRef;return(0,aa.useImperativeHandle)(M,function(){return I}),(0,aa.createElement)(aL,{value:I},T?(0,aa.createElement)(T,I):D?D(I):P?aU(P)?P(I):aq(P)?null:aa.Children.only(P):null)}function a1(N){var I={};if(N.inner){if(0===N.inner.length)return aV(I,N.path,N.message);for(var T=N.inner,P=Array.isArray(T),D=0,T=P?T:T[Symbol.iterator]();;){if(P){if(D>=T.length)break;M=T[D++]}else{if((D=T.next()).done)break;M=D.value}var M,R=M;aK(I,R.path)||(I=aV(I,R.path,R.message))}}return I}function a2(N,I,T,P){void 0===T&&(T=!1);var D=a3(N);return I[T?"validateSync":"validate"](D,{abortEarly:!1,context:P||D}
1152)}function a3(N){var I=Array.isArray(N)?[]:{};for(var T in N)if(Object.prototype.hasOwnProperty.call(N,T)){var P=String(T);!0===Array.isArray(N[P])?I[P]=N[P].map(function(N){return!0===Array.isArray(N)||eg(N)?a3(N):""!==N?N:void 0}):eg(N[P])?I[P]=a3(N[P]):I[P]=""!==N[P]?N[P]:void 0}return I}function a4(N,I,T){var P=N.slice();return I.forEach(function(I,D){if(void 0===P[D]){var M=!1!==T.clone&&T.isMergeableObject(I);P[D]=M?G(Array.isArray(I)?[]:{},I,T):I}else T.isMergeableObject(I)?P[D]=G(N[D],I,T):-1===N.indexOf(I)&&P.push(I)}),P}function a5(N){return Array.from(N).filter(function(N){return N.selected}).map(function(N){return N.value})}function a6(N,I,T){if("boolean"==typeof N)return!!I;var P=[],D=!1,M=-1;if(Array.isArray(N))P=N,D=(M=N.indexOf(T))>=0;else if(!T||"true"==T||"false"==T)return!!I;return I&&T&&!D?P.concat(T):D?P.slice(0,M).concat(P.slice(M+1)):P}var a8="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement?aa.useLayoutEffect:aa.useEffect;function a7(N){var I=(0,aa.useRef)(N);return a8(function(){I.current=N}),(0,aa.useCallback)(function(){for(var N=arguments.length,T=Array(N),P=0;P<N;P++)T[P]=arguments[P];return I.current.apply(void 0,T)},[])}function a9(N){var I=aF(),T=I.getFieldProps,P=I.getFieldMeta,D=I.getFieldHelpers,M=I.registerField,R=I.unregisterField,L=aH(N)?N:{name:N},$=L.name,F=L.validate;(0,aa.useEffect)(function(){return $&&M($,{validate:F}),function(){$&&R($)}},[M,R,$,F]),$||al(!1);var B=(0,aa.useMemo)(function(){return D($)},[D,$]);return[T(L),P($),B]}function ie(N){var I=N.validate,T=N.name,P=N.render,D=N.children,M=N.as,R=N.component,L=N.className,$=aD(N,["validate","name","render","children","as","component","className"]),F=aD(aF(),["validate","validationSchema"]),B=F.registerField,U=F.unregisterField;(0,aa.useEffect)(function(){return B(T,{validate:I}),function(){U(T)}},[B,U,T,I]);var H=F.getFieldProps(aT({name:T},$)),z=F.getFieldMeta(T),W={field:H,form:F};if(P)return P(aT({},W,{meta:z}));if(aU(D))return D(aT({},W,{meta:z}));if(R){if("string"==typeof R){var q=$.innerRef,G=aD($,["innerRef"]);return(0,aa.createElement)(R,aT({ref:q},H,G,{className:L}),D)}return(0,aa.createElement)(R,aT({field:H,form:F},$,{className:L}),D)}var K=M||"input";if("string"==typeof K){var V=$.innerRef,Y=aD($,["innerRef"]);return(0,aa.createElement)(K,aT({ref:V},H,Y,{className:L}),D)}return(0,aa.createElement)(K,aT({},H,$,{className:L}),D)}var it=(0,aa.forwardRef)(function(N,I){var T=N.action,P=aD(N,["action"]),D=null!=T?T:"#",M=aF(),R=M.handleReset,L=M.handleSubmit;return(0,aa.createElement)("form",aT({onSubmit:L,ref:I,onReset:R,action:D},P))});function ir(N){var I=function(I){return(0,aa.createElement)(a$,null,function(T){return T||al(!1),(0,aa.createElement)(N,aT({},I,{formik:T}))})},T=N.displayName||N.name||N.constructor&&N.constructor.name||"Component";return I.WrappedComponent=N,I.displayName="FormikConnect("+T+")",aI()(I,N)}it.displayName="Form";var ia=function(N,I,T){var P=il(N),D=P[I];return P.splice(I,1),P.splice(T,0,D),P},ii=function(N,I,T){var P=il(N),D=P[I];return P[I]=P[T],P[T]=D,P},io=function(N,I,T){var P=il(N);return P.splice(I,0,T),P},is=function(N,I,T){var P=il(N);return P[I]=T,P},il=function(N){if(!N)return[];if(Array.isArray(N))return[].concat(N);var I=Object.keys(N).map(function(N){return parseInt(N)}).reduce(function(N,I){return I>N?I:N},0);return Array.from(aT({},N,{length:I+1}))},ic=function(N,I){var T="function"==typeof N?N:I;return function(N){return Array.isArray(N)||aH(N)?T(il(N)):N}},iu=function(N){function I(I){var T;return(T=N.call(this,I)||this).updateArrayField=function(N,I,P){var D=T.props,M=D.name;(0,D.formik.setFormikState)(function(T){var D=ic(P,N),R=ic(I,N),L=aV(T.values,M,N(aK(T.values,M))),$=P?D(aK(T.errors,M)):void 0,F=I?R(aK(T.touched,M)):void 0;return aB($)&&($=void 0),aB(F)&&(F=void 0),aT({},T,{values:L,errors:P?aV(T.errors,M,$):T.errors,touched:I?aV(T.touched,M,F):T.touched})})},T.push=function(N){return T.updateArrayField(function(I){return[].concat(il(I),[an(N)])},!1,!1)},T.handlePush=function(N){return function(){return T.push(N)}},T.swap=function(N,I){return T.updateArrayField(function(T){return ii(T,N,I)},!0,!0)}
1152,T.handleSwap=function(N,I){return function(){return T.swap(N,I)}},T.move=function(N,I){return T.updateArrayField(function(T){return ia(T,N,I)},!0,!0)},T.handleMove=function(N,I){return function(){return T.move(N,I)}},T.insert=function(N,I){return T.updateArrayField(function(T){return io(T,N,I)},function(I){return io(I,N,null)},function(I){return io(I,N,null)})},T.handleInsert=function(N,I){return function(){return T.insert(N,I)}},T.replace=function(N,I){return T.updateArrayField(function(T){return is(T,N,I)},!1,!1)},T.handleReplace=function(N,I){return function(){return T.replace(N,I)}},T.unshift=function(N){var I=-1;return T.updateArrayField(function(T){var P=T?[N].concat(T):[N];return I=P.length,P},function(N){return N?[null].concat(N):[null]},function(N){return N?[null].concat(N):[null]}),I},T.handleUnshift=function(N){return function(){return T.unshift(N)}},T.handleRemove=function(N){return function(){return T.remove(N)}},T.handlePop=function(){return function(){return T.pop()}},T.remove=T.remove.bind(aM(T)),T.pop=T.pop.bind(aM(T)),T}aP(I,N);var T=I.prototype;return T.componentDidUpdate=function(N){this.props.validateOnChange&&this.props.formik.validateOnChange&&!ao()(aK(N.formik.values,N.name),aK(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},T.remove=function(N){var I;return this.updateArrayField(function(T){var P=T?il(T):[];return I||(I=P[N]),aU(P.splice)&&P.splice(N,1),aU(P.every)&&P.every(function(N){return void 0===N})?[]:P},!0,!0),I},T.pop=function(){var N;return this.updateArrayField(function(I){var T=I.slice();return N||(N=T&&T.pop&&T.pop()),T},!0,!0),N},T.render=function(){var N={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},I=this.props,T=I.component,P=I.render,D=I.children,M=I.name,R=aD(I.formik,["validate","validationSchema"]),L=aT({},N,{form:R,name:M});return T?(0,aa.createElement)(T,L):P?P(L):D?"function"==typeof D?D(L):aq(D)?null:aa.Children.only(D):null},I}(aa.Component);iu.defaultProps={validateOnChange:!0};var id=ir(iu),ih=ir(function(N){function I(){return N.apply(this,arguments)||this}aP(I,N);var T=I.prototype;return T.shouldComponentUpdate=function(N){return aK(this.props.formik.errors,this.props.name)!==aK(N.formik.errors,this.props.name)||aK(this.props.formik.touched,this.props.name)!==aK(N.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(N).length},T.render=function(){var N=this.props,I=N.component,T=N.formik,P=N.render,D=N.children,M=N.name,R=aD(N,["component","formik","render","children","name"]),L=aK(T.touched,M),$=aK(T.errors,M);return L&&$?P?aU(P)?P($):null:D?aU(D)?D($):null:I?(0,aa.createElement)(I,R,$):$:null},I}(aa.Component))},63991:(N,I,T)=>{var P=T(82909).Buffer,D=T(48041),M=(T(63426),T(58184)),R=T(40939),L=T(3305),$=T(48454);I.OAuth2=function(N,I,T,P,D,M){this._clientId=N,this._clientSecret=I,this._baseSite=T,this._authorizeUrl=P||"/oauth/authorize",this._accessTokenUrl=D||"/oauth/access_token",this._accessTokenName="access_token",this._authMethod="Bearer",this._customHeaders=M||{},this._useAuthorizationHeaderForGET=!1,this._agent=void 0},I.OAuth2.prototype.setAgent=function(N){this._agent=N},I.OAuth2.prototype.setAccessTokenName=function(N){this._accessTokenName=N},I.OAuth2.prototype.setAuthMethod=function(N){this._authMethod=N},I.OAuth2.prototype.useAuthorizationHeaderforGET=function(N){this._useAuthorizationHeaderForGET=N},I.OAuth2.prototype._getAccessTokenUrl=function(){return this._baseSite+this._accessTokenUrl},I.OAuth2.prototype.buildAuthHeader=function(N){return this._authMethod+" "+N},I.OAuth2.prototype._chooseHttpLibrary=function(N){var I=M;return"https:"!=N.protocol&&(I=R),I},I.OAuth2.prototype._request=function(N,I,T,M,R,$){var F=L.parse(I,!0);"https:"!=F.protocol||F.port||(F.port=443);var B=this._chooseHttpLibrary(F),U={};for(var H in this._customHeaders)U[H]=this._customHeaders[H];if(T)for(var H in T)U[H]=T[H];U.Host=F.host,U["User-Agent"]||(U["User-Agent"]="Node-oauth"),M?P.isBuffer(M)?U["Content-Length"]=M.length:U["Content-Length"]=P.byteLength(M):U["Content-length"]=0,!R||"Authorization"in U||(F.query||(F.query={}),F.query[this._accessTokenName]=R);
1152var z=D.stringify(F.query);z&&(z="?"+z);var W={host:F.hostname,port:F.port,path:F.pathname+z,method:N,headers:U};this._executeRequest(B,W,M,$)},I.OAuth2.prototype._executeRequest=function(N,I,T,P){var D=$.isAnEarlyCloseHost(I.host),M=!1;function R(N,I){M||(M=!0,N.statusCode>=200&&N.statusCode<=299||301==N.statusCode||302==N.statusCode?P(null,I,N):P({statusCode:N.statusCode,data:I}))}var L="";this._agent&&(I.agent=this._agent);var F=N.request(I);F.on("response",function(N){N.on("data",function(N){L+=N}),N.on("close",function(I){D&&R(N,L)}),N.addListener("end",function(){R(N,L)})}),F.on("error",function(N){M=!0,P(N)}),("POST"==I.method||"PUT"==I.method)&&T&&F.write(T),F.end()},I.OAuth2.prototype.getAuthorizeUrl=function(N){var N=N||{};return N.client_id=this._clientId,this._baseSite+this._authorizeUrl+"?"+D.stringify(N)},I.OAuth2.prototype.getOAuthAccessToken=function(N,I,T){var I=I||{};I.client_id=this._clientId,I.client_secret=this._clientSecret;var P="refresh_token"===I.grant_type?"refresh_token":"code";I[P]=N;var M=D.stringify(I),R={"Content-Type":"application/x-www-form-urlencoded"};this._request("POST",this._getAccessTokenUrl(),R,M,null,function(N,I,P){if(N)T(N);else{try{M=JSON.parse(I)}catch(N){M=D.parse(I)}var M,R=M.access_token,L=M.refresh_token;delete M.refresh_token,T(null,R,L,M)}})},I.OAuth2.prototype.getProtectedResource=function(N,I,T){this._request("GET",N,{},"",I,T)},I.OAuth2.prototype.get=function(N,I,T){if(this._useAuthorizationHeaderForGET){var P={Authorization:this.buildAuthHeader(I)};I=null}else P={};this._request("GET",N,P,"",I,T)}},64028:(N,I,T)=>{"use strict";T.r(I),T.d(I,{default:()=>D});var P=T(14580);let D=()=>((0,P.useNotificationPopup)(),null)},64032:(N,I)=>{"use strict";function T(){let N,I,T=new Promise((T,P)=>{N=T,I=P});return{resolve:N,reject:I,promise:T}}Object.defineProperty(I,"__esModule",{value:!0}),Object.defineProperty(I,"createPromiseWithResolvers",{enumerable:!0,get:function(){return T}})},64415:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),function(N,I){for(var T in I)Object.defineProperty(N,T,{enumerable:!0,get:I[T]})}(I,{default:function(){return F},noSSR:function(){return $}});let P=T(64252),D=T(37876);T(14232);let M=P._(T(5392)),R=!1;function L(N){return{default:N?.default||N}}function $(N,I){if(delete I.webpack,delete I.modules,!R)return N(I);let T=I.loading;return()=>(0,D.jsx)(T,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1})}function F(N,I){let T=M.default,P={loading:({error:N,isLoading:I,pastDelay:T})=>null};N instanceof Promise?P.loader=()=>N:"function"==typeof N?P.loader=N:"object"==typeof N&&(P={...P,...N});let D=(P={...P,...I}).loader,R=()=>null!=D?D().then(L):Promise.resolve(L(()=>null));return(P.loadableGenerated&&(P={...P,...P.loadableGenerated},delete P.loadableGenerated),"boolean"!=typeof P.ssr||P.ssr)?T({...P,loader:R}):(delete P.webpack,delete P.modules,$(T,P))}("function"==typeof I.default||"object"==typeof I.default&&null!==I.default)&&void 0===I.default.__esModule&&(Object.defineProperty(I.default,"__esModule",{value:!0}),Object.assign(I.default,I),N.exports=I.default)},64579:(N,I,T)=>{"use strict";T.r(I),T.d(I,{useCaseStudyOverviewResults:()=>$});var P=T(14232),D=T(85728),M=T(65212),R=T(4695),L=T(98176);let $=({data:N,locale:I,categories:T,allCategoriesLabel:$,activeCategoryLabel:F})=>{let{setToast:B}=(0,P.useContext)(D._t),U=N?.caseStudyItemId??"",H=(0,P.useRef)(!0),z=(0,P.useRef)(!1),[W,q]=(0,P.useState)(!0),[G,K]=(0,P.useState)(()=>[F]),[V,Y]=(0,P.useState)([]),[J,Q]=(0,P.useState)({endCursor:"",hasNext:!1}),[Z,X]=(0,P.useState)(0),[ee,et]=(0,P.useState)(F);F!==ee&&(et(F),K([F])),N?.caseStudy?.caseStudies&&H.current&&(H.current=!1,z.current=!0,Y([...N.caseStudy.caseStudies.results??[]]),Q(N.caseStudy.caseStudies.pageInfo??{endCursor:"",hasNext:!1}),X(N.caseStudy.caseStudies.total??0),q(!1));let er=(0,P.useCallback)(N=>{if(G.includes(N)){let I=G.filter(I=>I!==N);K([...I,...0===I.length?[$]:[]])}else N===$?K([$]):K([...G.filter(N=>N!==$)].concat(N))},[$,G]),en=(0,P.useCallback)(async()=>{if(!N?.caseStudyItemId)return void q(!1);q(!0);let T=await (0,R.yi)(N.caseStudyItemId,L.t7,I).catch(T=>{M.A.caseStudy("Failed to fetch getCaseStudiesData inside CaseStudyOverview component",{...T,caseStudyItemId:N?.caseStudyItemId,language:I})}).finally(()=>q(!1));
1152T&&(Y([...T.caseStudies?.results??[]]),Q(T?.caseStudies?.pageInfo),X(T?.caseStudies?.total??0))},[N,I]),ea=(0,P.useCallback)(async()=>{let P=[...G.map(N=>T.find(I=>I.caseStudyCategoryName.value===N)?.id??"")];if(N?.caseStudyItemId){q(!0);let T=await (0,R.x6)(N?.caseStudyItemId,U.hexToGuid(!0),L.t7,P.filter(N=>void 0!==N),I).catch(T=>{M.A.caseStudy("Failed to fetch getCaseStudiesDataByCategory inside CaseStudyOverview component",{...T,caseStudyItemId:N?.caseStudyItemId,categoryIds:P,language:I})}).finally(()=>q(!1));Y([...T?.caseStudies?.results??[]]),Q(T?.caseStudies?.pageInfo??{endCursor:"",hasNext:!1}),X(T?.caseStudies?.total??0)}},[N,U,G,T,I]),ei=(0,P.useCallback)(async()=>{if(N?.caseStudyItemId&&J?.endCursor){let P=N?.categoryPageId?[N?.categoryPageId]:[...G.map(N=>T.find(I=>I.caseStudyCategoryName.value===N)?.id??"")],D=await (0,R.td)(N?.caseStudyItemId,L.t7,J?.endCursor,P?.filter(N=>""!==N),I).catch(T=>{B({data:{title:"Something went wrong",message:"Couldn't fetch the next case studies data."},open:!0,type:"error"}),M.A.caseStudy("Failed to fetch getNextCaseStudiesData inside CaseStudyOverview component",{...T,caseStudyItemId:N?.caseStudyItemId,categoryIds:P,language:I})});D?(Y([...V,...D.caseStudies?.results??[]]),Q(D?.caseStudies?.pageInfo),X(D?.caseStudies?.total??0)):M.A.caseStudy("Failed to fetch case study data while executing getNextResults() inside CaseStudyOverview component")}},[N?.caseStudyItemId,N?.categoryPageId,J?.endCursor,G,T,V,I,B]);return(0,P.useLayoutEffect)(()=>{if(N){if(z.current){z.current=!1;return}if(!N.caseStudyItemId)return void q(!1);N.categoryPageId||(G.includes($)?en():ea())}},[N,G,$,en,ea]),{loading:W,results:V,pageInfo:J,total:Z,selectedCategories:G,updateSelectedCategories:er,getNextResults:ei}}},65212:(N,I,T)=>{"use strict";T.d(I,{A:()=>R});var P=T(71673),D=T.n(P);let M="brunelweb",R={tools:{sessionExpiration:(N,I)=>{let T=Math.ceil(I/1e3),P=Math.floor(T/60),R=T%60,L=1===P?"minute":"minutes",$=1===R?"second":"seconds";D()(`${M}:authSession`)(`[${N}] Session will expire in ${P} ${L} and ${R} ${$}`)}},sitecore:D()(`${M}:sitecore`),common:D()(`${M}:common`),http:D()(`${M}:http`),ui:D()(`${M}:ui`),api:D()(`${M}:api`),blog:D()(`${M}:blog`),event:D()(`${M}:event`),caseStudy:D()(`${M}:caseStudy`),jobs:D()(`${M}:jobs`),forms:D()(`${M}:forms`),middleware:D()(`${M}:middleware`),cache:D()(`${M}:cache`),authSession:D()(`${M}:authSession`),authMyApplications:D()(`${M}:authMyApplications`),authMyBrunel:D()(`${M}:authMyBrunel`),xmlfeed:D()(`${M}:xmlfeed`),piwik:D()(`${M}:piwik`)}},65493:(N,I,T)=>{"use strict";T.r(I),T.d(I,{buildAccordionItemId:()=>F,isExternalVacancyId:()=>M,isInternalVacancyId:()=>R,resolveScrollMarginTop:()=>$,resolveShouldRenderAccordion:()=>L});let P=/^[A-Za-z]{2,5}/,D=/^\d+(-\d+)*$/,M=N=>P.test(N),R=N=>D.test(N),L=(N,I,T)=>!!T||""===N||"always"===N||"external-vacancy"===N&&M(I)||"internal-vacancy"===N&&R(I),$=N=>N.includes("/jobs")?162:72,F=(N,I)=>`${N}-${I+1}`},65558:(N,I,T)=>{"use strict";T.r(I),T.d(I,{SearchConfigurationFilters:()=>G});var P=T(37876),D=T(82826),M=T(84758),R=T(23649),L=T(94274),$=T(55333),F=T(63366),B=T(72967),U=T(36379);let H=56,z=3,W=1,q=(N,I,T)=>{let P=(I?N:Math.min(N,z))+(T?W:0);return`${H*P}px`},G=({filters:N,facets:I,originalFacets:T,filtersFacets:H,totalCount:W,getPublicationsQuery:G,sideDrawerOpen:K,setSideDrawerOpen:V,selectedFilters:Y,setSelectedFilters:J,selectedFiltersTags:Q,setSelectedFiltersTags:Z,translateFacets:X})=>{let{openFacets:ee,showMoreFacets:et,allowedMultipleFacets:er,selectOpenFacets:en,selectFilterValues:ea,selectFiltersTags:ei,clearAll:eo,showMore:es}=(0,M.useSearchConfigurationFilters)({filtersFacets:H,selectedFilters:Y,setSelectedFilters:J,selectedFiltersTags:Q,setSelectedFiltersTags:Z,getPublicationsQuery:G}),el=({facet:N})=>{let M=(0,D.resolveFacetOptions)(N,er,T,I);return(0,D.sortFacetOptions)(M,N,Y,er,X).map((T,M)=>{let R="string"==typeof T.value?String(T.value):Number(T.value),L=X(N,R),$=Y.get(N)?.includes(R)??!1,U=I?.[N]?.find(N=>N.value===R)?.count??0,H=!et.includes(N)&&!$&&M>=z;return L&&(0,D.isFacetOptionVisible)(L,U,er.includes(N),H)?(0,P.jsxs)("li",{className:"flex items-center justify-between gap-3",children:[(0,P.jsxs)("div",{className:"flex flex-row items-center gap-3",children:[(0,P.jsx)(B.S,{selected:$,onSelect:()=>{G(!1,!1,void 0,ea(N,R),ei(L,N,R))}}),(0,P.jsx)(F.o5,{type:"medium",plainText:L})]}),(U>
11520||0===U&&$)&&(0,P.jsx)(F.o5,{type:"medium",plainText:`${U}`})]},`${L}-${M}`):null})};return(0,P.jsx)(F.az,{id:"searchFilters",className:(0,U.cn)("flex transition-all duration-500",{"max-lg:-translate-x-full":!K,"max-lg:translate-x-0":K,"max-lg:fixed max-lg:inset-x-0 max-lg:top-0 max-lg:z-50 max-lg:size-full max-lg:w-full max-lg:overflow-hidden max-lg:overscroll-contain":!0,"lg:h-max lg:w-1/3":!0}),children:(0,P.jsxs)(F.az,{className:"flex size-full flex-col rounded-sm bg-white lg:max-h-[calc(100vh-200px)] lg:overflow-auto lg:border lg:border-accent-iron lg:shadow-search-filters",children:[(0,P.jsxs)(F.az,{className:"flex flex-col gap-4 bg-brunel-dark-grey p-6 lg:bg-transparent",children:[(0,P.jsxs)(F.az,{className:"flex items-center justify-between",children:[(0,P.jsx)(F.o5,{className:"mb-0! text-white lg:text-brunel-dark-grey",type:"h3",plainText:N?.title?`${N.title}${Q.size>0?`: ${Q.size}`:""}`:"[filters title]"}),Q.size>0&&(0,P.jsx)(F.o5,{className:"mb-0! hidden cursor-pointer text-white hover:brunel-underline-2-brunel-dark-grey lg:inline-block lg:text-brunel-dark-grey",type:"h4",plainText:N?.clearAll??"[clear all text]",onClick:eo}),(0,P.jsx)(F.In,{className:"lg:hidden",color:"white",name:"cross",size:"medium",onClick:()=>V(!1)})]}),Q.size>0&&(0,P.jsx)(F.az,{className:"scrollbar-none hidden flex-wrap gap-4 overflow-auto lg:inline-flex",children:Array.from(Q,([N])=>N).map(N=>(0,P.jsx)(L.TagButton,{value:N,onRemove:()=>{let I=Q.get(N);I&&G(void 0,void 0,void 0,ea(I.facet,I.facetValue),ei(N,I.facet,I.facetValue))}},N))})]}),Q.size>0&&(0,P.jsxs)(F.az,{className:"flex flex-col gap-4 p-6 lg:hidden",children:[(0,P.jsxs)(F.az,{className:"flex items-center justify-between",children:[(0,P.jsx)(F.o5,{className:"mb-0!",type:"h4",plainText:""}),(0,P.jsx)(F.o5,{className:"mb-0! cursor-pointer hover:brunel-underline-2-brunel-dark-grey",type:"h4",plainText:N?.clearAll??"[clear all text]",onClick:eo})]}),(0,P.jsx)(F.az,{className:"flex flex-wrap gap-4 overflow-auto",children:Array.from(Q,([N])=>N).map(N=>(0,P.jsx)(L.TagButton,{value:N,onRemove:()=>{let I=Q.get(N);I&&G(void 0,void 0,void 0,ea(I.facet,I.facetValue),ei(N,I.facet,I.facetValue))}},N))})]}),(0,P.jsx)(F.az,{className:"h-full overflow-auto overscroll-contain",children:(0,P.jsxs)(F.az,{className:"flex flex-col",children:[(0,$.Cx)()&&H?.length===0&&(0,P.jsx)(F.o5,{type:"h4",plainText:"No filters defined"}),H?.map(D=>{let M=D?.category;if(!M||!I||I?.[M]?.length===0)return null;let R=er.includes(M),L=et.includes(M),B=R?T?.[M]?.length??0:I[M]?.length??0,H=B>z;return(0,P.jsxs)(F.az,{className:(0,U.cn)("collapse h-max",{"collapse-open":ee.includes(M)}),children:[(0,$.Cx)()&&(0,P.jsx)(F.o5,{type:"h4",plainText:"Card data from SearchAPI"}),(0,P.jsxs)(F.az,{className:"collapse-title flex h-15 cursor-pointer items-center justify-between border-t border-accent-iron px-6",onClick:()=>en(M),tabIndex:0,children:[(0,P.jsx)(F.o5,{className:"mb-0!",type:"h4",plainText:D?.translatedCategory??""}),(0,P.jsx)(F.In,{className:(0,U.cn)("-scale-y-100 transition-transform duration-200 ease-out",{"scale-y-200":ee.includes(M)}),name:"dropdown-up",size:"medium"})]}),(0,P.jsxs)("ul",{className:"collapse-content flex flex-col gap-4 px-6",style:{transition:"max-height 500ms ease-in-out",maxHeight:q(B,L,H)},children:[(0,P.jsx)(el,{facet:M}),H&&(0,P.jsxs)("li",{className:"group flex cursor-pointer items-center gap-1",children:[(0,P.jsx)(F.In,{className:(0,U.cn)("scale-y-100 transition-transform duration-200 ease-out",{"-scale-y-100":L}),name:"chevron-down",size:"medium",onClick:()=>es(M)}),(0,P.jsx)(F.o5,{className:"mb-0! group-hover:brunel-underline-3-brunel-dark-grey",type:"h4",plainText:et.includes(M)?N?.showLess:N?.showMore,onClick:()=>es(M)})]})]})]},M)})]})}),(0,P.jsx)(F.az,{className:"flex flex-1 items-end p-6 lg:hidden",children:(0,P.jsx)(R.Button,{className:"h-max w-full text-center",variant:"alternative",plainText:N?.showVacancies?N?.showVacancies?.capitalize()?.replace(" ",` ${W} `):"[show vacancies text]",onClick:()=>V(!1)})})]})})}},65575:(N,I,T)=>{"use strict";T.r(I),T.d(I,{UspList:()=>$,UspVerticalList:()=>D.UspVerticalList});var P=T(37876),D=T(28213),M=T(40163),R=T(63366),L=T(27400);let $=N=>{let I=N.fields?.data?.datasource,T=N.params.RenderingIdentifier;if(I?.children?.results){if(0==I.children.results.length)return(0,P.jsx)(L.$,{id:T,title:$.name,msg:"Please add Usps using the toolbar"});let N=I.children.results.filter(N=>N?.uspText?.text?.value).map((N,T)=>(0,P.jsx)(F,{id:N.id,field:N.uspText.text,total:I.children.results.length},T));return(0,P.jsx)(R.az,{className:"mx-auto max-w-(--breakpoint-lg) overflow-hidden bg-white text-base font-normal text-brunel-dark-grey lg:w-screen",id:T||void 0,children:(0,P.jsx)(R.zk,{gap:"lg",columns:"4",className:"max-w-(--breakpoint-lg) px-6 py-5",contentBgColor:"white",children:N})})}return(0,P.jsx)(L.$,{id:T,title:$.name,msg:"Please add a datasource"})},F=N=>
1152(0,P.jsxs)(R.az,{id:N.id?N.id:void 0,className:"mt-3 flex pl-0 font-normal text-brunel-dark-grey lg:mt-0",children:[(0,P.jsx)(R.az,{as:"span",className:"mr-2",children:(0,P.jsx)(R.In,{name:"check",color:"ui-green"})}),(0,P.jsx)(M.E,{field:N.field})]})},65745:(N,I,T)=>{"use strict";T.d(I,{h:()=>eo});var P=T(78028),D=T(90241);let M="axios-retry";function R(N){let I=["ERR_CANCELED","ECONNABORTED"];return!(N.response||!N.code||I.includes(N.code))&&D(N)}let L=["get","head","options"],$=L.concat(["put","delete"]);function F(N){return"ECONNABORTED"!==N.code&&(!N.response||429===N.response.status||N.response.status>=500&&N.response.status<=599)}function B(N){return!!N.config?.method&&F(N)&&-1!==L.indexOf(N.config.method)}function U(N){return!!N.config?.method&&F(N)&&-1!==$.indexOf(N.config.method)}function H(N){return R(N)||U(N)}function z(N){let I=N?.response?.headers["retry-after"];if(!I)return 0;let T=1e3*(Number(I)||0);return 0===T&&(T=(new Date(I).valueOf()||0)-Date.now()),Math.max(0,T)}function W(N=0,I,T=100){let P=Math.max(2**N*T,z(I)),D=.2*P*Math.random();return P+D}function q(N=100){return(I=0,T)=>Math.max(I*N,z(T))}let G={retries:3,retryCondition:H,retryDelay:function(N=0,I){return Math.max(0,z(I))},shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function K(N,I){return{...G,...I,...N[M]}}function V(N,I,T=!1){let P=K(N,I||{});return P.retryCount=P.retryCount||0,(!P.lastRequestTime||T)&&(P.lastRequestTime=Date.now()),N[M]=P,P}function Y(N,I){N.defaults.agent===I.agent&&delete I.agent,N.defaults.httpAgent===I.httpAgent&&delete I.httpAgent,N.defaults.httpsAgent===I.httpsAgent&&delete I.httpsAgent}async function J(N,I){let{retries:T,retryCondition:P}=N,D=(N.retryCount||0)<T&&P(I);if("object"==typeof D)try{let N=await D;return!1!==N}catch(N){return!1}return D}async function Q(N,I,T,P){I.retryCount+=1;let{retryDelay:D,shouldResetTimeout:M,onRetry:R}=I,L=D(I.retryCount,T);if(Y(N,P),!M&&P.timeout&&I.lastRequestTime){let N=Date.now()-I.lastRequestTime,D=P.timeout-N-L;if(D<=0)return Promise.reject(T);P.timeout=D}return(P.transformRequest=[N=>N],await R(I.retryCount,T,P),P.signal?.aborted)?Promise.resolve(N(P)):new Promise(I=>{let T=()=>{clearTimeout(D),I(N(P))},D=setTimeout(()=>{I(N(P)),P.signal?.removeEventListener&&P.signal.removeEventListener("abort",T)},L);P.signal?.addEventListener&&P.signal.addEventListener("abort",T,{once:!0})})}async function Z(N,I){N.retryCount>=N.retries&&await N.onMaxRetryTimesExceeded(I,N.retryCount)}let X=(N,I)=>({requestInterceptorId:N.interceptors.request.use(N=>(V(N,I,!0),N[M]?.validateResponse&&(N.validateStatus=()=>!1),N)),responseInterceptorId:N.interceptors.response.use(null,async T=>{let{config:P}=T;if(!P)return Promise.reject(T);let D=V(P,I);return T.response&&D.validateResponse?.(T.response)?T.response:await J(D,T)?Q(N,D,T,P):(await Z(D,T),Promise.reject(T))})});X.isNetworkError=R,X.isSafeRequestError=B,X.isIdempotentRequestError=U,X.isNetworkOrIdempotentRequestError=H,X.exponentialDelay=W,X.linearDelay=q,X.isRetryableError=F;let ee=X;var et=T(65212),er=T(82752),en=T(99742),ea=T(82909).Buffer;ee(P.A,{retries:5,retryDelay:N=>(et.A.api(`Retrying request from SeekAPI... Attempt #${N}`),1e3*N)});class ei{#X;#ee;#et="";#er=0;constructor(){this.#X=P.A.create({baseURL:"https://auth.seek.com/oauth/token",headers:{"Content-Type":"application/json"}}),this.#ee=P.A.create({baseURL:"https://graphql.seek.com/graphql"}),this.#X.interceptors.response.use(N=>N,N=>(0,er.r)(N)),this.#ee.interceptors.response.use(N=>N,N=>(0,er.r)(N))}async getAccessToken(){try{return(await this.#X.post("",{client_id:en.env.SEEK_CLIENT_ID,client_secret:en.env.SEEK_CLIENT_SECRET,audience:"https://graphql.seek.com",grant_type:"client_credentials"})).data}catch(N){throw et.A.api(N),Error("Failed to fetch access token")}}async downloadResume(N){if(!this.#et||this.#er<Date.now()){let N=await this.getAccessToken();this.#et=N.access_token,this.#er=Date.now()+1e3*N.expires_in}if(this.#et)try{let I=await P.A.get(N,{responseType:"arraybuffer",headers:{Authorization:`Bearer ${this.#et}`}});return{base64:ea.from(I.data).toString("base64"),filename:I.headers["content-disposition"]?.split("filename=")[1]?.replace(/"/g,""),type:I.headers["content-type"]}}catch(N){throw et.A.api(N),Error("Failed to download resume")}throw Error("SEEK Access Token is not available")}async makeGraphQLRequest(N,I={}){if(!this.#et||this.#er<Date.now()){let N=await this.getAccessToken();this.#et=N.access_token,this.#er=Date.now()+1e3*N.expires_in}if(this.#et)try{let T=await this.#ee.post("",{query:N,variables:I},{headers:{Authorization:`Bearer ${this.#et}`}});return T.data.errors&&T.data.errors.length>0&&console.error("GraphQL errors occurred: "+T.data.errors.map(N=>N.message).join(", ")),T.data}catch(N){throw et.A.api(N),Error("Failed to fetch GraphQL data")}throw Error("SEEK Access Token is not available")}}let eo=new ei},65825:(N,I,T)=>{"use strict";T.d(I,{z:()=>Y});var P=T(37876),D=T(68602),M=T(77374),R=T(77470),L=T(66799),$=T(81202);let F=(N,I)=>(0,L.GP)(N,"d MMMM yyyy",{locale:(0,$.Me)(I)});var B=T(14232),U=T(35662),H=T(98176);let z=({initialFile:N=null,disabled:I,fileProps:T,setDataLayer:P})=>{let D=(0,B.useRef)(!1),[R,L]=(0,B.useState)(null),$=(0,B.useRef)(null),F=(0,U.VB)({noClick:!0,noDragEventsBubbling:!0,noKeyboard:!0,maxFiles:1,accept:{"application/pdf":[".pdf"],"application/rtf":[".rtf"],"application/msword":[".doc"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":[".docx"]},maxSize:H.CF,onDrop:N=>{if(I)return;let D=N?.[0];
1152P?.(),D&&(L(D),T?.onDrop?.(D,()=>{L(null),T?.onDelete?.()}))}}),z=()=>{L(null),T?.onDelete?.(),$.current&&($.current.value="")},W=N=>{!I&&N&&(P?.(),(0,M.kD)(N)&&(T?.onDrop?.(N),L(N)))},q=N=>{D.current||(N?.(),D.current=!0)};return(0,B.useEffect)(()=>{N&&(0,M.kD)(N)&&(T?.onDrop?.(N),L(N))},[N]),{...F,uploadedFile:R,mobileRef:$,resetFileInput:z,handleMobileFileChange:W,triggerDataLayerErrorOnce:q}};var W=T(84612),q=T(6807),G=T(87273),K=T(92678),V=T(36379);let Y=({id:N,locale:I,initialFile:T=null,showHeader:L=!0,label:$,errors:B,fileProps:U,disabled:H=!1,file:Y,setDataLayer:J,setDataLayerError:Q,trackingProps:Z})=>{let{getRootProps:X,getInputProps:ee,inputRef:et,isFocused:er,isDragAccept:en,isDragReject:ea,isDragActive:ei,uploadedFile:eo,mobileRef:es,resetFileInput:el,handleMobileFileChange:ec,triggerDataLayerErrorOnce:eu}=z({initialFile:T,disabled:H,fileProps:U,setDataLayer:J}),ed=()=>(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)("div",{className:(0,V.cn)("hidden flex-col items-center gap-2 lg:flex",{"opacity-30":H,"pointer-events-none":ei}),onClick:()=>{H||et.current?.click()},children:[(0,P.jsx)("input",{...Z,...ee({disabled:H})}),(0,P.jsx)(G._,{field:{src:"/images/upload.svg"},alt:"File Upload",width:120}),(0,P.jsxs)("div",{className:"text-center",children:[(0,P.jsx)(q.o,{className:"text-ui-grey",plainText:Y.dragndroptext??""}),(0,P.jsx)(q.o,{className:"font-bold! text-ui-grey",plainText:Y.acceptfiletypestext??""})]})]}),(0,P.jsxs)("div",{className:"lg:hidden",children:[(0,P.jsx)("input",{...Z,ref:es,title:$,type:"file",className:"hidden",onChange:N=>ec(N.currentTarget.files?.[0])}),(0,P.jsx)(K.Button,{disabled:H,className:`w-full ${H?"opacity-30!":""}`,variant:"alternative",background:"white",plainText:Y.choosetext,iconName:"plus",iconSide:"left",iconColor:"white",onClick:()=>es?.current?.click()})]})]}),ef=()=>eo?(0,P.jsxs)("div",{className:"flex w-full flex-col justify-between gap-2 rounded-sm border border-solid border-ui-grey p-4 md:flex-row",children:[(0,P.jsxs)("div",{className:"flex flex-1 flex-col md:gap-2",children:[(0,P.jsx)(q.o,{type:"h4",className:"break-words text-brunel-dark-grey",plainText:eo.name}),(0,P.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,P.jsx)(q.o,{type:"medium",className:"text-brunel-dark-grey",plainText:F(new Date,I)}),(0,P.jsx)(q.o,{type:"small",className:"text-ui-grey",plainText:(0,M.Tv)(eo.size)})]})]}),(0,P.jsx)("div",{className:"flex gap-3",children:(0,P.jsx)("div",{id:`FormFile-${N}-delete`,className:"flex size-12 cursor-pointer items-center justify-center border-2 border-ui-bourbon shadow-form-file-button",onClick:()=>el(),children:(0,P.jsx)(W.uc,{color:"ui-bourbon"})})})]}):null;return(0,P.jsxs)("div",{id:`FormFile-${N}`,className:(0,V.cn)("flex w-full flex-col gap-2"),children:[L&&(0,P.jsxs)("div",{className:"flex flex-col",children:[(0,P.jsx)(R.l,{id:N,label:$}),B?.map(I=>{if(I?.touched&&I?.message)return eu(Q),(0,P.jsx)(D.j,{id:I?.id??N,error:I.message},`FormError-${I?.id??N}`)})]}),eo?(0,P.jsx)(ef,{}):(0,P.jsx)("div",{...X({className:(0,V.cn)("dropzone hidden h-auto flex-1 flex-col items-center justify-center gap-2 rounded-s border border-dashed border-brunel-dark-grey bg-white p-6 select-none focus-within:border md:flex",{"border-ui-grey":er},{"bg-green-50":en},{"bg-red-50":ea})}),children:(0,P.jsx)(ed,{})}),(0,P.jsx)("div",{className:"md:hidden",children:!eo&&(0,P.jsx)(ed,{})})]})}},65899:(N,I,T)=>{"use strict";T.d(I,{A:()=>F,l:()=>$});var P=T(78028),D=T(65212),M=T(82752),R=T(99742);class L{#en;#d={token:"",expiresAt:0};constructor(){this.#en=P.A.create({baseURL:R.env.API_HOST_NOTIFICATIONS||"/api/mybrunel/notifications",timeout:3e4}),this.#en.interceptors.request.use(async N=>((!this.#d.token||Date.now()>=this.#d.expiresAt)&&await this.#f(!!R.env.API_HOST_NOTIFICATIONS),this.#d.token&&(N.headers.Authorization=`Bearer ${this.#d.token}`),N)),this.#en.interceptors.response.use(N=>N,N=>(0,M.r)(N))}async #f(N=!0){let I=R.env.AZURE_AD_TENANT_ID,T=R.env.NOTIFICATIONS_CLIENT_ID,M=R.env.NOTIFICATIONS_CLIENT_SECRET,L=R.env.NOTIFICATIONS_SCOPE;try{let R;if(N){if(!I||!T||!M||!L)throw D.A.api("Missing environment variables for CRM client credentials"),Error("Missing Notifications credentials configuration.");R=await P.A.post(`https://login.microsoftonline.com/${I}/oauth2/v2.0/token`,new URLSearchParams({client_id:T,client_secret:M,grant_type:"client_credentials",scope:L}),{headers:{"Content-Type":"application/x-www-form-urlencoded"}})}else R=await P.A.post("/api/mybrunel/notifications/refreshToken");let{access_token:$,expires_in:F}=R.data;this.#d.token=$,this.#d.expiresAt=Date.now()+1e3*F-5e3,D.A.api("Fetched new Notifications token successfully."),D.A.api(`Token ${$}.`)}catch{throw Error("Error refreshing Notifications access token.")}}async addUser(N){return N?.email?this.#en.post("/api/users/createuser",{email:N?.email,country:N?.country,businessLine:N?.businessLine,startAtBrunelDate:N?.startAtBrunelDate,isActive:N?.isActive,candidateId:N?.candidateId}).then(N=>
1152N.data??null).catch(N=>(D.A.api("Failed to add user to Notifications API:",N instanceof Error?N.message:N),null)):null}async getUserData(N){return this.#en.get("/api/users/getuser",{headers:{"X-Email-Address":N.email}}).then(N=>N.data??null).catch(N=>(D.A.api("Failed to fetch user data in Notifications API:",N instanceof Error?N.message:N),null))}async updateUserLogin(N){return this.#en.put("/api/users/updateuserlogin",{headers:{"X-Email-Address":N.email}}).then(N=>N.data??null).catch(N=>(D.A.api("Failed to update user login in Notifications API:",N instanceof Error?N.message:N),null))}async getUserNotifications(N){return this.#en.get("/api/notifications/getusernotifications",{headers:{"X-Email-Address":N.email}}).then(N=>N.data?.userNotifications??[]).catch(N=>(D.A.api("Failed to fetch messages from Notifications API:",N instanceof Error?N.message:N),[]))}async createUserNotification(N){return this.#en.post("/api/notifications/createnotifications",N).then(N=>N.data??null).catch(N=>(D.A.api("Failed to create user notification in Notifications API:",N instanceof Error?N.message:N),null))}async updateUserNotification(N){return N?.id?this.#en.put("/api/notifications/updatenotification",N).then(N=>N.data?.notification??null).catch(N=>(D.A.api("Failed to update notification in Notifications API:",N instanceof Error?N.message:N),null)):null}async getUserPushToken(N){return this.#en.get("/api/pushtokens/getusertoken",{headers:{"X-Email-Address":N.email}}).then(N=>N.data?.responsedata?.pushToken??null).catch(N=>(D.A.api("Failed to fetch user push token from Notifications API:",N instanceof Error?N.message:N),null))}async storeUserPushToken(N){return N.token?this.#en.post("/api/pushtokens/storetoken",N).then(N=>N.data?.responsedata?.newPushToken??null).catch(N=>(D.A.api("Failed to store user push token in Notifications API:",N instanceof Error?N.message:N),null)):null}async deleteUserPushToken(N){return this.#en.delete("/api/pushtokens/deleteusertoken",{headers:{"X-Email-Address":N.email}}).then(N=>N.data?.responsedata?.message??null).catch(N=>(D.A.api("Failed to delete user push token from Notifications API:",N instanceof Error?N.message:N),null))}}let $=new L,F=()=>new L},66089:(N,I,T)=>{"use strict";T.d(I,{K:()=>R,j:()=>L});var P=T(37876),D=T(77328),M=T.n(D);function R(N,I,T,P,D){let M=P=>P?.replace(/\[location\]/g,N)?.replace(/\[job title\]/g,I)?.replace(/\[job category\]/g,T)?.replace(/\{branche\}/g,T)??"";return{title:M(P),description:M(D)}}let L=({metaTitle:N,metaDescription:I,canonicalUrl:T,robots:D})=>(0,P.jsxs)(M(),{children:[(0,P.jsx)("title",{children:N}),(0,P.jsx)("meta",{property:"og:title",content:N}),(0,P.jsx)("meta",{name:"description",content:I}),(0,P.jsx)("meta",{name:"twitter:title",content:N}),(0,P.jsx)("meta",{name:"twitter:description",content:I}),D&&(0,P.jsx)("meta",{name:"robots",content:D}),(0,P.jsx)("link",{rel:"canonical",href:T},"canonical"),(0,P.jsx)("link",{rel:"alternate",hrefLang:"x-default",href:T},"x-default")]})},66143:(N,I,T)=>{var P=T(3583),D=T(56057);N.exports=function(N,I,T){if(P())return Reflect.construct.apply(null,arguments);var M=[null];M.push.apply(M,I);var R=new(N.bind.apply(N,M));return T&&D(R,T.prototype),R},N.exports.__esModule=!0,N.exports.default=N.exports},66419:(N,I,T)=>{"use strict";T.d(I,{Dx:()=>z,Ho:()=>D,Rm:()=>G,TR:()=>$,ZN:()=>H,_S:()=>M,ej:()=>J,iM:()=>P,uh:()=>K,wL:()=>L,y6:()=>U});let P=33,D=N=>!N||new Date(N).getTime()<=Date.now(),M=N=>"number"==typeof N&&!Number.isNaN(N)&&N>0,R=N=>N<P?"vacancy-part-time-caption":"vacancy-full-time-caption",L=(N,I={})=>M(N)?`${I?.[R(N)]}: ${N} ${I?.["weekly-hours"]}`:"",$=(N,I={})=>M(N)?`${N} ${I?.["weekly-hours"]}`:"",F=/(?:^|\b)(?:vanaf|from)\s+0\b|\b0\s+(?:jaar|years?|yr)\b/i,B=N=>{let I=N?.trim();return!!I&&!F.test(I)},U=N=>B(N)?N?.trim()??"":"",H=(N,I)=>{let T=U(N);return T?`${I?.["vacancy-experience-caption"]}: ${T}`:""},z=(N,I,T)=>{let P=new Date(N).toLocaleDateString(I,{month:"long",day:"2-digit",year:"numeric"}),D=T?.["vacancy-valid-until-caption"];return D?`${D}: ${P}`:P},W=RegExp("(?:[0-9]{4}-).*[0-9].*$","i"),q="[email protected]",G=N=>W.test(N),K=N=>N?.trim()?.toLowerCase()===q,V=(N,I)=>{N.setAttribute("value",I),N.value=I,N.dispatchEvent(new Event("input",{bubbles:!0})),N.dispatchEvent(new Event("change",{bubbles:!0}))},Y=N=>{for(let I of document.querySelectorAll(".form-page"))for(let T of N){let N=I.querySelector(T);if(N)return N}for(let I of N){let N=document.querySelector(I);if(N)return N}return null},J=()=>{if(0===document.getElementsByClassName("form-page").length)return!1;let N=Array.from(new URLSearchParams(window.location.search).entries()).reduce((N,[I,T])=>(N[I.toLowerCase()]=T,N),{}),I=N?.v,T=N?.t,P=!T,D=!I;if(T){document.querySelectorAll("h2").forEach(N=>{let I=N.textContent??"";I.includes("{vacancy-title}")&&(N.textContent=I.replace("{vacancy-title}",T),P=!0)});let N=Y(['input[name="vacancyTitle"]','input[name="VacancyTitle"]']);N&&(V(N,T),P=!0)}if(I){let N=Y(['input[name="vacancyId"]','input[name="VacancyId"]']);N&&(V(N,I),D=!0)}return T&&!I?P:I&&!T?D:P&&D}},66713:N=>{N.exports=function(N,I){this.v=N,this.k=I},N.exports.__esModule=!0,N.exports.default=N.exports},66788:N=>{N.exports=function(N){var I=Object(N),T=[];for(var P in I)T.unshift(P);return function N(){for(;T.length;)if((P=T.pop())in I)return N.value=P,N.done=!1,N;return N.done=!0,N}},N.exports.__esModule=!0,N.exports.default=N.exports},66799:(N,I,T)=>{"use strict";T.d(I,{GP:()=>ec});var P=T(1806),D=T(42586),M=T(95643),R=T(50338),L=T(43691);function $(N,I){let T=(0,L.a)(N,I?.in);return(0,M.m)(T,(0,R.D)(T))+1}var F=T(91317),B=T(54334),U=T(90051),H=T(14111);function z(N,I){return(N<0?"-":"")+Math.abs(N).toString().padStart(I,"0")}let W={y(N,I){let T=N.getFullYear(),P=T>0?T:1-T;return z("yy"===I?P%100:P,I.length)},M(N,I){let T=N.getMonth();return"M"===I?String(T+1):z(T+1,2)},d:(N,I)=>z(N.getDate(),I.length),a(N,I){let T=N.getHours()/12>=1?"pm":"am";switch(I){case"a":case"aa":return T.toUpperCase();case"aaa":return T;case"aaaaa":return T[0];
1152default:return"am"===T?"a.m.":"p.m."}},h:(N,I)=>z(N.getHours()%12||12,I.length),H:(N,I)=>z(N.getHours(),I.length),m:(N,I)=>z(N.getMinutes(),I.length),s:(N,I)=>z(N.getSeconds(),I.length),S(N,I){let T=I.length;return z(Math.trunc(N.getMilliseconds()*Math.pow(10,T-3)),I.length)}},q="midnight",G="noon",K="morning",V="afternoon",Y="evening",J="night",Q={G:function(N,I,T){let P=+(N.getFullYear()>0);switch(I){case"G":case"GG":case"GGG":return T.era(P,{width:"abbreviated"});case"GGGGG":return T.era(P,{width:"narrow"});default:return T.era(P,{width:"wide"})}},y:function(N,I,T){if("yo"===I){let I=N.getFullYear(),P=I>0?I:1-I;return T.ordinalNumber(P,{unit:"year"})}return W.y(N,I)},Y:function(N,I,T,P){let D=(0,H.h)(N,P),M=D>0?D:1-D;return"YY"===I?z(M%100,2):"Yo"===I?T.ordinalNumber(M,{unit:"year"}):z(M,I.length)},R:function(N,I){return z((0,B.p)(N),I.length)},u:function(N,I){return z(N.getFullYear(),I.length)},Q:function(N,I,T){let P=Math.ceil((N.getMonth()+1)/3);switch(I){case"Q":return String(P);case"QQ":return z(P,2);case"Qo":return T.ordinalNumber(P,{unit:"quarter"});case"QQQ":return T.quarter(P,{width:"abbreviated",context:"formatting"});case"QQQQQ":return T.quarter(P,{width:"narrow",context:"formatting"});default:return T.quarter(P,{width:"wide",context:"formatting"})}},q:function(N,I,T){let P=Math.ceil((N.getMonth()+1)/3);switch(I){case"q":return String(P);case"qq":return z(P,2);case"qo":return T.ordinalNumber(P,{unit:"quarter"});case"qqq":return T.quarter(P,{width:"abbreviated",context:"standalone"});case"qqqqq":return T.quarter(P,{width:"narrow",context:"standalone"});default:return T.quarter(P,{width:"wide",context:"standalone"})}},M:function(N,I,T){let P=N.getMonth();switch(I){case"M":case"MM":return W.M(N,I);case"Mo":return T.ordinalNumber(P+1,{unit:"month"});case"MMM":return T.month(P,{width:"abbreviated",context:"formatting"});case"MMMMM":return T.month(P,{width:"narrow",context:"formatting"});default:return T.month(P,{width:"wide",context:"formatting"})}},L:function(N,I,T){let P=N.getMonth();switch(I){case"L":return String(P+1);case"LL":return z(P+1,2);case"Lo":return T.ordinalNumber(P+1,{unit:"month"});case"LLL":return T.month(P,{width:"abbreviated",context:"standalone"});case"LLLLL":return T.month(P,{width:"narrow",context:"standalone"});default:return T.month(P,{width:"wide",context:"standalone"})}},w:function(N,I,T,P){let D=(0,U.N)(N,P);return"wo"===I?T.ordinalNumber(D,{unit:"week"}):z(D,I.length)},I:function(N,I,T){let P=(0,F.s)(N);return"Io"===I?T.ordinalNumber(P,{unit:"week"}):z(P,I.length)},d:function(N,I,T){return"do"===I?T.ordinalNumber(N.getDate(),{unit:"date"}):W.d(N,I)},D:function(N,I,T){let P=$(N);return"Do"===I?T.ordinalNumber(P,{unit:"dayOfYear"}):z(P,I.length)},E:function(N,I,T){let P=N.getDay();switch(I){case"E":case"EE":case"EEE":return T.day(P,{width:"abbreviated",context:"formatting"});case"EEEEE":return T.day(P,{width:"narrow",context:"formatting"});case"EEEEEE":return T.day(P,{width:"short",context:"formatting"});default:return T.day(P,{width:"wide",context:"formatting"})}},e:function(N,I,T,P){let D=N.getDay(),M=(D-P.weekStartsOn+8)%7||7;switch(I){case"e":return String(M);case"ee":return z(M,2);case"eo":return T.ordinalNumber(M,{unit:"day"});case"eee":return T.day(D,{width:"abbreviated",context:"formatting"});case"eeeee":return T.day(D,{width:"narrow",context:"formatting"});case"eeeeee":return T.day(D,{width:"short",context:"formatting"});default:return T.day(D,{width:"wide",context:"formatting"})}},c:function(N,I,T,P){let D=N.getDay(),M=(D-P.weekStartsOn+8)%7||7;switch(I){case"c":return String(M);case"cc":return z(M,I.length);case"co":return T.ordinalNumber(M,{unit:"day"});case"ccc":return T.day(D,{width:"abbreviated",context:"standalone"});case"ccccc":return T.day(D,{width:"narrow",context:"standalone"});case"cccccc":return T.day(D,{width:"short",context:"standalone"});default:return T.day(D,{width:"wide",context:"standalone"})}},i:function(N,I,T){let P=N.getDay(),D=0===P?7:P;switch(I){case"i":return String(D);case"ii":return z(D,I.length);case"io":return T.ordinalNumber(D,{unit:"day"});case"iii":return T.day(P,{width:"abbreviated",context:"formatting"});case"iiiii":return T.day(P,{width:"narrow",context:"formatting"});case"iiiiii":return T.day(P,{width:"short",context:"formatting"});default:return T.day(P,{width:"wide",context:"formatting"})}},a:function(N,I,T){let P=N.getHours()/12>=1?"pm":"am";switch(I){case"a":case"aa":return T.dayPeriod(P,{width:"abbreviated",context:"formatting"});case"aaa":return T.dayPeriod(P,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return T.dayPeriod(P,{width:"narrow",context:"formatting"});default:return T.dayPeriod(P,{width:"wide",context:"formatting"})}},b:function(N,I,T){let P,D=N.getHours();switch(P=12===D?G:0===D?q:D/12>
1152=1?"pm":"am",I){case"b":case"bb":return T.dayPeriod(P,{width:"abbreviated",context:"formatting"});case"bbb":return T.dayPeriod(P,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return T.dayPeriod(P,{width:"narrow",context:"formatting"});default:return T.dayPeriod(P,{width:"wide",context:"formatting"})}},B:function(N,I,T){let P,D=N.getHours();switch(P=D>=17?Y:D>=12?V:D>=4?K:J,I){case"B":case"BB":case"BBB":return T.dayPeriod(P,{width:"abbreviated",context:"formatting"});case"BBBBB":return T.dayPeriod(P,{width:"narrow",context:"formatting"});default:return T.dayPeriod(P,{width:"wide",context:"formatting"})}},h:function(N,I,T){if("ho"===I){let I=N.getHours()%12;return 0===I&&(I=12),T.ordinalNumber(I,{unit:"hour"})}return W.h(N,I)},H:function(N,I,T){return"Ho"===I?T.ordinalNumber(N.getHours(),{unit:"hour"}):W.H(N,I)},K:function(N,I,T){let P=N.getHours()%12;return"Ko"===I?T.ordinalNumber(P,{unit:"hour"}):z(P,I.length)},k:function(N,I,T){let P=N.getHours();return(0===P&&(P=24),"ko"===I)?T.ordinalNumber(P,{unit:"hour"}):z(P,I.length)},m:function(N,I,T){return"mo"===I?T.ordinalNumber(N.getMinutes(),{unit:"minute"}):W.m(N,I)},s:function(N,I,T){return"so"===I?T.ordinalNumber(N.getSeconds(),{unit:"second"}):W.s(N,I)},S:function(N,I){return W.S(N,I)},X:function(N,I,T){let P=N.getTimezoneOffset();if(0===P)return"Z";switch(I){case"X":return X(P);case"XXXX":case"XX":return ee(P);default:return ee(P,":")}},x:function(N,I,T){let P=N.getTimezoneOffset();switch(I){case"x":return X(P);case"xxxx":case"xx":return ee(P);default:return ee(P,":")}},O:function(N,I,T){let P=N.getTimezoneOffset();switch(I){case"O":case"OO":case"OOO":return"GMT"+Z(P,":");default:return"GMT"+ee(P,":")}},z:function(N,I,T){let P=N.getTimezoneOffset();switch(I){case"z":case"zz":case"zzz":return"GMT"+Z(P,":");default:return"GMT"+ee(P,":")}},t:function(N,I,T){return z(Math.trunc(N/1e3),I.length)},T:function(N,I,T){return z(+N,I.length)}};function Z(N,I=""){let T=N>0?"-":"+",P=Math.abs(N),D=Math.trunc(P/60),M=P%60;return 0===M?T+String(D):T+String(D)+I+z(M,2)}function X(N,I){return N%60==0?(N>0?"-":"+")+z(Math.abs(N)/60,2):ee(N,I)}function ee(N,I=""){let T=N>0?"-":"+",P=Math.abs(N);return T+z(Math.trunc(P/60),2)+I+z(P%60,2)}var et=T(41760),er=T(25637),en=T(5552);let ea=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ei=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,eo=/^'([^]*?)'?$/,es=/''/g,el=/[a-zA-Z]/;function ec(N,I,T){let M=(0,D.q)(),R=T?.locale??M.locale??P.c,$=T?.firstWeekContainsDate??T?.locale?.options?.firstWeekContainsDate??M.firstWeekContainsDate??M.locale?.options?.firstWeekContainsDate??1,F=T?.weekStartsOn??T?.locale?.options?.weekStartsOn??M.weekStartsOn??M.locale?.options?.weekStartsOn??0,B=(0,L.a)(N,T?.in);if(!(0,en.f)(B))throw RangeError("Invalid time value");let U=I.match(ei).map(N=>{let I=N[0];return"p"===I||"P"===I?(0,et.m[I])(N,R.formatLong):N}).join("").match(ea).map(N=>{if("''"===N)return{isToken:!1,value:"'"};let I=N[0];if("'"===I)return{isToken:!1,value:eu(N)};if(Q[I])return{isToken:!0,value:N};if(I.match(el))throw RangeError("Format string contains an unescaped latin alphabet character `"+I+"`");return{isToken:!1,value:N}});R.localize.preprocessor&&(U=R.localize.preprocessor(B,U));let H={firstWeekContainsDate:$,weekStartsOn:F,locale:R};return U.map(P=>{if(!P.isToken)return P.value;let D=P.value;return(!T?.useAdditionalWeekYearTokens&&(0,er.xM)(D)||!T?.useAdditionalDayOfYearTokens&&(0,er.ef)(D))&&(0,er.Ss)(D,I,String(N)),(0,Q[D[0]])(B,D,R.localize,H)}).join("")}function eu(N){let I=N.match(eo);return I?I[1].replace(es,"'"):N}},66896:(N,I,T)=>{"use strict";T.r(I),T.d(I,{ArticlesList:()=>L});var P=T(37876),D=T(23649),M=T(10409),R=T(63366);let L=({dictionary:N,locale:I,articles:T,isPending:L,noData:$})=>T?.length?(0,P.jsx)(M.a,{className:"flex flex-col",children:T.map(T=>(0,P.jsxs)(M.a,{className:"mb-8 flex flex-col gap-2 rounded-lg bg-white px-4 py-6 shadow transition hover:bg-gray-50",children:[(0,P.jsx)(M.a,{className:"flex items-center justify-between",children:(0,P.jsx)(R.o5,{plainText:new Date(T.firstPublishedDate).toLocaleDateString("en"===I?"en-GB":I??"en-GB"),className:"text-xs! text-gray-900"})}),(0,P.jsx)(R.o5,{type:"h3",plainText:T.title,className:"text-lg font-semibold"}),(0,P.jsx)(R.o5,{plainText:T.description,className:"mb-2 line-clamp-3 text-gray-600 md:line-clamp-none"}),(0,P.jsx)(D.Button,{variant:"primaryrounded",className:"self-start py-1 font-medium text-brunel-yellow",linkField:{value:{href:T.fileRef,linktype:T.fileRef.startsWith("http")?"external":"internal",target:T.fileRef.startsWith("http")?"_blank":"_self",text:N?.readMore||"Read more"}}})]},`id_${T.title}`))}):(0,P.jsxs)(M.a,{className:"flex w-full flex-col items-center gap-2 bg-accent-pampas p-8 text-accent-fiord!",children:[(0,P.jsx)(M.a,{dangerouslySetInnerHTML:{__html:$}}),L&&(0,P.jsxs)(M.a,{className:"flex items-center gap-2",children:[(0,P.jsx)(M.a,{as:"span",className:"loading-spoinner loading w-6 text-brunel-yellow"}),(0,P.jsx)(R.o5,{plainText:"Loading News..."})]})]})},66963:(N,I,T)=>{"use strict";T.d(I,{e:()=>H});var P=T(37876),D=T(10409),M=T(47137),R=T(54587),L=T.n(R);T(14232);var $=T(36379);let F=` 1153 flex items-center justify-center 1154 rounded-full !font-bold 1155 overflow-hidden 1156 rounded-full 1157 bg-brunel-light-grey 1158`,B=` 1159 w-100 h-full 1160 object-cover 1161`,U=(0,M.F)([F],{variants:{size:{sm:"h-7 w-7 p-4 text-xs",md:"h-10 w-10 text-sm",lg:"h-12 w-12 text-lg"},m:{2:"m-2",4:"m-4",8:"m-8"},mx:{2:"mx-2",4:"mx-4",8:"mx-8"},my:{2:"my-2",4:"my-4",8:"my-8"},bgColor:{default:"bg-brunel-yellow"},color:{primary:"text-primary",secondary:"text-brunel-dark-grey",white:"text-white"}},defaultVariants:{size:"sm",bgColor:"default",color:"secondary"}}
1161),H=({size:N,m:I,mx:T,my:M,bgColor:R,color:F,imgUrl:H,imgAlt:z,initials:W,className:q,...G})=>{let K=void 0!==H;return(0,P.jsx)(D.a,{className:(0,$.cn)(U({size:N,m:I,mx:T,my:M,bgColor:R,color:F,className:q})),...G,children:K?(0,P.jsx)(L(),{src:H,alt:z??"Avatar-Img",className:B}):W&&(0,P.jsx)("span",{className:"m-0 p-2 text-inherit",children:W})})};H.displayName="Avatar"},67085:(N,I,T)=>{"use strict";T.r(I),T.d(I,{STICKY_TOP:()=>$,fitsOnSide:()=>F,getSidePanelLeft:()=>B,resolveHasNoFields:()=>H,resolveSidePanelTop:()=>U});let P=280,D=24,M=1080,R=1024,L=48,$=120,F=N=>!(N<R)&&(N-M)/2>=P+D,B=N=>Math.max(16,(N-M)/2-P-D),U=N=>Math.max($,N+L),H=N=>!N||0===Object.keys(N).length},67138:function(N){N.exports=function(N,I,T,P,D){for(I=I.split?I.split("."):I,P=0;P<I.length;P++)N=N?N[I[P]]:D;return N===D?T:N}},67274:(N,I,T)=>{let P=T(98311),D=T(9955),M={};function R(N){let I=function(...I){let T=I[0];return null==T?T:(T.length>1&&(I=T),N(I))};return"conversion"in N&&(I.conversion=N.conversion),I}function L(N){let I=function(...I){let T=I[0];if(null==T)return T;T.length>1&&(I=T);let P=N(I);if("object"==typeof P)for(let N=P.length,I=0;I<N;I++)P[I]=Math.round(P[I]);return P};return"conversion"in N&&(I.conversion=N.conversion),I}Object.keys(P).forEach(N=>{M[N]={},Object.defineProperty(M[N],"channels",{value:P[N].channels}),Object.defineProperty(M[N],"labels",{value:P[N].labels});let I=D(N);Object.keys(I).forEach(T=>{let P=I[T];M[N][T]=L(P),M[N][T].raw=R(P)})}),N.exports=M},67340:(N,I,T)=>{"use strict";T.r(I),T.d(I,{default:()=>z});var P=T(37876),D=T(67768),M=T(67914),R=T(40097),L=T(14232),$=T(23649),F=T(66963),B=T(63366),U=T(42339);let H=50,z=({conversation:N,onHide:I,onBack:T,session:z,dictionary:W})=>{let q,G=(0,D.jE)(),[K,V]=(0,L.useState)(""),[Y,J]=(0,L.useState)(0),Q=(0,L.useRef)(null);(0,L.useEffect)(()=>{J(0)},[N.chatId]);let{data:Z,isLoading:X}=(0,M.I)({queryKey:["messages",N.chatId,Y,z?.user.id],queryFn:async()=>{let I=await fetch(`/api/chat/${N.chatId}/messages?skip=${Y}&take=${H}&mercuryUserId=${z?.user.id??""}`,{method:"GET",headers:{"Content-Type":"application/json"}});if(!I.ok)throw Error("Failed to fetch messages");return I.json()}}),ee=Z?.messages??[],et=ee.length>H;(0,L.useEffect)(()=>{X||Q.current?.scrollIntoView({behavior:"smooth"})},[X]);let er=(0,R.n)({mutationFn:async I=>{let T=I.trim();return(await fetch("/api/chat/send",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({fromDisplayName:z?.user.name??"",toDisplayName:N.otherUserDisplayName??"",toMercuryUserId:N.otherUserId??"",fromMercuryUserId:z?.user.id??"",message:T,replyToChatMessageId:N.chatId})})).json()},onSuccess:I=>{I.success&&(V(""),G.invalidateQueries({queryKey:["messages",N.chatId]}),G.invalidateQueries({queryKey:["conversations"]}),Q.current?.scrollIntoView({behavior:"smooth"}))}}),en=()=>{K.trim()&&!er.isPending&&er.mutate(K)},ea=()=>{J(N=>N+H)};return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)("div",{className:"flex items-center justify-between gap-3 border-b border-accent-iron bg-white px-4 py-2",children:[(0,P.jsxs)("div",{className:"flex items-center gap-3",children:[(0,P.jsx)("button",{onClick:T,className:"block rounded-xl bg-accent-iron p-2 font-medium md:hidden",children:"â"}),(0,P.jsx)(F.e,{initials:(0,U.IM)(N.otherUserDisplayName??N.otherUserDisplayName)}),(0,P.jsx)("p",{className:"text-sm font-semibold text-gray-800",children:N.otherUserDisplayName??N.otherUserDisplayName})]}),(0,P.jsx)("button",{onClick:()=>I(N.chatId),className:"size-10 cursor-pointer rounded-full border border-accent-iron bg-accent-pampas px-2 text-xs font-medium hover:bg-yellow-100",title:"Verberg gesprek",children:(0,P.jsx)(B.In,{name:"trash",size:"small"})})]}),(0,P.jsxs)("div",{className:"flex-1 space-y-3 overflow-y-auto px-6 py-4",children:[et&&!X&&(0,P.jsx)("div",{className:"flex justify-center",children:(0,P.jsx)("button",{onClick:ea,className:"rounded-full border border-accent-iron px-4 py-1 text-xs text-gray-500 hover:bg-gray-100",children:W?.["load-more-messages"]??"[load-more-messages]"})}),X?(0,P.jsx)("div",{className:"flex h-full items-center justify-center text-sm text-gray-400",children:W?.["chat-loading"]??"[chat-loading]"}):0===ee.length?(0,P.jsx)("div",{className:"flex h-full items-center justify-center text-sm text-gray-400",children:W?.["no-messages-found"]??"[no-messages-found]"}):(q="",ee.map(I=>{let T=I.fromMercuryUserId!==N.otherUserId,D=new Date(I.createdDate),M=new Date,R=new Date;R.setDate(M.getDate()-1);let L=D.toDateString()===M.toDateString(),$=D.toDateString()===R.toDateString(),H=L?W?.["date-today"]??"date-today":$?W?.["date-yesterday"]??"date-yesterday":D.toLocaleDateString(void 0,{day:"numeric",month:"long",year:"numeric"}),z=H!==q;return q=H,(0,P.jsxs)("div",{children:[z&&(0,P.jsxs)("div",{className:"my-4 flex items-center gap-3",children:[(0,P.jsx)("div",{className:"h-px flex-1 bg-accent-iron"}),(0,P.jsx)("span",{className:"text-xs text-gray-400",children:H}),(0,P.jsx)("div",{className:"h-px flex-1 bg-accent-iron"})]}),(0,P.jsxs)("div",{className:`flex items-end gap-2 ${T?"flex-row-reverse":"flex-row"}`,children:[!T&&(0,P.jsx)(F.e,{initials:(0,U.IM)(N.otherUserDisplayName)}),(0,P.jsx)("div",{className:`max-w-[75%] ${T?"items-end":"items-start"} flex flex-col`,children:(0,P.jsxs)("div",{className:`rounded-2xl px-4 py-3 text-sm whitespace-pre-wrap shadow-sm ${T?"rounded-br-none bg-brunel-yellow/60 text-brunel-dark-grey":"rounded-bl-none border border-accent-iron bg-white text-gray-800"}`,children:[I.message,(0,P.jsxs)("p",{className:"mt-1 flex items-center justify-end text-xs italic",children:[D.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"}),T&&I.isRead&&(0,P.jsx)(B.In,{name:"double-tick",color:"toast-info"})]})]})})]})]},I.chatMessageId)})),(0,P.jsx)("div",{ref:Q})]}),(0,P.jsxs)("div",{className:"flex gap-2 border-t border-accent-iron bg-white p-4",children:[(0,P.jsx)("input",{value:K,onChange:N=>V(N.target.value),placeholder:W?.["type-message-placeholder"]??"[type-message-placeholder]",className:"h-10 flex-1 rounded-full border border-accent-iron px-4 py-1 text-sm focus:ring-2 focus:ring-brunel-yellow focus:outline-none",onKeyDown:N=>{"Enter"!==N.key||N.shiftKey||(N.preventDefault(),en())}}),(0,P.jsx)($.Button,{className:"px-4 py-0",variant:"primaryrounded",onClick:en,plainText:er.isPending?"...":W?.["send-button"]??"[send-button]",iconName:"send",
1161iconSide:"right",iconSize:"small",disabled:er.isPending})]})]})}},67561:(N,I,T)=>{"use strict";T.d(I,{s:()=>L});var P=T(37876),D=T(77328),M=T.n(D);let R=(N,I)=>{let T=N["@type"],P=Array.isArray(T)?T.join("-"):String(T??"schema"),D=N["@id"];return`structured-data-${P}-${String(D??I)}`},L=({schemas:N})=>{let I=N.filter(N=>null!=N);return 0===I.length?null:(0,P.jsx)(M(),{children:I.map((N,I)=>(0,P.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(N)}},R(N,I)))})}},67696:(N,I,T)=>{N.exports.cookies=T(40658).cookies,N.exports.headers=T(69919).headers,N.exports.draftMode=T(90970).draftMode},67768:(N,I,T)=>{"use strict";T.d(I,{Ht:()=>L,jE:()=>R});var P=T(14232),D=T(37876);let M=P.createContext(void 0),R=N=>{let I=P.useContext(M);if(N)return N;if(!I)throw Error("No QueryClient set, use QueryClientProvider to set one");return I},L=({client:N,children:I})=>(P.useEffect(()=>(N.mount(),()=>{N.unmount()}),[N]),(0,D.jsx)(M.Provider,{value:N,children:I}))},67815:(N,I,T)=>{"use strict";T.d(I,{f:()=>D});var P=T(14990);function D(){return(0,P.UO)().adapter.getClientId()||""}},67881:(N,I,T)=>{"use strict";T.d(I,{q:()=>H,y:()=>U});let P={applicantPortalPageLoad:N=>{window.dataLayer.push({myBrunelId:N})},startApplicantPortalForm:(N,I,T)=>{window.dataLayer.some(N=>"startForm"===N.event&&"mybrunelCandidates"===N.eventCategory)||window.dataLayer.push({eventCategory:"mybrunelCandidates",eventAction:`start;${N}`,eventName:I,event:"startForm",roles:T})},completeApplicantPortalForm:(N,I,T)=>{window.dataLayer.push({eventCategory:"mybrunelCandidates",eventAction:`complete;${N}`,eventName:I,event:"completeForm",roles:T})},interactFormFieldApplicantPortal:(N,I,T)=>{window.dataLayer.push({eventCategory:"mybrunelCandidates",eventAction:`interact;${N}`,eventName:T,event:`interaction.${I}`})}},D={startDirectApplication:(N,I,T)=>{window.dataLayer.some(N=>"startApplication"===N.event&&"directJobApplication"===N.eventCategory)||window.dataLayer.push({eventCategory:"directJobApplication",eventAction:`start;${N}`,eventName:I,...T&&{formType:T},event:"startApplication"})},submitDirectApplication:(N,I,T)=>{window.dataLayer.push({eventCategory:"directJobApplication",eventAction:`submit;${N}`,eventName:I,...T&&{formType:T},event:"submitApplication"})},interactFormFieldDirectApplication:(N,I,T)=>{window.dataLayer.push({eventCategory:"directJobApplication",eventAction:`interact;${N}`,eventName:T,event:`interaction.${I}`})},startPersonalApplication:(N,I,T)=>{window.dataLayer.some(N=>"startApplication"===N.event&&"personalJobApplication"===N.eventCategory)||window.dataLayer.push({eventCategory:"personalJobApplication",eventAction:`start;${N}`,eventName:I??"personalApply",...T&&{formType:T},event:"startApplication"})},submitPersonalApplication:(N,I,T)=>{window.dataLayer.push({eventCategory:"personalJobApplication",eventAction:`submit;${N}`,eventName:I??"personalApply",...T&&{formType:T},event:"submitApplication"})},interactFormFieldPersonalApplication:(N,I,T)=>{window.dataLayer.push({eventCategory:"personalJobApplication",eventAction:`interact;${N}`,eventName:T,event:`interaction.${I}`})},startOpenApplication:(N,I)=>{window.dataLayer.some(N=>"startApplication"===N.event&&"openJobApplication"===N.eventCategory)||window.dataLayer.push({eventCategory:"openJobApplication",eventAction:`start;${N}`,eventName:"openApply",...I&&{formType:I},event:"startApplication"})},submitOpenApplication:(N,I)=>{window.dataLayer.push({eventCategory:"openJobApplication",eventAction:`submit;${N}`,eventName:"openApply",...I&&{formType:I},event:"submitApplication"})},interactFormFieldOpenApplication:(N,I,T)=>{window.dataLayer.push({eventCategory:"openJobApplication",eventAction:`interact;${N}`,eventName:T,event:`interaction.${I}`})},submitDirectQuickApplication:(N,I)=>{window.dataLayer.push({eventCategory:"directJobApplication",eventAction:"start;QuickApplication",eventName:N,...I&&{formType:I},event:"submitQuickApplication"})},submitOpenQuickApplication:(N,I)=>{window.dataLayer.push({eventCategory:"openJobApplication",eventAction:"start;QuickApplication",eventName:N,...I&&{formType:I},event:"submitQuickApplication"})}},M={login:N=>{window.dataLayer.push({eventCategory:"mybrunelCandidates",eventAction:"login",eventName:N,event:"login"})}};var R,L=T(65212),$=T(8496);let F={vacancyDetailPageApplyButton:async(N,I)=>{let T,P="ctaClick",D="ctaClick",M="apply button";
1161try{T=await Promise.all([(0,$.f)(N?.country??"",I).then(N=>N?.[0]?.text?.value)])}catch(N){L.A.ui("Failed to fetch dictionary values to send to dataLayer inside vacancyDetailPageEnter function.",N)}window.dataLayer.push({event:P,eventCategory:D,eventAction:M,vacancyid:N?.publicationId,city:N?.city,country:T?.[0],countryId:N?.country,jobtitle:N?.title,vacancyWorkHours:N?.vacancyWorkHours,endDate:N?.endDate,applicationUrl:N?.applicationUrl})}};var B=T(98566),U=((R={}).CTAButton="cta-button",R.ApplyNowButton="#application-cta",R);let H={common:{searchPageSearchButton:N=>{let I="ctaClick",T="ctaClick",P="search button";window.dataLayer.push({event:I,eventCategory:T,eventAction:P,keyword:N?.keyword,location:N?.location,distance:N?.distance})},vacancyDetailOnPageEnter:async(N,I,T)=>{let P,D="pageEnter",M="pageEnter";try{P=await Promise.all([(0,$.f)(I?.areaOfExpertise??"",T).then(N=>N?.[0]?.text?.value),(0,$.f)(I?.branche??"",T).then(N=>N?.[0]?.text?.value),(0,$.f)(I?.businessLine??"",T).then(N=>N?.[0]?.text?.value),(0,$.f)(I?.businessService??"",T).then(N=>N?.[0]?.text?.value),(0,$.f)(I?.businessUnit??"",T).then(N=>N?.[0]?.text?.value),(0,$.f)(I?.country??"",T).then(N=>N?.[0]?.text?.value),(0,$.f)(I?.educationlevel??"",T).then(N=>N?.[0]?.text?.value),(0,$.f)(I?.market??"",T).then(N=>N?.[0]?.text?.value),(0,$.f)(I?.region??"",T).then(N=>N?.[0]?.text?.value)])}catch(N){return L.A.ui("Failed to fetch dictionary values to send to dataLayer inside vacancyDetailPageEnter function.",N),Promise.reject(Error("Failed to fetch dictionary values for dataLayer"))}return window.dataLayer.some(T=>T.event===D&&T.eventCategory===M&&T.eventAction===N&&T.vacancyid===I?.publicationId)||window.dataLayer.push({event:D,eventCategory:M,eventAction:N,areaOfExpertise:P?.[0]??null,areaOfExpertiseId:I?.areaOfExpertise,branche:P?.[1]??null,brancheId:I?.branche,businessLine:P?.[2]??null,businessLineId:I?.businessLine,businessService:P?.[3]??null,businessServiceId:I?.businessService,businessUnit:P?.[4]??null,businessUnitId:I?.businessUnit,city:I?.city,contactmail:I?.contactEmail,contactame:I?.contactName,contactofficename:I?.contactOfficeName,country:P?.[5]??null,countryId:I?.country,educationlevel:P?.[6]??null,educationlevelId:I?.educationlevel,endDate:I?.endDate,jobdescription:I?.description?.removeHTML(),jobintroduction:I?.introduction?.removeHTML(),joboffer:I?.joboffer?.removeHTML(),joborganisation:I?.organisation?.removeHTML(),jobrequirements:I?.jobrequirements?.removeHTML(),jobtitle:I?.title?.removeHTML(),language:I?.currentLanguage,market:P?.[7]??null,marketId:I?.market,region:P?.[8]??null,regionId:I?.region,start:I?.startDate,totalYearsOfExperience:I?.totalYearsOfExperience,vacancyid:I?.publicationId}),Promise.resolve(!0)},metadataOnLoad:(N,I,T,P,D,M)=>{{let R=new URLSearchParams(window.location.search),L=(0,B.up)(R);return window.dataLayer.push({pageId:N,pageType:I,contentGroup:T,...P?.split("-")?.[1]&&{country:P.split("-")[1]},...P.split("-")?.[0]&&{language:P.split("-")[0]},locale:P,...L.get("utm_source")&&{utmSource:L.get("utm_source")},...L.get("utm_medium")&&{utmMedium:L.get("utm_medium")},...L.get("utm_campaign")&&{utmCampaign:L.get("utm_campaign")},...D&&{userId:D},...M&&{userGroup:M}}),Promise.resolve(!0)}}},auth:M,applicantPortal:P,vacancyDetailPage:F,applyForm:D}},67914:(N,I,T)=>{"use strict";T.d(I,{I:()=>eo});var P=T(67768),D=T(14232);let M=D.createContext(!1),R=()=>D.useContext(M);function L(){let N=!1;return{clearReset:()=>{N=!1},reset:()=>{N=!0},isReset:()=>N}}M.Provider,T(37876);let $=D.createContext(L()),F=()=>D.useContext($);var B=T(37149);let U=(N,I,T)=>{let P=T?.state.error&&"function"==typeof N.throwOnError?(0,B.GU)(N.throwOnError,[T.state.error,T]):N.throwOnError;(N.suspense||P)&&!I.isReset()&&(N.retryOnMount=!1)},H=N=>{D.useEffect(()=>{N.clearReset()},[N])},z=({result:N,errorResetBoundary:I,throwOnError:T,query:P,suspense:D})=>N.isError&&!I.isReset()&&!N.isFetching&&P&&(D&&void 0===N.data||(0,B.GU)(T,[N.error,P])),W=N=>{if(N.suspense){let I=1e3,T=N=>"static"===N?N:Math.max(N??I,I),P=N.staleTime;N.staleTime="function"==typeof P?(...N)=>T(P(...N)):T(P),"number"==typeof N.gcTime&&(N.gcTime=Math.max(N.gcTime,I))}},q=(N,I)=>N?.suspense&&I.isPending,G=(N,I,T)=>I.fetchOptimistic(N).catch(()=>{T.clearReset()});var K=T(60388);function V(N,I,T){let M=R(),L=F(),$=(0,P.jE)(T),V=$.defaultQueryOptions(N),Y=$.getQueryCache().get(V.queryHash),J=!1!==N.subscribed;
1161V._optimisticResults=M?"isRestoring":J?"optimistic":void 0,W(V),U(V,L,Y),H(L);let[Q]=D.useState(()=>new I($,V)),Z=Q.getOptimisticResult(V),X=!M&&J;if(D.useSyncExternalStore(D.useCallback(N=>{let I=X?Q.subscribe(K.jG.batchCalls(N)):B.lQ;return Q.updateResult(),I},[Q,X]),()=>Q.getCurrentResult(),()=>Q.getCurrentResult()),D.useEffect(()=>{Q.setOptions(V)},[V,Q]),q(V,Z))throw G(V,Q,L);if(z({result:Z,errorResetBoundary:L,throwOnError:V.throwOnError,query:Y,suspense:V.suspense}))throw Z.error;return V.notifyOnChangeProps?Z:Q.trackResult(Z)}var Y=T(48306),J=T(25028),Q=T(90089),Z=T(98275),X=T(43632),ee=class extends Q.Q{#t;#ea=void 0;#ei=void 0;#x=void 0;#eo;#es;#el;#ec;#eu;#ed;#ef;#eh;#ep;#em=new Set;constructor(N,I){super(),this.options=I,this.#t=N,this.#el=null,this.bindMethods(),this.setOptions(I)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#ea.addObserver(this),er(this.#ea,this.options)?this.#eg():this.updateResult(),this.#ey())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return en(this.#ea,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return en(this.#ea,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#eb(),this.#ev(),this.#ea.removeObserver(this)}setOptions(N){let I=this.options,T=this.#ea;if(this.options=this.#t.defaultQueryOptions(N),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,B.GF)(this.options.enabled,this.#ea))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#ew(),this.#ea.setOptions(this.options),I._defaulted&&!(0,B.f8)(this.options,I)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#ea,observer:this});let P=this.hasListeners();P&&ea(this.#ea,T,this.options,I)&&this.#eg(),this.updateResult(),P&&(this.#ea!==T||(0,B.GF)(this.options.enabled,this.#ea)!==(0,B.GF)(I.enabled,this.#ea)||(0,B.GF)(this.options.staleTime,this.#ea)!==(0,B.GF)(I.staleTime,this.#ea))&&this.#ex();let D=this.#eA();P&&(this.#ea!==T||(0,B.GF)(this.options.enabled,this.#ea)!==(0,B.GF)(I.enabled,this.#ea)||D!==this.#ep)&&this.#eE(D)}getOptimisticResult(N){let I=this.#t.getQueryCache().build(this.#t,N),T=this.createResult(I,N);return(0,B.f8)(this.getCurrentResult(),T)||(this.#x=T,this.#es=this.options,this.#eo=this.#ea.state),T}getCurrentResult(){return this.#x}trackResult(N,I){return new Proxy(N,{get:(N,T)=>(this.trackProp(T),I?.(T),Reflect.get(N,T))})}trackProp(N){this.#em.add(N)}getCurrentQuery(){return this.#ea}refetch({...N}={}){return this.fetch({...N})}fetchOptimistic(N){let I,T=this.#t.defaultQueryOptions(N),P=this.#t.getQueryCache().build(this.#t,T),D=()=>{},M=new Promise(N=>{I=N,D=this.#t.getQueryCache().subscribe(I=>{"updated"===I.type&&I.query.queryHash===P.queryHash&&void 0!==P.state.data&&(D(),N(this.createResult(P,T)))})});return Promise.race([P.fetch().then(()=>{let N=this.createResult(P,T);return I?.(N),N}).finally(()=>{D()}),M])}fetch(N){return this.#eg({...N,cancelRefetch:N.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#x))}#eg(N){this.#ew();let I=this.#ea.fetch(this.options,N);return N?.throwOnError||(I=I.catch(B.lQ)),I}#eS(N){return!(0,J.S)()&&!1!==(0,B.GF)(this.options.enabled,this.#ea)&&(0,B.gn)(N)}#ex(){this.#eb();let N=(0,B.GF)(this.options.staleTime,this.#ea);if(this.#x.isStale||!this.#eS(N))return;let I=(0,B.j3)(this.#x.dataUpdatedAt,N)+1;this.#ef=Y.zs.setTimeout(()=>{this.#x.isStale||this.updateResult()},I)}#eA(){return(0,B.GF)(this.options.refetchInterval,this.#ea)??!1}#eE(N){this.#ev(),this.#ep=N,0!==this.#ep&&this.#eS(this.#ep)&&(this.#eh=Y.zs.setInterval(()=>{(this.options.refetchIntervalInBackground||Z.m.isFocused())&&this.#eg()},this.#ep))}#ey(){this.#ex(),this.#eE(this.#eA())}#eb(){void 0!==this.#ef&&(Y.zs.clearTimeout(this.#ef),this.#ef=void 0)}#ev(){void 0!==this.#eh&&(Y.zs.clearInterval(this.#eh),this.#eh=void 0)}createResult(N,I){let T,P=this.#ea,D=this.options,M=this.#x,R=this.#eo,L=this.#es,$=N!==P?N.state:this.#ei,{state:F}=N,U={...F},H=!1;if(I._optimisticResults){let T=this.hasListeners(),M=!T&&er(N,I),R=T&&ea(N,P,I,D);(M||R)&&(U={...U,...(0,X.k)(F.data,N.options)}),"isRestoring"===I._optimisticResults&&(U.fetchStatus="idle")}let{error:z,errorUpdatedAt:W,status:q}=U;T=U.data;let G=!1;if(void 0!==I.placeholderData&&void 0===T&&"pending"===q){let N;M?.isPlaceholderData&&I.placeholderData===L?.placeholderData?(N=M.data,G=!0):N="function"==typeof I.placeholderData?I.placeholderData(this.#ed?.state.data,this.#ed):I.placeholderData,void 0!==N&&(q="success",T=(0,B.pl)(M?.data,N,I),H=!0)}if(I.select&&void 0!==T&&!G)if(M&&T===R?.data&&I.select===this.#ec)T=this.#eu;else try{this.#ec=I.select,T=I.select(T),T=(0,B.pl)(M?.data,T,I),this.#eu=T,this.#el=null}catch(N){this.#el=N}else void 0===T&&(this.#el=null);this.#el&&(z=this.#el,T=this.#eu,W=Date.now(),q="error",H=!1);let K="fetching"===U.fetchStatus,V="pending"===q,Y="error"===q,J=V&&K,Q=void 0!==T;return{status:q,fetchStatus:U.fetchStatus,isPending:V,isSuccess:"success"===q,isError:Y,isInitialLoading:J,isLoading:J,data:T,dataUpdatedAt:U.dataUpdatedAt,error:z,errorUpdatedAt:W,failureCount:U.fetchFailureCount,failureReason:U.fetchFailureReason,errorUpdate
1161Count:U.errorUpdateCount,isFetched:N.isFetched(),isFetchedAfterMount:U.dataUpdateCount>$.dataUpdateCount||U.errorUpdateCount>$.errorUpdateCount,isFetching:K,isRefetching:K&&!V,isLoadingError:Y&&!Q,isPaused:"paused"===U.fetchStatus,isPlaceholderData:H,isRefetchError:Y&&Q,isStale:ei(N,I),refetch:this.refetch,isEnabled:!1!==(0,B.GF)(I.enabled,N)}}updateResult(){let N=this.#x,I=this.createResult(this.#ea,this.options);if(this.#eo=this.#ea.state,this.#es=this.options,void 0!==this.#eo.data&&(this.#ed=this.#ea),(0,B.f8)(I,N))return;this.#x=I;let T=(()=>{if(!N)return!0;let{notifyOnChangeProps:I}=this.options,T="function"==typeof I?I():I;if("all"===T||!T&&!this.#em.size)return!0;let P=new Set(T??this.#em);return this.options.throwOnError&&P.add("error"),Object.keys(this.#x).some(I=>{let T=I;return this.#x[T]!==N[T]&&P.has(T)})})();K.jG.batch(()=>{T&&this.listeners.forEach(N=>{N(this.#x)}),this.#t.getQueryCache().notify({query:this.#ea,type:"observerResultsUpdated"})})}#ew(){let N=this.#t.getQueryCache().build(this.#t,this.options);if(N===this.#ea)return;let I=this.#ea;this.#ea=N,this.#ei=N.state,this.hasListeners()&&(I?.removeObserver(this),N.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#ey()}};function et(N,I){return!1!==(0,B.GF)(I.enabled,N)&&void 0===N.state.data&&("error"!==N.state.status||!1!==(0,B.GF)(I.retryOnMount,N))}function er(N,I){return et(N,I)||void 0!==N.state.data&&en(N,I,I.refetchOnMount)}function en(N,I,T){if(!1!==(0,B.GF)(I.enabled,N)&&"static"!==(0,B.GF)(I.staleTime,N)){let P=(0,B.GF)(T,N);return"always"===P||!1!==P&&ei(N,I)}return!1}function ea(N,I,T,P){return(N!==I||!1===(0,B.GF)(P.enabled,N))&&(!T.suspense||"error"!==N.state.status)&&ei(N,T)}function ei(N,I){return!1!==(0,B.GF)(I.enabled,N)&&N.isStaleByTime((0,B.GF)(I.staleTime,N))}function eo(N,I){return V(N,ee,I)}},67922:(N,I,T)=>{"use strict";T.d(I,{X7:()=>M});var P=T(98176);let D=(N,I)=>{let T=N.toSlug();return I?T.replaceAll("-"," "):T},M=(N,I,T)=>{let{keyword:M,location:R,distance:L,distanceUnit:$}=I,F=decodeURI(`${window.location.origin}/${N}/jobs`),B=new URL(window.location.href);M&&(F+=`/${P.TT[N.split("-")?.[0]].value}/${D(M,!1)}`),R&&(F+=`/${R.replaceAll(" ","-").toLowerCase()}-${L}${$}`),T.forEach((N,I)=>{F+=`/${I.replaceAll("-","_").replaceAll(" ","-").toLowerCase()}`}),F+=B.search+B.hash,window.history.replaceState(null,"Jobs Page",F.toLowerCase())}},68031:(N,I,T)=>{"use strict";T.r(I),T.d(I,{useStickyTeaserBar:()=>R});var P=T(67085),D=T(14232);let M=()=>document.querySelector("#content .container-default.scroll-mt-18")??document.querySelector("#content .container-default"),R=()=>{let[N,I]=(0,D.useState)(!0),[T,R]=(0,D.useState)(null);return(0,D.useEffect)(()=>{let N=()=>{let N=!(0,P.fitsOnSide)(window.innerWidth);if(I(N),N)return void R(null);let T=M();if(!T)return void R(null);let D=T.getBoundingClientRect().top;R({top:(0,P.resolveSidePanelTop)(D),left:(0,P.getSidePanelLeft)(window.innerWidth)})};N(),window.addEventListener("scroll",N,{passive:!0}),window.addEventListener("resize",N);let T=document.getElementById("content"),D=T?new ResizeObserver(N):null;return T&&D&&D.observe(T),()=>{window.removeEventListener("scroll",N),window.removeEventListener("resize",N),D?.disconnect()}},[]),{useBottomBar:N,sidePanelPosition:T}}},68128:(N,I,T)=>{"use strict";N.exports=T(29044)},68306:(N,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0})},68602:(N,I,T)=>{"use strict";T.d(I,{j:()=>R});var P=T(37876),D=T(84612),M=T(63808);let R=({id:N,error:I})=>I&&(0,P.jsxs)("div",{className:"flex items-center gap-1",children:[(0,P.jsx)(D.s8,{}),(0,P.jsx)(M.Kw,{name:N,component:"span",className:"text-ui-bourbon"})]})},68782:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.oAuth1Client=D,I.oAuth1TokenStore=void 0;var P=T(3004);function D(N){var I,T;let D=N.provider,M=new P.OAuth(D.requestTokenUrl,D.accessTokenUrl,D.clientId,D.clientSecret,null!=(I=D.version)?I:"1.0",D.callbackUrl,null!=(T=D.encoding)?T:"HMAC-SHA1"),R=M.get.bind(M);M.get=async(...N)=>await new Promise((I,T)=>{R(...N,(N,P)=>{if(N)return T(N);I(P)})});let L=M.getOAuthAccessToken.bind(M);M.getOAuthAccessToken=async(...N)=>await new Promise((I,T)=>{L(...N,(N,P,D)=>{if(N)return T(N);I({oauth_token:P,oauth_token_secret:D})})});let $=M.getOAuthRequestToken.bind(M);return M.getOAuthRequestToken=async(N={})=>await new Promise((I,T)=>{$(N,(N,P,D,M)=>
1161{if(N)return T(N);I({oauth_token:P,oauth_token_secret:D,params:M})})}),M}I.oAuth1TokenStore=new Map},68890:(N,I,T)=>{"use strict";T.d(I,{j:()=>R});var P=T(52770),D=T(84090),M=function(N,I){var T={};for(var P in N)Object.prototype.hasOwnProperty.call(N,P)&&0>I.indexOf(P)&&(T[P]=N[P]);if(null!=N&&"function"==typeof Object.getOwnPropertySymbols)for(var D=0,P=Object.getOwnPropertySymbols(N);D<P.length;D++)0>I.indexOf(P[D])&&Object.prototype.propertyIsEnumerable.call(N,P[D])&&(T[P[D]]=N[P[D]]);return T};class R{constructor(N={}){this.config=N}async fetch(N,I={}){var T;let R=this.config,{debugger:L,fetch:$}=R,F=M(R,["debugger","fetch"]),B=Date.now(),U=$||fetch,H=L||P.Ay.http,z=this.getRequestInit(Object.assign(Object.assign({},F),I)),W=[U(N,z)];F.timeout&&(this.abortTimeout=new D.A(F.timeout),W.push(this.abortTimeout.start)),H("Request initiated: %o",Object.assign({url:N,headers:this.extractDebugHeaders(z.headers)},z));try{let N=await Promise.race(W).then(N=>{var I;return null==(I=this.abortTimeout)||I.clear(),N}),I=await this.parseResponse(N,H);if(!N.ok){let T=this.createError(N,I);throw H("Response error: %o",T.response),T}return H("Response in %dms: %o",Date.now()-B,{status:N.status,statusText:N.statusText,headers:this.extractDebugHeaders(N.headers),url:N.url,data:I}),{data:I,headers:N.headers,status:N.status,statusText:N.statusText}}catch(N){throw null==(T=this.abortTimeout)||T.clear(),H("Request failed: %o",N),N}}async get(N,I={}){return this.fetch(N,Object.assign({method:"GET"},I))}async post(N,I,T={}){return this.fetch(N,Object.assign({method:"POST",body:JSON.stringify(I)},T))}async delete(N,I={}){return this.fetch(N,Object.assign({method:"DELETE"},I))}async put(N,I,T={}){return this.fetch(N,Object.assign({method:"PUT",body:JSON.stringify(I)},T))}head(N,I={}){return this.fetch(N,Object.assign({method:"HEAD"},I))}getRequestInit(N={}){let I=new Headers(N.headers);return N.method||(N.method=N.body?"POST":"GET"),I.set("Content-Type","application/json"),N.headers=I,N}extractDebugHeaders(N={}){let I={};
1161return"string"!=typeof(null==N?void 0:N.forEach)&&N.forEach&&(null==N||N.forEach((N,T)=>{I[T]=N})),I}async parseResponse(N,I){let T=N.headers.get("Content-Type")||"";try{if(T.includes("application/json"))return await N.json();return await N.text()}catch(N){I("Response parsing error: %o",N);return}}createError(N,I){let T=Error(`HTTP ${N.status}${N.statusText?` ${N.statusText}`:""}`);return{name:T.name,message:T.message,stack:T.stack,response:{status:N.status,statusText:N.statusText,headers:this.extractDebugHeaders(N.headers),data:I}}}}},68894:(N,I,T)=>{"use strict";T.r(I),T.d(I,{OfficeMapPopup:()=>B});var P=T(37876),D=T(62945),M=T(14e3),R=T(89099),L=T(2650),$=T(23649),F=T(63366);let B=({officeId:N,coordinates:I,officeAddress:T,officeName:B,officePostalCode:U,setOfficeId:H})=>{let z=(0,M.usePathname)(),{locale:W}=(0,R.useRouter)(),q=(0,L.s9)().table(W??"en"),G=(N,T)=>{let P=`https://www.google.com/maps?q=${N??I.lat},${T??I.lng}`;window.open(P,"_blank")},K=()=>{H(null)};return(0,P.jsx)(D.P3,{mapPaneName:D.i3.OVERLAY_MOUSE_TARGET,position:I,children:(0,P.jsxs)(F.az,{className:"office-popup w-full shadow lg:min-w-80",children:[(0,P.jsxs)(F.az,{className:"office-title flex w-full justify-between bg-accent-spring-wood p-4",children:[(0,P.jsx)(F.o5,{className:"font-semibold!",plainText:B.toTitleCase()}),(0,P.jsx)(F.In,{name:"cross",color:"brunel-dark-grey",onClick:K})]}),(0,P.jsxs)(F.az,{className:"flex-col bg-white p-4 pt-2 pb-3",children:[(0,P.jsx)(F.o5,{plainText:T}),(0,P.jsxs)(F.az,{className:"flex py-2",children:[(0,P.jsx)(F.o5,{plainText:U})," \xa0 ",(0,P.jsx)(F.o5,{plainText:B})]}),(0,P.jsxs)(F.az,{className:"flex gap-4",children:[(0,P.jsx)($.Button,{variant:"primary",linkField:{value:{href:`/${W}/${z}/${z?.includes(B.toLowerCase())?"":B}`,text:q?.["view-office"]}}}),(0,P.jsx)($.Button,{variant:"secondary",background:"white",plainText:q?.["get-directions"],onClick:()=>G(I.lat,I.lng)})]})]})]})},N)}},68994:(N,I,T)=>{var P="/",D=T(82909).Buffer,M=T(99742),R={7492:function(N){N.exports=function(N,T,P){if(N.filter)return N.filter(T,P);if(null==N||"function"!=typeof T)throw TypeError();for(var D=[],M=0;M<N.length;M++)if(I.call(N,M)){var R=N[M];T.call(P,R,M,N)&&D.push(R)}return D};var I=Object.prototype.hasOwnProperty},1648:function(N,I,T){"use strict";var P=T(7797),D=T(4834),M=T(8772);N.exports=T(9095)||P.call(M,D)},4757:function(N,I,T){"use strict";var P=T(7797),D=T(4834),M=T(1648);N.exports=function(){return M(P,D,arguments)}},4834:function(N){"use strict";N.exports=Function.prototype.apply},8772:function(N){"use strict";N.exports=Function.prototype.call},2462:function(N,I,T){"use strict";var P=T(7797),D=T(4785),M=T(8772),R=T(1648);N.exports=function(N){if(N.length<1||"function"!=typeof N[0])throw new D("a function is required");return R(P,M,N)}},9095:function(N){"use strict";N.exports="u">typeof Reflect&&Reflect&&Reflect.apply},2982:function(N,I,T){"use strict";var P=T(1893),D=T(5494),M=D(P("String.prototype.indexOf"));N.exports=function(N,I){var T=P(N,!!I);return"function"==typeof T&&M(N,".prototype.")>-1?D(T):T}},5494:function(N,I,T){"use strict";var P=T(3798),D=T(871),M=T(2462),R=T(4757);N.exports=function(N){var I=M(arguments),T=N.length-(arguments.length-1);return P(I,1+(T>0?T:0),!0)},D?D(N.exports,"apply",{value:R}):N.exports.apply=R},2071:function(N,I,T){"use strict";var P=T(871),D=T(9546),M=T(4785),R=T(8322);N.exports=function(N,I,T){if(!N||"object"!=typeof N&&"function"!=typeof N)throw new M("`obj` must be an object or a function`");if("string"!=typeof I&&"symbol"!=typeof I)throw new M("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new M("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new M("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new M("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new M("`loose`, if provided, must be a boolean");var L=arguments.length>3?arguments[3]:null,$=arguments.length>4?arguments[4]:null,F=arguments.length>5?arguments[5]:null,B=arguments.length>6&&arguments[6],U=!!R&&R(N,I);if(P)P(N,I,{configurable:null===F&&U?U.configurable:!F,enumerable:null===L&&U?U.enumerable:!L,value:T,writable:null===$&&U?U.writable:!$});else if(!B&&(L||$||F))throw new D("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else N[I]=T}},3859:function(N,I,T){"use strict";var P,D=T(2462),M=T(8322);try{P=[].__proto__===Array.prototype}catch(N){if(!N||"object"!=typeof N||!("code"in N)||"ERR_PROTO_ACCESS"!==N.code)throw N}var R=!!P&&M&&M(Object.prototype,"__proto__"),L=Object,$=L.getPrototypeOf;N.exports=R&&"function"==typeof R.get?D([R.get]):"function"==typeof $&&function(N){return $(null==N?N:L(N))}},871:function(N){"use strict";var I=Object.defineProperty||!1;if(I)try{I({},"a",{value:1})}catch(N){I=!1}N.exports=I},1247:function(N){"use strict";N.exports=EvalError},6621:function(N){"use strict";N.exports=Error},6136:function(N){"use strict";N.exports=RangeError},252:function(N){"use strict";N.exports=ReferenceError},9546:function(N){"use strict";N.exports=SyntaxError},4785:function(N){"use strict";N.exports=TypeError},1223:function(N){"use strict";N.exports=URIError},8300:function(N){"use strict";N.exports=Object},4680:function(N){var I=Object.prototype.hasOwnProperty,T=Object.prototype.toString;N.exports=function(N,P,D){if("[object Function]"!==T.call(P))throw TypeError("iterator must be a function");var M=N.length;if(M===+M)for(var R=0;R<M;R++)P.call(D,N[R],R,N);else for(var L in N)I.call(N,L)&&P.call(D,N[L],L,N)}},6555:function(N){"use strict";var I="Function.prototype.bind called on incompatible ",T=Object.prototype.toString,P=Math.max,D="[object Function]",M=function(N,I){for(var T=[],P=0;P<N.length;P+=1)T[P]=N[P];for(var D=0;D<I.length;D+=1)T[D+N.length]=I[D];return T},R=function(N,I){for(var T=[],P=I||0,D=0;P<N.length;P+=1,D+=1)T[D]=N[P];return T},L=function(N,I){for(var T="",P=0;P<N.length;P+=1)T+=N[P],P+1<N.length&&(T+=I);return T};N.exports=function(N){var $,F=this;if("function"!=typeof F||T.apply(F)!==D)throw TypeError(I+F);
1161for(var B=R(arguments,1),U=function(){if(this instanceof $){var I=F.apply(this,M(B,arguments));return Object(I)===I?I:this}return F.apply(N,M(B,arguments))},H=P(0,F.length-B.length),z=[],W=0;W<H;W++)z[W]="$"+W;if($=Function("binder","return function ("+L(z,",")+"){ return binder.apply(this,arguments); }")(U),F.prototype){var q=function(){};q.prototype=F.prototype,$.prototype=new q,q.prototype=null}return $}},7797:function(N,I,T){"use strict";var P=T(6555);N.exports=Function.prototype.bind||P},1893:function(N,I,T){"use strict";var P,D=T(8300),M=T(6621),R=T(1247),L=T(6136),$=T(252),F=T(9546),B=T(4785),U=T(1223),H=T(4197),z=T(4455),W=T(1295),q=T(6949),G=T(2943),K=T(1721),V=T(3536),Y=Function,J=function(N){try{return Y('"use strict"; return ('+N+").constructor;")()}catch(N){}},Q=T(8322),Z=T(871),X=function(){throw new B},ee=Q?function(){try{return arguments.callee,X}catch(N){try{return Q(arguments,"callee").get}catch(N){return X}}}():X,et=T(9131)(),er=T(9717),en=T(45),ea=T(7767),ei=T(4834),eo=T(8772),es={},el="u">typeof Uint8Array&&er?er(Uint8Array):P,ec={__proto__:null,"%AggregateError%":"u"<typeof AggregateError?P:AggregateError,"%Array%":Array,"%ArrayBuffer%":"u"<typeof ArrayBuffer?P:ArrayBuffer,"%ArrayIteratorPrototype%":et&&er?er([][Symbol.iterator]()):P,"%AsyncFromSyncIteratorPrototype%":P,"%AsyncFunction%":es,"%AsyncGenerator%":es,"%AsyncGeneratorFunction%":es,"%AsyncIteratorPrototype%":es,"%Atomics%":"u"<typeof Atomics?P:Atomics,"%BigInt%":"u"<typeof BigInt?P:BigInt,"%BigInt64Array%":"u"<typeof BigInt64Array?P:BigInt64Array,"%BigUint64Array%":"u"<typeof BigUint64Array?P:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"u"<typeof DataView?P:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":M,"%eval%":eval,"%EvalError%":R,"%Float16Array%":"u"<typeof Float16Array?P:Float16Array,"%Float32Array%":"u"<typeof Float32Array?P:Float32Array,"%Float64Array%":"u"<typeof Float64Array?P:Float64Array,"%FinalizationRegistry%":"u"<typeof FinalizationRegistry?P:FinalizationRegistry,"%Function%":Y,"%GeneratorFunction%":es,"%Int8Array%":"u"<typeof Int8Array?P:Int8Array,"%Int16Array%":"u"<typeof Int16Array?P:Int16Array,"%Int32Array%":"u"<typeof Int32Array?P:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
1161IteratorPrototype%":et&&er?er(er([][Symbol.iterator]())):P,"%JSON%":"object"==typeof JSON?JSON:P,"%Map%":"u"<typeof Map?P:Map,"%MapIteratorPrototype%":"u">typeof Map&&et&&er?er((new Map)[Symbol.iterator]()):P,"%Math%":Math,"%Number%":Number,"%Object%":D,"%Object.getOwnPropertyDescriptor%":Q,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"u"<typeof Promise?P:Promise,"%Proxy%":"u"<typeof Proxy?P:Proxy,"%RangeError%":L,"%ReferenceError%":$,"%Reflect%":"u"<typeof Reflect?P:Reflect,"%RegExp%":RegExp,"%Set%":"u"<typeof Set?P:Set,"%SetIteratorPrototype%":"u">typeof Set&&et&&er?er((new Set)[Symbol.iterator]()):P,"%SharedArrayBuffer%":"u"<typeof SharedArrayBuffer?P:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":et&&er?er(""[Symbol.iterator]()):P,"%Symbol%":et?Symbol:P,"%SyntaxError%":F,"%ThrowTypeError%":ee,"%TypedArray%":el,"%TypeError%":B,"%Uint8Array%":"u"<typeof Uint8Array?P:Uint8Array,"%Uint8ClampedArray%":"u"<typeof Uint8ClampedArray?P:Uint8ClampedArray,"%Uint16Array%":"u"<typeof Uint16Array?P:Uint16Array,"%Uint32Array%":"u"<typeof Uint32Array?P:Uint32Array,"%URIError%":U,"%WeakMap%":"u"<typeof WeakMap?P:WeakMap,"%WeakRef%":"u"<typeof WeakRef?P:WeakRef,"%WeakSet%":"u"<typeof WeakSet?P:WeakSet,"%Function.prototype.call%":eo,"%Function.prototype.apply%":ei,"%Object.defineProperty%":Z,"%Object.getPrototypeOf%":en,"%Math.abs%":H,"%Math.floor%":z,"%Math.max%":W,"%Math.min%":q,"%Math.pow%":G,"%Math.round%":K,"%Math.sign%":V,"%Reflect.getPrototypeOf%":ea};if(er)try{null.error}catch(N){var eu=er(er(N));ec["%Error.prototype%"]=eu}var ed=function N(I){var T;if("%AsyncFunction%"===I)T=J("async function () {}");else if("%GeneratorFunction%"===I)T=J("function* () {}");else if("%AsyncGeneratorFunction%"===I)T=J("async function* () {}");else if("%AsyncGenerator%"===I){var P=N("%AsyncGeneratorFunction%");P&&(T=P.prototype)}else if("%AsyncIteratorPrototype%"===I){var D=N("%AsyncGenerator%");D&&er&&(T=er(D.prototype))}return ec[I]=T,T},ef={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},eh=T(7797),ep=T(3383),em=eh.call(eo,Array.prototype.concat),eg=eh.call(ei,Array.prototype.splice),ey=eh.call(eo,String.prototype.replace),eb=eh.call(eo,String.prototype.slice),ev=eh.call(eo,RegExp.prototype.exec),ew=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ex=/\\(\\)?/g,eA=function(N){var I=eb(N,0,1),T=eb(N,-1);if("%"===I&&"%"!==T)throw new F("invalid intrinsic syntax, expected closing `%`");if("%"===T&&"%"!==I)throw new F("invalid intrinsic syntax, expected opening `%`");var P=[];return ey(N,ew,function(N,I,T,D){P[P.length]=T?ey(D,ex,"$1"):I||N}),P},eE=function(N,I){var T,P=N;if(ep(ef,P)&&(P="%"+(T=ef[P])[0]+"%"),ep(ec,P)){var D=ec[P];if(D===es&&(D=ed(P)),void 0===D&&!I)throw new B("intrinsic "+N+" exists, but is not available. Please file an issue!");return{alias:T,name:P,value:D}}throw new F("intrinsic "+N+" does not exist!")};N.exports=function(N,I){if("string"!=typeof N||0===N.length)throw new B("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof I)throw new B('"allowMissing" argument must be a boolean');if(null===ev(/^%?[^%]*%?$/,N))throw new F("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var T=eA(N),P=T.length>0?T[0]:"",D=eE("%"+P+"%",I),M=D.name,R=D.value,L=!1,$=D.alias;$&&(P=$[0],eg(T,em([0,1],$)));for(var U=1,H=!0;U<T.length;U+=1){var z=T[U],W=eb(z,0,1),q=eb(z,-1);if(('"'===W||"'"===W||"`"===W||'"'===q||"'"===q||"`"===q)&&W!==q)throw new F("property names with quotes must have matching quotes");if("constructor"!==z&&H||(L=!0),P+="."+z,ep(ec,M="%"+P+"%"))R=ec[M];else if(null!=R){if(!(z in R)){if(!I)throw new B("base intrinsic for "+N+" exists, but the property is not available.");return}if(Q&&U+1>=T.length){var G=Q(R,z);R=(H=!!G)&&"get"in G&&!("originalValue"in G.get)?G.get:R[z]}else H=ep(R,z),R=R[z];H&&!L&&(ec[M]=R)}}return R}},45:function(N,I,T){"use strict";N.exports=T(8300).getPrototypeOf||null},7767:function(N){"use strict";N.exports="u">typeof Reflect&&Reflect.getPrototypeOf||null},9717:function(N,I,T){"use strict";var P=T(7767),D=T(45),M=T(3859);N.exports=P?function(N){return P(N)}:D?function(N){if(!N||"object"!=typeof N&&"function"!=typeof N)throw TypeError("getProto: not an object");return D(N)}:M?function(N){return M(N)}:null},8422:function(N){"use strict";N.exports=Object.getOwnPropertyDescriptor},8322:function(N,I,T){"use strict";var P=T(8422);if(P)try{P([],"length")}catch(N){P=null}N.exports=P},8122:function(N,I,T){"use strict";var P=T(871),D=function(){return!!P};D.hasArrayLengthDefineBug=function(){if(!P)return null;try{return 1!==P([],"length",{value:1}).length}catch(N){return!0}},N.exports=D},8564:function(N,I,T){"use strict";var P="u">typeof Symbol&&Symbol,D=T(9094);N.exports=function(){return"function"==typeof P&&"function"==typeof Symbol&&"symbol"==typeof P("foo")&&"symbol"==typeof Symbol("bar")&&D()}},9094:function(N){"use strict";N.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var N={}
1161,I=Symbol("test"),T=Object(I);if("string"==typeof I||"[object Symbol]"!==Object.prototype.toString.call(I)||"[object Symbol]"!==Object.prototype.toString.call(T))return!1;var P=42;for(I in N[I]=P,N)return!1;if("function"==typeof Object.keys&&0!==Object.keys(N).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(N).length)return!1;var D=Object.getOwnPropertySymbols(N);if(1!==D.length||D[0]!==I||!Object.prototype.propertyIsEnumerable.call(N,I))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var M=Object.getOwnPropertyDescriptor(N,I);if(M.value!==P||!0!==M.enumerable)return!1}return!0}},9131:function(N,I,T){"use strict";var P="u">typeof Symbol&&Symbol,D=T(6313);N.exports=function(){return"function"==typeof P&&"function"==typeof Symbol&&"symbol"==typeof P("foo")&&"symbol"==typeof Symbol("bar")&&D()}},6313:function(N){"use strict";N.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var N={},I=Symbol("test"),T=Object(I);if("string"==typeof I||"[object Symbol]"!==Object.prototype.toString.call(I)||"[object Symbol]"!==Object.prototype.toString.call(T))return!1;var P=42;for(var D in N[I]=P,N)return!1;if("function"==typeof Object.keys&&0!==Object.keys(N).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(N).length)return!1;var M=Object.getOwnPropertySymbols(N);if(1!==M.length||M[0]!==I||!Object.prototype.propertyIsEnumerable.call(N,I))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var R=Object.getOwnPropertyDescriptor(N,I);if(R.value!==P||!0!==R.enumerable)return!1}return!0}},3383:function(N,I,T){"use strict";var P=Function.prototype.call,D=Object.prototype.hasOwnProperty;N.exports=T(7797).call(P,D)},1638:function(N){"function"==typeof Object.create?N.exports=function(N,I){I&&(N.super_=I,N.prototype=Object.create(I.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}))}:N.exports=function(N,I){if(I){N.super_=I;var T=function(){};T.prototype=I.prototype,N.prototype=new T,N.prototype.constructor=N}}},6960:function(N){"use strict";var I="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,T=Object.prototype.toString,P=function(N){return(!I||!N||"object"!=typeof N||!(Symbol.toStringTag in N))&&"[object Arguments]"===T.call(N)},D=function(N){return!!P(N)||null!==N&&"object"==typeof N&&"number"==typeof N.length&&N.length>=0&&"[object Array]"!==T.call(N)&&"[object Function]"===T.call(N.callee)},M=function(){return P(arguments)}();P.isLegacyArguments=D,N.exports=M?P:D},8979:function(N){"use strict";var I=Object.prototype.toString,T=Function.prototype.toString,P=/^\s*(?:function)?\*/,D="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,M=Object.getPrototypeOf,R=function(){if(!D)return!1;try{return Function("return function*() {}")()}catch(N){}}(),L=R?M(R):{};N.exports=function(N){return"function"==typeof N&&(!!P.test(T.call(N))||(D?M(N)===L:"[object GeneratorFunction]"===I.call(N)))}},9572:function(N,I,P){"use strict";var D=P(4680),M=P(3147),R=P(2982),L=R("Object.prototype.toString"),$=P(8564)()&&"symbol"==typeof Symbol.toStringTag,F=M(),B=R("Array.prototype.indexOf",!0)||function(N,I){for(var T=0;T<N.length;T+=1)if(N[T]===I)return T;return -1},U=R("String.prototype.slice"),H={},z=P(9745),W=Object.getPrototypeOf;$&&z&&W&&D(F,function(N){var I=new T.g[N];if(!(Symbol.toStringTag in I))throw EvalError("this engine has support for Symbol.toStringTag, but "+N+" does not have the property! Please report this.");var P=W(I),D=z(P,Symbol.toStringTag);D||(D=z(W(P),Symbol.toStringTag)),H[N]=D.get});var q=function(N){var I=!1;return D(H,function(T,P){if(!I)try{I=T.call(N)===P}catch(N){}}),I};N.exports=function(N){return!!N&&"object"==typeof N&&($?!!z&&q(N):B(F,U(L(N),8,-1))>-1)}},4197:function(N){"use strict";N.exports=Math.abs},4455:function(N){"use strict";N.exports=Math.floor},6128:function(N){"use strict";N.exports=Number.isNaN||function(N){return N!=N}},1295:function(N){"use strict";N.exports=Math.max},6949:function(N){"use strict";N.exports=Math.min},2943:function(N){"use strict";N.exports=Math.pow},1721:function(N){"use strict";N.exports=Math.round},3536:function(N,I,T){"use strict";var P=T(6128);N.exports=function(N){return P(N)||0===N?N:N<0?-1:1}},3798:function(N,I,T){"use strict";var P=T(1893),D=T(2071),M=T(8122)(),R=T(8322),L=T(4785),$=P("%Math.floor%");N.exports=function(N,I){if("function"!=typeof N)throw new L("`fn` is not a function");if("number"!=typeof I||I<0||I>0xffffffff||$(I)!==I)throw new L("`length` must be a positive 32-bit integer");var T=arguments.length>2&&!!arguments[2],P=!0,F=!0;if("length"in N&&R){var B=R(N,"length");B&&!B.configurable&&(P=!1),B&&!B.writable&&(F=!1)}return(P||F||!T)&&(M?D(N,"length",I,!0,!0):D(N,"length",I)),N}},3614:function(N){N.exports=function(N){return N instanceof D}},7551:function(N,I,T){"use strict";var P=T(6960),D=T(8979),M=T(3051),R=T(9572);function L(N){return N.call.bind(N)}var $="u">typeof BigInt,F="u">typeof Symbol,B=L(Object.prototype.toString),U=L(Number.prototype.valueOf),H=L(String.prototype.valueOf),z=L(Boolean.prototype.valueOf);if($)var W=L(BigInt.prototype.valueOf);if(F)var q=L(Symbol.prototype.valueOf);function G(N,I){if("object"!=typeof N)return!1;try{return I(N),!0}catch(N){return!1}}function K(N){return"[object Map]"===B(N)}function V(N){return"[object Set]"===B(N)}function Y(N){return"[object WeakMap]"===B(N)}function J(N){return"[object WeakSet]"===B(N)}function Q(N){return"[object ArrayBuffer]"===B(N)}function Z(N){return!("u"<typeof ArrayBuffer)&&(Q.working?Q(N):N instanceof ArrayBuffer)}function X(N){return"[object DataView]"===B(N)}function ee(N){return!("u"<typeof DataView)&&(X.working?X(N):N instanceof DataView)}I.isArgumentsObject=P,I.isGeneratorFunction=D,I.isTypedArray=R,I.isPromise=function(N){return"u">typeof Promise&&N instanceof Promise||null!==N&&"object"==typeof N&&"function"==typeof N.then&&"function"==typeof N.catch},I.isArrayBufferView=function(N){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(N):R(N)||ee(N)},I.isUint8Array=function(N){return"Uint8Array"===M(N)},I.isUint8ClampedArray=function(N){return"Uint8ClampedArray"===M(N)},I.isUint16Array=function(N){return"Uint16Array"===M(N)},I.isUint32Array=function(N){return"Uint32Array"===M(N)},I.isInt8Array=function(N){return"Int8Array"===M(N)},I.isInt16Array=function(N){return"Int16Array"===M(N)},I.isInt32Array=function(N){return"Int32Array"===M(N)},I.isFloat32Array=function(N){return"Float32Array"===M(N)},I.isFloat64Array=function(N){return"Float64Array"===M(N)},I.isBigInt64Array=function(N){return"BigInt64Array"===M(N)},I.isBigUint64Array=function(N){return"BigUint64Array"===M(N)},K.working="u">typeof Map&&K(new Map),I.isMap=function(N){return!("u"<typeof Map)&&(K.working?K(N):N instanceof Map)},V.working="u">typeof Set&&V(new Set),I.isSet=function(N){return!("u"<typeof Set)&&(V.working?V(N):N instanceof Set)},Y.working="u">typeof WeakMap&&Y(new WeakMap),I.isWeakMap=function(N){return!("u"<typeof WeakMap)&&(Y.working?Y(N):N instanceof WeakMap)},J.working="u">typeof WeakSet&&J(new WeakSet),I.isWeakSet=function(N){return J(N)},Q.working="u">typeof ArrayBuffer&&Q(new ArrayBuffer),I.isArrayBuffer=Z,X.working="u">typeof ArrayBuffer&&"u">typeof DataView&&X(new DataView(new ArrayBuffer(1),0,1)),I.isDataView=ee;var et="u">typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function er(N){return"[object SharedArrayBuffer]"===B(N)}function en(N){return void 0!==et&&(void 0===er.working&&(er.working=er(new et)),er.working?er(N):N instanceof et)}function ea(N){return G(N,U)}function ei(N){return G(N,H)}function eo(N){return G(N,z)}function es(N){return $&&G(N,W)}function el(N){return F&&G(N,q)}I.isSharedArrayBuffer=en,I.isAsyncFunction=function(N){return"[object AsyncFunction]"===B(N)},I.isMapIterator=function(N){return"[object Map Iterator]"===B(N)},I.isSetIterator=function(N){return"[object Set Iterator]"===B(N)},I.isGeneratorObject=function(N){return"[object Generator]"===B(N)},I.isWebAssemblyCompiledModule=function(N){return"[object WebAssembly.Module]"===B(N)},I.isNumberObject=ea,I.isStringObject=ei,I.isBooleanObject=eo,I.isBigIntObject=es,I.isSymbolObject=el,I.isBoxedPrimitive=function(N){return ea(N)||ei(N)||eo(N)||es(N)||el(N)},I.isAnyArrayBuffer=function(N){return"u">typeof Uint8Array&&(Z(N)||en(N))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(N){Object.defineProperty(I,N,{enumerable:!1,value:function(){throw Error(N+" is not supported in userland")}})})},4268:function(N,I,T){var P=Object.getOwnPropertyDescriptors||function(N){for(var I=Object.keys(N),T={},P=0;P<I.length;P++)T[I[P]]=Object.getOwnPropertyDescriptor(N,I[P]);return T},D=/%[sdj%]/g;I.format=function(N){if(!X(N)){for(var I=[],T=0;T<arguments.length;T++)I.push(F(arguments[T]));return I.join(" ")}for(var T=1,P=arguments,M=P.length,R=String(N).replace(D,function(N){if("%%"===N)return"%";if(T>=M)return N;switch(N){case"%s":return String(P[T++]);case"%d":return Number(P[T++]);case"%j":try{return JSON.stringify(P[T++])}catch(N){return"[Circular]"}default:return N}}),L=P[T];T<M;L=P[++T])Q(L)||!er(L)?R+=" "+L:R+=" "+F(L);return R},I.deprecate=function(N,T){if(void 0!==M&&!0===M.noDeprecation)return N;if(void 0===M)return function(){return I.deprecate(N,T).apply(this,arguments)};var P=!1;return function(){if(!P){if(M.throwDeprecation)throw Error(T);M.traceDeprecation?console.trace(T):console.error(T),P=!0}return N.apply(this,arguments)}};var R={},L=/^$/;if(M.env.NODE_DEBUG){var $=M.env.NODE_DEBUG;L=RegExp("^"+($=$.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase())+"$","i")}function F(N,T){var P={seen:[],stylize:U};return arguments.length>=3&&(P.depth=arguments[2]),arguments.length>=4&&(P.colors=arguments[3]),J(T)?P.showHidden=T:T&&I._extend(P,T),ee(P.showHidden)&&(P.showHidden=!1),ee(P.depth)&&(P.depth=2),ee(P.colors)&&(P.colors=!1),ee(P.customInspect)&&(P.customInspect=!0),P.colors&&(P.stylize=B),z(P,N,P.depth)}function B(N,I){var T=F.styles[I];return T?"\x1b["+F.colors[T][0]+"m"+N+"\x1b["+F.colors[T][1]+"m":N}function U(N,I){return N}function H(N){var I={};
1161return N.forEach(function(N,T){I[N]=!0}),I}function z(N,T,P){if(N.customInspect&&T&&ei(T.inspect)&&T.inspect!==I.inspect&&!(T.constructor&&T.constructor.prototype===T)){var D,M=T.inspect(P,N);return X(M)||(M=z(N,M,P)),M}var R=W(N,T);if(R)return R;var L=Object.keys(T),$=H(L);if(N.showHidden&&(L=Object.getOwnPropertyNames(T)),ea(T)&&(L.indexOf("message")>=0||L.indexOf("description")>=0))return q(T);if(0===L.length){if(ei(T)){var F=T.name?": "+T.name:"";return N.stylize("[Function"+F+"]","special")}if(et(T))return N.stylize(RegExp.prototype.toString.call(T),"regexp");if(en(T))return N.stylize(Date.prototype.toString.call(T),"date");if(ea(T))return q(T)}var B="",U=!1,J=["{","}"];if(Y(T)&&(U=!0,J=["[","]"]),ei(T)&&(B=" [Function"+(T.name?": "+T.name:"")+"]"),et(T)&&(B=" "+RegExp.prototype.toString.call(T)),en(T)&&(B=" "+Date.prototype.toUTCString.call(T)),ea(T)&&(B=" "+q(T)),0===L.length&&(!U||0==T.length))return J[0]+B+J[1];if(P<0)if(et(T))return N.stylize(RegExp.prototype.toString.call(T),"regexp");else return N.stylize("[Object]","special");return N.seen.push(T),D=U?G(N,T,P,$,L):L.map(function(I){return K(N,T,P,$,I,U)}),N.seen.pop(),V(D,B,J)}function W(N,I){if(ee(I))return N.stylize("undefined","undefined");if(X(I)){var T="'"+JSON.stringify(I).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return N.stylize(T,"string")}return Z(I)?N.stylize(""+I,"number"):J(I)?N.stylize(""+I,"boolean"):Q(I)?N.stylize("null","null"):void 0}function q(N){return"["+Error.prototype.toString.call(N)+"]"}function G(N,I,T,P,D){for(var M=[],R=0,L=I.length;R<L;++R)eu(I,String(R))?M.push(K(N,I,T,P,String(R),!0)):M.push("");return D.forEach(function(D){D.match(/^\d+$/)||M.push(K(N,I,T,P,D,!0))}),M}function K(N,I,T,P,D,M){var R,L,$;if(($=Object.getOwnPropertyDescriptor(I,D)||{value:I[D]}).get?L=$.set?N.stylize("[Getter/Setter]","special"):N.stylize("[Getter]","special"):$.set&&(L=N.stylize("[Setter]","special")),eu(P,D)||(R="["+D+"]"),!L&&(0>N.seen.indexOf($.value)?(L=Q(T)?z(N,$.value,null):z(N,$.value,T-1)).indexOf("\n")>-1&&(L=M?L.split("\n").map(function(N){return" "+N}).join("\n").substr(2):"\n"+L.split("\n").map(function(N){return" "+N}).join("\n")):L=N.stylize("[Circular]","special")),ee(R)){if(M&&D.match(/^\d+$/))return L;(R=JSON.stringify(""+D)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(R=R.substr(1,R.length-2),R=N.stylize(R,"name")):(R=R.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),R=N.stylize(R,"string"))}return R+": "+L}function V(N,I,T){var P=0;return N.reduce(function(N,I){return P++,I.indexOf("\n")>=0&&P++,N+I.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?T[0]+(""===I?"":I+"\n ")+" "+N.join(",\n ")+" "+T[1]:T[0]+I+" "+N.join(", ")+" "+T[1]}function Y(N){return Array.isArray(N)}function J(N){return"boolean"==typeof N}function Q(N){return null===N}function Z(N){return"number"==typeof N}function X(N){return"string"==typeof N}function ee(N){return void 0===N}function et(N){return er(N)&&"[object RegExp]"===eo(N)}function er(N){return"object"==typeof N&&null!==N}function en(N){return er(N)&&"[object Date]"===eo(N)}function ea(N){return er(N)&&("[object Error]"===eo(N)||N instanceof Error)}function ei(N){return"function"==typeof N}function eo(N){return Object.prototype.toString.call(N)}function es(N){return N<10?"0"+N.toString(10):N.toString(10)}I.debuglog=function(N){if(!R[N=N.toUpperCase()])if(L.test(N)){var T=M.pid;R[N]=function(){var P=I.format.apply(I,arguments);console.error("%s %d: %s",N,T,P)}}else R[N]=function(){};return R[N]},I.inspect=F,F.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},F.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},I.types=T(7551),I.isArray=Y,I.isBoolean=J,I.isNull=Q,I.isNullOrUndefined=function(N){return null==N},I.isNumber=Z,I.isString=X,I.isSymbol=function(N){return"symbol"==typeof N},I.isUndefined=ee,I.isRegExp=et,I.types.isRegExp=et,I.isObject=er,I.isDate=en,I.types.isDate=en,I.isError=ea,I.types.isNativeError=ea,I.isFunction=ei,I.isPrimitive=function(N){return null===N||"boolean"==typeof N||"number"==typeof N||"string"==typeof N||"symbol"==typeof N||void 0===N},I.isBuffer=T(3614);var el=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ec(){var N=new Date,I=[es(N.getHours()),es(N.getMinutes()),es(N.getSeconds())].join(":");return[N.getDate(),el[N.getMonth()],I].join(" ")}function eu(N,I){return Object.prototype.hasOwnProperty.call(N,I)}I.log=function(){console.log("%s - %s",ec(),I.format.apply(I,arguments))},I.inherits=T(1638),I._extend=function(N,I){if(!I||!er(I))return N;for(var T=Object.keys(I),P=T.length;P--;)N[T[P]]=I[T[P]];return N};var ed="u">typeof Symbol?Symbol("util.promisify.custom"):void 0;function ef(N,I){if(!N){var T=Error("Promise was rejected with a falsy value");T.reason=N,N=T}return I(N)}I.promisify=function(N){if("function"!=typeof N)throw TypeError('The "original" argument must be of type Function');
1161if(ed&&N[ed]){var I=N[ed];if("function"!=typeof I)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(I,ed,{value:I,enumerable:!1,writable:!1,configurable:!0}),I}function I(){for(var I,T,P=new Promise(function(N,P){I=N,T=P}),D=[],M=0;M<arguments.length;M++)D.push(arguments[M]);D.push(function(N,P){N?T(N):I(P)});try{N.apply(this,D)}catch(N){T(N)}return P}return Object.setPrototypeOf(I,Object.getPrototypeOf(N)),ed&&Object.defineProperty(I,ed,{value:I,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(I,P(N))},I.promisify.custom=ed,I.callbackify=function(N){if("function"!=typeof N)throw TypeError('The "original" argument must be of type Function');function I(){for(var I=[],T=0;T<arguments.length;T++)I.push(arguments[T]);var P=I.pop();if("function"!=typeof P)throw TypeError("The last argument must be of type Function");var D=this,R=function(){return P.apply(D,arguments)};N.apply(this,I).then(function(N){M.nextTick(R.bind(null,null,N))},function(N){M.nextTick(ef.bind(null,N,R))})}return Object.setPrototypeOf(I,Object.getPrototypeOf(N)),Object.defineProperties(I,P(N)),I}},3051:function(N,I,P){"use strict";var D=P(4680),M=P(3147),R=P(2982),L=R("Object.prototype.toString"),$=P(8564)()&&"symbol"==typeof Symbol.toStringTag,F=M(),B=R("String.prototype.slice"),U={},H=P(9745),z=Object.getPrototypeOf;$&&H&&z&&D(F,function(N){if("function"==typeof T.g[N]){var I=new T.g[N];if(!(Symbol.toStringTag in I))throw EvalError("this engine has support for Symbol.toStringTag, but "+N+" does not have the property! Please report this.");var P=z(I),D=H(P,Symbol.toStringTag);D||(D=H(z(P),Symbol.toStringTag)),U[N]=D.get}});var W=function(N){var I=!1;return D(U,function(T,P){if(!I)try{var D=T.call(N);D===P&&(I=D)}catch(N){}}),I},q=P(9572);N.exports=function(N){return!!q(N)&&($?W(N):B(L(N),8,-1))}},3147:function(N,I,P){"use strict";var D=P(7492);N.exports=function(){return D(["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],function(N){return"function"==typeof T.g[N]})}},9745:function(N,I,T){"use strict";N.exports=T(8322)}},L={};function $(N){var I=L[N];if(void 0!==I)return I.exports;var T=L[N]={exports:{}},P=!0;try{R[N](T,T.exports,$),P=!1}finally{P&&delete L[N]}return T.exports}$.ab=P+"/",N.exports=$(4268)},69202:(N,I,T)=>{"use strict";T.d(I,{q:()=>M});var P=T(95121);let D=N=>N?.trim()?N.split(",").map(N=>N.trim()).filter(Boolean):[],M=N=>{let I=N.organizationName?.trim(),T=N.organizationUrl?.trim();if(!I||!T)return null;let M=D(N.organizationTypes),R=D(N.organizationSameAs),L=N.organizationAreaServed?.trim();return{"@context":P.WX,"@type":M.length>0?M:P.ww,"@id":N.organizationId?.trim()||P.ac,name:I,...N.organizationLegalName?.trim()&&{legalName:N.organizationLegalName.trim()},url:T,logo:{"@type":"ImageObject",url:N.organizationLogoUrl??"",width:250,height:60},sameAs:R,...L&&{areaServed:{"@type":"Country",name:L}}}}},69228:(N,I,T)=>{"use strict";T.d(I,{O:()=>R});var P=T(14232),D=T(51958),M=T(34699);let R=N=>{let I=(0,P.useContext)(M.sL);return P.createElement(D.O,Object.assign({},N,{modifyComponentProps:N=>{if(!N.rendering.uid)return N;let T=I[N.rendering.uid];return Object.assign(Object.assign({},N),T)}}))}},69241:(N,I,T)=>{"use strict";function P(N){var I,T,D="";if("string"==typeof N||"number"==typeof N)D+=N;else if("object"==typeof N)if(Array.isArray(N)){var M=N.length;for(I=0;I<M;I++)N[I]&&(T=P(N[I]))&&(D&&(D+=" "),D+=T)}else for(T in N)N[T]&&(D&&(D+=" "),D+=T);return D}function D(){for(var N,I,T=0,D="",M=arguments.length;T<M;T++)(N=arguments[T])&&(I=P(N))&&(D&&(D+=" "),D+=I);return D}T.d(I,{$:()=>D})},69288:(N,I,T)=>{"use strict";let P=T(16502),D=Symbol("max"),M=Symbol("length"),R=Symbol("lengthCalculator"),L=Symbol("allowStale"),$=Symbol("maxAge"),F=Symbol("dispose"),B=Symbol("noDisposeOnSet"),U=Symbol("lruList"),H=Symbol("cache"),z=Symbol("updateAgeOnGet"),W=()=>1;class q{constructor(N){if("number"==typeof N&&(N={max:N}),N||(N={}),N.max&&("number"!=typeof N.max||N.max<0))throw TypeError("max must be a non-negative number");this[D]=N.max||1/0;const I=N.length||W;if(this[R]="function"!=typeof I?W:I,this[L]=N.stale||!1,N.maxAge&&"number"!=typeof N.maxAge)throw TypeError("maxAge must be a number");this[$]=N.maxAge||0,this[F]=N.dispose,this[B]=N.noDisposeOnSet||!1,this[z]=N.updateAgeOnGet||!1,this.reset()}set max(N){if("number"!=typeof N||N<0)throw TypeError("max must be a non-negative number");this[D]=N||1/0,V(this)}get max(){return this[D]}set allowStale(N){this[L]=!!N}get allowStale(){return this[L]}set maxAge(N){if("number"!=typeof N)throw TypeError("maxAge must be a non-negative number");this[$]=N,V(this)}get maxAge(){return this[$]}set lengthCalculator(N){"function"!=typeof N&&(N=W),N!==this[R]&&(this[R]=N,this[M]=0,this[U].forEac
1161h(N=>{N.length=this[R](N.value,N.key),this[M]+=N.length})),V(this)}get lengthCalculator(){return this[R]}get length(){return this[M]}get itemCount(){return this[U].length}rforEach(N,I){I=I||this;for(let T=this[U].tail;null!==T;){let P=T.prev;Q(this,N,T,I),T=P}}forEach(N,I){I=I||this;for(let T=this[U].head;null!==T;){let P=T.next;Q(this,N,T,I),T=P}}keys(){return this[U].toArray().map(N=>N.key)}values(){return this[U].toArray().map(N=>N.value)}reset(){this[F]&&this[U]&&this[U].length&&this[U].forEach(N=>this[F](N.key,N.value)),this[H]=new Map,this[U]=new P,this[M]=0}dump(){return this[U].map(N=>!K(this,N)&&{k:N.key,v:N.value,e:N.now+(N.maxAge||0)}).toArray().filter(N=>N)}dumpLru(){return this[U]}set(N,I,T){if((T=T||this[$])&&"number"!=typeof T)throw TypeError("maxAge must be a number");let P=T?Date.now():0,L=this[R](I,N);if(this[H].has(N)){if(L>this[D])return Y(this,this[H].get(N)),!1;let R=this[H].get(N).value;return this[F]&&!this[B]&&this[F](N,R.value),R.now=P,R.maxAge=T,R.value=I,this[M]+=L-R.length,R.length=L,this.get(N),V(this),!0}let z=new J(N,I,L,P,T);return z.length>this[D]?(this[F]&&this[F](N,I),!1):(this[M]+=z.length,this[U].unshift(z),this[H].set(N,this[U].head),V(this),!0)}has(N){return!!this[H].has(N)&&!K(this,this[H].get(N).value)}get(N){return G(this,N,!0)}peek(N){return G(this,N,!1)}pop(){let N=this[U].tail;return N?(Y(this,N),N.value):null}del(N){Y(this,this[H].get(N))}load(N){this.reset();let I=Date.now();for(let T=N.length-1;T>=0;T--){let P=N[T],D=P.e||0;if(0===D)this.set(P.k,P.v);else{let N=D-I;N>0&&this.set(P.k,P.v,N)}}}prune(){this[H].forEach((N,I)=>G(this,I,!1))}}let G=(N,I,T)=>{let P=N[H].get(I);if(P){let I=P.value;if(K(N,I)){if(Y(N,P),!N[L])return}else T&&(N[z]&&(P.value.now=Date.now()),N[U].unshiftNode(P));return I.value}},K=(N,I)=>{if(!I||!I.maxAge&&!N[$])return!1;let T=Date.now()-I.now;return I.maxAge?T>I.maxAge:N[$]&&T>N[$]},V=N=>{if(N[M]>N[D])for(let I=N[U].tail;N[M]>N[D]&&null!==I;){let T=I.prev;Y(N,I),I=T}},Y=(N,I)=>{if(I){let T=I.value;N[F]&&N[F](T.key,T.value),N[M]-=T.length,N[H].delete(T.key),N[U].removeNode(I)}};class J{constructor(N,I,T,P,D){this.key=N,this.value=I,this.length=T,this.now=P,this.maxAge=D||0}}let Q=(N,I,T,P)=>{let D=T.value;K(N,D)&&(Y(N,T),N[L]||(D=void 0)),D&&I.call(P,D.value,D.key,N)};N.exports=q},69452:(N,I,T)=>{"use strict";T.d(I,{S:()=>P});let P={en:{"page-not-found":"Page not found","page-not-found-message":"Sorry, the page you are looking for does not exist.","server-error":"Server error","server-error-title":"Something went wrong","server-error-message":"We encountered an unexpected error, and we will be back shortly.","go-to-home":"Go to Home"},"en-gb":{"page-not-found":"Page not found","page-not-found-message":"Sorry, the page you are looking for does not exist.","server-error":"Server error","server-error-title":"Something went wrong","server-error-message":"We encountered an unexpected error, and we will be back shortly.","go-to-home":"Go to Home"},"en-sg":{"page-not-found":"Page not found","page-not-found-message":"Sorry, the page you are looking for does not exist.","server-error":"Server error","server-error-title":"Something went wrong","server-error-message":"We encountered an unexpected error, and we will be back shortly.","go-to-home":"Go to Home"},"en-us":{"page-not-found":"Page not found","page-not-found-message":"Sorry, the page you are looking for does not exist.","server-error":"Server error","server-error-title":"Something went wrong","server-error-message":"We encountered an unexpected error, and we will be back shortly.","go-to-home":"Go to Home"},"en-au":{"page-not-found":"Page not found","page-not-found-message":"Sorry, the page you are looking for does not exist.","server-error":"Server error","server-error-title":"Something went wrong","server-error-message":"We encountered an unexpected error, and we will be back shortly.","go-to-home":"Go to Home"},"en-ca":{"page-not-found":"Page not found","page-not-found-message":"Sorry, the page you are looking for does not exist.","server-error":"Server error","server-error-title":"Something went wrong","server-error-message":"We encountered an unexpected error, and we will be back shortly.","go-to-home":"Go to Home"},"en-nl":{"page-not-found":"Page not found","page-not-found-message":"Sorry, the page you are looking for does not exist.","server-error":"Server error","server-error-title":"Something went wrong","server-error-message":"We encountered an unexpected error, and we will be back shortly.","go-to-home":"Go to Home"},"en-de":{"page-not-found":"Page not found","page-not-found-message":"Sorry, the page you are looking for does not exist.","server-error":"Server error","server-error-title":"Something went wrong","server-error-message":"We encountered an unexpected error, and we will be back shortly.","go-to-home":"Go to Home"},"en-ch":{"page-not-found":"Page not found","page-not-found-message":"Sorry, the page you are looking for does not exist.","server-error":"Server error","server-error-title":"Something went wrong","server-error-message":"We encountered an unexpected error, and we will be back shortly.","go-to-home":"Go to Home"},"nl-nl":{"page-not-found":"Pagina niet gevonden","page-not-found-message":"Sorry, de pagina die u zoekt bestaat niet.","server-error":"Serverfout","server-error-title":"Er is iets misgegaan","server-error-message":"Er is een onverwachte fout opgetreden. We zijn er zo snel mogelijk weer.","go-to-home":"Ga naar Home"},"nl-be":{"page-not-found":"Pagina niet gevonden","page-not-found-message":"Sorry, de pagina die u zoekt bestaat niet.","server-error":"Serverfout","server-error-title":"Er is iets misgegaan","server-error-message":"Er is een onverwachte fout opgetreden. We zijn er zo snel mogelijk weer.","go-to-home":"Ga naar Home"},"de-de":{"page-not-found":"Seite nicht gefunden","page-not-found-message":"Entschuldigung, die Seite, die Sie suchen, existiert nicht.","server-error":"Serverfehler","server-error-title":"Etwas ist schiefgelaufen","server-error-message":"Es ist ein unerwarteter Fehler aufgetreten. Wir sind in K\xfcrze wieder f\xfcr Sie da.","go-to-home":"Zur Startseite"},"de-at":{"page-not-found":"Seite nicht gefunden","page-not-found-message":"Entschuldigung, die Seite, die Sie suchen, existiert nicht.","server-error":"Serverfehler","server-error-title":"Etwas ist schiefgelaufen","server-error-message":"Es ist ein unerwarteter Fehler aufgetreten. Wir sind in K\xfcrze wieder f\xfcr Sie da.","go-to-home":"Zur Startseite"},"de-ch":{"page-not-found":"Seite nicht gefunden","page-not-found-message":"Entschuldigung, die Seite, die Sie suchen, existiert nicht.","server-error":"Serverfehler","server-error-title":"Etwas ist schiefgelaufen","server-error-message":"Es ist ein unerwarteter Fehler aufgetreten. Wir sind in K\xfcrze wieder f\xfcr Sie da.","go-to-home":"Zur Startseite"},"zh-cn":{"page-not-found":"页颿ªæ¾å°","page-not-found-message":"徿±æï¼æ¨è¦æ¥æ¾ç页é¢ä¸åå¨ã","server-error":"æå¡å¨é误","server-error-title":"åçé误","server-error-message":"æä»¬éå°äºæå¤éè¯¯ï¼æä»¬ä¼å°½å¿«æ¢å¤æå¡ã","go-to-home":"è¿åé¦é¡µ"},"cs-cz":{"page-not-found":"Str\xe1nka nenalezena","page-not-found-message":"Omlouv\xe1me se, str\xe1nka, kterou hled\xe1te, neexistuje.","server-error":"Chyba serveru","server-error-title":"NÄco se pokazilo","server-error-message":"Vyskytla se neoÄek\xe1van\xe1 chyba. Brzy budeme zpÄt.","go-to-home":"PÅej\xedt na domovskou str\xe1nku"}}},69613:(N,I,T)=>{"use strict";T.r(I),T.d(I,{SearchConfigurationResults:()=>W});var P=T(37876),D=T(73521),M=T(54099),R=T(23649),L=T(63366),$=T(51784),F=T(98503),B=T(43452),U=T(98176),H=T(36379),z=T(82868);let W=({language:N,filters:I,listResults:T,page:W,totalCount:q,publications:G,searchBarData:K,marketingMessage:V,setSearchBarData:Y,getPublicationsQuery:J,setSideDrawerOpen:Q,translateFacets:Z})=>{let{sortBy:X,sortByData:ee,salaries:et,handleSortChange:er}=(0,M.useSearchConfigurationResults)({language:N,listResults:T,publications:G,searchBarData:K,setSearchBarData:Y,getPublicationsQuery:J});return(0,P.jsxs)(L.az,{className:"flex w-full flex-col gap-6 lg:w-2/3","data-testid":z.Qa.TestIds.JobsSearchComponent.results,children:[(0,P.jsx)(R.Button,{className:"w-full text-center lg:hidden",variant:"alternative",plainText:`Filter ${q} jobs`,iconName:"filters",iconSide:"left",iconColor:"white",onClick:()=>Q(!0)}),(0,P.jsxs)(L.az,{className:"flex flex-col justify-between gap-6 lg:flex-row lg:gap-10",children:[(0,P.jsx)(L.o5,{className:"mb-0!",type:"h3",plainText:K.resultTitle}),q>0&&(0,P.jsxs)(L.az,{className:"flex items-center justify-between lg:flex-col lg:items-end lg:justify-center lg:gap-1",children:[(0,P.jsx)(L.o5,{className:"mb-0! lg:w-64 lg:text-right",type:"h5",plainText:T?.sortByTitle??"[sort by title text]"}),(0,P.jsx)(B.m,{containerClasses:"search-bar-sortby-container",headerClasses:"search-bar-sortby-header",contentClasses:"search-bar-sortby-content",iconNameRight:"chevron-down",value:X.get(K.sortBy)??"",data:ee,onSelect:er})]})]}),G?.slice(0,W*U.dn)?.map((I,T)=>{let M=(0,D.shouldShowMarketingBanner)(V?.marketingMessagePosition,T);return(0,P.jsxs)(L.az,{className:"flex flex-col gap-6",children:[M&&V?(0,P.jsx)($.R,{marketingMessage:V}):null,(0,P.jsx)(F.m,{url:(0,D.resolveSearchResultUrl)(I?.title,I?.publicationId,N),title:I?.title??"",city:I?.city??"",countryName:I?.countryName??"",region:I?.region??"",locationDetail:I?.locationDetail??"",salary:et.get(I?.publicationId??"")??"",educationLevel:Z("educationlevelFilter",I?.educationlevel??""),totalYearsOfExperience:Z("totalYearsOfExperienceFilter",I?.totalYearsOfExperience?.toString()??""),description:I?.description??"",language:N})]},`${I.title}-${T}`)}),q>0&&(0,P.jsxs)(L.az,{className:"divider text-ui-grey before:bg-ui-grey after:bg-ui-grey",children:[Math.min(W*U.dn,G?.length??0)," of ",q]}),(0,P.jsx)(L.az,{className:"flex w-full justify-center",children:(0,P.jsx)(R.Button,{className:(0,H.cn)({hidden:W*U.dn>(G?.length??0)}
1161),variant:"secondary",iconSide:"right",iconName:"chevron-down",plainText:(0,D.resolveShowVacanciesLabel)(I?.showVacancies,W,U.dn,q),onClick:()=>J(!0)})})]})}},69630:(N,I,T)=>{N.exports=function(N){function I(N){let I=0;for(let T=0;T<N.length;T++)I=(I<<5)-I+N.charCodeAt(T)|0;return P.colors[Math.abs(I)%P.colors.length]}function P(N){let I,T,M,R=null;function L(...N){if(!L.enabled)return;let T=L,D=Number(new Date);T.diff=D-(I||D),T.prev=I,T.curr=D,I=D,N[0]=P.coerce(N[0]),"string"!=typeof N[0]&&N.unshift("%O");let M=0;N[0]=N[0].replace(/%([a-zA-Z%])/g,(I,D)=>{if("%%"===I)return"%";M++;let R=P.formatters[D];if("function"==typeof R){let P=N[M];I=R.call(T,P),N.splice(M,1),M--}return I}),P.formatArgs.call(T,N),(T.log||P.log).apply(T,N)}return L.namespace=N,L.useColors=P.useColors(),L.color=P.selectColor(N),L.extend=D,L.destroy=P.destroy,Object.defineProperty(L,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==R?R:(T!==P.namespaces&&(T=P.namespaces,M=P.enabled(N)),M),set:N=>{R=N}}),"function"==typeof P.init&&P.init(L),L}function D(N,I){let T=P(this.namespace+(void 0===I?":":I)+N);return T.log=this.log,T}function M(N){for(let I of(P.save(N),P.namespaces=N,P.names=[],P.skips=[],("string"==typeof N?N:"").trim().replace(/\s+/g,",").split(",").filter(Boolean)))"-"===I[0]?P.skips.push(I.slice(1)):P.names.push(I)}function R(N,I){let T=0,P=0,D=-1,M=0;for(;T<N.length;)if(P<I.length&&(I[P]===N[T]||"*"===I[P]))"*"===I[P]?(D=P,M=T):T++,P++;else{if(-1===D)return!1;P=D+1,T=++M}for(;P<I.length&&"*"===I[P];)P++;return P===I.length}function L(){let N=[...P.names,...P.skips.map(N=>"-"+N)].join(",");return P.enable(""),N}function $(N){for(let I of P.skips)if(R(N,I))return!1;for(let I of P.names)if(R(N,I))return!0;return!1}function F(N){return N instanceof Error?N.stack||N.message:N}function B(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return P.debug=P,P.default=P,P.coerce=F,P.disable=L,P.enable=M,P.enabled=$,P.humanize=T(3139),P.destroy=B,Object.keys(N).forEach(I=>{P[I]=N[I]}),P.names=[],P.skips=[],P.formatters={},P.selectColor=I,P.enable(P.load()),P}},69755:(N,I,T)=>{"use strict";T.d(I,{J6:()=>R,h:()=>F,qo:()=>L});var P=T(55333);T(65212);var D=T(60409);T(62288),T(10988);var M=T(98176);T(81202);let R=N=>(0,P.Cx)()?"#":`${M.yl}/${N}`,L=()=>(0,P.Cx)()?"#":M.yl,$=N=>N?.toLowerCase().includes(M.yl),F=(N,I)=>{if($(I.url)&&I.fields?.[D.sA.eventCategory]){let T=I.fields?.[D.sA.eventCategory];N.url={path:R(I.name)},N.eventCategory={data:{name:T.name,displayName:T.displayName}}}return N}},69867:(N,I,T)=>{"use strict";T.d(I,{w:()=>D});var P=T(12235);function D(N,I){return"function"==typeof N?N(I):N&&"object"==typeof N&&P._P in N?N[P._P](I):N instanceof Date?new N.constructor(I):new Date(I)}},69919:(N,I,T)=>{"use strict";var P;P={value:!0},Object.defineProperty(I,"headers",{enumerable:!0,get:function(){return z}});let D=T(82919),M=T(57049),R=T(20368),L=T(18736),$=T(50473),F=T(61303),B=T(49961),U=T(19908),H=T(29877);function z(){let N="headers",I=M.workAsyncStorage.getStore(),T=R.workUnitAsyncStorage.getStore();if(I){if(T&&!(0,U.isRequestApiAllowedInCurrentPhase)(T))throw Object.defineProperty(Error(`Route ${I.route} used \`headers()\` inside \`after()\` while rendering. This is not supported. If you need this data inside an \`after()\` callback, use \`headers()\` outside of the callback. See more info here: https://nextjs.org/docs/app/api-reference/functions/after`),"__NEXT_ERROR_CODE",{value:"E1378",enumerable:!1,configurable:!0});if(I.forceStatic)return G(D.HeadersAdapter.seal(new Headers({})));if(T)switch(T.type){case"cache":{let N=Object.defineProperty(Error(`Route ${I.route} used \`headers()\` inside "use cache". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \`headers()\` outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E833",enumerable:!1,
1161configurable:!0});throw Error.captureStackTrace(N,z),(0,F.applyOwnerStack)(N),I.invalidDynamicUsageError??=N,N}case"unstable-cache":throw Object.defineProperty(Error(`Route ${I.route} used \`headers()\` inside a function cached with \`unstable_cache()\`. Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use \`headers()\` outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`),"__NEXT_ERROR_CODE",{value:"E838",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(Error(`Route ${I.route} used \`headers()\` inside \`generateStaticParams\`. This is not supported because \`generateStaticParams\` runs at build time without an HTTP request. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`),"__NEXT_ERROR_CODE",{value:"E1134",enumerable:!1,configurable:!0})}if(I.dynamicShouldError)throw Object.defineProperty(new $.StaticGenBailoutError(`Route ${I.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`headers()\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E828",enumerable:!1,configurable:!0});if(T)switch(T.type){case"prerender":return q(I,T);case"prerender-client":case"validation-client":let P="`headers`";throw Object.defineProperty(new H.InvariantError(`${P} must not be used within a client component. Next.js should be preventing ${P} from being included in client components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1017",enumerable:!1,configurable:!0});case"prerender-ppr":return(0,L.postponeWithTracking)(I.route,N,T.dynamicTracking);case"prerender-legacy":return(0,L.throwToInterruptStaticGeneration)(N,I,T);case"prerender-runtime":{let{stagedRendering:N}=T;if(N)return N.delayUntilStage(F.RENDER_STAGES_BY_DATA_KIND.sessionData,"headers",T.headers);return G(T.headers)}case"private-cache":return G(T.headers);case"request":if((0,L.trackDynamicDataInDynamicRender)(T),T.asyncApiPromises)return T.asyncApiPromises.headers;return G(T.headers)}}(0,R.throwForMissingRequestStore)(N)}let W=new WeakMap;function q(N,I){let T=W.get(I);if(T)return T;let P=(0,F.makeRuntimeHangingPromise)(I.renderSignal,N.route,"`headers()`",I);return W.set(I,P),P}function G(N){let I=W.get(N);if(I)return I;let T=Promise.resolve(N);return W.set(N,T),T}function K(N,I){let T=N?`Route "${N}" `:"This route ";return Object.defineProperty(Error(`${T}used ${I}. \`headers()\` returns a Promise and must be unwrapped with \`await\` or \`React.use()\` before accessing its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`),"__NEXT_ERROR_CODE",{value:"E836",enumerable:!1,configurable:!0})}(0,B.createDedupedByCallsiteServerErrorLoggerDev)(K)},70208:(N,I,T)=>{"use strict";T.r(I),T.d(I,{BlogOverviewResultCard:()=>U});var P=T(37876),D=T(94274),M=T(87273),R=T(48230),L=T.n(R),$=T(63366),F=T(36379),B=T(82868);let U=({result:N,lastCard:I})=>{let T=N?.blogHeroCategory?.data?.name,R=N.name,U=N.previewImage?.data?.value?.src?N.previewImage.data:N.blogHeroImage.data;return(0,P.jsxs)($.az,{"data-testid":B.Qa.TestIds.BlogOverviewComponent.card,className:(0,F.cn)("flex flex-row justify-between border-accent-iron bg-white! py-5 sm:flex-col sm:border sm:p-0 sm:shadow-blog-card",{"border-b-2":!I}),children:[(0,P.jsxs)(L(),{prefetch:!1,className:"group flex h-full flex-row sm:flex-col",href:(0,F.xd)(R,T),children:[(0,P.jsx)($.az,{className:"flex items-center overflow-hidden",children:(0,P.jsx)(M._,{className:(0,F.cn)("aspect-square max-w-26 object-cover transition-all delay-75 ease-linear hover:scale-105 sm:aspect-video sm:w-full sm:max-w-full"),field:U,srcSet:[{mw:250}],sizes:"250px",alt:U?.value?.alt||"Blog Card Image"})}),(0,P.jsx)($.az,{className:"relative flex flex-1 flex-col justify-start px-4 sm:justify-between sm:p-4",children:(0,P.jsxs)($.az,{className:"flex flex-col",children:[(0,P.jsx)($.o5,{className:"line-clamp-2 group-hover:brunel-underline-3-brunel-dark-grey sm:line-clamp-none",type:"h4",plainText:N?.previewTitle?.value}),(0,P.jsx)($.o5,{className:"line-clamp-2 text-ui-grey sm:line-clamp-3",type:"small",plainText:N?.previewIntro?.value})]})})]}),(0,P.jsx)($.az,{className:"w-max px-4 sm:p-4 sm:pt-0",children:N?.blogHeroCategory?.data?.displayName&&T&&(0,P.jsx)(D.TagButton,{className:"hidden sm:block",value:N?.blogHeroCategory?.data?.displayName,link:(0,F.K5)(T)})})]})}},70515:(N,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),function(N,I){for(var T in I)Object.defineProperty(N,T,{enumerable:!0,get:I[T]})}(I,{DynamicServerError:function(){return P},isDynamicServerError:function(){return D}});let T="DYNAMIC_SERVER_USAGE";
1161class P extends Error{constructor(N){super(`Dynamic server usage: ${N}`),this.description=N,this.digest=T}}function D(N){return"object"==typeof N&&null!==N&&"digest"in N&&"string"==typeof N.digest&&N.digest===T}("function"==typeof I.default||"object"==typeof I.default&&null!==I.default)&&void 0===I.default.__esModule&&(Object.defineProperty(I.default,"__esModule",{value:!0}),Object.assign(I.default,I),N.exports=I.default)},70743:(N,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),function(N,I){for(var T in I)Object.defineProperty(N,T,{enumerable:!0,get:I[T]})}(I,{getClientReact:function(){return D},getServerReact:function(){return L},registerClientReact:function(){return P},registerServerReact:function(){return R}});let T=null;function P(N){T=N}function D(){return T}let M=null;function R(N){M=N}function L(){return M}},70934:(N,I,T)=>{"use strict";T.r(I),T.d(I,{default:()=>B});var P=T(37876),D=T(85609),M=T(77328),R=T.n(M),L=T(920),$=T(72930),F=T(85464);let B=({fields:N,title:I})=>{let{page:T}=(0,D.M5)();if(!I)return null;let M=T.layout.sitecore.route?.fields,B=T.layout.sitecore.context,U=(0,F.p)(B),H=" - Brunel",z=I,W=(0,$.G)(B,U,N.caseStudyUrl),q=N.caseStudyDescription?.value,G="string"==typeof q?q:String(q??""),K=G.trim().length>0?G:z,V=N.heroImage?.value?.src,Y=(0,L.qL)(M?.metaOGTitle?.value),J=(0,L.qL)(M?.metaDescription?.value)||(0,L.qL)(M?.metaOGDescription?.value),Q=M?.metaImage?.value?.src||M?.metaOGImage?.value?.src,Z=(0,L.ZK)({heroTitle:z,metaTitle:M?.metaTitle?.value,metaOGTitle:M?.metaOGTitle?.value,suffix:H}),X=J??K,ee=Q??V,et=N.caseStudyHeroPublicationDate?.value,er=W?{"@context":"https://schema.org","@type":"Article",headline:z,description:X,url:W,...et?{datePublished:et}:{},image:ee,author:{"@type":"Organization","@id":"https://www.brunel.net/#organization"},mainEntityOfPage:{"@type":"WebPage","@id":W}}:null;return(0,P.jsxs)(R(),{children:[(0,P.jsx)("title",{children:Z}),(0,P.jsx)("meta",{property:"og:title",content:Y??Z}),(0,P.jsx)("meta",{name:"twitter:title",content:Z}),(0,P.jsx)("meta",{name:"description",content:X}),(0,P.jsx)("meta",{property:"og:description",content:X}),(0,P.jsx)("meta",{name:"twitter:description",content:X}),ee&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("meta",{property:"og:image",content:ee}),(0,P.jsx)("meta",{name:"twitter:image",content:ee})]}),er&&(0,P.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(er)}})]})}},71017:(N,I,T)=>{"use strict";T.r(I),T.d(I,{Header:()=>Y,HeaderTH:()=>$.HeaderTH,getComponentServerProps:()=>V});var P=T(37876),D=T(85503),M=T(71590),R=T(78200),L=T(23649),$=T(43573),F=T(47137),B=T(65212),U=T(63366),H=T(60409),z=T(45034),W=T(36379),q=T(82868);let G=` 1162 flex items-center fixed top-0 1163 h-18 w-screen py-0 px-6 w-full 1164 z-20 text-brunel-dark-grey mx-auto transition lg:border-b-2 lg:border-ui-grey 1165`,K=(0,F.F)([G],{variants:{variant:{default:"bg-brunel-dark-grey",yellow:"bg-brunel-yellow"}},defaultVariants:{variant:"default"}}),V=async(N,I,T)=>{let P=I?.sitecore?.route?.itemId??"",D=T?.locale??H.Xn,M=null,R=I.loginPage;try{M=await (0,z.B)(I?.sitecore?.context.pageLanguages,D)}catch(N){B.A.ui("Failed to get languageData in getComponentServerProps inside Header component",N)}return{languageDataInfo:M,itemId:P,locale:D,loginPageUrl:R}},Y=({variant:N,locale:I,fields:T,loginPageUrl:$,...F})=>{let B=F.params.RenderingIdentifier,H=T?.data?.datasource,{authenticated:z,isPageTop:G,isEditing:V,useMobileNav:Y}=(0,D.useHeader)(),J=H?.children?.results?H.children.results:[];return(0,P.jsx)(U.az,{id:B||void 0,className:(0,W.cn)(`component ${F.params.styles}`,K({variant:N}),V&&"relative",V||!G?"bg-brunel-dark-grey":"border-b-transparent! bg-transparent hover:border-b-ui-grey! hover:bg-brunel-dark-grey"),"data-testid":q.Qa.TestIds.HeaderComponent.base,children:(0,P.jsx)(U.az,{className:"mx-auto flex max-w-(--breakpoint-lg) shrink grow basis-full items-center justify-between lg:p-0",children:(0,P.jsxs)(U.az,{className:"flex w-full justify-between lg:items-center",children:[(0,P.jsx)(L.Button,{iconClassNames:"icon-only",className:(0,W.cn)("pl-0",!V&&"hidden lg:block"),variant:"tertiary",iconColor:"white",iconName:"logo",iconSize:"large",linkField:{value:{href:`/${I}`,target:"_top",linktype:"internal"}}}),J?.length!==0&&(Y?(0,P.jsx)(M.MobileNavigation,{navigationData:J,locale:I,loginPage:$,authenticated:z,editable:!1}):(0,P.jsx)("div",{className:(0,W.cn)(V?"block":"hidden lg:block"),children:(0,P.jsx)(R.Navigation,{navigationData:J,locale:I,loginPage:$,authenticated:z,editable:!1})}
1165))]})})})}},71523:(N,I,T)=>{"use strict";function P(N){return (I={})=>{let T=I.width?String(I.width):N.defaultWidth;return N.formats[T]||N.formats[N.defaultWidth]}}T.d(I,{k:()=>P})},71590:(N,I,T)=>{"use strict";T.r(I),T.d(I,{MobileNavigation:()=>K});var P=T(37876),D=T(35782),M=T(78200),R=T(78253),L=T(23649),$=T(22544),F=T(40163),B=T(63366),U=T(80681),H=T(18249),z=T(58138),W=T(57479),q=T(36379),G=T(82868);let K=({navigationData:N,locale:I,navItemColor:T,fontSize:K,menuItem:V,loginPage:Y,authenticated:J,editable:Q})=>{let{page:Z,isMobileMenuOpen:X,activeNavItem:ee,setActiveNavItem:et,currentLanguage:er,languageData:en,toggleMobileMenu:ea,handleNavItemClick:ei,handlePreviousNavMenuClick:eo}=(0,D.useMobileNavigation)({locale:I}),es=(N,I=!1,D=!1)=>N?.map((N,L)=>{if(N.type===R.NavSectionType.NAVIGATION_SECTION){let R=N?.menuSectionLink?.link?.value?.href,U=N?.menuSectionReadMoreLink?.link?.value?.href;return I?(0,P.jsx)("div",{className:"child-menu-section mobile-child-section flex-col items-center",children:N.children&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("div",{className:"mx-6",children:R?(0,P.jsx)($.N,{field:N?.menuSectionLink?.link,editable:Q,className:(0,q.cn)(M.styledNavTitle,"m-0 flex w-full border-b border-accent-iron px-6 py-4 pl-0 text-m-body-medium leading-[18px]! font-medium! text-brunel-dark-grey"),title:N?.menuSectionLink?.link?.value?.text,tabIndex:0,children:N?.menuSectionTitle?.text?.value}):(0,P.jsx)(F.E,{className:(0,q.cn)(M.styledNavTitle,"m-0 flex w-full cursor-default border-b border-accent-iron px-6 py-4 pl-0 text-m-body-medium leading-[18px]! font-medium! text-brunel-dark-grey"),field:N?.menuSectionTitle?.text,editable:Q,tabIndex:0,tag:"p"})}),(0,P.jsxs)("ul",{className:"child-menu-list pb-0",children:[es(N.children.results,!0,D),U&&(0,P.jsx)("li",{className:"w-fit",children:(0,P.jsxs)($.N,{className:(0,q.cn)((0,z.C0)({menuItem:V}),B.kL,"text-start","text-grey-400 flex text-base font-medium","footer"===V&&"text-white"),field:N?.menuSectionReadMoreLink?.link,children:[(0,P.jsx)(B.az,{className:"mr-1 flex items-center self-center",children:(0,P.jsx)(B.In,{size:"small",name:"chevron-right",alt:"to overview",color:"white"})}),N?.menuSectionReadMoreLink.link?.value?.text]})})]})]})},L):(0,P.jsxs)("div",{className:(0,q.cn)((0,M.navItemVariants)({navItemColor:T,fontSize:K}),M.styledInnerNavItem,"menu-section nav-item mobile group mr-4 translate-x-full cursor-pointer px-6 font-semibold",X&&"translate-x-0 transition-all"),onClick:()=>ei(N),children:[R?(0,P.jsx)($.N,{className:"relative py-4 text-m-body-medium font-semibold! text-brunel-dark-grey",field:N?.menuSectionLink?.link,editable:Q,tabIndex:0,children:N?.menuSectionTitle?.text?.value}):(0,P.jsx)(F.E,{className:"relative py-4 font-semibold! text-brunel-dark-grey",field:N?.menuSectionTitle?.text,editable:Q,tabIndex:0,tag:"p"}),N?.children?.results?.length?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(B.In,{name:"chevron-right",className:"ml-auto"}),(0,P.jsx)("div",{className:(0,q.cn)("menu-children fixed top-0 left-0 h-full w-screen translate-x-full flex-wrap overflow-hidden bg-brunel-dark-grey",ee&&"translate-x-0 transition-all lg:h-auto"),children:N.children&&es(N.children.results,!0,D)})]}):null]},L)}if("NavigationItem"===N.type&&N.menuItemLink?.link?.value?.href)return(0,P.jsx)("li",{className:"nav-item mx-6 flex border-b border-accent-iron text-brunel-dark-grey last:border-b-0 last:pb-0",onClick:ea,children:(0,P.jsx)($.N,{field:N.menuItemLink.link,editable:Q,className:"w-full py-4 pl-6 text-start text-base! leading-tight! font-normal!",href:N.menuItemLink.link.value.href,tabIndex:0,children:N.menuItemTitle.text.value})},L);if(N.type===R.NavSectionType.LANGUAGE_SECTION)return(0,P.jsx)("div",{className:"language-section",children:(0,P.jsx)(U.A,{languageData:{...N,...en},activeNavItem:ee,setActiveNavItem:et})},L);{if(N.type!==R.NavSectionType.SECURITY_SECTION)return null;let I={...N,loginPage:Y,authenticated:D};return(0,P.jsx)("div",{className:"security-section","data-testid":G.Qa.TestIds.HeaderComponent.navSec+"-mobile"+L,children:(0,P.jsx)(W.G,{...I})},L)}});return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)("div",{className:"fixed inset-0 flex h-18 w-full justify-between px-6","data-testid":G.Qa.TestIds.HeaderComponent.baseMobile,children:[(0,P.jsx)(L.Button,{className:"p-0",iconClassNames:"icon-only",variant:"tertiary",onClick:eo,iconColor:"white",iconSize:ee?"medium":"large",iconName:ee?"chevron-left":"logo",linkField:{value:{href:ee?"":`/${I??Z?.locale?.toLowerCase()}`,target:"_top",linktype:"internal"}}}),ee?.type==="NavigationSection"?(0,P.jsx)("div",{className:"flex items-center text-base font-medium text-white",children:ee?.menuSectionTitle?.text?.value??ee?.menuSectionLink?.link?.value?.text}):ee?.type==="LanguageSection"?(0,P.jsx)("div",{className:"flex items-center text-base font-medium text-white",children:ee?.languageSectionLanguageColumnTitle?.value}):null,(0,P.jsx)(L.Button,{iconClassNames:"icon-only",className:"border-none p-0 shadow-none",variant:"tertiary",onClick:ea,iconName:X?"cross":"hamburger",iconColor:"white",iconSide:"right"})]}),(0,P.jsx)("div",{className:`fixed inset-0 top-18 z-50 overflow-hidden bg-white transition-transform duration-300 ease-out ${X&&!ee?"translate-x-0":"translate-x-full"}`,children:es(N,!1)}),(0,P.jsx)("div",{className:`fixed inset-0 top-18 z-50 overflow-y-auto bg-white transition-transform duration-300 ease-out ${ee?"translate-x-0":"translate-x-full"}`,children:(ee&&es(ee?.children?.results,!0,J))??(0,P.jsx)(H.A,{languageData:en,nativeName:er?.nativeName??""})})]})}},71673:(N,I,T)=>{let P;var D=T(99742);function M(){let N;return"u">typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&
1165("u">typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"u">typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"u">typeof navigator&&navigator.userAgent&&(N=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(N[1],10)>=31||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function R(I){if(I[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+I[0]+(this.useColors?"%c ":" ")+"+"+N.exports.humanize(this.diff),!this.useColors)return;let T="color: "+this.color;I.splice(1,0,T,"color: inherit");let P=0,D=0;I[0].replace(/%[a-zA-Z%]/g,N=>{"%%"!==N&&(P++,"%c"===N&&(D=P))}),I.splice(D,0,T)}function L(N){try{N?I.storage.setItem("debug",N):I.storage.removeItem("debug")}catch(N){}}function $(){let N;try{N=I.storage.getItem("debug")||I.storage.getItem("DEBUG")}catch(N){}return!N&&void 0!==D&&"env"in D&&(N=D.env.DEBUG),N}function F(){try{return localStorage}catch(N){}}I.formatArgs=R,I.save=L,I.load=$,I.useColors=M,I.storage=F(),P=!1,I.destroy=()=>{P||(P=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))},I.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],I.log=console.debug||console.log||(()=>{}),N.exports=T(69630)(I);let{formatters:B}=N.exports;B.j=function(N){try{return JSON.stringify(N)}catch(N){return"[UnexpectedJSONParseError]: "+N.message}}},71807:N=>{N.exports=()=>Math.floor(Date.now()/1e3)},71947:(N,I,T)=>{"use strict";T.d(I,{B:()=>D});let P={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},D=(N,I,T)=>{let D,M=P[N];if(D="string"==typeof M?M:1===I?M.one:M.other.replace("{{count}}",I.toString()),T?.addSuffix)if(T.comparison&&T.comparison>0)return"in "+D;else return D+" ago";return D}},71959:(N,I,T)=>{"use strict";T.d(I,{c:()=>D});let P=N=>N?.trim()?N.split(",").map(N=>N.trim().toLowerCase()).filter(Boolean):[],D=({pathname:N,pathPattern:I,excludePathPatterns:T})=>{let D=N.toLowerCase(),M=I?.trim().toLowerCase(),R=P(T);return!(!M&&R.some(N=>D.includes(N)))&&(!M||D.includes(M))}},72541:(N,I,T)=>{"use strict";T.d(I,{l:()=>rD});let P
vendor: 83,031 bytes, line 1165
1165={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[2-467])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]","(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[024-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[024-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|8)\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","(?:[2-7]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]|50"]],["(\\d{8})","$1",["[5-7]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37|86)","300|4(?:0(?:0|20)|370|864)"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[178]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-6]|7[246]|8[2-4]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|[78]"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|3[23]|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","8776\\d{4}|(?:[27]\\d|61)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-8]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["60|809"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9(?:10|[2-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|9[14]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|3[13])"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,0,[["528[89]\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|3[01]|5[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","(?:400|[5-9]\\d\\d)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[4-9]"]]]],ET:["251","00","(?:11|[2-57-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-57-9]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,"0|180020",0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:694\\d|7093)\\d{5}|(?:59|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|80[6-9]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0|180020","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","[235]\\d{8}|800\\d{5,6}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2358]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[48]\\d{8}|[2-9]\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|4(?:[0-35]|4[16-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[48]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|80[6-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:59(?:0(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}",[7,8,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-589]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1(?:05|[2-9]))","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0|180020","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-6]|80[2-46]","11|2[02]|33|4[04]|79[1-6]|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31)|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:3171|5[15][2-6]|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|8(?:16|2[014]|3[126]|6[136]|7[78]|83)(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|3[129]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7(?:[23569]|8[0-57-9])|8[1-6])|7(?:1(?:[013-8]|9[6-9])|3(?:17|2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578])\\d|7(?:[23569]\\d|8[0-57-9])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|3(?:2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["16|[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["18[06]","18[06]0"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[03]"]]],0,0,0,0,0,0,[["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0|180020","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[47]"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]","3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[25-9]"],"0$1"]],"0",0,"(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","8\\d{13}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["3"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["20"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["20"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|78|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2679]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{4})(\\d{5})","$1-$2",["892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8(?:0[0-7]|9)"],"0$1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[5-8]"],"0$1"]],"0",0,0,0,0,"[5-8]"],MC:["377","00","(?:[3489]|[67]\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[67]"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["11|2[16]"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","7091\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-37-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:20|9\\d)\\d{8}|[78]\\d{9,13}",[10,11,12,13,14],[["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[24-9]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85[02-46-9]"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[78]\\d{8}|[2-9]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["3[289]|4[246-8]|61|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[136]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["2631[0-6]\\d{4}|26(?:2\\d|30|88)\\d{5}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"[3489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","(?:[15]\\d|800|92)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[013]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|9[2-9]"]],["(\\d)(\\d{7})","$1 $2",["[267]|904"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[346-9]"]]],"0"],SR:["597","00","(?:[2-5]|[6-9]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-9]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[25-7]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[3689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[236-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","(?:[0-57-9]\\d|66)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["\\d"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","[1-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["826"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["83"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["82"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[25]0|37|49|8[09]"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-478])|7[1-9]","[23568]|4(?:0[2-48]|[1-478])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024","20240"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["20[0-35-7]|4(?:6[45]|[7-9])|[7-9]","20(?:[0135-7]|2[5-9])|4(?:6[45]|[7-9])|[7-9]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[2-4]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:472[2-47-9]|983[2-57-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[02469]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}",[4,5,6,7,8,9,10,11,12,13],[["(\\d{4,5})","$1",["21"]],["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{6,7}|7\\d{6}",[7,8,9,10],[["(\\d{4})(\\d{4,6})","$1 $2",["1(?:2[02]|[89])"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[26]|6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","(?:639\\d|7093)\\d{5}|(?:26|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["26(?:89\\d|9(?:0[0-467]|15|5[0-4]|6\\d|[78]0))\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","(?:13|8\\d{4})\\d{5}|[235-8]\\d{8}|[2-689]\\d{6}",[7,9,10],[["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|29|58)|67[0-46-9]|(?:55|68)[0-69]"],"0$1"],["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|[27]|48)|37|675|(?:55|68)[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["548"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[256]|39|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["3"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|5[12]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|5(?:0\\d{3}|2[0-2]))\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function
1165D(N,I){var T=Array.prototype.slice.call(I);return T.push(P),N.apply(this,T)}var M={}.constructor;function R(N){return null!=N&&N.constructor===M}function L(N){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(N){return typeof N}:function(N){return N&&"function"==typeof Symbol&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N})(N)}function $(N,I){var T=Object.keys(N);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(N);I&&(P=P.filter(function(I){return Object.getOwnPropertyDescriptor(N,I).enumerable})),T.push.apply(T,P)}return T}function F(N){for(var I=1;I<arguments.length;I++){var T=null!=arguments[I]?arguments[I]:{};I%2?$(Object(T),!0).forEach(function(I){B(N,I,T[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(T)):$(Object(T)).forEach(function(I){Object.defineProperty(N,I,Object.getOwnPropertyDescriptor(T,I))})}return N}function B(N,I,T){return(I=U(I))in N?Object.defineProperty(N,I,{value:T,enumerable:!0,configurable:!0,writable:!0}):N[I]=T,N}function U(N){var I=H(N,"string");return"symbol"==L(I)?I:I+""}function H(N,I){if("object"!=L(N)||!N)return N;var T=N[Symbol.toPrimitive];if(void 0!==T){var P=T.call(N,I||"default");if("object"!=L(P))return P;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===I?String:Number)(N)}function z(N,I){return V(N)||K(N,I)||q(N,I)||W()}function W(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function q(N,I){if(N){if("string"==typeof N)return G(N,I);var T=({}).toString.call(N).slice(8,-1);return"Object"===T&&N.constructor&&(T=N.constructor.name),"Map"===T||"Set"===T?Array.from(N):"Arguments"===T||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T)?G(N,I):void 0}}function G(N,I){(null==I||I>N.length)&&(I=N.length);for(var T=0,P=Array(I);T<I;T++)P[T]=N[T];return P}function K(N,I){var T=null==N?null:"u">typeof Symbol&&N[Symbol.iterator]||N["@@iterator"];if(null!=T){var P,D,M,R,L=[],$=!0,F=!1;try{if(M=(T=T.call(N)).next,0===I){if(Object(T)!==T)return;$=!1}else for(;!($=(P=M.call(T)).done)&&(L.push(P.value),L.length!==I);$=!0);}catch(N){F=!0,D=N}finally{try{if(!$&&null!=T.return&&(R=T.return(),Object(R)!==R))return}finally{if(F)throw D}}return L}}function V(N){if(Array.isArray(N))return N}function Y(N){var I,T,P,D=z(Array.prototype.slice.call(N),4),M=D[0],L=D[1],$=D[2],B=D[3];if("string"==typeof M)I=M;else throw TypeError("A text for parsing must be a string.");if(L&&"string"!=typeof L)if(R(L))$?(T=L,P=$):P=L;else throw Error("Invalid second argument: ".concat(L));else B?(T=$,P=B):(T=void 0,P=$),L&&(T=F({defaultCountry:L},T));return{text:I,options:T,metadata:P}}var J=2,Q=17,Z=3,X="0-9ï¼-ï¼Ù -Ù©Û°-Û¹",ee="-â-ââã¼ï¼",et="ï¼/",er="ï¼.",en=" \xa0\xadââ ã",ea="()ï¼ï¼ï¼»ï¼½\\[\\]",ei="~ââ¼ï½",eo="".concat(ee).concat(et).concat(er).concat(en).concat(ea).concat(ei),es="+ï¼";function el(N){return(el="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(N){return typeof N}:function(N){return N&&"function"==typeof Symbol&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N})(N)}function ec(N,I){for(var T=0;T<I.length;T++){var P=I[T];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(N,ed(P.key),P)}}function eu(N,I,T){return I&&ec(N.prototype,I),T&&ec(N,T),Object.defineProperty(N,"prototype",{writable:!1}),N}function ed(N){var I=ef(N,"string");return"symbol"==el(I)?I:I+""}function ef(N,I){if("object"!=el(N)||!N)return N;var T=N[Symbol.toPrimitive];if(void 0!==T){var P=T.call(N,I||"default");if("object"!=el(P))return P;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===I?String:Number)(N)}function eh(N,I){if(!(N instanceof I))throw TypeError("Cannot call a class as a function")}function ep(N,I,T){return I=eE(I),em(N,ew()?Reflect.construct(I,T||[],eE(N).constructor):I.apply(N,T))}function em(N,I){if(I&&("object"==el(I)||"function"==typeof I))return I;if(void 0!==I)throw TypeError("Derived constructors may only return object or undefined");return eg(N)}function eg(N){if(void 0===N)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function ey(N,I){if("function"!=typeof I&&null!==I)throw TypeError("Super expression must either be null or a function");N.prototype=Object.create(I&&I.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),Object.defineProperty(N,"prototype",{writable:!1}),I&&eA(N,I)}function eb(N){var I="function"==typeof Map?new Map:void 0;return(eb=function(N){if(null===N||!ex(N))return N;if("function"!=typeof N)throw TypeError("Super expression must either be null or a function");if(void 0!==I){if(I.has(N))return I.get(N);I.set(N,T)}function T(){return ev(N,arguments,eE(this).constructor)}return T.prototype=Object.create(N.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),eA(T,N)})(N)}function ev(N,I,T){if(ew())return Reflect.construct.apply(null,arguments);var P=[null];P.push.apply(P,I);var D=new(N.bind.apply(N,P));return T&&eA(D,T.prototype),D}function ew(){try{var N=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(N){}return(ew=function(){return!!N})()}function ex(N){try{return -1!==Function.toString.call(N).indexOf("[native code]")}catch(I){return"function"==typeof N}}function eA(N,I){return(eA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(N,I){return N.__proto__=I,N})(N,I)}
1165function eE(N){return(eE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(N){return N.__proto__||Object.getPrototypeOf(N)})(N)}var eS=function(N){function I(N){var T;return eh(this,I),Object.setPrototypeOf(T=ep(this,I,[N]),I.prototype),T.name=T.constructor.name,T}return ey(I,N),eu(I)}(eb(Error));function e_(N,I){N=N.split("-"),I=I.split("-");for(var T=N[0].split("."),P=I[0].split("."),D=0;D<3;D++){var M=Number(T[D]),R=Number(P[D]);if(M>R)return 1;if(R>M)return -1;if(!isNaN(M)&&isNaN(R))return 1;if(isNaN(M)&&!isNaN(R))return -1}return N[1]&&I[1]?N[1]>I[1]?1:N[1]<I[1]?-1:0:!N[1]&&I[1]?1:N[1]&&!I[1]?-1:0}var ek=/^\d+$/;function eC(N){return ek.test(N)}function ej(N){return(ej="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(N){return typeof N}:function(N){return N&&"function"==typeof Symbol&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N})(N)}function eO(N,I){if(!(N instanceof I))throw TypeError("Cannot call a class as a function")}function eN(N,I){for(var T=0;T<I.length;T++){var P=I[T];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(N,eT(P.key),P)}}function eI(N,I,T){return I&&eN(N.prototype,I),T&&eN(N,T),Object.defineProperty(N,"prototype",{writable:!1}),N}function eT(N){var I=eP(N,"string");return"symbol"==ej(I)?I:I+""}function eP(N,I){if("object"!=ej(N)||!N)return N;var T=N[Symbol.toPrimitive];if(void 0!==T){var P=T.call(N,I||"default");if("object"!=ej(P))return P;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===I?String:Number)(N)}var eD="1.2.0",eM="1.7.35",eR=" ext. ",eL=function(){function N(I){eO(this,N),ez(I),this.metadata=I,eK.call(this,I)}return eI(N,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(N){return"001"!==N})}},{key:"getCountryMetadata",value:function(N){return this.metadata.countries[N]}},{key:"nonGeographic",value:function(){if(!this.v1&&!this.v2&&!this.v3)return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(N){return void 0!==this.getCountryMetadata(N)}},{key:"hasCallingCode",value:function(N){if(this.getCountryCodesForCallingCode(N))return!0;
vendor: 6,433 bytes, line 1165
1165if(this.nonGeographic()){if(this.nonGeographic()[N])return!0}else{var I=this.countryCallingCodes()[N];if(I&&1===I.length&&"001"===I[0])return!0}}},{key:"isNonGeographicCallingCode",value:function(N){return this.nonGeographic()?!!this.nonGeographic()[N]:!this.getCountryCodesForCallingCode(N)}},{key:"country",value:function(N){return this.selectNumberingPlan(N)}},{key:"selectNumberingPlan",value:function(N,I){if(N&&(eC(N)?P=N:T=N),I&&(P=I),T&&"001"!==T){var T,P,D=this.getCountryMetadata(T);if(!D)throw Error("Unknown country: ".concat(T));this.numberingPlan=new e$(D,this)}else if(P){if(!this.hasCallingCode(P))throw Error("Unknown calling code: ".concat(P));this.numberingPlan=new e$(this.getNumberingPlanMetadata(P),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(N){var I=this.countryCallingCodes()[N];if(I){if(1===I.length&&3===I[0].length)return;return I}}},{key:"getCountryCodeForCallingCode",value:function(N){var I=this.getCountryCodesForCallingCode(N);if(I)return I[0]}},{key:"getNumberingPlanMetadata",value:function(N){var I=this.getCountryCodeForCallingCode(N);if(I)return this.getCountryMetadata(I);if(this.nonGeographic()){var T=this.nonGeographic()[N];if(T)return T}else{var P=this.countryCallingCodes()[N];if(P&&1===P.length&&"001"===P[0])return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(N){return this.numberingPlan.type(N)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(N){return this.selectNumberingPlan(N)}},{key:"hasSelectedNumberingPlan",value:function(){return void 0!==this.numberingPlan}}])}(),e$=function(){function N(I,T){eO(this,N),this.globalMetadataObject=T,this.metadata=I,eK.call(this,T.metadata)}return eI(N,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"_getDefaultCountryMetadataForThisCallingCode",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this._getDefaultCountryMetadataForThisCallingCode()}},{key:"IDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(N){return N[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var N=this;return(this._getFormats(this.metadata)||this._getFormats(this._getDefaultCountryMetadataForThisCallingCode())||[]).map(function(I){return new eF(I,N)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(N){return N[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this._getDefaultCountryMetadataForThisCallingCode())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this._getDefaultCountryMetadataForThisCallingCode())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return(!this.types()||0!==this.types().length)&&!!this.types()}},{key:"type",value:function(N){if(this.hasTypes()&&eH(this.types(),N))return new eU(eH(this.types(),N),this)}},{key:"ext",value:function(){return this.v1||this.v2?eR:this.metadata[13]||eR}}])}(),eF=function(){function N(I,T){eO(this,N),this._format=I,this.metadata=T}return eI(N,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!(!this.nationalPrefixFormattingRule()||eB.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])}(),eB=/^\(?\$1\)?$/,eU=function(){function N(I,T){eO(this,N),this.type=I,this.metadata=T}return eI(N,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.t
1165ype[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}])}();function eH(N,I){switch(I){case"FIXED_LINE":return N[0];case"MOBILE":return N[1];case"TOLL_FREE":return N[2];case"PREMIUM_RATE":return N[3];case"PERSONAL_NUMBER":return N[4];case"VOICEMAIL":return N[5];case"UAN":return N[6];case"PAGER":return N[7];case"VOIP":return N[8];case"SHARED_COST":return N[9]}}function ez(N){if(!N)throw Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!R(N)||!R(N.countries))throw Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(R(N)?"an object of shape: { "+Object.keys(N).join(", ")+" }":"a "+eW(N)+": "+N,"."))}var eW=function(N){return ej(N)};function eq(N,I){var T=new eL(I);if(T.hasCountry(N))return T.selectNumberingPlan(N).countryCallingCode();throw Error("Unknown country: ".concat(N))}function eG(N,I){return I.countries.hasOwnProperty(N)}function eK(N){var I=N.version;"number"==typeof I?(this.v1=1===I,this.v2=2===I,this.v3=3===I,this.v4=4===I):I?-1===e_(I,eD)?this.v2=!0:-1===e_(I,eM)?this.v3=!0:this.v4=!0:this.v1=!0}var eV=";ext=",eY=function(N){return"([".concat(X,"]{1,").concat(N,"})")};function eJ(N){var I="20",T="15",P="9",D="6",M="[ \xa0\\t,]*",R="[:\\.ï¼]?[ \xa0\\t,-]*",L="#?",$="(?:e?xt(?:ensi(?:oÌ?|\xf3))?n?|ï½
?ï½ï½ï½?|доб|anexo)",F="(?:[xï½#ï¼~ï½]|int|ï½ï½ï½)",B="[- ]+",U="[ \xa0\\t]*",H="(?:,{2}|;)";return eV+eY(I)+"|"+(M+$+R+eY(I)+L)+"|"+(M+F+R+eY(P)+L)+"|"+(B+eY(D))+"#|"+(U+H+R+eY(T)+L)+"|"+(U+"(?:,)+"+R+eY(P))+L}var eQ="["+X+"]{"+J+"}",eZ="["+es+"]{0,1}(?:["+eo+"]*["+X+"]){3,}["+eo+X+"]*",eX=RegExp("^["+es+"]{0,1}(?:["+eo+"]*["+X+"]){1,2}$","i"),e0=RegExp("^"+eQ+"$|^"+(eZ+"(?:"+eJ())+")?$","i");function e1(N){return N.length>=J&&e0.test(N)}function e2(N){return eX.test(N)}var e3=RegExp("(?:"+eJ()+")$","i");function e4(N){var I=N.search(e3);if(I<0)return{};for(var T=N.slice(0,I),P=N.match(e3),D=1;D<P.length;){if(P[D])return{number:T,ext:P[D]};D++}}var e5={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","ï¼":"0","ï¼":"1","ï¼":"2","ï¼":"3","ï¼":"4","ï¼":"5","ï¼":"6","ï¼":"7","ï¼":"8","ï¼":"9","Ù ":"0","Ù¡":"1","Ù¢":"2","Ù£":"3","Ù¤":"4","Ù¥":"5","Ù¦":"6","Ù§":"7","Ù¨":"8","Ù©":"9","Û°":"0","Û±":"1","Û²":"2","Û³":"3","Û´":"4","Ûµ":"5","Û¶":"6","Û·":"7","Û¸":"8","Û¹":"9"};function e6(N){return e5[N]}function e8(N,I){var T="u">typeof Symbol&&N[Symbol.iterator]||N["@@iterator"];if(T)return(T=T.call(N)).next.bind(T);if(Array.isArray(N)||(T=e7(N))||I&&N&&"number"==typeof N.length){T&&(N=T);var P=0;return function(){return P>=N.length?{done:!0}:{done:!1,value:N[P++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e7(N,I){if(N){if("string"==typeof N)return e9(N,I);var T=({}).toString.call(N).slice(8,-1);return"Object"===T&&N.constructor&&(T=N.constructor.name),"Map"===T||"Set"===T?Array.from(N):"Arguments"===T||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T)?e9(N,I):void 0}}function e9(N,I){(null==I||I>N.length)&&(I=N.length);for(var T=0,P=Array(I);T<I;T++)P[T]=N[T];return P}function te(N){for(var I,T="",P=e8(N.split(""));!(I=P()).done;){var D=I.value;T+=tt(D,T)||""}return T}function tt(N,I,T){if("+"===N){if(I){"function"==typeof T&&T("end");return}return"+"}return e6(N)}function tr(N,I){var T="u">typeof Symbol&&N[Symbol.iterator]||N["@@iterator"];if(T)return(T=T.call(N)).next.bind(T);if(Array.isArray(N)||(T=tn(N))||I&&N&&"number"==typeof N.length){T&&(N=T);var P=0;return function(){return P>=N.length?{done:!0}:{done:!1,value:N[P++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function tn(N,I){if(N){if("string"==typeof N)return ta(N,I);var T=({}).toString.call(N).slice(8,-1);return"Object"===T&&N.constructor&&(T=N.constructor.name),"Map"===T||"Set"===T?Array.from(N):"Arguments"===T||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T)?ta(N,I):void 0}}function ta(N,I){(null==I||I>N.length)&&(I=N.length);for(var T=0,P=Array(I);T<I;T++)P[T]=N[T];return P}function ti(N,I){for(var T,P=N.slice(),D=tr(I);!(T=D()).done;){var M=T.value;0>N.indexOf(M)&&P.push(M)}return P.sort(function(N,I){return N-I})}function to(N,I,T){return ts(N,void 0,I,T)}function ts(N,I,T,P){T&&(P=new eL(P.metadata)).selectNumberingPlan(T);var D=P.type(I),M=D&&D.possibleLengths()||P.possibleLengths();if(!M)return"IS_POSSIBLE";
1165if("FIXED_LINE_OR_MOBILE"===I){if(!P.type("FIXED_LINE"))return ts(N,"MOBILE",T,P);var R=P.type("MOBILE");R&&(M=ti(M,R.possibleLengths()))}else if(I&&!D)return"INVALID_LENGTH";var L=N.length,$=M[0];return $===L?"IS_POSSIBLE":$>L?"TOO_SHORT":M[M.length-1]<L?"TOO_LONG":M.indexOf(L,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function tl(N,I,T){void 0===I&&(I={});var P=new eL(T);if(I.v2){if(!N.countryCallingCode)throw Error("Invalid phone number object passed");P.selectNumberingPlan(N.country||N.countryCallingCode)}else{if(!N.phone)return!1;if(N.country){if(!P.hasCountry(N.country))throw Error("Unknown country: ".concat(N.country));P.selectNumberingPlan(N.country)}else{if(!N.countryCallingCode)throw Error("Invalid phone number object passed");P.selectNumberingPlan(N.countryCallingCode)}}if(P.possibleLengths())return tc(N.phone||N.nationalNumber,P);if(N.countryCallingCode&&P.isNonGeographicCallingCode(N.countryCallingCode))return!0;throw Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function tc(N,I){return"IS_POSSIBLE"===to(N,void 0,I)}function tu(N,I){return N=N||"",RegExp("^(?:"+I+")$").test(N)}function td(N,I){var T="u">typeof Symbol&&N[Symbol.iterator]||N["@@iterator"];if(T)return(T=T.call(N)).next.bind(T);if(Array.isArray(N)||(T=tf(N))||I&&N&&"number"==typeof N.length){T&&(N=T);var P=0;return function(){return P>=N.length?{done:!0}:{done:!1,value:N[P++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function tf(N,I){if(N){if("string"==typeof N)return th(N,I);var T=({}).toString.call(N).slice(8,-1);return"Object"===T&&N.constructor&&(T=N.constructor.name),"Map"===T||"Set"===T?Array.from(N):"Arguments"===T||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T)?th(N,I):void 0}}function th(N,I){(null==I||I>N.length)&&(I=N.length);for(var T=0,P=Array(I);T<I;T++)P[T]=N[T];return P}var tp=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function tm(N,I,T){if(I=I||{},N.country||N.countryCallingCode){var P=new eL(T);P.selectNumberingPlan(N.country||N.countryCallingCode);var D=I.v2?N.nationalNumber:N.phone;if(tu(D,P.nationalNumberPattern())){if(tg(D,"FIXED_LINE",P))return P.type("MOBILE")&&""===P.type("MOBILE").pattern()||!P.type("MOBILE")||tg(D,"MOBILE",P)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var M,R=td(tp);!(M=R()).done;){var L=M.value;if(tg(D,L,P))return L}}}}function tg(N,I,T){var P=T.type(I);return!(!P||!P.pattern()||P.possibleLengths()&&0>P.possibleLengths().indexOf(N.length))&&tu(N,P.pattern())}function ty(N,I,T){I=I||{};var P=new eL(T);return(P.selectNumberingPlan(N.country||N.countryCallingCode),P.hasTypes())?void 0!==tm(N,I,P.metadata):tu(I.v2?N.nationalNumber:N.phone,P.nationalNumberPattern())}var tb=/^[A-Z]{2}$/;function tv(N){return tb.test(N)}var tw=!1;function tx(N,I){var T,P,D=new eL(I);return tv(N)?(T=N,D.selectNumberingPlan(T),P=D.countryCallingCode()):(P=N,tw&&D.isNonGeographicCallingCode(P)&&(T="001")),{country:T,callingCode:P}}function tA(N,I,T){var P=new eL(T).getCountryCodesForCallingCode(N);return P?P.filter(function(N){return tE(I,N,T)}):[]}function tE(N,I,T){var P=new eL(T);return P.selectNumberingPlan(I),P.numberingPlan.possibleLengths().indexOf(N.length)>=0}var tS=RegExp("(["+X+"])");function t_(N,I,T,P){if(I){var D=new eL(P);D.selectNumberingPlan(I||T);var M=new RegExp(D.IDDPrefix());if(0===N.search(M)){var R=(N=N.slice(N.match(M)[0].length)).match(tS);if(!R||null==R[1]||!(R[1].length>0)||"0"!==R[1])return N}}}function tk(N,I){if(N&&I.numberingPlan.nationalPrefixForParsing()){var T=RegExp("^(?:"+I.numberingPlan.nationalPrefixForParsing()+")"),P=T.exec(N);if(P){var D,M,R,L=P.length-1,$=L>0&&P[L];if(I.nationalPrefixTransformRule()&&$)D=N.replace(T,I.nationalPrefixTransformRule()),L>1&&(M=P[1]);else{var F=P[0];D=N.slice(F.length),$&&(M=P[1])}if($){var B=N.indexOf(P[1]);N.slice(0,B)===I.numberingPlan.nationalPrefix()&&(R=I.numberingPlan.nationalPrefix())}else R=P[0];return{nationalNumber:D,nationalPrefix:R,carrierCode:M}}}return{nationalNumber:N}}function tC(N,I){var T="u">typeof Symbol&&N[Symbol.iterator]||N["@@iterator"];if(T)return(T=T.call(N)).next.bind(T);if(Array.isArray(N)||(T=tj(N))||I&&N&&"number"==typeof N.length){T&&(N=T);var P=0;return function(){return P>=N.length?{done:!0}:{done:!1,value:N[P++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function tj(N,I){if(N){if("string"==typeof N)return tO(N,I);var T=({}).toString.call(N).slice(8,-1);return"Object"===T&&N.constructor&&(T=N.constructor.name),"Map"===T||"Set"===T?Array.from(N):"Arguments"===T||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T)?tO(N,I):void 0}}function tO(N,I){(null==I||I>N.length)&&(I=N.length);for(var T=0,P=Array(I);T<I;T++)P[T]=N[T];return P}function tN(N,I,T){for(var P,D=new eL(T),M=tC(I);!(P=M()).done;){var R=P.value;if(D.selectNumberingPlan(R),D.leadingDigits()){if(N&&0===N.search(D.leadingDigits()))return R}else if(tm({phone:N,country:R},void 0,D.metadata))return R}}var tI=!1;function tT(N,I){var T=I.nationalNumber,P=I.metadata;if(tI&&P.isNonGeographicCallingCode(N))return"001";var D=P.getCountryCodesForCallingCode(N);if(D)return 1===D.length?D[0]:tN(T,D,P.metadata)}function tP(N,I,T){var P=tk(N,T),D=P.carrierCode,M=P.nationalNumber;if(M!==N&&(!tD(N,M,T)||T.numberingPlan.possibleLengths()&&(I||(I=tT(T.numberingPlan.callingCode(),{nationalNumber:M,metadata:T})),!tM(M,I,T))))return{nationalNumber:N};return{nationalNumber:M,carrierCode:D}}function tD(N,I,T){return!tu(N,T.nationalNumberPattern())||!!tu(I,T.nationalNumberPattern())}function tM(N,I,T){switch(to(N,I,T)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function tR(N,I,T,P,D){if(!(I||T||P))return{number:N};var M=I||T?eq(I||T,D):P;if(0===N.indexOf(M)){var R=new eL(D);R.selectNumberingPlan(I||T||P);var L=N.slice(M.length),$=tP(L,void 0,R).nationalNumber,F=tP(N,void 0,R).nationalNumber;if(!tu(F,R.nationalNumberPattern())&&tu($,R.nationalNumberPattern())||"TOO_LONG"===to(F,void 0,R))return{countryCallingCode:M,number:L}}return{number:N}}function tL(N,I,T,P,D){if(!N)return{};if("+"!==N[0]){var M,R=t_(N,I||T,P,D);if(R&&R!==N)M=!0,N="+"+R;else{if(I||T||P){var L=tR(N,I,T,P,D),$=L.countryCallingCode,F=L.number;if($)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:$,number:F}}return{number:N}}}if("0"===N[1])return{};for(var B=new eL(D),U=2;U-1<=Z&&U<=N.length;){var H=N.slice(1,U);if(B.hasCallingCode(H))return B.selectNumberingPlan(H),{countryCallingCodeSource:M?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:H,number:N.slice(U)};U++}return{}}function t$(N){return N.replace(RegExp("[".concat(eo,"]+"),"g")," ").trim()}var tF=/(\$\d)/;function tB(N,I,T){var P=T.useInternationalFormat,D=T.withNationalPrefix;T.carrierCode,T.metadata;var M=N.replace(new RegExp(I.pattern()),P?I.internationalFormat():D&&I.nationalPrefixFormattingRule()?I.format().replace(tF,I.nationalPrefixFormattingRule()):I.format());return P?t$(M):M}var tU=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function tH(N,I,T){var P=new eL(T);return(P.selectNumberingPlan(N||I),P.defaultIDDPrefix())?P.defaultIDDPrefix():tU.test(P.IDDPrefix())?P.IDDPrefix():void 0}function tz(N){var I=N.number,T=N.ext;if(!I)return"";if("+"!==I[0])throw Error('"formatRFC3966()" expects "number" to be in E.164 format.');
1165return"tel:".concat(I).concat(T?";ext="+T:"")}var tW={formatExtension:function(N,I,T){return"".concat(N).concat(T.ext()).concat(I)}};function tq(N,I,T,P){T=T?tJ({},tW,T):tW;var D,M=new eL(P);if(N.country&&"001"!==N.country){if(!M.hasCountry(N.country))throw Error("Unknown country: ".concat(N.country));M.selectNumberingPlan(N.country)}else{if(!N.countryCallingCode)return N.phone||"";M.selectNumberingPlan(N.countryCallingCode)}var R=M.countryCallingCode(),L=T.v2?N.nationalNumber:N.phone;switch(I){case"NATIONAL":if(!L)return"";return tV(D=tG(L,N.carrierCode,"NATIONAL",M,T),N.ext,M,T.formatExtension);case"INTERNATIONAL":if(!L)return"+".concat(R);return D=tG(L,null,"INTERNATIONAL",M,T),tV(D="+".concat(R," ").concat(D),N.ext,M,T.formatExtension);case"E.164":return"+".concat(R).concat(L);case"RFC3966":return tz({number:"+".concat(R).concat(L),ext:N.ext});case"IDD":if(!T.fromCountry)return;var $=tY(L,N.carrierCode,R,T.fromCountry,M);if(!$)return;return tV($,N.ext,M,T.formatExtension);default:throw Error('Unknown "format" argument passed to "formatNumber()": "'.concat(I,'"'))}}function tG(N,I,T,P,D){var M=tK(P.formats(),N);return M?tB(N,M,{useInternationalFormat:"INTERNATIONAL"===T,withNationalPrefix:!M.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!D||!1!==D.nationalPrefix,carrierCode:I,metadata:P}):N}function tK(N,I){return tQ(N,function(N){if(N.leadingDigitsPatterns().length>0){var T=N.leadingDigitsPatterns()[N.leadingDigitsPatterns().length-1];if(0!==I.search(T))return!1}return tu(I,N.pattern())})}function tV(N,I,T,P){return I?P(N,I,T):N}function tY(N,I,T,P,D){if(eq(P,D.metadata)===T){var M=tG(N,I,"NATIONAL",D);return"1"===T?T+" "+M:M}var R=tH(P,void 0,D.metadata);if(R)return"".concat(R," ").concat(T," ").concat(tG(N,null,"INTERNATIONAL",D))}function tJ(){for(var N=1,I=arguments.length,T=Array(I),P=0;P<I;P++)T[P]=arguments[P];for(;N<T.length;){if(T[N])for(var D in T[N])T[0][D]=T[N][D];N++}return T[0]}function tQ(N,I){for(var T=0;T<N.length;){if(I(N[T]))return N[T];T++}}function tZ(N){return(tZ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(N){return typeof N}:function(N){return N&&"function"==typeof Symbol&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N})(N)}function tX(N,I){var T=Object.keys(N);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(N);I&&(P=P.filter(function(I){return Object.getOwnPropertyDescriptor(N,I).enumerable})),T.push.apply(T,P)}return T}function t0(N){for(var I=1;I<arguments.length;I++){var T=null!=arguments[I]?arguments[I]:{};I%2?tX(Object(T),!0).forEach(function(I){t1(N,I,T[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(T)):tX(Object(T)).forEach(function(I){Object.defineProperty(N,I,Object.getOwnPropertyDescriptor(T,I))})}return N}function t1(N,I,T){return(I=t5(I))in N?Object.defineProperty(N,I,{value:T,enumerable:!0,configurable:!0,writable:!0}):N[I]=T,N}function t2(N,I){if(!(N instanceof I))throw TypeError("Cannot call a class as a function")}function t3(N,I){for(var T=0;T<I.length;T++){var P=I[T];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(N,t5(P.key),P)}}function t4(N,I,T){return I&&t3(N.prototype,I),T&&t3(N,T),Object.defineProperty(N,"prototype",{writable:!1}),N}function t5(N){var I=t6(N,"string");return"symbol"==tZ(I)?I:I+""}function t6(N,I){if("object"!=tZ(N)||!N)return N;var T=N[Symbol.toPrimitive];if(void 0!==T){var P=T.call(N,I||"default");if("object"!=tZ(P))return P;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===I?String:Number)(N)}var t8=function(){function N(I,T,P){if(t2(this,N),!I)throw TypeError("First argument is required");if("string"!=typeof I)throw TypeError("First argument must be a string");if("+"===I[0]&&!T)throw TypeError("`metadata` argument not passed");if(R(T)&&R(T.countries)){P=T;var D=I;if(!t7.test(D))throw Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var M=tL(D,void 0,void 0,void 0,P),L=M.countryCallingCode;if(T=M.number,I=L,!T)throw Error("Invalid `number` argument passed: too short")}if(!T)throw TypeError("`nationalNumber` argument is required");if("string"!=typeof T)throw TypeError("`nationalNumber` argument must be a string");ez(P);var $=tx(I,P),F=$.country,B=$.callingCode;this.country=F,this.countryCallingCode=B,this.nationalNumber=T,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return P}}return t4(N,[{key:"setExt",value:function(N){this.ext=N}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:tA(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return tl(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return ty(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){return new eL(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(N){return this.number===N.number&&this.ext===N.ext}},{key:"getType",value:function(){return tm(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(N,I){return tq(this,N,I?t0(t0({},I),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(N){return this.format("NATIONAL",N)}},{key:"formatInternational",value:function(N){return this.format("INTERNATIONAL",N)}},{key:"getURI",value:function(N){return this.format("RFC3966",N)}}])}(),t7=/^\+\d+$/,t9="+",re="(["+X+"]|[\\-\\.\\(\\)]?)",rt=RegExp("^\\"+t9+re+"*["+X+"]"+re+"*$","g"),rr=X,rn=RegExp("^("+("["+rr+"]+((\\-)*["+rr)+"])*\\.)*"+("[a-zA-Z]+((\\-)*["+rr)+"])*\\.?$","g"),ra="tel:",ri=";phone-context=",ro=";isub=";function rs(N){var I=N.indexOf(ri);if(I<0)return null;var T=I+ri.length;if(T>=N.length)return"";var P=N.indexOf(";",T);return P>=0?N.substring(T,P):N.substring(T)}function rl(N){return null===N||0!==N.length&&(rt.test(N)||rn.test(N))}function rc(N,I){var T=I.extractFormattedPhoneNumber,P=rs(N);if(!rl(P))throw new eS("NOT_A_NUMBER");if(null===P)D=T(N)||"";else{D="",P.charAt(0)===t9&&(D+=P);var D,M,R=N.indexOf(ra);M=R>=0?R+ra.length:0;var L=N.indexOf(ri);D+=N.substring(M,L)}var $=D.indexOf(ro);if($>0&&(D=D.substring(0,$)),""!==D)return D}var ru=250,rd=RegExp("["+es+X+"]"),rf=RegExp("[^"+X+"#]+$"),rh=!1;function rp(N,I,T){I=I||{};var P=new eL(T);if(I.defaultCountry&&!P.hasCountry(I.defaultCountry)){if(I.v2)throw new eS("INVALID_COUNTRY");throw Error("Unknown country: ".concat(I.defaultCountry))}var D=rg(N,I.v2,I.extract),M=D.number,R=D.ext,L=D.error;if(!M){if(I.v2){if("TOO_SHORT"===L)throw new eS("TOO_SHORT");throw new eS("NOT_A_NUMBER")}return{}}var $=rb(M,I.defaultCountry,I.defaultCallingCode,P),F=$.country,B=$.nationalNumber,U=$.countryCallingCode,H=$.countryCallingCodeSource,z=$.carrierCode;if(!P.hasSelectedNumberingPlan()){if(I.v2)throw new eS("INVALID_COUNTRY");return{}}if(!B||B.length<J){if(I.v2)throw new eS("TOO_SHORT");return{}}if(B.length>Q){if(I.v2)throw new eS("TOO_LONG");return{}}if(I.v2){var W=new t8(U,B,P.metadata);return F&&(W.country=F),z&&(W.carrierCode=z),R&&(W.ext=R),W.__countryCallingCodeSource=H,W}
1165var q=(I.extended?!!P.hasSelectedNumberingPlan():!!F)&&tu(B,P.nationalNumberPattern());return I.extended?{country:F,countryCallingCode:U,carrierCode:z,valid:q,possible:!!q||!!(!0===I.extended&&P.possibleLengths()&&tc(B,P)),phone:B,ext:R}:q?ry(F,B,R):{}}function rm(N,I,T){if(N){if(N.length>ru){if(T)throw new eS("TOO_LONG");return}if(!1===I)return N;var P=N.search(rd);if(!(P<0))return N.slice(P).replace(rf,"")}}function rg(N,I,T){var P=rc(N,{extractFormattedPhoneNumber:function(N){return rm(N,T,I)}});if(!P)return{};if(!e1(P))return e2(P)?{error:"TOO_SHORT"}:{};var D=e4(P);return D.ext?D:{number:P}}function ry(N,I,T){var P={country:N,phone:I};return T&&(P.ext=T),P}function rb(N,I,T,P){var D,M=tL(te(N),void 0,I,T,P.metadata),R=M.countryCallingCodeSource,L=M.countryCallingCode,$=M.number;if(L)P.selectNumberingPlan(L);else{if(!$||!I&&!T)return{};I?(D=I,P.selectNumberingPlan(I),L=P.numberingPlan.callingCode()):(P.selectNumberingPlan(T),L=T,rh&&P.isNonGeographicCallingCode(L)&&(D="001"))}if(!$)return{countryCallingCodeSource:R,countryCallingCode:L};var F=tP(te($),void 0,P),B=F.nationalNumber,U=F.carrierCode,H=tT(L,{nationalNumber:B,metadata:P});return H&&(D=H,"001"===H||P.selectNumberingPlan(D)),{country:D,countryCallingCode:L,countryCallingCodeSource:R,nationalNumber:B,carrierCode:U}}function rv(N){return(rv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(N){return typeof N}:function(N){return N&&"function"==typeof Symbol&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N})(N)}function rw(N,I){var T=Object.keys(N);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(N);I&&(P=P.filter(function(I){return Object.getOwnPropertyDescriptor(N,I).enumerable})),T.push.apply(T,P)}return T}function rx(N){for(var I=1;I<arguments.length;I++){var T=null!=arguments[I]?arguments[I]:{};I%2?rw(Object(T),!0).forEach(function(I){rA(N,I,T[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(T)):rw(Object(T)).forEach(function(I){Object.defineProperty(N,I,Object.getOwnPropertyDescriptor(T,I))})}return N}function rA(N,I,T){return(I=rE(I))in N?Object.defineProperty(N,I,{value:T,enumerable:!0,configurable:!0,writable:!0}):N[I]=T,N}function rE(N){var I=rS(N,"string");return"symbol"==rv(I)?I:I+""}function rS(N,I){if("object"!=rv(N)||!N)return N;var T=N[Symbol.toPrimitive];if(void 0!==T){var P=T.call(N,I||"default");if("object"!=rv(P))return P;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===I?String:Number)(N)}function r_(N,I,T){return rp(N,rx(rx({},I),{},{v2:!0}),T)}function rk(N){return(rk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(N){return typeof N}:function(N){return N&&"function"==typeof Symbol&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N})(N)}function rC(N,I){var T=Object.keys(N);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(N);I&&(P=P.filter(function(I){return Object.getOwnPropertyDescriptor(N,I).enumerable})),T.push.apply(T,P)}return T}function rj(N){for(var I=1;I<arguments.length;I++){var T=null!=arguments[I]?arguments[I]:{};I%2?rC(Object(T),!0).forEach(function(I){rO(N,I,T[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(T)):rC(Object(T)).forEach(function(I){Object.defineProperty(N,I,Object.getOwnPropertyDescriptor(T,I))})}return N}function rO(N,I,T){return(I=rN(I))in N?Object.defineProperty(N,I,{value:T,enumerable:!0,configurable:!0,writable:!0}):N[I]=T,N}function rN(N){var I=rI(N,"string");return"symbol"==rk(I)?I:I+""}function rI(N,I){if("object"!=rk(N)||!N)return N;var T=N[Symbol.toPrimitive];if(void 0!==T){var P=T.call(N,I||"default");if("object"!=rk(P))return P;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===I?String:Number)(N)}function rT(N,I,T){I&&I.defaultCountry&&!eG(I.defaultCountry,T)&&(I=rj(rj({},I),{},{defaultCountry:void 0}));try{return r_(N,I,T)}catch(N){if(N instanceof eS);else throw N}}function rP(){var N=Y(arguments);return rT(N.text,N.options,N.metadata)}function rD(){return D(rP,arguments)}},72616:(N,I,T)=>{"use strict";T.d(I,{p:()=>W});var P=T(37876),D=T(10409),M=T(56375),R=T(6807),L=T(87273),$=T(47137),F=T(48230),B=T.n(F),U=T(36379);let H=` 1166 flex items-center gap-4 md:gap-6 md:items-start 1167 px-6 py-4 md:py-0 md:px-0 md:pr-6 md:flex-row min-h-24 w-full 1168 border-b-2 border-accent-iron md:border 1169 bg-white md:hover:bg-accent-spring-wood text-brunel-dark-grey 1170 text-d-h4 md:shadow md:focus:outline-dashed md:focus:outline-[1.5px] 1171`,z="w-24 h-16 shrink-0 rounded-xs md:rounded-none md:w-40 md:h-24 object-cover";(0,$.F)(H,{variants:{size:{L:"lg:w-47.5",XL:"lg:w-61.5",XXL:"lg:w-84.5"}}});let W=({image:N,city:I,streetAddress:T,postalCode:$,url:F})=>(0,P.jsxs)(B(),{href:`${F}`,className:(0,U.cn)(H),children:[(0,P.jsx)(L._,{field:N,className:z,alt:"Office Card"}),(0,P.jsxs)(D.a,{className:(0,U.cn)("flex size-full flex-row items-center justify-between gap-1 md:gap-2 md:py-4",!N.value?.src&&"pl-6"),children:[(0,P.jsxs)(D.a,{className:"items-center pt-1 text-brunel-dark-grey md:pt-0",children:[(0,P.jsx)(R.o,{textField:I,className:"w-fit font-medium! underline decoration-3 underline-offset-3 md:no-underline md:hover:underline md:hover:decoration-3 md:hover:underline-offset-3 md:focus:underline md:focus:decoration-3 md:focus:underline-offset-3"}),(0,P.jsx)(R.o,{plainText:`${T.value}, ${$.value}`,className:"text-sm font-normal md:font-normal"})]}),(0,P.jsx)(M.I,{name:"arrow-right",size:"medium",color:"brunel-dark-grey"})]})]})},72679:(N,I,T)=>{"use strict";T.r(I),T.d(I,{Default:()=>L,SiteVerification:()=>R});var P=T(37876),D=T(77328),M=T.n(D);let R=({googleSiteVerification:N,facebookSiteVerification:I})=>{let T=(N,I)=>N?N.split(";").map(N=>N.trim()).map((N,T)=>(0,P.jsx)("meta",{name:I,content:N},`${I}-${T}`)):null;return(0,P.jsxs)(M(),{children:[T(N,"google-site-verification"),T(I,"facebook-domain-verification")]})},L=R},72736:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.unsafeStringify=void 0;let P=T(73593),D=[];for(let N=0;N<256;++N)D.push((N+256).toString(16).slice(1));function M(N,I=0){return(D[N[I+0]]+D[N[I+1]]+D[N[I+2]]+D[N[I+3]]+"-"+D[N[I+4]]+D[N[I+5]]+"-"+D[N[I+6]]+D[N[I+7]]+"-"+D[N[I+8]]+D[N[I+9]]+"-"+D[N[I+10]]+D[N[I+11]]+D[N[I+12]]+D[N[I+13]]+D[N[I+14]]+D[N[I+15]]).toLowerCase()}I.unsafeStringify=M,I.default=function(N,I=0){let T=M(N,I);if(!(0,P.default)(T))throw TypeError("Stringified UUID is invali
1171d");return T}},72773:N=>{N.exports=function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},N.exports.__esModule=!0,N.exports.default=N.exports},72850:(N,I,T)=>{"use strict";T.d(I,{tM:()=>L,Hk:()=>F,Ly:()=>U,NP:()=>B});var P=T(47804);function D(N){if(!N)return;let I=N.trim();if(!I)return;let T=I.toLowerCase();if("undefined"!==T&&"null"!==T)return I}var M=T(11282),R=T(99742);let L="SITECORE_EDGE_PLATFORM_HOSTNAME",$="SITECORE_EXPERIENCE_EDGE_HOSTNAME";function F(N){let I=D(N);if(I)return(0,M.l)(I);let T=D((void 0!==R?R.env:{})[L]);return T?H(T):P.Ty}function B(){if(R){let N=D(R.env[$]);if(N)return H(N)}else console.warn("Attempted to read SITECORE_EXPERIENCE_EDGE_HOSTNAME_ENV from process.env, but process is undefined");return P.Cn}function U(N){return F(N)}function H(N){let I=N.trim();return I.startsWith("https://")||I.startsWith("http://")?(0,M.l)(I):(0,M.l)(`https://${I}`)}},72914:(N,I,T)=>{"use strict";T.d(I,{M:()=>L,a:()=>R});var P=T(14232),D=T(74218),M=T(86056);let R=N=>{var I,T,R,L,$,F,B,U,H;let z=(null==(I=N.params)?void 0:I.ComponentRevision)||N.revisionFallback;if(!N.template&&(!N.params||!N.params.LibraryId||!N.params.ComponentId||!N.params.ComponentVersion||!N.params.ComponentHostName||!z))return null;let W=Object.assign(Object.assign({},N.fetchedData),{_:(0,M.q)(null!=(T=N.fields)?T:{})});return P.createElement(D.Component,{data:W,template:N.template,cdn:null==(R=N.params)?void 0:R.ComponentHostName,library:null!=($=null==(L=N.params)?void 0:L.LibraryId)?$:"",version:null==(F=N.params)?void 0:F.ComponentVersion,component:null!=(U=null==(B=N.params)?void 0:B.ComponentId)?U:"",instance:null==(H=N.params)?void 0:H.ComponentInstanceId,revision:z,fetch:[]})},L=N=>{var I,T;let D=`component feaas ${null==(I=N.params)?void 0:I.styles}`.trimEnd(),M=null==(T=N.params)?void 0:T.RenderingIdentifier;return P.createElement("div",{className:D,id:M||void 0},P.createElement("div",{className:"component-content"},P.createElement(R,Object.assign({},N))))}},72930:(N,I,T)=>{"use strict";T.d(I,{G:()=>R});var P=T(920),D=T(57910),M=T(78961);let R=(N,I,T)=>{let R=(0,P.qL)(T);if(R)return R;let{canonicalUrl:L}=(0,D.U)(N?.pageCanonicalUrl??"",N?.pageHrefLangUrl??[],I);return(0,P.qL)((0,M.K)(L,I))}},72967:(N,I,T)=>{"use strict";T.d(I,{S:()=>R});var P=T(37876),D=T(10409),M=T(36379);let R=({className:N,selected:I=!1,onSelect:T})=>(0,P.jsx)(D.a,{className:(0,M.cn)("flex min-h-4.5 min-w-4.5 cursor-pointer items-center justify-center border border-brunel-dark-grey select-none",{"bg-accent-spring-wood":I}),onClick:T,tabIndex:0,children:(0,P.jsx)("input",{className:(0,M.cn)("checkbox size-2 border-none shadow-none",N),type:"checkbox",checked:I,onChange:()=>{}})})},73317:(N,I,T)=>{"use strict";var P=T(99742);Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0,I.getServerSession=$,I.unstable_getServerSession=F;var D=T(1035),M=T(53992);async function R(N,I,T){var R,L,$,F,B,U,H,z,W;let{nextauth:q,...G}=N.query;null!=(R=T.secret)||(T.secret=null!=(L=null!=($=null==(F=T.jwt)?void 0:F.secret)?$:P.env.NEXTAUTH_SECRET)?L:P.env.AUTH_SECRET);let K=await (0,D.AuthHandler)({req:{body:N.body,query:G,cookies:N.cookies,headers:N.headers,method:N.method,action:null==q?void 0:q[0],providerId:null==q?void 0:q[1],error:null!=(B=N.query.error)?B:null==q?void 0:q[1]},options:T});if(I.status(null!=(U=K.status)?U:200),null==(H=K.cookies)||H.forEach(N=>(0,M.setCookie)(I,N)),null==(z=K.headers)||z.forEach(N=>I.setHeader(N.key,N.value)),K.redirect){if((null==(W=N.body)?void 0:W.json)!=="true"){I.status(302).setHeader("Location",K.redirect),I.end();return}return I.json({url:K.redirect})}return I.send(K.body)}async function L(N,I,R){var L,$,F,B;null!=(L=R.secret)||(R.secret=null!=($=P.env.NEXTAUTH_SECRET)?$:P.env.AUTH_SECRET);let{headers:U,cookies:H}=T(67696),z=null==(F=await I.params)?void 0:F.nextauth,W=Object.fromEntries(N.nextUrl.searchParams),q=await (0,M.getBody)(N),G=await (0,D.AuthHandler)({req:{body:q,query:W,cookies:Object.fromEntries((await H()).getAll().map(N=>[N.name,N.value])),headers:Object.fromEntries(await U()),method:N.method,action:null==z?void 0:z[0],providerId:null==z?void 0:z[1],error:null!=(B=W.error)?B:null==z?void 0:z[1]},options:R}),K=(0,M.toResponse)(G),V=K.headers.get("Location");return(null==q?void 0:q.json)==="true"&&V?(K.headers.delete("Location"),K.headers.set("Content-Type","application/json"),new Response(JSON.stringify({url:V}),{status:G.status,headers:K.headers})):K}async function $(...N){var I,R,L;let F,B,U,H=0===N.length||1===N.length;if(H){U=Object.assign({},N[0],{providers:[]});let{headers:I,cookies:P}=T(67696);F={headers:Object.fromEntries(await I()),cookies:Object.fromEntries((await P()).getAll().map(N=>[N.name,N.value]))},B={getHeader(){},setCookie(){},setHeader(){}}}else F=N[0],B=N[1],U=Object.assign({},N[2],{providers:[]});null!=(R=(I=U).secret)||(I.secret=null!=(L=P.env.NEXTAUTH_SECRET)?L:P.env.AUTH_SECRET);let{body:z,cookies:W,status:q=200}=await (0,D.AuthHandler)({options:U,req:{action:"session",method:"GET",cookies:F.cookies,headers:F.headers}});if(null==W||W.forEach(N=>(0,M.setCookie)(B,N)),z&&"string"!=typeof z&&Object.keys(z).length){if(200===q)return H&&delete z.expires,z;throw Error(z.message)}return null}I.default=function(...N){var I;return 1===N.length?async(I,T)=>null!=T&&T.params?await L(I,T,N[0]):await R(I,T,N[0]):null!=(I=N[1])&&I.params?L(...N):R(...N)};async function F(...N){return await $(...N)}},73323:(N,I,T)=>{"use strict";T.r(I),T.d(I,{useSearchConfiguration:()=>z});var P=T(26777),D=T(14232),M=T(67881),R=T(46615),L=T(85728),$=T(65212),F=T(60409),B=T(98176),U=T(67922),H=T(56556);let z=({fields:N,search:I,searchUrl:T,locale:z,listResults:W})=>{let q=N?.translations?.searchBar,G=N?.filters,{isTablet:K,setHeaderTransparent:V}=(0,D.useContext)(L._t),Y=(0,D.useRef)(!0),J=(0,D.useRef)(null),[Q,Z]=(0,D.useState)(I?.totalCount??0),[X,ee]=(0,D.useState)(I?.publications??[]),[et,er]=(0,D.useState)(1),[en,ea]=(0,D.useState)(I?.facets),[ei,eo]=(0,D.useState)(!1),[es,el]=(0,D.useState)(()=>(0,P.resolveInitialSearchBarData)(T,q,W,I?.totalCount??0)),[ec,eu]=(0,D.useState)(new Map([])),[ed,ef]=(0,D.useState)(new Map([])),[eh,ep]=(0,D.useState)(!1),em=(N,I)=>(0,P.translateFacetValue)(G,N,I),eg=(I,T,D,M,L)=>{let{keyword:H,location:z,distance:W}=D??es,q=(0,P.buildSelectedFiltersQueryObject)(M??ec,T);J.current?.abort();let G=new AbortController;J.current=G,R.P.getAllByPage({page:I?et+1:1,pageSize:B.dn,language:N?.currentLanguage??F.Xn,countryPreset:N?.customCountryPreset??N?.countryPreset??[],businessUnitPreset:N?.bussinessUnitPreset??[],businessLineFilter:N?.bussinesLines??[],sortOrder:es.sortBy,searchText:H.length>=3?H:void 0,locationFilter:{location:z.length>=3?z:void 0,range:z.length>=3?Number(W):void 0},...q},G.signal).then(P=>{G.signal.aborted||(P?.publications?I?(ee([...X,...P.publications]),er(et+1)):(P.facets&&ea(P.facets),P.locationFilter&&el({...D??es,location:es.location}),Z(P?.totalCount??0),ee([...P.publications]),er(1),(0,U.X7)(N?.currentLanguage??F.Xn,D??es,T?new Map([]):L??ed)):""===P&&(Z(0),ee([]),er(1),(0,U.X7)(N?.currentLanguage??F.Xn,D??es,L??ed)))}).catch(()=>{$.A.api("Search Configuration getAllByPage call failed.")})},ey=()=>{M.q.common.searchPageSearchButton({...es}),eg(!1,!1,{...es,resultTitle:(0,P.resolveResultTitle)(W,Q,es.keyword,es.location,es.distance)})};return(0,D.useEffect)(()=>()=>J.current?.abort(),[]),(0,D.useLayoutEffect)(()=>
1171{if(Y.current=!1,T?.normalizedUrl!==""||T?.filters?.length){if(G){let{selectedFilters:N,selectedFiltersTags:I}=(0,P.resolveSelectedFiltersFromUrl)(T?.filters,G);eu(N),ef(I)}eo(!0)}},[]),(0,D.useLayoutEffect)(()=>{ei&&ey()},[ei]),(0,D.useLayoutEffect)(()=>{Y.current||el({...es,resultTitle:(0,P.resolveResultTitle)(W,Q,es.keyword,es.location,es.distance)})},[Q,ec]),(0,H.Dd)({fields:N,locale:z??N?.currentLanguage??F.Xn,searchBarData:es,setSearchBarData:el,selectedFilters:ec,setSelectedFilters:eu,selectedFiltersTags:ed,setSelectedFiltersTags:ef,totalCount:Q,setTotalCount:Z,page:et,setPage:er,setPublications:ee,setFacets:ea,translateFacets:em,listResults:W}),(0,D.useLayoutEffect)(()=>{if(K){let N=document.getElementById("searchBar");return N&&N.classList.remove("search-bar-sticky"),V(!0)}{V(!1);let N=()=>{let N=document.getElementById("searchBar"),I=document.getElementById("searchFilters");if(N){let I=window.scrollY|window.pageYOffset;I>=310?N.classList.add("search-bar-sticky"):I<310&&N.classList.remove("search-bar-sticky")}if(I){let N=window.scrollY|window.pageYOffset;N>=374?I.classList.add("search-bar-filters-sticky"):N<374&&I.classList.remove("search-bar-filters-sticky")}};return N(),window.addEventListener("scroll",N),()=>window.removeEventListener("scroll",N)}},[K,V]),{totalCount:Q,publications:X,page:et,facets:en,searchBarData:es,setSearchBarData:el,selectedFilters:ec,setSelectedFilters:eu,selectedFiltersTags:ed,setSelectedFiltersTags:ef,sideDrawerOpen:eh,setSideDrawerOpen:ep,getPublicationsQuery:eg,onSearch:ey,translateFacets:em}}},73411:(N,I)=>{"use strict";async function T(N){var I,T;let{options:P,sessionStore:D}=N,{adapter:M,events:R,jwt:L,callbackUrl:$,logger:F,session:B}=P,U=null==D?void 0:D.value;if(!U)return{redirect:$};if("jwt"===B.strategy)try{let N=await L.decode({...L,token:U});await (null==(I=R.signOut)?void 0:I.call(R,{token:N}))}catch(N){F.error("SIGNOUT_ERROR",N)}else try{let N=await M.deleteSession(U);await (null==(T=R.signOut)?void 0:T.call(R,{session:N}))}catch(N){F.error("SIGNOUT_ERROR",N)}return{redirect:$,cookies:D.clean()}}Object.defineProperty(I,"__esModule",{value:!0}),I.default=T},73521:(N,I,T)=>{"use strict";T.r(I),T.d(I,{resolveSearchResultUrl:()=>L,resolveShowVacanciesLabel:()=>$,resolveSortByKey:()=>M,resolveSortByMap:()=>D,resolveVacancySalary:()=>F,shouldShowMarketingBanner:()=>R});var P=T(75636);let D=N=>{let I=new Map;return N?.sortByItems?.forEach(N=>I.set(N.key,N.value)),I}
1171,M=(N,I)=>Array.from(N).find(N=>N[1]===I)?.[0],R=(N,I)=>!!N&&N>=1&&N<=10&&I===N-1,L=(N,I,T)=>`${N?.toSlug(T)}-${I}`.toLowerCase(),$=(N,I,T,P)=>N?.capitalize()?.replace(" ",` ${Math.min(T,P-I*T)} `),F=(N,I,T)=>(0,P.HC)((0,P.ku)(N,I,T),!0)},73593:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});let P=T(27198);I.default=function(N){return"string"==typeof N&&P.default.test(N)}},73813:(N,I,T)=>{"use strict";T.d(I,{GR:()=>M,JE:()=>F,Np:()=>L,jz:()=>R,tX:()=>D});let P=N=>{let I=N.Value;if(I&&"object"==typeof I&&null!==I&&"value"in I){let N=I.value;if("string"==typeof N)return N}if("string"==typeof N.value)return N.value};function D(N){if(null!=N){if("string"==typeof N)return N;if("object"==typeof N)return P(N)}}function M(N,I,T){if(!N||!I)return T;let P=N[I];if(P&&void 0!==P.value)return P.value;let D=N;return D.fields&&D.fields[I]&&void 0!==D.fields[I].value?D.fields[I].value:T}let R=N=>RegExp(`^${N.replace(/\{\*\}+/i,"\\d+")}$`),L=N=>-1!==N.indexOf("{*}"),$="0001-01-01T00:00:00Z";function F(N){if(!N)return!0;let I=N=>!N.src,T=N=>!N.src,P=N=>!N.href,D=N=>"string"==typeof N?N===$:!("function"==typeof(null==N?void 0:N.getMonth)&&!isNaN(null==N?void 0:N.getMonth())),M=N=>null==N||("object"==typeof N?I(N)&&T(N)&&P(N)&&D(N):"number"!=typeof N&&"boolean"!=typeof N&&(!N||D(N))),R=N;return M(void 0!==R.value?R.value:N)}},74120:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.updateV7State=void 0;let P=T(36592),D=T(72736),M={};function R(N,I,T){let R;if(N)R=$(N.random??N.rng?.()??(0,P.default)(),N.msecs,N.seq,I,T);else{let N=Date.now(),D=(0,P.default)();L(M,N,D),R=$(D,M.msecs,M.seq,I,T)}return I??(0,D.unsafeStringify)(R)}function L(N,I,T){return N.msecs??=-1/0,N.seq??=0,I>N.msecs?(N.seq=T[6]<<23|T[7]<<16|T[8]<<8|T[9],N.msecs=I):(N.seq=N.seq+1|0,0===N.seq&&N.msecs++),N}function $(N,I,T,P,D=0){if(N.length<16)throw Error("Random bytes length must be >= 16");if(P){if(D<0||D+16>P.length)throw RangeError(`UUID byte range ${D}:${D+15} is out of buffer bounds`)}else P=new Uint8Array(16),D=0;return I??=Date.now(),T??=127*N[6]<<24|N[7]<<16|N[8]<<8|N[9],P[D++]=I/0x10000000000&255,P[D++]=I/0x100000000&255,P[D++]=I/0x1000000&255,P[D++]=I/65536&255,P[D++]=I/256&255,P[D++]=255&I,P[D++]=112|T>>>28&15,P[D++]=T>>>20&255,P[D++]=128|T>>>14&63,P[D++]=T>>>6&255,P[D++]=T<<2&255|3&N[10],P[D++]=N[11],P[D++]=N[12],P[D++]=N[13],P[D++]=N[14],P[D++]=N[15],P}I.updateV7State=L,I.default=R},74218:(N,I,T)=>{"use strict";T.r(I),T.d(I,{Component:()=>rf,ComponentProps:()=>tL,Context:()=>t4,ControlledPromise:()=>tn,DEFAULT_CDN_URL:()=>ty,DOM:()=>K,DataPath:()=>eI,DataScope:()=>V,DataSettings:()=>e7,Element:()=>ti,External:()=>t8,ExternalComponent:()=>rc,ExternalComponentBundle:()=>rl,FEAASComponent:()=>t$,FEAASComponentsProps:()=>tL,FEAASContext:()=>t4,FEAASContextProps:()=>t3,FEAASEditor:()=>t0,FEAASEditorProps:()=>tX,FEAASElement:()=>ti,FEAASExternalPropsObject:()=>t5,FEAASLoader:()=>tB,FEAASLoaderProps:()=>tF,FEAASPicker:()=>t2,FEAASPickerProps:()=>t1,FEAASReactComponent:()=>ra,FEAASReactServerComponent:()=>rn,FEAASReactStylesheet:()=>rr,FEAASStylesheet:()=>tH,FEAASStylesheetProps:()=>tU,HTMLNodeToReact:()=>ri,InvalidResponse:()=>tp,JSONPath:()=>ew,Loader:()=>tB,MyComponent:()=>ts,NextExternalComponent:()=>rd,Picker:()=>t2,ReactExternalComponent:()=>ru,ServerComponent:()=>rh,Stylesheet:()=>rp,Thumbnail:()=>tz,WebComponent:()=>ta,adjustNumbers:()=>eL,autoloadScripts:()=>eO,cleanCollectionBit:()=>eM,clearFetchCache:()=>tu,createStylesheet:()=>tP,customizeDataSettings:()=>D.H5,enableNextClientsideComponents:()=>ro,fetchAndRevalidate:()=>td,fetchAndRevalidateComponent:()=>tS,fetchAndRevalidateStylesheet:()=>tk,fetchBypassingCache:()=>tg,fetchCache:()=>tc,fetchComponent:()=>t_,fetchData:()=>te,fetchToValidateCache:()=>tm,fetchWithCacheAwareness:()=>tf,findStylesheet:()=>tT,getComponent:()=>D.QQ,getComponentSource:()=>tv,getComponentURL:()=>tA,getFetchCache:()=>th,getFramePosition:()=>tZ,getHumanizedLabel:()=>e$,getLastPathBit:()=>eF,getQualifier:()=>eD,getStylesheetSource:()=>tw,getStylesheetURL:()=>tE,linkComponents:()=>t7,loadScript:()=>eN,loadStylesheet:()=>tN,loadStylesheetAllowStale:()=>tI,normalizeCollectionScope:()=>eR,normalizeFetchAttribute:()=>rt,observeDOMElement:()=>ej,parseComponentSource:()=>tb,parseLimit:()=>eT,parseRange:()=>eP,parseStylesheetSource:()=>tx,queryObject:()=>eS,queryObjectRaw:()=>eE,queryScopes:()=>e_,registerComponent:()=>D.Nj,registerDatasource:()=>D.Ll,renderComponent:()=>tM,renderComponentElement:()=>tD,renderComponentPromise:()=>tR,renderDOMContent:()=>eY,renderDOMElement:()=>eK,renderHTMLContent:()=>
1171e3,renderStylesheet:()=>tC,renderStylesheetPromise:()=>tj,serializeCH1RichText:()=>eC,setContextProperties:()=>rs,setDOMAttribute:()=>eq,setElementImplementation:()=>re});var P,D=T(81548),M=T(14232),R=function(N,I){var T={};for(var P in N)Object.prototype.hasOwnProperty.call(N,P)&&0>I.indexOf(P)&&(T[P]=N[P]);if(null!=N&&"function"==typeof Object.getOwnPropertySymbols)for(var D=0,P=Object.getOwnPropertySymbols(N);D<P.length;D++)0>I.indexOf(P[D])&&Object.prototype.propertyIsEnumerable.call(N,P[D])&&(T[P[D]]=N[P[D]]);return T},L=null,$=null;function F(N){let{componentName:I,clientFallback:T}=N,P=R(N,["componentName","clientFallback"]),F=null==(H=(0,D.QQ)(I))?void 0:H.component,B=M.useMemo(()=>M.createElement(z,Object.assign({},P,{componentName:I})),[]),U=M.useMemo(()=>$(()=>Promise.resolve(L),{ssr:!1,loading:()=>B}),[]);var H,W="u"<typeof window?JSON.parse(JSON.stringify(P)):P;return M.createElement(U,Object.assign({},W,{componentName:I,fallbackWrapper:!F,fallback:F?B:T?M.createElement($(()=>Promise.resolve(()=>T),{ssr:!1})):N.fallback}))}function B(N,I){return $=N,L=I,I}function U(N){return 0==Object.keys(N).length?M.createElement(M.Fragment,null):$&&!N._dynamic?F(Object.assign({_dynamic:!0},N)):z(N)}function H(){return M.createElement(M.Fragment,null,M.createElement("byoc-registration",{components:JSON.stringify(Object.values(D.HZ)),datasources:JSON.stringify(Object.values(D.fZ)),suppressHydrationWarning:!0}),M.createElement(L,null))}function z(N){let{componentName:I,fallback:T,fallbackWrapper:P}=N,R=(0,D.QQ)(I),L=null==R?void 0:R.component,{attributes:$,properties:F,merged:B}=(0,D.Rf)(N);if(!L&&T||!I)return!1===P?M.createElement(M.Fragment,null,T):M.createElement("feaas-external",Object.assign({},$,{hydrate:"false"}),T);if(R&&L&&(0,D.eW)(L)){let N="byoc-"+(0,D.fX)(R.id);return M.createElement(N,Object.assign(Object.assign({},$),{ref:I=>{var T;I&&"u">typeof window&&(null==(T=window.customElements)||T.whenDefined(N).then(()=>{var N;null==(N=I.sitecoreContextCallback)||N.call(I,Object.assign({},B))}))}}))}return M.createElement(M.Fragment,null,M.createElement("feaas-external",Object.assign({},$,{hydrate:"false"}),null==L?null:M.createElement(L,Object.assign({},B))))}var W=T(98477),q=Object.defineProperty,G=(N,I)=>{for(var T in I)q(N,T,{get:I[T],enumerable:!0})},K={};G(K,{renderDOMContent:()=>eY,renderDOMElement:()=>eK,renderHTMLContent:()=>eJ,setDOMAttribute:()=>eq});var V={};function Y(N){return(Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(N){return typeof N}:function(N){return N&&"function"==typeof Symbol&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N})(N)}function J(N,I){if(!(N instanceof I))throw TypeError("Cannot call a class as a function")}function Q(N,I){for(var T=0;T<I.length;T++){var P=I[T];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(N,P.key,P)}}function Z(N,I,T){return I&&Q(N.prototype,I),T&&Q(N,T),Object.defineProperty(N,"prototype",{writable:!1}),N}function X(N,I){if("function"!=typeof I&&null!==I)throw TypeError("Super expression must either be null or a function");N.prototype=Object.create(I&&I.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),Object.defineProperty(N,"prototype",{writable:!1}),I&&et(N,I)}function ee(N){return(ee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(N){return N.__proto__||Object.getPrototypeOf(N)})(N)}function et(N,I){return(et=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(N,I){return N.__proto__=I,N})(N,I)}function er(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function en(N,I,T){return(en=er()?Reflect.construct.bind():function(N,I,T){var P=[null];P.push.apply(P,I);var D=new(Function.bind.apply(N,P));return T&&et(D,T.prototype),D}).apply(null,arguments)}function ea(N){return -1!==Function.toString.call(N).indexOf("[native code]")}function ei(N){var I="function"==typeof Map?new Map:void 0;return(ei=function(N){if(null===N||!ea(N))return N;if("function"!=typeof N)throw TypeError("Super expression must either be null or a function");if("u">typeof I){if(I.has(N))return I.get(N);I.set(N,T)}function T(){return en(N,arguments,ee(this).constructor)}return T.prototype=Object.create(N.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),et(T,N)})(N)}function eo(N){if(void 0===N)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function es(N,I){if(I&&("object"==typeof I||"function"==typeof I))return I;if(void 0!==I)throw TypeError("Derived constructors may only return object or undefined");return eo(N)}function el(N){var I=er();return function(){var T,P=ee(N);return T=I?Reflect.construct(P,arguments,ee(this).constructor):P.apply(this,arguments),es(this,T)}}function ec(N){return eu(N)||ed(N)||ef(N)||ep()}function eu(N){if(Array.isArray(N))return eh(N)}function ed(N){if("u">typeof Symbol&&null!=N[Symbol.iterator]||null!=N["@@iterator"])return Array.from(N)}function ef(N,I){if(N){if("string"==typeof N)return eh(N,I);var T=Object.prototype.toString.call(N).slice(8,-1);if("Object"===T&&N.constructor&&(T=N.constructor.name),"Map"===T||"Set"===T)return Array.from(N);if("Arguments"===T||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T))return eh(N,I)}}function eh(N,I){(null==I||I>N.length)&&(I=N.length);for(var T=0,P=Array(I);T<I;T++)P[T]=N[T];return P}function ep(){throw TypeError(`Invalid attempt to spread non-iterable instance. 1172In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function em(N,I){var T="u">typeof Symbol&&N[Symbol.iterator]||N["@@iterator"];if(!T){if(Array.isArray(N)||(T=ef(N))||I&&N&&"number"==typeof N.length){T&&(N=T);var P=0,D=function(){};return{s:D,n:function(){return P>=N.length?{done:!0}:{done:!1,value:N[P++]}},e:function(N){throw N},f:D}}throw TypeError(`Invalid attempt to iterate non-iterable instance. 1173In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var M,R=!0,L=!1;return{s:function(){T=T.call(N)},n:function(){var N=T.next();return R=N.done,N},e:function(N){L=!0,M=N},f:function(){try{R||null==T.return||T.return()}finally{if(L)throw M}}}}G(V,{JSONPath:()=>ew,queryObject:()=>eS,queryObjectRaw:()=>eE,queryScopes:()=>e_,serializeCH1RichText:()=>eC});var eg=Object.prototype.hasOwnProperty;function ey(N,I){return(N=N.slice()).push(I),N}function eb(N,I){return(I=I.slice()).unshift(N),I}var ev=function(N){X(T,N);var I=el(T);function T(N){var P;
1173return J(this,T),(P=I.call(this,'JSONPath should not be called with "new" (it prevents return of (unwrapped) scalar values)')).avoidNew=!0,P.value=N,P.name="NewError",P}return Z(T)}(ei(Error));function ew(N,I,T,P,D){if(!(this instanceof ew))try{return new ew(N,I,T,P,D)}catch(N){if(!N.avoidNew)throw N;return N.value}"string"==typeof N&&(D=P,P=T,T=I,I=N,N=null);var M=N&&"object"===Y(N);if(N=N||{},this.json=N.json||T,this.path=N.path||I,this.resultType=N.resultType||"value",this.flatten=N.flatten||!1,this.wrap=!eg.call(N,"wrap")||N.wrap,this.sandbox=N.sandbox||{},this.preventEval=N.preventEval||!1,this.parent=N.parent||null,this.parentProperty=N.parentProperty||null,this.callback=N.callback||P||null,this.otherTypeCallback=N.otherTypeCallback||D||function(){throw TypeError("You must supply an otherTypeCallback callback option with the @other() operator.")},!1!==N.autostart){var R={path:M?N.path:I};M?"json"in N&&(R.json=N.json):R.json=T;var L=this.evaluate(R);if(!L||"object"!==Y(L))throw new ev(L);return L}}ew.prototype.evaluate=function(N,I,T,P){var D=this,M=this.parent,R=this.parentProperty,L=this.flatten,$=this.wrap;if(this.currResultType=this.resultType,this.currPreventEval=this.preventEval,this.currSandbox=this.sandbox,T=T||this.callback,this.currOtherTypeCallback=P||this.otherTypeCallback,I=I||this.json,(N=N||this.path)&&"object"===Y(N)&&!Array.isArray(N)){if(!N.path&&""!==N.path)throw TypeError('You must supply a "path" property when providing an object argument to JSONPath.evaluate().');if(!eg.call(N,"json"))throw TypeError('You must supply a "json" property when providing an object argument to JSONPath.evaluate().');I=N.json,L=eg.call(N,"flatten")?N.flatten:L,this.currResultType=eg.call(N,"resultType")?N.resultType:this.currResultType,this.currSandbox=eg.call(N,"sandbox")?N.sandbox:this.currSandbox,$=eg.call(N,"wrap")?N.wrap:$,this.currPreventEval=eg.call(N,"preventEval")?N.preventEval:this.currPreventEval,T=eg.call(N,"callback")?N.callback:T,this.currOtherTypeCallback=eg.call(N,"otherTypeCallback")?N.otherTypeCallback:this.currOtherTypeCallback,M=eg.call(N,"parent")?N.parent:M,R=eg.call(N,"parentProperty")?N.parentProperty:R,N=N.path}if(M=M||null,R=R||null,Array.isArray(N)&&(N=ew.toPathString(N)),!(!N&&""!==N||!I)){var F=ew.toPathArray(N);"$"===F[0]&&F.length>1&&F.shift(),this._hasParentSelector=null;var B=this._trace(F,I,["$"],M,R,T).filter(function(N){return N&&!N.isParentSelector});return B.length?$||1!==B.length||B[0].hasArrExpr?B.reduce(function(N,I){var T=D._getPreferredOutput(I);return L&&Array.isArray(T)?N=N.concat(T):N.push(T),N},[]):this._getPreferredOutput(B[0]):$?[]:void 0}},ew.prototype._getPreferredOutput=function(N){var I=this.currResultType;switch(I){case"all":var T=Array.isArray(N.path)?N.path:ew.toPathArray(N.path);return N.pointer=ew.toPointer(T),N.path="string"==typeof N.path?N.path:ew.toPathString(N.path),N;case"value":case"parent":case"parentProperty":return N[I];case"path":return ew.toPathString(N[I]);case"pointer":return ew.toPointer(N.path);default:throw TypeError("Unknown result type")}},ew.prototype._handleCallback=function(N,I,T){if(I){var P=this._getPreferredOutput(N);N.path="string"==typeof N.path?N.path:ew.toPathString(N.path),I(P,T,N)}},ew.prototype._trace=function(N,I,T,P,D,M,R,L){var $,F=this;if(!N.length)return $={path:T,value:I,parent:P,parentProperty:D,hasArrExpr:R},this._handleCallback($,M,"value"),$;var B=N[0],U=N.slice(1),H=[];function z(N){Array.isArray(N)?N.forEach(function(N){H.push(N)}):H.push(N)}if(("string"!=typeof B||L)&&I&&eg.call(I,B))z(this._trace(U,I[B],ey(T,B),I,B,M,R));else if("*"===B)this._walk(I,function(N){z(F._trace(U,I[N],ey(T,N),I,N,M,!0,!0))});else if(".."===B)z(this._trace(U,I,T,P,D,M,R)),this._walk(I,function(P){"object"===Y(I[P])&&z(F._trace(N.slice(),I[P],ey(T,P),I,P,M,!0))});else{if("^"===B)return this._hasParentSelector=!0,{path:T.slice(0,-1),expr:U,isParentSelector:!0};if("~"===B)return $={path:ey(T,B),value:D,parent:P,parentProperty:null},this._handleCallback($,M,"property"),$;if("$"===B)z(this._trace(U,I,T,null,null,M,R));
1173else if(/^(\x2D?[0-9]*):(\x2D?[0-9]*):?([0-9]*)$/.test(B))z(this._slice(B,U,I,T,P,D,M));else if(0===B.indexOf("?(")){if(this.currPreventEval)throw Error("Eval [?(expr)] prevented in JSONPath expression.");var W=B.replace(/^\?\(((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?)\)$/,"$1");this._walk(I,function(N){F._eval(W,I[N],N,T,P,D)&&z(F._trace(U,I[N],ey(T,N),I,N,M,!0))})}else if("("===B[0]){if(this.currPreventEval)throw Error("Eval [(expr)] prevented in JSONPath expression.");z(this._trace(eb(this._eval(B,I,T[T.length-1],T.slice(0,-1),P,D),U),I,T,P,D,M,R))}else if("@"===B[0]){var q=!1,G=B.slice(1,-2);switch(G){case"scalar":I&&["object","function"].includes(Y(I))||(q=!0);break;case"boolean":case"string":case"undefined":case"function":Y(I)===G&&(q=!0);break;case"integer":Number.isFinite(I)&&!(I%1)&&(q=!0);break;case"number":Number.isFinite(I)&&(q=!0);break;case"nonFinite":"number"!=typeof I||Number.isFinite(I)||(q=!0);break;case"object":I&&Y(I)===G&&(q=!0);break;case"array":Array.isArray(I)&&(q=!0);break;case"other":q=this.currOtherTypeCallback(I,T,P,D);break;case"null":null===I&&(q=!0);break;default:throw TypeError("Unknown value type "+G)}if(q)return $={path:T,value:I,parent:P,parentProperty:D},this._handleCallback($,M,"value"),$}else if("`"===B[0]&&I&&eg.call(I,B.slice(1))){var K=B.slice(1);z(this._trace(U,I[K],ey(T,K),I,K,M,R,!0))}else if(B.includes(",")){var V,J=em(B.split(","));try{for(J.s();!(V=J.n()).done;){var Q=V.value;z(this._trace(eb(Q,U),I,T,P,D,M,!0))}}catch(N){J.e(N)}finally{J.f()}}else!L&&I&&eg.call(I,B)&&z(this._trace(U,I[B],ey(T,B),I,B,M,R,!0))}if(this._hasParentSelector)for(var Z=0;Z<H.length;Z++){var X=H[Z];if(X&&X.isParentSelector){var ee=this._trace(X.expr,I,X.path,P,D,M,R);if(Array.isArray(ee)){H[Z]=ee[0];for(var et=ee.length,er=1;er<et;er++)Z++,H.splice(Z,0,ee[er])}else H[Z]=ee}}return H},ew.prototype._walk=function(N,I){if(Array.isArray(N))for(var T=N.length,P=0;P<T;P++)I(P);else N&&"object"===Y(N)&&Object.keys(N).forEach(function(N){I(N)})},ew.prototype._slice=function(N,I,T,P,D,M,R){if(Array.isArray(T)){var L=T.length,$=N.split(":"),F=$[2]&&Number.parseInt($[2])||1,B=$[0]&&Number.parseInt($[0])||0,U=$[1]&&Number.parseInt($[1])||L;B=B<0?Math.max(0,B+L):Math.min(L,B),U=U<0?Math.max(0,U+L):Math.min(L,U);for(var H=[],z=B;z<U;z+=F)this._trace(eb(z,I),T,P,D,M,R,!0).forEach(function(N){H.push(N)});return H}},ew.prototype._eval=function(N,I,T,P,D,M){this.currSandbox._$_parentProperty=M,this.currSandbox._$_parent=D,this.currSandbox._$_property=T,this.currSandbox._$_root=this.json,this.currSandbox._$_v=I;var R=N.includes("@path");R&&(this.currSandbox._$_path=ew.toPathString(P.concat([T])));var L="script:"+N;if(!ew.cache[L]){var $=N.replace(/@parentProperty/g,"_$_parentProperty").replace(/@parent/g,"_$_parent").replace(/@property/g,"_$_property").replace(/@root/g,"_$_root").replace(/@([\t-\r \)\.\[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF])/g,"_$_v$1");R&&($=$.replace(/@path/g,"_$_path")),ew.cache[L]=new this.vm.Script($)}try{return ew.cache[L].runInNewContext(this.currSandbox)}catch(I){throw Error("jsonPath: "+I.message+": "+N)}},ew.cache={},ew.toPathString=function(N){for(var I=N,T=I.length,P="$",D=1;D<T;D++)/^(~|\^|@(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?\(\))$/.test(I[D])||(P+=/^[\*0-9]+$/.test(I[D])?"["+I[D]+"]":"['"+I[D]+"']");return P},ew.toPointer=function(N){for(var I=N,T=I.length,P="",D=1;D<T;D++)/^(~|\^|@(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?\(\))$/.test(I[D])||(P+="/"+I[D].toString().replace(/~/g,"~0").replace(/\//g,"~1"));return P},ew.toPathArray=function(N){var I=ew.cache;if(I[N])return I[N].concat();var T=[],P=N.replace(/@(?:null|boolean|number|string|integer|undefined|nonFinite|scalar|array|object|function|other)\(\)/g,";$&;").replace(/['\[](\??\((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?\))['\]]/g,function(N,I){return"[#"+(T.push(I)-1)+"]"}).replace(/\[["']((?:(?!['\]])[\s\S])*)["']\]/g,function(N,I){return"['"+I.replace(/\./g,"%@%").replace(/~/g,"%%@@%%")+"']"}).replace(/~/g,";~;").replace(/["']?\.["']?(?!(?:(?!\[)[\s\S])*\])|\[["']?/g,";").replace(/%@%/g,".").replace(/%%@@%%/g,"~").replace(/(?:;)?(\^+)(?:;)?/g,function(N,I){return";"+I.split("").join(";")+";"}).replace(/;;;|;;/g,";..;").replace(/;$|'?\]|'$/g,"").split(";").map(function(N){var I=N.match(/#([0-9]+)/);return I&&I[1]?T[I[1]]:N});return I[N]=P,I[N].concat()};var ex=function(N,I,T){for(var P=N.length,D=0;D<P;D++)T(N[D])&&I.push(N.splice(D--,1)[0])},eA=function(){function N(I){J(this,N),this.code=I}return Z(N,[{key:"runInNewContext",value:function(N){var I=this.code,T=Object.keys(N),P=[];ex(T,P,function(I){return"function"==typeof N[I]});var D=T.map(function(I,T){return N[I]});I=P.reduce(function(I,T){var P=N[T].toString();return/function/.test(P)||(P="function "+P),"var "+T+"="+P+";"+I}
1173,"")+I,/(["'])use strict\1/.test(I)||T.includes("arguments")||(I="var arguments = undefined;"+I);var M=(I=I.replace(/;[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*$/,"")).lastIndexOf(";"),R=M>-1?I.slice(0,M+1)+" return "+I.slice(M+1):" return "+I;return en(Function,T.concat([R])).apply(void 0,ec(D))}}]),N}();function eE(N,I){try{return ew({path:I,json:N})}catch(N){return[]}}function eS(N,I,T=!0){let P=eE(N,I)||[];return T?P.flat(1/0):P}function e_(N,I,T=!1,P=N,D=!0){var M=I;for(let D of Object.keys(N).sort((N,I)=>I.length-N.length))if(I.startsWith(D)){if(D==I){if(T)return N[D];continue}M=I.substring(D.length+1),P=N[D];break}var R=eS(P,M,D);return 0==R.length&&(R=[M.replace(/^.*?\./,"_."),M.replace(/^.*?\./,""),M.replace(/^([^.]+).*?\.\$([\.\[])/,"$1$2"),M.replace(/^.*?\.\$([\.\[])/,"_$1"),M.replace(/^.*?\.\$([\.\[])/,"$$$1"),M.replace(/^[^.]+$/,"_")].filter((N,I,T)=>T.indexOf(N)===I).reduce((N,I)=>N.length>0?N:eS(P,I,D),[])),T?R[0]:R}function ek(N,I={},T){return T?`<${T}${Object.entries(I).map(([N,I])=>null!=I&&` ${N}="${I}"`).filter(Boolean).join("")}>${eC(N)}</${T}>`.replace(/^<([a-z0-9][^>]*)><\/[^>]+>$/,"<$1 />"):eC(N)}function eC(N){var I;if(Array.isArray(N))return N.map(eC).join(` 1174`).trim();if("string"==typeof N)return N;if(null==N)return"";switch(N.type){case"heading":let{level:T,...P}=N.attrs;return ek(N.content,P,"h"+T);case"text":return(N.marks||[]).reduce((N,I)=>ek(N,I.attrs,{link:"a",bold:"strong",italic:"em",strike:"s",underline:"u"}[I.type]),null==(I=N.text)?void 0:I.replace(/\s+/," "));default:return ek(N.content||N.text,N.attrs,{bulletList:"ul",orderedList:"ol",listItem:"li",horizontalRule:"hr",paragraph:"p",codeBlock:"code",blockquote:"blockquote"}[N.type])}}function ej(N){let I=new N.ownerDocument.defaultView.MutationObserver(N=>{N.forEach(N=>{let I=N.target,T=I.getAttribute("data-embed-src");T&&eN(I,T),N.addedNodes&&N.addedNodes.forEach(N=>{1==N.nodeType&&eO(N,!1)})})});return I.observe(N,{attributes:!0,subtree:!0,childList:!0}),I}function eO(N,I=!0){let T=N.querySelectorAll("[data-embed-src]");for(var P=0;P<T.length;P++){let N=T[P];eN(N,N.getAttribute("data-embed-src"))}if(I)return ej(N)}function eN(N,I){for(var T=N;T;T=T.parentElement)if(!T.parentElement){let N=T.querySelectorAll("script");for(var P=0;P<N.length;P++)if(N[P].getAttribute("src")==I)return!0;"HTML"==T.tagName&&(T=T.querySelector("head")||T);let D=T.ownerDocument.createElement("script");D.setAttribute("type","module"),D.setAttribute("src",I),T.appendChild(D);break}}ew.prototype.vm={Script:eA};var eI={};G(eI,{adjustNumbers:()=>eL,cleanCollectionBit:()=>eM,getHumanizedLabel:()=>e$,getLastPathBit:()=>eF,getQualifier:()=>eD,normalizeCollectionScope:()=>eR,parseLimit:()=>eT,parseRange:()=>eP});var eT=N=>{var I;let T=parseInt(null==(I=null==N?void 0:N.match(/\[0:(\d+)\]/))?void 0:I[1],10);return!isNaN(T)&&T>0?String(T):null},eP=N=>{var I;let T=null==(I=null==N?void 0:N.match(/\[([^\]]+)\]/))?void 0:I[1].split(/\s*,\s*/g).filter(Boolean).map(N=>{if(N.match(/^-?\d+$/))return N;let I=N.match(/^(\d+):(\d+)$/);return I&&parseInt(I[1],10)<parseInt(I[2],10)?I[1]+"-"+I[2]:null});
1174return null!=T&&T.every(Boolean)?T.join(","):null},eD=N=>{var I;return null==(I=null==N?void 0:N.match(/(\.\*|\[[^\]]*\])$/))?void 0:I[0]};function eM(N){return N.replace(/(\.?\[[^\]\[]*\]|\.\*)$/g,"")}function eR(N){return eM(N)+".*"}function eL(N,I){return null==N?void 0:N.replace(/(.|^)(\d+)/g,(N,T,P)=>T+(":"==T?P:String(parseInt(P)+I)))}function e$(N,I=2){var T=eM(N).split(/]\.|\.\*\./g).pop().split(/\./g).slice(-3);return(T=T.filter(N=>isNaN(parseInt(N)))).map(N=>N.charAt(0).toUpperCase()+N.slice(1)).slice(-I).join(" ")}function eF(N){return eM(N).split(".").pop()}var eB=["January","February","March","April","May","June","July","August","September","October","November","December"],eU=N=>{if(!N||"function"!=typeof N.getDay)return;let I=N.getFullYear(),T=eB[N.getMonth()],P=N.getDate();return`${T} ${P}, ${I}`},eH=function(N){return"Invalid Date"!==String(new Date(N))&&!isNaN(Number(new Date(N)))};function ez(N){let I=N.getAttribute("data-path-scope");for(var T=0,P=N;P=P.previousElementSibling;)P.getAttribute("data-path-scope")==I&&T++;return T}function eW(N,I,T){let P=N.getAttribute("data-path-scope");if(null==P)return;var D=ez(N);if(0!=D)return;let M=N.parentNode;if(null!=M){0==I?N.setAttribute("hidden","hidden"):null!=N.getAttribute("hidden")&&N.removeAttribute("hidden");for(var R=D+1,L=N,$=N;$=$.nextElementSibling;)$.getAttribute("data-path-scope")==P&&(R++,L=$);for(var F=R;F<I;F++)M.insertBefore(L.cloneNode(!0),L.nextElementSibling);for(var F=Math.max(1,I);F<R;F++)L=L.previousElementSibling,M.removeChild(L.nextElementSibling)}}function eq(N,I,T,P,D=!0){if(N){var M,R,L,$=N;(null==T?void 0:T.type)=="doc"&&Array.isArray(T.content)&&(T=eC(T)),null!=P&&P.processValue&&(T=null==P?void 0:P.processValue(N,I,T));var F=I.replace("data-path-","");if("data-path-src"==I||"data-path-alt"==I){let I=Array.from(N.children).find(N=>"picture"==N.localName)||N;$="img"==N.localName?N:I.querySelector("img, video")}else if("data-path-href"==I)$=N.querySelector("a")||N.closest("a");else if("data-path-hidden"==I)T=!T||null;else if("data-path"==I||"data-embed-html"==I||"html"==I)F="innerHTML";else if("data-embed-src"==I&&D)eN(N,T);else if("data-path-attributes"==I){if(!Array.isArray(T)){let I=(null==(M=N.getAttribute("data-attributes-keys"))?void 0:M.split(",").filter(Boolean))||[];if(!Array.isArray(T))for(var B in T){var U=T[B];eq(N,B,"object"==typeof U&&U?JSON.stringify(U):U,P,D)}for(var H=0;H<I.length;H++)null!=T&&I[H]in T||eq(N,I[H],null,P,D);eq(N,"data-attributes-keys",Object.keys(T||{}).join(","),{},D)}if("FEAAS-EXTERNAL"==N.tagName){let I=String(N.getAttribute("data-path-attributes")||"").slice(0,-1).split(".")[0]||"_";eq(N,"datasources",JSON.stringify({[I]:T}),{},D)}return}if("boolean"==typeof T&&"hidden"!==F&&(T=T?"":null),$)if(("innerHTML"==F||"src"==F)&&(null==T||""===T)){var z=String(null!=(L=null!=(R=N.getAttribute("data-path-placeholder")||$[F])?R:$.getAttribute(F))?L:"");"innerHTML"==F?$.innerHTML=z:z?$.setAttribute(F,z):$.removeAttribute(F)}else if(null!=T)if("innerHTML"==F){for(var W=String(T),q=$;q.parentElement&&q.localName.match(/^(a|var|strong|em|i|b)$/);)q=q.parentElement;q.localName.match(/p|h\d|button|time|li/)&&(W=W.replace(/<(p|h\d|li|ul)[^>]*?>|<\/(p|h\d|li|ul)[^>]*?>/g," ").trim().replace(/\s+/g," ")),String(q.getAttribute("class")).includes("-inline--time")&&eH(W)&&(W=eU(new Date(W))),$.innerHTML!=W&&($.innerHTML=W)}else $.getAttribute(F)!=T&&$.setAttribute(F,T);else $.removeAttribute(F)}}var eG=["data-attributes-keys","data-path-attributes","data-path-scope"];function eK(N,I,T,P,D=!0){let M=N;if(P||(I=(null==(L=null==T?void 0:T.processData)?void 0:L.call(T,M,I))||I),1==M.nodeType){let N=M.getAttribute("data-path-scope");if(N){let P=ez(M),D=e_(I,N,!1);0==P&&eW(M,(null==($=null==T?void 0:T.shouldRepeat)?void 0:$.call(T,M,D))===!1?1:D.length,T),I={...I,[eR(N)]:D[P]}}let P=Array.prototype.slice.call(M.attributes).sort((N,I)=>eG.indexOf(N.name)-eG.indexOf(I.name));for(var R=0;R<P.length;R++){let{name:N,value:L}=P[R];N.startsWith("data-path")&&"data-path-scope"!=N&&eq(M,N,e_(I,L,!0,void 0,"FEAAS-EXTERNAL"!=M.tagName),T,D),"data-embed-src"==N&&eq(M,N,M.getAttribute(N),T,D)}}for(var L,$,F,B,R=0;B=M.childNodes[R++];)eV(B)&&eK(B,I,T,!0,D);return P||null==(F=null==T?void 0:T.onRender)||F.call(T,M,I),M}function eV(N){return 1==N.nodeType}function eY(N,I,T,P,D=!0){let M=(null==(R=null==P?void 0:P.processTemplate)?void 0:R.call(P,N,I,T))||I;if(N.innerHTML=M,N.classList.add("-feaas"),(N.closest(".component.feaas")||N).className.includes("-theme--"))for(var R,L,$=0;L=N.childNodes[$++];)eV(L)&&(L.className=L.className.replace(/(\s|^)-theme--[^\s]+\s*/g,"$1"));return eK(N,T,P,null,D)}function eJ(N,I,T,P=!1,D=!0){var M;let R=(null==(M=null==T?void 0:T.processTemplate)?void 0:M.call(T,null,N,I))||N;if("u"<typeof document||P)return eK(eX(R)[0],I,T,null,D).outerHTML;{let N=document.createElement("div");return N.innerHTML=R,eK(N,I,T,null,D),N.innerHTML}}var eQ=class{constructor(N,I=1,T){this.ownerDocument={createElement:N=>new eQ(N),createDocumentFragment:()=>new eQ(null,11)},this.nodeName=N,this.nodeType=I,this.textContent=T,this.attributes=[],this.childNodes=[]}setAttribute(N,I){let T=this.attributes.find(I=>I.name===N);
1174T?T.value=I:this.attributes.push({name:N,value:I})}getAttribute(N){let I=this.attributes.find(I=>I.name===N);return I?I.value:void 0}insertBefore(N,I){if(N.parentNode=this,null===I)this.childNodes.push(N);else{let T=this.childNodes.indexOf(I);-1!==T&&this.childNodes.splice(T,0,N)}}removeAttribute(N){let I=this.attributes.findIndex(I=>I.name===N);-1!==I&&this.attributes.splice(I,1)}appendChild(N){N.parentNode=this,this.childNodes.push(N)}get tagName(){var N;return null==(N=this.nodeName)?void 0:N.toUpperCase()}get localName(){var N;return null==(N=this.nodeName)?void 0:N.toLowerCase()}get innerHTML(){return e2(this.childNodes)}set innerHTML(N){this.childNodes=eX(String(null!=N?N:""))}get outerHTML(){return e2([this])}get children(){return this.childNodes.filter(N=>1==N.nodeType)}closest(N){let I=this;for(;I;){if(eZ(N,I))return I;I=I.parentNode}return null}querySelectorAll(N){let I=N.split(/\s*,\s*/),T=[],P=N=>{for(let P of I)if(eZ(P,N)){T.push(N);break}for(let I of N.childNodes)P(I)};for(let N of this.childNodes)P(N);return T}querySelector(N){return this.querySelectorAll(N)[0]}findSibling(N,I){if(!this.parentNode)return null;let T=this.parentNode.childNodes,P=T.indexOf(this);if(-1===P)return null;for(let D=P+N;D>=0&&D<T.length;D+=N){let N=T[D];if(!I||1===N.nodeType)return N}return null}removeChild(N){let I=this.childNodes.indexOf(N);if(-1!==I)return this.childNodes.splice(I,1),N.parentNode=void 0,N}get previousSibling(){return this.findSibling(-1)}get nextSibling(){return this.findSibling(1)}get previousElementSibling(){return this.findSibling(-1,!0)}get nextElementSibling(){return this.findSibling(1,!0)}cloneNode(N=!1){let I=new eQ(this.nodeName,this.nodeType);if(I.attributes=JSON.parse(JSON.stringify(this.attributes)),this.textContent&&(I.textContent=this.textContent),N)for(let N of this.childNodes){let T=N.cloneNode(!0);I.appendChild(T)}return I}get parentElement(){var N;return(null==(N=this.parentNode)?void 0:N.nodeType)==1?this.parentNode:null}};function eZ(N,I){let T=N.match(/([.#]?[\w-]+|\[([\w-]+)(="([^"]*)")?\])/g);if(!T)return!1;for(let N of T)if(N.startsWith("#")){if(I.getAttribute("id")!==N.slice(1))return!1}else if(N.startsWith(".")){if(!(I.getAttribute("class")||"").split(" ").includes(N.slice(1)))return!1}else if(N.startsWith("[")){let T=N.match(/^\[([\w-]+)(="([^"]*)")?\]$/);if(!T)return!1;{let N=T[1],P=T[3],D=I.getAttribute(N);if(void 0===P){if(void 0===D)return!1}else if(D!==P)return!1}}else if(I.nodeName!==N)return!1;return!0}function eX(N){var I;let T=[],P=[];for(;N;){let D=N.match(/^<([\w-]+)(\s[^>]*)?>/),M=N.match(/^<\/([\w-]+)>/);if(D){let M=D[1].toLowerCase(),R=(null==(I=(D[2]||"").match(/([\w-]+)(="([^"]*)")?/g))?void 0:I.map(N=>{let[I,T,,P]=N.match(/([\w-]+)(="([^"]*)")?/);return{name:T,value:e1(P||"")}}))||[],L=new eQ(M,1);if(L.attributes=R,P.length>0){let N=P[P.length-1];N.childNodes.push(L),L.parentNode=N}else T.push(L);["img","input","br"].includes(M)||P.push(L),N=N.slice(D[0].length)}else if(M)P.pop(),N=N.slice(M[0].length);else{let I=N.indexOf("<"),D=N.slice(0,-1!==I?I:void 0),M=new eQ("#text",3);if(M.textContent=D,P.length>0){let N=P[P.length-1];N.childNodes.push(M),M.parentNode=N}else T.push(M);N=N.slice(D.length)}}return T}function e0(N){return N.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function e1(N){return N.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'")}function e2(N){return N.map(N=>{if(3===N.nodeType)return N.textContent||"";let{nodeName:I,attributes:T}=N,P=T.map(({name:N,value:I})=>` ${N}="${e0(String(I))}"`).join(""),D=e2(N.childNodes);return["img","input","br"].includes(I)?`<${I}${P} />`:`<${I}${P}>${D}</${I}>`}).join("")}function e3(N,I,T){return e4(N,I,T)[0].outerHTML}function e4(N,I,T){var P;return eX((null==(P=null==T?void 0:T.processTemplate)?void 0:P.call(T,null,N,I))||N).map(N=>eK(N,I,T))}function e5(N){let{params:I,method:T,headers:P,body:D,url:M}=e7(N);var R={url:M},L={...P};return"application/json"===P["Content-Type"]&&delete L["Content-Type"],"application/json"===P.Accept&&delete L.Accept,Object.keys(L).length>0&&(R.headers=L),"GET"!==T&&(R.method=T),"GET"===T||"HEAD"===T||0===Object.keys(D).length||(
1174R.body=D),Object.keys(I).length>0&&(R={...R,params:I}),R}var e6=N=>{if(!N||"string"!=typeof N.url)return!1;for(var I in N)if("body"!=I&&"params"!=I&&"headers"!=I&&"url"!=I&&"method"!==I&&("jsonpath"!=I||"string"!=typeof N[I]))return!1;return!0};function e8(N){let{url:I,headers:T,params:P,method:D,body:M}=e7(N),R,L=T["Content-Type"];"GET"!=D&&"HEAD"!=D&&("application/json"===L&&(R=JSON.stringify(M)),"multipart/form-data"===L&&(R=Object.keys(M).reduce((N,I)=>(N.append(I,M[I]),N),new FormData)),"application/x-www-form-urlencoded"===L&&(R=new URLSearchParams(M)));let $=Object.keys(P).length?`?${new URLSearchParams(P)}`:"";return[`${I}${$}`,{headers:T,body:R,method:D}]}function e7(N){let I={};for(let T in(null==N?void 0:N.headers)||{})N.headers.hasOwnProperty(T)&&(I[T.replace(/^[a-z]|\-[a-z]/g,N=>N.toUpperCase())]=N.headers[T]);return I.Accept||(I.Accept="application/json"),{params:(null==N?void 0:N.params)||{},headers:I,jsonpath:String((null==N?void 0:N.jsonpath)||"$"),method:((null==N?void 0:N.method)||"GET").toUpperCase(),body:(null==N?void 0:N.body)||{},url:String((null==N?void 0:N.url)||"")}}var e9=async(N,I)=>{let T=(0,D.H5)(I,N);if(T instanceof Promise)return T;let P=N;T&&(P=e7(T));try{let[N,I]=e8(P),T=await (await e7.fetchImplementation(N,{...I,method:I.method.toLowerCase()})).json();return P.jsonpath&&"$"!=P.jsonpath?eS(T,P.jsonpath):T}catch(N){return{}}};async function te(N){if(!N)return N;if(e6(N))return e9(N);let I=Object.keys(N),T=await Promise.all(I.map(I=>e6(N[I])?e9(N[I],I):null).filter(Boolean));return I.reduce((I,P)=>({...I,[P]:e6(N[P])?T.shift():N[P]}),{})}function tt(N){return!!N&&(e6(N)||Object.values(N).some(e6))}e7.clean=e5,e7.toFetchArguments=e8,e7.fetchOne=e9,e7.fetch=te,e7.isDataSettings=e6,e7.hasDataSettings=tt,e7.fetchImplementation=(...N)=>fetch(...N);var tr={};function tn(N,I=N=>{}){var T;let P=()=>{var D,M,R=Object.assign(new Promise((I,T)=>{D=T=>{null==N||N(T),I(T)},M=T}),{resolve:D,reject:M,restart:P,first:T});return T=R,R.catch(I),R};return P()}G(tr,{Component:()=>t$,ComponentProps:()=>tL,Context:()=>t4,ControlledPromise:()=>tn,DEFAULT_CDN_URL:()=>ty,DOM:()=>K,DataPath:()=>eI,DataScope:()=>V,DataSettings:()=>e7,Element:()=>ti,FEAASComponent:()=>t$,FEAASComponentsProps:()=>tL,FEAASContext:()=>t4,FEAASContextProps:()=>t3,FEAASEditor:()=>t0,FEAASEditorProps:()=>tX,FEAASElement:()=>ti,FEAASLoader:()=>tB,FEAASLoaderProps:()=>tF,FEAASPicker:()=>t2,FEAASPickerProps:()=>t1,FEAASStylesheet:()=>tH,FEAASStylesheetProps:()=>tU,InvalidResponse:()=>tp,JSONPath:()=>ew,Loader:()=>tB,MyComponent:()=>ts,Picker:()=>t2,Stylesheet:()=>
1174tH,Thumbnail:()=>tz,WebComponent:()=>ta,adjustNumbers:()=>eL,autoloadScripts:()=>eO,cleanCollectionBit:()=>eM,clearFetchCache:()=>tu,createStylesheet:()=>tP,customizeDataSettings:()=>D.H5,fetchAndRevalidate:()=>td,fetchAndRevalidateComponent:()=>tS,fetchAndRevalidateStylesheet:()=>tk,fetchBypassingCache:()=>tg,fetchCache:()=>tc,fetchComponent:()=>t_,fetchData:()=>te,fetchToValidateCache:()=>tm,fetchWithCacheAwareness:()=>tf,findStylesheet:()=>tT,getComponent:()=>D.QQ,getComponentSource:()=>tv,getComponentURL:()=>tA,getFetchCache:()=>th,getFramePosition:()=>tZ,getHumanizedLabel:()=>e$,getLastPathBit:()=>eF,getQualifier:()=>eD,getStylesheetSource:()=>tw,getStylesheetURL:()=>tE,loadScript:()=>eN,loadStylesheet:()=>tN,loadStylesheetAllowStale:()=>tI,normalizeCollectionScope:()=>eR,observeDOMElement:()=>ej,parseComponentSource:()=>tb,parseLimit:()=>eT,parseRange:()=>eP,parseStylesheetSource:()=>tx,queryObject:()=>eS,queryObjectRaw:()=>eE,queryScopes:()=>e_,registerComponent:()=>D.Nj,registerDatasource:()=>D.Ll,renderComponent:()=>tM,renderComponentElement:()=>tD,renderComponentPromise:()=>tR,renderDOMContent:()=>eY,renderDOMElement:()=>eK,renderHTMLContent:()=>eJ,renderStylesheet:()=>tC,renderStylesheetPromise:()=>tj,serializeCH1RichText:()=>eC,setDOMAttribute:()=>eq});var ta="u"<typeof HTMLElement?"u">typeof windowJSDOM?windowJSDOM.HTMLElement:class{}:HTMLElement,ti=class extends ta{getProps(N){return{}}constructor(){super(),this.defaultProps={},this.connected=!1,this.refs={},this.descendants=[],this.whenLoaded=tn(N=>{this.payload=N}),this.whenRendered=tn(()=>this.initialized=!0,()=>this.cancelRender()),this.addEventListener("feaasMount",this),this.addEventListener("feaasUnmount",this)}getRoot(){return this}attributeChangedCallback(N,I,T){this.set()}connectedCallback(){this.mount()}disconnectedCallback(){this.unmount()}mount(){try{let N=this.getParent();if(N&&!N.connected||this.connected)return;this.connected=!0,this.log("FEAAS: Mount",this.tagName,this),this.dispatchEventIndirectly(new Event("feaasMount",{bubbles:!0,composed:!0})),this.getElements().map(N=>{var I;return null==(I=N.mount)?void 0:I.call(N)}),this.set()}catch(N){this.onError(N)}}dispatchEventIndirectly(N){this.dispatchEvent(N);let I=this.getParent();I&&!I.contains(this)&&(Object.defineProperty(N,"target",{value:this,writable:!1}),Object.defineProperty(N,"composedPath",{value:()=>[this],writable:!1}),I.handleEvent(N))}isJSONAttribute(N){return!1}log(...N){let I=N[0];("u">typeof location&&null!=location&&location.hostname.startsWith("components-")||localStorage["Sitecore.Components.Debug"])&&console.log(I+" "+N.slice(1).map(N=>N&&"object"==typeof N?"%O":"%s").join(" "),...N.slice(1))}unmount(){this.connected&&(this.log("FEAAS: Unmount",this),this.dispatchEventIndirectly(new Event("feaasUnmount",{bubbles:!0,composed:!0})),this.connected&&this.initialized&&this.render&&this.update(),this.cancelRender(),this.connected=!1,this.initialized&&this.render&&this.update())}getParent(N=!0){for(var I=this;I=I.parentElement||(I.parentNode instanceof ShadowRoot?I.parentNode.host:null);)if(!N||I.tagName.startsWith("FEAAS-"))return I;if("FEAAS-CONTEXT"!=this.tagName)return document.querySelector("feaas-context")}getElements(N=this.getRoot(),I=!0){return Array.from(N.querySelectorAll("*")).map(N=>[!I||N.tagName.startsWith("FEAAS-")?N:null,N.shadowRoot?this.getElements(N.shadowRoot,I):null]).flat().filter(Boolean)}handleEvent(N){let I=N.composedPath()[0];switch(N.type){case"feaasMount":I!=this&&this.nestedCallback(I);break;case"feaasUnmount":I!=this&&this.unnestedCallback(I)}}unnestedCallback(N){let I=this.descendants.indexOf(N);-1!=I&&(this.log("FEAAS: Unnest",this,N),this.descendants.splice(I,1),this.refs[N.getComponentName()]=null,N.refs.parent==this&&(N.refs.parent=null),N.refs.top==this&&(N.refs.top=N.refs.parent))}nestedCallback(N){var I,T;if(-1==this.descendants.indexOf(N)&&(this.descendants.push(N),this.log("FEAAS: Nest",this,N),this.refs[N.getComponentName()]=N,N.refs.top=this,(I=N.refs).parent||(I.parent=this),N.render))for(var P=N.refs.parent;P;P=P.refs.parent)P.render&&((T=N.refs).parentReact||(T.parentReact=P),N.refs.topReact=P)}getComponentName(){return this.tagName.replace("FEAAS-","").toLowerCase()}isReadyToLoad(){return void 0===this.payload&&null==this.getAttribute("hidden")}onError(N,I="uncaught",T=!1){let P=new CustomEvent("feaasError",{bubbles:!0,composed:!0,detail:N});if(this.dispatchEventIndirectly(P),this.whenLoaded.reject(N),!P.defaultPrevented&&!T){this.whenRendered.reject(N);try{this.unmount()}catch(N){}return!0}return!1}shouldUpdateOnLoad(){return!0}async advance(){try{if(void 0===this.payload){if(!this.isReadyToLoad())return;this.payload=null,this.dispatchEventIndirectly(new Event("feaasLoad",{bubbles:!0,composed:!0}));let N=await this.load().catch(N=>{throw this.payload=void 0,N});if(this.whenLoaded.resolve(N),this.onLoad)return}else if(null==this.payload)return;this.flush(),this.whenRendered.resolve(this)}catch(N){this.onError(N)}}flush(){var N,I;if(!this.connected)return;let T=null==(I=null==(N=this.payload)?void 0:N.ReactDOM)?void 0:I.flushSync;T?T(()=>this.update()):this.update()}load(){return Promise.resolve(null)}update(){var N,I,T;if(null==this.payload||!this.render)return;let{React:P,ReactDOM:D,ReactDOMClient:M}=this.payload||{};if(!P)throw Error(`${this.tagName}: React is not present in payload`);
1174if(!D)throw Error(`${this.tagName}: ReactDOM is not present in payload`);"false"==this.getAttribute("hydrate")&&this.firstElementChild||(this.refs.topReact||this.forceUpdateReact?this.forceUpdateReact&&this.connected?null==(N=this.forceUpdateReact)||N.call(this):null==(T=null==(I=this.refs.topReact)?void 0:I.forceUpdateReact)||T.call(I):(this.reactRoot||(this.reactRoot=M.createRoot(this.getReactRootElement())),this.reactRoot.render(this.getReactElement())))}invokeReactRendering(){let{React:N,ReactDOM:I}=this.payload||{};if(!this.connected)return null;let T=this.descendants.filter(N=>N.refs.parentReact==this&&N.payload&&N.connected).map((N,I)=>this.getReactElement(N));return this.render({...this.props,children:T},this.payload)}getReactErrorBoundary(N=this,I=N.tagName){if(this.reactErrorBoundary)return this.reactErrorBoundary;let{React:T,ReactDOM:P}=N.payload||{};return this.reactErrorBoundary||(this.reactErrorBoundary=class extends T.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromError(N){return{error:N}}componentDidCatch(I,T){console.error(`FEAAS: ${N.tagName} Error:`,I,T),N.onError(I,"react")}render(){if(!this.state.error)return this.props.children}})}getReactElement(N=this,I){let{React:T,ReactDOM:P}=N.payload||{},D=this.getReactErrorBoundary(),M=this.getReactWrapper(N);return T.createElement(D,{key:N.tagName+"-"+N.getUID(),slot:N.getAttribute("slot")},T.createElement(M,null))}getReactWrapper(N=this,I=N.tagName){if(N.reactWrapper)return N.reactWrapper;let{React:T,ReactDOM:P}=N.payload||{};return N.reactWrapper=I=>{if(!N.render)return N.update();{let[I,D]=T.useReducer(N=>N+1,0);return N.forceUpdateReact=D,P.createPortal(T.createElement(T.Fragment,null,N.invokeReactRendering()),N.getReactRootElement())}},Object.assign(N.reactWrapper,{key:N.tagName+"-"+N.getUID(),displayName:I}),N.reactWrapper}getUID(){return this.uid||(this.uid=String(Math.random()))}getShadowRoot(){return this.shadowRoot||this.attachShadow({mode:"open"}),this.shadowRoot}getReactRootElement(){return this.useShadowRoot?this.getShadowRoot():this.getRoot()}set(N){try{for(var I in this.scheduleRender(),this.overrides={...this.overrides,...N},this.props={...this.getProps(),...this.overrides},this.props){let N=this.isJSONAttribute(I),P=this.props[I],D=N?JSON.stringify(P):String(P),M=this.defaultProps[I],R=N?JSON.stringify(M):String(M),L=I.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),$=this.getAttribute(L);try{var T=N?JSON.stringify(JSON.parse($)):$}catch(N){var T=null}null==P||D===R?this.removeAttribute(L):("string"==typeof P||"number"==typeof P||"boolean"==typeof P||N)&&T!=D&&this.setAttribute(L,D)}}catch(N){this.whenRendered.reject(N),this.onError(N,"set")}return this}import(N){return import(N)}scheduleRender(){null==this.nextRender&&(this.whenRendered=this.whenRendered.restart()),this.cancelRender(),this.nextRender=requestAnimationFrame(()=>{this.nextRender=null,this.advance().catch(N=>{})})}cancelRender(){cancelAnimationFrame(this.nextRender)}formatURL(N,I){return"string"==typeof N&&N.match(/^\/[^\/]/)?I+N:N}getContextAttribute(N,I=this){for(var T=this;T=T.parentElement||(T.parentNode instanceof ShadowRoot?T.parentNode.host:null);)if(null!=T.getAttribute(N))return T.getAttribute(N);return this.getAttribute(N)}static register(N,I){null==I&&(I="u">typeof window?window:null),I&&!I.customElements.get(N)&&I.customElements.define(N,this)}},to=class extends ti{load(){return Promise.all([import("https://cdn.skypack.dev/react"),import("https://cdn.skypack.dev/react-dom"),import("https://cdn.skypack.dev/react-dom/client")]).then(([N,I,T])=>({React:N,ReactDOM:I,ReactDOMClient:T}))}render({},{React:N}){return N.createElement(N.Fragment,null)}},ts=class extends to{constructor(){super(...arguments),this.useShadowRoot=!0}getProps(){return{counter:parseFloat(this.getAttribute("counter"))}}render({counter:N},{React:I}){let[T,P]=I.useState(0);return I.useEffect(()=>{P(N=>N+1)},[N]),I.createElement(I.Fragment,null,I.createElement("p",null,"Rendering attribute: ",N),I.createElement("p",null,"Triggered updates: ",T))}};ts.observedAttributes=["counter"];var tl=["initial","check","updated"],tc={};function tu(){tc={}}async function td(N,I,T,P,D=tc){return tf({url:N,options:I,validator:T,callback:P,cache:D}).then(tm).then(N=>N.response)}async function tf({url:N,options:I,validator:T,callback:P,cache:D},M="initial"){let R=new Date;if(null!=D){var L=th(N);if(tl.indexOf(L.phase)>=tl.indexOf(M))var $=L[M];else L.phase=M}let F=await ($||fetch(N,I));if(!$&&L&&(F.ok?L[M].resolve(F):L[M].reject(Error("Fetch failed"))),!F.ok)throw Error("Fetch failed");let B=new Date(F.headers.get("date"))<R||$&&"initial"==M&&("updated"==L.phase||"check"==L.phase);if((null==T?void 0:T(F,B))===!1)throw new tp("Response is not val
1174id");return await (null==P?void 0:P(F,M,B)),{url:N,options:I,isCached:B,response:F,validator:T,callback:P,cache:D}}function th(N,I=!1){let T=String(N).replace("?head","");var P=tc[T];return P||I||(P=tc[T]={phase:null,initial:tn(),check:tn(),updated:tn(),final:tn()}),P}var tp=class extends Error{};async function tm(N){let{url:I,isCached:T,options:P,validator:D,response:M,cache:R}=N;if(T){let{response:T}=await tf({url:I+(I.toString().includes("?")?"&":"?")+"head",options:{...P,method:"HEAD",cache:"no-cache"},validator:D,cache:R},"check");if(T.headers.get("last-modified")!=M.headers.get("last-modified"))return tg(N)}return N}async function tg(N){return tf({...N,options:{...N.options,cache:"reload"}},"updated")}var ty="https://feaas.blob.core.windows.net";function tb(N){let I=null==N?void 0:N.match(/^(?:(.*?)\/components)?\/?([^\/]+)\/([^\/]+)(?:\/([^\/]+)(?:\/(published|staged|saved|\d+)(?:\.html?)?)?)?$/);if(I){var[,T,P,D,M,R]=I;return{cdn:T,library:P,component:D,version:M,revision:R}}}function tv(N){if(!N||!N.library||!N.component)throw Error("Component requires `library` and `component` properties");return`${N.cdn&&N.cdn!=ty?`${N.cdn}/components`:""}/${N.library}/${N.component}/${!N.version||"responsive"==N.version&&(!N.revision||"published"==N.revision)?"":N.version}/${!N.revision||"published"==N.revision?"":N.revision}`.replace(/(^\/|\/$|\/\/)(?!.+\/components\/)/g,"")}function tw(N){return`${N.cdn&&N.cdn!=ty?`${N.cdn}/styles/`:""}${N.library}/${!N.revision||"published"==N.revision?"":N.revision}`.replace(/\/$|\/\/(?!.+\/styles\/)/g,"")}function tx(N){let I=null==N?void 0:N.match(/^(?:(.*?)\/styles\/)?([^\/]+)(?:\/(published|staged|saved|\d+)(?:.css)?)?$/);if(I){var[,T,P,D]=I;return{cdn:T,library:P,revision:D}}{let I=tb(N);if(I){var{cdn:T,library:P,revision:D}=I;return null!=D&&D.match(/\d/)&&(D=void 0),{cdn:T,library:P,revision:D}}}}function tA(N){return"string"==typeof N&&(N={src:N}),N="src"in N&&N.src?{...tb(N.src)}:{...N},`${N.cdn||N.hostname||ty}/components/${N.library}/${N.component}/${N.version||"responsive"}/${N.revision||"published"}.html`}function tE(N){if("string"==typeof N&&(N={src:N}),"src"in N){if(String(N.src).includes("v1/files/components/styles"))return N.src;N={...tx(N.src)}}else N={...N};return`${N.cdn||N.hostname||ty}/styles/${N.library}/${"staged"==N.revision?"staged":"saved"==N.revision?"saved":"published"}.css`}async function tS(N,I,T=!1){let P=N=>null==N.headers.get("x-ms-meta-versionDeletedAt"),D=N=>N.clone().text().then(I),M=await Promise.all([N.instance&&tf({options:{headers:{Accept:"text/html"},credentials:"omit"},url:tA({...N,version:N.instance}),validator:P}).catch(N=>N),tf({url:tA(N),validator:P}).catch(N=>N)]),R=M.find(N=>N&&"isCached"in N&&N);if(!R||R instanceof Error)throw M.find(N=>N&&N instanceof Error)||Error("Can not fetch component");return M[0]==R&&console.log("Using fork!",M),await D(R.response),T?R:tm({...R,callback:D}).catch(N=>{if(M[0]==R&&(tg({...R,callback:null,validator:null}),console.log("Fork was deleted"),!(M[1]instanceof Error)))return D(M[1].response),tm({...M[1],callback:D});throw N})}async function t_(N){var I;"string"==typeof N&&(N={src:N});let{response:T}=await tS(N,N=>{I=N},!0);return{...N,template:I,lastModified:T.headers.get("last-modified")}}async function tk(N,I){return td(tE(N),{headers:{Accept:"text/css"},credentials:"omit"},N=>null==N.headers.get("x-ms-meta-deletedAt"),(N,T)=>N.clone().text().then(N=>I(N,T)))}function tC(N,I){return tj(N,I||(I=document.createElement("style"))),I}function tj(N,I){return I||(I=document.createElement("style")),tk(N,(N,T)=>{I.textContent=N}).then(()=>I)}var tO=new WeakSet;function tN(N,I){var T,P=tT(N);if(P){if(tO.has(P))return Promise.resolve(P);N=P.getAttribute("data-href")||P.getAttribute("href")}return tk(N,(D,M)=>{"initial"==M&&P||(T||(T=P&&"LINK"!=P.tagName?P:tP(N)),T.textContent=D),null==I||I(D,M)}).then(()=>T||P)}function tI(N){return new Promise((I,T)=>{tN(N,I).catch(T)})}function tT(N){let I=tE(N),{library:T}=tx(I),P=`/files/components/styles/${T}.css`;return document.querySelector(`style[data-href="${I}"], 1175 link[rel="stylesheet"][href="${I}"], 1176 style[data-href*="${P}"], 1177 link[rel="stylesheet"][href*="${P}"]`)}function tP(N){let I=tE(N),T=document.createElement("style");
1177return T.setAttribute("data-href",I),document.head.appendChild(T),T}function tD(N,I){let T=document.createElement("div");T.innerHTML=N;let P=document.createDocumentFragment();for(;T.firstChild;)P.appendChild(T.firstChild);return eK(P,I),T}function tM(N,I,T=!0){return tR(N,I||(I=document.createElement("div")),T),I}async function tR(N,I,T=!0){return I||(I=document.createElement("div")),I.childNodes.length?eK(I,N.data,N,null,T):"template"in N?eY(I,N.template,N.data,N,T):tS(N,P=>eY(I,P,N.data,N,T)).then(()=>I)}function tL(N){var I,T,P,D,M,R,L,$;let F,B=N.getAttribute("src");if(B){let N=tb(B);if(!N)throw Error(`Could not parse FEAAS Component source: ${B}`);var{cdn:U,library:H,component:z,version:W,revision:q}=N}let G=N.getAttribute("data");if(null!=G&&""!=G)try{F="string"==typeof G?JSON.parse(G):{}}catch(N){console.error(N)}let K=N.getAttribute("fetch");return{data:F||{},cdn:null!=(T=null!=(I=N.getContextAttribute("cdn"))?I:U)?T:ty,library:null!=(P=N.getAttribute("library"))?P:H,component:null!=(D=N.getAttribute("component"))?D:z,version:null!=(R=null!=(M=N.getAttribute("version"))?M:W)?R:"responsive",revision:null!=($=null!=(L=N.getAttribute("revision"))?L:q)?$:"published",hostname:N.getAttribute("hostname"),template:N.getAttribute("template"),instance:N.getAttribute("instance"),editable:null!=N.getAttribute("editable"),suspended:null!=N.getAttribute("suspended"),lastModified:N.getAttribute("last-modified"),fetch:"false"==K||null==K&&N.hasAttribute("fetch")?[]:null==K||"true"==K?["data","template","stylesheet"]:K.split(/(\s+|\-)+/g).filter(Boolean)}}var t$=class extends ti{setData(N){this.set({data:N})}getProps(){return tL(this)}isJSONAttribute(N){return"data"==N}attributeChangedCallback(N,I,T){I!==T&&(("library"==N||"component"==N||"revision"==N||"version"==N)&&(this.payload=void 0,this.alreadyRendered&&this.connected&&(this.needsRefresh=!0,this.needsToFetchTemplate=!0)),super.attributeChangedCallback(N,I,T),"data"==N&&(this.needsRefresh=!0,(this.props.fetch.includes("data")||this.alreadyRendered||!e7.hasDataSettings(this.props.data))&&this.fetchData()))}async fetchData(){this.readyData=void 0,this.whenDataReady=this.whenDataReady.restart();let N=await e7.fetch(this.props.data),I=this.alreadyRendered;await this.whenDataReady.resolve(N),I&&this.advance()}getEditor(){var N;return null==(N=document.querySelector("feaas-context"))?void 0:N.refs.editor}constructor(){super(),this.readyData={},this.whenDataReady=tn(N=>this.readyData=N,N=>this.onError(N)),this.defaultProps={cdn:ty,revision:"published",version:"responsive",editable:!1,suspended:!1,data:{}},this.onLoad=N=>{this.payload=N,this.advance()},this.getAttribute("data"),this.getAttribute("data")||this.whenDataReady.resolve({}),this.addEventListener("click",()=>{this.props.editable&&this.edit()})}edit(){let N=this.getEditor();if(null!=N&&N.setTarget(this))return N.open(),!0}getOriginal(){let N=this.getAttribute("data-path-scope");if(N){for(var I=this;(I=I.previousElementSibling)&&I.getAttribute("data-path-scope")==N;)var T=I;return T}}isReadyToLoad(){return super.isReadyToLoad()&&null!=this.props.library&&null!=this.props.component&&null!=this.props.version}async load(){var N;if(this.getOriginal())return;let I=()=>{null!=this.payload&&(T||this.readyData&&this.onLoad(this.payload))};if(this.props.fetch.includes("stylesheet"))var T=tI({...this.props}).then(()=>{T=null,I()});if(this.props.fetch.includes("template")||this.needsToFetchTemplate){this.needsToFetchTemplate=!1;var P=tS(this.props,N=>{this.payload=N,this.needsRefresh=!0,I()})}else this.payload=null!=(N=this.props.template)?N:this.innerHTML;return Promise.all([T,this.whenDataReady.then(()=>I()),P]).then(()=>this.payload)}flush(){this.readyData&&super.flush()}update(){if(this.alreadyRendered=!0,!(!this.props.fetch.includes("data")&&!this.props.fetch.includes("template")&&this.firstElementChild&&!this.needsRefresh))if(Array.from(this.children).filter(N=>"BR"!=N.tagName).length>0&&!this.needsRefresh)eK(this,this.readyData);else{if(this.needsRefresh=!1,this.getOriginal())return;eY(this,this.payload,this.readyData)}}};
1177function tF(N){return{opacity:null!=N&&N.getAttribute("opacity")?parseFloat(null==N?void 0:N.getAttribute("opacity")):1,hidden:(null==N?void 0:N.getAttribute("hidden"))!=null}}t$.observedAttributes=["library","component","version","revision","hostname","cdn","template","data","instance","editable","with-stylesheet","fetch"],t$.register("feaas-component");var tB=class extends ti{constructor(){super(...arguments),this.defaultProps={hidden:!1}}getProps(){return tF(this)}attributeChangedCallback(N,I,T){if(I!==T)return"hidden"==N&&(this.style.setProperty("display","block","important"),this.style.setProperty("transition","opacity 0.3s","important"),T?(this.style.setProperty("opacity","0","important"),this.style.pointerEvents="none"):(this.style.setProperty("opacity","1","important"),this.style.pointerEvents="all")),super.attributeChangedCallback(N,I,T)}connectedCallback(){this.payload=null,super.connectedCallback(),this.attributeChangedCallback("hidden",this.getAttribute("hidden"),this.getAttribute("hidden")),this.stylesheet=document.createElement("style"),this.stylesheet.textContent=` 1178 #loader { 1179 position: absolute; 1180 top: 0; 1181 left: 0; 1182 right: 0; 1183 bottom: 0; 1184 display: flex; 1185 align-items: center; 1186 justify-content: center; 1187 background: #f6f6ff; 1188 z-index: 1000; 1189 } 1190 @keyframes loader-circular-track { 1191 0% { 1192 stroke-dasharray: 1, 400; 1193 stroke-dashoffset: 0; 1194 } 1195 50% { 1196 stroke-dasharray: 400, 400; 1197 stroke-dashoffset: -100; 1198 } 1199 100% { 1200 stroke-dasharray: 400, 400; 1201 stroke-dashoffset: -260; 1202 } 1203 } 1204 1205 @keyframes loader-circular-spinner { 1206 0% { 1207 transform: rotate(0deg); 1208 } 1209 1210 100% { 1211 transform: rotate(360deg); 1212 } 1213 } 1214 #loader .spinner { 1215 width: 48px; 1216 height: 48px; 1217 } 1218 `,this.loader=document.createElement("div"),this.loader.id="loader",this.loader.innerHTML=` 1219 <div class="spinner"> 1220 <svg 1221 viewBox="0 0 100 100" 1222 style=" 1223 animation: 2s linear 0s infinite normal none running loader-circular-spinner; 1224 display: block; 1225 width: 48px; 1226 height: 48px; 1227 " 1228 > 1229 <circle fill="transparent" cx="50" cy="50" r="42" stroke="rgba(0,0,0,0.1)" stroke-width="10px"></circle> 1230 <circle 1231 fill="transparent" 1232 stroke="#5548D9" 1233 cx="50" 1234 cy="50" 1235 r="42" 1236 stroke-width="10px" 1237 stroke-linecap="round" 1238 style="animation: 1.5s linear 0s infinite normal none running loader-circular-track" 1239 ></circle> 1240 </svg> 1241 </div>`,this.getRoot().appendChild(this.stylesheet),this.getRoot().appendChild(this.loader)}update(){this.loader.style.opacity=String(this.props.opacity)}};function tU(N){var I,T,P,D;let M=N.getAttribute("src");if(M)var{cdn:R,library:L,revision:$}=tx(M);return{library:null==N?void 0:N.getContextAttribute("library"),revision:null!=(T=null!=(I=null==N?void 0:N.getAttribute("revision"))?I:$)?T:"published",cdn:null!=(D=null!=(P=null==N?void 0:N.getContextAttribute("cdn"))?P:null==N?void 0:N.getContextAttribute("hostname"))?D:ty}}tB.observedAttributes=["hidden","opacity"],tB.register("feaas-loader");var tH=class extends ti{constructor(){super(...arguments),this.onLoad=N=>{this.payload=N,this.advance()}}getProps(){return tU(this)}isReadyToLoad(){return null!=this.props.library&&null!=this.props.revision&&null!=this.props.cdn}load(){return tN(this.props,this.onLoad)}};tH.register("feaas-stylesheet");var tz={};G(tz,{convertBase64toBlob:()=>tW,generate:()=>tY,get:()=>tK,getVersionForThumbnail:()=>tG,load:()=>tV,responseToImage:()=>tq,upload:()=>tQ});var tW=N=>fetch(N).then(N=>N.blob()),tq=N=>N.blob().then(N=>new Promise((I,T)=>{let P=new Image;P.onerror=T,P.onload=()=>{I(P)},P.src=URL.createObjectURL(N)}));async function tG(N){return N.versions.length||await N.versions.fetch(),N.getVersionForWidth(800)}async function tK(N,I,T){try{if(!N.isNew)return await tV(N,I,T)}catch(T){N.sdk.log(`FEAAS: Thumbnail ${N.id}, version: ${(null==I?void 0:I.id)||"responsive"}, status: generating ${status}, reason: ${T}`)}let P=await tY(N,I);return null==T||T(P,!1),P&&!N.isNew&&tW(P.src).then(T=>tQ(N,I,T)),P}async function tV(N,I,T){var P;let D=I?I.getThumbnailURL():N.getThumbnailURL(),M=N.library.stylesheet,R=new Date(Math.max(Number(N.modifiedAt),Number(M.modifiedAt)));return N.sdk.log(`FEAAS: Thumbnail ${N.id}/${(null==I?void 0:I.id)||"responsive"}, loading`),await td(D,{},(N,I)=>{let D=2e3>Math.abs(Number(new Date(N.headers.get("x-ms-meta-componentRenderedAt")))-Number(R));return I&&!D&&tq(N).then(N=>{P=N,T(N,I)}),D},(D,M,R)=>{N.sdk.log(`FEAAS: Thumbnail ${N.id}/${(null==I?void 0:I.id)||"responsive"}, status: ${M}`),tq(D).then(N=>{P=N,T(N,R)})},null),P}async function tY(N,I,T){let P=I||(N.isNew?null:await tG(N));if(!P||P.isViewEmpty())return null;let D=T||N.library.stylesheets.first,{datasources:M}=N.sdk;
1241return await tJ(P.classList,D.getBreakpointForWidth(800,P.getBreakpoints()),P.view,M.reduce((N,I)=>Object.assign(N,{[I.id]:I.sample}),{}),D.css,N.sdk)}function tJ(N,I,T,P,D,M){let R=document.createElement("iframe");return R.style.position="absolute",R.style.top="-2000px",R.style.left="-2000px",R.style.width=I.props.minWidth+"px",R.style.height="720px",R.style.zIndex="100011",document.body.appendChild(R),new Promise((L,$)=>{let F=document.createElement("script");F.onerror=$,F.src=M.frontend+"/assets/html2canvas.js",F.onload=()=>{var N;((null==(N=R.contentWindow.document.fonts)?void 0:N.ready)||Promise.resolve()).then(function(){return R.contentWindow.html2canvas(H,{scale:Math.max(1.1,1e3/Math.min(1401,Math.max(320,I.props.minWidth))),width:Math.min(1401,Math.max(320,I.props.minWidth)),height:Math.max(1,Math.min(2e3,H.offsetHeight)),windowWidth:I.props.minWidth||I.props.maxWidth+"px",windowHeight:1e3,proxy:M.backend+"/proxy/media",backgroundColor:"#ffffff"}).then(N=>{let I=N.toDataURL("image/jpeg",.6);R.parentElement.removeChild(R);let T=new Image;T.onload=()=>{L(T)},T.onerror=$,T.src=I})})},R.contentWindow.document.head.appendChild(F);let B=R.contentWindow.document.createElement("style");B.textContent=` 1242 ${D} 1243 body, html { padding: 0; margin: 0; overflow: hidden } 1244 `;let U=R.contentWindow.document.createElement("style");U.textContent=` 1245 body, html { padding: 0; margin: 0; overflow: hidden } 1246 `,R.contentWindow.document.head.appendChild(B),R.contentWindow.document.head.appendChild(U);let H=tM({template:T,data:P},null,!1);H.classList.add(...N,"-feaas--preview","-emulate--"+I.details.slug),R.contentWindow.document.body.appendChild(H)})}async function tQ(N,I,T){let P=I?I.getThumbnailURL():N.getThumbnailURL(),D=new Date(Math.max(Number(N.modifiedAt),Number(N.library.stylesheet.modifiedAt)));try{await N.sdk.uploadBlob("thumbnails",P.split(/\/thumbnails\//)[1],T,{headers:{"x-ms-blob-content-type":"image/jpg","x-ms-blob-cache-control":"public,max-age=31536000,immutable","x-ms-meta-versionId":I?I.id:null,"x-ms-meta-versionRevision":I?I.revision.toString():null,"x-ms-meta-componentId":N.id,"x-ms-meta-componentRenderedAt":D.toUTCString(),"x-ms-meta-componentModifiedAt":N.modifiedAt.toUTCString(),"x-ms-meta-componentCreatedAt":N.createdAt.toUTCString(),"x-ms-meta-modifiedAt":N.modifiedAt.toUTCString()}}),fetch(P,{cache:"no-cache"}).then(()=>{N.sdk.log("FEAAS: Thumbnail uploaded",P)})}catch(I){N.sdk.log("FEAAS: Thumbnail failed to upload",P,I)}return P}function tZ(N){let I=[];if(N){let T=N.ownerDocument.defaultView,P,D;for(;T!==window.top;){P=T.parent;for(let N=0;N<P.frames.length;N++)if(P.frames[N]===T){for(let N of P.document.getElementsByTagName("iframe"))if(N.contentWindow===T){D=N.getBoundingClientRect();let T=N.contentWindow.getComputedStyle(N);I.push({left:D.left+parseInt(T.borderLeftWidth),top:D.top+parseInt(T.borderTopWidth)})}T=P;break}}}return I.reduce((N,I)=>({left:N.left+I.left,top:N.top+I.top}),{left:0,top:0})}function tX(N){var I;return{context:HTMLElement,frontend:null==N?void 0:N.getContextAttribute("frontend"),src:null!=(I=null==N?void 0:N.getAttribute("src"))?I:"/editor.js",library:null==N?void 0:N.getAttribute("library"),component:null==N?void 0:N.getAttribute("component"),version:null==N?void 0:N.getAttribute("version"),instance:null==N?void 0:N.getAttribute("instance"),forked:null==N?void 0:N.getAttribute("forked"),revision:(null==N?void 0:N.getAttribute("revision"))||"saved",hidden:(null==N?void 0:N.getAttribute("hidden"))!=null,for:null==N?void 0:N.getAttribute("for"),state:(null==N?void 0:N.getAttribute("state"))||"idle",changed:(null==N?void 0:N.getAttribute("changed"))!=null}}"u">typeof window&&(window.FEAASReactElement=to,null!=(P=window.FEAASLoading)||(window.FEAASLoading=Promise.resolve()));var t0=class extends ti{constructor(){super(...arguments),this.framePoint={top:0,left:0},this.wrapperRect={top:0,left:0,width:0,height:0},this.bodyRect={top:0,left:0,width:0,height:0},this.defaultProps={hidden:!1},this.setTarget=(N,I={component:N.getAttribute("component"),version:N.getAttribute("version"),revision:N.getAttribute("revision"),instance:N.getAttribute("instance")})=>{if(!this.closing&&(!this.target||null==N))return this.set(I),this.target=N,!0},this.onChromeMeasureElement=(N,I=N.getBoundingClientRect())=>N.ownerDocument==document?{left:I.left-this.bodyRect.left,top:I.top-this.bodyRect.top,width:I.width,height:I.height}:{left:I.left+this.framePoint.left-this.bodyRect.left,top:I.top+this.framePoint.top-this.bodyRect.top,width:I.width,height:I.height},this.onBeforeMeasure=N=>{N.memoized.focusable&&(this.framePoint=tZ(N.memoized.focusable)),this.chrome&&(this.wrapperRect=this.chrome.positionable.getBoundingClientRect(),this.bodyRect=this.chrome.positionable.ownerDocument.body.parentElement.getBoundingClientRect())},this.onMeasure=()=>{}
1246,this.onPosition=({focusable:N,root:I})=>{!this.chrome||this.props.hidden||(N?(this.chrome.wrapper.style.width=N.width+32+"px",this.chrome.wrapper.style.height=N.height+16+64+"px",this.chrome.wrapper.style.left=N.left-16+"px",this.chrome.wrapper.style.top=N.top-64+"px",this.chrome.wrapper.style.opacity="1",this.chrome.absolute=this.querySelector(".ui.overlays"),this.chrome.absolute&&(this.chrome.absolute.style.left=I.left+"px",this.chrome.absolute.style.top=I.top+"px")):(this.chrome.wrapper.style.opacity="0",this.chrome.wrapper.style.left="-1000px",this.chrome.wrapper.style.top="-1000px"))},this.onWindowMessage=N=>{var I;switch(null==(I=N.data)?void 0:I.type){case"feaasEdit":let T=this.getPlaceholder();this.setTarget(T.editable,N.data)&&(this.loader=T.loader,document.body.appendChild(T.clipper),this.editedUID=N.data.id,this.setPlaceholder(),this.open());break;case"feaasMeasurements":this.measurements=N.data.measurements,this.props.hidden||this.setPlaceholder()}},this.onContentChange=()=>{this.setAttribute("changed","changed"),requestAnimationFrame(()=>{this.setIframeComponentContent()})},this.onClose=()=>{var N;this.setAttribute("hidden","hidden"),this.placeholder&&(this.placeholder.positionable.style.opacity="0",this.placeholder.positionable.style.pointerEvents="none"),this.chrome&&(this.chrome.wrapper.style.opacity="0"),null!=(N=this.target)&&N.parentNode&&(this.target.outerHTML=this.target.outerHTML),this.setTarget(null,{component:null,version:null,instance:null,revision:null}),this.setEditorContext({isFocused:!1})},this.onVersionStateChange=(N,I)=>{this.versionContext=N,this.setVersionContext=I},this.onEditorStateChange=(N,I)=>{this.editorContext=N,this.setEditorContext=I,N.editor&&"loading"==this.props.state&&!this.props.hidden&&(this.setAttribute("state","ready"),this.ownerDocument.fonts.ready.then(()=>setTimeout(()=>{this.setReadyState(),this.setIframeComponentContent()},100)))}}getProps(){return tX(this)}getReactRootElement(){return this.reactRootElement||(this.reactRootElement=document.createElement("div"),this.getRoot().appendChild(this.reactRootElement)),this.reactRootElement}showLoader(){this.loader||(this.loader=document.createElement("feaas-loader"),this.loader.setAttribute("opacity","0.6"),this.loader.style.zIndex="1000",this.target.appendChild(this.loader),"FEAAS-COMPONENT"==this.target.tagName&&(this.target.style.position="relative"))}hideLoader(){this.loader&&(this.loader.setAttribute("hidden","hidden"),"FEAAS-COMPONENT"==this.target.tagName&&(this.target.style.position="relative",this.target.style.position=""))}load(){return import(this.formatURL(this.props.src,this.props.frontend))}connectedCallback(){super.connectedCallback(),window.addEventListener("message",this.onWindowMessage)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("message",this.onWindowMessage)}setIframe(N){this.iframe=N}setIframeComponentContent(){this.placeholder&&this.iframe&&this.placeholder.editable.innerHTML&&this.iframe.contentWindow.postMessage({type:"feaasUpdate",id:this.editedUID,content:this.placeholder.editable.innerHTML})}setPlaceholder(){if(!this.iframe)return;let N=this.iframe.clientWidth,I=this.iframe.clientHeight,T=this.iframe.getBoundingClientRect(),P=this.getPlaceholder(),D=document.body.getBoundingClientRect(),M=this.measurements[this.editedUID];M&&(Object.assign(P.clipper.style,{position:"absolute",top:T.top+this.iframe.clientTop-D.top+"px",left:T.left+this.iframe.clientLeft-D.left+"px",width:N+"px",height:I+"px",pointerEvents:"none",zIndex:1,overflow:"hidden"}),Object.assign(P.positionable.style,{position:"absolute",top:M.top+"px",left:M.left+"px",width:M.width+"px",zIndex:2,transition:"opacity 0.4s",pointerEvents:this.props.hidden?"none":"all"}),Object.assign(P.loader.style,{position:"absolute",top:M.top+"px",left:M.left+"px",width:M.width+"px",height:M.height+"px",filter:"opacity(0.6)",zIndex:3,pointerEvents:"none"}),document.dispatchEvent(new Event("feaasRefresh",{bubbles:!0})))}getPlaceholder(){return this.placeholder||(this.placeholder={clipper:document.createElement("div"),positionable:document.createElement("div"),editable:Object.assign(document.createElement("div"),{className:"-feaas"}),loader:document.createElement("feaas-loader")},this.placeholder.clipper.appendChild(this.placeholder.positionable),this.placeholder.positionable.appendChild(this.placeholder.editable),this.placeholder.clipper.appendChild(this.placeholder.loader)),this.placeholder}attributeChangedCallback(N,I,T){I!==T&&("hidden"==N&&(this.style.setProperty("display","block","important"),this.style.setProperty("transition","opacity 0.3s","important"),T?(this.style.setProperty("opacity","0","important"),this.style.pointerEvents="none"):(this.style.setProperty("opacity","1","important"),this.style.pointerEvents="all")),super.attributeChangedCallback(N,I,T))}open(){clearTimeout(this.closing),this.removeAttribute("hidden"),this.removeAttribute("changed"),this.setLoadingState()}shouldFork(N){return null==N.forkOriginId&&null!=this.props.instance}cleanup(){var N;this.placeholder&&(null==(N=this.placeholder.clipper)||N.remove(),this.placeholder=null)}close(){console.log("Editor is not ready")}unfork(){console.log("Editor is not ready")}discard(){console.log("Editor is not ready")}save(){console.log("Editor is not ready")}setVersionContext(N){console.log("Editor is not ready")}setEditorContext(N){console.log("Editor is not ready")}setLoadingState(){this.showLoader(),this.setAttribute("state","loading")}setReadyState(){this.hideLoader(),this.setEditorContext({activeVersionId:this.component.versions[0].id}),this.setAttribute("state","ready")}render({children:N,component:I,version:T,instance:P},{Editor:D,VersionStatusList:M,VersionStatusButton:R,Version:L,VersionMenu:$,EditorUIUndo:F,EditorUIMode:B,React:{useEffect:U,useMemo:H,useState:z,useContext:W},Chakra:{HStack:q,Box:G,Button:K,MenuItem:V},Chrome:Y,ReactDOM:J,useSDK:Q,useLibrary:Z,useSlots:X,useModelObserver:ee,ConfirmationContext:et,VersionContext:er}){if(!this.payload)return;let{React:en}=this.payload,ea=Q(),ei=Z(),[eo,es]=z(),{setConfirm:el}=W(et),ec=P||T;eo&&(this.component=eo),U(()=>
1246{if(this.props.hidden)return;let N=ei.components.getItem(I).clone();return N.versions.search({ids:[T,P].filter(Boolean),componentIds:[I]}).then(I=>{N.versions.setItems(I);let D=N.findVersion(P,["staged","published"]),M=N.findVersion(T,["staged","published"]);if(D)D.deletedAt?(D.getDraft().changeAndNotify(M.toProperties()).restore(),console.error("FEAAS Editor: Restoring fork")):(console.error("FEAAS Editor: Pre-forked"),this.setAttribute("forked",D.id));else if(this.removeAttribute("forked"),this.shouldFork(M)){console.error("FEAAS Editor: Forking");let N=M.fork(P).id;this.setAttribute("instance",N)}else console.error("FEAAS Editor: Regular");es(N)}),()=>{this.closing=setTimeout(()=>{this.closing=null,this.cleanup(),es(null)},400)}},[T,this.props.hidden]);let eu=ee(null==eo?void 0:eo.versions,[]).filter(N=>N.id==ec),ed=eu[0];ed&&!this.props.hidden&&(this.version=ed),U(()=>(this.unfork=()=>{el({title:"Reverting component customizations",button:"Discard",body:"Are you sure to reset component to its original state? All changes will be lost.",action:()=>{let N=eo.findVersion(T,["staged","published"]);eo.findVersion(P).unstage().unpublish().changeAndNotify(N.toProperties()),eo.saveVersions(!1),this.setVersionContext({needsWrite:!0}),this.removeAttribute("forked"),requestAnimationFrame(this.onClose)}})},this.discard=()=>{this.props.changed&&(eo.findVersion(ec).revert(),eo.saveVersions(!1),this.setVersionContext({needsWrite:!0}))},this.close=()=>{el({title:"Component has unsaved changes",button:"Discard",body:"Are you sure to close editor and discard changes?",bypass:!this.props.changed,action:()=>{this.discard(),requestAnimationFrame(this.onClose)}})},this.save=()=>{el({bypass:!!this.props.forked,title:"Customizing component",button:"Save",body:"Changes to the component will only be visible on that page. Changes to component done in Component Builder will not be reflected here. It will be possible to revert the customization.",action:()=>{var N,I;null==(I=null==(N=eo.findVersion(ec).commitData({view:this.editorContext.editor.getData({rootName:ec}),model:""}))?void 0:N.stage())||I.publish(),this.removeAttribute("changed"),this.setAttribute("forked",ec),eo.saveVersions(!1)}})},()=>{delete this.unfork,delete this.discard,delete this.save,delete this.editorContext,delete this.versionContext,delete this.setEditorContext,delete this.setVersionContext}),[eo]);let ef=H(()=>this.target,[eo]);return H(()=>eo&&X(N,({picker:N,children:I})=>en.createElement(G,{ref:N=>{this.chrome=N?{positionable:N,wrapper:N.querySelector(".editor-chrome"),absolute:this.querySelector(".ui.overlays")}:null}},en.createElement(G,{className:"editor-wrapper",position:"absolute",left:0,top:0},en.createElement(D,{datasources:ea.datasources,sdk:ea,library:ei,component:eo,versions:eu,context:{isAutosaveEnabled:!1,onChromeMeasure:this.onMeasure,onChromeBeforeMeasure:this.onBeforeMeasure,onChromeMeasureElement:this.onChromeMeasureElement,onChromePosition:this.onPosition,onContentChange:this.onContentChange}},{exports:this.onEditorStateChange,after:I,chrome:({editor:N})=>N&&en.createElement(Y,null),children:({isArchivedDisplayed:N,editor:I,status:T})=>en.createElement(G,{position:"absolute",left:0,top:0,className:"editor-chrome",p:4,boxShadow:"2xl",pointerEvents:"none",opacity:0,transition:"opacity 0.3s"},en.createElement(G,{left:0,width:"4",top:0,bottom:0,backdropFilter:"blur(2px)",background:"rgb(244 244 244 / 80%)",position:"absolute"}),en.createElement(G,{right:0,width:"4",top:0,bottom:0,backdropFilter:"blur(2px)",background:"rgb(244 244 244 / 80%)",position:"absolute"}),en.createElement(G,{top:0,height:"16",left:0,right:0,backdropFilter:"blur(2px)",background:"rgb(244 244 244 / 80%)",position:"absolute"}),en.createElement(G,{bottom:0,height:"4",left:0,right:0,backdropFilter:"blur(2px)",background:"rgb(244 244 244 / 80%)",position:"absolute"}),ed&&en.createElement(L,{version:ed,node:ef,ignoreBreakpoints:!0,deps:[this.props.forked,this.props.changed]},{exports:this.onVersionStateChange,left:en.createElement(q,{justifyContent:"space-between"},en.createElement(F,{size:"sm",editor:"ready"==T?I:null}),en.createElement(B,{size:"sm"})),middle:(N,I)=>[!1],right:en.createElement(en.Fragment,null,en.createElement(K,{variant:"secondary",size:"sm",onClick:this.close},"Close"),en.createElement(K,{variant:"primary",size:"sm",onClick:this.save,isDisabled:!this.props.changed},this.props.changed?this.props.forked?"Save":"Save customization":"Up to date"),en.createElement($,{isDisabled:!this.props.forked&&!this.props.changed},en.createElement(V,{onClick:this.unfork,isDisabled:!this.props.forked},"Unfork"),en.createElement(V,{onClick:this.discard,isDisabled:!this.props.changed},"Discard")))}))})))),[ed,this.props.forked,this.props.changed])}isReadyToLoad(){return null!=this.props.component&&null!=this.props.version&&!this.props.hidden}};function t1(N){var I,T;return{part:(null==N?void 0:N.getAttribute("part"))||"picker",slot:(null==N?void 0:N.getAttribute("part"))||"picker",mode:null==N?void 0:N.getAttribute("mode"),dialog:null==N?void 0:N.getAttribute("dialog"),placeholder:(null==N?void 0:N.getAttribute("placeholder"))||"No theme",frontend:null!=(I=null==N?void 0:N.getContextAttribute("frontend"))?I:"https://components.sitecorecloud.io",src:null!=(T=null==N?void 0:N.getAttribute("src"))?T:"/picker.js",hidden:(null==N?void 0:N.getAttribute("hidden"))!=null,variant:null==N?void 0:N.getAttribute("variant"),context:void 0,onClose:void 0,setAttribute:void 0,getAttribute:void 0}}t0.observedAttributes=["library","component","version","revision","hidden","state","changed","forked"],t0.register("feaas-editor");var t2=class extends ti{constructor(){super(...arguments),this.defaultProps={hidden:!1}}getProps(){return t1(this)}load(){return this.import(this.formatURL(this.props.src,this.props.frontend))}connectedCallback(){this.setAttribute("feaas-role","ui"),super.connectedCallback()}render({placeholder:N,context:I,mode:T,dialog:P,children:D,variant:M},{Picker:R,React:L,useContext:$,EnvironmentContext:F,useLibrary:B,useSDK:U,BYOC:H}){let[z,W]=L.useReducer(N=>N+1,0),q=U(),G=$(F),K=B("collections"),V=B("components"),Y=U("datasources"),J=B(),Q=(null==(ee=null==(X=null==J?void 0:J.stylesheets)?void 0:X.first)?void 0:ee.rules)||(null==(et=null==J?void 0:J.stylesheet)?void 0:et.styles),Z=U("renderingHost.expandedComponents");var X,ee,et,er=null==I?void 0:I.getAttribute("data");if(er)try{er=JSON.parse(er)}catch(N){}if(I)var en=q.ExternalComponent.getDefinition(I),ea=en&&!en.getConfiguration(I),ei=(null==en?void 0:en.type)=="feaas"?V.find(N=>N.id==I.getAttribute("component")):null==H?void 0:H.getComponent(String(I.getAttribute("data-external-id")));return L.createElement(R,{cdn:G.cdn,rules:Q,collections:K,themeContext:I,placeholder:N,embed:ei,externalComponents:Z,datasources:Y,data:er,versionId:null==I?void 0:I.getAttribute("version"),mode:T||(ea?"library":ei?"context":null),setAttribute:(N,I,T)=>{"data"==I&&T&&(T=JSON.stringify(T)),this.props.setAttribute(N,I,T),W()},getAttribute:(N,T)=>null==I?void 0:I.getAttribute(T),dialog:P,context:I,variant:M,onModeChange:(N,I)=>{this.set({mode:N,dialog:I})}},D)}};function t3(N){var I,T,P,D,M;return{library:null==N?void 0:N.getAttribute("library"),src:null!=(I=null==N?void 0:N.getAttribute("src"))?I:"/context.js",environment:null!=(T=null==N?void 0:N.getAttribute("environment"))?T:void 0,frontend:null!=(P=null==N?void 0:N.getAttribute("frontend"))?P:"https://components.sitecorecloud.io",backend:null!=(D=null==N?void 0:N.getAttribute("backend"))?D:"https://components.sitecorecloud.io/api",cdn:null!=(M=null==N?void 0:N.getAttribute("cdn"))?M:"https://feaas.blob.core.windows.net",auth:null,isolate:(null==N?void 0:N.getAttribute("isolate"))==null||(null==N?void 0:N.getAttribute("isolate"))=="true"}}t2.observedAttributes=["library","mode","frontend","src","hidden","variant","dialog"],t2.register("feaas-picker");var t4=class extends ti{constructor(){super(...arguments),this.defaultProps={isolate:!0},this.onStatusChange=(N,I)=>{"ready"==N&&(this.whenSDKReady.resolve(I),this.dispatchEvent(new CustomEvent("feaasReady",{bubbles:!0,composed:!0,detail:I})))},this.whenSDKReady=tn(N=>{this.sdk=N})}getProps(){return t3(this)}load(){return this.import(this.formatURL(this.props.src,this.props.frontend))}isReadyToLoad(){return super.isReadyToLoad()&&null!=this.props.library}getTheme(N){return N}getRoot(){return"false"===this.getAttribute("isolate")?this:this.shadowRoot||this.attachShadow({mode:"open"})}getReactRootElement(){return this.reactRootElement||(this.reactRootElement=document.createElement("div"),this.getRoot().appendChild(this.reactRootElement)),this.reactRootElement}connectedCallback(){this.setAttribute("feaas-role","ui"),Array.from(this.children).forEac
1246h(N=>{this.getRoot().appendChild(N)}),document.addEventListener("feaasMount",this),document.addEventListener("feaasUnmount",this),super.connectedCallback()}disconnectedCallback(){document.removeEventListener("feaasMount",this),document.removeEventListener("feaasUnmount",this),super.disconnectedCallback()}getPortalRoot(){return this.getRoot()}render({children:N,library:I},{AppContext:T,Chakra:{Button:P,Tooltip:D},React:M}){let R={containerRef:{current:this.getPortalRoot()}};return D.defaultProps={hasArrow:!0,placement:"top",portalProps:R},M.createElement(T,{environment:this.props.environment,backend:this.props.backend,libraryId:this.props.library,container:this.getRoot(),auth:this.props.auth,getTheme:this.getTheme,onStatusChange:this.onStatusChange,modalProps:{portalProps:R},chakraProps:{resetScope:':where([feaas-role="ui"])',cssVarsRoot:":host",resetCSS:!0,toastOptions:{portalProps:R}}},N)}};t4.observedAttributes=["library","component","version","revision","hostname","template"],t4.register("feaas-context"),t4.prototype.clientside=tr;var t5=D.Rf;function t6(N){return t5(D.xv(Array.from(N.attributes).reduce((N,{name:I,value:T})=>("data-external-id"==I&&(I="component-name"),Object.assign(N,{[I]:T})),{}))).merged}var t8=class extends ti{load(){return Promise.all([import("https://cdn.skypack.dev/react-dom/client")]).then(([N])=>({React:M,ReactDOM:W,ReactDOMClient:N}))}connectedCallback(){this._setAttribute||(this._setAttribute=this.setAttribute,this.setAttribute=function(N,I){let T=this.getAttribute(I);this._setAttribute(N,I),this.attributeChangedCallback(N,T,I)}),super.connectedCallback()}update(){var N;if(!(!(null!=(N=D.QQ(this.getComponentName()))&&N.component)&&"false"==this.getAttribute("hydrate")))return super.update()}render(N,{React:I}){var T;let P=null==(T=D.QQ(this.getComponentName()))?void 0:T.component;return P||console.warn(`FEAASExternal: \`${this.getComponentName()}\` is not registered`),I.createElement(I.Fragment,null,P&&I.createElement(P,{componentName:this.getComponentName(),...N}))}getComponentName(){return this.getAttribute("data-external-id")}getProps(){return t6(this)}static Preview(N){var I;let T=(null==N?void 0:N.src)||("u">typeof window?null==(I=window.location.search.match(/feaasSrc=([^&]+)/))?void 0:I[1]:null);return T?M.createElement(rf,{src:T,...N}):null}static linkComponents(N){return()=>N.map(N=>null)}};t8.registered=D.HZ,t8.registerComponent=D.Nj,t8.setRegistrationCallback=D.Tr,t8.getComponent=D.QQ,t8.register("feaas-external");var{linkComponents:t7}=t8,t9={};function re(N,I){t9[N]=I}function rt(N){return null==N||!0===N?["template","stylesheet","data"]:[].concat(N||[])}var rr=N=>("src"in N&&(N=tx(N.src)),M.createElement("link",{rel:"stylesheet",href:tw(N)})),rn=async({data:N,fetch:I,...T})=>{let P=await e7.fetch(N||{});I=rt(null!=I?I:["stylesheet"]);let D={...T};if(("src"in T||"component"in T)&&(null==T?void 0:T.template)==null){let N=await t_(T);D.template=N.template,D.lastModified=N.lastModified}else(null==T?void 0:T.template)!=null||I.includes("template")||I.push("template");return ra({...D,data:N,fetch:I,fetchedData:P})};function ra({data:N,lastModified:I,fetchedData:T,renderNode:P,...R}){let L=null,$;"template"in R&&R.template&&($=e4(R.template,T||N||{}).map((N,I)=>ri(N,(N,I)=>{if(P){let T=null==P?void 0:P(N,I);if(null!=T&&"type"in T)return[T.type,T.props];I={...I,...T}}if(t9[N.localName])return[t9[N.localName],I];if("feaas-external"==N.localName){let N={};for(var T in I)N["data-external-id"==T?"componentName":D.Cb(T)]=I[T];return[U,N]}},I))),"src"in R&&(R={...tb(R.src),...R});let F=rt(R.fetch),B=F.includes("data")?N:F.includes("template")?T||N:null;return M.createElement(M.Fragment,null,"preload"in R&&!0===L&&"src"in R&&M.createElement(M.Fragment,null,M.createElement("link",{rel:"preload",as:"fetch",href:tA(R.src),crossOrigin:"anonymous"}),M.createElement("link",{rel:"preload",as:"style",href:tE(R.src),crossOrigin:"anonymous"})),M.createElement("feaas-component",{class:"-feaas",...R,"last-modified":I?String(I):null,fetch:null==R.fetch?R.fetch:[].concat(R.fetch).join(" "),suppressHydrationWarning:!0,template:null,data:"string"==typeof B?B:B?JSON.stringify(B):null},$))}function ri(N,I,T){var P;if(3===N.nodeType)return N.textContent;let R=Array.from(N.childNodes).map((N,T)=>ri(N,I,T)),L={};for(let I=0;I<N.attributes.length;I++){let{name:T,value:P}=N.attributes[I];"style"==T?L[T]=String(P||"").trim().split(/\s*;\s*/).reduce((N,I)=>{let[T,P]=I.split(":");return{...N,[D.Cb(T)]:P}},{}):"class"==T?L.className=P:L[T]=P}let $=null==I?void 0:I(N,L),F=(null==$?void 0:$[0])||N.nodeName.toLowerCase();"style"==F&&(L.dangerouslySetInnerHTML={__html:R.join(` 1247`)});let B=Object.assign({key:T,suppressHydrationWarning:!0},(null==$?void 0:$[1])||L),U=(null==(P=null==$?void 0:$[1])?void 0:P.children)||R;return M.createElement(F,B,["img","br","input","style"].includes(F)?null:U)}var ro=B,rs=D.ZB,rl=H,rc=U,ru=z,rd=F,rf=ra,rh=rn,rp=rr},74355:N=>{function I(){return N.exports=I=Object.assign?Object.assign.bind():function(N){for(var I=1;I<arguments.length;I++){var T=arguments[I];for(var P in T)({}).hasOwnProperty.call(T,P)&&(N[P]=T[P])}return N},N.exports.__esModule=!0,N.exports.default=N.exports,I.apply(null,arguments)}N.exports=I,N.exports.__esModule=!0,N.exports.default=N.exports},74624:(N,I,T)=>{"use strict";T.d(I,{R:()=>G});var P=T(86170),D=T(60409),M=T(10988),R=T(65212);T(19472);let L=` 1248 fragment contactCardData on Item { 1249 ... on ContactCard { 1250 contactCardPicture { 1251 src 1252 alt 1253 } 1254 } 1255 } 1256`,$=(N,I,T)=>(0,P.A)(!0).request(` 1257 query ($path: String!, $language: String!) { 1258 item(path: $path, language: $language) { 1259 id 1260 } 1261 } 1262 `,{path:N,language:I}).then(N=>
1262N?.item?.id?.toSitecoreGUID()??null).catch(N=>(R.A.ui(`Failed to fetch ${T} folder id`,N),null)),F=N=>$(D.wT,N,"Global Contact Cards"),B=async(N,I)=>{let T=await (0,M.X)(N,I),P=T?.contentRoot?.path?.trim();return P?$(`${P}/${D.$d}`,I,"Local Contact Cards"):null},U=(N,I,T,M)=>(0,P.A)(!0).request(` 1263 ${L} 1264 1265 query ($folderPathId: String!, $fieldValue: String!, $language: String!) { 1266 ContactCardData: search( 1267 where: { 1268 AND: [ 1269 { name: "_path", value: $folderPathId, operator: CONTAINS } 1270 { 1271 name: "_templates" 1272 value: "${D.Zf}" 1273 operator: CONTAINS 1274 } 1275 { name: "_language", value: $language, operator: CONTAINS } 1276 { name: "${I}", value: $fieldValue, operator: EQ } 1277 ] 1278 } 1279 first: 1 1280 ) { 1281 results: results { 1282 ...contactCardData 1283 } 1284 } 1285 } 1286 `,{folderPathId:N,fieldValue:T,language:M}).then(N=>N?.ContactCardData?.results?.[0]?.contactCardPicture??null).catch(N=>(R.A.ui(`Failed to fetch contact card by ${I}`,N),null)),H=N=>N?.src?{src:N.src,alt:N.alt}:null,z=N=>{let I=N?.trim()||D.Xn;return I===D.Xn?[D.Xn]:[I,D.Xn]},W=async(N,I,T,P)=>{if(!N)return null;for(let{field:D,value:M}of[{field:"contactCardName",value:I},{field:"contactCardEmail",value:T}]){if(!M)continue;let I=H(await U(N,D,M,P));if(I)return I}return null},q=async(N,I,T,P)=>{let D=await F(T),M=await W(D,N,I,T);if(M)return M;let R=P?.trim();return R?W(await B(R,T),N,I,T):null},G=async(N,I,T,P)=>{let D=N?.trim(),M=I?.trim();if(!D&&!M)return null;for(let N of z(T)){let I=await q(D,M,N,P);if(I)return I}return null}},75042:(N,I,T)=>{"use strict";T.d(I,{U:()=>D});var P=T(95121);let D=({listId:N,name:I,offices:T})=>0===T.length?null:{"@context":P.WX,"@type":"ItemList","@id":N,name:I,itemListElement:T.map((N,I)=>({"@type":"ListItem",position:I+1,name:N.name,url:N.url}))}},75217:(N,I,T)=>{"use strict";T.d(I,{Y:()=>K});var P=T(80663),D=T(85843);let M=/^(\d+)(\.)?/i,R=/\d+/i,L={narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},$={any:[/^v/i,/^n/i]},F={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},B={any:[/1/i,/2/i,/3/i,/4/i]},U={narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(jänner|januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},H={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},z={narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},W={any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},q={narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},G={any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},K={ordinalNumber:(0,D.K)({matchPattern:M,parsePattern:R,valueCallback:N=>parseInt(N)}),era:(0,P.A)({matchPatterns:L,defaultMatchWidth:"wide",parsePatterns:$,defaultParseWidth:"any"}),quarter:(0,P.A)({matchPatterns:F,defaultMatchWidth:"wide",parsePatterns:B,defaultParseWidth:"any",valueCallback:N=>N+1}),month:(0,P.A)({matchPatterns:U,defaultMatchWidth:"wide",parsePatterns:H,defaultParseWidth:"any"}),day:(0,P.A)({matchPatterns:z,defaultMatchWidth:"wide",parsePatterns:W,defaultParseWidth:"any"}),dayPeriod:(0,P.A)({matchPatterns:q,defaultMatchWidth:"wide",parsePatterns:G,defaultParseWidth:"any"})}},75402:(N,I,T)=>{let P=T(77254),D=T(85418),M=T(79289),R=Symbol(),L=(N,{alg:I,use:T})=>{let P=0;return I&&N.alg&&P++,T&&N.use&&P++,P};function $(N){switch("string"==typeof N&&N.slice(0,2)){case"RS":case"PS":return"RSA";case"ES":return"EC";case"Ed":return"OKP";default:return}}function F(N,I,T,D){if(I)return new Set([I]);switch(T){case"EC":{let I=[];if(("enc"===N||void 0===N)&&(I=I.concat(["ECDH-ES","ECDH-ES+A128KW","ECDH-ES+A192KW","ECDH-ES+A256KW"])),"sig"===N||void 0===N)switch(D){case"P-256":case"P-384":I=I.concat([`ES${D.slice(-3)}`]);break;
1286case"P-521":I=I.concat(["ES512"]);break;case"secp256k1":"node:crypto"===P.cryptoRuntime&&(I=I.concat(["ES256K"]))}return new Set(I)}case"OKP":return new Set(["ECDH-ES","ECDH-ES+A128KW","ECDH-ES+A192KW","ECDH-ES+A256KW"]);case"RSA":{let I=[];return("enc"===N||void 0===N)&&(I=I.concat(["RSA-OAEP","RSA-OAEP-256","RSA-OAEP-384","RSA-OAEP-512"]),"node:crypto"===P.cryptoRuntime&&(I=I.concat(["RSA1_5"]))),("sig"===N||void 0===N)&&(I=I.concat(["PS256","PS384","PS512","RS256","RS384","RS512"])),new Set(I)}default:throw Error("unreachable")}}N.exports=class{#e_;constructor(N,I){if(N!==R)throw Error("invalid constructor call");this.#e_=I}toJWKS(){return{keys:this.map(({jwk:{d:N,p:I,q:T,dp:P,dq:D,qi:M,...R}})=>R)}}all({alg:N,kid:I,use:T}={}){if(!T||!N)throw Error();let P=$(N),D={alg:N,use:T};return this.filter(D=>{let M=!0;return void 0!==P&&D.jwk.kty!==P&&(M=!1),M&&void 0!==I&&D.jwk.kid!==I&&(M=!1),M&&void 0!==T&&void 0!==D.jwk.use&&D.jwk.use!==T&&(M=!1),M&&D.jwk.alg&&D.jwk.alg!==N?M=!1:D.algorithms.has(N)||(M=!1),M}).sort((N,I)=>L(I,D)-L(N,D))}get(...N){return this.all(...N)[0]}static async fromJWKS(N,{onlyPublic:I=!1,onlyPrivate:T=!1}={}){if(!M(N)||!Array.isArray(N.keys)||N.keys.some(N=>!M(N)||!("kty"in N)))throw TypeError("jwks must be a JSON Web Key Set formatted object");let L=[];for(let M of N.keys){let{kty:N,kid:R,crv:$}=M=D(M),{alg:B,use:U}=M;if("string"==typeof N&&N&&(void 0===U||"sig"===U||"enc"===U)&&("string"==typeof B||void 0===B)&&("string"==typeof R||void 0===R)){if("EC"===N&&"sig"===U)switch($){case"P-256":B="ES256";break;case"P-384":B="ES384";break;case"P-521":B="ES512"}if("secp256k1"===$&&(U="sig",B="ES256K"),"OKP"===N)switch($){case"Ed25519":case"E
1286d448":U="sig",B="EdDSA";break;case"X25519":case"X448":U="enc"}if(B&&!U)switch(!0){case B.startsWith("ECDH"):case B.startsWith("RSA"):U="enc"}if(T&&("oct"===M.kty||!M.d))throw Error("jwks must only contain private keys");I&&(M.d||M.k)||L.push({jwk:{...M,alg:B,use:U},async keyObject(N){if(this[N])return this[N];let I=await P.importJWK(this.jwk,N);return this[N]=I,I},get algorithms(){return Object.defineProperty(this,"algorithms",{value:F(this.jwk.use,this.jwk.alg,this.jwk.kty,this.jwk.crv),enumerable:!0,configurable:!1}),this.algorithms}})}}return new this(R,L)}filter(...N){return this.#e_.filter(...N)}find(...N){return this.#e_.find(...N)}every(...N){return this.#e_.every(...N)}some(...N){return this.#e_.some(...N)}map(...N){return this.#e_.map(...N)}forEach(...N){return this.#e_.forEach(...N)}reduce(...N){return this.#e_.reduce(...N)}sort(...N){return this.#e_.sort(...N)}*[Symbol.iterator](){for(let N of this.#e_)yield N}}},75499:(N,I,T)=>{N.exports=new(T(69288))({max:100})},75636:(N,I,T)=>{"use strict";T.d(I,{HC:()=>R,O2:()=>$,jl:()=>L,ku:()=>M});var P=T(46615),D=T(60409);let M=(N=D.Xn,I,T)=>{if(!T)return{hide:!0,currency:"",min:0,max:0,benefits:"",frequency:""};let P=T?.salaryPeriod?I?.[`vacancy-salary-frequency-${T.salaryPeriod}`]:"";return{hide:!!T?.salaryHide,currency:T?.salaryCurrency?new Intl.NumberFormat(T?.publicationLanguage??N,{style:"currency",currency:T.salaryCurrency,currencyDisplay:"symbol",minimumFractionDigits:0,maximumFractionDigits:0}).formatToParts(0).find(N=>"currency"===N.type)?.value??"":"",min:T?.salaryMin??0,max:T?.salaryMax??0,benefits:T?.salaryBenefits??"",frequency:T?.salaryPeriod&&P?` ${P}`:` [vacancy-salary-frequency-${T.salaryPeriod}]`}},R=(N,I=!1)=>{if(!N||N.hide)return"";let T=I?"":" / ",P="";return N.currency&&(P=P.concat(N.currency+" ")),N.min&&N.max?P=P.concat(`${N.min} - ${N.max}`):N.min?P=P.concat(`${N.min}`):N.max&&(P=P.concat(`${N.max}`)),(P=P.concat(` ${N.frequency}`))?T.concat(P):""},L=N=>{let I=/(VC|PUB|IPUB|PR-|TR-|CR-|VC-|CP-|PR|[0-9]{4}-)[0-9]{2,10}$|(\b[A-Za-z0-9]{32})/gim,T=N?.match(I)?.[0]??null;return T?.toLowerCase()};function $(N,I=D.Xn){let T=L(N);return T?P.u.getByPublicationId(T,I,12e4):null}},75677:(N,I,T)=>{"use strict";T.r(I),T.d(I,{isPathHidden:()=>P});let P=(N,I,T)=>{if("string"!=typeof T||!T.trim())return!1;let P=N.split(/[?#]/)[0]||"",D=I?`/${I}${P}`:P,M=[N,P,D];return T.split(/[;,]/).map(N=>N.trim()).filter(Boolean).some(N=>M.some(I=>I.startsWith(N)))}},75984:(N,I,T)=>{"use strict";T.d(I,{A:()=>D});var P=T(52770);let D={form:(0,P.wV)(`${P.DS}:form`),layout:(0,P.wV)(`${P.DS}:layout`),dictionary:(0,P.wV)(`${P.DS}:dictionary`),editing:(0,P.wV)(`${P.DS}:editing`),sitemap:(0,P.wV)(`${P.DS}:sitemap`),multisite:(0,P.wV)(`${P.DS}:multisite`),robots:(0,P.wV)(`${P.DS}:robots`),llmsTxt:(0,P.wV)(`${P.DS}:llmsTxt`),redirects:(0,P.wV)(`${P.DS}:redirects`),personalize:(0,P.wV)(`${P.DS}:personalize`),locale:(0,P.wV)(`${P.DS}:locale`),errorpages:(0,P.wV)(`${P.DS}:errorpages`)}},76111:(N,I,T)=>{"use strict";T.r(I),T.d(I,{ServerError:()=>K,__N_SSG:()=>G,default:()=>V});var P=T(37876),D=T(63366),M=T(55333),R=T(77328),L=T.n(R),$=T(89099),F=T(2650),B=T(30463),U=T(60409),H=T(33657),z=T(5419),W=T(63341),q=T(69452),G=!0;let K=({locale:N})=>{let I=(0,F.s9)()?.table(N),T=(0,$.useRouter)(),R="string"==typeof T.query.error?decodeURIComponent(T.query.error):"";return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(L(),{children:(0,P.jsx)("title",{children:I["server-error"]})}),(0,P.jsxs)("div",{className:"mx-auto mt-20 max-w-max rounded-2xl border border-accent-old-lace bg-white p-12 text-center shadow-lg",children:[(0,P.jsx)(D.In,{name:"logo",alt:"Brunel Logo",className:"mb-8 w-30"}),(0,P.jsx)("h1",{className:"mb-4 text-d-h2 tracking-wide text-brunel-dark-grey md:text-d-h2",children:I["server-error-title"]}),(0,P.jsx)("p",{className:"mb-7 text-brunel-dark-grey",children:I["server-error-message"]}),R?(0,P.jsx)("p",{className:"mb-6 rounded-lg border border-accent-old-lace bg-gray-50 px-4 py-3 text-sm text-brunel-dark-grey",children:R}):null,(0,M.Cx)()&&(0,P.jsx)("p",{children:decodeURIComponent(new URLSearchParams(window.location.search).get("error")||"Error unavailable")}),(0,P.jsx)("a",{href:`/${B.A?.defaultLanguage||U.Xn}`,className:"inline-block rounded-lg bg-brunel-yellow px-8 py-3 font-bold text-brunel-dark-grey shadow",children:I["go-to-home"]})]})]})},V=N=>N?.page?(0,P.jsx)(W.A,{componentProps:N.componentProps,page:N.page,children:(0,P.jsx)(H.q,{id:z.G.Default,page:N.page})}):(0,P.jsx)(F.CY,{lngDict:q.S[N.locale],locale:N.locale,children:(0,P.jsx)(K,{locale:N.locale??U.Xn})})},76588:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),function(N,I){for(var T in I)Object.defineProperty(N,T,{enumerable:!0,get:I[T]})}(I,{ServerInsertedHTMLContext:function(){return D},useServerInsertedHTML:function(){return M}});let P=T(88365)._(T(14232)),D=P.default.createContext(null);function M(N){let I=(0,P.useContext)(D);I&&I(N)}},76984:(N,I,T)=>{"use strict";T.d(I,{s:()=>R});
1286class P extends Error{}function D(N){return decodeURIComponent(atob(N).replace(/(.)/g,(N,I)=>{let T=I.charCodeAt(0).toString(16).toUpperCase();return T.length<2&&(T="0"+T),"%"+T}))}function M(N){let I=N.replace(/-/g,"+").replace(/_/g,"/");switch(I.length%4){case 0:break;case 2:I+="==";break;case 3:I+="=";break;default:throw Error("base64 string is not of the correct length")}try{return D(I)}catch(N){return atob(I)}}function R(N,I){let T;if("string"!=typeof N)throw new P("Invalid token specified: must be a string");I||(I={});let D=+(!0!==I.header),R=N.split(".")[D];if("string"!=typeof R)throw new P(`Invalid token specified: missing part #${D+1}`);try{T=M(R)}catch(N){throw new P(`Invalid token specified: invalid base64 for part #${D+1} (${N.message})`)}try{return JSON.parse(T)}catch(N){throw new P(`Invalid token specified: invalid json for part #${D+1} (${N.message})`)}}P.prototype.name="InvalidTokenError"},77254:(N,I,T)=>{"use strict";T.r(I),T.d(I,{CompactEncrypt:()=>t3,CompactSign:()=>t6,EmbeddedJWK:()=>ri,EncryptJWT:()=>rt,FlattenedEncrypt:()=>tM,FlattenedSign:()=>t5,GeneralEncrypt:()=>tL,GeneralSign:()=>t7,SignJWT:()=>re,UnsecuredJWT:()=>ry,base64url:()=>D,calculateJwkThumbprint:()=>rn,calculateJwkThumbprintUri:()=>ra,compactDecrypt:()=>tC,compactVerify:()=>tH,createLocalJWKSet:()=>rf,createRemoteJWKSet:()=>rg,cryptoRuntime:()=>rC,decodeJwt:()=>rx,decodeProtectedHeader:()=>rw,errors:()=>P,exportJWK:()=>tT,exportPKCS8:()=>tI,exportSPKI:()=>tN,flattenedDecrypt:()=>tk,flattenedVerify:()=>tU,generalDecrypt:()=>tj,generalVerify:()=>tz,generateKeyPair:()=>r_,generateSecret:()=>rk,importJWK:()=>tp,importPKCS8:()=>th,importSPKI:()=>td,importX509:()=>tf,jwtDecrypt:()=>t2,jwtVerify:()=>t1});var P={};T.r(P),T.d(P,{JOSEAlgNotAllowed:()=>et,JOSEError:()=>Z,JOSENotSupported:()=>er,JWEDecompressionFailed:()=>ea,JWEDecryptionFailed:()=>en,JWEInvalid:()=>ei,JWKInvalid:()=>el,JWKSInvalid:()=>ec,JWKSMultipleMatchingKeys:()=>ed,JWKSNoMatchingKey:()=>eu,JWKSTimeout:()=>ef,JWSInvalid:()=>eo,JWSSignatureVerificationFailed:()=>eh,JWTClaimValidationFailed:()=>X,JWTExpired:()=>ee,JWTInvalid:()=>es});var D={};T.r(D),T.d(D,{decode:()=>rv,encode:()=>rb});let M=crypto,R=N=>N instanceof CryptoKey,L=async(N,I)=>{let T=`SHA-${N.slice(-3)}`;return new Uint8Array(await M.subtle.digest(T,I))},$=new TextEncoder,F=new TextDecoder,B=0x100000000;function U(...N){let I=new Uint8Array(N.reduce((N,{length:I})=>N+I,0)),T=0;return N.forEach(N=>{I.set(N,T),T+=N.length}),I}function H(N,I){return U($.encode(N),new Uint8Array([0]),I)}function z(N,I,T){if(I<0||I>=B)throw RangeError(`value must be >= 0 and <= ${B-1}. Received ${I}`);N.set([I>>>24,I>>>16,I>>>8,255&I],T)}function W(N){let I=Math.floor(N/B),T=N%B,P=new Uint8Array(8);return z(P,I,0),z(P,T,4),P}function q(N){let I=new Uint8Array(4);return z(I,N),I}function G(N){return U(q(N.length),N)}async function K(N,I,T){let P=Math.ceil((I>>3)/32),D=new Uint8Array(32*P);for(let I=0;I<P;I++){let P=new Uint8Array(4+N.length+T.length);P.set(q(I+1)),P.set(N,4),P.set(T,4+N.length),D.set(await L("sha256",P),32*I)}return D.slice(0,I>>3)}let V=N=>{let I=N;"string"==typeof I&&(I=$.encode(I));let T=32768,P=[];for(let N=0;N<I.length;N+=T)P.push(String.fromCharCode.apply(null,I.subarray(N,N+T)));return btoa(P.join(""))},Y=N=>V(N).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"),J=N=>{let I=atob(N),T=new Uint8Array(I.length);for(let N=0;N<I.length;N++)T[N]=I.charCodeAt(N);return T},Q=N=>{let I=N;I instanceof Uint8Array&&(I=F.decode(I)),I=I.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return J(I)}catch(N){throw TypeError("The input to be decoded is not correctly encoded.")}};
1286class Z extends Error{static get code(){return"ERR_JOSE_GENERIC"}constructor(N){var I;super(N),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,null==(I=Error.captureStackTrace)||I.call(Error,this,this.constructor)}}class X extends Z{static get code(){return"ERR_JWT_CLAIM_VALIDATION_FAILED"}constructor(N,I="unspecified",T="unspecified"){super(N),this.code="ERR_JWT_CLAIM_VALIDATION_FAILED",this.claim=I,this.reason=T}}class ee extends Z{static get code(){return"ERR_JWT_EXPIRED"}constructor(N,I="unspecified",T="unspecified"){super(N),this.code="ERR_JWT_EXPIRED",this.claim=I,this.reason=T}}class et extends Z{constructor(){super(...arguments),this.code="ERR_JOSE_ALG_NOT_ALLOWED"}static get code(){return"ERR_JOSE_ALG_NOT_ALLOWED"}}class er extends Z{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}static get code(){return"ERR_JOSE_NOT_SUPPORTED"}}class en extends Z{constructor(){super(...arguments),this.code="ERR_JWE_DECRYPTION_FAILED",this.message="decryption operation failed"}static get code(){return"ERR_JWE_DECRYPTION_FAILED"}}class ea extends Z{constructor(){super(...arguments),this.code="ERR_JWE_DECOMPRESSION_FAILED",this.message="decompression operation failed"}static get code(){return"ERR_JWE_DECOMPRESSION_FAILED"}}class ei extends Z{constructor(){super(...arguments),this.code="ERR_JWE_INVALID"}static get code(){return"ERR_JWE_INVALID"}}class eo extends Z{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}static get code(){return"ERR_JWS_INVALID"}}class es extends Z{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}static get code(){return"ERR_JWT_INVALID"}}class el extends Z{constructor(){super(...arguments),this.code="ERR_JWK_INVALID"}static get code(){return"ERR_JWK_INVALID"}}class ec extends Z{constructor(){super(...arguments),this.code="ERR_JWKS_INVALID"}static get code(){return"ERR_JWKS_INVALID"}}class eu extends Z{constructor(){super(...arguments),this.code="ERR_JWKS_NO_MATCHING_KEY",this.message="no applicable key found in the JSON Web Key Set"}static get code(){return"ERR_JWKS_NO_MATCHING_KEY"}}class ed extends Z{constructor(){super(...arguments),this.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS",this.message="multiple matching keys found in the JSON Web Key Set"}static get code(){return"ERR_JWKS_MULTIPLE_MATCHING_KEYS"}}class ef extends Z{constructor(){super(...arguments),this.code="ERR_JWKS_TIMEOUT",this.message="request timed out"}static get code(){return"ERR_JWKS_TIMEOUT"}}class eh extends Z{constructor(){super(...arguments),this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED",this.message="signature verification failed"}static get code(){return"ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}}let ep=M.getRandomValues.bind(M);function em(N){switch(N){case"A128GCM":case"A128GCMKW":case"A192GCM":case"A192GCMKW":case"A256GCM":case"A256GCMKW":return 96;case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return 128;default:throw new er(`Unsupported JWE Algorithm: ${N}`)}}let eg=N=>ep(new Uint8Array(em(N)>>3)),ey=(N,I)=>{if(I.length<<3!==em(N))throw new ei("Invalid Initialization Vector length")},eb=(N,I)=>{let T=N.byteLength<<3;if(T!==I)throw new ei(`Invalid Content Encryption Key length. Expected ${I} bits, got ${T} bits`)},ev=(N,I)=>{if(!(N instanceof Uint8Array))throw TypeError("First argument must be a buffer");if(!(I instanceof Uint8Array))throw TypeError("Second argument must be a buffer");if(N.length!==I.length)throw TypeError("Input buffers must have the same length");let T=N.length,P=0,D=-1;for(;++D<T;)P|=N[D]^I[D];return 0===P};function ew(N,I="algorithm.name"){return TypeError(`CryptoKey does not support this operation, its ${I} must be ${N}`)}function ex(N,I){return N.name===I}function eA(N){return parseInt(N.name.slice(4),10)}function eE(N){switch(N){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw Error("unreachable")}}function eS(N,I){if(I.length&&!I.some(I=>N.usages.includes(I))){let N="CryptoKey does not support this operation, its usages must include ";if(I.length>2){let T=I.pop();N+=`one of ${I.join(", ")}, or ${T}.`}else 2===I.length?N+=`one of ${I[0]} or ${I[1]}.`:N+=`${I[0]}.`;throw TypeError(N)}}
1286function e_(N,I,...T){switch(I){case"HS256":case"HS384":case"HS512":{if(!ex(N.algorithm,"HMAC"))throw ew("HMAC");let T=parseInt(I.slice(2),10);if(eA(N.algorithm.hash)!==T)throw ew(`SHA-${T}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!ex(N.algorithm,"RSASSA-PKCS1-v1_5"))throw ew("RSASSA-PKCS1-v1_5");let T=parseInt(I.slice(2),10);if(eA(N.algorithm.hash)!==T)throw ew(`SHA-${T}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!ex(N.algorithm,"RSA-PSS"))throw ew("RSA-PSS");let T=parseInt(I.slice(2),10);if(eA(N.algorithm.hash)!==T)throw ew(`SHA-${T}`,"algorithm.hash");break}case"EdDSA":if("Ed25519"!==N.algorithm.name&&"Ed448"!==N.algorithm.name)throw ew("Ed25519 or Ed448");break;case"ES256":case"ES384":case"ES512":{if(!ex(N.algorithm,"ECDSA"))throw ew("ECDSA");let T=eE(I);if(N.algorithm.namedCurve!==T)throw ew(T,"algorithm.namedCurve");break}default:throw TypeError("CryptoKey does not support this operation")}eS(N,T)}function ek(N,I,...T){switch(I){case"A128GCM":case"A192GCM":case"A256GCM":{if(!ex(N.algorithm,"AES-GCM"))throw ew("AES-GCM");let T=parseInt(I.slice(1,4),10);if(N.algorithm.length!==T)throw ew(T,"algorithm.length");break}case"A128KW":case"A192KW":case"A256KW":{if(!ex(N.algorithm,"AES-KW"))throw ew("AES-KW");let T=parseInt(I.slice(1,4),10);if(N.algorithm.length!==T)throw ew(T,"algorithm.length");break}case"ECDH":switch(N.algorithm.name){case"ECDH":case"X25519":case"X448":break;default:throw ew("ECDH, X25519, or X448")}break;case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":if(!ex(N.algorithm,"PBKDF2"))throw ew("PBKDF2");break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":{if(!ex(N.algorithm,"RSA-OAEP"))throw ew("RSA-OAEP");let T=parseInt(I.slice(9),10)||1;if(eA(N.algorithm.hash)!==T)throw ew(`SHA-${T}`,"algorithm.hash");break}default:throw TypeError("CryptoKey does not support this operation")}eS(N,T)}function eC(N,I,...T){if(T.length>2){let I=T.pop();N+=`one of type ${T.join(", ")}, or ${I}.`}else 2===T.length?N+=`one of type ${T[0]} or ${T[1]}.`:N+=`of type ${T[0]}.`;return null==I?N+=` Received ${I}`:"function"==typeof I&&I.name?N+=` Received function ${I.name}`:"object"==typeof I&&null!=I&&I.constructor&&I.constructor.name&&(N+=` Received an instance of ${I.constructor.name}`),N}let ej=(N,...I)=>eC("Key must be ",N,...I);function eO(N,I,...T){return eC(`Key for the ${N} algorithm must be `,I,...T)}let eN=N=>R(N),eI=["CryptoKey"];async function eT(N,I,T,P,D,R){let L,$;if(!(I instanceof Uint8Array))throw TypeError(ej(I,"Uint8Array"));let F=parseInt(N.slice(1,4),10),B=await M.subtle.importKey("raw",I.subarray(F>>3),"AES-CBC",!1,["decrypt"]),H=await M.subtle.importKey("raw",I.subarray(0,F>>3),{hash:`SHA-${F<<1}`,name:"HMAC"},!1,["sign"]),z=U(R,P,T,W(R.length<<3)),q=new Uint8Array((await M.subtle.sign("HMAC",H,z)).slice(0,F>>3));try{L=ev(D,q)}catch(N){}if(!L)throw new en;try{$=new Uint8Array(await M.subtle.decrypt({iv:P,name:"AES-CBC"},B,T))}catch(N){}if(!$)throw new en;return $}async function eP(N,I,T,P,D,R){let L;I instanceof Uint8Array?L=await M.subtle.importKey("raw",I,"AES-GCM",!1,["decrypt"]):(ek(I,N,"decrypt"),L=I);try{return new Uint8Array(await M.subtle.decrypt({additionalData:R,iv:P,name:"AES-GCM",tagLength:128},L,U(T,D)))}catch(N){throw new en}}let eD=async(N,I,T,P,D,M)=>{if(!R(I)&&!(I instanceof Uint8Array))throw TypeError(ej(I,...eI,"Uint8Array"));switch(ey(N,P),N){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return I instanceof Uint8Array&&eb(I,parseInt(N.slice(-3),10)),eT(N,I,T,P,D,M);case"A128GCM":case"A192GCM":case"A256GCM":return I instanceof Uint8Array&&eb(I,parseInt(N.slice(1,4),10)),eP(N,I,T,P,D,M);default:throw new er("Unsupported JWE Content Encryption Algorithm")}},eM=async()=>{throw new er('JWE "zip" (Compression Algorithm) Header Parameter is not supported by your javascript runtime. You need to use the `inflateRaw` decrypt option to provide Inflate Raw implementation.')},eR=async()=>{throw new er('JWE "zip" (Compression Algorithm) Header Parameter is not supported by your javascript runtime. You need to use the `deflateRaw` encrypt option to provide Deflate Raw implementation.')},eL=(...N)=>
1286{let I,T=N.filter(Boolean);if(0===T.length||1===T.length)return!0;for(let N of T){let T=Object.keys(N);if(!I||0===I.size){I=new Set(T);continue}for(let N of T){if(I.has(N))return!1;I.add(N)}}return!0};function e$(N){return"object"==typeof N&&null!==N}function eF(N){if(!e$(N)||"[object Object]"!==Object.prototype.toString.call(N))return!1;if(null===Object.getPrototypeOf(N))return!0;let I=N;for(;null!==Object.getPrototypeOf(I);)I=Object.getPrototypeOf(I);return Object.getPrototypeOf(N)===I}let eB=[{hash:"SHA-256",name:"HMAC"},!0,["sign"]];function eU(N,I){if(N.algorithm.length!==parseInt(I.slice(1,4),10))throw TypeError(`Invalid key size for alg: ${I}`)}function eH(N,I,T){if(R(N))return ek(N,I,T),N;if(N instanceof Uint8Array)return M.subtle.importKey("raw",N,"AES-KW",!0,[T]);throw TypeError(ej(N,...eI,"Uint8Array"))}let ez=async(N,I,T)=>{let P=await eH(I,N,"wrapKey");eU(P,N);let D=await M.subtle.importKey("raw",T,...eB);return new Uint8Array(await M.subtle.wrapKey("raw",D,P,"AES-KW"))},eW=async(N,I,T)=>{let P=await eH(I,N,"unwrapKey");eU(P,N);let D=await M.subtle.unwrapKey("raw",T,P,"AES-KW",...eB);return new Uint8Array(await M.subtle.exportKey("raw",D))};async function eq(N,I,T,P,D=new Uint8Array(0),L=new Uint8Array(0)){let F;if(!R(N))throw TypeError(ej(N,...eI));if(ek(N,"ECDH"),!R(I))throw TypeError(ej(I,...eI));ek(I,"ECDH","deriveBits");let B=U(G($.encode(T)),G(D),G(L),q(P));return F="X25519"===N.algorithm.name?256:"X448"===N.algorithm.name?448:Math.ceil(parseInt(N.algorithm.namedCurve.substr(-3),10)/8)<<3,K(new Uint8Array(await M.subtle.deriveBits({name:N.algorithm.name,public:N},I,F)),P,B)}async function eG(N){if(!R(N))throw TypeError(ej(N,...eI));return M.subtle.generateKey(N.algorithm,!0,["deriveBits"])}function eK(N){if(!R(N))throw TypeError(ej(N,...eI));return["P-256","P-384","P-521"].includes(N.algorithm.namedCurve)||"X25519"===N.algorithm.name||"X448"===N.algorithm.name}function eV(N){if(!(N instanceof Uint8Array)||N.length<8)throw new ei("PBES2 Salt Input must be 8 or more octets")}function eY(N,I){if(N instanceof Uint8Array)return M.subtle.importKey("raw",N,"PBKDF2",!1,["deriveBits"]);if(R(N))return ek(N,I,"deriveBits","deriveKey"),N;throw TypeError(ej(N,...eI,"Uint8Array"))}async function eJ(N,I,T,P){eV(N);let D=H(I,N),R=parseInt(I.slice(13,16),10),L={hash:`SHA-${I.slice(8,11)}`,iterations:T,name:"PBKDF2",salt:D},$={length:R,name:"AES-KW"},F=await eY(P,I);if(F.usages.includes("deriveBits"))return new Uint8Array(await M.subtle.deriveBits(L,F,R));if(F.usages.includes("deriveKey"))return M.subtle.deriveKey(L,F,$,!1,["wrapKey","unwrapKey"]);throw TypeError('PBKDF2 key "usages" must include "deriveBits" or "deriveKey"')}let eQ=async(N,I,T,P=2048,D=ep(new Uint8Array(16)))=>{let M=await eJ(D,N,P,I);return{encryptedKey:await ez(N.slice(-6),M,T),p2c:P,p2s:Y(D)}},eZ=async(N,I,T,P,D)=>{let M=await eJ(D,N,P,I);return eW(N.slice(-6),M,T)};function eX(N){switch(N){case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":return"RSA-OAEP";default:throw new er(`alg ${N} is not supported either by JOSE or your javascript runtime`)}}let e0=(N,I)=>{if(N.startsWith("RS")||N.startsWith("PS")){let{modulusLength:T}=I.algorithm;if("number"!=typeof T||T<2048)throw TypeError(`${N} requires key modulusLength to be 2048 bits or larger`)}},e1=async(N,I,T)=>{if(!R(I))throw TypeError(ej(I,...eI));if(ek(I,N,"encrypt","wrapKey"),e0(N,I),I.usages.includes("encrypt"))return new Uint8Array(await M.subtle.encrypt(eX(N),I,T));if(I.usages.includes("wrapKey")){let P=await M.subtle.importKey("raw",T,...eB);return new Uint8Array(await M.subtle.wrapKey("raw",P,I,eX(N)))}throw TypeError('RSA-OAEP key "usages" must include "encrypt" or "wrapKey" for this operation')},e2=async(N,I,T)=>{if(!R(I))throw TypeError(ej(I,...eI));if(ek(I,N,"decrypt","unwrapKey"),e0(N,I),I.usages.includes("decrypt"))return new Uint8Array(await M.subtle.decrypt(eX(N),I,T));if(I.usages.includes("unwrapKey")){let P=await M.subtle.unwrapKey("raw",T,I,eX(N),...eB);return new Uint8Array(await M.subtle.exportKey("raw",P))}throw TypeError('RSA-OAEP key "usages" must include "decrypt" or "unwrapKey" for this operation')};function e3(N){switch(N){case"A128GCM":return 128;case"A192GCM":return 192;case"A256GCM":case"A128CBC-HS256":return 256;case"A192CBC-HS384":return 384;case"A256CBC-HS512":return 512;default:throw new er(`Unsupported JWE Algorithm: ${N}`)}}let e4=N=>ep(new Uint8Array(e3(N)>>3)),e5=(N,I)=>{let T=(N.match(/.{1,64}/g)||[]).join("\n");return`-----BEGIN ${I}----- 1287${T} 1288-----END ${I}-----`},e6=async(N,I,T)=>{if(!R(T))throw TypeError(ej(T,...eI));if(!T.extractable)throw TypeError("CryptoKey is not extractable");if(T.type!==N)throw TypeError(`key is not a ${N} key`);return e5(V(new Uint8Array(await M.subtle.exportKey(I,T))),`${N.toUpperCase()} KEY`)},e8=N=>e6("public","spki",N),e7=N=>e6("private","pkcs8",N),e9=(N,I,T=0)=>{0===T&&(I.unshift(I.length),I.unshift(6));let P=N.indexOf(I[0],T);if(-1===P)return!1;let D=N.subarray(P,P+I.length);return D.length===I.length&&(D.every((N,T)=>N===I[T])||e9(N,I,P+1))},te=N=>{switch(!0){case e9(N,[42,134,72,206,61,3,1,7]):return"P-256";case e9(N,[43,129,4,0,34]):return"P-384";case e9(N,[43,129,4,0,35]):return"P-521";case e9(N,[43,101,110]):return"X25519";case e9(N,[43,101,111]):return"X448";case e9(N,[43,101,112]):return"Ed25519";case e9(N,[43,101,113]):return"Ed448";default:throw new er("Invalid or unsupported EC Key Curve or OKP Key Sub Type")}},tt=async(N,I,T,P,D)=>{var R;let L,$,F=new Uint8Array(atob(T.replace(N,"")).split("").map(N=>N.charCodeAt(0))),B="spki"===I;switch(P){case"PS256":case"PS384":case"PS512":L={name:"RSA-PSS",hash:`SHA-${P.slice(-3)}`},$=B?["verify"]:["sign"];break;case"RS256":case"RS384":case"RS512":L={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${P.slice(-3)}`},$=B?["verify"]:["sign"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":L={name:"RSA-OAEP",hash:`SHA-${parseInt(P.slice(-3),10)||1}`},$=B?["encrypt","wrapKey"]:["decrypt","unwrapKey"];break;case"ES256":L={name:"ECDSA",namedCurve:"P-256"},$=B?["verify"]:["sign"];break;case"ES384":L={name:"ECDSA",namedCurve:"P-384"},$=B?["verify"]:["sign"];break;case"ES512":L={name:"ECDSA",namedCurve:"P-521"},$=B?["verify"]:["sign"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{let N=te(F);L=N.startsWith("P-")?{name:"ECDH",namedCurve:N}:{name:N},$=B?[]:["deriveBits"];break}
1288case"EdDSA":L={name:te(F)},$=B?["verify"]:["sign"];break;default:throw new er('Invalid or unsupported "alg" (Algorithm) value')}return M.subtle.importKey(I,F,L,null!=(R=null==D?void 0:D.extractable)&&R,$)},tr=(N,I,T)=>tt(/(?:-----(?:BEGIN|END) PRIVATE KEY-----|\s)/g,"pkcs8",N,I,T),tn=(N,I,T)=>tt(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g,"spki",N,I,T);function ta(N){let I=[],T=0;for(;T<N.length;){let P=ti(N.subarray(T));I.push(P),T+=P.byteLength}return I}function ti(N){let I=0,T=31&N[0];if(I++,31===T){for(T=0;N[I]>=128;)T=128*T+N[I]-128,I++;T=128*T+N[I]-128,I++}let P=0;if(N[I]<128)P=N[I],I++;else if(128===P){for(P=0;0!==N[I+P]||0!==N[I+P+1];){if(P>N.byteLength)throw TypeError("invalid indefinite form length");P++}let T=I+P+2;return{byteLength:T,contents:N.subarray(I,I+P),raw:N.subarray(0,T)}}else{let T=127&N[I];I++,P=0;for(let D=0;D<T;D++)P=256*P+N[I],I++}let D=I+P;return{byteLength:D,contents:N.subarray(I,D),raw:N.subarray(0,D)}}function to(N){let I=ta(ta(ti(N).contents)[0].contents);return V(I[160===I[0].raw[0]?6:5].raw)}function ts(N){return e5(to(J(N.replace(/(?:-----(?:BEGIN|END) CERTIFICATE-----|\s)/g,""))),"PUBLIC KEY")}let tl=(N,I,T)=>{let P;try{P=ts(N)}catch(N){throw TypeError("Failed to parse the X.509 certificate",{cause:N})}return tn(P,I,T)};function tc(N){let I,T;switch(N.kty){case"oct":switch(N.alg){case"HS256":case"HS384":case"HS512":I={name:"HMAC",hash:`SHA-${N.alg.slice(-3)}`},T=["sign","verify"];break;case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":throw new er(`${N.alg} keys cannot be imported as CryptoKey instances`);case"A128GCM":case"A192GCM":case"A256GCM":case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":I={name:"AES-GCM"},T=["encrypt","decrypt"];break;case"A128KW":case"A192KW":case"A256KW":I={name:"AES-KW"},T=["wrapKey","unwrapKey"];break;case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":I={name:"PBKDF2"},T=["deriveBits"];break;default:throw new er('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"RSA":switch(N.alg){case"PS256":case"PS384":case"PS512":I={name:"RSA-PSS",hash:`SHA-${N.alg.slice(-3)}`},T=N.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":I={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${N.alg.slice(-3)}`},T=N.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":I={name:"RSA-OAEP",hash:`SHA-${parseInt(N.alg.slice(-3),10)||1}`},T=N.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new er('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"EC":switch(N.alg){case"ES256":I={name:"ECDSA",namedCurve:"P-256"},T=N.d?["sign"]:["verify"];break;case"ES384":I={name:"ECDSA",namedCurve:"P-384"},T=N.d?["sign"]:["verify"];break;case"ES512":I={name:"ECDSA",namedCurve:"P-521"},T=N.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":I={name:"ECDH",namedCurve:N.crv},T=N.d?["deriveBits"]:[];break;default:throw new er('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"OKP":switch(N.alg){case"EdDSA":I={name:N.crv},T=N.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":I={name:N.crv},T=N.d?["deriveBits"]:[];break;default:throw new er('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;default:throw new er('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:I,keyUsages:T}}let tu=async N=>{var I,T;if(!N.alg)throw TypeError('"alg" argument is required when "jwk.alg" is not present');let{algorithm:P,keyUsages:D}=tc(N),R=[P,null!=(I=N.ext)&&I,null!=(T=N.key_ops)?T:D];if("PBKDF2"===P.name)return M.subtle.importKey("raw",Q(N.k),...R);let L={...N};return delete L.alg,delete L.use,M.subtle.importKey("jwk",L,...R)};async function td(N,I,T){if("string"!=typeof N||0!==N.indexOf("-----BEGIN PUBLIC KEY-----"))throw TypeError('"spki" must be SPKI formatted string');return tn(N,I,T)}async function tf(N,I,T){if("string"!=typeof N||0!==N.indexOf("-----BEGIN CERTIFICATE-----"))throw TypeError('"x509" must be X.509 formatted string');return tl(N,I,T)}async function th(N,I,T){if("string"!=typeof N||0!==N.indexOf("-----BEGIN PRIVATE KEY-----"))throw TypeError('"pkcs8" must be PKCS#8 formatted string');return tr(N,I,T)}async function tp(N,I,T){var P;if(!eF(N))throw TypeError("JWK must be an object");switch(I||(I=N.alg),N.kty){case"oct":if("string"!=typeof N.k||!N.k)throw TypeError('missing "k" (Key Value) Parameter value');
1288if(null!=T||(T=!0!==N.ext),T)return tu({...N,alg:I,ext:null!=(P=N.ext)&&P});return Q(N.k);case"RSA":if(void 0!==N.oth)throw new er('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');case"EC":case"OKP":return tu({...N,alg:I});default:throw new er('Unsupported "kty" (Key Type) Parameter value')}}let tm=(N,I)=>{if(!(I instanceof Uint8Array)){if(!eN(I))throw TypeError(eO(N,I,...eI,"Uint8Array"));if("secret"!==I.type)throw TypeError(`${eI.join(" or ")} instances for symmetric algorithms must be of type "secret"`)}},tg=(N,I,T)=>{if(!eN(I))throw TypeError(eO(N,I,...eI));if("secret"===I.type)throw TypeError(`${eI.join(" or ")} instances for asymmetric algorithms must not be of type "secret"`);if("sign"===T&&"public"===I.type)throw TypeError(`${eI.join(" or ")} instances for asymmetric algorithm signing must be of type "private"`);if("decrypt"===T&&"public"===I.type)throw TypeError(`${eI.join(" or ")} instances for asymmetric algorithm decryption must be of type "private"`);if(I.algorithm&&"verify"===T&&"private"===I.type)throw TypeError(`${eI.join(" or ")} instances for asymmetric algorithm verifying must be of type "public"`);if(I.algorithm&&"encrypt"===T&&"private"===I.type)throw TypeError(`${eI.join(" or ")} instances for asymmetric algorithm encryption must be of type "public"`)},ty=(N,I,T)=>{N.startsWith("HS")||"dir"===N||N.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(N)?tm(N,I):tg(N,I,T)};async function tb(N,I,T,P,D){if(!(T instanceof Uint8Array))throw TypeError(ej(T,"Uint8Array"));let R=parseInt(N.slice(1,4),10),L=await M.subtle.importKey("raw",T.subarray(R>>3),"AES-CBC",!1,["encrypt"]),$=await M.subtle.importKey("raw",T.subarray(0,R>>3),{hash:`SHA-${R<<1}`,name:"HMAC"},!1,["sign"]),F=new Uint8Array(await M.subtle.encrypt({iv:P,name:"AES-CBC"},L,I)),B=U(D,P,F,W(D.length<<3));return{ciphertext:F,tag:new Uint8Array((await M.subtle.sign("HMAC",$,B)).slice(0,R>>3))}}async function tv(N,I,T,P,D){let R;T instanceof Uint8Array?R=await M.subtle.importKey("raw",T,"AES-GCM",!1,["encrypt"]):(ek(T,N,"encrypt"),R=T);let L=new Uint8Array(await M.subtle.encrypt({additionalData:D,iv:P,name:"AES-GCM",tagLength:128},R,I)),$=L.slice(-16);return{ciphertext:L.slice(0,-16),tag:$}}let tw=async(N,I,T,P,D)=>{if(!R(T)&&!(T instanceof Uint8Array))throw TypeError(ej(T,...eI,"Uint8Array"));switch(ey(N,P),N){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return T instanceof Uint8Array&&eb(T,parseInt(N.slice(-3),10)),tb(N,I,T,P,D);case"A128GCM":case"A192GCM":case"A256GCM":return T instanceof Uint8Array&&eb(T,parseInt(N.slice(1,4),10)),tv(N,I,T,P,D);default:throw new er("Unsupported JWE Content Encryption Algorithm")}};async function tx(N,I,T,P){let D=N.slice(0,7);P||(P=eg(D));let{ciphertext:M,tag:R}=await tw(D,T,I,P,new Uint8Array(0));return{encryptedKey:M,iv:Y(P),tag:Y(R)}}async function tA(N,I,T,P,D){return eD(N.slice(0,7),I,T,P,D,new Uint8Array(0))}let tE=async function(N,I,T,P,D){switch(ty(N,I,"decrypt"),N){case"dir":if(void 0!==T)throw new ei("Encountered unexpected JWE Encrypted Key");return I;case"ECDH-ES":if(void 0!==T)throw new ei("Encountered unexpected JWE Encrypted Key");case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{let D,M;if(!eF(P.epk))throw new ei('JOSE Header "epk" (Ephemeral Public Key) missing or invalid');if(!eK(I))throw new er("ECDH with the provided key is not allowed or not supported by your javascript runtime");let R=await tp(P.epk,N);if(void 0!==P.apu){if("string"!=typeof P.apu)throw new ei('JOSE Header "apu" (Agreement PartyUInfo) invalid');try{D=Q(P.apu)}catch(N){throw new ei("Failed to base64url decode the apu")}}if(void 0!==P.apv){if("string"!=typeof P.apv)throw new ei('JOSE Header "apv" (Agreement PartyVInfo) invalid');try{M=Q(P.apv)}catch(N){throw new ei("Failed to base64url decode the apv")}}let L=await eq(R,I,"ECDH-ES"===N?P.enc:N,"ECDH-ES"===N?e3(P.enc):parseInt(N.slice(-5,-2),10),D,M);if("ECDH-ES"===N)return L;if(void 0===T)throw new ei("JWE Encrypted Key missing");return eW(N.slice(-6),L,T)}case"RSA1_5":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":if(void 0===T)throw new ei("JWE Encrypted Key missing");return e2(N,I,T);case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":{let M;if(void 0===T)throw new ei("JWE Encrypted Key missing");if("number"!=typeof P.p2c)throw new ei('JOSE Header "p2c" (PBES2 Count) missing or invalid');let R=(null==D?void 0:D.maxPBES2Count)||1e4;if(P.p2c>R)throw new ei('JOSE Header "p2c" (PBES2 Count) out is of acceptable bounds');if("string"!=typeof P.p2s)throw new ei('JOSE Header "p2s" (PBES2 Salt) missing or invalid');try{M=Q(P.p2s)}catch(N){throw new ei("Failed to base64url decode the p2s")}return eZ(N,I,T,P.p2c,M)}
1288case"A128KW":case"A192KW":case"A256KW":if(void 0===T)throw new ei("JWE Encrypted Key missing");return eW(N,I,T);case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":{let D,M;if(void 0===T)throw new ei("JWE Encrypted Key missing");if("string"!=typeof P.iv)throw new ei('JOSE Header "iv" (Initialization Vector) missing or invalid');if("string"!=typeof P.tag)throw new ei('JOSE Header "tag" (Authentication Tag) missing or invalid');try{D=Q(P.iv)}catch(N){throw new ei("Failed to base64url decode the iv")}try{M=Q(P.tag)}catch(N){throw new ei("Failed to base64url decode the tag")}return tA(N,I,T,D,M)}default:throw new er('Invalid or unsupported "alg" (JWE Algorithm) header value')}},tS=function(N,I,T,P,D){let M;if(void 0!==D.crit&&void 0===P.crit)throw new N('"crit" (Critical) Header Parameter MUST be integrity protected');if(!P||void 0===P.crit)return new Set;if(!Array.isArray(P.crit)||0===P.crit.length||P.crit.some(N=>"string"!=typeof N||0===N.length))throw new N('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');for(let R of(M=void 0!==T?new Map([...Object.entries(T),...I.entries()]):I,P.crit)){if(!M.has(R))throw new er(`Extension Header Parameter "${R}" is not recognized`);if(void 0===D[R])throw new N(`Extension Header Parameter "${R}" is missing`);if(M.get(R)&&void 0===P[R])throw new N(`Extension Header Parameter "${R}" MUST be integrity protected`)}return new Set(P.crit)},t_=(N,I)=>{if(void 0!==I&&(!Array.isArray(I)||I.some(N=>"string"!=typeof N)))throw TypeError(`"${N}" option must be an array of strings`);if(I)return new Set(I)};async function tk(N,I,T){var P;let D,M,R,L,B,H,z;if(!eF(N))throw new ei("Flattened JWE must be an object");if(void 0===N.protected&&void 0===N.header&&void 0===N.unprotected)throw new ei("JOSE Header missing");if("string"!=typeof N.iv)throw new ei("JWE Initialization Vector missing or incorrect type");if("string"!=typeof N.ciphertext)throw new ei("JWE Ciphertext missing or incorrect type");if("string"!=typeof N.tag)throw new ei("JWE Authentication Tag missing or incorrect type");if(void 0!==N.protected&&"string"!=typeof N.protected)throw new ei("JWE Protected Header incorrect type");if(void 0!==N.encrypted_key&&"string"!=typeof N.encrypted_key)throw new ei("JWE Encrypted Key incorrect type");if(void 0!==N.aad&&"string"!=typeof N.aad)throw new ei("JWE AAD incorrect type");if(void 0!==N.header&&!eF(N.header))throw new ei("JWE Shared Unprotected Header incorrect type");if(void 0!==N.unprotected&&!eF(N.unprotected))throw new ei("JWE Per-Recipient Unprotected Header incorrect type");if(N.protected)try{let I=Q(N.protected);D=JSON.parse(F.decode(I))}catch(N){throw new ei("JWE Protected Header is invalid")}if(!eL(D,N.header,N.unprotected))throw new ei("JWE Protected, JWE Unprotected Header, and JWE Per-Recipient Unprotected Header Parameter names must be disjoint");let W={...D,...N.header,...N.unprotected};if(tS(ei,new Map,null==T?void 0:T.crit,D,W),void 0!==W.zip){if(!D||!D.zip)throw new ei('JWE "zip" (Compression Algorithm) Header MUST be integrity protected');if("DEF"!==W.zip)throw new er('Unsupported JWE "zip" (Compression Algorithm) Header Parameter value')}let{alg:q,enc:G}=W;if("string"!=typeof q||!q)throw new ei("missing JWE Algorithm (alg) in JWE Header");if("string"!=typeof G||!G)throw new ei("missing JWE Encryption Algorithm (enc) in JWE Header");let K=T&&t_("keyManagementAlgorithms",T.keyManagementAlgorithms),V=T&&t_("contentEncryptionAlgorithms",T.contentEncryptionAlgorithms);if(K&&!K.has(q))throw new et('"alg" (Algorithm) Header Parameter not allowed');if(V&&!V.has(G))throw new et('"enc" (Encryption Algorithm) Header Parameter not allowed');if(void 0!==N.encrypted_key)try{M=Q(N.encrypted_key)}catch(N){throw new ei("Failed to base64url decode the encrypted_key")}let Y=!1;"function"==typeof I&&(I=await I(D,N),Y=!0);try{R=await tE(q,I,M,W,T)}catch(N){if(N instanceof TypeError||N instanceof ei||N instanceof er)throw N;R=e4(G)}try{L=Q(N.iv)}catch(N){throw new ei("Failed to base64url decode the iv")}try{B=Q(N.tag)}catch(N){throw new ei("Failed to base64url decode the tag")}let J=$.encode(null!=(P=N.protected)?P:"");H=void 0!==N.aad?U(J,$.encode("."),$.encode(N.aad)):J;try{z=Q(N.ciphertext)}catch(N){throw new ei("Failed to base64url decode the ciphertext")}let Z=await eD(G,R,z,L,B,H);"DEF"===W.zip&&(Z=await ((null==T?void 0:T.inflateRaw)||eM)(Z));let X={plaintext:Z};if(void 0!==N.protected&&(X.protectedHeader=D),void 0!==N.aad)try{X.additionalAuthenticatedData=Q(N.aad)}catch(N){throw new ei("Failed to base64url decode the aad")}return(void 0!==N.unprotected&&(X.sharedUnprotectedHeader=N.unprotected),void 0!==N.header&&(X.unprotectedHeader=N.header),Y)?{...X,key:I}:X}async function tC(N,I,T){if(N instanceof Uint8Array&&(N=F.decode(N)),"string"!=typeof N)throw new ei("Compact JWE must be a string or Uint8Array");let{0:P,1:D,2:M,3:R,4:L,length:$}=N.split(".");if(5!==$)throw new ei("Invalid Compact JWE");let B=await tk({ciphertext:R,iv:M||void 0,protected:P||void 0,tag:L||void 0,encrypted_key:D||void 0},I,T),U={plaintext:B.plaintext,protectedHeader:B.protectedHeader};return"function"==typeof I?{...U,key:B.key}:U}async function tj(N,I,T){if(!eF(N))throw new ei("General JWE must be an object");
1288if(!Array.isArray(N.recipients)||!N.recipients.every(eF))throw new ei("JWE Recipients missing or incorrect type");if(!N.recipients.length)throw new ei("JWE Recipients has no members");for(let P of N.recipients)try{return await tk({aad:N.aad,ciphertext:N.ciphertext,encrypted_key:P.encrypted_key,header:P.header,iv:N.iv,protected:N.protected,tag:N.tag,unprotected:N.unprotected},I,T)}catch(N){}throw new en}let tO=async N=>{if(N instanceof Uint8Array)return{kty:"oct",k:Y(N)};if(!R(N))throw TypeError(ej(N,...eI,"Uint8Array"));if(!N.extractable)throw TypeError("non-extractable CryptoKey cannot be exported as a JWK");let{ext:I,key_ops:T,alg:P,use:D,...L}=await M.subtle.exportKey("jwk",N);return L};async function tN(N){return e8(N)}async function tI(N){return e7(N)}async function tT(N){return tO(N)}let tP=async function(N,I,T,P,D={}){let M,R,L;switch(ty(N,T,"encrypt"),N){case"dir":L=T;break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{if(!eK(T))throw new er("ECDH with the provided key is not allowed or not supported by your javascript runtime");let{apu:$,apv:F}=D,{epk:B}=D;B||(B=(await eG(T)).privateKey);let{x:U,y:H,crv:z,kty:W}=await tT(B),q=await eq(T,B,"ECDH-ES"===N?I:N,"ECDH-ES"===N?e3(I):parseInt(N.slice(-5,-2),10),$,F);if(R={epk:{x:U,crv:z,kty:W}},"EC"===W&&(R.epk.y=H),$&&(R.apu=Y($)),F&&(R.apv=Y(F)),"ECDH-ES"===N){L=q;break}L=P||e4(I);let G=N.slice(-6);M=await ez(G,q,L);break}case"RSA1_5":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":L=P||e4(I),M=await e1(N,T,L);break;case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":{L=P||e4(I);let{p2c:$,p2s:F}=D;({encryptedKey:M,...R}=await eQ(N,T,L,$,F));break}case"A128KW":case"A192KW":case"A256KW":L=P||e4(I),M=await ez(N,T,L);break;case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":{L=P||e4(I);let{iv:$}=D;({encryptedKey:M,...R}=await tx(N,T,L,$));break}default:throw new er('Invalid or unsupported "alg" (JWE Algorithm) header value')}return{cek:L,encryptedKey:M,parameters:R}},tD=Symbol();class tM{constructor(N){if(!(N instanceof Uint8Array))throw TypeError("plaintext must be an instance of Uint8Array");this._plaintext=N}setKeyManagementParameters(N){if(this._keyManagementParameters)throw TypeError("setKeyManagementParameters can only be called once");return this._keyManagementParameters=N,this}setProtectedHeader(N){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=N,this}setSharedUnprotectedHeader(N){if(this._sharedUnprotectedHeader)throw TypeError("setSharedUnprotectedHeader can only be called once");return this._sharedUnprotectedHeader=N,this}setUnprotectedHeader(N){if(this._unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this._unprotectedHeader=N,this}setAdditionalAuthenticatedData(N){return this._aad=N,this}setContentEncryptionKey(N){if(this._cek)throw TypeError("setContentEncryptionKey can only be called once");return this._cek=N,this}setInitializationVector(N){if(this._iv)throw TypeError("setInitializationVector can only be called once");return this._iv=N,this}async encrypt(N,I){let T,P,D,M,R,L,B;if(!this._protectedHeader&&!this._unprotectedHeader&&!this._sharedUnprotectedHeader)throw new ei("either setProtectedHeader, setUnprotectedHeader, or sharedUnprotectedHeader must be called before #encrypt()");if(!eL(this._protectedHeader,this._unprotectedHeader,this._sharedUnprotectedHeader))throw new ei("JWE Protected, JWE Shared Unprotected and JWE Per-Recipient Header Parameter names must be disjoint");let H={...this._protectedHeader,...this._unprotectedHeader,...this._sharedUnprotectedHeader};if(tS(ei,new Map,null==I?void 0:I.crit,this._protectedHeader,H),void 0!==H.zip){if(!this._protectedHeader||!this._protectedHeader.zip)throw new ei('JWE "zip" (Compression Algorithm) Header MUST be integrity protected');if("DEF"!==H.zip)throw new er('Unsupported JWE "zip" (Compression Algorithm) Header Parameter value')}let{alg:z,enc:W}=H;if("string"!=typeof z||!z)throw new ei('JWE "alg" (Algorithm) Header Parameter missing or invalid');if("string"!=typeof W||!W)throw new ei('JWE "enc" (Encryption Algorithm) Header Parameter missing or invalid');if("dir"===z){if(this._cek)throw TypeError("setContentEncryptionKey cannot be called when using Direct Encryption")}else if("ECDH-ES"===z&&this._cek)throw TypeError("setContentEncryptionKey cannot be called when using Direct Key Agreement");{let D;({cek:P,encryptedKey:T,parameters:D}=await tP(z,W,N,this._cek,this._keyManagementParameters)),D&&(I&&tD in I?this._unprotectedHeader?this._unprotectedHeader={...this._unprotectedHeader,...D}:this.setUnprotectedHeader(D):this._protectedHeader?this._protectedHeader={...this._protectedHeader,...D}:this.setProtectedHeader(D))}if(this._iv||(this._iv=eg(W)),M=this._protectedHeader?$.encode(Y(JSON.stringify(this._protectedHeader))):$.encode(""),this._aad?(R=Y(this._aad),D=U(M,$.encode("."),$.encode(R))):D=M,"DEF"===H.zip){let N=await ((null==I?void 0:I.deflateRaw)||eR)(this._plaintext);({ciphertext:L,tag:B}=await tw(W,N,P,this._iv,D))}else({ciphertext:L,tag:B}=await tw(W,this._plaintext,P,this._iv,D));let q={ciphertext:Y(L),iv:Y(this._iv),tag:Y(B)};return T&&(q.encrypted_key=Y(T)),R&&(q.aad=R),this._protectedHeader&&(q.protected=F.decode(M)),this._sharedUnprotectedHeader&&(q.unprotected=this._sharedUnprotectedHeader),this._unprotectedHeader&&(q.header=this._unprotectedHeader),q}}class tR{constructor(N,I,T){this.parent=N,this.key=I,this.options=T}setUnprotectedHeader(N){if(this.unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this.unprotectedHeader=N,this}addRecipient(...N){return this.parent.addRecipient(...N)}encrypt(...N){return this.parent.encrypt(...N)}done(){return this.parent}}class tL{constructor(N){this._recipients=[],this._plaintext=N}addRecipient(N,I){let T=new tR(this,N,{crit:null==I?void 0:I.crit});return this._recipients.push(T),T}setProtectedHeader(N){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=N,this}setSharedUnprotectedHeader(N){if(this._unprotectedHeader)throw TypeError("setSharedUnprotectedHeader can only be called once");return this._unprotectedHeader=N,this}setAdditionalAuthenticatedData(N){return this._aad=N,this}async encrypt(N){var I,T,P;let D;if(!this._recipients.length)throw new ei("at least one recipient must be added");if(N={deflateRaw:null==N?void 0:N.deflateRaw},1===this._recipients.length){let[I]=this._recipients,T=await new tM(this._plaintext).setAdditionalAuthenticatedData(this._aad).setProtectedHeader(this._protectedHeader).setSharedUnprotectedHeader(this._unprotectedHeader).setUnprotectedHeader(I.unprotectedHeader).encrypt
1288(I.key,{...I.options,...N}),P={ciphertext:T.ciphertext,iv:T.iv,recipients:[{}],tag:T.tag};return T.aad&&(P.aad=T.aad),T.protected&&(P.protected=T.protected),T.unprotected&&(P.unprotected=T.unprotected),T.encrypted_key&&(P.recipients[0].encrypted_key=T.encrypted_key),T.header&&(P.recipients[0].header=T.header),P}for(let N=0;N<this._recipients.length;N++){let I=this._recipients[N];if(!eL(this._protectedHeader,this._unprotectedHeader,I.unprotectedHeader))throw new ei("JWE Protected, JWE Shared Unprotected and JWE Per-Recipient Header Parameter names must be disjoint");let T={...this._protectedHeader,...this._unprotectedHeader,...I.unprotectedHeader},{alg:P}=T;if("string"!=typeof P||!P)throw new ei('JWE "alg" (Algorithm) Header Parameter missing or invalid');if("dir"===P||"ECDH-ES"===P)throw new ei('"dir" and "ECDH-ES" alg may only be used with a single recipient');if("string"!=typeof T.enc||!T.enc)throw new ei('JWE "enc" (Encryption Algorithm) Header Parameter missing or invalid');if(D){if(D!==T.enc)throw new ei('JWE "enc" (Encryption Algorithm) Header Parameter must be the same for all recipients')}else D=T.enc;if(tS(ei,new Map,I.options.crit,this._protectedHeader,T),void 0!==T.zip&&(!this._protectedHeader||!this._protectedHeader.zip))throw new ei('JWE "zip" (Compression Algorithm) Header MUST be integrity protected')}let M=e4(D),R={ciphertext:"",iv:"",recipients:[],tag:""};for(let L=0;L<this._recipients.length;L++){let $=this._recipients[L],F={};R.recipients.push(F);let B=({...this._protectedHeader,...this._unprotectedHeader,...$.unprotectedHeader}).alg.startsWith("PBES2")?2048+L:void 0;if(0===L){let I=await new tM(this._plaintext).setAdditionalAuthenticatedData(this._aad).setContentEncryptionKey(M).setProtectedHeader(this._protectedHeader).setSharedUnprotectedHeader(this._unprotectedHeader).setUnprotectedHeader($.unprotectedHeader).setKeyManagementParameters({p2c:B}).encrypt($.key,{...$.options,...N,[tD]:!0});R.ciphertext=I.ciphertext,R.iv=I.iv,R.tag=I.tag,I.aad&&(R.aad=I.aad),I.protected&&(R.protected=I.protected),I.unprotected&&(R.unprotected=I.unprotected),F.encrypted_key=I.encrypted_key,I.header&&(F.header=I.header);continue}let{encryptedKey:U,parameters:H}=await tP((null==(I=$.unprotectedHeader)?void 0:I.alg)||(null==(T=this._protectedHeader)?void 0:T.alg)||(null==(P=this._unprotectedHeader)?void 0:P.alg),D,$.key,M,{p2c:B});F.encrypted_key=Y(U),($.unprotectedHeader||H)&&(F.header={...$.unprotectedHeader,...H})}return R}}function t$(N,I){let T=`SHA-${N.slice(-3)}`;switch(N){case"HS256":case"HS384":case"HS512":return{hash:T,name:"HMAC"};case"PS256":case"PS384":case"PS512":return{hash:T,name:"RSA-PSS",saltLength:N.slice(-3)>>3};case"RS256":case"RS384":case"RS512":return{hash:T,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:T,name:"ECDSA",namedCurve:I.namedCurve};case"EdDSA":return{name:I.name};default:throw new er(`alg ${N} is not supported either by JOSE or your javascript runtime`)}}function tF(N,I,T){if(R(I))return e_(I,N,T),I;if(I instanceof Uint8Array){if(!N.startsWith("HS"))throw TypeError(ej(I,...eI));return M.subtle.importKey("raw",I,{hash:`SHA-${N.slice(-3)}`,name:"HMAC"},!1,[T])}throw TypeError(ej(I,...eI,"Uint8Array"))}let tB=async(N,I,T,P)=>{let D=await tF(N,I,"verify");e0(N,D);let R=t$(N,D.algorithm);try{return await M.subtle.verify(R,D,T,P)}catch(N){return!1}};async function tU(N,I,T){var P;let D,M;if(!eF(N))throw new eo("Flattened JWS must be an object");if(void 0===N.protected&&void 0===N.header)throw new eo('Flattened JWS must have either of the "protected" or "header" members');if(void 0!==N.protected&&"string"!=typeof N.protected)throw new eo("JWS Protected Header incorrect type");if(void 0===N.payload)throw new eo("JWS Payload missing");if("string"!=typeof N.signature)throw new eo("JWS Signature missing or incorrect type");if(void 0!==N.header&&!eF(N.header))throw new eo("JWS Unprotected Header incorrect type");let R={};if(N.protected)try{let I=Q(N.protected);R=JSON.parse(F.decode(I))}catch(N){throw new eo("JWS Protected Header is invalid")}if(!eL(R,N.header))throw new eo("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");let L={...R,...N.header},B=tS(eo,new Map([["b64",!0]]),null==T?void 0:T.crit,R,L),H=!0;if(B.has("b64")&&"boolean"!=typeof(H=R.b64))throw new eo('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:z}=L;if("string"!=typeof z||!z)throw new eo('JWS "alg" (Algorithm) Header Parameter missing or invalid');let W=T&&t_("algorithms",T.algorithms);if(W&&!W.has(z))throw new et('"alg" (Algorithm) Header Parameter not allowed');
1288if(H){if("string"!=typeof N.payload)throw new eo("JWS Payload must be a string")}else if("string"!=typeof N.payload&&!(N.payload instanceof Uint8Array))throw new eo("JWS Payload must be a string or an Uint8Array instance");let q=!1;"function"==typeof I&&(I=await I(R,N),q=!0),ty(z,I,"verify");let G=U($.encode(null!=(P=N.protected)?P:""),$.encode("."),"string"==typeof N.payload?$.encode(N.payload):N.payload);try{D=Q(N.signature)}catch(N){throw new eo("Failed to base64url decode the signature")}if(!await tB(z,I,D,G))throw new eh;if(H)try{M=Q(N.payload)}catch(N){throw new eo("Failed to base64url decode the payload")}else M="string"==typeof N.payload?$.encode(N.payload):N.payload;let K={payload:M};return(void 0!==N.protected&&(K.protectedHeader=R),void 0!==N.header&&(K.unprotectedHeader=N.header),q)?{...K,key:I}:K}async function tH(N,I,T){if(N instanceof Uint8Array&&(N=F.decode(N)),"string"!=typeof N)throw new eo("Compact JWS must be a string or Uint8Array");let{0:P,1:D,2:M,length:R}=N.split(".");if(3!==R)throw new eo("Invalid Compact JWS");let L=await tU({payload:D,protected:P,signature:M},I,T),$={payload:L.payload,protectedHeader:L.protectedHeader};return"function"==typeof I?{...$,key:L.key}:$}async function tz(N,I,T){if(!eF(N))throw new eo("General JWS must be an object");if(!Array.isArray(N.signatures)||!N.signatures.every(eF))throw new eo("JWS Signatures missing or incorrect type");for(let P of N.signatures)try{return await tU({header:P.header,payload:N.payload,protected:P.protected,signature:P.signature},I,T)}catch(N){}throw new eh}let tW=N=>Math.floor(N.getTime()/1e3),tq=60,tG=3600,tK=86400,tV=604800,tY=0x1e187e0,tJ=/^(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)$/i,tQ=N=>{let I=tJ.exec(N);if(!I)throw TypeError("Invalid time period format");let T=parseFloat(I[1]);switch(I[2].toLowerCase()){case"sec":case"secs":case"second":case"seconds":case"s":return Math.round(T);case"minute":case"minutes":case"min":case"mins":case"m":return Math.round(T*tq);case"hour":case"hours":case"hr":case"hrs":case"h":return Math.round(T*tG);case"day":case"days":case"d":return Math.round(T*tK);case"week":case"weeks":case"w":return Math.round(T*tV);default:return Math.round(T*tY)}},tZ=N=>N.toLowerCase().replace(/^application\//,""),tX=(N,I)=>"string"==typeof N?I.includes(N):!!Array.isArray(N)&&I.some(Set.prototype.has.bind(new Set(N))),t0=(N,I,T={})=>{let P,D,{typ:M}=T;if(M&&("string"!=typeof N.typ||tZ(N.typ)!==tZ(M)))throw new X('unexpected "typ" JWT header value',"typ","check_failed");try{P=JSON.parse(F.decode(I))}catch(N){}if(!eF(P))throw new es("JWT Claims Set must be a top-level JSON object");let{requiredClaims:R=[],issuer:L,subject:$,audience:B,maxTokenAge:U}=T;for(let N of(void 0!==U&&R.push("iat"),void 0!==B&&R.push("aud"),void 0!==$&&R.push("sub"),void 0!==L&&R.push("iss"),new Set(R.reverse())))if(!(N in P))throw new X(`missing required "${N}" claim`,N,"missing");if(L&&!(Array.isArray(L)?L:[L]).includes(P.iss))throw new X('unexpected "iss" claim value',"iss","check_failed");if($&&P.sub!==$)throw new X('unexpected "sub" claim value',"sub","check_failed");if(B&&!tX(P.aud,"string"==typeof B?[B]:B))throw new X('unexpected "aud" claim value',"aud","check_failed");switch(typeof T.clockTolerance){case"string":D=tQ(T.clockTolerance);break;case"number":D=T.clockTolerance;break;case"undefined":D=0;break;default:throw TypeError("Invalid clockTolerance option type")}let{currentDate:H}=T,z=tW(H||new Date);if((void 0!==P.iat||U)&&"number"!=typeof P.iat)throw new X('"iat" claim must be a number',"iat","invalid");if(void 0!==P.nbf){if("number"!=typeof P.nbf)throw new X('"nbf" claim must be a number',"nbf","invalid");if(P.nbf>z+D)throw new X('"nbf" claim timestamp check failed',"nbf","check_failed")}if(void 0!==P.exp){if("number"!=typeof P.exp)throw new X('"exp" claim must be a number',"exp","invalid");if(P.exp<=z-D)throw new ee('"exp" claim timestamp check failed',"exp","check_failed")}if(U){let N=z-P.iat;if(N-D>("number"==typeof U?U:tQ(U)))throw new ee('"iat" claim timestamp check failed (too far in the past)',"iat","check_failed");if(N<0-D)throw new X('"iat" claim timestamp check failed (it should be in the past)',"iat","check_failed")}return P};async function t1(N,I,T){var P;let D=await tH(N,I,T);if((null==(P=D.protectedHeader.crit)?void 0:P.includes("b64"))&&!1===D.protectedHeader.b64)throw new es("JWTs MUST NOT use unencoded payload");let M={payload:t0(D.protectedHeader,D.payload,T),protectedHeader:D.protectedHeader};return"function"==typeof I?{...M,key:D.key}:M}async function t2(N,I,T){let P=await tC(N,I,T),D=t0(P.protectedHeader,P.plaintext,T),{protectedHeader:M}=P;if(void 0!==M.iss&&M.iss!==D.iss)throw new X('replicated "iss" claim header parameter mismatch',"iss","mismatch");if(void 0!==M.sub&&M.sub!==D.sub)throw new X('replicated "sub" claim header parameter mismatch',"sub","mismatch");if(void 0!==M.aud&&JSON.stringify(M.aud)!==JSON.stringify(D.aud))throw new X('replicated "aud" claim header parameter mismatch',"aud","mismatch");let R={payload:D,protectedHeader:M};return"function"==typeof I?{...R,key:P.key}:R}class t3{constructor(N){this._flattened=new tM(N)}setContentEncryptionKey(N){return this._flattened.setContentEncryptionKey(N),this}setInitializationVector(N){return this._flattened.setInitializationVector(N),this}setProtectedHeader(N){return this._flattened.setProtectedHeader(N),this}setKeyManagementParameters(N){return this._flattened.setKeyManagementParameters(N),this}
1288async encrypt(N,I){let T=await this._flattened.encrypt(N,I);return[T.protected,T.encrypted_key,T.iv,T.ciphertext,T.tag].join(".")}}let t4=async(N,I,T)=>{let P=await tF(N,I,"sign");return e0(N,P),new Uint8Array(await M.subtle.sign(t$(N,P.algorithm),P,T))};class t5{constructor(N){if(!(N instanceof Uint8Array))throw TypeError("payload must be an instance of Uint8Array");this._payload=N}setProtectedHeader(N){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=N,this}setUnprotectedHeader(N){if(this._unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this._unprotectedHeader=N,this}async sign(N,I){let T;if(!this._protectedHeader&&!this._unprotectedHeader)throw new eo("either setProtectedHeader or setUnprotectedHeader must be called before #sign()");if(!eL(this._protectedHeader,this._unprotectedHeader))throw new eo("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");let P={...this._protectedHeader,...this._unprotectedHeader},D=tS(eo,new Map([["b64",!0]]),null==I?void 0:I.crit,this._protectedHeader,P),M=!0;if(D.has("b64")&&"boolean"!=typeof(M=this._protectedHeader.b64))throw new eo('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:R}=P;if("string"!=typeof R||!R)throw new eo('JWS "alg" (Algorithm) Header Parameter missing or invalid');ty(R,N,"sign");let L=this._payload;M&&(L=$.encode(Y(L)));let B=U(T=this._protectedHeader?$.encode(Y(JSON.stringify(this._protectedHeader))):$.encode(""),$.encode("."),L),H={signature:Y(await t4(R,N,B)),payload:""};return M&&(H.payload=F.decode(L)),this._unprotectedHeader&&(H.header=this._unprotectedHeader),this._protectedHeader&&(H.protected=F.decode(T)),H}}class t6{constructor(N){this._flattened=new t5(N)}setProtectedHeader(N){return this._flattened.setProtectedHeader(N),this}async sign(N,I){let T=await this._flattened.sign(N,I);if(void 0===T.payload)throw TypeError("use the flattened module for creating JWS with b64: false");return`${T.protected}.${T.payload}.${T.signature}`}}class t8{constructor(N,I,T){this.parent=N,this.key=I,this.options=T}setProtectedHeader(N){if(this.protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this.protectedHeader=N,this}setUnprotectedHeader(N){if(this.unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this.unprotectedHeader=N,this}addSignature(...N){return this.parent.addSignature(...N)}sign(...N){return this.parent.sign(...N)}done(){return this.parent}}class t7{constructor(N){this._signatures=[],this._payload=N}addSignature(N,I){let T=new t8(this,N,I);return this._signatures.push(T),T}async sign(){if(!this._signatures.length)throw new eo("at least one signature must be added");let N={signatures:[],payload:""};for(let I=0;I<this._signatures.length;I++){let T=this._signatures[I],P=new t5(this._payload);P.setProtectedHeader(T.protectedHeader),P.setUnprotectedHeader(T.unprotectedHeader);let{payload:D,...M}=await P.sign(T.key,T.options);if(0===I)N.payload=D;else if(N.payload!==D)throw new eo("inconsistent use of JWS Unencoded Payload (RFC7797)");N.signatures.push(M)}return N}}class t9{constructor(N){if(!eF(N))throw TypeError("JWT Claims Set MUST be an object");this._payload=N}setIssuer(N){return this._payload={...this._payload,iss:N},this}setSubject(N){return this._payload={...this._payload,sub:N},this}setAudience(N){return this._payload={...this._payload,aud:N},this}setJti(N){return this._payload={...this._payload,jti:N},this}setNotBefore(N){return"number"==typeof N?this._payload={...this._payload,nbf:N}:this._payload={...this._payload,nbf:tW(new Date)+tQ(N)},this}setExpirationTime(N){return"number"==typeof N?this._payload={...this._payload,exp:N}:this._payload={...this._payload,exp:tW(new Date)+tQ(N)},this}setIssuedAt(N){return void 0===N?this._payload={...this._payload,iat:tW(new Date)}:this._payload={...this._payload,iat:N},this}}class re extends t9{setProtectedHeader(N){return this._protectedHeader=N,this}async sign(N,I){var T;let P=new t6($.encode(JSON.stringify(this._payload)));if(P.setProtectedHeader(this._protectedHeader),Array.isArray(null==(T=this._protectedHeader)?void 0:T.crit)&&this._protectedHeader.crit.includes("b64")&&!1===this._protectedHeader.b64)throw new es("JWTs MUST NOT use unencoded payload");return P.sign(N,I)}}class rt extends t9{setProtectedHeader(N){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=N,this}setKeyManagementParameters(N){if(this._keyManagementParameters)throw TypeError("setKeyManagementParameters can only be called once");return this._keyManagementParameters=N,this}setContentEncryptionKey(N){if(this._cek)throw TypeError("setContentEncryptionKey can only be called once");return this._cek=N,this}setInitializationVector(N){if(this._iv)throw TypeError("setInitializationVector can only be called once");return this._iv=N,this}replicateIssuerAsHeader(){return this._replicateIssuerAsHeader=!0,this}replicateSubjectAsHeader(){return this._replicateSubjectAsHeader=!0,this}replicateAudienceAsHeader(){return this._replicateAudienceAsHeader=!0,this}async encrypt(N,I){let T=new t3($.encode(JSON.stringify(this._payload)));return this._replicateIssuerAsHeader&&(this._protectedHeader={...this._protectedHeader,iss:this._payload.iss}),this._replicateSubjectAsHeader&&(this._protectedHeader={...this._protectedHeader,sub:this._payload.sub}),this._replicateAudienceAsHeader&&(this._protectedHeader={...this._protectedHeader,aud:this._payload.aud}),T.setProtectedHeader(this._protectedHeader),this._iv&&T.setInitializationVector(this._iv),this._cek&&T.setContentEncryptionKey(this._cek),this._keyManagementParameters&&T.setKeyManagementParameters(this._keyManagementParameters),T.encrypt(N,I)}}let rr=(N,I)=>
1288{if("string"!=typeof N||!N)throw new el(`${I} missing or invalid`)};async function rn(N,I){let T;if(!eF(N))throw TypeError("JWK must be an object");if(null!=I||(I="sha256"),"sha256"!==I&&"sha384"!==I&&"sha512"!==I)throw TypeError('digestAlgorithm must one of "sha256", "sha384", or "sha512"');switch(N.kty){case"EC":rr(N.crv,'"crv" (Curve) Parameter'),rr(N.x,'"x" (X Coordinate) Parameter'),rr(N.y,'"y" (Y Coordinate) Parameter'),T={crv:N.crv,kty:N.kty,x:N.x,y:N.y};break;case"OKP":rr(N.crv,'"crv" (Subtype of Key Pair) Parameter'),rr(N.x,'"x" (Public Key) Parameter'),T={crv:N.crv,kty:N.kty,x:N.x};break;case"RSA":rr(N.e,'"e" (Exponent) Parameter'),rr(N.n,'"n" (Modulus) Parameter'),T={e:N.e,kty:N.kty,n:N.n};break;case"oct":rr(N.k,'"k" (Key Value) Parameter'),T={k:N.k,kty:N.kty};break;default:throw new er('"kty" (Key Type) Parameter missing or unsupported')}let P=$.encode(JSON.stringify(T));return Y(await L(I,P))}async function ra(N,I){null!=I||(I="sha256");let T=await rn(N,I);return`urn:ietf:params:oauth:jwk-thumbprint:sha-${I.slice(-3)}:${T}`}async function ri(N,I){let T={...N,...null==I?void 0:I.header};if(!eF(T.jwk))throw new eo('"jwk" (JSON Web Key) Header Parameter must be a JSON object');let P=await tp({...T.jwk,ext:!0},T.alg,!0);if(P instanceof Uint8Array||"public"!==P.type)throw new eo('"jwk" (JSON Web Key) Header Parameter must be a public key');return P}function ro(N){switch("string"==typeof N&&N.slice(0,2)){case"RS":case"PS":return"RSA";case"ES":return"EC";case"Ed":return"OKP";default:throw new er('Unsupported "alg" value for a JSON Web Key Set')}}function rs(N){return N&&"object"==typeof N&&Array.isArray(N.keys)&&N.keys.every(rl)}function rl(N){return eF(N)}function rc(N){return"function"==typeof structuredClone?structuredClone(N):JSON.parse(JSON.stringify(N))}class ru{constructor(N){if(this._cached=new WeakMap,!rs(N))throw new ec("JSON Web Key Set malformed");this._jwks=rc(N)}async getKey(N,I){let{alg:T,kid:P}={...N,...null==I?void 0:I.header},D=ro(T),M=this._jwks.keys.filter(N=>{let I=D===N.kty;if(I&&"string"==typeof P&&(I=P===N.kid),I&&"string"==typeof N.alg&&(I=T===N.alg),I&&"string"==typeof N.use&&(I="sig"===N.use),I&&Array.isArray(N.key_ops)&&(I=N.key_ops.includes("verify")),I&&"EdDSA"===T&&(I="Ed25519"===N.crv||"Ed448"===N.crv),I)switch(T){case"ES256":I="P-256"===N.crv;break;case"ES256K":I="secp256k1"===N.crv;break;case"ES384":I="P-384"===N.crv;break;case"ES512":I="P-521"===N.crv}return I}),{0:R,length:L}=M;if(0===L)throw new eu;if(1!==L){let N=new ed,{_cached:I}=this;throw N[Symbol.asyncIterator]=async function*(){for(let N of M)try{yield await rd(I,N,T)}catch(N){continue}},N}return rd(this._cached,R,T)}}async function rd(N,I,T){let P=N.get(I)||N.set(I,{}).get(I);if(void 0===P[T]){let N=await tp({...I,ext:!0},T);if(N instanceof Uint8Array||"public"!==N.type)throw new ec("JSON Web Key Set members must be public keys");P[T]=N}return P[T]}function rf(N){let I=new ru(N);return async function(N,T){return I.getKey(N,T)}}let rh=async(N,I,T)=>{let P,D,M=!1;"function"==typeof AbortController&&(P=new AbortController,D=setTimeout(()=>{M=!0,P.abort()},I));let R=await fetch(N.href,{signal:P?P.signal:void 0,redirect:"manual",headers:T.headers}).catch(N=>{if(M)throw new ef;throw N});if(void 0!==D&&clearTimeout(D),200!==R.status)throw new Z("Expected 200 OK from the JSON Web Key Set HTTP response");try{return await R.json()}catch(N){throw new Z("Failed to parse the JSON Web Key Set HTTP response as JSON")}};function rp(){return"u">typeof WebSocketPair||"u">typeof navigator&&"Cloudflare-Workers"===navigator.userAgent||"u">typeof EdgeRuntime&&"vercel"===EdgeRuntime}class rm extends ru{constructor(N,I){if(super({keys:[]}),this._jwks=void 0,!(N instanceof URL))throw TypeError("url must be an instance of URL");this._url=new URL(N.href),this._options={agent:null==I?void 0:I.agent,headers:null==I?void 0:I.headers},this._timeoutDuration="number"==typeof(null==I?void 0:I.timeoutDuration)?null==I?void 0:I.timeoutDuration:5e3,this._cooldownDuration="number"==typeof(null==I?void 0:I.cooldownDuration)?null==I?void 0:I.cooldownDuration:3e4,this._cacheMaxAge="number"==typeof(null==I?void 0:I.cacheMaxAge)?null==I?void 0:I.cacheMaxAge:6e5}coolingDown(){return"number"==typeof this._jwksTimestamp&&Date.now()<this._jwksTimestamp+this._cooldownDuration}fresh(){return"number"==typeof this._jwksTimestamp&&Date.now()<this._jwksTimestamp+this._cacheMaxAge}async getKey(N,I){this._jwks&&this.fresh()||await this.reload();try{return await super.getKey(N,I)}catch(T){if(T instanceof eu&&!1===this.coolingDown())return await this.reload(),super.getKey(N,I);throw T}}
1288async reload(){this._pendingFetch&&rp()&&(this._pendingFetch=void 0),this._pendingFetch||(this._pendingFetch=rh(this._url,this._timeoutDuration,this._options).then(N=>{if(!rs(N))throw new ec("JSON Web Key Set malformed");this._jwks={keys:N.keys},this._jwksTimestamp=Date.now(),this._pendingFetch=void 0}).catch(N=>{throw this._pendingFetch=void 0,N})),await this._pendingFetch}}function rg(N,I){let T=new rm(N,I);return async function(N,I){return T.getKey(N,I)}}class ry extends t9{encode(){let N=Y(JSON.stringify({alg:"none"})),I=Y(JSON.stringify(this._payload));return`${N}.${I}.`}static decode(N,I){let T;if("string"!=typeof N)throw new es("Unsecured JWT must be a string");let{0:P,1:D,2:M,length:R}=N.split(".");if(3!==R||""!==M)throw new es("Invalid Unsecured JWT");try{if(T=JSON.parse(F.decode(Q(P))),"none"!==T.alg)throw Error()}catch(N){throw new es("Invalid Unsecured JWT")}return{payload:t0(T,Q(D),I),header:T}}}let rb=Y,rv=Q;function rw(N){let I;if("string"==typeof N){let T=N.split(".");(3===T.length||5===T.length)&&([I]=T)}else if("object"==typeof N&&N)if("protected"in N)I=N.protected;else throw TypeError("Token does not contain a Protected Header");try{if("string"!=typeof I||!I)throw Error();let N=JSON.parse(F.decode(rv(I)));if(!eF(N))throw Error();return N}catch(N){throw TypeError("Invalid Token or Protected Header formatting")}}function rx(N){let I,T;if("string"!=typeof N)throw new es("JWTs must use Compact JWS serialization, JWT must be a string");let{1:P,length:D}=N.split(".");if(5===D)throw new es("Only JWTs using Compact JWS serialization can be decoded");if(3!==D)throw new es("Invalid JWT");if(!P)throw new es("JWTs must contain a payload");try{I=rv(P)}catch(N){throw new es("Failed to base64url decode the payload")}try{T=JSON.parse(F.decode(I))}catch(N){throw new es("Failed to parse the decoded payload as JSON")}if(!eF(T))throw new es("Invalid JWT Claims Set");return T}async function rA(N,I){var T;let P,D,R;switch(N){case"HS256":case"HS384":case"HS512":P=parseInt(N.slice(-3),10),D={name:"HMAC",hash:`SHA-${P}`,length:P},R=["sign","verify"];break;case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return ep(new Uint8Array((P=parseInt(N.slice(-3),10))>>3));case"A128KW":case"A192KW":case"A256KW":D={name:"AES-KW",length:P=parseInt(N.slice(1,4),10)},R=["wrapKey","unwrapKey"];break;case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":case"A128GCM":case"A192GCM":case"A256GCM":D={name:"AES-GCM",length:P=parseInt(N.slice(1,4),10)},R=["encrypt","decrypt"];break;default:throw new er('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}return M.subtle.generateKey(D,null!=(T=null==I?void 0:I.extractable)&&T,R)}function rE(N){var I;let T=null!=(I=null==N?void 0:N.modulusLength)?I:2048;if("number"!=typeof T||T<2048)throw new er("Invalid or unsupported modulusLength option provided, 2048 bits or larger keys must be used");return T}async function rS(N,I){var T,P,D;let R,L;switch(N){case"PS256":case"PS384":case"PS512":R={name:"RSA-PSS",hash:`SHA-${N.slice(-3)}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:rE(I)},L=["sign","verify"];break;case"RS256":case"RS384":case"RS512":R={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${N.slice(-3)}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:rE(I)},L=["sign","verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":R={name:"RSA-OAEP",hash:`SHA-${parseInt(N.slice(-3),10)||1}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:rE(I)},L=["decrypt","unwrapKey","encrypt","wrapKey"];break;case"ES256":R={name:"ECDSA",namedCurve:"P-256"},L=["sign","verify"];break;case"ES384":R={name:"ECDSA",namedCurve:"P-384"},L=["sign","verify"];break;case"ES512":R={name:"ECDSA",namedCurve:"P-521"},L=["sign","verify"];break;case"EdDSA":L=["sign","verify"];let $=null!=(T=null==I?void 0:I.crv)?T:"Ed25519";
1288switch($){case"Ed25519":case"Ed448":R={name:$};break;default:throw new er("Invalid or unsupported crv option provided")}break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{L=["deriveKey","deriveBits"];let N=null!=(P=null==I?void 0:I.crv)?P:"P-256";switch(N){case"P-256":case"P-384":case"P-521":R={name:"ECDH",namedCurve:N};break;case"X25519":case"X448":R={name:N};break;default:throw new er("Invalid or unsupported crv option provided, supported values are P-256, P-384, P-521, X25519, and X448")}break}default:throw new er('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}return M.subtle.generateKey(R,null!=(D=null==I?void 0:I.extractable)&&D,L)}async function r_(N,I){return rS(N,I)}async function rk(N,I){return rA(N,I)}let rC="WebCryptoAPI"},77328:(N,I,T)=>{N.exports=T(48496)},77374:(N,I,T)=>{"use strict";T.d(I,{Du:()=>B,F8:()=>L,Tv:()=>$,kD:()=>F});var P=T(66799),D=T(35662),M=T(98176),R=T(81202);let L=(N,I,T)=>`${I} ${(0,P.GP)(N,"d MMMM yyyy",{locale:(0,R.Me)(T)})}`,$=N=>(N/1048576).toFixed(2)+" MB",F=N=>N.size<=M.CF,B=(N,I,T)=>{let P=N.errors[0];return P.code===D.O4.FileInvalidType?I??P.message??"File type is incorrect":P.code===D.O4.FileTooLarge?T??"File size is incorrect":P.message??"An error occurred"}},77470:(N,I,T)=>{"use strict";T.d(I,{l:()=>L});var P=T(37876),D=T(47137),M=T(36379);let R=(0,D.F)([],{variants:{type:{title:"text-m-h4 text-brunel-dark-grey md:text-d-h4",subtitle:"text-m-body-small text-ui-grey md:text-d-body-small","title-th":"text-m-h4 text-th-body-text md:text-d-h4","subtitle-th":"text-m-body-small text-th-body-text md:text-d-body-small"},effect:{"floating-group":"absolute top-3 -mx-1 ml-3 cursor-text rounded-xs px-1 leading-normal! transition-all duration-300 ease-in-out group-has-placeholder-shown:top-3 group-has-placeholder-shown:text-m-body-medium group-has-valid:bg-white group-has-focus:-top-3! group-has-focus:bg-white group-has-focus:px-1 group-has-focus:text-d-body-small!","floating-peer":"absolute top-3 -mx-1 ml-3 cursor-text rounded-xs px-1 leading-5.5! transition-all duration-300 ease-in-out peer-placeholder-shown:top-3 peer-placeholder-shown:text-m-body-medium peer-valid:bg-white peer-focus:-top-3 peer-focus:bg-white peer-focus:text-d-body-small"}},defaultVariants:{type:"title"}}),L=({id:N,type:I,effect:T,label:D,title:L,focusOnClick:$=!0,className:F})=>D&&(0,P.jsx)("label",{htmlFor:N,title:L,onClick:N=>!$&&N.preventDefault(),className:(0,M.cn)(R({type:I,effect:T}),F),children:D})},77501:(N,I,T)=>{"use strict";T.r(I),T.d(I,{Default:()=>$,IntractiveStoryEmbed:()=>L});var P=T(37876),D=T(45105),M=T.n(D),R=T(30463);let L=()=>"NL"!==R.A.defaultSite?null:(0,P.jsx)(M(),{id:"intrative-player-bootstrap",src:"/IntractiveStoryScript.js",strategy:"afterInteractive"}),$=L},77820:N=>{"use strict";var I=Object.defineProperty,T=Object.getOwnPropertyDescriptor,P=Object.getOwnPropertyNames,D=Object.prototype.hasOwnProperty,M=(N,M,R,L)=>{if(M&&"object"==typeof M||"function"==typeof M)for(let $ of P(M))D.call(N,$)||$===R||I(N,$,{get:()=>M[$],enumerable:!(L=T(M,$))||L.enumerable});return N},R=N=>M(I({},"__esModule",{value:!0}),N),L={};function $(N){var I;let T=["path"in N&&N.path&&`Path=${N.path}`,"expires"in N&&(N.expires||0===N.expires)&&`Expires=${("number"==typeof N.expires?new Date(N.expires):N.expires).toUTCString()}`,"maxAge"in N&&"number"==typeof N.maxAge&&`Max-Age=${N.maxAge}`,"domain"in N&&N.domain&&`Domain=${N.domain}`,"secure"in N&&N.secure&&"Secure","httpOnly"in N&&N.httpOnly&&"HttpOnly","sameSite"in N&&N.sameSite&&`SameSite=${N.sameSite}`,"partitioned"in N&&N.partitioned&&"Partitioned","priority"in N&&N.priority&&`Priority=${N.priority}`].filter(Boolean),P=`${N.name}=${encodeURIComponent(null!=(I=N.value)?I:"")}`;return 0===T.length?P:`${P}; ${T.join("; ")}`}function F(N){let I=new Map;for(let T of N.split(/; */)){if(!T)continue;let N=T.indexOf("=");if(-1===N){I.set(T,"true");continue}let[P,D]=[T.slice(0,N),T.slice(N+1)];try{I.set(P,decodeURIComponent(null!=D?D:"true"))}catch{}}return I}function B(N){if(!N)return;let[[I,T],...P]=F(N),{domain:D,expires:M,httponly:R,maxage:L,path:$,samesite:B,secure:H,partitioned:W,priority:G}=Object.fromEntries(P.map(([N,I])=>[N.toLowerCase().replace(/-/g,""),I]));return U({name:I,value:decodeURIComponent(T),domain:D,...M&&{expires:new Date(M)},...R&&{httpOnly:!0},..."string"==typeof L&&{maxAge:Number(L)},path:$,...B&&{sameSite:z(B)},...H&&{secure:!0},...G&&{priority:q(G)},...W&&{partitioned:!0}})}function U(N){let I={};for(let T in N)N[T]&&(I[T]=N[T]);return I}((N,T)=>{for(var P in T)I(N,P,{get:T[P],enumerable:!0})})(L,{RequestCookies:()=>K,ResponseCookies:()=>V,parseCookie:()=>F,parseSetCookie:()=>B,stringifyCookie:()=>$}),N.exports=R(L);var H=["strict","lax","none"];function z(N){return N=N.toLowerCase(),H.includes(N)?N:void 0}var W=["low","medium","high"];function q(N){return N=N.toLowerCase(),W.includes(N)?N:void 0}function G(N){if(!N)return[];var I,T,P,D,M,R=[],L=0;function $(){for(;L<N.length&&/\s/.test(N.charAt(L));)L+=1;return L<N.length}function F(){return"="!==(T=N.charAt(L))&&";"!==T&&","!==T}for(;L<N.length;){for(I=L,M=!1;$();)if(","===(T=N.charAt(L))){for(P=L,L+=1,$(),D=L;L<N.length&&F();)L+=1;
1288L<N.length&&"="===N.charAt(L)?(M=!0,L=D,R.push(N.substring(I,P)),I=L):L=P+1}else L+=1;(!M||L>=N.length)&&R.push(N.substring(I,N.length))}return R}var K=class{constructor(N){this._parsed=new Map,this._headers=N;const I=N.get("cookie");if(I)for(const[N,T]of F(I))this._parsed.set(N,{name:N,value:T})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...N){let I="string"==typeof N[0]?N[0]:N[0].name;return this._parsed.get(I)}getAll(...N){var I;let T=Array.from(this._parsed);if(!N.length)return T.map(([N,I])=>I);let P="string"==typeof N[0]?N[0]:null==(I=N[0])?void 0:I.name;return T.filter(([N])=>N===P).map(([N,I])=>I)}has(N){return this._parsed.has(N)}set(...N){let[I,T]=1===N.length?[N[0].name,N[0].value]:N,P=this._parsed;return P.set(I,{name:I,value:T}),this._headers.set("cookie",Array.from(P).map(([N,I])=>$(I)).join("; ")),this}delete(N){let I=this._parsed,T=Array.isArray(N)?N.map(N=>I.delete(N)):I.delete(N);return this._headers.set("cookie",Array.from(I).map(([N,I])=>$(I)).join("; ")),T}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(N=>`${N.name}=${encodeURIComponent(N.value)}`).join("; ")}},V=class{constructor(N){var I,T,P;this._parsed=new Map,this._headers=N;const D=null!=(P=null!=(T=null==(I=N.getSetCookie)?void 0:I.call(N))?T:N.get("set-cookie"))?P:[];for(const N of Array.isArray(D)?D:G(D)){const I=B(N);I&&this._parsed.set(I.name,I)}}get(...N){let I="string"==typeof N[0]?N[0]:N[0].name;return this._parsed.get(I)}getAll(...N){var I;let T=Array.from(this._parsed.values());if(!N.length)return T;let P="string"==typeof N[0]?N[0]:null==(I=N[0])?void 0:I.name;return T.filter(N=>N.name===P)}has(N){return this._parsed.has(N)}set(...N){let[I,T,P]=1===N.length?[N[0].name,N[0].value,N[0]]:N,D=this._parsed;return D.set(I,J({name:I,value:T,...P})),Y(D,this._headers),this}delete(...N){let[I,T]="string"==typeof N[0]?[N[0]]:[N[0].name,N[0]];return this.set({...T,name:I,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map($).join("; ")}};function Y(N,I){for(let[,T]of(I.delete("set-cookie"),N)){let N=$(T);I.append("set-cookie",N)}}function J(N={name:"",value:""}){return"number"==typeof N.expires&&(N.expires=new Date(N.expires)),N.maxAge&&(N.expires=new Date(Date.now()+1e3*N.maxAge)),(null===N.path||void 0===N.path)&&(N.path="/"),N}},78028:(N,I,T)=>{"use strict";let P,D,M,R;T.d(I,{A:()=>nb});var L,$,F,B,U={};function H(N,I){return function(){return N.apply(I,arguments)}}T.r(U),T.d(U,{hasBrowserEnv:()=>tX,hasStandardBrowserEnv:()=>t1,hasStandardBrowserWebWorkerEnv:()=>t2,navigator:()=>t0,origin:()=>t3});var z=T(99742);let{toString:W}=Object.prototype,{getPrototypeOf:q}=Object,{iterator:G,toStringTag:K}=Symbol,V=(({hasOwnProperty:N})=>(I,T)=>N.call(I,T))(Object.prototype),Y=N=>"string"==typeof N&&("__proto__"===N||"constructor"===N||"prototype"===N),J=(N,I,T)=>N===Object.prototype||!T&&null===I,Q=N=>{if(!Object.isExtensible(N))return!1;let I=Object.getOwnPropertyNames(N);return Object.getOwnPropertySymbols&&I.push(...Object.getOwnPropertySymbols(N)),I.every(I=>{if(Y(I))return!1;let T=Object.getOwnPropertyDescriptor(N,I);return!!T&&T.configurable&&!0===T.writable})},Z=(N,I)=>{let T=N,P=[];for(;null!=T&&-1===P.indexOf(T);){P.push(T);let D=q(T);if(J(T,D,T===N))break;if(V(T,I))return!0;T=D}return!1},X=(N,I)=>null!=N&&Z(N,I)?N[I]:void 0,ee=N=>{if(null==N||"object"!=typeof N&&"function"!=typeof N)return N;let I=q(N);if(null===I&&Q(N))return N;let T=Object.create(null),P=Object.create(null),D=[],M=N;for(;null!=M&&-1===D.indexOf(M);){D.push(M);let R=M===N?I:q(M);if(J(M,R,M===N))break;let L=Object.getOwnPropertyNames(M);for(let I of(Object.getOwnPropertySymbols&&L.push(...Object.getOwnPropertySymbols(M)),L))!Y(I)&&(V(P,I)||(T[I]=N[I],P[I]=!0));M=R}return T},et=(P=Object.create(null),N=>{let I=W.call(N);return P[I]||(P[I]=I.slice(8,-1).toLowerCase())}),er=N=>(N=N.toLowerCase(),I=>et(I)===N),en=N=>I=>typeof I===N,{isArray:ea}=Array,ei=en("undefined");function eo(N){return null!==N&&!ei(N)&&null!==N.constructor&&!ei(N.constructor)&&eu(N.constructor.isBuffer)&&N.constructor.isBuffer(N)}let es=er("ArrayBuffer");function el(N){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(N):N&&N.buffer&&es(N.buffer)}let ec=en("string"),eu=en("function"),ed=en("number"),ef=N=>null!==N&&"object"==typeof N,eh=N=>!0===N||!1===N,ep=N=>{if(!ef(N))return!1;let I=q(N);return(null===I||I===Object.prototype||null===q(I))&&!Z(N,K)&&!Z(N,G)},em=N=>{if(!ef(N)||eo(N))return!1;try{return 0===Object.keys(N).length&&Object.getPrototypeOf(N)===Object.prototype}catch(N){return!1}},eg=er("Date"),ey=er("File"),eb=N=>!!(N&&void 0!==N.uri),ev=N=>N&&void 0!==N.getParts,ew=er("Blob"),ex=er("FileList"),eA=er("Set"),eE=N=>ef(N)&&eu(N.pipe),eS="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},e_=void 0!==eS.FormData?eS.FormData:void 0,ek=N=>{if(!N)return!1;if(e_&&N instanceof e_)return!0;let I=q(N);if(!I||I===Object.prototype||!eu(N.append))return!1;let T=et(N);return"formdata"===T||"object"===T&&eu(N.toString)&&"[object FormData]"===N.toString()},eC=er("URLSearchParams"),[ej,eO,eN,eI]=["ReadableStream","Request","Response","Headers"].map(er),eT=N=>N.trim?N.trim():N.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function eP(N,I,{allOwnKeys:T=!1}={}){let P,D;if(null!=N)if("object"!=typeof N&&(N=[N]),ea(N))for(P=0,D=N.length;P<D;P++)I.call(null,N[P],P,N);else{let D;if(eo(N))return;let M=T?Object.getOwnPropertyNames(N):Object.keys(N),R=M.length;for(P=0;P<R;P++)D=M[P],I.call(null,N[D],D,N)}}function eD(N,I){let T;if(eo(N))return null;I=I.toLowerCase();let P=Object.keys(N),D=P.length;for(;D-- >0;)if(I===(T=P[D]).toLowerCase())return T;return null}let eM="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,eR=N=>!ei(N)&&N!==eM;function eL(...N){let{caseless:I,skipUndefined:T}=eR(this)&&this||{},P={},D=(N,D)=>
1288{if("__proto__"===D||"constructor"===D||"prototype"===D)return;let M=I&&"string"==typeof D&&eD(P,D)||D,R=V(P,M)?P[M]:void 0;ep(R)&&ep(N)?P[M]=eL(R,N):ep(N)?P[M]=eL({},N):ea(N)?P[M]=N.slice():T&&ei(N)||(P[M]=N)};for(let I=0,T=N.length;I<T;I++){let T=N[I];if(!T||eo(T)||(eP(T,D),"object"!=typeof T||ea(T)))continue;let P=Object.getOwnPropertySymbols(T);for(let N=0;N<P.length;N++){let I=P[N];eY.call(T,I)&&D(T[I],I)}}return P}let e$=(N,I,T,{allOwnKeys:P}={})=>(eP(I,(I,P)=>{T&&eu(I)?Object.defineProperty(N,P,{__proto__:null,value:H(I,T),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(N,P,{__proto__:null,value:I,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:P}),N),eF=N=>(65279===N.charCodeAt(0)&&(N=N.slice(1)),N),eB=(N,I,T,P)=>{N.prototype=Object.create(I.prototype,P),Object.defineProperty(N.prototype,"constructor",{__proto__:null,value:N,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(N,"super",{__proto__:null,value:I.prototype}),T&&Object.assign(N.prototype,T)},eU=(N,I,T,P)=>{let D,M,R,L={};if(I=I||{},null==N)return I;do{for(M=(D=Object.getOwnPropertyNames(N)).length;M-- >0;)R=D[M],(!P||P(R,N,I))&&!L[R]&&(I[R]=N[R],L[R]=!0);N=!1!==T&&q(N)}while(N&&(!T||T(N,I))&&N!==Object.prototype);return I},eH=(N,I,T)=>{N=String(N),(void 0===T||T>N.length)&&(T=N.length),T-=I.length;let P=N.indexOf(I,T);return -1!==P&&P===T},ez=N=>{if(!N)return null;if(ea(N))return N;let I=N.length;if(!ed(I))return null;let T=Array(I);for(;I-- >0;)T[I]=N[I];return T},eW=(D="u">typeof Uint8Array&&q(Uint8Array),N=>D&&N instanceof D),eq=(N,I)=>{let T,P=(N&&N[G]).call(N);for(;(T=P.next())&&!T.done;){let P=T.value;I.call(N,P[0],P[1])}},eG=(N,I)=>{let T,P=[];for(;null!==(T=N.exec(I));)P.push(T);return P},eK=er("HTMLFormElement"),eV=N=>N.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(N,I,T){return I.toUpperCase()+T}),{propertyIsEnumerable:eY}=Object.prototype,eJ=er("RegExp"),eQ=(N,I)=>{let T=Object.getOwnPropertyDescriptors(N),P={};eP(T,(T,D)=>{let M;!1!==(M=I(T,D,N))&&(P[D]=M||T)}),Object.defineProperties(N,P)},eZ=N=>{eQ(N,(I,T)=>{if(eu(N)&&["arguments","caller","callee"].includes(T))return!1;if(eu(N[T])){if(I.enumerable=!1,"writable"in I){I.writable=!1;return}I.set||(I.set=()=>{throw Error("Can not rewrite read-only method '"+T+"'")})}})},eX=(N,I)=>{let T={};return(N=>{N.forEach(N=>{T[N]=!0})})(ea(N)?N:String(N).split(I)),T},e0=()=>{},e1=(N,I)=>null!=N&&Number.isFinite(N*=1)?N:I;function e2(N){return!!(N&&eu(N.append)&&"FormData"===N[K]&&N[G])}let e3=N=>{let I=new WeakSet,T=N=>{if(ef(N)){if(I.has(N))return;if(eo(N))return N;if(!("toJSON"in N)){let P;if(I.add(N),eA(N))for(let I of(P=[],N)){let N=T(I);ei(N)||P.push(N)}else P=ea(N)?[]:{},eP(N,(N,I)=>{let D=T(N);ei(D)||(P[I]=D)});return I.delete(N),P}}return N};return T(N)},e4=er("AsyncFunction"),e5=N=>N&&(ef(N)||eu(N))&&eu(N.then)&&eu(N.catch),e6=(L="function"==typeof setImmediate,$=eu(eM.postMessage),L?setImmediate:$?(F=`axios@${Math.random()}`,B=[],eM.addEventListener("message",({source:N,data:I})=>{N===eM&&I===F&&B.length&&B.shift()()},!1),N=>{B.push(N),eM.postMessage(F,"*")}):N=>setTimeout(N)),e8="u">typeof queueMicrotask?queueMicrotask.bind(eM):void 0!==z&&z.nextTick||e6,e7=N=>null!=N&&eu(N[G]),e9=N=>null!=N&&Z(N,G)&&e7(N),te={isArray:ea,isArrayBuffer:es,isBuffer:eo,isFormData:ek,isArrayBufferView:el,isString:ec,isNumber:ed,isBoolean:eh,isObject:ef,isPlainObject:ep,isEmptyObject:em,isReadableStream:ej,isRequest:eO,isResponse:eN,isHeaders:eI,isUndefined:ei,isDate:eg,isFile:ey,isReactNativeBlob:eb,isReactNative:ev,isBlob:ew,isRegExp:eJ,isFunction:eu,isStream:eE,isURLSearchParams:eC,isTypedArray:eW,isFileList:ex,forEach:eP,merge:eL,extend:e$,trim:eT,stripBOM:eF,inherits:eB,toFlatObject:eU,kindOf:et,kindOfTest:er,endsWith:eH,toArray:ez,forEachEntry:eq,matchAll:eG,isHTMLForm:eK,hasOwnProperty:V,hasOwnProp:V,hasOwnInPrototypeChain:Z,getSafeProp:X,toSafeFlatObject:ee,reduceDescriptors:eQ,freezeMethods:eZ,toObjectSet:eX,toCamelCase:eV,noop:e0,toFiniteNumber:e1,findKey:eD,global:eM,isContextDefined:eR,isSpecCompliantForm:e2,toJSONObject:e3,isAsyncFn:e4,isThenable:e5,setImmediate:e6,asap:e8,isIterable:e7,isSafeIterable:e9},tt=te.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),tr=N=>{let I,T,P,D={};return N&&N.split("\n").forEach(function(N){P=N.indexOf(":"),I=N.substring(0,P).trim().toLowerCase(),T=N.substring(P+1).trim();let M=te.hasOwnProp(D,I);!I||M&&te.hasOwnProp(tt,I)||("set-cookie"===I?M?D[I].push(T):D[I]=[T]:D[I]=M?D[I]+", "+T:T)}),D};function tn(N){let I=0,T=N.length;for(;I<T;){let T=N.charCodeAt(I);if(9!==T&&32!==T)break;I+=1}for(;T>I;){let I=N.charCodeAt(T-1);if(9!==I&&32!==I)break;T-=1}return 0===I&&T===N.length?N:N.slice(I,T)}
1288let ta=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),ti=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function to(N,I){return te.isArray(N)?N.map(N=>to(N,I)):tn(String(N).replace(I,""))}let ts=N=>to(N,ta),tl=N=>to(N,ti);function tc(N){let I=Object.create(null);return te.forEach(N.toJSON(),(N,T)=>{I[T]=tl(N)}),I}let tu=Symbol("internals");function td(N){return N&&String(N).trim().toLowerCase()}function tf(N){return!1===N||null==N?N:te.isArray(N)?N.map(tf):ts(String(N))}function th(N){let I,T=Object.create(null),P=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;I=P.exec(N);)T[I[1]]=I[2];return T}let tp=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function tm(N){let I=0,T=N.length;for(;I<T;){let T=N.charCodeAt(I);if(9!==T&&32!==T)break;I+=1}for(;T>I;){let I=N.charCodeAt(T-1);if(9!==I&&32!==I)break;T-=1}return 0===I&&T===N.length?N:N.slice(I,T)}function tg(N){let I=N.length-1;if(I<1||34!==N.charCodeAt(0)||34!==N.charCodeAt(I))return N;let T="";for(let P=1;P<I;P++){let D=N.charCodeAt(P);if(34===D||92===D&&(P+=1)>=I)return N;T+=N[P]}return T}function ty(N){let I=Object.create(null),T=String(N),P=0,D=!1,M=!1;function R(N){let D=tm(T.slice(P,N)),M=D.indexOf("=");if(M<1)return;let R=tm(D.slice(0,M));if(!tp.test(R))return;let L=R.toLowerCase();if("__proto__"===L||"constructor"===L||"prototype"===L)return;let $=tm(D.slice(M+1));I[L]=tg($)}for(let N=0;N<T.length;N++){let I=T.charCodeAt(N);D?M?M=!1:92===I?M=!0:34===I&&(D=!1):34===I?D=!0:(44===I||59===I)&&(R(N),P=N+1)}return R(T.length),I}let tb=N=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(N.trim());function tv(N,I,T,P,D){if(te.isFunction(P))return P.call(this,I,T);if(D&&(I=T),te.isString(I)){if(te.isString(P))return -1!==I.indexOf(P);if(te.isRegExp(P))return P.test(I)}}function tw(N){return N.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(N,I,T)=>I.toUpperCase()+T)}function tx(N,I){let T=te.toCamelCase(" "+I);["get","set","has"].forEach(P=>{Object.defineProperty(N,P+T,{__proto__:null,value:function(N,T,D){return this[P].call(this,I,N,T,D)},configurable:!0})})}class tA{constructor(N){N&&this.set(N)}set(N,I,T){let P=this;function D(N,I,T){let D=td(I);if(!D)return;let M=te.findKey(P,D);M&&void 0!==P[M]&&!0!==T&&(void 0!==T||!1===P[M])||(P[M||I]=tf(N))}let M=(N,I)=>te.forEach(N,(N,T)=>D(N,T,I));if(te.isPlainObject(N)||N instanceof this.constructor)M(N,I);else if(te.isString(N)&&(N=N.trim())&&!tb(N))M(tr(N),I);else if(te.isObject(N)&&te.isSafeIterable(N)){let T=Object.create(null),P,D;for(let I of N){if(!te.isArray(I))throw TypeError("Object iterator must return a key-value pair");D=I[0],te.hasOwnProp(T,D)?(P=T[D],T[D]=te.isArray(P)?[...P,I[1]]:[P,I[1]]):T[D]=I[1]}M(T,I)}else null!=N&&D(I,N,T);return this}get(N,I){if(N=td(N)){let T=te.findKey(this,N);if(T){let N=this[T];if(!I)return N;if(!0===I)return th(N);if(te.isFunction(I))return I.call(this,N,T);if(te.isRegExp(I))return I.exec(N);throw TypeError("parser must be boolean|regexp|function")}}}has(N,I){if(N=td(N)){let T=te.findKey(this,N);return!!(T&&void 0!==this[T]&&(!I||tv(this,this[T],T,I)))}return!1}delete(N,I){let T=this,P=!1;function D(N){if(N=td(N)){let D=te.findKey(T,N);D&&(!I||tv(T,T[D],D,I))&&(delete T[D],P=!0)}}return te.isArray(N)?N.forEach(D):D(N),P}clear(N){let I=Object.keys(this),T=I.length,P=!1;for(;T--;){let D=I[T];(!N||tv(this,this[D],D,N,!0))&&(delete this[D],P=!0)}return P}normalize(N){let I=this,T={};return te.forEach(this,(P,D)=>{let M=te.findKey(T,D);if(M){I[M]=tf(P),delete I[D];return}let R=N?tw(D):String(D).trim();R!==D&&delete I[D],I[R]=tf(P),T[R]=!0}),this}concat(...N){return this.constructor.concat(this,...N)}toJSON(N){let I=Object.create(null);return te.forEach(this,(T,P)=>
1288{null!=T&&!1!==T&&(I[P]=N&&te.isArray(T)?T.join(", "):T)}),I}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([N,I])=>N+": "+I).join("\n")}getSetCookie(){let N=this.get("set-cookie");return te.isArray(N)?N:null==N||!1===N?[]:[N]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(N){return N instanceof this?N:new this(N)}static parseParameters(N){return ty(N)}static concat(N,...I){let T=new this(N);return I.forEach(N=>T.set(N)),T}static accessor(N){let I=(this[tu]=this[tu]={accessors:{}}).accessors,T=this.prototype;function P(N){let P=td(N);I[P]||(tx(T,N),I[P]=!0)}return te.isArray(N)?N.forEach(P):P(N),this}}tA.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),te.reduceDescriptors(tA.prototype,({value:N},I)=>{let T=I[0].toUpperCase()+I.slice(1);return{get:()=>N,set(N){this[T]=N}}}),te.freezeMethods(tA);let tE=tA,tS="[REDACTED ****]";function t_(N){if(te.hasOwnProp(N,"toJSON"))return!0;let I=Object.getPrototypeOf(N);for(;I&&I!==Object.prototype;){if(te.hasOwnProp(I,"toJSON"))return!0;I=Object.getPrototypeOf(I)}return!1}function tk(N,I){let T=new Set(I.map(N=>String(N).toLowerCase())),P=[],D=N=>{let I;if(null===N||"object"!=typeof N||te.isBuffer(N))return N;
1288if(-1===P.indexOf(N)){if(N instanceof tE&&(N=N.toJSON()),P.push(N),te.isArray(N))I=[],N.forEach((N,T)=>{let P=D(N);te.isUndefined(P)||(I[T]=P)});else{if(!te.isPlainObject(N)&&t_(N))return P.pop(),N;for(let[P,M]of(I=Object.create(null),Object.entries(N))){let N=T.has(P.toLowerCase())?tS:D(M);te.isUndefined(N)||(I[P]=N)}}return P.pop(),I}};return D(N)}function tC(N){try{return String(N)}catch(N){return""}}function tj(N){return N.errors.map(N=>{try{return N&&N.message?tC(N.message):tC(N)}catch(N){return""}}).filter(Boolean).join("; ")||N.name||"AggregateError"}class tO extends Error{static from(N,I,T,P,D,M){let R=N.message;!R&&te.isArray(N.errors)&&N.errors.length&&(R=tj(N));let L=new tO(R,I||N.code,T,P,D);return Object.defineProperty(L,"cause",{__proto__:null,value:N,writable:!0,enumerable:!1,configurable:!0}),L.name=N.name,null!=N.status&&null==L.status&&(L.status=N.status),M&&Object.assign(L,M),L}constructor(N,I,T,P,D){super(N),Object.defineProperty(this,"message",{__proto__:null,value:N,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,I&&(this.code=I),T&&(this.config=T),P&&(this.request=P),D&&(this.response=D,this.status=D.status)}toJSON(){let N=this.config,I=N&&te.hasOwnProp(N,"redact")?N.redact:void 0,T=te.isArray(I)&&I.length>0?tk(N,I):te.toJSONObject(N);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:T,code:this.code,status:this.status}}}tO.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",tO.ERR_BAD_OPTION="ERR_BAD_OPTION",tO.ECONNABORTED="ECONNABORTED",tO.ETIMEDOUT="ETIMEDOUT",tO.ECONNREFUSED="ECONNREFUSED",tO.ERR_NETWORK="ERR_NETWORK",tO.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",tO.ERR_DEPRECATED="ERR_DEPRECATED",tO.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",tO.ERR_BAD_REQUEST="ERR_BAD_REQUEST",tO.ERR_CANCELED="ERR_CANCELED",tO.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",tO.ERR_INVALID_URL="ERR_INVALID_URL",tO.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let tN=tO,tI=null,tT=100;function tP(N){return te.isPlainObject(N)||te.isArray(N)}function tD(N){return te.endsWith(N,"[]")?N.slice(0,-2):N}
1288function tM(N,I,T){return N?N.concat(I).map(function(N,I){return N=tD(N),!T&&I?"["+N+"]":N}).join(T?".":""):I}function tR(N){return te.isArray(N)&&!N.some(tP)}let tL=te.toFlatObject(te,{},null,function(N){return/^is[A-Z]/.test(N)}),t$=function(N,I,T){if(!te.isObject(N))throw TypeError("target must be an object");I=I||new(tI||FormData);let P=(N,I)=>{let P=te.getSafeProp(T,N);return te.isUndefined(P)?I:P},D=P("metaTokens",!0),M=P("visitor")||q,R=P("dots",!1),L=P("indexes",!1),$=P("Blob")||"u">typeof Blob&&Blob,F=P("maxDepth",tT),B=$&&te.isSpecCompliantForm(I),U=[];if(!te.isFunction(M))throw TypeError("visitor must be a function");function H(N){if(null===N)return"";if(te.isDate(N))return N.toISOString();if(te.isBoolean(N))return N.toString();if(!B&&te.isBlob(N))throw new tN("Blob is not supported. Use a Buffer instead.");if(te.isArrayBuffer(N)||te.isTypedArray(N)){if(B&&"function"==typeof $)return new $([N]);if(tI&&tI.isBufferAvailable())return tI.from(N);throw new tN("Blob is not supported. Use a Buffer instead.",tN.ERR_NOT_SUPPORT)}return N}function z(N){if(N>F)throw new tN("Object is too deeply nested ("+N+" levels). Max depth: "+F,tN.ERR_FORM_DATA_DEPTH_EXCEEDED)}function W(N,I){if(F===1/0)return JSON.stringify(N);let T=[];return JSON.stringify(N,function(N,P){if(!te.isObject(P))return P;for(;T.length&&T[T.length-1]!==this;)T.pop();return T.push(P),z(I+T.length-1),P})}function q(N,T,P){let M=N;if(te.isReactNative(I)&&te.isReactNativeBlob(N))return I.append(tM(P,T,R),H(N)),!1;if(N&&!P&&"object"==typeof N){if(te.endsWith(T,"{}"))T=D?T:T.slice(0,-2),N=W(N,1);else if(te.isArray(N)&&tR(N)||(te.isFileList(N)||te.endsWith(T,"[]"))&&(M=te.toArray(N)))return T=tD(T),M.forEach(function(N,P){te.isUndefined(N)||null===N||I.append(!0===L?tM([T],P,R):null===L?T:T+"[]",H(N))}),!1}return!!tP(N)||(I.append(tM(P,T,R),H(N)),!1)}let G=Object.assign(tL,{defaultVisitor:q,convertValue:H,isVisitable:tP});function K(N,T,P=0){if(!te.isUndefined(N)){if(z(P),-1!==U.indexOf(N))throw Error("Circular reference detected in "+T.join("."));U.push(N),te.forEach(N,function(N,D){!0===(!(te.isUndefined(N)||null===N)&&M.call(I,N,te.isString(D)?D.trim():D,T,G))&&K(N,T?T.concat(D):[D],P+1)}),U.pop()}}if(!te.isObject(N))throw TypeError("data must be an object");return K(N),I};function tF(N){let I={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(N).replace(/[!'()~]|%20/g,function(N){return I[N]})}function tB(N,I){this._pairs=[],N&&t$(N,this,I)}let tU=tB.prototype;tU.append=function(N,I){this._pairs.push([N,I])},tU.toString=function(N){let I=N?I=>N.call(this,I,tF):tF;return this._pairs.map(function(N){return I(N[0])+"="+I(N[1])},"").join("&")};let tH=tB;function tz(N){return encodeURIComponent(N).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function tW(N,I,T){let P;if(!I)return N;N=N||"";let D=te.isFunction(T)?{serialize:T}:T,M=te.getSafeProp(D,"encode")||tz,R=te.getSafeProp(D,"serialize");if(P=R?R(I,D):te.isURLSearchParams(I)?I.toString():new tH(I,D).toString(M)){let I=N.indexOf("#");-1!==I&&(N=N.slice(0,I)),N+=(-1===N.indexOf("?")?"?":"&")+P}return N}let tq=Symbol("internals");function tG(N){return N?N.length:0}function tK(N){if(N)for(;N.length&&null===N[N.length-1];)N.pop()}function tV(N,I){let T=N.handlers,P=tG(T);T!==I.handlersRef?(I.handlersRef=T,I.handlerEntries.clear()):P!==I.handlersLength&&(P?I.handlerEntries.forEach(function(N,P){T[N.index]!==N.handler&&I.handlerEntries.delete(P)}):I.handlerEntries.clear()),I.handlersLength=P}class tY{constructor(){this.handlers=[],this[tq]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(N,I,T){let P={fulfilled:N,rejected:I,synchronous:!!T&&T.synchronous,runWhen:T?T.runWhen:null},D=this[tq];null==this.handlers&&(this.handlers=[]),tV(this,D);let M=D.nextId++;return this.handlers.push(P),D.handlerEntries.set(M,{handler:P,index:this.handlers.length-1}),D.handlersLength=this.handlers.length,M}eject(N){let I=this[tq];tV(this,I);let T=I.handlerEntries.get(N);if(T){if(I.handlerEntries.delete(N),this.handlers[T.index]!==T.handler)return;this.handlers[T.index]=null,I.iterationDepth||(tK(this.handlers),I.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],tV(this,this[tq]))}forEach(N){let I=this[tq];tV(this,I),I.iterationDepth++;try{te.forEach(this.handlers,function(I){null!==I&&N(I)})}finally{--I.iterationDepth||(tV(this,I),tK(this.handlers),I.handlersLength=tG(this.handlers))}}}let tJ=tY,tQ={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0}
1288,tZ={isBrowser:!0,classes:{URLSearchParams:"u">typeof URLSearchParams?URLSearchParams:tH,FormData:"u">typeof FormData?FormData:null,Blob:"u">typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},tX="u">typeof window&&"u">typeof document,t0="object"==typeof navigator&&navigator||void 0,t1=tX&&(!t0||0>["ReactNative","NativeScript","NS"].indexOf(t0.product)),t2="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,t3=tX&&window.location.href||"http://localhost",t4={...U,...tZ};function t5(N,I){return t$(N,new t4.classes.URLSearchParams,{visitor:function(N,I,T,P){return t4.isNode&&te.isBuffer(N)?(this.append(I,N.toString("base64")),!1):P.defaultVisitor.apply(this,arguments)},...I})}let t6=tT;function t8(N){if(N>t6)throw new tN("FormData field is too deeply nested ("+N+" levels). Max depth: "+t6,tN.ERR_FORM_DATA_DEPTH_EXCEEDED)}function t7(N){let I,T=[],P=/[^.[\]]+|\[([^.[\]]*)]/g;for(;null!==(I=P.exec(N));)t8(T.length),T.push("[]"===I[0]?"":I[1]||I[0]);return T}function t9(N){let I,T,P={},D=Object.keys(N),M=D.length;for(I=0;I<M;I++)P[T=D[I]]=N[T];return P}let re=function(N){function I(N,T,P,D){t8(D);let M=N[D++];if("__proto__"===M)return!0;let R=Number.isFinite(+M),L=D>=N.length;return(M=!M&&te.isArray(P)?P.length:M,L)?te.hasOwnProp(P,M)?P[M]=te.isArray(P[M])?P[M].concat(T):[P[M],T]:P[M]=T:(te.hasOwnProp(P,M)&&te.isObject(P[M])||(P[M]=[]),I(N,T,P[M],D)&&te.isArray(P[M])&&(P[M]=t9(P[M]))),!R}if(te.isFormData(N)&&te.isFunction(N.entries)){let T={};return te.forEachEntry(N,(N,P)=>{I(t7(N),P,T,0)}),T}return null},rt=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),rr=(N,I)=>null!=N&&te.hasOwnProp(N,I)?N[I]:void 0;function rn(N,I,T){if(te.isString(N))try{return(I||JSON.parse)(N),te.trim(N)}catch(N){if("SyntaxError"!==N.name)throw N}return(T||JSON.stringify)(N)}let ra={transitional:tQ,adapter:["xhr","http","fetch"],transformRequest:[function(N,I){let T,P=I.getContentType()||"",D=P.indexOf("application/json")>-1,M=te.isObject(N);if(M&&te.isHTMLForm(N)&&(N=new FormData(N)),te.isFormData(N))return D?JSON.stringify(re(N)):N;if(te.isArrayBuffer(N)||te.isBuffer(N)||te.isStream(N)||te.isFile(N)||te.isBlob(N)||te.isReadableStream(N))return N;if(te.isArrayBufferView(N))return N.buffer;if(te.isURLSearchParams(N))return I.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),N.toString();
1288if(M){let I=rr(this,"formSerializer");if(P.indexOf("application/x-www-form-urlencoded")>-1)return t5(N,I).toString();if((T=te.isFileList(N))||P.indexOf("multipart/form-data")>-1){let P=rr(this,"env"),D=P&&P.FormData;return t$(T?{"files[]":N}:N,D&&new D,I)}}return M||D?(I.setContentType("application/json",!1),rn(N)):N}],transformResponse:[function(N){let I=rr(this,"transitional")||ra.transitional,T=I&&I.forcedJSONParsing,P=rr(this,"responseType"),D="json"===P;if(te.isResponse(N)||te.isReadableStream(N))return N;if(N&&te.isString(N)&&(T&&!P||D)){let T=!(I&&I.silentJSONParsing)&&D;try{return JSON.parse(N,rr(this,"parseReviver"))}catch(N){if(T){if("SyntaxError"===N.name)throw tN.from(N,tN.ERR_BAD_RESPONSE,this,null,rr(this,"response"));throw N}}}return N}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:t4.classes.FormData,Blob:t4.classes.Blob},validateStatus:function(N){return N>=200&&N<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};te.forEach(rt,N=>{ra.headers[N]={}});let ri=ra;function ro(N,I){let T=this||ri,P=I||T,D=tE.from(P.headers),M=P.data;return te.forEach(N,function(N){M=N.call(T,M,D.normalize(),I?I.status:void 0)}),D.normalize(),M}function rs(N){return!!(N&&N.__CANCEL__)}class rl extends tN{constructor(N,I,T){super(null==N?"canceled":N,tN.ERR_CANCELED,I,T),this.name="CanceledError",this.__CANCEL__=!0}}let rc=rl;function ru(N,I,T){let P=T.config.validateStatus;!T.status||!P||P(T.status)?N(T):I(new tN("Request failed with status code "+T.status,T.status>=400&&T.status<500?tN.ERR_BAD_REQUEST:tN.ERR_BAD_RESPONSE,T.config,T.request,T))}let rd=/[\t\n\r]/g;function rf(N){if("string"!=typeof N)return N;let I=0;for(;I<N.length&&32>=N.charCodeAt(I);)I++;return N.slice(I).replace(rd,"")}function rh(N){let I=/^([-+\w]{1,25}):(?:\/\/)?/.exec(N);return I&&I[1]||""}let rp=function(N,I){let T,P=Array(N=N||10),D=Array(N),M=0,R=0;return I=void 0!==I?I:1e3,function(L){let $=Date.now(),F=D[R];T||(T=$),P[M]=L,D[M]=$;let B=R,U=0;for(;B!==M;)U+=P[B++],B%=N;if((M=(M+1)%N)===R&&(R=(R+1)%N),$-T<I)return;let H=F&&$-F;return H?Math.round(1e3*U/H):void 0}},rm=function(N,I){let T,P,D=0,M=1e3/I,R=(I,M=Date.now())=>{D=M,T=null,P&&(clearTimeout(P),P=null),N(...I)};return[(...N)=>{let I=Date.now(),L=I-D;L>=M?R(N,I):(T=N,P||(P=setTimeout(()=>{P=null,R(T)},M-L)))},()=>T&&R(T),(...N)=>R(N)]},rg=(N,I,T=3)=>{let P=0,D=rp(50,250);return rm(T=>{if(!T||!te.isNumber(T.loaded))return;let M=T.loaded,R=T.lengthComputable?T.total:void 0,L=Math.max(0,null!=R?Math.min(M,R):M),$=Math.max(0,L-P),F=D($);P=Math.max(P,L),N({loaded:L,total:R,progress:R?L/R:void 0,bytes:$,rate:F||void 0,estimated:F&&R?(R-L)/F:void 0,event:T,lengthComputable:null!=R,[I?"download":"upload"]:!0})},T)},ry=(N,I)=>{let T=null!=N;return[P=>I[0]({lengthComputable:T,total:N,loaded:P}),I[1]]},rb=(N,I=te.asap)=>(...T)=>I(()=>N(...T)),rv=t4.hasStandardBrowserEnv?(M=new URL(t4.origin),R=t4.navigator&&/(msie|trident)/i.test(t4.navigator.userAgent),N=>(N=new URL(N,t4.origin),M.protocol===N.protocol&&M.host===N.host&&(R||M.port===N.port))):()=>!0,rw=t4.hasStandardBrowserEnv?{write(N,I,T,P,D,M,R){if("u"<typeof document)return;let L=[`${N}=${encodeURIComponent(I)}`];te.isNumber(T)&&L.push(`expires=${new Date(T).toUTCString()}`),te.isString(P)&&L.push(`path=${P}`),te.isString(D)&&L.push(`domain=${D}`),!0===M&&L.push("secure"),te.isString(R)&&L.push(`SameSite=${R}`),document.cookie=L.join("; ")},read(N){if("u"<typeof document)return null;let I=document.cookie.split(";");for(let T=0;T<I.length;T++){let P=I[T].replace(/^\s+/,""),D=P.indexOf("=");if(-1!==D&&P.slice(0,D)===N)try{return decodeURIComponent(P.slice(D+1))}catch(N){return P.slice(D+1)}}return null},remove(N){this.write(N,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function rx(N){return"string"==typeof N&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(N)}function rA(N,I){if(!I)return N;let T=N.length;for(;T>0&&47===N.charCodeAt(T-1);)T--;return N.slice(0,T)+"/"+I.replace(/^\/+/,"")}let rE=/^https?:(?!\/\/)/i;function rS(N){return N?N.replace(/(^|&)([^=&]*=)?[^&]+/g,(N,I,T="")=>`${I}
1288${T}${tS}`):N}function r_(N){let I=N.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${tS}@`),T=I.indexOf("#"),P=(-1===T?I:I.slice(0,T)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${tS}`);return -1===T?P:`${P}#${rS(I.slice(T+1))}`}function rk(N,I){if("string"==typeof N){let T=rf(N);if(rE.test(T))throw new tN(`Invalid URL ${JSON.stringify(r_(T))}: missing "//" after protocol`,tN.ERR_INVALID_URL,I)}}function rC(N,I,T,P){rk(I,P);let D=!rx(I);return N&&(D||!1===T)?(rk(N,P),rA(N,I)):I}let rj=N=>N instanceof tE?{...N}:N,rO=N=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(N).concat(Object.getOwnPropertySymbols(N).filter(I=>Object.getOwnPropertyDescriptor(N,I).enumerable)):Object.keys(N);function rN(N,I){N=N||{},I=I||{};let T=Object.create(null);function P(N,I,T,P){return te.isPlainObject(N)&&te.isPlainObject(I)?te.merge.call({caseless:P},N,I):te.isPlainObject(I)?te.merge({},I):te.isArray(I)?I.slice():I}function D(N,I,T,D){return te.isUndefined(I)?te.isUndefined(N)?void 0:P(void 0,N,T,D):P(N,I,T,D)}function M(N,I){if(!te.isUndefined(I))return P(void 0,I)}function R(N,I){return te.isUndefined(I)?te.isUndefined(N)?void 0:P(void 0,N):P(void 0,I)}function L(T){let P=te.hasOwnProp(I,"transitional")?I.transitional:void 0;if(!te.isUndefined(P)){if(!te.isPlainObject(P))return;else if(te.hasOwnProp(P,T))return P[T]}let D=te.hasOwnProp(N,"transitional")?N.transitional:void 0;if(te.isPlainObject(D)&&te.hasOwnProp(D,T))return D[T]}function $(T,D,M){return te.hasOwnProp(I,M)?P(T,D):te.hasOwnProp(N,M)?P(void 0,T):void 0}Object.defineProperty(T,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let F={url:M,method:M,data:M,baseURL:R,transformRequest:R,transformResponse:R,paramsSerializer:R,timeout:R,timeoutErrorMessage:R,withCredentials:R,withXSRFToken:R,adapter:R,responseType:R,xsrfCookieName:R,xsrfHeaderName:R,onUploadProgress:R,onDownloadProgress:R,decompress:R,maxContentLength:R,maxBodyLength:R,beforeRedirect:R,transport:R,httpAgent:R,httpsAgent:R,cancelToken:R,socketPath:R,allowedSocketPaths:R,responseEncoding:R,validateStatus:$,headers:(N,I,T)=>D(rj(N),rj(I),T,!0)};return te.forEach(rO({...N,...I}),function(P){if("__proto__"===P||"constructor"===P||"prototype"===P)return;let M=te.hasOwnProp(F,P)?F[P]:D,R=M(te.hasOwnProp(N,P)?N[P]:void 0,te.hasOwnProp(I,P)?I[P]:void 0,P);te.isUndefined(R)&&M!==$||(T[P]=R)}),te.hasOwnProp(I,"validateStatus")&&te.isUndefined(I.validateStatus)&&!1===L("validateStatusUndefinedResolves")&&(te.hasOwnProp(N,"validateStatus")?T.validateStatus=P(void 0,N.validateStatus):delete T.validateStatus),T}let rI=["content-type","content-length"];function rT(N,I,T){"content-only"!==T?N.set(I):Object.entries(I||{}).forEach(([I,T])=>{rI.includes(I.toLowerCase())&&N.set(I,T)})}let rP=N=>encodeURIComponent(N).replace(/%([0-9A-F]{2})/gi,(N,I)=>String.fromCharCode(parseInt(I,16))),rD=function(N){let I=rN({},N),T=N=>te.hasOwnProp(I,N)?I[N]:void 0,P=T("data"),D=T("withXSRFToken"),M=T("xsrfHeaderName"),R=T("xsrfCookieName"),L=T("headers"),$=T("auth"),F=T("baseURL"),B=T("allowAbsoluteUrls"),U=T("url");if(I.headers=L=tE.from(L),I.url=tW(rC(F,U,B,I),T("params"),T("paramsSerializer")),$){let I=te.getSafeProp($,"username")||"",T=te.getSafeProp($,"password")||"";try{L.set("Authorization","Basic "+btoa(I+":"+(T?rP(T):"")))}catch(I){throw tN.from(I,tN.ERR_BAD_OPTION_VALUE,N)}}if(te.isFormData(P)){let N=te.getSafeProp(P,"getHeaders");t4.hasStandardBrowserEnv||t4.hasStandardBrowserWebWorkerEnv||te.isReactNative(P)?L.setContentType(void 0):te.isFunction(N)&&rT(L,N.call(P),T("formDataHeaderPolicy"))}if(t4.hasStandardBrowserEnv&&(te.isFunction(D)&&(D=D(I)),!0===D||null==D&&rv(I.url))){let N=M&&R&&rw.read(R);N&&L.set(M,N)}return I},rM="u">typeof XMLHttpRequest&&function(N){return new Promise(function(I,T){let P,D,M,R,L,$,F=rD(N),B=F.data,U=tE.from(F.headers).normalize(),{responseType:H,onUploadProgress:z,onDownloadProgress:W}=F;function q(){R&&R(),L&&L(),F.cancelToken&&F.cancelToken.unsubscribe(P),F.signal&&F.signal.removeEventListener("abort",P)}let G=new XMLHttpRequest;function K(P){if(!G)return;if(0===G.status&&"file"!==(rh(rf(F.url))||rh(t4.origin))&&!(G.responseURL&&G.responseURL.startsWith("file:"))){T(new tN("Request aborted",tN.ECONNABORTED,N,G)),q(),G=null;return}try{P?$&&$(P):L&&L()}catch(N){setTimeout(()=>{throw N})}if(!G)return;let D=tE.from("getAllResponseHeaders"in G&&G.getAllResponseHeaders());ru(function(N){I(N),q()},function(N){T(N),q()},{data:H&&"text"!==H&&"json"!==H?G.response:G.responseText,status:G.status,statusText:G.statusText,headers:D,config:N,request:G}),G=null}G.open(F.method.toUpperCase(),F.url,!0),G.timeout=F.timeout,"onloadend"in G?G.onloadend=K:G.onreadystatechange=function(){!G||4!==G.readyState||(0!==G.status||G.responseURL&&G.responseURL.startsWith("file:"))&&setTimeout(K)},G.onabort=function(){G&&(T(new tN("Request aborted",tN.ECONNABORTED,N,G)),q(),G=null)},G.onerror=function(I){let P=new tN(I&&I.message?I.message:"Network Error",tN.ERR_NETWORK,N,G);P.event=I||null,T(P),q(),G=null},G.ontimeout=function(){let I=F.timeout?"timeout of "+F.timeout+"ms exceeded":"timeout exceeded",P=F.transitional||tQ;F.timeoutErrorMessage&&(I=F.timeoutErrorMessage),T(new tN(I,P.clarifyTimeoutError?tN.ETIMEDOUT:tN.ECONNABORTED,N,G)),q(),G=null},void 0===B&&U.setContentType(null),"setRequestHeader"in G&&te.forEach(tc(U),function(N,I){G.setRequestHeader(I,N)}),te.isUndefined(F.withCredentials)||(G.withCredentials=!!F.withCredentials),H&&"json"!==H&&(G.responseType=F.responseType),W&&([M,L,$]=rg(W,!0),G.addEventListener("progress",M)),z&&G.upload&&([D,R]=rg(z),G.upload.addEventListener("progress",D),G.upload.addEventListener("loadend",R)),(F.cancelToken||F.signal)&&(P=I=>{G&&(T(!I||I.type?new rc(null,N,G):I),G.abort(),q(),G=null)},F.cancelToken&&F.cancelToken.subscribe(P),F.signal&&(F.signal.aborted?P():F.signal.addEventListener("abort",P)));let V=rh(F.url);if(V&&!t4.protocols.includes(V)){T(new tN("Unsupported protocol "+V+":",tN.ERR_BAD_REQUEST,N)),q();return}G.send(B||null)})},rR=(N,I)=>
1288{if(N=N?N.filter(Boolean):[],!I&&!N.length)return;let T=new AbortController,P=!1,D=function(N){if(!P){P=!0,R();let I=N instanceof Error?N:this.reason;T.abort(I instanceof tN?I:new rc(I instanceof Error?I.message:I))}},M=I&&setTimeout(()=>{M=null,D(new tN(`timeout of ${I}ms exceeded`,tN.ETIMEDOUT))},I),R=()=>{N&&(M&&clearTimeout(M),M=null,N.forEach(N=>{N.unsubscribe?N.unsubscribe(D):N.removeEventListener("abort",D)}),N=null)};N.forEach(N=>{if(!P){if(N.aborted)return void D.call(N);N.addEventListener("abort",D,{once:!0})}});let{signal:L}=T;return L.unsubscribe=()=>te.asap(R),L},rL=function*(N,I){let T,P=N.byteLength;if(!I||P<I)return void(yield N);let D=0;for(;D<P;)T=D+I,yield N.slice(D,T),D=T},r$=async function*(N,I){for await(let T of rF(N))yield*rL(T,I)},rF=async function*(N){if(N[Symbol.asyncIterator])return void(yield*N);let I=N.getReader();try{for(;;){let{done:N,value:T}=await I.read();if(N)break;yield T}}finally{await I.cancel()}},rB=(N,I,T,P)=>{let D,M=r$(N,I),R=0,L=N=>{!D&&(D=!0,P&&P(N))};return new ReadableStream({async pull(N){try{let{done:I,value:P}=await M.next();if(I){L(),N.close();return}let D=P.byteLength;if(T){let N=R+=D;T(N)}N.enqueue(new Uint8Array(P))}catch(N){throw L(N),N}},cancel:N=>(L(N),M.return())},{highWaterMark:2})},rU=N=>N>=48&&N<=57||N>=65&&N<=70||N>=97&&N<=102,rH=(N,I,T)=>I+2<T&&rU(N.charCodeAt(I+1))&&rU(N.charCodeAt(I+2)),rz=N=>N<=57?N-48:(223&N)-55,rW=N=>N>=65&&N<=90||N>=97&&N<=122||N>=48&&N<=57||43===N||47===N||45===N||95===N,rq=N=>9===N||10===N||12===N||13===N||32===N,rG=N=>{let I=Math.floor(N/4),T=N%4;return 3*I+(2===T?1:2*(3===T))},rK=N=>{let I=N.length,T=0;return I>0&&61===N.charCodeAt(I-1)&&(T++,I>1&&61===N.charCodeAt(I-2)&&T++),Math.floor((I-T)*3/4)},rV=N=>{let I=N.length,T=0,P=0,D=!1;for(let M=0;M<I;M++){let R=N.charCodeAt(M);if(37===R&&rH(N,M,I)&&(R=16*rz(N.charCodeAt(M+1))+rz(N.charCodeAt(M+2)),M+=2),!rq(R)){if(61===R){P++;continue}if(!rW(R)||P>0){D=!0;continue}T++}}return D||P>2||P>0&&(T+P)%4!=0||T%4==1?rK(N):rG(T)},rY=(N,I)=>{if(!N||"string"!=typeof N||!N.startsWith("data:"))return 0;let T=N.indexOf(",");if(T<0)return 0;let P=N.slice(5,T),D=N.slice(T+1);if(/;base64/i.test(P))return I(D);let M=0;for(let N=0,I=D.length;N<I;
1288N++){let T=D.charCodeAt(N);if(37===T&&rH(D,N,I))M+=1,N+=2;else if(T<128)M+=1;else if(T<2048)M+=2;else if(T>=55296&&T<=56319&&N+1<I){let I=D.charCodeAt(N+1);I>=56320&&I<=57343?(M+=4,N++):M+=3}else M+=3}return M};function rJ(N){let I="string"==typeof N?N.indexOf("#"):-1;return rY(-1===I?N:N.slice(0,I),rV)}let rQ="1.20.0",rZ=65536,rX={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:r0}=te,r1=N=>encodeURIComponent(N).replace(/%([0-9A-F]{2})/gi,(N,I)=>String.fromCharCode(parseInt(I,16))),r2=N=>{if(!te.isString(N))return N;try{return decodeURIComponent(N)}catch(I){return N}},r3=(N,...I)=>{try{return!!N(...I)}catch(N){return!1}},r4=N=>{let I=N.indexOf("://"),T=N;return -1!==I&&(T=T.slice(I+3)),T.includes("@")||T.includes(":")},r5=N=>{let I,T=void 0!==te.global&&null!==te.global?te.global:globalThis,{ReadableStream:P,TextEncoder:D}=T,{fetch:M,Request:R,Response:L}=N=te.merge.call({skipUndefined:!0},{Request:T.Request,Response:T.Response},N),$=M?r0(M):"function"==typeof fetch,F=r0(R),B=r0(L);if(!$)return!1;let U=$&&r0(P),H=$&&("function"==typeof D?(I=new D,N=>I.encode(N)):async N=>new Uint8Array(await new R(N).arrayBuffer())),z=F&&U&&r3(()=>{let N=!1,I=new R(t4.origin,{body:new P,method:"POST",get duplex(){return N=!0,"half"}}),T=I.headers.has("Content-Type");return null!=I.body&&I.body.cancel(),N&&!T}),W=B&&U&&r3(()=>
1288te.isReadableStream(new L("").body)),q={stream:W&&(N=>N.body)};$&&["text","arrayBuffer","blob","formData","stream"].forEach(N=>{q[N]||(q[N]=(I,T)=>{let P=I&&I[N];if(P)return P.call(I);throw new tN(`Response type '${N}' is not supported`,tN.ERR_NOT_SUPPORT,T)})});let G=async N=>{if(null==N)return 0;if(te.isBlob(N))return N.size;if(te.isSpecCompliantForm(N)){let I=new R(t4.origin,{method:"POST",body:N});return(await I.arrayBuffer()).byteLength}return te.isArrayBufferView(N)||te.isArrayBuffer(N)?N.byteLength:(te.isURLSearchParams(N)&&(N+=""),te.isString(N))?(await H(N)).byteLength:void 0},K=async(N,I)=>{let T=te.toFiniteNumber(N.getContentLength());return null==T?G(I):T};return async N=>{let I,{url:T,method:P,data:$,signal:B,cancelToken:H,timeout:V,onDownloadProgress:Y,onUploadProgress:J,responseType:Q,headers:Z,withCredentials:X="same-origin",fetchOptions:ee,maxContentLength:et,maxBodyLength:er,maxRedirects:en}=rD(N),ea=te.isNumber(et)&&et>-1,ei=te.isNumber(er)&&er>-1,eo=I=>te.hasOwnProp(N,I)?N[I]:void 0,es=M||fetch;Q=Q?(Q+"").toLowerCase():"text";let el=rR([B,H&&H.toAbortSignal()],V),ec=null,eu=el&&el.unsubscribe&&(()=>{el.unsubscribe()}),ed=null,ef=()=>new tN("Request body larger than maxBodyLength limit",tN.ERR_BAD_REQUEST,N,ec);try{let M,B=eo("auth");if(B){let N=te.getSafeProp(B,"username")||"",I=te.getSafeProp(B,"password")||"";M={username:N,password:I}}if(r4(T)){let N=new URL(T,t4.origin);if(!M&&(N.username||N.password)){let I=r2(N.username),T=r2(N.password);M={username:I,password:T}}(N.username||N.password)&&(N.username="",N.password="",T=N.href)}if(M&&(Z.delete("authorization"),Z.set("Authorization","Basic "+btoa(r1((M.username||"")+":"+(M.password||""))))),ea&&"string"==typeof T&&T.startsWith("data:")&&rJ(T)>et)throw new tN("maxContentLength size of "+et+" exceeded",tN.ERR_BAD_RESPONSE,N,ec);if(ei&&"get"!==P&&"head"!==P){let N=await G($);if("number"==typeof N&&isFinite(N)&&(I=N,N>er))throw ef()}let H=ei&&(te.isReadableStream($)||te.isStream($)),V=(N,I,T)=>rB(N,rZ,N=>{if(ei&&N>er)throw ed=ef();I&&I(N)},T);if(z&&"get"!==P&&"head"!==P&&(J||H)){if(I=null==I?await K(Z,$):I,0!==I||H){let N,P=new R(T,{method:"POST",body:$,duplex:"half"});if(te.isFormData($)&&(N=P.headers.get("content-type"))&&Z.setContentType(N),P.body){let[N,T]=J&&ry(I,rg(rb(J)))||[];$=V(P.body,N,T)}}}else if(H&&!F&&U&&"get"!==P&&"head"!==P)$=V($);else if(H&&F&&!z&&"get"!==P&&"head"!==P)throw new tN("Stream request bodies are not supported by the current fetch implementation",tN.ERR_NOT_SUPPORT,N,ec);te.isString(X)||(X=X?"include":"omit");let eh=F&&"credentials"in R.prototype;if(te.isFormData($)){let N=Z.getContentType();N&&/^multipart\/form-data/i.test(N)&&!/boundary=/i.test(N)&&Z.delete("content-type")}Z.set("User-Agent","axios/"+rQ,!1);let ep=null==ee?ee:Object.assign(Object.create(null),ee);ep&&(delete ep.body,delete ep.headers,delete ep.method,delete ep.signal,delete ep.duplex,delete ep.credentials);let em=Object.assign(Object.create(null),ep,{signal:el,method:P.toUpperCase(),headers:tc(Z.normalize()),body:$,duplex:"half",credentials:eh?X:void 0});F&&(te.forEach(rX,(N,I)=>{void 0===em[I]&&(em[I]=N)}),void 0===em.signal&&(em.signal=null),void 0===em.body&&(em.body=null)),0===en&&(em.redirect="manual",ep&&(ep.redirect="manual")),ec=F&&new R(T,em);let eg=await (F?es(ec,ep):es(T,em)),ey=tE.from(eg.headers);if(ea){let I=te.toFiniteNumber(ey.getContentLength());if(null!=I&&I>et)throw new tN("maxContentLength size of "+et+" exceeded",tN.ERR_BAD_RESPONSE,N,ec)}let eb=W&&("stream"===Q||"response"===Q);if(W&&eg.body&&(Y||ea||eb&&eu)){let I={};["status","statusText","headers"].forEach(N=>{I[N]=eg[N]});let T=te.toFiniteNumber(ey.getContentLength()),[P,D]=Y&&ry(T,rg(rb(Y),!0))||[],M=0,R=I=>{if(ea&&(M=I)>et)throw new tN("maxContentLength size of "+et+" exceeded",tN.ERR_BAD_RESPONSE,N,ec);P&&P(I)};eg=new L(rB(eg.body,rZ,R,()=>{D&&D(),eu&&eu()}),I)}Q=Q||"text";let ev=await q[te.findKey(q,Q)||"text"](eg,N);if(ea&&!W&&!eb){let I;if(null!=ev&&("number"==typeof ev.byteLength?I=ev.byteLength:"number"==typeof ev.size?I=ev.size:"string"==typeof ev&&(I="function"==typeof D?new D().encode(ev).byteLength:ev.length)),"number"==typeof I&&I>et)throw new tN("maxContentLength size of "+et+" exceeded",tN.ERR_BAD_RESPONSE,N,ec)}return!eb&&eu&&eu(),await new Promise((I,T)=>{ru(I,T,{data:ev,headers:tE.from(eg.headers),status:eg.status,statusText:eg.statusText,config:N,request:ec})})}
1288catch(I){if(eu&&eu(),el&&el.aborted&&el.reason instanceof tN){let T=el.reason;throw T.config=N,ec&&(T.request=ec),I!==T&&Object.defineProperty(T,"cause",{__proto__:null,value:I,writable:!0,enumerable:!1,configurable:!0}),T}if(ed)throw ec&&!ed.request&&(ed.request=ec),ed;if(I instanceof tN)throw ec&&!I.request&&(I.request=ec),I;if(I&&"TypeError"===I.name&&/Load failed|fetch/i.test(I.message)){let T=new tN("Network Error",tN.ERR_NETWORK,N,ec,I&&I.response);throw Object.defineProperty(T,"cause",{__proto__:null,value:I.cause||I,writable:!0,enumerable:!1,configurable:!0}),T}throw tN.from(I,I&&I.code,N,ec,I&&I.response)}}},r6=new Map,r8=N=>{let I=N&&N.env||{},{fetch:T,Request:P,Response:D}=I,M=[P,D,T],R=M.length,L,$,F=r6;for(;R--;)L=M[R],void 0===($=F.get(L))&&F.set(L,$=R?new Map:r5(I)),F=$;return $};r8();let r7={http:tI,xhr:rM,fetch:{get:r8}};te.forEach(r7,(N,I)=>{if(N){try{Object.defineProperty(N,"name",{__proto__:null,value:I})}catch(N){}Object.defineProperty(N,"adapterName",{__proto__:null,value:I})}});let r9=N=>`- ${N}`,ne=N=>te.isFunction(N)||null===N||!1===N,nt=function(N,I){let T,P,{length:D}=N=te.isArray(N)?N:[N],M={};for(let R=0;R<D;R++){let D;if(P=T=N[R],!ne(T)&&void 0===(P=r7[(D=String(T)).toLowerCase()]))throw new tN(`Unknown adapter '${D}'`);if(P&&(te.isFunction(P)||(P=P.get(I))))break;M[D||"#"+R]=P}if(!P){let N=Object.entries(M).map(([N,I])=>`adapter ${N} `+(!1===I?"is not supported by the environment":"is not available in the build"));throw new tN("There is no suitable adapter to dispatch the request "+(D?N.length>1?"since :\n"+N.map(r9).join("\n"):" "+r9(N[0]):"as no adapter specified"),tN.ERR_NOT_SUPPORT)}return P};function nr(N){if(N.cancelToken&&N.cancelToken.throwIfRequested(),N.signal&&N.signal.aborted)throw new rc(null,N)}function nn(N){let I=te.toSafeFlatObject(N);return nr(I),I.headers=tE.from(te.getSafeProp(I,"headers")),I.data=ro.call(I,I.transformRequest),-1!==["post","put","patch"].indexOf(I.method)&&I.headers.setContentType("application/x-www-form-urlencoded",!1),nt(I.adapter||ri.adapter,I)(I).then(function(N){nr(I),I.response=N;try{N.data=ro.call(I,I.transformResponse,N)}finally{delete I.response}return N.headers=tE.from(N.headers),N},function(N){if(!rs(N)&&(nr(I),N&&N.response)){I.response=N.response;try{N.response.data=ro.call(I,I.transformResponse,N.response)}finally{delete I.response}N.response.headers=tE.from(N.response.headers)}return Promise.reject(N)})}let na={};["object","boolean","number","function","string","symbol"].forEach((N,I)=>{na[N]=function(T){return typeof T===N||"a"+(I<1?"n ":" ")+N}});let ni={};na.transitional=function(N,I,T){function P(N,I){return"[Axios v"+rQ+"] Transitional option '"+N+"'"+I+(T?". "+T:"")}return(T,D,M)=>{if(!1===N)throw new tN(P(D," has been removed"+(I?" in "+I:"")),tN.ERR_DEPRECATED);return I&&!ni[D]&&(ni[D]=!0,console.warn(P(D," has been deprecated since v"+I+" and will be removed in the near future"))),!N||N(T,D,M)}},na.spelling=function(N){return(I,T)=>(console.warn(`${T} is likely a misspelling of ${N}`),!0)};let no=function(N,I,T){if("object"!=typeof N||null===N)throw new tN("options must be an object",tN.ERR_BAD_OPTION_VALUE);let P=Object.keys(N),D=P.length;for(;D-- >0;){let M=P[D],R=Object.prototype.hasOwnProperty.call(I,M)?I[M]:void 0;if(R){let I=N[M],T=void 0===I||R(I,M,N);if(!0!==T)throw new tN("option "+M+" must be "+T,tN.ERR_BAD_OPTION_VALUE);continue}if(!0!==T)throw new tN("Unknown option "+M,tN.ERR_BAD_OPTION)}},ns=na;class nl{constructor(N){this.defaults=N||{},this.interceptors={request:new tJ,response:new tJ}}async request(N,I){try{return await this._request(N,I)}catch(N){if(N instanceof Error)try{let I={};
1288Error.captureStackTrace?Error.captureStackTrace(I):I=Error();let T=I.stack,P="";if("string"==typeof T){let N=T.indexOf("\n");P=-1===N?"":T.slice(N+1)}if(N.stack){if(P){let I=P.indexOf("\n"),T=-1===I?-1:P.indexOf("\n",I+1),D=-1===T?"":P.slice(T+1);String(N.stack).endsWith(D)||(N.stack+="\n"+P)}}else N.stack=P}catch(N){}throw N}}_request(N,I){let T,P;"string"==typeof N?(I=I||{}).url=N:I=N||{};let{transitional:D,paramsSerializer:M,headers:R}=I=rN(this.defaults,I);void 0!==D&&no(D,{silentJSONParsing:ns.transitional(ns.boolean),forcedJSONParsing:ns.transitional(ns.boolean),clarifyTimeoutError:ns.transitional(ns.boolean),legacyInterceptorReqResOrdering:ns.transitional(ns.boolean),advertiseZstdAcceptEncoding:ns.transitional(ns.boolean),validateStatusUndefinedResolves:ns.transitional(ns.boolean)},!1),null!=M&&(te.isFunction(M)?I.paramsSerializer={serialize:M}:no(M,{encode:ns.function,serialize:ns.function},!0)),void 0!==I.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?I.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:I.allowAbsoluteUrls=!0),no(I,{baseUrl:ns.spelling("baseURL"),withXsrfToken:ns.spelling("withXSRFToken")},!0),I.method=(te.getSafeProp(I,"method")||te.getSafeProp(this.defaults,"method")||"get").toLowerCase();let L=R&&te.merge(R.common,R[I.method]);R&&te.forEach(rt.concat("common"),N=>{delete R[N]}),I.headers=tE.concat(L,R);let $=[],F=!0;this.interceptors.request.forEach(function(N){if("function"==typeof N.runWhen&&!1===N.runWhen(I))return;F=F&&N.synchronous;let T=I.transitional||tQ;T&&T.legacyInterceptorReqResOrdering?$.unshift(N.fulfilled,N.rejected):$.push(N.fulfilled,N.rejected)});let B=[];this.interceptors.response.forEach(function(N){B.push(N.fulfilled,N.rejected)});let U=0;if(!F){let N=[nn.bind(this),void 0];for(N.unshift(...$),N.push(...B),P=N.length,T=Promise.resolve(I);U<P;)T=T.then(N[U++],N[U++]);return T}P=$.length;let H=I;for(;U<P;){let N=$[U++],I=$[U++];try{H=N?N(H):H}catch(N){if(!I){T=Promise.reject(N);break}try{let P=I.call(this,N);te.isThenable(P)&&(T=Promise.resolve(P).then(()=>nn.call(this,H)))}catch(N){T=Promise.reject(N)}break}}if(!T)try{T=nn.call(this,H)}catch(N){T=Promise.reject(N)}for(U=0,P=B.length;U<P;)T=T.then(B[U++],B[U++]);return T}getUri(N){return tW(rC((N=rN(this.defaults,N)).baseURL,N.url,N.allowAbsoluteUrls,N),N.params,N.paramsSerializer)}}te.forEach(["delete","get","head","options"],function(N){nl.prototype[N]=function(I,T){return this.request(rN(T||{},{method:N,url:I,data:T&&te.hasOwnProp(T,"data")?T.data:void 0}))}}),te.forEach(["post","put","patch","query"],function(N){function I(I){return function(T,P,D){return this.request(rN(D||{},{method:N,headers:I?{"Content-Type":"multipart/form-data"}:{},url:T,data:P}))}}nl.prototype[N]=I(),"query"!==N&&(nl.prototype[N+"Form"]=I(!0))});let nc=nl;class nu{constructor(N){let I;if("function"!=typeof N)throw TypeError("executor must be a function.");this.promise=new Promise(function(N){I=N});const T=this;this.promise.then(N=>{if(!T._listeners)return;let I=T._listeners.length;for(;I-- >0;)T._listeners[I](N);T._listeners=null}),this.promise.then=N=>{let I,P=new Promise(N=>{T.subscribe(N),I=N}).then(N);return P.cancel=function(){T.unsubscribe(I)},P},N(function(N,P,D){T.reason||(T.reason=new rc(N,P,D),I(T.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(N){this.reason?N(this.reason):this._listeners?this._listeners.push(N):this._listeners=[N]}unsubscribe(N){if(!this._listeners)return;let I=this._listeners.indexOf(N);-1!==I&&this._listeners.splice(I,1)}toAbortSignal(){let N=new AbortController,I=I=>{N.abort(I)};return this.subscribe(I),N.signal.unsubscribe=()=>this.unsubscribe(I),N.signal}static source(){let N;return{token:new nu(function(I){N=I}),cancel:N}
1288}}let nd=nu;function nf(N){return function(I){return N.apply(null,I)}}function nh(N){return te.isObject(N)&&!0===N.isAxiosError}let np={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(np).forEach(([N,I])=>{void 0===np[I]&&(np[I]=N)});let nm=np;function ng(N){let I=new nc(N),T=H(nc.prototype.request,I);return te.extend(T,nc.prototype,I,{allOwnKeys:!0}),te.extend(T,I,null,{allOwnKeys:!0}),T.create=function(I){return ng(rN(N,I))},T}let ny=ng(ri);ny.Axios=nc,ny.CanceledError=rc,ny.CancelToken=nd,ny.isCancel=rs,ny.VERSION=rQ,ny.toFormData=t$,ny.AxiosError=tN,ny.Cancel=ny.CanceledError,ny.all=function(N){return Promise.all(N)},ny.spread=nf,ny.isAxiosError=nh,ny.mergeConfig=rN,ny.AxiosHeaders=tE,ny.formToJSON=N=>
1288re(te.isHTMLForm(N)?new FormData(N):N),ny.getAdapter=nt,ny.HttpStatusCode=nm,ny.default=ny;let nb=ny},78200:(N,I,T)=>{"use strict";T.r(I),T.d(I,{Navigation:()=>X,navItemVariants:()=>Z,sideNavVariants:()=>K,styledInnerNavItem:()=>Q,styledNavTitle:()=>J,styledOutline:()=>Y});var P=T(37876),D=T(78253),M=T(85609),R=T(22544),L=T(40163),$=T(47137),F=T(63366),B=T(28518),U=T(58138),H=T(57479),z=T(60409),W=T(36379),q=T(82868);let G="top-0 px-0 transition-all translate-x-0 duration-300 ease-in-out max-h-screen-72 inset-0 z-40 overflow-x-hidden overflow-y-auto",K=(0,$.F)([G],{variants:{position:{fixed:"fixed top-18 left-0 h-screen bg-white",sub:"fixed inset-x-0 top-0 z-20 h-screen w-screen bg-white"}},defaultVariants:{position:"fixed"}}),V=` 1289 toplevel relative flex lg:items-center 1290 lg:py-[2.5px] lg:py-0 1291`,Y=` 1292 lg:focus-visible:outline-dashed lg:focus-visible:outline-white lg:focus-visible:outline-2 lg:focus-visible:outline-white 1293`,J=` 1294 block 1295 w-fit lg:mb-3 1296 font-semibold 1297 lg:border-b-3 lg:border-transparent 1298 lg:hover:border-b-3 lg:hover:border-brunel-yellow 1299 lg:focus:text-brunel-yellow lg:focus-visible:border-brunel-yellow 1300`,Q=` 1301 flex ml-auto items-center 1302 w-full lg:w-fit lg:p-0 1303 border-b border-accent-iron lg:border-0`,Z=(0,$.F)([V],{variants:{navItemColor:{default:"text-brunel-dark-grey lg:flex lg:items-center lg:text-white lg:hover:text-brunel-yellow lg:focus:text-brunel-yellow lg:focus-visible:text-brunel-yellow",footer:"text-grey-400 lg:text-grey-400"},fontSize:{default:"text-base",footer:"text-sm"},underline:{default:"lg:focus-visible:underline-effect",footer:"skip-ink text-sm underline decoration-2 underline-offset-2"},outline:{default:Y}},defaultVariants:{navItemColor:"default",fontSize:"default",underline:"default"}});(0,$.F)([Q],{variants:{innerNavItem:{sideNav:"px-6 py-4"}}});let X=({navigationData:N,locale:I,navItemColor:T,fontSize:$,menuItem:G,loginPage:K,authenticated:V,editable:X})=>{let{page:ee}=(0,M.M5)(),{pageLanguages:et}=ee.layout.sitecore.context,er=et?.find(({name:N})=>N===I?.toLowerCase())??null,en=et?.find(({name:N})=>N!==I?.toLowerCase())??null,ea=er?.name?.split("-")?.[1]??z.Xn,ei=er?.name===z.Xn,eo=(N,I=!1)=>N?.map((N,M)=>{if(N.type===D.NavSectionType.NAVIGATION_SECTION){let D=N?.menuSectionLink?.link?.value?.href,B=N?.menuSectionReadMoreLink?.link?.value?.href;return I?(0,P.jsx)("div",{className:"child-menu-section flex-col items-center","data-testid":q.Qa.TestIds.HeaderComponent.navSection+M,children:N.children&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("div",{className:"mx-0",children:D?(0,P.jsx)(R.N,{field:N?.menuSectionLink?.link,editable:X,className:(0,W.cn)(J,"m-0 flex w-fit border-b border-accent-iron p-0 text-m-body-medium leading-[18px]! font-medium! text-brunel-yellow"),title:N?.menuSectionLink?.link?.value?.text,tabIndex:0,children:N?.menuSectionTitle?.text?.value}):(0,P.jsx)(L.E,{className:(0,W.cn)(J,"m-0 flex w-fit cursor-default border-b border-accent-iron p-0 text-m-body-medium leading-[18px]! font-medium! text-brunel-yellow"),field:N?.menuSectionTitle?.text,editable:X,tabIndex:0,tag:"p"})}),(0,P.jsxs)("ul",{className:"child-menu-list pb-0",children:[eo(N.children.results,!0),B&&(0,P.jsx)("li",{className:"my-4 w-fit",children:(0,P.jsxs)(R.N,{className:(0,W.cn)((0,U.C0)({menuItem:G}),Y,"text-start","flex text-base font-medium text-ui-light-grey","footer"===G&&"text-white"),field:N?.menuSectionReadMoreLink?.link,editable:X,children:[(0,P.jsx)(F.az,{className:"mr-1 -ml-1 flex items-center self-center",children:(0,P.jsx)(F.In,{size:"small",name:"chevron-right",alt:"to overview",color:"white"})}),N?.menuSectionReadMoreLink.link?.value?.text]})})]})]})},M):(0,P.jsxs)("div",{className:(0,W.cn)(Z({navItemColor:T,fontSize:$}),Q,"menu-section underline-effect nav-item group relative mr-4 cursor-pointer font-semibold"),children:[D?(0,P.jsx)(R.N,{className:"relative py-4 text-m-body-medium font-semibold! text-white after:ml-4 after:h-6 after:w-0 after:border-r",field:N?.menuSectionLink?.link,editable:X,tabIndex:0,children:N?.menuSectionTitle?.text?.value}):(0,P.jsx)(L.E,{className:"relative py-4 font-semibold! text-white after:ml-4 after:h-6 after:w-0 after:border-r",field:N?.menuSectionTitle?.text,editable:X,tabIndex:0,tag:"p"}),N?.children?.results?.length?(0,P.jsx)(P.Fragment,{children:(0,P.jsx)("div",{className:(0,W.cn)("menu-children fixed top-18 left-0 flex max-h-0 w-screen flex-wrap overflow-hidden rounded-none bg-brunel-dark-grey transition-all duration-500 ease-in-out group-hover:max-h-screen group-hover:border-b-4 group-hover:border-brunel-yellow group-hover:py-5"),children:(0,P.jsx)("div",{className:"mx-auto grid w-full max-w-(--breakpoint-lg) grid-cols-4 gap-x-10",children:N.children&&eo(N.children.results,!0)})})}):null]},M)}if("NavigationItem"===N.type)return(0,P.jsx)("li",{className:"nav-item py-1 font-normal text-white hover:underline","data-testid":q.Qa.TestIds.HeaderComponent.navItem+M,children:(0,P.jsx)(R.N,{field:N.menuItemLink.link,editable:X,tabIndex:0,suppressHydrationWarning:!0,children:N.menuItemTitle.text.value})},M);if(N.type===D.NavSectionType.LANGUAGE_SECTION){let I=N.languageSectionCountrySelectorPage?.jsonValue?.value?.href;if(!er||!en&&!ei&&!I)return null;let T={...N,currentLanguage:er,alternativeLanguage:en,countryCode:ea,isGlobal:ei};return(0,P.jsx)("div",{className:"language-section","data-testid":q.Qa.TestIds.HeaderComponent.navLang+M,children:(0,P.jsx)(B.A,{languageData:T})},M)}{if(N.type!==D.NavSectionType.SECURITY_SECTION)return null;let I={...N,loginPage:K,authenticated:V};return(0,P.jsx)(F.az,{className:"security-section px-2","data-testid":q.Qa.TestIds.HeaderComponent.navSec+M,children:(0,P.jsx)(H.A,{...I})},M)}});return(0,P.jsx)("nav",{className:"flex items-center","data-testid":q.Qa.TestIds.HeaderComponent.base,children:eo(N,!1)})}},78211:(N,I,T)=>{"use strict";T.r(I),T.d(I,{DirectApplySideInfo:()=>B});var P=T(37876),D=T(66799),M=T(63366),R=T(84612),L=T(81202),$=T(90078),F=T(66419);let B=({locale:N,vacancyData:I,dictionary:T})=>{let B={Country:I?.countryName??"",City:I?.city??"",Region:I?.region??""},U=(0,$.B)(B,I?.locationDetail);return Object.entries(I).length>0&&(0,P.jsxs)("div",{className:"solid hidden max-w-110 flex-col gap-4 border border-accent-iron bg-white p-6 lg:flex [&_svg]:max-h-4 [&_svg]:min-
1303h-4 [&_svg]:max-w-4 [&_svg]:min-w-4",children:[(0,P.jsx)(M.o5,{type:"h4",plainText:T?.["form-vacancy-apply-title"]??"[form vacancy apply title]"}),(0,P.jsxs)("span",{className:"flex items-center gap-3",children:[(0,P.jsx)(R.PT,{}),(0,P.jsx)(M.o5,{type:"small",className:"text-ui-grey",plainText:I.title})]}),(0,P.jsxs)("span",{className:"flex items-center gap-3",children:[(0,P.jsx)(R.BT,{}),(0,P.jsx)(M.o5,{type:"small",className:"text-ui-grey",plainText:U})]}),(0,P.jsxs)("span",{className:"flex items-center gap-3",children:[(0,P.jsx)(R._z,{}),(0,P.jsx)(M.o5,{type:"small",className:"text-ui-grey",plainText:I.publicationId})]}),(0,F._S)(I.hoursPerWeek)&&(0,P.jsxs)("span",{className:"flex items-center gap-3",children:[(0,P.jsx)(R.O4,{}),(0,P.jsx)(M.o5,{type:"small",className:"text-ui-grey",plainText:`${I.hoursPerWeek} ${T?.["form-hours-per-week"]??"[form hours per week]"}`})]}),(0,P.jsxs)("span",{className:"flex items-center gap-3",children:[(0,P.jsx)(R.CT,{}),(0,P.jsx)(M.o5,{type:"small",className:"text-ui-grey",plainText:`${T?.["form-vacancy-closing"]??"[form vacancy closing]"} ${(0,D.GP)(new Date(I?.endDate??new Date),"dd MMMM yyyy",{locale:(0,L.Me)(N)})}`})]})]})}},78212:(N,I,T)=>{var P=T(12883).default;N.exports=function(N,I){if("object"!=P(N)||!N)return N;var T=N[Symbol.toPrimitive];if(void 0!==T){var D=T.call(N,I||"default");if("object"!=P(D))return D;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===I?String:Number)(N)},N.exports.__esModule=!0,N.exports.default=N.exports},78220:(N,I,T)=>{"use strict";T.d(I,{A:()=>$});let P=new Uint8Array(16);function D(){return crypto.getRandomValues(P)}let M=[];for(let N=0;N<256;++N)M.push((N+256).toString(16).slice(1));function R(N,I=0){return(M[N[I+0]]+M[N[I+1]]+M[N[I+2]]+M[N[I+3]]+"-"+M[N[I+4]]+M[N[I+5]]+"-"+M[N[I+6]]+M[N[I+7]]+"-"+M[N[I+8]]+M[N[I+9]]+"-"+M[N[I+10]]+M[N[I+11]]+M[N[I+12]]+M[N[I+13]]+M[N[I+14]]+M[N[I+15]]).toLowerCase()}function L(N,I,T){let P=(N=N||{}).random??N.rng?.()??D();if(P.length<16)throw Error("Random bytes length must be >= 16");if(P[6]=15&P[6]|64,P[8]=63&P[8]|128,I){if((T=T||0)<0||T+16>I.length)throw RangeError(`UUID byte range ${T}:${T+15} is out of buffer bounds`);for(let N=0;N<16;++N)I[T+N]=P[N];return I}return R(P)}let $=function(N,I,T){return I||N||!crypto.randomUUID?L(N,I,T):crypto.randomUUID()}},78253:(N,I,T)=>{"use strict";T.r(I),T.d(I,{NavSectionType:()=>D});var P,D=((P={}).NAVIGATION_SECTION="NavigationSection",P.LANGUAGE_SECTION="LanguageSection",P.SECURITY_SECTION="SecuritySection",P.NAVIGATION_ITEM="NavigationItem",P)},78267:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});let P=T(72736),D=T(13486),M=T(47783);I.default=function(N,I,T){N??={},T??=0;let R=(0,D.default)({...N,_v6:!0},new Uint8Array(16));if(R=(0,M.default)(R),I){if(T<0||T+16>I.length)throw RangeError(`UUID byte range ${T}:${T+15} is out of buffer bounds`);for(let N=0;N<16;N++)I[T+N]=R[N];return I}return(0,P.unsafeStringify)(R)}},78425:(N,I,T)=>{var P=T(82909).Buffer;let D=T(77254),{RPError:M}=T(79391),{assertIssuerConfiguration:R}=T(52492),{random:L}=T(16436),$=T(71807),F=T(18707),{keystores:B}=T(86159),U=T(6326),H=N=>encodeURIComponent(N).replace(/%20/g,"+");async function z(N,I){let T=this[`${N}_endpoint_auth_signing_alg`];if(T||R(this.issuer,`${N}_endpoint_auth_signing_alg_values_supported`),"client_secret_jwt"===this[`${N}_endpoint_auth_method`]){if(!T){let I=this.issuer[`${N}_endpoint_auth_signing_alg_values_supported`];T=Array.isArray(I)&&I.find(N=>/^HS(?:256|384|512)/.test(N))}if(!T)throw new M(`failed to determine a JWS Algorithm to use for ${this[`${N}_endpoint_auth_method`]} Client Assertion`);return new D.CompactSign(P.from(JSON.stringify(I))).setProtectedHeader({alg:T}).sign(this.secretForAlg(T))}let L=await B.get(this);if(!L)throw TypeError("no client jwks provided for signing a client assertion with");if(!T){let I=this.issuer[`${N}_endpoint_auth_signing_alg_values_supported`];T=Array.isArray(I)&&I.find(N=>L.get({alg:N,use:"sig"}))}if(!T)throw new M(`failed to determine a JWS Algorithm to use for ${this[`${N}_endpoint_auth_method`]} Client Assertion`);let $=L.get({alg:T,use:"sig"});if(!$)throw new M(`no key found in client jwks to sign a client assertion with using alg ${T}`);return new D.CompactSign(P.from(JSON.stringify(I))).setProtectedHeader({alg:T,kid:$.jwk&&$.jwk.kid}).sign(await $.keyObject(T))}async function W(N,{clientAssertionPayload:I}={}){switch(this[`${N}_endpoint_auth_method`]){case"self_signed_tls_client_auth":case"tls_client_auth":case"none":return{form:{client_id:this.client_id}};case"client_secret_post":if("string"!=typeof this.client_secret)throw TypeError("client_secret_post client authentication method requires a client_secret");return{form:{client_id:this.client_id,client_secret:this.client_secret}};case"private_key_jwt":case"client_secret_jwt":{let T=$(),P=await z.call(this,N,{iat:T,exp:T+60,jti:L(),iss:this.client_id,sub:this.client_id,aud:this.issuer.issuer,...I});return{form:{client_id:this.client_id,client_assertion:P,client_assertion_type:"urn:ietf:params:oauth:client-assertion-type:jwt-bearer"}}}case"client_secret_basic":{if("string"!=typeof this.client_secret)throw TypeError("client_secret_basic client authentication method requires a client_secret");let N=`${H(this.client_id)}:${H(this.client_secret)}`,I=P.from(N).toString("base64");return{headers:{Authorization:`Basic ${I}`}}}default:throw TypeError(`missing, or unsupported, ${N}_endpoint_auth_method`)}}async function q(N,I,{clientAssertionPayload:T,endpointAuthMethod:P=N,DPoP:D}={}){let M,R=U(I,await W.call(this,P,{clientAssertionPayload:T})),L=this[`${P}_endpoint_auth_method`].includes("tls_client_auth")||"token"===N&&this.tls_client_certificate_bound_access_tokens;if(L&&this.issuer.mtls_endpoint_aliases&&(M=this.issuer.mtls_endpoint_aliases[`${N}_endpoint`]),M=M||this.issuer[`${N}_endpoint`],"form"in R)for(let[N,I]of Object.entries(R.form))void 0===I&&delete R.form[N];return F.call(this,{...R,method:"POST",url:M,headers:{..."revocation"!==N?{Accept:"application/json"}:void 0,...R.headers}},{mTLS:L,DPoP:D})}N.exports={resolveResponseType:function(){let{length:N,0:I}=this.response_types;if(1===N)return I},resolveRedirectUri:function(){let{length:N,0:I}=this.redirect_uris||[];if(1===N)return I},authFor:W,authenticatedPost:q}},78491:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),Object.defineProperty(I,"afterTaskAsyncStorageInstance",{enumerable:!0,get:function(){return P}});let P=(0,T(55786).createAsyncLocalStorage)()}
1303,78557:(N,I,T)=>{"use strict";T.d(I,{g:()=>P});let P="brunel_locale"},78624:(N,I,T)=>{"use strict";T.d(I,{S:()=>L,X:()=>R});var P=T(10553),D=T(14232);function M(N,I){let T=btoa(I);return N.replace("{user-email}",T)}function R(N){let{data:I}=(0,P.useSession)();return(0,D.useMemo)(()=>{if(!N)return N;let T=I?.user?.email;if(!T)return N;if("value"in N){let I=N.value;if(I&&"string"==typeof I.href&&I.href.includes("{user-email}"))return{...N,value:{...I,href:M(I.href,T)}}}else if("string"==typeof N.href&&N.href.includes("{user-email}"))return{...N,href:M(N.href,T)};return N},[N,I?.user?.email])}function L(N){let{data:I}=(0,P.useSession)();return(0,D.useMemo)(()=>{if(!N)return"";let T=I?.user?.email;return T&&N.includes("{user-email}")?N.replace(/href="([^"]*{user-email}[^"]*)"/g,(N,I)=>{let P=M(I,T);return`href="${P}"`}):N},[N,I?.user?.email])}},78961:(N,I,T)=>{"use strict";T.d(I,{K:()=>M});let P=/\/blog\/\d{4}\/\d{2}\//i,D=N=>{let I=String("https://us.brunel.net").replace(/\/$/,"");if(!I)return N;let T=N.startsWith("/")?N:`/${N}`;return`${I}${T}`},M=(N,I)=>{let T=N?.trim()??"",M=I?.trim()??"";return T&&P.test(T)&&M?D(M):T||(M?D(M):"")}},79052:N=>{var I="/";!function(){"use strict";var T={431:function(N){function I(N){if("string"!=typeof N)throw TypeError("Path must be a string. Received "+JSON.stringify(N))}function T(N,I){for(var T,P="",D=0,M=-1,R=0,L=0;L<=N.length;++L){if(L<N.length)T=N.charCodeAt(L);else if(47===T)break;else T=47;if(47===T){if(M===L-1||1===R);else if(M!==L-1&&2===R){if(P.length<2||2!==D||46!==P.charCodeAt(P.length-1)||46!==P.charCodeAt(P.length-2)){if(P.length>2){var $=P.lastIndexOf("/");if($!==P.length-1){-1===$?(P="",D=0):D=(P=P.slice(0,$)).length-1-P.lastIndexOf("/"),M=L,R=0;continue}}else if(2===P.length||1===P.length){P="",D=0,M=L,R=0;continue}}I&&(P.length>0?P+="/..":P="..",D=2)}else P.length>0?P+="/"+N.slice(M+1,L):P=N.slice(M+1,L),D=L-M-1;M=L,R=0}else 46===T&&-1!==R?++R:R=-1}return P}function P(N,I){var T=I.dir||I.root,P=I.base||(I.name||"")+(I.ext||"");return T?T===I.root?T+P:T+N+P:P}var D={resolve:function(){for(var N,P,D="",M=!1,R=arguments.length-1;R>=-1&&!M;R--)R>=0?P=arguments[R]:(void 0===N&&(N=""),P=N),I(P),0!==P.length&&(D=P+"/"+D,M=47===P.charCodeAt(0));if(D=T(D,!M),M)if(D.length>0)return"/"+D;else return"/";return D.length>0?D:"."},normalize:function(N){if(I(N),0===N.length)return".";var P=47===N.charCodeAt(0),D=47===N.charCodeAt(N.length-1);return(0!==(N=T(N,!P)).length||P||(N="."),N.length>0&&D&&(N+="/"),P)?"/"+N:N},isAbsolute:function(N){return I(N),N.length>0&&47===N.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var N,T=0;T<arguments.length;++T){var P=arguments[T];I(P),P.length>0&&(void 0===N?N=P:N+="/"+P)}return void 0===N?".":D.normalize(N)},relative:function(N,T){if(I(N),I(T),N===T||(N=D.resolve(N))===(T=D.resolve(T)))return"";for(var P=1;P<N.length&&47===N.charCodeAt(P);++P);for(var M=N.length,R=M-P,L=1;L<T.length&&47===T.charCodeAt(L);++L);for(var $=T.length-L,F=R<$?R:$,B=-1,U=0;U<=F;++U){if(U===F){if($>F){if(47===T.charCodeAt(L+U))return T.slice(L+U+1);
1303else if(0===U)return T.slice(L+U)}else R>F&&(47===N.charCodeAt(P+U)?B=U:0===U&&(B=0));break}var H=N.charCodeAt(P+U);if(H!==T.charCodeAt(L+U))break;47===H&&(B=U)}var z="";for(U=P+B+1;U<=M;++U)(U===M||47===N.charCodeAt(U))&&(0===z.length?z+="..":z+="/..");return z.length>0?z+T.slice(L+B):(L+=B,47===T.charCodeAt(L)&&++L,T.slice(L))},_makeLong:function(N){return N},dirname:function(N){if(I(N),0===N.length)return".";for(var T=N.charCodeAt(0),P=47===T,D=-1,M=!0,R=N.length-1;R>=1;--R)if(47===(T=N.charCodeAt(R))){if(!M){D=R;break}}else M=!1;return -1===D?P?"/":".":P&&1===D?"//":N.slice(0,D)},basename:function(N,T){if(void 0!==T&&"string"!=typeof T)throw TypeError('"ext" argument must be a string');I(N);var P,D=0,M=-1,R=!0;if(void 0!==T&&T.length>0&&T.length<=N.length){if(T.length===N.length&&T===N)return"";var L=T.length-1,$=-1;for(P=N.length-1;P>=0;--P){var F=N.charCodeAt(P);if(47===F){if(!R){D=P+1;break}}else -1===$&&(R=!1,$=P+1),L>=0&&(F===T.charCodeAt(L)?-1==--L&&(M=P):(L=-1,M=$))}return D===M?M=$:-1===M&&(M=N.length),N.slice(D,M)}for(P=N.length-1;P>=0;--P)if(47===N.charCodeAt(P)){if(!R){D=P+1;break}}else -1===M&&(R=!1,M=P+1);return -1===M?"":N.slice(D,M)},extname:function(N){I(N);for(var T=-1,P=0,D=-1,M=!0,R=0,L=N.length-1;L>=0;--L){var $=N.charCodeAt(L);if(47===$){if(!M){P=L+1;break}continue}-1===D&&(M=!1,D=L+1),46===$?-1===T?T=L:1!==R&&(R=1):-1!==T&&(R=-1)}return -1===T||-1===D||0===R||1===R&&T===D-1&&T===P+1?"":N.slice(T,D)},format:function(N){if(null===N||"object"!=typeof N)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof N);return P("/",N)},parse:function(N){I(N);var T,P={root:"",dir:"",base:"",ext:"",name:""};if(0===N.length)return P;var D=N.charCodeAt(0),M=47===D;M?(P.root="/",T=1):T=0;for(var R=-1,L=0,$=-1,F=!0,B=N.length-1,U=0;B>=T;--B){if(47===(D=N.charCodeAt(B))){if(!F){L=B+1;break}continue}-1===$&&(F=!1,$=B+1),46===D?-1===R?R=B:1!==U&&(U=1):-1!==R&&(U=-1)}return -1===R||-1===$||0===U||1===U&&R===$-1&&R===L+1?-1!==$&&(0===L&&M?P.base=P.name=N.slice(1,$):P.base=P.name=N.slice(L,$)):(0===L&&M?(P.name=N.slice(1,R),P.base=N.slice(1,$)):(P.name=N.slice(L,R),P.base=N.slice(L,$)),P.ext=N.slice(R,$)),L>0?P.dir=N.slice(0,L-1):M&&(P.dir="/"),P},sep:"/",delimiter:":",win32:null,posix:null};D.posix=D,N.exports=D}},P={};function D(N){var I=P[N];if(void 0!==I)return I.exports;var M=P[N]={exports:{}},R=!0;try{T[N](M,M.exports,D),R=!1}finally{R&&delete P[N]}return M.exports}D.ab=I+"/",N.exports=D(431)}()},79239:(N,I,T)=>{"use strict";T.d(I,{s:()=>K});var P=T(14232),D=T(34824),M=T(14e3),R=T(73813),L=T(98741),$=T(63561),F=T(53282),B=function(N,I){var T={};for(var P in N)Object.prototype.hasOwnProperty.call(N,P)&&0>I.indexOf(P)&&(T[P]=N[P]);if(null!=N&&"function"==typeof Object.getOwnPropertySymbols)for(var D=0,P=Object.getOwnPropertySymbols(N);D<P.length;D++)0>I.indexOf(P[D])&&Object.prototype.propertyIsEnumerable.call(N,P[D])&&(T[P[D]]=N[P[D]]);return T};let U=N=>{var{field:I,tag:T="div",ref:D}=N,M=B(N,["field","tag","ref"]);let L=null==I?void 0:I.value,$=(0,P.useMemo)(()=>void 0!==L&&""!==L?{__html:L}:void 0,[L]);if((0,R.JE)(I)||!$)return null;delete M.editable;let F=Object.assign({dangerouslySetInnerHTML:$,ref:D,suppressHydrationWarning:!!I.metadata||void 0},M),U=T||"div";return P.createElement(U,Object.assign({},F))},H=(0,L.O)((0,$.N)(U,{defaultEmptyFieldEditingComponent:F.G}));H.displayName="RichText";var z=function(N,I){var T={};for(var P in N)Object.prototype.hasOwnProperty.call(N,P)&&0>I.indexOf(P)&&(T[P]=N[P]);if(null!=N&&"function"==typeof Object.getOwnPropertySymbols)for(var D=0,P=Object.getOwnPropertySymbols(N);D<P.length;D++)0>I.indexOf(P[D])&&Object.prototype.propertyIsEnumerable.call(N,P[D])&&(T[P[D]]=N[P[D]]);return T};let W={},q=()=>{try{return(0,M.useRouter)()}catch(N){return null}},G=()=>({pageRouter:(0,D.useRouter)(),appRouter:q()}),K=N=>{let{internalLinksSelector:I='a[href^="/"]',prefetchLinks:T=!0,editable:D=!0}=N,M=z(N,["internalLinksSelector","prefetchLinks","editable"]),R=N.field&&N.field.value,L=D&&N.field&&N.field.metadata,{pageRouter:$,appRouter:F}=G(),B=(0,P.useRef)(null);(0,P.useEffect)(()=>{R&&!L&&q()},[R]);let U=N=>{if(!N.currentTarget)return;N.preventDefault();let I=N.currentTarget.href;$?$.push(I,I,{locale:!1}):F&&F.push(I)},q=()=>{let N=B.current,P=N&&N.querySelectorAll(I);P&&P.length&&P.forEach(N=>{if("_blank"===N.target)return;let I=()=>{$?$.prefetch(N.pathname,void 0,{locale:!1}):F&&F.prefetch(N.pathname),W[N.pathname]=!0};if(!W[N.pathname]&&!1!==T&&(!0===T&&I(),"hover"===T)){let T=()=>{I(),N.removeEventListener("mouseover",T)};N.addEventListener("mouseover",T,!1)}N.addEventListener("click",U,!1)})};return P.createElement(H,Object.assign({ref:B,editable:D},M))};K.displayName="NextRichText"},79249:(N,I)=>{var T="=";function P(N,I){return M(D(R(N),R(I)))}function D(N,I){var T=L(N);T.length>16&&(T=F(T,8*N.length));for(var P=Array(16),D=Array(16),M=0;M<16;M++)P[M]=0x36363636^T[M],D[M]=0x5c5c5c5c^T[M];var R=F(P.concat(L(I)),512+8*I.length);return $(F(D.concat(R),672))}function M(N){for(var I="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
1303+/",P="",D=N.length,M=0;M<D;M+=3)for(var R=N.charCodeAt(M)<<16|(M+1<D?N.charCodeAt(M+1)<<8:0)|(M+2<D?N.charCodeAt(M+2):0),L=0;L<4;L++)8*M+6*L>8*N.length?P+=T:P+=I.charAt(R>>>6*(3-L)&63);return P}function R(N){for(var I,T,P="",D=-1;++D<N.length;)I=N.charCodeAt(D),T=D+1<N.length?N.charCodeAt(D+1):0,55296<=I&&I<=56319&&56320<=T&&T<=57343&&(I=65536+((1023&I)<<10)+(1023&T),D++),I<=127?P+=String.fromCharCode(I):I<=2047?P+=String.fromCharCode(192|I>>>6&31,128|63&I):I<=65535?P+=String.fromCharCode(224|I>>>12&15,128|I>>>6&63,128|63&I):I<=2097151&&(P+=String.fromCharCode(240|I>>>18&7,128|I>>>12&63,128|I>>>6&63,128|63&I));return P}function L(N){for(var I=Array(N.length>>2),T=0;T<I.length;T++)I[T]=0;for(var T=0;T<8*N.length;T+=8)I[T>>5]|=(255&N.charCodeAt(T/8))<<24-T%32;return I}function $(N){for(var I="",T=0;T<32*N.length;T+=8)I+=String.fromCharCode(N[T>>5]>>>24-T%32&255);return I}function F(N,I){N[I>>5]|=128<<24-I%32,N[(I+64>>9<<4)+15]=I;for(var T=Array(80),P=0x67452301,D=-0x10325477,M=-0x67452302,R=0x10325476,L=-0x3c2d1e10,$=0;$<N.length;$+=16){for(var F=P,W=D,q=M,G=R,K=L,V=0;V<80;V++){V<16?T[V]=N[$+V]:T[V]=z(T[V-3]^T[V-8]^T[V-14]^T[V-16],1);var Y=H(H(z(P,5),B(V,D,M,R)),H(H(L,T[V]),U(V)));L=R,R=M,M=z(D,30),D=P,P=Y}P=H(P,F),D=H(D,W),M=H(M,q),R=H(R,G),L=H(L,K)}return[P,D,M,R,L]}function B(N,I,T,P){return N<20?I&T|~I&P:N<40?I^T^P:N<60?I&T|I&P|T&P:I^T^P}function U(N){return N<20?0x5a827999:N<40?0x6ed9eba1:N<60?-0x70e44324:-0x359d3e2a}function H(N,I){var T=(65535&N)+(65535&I);return(N>>16)+(I>>16)+(T>>16)<<16|65535&T}function z(N,I){return N<<I|N>>>32-I}I.HMACSHA1=function(N,I){return P(N,I)}},79289:N=>{N.exports=N=>!!N&&N.constructor===Object},79391:(N,I,T)=>{let{format:P}=T(68994);class D extends Error{constructor({error_description:N,error:I,error_uri:T,session_state:P,state:D,scope:M},R){super(N?`${I} (${N})`:I),Object.assign(this,{error:I},N&&{error_description:N},T&&{error_uri:T},D&&{state:D},M&&{scope:M},P&&{session_state:P}),R&&Object.defineProperty(this,"response",{value:R}),this.name=this.constructor.name,Error.captureStackTrace(this,this.constructor)}}class M extends Error{constructor(...N){if("string"==typeof N[0])super(P(...N));else{const{message:I,printf:T,response:D,...M}=N[0];T?super(P(...T)):super(I),Object.assign(this,M),D&&Object.defineProperty(this,"response",{value:D})}this.name=this.constructor.name,Error.captureStackTrace(this,this.constructor)}}N.exports={OPError:D,RPError:M}},79435:(N,I,T)=>{var P=T(82909).Buffer;let{STATUS_CODES:D}=T(40939),{format:M}=T(68994),{OPError:R}=T(79391),L=T(9391),$=N=>{let I=L(N.headers["www-authenticate"]);if(I.error)throw new R(I,N)},F=N=>{let I=!1;try{let T;T="object"!=typeof N.body||P.isBuffer(N.body)?JSON.parse(N.body):N.body,(I="string"==typeof T.error&&T.error.length)&&Object.defineProperty(N,"body",{value:T,configurable:!0})}catch(N){}return I};N.exports=function(N,{statusCode:I=200,body:T=!0,bearer:P=!1}={}){if(N.statusCode!==I){if(P&&$(N),F(N))throw new R(N.body,N);throw new R({error:M("expected %i %s, got: %i %s",I,D[I],N.statusCode,D[N.statusCode])},N)}if(T&&!N.body)throw new R({error:M("expected %i %s with body but no body was returned",I,D[I])},N);return N.body}},79517:(N,I,T)=>{"use strict";T.d(I,{Su:()=>R,rG:()=>M});var P,D,M=((P={}).HAS_ICON="has-icon",P.ICON_LEFT="icon-left",P.ICON_RIGHT="icon-right",P),R=((D={}).HERO_HEIGHT_SM="hero-height-sm",D.HERO_HEIGHT_MD="hero-height-md",D.HERO_HEIGHT_LG="hero-height-lg",D)},79639:(N,I,T)=>{"use strict";T.d(I,{Z:()=>P});let P="AnalyticsPlugin"},79706:(N,I,T)=>{"use strict";var P=T(3717);function D(){}function M(){}M.resetWarningCache=D,N.exports=function(){function N(N,I,T,D,M,R){if(R!==P){var L=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw L.name="Invariant Violation",L}}function I(){return N}N.isRequired=N;var T={array:N,bigint:N,bool:N,func:N,number:N,object:N,string:N,symbol:N,any:N,arrayOf:I,element:N,elementType:N,instanceOf:I,node:N,objectOf:I,oneOf:I,oneOfType:I,shape:I,exact:I,checkPropTypes:M,resetWarningCache:D};return T.PropTypes=T,T}},79919:(N,I,T)=>{var P=T(82909).Buffer,D=T(63426),M=T(79249),R=T(40939),L=T(58184),$=T(3305),F=T(48041),B=T(48454);
1303I.OAuth=function(N,I,T,P,D,M,R,L,$){if(this._isEcho=!1,this._requestUrl=N,this._accessUrl=I,this._consumerKey=T,this._consumerSecret=this._encodeData(P),"RSA-SHA1"==R&&(this._privateKey=P),this._version=D,void 0===M?this._authorize_callback="oob":this._authorize_callback=M,"PLAINTEXT"!=R&&"HMAC-SHA1"!=R&&"RSA-SHA1"!=R)throw Error("Un-supported signature method: "+R);this._signatureMethod=R,this._nonceSize=L||32,this._headers=$||{Accept:"*/*",Connection:"close","User-Agent":"Node authentication"},this._clientOptions=this._defaultClientOptions={requestTokenHttpMethod:"POST",accessTokenHttpMethod:"POST",followRedirects:!0},this._oauthParameterSeperator=","},I.OAuthEcho=function(N,I,T,P,D,M,R,L){if(this._isEcho=!0,this._realm=N,this._verifyCredentials=I,this._consumerKey=T,this._consumerSecret=this._encodeData(P),"RSA-SHA1"==M&&(this._privateKey=P),this._version=D,"PLAINTEXT"!=M&&"HMAC-SHA1"!=M&&"RSA-SHA1"!=M)throw Error("Un-supported signature method: "+M);this._signatureMethod=M,this._nonceSize=R||32,this._headers=L||{Accept:"*/*",Connection:"close","User-Agent":"Node authentication"},this._oauthParameterSeperator=","},I.OAuthEcho.prototype=I.OAuth.prototype,I.OAuth.prototype._getTimestamp=function(){return Math.floor(new Date().getTime()/1e3)},I.OAuth.prototype._encodeData=function(N){return null==N||""==N?"":encodeURIComponent(N).replace(/\!/g,"%21").replace(/\'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")},I.OAuth.prototype._decodeData=function(N){return null!=N&&(N=N.replace(/\+/g," ")),decodeURIComponent(N)},I.OAuth.prototype._getSignature=function(N,I,T,P){var D=this._createSignatureBase(N,I,T);return this._createSignature(D,P)},I.OAuth.prototype._normalizeUrl=function(N){var I=$.parse(N,!0),T="";return I.port&&("http:"==I.protocol&&"80"!=I.port||"https:"==I.protocol&&"443"!=I.port)&&(T=":"+I.port),I.pathname&&""!=I.pathname||(I.pathname="/"),I.protocol+"//"+I.hostname+T+I.pathname},I.OAuth.prototype._isParameterNameAnOAuthParameter=function(N){var I=N.match("^oauth_");return!!I&&"oauth_"===I[0]},I.OAuth.prototype._buildAuthorizationHeaders=function(N){var I="OAuth ";this._isEcho&&(I+='realm="'+this._realm+'",');for(var T=0;T<N.length;T++)this._isParameterNameAnOAuthParameter(N[T][0])&&(I+=""+this._encodeData(N[T][0])+'="'+this._encodeData(N[T][1])+'"'+this._oauthParameterSeperator);return I.substring(0,I.length-this._oauthParameterSeperator.length)},I.OAuth.prototype._makeArrayOfArgumentsHash=function(N){var I=[];for(var T in N)if(N.hasOwnProperty(T)){var P=N[T];if(Array.isArray(P))for(var D=0;D<P.length;D++)I[I.length]=[T,P[D]];else I[I.length]=[T,P]}return I}
1303,I.OAuth.prototype._sortRequestParams=function(N){return N.sort(function(N,I){return N[0]==I[0]?N[1]<I[1]?-1:1:N[0]<I[0]?-1:1}),N},I.OAuth.prototype._normaliseRequestParams=function(N){for(var I=this._makeArrayOfArgumentsHash(N),T=0;T<I.length;T++)I[T][0]=this._encodeData(I[T][0]),I[T][1]=this._encodeData(I[T][1]);I=this._sortRequestParams(I);for(var N="",T=0;T<I.length;T++)N+=I[T][0],N+="=",N+=I[T][1],T<I.length-1&&(N+="&");return N},I.OAuth.prototype._createSignatureBase=function(N,I,T){return I=this._encodeData(this._normalizeUrl(I)),T=this._encodeData(T),N.toUpperCase()+"&"+I+"&"+T},I.OAuth.prototype._createSignature=function(N,I){if(void 0===I)var I="";else I=this._encodeData(I);var T=this._consumerSecret+"&"+I,P="";return"PLAINTEXT"==this._signatureMethod?P=T:"RSA-SHA1"==this._signatureMethod?(T=this._privateKey||"",P=D.createSign("RSA-SHA1").update(N).sign(T,"base64")):P=D.Hmac?D.createHmac("sha1",T).update(N).digest("base64"):M.HMACSHA1(T,N),P},I.OAuth.prototype.NONCE_CHARS=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","0","1","2","3","4","5","6","7","8","9"],I.OAuth.prototype._getNonce=function(N){for(var I,T=[],P=this.NONCE_CHARS,D=P.length,M=0;M<N;M++)I=Math.floor(Math.random()*D),T[M]=P[I];return T.join("")},I.OAuth.prototype._createClient=function(N,I,T,P,D,M){var $,F={host:I,port:N,path:P,method:T,headers:D};return($=M?L:R).request(F)},I.OAuth.prototype._prepareParameters=function(N,I,T,P,D){var M={oauth_timestamp:this._getTimestamp(),oauth_nonce:this._getNonce(this._nonceSize),oauth_version:this._version,oauth_signature_method:this._signatureMethod,oauth_consumer_key:this._consumerKey};if(N&&(M.oauth_token=N),this._isEcho)B=this._getSignature("GET",this._verifyCredentials,this._normaliseRequestParam
1303s(M),I);else{if(D)for(var R in D)D.hasOwnProperty(R)&&(M[R]=D[R]);var L=$.parse(P,!1);if(L.query){var B,U,H=F.parse(L.query);for(var R in H){var z=H[R];if("object"==typeof z)for(U in z)M[R+"["+U+"]"]=z[U];else M[R]=z}}B=this._getSignature(T,P,this._normaliseRequestParams(M),I)}var W=this._sortRequestParams(this._makeArrayOfArgumentsHash(M));return W[W.length]=["oauth_signature",B],W},I.OAuth.prototype._performSecureRequest=function(N,I,T,D,M,R,L,U){var H,z,W=this._prepareParameters(N,I,T,D,M);L||(L="application/x-www-form-urlencoded");var q=$.parse(D,!1);"http:"!=q.protocol||q.port||(q.port=80),"https:"!=q.protocol||q.port||(q.port=443);var G={},K=this._buildAuthorizationHeaders(W);for(var V in this._isEcho?G["X-Verify-Credentials-Authorization"]=K:G.Authorization=K,G.Host=q.host,this._headers)this._headers.hasOwnProperty(V)&&(G[V]=this._headers[V]);for(var V in M)this._isParameterNameAnOAuthParameter(V)&&delete M[V];("POST"==T||"PUT"==T)&&null==R&&null!=M&&(R=F.stringify(M).replace(/\!/g,"%21").replace(/\'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")),R?P.isBuffer(R)?G["Content-length"]=R.length:G["Content-length"]=P.byteLength(R):G["Content-length"]=0,G["Content-Type"]=L,q.pathname&&""!=q.pathname||(q.pathname="/"),H=q.query?q.pathname+"?"+q.query:q.pathname,z="https:"==q.protocol?this._createClient(q.port,q.hostname,T,H,G,!0):this._createClient(q.port,q.hostname,T,H,G);var Y=this._clientOptions;if(!U)return("POST"==T||"PUT"==T)&&null!=R&&""!=R&&z.write(R),z;var J="",Q=this,Z=B.isAnEarlyCloseHost(q.hostname),X=!1,ee=function(P){X||(X=!0,P.statusCode>=200&&P.statusCode<=299?U(null,J,P):(301==P.statusCode||302==P.statusCode)&&Y.followRedirects&&P.headers&&P.headers.location?Q._performSecureRequest(N,I,T,P.headers.location,M,R,L,U):U({statusCode:P.statusCode,data:J},J,P))};z.on("response",function(N){N.setEncoding("utf8"),N.on("data",function(N){J+=N}),N.on("end",function(){ee(N)}),N.on("close",function(){Z&&ee(N)})}),z.on("error",function(N){X||(X=!0,U(N))}),("POST"==T||"PUT"==T)&&null!=R&&""!=R&&z.write(R),z.end()},I.OAuth.prototype.setClientOptions=function(N){var I,T={},P=Object.prototype.hasOwnProperty;for(I in this._defaultClientOptions)P.call(N,I)?T[I]=N[I]:T[I]=this._defaultClientOptions[I];this._clientOptions=T},I.OAuth.prototype.getOAuthAccessToken=function(N,I,T,P){var D={};"function"==typeof T?P=T:D.oauth_verifier=T,this._performSecureRequest(N,I,this._clientOptions.accessTokenHttpMethod,this._accessUrl,D,null,null,function(N,I,T){if(N)P(N);else{var D=F.parse(I),M=D.oauth_token;delete D.oauth_token;var R=D.oauth_token_secret;delete D.oauth_token_secret,P(null,M,R,D)}})},I.OAuth.prototype.getProtectedResource=function(N,I,T,P,D){this._performSecureRequest(T,P,I,N,null,"",null,D)},I.OAuth.prototype.delete=function(N,I,T,P){return this._performSecureRequest(I,T,"DELETE",N,null,"",null,P)},I.OAuth.prototype.get=function(N,I,T,P){return this._performSecureRequest(I,T,"GET",N,null,"",null,P)},I.OAuth.prototype._putOrPost=function(N,I,T,D,M,R,L){var $=null;return"function"==typeof R&&(L=R,R=null),"string"==typeof M||P.isBuffer(M)||(R="application/x-www-form-urlencoded",$=M,M=null),this._performSecureRequest(T,D,N,I,$,M,R,L)},I.OAuth.prototype.put=function(N,I,T,P,D,M){return this._putOrPost("PUT",N,I,T,P,D,M)},I.OAuth.prototype.post=function(N,I,T,P,D,M){return this._putOrPost("POST",N,I,T,P,D,M)},I.OAuth.prototype.getOAuthRequestToken=function(N,I){"function"==typeof N&&(I=N,N={}),this._authorize_callback&&(N.oauth_callback=this._authorize_callback),this._performSecureRequest(null,null,this._clientOptions.requestTokenHttpMethod,this._requestUrl,N,null,null,function(N,T,P){if(N)I(N);else{var D=F.parse(T),M=D.oauth_token,R=D.oauth_token_secret;delete D.oauth_token,delete D.oauth_token_secret,I(null,M,R,D)}})},I.OAuth.prototype.signUrl=function(N,I,T,P){if(void 0===P)var P="GET";for(var D=this._prepareParameters(I,T,P,N,{}),M=$.parse(N,!1),R="",L=0;L<D.length;L++)R+=D[L][0]+"="+this._encodeData(D[L][1])+"&";return R=R.substring(0,R.length-1),M.protocol+"//"+M.host+M.pathname+"?"+R},I.OAuth.prototype.authHeader=function(N,I,T,P){if(void 0===P)var P="GET";var D=this._prepareParameters(I,T,P,N,{});return this._buildAuthorizationHeaders(D)}},80043:(N,I,T)=>{"use strict";let P,D;T.d(I,{Ay:()=>nT,qg:()=>nT});var M,R,L,$,F,B,U,H,z,W,q,G,K,V,Y,J,Q,Z=Object.create,X=Object.defineProperty,ee=Object.getOwnPropertyDescriptor,et=Object.getOwnPropertyNames,er=Object.getPrototypeOf,en=Object.prototype.hasOwnProperty,ea=(N,I)=>()=>
1303(I||(N((I={exports:{}}).exports,I),N=null),I.exports),ei=(N,I)=>{let T={};for(var P in N)X(T,P,{get:N[P],enumerable:!0});return I||X(T,Symbol.toStringTag,{value:"Module"}),T},eo=(N,I,T,P)=>{if(I&&"object"==typeof I||"function"==typeof I)for(var D,M=et(I),R=0,L=M.length;R<L;R++)D=M[R],en.call(N,D)||D===T||X(N,D,{get:(N=>I[N]).bind(null,D),enumerable:!(P=ee(I,D))||P.enumerable});return N},es=(N,I,T)=>(T=null!=N?Z(er(N)):{},eo(!I&&N&&N.__esModule&&en.call(N,"default")?T:X(T,"default",{value:N,enumerable:!0}),N));let el=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function ec(N){var I;return N>=55296&&N<=57343||N>1114111?65533:null!=(I=el.get(N))?I:N}let eu=function(N){let I=atob(N),T=-2&I.length,P=new Uint16Array(T/2);for(let N=0,D=0;N<T;N+=2){let T=I.charCodeAt(N),M=I.charCodeAt(N+1);P[D++]=T|M<<8}return P}
vendor: 24,987 bytes, line 1303
1303("QR08ALkAAgH6AYsDNQR2BO0EPgXZBQEGLAbdBxMISQrvCmQLfQurDKQNLw4fD4YPpA+6D/IPAAAAAAAAAAAAAAAAKhBMEY8TmxUWF2EYLBkxGuAa3RsJHDscWR8YIC8jSCSIJcMl6ie3Ku8rEC0CLjoupS7kLgAIRU1hYmNmZ2xtbm9wcnN0dVQAWgBeAGUAaQBzAHcAfgCBAIQAhwCSAJoAoACsALMAbABpAGcAO4DGAMZAUAA7gCYAJkBjAHUAdABlADuAwQDBQHIiZXZlAAJhAAFpeW0AcgByAGMAO4DCAMJAEGRyAADgNdgE3XIAYQB2AGUAO4DAAMBA8CFoYZFj4SFjcgBhZAAAoFMqAAFncIsAjgBvAG4ABGFmAADgNdg43fAlbHlGdW5jdGlvbgCgYSBpAG4AZwA7gMUAxUAAAWNzpACoAHIAAOA12Jzc6SFnbgCgVCJpAGwAZABlADuAwwDDQG0AbAA7gMQAxEAABGFjZWZvcnN1xQDYANoA7QDxAPYA+QD8AAABY3LJAM8AayNzbGFzaAAAoBYidgHTANUAAKDnKmUAZAAAoAYjeQARZIABY3J0AOAA5QDrAGEidXNlAACgNSLuI291bGxpcwCgLCFhAJJjcgAA4DXYBd1wAGYAAOA12Dnd5SF2ZdhiYwDyAOoAbSJwZXEAAKBOIgAHSE9hY2RlZmhpbG9yc3UXARoBHwE6AVIBVQFiAWQBZgGCAakB6QHtAfIBYwB5ACdkUABZADuAqQCpQIABY3B5ACUBKAE1AfUhdGUGYWmg0iJ0KGFsRGlmZmVyZW50aWFsRAAAoEUhbCJleXMAAKAtIQACYWVpb0EBRAFKAU0B8iFvbgxhZABpAGwAO4DHAMdAcgBjAAhhbiJpbnQAAKAwIm8AdAAKYQABZG5ZAV0BaSJsbGEAuGB0I2VyRG90ALdg8gA5AWkAp2NyImNsZQAAAkRNUFRwAXQBeQF9AW8AdAAAoJkiaSJudXMAAKCWIuwhdXMAoJUiaSJtZXMAAKCXIm8AAAFjc4cBlAFrKndpc2VDb250b3VySW50ZWdyYWwAAKAyImUjQ3VybHkAAAFEUZwBpAFvJXVibGVRdW90ZQAAoB0gdSJvdGUAAKAZIAACbG5wdbABtgHNAdgBbwBuAGWgNyIAoHQqgAFnaXQAvAHBAcUB8iJ1ZW50AKBhIm4AdAAAoC8i7yV1ckludGVncmFsAKAuIgABZnLRAdMBAKACIe8iZHVjdACgECJuLnRlckNsb2Nrd2lzZUNvbnRvdXJJbnRlZ3JhbAAAoDMi7yFzcwCgLypjAHIAAOA12J7ccABDoNMiYQBwAACgTSKABURKU1phY2VmaW9zAAsCEgIVAhgCGwIsAjQCOQI9AnMCfwNvoEUh9CJyYWhkAKARKWMAeQACZGMAeQAFZGMAeQAPZIABZ3JzACECJQIoAuchZXIAoCEgcgAAoKEhaAB2AACg5CoAAWF5MAIzAvIhb24OYRRkbAB0oAciYQCUY3IAAOA12AfdAAFhZkECawIAAWNtRQJnAvIjaXRpY2FsAAJBREdUUAJUAl8CYwJjInV0ZQC0YG8AdAFZAloC2WJiJGxlQWN1dGUA3WJyImF2ZQBgYGkibGRlANxi7yFuZACgxCJmJWVyZW50aWFsRAAAoEYhcAR9AgAAAAAAAIECjgIAABoDZgAA4DXYO91EoagAhQKJAm8AdAAAoNwgcSJ1YWwAAKBQIuIhbGUAA0NETFJVVpkCqAK1Au8C/wIRA28AbgB0AG8AdQByAEkAbgB0AGUAZwByAGEA7ADEAW8AdAKvAgAAAACwAqhgbiNBcnJvdwAAoNMhAAFlb7kC0AJmAHQAgAFBUlQAwQLGAs0CciJyb3cAAKDQIekkZ2h0QXJyb3cAoNQhZQDlACsCbgBnAAABTFLWAugC5SFmdAABQVLcAuECciJyb3cAAKD4J+kkZ2h0QXJyb3cAoPon6SRnaHRBcnJvdwCg+SdpImdodAAAAUFU9gL7AnIicm93AACg0iFlAGUAAKCoInAAQQIGAwAAAAALA3Iicm93AACg0SFvJHduQXJyb3cAAKDVIWUlcnRpY2FsQmFyAACgJSJuAAADQUJMUlRhJAM2AzoDWgNxA3oDciJyb3cAAKGTIUJVLAMwA2EAcgAAoBMpcCNBcnJvdwAAoPUhciJldmUAEWPlIWZ00gJDAwAASwMAAFIDaSVnaHRWZWN0b3IAAKBQKWUkZVZlY3RvcgAAoF4p5SJjdG9yQqC9IWEAcgAAoFYpaSJnaHQA1AFiAwAAaQNlJGVWZWN0b3IAAKBfKeUiY3RvckKgwSFhAHIAAKBXKWUAZQBBoKQiciJyb3cAAKCnIXIAcgBvAPcAtAIAAWN0gwOHA3IAAOA12J/c8iFvaxBhAAhOVGFjZGZnbG1vcHFzdHV4owOlA6kDsAO/A8IDxgPNA9ID8gP9AwEEFAQeBCAEJQRHAEphSAA7gNAA0EBjAHUAdABlADuAyQDJQIABYWl5ALYDuQO+A/Ihb24aYXIAYwA7gMoAykAtZG8AdAAWYXIAAOA12AjdcgBhAHYAZQA7gMgAyEDlIm1lbnQAoAgiAAFhcNYD2QNjAHIAEmF0AHkAUwLhAwAAAADpA20lYWxsU3F1YXJlAACg+yVlJ3J5U21hbGxTcXVhcmUAAKCrJQABZ3D2A/kDbwBuABhhZgAA4DXYPN3zImlsb26VY3UAAAFhaQYEDgRsAFSgdSppImxkZQAAoEIi7CNpYnJpdW0AoMwhAAFjaRgEGwRyAACgMCFtAACgcyphAJdjbQBsADuAywDLQAABaXApBC0E8yF0cwCgAyLvJG5lbnRpYWxFAKBHIYACY2Zpb3MAPQQ/BEMEXQRyBHkAJGRyAADgNdgJ3WwibGVkAFMCTAQAAAAAVARtJWFsbFNxdWFyZQAAoPwlZSdyeVNtYWxsU3F1YXJlAACgqiVwA2UEAABpBAAAAABtBGYAAOA12D3dwSFsbACgACLyI2llcnRyZgCgMSFjAPIAcQQABkpUYWJjZGZnb3JzdIgEiwSOBJMElwSkBKcEqwStBLIE5QTqBGMAeQADZDuAPgA+QO0hbWFkoJMD3GNyImV2ZQAeYYABZWl5AJ0EoASjBOQhaWwiYXIAYwAcYRNkbwB0ACBhcgAA4DXYCt0AoNkicABmAADgNdg+3eUiYXRlcgADRUZHTFNUvwTIBM8E1QTZBOAEcSJ1YWwATKBlIuUhc3MAoNsidSRsbEVxdWFsAACgZyJyI2VhdGVyAACgoirlIXNzAKB3IuwkYW50RXF1YWwAoH4qaSJsZGUAAKBzImMAcgAA4DXYotwAoGsiAARBYWNmaW9zdfkE/QQFBQgFCwUTBSIFKwVSIkRjeQAqZAABY3QBBQQFZQBrAMdiXmDpIXJjJGFyAACgDCFsJWJlcnRTcGFjZQAAoAsh8AEYBQAAGwVmAACgDSHpJXpvbnRhbExpbmUAoAAlAAFjdCYFKAXyABIF8iFvayZhbQBwAEQBMQU5BW8AdwBuAEgAdQBtAPAAAAFxInVhbAAAoE8iAAdFSk9hY2RmZ21ub3N0dVMFVgVZBVwFYwVtBXAFcwV6BZAFtgXFBckFzQVjAHkAFWTsIWlnMmFjAHkAAWRjAHUAdABlADuAzQDNQAABaXlnBWwFcgBjADuAzgDOQBhkbwB0ADBhcgAAoBEhcgBhAHYAZQA7gMwAzEAAoREhYXB/BYsFAAFjZ4MFhQVyACphaSNuYXJ5SQAAoEghbABpAGUA8wD6AvQBlQUAAKUFZaAsIgABZ3KaBZ4F8iFhbACgKyLzI2VjdGlvbgCgwiJpI3NpYmxlAAABQ1SsBbEFbyJtbWEAAKBjIGkibWVzAACgYiCAAWdwdAC8Bb8FwwVvAG4ALmFmAADgNdhA3WEAmWNjAHIAAKAQIWkibGRlAChh6wHSBQAA1QVjAHkABmRsADuAzwDPQIACY2Zvc3UA4QXpBe0F8gX9BQABaXnlBegFcgBjADRhGWRyAADgNdgN3XAAZgAA4DXYQd3jAfcFAAD7BXIAAOA12KXc8iFjeQhk6yFjeQRkgANISmFjZm9zAAwGDwYSBhUGHQYhBiYGYwB5ACVkYwB5AAxk8CFwYZpjAAFleRkGHAbkIWlsNmEaZHIAAOA12A7dcABmAADgNdhC3WMAcgAA4DXYptyABUpUYWNlZmxtb3N0AD0GQAZDBl4GawZkB2gHcAd0B80H2gdjAHkACWQ7gDwAPECAAmNtbnByAEwGTwZSBlUGWwb1IXRlOWHiIWRhm2NnAACg6ifsI2FjZXRyZgCgEiFyAACgniGAAWFleQBkBmcGagbyIW9uPWHkIWlsO2EbZAABZnNvBjQHdAAABUFDREZSVFVWYXKABp4GpAbGBssG3AYDByEHwQIqBwABbnKEBowGZyVsZUJyYWNrZXQAAKDoJ/Ihb3cAoZAhQlKTBpcGYQByAACg5CHpJGdodEFycm93AKDGIWUjaWxpbmcAAKAII28A9QGqBgAAsgZiJWxlQnJhY2tldAAAoOYnbgDUAbcGAAC+BmUkZVZlY3RvcgAAoGEp5SJjdG9yQqDDIWEAcgAAoFkpbCJvb3IAAKAKI2kiZ2h0AAABQVbSBtcGciJyb3cAAKCUIeUiY3RvcgCgTikAAWVy4AbwBmUAAKGjIkFW5gbrBnIicm93AACgpCHlImN0b3IAoFopaSNhbmdsZQBCorIi+wYAAAAA/wZhAHIAAKDPKXEidWFsAACgtCJwAIABRFRWAAoHEQcYB+8kd25WZWN0b3IAoFEpZSRlVmVjdG9yAACgYCnlImN0b3JCoL8hYQByAACgWCnlImN0b3JCoLwhYQByAACgUilpAGcAaAB0AGEAcgByAG8A9wDMAnMAAANFRkdMU1Q/B0cHTgdUB1gHXwfxJXVhbEdyZWF0ZXIAoNoidSRsbEVxdWFsAACgZiJyI2VhdGVyAACgdiLlIXNzAKChKuwkYW50RXF1YWwAoH0qaSJsZGUAAKByInIAAOA12A/dZaDYIuYjdGFycm93AKDaIWkiZG90AD9hgAFucHcAege1B7kHZwAAAkxSbHKCB5QHmwerB+UhZnQAAUFSiAeNB3Iicm93AACg9SfpJGdodEFycm93AKD3J+kkZ2h0QXJyb3cAoPYn5SFmdAABYXLcAqEHaQBnAGgAdABhAHIAcgBvAPcA5wJpAGcAaAB0AGEAcgByAG8A9wDuAmYAAOA12EPdZQByAAABTFK/B8YHZSRmdEFycm93AACgmSHpJGdodEFycm93AKCYIYABY2h0ANMH1QfXB/IAWgYAoLAh8iFva0FhAKBqIgAEYWNlZmlvc3XpB+wH7gf/BwMICQgOCBEIcAAAoAUpeQAcZAABZGzyB/kHaSR1bVNwYWNlAACgXyBsI2ludHJmAACgMyFyAADgNdgQ3e4jdXNQbHVzAKATInAAZgAA4DXYRN1jAPIA/gecY4AESmFjZWZvc3R1ACEIJAgoCDUIgQiFCDsKQApHCmMAeQAKZGMidXRlAENhgAFhZXkALggxCDQI8iFvbkdh5CFpbEVhHWSAAWdzdwA7CGEIfQjhInRpdmWAAU1UVgBECEwIWQhlJWRpdW1TcGFjZQAAoAsgaABpAAABY25SCFMIawBTAHAAYQBjAOUASwhlAHIAeQBUAGgAaQDuAFQI9CFlZAABR0xnCHUIcgBlAGEAdABlAHIARwByAGUAYQB0AGUA8gDrBGUAcwBzAEwAZQBzAPMA2wdMImluZQAKYHIAAOA12BHdAAJCbnB0jAiRCJkInAhyImVhawAAoGAgwiZyZWFraW5nU3BhY2WgYGYAAKAVIUOq7CqzCMIIzQgAAOcIGwkAAAAAAAAtCQAAbwkAAIcJAACdCcAJGQoAADQKAAFvdbYIvAjuI2dydWVudACgYiJwIkNhcAAAoG0ibyh1YmxlVmVydGljYWxCYXIAAKAmIoABbHF4ANII1wjhCOUibWVudACgCSL1IWFsVKBgImkibGRlAADgQiI4A2kic3RzAACgBCJyI2VhdGVyAACjbyJFRkdMU1T1CPoIAgkJCQ0JFQlxInVhbAAAoHEidSRsbEVxdWFsAADgZyI4A3IjZWF0ZXIAAOBrIjgD5SFzcwCgeSLsJGFudEVxdWFsAOB+KjgDaSJsZGUAAKB1IvUhbXBEASAJJwnvI3duSHVtcADgTiI4A3EidWFsAADgTyI4A2UAAAFmczEJRgn0JFRyaWFuZ2xlQqLqIj0JAAAAAEIJYQByAADgzyk4A3EidWFsAACg7CJzAICibiJFR0xTVABRCVYJXAlhCWkJcSJ1YWwAAKBwInIjZWF0ZXIAAKB4IuUhc3MA4GoiOAPsJGFudEVxdWFsAOB9KjgDaSJsZGUAAKB0IuUic3RlZAABR0x1CX8J8iZlYXRlckdyZWF0ZXIA4KIqOAPlI3NzTGVzcwDgoSo4A/IjZWNlZGVzAKGAIkVTjwmVCXEidWFsAADgryo4A+wkYW50RXF1YWwAoOAiAAFlaaAJqQl2JmVyc2VFbGVtZW50AACgDCLnJWh0VHJpYW5nbGVCousitgkAAAAAuwlhAHIAAODQKTgDcSJ1YWwAAKDtIgABcXXDCeAJdSNhcmVTdQAAAWJwywnVCfMhZXRF4I8iOANxInVhbAAAoOIi5SJyc2V0ReCQIjgDcSJ1YWwAAKDjIoABYmNwAOYJ8AkNCvMhZXRF4IIi0iBxInVhbAAAoIgi4yJlZWRzgKGBIkVTVAD6CQAKBwpxInVhbAAA4LAqOAPsJGFudEVxdWFsAKDhImkibGRlAADgfyI4A+UicnNldEXggyLSIHEidWFsAACgiSJpImxkZQCAoUEiRUZUACIKJwouCnEidWFsAACgRCJ1JGxsRXF1YWwAAKBHImkibGRlAACgSSJlJXJ0aWNhbEJhcgAAoCQiYwByAADgNdip3GkAbABkAGUAO4DRANFAnWMAB0VhY2RmZ21vcHJzdHV2XgphCmgKcgp2CnoKgQqRCpYKqwqtCrsKyArNCuwhaWdSYWMAdQB0AGUAO4DTANNAAAFpeWwKcQpyAGMAO4DUANRAHmRiImxhYwBQYXIAAOA12BLdcgBhAHYAZQA7gNIA0kCAAWFlaQCHCooKjQpjAHIATGFnAGEAqWNjInJvbgCfY3AAZgAA4DXYRt3lI25DdXJseQABRFGeCqYKbyV1YmxlUXVvdGUAAKAcIHUib3RlAACgGCAAoFQqAAFjbLEKtQpyAADgNdiq3GEAcwBoADuA2ADYQGkAbAHACsUKZABlADuA1QDVQGUAcwAAoDcqbQBsADuA1gDWQGUAcgAAAUJQ0wrmCgABYXLXCtoKcgAAoD4gYQBjAAABZWvgCuIKAKDeI2UAdAAAoLQjYSVyZW50aGVzaXMAAKDcI4AEYWNmaGlsb3JzAP0KAwsFCwkLCwsMCxELIwtaC3IjdGlhbEQAAKACInkAH2RyAADgNdgT3WkApmOgY/Ujc01pbnVzsWAAAWlwFQsgC24AYwBhAHIAZQBwAGwAYQBuAOUACgVmAACgGSGAobsqZWlvACoLRQtJC+MiZWRlc4CheiJFU1QANAs5C0ALcSJ1YWwAAKCvKuwkYW50RXF1YWwAoHwiaSJsZGUAAKB+Im0AZQAAoDMgAAFkcE0LUQv1IWN0AKAPIm8jcnRpb24AYaA3ImwAAKAdIgABY2leC2ILcgAA4DXYq9yoYwACVWZvc2oLbwtzC3cLTwBUADuAIgAiQHIAAOA12BTdcABmAACgGiFjAHIAAOA12KzcAAZCRWFjZWZoaW9yc3WPC5MLlwupC7YL2AvbC90LhQyTDJoMowzhIXJyAKAQKUcAO4CuAK5AgAFjbnIAnQugC6ML9SF0ZVRhZwAAoOsncgB0oKAhbAAAoBYpgAFhZXkArwuyC7UL8iFvblhh5CFpbFZhIGR2oBwhZSJyc2UAAAFFVb8LzwsAAWxxwwvIC+UibWVudACgCyL1JGlsaWJyaXVtAKDLIXAmRXF1aWxpYnJpdW0AAKBvKXIAAKAcIW8AoWPnIWh0AARBQ0RGVFVWYewLCgwQDDIMNwxeDHwM9gIAAW5y8Av4C2clbGVCcmFja2V0AACg6SfyIW93AKGSIUJM/wsDDGEAcgAAoOUhZSRmdEFycm93AACgxCFlI2lsaW5nAACgCSNvAPUBFgwAAB4MYiVsZUJyYWNrZXQAAKDnJ24A1AEjDAAAKgxlJGVWZWN0b3IAAKBdKeUiY3RvckKgwiFhAHIAAKBVKWwib29yAACgCyMAAWVyOwxLDGUAAKGiIkFWQQxGDHIicm93AACgpiHlImN0b3IAoFspaSNhbmdsZQBCorMiVgwAAAAAWgxhAHIAAKDQKXEidWFsAACgtSJwAIABRFRWAGUMbAxzDO8kd25WZWN0b3IAoE8pZSRlVmVjdG9yAACgXCnlImN0b3JCoL4hYQByAACgVCnlImN0b3JCoMAhYQByAACgUykAAXB1iQyMDGYAAKAdIe4kZEltcGxpZXMAoHAp6SRnaHRhcnJvdwCg2yEAAWNongyhDHIAAKAbIQCgsSHsJGVEZWxheWVkAKD0KYAGSE9hY2ZoaW1vcXN0dQC/DMgMzAzQDOIM5gwKDQ0NFA0ZDU8NVA1YDQABQ2PDDMYMyCFjeSlkeQAoZEYiVGN5ACxkYyJ1dGUAWmEAorwqYWVpedgM2wzeDOEM8iFvbmBh5CFpbF5hcgBjAFxhIWRyAADgNdgW3e8hcnQAAkRMUlXvDPYM/QwEDW8kd25BcnJvdwAAoJMhZSRmdEFycm93AACgkCHpJGdodEFycm93AKCSIXAjQXJyb3cAAKCRIechbWGjY+EkbGxDaXJjbGUAoBgicABmAADgNdhK3XICHw0AAAAAIg10AACgGiLhIXJlgKGhJUlTVQAqDTINSg3uJXRlcnNlY3Rpb24AoJMidQAAAWJwNw1ADfMhZXRFoI8icSJ1YWwAAKCRIuUicnNldEWgkCJxInVhbAAAoJIibiJpb24AAKCUImMAcgAA4DXYrtxhAHIAAKDGIgACYmNtcF8Nag2ODZANc6DQImUAdABFoNAicSJ1YWwAAKCGIgABY2huDYkNZSJlZHMAgKF7IkVTVAB4DX0NhA1xInVhbAAAoLAq7CRhbnRFcXVhbACgfSJpImxkZQAAoH8iVABoAGEA9ADHCwCgESIAodEiZXOVDZ8NciJzZXQARaCDInEidWFsAACghyJlAHQAAKDRIoAFSFJTYWNmaGlvcnMAtQ27Db8NyA3ODdsN3w3+DRgOHQ4jDk8AUgBOADuA3gDeQMEhREUAoCIhAAFIY8MNxg1jAHkAC2R5ACZkAAFidcwNzQ0JYKRjgAFhZXkA1A3XDdoN8iFvbmRh5CFpbGJhImRyAADgNdgX3QABZWnjDe4N8gHoDQAA7Q3lImZvcmUAoDQiYQCYYwABY27yDfkNayNTcGFjZQAA4F8gCiDTInBhY2UAoAkg7CFkZYChPCJFRlQABw4MDhMOcSJ1YWwAAKBDInUkbGxFcXVhbAAAoEUiaSJsZGUAAKBIInAAZgAA4DXYS93pI3BsZURvdACg2yAAAWN0Jw4rDnIAAOA12K/c8iFva2Zh4QpFDlYOYA5qDgAAbg5yDgAAAAAAAAAAAAB5DnwOqA6zDgAADg8RDxYPGg8AAWNySA5ODnUAdABlADuA2gDaQHIAb6CfIeMhaXIAoEkpcgDjAVsOAABdDnkADmR2AGUAbGEAAWl5Yw5oDnIAYwA7gNsA20AjZGIibGFjAHBhcgAA4DXYGN1yAGEAdgBlADuA2QDZQOEhY3JqYQABZGl/Dp8OZQByAAABQlCFDpcOAAFhcokOiw5yAF9gYQBjAAABZWuRDpMOAKDfI2UAdAAAoLUjYSVyZW50aGVzaXMAAKDdI28AbgBQoMMi7CF1cwCgjiIAAWdwqw6uDm8AbgByYWYAAOA12EzdAARBREVUYWRwc78O0g7ZDuEOBQPqDvMOBw9yInJvdwDCoZEhyA4AAMwOYQByAACgEilvJHduQXJyb3cAAKDFIW8kd25BcnJvdwAAoJUhcSV1aWxpYnJpdW0AAKBuKWUAZQBBoKUiciJyb3cAAKClIW8AdwBuAGEAcgByAG8A9wAQA2UAcgAAAUxS+Q4AD2UkZnRBcnJvdwAAoJYh6SRnaHRBcnJvdwCglyFpAGyg0gNvAG4ApWPpIW5nbmFjAHIAAOA12LDcaSJsZGUAaGFtAGwAO4DcANxAgAREYmNkZWZvc3YALQ8xDzUPNw89D3IPdg97D4AP4SFzaACgqyJhAHIAAKDrKnkAEmThIXNobKCpIgCg5ioAAWVyQQ9DDwCgwSKAAWJ0eQBJD00Paw9hAHIAAKAWIGmgFiDjIWFsAAJCTFNUWA9cD18PZg9hAHIAAKAjIukhbmV8YGUkcGFyYXRvcgAAoFgnaSJsZGUAAKBAItQkaGluU3BhY2UAoAogcgAA4DXYGd1wAGYAAOA12E3dYwByAADgNdix3GQiYXNoAACgqiKAAmNlZm9zAI4PkQ+VD5kPng/pIXJjdGHkIWdlAKDAInIAAOA12BrdcABmAADgNdhO3WMAcgAA4DXYstwAAmZpb3OqD64Prw+0D3IAAOA12BvdnmNwAGYAAOA12E/dYwByAADgNdiz3IAEQUlVYWNmb3N1AMgPyw/OD9EP2A/gD+QP6Q/uD2MAeQAvZGMAeQAHZGMAeQAuZGMAdQB0AGUAO4DdAN1AAAFpedwP3w9yAGMAdmErZHIAAOA12BzdcABmAADgNdhQ3WMAcgAA4DXYtNxtAGwAeGEABEhhY2RlZm9z/g8BEAUQDRAQEB0QIBAkEGMAeQAWZGMidXRlAHlhAAFheQkQDBDyIW9ufWEXZG8AdAB7YfIBFRAAABwQbwBXAGkAZAB0AOgAVAhhAJZjcgAAoCghcABmAACgJCFjAHIAAOA12LXc4QtCEEkQTRAAAGcQbRByEAAAAAAAAAAAeRCKEJcQ8hD9EAAAGxEhETIROREAAD4RYwB1AHQAZQA7gOEA4UByImV2ZQADYYCiPiJFZGl1eQBWEFkQWxBgEGUQAOA+IjMDAKA/InIAYwA7gOIA4kB0AGUAO4C0ALRAMGRsAGkAZwA7gOYA5kByoGEgAOA12B7dcgBhAHYAZQA7gOAA4EAAAWVwfBCGEAABZnCAEIQQ8yF5bQCgNSHoAIMQaABhALFjAAFhcI0QWwAAAWNskRCTEHIAAWFnAACgPypkApwQAAAAALEQAKInImFkc3ajEKcQqRCuEG4AZAAAoFUqAKBcKmwib3BlAACgWCoAoFoqAKMgImVsbXJzersQvRDAEN0Q5RDtEACgpCllAACgICJzAGQAYaAhImEEzhDQENIQ1BDWENgQ2hDcEACgqCkAoKkpAKCqKQCgqykAoKwpAKCtKQCgrikAoK8pdAB2oB8iYgBkoL4iAKCdKQABcHTpEOwQaAAAoCIixWDhIXJyAKB8IwABZ3D1EPgQbwBuAAVhZgAA4DXYUt0Ao0giRWFlaW9wBxEJEQ0RDxESERQRAKBwKuMhaXIAoG8qAKBKImQAAKBLInMAJ2DyIW94ZaBIIvEADhFpAG4AZwA7gOUA5UCAAWN0eQAmESoRKxFyAADgNdi23CpgbQBwAGWgSCLxAPgBaQBsAGQAZQA7gOMA40BtAGwAO4DkAORAAAFjaUERRxFvAG4AaQBuAPQA6AFuAHQAAKARKgAITmFiY2RlZmlrbG5vcHJzdWQRaBGXEZ8RpxGrEdIR1hErEjASexKKEn0RThNbE3oTbwB0AACg7SoAAWNybBGJEWsAAAJjZXBzdBF4EX0RghHvIW5nAKBMInAjc2lsb24A9mNyImltZQAAoDUgaQBtAGWgPSJxAACgzSJ2AY0RkRFlAGUAAKC9ImUAZABnoAUjZQAAoAUjcgBrAHSgtSPiIXJrAKC2IwABb3mjEaYRbgDnAHcRMWTxIXVvAKAeIIACY21wcnQAtBG5Eb4RwRHFEeEhdXPloDUi5ABwInR5dgAAoLApcwDpAH0RbgBvAPUA6gCAAWFodwDLEcwRzhGyYwCgNiHlIWVuAKBsInIAAOA12B/dZwCAA2Nvc3R1dncA4xHyEQUSEhIhEiYSKRKAAWFpdQDpEesR7xHwAKMFcgBjAACg7yVwAACgwyKAAWRwdAD4EfwRABJvAHQAAKAAKuwhdXMAoAEqaSJtZXMAAKACKnECCxIAAAAADxLjIXVwAKAGKmEAcgAAoAUm8iNpYW5nbGUAAWR1GhIeEu8hd24AoL0lcAAAoLMlcCJsdXMAAKAEKmUA5QBCD+UAkg9hInJvdwAAoA0pgAFha28ANhJoEncSAAFjbjoSZRJrAIABbHN0AEESRxJNEm8jemVuZ2UAAKDrKXEAdQBhAHIA5QBcBPIjaWFuZ2xlgKG0JWRscgBYElwSYBLvIXduAKC+JeUhZnQAoMIlaSJnaHQAAKC4JWsAAKAjJLEBbRIAAHUSsgFxEgAAcxIAoJIlAKCRJTQAAKCTJWMAawAAoIglAAFlb38ShxJx4D0A5SD1IWl2AOBhIuUgdAAAoBAjAAJwdHd4kRKVEpsSnxJmAADgNdhT3XSgpSJvAG0AAKClIvQhaWUAoMgiAAZESFVWYmRobXB0dXayEsES0RLgEvcS+xIKExoTHxMjEygTNxMAAkxSbHK5ErsSvRK/EgCgVyUAoFQlAKBWJQCgUyUAolAlRFVkdckSyxLNEs8SAKBmJQCgaSUAoGQlAKBnJQACTFJsctgS2hLcEt4SAKBdJQCgWiUAoFwlAKBZJQCjUSVITFJobHLrEu0S7xLxEvMS9RIAoGwlAKBjJQCgYCUAoGslAKBiJQCgXyVvAHgAAKDJKQACTFJscgITBBMGEwgTAKBVJQCgUiUAoBAlAKAMJQCiACVEVWR1EhMUExYTGBMAoGUlAKBoJQCgLCUAoDQlaSJudXMAAKCfIuwhdXMAoJ4iaSJtZXMAAKCgIgACTFJsci8TMRMzEzUTAKBbJQCgWCUAoBglAKAUJQCjAiVITFJobHJCE0QTRhNIE0oTTBMAoGolAKBhJQCgXiUAoDwlAKAkJQCgHCUAAWV2UhNVE3YA5QD5AGIAYQByADuApgCmQAACY2Vpb2ITZhNqE24TcgAA4DXYt9xtAGkAAKBPIG0A5aA9IogRbAAAoVwAYmh0E3YTAKDFKfMhdWIAoMgnbAF+E4QTbABloCIgdAAAoCIgcAAAoU4iRWWJE4sTAKCuKvGgTyI8BeEMqRMAAN8TABQDFB8UAAAjFDQUAAAAAIUUAAAAAI0UAAAAANcU4xT3FPsUAACIFQAAlhWAAWNwcgCuE7ET1RP1IXRlB2GAoikiYWJjZHMAuxO/E8QTzhPSE24AZAAAoEQqciJjdXAAAKBJKgABYXXIE8sTcAAAoEsqcAAAoEcqbwB0AACgQCoA4CkiAP4AAWVv2RPcE3QAAKBBIO4ABAUAAmFlaXXlE+8T9RP4E/AB6hMAAO0TcwAAoE0qbwBuAA1hZABpAGwAO4DnAOdAcgBjAAlhcABzAHOgTCptAACgUCpvAHQAC2GAAWRtbgAIFA0UEhRpAGwAO4C4ALhAcCJ0eXYAAKCyKXQAAIGiADtlGBQZFKJAcgBkAG8A9ABiAXIAAOA12CDdgAFjZWkAKBQqFDIUeQBHZGMAawBtoBMn4SFyawCgEyfHY3IAAKPLJUVjZWZtcz8UQRRHFHcUfBSAFACgwykAocYCZWxGFEkUcQAAoFciZQBhAlAUAAAAAGAUciJyb3cAAAFsclYUWhTlIWZ0AKC6IWkiZ2h0AACguyGAAlJTYWNkAGgUaRRrFG8UcxSuYACgyCRzAHQAAKCbIukhcmMAoJoi4SFzaACgnSJuImludAAAoBAqaQBkAACg7yrjIWlyAKDCKfUhYnN1oGMmaQB0AACgYybsApMUmhS2FAAAwxRvAG4AZaA6APGgVCKrAG0CnxQAAAAAoxRhAHSgLABAYAChASJmbKcUqRTuABMNZQAAAW14rhSyFOUhbnQAoAEiZQDzANIB5wG6FAAAwBRkoEUibwB0AACgbSpuAPQAzAGAAWZyeQDIFMsUzhQA4DXYVN1vAOQA1wEAgakAO3MeAdMUcgAAoBchAAFhb9oU3hRyAHIAAKC1IXMAcwAAoBcnAAFjdeYU6hRyAADgNdi43AABYnDuFPIUZaDPKgCg0SploNAqAKDSKuQhb3QAoO8igANkZWxwcnZ3AAYVEBUbFSEVRBVlFYQV4SFycgABbHIMFQ4VAKA4KQCgNSlwAhYVAAAAABkVcgAAoN4iYwAAoN8i4SFycnCgtiEAoD0pgKIqImJjZG9zACsVMBU6FT4VQRVyImNhcAAAoEgqAAFhdTQVNxVwAACgRipwAACgSipvAHQAAKCNInIAAKBFKgDgKiIA/gACYWxydksVURVuFXMVcgByAG2gtyEAoDwpeQCAAWV2dwBYFWUVaRVxAHACXxUAAAAAYxVyAGUA4wAXFXUA4wAZFWUAZQAAoM4iZSJkZ2UAAKDPImUAbgA7gKQApEBlI2Fycm93AAABbHJ7FX8V5SFmdACgtiFpImdodAAAoLchZQDkAG0VAAFjaYsVkRVvAG4AaQBuAPQAkwFuAHQAAKAxImwiY3R5AACgLSOACUFIYWJjZGVmaGlqbG9yc3R1d3oAuBW7Fb8V1RXgFegV+RUKFhUWHxZUFlcWZRbFFtsW7xb7FgUXChdyAPIAtAJhAHIAAKBlKQACZ2xyc8YVyhXOFdAV5yFlcgCgICDlIXRoAKA4IfIA9QxoAHagECAAoKMiawHZFd4VYSJyb3cAAKAPKWEA4wBfAgABYXnkFecV8iFvbg9hNGQAoUYhYW/tFfQVAAFnciEC8RVyAACgyiF0InNlcQAAoHcqgAFnbG0A/xUCFgUWO4CwALBAdABhALRjcCJ0eXYAAKCxKQABaXIOFhIW8yFodACgfykA4DXYId1hAHIAAAFschsWHRYAoMMhAKDCIYACYWVnc3YAKBauAjYWOhY+Fm0AAKHEIm9zLhY0Fm4AZABzoMQi9SFpdACgZiZhIm1tYQDdY2kAbgAAoPIiAKH3AGlvQxZRFmQAZQAAgfcAO29KFksW90BuI3RpbWVzAACgxyJuAPgAUBZjAHkAUmRjAG8CXhYAAAAAYhZyAG4AAKAeI28AcAAAoA0jgAJscHR1dwBuFnEWdRaSFp4W7CFhciRgZgAA4DXYVd0AotkCZW1wc30WhBaJFo0WcQBkoFAibwB0AACgUSJpIm51cwAAoDgi7CF1cwCgFCLxInVhcmUAoKEiYgBsAGUAYgBhAHIAdwBlAGQAZwDlANcAbgCAAWFkaAClFqoWtBZyAHIAbwD3APUMbwB3AG4AYQByAHIAbwB3APMA8xVhI3Jwb29uAAABbHK8FsAWZQBmAPQAHBZpAGcAaAD0AB4WYgHJFs8WawBhAHIAbwD3AJILbwLUFgAAAADYFnIAbgAAoB8jbwBwAACgDCOAAWNvdADhFukW7BYAAXJ55RboFgDgNdi53FVkbAAAoPYp8iFvaxFhAAFkcvMW9xZvAHQAAKDxImkA5qC/JVsSAAFhaP8WAhdyAPIANQNhAPIA1wvhIm5nbGUAoKYpAAFjaQ4XEBd5AF9k5yJyYXJyAKD/JwAJRGFjZGVmZ2xtbm9wcXJzdHV4MRc4F0YXWxcyBF4XaRd5F40XrBe0F78X2RcVGCEYLRg1GEAYAAFEbzUXgRZvAPQA+BUAAWNzPBdCF3UAdABlADuA6QDpQPQhZXIAoG4qAAJhaW95TRdQF1YXWhfyIW9uG2FyAGOgViI7gOoA6kDsIW9uAKBVIk1kbwB0ABdhAAFEcmIXZhdvAHQAAKBSIgDgNdgi3XKhmipuF3QXYQB2AGUAO4DoAOhAZKCWKm8AdAAAoJgqgKGZKmlscwCAF4UXhxfuInRlcnMAoOcjAKATIWSglSpvAHQAAKCXKoABYXBzAJMXlheiF2MAcgATYXQAeQBzogUinxcAAAAAoRdlAHQAAKAFInAAMaADIDMBqRerFwCgBCAAoAUgAAFnc7AXsRdLYXAAAKACIAABZ3C4F7sXbwBuABlhZgAA4DXYVt2AAWFscwDFF8sXzxdyAHOg1SJsAACg4yl1AHMAAKBxKmkAAKG1A2x21RfYF28AbgC1Y/VjAAJjc3V24BfoF/0XEBgAAWlv5BdWF3IAYwAAoFYiaQLuFwAAAADwF+0ADQThIW50AAFnbPUX+Rd0AHIAAKCWKuUhc3MAoJUqgAFhZWkAAxgGGAoYbABzAD1gcwB0AACgXyJ2AESgYSJEAACgeCrwImFyc2wAoOUpAAFEYRkYHRhvAHQAAKBTInIAcgAAoHEpgAFjZGkAJxgqGO0XcgAAoC8hbwD0AIwCAAFhaDEYMhi3YzuA8ADwQAABbXI5GD0YbAA7gOsA60BvAACgrCCAAWNpcABGGEgYSxhsACFgcwD0ACwEAAFlb08YVxhjAHQAYQB0AGkAbwDuABoEbgBlAG4AdABpAGEAbADlADME4Ql1GAAAgRgAAIMYiBgAAAAAoRilGAAAqhgAALsYvhjRGAAA1xgnGWwAbABpAG4AZwBkAG8AdABzAGUA8QBlF3kARGRtImFsZQAAoEAmgAFpbHIAjRiRGJ0Y7CFpZwCgA/tpApcYAAAAAJoYZwAAoAD7aQBnAACgBPsA4DXYI93sIWlnAKAB++whaWcA4GYAagCAAWFsdACvGLIYthh0AACgbSZpAGcAAKAC+24AcwAAoLElbwBmAJJh8AHCGAAAxhhmAADgNdhX3QABYWvJGMwYbADsAGsEdqDUIgCg2SphI3J0aW50AACgDSoAAWFv2hgiGQABY3PeGB8ZsQPnGP0YBRkSGRUZAAAdGbID7xjyGPQY9xj5GAAA+xg7gL0AvUAAoFMhO4C8ALxAAKBVIQCgWSEAoFshswEBGQAAAxkAoFQhAKBWIbQCCxkOGQAAAAAQGTuAvgC+QACgVyEAoFwhNQAAoFghtgEZGQAAGxkAoFohAKBdITgAAKBeIWwAAKBEIHcAbgAAoCIjYwByAADgNdi73IAIRWFiY2RlZmdpamxub3JzdHYARhlKGVoZXhlmGWkZkhmWGZkZnRmgGa0ZxhnLGc8Z4BkjGmygZyIAoIwqgAFjbXAAUBlTGVgZ9SF0ZfVhbQBhAOSgswM6FgCghipyImV2ZQAfYQABaXliGWUZcgBjAB1hM2RvAHQAIWGAoWUibHFzAMYEcBl6GfGhZSLOBAAAdhlsAGEAbgD0AN8EgKF+KmNkbACBGYQZjBljAACgqSpvAHQAb6CAKmyggioAoIQqZeDbIgD+cwAAoJQqcgAA4DXYJN3noGsirATtIWVsAKA3IWMAeQBTZIChdyJFYWoApxmpGasZAKCSKgCgpSoAoKQqAAJFYWVztBm2Gb0ZwhkAoGkicABwoIoq8iFveACgiipxoIgq8aCIKrUZaQBtAACg5yJwAGYAAOA12FjdYQB2AOUAYwIAAWNp0xnWGXIAAKAKIW0AAKFzImVs3BneGQCgjioAoJAqAIM+ADtjZGxxco0E6xn0GfgZ/BkBGgABY2nvGfEZAKCnKnIAAKB6Km8AdAAAoNci0CFhcgCglSl1ImVzdAAAoHwqgAJhZGVscwAKGvQZFhrVBCAa8AEPGgAAFBpwAHIAbwD4AFkZcgAAoHgpcQAAAWxxxAQbGmwAZQBzAPMASRlpAO0A5AQAAWVuJxouGnIjdG5lcXEAAOBpIgD+xQAsGgAFQWFiY2Vma29zeUAaQxpmGmoabRqDGocalhrCGtMacgDyAMwCAAJpbG1yShpOGlAaVBpyAHMA8ABxD2YAvWBpAGwA9AASBQABZHJYGlsaYwB5AEpkAKGUIWN3YBpkGmkAcgAAoEgpAKCtIWEAcgAAoA8h6SFyYyVhgAFhbHIAcxp7Gn8a8iF0c3WgZSZpAHQAAKBlJuwhaXAAoCYg4yFvbgCguSJyAADgNdgl3XMAAAFld4wakRphInJvdwAAoCUpYSJyb3cAAKAmKYACYW1vcHIAnxqjGqcauhq+GnIAcgAAoP8h9CFodACgOyJrAAABbHKsGrMaZSRmdGFycm93AACgqSHpJGdodGFycm93AKCqIWYAAOA12Fnd4iFhcgCgFSCAAWNsdADIGswa0BpyAADgNdi93GEAcwDoAGka8iFvaydhAAFicNca2xr1IWxsAKBDIOghZW4AoBAg4Qr2GgAA/RoAAAgbExsaGwAAIRs7GwAAAAA+G2IbmRuVG6sbAACyG80b0htjAHUAdABlADuA7QDtQAChYyBpeQEbBhtyAGMAO4DuAO5AOGQAAWN4CxsNG3kANWRjAGwAO4ChAKFAAAFmcssCFhsA4DXYJt1yAGEAdgBlADuA7ADsQIChSCFpbm8AJxsyGzYbAAFpbisbLxtuAHQAAKAMKnQAAKAtIuYhaW4AoNwpdABhAACgKSHsIWlnM2GAAWFvcABDG1sbXhuAAWNndABJG0sbWRtyACthgAFlbHAAcQVRG1UbaQBuAOUAyAVhAHIA9AByBWgAMWFmAACgtyJlAGQAtWEAoggiY2ZvdGkbbRt1G3kb4SFyZQCgBSFpAG4AdKAeImkAZQAAoN0pZABvAPQAWxsAoisiY2VscIEbhRuPG5QbYQBsAACguiIAAWdyiRuNG2UAcgDzACMQ4wCCG2EicmhrAACgFyryIW9kAKA8KgACY2dwdJ8boRukG6gbeQBRZG8AbgAvYWYAAOA12FrdYQC5Y3UAZQBzAHQAO4C/AL9AAAFjabUbuRtyAADgNdi+3G4AAKIIIkVkc3bCG8QbyBvQAwCg+SJvAHQAAKD1Inag9CIAoPMiaaBiIOwhZGUpYesB1hsAANkbYwB5AFZkbAA7gO8A70AAA2NmbW9zdeYb7hvyG/Ub+hsFHAABaXnqG+0bcgBjADVhOWRyAADgNdgn3eEhdGg3YnAAZgAA4DXYW93jAf8bAAADHHIAAOA12L/c8iFjeVhk6yFjeVRkAARhY2ZnaGpvcxUcGhwiHCYcKhwtHDAcNRzwIXBhdqC6A/BjAAFleR4cIRzkIWlsN2E6ZHIAAOA12CjdciJlZW4AOGFjAHkARWRjAHkAXGRwAGYAAOA12FzdYwByAADgNdjA3IALQUJFSGFiY2RlZmdoamxtbm9wcnN0dXYAXhxtHHEcdRx5HN8cBx0dHTwd3B3tHfEdAR4EHh0eLB5FHrwewx7hHgkfPR9LH4ABYXJ0AGQcZxxpHHIA8gBvB/IAxQLhIWlsAKAbKeEhcnIAoA4pZ6BmIgCgiyphAHIAAKBiKWMJjRwAAJAcAACVHAAAAAAAAAAAAACZHJwcAACmHKgcrRwAANIc9SF0ZTph7SJwdHl2AKC0KXIAYQDuAFoG4iFkYbtjZwAAoegnZGyhHKMcAKCRKeUAiwYAoIUqdQBvADuAqwCrQHIAgKOQIWJmaGxwc3QAuhy/HMIcxBzHHMoczhxmoOQhcwAAoB8pcwAAoB0p6wCyGnAAAKCrIWwAAKA5KWkAbQAAoHMpbAAAoKIhAKGrKmFl1hzaHGkAbAAAoBkpc6CtKgDgrSoA/oABYWJyAOUc6RztHHIAcgAAoAwpcgBrAACgcicAAWFr8Rz4HGMAAAFla/Yc9xx7YFtgAAFlc/wc/hwAoIspbAAAAWR1Ax0FHQCgjykAoI0pAAJhZXV5Dh0RHRodHB3yIW9uPmEAAWRpFR0YHWkAbAA8YewAowbiAPccO2QAAmNxcnMkHScdLB05HWEAAKA2KXUAbwDyoBwgqhEAAWR1MB00HeghYXIAoGcpcyJoYXIAAKBLKWgAAKCyIQCiZCJmZ3FzRB1FB5Qdnh10AIACYWhscnQATh1WHWUdbB2NHXIicm93AHSgkCFhAOkAzxxhI3Jwb29uAAABZHVeHWId7yF3bgCgvSFwAACgvCHlJGZ0YXJyb3dzAKDHIWkiZ2h0AIABYWhzAHUdex2DHXIicm93APOglCGdBmEAcgBwAG8AbwBuAPMAzgtxAHUAaQBnAGEAcgByAG8A9wBlGugkcmVldGltZXMAoMsi8aFkIk0HAACaHWwAYQBuAPQAXgcAon0qY2Rnc6YdqR2xHbcdYwAAoKgqbwB0AG+gfypyoIEqAKCDKmXg2iIA/nMAAKCTKoACYWRlZ3MAwB3GHcod1h3ZHXAAcAByAG8A+ACmHG8AdAAAoNYicQAAAWdxzx3SHXQA8gBGB2cAdADyAHQcdADyAFMHaQDtAGMHgAFpbHIA4h3mHeod8yFodACgfClvAG8A8gDKBgDgNdgp3UWgdiIAoJEqYQH1Hf4dcgAAAWR1YB35HWygvCEAoGopbABrAACghCVjAHkAWWQAomoiYWNodAweDx4VHhkecgDyAGsdbwByAG4AZQDyAGAW4SFyZACgaylyAGkAAKD6JQABaW8hHiQe5CFvdEBh9SFzdGGgsCPjIWhlAKCwIwACRWFlczMeNR48HkEeAKBoInAAcKCJKvIhb3gAoIkqcaCHKvGghyo0HmkAbQAAoOYiAARhYm5vcHR3elIeXB5fHoUelh6mHqsetB4AAW5yVh5ZHmcAAKDsJ3IAAKD9IXIA6wCwBmcAgAFsbXIAZh52Hnse5SFmdAABYXKIB2weaQBnAGgAdABhAHIAcgBvAPcAkwfhInBzdG8AoPwnaQBnAGgAdABhAHIAcgBvAPcAmgdwI2Fycm93AAABbHKNHpEeZQBmAPQAxhxpImdodAAAoKwhgAFhZmwAnB6fHqIecgAAoIUpAOA12F3ddQBzAACgLSppIm1lcwAAoDQqYQGvHrMecwB0AACgFyLhAIoOZaHKJbkeRhLuIWdlAKDKJWEAcgBsoCgAdAAAoJMpgAJhY2htdADMHs8e1R7bHt0ecgDyAJ0GbwByAG4AZQDyANYWYQByAGSgyyEAoG0pAKAOIHIAaQAAoL8iAANhY2hpcXTrHu8e1QfzHv0eBh/xIXVvAKA5IHIAAOA12MHcbQDloXIi+h4AAPweAKCNKgCgjyoAAWJ19xwBH28AcqAYIACgGiDyIW9rQmEAhDwAO2NkaGlscXJCBhcfxh0gHyQfKB8sHzEfAAFjaRsfHR8AoKYqcgAAoHkqcgBlAOUAkx3tIWVzAKDJIuEhcnIAoHYpdSJlc3QAAKB7KgABUGk1HzkfYQByAACglillocMlAgdfEnIAAAFkdUIfRx9zImhhcgAAoEop6CFhcgCgZikAAWVuTx9WH3IjdG5lcXEAAOBoIgD+xQBUHwAHRGFjZGVmaGlsbm9wc3VuH3Ifoh+rH68ftx+7H74f5h/uH/MfBwj/HwsgxCFvdACgOiIAAmNscHJ5H30fiR+eH3IAO4CvAK9AAAFldIEfgx8AoEImZaAgJ3MAZQAAoCAnc6CmIXQAbwCAoaYhZGx1AJQfmB+cH28AdwDuAHkDZQBmAPQA6gbwAOkO6yFlcgCgriUAAW95ph+qH+0hbWEAoCkqPGThIXNoAKAUIOElc3VyZWRhbmdsZQCgISJyAADgNdgq3W8AAKAnIYABY2RuAMQfyR/bH3IAbwA7gLUAtUBhoiMi0B8AANMf1x9zAPQAKxFpAHIAAKDwKm8AdAA7gLcAt0B1AHMA4qESIh4TAADjH3WgOCIAoCoqYwHqH+0fcAAAoNsq8gB+GnAAbAB1APMACAgAAWRw9x/7H+UhbHMAoKciZgAA4DXYXt0AAWN0AyAHIHIAAOA12MLc8CFvcwCgPiJsobwDECAVIPQiaW1hcACguCJhAPAAEyAADEdMUlZhYmNkZWZnaGlqbG1vcHJzdHV2dzwgRyBmIG0geSCqILgg2iDeIBEhFSEyIUMhTSFQIZwhnyHSIQAiIyKLIrEivyIUIwABZ3RAIEMgAODZIjgD9uBrItIgBwmAAWVsdABNIF8gYiBmAHQAAAFhclMgWCByInJvdwAAoM0h6SRnaHRhcnJvdwCgziEA4NgiOAP24Goi0iBfCekkZ2h0YXJyb3cAoM8hAAFEZHEgdSDhIXNoAKCvIuEhc2gAoK4igAJiY25wdACCIIYgiSCNIKIgbABhAACgByL1IXRlRGFnAADgICLSIACiSSJFaW9wlSCYIJwgniAA4HAqOANkAADgSyI4A3MASWFyAG8A+AAyCnUAcgBhoG4mbADzoG4mmwjzAa8gAACzIHAAO4CgAKBAbQBwAOXgTiI4AyoJgAJhZW91eQDBIMogzSDWINkg8AHGIAAAyCAAoEMqbwBuAEhh5CFpbEZhbgBnAGSgRyJvAHQAAOBtKjgDcAAAoEIqPWThIXNoAKATIACjYCJBYWRxc3jpIO0g+SD+IAIhDCFyAHIAAKDXIXIAAAFocvIg9SBrAACgJClvoJch9wAGD28AdAAA4FAiOAN1AGkA9gC7CAABZWkGIQohYQByAACgKCntAN8I6SFzdPOgBCLlCHIAAOA12CvdAAJFZXN0/wgcISshLiHxoXEiIiEAABMJ8aFxIgAJAAAnIWwAYQBuAPQAEwlpAO0AGQlyoG8iAKBvIoABQWFwADghOyE/IXIA8gBeIHIAcgAAoK4hYQByAACg8ipzogsiSiEAAAAAxwtkoPwiAKD6ImMAeQBaZIADQUVhZGVzdABcIV8hYiFmIWkhkyGWIXIA8gBXIADgZiI4A3IAcgAAoJohcgAAoCUggKFwImZxcwBwIYQhjiF0AAABYXJ1IXohcgByAG8A9wBlIWkAZwBoAHQAYQByAHIAbwD3AD4h8aFwImAhAACKIWwAYQBuAPQAZwlz4H0qOAMAoG4iaQDtAG0JcqBuImkA5aDqIkUJaQDkADoKAAFwdKMhpyFmAADgNdhf3YCBrAA7aW4AriGvIcchrEBuAIChCSJFZHYAtyG6Ib8hAOD5IjgDbwB0AADg9SI4A+EB1gjEIcYhAKD3IgCg9iJpAHagDCLhAagJzyHRIQCg/iIAoP0igAFhb3IA2CHsIfEhcgCAoSYiYXN0AOAh5SHpIWwAbABlAOwAywhsAADg/SrlIADgAiI4A2wiaW50AACgFCrjoYAi9yEAAPohdQDlAJsJY+CvKjgDZaCAIvEAkwkAAkFhaXQHIgoiFyIeInIA8gBsIHIAcgAAoZshY3cRIhQiAOAzKTgDAOCdITgDZyRodGFycm93AACgmyFyAGkA5aDrIr4JgANjaGltcHF1AC8iPCJHIpwhTSJQIloigKGBImNlcgA2Iv0JOSJ1AOUABgoA4DXYw9zvIXJ0bQKdIQAAAABEImEAcgDhAOEhbQBloEEi8aBEIiYKYQDyAMsIcwB1AAABYnBWIlgi5QDUCeUA3wmAAWJjcABgInMieCKAoYQiRWVzAGci7glqIgDgxSo4A2UAdABl4IIi0iBxAPGgiCJoImMAZaCBIvEA/gmAoYUiRWVzAH8iFgqCIgDgxio4A2UAdABl4IMi0iBxAPGgiSKAIgACZ2lscpIilCKaIpwi7AAMCWwAZABlADuA8QDxQOcAWwlpI2FuZ2xlAAABbHKkIqoi5SFmdGWg6iLxAEUJaSJnaHQAZaDrIvEAvgltoL0DAKEjAGVzuCK8InIAbwAAoBYhcAAAoAcggARESGFkZ2lscnMAziLSItYi2iLeIugi7SICIw8j4SFzaACgrSLhIXJyAKAEKXAAAOBNItIg4SFzaACgrCIAAWV04iLlIgDgZSLSIADgPgDSIG4iZmluAACg3imAAUFldADzIvci+iJyAHIAAKACKQDgZCLSIHLgPADSIGkAZQAA4LQi0iAAAUF0BiMKI3IAcgAAoAMp8iFpZQDgtSLSIGkAbQAA4Dwi0iCAAUFhbgAaIx4jKiNyAHIAAKDWIXIAAAFociMjJiNrAACgIylvoJYh9wD/DuUhYXIAoCcpUxJqFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVCMAAF4jaSN/I4IjjSOeI8AUAAAAAKYjwCMAANoj3yMAAO8jHiQvJD8kRCQAAWNzVyNsFHUAdABlADuA8wDzQAABaXlhI2cjcgBjoJoiO4D0APRAPmSAAmFiaW9zAHEjdCN3I3EBeiNzAOgAdhTsIWFjUWF2AACgOCrvIWxkAKC8KewhaWdTYQABY3KFI4kjaQByAACgvykA4DXYLN1vA5QjAAAAAJYjAACcI24A22JhAHYAZQA7gPIA8kAAoMEpAAFibaEjjAphAHIAAKC1KQACYWNpdKwjryO6I70jcgDyAFkUAAFpcrMjtiNyAACgvinvIXNzAKC7KW4A5QDZCgCgwCmAAWFlaQDFI8gjyyNjAHIATWFnAGEAyWOAAWNkbgDRI9Qj1iPyIW9uv2MAoLYpdQDzAHgBcABmAADgNdhg3YABYWVsAOQj5yPrI3IAAKC3KXIAcAAAoLkpdQDzAHwBAKMoImFkaW9zdvkj/CMPJBMkFiQbJHIA8gBeFIChXSplZm0AAyQJJAwkcgBvoDQhZgAAoDQhO4CqAKpAO4C6ALpA5yFvZgCgtiJyAACgVipsIm9wZQAAoFcqAKBbKoABY2xvACMkJSQrJPIACCRhAHMAaAA7gPgA+EBsAACgmCJpAGwBMyQ4JGQAZQA7gPUA9UBlAHMAYaCXInMAAKA2Km0AbAA7gPYA9kDiIWFyAKA9I+EKXiQAAHokAAB8JJQkAACYJKkkAAAAALUkEQsAAPAkAAAAAAQleiUAAIMlcgCAoSUiYXN0AGUkbyQBCwCBtgA7bGokayS2QGwAZQDsABgDaQJ1JAAAAAB4JG0AAKDzKgCg/Sp5AD9kcgCAAmNpbXB0AIUkiCSLJJkSjyRuAHQAJWBvAGQALmBpAGwAAKAwIOUhbmsAoDEgcgAA4DXYLd2AAWltb
vendor: 7,217 bytes, line 1303
1303wCdJKAkpCR2oMYD1WNtAGEA9AD+B24AZQAAoA4m9KHAA64kAAC0JGMjaGZvcmsAAKDUItZjAAFhdbgkxCRuAAABY2u9JMIkawBooA8hAKAOIfYAaRpzAACkKwBhYmNkZW1zdNMkIRPXJNsk4STjJOck6yTjIWlyAKAjKmkAcgAAoCIqAAFvdYsW3yQAoCUqAKByKm4AO4CxALFAaQBtAACgJip3AG8AAKAnKoABaXB1APUk+iT+JO4idGludACgFSpmAADgNdhh3W4AZAA7gKMAo0CApHoiRWFjZWlub3N1ABMlFSUYJRslTCVRJVklSSV1JQCgsypwAACgtyp1AOUAPwtjoK8qgKJ6ImFjZW5zACclLSU0JTYlSSVwAHAAcgBvAPgAFyV1AHIAbAB5AGUA8QA/C/EAOAuAAWFlcwA8JUElRSXwInByb3gAoLkqcQBxAACgtSppAG0AAKDoImkA7QBEC20AZQDzoDIgIguAAUVhcwBDJVclRSXwAEAlgAFkZnAATwtfJXElgAFhbHMAZSVpJW0l7CFhcgCgLiPpIW5lAKASI/UhcmYAoBMjdKAdIu8AWQvyIWVsAKCwIgABY2l9JYElcgAA4DXYxdzIY24iY3NwAACgCCAAA2Zpb3BzdZElKxuVJZolnyWkJXIAAOA12C7dcABmAADgNdhi3XIiaW1lAACgVyBjAHIAAOA12MbcgAFhZW8AqiW6JcAldAAAAWVpryW2JXIAbgBpAG8AbgDzABkFbgB0AACgFipzAHQAZaA/APEACRj0AG0LgApBQkhhYmNkZWZoaWxtbm9wcnN0dXgA4yXyJfYl+iVpJpAmpia9JtUm5ib4JlonaCdxJ3UnnietJ7EnyCfiJ+cngAFhcnQA6SXsJe4lcgDyAJkM8gD6AuEhaWwAoBwpYQByAPIA3BVhAHIAAKBkKYADY2RlbnFydAAGJhAmEyYYJiYmKyZaJgABZXUKJg0mAOA9IjEDdABlAFVhaQDjACAN7SJwdHl2AKCzKWcAgKHpJ2RlbAAgJiImJCYAoJIpAKClKeUA9wt1AG8AO4C7ALtAcgAApZIhYWJjZmhscHN0dz0mQCZFJkcmSiZMJk4mUSZVJlgmcAAAoHUpZqDlIXMAAKAgKQCgMylzAACgHinrALka8ACVHmwAAKBFKWkAbQAAoHQpbAAAoKMhAKCdIQABYWleJmImaQBsAACgGilvAG6gNiJhAGwA8wB2C4ABYWJyAG8mciZ2JnIA8gAvEnIAawAAoHMnAAFha3omgSZjAAABZWt/JoAmfWBdYAABZXOFJocmAKCMKWwAAAFkdYwmjiYAoI4pAKCQKQACYWV1eZcmmiajJqUm8iFvbllhAAFkaZ4moSZpAGwAV2HsAA8M4gCAJkBkAAJjbHFzrSawJrUmuiZhAACgNylkImhhcgAAoGkpdQBvAPKgHSCjAWgAAKCzIYABYWNnAMMm0iaUC2wAgKEcIWlwcwDLJs4migxuAOUAoAxhAHIA9ADaC3QAAKCtJYABaWxyANsm3ybjJvMhaHQAoH0pbwBvAPIANgwA4DXYL90AAWFv6ib1JnIAAAFkde8m8SYAoMEhbKDAIQCgbCl2oMED8WOAAWducwD+Jk4nUCdoAHQAAANhaGxyc3QKJxInISc1Jz0nRydyInJvdwB0oJIhYQDpAFYmYSNycG9vbgAAAWR1GiceJ28AdwDuAPAmcAAAoMAh5SFmdAABYWgnJy0ncgByAG8AdwDzAAkMYQByAHAAbwBvAG4A8wATBGklZ2h0YXJyb3dzAACgySFxAHUAaQBnAGEAcgByAG8A9wBZJugkcmVldGltZXMAoMwiZwDaYmkAbgBnAGQAbwB0AHMAZQDxABwYgAFhaG0AYCdjJ2YncgDyAAkMYQDyABMEAKAPIG8idXN0AGGgsSPjIWhlAKCxI+0haWQAoO4qAAJhYnB0fCeGJ4knmScAAW5ygCeDJ2cAAKDtJ3IAAKD+IXIA6wAcDIABYWZsAI8nkieVJ3IAAKCGKQDgNdhj3XUAcwAAoC4qaSJtZXMAAKA1KgABYXCiJ6gncgBnoCkAdAAAoJQp7yJsaW50AKASKmEAcgDyADwnAAJhY2hxuCe8J6EMwCfxIXVvAKA6IHIAAOA12MfcAAFidYAmxCdvAPKgGSCoAYABaGlyAM4n0ifWJ3IAZQDlAE0n7SFlcwCgyiJpAIChuSVlZmwAXAxjEt4n9CFyaQCgzinsInVoYXIAoGgpAKAeIWENBSgJKA0oSyhVKIYoAACLKLAoAAAAAOMo5ygAABApJCkxKW0pcSmHKaYpAACYKgAAAACxKmMidXRlAFthcQB1AO8ABR+ApHsiRWFjZWlucHN5ABwoHignKCooLygyKEEoRihJKACgtCrwASMoAAAlKACguCpvAG4AYWF1AOUAgw1koLAqaQBsAF9hcgBjAF1hgAFFYXMAOCg6KD0oAKC2KnAAAKC6KmkAbQAAoOki7yJsaW50AKATKmkA7QCIDUFkbwB0AGKixSKRFgAAAABTKACgZiqAA0FhY21zdHgAYChkKG8ocyh1KHkogihyAHIAAKDYIXIAAAFocmkoayjrAJAab6CYIfcAzAd0ADuApwCnQGkAO2D3IWFyAKApKW0AAAFpbn4ozQBuAHUA8wDOAHQAAKA2J3IA7+A12DDdIxkAAmFjb3mRKJUonSisKHIAcAAAoG8mAAFoeZkonChjAHkASWRIZHIAdABtAqUoAAAAAKgoaQDkAFsPYQByAGEA7ABsJDuArQCtQAABZ22zKLsobQBhAAChwwNmdroouijCY4CjPCJkZWdsbnByAMgozCjPKNMo1yjaKN4obwB0AACgairxoEMiCw5FoJ4qAKCgKkWgnSoAoJ8qZQAAoEYi7CF1cwCgJCrhIXJyAKByKWEAcgDyAPwMAAJhZWl07Sj8KAEpCCkAAWxz8Sj4KGwAcwBlAHQAbQDpAH8oaABwAACgMyrwImFyc2wAoOQpAAFkbFoPBSllAACgIyNloKoqc6CsKgDgrCoA/oABZmxwABUpGCkfKfQhY3lMZGKgLwBhoMQpcgAAoD8jZgAA4DXYZN1hAAABZHIoKRcDZQBzAHWgYCZpAHQAAKBgJoABY3N1ADYpRilhKQABYXU6KUApcABzoJMiAOCTIgD+cABzoJQiAOCUIgD+dQAAAWJwSylWKQChjyJlcz4NUCllAHQAZaCPIvEAPw0AoZAiZXNIDVspZQB0AGWgkCLxAEkNAKGhJWFmZilbBHIAZQFrKVwEAKChJWEAcgDyAAMNAAJjZW10dyl7KX8pgilyAADgNdjI3HQAbQDuAM4AaQDsAAYpYQByAOYAVw0AAWFyiimOKXIA5qAGJhESAAFhbpIpoylpImdodAAAAWVwmSmgKXAAcwBpAGwAbwDuANkXaADpAKAkcwCvYIACYmNtbnAArin8KY4NJSooKgCkgiJFZGVtbnByc7wpvinCKcgpzCnUKdgp3CkAoMUqbwB0AACgvSpkoIYibwB0AACgwyr1IWx0AKDBKgABRWXQKdIpAKDLKgCgiiLsIXVzAKC/KuEhcnIAoHkpgAFlaXUA4inxKfQpdAAAoYIiZW7oKewpcQDxoIYivSllAHEA8aCKItEpbQAAoMcqAAFicPgp+ikAoNUqAKDTKmMAgKJ7ImFjZW5zAAcqDSoUKhYqRihwAHAAcgBvAPgAIyh1AHIAbAB5AGUA8QCDDfEAfA2AAWFlcwAcKiIqPShwAHAAcgBvAPgAPChxAPEAOShnAACgaiYApoMiMTIzRWRlaGxtbnBzPCo/KkIqRSpHKlIqWCpjKmcqaypzKncqO4C5ALlAO4CyALJAO4CzALNAAKDGKgABb3NLKk4qdAAAoL4qdQBiAACg2CpkoIcibwB0AACgxCpzAAABb3VdKmAqbAAAoMknYgAAoNcq4SFycgCgeyn1IWx0AKDCKgABRWVvKnEqAKDMKgCgiyLsIXVzAKDAKoABZWl1AH0qjCqPKnQAAKGDImVugyqHKnEA8aCHIkYqZQBxAPGgiyJwKm0AAKDIKgABYnCTKpUqAKDUKgCg1iqAAUFhbgCdKqEqrCpyAHIAAKDZIXIAAAFocqYqqCrrAJUab6CZIfcAxQf3IWFyAKAqKWwAaQBnADuA3wDfQOELzyrZKtwq6SrsKvEqAAD1KjQrAAAAAAAAAAAAAEwrbCsAAHErvSsAAAAAAADRK3IC1CoAAAAA2CrnIWV0AKAWI8RjcgDrAOUKgAFhZXkA4SrkKucq8iFvbmVh5CFpbGNhQmRvAPQAIg5sInJlYwAAoBUjcgAA4DXYMd0AAmVpa2/7KhIrKCsuK/IBACsAAAkrZQAAATRm6g0EK28AcgDlAOsNYQBzorgDECsAAAAAEit5AG0A0WMAAWNuFislK2sAAAFhcxsrIStwAHAAcgBvAPgAFw5pAG0AAKA8InMA8AD9DQABYXMsKyEr8AAXDnIAbgA7gP4A/kDsATgrOyswG2QA5QBnAmUAcwCAgdcAO2JkAEMrRCtJK9dAYaCgInIAAKAxKgCgMCqAAWVwcwBRK1MraSvhAAkh4qKkIlsrXysAAAAAYytvAHQAAKA2I2kAcgAAoPEqb+A12GXdcgBrAACg2irhAHgociJpbWUAAKA0IIABYWlwAHYreSu3K2QA5QC+DYADYWRlbXBzdACFK6MrmiunK6wrsCuzK24iZ2xlAACitSVkbHFykCuUK5ornCvvIXduAKC/JeUhZnRloMMl8QACBwCgXCJpImdodABloLkl8QBdDG8AdAAAoOwlaSJudXMAAKA6KuwhdXMAoDkqYgAAoM0p6SFtZQCgOyrlInppdW0AoOIjgAFjaHQAwivKK80rAAFyecYrySsA4DXYydxGZGMAeQBbZPIhb2tnYQABaW/UK9creAD0ANERaCJlYWQAAAFsct4r5ytlAGYAdABhAHIAcgBvAPcAXQbpJGdodGFycm93AKCgIQAJQUhhYmNkZmdobG1vcHJzdHV3CiwNLBEsHSwnLDEsQCxLLFIsYix6LIQsjyzLLOgs7Sz/LAotcgDyAAkDYQByAACgYykAAWNyFSwbLHUAdABlADuA+gD6QPIACQ1yAOMBIywAACUseQBeZHYAZQBtYQABaXkrLDAscgBjADuA+wD7QENkgAFhYmgANyw6LD0scgDyANEO7CFhY3FhYQDyAOAOAAFpckQsSCzzIWh0AKB+KQDgNdgy3XIAYQB2AGUAO4D5APlAYQFWLF8scgAAAWxyWixcLACgvyEAoL4hbABrAACggCUAAWN0Zix2LG8CbCwAAAAAcyxyAG4AZaAcI3IAAKAcI28AcAAAoA8jcgBpAACg+CUAAWFsfiyBLGMAcgBrYTuAqACoQAABZ3CILIssbwBuAHNhZgAA4DXYZt0AA2FkaGxzdZksniynLLgsuyzFLHIAcgBvAPcACQ1vAHcAbgBhAHIAcgBvAPcA2A5hI3Jwb29uAAABbHKvLLMsZQBmAPQAWyxpAGcAaAD0AF0sdQDzAKYOaQAAocUDaGzBLMIs0mNvAG4AxWPwI2Fycm93cwCgyCGAAWNpdADRLOEs5CxvAtcsAAAAAN4scgBuAGWgHSNyAACgHSNvAHAAAKAOI24AZwBvYXIAaQAAoPklYwByAADgNdjK3IABZGlyAPMs9yz6LG8AdAAAoPAi7CFkZWlhaQBmoLUlAKC0JQABYW0DLQYtcgDyAMosbAA7gPwA/EDhIm5nbGUAoKcpgAdBQkRhY2RlZmxub3Byc3oAJy0qLTAtNC2bLZ0toS2/LcMtxy3TLdgt3C3gLfwtcgDyABADYQByAHag6CoAoOkqYQBzAOgA/gIAAW5yOC08LechcnQAoJwpgANla25wcnN0AJkpSC1NLVQtXi1iLYItYQBwAHAA4QAaHG8AdABoAGkAbgDnAKEXgAFoaXIAoSmzJFotbwBwAPQAdCVooJUh7wD4JgABaXVmLWotZwBtAOEAuygAAWJwbi14LXMjZXRuZXEAceCKIgD+AODLKgD+cyNldG5lcQBx4IsiAP4A4MwqAP4AAWhyhi2KLWUAdADhABIraSNhbmdsZQAAAWxyki2WLeUhZnQAoLIiaSJnaHQAAKCzInkAMmThIXNoAKCiIoABZWxyAKcttC24LWKiKCKuLQAAAACyLWEAcgAAoLsicQAAoFoi7CFpcACg7iIAAWJ0vC1eD2EA8gBfD3IAAOA12DPddAByAOkAlS1zAHUAAAFicM0t0C0A4IIi0iAA4IMi0iBwAGYAAOA12GfdcgBvAPAAWQt0AHIA6QCaLQABY3XkLegtcgAA4DXYy9wAAWJw7C30LW4AAAFFZXUt8S0A4IoiAP5uAAABRWV/LfktAOCLIgD+6SJnemFnAKCaKYADY2Vmb3BycwANLhAuJS4pLiMuLi40LukhcmN1YQABZGkULiEuAAFiZxguHC5hAHIAAKBfKmUAcaAnIgCgWSLlIXJwAKAYIXIAAOA12DTdcABmAADgNdho3WWgQCJhAHQA6ABqD2MAcgAA4DXYzNzjCuQRUC4AAFQuAABYLmIuAAAAAGMubS5wLnQuAAAAAIguki4AAJouJxIqEnQAcgDpAB0ScgAA4DXYNd0AAUFhWy5eLnIA8gDnAnIA8gCTB75jAAFBYWYuaS5yAPIA4AJyAPIAjAdhAPAAeh5pAHMAAKD7IoABZHB0APgReS6DLgABZmx9LoAuAOA12GnddQDzAP8RaQBtAOUABBIAAUFhiy6OLnIA8gDuAnIA8gCaBwABY3GVLgoScgAA4DXYzdwAAXB0nS6hLmwAdQDzACUScgDpACASAARhY2VmaW9zdbEuvC7ELsguzC7PLtQu2S5jAAABdXm2LrsudABlADuA/QD9QE9kAAFpecAuwy5yAGMAd2FLZG4AO4ClAKVAcgAA4DXYNt1jAHkAV2RwAGYAAOA12GrdYwByAADgNdjO3AABY23dLt8ueQBOZGwAO4D/AP9AAAVhY2RlZmhpb3N38y73Lv8uAi8MLxAvEy8YLx0vIi9jInV0ZQB6YQABYXn7Lv4u8iFvbn5hN2RvAHQAfGEAAWV0Bi8KL3QAcgDmAB8QYQC2Y3IAAOA12DfdYwB5ADZk5yJyYXJyAKDdIXAAZgAA4DXYa91jAHIAAOA12M/cAAFqbiYvKC8AoA0gagAAoAwg")
1303;function ed(N){return(ed="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(N){return typeof N}:function(N){return N&&"function"==typeof Symbol&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N})(N)}function ef(N,I){if("object"!=ed(N)||!N)return N;var T=N[Symbol.toPrimitive];if(void 0!==T){var P=T.call(N,I||"default");if("object"!=ed(P))return P;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===I?String:Number)(N)}function eh(N){var I=ef(N,"string");return"symbol"==ed(I)?I:I+""}function ep(N,I,T){return(I=eh(I))in N?Object.defineProperty(N,I,{value:T,enumerable:!0,configurable:!0,writable:!0}):N[I]=T,N}(M=W||(W={}))[M.VALUE_LENGTH=49152]="VALUE_LENGTH",M[M.FLAG13=8192]="FLAG13",M[M.BRANCH_LENGTH=8064]="BRANCH_LENGTH",M[M.JUMP_TABLE=127]="JUMP_TABLE",(R=q||(q={}))[R.NUM=35]="NUM",R[R.SEMI=59]="SEMI",R[R.EQUALS=61]="EQUALS",R[R.ZERO=48]="ZERO",R[R.NINE=57]="NINE",R[R.LOWER_A=97]="LOWER_A",R[R.LOWER_F=102]="LOWER_F",R[R.LOWER_X=120]="LOWER_X",R[R.LOWER_Z=122]="LOWER_Z",R[R.UPPER_A=65]="UPPER_A",R[R.UPPER_F=70]="UPPER_F",R[R.UPPER_Z=90]="UPPER_Z";let em=32;function eg(N){return N>=q.ZERO&&N<=q.NINE}function ey(N){return N>=q.UPPER_A&&N<=q.UPPER_F||N>=q.LOWER_A&&N<=q.LOWER_F}function eb(N){return N>=q.UPPER_A&&N<=q.UPPER_Z||N>=q.LOWER_A&&N<=q.LOWER_Z||eg(N)}function ev(N){return N===q.EQUALS||eb(N)}(L=G||(G={}))[L.EntityStart=0]="EntityStart",L[L.NumericStart=1]="NumericStart",L[L.NumericDecimal=2]="NumericDecimal",L[L.NumericHex=3]="NumericHex",L[L.NamedEntity=4]="NamedEntity",($=K||(K={}))[$.Legacy=0]="Legacy",$[$.Strict=1]="Strict",$[$.Attribute=2]="Attribute";var ew=class{constructor(N,I,T){ep(this,"decodeTree",void 0),ep(this,"emitCodePoint",void 0),ep(this,"errors",void 0),ep(this,"state",G.EntityStart),ep(this,"consumed",1),ep(this,"result",0),ep(this,"treeIndex",0),ep(this,"excess",1),ep(this,"decodeMode",K.Strict),ep(this,"runConsumed",0),this.decodeTree=N,this.emitCodePoint=I,this.errors=T}startEntity(N){this.decodeMode=N,this.state=G.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(N,I){switch(this.state){case G.EntityStart:if(N.charCodeAt(I)===q.NUM)return this.state=G.NumericStart,this.consumed+=1,this.stateNumericStart(N,I+1);return this.state=G.NamedEntity,this.stateNamedEntity(N,I);case G.NumericStart:return this.stateNumericStart(N,I);case G.NumericDecimal:return this.stateNumericDecimal(N,I);case G.NumericHex:return this.stateNumericHex(N,I);case G.NamedEntity:return this.stateNamedEntity(N,I)}}stateNumericStart(N,I){return I>=N.length?-1:(N.charCodeAt(I)|em)===q.LOWER_X?(this.state=G.NumericHex,this.consumed+=1,this.stateNumericHex(N,I+1)):(this.state=G.NumericDecimal,this.stateNumericDecimal(N,I))}stateNumericHex(N,I){for(;I<N.length;){let T=N.charCodeAt(I);if(!(eg(T)||ey(T)))return this.emitNumericEntity(T,3);{let N=T<=q.NINE?T-q.ZERO:(T|em)-q.LOWER_A+10;this.result=16*this.result+N,this.consumed++,I++}}return -1}stateNumericDecimal(N,I){for(;I<N.length;){let T=N.charCodeAt(I);if(!eg(T))return this.emitNumericEntity(T,2);this.result=10*this.result+(T-q.ZERO),this.consumed++,I++}return -1}emitNumericEntity(N,I){if(this.consumed<=I){var T;return null==(T=this.errors)||T.absenceOfDigitsInNumericCharacterReference(this.consumed),0}if(N===q.SEMI)this.consumed+=1;else if(this.decodeMode===K.Strict)return 0;return this.emitCodePoint(ec(this.result),this.consumed),this.errors&&(N!==q.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(N,I){let{decodeTree:T}=this,P=T[this.treeIndex],D=(P&W.VALUE_LENGTH)>>14;for(;I<N.length;){if(0===D&&(P&W.FLAG13)!=0){let M=(P&W.BRANCH_LENGTH)>>7;if(0===this.runConsumed){let T=P&W.JUMP_TABLE;if(N.charCodeAt(I)!==T)return 0===this.result?0:this.emitNotTerminatedNamedEntity();I++,this.excess++,this.runConsumed++}for(;this.runConsumed<M;){if(I>=N.length)return -1;let P=this.runConsumed-1,D=T[this.treeIndex+1+(P>>1)],M=P%2==0?255&D:D>>8&255;if(N.charCodeAt(I)!==M)return this.runConsumed=0,0===this.result?0:this.emitNotTerminatedNamedEntity();I++,this.excess++,this.runConsumed++}this.runConsumed=0,this.treeIndex+=1+(M>>1),D=((P=T[this.treeIndex])&W.VALUE_LENGTH)>>14}if(I>=N.length)break;let M=N.charCodeAt(I);if(M===q.SEMI&&0!==D&&(P&W.FLAG13)!=0)return this.emitNamedEntityData(this.treeIndex,D,this.consumed+this.excess);if(this.treeIndex=ex(T,P,this.treeIndex+Math.max(1,D),M),this.treeIndex<0)return 0===this.result||this.decodeMode===K.Attribute&&(0===D||ev(M))?0:this.emitNotTerminatedNamedEntity();if(0!=(D=((P=T[this.treeIndex])&W.VALUE_LENGTH)>>14)){if(M===q.SEMI)return this.emitNamedEntityData(this.treeIndex,D,this.consumed+this.excess);this.decodeMode!==K.Strict&&(P&W.FLAG13)==0&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}I++,this.excess++}return -1}emitNotTerminatedNamedEntity(){var N;let{result:I,decodeTree:T}
1303=this,P=(T[I]&W.VALUE_LENGTH)>>14;return this.emitNamedEntityData(I,P,this.consumed),null==(N=this.errors)||N.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(N,I,T){let{decodeTree:P}=this;return this.emitCodePoint(1===I?P[N]&~(W.VALUE_LENGTH|W.FLAG13):P[N+1],T),3===I&&this.emitCodePoint(P[N+2],T),T}end(){switch(this.state){case G.NamedEntity:return 0!==this.result&&(this.decodeMode!==K.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case G.NumericDecimal:return this.emitNumericEntity(0,2);case G.NumericHex:return this.emitNumericEntity(0,3);case G.NumericStart:var N;return null==(N=this.errors)||N.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case G.EntityStart:return 0}}};function ex(N,I,T,P){let D=(I&W.BRANCH_LENGTH)>>7,M=I&W.JUMP_TABLE;if(0===D)return 0!==M&&P===M?T:-1;if(M){let I=P-M;return I<0||I>=D?-1:N[T+I]-1}let R=D+1>>1,L=0,$=D-1;for(;L<=$;){let I=L+$>>>1,D=N[T+(I>>1)]>>(1&I)*8&255;if(D<P)L=I+1;else{if(!(D>P))return N[T+R+I];$=I-1}}return -1}let eA=(P="",D=new ew(eu,N=>P+=String.fromCodePoint(N)),function(N,I){let T=0,M=0;for(;(M=N.indexOf("&",M))>=0;){P+=N.slice(T,M),D.startEntity(I);let R=D.write(N,M+1);if(R<0){T=M+D.end();break}T=M+R,M=0===R?T+1:T}let R=P+N.slice(T);return P="",R});function eE(N,I=K.Legacy){return eA(N,I)}let eS=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),e_="function"==typeof String.prototype.codePointAt?(N,I)=>N.codePointAt(I):(N,I)=>(64512&N.charCodeAt(I))==55296?(N.charCodeAt(I)-55296)*1024+N.charCodeAt(I+1)-56320+65536:N.charCodeAt(I),ek=0x500000c4;function eC(N){let I,T=0,{length:P}=N;for(let D=0;D<P;D++){let P=N.charCodeAt(D);if(P<128&&((0x500000c4>>>P&1)==0||P>=64||P<32))continue;if(void 0===I?I=N.substring(0,D):T!==D&&(I+=N.substring(T,D)),P<64){I+=eS.get(P),T=D+1;continue}let M=e_(N,D);I+=`&#x${M.toString(16)};`,M!==P&&D++,T=D+1}return void 0===I?N:(T<P&&(I+=N.substr(T)),I)}function ej(N,I){return function(T){let P,D=0,M="";for(;P=N.exec(T);)D!==P.index&&(M+=T.substring(D,P.index)),M+=I.get(P[0].charCodeAt(0)),D=P.index+1;return M+T.substring(D)}}let eO=ej(/["&'<>]/g,eS),eN=ej(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),eI=ej(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),eT=function(N){let I=new Map,T=N.length,P=0,D=-1;function M(){let I=P;for(;P<T;){let I=N.charAt(P);if((I<"0"||I>"9")&&(I<"a"||I>"z"))break;P++}return P===I?0:Number.parseInt(N.slice(I,P),36)}function R(){if("&"!==N[P])throw Error(`Child entry missing value near index ${P}`);let I=P,T=N.indexOf(";",P+1);if(-1===T)throw Error(`Unterminated entity starting at index ${I}`);return N.slice(I,P=T+1)}for(;P<T;){let L,$=M(),F=-1===D?$:D+$+1;if("&"===N[P]&&(L=R()),"{"===N[P]){P++;let D=M(),$=D,B=R();if("{"===N[P])throw Error("Unexpected nested '{' beyond depth 2");if("}"===N[P])I.set(F,{value:L,next:$,nextValue:B}),P++;else{let U=new Map([[$,B]]),H=$;for(;P<T&&"}"!==N[P];){$=H+(D=M())+1;let I=R();if("{"===N[P])throw Error("Unexpected nested '{' beyond depth 2");U.set($,I),H=$}if("}"!==N[P])throw Error("Unterminated child block");P++,I.set(F,{value:L,next:U})}}else if(void 0===L)throw Error(`Malformed encode trie: missing value at index ${P}`);else I.set(F,L);D=F}return I}("
vendor: 12,645 bytes, line 1303
13039	
m!"#$%&'()*+,1./a:;<{6he<⃒}={6hx=⃥}>{6he>⃒}?@q[\]^_`5{2yfj}k{|}y ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿĀāĂ㥹ĆćĈĉĊċČčĎďĐđĒē2ĖėĘęĚěĜĝĞğĠġĢ1ĤĥĦħĨĩĪī2ĮįİıIJijĴĵĶķĸĹĺĻļĽľĿŀŁłŃńŅņŇňʼnŊŋŌō2ŐőŒœŔŕŖŗŘřŚśŜŝŞşŠšŢţŤťŦŧŨũŪūŬŭŮůŰűŲųŴŵŶŷŸŹźŻżŽžjƒyƵ1rǵ1tȷ3yˆˇg˘˙˚˛˜˝1f̑3jΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ1ΣΤΥΦΧΨΩ7αβγδεζηθικλμνξοπρςστυφχψω7ϑϒ2ϕϖ5Ϝϝiϰϱ3ϵ϶aЁЂЃЄЅІЇЈЉЊЋЌ1ЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя1ёђѓєѕіїјљњћќ1ўџ5gi    1    ​‌‍‎‏‐2–—―‖1‘’‚1“”„1†‡•2‥…9‰‱′″‴‵3‹›3‾2⁁1⁃⁄a⁏7⁗7 {6bu  }⁠⁡⁢⁣20€1a⃛⃜11ℂ2℅4ℊℋℌℍℎℏℐℑℒℓ1ℕ№℗℘ℙℚℛℜℝ℞3™1ℤ2℧ℨ℩2ℬℭ1ℯℰℱ1ℳℴℵℶℷℸcⅅⅆⅇⅈa⅓⅔⅕⅖⅗⅘⅙⅚⅛⅜⅝⅞1d←↑→↓↔↕↖↗↘↙↚↛1↝{mw↝̸}↞↟↠↡↢↣↤↥↦↧1↩↪↫↬↭↮1↰↱↲↳1↵↶↷2↺↻↼↽↾↿⇀⇁⇂⇃⇄⇅⇆⇇⇈⇉⇊⇋⇌⇍⇎⇏⇐⇑⇒⇓⇔⇕⇖⇗⇘⇙⇚⇛1⇝6⇤⇥f⇵7⇽⇾⇿∀∁∂{mw∂̸}∃∄∅1∇∈∉1∋∌2∏∐∑−∓∔1∖∗∘1√2∝∞∟∠{6he∠⃒}∡∢∣∤∥∦∧∨∩{1e68∩︀}∪{1e68∪︀}∫∬∭∮∯∰∱∲∳∴∵∶∷∸1∺∻∼{6he∼⃒}∽{mp∽̱}∾{mr∾̳}∿≀≁≂{mw≂̸}≃≄≅≆≇≈≉≊≋{mw≋̸}≌≍{6he≍⃒}≎{mw≎̸}≏{mw≏̸}≐{mw≐̸}≑≒≓≔≕≖≗1≙≚1≜2≟≠≡{6hx≡⃥}≢1≤{6he≤⃒}≥{6he≥⃒}≦{mw≦̸}≧{mw≧̸}≨{1e68≨︀}≩{1e68≩︀}≪{mw≪̸5uh≪⃒}≫{mw≫̸5uh≫⃒}≬≭≮≯≰≱≲≳≴≵≶≷≸≹≺≻≼≽≾≿{mw≿̸}⊀⊁⊂{6he⊂⃒}⊃{6he⊃⃒}⊄⊅⊆⊇⊈⊉⊊{1e68⊊︀}⊋{1e68⊋︀}1⊍⊎⊏{mw⊏̸}⊐{mw⊐̸}⊑⊒⊓{1e68⊓︀}⊔{1e68⊔︀}⊕⊖⊗⊘⊙⊚⊛1⊝⊞⊟⊠⊡⊢⊣⊤⊥1⊧⊨⊩⊪⊫⊬⊭⊮⊯⊰1⊲⊳⊴{6he⊴⃒}⊵{6he⊵⃒}⊶⊷⊸⊹⊺⊻1⊽⊾⊿⋀⋁⋂⋃⋄⋅⋆⋇⋈⋉⋊⋋⋌⋍⋎⋏⋐⋑⋒⋓⋔⋕⋖⋗⋘{mw⋘̸}⋙{mw⋙̸}⋚{1e68⋚︀}⋛{1e68⋛︀}2⋞⋟⋠⋡⋢⋣2⋦⋧⋨⋩⋪⋫⋬⋭⋮⋯⋰⋱⋲⋳⋴⋵{mw⋵̸}⋶⋷1⋹{mw⋹̸}⋺⋻⋼⋽⋾6⌅⌆1⌈⌉⌊⌋⌌⌍⌎⌏⌐1⌒⌓1⌕⌖5⌜⌝⌞⌟2⌢⌣9⌭⌮7⌶6⌽1⌿1o⍼1f⎰⎱2⎴⎵⎶11⏜⏝⏞⏟2⏢4⏧1n␣4kⓈ1j─1│9┌3┐3└3┘3├7┤7┬7┴7┼j═║╒╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡╢╣╤╥╦╧╨╩╪╫╬j▀3▄3█8░▒▓d□8▪▫1▭▮2▱1△▴▵2▸▹3▽▾▿2◂◃6◊○w◬2◯8◸◹◺◻◼8★☆7☎1d♀1♂t♠2♣1♥♦3♪2♭♮♯4j✓3✗8✠l✶x❘p❲❳2c⟈⟉s⟦⟧⟨⟩⟪⟫⟬⟭7⟵⟶⟷⟸⟹⟺1⟼2⟿76⤂⤃⤄⤅6⤌⤍⤎⤏⤐⤑⤒⤓2⤖2⤙⤚⤛⤜⤝⤞⤟⤠2⤣⤤⤥⤦⤧⤨⤩⤪8⤳{mw⤳̸}1⤵⤶⤷⤸⤹2⤼⤽7⥅2⥈⥉⥊⥋2⥎⥏⥐⥑⥒⥓⥔⥕⥖⥗⥘⥙⥚⥛⥜⥝⥞⥟⥠⥡⥢⥣⥤⥥⥦⥧⥨⥩⥪⥫⥬⥭⥮⥯⥰⥱⥲⥳⥴⥵⥶1⥸⥹1⥻⥼⥽⥾⥿5⦅⦆4⦋⦌⦍⦎⦏⦐⦑⦒⦓⦔⦕⦖3⦚1⦜⦝6⦤⦥⦦⦧⦨⦩⦪⦫⦬⦭⦮⦯⦰⦱⦲⦳⦴⦵⦶⦷1⦹1⦻⦼1⦾⦿⧀⧁⧂⧃⧄⧅3⧉3⧍⧎⧏{mw⧏̸}⧐{mw⧐̸}b⧜⧝⧞4⧣⧤⧥5⧫8⧴1⧶9⨀⨁⨂1⨄1⨆5⨌⨍2⨐⨑⨒⨓⨔⨕⨖⨗a⨢⨣⨤⨥⨦⨧1⨩⨪2⨭⨮⨯⨰⨱1⨳⨴⨵⨶⨷⨸⨹⨺⨻⨼2⨿⩀1⩂⩃⩄⩅⩆⩇⩈⩉⩊⩋⩌⩍2⩐2⩓⩔⩕⩖⩗⩘1⩚⩛⩜⩝1⩟6⩦3⩪2⩭{mw⩭̸}⩮⩯⩰{mw⩰̸}⩱⩲⩳⩴⩵1⩷⩸⩹⩺⩻⩼⩽{mw⩽̸}⩾{mw⩾̸}⩿⪀⪁⪂⪃⪄⪅⪆⪇⪈⪉⪊⪋⪌⪍⪎⪏⪐⪑⪒⪓⪔⪕⪖⪗⪘⪙⪚2⪝⪞⪟⪠⪡{mw⪡̸}⪢{mw⪢̸}1⪤⪥⪦⪧⪨⪩⪪⪫⪬{1e68⪬︀}⪭{1e68⪭︀}⪮⪯{mw⪯̸}⪰{mw⪰̸}2⪳⪴⪵⪶⪷⪸⪹⪺⪻⪼⪽⪾⪿⫀⫁⫂⫃⫄⫅{mw⫅̸}⫆{mw⫆̸}⫇⫈2⫋{1e68⫋︀}⫌{1e68⫌︀}2⫏⫐⫑⫒⫓⫔⫕⫖⫗⫘⫙⫚⫛8⫤1⫦⫧⫨⫩1⫫⫬⫭⫮⫯⫰⫱⫲⫳9⫽{6hx⫽⃥}y7r{17ks𝒜1𝒞𝒟2𝒢2𝒥𝒦2𝒩𝒪𝒫𝒬1𝒮𝒯𝒰𝒱𝒲𝒳𝒴𝒵𝒶𝒷𝒸𝒹1𝒻1𝒽𝒾𝒿𝓀𝓁𝓂𝓃1𝓅𝓆𝓇𝓈𝓉𝓊𝓋𝓌𝓍𝓎𝓏1g𝔄𝔅1𝔇𝔈𝔉𝔊2𝔍𝔎𝔏𝔐𝔑𝔒𝔓𝔔1𝔖𝔗𝔘𝔙𝔚𝔛𝔜1𝔞𝔟𝔠𝔡𝔢𝔣𝔤𝔥𝔦𝔧𝔨𝔩𝔪𝔫𝔬𝔭𝔮𝔯𝔰𝔱𝔲𝔳𝔴𝔵𝔶𝔷𝔸𝔹1𝔻𝔼𝔽𝔾1𝕀𝕁𝕂𝕃𝕄1𝕆3𝕊𝕋𝕌𝕍𝕎𝕏𝕐1𝕒𝕓𝕔𝕕𝕖𝕗𝕘𝕙𝕚𝕛𝕜𝕝𝕞𝕟𝕠𝕡𝕢𝕣𝕤𝕥𝕦𝕧𝕨𝕩𝕪𝕫}6vefffiflffiffl
1303"),eP=new Uint32Array([5632,0xfc00fffe,0xf8000001,0x38000001]),eD=new Uint32Array([0,ek,0,0]);function eM(N){return eL(eP,N)}function eR(N){return eL(eD,N)}function eL(N,I){let T,P=0,{length:D}=I;for(let M=0;M<D;M++){let R=I.charCodeAt(M);if(R<128&&!(N[R>>>5]>>>R&1))continue;void 0===T?T=I.substring(0,M):P!==M&&(T+=I.substring(P,M));let L=eT.get(R);if("object"==typeof L){if(M+1<D){let N=I.charCodeAt(M+1),D="number"==typeof L.next?L.next===N?L.nextValue:void 0:L.next.get(N);if(void 0!==D){T+=D,P=++M+1;continue}}L=L.value}if(void 0===L){let N=e_(I,M);T+=`&#x${N.toString(16)};`,N!==R&&M++,P=M+1}else T+=L,P=M+1}return void 0===T?I:(P<D&&(T+=I.substr(P)),T)}function e$(N,I=V.XML){let{mode:T=Y.Extensive,level:P=V.XML}="number"==typeof I?{level:I}:I;switch(T){case Y.UTF8:return eO(N);case Y.Attribute:return eN(N);case Y.Text:return eI(N);case Y.ASCII:return P===V.HTML?eR(N):eC(N);case Y.Extensive:default:return P===V.HTML?eM(N):eC(N)}}(F=V||(V={}))[F.XML=0]="XML",F[F.HTML=1]="HTML",(B=Y||(Y={}))[B.UTF8=0]="UTF8",B[B.ASCII=1]="ASCII",B[B.Extensive=2]="Extensive",B[B.Attribute=3]="Attribute",B[B.Text=4]="Text";var eF=class{constructor(N=null,I){this.parentNode=N,this.childNodes=[],Object.defineProperty(this,"range",{enumerable:!1,writable:!0,configurable:!0,value:null!=I?I:[-1,-1]})}remove(){if(this.parentNode){let N=this.parentNode.childNodes;this.parentNode.childNodes=N.filter(N=>this!==N),this.parentNode=null}return this}get innerText(){return this.rawText}get textContent(){return eE(this.rawText)}set textContent(N){this.rawText=e$(N)}},eB=((U=eB||{})[U.ELEMENT_NODE=1]="ELEMENT_NODE",U[U.TEXT_NODE=3]="TEXT_NODE",U[U.COMMENT_NODE=8]="COMMENT_NODE",U),eU=class N extends eF{clone(){return new N(this.rawText,null,void 0,this.rawTagName)}constructor(N,I=null,T,P="!--"){super(I,T),this.rawText=N,this.rawTagName=P,this.nodeType=8}get text(){return this.rawText}toString(){return`<!--${this.rawText}-->`}};function eH(N){return N.type===J.Tag||N.type===J.Script||N.type===J.Style}(H=J||(J={})).Root="root",H.Text="text",H.Directive="directive",H.Comment="comment",H.Script="script",H.Style="style",H.Tag="tag",H.CDATA="cdata",H.Doctype="doctype";let ez=J.Root,eW=J.Text,eq=J.Directive,eG=J.Comment,eK=J.Script,eV=J.Style,eY=J.Tag,eJ=J.CDATA,eQ=J.Doctype;function eZ(N,I){var T=Object.keys(N);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(N);I&&(P=P.filter(function(I){return Object.getOwnPropertyDescriptor(N,I).enumerable})),T.push.apply(T,P)}return T}function eX(N){for(var I=1;I<arguments.length;I++){var T=null!=arguments[I]?arguments[I]:{};I%2?eZ(Object(T),!0).forEach(function(I){ep(N,I,T[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(T)):eZ(Object(T)).forEach(function(I){Object.defineProperty(N,I,Object.getOwnPropertyDescriptor(T,I))})}return N}function e0(N){return eH(N)}function e1(N){return N.type===J.CDATA}function e2(N){return N.type===J.Text}function e3(N){return N.type===J.Comment}function e4(N){return N.type===J.Root}function e5(N){return Object.prototype.hasOwnProperty.call(N,"children")}let e6=/["&'<>$\x80-\uFFFF]/g,e8=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),e7=null!=String.prototype.codePointAt?(N,I)=>N.codePointAt(I):(N,I)=>(64512&N.charCodeAt(I))==55296?(N.charCodeAt(I)-55296)*1024+N.charCodeAt(I+1)-56320+65536:N.charCodeAt(I);function e9(N){let I,T="",P=0;for(;null!==(I=e6.exec(N));){let D=I.index,M=N.charCodeAt(D),R=e8.get(M);void 0!==R?(T+=N.substring(P,D)+R,P=D+1):(T+=`${N.substring(P,D)}&#x${e7(N,D).toString(16)};`,P=e6.lastIndex+=Number((64512&M)==55296))}return T+N.substr(P)}function te(N,I){return function(T){let P,D=0,M="";for(;P=N.exec(T);)D!==P.index&&(M+=T.substring(D,P.index)),M+=I.get(P[0].charCodeAt(0)),D=P.index+1;return M+T.substring(D)}}let tt=te(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),tr=te(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),tn=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(N=>[N.toLowerCase(),N])),ta=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(N=>[N.toLowerCase(),N])),ti=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function to(N){return N.replace(/"/g,""")}function ts(N,I){var T;if(!N)return;let P=(null!=(T=I.encodeEntities)?T:I.decodeEntities)===!1?to:I.xmlMode||"utf8"!==I.encodeEntities?e9:tt;return Object.keys(N).map(T=>{var D,M;let R=null!=(D=N[T])?D:"";return("foreign"===I.xmlMode&&(T=null!=(M=ta.get(T))?M:T),I.emptyAttrs||I.xmlMode||""!==R)?`${T}="${P(R)}"`:T}).join(" ")}let tl=new Set(["area","base","basefont","br","col","command","embed","frame","hr","
1303img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function tc(N,I={}){let T="length"in N?N:[N],P="";for(let N=0;N<T.length;N++)P+=tu(T[N],I);return P}function tu(N,I){switch(N.type){case ez:return tc(N.children,I);case eQ:case eq:return tp(N);case eG:return ty(N);case eJ:return tg(N);case eK:case eV:case eY:return th(N,I);case eW:return tm(N,I)}}let td=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),tf=new Set(["svg","math"]);function th(N,I){var T;"foreign"===I.xmlMode&&(N.name=null!=(T=tn.get(N.name))?T:N.name,N.parent&&td.has(N.parent.name)&&(I=eX(eX({},I),{},{xmlMode:!1}))),!I.xmlMode&&tf.has(N.name)&&(I=eX(eX({},I),{},{xmlMode:"foreign"}));let P=`<${N.name}`,D=ts(N.attribs,I);return D&&(P+=` ${D}`),0===N.children.length&&(I.xmlMode?!1!==I.selfClosingTags:I.selfClosingTags&&tl.has(N.name))?(I.xmlMode||(P+=" "),P+="/>"):(P+=">",N.children.length>0&&(P+=tc(N.children,I)),(I.xmlMode||!tl.has(N.name))&&(P+=`</${N.name}>`)),P}function tp(N){return`<${N.data}>`}function tm(N,I){var T;let P=N.data||"";return(null!=(T=I.encodeEntities)?T:I.decodeEntities)===!1||!I.xmlMode&&N.parent&&ti.has(N.parent.name)||(P=I.xmlMode||"utf8"!==I.encodeEntities?e9(P):tr(P)),P}function tg(N){return`<![CDATA[${N.children[0].data}]]>`}function ty(N){return`<!--${N.data}-->`}function tb(N,I){return tc(N,I)}function tv(N,I){return e5(N)?N.children.map(N=>tb(N,I)).join(""):""}function tw(N){return Array.isArray(N)?N.map(tw).join(""):e0(N)?"br"===N.name?"\n":tw(N.children):e1(N)?tw(N.children):e2(N)?N.data:""}function tx(N){return Array.isArray(N)?N.map(tx).join(""):e5(N)&&!e3(N)?tx(N.children):e2(N)?N.data:""}function tA(N){return Array.isArray(N)?N.map(tA).join(""):e5(N)&&(N.type===J.Tag||e1(N))?tA(N.children):e2(N)?N.data:""}function tE(N){return e5(N)?N.children:[]}function tS(N){return N.parent||null}function t_(N){let I=tS(N);if(null!=I)return tE(I);let T=[N],{prev:P,next:D}=N;for(;null!=P;)T.unshift(P),{prev:P}=P;for(;null!=D;)T.push(D),{next:D}=D;return T}function tk(N,I){var T;return null==(T=N.attribs)?void 0:T[I]}function tC(N,I){return null!=N.attribs&&Object.prototype.hasOwnProperty.call(N.attribs,I)&&null!=N.attribs[I]}function tj(N){return N.name}function tO(N){let{next:I}=N;for(;
1303null!==I&&!e0(I);)({next:I}=I);return I}function tN(N){let{prev:I}=N;for(;null!==I&&!e0(I);)({prev:I}=I);return I}function tI(N){if(N.prev&&(N.prev.next=N.next),N.next&&(N.next.prev=N.prev),N.parent){let I=N.parent.children,T=I.lastIndexOf(N);T>=0&&I.splice(T,1)}N.next=null,N.prev=null,N.parent=null}function tT(N,I){let T=I.prev=N.prev;T&&(T.next=I);let P=I.next=N.next;P&&(P.prev=I);let D=I.parent=N.parent;if(D){let T=D.children;T[T.lastIndexOf(N)]=I,N.parent=null}}function tP(N,I){if(tI(I),I.next=null,I.parent=N,N.children.push(I)>1){let T=N.children[N.children.length-2];T.next=I,I.prev=T}else I.prev=null}function tD(N,I){tI(I);let{parent:T}=N,P=N.next;if(I.next=P,I.prev=N,N.next=I,I.parent=T,P){if(P.prev=I,T){let N=T.children;N.splice(N.lastIndexOf(P),0,I)}}else T&&T.children.push(I)}function tM(N,I){if(tI(I),I.parent=N,I.prev=null,1!==N.children.unshift(I)){let T=N.children[1];T.prev=I,I.next=T}else I.next=null}function tR(N,I){tI(I);let{parent:T}=N;if(T){let P=T.children;P.splice(P.indexOf(N),0,I)}N.prev&&(N.prev.next=I),I.parent=T,I.prev=N.prev,I.next=N,N.prev=I}function tL(N,I,T=!0,P=1/0){return t$(N,Array.isArray(I)?I:[I],T,P)}function t$(N,I,T,P){let D=[],M=[Array.isArray(I)?I:[I]],R=[0];for(;;){if(R[0]>=M[0].length){if(1===R.length)return D;M.shift(),R.shift();continue}let I=M[0][R[0]++];if(N(I)&&(D.push(I),--P<=0))return D;T&&e5(I)&&I.children.length>0&&(R.unshift(0),M.unshift(I.children))}}function tF(N,I){return I.find(N)}function tB(N,I,T=!0){let P=Array.isArray(I)?I:[I];for(let I=0;I<P.length;I++){let D=P[I];if(e0(D)&&N(D))return D;if(T&&e5(D)&&D.children.length>0){let I=tB(N,D.children,!0);if(I)return I}}return null}function tU(N,I){return(Array.isArray(I)?I:[I]).some(I=>e0(I)&&N(I)||e5(I)&&tU(N,I.children))}function tH(N,I){let T=[],P=[Array.isArray(I)?I:[I]],D=[0];for(;;){if(D[0]>=P[0].length){if(1===P.length)return T;P.shift(),D.shift();continue}let I=P[0][D[0]++];e0(I)&&N(I)&&T.push(I),e5(I)&&I.children.length>0&&(D.unshift(0),P.unshift(I.children))}}let tz={tag_name:N=>"function"==typeof N?I=>e0(I)&&N(I.name):"*"===N?e0:I=>e0(I)&&I.name===N,tag_type:N=>"function"==typeof N?I=>N(I.type):I=>I.type===N,tag_contains:N=>"function"==typeof N?I=>e2(I)&&N(I.data):I=>e2(I)&&I.data===N};function tW(N,I){return"function"==typeof I?T=>e0(T)&&I(T.attribs[N]):T=>e0(T)&&T.attribs[N]===I}function tq(N,I){return T=>N(T)||I(T)}function tG(N){let I=Object.keys(N).map(I=>{let T=N[I];return Object.prototype.hasOwnProperty.call(tz,I)?tz[I](T):tW(I,T)});return 0===I.length?null:I.reduce(tq)}function tK(N,I){let T=tG(N);return!T||T(I)}function tV(N,I,T,P=1/0){let D=tG(N);return D?tL(D,I,T,P):[]}function tY(N,I,T=!0){return Array.isArray(I)||(I=[I]),tB(tW("id",N),I,T)}function tJ(N,I,T=!0,P=1/0){return tL(tz.tag_name(N),I,T,P)}function tQ(N,I,T=!0,P=1/0){return tL(tW("class",N),I,T,P)}function tZ(N,I,T=!0,P=1/0){return tL(tz.tag_type(N),I,T,P)}function tX(N){let I=N.length;for(;--I>=0;){let T=N[I];if(I>0&&N.lastIndexOf(T,I-1)>=0){N.splice(I,1);continue}for(let P=T.parent;P;P=P.parent)if(N.includes(P)){N.splice(I,1);break}}return N}function t0(N,I){let T=[],P=[];if(N===I)return 0;let D=e5(N)?N:N.parent;for(;D;)T.unshift(D),D=D.parent;for(D=e5(I)?I:I.parent;D;)P.unshift(D),D=D.parent;let M=Math.min(T.length,P.length),R=0;for(;R<M&&T[R]===P[R];)R++;if(0===R)return Q.DISCONNECTED;let L=T[R-1],$=L.children,F=T[R],B=P[R];return $.indexOf(F)>$.indexOf(B)?L===I?Q.FOLLOWING|Q.CONTAINED_BY:Q.FOLLOWING:L===N?Q.PRECEDING|Q.CONTAINS:Q.PRECEDING}function t1(N){return(N=N.filter((N,I,T)=>!T.includes(N,I+1))).sort((N,I)=>{let T=t0(N,I);return T&Q.PRECEDING?-1:T&Q.FOLLOWING?1:0}),N}function t2(N){let I=t7(rt,N);return I?"feed"===I.name?t3(I):t4(I):null}function t3(N){var I;let T=N.children,P={type:"atom",items:tJ("entry",T).map(N=>{var I;let{children:T}=N,P={media:t8(T)};re(P,"id","id",T),re(P,"title","title",T);let D=null==(I=t7("link",T))?void 0:I.attribs.href;D&&(P.link=D);let M=t9("summary",T)||t9("content",T);M&&(P.description=M);let R=t9("updated",T);return R&&(P.pubDate=new Date(R)),P})};re(P,"id","id",T),re(P,"title","title",T);let D=null==(I=t7("link",T))?void 0:I.attribs.href;
1303D&&(P.link=D),re(P,"description","subtitle",T);let M=t9("updated",T);return M&&(P.updated=new Date(M)),re(P,"author","email",T,!0),P}function t4(N){var I,T;let P=null!=(T=null==(I=t7("channel",N.children))?void 0:I.children)?T:[],D={type:N.name.substr(0,3),id:"",items:tJ("item",N.children).map(N=>{let{children:I}=N,T={media:t8(I)};re(T,"id","guid",I),re(T,"title","title",I),re(T,"link","link",I),re(T,"description","description",I);let P=t9("pubDate",I)||t9("dc:date",I);return P&&(T.pubDate=new Date(P)),T})};re(D,"title","title",P),re(D,"link","link",P),re(D,"description","description",P);let M=t9("lastBuildDate",P);return M&&(D.updated=new Date(M)),re(D,"author","managingEditor",P,!0),D}(z=Q||(Q={}))[z.DISCONNECTED=1]="DISCONNECTED",z[z.PRECEDING=2]="PRECEDING",z[z.FOLLOWING=4]="FOLLOWING",z[z.CONTAINS=8]="CONTAINS",z[z.CONTAINED_BY=16]="CONTAINED_BY";let t5=["url","type","lang"],t6=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function t8(N){return tJ("media:content",N).map(N=>{let{attribs:I}=N,T={medium:I.medium,isDefault:!!I.isDefault};for(let N of t5)I[N]&&(T[N]=I[N]);for(let N of t6)I[N]&&(T[N]=parseInt(I[N],10));return I.expression&&(T.expression=I.expression),T})}function t7(N,I){return tJ(N,I,!0,1)[0]}function t9(N,I,T=!1){return tx(tJ(N,I,T,1)).trim()}function re(N,I,T,P,D=!1){let M=t9(T,P,D);M&&(N[I]=M)}function rt(N){return"rss"===N||"feed"===N||"rdf:RDF"===N}var rr=ei({DocumentPosition:()=>Q,append:()=>tD,appendChild:()=>tP,compareDocumentPosition:()=>t0,existsOne:()=>tU,filter:()=>tL,find:()=>t$,findAll:()=>tH,findOne:()=>tB,findOneChild:()=>tF,getAttributeValue:()=>tk,getChildren:()=>tE,getElementById:()=>tY,getElements:()=>tV,getElementsByClassName:()=>tQ,getElementsByTagName:()=>tJ,getElementsByTagType:()=>tZ,getFeed:()=>t2,getInnerHTML:()=>tv,getName:()=>tj,getOuterHTML:()=>tb,getParent:()=>tS,getSiblings:()=>t_,getText:()=>tw,hasAttrib:()=>tC,hasChildren:()=>e5,innerText:()=>tA,isCDATA:()=>e1,isComment:()=>e3,isDocument:()=>e4,isTag:()=>e0,isText:()=>e2,nextElementSibling:()=>tO,prepend:()=>tR,prependChild:()=>tM,prevElementSibling:()=>tN,removeElement:()=>tI,removeSubsets:()=>tX,replaceElement:()=>tT,testElement:()=>tK,textContent:()=>tx,uniqueSort:()=>t1}),rn=ea((N,I)=>{I.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}}),ra=ea(N=>{var I,T;Object.defineProperty(N,"__esModule",{value:!0}),N.AttributeAction=N.IgnoreCaseMode=N.SelectorType=void 0,(I=N.SelectorType||(N.SelectorType={})).Attribute="attribute",I.Pseudo="pseudo",I.PseudoElement="pseudo-element",I.Tag="tag",I.Universal="universal",I.Adjacent="adjacent",I.Child="child",I.Descendant="descendant",I.Parent="parent",I.Sibling="sibling",I.ColumnCombinator="column-combinator",N.IgnoreCaseMode={Unknown:null,QuirksMode:"quirks",IgnoreCase:!0,CaseSensitive:!1},(T=N.AttributeAction||(N.AttributeAction={})).Any="any",T.Element="element",T.End="end",T.Equals="equals",T.Exists="exists",T.Hyphen="hyphen",T.Not="not",T.Start="start"}),ri=ea(N=>{Object.defineProperty(N,"__esModule",{value:!0}),N.parse=N.isTraversal=void 0;var I=ra(),T=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,P=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,D=new Map([[126,I.AttributeAction.Element],[94,I.AttributeAction.Start],[36,I.AttributeAction.End],[42,I.AttributeAction.Any],[33,I.AttributeAction.Not],[124,I.AttributeAction.Hyphen]]),M=new Set(["has","not","matches","is","where","host","host-context"]);function R(N){switch(N.type){case I.SelectorType.Adjacent:case I.SelectorType.Child:case I.SelectorType.De
1303scendant:case I.SelectorType.Parent:case I.SelectorType.Sibling:case I.SelectorType.ColumnCombinator:return!0;default:return!1}}N.isTraversal=R;var L=new Set(["contains","icontains"]);function $(N,I,T){var P=parseInt(I,16)-65536;return P!=P||T?I:P<0?String.fromCharCode(P+65536):String.fromCharCode(P>>10|55296,1023&P|56320)}function F(N){return N.replace(P,$)}function B(N){return 39===N||34===N}function U(N){return 32===N||9===N||10===N||12===N||13===N}function H(N,P,$){var z=[];function W(N){var I=P.slice($+N).match(T);if(!I)throw Error("Expected name, found ".concat(P.slice($)));var D=I[0];return $+=N+D.length,F(D)}function q(N){for($+=N;$<P.length&&U(P.charCodeAt($));)$++}function G(){for(var N=$+=1,I=1;I>0&&$<P.length;$++)40!==P.charCodeAt($)||K($)?41===P.charCodeAt($)&&!K($)&&I--:I++;if(I)throw Error("Parenthesis not matched");return F(P.slice(N,$-1))}function K(N){for(var I=0;92===P.charCodeAt(--N);)I++;return(1&I)==1}function V(){if(z.length>0&&R(z[z.length-1]))throw Error("Did not expect successive traversals.")}function Y(N){if(z.length>
13030&&z[z.length-1].type===I.SelectorType.Descendant){z[z.length-1].type=N;return}V(),z.push({type:N})}function J(N,T){z.push({type:I.SelectorType.Attribute,name:N,action:T,value:W(1),namespace:null,ignoreCase:"quirks"})}function Q(){if(z.length&&z[z.length-1].type===I.SelectorType.Descendant&&z.pop(),0===z.length)throw Error("Empty sub-selector");N.push(z)}if(q(0),P.length===$)return $;r:for(;$<P.length;){var Z=P.charCodeAt($);switch(Z){case 32:case 9:case 10:case 12:case 13:(0===z.length||z[0].type!==I.SelectorType.Descendant)&&(V(),z.push({type:I.SelectorType.Descendant})),q(1);break;case 62:Y(I.SelectorType.Child),q(1);break;case 60:Y(I.SelectorType.Parent),q(1);break;case 126:Y(I.SelectorType.Sibling),q(1);break;case 43:Y(I.SelectorType.Adjacent),q(1);break;case 46:J("class",I.AttributeAction.Element);break;case 35:J("id",I.AttributeAction.Equals);break;case 91:q(1);var X=void 0,ee=null;124===P.charCodeAt($)?X=W(1):P.startsWith("*|",$)?(ee="*",X=W(2)):(X=W(0),124===P.charCodeAt($)&&61!==P.charCodeAt($+1)&&(ee=X,X=W(1))),q(0);var et=I.AttributeAction.Exists,er=D.get(P.charCodeAt($));if(er){if(et=er,61!==P.charCodeAt($+1))throw Error("Expected `=`");q(2)}else 61===P.charCodeAt($)&&(et=I.AttributeAction.Equals,q(1));var en="",ea=null;if("exists"!==et){if(B(P.charCodeAt($))){for(var ei=P.charCodeAt($),eo=$+1;eo<P.length&&(P.charCodeAt(eo)!==ei||K(eo));)eo+=1;if(P.charCodeAt(eo)!==ei)throw Error("Attribute value didn't end");en=F(P.slice($+1,eo)),$=eo+1}else{for(var es=$;$<P.length&&(!U(P.charCodeAt($))&&93!==P.charCodeAt($)||K($));)$+=1;en=F(P.slice(es,$))}q(0);var el=32|P.charCodeAt($);115===el?(ea=!1,q(1)):105===el&&(ea=!0,q(1))}if(93!==P.charCodeAt($))throw Error("Attribute selector didn't terminate");$+=1;var ec={type:I.SelectorType.Attribute,name:X,action:et,value:en,namespace:ee,ignoreCase:ea};z.push(ec);break;case 58:if(58===P.charCodeAt($+1)){z.push({type:I.SelectorType.PseudoElement,name:W(2).toLowerCase(),data:40===P.charCodeAt($)?G():null});continue}var eu=W(1).toLowerCase(),ed=null;if(40===P.charCodeAt($))if(M.has(eu)){if(B(P.charCodeAt($+1)))throw Error("Pseudo-selector ".concat(eu," cannot be quoted"));if($=H(ed=[],P,$+1),41!==P.charCodeAt($))throw Error("Missing closing parenthesis in :".concat(eu," (").concat(P,")"));$+=1}else{if(ed=G(),L.has(eu)){var ef=ed.charCodeAt(0);ef===ed.charCodeAt(ed.length-1)&&B(ef)&&(ed=ed.slice(1,-1))}ed=F(ed)}z.push({type:I.SelectorType.Pseudo,name:eu,data:ed});break;case 44:Q(),z=[],q(1);break;default:if(P.startsWith("/*",$)){var eh=P.indexOf("*/",$+2);if(eh<0)throw Error("Comment was not terminated");$=eh+2,0===z.length&&q(0);break}var ee=null,ep=void 0;if(42===Z)$+=1,ep="*";else if(124===Z){if(ep="",124===P.charCodeAt($+1)){Y(I.SelectorType.ColumnCombinator),q(2);break}}else if(T.test(P.slice($)))ep=W(0);else break r;124===P.charCodeAt($)&&124!==P.charCodeAt($+1)&&(ee=ep,42===P.charCodeAt($+1)?(ep="*",$+=2):ep=W(1)),z.push("*"===ep?{type:I.SelectorType.Universal,namespace:ee}:{type:I.SelectorType.Tag,name:ep,namespace:ee})}}return Q(),$}N.parse=function(N){var I=[],T=H(I,"".concat(N),0);if(T<N.length)throw Error("Unmatched selector: ".concat(N.slice(T)));return I}}),ro=ea(N=>{var I=N&&N.__spreadArray||function(N,I,T){if(T||2==arguments.length)for(var P,D=0,M=I.length;D<M;D++)!P&&D in I||(P||(P=Array.prototype.slice.call(I,0,D)),P[D]=I[D]);return N.concat(P||Array.prototype.slice.call(I))};Object.defineProperty(N,"__esModule",{value:!0}),N.stringify=void 0;var T=ra(),P=["\\",'"'],D=I(I([],P,!0),["(",")"],!1),M=new Set(P.map(function(N){return N.charCodeAt(0)})),R=new Set(D.map(function(N){return N.charCodeAt(0)})),L=new Set(I(I([],D,!0),["~","^","$","*","+","!","|",":","[","]"," ","."],!1).map(function(N){return N.charCodeAt(0)}));function $(N){return N.map(function(N){return N.map(F).join("")}).join(", ")}function F(N,I,P){switch(N.type){case T.SelectorType.Child:return 0===I?"> ":" > ";case T.SelectorType.Parent:return 0===I?"< ":" < ";case T.SelectorType.Sibling:return 0===I?"~ ":" ~ ";case T.SelectorType.Adjacent:return 0===I?"+ ":" + ";
1303case T.SelectorType.Descendant:return" ";case T.SelectorType.ColumnCombinator:return 0===I?"|| ":" || ";case T.SelectorType.Universal:return"*"===N.namespace&&I+1<P.length&&"name"in P[I+1]?"":"".concat(H(N.namespace),"*");case T.SelectorType.Tag:return U(N);case T.SelectorType.PseudoElement:return"::".concat(z(N.name,L)).concat(null===N.data?"":"(".concat(z(N.data,R),")"));case T.SelectorType.Pseudo:return":".concat(z(N.name,L)).concat(null===N.data?"":"(".concat("string"==typeof N.data?z(N.data,R):$(N.data),")"));case T.SelectorType.Attribute:if("id"===N.name&&N.action===T.AttributeAction.Equals&&"quirks"===N.ignoreCase&&!N.namespace)return"#".concat(z(N.value,L));if("class"===N.name&&N.action===T.AttributeAction.Element&&"quirks"===N.ignoreCase&&!N.namespace)return".".concat(z(N.value,L));var D=U(N);if(N.action===T.AttributeAction.Exists)return"[".concat(D,"]");return"[".concat(D).concat(B(N.action),'="').concat(z(N.value,M),'"').concat(null===N.ignoreCase?"":N.ignoreCase?" i":" s","]")}}function B(N){switch(N){case T.AttributeAction.Equals:return"";case T.AttributeAction.Element:return"~";case T.AttributeAction.Start:return"^";case T.AttributeAction.End:return"$";case T.AttributeAction.Any:return"*";case T.AttributeAction.Not:return"!";case T.AttributeAction.Hyphen:return"|";case T.AttributeAction.Exists:throw Error("Shouldn't be here")}}function U(N){return"".concat(H(N.namespace)).concat(z(N.name,L))}function H(N){return null!==N?"".concat("*"===N?"*":z(N,L),"|"):""}function z(N,I){for(var T=0,P="",D=0;D<N.length;D++)I.has(N.charCodeAt(D))&&(P+="".concat(N.slice(T,D),"\\").concat(N.charAt(D)),T=D+1);return P.length>0?P+N.slice(T):N}N.stringify=$}),rs=ea(N=>{var I=N&&N.__createBinding||(Object.create?function(N,I,T,P){void 0===P&&(P=T);var D=Object.getOwnPropertyDescriptor(I,T);(!D||("get"in D?!I.__esModule:D.writable||D.configurable))&&(D={enumerable:!0,get:function(){return I[T]}}),Object.defineProperty(N,P,D)}:function(N,I,T,P){void 0===P&&(P=T),N[P]=I[T]}),T=N&&N.__exportStar||function(N,T){for(var P in N)"default"===P||Object.prototype.hasOwnProperty.call(T,P)||I(T,N,P)};Object.defineProperty(N,"__esModule",{value:!0}),N.stringify=N.parse=N.isTraversal=void 0,T(ra(),N);var P=ri();Object.defineProperty(N,"isTraversal",{enumerable:!0,get:function(){return P.isTraversal}}),Object.defineProperty(N,"parse",{enumerable:!0,get:function(){return P.parse}});var D=ro();Object.defineProperty(N,"stringify",{enumerable:!0,get:function(){return D.stringify}})}),rl=es(rn(),1),rc=rs();let ru=new Map([[rc.SelectorType.Universal,50],[rc.SelectorType.Tag,30],[rc.SelectorType.Attribute,1],[rc.SelectorType.Pseudo,0]]);function rd(N){return!ru.has(N.type)}let rf=new Map([[rc.AttributeAction.Exists,10],[rc.AttributeAction.Equals,8],[rc.AttributeAction.Not,7],[rc.AttributeAction.Start,6],[rc.AttributeAction.End,6],[rc.AttributeAction.Any,5]]);function rh(N){let I=N.map(rp);for(let T=1;T<N.length;T++){let P=I[T];if(!(P<0))for(let D=T-1;D>=0&&P<I[D];D--){let T=N[D+1];N[D+1]=N[D],N[D]=T,I[D+1]=I[D],I[D]=P}}}function rp(N){var I,T;let P=null!=(I=ru.get(N.type))?I:-1;return N.type===rc.SelectorType.Attribute?(P=null!=(T=rf.get(N.action))?T:4,N.action===rc.AttributeAction.Equals&&"id"===N.name&&(P=9),N.ignoreCase&&(P>>=1)):N.type===rc.SelectorType.Pseudo&&(N.data?"has"===N.name||"contains"===N.name?P=0:Array.isArray(N.data)?(P=Math.min(...N.data.map(N=>Math.min(...N.map(rp)))))<0&&(P=0):P=2:P=3),P}let rm=/[-[\]{}()*+?.,\\^$|#\s]/g;function rg(N){return N.replace(rm,"\\$&")}let ry=new Set(["accept","accept-charset","align","alink","axis","bgcolor","charset","checked","clear","codetype","color","compact","declare","defer","dir","direction","disabled","enctype","face","frame","hreflang","http-equiv","lang","language","link","media","method","multiple","nohref","noresize","noshade","nowrap","readonly","rel","rev","rules","scope","scrolling","selected","shape","target","text","type","valign","valuetype","vlink"]);function rb(N,I){return"boolean"==typeof N.ignoreCase?N.ignoreCase:"quirks"===N.ignoreCase?!!I.quir
1303ksMode:!I.xmlMode&&ry.has(N.name)}let rv={equals(N,I,T){let{adapter:P}=T,{name:D}=I,{value:M}=I;return rb(I,T)?(M=M.toLowerCase(),I=>{let T=P.getAttributeValue(I,D);return null!=T&&T.length===M.length&&T.toLowerCase()===M&&N(I)}):I=>P.getAttributeValue(I,D)===M&&N(I)},hyphen(N,I,T){let{adapter:P}=T,{name:D}=I,{value:M}=I,R=M.length;return rb(I,T)?(M=M.toLowerCase(),function(I){let T=P.getAttributeValue(I,D);return null!=T&&(T.length===R||"-"===T.charAt(R))&&T.substr(0,R).toLowerCase()===M&&N(I)}):function(I){let T=P.getAttributeValue(I,D);return null!=T&&(T.length===R||"-"===T.charAt(R))&&T.substr(0,R)===M&&N(I)}},element(N,I,T){let{adapter:P}=T,{name:D,value:M}=I;if(/\s/.test(M))return rl.default.falseFunc;let R=RegExp(`(?:^|\\s)${rg(M)}(?:$|\\s)`,rb(I,T)?"i":"");return function(I){let T=P.getAttributeValue(I,D);return null!=T&&T.length>=M.length&&R.test(T)&&N(I)}},exists:(N,{name:I},{adapter:T})=>P=>T.hasAttrib(P,I)&&N(P),start(N,I,T){let{adapter:P}=T,{name:D}=I,{value:M}=I,R=M.length;return 0===R?rl.default.falseFunc:rb(I,T)?(M=M.toLowerCase(),I=>{let T=P.getAttributeValue(I,D);return null!=T&&T.length>=R&&T.substr(0,R).toLowerCase()===M&&N(I)}):I=>{var T;return!!(null==(T=P.getAttributeValue(I,D))?void 0:T.startsWith(M))&&N(I)}},end(N,I,T){let{adapter:P}=T,{name:D}=I,{value:M}=I,R=-M.length;return 0===R?rl.default.falseFunc:rb(I,T)?(M=M.toLowerCase(),I=>{var T;return(null==(T=P.getAttributeValue(I,D))?void 0:T.substr(R).toLowerCase())===M&&N(I)}):I=>{var T;return!!(null==(T=P.getAttributeValue(I,D))?void 0:T.endsWith(M))&&N(I)}},any(N,I,T){let{adapter:P}=T,{name:D,value:M}=I;if(""===M)return rl.default.falseFunc;if(rb(I,T)){let I=RegExp(rg(M),"i");return function(T){let R=P.getAttributeValue(T,D);return null!=R&&R.length>=M.length&&I.test(R)&&N(T)}}return I=>{var T;return!!(null==(T=P.getAttributeValue(I,D))?void 0:T.includes(M))&&N(I)}},not(N,I,T){let{adapter:P}=T,{name:D}=I,{value:M}=I;return""===M?I=>!!P.getAttributeValue(I,D)&&N(I):rb(I,T)?(M=M.toLowerCase(),I=>{let T=P.getAttributeValue(I,D);return(null==T||T.length!==M.length||T.toLowerCase()!==M)&&N(I)}):I=>P.getAttributeValue(I,D)!==M&&N(I)}},rw=new Set([9,10,12,13,32]),rx=48,rA=57;function rE(N){if("even"===(N=N.trim().toLowerCase()))return[2,0];if("odd"===N)return[2,1];let I=0,T=0,P=M(),D=R();if(I<N.length&&"n"===N.charAt(I)&&(I++,T=P*(null!=D?D:1),L(),I<N.length?(P=M(),L(),D=R()):P=D=0),null===D||I<N.length)throw Error(`n-th rule couldn't be parsed ('${N}')`);return[T,P*D];function M(){return"-"===N.charAt(I)?(I++,-1):("+"===N.charAt(I)&&I++,1)}function R(){let T=I,P=0;for(;I<N.length&&N.charCodeAt(I)>=rx&&N.charCodeAt(I)<=rA;)P=10*P+(N.charCodeAt(I)-rx),I++;return I===T?null:P}function L(){for(;I<N.length&&rw.has(N.charCodeAt(I));)I++}}function rS(N){let I=N[0],T=N[1]-1;if(T<0&&I<=0)return rl.default.falseFunc;if(-1===I)return N=>N<=T;if(0===I)return N=>N===T;if(1===I)return T<0?rl.default.trueFunc:N=>N>=T;let P=Math.abs(I),D=(T%P+P)%P;return I>1?N=>N>=T&&N%P===D:N=>N<=T&&N%P===D}function r_(N){return rS(rE(N))}function rk(N,I){return T=>{let P=I.getParent(T);return null!=P&&I.isTag(P)&&N(T)}}let rC={contains:(N,I,{adapter:T})=>function(P){return N(P)&&T.getText(P).includes(I)},icontains(N,I,{adapter:T}){let P=I.toLowerCase();return function(I){return N(I)&&T.getText(I).toLowerCase().includes(P)}},"nth-child"(N,I,{adapter:T,equals:P}){let D=r_(I);return D===rl.default.falseFunc?rl.default.falseFunc:D===rl.default.trueFunc?rk(N,T):function(I){let M=T.getSiblings(I),R=0;for(let N=0;N<M.length&&!P(I,M[N]);N++)T.isTag(M[N])&&R++;return D(R)&&N(I)}},"nth-last-child"(N,I,{adapter:T,equals:P}){let D=r_(I);return D===rl.default.falseFunc?rl.default.falseFunc:D===rl.default.trueFunc?rk(N,T):function(I){let M=T.getSiblings(I),R=0;for(let N=M.length-1;N>=0&&!P(I,M[N]);N--)T.isTag(M[N])&&R++;return D(R)&&N(I)}},"nth-of-type"(N,I,{adapter:T,equals:P}){let D=r_(I);return D===rl.default.falseFunc?rl.default.falseFunc:D===rl.default.trueFunc?rk(N,T):function(I){let M=T.getSiblings(I),R=0;for(let N=0;N<M.length;N++){let D=M[N];if(P(I,D))break;T.isTag(D)&&T.getName(D)===T.getName(I)&&R++}return D(R)&&N(I)}},"nth-last-of-type"(N,I,{adapter:T,equals:P}){let D=r_(I);return D===rl.default.falseFunc?rl.default.falseFunc:D===rl.default.trueFunc?rk(N,T):function(I){let M=T.getSiblings(I),R=0;for(let N=M.length-1;N>=0;N--){let D=M[N];if(P(I,D))break;T.isTag(D)&&T.getName(D)===T.getName(I)&&R++}return D(R)&&N(I)}},root:(N,I,{adapter:T})=>I=>{let P=T.getParent(I);return(null==P||!T.isTag(P))&&N(I)},scope(N,I,T,P){let{equals:D}=T;return P&&0!==P.length?1===P.length?I=>D(P[0],I)&&N(I):I=>P.includes(I)&&N(I):rC.root(N,I,T)},hover:rj("isHovered"),visited:rj("isVisited"),active:rj("isActive")};function rj(N){return function(I,T,{adapter:P}){let D=P[N];return"function"!=typeof D?rl.default.falseFunc:function(N){return D(N)&&I(N)}}}let rO={empty:(N,{adapter:I})=>!I.getChildren(N).some(N=>I.isTag(N)||""!==I.getText(N)),"first-child"(N,{adapter:I,equals:T}){if(I.prevElementSibling)return null==I.prevElementSibling(N);let P=I.getSiblings(N).find(N=>I.isTag(N));return null!=P&&T(N,P)},"last-child"(N,{adapter:I,equals:T}){let P=I.getSiblings(N);for(let D=P.length-1;D>=0;D--){if(T(N,P[D]))return!0;
1303if(I.isTag(P[D]))break}return!1},"first-of-type"(N,{adapter:I,equals:T}){let P=I.getSiblings(N),D=I.getName(N);for(let M=0;M<P.length;M++){let R=P[M];if(T(N,R))return!0;if(I.isTag(R)&&I.getName(R)===D)break}return!1},"last-of-type"(N,{adapter:I,equals:T}){let P=I.getSiblings(N),D=I.getName(N);for(let M=P.length-1;M>=0;M--){let R=P[M];if(T(N,R))return!0;if(I.isTag(R)&&I.getName(R)===D)break}return!1},"only-of-type"(N,{adapter:I,equals:T}){let P=I.getName(N);return I.getSiblings(N).every(D=>T(N,D)||!I.isTag(D)||I.getName(D)!==P)},"only-child":(N,{adapter:I,equals:T})=>I.getSiblings(N).every(P=>T(N,P)||!I.isTag(P))};function rN(N,I,T,P){if(null===T){if(N.length>P)throw Error(`Pseudo-class :${I} requires an argument`)}else if(N.length===P)throw Error(`Pseudo-class :${I} doesn't have any arguments`)}let rI={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:`:is( 1304 :is(button, input, select, textarea, optgroup, option)[disabled], 1305 optgroup[disabled] > option, 1306 fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *) 1307 )`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"},rT={};function rP(N,I){return N===rl.default.falseFunc?rl.default.falseFunc:T=>I.isTag(T)&&N(T)}function rD(N,I){let T=I.getSiblings(N);if(T.length<=1)return[];let P=T.indexOf(N);return P<0||P===T.length-1?[]:T.slice(P+1).filter(I.isTag)}function rM(N){return{xmlMode:!!N.xmlMode,lowerCaseAttributeNames:!!N.lowerCaseAttributeNames,lowerCaseTags:!!N.lowerCaseTags,quirksMode:!!N.quirksMode,cacheResults:!!N.cacheResults,pseudos:N.pseudos,adapter:N.adapter,equals:N.equals}}let rR=(N,I,T,P,D)=>{let M=D(I,rM(T),P);return M===rl.default.trueFunc?N:M===rl.default.falseFunc?rl.default.falseFunc:I=>M(I)&&N(I)},rL={is:rR,matches:rR,where:rR,not(N,I,T,P,D){let M=D(I,rM(T),P);return M===rl.default.falseFunc?N:M===rl.default.trueFunc?rl.default.falseFunc:I=>!M(I)&&N(I)},has(N,I,T,P,D){let{adapter:M}=T,R=rM(T);R.relativeSelector=!0;let L=I.some(N=>N.some(rd))?[rT]:void 0,$=D(I,R,L);if($===rl.default.falseFunc)return rl.default.falseFunc;let F=rP($,M);if(L&&$!==rl.default.trueFunc){let{shouldTestNextSiblings:I=!1}=$;return T=>{if(!N(T))return!1;L[0]=T;let P=M.getChildren(T),D=I?[...P,...rD(T,M)]:P;return M.existsOne(F,D)}}return I=>N(I)&&M.existsOne(F,M.getChildren(I))}};function r$(N,I,T,P,D){var M;let{name:R,data:L}=I;if(Array.isArray(L)){if(!(R in rL))throw Error(`Unknown pseudo-class :${R}(${L})`);return rL[R](N,L,T,P,D)}let $=null==(M=T.pseudos)?void 0:M[R],F="string"==typeof $?$:rI[R];if("string"==typeof F){if(null!=L)throw Error(`Pseudo ${R} doesn't have any arguments`);let I=(0,rc.parse)(F);return rL.is(N,I,T,P,D)}if("function"==typeof $)return rN($,R,L,1),I=>$(I,L)&&N(I);if(R in rC)return rC[R](N,L,T,P);if(R in rO){let I=rO[R];return rN(I,R,L,2),P=>I(P,T,L)&&N(P)}throw Error(`Unknown pseudo-class :${R}`)}function rF(N,I){let T=I.getParent(N);return T&&I.isTag(T)?T:null}function rB(N,I,T,P,D){let{adapter:M,equals:R}=T;switch(I.type){case rc.SelectorType.PseudoElement:throw Error("Pseudo-elements are not supported by css-select");case rc.SelectorType.ColumnCombinator:throw Error("Column combinators are not yet supported by css-select");case rc.SelectorType.Attribute:if(null!=I.namespace)throw Error("Namespaced attributes are not yet supported by css-select");return(!T.xmlMode||T.lowerCaseAttributeNames)&&(I.name=I.name.toLowerCase()),rv[I.action](N,I,T);case rc.SelectorType.Pseudo:return r$(N,I,T,P,D);case rc.SelectorType.Tag:{if(null!=I.namespace)throw Error("Namespaced tag names are not yet supported by css-select");let{name:P}=I;return(!T.xmlMode||T.lowerCaseTags)&&(P=P.toLowerCase()),function(I){return M.getName(I)===P&&N(I)}}
1307case rc.SelectorType.Descendant:{if(!1===T.cacheResults||"u"<typeof WeakSet)return function(I){let T=I;for(;T=rF(T,M);)if(N(T))return!0;return!1};let I=new WeakSet;return function(T){let P=T;for(;P=rF(P,M);)if(!I.has(P)){if(M.isTag(P)&&N(P))return!0;I.add(P)}return!1}}case"_flexibleDescendant":return function(I){let T=I;do if(N(T))return!0;while(T=rF(T,M));return!1};case rc.SelectorType.Parent:return function(I){return M.getChildren(I).some(I=>M.isTag(I)&&N(I))};case rc.SelectorType.Child:return function(I){let T=M.getParent(I);return null!=T&&M.isTag(T)&&N(T)};case rc.SelectorType.Sibling:return function(I){let T=M.getSiblings(I);for(let P=0;P<T.length;P++){let D=T[P];if(R(I,D))break;if(M.isTag(D)&&N(D))return!0}return!1};case rc.SelectorType.Adjacent:if(M.prevElementSibling)return function(I){let T=M.prevElementSibling(I);return null!=T&&N(T)};return function(I){let T,P=M.getSiblings(I);for(let N=0;N<P.length;N++){let D=P[N];if(R(I,D))break;M.isTag(D)&&(T=D)}return!!T&&N(T)};case rc.SelectorType.Universal:if(null!=I.namespace&&"*"!==I.namespace)throw Error("Namespaced universal selectors are not yet supported by css-select");return N}}function rU(N,I,T){return rP(rH(N,I,T),I.adapter)}function rH(N,I,T){return rV("string"==typeof N?(0,rc.parse)(N):N,I,T)}function rz(N){return N.type===rc.SelectorType.Pseudo&&("scope"===N.name||Array.isArray(N.data)&&N.data.some(N=>N.some(rz)))}
1307let rW={type:rc.SelectorType.Descendant},rq={type:"_flexibleDescendant"},rG={type:rc.SelectorType.Pseudo,name:"scope",data:null};function rK(N,{adapter:I},T){let P=!!(null==T?void 0:T.every(N=>{let T=I.isTag(N)&&I.getParent(N);return N===rT||T&&I.isTag(T)}));for(let I of N){if(I.length>0&&rd(I[0])&&I[0].type!==rc.SelectorType.Descendant);else{if(!P||I.some(rz))continue;I.unshift(rW)}I.unshift(rG)}}function rV(N,I,T){var P;N.forEach(rh);let D=Array.isArray(T=null!=(P=I.context)?P:T),M=T&&(Array.isArray(T)?T:[T]);if(!1!==I.relativeSelector)rK(N,I,M);else if(N.some(N=>N.length>0&&rd(N[0])))throw Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let R=!1,L=N.map(N=>{if(N.length>=2){let[I,T]=N;I.type!==rc.SelectorType.Pseudo||"scope"!==I.name||(D&&T.type===rc.SelectorType.Descendant?N[1]=rq:(T.type===rc.SelectorType.Adjacent||T.type===rc.SelectorType.Sibling)&&(R=!0))}return rY(N,I,M)}).reduce(rJ,rl.default.falseFunc);return L.shouldTestNextSiblings=R,L}function rY(N,I,T){var P;return N.reduce((N,P)=>N===rl.default.falseFunc?rl.default.falseFunc:rB(N,P,I,T,rV),null!=(P=I.rootFunc)?P:rl.default.trueFunc)}function rJ(N,I){return I===rl.default.falseFunc||N===rl.default.trueFunc?N:N===rl.default.falseFunc||I===rl.default.trueFunc?I:function(T){return N(T)||I(T)}}let rQ=(N,I)=>N===I,rZ={adapter:rr,equals:rQ};function rX(N){var I,T,P,D;let M=null!=N?N:rZ;return null!=(I=M.adapter)||(M.adapter=rr),null!=(T=M.equals)||(M.equals=null!=(D=null==(P=M.adapter)?void 0:P.equals)?D:rQ),M}function r0(N){return function(I,T,P){let D=rX(P);"function"!=typeof I&&(I=rH(I,D,T));let M=r1(T,D.adapter,I.shouldTestNextSiblings);return N(I,M,D)}}function r1(N,I,T=!1){return T&&(N=r2(N,I)),Array.isArray(N)?I.removeSubsets(N):I.getChildren(N)}function r2(N,I){let T=Array.isArray(N)?N.slice(0):[N],P=T.length;for(let N=0;N<P;N++){let P=rD(T[N],I);T.push(...P)}return T}let r3=r0((N,I,T)=>N!==rl.default.falseFunc&&I&&0!==I.length?T.adapter.findAll(N,I):[]),r4=r0((N,I,T)=>N!==rl.default.falseFunc&&I&&0!==I.length?T.adapter.findOne(N,I):null);function r5(N,I,T){let P=rX(T);return("function"==typeof I?I:rU(I,P))(N)}function r6(N){return N[N.length-1]}function r8(N){return N&&1===N.nodeType}function r7(N,I){return r8(N)?N.getAttribute(I):void 0}function r9(N){return N&&N.childNodes}function ne(N){return N?N.parentNode:null}function nt(N){let I,T,P,D=N.length;for(;--D>-1;){for(I=T=N[D],N[D]=null,P=!0;T;){if(N.indexOf(T)>-1){P=!1,N.splice(D,1);break}T=ne(T)}P&&(N[D]=I)}return N}function nr(N,I){return I.some(I=>!!r8(I)&&(N(I)||nr(N,r9(I))))}function nn(N){let I=ne(N);return I?r9(I):[]}function na(N,I){return void 0!==r7(N,I)}function ni(N,I){let T=null;for(let P=0,D=null==I?void 0:I.length;P<D&&!T;P++){let D=I[P];if(N(D))T=D;else{let I=r9(D);I&&I.length>0&&(T=ni(N,I))}}return T}function no(N,I){let T=[];for(let P=0,D=I.length;P<D;P++){let D=I[P];if(!r8(D))continue;N(D)&&T.push(D);let M=r9(D);M&&(T=T.concat(no(N,M)))}return T}let ns={isTag:r8,getAttributeValue:r7,getName:function(N){return(N&&N.rawTagName||"").toLowerCase()},getChildren:r9,getParent:ne,getText:function(N){return N.text},removeSubsets:nt,existsOne:nr,getSiblings:nn,hasAttrib:na,findOne:ni,findAll:no};var nl=class{constructor(N=!1,I){this.addClosingSlash=N,Array.isArray(I)?this.voidTags=I.reduce((N,I)=>N.add(I.toLowerCase()).add(I.toUpperCase()).add(I),new Set):this.voidTags=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"].reduce((N,I)=>N.add(I.toLowerCase()).add(I.toUpperCase()).add(I),new Set)}formatNode(N,I,T){let P=this.addClosingSlash,D=P&&I&&!I.endsWith(" ")?" ":"",M=P?`${D}/`:"";return this.isVoidElement(N.toLowerCase())?`<${N}${I}${M}>`:`<${N}${I}>${T}</${N}>`}isVoidElement(N){return this.voidTags.has(N)}},nc=class N extends eF{clone(){return new N(this._rawText,null)}constructor(N,I=null,T){super(I,T),this.nodeType=3,this.rawTagName="",this._rawText=N}get rawText(){return this._rawText}set rawText(N){this._rawText=N,this._trimmedRawText=void 0,this._trimmedText=void 0}get trimmedRawText(){return void 0!==this._trimmedRawText||(this._trimmedRawText=nu(this.rawText)),this._trimmedRawText}get trimmedText(){return void 0!==this._trimmedText||(this._trimmedText=nu(this.text)),this._trimmedText}get text(){return eE(this.rawText)}get isWhitespace(){return/^(\s| )*$/.test(this.rawText)}toString(){return this.rawText}};function nu(N){let I,T,P=0;for(;P>=0&&P<N.length;)/\S/.test(N[P])&&(void 0===I?(I=P,P=N.length):(T=P,P=void 0)),void 0===I?P++:P--;void 0===I&&(I=0),void 0===T&&(T=N.length-1);let D=I>
13070&&/[^\S\r\n]/.test(N[I-1]),M=T<N.length-1&&/[^\S\r\n]/.test(N[T+1]);return(D?" ":"")+N.slice(I,T+1)+(M?" ":"")}function nd(N){return eE(N)}let nf=["h1","h2","h3","h4","h5","h6","header","hgroup"],nh=["details","dialog","dd","div","dt"],np=["fieldset","figcaption","figure","footer","form"],nm=["table","td","tr"],ng=["address","article","aside","blockquote","br","hr","li","main","nav","ol","p","pre","section","ul"],ny=new Set;!function(...N){let I=N=>{for(let I=0;I<N.length;I++){let T=N[I];ny.add(T),ny.add(T.toUpperCase())}};for(let T of N)I(T)}(nf,nh,np,nm,ng);var nb=class{_validate(N){if(/\s/.test(N))throw Error(`DOMException in DOMTokenList.add: The token '${N}' contains HTML space characters, which are not valid in tokens.`)}constructor(N=[],I=()=>null){this._set=new Set(N),this._afterUpdate=I}add(N){this._validate(N),this._set.add(N),this._afterUpdate(this)}replace(N,I){this._validate(I),this._set.delete(N),this._set.add(I),this._afterUpdate(this)}remove(N){this._set.delete(N)&&this._afterUpdate(this)}toggle(N){this._validate(N),this._set.has(N)?this._set.delete(N):this._set.add(N),this._afterUpdate(this)}contains(N){return this._set.has(N)}get length(){return this._set.size}values(){return this._set.values()}get value(){return Array.from(this._set.values())}toString(){return Array.from(this._set.values()).join(" ")}},nv=class N extends eF{quoteAttribute(N){return null==N?"null":`"${N.replace(/"/g,""")}"`}constructor(N,I,T="",P=null,D,M=new nl,R={}){if(super(P,D),this.rawAttrs=T,this.voidTag=M,this.nodeType=1,this.rawTagName=N,this.rawAttrs=T||"",this._id=I.id||"",this.childNodes=[],this._parseOptions=R,this.classList=new nb(I.class?I.class.split(/\s+/):[],N=>this.setAttribute("class",N.toString())),I.id&&!T&&(this.rawAttrs=`id="${I.id}"`),I.class&&!T){const N=`class="${this.classList.toString()}"`;this.rawAttrs?this.rawAttrs+=` ${N}`:this.rawAttrs=N}}removeChild(N){return this.childNodes=this.childNodes.filter(I=>I!==N),this}exchangeChild(N,I){let T=this.childNodes;return this.childNodes=T.map(T=>T===N?I:T),this}get tagName(){return this.rawTagName?this.rawTagName.toUpperCase():this.rawTagName}set tagName(N){this.rawTagName=N.toLowerCase()}get localName(){return this.rawTagName.toLowerCase()}get isVoidElement(){return this.voidTag.isVoidElement(this.localName)}get id(){return this._id}set id(N){this.setAttribute("id",N)}get rawText(){return/^br$/i.test(this.rawTagName)?"\n":this.childNodes.reduce((N,I)=>N+=I.rawText,"")}get textContent(){return nd(this.rawText)}set textContent(N){let I=[new nc(e$(N),this)];this.childNodes=I}get text(){return nd(this.rawText)}get structuredText(){let N=[],I=[N];function T(P){if(1===P.nodeType)ny.has(P.rawTagName)?(N.length>0&&I.push(N=[]),P.childNodes.forEach(T),N.length>0&&I.push(N=[])):P.childNodes.forEach(T);else if(3===P.nodeType)if(P.isWhitespace)N.prependWhitespace=!0;else{let I=P.trimmedText;N.prependWhitespace&&(I=` ${I}`,N.prependWhitespace=!1),N.push(I)}}return T(this),I.map(N=>N.join("").replace(/\s{2,}/g," ")).join("\n").replace(/\s+$/,"")}toString(){let N=this.rawTagName;if(N){let I=this.rawAttrs?` ${this.rawAttrs}`:"";return this.voidTag.formatNode(N,I,this.innerHTML)}return this.innerHTML}get innerHTML(){return this.childNodes.map(N=>N.toString()).join("")}set innerHTML(N){let I=nj(N,this._parseOptions),T=I.childNodes.length?I.childNodes:[new nc(N,this)];nN(T,this),nN(this.childNodes,null),this.childNodes=T}set_content(N,I={}){if(N instanceof eF)N=[N];else if("string"==typeof N){I=eX(eX({},this._parseOptions),I);let T=nj(N,I);N=T.childNodes.length?T.childNodes:[new nc(T.innerHTML,this)]}return nN(this.childNodes,null),nN(N,this),this.childNodes=N,this}replaceWith(...N){let I=this.parentNode,T=N.map(N=>{if(N instanceof eF)return[N];if("string"==typeof N){let I=nj(N,this._parseOptions);return I.childNodes.length?I.childNodes:[new nc(N,this)]}return[]}).flat(),P=I.childNodes.findIndex(N=>N===this);return nN([this],null),I.childNodes=[...I.childNodes.slice(0,P),...nN(T,I),...I.childNodes.slice(P+1)],this}get outerHTML(){return this.toString()}
1307trimRight(N){for(let I=0;I<this.childNodes.length;I++){let T=this.childNodes[I];if(1===T.nodeType)T.trimRight(N);else{let P=T.rawText.search(N);P>-1&&(T.rawText=T.rawText.substr(0,P),this.childNodes.length=I+1)}}return this}get structure(){let N=[],I=0;function T(T){N.push(" ".repeat(I)+T)}function P(N){let D=N._id?`#${N._id}`:"",M=N.classList.length?`.${N.classList.value.join(".")}`:"";T(`${N.rawTagName}${D}${M}`),I++,N.childNodes.forEach(N=>{1===N.nodeType?P(N):3!==N.nodeType||N.isWhitespace||T("#text")}),I--}return P(this),N.join("\n")}removeWhitespace(){let N=0;this.childNodes.forEach(I=>{if(3===I.nodeType){if(I.isWhitespace)return;I.rawText=I.trimmedRawText}else 1===I.nodeType&&I.removeWhitespace();this.childNodes[N++]=I}),this.childNodes.length=N;let I=Object.keys(this.rawAttributes).map(N=>{let I=this.quoteAttribute(this.rawAttributes[N]);return"null"===I||'""'===I?N:`${N}=${I}`}).join(" ");return this.rawAttrs=I,delete this._rawAttrs,this}querySelectorAll(N){return r3(N,this,{xmlMode:!0,adapter:ns})}querySelector(N){return r4(N,this,{xmlMode:!0,adapter:ns})}matches(N){return r5(this,N,{xmlMode:!0,adapter:ns})}getElementsByTagName(N){let I=N.toUpperCase(),T=[],P=[],D=this,M=0;for(;void 0!==M;){let R;do R=D.childNodes[M++];while(M<D.childNodes.length&&void 0===R);if(void 0===R){D=D.parentNode,M=P.pop();continue}1===R.nodeType&&(("*"===N||R.tagName===I)&&T.push(R),R.childNodes.length>0&&(P.push(M),D=R,M=0))}return T}getElementById(N){let I=[],T=this,P=0;for(;void 0!==P;){let D;do D=T.childNodes[P++];while(P<T.childNodes.length&&void 0===D);if(void 0===D){T=T.parentNode,P=I.pop();continue}if(1===D.nodeType){if(D._id===N)return D;D.childNodes.length>0&&(I.push(P),T=D,P=0)}}return null}closest(N){let I=new Map,T=this,P=null;function D(N,T){let P=null;for(let M=0,R=T.length;M<R&&!P;M++){let R=T[M];if(N(R))P=R;else{let T=I.get(R);T&&(P=D(N,[T]))}}return P}for(;T;)I.set(T,P),P=T,T=T.parentNode;for(T=this;T;){let P=r4(N,T,{xmlMode:!0,adapter:eX(eX({},ns),{},{getChildren(N){let T=I.get(N);return T&&[T]},getSiblings:N=>[N],findOne:D,findAll:()=>[]})});if(P)return P;T=T.parentNode}return null}appendChild(N){return this.append(N),N}get attrs(){if(this._attrs)return this._attrs;this._attrs={};let N=this.rawAttributes;for(let I in N){let T=N[I]||"";this._attrs[I.toLowerCase()]=nd(T)}return this._attrs}get attributes(){let N={},I=this.rawAttributes;for(let T in I)N[T]=nd(I[T]||"");return N}get rawAttributes(){if(this._rawAttrs)return this._rawAttrs;let N={};if(this.rawAttrs){let I,T=/([_a-zA-Z()[\]#@$.?:][a-zA-Z0-9-._:()[\]#]*)(?:\s*=\s*((?:'[^']*')|(?:"[^"]*")|\S+))?/g;for(;I=T.exec(this.rawAttrs);){let T=I[1];if("__proto__"===T)continue;let P=I[2]||null;P&&("'"===P[0]||'"'===P[0])&&(P=P.slice(1,P.length-1)),N[T]=N[T]||P}}return this._rawAttrs=N,N}removeAttribute(N){let I=this.rawAttributes;return delete I[N],this._attrs&&delete this._attrs[N],this.rawAttrs=Object.keys(I).map(N=>{let T=this.quoteAttribute(I[N]);return"null"===T||'""'===T?N:`${N}=${T}`}).join(" "),"id"===N&&(this._id=""),this}hasAttribute(N){return N.toLowerCase()in this.attrs}getAttribute(N){return this.attrs[N.toLowerCase()]}setAttribute(N,I){if(arguments.length<2)throw Error("Failed to execute 'setAttribute' on 'Element'");let T=N.toLowerCase(),P=this.rawAttributes;for(let I in P)if(I.toLowerCase()===T){N=I;break}return P[N]=String(I),this._attrs&&(this._attrs[T]=nd(P[N])),this.rawAttrs=Object.keys(P).map(N=>{let I=this.quoteAttribute(P[N]);return"null"===I||'""'===I?N:`${N}=${I}`}).join(" "),"id"===N&&(this._id=I),this}setAttributes(N){return this._attrs&&delete this._attrs,this._rawAttrs&&delete this._rawAttrs,this.rawAttrs=Object.keys(N).map(I=>{let T=N[I];return"null"===T||'""'===T?I:`${I}=${this.quoteAttribute(String(T))}`}).join(" "),"id"in N&&(this._id=N.id),this}insertAdjacentHTML(N,I){if(arguments.length<2)throw Error("2 arguments required");let T=nj(I,this._parseOptions);if("afterend"===N)this.after(...T.childNodes);else if("afterbegin"===N)this.prepend(...T.childNodes);else if("beforeend"===N)this.append(...T.childNodes);else if("beforebegin"===N)this.before(...T.childNodes);else throw Error(`The value provided ('${N}') is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'`);return this}prepend(...N){let I=nO(N);nN(I,this),this.childNodes.unshift(...I)}append(...N){let I=nO(N);nN(I,this),this.childNodes.push(...I)}before(...N){let I=nO(N),T=this.parentNode.childNodes;nN(I,this.parentNode),T.splice(T.indexOf(this),0,...I)}after(...N){let I=nO(N),T=this.parentNode.childNodes;nN(I,this.parentNode),T.splice(T.indexOf(this)+1,0,...I)}get nextSibling(){if(this.parentNode){let N=this.parentNode.childNodes,I=0;for(;I<N.length;)if(this===N[I++])return N[I]||null;return null}}get nextElementSibling(){if(this.parentNode){let I=this.parentNode.childNodes,T=0,P=!1;for(;T<I.length;){let D=I[T++];if(P){if(D instanceof N)return D||null}else this===D&&(P=!0)}return null}}get previousSibling(){if(this.parentNode){let N=this.parentNode.childNodes,I=N.length;for(;I>0;)if(this===N[--I])return N[I-1]||null;return null}}get previousElementSibling(){if(this.parentNode){let I=this.parentNode.childNodes,T=I.length,P=!1;for(;T>0;){let D=I[--T];if(P){if(D instanceof N)return D||null}else this===D&&(P=!0)}return null}}get children(){let I=[];for(let T of this.childNodes)T instanceof N&&I.push(T);return I}get firstChild(){return this.childNodes[0]}get firstElementChild(){return this.children[0]}get lastChild(){return r6(this.childNodes)}get lastElementChild(){return this.children[this.children.length-1]}get childElementCount(){return this.children.length}get classNames(){return this.classList.toString()}clone(){return nj(this.toString(),this._parseOptions).firstChild}};let nw=/<!--[\s\S]*?-->|<(\/?)([a-zA-Z][-.:0-9_a-zA-Z@\xB7\xC0-\xD6\xD8-\xF6\u00F8-\u03A1\u03A3-\u03D9\u03DB-\u03EF\u03F7-\u03FF\u0400-\u04FF\u0500-\u052F\u1D00-\u1D2B\u1D6B-\u1D77\u1D79-\u1D9A\u1E00-\u1E9B\u1F00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2126\u212A-\u212B\u2132\u214E\u2160-\u2188\u2C60-\u2C7F\uA722-\uA787\uA78B-\uA78E\uA790-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA7FF\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64-\uAB65\uFB00-\uFB06\uFB13-\uFB17\uFF21-\uFF3A\uFF41-\uFF5A\x37F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]*)((?:\s+[^>]*?(?:(?:'[^']*')|(?:"[^"]*"))?)*)\s*(\/?)>/gu,nx=/<!--[\s\S]*?-->|<!\[CDATA\[[\s\S]*?\]\]>|<(\/?)([a-zA-Z][-.:0-9_a-zA-Z@\xB7\xC0-\xD6\xD8-\xF6\u00F8-\u03A1\u03A3-\u03D9\u03DB-\u03EF\u03F7-\u03FF\u0400-\u04FF\u0500-\u052F\u1D00-\u1D2B\u1D6B-\u1D77\u1D79-\u1D9A\u1E00-\u1E9B\u1F00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2126\u212A-\u212B\u2132\u214E\u2160-\u2188\u2C60-\u2C7F\uA722-\uA787\uA78B-\uA78E\uA790-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA7FF\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64-\uAB65\uFB00-\uFB06\uFB13-\uFB17\uFF21-\uFF3A\uFF41-\uFF5A\x37F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]*)((?:\s+[^>]*?(?:(?:'[^']*')|(?:"[^"]*"))?)*)\s*(\/?)>/gu,nA=/(?:^|\s)(id|class)\s*=\s*((?:'[^']*')|(?:"[^"]*")|\S+)/gi,nE={li:{li:!0,LI:!0},LI:{li:!0,LI:!0},p:{p:!0,div:!0,P:!0,DIV:!0},P:{p:!0,div:!0,P:!0,DIV:!0},b:{div:!0,DIV:!0},B:{div:!0,DIV:!0},td:{td:!0,th:!0,TD:!0,TH:!0},TD:{td:!0,th:!0,TD:!0,TH:!0},th:{td:!0,th:!0,TD:!0,TH:!0},TH:{td:!0,th:!0,TD:!0,TH:!0},h1:{h1:!0,H1:!0},H1:{h1:!0,H1:!0},h2:{h2:!0,H2:!0},H2:{h2:!0,H2:!0},h3:{h3:!0,H3:!0}
1307,H3:{h3:!0,H3:!0},h4:{h4:!0,H4:!0},H4:{h4:!0,H4:!0},h5:{h5:!0,H5:!0},H5:{h5:!0,H5:!0},h6:{h6:!0,H6:!0},H6:{h6:!0,H6:!0},dt:{dt:!0,dd:!0,DT:!0,DD:!0},DT:{dt:!0,dd:!0,DT:!0,DD:!0},dd:{dt:!0,dd:!0,DT:!0,DD:!0},DD:{dt:!0,dd:!0,DT:!0,DD:!0}},nS={li:{ul:!0,ol:!0,UL:!0,OL:!0},LI:{ul:!0,ol:!0,UL:!0,OL:!0},a:{div:!0,DIV:!0},A:{div:!0,DIV:!0},b:{div:!0,DIV:!0},B:{div:!0,DIV:!0},i:{div:!0,DIV:!0},I:{div:!0,DIV:!0},p:{div:!0,DIV:!0},P:{div:!0,DIV:!0},td:{tr:!0,table:!0,TR:!0,TABLE:!0},TD:{tr:!0,table:!0,TR:!0,TABLE:!0},th:{tr:!0,table:!0,TR:!0,TABLE:!0},TH:{tr:!0,table:!0,TR:!0,TABLE:!0},dt:{dl:!0,body:!0,html:!0,DL:!0,BODY:!0,HTML:!0},DT:{dl:!0,body:!0,html:!0,DL:!0,BODY:!0,HTML:!0},dd:{dl:!0,body:!0,html:!0,DL:!0,BODY:!0,HTML:!0},DD:{dl:!0,body:!0,html:!0,DL:!0,BODY:!0,HTML:!0}},n_={p:{a:!0,audio:!0,del:!0,ins:!0,map:!0,noscript:!0,video:!0}},nk="documentfragmentcontainer";function nC(N,I={}){var T,P;let D,M,R=new nl(null==I||null==(T=I.voidTag)?void 0:T.closingSlash,null==I||null==(P=I.voidTag)?void 0:P.tags),L=N.includes("<![CDATA["),$=L?nx:nw,F=I.blockTextElements||{script:!0,noscript:!0,style:!0,pre:!0},B=Object.keys(F),U=B.map(N=>RegExp(`^${N}$`,"i")),H=B.filter(N=>!!F[N]).map(N=>RegExp(`^${N}$`,"i"));function z(N){return H.some(I=>I.test(N))}function W(N){return U.some(I=>I.test(N))}let q=(N,I)=>[N-X,I-X],G=new nv(null,{},"",null,[0,N.length],R,I),K=G,V=[G],Y=-1,{lowerCaseTagName:J,fixNestedATags:Q}=I,Z=(N=`<${nk}>${N}</${nk}>`).length-28,X=27;for($.lastIndex=0;D=$.exec(N);){let{0:T,1:P,2:F,3:B,4:U}=D,H=T.length,G=$.lastIndex-H,X=$.lastIndex;if(Y>-1&&Y+H<X){let I=N.substring(Y,G);K.appendChild(new nc(I,null,q(Y,G)))}if(Y=$.lastIndex,L&&T.startsWith("<![CDATA[")){K.appendChild(new nc(T,null,q(G,X)));continue}if(F!==nk){if("!"===T[1]){if(I.comment){let I=N.substring(G+4,X-3);K.appendChild(new eU(I,null,q(G,X)))}continue}if(J&&(F=F.toLowerCase()),!P){let T={};for(let N;N=nA.exec(B);){let{1:I,2:P}=N,D="'"===P[0]||'"'===P[0];T[I.toLowerCase()]=D?P.slice(1,P.length-1):P}let D=K.rawTagName;
1307!U&&!I.preserveTagNesting&&nE[D]&&nE[D][F]&&(V.pop(),K=r6(V)),Q&&("a"===F||"A"===F)&&(void 0!==M&&(V.splice(M),K=r6(V)),M=V.length);let L=$.lastIndex,G=L-H;if(K=K.appendChild(new nv(F,T,B.slice(1),null,q(G,L),R,I)),V.push(K),W(F)){let I=`</${F}>`,T=J?N.toLocaleLowerCase().indexOf(I,$.lastIndex):N.indexOf(I,$.lastIndex),D=-1===T?Z:T;if(z(F)){let I=N.substring(L,D);I.length>0&&/\S/.test(I)&&K.appendChild(new nc(I,null,q(L,D)))}-1===T?Y=$.lastIndex=N.length+1:(Y=$.lastIndex=T+I.length,P="/")}}if(P||U||R.isVoidElement(F))for(;;){if(null!=M&&("a"===F||"A"===F)&&(M=void 0),K.rawTagName===F){K.range[1]=q(-1,Math.max(Y,X))[1],V.pop(),K=r6(V);break}{let N=K.tagName;if(nS[N]&&nS[N][F]){V.pop(),K=r6(V);continue}let T=K.rawTagName?K.rawTagName.toLowerCase():"";if(n_[T]){let N=F.toLowerCase();if(V.length>1){let I=V[V.length-2];if(I&&I.rawTagName&&I.rawTagName.toLowerCase()===N&&!n_[T][N]){K.range[1]=q(-1,Math.max(Y,X))[1],V.pop(),K=r6(V);continue}}}if(!0===I.closeAllByClosing){let N;for(N=V.length-2;N>=0&&V[N].rawTagName!==F;N--);if(N>=0){for(;V.length>N;)K.range[1]=q(-1,Math.max(Y,X))[1],V.pop(),K=r6(V);continue}}break}}}}return V}function nj(N,I={}){let T=nC(N,I),[P]=T;for(;T.length>1;){let N=T.pop(),P=r6(T);N.parentNode&&N.parentNode.parentNode&&(N.parentNode===P&&N.tagName===P.tagName?!0!==I.parseNoneClosedTags&&(P.removeChild(N),N.childNodes.forEach(N=>{P.parentNode.appendChild(N)}),T.pop()):!0!==I.parseNoneClosedTags&&(P.removeChild(N),N.childNodes.forEach(N=>{P.appendChild(N)})))}return P}function nO(N){return N.map(N=>"string"==typeof N?new nc(N):(N.remove(),N))}function nN(N,I){return N.map(N=>(N.parentNode=I,N))}function nI(N,I={}){return 1===nC(N,I).length}function nT(N,I={}){return nj(N,I)}nT.parse=nj,nT.HTMLElement=nv,nT.CommentNode=eU,nT.valid=nI,nT.Node=eF,nT.TextNode=nc,nT.NodeType=eB},80663:(N,I,T)=>{"use strict";function P(N){return(I,T={})=>{let P,R=T.width,L=R&&N.matchPatterns[R]||N.matchPatterns[N.defaultMatchWidth],$=I.match(L);if(!$)return null;let F=$[0],B=R&&N.parsePatterns[R]||N.parsePatterns[N.defaultParseWidth],U=Array.isArray(B)?M(B,N=>N.test(F)):D(B,N=>N.test(F));return P=N.valueCallback?N.valueCallback(U):U,{value:P=T.valueCallback?T.valueCallback(P):P,rest:I.slice(F.length)}}}function D(N,I){for(let T in N)if(Object.prototype.hasOwnProperty.call(N,T)&&I(N[T]))return T}function M(N,I){for(let T=0;T<N.length;T++)if(I(N[T]))return T}T.d(I,{A:()=>P})},80681:(N,I,T)=>{"use strict";T.d(I,{A:()=>$});var P=T(37876),D=T(18249),M=T(56375),R=T(40163),L=T(36379);let $=({languageData:N,activeNavItem:I,setActiveNavItem:T})=>{let{countryCode:$,currentLanguage:F,isGlobal:B,languageSectionLanguageColumnTitle:U}=N,H=()=>{T&&T(N)};return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)("div",{tabIndex:0,className:(0,L.cn)("nav-item group flex w-full cursor-pointer items-center border-b border-accent-iron p-0 px-6 py-4 text-start"),onClick:()=>H(),children:[(0,P.jsx)(M.I,{name:B?"global":$,size:"small",color:"brunel-dark-grey"}),(0,P.jsx)(R.E,{field:U,className:"pl-4 font-semibold! text-brunel-dark-grey",tag:"div"}),(0,P.jsx)("div",{className:"ml-auto flex",children:(0,P.jsx)(M.I,{name:"chevron-right"})})]}),(0,P.jsx)("div",{className:`fixed top-0 left-0 h-screen w-full bg-white ${I?"translate-x-0 transition-transform":"translate-x-full"}`,children:(0,P.jsx)(D.A,{languageData:N,nativeName:F?.nativeName})})]})}},80787:(N,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.defaultCallbacks=void 0,I.defaultCallbacks={signIn:()=>!0,redirect:({url:N,baseUrl:I})=>N.startsWith("/")?`${I}${N}`:new URL(N).origin===I?N:I,session:({session:N})=>N,jwt:({token:N})=>N}},80811:(N,I,T)=>{"use strict";var P="/",D=T(99742);N.exports={typedRoutes:!0,staticPageGenerationTimeout:300,outputFileTracingRoot:T(79052).join(P,"../../"),assetPrefix:"https://us.brunel.net",distDir:D.env.NEXTJS_DIST_DIR||".next",env:{PUBLIC_URL:"https://us.brunel.net",WEBMCP_ORIGIN_TRIAL_TOKEN:"AzlKY7xk7HgCmqwXacuQMyrDqX8vJOVooyQXub0YqVJXmSH9PWU+FQzzkdFafaNIn6NyeWM8M1qYYhxEOPwVKQYAAABxeyJvcmlnaW4iOiJodHRwczovL2JydW5lbC5uZXQ6NDQzIiwiZmVhdHVyZSI6IldlYk1DUCIsImV4cGlyeSI6MTc5NDg3MzYwMCwiaXNTdWJkb21haW4iOnRydWUsImlzVGhpcmRQYXJ0eSI6dHJ1ZX0="},i18n:{locales:D.env.LANGUAGES?.split(",")||["en"],defaultLocale:D.env.DEFAULT_LANGUAGE||"default",localeDetection:!1},reactStrictMode:!0,poweredByHeader:!1,images:{remotePatterns:[{protocol:"https",hostname:"edge*.**",port:""},{protocol:"https",hostname:"xmc-*.**",port:""},{protocol:"https",hostname:"feaas*.blob.core.windows.net",port:""},{protocol:"https",hostname:"*.sitecorecloud.io",port:""},{protocol:"https",hostname:"*localhost*",port:""},{protocol:"https",hostname:"*.brunel.net*",port:""},{protocol:"https",hostname:"*.taylorhopkinson.com*",port:""}]},transpilePackages:["@piwikpro/next-piwik-pro"],serverExternalPackages:["isomorphic-dompurify"],rewrites:async()=>[{source:"/healthz",destination:"/api/healthz"},{source:"/robots.txt",destination:"/api/robots"},{source:"/sitemap.xml",destination:"/api/sitemap",locale:!1},{source:"/:locale/sitemap:id([\\w-]{0,}).xml",destination:"/api/sitemap?locale=:locale&id=:id",locale:!1},{source:"/:locale/brunel.xmlfeed.xml",destination:"/api/xmlfeed?locale=:locale",locale:!1},{source:"/feaas-render",destination:"/api/editing/feaas/render"}],async headers(){let N="AzlKY7xk7HgCmqwXacuQMyrDqX8vJOVooyQXub0YqVJXmSH9PWU+FQzzkdFafaNIn6NyeWM8M1qYYhxEOPwVKQYAAABxeyJvcmlnaW4iOiJodHRwczovL2JydW5lbC5uZXQ6NDQzIiwiZmVhdHVyZSI6IldlYk1DUCIsImV4cGlyeSI6MTc5NDg3MzYwMCwiaXNTdWJkb21haW4iOnRydWUsImlzVGhpcmRQYXJ0eSI6dHJ1ZX0=",I=[{key:"Strict-Transport-Security",value:"max-age=31536000; includeSubDomains; preload"},{key:"Referrer-Policy",value:"no-referrer"}];return N&&I.push({key:"Origin-Trial",value:N}),[{source:"/:path*",headers:I}]},webpack:(N,I)=>(I.isServer?N.externals=[{"@sitecore-feaas/clientside/react":"commonjs @sitecore-feaas/clientside/react","@sitecore/byoc":"commonjs @sitecore/byoc","@sitecore/byoc/react":"commonjs @sitecore/byoc/react"},...N.externals]:(N.module.rules.unshift({test:/src\\components\\.*\.tsx$/,use:["@sitecore-content-sdk\\nextjs\\component-props-loader"]}),N.resolve.alias={...N.resolve.alias,glob:!1}),N)}},80894:N=>{"use strict";N.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],ol
1307ive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},81176:(N,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),Object.defineProperty(I,"ReflectAdapter",{enumerable:!0,get:function(){return T}});class T{static get(N,I,T){let P=Reflect.get(N,I,T);return"function"==typeof P?P.bind(N):P}static set(N,I,T,P){return Reflect.set(N,I,T,P)}static has(N,I){return Reflect.has(N,I)}static deleteProperty(N,I){return Reflect.deleteProperty(N,I)}}},81187:N=>{"use strict";function I(){var N=Object.create(null),I=0,T=0,P=0,D=!1;function M(I){P--,delete N[I]}this.put=function(I,T,R,L){if(D&&console.log("caching: %s = %j (@%s)",I,T,R),void 0!==R&&("number"!=typeof R||isNaN(R)||R<=0))throw Error("Cache timeout must be a positive number");if(void 0!==L&&"function"!=typeof L)throw Error("Cache timeout callback must be a function");var $=N[I];$?clearTimeout($.timeout):P++;var F={value:T,expire:R+Date.now()};return isNaN(F.expire)||(F.timeout=setTimeout((function(){M(I),L&&L(I,T)}).bind(this),R)),N[I]=F,T},this.del=function(I){var T=!0,P=N[I];return P?(clearTimeout(P.timeout),!isNaN(P.expire)&&P.expire<Date.now()&&(T=!1)):T=!1,T&&M(I),T},this.clear=function(){for(var M in N)clearTimeout(N[M].timeout);P=0,N=Object.create(null),D&&(I=0,T=0)},this.get=function(M){var R=N[M];if(void 0!==R)if(isNaN(R.expire)||R.expire>=Date.now())return D&&I++,R.value;else D&&T++,P--,delete N[M];else D&&T++;return null},this.size=function(){return P},this.memsize=function(){var I,T=0;for(I in N)T++;return T},this.debug=function(N){D=N},this.hits=function(){return I},this.misses=function(){return T},this.keys=function(){return Object.keys(N)},this.exportJson=function(){var I={};for(var T in N){var P=N[T];I[T]={value:P.value,expire:P.expire||"NaN"}}return JSON.stringify(I)},this.importJson=function(I,T){var P=JSON.parse(I),M=Date.now(),R=T&&T.skipDuplicates;for(var L in P)if(P.hasOwnProperty(L)){if(R&&N[L]){D&&console.log("Skipping duplicate imported key '%s'",L);continue}var $=P[L],F=$.expire-M;if(F<=0){this.del(L);continue}F=F>0?F:void 0,this.put(L,$.value,F)}return this.size()}}N.exports=new I,N.exports.Cache=I},81202:(N,I,T)=>{"use strict";T.d(I,{D2:()=>K,Me:()=>J,Qc:()=>G,Yq:()=>V,rn:()=>Y,xC:()=>Q});var P=T(99210),D=T(1806),M=T(36635),R=T(14388),L=T(32882),$=T(28046),F=T(14169),B=T(97644),U=T(40406),H=T(31611),z=T(60409);let W=new Set(["0001-01-01T00:00:00Z","00010101T000000Z"]),q=N=>{if(!N?.trim())return null;let I=N.trim();if(W.has(I))return null;let T=I.match(/^\/Date\((\d+)(?:[+-]\d+)?\)\/$/);if(T?.[1]){let N=new Date(Number(T[1]));return Number.isNaN(N.getTime())?null:N}let P=I.match(/^(\d{4})(\d{2})(\d{2})T(\d{2})(\d{2})(\d{2})Z?$/);if(P){let[,N,T,D,M,R,L]=P,$=new Date(`${N}-${T}-${D}T${M}:${R}:${L}${I.endsWith("Z")?"Z":""}`);return Number.isNaN($.getTime())?null:$}let D=new Date(I);return Number.isNaN(D.getTime())?null:D},G=N=>null!==q(N),K=(N,I,T=new Date)=>{let P=q(I??"");if(P)return P.getTime()<T.getTime();let D=q(N??"");return!!D&&new Date(D.getFullYear(),D.getMonth(),D.getDate(),23,59,59,999).getTime()<T.getTime()},V=(N,I)=>{if(N?.value){let T=q(N.value);return T?{value:T.toLocaleDateString(I,{day:"2-digit",month:"long",year:"numeric"})}:{value:""}}return{value:""}},Y=(N,I=z.Xn)=>{let T=q(N);return T?T.toLocaleDateString(I,{day:"2-digit",month:"long",year:"numeric"}):""},J=N=>{switch(N){case"en":case"en-nl":case"en-de":case"en-sg":default:return P.b;case"en-us":return D.c;case"en-ca":return M.h;case"nl-nl":return R.nl;case"nl-be":return L.S;case"de-de":case"de-ch":return $.de;case"de-at":return F.$;case"en-au":return B.c;case"zh-cn":return U.g;case"cs-cz":return H.cs}},Q=(N,I,T,P)=>{let D=(P||new Date).getHours();return D>=12&&D<=17?I:D>=18&&D<=24?T:N}},81343:(N,I,T)=>{"use strict";var P=T(29563);Object.defineProperty(I,"__esModule",{value:!0}),I.init=K;var D=T(63426),M=P(T(5861)),R=T(42226),L=P(T(46209)),$=T(41362),F=G(T(3883)),B=G(T(61075)),U=T(80787),H=T(86459),z=T(99738),W=P(T(40316));function q(N){if("function"!=typeof WeakMap)return null;var I=new WeakMap,T=new WeakMap;return(q=function(N){return N?T:I})(N)}function G(N,I){if(!I&&N&&N.__esModule)return N;if(null===N||"object"!=typeof N&&"function"!=typeof N)return{default:N};var T=q(I);if(T&&T.has(N))return T.get(N);var P={__proto__:null},D=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in N)if("default"!==M&&({}).hasOwnProperty.call(N,M)){var R=D?Object.getOwnPropertyDescriptor(N,M):null;R&&(R.get||R.set)?Object.defineProperty(P,M,R):P[M]=N[M]}return P.default=N,T&&T.set(N,P),P}async function K({authOptions:N,providerId:I,action:T,origin:P,cookies:q,callbackUrl:G,csrfToken:V,isPost:Y}){var J,Q;let Z=(0,W.default)(P),X=(0,$.createSecret)({authOptions:N,url:Z}),{providers:ee,provider:et}=(0,L.default)({providers:N.providers,url:Z,providerId:I}),er=2592e3,en={debug:!1,pages:{},theme:{colorScheme:"auto",logo:"",brandColor:"",buttonText:""}
1307,...N,url:Z,action:T,provider:et,cookies:{...F.defaultCookies(null!=(J=N.useSecureCookies)?J:Z.base.startsWith("https://")),...N.cookies},secret:X,providers:ee,session:{strategy:N.adapter?"database":"jwt",maxAge:er,updateAge:86400,generateSessionToken:()=>{var N;return null!=(N=null===D.randomUUID||void 0===D.randomUUID?void 0:(0,D.randomUUID)())?N:(0,D.randomBytes)(32).toString("hex")},...N.session},jwt:{secret:X,maxAge:er,encode:B.encode,decode:B.decode,...N.jwt},events:(0,R.eventsErrorHandler)(null!=(Q=N.events)?Q:{},M.default),adapter:(0,R.adapterErrorHandler)(N.adapter,M.default),callbacks:{...U.defaultCallbacks,...N.callbacks},logger:M.default,callbackUrl:Z.origin},ea=[],{csrfToken:ei,cookie:eo,csrfTokenVerified:es}=(0,H.createCSRFToken)({options:en,cookieValue:null==q?void 0:q[en.cookies.csrfToken.name],isPost:Y,bodyValue:V});en.csrfToken=ei,en.csrfTokenVerified=es,eo&&ea.push({name:en.cookies.csrfToken.name,value:eo,options:en.cookies.csrfToken.options});let{callbackUrl:el,callbackUrlCookie:ec}=await (0,z.createCallbackUrl)({options:en,cookieValue:null==q?void 0:q[en.cookies.callbackUrl.name],paramValue:G});return en.callbackUrl=el,ec&&ea.push({name:en.cookies.callbackUrl.name,value:ec,options:en.cookies.callbackUrl.options}),{options:en,cookies:ea}}},81370:(N,I)=>{"use strict";I.byteLength=F,I.toByteArray=U,I.fromByteArray=W;for(var T=[],P=[],D="u">typeof Uint8Array?Uint8Array:Array,M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",R=0,L=M.length;R<L;++R)T[R]=M[R],P[M.charCodeAt(R)]=R;function $(N){var I=N.length;if(I%4>0)throw Error("Invalid string. Length must be a multiple of 4");var T=N.indexOf("=");-1===T&&(T=I);var P=T===I?0:4-T%4;return[T,P]}function F(N){var I=$(N),T=I[0],P=I[1];return(T+P)*3/4-P}function B(N,I,T){return(I+T)*3/4-T}function U(N){var I,T,M=$(N),R=M[0],L=M[1],F=new D(B(N,R,L)),U=0,H=L>0?R-4:R;for(T=0;T<H;T+=4)I=P[N.charCodeAt(T)]<<18|P[N.charCodeAt(T+1)]<<12|P[N.charCodeAt(T+2)]<<6|P[N.charCodeAt(T+3)],F[U++]=I>>16&255,F[U++]=I>>8&255,F[U++]=255&I;return 2===L&&(I=P[N.charCodeAt(T)]<<2|P[N.charCodeAt(T+1)]>>4,F[U++]=255&I),1===L&&(I=P[N.charCodeAt(T)]<<10|P[N.charCodeAt(T+1)]<<4|P[N.charCodeAt(T+2)]>>2,F[U++]=I>>8&255,F[U++]=255&I),F}function H(N){return T[N>>18&63]+T[N>>12&63]+T[N>>6&63]+T[63&N]}function z(N,I,T){for(var P=[],D=I;D<T;D+=3)P.push(H((N[D]<<16&0xff0000)+(N[D+1]<<8&65280)+(255&N[D+2])));return P.join("")}function W(N){for(var I,P=N.length,D=P%3,M=[],R=16383,L=0,$=P-D;L<$;L+=R)M.push(z(N,L,L+R>$?$:L+R));return 1===D?M.push(T[(I=N[P-1])>>2]+T[I<<4&63]+"=="):2===D&&M.push(T[(I=(N[P-2]<<8)+N[P-1])>>10]+T[I>>4&63]+T[I<<2&63]+"="),M.join("")}P[45]=62,P[95]=63},81548:(N,I,T)=>{"use strict";T.d(I,{Cb:()=>R,H5:()=>ec,HZ:()=>ev,Ll:()=>Z,Nj:()=>ew,QQ:()=>eE,Rf:()=>eS,Tr:()=>ek,ZB:()=>eO,eW:()=>ex,fX:()=>M,fZ:()=>Q,xv:()=>D});var P=(N={})=>Object.keys(N).reduce((I,T)=>Object.assign(I,{[M(T)]:N[T]}),{}),D=(N={})=>Object.keys(N).reduce((I,T)=>Object.assign(I,{[R(T)]:N[T]}),{});function M(N){let I=/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g;return R(N).replace(I,function(N){return"-"+N.toLowerCase()})}function R(N){return(N=(N=N.replace(/[-_ ]+/g," ")).charAt(0).toLowerCase()+N.slice(1)).split(/\s+/).map((N,I)=>0===I?N:N.charAt(0).toUpperCase()+N.slice(1)).join("")}var L=function(N,I){var T={};for(var P in N)Object.prototype.hasOwnProperty.call(N,P)&&0>I.indexOf(P)&&(T[P]=N[P]);if(null!=N&&"function"==typeof Object.getOwnPropertySymbols)for(var D=0,P=Object.getOwnPropertySymbols(N);D<P.length;D++)0>I.indexOf(P[D])&&Object.prototype.propertyIsEnumerable.call(N,P[D])&&(T[P[D]]=N[P[D]]);return T};function $(N,{name:I}){if(I.charAt(0)!=I.charAt(0).toUpperCase())throw Error("Custom types must start with a capital letter");F[I]=N}var F={},B=N=>{var{properties:I}=N;return Object.assign(Object.assign({},L(N,["properties"])),{type:"object",properties:{name:{type:"string"},displayName:{type:"string"},id:{type:"string"},url:{type:"string"},fields:U(I)}})};function U(N={}){return{type:"object",properties:Object.keys(N).reduce((I,T)=>{let P=N[T],{title:D}=P;return L(P,["title"]),Object.assign(Object.assign({},I),{[T]:{type:"object",properties:{value:Object.assign({title:D||T},N[T])}}})},{})}}var H={Link:()=>({type:"object",properties:{href:{required:!0,type:"string",title:"URL",description:"The URL of the link, except for media items, for which the Url property contains the path to the media item relative to /Sitecore/Media Library."},text:{type:"string",title:"Text",description:"The text content of the HTML <a> element."},linktype:{type:"string",enum:["internal","external","media","anchor","mailto","javascript"],default:"internal",title:"Target",description:"The target attribute of the HTML <a> element."},title:{type:"string",title:"Title",description:"The title attribute of the HTML <a> element."},class:{type:"string",title:"Class Name",description:"The class attribute of the HTML <a> element."},target:{type:"string",title:"Target",description:"The target attribute of the HTML <a> element.",enum:["","_blank","_self","_parent","_top"]},anchor:{type:"string",title:"Anchor",description:"The name attribute of the HTML <a> element, without the leading hash character (â#â)."},querystring:{type:"string",title:"Query String",description:"Query string parameters to add to the URL."}}}),DropLink:B,DropTree:B,File:()=>({type:"object",properties:{src:{type:"string",title:"Source",description:"The URL of the file."},title:{type:"string",title:"Title",description:"Title of a file"},displayName:{type:"string",title:"Display name",description:"Display name of a file"}}}),Date:()=>({type:"string",format:"date"}),Datetime:()=>({type:"string",format:"date-time"}),RichText:()=>({type:"string"}),Image:N=>({type:"object",properties:Object.assign({src:{type:"string"}},N.properties)}),SingleLineText:()=>{},MultiLineText:()=>({type:"string"}),Checkbox:()=>({type:"boolean"}),String:()=>({type:"string"}),Number:()=>({type:"number"}),Boolean:()=>({type:"boolean"}),Item:B,List:N=>{var{properties:I}=N;return Object.assign(Object.assign({},L(N,["properties"])),{type:"array",items:{type:"object",properties:{name:{type:"string"},displayName:{type:"string"},id:{type:"string"},url:{type:"string"},fields:U(I)}}})}};function z(N,I){var T={};for(var P in N){let D=N[P];D&&"object"==typeof D?Array.isArray(D)?T[P]=D.map(N=>"object"==typeof N&&N?z(N,I):N):T[P]=z(I(D),I):T[P]=N[P]}return T}function W(N,I={}){return z(N=q(Object.assign({type:"object",properties:{},required:[]},N)),N=>N.properties?q(N,I):N)}function q(N,I={}){var T;let P=Object.assign({},N);return P.properties&&(P.required=(null==(T=N.required)?void 0:T.slice())||[],P.properties=Object.keys(P.properties).reduce((N,T)=>{var D;let R=P.properties[T],L=null==(D=F[null==R?void 0:R.type])?void 0:D.call(F,R),$=Object.assign(Object.assign(Object.assign({},L),R),{type:(null==L?void 0:L.type)||R.type,default:I.hasOwnProperty(T)?I[T]:R.default,title:R.title||M(T).split("-").map(N=>N.charAt(0).toUpperCase()+N.slice(1).toLowerCase()).join(" ")});return(null!=R&&R.properties||null!=L&&L.properties)&&($.properties=Object.assign({},(null==L?void 0:L.properties)||(null==R?void 0:R.properties)),Object.keys((null==L?void 0:L.properties)||{}
1307).forEach(N=>{var I,T;$.properties[N]=Object.assign(Object.assign({},null==(I=null==L?void 0:L.properties)?void 0:I[N]),null==(T=null==R?void 0:R.properties)?void 0:T[N])})),(null!=R&&R.items||null!=L&&L.items)&&($.items=(null==L?void 0:L.items)||(null==R?void 0:R.items)),void 0===$.default&&delete $.default,"required"in $&&"boolean"==typeof $.required&&(-1==P.required.indexOf(T)&&P.required.push(T),delete $.required),Object.assign(N,{[T]:$})},{})),Object.assign({type:"object"},P)}Object.keys(H).forEach(N=>{$(H[N],{name:N})});var G=(N,I)=>{var T,P,D,M;let R=Object.assign({},N);for(var L in I)"object"==typeof I[L]&&I[L]&&(((null==(T=I[L])?void 0:T.type)=="integer"||(null==(P=I[L])?void 0:P.type)=="number")&&(R[L]=Object.assign(Object.assign({},R[L]),{"ui:options":{widget:"updown"}})),null!=(D=I[L])&&D.ui&&(R[L]=Object.assign(Object.assign({},R[L]),{"ui:options":Object.assign(Object.assign({},null==(M=R[L])?void 0:M["ui:options"]),I[L].ui)})),R=Object.assign(Object.assign({},R),{[L]:I[L].items?{items:G(R[L],I[L].items.properties)}:G(R[L],I[L].properties||{})}));return R};function K(N,I){switch(I){case"string":default:return N;case"object":try{return"object"==typeof N&&null!=N?N:JSON.parse(N)}catch(N){return null}case"array":try{return Array.isArray(N)?N:JSON.parse(N)}catch(N){return null}case"number":return parseFloat(N);case"integer":return parseInt(N);case"boolean":return"true"==N||"1"==N}}function V(N,I){return Object.keys(I).reduce((T,P)=>{let D=I[P],M=R(P),L=null==N?void 0:N.properties[M],$=K(D,null==L?void 0:L.type);return null==$||P.startsWith("data-attribute")||["class","id","contenteditable"].includes(P)?T:Object.assign(Object.assign({},T),{[M]:$})},{})}function Y(N,I){return Object.assign(Object.assign({},J(N)),V(N,I))}function J(N){return Object.keys(N.properties).reduce((I,T)=>{var P,D;return(null==(P=N.properties[T])?void 0:P.default)!=null?Object.assign(Object.assign({},I),{[T]:null==(D=N.properties[T])?void 0:D.default}):I},{})}var Q="u">typeof window?window.BYOCDatasources||(window.BYOCDatasources={}):{};function Z(N,I){if("function"!=typeof N)throw Error("The first argument of registerDatasource must be a function returning DataSettings or Promise of data");if(!I.id)throw Error("Missing 'id' property in input");if(!/^[a-zA-Z0-9-_]+$/.test(I.id))throw Error("Invalid 'id' property in input. 'id' should only contain alphanumeric characters, hyphens, and underscores.");Q[I.id]=Object.assign(Object.assign({},ee(I)),{handler:N}),el()}function X(N){return Q[N]}function ee(N){let{id:I,name:T,title:P,properties:D,sample:M,schema:R,description:L=null,type:$="object"}=N;return{id:I,description:L,sample:M,name:T||P||I,handler:N=>N,schema:R||D?W(Object.assign(Object.assign({},R||{properties:D,type:$}),{title:(null==R?void 0:R.title)||P||T})):void 0}}var et,er=!1,en=0,ea=!1,ei=150,eo=200;function es(){"u"<typeof window||ea||(ea=!0,window.addEventListener("message",N=>{try{"register-datasources-ack"===("string"==typeof N.data?JSON.parse(N.data):N.data).action&&(er=!0,en=0,clearTimeout(et))}catch(N){}}))}function el(){if(clearTimeout(et),"u">typeof window&&window.parent!==window){es(),er=!1,en=0;let N=()=>{var I;er||en>=ei||(null==(I=window.parent)||I.postMessage(JSON.stringify({action:"register-datasources",data:Object.values(Q)}),"*"),en++,!er&&en<ei&&(et=setTimeout(N,eo)))};et=setTimeout(N,30)}}function ec(N,I){let T=Q[N];return null!=T&&T.handler?T.handler(I):I}el();var eu=function(N,I){var T={};for(var P in N)Object.prototype.hasOwnProperty.call(N,P)&&0>I.indexOf(P)&&(T[P]=N[P]);if(null!=N&&"function"==typeof Object.getOwnPropertySymbols)for(var D=0,P=Object.getOwnPropertySymbols(N);D<P.length;D++)0>I.indexOf(P[D])&&Object.prototype.propertyIsEnumerable.call(N,P[D])&&(T[P[D]]=N[P[D]]);return T};function ed(N,I,T){let{thumbnail:P="https://feaasstatic.blob.core.windows.net/assets/thumbnails/byoc.svg",name:D,id:M=N.name,group:R=null,ui:L,isHidden:$=!1,datasourceIds:F=[],links:B={},meta:U={},uiSchema:H,schema:z}=N,q=eu(N,["thumbnail","name","id","group","ui","isHidden","datasourceIds","links","meta","uiSchema","schema"]),K=H||L||{},V=W(Object.assign(Object.assign({description:"External component"},z||q||{}),{type:"object"}),T),Y=G(K,V.properties||{});return{component:I||(()=>null),name:D,schema:V,uiSchema:Y,thumbnail:P,group:R||"Default collection",isHidden:$,id:M,datasourceIds:F,links:B,meta:U,title:(null==V?void 0:V.title)||(null==q?void 0:q.title)||D}}var ef,eh=!1,ep=0,em=!1,eg=150,ey=200,eb="u">typeof HTMLElement?HTMLElement:"u">typeof windowJSDOM?windowJSDOM.HTMLElement:class{setAttribute(){}},ev="u">typeof window?window.BYOCComponents||(window.BYOCComponents={}):{};function ew(N,I,T={}){if(!(null!=I&&I.name))throw Error("Could not register external
1307component. Please make sure you provide a name in the options"+JSON.stringify(I));let P=ed(I,N,T);ev[P.id]=P,ex(N)&&eC.register("byoc-"+M(I.name),void 0,N),ek()}function ex(N){return N&&"prototype"in N&&"setAttribute"in N.prototype}function eA(N,I={}){var T;let P=null==(T=eE(N))?void 0:T.schema;return P?Y(P,I):I}function eE(N){if("string"!=typeof N){if(N&&"schema"in N)return N;throw Error(`Component name should be a string, got ${typeof N}`)}let[I,T]=N.split("?");var P=ev[I];if(T){let I=ev[N];if(!I&&!P)return null;I&&(P=Object.assign(Object.assign(Object.assign({},P),I),{component:I.component||(null==P?void 0:P.component)})),T.split(/\&/g).forEach(N=>{var I,T,D;let[M,R]=N.split("="),L=(null==(I=P.schema.properties)?void 0:I[M])||{type:"string"};P=Object.assign(Object.assign({},P),{schema:Object.assign(Object.assign({},P.schema),{properties:Object.assign(Object.assign({},P.schema.properties),{[M]:Object.assign(Object.assign({},L),{default:K(decodeURIComponent(R),L.type)})})}),uiSchema:Object.assign(Object.assign({},P.uiSchema),{[M]:Object.assign(Object.assign({},P.uiSchema[M]),{"ui:widget":null!=(D=null==(T=P.uiSchema[M])?void 0:T["ui:widget"])?D:"hidden"})})})})}return P}function eS(N){let{componentName:I,className:T,fallbackWrapper:D,fallback:R,suppressHydrationWarning:L,_dynamic:$,datasources:F}=N,B=eu(N,["componentName","className","fallbackWrapper","fallback","suppressHydrationWarning","_dynamic","datasources"]);try{var U="string"==typeof F?JSON.parse(F):F}catch(N){}let H=Object.values(U||{}).find(N=>N&&!Array.isArray(N)&&Object.keys(N).length>0),z=Object.assign(Object.assign(Object.assign({},H),eA(I,Object.assign(Object.assign({},H),B))),U?{datasources:U}:{}),W=Object.assign(Object.assign({"data-external-id":I},P(z)),{suppressHydrationWarning:!0,class:T});return eN.forEach(N=>{Object.assign(W,{[M(N)]:ej[N]})}),Object.keys(W).forEach(N=>{let I=W[N];if(I&&"object"==typeof I&&"class"!=N&&"children"!=N)try{Object.assign(W,{[N]:JSON.stringify(I)})}catch(I){delete W[N]}("function"==typeof I||null==I)&&delete W[N]}),{attributes:W,properties:z,merged:Object.assign(Object.assign({},ej),z)}}function e_(){"u"<typeof window||em||(em=!0,window.addEventListener("message",N=>{try{"register-components-ack"===("string"==typeof N.data?JSON.parse(N.data):N.data).action&&(eh=!0,ep=0,clearTimeout(ef))}catch(N){}}))}function ek(){if(clearTimeout(ef),"u">typeof window&&window.parent!==window){e_(),eh=!1,ep=0;let N=()=>{var I;eh||ep>=eg||(null==(I=window.parent)||I.postMessage(JSON.stringify({action:"register-components",data:Object.values(ev)}),"*"),ep++,!eh&&ep<eg&&(ef=setTimeout(N,ey)))};ef=setTimeout(N,30)}}ek();var eC=class extends eb{connectedCallback(){try{JSON.parse(String(this.getAttribute("components"))).forEach(N=>{eE(N.id)||ew(null,N)}),JSON.parse(String(this.getAttribute("datasources"))).forEach(N=>{X(N.id)||Z(N=>N,N)})}catch(N){}}static register(N,I,T=this){null==I&&(I="u">typeof window?window:void 0),I&&!I.customElements.get(N)&&I.customElements.define(N,class extends T{})}},ej={};function eO(N){ej=N}var eN=["sitecoreEdgeUrl","sitecoreEdgeContextId"];eC.register("byoc-registration")},81943:(N,I,T)=>{"use strict";T.d(I,{g:()=>$});var P=T(37876),D=T(10409),M=T(47137),R=T(36379);let L=(0,M.F)("bg-brunel-yellow",{variants:{orientation:{horizontal:"h-1.5 md:h-1",vertical:"w-1.5 md:w-2"}}}),$=({orientation:N,length:I,className:T})=>{let M="horizontal"===N?{width:`${I}px`}:{height:`${I}px`};return(0,P.jsx)(D.a,{className:(0,R.cn)(L({orientation:N}),T),style:M})}},82095:(N,I,T)=>{"use strict";function P(){throw Object.defineProperty(Error("`unauthorized()` is experimental and only allowed to be used when `experimental.authInterrupts` is enabled."),"__NEXT_ERROR_CODE",{value:"E411",enumerable:!1,configurable:!0})}Object.defineProperty(I,"__esModule",{value:!0}),Object.defineProperty(I,"unauthorized",{enumerable:!0,get:function(){return P}}),T(64494).HTTP_ERROR_FALLBACK_ERROR_CODE,("function"==typeof I.default||"object"==typeof I.default&&null!==I.default)&&void 0===I.default.__esModule&&(Object.defineProperty(I.default,"__esModule",{value:!0}),Object.assign(I.default,I),N.exports=I.default)},82420:N=>{"use strict";function I(N){this._maxSize=N,this.clear()}I.prototype.clear=function(){this._size=0,this._values=Object.create(null)},I.prototype.get=function(N){return this._values[N]},I.prototype.set=function(N,I){return this._size>=this._maxSize&&this.clear(),!(N in this._values)&&this._size++,this._values[N]=I};var T=/[^.^\]^[]+|(?=\[\]|\.\.)/g,P=/^\d+$/,D=/^\d/,M=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,R=/^\s*(['"]?)(.*?)(\1)\s*$/,L=512,$=new I(512),F=new I(L),B=new I(L);function U(N){return $.get(N)||$.set(N,H(N).map(function(N){return N.replace(R,"$2")}))}function H(N){return N.match(T)||[""]}function z(N,I,T){var P,D,M,R,L=N.length;for(D=0;D<L;D++)(P=N[D])&&(K(P)&&(P='"'+P+'"'),M=!(R=W(P))&&/^\d+$/.test(P),I.call(T,P,R,M,D,N))}function W(N){return"string"==typeof N&&N&&-1!==["'",'"'].indexOf(N.charAt(0))}function q(N){return N.match(D)&&!N.match(P)}function G(N){return M.test(N)}function K(N){return!W(N)&&(q(N)||G(N))}N.exports={Cache:I,split:H,normalizePath:U,setter:function(N){var I=U(N);return F.get(N)||F.set(N,function(N,T){for(var P=0,D=I.length,M=N;P<D-1;){var R=I[P];if("__proto__"===R||"constructor"===R||"prototype"===R)return N;M=M[I[P++]]}M[I[P]]=T})},getter:function(N,I){var T=U(N);return B.get(N)||B.set(N,function(N){for(var P=0,D=T.length;P<D;)if(null==N&&I)return;else N=N[T[P++]];return N})},join:function(N){return N.reduce(function(N,I){return N+(W(I)||P.test(I)?"["+I+"]":(N?".":"")+I)},"")}
1307,forEach:function(N,I,T){z(Array.isArray(N)?N:H(N),I,T)}}},82730:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),function(N,I){for(var T in I)Object.defineProperty(N,T,{enumerable:!0,get:I[T]})}(I,{ReadonlyURLSearchParams:function(){return P.ReadonlyURLSearchParams},RedirectType:function(){return B},forbidden:function(){return R.forbidden},notFound:function(){return M.notFound},permanentRedirect:function(){return D.permanentRedirect},redirect:function(){return D.redirect},unauthorized:function(){return L.unauthorized},unstable_isUnrecognizedActionError:function(){return F},unstable_rethrow:function(){return $.unstable_rethrow}});let P=T(8551),D=T(89753),M=T(54755),R=T(99230),L=T(82095),$=T(1705);function F(){throw Object.defineProperty(Error("`unstable_isUnrecognizedActionError` can only be used on the client."),"__NEXT_ERROR_CODE",{value:"E776",enumerable:!1,configurable:!0})}let B={push:"push",replace:"replace"};("function"==typeof I.default||"object"==typeof I.default&&null!==I.default)&&void 0===I.default.__esModule&&(Object.defineProperty(I.default,"__esModule",{value:!0}),Object.assign(I.default,I),N.exports=I.default)},82752:(N,I,T)=>{"use strict";T.d(I,{r:()=>P});let P=N=>{if(N.response){let I=N.response.data?.message||N.message;return Promise.reject(Error(`Status [${N.response.status}]: ${I}`))}if(!N.request)return Promise.reject(Error(N.message));{let I=N.code?` [${N.code}]`:"";return Promise.reject(Error(`No response received from upstream service${I}.`))}}},82826:(N,I,T)=>{"use strict";T.r(I),T.d(I,{isFacetOptionVisible:()=>L,resolveAllowedMultipleFacets:()=>P,resolveFacetOptions:()=>D,sortFacetOptions:()=>R});let P=N=>N?N.filter(N=>N.allowMultiSection).map(N=>N.category??""):[],D=(N,I,T,P)=>I.includes(N)?T?.[N]?.reduce((I,T)=>(I?.push({...T,count:P?.[N]?.find(N=>N.value===T.value)?.count??0}),I),[])??[]:P?.[N]??[],M=N=>"string"==typeof N?.value?String(N.value):N.value,R=(N,I,T,P,D)=>{let R=[...N].sort((N,P)=>{let D=T.get(I)?.includes(M(N))??!1;return D===(T.get(I)?.includes(M(P))??!1)?0:D?-1:1}).sort((N,I)=>(I.count??0)-(N.count??0));return P.includes(I)&&(T.get(I)??[]).length>0&&(R=R.sort((N,P)=>{let M="string"==typeof N?.value?N.value:"",R="string"==typeof P?.value?P.value:"",L=D(I,M)??"",$=D(I,R)??"";return T.get(I)?.includes(M)||T.get(I)?.includes(R)?1:L.localeCompare($)})),R},L=(N,I,T,P)=>!!N&&(I>0||T)&&!P},82837:(N,I,T)=>{"use strict";T.r(I),T.d(I,{default:()=>z});var P=T(37876),D=T(7111),M=T(98199),R=T(66963),L=T(63366),$=T(36379),F=T(42339);let B=N=>{let I=M.C[N.type],T=1===Number(N.taskId),P="RegisterHours"===I,D="HoursPortal"===N.source;return!N.isDone&&(T||P||D)},U=(N,I,T=B(N))=>{if(T)return I?.["notification-action-required"]??"Write your hours";let P=M.C[N.type];return"Article"===P||"PersonalMessage"===P?I?.["notification-information"]??"Information":I?.["notification-announcement"]??"Announcement"},H=(N,I)=>{if(I)return"app-issue";switch(M.C[N.type]){case"Article":case"BeSmart":return"additional-info";case"RegisterHours":return"calendar";case"PersonalMessage":return"messages";default:return"notification"}},z=({notifications:N,onBack:I,onCompleteNotification:T,onOpenNotification:M,dictionary:z})=>{let W,q=[...N].sort((N,I)=>new Date(I.createdDate).getTime()-new Date(N.createdDate).getTime());return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("div",{className:"flex items-center justify-between gap-3 border-b border-accent-iron bg-white px-4 py-2",children:(0,P.jsxs)("div",{className:"flex items-center gap-3",children:[(0,P.jsx)("button",{onClick:I,className:"block rounded-xl bg-accent-iron p-2 font-medium md:hidden",children:"â"}),(0,P.jsx)(R.e,{initials:(0,F.IM)(D.MY_BRUNEL_SENDER)}),(0,P.jsx)("p",{className:"text-sm font-semibold text-gray-800",children:D.MY_BRUNEL_SENDER})]})}),(0,P.jsx)("div",{className:"flex-1 space-y-3 overflow-y-auto px-4 py-4 md:px-6",children:0===q.length?(0,P.jsx)("div",{className:"flex h-full items-center justify-center text-sm text-gray-400",children:z?.["no-messages-found"]??"[no-messages-found]"}):(W="",q.map(N=>{let I=new Date(N.createdDate),D=new Date,R=new Date;R.setDate(D.getDate()-1);let F=I.toDateString()===D.toDateString(),q=I.toDateString()===R.toDateString(),G=F?z?.["date-today"]??"date-today":q?z?.["date-yesterday"]??"date-yesterday":I.toLocaleDateString(void 0,{day:"numeric",month:"long",year:"numeric"}),K=G!==W;W=G;let V=B(N),Y=U(N,z,V),J=H(N,V);return(0,P.jsxs)("div",{children:[K&&(0,P.jsxs)("div",{className:"mx-auto my-4 flex w-full max-w-4xl items-center gap-3",children:[(0,P.jsx)("div",{className:"h-px flex-1 bg-accent-iron"}),(0,P.jsx)("span",{className:"text-xs text-gray-400",children:G}),(0,P.jsx)("div",{className:"h-px flex-1 bg-accent-iron"})]}),(0,P.jsxs)("div",{className:(0,$.cn)("mx-auto w-full max-w-4xl overflow-hidden rounded-sm border border-l-4 border-accent-iron border-l-brunel-yellow bg-white px-4 py-3 text-sm text-brunel-dark-grey shadow-sm md:px-5",V&&"border-brunel-yellow bg-brunel-yellow/10"),
1307children:[(0,P.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,P.jsxs)("div",{className:"flex min-w-0 items-center gap-2 text-xs font-semibold text-ui-grey uppercase",children:[(0,P.jsx)(L.In,{name:J,size:"xsmall",color:"ui-grey",className:"shrink-0"}),(0,P.jsx)("span",{className:"truncate",children:Y})]}),(0,P.jsx)("time",{className:"shrink-0 text-xs text-ui-grey italic",children:I.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})})]}),(0,P.jsx)("p",{className:"mt-2 text-base font-semibold wrap-break-word whitespace-pre-wrap text-brunel-dark-grey",children:N.title}),N.description&&(0,P.jsx)("p",{className:"mt-1 text-sm wrap-break-word whitespace-pre-wrap text-brunel-dark-grey",children:N.description}),N.url&&(0,P.jsxs)("button",{type:"button",onClick:()=>M(N),className:"mt-3 inline-flex cursor-pointer items-center gap-2 text-xs font-bold text-accent-pacifika uppercase transition hover:text-brunel-dark-grey hover:underline",children:[N.actionLabel||z?.["general-open-link"]||"Open link",(0,P.jsx)(L.In,{name:"arrow-right",size:"xsmall",color:"accent-pacifika"})]}),(0,P.jsx)("div",{className:"mt-3 flex justify-end",children:(0,P.jsx)("button",{type:"button",onClick:()=>T(N),className:"flex size-9 cursor-pointer items-center justify-center rounded-full border border-accent-iron bg-white transition hover:border-brunel-dark-grey hover:bg-accent-pampas focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-brunel-yellow","aria-label":z?.["general-mark-done"]??"Mark notification as done",title:z?.["general-mark-done"]??"Mark notification as done",children:(0,P.jsx)(L.In,{name:"trash",size:"xsmall",color:"ui-grey"})})})]})]},N.userNotificationId)}))})]})}},82868:(N,I,T)=>{"use strict";var P,D;T.d(I,{Qa:()=>P}),function(N){class I{static pageTitle="h1-page-title"}N.General=I;class T{static base="header-component";static navSection=this.base+"-nav-section";static navItem=this.base+"-nav-item";static navLang=this.base+"-nav-language";static navSec=this.base+"-nav-security";static navLogin=this.base+"-nav-login";static baseMobile=this.base+"-nav-mobile"}N.HeaderComponent=T;class P{static base="footer-component"}N.FooterComponent=P;class D{static base="copyright-component"}N.CopyrightComponent=D;class M{static base="social-share-component"}N.SocialShareComponent=M;class R{static base="jobs-search-bar-component";static searchbar=this.base+"-searchbar"}N.JobsSearchBarComponent=R;class L{static base="jobs-search-component";static filters=this.base+"-filters";static results=this.base+"-results"}N.JobsSearchComponent=L;class ${static base="blog-overview-component";static results=this.base+"-results";static card=this.base+"-card"}N.BlogOverviewComponent=$}((D=P||(P={})).TestIds||(D.TestIds={}))},82909:(N,I,T)=>{"use strict";var P=T(81370),D=T(87247),M="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;I.Buffer=F,I.SlowBuffer=J,I.INSPECT_MAX_BYTES=50;var R=0x7fffffff;function L(){try{var N=new Uint8Array(1),I={foo:function(){return 42}};return Object.setPrototypeOf(I,Uint8Array.prototype),Object.setPrototypeOf(N,I),42===N.foo()}catch(N){return!1}}function $(N){if(N>R)throw RangeError('The value "'+N+'" is invalid for option "size"');var I=new Uint8Array(N);return Object.setPrototypeOf(I,F.prototype),I}function F(N,I,T){if("number"==typeof N){if("string"==typeof I)throw TypeError('The "string" argument must be of type string. Received type number');return z(N)}return B(N,I,T)}function B(N,I,T){if("string"==typeof N)return W(N,I);if(ArrayBuffer.isView(N))return G(N);if(null==N)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof N);if(eC(N,ArrayBuffer)||N&&eC(N.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(eC(N,SharedArrayBuffer)||N&&eC(N.buffer,SharedArrayBuffer)))return K(N,I,T);if("number"==typeof N)throw TypeError('The "value" argument must not be of type number. Received type number');var P=N.valueOf&&N.valueOf();if(null!=P&&P!==N)return F.from(P,I,T);var D=V(N);if(D)return D;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof N[Symbol.toPrimitive])return F.from(N[Symbol.toPrimitive]("string"),I,T);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof N)}function U(N){if("number"!=typeof N)throw TypeError('"size" argument must be of type number');
vendor: 18,526 bytes, line 1307
1307if(N<0)throw RangeError('The value "'+N+'" is invalid for option "size"')}function H(N,I,T){return(U(N),N<=0)?$(N):void 0!==I?"string"==typeof T?$(N).fill(I,T):$(N).fill(I):$(N)}function z(N){return U(N),$(N<0?0:0|Y(N))}function W(N,I){if(("string"!=typeof I||""===I)&&(I="utf8"),!F.isEncoding(I))throw TypeError("Unknown encoding: "+I);var T=0|Q(N,I),P=$(T),D=P.write(N,I);return D!==T&&(P=P.slice(0,D)),P}function q(N){for(var I=N.length<0?0:0|Y(N.length),T=$(I),P=0;P<I;P+=1)T[P]=255&N[P];return T}function G(N){if(eC(N,Uint8Array)){var I=new Uint8Array(N);return K(I.buffer,I.byteOffset,I.byteLength)}return q(N)}function K(N,I,T){var P;if(I<0||N.byteLength<I)throw RangeError('"offset" is outside of buffer bounds');if(N.byteLength<I+(T||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(P=void 0===I&&void 0===T?new Uint8Array(N):void 0===T?new Uint8Array(N,I):new Uint8Array(N,I,T),F.prototype),P}function V(N){if(F.isBuffer(N)){var I=0|Y(N.length),T=$(I);return 0===T.length||N.copy(T,0,0,I),T}return void 0!==N.length?"number"!=typeof N.length||ej(N.length)?$(0):q(N):"Buffer"===N.type&&Array.isArray(N.data)?q(N.data):void 0}function Y(N){if(N>=R)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+R.toString(16)+" bytes");return 0|N}function J(N){return+N!=N&&(N=0),F.alloc(+N)}function Q(N,I){if(F.isBuffer(N))return N.length;if(ArrayBuffer.isView(N)||eC(N,ArrayBuffer))return N.byteLength;if("string"!=typeof N)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof N);var T=N.length,P=arguments.length>2&&!0===arguments[2];if(!P&&0===T)return 0;for(var D=!1;;)switch(I){case"ascii":case"latin1":case"binary":return T;case"utf8":case"utf-8":return eA(N).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*T;case"hex":return T>>>1;case"base64":return e_(N).length;default:if(D)return P?-1:eA(N).length;I=(""+I).toLowerCase(),D=!0}}function Z(N,I,T){var P=!1;if((void 0===I||I<0)&&(I=0),I>this.length||((void 0===T||T>this.length)&&(T=this.length),T<=0||(T>>>=0)<=(I>>>=0)))return"";for(N||(N="utf8");;)switch(N){case"hex":return eh(this,I,T);case"utf8":case"utf-8":return el(this,I,T);case"ascii":return ed(this,I,T);case"latin1":case"binary":return ef(this,I,T);case"base64":return es(this,I,T);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ep(this,I,T);default:if(P)throw TypeError("Unknown encoding: "+N);N=(N+"").toLowerCase(),P=!0}}function X(N,I,T){var P=N[I];N[I]=N[T],N[T]=P}function ee(N,I,T,P,D){if(0===N.length)return -1;if("string"==typeof T?(P=T,T=0):T>0x7fffffff?T=0x7fffffff:T<-0x80000000&&(T=-0x80000000),ej(T*=1)&&(T=D?0:N.length-1),T<0&&(T=N.length+T),T>=N.length)if(D)return -1;else T=N.length-1;else if(T<0)if(!D)return -1;else T=0;if("string"==typeof I&&(I=F.from(I,P)),F.isBuffer(I))return 0===I.length?-1:et(N,I,T,P,D);if("number"==typeof I){if(I&=255,"function"==typeof Uint8Array.prototype.indexOf)if(D)return Uint8Array.prototype.indexOf.call(N,I,T);else return Uint8Array.prototype.lastIndexOf.call(N,I,T);return et(N,[I],T,P,D)}throw TypeError("val must be string, number or Buffer")}function et(N,I,T,P,D){var M,R=1,L=N.length,$=I.length;if(void 0!==P&&("ucs2"===(P=String(P).toLowerCase())||"ucs-2"===P||"utf16le"===P||"utf-16le"===P)){if(N.length<2||I.length<2)return -1;R=2,L/=2,$/=2,T/=2}function F(N,I){return 1===R?N[I]:N.readUInt16BE(I*R)}if(D){var B=-1;for(M=T;M<L;M++)if(F(N,M)===F(I,-1===B?0:M-B)){if(-1===B&&(B=M),M-B+1===$)return B*R}else -1!==B&&(M-=M-B),B=-1}else for(T+$>L&&(T=L-$),M=T;M>=0;M--){for(var U=!0,H=0;H<$;H++)if(F(N,M+H)!==F(I,H)){U=!1;break}if(U)return M}return -1}function er(N,I,T,P){T=Number(T)||0;var D=N.length-T;P?(P=Number(P))>D&&(P=D):P=D;var M=I.length;P>M/2&&(P=M/2);for(var R=0;R<P;++R){var L=parseInt(I.substr(2*R,2),16);if(ej(L))break;N[T+R]=L}return R}function en(N,I,T,P){return ek(eA(I,N.length-T),N,T,P)}function ea(N,I,T,P){return ek(eE(I),N,T,P)}function ei(N,I,T,P){return ek(e_(I),N,T,P)}function eo(N,I,T,P){return ek(eS(I,N.length-T),N,T,P)}function es(N,I,T){return 0===I&&T===N.length?P.fromByteArray(N):P.fromByteArray(N.slice(I,T))}function el(N,I,T){T=Math.min(N.length,T);for(var P=[],D=I;D<T;){var M,R,L,$,F=N[D],B=null,U=F>239?4:F>223?3:F>191?2:1;if(D+U<=T)switch(U){case 1:F<128&&(B=F);break;case 2:(192&(M=N[D+1]))==128&&($=(31&F)<<6|63&M)>127&&(B=$);break;case 3:M=N[D+1],R=N[D+2],(192&M)==128&&(192&R)==128&&($=(15&F)<<12|(63&M)<<6|63&R)>2047&&($<55296||$>57343)&&(B=$);break;case 4:M=N[D+1],R=N[D+2],L=N[D+3],(192&M)==128&&(192&R)==128&&(192&L)==128&&($=(15&F)<<18|(63&M)<<12|(63&R)<<6|63&L)>65535&&$<1114112&&(B=$)}null===B?(B=65533,U=1):B>65535&&(B-=65536,P.push(B>>>10&1023|55296),B=56320|1023&B),P.push(B),D+=U}return eu(P)}I.kMaxLength=0x7fffffff,F.TYPED_ARRAY_SUPPORT=L(),!F.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(F.prototype,"parent",{enumerable:!0,get:function(){if(F.isBuffer(this))return this.buffer}}),Object.defineProperty(F.prototype,"offset",{enumerable:!0,get:function(){if(F.isBuffer(this))return this.byteOffset}}),F.poolSize=8192,F.from=function(N,I,T){return B(N,I,T)},Object.setPrototypeOf(F.prototype,Uint8Array.prototype),Object.setPrototypeOf(F,Uint8Array),F.alloc=function(N,I,T){return H(N,I,T)},F.allocUnsafe=function(N){return z(N)},F.allocUnsafeSlow=function(N){return z(N)},F.isBuffer=function(N){return null!=N&&!0===N._isBuffer&&N!==F.prototype},F.compare=function(N,I){if(eC(N,Uint8Array)&&(N=F.from(N,N.offset,N.byteLength)),eC(I,Uint8Array)&&(I=F.from(I,I.offset,I.byteLength)),!F.isBuffer(N)||!F.isBuffer(I))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(N===I)return 0;for(var T=N.length,P=I.length,D=0,M=Math.min(T,P);D<M;++D)if(N[D]!==I[D]){T=N[D],P=I[D];break}return T<P?-1:+(P<T)},F.isEncoding=function(N){switch(String(N).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},F.concat=function(N,I){if(!Array.isArray(N))throw TypeError('"list" argument must be an Array of Buffers');if(0===N.length)return F.alloc(0);if(void 0===I)for(T=0,I=0;T<N.length;++T)I+=N[T].length;var T,P=F.allocUnsafe(I),D=0;for(T=0;T<N.length;++T){var M=N[T];if(eC(M,Uint8Array))D+M.length>P.length?F.from(M).copy(P,D):Uint8Array.prototype.set.call(P,M,D);else if(F.isBuffer(M))M.copy(P,D);else throw TypeError('"list" argument must be an Array of Buffers');D+=M.length}return P},F.byteLength=Q,F.prototype._isBuffer=!0,F.prototype.swap16=function(){var N=this.length;if(N%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var I=0;I<N;I+=2)X(this,I,I+1);return this},F.prototype.swap32=function(){var N=this.length;if(N%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var I=0;I<N;I+=4)X(this,I,I+3),X(this,I+1,I+2);return this},F.prototype.swap64=function(){var N=this.length;if(N%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var I=0;I<N;I+=8)X(this,I,I+7),X(this,I+1,I+6),X(this,I+2,I+5),X(this,I+3,I+4);return this},F.prototype.toString=function(){var N=this.length;return 0===N?"":0==arguments.length?el(this,0,N):Z.apply(this,arguments)},F.prototype.toLocaleString=F.prototype.toString,F.prototype.equals=function(N){if(!F.isBuffer(N))throw TypeError("Argument must be a Buffer");return this===N||0===F.compare(this,N)},F.prototype.inspect=function(){var N="",T=I.INSPECT_MAX_BYTES;return N=this.toString("hex",0,T).replace(/(.{2})/g,"$1 ").trim(),this.length>T&&(N+=" ... "),"<Buffer "+N+">"},M&&(F.prototype[M]=F.prototype.inspect),F.prototype.compare=function(N,I,T,P,D){if(eC(N,Uint8Array)&&(N=F.from(N,N.offset,N.byteLength)),!F.isBuffer(N))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof N);if(void 0===I&&(I=0),void 0===T&&(T=N?N.length:0),void 0===P&&(P=0),void 0===D&&(D=this.length),I<0||T>N.length||P<0||D>this.length)throw RangeError("out of range index");if(P>=D&&I>=T)return 0;if(P>=D)return -1;if(I>=T)return 1;if(I>>>=0,T>>>=0,P>>>=0,D>>>=0,this===N)return 0;for(var M=D-P,R=T-I,L=Math.min(M,R),$=this.slice(P,D),B=N.slice(I,T),U=0;U<L;++U)if($[U]!==B[U]){M=$[U],R=B[U];break}return M<R?-1:+(R<M)},F.prototype.includes=function(N,I,T){return -1!==this.indexOf(N,I,T)},F.prototype.indexOf=function(N,I,T){return ee(this,N,I,T,!0)},F.prototype.lastIndexOf=function(N,I,T){return ee(this,N,I,T,!1)},F.prototype.write=function(N,I,T,P){if(void 0===I)P="utf8",T=this.length,I=0;else if(void 0===T&&"string"==typeof I)P=I,T=this.length,I=0;else if(isFinite(I))I>>>=0,isFinite(T)?(T>>>=0,void 0===P&&(P="utf8")):(P=T,T=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var D=this.length-I;if((void 0===T||T>D)&&(T=D),N.length>0&&(T<0||I<0)||I>this.length)throw RangeError("Attempt to write outside buffer bounds");P||(P="utf8");for(var M=!1;;)switch(P){case"hex":return er(this,N,I,T);case"utf8":case"utf-8":return en(this,N,I,T);case"ascii":case"latin1":case"binary":return ea(this,N,I,T);case"base64":return ei(this,N,I,T);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return eo(this,N,I,T);default:if(M)throw TypeError("Unknown encoding: "+P);P=(""+P).toLowerCase(),M=!0}},F.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ec=4096;function eu(N){var I=N.length;if(I<=ec)return String.fromCharCode.apply(String,N);for(var T="",P=0;P<I;)T+=String.fromCharCode.apply(String,N.slice(P,P+=ec));return T}function ed(N,I,T){var P="";T=Math.min(N.length,T);for(var D=I;D<T;++D)P+=String.fromCharCode(127&N[D]);return P}function ef(N,I,T){var P="";T=Math.min(N.length,T);for(var D=I;D<T;++D)P+=String.fromCharCode(N[D]);return P}function eh(N,I,T){var P=N.length;(!I||I<0)&&(I=0),(!T||T<0||T>P)&&(T=P);for(var D="",M=I;M<T;++M)D+=eO[N[M]];return D}function ep(N,I,T){for(var P=N.slice(I,T),D="",M=0;M<P.length-1;M+=2)D+=String.fromCharCode(P[M]+256*P[M+1]);return D}function em(N,I,T){if(N%1!=0||N<0)throw RangeError("offset is not uint");if(N+I>T)throw RangeError("Trying to access beyond buffer length")}function eg(N,I,T,P,D,M){if(!F.isBuffer(N))throw TypeError('"buffer" argument must be a Buffer instance');if(I>D||I<M)throw RangeError('"value" argument is out of bounds');if(T+P>N.length)throw RangeError("Index out of range")}function ey(N,I,T,P,D,M){if(T+P>N.length||T<0)throw RangeError("Index out of range")}function eb(N,I,T,P,M){return I*=1,T>>>=0,M||ey(N,I,T,4,34028234663852886e22,-34028234663852886e22),D.write(N,I,T,P,23,4),T+4}function ev(N,I,T,P,M){return I*=1,T>>>=0,M||ey(N,I,T,8,17976931348623157e292,-17976931348623157e292),D.write(N,I,T,P,52,8),T+8}F.prototype.slice=function(N,I){var T=this.length;N=~~N,I=void 0===I?T:~~I,N<0?(N+=T)<0&&(N=0):N>T&&(N=T),I<0?(I+=T)<0&&(I=0):I>T&&(I=T),I<N&&(I=N);var P=this.subarray(N,I);return Object.setPrototypeOf(P,F.prototype),P},F.prototype.readUintLE=F.prototype.readUIntLE=function(N,I,T){N>>>=0,I>>>=0,T||em(N,I,this.length);for(var P=this[N],D=1,M=0;++M<I&&(D*=256);)P+=this[N+M]*D;return P},F.prototype.readUintBE=F.prototype.readUIntBE=function(N,I,T){N>>>=0,I>>>=0,T||em(N,I,this.length);for(var P=this[N+--I],D=1;I>0&&(D*=256);)P+=this[N+--I]*D;return P},F.prototype.readUint8=F.prototype.readUInt8=function(N,I){return N>>>=0,I||em(N,1,this.length),this[N]},F.prototype.readUint16LE=F.prototype.readUInt16LE=function(N,I){return N>>>=0,I||em(N,2,this.length),this[N]|this[N+1]<<8},F.prototype.readUint16BE=F.prototype.readUInt16BE=function(N,I){return N>>>=0,I||em(N,2,this.length),this[N]<<8|this[N+1]},F.prototype.readUint32LE=F.prototype.readUInt32LE=function(N,I){return N>>>=0,I||em(N,4,this.length),(this[N]|this[N+1]<<8|this[N+2]<<16)+0x1000000*this[N+3]},F.prototype.readUint32BE=F.prototype.readUInt32BE=function(N,I){return N>>>=0,I||em(N,4,this.length),0x1000000*this[N]+(this[N+1]<<16|this[N+2]<<8|this[N+3])},F.prototype.readIntLE=function(N,I,T){N>>>=0,I>>>=0,T||em(N,I,this.length);for(var P=this[N],D=1,M=0;++M<I&&(D*=256);)P+=this[N+M]*D;return P>=(D*=128)&&(P-=Math.pow(2,8*I)),P},F.prototype.readIntBE=function(N,I,T){N>>>=0,I>>>=0,T||em(N,I,this.length);for(var P=I,D=1,M=this[N+--P];P>0&&(D*=256);)M+=this[N+--P]*D;return M>=(D*=128)&&(M-=Math.pow(2,8*I)),M},F.prototype.readInt8=function(N,I){return(N>>>=0,I||em(N,1,this.length),128&this[N])?-((255-this[N]+1)*1):this[N]},F.prototype.readInt16LE=function(N,I){N>>>=0,I||em(N,2,this.length);var T=this[N]|this[N+1]<<8;return 32768&T?0xffff0000|T:T},F.prototype.readInt16BE=function(N,I){N>>>=0,I||em(N,2,this.length);var T=this[N+1]|this[N]<<8;return 32768&T?0xffff0000|T:T},F.prototype.readInt32LE=function(N,I){return N>>>=0,I||em(N,4,this.length),this[N]|this[N+1]<<8|this[N+2]<<16|this[N+3]<<24},F.prototype.readInt32BE=function(N,I){return N>>>=0,I||em(N,4,this.length),this[N]<<24|this[N+1]<<16|this[N+2]<<8|this[N+3]},F.prototype.readFloatLE=function(N,I){return N>>>=0,I||em(N,4,this.length),D.read(this,N,!0,23,4)},F.prototype.readFloatBE=function(N,I){return N>>>=0,I||em(N,4,this.length),D.read(this,N,!1,23,4)},F.prototype.readDoubleLE=function(N,I){return N>>>=0,I||em(N,8,this.length),D.read(this,N,!0,52,8)},F.prototype.readDoubleBE=function(N,I){return N>>>=0,I||em(N,8,this.length),D.read(this,N,!1,52,8)},F.prototype.writeUintLE=F.prototype.writeUIntLE=function(N,I,T,P){if(N*=1,I>>>=0,T>>>=0,!P){var D=Math.pow(2,8*T)-1;eg(this,N,I,T,D,0)}var M=1,R=0;for(this[I]=255&N;++R<T&&(M*=256);)this[I+R]=N/M&255;return I+T},F.prototype.writeUintBE=F.prototype.writeUIntBE=function(N,I,T,P){if(N*=1,I>>>=0,T>>>=0,!P){var D=Math.pow(2,8*T)-1;eg(this,N,I,T,D,0)}var M=T-1,R=1;for(this[I+M]=255&N;--M>=0&&(R*=256);)this[I+M]=N/R&255;return I+T},F.prototype.writeUint8=F.prototype.writeUInt8=function(N,I,T){return N*=1,I>>>=0,T||eg(this,N,I,1,255,0),this[I]=255&N,I+1},F.prototype.writeUint16LE=F.prototype.writeUInt16LE=function(N,I,T){return N*=1,I>>>=0,T||eg(this,N,I,2,65535,0),this[I]=255&N,this[I+1]=N>>>8,I+2},F.prototype.writeUint16BE=F.prototype.writeUInt16BE=function(N,I,T){return N*=1,I>>>=0,T||eg(this,N,I,2,65535,0),this[I]=N>>>8,this[I+1]=255&N,I+2},F.prototype.writeUint32LE=F.prototype.writeUInt32LE=function(N,I,T){return N*=1,I>>>=0,T||eg(this,N,I,4,0xffffffff,0),this[I+3]=N>>>24,this[I+2]=N>>>16,this[I+1]=N>>>8,this[I]=255&N,I+4},F.prototype.writeUint32BE=F.prototype.writeUInt32BE=function(N,I,T){return N*=1,I>>>=0,T||eg(this,N,I,4,0xffffffff,0),this[I]=N>>>24,this[I+1]=N>>>16,this[I+2]=N>>>8,this[I+3]=255&N,I+4},F.prototype.writeIntLE=function(N,I,T,P){if(N*=1,I>>>=0,!P){var D=Math.pow(2,8*T-1);eg(this,N,I,T,D-1,-D)}var M=0,R=1,L=0;for(this[I]=255&N;++M<T&&(R*=256);)N<0&&0===L&&0!==this[I+M-1]&&(L=1),this[I+M]=(N/R|0)-L&255;return I+T},F.prototype.writeIntBE=function(N,I,T,P){if(N*=1,I>>>=0,!P){var D=Math.pow(2,8*T-1);eg(this,N,I,T,D-1,-D)}var M=T-1,R=1,L=0;for(this[I+M]=255&N;--M>=0&&(R*=256);)N<0&&0===L&&0!==this[I+M+1]&&(L=1),this[I+M]=(N/R|0)-L&255;return I+T},F.prototype.writeInt8=function(N,I,T){return N*=1,I>>>=0,T||eg(this,N,I,1,127,-128),N<0&&(N=255+N+1),this[I]=255&N,I+1},F.prototype.writeInt16LE=function(N,I,T){return N*=1,I>>>=0,T||eg(this,N,I,2,32767,-32768),this[I]=255&N,this[I+1]=N>>>8,I+2},F.prototype.writeInt16BE=function(N,I,T){return N*=1,I>>>=0,T||eg(this,N,I,2,32767,-32768),this[I]=N>>>8,this[I+1]=255&N,I+2},F.prototype.writeInt32LE=function(N,I,T){return N*=1,I>>>=0,T||eg(this,N,I,4,0x7fffffff,-0x80000000),this[I]=255&N,this[I+1]=N>>>8,this[I+2]=N>>>16,this[I+3]=N>>>24,I+4},F.prototype.writeInt32BE=function(N,I,T){return N*=1,I>>>=0,T||eg(this,N,I,4,0x7fffffff,-0x80000000),N<0&&(N=0xffffffff+N+1),this[I]=N>>>24,this[I+1]=N>>>16,this[I+2]=N>>>8,this[I+3]=255&N,I+4},F.prototype.writeFloatLE=function(N,I,T){return eb(this,N,I,!0,T)},F.prototype.writeFloatBE=function(N,I,T){return eb(this,N,I,!1,T)},F.prototype.writeDoubleLE=function(N,I,T){return ev(this,N,I,!0,T)},F.prototype.writeDoubleBE=function(N,I,T){return ev(this,N,I,!1,T)},F.prototype.copy=function(N,I,T,P){if(!F.isBuffer(N))throw TypeError("argument should be a Buffer");if(T||(T=0),P||0===P||(P=this.length),I>=N.length&&(I=N.length),I||(I=0),P>0&&P<T&&(P=T),P===T||0===N.length||0===this.length)return 0;if(I<0)throw RangeError("targetStart out of bounds");if(T<0||T>=this.length)throw RangeError("Index out of range");if(P<0)throw RangeError("sourceEnd out of bounds");P>this.length&&(P=this.length),N.length-I<P-T&&(P=N.length-I+T);var D=P-T;return this===N&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(I,T,P):Uint8Array.prototype.set.call(N,this.subarray(T,P),I),D},F.prototype.fill=function(N,I,T,P){if("string"==typeof N){if("string"==typeof I?(P=I,I=0,T=this.length):"string"==typeof T&&(P=T,T=this.length),void 0!==P&&"string"!=typeof P)throw TypeError("encoding must be a string");if("string"==typeof P&&!F.isEncoding(P))throw TypeError("Unknown encoding: "+P);if(1===N.length){var D,M=N.charCodeAt(0);("utf8"===P&&M<128||"latin1"===P)&&(N=M)}}else"number"==typeof N?N&=255:"boolean"==typeof N&&(N=Number(N));if(I<0||this.length<I||this.length<T)throw RangeError("Out of range index");if(T<=I)return this;if(I>>>=0,T=void 0===T?this.length:T>>>0,N||(N=0),"number"==typeof N)for(D=I;D<T;++D)this[D]=N;else{var R=F.isBuffer(N)?N:F.from(N,P),L=R.length;if(0===L)throw TypeError('The value "'+N+'" is invalid for argument "value"');for(D=0;D<T-I;++D)this[D+I]=R[D%L]}return this};var ew=/[^+/0-9A-Za-z-_]/g;function ex(N){if((N=(N=N.split("=")[0]).trim().replace(ew,"")).length<2)return"";for(;N.length%4!=0;)N+="=";return N}function eA(N,I){I=I||1/0;for(var T,P=N.length,D=null,M=[],R=0;R<P;++R){if((T=N.charCodeAt(R))>55295&&T<57344){if(!D){if(T>56319||R+1===P){(I-=3)>-1&&M.push(239,191,189);continue}D=T;continue}if(T<56320){(I-=3)>-1&&M.push(239,191,189),D=T;continue}T=(D-55296<<10|T-56320)+65536}else D&&(I-=3)>-1&&M.push(239,191,189);if(D=null,T<128){if((I-=1)<0)break;M.push(T)}else if(T<2048){if((I-=2)<0)break;M.push(T>>6|192,63&T|128)}else if(T<65536){if((I-=3)<0)break;M.push(T>>12|224,T>>6&63|128,63&T|128)}else if(T<1114112){if((I-=4)<0)break;M.push(T>>18|240,T>>12&63|128,T>>6&63|128,63&T|128)}else throw Error("Invalid code point")}return M}function eE(N){for(var I=[],T=0;T<N.length;
1307++T)I.push(255&N.charCodeAt(T));return I}function eS(N,I){for(var T,P,D=[],M=0;M<N.length&&!((I-=2)<0);++M)P=(T=N.charCodeAt(M))>>8,D.push(T%256),D.push(P);return D}function e_(N){return P.toByteArray(ex(N))}function ek(N,I,T,P){for(var D=0;D<P&&!(D+T>=I.length)&&!(D>=N.length);++D)I[D+T]=N[D];return D}function eC(N,I){return N instanceof I||null!=N&&null!=N.constructor&&null!=N.constructor.name&&N.constructor.name===I.name}function ej(N){return N!=N}var eO=function(){for(var N="0123456789abcdef",I=Array(256),T=0;T<16;++T)for(var P=16*T,D=0;D<16;++D)I[P+D]=N[T]+N[D];return I}()},82919:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),function(N,I){for(var T in I)Object.defineProperty(N,T,{enumerable:!0,get:I[T]})}(I,{HeadersAdapter:function(){return L},ReadonlyHeadersError:function(){return D}});let P=T(81176);class D extends Error{constructor(){super("Headers cannot be modified. Read more: https://nextjs.org/docs/app/api-reference/functions/headers"),Object.defineProperty(this,"__NEXT_ERROR_CODE",{value:"E1176",enumerable:!1,configurable:!0})}static callable(){throw new D}}function M(N,I){return{get:N.get.bind(N),has:N.has.bind(N),getSetCookie:N.getSetCookie.bind(N),keys:N.keys.bind(N),values:N.values.bind(N),entries:N.entries.bind(N),[Symbol.iterator]:N[Symbol.iterator].bind(N),forEach(T,P){for(let[D,M]of N.entries())T.call(P,M,D,I)}}}function R(N,I,T){function*P(){for(let I of N.entries())T(I[0])||(yield I)}return{entries:P,[Symbol.iterator]:P,get:I=>T(I)?null:N.get(I),has:I=>!T(I)&&N.has(I),getSetCookie:()=>T("set-cookie")?[]:N.getSetCookie(),*keys(){for(let I of N.keys())T(I)||(yield I)},*values(){for(let[,N]of P())yield N},forEach(N,T){for(let[D,M]of P())N.call(T,M,D,I)}}}class L extends Headers{constructor(N){super(),this.headers=new Proxy(N,{get(I,T,D){if("symbol"==typeof T)return P.ReflectAdapter.get(I,T,D);let M=T.toLowerCase(),R=Object.keys(N).find(N=>N.toLowerCase()===M);if(void 0!==R)return P.ReflectAdapter.get(I,R,D)},set(I,T,D,M){if("symbol"==typeof T)return P.ReflectAdapter.set(I,T,D,M);let R=T.toLowerCase(),L=Object.keys(N).find(N=>N.toLowerCase()===R);return P.ReflectAdapter.set(I,L??T,D,M)},has(I,T){if("symbol"==typeof T)return P.ReflectAdapter.has(I,T);let D=T.toLowerCase(),M=Object.keys(N).find(N=>N.toLowerCase()===D);return void 0!==M&&P.ReflectAdapter.has(I,M)},deleteProperty(I,T){if("symbol"==typeof T)return P.ReflectAdapter.deleteProperty(I,T);let D=T.toLowerCase(),M=Object.keys(N).find(N=>N.toLowerCase()===D);return void 0===M||P.ReflectAdapter.deleteProperty(I,M)}})}static seal(N,I){let T,L=I&&I.size>0?N=>I.has(N.toLowerCase()):null,$=new Proxy(N,{get(N,I,M){switch(I){case"append":case"delete":case"set":return D.callable;case Symbol.iterator:return T[Symbol.iterator];case"get":case"has":case"getSetCookie":case"keys":case"values":case"entries":case"forEach":return T[I];default:return P.ReflectAdapter.get(N,I,M)}}});return T=L?R(N,$,L):M(N,$),$}static fresh(N){return new Proxy(N,{get:(N,I,T)=>P.ReflectAdapter.get(N,I,T)})}merge(N){return Array.isArray(N)?N.join(", "):N}static from(N){return N instanceof Headers?N:new L(N)}append(N,I){let T=this.headers[N];"string"==typeof T?this.headers[N]=[T,I]:Array.isArray(T)?T.push(I):this.headers[N]=I}delete(N){delete this.headers[N]}get(N){let I=this.headers[N];return void 0!==I?this.merge(I):null}has(N){return void 0!==this.headers[N]}set(N,I){this.headers[N]=I}forEach(N,I){for(let[T,P]of this.entries())N.call(I,P,T,this)}*entries(){for(let N of Object.keys(this.headers)){let I=N.toLowerCase(),T=this.get(I);yield[I,T]}}*keys(){for(let N of Object.keys(this.headers)){let I=N.toLowerCase();yield I}}*values(){for(let N of Object.keys(this.headers)){let I=this.get(N);yield I}}[Symbol.iterator](){return this.entries()}}},83154:N=>{"use strict";N.exports=function(N){N.prototype[Symbol.iterator]=function*(){for(let N=this.head;N;N=N.next)yield N.value}}},83802:(N,I,T)=>{"use strict";T.d(I,{Y:()=>P});let P="Hidden Rendering"},83828:(N,I,T)=>{"use strict";T.d(I,{KM:()=>$,Rt:()=>L,zZ:()=>R});let P={Afghanistan:"AF",Albania:"AL",Algeria:"DZ","American Samoa":"AS",Andorra:"AD",Angola:"AO",Anguilla:"AI",Antarctica:"AQ","Antigua and Barbuda":"AG",Argentina:"AR",Armenia:"AM",Aruba:"AW",Australia:"AU",Austr
1307ia:"AT",Azerbaijan:"AZ",Bahamas:"BS",Bahrain:"BH",Bangladesh:"BD",Barbados:"BB",Belarus:"BY",Belgium:"BE",Belize:"BZ",Benin:"BJ",Bermuda:"BM",Bhutan:"BT","Bolivia (Plurinational State of)":"BO","Bonaire, Sint Eustatius and Saba":"BQ","Bosnia and Herzegovina":"BA",Botswana:"BW","Bouvet Island":"BV",Brazil:"BR","British Indian Ocean Territory":"IO",Brunei:"BN",Bulgaria:"BG","Burkina Faso":"BF",Burundi:"BI",Cambodia:"KH",Cameroon:"CM",Canada:"CA","Cabo Verde":"CV","Cayman Islands":"KY","Central African Republic":"CF",Chad:"TD",Chile:"CL",China:"CN","Christmas Island":"CX","Cocos (Keeling) Islands":"CC",Colombia:"CO",Comoros:"KM",Congo:"CG","Congo, Democratic Republic of the":"CD","Cook Islands":"CK","Costa Rica":"CR",Croatia:"HR",Cuba:"CU",Curaçao:"CW",Cyprus:"CY",Czechia:"CZ","C\xf4te d'Ivoire":"CI",Denmark:"DK",Djibouti:"DJ",Dominica:"DM","Dominican Republic":"DO",Ecuador:"EC",Egypt:"EG","El Salvador":"SV","Equatorial Guinea":"GQ",Eritrea:"ER",Estonia:"EE",Eswatini:"SZ",Ethiopia:"ET","Falkland Islands (Malvinas)":"FK","Faroe Islands":"FO",Fiji:"FJ",Finland:"FI",France:"FR","French Guiana":"GF","French Polynesia":"PF","French Southern Territories":"TF",Gabon:"GA",Gambia:"GM",Georgia:"GE",Germany:"DE",Ghana:"GH",Gibraltar:"GI",Greece:"GR",Greenland:"GL",Grenada:"GD",Guadeloupe:"GP",Guam:"GU",Guatemala:"GT",Guernsey:"GG",Guinea:"GN","Guinea-Bissau":"GW",Guyana:"GY",Haiti:"HT","Heard Island and McDonald Islands":"HM","Holy See":"VA",Honduras:"HN","Hong Kong":"HK",Hungary:"HU",Iceland:"IS",India:"IN","Iran (Islamic Republic of)":"IR",Iraq:"IQ",Ireland:"IE","Isle of Man":"IM",Israel:"IL",Italy:"IT",Jamaica:"JM",Japan:"JP",Jersey:"JE",Jordan:"JO",Kazakhstan:"KZ",Kenya:"KE",Kiribati:"KI","Korea (Democratic People's Republic of)":"KP","Korea (Republic of)":"KR",Kuwait:"KW",Kyrgyzstan:"KG","Lao Peopleâs Democratic Republic":"LA",Latvia:"LV",Lebanon:"LB",Lesotho:"LS",Liberia:"LR",Libya:"LY",Liechtenstein:"LI",Lithuania:"LT",Luxembourg:"LU",Macao:"MO","North Macedonia":"MK",Madagascar:"MG",Malawi:"MW",Malaysia:"MY",Maldives:"MV",Mali:"ML",Malta:"MT","Marshall Islands":"MH",Martinique:"MQ",Mauritania:"MR",Mauritius:"MU",Mayotte:"YT",Mexico:"MX","Moldova (Republic of)":"MD",Monaco:"MC",Mongolia:"MN",Montenegro:"ME",Montserrat:"MS",Morocco:"MA",Mozambique:"MZ",Myanmar:"MM",Namibia:"NA",Nauru:"NR",Nepal:"NP",Netherlands:"NL","New Caledonia":"NC","New Zealand":"NZ",Nicaragua:"NI",Niger:"NE",Nigeria:"NG",Niue:"NU","Norfolk Island":"NF","Northern Mariana Islands":"MP",Norway:"NO",Oman:"OM",Pakistan:"PK",Palau:"PW","Palestine, State of":"PS",Panama:"PA","Papua New Guinea":"PG",Paraguay:"PY",Peru:"PE",Philippines:"PH",Pitcairn:"PN",Poland:"PL",Portugal:"PT","Puerto Rico":"PR",Qatar:"QA",Romania:"RO","Russian Federation":"RU",Rwanda:"RW",Réunion:"RE","Saint Barth\xe9lemy":"BL","Saint Helena, Ascension and Tristan da Cunha":"SH","Saint Kitts and Nevis":"KN","Saint Lucia":"LC","Saint Martin (French part)":"MF","Saint Pierre and Miquelon":"PM","Saint Vincent and the Grenadines":"VC",Samoa:"WS","San Marino":"SM","Sao Tome and Principe":"ST","Saudi Arabia":"SA",Senegal:"SN",Serbia:"RS",Seychelles:"SC","Sierra Leone":"SL",Singapore:"SG","Sint Maarten (Dutch part)":"SX",Slovakia:"SK",Slovenia:"SI","Solomon Islands":"SB",Somalia:"SO","South Africa":"ZA","South Georgia and the South Sandwich Islands":"GS","South Sudan":"SS",Spain:"ES","Sri Lanka":"LK",Sudan:"SD",Suriname:"SR","Svalbard and Jan Mayen":"SJ",Sweden:"SE",Switzerland:"CH","Syrian Arab Republic":"SY","Taiwan, Province of China":"TW",Tajikistan:"TJ","Tanzania, United Republic of":"TZ",Thailand:"TH","Timor-Leste":"TL",Togo:"TG",Tokelau:"TK",Tonga:"TO","Trinidad and Tobago":"TT",Tunisia:"TN",Turkey:"TR",Turkmenistan:"TM","Turks and Caicos Islands":"TC",Tuvalu:"TV",Uganda:"UG",Ukraine:"UA","United Arab Emirates":"AE","United Kingdom of Great Britain and Northern Ireland":"GB","United States of America":"US","United States Minor Outlying Islands":"UM",Uruguay:"UY",Uzbekistan:"UZ",Vanuatu:"VU","Venezuela (Bolivarian Republic of)":"VE","Viet Nam":"VN","Virgin Islands (British)":"VG","Virgin Islands (U.S.)":"VI","Wallis and Futuna":"WF","Western Sahara":"EH",Yemen:"YE",Zambia:"ZM",Zimbabwe:"ZW","\xc5land Islands":"AX"},D={AF:"AFG",AX:"ALA",AL:"ALB",DZ:"DZA",AS:"ASM",AD:"AND",AO:"AGO",AI:"AIA",AQ:"ATA",AG:"ATG",AR:"ARG",AM:"ARM",AW:"ABW",AU:"AUS",AT:"AUT",AZ:"AZE",BS:"BHS",BH:"BHR",BD:"BGD",BB:"BRB",BY:"BLR",BE:"BEL",BZ:"BLZ",BJ:"BEN",BM:"BMU",BT:"BTN",BO:"BOL",BA:"BIH",BW:"BWA",BV:"BVT",BR:"BRA",VG:"VGB",IO:"IOT",BN:"BRN",BG:"BGR",BF:"BFA",BI:"BDI",KH:"KHM",CM:"CMR",CA:"CAN",CV:"CPV",KY:"CYM",CF:"
1307CAF",TD:"TCD",CL:"CHL",CN:"CHN",HK:"HKG",MO:"MAC",CX:"CXR",CC:"CCK",CO:"COL",KM:"COM",CG:"COG",CD:"COD",CK:"COK",CR:"CRI",CI:"CIV",HR:"HRV",CU:"CUB",CY:"CYP",CZ:"CZE",DK:"DNK",DJ:"DJI",DM:"DMA",DO:"DOM",EC:"ECU",EG:"EGY",SV:"SLV",GQ:"GNQ",ER:"ERI",EE:"EST",ET:"ETH",FK:"FLK",FO:"FRO",FJ:"FJI",FI:"FIN",FR:"FRA",GF:"GUF",PF:"PYF",TF:"ATF",GA:"GAB",GM:"GMB",GE:"GEO",DE:"DEU",GH:"GHA",GI:"GIB",GR:"GRC",GL:"GRL",GD:"GRD",GP:"GLP",GU:"GUM",GT:"GTM",GG:"GGY",GN:"GIN",GW:"GNB",GY:"GUY",HT:"HTI",HM:"HMD",VA:"VAT",HN:"HND",HU:"HUN",IS:"ISL",IN:"IND",ID:"IDN",IR:"IRN",IQ:"IRQ",IE:"IRL",IM:"IMN",IL:"ISR",IT:"ITA",JM:"JAM",JP:"JPN",JE:"JEY",JO:"JOR",KZ:"KAZ",KE:"KEN",KI:"KIR",KP:"PRK",KR:"KOR",KW:"KWT",KG:"KGZ",LA:"LAO",LV:"LVA",LB:"LBN",LS:"LSO",LR:"LBR",LY:"LBY",LI:"LIE",LT:"LTU",LU:"LUX",MK:"MKD",MG:"MDG",MW:"MWI",MY:"MYS",MV:"MDV",ML:"MLI",MT:"MLT",MH:"MHL",MQ:"MTQ",MR:"MRT",MU:"MUS",YT:"MYT",MX:"MEX",FM:"FSM",MD:"MDA",MC:"MCO",MN:"MNG",ME:"MNE",MS:"MSR",MA:"MAR",MZ:"MOZ",MM:"MMR",NA:"NAM",NR:"NRU",NP:"NPL",NL:"NLD",AN:"ANT",NC:"NCL",NZ:"NZL",NI:"NIC",NE:"NER",NG:"NGA",NU:"NIU",NF:"NFK",MP:"MNP",NO:"NOR",OM:"OMN",PK:"PAK",PW:"PLW",PS:"PSE",PA:"PAN",PG:"PNG",PY:"PRY",PE:"PER",PH:"PHL",PN:"PCN",PL:"POL",PT:"PRT",PR:"PRI",QA:"QAT",RE:"REU",RO:"ROU",RU:"RUS",RW:"RWA",BL:"BLM",SH:"SHN",KN:"KNA",LC:"LCA",MF:"MAF",PM:"SPM",VC:"VCT",WS:"WSM",SM:"SMR",ST:"STP",SA:"SAU",SN:"SEN",RS:"SRB",SC:"SYC",SL:"SLE",SG:"SGP",SK:"SVK",SI:"SVN",SB:"SLB",SO:"SOM",ZA:"ZAF",GS:"SGS",SS:"SSD",ES:"ESP",LK:"LKA",SD:"SDN",SR:"SUR",SJ:"SJM",SZ:"SWZ",SE:"SWE",CH:"CHE",SY:"SYR",TW:"TWN",TJ:"TJK",TZ:"TZA",TH:"THA",TL:"TLS",TG:"TGO",TK:"TKL",TO:"TON",TT:"TTO",TN:"TUN",TR:"TUR",TM:"TKM",TC:"TCA",TV:"TUV",UG:"UGA",UA:"UKR",AE:"ARE",GB:"GBR",US:"USA",UM:"UMI",UY:"URY",UZ:"UZB",VU:"VUT",VE:"VEN",VN:"VNM",VI:"VIR",WF:"WLF",EH:"ESH",YE:"YEM",ZM:"ZMB",ZW:"ZWE",XK:"XKX"},M=Object.fromEntries(Object.entries(P).map(([N,I])=>[I,N])),R=N=>M[N]||"United Kingdom of Great Britain and Northern Ireland",L=N=>{if(!N)return"GB";if(P[N])return P[N];let I=Object.keys(P).find(I=>I.toLowerCase().includes(N.toLowerCase()))??"";return P[I]||"GB"},$=N=>{let I;if(!N)return"en";let T=N.replace("_","-").split("-"),P=(T[0].toLowerCase(),T[1]?.toUpperCase());return D[I=P?P:""]??""}},84090:(N,I,T)=>{"use strict";T.d(I,{A:()=>D});var P=T(47804);class D{constructor(N){this.timeout=N,this.timeoutId=void 0}get start(){return new Promise((N,I)=>{if(!Number.isInteger(this.timeout)||this.timeout<0)throw Error(P.UU.IV_002);this.timeoutId=setTimeout(()=>{let N=Error(P.UU.IE_003);N.name="AbortError",I(N)},this.timeout)})}clear(){this.timeoutId&&clearTimeout(this.timeoutId)}}},84096:(N,I,T)=>{var P=T(66713),D=T(46968),M=T(33468),R=T(50466),L=T(56202),$=T(66788),F=T(85318);function B(){"use strict";var I=D(),T=I.m(B),U=(Object.getPrototypeOf?Object.getPrototypeOf(T):T.__proto__).constructor;function H(N){var I="function"==typeof N&&N.constructor;return!!I&&(I===U||"GeneratorFunction"===(I.displayName||I.name))}var z={throw:1,return:2,break:3,continue:3};function W(N){var I,T;return function(P){I||(I={stop:function(){return T(P.a,2)},catch:function(){return P.v},abrupt:function(N,I){return T(P.a,z[N],I)},delegateYield:function(N,D,M){return I.resultName=D,T(P.d,F(N),M)},finish:function(N){return T(P.f,N)}},T=function(N,T,D){P.p=I.prev,P.n=I.next;try{return N(T,D)}finally{I.next=P.n}}),I.resultName&&(I[I.resultName]=P.v,I.resultName=void 0),I.sent=P.v,I.next=P.n;try{return N.call(this,I)}finally{P.p=I.prev,P.n=I.next}}}return(N.exports=B=function(){return{wrap:function(N,T,P,D){return I.w(W(N),T,P,D&&D.reverse())},isGeneratorFunction:H,mark:I.m,awrap:function(N,I){return new P(N,I)},AsyncIterator:L,async:function(N,I,T,P,D){return(H(I)?R:M)(W(N),I,T,P,D)},keys:$,values:F}}
1307,N.exports.__esModule=!0,N.exports.default=N.exports)()}N.exports=B,N.exports.__esModule=!0,N.exports.default=N.exports},84210:(N,I,T)=>{"use strict";T.d(I,{R:()=>L});var P=T(37876),D=T(14232);let M=({messages:N})=>{let[I,T]=(0,D.useState)("");return(0,D.useEffect)(()=>{N.forEach((N,I)=>{setTimeout(()=>T(N),5e3*I)})},[]),{message:I}};var R=T(6807);let L=({messages:N})=>{let{message:I}=M({messages:N});return(0,P.jsxs)("div",{role:"status",className:"flex h-50 w-75 flex-col items-center justify-center gap-4 rounded-lg bg-white p-4",children:[(0,P.jsx)("span",{className:"loading loading-lg bg-brunel-yellow loading-spinner"}),(0,P.jsx)(R.o,{type:"h4",className:"text-brunel-dark-grey",plainText:I})]})}},84471:(N,I,T)=>{"use strict";T.r(I),T.d(I,{applyParametersToUrl:()=>R,generateApplicationUrl:()=>M,resolveApplicationUrl:()=>L,resolveVacancyEndDateLabel:()=>$});var P=T(29454),D=T(66419);let M=(N,I)=>{let T=N?.mercuryId??N?.publicationId??"";return(0,D.Rm)(T)?`https://${I}/de-de/jobs/intern`:(0,D.uh)(N?.contactEmail??null)?N.atsSource:void 0},R=(N,I)=>{let T=N?.mercuryId??N?.publicationId??"",M=N?.mercuryId??"",R=N?.contactOfficeNumber??"",L=N?.market??"",$=N?.branche??"",F=N?.businessLine??"",B=N?.locale,U=N?.baseUrl,H=(0,D.uh)(N?.contactEmail??null),z=(0,D.Rm)(T),W="";M&&!z?W+=`&v=${encodeURIComponent(M)}`:H||z||(W+=`&v=${encodeURIComponent(T)}`),z&&(W+=`&v=${T}&t=${N?.title}&source_country=${B}`),H||(0,D.Rm)(T)||(R&&(W+=`&o=${encodeURIComponent(R)}`),L&&(W+=`&m=${encodeURIComponent(L)}`),$&&(W+=`&b=${encodeURIComponent($)}`),F&&(W+=`&bu=${encodeURIComponent(F)}`),B&&(W+=`&l=${B}`),U&&(W+=`&r=${U}`));let q=P.A.get()?.brutmParams??null;return q&&(W+=`&${q}`),(W+=I).startsWith("&")?W.slice(1):W},L=(N,I,T,P,D,L)=>{let $=M(N,I),F="";if($){let I=R({...N,locale:P,baseUrl:""},"");if(I){let N=$.includes("?")?"&":"?";$+=N+I}}else{let I="en-au"!==P&&N?.country==="AUS"?"en-au":P,M=T.split("/").pop()??"";F=`vacancyID=${N?.publicationId??""}${D}${L}`,$=`/${I}/${M}`}return{applicationUrl:$,vacancyQueryString:F}},$=(N,I,T,P)=>N?"End Date":I?`${P?.concat(": ")??""}${new Date(I).toLocaleDateString(T,{month:"long",day:"2-digit",year:"numeric"})}`:"N/A"},84612:(N,I,T)=>{"use strict";T.d(I,{CT:()=>L,EO:()=>D,Sr:()=>M,D3:()=>$,vK:()=>F,O4:()=>B,w0:()=>U,s3:()=>q,Gr:()=>V,_z:()=>H,PT:()=>z,BT:()=>W,s8:()=>R,uc:()=>K});var P=T(37876);let D=({className:N,onClick:I})=>(0,P.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:N,onClick:I,children:[(0,P.jsx)("defs",{children:(0,P.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41 15.59 7z",id:"bu0t1rcyna"})}),(0,P.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,P.jsx)("path",{d:"M0 0h24v24H0z"}),(0,P.jsx)("mask",{id:"mzmguepqzb",fill:"#fff",children:(0,P.jsx)("use",{xlinkHref:"#bu0t1rcyna"})}),(0,P.jsx)("use",{fill:"#000",fillRule:"nonzero",xlinkHref:"#bu0t1rcyna"}),(0,P.jsx)("g",{mask:"url(#mzmguepqzb)",fill:"#353F49",children:(0,P.jsx)("path",{d:"M0 0h24v24H0z"})})]})]}),M=({className:N})=>(0,P.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:N,children:[(0,P.jsx)("defs",{children:(0,P.jsx)("path",{id:"40sm7p5s4a",d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"})}),(0,P.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,P.jsx)("path",{d:"M0 0h24v24H0z"}),(0,P.jsx)("mask",{id:"s3zll1ajub",fill:"#fff",children:(0,P.jsx)("use",{xlinkHref:"#40sm7p5s4a"})}),(0,P.jsx)("use",{fill:"#000",fillRule:"nonzero",xlinkHref:"#40sm7p5s4a"}),(0,P.jsx)("g",{mask:"url(#s3zll1ajub)",fill:"#080",children:(0,P.jsx)("path",{d:"M0 0h24v24H0z"})})]})]}),R=()=>(0,P.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,P.jsx)("defs",{children:(0,P.jsx)("path",{d:"M12 2c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2zm0 2c-4.415 0-8 3.585-8 8s3.585 8 8 8 8-3.585 8-8-3.585-8-8-8zm1 11v2h-2v-2h2zm0-8v6h-2V7h2z",id:"z614m6nvaa"})}),(0,P.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,P.jsx)("mask",{id:"u8yg808v9b",fill:"#fff",children:(0,P.jsx)("use",{xlinkHref:"#z614m6nvaa"})}),(0,P.jsx)("use",{fill:"#ECECEC",fillRule:"nonzero",xlinkHref:"#z614m6nvaa"}),(0,P.jsx)("g",{mask:"url(#u8yg808v9b)",fill:"#BC6A20",children:(0,P.jsx)("path",{d:"M0 0h24v24H0z"})})]})]}),L=()=>(0,P.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,P.jsx)("defs",{children:(0,P.jsx)("path",{d:"M8 3v2h8V3h2v2h4v16H2V5h4V3h2zm12 9H4v7h16v-7zM9 14v3H6v-3h3zm5 0v3h-3v-3h3zm6-6.899H4v2.777h16V7.101z",id:"rz6g59z4ca"})}),(0,P.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,P.jsx)("mask",{id:"1v3g2l06vb",fill:"#fff",children:(0,P.jsx)("use",{xlinkHref:"#rz6g59z4ca"})}),(0,P.jsx)("use",{fill:"#353F49",fillRule:"nonzero",xlinkHref:"#rz6g59z4ca"}),(0,P.jsx)("g",{mask:"url(#1v3g2l06vb)",fill:"#353F49",children:(0,P.jsx)("path",{d:"M0 0h24v24H0z"})})]})]}),$=({className:N})=>(0,P.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:N,children:[(0,P.jsx)("defs",{children:(0,P.jsx)("path",{id:"n6tnjpi81a",d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58
1307L18 14z"})}),(0,P.jsxs)("g",{transform:"matrix(1 0 0 -1 0 24)",fill:"none",fillRule:"evenodd",children:[(0,P.jsx)("path",{d:"M0 0h24v24H0z"}),(0,P.jsx)("mask",{id:"jt46xivzob",fill:"#fff",children:(0,P.jsx)("use",{xlinkHref:"#n6tnjpi81a"})}),(0,P.jsx)("use",{fill:"#000",fillRule:"nonzero",xlinkHref:"#n6tnjpi81a"}),(0,P.jsx)("g",{mask:"url(#jt46xivzob)",fill:"#353F49",children:(0,P.jsx)("path",{d:"M0 0h24v24H0z"})})]})]}),F=()=>(0,P.jsxs)("svg",{width:"24.503",height:"24",viewBox:"0 0 24.503 24",focusable:"false","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",role:"img",children:[(0,P.jsx)("defs",{children:(0,P.jsx)("path",{id:"oc3nus29ua",d:"m17.143 8.217-4.59 4.676-4.59-4.676-1.41 1.44 6 6.126 6-6.126z"})}),(0,P.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,P.jsx)("path",{opacity:".87",d:"M24.503 0v24H0V0z"}),(0,P.jsx)("mask",{id:"ftnmwd1ymb",fill:"#fff",children:(0,P.jsx)("use",{xlinkHref:"#oc3nus29ua",transform:"rotate(-90 12.553 12)"})}),(0,P.jsx)("use",{fill:"currentColor",fillRule:"nonzero",transform:"rotate(-90 12.553 12)",xlinkHref:"#oc3nus29ua"})]})]}),B=()=>(0,P.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,P.jsx)("defs",{children:(0,P.jsx)("path",{d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm-5 9v-2h4V6h2v7H7z",id:"z5axu2id3a"})}),(0,P.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,P.jsx)("mask",{id:"wcmc0lcnxb",fill:"#fff",children:(0,P.jsx)("use",{xlinkHref:"#z5axu2id3a"})}),(0,P.jsx)("use",{fill:"#353F49",fillRule:"nonzero",xlinkHref:"#z5axu2id3a"}),(0,P.jsx)("g",{mask:"url(#wcmc0lcnxb)",fill:"#353F49",children:(0,P.jsx)("path",{d:"M0 0h24v24H0z"})})]})]}),U=({className:N,onClick:I})=>(0,P.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24px",height:"24px",fill:"currentColor",className:N,onClick:I,children:(0,P.jsx)("path",{d:"M 4.7070312 3.2929688 L 3.2929688 4.7070312 L 10.585938 12 L 3.2929688 19.292969 L 4.7070312 20.707031 L 12 13.414062 L 19.292969 20.707031 L 20.707031 19.292969 L 13.414062 12 L 20.707031 4.7070312 L 19.292969 3.2929688 L 12 10.585938 L 4.7070312 3.2929688 z"})}),H=()=>(0,P.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,P.jsx)("defs",{children:(0,P.jsx)("path",{d:"M22 2v7.01L21 9v13H3V9l-1 .01V2h20zm-3 7H5v11h14V9zm-4 3v2H9v-2h6zm5-8H4v3h16V4z",id:"5jpj38fi5a"})}),(0,P.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,P.jsx)("path",{d:"M0 0h24v24H0z"}),(0,P.jsx)("mask",{id:"o3ut5ydjab",fill:"#fff",children:(0,P.jsx)("use",{xlinkHref:"#5jpj38fi5a"})}),(0,P.jsx)("use",{fill:"#000",fillRule:"nonzero",xlinkHref:"#5jpj38fi5a"}),(0,P.jsx)("g",{mask:"url(#o3ut5ydjab)",fill:"#353F49",children:(0,P.jsx)("path",{d:"M0 0h24v24H0z"})})]})]}),z=()=>(0,P.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,P.jsx)("defs",{children:(0,P.jsx)("path",{d:"M17 3v4h5v14H2V7h5V3h10zm3 10.997h-7V15h-2v-1.003H4V19h16v-5.003zM20 9H4v2.997h7V11h2v.997h7V9zm-5-4H9v2h6V5z",id:"zwd5t9tvna"})}),(0,P.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,P.jsx)("mask",{id:"s9yblm2arb",fill:"#fff",children:(0,P.jsx)("use",{xlinkHref:"#zwd5t9tvna"})}),(0,P.jsx)("use",{fill:"#353F49",fillRule:"nonzero",xlinkHref:"#zwd5t9tvna"}),(0,P.jsx)("g",{mask:"url(#s9yblm2arb)",fill:"#353F49",children:(0,P.jsx)("path",{d:"M0 0h24v24H0z"})})]})]}),W=()=>(0,P.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,P.jsx)("defs",{children:(0,P.jsx)("path",{d:"M12 12c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm6-1.8C18 6.57 15.35 4 12 4s-6 2.57-6 6.2c0 2.34 1.95 5.44 6 9.14 4.05-3.7 6-6.8 6-9.14zM12 2c4.2 0 8 3.22 8 8.2 0 3.32-2.67 7.25-8 11.8-5.33-4.55-8-8.48-8-11.8C4 5.22 7.8 2 12 2z",id:"5nnmmajzqa"})}),(0,P.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,P.jsx)("path",{d:"M0 0h24v24H0z"}),(0,P.jsx)("mask",{id:"kgwkyfjvnb",fill:"#fff",children:(0,P.jsx)("use",{xlinkHref:"#5nnmmajzqa"})}),(0,P.jsx)("use",{fill:"#000",fillRule:"nonzero",xlinkHref:"#5nnmmajzqa"}),(0,P.jsx)("g",{mask:"url(#kgwkyfjvnb)",fill:"#353F49",children:(0,P.jsx)("path",{d:"M0 0h24v24H0z"})})]})]}),q=()=>(0,P.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,P.jsx)("defs",{children:(0,P.jsx)("path",{d:"M4.003 14.999v4.998L9 19.996V22H2v-7.001h2.003zm17.997 0V22h-7.001v-2.004h4.998L19.996 15H22zM12.983 2v12.603l5.536-5.536 1.414 1.414L13.414 17l.017.017-1.414 1.414-.017-.017-.017.017-1.414-1.414.017-.017-6.52-6.52 1.415-1.413 5.502 5.502V2h2z",id:"n87pzm9tda"})}),(0,P.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,P.jsx)("mask",{id:"ww519w98pb",fill:"#fff",children:(0,P.jsx)("use",{xlinkHref:"#n87pzm9tda"})}),(0,P.jsx)("use",{fill:"#353F49",xlinkHref:"#n87pzm9tda"}),(0,P.jsx)("g",{mask:"url(#ww519w98pb)",fill:"#353F49",children:(0,P.jsx)("path",{d:"M0 0h24v24H0z"})})]})]});var G=T(36379);let K=({color:N})=>(0,P.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[(0,P.jsx)("defs",{children:(0,P.jsx)("path",{d:"M16 2v3h5v5h-2v12H5V10H3V5h5V2h8zm1 8H7v10h10V10zm-6 2v6H9v-6h2zm4 0v6h-2v-6h2zm4-5H5v1h14V7zm-5-3h-4v1h4V4z",id:"x889jh97wa"})}),(0,P.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,P.jsx)("mask",{id:"hnz2g0invb",fill:"#fff",children:(0,P.jsx)("use",{xlinkHref:"#x889jh97wa"})}),(0,P.jsx)("use",{fill:"#979797",fillRule:"nonzero",xlinkHref:"#x889jh97wa"}),(0,P.jsx)("g",{mask:"url(#hnz2g0invb)",fill:N?G.Qs[N]:"#353F49",children:(0,P.jsx)("path",{d:"M0 0h24v24H0z"})})]})]}),V=()=>(0,P.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18px",height:"18px","aria-hidden":"true",focusable:"false",children:(0,P.jsx)("path",{d:"M 5 3 C 3.9069372 3 3 3.9069372 3 5 L 3 19 C 3 20.093063 3.9069372 21 5 21 L 19 21 C 20.093063 21 21 20.093063 21 19 L 21 12 L 19 12 L 19 19 L 5 19 L 5 5 L 12 5 L 12 3 L 5 3 z M 14 3 L 14 5 L 17.585938 5 L 8.2929688 14.292969 L 9.7070312 15.707031 L 19 6.4140625 L 19 10 L 21 10 L 21 3 L 14 3 z"})})},84620:(N,I,T)=>{var P=T(31365);N.exports=function(N,I,T){return(I=P(I))in N?Object.defineProperty(N,I,{value:T,enumerable:!0,configurable:!0,writable:!0}):N[I]=T,N},N.exports.__esModule=!0,N.exports.default=N.exports},84696:(N,I,T)=>{"use strict";T.d(I,{d:()=>D});var P=T(43691);function D(N,I){return+(0,P.a)(N)>+(0,P.a)(I)}},84758:(N,I,T)=>{"use strict";T.r(I),T.d(I,{useSearchConfigurationFilters:()=>M});var P=T(82826),D=T(14232);let M=({filtersFacets:N,selectedFilters:I,setSelectedFilters:T,selectedFiltersTags:M,setSelectedFiltersTags:R,getPublicationsQuery:L})=>{let[$,F]=(0,D.useState)([]),[B,U]=(0,D.useState)([]),H=(0,D.useMemo)(()=>
1307(0,P.resolveAllowedMultipleFacets)(N),[N]),z=N=>{$.includes(N)?F($.filter(I=>I!==N)):F([...$,N]);let P=new Map(I);0===(P.get(N)??[]).length?P.delete(N):P.has(N)||P.set(N,[]),T(P),B.includes(N)&&U(B.filter(I=>I!==N))},W=N=>{B.includes(N)?U(B.filter(I=>I!==N)):U([...B,N])};return{openFacets:$,showMoreFacets:B,allowedMultipleFacets:H,selectOpenFacets:z,selectFilterValues:(N,P)=>{let D=I.get(N)??[],M=D.includes(P),R=new Map(I);return M?1===D.length?R.delete(N):R.set(N,D.filter(N=>N!==P)):R.set(N,[...D,P]),T(R),R},selectFiltersTags:(N,I,T)=>{let P=new Map(M);return P.has(N)?P.delete(N):P.set(N,{facet:I,facetValue:T}),R(P),P},clearAll:()=>{F([]),T(new Map),R(new Map),L(!1,!0)},showMore:W}}},84799:(N,I,T)=>{"use strict";T.d(I,{I:()=>D});var P=T(95121);let D=N=>N.toLowerCase().includes(P.pC)?P.aS:P.ac},84943:(N,I,T)=>{var P=T(99742);function D(){return"u">typeof window&&!!window.process&&"renderer"===window.process.type||"u">typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"u">typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function M(N){var T=this.useColors;if(N[0]=(T?"%c":"")+this.namespace+(T?" %c":" ")+N[0]+(T?"%c ":" ")+"+"+I.humanize(this.diff),T){var P="color: "+this.color;N.splice(1,0,P,"color: inherit");var D=0,M=0;N[0].replace(/%[a-zA-Z%]/g,function(N){"%%"!==N&&(D++,"%c"===N&&(M=D))}),N.splice(M,0,P)}}function R(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function L(N){try{null==N?I.storage.removeItem("debug"):I.storage.debug=N}catch(N){}}function $(){var N;try{N=I.storage.debug}catch(N){}return!N&&void 0!==P&&"env"in P&&(N=P.env.DEBUG),N}function F(){try{return window.localStorage}catch(N){}}(I=N.exports=T(61792)).log=R,I.formatArgs=M,I.save=L,I.load=$,I.useColors=D,I.storage="u">typeof chrome&&void 0!==chrome.storage?chrome.storage.local:F(),I.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],I.formatters.j=function(N){try{return JSON.stringify(N)}catch(N){return"[UnexpectedJSONParseError]: "+N.message}},I.enable($())},85022:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),Object.defineProperty(I,"useMergedRef",{enumerable:!0,get:function(){return D}});let P=T(14232);function D(N,I){let T=(0,P.useRef)(null),D=(0,P.useRef)(null);return(0,P.useCallback)(P=>{if(null===P){let N=T.current;N&&(T.current=null,N());let I=D.current;I&&(D.current=null,I())}else N&&(T.current=M(N,P)),I&&(D.current=M(I,P))},[N,I])}function M(N,I){if("function"!=typeof N)return N.current=I,()=>{N.current=null};{let T=N(I);return"function"==typeof T?T:()=>N(null)}}("function"==typeof I.default||"object"==typeof I.default&&null!==I.default)&&void 0===I.default.__esModule&&(Object.defineProperty(I.default,"__esModule",{value:!0}),Object.assign(I.default,I),N.exports=I.default)},85318:(N,I,T)=>{var P=T(12883).default;N.exports=function(N){if(null!=N){var I=N["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],T=0;if(I)return I.call(N);if("function"==typeof N.next)return N;if(!isNaN(N.length))return{next:function(){return N&&T>=N.length&&(N=void 0),{value:N&&N[T++],done:!N}}}}throw TypeError(P(N)+" is not iterable")},N.exports.__esModule=!0,N.exports.default=N.exports},85403:(N,I,T)=>{var P=T(7162);N.exports=function(N,I){if(N){if("string"==typeof N)return P(N,I);var T=({}).toString.call(N).slice(8,-1);return"Object"===T&&N.constructor&&(T=N.constructor.name),"Map"===T||"Set"===T?Array.from(N):"Arguments"===T||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T)?P(N,I):void 0}},N.exports.__esModule=!0,N.exports.default=N.exports},85418:N=>{N.exports=globalThis.structuredClone||(N=>JSON.parse(JSON.stringify(N)))},85464:(N,I,T)=>{"use strict";T.d(I,{p:()=>P});let P=N=>{if(N?.itemPath?.trim())return N.itemPath;if(N?.originalItemPath?.trim())return N.originalItemPath;if(N?.pageCanonicalUrl?.trim())try{return new URL(N.pageCanonicalUrl).pathname}catch{}return""}},85503:(N,I,T)=>{"use strict";T.r(I),T.d(I,{useHeader:()=>L});var P=T(55333),D=T(10553),M=T(14232),R=T(82868);let L=()=>{let{status:N}=(0,D.useSession)(),I="authenticated"===N,[T,L]=(0,M.useState)(!1),[$,F]=(0,M.useState)(!0),B=(0,P.Cx)(),U=T&&!B;return(0,M.useEffect)(()=>{let N=()=>{L(window.innerWidth<1080)};return window.addEventListener("resize",N),N(),()=>window.removeEventListener("resize",N)},[]),(0,M.useEffect)(()=>{let N=0,I=()=>{N=document.querySelector(`[data-testid="${R.Qa.TestIds.HeaderComponent.base}"]`)?.getBoundingClientRect().height??0},T=()=>{F(window.scrollY<=N)};return I(),T(),window.addEventListener("resize",I,{passive:!0}),window.addEventListener("scroll",T,{passive:!0}),()=>{window.removeEventListener("resize",I),window.removeEventListener("scroll",T)}}
1307,[]),{authenticated:I,isMobile:T,isPageTop:$,isEditing:B,useMobileNav:U}}},85609:(N,I,T)=>{"use strict";T.d(I,{Ex:()=>$,w_:()=>L,M5:()=>F});var P=T(14232),D=T(42059),M=T.n(D);let R=()=>Promise.resolve({default:[]}),L=P.createContext({});P.createContext(new Map),P.createContext(void 0);let $=N=>{let{api:I,page:T,componentMap:D,loadImportMap:$=R,children:F}=N,[B,U]=(0,P.useState)(T),H=(0,P.useCallback)(N=>{U(N)},[]);(0,P.useEffect)(()=>{M()(T,B)||H(T)},[T,B,H]);let z=(0,P.useMemo)(()=>({page:B,setPage:H,api:I,componentMap:D,loadImportMap:$}),[B,H,I,D,$]);return P.createElement(L.Provider,{value:z},F)};function F(N){let I=(0,P.useContext)(L),T=null==N?void 0:N.updatable;return Object.assign(Object.assign({},I),{setPage:T?I.setPage:void 0})}$.displayName="SitecoreProvider"},85728:(N,I,T)=>{"use strict";T.d(I,{W6:()=>R,_t:()=>L,z2:()=>F});var P=T(37876),D=T(14232),M=T(42135);let R={isMobile:!1,isTablet:!1,isDesktop:!1,deviceType:"desktop",headerTransparent:!1,setHeaderTransparent:()=>{},loading:{isLoading:!1,messages:[]},setLoading:()=>{},toast:{type:"info",data:{title:"",message:""},open:!1},setToast:()=>{}},L=(0,D.createContext)(R),$=()=>{let[N,I]=(0,D.useState)(!1),[T,P]=(0,D.useState)(R.loading),[L,$]=(0,D.useState)(R.toast),F=(0,M.Ub)("(max-width: 480px)"),B=(0,M.Ub)("(min-width: 481px) and (max-width: 1080px)");return{isMobile:F,isTablet:B,isDesktop:(0,M.Ub)("(min-width: 1081px)"),deviceType:(0,M.Ub)("(any-hover:none)")?"mobile":"desktop",headerTransparent:N,setHeaderTransparent:I,loading:T,setLoading:P,toast:L,setToast:$}},F=({children:N})=>(0,P.jsx)(L.Provider,{value:$(),children:N})},85753:(N,I,T)=>{"use strict";T.r(I),T.d(I,{EventLocationMap:()=>F});var P=T(37876),D=T(63366),M=T(28412),R=T(6032);let L=N=>{let I=Number(N?.brunelMapZoom?.fields?.Value?.value??("string"==typeof N?.brunelMapZoom?.value?N.brunelMapZoom.value:void 0));return Number.isFinite(I)?I:14},$=N=>String(N?.brunelMapMode?.fields?.Value?.value??N?.brunelMapMode?.value?.value??"roadmap").toLowerCase(),F=({fields:N})=>{let I=(0,R.e_)(N);return I?(0,P.jsx)(D.az,{className:"component basis-full",children:(0,P.jsx)(M.D,{brunelMapCentralPointLatitude:I.latitude,brunelMapCentralPointLongitude:I.longitude,brunelMapZoom:L(N),brunelMapType:$(N)})}):null}},85843:(N,I,T)=>{"use strict";function P(N){return(I,T={})=>{let P=I.match(N.matchPattern);if(!P)return null;let D=P[0],M=I.match(N.parsePattern);if(!M)return null;let R=N.valueCallback?N.valueCallback(M[0]):M[0];return{value:R=T.valueCallback?T.valueCallback(R):R,rest:I.slice(D.length)}}}T.d(I,{K:()=>P})},85906:(N,I,T)=>{"use strict";T.d(I,{i:()=>$});var P=T(37876),D=T(22544),M=T(10409),R=T(56375);let L=` 1308 border-grey-400 skip-ink mb-6 md:mb-0 flex h-16 w-full text-sm xs:text-base lg:w-75 items-center border 1309 bg-white px-4 font-medium tracking-body text-brunel-dark-grey 1310 shadow-default last:mb-0 focus-within:outline-dashed 1311 hover:border-2 hover:border-brunel-dark-grey hover:bg-accent-spring-wood hover:underline hover:decoration-2 hover:underline-offset-2 focus:border-2 1312 focus:border-brunel-dark-grey focus:bg-accent-spring-wood focus:underline focus:decoration-2 focus:outline-dashed focus:outline-2 focus:outline-offset-0 sm:p-4 sm:text-base 1313`,$=({href:N,label:I,icon:T,onClick:$})=>(0,P.jsxs)(D.N,{field:{href:N??"#",target:"_top"},onClick:$,className:L,target:"_blank",children:[(0,P.jsx)(M.a,{as:"span",className:"flex",children:(0,P.jsx)(R.I,{className:"size-8",name:T,color:"brunel-dark-grey"})}),(0,P.jsx)(M.a,{as:"span",className:"ml-4",children:I})]})},85981:(N,I,T)=>{"use strict";T.d(I,{K:()=>F});var P=T(78028),D=T(54956),M=T(65212),R=T(82752),L=T(99742);class ${#ek;#d={token:"",expiresAt:0};constructor(N){this.#ek=(0,D.WQ)(P.A.create({baseURL:L.env.API_HOST_NEWS||"/api/mybrunel/news",timeout:3e4,headers:{Authorization:`Bearer ${N?.user?.accessToken}`}}),{ttl:3e5}),this.#ek.interceptors.request.use(async N=>((!this.#d.token||Date.now()>=this.#d.expiresAt)&&await this.#f(!!L.env.API_HOST_NEWS),this.#d.token&&(N.headers.Authorization=`Bearer ${this.#d.token}`),N)),this.#ek.interceptors.response.use(N=>N,N=>(0,R.r)(N))}
1313async #f(N=!0){let I=L.env.AZURE_AD_TENANT_ID,T=L.env.NEWS_CLIENT_ID,D=L.env.NEWS_CLIENT_SECRET,R=L.env.NEWS_SCOPE;try{let L;if(N){if(!I||!T||!D||!R)throw M.A.api("Missing environment variables for CRM client credentials"),Error("Missing Notifications credentials configuration.");L=await P.A.post(`https://login.microsoftonline.com/${I}/oauth2/v2.0/token`,new URLSearchParams({client_id:T,client_secret:D,grant_type:"client_credentials",scope:R}),{headers:{"Content-Type":"application/x-www-form-urlencoded"}})}else L=await P.A.post("/api/mybrunel/news/refreshToken");let{access_token:$,expires_in:F}=L.data;this.#d.token=$,this.#d.expiresAt=Date.now()+1e3*F-5e3,M.A.api("Fetched new News token successfully.")}catch{throw Error("Error refreshing Notifications access token.")}}async getArticles(N){try{let I=(N.locale.includes("/")||N.locale.includes("-"))&&N.locale.split(/[/-]/).pop()||N.locale,T=await this.#ek.get("/news/connectarticles",{headers:{Authorization:"Bearer "+this.#d.token},params:{country:I,page:N.page,pageSize:N.pageSize}});return T?.data?.length?T.data:[]}catch(I){return M.A.api(`Failed to fetch articles for locale=${N.locale}`,I),[]}}}let F=N=>new $(N)},86049:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=D;var P=T(63780);function D(N){let{url:I,theme:T}=N;return(0,P.h)("div",{className:"verify-request"},T.brandColor&&(0,P.h)("style",{dangerouslySetInnerHTML:{__html:` 1314 :root { 1315 --brand-color: ${T.brandColor} 1316 } 1317 `}}),(0,P.h)("div",{className:"card"},T.logo&&(0,P.h)("img",{src:T.logo,alt:"Logo",className:"logo"}),(0,P.h)("h1",null,"Check your email"),(0,P.h)("p",null,"A sign in link has been sent to your email address."),(0,P.h)("p",null,(0,P.h)("a",{className:"site",href:I.origin},I.host))))}},86056:(N,I,T)=>{"use strict";T.d(I,{B:()=>D,q:()=>M});var P=T(73813);let D=N=>{if(N.class){if(N.className){let I=N.className;I+=` ${N.class}`,N.className=I}else N.className=N.class;delete N.class}},M=N=>{let I={};return Object.entries(N).reduce((I,[T])=>(I[T]=(0,P.GR)(N,T),I),I)}},86159:N=>{N.exports.keystores=new WeakMap},86170:(N,I,T)=>{"use strict";T.d(I,{A:()=>D});var P=T(52063);let D=(N=!1)=>({request:(I,T)=>N?P.A.getCachedData(I,T):P.A.getData(I,T)})},86355:N=>{N.exports=function(N,...I){let T={};for(let P of I)void 0!==N[P]&&(T[P]=N[P]);return T}},86459:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.createCSRFToken=D;var P=T(63426);function D({options:N,cookieValue:I,isPost:T,bodyValue:M}){if(I){let[D,R]=I.split("|");if(R===(0,P.createHash)("sha256").update(`${D}${N.secret}`).digest("hex"))return{csrfTokenVerified:T&&D===M,csrfToken:D}}let R=(0,P.randomBytes)(32).toString("hex"),L=(0,P.createHash)("sha256").update(`${R}${N.secret}`).digest("hex");return{cookie:`${R}|${L}`,csrfToken:R}}},86701:N=>{N.exports=function(N){try{return -1!==Function.toString.call(N).indexOf("[native code]")}catch(I){return"function"==typeof N}},N.exports.__esModule=!0,N.exports.default=N.exports},86812:(N,I,T)=>{"use strict";T.d(I,{L:()=>B});var P=T(37876),D=T(10409),M=T(56375),R=T(6807),L=T(48230),$=T.n(L),F=T(66419);let B=({url:N,title:I,city:T,countryName:L,region:B,locationDetail:U,areaOfExpertise:H,branche:z,description:W,totalYearsOfExperience:q,dictionary:G,hoursPerWeek:K,endDate:V,isHorizontal:Y,visibleFields:J=[]})=>{let Q=N=>0===J.length||J.includes(N),Z={Country:L,City:T,Region:B},X=Z[U]?.toTitleCase()??"",ee="string"==typeof q?(0,F.y6)(q):"number"==typeof q&&q>0?`${q} ${G?.years??"[years]"}`:"",et=[{fieldName:"location",condition:X,icon:"location",caption:"vacancy-location-caption",value:X},{fieldName:"workingHours",condition:(0,F._S)(K),icon:"clock",caption:"weekly-hours",value:(0,F.TR)(K,G??{})},{fieldName:"endDate",condition:V,icon:"calendar",caption:"vacancy-valid-until-caption",value:V},{fieldName:"areaOfExpertise",condition:H,icon:"consultant",caption:"vacancy-expertise-caption",value:H},{fieldName:"totalYearsOfExperience",condition:ee,icon:"job",caption:"vacancy-experience-caption",value:ee},{fieldName:"city",condition:T,icon:"location",caption:"vacancy-location-caption",value:T},{fieldName:"office",condition:z,icon:"office",caption:"vacancy-branche-caption",value:z}];return(0,P.jsx)($(),{prefetch:!1,href:`/jobs/${N}`,className:`mb-8 flex w-fit focus:outline-2 focus:outline-dashed md:mb-0 ${Y?"w-full":""}`,children:(0,P.jsxs)(D.a,{className:"group flex max-w-(--breakpoint-md) min-w-0 grow flex-col justify-between gap-5 overflow-hidden rounded-sm border border-accent-iron bg-white p-6 shadow-search-card hover:border-brunel-dark-grey hover:bg-accent-spring-wood focus:outline-brunel-dark-grey",children:[(0,P.jsx)(R.o,{className:"mb-0! line-clamp-1 font-medium! wrap-break-word group-hover:brunel-underline-3-brunel-dark-grey",type:"h4",plainText:I??""}),(0,P.jsx)(D.a,{className:`${Y?"":"grid-cols-1 md:grid-cols-2 [&>div>p]:line-clamp-1"} grid grid-flow-row gap-x-4 gap-y-2 [&>p]:text-ui-grey`,children:et.map(({fieldName:N,icon:I,caption:T,value:L})=>L&&Q(N)&&(0,P.jsxs)(D.a,{className:"flex gap-1",children:[(0,P.jsx)(M.I,{color:"ui-grey",name:I,size:"small"}),(0,P.jsx)(R.o,{type:"small",className:"line-clamp-1",plainText:`${G?.[T]??`[${T}]`}: ${L}`})]},N))}),!Y&&Q("description")&&(0,P.jsx)(R.o,{className:"line-clamp-3 lg:line-clamp-2",type:"medium",parseText:!0,plainText:W?.removeHTML()})]})})}},87247:(N,I)=>{I.read=function(N,I,T,P,D){var M,R,L=8*D-P-1,$=(1<<L)-1,F=$>>1,B=-7,U=T?D-1:0,H=T?-1:1,z=N[I+U];for(U+=H,M=z&(1<<-B)-1,z>>=-B,B+=L;B>0;M=256*M+N[I+U],U+=H,B-=8);for(R=M&(1<<-B)-1,M>>=-B,B+=P;B>0;R=256*R+N[I+U],U+=H,B-=8);if(0===M)M=1-F;else{if(M===$)return R?NaN:1/0*(z?-1:1);R+=Math.pow(2,P),M-=F}return(z?-1:1)*R*Math.pow(2,M-P)},I.write=function(N,I,T,P,D,M){var R,L,$,F=8*M-D-1,B=(1<<F)-1,U=B>>1,H=5960464477539062e-23*(23===D),z=P?0:M-1,W=P?1:-1,q=+(I<0||0===I&&1/I<0);for(isNaN(I=Math.abs(I))||I===1/0?(L=+!!isNaN(I),R=B):(R=Math.floor(Math.log(I)/Math.LN2),I*($=Math.pow(2,-R))<1&&(R--,$*=2),R+U>=1?I+=H/$:I+=H*Math.pow(2,1-U),I*$>=2&&(R++,$/=2),R+U>=B?(L=0,R=B):R+U>=1?(L=(I*$-1)*Math.pow(2,D),R+=U):(L=I*Math.pow(2,U-1)*Math.pow(2,D),R=0));D>=8;N[T+z]=255&L,z+=W,L/=256,D-=8);for(R=R<<D|L,F+=D;F>0;N[T+z]=255&R,z+=W,R/=256,F-=8);N[T+z-W]|=128*q}},87253:(N,I,T)=>{"use strict";T.r(I),T.d(I,{SwipeableNotification:()=>$});var P=T(37876),D=T(14232),M=T(10409);let R=60,L=160,$=({notification:N,locale:I,onDismiss:T,onOpen:$})=>{let[F,B]=(0,D.useState)(0),[U,H]=(0,D.useState)(!1),z=(0,D.useRef)(null),W=(0,D.useRef)(null),q=(0,D.useRef)(null),G=(0,D.useRef)(0),K=(0,D.useRef)(null),V=N=>{G.current=N,B(N)};(0,D.useEffect)(()=>
1317{let I=K.current;if(!I)return;let P=N=>{z.current=N.touches[0].clientX,W.current=N.touches[0].clientY,q.current=null,H(!0)},D=N=>{if(null===z.current||null===W.current)return;let I=N.touches[0].clientX-z.current,T=N.touches[0].clientY-W.current;null===q.current&&(Math.abs(I)>5||Math.abs(T)>5)&&(q.current=Math.abs(I)>Math.abs(T)),q.current&&(N.preventDefault(),I<0?V(Math.max(I,-L)):G.current<0&&V(Math.min(0,G.current+I)))},M=()=>{H(!1),z.current=null,W.current=null,q.current=null,G.current<=-L?T(N.userNotificationId):G.current<=-R?V(-R):V(0)};return I.addEventListener("touchstart",P,{passive:!0}),I.addEventListener("touchmove",D,{passive:!1}),I.addEventListener("touchend",M,{passive:!0}),()=>{I.removeEventListener("touchstart",P),I.removeEventListener("touchmove",D),I.removeEventListener("touchend",M)}},[N.userNotificationId,T]);let Y=Math.abs(Math.min(F,0));return(0,P.jsxs)(M.a,{className:"relative overflow-hidden border-b border-gray-200 last:border-b-0",children:[(0,P.jsx)(M.a,{className:"absolute top-0 right-0 flex h-full items-center justify-center bg-red-500",style:{width:`${Y}px`},onClick:()=>T(N.userNotificationId),children:Y>20&&(0,P.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 text-white",style:{opacity:Math.min(1,(Y-20)/40)},viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,P.jsx)("polyline",{points:"3 6 5 6 21 6"}),(0,P.jsx)("path",{d:"M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6"}),(0,P.jsx)("path",{d:"M10 11v6"}),(0,P.jsx)("path",{d:"M14 11v6"}),(0,P.jsx)("path",{d:"M9 6V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2"})]})}),(0,P.jsxs)(M.a,{ref:K,className:`group/row relative flex items-start gap-3 px-4 py-3 ${!N.isRead?"bg-white/60":"bg-transparent"} ${N.url?"cursor-pointer":""} ${!U?"transition-transform duration-200 ease-out":""}`,style:{transform:`translateX(${F}px)`},onClick:()=>{0!==G.current?V(0):N.url&&$(N.userNotificationId,N.url)},children:[(0,P.jsx)("button",{onClick:I=>{I.stopPropagation(),T(N.userNotificationId)},"aria-label":"Dismiss notification",className:"absolute top-3 right-3 hidden h-4 w-4 items-center justify-center rounded-full bg-brunel-dark-grey/30 transition-colors hover:bg-gray-600 hover:text-gray-200 md:flex",children:(0,P.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-3 w-3",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,P.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,P.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),(0,P.jsx)(M.a,{className:"mt-1.5 shrink-0",children:N.isRead?(0,P.jsx)(M.a,{className:"h-2 w-2 rounded-full bg-transparent"}):(0,P.jsx)(M.a,{className:"h-2 w-2 rounded-full bg-brunel-yellow"})}),(0,P.jsxs)(M.a,{className:"flex min-w-0 flex-1 flex-col gap-0.5 pr-5",children:[(0,P.jsxs)(M.a,{className:"flex items-center gap-2",children:[(0,P.jsx)("span",{className:`truncate text-sm font-semibold text-gray-900 ${N.url?"group-hover/row:underline":""}`,children:N.title}),N.url&&(0,P.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-3 w-3 shrink-0 text-gray-400 opacity-0 transition-opacity group-hover/row:opacity-100",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,P.jsx)("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),(0,P.jsx)("polyline",{points:"15 3 21 3 21 9"}),(0,P.jsx)("line",{x1:"10",y1:"14",x2:"21",y2:"3"})]})]}),(0,P.jsx)("span",{className:"line-clamp-2 text-xs text-gray-600",children:N.description}),(0,P.jsx)("span",{className:"mt-0.5 text-xs text-gray-400",children:new Date(N.createdDate).toLocaleDateString(I,{day:"numeric",month:"short",year:"numeric"})})]})]})]})}},87273:(N,I,T)=>{"use strict";T.d(I,{_:()=>z});var P=T(14953),D=T(14232),M=T(86056),R=T(98741),L=T(63561),$=T(53282),F=T(73813),B=function(N,I){var T={};for(var P in N)Object.prototype.hasOwnProperty.call(N,P)&&0>I.indexOf(P)&&(T[P]=N[P]);if(null!=N&&"function"==typeof Object.getOwnPropertySymbols)for(var D=0,P=Object.getOwnPropertySymbols(N);D<P.length;D++)0>I.indexOf(P[D])&&Object.prototype.propertyIsEnumerable.call(N,P[D])&&
1317(T[P[D]]=N[P[D]]);return T};let U=(N,I,T)=>{var{src:D,srcSet:R}=N,L=B(N,["src","srcSet"]);if(!D)return null;(0,M.B)(L);let $=Object.assign({},L),F=P.k6(D,I,T);return R&&($.srcSet=P.tS(F,R,I,T)),$.src=F,$},H=N=>{var{imageParams:I,field:T,mediaUrlPrefix:P}=N,M=B(N,["imageParams","field","mediaUrlPrefix"]);let R=T;if((0,F.JE)(R))return null;delete M.editable;let L=R.src?T:R.value;if(!L)return null;L.metadata&&delete L.metadata;let $=U(Object.assign(Object.assign({},L),M),I,P);return $?D.createElement("img",Object.assign({},$)):null},z=(0,R.O)((0,L.N)(H,{defaultEmptyFieldEditingComponent:$.n}));z.displayName="Image"},87307:(N,I,T)=>{"use strict";var P,D=T(82909).Buffer;P={value:!0},I.A=function N(N){var I,T;let P=null!=(I=N.tenantId)?I:"common",M=null!=(T=N.profilePhotoSize)?T:48;return{id:"azure-ad",name:"Azure Active Directory",type:"oauth",wellKnown:`https://login.microsoftonline.com/${P}/v2.0/.well-known/openid-configuration?appid=${N.clientId}`,authorization:{params:{scope:"openid profile email"}},async profile(N,I){var T;let P,R=await fetch(`https://graph.microsoft.com/v1.0/me/photos/${M}x${M}/$value`,{headers:{Authorization:`Bearer ${I.access_token}`}});if(R.ok&&void 0!==D)try{let N=await R.arrayBuffer(),I=D.from(N).toString("base64");P=`data:image/jpeg;base64, ${I}`}catch(N){}return{id:N.sub,name:N.name,email:N.email,image:null!=(T=P)?T:null}},style:{logo:"/azure.svg",text:"#fff",bg:"#0072c6"},options:N}}},87429:(N,I,T)=>{"use strict";function P(N,I){if(!N)return;let T=N.split("; ").find(N=>N.indexOf("=")>0&&N.split("=")[0]===I);return void 0!==T?{name:T.split("=")[0],value:T.split("=")[1]}:void 0}function D(N){var I;let T=P(document.cookie,N);return null!=(I=null==T?void 0:T.value)?I:""}T.d(I,{k:()=>D})},87435:(N,I)=>{"use strict";function T(N){return N&&"object"==typeof N&&!Array.isArray(N)}function P(N,...I){if(!I.length)return N;let D=I.shift();if(T(N)&&T(D))for(let I in D)T(D[I])?(N[I]||Object.assign(N,{[I]:{}}),P(N[I],D[I])):Object.assign(N,{[I]:D[I]});return P(N,...I)}Object.defineProperty(I,"__esModule",{value:!0}),I.merge=P},87841:(N,I,T)=>{"use strict";T.r(I),T.d(I,{getMercuryDataApplicantFormServerProps:()=>L});var P=T(31905),D=T(62467),M=T(65212),R=T(60409);let L=async(N,I,T)=>{if(!(0,P.um)(T))return{session:null,isPreview:T.preview??T.draftMode??!1,locale:T.locale??R.Xn,formData:N.fields,mercuryData:{},dictionary:I.dictionary,pageData:{name:I.sitecore.route?.name??""}};let L=I.session,$=await D.b.getMercuryDataByEmail({email:L?.user?.email??"",bearerToken:L?.user?.accessToken??""}).catch(N=>{M.A.api("ERROR FETCHING CANDIDATE INFO:",N)});return{session:L,isPreview:T.preview??T.draftMode??!1,locale:T.locale??R.Xn,formData:N.fields,mercuryData:$?.mercuryId?$:{},dictionary:I.dictionary,pageData:{name:I.sitecore.route?.name??""}}}},88264:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),Object.defineProperty(I,"actionAsyncStorage",{enumerable:!0,get:function(){return P.actionAsyncStorageInstance}});let P=T(98069)},88461:N=>{function I(T){return N.exports=I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(N){return N.__proto__||Object.getPrototypeOf(N)},N.exports.__esModule=!0,N.exports.default=N.exports,I(T)}N.exports=I,N.exports.__esModule=!0,N.exports.default=N.exports},88847:(N,I,T)=>{"use strict";T.d(I,{i:()=>R,k:()=>L});var P=T(47804),D=T(11282);let M=(N=P.Ty)=>(0,D.l)(N),R=(N=P.Ty)=>`${M(N)}/v1/content/api/graphql/v1`,L=(N,I,T=P.Ty,D)=>{let R=`${M(T)}/v1/forms/publisher/${I}?sitecoreContextId=${N}`;return D?`${R}&language=${encodeURIComponent(D)}`:R}},88940:(N,I,T)=>{"use strict";T.r(I),T.d(I,{ArticlesGrid:()=>L});var P=T(37876),D=T(23649),M=T(10409),R=T(63366);let L=({dictionary:N,locale:I,articles:T,isPending:L,noData:$})=>T?.length?(0,P.jsx)(M.a,{className:"grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3",children:T.map(T=>(0,P.jsxs)(M.a,{className:"card grow rounded-sm border border-accent-iron bg-white p-8 shadow",children:[(0,P.jsx)(R.o5,{plainText:new Date(T.firstPublishedDate).toLocaleDateString("en"===I?"en-GB":I??"en-GB"),className:"mb-2 text-xs! text-gray-900"}),(0,P.jsx)(R.o5,{type:"h3",plainText:T.title,className:"line-clamp-2"}),(0,P.jsx)(R.o5,{plainText:T.description,className:"mb-4 line-clamp-3 grow md:line-clamp-none"}),(0,P.jsx)(D.Button,{variant:"primaryrounded",className:"mt-auto w-full! p-2 text-center",linkField:{value:{href:T.fileRef,linktype:T.fileRef.startsWith("http")?"external":"internal",target:T.fileRef.startsWith("http")?"_blank":"_self",text:N?.readMore||"Read more"}}})]},`id_${T.title}`))}):(0,P.jsxs)(M.a,{className:"flex w-full flex-col items-center gap-2 bg-accent-pampas p-8 text-accent-fiord!",children:[(0,P.jsx)(M.a,{dangerouslySetInnerHTML:{__html:$}}),L&&(0,P.jsxs)(M.a,{className:"flex items-center gap-2",children:[(0,P.jsx)(M.a,{as:"span",className:"loading-spoinner loading w-6 text-brunel-yellow"}),(0,P.jsx)(R.o5,{plainText:"Loading News..."})]})]})},88947:(N,I,T)=>{var P=T(99742);let{inspect:D}=T(68994),M=T(3305),{RPError:R}=T(79391),L=T(47099),$=T(75499),F=T(79435),B=T(29005),U=T(18707),H=T(85418),{keystore:z}=T(34341),W=["https://login.microsoftonline.com/common/.well-known/openid-configuration","https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration","https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration","https://login.microsoftonline.com/consumers/v2.0/.well-known/openid-configuration"],q=Symbol(),G={claim_types_supported:["normal"],claims_parameter_supported:!1,grant_types_supported:["authorization_code","implicit"],request_parameter_supported:!1,request_uri_parameter_supported:!0,require_request_uri_registration:!1,response_modes_supported:["query","fragment"],token_endpoint_auth_methods_supported:["client_secret_basic"]};class K{#D;constructor(N={}){const I=N[q];delete N[q],["introspection","revocation"].forEach(I=>{N[`${I}_endpoint`]&&void 0===N[`${I}_endpoint_auth_methods_supported`]&&void 0===N[`${I}_endpoint_auth_signing_alg_values_supported`]&&(N.token_endpoint_auth_methods_supported&&(N[`${I}_endpoint_auth_methods_supported`]=N.token_endpoint_auth_methods_supported),N.token_endpoint_auth_signing_alg_values_supported&&(N[`${I}_endpoint_auth_signing_alg_values_supported`]=N.token_endpoint_auth_signing_alg_values_supported))}
1317),this.#D=new Map,Object.entries(N).forEach(([N,I])=>{this.#D.set(N,I),this[N]||Object.defineProperty(this,N,{get(){return this.#D.get(N)},enumerable:!0})}),$.set(this.issuer,this);const T=L(this,I);Object.defineProperties(this,{Client:{value:T,enumerable:!0},FAPI1Client:{value:class extends T{},enumerable:!0},FAPI2Client:{value:class extends T{},enumerable:!0}})}get metadata(){return H(Object.fromEntries(this.#D.entries()))}static async webfinger(N){let I=B(N),{host:T}=M.parse(I),P=`https://${T}/.well-known/webfinger`,D=F(await U.call(this,{method:"GET",url:P,responseType:"json",searchParams:{resource:I,rel:"http://openid.net/specs/connect/1.0/issuer"},headers:{Accept:"application/json"}})),L=Array.isArray(D.links)&&D.links.find(N=>"object"==typeof N&&"http://openid.net/specs/connect/1.0/issuer"===N.rel&&N.href);if(!L)throw new R({message:"no issuer found in webfinger response",body:D});if("string"!=typeof L.href||!L.href.startsWith("https://"))throw new R({printf:["invalid issuer location %s",L.href],body:D});let H=L.href;if($.has(H))return $.get(H);let z=await this.discover(H);if(z.issuer!==H)throw $.del(z.issuer),new R("discovered issuer mismatch, expected %s, got: %s",H,z.issuer);return z}static async discover(N){let I=V(N),T=F(await U.call(this,{method:"GET",responseType:"json",url:I,headers:{Accept:"application/json"}}));return new K({...G,...T,[q]:!!W.find(N=>I.startsWith(N))})}async reloadJwksUri(){await z.call(this,!0)}[D.custom](){return`${this.constructor.name} ${D(this.metadata,{depth:1/0,colors:P.stdout.isTTY,compact:!1,sorted:!0})}`}}function V(N){let I=M.parse(N);if(I.pathname.includes("/.well-known/"))return N;{let N;return N=I.pathname.endsWith("/")?`${I.pathname}.well-known/openid-configuration`:`${I.pathname}/.well-known/openid-configuration`,M.format({...I,pathname:N})}}N.exports=K},88955:(N,I)=>{"use strict";function T(N,I){let T=N||75;return I?.qualities?.length?I.qualities.reduce((N,I)=>Math.abs(I-T)<Math.abs(N-T)?I:N,I.qualities[0]):T}Object.defineProperty(I,"__esModule",{value:!0}),Object.defineProperty(I,"findClosestQuality",{enumerable:!0,get:function(){return T}})},88984:(N,I,T)=>{"use strict";var P=T(29563);Object.defineProperty(I,"__esModule",{value:!0}),I.default=B;var D=P(T(21426)),M=P(T(93174)),R=P(T(45123)),L=P(T(86049)),$=P(T(32166)),F=P(T(97501));function B(N){let{url:I,theme:T,query:P,cookies:B}=N;function U({html:N,title:I,status:P}){var M;return{cookies:B,status:P,headers:[{key:"Content-Type",value:"text/html"}],body:`<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><style>${(0,F.default)()}</style><title>${I}</title></head><body class="__next-auth-theme-${null!=(M=null==T?void 0:T.colorScheme)?M:"auto"}"><div class="page">${(0,D.default)(N)}</div></body></html>`}}return{signin:I=>U({html:(0,M.default)({csrfToken:N.csrfToken,providers:N.providers,callbackUrl:N.callbackUrl,theme:T,...P,...I}),title:"Sign In"}),signout:P=>U({html:(0,R.default)({csrfToken:N.csrfToken,url:I,theme:T,...P}),title:"Sign Out"}),verifyRequest:N=>U({html:(0,L.default)({url:I,theme:T,...N}),title:"Verify Request"}),error:N=>U({...(0,$.default)({url:I,theme:T,...N}),title:"Error"})}}},89099:(N,I,T)=>{N.exports=T(71745)},89479:(N,I,T)=>{"use strict";T.r(I),T.d(I,{useRelatedBlogArticles:()=>U});var P=T(95154),D=T(85609),M=T(14232),R=T(65212),L=T(60409),$=T(2582),F=T(98176),B=T(36379);let U=N=>{let{page:I}=(0,D.M5)(),[T,U]=(0,M.useState)((0,P.buildInitialResultList)(N?.teaserPageSelectionList)),H=T.length>0,z=(0,P.resolveShowDynamic)(N?.blogCategoryFilterCategoriesFilter),W=N?.blogCategoryFilterMaxBlogArticles?.value??F.KM;return(0,M.useEffect)(()=>{if(z){let T=I.siteName??"",D=I.locale??L.Xn,M=(0,P.resolveCategoryIds)(N?.blogCategoryFilterCategoriesFilter);(async()=>{let N=await (0,B.oF)(T,D),R=N?.id?.toSitecoreGUID(),L=null;if(R&&M?.length>0){let N=(0,P.resolveCurrentBlogPageId)(I),T=await (0,$.$3)(R,N,W,M,D);L=(0,P.mapBlogsToRelatedBlogs)(T)}L&&U([...L])})().catch(()=>R.A.api("Failed to fetch related blogs in RelatedBlogArticles"))}},[]),{resultList:T,showStatic:H,showDynamic:z}}},89632:(N,I,T)=>
1317{let P=T(88947),{OPError:D,RPError:M}=T(79391),R=T(29338),L=T(10490),{CLOCK_TOLERANCE:$,HTTP_OPTIONS:F}=T(13466),B=T(16436),{setDefaults:U}=T(18707);N.exports={Issuer:P,Strategy:R,TokenSet:L,errors:{OPError:D,RPError:M},custom:{setHttpOptionsDefaults:U,http_options:F,clock_tolerance:$},generators:B}},89753:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),function(N,I){for(var T in I)Object.defineProperty(N,T,{enumerable:!0,get:I[T]})}(I,{getRedirectError:function(){return R},getRedirectStatusCodeFromError:function(){return U},getRedirectTypeFromError:function(){return B},getURLFromRedirectError:function(){return F},permanentRedirect:function(){return $},redirect:function(){return L}});let P=T(81528),D=T(2602),M=T(42097);function R(N,I,T=P.RedirectStatusCode.TemporaryRedirect){let M=Object.defineProperty(Error(D.REDIRECT_ERROR_CODE),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return M.digest=`${D.REDIRECT_ERROR_CODE};${I};${N};${T};`,M}function L(N,I){throw R(N,I??=M.actionAsyncStorage?.getStore()?.isAction?"push":"replace",P.RedirectStatusCode.TemporaryRedirect)}function $(N,I="replace"){throw R(N,I,P.RedirectStatusCode.PermanentRedirect)}function F(N){return(0,D.isRedirectError)(N)?N.digest.split(";").slice(2,-2).join(";"):null}function B(N){if(!(0,D.isRedirectError)(N))throw Object.defineProperty(Error("Not a redirect error"),"__NEXT_ERROR_CODE",{value:"E260",enumerable:!1,configurable:!0});return N.digest.split(";",2)[1]}function U(N){if(!(0,D.isRedirectError)(N))throw Object.defineProperty(Error("Not a redirect error"),"__NEXT_ERROR_CODE",{value:"E260",enumerable:!1,configurable:!0});return Number(N.digest.split(";").at(-2))}("function"==typeof I.default||"object"==typeof I.default&&null!==I.default)&&void 0===I.default.__esModule&&(Object.defineProperty(I.default,"__esModule",{value:!0}),Object.assign(I.default,I),N.exports=I.default)},89918:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.openidClient=D;var P=T(89632);async function D(N){let I,T=N.provider;if(T.httpOptions&&P.custom.setHttpOptionsDefaults(T.httpOptions),T.wellKnown)I=await P.Issuer.discover(T.wellKnown);else{var D,M,R;I=new P.Issuer({issuer:T.issuer,authorization_endpoint:null==(D=T.authorization)?void 0:D.url,token_endpoint:null==(M=T.token)?void 0:M.url,userinfo_endpoint:null==(R=T.userinfo)?void 0:R.url,jwks_uri:T.jwks_endpoint})}let L=new I.Client({client_id:T.clientId,client_secret:T.clientSecret,redirect_uris:[T.callbackUrl],...T.client},T.jwks);return L[P.custom.clock_tolerance]=10,L}},90051:(N,I,T)=>{"use strict";T.d(I,{N:()=>B});var P=T(12235),D=T(48459),M=T(42586),R=T(69867),L=T(14111);function $(N,I){let T=(0,M.q)(),P=I?.firstWeekContainsDate??I?.locale?.options?.firstWeekContainsDate??T.firstWeekContainsDate??T.locale?.options?.firstWeekContainsDate??1,$=(0,L.h)(N,I),F=(0,R.w)(I?.in||N,0);return F.setFullYear($,0,P),F.setHours(0,0,0,0),(0,D.k)(F,I)}var F=T(43691);function B(N,I){let T=(0,F.a)(N,I?.in);return Math.round(((0,D.k)(T,I)-$(T,I))/P.my)+1}},90078:(N,I,T)=>{"use strict";function P(N,I){if(!I)return"";let T=["Country","Region","City"],P=T.indexOf(I);return -1===P?"":T.slice(0,P+1).map(I=>N[I]).filter(Boolean).map(N=>N.toTitleCase()).join(", ")}T.d(I,{B:()=>P})},90089:(N,I,T)=>{"use strict";T.d(I,{Q:()=>P});var P=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(N){return this.listeners.add(N),this.onSubscribe(),()=>{this.listeners.delete(N),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},90241:N=>{"use strict";let I=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);N.exports=N=>!I.has(N&&N.code)},90661:(N,I,T)=>{var P=T(84943)("jsonp");N.exports=R;var D=0;function M(){}function R(N,I,T){"function"==typeof I&&(T=I,I={}),I||(I={});var R,L,$=I.prefix||"__jp",F=I.name||$+D++,B=I.param||"callback",U=null!=I.timeout?I.timeout:6e4,H=encodeURIComponent,z=document.getElementsByTagName("script")[0]||document.head;function W(){R.parentNode&&R.parentNode.removeChild(R),window[F]=M,L&&clearTimeout(L)}function q(){window[F]&&W()}return U&&(L=setTimeout(function(){W(),T&&T(Error("Timeout"))},U)),window[F]=function(N){P("jsonp got",N),W(),T&&T(null,N)},N+=(~N.indexOf("?")?"&":"?")+B+"="+H(F),P('jsonp req "%s"',N=N.replace("?&","?")),(R=document.createElement("script")).src=N,z.parentNode.insertBefore(R,z),q}},90921:(N,I,T)=>{"use strict";T.r(I),T.d(I,{useUserDropdown:()=>U});var P=T(31),D=T(85609),M=T(89099),R=T(10553),L=T(14232),$=T(60409),F=T(81202),B=T(42339);let U=({session:N,locale:I,dictionary:T,menuItems:U})=>{let{asPath:H,pathname:z}=(0,M.useRouter)(),W=(0,P.resolveActivePortal)(z),[q,G]=(0,L.use
1317State)(!1),K=(0,L.useRef)(null),V=N?.user?.accessToken?(0,B.dS)(N.user.accessToken):"Unknown User",Y=(0,B.NQ)(V),{page:J}=(0,D.M5)(),{pageLanguages:Q}=J.layout.sitecore.context,Z=(0,P.resolveCurrentLanguage)(Q,I),X=(0,P.resolveAlternativeLanguages)(Q,I),ee=Z?.name===$.Xn,et=U?(0,P.flattenMenuItems)(U):[],er=()=>{G(N=>!N)};(0,L.useEffect)(()=>{let N=N=>{K.current?.contains(N.target)||G(!1)};return window.addEventListener("mousedown",N),()=>{window.removeEventListener("mousedown",N)}},[K]);let en=(0,F.xC)(T?.["general-morning-greeting"]??"Good Morning",T?.["general-afternoon-greeting"]??"Good Afternoon",T?.["general-evening-greeting"]??"Good Evening",new Date);return{ref:K,dropdownVisible:q,toggleDropdown:er,fullName:V,initials:Y,currentLanguage:Z,alternativeLanguages:X,isGlobal:ee,flattenedMenuItems:et,timedGreeting:en,isVisible:(0,P.shouldShowUserDropdown)(H,z,N),handleSignOut:async()=>{let{callbackUrl:N,azureLogoutUrl:T}=(0,P.resolveLogoutUrls)(I,W,window.location.origin);await (0,R.signOut)({callbackUrl:N,redirect:!1}),window.location.href=T}}}},90938:(N,I,T)=>{"use strict";function P(N){if(N)return N.startsWith("+31")&&12===N.length?`${N.slice(0,3)} ${N.slice(3,4)} ${N.slice(4,6)} ${N.slice(6,8)} ${N.slice(8)}`:N}T.d(I,{y:()=>P})},90969:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),Object.defineProperty(I,"default",{enumerable:!0,get:function(){return R}});let P=T(88955),D=T(68833);function M({config:N,src:I,width:T,quality:R}){let L=(0,D.getDeploymentId)();if(I.startsWith("/")&&!I.startsWith("//"))if(I.includes("/_next/static/immutable")&&!(0,D.getAssetToken)())L=void 0;else{let N=I.indexOf("?");if(-1!==N){let T=new URLSearchParams(I.slice(N+1)),P=T.get("dpl");if(P){L=P,T.delete("dpl");let D=T.toString();I=I.slice(0,N)+(D?"?"+D:"")}}}if(I.startsWith("/")&&I.includes("?")&&N.localPatterns?.length===1&&"**"===N.localPatterns[0].pathname&&""===N.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${I}" is using a query string which is not configured in images.localPatterns. 1318Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let $=(0,P.findClosestQuality)(R,N);return`${N.path}?url=${encodeURIComponent(I)}&w=${T}&q=${$}${I.startsWith("/")&&L?`&dpl=${L}`:""}`}M.__next_img_default=!0;let R=M},90970:(N,I,T)=>{"use strict";var P;P={value:!0},Object.defineProperty(I,"draftMode",{enumerable:!0,get:function(){return H}});let D=T(20368),M=T(57049),R=T(18736),L=T(49961),$=T(50473),F=T(70515),B=T(29877);T(81176);let U=T(61303);function H(){let N="draftMode",I=M.workAsyncStorage.getStore(),T=D.workUnitAsyncStorage.getStore();switch((!I||!T)&&(0,D.throwForMissingRequestStore)(N),T.type){case"prerender-runtime":{let{stagedRendering:N}=T;if(N)return N.delayUntilStage(U.RENDER_STAGES_BY_DATA_KIND.sessionData,"draftMode",new G(T.draftMode));return z(T.draftMode,I)}case"request":return z(T.draftMode,I);case"cache":case"private-cache":case"unstable-cache":let P=(0,D.getDraftModeProviderForCacheScope)(I,T);if(P)return z(P,I);case"prerender":case"prerender-ppr":case"prerender-legacy":return z(null,I);case"prerender-client":case"validation-client":{let N="`draftMode`";throw Object.defineProperty(new B.InvariantError(`${N} must not be used within a Client Component. Next.js should be preventing ${N} from being included in Client Components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1046",enumerable:!1,configurable:!0})}case"generate-static-params":throw Object.defineProperty(Error(`Route ${I.route} used \`${N}()\` inside \`generateStaticParams\`. This is not supported because \`generateStaticParams\` runs at build time without an HTTP request. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`),"__NEXT_ERROR_CODE",{value:"E1132",enumerable:!1,configurable:!0});default:return T}}function z(N,I){let T=N??W,P=q.get(T);return P||Promise.resolve(new G(N))}let W={},q=new WeakMap;class G{constructor(N){this._provider=N}get isEnabled(){return null!==this._provider&&this._provider.isEnabled}enable(){V("draftMode().enable()",this.enable),null!==this._provider&&this._provider.enable()}disable(){V("draftMode().disable()",this.disable),null!==this._provider&&this._provider.disable()}}function K(N,I){let T=N?`Route "${N}" `:"This route ";return Object.defineProperty(Error(`${T}used ${I}. \`draftMode()\` returns a Promise and must be unwrapped with \`await\` or \`React.use()\` before accessing its properties. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`),"__NEXT_ERROR_CODE",{value:"E835",enumerable:!1,
1318configurable:!0})}function V(N,I){let T=M.workAsyncStorage.getStore(),P=D.workUnitAsyncStorage.getStore();if(T){if((null==P?void 0:P.phase)==="after")throw Object.defineProperty(Error(`Route ${T.route} used "${N}" inside \`after()\`. The enabled status of \`draftMode()\` can be read inside \`after()\` but you cannot enable or disable \`draftMode()\`. See more info here: https://nextjs.org/docs/app/api-reference/functions/after`),"__NEXT_ERROR_CODE",{value:"E845",enumerable:!1,configurable:!0});if(T.dynamicShouldError)throw Object.defineProperty(new $.StaticGenBailoutError(`Route ${T.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${N}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E553",enumerable:!1,configurable:!0});if(P)switch(P.type){case"cache":case"private-cache":{let P=Object.defineProperty(Error(`Route ${T.route} used "${N}" inside "use cache". The enabled status of \`draftMode()\` can be read in caches but you must not enable or disable \`draftMode()\` inside a cache. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E829",enumerable:!1,configurable:!0});throw Error.captureStackTrace(P,I),(0,U.applyOwnerStack)(P),T.invalidDynamicUsageError??=P,P}case"unstable-cache":throw Object.defineProperty(Error(`Route ${T.route} used "${N}" inside a function cached with \`unstable_cache()\`. The enabled status of \`draftMode()\` can be read in caches but you must not enable or disable \`draftMode()\` inside a cache. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`),"__NEXT_ERROR_CODE",{value:"E844",enumerable:!1,configurable:!0});case"prerender":case"prerender-runtime":{let I=Object.defineProperty(Error(`Route ${T.route} used ${N} without first calling \`await connection()\`. See more info here: https://nextjs.org/docs/messages/next-prerender-sync-headers`),"__NEXT_ERROR_CODE",{value:"E126",enumerable:!1,configurable:!0});return(0,R.abortAndThrowOnSynchronousRequestDataAccess)(T.route,N,I,P)}case"prerender-client":case"validation-client":let D="`draftMode`";throw Object.defineProperty(new B.InvariantError(`${D} must not be used within a Client Component. Next.js should be preventing ${D} from being included in Client Components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1046",enumerable:!1,configurable:!0});case"prerender-ppr":return(0,R.postponeWithTracking)(T.route,N,P.dynamicTracking);case"prerender-legacy":P.revalidate=0;let M=Object.defineProperty(new F.DynamicServerError(`Route ${T.route} couldn't be rendered statically because it used \`${N}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`),"__NEXT_ERROR_CODE",{value:"E558",enumerable:!1,configurable:!0});throw T.dynamicUsageDescription=N,T.dynamicUsageStack=M.stack,M;case"request":(0,R.trackDynamicDataInDynamicRender)(P);break;case"generate-static-params":throw Object.defineProperty(Error(`Route ${T.route} used \`${N}\` inside \`generateStaticParams\`. This is not supported because \`generateStaticParams\` runs at build time without an HTTP request. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`),"__NEXT_ERROR_CODE",{value:"E1121",enumerable:!1,configurable:!0})}}}(0,L.createDedupedByCallsiteServerErrorLoggerDev)(K)},91165:(N,I,T)=>{"use strict";T.r(I),T.d(I,{useMyBrunelApplicantCompetenceLanguageForm:()=>R});var P=T(14232),D=T(67881),M=T(98566);let R=N=>{let I=N.mercuryData?.mercuryId??N?.session?.user?.email??"unknown",T=N.mercuryData?.mercuryId??N?.session?.user?.id??"unknown",R=N.session?.user?.roles?.join(",")??"unknown",L=N.dictionary,$=(0,M.ju)({userID:T,userRoles:R,initialValue:N.mercuryData?.skillLevels,session:N.session,dictionary:L}),[F,B]=(0,P.useState)(!1),U=()=>{$.addCandidateSkill(),B(!0),$.setOpenAddCandidateSkills(!1)};return(0,P.useEffect)(()=>{D.q.applicantPortal.applicantPortalPageLoad(T),D.q.applicantPortal.startApplicantPortalForm("Competence",T,R)},[]),{userID:I,dictionary:L,...$,hasNewSkills:F,setHasNewSkills:B,handleAddCandidateSkill:U}}},91317:(N,I,T)=>{"use strict";T.d(I,{s:()=>F});var P=T(12235),D=T(61120),M=T(69867),R=T(54334);
1318function L(N,I){let T=(0,R.p)(N,I),P=(0,M.w)(I?.in||N,0);return P.setFullYear(T,0,4),P.setHours(0,0,0,0),(0,D.b)(P)}var $=T(43691);function F(N,I){let T=(0,$.a)(N,I?.in);return Math.round(((0,D.b)(T)-L(T))/P.my)+1}},91362:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=M;var P=T(63426),D=T(41362);async function M(N,I){var T,M,R,L;let{url:$,adapter:F,provider:B,callbackUrl:U,theme:H}=I,z=null!=(T=await (null==(M=B.generateVerificationToken)?void 0:M.call(B)))?T:(0,P.randomBytes)(32).toString("hex"),W=86400,q=new Date(Date.now()+(null!=(R=B.maxAge)?R:W)*1e3),G=new URLSearchParams({callbackUrl:U,token:z,email:N}),K=`${$}/callback/${B.id}?${G}`;return await Promise.all([B.sendVerificationRequest({identifier:N,token:z,expires:q,url:K,provider:B,theme:H}),null==(L=F.createVerificationToken)?void 0:L.call(F,{identifier:N,token:(0,D.hashToken)(z,I),expires:q})]),`${$}/verify-request?${new URLSearchParams({provider:B.id,type:B.type})}`}},91408:(N,I,T)=>{"use strict";let P,D,M;T.d(I,{Ik:()=>e4,YO:()=>e6,Yj:()=>eB,gl:()=>eE,p6:()=>eK});var R=T(82420),L=T(42482),$=T(94279),F=T.n($);let B=Object.prototype.toString,U=Error.prototype.toString,H=RegExp.prototype.toString,z="u">typeof Symbol?Symbol.prototype.toString:()=>"",W=/^Symbol\((.*)\)(.*)$/;function q(N){return N!=+N?"NaN":0===N&&1/N<0?"-0":""+N}function G(N,I=!1){if(null==N||!0===N||!1===N)return""+N;let T=typeof N;if("number"===T)return q(N);if("string"===T)return I?`"${N}"`:N;if("function"===T)return"[Function "+(N.name||"anonymous")+"]";if("symbol"===T)return z.call(N).replace(W,"Symbol($1)");let P=B.call(N).slice(8,-1);return"Date"===P?isNaN(N.getTime())?""+N:N.toISOString(N):"Error"===P||N instanceof Error?"["+U.call(N)+"]":"RegExp"===P?H.call(N):null}function K(N,I){let T=G(N,I);return null!==T?T:JSON.stringify(N,function(N,T){let P=G(this[N],I);return null!==P?P:T},2)}function V(N){return null==N?[]:[].concat(N)}let Y=/\$\{\s*(\w+)\s*\}/g;P=Symbol.toStringTag;class J{constructor(N,I,T,D){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[P]="Error",this.name="ValidationError",this.value=I,this.path=T,this.type=D,this.errors=[],this.inner=[],V(N).forEac
1318h(N=>{if(Q.isError(N)){this.errors.push(...N.errors);let I=N.inner.length?N.inner:[N];this.inner.push(...I)}else this.errors.push(N)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}D=Symbol.hasInstance,M=Symbol.toStringTag;class Q extends Error{static formatError(N,I){let T=I.label||I.path||"this";return(I=Object.assign({},I,{path:T,originalPath:I.path}),"string"==typeof N)?N.replace(Y,(N,T)=>K(I[T])):"function"==typeof N?N(I):N}static isError(N){return N&&"ValidationError"===N.name}constructor(N,I,T,P,D){const R=new J(N,I,T,P);if(D)return R;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[M]="Error",this.name=R.name,this.message=R.message,this.type=R.type,this.value=R.value,this.path=R.path,this.errors=R.errors,this.inner=R.inner,Error.captureStackTrace&&Error.captureStackTrace(this,Q)}static[D](N){return J[Symbol.hasInstance](N)||super[Symbol.hasInstance](N)}}let Z={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:N,type:I,value:T,originalValue:P})=>{let D=null!=P&&P!==T?` (cast from the value \`${K(P,!0)}\`).`:".";return"mixed"!==I?`${N} must be a \`${I}\` type, but the final value was: \`${K(T,!0)}\``+D:`${N} must match the configured type. The validated value was: \`${K(T,!0)}\``+D}},X={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},ee={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},et={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},er={isValue:"${path} field must be ${value}"},en={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},ea={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},ei={notType:N=>{let{path:I,value:T,spec:P}=N,D=P.types.length;if(Array.isArray(T)){if(T.length<D)return`${I} tuple value has too few items, expected a length of ${D} but got ${T.length} for value: \`${K(T,!0)}\``;if(T.length>D)return`${I} tuple value has too many items, expected a length of ${D} but got ${T.length} for value: \`${K(T,!0)}\``}return Q.formatError(Z.notType,N)}};Object.assign(Object.create(null),{mixed:Z,string:X,number:ee,date:et,object:en,array:ea,boolean:er,tuple:ei});let eo=N=>N&&N.__isYupSchema__;class es{static fromOptions(N,I){if(!I.then&&!I.otherwise)throw TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:T,then:P,otherwise:D}=I,M="function"==typeof T?T:(...N)=>N.every(N=>N===T);return new es(N,(N,I)=>{var T;let R=M(...N)?P:D;return null!=(T=null==R?void 0:R(I))?T:I})}constructor(N,I){this.fn=void 0,this.refs=N,this.refs=N,this.fn=I}resolve(N,I){let T=this.refs.map(N=>N.getValue(null==I?void 0:I.value,null==I?void 0:I.parent,null==I?void 0:I.context)),P=this.fn(T,N,I);if(void 0===P||P===N)return N;if(!eo(P))throw TypeError("conditions must return a schema object");return P.resolve(I)}}let el="$",ec=".";class eu{constructor(N,I={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!=typeof N)throw TypeError("ref must be a string, got: "+N);if(this.key=N.trim(),""===N)throw TypeError("ref must be a non-empty string");this.isContext=this.key[0]===el,this.isValue=this.key[0]===ec,this.isSibling=!this.isContext&&!this.isValue;let T=this.isContext?el:this.isValue?ec:"";this.path=this.key.slice(T.length),this.getter=this.path&&(0,R.getter)(this.path,!0),this.map=I.map}getValue(N,I,T){let P=this.isContext?T:this.isValue?N:I;return this.getter&&(P=this.getter(P||{})),this.map&&(P=this.map(P)),P}cast(N,I){return this.getValue(N,null==I?void 0:I.parent,null==I?void 0:I.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(N){return N&&N.__isYupRef}}eu.prototype.__isYupRef=!0;let ed=N=>null==N;function ef(N){function I({value:T,path:P="",options:D,originalValue:M,schema:R},L,$){let F,{name:B,test:U,params:H,message:z,skipAbsent:W}=N,{parent:q,context:G,abortEarly:K=R.spec.abortEarly,disableStackTrace:V=R.spec.disableStackTrace}=D,Y={value:T,parent:q,context:G};function J(N={}){let I=eh(Object.assign({value:T,originalValue:M,label:R.spec.label,path:N.path||P,spec:R.spec,disableStackTrace:N.disableStackTrace||V},H,N.params),Y),D=new Q(Q.formatError(N.message||z,I),T,I.path,N.type||B,I.disableStackTrace);return D.params=I,D}let Z=K?L:$,X={path:P,parent:q,type:B,from:D.from,createError:J,resolve:N=>ep(N,Y),options:D,originalValue:M,schema:R},ee=N=>{Q.isError(N)?Z(N):N?$(null):Z(J())},et=N=>{Q.isError(N)?Z(N):L(N)};if(W&&ed(T))return ee(!0);try{var er;if(F=U.call(X,T,X),"function"==typeof(null==(er=F)?void 0:er.then)){if(D.sync)throw Error(`Validation test of type: "${X.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(F).then(ee,et)}}catch(N){et(N);return}ee(F)}return I.OPTIONS=N,I}function eh(N,I){if(!N)return N;for(let T of Object.keys(N))N[T]=ep(N[T],I);return N}function ep(N,I){return eu.isRef(N)?N.getValue(I.value,I.parent,I.context):N}function em(N,I,T,P=T){let D,M,L;return I?((0,R.forEach)(I,(R,$,F)=>{let B=$?R.slice(1,R.length-1):R,U="tuple"===(N=N.resolve({context:P,parent:D,value:T})).type,H=F?parseInt(B,10):0;
1318if(N.innerType||U){if(U&&!F)throw Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${L}" must contain an index to the tuple element, e.g. "${L}[0]"`);if(T&&H>=T.length)throw Error(`Yup.reach cannot resolve an array item at index: ${R}, in the path: ${I}. because there is no value at that index. `);D=T,T=T&&T[H],N=U?N.spec.types[H]:N.innerType}if(!F){if(!N.fields||!N.fields[B])throw Error(`The schema does not contain the path: ${I}. (failed at: ${L} which is a type: "${N.type}")`);D=T,T=T&&T[B],N=N.fields[B]}M=B,L=$?"["+R+"]":"."+R}),{schema:N,parent:D,parentPath:M}):{parent:D,parentPath:I,schema:N}}class eg extends Set{describe(){let N=[];for(let I of this.values())N.push(eu.isRef(I)?I.describe():I);return N}resolveAll(N){let I=[];for(let T of this.values())I.push(N(T));return I}clone(){return new eg(this.values())}merge(N,I){let T=this.clone();return N.forEach(N=>T.add(N)),I.forEach(N=>T.delete(N)),T}}function ey(N,I=new Map){let T;if(eo(N)||!N||"object"!=typeof N)return N;if(I.has(N))return I.get(N);if(N instanceof Date)T=new Date(N.getTime()),I.set(N,T);else if(N instanceof RegExp)T=new RegExp(N),I.set(N,T);else if(Array.isArray(N)){T=Array(N.length),I.set(N,T);for(let P=0;P<N.length;P++)T[P]=ey(N[P],I)}else if(N instanceof Map)for(let[P,D]of(T=new Map,I.set(N,T),N.entries()))T.set(P,ey(D,I));else if(N instanceof Set)for(let P of(T=new Set,I.set(N,T),N))T.add(ey(P,I));else if(N instanceof Object)for(let[P,D]of(T={},I.set(N,T),Object.entries(N)))T[P]=ey(D,I);else throw Error(`Unable to clone ${N}`);return T}function eb(N){if(!(null!=N&&N.length))return;let I=[],T="",P=!1,D=!1;for(let M=0;M<N.length;M++){let R=N[M];if("["===R&&!D){T&&(I.push(...T.split(".").filter(Boolean)),T=""),P=!0;continue}if("]"===R&&!D){T&&(/^\d+$/.test(T)?I.push(T):I.push(T.replace(/^"|"$/g,"")),T=""),P=!1;continue}if('"'===R){D=!D;continue}if("."===R&&!P&&!D){T&&(I.push(T),T="");continue}T+=R}return T&&I.push(...T.split(".").filter(Boolean)),I}function ev(N,I){let T=I?`${I}.${N.path}`:N.path;return N.errors.map(N=>({message:N,path:eb(T)}))}function ew(N,I){var T;if(!(null!=(T=N.inner)&&T.length)&&N.errors.length)return ev(N,I);let P=I?`${I}.${N.path}`:N.path;return N.inner.flatMap(N=>ew(N,P))}class ex{constructor(N){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new eg,this._blacklist=new eg,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Z.notType)}),this.type=N.type,this._typeCheck=N.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},null==N?void 0:N.spec),this.withMutation(N=>{N.nonNullable()})}get _type(){return this.type}clone(N){if(this._mutate)return N&&Object.assign(this.spec,N),this;let I=Object.create(Object.getPrototypeOf(this));
vendor: 6,383 bytes, lines 1318-1321
1318return I.type=this.type,I._typeCheck=this._typeCheck,I._whitelist=this._whitelist.clone(),I._blacklist=this._blacklist.clone(),I.internalTests=Object.assign({},this.internalTests),I.exclusiveTests=Object.assign({},this.exclusiveTests),I.deps=[...this.deps],I.conditions=[...this.conditions],I.tests=[...this.tests],I.transforms=[...this.transforms],I.spec=ey(Object.assign({},this.spec,N)),I}label(N){let I=this.clone();return I.spec.label=N,I}meta(...N){if(0===N.length)return this.spec.meta;let I=this.clone();return I.spec.meta=Object.assign(I.spec.meta||{},N[0]),I}withMutation(N){let I=this._mutate;this._mutate=!0;let T=N(this);return this._mutate=I,T}concat(N){if(!N||N===this)return this;if(N.type!==this.type&&"mixed"!==this.type)throw TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${N.type}`);let I=this,T=N.clone(),P=Object.assign({},I.spec,T.spec);return T.spec=P,T.internalTests=Object.assign({},I.internalTests,T.internalTests),T._whitelist=I._whitelist.merge(N._whitelist,N._blacklist),T._blacklist=I._blacklist.merge(N._blacklist,N._whitelist),T.tests=I.tests,T.exclusiveTests=I.exclusiveTests,T.withMutation(I=>{N.tests.forEach(N=>{I.test(N.OPTIONS)})}),T.transforms=[...I.transforms,...T.transforms],T}isType(N){return null==N?!!this.spec.nullable&&null===N||!!this.spec.optional&&void 0===N:this._typeCheck(N)}resolve(N){let I=this;if(I.conditions.length){let T=I.conditions;(I=I.clone()).conditions=[],I=(I=T.reduce((I,T)=>T.resolve(I,N),I)).resolve(N)}return I}resolveOptions(N){var I,T,P,D;return Object.assign({},N,{from:N.from||[],strict:null!=(I=N.strict)?I:this.spec.strict,abortEarly:null!=(T=N.abortEarly)?T:this.spec.abortEarly,recursive:null!=(P=N.recursive)?P:this.spec.recursive,disableStackTrace:null!=(D=N.disableStackTrace)?D:this.spec.disableStackTrace})}cast(N,I={}){let T=this.resolve(Object.assign({},I,{value:N})),P="ignore-optionality"===I.assert,D=T._cast(N,I);if(!1!==I.assert&&!T.isType(D)){if(P&&ed(D))return D;let M=K(N),R=K(D);throw TypeError(`The value of ${I.path||"field"} could not be cast to a value that satisfies the schema type: "${T.type}". 1319 1320attempted value: ${M} 1321`+(R!==M?`result of cast: ${R}`:""))}return D}_cast(N,I){let T=void 0===N?N:this.transforms.reduce((T,P)=>P.call(this,T,N,this,I),N);return void 0===T&&(T=this.getDefault(I)),T}_validate(N,I={},T,P){let{path:D,originalValue:M=N,strict:R=this.spec.strict}=I,L=N;R||(L=this._cast(L,Object.assign({assert:!1},I)));let $=[];for(let N of Object.values(this.internalTests))N&&$.push(N);this.runTests({path:D,value:L,originalValue:M,options:I,tests:$},T,N=>{if(N.length)return P(N,L);this.runTests({path:D,value:L,originalValue:M,options:I,tests:this.tests},T,P)})}runTests(N,I,T){let P=!1,{tests:D,value:M,originalValue:R,path:L,options:$}=N,F=N=>{P||(P=!0,I(N,M))},B=N=>{P||(P=!0,T(N,M))},U=D.length,H=[];if(!U)return B([]);let z={value:M,originalValue:R,path:L,options:$,schema:this};for(let N=0;N<D.length;N++)(0,D[N])(z,F,function(N){N&&(Array.isArray(N)?H.push(...N):H.push(N)),--U<=0&&B(H)})}asNestedTest({key:N,index:I,parent:T,parentPath:P,originalParent:D,options:M}){let R=null!=N?N:I;if(null==R)throw TypeError("Must include `key` or `index` for nested validations");let L="number"==typeof R,$=T[R],F=Object.assign({},M,{strict:!0,parent:T,value:$,originalValue:D[R],key:void 0,[L?"index":"key"]:R,path:L||R.includes(".")?`${P||""}[${L?R:`"${R}"`}]`:(P?`${P}.`:"")+N});return(N,I,T)=>this.resolve(F)._validate($,F,I,T)}validate(N,I){var T;let P=this.resolve(Object.assign({},I,{value:N})),D=null!=(T=null==I?void 0:I.disableStackTrace)?T:P.spec.disableStackTrace;return new Promise((T,M)=>P._validate(N,I,(N,I)=>{Q.isError(N)&&(N.value=I),M(N)},(N,I)=>{N.length?M(new Q(N,I,void 0,void 0,D)):T(I)}))}validateSync(N,I){var T;let P,D=this.resolve(Object.assign({},I,{value:N})),M=null!=(T=null==I?void 0:I.disableStackTrace)?T:D.spec.disableStackTrace;return D._validate(N,Object.assign({},I,{sync:!0}),(N,I)=>{throw Q.isError(N)&&(N.value=I),N},(I,T)=>{if(I.length)throw new Q(I,N,void 0,void 0,M);P=T}),P}isValid(N,I){return this.validate(N,I).then(()=>!0,N=>{if(Q.isError(N))return!1;throw N})}isValidSync(N,I){try{return this.validateSync(N,I),!0}catch(N){if(Q.isError(N))return!1;throw N}}_getDefault(N){let I=this.spec.default;return null==I?I:"function"==typeof I?I.call(this,N):ey(I)}getDefault(N){return this.resolve(N||{})._getDefault(N)}default(N){return 0==arguments.length?this._getDefault():this.clone({default:N})}strict(N=!0){return this.clone({strict:N})}nullability(N,I){let T=this.clone({nullable:N});return T.internalTests.nullable=ef({message:I,name:"nullable",test(N){return null!==N||this.schema.spec.nullable}}),T}optionality(N,I){let T=this.clone({optional:N});return T.internalTests.optionality=ef({message:I,name:"optionality",test(N){return void 0!==N||this.schema.spec.optional}}),T}optional(){return this.optionality(!0)}defined(N=Z.defined){return this.optionality(!1,N)}nullable(){return this.nullability(!0)}nonNullable(N=Z.notNull){return this.nullability(!1,N)}required(N=Z.required){return this.clone().withMutation(I=>I.nonNullable(N).defined(N))}notRequired(){return this.clone().withMutation(N=>N.nullable().optional())}transform(N){let I=this.clone();return I.transforms.push(N),I}test(...N){let I;if(void 0===(I=1===N.length?"function"==typeof N[0]?{test:N[0]}:N[0]:2===N.length?{name:N[0],test:N[1]}:{name:N[0],message:N[1],test:N[2]}).message&&(I.message=Z.default),"function"!=typeof I.test)throw TypeError("`test` is a required parameters");let T=this.clone(),P=ef(I),D=I.exclusive||I.name&&!0===T.exclusiveTests[I.name];if(I.exclusive&&!I.name)throw TypeError("Exclusive tests must provide a unique `name` identifying the test");return I.name&&(T.exclusiveTests[I.name]=!!I.exclusive),T.tests=T.tests.filter(N=>(N.OPTIONS.name!==I.name||!D&&N.OPTIONS.test!==P.OPTIONS.test)&&!0),T.tests.push(P),T}when(N,I){Array.isArray(N)||"string"==typeof N||(I=N,N=".");let T=this.clone(),P=V(N).map(N=>new eu(N));return P.forEach(N=>{N.isSibling&&T.deps.push(N.key)}),T.conditions.push("function"==typeof I?new es(P,I):es.fromOptions(P,I)),T}typeError(N){let I=this.clone();return I.internalTests.typeError=ef({message:N,name:"typeError",skipAbsent:!0,test(N){return!!this.schema._typeCheck(N)||this.createError({params:{type:this.schema.type}})}}),I}oneOf(N,I=Z.oneOf){let T=this.clone();
1321return N.forEach(N=>{T._whitelist.add(N),T._blacklist.delete(N)}),T.internalTests.whiteList=ef({message:I,name:"oneOf",skipAbsent:!0,test(N){let I=this.schema._whitelist,T=I.resolveAll(this.resolve);return!!T.includes(N)||this.createError({params:{values:Array.from(I).join(", "),resolved:T}})}}),T}notOneOf(N,I=Z.notOneOf){let T=this.clone();return N.forEach(N=>{T._blacklist.add(N),T._whitelist.delete(N)}),T.internalTests.blacklist=ef({message:I,name:"notOneOf",test(N){let I=this.schema._blacklist,T=I.resolveAll(this.resolve);return!T.includes(N)||this.createError({params:{values:Array.from(I).join(", "),resolved:T}})}}),T}strip(N=!0){let I=this.clone();return I.spec.strip=N,I}describe(N){let I=(N?this.resolve(N):this).clone(),{label:T,meta:P,optional:D,nullable:M}=I.spec;return{meta:P,label:T,optional:D,nullable:M,default:I.getDefault(N),type:I.type,oneOf:I._whitelist.describe(),notOneOf:I._blacklist.describe(),tests:I.tests.filter((N,I,T)=>T.findIndex(I=>I.OPTIONS.name===N.OPTIONS.name)===I).map(I=>{let T=I.OPTIONS.params&&N?eh(Object.assign({},I.OPTIONS.params),N):I.OPTIONS.params;return{name:I.OPTIONS.name,params:T}})}}get"~standard"(){let N=this;return{version:1,vendor:"yup",async validate(I){try{return{value:await N.validate(I,{abortEarly:!1})}}catch(N){if(N instanceof Q)return{issues:ew(N)};throw N}}}}}for(let N of(ex.prototype.__isYupSchema__=!0,["validate","validateSync"]))ex.prototype[`${N}At`]=function(I,T,P={}){let{parent:D,parentPath:M,schema:R}=em(this,I,T,P.context);return R[N](D&&D[M],Object.assign({},P,{parent:D,path:I}))};for(let N of["equals","is"])ex.prototype[N]=ex.prototype.oneOf;for(let N of["not","nope"])ex.prototype[N]=ex.prototype.notOneOf;let eA=()=>!0;function eE(N){return new eS(N)}class eS extends ex{constructor(N){super("function"==typeof N?{type:"mixed",check:N}:Object.assign({type:"mixed",check:eA},N))}}function e_(){return new ek}eE.prototype=eS.prototype;class ek extends ex{constructor(){super({type:"boolean",check:N=>(N instanceof Boolean&&(N=N.valueOf()),"boolean"==typeof N)}),this.withMutation(()=>{this.transform((N,I)=>{if(this.spec.coerce&&!this.isType(N)){if(/^(true|1)$/i.test(String(N)))return!0;if(/^(false|0)$/i.test(String(N)))return!1}return N})})}isTrue(N=er.isValue){return this.test({message:N,name:"is-value",exclusive:!0,params:{value:"true"},test:N=>ed(N)||!0===N})}isFalse(N=er.isValue){return this.test({message:N,name:"is-value",exclusive:!0,params:{value:"false"},test:N=>ed(N)||!1===N})}default(N){return super.default(N)}defined(N){return super.defined(N)}optional(){return super.optional()}required(N){return super.required(N)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(N){return super.nonNullable(N)}strip(N){return super.strip(N)}}e_.prototype=ek.prototype;let eC=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function ej(N){let I=eO(N);if(!I)return Date.parse?Date.parse(N):NaN;if(void 0===I.z&&void 0===I.plusMinus)return new Date(I.year,I.month,I.day,I.hour,I.minute,I.second,I.millisecond).valueOf();let T=0;return"Z"!==I.z&&void 0!==I.plusMinus&&(T=60*I.hourOffset+I.minuteOffset,"+"===I.plusMinus&&(T=0-T)),Date.UTC(I.year,I.month,I.day,I.hour,I.minute+T,I.second,I.millisecond)}function eO(N){var I,T;let P=eC.exec(N);return P?{year:eN(P[1]),month:eN(P[2],1)-1,day:eN(P[3],1),hour:eN(P[4]),minute:eN(P[5]),second:eN(P[6]),millisecond:P[7]?eN(P[7].substring(0,3)):0,precision:null!=(I=null==(T=P[7])?void 0:T.length)?I:void 0,z:P[8]||void 0,plusMinus:P[9]||void 0,hourOffset:eN(P[10]),minuteOffset:eN(P[11])}:null}function eN(N,I=0){return Number(N)||I}let eI=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,eT=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,eP=/^(?:[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,eD="^\\d{4}-\\d{2}-\\d{2}",eM="\\d{2}:\\d{2}:\\d{2}",eR="(([+-]\\d{2}(:?\\d{2})?)|Z)",eL=RegExp(`${eD}T${eM}(\\.\\d+)?${eR}$`),e$=N=>ed(N)||N===N.trim(),eF=({}).toString();function eB(){return new eU}class eU extends ex{constructor(){super({type:"string",check:N=>(N instanceof String&&(N=N.valueOf()),"string"==typeof N)}),this.withMutation(()=>{this.transform((N,I)=>
1321{if(!this.spec.coerce||this.isType(N)||Array.isArray(N))return N;let T=null!=N&&N.toString?N.toString():N;return T===eF?N:T})})}required(N){return super.required(N).withMutation(I=>I.test({message:N||Z.required,name:"required",skipAbsent:!0,test:N=>!!N.length}))}notRequired(){return super.notRequired().withMutation(N=>(N.tests=N.tests.filter(N=>"required"!==N.OPTIONS.name),N))}length(N,I=X.length){return this.test({message:I,name:"length",exclusive:!0,params:{length:N},skipAbsent:!0,test(I){return I.length===this.resolve(N)}})}min(N,I=X.min){return this.test({message:I,name:"min",exclusive:!0,params:{min:N},skipAbsent:!0,test(I){return I.length>=this.resolve(N)}})}max(N,I=X.max){return this.test({name:"max",exclusive:!0,message:I,params:{max:N},skipAbsent:!0,test(I){return I.length<=this.resolve(N)}})}matches(N,I){let T,P,D=!1;return I&&("object"==typeof I?{excludeEmptyString:D=!1,message:T,name:P}=I:T=I),this.test({name:P||"matches",message:T||X.matches,params:{regex:N},skipAbsent:!0,test:I=>""===I&&D||-1!==I.search(N)})}email(N=X.email){return this.matches(eI,{name:"email",message:N,excludeEmptyString:!0})}url(N=X.url){return this.matches(eT,{name:"url",message:N,excludeEmptyString:!0})}uuid(N=X.uuid){return this.matches(eP,{name:"uuid",message:N,excludeEmptyString:!1})}datetime(N){let I,T,P="";return N&&("object"==typeof N?{message:P="",allowOffset:I=!1,precision:T}=N:P=N),this.matches(eL,{name:"datetime",message:P||X.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:P||X.datetime_offset,params:{allowOffset:I},skipAbsent:!0,test:N=>{if(!N||I)return!0;let T=eO(N);return!!T&&!!T.z}}).test({name:"datetime_precision",message:P||X.datetime_precision,params:{precision:T},skipAbsent:!0,test:N=>{if(!N||void 0==T)return!0;let I=eO(N);return!!I&&I.precision===T}})}ensure(){return this.default("").transform(N=>null===N?"":N)}trim(N=X.trim){return this.transform(N=>null!=N?N.trim():N).test({message:N,name:"trim",test:e$})}lowercase(N=X.lowercase){return this.transform(N=>ed(N)?N:N.toLowerCase()).test({message:N,name:"string_case",exclusive:!0,skipAbsent:!0,test:N=>ed(N)||N===N.toLowerCase()})}uppercase(N=X.uppercase){return this.transform(N=>ed(N)?N:N.toUpperCase()).test({message:N,name:"string_case",exclusive:!0,skipAbsent:!0,test:N=>ed(N)||N===N.toUpperCase()})}}eB.prototype=eU.prototype;let eH=N=>N!=+N;function ez(){return new eW}class eW extends ex{constructor(){super({type:"number",check:N=>(N instanceof Number&&(N=N.valueOf()),"number"==typeof N&&!eH(N))}),this.withMutation(()=>{this.transform((N,I)=>{if(!this.spec.coerce)return N;let T=N;if("string"==typeof T){if(""===(T=T.replace(/\s/g,"")))return NaN;T*=1}return this.isType(T)||null===T?T:parseFloat(T)})})}min(N,I=ee.min){return this.test({message:I,name:"min",exclusive:!0,params:{min:N},skipAbsent:!0,test(I){return I>=this.resolve(N)}})}max(N,I=ee.max){return this.test({message:I,name:"max",exclusive:!0,params:{max:N},skipAbsent:!0,test(I){return I<=this.resolve(N)}})}lessThan(N,I=ee.lessThan){return this.test({message:I,name:"max",exclusive:!0,params:{less:N},skipAbsent:!0,test(I){return I<this.resolve(N)}})}moreThan(N,I=ee.moreThan){return this.test({message:I,name:"min",exclusive:!0,params:{more:N},skipAbsent:!0,test(I){return I>this.resolve(N)}})}positive(N=ee.positive){return this.moreThan(0,N)}negative(N=ee.negative){return this.lessThan(0,N)}integer(N=ee.integer){return this.test({name:"integer",message:N,skipAbsent:!0,test:N=>Number.isInteger(N)})}truncate(){return this.transform(N=>ed(N)?N:0|N)}round(N){var I;let T=["ceil","floor","round","trunc"];if("trunc"===(N=(null==(I=N)?void 0:I.toLowerCase())||"round"))return this.truncate();if(-1===T.indexOf(N.toLowerCase()))throw TypeError("Only valid options for round() are: "+T.join(", "));return this.transform(I=>ed(I)?I:Math[N](I))}}ez.prototype=eW.prototype;let eq=new Date(""),eG=N=>"[object Date]"===Object.prototype.toString.call(N);function eK(){return new eV}class eV extends ex{constructor(){super({type:"date",check:N=>eG(N)&&!isNaN(N.getTime())}),this.withMutation(()=>{this.transform((N,I)=>!this.spec.coerce||this.isType(N)||null===N?N:isNaN(N=ej(N))?eV.INVALID_DATE:new Date(N))})}prepareParam(N,I){let T;if(eu.isRef(N))T=N;else{let P=this.cast(N);if(!this._typeCheck(P))throw TypeError(`\`${I}\` must be a Date or a value that can be \`cast()\` to a Date`);T=P}return T}min(N,I=et.min){let T=this.prepareParam(N,"min");return this.test({message:I,name:"min",exclusive:!0,params:{min:N},skipAbsent:!0,test(N){return N>=this.resolve(T)}})}max(N,I=et.max){let T=this.prepareParam(N,"max");return this.test({message:I,name:"max",exclusive:!0,params:{max:N},skipAbsent:!0,test(N){return N<=this.resolve(T)}})}}function eY(N,I=[]){let T=[],P=new Set,D=new Set(I.map(([N,I])=>`${N}-${I}`));function M(N,I){let M=(0,R.split)(N)[0];P.add(M),D.has(`${I}-${M}`)||T.push([I,M])}for(let I of Object.keys(N)){let T=N[I];P.add(I),eu.isRef(T)&&T.isSibling?M(T.path,I):eo(T)&&"deps"in T&&T.deps.forEach(N=>M(N,I))}return F().array(Array.from(P),T).reverse()}function eJ(N,I){let T=1/0;return N.some((N,P)=>{var D;if(null!=(D=I.path)&&D.includes(N))return T=P,!0}),T}function eQ(N){return(I,T)=>eJ(N,I)-eJ(N,T)}eV.INVALID_DATE=eq,eK.prototype=eV.prototype,eK.INVALID_DATE=eq;let eZ=(N,I,T)=>{if("string"!=typeof N)return N;let P=N;try{P=JSON.parse(N)}catch(N){}return T.isType(P)?P:N};function eX(N){if("fields"in N){let I={};for(let[T,P]of Object.entries(N.fields))I[T]=eX(P);return N.setFields(I)}if("array"===N.type){let I=N.optional();return I.innerType&&(I.innerType=eX(I.innerType)),I}return"tuple"===N.type?N.optional().clone({types:N.spec.types.map(eX)}):"optional"in N?N.optional():N}let e0=(N,I)=>{let T=[...(0,R.normalizePath)(I)];if(1===T.length)return T[0]in N;let P=T.pop(),D=(0,R.getter)((0,R.join)(T),!0)(N);return!!(D&&P in D)},e1=N=>"[object Object]"===Object.prototype.toString.call(N);function e2(N,I){let T=Object.keys(N.fields);return Object.keys(I).filter(N=>-1===T.indexOf(N))}let e3=eQ([]);function e4(N){return new e5(N)}class e5 extends ex{constructor(N){super({type:"object",check:N=>e1(N)||"function"==typeof N}),this.fields=Object.create(null),this._sortErrors=e3,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{N&&this.shape(N)})}_cast(N,I={}){var T;let P=super._cast(N,I);if(void 0===P)return this.getDefault(I);if(!this._typeCheck(P))return P;let D=this.fields,M=null!=(T=I.stripUnknown)?T:this.spec.noUnknown,R=[].concat(this._nodes,Object.keys(P).filter(N=>!this._nodes.includes(N))),L={},$=Object.assign({},I,{parent:L,__validating:I.__validating||!1}),F=!1;for(let N of R){let T=D[N],R=N in P,B=P[N];if(T){let D;$.path=(I.path?`${I.path}.`:"")+N;
1321let M=(T=T.resolve({value:B,context:I.context,parent:L}))instanceof ex?T.spec:void 0,R=null==M?void 0:M.strict;if(null!=M&&M.strip){F=F||N in P;continue}void 0!==(D=I.__validating&&R?B:T.cast(B,$))&&(L[N]=D)}else R&&!M&&(L[N]=B);(R!==N in L||L[N]!==B)&&(F=!0)}return F?L:P}_validate(N,I={},T,P){let{from:D=[],originalValue:M=N,recursive:R=this.spec.recursive}=I;I.from=[{schema:this,value:M},...D],I.__validating=!0,I.originalValue=M,super._validate(N,I,T,(N,D)=>{if(!R||!e1(D))return void P(N,D);M=M||D;let L=[];for(let N of this._nodes){let T=this.fields[N];!T||eu.isRef(T)||L.push(T.asNestedTest({options:I,key:N,parent:D,parentPath:I.path,originalParent:M}))}this.runTests({tests:L,value:D,originalValue:M,options:I},T,I=>{P(I.sort(this._sortErrors).concat(N),D)})})}clone(N){let I=super.clone(N);return I.fields=Object.assign({},this.fields),I._nodes=this._nodes,I._excludedEdges=this._excludedEdges,I._sortErrors=this._sortErrors,I}concat(N){let I=super.concat(N),T=I.fields;for(let[N,I]of Object.entries(this.fields)){let P=T[N];T[N]=void 0===P?I:P}return I.withMutation(I=>I.setFields(T,[...this._excludedEdges,...N._excludedEdges]))}_getDefault(N){if("default"in this.spec)return super._getDefault(N);if(!this._nodes.length)return;let I={};return this._nodes.forEach(T=>{var P;let D=this.fields[T],M=N;null!=(P=M)&&P.value&&(M=Object.assign({},M,{parent:M.value,value:M.value[T]})),I[T]=D&&"getDefault"in D?D.getDefault(M):void 0}),I}setFields(N,I){let T=this.clone();return T.fields=N,T._nodes=eY(N,I),T._sortErrors=eQ(Object.keys(N)),I&&(T._excludedEdges=I),T}shape(N,I=[]){return this.clone().withMutation(T=>{let P=T._excludedEdges;return I.length&&(Array.isArray(I[0])||(I=[I]),P=[...T._excludedEdges,...I]),T.setFields(Object.assign(T.fields,N),P)})}partial(){let N={};for(let[I,T]of Object.entries(this.fields))N[I]="optional"in T&&T.optional instanceof Function?T.optional():T;return this.setFields(N)}deepPartial(){return eX(this)}pick(N){let I={};for(let T of N)this.fields[T]&&(I[T]=this.fields[T]);return this.setFields(I,this._excludedEdges.filter(([I,T])=>N.includes(I)&&N.includes(T)))}omit(N){let I=[];for(let T of Object.keys(this.fields))N.includes(T)||I.push(T);return this.pick(I)}from(N,I,T){let P=(0,R.getter)(N,!0);return this.transform(D=>{if(!D)return D;let M=D;return e0(D,N)&&(M=Object.assign({},D),T||delete M[N],M[I]=P(D)),M})}json(){return this.transform(eZ)}exact(N){return this.test({name:"exact",exclusive:!0,message:N||en.exact,test(N){if(null==N)return!0;let I=e2(this.schema,N);return 0===I.length||this.createError({params:{properties:I.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(N=!0,I=en.noUnknown){"boolean"!=typeof N&&(I=N,N=!0);let T=this.test({name:"noUnknown",exclusive:!0,message:I,test(I){if(null==I)return!0;let T=e2(this.schema,I);return!N||0===T.length||this.createError({params:{unknown:T.join(", ")}})}});return T.spec.noUnknown=N,T}unknown(N=!0,I=en.noUnknown){return this.noUnknown(!N,I)}transformKeys(N){return this.transform(I=>{if(!I)return I;let T={};for(let P of Object.keys(I))T[N(P)]=I[P];return T})}
1321camelCase(){return this.transformKeys(L.camelCase)}snakeCase(){return this.transformKeys(L.snakeCase)}constantCase(){return this.transformKeys(N=>(0,L.snakeCase)(N).toUpperCase())}describe(N){let I=(N?this.resolve(N):this).clone(),T=super.describe(N);for(let[D,M]of(T.fields={},Object.entries(I.fields))){var P;let I=N;null!=(P=I)&&P.value&&(I=Object.assign({},I,{parent:I.value,value:I.value[D]})),T.fields[D]=M.describe(I)}return T}}function e6(N){return new e8(N)}e4.prototype=e5.prototype;class e8 extends ex{constructor(N){super({type:"array",spec:{types:N},check:N=>Array.isArray(N)}),this.innerType=void 0,this.innerType=N}_cast(N,I){let T=super._cast(N,I);if(!this._typeCheck(T)||!this.innerType)return T;let P=!1,D=T.map((N,D)=>{let M=this.innerType.cast(N,Object.assign({},I,{path:`${I.path||""}[${D}]`,parent:T,originalValue:N,value:N,index:D}));return M!==N&&(P=!0),M});return P?D:T}_validate(N,I={},T,P){var D;let M=this.innerType,R=null!=(D=I.recursive)?D:this.spec.recursive;null!=I.originalValue&&I.originalValue,super._validate(N,I,T,(D,L)=>{var $,F;if(!R||!M||!this._typeCheck(L))return void P(D,L);let B=Array(L.length);for(let T=0;T<L.length;T++)B[T]=M.asNestedTest({options:I,index:T,parent:L,parentPath:I.path,originalParent:null!=(F=I.originalValue)?F:N});this.runTests({value:L,tests:B,originalValue:null!=($=I.originalValue)?$:N,options:I},T,N=>P(N.concat(D),L))})}clone(N){let I=super.clone(N);return I.innerType=this.innerType,I}json(){return this.transform(eZ)}concat(N){let I=super.concat(N);return I.innerType=this.innerType,N.innerType&&(I.innerType=I.innerType?I.innerType.concat(N.innerType):N.innerType),I}of(N){let I=this.clone();if(!eo(N))throw TypeError("`array.of()` sub-schema must be a valid yup schema not: "+K(N));return I.innerType=N,I.spec=Object.assign({},I.spec,{types:N}),I}length(N,I=ea.length){return this.test({message:I,name:"length",exclusive:!0,params:{length:N},skipAbsent:!0,test(I){return I.length===this.resolve(N)}})}min(N,I){return I=I||ea.min,this.test({message:I,name:"min",exclusive:!0,params:{min:N},skipAbsent:!0,test(I){return I.length>=this.resolve(N)}})}max(N,I){return I=I||ea.max,this.test({message:I,name:"max",exclusive:!0,params:{max:N},skipAbsent:!0,test(I){return I.length<=this.resolve(N)}})}ensure(){return this.default(()=>[]).transform((N,I)=>this._typeCheck(N)?N:null==I?[]:[].concat(I))}compact(N){let I=N?(I,T,P)=>!N(I,T,P):N=>!!N;return this.transform(N=>null!=N?N.filter(I):N)}describe(N){let I=(N?this.resolve(N):this).clone(),T=super.describe(N);if(I.innerType){var P;let D=N;null!=(P=D)&&P.value&&(D=Object.assign({},D,{parent:D.value,value:D.value[0]})),T.innerType=I.innerType.describe(D)}return T}}function e7(N){return new e9(N)}e6.prototype=e8.prototype;class e9 extends ex{constructor(N){super({type:"tuple",spec:{types:N},check(N){let I=this.spec.types;return Array.isArray(N)&&N.length===I.length}}),this.withMutation(()=>{this.typeError(ei.notType)})}_cast(N,I){let{types:T}=this.spec,P=super._cast(N,I);if(!this._typeCheck(P))return P;let D=!1,M=T.map((N,T)=>{let M=N.cast(P[T],Object.assign({},I,{path:`${I.path||""}[${T}]`,parent:P,originalValue:P[T],value:P[T],index:T}));return M!==P[T]&&(D=!0),M});return D?M:P}_validate(N,I={},T,P){let D=this.spec.types;super._validate(N,I,T,(M,R)=>{var L,$;if(!this._typeCheck(R))return void P(M,R);let F=[];for(let[T,P]of D.entries())F[T]=P.asNestedTest({options:I,index:T,parent:R,parentPath:I.path,originalParent:null!=($=I.originalValue)?$:N});this.runTests({value:R,tests:F,originalValue:null!=(L=I.originalValue)?L:N,options:I},T,N=>P(N.concat(M),R))})}describe(N){let I=(N?this.resolve(N):this).clone(),T=super.describe(N);return T.innerType=I.spec.types.map((I,T)=>{var P;let D=N;return null!=(P=D)&&P.value&&(D=Object.assign({},D,{parent:D.value,value:D.value[T]})),I.describe(D)}),T}}e7.prototype=e9.prototype},92234:(N,I,T)=>{"use strict";T.d(I,{J:()=>Q});var P=T(87307),D=T(58171),M=T(30463),R=T(78028),L=T(82752),$=T(99742);class F{#eC;constructor(N){this.#eC=R.A.create({baseURL:N===Q.provider.AZURE_B2C?`https://${$.env.AZURE_AD_B2C_TENANT_NAME}.b2clogin.com/${$.env.AZURE_AD_B2C_TENANT_NAME}.onmicrosoft.com/${$.env.AZURE_AD_B2C_PRIMARY_USER_FLOW}/oauth2/v2.0/token`:`https://login.microsoftonline.com/${$.env.AZURE_AD_TENANT_ID}/oauth2/v2.0/token`,timeout:15e3}),this.#eC.interceptors.response.use(N=>N,N=>(0,L.r)(N))}refreshToken=N=>{let I=new URLSearchParams({grant_type:N.grant_type,scope:N.scope,...N?.client_id?{client_id:N.client_id}:{}
1321,...N?.client_secret?{client_secret:N.client_secret}:{},refresh_token:N.refresh_token});return this.#eC.post("",I.toString(),{headers:{Authorization:`Bearer ${N.bearer_token}`,"Content-Type":"application/x-www-form-urlencoded"}}).then(N=>N.data).catch(N=>{if("error_description"in N)throw Error(N.error_description);throw Error("Error unknown when refreshing Azure access token")})}}let B=N=>new F(N);var U=T(65212),H=T(99742);let z="azure-ad-b2c",W="azure-ad",q=`api://${H.env.API_SCOPE}/.default openid offline_access`,G=`https://brunelb2c.onmicrosoft.com/${H.env.API_SCOPE_B2C}/Notifications.All openid offline_access`,K=Date.now()+12e5,V=N=>[W,z].includes(N),Y=N=>N===z;async function J(N,I){return await B(I).refreshToken({grant_type:"refresh_token",scope:I===z?G:q,client_id:I===W?H.env.AZURE_AD_CLIENT_ID:null,client_secret:H.env.AZURE_AD_CLIENT_SECRET??"",refresh_token:N.refreshToken,bearer_token:N.accessToken}).then(T=>{if("access_token"in T)return U.A.authSession(`[${I}] Access token refreshed successfully`),{...N,accessToken:T.access_token??"",refreshToken:T.refresh_token??"",expireToken:K};throw Error("Failed to refresh Azure access token")})}let Q={AzureAD:(0,P.A)({clientId:H.env.AZURE_AD_CLIENT_ID,clientSecret:H.env.AZURE_AD_CLIENT_SECRET,tenantId:H.env.AZURE_AD_TENANT_ID,authorization:{params:{scope:q}}}),AzureB2C:(0,D.A)({tenantId:H.env.AZURE_AD_B2C_TENANT_NAME,clientId:H.env.AZURE_AD_B2C_CLIENT_ID,primaryUserFlow:H.env.AZURE_AD_B2C_PRIMARY_USER_FLOW,authorization:{params:(M.A.defaultSite,{scope:G})},checks:["pkce"],client:{token_endpoint_auth_method:"none"},clientSecret:""}),refreshAccessToken:J,provider:{AZURE_AD:W,AZURE_B2C:z},isAzureProvider:V,isAzureB2CProvider:Y,sessionExpiration:K}},92594:(N,I,T)=>{"use strict";T.d(I,{G_:()=>B,_3:()=>L,dX:()=>$});var P=T(55333);T(30463),T(65212);var D=T(60409);T(4695),T(10988);var M=T(98176);T(81202);let R=N=>N?.toLowerCase()?.replaceSpacesWithDashes()??M.oC,L=(N,I)=>(0,P.Cx)()?"#":`${M.Qm}/${R(I)}/${N}`,$=N=>(0,P.Cx)()?"#":N?.trim()?`${M.Qm}/${R(N)}`:M.Qm,F=N=>N?.toLowerCase().includes(M.Qm),B=(N,I)=>{if(F(I.url)&&I.fields?.[D.lI.caseStudyCategory]){let T=I.fields?.[D.lI.caseStudyCategory],P=Array.isArray(T)?T[0]:T;if(!P?.name)return N;N.url={path:L(I.name,P.name)},N.caseStudyCategory={data:{name:P.name,displayName:P.displayName}}}return N}},92678:(N,I,T)=>{"use strict";T.r(I),T.d(I,{Button:()=>P.Button,Footer:()=>D.Footer,FooterTH:()=>D.FooterTH,Header:()=>M.Header,HeaderTH:()=>M.HeaderTH,HeroWithCenteredAlignment:()=>R.HeroWithCenteredAlignment,HeroWithLeftAlignment:()=>R.HeroWithLeftAlignment,LinkListWithIcon:()=>L.LinkListWithIcon,TextWithIconLeft:()=>F.TextWithIconLeft,TextWithIconRight:()=>F.TextWithIconRight,TextWithImageLeft:()=>B.TextWithImageLeft,TextWithImageRight:()=>B.TextWithImageRight,UspList:()=>$.UspList});var P=T(23649),D=T(62713),M=T(71017),R=T(2075),L=T(49711),$=T(65575),F=T(99604),B=T(97618)},92879:(N,I,T)=>{"use strict";T.r(I),T.d(I,{WorldMapSVG:()=>R});var P=T(37876),D=T(63136),M=T(36379);let R=({continentClassNames:N,...I})=>(0,P.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMinYMin meet",viewBox:"0 0 875 425",...I,children:[(0,P.jsx)("style",{children:"g{stroke-width:0}@media (min-width:704px){g{stroke-width:2px}}"}),(0,P.jsx)("g",{id:"Component---Map",fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:1,children:(0,P.jsx)("g",{id:"Component---Map---Desktop",fill:"#4F5D6B",transform:"translate(-326 -205)",children:(0,P.jsx)("g",{id:"Map-+-Labels",transform:"translate(327 206)",children:(0,P.jsxs)("g",{id:"Map",children:[(0,P.jsxs)("g",{id:D.Continents.Australasia,stroke:"#ECECEC",transform:"translate(705.777 265.624)",className:(0,M.cn)(N),onMouseEnter:()=>document.getElementById(D.Continents.AustralasiaInfo)?.classList.add("info-hover"),onMouseLeave:()=>document.getElementById(D.Continents.AustralasiaInfo)?.classList.remove("info-hover"),children:[(0,P.jsx)("path",{id:"Fill-51",d:"M102.548 76.353a266.737 266.737 0 0 0-4.808-10.594c-1.449-3.02-2.821-6.063-2.879-9.467-.031-1.811-.943-2.585-2.523-2.955-1.402-.328-2.785-.744-4.192-1.047-1.96-.423-3.076-1.686-3.597-3.524-.362-1.278-.69-2.576-.898-3.886-.518-3.273-1.825-6.162-4.07-8.594-2.232-2.417-3.701-5.227-4.611-8.369-.195-.673-.6-1.286-1.103-2.332-1.424 3.233-2.029 6.167-1.181 9.102.588 2.035.696 3.912.002 5.841-.662 1.843-.976 3.861-2.627 5.676-.891-.525-1.633-.812-2.182-1.313-1.819-1.663-3.873-2.951-6.032-4.109-.7
132177-.415-1.503-.944-2.196-1.491-.757-.598-1.075-1.431-.803-2.374a39.631 39.631 0 0 1 1.07-3.141c.398-1.044.834-2.067.273-3.317-2.304-1.549-4.919.144-7.815-.528-.106-.146-.383-.649-.779-1.028-.379-.365-.882-.6-1.239-.833-1.846.699-.686 2.703-1.848 3.806-.706-.785-1.263-1.458-1.879-2.072-.349-.348-.794-.602-1.17-.88-.387 1.238-.499 2.428-1.088 3.293-.943 1.388-1.741 2.79-2.315 4.374-.525 1.447-1.652 1.63-2.899.594-.592-.492-1.055-1.139-1.634-1.65-.559-.495-1.192-.906-1.715-1.295-2.86 1.422-2.975 1.567-4.012 3.918-.483 1.093-.605 2.381-1.714 3.273-2.349.529-4.641-1.439-7.255-.403-.125.687-.388 1.43-.369 2.167.051 1.993.231 3.983.34 5.975.034.639.005 1.281.005 2.1-1.065.248-2.017.465-2.965.694-.75.181-1.589.221-2.223.6-1.316.789-2.695 1.04-4.154.826-1.683-.246-3.031.365-4.278 1.391-1.884 1.551-3.885 2.979-5.63 4.673-1.169 1.135-2.116 2.564-2.919 3.998-1.019 1.818-.826 2.329.669 3.76 1.027.981 2.305 1.724 3.04 3.065-1.37 2.874-.685 5.359 1.182 7.745.723.924 1.437 2.129 1.494 3.239.092 1.811.777 3.18 1.905 4.463.365.414.658.891.98 1.342.682.955.581 1.908-.156 2.74-.733.827-1.585 1.545-2.359 2.336-1.075 1.098-1.182 1.931-.355 3.264.407.654.934 1.235 1.414 1.843.909 1.153 2.117 1.512 3.544 1.386 2.041-.18 3.985-.764 5.538-2.056 2.241-1.865 4.584-1.894 7.14-.975.729.262 1.481.468 2.236.645.605.142 1.229.201 1.914.307.556-2.117.968-4.067 1.588-5.948.804-2.439 1.68-3.128 4.205-2.695 2.12.363 3.869-.178 5.745-.951 2.129-.878 4.327-1.719 6.666-1.472 1.926 2.13 1.928 2.127 4.61 3.105.624.228 1.258.445 1.851.74 1.835.914 2.198 1.702 1.865 3.731-.153.939-.69 1.862-.191 3.081 1.364.027 2.634.162 3.332-1.439.261-.6.627-1.196 1.083-1.659.813-.825 1.546-1.866 2.943-1.89.822 1.508-.254 3.247.89 4.574l1.518-.566c.67 1.31 1.219 2.63 2.613 3.37 1.061.563 1.333 1.69 1.385 2.86.055 1.201-.168 2.454.55 3.596 1.221.446 2.596.695 3.666 1.406 1.139.757 1.988 1.95 3.108 3.101l2.511-2.612c1.982-.337 3.075 1.307 4.779 1.844.685-.401 1.428-.867 2.199-1.281 1.168-.627 2.295-1.485 3.548-1.766 2.416-.542 3.529-2.089 4.095-4.28.112-.429.252-.851.375-1.277.939-3.273 2.602-6.076 5.156-8.382 1.394-1.259 2.624-2.705 3.877-4.111 1.607-1.803 1.992-3.94 1.389-6.224-.451-1.711-.937-3.435-1.63-5.058"}),(0,P.jsx)("path",{id:"Fill-52",d:"M150.256 112.514c-1.407 1.353-3.41 1.815-4.263 3.676-.681 1.483-1.908 2.41-3.188 3.306-1.815 1.273-3.659 2.51-5.409 3.869-.952.739-1.858 1.607-2.565 2.578-1.193 1.637-.597 3.321 1.344 3.906 1.696.511 3.445.82 5.451.538 2.58-3.479 5.756-6.561 9.053-9.53a5.303 5.303 0 0 0 1.181-1.594c1.457-2.997 1.819-4.525-1.604-6.749"}),(0,P.jsx)("path",{id:"Fill-53",d:"M160.518 104.539c-2.711.535-4.137-1.001-5.168-3.158-.477-.998-.852-2.044-1.292-3.06-.587-1.355-1.513-2.064-2.087-1.587-.855.709-.465 1.619-.254 2.456.105.421.378.797.545 1.206.375.918.814 1.821 1.077 2.772.505 1.822.45 3.515-1.419 4.666-.339.21-.527.667-.798 1.028.983 1.921 3.173.837 4.553 2.091-.214.751-.542 1.556-.645 2.389-.057.471.137 1.081.433 1.461.341.437 1.351.244 1.779-.292a9.24 9.24 0 0 0 1.071-1.667c.98-1.985 1.809-4.05 3.542-5.569.55-.481.529-1.193.259-1.848-.29-.701-.878-1.03-1.596-.888"}),(0,P.jsx)("path",{id:"Fill-54",d:"M86.29 114.326c-1.465 1.052-2.94 1.507-4.634.609-.191-.101-.426-.197-.63-.179-.309.027-.772.068-.878.262-.182.334-.338.975-.16 1.168 1.293 1.399 2.261 2.931 2.279 4.768 1.233.761 2.324.501 3.372.149 1.024-.344 1.523-1.275 1.915-2.183a36.91 36.91 0 0 0 1.475-4.033c.135-.45-.088-1.007-.182-1.81-1.024.489-1.872.756-2.557 1.249"}),(0,P.jsx)("path",{id:"Fill-55",d:"M134.48 57.872c-.259-.467-.575-.958-.992-1.269-1.239-.922-2.609-1.527-4.842-1.338 1.321 1.848 2.068 3.425 3.433 4.561.682.568 1.643.614 2.099.161a1.76 1.76 0 0 0 .302-2.115"}),(0,P.jsx)("path",{id:"Fill-56",d:"M166.709 41.588c-2.492.932-3.862 2.702-5.014 5.014 1.998.414 3.082-.734 4.141-1.808.751-.761 1.503-1.617.873-3.206"}),(0,P.jsx)("path",{id:"Fill-57",d:"M70.434 21.438c2.042 3.185 3.621 3.147 5.514-.121.554-.957.971-2.006 1.61-2.9.997-1.397 2.497-1.778 4.128-1.555 1.297.179 1.779 1.179 2.044 2.325.049.215.117.429.202.632 1.392 3.306 4.858 5.758 9.103 6.231-.052-2.958-.769-5.269-2.983-6.952-2.093-1.59-3.576-3.644-4.283-6.165-.292-1.043-.735-1.855-1.672-2.332-1.75-.892-2.909-2.322-3.908-3.961-.697-1.145-1.591-2.22-2.928-2.595-2.724-.763-4.947-2.409-7.34-3.794C69.762.158 69.6.087 69.439 0v19.721c.337.613.65 1.179.995 1.717"})]}),(0,P.jsxs)("g",{id:D.Continents.Asia,stroke:"#FFF",transform:"translate(543.053 35.296)",className:(0,M.cn)(N),onMouseEnter:()=>document.getElementById(D.Continents.AsiaInfo)?.classList.add("info-hover"),onMouseLeave:()=>document.getElementById(D.Continents.AsiaInfo)?.classList.remove("info-hover"),children:[(0,P.jsx)("path",{id:"Fill-32",d:"M234.082 98.122c.304-.824.504-1.578.85-2.258.773-1.518 1.86-1.785 3.238-.856.273.184.53.404.754.645.746.807 1.704.923 2.726.924 1.356 0 2.643.304 3.721 1.168.62.496 1.207 1.176.815 1.977-.254.52-.883 1.06-1.44 1.195-2.355.564-4.743.992-7.124 1.445-1.73.33-3.469.62-5.543.989l-2.06-1.533c.172-.506.182-.935.396-1.097 1.134
1321-.861 2.318-1.655 3.667-2.6"}),(0,P.jsx)("path",{id:"Fill-33",d:"M155.16 218.856c.032 5.95.761 10.93 4.995 14.776.326.296.675.596 1.065.787.587.289 1.202.59 1.837.699 2.072.354 4.158.624 6.24.924 1.34.193 2.647.188 3.781-.625.081-.137.183-.232.186-.33.031-.983.07-1.968.061-2.953-.02-2.43.567-4.61 2.452-6.295.331-.295.621-.634.94-.943 1.704-1.66 2.137-3.552 1.1-5.743-.52-1.101-.979-2.232-1.5-3.332-.56-1.183-.274-2.136.685-2.96.733-.628 1.448-1.278 2.171-1.918-.263-.294-.408-.577-.52-.564-1.747.193-2.35-.94-2.696-2.326-.233-.932-.378-1.887-.56-2.826-2.87.507-3.179 1.062-3.01 5.247-.474.137-.986.406-1.502.413-2.235.028-3.832.966-4.66 3.078-.535 1.36-1.582 2.135-2.93 2.472-1.643.41-2.746 1.326-3.324 2.934-.165.46-.57.835-.874 1.26-1.178-.53-2.16-.974-3.937-1.775"}),(0,P.jsx)("path",{id:"Fill-34",d:"M146.54 243.078c.15-1.251.314-2.326.4-3.407.16-1.995.374-3.967 1.4-5.752.161-.282.25-.614.331-.933.288-1.146-.036-2.043-1.207-2.316-1.446-.338-2.195-1.366-3.109-2.32-1.447-1.513-2.9-3.036-4.485-4.398-2.103-1.808-4.145-3.654-5.878-5.831-2.363-2.97-5.43-5.19-8.298-7.61-1.156-.976-2.589-1.711-4.434-.987.142.569.127 1.182.42 1.553.885 1.125 1.89 2.157 2.848 3.226 1.916 2.14 3.873 4.246 5.735 6.432 1.398 1.64 2.07 3.576 2.27 5.76.19 2.08.602 4.159 1.11 6.19 1.32 5.286 1.424 4.438 5.244 5.929 2.377.928 4.756 1.814 6.232 4.127.154.243.766.195 1.42.337"}),(0,P.jsx)("path",{id:"Fill-35",d:"M212.53 121.086c-2.218 2.08-3.742 4.363-6.504 5.083-.694.18-.935.916-.888 1.627a9.46 9.46 0 0 0 1.964 5.197c.851 1.11 2.224 1.175 3.123.075.463-.566.672-1.35.957-2.051.234-.577.412-1.176.67-1.924.915.232 1.653.372 2.361.607 1.492.494 2.584.033 3.386-1.277.335-.548.711-1.072 1.084-1.63.508.324.85.632 1.25.78 1.651.612 2.476.459 3.378-1.005.632-1.025 1.447-1.597 2.495-2.025 1.124-.457 2.272-.898 3.312-1.512 4.608-2.72 4.358-1.562 4.556-7.008.05-1.354.194-2.65 1.561-3.44.644-.372.828-1.104.592-1.751a128.814 128.814 0 0 0-2.54-6.462c-.337-.787-1.56-.81-1.88-.035-.41.999-.824 2.088-.832 3.14-.023 2.984-1.133 5.609-2.317 8.238-.566 1.254-1.339 2.143-2.749 2.653-1.642.594-3.27 1.424-4.653 2.48-1.295.992-2.55 1.162-4.026.907-1.406-.242-2.819-.44-4.3-.667"}),(0,P.jsx)("path",{id:"Fill-36",d:"M129.59 196.538c-.193.092-.463.13-.567.284-.902 1.324-.755 3.954.556 4.86 1.907 1.319 2.535 3.186 3.165 5.243.871 2.849 2.04 5.606 3.078 8.404.595 1.6 1.626 2.879 2.916 3.968.931.786 1.851 1.584 2.796 2.352.337.274.712.524 1.108.7.796.355 1.932-.5 1.782-1.365-.09-.528-.273-1.085-.57-1.523-1.324-1.955-2.167-4.081-2.665-6.388-.23-1.067-.73-2.085-1.184-3.091-1.29-2.86-7.005-10.748-9.28-12.867-.16-.15-.32-.314-.51-.411-.189-.096-.416-.114-.625-.166"}),(0,P.jsx)("path",{id:"Fill-37",d:"M181.228 193.378c2.501-1.76 4.103-3.59 5.581-5.52.926-1.208 1.967-2.06 3.55-2.175.527-.04 1.088-.248 1.537-.532.303-.193.435-.655.712-1.106-2.273-1.396-4.698-1.47-7.05-1.68.326-3.08.344-3.062 2.275-5.114.512-.544 1.06-1.172 1.266-1.86.296-.986-.112-1.97-.67-2.83-.625-.958-1.414-1.662-2.582-1.63-.232.272-.494.435-.494.597.012 2.23-1.093 3.765-2.94 4.863-.19.112-.357.266-.52.416-1.464 1.349-1.75 2.449-.719 4.112.75 1.207 1.8 2.228 2.726 3.323.63.742 1.59 1.269 1.541 2.74-.678.712-1.539 1.56-2.334 2.466-.843.96-1.892 1.839-1.879 3.93"}),(0,P.jsx)("path",{id:"Fill-38",d:"M181.631 227.032c-.423.55-.72.776-.797 1.06a292.06 292.06 0 0 0-1.634 6.379c-.163.663-.156 1.37.483 1.779.626.4 1.28.152 1.85-.234.364-.246.686-.555 1.042-.813.692-.5 1.395-.984 2.252-1.585.341.683.657 1.129.788 1.624.168.634.04 1.375.303 1.947.405.874.93 1.748 1.601 2.427.693.703 1.64 1.09 2.687.67.09-.221.247-.422.242-.617-.085-2.86-.7-5.46-3.342-7.147-.613-.392-1.349-.877-.866-1.962.501 0 1.045.012 1.588-.003.44-.012.883-.021 1.315-.091.93-.15 1.461-.746 1.406-1.535-.056-.805-.614-1.164-1.304-1.227-.872-.081-1.767-.117-2.632-.008-1.666.209-3.294.263-4.982-.664"}),(0,P.jsx)("path",{id:"Fill-39",d:"M156.977 247.332c.1.078.387.25.605.489 1.371 1.488 3.04 2.073 5.066 1.959 1.085-.061 2.19.223 3.285.339.657.07 1.317.156 1.975.16.702.004 1.083-.774.77-1.454-.64-1.393-1.675-2.312-3.18-2.667-1.076-.254-2.176-.424-3.23-.748-1.86-.574-3.673-.821-5.288.366-.755-.304-1.35-.61-1.983-.783-.742-.203-1.513-.396-2.275-.406-1.375-.02-2.26-.655-2.95-1.794-.252-.415-.802-.65-1.1-.878-1.366.392-1.833 1.253-1.853 2.31-.022 1.185.558 2.184 1.588 2.734.756.404 1.658.739 2.496.743 1.86.009 3.721-.21 6.074-.37"}),(0,P.jsx)("path",{id:"Fill-40",d:"M185.822 203.589c.691.154 1.111.31 1.538.333 2.271.122 4.436.34 5.413 2.933.24.638 1.018.806 1.73.616.424-.114.861-.232 1.246-.437 2.883-1.533 3.583-4.71 1.572-7.225-.534-.668-1.197-1.232-1.883-1.927l-2.712 2.84c-1.6.062-2.808-1.38-4.317-.55-1.27.7-2.517 1.394-2.587 3.417"}),(0,P.jsx)("path",{id:"Fill-41",d:"M82.717 205.495c.297 1.634.49 3.16.872 4.638.247.958 1.467 1.134 2.115.404.218-.246.443-.5.598-.785 2.135-3.943 1.772-7.802-.449-11.571-.139-.236-.589-.493-.806-.432-.367.105-.886.408-.953.713-.515 2.353-.937 4.726-1.377 7.033"}),(0,P.jsx)("path",{id:"Fill-42",d:"M194.575 221.454c-.283-.115-.49-.283-.676-.26-.872.108-1.74.25-2.603.414-2.48.469-4.922 1.268-7.505.622-.58-.145-1.082.192-1.235.816-.172.7-.037 1.397.657 1.686.583.243 1.283.376 1.91.316a136.9 136.9 0 0 0 7.222-.865c1.514-.226 2.226-1.223 2.23-2.73"}
1321),(0,P.jsx)("path",{id:"Fill-43",d:"M204.344 218.83c-.47-.06-.614-.124-.673-.08-2.509 1.905-3.176 4.567-3.014 7.53.044.789 1.208 1.138 1.804.592.24-.22.494-.455.647-.735 1.247-2.27 1.886-4.646 1.236-7.307"}),(0,P.jsx)("path",{id:"Fill-44",d:"M186.88 196.396c3.24.775 3.732.78 5.728.09.044-1.086-.728-1.778-1.313-2.522-.803-1.022-1.725-2.29-3.193-1.711-1.339.529-1.584 1.959-1.524 3.332.01.2.143.397.302.81"}),(0,P.jsx)("path",{id:"Fill-45",d:"M186.235 152.786c-.21-.038-.459-.168-.63-.101-2.362.912-4.163 4.818-3.294 7.096.236.62 1.083.804 1.648.359 1.997-1.574 2.935-4.603 2.276-7.354"}),(0,P.jsx)("path",{id:"Fill-46",d:"M193.145 191.012c-.197 1.63.53 2.357 1.895 2.186.422-.052.863-.165 1.235-.363.696-.372 1.028-1.453.783-2.307-.272-.952-1.194-1.832-2.043-1.872-.953-.044-1.244.76-1.594 1.409-.2.37-.243.827-.276.947"}),(0,P.jsx)("path",{id:"Fill-47",d:"M191.51 255.069c-.69-.77-.522-1.581-.106-2.218a49.745 49.745 0 0 1 2.946-4c.638-.788 1.541-.786 2.427-.404.964.416 1.762 1.062 1.778 2.177.006.473-.302 1.158-.685 1.392-1.777 1.086-3.622 2.063-5.465 3.035-.25.132-.629.018-.895.018"}),(0,P.jsx)("path",{id:"Fill-48",d:"M181.546 254.828c-.907-.097-1.627-.91-1.602-1.806.022-.778.732-1.41 1.56-1.387.94.024 1.621.796 1.557 1.767-.053.816-.784 1.504-1.515 1.426"}),(0,P.jsx)("path",{id:"Fill-49",d:"M327.887 36.662c1.151-.676 1.685-1.743 1.434-3.095a10.641 10.641 0 0 0-.536-1.922c-.589-1.512-.736-2.952.06-4.483.582-1.12.084-2.142-.787-2.986-1.09-1.055-2.384-1.593-3.9-1.584-2.219.013-4.439.01-6.657.056-1.804.037-3.534-.162-5.13-1.106-.567-.335-1.207-.571-1.84-.762-1.549-.465-2.217-.22-3.072 1.14-.699 1.114-1.338 2.265-1.938 3.288-.454 0-.694.06-.883-.014-.303-.117-.68-.254-.839-.503-1.504-2.36-3.888-2.812-6.378-2.896a77.109 77.109 0 0 0-6.968.074c-1.766.1-3.53.38-5.274.699-1.867.34-3.403.033-4.893-1.298-2.836-2.534-6.152-3.87-10.069-3.321-1.535.216-3.092.278-4.638.42-.773.073-1.548.138-2.314.258-2.312.36-4.375-.167-6.27-1.55-1.164-.847-2.424-1.561-3.64-2.334-1.748-1.11-3.6-1.648-5.697-1.245-1.085.208-2.2.285-3.307.339-1.23.06-2.455-.054-3.494-.824-1.172-.87-2.454-1.463-3.862-1.868-.62-.18-1.128-.728-.619-1.62 2.14-.934 4.706-.937 6.917-2.502-.614-.636-1.042-1.455-1.674-1.668-2.823-.948-5.763-1.43-8.719-1.783-1.41.98-3.02.436-4.536.563-2.074.173-2.079.11-3.99-.937-1.19 1.113-1.516 1.842-1.17 2.733.313.812 1.025 1.136 1.803 1.294.65.132 1.318.169 1.98.242.88.098 1.774.124 2.638.3 1.31.269 1.956 1.099 1.818 2.352-.096.876-.224 1.79-.572 2.587-.874 2.002-1.968 3.8-4.669 3.32-.417-.074-.93-.03-1.306.153-2.61 1.267-5.438.866-8.177 1.152-.842.088-1.5-.121-2.126-.668-.313-.273-.736-.42-1.259-.706-1.069.844-2.079 1.687-3.137 2.464-1.899 1.393-3.497 1.147-4.757-.84-.456-.716-.654-1.625-.848-2.474-.22-.968-.24-1.982-.467-2.948-.28-1.2-1.067-1.923-2.346-1.984-4.892-.233-9.736-.314-14.154 2.414-1.792 1.106-3.749 1.274-5.669.052-1.432-.912-3.044-1.34-4.728-1.442a621.64 621.64 0 0 0-8.3-.442c-.775-.037-1.556.043-2.328-.02-.666-.052-1.32-.233-1.45-1.246.738-1.065 1.627-2.188 2.335-3.416.678-1.175.332-2.212-.877-2.76-.898-.407-1.868-.743-2.84-.882-2.63-.377-5.277-.667-7.924-.923-1.678-.163-3.315.13-4.9.716-.709.262-1.437.467-2.07.67-2.63-2.516-3.71-2.934-7.203-2.893-1.093.014-2.186.002-3.518.002-4.268 3.353-8.973 5.727-14.636 2.703-.41-.962-.779-1.82-1.144-2.673-1.436.343-1.878 1.48-2.682 2.2-2.358 2.117-4.824 3.83-8.31 3.258-2.547-.418-5.048-.048-7.473 1.045-1.72.775-3.43 1.487-5.005 2.57-2.42 1.669-5.082 2.657-8.133 2.329-1.427-.154-2.882-.076-4.323-.037-.502.014-.998.228-1.404.328-.222 1.238.537 1.656 1.161 2.027a73.715 73.715 0 0 0 4.671 2.546c1.826.916 2.442 2.463 2.457 4.366.007.904-.486 1.547-1.265 1.703-.729.147-1.552-.311-1.875-1.057-.088-.202-.197-.42-.198-.63-.005-2.313-1.474-3.333-3.443-3.872-1.535-.42-2.873-1.11-3.964-2.305-.438-.48-1.013-.871-1.594-1.173-1.84-.96-3.578-.211-4.174 1.793-.25.846-.314 1.748-.58 2.587-.279.876-1.347 1.37-2.474 1.279-.638-.051-1.05-.645-1.174-1.756-.086-.771-.079-1.557-.216-2.318-.088-.493-.36-.953-.645-1.668-1.217 1.05-1.928 2.157-2.504 3.325-.219.444-.27 1.128-.093 1.585.75 1.937.788 3.875.362 5.877-.113.53-.023 1.119.85 1.338 2.441-1.944 5.11-3.632 8.62-2.71l1.381 4.085c-3.077 2.014-3.377 1.954-6.824-1.217-1.234-.06-2.063.697-2.816 1.516-.749.815-1.532 1.637-2.097 2.577-1.412 2.35-3.606 3.532-6.084 4.323-.336.108-.76-.063-1.437-.137.491-.815.745-1.436 1.17-1.9.824-.894 1.757-1.688 2.624-2.544 1.516-1.5 2.288-3.105 1.504-5.371-.837-2.42-1.232-4.948.173-7.406.407-.713.29-1.587-.427-2.11a124.003 124.003 0 0 0-4.93-3.391c-.74-.486-1.503-.31-2.142.257-.497.44-.936.943-1.408 1.41-1.788 1.777-3.217 3.923-5.772 4.865-1.214.448-1.45 2.094-.627 3.136.468.59 1.125 1.043 1.733 1.51.79.606 1.648 1.125 2.415 1.756.523.432.971 1.087.482 1.722-.272.353-.967.623-1.413.553-1.082-.17-2.14-.53-3.189-.872-1.
1321156-.377-2.274-.88-3.44-1.218-1.377-.4-2.822-.581-4.175-1.042-.988-.337-1.983-.473-2.987-.53-4.222 4.876-5.6 15.599-6.97 15.043-1.483-.602-1.038 5.364-2.149 6.106-1.112.74-3.459 3.174-6.738 2.689-9.772-1.445-12.97 2.965-9.636 2.965 3.336 0 3.706 8.153 3.706 10.377s-2.594 8.153-2.965 10.408c-.37 2.256-10.006 7.752-11.118 8.832-1.112 1.08-4.076-1.08-4.766 2.626-.486 2.612 3.244 6.198 5.492 8.09.162.03.326.059.483.102 2.105.573 3.94.185 5.451-1.453.148-.161.36-.264.506-.427 1.977-2.203 3.952-1.644 6.182.07 1.516 1.166 2.623 2.924 3.277 4.947-2.483 1.905-4.793 1.214-6.938-.131-1.237.082-2.033.627-2.614 1.5-.576.865-.813 1.8-.486 2.813 2.42 1.262 2.472 1.234 3.661 3.506.646 1.235 1.43 2.185 2.78 2.67.475.17.841.643 1.391 1.084-.3.556-.53 1.032-.807 1.477-.287.463-.62.896-1.035 1.489 1.743 2.625.675 8.145 1.035 11.236.182 1.558 31.386 31.796 32.531 33.218.347.43.666.889.956 1.36.906 1.477 2.056 2.513 3.872 2.84 1.648.299 2.29 1.51 2.306 3.18.01 1.092.146 2.228.481 3.26.944 2.909 2.21 3.254 4.6 1.45.64-.483 1.07-1.461 2.29-1.088 0 1.655.075 3.316-.02 4.967-.128 2.239.097 4.418.615 6.596 1.525 6.414 4.018 12.435 7.255 18.16 1.478 2.615 2.98 5.18 2.85 8.377-.049 1.167.217 2.438 1.528 3.39.505-.536 1.132-.991 1.48-1.605 1.692-2.99 3.303-6.025 4.956-9.037.931-1.697 1.415-3.491 1.235-5.432-.185-1.986-.349-3.976-.61-5.953-.259-1.962.405-3.486 1.968-4.634.624-.458 1.34-.793 1.953-1.262 1.051-.804 2.257-1.514 3.042-2.537 2.294-2.99 5.131-5.532 7.11-8.777 1.063-1.746 2.694-2.575 4.738-2.594.776-.007 1.555-.056 2.33-.02 1.524.074 2.801-.303 3.816-1.562.444-.551 1.183-.865 1.88-1.351.398.497.797.79.91 1.17.71 2.394 2.035 4.443 3.612 6.313 2.692 3.19 3.487 6.798 2.92 10.875-.32 2.298-.323 4.642-.43 6.967-.019.398-.077.916.722 1.14.33-.423.805-.864 1.072-1.408.93-1.89 1.832-3.796 2.658-5.733.635-1.49 1.798-2.185 3.28-2.497.686-.144 1.398.314 1.485.98.085.657.076 1.326.11 1.989.137 2.657.347 5.314.39 7.974.042 2.549.947 4.758 2.312 6.827.27.407.461 1.038 1.454.757l2.094-8.368c.524.215 1.062.337 1.487.625 3.342 2.263 5.51 5.422 6.81 9.194.756 2.2 1.391 4.443 2.12 6.654.162.489.49.922.892 1.659.628-.995 1.156-1.694 1.537-2.467.735-1.491 1.447-3 2.055-4.545.615-1.563 1.586-2.725 3.268-3 2.56-.416 3.871-1.908 4.27-4.395.19-1.2.605-2.366.761-3.567.19-1.455.003-2.916-.84-4.16-1.865-2.748-3.676-5.545-5.734-8.145-1.542-1.95-2.706-3.996-3.454-6.51 1.77-1.91 3.485-3.784 5.23-5.63.591-.627 1.358-.75 2.14-.395.756.344 1.321 1.407 1.09 2.236-.237.845-.719 1.617-.99 2.455-.44 1.362-.974 2.733-1.126 4.137-.099.913.251 1.973.686 2.82.591 1.152 1.968 1.2 2.725.149.964-1.34 1.806-2.765 2.67-4.102-.537-.952-1.08-1.672-1.373-2.483-.973-2.697.918-5.007 3.783-5.072 5.658-.127 10.73-1.76 14.167-6.633 1.74-2.466 3.714-4.674 5.927-6.717 1.378-1.273 2.595-2.733 3.802-4.178 1.107-1.327 1.626-2.84 1.311-4.64-.208-1.191-.152-2.432-.183-3.652a12.472 12.472 0 0 0-1.88-6.305c-.87-1.415-1.846-2.766-2.743-4.166-.406-.635-.734-1.321-1.214-2.197.873-.507 1.606-.942 2.347-1.362.962-.544 2.013-.971 2.868-1.648.562-.445 1-1.194 1.217-1.892.366-1.173-.563-2.278-1.772-2.216-.77.04-1.564.136-2.296.369-1.83.58-3.252.062-4.427-1.387-.348-.43-.78-.79-1.14-1.21-1.16-1.354-.964-2.988.666-3.438 2.18-.601 3.602-2.084 5.153-3.494.715-.651 1.31-1.53 2.586-1.538.251 1.169-.51 2.134-.612 3.197-.089.954-.419 1.984.654 2.764 2.422-.253 3.83-2.553 6.118-3.173 1.277 1.314 1.327 2.833 1.151 4.389-.086.767-.387 1.516-.423 2.28-.022.475.271.963.47 1.595.591-.336.964-.547 1.336-.76.464-.264.927-.53 1.355-.776 2.307 2.394 2.526 3.434 1.314 5.954-.427.889-.889 1.76-1.268 2.506.334 1.603 1.41 2.14 2.61 2.507.962.293 1.71-.251 2.452-.741 3.622-2.392 4.634-7.056 2.337-10.767-.526-.848-1.11-1.666-1.566-2.55-.39-.757-.634-1.59-.983-2.49.748-.447 1.27-.861 1.863-1.092 1.33-.517 2.194-1.262 2.485-2.804.17-.897.846-1.821 1.54-2.472 1.443-1.351 3.05-2.53 4.687-3.858.664.318 1.323.715 2.034.959 1.814.623 3.288.449 4.748-1.176 2.663-2.966 5.536-5.762 8.485-8.45 2.811-2.561 4.61-5.636 5.595-9.254.525-1.925 1.041-3.853 1.614-5.763.141-.468.491-.873.89-1.553.768 2.373.846 4.442.791 6.567a81.838 81.838 0 0 0 .201 7.97c.124 1.72 1.213 2.735 3.04 3.038.835-1.623.373-3.172.02-4.61-.434-1.76.02-3.026 1.383-4.098.335-.263.597-.622.813-.853-.055-3.501-.072-3.55-2.875-8.351 1.337-1.287 1.962-2.826.067-4.633l-4.487.587c-.217-.234-.533-.533-.8-.87-.872-1.1-2.006-1.303-3.288-.98-.427.109-.84.279-1.25.446-3.88 1.582-3.198.617-4.245-2.31-.76.466-1.462.992-2.245 1.326-.294.125-.845-.11-1.147-.346-.176-.138-.217-.67-.097-.916.238-.486.55-1.01.975-1.315 1.078-.77 2.162-1.617 3.378-2.09 2.454-.956 4.396-2.542 6.201-4.375 1.09-1.106 2.233-2.161 3.32-3.271 1.32-1.35 2.853-2.008 4.778-1.82 1.654.165 3.324.169 4.985.272 3.347.208 6.668.159 9.818-1.185 1.166-.498 2.084-.19 3.103.44 1.121.693 2.331 1.32 3.586 1.692 1.498.444 3.133.6 4.4-.633 2.947-2.867 6.766-4.658 9.495-7.803.882-1.017 2.134-1.576 3.536-1.644.71-.
1321035 1.343.409 1.431 1.098.098.767.066 1.552.172 2.318.14 1.014.996 1.575 1.943 1.122 1.685-.807 3.294-1.774 4.934-2.675.241.54.141 1-.343 1.387-3.116 2.482-6.034 5.244-9.912 6.6-2.935 1.025-5.075 3.003-6.82 5.582-1.638 2.423-2.018 4.86-.994 7.554.434 1.14.884 2.274 1.333 3.408.687 1.736.724 3.424-.154 5.137-.502.98-.858 2.044-1.198 3.096-.146.449-.084.964-.128 1.609 2.604-2.456 5.038-4.698 7.402-7.01a21.008 21.008 0 0 0 2.586-3.034c1.475-2.134 3.045-4.08 5.683-4.86.752-.221 1.28-.802 1.498-1.646.443-1.714.982-3.402 1.428-5.115.163-.624.42-1.387.21-1.917-.796-1.99.371-3.458 1.208-4.957.972-1.741 2.783-2.06 4.603-2.164.886-.051 1.776-.06 2.662-.033 1.774.052 3.548.124 5.32.22 3.414.187 6.615-.43 9.52-2.338 2.73-1.792 5.816-2.71 8.944-3.494 2.254-.565 4.495-1.226 6.856-.397.577.202 1.337.179 1.708-.768-.557-2.07-3.228-2.848-3.742-5.227 1.051-.47 1.988-.792 2.827-1.283z"}),(0,P.jsx)("path",{id:"Fill-50",d:"M214.873 236.5c.877-.018 1.754-.004 2.74-.004.62 1.305 1.71 1.91 3.138 2.056.764.078 1.52.31 2.258.544 2.896.914 5.356 3.669 6.126 6.884-.619.377-1.293.73-1.903 1.175-.566.41-.94.95-.416 1.779.708 0 1.476-.007 2.244.002.86.009 1.718.03 2.51.047.214.377.406.727.592 1.067v-19.721c-3.657-1.973-7.55-2.447-11.438-1.061-1.713-.496-3.269-1.084-4.88-1.367-1.182-.208-1.99-.634-2.71-1.62-.98-1.336-1.793-1.342-3.019-.212-.694.64-1.56 1.239-1.548 2.403 1.746 1.33 4.25.56 5.814 2.254-.397 1.953-2.486 3.25-2.088 5.42.82.78 1.721.37 2.58.354z"})]}),(0,P.jsxs)("g",{id:D.Continents.Africa,stroke:"#ECECEC",transform:"translate(387.31 151.3)",className:(0,M.cn)(N),onMouseEnter:()=>document.getElementById(D.Continents.AfricaInfo)?.classList.add("info-hover"),onMouseLeave:()=>document.getElementById(D.Continents.AfricaInfo)?.classList.remove("info-hover"),children:[(0,P.jsx)("path",{id:"Fill-4",d:"M167.109 153.072c-.148-3.03-.435-5.227-1.603-7.186-.717-1.2-2.246-1.29-3.04-.154-.628.9-1.026 1.957-1.601 2.9-1.906 3.126-3.766 6.224-7.761 7.233-2.078.525-3.616 2.69-2.593 5.276.203.514.387 1.046.49 1.587.459 2.426.716 4.848-.653 7.103-.555.913-.641 1.903-.436 2.89.585 2.814 1.333 5.583 1.245 8.514-.04 1.32.99 2.144 2.35 2.397 2.593.481 4.309-.293 5.488-2.654.59-1.182 1.035-2.45 1.417-3.719 1.819-6.04 3.637-12.08 5.361-18.147.632-2.225 1.007-4.524 1.336-6.04"}),(0,P.jsx)("path",{id:"Fill-5",d:"M126.685 109.228c-.034 2.817-1.153 5.132-3.431 6.816-.497.367-1.186.2-1.407-.364-.394-1-.603-2.074-.763-2.654.114-1.18.128-1.849.25-2.498.401-2.119 1.973-3.136 4.14-2.679.715.151 1.22.638 1.211 1.38zm-1.169-90.212c-1.668.312-3.388.767-4.856-.817-.252-.272-.84-.402-1.236-.344-3.092.458-6.177.952-8.181 3.798a12.37 12.37 0 0 1-1.754 1.987c-.239.218-.745.145-1.338.236.397-1.7 1.647-2.339 2.531-3.26.898-.937 2.078-1.657 2.483-3.246-.637-.28-1.189-.708-1.765-.743a53.02 53.02 0 0 0-5.319-.069c-1.824.07-3.514-.29-5.151-1.072-1.185-.565-2.412-1.04-3.377-1.452-1.658.52-2.083 1.723-2.663 2.777-.641 1.165-1.172 2.4-1.896 3.508-1.107 1.696-2.078 1.92-3.967 1.1-1.214-.528-2.381-1.202-3.638-1.586-1.41-.43-2.717-1.015-3.817-1.957-1.823-1.559-3.936-2.477-6.229-3.008-2.819-.652-4.62-2.96-7.052-4.235-.09-.047-.146-.162-.213-.25-.596-.788-.292-1.894.659-2.156.941-.258 1.916-.395 2.945-.6.763-2.074.154-3.8-.923-5.403C69.842.861 68.477.102 66.841.012c-.983-.054-1.984.08-2.969.204-2.082.26-4.151.658-6.239.83-1.765.144-3.552.121-5.323.038-1.819-.085-3.532.217-5.184.947-2.738 1.21-5.498 2.373-8.207 3.645-2.346 1.103-4.675 1.931-7.352 1.35-1.445-.313-2.854.07-4.072 1.017-1.834 1.428-3.707 2.806-5.53 4.247-.425.336-.768.806-1.065 1.268-1.215 1.893-2.05 3.93-2.195 6.203-.057.886-.06 1.776-.14 2.66-.131 1.433-.815 2.491-2.165 3.104-1.11.504-2.198 1.06-3.287 1.607-4.892 2.46-5.283 2.968-6.998 8.198-.793 2.418-1.499 4.912-2.676 7.144-1.255 2.378-1.292 4.571-.459 7.018.603 1.774.974 3.635 1.341 5.48.335 1.69-.051 3.31-.844 4.823C2.346 61.951 1.191 64.093 0 66.327c1.384 1.781 1.731 3.798 1.346 5.97-.058.324-.033.664-.036.997-.011 1.072.401 1.972 1.274 2.574a19.21 19.21 0 0 0 2.578 1.5c1.098.526 2.238.971 3.377 1.405 1.973.753 3.307 2.04 4.1 4.064.969 2.472 2.173 4.855 3.331 7.25.382.79.839 1.585 1.431 2.221a98.496 98.496 0 0 0 4.698 4.713c.524.493 1.26.76 1.971 1.172.392-.502.785-.802.898-1.185.577-1.938 2.056-2.507 3.833-2.57 1.55-.054 3.105-.018 4.656.025 1.329.038 2.656.176 3.986.21 1.884.047 3.457-.672 4.707-2.082a76.558 76.558 0 0 0 1.953-2.27c.674-.822 1.527-1.27 2.58-1.32.885-.044 1.775-.118 2.656-.069 2.928.162 5.047 1.51 6.119 4.32.277.725.521 1.467.858 2.163.883 1.82 2.254 2.402 4.087 1.644.804-.333 1.501-.92 2.252-1.386.538-.332 1.083-.65 1.629-.978 1.109.834 2.135 1.505 3.043 2.31 1.392 1.234 1.593 2.256.431 3.761-1.305 1.692-1.691 3.546-1.79 5.584-.058 1.208-.293 2.415-.541 3.603-.595 2.85-.561 3.153 1.967 4.516 1.565.844 2.603 2.023 3.233 3.63.405 1.03.818 2.06 1.183 3.107.693 1.988 1.237 4.037 2.068 5.965.636 1.476.966 2.935.846 4.511-.207 2.7.04 5.296 1.354 7.75.991 1.851.848 3.564-.815 5.108-1.762 1.636-2.782 3.785-3.137 6.122-.588 3.874-.649 7.81.887 11.482 1.833 4.385 3.53 8.885 6.863 12.465.45.483.794 1.066 1.184 1.605 1.199 1.656 1.393 3.467.801 5.384-.263.847-.547 1.69-.883 2.51-.674 1.646-.712 3.205.335 4.744.933 1.371 1.699 2.861 2.683 4.19.941 1.272 1.717 2.596 2.059 4.133.48 2.16.901 4.332 1.325 6.504.191.978.287 1.975.498 2.95.426 1.971 1.929 2.888 3.644 3.537 1.44.545 2.484-.16 3.606-1.032 2.716-2.11 5.779-3.219 9.306-2.796 1.092.131 2.217.041 3.323-.017 1.844-.096 3.445-.81 4.766-2.096.715-.
1321696 1.415-1.415 2.042-2.188 2.793-3.446 5.536-6.934 8.341-10.37 1.465-1.796 1.944-3.575.821-5.805-1.811-3.596-.862-4.09 2.494-5.054 1.462-.42 3.067-.632 4.276-1.95.031-.466.182-1.032.083-1.55-.373-1.958-.712-3.935-1.283-5.837-.591-1.969-.283-3.653.779-5.373 1.476-2.39 3.298-4.43 5.428-6.25 1.514-1.293 2.937-2.7 4.321-4.134 2.551-2.643 3.593-5.756 2.96-9.452-.239-1.398-.43-2.974-.022-4.273.701-2.23.112-3.886-1.347-5.462-.927-1-1.473-2.199-1.79-3.519-.361-1.508-.905-2.989-1.096-4.517-.336-2.682-.244-5.468 1.585-7.588 1.608-1.864 2.905-3.906 4.335-5.875a277.377 277.377 0 0 1 6.196-8.243c1.237-1.577 2.717-2.852 4.636-3.678 2.327-1 4.137-2.84 4.886-5.207 1.06-3.347 2.869-6.244 4.705-9.133 2.325-3.658 3.1-7.788 4.034-11.888.049-.212.034-.44.033-.662-.005-1.037-.68-1.744-1.68-1.57-1.195.206-2.408.458-3.532.9-2.268.888-4.493 1.891-6.712 2.897-1.834.831-3.672 1.59-5.747 1.384-1.495-.147-2.14-.825-2.242-2.365-.072-1.099.15-2.306-.232-3.279-.975-2.48-2.249-4.865-4.325-6.62a14.317 14.317 0 0 1-4.065-5.59c-.699-1.703-1.803-3.036-3.221-4.156-.958-.756-1.902-1.529-2.853-2.293-1.29-1.036-1.976-2.355-1.96-4.033.017-1.664-.011-3.329-.003-4.992.008-1.794-.252-3.527-.957-5.196-1.64-3.88-3.25-7.773-4.853-11.669-.156-.38-.173-.82-.289-1.405 1.06-.302 1.99-.62 2.944-.824.355-.076.67-.033.953.074-.813-2.628-2.705-7.62-3.662-9.814-.312.442-.637.89-.988 1.35z"})]}),(0,P.jsx)("path",{id:D.Continents.MiddleEast,stroke:"#FFF",d:"M67.436 16.764c-1.916.675-3.855.96-5.842.234-1.557-.57-3.116-1.142-4.702-1.623-1.591-.482-2.288-1.575-2.55-3.132-.187-1.112-.371-2.187.361-3.424 1.857-.278 3.539-1.213 4.754-2.906-1.336-1.235-3.848-3.233-5.738-2.904-2.699.47-1.112 3.133-2.594 3.205-1.483.072-3.706-3.036-5.93-4.301C43.603 1.008 39.827.32 37.802 0c1.079 2.044.411 3.548-1.924 3.881-2.078.297-4.196.333-6.298.422-1.512.064-2.777-.681-4.015-1.431-2.057-1.244-4.281-1.789-6.674-1.654-1.462.083-2.881.301-3.936 1.476-.791.882-1.807 1.27-2.959 1.294-1.329.028-2.686-.167-3.981.043-1.091.178-2.125.754-3.463 1.286C3.011 6.797 1.303 8.146 0 9.112c.043.887.063 1.775.046 2.662-.023 1.246.529 2.078 1.564 2.718 1.503.93 2.979 1.908 4.436 2.909 1.162.799 2.481 1.166 3.786.849 1.587-.386 3.059-.328 4.563.216 1.193.432 2.412.339 3.608.026 1.071-.281 2.112-.68 3.186-.949.611-.153 1.261-.151 1.885-.218.904 5.293-.116 9.311-3.774 14.494.957 2.193 2.849 7.186 3.662 9.814.404.154.733.46.931.935.979 2.351 1.957 4.703 2.852 7.087.35.934.463 2.007 1.372 2.578 1.371.861 1.674 2.168 1.993 3.634.829 3.817 2.018 7.462 5.149 10.191 2.699 2.353 3.947 5.573 4.661 9.004.316 1.519.498 3.066.81 4.586.312 1.518.609 3.051 1.096 4.517.706 2.123 1.57 2.583 3.793 2.156 2.408-.462 4.699-1.237 6.821-2.532 2.842-1.734 5.786-3.265 8.975-4.312 3.462-1.136 6.556-3.097 9.844-4.629.391-.182.71-.528 1.048-.814 2.729-2.317 5.082-4.937 6.786-8.122 1.044-1.951 2.227-3.828 3.343-5.741.79-1.354.775-2.151-.191-3.351-1.345-1.671-3.024-3.048-4.987-3.79-1.834-.693-2.907-1.854-3.637-3.539-.062-.142-.379-.174-.425-.194-2.025 1.638-3.97 3.246-5.96 4.794-.512.399-1.147.677-1.768.885-.585.197-1.281-.092-1.316-.655-.129-2.119-1.59-3.314-2.894-4.673-.596-.621-1.242-1.377-1.423-2.172-.393-1.729-1.432-2.968-2.548-4.21-.593-.66-1.196-1.321-1.701-2.046-1.449-2.078-1.21-3.895.677-5.595 1.166-1.051 2.144-.84 2.88.633.148.296.264.611.374.924.995 2.826 2.631 5.092 5.393 6.466.783.389 1.435 1.037 2.161 1.548.988.695 1.989 1.371 2.821 1.943 2.18-.192 3.392-2.151 5.617-2.124.763 1.016 1.613 2.031 2.331 3.132 1.176 1.804 2.798 2.847 4.929 2.96 3.21.17 6.424.271 9.638.341 1.492.032 2.717-.474 3.799-1.668 1.231-1.36 2.14-1.181 3.285.241.347.431.666.889.956 1.361.906 1.476-31.657-35.095-33.011-34.618z",transform:"translate(494.515 137.148)",className:(0,M.cn)(N),onMouseEnter:()=>document.getElementById(D.Continents.MiddleEastInfo)?.classList.add("info-hover"),onMouseLeave:()=>document.getElementById(D.Continents.MiddleEastInfo)?.classList.remove("info-hover")}),(0,P.jsxs)("g",{id:D.Continents.Europe,stroke:"#FFF",transform:"translate(369.325 35.967)",className:(0,M.cn)(N),onMouseEnter:()=>document.getElementById(D.Continents.EuropeInfo)?.classList.add("info-hover"),onMouseLeave:()=>document.getElementById(D.Continents.EuropeInfo)?.classList.remove("info-hover"),children:[(0,P.jsx)("path",{id:"Fill-30",d:"M187.38 16.433c.163-1.807 1.01-2.999 2.482-3.788 2.15-1.15 4.28-2.34 6.45-3.452 1.693-.868 3.281-1.852 4.515-3.33.96-1.15 2.113-1.777 3.68-1.966 2.745-.332 5.462-.926 8.178-1.469 1.87-.374 3.726-.518 5.615-.188.653.115 1.323.212 1.983.2 2.001-.039 3.931-.153 5.581-1.65 1.327-1.205 2.83-.975 4.19.304.042 1.405-.975 2.183-1.787 3.043-1.837 1.948-3.889 2.921-6.794 2.598-3.389-.376-6.858-.09-10.29-.003-1.802.046-3.483.692-5.032 1.583-1.632.94-3.219 1.96-4.789 3.001-.544.36-1.035.838-1.449 1.345-.636.78-.59 1.652.068 2.412.287.33.727.535.981.882 1.296 1.766.573 3.898-1.549 4.428-.726.182-1.546.16-2.293.037a6.583 6.583 0 0 1-2.185-.762 22.687 22.687 0 0 0-6.16
13217-2.417c-.493-.116-.918-.525-1.388-.808"}),(0,P.jsx)("path",{id:"Fill-28",d:"M23.255 34.427c-2.327-1.778-4.487-2.859-7.429-1.964-2.19.666-4.54.847-6.835 1.096-.695.075-1.552-.177-2.147-.567-1.253-.82-2.628-1.156-4.049-1.32C.72 31.433-.549 33.115.233 35.09c.522 1.317 1.105 2.645 2.277 3.484.426.053.753.14 1.076.127 2.045-.082 3.957-.036 5.095 2.182.407.794 1.457.963 2.381.721 1.811-.475 3.694-.855 5.181-2.065.897-.729 1.858-1.29 2.953-1.349 2.248-.12 3.3-1.437 4.06-3.763"}),(0,P.jsx)("path",{id:"Fill-31",d:"M129.605 106.555c.085-1.066.188-1.812.191-2.559.003-.656.107-1.447-.207-1.943-1.063-1.684-.38-3.063.74-4.19 1.986-2.003 3.418-4.344 4.726-6.797.258-.484.586-.952.966-1.345 1.452-1.498 2.981-1.442 4.177.23.771 1.077 1.363 2.281 2.05 3.42.387.644.803 1.272 1.242 1.963 2.373-.713 4.127-1.949 5.033-4.14.951-2.305 2.756-2.57 5.195-2.374-.29.666-.385 1.204-.699 1.526-.517.53-1.178.921-1.695 1.308.113.988.743 1.288 1.341 1.53 3.58 1.45 6.098 4.392 9.197 6.515.437.3.763.811 1.035 1.285.04.068.06.13.095.197 2.025.32 5.801 1.008 7.393 1.913 2.224 1.265 4.447 4.373 5.93 4.301 1.482-.072-.105-2.735 2.594-3.205 1.89-.329 4.402 1.67 5.741 2.898.716-1.002.57-1.857-.572-2.428-.786-.392-1.62-.732-2.47-.939-1.5-.366-2.57-1.246-3.362-2.51-1.113-1.782-2.287-3.533-3.274-5.383-1.179-2.212-.047-5.443 2.186-6.54.38-.186.847-.248 1.277-.26.274-.009.553.025.83.074-2.249-1.893-5.979-5.479-5.493-8.09.69-3.707 3.654-1.546 4.766-2.627 1.112-1.08 10.748-6.576 11.118-8.832.371-2.255 2.965-8.184 2.965-10.408s-.37-10.377-3.706-10.377c-3.335 0-.136-4.41 9.636-2.965 3.28.485 5.626-1.948 6.738-2.689 1.111-.742.666-6.708 2.148-6.106 1.37.556 2.75-10.167 6.971-15.043a26.565 26.565 0 0 0-1.938-.036c-1.4.025-2.576.437-3.486 1.595-.819 1.042-1.708 2.061-3.377 2.296-1.617-1.239-3.535-1.837-5.697-.936-.286.12-.672.097-.989.03-1.884-.396-3.494.074-4.782 1.586-1.03-.365-1.976-.673-2.9-1.034-1.55-.605-2.97-.604-4.375.482-1.559 1.207-3.429 1.473-5.36 1.43-1.315-.028-2.63-.005-3.86-.005-.739.97-1.329 1.771-1.95 2.546-.35.436-.86.943-1.357.484-.308-.284-.379-1.017-.287-1.496.144-.75.573-1.443.774-2.188.163-.602.168-1.246.257-1.995-.8-.229-1.412-.543-2.032-.56-4.102-.116-4.96.976-3.97 4.63.315 1.165.485 2.377.618 3.58.032.291-.346.628-.678 1.181l-2.062-2.96c-.882.29-1.618.487-2.32.77-.82.33-1.58.935-2.42 1.066-2.166.337-3.087 1.5-2.925 3.642.024.311-.143.636-.222.954-1.259 1.154-2.56 1.166-3.955.306-.74-.458-1.515-.863-2.294-1.302-.47.287-.842.515-1.215.741-.473.287-.928.61-1.423.852-1.364.666-2.322.255-2.278-1.209.054-1.815-.705-3.17-1.732-4.496-.042-.054.007-.18.041-.65 2.966 1.056 5.942 2.005 9.062 1.398 3.031-.59 5.957-1.49 8.715-3.464-1.418-1.37-2.662-2.593-3.926-3.793-1.463-1.389-3.199-1.914-5.2-1.628-1.099.157-2.206.245-3.309.364-2.708.293-5.247-.157-7.764-1.288-4.346-1.952-8.779-3.714-13.19-5.516-1.436-.586-2.929-1.028-4.383-1.569-3.948-1.469-7.814-1.388-11.6.548-4.539 2.323-9.077 4.65-13.627 6.951-1.632.826-2.87 2.001-3.812 3.585-1.863 3.138-4.544 5.458-7.78 7.07a53.03 53.03 0 0 1-6.439 2.668c-1.51.518-2.904 1.183-3.984 2.31-1.453 1.515-2.777 3.157-4.123 4.771-1.006 1.207-1.154 2.544-.688 4.061.385 1.254.592 2.574.758 3.88.482 3.784 3.04 5.883 6.893 5.598 1.294-.096 2.307-.5 2.901-1.82.543-1.207 1.32-2.316 2.977-2.565.86 2.986 2.521 5.68 2.278 8.933-.08 1.073.69 1.668 1.748 1.434 2.814-.62 5.624-1.272 8.398-2.048 1.49-.416 2.503-1.433 2.477-3.139-.02-1.439.721-2.532 1.582-3.565.64-.766 1.38-1.453 1.971-2.252a7.851 7.851 0 0 0 1.082-2.03c.335-.954-.043-1.765-.943-2.21-.693-.345-1.446-.566-2.142-.906-1.126-.55-1.357-1.45-.662-2.433 1.16-1.639 2.754-2.38 4.74-2.725 3.741-.649 5.908-3.284 6.204-7.11.031-.41.183-.81.311-1.353 2.516-.262 4.93-.496 7.362-.17.377.05.721.35 1.122.555-.194.461-.249.823-.455 1.037-.616.634-1.232 1.295-1.954 1.792-1.916 1.322-3.9 2.545-5.832 3.843-1.863 1.25-2.4 2.84-1.579 4.868a33.607 33.607 0 0 0 1.888 3.884c.3.528.886.894 1.306 1.3 2.063-.693 3.901-1.552 5.83-1.889 1.945-.34 3.981-.137 5.976-.214 2.66-.103 3.188.31 4.015 3.31-.919 1.012-2.186.835-3.376.904-3.32.193-6.643.361-9.963.571-.499.031-1.15-.013-1.23.867.8.675 1.654 1.358 2.46 2.094.4.366.203 1.212-.323 1.385-.51.167-1.069.33-1.588.283-.65-.058-1.278-.35-1.923-.506-2.35-.566-3.174-.208-4.296 1.934-.834 1.592-1.367 3.268-1.26 5.104.046.787-.004 1.57-.904 2.12-.328-.064-.79-.068-1.176-.242-3.324-1.493-6.822-1.007-10.11-.333-2.882.59-5.716.61-8.582.714-1.482.054-2.336-.515-2.752-1.869-.254-.826-.27-1.737-.317-2.614-.05-.964-.01-1.933-.01-2.97-2.183-.725-3.948-.26-5.318 1.188-1.397 1.476-1.42 4.441-.303 6.23.392.628 1.165 1.07.944 2.201-1.142-.09-2.314-.193-3.486-.27-1.755-.118-3.274.385-4.5 1.7-.758.812-1.62 1.53-2.328 2.378-.9 1.082-1.98 1.73-3.372 1.923-1.1.152-2.193.37-3.19 1.387-.049.353-.147.886-.19 1.424-.127 1.547-.932 2.395-2.478 2.65-1.42.236-2.828.562-4.227.905-1.18.29-2.42.5-3.49 1.031-1.507.748-2.99 1.416-4.686 1.584-.512.051-1.068.304-1.065 1.23.936.873 2.33.888 3.528 1.333 4.746 1.761 5.84 3.86 4.512 8.702-.058.214-.092.436-.16.646-.668 2.053-1.23 2.512-3.338 2.511-1.217 0-2.434-.147-3.653-.214-2.879-.159-5.758-.419-8.638-.433-2.475-.01-3.425.94-3.567 3.407-.083 1.424-.034 2.906.274 4.292.41 1.844.425 3.455-.882 4.99-1.078 1.266-.926 2.647.072 3.958.8 1.05 1.567 2.124 2.381 3.231.964 0 1.842.028 2.718-.006 1.245-.049 2.067.528 2.735 1.544.518.788.73 1.855 1.866 2.316l2.133-3.057c1.944.596 3.77.012 5.582-.43a5.54 5.54 0 0 0 2.3-1.22c1.305-1.176 2.473-2.504 3.69-3.762-.84-2.807-.795-2.887 1.118-4.983 1.3-1.423 2.67-2.645 4.728-2.778.418-.026.82-.292 1.297-.473.193-.517.411-1.019.57-1.539.291-.954.49-1.94.835-2.873.418-1.126 1.182-1.473 2.39-1.16.75.194 1.505.411 2.213.72 1.824.795 3.45.465 4.991-.703a43.426 43.426 0 0 1 2.46-1.706c.917-.599 1.89-.544 2.865-.146.864.353 1.437.963 1.796 1.845 1.296 3.184 3.777 5.113 6.874 6.368.924.375 1.824.823 2.77 1.134 2.194.724 3.447 2.306 4.22 4.388.421 1.138.817 2.298 1.38 3.367.333.632.826 1.352 1.96 1.054.757-2.329-1.417-4.579-.528-6.858.886-.453 1.888-.123 2.695-.896-.388-.443-.614-.828-.947-1.06-1.543-1.079-3.089-2.156-4.684-3.154-1.515-.948-3.049-1.883-4.02-3.419-.903-1.43-2.014-2.62-3.3-3.702-.567-.475-1.036-1.173-1.293-1.866-.
1321156-.417.067-1.084.325-1.517.315-.528.94-.556 1.483-.297.597.283 1.233.553 1.724.977 2.687 2.316 5.292 4.727 8.007 7.007 2.66 2.232 5.097 4.592 6.16 8.03 1.887 2.227 2.431 4.914 2.658 7.716.09 1.105.183 2.215.374 3.306.11.624.42 1.214.618 1.76 1.304.15 1.982-.673 2.737-1.289 1.373-1.119 2.701-2.295 4.051-3.442 1.893-1.607 1.955-2.958.278-4.78-.634-.69-1.757-.993-1.849-2.216 1.452-1.045 2.88-2.075 4.313-3.096.178-.128.383-.22.583-.313.8-.374 1.646-.086 1.877.737.237.846.406 1.725.478 2.6.027.331.035.665.051.997 1.303-.966 3.011-2.315 4.552-3.795l-.137.057"}),(0,P.jsx)("path",{id:"Fill-29",d:"M46.49 68.234c-.045-.23-.152-1.23-.44-2.174-.909-2.969-3.732-3.724-5.872-1.512-.8.827-1.585 1.41-2.709 1.73-1.205.342-1.518 1.032-1.16 2.333.363 1.328.392 2.437-.242 3.794-.855 1.83 1.208 3.945 3.143 3.321 2.22-.715 4.28-1.828 6.005-3.44.934-.872 1.376-1.993 1.275-4.052"}),(0,P.jsx)("path",{id:"Fill-27",d:"M46.231 75.531c1.424 1.717 3.4.4 4.79 1.33.274.536-.086 1.428 1.093 1.524 1.504-1.856 3.556-1.58 5.66-1.006.426.117.847.268 1.281.343.652.114 1.314.25 1.97.247 3.321-.01 5.357-3.529 3.606-6.32-.635-1.013-1.42-2.064-2.397-2.703-2.907-1.905-4.277-4.94-6.284-7.635.68-.81 1.243-1.476 1.8-2.147.75-.902 2.042-1.674 1.396-3.069-.517-1.117-1.809-1.218-2.896-1.263-2.009-.082-3.943-.406-5.432-1.18-2.01.047-2.57 1.693-3.955 2.495-.397-.023-.939-.069-1.482-.08-1.799-.038-2.447.668-2.166 2.373.072.433.133.903.343 1.274 1.544 2.72 3.174 5.332 6.475 6.293 1.114.324 2.347.6 3.285 1.865-2.569 2.416-5.432 4.546-7.087 7.66"}),(0,P.jsx)("path",{id:"Fill-26",d:"M80.543 108.052c-.03.964.363 1.777 1.007 2.188-.644-.41.008-.402-.429-1.48-.184-.557-.289-1.518-.25-1.734-.039.216-.307.807-.328 1.026"})]}),(0,P.jsx)("g",{id:D.Continents.SouthAmerica,stroke:"#ECECEC",transform:"translate(226.004 224.558)",className:(0,M.cn)(N),onMouseEnter:()=>document.getElementById(D.Continents.SouthAmericaInfo)?.classList.add("info-hover"),onMouseLeave:()=>document.getElementById(D.Continents.SouthAmericaInfo)?.classList.remove("info-hover"),children:(0,P.jsx)("path",{id:"Fill-25",d:"M31.709 192.434c-.612.724-1.301 1.385-1.952 2.081.01.049.012.096.025.145l-.076-.092.051-.053c-.3-1.414.445-2.631.847-3.898.074-.234.794-.498 1.042-.381.292.138.538.673.543 1.04.005.388-.218.847-.48 1.158zm82.144-142.918c-2.173-.73-3.926-1.805-5.468-3.54-1.587-1.786-3.635-2.852-6.257-2.102-1.56.446-3.043.053-4.395-.945-1.516-1.119-3.144-2.082-4.682-3.172-1.98-1.402-4.131-2.04-6.354-1.828-1.893 1.406-2.244 3.48-3.09 5.142-1.074.316-1.995.55-2.766-.508.785-.687 1.518-1.206 2.092-1.864a9.966 9.966 0 0 0 1.449-2.199c.445-.923.201-1.959-.464-2.431-.794-.563-1.689-.602-2.52-.15-.463.252-.872.682-1.185 1.119-.948 1.321-2.269 1.696-3.789 1.62-.58-.029-1.178-.216-1.178-.887 0-.365.294-.86.607-1.065.546-.358 1.229-.498 1.818-.799 1.084-.553 2.204-1.067 3.195-1.759 1.665-1.162 1.772-3.826-.022-4.711-1.612-.795-2.184-2.049-2.858-3.44-1.483-3.056-3.764-5.462-6.377-7.574-1.698-1.372-3.518-1.779-5.561-.727-.666.343-1.418.518-2.09.755-1.385-.771-1.634-2.235-2.511-3.205-.964-1.066-1.923-2.136-2.933-3.259-1.78.05-3.487-.218-5.041-1.446.55-1.604 1.146-3.248 1.664-4.915.129-.417.433-.998-.205-1.347-1.166.48-1.028 2.364-2.653 2.305-.724-.639-1.421-1.354-2.216-1.932-1.053-.765-2.261-.848-3.497-.479-1.041.309-1.68.974-1.949 2.056-.097.393-.462.719-.688 1.054-.207-.074-.334-.085-.408-.153-.239-.217-.49-.433-.68-.69-1.58-2.135-2.259-2.359-4.732-1.534-.495.165-.992.324-1.555.508l-2.389-3.64c-4.511.967-4.441 4.892-5.615 8.384-.415-.851-.761-1.287-.84-1.768-.331-1.991-.413-3.971.598-5.84.419-.776.89-1.585.004-2.55-.449.095-1.039.089-1.482.341-.959.546-1.777 1.372-2.772 1.821-2.769 1.248-4.609 3.375-6.115 5.91a8.514 8.514 0 0 1-1.692 2.028c-1.18 1.03-2.438.874-3.308-.48-.84-1.306-1.969-2.026-3.349-2.406-1.442.817-2.752 1.639-4.131 2.322-2.109 1.046-3.179.791-4.474-.966A12.163 12.163 0 0 0 0 12.222c1.021.768 2.093 1.469 3.255 2.056.092.047.143.17.229.239 1.259 1.014 2.451.855 3.289-.544.489-.818.806-1.738 1.155-2.514 1.434-.209 2.507.121 3.054 1.226 1.028 2.079 2.015 4.189 2.813 6.363.367.999.454 2.208.303 3.27-.311 2.177-.868 4.319-1.255 6.15-1.841 1.5-3.501 2.643-4.904 4.044-2.11 2.109-3.484 4.551-2.712 7.763.611 2.54.328 4.988-.697 7.469-1.177 2.852-.541 4.497 1.853 6.368.436.341.896.653 1.341.984.83.618 1.307 1.445 1.654 2.424a858.331 858.331 0 0 0 4.988 13.73c.584 1.562 1.243 3.085 1.312 4.783.069 1.703.965 2.957 2.349 3.805 1.221.747 2.558 1.306 3.835 1.962.979.503 1.988.964 2.905 1.563 1.11.726 2.134 1.583 3.202 2.375 2.458 1.824 3.853 4.264 4.071 7.309.095 1.321.039 2.665-.082 3.986-.291 3.203-.646 6.401-1.002 9.597-.297 2.665-.35 5.323.283 7.943.466 1.929.222 3.507-1.696 4.527-.371.197-.643.581-.863.787-.378 1.09.757 2.164-.182 2.976-1.374 1.187-1.062 2.53-.624 3.958.395 1.29.625 2.633.163 3.928-.818 2.294-1.674 4.58-2.656 6.807-.587 1.332-1.256 2.595-1.104 4.109.086.845-.346 1.462-.876 2.069-.837.96-.922 2.077-.105 3.03 1.114 1.299 1.01
13217 2.662.418 4.042-1.117 2.567-1.217 5.133-.33 7.776.451 1.344.202 2.653-.511 3.842-.852 1.425-1.712 2.853-2.687 4.193-1.134 1.559-1.778 3.083-.486 4.856.756 1.037.608 2.07-.066 3.092a5.75 5.75 0 0 0-.457.886c-1.027 2.379-.924 2.691 1.242 4.332.234.178.321.551.479.839l-1.374 2.561c.298.383.446.733.71.888 1.48.867 2.266 2.035 2.02 3.836-.182 1.33.487 2.342 1.504 3.149.521.413 1.164.752 1.516 1.282 1.072 1.615 2.633 2.158 4.422 2.313-.086.29-.259.713-.187.76 2.27 1.474 4.597 2.613 7.462 1.739 2.223-.679 4.514-1.134 6.763-1.733.511-.136.973-.458 1.801-.862-1.085-.292-1.809-.627-2.547-.661-3.81-.176-5.96-2.723-7.794-5.552-1.456-2.244-.818-5.035 1.224-6.857 1.573-1.403 3.148-2.805 4.685-4.246 1.356-1.27 1.954-2.86 1.97-4.553-1.056-1.117-2.28-.649-3.315-.944-.805-.229-1.217-1.05-.839-1.814.146-.296.306-.596.52-.843 2.096-2.427 4.211-4.837 6.306-7.264.785-.908 1.768-1.723 1.686-3.105-3.201-.934-3.617-1.552-2.977-4.714 1.376.38 2.731.793 4.107 1.117.591.139 1.225.092 1.931.136.386-1.971-1.078-3.994.92-5.66.472.021 1.129.115 1.775.069 2.097-.149 4.189-.351 6.284-.53.957-.081 1.674-.555 2.161-1.363a332.84 332.84 0 0 0 3.225-5.431c.505-.874.363-1.712-.374-2.414-.722-.688-1.485-1.336-2.196-2.035-2.513-2.472-2.573-2.695-1.478-6.131.147-.462.517-.853.945-1.532.341 1.669.516 2.991.888 4.255 1.006 3.421 4.962 4.973 7.641 2.692 2.993-2.548 6.204-5.106 6.778-9.502.222-1.699 1.026-3.142 2.718-3.936 1.077-.505 1.524-1.571 1.978-2.587.414-.927.872-1.771 1.917-2.167 1.627-.617 1.982-1.974 1.852-3.522-.065-.77-.148-1.567-.404-2.288-.77-2.175.109-3.591 1.886-4.771 3.987-2.648 7.933-5.326 12.957-5.6 1.569-.085 2.635-.978 3.155-2.527a27.41 27.41 0 0 1 3.235-6.54c.743-1.111 1.319-2.36 1.113-3.752-.22-1.487.135-2.878.567-4.248.716-2.268 1.032-4.492.3-6.853-.567-1.828.095-3.504 1.319-4.93a22.058 22.058 0 0 1 1.627-1.667c3.929-3.7 6.131-8.352 7.446-13.491 1.046-4.083-.896-7.943-4.874-9.278z"})}),(0,P.jsxs)("g",{id:D.Continents.NorthAmerica,stroke:"#ECECEC",className:(0,M.cn)(N),onMouseEnter:()=>document.getElementById(D.Continents.NorthAmericaInfo)?.classList.add("info-hover"),onMouseLeave:()=>document.getElementById(D.Continents.NorthAmericaInfo)?.classList.remove("info-hover"),children:[(0,P.jsx)("path",{id:"Fill-6",d:"M295.692 61.485c-.092.503-.058.783-.182.924-1.802 2.046-1.622 4.207-.434 6.452.258.49.447 1.014.676 1.52.379.834.942 1.486 1.807 1.861.59.257 1.163.558 1.759.847-.087.542-.318 1.018-.195 1.372.692 2 1.54 3.86 3.464 5.106 1.662 1.077 3.134 2.447 4.676 3.705.494.403.942.861 1.44 1.321.638-.26 1.14-.475 1.652-.673.583-.225 1.173-.435 1.846-.683.265.59.438.983.618 1.373 1.029 2.226 2.483 2.603 4.417 1.146 1.406-1.059 2.239-2.39 2.244-4.228.004-1.186-.21-2.458.647-3.429.158-.107.244-.213.342-.224.327-.038.66-.026.989-.06 1.749-.188 2.105-.579 2.04-2.28-.04-1.084-.545-2.186.155-3.25 1.384-.656 2.874-1.17 4.146-2.014 1.493-.99 3.014-1.224 4.733-1.08 1.522.126 3.079.418 4.629-.169.72-1.258 1.445-2.5 2.15-3.755.833-1.483 1.972-2.376 3.783-2.047.216.04.444.012.664.037 3.97.452 7.728-.213 11.255-2.125 1.289-.699 2.656-1.082 4.148-.996.415.024.842-.158 1.277-.248-.861-2.316-1.206-2.688-3.422-3.738-2.03-.96-2.583-2.494-1.655-4.917 2.36.78 4.634 1.558 4.832 4.62.007.107.058.213.098.315.557 1.396 1.854 1.96 3.248 1.415 1.44-.562 2.049-1.74 1.544-3.192-.436-1.255-1.012-2.46-1.47-3.708-.302-.829-.598-1.682-.733-2.55-.287-1.84.944-3.056 2.77-2.67 1.293.273 2.523.834 3.802 1.19.699.192 1.442.224 2.267.344.427-1.394.173-2.626.32-3.813.138-1.094.24-2.229.622-3.247.406-1.085 1.12-2.056 1.677-3.036-.29-.263-.435-.513-.612-.538-1.08-.153-1.887-.65-2.24-1.713-.363-1.089-.407-2.212.165-3.228.43-.764.968-1.493 1.573-2.127 3.2-3.358 6.079-7.074 10.493-9.064 1.222-.552 2.119-1.66 2.295-3.085.059-.483-.098-1.2-.433-1.492-2.146-1.858-6.537-1.872-8.7-.073-.678.564-1.248 1.258-1.89 1.87-.64.612-1.255 1.268-1.973 1.776-2.092 1.481-4.284 1.123-5.818-.956-.52-.706-.882-1.532-1.285-2.319-.455-.887-.774-1.86-1.33-2.677-1.218-1.793-1.83-3.748-2.094-5.884-.16-1.28-.16-2.676-1.241-3.803-.604 0-1.254-.01-1.904.003-.877.02-1.775.2-2.625.064-2.411-.384-4.6.112-6.741 1.221-.855.442-1.907.903-2.8.792-1.981-.249-3.706.298-5.48.99-2.83 1.104-5.736 1.041-9.314.427 1.579-.769 2.703-.639 3.742-.836 1.088-.207 2.19-.34 3.28-.54.98-.18 1.953-.404 2.927-.617 1.083-.237 2.189-.405 3.237-.748.999-.326 2.263-.036 3.089-1.258-.37-.287-.656-.682-1.012-.759-3.465-.75-6.93-1.516-10.42-2.135-1.97-.35-3.965-.183-5.953.188-1.627.304-3.29.425-4.942.571-1.876.167-3.76.258-5.637.408-1.573.125-3.057.584-4.38 1.442-1.6 1.037-3.288 1.851-5.157 2.232-1.327.27-2.113 1.084-2.654 2.266-.414.906-.863
13211.807-1.406 2.638-.334.51-.876.883-1.27 1.266-1.367-.534-1.532-1.776-2.201-2.622-.317-.4-.78-.684-1.114-.967-1.24.553-1.55 1.463-1.604 2.514-.045.885-.01 1.78-.114 2.657-.223 1.857-1.29 2.974-3.105 3.455-1.692.448-3.263.201-4.857-.459-1.11-.459-2.293-.912-3.47-.995a31.285 31.285 0 0 0-5.642.126c-2.09.232-4.154.705-6.065 1.662-1.17.586-1.942 1.282-1.685 2.84.176 1.076-.731 1.886-1.773 1.961-.431.032-.874-.059-1.307-.126-2.791-.433-4.377.712-4.817 3.48-.087.542-.144 1.101-.318 1.618-.347 1.031-1.037 1.688-2.197 1.698-.332.003-.665-.008-.998-.015-1.38-.032-2.515.6-2.85 1.861-.591 2.232-2.357 2.81-4.161 3.348-.94.28-1.968.255-2.957.366-1.062.12-2.171.104-2.95.832-.012.887.448 1.22.968 1.397a5.03 5.03 0 0 0 1.625.274c1.84-.012 3.15.866 4.183 2.306.516.72 1.04 1.444 1.65 2.08.743.775 1.879.82 2.707.085.479-.426.83-1.015 1.17-1.572.32-.527.55-1.109.872-1.772 1.854 2.516 1.879 2.527 4.737 2.256.22-.02.442-.045.66-.079 2.002-.312 3.95-.06 5.94.288 3.1.544 5.889 1.912 8.814 2.925 2.59.897 4.01 2.614 4.315 5.326.222 1.983.499 3.96.78 5.935.073.51.035 1.142.908 1.276 1.073-.529 1.607-1.663 2.318-2.624.503-.68 1.117-1.024 1.987-.924 2.18.252 3.104 1.961 4.124 3.54.93 1.44 1.636 2.934.54 4.621-.057.088-.17.141-.425.346l-1.732-.924c-.065-1.629.752-3.04-.077-4.563-1.543-.473-3.2-.852-4.542.56-1.438 1.512-1.574 3.334-.748 5.36l3.275.931"}),(0,P.jsx)("path",{id:"Fill-24",d:"M243.365 132.28c-.122.16-.368.24-.573.318-4.067 1.562-7.515 4.128-10.942 6.73a4.29 4.29 0 0 1-.271.193c-1.131.733-2.42.753-2.636.008-.314-1.087.485-1.773 1.233-2.102 2.663-1.17 4.339-3.356 6.09-5.5.415-.508.959-.91 1.587-1.496 1.656 0 3.422-.04 5.183.036.332.014.846.451.906.764.058.306-.328.724-.577 1.05zm-15.994-.394c-.071-.879.032-1.785-.133-2.642-.483-2.512-2.991-3.59-5.073-2.122-1.861 1.313-3.26 3.003-3.206 5.487.032 1.436.113 2.873.082 4.308-.037 1.7-.838 2.832-1.797 2.704-.845-.112-1.532-1.099-1.571-2.646-.07-2.757-.052-5.518 0-8.276.042-2.244 1.234-3.7 3.31-4.49 1.388-.529 2.837-.699 4.236-.302 2.057.584 4.12.63 6.229.611 3.47-.03 4.45.914 5.09 4.63-1.472 1.08-1.953-.945-3.295-1.018-.424.986-.327 2.04-.231 3.122.197 2.225-.151 2.637-2.573 3.282-.982-.629-.99-1.663-1.068-2.648zm-13.253-11.79c-1.11.417-2.331.904-3.572 1.333-.612.212-1.254.403-1.893.445-.725.05-1.343-.383-1.413-1.098-.047-.47.315-.984.513-1.47.035-.088.158-.165.256-.197 2.869-.934 5.215-2.797 7.746-4.333.265-.16.625-.164.995-.254l6.1 4.278c-.468 2.753-.905 3.12-3.267 2.795-.98-.135-1.99-.142-2.94-.388-.82-.213-1.575-.68-2.525-1.112zm-84.972.883c-.081.337-.462.677-.793.845-.147.075-.696-.224-.746-.43-.623-2.58-1.975-4.406-4.57-5.428-.996-.393-1.648-1.636-1.897-3.48 2.908 1.65 5.175 3.13 7.036 5.181.878.968 1.275 2.052.97 3.312zm170.592.595c-.763-1.6-1.577-3.177-2.418-4.738-.4-.742-1.121-1.19-1.938-1.019-2.103.443-3.537-.587-4.927-1.86.806-2.797 2.809-4.904 3.556-7.76-.575-.368-1.065-.839-1.646-1.022-1.776-.559-3.174-1.418-3.897-3.286-.302-.778-1.082-1.385-1.692-2.025-.967-1.014-2.107-1.529-3.577-1.353-1.073.128-2.173.025-3.301.025-1.258-2.65-1.554-5.526-3.518-7.644-1.853-1.997-3.036-4.592-5.503-6.352-.694.69-1.347 1.258-1.898 1.912-.57.676-1.002 1.466-1.558 2.155-1.203 1.495-2.594 2.394-4.62 1.49-.695-.31-1.535-.287-2.246-.572a4.938 4.938 0 0 1-1.623-1.089c-.508-.514-.575-1.218-.07-1.805.625-.725 1.316-1.392 2.114-2.225-1.25-1.229-2.608-1.612-4.035-1.745-1.936-.18-3.62-.862-5.2-2.005-.87-.63-1.941-1.192-2.984-1.335-2.975-.408-5.94-.06-8.907.43-.291.935-.674 1.656-.715 2.395-.097 1.755-.031 3.52-.031 5.273l-2.127 1.35c1.45 1.603 2.855 3.012 4.085 4.56 1.128 1.42 1.048 2.825-.114 4.215-.85 1.018-1.828 1.927-3.342 2.141-.503-.39-1.004-.815-1.544-1.183-.471-.322-1.06-.577-1.46-.003-.197.284-.077.797-.075 1.206 0 .097.089.204.159.288 1.643 1.988 1.7 4.513 2.298 6.851.133.52.106 1.105.033 1.644-.133.993-.913 1.543-2.236 1.494-1.17-.044-2.56.255-3.123-1.254-.14-.372-.002-.857.044-1.287.07-.649.275-1.3.228-1.938-.033-.452-.387-.88-.482-1.077-.951-.127-1.041 1.111-2.082.495-.4-1.352-.847-2.825-1.27-4.306-.748-2.615-1.953-3.306-4.627-2.952-1.632.216-3.332.345-4.951.133-2.975-.39-5.885-1.174-8.47-2.793-1.588-.995-3.217-1.42-5.07-.93-.49.128-1.042.02-1.711.02-.424-1.979-1.44-3.493-2.93-4.37-.131-1.713-.084-3.183-.396-4.57-.314-1.395.048-2.336 1.083-3.215 2.196-1.864 4.318-3.815 6.524-5.665 1.629-1.365 3.506-1.844 5.592-1.164l2.205.717c.358-1.676.395-3.212 1.309-4.945.775 1.53 2.274 1.876 2.789 3.29-.26.397-.533.74-.718 1.123-.17.352-.245.75-.372 1.166 2.337.222 2.344.236 3.688-.394.802-.377 1.557-.86 2.373-1.2 2.269-.947 2.98-.687 4.264 1.454.17.284.3.602.512.851.473.557 1.087.728 1.792.507 1.17-.368 2.035-1.185 2.008-1.978-.036-1.04-.835-1.49-1.62-1.93-.192-.108-.377-.243-.584-.313-2.338-.8-4.351-2.12-6.208-4.105-1.987 1.507-3.783.11-5.674-.288-.157-.033-.382-.35-.358-.499.046-.277.186-.656.403-.767 1.272-.65 2.62-.426 3.893-.062 2.97.85 5.392-.674 7.909-1.733.856-.36 1.139-1.455.695-2.297-.297-.564-.766-1.065-1.245-1.499-.543-.49-1.
1321182-.875-1.885-1.382 2.027-3.094 5.12-1.762 7.45-2.19.853-.49.352-1.76 1.679-1.784.375.673.788 1.413 1.18 2.12.286.034.512.114.72.08 1.415-.235 2.807-.112 3.396 1.35.56 1.391-.242 2.56-1.271 3.514-.162.15-.388.237-.528.401-.243.287-.441.61-.781 1.093 1.77.671 3.266.584 4.805.39l2.765-3.825c1.425.706 2.873.978 3.777 2.291-.325.281-.535.585-.82.69-2.061.761-3.683 1.968-4.625 4.04-.414.908-1.332 1.125-2.28.973-.982-.156-1.948-.459-2.935-.55-2.1-.192-3.116.764-3.11 2.882.003.983-.003 2.02 1.128 2.654.915-.216 1.884-.436 2.849-.673 3.008-.737 5.939.204 8.904.396 1.822 1.452 4.31 1.732 6.01 3.407.13.128.399.114.603.165l1.687-.81 3.126 2.553h3.766c1.946-1.99 2.029-2.003 4.252-.895.565.282 1.146.532 1.76.816.813-3.12-.39-5.116-2.912-6.5-.68-.375-1.391-.72-1.993-1.197a5.484 5.484 0 0 1-1.27-1.477c-.45-.759.134-1.58 1.032-1.568 1.743.026 3.218.77 4.586 1.756 3.483 2.51 3.219 1.563 6.139-.105 1.372-.784 2.313-1.943 2.805-3.636-.596-.207-.982-.395-1.39-.474-2.425-.47-4.66-1.199-6.496-3.06-1.25-1.267-2.84-2.006-4.845-1.402-1.335.402-2.07-.17-2.5-1.49-.273-.842-.417-1.724-.637-2.583-.215-.842-.453-1.677-.708-2.615-1.406-.299-2.693-.613-3.994-.84-3.397-.597-6.698-1.454-9.851-2.915-2.415-1.119-4.893-2.088-7.104-3.608-2.09-1.437-4.348-1.985-6.932-1.653-2.852.366-5.753.32-8.62.598-1.824.177-3.773-.012-5.376 1.131.44 3.535.188 3.82-3.413 3.832 0-.534-.038-1.07.01-1.599.06-.66.282-1.313.276-1.968-.016-1.975-1.353-3.03-3.314-2.665-.433.08-.868.206-1.271.382-1.523.667-3.057 1.317-4.538 2.07-.661.336-1.205.901-1.8 1.361.206.898.497 1.64.524 2.39.062 1.746 1.034 2.851 2.337 3.816 1.306.967 2.73 1.382 4.359 1.307 1.855-.085 3.743-.27 5.615.642.124 1.714-.085 3.122-2.001 3.668-1.018.291-1.694.98-2.208 1.893-.383.68-.867 1.316-2.018 1.038-.034-.91.004-1.878-.121-2.823-.245-1.856-2.043-2.799-3.691-1.979-.758.377-1.491.805-2.13 1.152-2.318-2.715-4.43-5.254-6.63-7.716a5.937 5.937 0 0 0-2.137-1.483c-1.158-.469-2.302.472-2.127 1.718.136.975.498 1.92.76 2.876.35 1.28.79 2.545 1.012 3.847.1.593-.04 1.427-.411 1.86-.852.988-1.875 1.845-2.902 2.663-.711.567-1.896.096-2.117-.839-.202-.854-.208-1.752-.333-2.626-.168-1.17-.028-2.43-.931-3.583-1.652 1.024-3.722-.815-5.407.98.763.733 1.574 1.326 2.14 2.1.97 1.324.276 3.04-1.314 3.347-.863.167-1.765.19-2.65.186a837.059 837.059 0 0 1-11.643-.113c-.645-.01-1.311-.163-1.921-.38-.773-.278-.876-1.348-.27-1.924.957-.908 2.132-1.13 3.38-1.115 1.563.02 3.102-.085 4.585-.644 1.079-.407 1.934-1.064 2.49-2.086.449-.824.139-1.868-.74-2.23-.608-.25-1.266-.4-1.914-.526-.761-.149-1.556-.148-2.3-.347-1.826-.486-3.083-1.759-3.96-3.338-.704-1.269.292-2.306.81-3.384.08-.167.012-.405.012-.76-1.81-1.253-4.162.733-6.052-.924 1.475-1.287 2.759-2.67 3.034-4.807.373-2.892-.071-3.354-2.905-2.332-1.17.422-2.158.414-2.961-.654a8.36 8.36 0 0 0-.635-.769c-.702-.732-1.577-.857-2.437-.439-.678.33-1.28.834-1.87 1.317-.51.418-.9.997-1.44 1.361-.871.588-1.88.852-2.778.094-2.055-1.734-4.483-2.295-7.074-2.433-.33-.017-.653-.139-.983-.174-1.05-.11-1.87-.534-2.467-1.463-.886-1.378-2.3-1.653-3.803-1.546-3.027.217-5.814 1.371-8.654 2.304-.262.086-.607.44-.618.68-.042.988-.595 1.295-1.468 1.425-.803.12-1.482.484-1.53 1.581.34.17.712.502 1.105.528 2.658.174 5.318.308 7.894-.643 1.25-.462 2.534-.814 3.85-.296.836 1.392.899 3.347 2.929 3.735l3.709-1.882c.565.872 1.107 1.557 1.483 2.323.56 1.143 1.467 1.67 2.664 1.622 1.096-.045 2.188-.244 3.278-.402 3.098-.448 6.156-.51 9.146.795-.771 2.48 1.174 4.632.756 7.104-1.22-.416-1.328-1.387-1.67-2.167-1.25-2.854-2.028-3.34-5.082-2.974-1.761.212-3.52.467-5.268.763-1.153.195-2.151-.016-3.175-.604-1.24-.714-2.57-1.282-3.888-1.849-1.23-.529-2.467-1.009-3.288-2.156-.578-.806-1.444-1.037-2.355-.962-.757.063-1.58.151-2.231.496-1.35.714-2.72.737-4.19.68-2.767-.108-5.54-.053-8.311-.055-1.097 0-1.951.372-2.241 1.555-.08.323-.225.63-.297.953-.405 1.815-1.32 3.24-3.04 4.081-.08.04-.01.387-.01.744.444.154.946.436 1.472.49 1.475.152 2.797.501 3.827 1.71.3.351.99.53 1.497.52a47.343 47.343 0 0 0 4.639-.32c1.608-.19 2.99-.793 3.71-2.427.158-.356.577-.597 1.062-1.076 1.34 1.547 2.215 3.22 3.394 4.646 1.17 1.415 2.492 2.707 3.685 3.986-.58 1.177-1.33 1.43-2.31 1.111-1.47-.48-2.95-.93-4.403-1.452-.723-.26-1.448-.577-2.088-.996-1.647-1.079-3.451-1.438-5.381-1.41-1.663.021-3.34.118-4.988-.05-2.107-.215-3.957.124-5.522 1.628-.125.12-.405.08-.74.135l-1.96-2.545c-.905.502-1.657.92-2.422 1.343-.897-.327-1.716-.667-2.56-.924-1.33-.403-2.704-.432-3.836.42-2.075 1.56-4.305 1.46-6.663.995-1.284-.253-2.607-.314-3.885-.458-1.428 1.587-2.535 3.354-4.66 3.473-.325-.204-.54-.292-.692-.442-1.99-1.955-4.207-3.21-7.151-2.586a3.367 3.367 0 0 1-3.32-1.172c-2.108-2.63-4.68-2.466-7.467-1.614-.211.065-.433.1-.647.154-3.415.873-6.741.984-10.025-.67-2.248-1.132-4.682-1.258-7.145-.625-1.308.337-2.626.37-3.943-.044-.525-.165-1.09-.299-1.633-.288-1.313.027-2.705.46-3.913.143-1.205-.316-2.225-1.343-3.332-2.062-.332.37-.628.58-.757.863-.768 1.694-2.22 2.405-3.91 2.771-.756.164-1.537.42-2.288.363-1.734-.13-3.276.412-4.816 1.06-1.95.821-3.92 1.535-6.088 1.506-1.162-.015-2.126.568-3.02 1.25-.813.622-1.003 1.364-.663 2.352.36 1.047 1.062 1.627 2.178 1.7
132172 1.096.142 2.218.255 3.26.591 1.355.437 2.656 1.053 3.956 1.646 1.035.472 1.837 1.222 2.319 2.281.303.666-.112 1.42-.823 1.458-1.838.1-3.507-.428-5.026-1.432-.64-.423-1.227-.922-1.905-1.437-2.674 1.457-5.87 1.305-8.52 3.066.616 1.944 1.83 3.468 3.642 4.067 3.39 1.121 6.87 1.851 10.243-.313.603-.387 1.442-.48 2.187-.55.683-.066 1.144.828.833 1.446-.667 1.33-1.73 1.977-3.227 1.863-3.51-.265-6.151 1.488-8.578 3.714-.793.727-.945 1.48-.493 2.387.246.493.546.971.893 1.398 1.182 1.45 2.396 2.873 3.53 4.227 2.363.265 3.157-1.976 4.904-2.824.303.405.709.713.766 1.075.1.641-.092 1.324-.018 1.972.123 1.067.582 1.912 1.795 1.99l2.113-1.55 2.636 2.35c.78-.287 1.479-.624 2.216-.777.367-.076.89.074 1.192.313.495.393.503 1.101.12 1.493-.76.781-1.583 1.58-2.532 2.082-4.013 2.125-8.084 4.14-12.128 6.205-.386.198-.85.386-1.073.716-.215.317-.32.873-.186 1.213.128.327.638.74.949.716.87-.069 1.756-.26 2.58-.556a77.01 77.01 0 0 0 4.942-1.973c.97-.427 1.854-.599 2.843-.045 1.55.868 3.069.487 4.355-.519 1.3-1.017 2.445-2.233 3.644-3.376.616-.587.96-1.52 2.199-1.56.54.527 1.133 1.176 1.8 1.735.866.724 1.857.794 2.755.106.962-.737 1.907-1.523 2.723-2.412.594-.647.964-1.497.389-2.467l-3.48-.703c2.23-1.192 2.55-2.826 2.922-4.45.233-1.022.816-1.826 1.81-2.24.265-.11.594-.06.842-.08.969 1.441-.9 2.8.114 4.331.604-.115 1.252-.15 1.83-.37.7-.267 1.344-.69 1.927-1 .479.19.784.315 1.09.433 2.517.962 3.59.511 4.655-1.978.174-.406.25-.857.448-1.25.28-.559.629-1.083 1.008-1.723.942.5 1.698.956 2.5 1.304.594.258 1.302.626 1.864.506 1.575-.338 2.81.36 4.11.977.7.332 1.4.712 2.144.891 3.445.828 6.893 1.652 10.362 2.365 3.37.692 5.743 2.276 6.09 6 .12 1.3.89 1.884 2.198 2.036.97.113 1.94.45 2.85.83 1.112.462 1.725 1.318 1.632 2.614-.071.994-.044 1.995-.05 2.994-.01 1.664.543 3.017 2.045 3.916.854.511 1.614 1.183 2.473 1.685.426.25.98.281 1.616.448.112-.635.295-1.07.238-1.472-.17-1.21-.547-2.316-1.31-3.352-.907-1.233-.817-1.756-.187-3.629 1.144.326 1.31 1.412 1.72 2.257.832 1.713 1.723 3.256 3.527 4.252 1.535.847 2.226 2.415 2.029 4.256-.06.55-.12 1.108-.1 1.66.082 2.078.727 2.884 2.69 3.656 1.025.403 1.999.935 2.998 1.405 1.933.911 3.198 2.278 3.404 4.532.078.863.467 1.707.778 2.536.636 1.697.815 3.435.65 5.234-.233 2.54-.36 5.092-.637 7.626-.41 3.728.649 7.078 2.748 10.046 1.524 2.156 2.5 4.427 2.744 7.024.218 2.33 1.373 3.943 3.56 4.755 1.132.42 2.293.933 3.469 1.017 1.637.116 2.708.874 3.49 2.18.627 1.043 1.249 2.101 1.746 3.21.816 1.82 1.538 3.684 2.284 5.534.71 1.763 1.464 3.453 3.293 4.425.774.411 1.362 1.146 1.286 2.134-.418 1.383-1.852 2.302-1.67 3.856.117.14.18.288.256.295.633.062 1.276.052 1.9.154.627.102 1.512.103 1.806.501 1.363 1.841 3.368 3.25 3.875 5.702.118.57.593 1.288 1.094 1.512 1.272.571 2.19 1.454 3.033 2.51.335.42.812.747 1.273 1.04.644.41 1.738-.106 1.77-.897.028-.627-.045-1.39-.386-1.873-.631-.894-1.435-1.692-2.27-2.412-1.13-.979-1.896-2.042-2.131-3.607-.175-1.158-.587-2.529-1.383-3.3-2.904-2.815-3.98-6.956-7.13-9.552-.163-.135-.26-.358-.367-.552-.658-1.196-.31-2.418.978-3.063.298-.149.992-.049 1.157.183.438.613.805 1.331.987 2.061.526 2.113 1.675 3.847 3.07 5.455.582.67 1.136 1.37 1.77 1.988 2.642 2.577 4.803 5.505 6.615 8.716.813 1.443 1.902 2.613 3.24 3.7 2.61 2.117 4.634 4.594 4.217 8.48-.283 2.643 1.749 4.74 4.4 5.494.959.273 1.934.496 2.876.818 1.803.615 3.034 1.711 3.305 3.755.129.97.515 1.932.925 2.833.858 1.888 1.575 2.291 3.663 2.09 1.419-.138 2.826-.395 4.593-.65.582.711 1.156 1.542 1.862 2.237.637.628 1.358.505 2.033-.189.23-.238.402-.532.629-.774 1.734-1.857 3.388-1.913 5.088-.113 1.14 1.21 2.143 2.554 3.333 3.708.778.756 1.71 1.631 2.699 1.833 2.026.414 3.802 1.944 6.06 1.375.364-.09.852.191 1.246.377 2.303 1.085 3.706 2.837 3.662 5.455-.035 2.045.88 3.348 2.675 4.178.7.324 1.465.633 2.014 1.148 1.397 1.313 2.803 2.608 4.324 3.752.126-1.129.419-2.39.989-3.652-.087-.117-.171-.22-.26-.352-1.155-1.7-1.87-3.57-1.752-5.619.126-2.207.21-4.474.797-6.58.643-2.312-.206-3.868-1.671-5.359-1.61-1.638-2.281-1.808-4.372-.7-1.374.727-2.656.976-4.121.38-.765-.31-1.598-.455-2.145-.604.22-1.767.563-3.287.56-4.807-.003-1.964.296-3.683 1.736-5.178 1.155-1.199 1.247-2.802.952-4.392-.278-1.503-1.035-2.109-2.548-1.985-1.654.135-3.302.347-4.951.534-1.57.18-2.4 1.006-2.494 2.575-.04.657.1 1.323.119 1.987.03 1.067-.327 1.951-1.28 2.515-2.464-.335-2.464-.335-4.58.97-.093.057-.178.13-.274.187-1.48.868-2.297.884-3.606-.305-1.556-1.414-3.068-2.899-4.425-4.5-.768-.905-1.438-2.046-1.712-3.186-.808-3.36-1.15-6.76-.157-10.19.957-3.308.88-3.592-.483-6.685.439-1.229 1.454-1.949 2.54
13216-2.469 1.748-.832 3.14-2.03 4.398-3.477.472-.543 1.224-1.125 1.885-1.17 2.64-.186 5.324-.458 7.747 1.123.605.395 1.394.506 2.179.775.594-.99 1.09-1.822 1.667-2.784 1.52-.097 3.06-.139 4.589-.308 1.52-.168 2.867-1.2 4.519-1.006l2.465 2.792 2.402-1.154c.728 1.024.679 2.17.918 3.236.41 1.84.674 3.84 2.017 5.21 1.19 1.213 2.21 2.402 2.747 4.035.25.764 1.47.838 1.945.198.26-.35.499-.737.658-1.142.67-1.714.728-3.469.145-5.21-.81-2.415-1.584-4.846-2.546-7.199-.475-1.16-.496-2.157.186-3.13.5-.718 1.029-1.523 1.746-1.963 2.14-1.315 3.71-3.166 5.142-5.144 1.53-2.115 3.252-3.888 5.846-4.693.642-.199 1.127-.9 1.735-1.415-.641-1.169-1.193-2.125-1.694-3.107-.504-.985-1.058-1.975-.82-3.15.038-.188.227-.344.424-.627l1.942.721c2.746-.919 1.155-3.33 1.878-4.963l2.359-1.085c0-.557-.033-.996.006-1.428.109-1.204.712-1.885 1.79-1.934.54-.025 1.088.146 1.635.184 1.544.107 3.089.241 4.634.254.48.004.963-.343 1.343-.49.04-.339.1-.469.059-.549-.45-.875-.903-1.748-1.375-2.61-.994-1.813-.806-3.063.69-4.446.838-.774 1.809-1.315 2.95-1.414 1.7-.147 3.25-.537 4.375-1.975.143-.184.6-.124 1.137-.215.143 1.032.243 1.993.413 2.942.387 2.151 1.363 2.597 3.259 1.517.288-.164.588-.329.83-.55 1.277-1.177 2.877-1.629 4.497-2.029 1.613-.399 3.244-.729 4.852-1.148 1.049-.273 2.222-.372 2.923-1.679-.395-1.557-.78-3.245-2.292-4.635-.597.621-1.062 1.235-1.653 1.681-.497.374-1.15.784-1.715.762-.721-.028-.968-.768-1.071-1.479-.091-.63-.282-1.245-.495-2.14-.834.527-1.44.943-2.078 1.296-.273.151-.62.17-1.05.278a7529.2 7529.2 0 0 1-1.457-1.789c.19-.473.396-.862.509-1.276.712-2.597-.983-4.429-3.608-3.898-.43.086-.886.203-1.246.435-2.182 1.41-4.713 1.911-7.103 2.776-.5.18-1.045.442-1.518-.094.898-4.337 1.448-4.86 5.675-5.7 1.07-.212 2.18-.475 3.128-.982 1.093-.585 2.165-.75 3.153-.15 1.048.636 2.118.032 3.07.16.533 1.414-.18 2.877.815 3.983 2.656-.115 2.98-.334 3.513-2.312.082-.302.143-.689.356-.863 1.37-1.122 2.713-2.303 4.718-2.034.858.115 1.744.02 2.149.02 1.055-.943 1.765-1.638 2.539-2.252.749-.593 1.979-.016 1.945.947-.021.62-.168 1.436-.58 1.805-1.557 1.392-2.493 3.105-3.018 5.07-.278 1.041-1.63 1.892-1.017 2.992.725 1.302 2.228.456 3.372.653.43.074.93.118 1.32-.03 1.752-.667 3.208.058 4.422.941.852-.315 1.454-.624 2.09-.746.528-.1 1.098.016 1.649.04.606.025 1.116.888 1.942.073-.02-.295.072-.767-.095-1.116z"}),(0,P.jsx)("path",{id:"Fill-7",d:"M191.14 32.594c-.406 1.65.177 2.364 1.137 2.903 2.608 1.467 5.155 3.067 8.14 3.7 1.44.306 2.696.902 3.757 1.985 2.616 2.674 6.012 3.361 9.5 3.004 3.462-.355 6.856-.218 10.283.137 1.762.183 3.544.267 5.314.241.97-.015 1.955-.292 2.899-.568.522-.153.935-.57.82-1.23-1.82-1.166-3.5-1.716-5.564-1.735-5.432-.05-10.864-.108-16.295-.088-1.406.005-2.617-.298-3.692-1.2-.51-.428-1.11-.749-1.597-1.196-2.516-2.312-5.466-3.708-8.797-4.413-1.923-.407-3.808-.987-5.905-1.54"}),(0,P.jsx)("path",{id:"Fill-8",d:"M184.073 43.23c2.03.294 3.482.113 4.599-1.293 1.309-1.649.787-3.249-1.29-3.659-.533-.106-1.1-.065-1.652-.067a699.64 699.64 0 0 0-6.315.001c-.997.006-2.001-.01-2.988.101-2.227.25-2.677.768-2.694 2.932-.006.775.049 1.55.027 2.324-.017.624.196 1.226.792 1.234.442.005.972-.414 1.315-.782.366-.393.496-.998.843-1.417.337-.406.778-.909 1.244-.997 2.296-.438 4.678-.993 6.119 1.622"}),(0,P.jsx)("path",{id:"Fill-9",d:"M184.602 50.381c.34.798.63 1.38.842 1.99 1.074 3.088 2.964 2.887 4.874.816.37-.403.788-.816.995-1.304.245-.576.449-1.258.383-1.862-.276-2.51-1.397-3.504-3.954-3.287-2.394.203-4.761.732-7.187.536-.207-.017-.431.081-.634.16-.708.276-.997.82-.918 1.555.11 1.018.729 1.72 1.676 1.703 1.199-.019 2.396-.18 3.923-.307"}),(0,P.jsx)("path",{id:"Fill-10",d:"M245.474 201.764c-.72-1.808-1.69-3.04-3.374-3.245-2.452-.296-4.292-1.615-6.124-3.083-.848-.679-1.786-1.342-2.793-1.705-3.255-1.175-6.311-.176-9.284 1.153-.207.093-.373.584-.327.85.045.26.354.615.603.67.639.141 1.31.185 1.967.182 1.883-.008 3.766-.037 5.647-.098 1.623-.054 2.966.41 4.238 1.512 1.497 1.298 3.202 2.366 4.862 3.466 1.33.882 2.753 1.34 4.585.298"}),(0,P.jsx)("path",{id:"Fill-11",d:"M248.775 206.406c.433.308.595.522.77.534 2.002.131 3.903.495 5.558 1.773.77.596 1.656.286 2.52-.006 1.797-.605 1.808-.573 3.792-.112.432-1.469.29-2.832-.722-4.02-1.04-1.224-2.37-1.943-3.982-2.104-3.388-.337-5.971.968-7.936 3.935"}),(0,P.jsx)("path",{id:"Fill-12",d:"M185.933 35.283c.008-2.177-.686-3.842-2.552-4.723-3.312-1.564-6.84-1.383-10.363-.994-.106.012-.206.073-.308.114-.686.28-1.18 1.083-1.134 1.842.046.745.469 1.323 1.124 1.47.943.212 1.94.285 2.91.258 1.188-.032 2.37-.228 3.474-.344 1.777 2.597 4.143 2.77 6.849 2.377"}),(0,P.jsx)("path",{id:"Fill-13",d:"M197.503 50.031c1.98-.28 3.953-.554 5.924-.844.21-.03.413-.144.606-.243.832-.427.952-1.763.152-2.218-.862-.489-1.766-.935-2.701-1.253-.485-.165-1.175-.198-1.604.028a41.028 41.028 0 0 0-4.232 2.556c-.695.48-.326 1.54.547 1.753.426.105.868.148 1.308.221"}),(0,P.jsx)("path",{id:"Fill-14",d:"M160.107 33.201c.069-2.228-.83-2.945-2.63-2.132-1.801.813
1321-3.535 1.786-5.251 2.772-.287.166-.505.774-.454 1.136.086.613.649.917 1.242.78 1.736-.405 3.424-.644 5.176.046.73.288 1.519-.37 1.704-1.179.12-.535.164-1.088.213-1.423"}),(0,P.jsx)("path",{id:"Fill-15",d:"M14.44 108.14c3.139.43 3.869.406 5.237-.163.387-.16.89-.389 1.03-.719.292-.68.447-1.444.525-2.187.085-.808.222-1.689-.66-2.539-.37.442-.764.705-.841 1.042-.418 1.814-1.587 2.738-3.33 3.186-.533.137-.968.661-1.961 1.38"}),(0,P.jsx)("path",{id:"Fill-16",d:"M7.559 109.382c-2.347-1.793-4.5-1.632-6.667-1.193-.503.102-1.02.415-.863 1.315 2.327 1.59 4.709 1.315 7.53-.122"}),(0,P.jsx)("path",{id:"Fill-17",d:"M241.435 210.501c-.064-.204-.137-.645-.337-1.017-.327-.61-.863-1.122-1.577-.845-.443.171-.848.658-1.072 1.104-.175.347-.111.861-.035 1.28.155.847.922 1.436 1.606 1.314.74-.132 1.363-.844 1.415-1.836"}),(0,P.jsx)("path",{id:"Fill-18",d:"M199.338 43.027c-.29-1.308-1.265-1.746-2.392-1.956-1.006-.186-1.992.39-2.061 1.145-.06.654.436 1.143 1.536 1.427 1.059.273 2.154.596 2.917-.616"}),(0,P.jsx)("path",{id:"Fill-19",d:"M268.872 208.273c.053-1.468-.597-2.328-1.556-2.38-.89-.05-1.542.927-1.353 2.137.063.406.263.823.503 1.161.354.5.954.64 1.414.29.467-.357.77-.926.992-1.208"}),(0,P.jsx)("path",{id:"Fill-20",d:"M18.996 86.857c.56 1.04 1.332 1.638 2.387 1.231.714-.276 1.127-.996.754-1.98-1.156-.4-2.212-.316-3.141.75"}),(0,P.jsx)("path",{id:"Fill-21",d:"M240.189 189.365c.016-.607-.565-1.169-1.303-1.26-.692-.085-1.353.421-1.406 1.075-.053.661.499 1.193 1.264 1.22.795.026 1.428-.428 1.445-1.035"}),(0,P.jsx)("path",{id:"Fill-22",d:"M233.653 80.201c-1-.002-1.702.545-1.618 1.067.1.626.578.87 1.135.925.71.072 1.495-.539 1.298-1.052-.162-.42-.62-.726-.815-.94"}),(0,P.jsx)("path",{id:"Fill-23",d:"M227.498 79.122c-.171-.797-.977-1.2-1.826-.92-.26.086-.572.384-.621.633-.043.214.204.644.414.717a3.892 3.892 0 0 0 1.534.213c.195-.015.359-.45.499-.643"})]})]})})})})]})},93022:(N,I,T)=>{let P=T(93298);N.exports=N=>{if("string"!=typeof N||!N)throw TypeError("JWT must be a string");let{0:I,1:T,2:D,length:M}=N.split(".");if(5===M)throw TypeError("encrypted JWTs cannot be decoded");if(3!==M)throw Error("JWTs must have three components");try{return{header:JSON.parse(P.decode(I)),payload:JSON.parse(P.decode(T)),signature:D}}catch(N){throw Error("JWT is malformed")}}},93174:(N,I,T)=>{"use strict";var P=T(29563);Object.defineProperty(I,"__esModule",{value:!0}),I.default=L;var D=T(63780),M=P(T(74355));function R(N,I=1){if(!N)return;3===(N=N.replace(/^#/,"")).length&&(N=N[0]+N[0]+N[1]+N[1]+N[2]+N[2]);let T=parseInt(N,16),P=T>>16&255,D=T>>8&255,M=255&T;return I=Math.min(Math.max(I,0),1),`rgba(${P}, ${D}, ${M}, ${I})`}function L(N){var I;let{csrfToken:T,providers:P,callbackUrl:L,theme:$,email:F,error:B}=N,U=P.filter(N=>"oauth"===N.type||"email"===N.type||"credentials"===N.type&&!!N.credentials);"u">typeof document&&$.buttonText&&document.documentElement.style.setProperty("--button-text-color",$.buttonText),"u">typeof document&&$.brandColor&&document.documentElement.style.setProperty("--brand-color",$.brandColor);let H={Signin:"Try signing in with a different account.",OAuthSignin:"Try signing in with a different account.",OAuthCallback:"Try signing in with a different account.",OAuthCreateAccount:"Try signing in with a different account.",EmailCreateAccount:"Try signing in with a different account.",Callback:"Try signing in with a different account.",OAuthAccountNotLinked:"To confirm your identity, sign in with the same account you used originally.",EmailSignin:"The e-mail could not be sent.",CredentialsSignin:"Sign in failed. Check the details you provided are correct.",SessionRequired:"Please sign in to access this page.",default:"Unable to sign in."},z=B&&(null!=(I=H[B])?I:H.default),W="https://authjs.dev/img/providers";return(0,D.h)("div",{className:"signin"},$.brandColor&&(0,D.h)("style",{dangerouslySetInnerHTML:{__html:` 1322 :root { 1323 --brand-color: ${$.brandColor} 1324 } 1325 `}}),$.buttonText&&(0,D.h)("style",{dangerouslySetInnerHTML:{__html:` 1326 :root { 1327 --button-text-color: ${$.buttonText} 1328 } 1329 `}}),(0,D.h)("div",{className:"card"},$.logo&&(0,D.h)("img",{src:$.logo,alt:"Logo",className:"logo"}),z&&(0,D.h)("div",{className:"error"},(0,D.h)("p",null,z)),U.map((N,I)=>{let P,$,B,H,z,q;if("oauth"===N.type){var G;({bg:P="",text:$="",logo:B="",bgDark:z=P,textDark:q=$,logoDark:H=""}=null!=(G=N.style)?G:{}),B=B.startsWith("/")?`${W}${B}`:B,(H=H.startsWith("/")?`${W}${H}`:H||B)||(H=B)}return(0,D.h)("div",{key:N.id,className:"provider"},"oauth"===N.type&&(0,D.h)("form",{action:N.signinUrl,method:"POST"},(0,D.h)("input",{type:"hidden",name:"csrfToken",value:T}),L&&(0,D.h)("input",{type:"hidden",name:"callbackUrl",value:L}),(0,D.h)("button",{type:"submit",className:"button",style:{"--provider-bg":P,"--provider-dark-bg":z,"--provider-color":$,"--provider-dark-color":q,"--provider-bg-hover":R(P,.8),"--provider-dark-bg-hover":R(z,.8)}},B&&(0,D.h)("img",{loading:"lazy",height:24,width:24,id:"provider-logo",src:`${B.startsWith("/")?W:""}${B}`}),H&&(0,D.h)("img",{loading:"lazy",height:24,width:24,id:"provider-logo-dark",src:`${B.startsWith("/")?W:""}${H}`}),(0,D.h)("span",null,"Sign in with ",N.name))),("email"===N.type||"credentials"===N.type)&&I>
13290&&"email"!==U[I-1].type&&"credentials"!==U[I-1].type&&(0,D.h)("hr",null),"email"===N.type&&(0,D.h)("form",{action:N.signinUrl,method:"POST"},(0,D.h)("input",{type:"hidden",name:"csrfToken",value:T}),(0,D.h)("label",{className:"section-header",htmlFor:`input-email-for-${N.id}-provider`},"Email"),(0,D.h)("input",{id:`input-email-for-${N.id}-provider`,autoFocus:!0,type:"email",name:"email",value:F,placeholder:"[email protected]",required:!0}),(0,D.h)("button",{id:"submitButton",type:"submit"},"Sign in with ",N.name)),"credentials"===N.type&&(0,D.h)("form",{action:N.callbackUrl,method:"POST"},(0,D.h)("input",{type:"hidden",name:"csrfToken",value:T}),Object.keys(N.credentials).map(I=>{var T,P,R;return(0,D.h)("div",{key:`input-group-${N.id}`},(0,D.h)("label",{className:"section-header",htmlFor:`input-${I}-for-${N.id}-provider`},null!=(T=N.credentials[I].label)?T:I),(0,D.h)("input",(0,M.default)({name:I,id:`input-${I}-for-${N.id}-provider`,type:null!=(P=N.credentials[I].type)?P:"text",placeholder:null!=(R=N.credentials[I].placeholder)?R:""},N.credentials[I])))}),(0,D.h)("button",{type:"submit"},"Sign in with ",N.name)),("email"===N.type||"credentials"===N.type)&&I+1<U.length&&(0,D.h)("hr",null))})))}},93298:(N,I,T)=>{let P;var D=T(82909).Buffer;if(D.isEncoding("base64url"))P=(N,I="utf8")=>D.from(N,I).toString("base64url");else{let N=N=>N.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_");P=(I,T="utf8")=>N(D.from(I,T).toString("base64"))}let M=N=>D.from(N,"base64");N.exports.decode=M,N.exports.encode=P},93440:(N,I)=>{"use strict";function T({widthInt:N,heightInt:I,blurWidth:P,blurHeight:D,blurDataURL:M,objectFit:R}){let L=20,$=P?40*P:N,F=D?40*D:I,B=$&&F?`viewBox='0 0 ${$} ${F}'`:"",U=B?"none":"contain"===R?"xMidYMid":"cover"===R?"xMidYMid slice":"none";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${B}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='${L}'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='${L}'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${U}' style='filter: url(%23b);' href='${M}'/%3E%3C/svg%3E`}Object.defineProperty(I,"__esModule",{value:!0}),Object.defineProperty(I,"getImageBlurSvg",{enumerable:!0,get:function(){return T}})},93639:(N,I,T)=>{"use strict";T.d(I,{Z:()=>W});var P=T(14953),D=T(14232),M=T(98741),R=T(63561),L=T(85609),$=T(53282),F=T(54587),B=T.n(F),U=T(73813),H=T(99742),z=function(N,I){var T={};for(var P in N)Object.prototype.hasOwnProperty.call(N,P)&&0>I.indexOf(P)&&(T[P]=N[P]);if(null!=N&&"function"==typeof Object.getOwnPropertySymbols)for(var D=0,P=Object.getOwnPropertySymbols(N);D<P.length;D++)0>I.indexOf(P[D])&&Object.prototype.propertyIsEnumerable.call(N,P[D])&&(T[P[D]]=N[P[D]]);return T};let W=(0,M.O)((0,R.N)(N=>{var{editable:I=!0,imageParams:T,field:M,mediaUrlPrefix:R,fill:$,priority:F}=N,W=z(N,["editable","imageParams","field","mediaUrlPrefix","fill","priority"]);let q=D.useContext(L.w_);if(W.src)throw Error("Detected src prop. If you wish to use src, use next/image directly.");let G=M;if((0,U.JE)(G))return null;let K=G.src?M:G.value;if(!K)return null;let V=W.unoptimized||!q.page.mode.isNormal,Y=Object.assign(Object.assign(Object.assign({},K),W),{fill:$,priority:F,src:P.k6(K.src,T,R),unoptimized:V}),J=Object.assign(Object.assign({},Y),{src:P.Eu(Y.src,R)});return(J.fill&&(delete J.width,delete J.height),Y)?D.createElement(B(),Object.assign({alt:""},J,H.env.TEST?{"data-unoptimized":V}:{})):null},{defaultEmptyFieldEditingComponent:$.n}));W.displayName="NextImage"},93738:(N,I,T)=>{"use strict";T.r(I),T.d(I,{mapGlobalContactCardFields:()=>P});let P=N=>{let I=N?.contactCardPerson?.[0];return I?.fields?I.fields:null}},93910:(N,I)=>{"use strict";function T(N){return{headers:[{key:"Content-Type",value:"application/json"}],body:N.reduce((N,{id:I,name:T,type:P,signinUrl:D,callbackUrl:M})=>(N[I]={id:I,name:T,type:P,signinUrl:D,callbackUrl:M},N),{})}}Object.defineProperty(I,"__esModule",{value:!0}),I.default=T},94012:(N,I,T)=>{"use strict";T.d(I,{B:()=>D});let P={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"eine halbe Minute",withPreposition:"einer halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}},D=(N,I,T)=>{let D,M=T?.addSuffix?P[N].withPreposition:P[N].standalone;if(D="string"==typeof M?M:1===I?M.one:M.other.replace("{{count}}",String(I)),T?.addSuffix)if(T.comparison&&T.comparison>0)return"in "+D;else return"vor "+D;return D}},94147:N=>{function I(T,P,D,M){var R=Object.defineProperty;try{R({},"",{})}catch(N){R=0}N.exports=I=function(N,T,P,D){function M(T,P){I(N,T,function(N){return this._invoke(T,P,N)})}T?R?R(N,T,{value:P,enumerable:!D,configurable:!D,writable:!D}):N[T]=P:(M("next",0),M("throw",1),M("return",2))},N.exports.__esModule=!0,N.exports.default=N.exports,I(T,P,D,M)}N.exports=I,N.exports.__esModule=!0,N.exports.default=N.exports},94274:(N,I,T)=>{"use strict";T.r(I),T.d(I,{TagButton:()=>$});var P=T(37876),D=T(48230),M=T.n(D),R=T(63366),L=T(36379);let $=({value:N,selected:I=!1,onSelect:T,onRemove:D,tabIndex:$,link:F,className:B,external:U=!1})=>{let H=!!(T||F),z=()=>(0,P.jsxs)(R.az,{className:(0,L.cn)("group/tag flex h-7.5 w-max items-center gap-1 rounded-xs border border-ui-grey px-[9.5px] py-1.5
1329select-none",{"cursor-pointer hover:border-ui-light-grey hover:bg-brunel-dark-grey":H&&!D},{"border-ui-light-grey bg-brunel-dark-grey":I},B),onClick:()=>T?T(N):void 0,tabIndex:$,children:[(0,P.jsx)(R.o5,{className:(0,L.cn)("mb-0 text-ui-grey",{"group-hover/tag:text-white":H&&!D,"text-white":I}),type:"h5",plainText:N.toTitleCase()}),D&&(0,P.jsx)(R.In,{className:"cursor-pointer",name:"cross",size:"small",onClick:D})]});return F?U?(0,P.jsx)("a",{href:F,target:"_blank",rel:"noopener noreferrer",className:"w-max",children:(0,P.jsx)(z,{})}):(0,P.jsx)(M(),{href:F,className:"w-max",children:(0,P.jsx)(z,{})}):(0,P.jsx)(z,{})}},94279:N=>{function I(N,I){var T=N.length,M=Array(T),R={},L=T,$=P(I),F=D(N);for(I.forEach(function(N){if(!F.has(N[0])||!F.has(N[1]))throw Error("Unknown node. There is an unknown node in the supplied edges.")});L--;)R[L]||B(N[L],L,new Set);return M;function B(N,I,P){if(P.has(N)){var D;try{D=", node was:"+JSON.stringify(N)}catch(N){D=""}throw Error("Cyclic dependency"+D)}if(!F.has(N))throw Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(N));if(!R[I]){R[I]=!0;var L=$.get(N)||new Set;if(L=Array.from(L),I=L.length){P.add(N);do{var U=L[--I];B(U,F.get(U),P)}while(I);P.delete(N)}M[--T]=N}}}function T(N){for(var I=new Set,T=0,P=N.length;T<P;T++){var D=N[T];I.add(D[0]),I.add(D[1])}return Array.from(I)}function P(N){for(var I=new Map,T=0,P=N.length;T<P;T++){var D=N[T];I.has(D[0])||I.set(D[0],new Set),I.has(D[1])||I.set(D[1],new Set),I.get(D[0]).add(D[1])}return I}function D(N){for(var I=new Map,T=0,P=N.length;T<P;T++)I.set(N[T],T);return I}N.exports=function(N){return I(T(N),N)},N.exports.array=I},94400:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),Object.defineProperty(I,"getDomainLocale",{enumerable:!0,get:function(){return M}});let P=T(88902),D="";function M(N,I,M,R){{let L=T(53576).normalizeLocalePath,$=T(86971).detectDomainLocale,F=I||L(N,M).detectedLocale,B=$(R,void 0,F);if(B){let I=`http${B.http?"":"s"}://`,T=F===B.defaultLocale?"":`/${F}`;return`${I}${B.domain}${(0,P.normalizePathTrailingSlash)(`${D}${T}${N}`)}`}return!1}}("function"==typeof I.default||"object"==typeof I.default&&null!==I.default)&&void 0===I.default.__esModule&&(Object.defineProperty(I.default,"__esModule",{value:!0}),Object.assign(I.default,I),N.exports=I.default)},94936:(N,I,T)=>{"use strict";T.d(I,{L_:()=>ee,Zp:()=>Q,_h:()=>Z,bp:()=>X});var P=T(37876),D=T(10409),M=T(56375),R=T(6807),L=T(85609),$=T(87273),F=T(79239),B=T(22544),U=T(36379);let H=N=>N?.replace(/<[^>]*>/g,"").trim()??"",z=` 1330 flex items-center lg:items-start lg:flex-col 1331 px-6 py-4 md:py-0 md:px-0 h-full w-full lg:max-w-84.5 1332 md:mb-4 lg:mb-0 1333 border border-accent-iron md:border 1334 bg-white md:hover:bg-accent-spring-wood 1335 text-brunel-dark-grey text-d-h4 1336 overflow-hidden rounded-sm 1337 md:shadow-md lg:shadow-default underline underline-offset-3 decoration-3 md:no-underline 1338 md:hover:underline md:hover:underline-offset-3 md:hover:decoration-3 1339 md:focus:underline md:focus:underline-offset-3 md:focus:decoration-3 md:focus:outline-dashed md:focus:outline-[1.5px]`,W=` 1340 flex items-center md:items-start lg:flex-col group 1341 px-4 md:px-4 py-4 lg:py-0 lg:px-0 h-full w-full lg:max-w-84.5 1342 md:mb-4 lg:mb-0 rounded-sm overflow-hidden 1343 border-t last:border-b border-accent-iron md:border 1344 bg-white md:hover:bg-accent-spring-wood 1345 md:shadow-md lg:shadow-default 1346`,q=` 1347 flex items-center lg:flex-col group 1348 lg:px-6 lg:px-4 py-4 lg:py-0 lg:px-0 h-full w-full lg:max-w-84.5 1349 md:mb-4 lg:mb-0 overflow-hidden lg:text-center 1350 md:hover:bg-accent-spring-wood 1351`,G=` 1352 flex items-start flex-col relative 1353 px-0 py-4 md:py-0 h-full w-full lg:max-w-84.5 1354 md:mb-4 lg:mb-0 1355 text-brunel-dark-grey text-d-h4 1356 overflow-hidden 1357 `,K="w-26 sm:w-62.5 h-20 md:h-24 lg:w-full lg:h-44 object-cover mr-4 md:mr-0",V="w-26 md:w-38.5 h-full lg:w-full lg:h-44 object-cover mr-4 lg:mr-0 rounded-sm md:rounded-none",Y=` 1358 aspect-square w-20 md:w-30 1359 object-cover mr-4 lg:mr-0 1360 rounded-3xl 1361 transform transition-all duration-300 ease-in-out 1362 group-hover:scale-95 group-hover:shadow-none 1363 relative 1364 bg-cover bg-center backdrop-blur-md 1365 border border-white/20 1366 shadow-md lg:shadow-xl group-hover:shadow-2xl 1367`,J="w-26 sm:w-62.5 lg:w-full mr-4 md:mr-0",Q=({cardImage:N,cardLink:I,cardTitle:T,className:R})=>{let{page:W}=(0,L.M5)(),q=W.mode.isEditing,G=()=>(0,P.jsxs)(P.Fragment,{children:[N&&(0,P.jsx)($._,{field:N,className:K,imageParams:{mw:336},alt:`Card ${H(T?.value)}`}),(0,P.jsxs)(D.a,{className:"flex w-full grow items-center justify-between gap-1 text-brunel-dark-grey md:my-2 md:px-4 md:py-2",children:[(0,P.jsx)(F.s,{field:T,className:"rich-text w-fit py-4 font-medium! md:py-0"}),(0,P.jsx)(M.I,{name:"arrow-right",size:"medium",color:"brunel-dark-grey"})]})]});return(0,P.jsx)(P.Fragment,{children:q?(0,P.jsxs)(D.a,{className:(0,U.cn)(z,R),children:[$._&&(0,P.jsx)($._,{field:N,className:K,imageParams:{mw:336},alt:`Card ${H(T?.value)}`}),(0,P.jsxs)(D.a,{className:"flex w-full grow items-center justify-between gap-1 text-brunel-dark-grey md:my-2 md:py-2 lg:px-4",children:[(0,P.jsx)(F.s,{field:T,className:"rich-text w-fit py-4 font-medium! md:py-0"}),(0,P.jsx)(M.I,{name:"arrow-right",size:"medium",color:"brunel-dark-grey"})]}),I&&(0,P.jsx)(B.N,{field:I})]}):I?.value?.href?(0,P.jsx)(B.N,{field:I,className:(0,U.cn)(z,R),children:(0,P.jsx)(G,{})}):(0,P.jsx)(D.a,{className:(0,U.cn)(z,R),children:(0,P.jsx)(G,{})})})},Z=({cardImage:N,cardLink:I,cardTitle:T,cardDescription:M,className:R})=>{let{page:z}=(0,L.M5)(),q=z.mode.isEditing,G=()=>(0,P.jsxs)(P.Fragment,{children:[$._&&(0,P.jsx)($._,{field:N,className:V,alt:`Card ${H(T?.value)}`}),(0,P.jsxs)(D.a,{className:"flex grow flex-col gap-1 lg:my-2 lg:px-4 lg:py-2",children:[(0,P.jsx)(F.s,{field:T,className:"rich-text w-fit py-2 font-medium! group-hover:underline group-hover:decoration-3 group-hover:underline-offset-3 md:py-0"}),M&&(0,P.jsx)(F.s,{field:M,className:"rich-text line-clamp-2 lg:line-clamp-none"})]})]});return(0,P.jsx)(P.Fragment,{children:q?(0,P.jsxs)(D.a,{className:(0,U.cn)(W,R),children:[$._&&(0,P.jsx)($._,{field:N,className:K,imageParams:{mw:336},alt:`Card ${H(T?.value)}`}),(0,P.jsxs)(D.a,{className:"flex grow flex-col gap-1 md:my-2 lg:px-4 lg:py-2",children:[(0,P.jsx)(F.s,{field:T,className:"rich-text w-fit py-2 font-medium! group-hover:underline group-hover:decoration-3 group-hover:underline-offset-3 md:py-0"}),M&&(0,P.jsx)(F.s,{field:M,className:"rich-text line-clamp-2 lg:line-clamp-none"})]}),I&&(0,P.jsx)(B.N,{field:I})]}):I?.value?.href?(0,P.jsx)(B.N,{field:I,className:(0,U.cn)(W,R),children:(0,P.jsx)(G,{})}):(0,P.jsx)(D.a,{className:(0,U.cn)(W,R),children:(0,P.jsx)(G,{})})})},X=({cardImage:N,cardLink:I,cardTitle:T,cardDescription:M,className:R})=>{let{page:z}=(0,L.M5)(),W=z.mode.isEditing,G=()=>(0,P.jsxs)(P.Fragment,{children:[$._&&(0,P.jsx)($._,{field:N,className:Y,imageParams:{mw:336},alt:`Card ${H(T?.value)}`}),(0,P.jsxs)(D.a,{className:"flex grow flex-col gap-1 lg:my-2 lg:items-center lg:px-4 lg:py-2",children:[(0,P.jsx)(F.s,{field:T,className:"rich-text w-fit py-2 font-medium! group-hover:underline group-hover:decoration-3 group-hover:underline-offset-3 md:py-0"}),M&&(0,P.jsx)(F.s,{field:M,className:"rich-text line-clamp-2 lg:line-clamp-none"})]})]});return(0,P.jsx)(P.Fragment,{children:W?(0,P.jsxs)(D.a,{className:(0,U.cn)(q,R),children:[$._&&(0,P.jsx)($._,{field:N,className:K,imageParams:{mw:336},alt:`Card ${H(T?.value)}`}),(0,P.jsxs)(D.a,{className:"flex grow flex-col gap-1 md:my-2 lg:px-4 lg:py-2",children:[(0,P.jsx)(F.s,{field:T,className:"rich-text w-fit py-2 font-medium! group-hover:underline group-hover:decoration-3 group-hover:underline-offset-3 md:py-0"}),M&&(0,P.jsx)(F.s,{field:M,className:"rich-text line-clamp-2 lg:line-clamp-none"})]}),I&&(0,P.jsx)(B.N,{field:I})]}):I?.value?.href?(0,P.jsx)(B.N,{field:I,className:(0,U.cn)(q,R),children:(0,P.jsx)(G,{})}):(0,P.jsx)(D.a,{className:(0,U.cn)(q,R),children:(0,P.jsx)(G,{})})})},ee=({cardImage:N,cardTag:I,cardTitle:T,cardDescription:M,className:B})=>{let{page:z}=(0,L.M5)(),W=z.mode.isEditing,q=()=>(0,P.jsxs)(P.Fragment,{children:[I&&(0,P.jsx)(R.o,{textField:I,className:"absolute top-0 right-2 z-10 rounded-sm bg-brunel-yellow px-2 py-1 text-xs! font-medium md:shadow-lg"}),N&&(0,P.jsx)($._,{field:N,className:J,imageParams:{mw:336},alt:`Card ${H(T?.value)}`}),(0,P.jsxs)(D.a,{className:"relative flex w-full grow flex-col gap-1 text-brunel-dark-grey md:my-2 md:py-2",children:[(0,P.jsx)(F.s,{field:T,className:"rich-text mt-2 w-fit md:py-0"}
1367),(0,P.jsx)(F.s,{field:M,className:"rich-text w-full text-justify text-left font-normal"})]})]});return(0,P.jsx)(P.Fragment,{children:W?(0,P.jsxs)(D.a,{className:(0,U.cn)(G,B),children:[(0,P.jsx)(R.o,{textField:I,className:"absolute top-2 right-2 rounded-sm bg-brunel-yellow px-2 py-1 text-xs! font-medium md:shadow-lg"}),$._&&(0,P.jsx)($._,{field:N,className:J,imageParams:{mw:336},alt:`Card ${H(T?.value)}`}),(0,P.jsxs)(D.a,{className:"flex w-full grow justify-between gap-1 text-brunel-dark-grey md:my-2 md:py-2 lg:px-4",children:[(0,P.jsx)(F.s,{field:T,className:"rich-text w-fit py-4 font-medium! md:py-0"}),(0,P.jsx)(F.s,{field:M,className:"rich-text w-full text-justify text-left font-normal"})]})]}):(0,P.jsx)(D.a,{className:(0,U.cn)(G,B),children:(0,P.jsx)(q,{})})})}},95062:(N,I,T)=>{N.exports=T(79706)()},95121:(N,I,T)=>{"use strict";T.d(I,{Fl:()=>F,Ri:()=>U,WX:()=>P,a$:()=>L,aS:()=>M,ac:()=>D,pC:()=>R,tS:()=>B,ww:()=>$});let P="https://schema.org",D="https://www.brunel.net/#organization",M="https://www.brunel.net/#organization-png",R="papua-new-guinea",L={OFFICES_PAGE:"67E66B78-4409-486C-9918-C963F498B496",OFFICE_OVERVIEW_PAGE:"381078EF-EDB8-41E2-BE7A-84B59DAB6A0B",VACANCY_PAGE:"66EBB01A-C7E8-4075-A9C3-EE9E4DFDC8E8"},$=["Organization","EmploymentAgency"],F=["LocalBusiness","EmploymentAgency"],B=["Monday","Tuesday","Wednesday","Thursday","Friday"],U={opens:"08:30",closes:"17:00"}},95154:(N,I,T)=>{"use strict";T.r(I),T.d(I,{buildInitialResultList:()=>D,mapBlogsToRelatedBlogs:()=>$,resolveCategoryIds:()=>R,resolveCurrentBlogPageId:()=>L,resolveShowDynamic:()=>M});var P=T(36379);let D=N=>N?.map(N=>{let I={id:N.id,name:N.name,url:{path:N.url},displayName:N.displayName,previewTitle:N.fields?.previewTitle,previewText:N.fields?.previewText,previewIntro:N.fields?.previewIntro,previewImage:N.fields?.previewImage,blogHeroCategory:{}};return(0,P.Vf)(I,N),I})??[],M=N=>!!(N&&N.length>0),R=N=>N?.filter(N=>!!N?.id)?.map(N=>N?.id)??[],L=N=>N.layout.sitecore.route?.templateName==="Blog Page"?N.layout.sitecore.route?.itemId?.toUpperCase()??"":"",$=N=>N?.blogs?.results?.map(N=>(N.url={path:(0,P.xd)(N.name,N?.blogHeroCategory?.data?.name)},N))},95284:N=>{var I="/";!function(){"use strict";var T={294:function(N){var I,T="object"==typeof Reflect?Reflect:null,P=T&&"function"==typeof T.apply?T.apply:function(N,I,T){return Function.prototype.apply.call(N,I,T)};function D(N){console&&console.warn&&console.warn(N)}I=T&&"function"==typeof T.ownKeys?T.ownKeys:Object.getOwnPropertySymbols?function(N){return Object.getOwnPropertyNames(N).concat(Object.getOwnPropertySymbols(N))}:function(N){return Object.getOwnPropertyNames(N)};var M=Number.isNaN||function(N){return N!=N};function R(){R.init.call(this)}N.exports=R,N.exports.once=V,R.EventEmitter=R,R.prototype._events=void 0,R.prototype._eventsCount=0,R.prototype._maxListeners=void 0;var L=10;function $(N){if("function"!=typeof N)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof N)}function F(N){return void 0===N._maxListeners?R.defaultMaxListeners:N._maxListeners}function B(N,I,T,P){if($(T),void 0===(R=N._events)?(R=N._events=Object.create(null),N._eventsCount=0):(void 0!==R.newListener&&(N.emit("newListener",I,T.listener?T.listener:T),R=N._events),L=R[I]),void 0===L)L=R[I]=T,++N._eventsCount;else if("function"==typeof L?L=R[I]=P?[T,L]:[L,T]:P?L.unshift(T):L.push(T),(M=F(N))>0&&L.length>M&&!L.warned){L.warned=!0;var M,R,L,B=Error("Possible EventEmitter memory leak detected. "+L.length+" "+String(I)+" listeners added. Use emitter.setMaxListeners() to increase limit");B.name="MaxListenersExceededWarning",B.emitter=N,B.type=I,B.count=L.length,D(B)}return N}function U(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function H(N,I,T){var P={fired:!1,wrapFn:void 0,target:N,type:I,listener:T},D=U.bind(P);return D.listener=T,P.wrapFn=D,D}function z(N,I,T){var P=N._events;if(void 0===P)return[];var D=P[I];return void 0===D?[]:"function"==typeof D?T?[D.listener||D]:[D]:T?K(D):q(D,D.length)}function W(N){var I=this._events;if(void 0!==I){var T=I[N];if("function"==typeof T)return 1;if(void 0!==T)return T.length}return 0}function q(N,I){for(var T=Array(I),P=0;P<I;++P)T[P]=N[P];return T}function G(N,I){for(;I+1<N.length;I++)N[I]=N[I+1];N.pop()}function K(N){for(var I=Array(N.length),T=0;T<I.length;++T)I[T]=N[T].listener||N[T];return I}function V(N,I){return new Promise(function(T,P){function D(T){N.removeListener(I,M),P(T)}function M(){"function"==typeof N.removeListener&&N.removeListener("error",D),T([].slice.call(arguments))}J(N,I,M,{once:!0}),"error"!==I&&Y(N,D,{once:!0})})}function Y(N,I,T){"function"==typeof N.on&&J(N,"error",I,T)}function J(N,I,T,P){if("function"==typeof N.on)P.once?N.once(I,T):N.on(I,T);else if("function"==typeof N.addEventListener)N.addEventListener(I,function D(M){P.once&&N.removeEventListener(I,D),T(M)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof N)}Object.defineProperty(R,"defaultMaxListeners",{enumerable:!0,get:function(){return L},set:function(N){if("number"!=typeof N||N<0||M(N))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+N+".");L=N}}),R.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},R.prototype.setMaxListeners=function(N){if("number"!=typeof N||N<0||M(N))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+N+".");return this._maxListeners=N,this},R.prototype.getMaxListeners=function(){return F(this)},R.prototype.emit=function(N){for(var I=[],T=1;T<arguments.length;T++)I.push(arguments[T]);var D="error"===N,M=this._events;if(void 0!==M)D=D&&void 0===M.error;else if(!D)return!1;if(D){if(I.length>0&&(R=I[0]),R instanceof Error)throw R;var R,L=Error("Unhandled error."+(R?" ("+R.message+")":""));throw L.context=R,L}var $=M[N];if(void 0===$)return!1;if("function"==typeof $)P($,this,I);else for(var F=$.length,B=q($,F),T=0;T<F;++T)P(B[T],this,I);return!0},R.prototype.addListener=function(N,I){return B(this,N,I,!1)},R.prototype.on=R.prototype.addListener,R.prototype.prependListener=function(N,I){return B(this,N,I,!0)},R.prototype.once=function(N,I){return $(I),this.on(N,H(this,N,I)),this},R.prototype.prependOnceListener=function(N,I){return $(I),this.prependListener(N,H(this,N,I)),this},R.prototype.removeListener=function(N,I){var T,P,D,M,R;if($(I),void 0===(P=this._events)||void 0===(T=P[N]))return this;if(T===I||T.listener===I)0==--this._eventsCount?this._events=Object.create(null):(delete P[N],P.removeListener&&this.emit
1367("removeListener",N,T.listener||I));else if("function"!=typeof T){for(D=-1,M=T.length-1;M>=0;M--)if(T[M]===I||T[M].listener===I){R=T[M].listener,D=M;break}if(D<0)return this;0===D?T.shift():G(T,D),1===T.length&&(P[N]=T[0]),void 0!==P.removeListener&&this.emit("removeListener",N,R||I)}return this},R.prototype.off=R.prototype.removeListener,R.prototype.removeAllListeners=function(N){var I,T,P;if(void 0===(T=this._events))return this;if(void 0===T.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==T[N]&&(0==--this._eventsCount?this._events=Object.create(null):delete T[N]),this;if(0==arguments.length){var D,M=Object.keys(T);for(P=0;P<M.length;++P)"removeListener"!==(D=M[P])&&this.removeAllListeners(D);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(I=T[N]))this.removeListener(N,I);else if(void 0!==I)for(P=I.length-1;P>=0;P--)this.removeListener(N,I[P]);return this},R.prototype.listeners=function(N){return z(this,N,!0)},R.prototype.rawListeners=function(N){return z(this,N,!1)},R.listenerCount=function(N,I){return"function"==typeof N.listenerCount?N.listenerCount(I):W.call(N,I)},R.prototype.listenerCount=W,R.prototype.eventNames=function(){return this._eventsCount>0?I(this._events):[]}}},P={};function D(N){var I=P[N];if(void 0!==I)return I.exports;var M=P[N]={exports:{}},R=!0;try{T[N](M,M.exports,D),R=!1}finally{R&&delete P[N]}return M.exports}D.ab=I+"/",N.exports=D(294)}()},95527:(N,I,T)=>{"use strict";T.d(I,{I:()=>es});var P=T(37876),D=T(68602),M=T(77470),R=T(63808),L=T(14232),$=Object.defineProperty,F=Object.defineProperties,B=Object.getOwnPropertyDescriptors,U=Object.getOwnPropertySymbols,H=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,W=(N,I,T)=>I in N?$(N,I,{enumerable:!0,configurable:!0,writable:!0,value:T}):N[I]=T,q=(N,I)=>{for(var T in I||(I={}))H.call(I,T)&&W(N,T,I[T]);if(U)for(var T of U(I))z.call(I,T)&&W(N,T,I[T]);return N},G=(N,I)=>F(N,B(I)),K=(N,I)=>{var T={};for(var P in N)H.call(N,P)&&0>I.indexOf(P)&&(T[P]=N[P]);if(null!=N&&U)for(var P of U(N))0>I.indexOf(P)&&z.call(N,P)&&(T[P]=N[P]);return T};function V(N){return[setTimeout(N,0),setTimeout(N,10),setTimeout(N,50)]}function Y(N){let I=L.useRef();return L.useEffect(()=>{I.current=N}),I.current}var J=18,Q=40,Z=`${Q}px`;function X(N){let I=N.getBoundingClientRect().right,T=N;for(;T;){if("visible"!==getComputedStyle(T).overflowX)return T.getBoundingClientRect().left+T.clientLeft+T.clientWidth-I;T=T.parentElement}return document.documentElement.clientWidth-I}var ee='[data-lastpass-icon-root],com-1password-button,[data-dashlanecreated],[style$="2147483647 !important;"]';function et({containerRef:N,inputRef:I,pushPasswordManagerStrategy:T,isFocused:P}){let[D,M]=L.useState(!1),[R,$]=L.useState(!1),[F,B]=L.useState(!1),U=L.useMemo(()=>"none"!==T&&("increase-width"===T||"experimental-no-flickering"===T)&&D&&R,[D,R,T]),H=L.useCallback(()=>{let P=N.current,D=I.current;if(!P||!D||F||"none"===T)return;let R=P,L=R.getBoundingClientRect().left+R.offsetWidth,U=R.getBoundingClientRect().top+R.offsetHeight/2,H=L-J,z=U;0===document.querySelectorAll(ee).length&&document.elementFromPoint(H,z)===P||($(X(P)>=Q),M(!0),B(!0))},[N,I,F,T]);return L.useEffect(()=>{let I=N.current;if(!I||"none"===T)return;function P(){$(X(I)>=Q)}P();let D=setInterval(P,1e3);return()=>{clearInterval(D)}},[N,T]),L.useEffect(()=>{let N=P||document.activeElement===I.current;if("none"===T||!N)return;let D=setTimeout(H,0),M=setTimeout(H,2e3),R=setTimeout(H,5e3),L=setTimeout(()=>{B(!0)},6e3);return()=>{clearTimeout(D),clearTimeout(M),clearTimeout(R),clearTimeout(L)}},[I,P,T,H]),{hasPWMBadge:D,willPushPWMBadge:U,PWM_BADGE_SPACE_WIDTH:Z}}var er=L.createContext({}),en=L.forwardRef((N,I)=>{var T,P,D,M,R,$=N,{value:F,onChange:B,maxLength:U,textAlign:H="left",pattern:z,placeholder:W,inputMode:J="numeric",onComplete:Q,pushPasswordManagerStrategy:Z="increase-width",pasteTransformer:X,containerClassName:ee,noScriptCSSFallback:en=ei,nonce:eo,render:es,children:el}=$,ec=K($,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","nonce","render","children"]);let[eu,ed]=L.useState("string"==typeof ec.defaultValue?ec.defaultValue:""),ef=null!=F?F:eu,eh=Y(ef),ep=L.useCallback(N=>
vendor: 4,242 bytes, line 1367
1367{null==B||B(N),ed(N)},[B]),em=L.useMemo(()=>z?"string"==typeof z?new RegExp(z):z:null,[z]),eg=L.useRef(null),ey=L.useRef(null),eb=L.useRef({value:ef,onChange:ep,isIOS:"u">typeof window&&(null==(P=null==(T=null==window?void 0:window.CSS)?void 0:T.supports)?void 0:P.call(T,"-webkit-touch-callout","none"))}),ev=L.useRef({prev:[null==(D=eg.current)?void 0:D.selectionStart,null==(M=eg.current)?void 0:M.selectionEnd,null==(R=eg.current)?void 0:R.selectionDirection]});L.useImperativeHandle(I,()=>eg.current,[]),L.useEffect(()=>{let N=eg.current,I=ey.current;if(!N||!I)return;function T(){if(document.activeElement!==N){e_(null),eC(null);return}let I=N.selectionStart,T=N.selectionEnd,P=N.selectionDirection,D=N.maxLength,M=N.value,R=ev.current.prev,L=-1,$=-1,F;if(0!==M.length&&null!==I&&null!==T){let P=I===T,B=I===M.length&&M.length<D;if(P&&!B){let N=I;if(0===N)L=0,$=1,F="forward";else if(N===D)L=N-1,$=N,F="backward";else if(D>1&&M.length>1){let I=0;if(null!==R[0]&&null!==R[1]){F=N<R[1]?"backward":"forward";let T=R[0]===R[1]&&R[0]<D;"backward"!==F||T||(I=-1)}L=I+N,$=I+N+1}}-1!==L&&-1!==$&&L!==$&&N.setSelectionRange(L,$,F)}let B=-1!==L?L:I,U=-1!==$?$:T,H=null!=F?F:P;e_(B),eC(U),ev.current.prev=[B,U,H]}if(eb.current.value!==N.value&&eb.current.onChange(N.value),ev.current.prev=[N.selectionStart,N.selectionEnd,N.selectionDirection],document.addEventListener("selectionchange",T,{capture:!0}),T(),document.activeElement===N&&eE(!0),!document.getElementById("input-otp-style")){let N=document.createElement("style");if(N.id="input-otp-style",eo&&N.setAttribute("nonce",eo),document.head.appendChild(N),N.sheet){let I="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";ea(N.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),ea(N.sheet,`[data-input-otp]:autofill { ${I} }`),ea(N.sheet,`[data-input-otp]:-webkit-autofill { ${I} }`),ea(N.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),ea(N.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let P=()=>{I&&I.style.setProperty("--root-height",`${N.clientHeight}px`)};P();let D="u"<typeof ResizeObserver?null:new ResizeObserver(P);return null==D||D.observe(N),()=>{document.removeEventListener("selectionchange",T,{capture:!0}),null==D||D.disconnect()}},[]);let[ew,ex]=L.useState(!1),[eA,eE]=L.useState(!1),[eS,e_]=L.useState(null),[ek,eC]=L.useState(null);L.useEffect(()=>{let N=V(()=>{var N,I,T,P;null==(N=eg.current)||N.dispatchEvent(new Event("input"));let D=null==(I=eg.current)?void 0:I.selectionStart,M=null==(T=eg.current)?void 0:T.selectionEnd,R=null==(P=eg.current)?void 0:P.selectionDirection;null!==D&&null!==M&&(e_(D),eC(M),ev.current.prev=[D,M,R])});return()=>{N.forEach(N=>clearTimeout(N))}},[ef,eA]),L.useEffect(()=>{void 0!==eh&&ef!==eh&&eh.length<U&&ef.length===U&&(null==Q||Q(ef))},[U,Q,eh,ef]);let ej=et({containerRef:ey,inputRef:eg,pushPasswordManagerStrategy:Z,isFocused:eA}),eO=L.useCallback(N=>{let I=N.currentTarget.value.slice(0,U);I.length>0&&em&&!em.test(I)?N.preventDefault():("string"==typeof eh&&I.length<eh.length&&document.dispatchEvent(new Event("selectionchange")),ep(I))},[U,ep,eh,em]),eN=L.useCallback(()=>{var N;if(eg.current){let I=Math.min(eg.current.value.length,U-1),T=eg.current.value.length;null==(N=eg.current)||N.setSelectionRange(I,T),e_(I),eC(T)}eE(!0)},[U]),eI=L.useCallback(N=>{var I,T;let P=eg.current;if(!X&&(!eb.current.isIOS||!N.clipboardData||!P))return;let D=N.clipboardData.getData("text/plain"),M=X?X(D):D;N.preventDefault();let R=null==(I=eg.current)?void 0:I.selectionStart,L=null==(T=eg.current)?void 0:T.selectionEnd,$=(R!==L?ef.slice(0,R)+M+ef.slice(L):ef.slice(0,R)+M+ef.slice(R)).slice(0,U);if($.length>0&&em&&!em.test($))return;P.value=$,ep($);let F=Math.min($.length,U-1),B=$.length;P.setSelectionRange(F,B),e_(F),eC(B)},[U,ep,X,em,ef]),eT=L.useMemo(()=>
1367({position:"relative",cursor:ec.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[ec.disabled]),eP=L.useMemo(()=>({position:"absolute",inset:0,width:ej.willPushPWMBadge?`calc(100% + ${ej.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:ej.willPushPWMBadge?`inset(0 ${ej.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:H,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height, 16px)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[ej.PWM_BADGE_SPACE_WIDTH,ej.willPushPWMBadge,H]),eD=L.useMemo(()=>{var N;return L.createElement("input",G(q({autoComplete:ec.autoComplete||"one-time-code"},ec),{"data-input-otp":!0,"data-input-otp-placeholder-shown":0===ef.length||void 0,"data-input-otp-mss":eS,"data-input-otp-mse":ek,inputMode:J,pattern:null==em?void 0:em.source,"aria-placeholder":W,style:eP,maxLength:U,value:ef,ref:eg,spellCheck:null!=(N=ec.spellCheck)&&N,onPaste:N=>{var I;eI(N),null==(I=ec.onPaste)||I.call(ec,N)},onChange:eO,onMouseOver:N=>{var I;ex(!0),null==(I=ec.onMouseOver)||I.call(ec,N)},onMouseLeave:N=>{var I;ex(!1),null==(I=ec.onMouseLeave)||I.call(ec,N)},onFocus:N=>{var I;eN(),null==(I=ec.onFocus)||I.call(ec,N)},onBlur:N=>{var I;eE(!1),null==(I=ec.onBlur)||I.call(ec,N)}}))},[eO,eN,eI,J,eP,U,ek,eS,W,ec,null==em?void 0:em.source,ef]),eM=L.useMemo(()=>({slots:Array.from({length:U}).map((N,I)=>{var T;let P=eA&&null!==eS&&null!==ek&&(eS===ek&&I===eS||I>=eS&&I<ek),D=void 0!==ef[I]?ef[I]:null;return{char:D,placeholderChar:void 0!==ef[0]?null:null!=(T=null==W?void 0:W[I])?T:null,isActive:P,hasFakeCaret:P&&null===D}}),isFocused:eA,isHovering:!ec.disabled&&ew}),[eA,ew,U,ek,eS,W,ec.disabled,ef]),eR=L.useMemo(()=>es?es(eM):L.createElement(er.Provider,{value:eM},el),[el,eM,es]);return L.createElement(L.Fragment,null,null!==en&&L.createElement("noscript",null,L.createElement("style",null,en)),L.createElement("div",{ref:ey,"data-input-otp-container":!0,translate:"no",style:eT,className:ee},eR,L.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},eD)))});function ea(N,I){try{N.insertRule(I)}catch(N){console.warn("input-otp could not insert CSS rule:",I)}}en.displayName="Input";var ei=` 1368[data-input-otp] { 1369 --nojs-bg: white !important; 1370 --nojs-fg: black !important; 1371 1372 background-color: var(--nojs-bg) !important; 1373 color: var(--nojs-fg) !important; 1374 caret-color: var(--nojs-fg) !important; 1375 letter-spacing: .25em !important; 1376 text-align: center !important; 1377 border: 1px solid var(--nojs-fg) !important; 1378 border-radius: 4px !important; 1379 width: 100% !important; 1380} 1381@media (prefers-color-scheme: dark) { 1382 [data-input-otp] { 1383 --nojs-bg: black !important; 1384 --nojs-fg: white !important; 1385 } 1386}`,eo=T(36379);let es=({id:N,showHeader:I=!0,label:T,errors:L})=>{let{setFieldValue:$}=(0,R.j7)();return(0,P.jsxs)("div",{id:`FormInput-${N}`,className:(0,eo.cn)("relative flex w-full flex-col gap-2"),children:[I&&(0,P.jsxs)("div",{className:"flex flex-col",children:[(0,P.jsx)(M.l,{id:N,label:T,focusOnClick:!1}),L?.map(I=>{if(I?.touched&&I?.message)return(0,P.jsx)(D.j,{id:I?.id??N,error:I.message},`FormError-${I?.id??N}`)})]}),(0,P.jsx)(en,{id:N,maxLength:6,autoFocus:!0,containerClassName:"group flex items-center has-[:disabled]:opacity-30",onChange:I=>$(N,I),render:({slots:N})=>N.map((N,I)=>(0,P.jsxs)("div",{className:(0,eo.cn)("relative size-12 text-[24px]","flex items-center justify-center","transition-all duration-100","border-y border-r border-brunel-dark-grey first:border-l","group-focus-within:border-brunel-dark-grey group-hover:border-brunel-dark-grey first:rounded-l-xs nth-[6]:rounded-r-xs","outline-0 outline-brunel-dark-grey",{"border-l shadow-lg outline-2 outline-brunel-dark-grey":N.isActive}),children:[(0,P.jsx)("div",{className:"group-has-[input[data-input-otp-placeholder-shown]]:opacity-20",children:N.char??N.placeholderChar}),N.hasFakeCaret&&(0,P.jsx)("div",{className:"pointer-events-none absolute inset-0 flex animate-caret-blink items-center justify-center",children:(0,P.jsx)("div",{className:"h-6 w-px bg-brunel-dark-grey"})})]},`otp-slot-${I}`))})]})}},95643:(N,I,T)=>{"use strict";T.d(I,{m:()=>L});var P=T(61768),D=T(44371),M=T(12235),R=T(37051);function L(N,I,T){let[L,$]=(0,D.x)(T?.in,N,I),F=(0,R.o)(L),B=(0,R.o)($);return Math.round((F-(0,P.G)(F)-(B-(0,P.G)(B)))/M.w4)}},95750:(N,I,T)=>{"use strict";T.d(I,{Df:()=>X,ft:()=>Y,xy:()=>Z,X$:()=>Q,Cc:()=>V,wg:()=>J,zm:()=>K});var P=T(5552),D=T(84696),M=T(29454),R=T(72541),L=T(91408),$=T(78028),F=T(82752),B=T(99742);class U{#ej;constructor(N){this.#ej=$.A.create({baseURL:N?B.env.APPLICATION_FLOW_API_URL:"/api/forms",timeout:3e5,headers:N?{"Content-Type":"application/json","Ocp-Apim-Subscription-Key":B.env.APPLICATION_FLOW_API_TOKEN}:{}}),this.#ej.interceptors.response.use(N=>N,N=>(0,F.r)(N))}
1386directApplySubmission=N=>this.#ej.post("/ProcessJobApplicationForm",{...N})}let H=new U;new U(!0);var z=T(65212);let W=["pdf","rtf","doc","docx"],q=5242880,G=8e6,K=["DE","AT"],V=["DE"],Y={firstName:"",lastName:"",emailAddress:"",phonePrefix:"",phoneNumber:"",country:"",postalCode:"",availableFrom:"",noticePeriodDays:"",rolesSought:"",preferredWagePerYear:"",freelanceWagePerDay:"",freelanceWagePerHour:"",travelOption:"",travelDistancePreference:"",travelPreference:"",travelTime:"",willRelocate:!1,skillLevels:[],resumeData:{file:null,fileName:"",base64BinaryData:""}},J=(N,I)=>{switch(N){case"BU1":return`https://my.brunel.be/nl-be/track-and-trace?vacancyid=${I}`;case"BU4":return`https://my.brunel.nl/nl-nl/track-and-trace?vacancyid=${I}`;default:return"https://brunel.net/en"}},Q=N=>()=>N?L.Ik().shape({firstName:L.Yj().trim().required(N?.firstName?.errors?.required).matches(/^[\p{L}\p{M}\p{Zs}'-]+$/u,{message:N?.firstName?.errors?.invalidFormat,excludeEmptyString:!0}).min(2,N?.firstName?.errors?.minLength).max(50,N?.firstName?.errors?.maxLength),lastName:L.Yj().trim().required(N?.lastName?.errors?.required).matches(/^[\p{L}\p{M}\p{Zs}'-]+$/u,{message:N?.lastName?.errors?.invalidFormat,excludeEmptyString:!0}).min(2,N?.lastName?.errors?.minLength).max(50,N?.lastName?.errors?.maxLength),emailAddress:L.Yj().trim().matches(/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,N?.email?.errors?.invalidFormat).required(N?.email?.errors?.required),phonePrefix:L.Yj().trim().matches(/\+[0-9]{1,3}/,{message:N?.phonePrefix?.errors?.invalidFormat,excludeEmptyString:!0}),phoneNumber:L.Yj().trim().test("is-phone-number-valid",N?.phoneNumber?.errors?.invalidFormat??"phoneNumberErrorsInvalidFormat",(N,I)=>{let{phonePrefix:T,required:P}=I.parent;return!(N||P?.phoneNumber)||(0,R.l)(T+N)?.isValid()}).when("required.phoneNumber",{is:!0,then:I=>I.required(N?.phoneNumber?.errors?.required)}),country:L.Yj().trim().when("hidden.country",{is:!1,then:I=>I.required(N?.country?.errors?.required)}),postalCode:L.Yj().trim().matches(/^\d{4,5}$/i,{message:N?.postalCode?.errors?.invalidFormat,excludeEmptyString:!0}).when(["country","hidden.postalCode"],{is:(N,I)=>K.includes(N)&&!I,then:I=>I.required(N?.postalCode?.errors?.required)}),availableFrom:L.Yj().test("is-valid-date",N?.availableFrom?.errors?.invalidFormat??"availableFromInvalidDate",N=>!N||!!(0,P.f)(new Date(N))&&(0,D.d)(new Date(N),new Date)).test("availability-required",N?.availableFrom?.errors?.required??"",function(N){let{required:I,noticePeriodDays:T}=this.parent;return!(I?.availableFrom&&!T)||!!N}),noticePeriodDays:L.Yj().trim().test("is-number",N?.noticePeriodDays?.errors?.invalidFormat??"noticePeriodDaysInvalidNumber",N=>!N||Number(N)>=0).test("availability-required",N?.noticePeriodDays?.errors?.required??"",function(N){let{required:I,availableFrom:T}=this.parent;return!(I?.noticePeriodDays&&!T)||!!N}),rolesSought:L.Yj().trim().test("is-min-length",N?.rolesSought?.errors?.minLength??"",N=>!N||N.length>=2).when("required.rolesSought",{is:!0,then:I=>I.required(N?.rolesSought?.errors?.required)}),preferredWagePerYear:L.Yj().trim().test("is-number",N?.preferredWagePerYear?.errors?.invalidFormat??"preferredWagePerYearInvalidNumber",N=>!N||Number(N)>=0).test("wage-required",N?.preferredWagePerYear?.errors?.required??"",function(N){let{required:I,freelanceWagePerDay:T,freelanceWagePerHour:P}=this.parent;return!(I?.preferredWagePerYear&&!T&&!P)||!!N}),freelanceWagePerDay:L.Yj().trim().test("is-number",N?.freelanceWagePerDay?.errors?.invalidFormat??"freelanceWagePerDayInvalidNumber",N=>!N||Number(N)>0).test("wage-required",N?.freelanceWagePerDay?.errors?.required??"",function(N){let{required:I,preferredWagePerYear:T,freelanceWagePerHour:P}=this.parent;return!(I?.freelanceWagePerDay&&!T&&!P)||!!N}),freelanceWagePerHour:L.Yj().trim().test("is-number",N?.freelanceWagePerHour?.errors?.invalidFormat??"freelanceWagePerHourInvalidNumber",N=>!N||Number(N)>0).test("wage-required",N?.freelanceWagePerHour?.errors?.required??"",function(N){let{required:I,preferredWagePerYear:T,freelanceWagePerDay:P}=this.parent;return!(I?.freelanceWagePerHour&&!T&&!P)||!!N}),travelOption:L.Yj().trim().when("required.travelOption",{is:!0,then:I=>I.required(N?.travelOption?.errors?.required)}),travelPreference:L.Yj().trim().when(["required.travelPreference","willRelocate","travelOption"],{is:(N,I,T)=>N&&!I&&""!==T,then:I=>I.required(N?.travelPreference?.errors?.required)}),travelDistancePreference:L.Yj().trim().test("is-number",N?.travelDistancePreference?.errors?.invalidFormat??"travelDistancePreferenceInvalidNumber",N=>!N||Number(N)>=0).when(["required.travelDistancePreference","willRelocate","travelOption"],{is:(N,I,T)=>N&&!I&&""!==T,then:I=>I.required(N?.travelDistancePreference?.errors?.required)}),travelTime:L.Yj().trim().when(["required.travelTime","willRelocate","travelOption"],{is:(N,I,T)=>N&&!I&&""!==T,then:I=>I.required(N?.travelTime?.errors?.required)}),skillLevels:L.YO().when("required.skillLevels",{is:!0,then:I=>I.min(1,N?.skillLevels?.errors?.required)}),resumeData:L.Ik().shape({file:L.gl().required(N?.resume?.errors?.required).test("is-file-size-valid",N?.resume?.errors?.fileWrongSize??"resumeErrorsFileWrongSize",N=>N?.size<=q),fileName:L.gl().test("is-file-length-valid",N?.resume?.errors?.fileNameLength??"",N=>N?.length<=255).test("is-file-type-valid",N?.resume?.errors?.invalidFile??"resumeErrorsInvali
1386dSize",N=>W.includes(N?.toLowerCase()?.split(".")?.pop()??"")),base64BinaryData:L.gl().test("is-base64-size-valid",N?.resume?.errors?.invalidFile??"resumeErrorsInvalidFile",N=>N?.length<=G)})}):L.Ik().shape({}),Z=(N,I,T)=>async P=>{let D=await N();await H.directApplySubmission({firstName:P.firstName,lastName:P.lastName,emailAddress:P.emailAddress,phonePrefix:""!==P.phoneNumber?P.phonePrefix:"",phoneNumber:P.phoneNumber,country:P.country,postalCode:P.postalCode,availableFrom:P.availableFrom||void 0,noticePeriodDays:Number(P?.noticePeriodDays)||void 0,rolesSought:P.rolesSought||void 0,preferredWagePerYear:Number(P.preferredWagePerYear)||void 0,freelanceWagePerDay:Number(P.freelanceWagePerDay)||void 0,freelanceWagePerHour:Number(P.freelanceWagePerHour)||void 0,travelDistancePreferencePeriod:!P.willRelocate&&P.travelOption||null,travelDistancePreference:Number(P.travelDistancePreference)||void 0,travelPreference:P.travelPreference||void 0,travelTime:P.travelTime||void 0,willRelocate:P.willRelocate,skillLevels:P.skillLevels,resumeData:{fileName:P.resumeData.fileName.split("\\").reverse()[0],base64BinaryData:P.resumeData.base64BinaryData},...D}).then(N=>{z.A.forms(N),I()}).catch(N=>{let I=new RegExp(/\[(.*?)\]/).exec(N)?.[1],P=I?Number(I):NaN;isNaN(P)?T(500):T(P)})},X=N=>{let I=new Map([]);I.set("l",N("l")),I.set("_ga",N("_ga")??M.A.get("_ga")),I.set("s",N("s"));let T=M.A.get("brutmParams");return T&&T.split("&").map(N=>{let T=N.split("="),P=T?.[0]??"",D=T?.[1]??"";I.set(P,D)}),{trackingL:I.get("l")??"",trackingGa:I.get("_ga")??"",trackingS:I.get("s")??"",trackingUtmSource:I.get("brutm_source")??"",trackingUtmMedium:I.get("brutm_medium")??"",trackingUtmTerm:I.get("brutm_term")??"",trackingUtmContent:I.get("brutm_content")??"",trackingUtmCampaign:I.get("brutm_campaign")??""}}},95852:(N,I,T)=>{var P=T(88461),D=T(56057),M=T(86701),R=T(66143);function L(I){var T="function"==typeof Map?new Map:void 0;return N.exports=L=function(N){if(null===N||!M(N))return N;if("function"!=typeof N)throw TypeError("Super expression must either be null or a function");if(void 0!==T){if(T.has(N))return T.get(N);T.set(N,I)}function I(){return R(N,arguments,P(this).constructor)}return I.prototype=Object.create(N.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),D(I,N)},N.exports.__esModule=!0,N.exports.default=N.exports,L(I)}N.exports=L,N.exports.__esModule=!0,N.exports.default=N.exports},96201:(N,I,T)=>{"use strict";T.d(I,{BV:()=>z,C0:()=>W,c0:()=>q,kL:()=>F,lJ:()=>U});var P=T(37876),D=T(22544),M=T(47137),R=T(14e3),L=T(63366),$=T(36379);let F=` 1387 lg:focus-visible:outline-dashed lg:focus-visible:outline-white lg:focus-visible:outline-2 lg:focus-visible:outline-white lg:active:outline-none 1388`,B=` 1389 flex lg:mb-3 lg:border-none 1390`,U=` 1391 block 1392 w-fit mb-6 lg:mb-4 1393 font-medium 1394 lg:border-b-3 lg:border-transparent 1395 lg:hover:border-b-3 lg:hover:border-brunel-yellow 1396 focus:border-b-3 focus:border-offset-2 lg:focus:text-brunel-yellow lg:focus-visible:border-brunel-yellow`,H=(N,I)=>I===N,z=(0,M.F)([B],{variants:{listItem:{subMenu:"mx-6 border-b border-accent-iron last:border-b-0 last:pb-0 lg:mx-0"}}}),W=(0,M.F)([F],{variants:{menuItem:{subMenu:"w-full py-4 pl-6 text-base! leading-tight! font-normal! lg:w-fit lg:p-0 lg:text-white lg:hover:font-medium hover:lg:text-white lg:hover:underline lg:hover:underline-offset-3",footer:"pb-6 text-sm font-normal hover:cursor-pointer hover:text-white lg:pb-0 lg:hover:font-medium lg:hover:underline lg:hover:underline-offset-2",taylorHopkinson:"pb-6 text-sm font-normal text-th-bold-text hover:cursor-pointer hover:text-th-bold-text lg:pb-0 lg:hover:font-medium lg:hover:underline lg:hover:underline-offset-2"}},defaultVariants:{menuItem:"subMenu"}}),q=({items:N,readMoreLink:I,tabIndex:T,menuItem:M,listItem:B,onClick:U})=>{let q,G,K=(0,R.usePathname)(),V=I?.link?.value?.anchor??I?.link?.value?.href,Y=()=>{U&&U()};return N&&!Array.isArray(N)&&({menuItemLink:q,menuItemTitle:G}=N),(0,P.jsxs)("ul",{className:"pb-0",children:[Array.isArray(N)?N?.map((N,I)=>{let{menuItemLink:R,menuItemTitle:U}=N,q=R?.link?.value?.href;return(0,P.jsx)("li",{className:(0,$.cn)(z({listItem:B}),H(U?.text?.value,K??"")&&"mobile-current lg:current mx-0"),children:q?(0,P.jsx)(D.N,{className:(0,$.cn)(W({menuItem:M}),F,"footer"===M&&"text-white","text-start"),tabIndex:T,href:q??"#",field:R.link??{href:"#"},onClick:Y,children:U?.text?.value||R?.link?.value?.text}):(0,P.jsx)(L.az,{className:(0,$.cn)(W({menuItem:M}),F,"footer"===M&&"text-white","text-start"),tabIndex:T,children:U?.text?.value||R?.link?.value?.text})},I)}):(0,P.jsx)("li",{className:(0,$.cn)(z({listItem:B}),H(q?.link?.value?.text??"",K??"")&&"mobile-current lg:current mx-0"),onClick:Y,children:q?.link?.value?.href?(0,P.jsx)(D.N,{className:(0,$.cn)(W({menuItem:M}),F,"footer"===M&&"text-white","text-start"),tabIndex:T,href:q?.link?.value?.href??"#",field:q?.link,children:q?.link?.value?.text??G?.text?.value}):(0,P.jsx)(L.az,{className:(0,$.cn)(W({menuItem:M}),F,"footer"===M&&"text-white","text-start"),tabIndex:T,children:q?.link?.value?.text??G?.text?.value})}),V&&(0,P.jsx)("li",{className:"w-fit lg:my-4",children:(0,P.jsxs)(D.N,{className:(0,$.cn)(W({menuItem:M}),F,"text-start","text-grey-400 flex text-base font-medium lg:text-ui-light-grey","footer"===M&&"text-white"),href:I?.link?.value?.href??"#",field:{value:I?.link?.value?.href??"#"},children:[(0,P.jsx)(L.az,{className:"mr-1 flex items-center self-center",children:(0,P.jsx)(L.In,{size:"small",name:"chevron-right",alt:"to overview",color:"white"})}),I?.link?.value?.text]})})]})}},96777:N=>{N.exports=function(N,I){var T=null==N?null:"u">typeof Symbol&&N[Symbol.iterator]||N["@@iterator"];if(null!=T){var P,D,M,R,L=[],$=!0,F=!1;try{if(M=(T=T.call(N)).next,0===I){if(Object(T)!==T)return;$=!1}else for(;!($=(P=M.call(T)).done)&&(L.push(P.value),L.length!==I);$=!0);}catch(N){F=!0,D=N}
1396finally{try{if(!$&&null!=T.return&&(R=T.return(),Object(R)!==R))return}finally{if(F)throw D}}return L}},N.exports.__esModule=!0,N.exports.default=N.exports},96820:(N,I,T)=>{"use strict";var P=T(99742);Object.defineProperty(I,"__esModule",{value:!0}),function(N,I){for(var T in I)Object.defineProperty(N,T,{enumerable:!0,get:I[T]})}(I,{atLeastOneTask:function(){return R},scheduleImmediate:function(){return M},scheduleOnNextTick:function(){return D},waitAtLeastOneReactRenderTask:function(){return L}});let D=N=>{Promise.resolve().then(()=>{P.nextTick(N)})},M=N=>{setImmediate(N)};function R(){return new Promise(N=>M(N))}function L(){return new Promise(N=>setImmediate(N))}},96824:(N,I,T)=>{"use strict";T.d(I,{p:()=>H});var P=T(37876),D=T(43680),M=T(68602),R=T(77470),L=T(84612),$=T(63808),F=T(72541),B=T(14232),U=T(36379);let H=({id:N,showHeader:I=!0,label:T,placeholder:H,errors:z,prefixProps:W,setDataLayer:q,setDataLayerError:G,trackingProps:K,variant:V="brunel"})=>{let Y=(0,B.useRef)(!1),{values:J}=(0,$.j7)(),[Q]=(0,$.Mt)(N),Z=(0,B.useMemo)(()=>{let N=`${J.phonePrefix||""}${J.phoneNumber}`;return(0,F.l)(N)?.isValid()??!1},[J.phonePrefix,J.phoneNumber]);return(0,P.jsxs)("div",{id:`FormPhone-${N}`,className:(0,U.cn)("flex w-full flex-col gap-2"),children:[I&&(0,P.jsxs)("div",{className:"flex flex-col",children:[(0,P.jsx)(R.l,{id:N,label:T,focusOnClick:!1,type:"taylorhopkinson"===V?"title-th":"title"}),z?.map(I=>{if(I?.touched&&I?.message)return Y.current||(G?.(),Y.current=!0),(0,P.jsx)(M.j,{id:I?.id??N,error:I.message},`FormError-${I?.id??N}`)})]}),(0,P.jsxs)("div",{className:"group/phone flex flex-1 flex-wrap gap-4 focus-within:rounded-xs focus-within:outline-0 focus-within:outline-offset-1 focus-within:outline-accent-iron lg:gap-0",children:[W&&(0,P.jsx)(D.a,{...W?.trackingProps,id:W.id,showHeader:!1,searchable:!0,searchPlaceholder:W?.searchPlaceholder,value:W?.value,placeholder:W?.placeholder,data:W.data,isPhone:!0,outline:!1,className:(0,U.cn)("peer w-full flex-initial lg:w-auto"),dropdownClassName:(0,U.cn)("lg:w-max",{"rounded-lg lg:rounded-l-lg":"taylorhopkinson"===V}),dropdownDataClassName:(0,U.cn)("lg:w-max lg:min-w-full",{"rounded-b-lg":"taylorhopkinson"===V}),setDataLayer:W?.setDataLayer,setDataLayerError:W?.setDataLayerError}),(0,P.jsxs)("div",{className:(0,U.cn)("relative flex flex-1"),children:[(0,P.jsx)($.D0,{...K,id:N,name:N,placeholder:" ",className:(0,U.cn)("input w-full",{"lg:rounded-l-none lg:border-l-0":W,"rounded-lg":"taylorhopkinson"===V}),onClick:q}),Z&&(0,P.jsx)(L.Sr,{className:"absolute right-0 mr-4 self-center"}),H&&!Q.value&&(0,P.jsx)(R.l,{id:N,type:"taylorhopkinson"===V?"subtitle-th":"subtitle",effect:"floating-peer",label:H})]})]})]})}},96847:(N,I,T)=>{"use strict";T.d(I,{cn:()=>ta});var P=T(69241);let D=(N,I)=>{let T=Array(N.length+I.length);for(let I=0;I<N.length;I++)T[I]=N[I];for(let P=0;P<I.length;P++)T[N.length+P]=I[P];return T},M=(N,I)=>({classGroupId:N,validator:I}),R=(N=new Map,I=null,T)=>({nextPart:N,validators:I,classGroupId:T}),L="-",$=[],F="arbitrary..",B=N=>{let I=z(N),{conflictingClassGroups:T,conflictingClassGroupModifiers:P}=N;return{getClassGroupId:N=>{if(N.startsWith("[")&&N.endsWith("]"))return H(N);let T=N.split(L),P=+(""===T[0]&&T.length>1);return U(T,P,I)},getConflictingClassGroupIds:(N,I)=>{if(I){let I=P[N],M=T[N];return I?M?D(M,I):I:M||$}return T[N]||$}}},U=(N,I,T)=>{if(0==N.length-I)return T.classGroupId;let P=N[I],D=T.nextPart.get(P);if(D){let T=U(N,I+1,D);if(T)return T}let M=T.validators;if(null===M)return;let R=0===I?N.join(L):N.slice(I).join(L),$=M.length;for(let N=0;N<$;N++){let I=M[N];if(I.validator(R))return I.classGroupId}},H=N=>{let I,T,P;return -1===N.slice(1,-1).indexOf(":")?void 0:(I=N.slice(1,-1),T=I.indexOf(":"),P=I.slice(0,T),P?F+P:void 0)},z=N=>{let{theme:I,classGroups:T}=N;return W(T,I)},W=(N,I)=>{let T=R();for(let P in N)q(N[P],T,P,I);return T},q=(N,I,T,P)=>{let D=N.length;for(let M=0;M<D;M++)G(N[M],I,T,P)},G=(N,I,T,P)=>{"string"==typeof N?K(N,I,T):"function"==typeof N?V(N,I,T,P):Y(N,I,T,P)},K=(N,I,T)=>{(""===N?I:J(I,N)).classGroupId=T},V=(N,I,T,P)=>{Q(N)?q(N(P),I,T,P):(null===I.validators&&(I.validators=[]),I.validators.push(M(T,N)))},Y=(N,I,T,P)=>{let D=Object.entries(N),M=D.length;for(let N=0;N<M;N++){let[M,R]=D[N];q(R,J(I,M),T,P)}},J=(N,I)=>{let T=N,P=I.split(L),D=P.length;for(let N=0;N<D;N++){let I=P[N],D=T.nextPart.get(I);D||(D=R(),T.nextPart.set(I,D)),T=D}return T},Q=N=>"isThemeGetter"in N&&!0===N.isThemeGetter,Z=N=>{if(N<1)return{get:()=>void 0,set:()=>{}};let I=0,T=Object.create(null),P=Object.create(null),D=(D,M)=>{T[D]=M,++I>N&&(I=0,P=T,T=Object.create(null))};return{get(N){let I=T[N];return void 0!==I?I:void 0!==(I=P[N])?(D(N,I),I):void 0},set(N,I){N in T?T[N]=I:D(N,I)}}},X="!",ee=":",et=[],er=(N,I,T,P,D)=>({modifiers:N,hasImportantModifier:I,baseClassName:T,maybePostfixModifierPosition:P,isExternal:D}),en=N=>{let{prefix:I,experimentalParseClassName:T}=N,P=N=>{let I,T=[],P=0,D=0,M=0,R=N.length;for(let L=0;L<R;L++){let R=N[L];
1396if(0===P&&0===D){if(R===ee){T.push(N.slice(M,L)),M=L+1;continue}if("/"===R){I=L;continue}}"["===R?P++:"]"===R?P--:"("===R?D++:")"===R&&D--}let L=0===T.length?N:N.slice(M),$=L,F=!1;return L.endsWith(X)?($=L.slice(0,-1),F=!0):L.startsWith(X)&&($=L.slice(1),F=!0),er(T,F,$,I&&I>M?I-M:void 0)};if(I){let N=I+ee,T=P;P=I=>I.startsWith(N)?T(I.slice(N.length)):er(et,!1,I,void 0,!0)}if(T){let N=P;P=I=>T({className:I,parseClassName:N})}return P},ea=N=>{let I=new Map;return N.orderSensitiveModifiers.forEach((N,T)=>{I.set(N,1e6+T)}),N=>{let T=[],P=[];for(let D=0;D<N.length;D++){let M=N[D],R="["===M[0],L=I.has(M);R||L?(P.length>0&&(P.sort(),T.push(...P),P=[]),T.push(M)):P.push(M)}return P.length>0&&(P.sort(),T.push(...P)),T}},ei=N=>({cache:Z(N.cacheSize),parseClassName:en(N),sortModifiers:ea(N),postfixLookupClassGroupIds:eo(N),...B(N)}),eo=N=>{let I=Object.create(null),T=N.postfixLookupClassGroups;if(T)for(let N=0;N<T.length;N++)I[T[N]]=!0;return I},es=/\s+/,el=(N,I)=>{let{parseClassName:T,getClassGroupId:P,getConflictingClassGroupIds:D,sortModifiers:M,postfixLookupClassGroupIds:R}=I,L=[],$=N.trim().split(es),F="";for(let N=$.length-1;N>=0;N-=1){let I,B=$[N],{isExternal:U,modifiers:H,hasImportantModifier:z,baseClassName:W,maybePostfixModifierPosition:q}=T(B);if(U){F=B+(F.length>0?" "+F:F);continue}let G=!!q;if(G){let N=(I=P(W.substring(0,q)))&&R[I]?P(W):void 0;N&&N!==I&&(I=N,G=!1)}else I=P(W);if(!I){if(!G||!(I=P(W))){F=B+(F.length>0?" "+F:F);continue}G=!1}let K=0===H.length?"":1===H.length?H[0]:M(H).join(":"),V=z?K+X:K,Y=V+I;if(L.indexOf(Y)>-1)continue;L.push(Y);let J=D(I,G);for(let N=0;N<J.length;++N){let I=J[N];L.push(V+I)}F=B+(F.length>0?" "+F:F)}return F},ec=(...N)=>{let I,T,P=0,D="";for(;P<N.length;)(I=N[P++])&&(T=eu(I))&&(D&&(D+=" "),D+=T);return D},eu=N=>{let I;if("string"==typeof N)return N;let T="";for(let P=0;P<N.length;P++)N[P]&&(I=eu(N[P]))&&(T&&(T+=" "),T+=I);return T},ed=(N,...I)=>{let T,P,D,M,R=N=>{let I=P(N);if(I)return I;let M=el(N,T);return D(N,M),M};return M=L=>(P=(T=ei(I.reduce((N,I)=>I(N),N()))).cache.get,D=T.cache.set,M=R,R(L)),(...N)=>M(ec(...N))},ef=[],eh=N=>{let I=I=>I[N]||ef;return I.isThemeGetter=!0,I.themeKey=N,I},ep=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,em=/^\((?:(\w[\w-]*):)?(.+)\)$/i,eg=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ey=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,eb=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ev=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,ew=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ex=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,eA=N=>eg.test(N),eE=N=>!!N&&!Number.isNaN(Number(N)),eS=N=>!!N&&Number.isInteger(Number(N)),e_=N=>N.endsWith("%")&&eE(N.slice(0,-1)),ek=N=>ey.test(N),eC=()=>!0,ej=N=>eb.test(N)&&!ev.test(N),eO=()=>!1,eN=N=>ew.test(N),eI=N=>ex.test(N),eT=N=>!eM(N)&&!ez(N),eP=N=>N.startsWith("@container")&&("/"===N[10]&&void 0!==N[11]||"s"===N[11]&&void 0!==N[16]&&N.startsWith("-size/",10)||"n"===N[11]&&void 0!==N[18]&&N.startsWith("-normal/",10)),eD=N=>eQ(N,e1,eO),eM=N=>ep.test(N),eR=N=>eQ(N,e2,ej),eL=N=>eQ(N,e3,eE),e$=N=>eQ(N,e5,eC),eF=N=>eQ(N,e4,eO),eB=N=>eQ(N,eX,eO),eU=N=>eQ(N,e0,eI),eH=N=>eQ(N,e6,eN),ez=N=>em.test(N),eW=N=>eZ(N,e2),eq=N=>eZ(N,e4),eG=N=>eZ(N,eX),eK=N=>eZ(N,e1),eV=N=>eZ(N,e0),eY=N=>eZ(N,e6,!0),eJ=N=>eZ(N,e5,!0),eQ=(N,I,T)=>{let P=ep.exec(N);return!!P&&(P[1]?I(P[1]):T(P[2]))},eZ=(N,I,T=!1)=>{let P=em.exec(N);return!!P&&(P[1]?I(P[1]):T)},eX=N=>"position"===N||"percentage"===N,e0=N=>"image"===N||"url"===N,e1=N=>"length"===N||"size"===N||"bg-size"===N,e2=N=>"length"===N,e3=N=>"number"===N,e4=N=>"family-name"===N,e5=N=>"number"===N||"weight"===N,e6=N=>"shadow"===N,e8=()=>{let N=eh("color"),I=eh("font"),T=eh("text"),P=eh("font-weight"),D=eh("tracking"),M=eh("leading"),R=eh("breakpoint"),L=eh("container"),$=eh("spacing"),F=eh("radius"),B=eh("shadow"),U=eh("inset-shadow"),H=eh("text-shadow"),z=eh("drop-shadow"),W=eh("blur"),q=eh("perspective"),G=eh("aspect"),K=eh("ease"),V=eh("animate"),Y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],J=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],Q=()=>
vendor: 8,296 bytes, line 1396
1396[...J(),ez,eM],Z=()=>["auto","hidden","clip","visible","scroll"],X=()=>["auto","contain","none"],ee=()=>[ez,eM,$],et=()=>[eA,"full","auto",...ee()],er=()=>[eS,"none","subgrid",ez,eM],en=()=>["auto",{span:["full",eS,ez,eM]},eS,ez,eM],ea=()=>[eS,"auto",ez,eM],ei=()=>["auto","min","max","fr",ez,eM],eo=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],es=()=>["start","end","center","stretch","center-safe","end-safe"],el=()=>["auto",...ee()],ec=()=>[eA,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...ee()],eu=()=>[L,eA,"screen","full","dvw","lvw","svw","min","max","fit",...ee()],ed=()=>[eA,"screen","full","lh","dvh","lvh","svh","min","max","fit",...ee()],ef=()=>[N,ez,eM],ep=()=>[...J(),eG,eB,{position:[ez,eM]}],em=()=>["no-repeat",{repeat:["","x","y","space","round"]}],eg=()=>["auto","cover","contain",eK,eD,{size:[ez,eM]}],ey=()=>[e_,eW,eR],eb=()=>["","none","full",F,ez,eM],ev=()=>["",eE,eW,eR],ew=()=>["solid","dashed","dotted","double"],ex=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ej=()=>[eE,e_,eG,eB],eO=()=>["","none",W,ez,eM],eN=()=>["none",eE,ez,eM],eI=()=>["none",eE,ez,eM],eQ=()=>[eE,ez,eM],eZ=()=>[eA,"full",...ee()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ek],breakpoint:[ek],color:[eC],container:[ek],"drop-shadow":[ek],ease:["in","out","in-out"],font:[eT],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ek],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ek],shadow:[ek],spacing:["px",eE],text:[ek],"text-shadow":[ek],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",eA,eM,ez,G]}],container:["container"],"container-type":[{"@container":["","normal","size",ez,eM]}],"container-named":[eP],columns:[{columns:[eE,"auto",eM,ez,L]}],"break-after":[{"break-after":Y()}],"break-before":[{"break-before":Y()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:Q()}],overflow:[{overflow:Z()}],"overflow-x":[{"overflow-x":Z()}],"overflow-y":[{"overflow-y":Z()}],overscroll:[{overscroll:X()}],"overscroll-x":[{"overscroll-x":X()}],"overscroll-y":[{"overscroll-y":X()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:et()}],"inset-x":[{"inset-x":et()}],"inset-y":[{"inset-y":et()}],start:[{"inset-s":et(),start:et()}],end:[{"inset-e":et(),end:et()}],"inset-bs":[{"inset-bs":et()}],"inset-be":[{"inset-be":et()}],top:[{top:et()}],right:[{right:et()}],bottom:[{bottom:et()}],left:[{left:et()}],visibility:["visible","invisible","collapse"],z:[{z:[eS,"auto",ez,eM]}],basis:[{basis:[eA,"full","auto",L,...ee()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[eE,eA,"auto","initial","none",eM]}],grow:[{grow:["",eE,ez,eM]}],shrink:[{shrink:["",eE,ez,eM]}],order:[{order:[eS,"first","last","none",ez,eM]}],"grid-cols":[{"grid-cols":er()}],"col-start-end":[{col:en()}],"col-start":[{"col-start":ea()}],"col-end":[{"col-end":ea()}],"grid-rows":[{"grid-rows":er()}],"row-start-end":[{row:en()}],"row-start":[{"row-start":ea()}],"row-end":[{"row-end":ea()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ei()}],"auto-rows":[{"auto-rows":ei()}],gap:[{gap:ee()}],"gap-x":[{"gap-x":ee()}],"gap-y":[{"gap-y":ee()}],"justify-content":[{justify:[...eo(),"normal"]}],"justify-items":[{"justify-items":[...es(),"normal"]}],"justify-self":[{"justify-self":["auto",...es()]}],"align-content":[{content:["normal",...eo()]}],"align-items":[{items:[...es(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...es(),{baseline:["","last"]}]}],"place-content":[{"place-content":eo()}],"place-items":[{"place-items":[...es(),"baseline"]}],"place-self":[{"place-self":["auto",...es()]}],p:[{p:ee()}],px:[{px:ee()}],py:[{py:ee()}],ps:[{ps:ee()}],pe:[{pe:ee()}],pbs:[{pbs:ee()}],pbe:[{pbe:ee()}],pt:[{pt:ee()}],pr:[{pr:ee()}],pb:[{pb:ee()}],pl:[{pl:ee()}],m:[{m:el()}],mx:[{mx:el()}],my:[{my:el()}],ms:[{ms:el()}],me:[{me:el()}],mbs:[{mbs:el()}],mbe:[{mbe:el()}],mt:[{mt:el()}],mr:[{mr:el()}],mb:[{mb:el()}],ml:[{ml:el()}],"space-x":[{"space-x":ee()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":ee()}],"space-y-reverse":["space-y-reverse"],size:[{size:ec()}],"inline-size":[{inline:["auto",...eu()]}],"min-inline-size":[{"min-inline":["auto",...eu()]}],"max-inline-size":[{"max-inline":["none",...eu()]}],"block-size":[{block:["auto",...ed()]}],"min-block-size":[{"min-block":["auto",...ed()]}],"max-block-size":[{"max-block":["none",...ed()]}],w:[{w:[L,"screen",...ec()]}],"min-w":[{"min-w":[L,"screen","none",...ec()]}],"max-w":[{"max-w":[L,"screen","none","prose",{screen:[R]},...ec()]}],h:[{h:["screen","lh",...ec()]}],"min-h":[{"min-h":["screen","lh","none",...ec()]}],"max-h":[{"max-h":["screen","lh","none",...ec()]}],"font-size":[{text:["base",T,eW,eR]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[P,eJ,e$]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",e_,eM]}],"font-family":[{font:[eq,eF,I]}],"font-features":[{"font-features":[eM]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[D,ez,eM]}],"line-clamp":[{"line-clamp":[eE,"none",ez,eL]}],leading:[{leading:["none",M,...ee()]}],"list-image":[{"list-image":["none",ez,eM]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ez,eM]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ef()}],"text-color":[{text:ef()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ew(),"wavy"]}],"text-decoration-thickness":[{decoration:[eE,"from-font","auto",ez,eR]}],"text-decoration-color":[{decoration:ef()}],"underline-offset":[{"underline-offset":[eE,"auto",ez,eM]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ee()}],"tab-size":[{tab:[eS,ez,eM]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ez,eM]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ez,eM]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ep()}],"bg-repeat":[{bg:em()}],"bg-size":[{bg:eg()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},eS,ez,eM],radial:["",ez,eM],conic:["",eS,ez,eM]},eV,eU]}],"bg-color":[{bg:ef()}],"gradient-from-pos":[{from:ey()}
vendor: 7,484 bytes, line 1396
1396],"gradient-via-pos":[{via:ey()}],"gradient-to-pos":[{to:ey()}],"gradient-from":[{from:ef()}],"gradient-via":[{via:ef()}],"gradient-to":[{to:ef()}],rounded:[{rounded:eb()}],"rounded-s":[{"rounded-s":eb()}],"rounded-e":[{"rounded-e":eb()}],"rounded-t":[{"rounded-t":eb()}],"rounded-r":[{"rounded-r":eb()}],"rounded-b":[{"rounded-b":eb()}],"rounded-l":[{"rounded-l":eb()}],"rounded-ss":[{"rounded-ss":eb()}],"rounded-se":[{"rounded-se":eb()}],"rounded-ee":[{"rounded-ee":eb()}],"rounded-es":[{"rounded-es":eb()}],"rounded-tl":[{"rounded-tl":eb()}],"rounded-tr":[{"rounded-tr":eb()}],"rounded-br":[{"rounded-br":eb()}],"rounded-bl":[{"rounded-bl":eb()}],"border-w":[{border:ev()}],"border-w-x":[{"border-x":ev()}],"border-w-y":[{"border-y":ev()}],"border-w-s":[{"border-s":ev()}],"border-w-e":[{"border-e":ev()}],"border-w-bs":[{"border-bs":ev()}],"border-w-be":[{"border-be":ev()}],"border-w-t":[{"border-t":ev()}],"border-w-r":[{"border-r":ev()}],"border-w-b":[{"border-b":ev()}],"border-w-l":[{"border-l":ev()}],"divide-x":[{"divide-x":ev()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ev()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ew(),"hidden","none"]}],"divide-style":[{divide:[...ew(),"hidden","none"]}],"border-color":[{border:ef()}],"border-color-x":[{"border-x":ef()}],"border-color-y":[{"border-y":ef()}],"border-color-s":[{"border-s":ef()}],"border-color-e":[{"border-e":ef()}],"border-color-bs":[{"border-bs":ef()}],"border-color-be":[{"border-be":ef()}],"border-color-t":[{"border-t":ef()}],"border-color-r":[{"border-r":ef()}],"border-color-b":[{"border-b":ef()}],"border-color-l":[{"border-l":ef()}],"divide-color":[{divide:ef()}],"outline-style":[{outline:[...ew(),"none","hidden"]}],"outline-offset":[{"outline-offset":[eE,ez,eM]}],"outline-w":[{outline:["",eE,eW,eR]}],"outline-color":[{outline:ef()}],shadow:[{shadow:["","inner","none",B,eY,eH]}],"shadow-color":[{shadow:ef()}],"inset-shadow":[{"inset-shadow":["none",U,eY,eH]}],"inset-shadow-color":[{"inset-shadow":ef()}],"ring-w":[{ring:ev()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ef()}],"ring-offset-w":[{"ring-offset":[eE,eR]}],"ring-offset-color":[{"ring-offset":ef()}],"inset-ring-w":[{"inset-ring":ev()}],"inset-ring-color":[{"inset-ring":ef()}],"text-shadow":[{"text-shadow":["none",H,eY,eH]}],"text-shadow-color":[{"text-shadow":ef()}],opacity:[{opacity:[eE,ez,eM]}],"mix-blend":[{"mix-blend":[...ex(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ex()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[eE]}],"mask-image-linear-from-pos":[{"mask-linear-from":ej()}],"mask-image-linear-to-pos":[{"mask-linear-to":ej()}],"mask-image-linear-from-color":[{"mask-linear-from":ef()}],"mask-image-linear-to-color":[{"mask-linear-to":ef()}],"mask-image-t-from-pos":[{"mask-t-from":ej()}],"mask-image-t-to-pos":[{"mask-t-to":ej()}],"mask-image-t-from-color":[{"mask-t-from":ef()}],"mask-image-t-to-color":[{"mask-t-to":ef()}],"mask-image-r-from-pos":[{"mask-r-from":ej()}],"mask-image-r-to-pos":[{"mask-r-to":ej()}],"mask-image-r-from-color":[{"mask-r-from":ef()}],"mask-image-r-to-color":[{"mask-r-to":ef()}],"mask-image-b-from-pos":[{"mask-b-from":ej()}],"mask-image-b-to-pos":[{"mask-b-to":ej()}],"mask-image-b-from-color":[{"mask-b-from":ef()}],"mask-image-b-to-color":[{"mask-b-to":ef()}],"mask-image-l-from-pos":[{"mask-l-from":ej()}],"mask-image-l-to-pos":[{"mask-l-to":ej()}],"mask-image-l-from-color":[{"mask-l-from":ef()}],"mask-image-l-to-color":[{"mask-l-to":ef()}],"mask-image-x-from-pos":[{"mask-x-from":ej()}],"mask-image-x-to-pos":[{"mask-x-to":ej()}],"mask-image-x-from-color":[{"mask-x-from":ef()}],"mask-image-x-to-color":[{"mask-x-to":ef()}],"mask-image-y-from-pos":[{"mask-y-from":ej()}],"mask-image-y-to-pos":[{"mask-y-to":ej()}],"mask-image-y-from-color":[{"mask-y-from":ef()}],"mask-image-y-to-color":[{"mask-y-to":ef()}],"mask-image-radial":[{"mask-radial":[ez,eM]}],"mask-image-radial-from-pos":[{"mask-radial-from":ej()}],"mask-image-radial-to-pos":[{"mask-radial-to":ej()}],"mask-image-radial-from-color":[{"mask-radial-from":ef()}],"mask-image-radial-to-color":[{"mask-radial-to":ef()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":J()}],"mask-image-conic-pos":[{"mask-conic":[eE]}],"mask-image-conic-from-pos":[{"mask-conic-from":ej()}],"mask-image-conic-to-pos":[{"mask-conic-to":ej()}],"mask-image-conic-from-color":[{"mask-conic-from":ef()}],"mask-image-conic-to-color":[{"mask-conic-to":ef()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ep()}],"mask-repeat":[{mask:em()}],"mask-size":[{mask:eg()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ez,eM]}],filter:[{filter:["","none",ez,eM]}],blur:[{blur:eO()}],brightness:[{brightness:[eE,ez,eM]}],contrast:[{contrast:[eE,ez,eM]}],"drop-shadow":[{"drop-shadow":["","none",z,eY,eH]}],"drop-shadow-color":[{"drop-shadow":ef()}],grayscale:[{grayscale:["",eE,ez,eM]}],"hue-rotate":[{"hue-rotate":[eE,ez,eM]}],invert:[{invert:["",eE,ez,eM]}],saturate:[{saturate:[eE,ez,eM]}],sepia:[{sepia:["",eE,ez,eM]}],"backdrop-filter":[{"backdrop-filter":["","none",ez,eM]}],"backdrop-blur":[{"backdrop-blur":eO()}],"backdrop-brightness":[{"backdrop-brightness":[eE,ez,eM]}],"backdrop-contrast":[{"backdrop-contrast":[eE,ez,eM]}],"backdrop-grayscale":[{"backdrop-grayscale":["",eE,ez,eM]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[eE,ez,eM]}],"backdrop-invert":[{"backdrop-invert":["",eE,ez,eM]}],"backdrop-opacity":[{"backdrop-opacity":[eE,ez,eM]}],"backdrop-saturate":[{"backdrop-saturate":[eE,ez,eM]}],"backdrop-sepia":[{"backdrop-sepia":["",eE,ez,eM]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":ee()}],"border-spacing-x":[{"border-spacing-x":ee()}],"border-spacing-y":[{"border-spacing-y":ee()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ez,eM]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[eE,"initial",ez,eM]}],ease:[{ease:["linear","initial",K,ez,eM]}],delay:[{delay:[eE,ez,eM]}],animate:[{animate:["none",V,ez,eM]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[q,ez,eM]}],"perspective-origin":[{"perspective-origin":Q()}],rotate:[{rotate:eN()}],"rotate-x":[{"rotate-x":eN()}],"rotate-y":[{"rotate-y":eN()}],"rotate-z":[{"rotate-z":eN()}],scale:[{scale:eI()}],"scale-x":[{"scale-x":eI()}],"scale-y":[{"scale-y":eI()}],"scale-z":[{"scale-z":eI()}],"scale-3d":["scale-3d"],skew:[{skew:eQ()}],"skew-x":[{"skew-x":eQ()}],"skew-y":[{"skew-y":eQ()}],transform:[{transform:[ez,eM,"","none","gpu","cpu"]}],"transform-origin":[{origin:Q()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:eZ()}],"translate-x":[{"translate-x":eZ()}],"translate-y":[{"translate-y":eZ()}],"translate-z":[{"translate-z":eZ()}],"translate-none":["translate-none"],zoom:[{zoom:[eS,ez,eM]}],accent:[{accent:ef()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ef()}
vendor: 6,100 bytes, line 1396
1396],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ez,eM]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":ef()}],"scrollbar-track-color":[{"scrollbar-track":ef()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":ee()}],"scroll-mx":[{"scroll-mx":ee()}],"scroll-my":[{"scroll-my":ee()}],"scroll-ms":[{"scroll-ms":ee()}],"scroll-me":[{"scroll-me":ee()}],"scroll-mbs":[{"scroll-mbs":ee()}],"scroll-mbe":[{"scroll-mbe":ee()}],"scroll-mt":[{"scroll-mt":ee()}],"scroll-mr":[{"scroll-mr":ee()}],"scroll-mb":[{"scroll-mb":ee()}],"scroll-ml":[{"scroll-ml":ee()}],"scroll-p":[{"scroll-p":ee()}],"scroll-px":[{"scroll-px":ee()}],"scroll-py":[{"scroll-py":ee()}],"scroll-ps":[{"scroll-ps":ee()}],"scroll-pe":[{"scroll-pe":ee()}],"scroll-pbs":[{"scroll-pbs":ee()}],"scroll-pbe":[{"scroll-pbe":ee()}],"scroll-pt":[{"scroll-pt":ee()}],"scroll-pr":[{"scroll-pr":ee()}],"scroll-pb":[{"scroll-pb":ee()}],"scroll-pl":[{"scroll-pl":ee()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ez,eM]}],fill:[{fill:["none",...ef()]}],"stroke-w":[{stroke:[eE,eW,eR,eL]}],stroke:[{stroke:["none",...ef()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["start","end","right","left"],"inset-y":["inset-bs","inset-be","top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["ps","pe","pr","pl"],py:["pbs","pbe","pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["ms","me","mr","ml"],my:["mbs","mbe","mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-s","border-w-e","border-w-r","border-w-l"],"border-w-y":["border-w-bs","border-w-be","border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-s","border-color-e","border-color-r","border-color-l"],"border-color-y":["border-color-bs","border-color-be","border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-ms","scroll-me","scroll-mr","scroll-ml"],"scroll-my":["scroll-mbs","scroll-mbe","scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-ps","scroll-pe","scroll-pr","scroll-pl"],"scroll-py":["scroll-pbs","scroll-pbe","scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},e7=(N,{cacheSize:I,prefix:T,experimentalParseClassName:P,extend:D={},override:M={}})=>(e9(N,"cacheSize",I),e9(N,"prefix",T),e9(N,"experimentalParseClassName",P),te(N.theme,M.theme),te(N.classGroups,M.classGroups),te(N.conflictingClassGroups,M.conflictingClassGroups),te(N.conflictingClassGroupModifiers,M.conflictingClassGroupModifiers),e9(N,"postfixLookupClassGroups",M.postfixLookupClassGroups),e9(N,"orderSensitiveModifiers",M.orderSensitiveModifiers),tt(N.theme,D.theme),tt(N.classGroups,D.classGroups),tt(N.conflictingClassGroups,D.conflictingClassGroups),tt(N.conflictingClassGroupModifiers,D.conflictingClassGroupModifiers),tr(N,D,"postfixLookupClassGroups"),tr(N,D,"orderSensitiveModifiers"),N),e9=(N,I,T)=>{void 0!==T&&(N[I]=T)},te=(N,I)=>
1396{if(I)for(let T in I)e9(N,T,I[T])},tt=(N,I)=>{if(I)for(let T in I)tr(N,I,T)},tr=(N,I,T)=>{let P=I[T];void 0!==P&&(N[T]=N[T]?N[T].concat(P):P)},tn=((N,...I)=>"function"==typeof N?ed(e8,N,...I):ed(()=>e7(e8(),N),...I))({extend:{theme:{color:[{text:["brunel-yellow","brunel-clay","brunel-teal","brunel-grey-green","brunel-black","brunel-dark-grey","ui-grey","ui-light-grey","ui-green","ui-bourbon","ui-purple","ui-lilac","accent-iron","accent-spring-wood","accent-pampas","accent-old-lace","accent-catskill-white","accent-fiord","accent-corn","accent-pacifika"]}]},classGroups:{"font-size":[{text:["d-h1","d-h2","d-h3","d-h4","d-h5","d-body-large","d-body-medium","d-body-small","m-h1","m-h2","m-h3","m-h4","m-h5","m-body-large","m-body-medium","m-body-small"]}]}}});function ta(...N){return tn((0,P.$)(N))}},97501:N=>{N.exports=function(){return':root{--border-width:1px;--border-radius:0.5rem;--color-error:#c94b4b;--color-info:#157efb;--color-info-hover:#0f6ddb;--color-info-text:#fff}.__next-auth-theme-auto,.__next-auth-theme-light{--color-background:#ececec;--color-background-hover:hsla(0,0%,93%,.8);--color-background-card:#fff;--color-text:#000;--color-primary:#444;--color-control-border:#bbb;--color-button-active-background:#f9f9f9;--color-button-active-border:#aaa;--color-separator:#ccc}.__next-auth-theme-dark{--color-background:#161b22;--color-background-hover:rgba(22,27,34,.8);--color-background-card:#0d1117;--color-text:#fff;--color-primary:#ccc;--color-control-border:#555;--color-button-active-background:#060606;--color-button-active-border:#666;--color-separator:#444}@media (prefers-color-scheme:dark){.__next-auth-theme-auto{--color-background:#161b22;--color-background-hover:rgba(22,27,34,.8);--color-background-card:#0d1117;--color-text:#fff;--color-primary:#ccc;--color-control-border:#555;--color-button-active-background:#060606;--color-button-active-border:#666;--color-separator:#444}a.button,button{background-color:var(--provider-dark-bg,var(--color-background));color:var(--provider-dark-color,var(--color-primary))}a.button:hover,button:hover{background-color:var(--provider-dark-bg-hover,var(--color-background-hover))!important}#provider-logo{display:none!important}#provider-logo-dark{display:block!important;width:25px}}html{box-sizing:border-box}*,:after,:before{box-sizing:inherit;margin:0;padding:0}body{background-color:var(--color-background);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;margin:0;padding:0}h1{font-weight:400}h1,p{color:var(--color-text);margin-bottom:1.5rem;padding:0 1rem}form{margin:0;padding:0}label{font-weight:500;margin-bottom:.25rem;text-align:left}input[type],label{color:var(--color-text);display:block}input[type]{background:var(--color-background-card);border:var(--border-width) solid var(--color-control-border);border-radius:var(--border-radius);box-sizing:border-box;font-size:1rem;padding:.5rem 1rem;width:100%}input[type]:focus{box-shadow:none}p{font-size:1.1rem;line-height:2rem}a.button{line-height:1rem;text-decoration:none}a.button:link,a.button:visited{background-color:var(--color-background);color:var(--color-primary)}button span{flex-grow:1}a.button,button{align-items:center;background-color:var(--provider-bg);border-color:rgba(0,0,0,.1);border-radius:var(--border-radius);color:var(--provider-color,var(--color-primary));display:flex;font-size:1.1rem;font-weight:500;justify-content:center;min-height:62px;padding:.75rem 1rem;position:relative;transition:all .1s ease-in-out}a.button:hover,button:hover{background-color:var(--provider-bg-hover,var(--color-background-hover));cursor:pointer}a.button:active,button:active{cursor:pointer}a.button #provider-logo,button #provider-logo{display:block;width:25px}a.button #provider-logo-dark,button #provider-logo-dark{display:none}#submitButton{background-color:var(--brand-color,var(--color-info));color:var(--button-text-color,var(--color-info-text));width:100%}#submitButton:hover{background-color:var(--button-hover-bg,var(--color-info-hover))!important}a.site{color:var(--color-primary);font-size:1rem;line-height:2rem;text-decoration:none}a.site:hover{text-decoration:underline}.page{box-sizing:border-box;display:grid;height:100%;margin:0;padding:0;place-items:center;position:absolute;width:100%}.page>div{text-align:center}.error a.button{margin-top:.5rem;padding-left:2rem;padding-right:2rem}.error .message{margin-bottom:1.5rem}.signin input[type=text]{display:block;margin-left:auto;margin-right:auto}.signin hr{border:0;border-top:1px solid var(--color-separator);display:block;margin:2rem auto 1rem;overflow:visible}.signin hr:before{background:var(--color-background-card);color:#888;content:"or";padding:0 .4rem;position:relative;top:-.7rem}.signin .error{background:#f5f5f5;background:var(--color-error);border-radius:.3rem;font-weight:500}.signin .error p{color:var(--color-info-text);font-size:.9rem;line-height:1.2rem;padding:.5rem 1rem;text-align:left}.signin form,.signin>div{display:block}.signin form input[type],.signin>div input[type]{margin-bottom:.5rem}.signin form button,.signin>div button{width:100%}.signin .provider+.provider{margin-top:1rem}.logo{display:inline-block;margin:1.25rem 0;max-height:70px;max-width:150px}.card{background-color:var(--color-background-card);border-radius:2rem;padding:1.25rem 2rem}.card .header{color:var(--color-primary)}.section-header{color:var(--color-text)}@media screen and (min-width:450px){.card{margin:2rem 0;width:368px}}@media screen and (max-width:450px){.card{margin:1rem 0;width:343px}}'}},97618:(N,I,T)=>{"use strict";T.r(I),T.d(I,{Default:()=>V,TextBlock:()=>K,TextWithImageLeft:()=>q,TextWithImageRight:()=>G});var P=T(37876),D=T(79239),M=T(10553),R=T(63366),L=T(27400),$=T(79517),F=T(36379),B=T(49006);let U=` 1397 items-center md:h-auto 1398 text-brunel-dark-grey text-base rounded-sm overflow-hidden 1399`,H=` 1400 border-accent-iron lg:border border-solid shadow 1401`,z=({rendering:N,params:I,fields:T})=>{let P=N?.fields??T,D=N?.params??I,M=(0,F.Qh)(D?.Styles),R=M?M.split(/\s+/).filter(
1401Boolean):[],L=R.includes($.rG.ICON_LEFT)?"left":R.includes($.rG.ICON_RIGHT)?"right":void 0;return{fields:P,id:D?.RenderingIdentifier,textWithTitle:P?.textWithTitle,textWithText:P?.textWithText,textWithImage:P?.textWithImage,textWithButtonLink:P?.textWithButtonLink,hasBorder:D?.HideBorder!="1",ctaIcon:D?.ButtonIcon,ctaIconPosition:L}},W=({imagePosition:N,editorTitle:I,rendering:T,params:D,fields:$,...F})=>{let{data:W}=(0,M.useSession)(),{fields:q,id:G,textWithTitle:K,textWithText:V,textWithImage:Y,textWithButtonLink:J,hasBorder:Q,ctaIcon:Z,ctaIconPosition:X}=z({rendering:T,params:D,fields:$});if(!q||0===Object.keys(q).length)return(0,P.jsx)(L.$,{id:G??"",title:I,msg:"Please add a title, text, and image using the toolbar."});let ee=(0,B.Z)(K,{name:W?.user?.name??""}),et=Q?H:"";return(0,P.jsx)(R.az,{id:G||void 0,className:U+et,...F,children:(0,P.jsx)(R.oM,{title:ee??K??{value:""},description:V,border:Q,image:Y,imagePosition:N,buttonLink:J,buttonIcon:Z,buttonIconPosition:X})})},q=N=>(0,P.jsx)(W,{...N,imagePosition:"left",editorTitle:"TextWithImageLeft"}),G=N=>(0,P.jsx)(W,{...N,imagePosition:"right",editorTitle:"TextWithImageRight"}),K=({rendering:N,params:I,fields:T,...M})=>{let{fields:$,id:F,textWithTitle:B,textWithText:W,hasBorder:q}=z({rendering:N,params:I,fields:T});if(!$||0===Object.keys($).length)return(0,P.jsx)(L.$,{id:F??"",title:"TextBlock",msg:"Please add a title and text using the toolbar."});let G=q?H:"";return(0,P.jsxs)(R.az,{id:F||void 0,className:U+G+"bg-white p-8",...M,children:[(0,P.jsx)(R.o5,{textField:B,type:"h2"}),(0,P.jsx)(D.s,{field:W,className:"break-word rich-text text-base"})]})},V=G;V.displayName="Default",q.displayName="TextWithImageLeft",G.displayName="TextWithImageRight",K.displayName="TextBlock"},97644:(N,I,T)=>{"use strict";T.d(I,{c:()=>H});var P=T(71947),D=T(71523);let M={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},R={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},L={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},$={date:(0,D.k)({formats:M,defaultWidth:"full"}),time:(0,D.k)({formats:R,defaultWidth:"full"}),dateTime:(0,D.k)({formats:L,defaultWidth:"full"})};var F=T(40908),B=T(19996),U=T(51952);let H={code:"en-AU",formatDistance:P.B,formatLong:$,formatRelative:F.o,localize:B.k,match:U.Y,options:{weekStartsOn:1,firstWeekContainsDate:4}}},98069:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),Object.defineProperty(I,"actionAsyncStorageInstance",{enumerable:!0,get:function(){return P}});let P=(0,T(55786).createAsyncLocalStorage)()},98176:(N,I,T)=>{"use strict";T.d(I,{CF:()=>V,Hk:()=>R,KM:()=>B,Pw:()=>H,QA:()=>P,Qm:()=>z,RM:()=>F,TT:()=>K,dn:()=>G,kB:()=>$,kJ:()=>L,kt:()=>D,oC:()=>W,qy:()=>Y,t7:()=>q,yl:()=>U});let P=900,D=60;var M,R=((M={}).OTP_SENT="CredentialsOtpSent",M.OTP_SENT_FAILED="CredentialsOtpSendFailed",M.OTP_VERIFICATION_FAILED="CredentialsOtpVerificationFailed",M.OTP_SESSION_EXPIRED="CredentialsOtpSessionExpired",M.ACCESS_DENIED="CredentialsAccessDenied",M.ACCESS_FORBIDDEN="CredentialsAccessForbidden",M.REFRESH_TOKEN_ERROR="CredentialsRefreshTokenError",M);let L="/blog",$="-",F=12,B=4,U="/events",H=12,z="/case-studies",W="-",q=12,G=12,K={en:{value:"keyword",regExp:"/keyword/([a-zA-Z0-9%-]*)"},cs:{value:"klicove-slovo",regExp:"/klicove-slovo/([a-zA-Z0-9%-]*)"},nl:{value:"zoekterm",regExp:"/zoekterm/([a-zA-Z0-9%-]*)"},de:{value:"suchbegriff",regExp:"/suchbegriff/([a-zA-Z0-9%-]*)"},zh:{value:"keyword",regExp:"/keyword/([a-zA-Z0-9%-]*)"}},V=5242880,Y="en-gb"},98199:(N,I,T)=>{"use strict";T.d(I,{C:()=>P});let P={1:"RegisterHours",2:"Article",3:"BeSmart",4:"PersonalMessage"}},98217:(N,I,T)=>{"use strict";T.d(I,{A:()=>P});let P=function(){return!("u">typeof window&&window.document)}},98275:(N,I,T)=>{"use strict";T.d(I,{m:()=>D});var P=T(90089);let D=new class extends P.Q{#eO;#p;#m;constructor(){super(),this.#m=N=>{if("u">typeof window&&window.addEventListener){let I=()=>N();return window.addEventListener("visibilitychange",I,!1),()=>{window.removeEventListener("visibilitychange",I)}}}}onSubscribe(){this.#p||this.setEventListener(this.#m)}onUnsubscribe(){this.hasListeners()||(this.#p?.(),this.#p=void 0)}setEventListener(N){this.#m=N,this.#p?.(),this.#p=N(N=>{"boolean"==typeof N?this.setFocused(N):this.onFocus()})}setFocused(N){this.#eO!==N&&(this.#eO=N,this.onFocus())}onFocus(){let N=this.isFocused();
1401this.listeners.forEach(I=>{I(N)})}isFocused(){return"boolean"==typeof this.#eO?this.#eO:globalThis.document?.visibilityState!=="hidden"}}},98311:(N,I,T)=>{let P=T(80894),D={};for(let N of Object.keys(P))D[P[N]]=N;let M={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(let I of(N.exports=M,Object.keys(M))){if(!("channels"in M[I]))throw Error("missing channels property: "+I);if(!("labels"in M[I]))throw Error("missing channel labels property: "+I);if(M[I].labels.length!==M[I].channels)throw Error("channel and label counts mismatch: "+I);let{channels:N,labels:T}=M[I];delete M[I].channels,delete M[I].labels,Object.defineProperty(M[I],"channels",{value:N}),Object.defineProperty(M[I],"labels",{value:T})}function R(N,I){return(N[0]-I[0])**2+(N[1]-I[1])**2+(N[2]-I[2])**2}M.rgb.hsl=function(N){let I,T,P=N[0]/255,D=N[1]/255,M=N[2]/255,R=Math.min(P,D,M),L=Math.max(P,D,M),$=L-R;L===R?I=0:P===L?I=(D-M)/$:D===L?I=2+(M-P)/$:M===L&&(I=4+(P-D)/$),(I=Math.min(60*I,360))<0&&(I+=360);let F=(R+L)/2;return[I,100*(T=L===R?0:F<=.5?$/(L+R):$/(2-L-R)),100*F]},M.rgb.hsv=function(N){let I,T,P,D,M,R=N[0]/255,L=N[1]/255,$=N[2]/255,F=Math.max(R,L,$),B=F-Math.min(R,L,$),U=function(N){return(F-N)/6/B+.5};return 0===B?(D=0,M=0):(M=B/F,I=U(R),T=U(L),P=U($),R===F?D=P-T:L===F?D=1/3+I-P:$===F&&(D=2/3+T
1401-I),D<0?D+=1:D>1&&(D-=1)),[360*D,100*M,100*F]},M.rgb.hwb=function(N){let I=N[0],T=N[1],P=N[2];return[M.rgb.hsl(N)[0],1/255*Math.min(I,Math.min(T,P))*100,100*(P=1-1/255*Math.max(I,Math.max(T,P)))]},M.rgb.cmyk=function(N){let I=N[0]/255,T=N[1]/255,P=N[2]/255,D=Math.min(1-I,1-T,1-P);return[100*((1-I-D)/(1-D)||0),100*((1-T-D)/(1-D)||0),100*((1-P-D)/(1-D)||0),100*D]},M.rgb.keyword=function(N){let I,T=D[N];if(T)return T;let M=1/0;for(let T of Object.keys(P)){let D=R(N,P[T]);D<M&&(M=D,I=T)}return I},M.keyword.rgb=function(N){return P[N]},M.rgb.xyz=function(N){let I=N[0]/255,T=N[1]/255,P=N[2]/255;return[100*(.4124*(I=I>.04045?((I+.055)/1.055)**2.4:I/12.92)+.3576*(T=T>.04045?((T+.055)/1.055)**2.4:T/12.92)+.1805*(P=P>.04045?((P+.055)/1.055)**2.4:P/12.92)),100*(.2126*I+.7152*T+.0722*P),100*(.0193*I+.1192*T+.9505*P)]},M.rgb.lab=function(N){let I=M.rgb.xyz(N),T=I[0],P=I[1],D=I[2];return T/=95.047,P/=100,D/=108.883,[116*(P=P>.008856?P**(1/3):7.787*P+16/116)-16,500*((T=T>.008856?T**(1/3):7.787*T+16/116)-P),200*(P-(D=D>.008856?D**(1/3):7.787*D+16/116))]},M.hsl.rgb=function(N){let I,T,P,D=N[0]/360,M=N[1]/100,R=N[2]/100;if(0===M)return[P=255*R,P,P];I=R<.5?R*(1+M):R+M-R*M;let L=2*R-I,$=[0,0,0];for(let N=0;N<3;N++)(T=D+-(1/3*(N-1)))<0&&T++,T>1&&T--,P=6*T<1?L+(I-L)*6*T:2*T<1?I:3*T<2?L+(I-L)*(2/3-T)*6:L,$[N]=255*P;return $},M.hsl.hsv=function(N){let I=N[0],T=N[1]/100,P=N[2]/100,D=T,M=Math.max(P,.01);P*=2,T*=P<=1?P:2-P,D*=M<=1?M:2-M;let R=(P+T)/2;return[I,100*(0===P?2*D/(M+D):2*T/(P+T)),100*R]},M.hsv.rgb=function(N){let I=N[0]/60,T=N[1]/100,P=N[2]/100,D=Math.floor(I)%6,M=I-Math.floor(I),R=255*P*(1-T),L=255*P*(1-T*M),$=255*P*(1-T*(1-M));switch(P*=255,D){case 0:return[P,$,R];case 1:return[L,P,R];case 2:return[R,P,$];case 3:return[R,L,P];case 4:return[$,R,P];case 5:return[P,R,L]}},M.hsv.hsl=function(N){let I,T,P=N[0],D=N[1]/100,M=N[2]/100,R=Math.max(M,.01);T=(2-D)*M;let L=(2-D)*R;return[P,100*(I=(I=D*R/(L<=1?L:2-L))||0),100*(T/=2)]},M.hwb.rgb=function(N){let I,T,P,D,M=N[0]/360,R=N[1]/100,L=N[2]/100,$=R+L;$>1&&(R/=$,L/=$);let F=Math.floor(6*M),B=1-L;I=6*M-F,(1&F)!=0&&(I=1-I);let U=R+I*(B-R);switch(F){default:case 6:case 0:T=B,P=U,D=R;break;case 1:T=U,P=B,D=R;break;case 2:T=R,P=B,D=U;break;case 3:T=R,P=U,D=B;break;case 4:T=U,P=R,D=B;break;case 5:T=B,P=R,D=U}return[255*T,255*P,255*D]},M.cmyk.rgb=function(N){let I=N[0]/100,T=N[1]/100,P=N[2]/100,D=N[3]/100;return[255*(1-Math.min(1,I*(1-D)+D)),255*(1-Math.min(1,T*(1-D)+D)),255*(1-Math.min(1,P*(1-D)+D))]},M.xyz.rgb=function(N){let I,T,P,D=N[0]/100,M=N[1]/100,R=N[2]/100;return I=(I=3.2406*D+-1.5372*M+-.4986*R)>.0031308?1.055*I**(1/2.4)-.055:12.92*I,T=(T=-.9689*D+1.8758*M+.0415*R)>.0031308?1.055*T**(1/2.4)-.055:12.92*T,P=(P=.0557*D+-.204*M+1.057*R)>.0031308?1.055*P**(1/2.4)-.055:12.92*P,[255*(I=Math.min(Math.max(0,I),1)),255*(T=Math.min(Math.max(0,T),1)),255*(P=Math.min(Math.max(0,P),1))]},M.xyz.lab=function(N){let I=N[0],T=N[1],P=N[2];return I/=95.047,T/=100,P/=108.883,[116*(T=T>.008856?T**(1/3):7.787*T+16/116)-16,500*((I=I>.008856?I**(1/3):7.787*I+16/116)-T),200*(T-(P=P>.008856?P**(1/3):7.787*P+16/116))]},M.lab.xyz=function(N){let I,T,P,D=N[0],M=N[1],R=N[2];I=M/500+(T=(D+16)/116),P=T-R/200;let L=T**3,$=I**3,F=P**3;return T=(L>.008856?L:(T-16/116)/7.787)*100,[I=($>.008856?$:(I-16/116)/7.787)*95.047,T,P=(F>.008856?F:(P-16/116)/7.787)*108.883]},M.lab.lch=function(N){let I,T=N[0],P=N[1],D=N[2];return(I=360*Math.atan2(D,P)/2/Math.PI)<0&&(I+=360),[T,Math.sqrt(P*P+D*D),I]},M.lch.lab=function(N){let I=N[0],T=N[1],P=N[2]/360*2*Math.PI;return[I,T*Math.cos(P),T*Math.sin(P)]},M.rgb.ansi16=function(N,I=null){let[T,P,D]=N,R=null===I?M.rgb.hsv(N)[2]:I;if(0===(R=Math.round(R/50)))return 30;let L=30+(Math.round(D/255)<<2|Math.round(P/255)<<1|Math.round(T/255));return 2===R&&(L+=60),L},M.hsv.ansi16=function(N){return M.rgb.ansi16(M.hsv.rgb(N),N[2])},M.rgb.ansi256=function(N){let I=N[0],T=N[1],P=N[2];return I===T&&T===P?I<8?16:I>248?231:Math.round((I-8)/247*24)+232:16+36*Math.round(I/255*5)+6*Math.round(T/255*5)+Math.round(P/255*5)},M.ansi16.rgb=function(N){let I=N%10;if(0===I||7===I)return N>50&&(I+=3.5),[I=I/10.5*255,I,I];let T=(~~(N>50)+1)*.5;return[(1&I)*T*255,(I>>1&1)*T*255,(I>>2&1)*T*255]},M.ansi256.rgb=function(N){let I;if(N>=232){let I=(N-232)*10+8;return[I,I,I]}return[Math.floor((N-=16)/36)/5*255,Math.floor((I=N%36)/6)/5*255,I%6/5*255]},M.rgb.hex=function(N){let I=(((255&Math.round(N[0]))<<16)+((255&Math.round(N[1]))<<8)+(255&Math.round(N[2]))).toString(16).toUpperCase();return"000000".substring(I.length)+I},M.hex.rgb=function(N){let I=N.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!I)return[0,0,0];let T=I[0];3===I[0].length&&(T=T.split("").map(N=>N+N).join(""));let P=parseInt(T,16);return[P>>16&255,P>>8&255,255&P]},M.rgb.hcg=function(N){let I,T,P=N[0]/255,D=N[1]/255,M=N[2]/255,R=Math.max(Math.max(P,D),M),L=Math.min(Math.min(P,D),M),$=R-L;return I=$<1?L/(1-$):0,[360*(T=($<=0?0:R===P?(D-M)/$%6:R===D?2+(M-P)/$:4+(P-D)/$)/6%1),100*$,100*I]},M.hsl.hcg=function(N){let I=N[1]/100,T=N[2]/100,P=T<.5?2*I*T:2*I*(1-T),D=0;return P<1&&(D=(T-.5*P)/(1-P)),[N[0],100*P,100*D]},M.hsv.hcg=function(N){let I=N[1]/100,T=N[2]/100,P=I*T,D=0;return P<1&&(D=(T-P)/(1-P)),[N[0],100*P,100*D]},M.hcg.rgb=function(N){let I=N[0]/360,T=N[1]/100,P=N[2]/100;if(0===T)return[255*P,255*P,255*P];let D=[0,0,0],M=I%1*6,R=M%1,L=1-R,$=0;switch(Math.floor(M)){case 0:D[0]=1,D[1]=R,D[2]=0;break;case 1:D[0]=L,D[1]=1,D[2]=0;break;case 2:D[0]=0,D[1]=1,D[2]=R;break;case 3:D[0]=0,D[1]=L,D[2]=1;break;case 4:D[0]=R,D[1]=0,D[2]=1;break;default:D[0]=1,D[1]=0,D[2]=L}return $=(1-T)*P,[(T*D[0]+$)*255,(T*D[1]+$)*255,(T*D[2]+$)*255]},M.hcg.hsv=function(N){let I=N[1]/100,T=I+N[2]/100*(1-I),P=0;return T>0&&(P=I/T),[N[0],100*P,100*T]},M.hcg.hsl=function(N){let I=N[1]/100,T=N[2]/100*(1-I)+.5*I,P=0;return T>0&&T<.5?P=I/(2*T):T>=.5&&T<1&&(P=I/(2*(1-T))),[N[0],100*P,100*T]},M.hcg.hwb=function(N){let I=N[1]/100,T=I+N[2]/100*(1-I);return[N[0],(T-I)*100,(1-T)*100]},M.hwb.hcg=function(N){let I=N[1]/100,T=1-N[2]/100,P=T-I,D=0;return P<1&&(D=(T-P)/(1-P)),[N[0],100*P,100*D]},M.apple.rgb=function(N){return[N[0]/65535*255,N[1]/65535*255,N[2]/65535*255]},M.rgb.apple=function(N){return[N[0]/255*65535,N[1]/255*65535,N[2]/255*65535]},M.gray.rgb=function(N){return[N[0]/100*255,N[0]/100*255,N[0]/100*255]},M.gray.hsl=function(N){return[0,0,N[0]]},M.gray.hsv=M.gray.hsl,M.gray.hwb=function(N){return[0,100,N[0]]},M.gray.cmyk=function(N){return[0,0,0,N[0]]},M.gray.lab=function(N){return[N[0],0,0]},M.gray.hex=function(N){let I=255&Math.round(N[0]/100*255),T=((I<<16)+(I<<8)+I).toString(16).toUpperCase();return"000000".substring(T.length)+T},M.rgb.gray=function(N){return[(N[0]+N[1]+N[2])/3/255*100]}},98351:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),function(N,I){for(var T in I)Object.defineProperty(N,T,{enumerable:!0,get:I[T]})}(I,{RENDER_STAGE_ADVANCE_ORDER:function(){return $},RenderStage:function(){return L},StagedRenderingController:function(){return H},SyncIOMode:function(){return U},getNextStage:function(){return F},isAdvanceableRenderStage:function(){return B}});let P=T(29877),D=T(64032);var M,R,L=((M={})[M.Before=1]="Before",M[M.ShellStatic=11]="ShellStatic",M[M.Static=13]="Static",M[M.ShellRuntime=21]="ShellRuntime",M[M.Runtime=23]="Runtime",M[M.Dynamic=30]="Dynamic",M[M.Abandoned=40]="Abandoned",M);let $=[11,13,21,23,30];function F(N){return $[$.indexOf(N)+1]}function B(N){return 1<N&&N<=30}var U=((R={})[R.Untracked=1]="Untracked",R[R.AllowedInRuntimeOrDynamic=2]="AllowedInRuntimeOrDynamic",R[R.AllowedInDynamic=3]="AllowedInDynamic",R);class H{constructor({abortSignal:N,abandonController:I,syncIO:T,finalStage:P}){this.currentStage=1,this.syncInterruptReason=null,this.triggers={11:q(),13:q(),21:q(),23:q(),30:q()}
1401,this.abortSignal=N,this.abandonController=I,this.syncIOMode=T,this.finalStage=P,N&&N.addEventListener("abort",()=>{let{reason:I}=N;for(let N of Object.values(this.triggers))K(N,I)},{once:!0}),I&&I.signal.addEventListener("abort",()=>{this.abandonRender()},{once:!0})}onStage(N,I){W(this.triggers[N],I)}shouldTrackSyncInterrupt(){if(1===this.syncIOMode)return!1;switch(this.currentStage){case 1:return!1;case 11:case 13:return!0;case 21:case 23:switch(this.syncIOMode){case 2:return!1;case 3:return!0}case 30:case 40:return!1;default:return this.currentStage,!1}}syncInterruptCurrentStageWithReason(N){let{currentStage:I}=this;if(1!==I&&30!==I&&40!==I){if(this.abandonController)return void this.abandonController.abort();if(this.abortSignal){this.syncInterruptReason=N,this.currentStage=40;return}this.syncInterruptReason=N,this.advanceStage(30)}}getSyncInterruptReason(){return this.syncInterruptReason}getStageEndTime(N){return this.triggers[F(N)].triggeredAt??1/0}abandonRender(){let{currentStage:N}=this;if(1===N)throw Object.defineProperty(new P.InvariantError("A render that hasn't started yet cannot be abandoned"),"__NEXT_ERROR_CODE",{value:"E1300",enumerable:!1,configurable:!0});if(30===N||40===N)return;let I=$.indexOf(N)+1,T=$.indexOf(30);for(let N=I;N<T;N++)this.resolveStage($[N]);this.currentStage=40}advanceStage(N){if(null!==this.finalStage&&N>this.finalStage)throw Object.defineProperty(new P.InvariantError(`Attempted to advance to stage ${L[N]} but the render is limited to ${L[this.finalStage]}`),"__NEXT_ERROR_CODE",{value:"E1302",enumerable:!1,configurable:!0});let{currentStage:I}=this;if(30===I||40===I||N<=I)return;this.currentStage=N;let T=1===I?0:$.indexOf(I)+1,D=$.indexOf(N);for(let N=T;N<=D;N++)this.resolveStage($[N])}resolveStage(N){G(this.triggers[N])}getStagePromise(N){return this.triggers[N].promise}waitForStage(N){return this.getStagePromise(N)}
1401delayUntilStage(N,I,T){let P=this.getStagePromise(N).then(()=>T);return this.abortSignal&&P.catch(z),P}}function z(){}function W(N,I){"pending"===N.state?N._listeners.push(I):I()}function q(){let{promise:N,resolve:I,reject:T}=(0,D.createPromiseWithResolvers)();return{state:"pending",triggeredAt:null,promise:N,_listeners:[],_resolvePromise:I,_rejectPromise:T}}function G(N){if("pending"===N.state){N.state="triggered",N.triggeredAt=performance.now()+performance.timeOrigin;try{let{_listeners:I}=N;for(let N=0;N<I.length;N++)I[N]();I.length=0}finally{N._resolvePromise()}}}function K(N,I){"pending"===N.state&&(N.state="cancelled",N._listeners.length=0,N.promise.catch(z),N._rejectPromise(I))}},98503:(N,I,T)=>{"use strict";T.d(I,{m:()=>q});var P=T(37876);let D=(N,I,T,P)=>[{condition:N,icon:"location",value:N},{condition:I,icon:"salary",value:I},{condition:T,icon:"worker",value:T},{condition:P,icon:"job",value:P}].filter(N=>!!N.condition).map(({icon:N,value:I})=>({icon:N,value:I}));var M=T(14232),R=T(8496);let L=({region:N,language:I})=>{let[T,P]=(0,M.useState)("");return(0,M.useEffect)(()=>{(async N=>N?(0,R.f)(N,I??"en").then(N=>N?.[0]?.text?.value??""):"")(N??"").then(P)},[N,I]),{region:T}};var $=T(10409),F=T(56375),B=T(6807),U=T(48230),H=T.n(U),z=T(90078),W=T(66419);let q=N=>{let{region:I}=L({region:N?.region,language:N?.language}),T={Country:N?.countryName,City:N?.city,Region:I},M=(0,z.B)(T,N?.locationDetail),R=(0,W.y6)(N?.totalYearsOfExperience),U=D(M,N?.salary,N?.educationLevel,R);return(0,P.jsxs)(H(),{href:`/jobs/${N?.url}`,target:"_blank",className:"group flex flex-col gap-5 rounded-sm border border-accent-iron bg-white p-6 shadow-search-card hover:border-brunel-dark-grey hover:bg-accent-spring-wood focus:outline-2 focus:outline-brunel-dark-grey focus:outline-dashed",tabIndex:0,prefetch:!1,children:[(0,P.jsx)(B.o,{className:"mb-0! line-clamp-2 overflow-hidden font-medium! group-hover:brunel-underline-3-brunel-dark-grey md:text-xl",type:"h3",plainText:N?.title??""}),(0,P.jsx)($.a,{className:"grid grid-flow-row grid-cols-1 gap-x-4 gap-y-2 md:grid-cols-2 [&>div>p]:line-clamp-1 [&>div>p]:text-ui-grey",children:U.map(({icon:N,value:I})=>(0,P.jsxs)($.a,{className:"flex gap-1",children:[(0,P.jsx)(F.I,{color:"ui-grey",name:N,size:"small"}),(0,P.jsx)(B.o,{type:"small",className:"leading-5",plainText:I})]},N))}),(0,P.jsx)(B.o,{className:"line-clamp-3 lg:line-clamp-2",type:"medium",parseText:!0,plainText:N?.description?.removeHTML()})]})}},98566:(N,I,T)=>{"use strict";T.d(I,{up:()=>D,ju:()=>H,K_:()=>q,BB:()=>M});var P=T(14e3);let D=N=>new URLSearchParams([...N??[]].map(([N,I])=>[N.toLowerCase(),I])),M=()=>{let N=D((0,P.useSearchParams)());return{getParam:(I,T)=>{let P=N.get(I.toLowerCase());return P?`${T?.addToQuery?T?.isFirst?`${I}=`:`&${I}=`:""}${P}`:null}}};var R=T(14232),L=T(67881),$=T(42135),F=T(62467),B=T(85728),U=T(65212);let H=({userID:N,userRoles:I,initialValue:T,session:P,dictionary:D})=>{let{setLoading:M,setToast:H}=(0,R.useContext)(B._t),[z,W]=(0,R.useState)(!1),[q,G]=(0,R.useState)([]),[K,V]=(0,R.useState)(null),[Y,J]=(0,R.useState)(T??[]),[Q,Z]=(0,R.useState)([]),[X,ee]=(0,R.useState)(!1),et={0:D?.["applicant-portal-proficiency-not-specified"]??"[Not Specified]",14357e4:D?.["applicant-portal-proficiency-beginner"]??"[Beginner]",0x88eb451:D?.["applicant-portal-proficiency-working"]??"[Working]",0x88eb452:D?.["applicant-portal-proficiency-good"]??"[Good]",0x88eb453:D?.["applicant-portal-proficiency-expert"]??"[Expert]"},er={14357e4:D?.["applicant-portal-proficiency-months"]??"[Months]",0x88eb451:D?.["applicant-portal-proficiency-years"]??"[Years]"},en=(0,$._6)(N=>{N.length>=3?(W(!0),F.U.getSkills({keyword:N,bearerToken:P?.user?.accessToken??""}).then(N=>{let I=N.filter(N=>!T?.some(I=>I.name===N.name));G(I.length>0?I:N)}).catch(N=>{U.A.api("Error fetching skills in useCandidateSkills hook:",N)}).finally(()=>W(!1))):G([])},300),ea=T=>(M({isLoading:!0,messages:[D?.["message-updating"]??"Message Updating"]}),F.U.updateMercuryData({body:{...T,educations:[],workExperiences:[],skillLevels:Q},bearerToken:P?.user?.accessToken??""}).then(T=>T?.status==="OK"&&(H({type:"success",open:!0,data:{title:D?.["message-success"]??"[Success]",message:D?.["message-update-mercury-success"]??"Update Success"}}),L.q.applicantPortal.completeApplicantPortalForm("Competence",N,I),Z([]),!0)).catch(N=>(U.A.api("Error uploading skills in useCandidateSkills hook:",N),H({type:"error",open:!0,data:{title:D?.["message-error"]??"[Error]",message:D?.["message-update-mercury-error"]??"
1401Update Error"}}),!1)).finally(()=>M({isLoading:!1,messages:[]}))),ei=(N,I)=>(M({isLoading:!0,messages:[D?.["message-updating"]??"Message Updating"]}),F.U.deleteSkills({mercuryId:N.mercuryId??"",candidateId:I,bearerToken:P?.user?.accessToken??""}).then(I=>"OK"===I.status&&(H({type:"success",open:!0,data:{title:D?.[""]??"[Success]",message:D?.["message-update-mercury-success"]??"Update Success"}}),J(I=>I.filter(I=>I.mercuryId!==N.mercuryId)),!0)).catch(N=>(U.A.api("Error deleting skill in useCandidateSkills hook:",N),H({type:"error",open:!0,data:{title:D?.["message-error"]??"[Error]",message:D?.["message-update-mercury-error"]??"Update Error"}}),!1)).finally(()=>M({isLoading:!1,messages:[]}))),eo=(0,R.useMemo)(()=>q.map(N=>({label:N?.name??"",value:N?.mercuryId??""})),[q]),es=(0,R.useMemo)(()=>Y.reduce((N,I)=>{let T=I.proficiency??0;return N[T]||(N[T]=[]),N[T].push(I),N},{}),[Y]),el=()=>{if(K){let N=[...Q,K];J([...Y,...N]),Z(N),V(null)}},ec=N=>{K&&V({name:K?.name,proficiency:Number(N),experience:0,experiencePeriod:14357e4,skill:K})};return{isLoading:z,skills:q,searchSkills:en,selectedSkill:K,saveSkills:ea,deleteSkill:ei,skillsAsFormSearchSelectData:eo,candidateSkills:Y,groupedSkills:es,selectCandidateSkill:N=>{V(N)},unselectCandidateSkill:()=>{V(null)},addCandidateSkill:el,updateCandidateSkill:ec,openAddCandidateSkills:X,setOpenAddCandidateSkills:ee,proficiencyToNameMap:et,experiencePeroidToNameMap:er}};var z=T(89099),W=T(2650);let q=()=>{let N=(0,W.s9)(),{locale:I}=(0,z.useRouter)();return N.table(I??"en")??{}}},98741:(N,I,T)=>{"use strict";T.d(I,{O:()=>R});var P=T(14232),D=T(35122);let M=N=>{let I=JSON.stringify(N.metadata),T={type:"text/sitecore",chrometype:"field",className:"scpm"},M=Object.assign(Object.assign({},T),{kind:D.mV.Open}),R=Object.assign(Object.assign({},T),{kind:D.mV.Close});return P.createElement(P.Fragment,null,P.createElement("code",Object.assign({},M),I),N.children,P.createElement("code",Object.assign({},R)))};function R(N,I=!1){return I?I=>{var T;let{editable:D=!0}=I,R=null==(T=I.field)?void 0:T.metadata;return R&&D?P.createElement(M,{metadata:R},P.createElement(N,Object.assign({},I))):P.createElement(N,Object.assign({},I))}:I=>{var T;let{editable:D=!0}=I,R=null==(T=I.field)?void 0:T.metadata;return R&&D?P.createElement(M,{metadata:R},P.createElement(N,Object.assign({},I))):P.createElement(N,Object.assign({},I))}}M.displayName="FieldMetadata"},98877:(N,I,T)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var P={};Object.defineProperty(I,"default",{enumerable:!0,get:function(){return M.default}});var D=T(62794);Object.keys(D).forEach(function(N){"default"===N||"__esModule"===N||Object.prototype.hasOwnProperty.call(P,N)||N in I&&I[N]===D[N]||Object.defineProperty(I,N,{enumerable:!0,get:function(){return D[N]}})});var M=L(T(73317));function R(N){if("function"!=typeof WeakMap)return null;var I=new WeakMap,T=new WeakMap;return(R=function(N){return N?T:I})(N)}function L(N,I){if(!I&&N&&N.__esModule)return N;if(null===N||"object"!=typeof N&&"function"!=typeof N)return{default:N};var T=R(I);if(T&&T.has(N))return T.get(N);var P={__proto__:null},D=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in N)if("default"!==M&&({}).hasOwnProperty.call(N,M)){var L=D?Object.getOwnPropertyDescriptor(N,M):null;L&&(L.get||L.set)?Object.defineProperty(P,M,L):P[M]=N[M]}return P.default=N,T&&T.set(N,P),P}Object.keys(M).forEach(function(N){"default"===N||"__esModule"===N||Object.prototype.hasOwnProperty.call(P,N)||N in I&&I[N]===M[N]||Object.defineProperty(I,N,{enumerable:!0,get:function(){return M[N]}})})},98905:(N,I,T)=>{"use strict";T.r(I),T.d(I,{resolveInitialSearchBarData:()=>M,resolveJobsSearchPath:()=>R});var P=T(60409),D=T(98176);let M=N=>({keyword:"",location:"",distance:N?.distances?.defaultValue?.toString()??"0",distanceUnit:N?.distances?.defaultUnit??"km",clicked:!1}),R=(N,I)=>{let{keyword:T,location:M,distance:R,distanceUnit:L}=I,$=N?.split("-")?.[0]??P.Xn,F=D.TT[$].value,B=`/${N}/jobs`;return""!==T&&(B+=`/${F}/${T.toSlug()}`),""!==M&&(B+=`/${M.replaceAll(" ","-")}-${R}${L}`),encodeURI(B.toLowerCase())}},99210:(N,I,T)=>{"use strict";T.d(I,{b:()=>H});var P=T(71947),D=T(40908),M=T(19996),R=T(51952),L=T(71523);let $={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},F={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},B={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},U={date:(0,L.k)({formats:$,defaultWidth:"full"}),time:(0,L.k)({formats:F,defaultWidth:"full"}),dateTime:(0,L.k)({formats:B,defaultWidth:"full"})},H={code:"en-GB",formatDistance:P.B,formatLong:U,formatRelative:D.o,localize:M.k,match:R.Y,options:{weekStartsOn:1,firstWeekContainsDate:4}}},99230:(N,I,T)=>{"use strict";function P(){throw Object.defineProperty(Error("`forbidden()` is experimental and only allowed to be enabled when `experimental.authInterrupts` is enabled."),"__NEXT_ERROR_CODE",{value:"E488",enumerable:!1,
1401configurable:!0})}Object.defineProperty(I,"__esModule",{value:!0}),Object.defineProperty(I,"forbidden",{enumerable:!0,get:function(){return P}}),T(64494).HTTP_ERROR_FALLBACK_ERROR_CODE,("function"==typeof I.default||"object"==typeof I.default&&null!==I.default)&&void 0===I.default.__esModule&&(Object.defineProperty(I.default,"__esModule",{value:!0}),Object.assign(I.default,I),N.exports=I.default)},99514:(N,I,T)=>{"use strict";T.d(I,{f:()=>L});var P=T(14232),D=T(73813),M=T(35122),R=T(55333);let L=({rendering:N,placeholderName:I,children:T,componentRuntime:L})=>{let $=({kind:I,id:T,placeholderName:P})=>{var $;let F=P?"placeholder":"rendering",B={type:"text/sitecore",chrometype:F,className:"scpm",kind:I};if(I===M.mV.Open){if("placeholder"===F&&P){let I="";for(let M of Object.keys(null!=($=N.placeholders)?$:{})){if(P===M){I=T?`${P}_${T}`:`${P}_${R.fF}`;break}if((0,D.Np)(M)&&(0,D.jz)(M).test(P)){I=T?`${M}_${T}`:`${M}_${R.fF}`;break}}B.id=I}else B.id=T;"rendering"===F&&L&&(B["data-csdk-component-runtime"]=L)}return B};return P.createElement(P.Fragment,null,P.createElement("code",Object.assign({suppressHydrationWarning:!0},$({kind:M.mV.Open,id:N.uid,placeholderName:I}))),T,P.createElement("code",Object.assign({suppressHydrationWarning:!0},$({kind:M.mV.Close,placeholderName:I}))))}},99604:(N,I,T)=>{"use strict";T.r(I),T.d(I,{TextWithIconLeft:()=>U,TextWithIconRight:()=>H});var P=T(37876),D=T(63366),M=T(27400),R=T(79517),L=T(36379);let $=` 1402 items-center md:h-auto mb-6 1403 text-brunel-dark-grey text-base 1404 lg:border border-solid border-accent-iron 1405`,F=({rendering:N,params:I,fields:T})=>{let P=N?.fields??T,D=N?.params??I,M=(0,L.Qh)(D?.Styles),$=M?M.split(/\s+/).filter(Boolean):[],F=$.includes(R.rG.ICON_LEFT)?"left":$.includes(R.rG.ICON_RIGHT)?"right":void 0;return{fields:P,id:D?.RenderingIdentifier,textWithTitle:P?.textWithTitle,textWithText:P?.textWithText,textWithIcon:P?.textWithIcon,textWithButtonLink:P?.textWithButtonLink,ctaIcon:D?.ButtonIcon,ctaIconPosition:F}},B=({imagePosition:N,editorTitle:I,rendering:T,params:R,fields:L,...B})=>{let{fields:U,id:H,textWithTitle:z,textWithText:W,textWithIcon:q,textWithButtonLink:G,ctaIcon:K,ctaIconPosition:V}=F({rendering:T,params:R,fields:L});return U&&0!==Object.keys(U).length?(0,P.jsx)(D.az,{id:H||void 0,className:$,...B,children:(0,P.jsx)(D.oM,{title:z??{value:""},description:W,icon:q,buttonLink:G,buttonIcon:K,buttonIconPosition:V,imagePosition:N})}):(0,P.jsx)(M.$,{id:H??"",title:I,msg:"Please add a title, text, and icon using the toolbar."})},U=N=>(0,P.jsx)(B,{...N,imagePosition:"left",editorTitle:"TextWithIconLeft"}),H=N=>(0,P.jsx)(B,{...N,imagePosition:"right",editorTitle:"TextWithIconRight"});U.displayName="TextWithIconLeft",H.displayName="TextWithIconRight"},99738:(N,I)=>{"use strict";async function T({options:N,paramValue:I,cookieValue:P}){let{url:D,callbacks:M}=N,R=D.origin;return I?R=await M.redirect({url:I,baseUrl:D.origin}):P&&(R=await M.redirect({url:P,baseUrl:D.origin})),{callbackUrl:R,callbackUrlCookie:R!==P?R:void 0}}Object.defineProperty(I,"__esModule",{value:!0}),I.createCallbackUrl=T},99838:N=>{N.exports=function(N){if(Array.isArray(N))return N},N.exports.__esModule=!0,N.exports.default=N.exports},99991:(N,I,T)=>{"use strict";T.r(I),T.d(I,{useAccordionContent:()=>M});var P=T(65493),D=T(14232);let M=()=>{let[N,I]=(0,D.useState)(null),T=(0,D.useRef)(72);(0,D.useEffect)(()=>{let N=()=>{let N=window.location.hash,T=N.startsWith("#")?document.getElementById(N.slice(1)):null;T&&I(T.id)};return T.current=(0,P.resolveScrollMarginTop)(window.location.href),window.addEventListener("hashchange",N),N(),()=>{window.removeEventListener("hashchange",N)}},[]);let M=T=>{I(N===T?null:T)};return{activeItemID:N,handleToggleClick:M,scrollMarginTop:T}}}},N=>{var I=I=>N(N.s=I);N.O(0,[593,792],()=>(I(92),I(71745))),_N_E=N.O()}]);
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.