@flarehr/apollo-benefits-onboarding 1.63.98 → 1.65.103
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
|
|
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),__accessCheck=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},__privateGet=(e,t,n)=>(__accessCheck(e,t,"read from private field"),n?n.call(e):t.get(e)),__privateAdd=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},__privateSet=(e,t,n,r)=>(__accessCheck(e,t,"write to private field"),r?r.call(e,n):t.set(e,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,d,p,f={},m=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,g=Array.isArray;function b(e,t){for(var n in t)e[n]=t[n];return e}function _(e){var t=e.parentNode;t&&t.removeChild(e)}function y(e,t,n){var r,o,a,s={};for(a in t)"key"==a?r=t[a]:"ref"==a?o=t[a]:s[a]=t[a];if(arguments.length>2&&(s.children=arguments.length>3?i.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]);return v(e,s,r,o,null)}function v(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++s:o,__i:-1,__u:0};return null==o&&null!=a.vnode&&a.vnode(i),i}function w(){return{current:null}}function x(e){return e.children}function k(e,t){this.props=e,this.context=t}function S(e,t){if(null==t)return e.__?S(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?S(e):null}function E(e,t,n){var r,o=e.__v,i=o.__e,s=e.__P;if(s)return(r=b({},o)).__v=o.__v+1,a.vnode&&a.vnode(r),F(s,r,o,e.__n,void 0!==s.ownerSVGElement,32&o.__u?[i]:null,t,null==i?S(o):i,!!(32&o.__u),n),r.__v=o.__v,r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=i&&C(r),r}function C(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 C(e)}}function N(e){(!e.__d&&(e.__d=!0)&&l.push(e)&&!T.__r++||c!==a.debounceRendering)&&((c=a.debounceRendering)||u)(T)}function T(){var e,t,n,r=[],o=[];for(l.sort(d);e=l.shift();)e.__d&&(n=l.length,t=E(e,r,o)||t,0===n||l.length>n?(j(r,t,o),o.length=r.length=0,t=void 0,l.sort(d)):t&&a.__c&&a.__c(t,m));t&&j(r,t,o),T.__r=0}function O(e,t,n,r,o,i,a,s,l,c,u){var d,p,h,b,_,y=r&&r.__k||m,w=t.length;for(n.__d=l,function(e,t,n){var r,o,i,a,s,l=t.length,c=n.length,u=c,d=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?v(null,o,null,null,o):g(o)?v(x,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?v(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,s=P(o,n,a=r+d,u),o.__i=s,i=null,-1!==s&&(u--,(i=n[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&d--,"function"!=typeof o.type&&(o.__u|=65536)):s!==a&&(s===a+1?d++:s>a?u>l-a?d+=s-a:d--:d=s<a&&s==a-1?s-a:0,s!==r+d&&(o.__u|=65536))):(i=n[r])&&null==i.key&&i.__e&&0==(131072&i.__u)&&(i.__e==e.__d&&(e.__d=S(i)),B(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=S(i)),B(i,i))}(n,t,y),l=n.__d,d=0;d<w;d++)null!=(h=n.__k[d])&&"boolean"!=typeof h&&"function"!=typeof h&&(p=-1===h.__i?f:y[h.__i]||f,h.__i=d,F(e,h,p,o,i,a,s,l,c,u),b=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&M(p.ref,null,h),u.push(h.ref,h.__c||b,h)),null==_&&null!=b&&(_=b),65536&h.__u||p.__k===h.__k?l=R(h,l,e):"function"==typeof h.type&&void 0!==h.__d?l=h.__d:b&&(l=b.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=l,n.__e=_}function R(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=R(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 A(e,t){return t=t||[],null==e||"boolean"==typeof e||(g(e)?e.some((function(e){A(e,t)})):t.push(e)),t}function P(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 L(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||h.test(t)?n:n+"px"}function I(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||L(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||L(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?U:D,i)):e.removeEventListener(t,i?U:D,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 D(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(a.event?a.event(e):e)}}function U(e){if(this.l)return this.l[e.type+!0](a.event?a.event(e):e)}function F(e,t,n,r,o,s,l,c,u,d){var p,m,h,y,v,w,E,C,N,T,R,A,P,L,D,U=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(u=!!(32&n.__u),s=[c=t.__e=n.__e]),(p=a.__b)&&p(t);e:if("function"==typeof U)try{if(C=t.props,N=(p=U.contextType)&&r[p.__c],T=p?N?N.props.value:p.__:r,n.__c?E=(m=t.__c=n.__c).__=m.__E:("prototype"in U&&U.prototype.render?t.__c=m=new U(C,T):(t.__c=m=new k(C,T),m.constructor=U,m.render=z),N&&N.sub(m),m.props=C,m.state||(m.state={}),m.context=T,m.__n=r,h=m.__d=!0,m.__h=[],m._sb=[]),null==m.__s&&(m.__s=m.state),null!=U.getDerivedStateFromProps&&(m.__s==m.state&&(m.__s=b({},m.__s)),b(m.__s,U.getDerivedStateFromProps(C,m.__s))),y=m.props,v=m.state,m.__v=t,h)null==U.getDerivedStateFromProps&&null!=m.componentWillMount&&m.componentWillMount(),null!=m.componentDidMount&&m.__h.push(m.componentDidMount);else{if(null==U.getDerivedStateFromProps&&C!==y&&null!=m.componentWillReceiveProps&&m.componentWillReceiveProps(C,T),!m.__e&&(null!=m.shouldComponentUpdate&&!1===m.shouldComponentUpdate(C,m.__s,T)||t.__v===n.__v)){for(t.__v!==n.__v&&(m.props=C,m.state=m.__s,m.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),R=0;R<m._sb.length;R++)m.__h.push(m._sb[R]);m._sb=[],m.__h.length&&l.push(m);break e}null!=m.componentWillUpdate&&m.componentWillUpdate(C,m.__s,T),null!=m.componentDidUpdate&&m.__h.push((function(){m.componentDidUpdate(y,v,w)}))}if(m.context=T,m.props=C,m.__P=e,m.__e=!1,A=a.__r,P=0,"prototype"in U&&U.prototype.render){for(m.state=m.__s,m.__d=!1,A&&A(t),p=m.render(m.props,m.state,m.context),L=0;L<m._sb.length;L++)m.__h.push(m._sb[L]);m._sb=[]}else do{m.__d=!1,A&&A(t),p=m.render(m.props,m.state,m.context),m.state=m.__s}while(m.__d&&++P<25);m.state=m.__s,null!=m.getChildContext&&(r=b(b({},r),m.getChildContext())),h||null==m.getSnapshotBeforeUpdate||(w=m.getSnapshotBeforeUpdate(y,v)),O(e,g(D=null!=p&&p.type===x&&null==p.key?p.props.children:p)?D:[D],t,n,r,o,s,l,c,u,d),m.base=t.__e,t.__u&=-161,m.__h.length&&l.push(m),E&&(m.__E=m.__=null)}catch(F){t.__v=null,u||null!=s?(t.__e=c,t.__u|=u?160:32,s[s.indexOf(c)]=null):(t.__e=n.__e,t.__k=n.__k),a.__e(F,t,n)}else null==s&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,o,a,s,l,c){var u,d,p,m,h,b,y,v=n.props,w=t.props,x=t.type;if("svg"===x&&(o=!0),null!=a)for(u=0;u<a.length;u++)if((h=a[u])&&"setAttribute"in h==!!x&&(x?h.localName===x:3===h.nodeType)){e=h,a[u]=null;break}if(null==e){if(null===x)return document.createTextNode(w);e=o?document.createElementNS("http://www.w3.org/2000/svg",x):document.createElement(x,w.is&&w),a=null,l=!1}if(null===x)v===w||l&&e.data===w||(e.data=w);else{if(a=a&&i.call(e.childNodes),v=n.props||f,!l&&null!=a)for(v={},u=0;u<e.attributes.length;u++)v[(h=e.attributes[u]).name]=h.value;for(u in v)h=v[u],"children"==u||("dangerouslySetInnerHTML"==u?p=h:"key"===u||u in w||I(e,u,null,h,o));for(u in w)h=w[u],"children"==u?m=h:"dangerouslySetInnerHTML"==u?d=h:"value"==u?b=h:"checked"==u?y=h:"key"===u||l&&"function"!=typeof h||v[u]===h||I(e,u,h,v[u],o);if(d)l||p&&(d.__html===p.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(p&&(e.innerHTML=""),O(e,g(m)?m:[m],t,n,r,o&&"foreignObject"!==x,a,s,a?a[0]:n.__k&&S(n,0),l,c),null!=a)for(u=a.length;u--;)null!=a[u]&&_(a[u]);l||(u="value",void 0!==b&&(b!==e[u]||"progress"===x&&!b||"option"===x&&b!==v[u])&&I(e,u,b,v[u],!1),u="checked",void 0!==y&&y!==e[u]&&I(e,u,y,v[u],!1))}return e}(n.__e,t,n,r,o,s,l,u,d);(p=a.diffed)&&p(t)}function j(e,t,n){for(var r=0;r<n.length;r++)M(n[r],n[++r],n[++r]);a.__c&&a.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(n){a.__e(n,t.__v)}}))}function M(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(r){a.__e(r,n)}}function B(e,t,n){var r,o;if(a.unmount&&a.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||M(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){a.__e(i,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&B(r[o],t,n||"function"!=typeof e.type);n||null==e.__e||_(e.__e),e.__=e.__e=e.__d=void 0}function z(e,t,n){return this.constructor(e,n)}function H(e,t,n){var r,o,s,l;a.__&&a.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,s=[],l=[],F(t,e=(!r&&n||t).__k=y(x,null,[e]),o||f,f,void 0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?i.call(t.childNodes):null,s,!r&&n?n:o?o.__e:t.firstChild,r,l),e.__d=void 0,j(s,e,l)}function V(e,t){H(e,t,V)}function W(e,t,n){var r,o,a,s,l=b({},e.props);for(a in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)"key"==a?r=t[a]:"ref"==a?o=t[a]:l[a]=void 0===t[a]&&void 0!==s?s[a]:t[a];return arguments.length>2&&(l.children=arguments.length>3?i.call(arguments,2):n),v(e.type,l,r||e.key,o||e.ref,null)}function q(e,t){var n={__c:t="__cC"+p++,__: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,N(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 $(){return($=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)}i=m.slice,a={__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}},s=0,k.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=b({},this.state),"function"==typeof e&&(e=e(b({},n),this.props)),e&&b(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),N(this))},k.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),N(this))},k.prototype.render=x,l=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,d=function(e,t){return e.__v.__b-t.__v.__b},T.__r=0,p=0;var G=["context","children"];function Y(e){return this.getChildContext=function(){return e.context},W(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,G))}function K(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=y(Y,$({},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[Q(a[i].name)]=a[i].value);for(i=s.length;i--;){var l=e(s[i],null),c=s[i].slot;c?o[c]=y(Z,{name:c},l):r[i]=l}var u=n?y(Z,null,r):r;return y(n||t.nodeName.toLowerCase(),o,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?V:H)(this._vdom,this._root)}function Q(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function J(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[Q(e)]=n,this._vdom=W(this._vdom,r),H(this._vdom,this._root)}}function X(){H(this._vdom=null,this._root)}function Z(e,t){var n=this;return y("slot",$({},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 ee,te,ne,re,oe=0,ie=[],ae=[],se=a,le=se.__b,ce=se.__r,ue=se.diffed,de=se.__c,pe=se.unmount,fe=se.__;function me(e,t){se.__h&&se.__h(te,e,oe||t),oe=0;var n=te.__H||(te.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:ae}),n.__[e]}function he(e){return oe=1,ge(Pe,e)}function ge(e,t,n){var r=me(ee++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Pe(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=te,!te.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))};te.u=!0;var i=te.shouldComponentUpdate,a=te.componentWillUpdate;te.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)},te.shouldComponentUpdate=o}return r.__N||r.__}function be(e,t){var n=me(ee++,3);!se.__s&&Ae(n.__H,t)&&(n.__=e,n.i=t,te.__H.__h.push(n))}function _e(e,t){var n=me(ee++,4);!se.__s&&Ae(n.__H,t)&&(n.__=e,n.i=t,te.__h.push(n))}function ye(e){return oe=5,we((function(){return{current:e}}),[])}function ve(e,t,n){oe=6,_e((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 we(e,t){var n=me(ee++,7);return Ae(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function xe(e,t){return oe=8,we((function(){return e}),t)}function ke(e){var t=te.context[e.__c],n=me(ee++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(te)),t.props.value):e.__}function Se(e,t){se.useDebugValue&&se.useDebugValue(t?t(e):e)}function Ee(){var e=me(ee++,11);if(!e.__){for(var t=te.__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 Ce(){for(var e;e=ie.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Oe),e.__H.__h.forEach(Re),e.__H.__h=[]}catch(co){e.__H.__h=[],se.__e(co,e.__v)}}se.__b=function(e){te=null,le&&le(e)},se.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),fe&&fe(e,t)},se.__r=function(e){ce&&ce(e),ee=0;var t=(te=e.__c).__H;t&&(ne===te?(t.__h=[],te.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=ae,e.__N=e.i=void 0}))):(t.__h.forEach(Oe),t.__h.forEach(Re),t.__h=[],ee=0)),ne=te},se.diffed=function(e){ue&&ue(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==ie.push(t)&&re===se.requestAnimationFrame||((re=se.requestAnimationFrame)||Te)(Ce)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==ae&&(e.__=e.__V),e.i=void 0,e.__V=ae}))),ne=te=null},se.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Oe),e.__h=e.__h.filter((function(e){return!e.__||Re(e)}))}catch(Jo){t.some((function(e){e.__h&&(e.__h=[])})),t=[],se.__e(Jo,e.__v)}})),de&&de(e,t)},se.unmount=function(e){pe&&pe(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Oe(e)}catch(n){t=n}})),n.__H=void 0,t&&se.__e(t,n.__v))};var Ne="function"==typeof requestAnimationFrame;function Te(e){var t,n=function(){clearTimeout(r),Ne&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Ne&&(t=requestAnimationFrame(n))}function Oe(e){var t=te,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),te=t}function Re(e){var t=te;e.__c=e.__(),te=t}function Ae(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Pe(e,t){return"function"==typeof t?t(e):t}var Le=0;function Ie(e,t,n,r,o,i){var s,l,c={};for(l in t)"ref"==l?s=t[l]:c[l]=t[l];var u={type:e,props:c,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--Le,__i:-1,__u:0,__source:o,__self:i};if("function"==typeof e&&(s=e.defaultProps))for(l in s)void 0===c[l]&&(c[l]=s[l]);return a.vnode&&a.vnode(u),u}const De=e=>Ie("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:[Ie("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"}),Ie("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"})]}),Ue={offers:[],isComplete:!1,isAppEnabled:!1,identity:{email:"",phoneNumber:"",verifiedPhoneNumber:"",registrationStatus:"Unregistered"},workplace:{employerName:"",linkingStatus:"Unlinked"},featureFlags:{unifiedCustomerRegistration:!1},updateIdentity:e=>({})},Fe=q(Ue);var je=(e=>(e[e.PHONE_NUMBER=0]="PHONE_NUMBER",e[e.OTP=1]="OTP",e[e.SUCCESS=2]="SUCCESS",e))(je||{});function Me(e,t){for(var n in t)e[n]=t[n];return e}function Be(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 ze(e,t){this.props=e,this.context=t}function He(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:Be(this.props,e)}function r(t){return this.shouldComponentUpdate=n,y(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(ze.prototype=new k).isPureReactComponent=!0,ze.prototype.shouldComponentUpdate=function(e,t){return Be(this.props,e)||Be(this.state,t)};var Ve=a.__b;a.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ve&&Ve(e)};var We="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function qe(e){function t(t){var n=Me({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=We,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var $e=function(e,t){return null==e?null:A(A(e).map(t))},Ge={map:$e,forEach:$e,count:function(e){return e?A(e).length:0},only:function(e){var t=A(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:A},Ye=a.__e;a.__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);Ye(e,t,n,r)};var Ke=a.unmount;function Qe(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=Me({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Qe(e,t,n)}))),e}function Je(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return Je(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 Xe(){this.__u=0,this.t=null,this.__b=null}function Ze(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function et(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 y(n,o)}return o.displayName="Lazy",o.__f=!0,o}function tt(){this.u=null,this.o=null}a.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Ke&&Ke(e)},(Xe.prototype=new k).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=Ze(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]=Je(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)},Xe.prototype.componentWillUnmount=function(){this.t=[]},Xe.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]=Qe(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&y(x,null,e.fallback);return o&&(o.__u&=-33),[y(x,null,t.__a?null:e.children),o]};var nt=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 rt(e){return this.getChildContext=function(){return e.context},e.children}function ot(e){var t=this,n=e.i;t.componentWillUnmount=function(){H(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)}}),H(y(rt,{context:t.context},e.__v),t.l)}function it(e,t){var n=y(ot,{__v:e,i:t});return n.containerInfo=t,n}(tt.prototype=new k).__a=function(e){var t=this,n=Ze(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),nt(t,e,r)):o()};n?n(i):i()}},tt.prototype.render=function(e){this.u=null,this.o=new Map;var t=A(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},tt.prototype.componentDidUpdate=tt.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){nt(e,n,t)}))};var at="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,st=/^(?: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]/,lt=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ct=/[A-Z0-9]/g,ut="undefined"!=typeof document,dt=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function pt(e,t,n){return null==t.__k&&(t.textContent=""),H(e,t),"function"==typeof n&&n(),e?e.__c:null}function ft(e,t,n){return V(e,t),"function"==typeof n&&n(),e?e.__c:null}k.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(k.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var mt=a.event;function ht(){}function gt(){return this.cancelBubble}function bt(){return this.defaultPrevented}a.event=function(e){return mt&&(e=mt(e)),e.persist=ht,e.isPropagationStopped=gt,e.isDefaultPrevented=bt,e.nativeEvent=e};var _t,yt={enumerable:!1,configurable:!0,get:function(){return this.class}},vt=a.vnode;a.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||ut&&"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||dt(t.type)?"onfocus"===a?o="onfocusin":"onblur"===a?o="onfocusout":lt.test(o)?o=a:-1===n.indexOf("-")&&st.test(o)?o=o.replace(ct,"-$&").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=A(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=A(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",yt)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=at,vt&&vt(e)};var wt=a.__r;a.__r=function(e){wt&&wt(e),_t=e.__c};var xt=a.diffed;a.diffed=function(e){xt&&xt(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),_t=null};var kt={ReactCurrentDispatcher:{current:{readContext:function(e){return _t.__n[e.__c].props.value}}}};function St(e){return y.bind(null,e)}function Et(e){return!!e&&e.$$typeof===at}function Ct(e){return Et(e)&&e.type===x}function Nt(e){return Et(e)?W.apply(null,arguments):e}function Tt(e){return!!e.__k&&(H(null,e),!0)}function Ot(e){return e&&(e.base||1===e.nodeType&&e)||null}var Rt=function(e,t){return e(t)},At=function(e,t){return e(t)},Pt=x;function Lt(e){e()}function It(e){return e}function Dt(){return[!1,Lt]}var Ut=_e,Ft=Et;function jt(e,t){var n=t(),r=he({h:{__:n,v:t}}),o=r[0].h,i=r[1];return _e((function(){o.__=n,o.v=t,Mt(o)&&i({h:o})}),[e,n,t]),be((function(){return Mt(o)&&i({h:o}),e((function(){Mt(o)&&i({h:o})}))}),[e]),n}function Mt(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 Bt={useState:he,useId:Ee,useReducer:ge,useEffect:be,useLayoutEffect:_e,useInsertionEffect:Ut,useTransition:Dt,useDeferredValue:It,useSyncExternalStore:jt,startTransition:Lt,useRef:ye,useImperativeHandle:ve,useMemo:we,useCallback:xe,useContext:ke,useDebugValue:Se,version:"17.0.2",Children:Ge,render:pt,hydrate:ft,unmountComponentAtNode:Tt,createPortal:it,createElement:y,createContext:q,createFactory:St,cloneElement:Nt,createRef:w,Fragment:x,isValidElement:Et,isElement:Ft,isFragment:Ct,findDOMNode:Ot,Component:k,PureComponent:ze,memo:He,forwardRef:qe,flushSync:At,unstable_batchedUpdates:Rt,StrictMode:Pt,Suspense:Xe,SuspenseList:tt,lazy:et,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:kt};const zt=Object.freeze(Object.defineProperty({__proto__:null,Children:Ge,Component:k,Fragment:x,PureComponent:ze,StrictMode:Pt,Suspense:Xe,SuspenseList:tt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:kt,cloneElement:Nt,createContext:q,createElement:y,createFactory:St,createPortal:it,createRef:w,default:Bt,findDOMNode:Ot,flushSync:At,forwardRef:qe,hydrate:ft,isElement:Ft,isFragment:Ct,isValidElement:Et,lazy:et,memo:He,render:pt,startTransition:Lt,unmountComponentAtNode:Tt,unstable_batchedUpdates:Rt,useCallback:xe,useContext:ke,useDebugValue:Se,useDeferredValue:It,useEffect:be,useErrorBoundary:function(e){var t=me(ee++,10),n=he();return t.__=e,te.componentDidCatch||(te.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:Ee,useImperativeHandle:ve,useInsertionEffect:Ut,useLayoutEffect:_e,useMemo:we,useReducer:ge,useRef:ye,useState:he,useSyncExternalStore:jt,useTransition:Dt,version:"17.0.2"},Symbol.toStringTag,{value:"Module"})),Ht=e=>y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"green",className:"w-5 h-5",...e},y("path",{fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm3.857-9.809a.75.75 0 0 0-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 1 0-1.06 1.061l2.5 2.5a.75.75 0 0 0 1.137-.089l4-5.5Z",clipRule:"evenodd"})),Vt=e=>{const[t,n]=he(!1);return Ie("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:[Ie("div",{class:""+(t?"invisible":""),children:e.children}),t&&Ie("div",{class:"absolute animate-spin",children:Ie(De,{theme:"light"})})]})},Wt=({className:e,onClick:t,...n})=>{const[r,o]=he(!1);return Ie("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:xe((()=>{if(!r)return o(!0),t().finally((()=>{o(!1)}))}),[r,t]),...n,children:[Ie("div",{class:"relative "+(r?"invisible":""),children:n.children}),r&&Ie("div",{class:"absolute animate-spin",children:Ie(De,{theme:"primary"})})]})},qt=({className:e,label:t,allowedKeyPattern:n,onChange:r,value:o,iconElement:i,...a})=>{const s=xe((e=>{n.test(e.key)||e.preventDefault()}),[n]);return Ie(x,{children:[Ie("label",{class:"font-medium text-sm text-gray-900 text-left",children:Ie("span",{children:t})}),Ie("div",{class:"relative",children:[Ie("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:s,onChange:e=>r(e.currentTarget.value),...a}),i]})]})},$t=({className:e,children:t})=>Ie("h1",{className:`text-2xl md:text-3xl font-bold ${e??""}`,children:t}),Gt=({className:e,children:t})=>Ie("h3",{class:`text-base md:text-lg text-gray-600 ${e??""}`,children:t});class Yt extends Error{}function Kt(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,((e,t)=>{let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(n){return atob(t)}}Yt.prototype.name="InvalidTokenError";const Qt=crypto.randomUUID?crypto.randomUUID():crypto.getRandomValues(new Uint32Array(5)).join("-"),Jt=e=>(window.addEventListener(Qt,e),()=>window.removeEventListener(Qt,e)),Xt=()=>{window.dispatchEvent(new Event(Qt))};function Zt(e,t){return function(){return e.apply(t,arguments)}}const{toString:en}=Object.prototype,{getPrototypeOf:tn}=Object,nn=(e=>t=>{const n=en.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),rn=e=>(e=e.toLowerCase(),t=>nn(t)===e),on=e=>t=>typeof t===e,{isArray:an}=Array,sn=on("undefined");const ln=rn("ArrayBuffer");const cn=on("string"),un=on("function"),dn=on("number"),pn=e=>null!==e&&"object"==typeof e,fn=e=>{if("object"!==nn(e))return!1;const t=tn(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},mn=rn("Date"),hn=rn("File"),gn=rn("Blob"),bn=rn("FileList"),_n=rn("URLSearchParams");function yn(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),an(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 vn(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 wn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,xn=e=>!sn(e)&&e!==wn;const kn=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&tn(Uint8Array)),Sn=rn("HTMLFormElement"),En=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Cn=rn("RegExp"),Nn=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};yn(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},Tn="abcdefghijklmnopqrstuvwxyz",On="0123456789",Rn={DIGIT:On,ALPHA:Tn,ALPHA_DIGIT:Tn+Tn.toUpperCase()+On};const An=rn("AsyncFunction"),Pn={isArray:an,isArrayBuffer:ln,isBuffer:function(e){return null!==e&&!sn(e)&&null!==e.constructor&&!sn(e.constructor)&&un(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||un(e.append)&&("formdata"===(t=nn(e))||"object"===t&&un(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ln(e.buffer),t},isString:cn,isNumber:dn,isBoolean:e=>!0===e||!1===e,isObject:pn,isPlainObject:fn,isUndefined:sn,isDate:mn,isFile:hn,isBlob:gn,isRegExp:Cn,isFunction:un,isStream:e=>pn(e)&&un(e.pipe),isURLSearchParams:_n,isTypedArray:kn,isFileList:bn,forEach:yn,merge:function e(){const{caseless:t}=xn(this)&&this||{},n={},r=(r,o)=>{const i=t&&vn(n,o)||o;fn(n[i])&&fn(r)?n[i]=e(n[i],r):fn(r)?n[i]=e({},r):an(r)?n[i]=r.slice():n[i]=r};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&yn(arguments[o],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(yn(t,((t,r)=>{n&&un(t)?e[r]=Zt(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&&tn(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:nn,kindOfTest:rn,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(an(e))return e;let t=e.length;if(!dn(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:Sn,hasOwnProperty:En,hasOwnProp:En,reduceDescriptors:Nn,freezeMethods:e=>{Nn(e,((t,n)=>{if(un(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];un(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 an(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:vn,global:wn,isContextDefined:xn,ALPHABET:Rn,generateString:(e=16,t=Rn.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&un(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(pn(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=an(e)?[]:{};return yn(e,((e,t)=>{const i=n(e,r+1);!sn(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:An,isThenable:e=>e&&(pn(e)||un(e))&&un(e.then)&&un(e.catch)};function Ln(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)}Pn.inherits(Ln,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:Pn.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const In=Ln.prototype,Dn={};["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=>{Dn[e]={value:e}})),Object.defineProperties(Ln,Dn),Object.defineProperty(In,"isAxiosError",{value:!0}),Ln.from=(e,t,n,r,o,i)=>{const a=Object.create(In);return Pn.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Ln.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function Un(e){return Pn.isPlainObject(e)||Pn.isArray(e)}function Fn(e){return Pn.endsWith(e,"[]")?e.slice(0,-2):e}function jn(e,t,n){return e?e.concat(t).map((function(e,t){return e=Fn(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Mn=Pn.toFlatObject(Pn,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Bn(e,t,n){if(!Pn.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Pn.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Pn.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Pn.isSpecCompliantForm(t);if(!Pn.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Pn.isDate(e))return e.toISOString();if(!s&&Pn.isBlob(e))throw new Ln("Blob is not supported. Use a Buffer instead.");return Pn.isArrayBuffer(e)||Pn.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(Pn.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Pn.isArray(e)&&function(e){return Pn.isArray(e)&&!e.some(Un)}(e)||(Pn.isFileList(e)||Pn.endsWith(n,"[]"))&&(s=Pn.toArray(e)))return n=Fn(n),s.forEach((function(e,r){!Pn.isUndefined(e)&&null!==e&&t.append(!0===a?jn([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!Un(e)||(t.append(jn(o,n,i),l(e)),!1)}const u=[],d=Object.assign(Mn,{defaultVisitor:c,convertValue:l,isVisitable:Un});if(!Pn.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Pn.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),Pn.forEach(n,(function(n,i){!0===(!(Pn.isUndefined(n)||null===n)&&o.call(t,n,Pn.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t}function zn(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Hn(e,t){this._pairs=[],e&&Bn(e,this,t)}const Vn=Hn.prototype;function Wn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function qn(e,t,n){if(!t)return e;const r=n&&n.encode||Wn,o=n&&n.serialize;let i;if(i=o?o(t,n):Pn.isURLSearchParams(t)?t.toString():new Hn(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}Vn.append=function(e,t){this._pairs.push([e,t])},Vn.toString=function(e){const t=e?function(t){return e.call(this,t,zn)}:zn;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class $n{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){Pn.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const Gn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Yn={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Hn,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Kn="undefined"!=typeof window&&"undefined"!=typeof document,Qn=(Jn="undefined"!=typeof navigator&&navigator.product,Kn&&["ReactNative","NativeScript","NS"].indexOf(Jn)<0);var Jn;const Xn="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Zn={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Kn,hasStandardBrowserEnv:Qn,hasStandardBrowserWebWorkerEnv:Xn},Symbol.toStringTag,{value:"Module"})),...Yn};function er(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&&Pn.isArray(r)?r.length:i,s)return Pn.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&Pn.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&Pn.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(Pn.isFormData(e)&&Pn.isFunction(e.entries)){const n={};return Pn.forEachEntry(e,((e,r)=>{t(function(e){return Pn.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const tr={transitional:Gn,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Pn.isObject(e);o&&Pn.isHTMLForm(e)&&(e=new FormData(e));if(Pn.isFormData(e))return r?JSON.stringify(er(e)):e;if(Pn.isArrayBuffer(e)||Pn.isBuffer(e)||Pn.isStream(e)||Pn.isFile(e)||Pn.isBlob(e))return e;if(Pn.isArrayBufferView(e))return e.buffer;if(Pn.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 Bn(e,new Zn.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Zn.isNode&&Pn.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=Pn.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Bn(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Pn.isString(e))try{return(t||JSON.parse)(e),Pn.trim(e)}catch(To){if("SyntaxError"!==To.name)throw To}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||tr.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&Pn.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(To){if(n){if("SyntaxError"===To.name)throw Ln.from(To,Ln.ERR_BAD_RESPONSE,this,null,this.response);throw To}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Zn.classes.FormData,Blob:Zn.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Pn.forEach(["delete","get","head","post","put","patch"],(e=>{tr.headers[e]={}}));const nr=tr,rr=Pn.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"]),or=Symbol("internals");function ir(e){return e&&String(e).trim().toLowerCase()}function ar(e){return!1===e||null==e?e:Pn.isArray(e)?e.map(ar):String(e)}function sr(e,t,n,r,o){return Pn.isFunction(r)?r.call(this,t,n):(o&&(t=n),Pn.isString(t)?Pn.isString(r)?-1!==t.indexOf(r):Pn.isRegExp(r)?r.test(t):void 0:void 0)}class lr{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=ir(t);if(!o)throw new Error("header name must be a non-empty string");const i=Pn.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=ar(e))}const i=(e,t)=>Pn.forEach(e,((e,n)=>o(e,n,t)));return Pn.isPlainObject(e)||e instanceof this.constructor?i(e,t):Pn.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]&&rr[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=ir(e)){const n=Pn.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(Pn.isFunction(t))return t.call(this,e,n);if(Pn.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ir(e)){const n=Pn.findKey(this,e);return!(!n||void 0===this[n]||t&&!sr(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=ir(e)){const o=Pn.findKey(n,e);!o||t&&!sr(0,n[o],o,t)||(delete n[o],r=!0)}}return Pn.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&&!sr(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Pn.forEach(this,((r,o)=>{const i=Pn.findKey(n,o);if(i)return t[i]=ar(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]=ar(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Pn.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Pn.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[or]=this[or]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=ir(e);t[r]||(!function(e,t){const n=Pn.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 Pn.isArray(e)?e.forEach(r):r(e),this}}lr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Pn.reduceDescriptors(lr.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Pn.freezeMethods(lr);const cr=lr;function ur(e,t){const n=this||nr,r=t||n,o=cr.from(r.headers);let i=r.data;return Pn.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function dr(e){return!(!e||!e.__CANCEL__)}function pr(e,t,n){Ln.call(this,null==e?"canceled":e,Ln.ERR_CANCELED,t,n),this.name="CanceledError"}Pn.inherits(pr,Ln,{__CANCEL__:!0});const fr=Zn.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Pn.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Pn.isString(r)&&a.push("path="+r),Pn.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 mr(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 hr=Zn.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=Pn.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return function(){return!0}}();function gr(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 p=c&&l-c;return p?Math.round(1e3*d/p):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 br={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const o=cr.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(Pn.isFormData(r))if(Zn.hasStandardBrowserEnv||Zn.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=mr(e.baseURL,e.url);function p(){if(!u)return;const r=cr.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Ln("Request failed with status code "+n.status,[Ln.ERR_BAD_REQUEST,Ln.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(),qn(d,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=p:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(p)},u.onabort=function(){u&&(n(new Ln("Request aborted",Ln.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new Ln("Network Error",Ln.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||Gn;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new Ln(t,r.clarifyTimeoutError?Ln.ETIMEDOUT:Ln.ECONNABORTED,e,u)),u=null},Zn.hasStandardBrowserEnv&&(l&&Pn.isFunction(l)&&(l=l(e)),l||!1!==l&&hr(d))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&fr.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in u&&Pn.forEach(o.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),Pn.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&"json"!==s&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",gr(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",gr(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=t=>{u&&(n(!t||t.type?new pr(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 f=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(d);f&&-1===Zn.protocols.indexOf(f)?n(new Ln("Unsupported protocol "+f+":",Ln.ERR_BAD_REQUEST,e)):u.send(r||null)}))}};Pn.forEach(br,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(To){}Object.defineProperty(e,"adapterName",{value:t})}}));const _r=e=>`- ${e}`,yr=e=>Pn.isFunction(e)||null===e||!1===e,vr=e=>{e=Pn.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,!yr(n)&&(r=br[(t=String(n)).toLowerCase()],void 0===r))throw new Ln(`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 Ln("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(_r).join("\n"):" "+_r(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function wr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new pr(null,e)}function xr(e){wr(e),e.headers=cr.from(e.headers),e.data=ur.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return vr(e.adapter||nr.adapter)(e).then((function(t){return wr(e),t.data=ur.call(e,e.transformResponse,t),t.headers=cr.from(t.headers),t}),(function(t){return dr(t)||(wr(e),t&&t.response&&(t.response.data=ur.call(e,e.transformResponse,t.response),t.response.headers=cr.from(t.response.headers))),Promise.reject(t)}))}const kr=e=>e instanceof cr?e.toJSON():e;function Sr(e,t){t=t||{};const n={};function r(e,t,n){return Pn.isPlainObject(e)&&Pn.isPlainObject(t)?Pn.merge.call({caseless:n},e,t):Pn.isPlainObject(t)?Pn.merge({},t):Pn.isArray(t)?t.slice():t}function o(e,t,n){return Pn.isUndefined(t)?Pn.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!Pn.isUndefined(t))return r(void 0,t)}function a(e,t){return Pn.isUndefined(t)?Pn.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(kr(e),kr(t),!0)};return Pn.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);Pn.isUndefined(a)&&i!==s||(n[r]=a)})),n}const Er="1.6.7",Cr={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Cr[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Nr={};Cr.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 Ln(r(o," has been removed"+(t?" in "+t:"")),Ln.ERR_DEPRECATED);return t&&!Nr[o]&&(Nr[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 Tr={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Ln("options must be an object",Ln.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 Ln("option "+i+" must be "+n,Ln.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Ln("Unknown option "+i,Ln.ERR_BAD_OPTION)}},validators:Cr},Or=Tr.validators;class Rr{constructor(e){this.defaults=e,this.interceptors={request:new $n,response:new $n}}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=Sr(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Tr.assertOptions(n,{silentJSONParsing:Or.transitional(Or.boolean),forcedJSONParsing:Or.transitional(Or.boolean),clarifyTimeoutError:Or.transitional(Or.boolean)},!1),null!=r&&(Pn.isFunction(r)?t.paramsSerializer={serialize:r}:Tr.assertOptions(r,{encode:Or.function,serialize:Or.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Pn.merge(o.common,o[t.method]);o&&Pn.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=cr.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=[xr.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 p=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{p=e(p)}catch(f){t.call(this,f);break}}try{c=xr.call(this,p)}catch(f){return Promise.reject(f)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return qn(mr((e=Sr(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}Pn.forEach(["delete","get","head","options"],(function(e){Rr.prototype[e]=function(t,n){return this.request(Sr(n||{},{method:e,url:t,data:(n||{}).data}))}})),Pn.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Sr(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Rr.prototype[e]=t(),Rr.prototype[e+"Form"]=t(!0)}));const Ar=Rr;class Pr{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 pr(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 Pr((function(t){e=t})),cancel:e}}}const Lr=Pr;const Ir={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(Ir).forEach((([e,t])=>{Ir[t]=e}));const Dr=Ir;const Ur=function e(t){const n=new Ar(t),r=Zt(Ar.prototype.request,n);return Pn.extend(r,Ar.prototype,n,{allOwnKeys:!0}),Pn.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Sr(t,n))},r}(nr);Ur.Axios=Ar,Ur.CanceledError=pr,Ur.CancelToken=Lr,Ur.isCancel=dr,Ur.VERSION=Er,Ur.toFormData=Bn,Ur.AxiosError=Ln,Ur.Cancel=Ur.CanceledError,Ur.all=function(e){return Promise.all(e)},Ur.spread=function(e){return function(t){return e.apply(null,t)}},Ur.isAxiosError=function(e){return Pn.isObject(e)&&!0===e.isAxiosError},Ur.mergeConfig=Sr,Ur.AxiosHeaders=cr,Ur.formToJSON=e=>er(Pn.isHTMLForm(e)?new FormData(e):e),Ur.getAdapter=vr,Ur.HttpStatusCode=Dr,Ur.default=Ur;class Fr{constructor(){__privateAdd(this,e,void 0)}initClient(t,n){__privateSet(this,e,Ur.create({baseURL:`${this.url(t)}/backend`,headers:n}))}getClient(){return __privateGet(this,e)}}e=new WeakMap;const jr={backend:new class extends Fr{constructor(){super(...arguments),__publicField(this,"getIdToken",(()=>this.getClient().get("v1.0/auth/token").then((e=>e.data.token))))}url(e){return`${e}/flare-app-identity`}}};let Mr;class Br{constructor(){__privateAdd(this,t,void 0),__privateAdd(this,n,(async e=>(Mr||(Mr=await jr.backend.getIdToken()),e.headers.Authorization=`Bearer ${Mr}`,e.params={...e.params??{},client:"onboarding"},e)))}initClient(e,r,o){__privateSet(this,t,Ur.create({baseURL:`${this.url(e)}/workplace-backend`,headers:{...o,"X-PROFILE-ID":r}})),__privateGet(this,t).interceptors.request.use(__privateGet(this,n))}getClient(){return __privateGet(this,t)}}t=new WeakMap,n=new WeakMap;const zr=e=>{var t,n;throw"Auth_SessionExpired"===(null==(n=null==(t=e.response)?void 0:t.data)?void 0:n.code)&&Xt(),e};let Hr=(o=class extends Br{constructor(){super(...arguments),__publicField(this,"_canceledSignal"),__privateAdd(this,r,(async e=>e))}get canceledSignal(){if(!this._canceledSignal){const e=new AbortController;e.abort(),this._canceledSignal=e.signal}return this._canceledSignal}url(e){return`${e}/benefits-onboarding`}initClient(e,t,n){super.initClient(e,t,n),this.getClient().interceptors.request.use(__privateGet(this,r))}async track(e,t){await this.getClient().post("/v1.0/analytics/track",{event:e,properties:t}).catch((e=>{}))}},r=new WeakMap,o);const Vr={backend:new class extends Fr{constructor(){super(...arguments),__publicField(this,"sourceId")}url(e){return`${e}/benefits-onboarding`}initClient(e,t,n){super.initClient(e,t),this.getClient().interceptors.response.use((e=>e),zr),this.sourceId=n}async init(){return this.getClient().post("/init",{source:"Onboarding",sourceId:this.sourceId}).then((e=>e.data))}async command(e){await this.getClient().post("/command",{source:"Onboarding",sourceId:this.sourceId,...e})}},workplaceBackend:new Hr};const Wr={workplaceBackend:new class extends Br{url(e){return`${e}/benefits-plan`}}},qr=(e,t,n)=>{const r=function(e,t){if("string"!=typeof e)throw new Yt("Invalid token specified: must be a string");t||(t={});const n=!0===t.header?0:1,r=e.split(".")[n];if("string"!=typeof r)throw new Yt(`Invalid token specified: missing part #${n+1}`);let o;try{o=Kt(r)}catch(To){throw new Yt(`Invalid token specified: invalid base64 for part #${n+1} (${To.message})`)}try{return JSON.parse(o)}catch(To){throw new Yt(`Invalid token specified: invalid json for part #${n+1} (${To.message})`)}}(t).sub,o={backend:{Authorization:`Bearer ${t}`},workplaceBackend:{}};Vr.backend.initClient(e,o.backend,n),Vr.workplaceBackend.initClient(e,r,o.workplaceBackend),jr.backend.initClient(e,o.backend),Wr.workplaceBackend.initClient(e,r,o.workplaceBackend)},$r=e=>{switch(!0){case"started"===e:return Vr.backend.command({eventType:"Started"});case"membership-accepted"===e:return Vr.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!0,featureName:"",treatmentName:"",template:"Eoi"}});case"membership-declined"===e:return Vr.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!1,featureName:"",treatmentName:"",template:"Eoi"}});case"sign-up-viewed"===e:return Vr.backend.command({eventType:"OfferViewed",offerName:"Membership",data:{featureName:"",treatmentName:""}});case"sign-up-completed"===e:return(async()=>{await Vr.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!0,featureName:"",treatmentName:"",template:"Eoi"}}),await Vr.backend.command({eventType:"CustomerRegistrationCompleted",isRegistered:!0})})();case"sign-up-declined"===e:return(async()=>{await Vr.backend.command({eventType:"CustomerRegistrationCompleted",isRegistered:!1}),await Vr.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!1,featureName:"",treatmentName:"",template:"Eoi"}})})();case"object"==typeof e&&"offer-viewed"===e.type:return Vr.backend.command({...e,eventType:"OfferViewed"});case"object"==typeof e&&"offer-accepted"===e.type:return Vr.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:{...e.data,accepted:!0}});case"object"==typeof e&&"offer-declined"===e.type:return Vr.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:{...e.data,accepted:!1}});case"object"==typeof e&&"offer-progressed"===e.type:return Vr.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:e.data});case"object"==typeof e&&"assessment-viewed"===e.type:return Vr.workplaceBackend.track("Assessment Viewed",{id:e.data.assessmentId,name:e.data.assessmentTitle});case"object"==typeof e&&"assessment-skipped"===e.type:return Vr.workplaceBackend.track("Assessment Skipped",{id:e.data.assessmentId,name:e.data.assessmentTitle});case"object"==typeof e&&"assessment-field-updated"===e.type:return Vr.workplaceBackend.track("AssessmentField Updated",{id:e.data.assessmentId,name:e.data.assessmentTitle,attribute:e.data.customerAttribute});case"object"==typeof e&&"assessment-submitted"===e.type:return Vr.workplaceBackend.track("Assessment Submitted",{id:e.data.assessmentId,name:e.data.assessmentTitle});case"object"==typeof e&&"assessment-summary-viewed"===e.type:return Vr.workplaceBackend.track("AssessmentSummary Viewed",{id:e.data.assessmentId,name:e.data.assessmentTitle});case"object"==typeof e&&"summary-viewed"===e.type:return Vr.backend.command({eventType:"SummaryViewed",summaryVariant:e.data.summaryVariant});case"completed"===e:return Vr.backend.command({eventType:"Completed"})}return Promise.resolve()},Gr=()=>({trace:$r});var Yr=Object.defineProperty,Kr=(e,t,n)=>(((e,t,n)=>{t in e?Yr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let Qr=new class{constructor(){Kr(this,"current",this.detect()),Kr(this,"handoffState","pending"),Kr(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}},Jr=(e,t)=>{Qr.isServer?be(e,t):_e(e,t)};function Xr(e){let t=ye(e);return Jr((()=>{t.current=e}),[e]),t}function Zr(e,t){let[n,r]=he(e),o=Xr(e);return Jr((()=>r(o.current)),[o,r,...t]),n}let eo=function(e){let t=Xr(e);return Bt.useCallback(((...e)=>t.current(...e)),[t])};function to(){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=to();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 no(){let[e]=he(to);return be((()=>()=>e.dispose()),[e]),e}function ro(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in zt&&zt.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=he(Qr.isHandoffComplete);return t&&!1===Qr.isHandoffComplete&&n(!1),be((()=>{!0!==t&&n(!0)}),[t]),be((()=>Qr.handoff()),[]),!e&&t}var oo;let io=null!=(oo=Bt.useId)?oo:function(){let e=ro(),[t,n]=Bt.useState(e?()=>Qr.nextId():null);return Jr((()=>{null===t&&n(Qr.nextId())}),[t]),null!=t?""+t:void 0};function ao(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,ao),r}function so(e){return Qr.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let lo=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var co,uo,po,fo=((po=fo||{})[po.First=1]="First",po[po.Previous=2]="Previous",po[po.Next=4]="Next",po[po.Last=8]="Last",po[po.WrapAround=16]="WrapAround",po[po.NoScroll=32]="NoScroll",po),mo=((uo=mo||{})[uo.Error=0]="Error",uo[uo.Overflow=1]="Overflow",uo[uo.Success=2]="Success",uo[uo.Underflow=3]="Underflow",uo),ho=((co=ho||{})[co.Previous=-1]="Previous",co[co.Next=1]="Next",co),go=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(go||{});function bo(e,t=0){var n;return e!==(null==(n=so(e))?void 0:n.body)&&ao(t,{0:()=>e.matches(lo),1(){let t=e;for(;null!==t;){if(t.matches(lo))return!0;t=t.parentElement}return!1}})}var _o=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(_o||{});function yo(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0||/Android/gi.test(window.navigator.userAgent)}function vo(e,t,n){let r=Xr(t);be((()=>{function t(e){r.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)}),[e,n])}function wo(e,t,n=!0){let r=ye(!1);function o(n,o){if(!r.current||n.defaultPrevented)return;let i=o(n);if(null===i||!i.getRootNode().contains(i)||!i.isConnected)return;let a=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e);for(let e of a){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(i)||n.composed&&n.composedPath().includes(t))return}return!bo(i,go.Loose)&&-1!==i.tabIndex&&n.preventDefault(),t(n,i)}be((()=>{requestAnimationFrame((()=>{r.current=n}))}),[n]);let i=ye(null);vo("pointerdown",(e=>{var t,n;r.current&&(i.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),vo("mousedown",(e=>{var t,n;r.current&&(i.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),vo("click",(e=>{yo()||i.current&&(o(e,(()=>i.current)),i.current=null)}),!0),vo("touchend",(e=>o(e,(()=>e.target instanceof HTMLElement?e.target:null))),!0),function(e,t,n){let r=Xr(t);be((()=>{function t(e){r.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)}),[e,n])}("blur",(e=>o(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}function xo(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";return"string"==typeof n&&"button"===n.toLowerCase()?"button":void 0}function ko(e,t){let[n,r]=he((()=>xo(e)));return Jr((()=>{r(xo(e))}),[e.type,e.as]),Jr((()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")}),[n,t]),n}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")}),!0),document.addEventListener("click",(e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")}),!0));let So=Symbol();function Eo(...e){let t=ye(e);be((()=>{t.current=e}),[e]);let n=eo((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[So])))?void 0:n}function Co(e){return[e.screenX,e.screenY]}function No(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}var To,Oo=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Oo||{}),Ro=((To=Ro||{})[To.Unmount=0]="Unmount",To[To.Hidden=1]="Hidden",To);function Ao({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a,mergeRefs:s}){s=null!=s?s:Lo;let l=Io(t,e);if(i)return Po(l,n,r,a,s);let c=null!=o?o:0;if(2&c){let{static:e=!1,...t}=l;if(e)return Po(t,n,r,a,s)}if(1&c){let{unmount:e=!0,...t}=l;return ao(e?0:1,{0:()=>null,1:()=>Po({...t,hidden:!0,style:{display:"none"}},n,r,a,s)})}return Po(l,n,r,a,s)}function Po(e,t={},n,r,o){let{as:i=n,children:a,refName:s="ref",...l}=Fo(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===x&&Object.keys(Uo(l)).length>0){if(!Et(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)=>No(null==e?void 0:e.className(...t),l.className):No(null==e?void 0:e.className,l.className),n=t?{className:t}:{};return Nt(u,Object.assign({},Io(u.props,Uo(Fo(l,["ref"]))),d,c,{ref:o(u.ref,c.ref)},n))}return y(i,Object.assign({},Fo(l,["ref"]),i!==x&&c,i!==x&&d),u)}function Lo(...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 Io(...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 Do(e){var t;return Object.assign(qe(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Uo(e){let t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}function Fo(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}var jo=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(jo||{});let Mo=Do((function(e,t){var n;let{features:r=1,...o}=e;return Ao({ourProps:{ref:t,"aria-hidden":2==(2&r)||(null!=(n=o["aria-hidden"])?n:void 0),style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4==(4&r)&&2!=(2&r)&&{display:"none"}}},theirProps:o,slot:{},defaultTag:"div",name:"Hidden"})})),Bo=q(null);Bo.displayName="OpenClosedContext";var zo=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(zo||{});function Ho(){return ke(Bo)}function Vo({value:e,children:t}){return Bt.createElement(Bo.Provider,{value:e},t)}function Wo(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}var qo,$o=((qo=$o||{})[qo.First=0]="First",qo[qo.Previous=1]="Previous",qo[qo.Next=2]="Next",qo[qo.Last=3]="Last",qo[qo.Specific=4]="Specific",qo[qo.Nothing=5]="Nothing",qo);function Go(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1;switch(e.focus){case 0:for(let e=0;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 1:for(let e=o-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=o+1;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 3:for(let e=n.length-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;r<n.length;++r)if(t.resolveId(n[r],r,n)===e.id)return r;return r;case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}}function Yo(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))Qo(n,Ko(t,r),o);return n}function Ko(e,t){return e?e+"["+t+"]":t}function Qo(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())Qo(e,Ko(t,r.toString()),o);else n instanceof Date?e.push([t,n.toISOString()]):"boolean"==typeof n?e.push([t,n?"1":"0"]):"string"==typeof n?e.push([t,n]):"number"==typeof n?e.push([t,`${n}`]):null==n?e.push([t,""]):Yo(n,t,e)}var Jo,Xo=((Jo=Xo||{}).Space=" ",Jo.Enter="Enter",Jo.Escape="Escape",Jo.Backspace="Backspace",Jo.Delete="Delete",Jo.ArrowLeft="ArrowLeft",Jo.ArrowUp="ArrowUp",Jo.ArrowRight="ArrowRight",Jo.ArrowDown="ArrowDown",Jo.Home="Home",Jo.End="End",Jo.PageUp="PageUp",Jo.PageDown="PageDown",Jo.Tab="Tab",Jo);function Zo(){let e=ye(!1);return Jr((()=>(e.current=!0,()=>{e.current=!1})),[]),e}let ei=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function ti(e){var t,n;let r=null!=(t=e.innerText)?t:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return r;let i=!1;for(let s of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),i=!0;let a=i?null!=(n=o.innerText)?n:"":r;return ei.test(a)&&(a=a.replace(ei,"")),a}function ni(e){let t=ye(""),n=ye("");return eo((()=>{let r=e.current;if(!r)return"";let o=r.innerText;if(t.current===o)return n.current;let i=function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map((e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():ti(t).trim()}return null})).filter(Boolean);if(e.length>0)return e.join(", ")}return ti(e).trim()}(r).trim().toLowerCase();return t.current=o,n.current=i,i}))}var ri=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ri||{}),oi=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(oi||{}),ii=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(ii||{}),ai=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))(ai||{});function si(e,t=(e=>e)){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=function(e,t=(e=>e)){return e.slice().sort(((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),o=n?r.indexOf(n):null;return-1===o&&(o=null),{options:r,activeOptionIndex:o}}let li={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,listboxState:1},0(e){if(e.dataRef.current.disabled||0===e.listboxState)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex((e=>n(e.dataRef.current.value)));return-1!==r&&(t=r),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||1===e.listboxState)return e;let r=si(e),o=Go(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeOptionIndex:o,activationTrigger:null!=(n=t.trigger)?n:1}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),o=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find((e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))})),i=o?e.options.indexOf(o):-1;return-1===i||i===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:i,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=si(e,(e=>[...e,n]));return null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},6:(e,t)=>{let n=si(e,(e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n&&e.splice(n,1),e}));return{...e,...n,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},ci=q(null);function ui(e){let t=ke(ci);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ui),t}return t}ci.displayName="ListboxActionsContext";let di=q(null);function pi(e){let t=ke(di);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,pi),t}return t}function fi(e,t){return ao(t.type,li,e,t)}di.displayName="ListboxDataContext";let mi=x;let hi=Oo.RenderStrategy|Oo.Static;let gi=Do((function(e,t){let{value:n,defaultValue:r,form:o,name:i,onChange:a,by:s=((e,t)=>e===t),disabled:l=!1,horizontal:c=!1,multiple:u=!1,...d}=e;const p=c?"horizontal":"vertical";let f=Eo(t),[m=(u?[]:void 0),h]=function(e,t,n){let[r,o]=he(n),i=void 0!==e,a=ye(i),s=ye(!1),l=ye(!1);return!i||a.current||s.current?!i&&a.current&&!l.current&&(l.current=!0,a.current=i,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(s.current=!0,a.current=i,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[i?e:r,eo((e=>(i||o(e),null==t?void 0:t(e))))]}(n,a,r),[g,b]=ge(fi,{dataRef:{current:null},listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),_=ye({static:!1,hold:!1}),y=ye(null),v=ye(null),w=ye(null),x=eo("string"==typeof s?(e,t)=>{let n=s;return(null==e?void 0:e[n])===(null==t?void 0:t[n])}:s),k=xe((e=>ao(S.mode,{1:()=>m.some((t=>x(t,e))),0:()=>x(m,e)})),[m]),S=we((()=>({...g,value:m,disabled:l,mode:u?1:0,orientation:p,compare:x,isSelected:k,optionsPropsRef:_,labelRef:y,buttonRef:v,optionsRef:w})),[m,l,u,g]);Jr((()=>{g.dataRef.current=S}),[S]),wo([S.buttonRef,S.optionsRef],((e,t)=>{var n;b({type:1}),bo(t,go.Loose)||(e.preventDefault(),null==(n=S.buttonRef.current)||n.focus())}),0===S.listboxState);let E=we((()=>({open:0===S.listboxState,disabled:l,value:m})),[S,l,m]),C=eo((e=>{let t=S.options.find((t=>t.id===e));t&&L(t.dataRef.current.value)})),N=eo((()=>{if(null!==S.activeOptionIndex){let{dataRef:e,id:t}=S.options[S.activeOptionIndex];L(e.current.value),b({type:2,focus:$o.Specific,id:t})}})),T=eo((()=>b({type:0}))),O=eo((()=>b({type:1}))),R=eo(((e,t,n)=>e===$o.Specific?b({type:2,focus:$o.Specific,id:t,trigger:n}):b({type:2,focus:e,trigger:n}))),A=eo(((e,t)=>(b({type:5,id:e,dataRef:t}),()=>b({type:6,id:e})))),P=eo((e=>(b({type:7,id:e}),()=>b({type:7,id:null})))),L=eo((e=>ao(S.mode,{0:()=>null==h?void 0:h(e),1(){let t=S.value.slice(),n=t.findIndex((t=>x(t,e)));return-1===n?t.push(e):t.splice(n,1),null==h?void 0:h(t)}}))),I=eo((e=>b({type:3,value:e}))),D=eo((()=>b({type:4}))),U=we((()=>({onChange:L,registerOption:A,registerLabel:P,goToOption:R,closeListbox:O,openListbox:T,selectActiveOption:N,selectOption:C,search:I,clearSearch:D})),[]),F={ref:f},j=ye(null),M=no();return be((()=>{j.current&&void 0!==r&&M.addEventListener(j.current,"reset",(()=>{null==h||h(r)}))}),[j,h]),Bt.createElement(ci.Provider,{value:U},Bt.createElement(di.Provider,{value:S},Bt.createElement(Vo,{value:ao(S.listboxState,{0:zo.Open,1:zo.Closed})},null!=i&&null!=m&&Yo({[i]:m}).map((([e,t],n)=>Bt.createElement(Mo,{features:jo.Hidden,ref:0===n?e=>{var t;j.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...Uo({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:o,name:e,value:t})}))),Ao({ourProps:F,theirProps:d,slot:E,defaultTag:mi,name:"Listbox"}))))})),bi=Do((function(e,t){var n;let r=io(),{id:o=`headlessui-listbox-button-${r}`,...i}=e,a=pi("Listbox.Button"),s=ui("Listbox.Button"),l=Eo(a.buttonRef,t),c=no(),u=eo((e=>{switch(e.key){case Xo.Space:case Xo.Enter:case Xo.ArrowDown:e.preventDefault(),s.openListbox(),c.nextFrame((()=>{a.value||s.goToOption($o.First)}));break;case Xo.ArrowUp:e.preventDefault(),s.openListbox(),c.nextFrame((()=>{a.value||s.goToOption($o.Last)}))}})),d=eo((e=>{if(e.key===Xo.Space)e.preventDefault()})),p=eo((e=>{if(Wo(e.currentTarget))return e.preventDefault();0===a.listboxState?(s.closeListbox(),c.nextFrame((()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})}))):(e.preventDefault(),s.openListbox())})),f=Zr((()=>{if(a.labelId)return[a.labelId,o].join(" ")}),[a.labelId,o]),m=we((()=>({open:0===a.listboxState,disabled:a.disabled,value:a.value})),[a]);return Ao({ourProps:{ref:l,id:o,type:ko(e,a.buttonRef),"aria-haspopup":"listbox","aria-controls":null==(n=a.optionsRef.current)?void 0:n.id,"aria-expanded":0===a.listboxState,"aria-labelledby":f,disabled:a.disabled,onKeyDown:u,onKeyUp:d,onClick:p},theirProps:i,slot:m,defaultTag:"button",name:"Listbox.Button"})})),_i=Do((function(e,t){let n=io(),{id:r=`headlessui-listbox-label-${n}`,...o}=e,i=pi("Listbox.Label"),a=ui("Listbox.Label"),s=Eo(i.labelRef,t);Jr((()=>a.registerLabel(r)),[r]);let l=eo((()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})})),c=we((()=>({open:0===i.listboxState,disabled:i.disabled})),[i]);return Ao({ourProps:{ref:s,id:r,onClick:l},theirProps:o,slot:c,defaultTag:"label",name:"Listbox.Label"})})),yi=Do((function(e,t){var n;let r=io(),{id:o=`headlessui-listbox-options-${r}`,...i}=e,a=pi("Listbox.Options"),s=ui("Listbox.Options"),l=Eo(a.optionsRef,t),c=no(),u=no(),d=Ho(),p=null!==d?(d&zo.Open)===zo.Open:0===a.listboxState;be((()=>{var e;let t=a.optionsRef.current;t&&0===a.listboxState&&t!==(null==(e=so(t))?void 0:e.activeElement)&&t.focus({preventScroll:!0})}),[a.listboxState,a.optionsRef]);let f=eo((e=>{switch(u.dispose(),e.key){case Xo.Space:if(""!==a.searchQuery)return e.preventDefault(),e.stopPropagation(),s.search(e.key);case Xo.Enter:if(e.preventDefault(),e.stopPropagation(),null!==a.activeOptionIndex){let{dataRef:e}=a.options[a.activeOptionIndex];s.onChange(e.current.value)}0===a.mode&&(s.closeListbox(),to().nextFrame((()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})})));break;case ao(a.orientation,{vertical:Xo.ArrowDown,horizontal:Xo.ArrowRight}):return e.preventDefault(),e.stopPropagation(),s.goToOption($o.Next);case ao(a.orientation,{vertical:Xo.ArrowUp,horizontal:Xo.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),s.goToOption($o.Previous);case Xo.Home:case Xo.PageUp:return e.preventDefault(),e.stopPropagation(),s.goToOption($o.First);case Xo.End:case Xo.PageDown:return e.preventDefault(),e.stopPropagation(),s.goToOption($o.Last);case Xo.Escape:return e.preventDefault(),e.stopPropagation(),s.closeListbox(),c.nextFrame((()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));case Xo.Tab:e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(s.search(e.key),u.setTimeout((()=>s.clearSearch()),350))}})),m=Zr((()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.id}),[a.buttonRef.current]),h=we((()=>({open:0===a.listboxState})),[a]);return Ao({ourProps:{"aria-activedescendant":null===a.activeOptionIndex||null==(n=a.options[a.activeOptionIndex])?void 0:n.id,"aria-multiselectable":1===a.mode||void 0,"aria-labelledby":m,"aria-orientation":a.orientation,id:o,onKeyDown:f,role:"listbox",tabIndex:0,ref:l},theirProps:i,slot:h,defaultTag:"ul",features:hi,visible:p,name:"Listbox.Options"})})),vi=Do((function(e,t){let n=io(),{id:r=`headlessui-listbox-option-${n}`,disabled:o=!1,value:i,...a}=e,s=pi("Listbox.Option"),l=ui("Listbox.Option"),c=null!==s.activeOptionIndex&&s.options[s.activeOptionIndex].id===r,u=s.isSelected(i),d=ye(null),p=ni(d),f=Xr({disabled:o,value:i,domRef:d,get textValue(){return p()}}),m=Eo(t,d);Jr((()=>{if(0!==s.listboxState||!c||0===s.activationTrigger)return;let e=to();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=d.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[d,c,s.listboxState,s.activationTrigger,s.activeOptionIndex]),Jr((()=>l.registerOption(r,f)),[f,r]);let h=eo((e=>{if(o)return e.preventDefault();l.onChange(i),0===s.mode&&(l.closeListbox(),to().nextFrame((()=>{var e;return null==(e=s.buttonRef.current)?void 0:e.focus({preventScroll:!0})})))})),g=eo((()=>{if(o)return l.goToOption($o.Nothing);l.goToOption($o.Specific,r)})),b=function(){let e=ye([-1,-1]);return{wasMoved(t){let n=Co(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=Co(t)}}}(),_=eo((e=>b.update(e))),y=eo((e=>{b.wasMoved(e)&&(o||c||l.goToOption($o.Specific,r,0))})),v=eo((e=>{b.wasMoved(e)&&(o||c&&l.goToOption($o.Nothing))})),w=we((()=>({active:c,selected:u,disabled:o})),[c,u,o]);return Ao({ourProps:{id:r,ref:m,role:"option",tabIndex:!0===o?void 0:-1,"aria-disabled":!0===o||void 0,"aria-selected":u,disabled:void 0,onClick:h,onFocus:g,onPointerEnter:_,onMouseEnter:_,onPointerMove:y,onMouseMove:y,onPointerLeave:v,onMouseLeave:v},theirProps:a,slot:w,defaultTag:"li",name:"Listbox.Option"})})),wi=Object.assign(gi,{Button:bi,Label:_i,Options:yi,Option:vi});function xi(e,...t){e&&t.length>0&&e.classList.add(...t)}function ki(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Si(e,t,n,r){let o=n?"enter":"leave",i=to(),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=ao(o,{enter:()=>t.enter,leave:()=>t.leave}),l=ao(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=ao(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return ki(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),xi(e,...t.base,...s,...c),i.nextFrame((()=>{ki(e,...t.base,...s,...c),xi(e,...t.base,...s,...l),function(e,t){let n=to();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,(()=>(ki(e,...t.base,...s),xi(e,...t.base,...t.entered),a())))})),i.dispose}function Ei(e=""){return e.split(/\s+/).filter((e=>e.length>1))}let Ci=q(null);Ci.displayName="TransitionContext";var Ni=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Ni||{});let Ti=q(null);function Oi(e){return"children"in e?Oi(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function Ri(e,t){let n=Xr(e),r=ye([]),o=Zo(),i=no(),a=eo(((e,t=Ro.Hidden)=>{let a=r.current.findIndex((({el:t})=>t===e));-1!==a&&(ao(t,{[Ro.Unmount](){r.current.splice(a,1)},[Ro.Hidden](){r.current[a].state="hidden"}}),i.microTask((()=>{var e;!Oi(r)&&o.current&&(null==(e=n.current)||e.call(n))})))})),s=eo((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,Ro.Unmount)})),l=ye([]),c=ye(Promise.resolve()),u=ye({enter:[],leave:[],idle:[]}),d=eo(((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)})),p=eo(((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 we((()=>({children:r,register:s,unregister:a,onStart:d,onStop:p,wait:c,chains:u})),[s,a,r,d,p,u,c])}function Ai(){}Ti.displayName="NestingContext";let Pi=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Li(e){var t;let n={};for(let r of Pi)n[r]=null!=(t=e[r])?t:Ai;return n}let Ii=Oo.RenderStrategy;let Di=Do((function(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,a=ye(null),s=Eo(a,t);ro();let l=Ho();if(void 0===n&&null!==l&&(n=(l&zo.Open)===zo.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,u]=he(n?"visible":"hidden"),d=Ri((()=>{u("hidden")})),[p,f]=he(!0),m=ye([n]);Jr((()=>{!1!==p&&m.current[m.current.length-1]!==n&&(m.current.push(n),f(!1))}),[m,n]);let h=we((()=>({show:n,appear:r,initial:p})),[n,r,p]);be((()=>{if(n)u("visible");else if(Oi(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},b=eo((()=>{var t;p&&f(!1),null==(t=e.beforeEnter)||t.call(e)})),_=eo((()=>{var t;p&&f(!1),null==(t=e.beforeLeave)||t.call(e)}));return Bt.createElement(Ti.Provider,{value:d},Bt.createElement(Ci.Provider,{value:h},Ao({ourProps:{...g,as:x,children:Bt.createElement(Ui,{ref:s,...g,...i,beforeEnter:b,beforeLeave:_})},theirProps:{},defaultTag:x,features:Ii,visible:"visible"===c,name:"Transition"})))})),Ui=Do((function(e,t){var n,r;let{beforeEnter:o,afterEnter:i,beforeLeave:a,afterLeave:s,enter:l,enterFrom:c,enterTo:u,entered:d,leave:p,leaveFrom:f,leaveTo:m,...h}=e,g=ye(null),b=Eo(g,t),_=null==(n=h.unmount)||n?Ro.Unmount:Ro.Hidden,{show:y,appear:v,initial:w}=function(){let e=ke(Ci);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]=he(y?"visible":"hidden"),S=function(){let e=ke(Ti);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:E,unregister:C}=S;be((()=>E(g)),[E,g]),be((()=>{if(_===Ro.Hidden&&g.current)return y&&"visible"!==x?void k("visible"):ao(x,{hidden:()=>C(g),visible:()=>E(g)})}),[x,g,E,C,y,_]);let N=Xr({base:Ei(h.className),enter:Ei(l),enterFrom:Ei(c),enterTo:Ei(u),entered:Ei(d),leave:Ei(p),leaveFrom:Ei(f),leaveTo:Ei(m)}),T=function(e){let t=ye(Li(e));return be((()=>{t.current=Li(e)}),[e]),t}({beforeEnter:o,afterEnter:i,beforeLeave:a,afterLeave:s}),O=ro();be((()=>{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=w&&!v,A=v&&y&&w,P=(()=>!O||R?"idle":y?"enter":"leave")(),L=function(e=0){let[t,n]=he(e),r=Zo(),o=xe((e=>{r.current&&n((t=>t|e))}),[t,r]),i=xe((e=>Boolean(t&e)),[t]),a=xe((e=>{r.current&&n((t=>t&~e))}),[n,r]),s=xe((e=>{r.current&&n((t=>t^e))}),[n]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:a,toggleFlag:s}}(0),I=eo((e=>ao(e,{enter:()=>{L.addFlag(zo.Opening),T.current.beforeEnter()},leave:()=>{L.addFlag(zo.Closing),T.current.beforeLeave()},idle:()=>{}}))),D=eo((e=>ao(e,{enter:()=>{L.removeFlag(zo.Opening),T.current.afterEnter()},leave:()=>{L.removeFlag(zo.Closing),T.current.afterLeave()},idle:()=>{}}))),U=Ri((()=>{k("hidden"),C(g)}),S),F=ye(!1);!function({immediate:e,container:t,direction:n,classes:r,onStart:o,onStop:i}){let a=Zo(),s=no(),l=Xr(n);Jr((()=>{e&&(l.current="enter")}),[e]),Jr((()=>{let e=to();s.add(e.dispose);let n=t.current;if(n&&"idle"!==l.current&&a.current)return e.dispose(),o.current(l.current),e.add(Si(n,r.current,"enter"===l.current,(()=>{e.dispose(),i.current(l.current)}))),e.dispose}),[n])}({immediate:A,container:g,classes:N,direction:P,onStart:Xr((e=>{F.current=!0,U.onStart(g,e,I)})),onStop:Xr((e=>{F.current=!1,U.onStop(g,e,D),"leave"===e&&!Oi(U)&&(k("hidden"),C(g))}))});let j=h,M={ref:b};return A?j={...j,className:No(h.className,...N.current.enter,...N.current.enterFrom)}:F.current&&(j.className=No(h.className,null==(r=g.current)?void 0:r.className),""===j.className&&delete j.className),Bt.createElement(Ti.Provider,{value:U},Bt.createElement(Vo,{value:ao(x,{visible:zo.Open,hidden:zo.Closed})|L.flags},Ao({ourProps:M,theirProps:j,defaultTag:"div",features:Ii,visible:"visible"===x,name:"Transition.Child"})))})),Fi=Do((function(e,t){let n=null!==ke(Ci),r=null!==Ho();return Bt.createElement(Bt.Fragment,null,!n&&r?Bt.createElement(Di,{ref:t,...e}):Bt.createElement(Ui,{ref:t,...e}))})),ji=Object.assign(Di,{Child:Fi,Root:Di});const Mi=({children:e})=>{const t=Bt.Children.toArray(e),n=t.find((e=>e.type===Bi)),r=t.find((e=>e.type===zi));return Ie(ji,{appear:!0,show:!0,enter:"transition duration-700 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:Ie("div",{class:"mt-20 md:mt-0 flex flex-col text-center items-center max-w-[40rem] mx-auto",children:[Ie(ji,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:n&&Ie("div",{class:"flex items-center h-full",children:n})}),Ie(ji,{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&&Ie("div",{class:"flex items-center h-full",children:r})})]})})},Bi=({children:e})=>Ie(x,{children:e}),zi=({children:e})=>Ie(x,{children:e});Mi.Top=Bi,Mi.Bottom=zi;const Hi=({phoneNumber:e,onSubmit:t,onDecline:n})=>{const{trace:r}=Gr(),[o,i]=he(""),{setPhoneNumber:a,phoneNumber:s}=(e=>{const{identity:t}=ke(Fe),[n,r]=he(e??""),o=we((()=>n.replace(/ /g,"")),[n]),i=we((()=>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=we((()=>o.startsWith("04")?`+61${o.replace(/^0+/,"")}`:o.startsWith("614")?`+${o}`:o),[o]),s=we((()=>(e=>{let t=0;return"#### ### ### ### ### ### ###".replace(/#/g,(()=>e[t++]??"")).trim()})(o)),[o]),l=we((()=>a===t.verifiedPhoneNumber),[a,t.verifiedPhoneNumber]);return{setPhoneNumber:r,phoneNumber:{valid:i,original:n,formatted:a,masked:s,isVerified:l}}})(e),[l,c]=he(s.isVerified);be((()=>{(async()=>{await r("sign-up-viewed")})()}),[]);const u=xe((()=>{i("")}),[]),d=xe((()=>{const e=s.valid?"":"Please enter a valid Australian mobile number beginning with 04.";i(e),c(s.isVerified)}),[s.isVerified,s.valid]),p=xe((async()=>{s.valid&&await t(s).then((async()=>await r("sign-up-completed"))).catch(i)}),[s,t,r]),f=xe((()=>r("sign-up-declined").then(n)),[n,r]),m=xe((async()=>{c(!1)}),[]),h=Ie("div",{class:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3 text-xs text-green-700 font-bold",children:["Verified ",Ie(Ht,{})]});return Ie(Mi,{children:[Ie(Mi.Top,{children:Ie("div",{className:"flex flex-col gap-5",children:[Ie($t,{children:"Join your workplace benefits program"}),Ie(Gt,{children:[s.isVerified?"Confirm ":"Enter "," your ",Ie("b",{children:"personal"})," mobile number to finish setting up your Flare Benefits account linked to your workplace"]})]})}),Ie(Mi.Bottom,{children:Ie("div",{className:"mt-5 md:w-[300px] text-left",children:[Ie(qt,{allowedKeyPattern:/[+0-9]/,inputMode:"numeric",className:"mt-1 mb-1 w-full",label:"Australian Mobile Number",value:s.original,onChange:a,onfocusin:u,onfocusout:d,iconElement:l&&h,disabled:l}),0!==o.length&&Ie("div",{className:"h-8 leading-none",children:Ie("span",{className:"text-xs text-rose-500",children:o})}),l&&Ie("div",{className:"mt-2 ml-2 mb-2 leading-none",children:Ie("span",{className:"text-xs",children:["Not your personal number?",Ie(Wt,{class:"text-blue-500",onClick:m,children:"Change number"})]})}),Ie("div",{children:Ie("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"," ",Ie("a",{href:"https://www.flarehr.com/flare-app-terms-and-conditions/",target:"_blank",rel:"noreferrer",children:" Terms of Use "}),"and",Ie("a",{href:"https://www.flarehr.com/privacy-policy/",target:"_blank",rel:"noreferrer",children:" Privacy Policy"}),"."," "]})}),Ie(Vt,{class:"mt-5 md:w-full",onClickPromise:p,children:"Join your workplace"}),Ie(Vt,{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:f,children:"Not now"})]})})]})},Vi=e=>y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...e},y("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"})),Wi=({onContinue:e})=>Ie(Mi,{children:[Ie(Mi.Top,{children:Ie("div",{className:"h-16 w-16 flex items-center justify-center rounded-full bg-blue-50 text-primary-base",children:Ie(Vi,{className:"h-7 w-7"})})}),Ie(Mi.Bottom,{children:Ie("div",{className:"mt-5 flex flex-col items-center gap-5 text-center",children:[Ie($t,{children:"You’ve joined your workplace benefits program"}),Ie(Gt,{children:"With your new Flare Benefits account, you now have access to a range of exclusive benefits available through your workplace."}),Ie(Vt,{class:"mt-5 w-full md:w-[240px]",onClickPromise:async()=>{e()},children:"Set up your benefits"})]})})]}),qi=e=>y("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,viewBox:"0 -960 960 960",width:24,fill:"currentColor",...e},y("path",{d:"m313-440 224 224-57 56-320-320 320-320 57 56-224 224h487v80H313Z"})),$i=({children:e,...t})=>Ie("dialog",{className:"z-50 w-full h-full absolute top-0 left-0 bottom-0 right-0",...t,children:e}),Gi=({open:e})=>Ie($i,{open:e,children:Ie("div",{className:"flex flex-col gap-5 items-center justify-center text-center mt-20",children:[Ie("span",{class:"animate-spin",children:Ie(De,{size:"lg"})}),Ie($t,{children:"Creating your account"}),Ie("div",{children:[Ie(Gt,{children:"This can take up to 30 seconds."}),Ie(Gt,{children:"Please don't navigate away or refresh your browser."})]})]})}),Yi=({phoneNumber:e,onVerify:t,onResendOtp:n,onGoBack:r})=>{const{otp:o,setOtp:i}=(()=>{const[e,t]=he("");return{otp:{valid:we((()=>6===e.length),[e.length]),code:e},setOtp:t}})(),[a,s]=he(!1),[l,c]=he(""),{countdown:u,restart:d}=(e=>{const[t,n]=he(e),r=ye(),o=xe((()=>{clearInterval(r.current)}),[]);be((()=>o),[o]);const i=xe((()=>{let t=e;clearInterval(r.current),r.current=setInterval((()=>{t<0?clearInterval(r.current):n(t--)}),1e3)}),[e]);return{countdown:t,restart:i}})(60);be(d,[d]);const p=xe((()=>(s(!0),c(""),t(o.code).catch(c).finally((()=>{s(!1)})))),[t,o.code]),f=xe((()=>(c(""),n().then(d).catch(c))),[n,d]);return Ie(x,{children:[Ie(Gi,{open:a}),Ie(Mi,{children:[Ie(Mi.Top,{children:Ie("div",{className:"flex flex-col gap-5",children:[Ie($t,{children:"Verify your mobile number"}),Ie(Gt,{children:["An SMS verification code has been sent to the number ",e,"."]})]})}),Ie(Mi.Bottom,{children:Ie("div",{className:"mt-5 md:w-[300px] text-left",children:[Ie(qt,{allowedKeyPattern:/[0-9]/,inputMode:"numeric",minLength:6,maxLength:6,className:"mt-1 mb-1 w-full",label:"Enter your verification code",iconElement:!1,onChange:i}),l&&Ie("span",{className:"text-xs text-rose-500",children:l}),Ie("p",{class:"mt-2 text-center text-xs text-gray-600 disabled:opacity-75 ",children:["Didn't get the code?",Ie(Wt,{disabled:0!==u,className:"underline mx-2 disabled:text-gray-600 disabled:hover:bg-transparent disabled:cursor-text disabled:px-0",onClick:f,children:"Resend SMS"}),0!==u&&Ie(x,{children:["in ",u," secs"]})]}),Ie(Vt,{class:"mt-5 md:w-full",disabled:!o.valid,onClickPromise:p,children:"Continue"}),Ie(Vt,{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:Ie("span",{className:"flex gap-3",children:[Ie(qi,{}),"Back"]})})]})})]})]})},Ki=({phoneNumber:e,onSignUp:t,onVerify:n,onResendOtp:r,onSuccess:o,onDecline:i})=>{const[a,s]=he(e??""),{step:l,goBack:c,goToStep:u}=(()=>{const[e,t]=he(0),n=xe((()=>{const n=e-1;n>=0&&t(n)}),[e]),r=xe((e=>{e<=2&&t(e)}),[e]);return{step:e,goBack:n,goToStep:r}})(),d=xe((e=>t(e.formatted).then((t=>{s(e.masked),u(t.isVerificationRequired?je.OTP:je.SUCCESS)}))),[u,t]),p=xe((e=>n(e).then((()=>{u(je.SUCCESS)}))),[u,n]);return Ie(x,{children:[l===je.PHONE_NUMBER&&Ie(Hi,{phoneNumber:a,onSubmit:d,onDecline:i}),l===je.OTP&&Ie(Yi,{phoneNumber:a,onVerify:p,onResendOtp:r,onGoBack:c}),l===je.SUCCESS&&Ie(Wi,{onContinue:o})]})},Qi="Onboarding",Ji="onboarding";var Xi=(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))(Xi||{});const Zi=e=>{var t;const n=null==(t=null==e?void 0:e.response)?void 0:t.data;throw Xi[null==n?void 0:n.code]??"Sorry, we are currently experiencing some issues. Please try again later."},ea=({onSuccess:e,onDecline:t})=>{const{identity:{phoneNumber:n}}=ke(Fe),{signUp:r,verifyOtp:o,resendOtp:i}={signUp:async e=>Vr.backend.getClient().post("v2.0/auth/signUp",{mobileNumber:e,source:Qi,channel:Ji}).then((e=>({isVerificationRequired:e.data.isVerificationRequired??!0}))),verifyOtp:async e=>{await Vr.backend.getClient().post("auth/verify",{otp:e,source:Qi,channel:Ji}).catch(Zi)},resendOtp:async()=>{await Vr.backend.getClient().post("auth/resend").catch(Zi)}};return Ie(x,{children:Ie(Ki,{phoneNumber:n,onSignUp:r,onVerify:o,onResendOtp:i,onSuccess:e,onDecline:t})})},ta=""+("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),na=e=>{const{featureFlags:t}=ke(Fe),[n,r]=he(!0),{trace:o}=Gr();return be((()=>{t.unifiedCustomerRegistration||(async()=>{await o("sign-up-viewed")})()}),[]),Ie(Mi,{children:[Ie(Mi.Top,{children:Ie("img",{class:"max-w-[30rem] w-full",src:ta})}),Ie(Mi.Bottom,{children:Ie("div",{children:[Ie("h3",{class:"mt-8 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:"Finish setting up your workplace benefits"}),Ie("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&&Ie("div",{class:"flex items-center text-left mt-6",children:[Ie("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)}}),Ie("label",{class:"font-medium text-sm text-gray-900 ml-3",for:"membership",children:Ie("span",{children:["I would like to be contacted about the latest benefits from Flare and agree to the"," ",Ie("a",{href:"https://www.flarehr.com/privacy-policy/",target:"_blank",rel:"noreferrer",children:"privacy policy"}),"."]})})]}),Ie(Vt,{class:"mt-8",onClickPromise:async()=>{await o("started"),t.unifiedCustomerRegistration||await o(n?"membership-accepted":"membership-declined"),e.onStepComplete()},children:"Continue"})]})})]})},ra=({children:e})=>{const t=Bt.Children.toArray(e),n=t.find((e=>e.type===oa)),r=t.find((e=>e.type===ia));return Ie(ji,{appear:!0,show:!0,enter:"transition duration-700 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:Ie("div",{class:"md:grid md:grid-cols-2 max-w-[59.5rem] mx-auto",children:[Ie(ji,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:n&&Ie("div",{class:"flex items-center h-full",children:n})}),Ie(ji,{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&&Ie("div",{class:"flex items-center h-full",children:r})})]})})},oa=({children:e})=>Ie(x,{children:e}),ia=({children:e})=>Ie(x,{children:e});ra.Left=oa,ra.Right=ia;
|
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),__accessCheck=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},__privateGet=(e,t,n)=>(__accessCheck(e,t,"read from private field"),n?n.call(e):t.get(e)),__privateAdd=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},__privateSet=(e,t,n,r)=>(__accessCheck(e,t,"write to private field"),r?r.call(e,n):t.set(e,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,d,p,f={},m=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,g=Array.isArray;function b(e,t){for(var n in t)e[n]=t[n];return e}function y(e){var t=e.parentNode;t&&t.removeChild(e)}function _(e,t,n){var r,o,a,s={};for(a in t)"key"==a?r=t[a]:"ref"==a?o=t[a]:s[a]=t[a];if(arguments.length>2&&(s.children=arguments.length>3?i.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]);return v(e,s,r,o,null)}function v(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++s:o,__i:-1,__u:0};return null==o&&null!=a.vnode&&a.vnode(i),i}function w(){return{current:null}}function x(e){return e.children}function k(e,t){this.props=e,this.context=t}function S(e,t){if(null==t)return e.__?S(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?S(e):null}function E(e,t,n){var r,o=e.__v,i=o.__e,s=e.__P;if(s)return(r=b({},o)).__v=o.__v+1,a.vnode&&a.vnode(r),F(s,r,o,e.__n,void 0!==s.ownerSVGElement,32&o.__u?[i]:null,t,null==i?S(o):i,!!(32&o.__u),n),r.__v=o.__v,r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=i&&N(r),r}function N(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 N(e)}}function C(e){(!e.__d&&(e.__d=!0)&&l.push(e)&&!T.__r++||c!==a.debounceRendering)&&((c=a.debounceRendering)||u)(T)}function T(){var e,t,n,r=[],o=[];for(l.sort(d);e=l.shift();)e.__d&&(n=l.length,t=E(e,r,o)||t,0===n||l.length>n?(j(r,t,o),o.length=r.length=0,t=void 0,l.sort(d)):t&&a.__c&&a.__c(t,m));t&&j(r,t,o),T.__r=0}function O(e,t,n,r,o,i,a,s,l,c,u){var d,p,h,b,y,_=r&&r.__k||m,w=t.length;for(n.__d=l,function(e,t,n){var r,o,i,a,s,l=t.length,c=n.length,u=c,d=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?v(null,o,null,null,o):g(o)?v(x,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?v(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,s=P(o,n,a=r+d,u),o.__i=s,i=null,-1!==s&&(u--,(i=n[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&d--,"function"!=typeof o.type&&(o.__u|=65536)):s!==a&&(s===a+1?d++:s>a?u>l-a?d+=s-a:d--:d=s<a&&s==a-1?s-a:0,s!==r+d&&(o.__u|=65536))):(i=n[r])&&null==i.key&&i.__e&&0==(131072&i.__u)&&(i.__e==e.__d&&(e.__d=S(i)),B(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=S(i)),B(i,i))}(n,t,_),l=n.__d,d=0;d<w;d++)null!=(h=n.__k[d])&&"boolean"!=typeof h&&"function"!=typeof h&&(p=-1===h.__i?f:_[h.__i]||f,h.__i=d,F(e,h,p,o,i,a,s,l,c,u),b=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&M(p.ref,null,h),u.push(h.ref,h.__c||b,h)),null==y&&null!=b&&(y=b),65536&h.__u||p.__k===h.__k?l=R(h,l,e):"function"==typeof h.type&&void 0!==h.__d?l=h.__d:b&&(l=b.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=l,n.__e=y}function R(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=R(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 A(e,t){return t=t||[],null==e||"boolean"==typeof e||(g(e)?e.some((function(e){A(e,t)})):t.push(e)),t}function P(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 L(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||h.test(t)?n:n+"px"}function I(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||L(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||L(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?U:D,i)):e.removeEventListener(t,i?U:D,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 D(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(a.event?a.event(e):e)}}function U(e){if(this.l)return this.l[e.type+!0](a.event?a.event(e):e)}function F(e,t,n,r,o,s,l,c,u,d){var p,m,h,_,v,w,E,N,C,T,R,A,P,L,D,U=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(u=!!(32&n.__u),s=[c=t.__e=n.__e]),(p=a.__b)&&p(t);e:if("function"==typeof U)try{if(N=t.props,C=(p=U.contextType)&&r[p.__c],T=p?C?C.props.value:p.__:r,n.__c?E=(m=t.__c=n.__c).__=m.__E:("prototype"in U&&U.prototype.render?t.__c=m=new U(N,T):(t.__c=m=new k(N,T),m.constructor=U,m.render=z),C&&C.sub(m),m.props=N,m.state||(m.state={}),m.context=T,m.__n=r,h=m.__d=!0,m.__h=[],m._sb=[]),null==m.__s&&(m.__s=m.state),null!=U.getDerivedStateFromProps&&(m.__s==m.state&&(m.__s=b({},m.__s)),b(m.__s,U.getDerivedStateFromProps(N,m.__s))),_=m.props,v=m.state,m.__v=t,h)null==U.getDerivedStateFromProps&&null!=m.componentWillMount&&m.componentWillMount(),null!=m.componentDidMount&&m.__h.push(m.componentDidMount);else{if(null==U.getDerivedStateFromProps&&N!==_&&null!=m.componentWillReceiveProps&&m.componentWillReceiveProps(N,T),!m.__e&&(null!=m.shouldComponentUpdate&&!1===m.shouldComponentUpdate(N,m.__s,T)||t.__v===n.__v)){for(t.__v!==n.__v&&(m.props=N,m.state=m.__s,m.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),R=0;R<m._sb.length;R++)m.__h.push(m._sb[R]);m._sb=[],m.__h.length&&l.push(m);break e}null!=m.componentWillUpdate&&m.componentWillUpdate(N,m.__s,T),null!=m.componentDidUpdate&&m.__h.push((function(){m.componentDidUpdate(_,v,w)}))}if(m.context=T,m.props=N,m.__P=e,m.__e=!1,A=a.__r,P=0,"prototype"in U&&U.prototype.render){for(m.state=m.__s,m.__d=!1,A&&A(t),p=m.render(m.props,m.state,m.context),L=0;L<m._sb.length;L++)m.__h.push(m._sb[L]);m._sb=[]}else do{m.__d=!1,A&&A(t),p=m.render(m.props,m.state,m.context),m.state=m.__s}while(m.__d&&++P<25);m.state=m.__s,null!=m.getChildContext&&(r=b(b({},r),m.getChildContext())),h||null==m.getSnapshotBeforeUpdate||(w=m.getSnapshotBeforeUpdate(_,v)),O(e,g(D=null!=p&&p.type===x&&null==p.key?p.props.children:p)?D:[D],t,n,r,o,s,l,c,u,d),m.base=t.__e,t.__u&=-161,m.__h.length&&l.push(m),E&&(m.__E=m.__=null)}catch(F){t.__v=null,u||null!=s?(t.__e=c,t.__u|=u?160:32,s[s.indexOf(c)]=null):(t.__e=n.__e,t.__k=n.__k),a.__e(F,t,n)}else null==s&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,o,a,s,l,c){var u,d,p,m,h,b,_,v=n.props,w=t.props,x=t.type;if("svg"===x&&(o=!0),null!=a)for(u=0;u<a.length;u++)if((h=a[u])&&"setAttribute"in h==!!x&&(x?h.localName===x:3===h.nodeType)){e=h,a[u]=null;break}if(null==e){if(null===x)return document.createTextNode(w);e=o?document.createElementNS("http://www.w3.org/2000/svg",x):document.createElement(x,w.is&&w),a=null,l=!1}if(null===x)v===w||l&&e.data===w||(e.data=w);else{if(a=a&&i.call(e.childNodes),v=n.props||f,!l&&null!=a)for(v={},u=0;u<e.attributes.length;u++)v[(h=e.attributes[u]).name]=h.value;for(u in v)h=v[u],"children"==u||("dangerouslySetInnerHTML"==u?p=h:"key"===u||u in w||I(e,u,null,h,o));for(u in w)h=w[u],"children"==u?m=h:"dangerouslySetInnerHTML"==u?d=h:"value"==u?b=h:"checked"==u?_=h:"key"===u||l&&"function"!=typeof h||v[u]===h||I(e,u,h,v[u],o);if(d)l||p&&(d.__html===p.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(p&&(e.innerHTML=""),O(e,g(m)?m:[m],t,n,r,o&&"foreignObject"!==x,a,s,a?a[0]:n.__k&&S(n,0),l,c),null!=a)for(u=a.length;u--;)null!=a[u]&&y(a[u]);l||(u="value",void 0!==b&&(b!==e[u]||"progress"===x&&!b||"option"===x&&b!==v[u])&&I(e,u,b,v[u],!1),u="checked",void 0!==_&&_!==e[u]&&I(e,u,_,v[u],!1))}return e}(n.__e,t,n,r,o,s,l,u,d);(p=a.diffed)&&p(t)}function j(e,t,n){for(var r=0;r<n.length;r++)M(n[r],n[++r],n[++r]);a.__c&&a.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(n){a.__e(n,t.__v)}}))}function M(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(r){a.__e(r,n)}}function B(e,t,n){var r,o;if(a.unmount&&a.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||M(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){a.__e(i,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&B(r[o],t,n||"function"!=typeof e.type);n||null==e.__e||y(e.__e),e.__=e.__e=e.__d=void 0}function z(e,t,n){return this.constructor(e,n)}function H(e,t,n){var r,o,s,l;a.__&&a.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,s=[],l=[],F(t,e=(!r&&n||t).__k=_(x,null,[e]),o||f,f,void 0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?i.call(t.childNodes):null,s,!r&&n?n:o?o.__e:t.firstChild,r,l),e.__d=void 0,j(s,e,l)}function V(e,t){H(e,t,V)}function W(e,t,n){var r,o,a,s,l=b({},e.props);for(a in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)"key"==a?r=t[a]:"ref"==a?o=t[a]:l[a]=void 0===t[a]&&void 0!==s?s[a]:t[a];return arguments.length>2&&(l.children=arguments.length>3?i.call(arguments,2):n),v(e.type,l,r||e.key,o||e.ref,null)}function $(e,t){var n={__c:t="__cC"+p++,__: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,C(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 q(){return(q=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)}i=m.slice,a={__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}},s=0,k.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=b({},this.state),"function"==typeof e&&(e=e(b({},n),this.props)),e&&b(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),C(this))},k.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),C(this))},k.prototype.render=x,l=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,d=function(e,t){return e.__v.__b-t.__v.__b},T.__r=0,p=0;var G=["context","children"];function Y(e){return this.getChildContext=function(){return e.context},W(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,G))}function K(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=_(Y,q({},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[Q(a[i].name)]=a[i].value);for(i=s.length;i--;){var l=e(s[i],null),c=s[i].slot;c?o[c]=_(Z,{name:c},l):r[i]=l}var u=n?_(Z,null,r):r;return _(n||t.nodeName.toLowerCase(),o,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?V:H)(this._vdom,this._root)}function Q(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function J(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[Q(e)]=n,this._vdom=W(this._vdom,r),H(this._vdom,this._root)}}function X(){H(this._vdom=null,this._root)}function Z(e,t){var n=this;return _("slot",q({},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 ee,te,ne,re,oe=0,ie=[],ae=[],se=a,le=se.__b,ce=se.__r,ue=se.diffed,de=se.__c,pe=se.unmount,fe=se.__;function me(e,t){se.__h&&se.__h(te,e,oe||t),oe=0;var n=te.__H||(te.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:ae}),n.__[e]}function he(e){return oe=1,ge(Pe,e)}function ge(e,t,n){var r=me(ee++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Pe(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=te,!te.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))};te.u=!0;var i=te.shouldComponentUpdate,a=te.componentWillUpdate;te.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)},te.shouldComponentUpdate=o}return r.__N||r.__}function be(e,t){var n=me(ee++,3);!se.__s&&Ae(n.__H,t)&&(n.__=e,n.i=t,te.__H.__h.push(n))}function ye(e,t){var n=me(ee++,4);!se.__s&&Ae(n.__H,t)&&(n.__=e,n.i=t,te.__h.push(n))}function _e(e){return oe=5,we((function(){return{current:e}}),[])}function ve(e,t,n){oe=6,ye((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 we(e,t){var n=me(ee++,7);return Ae(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function xe(e,t){return oe=8,we((function(){return e}),t)}function ke(e){var t=te.context[e.__c],n=me(ee++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(te)),t.props.value):e.__}function Se(e,t){se.useDebugValue&&se.useDebugValue(t?t(e):e)}function Ee(){var e=me(ee++,11);if(!e.__){for(var t=te.__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 Ne(){for(var e;e=ie.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Oe),e.__H.__h.forEach(Re),e.__H.__h=[]}catch(uo){e.__H.__h=[],se.__e(uo,e.__v)}}se.__b=function(e){te=null,le&&le(e)},se.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),fe&&fe(e,t)},se.__r=function(e){ce&&ce(e),ee=0;var t=(te=e.__c).__H;t&&(ne===te?(t.__h=[],te.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=ae,e.__N=e.i=void 0}))):(t.__h.forEach(Oe),t.__h.forEach(Re),t.__h=[],ee=0)),ne=te},se.diffed=function(e){ue&&ue(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==ie.push(t)&&re===se.requestAnimationFrame||((re=se.requestAnimationFrame)||Te)(Ne)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==ae&&(e.__=e.__V),e.i=void 0,e.__V=ae}))),ne=te=null},se.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Oe),e.__h=e.__h.filter((function(e){return!e.__||Re(e)}))}catch(Xo){t.some((function(e){e.__h&&(e.__h=[])})),t=[],se.__e(Xo,e.__v)}})),de&&de(e,t)},se.unmount=function(e){pe&&pe(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Oe(e)}catch(n){t=n}})),n.__H=void 0,t&&se.__e(t,n.__v))};var Ce="function"==typeof requestAnimationFrame;function Te(e){var t,n=function(){clearTimeout(r),Ce&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Ce&&(t=requestAnimationFrame(n))}function Oe(e){var t=te,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),te=t}function Re(e){var t=te;e.__c=e.__(),te=t}function Ae(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Pe(e,t){return"function"==typeof t?t(e):t}var Le=0;function Ie(e,t,n,r,o,i){var s,l,c={};for(l in t)"ref"==l?s=t[l]:c[l]=t[l];var u={type:e,props:c,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--Le,__i:-1,__u:0,__source:o,__self:i};if("function"==typeof e&&(s=e.defaultProps))for(l in s)void 0===c[l]&&(c[l]=s[l]);return a.vnode&&a.vnode(u),u}const De=e=>Ie("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:[Ie("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"}),Ie("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"})]}),Ue={offers:[],isComplete:!1,isAppEnabled:!1,identity:{email:"",phoneNumber:"",verifiedPhoneNumber:"",registrationStatus:"Unregistered"},workplace:{employerName:"",linkingStatus:"Unlinked"},featureFlags:{unifiedCustomerRegistration:!1},updateIdentity:e=>({})},Fe=$(Ue);var je=(e=>(e[e.PHONE_NUMBER=0]="PHONE_NUMBER",e[e.OTP=1]="OTP",e[e.SUCCESS=2]="SUCCESS",e))(je||{});const Me=({className:e,children:t,...n})=>Ie("label",{class:`text-base text-gray-600 ${e??""}`,...n,children:t});function Be(e,t){for(var n in t)e[n]=t[n];return e}function ze(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 He(e,t){this.props=e,this.context=t}function Ve(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:ze(this.props,e)}function r(t){return this.shouldComponentUpdate=n,_(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(He.prototype=new k).isPureReactComponent=!0,He.prototype.shouldComponentUpdate=function(e,t){return ze(this.props,e)||ze(this.state,t)};var We=a.__b;a.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),We&&We(e)};var $e="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function qe(e){function t(t){var n=Be({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=$e,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Ge=function(e,t){return null==e?null:A(A(e).map(t))},Ye={map:Ge,forEach:Ge,count:function(e){return e?A(e).length:0},only:function(e){var t=A(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:A},Ke=a.__e;a.__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);Ke(e,t,n,r)};var Qe=a.unmount;function Je(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=Be({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Je(e,t,n)}))),e}function Xe(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return Xe(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 Ze(){this.__u=0,this.t=null,this.__b=null}function et(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function tt(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 _(n,o)}return o.displayName="Lazy",o.__f=!0,o}function nt(){this.u=null,this.o=null}a.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Qe&&Qe(e)},(Ze.prototype=new k).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=et(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]=Xe(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)},Ze.prototype.componentWillUnmount=function(){this.t=[]},Ze.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]=Je(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&_(x,null,e.fallback);return o&&(o.__u&=-33),[_(x,null,t.__a?null:e.children),o]};var rt=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 ot(e){return this.getChildContext=function(){return e.context},e.children}function it(e){var t=this,n=e.i;t.componentWillUnmount=function(){H(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)}}),H(_(ot,{context:t.context},e.__v),t.l)}function at(e,t){var n=_(it,{__v:e,i:t});return n.containerInfo=t,n}(nt.prototype=new k).__a=function(e){var t=this,n=et(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),rt(t,e,r)):o()};n?n(i):i()}},nt.prototype.render=function(e){this.u=null,this.o=new Map;var t=A(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},nt.prototype.componentDidUpdate=nt.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){rt(e,n,t)}))};var st="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,lt=/^(?: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]/,ct=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ut=/[A-Z0-9]/g,dt="undefined"!=typeof document,pt=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function ft(e,t,n){return null==t.__k&&(t.textContent=""),H(e,t),"function"==typeof n&&n(),e?e.__c:null}function mt(e,t,n){return V(e,t),"function"==typeof n&&n(),e?e.__c:null}k.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(k.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var ht=a.event;function gt(){}function bt(){return this.cancelBubble}function yt(){return this.defaultPrevented}a.event=function(e){return ht&&(e=ht(e)),e.persist=gt,e.isPropagationStopped=bt,e.isDefaultPrevented=yt,e.nativeEvent=e};var _t,vt={enumerable:!1,configurable:!0,get:function(){return this.class}},wt=a.vnode;a.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||dt&&"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||pt(t.type)?"onfocus"===a?o="onfocusin":"onblur"===a?o="onfocusout":ct.test(o)?o=a:-1===n.indexOf("-")&<.test(o)?o=o.replace(ut,"-$&").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=A(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=A(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",vt)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=st,wt&&wt(e)};var xt=a.__r;a.__r=function(e){xt&&xt(e),_t=e.__c};var kt=a.diffed;a.diffed=function(e){kt&&kt(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),_t=null};var St={ReactCurrentDispatcher:{current:{readContext:function(e){return _t.__n[e.__c].props.value}}}};function Et(e){return _.bind(null,e)}function Nt(e){return!!e&&e.$$typeof===st}function Ct(e){return Nt(e)&&e.type===x}function Tt(e){return Nt(e)?W.apply(null,arguments):e}function Ot(e){return!!e.__k&&(H(null,e),!0)}function Rt(e){return e&&(e.base||1===e.nodeType&&e)||null}var At=function(e,t){return e(t)},Pt=function(e,t){return e(t)},Lt=x;function It(e){e()}function Dt(e){return e}function Ut(){return[!1,It]}var Ft=ye,jt=Nt;function Mt(e,t){var n=t(),r=he({h:{__:n,v:t}}),o=r[0].h,i=r[1];return ye((function(){o.__=n,o.v=t,Bt(o)&&i({h:o})}),[e,n,t]),be((function(){return Bt(o)&&i({h:o}),e((function(){Bt(o)&&i({h:o})}))}),[e]),n}function Bt(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 zt={useState:he,useId:Ee,useReducer:ge,useEffect:be,useLayoutEffect:ye,useInsertionEffect:Ft,useTransition:Ut,useDeferredValue:Dt,useSyncExternalStore:Mt,startTransition:It,useRef:_e,useImperativeHandle:ve,useMemo:we,useCallback:xe,useContext:ke,useDebugValue:Se,version:"17.0.2",Children:Ye,render:ft,hydrate:mt,unmountComponentAtNode:Ot,createPortal:at,createElement:_,createContext:$,createFactory:Et,cloneElement:Tt,createRef:w,Fragment:x,isValidElement:Nt,isElement:jt,isFragment:Ct,findDOMNode:Rt,Component:k,PureComponent:He,memo:Ve,forwardRef:qe,flushSync:Pt,unstable_batchedUpdates:At,StrictMode:Lt,Suspense:Ze,SuspenseList:nt,lazy:tt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:St};const Ht=Object.freeze(Object.defineProperty({__proto__:null,Children:Ye,Component:k,Fragment:x,PureComponent:He,StrictMode:Lt,Suspense:Ze,SuspenseList:nt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:St,cloneElement:Tt,createContext:$,createElement:_,createFactory:Et,createPortal:at,createRef:w,default:zt,findDOMNode:Rt,flushSync:Pt,forwardRef:qe,hydrate:mt,isElement:jt,isFragment:Ct,isValidElement:Nt,lazy:tt,memo:Ve,render:ft,startTransition:It,unmountComponentAtNode:Ot,unstable_batchedUpdates:At,useCallback:xe,useContext:ke,useDebugValue:Se,useDeferredValue:Dt,useEffect:be,useErrorBoundary:function(e){var t=me(ee++,10),n=he();return t.__=e,te.componentDidCatch||(te.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:Ee,useImperativeHandle:ve,useInsertionEffect:Ft,useLayoutEffect:ye,useMemo:we,useReducer:ge,useRef:_e,useState:he,useSyncExternalStore:Mt,useTransition:Ut,version:"17.0.2"},Symbol.toStringTag,{value:"Module"})),Vt=e=>_("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"green",className:"w-5 h-5",...e},_("path",{fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm3.857-9.809a.75.75 0 0 0-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 1 0-1.06 1.061l2.5 2.5a.75.75 0 0 0 1.137-.089l4-5.5Z",clipRule:"evenodd"})),Wt=e=>{const[t,n]=he(!1);return Ie("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:[Ie("div",{class:""+(t?"invisible":""),children:e.children}),t&&Ie("div",{class:"absolute animate-spin",children:Ie(De,{theme:"light"})})]})},$t=({className:e,onClick:t,...n})=>{const[r,o]=he(!1);return Ie("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:xe((()=>{if(!r)return o(!0),t().finally((()=>{o(!1)}))}),[r,t]),...n,children:[Ie("div",{class:"relative "+(r?"invisible":""),children:n.children}),r&&Ie("div",{class:"absolute animate-spin",children:Ie(De,{theme:"primary"})})]})},qt=({className:e,allowedKeyPattern:t,onChange:n,value:r,leadingIconElement:o,trailingIconElement:i,...a})=>Ie(x,{children:Ie("div",{class:"relative",children:[o,Ie("input",{type:"text",className:`border-0 ring-2 ring-gray-200 focus:outline-none text-base font-medium rounded-md shadow-sm ${e}`,value:r,onKeyPress:xe((e=>{t.test(e.key)||e.preventDefault()}),[t]),onChange:e=>n(e.currentTarget.value),...a}),i]})}),Gt=({className:e,children:t})=>Ie("h1",{className:`text-2xl md:text-3xl font-bold ${e??""}`,children:t}),Yt=({className:e,children:t})=>Ie("h3",{class:`text-base md:text-lg text-gray-600 ${e??""}`,children:t});class Kt extends Error{}function Qt(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,((e,t)=>{let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(n){return atob(t)}}Kt.prototype.name="InvalidTokenError";const Jt=crypto.randomUUID?crypto.randomUUID():crypto.getRandomValues(new Uint32Array(5)).join("-"),Xt=e=>(window.addEventListener(Jt,e),()=>window.removeEventListener(Jt,e)),Zt=()=>{window.dispatchEvent(new Event(Jt))};function en(e,t){return function(){return e.apply(t,arguments)}}const{toString:tn}=Object.prototype,{getPrototypeOf:nn}=Object,rn=(e=>t=>{const n=tn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),on=e=>(e=e.toLowerCase(),t=>rn(t)===e),an=e=>t=>typeof t===e,{isArray:sn}=Array,ln=an("undefined");const cn=on("ArrayBuffer");const un=an("string"),dn=an("function"),pn=an("number"),fn=e=>null!==e&&"object"==typeof e,mn=e=>{if("object"!==rn(e))return!1;const t=nn(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},hn=on("Date"),gn=on("File"),bn=on("Blob"),yn=on("FileList"),_n=on("URLSearchParams");function vn(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),sn(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 wn(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 xn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,kn=e=>!ln(e)&&e!==xn;const Sn=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&nn(Uint8Array)),En=on("HTMLFormElement"),Nn=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Cn=on("RegExp"),Tn=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};vn(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},On="abcdefghijklmnopqrstuvwxyz",Rn="0123456789",An={DIGIT:Rn,ALPHA:On,ALPHA_DIGIT:On+On.toUpperCase()+Rn};const Pn=on("AsyncFunction"),Ln={isArray:sn,isArrayBuffer:cn,isBuffer:function(e){return null!==e&&!ln(e)&&null!==e.constructor&&!ln(e.constructor)&&dn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||dn(e.append)&&("formdata"===(t=rn(e))||"object"===t&&dn(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&cn(e.buffer),t},isString:un,isNumber:pn,isBoolean:e=>!0===e||!1===e,isObject:fn,isPlainObject:mn,isUndefined:ln,isDate:hn,isFile:gn,isBlob:bn,isRegExp:Cn,isFunction:dn,isStream:e=>fn(e)&&dn(e.pipe),isURLSearchParams:_n,isTypedArray:Sn,isFileList:yn,forEach:vn,merge:function e(){const{caseless:t}=kn(this)&&this||{},n={},r=(r,o)=>{const i=t&&wn(n,o)||o;mn(n[i])&&mn(r)?n[i]=e(n[i],r):mn(r)?n[i]=e({},r):sn(r)?n[i]=r.slice():n[i]=r};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&vn(arguments[o],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(vn(t,((t,r)=>{n&&dn(t)?e[r]=en(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&&nn(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:rn,kindOfTest:on,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(sn(e))return e;let t=e.length;if(!pn(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:En,hasOwnProperty:Nn,hasOwnProp:Nn,reduceDescriptors:Tn,freezeMethods:e=>{Tn(e,((t,n)=>{if(dn(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];dn(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 sn(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:wn,global:xn,isContextDefined:kn,ALPHABET:An,generateString:(e=16,t=An.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&dn(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(fn(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=sn(e)?[]:{};return vn(e,((e,t)=>{const i=n(e,r+1);!ln(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:Pn,isThenable:e=>e&&(fn(e)||dn(e))&&dn(e.then)&&dn(e.catch)};function In(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)}Ln.inherits(In,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:Ln.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Dn=In.prototype,Un={};["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=>{Un[e]={value:e}})),Object.defineProperties(In,Un),Object.defineProperty(Dn,"isAxiosError",{value:!0}),In.from=(e,t,n,r,o,i)=>{const a=Object.create(Dn);return Ln.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),In.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function Fn(e){return Ln.isPlainObject(e)||Ln.isArray(e)}function jn(e){return Ln.endsWith(e,"[]")?e.slice(0,-2):e}function Mn(e,t,n){return e?e.concat(t).map((function(e,t){return e=jn(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Bn=Ln.toFlatObject(Ln,{},null,(function(e){return/^is[A-Z]/.test(e)}));function zn(e,t,n){if(!Ln.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Ln.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Ln.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Ln.isSpecCompliantForm(t);if(!Ln.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Ln.isDate(e))return e.toISOString();if(!s&&Ln.isBlob(e))throw new In("Blob is not supported. Use a Buffer instead.");return Ln.isArrayBuffer(e)||Ln.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(Ln.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Ln.isArray(e)&&function(e){return Ln.isArray(e)&&!e.some(Fn)}(e)||(Ln.isFileList(e)||Ln.endsWith(n,"[]"))&&(s=Ln.toArray(e)))return n=jn(n),s.forEach((function(e,r){!Ln.isUndefined(e)&&null!==e&&t.append(!0===a?Mn([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!Fn(e)||(t.append(Mn(o,n,i),l(e)),!1)}const u=[],d=Object.assign(Bn,{defaultVisitor:c,convertValue:l,isVisitable:Fn});if(!Ln.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Ln.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),Ln.forEach(n,(function(n,i){!0===(!(Ln.isUndefined(n)||null===n)&&o.call(t,n,Ln.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t}function Hn(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Vn(e,t){this._pairs=[],e&&zn(e,this,t)}const Wn=Vn.prototype;function $n(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function qn(e,t,n){if(!t)return e;const r=n&&n.encode||$n,o=n&&n.serialize;let i;if(i=o?o(t,n):Ln.isURLSearchParams(t)?t.toString():new Vn(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}Wn.append=function(e,t){this._pairs.push([e,t])},Wn.toString=function(e){const t=e?function(t){return e.call(this,t,Hn)}:Hn;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class Gn{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){Ln.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const Yn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Kn={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Vn,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Qn="undefined"!=typeof window&&"undefined"!=typeof document,Jn=(Xn="undefined"!=typeof navigator&&navigator.product,Qn&&["ReactNative","NativeScript","NS"].indexOf(Xn)<0);var Xn;const Zn="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,er={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Qn,hasStandardBrowserEnv:Jn,hasStandardBrowserWebWorkerEnv:Zn},Symbol.toStringTag,{value:"Module"})),...Kn};function tr(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&&Ln.isArray(r)?r.length:i,s)return Ln.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&Ln.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&Ln.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(Ln.isFormData(e)&&Ln.isFunction(e.entries)){const n={};return Ln.forEachEntry(e,((e,r)=>{t(function(e){return Ln.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const nr={transitional:Yn,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Ln.isObject(e);o&&Ln.isHTMLForm(e)&&(e=new FormData(e));if(Ln.isFormData(e))return r?JSON.stringify(tr(e)):e;if(Ln.isArrayBuffer(e)||Ln.isBuffer(e)||Ln.isStream(e)||Ln.isFile(e)||Ln.isBlob(e))return e;if(Ln.isArrayBufferView(e))return e.buffer;if(Ln.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 zn(e,new er.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return er.isNode&&Ln.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=Ln.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return zn(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Ln.isString(e))try{return(t||JSON.parse)(e),Ln.trim(e)}catch(Oo){if("SyntaxError"!==Oo.name)throw Oo}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||nr.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&Ln.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(Oo){if(n){if("SyntaxError"===Oo.name)throw In.from(Oo,In.ERR_BAD_RESPONSE,this,null,this.response);throw Oo}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:er.classes.FormData,Blob:er.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ln.forEach(["delete","get","head","post","put","patch"],(e=>{nr.headers[e]={}}));const rr=nr,or=Ln.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"]),ir=Symbol("internals");function ar(e){return e&&String(e).trim().toLowerCase()}function sr(e){return!1===e||null==e?e:Ln.isArray(e)?e.map(sr):String(e)}function lr(e,t,n,r,o){return Ln.isFunction(r)?r.call(this,t,n):(o&&(t=n),Ln.isString(t)?Ln.isString(r)?-1!==t.indexOf(r):Ln.isRegExp(r)?r.test(t):void 0:void 0)}class cr{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=ar(t);if(!o)throw new Error("header name must be a non-empty string");const i=Ln.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=sr(e))}const i=(e,t)=>Ln.forEach(e,((e,n)=>o(e,n,t)));return Ln.isPlainObject(e)||e instanceof this.constructor?i(e,t):Ln.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]&&or[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=ar(e)){const n=Ln.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(Ln.isFunction(t))return t.call(this,e,n);if(Ln.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ar(e)){const n=Ln.findKey(this,e);return!(!n||void 0===this[n]||t&&!lr(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=ar(e)){const o=Ln.findKey(n,e);!o||t&&!lr(0,n[o],o,t)||(delete n[o],r=!0)}}return Ln.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&&!lr(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Ln.forEach(this,((r,o)=>{const i=Ln.findKey(n,o);if(i)return t[i]=sr(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]=sr(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Ln.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Ln.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[ir]=this[ir]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=ar(e);t[r]||(!function(e,t){const n=Ln.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 Ln.isArray(e)?e.forEach(r):r(e),this}}cr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ln.reduceDescriptors(cr.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Ln.freezeMethods(cr);const ur=cr;function dr(e,t){const n=this||rr,r=t||n,o=ur.from(r.headers);let i=r.data;return Ln.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function pr(e){return!(!e||!e.__CANCEL__)}function fr(e,t,n){In.call(this,null==e?"canceled":e,In.ERR_CANCELED,t,n),this.name="CanceledError"}Ln.inherits(fr,In,{__CANCEL__:!0});const mr=er.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Ln.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Ln.isString(r)&&a.push("path="+r),Ln.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 hr(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 gr=er.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=Ln.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return function(){return!0}}();function br(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 p=c&&l-c;return p?Math.round(1e3*d/p):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 yr={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const o=ur.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(Ln.isFormData(r))if(er.hasStandardBrowserEnv||er.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=hr(e.baseURL,e.url);function p(){if(!u)return;const r=ur.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new In("Request failed with status code "+n.status,[In.ERR_BAD_REQUEST,In.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(),qn(d,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=p:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(p)},u.onabort=function(){u&&(n(new In("Request aborted",In.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new In("Network Error",In.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||Yn;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new In(t,r.clarifyTimeoutError?In.ETIMEDOUT:In.ECONNABORTED,e,u)),u=null},er.hasStandardBrowserEnv&&(l&&Ln.isFunction(l)&&(l=l(e)),l||!1!==l&&gr(d))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&mr.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in u&&Ln.forEach(o.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),Ln.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&"json"!==s&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",br(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",br(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=t=>{u&&(n(!t||t.type?new fr(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 f=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(d);f&&-1===er.protocols.indexOf(f)?n(new In("Unsupported protocol "+f+":",In.ERR_BAD_REQUEST,e)):u.send(r||null)}))}};Ln.forEach(yr,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(Oo){}Object.defineProperty(e,"adapterName",{value:t})}}));const _r=e=>`- ${e}`,vr=e=>Ln.isFunction(e)||null===e||!1===e,wr=e=>{e=Ln.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,!vr(n)&&(r=yr[(t=String(n)).toLowerCase()],void 0===r))throw new In(`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 In("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(_r).join("\n"):" "+_r(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function xr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new fr(null,e)}function kr(e){xr(e),e.headers=ur.from(e.headers),e.data=dr.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return wr(e.adapter||rr.adapter)(e).then((function(t){return xr(e),t.data=dr.call(e,e.transformResponse,t),t.headers=ur.from(t.headers),t}),(function(t){return pr(t)||(xr(e),t&&t.response&&(t.response.data=dr.call(e,e.transformResponse,t.response),t.response.headers=ur.from(t.response.headers))),Promise.reject(t)}))}const Sr=e=>e instanceof ur?e.toJSON():e;function Er(e,t){t=t||{};const n={};function r(e,t,n){return Ln.isPlainObject(e)&&Ln.isPlainObject(t)?Ln.merge.call({caseless:n},e,t):Ln.isPlainObject(t)?Ln.merge({},t):Ln.isArray(t)?t.slice():t}function o(e,t,n){return Ln.isUndefined(t)?Ln.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!Ln.isUndefined(t))return r(void 0,t)}function a(e,t){return Ln.isUndefined(t)?Ln.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(Sr(e),Sr(t),!0)};return Ln.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);Ln.isUndefined(a)&&i!==s||(n[r]=a)})),n}const Nr="1.6.7",Cr={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Cr[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Tr={};Cr.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 In(r(o," has been removed"+(t?" in "+t:"")),In.ERR_DEPRECATED);return t&&!Tr[o]&&(Tr[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 Or={assertOptions:function(e,t,n){if("object"!=typeof e)throw new In("options must be an object",In.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 In("option "+i+" must be "+n,In.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new In("Unknown option "+i,In.ERR_BAD_OPTION)}},validators:Cr},Rr=Or.validators;class Ar{constructor(e){this.defaults=e,this.interceptors={request:new Gn,response:new Gn}}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=Er(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Or.assertOptions(n,{silentJSONParsing:Rr.transitional(Rr.boolean),forcedJSONParsing:Rr.transitional(Rr.boolean),clarifyTimeoutError:Rr.transitional(Rr.boolean)},!1),null!=r&&(Ln.isFunction(r)?t.paramsSerializer={serialize:r}:Or.assertOptions(r,{encode:Rr.function,serialize:Rr.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Ln.merge(o.common,o[t.method]);o&&Ln.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=ur.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=[kr.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 p=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{p=e(p)}catch(f){t.call(this,f);break}}try{c=kr.call(this,p)}catch(f){return Promise.reject(f)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return qn(hr((e=Er(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}Ln.forEach(["delete","get","head","options"],(function(e){Ar.prototype[e]=function(t,n){return this.request(Er(n||{},{method:e,url:t,data:(n||{}).data}))}})),Ln.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Er(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Ar.prototype[e]=t(),Ar.prototype[e+"Form"]=t(!0)}));const Pr=Ar;class Lr{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 fr(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 Lr((function(t){e=t})),cancel:e}}}const Ir=Lr;const Dr={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(Dr).forEach((([e,t])=>{Dr[t]=e}));const Ur=Dr;const Fr=function e(t){const n=new Pr(t),r=en(Pr.prototype.request,n);return Ln.extend(r,Pr.prototype,n,{allOwnKeys:!0}),Ln.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Er(t,n))},r}(rr);Fr.Axios=Pr,Fr.CanceledError=fr,Fr.CancelToken=Ir,Fr.isCancel=pr,Fr.VERSION=Nr,Fr.toFormData=zn,Fr.AxiosError=In,Fr.Cancel=Fr.CanceledError,Fr.all=function(e){return Promise.all(e)},Fr.spread=function(e){return function(t){return e.apply(null,t)}},Fr.isAxiosError=function(e){return Ln.isObject(e)&&!0===e.isAxiosError},Fr.mergeConfig=Er,Fr.AxiosHeaders=ur,Fr.formToJSON=e=>tr(Ln.isHTMLForm(e)?new FormData(e):e),Fr.getAdapter=wr,Fr.HttpStatusCode=Ur,Fr.default=Fr;class jr{constructor(){__privateAdd(this,e,void 0)}initClient(t,n){__privateSet(this,e,Fr.create({baseURL:`${this.url(t)}/backend`,headers:n}))}getClient(){return __privateGet(this,e)}}e=new WeakMap;const Mr={backend:new class extends jr{constructor(){super(...arguments),__publicField(this,"getIdToken",(()=>this.getClient().get("v1.0/auth/token").then((e=>e.data.token))))}url(e){return`${e}/flare-app-identity`}}};let Br;class zr{constructor(){__privateAdd(this,t,void 0),__privateAdd(this,n,(async e=>(Br||(Br=await Mr.backend.getIdToken()),e.headers.Authorization=`Bearer ${Br}`,e.params={...e.params??{},client:"onboarding"},e)))}initClient(e,r,o){__privateSet(this,t,Fr.create({baseURL:`${this.url(e)}/workplace-backend`,headers:{...o,"X-PROFILE-ID":r}})),__privateGet(this,t).interceptors.request.use(__privateGet(this,n))}getClient(){return __privateGet(this,t)}}t=new WeakMap,n=new WeakMap;const Hr=e=>{var t,n;throw"Auth_SessionExpired"===(null==(n=null==(t=e.response)?void 0:t.data)?void 0:n.code)&&Zt(),e};let Vr=(o=class extends zr{constructor(){super(...arguments),__publicField(this,"_canceledSignal"),__privateAdd(this,r,(async e=>e))}get canceledSignal(){if(!this._canceledSignal){const e=new AbortController;e.abort(),this._canceledSignal=e.signal}return this._canceledSignal}url(e){return`${e}/benefits-onboarding`}initClient(e,t,n){super.initClient(e,t,n),this.getClient().interceptors.request.use(__privateGet(this,r))}async track(e,t){await this.getClient().post("/v1.0/analytics/track",{event:e,properties:t}).catch((e=>{}))}},r=new WeakMap,o);const Wr={backend:new class extends jr{constructor(){super(...arguments),__publicField(this,"sourceId")}url(e){return`${e}/benefits-onboarding`}initClient(e,t,n){super.initClient(e,t),this.getClient().interceptors.response.use((e=>e),Hr),this.sourceId=n}async init(){return this.getClient().post("/init",{source:"Onboarding",sourceId:this.sourceId}).then((e=>e.data))}async command(e){await this.getClient().post("/command",{source:"Onboarding",sourceId:this.sourceId,...e})}},workplaceBackend:new Vr};const $r={workplaceBackend:new class extends zr{url(e){return`${e}/benefits-plan`}}},qr=(e,t,n)=>{const r=function(e,t){if("string"!=typeof e)throw new Kt("Invalid token specified: must be a string");t||(t={});const n=!0===t.header?0:1,r=e.split(".")[n];if("string"!=typeof r)throw new Kt(`Invalid token specified: missing part #${n+1}`);let o;try{o=Qt(r)}catch(Oo){throw new Kt(`Invalid token specified: invalid base64 for part #${n+1} (${Oo.message})`)}try{return JSON.parse(o)}catch(Oo){throw new Kt(`Invalid token specified: invalid json for part #${n+1} (${Oo.message})`)}}(t).sub,o={backend:{Authorization:`Bearer ${t}`},workplaceBackend:{}};Wr.backend.initClient(e,o.backend,n),Wr.workplaceBackend.initClient(e,r,o.workplaceBackend),Mr.backend.initClient(e,o.backend),$r.workplaceBackend.initClient(e,r,o.workplaceBackend)},Gr=e=>{switch(!0){case"started"===e:return Wr.backend.command({eventType:"Started"});case"membership-accepted"===e:return Wr.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!0,featureName:"",treatmentName:"",template:"Eoi"}});case"membership-declined"===e:return Wr.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!1,featureName:"",treatmentName:"",template:"Eoi"}});case"sign-up-viewed"===e:return Wr.backend.command({eventType:"OfferViewed",offerName:"Membership",data:{featureName:"",treatmentName:""}});case"sign-up-completed"===e:return(async()=>{await Wr.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!0,featureName:"",treatmentName:"",template:"Eoi"}}),await Wr.backend.command({eventType:"CustomerRegistrationCompleted",isRegistered:!0})})();case"sign-up-declined"===e:return(async()=>{await Wr.backend.command({eventType:"CustomerRegistrationCompleted",isRegistered:!1}),await Wr.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!1,featureName:"",treatmentName:"",template:"Eoi"}})})();case"object"==typeof e&&"offer-viewed"===e.type:return Wr.backend.command({...e,eventType:"OfferViewed"});case"object"==typeof e&&"offer-accepted"===e.type:return Wr.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:{...e.data,accepted:!0}});case"object"==typeof e&&"offer-declined"===e.type:return Wr.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:{...e.data,accepted:!1}});case"object"==typeof e&&"offer-progressed"===e.type:return Wr.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:e.data});case"object"==typeof e&&"assessment-viewed"===e.type:return Wr.workplaceBackend.track("Assessment Viewed",{id:e.data.assessmentId,name:e.data.assessmentTitle});case"object"==typeof e&&"assessment-skipped"===e.type:return Wr.workplaceBackend.track("Assessment Skipped",{id:e.data.assessmentId,name:e.data.assessmentTitle});case"object"==typeof e&&"assessment-field-updated"===e.type:return Wr.workplaceBackend.track("AssessmentField Updated",{id:e.data.assessmentId,name:e.data.assessmentTitle,attribute:e.data.customerAttribute});case"object"==typeof e&&"assessment-submitted"===e.type:return Wr.workplaceBackend.track("Assessment Submitted",{id:e.data.assessmentId,name:e.data.assessmentTitle});case"object"==typeof e&&"assessment-summary-viewed"===e.type:return Wr.workplaceBackend.track("AssessmentSummary Viewed",{id:e.data.assessmentId,name:e.data.assessmentTitle});case"object"==typeof e&&"summary-viewed"===e.type:return Wr.backend.command({eventType:"SummaryViewed",summaryVariant:e.data.summaryVariant});case"completed"===e:return Wr.backend.command({eventType:"Completed"})}return Promise.resolve()},Yr=()=>({trace:Gr});var Kr=Object.defineProperty,Qr=(e,t,n)=>(((e,t,n)=>{t in e?Kr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let Jr=new class{constructor(){Qr(this,"current",this.detect()),Qr(this,"handoffState","pending"),Qr(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}},Xr=(e,t)=>{Jr.isServer?be(e,t):ye(e,t)};function Zr(e){let t=_e(e);return Xr((()=>{t.current=e}),[e]),t}function eo(e,t){let[n,r]=he(e),o=Zr(e);return Xr((()=>r(o.current)),[o,r,...t]),n}let to=function(e){let t=Zr(e);return zt.useCallback(((...e)=>t.current(...e)),[t])};function no(){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=no();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 ro(){let[e]=he(no);return be((()=>()=>e.dispose()),[e]),e}function oo(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in Ht&&Ht.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=he(Jr.isHandoffComplete);return t&&!1===Jr.isHandoffComplete&&n(!1),be((()=>{!0!==t&&n(!0)}),[t]),be((()=>Jr.handoff()),[]),!e&&t}var io;let ao=null!=(io=zt.useId)?io:function(){let e=oo(),[t,n]=zt.useState(e?()=>Jr.nextId():null);return Xr((()=>{null===t&&n(Jr.nextId())}),[t]),null!=t?""+t:void 0};function so(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,so),r}function lo(e){return Jr.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let co=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var uo,po,fo,mo=((fo=mo||{})[fo.First=1]="First",fo[fo.Previous=2]="Previous",fo[fo.Next=4]="Next",fo[fo.Last=8]="Last",fo[fo.WrapAround=16]="WrapAround",fo[fo.NoScroll=32]="NoScroll",fo),ho=((po=ho||{})[po.Error=0]="Error",po[po.Overflow=1]="Overflow",po[po.Success=2]="Success",po[po.Underflow=3]="Underflow",po),go=((uo=go||{})[uo.Previous=-1]="Previous",uo[uo.Next=1]="Next",uo),bo=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(bo||{});function yo(e,t=0){var n;return e!==(null==(n=lo(e))?void 0:n.body)&&so(t,{0:()=>e.matches(co),1(){let t=e;for(;null!==t;){if(t.matches(co))return!0;t=t.parentElement}return!1}})}var _o=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(_o||{});function vo(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0||/Android/gi.test(window.navigator.userAgent)}function wo(e,t,n){let r=Zr(t);be((()=>{function t(e){r.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)}),[e,n])}function xo(e,t,n=!0){let r=_e(!1);function o(n,o){if(!r.current||n.defaultPrevented)return;let i=o(n);if(null===i||!i.getRootNode().contains(i)||!i.isConnected)return;let a=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e);for(let e of a){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(i)||n.composed&&n.composedPath().includes(t))return}return!yo(i,bo.Loose)&&-1!==i.tabIndex&&n.preventDefault(),t(n,i)}be((()=>{requestAnimationFrame((()=>{r.current=n}))}),[n]);let i=_e(null);wo("pointerdown",(e=>{var t,n;r.current&&(i.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),wo("mousedown",(e=>{var t,n;r.current&&(i.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),wo("click",(e=>{vo()||i.current&&(o(e,(()=>i.current)),i.current=null)}),!0),wo("touchend",(e=>o(e,(()=>e.target instanceof HTMLElement?e.target:null))),!0),function(e,t,n){let r=Zr(t);be((()=>{function t(e){r.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)}),[e,n])}("blur",(e=>o(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}function ko(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";return"string"==typeof n&&"button"===n.toLowerCase()?"button":void 0}function So(e,t){let[n,r]=he((()=>ko(e)));return Xr((()=>{r(ko(e))}),[e.type,e.as]),Xr((()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")}),[n,t]),n}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")}),!0),document.addEventListener("click",(e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")}),!0));let Eo=Symbol();function No(...e){let t=_e(e);be((()=>{t.current=e}),[e]);let n=to((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[Eo])))?void 0:n}function Co(e){return[e.screenX,e.screenY]}function To(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}var Oo,Ro=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Ro||{}),Ao=((Oo=Ao||{})[Oo.Unmount=0]="Unmount",Oo[Oo.Hidden=1]="Hidden",Oo);function Po({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a,mergeRefs:s}){s=null!=s?s:Io;let l=Do(t,e);if(i)return Lo(l,n,r,a,s);let c=null!=o?o:0;if(2&c){let{static:e=!1,...t}=l;if(e)return Lo(t,n,r,a,s)}if(1&c){let{unmount:e=!0,...t}=l;return so(e?0:1,{0:()=>null,1:()=>Lo({...t,hidden:!0,style:{display:"none"}},n,r,a,s)})}return Lo(l,n,r,a,s)}function Lo(e,t={},n,r,o){let{as:i=n,children:a,refName:s="ref",...l}=jo(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===x&&Object.keys(Fo(l)).length>0){if(!Nt(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)=>To(null==e?void 0:e.className(...t),l.className):To(null==e?void 0:e.className,l.className),n=t?{className:t}:{};return Tt(u,Object.assign({},Do(u.props,Fo(jo(l,["ref"]))),d,c,{ref:o(u.ref,c.ref)},n))}return _(i,Object.assign({},jo(l,["ref"]),i!==x&&c,i!==x&&d),u)}function Io(...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 Do(...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 Uo(e){var t;return Object.assign(qe(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Fo(e){let t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}function jo(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}var Mo=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Mo||{});let Bo=Uo((function(e,t){var n;let{features:r=1,...o}=e;return Po({ourProps:{ref:t,"aria-hidden":2==(2&r)||(null!=(n=o["aria-hidden"])?n:void 0),style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4==(4&r)&&2!=(2&r)&&{display:"none"}}},theirProps:o,slot:{},defaultTag:"div",name:"Hidden"})})),zo=$(null);zo.displayName="OpenClosedContext";var Ho=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Ho||{});function Vo(){return ke(zo)}function Wo({value:e,children:t}){return zt.createElement(zo.Provider,{value:e},t)}function $o(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}var qo,Go=((qo=Go||{})[qo.First=0]="First",qo[qo.Previous=1]="Previous",qo[qo.Next=2]="Next",qo[qo.Last=3]="Last",qo[qo.Specific=4]="Specific",qo[qo.Nothing=5]="Nothing",qo);function Yo(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1;switch(e.focus){case 0:for(let e=0;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 1:for(let e=o-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=o+1;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 3:for(let e=n.length-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;r<n.length;++r)if(t.resolveId(n[r],r,n)===e.id)return r;return r;case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}}function Ko(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))Jo(n,Qo(t,r),o);return n}function Qo(e,t){return e?e+"["+t+"]":t}function Jo(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())Jo(e,Qo(t,r.toString()),o);else n instanceof Date?e.push([t,n.toISOString()]):"boolean"==typeof n?e.push([t,n?"1":"0"]):"string"==typeof n?e.push([t,n]):"number"==typeof n?e.push([t,`${n}`]):null==n?e.push([t,""]):Ko(n,t,e)}var Xo,Zo=((Xo=Zo||{}).Space=" ",Xo.Enter="Enter",Xo.Escape="Escape",Xo.Backspace="Backspace",Xo.Delete="Delete",Xo.ArrowLeft="ArrowLeft",Xo.ArrowUp="ArrowUp",Xo.ArrowRight="ArrowRight",Xo.ArrowDown="ArrowDown",Xo.Home="Home",Xo.End="End",Xo.PageUp="PageUp",Xo.PageDown="PageDown",Xo.Tab="Tab",Xo);function ei(){let e=_e(!1);return Xr((()=>(e.current=!0,()=>{e.current=!1})),[]),e}let ti=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function ni(e){var t,n;let r=null!=(t=e.innerText)?t:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return r;let i=!1;for(let s of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),i=!0;let a=i?null!=(n=o.innerText)?n:"":r;return ti.test(a)&&(a=a.replace(ti,"")),a}function ri(e){let t=_e(""),n=_e("");return to((()=>{let r=e.current;if(!r)return"";let o=r.innerText;if(t.current===o)return n.current;let i=function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map((e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():ni(t).trim()}return null})).filter(Boolean);if(e.length>0)return e.join(", ")}return ni(e).trim()}(r).trim().toLowerCase();return t.current=o,n.current=i,i}))}var oi=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(oi||{}),ii=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(ii||{}),ai=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(ai||{}),si=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))(si||{});function li(e,t=(e=>e)){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=function(e,t=(e=>e)){return e.slice().sort(((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),o=n?r.indexOf(n):null;return-1===o&&(o=null),{options:r,activeOptionIndex:o}}let ci={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,listboxState:1},0(e){if(e.dataRef.current.disabled||0===e.listboxState)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex((e=>n(e.dataRef.current.value)));return-1!==r&&(t=r),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||1===e.listboxState)return e;let r=li(e),o=Yo(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeOptionIndex:o,activationTrigger:null!=(n=t.trigger)?n:1}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),o=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find((e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))})),i=o?e.options.indexOf(o):-1;return-1===i||i===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:i,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=li(e,(e=>[...e,n]));return null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},6:(e,t)=>{let n=li(e,(e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n&&e.splice(n,1),e}));return{...e,...n,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},ui=$(null);function di(e){let t=ke(ui);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,di),t}return t}ui.displayName="ListboxActionsContext";let pi=$(null);function fi(e){let t=ke(pi);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,fi),t}return t}function mi(e,t){return so(t.type,ci,e,t)}pi.displayName="ListboxDataContext";let hi=x;let gi=Ro.RenderStrategy|Ro.Static;let bi=Uo((function(e,t){let{value:n,defaultValue:r,form:o,name:i,onChange:a,by:s=((e,t)=>e===t),disabled:l=!1,horizontal:c=!1,multiple:u=!1,...d}=e;const p=c?"horizontal":"vertical";let f=No(t),[m=(u?[]:void 0),h]=function(e,t,n){let[r,o]=he(n),i=void 0!==e,a=_e(i),s=_e(!1),l=_e(!1);return!i||a.current||s.current?!i&&a.current&&!l.current&&(l.current=!0,a.current=i,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(s.current=!0,a.current=i,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[i?e:r,to((e=>(i||o(e),null==t?void 0:t(e))))]}(n,a,r),[g,b]=ge(mi,{dataRef:{current:null},listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),y=_e({static:!1,hold:!1}),_=_e(null),v=_e(null),w=_e(null),x=to("string"==typeof s?(e,t)=>{let n=s;return(null==e?void 0:e[n])===(null==t?void 0:t[n])}:s),k=xe((e=>so(S.mode,{1:()=>m.some((t=>x(t,e))),0:()=>x(m,e)})),[m]),S=we((()=>({...g,value:m,disabled:l,mode:u?1:0,orientation:p,compare:x,isSelected:k,optionsPropsRef:y,labelRef:_,buttonRef:v,optionsRef:w})),[m,l,u,g]);Xr((()=>{g.dataRef.current=S}),[S]),xo([S.buttonRef,S.optionsRef],((e,t)=>{var n;b({type:1}),yo(t,bo.Loose)||(e.preventDefault(),null==(n=S.buttonRef.current)||n.focus())}),0===S.listboxState);let E=we((()=>({open:0===S.listboxState,disabled:l,value:m})),[S,l,m]),N=to((e=>{let t=S.options.find((t=>t.id===e));t&&L(t.dataRef.current.value)})),C=to((()=>{if(null!==S.activeOptionIndex){let{dataRef:e,id:t}=S.options[S.activeOptionIndex];L(e.current.value),b({type:2,focus:Go.Specific,id:t})}})),T=to((()=>b({type:0}))),O=to((()=>b({type:1}))),R=to(((e,t,n)=>e===Go.Specific?b({type:2,focus:Go.Specific,id:t,trigger:n}):b({type:2,focus:e,trigger:n}))),A=to(((e,t)=>(b({type:5,id:e,dataRef:t}),()=>b({type:6,id:e})))),P=to((e=>(b({type:7,id:e}),()=>b({type:7,id:null})))),L=to((e=>so(S.mode,{0:()=>null==h?void 0:h(e),1(){let t=S.value.slice(),n=t.findIndex((t=>x(t,e)));return-1===n?t.push(e):t.splice(n,1),null==h?void 0:h(t)}}))),I=to((e=>b({type:3,value:e}))),D=to((()=>b({type:4}))),U=we((()=>({onChange:L,registerOption:A,registerLabel:P,goToOption:R,closeListbox:O,openListbox:T,selectActiveOption:C,selectOption:N,search:I,clearSearch:D})),[]),F={ref:f},j=_e(null),M=ro();return be((()=>{j.current&&void 0!==r&&M.addEventListener(j.current,"reset",(()=>{null==h||h(r)}))}),[j,h]),zt.createElement(ui.Provider,{value:U},zt.createElement(pi.Provider,{value:S},zt.createElement(Wo,{value:so(S.listboxState,{0:Ho.Open,1:Ho.Closed})},null!=i&&null!=m&&Ko({[i]:m}).map((([e,t],n)=>zt.createElement(Bo,{features:Mo.Hidden,ref:0===n?e=>{var t;j.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...Fo({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:o,name:e,value:t})}))),Po({ourProps:F,theirProps:d,slot:E,defaultTag:hi,name:"Listbox"}))))})),yi=Uo((function(e,t){var n;let r=ao(),{id:o=`headlessui-listbox-button-${r}`,...i}=e,a=fi("Listbox.Button"),s=di("Listbox.Button"),l=No(a.buttonRef,t),c=ro(),u=to((e=>{switch(e.key){case Zo.Space:case Zo.Enter:case Zo.ArrowDown:e.preventDefault(),s.openListbox(),c.nextFrame((()=>{a.value||s.goToOption(Go.First)}));break;case Zo.ArrowUp:e.preventDefault(),s.openListbox(),c.nextFrame((()=>{a.value||s.goToOption(Go.Last)}))}})),d=to((e=>{if(e.key===Zo.Space)e.preventDefault()})),p=to((e=>{if($o(e.currentTarget))return e.preventDefault();0===a.listboxState?(s.closeListbox(),c.nextFrame((()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})}))):(e.preventDefault(),s.openListbox())})),f=eo((()=>{if(a.labelId)return[a.labelId,o].join(" ")}),[a.labelId,o]),m=we((()=>({open:0===a.listboxState,disabled:a.disabled,value:a.value})),[a]);return Po({ourProps:{ref:l,id:o,type:So(e,a.buttonRef),"aria-haspopup":"listbox","aria-controls":null==(n=a.optionsRef.current)?void 0:n.id,"aria-expanded":0===a.listboxState,"aria-labelledby":f,disabled:a.disabled,onKeyDown:u,onKeyUp:d,onClick:p},theirProps:i,slot:m,defaultTag:"button",name:"Listbox.Button"})})),_i=Uo((function(e,t){let n=ao(),{id:r=`headlessui-listbox-label-${n}`,...o}=e,i=fi("Listbox.Label"),a=di("Listbox.Label"),s=No(i.labelRef,t);Xr((()=>a.registerLabel(r)),[r]);let l=to((()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})})),c=we((()=>({open:0===i.listboxState,disabled:i.disabled})),[i]);return Po({ourProps:{ref:s,id:r,onClick:l},theirProps:o,slot:c,defaultTag:"label",name:"Listbox.Label"})})),vi=Uo((function(e,t){var n;let r=ao(),{id:o=`headlessui-listbox-options-${r}`,...i}=e,a=fi("Listbox.Options"),s=di("Listbox.Options"),l=No(a.optionsRef,t),c=ro(),u=ro(),d=Vo(),p=null!==d?(d&Ho.Open)===Ho.Open:0===a.listboxState;be((()=>{var e;let t=a.optionsRef.current;t&&0===a.listboxState&&t!==(null==(e=lo(t))?void 0:e.activeElement)&&t.focus({preventScroll:!0})}),[a.listboxState,a.optionsRef]);let f=to((e=>{switch(u.dispose(),e.key){case Zo.Space:if(""!==a.searchQuery)return e.preventDefault(),e.stopPropagation(),s.search(e.key);case Zo.Enter:if(e.preventDefault(),e.stopPropagation(),null!==a.activeOptionIndex){let{dataRef:e}=a.options[a.activeOptionIndex];s.onChange(e.current.value)}0===a.mode&&(s.closeListbox(),no().nextFrame((()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})})));break;case so(a.orientation,{vertical:Zo.ArrowDown,horizontal:Zo.ArrowRight}):return e.preventDefault(),e.stopPropagation(),s.goToOption(Go.Next);case so(a.orientation,{vertical:Zo.ArrowUp,horizontal:Zo.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),s.goToOption(Go.Previous);case Zo.Home:case Zo.PageUp:return e.preventDefault(),e.stopPropagation(),s.goToOption(Go.First);case Zo.End:case Zo.PageDown:return e.preventDefault(),e.stopPropagation(),s.goToOption(Go.Last);case Zo.Escape:return e.preventDefault(),e.stopPropagation(),s.closeListbox(),c.nextFrame((()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));case Zo.Tab:e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(s.search(e.key),u.setTimeout((()=>s.clearSearch()),350))}})),m=eo((()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.id}),[a.buttonRef.current]),h=we((()=>({open:0===a.listboxState})),[a]);return Po({ourProps:{"aria-activedescendant":null===a.activeOptionIndex||null==(n=a.options[a.activeOptionIndex])?void 0:n.id,"aria-multiselectable":1===a.mode||void 0,"aria-labelledby":m,"aria-orientation":a.orientation,id:o,onKeyDown:f,role:"listbox",tabIndex:0,ref:l},theirProps:i,slot:h,defaultTag:"ul",features:gi,visible:p,name:"Listbox.Options"})})),wi=Uo((function(e,t){let n=ao(),{id:r=`headlessui-listbox-option-${n}`,disabled:o=!1,value:i,...a}=e,s=fi("Listbox.Option"),l=di("Listbox.Option"),c=null!==s.activeOptionIndex&&s.options[s.activeOptionIndex].id===r,u=s.isSelected(i),d=_e(null),p=ri(d),f=Zr({disabled:o,value:i,domRef:d,get textValue(){return p()}}),m=No(t,d);Xr((()=>{if(0!==s.listboxState||!c||0===s.activationTrigger)return;let e=no();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=d.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[d,c,s.listboxState,s.activationTrigger,s.activeOptionIndex]),Xr((()=>l.registerOption(r,f)),[f,r]);let h=to((e=>{if(o)return e.preventDefault();l.onChange(i),0===s.mode&&(l.closeListbox(),no().nextFrame((()=>{var e;return null==(e=s.buttonRef.current)?void 0:e.focus({preventScroll:!0})})))})),g=to((()=>{if(o)return l.goToOption(Go.Nothing);l.goToOption(Go.Specific,r)})),b=function(){let e=_e([-1,-1]);return{wasMoved(t){let n=Co(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=Co(t)}}}(),y=to((e=>b.update(e))),_=to((e=>{b.wasMoved(e)&&(o||c||l.goToOption(Go.Specific,r,0))})),v=to((e=>{b.wasMoved(e)&&(o||c&&l.goToOption(Go.Nothing))})),w=we((()=>({active:c,selected:u,disabled:o})),[c,u,o]);return Po({ourProps:{id:r,ref:m,role:"option",tabIndex:!0===o?void 0:-1,"aria-disabled":!0===o||void 0,"aria-selected":u,disabled:void 0,onClick:h,onFocus:g,onPointerEnter:y,onMouseEnter:y,onPointerMove:_,onMouseMove:_,onPointerLeave:v,onMouseLeave:v},theirProps:a,slot:w,defaultTag:"li",name:"Listbox.Option"})})),xi=Object.assign(bi,{Button:yi,Label:_i,Options:vi,Option:wi});function ki(e,...t){e&&t.length>0&&e.classList.add(...t)}function Si(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Ei(e,t,n,r){let o=n?"enter":"leave",i=no(),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=so(o,{enter:()=>t.enter,leave:()=>t.leave}),l=so(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=so(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Si(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),ki(e,...t.base,...s,...c),i.nextFrame((()=>{Si(e,...t.base,...s,...c),ki(e,...t.base,...s,...l),function(e,t){let n=no();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,(()=>(Si(e,...t.base,...s),ki(e,...t.base,...t.entered),a())))})),i.dispose}function Ni(e=""){return e.split(/\s+/).filter((e=>e.length>1))}let Ci=$(null);Ci.displayName="TransitionContext";var Ti=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Ti||{});let Oi=$(null);function Ri(e){return"children"in e?Ri(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function Ai(e,t){let n=Zr(e),r=_e([]),o=ei(),i=ro(),a=to(((e,t=Ao.Hidden)=>{let a=r.current.findIndex((({el:t})=>t===e));-1!==a&&(so(t,{[Ao.Unmount](){r.current.splice(a,1)},[Ao.Hidden](){r.current[a].state="hidden"}}),i.microTask((()=>{var e;!Ri(r)&&o.current&&(null==(e=n.current)||e.call(n))})))})),s=to((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,Ao.Unmount)})),l=_e([]),c=_e(Promise.resolve()),u=_e({enter:[],leave:[],idle:[]}),d=to(((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)})),p=to(((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 we((()=>({children:r,register:s,unregister:a,onStart:d,onStop:p,wait:c,chains:u})),[s,a,r,d,p,u,c])}function Pi(){}Oi.displayName="NestingContext";let Li=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Ii(e){var t;let n={};for(let r of Li)n[r]=null!=(t=e[r])?t:Pi;return n}let Di=Ro.RenderStrategy;let Ui=Uo((function(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,a=_e(null),s=No(a,t);oo();let l=Vo();if(void 0===n&&null!==l&&(n=(l&Ho.Open)===Ho.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,u]=he(n?"visible":"hidden"),d=Ai((()=>{u("hidden")})),[p,f]=he(!0),m=_e([n]);Xr((()=>{!1!==p&&m.current[m.current.length-1]!==n&&(m.current.push(n),f(!1))}),[m,n]);let h=we((()=>({show:n,appear:r,initial:p})),[n,r,p]);be((()=>{if(n)u("visible");else if(Ri(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},b=to((()=>{var t;p&&f(!1),null==(t=e.beforeEnter)||t.call(e)})),y=to((()=>{var t;p&&f(!1),null==(t=e.beforeLeave)||t.call(e)}));return zt.createElement(Oi.Provider,{value:d},zt.createElement(Ci.Provider,{value:h},Po({ourProps:{...g,as:x,children:zt.createElement(Fi,{ref:s,...g,...i,beforeEnter:b,beforeLeave:y})},theirProps:{},defaultTag:x,features:Di,visible:"visible"===c,name:"Transition"})))})),Fi=Uo((function(e,t){var n,r;let{beforeEnter:o,afterEnter:i,beforeLeave:a,afterLeave:s,enter:l,enterFrom:c,enterTo:u,entered:d,leave:p,leaveFrom:f,leaveTo:m,...h}=e,g=_e(null),b=No(g,t),y=null==(n=h.unmount)||n?Ao.Unmount:Ao.Hidden,{show:_,appear:v,initial:w}=function(){let e=ke(Ci);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]=he(_?"visible":"hidden"),S=function(){let e=ke(Oi);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:E,unregister:N}=S;be((()=>E(g)),[E,g]),be((()=>{if(y===Ao.Hidden&&g.current)return _&&"visible"!==x?void k("visible"):so(x,{hidden:()=>N(g),visible:()=>E(g)})}),[x,g,E,N,_,y]);let C=Zr({base:Ni(h.className),enter:Ni(l),enterFrom:Ni(c),enterTo:Ni(u),entered:Ni(d),leave:Ni(p),leaveFrom:Ni(f),leaveTo:Ni(m)}),T=function(e){let t=_e(Ii(e));return be((()=>{t.current=Ii(e)}),[e]),t}({beforeEnter:o,afterEnter:i,beforeLeave:a,afterLeave:s}),O=oo();be((()=>{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=w&&!v,A=v&&_&&w,P=(()=>!O||R?"idle":_?"enter":"leave")(),L=function(e=0){let[t,n]=he(e),r=ei(),o=xe((e=>{r.current&&n((t=>t|e))}),[t,r]),i=xe((e=>Boolean(t&e)),[t]),a=xe((e=>{r.current&&n((t=>t&~e))}),[n,r]),s=xe((e=>{r.current&&n((t=>t^e))}),[n]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:a,toggleFlag:s}}(0),I=to((e=>so(e,{enter:()=>{L.addFlag(Ho.Opening),T.current.beforeEnter()},leave:()=>{L.addFlag(Ho.Closing),T.current.beforeLeave()},idle:()=>{}}))),D=to((e=>so(e,{enter:()=>{L.removeFlag(Ho.Opening),T.current.afterEnter()},leave:()=>{L.removeFlag(Ho.Closing),T.current.afterLeave()},idle:()=>{}}))),U=Ai((()=>{k("hidden"),N(g)}),S),F=_e(!1);!function({immediate:e,container:t,direction:n,classes:r,onStart:o,onStop:i}){let a=ei(),s=ro(),l=Zr(n);Xr((()=>{e&&(l.current="enter")}),[e]),Xr((()=>{let e=no();s.add(e.dispose);let n=t.current;if(n&&"idle"!==l.current&&a.current)return e.dispose(),o.current(l.current),e.add(Ei(n,r.current,"enter"===l.current,(()=>{e.dispose(),i.current(l.current)}))),e.dispose}),[n])}({immediate:A,container:g,classes:C,direction:P,onStart:Zr((e=>{F.current=!0,U.onStart(g,e,I)})),onStop:Zr((e=>{F.current=!1,U.onStop(g,e,D),"leave"===e&&!Ri(U)&&(k("hidden"),N(g))}))});let j=h,M={ref:b};return A?j={...j,className:To(h.className,...C.current.enter,...C.current.enterFrom)}:F.current&&(j.className=To(h.className,null==(r=g.current)?void 0:r.className),""===j.className&&delete j.className),zt.createElement(Oi.Provider,{value:U},zt.createElement(Wo,{value:so(x,{visible:Ho.Open,hidden:Ho.Closed})|L.flags},Po({ourProps:M,theirProps:j,defaultTag:"div",features:Di,visible:"visible"===x,name:"Transition.Child"})))})),ji=Uo((function(e,t){let n=null!==ke(Ci),r=null!==Vo();return zt.createElement(zt.Fragment,null,!n&&r?zt.createElement(Ui,{ref:t,...e}):zt.createElement(Fi,{ref:t,...e}))})),Mi=Object.assign(Ui,{Child:ji,Root:Ui});const Bi=({children:e})=>{const t=zt.Children.toArray(e),n=t.find((e=>e.type===zi)),r=t.find((e=>e.type===Hi));return Ie(Mi,{appear:!0,show:!0,enter:"transition duration-700 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:Ie("div",{class:"mt-20 md:mt-0 flex flex-col text-center items-center max-w-[40rem] mx-auto",children:[Ie(Mi,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:n&&Ie("div",{class:"flex items-center h-full",children:n})}),Ie(Mi,{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&&Ie("div",{class:"flex items-center h-full",children:r})})]})})},zi=({children:e})=>Ie(x,{children:e}),Hi=({children:e})=>Ie(x,{children:e});Bi.Top=zi,Bi.Bottom=Hi;const Vi=({phoneNumber:e,onSubmit:t,onDecline:n})=>{const{trace:r}=Yr(),[o,i]=he(""),{setPhoneNumber:a,phoneNumber:s}=(e=>{const{identity:t}=ke(Fe),[n,r]=he(e??""),o=we((()=>n.replace(/ /g,"")),[n]),i=we((()=>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=we((()=>o.startsWith("04")?`+61${o.replace(/^0+/,"")}`:o.startsWith("614")?`+${o}`:o),[o]),s=we((()=>(e=>{let t=0;return"#### ### ### ### ### ### ###".replace(/#/g,(()=>e[t++]??"")).trim()})(o)),[o]),l=we((()=>a===t.verifiedPhoneNumber),[a,t.verifiedPhoneNumber]);return{setPhoneNumber:r,phoneNumber:{valid:i,original:n,formatted:a,masked:s,isVerified:l}}})(e),[l,c]=he(s.isVerified);be((()=>{(async()=>{await r("sign-up-viewed")})()}),[]);const u=xe((()=>{i("")}),[]),d=xe((()=>{const e=s.valid?"":"Please enter a valid Australian mobile number beginning with 04.";i(e),c(s.isVerified)}),[s.isVerified,s.valid]),p=xe((async()=>{s.valid&&await t(s).then((async()=>await r("sign-up-completed"))).catch(i)}),[s,t,r]),f=xe((()=>r("sign-up-declined").then(n)),[n,r]),m=xe((async()=>{c(!1)}),[]),h=Ie("div",{class:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3 text-xs text-green-700 font-bold",children:["Verified ",Ie(Vt,{})]});return Ie(Bi,{children:[Ie(Bi.Top,{children:Ie("div",{className:"flex flex-col gap-5",children:[Ie(Gt,{children:"Join your workplace benefits program"}),Ie(Yt,{children:[s.isVerified?"Confirm ":"Enter "," your ",Ie("b",{children:"personal"})," mobile number to finish setting up your Flare Benefits account linked to your workplace"]})]})}),Ie(Bi.Bottom,{children:Ie("div",{className:"mt-5 md:w-[300px] text-left",children:[Ie(Me,{className:"font-medium text-sm text-gray-900 text-left",children:"Australian Mobile Number"}),Ie(qt,{allowedKeyPattern:/[+0-9]/,inputMode:"numeric",className:"mt-1 mb-1 w-full p-2 focus-visible:ring-gray-500",value:s.original,onChange:a,onfocusin:u,onfocusout:d,trailingIconElement:l&&h,disabled:l}),0!==o.length&&Ie("div",{className:"h-8 leading-none",children:Ie("span",{className:"text-xs text-rose-500",children:o})}),l&&Ie("div",{className:"mt-2 ml-2 mb-2 leading-none",children:Ie("span",{className:"text-xs",children:["Not your personal number?",Ie($t,{class:"text-blue-500",onClick:m,children:"Change number"})]})}),Ie("div",{children:Ie("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"," ",Ie("a",{href:"https://www.flarehr.com/flare-app-terms-and-conditions/",target:"_blank",rel:"noreferrer",children:" Terms of Use "}),"and",Ie("a",{href:"https://www.flarehr.com/privacy-policy/",target:"_blank",rel:"noreferrer",children:" Privacy Policy"}),"."," "]})}),Ie(Wt,{class:"mt-5 md:w-full",onClickPromise:p,children:"Join your workplace"}),Ie(Wt,{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:f,children:"Not now"})]})})]})},Wi=e=>_("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...e},_("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"})),$i=({onContinue:e})=>Ie(Bi,{children:[Ie(Bi.Top,{children:Ie("div",{className:"h-16 w-16 flex items-center justify-center rounded-full bg-blue-50 text-primary-base",children:Ie(Wi,{className:"h-7 w-7"})})}),Ie(Bi.Bottom,{children:Ie("div",{className:"mt-5 flex flex-col items-center gap-5 text-center",children:[Ie(Gt,{children:"You’ve joined your workplace benefits program"}),Ie(Yt,{children:"With your new Flare Benefits account, you now have access to a range of exclusive benefits available through your workplace."}),Ie(Wt,{class:"mt-5 w-full md:w-[240px]",onClickPromise:async()=>{e()},children:"Set up your benefits"})]})})]}),qi=e=>_("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,viewBox:"0 -960 960 960",width:24,fill:"currentColor",...e},_("path",{d:"m313-440 224 224-57 56-320-320 320-320 57 56-224 224h487v80H313Z"})),Gi=({children:e,...t})=>Ie("dialog",{className:"z-50 w-full h-full absolute top-0 left-0 bottom-0 right-0",...t,children:e}),Yi=({open:e})=>Ie(Gi,{open:e,children:Ie("div",{className:"flex flex-col gap-5 items-center justify-center text-center mt-20",children:[Ie("span",{class:"animate-spin",children:Ie(De,{size:"lg"})}),Ie(Gt,{children:"Creating your account"}),Ie("div",{children:[Ie(Yt,{children:"This can take up to 30 seconds."}),Ie(Yt,{children:"Please don't navigate away or refresh your browser."})]})]})}),Ki=({phoneNumber:e,onVerify:t,onResendOtp:n,onGoBack:r})=>{const{otp:o,setOtp:i}=(()=>{const[e,t]=he("");return{otp:{valid:we((()=>6===e.length),[e.length]),code:e},setOtp:t}})(),[a,s]=he(!1),[l,c]=he(""),{countdown:u,restart:d}=(e=>{const[t,n]=he(e),r=_e(),o=xe((()=>{clearInterval(r.current)}),[]);be((()=>o),[o]);const i=xe((()=>{let t=e;clearInterval(r.current),r.current=setInterval((()=>{t<0?clearInterval(r.current):n(t--)}),1e3)}),[e]);return{countdown:t,restart:i}})(60);be(d,[d]);const p=xe((()=>(s(!0),c(""),t(o.code).catch(c).finally((()=>{s(!1)})))),[t,o.code]),f=xe((()=>(c(""),n().then(d).catch(c))),[n,d]);return Ie(x,{children:[Ie(Yi,{open:a}),Ie(Bi,{children:[Ie(Bi.Top,{children:Ie("div",{className:"flex flex-col gap-5",children:[Ie(Gt,{children:"Verify your mobile number"}),Ie(Yt,{children:["An SMS verification code has been sent to the number ",e,"."]})]})}),Ie(Bi.Bottom,{children:Ie("div",{className:"mt-5 md:w-[300px] text-left",children:[Ie(Me,{className:"font-medium text-sm text-gray-900 text-left",children:"Enter your verification code"}),Ie(qt,{allowedKeyPattern:/[0-9]/,inputMode:"numeric",minLength:6,maxLength:6,className:"mt-1 mb-1 w-full p-2 focus-visible:ring-gray-500",trailingIconElement:!1,onChange:i}),l&&Ie("span",{className:"text-xs text-rose-500",children:l}),Ie("p",{class:"mt-2 text-center text-xs text-gray-600 disabled:opacity-75 ",children:["Didn't get the code?",Ie($t,{disabled:0!==u,className:"underline mx-2 disabled:text-gray-600 disabled:hover:bg-transparent disabled:cursor-text disabled:px-0",onClick:f,children:"Resend SMS"}),0!==u&&Ie(x,{children:["in ",u," secs"]})]}),Ie(Wt,{class:"mt-5 md:w-full",disabled:!o.valid,onClickPromise:p,children:"Continue"}),Ie(Wt,{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:Ie("span",{className:"flex gap-3",children:[Ie(qi,{}),"Back"]})})]})})]})]})},Qi=({phoneNumber:e,onSignUp:t,onVerify:n,onResendOtp:r,onSuccess:o,onDecline:i})=>{const[a,s]=he(e??""),{step:l,goBack:c,goToStep:u}=(()=>{const[e,t]=he(0),n=xe((()=>{const n=e-1;n>=0&&t(n)}),[e]),r=xe((e=>{e<=2&&t(e)}),[e]);return{step:e,goBack:n,goToStep:r}})(),d=xe((e=>t(e.formatted).then((t=>{s(e.masked),u(t.isVerificationRequired?je.OTP:je.SUCCESS)}))),[u,t]),p=xe((e=>n(e).then((()=>{u(je.SUCCESS)}))),[u,n]);return Ie(x,{children:[l===je.PHONE_NUMBER&&Ie(Vi,{phoneNumber:a,onSubmit:d,onDecline:i}),l===je.OTP&&Ie(Ki,{phoneNumber:a,onVerify:p,onResendOtp:r,onGoBack:c}),l===je.SUCCESS&&Ie($i,{onContinue:o})]})},Ji="Onboarding",Xi="onboarding";var Zi=(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))(Zi||{});const ea=e=>{var t;const n=null==(t=null==e?void 0:e.response)?void 0:t.data;throw Zi[null==n?void 0:n.code]??"Sorry, we are currently experiencing some issues. Please try again later."},ta=({onSuccess:e,onDecline:t})=>{const{identity:{phoneNumber:n}}=ke(Fe),{signUp:r,verifyOtp:o,resendOtp:i}={signUp:async e=>Wr.backend.getClient().post("v2.0/auth/signUp",{mobileNumber:e,source:Ji,channel:Xi}).then((e=>({isVerificationRequired:e.data.isVerificationRequired??!0}))),verifyOtp:async e=>{await Wr.backend.getClient().post("auth/verify",{otp:e,source:Ji,channel:Xi}).catch(ea)},resendOtp:async()=>{await Wr.backend.getClient().post("auth/resend").catch(ea)}};return Ie(x,{children:Ie(Qi,{phoneNumber:n,onSignUp:r,onVerify:o,onResendOtp:i,onSuccess:e,onDecline:t})})},na=""+("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),ra=e=>{const{featureFlags:t}=ke(Fe),[n,r]=he(!0),{trace:o}=Yr();return be((()=>{t.unifiedCustomerRegistration||(async()=>{await o("sign-up-viewed")})()}),[]),Ie(Bi,{children:[Ie(Bi.Top,{children:Ie("img",{class:"max-w-[30rem] w-full",src:na})}),Ie(Bi.Bottom,{children:Ie("div",{children:[Ie("h3",{class:"mt-8 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:"Finish setting up your workplace benefits"}),Ie("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&&Ie("div",{class:"flex items-center text-left mt-6",children:[Ie("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)}}),Ie("label",{class:"font-medium text-sm text-gray-900 ml-3",for:"membership",children:Ie("span",{children:["I would like to be contacted about the latest benefits from Flare and agree to the"," ",Ie("a",{href:"https://www.flarehr.com/privacy-policy/",target:"_blank",rel:"noreferrer",children:"privacy policy"}),"."]})})]}),Ie(Wt,{class:"mt-8",onClickPromise:async()=>{await o("started"),t.unifiedCustomerRegistration||await o(n?"membership-accepted":"membership-declined"),e.onStepComplete()},children:"Continue"})]})})]})},oa=({children:e})=>{const t=zt.Children.toArray(e),n=t.find((e=>e.type===ia)),r=t.find((e=>e.type===aa));return Ie(Mi,{appear:!0,show:!0,enter:"transition duration-700 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:Ie("div",{class:"md:grid md:grid-cols-2 max-w-[59.5rem] mx-auto",children:[Ie(Mi,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:n&&Ie("div",{class:"flex items-center h-full",children:n})}),Ie(Mi,{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&&Ie("div",{class:"flex items-center h-full",children:r})})]})})},ia=({children:e})=>Ie(x,{children:e}),aa=({children:e})=>Ie(x,{children:e});oa.Left=ia,oa.Right=aa;
|
2
2
|
/*! @license DOMPurify 3.0.9 | (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.9/LICENSE */
|
3
|
-
const{entries:aa,setPrototypeOf:sa,isFrozen:la,getPrototypeOf:ca,getOwnPropertyDescriptor:ua}=Object;let{freeze:da,seal:pa,create:fa}=Object,{apply:ma,construct:ha}="undefined"!=typeof Reflect&&Reflect;da||(da=function(e){return e}),pa||(pa=function(e){return e}),ma||(ma=function(e,t,n){return e.apply(t,n)}),ha||(ha=function(e,t){return new e(...t)});const ga=Oa(Array.prototype.forEach),ba=Oa(Array.prototype.pop),_a=Oa(Array.prototype.push),ya=Oa(String.prototype.toLowerCase),va=Oa(String.prototype.toString),wa=Oa(String.prototype.match),xa=Oa(String.prototype.replace),ka=Oa(String.prototype.indexOf),Sa=Oa(String.prototype.trim),Ea=Oa(Object.prototype.hasOwnProperty),Ca=Oa(RegExp.prototype.test),Na=(Ta=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ha(Ta,t)});var Ta;function Oa(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 ma(e,t,r)}}function Ra(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ya;sa&&sa(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(la(t)||(t[r]=e),o=e)}e[o]=!0}return e}function Aa(e){for(let t=0;t<e.length;t++){Ea(e,t)||(e[t]=null)}return e}function Pa(e){const t=fa(null);for(const[n,r]of aa(e)){Ea(e,n)&&(Array.isArray(r)?t[n]=Aa(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=Pa(r):t[n]=r)}return t}function La(e,t){for(;null!==e;){const n=ua(e,t);if(n){if(n.get)return Oa(n.get);if("function"==typeof n.value)return Oa(n.value)}e=ca(e)}return function(){return null}}const Ia=da(["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"]),Da=da(["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"]),Ua=da(["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"]),Fa=da(["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"]),ja=da(["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"]),Ma=da(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ba=da(["#text"]),za=da(["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"]),Ha=da(["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"]),Va=da(["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"]),Wa=da(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),qa=pa(/\{\{[\w\W]*|[\w\W]*\}\}/gm),$a=pa(/<%[\w\W]*|[\w\W]*%>/gm),Ga=pa(/\${[\w\W]*}/gm),Ya=pa(/^data-[\-\w.\u00B7-\uFFFF]/),Ka=pa(/^aria-[\-\w]+$/),Qa=pa(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ja=pa(/^(?:\w+script|data):/i),Xa=pa(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Za=pa(/^html$/i);var es=Object.freeze({__proto__:null,MUSTACHE_EXPR:qa,ERB_EXPR:$a,TMPLIT_EXPR:Ga,DATA_ATTR:Ya,ARIA_ATTR:Ka,IS_ALLOWED_URI:Qa,IS_SCRIPT_OR_DATA:Ja,ATTR_WHITESPACE:Xa,DOCTYPE_NAME:Za});var ts=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:p,DOMParser:f,trustedTypes:m}=t,h=c.prototype,g=La(h,"cloneNode"),b=La(h,"nextSibling"),_=La(h,"childNodes"),y=La(h,"parentNode");if("function"==typeof s){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let v,w="";const{implementation:x,createNodeIterator:k,createDocumentFragment:S,getElementsByTagName:E}=r,{importNode:C}=o;let N={};n.isSupported="function"==typeof aa&&"function"==typeof y&&x&&void 0!==x.createHTMLDocument;const{MUSTACHE_EXPR:T,ERB_EXPR:O,TMPLIT_EXPR:R,DATA_ATTR:A,ARIA_ATTR:P,IS_SCRIPT_OR_DATA:L,ATTR_WHITESPACE:I}=es;let{IS_ALLOWED_URI:D}=es,U=null;const F=Ra({},[...Ia,...Da,...Ua,...ja,...Ba]);let j=null;const M=Ra({},[...za,...Ha,...Va,...Wa]);let B=Object.seal(fa(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,V=!0,W=!0,q=!1,$=!0,G=!1,Y=!1,K=!1,Q=!1,J=!1,X=!1,Z=!1,ee=!0,te=!1,ne=!0,re=!1,oe={},ie=null;const ae=Ra({},["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=Ra({},["audio","video","img","source","image","track"]);let ce=null;const ue=Ra({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),de="http://www.w3.org/1998/Math/MathML",pe="http://www.w3.org/2000/svg",fe="http://www.w3.org/1999/xhtml";let me=fe,he=!1,ge=null;const be=Ra({},[de,pe,fe],va);let _e=null;const ye=["application/xhtml+xml","text/html"];let ve=null,we=null;const xe=r.createElement("form"),ke=function(e){return e instanceof RegExp||e instanceof Function},Se=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!we||we!==e){if(e&&"object"==typeof e||(e={}),e=Pa(e),_e=-1===ye.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ve="application/xhtml+xml"===_e?va:ya,U=Ea(e,"ALLOWED_TAGS")?Ra({},e.ALLOWED_TAGS,ve):F,j=Ea(e,"ALLOWED_ATTR")?Ra({},e.ALLOWED_ATTR,ve):M,ge=Ea(e,"ALLOWED_NAMESPACES")?Ra({},e.ALLOWED_NAMESPACES,va):be,ce=Ea(e,"ADD_URI_SAFE_ATTR")?Ra(Pa(ue),e.ADD_URI_SAFE_ATTR,ve):ue,se=Ea(e,"ADD_DATA_URI_TAGS")?Ra(Pa(le),e.ADD_DATA_URI_TAGS,ve):le,ie=Ea(e,"FORBID_CONTENTS")?Ra({},e.FORBID_CONTENTS,ve):ae,z=Ea(e,"FORBID_TAGS")?Ra({},e.FORBID_TAGS,ve):{},H=Ea(e,"FORBID_ATTR")?Ra({},e.FORBID_ATTR,ve):{},oe=!!Ea(e,"USE_PROFILES")&&e.USE_PROFILES,V=!1!==e.ALLOW_ARIA_ATTR,W=!1!==e.ALLOW_DATA_ATTR,q=e.ALLOW_UNKNOWN_PROTOCOLS||!1,$=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,G=e.SAFE_FOR_TEMPLATES||!1,Y=e.WHOLE_DOCUMENT||!1,J=e.RETURN_DOM||!1,X=e.RETURN_DOM_FRAGMENT||!1,Z=e.RETURN_TRUSTED_TYPE||!1,Q=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||Qa,me=e.NAMESPACE||fe,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&&(W=!1),X&&(J=!0),oe&&(U=Ra({},Ba),j=[],!0===oe.html&&(Ra(U,Ia),Ra(j,za)),!0===oe.svg&&(Ra(U,Da),Ra(j,Ha),Ra(j,Wa)),!0===oe.svgFilters&&(Ra(U,Ua),Ra(j,Ha),Ra(j,Wa)),!0===oe.mathMl&&(Ra(U,ja),Ra(j,Va),Ra(j,Wa))),e.ADD_TAGS&&(U===F&&(U=Pa(U)),Ra(U,e.ADD_TAGS,ve)),e.ADD_ATTR&&(j===M&&(j=Pa(j)),Ra(j,e.ADD_ATTR,ve)),e.ADD_URI_SAFE_ATTR&&Ra(ce,e.ADD_URI_SAFE_ATTR,ve),e.FORBID_CONTENTS&&(ie===ae&&(ie=Pa(ie)),Ra(ie,e.FORBID_CONTENTS,ve)),ne&&(U["#text"]=!0),Y&&Ra(U,["html","head","body"]),U.table&&(Ra(U,["tbody"]),delete z.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw Na('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw Na('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=e.TRUSTED_TYPES_POLICY,w=v.createHTML("")}else void 0===v&&(v=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!==v&&"string"==typeof w&&(w=v.createHTML(""));da&&da(e),we=e}},Ee=Ra({},["mi","mo","mn","ms","mtext"]),Ce=Ra({},["foreignobject","desc","title","annotation-xml"]),Ne=Ra({},["title","style","font","a","script"]),Te=Ra({},[...Da,...Ua,...Fa]),Oe=Ra({},[...ja,...Ma]),Re=function(e){_a(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},Ae=function(e,t){try{_a(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(r){_a(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!j[e])if(J||X)try{Re(t)}catch(r){}else try{t.setAttribute(e,"")}catch(r){}},Pe=function(e){let t=null,n=null;if(Q)e="<remove></remove>"+e;else{const t=wa(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===_e&&me===fe&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=v?v.createHTML(e):e;if(me===fe)try{t=(new f).parseFromString(o,_e)}catch(a){}if(!t||!t.documentElement){t=x.createDocument(me,"template",null);try{t.documentElement.innerHTML=he?w:o}catch(a){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),me===fe?E.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)},Ie=function(e){return"function"==typeof l&&e instanceof l},De=function(e,t,r){N[e]&&ga(N[e],(e=>{e.call(n,t,r,we)}))},Ue=function(e){let t=null;if(De("beforeSanitizeElements",e,null),(r=e)instanceof p&&("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=ve(e.nodeName);if(De("uponSanitizeElement",e,{tagName:o,allowedTags:U}),e.hasChildNodes()&&!Ie(e.firstElementChild)&&Ca(/<[/\w]/g,e.innerHTML)&&Ca(/<[/\w]/g,e.textContent))return Re(e),!0;if(!U[o]||z[o]){if(!z[o]&&je(o)){if(B.tagNameCheck instanceof RegExp&&Ca(B.tagNameCheck,o))return!1;if(B.tagNameCheck instanceof Function&&B.tagNameCheck(o))return!1}if(ne&&!ie[o]){const t=y(e)||e.parentNode,n=_(e)||e.childNodes;if(n&&t){for(let r=n.length-1;r>=0;--r)t.insertBefore(g(n[r],!0),b(e))}}return Re(e),!0}return e instanceof c&&!function(e){let t=y(e);t&&t.tagName||(t={namespaceURI:me,tagName:"template"});const n=ya(e.tagName),r=ya(t.tagName);return!!ge[e.namespaceURI]&&(e.namespaceURI===pe?t.namespaceURI===fe?"svg"===n:t.namespaceURI===de?"svg"===n&&("annotation-xml"===r||Ee[r]):Boolean(Te[n]):e.namespaceURI===de?t.namespaceURI===fe?"math"===n:t.namespaceURI===pe?"math"===n&&Ce[r]:Boolean(Oe[n]):e.namespaceURI===fe?!(t.namespaceURI===pe&&!Ce[r])&&!(t.namespaceURI===de&&!Ee[r])&&!Oe[n]&&(Ne[n]||!Te[n]):!("application/xhtml+xml"!==_e||!ge[e.namespaceURI]))}(e)?(Re(e),!0):"noscript"!==o&&"noembed"!==o&&"noframes"!==o||!Ca(/<\/no(script|embed|frames)/i,e.innerHTML)?(G&&3===e.nodeType&&(t=e.textContent,ga([T,O,R],(e=>{t=xa(t,e," ")})),e.textContent!==t&&(_a(n.removed,{element:e.cloneNode()}),e.textContent=t)),De("afterSanitizeElements",e,null),!1):(Re(e),!0)},Fe=function(e,t,n){if(ee&&("id"===t||"name"===t)&&(n in r||n in xe))return!1;if(W&&!H[t]&&Ca(A,t));else if(V&&Ca(P,t));else if(!j[t]||H[t]){if(!(je(e)&&(B.tagNameCheck instanceof RegExp&&Ca(B.tagNameCheck,e)||B.tagNameCheck instanceof Function&&B.tagNameCheck(e))&&(B.attributeNameCheck instanceof RegExp&&Ca(B.attributeNameCheck,t)||B.attributeNameCheck instanceof Function&&B.attributeNameCheck(t))||"is"===t&&B.allowCustomizedBuiltInElements&&(B.tagNameCheck instanceof RegExp&&Ca(B.tagNameCheck,n)||B.tagNameCheck instanceof Function&&B.tagNameCheck(n))))return!1}else if(ce[t]);else if(Ca(D,xa(n,I,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==ka(n,"data:")||!se[e]){if(q&&!Ca(L,xa(n,I,"")));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=ve(s);let d="value"===s?c:Sa(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(!$&&Ca(/\/>/i,d)){Ae(s,e);continue}G&&ga([T,O,R],(e=>{d=xa(d,e," ")}));const p=ve(e.nodeName);if(Fe(p,u,d)){if(!te||"id"!==u&&"name"!==u||(Ae(s,e),d="user-content-"+d),v&&"object"==typeof m&&"function"==typeof m.getAttributeType)if(l);else switch(m.getAttributeType(p,u)){case"TrustedHTML":d=v.createHTML(d);break;case"TrustedScriptURL":d=v.createScriptURL(d)}try{l?e.setAttributeNS(l,s,d):e.setAttribute(s,d),ba(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),Ue(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&&!Ie(e)){if("function"!=typeof e.toString)throw Na("toString is not a function");if("string"!=typeof(e=e.toString()))throw Na("dirty is not a string, aborting")}if(!n.isSupported)return e;if(K||Se(t),n.removed=[],"string"==typeof e&&(re=!1),re){if(e.nodeName){const t=ve(e.nodeName);if(!U[t]||z[t])throw Na("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(!J&&!G&&!Y&&-1===e.indexOf("<"))return v&&Z?v.createHTML(e):e;if(r=Pe(e),!r)return J?null:Z?w:""}r&&Q&&Re(r.firstChild);const u=Le(re?e:r);for(;s=u.nextNode();)Ue(s)||(s.content instanceof a&&Be(s.content),Me(s));if(re)return e;if(J){if(X)for(c=S.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&&U["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&Ca(Za,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),G&&ga([T,O,R],(e=>{d=xa(d,e," ")})),v&&Z?v.createHTML(d):d},n.setConfig=function(){Se(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),K=!0},n.clearConfig=function(){we=null,K=!1},n.isValidAttribute=function(e,t,n){we||Se({});const r=ve(e),o=ve(t);return Fe(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(N[e]=N[e]||[],_a(N[e],t))},n.removeHook=function(e){if(N[e])return ba(N[e])},n.removeHooks=function(e){N[e]&&(N[e]=[])},n.removeAllHooks=function(){N={}},n}();const ns=e=>Ie(ji,{appear:!0,show:!0,enter:"transition duration-300 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:Ie("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)=>Ie("div",{class:"flex space-x-1",children:[Ie("span",{children:Ie(Vi,{class:"h-5 w-5 fill-primary-base"})}),Ie("span",{class:"text-sm leading-5 text-gray-600",children:e})]},t)))})});function rs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var os=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n};const is=rs(os),as=e=>{var t,n;return(null==e?void 0:e.nextStepId)??(null==(n=null==(t=null==e?void 0:e.options)?void 0:t.find((t=>t.value===e.selectedValue)))?void 0:n.nextStepId)},ss=e=>{const t=[];let n=e[0].id;for(;n;){const r=e.find((e=>e.id===n));r?(t.push(r),n=as(r)):n=void 0}return t},ls=e=>e.reduce(((e,t)=>({...e,[t.id]:t.selectedValue})),{}),cs=e=>y("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,...e},y("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})),us=({name:e,defaultValue:t,options:n,onChange:r,className:o})=>Ie(wi,{name:e,defaultValue:t,onChange:t=>r({[e]:t.value}),className:`w-fit min-w-60 ${o??""}`,children:Ie("div",{className:"relative",children:[Ie(wi.Button,{className:"relative w-full h-9 cursor-default rounded-md border-2 bg-white py-0.5 pl-3 pr-10 text-left focus:outline-none focus-visible:border-gray-700",children:({value:e})=>Ie(x,{children:[Ie("span",{className:"block truncate",children:(null==e?void 0:e.label)??"Select"}),Ie("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2",children:Ie(cs,{className:"h-5 w-5 text-gray-700","aria-hidden":"true"})})]})}),Ie(ji,{as:x,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:Ie(wi.Options,{className:"absolute z-10 flex flex-col gap-0.5 mt-1 max-h-60 w-full overflow-auto rounded-md border-2 bg-white py-1 text-base ring-none focus:outline-none focus-visible:border-gray-700",children:n.map((e=>Ie(wi.Option,{className:({active:e,selected:t})=>`relative h-7 cursor-default select-none py-0.5 pl-3 pr-4 ${e||t?"font-medium text-white":"text-gray-700"} ${e?"bg-primary-hover":t?"bg-primary-base":""}`,value:e,children:({selected:t})=>Ie("span",{className:"block truncate "+(t?"font-medium":"font-normal"),children:e.label})},e.value)))})})]})}),ds=({name:e,defaultValue:t,options:n,onChange:r,className:o})=>{const i=n[0],a=n[1],[s,l]=he(t||i);return be((()=>{r({[e]:s.value})}),[e,r,s.value]),Ie("div",{className:`bg-gray-200 rounded-md w-fit h-fit p-0.5 ${o??""}`,children:Ie("div",{className:"relative flex gap-2",children:[Ie("label",{className:"z-10 cursor-pointer rounded-md px-8 py-1 max-w-40 text-sm font-medium truncate",children:[Ie("input",{className:"hidden",type:"radio",name:e,checked:t===i,onChange:e=>{var t;return l((null==(t=e.target)?void 0:t.checked)?i:a)}}),i.label]}),Ie("label",{className:"z-10 cursor-pointer rounded-md px-8 py-1 max-w-40 text-sm font-medium truncate",children:[Ie("input",{className:"hidden",type:"radio",name:e,checked:t===a,onChange:e=>{var t;return l((null==(t=e.target)?void 0:t.checked)?a:i)}}),a.label]}),Ie("span",{className:"z-11 absolute bg-white rounded-md transition-transform ease-out duration-200 h-7 w-1/2 "+(s===i?"translate-x-0":"translate-x-full")})]})})},ps=({className:e,children:t,...n})=>Ie("label",{class:`text-base text-gray-600 ${e??""}`,...n,children:t}),fs=({id:e,title:t,defaultValue:n,options:r,onChange:o})=>Ie("div",{className:"flex flex-col gap-2",children:[Ie(ps,{children:t}),2===r.length?Ie(ds,{name:e,defaultValue:r.find((({value:e})=>e===n)),options:r,onChange:o}):Ie(us,{name:e,defaultValue:r.find((({value:e})=>e===n)),options:r,onChange:o})]}),ms=e=>"SingleSelect"===e.template?Ie(fs,{...e}):Ie(x,{}),hs=({questions:e,onChange:t,className:n})=>{const{questions:r,answerQuestion:o,answers:i}=(e=>{const t=ye(e.reduce(((e,t)=>{let n=t.defaultValue;return n||"SingleSelect"!==t.template||2!==t.options.length||(n=t.options[0].value),[...e,{...t,selectedValue:n}]}),[])),[n,r]=he(ss(t.current)),[o,i]=he(ls(t.current)),a=xe((e=>{const n=((e,t)=>e.map((e=>{const n=t[e.id]??e.selectedValue;return{...e,selectedValue:n,defaultValue:n}})))(t.current,e);if(is(t.current,n))return;t.current=n;const o=ss(n);r(o),i(ls(o))}),[]);return{questions:n,answerQuestion:a,answers:o}})(e);return be((()=>t(i)),[i,t]),Ie("div",{className:`flex flex-col gap-4 ${n??""}`,children:r.map((e=>Ie(ms,{...e,onChange:o},e.id)))})},gs=(e,t)=>{var n,r;const o=e.find((e=>e.id===t));return(null==o?void 0:o.nextStepId)??(null==(r=null==(n=null==o?void 0:o.options)?void 0:n.find((e=>e.value===o.defaultValue)))?void 0:r.nextStepId)};var bs=(e=>(e[e.BriefIntroduction=0]="BriefIntroduction",e[e.Questions=1]="Questions",e[e.SubmissionResult=2]="SubmissionResult",e))(bs||{});const _s=(e,t,n)=>{const{activity:r,getActivity:o,progressActivity:i,calculation:a,getCalculation:s}=(e=>{const[t,n]=he(),[r,o]=he();return{activity:t,getActivity:()=>Wr.workplaceBackend.getClient().get(`v2.0/activities/${e}/steps`).then((e=>{n(e.data)})),progressActivity:t=>{const n={activityAction:"ProgressStartToComplete",progressEvents:Object.entries(t).map((([e,t])=>({stepId:e,value:t})))};return Wr.workplaceBackend.getClient().put(`v1.0/customer/activities/${e}`,n)},calculation:r,getCalculation:async()=>Wr.workplaceBackend.getClient().get(`v1.0/activities/${e}/calculate`).then((e=>o(e.data)))}})(e.content.assessmentId),l=we((()=>r?((e,t)=>{let n,r=e;for(;!n;){const e=t.find((e=>e.id==r));"Question"===e.stepType&&(n=e),r=gs(t,e.id)}return[n,...t.filter((e=>e!==n&&"Question"===e.stepType))]})(r.firstStepId,r.steps):void 0),[r]),[c,u]=he(0),d=ye(),p=ye({}),f=xe((e=>{const t=d.current;return t?Object.entries(e).filter((([e,n])=>t[e]!==n)).map((([e,t])=>{var n;return{questionId:e,answer:t,customerAttribute:(null==(n=null==r?void 0:r.steps.find((t=>t.id===e)))?void 0:n.customerAttribute)??""}})):[]}),[null==r?void 0:r.steps]),m=xe((async()=>{switch(c){case 0:await o(),u(1);break;case 1:await i(p.current),await s(),u(2)}}),[c,o,s,i]),h=we((()=>{switch(c){case 0:case 1:return e.content.title;case 2:return null==a?void 0:a.estimates.primary.title;default:return}}),[null==a?void 0:a.estimates.primary.title,c,e.content.title]),g=we((()=>{switch(c){case 0:case 1:return e.content.description;case 2:return null==a?void 0:a.estimates.blurb.text;default:return}}),[null==a?void 0:a.estimates.blurb.text,c,e.content.description]),[b,_]=he(!0);return{title:h,description:g,primaryButtonEnabled:b,primaryButtonText:we((()=>{switch(c){case 0:return t;case 1:return"Submit";case 2:return"Next";default:return}}),[t,c]),secondaryButtonText:we((()=>{switch(c){case 0:return n;case 1:return"Skip for now";default:return}}),[c,n]),currentSlide:c,goToNextSlide:m,questions:l,calculateUpdatedAnswers:f,updateAnswers:e=>{p.current=e,d.current={...d.current,...e},_(!Object.values(e).some((e=>!e)))},submissionResult:a?{imageUrl:a.estimates.blurb.imageUrl}:void 0}},ys=Object.values(bs).filter((e=>!isNaN(Number(e)))),vs=(e,t)=>{const n=ys.indexOf(e),r=ys.indexOf(t);return n<r?`transition duration-300 -translate-x-[${100*(n+1)}%] opacity-0 h-0`:n===r?`transition duration-300 -translate-x-[${100*n}%] opacity-100 h-full`:n>r?`transition duration-300 -translate-x-[${100*(n-1)}%] opacity-0 h-0`:void 0},ws=e=>{var t;return Ie("div",{className:"flex flex-row",children:[Ie("div",{className:"-translate-x-[0%] -translate-x-[100%] -translate-x-[200%]"}),Ie("div",{className:`w-full flex-none ${vs(bs.BriefIntroduction,e.currentSlide)}`,children:Ie(ns,{items:e.offer.content.details})}),Ie("div",{className:`w-full flex-none ${vs(bs.Questions,e.currentSlide)}`,children:e.questions&&Ie(hs,{questions:e.questions,onChange:e.onQuestionsAnswered})}),Ie("div",{className:`w-full flex-none ${vs(bs.SubmissionResult,e.currentSlide)}`,children:Ie("img",{class:"mt-4 max-w-full w-full mx-auto",src:null==(t=e.submissionResult)?void 0:t.imageUrl,loading:"lazy"})})]})},xs=e=>{const{step:{name:t,content:{assessmentId:n}}}=e,{title:r,description:o,currentSlide:i,goToNextSlide:a,primaryButtonEnabled:s,primaryButtonText:l,secondaryButtonText:c,questions:u,calculateUpdatedAnswers:d,updateAnswers:p,submissionResult:f}=_s(e.step,e.acceptButton.text,e.declineButton.text),{trace:m}=Gr();be((()=>{(async()=>{await m({type:"offer-viewed",offerName:e.step.name,data:e.step.metadata})})()}),[]),be((()=>{i===bs.Questions&&m({type:"assessment-viewed",data:{assessmentId:n,assessmentTitle:t}}),i===bs.SubmissionResult&&m({type:"assessment-summary-viewed",data:{assessmentId:n,assessmentTitle:t}})}),[n,t,i,m]);const h=xe((e=>{d(e).forEach((({customerAttribute:e})=>{m({type:"assessment-field-updated",data:{assessmentId:n,assessmentTitle:t,customerAttribute:e}})})),p(e)}),[n,t,d,m,p]),g=xe((async()=>{i===bs.BriefIntroduction&&(await m({type:"offer-accepted",offerName:e.step.name,data:{...e.step.metadata,template:e.step.content.template,assessmentId:n}}),await a()),i===bs.Questions&&(m({type:"assessment-submitted",data:{assessmentId:n,assessmentTitle:t}}),await a()),i===bs.SubmissionResult&&e.onComplete()}),[n,t,i,a,e,m]),b=xe((async()=>{i===bs.BriefIntroduction&&await m({type:"offer-declined",offerName:e.step.name,data:{...e.step.metadata,template:e.step.content.template,assessmentId:n}}),i===bs.Questions&&m({type:"assessment-skipped",data:{assessmentId:n,assessmentTitle:t}}),e.declineButton.onClick()}),[n,t,i,e.declineButton,e.step.content.template,e.step.metadata,e.step.name,m]);return Ie(ra,{children:[Ie(ra.Left,{children:Ie("div",{children:[Ie("div",{class:"flex justify-between md:block text-xs tracking-wide",children:Ie("span",{class:"relative px-3 py-0.5 text-primary-base font-semibold",children:[e.stepNumber.current," OF ",e.stepNumber.total,Ie("span",{class:"absolute left-0 rounded-xl bg-primary-base opacity-10 w-full h-[90%]"})]})}),Ie(ji,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:Ie("div",{class:"flex flex-col justify-stretch md:max-w-[27.5rem]",children:[Ie("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:r}),o&&Ie("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:o}),Ie("div",{className:"mt-6",children:Ie(ws,{currentSlide:i,offer:e.step,questions:u,onQuestionsAnswered:h,submissionResult:f})}),Ie("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:[l&&Ie(Vt,{class:"",disabled:!s,onClickPromise:g,children:l}),c&&Ie(Vt,{class:"bg-white hover:!bg-gray-100 focus:!ring-gray-200 !border-0 !shadow-none !text-gray-700 !border-gray-300",onClickPromise:b,children:c})]}),Ie("div",{className:`flex flex-col gap-3 mt-6 text-gray-600 text-xs ${vs(bs.BriefIntroduction,i)}`,children:e.step.content.terms.map(((e,t)=>Ie("span",{dangerouslySetInnerHTML:{__html:ts.sanitize(e,{ADD_ATTR:["target"]})}},t)))})]})})]})}),Ie(ra.Right,{children:Ie("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},ks=e=>{const[t,n]=he(!1);return Ie("div",{class:e.class,children:t?Ie(ns,{items:e.items}):Ie("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",Ie("span",{class:"ml-1",children:Ie(cs,{class:"h-4 w-4"})})]})})},Ss=e=>{var t;const{trace:n}=Gr();be((()=>{(async()=>{await n({type:"offer-viewed",offerName:e.step.name,data:e.step.metadata})})()}),[e.step.metadata,e.step.name,n]);const r=async t=>{t?await n({type:"offer-accepted",offerName:e.step.name,data:{...e.step.metadata,template:"Eoi"}}):await n({type:"offer-declined",offerName:e.step.name,data:{...e.step.metadata,template:"Eoi"}});return(t?e.primaryButton:e.secondaryButton).onClick()};return Ie(ra,{children:[Ie(ra.Left,{children:Ie("div",{children:[Ie("div",{class:"flex justify-between md:block text-xs tracking-wide",children:Ie("span",{class:"relative px-3 py-0.5 text-primary-base font-semibold",children:[e.stepNumber.current," OF ",e.stepNumber.total,Ie("span",{class:"absolute left-0 rounded-xl bg-primary-base opacity-10 w-full h-[90%]"})]})}),Ie(ji,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:[Ie("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:e.step.content.mobileImageUrl,loading:"lazy"}),Ie("div",{class:"md:max-w-[27.5rem]",children:[Ie("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:e.step.content.title}),Ie("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&&Ie("div",{class:"mt-6 hidden md:block",children:Ie(ns,{items:e.step.content.details})})]}),e.step.content.details&&Ie(ks,{class:"mt-6 md:hidden",items:e.step.content.details}),e.children&&e.children,Ie("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:[Ie(Vt,{class:e.primaryButton.class??"",onClickPromise:()=>r(!0),children:e.primaryButton.text??"Next"}),(null==(t=e.secondaryButton)?void 0:t.text)&&Ie(Vt,{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:()=>r(!1),children:e.secondaryButton.text})]}),e.step.content.terms&&Ie("div",{class:"flex flex-col gap-3 mt-6 text-gray-600 text-xs",children:e.step.content.terms.map(((e,t)=>Ie("span",{dangerouslySetInnerHTML:{__html:ts.sanitize(e,{ADD_ATTR:["target"]})}},t)))})]})]})}),Ie(ra.Right,{children:Ie("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},Es=e=>{const{trace:t}=Gr();be((()=>{(async()=>{"name"in e.step&&await t({type:"offer-viewed",offerName:e.step.name,data:e.step.metadata})})()}),[e.step,t]);return Ie(ra,{children:[Ie(ra.Left,{children:Ie("div",{children:[Ie("div",{class:"flex justify-between md:block text-xs tracking-wide",children:Ie("span",{class:"relative px-3 py-0.5 text-primary-base font-semibold",children:[e.stepNumber.current," OF ",e.stepNumber.total,Ie("span",{class:"absolute left-0 rounded-xl bg-primary-base opacity-10 w-full h-[90%]"})]})}),Ie(ji,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:[Ie("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:e.step.content.mobileImageUrl,loading:"lazy"}),Ie("div",{class:"md:max-w-[27.5rem]",children:[Ie("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:e.step.content.title}),Ie("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&&Ie("div",{class:"mt-6 hidden md:block",children:Ie(ns,{items:e.step.content.details})})]}),e.step.content.details&&Ie(ks,{class:"mt-6 md:hidden",items:e.step.content.details}),e.children&&e.children,Ie("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:Ie(Vt,{class:e.primaryButton.class??"",onClickPromise:async()=>{"name"in e.step&&await t({type:"offer-progressed",offerName:e.step.name,data:{...e.step.metadata,template:"Simple"}}),e.primaryButton.onClick()},children:e.primaryButton.text??"Next"})}),e.step.content.terms&&Ie("div",{class:"flex flex-col gap-3 mt-6 text-gray-600 text-xs ",children:e.step.content.terms.map(((e,t)=>Ie("span",{dangerouslySetInnerHTML:{__html:ts.sanitize(e,{ADD_ATTR:["target"]})}},t)))})]})]})}),Ie(ra.Right,{children:Ie("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},Cs=e=>{switch(e.marketPlaceOffer.content.template){case"Eoi":return Ie(Ss,{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 Ie(Es,{stepNumber:e.stepNumber,step:e.marketPlaceOffer,primaryButton:{text:e.marketPlaceOffer.content.acceptButton,onClick:e.onStepComplete}});case"Assessment":return Ie(xs,{stepNumber:e.stepNumber,step:e.marketPlaceOffer,acceptButton:{text:e.marketPlaceOffer.content.acceptButton},declineButton:{text:e.marketPlaceOffer.content.declineButton,onClick:e.onStepComplete},onComplete:e.onStepComplete})}},Ns=""+("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),Ts=e=>y("svg",{width:36,height:42,viewBox:"0 0 36 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},y("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"})),Os=e=>y("svg",{width:37,height:40,viewBox:"0 0 37 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},y("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"})),Rs=""+("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),As=()=>{const{trace:e}=Gr();be((()=>{(async()=>{await e({type:"summary-viewed",data:{summaryVariant:"app"}})})()}),[]);const{identity:t}=ke(Fe),n={...Ps(t),imageUrl:Ns,mobileImageUrl:Rs},r={text:"Continue",class:"mt-6 md:mt-14",onClick:async()=>{await e("completed");const t=document.querySelector(js),n=new CustomEvent("step-completion",{bubbles:!0});null==t||t.dispatchEvent(n),await new Promise((e=>setTimeout(e,1e4)))}};return Ie(ra,{children:[Ie(ra.Left,{children:Ie("div",{children:[Ie("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:n.mobileImageUrl,loading:"lazy"}),Ie("div",{class:"md:max-w-[27.5rem]",children:[Ie("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:n.title}),Ie("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:n.description})]}),Ie("div",{class:"mt-6 flex space-x-6",children:[Ie(Ts,{}),Ie(Os,{})]}),Ie(Vt,{class:r.class,onClickPromise:r.onClick,children:r.text})]})}),Ie(ra.Right,{children:Ie("img",{class:"max-w-[30rem] w-full hidden md:block",src:n.imageUrl,loading:"lazy"})})]})},Ps=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.`}}},Ls=""+("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),Is=""+("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),Ds=()=>{const{trace:e}=Gr();be((()=>{(async()=>{await e({type:"summary-viewed",data:{summaryVariant:"generic"}})})()}),[]);const{workplace:t}=ke(Fe),n={imageUrl:Ls,mobileImageUrl:Is,title:"You're all set!",description:"PreviouslyLinked"===t.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."},r={text:"Continue",class:"mt-6 md:mt-6",onClick:async()=>{await e("completed");const t=document.querySelector(js),n=new CustomEvent("step-completion",{bubbles:!0});null==t||t.dispatchEvent(n),await new Promise((e=>setTimeout(e,1e4)))}};return Ie(ra,{children:[Ie(ra.Left,{children:Ie("div",{children:[Ie("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:n.mobileImageUrl,loading:"lazy"}),Ie("div",{class:"md:max-w-[27.5rem]",children:[Ie("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:n.title}),Ie("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:n.description})]}),Ie("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:Ie(Vt,{class:r.class,onClickPromise:r.onClick,children:r.text})})]})}),Ie(ra.Right,{children:Ie("img",{class:"max-w-[30rem] w-full hidden md:block",src:n.imageUrl,loading:"lazy"})})]})},Us=()=>{const{offers:e,isComplete:t,isAppEnabled:n,identity:r,workplace:o,featureFlags:i,updateIdentity:a}=ke(Fe),{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]=he(a[0]),c=we((()=>{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=xe((()=>{a(!0)}),[a]),u=xe((()=>{a(!1)}),[a]);switch(s.screenName){case"Introduction":return Ie(na,{employerName:o.employerName,onStepComplete:l});case"FlareAppIdentity":return Ie(ea,{onSuccess:c,onDecline:u});case"MarketplaceOffer":return Ie(Cs,{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 Ie(As,{});case"SummaryGeneric":return Ie(Ds,{});default:return Ie(x,{})}},Fs=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??"",verifiedPhoneNumber:e.identity.verifiedPhoneNumber??"",registrationStatus:n},o=e.workplace.isLinkedWithIdentity?"PreviouslyLinked":"Unlinked",i={employerName:e.workplace.employerName,linkingStatus:o};return{...Ue,...e,isAppEnabled:t,identity:r,workplace:i}},js="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=K,o.prototype.attributeChangedCallback=J,o.prototype.disconnectedCallback=X,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]=he(),[r,o]=he(0);be((()=>Jt((()=>{i().then((()=>o(r+1)))}))),[r]),be((()=>{i()}),[]);const i=async()=>{const t={backendUrl:e["backend-url"],accessToken:e["access-token"],workflowsInstanceId:e["workflows-instance-id"]};qr(t.backendUrl,t.accessToken,t.workflowsInstanceId);const r=await Vr.backend.init();n(Fs(r))},a=xe((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 Ie(x,{children:[Ie("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}.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}.mb-2{margin-bottom:.5rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.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}.table{display:table}.hidden{display:none}.h-0{height:0}.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%}.flex-none{flex:none}.shrink-0{flex-shrink:0}.-translate-x-\\[0\\%\\]{--tw-translate-x:-0%}.-translate-x-\\[0\\%\\],.-translate-x-\\[100\\%\\]{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-\\[100\\%\\]{--tw-translate-x:-100%}.-translate-x-\\[200\\%\\]{--tw-translate-x:-200%}.-translate-x-\\[200\\%\\],.-translate-y-6{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-y-6{--tw-translate-y:-1.5rem}.translate-x-0{--tw-translate-x:0px}.translate-x-0,.translate-x-\\[1\\.25rem\\]{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-\\[1\\.25rem\\]{--tw-translate-x:1.25rem}.translate-x-full{--tw-translate-x:100%}.translate-x-full,.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))}.translate-y-0{--tw-translate-y:0px}.transform{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-row{flex-direction:row}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-stretch{justify-content:stretch}.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-3{padding-right:.75rem}.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-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.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-green-700{--tw-text-opacity:1;color:rgb(21 128 61/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))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.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()}),Ie("div",{class:"font-inter pt-6 pb-8 md:py-24 px-px",children:t?Ie(Fe.Provider,{value:{...t,updateIdentity:a},children:Ie(Us,{})}):Ie("div",{class:"flex justify-center",children:Ie("span",{class:"animate-spin",children:Ie(De,{size:"lg"})})})},r)]})}),js,[],{shadow:!0})}));
|
3
|
+
const{entries:sa,setPrototypeOf:la,isFrozen:ca,getPrototypeOf:ua,getOwnPropertyDescriptor:da}=Object;let{freeze:pa,seal:fa,create:ma}=Object,{apply:ha,construct:ga}="undefined"!=typeof Reflect&&Reflect;pa||(pa=function(e){return e}),fa||(fa=function(e){return e}),ha||(ha=function(e,t,n){return e.apply(t,n)}),ga||(ga=function(e,t){return new e(...t)});const ba=Ra(Array.prototype.forEach),ya=Ra(Array.prototype.pop),_a=Ra(Array.prototype.push),va=Ra(String.prototype.toLowerCase),wa=Ra(String.prototype.toString),xa=Ra(String.prototype.match),ka=Ra(String.prototype.replace),Sa=Ra(String.prototype.indexOf),Ea=Ra(String.prototype.trim),Na=Ra(Object.prototype.hasOwnProperty),Ca=Ra(RegExp.prototype.test),Ta=(Oa=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ga(Oa,t)});var Oa;function Ra(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 ha(e,t,r)}}function Aa(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:va;la&&la(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(ca(t)||(t[r]=e),o=e)}e[o]=!0}return e}function Pa(e){for(let t=0;t<e.length;t++){Na(e,t)||(e[t]=null)}return e}function La(e){const t=ma(null);for(const[n,r]of sa(e)){Na(e,n)&&(Array.isArray(r)?t[n]=Pa(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=La(r):t[n]=r)}return t}function Ia(e,t){for(;null!==e;){const n=da(e,t);if(n){if(n.get)return Ra(n.get);if("function"==typeof n.value)return Ra(n.value)}e=ua(e)}return function(){return null}}const Da=pa(["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"]),Ua=pa(["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"]),Fa=pa(["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"]),ja=pa(["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"]),Ma=pa(["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"]),Ba=pa(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),za=pa(["#text"]),Ha=pa(["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"]),Va=pa(["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"]),Wa=pa(["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"]),$a=pa(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),qa=fa(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ga=fa(/<%[\w\W]*|[\w\W]*%>/gm),Ya=fa(/\${[\w\W]*}/gm),Ka=fa(/^data-[\-\w.\u00B7-\uFFFF]/),Qa=fa(/^aria-[\-\w]+$/),Ja=fa(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Xa=fa(/^(?:\w+script|data):/i),Za=fa(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),es=fa(/^html$/i);var ts=Object.freeze({__proto__:null,MUSTACHE_EXPR:qa,ERB_EXPR:Ga,TMPLIT_EXPR:Ya,DATA_ATTR:Ka,ARIA_ATTR:Qa,IS_ALLOWED_URI:Ja,IS_SCRIPT_OR_DATA:Xa,ATTR_WHITESPACE:Za,DOCTYPE_NAME:es});var ns=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:p,DOMParser:f,trustedTypes:m}=t,h=c.prototype,g=Ia(h,"cloneNode"),b=Ia(h,"nextSibling"),y=Ia(h,"childNodes"),_=Ia(h,"parentNode");if("function"==typeof s){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let v,w="";const{implementation:x,createNodeIterator:k,createDocumentFragment:S,getElementsByTagName:E}=r,{importNode:N}=o;let C={};n.isSupported="function"==typeof sa&&"function"==typeof _&&x&&void 0!==x.createHTMLDocument;const{MUSTACHE_EXPR:T,ERB_EXPR:O,TMPLIT_EXPR:R,DATA_ATTR:A,ARIA_ATTR:P,IS_SCRIPT_OR_DATA:L,ATTR_WHITESPACE:I}=ts;let{IS_ALLOWED_URI:D}=ts,U=null;const F=Aa({},[...Da,...Ua,...Fa,...Ma,...za]);let j=null;const M=Aa({},[...Ha,...Va,...Wa,...$a]);let B=Object.seal(ma(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,V=!0,W=!0,$=!1,q=!0,G=!1,Y=!1,K=!1,Q=!1,J=!1,X=!1,Z=!1,ee=!0,te=!1,ne=!0,re=!1,oe={},ie=null;const ae=Aa({},["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=Aa({},["audio","video","img","source","image","track"]);let ce=null;const ue=Aa({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),de="http://www.w3.org/1998/Math/MathML",pe="http://www.w3.org/2000/svg",fe="http://www.w3.org/1999/xhtml";let me=fe,he=!1,ge=null;const be=Aa({},[de,pe,fe],wa);let ye=null;const _e=["application/xhtml+xml","text/html"];let ve=null,we=null;const xe=r.createElement("form"),ke=function(e){return e instanceof RegExp||e instanceof Function},Se=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!we||we!==e){if(e&&"object"==typeof e||(e={}),e=La(e),ye=-1===_e.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ve="application/xhtml+xml"===ye?wa:va,U=Na(e,"ALLOWED_TAGS")?Aa({},e.ALLOWED_TAGS,ve):F,j=Na(e,"ALLOWED_ATTR")?Aa({},e.ALLOWED_ATTR,ve):M,ge=Na(e,"ALLOWED_NAMESPACES")?Aa({},e.ALLOWED_NAMESPACES,wa):be,ce=Na(e,"ADD_URI_SAFE_ATTR")?Aa(La(ue),e.ADD_URI_SAFE_ATTR,ve):ue,se=Na(e,"ADD_DATA_URI_TAGS")?Aa(La(le),e.ADD_DATA_URI_TAGS,ve):le,ie=Na(e,"FORBID_CONTENTS")?Aa({},e.FORBID_CONTENTS,ve):ae,z=Na(e,"FORBID_TAGS")?Aa({},e.FORBID_TAGS,ve):{},H=Na(e,"FORBID_ATTR")?Aa({},e.FORBID_ATTR,ve):{},oe=!!Na(e,"USE_PROFILES")&&e.USE_PROFILES,V=!1!==e.ALLOW_ARIA_ATTR,W=!1!==e.ALLOW_DATA_ATTR,$=e.ALLOW_UNKNOWN_PROTOCOLS||!1,q=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,G=e.SAFE_FOR_TEMPLATES||!1,Y=e.WHOLE_DOCUMENT||!1,J=e.RETURN_DOM||!1,X=e.RETURN_DOM_FRAGMENT||!1,Z=e.RETURN_TRUSTED_TYPE||!1,Q=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||Ja,me=e.NAMESPACE||fe,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&&(W=!1),X&&(J=!0),oe&&(U=Aa({},za),j=[],!0===oe.html&&(Aa(U,Da),Aa(j,Ha)),!0===oe.svg&&(Aa(U,Ua),Aa(j,Va),Aa(j,$a)),!0===oe.svgFilters&&(Aa(U,Fa),Aa(j,Va),Aa(j,$a)),!0===oe.mathMl&&(Aa(U,Ma),Aa(j,Wa),Aa(j,$a))),e.ADD_TAGS&&(U===F&&(U=La(U)),Aa(U,e.ADD_TAGS,ve)),e.ADD_ATTR&&(j===M&&(j=La(j)),Aa(j,e.ADD_ATTR,ve)),e.ADD_URI_SAFE_ATTR&&Aa(ce,e.ADD_URI_SAFE_ATTR,ve),e.FORBID_CONTENTS&&(ie===ae&&(ie=La(ie)),Aa(ie,e.FORBID_CONTENTS,ve)),ne&&(U["#text"]=!0),Y&&Aa(U,["html","head","body"]),U.table&&(Aa(U,["tbody"]),delete z.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw Ta('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw Ta('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=e.TRUSTED_TYPES_POLICY,w=v.createHTML("")}else void 0===v&&(v=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!==v&&"string"==typeof w&&(w=v.createHTML(""));pa&&pa(e),we=e}},Ee=Aa({},["mi","mo","mn","ms","mtext"]),Ne=Aa({},["foreignobject","desc","title","annotation-xml"]),Ce=Aa({},["title","style","font","a","script"]),Te=Aa({},[...Ua,...Fa,...ja]),Oe=Aa({},[...Ma,...Ba]),Re=function(e){_a(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},Ae=function(e,t){try{_a(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(r){_a(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!j[e])if(J||X)try{Re(t)}catch(r){}else try{t.setAttribute(e,"")}catch(r){}},Pe=function(e){let t=null,n=null;if(Q)e="<remove></remove>"+e;else{const t=xa(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ye&&me===fe&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=v?v.createHTML(e):e;if(me===fe)try{t=(new f).parseFromString(o,ye)}catch(a){}if(!t||!t.documentElement){t=x.createDocument(me,"template",null);try{t.documentElement.innerHTML=he?w:o}catch(a){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),me===fe?E.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)},Ie=function(e){return"function"==typeof l&&e instanceof l},De=function(e,t,r){C[e]&&ba(C[e],(e=>{e.call(n,t,r,we)}))},Ue=function(e){let t=null;if(De("beforeSanitizeElements",e,null),(r=e)instanceof p&&("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=ve(e.nodeName);if(De("uponSanitizeElement",e,{tagName:o,allowedTags:U}),e.hasChildNodes()&&!Ie(e.firstElementChild)&&Ca(/<[/\w]/g,e.innerHTML)&&Ca(/<[/\w]/g,e.textContent))return Re(e),!0;if(!U[o]||z[o]){if(!z[o]&&je(o)){if(B.tagNameCheck instanceof RegExp&&Ca(B.tagNameCheck,o))return!1;if(B.tagNameCheck instanceof Function&&B.tagNameCheck(o))return!1}if(ne&&!ie[o]){const t=_(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),b(e))}}return Re(e),!0}return e instanceof c&&!function(e){let t=_(e);t&&t.tagName||(t={namespaceURI:me,tagName:"template"});const n=va(e.tagName),r=va(t.tagName);return!!ge[e.namespaceURI]&&(e.namespaceURI===pe?t.namespaceURI===fe?"svg"===n:t.namespaceURI===de?"svg"===n&&("annotation-xml"===r||Ee[r]):Boolean(Te[n]):e.namespaceURI===de?t.namespaceURI===fe?"math"===n:t.namespaceURI===pe?"math"===n&&Ne[r]:Boolean(Oe[n]):e.namespaceURI===fe?!(t.namespaceURI===pe&&!Ne[r])&&!(t.namespaceURI===de&&!Ee[r])&&!Oe[n]&&(Ce[n]||!Te[n]):!("application/xhtml+xml"!==ye||!ge[e.namespaceURI]))}(e)?(Re(e),!0):"noscript"!==o&&"noembed"!==o&&"noframes"!==o||!Ca(/<\/no(script|embed|frames)/i,e.innerHTML)?(G&&3===e.nodeType&&(t=e.textContent,ba([T,O,R],(e=>{t=ka(t,e," ")})),e.textContent!==t&&(_a(n.removed,{element:e.cloneNode()}),e.textContent=t)),De("afterSanitizeElements",e,null),!1):(Re(e),!0)},Fe=function(e,t,n){if(ee&&("id"===t||"name"===t)&&(n in r||n in xe))return!1;if(W&&!H[t]&&Ca(A,t));else if(V&&Ca(P,t));else if(!j[t]||H[t]){if(!(je(e)&&(B.tagNameCheck instanceof RegExp&&Ca(B.tagNameCheck,e)||B.tagNameCheck instanceof Function&&B.tagNameCheck(e))&&(B.attributeNameCheck instanceof RegExp&&Ca(B.attributeNameCheck,t)||B.attributeNameCheck instanceof Function&&B.attributeNameCheck(t))||"is"===t&&B.allowCustomizedBuiltInElements&&(B.tagNameCheck instanceof RegExp&&Ca(B.tagNameCheck,n)||B.tagNameCheck instanceof Function&&B.tagNameCheck(n))))return!1}else if(ce[t]);else if(Ca(D,ka(n,I,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Sa(n,"data:")||!se[e]){if($&&!Ca(L,ka(n,I,"")));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=ve(s);let d="value"===s?c:Ea(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(!q&&Ca(/\/>/i,d)){Ae(s,e);continue}G&&ba([T,O,R],(e=>{d=ka(d,e," ")}));const p=ve(e.nodeName);if(Fe(p,u,d)){if(!te||"id"!==u&&"name"!==u||(Ae(s,e),d="user-content-"+d),v&&"object"==typeof m&&"function"==typeof m.getAttributeType)if(l);else switch(m.getAttributeType(p,u)){case"TrustedHTML":d=v.createHTML(d);break;case"TrustedScriptURL":d=v.createScriptURL(d)}try{l?e.setAttributeNS(l,s,d):e.setAttribute(s,d),ya(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),Ue(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&&!Ie(e)){if("function"!=typeof e.toString)throw Ta("toString is not a function");if("string"!=typeof(e=e.toString()))throw Ta("dirty is not a string, aborting")}if(!n.isSupported)return e;if(K||Se(t),n.removed=[],"string"==typeof e&&(re=!1),re){if(e.nodeName){const t=ve(e.nodeName);if(!U[t]||z[t])throw Ta("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(!J&&!G&&!Y&&-1===e.indexOf("<"))return v&&Z?v.createHTML(e):e;if(r=Pe(e),!r)return J?null:Z?w:""}r&&Q&&Re(r.firstChild);const u=Le(re?e:r);for(;s=u.nextNode();)Ue(s)||(s.content instanceof a&&Be(s.content),Me(s));if(re)return e;if(J){if(X)for(c=S.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(j.shadowroot||j.shadowrootmode)&&(c=N.call(o,c,!0)),c}let d=Y?r.outerHTML:r.innerHTML;return Y&&U["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&Ca(es,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),G&&ba([T,O,R],(e=>{d=ka(d,e," ")})),v&&Z?v.createHTML(d):d},n.setConfig=function(){Se(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),K=!0},n.clearConfig=function(){we=null,K=!1},n.isValidAttribute=function(e,t,n){we||Se({});const r=ve(e),o=ve(t);return Fe(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(C[e]=C[e]||[],_a(C[e],t))},n.removeHook=function(e){if(C[e])return ya(C[e])},n.removeHooks=function(e){C[e]&&(C[e]=[])},n.removeAllHooks=function(){C={}},n}();const rs=e=>Ie(Mi,{appear:!0,show:!0,enter:"transition duration-300 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:Ie("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)=>Ie("div",{class:"flex space-x-1",children:[Ie("span",{children:Ie(Wi,{class:"h-5 w-5 fill-primary-base"})}),Ie("span",{class:"text-sm leading-5 text-gray-600",children:e})]},t)))})}),os=({id:e,title:t,minimumValue:n,maximumValue:r,onChange:o})=>{const[i,a]=he(""),[s,l]=he(!1),c=xe((e=>{const t=Number(e),o=t>=n&&t<=r;return l(o),o}),[r,n]),u=xe((()=>{a("")}),[]),d=xe((()=>{s||a(`Please enter value between $${n} and $${r}`)}),[s,n,r]),p=Ie("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",children:Ie("span",{children:"$"})});return Ie("div",{className:"flex flex-col gap-1",children:[Ie(Me,{children:t}),Ie(qt,{allowedKeyPattern:/[0-9]/,inputMode:"numeric",className:0!==i.length?"h-8 pl-7 text-red-900 ring-1 ring-inset ring-red-300 placeholder:text-red-300 focus:ring-red-500":"h-8 pl-7",onfocusin:u,onfocusout:d,leadingIconElement:p,trailingIconElement:!1,onChange:t=>{const n=c(t)?t:"";o({[e]:n})}}),0!==i.length&&Ie("div",{className:"leading-none",children:Ie("span",{className:"text-xs text-rose-500",children:i})})]})},is=e=>_("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,...e},_("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})),as=({name:e,defaultValue:t,options:n,onChange:r,className:o})=>Ie(xi,{name:e,defaultValue:t,onChange:t=>r({[e]:t.value}),className:`w-fit min-w-60 ${o??""}`,children:Ie("div",{className:"relative",children:[Ie(xi.Button,{className:"relative w-full h-9 cursor-default rounded-md border-2 bg-white py-0.5 pl-3 pr-10 text-left focus:outline-none focus-visible:border-gray-700",children:({value:e})=>Ie(x,{children:[Ie("span",{className:"block truncate",children:(null==e?void 0:e.label)??"Select"}),Ie("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2",children:Ie(is,{className:"h-5 w-5 text-gray-700","aria-hidden":"true"})})]})}),Ie(Mi,{as:x,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:Ie(xi.Options,{className:"absolute z-10 flex flex-col gap-0.5 mt-1 max-h-60 w-full overflow-auto rounded-md border-2 bg-white py-1 text-base ring-none focus:outline-none focus-visible:border-gray-700",children:n.map((e=>Ie(xi.Option,{className:({active:e,selected:t})=>`relative h-7 cursor-default select-none py-0.5 pl-3 pr-4 ${e||t?"font-medium text-white":"text-gray-700"} ${e?"bg-primary-hover":t?"bg-primary-base":""}`,value:e,children:({selected:t})=>Ie("span",{className:"block truncate "+(t?"font-medium":"font-normal"),children:e.label})},e.value)))})})]})}),ss=({name:e,defaultValue:t,options:n,onChange:r,className:o})=>{const i=n[0],a=n[1],[s,l]=he(t||i);return be((()=>{r({[e]:s.value})}),[e,r,s.value]),Ie("div",{className:`bg-gray-200 rounded-md w-fit h-fit p-0.5 ${o??""}`,children:Ie("div",{className:"relative flex gap-2",children:[Ie("label",{className:"z-10 cursor-pointer rounded-md px-8 py-1 max-w-40 text-sm font-medium truncate",children:[Ie("input",{className:"hidden",type:"radio",name:e,checked:t===i,onChange:e=>{var t;return l((null==(t=e.target)?void 0:t.checked)?i:a)}}),i.label]}),Ie("label",{className:"z-10 cursor-pointer rounded-md px-8 py-1 max-w-40 text-sm font-medium truncate",children:[Ie("input",{className:"hidden",type:"radio",name:e,checked:t===a,onChange:e=>{var t;return l((null==(t=e.target)?void 0:t.checked)?a:i)}}),a.label]}),Ie("span",{className:"z-11 absolute bg-white rounded-md transition-transform ease-out duration-200 h-7 w-1/2 "+(s===i?"translate-x-0":"translate-x-full")})]})})},ls=({id:e,title:t,defaultValue:n,options:r,onChange:o})=>Ie("div",{className:"flex flex-col gap-2",children:[Ie(Me,{children:t}),2===r.length?Ie(ss,{name:e,defaultValue:r.find((({value:e})=>e===n)),options:r,onChange:o}):Ie(as,{name:e,defaultValue:r.find((({value:e})=>e===n)),options:r,onChange:o})]});function cs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var us=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n};const ds=cs(us),ps=e=>{var t;return(null==e?void 0:e.nextStepId)??("options"in e?null==(t=null==e?void 0:e.options.find((t=>t.value===e.selectedValue)))?void 0:t.nextStepId:void 0)??void 0},fs=e=>{const t=[];let n=e[0].id;for(;n;){const r=e.find((e=>e.id===n));r?(t.push(r),n=ps(r)):n=void 0}return t},ms=e=>e.reduce(((e,t)=>({...e,[t.id]:t.selectedValue})),{}),hs=e=>{switch(e.template){case"SingleSelect":return Ie(ls,{...e});case"Currency":return Ie(os,{...e});default:return Ie(x,{})}},gs=({questions:e,onChange:t,className:n})=>{const{questions:r,answerQuestion:o,answers:i}=(e=>{const t=_e(e.reduce(((e,t)=>{let n;return"SingleSelect"===t.template&&(n=t.defaultValue,2===t.options.length&&(n=t.options[0].value)),[...e,{...t,selectedValue:n}]}),[])),[n,r]=he(fs(t.current)),[o,i]=he(ms(t.current)),a=xe((e=>{const n=((e,t)=>e.map((e=>{const n=t[e.id]??e.selectedValue;return{...e,selectedValue:n,defaultValue:n}})))(t.current,e);if(ds(t.current,n))return;t.current=n;const o=fs(n);r(o),i(ms(o))}),[]);return{questions:n,answerQuestion:a,answers:o}})(e);return be((()=>t(i)),[i,t]),Ie("div",{className:`flex flex-col gap-4 ${n??""}`,children:r.map((e=>Ie(hs,{...e,onChange:o},e.id)))})},bs=(e,t)=>{var n,r;const o=e.find((e=>e.id===t));return(null==o?void 0:o.nextStepId)??(null==(r=null==(n=null==o?void 0:o.options)?void 0:n.find((e=>e.value===o.defaultValue)))?void 0:r.nextStepId)};var ys=(e=>(e[e.BriefIntroduction=0]="BriefIntroduction",e[e.Questions=1]="Questions",e[e.SubmissionResult=2]="SubmissionResult",e))(ys||{});const _s=(e,t,n)=>{const{activity:r,getActivity:o,progressActivity:i,calculation:a,getCalculation:s}=(e=>{const[t,n]=he(),[r,o]=he();return{activity:t,getActivity:()=>$r.workplaceBackend.getClient().get(`v2.0/activities/${e}/steps`).then((e=>{n(e.data)})),progressActivity:t=>{const n={activityAction:"ProgressStartToComplete",progressEvents:Object.entries(t).map((([e,t])=>({stepId:e,value:t})))};return $r.workplaceBackend.getClient().put(`v1.0/customer/activities/${e}`,n)},calculation:r,getCalculation:async()=>$r.workplaceBackend.getClient().get(`v1.0/activities/${e}/calculate`).then((e=>o(e.data)))}})(e.content.assessmentId),l=we((()=>r?((e,t)=>{let n,r=e;for(;!n;){const e=t.find((e=>e.id==r));"Question"===e.stepType&&(n=e),r=bs(t,e.id)}return[n,...t.filter((e=>e!==n&&"Question"===e.stepType))]})(r.firstStepId,r.steps):void 0),[r]),[c,u]=he(0),d=_e(),p=_e({}),f=xe((e=>{const t=d.current;return t?Object.entries(e).filter((([e,n])=>t[e]!==n)).map((([e,t])=>{var n;return{questionId:e,answer:t,customerAttribute:(null==(n=null==r?void 0:r.steps.find((t=>t.id===e)))?void 0:n.customerAttribute)??""}})):[]}),[null==r?void 0:r.steps]),m=xe((async()=>{switch(c){case 0:await o(),u(1);break;case 1:await i(p.current),await s(),u(2)}}),[c,o,s,i]),h=we((()=>{switch(c){case 0:case 1:return e.content.title;case 2:return null==a?void 0:a.estimates.primary.title;default:return}}),[null==a?void 0:a.estimates.primary.title,c,e.content.title]),g=we((()=>{switch(c){case 0:case 1:return e.content.description;case 2:return null==a?void 0:a.estimates.blurb.text;default:return}}),[null==a?void 0:a.estimates.blurb.text,c,e.content.description]),[b,y]=he(!0);return{title:h,description:g,primaryButtonEnabled:b,primaryButtonText:we((()=>{switch(c){case 0:return t;case 1:return"Submit";case 2:return"Next";default:return}}),[t,c]),secondaryButtonText:we((()=>{switch(c){case 0:return n;case 1:return"Skip for now";default:return}}),[c,n]),currentSlide:c,goToNextSlide:m,questions:l,calculateUpdatedAnswers:f,updateAnswers:e=>{p.current=e,d.current={...d.current,...e},y(!Object.values(e).some((e=>!e)))},submissionResult:a?{imageUrl:a.estimates.blurb.imageUrl}:void 0}},vs=Object.values(ys).filter((e=>!isNaN(Number(e)))),ws=(e,t)=>{const n=vs.indexOf(e),r=vs.indexOf(t);return n<r?`transition duration-300 -translate-x-[${100*(n+1)}%] opacity-0 h-0`:n===r?`transition duration-300 -translate-x-[${100*n}%] opacity-100 h-full`:n>r?`transition duration-300 -translate-x-[${100*(n-1)}%] opacity-0 h-0`:void 0},xs=e=>{var t;return Ie("div",{className:"flex flex-row",children:[Ie("div",{className:"-translate-x-[0%] -translate-x-[100%] -translate-x-[200%]"}),Ie("div",{className:`w-full flex-none ${ws(ys.BriefIntroduction,e.currentSlide)}`,children:Ie(rs,{items:e.offer.content.details})}),Ie("div",{className:`w-full flex-none ${ws(ys.Questions,e.currentSlide)}`,children:e.questions&&Ie(gs,{questions:e.questions,onChange:e.onQuestionsAnswered})}),Ie("div",{className:`w-full flex-none ${ws(ys.SubmissionResult,e.currentSlide)}`,children:Ie("img",{class:"mt-4 max-w-full w-full mx-auto",src:null==(t=e.submissionResult)?void 0:t.imageUrl,loading:"lazy"})})]})},ks=e=>{const{step:{name:t,content:{assessmentId:n}}}=e,{title:r,description:o,currentSlide:i,goToNextSlide:a,primaryButtonEnabled:s,primaryButtonText:l,secondaryButtonText:c,questions:u,calculateUpdatedAnswers:d,updateAnswers:p,submissionResult:f}=_s(e.step,e.acceptButton.text,e.declineButton.text),{trace:m}=Yr();be((()=>{(async()=>{await m({type:"offer-viewed",offerName:e.step.name,data:e.step.metadata})})()}),[]),be((()=>{i===ys.Questions&&m({type:"assessment-viewed",data:{assessmentId:n,assessmentTitle:t}}),i===ys.SubmissionResult&&m({type:"assessment-summary-viewed",data:{assessmentId:n,assessmentTitle:t}})}),[n,t,i,m]);const h=xe((e=>{d(e).forEach((({customerAttribute:e})=>{m({type:"assessment-field-updated",data:{assessmentId:n,assessmentTitle:t,customerAttribute:e}})})),p(e)}),[n,t,d,m,p]),g=xe((async()=>{i===ys.BriefIntroduction&&(await m({type:"offer-accepted",offerName:e.step.name,data:{...e.step.metadata,template:e.step.content.template,assessmentId:n}}),await a()),i===ys.Questions&&(m({type:"assessment-submitted",data:{assessmentId:n,assessmentTitle:t}}),await a()),i===ys.SubmissionResult&&e.onComplete()}),[n,t,i,a,e,m]),b=xe((async()=>{i===ys.BriefIntroduction&&await m({type:"offer-declined",offerName:e.step.name,data:{...e.step.metadata,template:e.step.content.template,assessmentId:n}}),i===ys.Questions&&m({type:"assessment-skipped",data:{assessmentId:n,assessmentTitle:t}}),e.declineButton.onClick()}),[n,t,i,e.declineButton,e.step.content.template,e.step.metadata,e.step.name,m]);return Ie(oa,{children:[Ie(oa.Left,{children:Ie("div",{children:[Ie("div",{class:"flex justify-between md:block text-xs tracking-wide",children:Ie("span",{class:"relative px-3 py-0.5 text-primary-base font-semibold",children:[e.stepNumber.current," OF ",e.stepNumber.total,Ie("span",{class:"absolute left-0 rounded-xl bg-primary-base opacity-10 w-full h-[90%]"})]})}),Ie(Mi,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:Ie("div",{class:"flex flex-col justify-stretch md:max-w-[27.5rem]",children:[Ie("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:r}),o&&Ie("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:o}),Ie("div",{className:"mt-6",children:Ie(xs,{currentSlide:i,offer:e.step,questions:u,onQuestionsAnswered:h,submissionResult:f})}),Ie("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:[l&&Ie(Wt,{class:"",disabled:!s,onClickPromise:g,children:l}),c&&Ie(Wt,{class:"bg-white hover:!bg-gray-100 focus:!ring-gray-200 !border-0 !shadow-none !text-gray-700 !border-gray-300",onClickPromise:b,children:c})]}),Ie("div",{className:`flex flex-col gap-3 mt-6 text-gray-600 text-xs ${ws(ys.BriefIntroduction,i)}`,children:e.step.content.terms.map(((e,t)=>Ie("span",{dangerouslySetInnerHTML:{__html:ns.sanitize(e,{ADD_ATTR:["target"]})}},t)))})]})})]})}),Ie(oa.Right,{children:Ie("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},Ss=e=>{const[t,n]=he(!1);return Ie("div",{class:e.class,children:t?Ie(rs,{items:e.items}):Ie("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",Ie("span",{class:"ml-1",children:Ie(is,{class:"h-4 w-4"})})]})})},Es=e=>{var t;const{trace:n}=Yr();be((()=>{(async()=>{await n({type:"offer-viewed",offerName:e.step.name,data:e.step.metadata})})()}),[e.step.metadata,e.step.name,n]);const r=async t=>{t?await n({type:"offer-accepted",offerName:e.step.name,data:{...e.step.metadata,template:"Eoi"}}):await n({type:"offer-declined",offerName:e.step.name,data:{...e.step.metadata,template:"Eoi"}});return(t?e.primaryButton:e.secondaryButton).onClick()};return Ie(oa,{children:[Ie(oa.Left,{children:Ie("div",{children:[Ie("div",{class:"flex justify-between md:block text-xs tracking-wide",children:Ie("span",{class:"relative px-3 py-0.5 text-primary-base font-semibold",children:[e.stepNumber.current," OF ",e.stepNumber.total,Ie("span",{class:"absolute left-0 rounded-xl bg-primary-base opacity-10 w-full h-[90%]"})]})}),Ie(Mi,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:[Ie("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:e.step.content.mobileImageUrl,loading:"lazy"}),Ie("div",{class:"md:max-w-[27.5rem]",children:[Ie("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:e.step.content.title}),Ie("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&&Ie("div",{class:"mt-6 hidden md:block",children:Ie(rs,{items:e.step.content.details})})]}),e.step.content.details&&Ie(Ss,{class:"mt-6 md:hidden",items:e.step.content.details}),e.children&&e.children,Ie("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:[Ie(Wt,{class:e.primaryButton.class??"",onClickPromise:()=>r(!0),children:e.primaryButton.text??"Next"}),(null==(t=e.secondaryButton)?void 0:t.text)&&Ie(Wt,{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:()=>r(!1),children:e.secondaryButton.text})]}),e.step.content.terms&&Ie("div",{class:"flex flex-col gap-3 mt-6 text-gray-600 text-xs",children:e.step.content.terms.map(((e,t)=>Ie("span",{dangerouslySetInnerHTML:{__html:ns.sanitize(e,{ADD_ATTR:["target"]})}},t)))})]})]})}),Ie(oa.Right,{children:Ie("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},Ns=e=>{const{trace:t}=Yr();be((()=>{(async()=>{"name"in e.step&&await t({type:"offer-viewed",offerName:e.step.name,data:e.step.metadata})})()}),[e.step,t]);return Ie(oa,{children:[Ie(oa.Left,{children:Ie("div",{children:[Ie("div",{class:"flex justify-between md:block text-xs tracking-wide",children:Ie("span",{class:"relative px-3 py-0.5 text-primary-base font-semibold",children:[e.stepNumber.current," OF ",e.stepNumber.total,Ie("span",{class:"absolute left-0 rounded-xl bg-primary-base opacity-10 w-full h-[90%]"})]})}),Ie(Mi,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:[Ie("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:e.step.content.mobileImageUrl,loading:"lazy"}),Ie("div",{class:"md:max-w-[27.5rem]",children:[Ie("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:e.step.content.title}),Ie("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&&Ie("div",{class:"mt-6 hidden md:block",children:Ie(rs,{items:e.step.content.details})})]}),e.step.content.details&&Ie(Ss,{class:"mt-6 md:hidden",items:e.step.content.details}),e.children&&e.children,Ie("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:Ie(Wt,{class:e.primaryButton.class??"",onClickPromise:async()=>{"name"in e.step&&await t({type:"offer-progressed",offerName:e.step.name,data:{...e.step.metadata,template:"Simple"}}),e.primaryButton.onClick()},children:e.primaryButton.text??"Next"})}),e.step.content.terms&&Ie("div",{class:"flex flex-col gap-3 mt-6 text-gray-600 text-xs ",children:e.step.content.terms.map(((e,t)=>Ie("span",{dangerouslySetInnerHTML:{__html:ns.sanitize(e,{ADD_ATTR:["target"]})}},t)))})]})]})}),Ie(oa.Right,{children:Ie("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},Cs=e=>{switch(e.marketPlaceOffer.content.template){case"Eoi":return Ie(Es,{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 Ie(Ns,{stepNumber:e.stepNumber,step:e.marketPlaceOffer,primaryButton:{text:e.marketPlaceOffer.content.acceptButton,onClick:e.onStepComplete}});case"Assessment":return Ie(ks,{stepNumber:e.stepNumber,step:e.marketPlaceOffer,acceptButton:{text:e.marketPlaceOffer.content.acceptButton},declineButton:{text:e.marketPlaceOffer.content.declineButton,onClick:e.onStepComplete},onComplete:e.onStepComplete},e.marketPlaceOffer.name)}},Ts=""+("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),Os=e=>_("svg",{width:36,height:42,viewBox:"0 0 36 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},_("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"})),Rs=e=>_("svg",{width:37,height:40,viewBox:"0 0 37 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},_("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"})),As=""+("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),Ps=()=>{const{trace:e}=Yr();be((()=>{(async()=>{await e({type:"summary-viewed",data:{summaryVariant:"app"}})})()}),[]);const{identity:t}=ke(Fe),n={...Ls(t),imageUrl:Ts,mobileImageUrl:As},r={text:"Continue",class:"mt-6 md:mt-14",onClick:async()=>{await e("completed");const t=document.querySelector(Ms),n=new CustomEvent("step-completion",{bubbles:!0});null==t||t.dispatchEvent(n),await new Promise((e=>setTimeout(e,1e4)))}};return Ie(oa,{children:[Ie(oa.Left,{children:Ie("div",{children:[Ie("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:n.mobileImageUrl,loading:"lazy"}),Ie("div",{class:"md:max-w-[27.5rem]",children:[Ie("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:n.title}),Ie("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:n.description})]}),Ie("div",{class:"mt-6 flex space-x-6",children:[Ie(Os,{}),Ie(Rs,{})]}),Ie(Wt,{class:r.class,onClickPromise:r.onClick,children:r.text})]})}),Ie(oa.Right,{children:Ie("img",{class:"max-w-[30rem] w-full hidden md:block",src:n.imageUrl,loading:"lazy"})})]})},Ls=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.`}}},Is=""+("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),Ds=""+("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),Us=()=>{const{trace:e}=Yr();be((()=>{(async()=>{await e({type:"summary-viewed",data:{summaryVariant:"generic"}})})()}),[]);const{workplace:t}=ke(Fe),n={imageUrl:Is,mobileImageUrl:Ds,title:"You're all set!",description:"PreviouslyLinked"===t.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."},r={text:"Continue",class:"mt-6 md:mt-6",onClick:async()=>{await e("completed");const t=document.querySelector(Ms),n=new CustomEvent("step-completion",{bubbles:!0});null==t||t.dispatchEvent(n),await new Promise((e=>setTimeout(e,1e4)))}};return Ie(oa,{children:[Ie(oa.Left,{children:Ie("div",{children:[Ie("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:n.mobileImageUrl,loading:"lazy"}),Ie("div",{class:"md:max-w-[27.5rem]",children:[Ie("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:n.title}),Ie("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:n.description})]}),Ie("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:Ie(Wt,{class:r.class,onClickPromise:r.onClick,children:r.text})})]})}),Ie(oa.Right,{children:Ie("img",{class:"max-w-[30rem] w-full hidden md:block",src:n.imageUrl,loading:"lazy"})})]})},Fs=()=>{const{offers:e,isComplete:t,isAppEnabled:n,identity:r,workplace:o,featureFlags:i,updateIdentity:a}=ke(Fe),{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]=he(a[0]),c=we((()=>{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=xe((()=>{a(!0)}),[a]),u=xe((()=>{a(!1)}),[a]);switch(s.screenName){case"Introduction":return Ie(ra,{employerName:o.employerName,onStepComplete:l});case"FlareAppIdentity":return Ie(ta,{onSuccess:c,onDecline:u});case"MarketplaceOffer":return Ie(Cs,{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 Ie(Ps,{});case"SummaryGeneric":return Ie(Us,{});default:return Ie(x,{})}},js=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??"",verifiedPhoneNumber:e.identity.verifiedPhoneNumber??"",registrationStatus:n},o=e.workplace.isLinkedWithIdentity?"PreviouslyLinked":"Unlinked",i={employerName:e.workplace.employerName,linkingStatus:o};return{...Ue,...e,isAppEnabled:t,identity:r,workplace:i}},Ms="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=K,o.prototype.attributeChangedCallback=J,o.prototype.disconnectedCallback=X,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]=he(),[r,o]=he(0);be((()=>Xt((()=>{i().then((()=>o(r+1)))}))),[r]),be((()=>{i()}),[]);const i=async()=>{const t={backendUrl:e["backend-url"],accessToken:e["access-token"],workflowsInstanceId:e["workflows-instance-id"]};qr(t.backendUrl,t.accessToken,t.workflowsInstanceId);const r=await Wr.backend.init();n(js(r))},a=xe((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 Ie(x,{children:[Ie("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}.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}.mb-2{margin-bottom:.5rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.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}.table{display:table}.hidden{display:none}.h-0{height:0}.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%}.flex-none{flex:none}.shrink-0{flex-shrink:0}.-translate-x-\\[0\\%\\]{--tw-translate-x:-0%}.-translate-x-\\[0\\%\\],.-translate-x-\\[100\\%\\]{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-\\[100\\%\\]{--tw-translate-x:-100%}.-translate-x-\\[200\\%\\]{--tw-translate-x:-200%}.-translate-x-\\[200\\%\\],.-translate-y-6{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-y-6{--tw-translate-y:-1.5rem}.translate-x-0{--tw-translate-x:0px}.translate-x-0,.translate-x-\\[1\\.25rem\\]{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-\\[1\\.25rem\\]{--tw-translate-x:1.25rem}.translate-x-full{--tw-translate-x:100%}.translate-x-full,.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))}.translate-y-0{--tw-translate-y:0px}.transform{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-row{flex-direction:row}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-stretch{justify-content:stretch}.gap-0{gap:0}.gap-0\\.5{gap:.125rem}.gap-1{gap:.25rem}.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}.pl-7{padding-left:1.75rem}.pr-10{padding-right:2.5rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.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-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.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-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity))}.text-primary-base{color:var(--fl-color-primary)}.text-red-900{--tw-text-opacity:1;color:rgb(127 29 29/var(--tw-text-opacity))}.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-1{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-1{--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(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.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);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-inset{--tw-ring-inset:inset}.ring-gray-200{--tw-ring-opacity:1;--tw-ring-color:rgb(229 231 235/var(--tw-ring-opacity))}.ring-red-300{--tw-ring-opacity:1;--tw-ring-color:rgb(252 165 165/var(--tw-ring-opacity))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.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)}.placeholder\\:text-red-300::-moz-placeholder{--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity))}.placeholder\\:text-red-300::placeholder{--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity))}.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-red-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(239 68 68/var(--tw-ring-opacity))}.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()}),Ie("div",{class:"font-inter pt-6 pb-8 md:py-24 px-px",children:t?Ie(Fe.Provider,{value:{...t,updateIdentity:a},children:Ie(Fs,{})}):Ie("div",{class:"flex justify-center",children:Ie("span",{class:"animate-spin",children:Ie(De,{size:"lg"})})})},r)]})}),Ms,[],{shadow:!0})}));
|