@flarehr/apollo-benefits-onboarding 1.55.90 → 1.58.93

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,2 +1 @@
1
- /*! For license information please see benefits-onboarding.js.LICENSE.txt */
2
- (()=>{var e={669:(e,t,n)=>{e.exports=n(609)},448:(e,t,n)=>{"use strict";var r=n(867),o=n(26),i=n(372),a=n(327),l=n(97),s=n(109),c=n(985),u=n(874),f=n(648),d=n(644),p=n(205);e.exports=function(e){return new Promise((function(t,n){var h,m=e.data,y=e.headers,v=e.responseType;function g(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}r.isFormData(m)&&r.isStandardBrowserEnv()&&delete y["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var w=e.auth.username||"",_=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";y.Authorization="Basic "+btoa(w+":"+_)}var x=l(e.baseURL,e.url);function k(){if(b){var r="getAllResponseHeaders"in b?s(b.getAllResponseHeaders()):null,i={data:v&&"text"!==v&&"json"!==v?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b};o((function(e){t(e),g()}),(function(e){n(e),g()}),i),b=null}}if(b.open(e.method.toUpperCase(),a(x,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=k:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(k)},b.onabort=function(){b&&(n(new f("Request aborted",f.ECONNABORTED,e,b)),b=null)},b.onerror=function(){n(new f("Network Error",f.ERR_NETWORK,e,b,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||u;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new f(t,r.clarifyTimeoutError?f.ETIMEDOUT:f.ECONNABORTED,e,b)),b=null},r.isStandardBrowserEnv()){var O=(e.withCredentials||c(x))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;O&&(y[e.xsrfHeaderName]=O)}"setRequestHeader"in b&&r.forEach(y,(function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete y[t]:b.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),v&&"json"!==v&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function(e){b&&(n(!e||e&&e.type?new d:e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),m||(m=null);var E=p(x);E&&-1===["http","https","file"].indexOf(E)?n(new f("Unsupported protocol "+E+":",f.ERR_BAD_REQUEST,e)):b.send(m)}))}},609:(e,t,n)=>{"use strict";var r=n(867),o=n(849),i=n(321),a=n(185),l=function e(t){var n=new i(t),l=o(i.prototype.request,n);return r.extend(l,i.prototype,n),r.extend(l,n),l.create=function(n){return e(a(t,n))},l}(n(546));l.Axios=i,l.CanceledError=n(644),l.CancelToken=n(972),l.isCancel=n(502),l.VERSION=n(288).version,l.toFormData=n(675),l.AxiosError=n(648),l.Cancel=l.CanceledError,l.all=function(e){return Promise.all(e)},l.spread=n(713),l.isAxiosError=n(268),e.exports=l,e.exports.default=l},972:(e,t,n)=>{"use strict";var r=n(644);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},644:(e,t,n)=>{"use strict";var r=n(648);function o(e){r.call(this,null==e?"canceled":e,r.ERR_CANCELED),this.name="CanceledError"}n(867).inherits(o,r,{__CANCEL__:!0}),e.exports=o},502:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,n)=>{"use strict";var r=n(867),o=n(327),i=n(782),a=n(572),l=n(185),s=n(97),c=n(875),u=c.validators;function f(e){this.defaults=e,this.interceptors={request:new i,response:new i}}f.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=l(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&c.assertOptions(n,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var i,s=[];if(this.interceptors.response.forEach((function(e){s.push(e.fulfilled,e.rejected)})),!o){var f=[a,void 0];for(Array.prototype.unshift.apply(f,r),f=f.concat(s),i=Promise.resolve(t);f.length;)i=i.then(f.shift(),f.shift());return i}for(var d=t;r.length;){var p=r.shift(),h=r.shift();try{d=p(d)}catch(e){h(e);break}}try{i=a(d)}catch(e){return Promise.reject(e)}for(;s.length;)i=i.then(s.shift(),s.shift());return i},f.prototype.getUri=function(e){e=l(this.defaults,e);var t=s(e.baseURL,e.url);return o(t,e.params,e.paramsSerializer)},r.forEach(["delete","get","head","options"],(function(e){f.prototype[e]=function(t,n){return this.request(l(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(l(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}f.prototype[e]=t(),f.prototype[e+"Form"]=t(!0)})),e.exports=f},648:(e,t,n)=>{"use strict";var r=n(867);function o(e,t,n,r,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}r.inherits(o,Error,{toJSON:function(){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:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var i=o.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){a[e]={value:e}})),Object.defineProperties(o,a),Object.defineProperty(i,"isAxiosError",{value:!0}),o.from=function(e,t,n,a,l,s){var c=Object.create(i);return r.toFlatObject(e,c,(function(e){return e!==Error.prototype})),o.call(c,e.message,t,n,a,l),c.name=e.name,s&&Object.assign(c,s),c},e.exports=o},782:(e,t,n)=>{"use strict";var r=n(867);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},97:(e,t,n)=>{"use strict";var r=n(793),o=n(303);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},572:(e,t,n)=>{"use strict";var r=n(867),o=n(527),i=n(502),a=n(546),l=n(644);function s(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new l}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return s(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(s(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},185:(e,t,n)=>{"use strict";var r=n(867);e.exports=function(e,t){t=t||{};var n={};function o(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function i(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return o(void 0,t[e])}function l(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(void 0,t[n])}function s(n){return n in t?o(e[n],t[n]):n in e?o(void 0,e[n]):void 0}var c={url:a,method:a,data:a,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:s};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||i,o=t(e);r.isUndefined(o)&&t!==s||(n[e]=o)})),n}},26:(e,t,n)=>{"use strict";var r=n(648);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new r("Request failed with status code "+n.status,[r.ERR_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},527:(e,t,n)=>{"use strict";var r=n(867),o=n(546);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},546:(e,t,n)=>{"use strict";var r=n(867),o=n(16),i=n(648),a=n(874),l=n(675),s={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u,f={transitional:a,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(u=n(448)),u),transformRequest:[function(e,t){if(o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e))return e;if(r.isArrayBufferView(e))return e.buffer;if(r.isURLSearchParams(e))return c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,i=r.isObject(e),a=t&&t["Content-Type"];if((n=r.isFileList(e))||i&&"multipart/form-data"===a){var s=this.env&&this.env.FormData;return l(n?{"files[]":e}:e,s&&new s)}return i||"application/json"===a?(c(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(0,JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||f.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw i.from(e,i.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(623)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){f.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){f.headers[e]=r.merge(s)})),e.exports=f},874:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},288:e=>{e.exports={version:"0.27.2"}},849:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},327:(e,t,n)=>{"use strict";var r=n(867);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var l=e.indexOf("#");-1!==l&&(e=e.slice(0,l)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},372:(e,t,n)=>{"use strict";var r=n(867);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var l=[];l.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),r.isString(o)&&l.push("path="+o),r.isString(i)&&l.push("domain="+i),!0===a&&l.push("secure"),document.cookie=l.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},268:(e,t,n)=>{"use strict";var r=n(867);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},985:(e,t,n)=>{"use strict";var r=n(867);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},16:(e,t,n)=>{"use strict";var r=n(867);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},623:e=>{e.exports=null},109:(e,t,n)=>{"use strict";var r=n(867),o=["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"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},205:e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},675:(e,t,n)=>{"use strict";var r=n(867);e.exports=function(e,t){t=t||new FormData;var n=[];function o(e){return null===e?"":r.isDate(e)?e.toISOString():r.isArrayBuffer(e)||r.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(i,a){if(r.isPlainObject(i)||r.isArray(i)){if(-1!==n.indexOf(i))throw Error("Circular reference detected in "+a);n.push(i),r.forEach(i,(function(n,i){if(!r.isUndefined(n)){var l,s=a?a+"."+i:i;if(n&&!a&&"object"==typeof n)if(r.endsWith(i,"{}"))n=JSON.stringify(n);else if(r.endsWith(i,"[]")&&(l=r.toArray(n)))return void l.forEach((function(e){!r.isUndefined(e)&&t.append(s,o(e))}));e(n,s)}})),n.pop()}else t.append(a,o(i))}(e),t}},875:(e,t,n)=>{"use strict";var r=n(288).version,o=n(648),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={};i.transitional=function(e,t,n){function i(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,l){if(!1===e)throw new o(i(r," has been removed"+(t?" in "+t:"")),o.ERR_DEPRECATED);return t&&!a[r]&&(a[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,l)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var a=r[i],l=t[a];if(l){var s=e[a],c=void 0===s||l(s,a,e);if(!0!==c)throw new o("option "+a+" must be "+c,o.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new o("Unknown option "+a,o.ERR_BAD_OPTION)}},validators:i}},867:(e,t,n)=>{"use strict";var r,o=n(849),i=Object.prototype.toString,a=(r=Object.create(null),function(e){var t=i.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function l(e){return e=e.toLowerCase(),function(t){return a(t)===e}}function s(e){return Array.isArray(e)}function c(e){return void 0===e}var u=l("ArrayBuffer");function f(e){return null!==e&&"object"==typeof e}function d(e){if("object"!==a(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=l("Date"),h=l("File"),m=l("Blob"),y=l("FileList");function v(e){return"[object Function]"===i.call(e)}var g=l("URLSearchParams");function b(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),s(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var w,_=(w="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return w&&e instanceof w});e.exports={isArray:s,isArrayBuffer:u,isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||i.call(e)===t||v(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&u(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:f,isPlainObject:d,isUndefined:c,isDate:p,isFile:h,isBlob:m,isFunction:v,isStream:function(e){return f(e)&&v(e.pipe)},isURLSearchParams:g,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:b,merge:function e(){var t={};function n(n,r){d(t[r])&&d(n)?t[r]=e(t[r],n):d(n)?t[r]=e({},n):s(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)b(arguments[r],n);return t},extend:function(e,t,n){return b(t,(function(t,r){e[r]=n&&"function"==typeof t?o(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var r,o,i,a={};t=t||{};do{for(o=(r=Object.getOwnPropertyNames(e)).length;o-- >0;)a[i=r[o]]||(t[i]=e[i],a[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:l,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:_,isFileList:y}},383:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(81),o=n.n(r),i=n(645),a=n.n(i)()(o());a.push([e.id,'/*! tailwindcss v3.1.6 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;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;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}span a{color:var(--fl-color-primary)}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.static{position:static}.absolute{position:absolute}.relative{position:relative}.top-0{top:0}.left-0{left:0}.bottom-0{bottom:0}.right-0{right:0}.z-50{z-index:50}.my-auto{margin-bottom:auto;margin-top:auto}.mx-auto{margin-left:auto;margin-right:auto}.mx-2{margin-left:.5rem;margin-right:.5rem}.ml-3{margin-left:.75rem}.mt-20{margin-top:5rem}.mt-8{margin-top:2rem}.mt-3{margin-top:.75rem}.mt-6{margin-top:1.5rem}.mt-4{margin-top:1rem}.mt-2{margin-top:.5rem}.ml-1{margin-left:.25rem}.mt-5{margin-top:1.25rem}.mt-1{margin-top:.25rem}.mb-1{margin-bottom:.25rem}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-4{height:1rem}.h-10{height:2.5rem}.h-5{height:1.25rem}.h-\\[1\\.5rem\\]{height:1.5rem}.h-\\[1\\.25rem\\]{height:1.25rem}.h-full{height:100%}.h-8{height:2rem}.h-16{height:4rem}.h-7{height:1.75rem}.h-\\[90\\%\\]{height:90%}.w-full{width:100%}.w-4{width:1rem}.w-10{width:2.5rem}.w-5{width:1.25rem}.w-\\[2\\.75rem\\]{width:2.75rem}.w-\\[1\\.25rem\\]{width:1.25rem}.w-16{width:4rem}.w-7{width:1.75rem}.max-w-\\[59\\.5rem\\]{max-width:59.5rem}.max-w-\\[40rem\\]{max-width:40rem}.max-w-\\[30rem\\]{max-width:30rem}.max-w-full{max-width:100%}.shrink-0{flex-shrink:0}.translate-x-\\[1\\.25rem\\]{--tw-translate-x:1.25rem}.translate-x-0,.translate-x-\\[1\\.25rem\\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x:0px}.-translate-y-6{--tw-translate-y:-1.5rem}.-translate-y-6,.translate-y-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y:0px}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-3{gap:.75rem}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1.5rem*var(--tw-space-x-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.25rem*var(--tw-space-x-reverse))}.break-words{overflow-wrap:break-word}.rounded-md{border-radius:.375rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-0{border-width:0}.border-transparent{border-color:transparent}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.bg-primary-base{background-color:var(--fl-color-primary)}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity))}.fill-white{fill:#fff}.fill-gray-200{fill:#e5e7eb}.fill-primary-base{fill:var(--fl-color-primary)}.p-2{padding:.5rem}.p-4{padding:1rem}.px-px{padding-left:1px;padding-right:1px}.px-10{padding-left:2.5rem;padding-right:2.5rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-0\\.5{padding-bottom:.125rem;padding-top:.125rem}.py-0{padding-bottom:0;padding-top:0}.pt-6{padding-top:1.5rem}.pb-8{padding-bottom:2rem}.pl-3{padding-left:.75rem}.text-left{text-align:left}.text-center{text-align:center}.font-inter{font-family:Inter,sans-serif}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-bold{font-weight:700}.font-semibold{font-weight:600}.leading-5{line-height:1.25rem}.leading-8{line-height:2rem}.leading-7{line-height:1.75rem}.leading-6{line-height:1.5rem}.leading-none{line-height:1}.tracking-wide{letter-spacing:.025em}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-primary-base{color:var(--fl-color-primary)}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-rose-500{--tw-text-opacity:1;color:rgb(244 63 94/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.underline{-webkit-text-decoration-line:underline;text-decoration-line:underline}.accent-primary-base{accent-color:var(--fl-color-primary)}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-10{opacity:.1}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-none{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-0,.ring-2{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-gray-200{--tw-ring-opacity:1;--tw-ring-color:rgb(229 231 235/var(--tw-ring-opacity))}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,fill,stroke,-webkit-text-decoration-color;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,-webkit-text-decoration-color;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.delay-300{transition-delay:.3s}.duration-200{transition-duration:.2s}.duration-700{transition-duration:.7s}.duration-\\[600ms\\]{transition-duration:.6s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.hover\\:bg-primary-hover:hover{background-color:var(--fl-color-primary-hover)}.hover\\:bg-sky-50\\/50:hover{background-color:rgba(240,249,255,.5)}.hover\\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.hover\\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-primary-focus:focus{--tw-ring-color:var(--fl-color-primary-focus)}.focus\\:ring-gray-200:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(229 231 235/var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:ring-white:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(255 255 255/var(--tw-ring-opacity))}.focus-visible\\:ring-gray-500:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(107 114 128/var(--tw-ring-opacity))}.focus-visible\\:ring-opacity-75:focus-visible{--tw-ring-opacity:0.75}.disabled\\:cursor-text:disabled{cursor:text}.disabled\\:bg-gray-100:disabled{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.disabled\\:px-0:disabled{padding-left:0;padding-right:0}.disabled\\:text-gray-300:disabled{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.disabled\\:text-gray-600:disabled{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.disabled\\:opacity-75:disabled{opacity:.75}.disabled\\:hover\\:bg-transparent:hover:disabled{background-color:transparent}@media (min-width:768px){.md\\:mt-0{margin-top:0}.md\\:mt-14{margin-top:3.5rem}.md\\:mt-3{margin-top:.75rem}.md\\:mt-6{margin-top:1.5rem}.md\\:mt-11{margin-top:2.75rem}.md\\:block{display:block}.md\\:grid{display:grid}.md\\:hidden{display:none}.md\\:w-auto{width:auto}.md\\:w-\\[300px\\]{width:300px}.md\\:w-full{width:100%}.md\\:w-\\[240px\\]{width:240px}.md\\:max-w-\\[27\\.5rem\\]{max-width:27.5rem}.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:flex-row{flex-direction:row}.md\\:justify-between{justify-content:space-between}.md\\:p-6{padding:1.5rem}.md\\:py-24{padding-bottom:6rem;padding-top:6rem}.md\\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\\:text-lg{font-size:1.125rem;line-height:1.75rem}.md\\:leading-9{line-height:2.25rem}.md\\:leading-7{line-height:1.75rem}.md\\:transition-none{transition-property:none}}',""]);const l=a},645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var l=0;l<this.length;l++){var s=this[l][0];null!=s&&(a[s]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);r&&a[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},81:e=>{"use strict";e.exports=function(e){return e[1]}},856:function(e){e.exports=function(){"use strict";function e(t){return e="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(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(e,r,o){return n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,n,r){var o=[null];o.push.apply(o,n);var i=new(Function.bind.apply(e,o));return r&&t(i,r.prototype),i},n.apply(null,arguments)}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var l=Object.entries,s=Object.setPrototypeOf,c=Object.isFrozen,u=Object.getPrototypeOf,f=Object.getOwnPropertyDescriptor,d=Object.freeze,p=Object.seal,h=Object.create,m="undefined"!=typeof Reflect&&Reflect,y=m.apply,v=m.construct;y||(y=function(e,t,n){return e.apply(t,n)}),d||(d=function(e){return e}),p||(p=function(e){return e}),v||(v=function(e,t){return n(e,o(t))});var g,b=A(Array.prototype.forEach),w=A(Array.prototype.pop),_=A(Array.prototype.push),x=A(String.prototype.toLowerCase),k=A(String.prototype.toString),O=A(String.prototype.match),E=A(String.prototype.replace),N=A(String.prototype.indexOf),S=A(String.prototype.trim),C=A(RegExp.prototype.test),T=(g=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v(g,t)});function A(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return y(e,t,r)}}function R(e,t,n){n=n||x,s&&s(e,null);for(var r=t.length;r--;){var o=t[r];if("string"==typeof o){var i=n(o);i!==o&&(c(t)||(t[r]=i),o=i)}e[o]=!0}return e}function P(e){var t,n=h(null),o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=i(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,l=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){s=!0,a=e},f:function(){try{l||null==n.return||n.return()}finally{if(s)throw a}}}}(l(e));try{for(o.s();!(t=o.n()).done;){var a=r(t.value,2),s=a[0],c=a[1];n[s]=c}}catch(e){o.e(e)}finally{o.f()}return n}function j(e,t){for(;null!==e;){var n=f(e,t);if(n){if(n.get)return A(n.get);if("function"==typeof n.value)return A(n.value)}e=u(e)}return function(e){return console.warn("fallback value for",e),null}}var L=d(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),D=d(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),U=d(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),I=d(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),F=d(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),M=d(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),B=d(["#text"]),z=d(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),H=d(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),W=d(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),G=d(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),V=p(/\{\{[\w\W]*|[\w\W]*\}\}/gm),q=p(/<%[\w\W]*|[\w\W]*%>/gm),$=p(/\${[\w\W]*}/gm),Y=p(/^data-[\-\w.\u00B7-\uFFFF]/),J=p(/^aria-[\-\w]+$/),Z=p(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),K=p(/^(?:\w+script|data):/i),X=p(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Q=p(/^html$/i),ee=function(){return"undefined"==typeof window?null:window};return function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ee(),r=function(e){return t(e)};if(r.version="3.0.1",r.removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;var i=n.document,a=n.document,s=n.DocumentFragment,c=n.HTMLTemplateElement,u=n.Node,f=n.Element,p=n.NodeFilter,h=n.NamedNodeMap,m=void 0===h?n.NamedNodeMap||n.MozNamedAttrMap:h,y=n.HTMLFormElement,v=n.DOMParser,g=n.trustedTypes,A=f.prototype,te=j(A,"cloneNode"),ne=j(A,"nextSibling"),re=j(A,"childNodes"),oe=j(A,"parentNode");if("function"==typeof c){var ie=a.createElement("template");ie.content&&ie.content.ownerDocument&&(a=ie.content.ownerDocument)}var ae=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(r=n.currentScript.getAttribute(o));var i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}}(g,i),le=ae?ae.createHTML(""):"",se=a,ce=se.implementation,ue=se.createNodeIterator,fe=se.createDocumentFragment,de=se.getElementsByTagName,pe=i.importNode,he={};r.isSupported="function"==typeof l&&"function"==typeof oe&&ce&&void 0!==ce.createHTMLDocument;var me,ye,ve=V,ge=q,be=$,we=Y,_e=J,xe=K,ke=X,Oe=Z,Ee=null,Ne=R({},[].concat(o(L),o(D),o(U),o(F),o(B))),Se=null,Ce=R({},[].concat(o(z),o(H),o(W),o(G))),Te=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ae=null,Re=null,Pe=!0,je=!0,Le=!1,De=!0,Ue=!1,Ie=!1,Fe=!1,Me=!1,Be=!1,ze=!1,He=!1,We=!0,Ge=!1,Ve=!0,qe=!1,$e={},Ye=null,Je=R({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ze=null,Ke=R({},["audio","video","img","source","image","track"]),Xe=null,Qe=R({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),et="http://www.w3.org/1998/Math/MathML",tt="http://www.w3.org/2000/svg",nt="http://www.w3.org/1999/xhtml",rt=nt,ot=!1,it=null,at=R({},[et,tt,nt],k),lt=["application/xhtml+xml","text/html"],st=null,ct=a.createElement("form"),ut=function(e){return e instanceof RegExp||e instanceof Function},ft=function(t){st&&st===t||(t&&"object"===e(t)||(t={}),t=P(t),me=me=-1===lt.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,ye="application/xhtml+xml"===me?k:x,Ee="ALLOWED_TAGS"in t?R({},t.ALLOWED_TAGS,ye):Ne,Se="ALLOWED_ATTR"in t?R({},t.ALLOWED_ATTR,ye):Ce,it="ALLOWED_NAMESPACES"in t?R({},t.ALLOWED_NAMESPACES,k):at,Xe="ADD_URI_SAFE_ATTR"in t?R(P(Qe),t.ADD_URI_SAFE_ATTR,ye):Qe,Ze="ADD_DATA_URI_TAGS"in t?R(P(Ke),t.ADD_DATA_URI_TAGS,ye):Ke,Ye="FORBID_CONTENTS"in t?R({},t.FORBID_CONTENTS,ye):Je,Ae="FORBID_TAGS"in t?R({},t.FORBID_TAGS,ye):{},Re="FORBID_ATTR"in t?R({},t.FORBID_ATTR,ye):{},$e="USE_PROFILES"in t&&t.USE_PROFILES,Pe=!1!==t.ALLOW_ARIA_ATTR,je=!1!==t.ALLOW_DATA_ATTR,Le=t.ALLOW_UNKNOWN_PROTOCOLS||!1,De=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Ue=t.SAFE_FOR_TEMPLATES||!1,Ie=t.WHOLE_DOCUMENT||!1,Be=t.RETURN_DOM||!1,ze=t.RETURN_DOM_FRAGMENT||!1,He=t.RETURN_TRUSTED_TYPE||!1,Me=t.FORCE_BODY||!1,We=!1!==t.SANITIZE_DOM,Ge=t.SANITIZE_NAMED_PROPS||!1,Ve=!1!==t.KEEP_CONTENT,qe=t.IN_PLACE||!1,Oe=t.ALLOWED_URI_REGEXP||Oe,rt=t.NAMESPACE||nt,Te=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&ut(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Te.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ut(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Te.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Te.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ue&&(je=!1),ze&&(Be=!0),$e&&(Ee=R({},o(B)),Se=[],!0===$e.html&&(R(Ee,L),R(Se,z)),!0===$e.svg&&(R(Ee,D),R(Se,H),R(Se,G)),!0===$e.svgFilters&&(R(Ee,U),R(Se,H),R(Se,G)),!0===$e.mathMl&&(R(Ee,F),R(Se,W),R(Se,G))),t.ADD_TAGS&&(Ee===Ne&&(Ee=P(Ee)),R(Ee,t.ADD_TAGS,ye)),t.ADD_ATTR&&(Se===Ce&&(Se=P(Se)),R(Se,t.ADD_ATTR,ye)),t.ADD_URI_SAFE_ATTR&&R(Xe,t.ADD_URI_SAFE_ATTR,ye),t.FORBID_CONTENTS&&(Ye===Je&&(Ye=P(Ye)),R(Ye,t.FORBID_CONTENTS,ye)),Ve&&(Ee["#text"]=!0),Ie&&R(Ee,["html","head","body"]),Ee.table&&(R(Ee,["tbody"]),delete Ae.tbody),d&&d(t),st=t)},dt=R({},["mi","mo","mn","ms","mtext"]),pt=R({},["foreignobject","desc","title","annotation-xml"]),ht=R({},["title","style","font","a","script"]),mt=R({},D);R(mt,U),R(mt,I);var yt=R({},F);R(yt,M);var vt=function(e){_(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},gt=function(e,t){try{_(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){_(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Se[e])if(Be||ze)try{vt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},bt=function(e){var t,n;if(Me)e="<remove></remove>"+e;else{var r=O(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===me&&rt===nt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=ae?ae.createHTML(e):e;if(rt===nt)try{t=(new v).parseFromString(o,me)}catch(e){}if(!t||!t.documentElement){t=ce.createDocument(rt,"template",null);try{t.documentElement.innerHTML=ot?le:o}catch(e){}}var i=t.body||t.documentElement;return e&&n&&i.insertBefore(a.createTextNode(n),i.childNodes[0]||null),rt===nt?de.call(t,Ie?"html":"body")[0]:Ie?t.documentElement:i},wt=function(e){return ue.call(e.ownerDocument||e,e,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT,null,!1)},_t=function(t){return"object"===e(u)?t instanceof u:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},xt=function(e,t,n){he[e]&&b(he[e],(function(e){e.call(r,t,n,st)}))},kt=function(e){var t,n;if(xt("beforeSanitizeElements",e,null),(n=e)instanceof y&&("string"!=typeof n.nodeName||"string"!=typeof n.textContent||"function"!=typeof n.removeChild||!(n.attributes instanceof m)||"function"!=typeof n.removeAttribute||"function"!=typeof n.setAttribute||"string"!=typeof n.namespaceURI||"function"!=typeof n.insertBefore||"function"!=typeof n.hasChildNodes))return vt(e),!0;var o=ye(e.nodeName);if(xt("uponSanitizeElement",e,{tagName:o,allowedTags:Ee}),e.hasChildNodes()&&!_t(e.firstElementChild)&&(!_t(e.content)||!_t(e.content.firstElementChild))&&C(/<[/\w]/g,e.innerHTML)&&C(/<[/\w]/g,e.textContent))return vt(e),!0;if(!Ee[o]||Ae[o]){if(!Ae[o]&&Et(o)){if(Te.tagNameCheck instanceof RegExp&&C(Te.tagNameCheck,o))return!1;if(Te.tagNameCheck instanceof Function&&Te.tagNameCheck(o))return!1}if(Ve&&!Ye[o]){var i=oe(e)||e.parentNode,a=re(e)||e.childNodes;if(a&&i)for(var l=a.length-1;l>=0;--l)i.insertBefore(te(a[l],!0),ne(e))}return vt(e),!0}return e instanceof f&&!function(e){var t=oe(e);t&&t.tagName||(t={namespaceURI:rt,tagName:"template"});var n=x(e.tagName),r=x(t.tagName);return!!it[e.namespaceURI]&&(e.namespaceURI===tt?t.namespaceURI===nt?"svg"===n:t.namespaceURI===et?"svg"===n&&("annotation-xml"===r||dt[r]):Boolean(mt[n]):e.namespaceURI===et?t.namespaceURI===nt?"math"===n:t.namespaceURI===tt?"math"===n&&pt[r]:Boolean(yt[n]):e.namespaceURI===nt?!(t.namespaceURI===tt&&!pt[r])&&!(t.namespaceURI===et&&!dt[r])&&!yt[n]&&(ht[n]||!mt[n]):!("application/xhtml+xml"!==me||!it[e.namespaceURI]))}(e)?(vt(e),!0):"noscript"!==o&&"noembed"!==o||!C(/<\/no(script|embed)/i,e.innerHTML)?(Ue&&3===e.nodeType&&(t=e.textContent,t=E(t,ve," "),t=E(t,ge," "),t=E(t,be," "),e.textContent!==t&&(_(r.removed,{element:e.cloneNode()}),e.textContent=t)),xt("afterSanitizeElements",e,null),!1):(vt(e),!0)},Ot=function(e,t,n){if(We&&("id"===t||"name"===t)&&(n in a||n in ct))return!1;if(je&&!Re[t]&&C(we,t));else if(Pe&&C(_e,t));else if(!Se[t]||Re[t]){if(!(Et(e)&&(Te.tagNameCheck instanceof RegExp&&C(Te.tagNameCheck,e)||Te.tagNameCheck instanceof Function&&Te.tagNameCheck(e))&&(Te.attributeNameCheck instanceof RegExp&&C(Te.attributeNameCheck,t)||Te.attributeNameCheck instanceof Function&&Te.attributeNameCheck(t))||"is"===t&&Te.allowCustomizedBuiltInElements&&(Te.tagNameCheck instanceof RegExp&&C(Te.tagNameCheck,n)||Te.tagNameCheck instanceof Function&&Te.tagNameCheck(n))))return!1}else if(Xe[t]);else if(C(Oe,E(n,ke,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==N(n,"data:")||!Ze[e])if(Le&&!C(xe,E(n,ke,"")));else if(n)return!1;return!0},Et=function(e){return e.indexOf("-")>0},Nt=function(t){var n,o,i,a;xt("beforeSanitizeAttributes",t,null);var l=t.attributes;if(l){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Se};for(a=l.length;a--;){var c=n=l[a],u=c.name,f=c.namespaceURI;if(o="value"===u?n.value:S(n.value),i=ye(u),s.attrName=i,s.attrValue=o,s.keepAttr=!0,s.forceKeepAttr=void 0,xt("uponSanitizeAttribute",t,s),o=s.attrValue,!s.forceKeepAttr&&(gt(u,t),s.keepAttr))if(De||!C(/\/>/i,o)){Ue&&(o=E(o,ve," "),o=E(o,ge," "),o=E(o,be," "));var d=ye(t.nodeName);if(Ot(d,i,o)){if(!Ge||"id"!==i&&"name"!==i||(gt(u,t),o="user-content-"+o),ae&&"object"===e(g)&&"function"==typeof g.getAttributeType)if(f);else switch(g.getAttributeType(d,i)){case"TrustedHTML":o=ae.createHTML(o);break;case"TrustedScriptURL":o=ae.createScriptURL(o)}try{f?t.setAttributeNS(f,u,o):t.setAttribute(u,o),w(r.removed)}catch(e){}}}else gt(u,t)}xt("afterSanitizeAttributes",t,null)}},St=function e(t){var n,r=wt(t);for(xt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)xt("uponSanitizeShadowNode",n,null),kt(n)||(n.content instanceof s&&e(n.content),Nt(n));xt("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(e){var t,n,o,a,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((ot=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!_t(e)){if("function"!=typeof e.toString)throw T("toString is not a function");if("string"!=typeof(e=e.toString()))throw T("dirty is not a string, aborting")}if(!r.isSupported)return e;if(Fe||ft(l),r.removed=[],"string"==typeof e&&(qe=!1),qe){if(e.nodeName){var c=ye(e.nodeName);if(!Ee[c]||Ae[c])throw T("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof u)1===(n=(t=bt("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===n.nodeName||"HTML"===n.nodeName?t=n:t.appendChild(n);else{if(!Be&&!Ue&&!Ie&&-1===e.indexOf("<"))return ae&&He?ae.createHTML(e):e;if(!(t=bt(e)))return Be?null:He?le:""}t&&Me&&vt(t.firstChild);for(var f=wt(qe?e:t);o=f.nextNode();)kt(o)||(o.content instanceof s&&St(o.content),Nt(o));if(qe)return e;if(Be){if(ze)for(a=fe.call(t.ownerDocument);t.firstChild;)a.appendChild(t.firstChild);else a=t;return(Se.shadowroot||Se.shadowrootmod)&&(a=pe.call(i,a,!0)),a}var d=Ie?t.outerHTML:t.innerHTML;return Ie&&Ee["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&C(Q,t.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+t.ownerDocument.doctype.name+">\n"+d),Ue&&(d=E(d,ve," "),d=E(d,ge," "),d=E(d,be," ")),ae&&He?ae.createHTML(d):d},r.setConfig=function(e){ft(e),Fe=!0},r.clearConfig=function(){st=null,Fe=!1},r.isValidAttribute=function(e,t,n){st||ft({});var r=ye(e),o=ye(t);return Ot(r,o,n)},r.addHook=function(e,t){"function"==typeof t&&(he[e]=he[e]||[],_(he[e],t))},r.removeHook=function(e){if(he[e])return w(he[e])},r.removeHooks=function(e){he[e]&&(he[e]=[])},r.removeAllHooks=function(){he={}},r}()}()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var o=r.length-1;o>-1&&!e;)e=r[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})();var r={};(()=>{"use strict";n.d(r,{I:()=>Vr});var e,t,o,i,a,l,s={},c=[],u=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function f(e,t){for(var n in t)e[n]=t[n];return e}function d(e){var t=e.parentNode;t&&t.removeChild(e)}function p(t,n,r){var o,i,a,l={};for(a in n)"key"==a?o=n[a]:"ref"==a?i=n[a]:l[a]=n[a];if(arguments.length>2&&(l.children=arguments.length>3?e.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===l[a]&&(l[a]=t.defaultProps[a]);return h(t,l,o,i,null)}function h(e,n,r,i,a){var l={type:e,props:n,key:r,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++o:a};return null==a&&null!=t.vnode&&t.vnode(l),l}function m(e){return e.children}function y(e,t){this.props=e,this.context=t}function v(e,t){if(null==t)return e.__?v(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?v(e):null}function g(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return g(e)}}function b(e){(!e.__d&&(e.__d=!0)&&i.push(e)&&!w.__r++||a!==t.debounceRendering)&&((a=t.debounceRendering)||setTimeout)(w)}function w(){for(var e;w.__r=i.length;)e=i.sort((function(e,t){return e.__v.__b-t.__v.__b})),i=[],e.some((function(e){var t,n,r,o,i,a;e.__d&&(i=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=f({},o)).__v=o.__v+1,T(a,o,r,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?v(o):i,o.__h),A(n,o),o.__e!=i&&g(o)))}))}function _(e,t,n,r,o,i,a,l,u,f){var d,p,y,g,b,w,_,k=r&&r.__k||c,E=k.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(g=n.__k[d]=null==(g=t[d])||"boolean"==typeof g?null:"string"==typeof g||"number"==typeof g||"bigint"==typeof g?h(null,g,null,null,g):Array.isArray(g)?h(m,{children:g},null,null,null):g.__b>0?h(g.type,g.props,g.key,null,g.__v):g)){if(g.__=n,g.__b=n.__b+1,null===(y=k[d])||y&&g.key==y.key&&g.type===y.type)k[d]=void 0;else for(p=0;p<E;p++){if((y=k[p])&&g.key==y.key&&g.type===y.type){k[p]=void 0;break}y=null}T(e,g,y=y||s,o,i,a,l,u,f),b=g.__e,(p=g.ref)&&y.ref!=p&&(_||(_=[]),y.ref&&_.push(y.ref,null,g),_.push(p,g.__c||b,g)),null!=b?(null==w&&(w=b),"function"==typeof g.type&&g.__k===y.__k?g.__d=u=x(g,u,e):u=O(e,g,y,k,b,u),"function"==typeof n.type&&(n.__d=u)):u&&y.__e==u&&u.parentNode!=e&&(u=v(y))}for(n.__e=w,d=E;d--;)null!=k[d]&&("function"==typeof n.type&&null!=k[d].__e&&k[d].__e==n.__d&&(n.__d=v(r,d+1)),j(k[d],k[d]));if(_)for(d=0;d<_.length;d++)P(_[d],_[++d],_[++d])}function x(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?x(r,t,n):O(n,r,r,o,r.__e,t));return t}function k(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){k(e,t)})):t.push(e)),t}function O(e,t,n,r,o,i){var a,l,s;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(l=i,s=0;(l=l.nextSibling)&&s<r.length;s+=2)if(l==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function E(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||u.test(t)?n:n+"px"}function N(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||E(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||E(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?C:S,i):e.removeEventListener(t,i?C:S,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function S(e){this.l[e.type+!1](t.event?t.event(e):e)}function C(e){this.l[e.type+!0](t.event?t.event(e):e)}function T(e,n,r,o,i,a,l,s,c){var u,d,p,h,v,g,b,w,x,k,O,E,N,S=n.type;if(void 0!==n.constructor)return null;null!=r.__h&&(c=r.__h,s=n.__e=r.__e,n.__h=null,a=[s]),(u=t.__b)&&u(n);try{e:if("function"==typeof S){if(w=n.props,x=(u=S.contextType)&&o[u.__c],k=u?x?x.props.value:u.__:o,r.__c?b=(d=n.__c=r.__c).__=d.__E:("prototype"in S&&S.prototype.render?n.__c=d=new S(w,k):(n.__c=d=new y(w,k),d.constructor=S,d.render=L),x&&x.sub(d),d.props=w,d.state||(d.state={}),d.context=k,d.__n=o,p=d.__d=!0,d.__h=[]),null==d.__s&&(d.__s=d.state),null!=S.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=f({},d.__s)),f(d.__s,S.getDerivedStateFromProps(w,d.__s))),h=d.props,v=d.state,p)null==S.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==S.getDerivedStateFromProps&&w!==h&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(w,k),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(w,d.__s,k)||n.__v===r.__v){d.props=w,d.state=d.__s,n.__v!==r.__v&&(d.__d=!1),d.__v=n,n.__e=r.__e,n.__k=r.__k,n.__k.forEach((function(e){e&&(e.__=n)})),d.__h.length&&l.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(w,d.__s,k),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(h,v,g)}))}if(d.context=k,d.props=w,d.__v=n,d.__P=e,O=t.__r,E=0,"prototype"in S&&S.prototype.render)d.state=d.__s,d.__d=!1,O&&O(n),u=d.render(d.props,d.state,d.context);else do{d.__d=!1,O&&O(n),u=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++E<25);d.state=d.__s,null!=d.getChildContext&&(o=f(f({},o),d.getChildContext())),p||null==d.getSnapshotBeforeUpdate||(g=d.getSnapshotBeforeUpdate(h,v)),N=null!=u&&u.type===m&&null==u.key?u.props.children:u,_(e,Array.isArray(N)?N:[N],n,r,o,i,a,l,s,c),d.base=n.__e,n.__h=null,d.__h.length&&l.push(d),b&&(d.__E=d.__=null),d.__e=!1}else null==a&&n.__v===r.__v?(n.__k=r.__k,n.__e=r.__e):n.__e=R(r.__e,n,r,o,i,a,l,c);(u=t.diffed)&&u(n)}catch(e){n.__v=null,(c||null!=a)&&(n.__e=s,n.__h=!!c,a[a.indexOf(s)]=null),t.__e(e,n,r)}}function A(e,n){t.__c&&t.__c(n,e),e.some((function(n){try{e=n.__h,n.__h=[],e.some((function(e){e.call(n)}))}catch(e){t.__e(e,n.__v)}}))}function R(t,n,r,o,i,a,l,c){var u,f,p,h=r.props,m=n.props,y=n.type,g=0;if("svg"===y&&(i=!0),null!=a)for(;g<a.length;g++)if((u=a[g])&&"setAttribute"in u==!!y&&(y?u.localName===y:3===u.nodeType)){t=u,a[g]=null;break}if(null==t){if(null===y)return document.createTextNode(m);t=i?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,m.is&&m),a=null,c=!1}if(null===y)h===m||c&&t.data===m||(t.data=m);else{if(a=a&&e.call(t.childNodes),f=(h=r.props||s).dangerouslySetInnerHTML,p=m.dangerouslySetInnerHTML,!c){if(null!=a)for(h={},g=0;g<t.attributes.length;g++)h[t.attributes[g].name]=t.attributes[g].value;(p||f)&&(p&&(f&&p.__html==f.__html||p.__html===t.innerHTML)||(t.innerHTML=p&&p.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||N(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||N(e,i,t[i],n[i],r)}(t,m,h,i,c),p)n.__k=[];else if(g=n.props.children,_(t,Array.isArray(g)?g:[g],n,r,o,i&&"foreignObject"!==y,a,l,a?a[0]:r.__k&&v(r,0),c),null!=a)for(g=a.length;g--;)null!=a[g]&&d(a[g]);c||("value"in m&&void 0!==(g=m.value)&&(g!==t.value||"progress"===y&&!g||"option"===y&&g!==h.value)&&N(t,"value",g,h.value,!1),"checked"in m&&void 0!==(g=m.checked)&&g!==t.checked&&N(t,"checked",g,h.checked,!1))}return t}function P(e,n,r){try{"function"==typeof e?e(n):e.current=n}catch(e){t.__e(e,r)}}function j(e,n,r){var o,i;if(t.unmount&&t.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||P(o,null,n)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){t.__e(e,n)}o.base=o.__P=null}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&j(o[i],n,"function"!=typeof e.type);r||null==e.__e||d(e.__e),e.__e=e.__d=void 0}function L(e,t,n){return this.constructor(e,n)}function D(n,r,o){var i,a,l;t.__&&t.__(n,r),a=(i="function"==typeof o)?null:o&&o.__k||r.__k,l=[],T(r,n=(!i&&o||r).__k=p(m,null,[n]),a||s,s,void 0!==r.ownerSVGElement,!i&&o?[o]:a?null:r.firstChild?e.call(r.childNodes):null,l,!i&&o?o:a?a.__e:r.firstChild,i),A(l,n)}function U(e,t){D(e,t,U)}function I(t,n,r){var o,i,a,l=f({},t.props);for(a in n)"key"==a?o=n[a]:"ref"==a?i=n[a]:l[a]=n[a];return arguments.length>2&&(l.children=arguments.length>3?e.call(arguments,2):r),h(t.type,l,o||t.key,i||t.ref,null)}function F(e,t){var n={__c:t="__cC"+l++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(b)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}function M(){return(M=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function B(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(e,["context","children"]);return I(t,n)}function z(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=p(B,M({},this._props,{context:e.detail.context}),function e(t,n){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var r=[],o={},i=0,a=t.attributes,l=t.childNodes;for(i=a.length;i--;)"slot"!==a[i].name&&(o[a[i].name]=a[i].value,o[H(a[i].name)]=a[i].value);for(i=l.length;i--;){var s=e(l[i],null),c=l[i].slot;c?o[c]=p(V,{name:c},s):r[i]=s}var u=n?p(V,null,r):r;return p(n||t.nodeName.toLowerCase(),o,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?U:D)(this._vdom,this._root)}function H(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function W(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[H(e)]=n,this._vdom=I(this._vdom,r),D(this._vdom,this._root)}}function G(){D(this._vdom=null,this._root)}function V(e,t){var n=this;return p("slot",M({},e,{ref:function(e){e?(n.ref=e,n._listener||(n._listener=function(e){e.stopPropagation(),e.detail.context=t},e.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}e=c.slice,t={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},o=0,y.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=f({},this.state),"function"==typeof e&&(e=e(f({},n),this.props)),e&&f(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),b(this))},y.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),b(this))},y.prototype.render=m,i=[],w.__r=0,l=0;var q=0;function $(e,n,r,o,i){var a,l,s={};for(l in n)"ref"==l?a=n[l]:s[l]=n[l];var c={type:e,props:s,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--q,__source:i,__self:o};if("function"==typeof e&&(a=e.defaultProps))for(l in a)void 0===s[l]&&(s[l]=a[l]);return t.vnode&&t.vnode(c),c}var Y,J,Z,K,X=0,Q=[],ee=[],te=t.__b,ne=t.__r,re=t.diffed,oe=t.__c,ie=t.unmount;function ae(e,n){t.__h&&t.__h(J,e,X||n),X=0;var r=J.__H||(J.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:ee}),r.__[e]}function le(e){return X=1,se(we,e)}function se(e,t,n){var r=ae(Y++,2);return r.t=e,r.__c||(r.__=[n?n(t):we(void 0,t),function(e){var t=r.t(r.__[0],e);r.__[0]!==t&&(r.__=[t,r.__[1]],r.__c.setState({}))}],r.__c=J),r.__}function ce(e,n){var r=ae(Y++,3);!t.__s&&be(r.__H,n)&&(r.__=e,r.u=n,J.__H.__h.push(r))}function ue(e,n){var r=ae(Y++,4);!t.__s&&be(r.__H,n)&&(r.__=e,r.u=n,J.__h.push(r))}function fe(e){return X=5,de((function(){return{current:e}}),[])}function de(e,t){var n=ae(Y++,7);return be(n.__H,t)?(n.__V=e(),n.u=t,n.__h=e,n.__V):n.__}function pe(e,t){return X=8,de((function(){return e}),t)}function he(e){var t=J.context[e.__c],n=ae(Y++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(J)),t.props.value):e.__}function me(){for(var e;e=Q.shift();)if(e.__P)try{e.__H.__h.forEach(ve),e.__H.__h.forEach(ge),e.__H.__h=[]}catch(n){e.__H.__h=[],t.__e(n,e.__v)}}t.__b=function(e){J=null,te&&te(e)},t.__r=function(e){ne&&ne(e),Y=0;var t=(J=e.__c).__H;t&&(Z===J?(t.__h=[],J.__h=[],t.__.forEach((function(e){e.__V=ee,e.u=void 0}))):(t.__h.forEach(ve),t.__h.forEach(ge),t.__h=[])),Z=J},t.diffed=function(e){re&&re(e);var n=e.__c;n&&n.__H&&(n.__H.__h.length&&(1!==Q.push(n)&&K===t.requestAnimationFrame||((K=t.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),ye&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);ye&&(t=requestAnimationFrame(n))})(me)),n.__H.__.forEach((function(e){e.u&&(e.__H=e.u),e.__V!==ee&&(e.__=e.__V),e.u=void 0,e.__V=ee}))),Z=J=null},t.__c=function(e,n){n.some((function(e){try{e.__h.forEach(ve),e.__h=e.__h.filter((function(e){return!e.__||ge(e)}))}catch(r){n.some((function(e){e.__h&&(e.__h=[])})),n=[],t.__e(r,e.__v)}})),oe&&oe(e,n)},t.unmount=function(e){ie&&ie(e);var n,r=e.__c;r&&r.__H&&(r.__H.__.forEach((function(e){try{ve(e)}catch(e){n=e}})),n&&t.__e(n,r.__v))};var ye="function"==typeof requestAnimationFrame;function ve(e){var t=J,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),J=t}function ge(e){var t=J;e.__c=e.__(),J=t}function be(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function we(e,t){return"function"==typeof t?t(e):t}var _e=function(){return _e=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},_e.apply(this,arguments)};const xe=function(e){return $("svg",_e({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"lg"===e.size?"h-10 w-10":"h-5 w-5"},{children:[$("path",{d:"M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM1.99743 8C1.99743 11.3151 4.68487 14.0026 8 14.0026C11.3151 14.0026 14.0026 11.3151 14.0026 8C14.0026 4.68487 11.3151 1.99743 8 1.99743C4.68487 1.99743 1.99743 4.68487 1.99743 8Z",class:"light"===e.theme?"fill-white":"fill-gray-200","fill-opacity":"light"===e.theme?"0.3":"1"}),$("path",{d:"M8 1C8 0.447715 8.44943 -0.00643769 8.99741 0.0624193C9.70527 0.151368 10.3996 0.334798 11.0615 0.608964C12.0321 1.011 12.914 1.60028 13.6569 2.34315C14.3997 3.08602 14.989 3.96793 15.391 4.93853C15.6652 5.60043 15.8486 6.29473 15.9376 7.0026C16.0064 7.55057 15.5523 8 15 8C14.4477 8 14.0085 7.54925 13.9169 7.00462C13.842 6.55939 13.7169 6.12298 13.5433 5.7039C13.2417 4.97595 12.7998 4.31451 12.2426 3.75736C11.6855 3.20021 11.0241 2.75825 10.2961 2.45672C9.87702 2.28313 9.44061 2.15804 8.99538 2.08314C8.45075 1.99152 8 1.55228 8 1Z",class:"light"===e.theme?"fill-white":"fill-primary-base"})]}))};var ke={offers:[],isComplete:!1,isAppEnabled:!1,identity:{email:"",phoneNumber:"",registrationStatus:"Unregistered"},workplace:{employerName:"",linkingStatus:"Unlinked"},featureFlags:{unifiedCustomerRegistration:!1},updateIdentity:function(e){return{}}},Oe=F(ke),Ee=n(383),Ne=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};var Se=function(){return Se=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Se.apply(this,arguments)};const Ce=function(e){var t=le(!1),n=t[0],r=t[1];return $("button",Se({type:"button",class:"".concat(e.class," inline-flex items-center justify-center px-10 py-2 border border-transparent text-base font-medium rounded-md shadow-sm text-white disabled:text-gray-300 bg-primary-base hover:bg-primary-hover disabled:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus w-full md:w-auto"),disabled:e.disabled,onClick:function(){return function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))}(void 0,void 0,void 0,(function(){return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}(this,(function(t){switch(t.label){case 0:if(!e.onClickPromise||n)return[3,5];r(!0),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,e.onClickPromise()];case 2:case 3:return t.sent(),[3,4];case 4:r(!1),t.label=5;case 5:return[2]}}))}))}},{children:[$("div",Se({class:"relative ".concat(n?"invisible":"")},{children:e.children})),n&&$("div",Se({class:"absolute animate-spin"},{children:$(xe,{theme:"light"})}))]}))};var Te=function(){return Te=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Te.apply(this,arguments)};const Ae=function(e){var t=e.className,n=e.label,r=e.allowedKeyPattern,o=e.onChange,i=e.value,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["className","label","allowedKeyPattern","onChange","value"]),l=pe((function(e){r.test(e.key)||e.preventDefault()}),[r]);return $(m,{children:[$("label",Te({class:"font-medium text-sm text-gray-900 text-left"},{children:$("span",{children:n})})),$("input",Te({type:"text",className:"p-2 border-0 ring-2 ring-gray-200 focus:outline-none focus-visible:ring-gray-500 text-base font-medium rounded-md shadow-sm w-full ".concat(t),value:i,onKeyPress:l,onChange:function(e){return o(e.currentTarget.value)}},a))]})};var Re=function(){return Re=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Re.apply(this,arguments)};const Pe=function(e){var t=e.className,n=e.children;return $("h1",Re({className:"text-2xl md:text-3xl font-bold ".concat(null!=t?t:"")},{children:n}))};var je=function(){return je=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},je.apply(this,arguments)};const Le=function(e){var t=e.className,n=e.children;return $("h3",je({class:"text-base md:text-lg text-gray-600 ".concat(null!=t?t:"")},{children:n}))};var De=n(669),Ue=n.n(De),Ie=crypto.randomUUID();const Fe=function(e){return window.addEventListener(Ie,e),function(){return window.removeEventListener(Ie,e)}},Me=function(){window.dispatchEvent(new Event(Ie))};var Be,ze=function(){return ze=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ze.apply(this,arguments)},He=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))},We=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}};!function(e){e[e.Auth_SessionExpired=0]="Auth_SessionExpired"}(Be||(Be={}));var Ge=function(e){var t,n;throw"Auth_SessionExpired"===(null===(n=null===(t=e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.code)&&Me(),e},Ve=function(){function e(){}return e.initClient=function(e,t,n){this.axiosInstance=Ue().create({baseURL:"".concat(e,"/benefits-onboarding/backend"),headers:{Authorization:"Bearer ".concat(t)}}),this.axiosInstance.interceptors.response.use((function(e){return e}),Ge),this.sourceId=n},e.init=function(){return He(this,void 0,void 0,(function(){return We(this,(function(e){switch(e.label){case 0:return[4,this.axiosInstance.post("/init",{source:"Onboarding",sourceId:this.sourceId})];case 1:return[2,e.sent().data]}}))}))},e.command=function(e){return He(this,void 0,void 0,(function(){return We(this,(function(t){switch(t.label){case 0:return[4,this.axiosInstance.post("/command",ze({source:"Onboarding",sourceId:this.sourceId},e))];case 1:return t.sent(),[2]}}))}))},e.GetClient=function(){return e.axiosInstance},e}(),qe=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))},$e=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}},Ye=function(e){switch(e){case"sign-up-viewed":return Ve.command({eventType:"OfferViewed",offerName:"Membership",data:{featureName:"",treatmentName:""}});case"sign-up-completed":return qe(void 0,void 0,void 0,(function(){return $e(this,(function(e){switch(e.label){case 0:return[4,Ve.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!0,featureName:"",treatmentName:"",template:"Eoi"}})];case 1:return e.sent(),[4,Ve.command({eventType:"CustomerRegistrationCompleted",isRegistered:!0})];case 2:return e.sent(),[2]}}))}));case"sign-up-declined":return qe(void 0,void 0,void 0,(function(){return $e(this,(function(e){switch(e.label){case 0:return[4,Ve.command({eventType:"CustomerRegistrationCompleted",isRegistered:!1})];case 1:return e.sent(),[4,Ve.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!1,featureName:"",treatmentName:"",template:"Eoi"}})];case 2:return e.sent(),[2]}}))}))}};const Je=function(){return{trace:Ye}};function Ze(e,t){for(var n in t)e[n]=t[n];return e}function Ke(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function Xe(e){this.props=e}(Xe.prototype=new y).isPureReactComponent=!0,Xe.prototype.shouldComponentUpdate=function(e,t){return Ke(this.props,e)||Ke(this.state,t)};var Qe=t.__b;t.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Qe&&Qe(e)};var et="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function tt(e){function t(t){var n=Ze({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=et,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var nt=function(e,t){return null==e?null:k(k(e).map(t))},rt={map:nt,forEach:nt,count:function(e){return e?k(e).length:0},only:function(e){var t=k(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:k},ot=t.__e;t.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);ot(e,t,n,r)};var it=t.unmount;function at(){this.__u=0,this.t=null,this.__b=null}function lt(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function st(){this.u=null,this.o=null}t.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),it&&it(e)},(at.prototype=new y).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=lt(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(l):l())};n.__R=a;var l=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=function e(t,n,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)})),t.__c&&t.__c.__P===n&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},s=!0===t.__h;r.__u++||s||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},at.prototype.componentWillUnmount=function(){this.t=[]},at.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=Ze({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)}))),t}(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&p(m,null,e.fallback);return o&&(o.__h=null),[p(m,null,t.__a?null:e.children),o]};var ct=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function ut(e){return this.getChildContext=function(){return e.context},e.children}function ft(e){var t=this,n=e.i;t.componentWillUnmount=function(){D(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),D(p(ut,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}(st.prototype=new y).__a=function(e){var t=this,n=lt(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),ct(t,e,r)):o()};n?n(i):i()}},st.prototype.render=function(e){this.u=null,this.o=new Map;var t=k(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},st.prototype.componentDidUpdate=st.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){ct(e,n,t)}))};var dt="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,pt=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|shape|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,ht="undefined"!=typeof document,mt=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};y.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(y.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var yt=t.event;function vt(){}function gt(){return this.cancelBubble}function bt(){return this.defaultPrevented}t.event=function(e){return yt&&(e=yt(e)),e.persist=vt,e.isPropagationStopped=gt,e.isDefaultPrevented=bt,e.nativeEvent=e};var wt,_t={configurable:!0,get:function(){return this.class}},xt=t.vnode;t.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){var o=-1===t.indexOf("-");for(var i in r={},n){var a=n[i];ht&&"children"===i&&"noscript"===t||"value"===i&&"defaultValue"in n&&null==a||("defaultValue"===i&&"value"in n&&null==n.value?i="value":"download"===i&&!0===a?a="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&!mt(n.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():o&&pt.test(i)?i=i.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===a&&(a=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),r[i]&&(i="oninputCapture")),r[i]=a)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=k(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=k(n.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r,n.class!=n.className&&(_t.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",_t))}e.$$typeof=dt,xt&&xt(e)};var kt=t.__r;t.__r=function(e){kt&&kt(e),wt=e.__c};var Ot={ReactCurrentDispatcher:{current:{readContext:function(e){return wt.__n[e.__c].props.value}}}};function Et(e){return!!e&&e.$$typeof===dt}function Nt(e){return Et(e)?I.apply(null,arguments):e}function St(e){e()}const Ct={useState:le,useReducer:se,useEffect:ce,useLayoutEffect:ue,useInsertionEffect:ue,useTransition:function(){return[!1,St]},useDeferredValue:function(e){return e},useSyncExternalStore:function(e,t){var n=le(t),r=n[0],o=n[1];return ce((function(){return e((function(){o(t())}))}),[e,t]),r},startTransition:St,useRef:fe,useImperativeHandle:function(e,t,n){X=6,ue((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))},useMemo:de,useCallback:pe,useContext:he,useDebugValue:function(e,n){t.useDebugValue&&t.useDebugValue(n?n(e):e)},version:"17.0.2",Children:rt,render:function(e,t,n){return null==t.__k&&(t.textContent=""),D(e,t),"function"==typeof n&&n(),e?e.__c:null},hydrate:function(e,t,n){return U(e,t),"function"==typeof n&&n(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(D(null,e),!0)},createPortal:function(e,t){var n=p(ft,{__v:e,i:t});return n.containerInfo=t,n},createElement:p,createContext:F,createFactory:function(e){return p.bind(null,e)},cloneElement:Nt,createRef:function(){return{current:null}},Fragment:m,isValidElement:Et,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:y,PureComponent:Xe,memo:function(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:Ke(this.props,e)}function r(t){return this.shouldComponentUpdate=n,p(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:tt,flushSync:function(e,t){return e(t)},unstable_batchedUpdates:function(e,t){return e(t)},StrictMode:m,Suspense:at,SuspenseList:st,lazy:function(e){var t,n,r;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return p(n,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ot};function Tt(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Tt),r}var At=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(At||{}),Rt=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Rt||{});function Pt({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a}){let l=Lt(t,e);if(i)return jt(l,n,r,a);let s=null!=o?o:0;if(2&s){let{static:e=!1,...t}=l;if(e)return jt(t,n,r,a)}if(1&s){let{unmount:e=!0,...t}=l;return Tt(e?0:1,{0:()=>null,1:()=>jt({...t,hidden:!0,style:{display:"none"}},n,r,a)})}return jt(l,n,r,a)}function jt(e,t={},n,r){let{as:o=n,children:i,refName:a="ref",...l}=It(e,["unmount","static"]),s=void 0!==e.ref?{[a]:e.ref}:{},c="function"==typeof i?i(t):i;l.className&&"function"==typeof l.className&&(l.className=l.className(t));let u={};if(o===m&&Object.keys(Ut(l)).length>0){if(!Et(c)||Array.isArray(c)&&c.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));return Nt(c,Object.assign({},Lt(c.props,Ut(It(l,["ref"]))),u,s))}return p(o,Object.assign({},It(l,["ref"]),o!==m&&s,o!==m&&u),c)}function Lt(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map((e=>[e,void 0]))));for(let e in n)Object.assign(t,{[e](t,...r){let o=n[e];for(let e of o){if(t.defaultPrevented)return;e(t,...r)}}});return t}function Dt(e){var t;return Object.assign(tt(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Ut(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function It(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}let Ft=F(null);Ft.displayName="OpenClosedContext";var Mt=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Mt||{});function Bt(){return he(Ft)}function zt({value:e,children:t}){return Ct.createElement(Ft.Provider,{value:e},t)}let Ht="undefined"!=typeof window?ue:ce,Wt={serverHandoffComplete:!1};function Gt(){let[e,t]=le(Wt.serverHandoffComplete);return ce((()=>{!0!==e&&t(!0)}),[e]),ce((()=>{!1===Wt.serverHandoffComplete&&(Wt.serverHandoffComplete=!0)}),[]),e}var Vt;let qt=0;function $t(){return++qt}let Yt=null!=(Vt=Ct.useId)?Vt:function(){let e=Gt(),[t,n]=Ct.useState(e?$t:null);return Ht((()=>{null===t&&n($t())}),[t]),null!=t?""+t:void 0};function Jt(){let e=fe(!1);return Ht((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function Zt(e){let t=fe(e);return Ht((()=>{t.current=e}),[e]),t}let Kt=function(e){let t=Zt(e);return Ct.useCallback(((...e)=>t.current(...e)),[t])},Xt=Symbol();function Qt(...e){let t=fe(e);ce((()=>{t.current=e}),[e]);let n=Kt((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[Xt])))?void 0:n}function en(){let e=[],t=[],n={enqueue(e){t.push(e)},addEventListener:(e,t,r,o)=>(e.addEventListener(t,r,o),n.add((()=>e.removeEventListener(t,r,o)))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return n.add((()=>cancelAnimationFrame(t)))},nextFrame:(...e)=>n.requestAnimationFrame((()=>n.requestAnimationFrame(...e))),setTimeout(...e){let t=setTimeout(...e);return n.add((()=>clearTimeout(t)))},add:t=>(e.push(t),()=>{let n=e.indexOf(t);if(n>=0){let[t]=e.splice(n,1);t()}}),dispose(){for(let t of e.splice(0))t()},async workQueue(){for(let e of t.splice(0))await e()}};return n}function tn(e,...t){e&&t.length>0&&e.classList.add(...t)}function nn(e,...t){e&&t.length>0&&e.classList.remove(...t)}var rn=(e=>(e.Ended="ended",e.Cancelled="cancelled",e))(rn||{});function on({container:e,direction:t,classes:n,events:r,onStart:o,onStop:i}){let a=Jt(),l=function(){let[e]=le(en);return ce((()=>()=>e.dispose()),[e]),e}(),s=Zt(t),c=Kt((()=>Tt(s.current,{enter:()=>r.current.beforeEnter(),leave:()=>r.current.beforeLeave(),idle:()=>{}}))),u=Kt((()=>Tt(s.current,{enter:()=>r.current.afterEnter(),leave:()=>r.current.afterLeave(),idle:()=>{}})));Ht((()=>{let t=en();l.add(t.dispose);let r=e.current;if(r&&"idle"!==s.current&&a.current)return t.dispose(),c(),o.current(s.current),t.add(function(e,t,n,r){let o=n?"enter":"leave",i=en(),a=void 0!==r?function(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}(r):()=>{},l=Tt(o,{enter:()=>t.enter,leave:()=>t.leave}),s=Tt(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=Tt(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return nn(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),tn(e,...l,...c),i.nextFrame((()=>{nn(e,...c),tn(e,...s),function(e,t){let n=en();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,a]=[r,o].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t}));if(i+a!==0){let r=[];r.push(n.addEventListener(e,"transitionrun",(o=>{o.target===o.currentTarget&&(r.splice(0).forEach((e=>e())),r.push(n.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(t("ended"),r.splice(0).forEach((e=>e())))})),n.addEventListener(e,"transitioncancel",(e=>{e.target===e.currentTarget&&(t("cancelled"),r.splice(0).forEach((e=>e())))}))))})))}else t("ended");n.add((()=>t("cancelled"))),n.dispose}(e,(n=>("ended"===n&&(nn(e,...l),tn(e,...t.entered)),a(n))))})),i.dispose}(r,n.current,"enter"===s.current,(e=>{t.dispose(),Tt(e,{[rn.Ended](){u(),i.current(s.current)},[rn.Cancelled]:()=>{}})}))),t.dispose}),[t])}function an(e=""){return e.split(" ").filter((e=>e.trim().length>1))}let ln=F(null);ln.displayName="TransitionContext";var sn=(e=>(e.Visible="visible",e.Hidden="hidden",e))(sn||{});let cn=F(null);function un(e){return"children"in e?un(e.children):e.current.filter((({state:e})=>"visible"===e)).length>0}function fn(e){let t=Zt(e),n=fe([]),r=Jt(),o=Kt(((e,o=Rt.Hidden)=>{let i=n.current.findIndex((({id:t})=>t===e));-1!==i&&(Tt(o,{[Rt.Unmount](){n.current.splice(i,1)},[Rt.Hidden](){n.current[i].state="hidden"}}),function(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}((()=>{var e;!un(n)&&r.current&&(null==(e=t.current)||e.call(t))})))})),i=Kt((e=>{let t=n.current.find((({id:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):n.current.push({id:e,state:"visible"}),()=>o(e,Rt.Unmount)}));return de((()=>({children:n,register:i,unregister:o})),[i,o,n])}function dn(){}cn.displayName="NestingContext";let pn=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function hn(e){var t;let n={};for(let r of pn)n[r]=null!=(t=e[r])?t:dn;return n}let mn=At.RenderStrategy,yn=Dt((function(e,t){let{beforeEnter:n,afterEnter:r,beforeLeave:o,afterLeave:i,enter:a,enterFrom:l,enterTo:s,entered:c,leave:u,leaveFrom:f,leaveTo:d,...p}=e,h=fe(null),m=Qt(h,t),[y,v]=le("visible"),g=p.unmount?Rt.Unmount:Rt.Hidden,{show:b,appear:w,initial:_}=function(){let e=he(ln);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:x,unregister:k}=function(){let e=he(cn);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),O=fe(null),E=Yt();ce((()=>{if(E)return x(E)}),[x,E]),ce((()=>{if(g===Rt.Hidden&&E){if(b&&"visible"!==y)return void v("visible");Tt(y,{hidden:()=>k(E),visible:()=>x(E)})}}),[y,E,x,k,b,g]);let N=Zt({enter:an(a),enterFrom:an(l),enterTo:an(s),entered:an(c),leave:an(u),leaveFrom:an(f),leaveTo:an(d)}),S=function(e){let t=fe(hn(e));return ce((()=>{t.current=hn(e)}),[e]),t}({beforeEnter:n,afterEnter:r,beforeLeave:o,afterLeave:i}),C=Gt();ce((()=>{if(C&&"visible"===y&&null===h.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[h,y,C]);let T=_&&!w,A=!C||T||O.current===b?"idle":b?"enter":"leave",R=fe(!1),P=fn((()=>{R.current||(v("hidden"),k(E))}));on({container:h,classes:N,events:S,direction:A,onStart:Zt((()=>{R.current=!0})),onStop:Zt((e=>{R.current=!1,"leave"===e&&!un(P)&&(v("hidden"),k(E))}))}),ce((()=>{!T||(g===Rt.Hidden?O.current=null:O.current=b)}),[b,T,y]);let j=p,L={ref:m};return Ct.createElement(cn.Provider,{value:P},Ct.createElement(zt,{value:Tt(y,{visible:Mt.Open,hidden:Mt.Closed})},Pt({ourProps:L,theirProps:j,defaultTag:"div",features:mn,visible:"visible"===y,name:"Transition.Child"})))})),vn=Dt((function(e,t){let{show:n,appear:r=!1,unmount:o,...i}=e,a=fe(null),l=Qt(a,t);Gt();let s=Bt();if(void 0===n&&null!==s&&(n=Tt(s,{[Mt.Open]:!0,[Mt.Closed]:!1})),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,u]=le(n?"visible":"hidden"),f=fn((()=>{u("hidden")})),[d,p]=le(!0),h=fe([n]);Ht((()=>{!1!==d&&h.current[h.current.length-1]!==n&&(h.current.push(n),p(!1))}),[h,n]);let y=de((()=>({show:n,appear:r,initial:d})),[n,r,d]);ce((()=>{if(n)u("visible");else if(un(f)){let e=a.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&u("hidden")}else u("hidden")}),[n,f]);let v={unmount:o};return Ct.createElement(cn.Provider,{value:f},Ct.createElement(ln.Provider,{value:y},Pt({ourProps:{...v,as:m,children:Ct.createElement(yn,{ref:l,...v,...i})},theirProps:{},defaultTag:m,features:mn,visible:"visible"===c,name:"Transition"})))})),gn=Dt((function(e,t){let n=null!==he(ln),r=null!==Bt();return Ct.createElement(Ct.Fragment,null,!n&&r?Ct.createElement(vn,{ref:t,...e}):Ct.createElement(yn,{ref:t,...e}))})),bn=Object.assign(vn,{Child:gn,Root:vn});var wn=function(){return wn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},wn.apply(this,arguments)},_n=function(e){var t=e.children,n=Ct.Children.toArray(t),r=n.find((function(e){return e.type===xn})),o=n.find((function(e){return e.type===kn}));return $(bn,wn({appear:!0,show:!0,enter:"transition duration-700 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",class:"opacity-0"},{children:$("div",wn({class:"mt-20 md:mt-0 flex flex-col text-center items-center max-w-[40rem] mx-auto"},{children:[$(bn,wn({appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",class:"-translate-y-6"},{children:r&&$("div",wn({class:"flex items-center h-full"},{children:r}))})),$(bn,wn({appear:!0,show:!0,enter:"transition delay-300 duration-[600ms] ease-out",enterFrom:"opacity-0 -translate-y-6",enterTo:"opacity-100 translate-y-0",class:"opacity-0 -translate-y-6"},{children:o&&$("div",wn({class:"flex items-center h-full"},{children:o}))}))]}))}))},xn=function(e){return $(m,{children:e.children})},kn=function(e){return $(m,{children:e.children})};_n.Top=xn,_n.Bottom=kn;const On=_n;var En=function(){return En=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},En.apply(this,arguments)};const Nn=function(e){var t=e.phoneNumber,n=e.onSubmit,r=e.onDecline,o=Je().trace,i=le(""),a=i[0],l=i[1],s=function(e){var t=le(null!=e?e:""),n=t[0],r=t[1],o=de((function(){return n.replace(/ /g,"")}),[n]),i=de((function(){return o.startsWith("04")&&10===o.length||o.startsWith("614")&&11===o.length||o.startsWith("+614")&&12===o.length||/^\+642\d{7,9}$/.test(o)}),[o]),a=de((function(){return o.startsWith("04")?"+61".concat(o.replace(/^0+/,"")):o.startsWith("614")?"+".concat(o):o}),[o]),l=de((function(){return e=o,t=0,"#### ### ### ### ### ### ###".replace(/#/g,(function(){var n;return null!==(n=e[t++])&&void 0!==n?n:""})).trim();var e,t}),[o]);return{setPhoneNumber:r,phoneNumber:{valid:i,original:n,formatted:a,masked:l}}}(t),c=s.setPhoneNumber,u=s.phoneNumber;ce((function(){o("sign-up-viewed")}),[]);var f=pe((function(){l("")}),[]),d=pe((function(){var e=u.valid?"":"Please enter a valid Australian mobile number beginning with 04.";l(e)}),[u.valid]),p=pe((function(){return function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))}(void 0,void 0,void 0,(function(){return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}(this,(function(e){switch(e.label){case 0:return u.valid?[4,n(u).then((function(){return o("sign-up-completed")})).catch(l)]:[2];case 1:return e.sent(),[2]}}))}))}),[u,n,o]),h=pe((function(){return o("sign-up-declined").then(r)}),[r,o]);return $(On,{children:[$(On.Top,{children:$("div",En({className:"flex flex-col gap-5"},{children:[$(Pe,{children:"Join your workplace benefits program"}),$(Le,{children:["Enter your ",$("b",{children:"personal"})," mobile number to finish setting up your Flare Benefits account linked to your workplace"]})]}))}),$(On.Bottom,{children:$("div",En({className:"mt-5 md:w-[300px] text-left"},{children:[$(Ae,{allowedKeyPattern:/[+0-9]/,inputMode:"numeric",className:"mt-1 mb-1 w-full",label:"Australian Mobile Number",value:u.original,onChange:c,onfocusin:f,onfocusout:d}),$("div",En({className:"h-8 leading-none"},{children:$("span",En({className:"text-xs text-rose-500"},{children:a}))})),$("div",{children:$("span",En({className:"font-medium text-sm text-gray-900 text-center"},{children:["By creating your account you confirm you have read and agree to Flare Benefits"," ",$("a",En({href:"https://www.flarehr.com/flare-app-terms-and-conditions/",target:"_blank",rel:"noreferrer"},{children:" Terms of Use "})),"and",$("a",En({href:"https://www.flarehr.com/privacy-policy/",target:"_blank",rel:"noreferrer"},{children:" Privacy Policy"})),"."," "]}))}),$(Ce,En({class:"mt-5 md:w-full",onClickPromise:p},{children:"Join your workplace"})),$(Ce,En({class:"mt-5 md:w-full bg-white hover:bg-gray-100 focus:ring-gray-200 border-0 shadow-none text-gray-700 border-gray-300",onClickPromise:h},{children:"Not now"}))]}))})]})};var Sn;function Cn(){return Cn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cn.apply(this,arguments)}const Tn=function(e){return p("svg",Cn({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},e),Sn||(Sn=p("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 0 1 0 1.414l-8 8a1 1 0 0 1-1.414 0l-4-4a1 1 0 0 1 1.414-1.414L8 12.586l7.293-7.293a1 1 0 0 1 1.414 0z",clipRule:"evenodd"})))};var An=function(){return An=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},An.apply(this,arguments)};const Rn=function(e){var t=e.onContinue;return $(On,{children:[$(On.Top,{children:$("div",An({className:"h-16 w-16 flex items-center justify-center rounded-full bg-blue-50 text-primary-base"},{children:$(Tn,{className:"h-7 w-7"})}))}),$(On.Bottom,{children:$("div",An({className:"mt-5 flex flex-col items-center gap-5 text-center"},{children:[$(Pe,{children:"You’ve joined your workplace benefits program"}),$(Le,{children:"With your new Flare Benefits account, you now have access to a range of exclusive benefits available through your workplace."}),$(Ce,An({class:"mt-5 w-full md:w-[240px]",onClickPromise:function(){return function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))}(void 0,void 0,void 0,(function(){return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}(this,(function(e){return t(),[2]}))}))}},{children:"Set up your benefits"}))]}))})]})};var Pn;function jn(){return jn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jn.apply(this,arguments)}const Ln=function(e){return p("svg",jn({xmlns:"http://www.w3.org/2000/svg",height:24,viewBox:"0 -960 960 960",width:24,fill:"currentColor"},e),Pn||(Pn=p("path",{d:"m313-440 224 224-57 56-320-320 320-320 57 56-224 224h487v80H313Z"})))};var Dn=function(){return Dn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Dn.apply(this,arguments)};const Un=function(e){var t=e.className,n=e.onClick,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["className","onClick"]),o=le(!1),i=o[0],a=o[1],l=pe((function(){if(!i)return a(!0),n().finally((function(){a(!1)}))}),[i,n]);return $("button",Dn({className:"inline-flex items-center justify-center px-2 text-primary-base rounded-md bg-transparent hover:bg-sky-50/50 focus:ring-2 focus:ring-primary-focus ".concat(null!=t?t:""),onClick:l},r,{children:[$("div",Dn({class:"relative ".concat(i?"invisible":"")},{children:r.children})),i&&$("div",Dn({class:"absolute animate-spin"},{children:$(xe,{theme:"primary"})}))]}))};var In=function(){return In=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},In.apply(this,arguments)};const Fn=function(e){var t=e.children,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children"]);return $("dialog",In({className:"z-50 w-full h-full absolute top-0 left-0 bottom-0 right-0"},n,{children:t}))};var Mn=function(){return Mn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Mn.apply(this,arguments)};const Bn=function(e){var t=e.open;return $(Fn,Mn({open:t},{children:$("div",Mn({className:"flex flex-col gap-5 items-center justify-center text-center mt-20"},{children:[$("span",Mn({class:"animate-spin"},{children:$(xe,{size:"lg"})})),$(Pe,{children:"Creating your account"}),$("div",{children:[$(Le,{children:"This can take up to 30 seconds."}),$(Le,{children:"Please don't navigate away or refresh your browser."})]})]}))}))};var zn=function(){return zn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},zn.apply(this,arguments)};const Hn=function(e){var t=e.phoneNumber,n=e.onVerify,r=e.onResendOtp,o=e.onGoBack,i=function(){var e=le(""),t=e[0],n=e[1];return{otp:{valid:de((function(){return 6===t.length}),[t.length]),code:t},setOtp:n}}(),a=i.otp,l=i.setOtp,s=le(!1),c=s[0],u=s[1],f=le(""),d=f[0],p=f[1],h=function(e){var t=le(e),n=t[0],r=t[1],o=fe(),i=pe((function(){clearInterval(o.current)}),[]);return ce((function(){return i}),[i]),{countdown:n,restart:pe((function(){var t=e;clearInterval(o.current),o.current=setInterval((function(){t<0?clearInterval(o.current):r(t--)}),1e3)}),[e])}}(60),y=h.countdown,v=h.restart;ce(v,[v]);var g=pe((function(){return u(!0),p(""),n(a.code).catch(p).finally((function(){u(!1)}))}),[n,a.code]),b=pe((function(){return p(""),r().then(v).catch(p)}),[r,v]);return $(m,{children:[$(Bn,{open:c}),$(On,{children:[$(On.Top,{children:$("div",zn({className:"flex flex-col gap-5"},{children:[$(Pe,{children:"Verify your mobile number"}),$(Le,{children:["An SMS verification code has been sent to the number ",t,"."]})]}))}),$(On.Bottom,{children:$("div",zn({className:"mt-5 md:w-[300px] text-left"},{children:[$(Ae,{allowedKeyPattern:/[0-9]/,inputMode:"numeric",minLength:6,maxLength:6,className:"mt-1 mb-1 w-full",label:"Enter your verification code",onChange:l}),d&&$("span",zn({className:"text-xs text-rose-500"},{children:d})),$("p",zn({class:"mt-2 text-center text-xs text-gray-600 disabled:opacity-75 "},{children:["Didn't get the code?",$(Un,zn({disabled:0!==y,className:"underline mx-2 disabled:text-gray-600 disabled:hover:bg-transparent disabled:cursor-text disabled:px-0",onClick:b},{children:"Resend SMS"})),0!==y&&$(m,{children:["in ",y," secs"]})]})),$(Ce,zn({class:"mt-5 md:w-full",disabled:!a.valid,onClickPromise:g},{children:"Continue"})),$(Ce,zn({class:"mt-5 md:w-full bg-white hover:bg-gray-100 focus:ring-gray-200 border-0 shadow-none text-gray-700 border-gray-300",onClickPromise:function(){return function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))}(void 0,void 0,void 0,(function(){return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}(this,(function(e){return o(),[2]}))}))}},{children:$("span",zn({className:"flex gap-3"},{children:[$(Ln,{}),"Back"]}))}))]}))})]})]})},Wn=function(e){var t=e.phoneNumber,n=e.onSignUp,r=e.onVerify,o=e.onResendOtp,i=e.onSuccess,a=e.onDecline,l=le(null!=t?t:""),s=l[0],c=l[1],u=function(e){var t=le(1),n=t[0],r=t[1],o=pe((function(){var e=n-1;e>=1&&r(e)}),[n]),i=pe((function(){var t=n+1;t<=e&&r(t)}),[n,e]);return{step:n,goBack:o,goNext:i}}(3),f=u.step,d=u.goBack,p=u.goNext,h=pe((function(e){return n(e.formatted).then((function(){c(e.masked),p()}))}),[p,n]),y=pe((function(e){return r(e).then((function(){p()}))}),[p,r]);return $(m,{children:[1===f&&$(Nn,{phoneNumber:s,onSubmit:h,onDecline:a}),2===f&&$(Hn,{phoneNumber:s,onVerify:y,onResendOtp:o,onGoBack:d}),3===f&&$(Rn,{onContinue:i})]})};var Gn,Vn=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))},qn=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}},$n="Onboarding",Yn="onboarding";!function(e){e.Auth_AccountDisabled="Sorry, your account has been deactivated. Please contact Flare if there are any issues.",e.Auth_AccountLocked="Sorry, your account is currently locked due to too many attempts. Please try again later.",e.Auth_Unregistered="Sorry, we are currently experiencing some issues. Please try again later.",e.Auth_InvalidVerificationCode="Your one time passcode doesn't look right. Please try again with a new one time passcode.",e.Auth_SessionExpired="Sorry, looks like your session has expired. Please try again.",e.Validation_InvalidPhoneNumber="Please enter a valid Australian mobile number beginning with 04."}(Gn||(Gn={}));var Jn=function(e){var t,n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data,r=Gn[null==n?void 0:n.code];throw null!=r?r:"Sorry, we are currently experiencing some issues. Please try again later."};const Zn=function(e){var t=e.onSuccess,n=e.onDecline,r=he(Oe).identity.phoneNumber,o={signUp:function(e){return Vn(void 0,void 0,void 0,(function(){return qn(this,(function(t){switch(t.label){case 0:return[4,Ve.GetClient().post("auth/signUp",{mobileNumber:e,source:$n,channel:Yn}).catch(Jn)];case 1:return t.sent(),[2]}}))}))},verifyOtp:function(e){return Vn(void 0,void 0,void 0,(function(){return qn(this,(function(t){switch(t.label){case 0:return[4,Ve.GetClient().post("auth/verify",{otp:e,source:$n,channel:Yn}).catch(Jn)];case 1:return t.sent(),[2]}}))}))},resendOtp:function(){return Vn(void 0,void 0,void 0,(function(){return qn(this,(function(e){switch(e.label){case 0:return[4,Ve.GetClient().post("auth/resend").catch(Jn)];case 1:return e.sent(),[2]}}))}))}};return $(m,{children:$(Wn,{phoneNumber:r,onSignUp:o.signUp,onVerify:o.verifyOtp,onResendOtp:o.resendOtp,onSuccess:t,onDecline:n})})},Kn=n.p+"assets/intro.png";var Xn=function(){return Xn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Xn.apply(this,arguments)},Qn=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))},er=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}};const tr=function(e){var t=he(Oe).featureFlags,n=le(!0),r=n[0],o=n[1];return ce((function(){t.unifiedCustomerRegistration||Qn(void 0,void 0,void 0,(function(){return er(this,(function(e){switch(e.label){case 0:return[4,Ve.command({eventType:"OfferViewed",offerName:"Membership",data:{featureName:"",treatmentName:""}})];case 1:return e.sent(),[2]}}))}))}),[]),$(On,{children:[$(On.Top,{children:$("img",{class:"max-w-[30rem] w-full",src:Kn})}),$(On.Bottom,{children:$("div",{children:[$("h3",Xn({class:"mt-8 text-2xl md:text-3xl leading-8 md:leading-9 font-bold"},{children:"Finish setting up your workplace benefits"})),$("p",Xn({class:"mt-3 text-lg leading-7 text-gray-600"},{children:"Because your workplace uses Flare you have access to a range of exclusive benefits that can save you thousands of dollars every year on your car, private health insurance, weekly grocery shop and more."})),!t.unifiedCustomerRegistration&&$("div",Xn({class:"flex items-center text-left mt-6"},{children:[$("input",{class:"accent-primary-base h-4 w-4",type:"checkbox",name:"membership",checked:r,onChange:function(e){var t;return o(null===(t=e.target)||void 0===t?void 0:t.checked)}}),$("label",Xn({class:"font-medium text-sm text-gray-900 ml-3",for:"membership"},{children:$("span",{children:["I would like to be contacted about the latest benefits from Flare and agree to the"," ",$("a",Xn({href:"https://www.flarehr.com/privacy-policy/",target:"_blank",rel:"noreferrer"},{children:"privacy policy"})),"."]})}))]})),$(Ce,Xn({class:"mt-8",onClickPromise:function(){return Qn(void 0,void 0,void 0,(function(){return er(this,(function(n){switch(n.label){case 0:return[4,Ve.command({eventType:"Started"})];case 1:return n.sent(),t.unifiedCustomerRegistration?[3,3]:[4,Ve.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:r,featureName:"",treatmentName:"",template:"Eoi"}})];case 2:n.sent(),n.label=3;case 3:return e.onStepComplete(),[2]}}))}))}},{children:"Continue"}))]})})]})};var nr=n(856),rr=n.n(nr),or=function(){return or=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},or.apply(this,arguments)},ir=function(e){var t=e.children,n=Ct.Children.toArray(t),r=n.find((function(e){return e.type===ar})),o=n.find((function(e){return e.type===lr}));return $(bn,or({appear:!0,show:!0,enter:"transition duration-700 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",class:"opacity-0"},{children:$("div",or({class:"md:grid md:grid-cols-2 max-w-[59.5rem] mx-auto"},{children:[$(bn,or({appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",class:"-translate-y-6"},{children:r&&$("div",or({class:"flex items-center h-full"},{children:r}))})),$(bn,or({appear:!0,show:!0,enter:"transition delay-300 duration-[600ms] ease-out",enterFrom:"opacity-0 -translate-y-6",enterTo:"opacity-100 translate-y-0",class:"opacity-0 -translate-y-6"},{children:o&&$("div",or({class:"flex items-center h-full"},{children:o}))}))]}))}))},ar=function(e){return $(m,{children:e.children})},lr=function(e){return $(m,{children:e.children})};ir.Left=ar,ir.Right=lr;const sr=ir;var cr;function ur(){return ur=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ur.apply(this,arguments)}const fr=function(e){return p("svg",ur({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2},e),cr||(cr=p("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19 9-7 7-7-7"})))};var dr=function(){return dr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},dr.apply(this,arguments)};const pr=function(e){return $(bn,dr({appear:!0,show:!0,enter:"transition duration-300 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",class:"opacity-0"},{children:$("div",dr({class:"w-full border border-gray-200 rounded-lg shadow-sm p-4 pl-3 md:p-6 space-y-2"},{children:e.items.map((function(e,t){return $("div",dr({class:"flex space-x-1"},{children:[$("span",{children:$(Tn,{class:"h-5 w-5 fill-primary-base"})}),$("span",dr({class:"text-sm leading-5 text-gray-600"},{children:e}))]}),t)}))}))}))};var hr=function(){return hr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},hr.apply(this,arguments)};const mr=function(e){var t=le(!1),n=t[0],r=t[1];return $("div",hr({class:e.class},{children:n?$(pr,{items:e.items}):$("button",hr({type:"button",class:"w-full inline-flex justify-center items-center px-4 py-3 border border-gray-200 shadow-sm text-sm font-medium rounded-md text-primary-base bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus",onClick:function(){return r(!0)}},{children:["Learn more",$("span",hr({class:"ml-1"},{children:$(fr,{class:"h-4 w-4"})}))]}))}))};var yr=function(){return yr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},yr.apply(this,arguments)},vr=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))},gr=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}};const br=function(e){var t,n,r,o;ce((function(){vr(void 0,void 0,void 0,(function(){return gr(this,(function(t){switch(t.label){case 0:return[4,Ve.command({offerName:e.step.name,eventType:"OfferViewed",data:yr({},e.step.metadata)})];case 1:return t.sent(),[2]}}))}))}),[e.step.name]);var i=function(t){return vr(void 0,void 0,void 0,(function(){return gr(this,(function(n){switch(n.label){case 0:return[4,Ve.command({offerName:e.step.name,eventType:"OfferProgressed",data:yr(yr({},e.step.metadata),{template:"Eoi",accepted:t})})];case 1:return n.sent(),[2,(t?e.primaryButton:e.secondaryButton).onClick()]}}))}))};return $(sr,{children:[$(sr.Left,{children:$("div",{children:[$("div",yr({class:"flex justify-between md:block text-xs tracking-wide"},{children:$("span",yr({class:"relative px-3 py-0.5 text-primary-base font-semibold"},{children:[e.stepNumber.current," OF ",e.stepNumber.total,$("span",{class:"absolute left-0 rounded-xl bg-primary-base opacity-10 w-full h-[90%]"})]}))})),$(bn,yr({appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",class:"-translate-y-6"},{children:[$("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:e.step.content.mobileImageUrl,loading:"lazy"}),$("div",yr({class:"md:max-w-[27.5rem]"},{children:[$("h3",yr({class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold"},{children:e.step.content.title})),$("p",yr({class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words"},{children:e.step.content.description})),e.step.content.details&&$("div",yr({class:"mt-6 hidden md:block"},{children:$(pr,{items:e.step.content.details})}))]})),e.step.content.details&&$(mr,{class:"mt-6 md:hidden",items:e.step.content.details}),e.children&&e.children,$("div",yr({class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11"},{children:[$(Ce,yr({class:null!==(t=e.primaryButton.class)&&void 0!==t?t:"",onClickPromise:function(){return i(!0)}},{children:null!==(n=e.primaryButton.text)&&void 0!==n?n:"Next"})),(null===(r=e.secondaryButton)||void 0===r?void 0:r.text)&&$(Ce,yr({class:null!==(o=e.secondaryButton.class)&&void 0!==o?o:"bg-white hover:bg-gray-100 focus:ring-gray-200 border-0 shadow-none text-gray-700 border-gray-300",onClickPromise:function(){return i(!1)}},{children:e.secondaryButton.text}))]})),e.step.content.terms&&$("div",yr({class:"flex flex-col gap-3 mt-6 text-gray-600 text-xs"},{children:e.step.content.terms.map((function(e,t){return $("span",{dangerouslySetInnerHTML:{__html:rr().sanitize(e,{ADD_ATTR:["target"]})}},t)}))}))]}))]})}),$(sr.Right,{children:$("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})};var wr=function(){return wr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},wr.apply(this,arguments)},_r=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))},xr=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}};const kr=function(e){var t,n;return ce((function(){_r(void 0,void 0,void 0,(function(){return xr(this,(function(t){switch(t.label){case 0:return"name"in e.step?[4,Ve.command({offerName:e.step.name,eventType:"OfferViewed",data:wr({},e.step.metadata)})]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))}),[e.step]),$(sr,{children:[$(sr.Left,{children:$("div",{children:[$("div",wr({class:"flex justify-between md:block text-xs tracking-wide"},{children:$("span",wr({class:"relative px-3 py-0.5 text-primary-base font-semibold"},{children:[e.stepNumber.current," OF ",e.stepNumber.total,$("span",{class:"absolute left-0 rounded-xl bg-primary-base opacity-10 w-full h-[90%]"})]}))})),$(bn,wr({appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",class:"-translate-y-6"},{children:[$("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:e.step.content.mobileImageUrl,loading:"lazy"}),$("div",wr({class:"md:max-w-[27.5rem]"},{children:[$("h3",wr({class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold"},{children:e.step.content.title})),$("p",wr({class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words"},{children:e.step.content.description})),e.step.content.details&&$("div",wr({class:"mt-6 hidden md:block"},{children:$(pr,{items:e.step.content.details})}))]})),e.step.content.details&&$(mr,{class:"mt-6 md:hidden",items:e.step.content.details}),e.children&&e.children,$("div",wr({class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11"},{children:$(Ce,wr({class:null!==(t=e.primaryButton.class)&&void 0!==t?t:"",onClickPromise:function(){return _r(void 0,void 0,void 0,(function(){return xr(this,(function(t){switch(t.label){case 0:return"name"in e.step?[4,Ve.command({offerName:e.step.name,eventType:"OfferProgressed",data:wr(wr({},e.step.metadata),{template:"Simple"})})]:[3,2];case 1:t.sent(),t.label=2;case 2:return e.primaryButton.onClick(),[2]}}))}))}},{children:null!==(n=e.primaryButton.text)&&void 0!==n?n:"Next"}))})),e.step.content.terms&&$("div",wr({class:"flex flex-col gap-3 mt-6 text-gray-600 text-xs "},{children:e.step.content.terms.map((function(e,t){return $("span",{dangerouslySetInnerHTML:{__html:rr().sanitize(e,{ADD_ATTR:["target"]})}},t)}))}))]}))]})}),$(sr.Right,{children:$("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},Or=function(e){switch(e.marketPlaceOffer.content.template){case"Eoi":return $(br,{stepNumber:e.stepNumber,step:e.marketPlaceOffer,primaryButton:{text:e.marketPlaceOffer.content.acceptButton,onClick:e.onStepComplete},secondaryButton:{text:e.marketPlaceOffer.content.declineButton,onClick:e.onStepComplete}});case"Simple":return $(kr,{stepNumber:e.stepNumber,step:e.marketPlaceOffer,primaryButton:{text:e.marketPlaceOffer.content.acceptButton,onClick:e.onStepComplete}});default:return function(e){throw new Error("ERROR! Reached forbidden guard function with unexpected value: ".concat(JSON.stringify(e)))}(e.marketPlaceOffer.content.template)}},Er=n.p+"assets/get-app.jpg";var Nr;function Sr(){return Sr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sr.apply(this,arguments)}const Cr=function(e){return p("svg",Sr({width:36,height:42,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Nr||(Nr=p("path",{d:"M29.74 21.874c0-3.357 1.574-5.806 4.628-7.71-1.759-2.45-4.35-3.72-7.774-3.992-3.332-.272-6.94 1.814-8.236 1.814-1.389 0-4.535-1.723-7.034-1.723-5.182.09-10.642 3.99-10.642 12.064 0 2.359.37 4.808 1.295 7.348 1.203 3.356 5.46 11.52 9.902 11.339 2.314 0 3.98-1.633 7.034-1.633 2.961 0 4.442 1.633 7.033 1.633 4.535 0 8.422-7.439 9.532-10.795-6.015-2.812-5.737-8.164-5.737-8.345ZM24.559 6.997C27.057 4.094 26.78 1.373 26.78.375c-2.22.181-4.812 1.542-6.293 3.175-1.666 1.814-2.591 4.082-2.406 6.531 2.406.182 4.627-.998 6.478-3.084Z",fill:"#9CA3AF"})))};var Tr;function Ar(){return Ar=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ar.apply(this,arguments)}const Rr=function(e){return p("svg",Ar({width:37,height:40,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Tr||(Tr=p("path",{d:"M24.106 18.84 6.786 1.882l22.023 12.375-4.703 4.583ZM2.318.89C1.299 1.423.594 2.416.594 3.639v33.687c0 1.222.705 2.215 1.724 2.674l20.064-19.556L2.318.89Zm33.31 17.264-4.625-2.598-5.172 4.89 5.172 4.965 4.703-2.598c1.41-1.07 1.41-3.59-.079-4.66ZM6.784 39.007 28.81 26.708l-4.703-4.583-17.32 16.882Z",fill:"#9CA3AF"})))},Pr=n.p+"assets/get-app-mobile.jpg";var jr=function(){return jr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},jr.apply(this,arguments)},Lr=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))},Dr=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}};const Ur=function(){var e,t;ce((function(){Lr(void 0,void 0,void 0,(function(){return Dr(this,(function(e){switch(e.label){case 0:return[4,Ve.command({eventType:"SummaryViewed",summaryVariant:"app"})];case 1:return e.sent(),[2]}}))}))}),[]);var n=he(Oe).identity,r=jr(jr({},function(e){switch(e.registrationStatus){case"RegistrationAbandoned":return{title:"Join your workplace",description:"We’ve sent an email to ".concat(e.email," with instructions on how join your workplace. This will enable you to access all your workplace benefits through the Flare app in the future.")};case"NewlyRegistered":return{title:"Join your workplace’s benefits program",description:"We’ve sent an email to ".concat(e.email," with instructions on how to download the Flare app - where your company’s benefits live.")};default:return{title:"Check your email",description:"We’ve sent an email to ".concat(e.email," with instructions on how to download and activate the Flare App and Card.")}}}(n)),{imageUrl:Er,mobileImageUrl:Pr}),o={text:"Continue",class:"mt-6 md:mt-14",onClick:function(){return Lr(void 0,void 0,void 0,(function(){var e,t;return Dr(this,(function(n){switch(n.label){case 0:return[4,Ve.command({eventType:"Completed"})];case 1:return n.sent(),e=document.querySelector(Vr),t=new CustomEvent("step-completion",{bubbles:!0}),null==e||e.dispatchEvent(t),[4,new Promise((function(e){return setTimeout(e,1e4)}))];case 2:return n.sent(),[2]}}))}))}};return $(sr,{children:[$(sr.Left,{children:$("div",{children:[$("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:r.mobileImageUrl,loading:"lazy"}),$("div",jr({class:"md:max-w-[27.5rem]"},{children:[$("h3",jr({class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold"},{children:r.title})),$("p",jr({class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words"},{children:r.description}))]})),$("div",jr({class:"mt-6 flex space-x-6"},{children:[$(Cr,{}),$(Rr,{})]})),$(Ce,jr({class:null!==(e=o.class)&&void 0!==e?e:"",onClickPromise:o.onClick},{children:null!==(t=o.text)&&void 0!==t?t:"Next"}))]})}),$(sr.Right,{children:$("img",{class:"max-w-[30rem] w-full hidden md:block",src:r.imageUrl,loading:"lazy"})})]})},Ir=n.p+"assets/all-set.jpg",Fr=n.p+"assets/all-set-mobile.jpg";var Mr=function(){return Mr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Mr.apply(this,arguments)},Br=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))},zr=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}};const Hr=function(){var e,t;ce((function(){Br(void 0,void 0,void 0,(function(){return zr(this,(function(e){switch(e.label){case 0:return[4,Ve.command({eventType:"SummaryViewed",summaryVariant:"generic"})];case 1:return e.sent(),[2]}}))}))}),[]);var n=he(Oe).workplace,r={imageUrl:Ir,mobileImageUrl:Fr,title:"You're all set!",description:"PreviouslyLinked"===n.linkingStatus?"You’ve already connected this employer with your Flare Benefits account. Simply continue and review the details you have provided to complete your onboarding.":"Simply continue and review the details you have provided to complete your onboarding."},o={text:"Continue",class:"mt-6 md:mt-6",onClick:function(){return Br(void 0,void 0,void 0,(function(){var e,t;return zr(this,(function(n){switch(n.label){case 0:return[4,Ve.command({eventType:"Completed"})];case 1:return n.sent(),e=document.querySelector(Vr),t=new CustomEvent("step-completion",{bubbles:!0}),null==e||e.dispatchEvent(t),[4,new Promise((function(e){return setTimeout(e,1e4)}))];case 2:return n.sent(),[2]}}))}))}};return $(sr,{children:[$(sr.Left,{children:$("div",{children:[$("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:r.mobileImageUrl,loading:"lazy"}),$("div",Mr({class:"md:max-w-[27.5rem]"},{children:[$("h3",Mr({class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold"},{children:r.title})),$("p",Mr({class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words"},{children:r.description}))]})),$("div",Mr({class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11"},{children:$(Ce,Mr({class:null!==(e=o.class)&&void 0!==e?e:"",onClickPromise:o.onClick},{children:null!==(t=o.text)&&void 0!==t?t:"Next"}))}))]})}),$(sr.Right,{children:$("img",{class:"max-w-[30rem] w-full hidden md:block",src:r.imageUrl,loading:"lazy"})})]})},Wr=function(){var e=he(Oe),t=e.offers,n=e.isComplete,r=e.isAppEnabled,o=e.identity,i=e.workplace,a=e.featureFlags,l=e.updateIdentity,s=function(e,t,n,r,o,i){var a=function(e,t,n,r,o,i){var a=i.unifiedCustomerRegistration,l=n?"SummaryApp":"SummaryGeneric";if(t)return[l];if(!a)return Ne(Ne(["Introduction"],e.map((function(e){return e.name})),!0),[l],!1);switch(!0){case"PreviouslyLinked"===o.linkingStatus:return["Introduction","SummaryGeneric"];case"Unregistered"===r.registrationStatus:case"PreviouslyRegistered"===r.registrationStatus&&"Unlinked"===o.linkingStatus:return["Introduction","FlareAppIdentity"];case"PreviouslyRegistered"===r.registrationStatus&&"NewlyLinked"===o.linkingStatus:return[l];case"NewlyRegistered"===r.registrationStatus:return Ne(Ne([],e.map((function(e){return e.name})),!0),[l],!1);case"RegistrationAbandoned"===r.registrationStatus:return[l];default:return[]}}(e,t,n,r,o,i),l=le(a[0]),s=l[0],c=l[1],u=de((function(){var t=e.find((function(e){return e.name===s}));return t?{screenName:"MarketplaceOffer",offerName:t.name}:{screenName:s}}),[s,e]);return a.some((function(e){return e===s}))||c(a[0]),{current:u,goNext:function(){try{var e=a.findIndex((function(e){return e===s})),t=a[e+1];c(t)}catch(e){}}}}(t,n,r,o,i,a),c=s.current,u=s.goNext,f=pe((function(){l(!0)}),[l]),d=pe((function(){l(!1)}),[l]);switch(c.screenName){case"Introduction":return $(tr,{employerName:i.employerName,onStepComplete:u});case"FlareAppIdentity":return $(Zn,{onSuccess:f,onDecline:d});case"MarketplaceOffer":return $(Or,{stepNumber:{current:t.findIndex((function(e){return e.name===c.offerName}))+1,total:t.length},marketPlaceOffer:t.find((function(e){return e.name===c.offerName})),onStepComplete:u});case"SummaryApp":return $(Ur,{});case"SummaryGeneric":return $(Hr,{});default:return $(m,{})}};var Gr=function(){return Gr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Gr.apply(this,arguments)},Vr="benefits-onboarding";!function(e,t,n,r){function o(){var t=Reflect.construct(HTMLElement,[],o);return t._vdomComponent=e,t._root=r&&r.shadow?t.attachShadow({mode:"open"}):t,t}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=z,o.prototype.attributeChangedCallback=W,o.prototype.disconnectedCallback=G,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(t){this._vdom?this.attributeChangedCallback(e,null,t):(this._props||(this._props={}),this._props[e]=t,this.connectedCallback());var n=typeof t;null!=t&&"string"!==n&&"boolean"!==n&&"number"!==n||this.setAttribute(e,t)}})})),customElements.define(t||e.tagName||e.displayName||e.name,o)}((function(e){var t=le(),n=t[0],r=t[1],o=le(0),i=o[0],a=o[1];ce((function(){return Fe((function(){l().then((function(){return a(i+1)}))}))}),[i]),ce((function(){l()}),[]);var l=function(){return function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))}(void 0,void 0,void 0,(function(){var t,n;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}(this,(function(o){switch(o.label){case 0:return t={backendUrl:e["backend-url"],accessToken:e["access-token"],workflowsInstanceId:e["workflows-instance-id"]},Ve.initClient(t.backendUrl,t.accessToken,t.workflowsInstanceId),[4,Ve.init()];case 1:return n=o.sent(),r(function(e){var t,n=e.offers.some((function(e){return"Perks"===e.name})),r=e.identity.isRegistered?"PreviouslyRegistered":"Unregistered",o={email:e.identity.email,phoneNumber:null!==(t=e.identity.phoneNumber)&&void 0!==t?t:"",registrationStatus:r},i=e.workplace.isLinkedWithIdentity?"PreviouslyLinked":"Unlinked",a={employerName:e.workplace.employerName,linkingStatus:i};return Gr(Gr(Gr({},ke),e),{isAppEnabled:n,identity:o,workplace:a})}(n)),[2]}}))}))},s=pe((function(e){if(n){var t=n.identity,o=n.workplace,i=e?"Unregistered"===t.registrationStatus?"NewlyRegistered":t.registrationStatus:"RegistrationAbandoned",a=e?"Unlinked"===o.linkingStatus?"NewlyLinked":o.linkingStatus:"Unlinked";r(Gr(Gr({},n),{identity:Gr(Gr({},t),{registrationStatus:i}),workplace:Gr(Gr({},o),{linkingStatus:a})}))}}),[n]);return $(m,{children:[$("style",{children:Ee.Z.toString()}),$("div",Gr({class:"font-inter pt-6 pb-8 md:py-24 px-px"},{children:n?$(Oe.Provider,Gr({value:Gr(Gr({},n),{updateIdentity:s})},{children:$(Wr,{})})):$("div",Gr({class:"flex justify-center"},{children:$("span",Gr({class:"animate-spin"},{children:$(xe,{size:"lg"})}))}))}),i)]})}),Vr,[],{shadow:!0})})()})();
1
+ var __defProp=Object.defineProperty,__defNormalProp=(e,t,n)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__publicField=(e,t,n)=>(__defNormalProp(e,"symbol"!=typeof t?t+"":t,n),n);!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";var e,t,n,r,o,i,a,s,l={},c=[],u=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,d=Array.isArray;function f(e,t){for(var n in t)e[n]=t[n];return e}function p(e){var t=e.parentNode;t&&t.removeChild(e)}function m(t,n,r){var o,i,a,s={};for(a in n)"key"==a?o=n[a]:"ref"==a?i=n[a]:s[a]=n[a];if(arguments.length>2&&(s.children=arguments.length>3?e.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===s[a]&&(s[a]=t.defaultProps[a]);return h(t,s,o,i,null)}function h(e,r,o,i,a){var s={type:e,props:r,key:o,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==a?++n:a,__i:-1,__u:0};return null==a&&null!=t.vnode&&t.vnode(s),s}function g(){return{current:null}}function _(e){return e.children}function y(e,t){this.props=e,this.context=t}function b(e,t){if(null==t)return e.__?b(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?b(e):null}function w(e,n,r){var o,i=e.__v,a=i.__e,s=e.__P;if(s)return(o=f({},i)).__v=i.__v+1,t.vnode&&t.vnode(o),P(s,o,i,e.__n,void 0!==s.ownerSVGElement,32&i.__u?[a]:null,n,null==a?b(i):a,!!(32&i.__u),r),o.__v=i.__v,o.__.__k[o.__i]=o,o.__d=void 0,o.__e!=a&&v(o),o}function v(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return v(e)}}function x(e){(!e.__d&&(e.__d=!0)&&r.push(e)&&!k.__r++||o!==t.debounceRendering)&&((o=t.debounceRendering)||i)(k)}function k(){var e,n,o,i=[],s=[];for(r.sort(a);e=r.shift();)e.__d&&(o=r.length,n=w(e,i,s)||n,0===o||r.length>o?(L(i,n,s),s.length=i.length=0,n=void 0,r.sort(a)):n&&t.__c&&t.__c(n,c));n&&L(i,n,s),k.__r=0}function E(e,t,n,r,o,i,a,s,u,f,p){var m,g,y,w,v,x=r&&r.__k||c,k=t.length;for(n.__d=u,function(e,t,n){var r,o,i,a,s,l=t.length,c=n.length,u=c,f=0;for(e.__k=[],r=0;r<l;r++)null!=(o=e.__k[r]=null==(o=t[r])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?h(null,o,null,null,o):d(o)?h(_,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?h(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,s=T(o,n,a=r+f,u),o.__i=s,i=null,-1!==s&&(u--,(i=n[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&f--,"function"!=typeof o.type&&(o.__u|=65536)):s!==a&&(s===a+1?f++:s>a?u>l-a?f+=s-a:f--:f=s<a&&s==a-1?s-a:0,s!==r+f&&(o.__u|=65536))):(i=n[r])&&null==i.key&&i.__e&&0==(131072&i.__u)&&(i.__e==e.__d&&(e.__d=b(i)),D(i,i,!1),n[r]=null,u--);if(u)for(r=0;r<c;r++)null!=(i=n[r])&&0==(131072&i.__u)&&(i.__e==e.__d&&(e.__d=b(i)),D(i,i))}(n,t,x),u=n.__d,m=0;m<k;m++)null!=(y=n.__k[m])&&"boolean"!=typeof y&&"function"!=typeof y&&(g=-1===y.__i?l:x[y.__i]||l,y.__i=m,P(e,y,g,o,i,a,s,u,f,p),w=y.__e,y.ref&&g.ref!=y.ref&&(g.ref&&U(g.ref,null,y),p.push(y.ref,y.__c||w,y)),null==v&&null!=w&&(v=w),65536&y.__u||g.__k===y.__k?u=S(y,u,e):"function"==typeof y.type&&void 0!==y.__d?u=y.__d:w&&(u=w.nextSibling),y.__d=void 0,y.__u&=-196609);n.__d=u,n.__e=v}function S(e,t,n){var r,o;if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=S(r[o],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function C(e,t){return t=t||[],null==e||"boolean"==typeof e||(d(e)?e.some((function(e){C(e,t)})):t.push(e)),t}function T(e,t,n,r){var o=e.key,i=e.type,a=n-1,s=n+1,l=t[n];if(null===l||l&&o==l.key&&i===l.type)return n;if(r>(null!=l&&0==(131072&l.__u)?1:0))for(;a>=0||s<t.length;){if(a>=0){if((l=t[a])&&0==(131072&l.__u)&&o==l.key&&i===l.type)return a;a--}if(s<t.length){if((l=t[s])&&0==(131072&l.__u)&&o==l.key&&i===l.type)return s;s++}}return-1}function N(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||u.test(t)?n:n+"px"}function O(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||N(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||N(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,i?A:R,i)):e.removeEventListener(t,i?A:R,i);else{if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(a){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function R(e){if(this.l){var n=this.l[e.type+!1];if(e.t){if(e.t<=n.u)return}else e.t=Date.now();return n(t.event?t.event(e):e)}}function A(e){if(this.l)return this.l[e.type+!0](t.event?t.event(e):e)}function P(n,r,o,i,a,s,c,u,m,h){var g,w,v,x,k,S,C,T,N,R,A,P,L,U,D,I=r.type;if(void 0!==r.constructor)return null;128&o.__u&&(m=!!(32&o.__u),s=[u=r.__e=o.__e]),(g=t.__b)&&g(r);e:if("function"==typeof I)try{if(T=r.props,N=(g=I.contextType)&&i[g.__c],R=g?N?N.props.value:g.__:i,o.__c?C=(w=r.__c=o.__c).__=w.__E:("prototype"in I&&I.prototype.render?r.__c=w=new I(T,R):(r.__c=w=new y(T,R),w.constructor=I,w.render=F),N&&N.sub(w),w.props=T,w.state||(w.state={}),w.context=R,w.__n=i,v=w.__d=!0,w.__h=[],w._sb=[]),null==w.__s&&(w.__s=w.state),null!=I.getDerivedStateFromProps&&(w.__s==w.state&&(w.__s=f({},w.__s)),f(w.__s,I.getDerivedStateFromProps(T,w.__s))),x=w.props,k=w.state,w.__v=r,v)null==I.getDerivedStateFromProps&&null!=w.componentWillMount&&w.componentWillMount(),null!=w.componentDidMount&&w.__h.push(w.componentDidMount);else{if(null==I.getDerivedStateFromProps&&T!==x&&null!=w.componentWillReceiveProps&&w.componentWillReceiveProps(T,R),!w.__e&&(null!=w.shouldComponentUpdate&&!1===w.shouldComponentUpdate(T,w.__s,R)||r.__v===o.__v)){for(r.__v!==o.__v&&(w.props=T,w.state=w.__s,w.__d=!1),r.__e=o.__e,r.__k=o.__k,r.__k.forEach((function(e){e&&(e.__=r)})),A=0;A<w._sb.length;A++)w.__h.push(w._sb[A]);w._sb=[],w.__h.length&&c.push(w);break e}null!=w.componentWillUpdate&&w.componentWillUpdate(T,w.__s,R),null!=w.componentDidUpdate&&w.__h.push((function(){w.componentDidUpdate(x,k,S)}))}if(w.context=R,w.props=T,w.__P=n,w.__e=!1,P=t.__r,L=0,"prototype"in I&&I.prototype.render){for(w.state=w.__s,w.__d=!1,P&&P(r),g=w.render(w.props,w.state,w.context),U=0;U<w._sb.length;U++)w.__h.push(w._sb[U]);w._sb=[]}else do{w.__d=!1,P&&P(r),g=w.render(w.props,w.state,w.context),w.state=w.__s}while(w.__d&&++L<25);w.state=w.__s,null!=w.getChildContext&&(i=f(f({},i),w.getChildContext())),v||null==w.getSnapshotBeforeUpdate||(S=w.getSnapshotBeforeUpdate(x,k)),E(n,d(D=null!=g&&g.type===_&&null==g.key?g.props.children:g)?D:[D],r,o,i,a,s,c,u,m,h),w.base=r.__e,r.__u&=-161,w.__h.length&&c.push(w),C&&(w.__E=w.__=null)}catch(j){r.__v=null,m||null!=s?(r.__e=u,r.__u|=m?160:32,s[s.indexOf(u)]=null):(r.__e=o.__e,r.__k=o.__k),t.__e(j,r,o)}else null==s&&r.__v===o.__v?(r.__k=o.__k,r.__e=o.__e):r.__e=function(t,n,r,o,i,a,s,c,u){var f,m,h,g,_,y,w,v=r.props,x=n.props,k=n.type;if("svg"===k&&(i=!0),null!=a)for(f=0;f<a.length;f++)if((_=a[f])&&"setAttribute"in _==!!k&&(k?_.localName===k:3===_.nodeType)){t=_,a[f]=null;break}if(null==t){if(null===k)return document.createTextNode(x);t=i?document.createElementNS("http://www.w3.org/2000/svg",k):document.createElement(k,x.is&&x),a=null,c=!1}if(null===k)v===x||c&&t.data===x||(t.data=x);else{if(a=a&&e.call(t.childNodes),v=r.props||l,!c&&null!=a)for(v={},f=0;f<t.attributes.length;f++)v[(_=t.attributes[f]).name]=_.value;for(f in v)_=v[f],"children"==f||("dangerouslySetInnerHTML"==f?h=_:"key"===f||f in x||O(t,f,null,_,i));for(f in x)_=x[f],"children"==f?g=_:"dangerouslySetInnerHTML"==f?m=_:"value"==f?y=_:"checked"==f?w=_:"key"===f||c&&"function"!=typeof _||v[f]===_||O(t,f,_,v[f],i);if(m)c||h&&(m.__html===h.__html||m.__html===t.innerHTML)||(t.innerHTML=m.__html),n.__k=[];else if(h&&(t.innerHTML=""),E(t,d(g)?g:[g],n,r,o,i&&"foreignObject"!==k,a,s,a?a[0]:r.__k&&b(r,0),c,u),null!=a)for(f=a.length;f--;)null!=a[f]&&p(a[f]);c||(f="value",void 0!==y&&(y!==t[f]||"progress"===k&&!y||"option"===k&&y!==v[f])&&O(t,f,y,v[f],!1),f="checked",void 0!==w&&w!==t[f]&&O(t,f,w,v[f],!1))}return t}(o.__e,r,o,i,a,s,c,m,h);(g=t.diffed)&&g(r)}function L(e,n,r){for(var o=0;o<r.length;o++)U(r[o],r[++o],r[++o]);t.__c&&t.__c(n,e),e.some((function(n){try{e=n.__h,n.__h=[],e.some((function(e){e.call(n)}))}catch(r){t.__e(r,n.__v)}}))}function U(e,n,r){try{"function"==typeof e?e(n):e.current=n}catch(o){t.__e(o,r)}}function D(e,n,r){var o,i;if(t.unmount&&t.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||U(o,null,n)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(a){t.__e(a,n)}o.base=o.__P=null,e.__c=void 0}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&D(o[i],n,r||"function"!=typeof e.type);r||null==e.__e||p(e.__e),e.__=e.__e=e.__d=void 0}function F(e,t,n){return this.constructor(e,n)}function I(n,r,o){var i,a,s,c;t.__&&t.__(n,r),a=(i="function"==typeof o)?null:o&&o.__k||r.__k,s=[],c=[],P(r,n=(!i&&o||r).__k=m(_,null,[n]),a||l,l,void 0!==r.ownerSVGElement,!i&&o?[o]:a?null:r.firstChild?e.call(r.childNodes):null,s,!i&&o?o:a?a.__e:r.firstChild,i,c),n.__d=void 0,L(s,n,c)}function j(e,t){I(e,t,j)}function M(t,n,r){var o,i,a,s,l=f({},t.props);for(a in t.type&&t.type.defaultProps&&(s=t.type.defaultProps),n)"key"==a?o=n[a]:"ref"==a?i=n[a]:l[a]=void 0===n[a]&&void 0!==s?s[a]:n[a];return arguments.length>2&&(l.children=arguments.length>3?e.call(arguments,2):r),h(t.type,l,o||t.key,i||t.ref,null)}function B(e,t){var n={__c:t="__cC"+s++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,x(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}function z(){return(z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}e=c.slice,t={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(s){e=s}throw e}},n=0,y.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=f({},this.state),"function"==typeof e&&(e=e(f({},n),this.props)),e&&f(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),x(this))},y.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),x(this))},y.prototype.render=_,r=[],i="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,a=function(e,t){return e.__v.__b-t.__v.__b},k.__r=0,s=0;var H=["context","children"];function W(e){return this.getChildContext=function(){return e.context},M(e.children,function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(e,H))}function q(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=m(W,z({},this._props,{context:e.detail.context}),function e(t,n){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var r=[],o={},i=0,a=t.attributes,s=t.childNodes;for(i=a.length;i--;)"slot"!==a[i].name&&(o[a[i].name]=a[i].value,o[V(a[i].name)]=a[i].value);for(i=s.length;i--;){var l=e(s[i],null),c=s[i].slot;c?o[c]=m(Y,{name:c},l):r[i]=l}var u=n?m(Y,null,r):r;return m(n||t.nodeName.toLowerCase(),o,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?j:I)(this._vdom,this._root)}function V(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function $(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[V(e)]=n,this._vdom=M(this._vdom,r),I(this._vdom,this._root)}}function G(){I(this._vdom=null,this._root)}function Y(e,t){var n=this;return m("slot",z({},e,{ref:function(e){e?(n.ref=e,n._listener||(n._listener=function(e){e.stopPropagation(),e.detail.context=t},e.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}var J,K,X,Z,Q=0,ee=[],te=[],ne=t,re=ne.__b,oe=ne.__r,ie=ne.diffed,ae=ne.__c,se=ne.unmount,le=ne.__;function ce(e,t){ne.__h&&ne.__h(K,e,Q||t),Q=0;var n=K.__H||(K.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:te}),n.__[e]}function ue(e){return Q=1,de(Te,e)}function de(e,t,n){var r=ce(J++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Te(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=K,!K.u)){var o=function(e,t,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter((function(e){return!!e.__c}));if(o.every((function(e){return!e.__N})))return!i||i.call(this,e,t,n);var a=!1;return o.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}})),!(!a&&r.__c.props===e)&&(!i||i.call(this,e,t,n))};K.u=!0;var i=K.shouldComponentUpdate,a=K.componentWillUpdate;K.componentWillUpdate=function(e,t,n){if(this.__e){var r=i;i=void 0,o(e,t,n),i=r}a&&a.call(this,e,t,n)},K.shouldComponentUpdate=o}return r.__N||r.__}function fe(e,t){var n=ce(J++,3);!ne.__s&&Ce(n.__H,t)&&(n.__=e,n.i=t,K.__H.__h.push(n))}function pe(e,t){var n=ce(J++,4);!ne.__s&&Ce(n.__H,t)&&(n.__=e,n.i=t,K.__h.push(n))}function me(e){return Q=5,ge((function(){return{current:e}}),[])}function he(e,t,n){Q=6,pe((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function ge(e,t){var n=ce(J++,7);return Ce(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function _e(e,t){return Q=8,ge((function(){return e}),t)}function ye(e){var t=K.context[e.__c],n=ce(J++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(K)),t.props.value):e.__}function be(e,t){ne.useDebugValue&&ne.useDebugValue(t?t(e):e)}function we(){var e=ce(J++,11);if(!e.__){for(var t=K.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function ve(){for(var e;e=ee.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ee),e.__H.__h.forEach(Se),e.__H.__h=[]}catch(t){e.__H.__h=[],ne.__e(t,e.__v)}}ne.__b=function(e){K=null,re&&re(e)},ne.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),le&&le(e,t)},ne.__r=function(e){oe&&oe(e),J=0;var t=(K=e.__c).__H;t&&(X===K?(t.__h=[],K.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=te,e.__N=e.i=void 0}))):(t.__h.forEach(Ee),t.__h.forEach(Se),t.__h=[],J=0)),X=K},ne.diffed=function(e){ie&&ie(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==ee.push(t)&&Z===ne.requestAnimationFrame||((Z=ne.requestAnimationFrame)||ke)(ve)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==te&&(e.__=e.__V),e.i=void 0,e.__V=te}))),X=K=null},ne.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Ee),e.__h=e.__h.filter((function(e){return!e.__||Se(e)}))}catch(fo){t.some((function(e){e.__h&&(e.__h=[])})),t=[],ne.__e(fo,e.__v)}})),ae&&ae(e,t)},ne.unmount=function(e){se&&se(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Ee(e)}catch(n){t=n}})),n.__H=void 0,t&&ne.__e(t,n.__v))};var xe="function"==typeof requestAnimationFrame;function ke(e){var t,n=function(){clearTimeout(r),xe&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);xe&&(t=requestAnimationFrame(n))}function Ee(e){var t=K,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),K=t}function Se(e){var t=K;e.__c=e.__(),K=t}function Ce(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Te(e,t){return"function"==typeof t?t(e):t}var Ne=0;function Oe(e,n,r,o,i,a){var s,l,c={};for(l in n)"ref"==l?s=n[l]:c[l]=n[l];var u={type:e,props:c,key:r,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--Ne,__i:-1,__u:0,__source:i,__self:a};if("function"==typeof e&&(s=e.defaultProps))for(l in s)void 0===c[l]&&(c[l]=s[l]);return t.vnode&&t.vnode(u),u}const Re=e=>Oe("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"lg"===e.size?"h-10 w-10":"h-5 w-5",children:[Oe("path",{d:"M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM1.99743 8C1.99743 11.3151 4.68487 14.0026 8 14.0026C11.3151 14.0026 14.0026 11.3151 14.0026 8C14.0026 4.68487 11.3151 1.99743 8 1.99743C4.68487 1.99743 1.99743 4.68487 1.99743 8Z",class:"light"===e.theme?"fill-white":"fill-gray-200","fill-opacity":"light"===e.theme?"0.3":"1"}),Oe("path",{d:"M8 1C8 0.447715 8.44943 -0.00643769 8.99741 0.0624193C9.70527 0.151368 10.3996 0.334798 11.0615 0.608964C12.0321 1.011 12.914 1.60028 13.6569 2.34315C14.3997 3.08602 14.989 3.96793 15.391 4.93853C15.6652 5.60043 15.8486 6.29473 15.9376 7.0026C16.0064 7.55057 15.5523 8 15 8C14.4477 8 14.0085 7.54925 13.9169 7.00462C13.842 6.55939 13.7169 6.12298 13.5433 5.7039C13.2417 4.97595 12.7998 4.31451 12.2426 3.75736C11.6855 3.20021 11.0241 2.75825 10.2961 2.45672C9.87702 2.28313 9.44061 2.15804 8.99538 2.08314C8.45075 1.99152 8 1.55228 8 1Z",class:"light"===e.theme?"fill-white":"fill-primary-base"})]}),Ae={offers:[],isComplete:!1,isAppEnabled:!1,identity:{email:"",phoneNumber:"",registrationStatus:"Unregistered"},workplace:{employerName:"",linkingStatus:"Unlinked"},featureFlags:{unifiedCustomerRegistration:!1},updateIdentity:e=>({})},Pe=B(Ae);const Le=e=>{const[t,n]=ue(!1);return Oe("button",{type:"button",class:`${e.class} inline-flex items-center justify-center px-10 py-2 border border-transparent text-base font-medium rounded-md shadow-sm text-white disabled:text-gray-300 bg-primary-base hover:bg-primary-hover disabled:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus w-full md:w-auto`,disabled:e.disabled,onClick:async()=>{if(e.onClickPromise&&!t){n(!0);try{await e.onClickPromise()}catch(r){}n(!1)}},children:[Oe("div",{class:"relative "+(t?"invisible":""),children:e.children}),t&&Oe("div",{class:"absolute animate-spin",children:Oe(Re,{theme:"light"})})]})},Ue=({className:e,label:t,allowedKeyPattern:n,onChange:r,value:o,...i})=>{const a=_e((e=>{n.test(e.key)||e.preventDefault()}),[n]);return Oe(_,{children:[Oe("label",{class:"font-medium text-sm text-gray-900 text-left",children:Oe("span",{children:t})}),Oe("input",{type:"text",className:`p-2 border-0 ring-2 ring-gray-200 focus:outline-none focus-visible:ring-gray-500 text-base font-medium rounded-md shadow-sm w-full ${e}`,value:o,onKeyPress:a,onChange:e=>r(e.currentTarget.value),...i})]})},De=({className:e,children:t})=>Oe("h1",{className:`text-2xl md:text-3xl font-bold ${e??""}`,children:t}),Fe=({className:e,children:t})=>Oe("h3",{class:`text-base md:text-lg text-gray-600 ${e??""}`,children:t});function Ie(e,t){return function(){return e.apply(t,arguments)}}const{toString:je}=Object.prototype,{getPrototypeOf:Me}=Object,Be=(e=>t=>{const n=je.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ze=e=>(e=e.toLowerCase(),t=>Be(t)===e),He=e=>t=>typeof t===e,{isArray:We}=Array,qe=He("undefined");const Ve=ze("ArrayBuffer");const $e=He("string"),Ge=He("function"),Ye=He("number"),Je=e=>null!==e&&"object"==typeof e,Ke=e=>{if("object"!==Be(e))return!1;const t=Me(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},Xe=ze("Date"),Ze=ze("File"),Qe=ze("Blob"),et=ze("FileList"),tt=ze("URLSearchParams");function nt(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),We(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function rt(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const ot="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,it=e=>!qe(e)&&e!==ot;const at=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&Me(Uint8Array)),st=ze("HTMLFormElement"),lt=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ct=ze("RegExp"),ut=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};nt(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},dt="abcdefghijklmnopqrstuvwxyz",ft="0123456789",pt={DIGIT:ft,ALPHA:dt,ALPHA_DIGIT:dt+dt.toUpperCase()+ft};const mt=ze("AsyncFunction"),ht={isArray:We,isArrayBuffer:Ve,isBuffer:function(e){return null!==e&&!qe(e)&&null!==e.constructor&&!qe(e.constructor)&&Ge(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||Ge(e.append)&&("formdata"===(t=Be(e))||"object"===t&&Ge(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Ve(e.buffer),t},isString:$e,isNumber:Ye,isBoolean:e=>!0===e||!1===e,isObject:Je,isPlainObject:Ke,isUndefined:qe,isDate:Xe,isFile:Ze,isBlob:Qe,isRegExp:ct,isFunction:Ge,isStream:e=>Je(e)&&Ge(e.pipe),isURLSearchParams:tt,isTypedArray:at,isFileList:et,forEach:nt,merge:function e(){const{caseless:t}=it(this)&&this||{},n={},r=(r,o)=>{const i=t&&rt(n,o)||o;Ke(n[i])&&Ke(r)?n[i]=e(n[i],r):Ke(r)?n[i]=e({},r):We(r)?n[i]=r.slice():n[i]=r};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&nt(arguments[o],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(nt(t,((t,r)=>{n&&Ge(t)?e[r]=Ie(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&Me(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Be,kindOfTest:ze,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(We(e))return e;let t=e.length;if(!Ye(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:st,hasOwnProperty:lt,hasOwnProp:lt,reduceDescriptors:ut,freezeMethods:e=>{ut(e,((t,n)=>{if(Ge(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];Ge(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return We(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:rt,global:ot,isContextDefined:it,ALPHABET:pt,generateString:(e=16,t=pt.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&Ge(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(Je(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=We(e)?[]:{};return nt(e,((e,t)=>{const i=n(e,r+1);!qe(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:mt,isThenable:e=>e&&(Je(e)||Ge(e))&&Ge(e.then)&&Ge(e.catch)};function gt(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}ht.inherits(gt,Error,{toJSON:function(){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:ht.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const _t=gt.prototype,yt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{yt[e]={value:e}})),Object.defineProperties(gt,yt),Object.defineProperty(_t,"isAxiosError",{value:!0}),gt.from=(e,t,n,r,o,i)=>{const a=Object.create(_t);return ht.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),gt.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function bt(e){return ht.isPlainObject(e)||ht.isArray(e)}function wt(e){return ht.endsWith(e,"[]")?e.slice(0,-2):e}function vt(e,t,n){return e?e.concat(t).map((function(e,t){return e=wt(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const xt=ht.toFlatObject(ht,{},null,(function(e){return/^is[A-Z]/.test(e)}));function kt(e,t,n){if(!ht.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=ht.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!ht.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&ht.isSpecCompliantForm(t);if(!ht.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(ht.isDate(e))return e.toISOString();if(!s&&ht.isBlob(e))throw new gt("Blob is not supported. Use a Buffer instead.");return ht.isArrayBuffer(e)||ht.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(ht.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(ht.isArray(e)&&function(e){return ht.isArray(e)&&!e.some(bt)}(e)||(ht.isFileList(e)||ht.endsWith(n,"[]"))&&(s=ht.toArray(e)))return n=wt(n),s.forEach((function(e,r){!ht.isUndefined(e)&&null!==e&&t.append(!0===a?vt([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!bt(e)||(t.append(vt(o,n,i),l(e)),!1)}const u=[],d=Object.assign(xt,{defaultVisitor:c,convertValue:l,isVisitable:bt});if(!ht.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!ht.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),ht.forEach(n,(function(n,i){!0===(!(ht.isUndefined(n)||null===n)&&o.call(t,n,ht.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t}function Et(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function St(e,t){this._pairs=[],e&&kt(e,this,t)}const Ct=St.prototype;function Tt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Nt(e,t,n){if(!t)return e;const r=n&&n.encode||Tt,o=n&&n.serialize;let i;if(i=o?o(t,n):ht.isURLSearchParams(t)?t.toString():new St(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}Ct.append=function(e,t){this._pairs.push([e,t])},Ct.toString=function(e){const t=e?function(t){return e.call(this,t,Et)}:Et;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class Ot{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ht.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const Rt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},At={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:St,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Pt="undefined"!=typeof window&&"undefined"!=typeof document,Lt=(Ut="undefined"!=typeof navigator&&navigator.product,Pt&&["ReactNative","NativeScript","NS"].indexOf(Ut)<0);var Ut;const Dt="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Ft={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Pt,hasStandardBrowserEnv:Lt,hasStandardBrowserWebWorkerEnv:Dt},Symbol.toStringTag,{value:"Module"})),...At};function It(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&ht.isArray(r)?r.length:i,s)return ht.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&ht.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&ht.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(ht.isFormData(e)&&ht.isFunction(e.entries)){const n={};return ht.forEachEntry(e,((e,r)=>{t(function(e){return ht.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const jt={transitional:Rt,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=ht.isObject(e);o&&ht.isHTMLForm(e)&&(e=new FormData(e));if(ht.isFormData(e))return r?JSON.stringify(It(e)):e;if(ht.isArrayBuffer(e)||ht.isBuffer(e)||ht.isStream(e)||ht.isFile(e)||ht.isBlob(e))return e;if(ht.isArrayBufferView(e))return e.buffer;if(ht.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return kt(e,new Ft.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Ft.isNode&&ht.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=ht.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return kt(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(ht.isString(e))try{return(t||JSON.parse)(e),ht.trim(e)}catch(qr){if("SyntaxError"!==qr.name)throw qr}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||jt.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&ht.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(qr){if(n){if("SyntaxError"===qr.name)throw gt.from(qr,gt.ERR_BAD_RESPONSE,this,null,this.response);throw qr}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ft.classes.FormData,Blob:Ft.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ht.forEach(["delete","get","head","post","put","patch"],(e=>{jt.headers[e]={}}));const Mt=jt,Bt=ht.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"]),zt=Symbol("internals");function Ht(e){return e&&String(e).trim().toLowerCase()}function Wt(e){return!1===e||null==e?e:ht.isArray(e)?e.map(Wt):String(e)}function qt(e,t,n,r,o){return ht.isFunction(r)?r.call(this,t,n):(o&&(t=n),ht.isString(t)?ht.isString(r)?-1!==t.indexOf(r):ht.isRegExp(r)?r.test(t):void 0:void 0)}class Vt{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Ht(t);if(!o)throw new Error("header name must be a non-empty string");const i=ht.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Wt(e))}const i=(e,t)=>ht.forEach(e,((e,n)=>o(e,n,t)));return ht.isPlainObject(e)||e instanceof this.constructor?i(e,t):ht.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Bt[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&o(t,e,n),this}get(e,t){if(e=Ht(e)){const n=ht.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(ht.isFunction(t))return t.call(this,e,n);if(ht.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ht(e)){const n=ht.findKey(this,e);return!(!n||void 0===this[n]||t&&!qt(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Ht(e)){const o=ht.findKey(n,e);!o||t&&!qt(0,n[o],o,t)||(delete n[o],r=!0)}}return ht.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!qt(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return ht.forEach(this,((r,o)=>{const i=ht.findKey(n,o);if(i)return t[i]=Wt(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=Wt(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ht.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&ht.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[zt]=this[zt]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Ht(e);t[r]||(!function(e,t){const n=ht.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return ht.isArray(e)?e.forEach(r):r(e),this}}Vt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ht.reduceDescriptors(Vt.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),ht.freezeMethods(Vt);const $t=Vt;function Gt(e,t){const n=this||Mt,r=t||n,o=$t.from(r.headers);let i=r.data;return ht.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Yt(e){return!(!e||!e.__CANCEL__)}function Jt(e,t,n){gt.call(this,null==e?"canceled":e,gt.ERR_CANCELED,t,n),this.name="CanceledError"}ht.inherits(Jt,gt,{__CANCEL__:!0});const Kt=Ft.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];ht.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),ht.isString(r)&&a.push("path="+r),ht.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Xt(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Zt=Ft.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=ht.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return function(){return!0}}();function Qt(e,t){let n=0;const r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const f=c&&l-c;return f?Math.round(1e3*d/f):void 0}}(50,250);return o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-n,l=r(s);n=i;const c={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const en={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const o=$t.from(e.headers).normalize();let i,a,{responseType:s,withXSRFToken:l}=e;function c(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}if(ht.isFormData(r))if(Ft.hasStandardBrowserEnv||Ft.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if(!1!==(a=o.getContentType())){const[e,...t]=a?a.split(";").map((e=>e.trim())).filter(Boolean):[];o.setContentType([e||"multipart/form-data",...t].join("; "))}let u=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+n))}const d=Xt(e.baseURL,e.url);function f(){if(!u)return;const r=$t.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new gt("Request failed with status code "+n.status,[gt.ERR_BAD_REQUEST,gt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),c()}),(function(e){n(e),c()}),{data:s&&"text"!==s&&"json"!==s?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:r,config:e,request:u}),u=null}if(u.open(e.method.toUpperCase(),Nt(d,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(f)},u.onabort=function(){u&&(n(new gt("Request aborted",gt.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new gt("Network Error",gt.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||Rt;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new gt(t,r.clarifyTimeoutError?gt.ETIMEDOUT:gt.ECONNABORTED,e,u)),u=null},Ft.hasStandardBrowserEnv&&(l&&ht.isFunction(l)&&(l=l(e)),l||!1!==l&&Zt(d))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&Kt.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in u&&ht.forEach(o.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),ht.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&"json"!==s&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",Qt(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",Qt(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=t=>{u&&(n(!t||t.type?new Jt(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));const p=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(d);p&&-1===Ft.protocols.indexOf(p)?n(new gt("Unsupported protocol "+p+":",gt.ERR_BAD_REQUEST,e)):u.send(r||null)}))}};ht.forEach(en,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(qr){}Object.defineProperty(e,"adapterName",{value:t})}}));const tn=e=>`- ${e}`,nn=e=>ht.isFunction(e)||null===e||!1===e,rn=e=>{e=ht.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!nn(n)&&(r=en[(t=String(n)).toLowerCase()],void 0===r))throw new gt(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new gt("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(tn).join("\n"):" "+tn(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function on(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Jt(null,e)}function an(e){on(e),e.headers=$t.from(e.headers),e.data=Gt.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return rn(e.adapter||Mt.adapter)(e).then((function(t){return on(e),t.data=Gt.call(e,e.transformResponse,t),t.headers=$t.from(t.headers),t}),(function(t){return Yt(t)||(on(e),t&&t.response&&(t.response.data=Gt.call(e,e.transformResponse,t.response),t.response.headers=$t.from(t.response.headers))),Promise.reject(t)}))}const sn=e=>e instanceof $t?e.toJSON():e;function ln(e,t){t=t||{};const n={};function r(e,t,n){return ht.isPlainObject(e)&&ht.isPlainObject(t)?ht.merge.call({caseless:n},e,t):ht.isPlainObject(t)?ht.merge({},t):ht.isArray(t)?t.slice():t}function o(e,t,n){return ht.isUndefined(t)?ht.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!ht.isUndefined(t))return r(void 0,t)}function a(e,t){return ht.isUndefined(t)?ht.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(sn(e),sn(t),!0)};return ht.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);ht.isUndefined(a)&&i!==s||(n[r]=a)})),n}const cn="1.6.7",un={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{un[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const dn={};un.transitional=function(e,t,n){function r(e,t){return"[Axios v1.6.7] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new gt(r(o," has been removed"+(t?" in "+t:"")),gt.ERR_DEPRECATED);return t&&!dn[o]&&(dn[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};const fn={assertOptions:function(e,t,n){if("object"!=typeof e)throw new gt("options must be an object",gt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new gt("option "+i+" must be "+n,gt.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new gt("Unknown option "+i,gt.ERR_BAD_OPTION)}},validators:un},pn=fn.validators;class mn{constructor(e){this.defaults=e,this.interceptors={request:new Ot,response:new Ot}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=ln(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&fn.assertOptions(n,{silentJSONParsing:pn.transitional(pn.boolean),forcedJSONParsing:pn.transitional(pn.boolean),clarifyTimeoutError:pn.transitional(pn.boolean)},!1),null!=r&&(ht.isFunction(r)?t.paramsSerializer={serialize:r}:fn.assertOptions(r,{encode:pn.function,serialize:pn.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&ht.merge(o.common,o[t.method]);o&&ht.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=$t.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[an.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let f=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{f=e(f)}catch(p){t.call(this,p);break}}try{c=an.call(this,f)}catch(p){return Promise.reject(p)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return Nt(Xt((e=ln(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}ht.forEach(["delete","get","head","options"],(function(e){mn.prototype[e]=function(t,n){return this.request(ln(n||{},{method:e,url:t,data:(n||{}).data}))}})),ht.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(ln(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}mn.prototype[e]=t(),mn.prototype[e+"Form"]=t(!0)}));const hn=mn;class gn{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new Jt(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new gn((function(t){e=t})),cancel:e}}}const _n=gn;const yn={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,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity: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};Object.entries(yn).forEach((([e,t])=>{yn[t]=e}));const bn=yn;const wn=function e(t){const n=new hn(t),r=Ie(hn.prototype.request,n);return ht.extend(r,hn.prototype,n,{allOwnKeys:!0}),ht.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(ln(t,n))},r}(Mt);wn.Axios=hn,wn.CanceledError=Jt,wn.CancelToken=_n,wn.isCancel=Yt,wn.VERSION=cn,wn.toFormData=kt,wn.AxiosError=gt,wn.Cancel=wn.CanceledError,wn.all=function(e){return Promise.all(e)},wn.spread=function(e){return function(t){return e.apply(null,t)}},wn.isAxiosError=function(e){return ht.isObject(e)&&!0===e.isAxiosError},wn.mergeConfig=ln,wn.AxiosHeaders=$t,wn.formToJSON=e=>It(ht.isHTMLForm(e)?new FormData(e):e),wn.getAdapter=rn,wn.HttpStatusCode=bn,wn.default=wn;const vn=crypto.randomUUID?crypto.randomUUID():crypto.getRandomValues(new Uint32Array(5)).join("-"),xn=e=>(window.addEventListener(vn,e),()=>window.removeEventListener(vn,e)),kn=()=>{window.dispatchEvent(new Event(vn))},En=e=>{var t,n;throw"Auth_SessionExpired"===(null==(n=null==(t=e.response)?void 0:t.data)?void 0:n.code)&&kn(),e},Sn=class{static initClient(e,t,n){this.axiosInstance=wn.create({baseURL:`${e}/benefits-onboarding/backend`,headers:{Authorization:`Bearer ${t}`}}),this.axiosInstance.interceptors.response.use((e=>e),En),this.sourceId=n}static async init(){return(await this.axiosInstance.post("/init",{source:"Onboarding",sourceId:this.sourceId})).data}static async command(e){await this.axiosInstance.post("/command",{source:"Onboarding",sourceId:this.sourceId,...e})}};__publicField(Sn,"sourceId"),__publicField(Sn,"axiosInstance"),__publicField(Sn,"GetClient",(()=>Sn.axiosInstance));let Cn=Sn;const Tn=e=>{switch(e){case"sign-up-viewed":return Cn.command({eventType:"OfferViewed",offerName:"Membership",data:{featureName:"",treatmentName:""}});case"sign-up-completed":return(async()=>{await Cn.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!0,featureName:"",treatmentName:"",template:"Eoi"}}),await Cn.command({eventType:"CustomerRegistrationCompleted",isRegistered:!0})})();case"sign-up-declined":return(async()=>{await Cn.command({eventType:"CustomerRegistrationCompleted",isRegistered:!1}),await Cn.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!1,featureName:"",treatmentName:"",template:"Eoi"}})})()}};function Nn(e,t){for(var n in t)e[n]=t[n];return e}function On(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function Rn(e,t){this.props=e,this.context=t}function An(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:On(this.props,e)}function r(t){return this.shouldComponentUpdate=n,m(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Rn.prototype=new y).isPureReactComponent=!0,Rn.prototype.shouldComponentUpdate=function(e,t){return On(this.props,e)||On(this.state,t)};var Pn=t.__b;t.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Pn&&Pn(e)};var Ln="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Un(e){function t(t){var n=Nn({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=Ln,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Dn=function(e,t){return null==e?null:C(C(e).map(t))},Fn={map:Dn,forEach:Dn,count:function(e){return e?C(e).length:0},only:function(e){var t=C(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:C},In=t.__e;t.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);In(e,t,n,r)};var jn=t.unmount;function Mn(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=Nn({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Mn(e,t,n)}))),e}function Bn(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return Bn(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function zn(){this.__u=0,this.t=null,this.__b=null}function Hn(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Wn(e){var t,n,r;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return m(n,o)}return o.displayName="Lazy",o.__f=!0,o}function qn(){this.u=null,this.o=null}t.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),jn&&jn(e)},(zn.prototype=new y).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=Hn(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(s):s())};n.__R=a;var s=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=Bn(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},zn.prototype.componentWillUnmount=function(){this.t=[]},zn.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Mn(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&m(_,null,e.fallback);return o&&(o.__u&=-33),[m(_,null,t.__a?null:e.children),o]};var Vn=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function $n(e){return this.getChildContext=function(){return e.context},e.children}function Gn(e){var t=this,n=e.i;t.componentWillUnmount=function(){I(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),I(m($n,{context:t.context},e.__v),t.l)}function Yn(e,t){var n=m(Gn,{__v:e,i:t});return n.containerInfo=t,n}(qn.prototype=new y).__a=function(e){var t=this,n=Hn(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Vn(t,e,r)):o()};n?n(i):i()}},qn.prototype.render=function(e){this.u=null,this.o=new Map;var t=C(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},qn.prototype.componentDidUpdate=qn.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Vn(e,n,t)}))};var Jn="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Kn=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Xn=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Zn=/[A-Z0-9]/g,Qn="undefined"!=typeof document,er=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function tr(e,t,n){return null==t.__k&&(t.textContent=""),I(e,t),"function"==typeof n&&n(),e?e.__c:null}function nr(e,t,n){return j(e,t),"function"==typeof n&&n(),e?e.__c:null}y.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(y.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var rr=t.event;function or(){}function ir(){return this.cancelBubble}function ar(){return this.defaultPrevented}t.event=function(e){return rr&&(e=rr(e)),e.persist=or,e.isPropagationStopped=ir,e.isDefaultPrevented=ar,e.nativeEvent=e};var sr,lr={enumerable:!1,configurable:!0,get:function(){return this.class}},cr=t.vnode;t.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={};for(var o in t){var i=t[o];if(!("value"===o&&"defaultValue"in t&&null==i||Qn&&"children"===o&&"noscript"===n||"class"===o||"className"===o)){var a=o.toLowerCase();"defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===i?i="":"translate"===a&&"no"===i?i=!1:"ondoubleclick"===a?o="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||er(t.type)?"onfocus"===a?o="onfocusin":"onblur"===a?o="onfocusout":Xn.test(o)?o=a:-1===n.indexOf("-")&&Kn.test(o)?o=o.replace(Zn,"-$&").toLowerCase():null===i&&(i=void 0):a=o="oninput","oninput"===a&&r[o=a]&&(o="oninputCapture"),r[o]=i}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=C(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=C(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",lr)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=Jn,cr&&cr(e)};var ur=t.__r;t.__r=function(e){ur&&ur(e),sr=e.__c};var dr=t.diffed;t.diffed=function(e){dr&&dr(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),sr=null};var fr={ReactCurrentDispatcher:{current:{readContext:function(e){return sr.__n[e.__c].props.value}}}};function pr(e){return m.bind(null,e)}function mr(e){return!!e&&e.$$typeof===Jn}function hr(e){return mr(e)&&e.type===_}function gr(e){return mr(e)?M.apply(null,arguments):e}function _r(e){return!!e.__k&&(I(null,e),!0)}function yr(e){return e&&(e.base||1===e.nodeType&&e)||null}var br=function(e,t){return e(t)},wr=function(e,t){return e(t)},vr=_;function xr(e){e()}function kr(e){return e}function Er(){return[!1,xr]}var Sr=pe,Cr=mr;function Tr(e,t){var n=t(),r=ue({h:{__:n,v:t}}),o=r[0].h,i=r[1];return pe((function(){o.__=n,o.v=t,Nr(o)&&i({h:o})}),[e,n,t]),fe((function(){return Nr(o)&&i({h:o}),e((function(){Nr(o)&&i({h:o})}))}),[e]),n}function Nr(e){var t,n,r=e.v,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(a){return!0}}var Or={useState:ue,useId:we,useReducer:de,useEffect:fe,useLayoutEffect:pe,useInsertionEffect:Sr,useTransition:Er,useDeferredValue:kr,useSyncExternalStore:Tr,startTransition:xr,useRef:me,useImperativeHandle:he,useMemo:ge,useCallback:_e,useContext:ye,useDebugValue:be,version:"17.0.2",Children:Fn,render:tr,hydrate:nr,unmountComponentAtNode:_r,createPortal:Yn,createElement:m,createContext:B,createFactory:pr,cloneElement:gr,createRef:g,Fragment:_,isValidElement:mr,isElement:Cr,isFragment:hr,findDOMNode:yr,Component:y,PureComponent:Rn,memo:An,forwardRef:Un,flushSync:wr,unstable_batchedUpdates:br,StrictMode:vr,Suspense:zn,SuspenseList:qn,lazy:Wn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:fr};const Rr=Object.freeze(Object.defineProperty({__proto__:null,Children:Fn,Component:y,Fragment:_,PureComponent:Rn,StrictMode:vr,Suspense:zn,SuspenseList:qn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:fr,cloneElement:gr,createContext:B,createElement:m,createFactory:pr,createPortal:Yn,createRef:g,default:Or,findDOMNode:yr,flushSync:wr,forwardRef:Un,hydrate:nr,isElement:Cr,isFragment:hr,isValidElement:mr,lazy:Wn,memo:An,render:tr,startTransition:xr,unmountComponentAtNode:_r,unstable_batchedUpdates:br,useCallback:_e,useContext:ye,useDebugValue:be,useDeferredValue:kr,useEffect:fe,useErrorBoundary:function(e){var t=ce(J++,10),n=ue();return t.__=e,K.componentDidCatch||(K.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:we,useImperativeHandle:he,useInsertionEffect:Sr,useLayoutEffect:pe,useMemo:ge,useReducer:de,useRef:me,useState:ue,useSyncExternalStore:Tr,useTransition:Er,version:"17.0.2"},Symbol.toStringTag,{value:"Module"}));var Ar=Object.defineProperty,Pr=(e,t,n)=>(((e,t,n)=>{t in e?Ar(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let Lr=new class{constructor(){Pr(this,"current",this.detect()),Pr(this,"handoffState","pending"),Pr(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}},Ur=(e,t)=>{Lr.isServer?fe(e,t):pe(e,t)};function Dr(e){let t=me(e);return Ur((()=>{t.current=e}),[e]),t}let Fr=function(e){let t=Dr(e);return Or.useCallback(((...e)=>t.current(...e)),[t])};function Ir(){let e=[],t={addEventListener:(e,n,r,o)=>(e.addEventListener(n,r,o),t.add((()=>e.removeEventListener(n,r,o)))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add((()=>cancelAnimationFrame(n)))},nextFrame:(...e)=>t.requestAnimationFrame((()=>t.requestAnimationFrame(...e))),setTimeout(...e){let n=setTimeout(...e);return t.add((()=>clearTimeout(n)))},microTask(...e){let n={current:!0};return function(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}((()=>{n.current&&e[0]()})),t.add((()=>{n.current=!1}))},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add((()=>{Object.assign(e.style,{[t]:r})}))},group(e){let t=Ir();return e(t),this.add((()=>t.dispose()))},add:t=>(e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function jr(){let[e]=ue(Ir);return fe((()=>()=>e.dispose()),[e]),e}function Mr(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in Rr&&Rr.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=ue(Lr.isHandoffComplete);return t&&!1===Lr.isHandoffComplete&&n(!1),fe((()=>{!0!==t&&n(!0)}),[t]),fe((()=>Lr.handoff()),[]),!e&&t}function Br(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Br),r}let zr=Symbol();function Hr(...e){let t=me(e);fe((()=>{t.current=e}),[e]);let n=Fr((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[zr])))?void 0:n}function Wr(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}var qr,Vr,$r=((Vr=$r||{})[Vr.None=0]="None",Vr[Vr.RenderStrategy=1]="RenderStrategy",Vr[Vr.Static=2]="Static",Vr),Gr=((qr=Gr||{})[qr.Unmount=0]="Unmount",qr[qr.Hidden=1]="Hidden",qr);function Yr({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a,mergeRefs:s}){s=null!=s?s:Kr;let l=Xr(t,e);if(i)return Jr(l,n,r,a,s);let c=null!=o?o:0;if(2&c){let{static:e=!1,...t}=l;if(e)return Jr(t,n,r,a,s)}if(1&c){let{unmount:e=!0,...t}=l;return Br(e?0:1,{0:()=>null,1:()=>Jr({...t,hidden:!0,style:{display:"none"}},n,r,a,s)})}return Jr(l,n,r,a,s)}function Jr(e,t={},n,r,o){let{as:i=n,children:a,refName:s="ref",...l}=eo(e,["unmount","static"]),c=void 0!==e.ref?{[s]:e.ref}:{},u="function"==typeof a?a(t):a;"className"in l&&l.className&&"function"==typeof l.className&&(l.className=l.className(t));let d={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r);e&&(d["data-headlessui-state"]=n.join(" "))}if(i===_&&Object.keys(Qr(l)).length>0){if(!mr(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));let e=u.props,t="function"==typeof(null==e?void 0:e.className)?(...t)=>Wr(null==e?void 0:e.className(...t),l.className):Wr(null==e?void 0:e.className,l.className),n=t?{className:t}:{};return gr(u,Object.assign({},Xr(u.props,Qr(eo(l,["ref"]))),d,c,{ref:o(u.ref,c.ref)},n))}return m(i,Object.assign({},eo(l,["ref"]),i!==_&&c,i!==_&&d),u)}function Kr(...e){return e.every((e=>null==e))?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}function Xr(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map((e=>[e,void 0]))));for(let r in n)Object.assign(t,{[r](e,...t){let o=n[r];for(let n of o){if((e instanceof Event||(null==e?void 0:e.nativeEvent)instanceof Event)&&e.defaultPrevented)return;n(e,...t)}}});return t}function Zr(e){var t;return Object.assign(Un(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Qr(e){let t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}function eo(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}let to=B(null);to.displayName="OpenClosedContext";var no=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(no||{});function ro(){return ye(to)}function oo({value:e,children:t}){return Or.createElement(to.Provider,{value:e},t)}function io(){let e=me(!1);return Ur((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function ao(e,...t){e&&t.length>0&&e.classList.add(...t)}function so(e,...t){e&&t.length>0&&e.classList.remove(...t)}function lo(e,t,n,r){let o=n?"enter":"leave",i=Ir(),a=void 0!==r?function(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}(r):()=>{};"enter"===o&&(e.removeAttribute("hidden"),e.style.display="");let s=Br(o,{enter:()=>t.enter,leave:()=>t.leave}),l=Br(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=Br(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return so(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),ao(e,...t.base,...s,...c),i.nextFrame((()=>{so(e,...t.base,...s,...c),ao(e,...t.base,...s,...l),function(e,t){let n=Ir();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,a]=[r,o].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t})),s=i+a;if(0!==s){n.group((n=>{n.setTimeout((()=>{t(),n.dispose()}),s),n.addEventListener(e,"transitionrun",(e=>{e.target===e.currentTarget&&n.dispose()}))}));let r=n.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(t(),r())}))}else t();n.add((()=>t())),n.dispose}(e,(()=>(so(e,...t.base,...s),ao(e,...t.base,...t.entered),a())))})),i.dispose}function co(e=""){return e.split(/\s+/).filter((e=>e.length>1))}let uo=B(null);uo.displayName="TransitionContext";var fo,po=((fo=po||{}).Visible="visible",fo.Hidden="hidden",fo);let mo=B(null);function ho(e){return"children"in e?ho(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function go(e,t){let n=Dr(e),r=me([]),o=io(),i=jr(),a=Fr(((e,t=Gr.Hidden)=>{let a=r.current.findIndex((({el:t})=>t===e));-1!==a&&(Br(t,{[Gr.Unmount](){r.current.splice(a,1)},[Gr.Hidden](){r.current[a].state="hidden"}}),i.microTask((()=>{var e;!ho(r)&&o.current&&(null==(e=n.current)||e.call(n))})))})),s=Fr((e=>{let t=r.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>a(e,Gr.Unmount)})),l=me([]),c=me(Promise.resolve()),u=me({enter:[],leave:[],idle:[]}),d=Fr(((e,n,r)=>{l.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter((([t])=>t!==e))),null==t||t.chains.current[n].push([e,new Promise((e=>{l.current.push(e)}))]),null==t||t.chains.current[n].push([e,new Promise((e=>{Promise.all(u.current[n].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===n?c.current=c.current.then((()=>null==t?void 0:t.wait.current)).then((()=>r(n))):r(n)})),f=Fr(((e,t,n)=>{Promise.all(u.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=l.current.shift())||e()})).then((()=>n(t)))}));return ge((()=>({children:r,register:s,unregister:a,onStart:d,onStop:f,wait:c,chains:u})),[s,a,r,d,f,u,c])}function _o(){}mo.displayName="NestingContext";let yo=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function bo(e){var t;let n={};for(let r of yo)n[r]=null!=(t=e[r])?t:_o;return n}let wo=$r.RenderStrategy;let vo=Zr((function(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,a=me(null),s=Hr(a,t);Mr();let l=ro();if(void 0===n&&null!==l&&(n=(l&no.Open)===no.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,u]=ue(n?"visible":"hidden"),d=go((()=>{u("hidden")})),[f,p]=ue(!0),m=me([n]);Ur((()=>{!1!==f&&m.current[m.current.length-1]!==n&&(m.current.push(n),p(!1))}),[m,n]);let h=ge((()=>({show:n,appear:r,initial:f})),[n,r,f]);fe((()=>{if(n)u("visible");else if(ho(d)){let e=a.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&u("hidden")}else u("hidden")}),[n,d]);let g={unmount:o},y=Fr((()=>{var t;f&&p(!1),null==(t=e.beforeEnter)||t.call(e)})),b=Fr((()=>{var t;f&&p(!1),null==(t=e.beforeLeave)||t.call(e)}));return Or.createElement(mo.Provider,{value:d},Or.createElement(uo.Provider,{value:h},Yr({ourProps:{...g,as:_,children:Or.createElement(xo,{ref:s,...g,...i,beforeEnter:y,beforeLeave:b})},theirProps:{},defaultTag:_,features:wo,visible:"visible"===c,name:"Transition"})))})),xo=Zr((function(e,t){var n,r;let{beforeEnter:o,afterEnter:i,beforeLeave:a,afterLeave:s,enter:l,enterFrom:c,enterTo:u,entered:d,leave:f,leaveFrom:p,leaveTo:m,...h}=e,g=me(null),_=Hr(g,t),y=null==(n=h.unmount)||n?Gr.Unmount:Gr.Hidden,{show:b,appear:w,initial:v}=function(){let e=ye(uo);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[x,k]=ue(b?"visible":"hidden"),E=function(){let e=ye(mo);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:S,unregister:C}=E;fe((()=>S(g)),[S,g]),fe((()=>{if(y===Gr.Hidden&&g.current)return b&&"visible"!==x?void k("visible"):Br(x,{hidden:()=>C(g),visible:()=>S(g)})}),[x,g,S,C,b,y]);let T=Dr({base:co(h.className),enter:co(l),enterFrom:co(c),enterTo:co(u),entered:co(d),leave:co(f),leaveFrom:co(p),leaveTo:co(m)}),N=function(e){let t=me(bo(e));return fe((()=>{t.current=bo(e)}),[e]),t}({beforeEnter:o,afterEnter:i,beforeLeave:a,afterLeave:s}),O=Mr();fe((()=>{if(O&&"visible"===x&&null===g.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[g,x,O]);let R=v&&!w,A=w&&b&&v,P=(()=>!O||R?"idle":b?"enter":"leave")(),L=function(e=0){let[t,n]=ue(e),r=io(),o=_e((e=>{r.current&&n((t=>t|e))}),[t,r]),i=_e((e=>Boolean(t&e)),[t]),a=_e((e=>{r.current&&n((t=>t&~e))}),[n,r]),s=_e((e=>{r.current&&n((t=>t^e))}),[n]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:a,toggleFlag:s}}(0),U=Fr((e=>Br(e,{enter:()=>{L.addFlag(no.Opening),N.current.beforeEnter()},leave:()=>{L.addFlag(no.Closing),N.current.beforeLeave()},idle:()=>{}}))),D=Fr((e=>Br(e,{enter:()=>{L.removeFlag(no.Opening),N.current.afterEnter()},leave:()=>{L.removeFlag(no.Closing),N.current.afterLeave()},idle:()=>{}}))),F=go((()=>{k("hidden"),C(g)}),E),I=me(!1);!function({immediate:e,container:t,direction:n,classes:r,onStart:o,onStop:i}){let a=io(),s=jr(),l=Dr(n);Ur((()=>{e&&(l.current="enter")}),[e]),Ur((()=>{let e=Ir();s.add(e.dispose);let n=t.current;if(n&&"idle"!==l.current&&a.current)return e.dispose(),o.current(l.current),e.add(lo(n,r.current,"enter"===l.current,(()=>{e.dispose(),i.current(l.current)}))),e.dispose}),[n])}({immediate:A,container:g,classes:T,direction:P,onStart:Dr((e=>{I.current=!0,F.onStart(g,e,U)})),onStop:Dr((e=>{I.current=!1,F.onStop(g,e,D),"leave"===e&&!ho(F)&&(k("hidden"),C(g))}))});let j=h,M={ref:_};return A?j={...j,className:Wr(h.className,...T.current.enter,...T.current.enterFrom)}:I.current&&(j.className=Wr(h.className,null==(r=g.current)?void 0:r.className),""===j.className&&delete j.className),Or.createElement(mo.Provider,{value:F},Or.createElement(oo,{value:Br(x,{visible:no.Open,hidden:no.Closed})|L.flags},Yr({ourProps:M,theirProps:j,defaultTag:"div",features:wo,visible:"visible"===x,name:"Transition.Child"})))})),ko=Zr((function(e,t){let n=null!==ye(uo),r=null!==ro();return Or.createElement(Or.Fragment,null,!n&&r?Or.createElement(vo,{ref:t,...e}):Or.createElement(xo,{ref:t,...e}))})),Eo=Object.assign(vo,{Child:ko,Root:vo});const So=({children:e})=>{const t=Or.Children.toArray(e),n=t.find((e=>e.type===Co)),r=t.find((e=>e.type===To));return Oe(Eo,{appear:!0,show:!0,enter:"transition duration-700 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:Oe("div",{class:"mt-20 md:mt-0 flex flex-col text-center items-center max-w-[40rem] mx-auto",children:[Oe(Eo,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:n&&Oe("div",{class:"flex items-center h-full",children:n})}),Oe(Eo,{appear:!0,show:!0,enter:"transition delay-300 duration-[600ms] ease-out",enterFrom:"opacity-0 -translate-y-6",enterTo:"opacity-100 translate-y-0",children:r&&Oe("div",{class:"flex items-center h-full",children:r})})]})})},Co=({children:e})=>Oe(_,{children:e}),To=({children:e})=>Oe(_,{children:e});So.Top=Co,So.Bottom=To;const No=({phoneNumber:e,onSubmit:t,onDecline:n})=>{const{trace:r}={trace:Tn},[o,i]=ue(""),{setPhoneNumber:a,phoneNumber:s}=(e=>{const[t,n]=ue(e??""),r=ge((()=>t.replace(/ /g,"")),[t]),o=ge((()=>r.startsWith("04")&&10===r.length||r.startsWith("614")&&11===r.length||r.startsWith("+614")&&12===r.length||/^\+642\d{7,9}$/.test(r)),[r]),i=ge((()=>r.startsWith("04")?`+61${r.replace(/^0+/,"")}`:r.startsWith("614")?`+${r}`:r),[r]),a=ge((()=>(e=>{let t=0;return"#### ### ### ### ### ### ###".replace(/#/g,(()=>e[t++]??"")).trim()})(r)),[r]);return{setPhoneNumber:n,phoneNumber:{valid:o,original:t,formatted:i,masked:a}}})(e);fe((()=>{r("sign-up-viewed")}),[]);const l=_e((()=>{i("")}),[]),c=_e((()=>{const e=s.valid?"":"Please enter a valid Australian mobile number beginning with 04.";i(e)}),[s.valid]),u=_e((async()=>{s.valid&&await t(s).then((()=>r("sign-up-completed"))).catch(i)}),[s,t,r]),d=_e((()=>r("sign-up-declined").then(n)),[n,r]);return Oe(So,{children:[Oe(So.Top,{children:Oe("div",{className:"flex flex-col gap-5",children:[Oe(De,{children:"Join your workplace benefits program"}),Oe(Fe,{children:["Enter your ",Oe("b",{children:"personal"})," mobile number to finish setting up your Flare Benefits account linked to your workplace"]})]})}),Oe(So.Bottom,{children:Oe("div",{className:"mt-5 md:w-[300px] text-left",children:[Oe(Ue,{allowedKeyPattern:/[+0-9]/,inputMode:"numeric",className:"mt-1 mb-1 w-full",label:"Australian Mobile Number",value:s.original,onChange:a,onfocusin:l,onfocusout:c}),Oe("div",{className:"h-8 leading-none",children:Oe("span",{className:"text-xs text-rose-500",children:o})}),Oe("div",{children:Oe("span",{className:"font-medium text-sm text-gray-900 text-center",children:["By creating your account you confirm you have read and agree to Flare Benefits"," ",Oe("a",{href:"https://www.flarehr.com/flare-app-terms-and-conditions/",target:"_blank",rel:"noreferrer",children:" Terms of Use "}),"and",Oe("a",{href:"https://www.flarehr.com/privacy-policy/",target:"_blank",rel:"noreferrer",children:" Privacy Policy"}),"."," "]})}),Oe(Le,{class:"mt-5 md:w-full",onClickPromise:u,children:"Join your workplace"}),Oe(Le,{class:"mt-5 md:w-full bg-white hover:!bg-gray-100 focus:!ring-gray-200 !border-0 !shadow-none !text-gray-700 !border-gray-300",onClickPromise:d,children:"Not now"})]})})]})},Oo=e=>m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...e},m("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})),Ro=({onContinue:e})=>Oe(So,{children:[Oe(So.Top,{children:Oe("div",{className:"h-16 w-16 flex items-center justify-center rounded-full bg-blue-50 text-primary-base",children:Oe(Oo,{className:"h-7 w-7"})})}),Oe(So.Bottom,{children:Oe("div",{className:"mt-5 flex flex-col items-center gap-5 text-center",children:[Oe(De,{children:"You’ve joined your workplace benefits program"}),Oe(Fe,{children:"With your new Flare Benefits account, you now have access to a range of exclusive benefits available through your workplace."}),Oe(Le,{class:"mt-5 w-full md:w-[240px]",onClickPromise:async()=>{e()},children:"Set up your benefits"})]})})]}),Ao=e=>m("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,viewBox:"0 -960 960 960",width:24,fill:"currentColor",...e},m("path",{d:"m313-440 224 224-57 56-320-320 320-320 57 56-224 224h487v80H313Z"})),Po=({className:e,onClick:t,...n})=>{const[r,o]=ue(!1);return Oe("button",{className:`inline-flex items-center justify-center px-2 text-primary-base rounded-md bg-transparent hover:bg-sky-50/50 focus:ring-2 focus:ring-primary-focus ${e??""}`,onClick:_e((()=>{if(!r)return o(!0),t().finally((()=>{o(!1)}))}),[r,t]),...n,children:[Oe("div",{class:"relative "+(r?"invisible":""),children:n.children}),r&&Oe("div",{class:"absolute animate-spin",children:Oe(Re,{theme:"primary"})})]})},Lo=({children:e,...t})=>Oe("dialog",{className:"z-50 w-full h-full absolute top-0 left-0 bottom-0 right-0",...t,children:e}),Uo=({open:e})=>Oe(Lo,{open:e,children:Oe("div",{className:"flex flex-col gap-5 items-center justify-center text-center mt-20",children:[Oe("span",{class:"animate-spin",children:Oe(Re,{size:"lg"})}),Oe(De,{children:"Creating your account"}),Oe("div",{children:[Oe(Fe,{children:"This can take up to 30 seconds."}),Oe(Fe,{children:"Please don't navigate away or refresh your browser."})]})]})}),Do=({phoneNumber:e,onVerify:t,onResendOtp:n,onGoBack:r})=>{const{otp:o,setOtp:i}=(()=>{const[e,t]=ue("");return{otp:{valid:ge((()=>6===e.length),[e.length]),code:e},setOtp:t}})(),[a,s]=ue(!1),[l,c]=ue(""),{countdown:u,restart:d}=(e=>{const[t,n]=ue(e),r=me(),o=_e((()=>{clearInterval(r.current)}),[]);return fe((()=>o),[o]),{countdown:t,restart:_e((()=>{let t=e;clearInterval(r.current),r.current=setInterval((()=>{t<0?clearInterval(r.current):n(t--)}),1e3)}),[e])}})(60);fe(d,[d]);const f=_e((()=>(s(!0),c(""),t(o.code).catch(c).finally((()=>{s(!1)})))),[t,o.code]),p=_e((()=>(c(""),n().then(d).catch(c))),[n,d]);return Oe(_,{children:[Oe(Uo,{open:a}),Oe(So,{children:[Oe(So.Top,{children:Oe("div",{className:"flex flex-col gap-5",children:[Oe(De,{children:"Verify your mobile number"}),Oe(Fe,{children:["An SMS verification code has been sent to the number ",e,"."]})]})}),Oe(So.Bottom,{children:Oe("div",{className:"mt-5 md:w-[300px] text-left",children:[Oe(Ue,{allowedKeyPattern:/[0-9]/,inputMode:"numeric",minLength:6,maxLength:6,className:"mt-1 mb-1 w-full",label:"Enter your verification code",onChange:i}),l&&Oe("span",{className:"text-xs text-rose-500",children:l}),Oe("p",{class:"mt-2 text-center text-xs text-gray-600 disabled:opacity-75 ",children:["Didn't get the code?",Oe(Po,{disabled:0!==u,className:"underline mx-2 disabled:text-gray-600 disabled:hover:bg-transparent disabled:cursor-text disabled:px-0",onClick:p,children:"Resend SMS"}),0!==u&&Oe(_,{children:["in ",u," secs"]})]}),Oe(Le,{class:"mt-5 md:w-full",disabled:!o.valid,onClickPromise:f,children:"Continue"}),Oe(Le,{class:"mt-5 md:w-full bg-white hover:!bg-gray-100 focus:!ring-gray-200 !border-0 !shadow-none !text-gray-700 !border-gray-300",onClickPromise:async()=>{r()},children:Oe("span",{className:"flex gap-3",children:[Oe(Ao,{}),"Back"]})})]})})]})]})},Fo=({phoneNumber:e,onSignUp:t,onVerify:n,onResendOtp:r,onSuccess:o,onDecline:i})=>{const[a,s]=ue(e??""),{step:l,goBack:c,goNext:u}=(e=>{const[t,n]=ue(1),r=_e((()=>{const e=t-1;e>=1&&n(e)}),[t]),o=_e((()=>{const r=t+1;r<=e&&n(r)}),[t,e]);return{step:t,goBack:r,goNext:o}})(3),d=_e((e=>t(e.formatted).then((()=>{s(e.masked),u()}))),[u,t]),f=_e((e=>n(e).then((()=>{u()}))),[u,n]);return Oe(_,{children:[1===l&&Oe(No,{phoneNumber:a,onSubmit:d,onDecline:i}),2===l&&Oe(Do,{phoneNumber:a,onVerify:f,onResendOtp:r,onGoBack:c}),3===l&&Oe(Ro,{onContinue:o})]})},Io="Onboarding",jo="onboarding";var Mo=(e=>(e.Auth_AccountDisabled="Sorry, your account has been deactivated. Please contact Flare if there are any issues.",e.Auth_AccountLocked="Sorry, your account is currently locked due to too many attempts. Please try again later.",e.Auth_Unregistered="Sorry, we are currently experiencing some issues. Please try again later.",e.Auth_InvalidVerificationCode="Your one time passcode doesn't look right. Please try again with a new one time passcode.",e.Auth_SessionExpired="Sorry, looks like your session has expired. Please try again.",e.Validation_InvalidPhoneNumber="Please enter a valid Australian mobile number beginning with 04.",e))(Mo||{});const Bo=e=>{var t;const n=null==(t=null==e?void 0:e.response)?void 0:t.data;throw Mo[null==n?void 0:n.code]??"Sorry, we are currently experiencing some issues. Please try again later."},zo=({onSuccess:e,onDecline:t})=>{const{identity:{phoneNumber:n}}=ye(Pe),{signUp:r,verifyOtp:o,resendOtp:i}={signUp:async e=>{await Cn.GetClient().post("auth/signUp",{mobileNumber:e,source:Io,channel:jo}).catch(Bo)},verifyOtp:async e=>{await Cn.GetClient().post("auth/verify",{otp:e,source:Io,channel:jo}).catch(Bo)},resendOtp:async()=>{await Cn.GetClient().post("auth/resend").catch(Bo)}};return Oe(_,{children:Oe(Fo,{phoneNumber:n,onSignUp:r,onVerify:o,onResendOtp:i,onSuccess:e,onDecline:t})})},Ho=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/intro-COqxd5jd.png").href:new URL("assets/intro-COqxd5jd.png","undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),Wo=e=>{const{featureFlags:t}=ye(Pe),[n,r]=ue(!0);return fe((()=>{t.unifiedCustomerRegistration||(async()=>{await Cn.command({eventType:"OfferViewed",offerName:"Membership",data:{featureName:"",treatmentName:""}})})()}),[]),Oe(So,{children:[Oe(So.Top,{children:Oe("img",{class:"max-w-[30rem] w-full",src:Ho})}),Oe(So.Bottom,{children:Oe("div",{children:[Oe("h3",{class:"mt-8 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:"Finish setting up your workplace benefits"}),Oe("p",{class:"mt-3 text-lg leading-7 text-gray-600",children:"Because your workplace uses Flare you have access to a range of exclusive benefits that can save you thousands of dollars every year on your car, private health insurance, weekly grocery shop and more."}),!t.unifiedCustomerRegistration&&Oe("div",{class:"flex items-center text-left mt-6",children:[Oe("input",{class:"accent-primary-base h-4 w-4",type:"checkbox",name:"membership",checked:n,onChange:e=>{var t;return r(null==(t=e.target)?void 0:t.checked)}}),Oe("label",{class:"font-medium text-sm text-gray-900 ml-3",for:"membership",children:Oe("span",{children:["I would like to be contacted about the latest benefits from Flare and agree to the"," ",Oe("a",{href:"https://www.flarehr.com/privacy-policy/",target:"_blank",rel:"noreferrer",children:"privacy policy"}),"."]})})]}),Oe(Le,{class:"mt-8",onClickPromise:async()=>{await Cn.command({eventType:"Started"}),t.unifiedCustomerRegistration||await Cn.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:n,featureName:"",treatmentName:"",template:"Eoi"}}),e.onStepComplete()},children:"Continue"})]})})]})},{entries:qo,setPrototypeOf:Vo,isFrozen:$o,getPrototypeOf:Go,getOwnPropertyDescriptor:Yo}=Object;let{freeze:Jo,seal:Ko,create:Xo}=Object,{apply:Zo,construct:Qo}="undefined"!=typeof Reflect&&Reflect;Jo||(Jo=function(e){return e}),Ko||(Ko=function(e){return e}),Zo||(Zo=function(e,t,n){return e.apply(t,n)}),Qo||(Qo=function(e,t){return new e(...t)});const ei=pi(Array.prototype.forEach),ti=pi(Array.prototype.pop),ni=pi(Array.prototype.push),ri=pi(String.prototype.toLowerCase),oi=pi(String.prototype.toString),ii=pi(String.prototype.match),ai=pi(String.prototype.replace),si=pi(String.prototype.indexOf),li=pi(String.prototype.trim),ci=pi(Object.prototype.hasOwnProperty),ui=pi(RegExp.prototype.test),di=(fi=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Qo(fi,t)});var fi;function pi(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return Zo(e,t,r)}}function mi(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ri;Vo&&Vo(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&($o(t)||(t[r]=e),o=e)}e[o]=!0}return e}function hi(e){for(let t=0;t<e.length;t++){ci(e,t)||(e[t]=null)}return e}function gi(e){const t=Xo(null);for(const[n,r]of qo(e)){ci(e,n)&&(Array.isArray(r)?t[n]=hi(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=gi(r):t[n]=r)}return t}function _i(e,t){for(;null!==e;){const n=Yo(e,t);if(n){if(n.get)return pi(n.get);if("function"==typeof n.value)return pi(n.value)}e=Go(e)}return function(){return null}}const yi=Jo(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),bi=Jo(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),wi=Jo(["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"]),vi=Jo(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),xi=Jo(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),ki=Jo(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ei=Jo(["#text"]),Si=Jo(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Ci=Jo(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ti=Jo(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ni=Jo(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Oi=Ko(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ri=Ko(/<%[\w\W]*|[\w\W]*%>/gm),Ai=Ko(/\${[\w\W]*}/gm),Pi=Ko(/^data-[\-\w.\u00B7-\uFFFF]/),Li=Ko(/^aria-[\-\w]+$/),Ui=Ko(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Di=Ko(/^(?:\w+script|data):/i),Fi=Ko(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ii=Ko(/^html$/i);var ji=Object.freeze({__proto__:null,MUSTACHE_EXPR:Oi,ERB_EXPR:Ri,TMPLIT_EXPR:Ai,DATA_ATTR:Pi,ARIA_ATTR:Li,IS_ALLOWED_URI:Ui,IS_SCRIPT_OR_DATA:Di,ATTR_WHITESPACE:Fi,DOCTYPE_NAME:Ii});var Mi=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window;const n=t=>e(t);if(n.version="3.0.9",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;let{document:r}=t;const o=r,i=o.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:l,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:f,DOMParser:p,trustedTypes:m}=t,h=c.prototype,g=_i(h,"cloneNode"),_=_i(h,"nextSibling"),y=_i(h,"childNodes"),b=_i(h,"parentNode");if("function"==typeof s){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let w,v="";const{implementation:x,createNodeIterator:k,createDocumentFragment:E,getElementsByTagName:S}=r,{importNode:C}=o;let T={};n.isSupported="function"==typeof qo&&"function"==typeof b&&x&&void 0!==x.createHTMLDocument;const{MUSTACHE_EXPR:N,ERB_EXPR:O,TMPLIT_EXPR:R,DATA_ATTR:A,ARIA_ATTR:P,IS_SCRIPT_OR_DATA:L,ATTR_WHITESPACE:U}=ji;let{IS_ALLOWED_URI:D}=ji,F=null;const I=mi({},[...yi,...bi,...wi,...xi,...Ei]);let j=null;const M=mi({},[...Si,...Ci,...Ti,...Ni]);let B=Object.seal(Xo(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),z=null,H=null,W=!0,q=!0,V=!1,$=!0,G=!1,Y=!1,J=!1,K=!1,X=!1,Z=!1,Q=!1,ee=!0,te=!1,ne=!0,re=!1,oe={},ie=null;const ae=mi({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let se=null;const le=mi({},["audio","video","img","source","image","track"]);let ce=null;const ue=mi({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),de="http://www.w3.org/1998/Math/MathML",fe="http://www.w3.org/2000/svg",pe="http://www.w3.org/1999/xhtml";let me=pe,he=!1,ge=null;const _e=mi({},[de,fe,pe],oi);let ye=null;const be=["application/xhtml+xml","text/html"];let we=null,ve=null;const xe=r.createElement("form"),ke=function(e){return e instanceof RegExp||e instanceof Function},Ee=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ve||ve!==e){if(e&&"object"==typeof e||(e={}),e=gi(e),ye=-1===be.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,we="application/xhtml+xml"===ye?oi:ri,F=ci(e,"ALLOWED_TAGS")?mi({},e.ALLOWED_TAGS,we):I,j=ci(e,"ALLOWED_ATTR")?mi({},e.ALLOWED_ATTR,we):M,ge=ci(e,"ALLOWED_NAMESPACES")?mi({},e.ALLOWED_NAMESPACES,oi):_e,ce=ci(e,"ADD_URI_SAFE_ATTR")?mi(gi(ue),e.ADD_URI_SAFE_ATTR,we):ue,se=ci(e,"ADD_DATA_URI_TAGS")?mi(gi(le),e.ADD_DATA_URI_TAGS,we):le,ie=ci(e,"FORBID_CONTENTS")?mi({},e.FORBID_CONTENTS,we):ae,z=ci(e,"FORBID_TAGS")?mi({},e.FORBID_TAGS,we):{},H=ci(e,"FORBID_ATTR")?mi({},e.FORBID_ATTR,we):{},oe=!!ci(e,"USE_PROFILES")&&e.USE_PROFILES,W=!1!==e.ALLOW_ARIA_ATTR,q=!1!==e.ALLOW_DATA_ATTR,V=e.ALLOW_UNKNOWN_PROTOCOLS||!1,$=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,G=e.SAFE_FOR_TEMPLATES||!1,Y=e.WHOLE_DOCUMENT||!1,X=e.RETURN_DOM||!1,Z=e.RETURN_DOM_FRAGMENT||!1,Q=e.RETURN_TRUSTED_TYPE||!1,K=e.FORCE_BODY||!1,ee=!1!==e.SANITIZE_DOM,te=e.SANITIZE_NAMED_PROPS||!1,ne=!1!==e.KEEP_CONTENT,re=e.IN_PLACE||!1,D=e.ALLOWED_URI_REGEXP||Ui,me=e.NAMESPACE||pe,B=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ke(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(B.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ke(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(B.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(B.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),G&&(q=!1),Z&&(X=!0),oe&&(F=mi({},Ei),j=[],!0===oe.html&&(mi(F,yi),mi(j,Si)),!0===oe.svg&&(mi(F,bi),mi(j,Ci),mi(j,Ni)),!0===oe.svgFilters&&(mi(F,wi),mi(j,Ci),mi(j,Ni)),!0===oe.mathMl&&(mi(F,xi),mi(j,Ti),mi(j,Ni))),e.ADD_TAGS&&(F===I&&(F=gi(F)),mi(F,e.ADD_TAGS,we)),e.ADD_ATTR&&(j===M&&(j=gi(j)),mi(j,e.ADD_ATTR,we)),e.ADD_URI_SAFE_ATTR&&mi(ce,e.ADD_URI_SAFE_ATTR,we),e.FORBID_CONTENTS&&(ie===ae&&(ie=gi(ie)),mi(ie,e.FORBID_CONTENTS,we)),ne&&(F["#text"]=!0),Y&&mi(F,["html","head","body"]),F.table&&(mi(F,["tbody"]),delete z.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw di('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw di('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=e.TRUSTED_TYPES_POLICY,v=w.createHTML("")}else void 0===w&&(w=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(i){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(m,i)),null!==w&&"string"==typeof v&&(v=w.createHTML(""));Jo&&Jo(e),ve=e}},Se=mi({},["mi","mo","mn","ms","mtext"]),Ce=mi({},["foreignobject","desc","title","annotation-xml"]),Te=mi({},["title","style","font","a","script"]),Ne=mi({},[...bi,...wi,...vi]),Oe=mi({},[...xi,...ki]),Re=function(e){ni(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},Ae=function(e,t){try{ni(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(r){ni(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!j[e])if(X||Z)try{Re(t)}catch(r){}else try{t.setAttribute(e,"")}catch(r){}},Pe=function(e){let t=null,n=null;if(K)e="<remove></remove>"+e;else{const t=ii(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ye&&me===pe&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=w?w.createHTML(e):e;if(me===pe)try{t=(new p).parseFromString(o,ye)}catch(a){}if(!t||!t.documentElement){t=x.createDocument(me,"template",null);try{t.documentElement.innerHTML=he?v:o}catch(a){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),me===pe?S.call(t,Y?"html":"body")[0]:Y?t.documentElement:i},Le=function(e){return k.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null)},Ue=function(e){return"function"==typeof l&&e instanceof l},De=function(e,t,r){T[e]&&ei(T[e],(e=>{e.call(n,t,r,ve)}))},Fe=function(e){let t=null;if(De("beforeSanitizeElements",e,null),(r=e)instanceof f&&("string"!=typeof r.nodeName||"string"!=typeof r.textContent||"function"!=typeof r.removeChild||!(r.attributes instanceof d)||"function"!=typeof r.removeAttribute||"function"!=typeof r.setAttribute||"string"!=typeof r.namespaceURI||"function"!=typeof r.insertBefore||"function"!=typeof r.hasChildNodes))return Re(e),!0;var r;const o=we(e.nodeName);if(De("uponSanitizeElement",e,{tagName:o,allowedTags:F}),e.hasChildNodes()&&!Ue(e.firstElementChild)&&ui(/<[/\w]/g,e.innerHTML)&&ui(/<[/\w]/g,e.textContent))return Re(e),!0;if(!F[o]||z[o]){if(!z[o]&&je(o)){if(B.tagNameCheck instanceof RegExp&&ui(B.tagNameCheck,o))return!1;if(B.tagNameCheck instanceof Function&&B.tagNameCheck(o))return!1}if(ne&&!ie[o]){const t=b(e)||e.parentNode,n=y(e)||e.childNodes;if(n&&t){for(let r=n.length-1;r>=0;--r)t.insertBefore(g(n[r],!0),_(e))}}return Re(e),!0}return e instanceof c&&!function(e){let t=b(e);t&&t.tagName||(t={namespaceURI:me,tagName:"template"});const n=ri(e.tagName),r=ri(t.tagName);return!!ge[e.namespaceURI]&&(e.namespaceURI===fe?t.namespaceURI===pe?"svg"===n:t.namespaceURI===de?"svg"===n&&("annotation-xml"===r||Se[r]):Boolean(Ne[n]):e.namespaceURI===de?t.namespaceURI===pe?"math"===n:t.namespaceURI===fe?"math"===n&&Ce[r]:Boolean(Oe[n]):e.namespaceURI===pe?!(t.namespaceURI===fe&&!Ce[r])&&!(t.namespaceURI===de&&!Se[r])&&!Oe[n]&&(Te[n]||!Ne[n]):!("application/xhtml+xml"!==ye||!ge[e.namespaceURI]))}(e)?(Re(e),!0):"noscript"!==o&&"noembed"!==o&&"noframes"!==o||!ui(/<\/no(script|embed|frames)/i,e.innerHTML)?(G&&3===e.nodeType&&(t=e.textContent,ei([N,O,R],(e=>{t=ai(t,e," ")})),e.textContent!==t&&(ni(n.removed,{element:e.cloneNode()}),e.textContent=t)),De("afterSanitizeElements",e,null),!1):(Re(e),!0)},Ie=function(e,t,n){if(ee&&("id"===t||"name"===t)&&(n in r||n in xe))return!1;if(q&&!H[t]&&ui(A,t));else if(W&&ui(P,t));else if(!j[t]||H[t]){if(!(je(e)&&(B.tagNameCheck instanceof RegExp&&ui(B.tagNameCheck,e)||B.tagNameCheck instanceof Function&&B.tagNameCheck(e))&&(B.attributeNameCheck instanceof RegExp&&ui(B.attributeNameCheck,t)||B.attributeNameCheck instanceof Function&&B.attributeNameCheck(t))||"is"===t&&B.allowCustomizedBuiltInElements&&(B.tagNameCheck instanceof RegExp&&ui(B.tagNameCheck,n)||B.tagNameCheck instanceof Function&&B.tagNameCheck(n))))return!1}else if(ce[t]);else if(ui(D,ai(n,U,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==si(n,"data:")||!se[e]){if(V&&!ui(L,ai(n,U,"")));else if(n)return!1}else;return!0},je=function(e){return"annotation-xml"!==e&&e.indexOf("-")>0},Me=function(e){De("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:j};let o=t.length;for(;o--;){const a=t[o],{name:s,namespaceURI:l,value:c}=a,u=we(s);let d="value"===s?c:li(c);if(r.attrName=u,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,De("uponSanitizeAttribute",e,r),d=r.attrValue,r.forceKeepAttr)continue;if(Ae(s,e),!r.keepAttr)continue;if(!$&&ui(/\/>/i,d)){Ae(s,e);continue}G&&ei([N,O,R],(e=>{d=ai(d,e," ")}));const f=we(e.nodeName);if(Ie(f,u,d)){if(!te||"id"!==u&&"name"!==u||(Ae(s,e),d="user-content-"+d),w&&"object"==typeof m&&"function"==typeof m.getAttributeType)if(l);else switch(m.getAttributeType(f,u)){case"TrustedHTML":d=w.createHTML(d);break;case"TrustedScriptURL":d=w.createScriptURL(d)}try{l?e.setAttributeNS(l,s,d):e.setAttribute(s,d),ti(n.removed)}catch(i){}}}De("afterSanitizeAttributes",e,null)},Be=function e(t){let n=null;const r=Le(t);for(De("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)De("uponSanitizeShadowNode",n,null),Fe(n)||(n.content instanceof a&&e(n.content),Me(n));De("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,s=null,c=null;if(he=!e,he&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Ue(e)){if("function"!=typeof e.toString)throw di("toString is not a function");if("string"!=typeof(e=e.toString()))throw di("dirty is not a string, aborting")}if(!n.isSupported)return e;if(J||Ee(t),n.removed=[],"string"==typeof e&&(re=!1),re){if(e.nodeName){const t=we(e.nodeName);if(!F[t]||z[t])throw di("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)r=Pe("\x3c!----\x3e"),i=r.ownerDocument.importNode(e,!0),1===i.nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!X&&!G&&!Y&&-1===e.indexOf("<"))return w&&Q?w.createHTML(e):e;if(r=Pe(e),!r)return X?null:Q?v:""}r&&K&&Re(r.firstChild);const u=Le(re?e:r);for(;s=u.nextNode();)Fe(s)||(s.content instanceof a&&Be(s.content),Me(s));if(re)return e;if(X){if(Z)for(c=E.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(j.shadowroot||j.shadowrootmode)&&(c=C.call(o,c,!0)),c}let d=Y?r.outerHTML:r.innerHTML;return Y&&F["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&ui(Ii,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),G&&ei([N,O,R],(e=>{d=ai(d,e," ")})),w&&Q?w.createHTML(d):d},n.setConfig=function(){Ee(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),J=!0},n.clearConfig=function(){ve=null,J=!1},n.isValidAttribute=function(e,t,n){ve||Ee({});const r=we(e),o=we(t);return Ie(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(T[e]=T[e]||[],ni(T[e],t))},n.removeHook=function(e){if(T[e])return ti(T[e])},n.removeHooks=function(e){T[e]&&(T[e]=[])},n.removeAllHooks=function(){T={}},n}();const Bi=({children:e})=>{const t=Or.Children.toArray(e),n=t.find((e=>e.type===zi)),r=t.find((e=>e.type===Hi));return Oe(Eo,{appear:!0,show:!0,enter:"transition duration-700 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:Oe("div",{class:"md:grid md:grid-cols-2 max-w-[59.5rem] mx-auto",children:[Oe(Eo,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:n&&Oe("div",{class:"flex items-center h-full",children:n})}),Oe(Eo,{appear:!0,show:!0,enter:"transition delay-300 duration-[600ms] ease-out",enterFrom:"opacity-0 -translate-y-6",enterTo:"opacity-100 translate-y-0",children:r&&Oe("div",{class:"flex items-center h-full",children:r})})]})})},zi=({children:e})=>Oe(_,{children:e}),Hi=({children:e})=>Oe(_,{children:e});Bi.Left=zi,Bi.Right=Hi;const Wi=e=>m("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,...e},m("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})),qi=e=>Oe(Eo,{appear:!0,show:!0,enter:"transition duration-300 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:Oe("div",{class:"w-full border border-gray-200 rounded-lg shadow-sm p-4 pl-3 md:p-6 space-y-2",children:e.items.map(((e,t)=>Oe("div",{class:"flex space-x-1",children:[Oe("span",{children:Oe(Oo,{class:"h-5 w-5 fill-primary-base"})}),Oe("span",{class:"text-sm leading-5 text-gray-600",children:e})]},t)))})}),Vi=e=>{const[t,n]=ue(!1);return Oe("div",{class:e.class,children:t?Oe(qi,{items:e.items}):Oe("button",{type:"button",class:"w-full inline-flex justify-center items-center px-4 py-3 border border-gray-200 shadow-sm text-sm font-medium rounded-md text-primary-base bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus",onClick:()=>n(!0),children:["Learn more",Oe("span",{class:"ml-1",children:Oe(Wi,{class:"h-4 w-4"})})]})})},$i=e=>{var t;fe((()=>{(async()=>{await Cn.command({offerName:e.step.name,eventType:"OfferViewed",data:{...e.step.metadata}})})()}),[e.step.name]);const n=async t=>{await Cn.command({offerName:e.step.name,eventType:"OfferProgressed",data:{...e.step.metadata,template:"Eoi",accepted:t}});return(t?e.primaryButton:e.secondaryButton).onClick()};return Oe(Bi,{children:[Oe(Bi.Left,{children:Oe("div",{children:[Oe("div",{class:"flex justify-between md:block text-xs tracking-wide",children:Oe("span",{class:"relative px-3 py-0.5 text-primary-base font-semibold",children:[e.stepNumber.current," OF ",e.stepNumber.total,Oe("span",{class:"absolute left-0 rounded-xl bg-primary-base opacity-10 w-full h-[90%]"})]})}),Oe(Eo,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:[Oe("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:e.step.content.mobileImageUrl,loading:"lazy"}),Oe("div",{class:"md:max-w-[27.5rem]",children:[Oe("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:e.step.content.title}),Oe("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:e.step.content.description}),e.step.content.details&&Oe("div",{class:"mt-6 hidden md:block",children:Oe(qi,{items:e.step.content.details})})]}),e.step.content.details&&Oe(Vi,{class:"mt-6 md:hidden",items:e.step.content.details}),e.children&&e.children,Oe("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:[Oe(Le,{class:e.primaryButton.class??"",onClickPromise:()=>n(!0),children:e.primaryButton.text??"Next"}),(null==(t=e.secondaryButton)?void 0:t.text)&&Oe(Le,{class:e.secondaryButton.class??"bg-white hover:!bg-gray-100 focus:!ring-gray-200 !border-0 !shadow-none !text-gray-700 !border-gray-300",onClickPromise:()=>n(!1),children:e.secondaryButton.text})]}),e.step.content.terms&&Oe("div",{class:"flex flex-col gap-3 mt-6 text-gray-600 text-xs",children:e.step.content.terms.map(((e,t)=>Oe("span",{dangerouslySetInnerHTML:{__html:Mi.sanitize(e,{ADD_ATTR:["target"]})}},t)))})]})]})}),Oe(Bi.Right,{children:Oe("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},Gi=e=>{fe((()=>{(async()=>{"name"in e.step&&await Cn.command({offerName:e.step.name,eventType:"OfferViewed",data:{...e.step.metadata}})})()}),[e.step]);return Oe(Bi,{children:[Oe(Bi.Left,{children:Oe("div",{children:[Oe("div",{class:"flex justify-between md:block text-xs tracking-wide",children:Oe("span",{class:"relative px-3 py-0.5 text-primary-base font-semibold",children:[e.stepNumber.current," OF ",e.stepNumber.total,Oe("span",{class:"absolute left-0 rounded-xl bg-primary-base opacity-10 w-full h-[90%]"})]})}),Oe(Eo,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:[Oe("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:e.step.content.mobileImageUrl,loading:"lazy"}),Oe("div",{class:"md:max-w-[27.5rem]",children:[Oe("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:e.step.content.title}),Oe("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:e.step.content.description}),e.step.content.details&&Oe("div",{class:"mt-6 hidden md:block",children:Oe(qi,{items:e.step.content.details})})]}),e.step.content.details&&Oe(Vi,{class:"mt-6 md:hidden",items:e.step.content.details}),e.children&&e.children,Oe("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:Oe(Le,{class:e.primaryButton.class??"",onClickPromise:async()=>{"name"in e.step&&await Cn.command({offerName:e.step.name,eventType:"OfferProgressed",data:{...e.step.metadata,template:"Simple"}}),e.primaryButton.onClick()},children:e.primaryButton.text??"Next"})}),e.step.content.terms&&Oe("div",{class:"flex flex-col gap-3 mt-6 text-gray-600 text-xs ",children:e.step.content.terms.map(((e,t)=>Oe("span",{dangerouslySetInnerHTML:{__html:Mi.sanitize(e,{ADD_ATTR:["target"]})}},t)))})]})]})}),Oe(Bi.Right,{children:Oe("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})};const Yi=e=>{switch(e.marketPlaceOffer.content.template){case"Eoi":return Oe($i,{stepNumber:e.stepNumber,step:e.marketPlaceOffer,primaryButton:{text:e.marketPlaceOffer.content.acceptButton,onClick:e.onStepComplete},secondaryButton:{text:e.marketPlaceOffer.content.declineButton,onClick:e.onStepComplete}});case"Simple":return Oe(Gi,{stepNumber:e.stepNumber,step:e.marketPlaceOffer,primaryButton:{text:e.marketPlaceOffer.content.acceptButton,onClick:e.onStepComplete}});default:return function(e){throw new Error(`ERROR! Reached forbidden guard function with unexpected value: ${JSON.stringify(e)}`)}(e.marketPlaceOffer.content.template)}},Ji=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/get-app-CQalMIl7.jpg").href:new URL("assets/get-app-CQalMIl7.jpg","undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),Ki=e=>m("svg",{width:36,height:42,viewBox:"0 0 36 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m("path",{d:"M29.7406 21.8737C29.7406 18.5174 31.3138 16.0681 34.3678 14.1632C32.6094 11.714 30.0182 10.444 26.5941 10.1719C23.2625 9.89974 19.6532 11.9861 18.3576 11.9861C16.9694 11.9861 13.8229 10.2626 11.3242 10.2626C6.14176 10.3533 0.681641 14.2539 0.681641 22.3273C0.681641 24.6858 1.05182 27.135 1.97726 29.6749C3.18034 33.0312 7.43738 41.1953 11.8795 41.0139C14.1931 41.0139 15.8589 39.3811 18.9129 39.3811C21.8743 39.3811 23.355 41.0139 25.9463 41.0139C30.4809 41.0139 34.3678 33.5755 35.4783 30.2192C29.4629 27.4071 29.7406 22.0551 29.7406 21.8737ZM24.5581 6.99696C27.0568 4.09418 26.7792 1.37283 26.7792 0.375C24.5581 0.556424 21.9668 1.9171 20.4861 3.54991C18.8203 5.36415 17.8949 7.63194 18.08 10.0812C20.4861 10.2626 22.7072 9.08333 24.5581 6.99696Z",fill:"#9CA3AF"})),Xi=e=>m("svg",{width:37,height:40,viewBox:"0 0 37 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},m("path",{d:"M24.1063 18.8401L6.78538 1.88173L28.8088 14.2567L24.1063 18.8401ZM2.318 0.888672C1.29913 1.42339 0.59375 2.41645 0.59375 3.63867V37.3262C0.59375 38.5484 1.29913 39.5415 2.318 39.9998L22.382 20.4442L2.318 0.888672ZM35.6274 18.1526L31.0033 15.5553L25.8305 20.4442L31.0033 25.4095L35.7058 22.8123C37.1165 21.7428 37.1165 19.222 35.6274 18.1526ZM6.78538 39.0067L28.8088 26.7081L24.1063 22.1248L6.78538 39.0067Z",fill:"#9CA3AF"})),Zi=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/get-app-mobile-DORYS6YR.jpg").href:new URL("assets/get-app-mobile-DORYS6YR.jpg","undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),Qi=()=>{fe((()=>{(async()=>{await Cn.command({eventType:"SummaryViewed",summaryVariant:"app"})})()}),[]);const{identity:e}=ye(Pe),t={...ea(e),imageUrl:Ji,mobileImageUrl:Zi},n={text:"Continue",class:"mt-6 md:mt-14",onClick:async()=>{await Cn.command({eventType:"Completed"});const e=document.querySelector(aa),t=new CustomEvent("step-completion",{bubbles:!0});null==e||e.dispatchEvent(t),await new Promise((e=>setTimeout(e,1e4)))}};return Oe(Bi,{children:[Oe(Bi.Left,{children:Oe("div",{children:[Oe("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:t.mobileImageUrl,loading:"lazy"}),Oe("div",{class:"md:max-w-[27.5rem]",children:[Oe("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:t.title}),Oe("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:t.description})]}),Oe("div",{class:"mt-6 flex space-x-6",children:[Oe(Ki,{}),Oe(Xi,{})]}),Oe(Le,{class:n.class,onClickPromise:n.onClick,children:n.text})]})}),Oe(Bi.Right,{children:Oe("img",{class:"max-w-[30rem] w-full hidden md:block",src:t.imageUrl,loading:"lazy"})})]})},ea=e=>{switch(e.registrationStatus){case"RegistrationAbandoned":return{title:"Join your workplace",description:`We’ve sent an email to ${e.email} with instructions on how join your workplace. This will enable you to access all your workplace benefits through the Flare app in the future.`};case"NewlyRegistered":return{title:"Join your workplace’s benefits program",description:`We’ve sent an email to ${e.email} with instructions on how to download the Flare app - where your company’s benefits live.`};default:return{title:"Check your email",description:`We’ve sent an email to ${e.email} with instructions on how to download and activate the Flare App and Card.`}}},ta=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/all-set-vt2mQYDm.jpg").href:new URL("assets/all-set-vt2mQYDm.jpg","undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),na=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/all-set-mobile-Fhtje9HW.jpg").href:new URL("assets/all-set-mobile-Fhtje9HW.jpg","undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),ra=()=>{fe((()=>{(async()=>{await Cn.command({eventType:"SummaryViewed",summaryVariant:"generic"})})()}),[]);const{workplace:e}=ye(Pe),t={imageUrl:ta,mobileImageUrl:na,title:"You're all set!",description:"PreviouslyLinked"===e.linkingStatus?"You’ve already connected this employer with your Flare Benefits account. Simply continue and review the details you have provided to complete your onboarding.":"Simply continue and review the details you have provided to complete your onboarding."},n={text:"Continue",class:"mt-6 md:mt-6",onClick:async()=>{await Cn.command({eventType:"Completed"});const e=document.querySelector(aa),t=new CustomEvent("step-completion",{bubbles:!0});null==e||e.dispatchEvent(t),await new Promise((e=>setTimeout(e,1e4)))}};return Oe(Bi,{children:[Oe(Bi.Left,{children:Oe("div",{children:[Oe("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:t.mobileImageUrl,loading:"lazy"}),Oe("div",{class:"md:max-w-[27.5rem]",children:[Oe("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:t.title}),Oe("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:t.description})]}),Oe("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:Oe(Le,{class:n.class,onClickPromise:n.onClick,children:n.text})})]})}),Oe(Bi.Right,{children:Oe("img",{class:"max-w-[30rem] w-full hidden md:block",src:t.imageUrl,loading:"lazy"})})]})},oa=()=>{const{offers:e,isComplete:t,isAppEnabled:n,identity:r,workplace:o,featureFlags:i,updateIdentity:a}=ye(Pe),{current:s,goNext:l}=function(e,t,n,r,o,i){const a=function(e,t,n,r,o,i){const{unifiedCustomerRegistration:a}=i,s=n?"SummaryApp":"SummaryGeneric";if(t)return[s];if(!a)return["Introduction",...e.map((e=>e.name)),s];switch(!0){case"PreviouslyLinked"===o.linkingStatus:return["Introduction","SummaryGeneric"];case"Unregistered"===r.registrationStatus:case"PreviouslyRegistered"===r.registrationStatus&&"Unlinked"===o.linkingStatus:return["Introduction","FlareAppIdentity"];case"PreviouslyRegistered"===r.registrationStatus&&"NewlyLinked"===o.linkingStatus:return[s];case"NewlyRegistered"===r.registrationStatus:return[...e.map((e=>e.name)),s];case"RegistrationAbandoned"===r.registrationStatus:return[s];default:return[]}}(e,t,n,r,o,i),[s,l]=ue(a[0]),c=ge((()=>{const t=e.find((e=>e.name===s));return t?{screenName:"MarketplaceOffer",offerName:t.name}:{screenName:s}}),[s,e]);return a.some((e=>e===s))||l(a[0]),{current:c,goNext:()=>{try{const e=a.findIndex((e=>e===s)),t=a[e+1];l(t)}catch{}}}}(e,t,n,r,o,i),c=_e((()=>{a(!0)}),[a]),u=_e((()=>{a(!1)}),[a]);switch(s.screenName){case"Introduction":return Oe(Wo,{employerName:o.employerName,onStepComplete:l});case"FlareAppIdentity":return Oe(zo,{onSuccess:c,onDecline:u});case"MarketplaceOffer":return Oe(Yi,{stepNumber:{current:e.findIndex((e=>e.name===s.offerName))+1,total:e.length},marketPlaceOffer:e.find((e=>e.name===s.offerName)),onStepComplete:l});case"SummaryApp":return Oe(Qi,{});case"SummaryGeneric":return Oe(ra,{});default:return Oe(_,{})}},ia=e=>{const t=e.offers.some((e=>"Perks"===e.name)),n=e.identity.isRegistered?"PreviouslyRegistered":"Unregistered",r={email:e.identity.email,phoneNumber:e.identity.phoneNumber??"",registrationStatus:n},o=e.workplace.isLinkedWithIdentity?"PreviouslyLinked":"Unlinked",i={employerName:e.workplace.employerName,linkingStatus:o};return{...Ae,...e,isAppEnabled:t,identity:r,workplace:i}},aa="benefits-onboarding";!function(e,t,n,r){function o(){var t=Reflect.construct(HTMLElement,[],o);return t._vdomComponent=e,t._root=r&&r.shadow?t.attachShadow({mode:r.mode||"open"}):t,t}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=q,o.prototype.attributeChangedCallback=$,o.prototype.disconnectedCallback=G,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(t){this._vdom?this.attributeChangedCallback(e,null,t):(this._props||(this._props={}),this._props[e]=t,this.connectedCallback());var n=typeof t;null!=t&&"string"!==n&&"boolean"!==n&&"number"!==n||this.setAttribute(e,t)}})})),customElements.define(t||e.tagName||e.displayName||e.name,o)}((e=>{const[t,n]=ue(),[r,o]=ue(0);fe((()=>xn((()=>{i().then((()=>o(r+1)))}))),[r]),fe((()=>{i()}),[]);const i=async()=>{const t={backendUrl:e["backend-url"],accessToken:e["access-token"],workflowsInstanceId:e["workflows-instance-id"]};Cn.initClient(t.backendUrl,t.accessToken,t.workflowsInstanceId);const r=await Cn.init();n(ia(r))},a=_e((e=>{if(!t)return;const{identity:r,workplace:o}=t,i=e?"Unregistered"===r.registrationStatus?"NewlyRegistered":r.registrationStatus:"RegistrationAbandoned",a=e?"Unlinked"===o.linkingStatus?"NewlyLinked":o.linkingStatus:"Unlinked";n({...t,identity:{...r,registrationStatus:i},workplace:{...o,linkingStatus:a}})}),[t]);return Oe(_,{children:[Oe("style",{children:'/*! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}span a{color:var(--fl-color-primary)}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.static{position:static}.absolute{position:absolute}.relative{position:relative}.inset-y-0{bottom:0;top:0}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.z-10{z-index:10}.z-50{z-index:50}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-auto{margin-bottom:auto;margin-top:auto}.mb-1{margin-bottom:.25rem}.ml-1{margin-left:.25rem}.ml-3{margin-left:.75rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-20{margin-top:5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-10{height:2.5rem}.h-16{height:4rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\\[1\\.25rem\\]{height:1.25rem}.h-\\[1\\.5rem\\]{height:1.5rem}.h-\\[90\\%\\]{height:90%}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.max-h-60{max-height:15rem}.w-1\\/2{width:50%}.w-10{width:2.5rem}.w-16{width:4rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-7{width:1.75rem}.w-\\[1\\.25rem\\]{width:1.25rem}.w-\\[2\\.75rem\\]{width:2.75rem}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-60{min-width:15rem}.max-w-40{max-width:10rem}.max-w-\\[30rem\\]{max-width:30rem}.max-w-\\[40rem\\]{max-width:40rem}.max-w-\\[59\\.5rem\\]{max-width:59.5rem}.max-w-full{max-width:100%}.shrink-0{flex-shrink:0}.-translate-y-6{--tw-translate-y:-1.5rem}.-translate-y-6,.translate-x-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x:0px}.translate-x-\\[1\\.25rem\\]{--tw-translate-x:1.25rem}.translate-x-\\[1\\.25rem\\],.translate-x-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x:100%}.translate-y-0{--tw-translate-y:0px}.transform,.translate-y-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0}.gap-0\\.5{gap:.125rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.25rem*var(--tw-space-x-reverse))}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1.5rem*var(--tw-space-x-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.overflow-auto{overflow:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.break-words{overflow-wrap:break-word}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.\\!border-0{border-width:0!important}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.\\!border-gray-300{--tw-border-opacity:1!important;border-color:rgb(209 213 219/var(--tw-border-opacity))!important}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-primary-base{background-color:var(--fl-color-primary)}.bg-primary-hover{background-color:var(--fl-color-primary-hover)}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.fill-gray-200{fill:#e5e7eb}.fill-primary-base{fill:var(--fl-color-primary)}.fill-white{fill:#fff}.p-0{padding:0}.p-0\\.5{padding:.125rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.px-px{padding-left:1px;padding-right:1px}.py-0{padding-bottom:0;padding-top:0}.py-0\\.5{padding-bottom:.125rem;padding-top:.125rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.pb-8{padding-bottom:2rem}.pl-3{padding-left:.75rem}.pr-10{padding-right:2.5rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.font-inter{font-family:Inter,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.leading-8{line-height:2rem}.leading-none{line-height:1}.tracking-wide{letter-spacing:.025em}.\\!text-gray-700{--tw-text-opacity:1!important;color:rgb(55 65 81/var(--tw-text-opacity))!important}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-primary-base{color:var(--fl-color-primary)}.text-rose-500{--tw-text-opacity:1;color:rgb(244 63 94/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.accent-primary-base{accent-color:var(--fl-color-primary)}.opacity-0{opacity:0}.opacity-10{opacity:.1}.opacity-100{opacity:1}.\\!shadow-none{--tw-shadow:0 0 #0000!important;--tw-shadow-colored:0 0 #0000!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-0,.ring-2{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-gray-200{--tw-ring-opacity:1;--tw-ring-color:rgb(229 231 235/var(--tw-ring-opacity))}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.delay-300{transition-delay:.3s}.duration-100{transition-duration:.1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-700{transition-duration:.7s}.duration-\\[600ms\\]{transition-duration:.6s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.hover\\:\\!bg-gray-100:hover{--tw-bg-opacity:1!important;background-color:rgb(243 244 246/var(--tw-bg-opacity))!important}.hover\\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.hover\\:bg-primary-hover:hover{background-color:var(--fl-color-primary-hover)}.hover\\:bg-sky-50\\/50:hover{background-color:#f0f9ff80}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:\\!ring-gray-200:focus{--tw-ring-opacity:1!important;--tw-ring-color:rgb(229 231 235/var(--tw-ring-opacity))!important}.focus\\:ring-primary-focus:focus{--tw-ring-color:var(--fl-color-primary-focus)}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\\:border-gray-700:focus-visible{--tw-border-opacity:1;border-color:rgb(55 65 81/var(--tw-border-opacity))}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:ring-gray-500:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(107 114 128/var(--tw-ring-opacity))}.focus-visible\\:ring-white:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(255 255 255/var(--tw-ring-opacity))}.focus-visible\\:ring-opacity-75:focus-visible{--tw-ring-opacity:.75}.disabled\\:cursor-text:disabled{cursor:text}.disabled\\:bg-gray-100:disabled{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.disabled\\:px-0:disabled{padding-left:0;padding-right:0}.disabled\\:text-gray-300:disabled{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.disabled\\:text-gray-600:disabled{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.disabled\\:opacity-75:disabled{opacity:.75}.disabled\\:hover\\:bg-transparent:hover:disabled{background-color:transparent}@media (min-width:768px){.md\\:mt-0{margin-top:0}.md\\:mt-11{margin-top:2.75rem}.md\\:mt-14{margin-top:3.5rem}.md\\:mt-3{margin-top:.75rem}.md\\:mt-6{margin-top:1.5rem}.md\\:block{display:block}.md\\:grid{display:grid}.md\\:hidden{display:none}.md\\:w-\\[240px\\]{width:240px}.md\\:w-\\[300px\\]{width:300px}.md\\:w-auto{width:auto}.md\\:w-full{width:100%}.md\\:max-w-\\[27\\.5rem\\]{max-width:27.5rem}.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:flex-row{flex-direction:row}.md\\:justify-between{justify-content:space-between}.md\\:p-6{padding:1.5rem}.md\\:py-24{padding-bottom:6rem;padding-top:6rem}.md\\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\\:text-lg{font-size:1.125rem}.md\\:leading-7,.md\\:text-lg{line-height:1.75rem}.md\\:leading-9{line-height:2.25rem}.md\\:transition-none{transition-property:none}}'.toString()}),Oe("div",{class:"font-inter pt-6 pb-8 md:py-24 px-px",children:t?Oe(Pe.Provider,{value:{...t,updateIdentity:a},children:Oe(oa,{})}):Oe("div",{class:"flex justify-center",children:Oe("span",{class:"animate-spin",children:Oe(Re,{size:"lg"})})})},r)]})}),aa,[],{shadow:!0})}));
package/package.json CHANGED
@@ -1,48 +1,43 @@
1
1
  {
2
2
  "name": "@flarehr/apollo-benefits-onboarding",
3
- "version": "1.55.90",
3
+ "version": "1.58.93",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "dist/"
7
7
  ],
8
+ "type": "module",
8
9
  "scripts": {
9
- "start": "webpack serve --mode development",
10
- "build": "webpack --mode production --node-env production",
10
+ "start": "vite --open index.html",
11
+ "build": "tsc && vite build",
11
12
  "test": "",
12
13
  "lint": "eslint src/**/*.{js,jsx,ts,tsx}",
13
14
  "lint:fix": "eslint src/**/*.{js,jsx,ts,tsx} --fix"
14
15
  },
15
16
  "dependencies": {
16
- "@headlessui/react": "^1.6.6",
17
- "axios": "^0.27.2",
18
- "dompurify": "^3.0.1",
19
- "preact": "^10.10.0",
20
- "preact-custom-element": "^4.2.1"
17
+ "@headlessui/react": "^1.7.18",
18
+ "axios": "^1.6.7",
19
+ "dompurify": "^3.0.9",
20
+ "preact": "^10.19.5",
21
+ "preact-custom-element": "^4.3.0"
21
22
  },
22
23
  "devDependencies": {
23
- "@svgr/webpack": "^6.3.1",
24
- "@types/dompurify": "^3.0.0",
25
- "@types/preact-custom-element": "^4.0.1",
26
- "@typescript-eslint/eslint-plugin": "^5.31.0",
27
- "@typescript-eslint/parser": "^5.31.0",
28
- "autoprefixer": "^10.4.7",
29
- "css-loader": "^6.7.1",
30
- "cssnano": "^5.1.12",
31
- "eslint": "^8.20.0",
24
+ "@preact/preset-vite": "^2.8.1",
25
+ "@types/dompurify": "^3.0.5",
26
+ "@types/preact-custom-element": "^4.0.4",
27
+ "@typescript-eslint/eslint-plugin": "^7.0.2",
28
+ "autoprefixer": "^10.4.17",
29
+ "cssnano": "^6.0.3",
30
+ "eslint": "^8.56.0",
32
31
  "eslint-config-preact": "^1.3.0",
33
- "eslint-config-prettier": "^8.5.0",
34
- "eslint-plugin-jest": "^26.6.0",
35
- "eslint-plugin-simple-import-sort": "^10.0.0",
36
- "html-webpack-plugin": "^5.5.0",
37
- "jest": "^28.1.3",
38
- "postcss": "^8.4.14",
39
- "postcss-loader": "^7.0.1",
40
- "prettier": "^2.7.1",
41
- "tailwindcss": "^3.1.6",
42
- "ts-loader": "^9.3.1",
43
- "typescript": "^4.7.4",
44
- "webpack": "^5.74.0",
45
- "webpack-cli": "^4.10.0",
46
- "webpack-dev-server": "^4.9.3"
32
+ "eslint-config-prettier": "^9.1.0",
33
+ "eslint-plugin-jest": "^27.9.0",
34
+ "eslint-plugin-simple-import-sort": "^12.0.0",
35
+ "jest": "^29.7.0",
36
+ "prettier": "3.2.5",
37
+ "tailwindcss": "^3.4.1",
38
+ "terser": "^5.27.2",
39
+ "typescript": "^5.3.3",
40
+ "vite": "^5.1.3",
41
+ "vite-plugin-svgr": "^4.2.0"
47
42
  }
48
43
  }
@@ -1 +0,0 @@
1
- /*! @license DOMPurify 3.0.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.1/LICENSE */
File without changes