\n \n\n'},recaptcha_v2:function(){return'
'},recaptcha_enterprise:function(){return''},error:function(){return'Error getting the bot detection challenge. Please contact the system administrator.
'}}};function kr(e){switch(e){case"recaptcha_v2":return window.grecaptcha;case"recaptcha_enterprise":return window.grecaptcha.enterprise;default:throw new Error("Unknown captcha provider")}}function Or(){return new Date}function Rr(e){sn.check(e,{type:"object",message:"options parameter is not valid"},{domain:{type:"string",message:"domain option is required"},clientID:{type:"string",message:"clientID option is required"},responseType:{optional:!0,type:"string",message:"responseType is not valid"},responseMode:{optional:!0,type:"string",message:"responseMode is not valid"},redirectUri:{optional:!0,type:"string",message:"redirectUri is not valid"},scope:{optional:!0,type:"string",message:"scope is not valid"},audience:{optional:!0,type:"string",message:"audience is not valid"},popupOrigin:{optional:!0,type:"string",message:"popupOrigin is not valid"},leeway:{optional:!0,type:"number",message:"leeway is not valid"},plugins:{optional:!0,type:"array",message:"plugins is not valid"},maxAge:{optional:!0,type:"number",message:"maxAge is not valid"},stateExpiration:{optional:!0,type:"number",message:"stateExpiration is not valid"},legacySameSiteCookie:{optional:!0,type:"boolean",message:"legacySameSiteCookie option is not valid"},_disableDeprecationWarnings:{optional:!0,type:"boolean",message:"_disableDeprecationWarnings option is not valid"},_sendTelemetry:{optional:!0,type:"boolean",message:"_sendTelemetry option is not valid"},_telemetryInfo:{optional:!0,type:"object",message:"_telemetryInfo option is not valid"},_timesToRetryFailedRequests:{optional:!0,type:"number",message:"_timesToRetryFailedRequests option is not valid"}}),e.overrides&&sn.check(e.overrides,{type:"object",message:"overrides option is not valid"},{__tenant:{optional:!0,type:"string",message:"__tenant option is required"},__token_issuer:{optional:!0,type:"string",message:"__token_issuer option is required"},__jwks_uri:{optional:!0,type:"string",message:"__jwks_uri is required"}}),this.baseOptions=e,this.baseOptions.plugins=new ur(this,this.baseOptions.plugins||[]),this.baseOptions._sendTelemetry=!1!==this.baseOptions._sendTelemetry||this.baseOptions._sendTelemetry,this.baseOptions._timesToRetryFailedRequests=e._timesToRetryFailedRequests?parseInt(e._timesToRetryFailedRequests):0,this.baseOptions.tenant=this.baseOptions.overrides&&this.baseOptions.overrides.__tenant||this.baseOptions.domain.split(".")[0],this.baseOptions.token_issuer=this.baseOptions.overrides&&this.baseOptions.overrides.__token_issuer||"https://"+this.baseOptions.domain+"/",this.baseOptions.jwksURI=this.baseOptions.overrides&&this.baseOptions.overrides.__jwks_uri,!1!==e.legacySameSiteCookie&&(this.baseOptions.legacySameSiteCookie=!0),this.transactionManager=new dr(this.baseOptions),this.client=new Cr(this.baseOptions),this.redirect=new yr(this,this.baseOptions),this.popup=new br(this,this.baseOptions),this.crossOriginAuthentication=new hr(this,this.baseOptions),this.webMessageHandler=new fr(this),this._universalLogin=new Er(this,this.baseOptions),this.ssodataStorage=new Rn(this.baseOptions)}function Ir(e,t){this.baseOptions=t,this.request=e}function Ar(e,t){this.baseOptions=t,this.request=e}function Cr(e,t){2===arguments.length?this.auth0=e:t=e,sn.check(t,{type:"object",message:"options parameter is not valid"},{domain:{type:"string",message:"domain option is required"},clientID:{type:"string",message:"clientID option is required"},responseType:{optional:!0,type:"string",message:"responseType is not valid"},responseMode:{optional:!0,type:"string",message:"responseMode is not valid"},redirectUri:{optional:!0,type:"string",message:"redirectUri is not valid"},scope:{optional:!0,type:"string",message:"scope is not valid"},audience:{optional:!0,type:"string",message:"audience is not valid"},_disableDeprecationWarnings:{optional:!0,type:"boolean",message:"_disableDeprecationWarnings option is not valid"},_sendTelemetry:{optional:!0,type:"boolean",message:"_sendTelemetry option is not valid"},_telemetryInfo:{optional:!0,type:"object",message:"_telemetryInfo option is not valid"}}),this.baseOptions=t,this.baseOptions._sendTelemetry=!1!==this.baseOptions._sendTelemetry||this.baseOptions._sendTelemetry,this.baseOptions.rootUrl=this.baseOptions.domain&&0===this.baseOptions.domain.toLowerCase().indexOf("http")?this.baseOptions.domain:"https://"+this.baseOptions.domain,this.request=new gn(this.baseOptions),this.passwordless=new Ir(this.request,this.baseOptions),this.dbConnection=new Ar(this.request,this.baseOptions),this.warn=new Tn({disableWarnings:!!t._disableDeprecationWarnings}),this.ssodataStorage=new Rn(this.baseOptions)}function xr(){return(0,L.jsx)("svg",{className:"KeysGraphic",width:"499",height:"516",viewBox:"0 0 499 516",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,L.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M145.124 279.496C150.593 283.213 156.315 286.587 162.26 289.587C161.436 293.091 161 296.745 161 300.5C161 326.734 182.266 348 208.5 348L208.564 348L235.852 515.537L251.449 513.027L248.608 495.554L276.903 491.016L274.872 478.535L246.577 483.074L244.375 469.487L258.58 467.189L256.548 454.737L242.344 457.007L239.901 442.03L255.597 439.506L253.565 427.025L237.884 429.55L224.165 345.356C227.374 344.236 230.425 342.781 233.278 341.033C246.223 333.229 254.842 319.458 256.01 304.06C265.955 302.469 275.581 299.927 284.79 296.528L285.014 302.476L429.474 443.08L498.48 371.516L359.969 236.769C375.796 212.704 385 183.924 385 153C385 68.5004 316.276 0 231.5 0C146.724 0 78 68.5004 78 153C78 177.924 83.9791 201.456 94.5856 222.249C93.8238 222.419 93.0625 222.603 92.3011 222.8C75.6818 227.906 62.8977 243.123 61.4773 262.057C61.0227 268.07 61.7614 273.885 63.4659 279.274L64.0341 281.032L1.74716 336.06L0 358.822L20.9659 360.382L22.1023 345.122L34.4886 346.058L35.3693 334.627L45.8807 335.407L46.5909 325.905L58.1392 326.756L83.608 304.291L85.3125 305.142C90.0994 307.582 95.4403 309.113 101.122 309.539C120.855 311.015 138.789 297.549 145.124 279.496ZM174.07 267.776C169.053 273.053 165.236 279.483 163.058 286.628C157.154 283.618 151.477 280.231 146.057 276.499C146.758 273.923 147.224 271.27 147.429 268.566C149.276 244.073 131.449 222.885 107.798 221.098C104.351 220.85 100.986 221.088 97.6504 221.647C87.0083 201.076 81 177.737 81 153C81 70.1665 148.372 3 231.5 3C314.628 3 382 70.1665 382 153C382 183.107 373.1 211.143 357.778 234.638L353.963 230.926L282.301 230.558L284.671 293.371C275.551 296.804 266.009 299.38 256.143 300.999C256.162 299.349 256.094 297.684 255.937 296.009L255.497 292.719C251.264 266.765 226.918 249.108 201.151 253.264C190.337 254.999 180.981 260.298 174.07 267.776ZM115.5 274C125.717 274 134 265.717 134 255.5C134 245.283 125.717 237 115.5 237C105.283 237 97 245.283 97 255.5C97 265.717 105.283 274 115.5 274ZM238 300.5C238 316.792 224.792 330 208.5 330C192.208 330 179 316.792 179 300.5C179 284.208 192.208 271 208.5 271C224.792 271 238 284.208 238 300.5ZM327 293C337.493 293 346 284.493 346 274C346 263.507 337.493 255 327 255C316.507 255 308 263.507 308 274C308 284.493 316.507 293 327 293Z",fill:"#ADB4BD",fillOpacity:"0.3"})})}function Nr(){return(0,L.jsxs)("svg",{width:"84",height:"21",viewBox:"0 0 84 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,L.jsx)("ellipse",{cx:"10.0446",cy:"10.682",rx:"10.0446",ry:"10",fill:"#D52E2B"}),(0,L.jsx)("ellipse",{cx:"22.0989",cy:"10.682",rx:"10.0446",ry:"10",fill:"#E8A140"}),(0,L.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.0721 18.6824C13.6324 16.858 12.0543 13.9533 12.0543 10.6817C12.0543 7.41027 13.6322 4.50575 16.0716 2.68131C18.5114 4.50573 20.0895 7.41041 20.0895 10.682C20.0895 13.9535 18.5116 16.858 16.0721 18.6824Z",fill:"#E9692C"}),(0,L.jsx)("path",{d:"M71.5065 4.99888C70.8141 4.72467 69.7158 4.42191 68.3577 4.42191C64.8908 4.42191 62.4495 6.26724 62.4345 8.90551C62.4057 10.852 64.1824 11.9332 65.5113 12.5822C66.8695 13.2454 67.3312 13.6783 67.3312 14.2694C67.3174 15.1773 66.2337 15.5958 65.223 15.5958C63.8213 15.5958 63.0703 15.3801 61.929 14.875L61.4668 14.6584L60.9755 17.7006C61.7989 18.0751 63.3159 18.4073 64.8908 18.4219C68.5745 18.4219 70.9726 16.6051 71.0011 13.7936C71.0151 12.2509 70.0769 11.0687 68.0542 10.1028C66.8263 9.48268 66.0744 9.06456 66.0744 8.43009C66.0888 7.8533 66.7104 7.26253 68.0965 7.26253C69.2378 7.23359 70.0763 7.50742 70.7116 7.78145L71.0291 7.92535L71.5065 4.99888Z",fill:"#151E68"}),(0,L.jsx)("path",{d:"M58.7805 18.2199H55.2698L57.4656 4.66753H60.9761L58.7805 18.2199Z",fill:"#151E68"}),(0,L.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M77.7895 4.66753H80.505L83.3372 18.2197H80.0867C80.0867 18.2197 79.7686 16.6626 79.6678 16.1868H75.1604C75.03 16.547 74.4236 18.2197 74.4236 18.2197H70.74L75.9546 5.79197C76.3159 4.91242 76.9521 4.66753 77.7895 4.66753ZM77.5731 9.62693C77.5731 9.62693 76.4606 12.6402 76.1715 13.4188H79.0896C78.9452 12.7412 78.2804 9.4972 78.2804 9.4972L78.035 8.32945C77.9317 8.63009 77.7824 9.0434 77.6816 9.32224C77.6133 9.51114 77.5673 9.63861 77.5731 9.62693Z",fill:"#151E68"}),(0,L.jsx)("path",{d:"M52.3381 4.66753L48.9 13.9089L48.5243 12.0347C48.5239 12.0331 48.5234 12.0315 48.5229 12.03L47.2955 5.80342C47.0933 4.93786 46.4721 4.69277 45.7065 4.66422H40.0582L40.0004 4.93805C41.378 5.28969 42.6102 5.79642 43.6899 6.42648L46.8198 18.2055H50.5322L56.0504 4.66753H52.3381Z",fill:"#151E68"})]})}function Pr(e){return e=e.children,(0,L.jsx)("div",{className:"Notice",children:(0,L.jsx)("p",{children:e})})}function Lr(e){var t=e.flip;return e=e.bolder,(0,L.jsx)("svg",{className:"".concat(t?"ArrowFlipped":""),width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:(0,L.jsx)("path",{d:"M10 5H1M1 5L4.6 1M1 5L4.6 9",stroke:"currentColor",strokeWidth:e?"1.66":"1.33"})})}function Dr(e){var t=e.includes("@clearhaus.com"),n=e.includes("@quickpay.net");return e=e.includes("@unzer.com"),t||n?"google":e?"microsoft":void 0}function jr(e){var n=(0,t.useRef)(),r=(s=a((0,t.useState)(!1),2))[0],o=s[1],i=Fr().auth0,s=(0,t.useCallback)((function(t,r){var a;o(!0),i.webAuth?i.webAuth.authorize({connection:"google"===(a=e)?"google-oauth2":"microsoft"===a?"microsoft-identity":void 0}):n.current=window.setTimeout((function(){o(!1),r("Login only available through the hosted page")}),500)}),[i,e]);return(0,t.useEffect)((function(){return function(){return clearTimeout(n.current)}}),[]),{handleSingleSignOn:s,loading:r}}Rr.prototype.parseHash=function(e,t){var n=(n=(void 0===(e=t||"function"!=typeof e?e||{}:(t=e,{})).hash?bn.getWindow().location:e).hash).replace(/^#?\/?/,"");if((n=function(e,t){var n=Rt;if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var r="string"==typeof e?function(e,t){var n,r,o,i,a={},s=(e=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,t.parameterLimit===1/0?void 0:t.parameterLimit),l=e.split(t.delimiter,s),u=-1,c=t.charset;if(t.charsetSentinel)for(n=0;n()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(c))return b(s,l.REGISTER_INVALID_EMAIL,e),!1;b(s,null,e)}if("password"===s&&(null==r||!r.includes("password"))){if(!c||0===c.length)return b(s,l.REGISTER_EMPTY_PASSWORD,e),!1;if(n){var p=u(c);if(d(p),"GOOD"!==p.humanizedScore&&"EXCELLENT"!==p.humanizedScore)return b(s,l.SET_NEW_PASSWORD_TOO_WEAK,e),!1;if(b(s,null,e),o.current.confirm_password&&c!==o.current.confirm_password.value)return b(s,l.REGISTER_NOT_MATCHING_PASSWORD,e),!1}else b(s,null,e)}if("confirm_password"===s&&(null==r||!r.includes("confirm_password"))){if(!c||0===c.length)return b(s,l.SET_NEW_PASSWORD_PASSWORD_CONFIRMATION_FIELD_ERROR,e),!1;if(c!==o.current.password.value)return b(s,l.REGISTER_NOT_MATCHING_PASSWORD,e),!1;b(s,null,e)}}return!0}),[b,u,l,n,r]),S=(0,t.useCallback)((function(e,t){y(e),o.current[e].value=t,p&&_(!0)}),[y,p,_]),E=(0,t.useMemo)((function(){return!Object.keys(i).length&&!h}),[i,h]),w=(0,t.useCallback)((function(t){t.preventDefault(),_()?(t=Object.entries(o.current).reduce((function(e,t){var n=(t=a(t,2))[0];return t=t[1],e[n]=t.value,e}),{}),null!=e&&e(t,m)):f(!0)}),[_,e,m]),T=(0,t.useCallback)((function(e){var t;return null==(t=o.current)||null==(t=t[e])?void 0:t.value}),[]),k=(0,t.useMemo)((function(){var e=h||Object.values(i).find((function(e){return e.length}));return(0,L.jsx)("div",{className:"Error ".concat(p&&e?"Show":""),children:e})}),[p,h,i]);return{handleSubmit:w,onFieldKeyUp:g,onFieldChange:S,shouldDisableSubmitButton:(0,t.useMemo)((function(){return!!p&&!!Object.values(i).find((function(e){return e.length}))}),[p,i]),getFieldValue:T,setRequestError:m,errors:i,formErrorNode:k,onFieldMounted:v,passwordScore:c,isFormValid:E}}function Zr(e){e=e.setShouldShowForget;var t=z().i18n;return(0,L.jsxs)(D,{grow:!0,children:[(0,L.jsxs)(Br,{children:[(0,L.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:20},children:[(0,L.jsx)(Wr,{}),(0,L.jsx)(eo,{})]}),(0,L.jsxs)(Hr,{children:[(0,L.jsx)(M,{size:"l",children:t.MAIN_TITLE}),(0,L.jsx)(j,{height:15}),(0,L.jsx)(M,{size:"m",children:t.MAIN_INTRO}),(0,L.jsx)(j,{height:30}),(0,L.jsx)(Jr,{setShouldShowForget:e})]}),(0,L.jsxs)(D,{column:!0,align:"stretch",children:[(0,L.jsxs)(D,{align:"center",justify:"space-between",children:[(0,L.jsx)(M,{size:"s",children:t.LOGIN_NO_ACCOUNT}),(0,L.jsx)(qr,{})]}),(0,L.jsx)(zr,{isMobile:!0})]})]}),(0,L.jsx)(Gr,{})]})}var Jr=function(e){var n=e.setShouldShowForget,r=(e=z().i18n,(i=a((0,t.useState)(),2))[0]),o=i[1],i=function(e){var n,r,o,i,s=(h=a((0,t.useState)(!1),2))[0],l=h[1];n=(0,t.useRef)(),u=(h=a((0,t.useState)(!1),2))[0],r=h[1],o=z().i18n,i=Fr().auth0,h=(0,t.useCallback)((function(e,t){var a,s=e.email;e=e.password,r(!0),i.webAuth?i.webAuth.login({realm:null==(a=i.staticConfig)?void 0:a.DB,username:s,password:e},(function(e){e&&("invalid_user_password"===e.code?t(o.LOGIN_UNAUTHORIZED):t(o.LOGIN_OTHER_ERROR+"«".concat(e.description,"»"))),r(!1)})):n.current=window.setTimeout((function(){r(!1),t("Login only available through the hosted page")}),500)}),[i,o]),(0,t.useEffect)((function(){return function(){return clearTimeout(n.current)}}),[]);var u=(h={handleLogin:h,loading:u}).handleLogin,c=h.loading,d=(h=jr(e)).handleSingleSignOn,p=h.loading,f=(d=(h=Xr(e?d:u,!1,e?["password"]:[])).onFieldChange,u=h.errors,e=h.formErrorNode,h.onFieldMounted),h=h.handleSubmit;return(0,t.useEffect)((function(){l(!(!c&&!p))}),[c,p]),{loading:s,errors:u,formErrorNode:e,onFieldChange:d,onFieldMounted:f,handleSubmit:h}}(r),s=i.loading,l=i.onFieldChange,u=i.errors,c=i.formErrorNode,d=i.onFieldMounted,p=i.handleSubmit;return(0,L.jsxs)("form",{onSubmit:function(e){e.preventDefault(),p(e)},noValidate:!0,children:[(0,L.jsx)(Qr,{onChange:function(e,t){var n=Dr(t);o(n),l(e,t)},label:e.LOGIN_EMAIL_LABEL,autoComplete:"username",onFieldMounted:d,type:"email",focusOnMount:!0,hasError:!!u.email,name:"email"}),(0,L.jsx)(j,{height:10}),!r&&(0,L.jsx)(Qr,{name:"password",label:e.LOGIN_PASSWORD_LABEL,type:"password",autoComplete:"current-password",hasError:!!u.password,onChange:l,onFieldMounted:d}),r&&(0,L.jsx)(Pr,{children:e.SINGLE_SIGN_ON_NOTICE_SIGNIN}),(0,L.jsx)(j,{height:8}),c,(0,L.jsx)(j,{height:20}),(0,L.jsxs)(D,{justify:r?"flex-end":"space-between",children:[!r&&(0,L.jsx)($r,{onClick:function(){n(!0)},label:e.LOGIN_FORGOT}),(0,L.jsx)(Kr,{label:e.LOGIN_LABEL,showArrow:!0,loading:s})]})]})},eo=function(){var e=z().i18n;return(0,L.jsxs)("div",{style:{border:"solid 2px #CED9F7",borderRadius:"6px",padding:"12px",background:"#EEF2FE",display:"flex",gap:"8px",alignItems:"start"},children:[(0,L.jsx)("div",{style:{marginTop:2},children:(0,L.jsxs)("svg",{fill:"#b7c5ed",version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"14px",height:"14px",viewBox:"0 0 45.818 45.818",xmlSpace:"preserve",children:[(0,L.jsx)("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),(0,L.jsx)("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),(0,L.jsxs)("g",{id:"SVGRepo_iconCarrier",children:[" ",(0,L.jsxs)("g",{children:[" ",(0,L.jsx)("path",{d:"M22.909,0C10.258,0,0,10.257,0,22.908c0,12.652,10.258,22.91,22.909,22.91s22.909-10.258,22.909-22.91 C45.818,10.257,35.561,0,22.909,0z M26.411,35.417c0,1.921-1.573,3.478-3.492,3.478c-1.92,0-3.492-1.557-3.492-3.478V20.201 c0-1.92,1.572-3.477,3.492-3.477c1.919,0,3.492,1.556,3.492,3.477V35.417z M22.909,13.851c-2.119,0-3.837-1.718-3.837-3.836 c0-2.12,1.718-3.836,3.837-3.836c2.118,0,3.837,1.716,3.837,3.836C26.746,12.133,25.027,13.851,22.909,13.851z"})," "]})," "]})]})}),(0,L.jsxs)("div",{children:[(0,L.jsx)("div",{className:"Text",style:{marginBottom:5,fontWeight:200},children:e.PasskeyBannerTitle}),(0,L.jsx)("div",{className:"Text s",style:{fontWeight:100,lineHeight:"17px"},children:e.PasskeyBannerBody})]})]})},to=function(e){var t=e.children;return e=e.maxWidth,(0,L.jsx)("div",{className:"Card",style:{maxWidth:e},children:t})},no=function(e){e=e.score;var t,n=z().i18n;return(0,L.jsxs)(D,{column:!0,align:"stretch",children:[(0,L.jsxs)(D,{justify:"space-between",children:[(0,L.jsx)(M,{size:"s",subtle:!0,children:n.PASSWORD_STRENGTH}),(0,L.jsx)("div",{className:"ColorByLevel ".concat(null==(t=e.humanizedScore)?void 0:t.toUpperCase()),children:(0,L.jsx)(M,{size:"s",currentColor:!0,children:n["PASSWORD_LEVEL_".concat(null==(t=e.humanizedScore)?void 0:t.toUpperCase())]||"·"})})]}),(0,L.jsx)(j,{height:7}),(0,L.jsx)("div",{className:"ColorByLevel ".concat(null==(n=e.humanizedScore)?void 0:n.toUpperCase()),children:(0,L.jsx)("div",{className:"PasswordBar",children:(0,L.jsx)("div",{className:"PasswordFill",style:{width:"".concat(100*e.scoreAsFraction,"%")}})})})]})};function ro(e){return(ro="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oo(){oo=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=(f="function"==typeof Symbol?Symbol:{}).iterator||"@@iterator",o=f.asyncIterator||"@@asyncIterator",i=f.toStringTag||"@@toStringTag";function a(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{a({},"")}catch(t){a=function(e,t,n){return e[t]=n}}function s(e,t,n,r){var o,i,a,s;return t=t&&t.prototype instanceof c?t:c,t=Object.create(t.prototype),r=new _(r||[]),t._invoke=(o=e,i=n,a=r,s="suspendedStart",function(e,t){if("executing"===s)throw new Error("Generator is already running");if("completed"===s){if("throw"===e)throw t;return{value:void 0,done:!0}}for(a.method=e,a.arg=t;;){var n=a.delegate;if(n&&(n=function e(t,n){var r=t.iterator[n.method];if(void 0===r){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=void 0,e(t,n),"throw"===n.method))return u;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}return"throw"===(r=l(r,t.iterator,n.arg)).type?(n.method="throw",n.arg=r.arg,n.delegate=null,u):(r=r.arg)?r.done?(n[t.resultName]=r.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,u):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,u)}(n,a),n)){if(n===u)continue;return n}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===s)throw s="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);if(s="executing","normal"===(n=l(o,i,a)).type){if(s=a.done?"completed":"suspendedYield",n.arg===u)continue;return{value:n.arg,done:a.done}}"throw"===n.type&&(s="completed",a.method="throw",a.arg=n.arg)}}),t}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var u={};function c(){}function d(){}function p(){}var f,h,m=(a(f={},r,(function(){return this})),(h=(h=Object.getPrototypeOf)&&h(h(S([]))))&&h!==t&&n.call(h,r)&&(f=h),p.prototype=c.prototype=Object.create(f));function y(e){["next","throw","return"].forEach((function(t){a(e,t,(function(e){return this._invoke(t,e)}))}))}function g(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,s){var u;if("throw"!==(o=l(e[o],e,i)).type)return(i=(u=o.arg).value)&&"object"==ro(i)&&n.call(i,"__await")?t.resolve(i.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(i).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}));s(o.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function v(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function b(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(v,this),this.reset(!0)}function S(e){if(e){var t,o=e[r];if(o)return o.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return t=-1,(o=function r(){for(;++t