@flarehr/apollo-benefits-onboarding 0.1.2390 → 0.1.2391

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
- var __defProp=Object.defineProperty,__typeError=e=>{throw TypeError(e)},__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),__accessCheck=(e,t,n)=>t.has(e)||__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)=>t.has(e)?__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={},g=[],y=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,b=Array.isArray;function _(e,t){for(var n in t)e[n]=t[n];return e}function w(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,n){var r,o,i,a={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?s.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return x(e,a,r,o,null)}function x(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?++c:o,__i:-1,__u:0};return null==o&&null!=l.vnode&&l.vnode(i),i}function k(){return{current:null}}function E(e){return e.children}function S(e,t){this.props=e,this.context=t}function T(e,t){if(null==t)return e.__?T(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?T(e):null}function C(e,t,n){var r,o=e.__v,i=o.__e,a=e.__P;if(a)return(r=_({},o)).__v=o.__v+1,l.vnode&&l.vnode(r),M(a,r,o,e.__n,void 0!==a.ownerSVGElement,32&o.__u?[i]:null,t,null==i?T(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 A(e){(!e.__d&&(e.__d=!0)&&u.push(e)&&!O.__r++||d!==l.debounceRendering)&&((d=l.debounceRendering)||p)(O)}function O(){var e,t,n,r=[],o=[];for(u.sort(f);e=u.shift();)e.__d&&(n=u.length,t=C(e,r,o)||t,0===n||u.length>n?(B(r,t,o),o.length=r.length=0,t=void 0,u.sort(f)):t&&l.__c&&l.__c(t,g));t&&B(r,t,o),O.__r=0}function R(e,t,n,r,o,i,a,s,l,c,u){var d,p,f,m,y,_=r&&r.__k||g,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?x(null,o,null,null,o):b(o)?x(E,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?x(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,s=I(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=T(i)),z(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=T(i)),z(i,i))}(n,t,_),l=n.__d,d=0;d<w;d++)null!=(f=n.__k[d])&&"boolean"!=typeof f&&"function"!=typeof f&&(p=-1===f.__i?h:_[f.__i]||h,f.__i=d,M(e,f,p,o,i,a,s,l,c,u),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&H(p.ref,null,f),u.push(f.ref,f.__c||m,f)),null==y&&null!=m&&(y=m),65536&f.__u||p.__k===f.__k?l=P(f,l,e):"function"==typeof f.type&&void 0!==f.__d?l=f.__d:m&&(l=m.nextSibling),f.__d=void 0,f.__u&=-196609);n.__d=l,n.__e=y}function P(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=P(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 L(e,t){return t=t||[],null==e||"boolean"==typeof e||(b(e)?e.some((function(e){L(e,t)})):t.push(e)),t}function I(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 U(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||y.test(t)?n:n+"px"}function F(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||U(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||U(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?j:D,i)):e.removeEventListener(t,i?j: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(l.event?l.event(e):e)}}function j(e){if(this.l)return this.l[e.type+!0](l.event?l.event(e):e)}function M(e,t,n,r,o,i,a,c,u,d){var p,f,m,g,y,v,x,k,C,N,A,O,P,L,I,U=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(u=!!(32&n.__u),i=[c=t.__e=n.__e]),(p=l.__b)&&p(t);e:if("function"==typeof U)try{if(k=t.props,C=(p=U.contextType)&&r[p.__c],N=p?C?C.props.value:p.__:r,n.__c?x=(f=t.__c=n.__c).__=f.__E:("prototype"in U&&U.prototype.render?t.__c=f=new U(k,N):(t.__c=f=new S(k,N),f.constructor=U,f.render=W),C&&C.sub(f),f.props=k,f.state||(f.state={}),f.context=N,f.__n=r,m=f.__d=!0,f.__h=[],f._sb=[]),null==f.__s&&(f.__s=f.state),null!=U.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=_({},f.__s)),_(f.__s,U.getDerivedStateFromProps(k,f.__s))),g=f.props,y=f.state,f.__v=t,m)null==U.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==U.getDerivedStateFromProps&&k!==g&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(k,N),!f.__e&&(null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(k,f.__s,N)||t.__v===n.__v)){for(t.__v!==n.__v&&(f.props=k,f.state=f.__s,f.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),A=0;A<f._sb.length;A++)f.__h.push(f._sb[A]);f._sb=[],f.__h.length&&a.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(k,f.__s,N),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(g,y,v)}))}if(f.context=N,f.props=k,f.__P=e,f.__e=!1,O=l.__r,P=0,"prototype"in U&&U.prototype.render){for(f.state=f.__s,f.__d=!1,O&&O(t),p=f.render(f.props,f.state,f.context),L=0;L<f._sb.length;L++)f.__h.push(f._sb[L]);f._sb=[]}else do{f.__d=!1,O&&O(t),p=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++P<25);f.state=f.__s,null!=f.getChildContext&&(r=_(_({},r),f.getChildContext())),m||null==f.getSnapshotBeforeUpdate||(v=f.getSnapshotBeforeUpdate(g,y)),R(e,b(I=null!=p&&p.type===E&&null==p.key?p.props.children:p)?I:[I],t,n,r,o,i,a,c,u,d),f.base=t.__e,t.__u&=-161,f.__h.length&&a.push(f),x&&(f.__E=f.__=null)}catch(D){t.__v=null,u||null!=i?(t.__e=c,t.__u|=u?160:32,i[i.indexOf(c)]=null):(t.__e=n.__e,t.__k=n.__k),l.__e(D,t,n)}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,o,i,a,l,c){var u,d,p,f,m,g,y,_=n.props,v=t.props,x=t.type;if("svg"===x&&(o=!0),null!=i)for(u=0;u<i.length;u++)if((m=i[u])&&"setAttribute"in m==!!x&&(x?m.localName===x:3===m.nodeType)){e=m,i[u]=null;break}if(null==e){if(null===x)return document.createTextNode(v);e=o?document.createElementNS("http://www.w3.org/2000/svg",x):document.createElement(x,v.is&&v),i=null,l=!1}if(null===x)_===v||l&&e.data===v||(e.data=v);else{if(i=i&&s.call(e.childNodes),_=n.props||h,!l&&null!=i)for(_={},u=0;u<e.attributes.length;u++)_[(m=e.attributes[u]).name]=m.value;for(u in _)m=_[u],"children"==u||("dangerouslySetInnerHTML"==u?p=m:"key"===u||u in v||F(e,u,null,m,o));for(u in v)m=v[u],"children"==u?f=m:"dangerouslySetInnerHTML"==u?d=m:"value"==u?g=m:"checked"==u?y=m:"key"===u||l&&"function"!=typeof m||_[u]===m||F(e,u,m,_[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=""),R(e,b(f)?f:[f],t,n,r,o&&"foreignObject"!==x,i,a,i?i[0]:n.__k&&T(n,0),l,c),null!=i)for(u=i.length;u--;)null!=i[u]&&w(i[u]);l||(u="value",void 0!==g&&(g!==e[u]||"progress"===x&&!g||"option"===x&&g!==_[u])&&F(e,u,g,_[u],!1),u="checked",void 0!==y&&y!==e[u]&&F(e,u,y,_[u],!1))}return e}(n.__e,t,n,r,o,i,a,u,d);(p=l.diffed)&&p(t)}function B(e,t,n){for(var r=0;r<n.length;r++)H(n[r],n[++r],n[++r]);l.__c&&l.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(n){l.__e(n,t.__v)}}))}function H(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(r){l.__e(r,n)}}function z(e,t,n){var r,o;if(l.unmount&&l.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||H(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){l.__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]&&z(r[o],t,n||"function"!=typeof e.type);n||null==e.__e||w(e.__e),e.__=e.__e=e.__d=void 0}function W(e,t,n){return this.constructor(e,n)}function q(e,t,n){var r,o,i,a;l.__&&l.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,i=[],a=[],M(t,e=(!r&&n||t).__k=v(E,null,[e]),o||h,h,void 0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?s.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,a),e.__d=void 0,B(i,e,a)}function V(e,t){q(e,t,V)}function $(e,t,n){var r,o,i,a,l=_({},e.props);for(i in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)"key"==i?r=t[i]:"ref"==i?o=t[i]:l[i]=void 0===t[i]&&void 0!==a?a[i]:t[i];return arguments.length>2&&(l.children=arguments.length>3?s.call(arguments,2):n),x(e.type,l,r||e.key,o||e.ref,null)}function G(e,t){var n={__c:t="__cC"+m++,__: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,A(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 Y(){return(Y=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)}s=g.slice,l={__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}},c=0,S.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=_({},this.state),"function"==typeof e&&(e=e(_({},n),this.props)),e&&_(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),A(this))},S.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),A(this))},S.prototype.render=E,u=[],p="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f=function(e,t){return e.__v.__b-t.__v.__b},O.__r=0,m=0;var J=["context","children"];function K(e){return this.getChildContext=function(){return e.context},$(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,J))}function X(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=v(K,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[Z(a[i].name)]=a[i].value);for(i=s.length;i--;){var l=e(s[i],null),c=s[i].slot;c?o[c]=v(te,{name:c},l):r[i]=l}var u=n?v(te,null,r):r;return v(n||t.nodeName.toLowerCase(),o,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?V:q)(this._vdom,this._root)}function Z(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function Q(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[Z(e)]=n,this._vdom=$(this._vdom,r),q(this._vdom,this._root)}}function ee(){q(this._vdom=null,this._root)}function te(e,t){var n=this;return v("slot",Y({},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 ne,re,oe,ie,ae=0,se=[],le=[],ce=l,ue=ce.__b,de=ce.__r,pe=ce.diffed,fe=ce.__c,me=ce.unmount,he=ce.__;function ge(e,t){ce.__h&&ce.__h(re,e,ae||t),ae=0;var n=re.__H||(re.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:le}),n.__[e]}function ye(e){return ae=1,be(Ie,e)}function be(e,t,n){var r=ge(ne++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Ie(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=re,!re.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))};re.u=!0;var i=re.shouldComponentUpdate,a=re.componentWillUpdate;re.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)},re.shouldComponentUpdate=o}return r.__N||r.__}function _e(e,t){var n=ge(ne++,3);!ce.__s&&Le(n.__H,t)&&(n.__=e,n.i=t,re.__H.__h.push(n))}function we(e,t){var n=ge(ne++,4);!ce.__s&&Le(n.__H,t)&&(n.__=e,n.i=t,re.__h.push(n))}function ve(e){return ae=5,ke((function(){return{current:e}}),[])}function xe(e,t,n){ae=6,we((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 ke(e,t){var n=ge(ne++,7);return Le(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Ee(e,t){return ae=8,ke((function(){return e}),t)}function Se(e){var t=re.context[e.__c],n=ge(ne++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(re)),t.props.value):e.__}function Te(e,t){ce.useDebugValue&&ce.useDebugValue(t?t(e):e)}function Ce(){var e=ge(ne++,11);if(!e.__){for(var t=re.__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=se.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Re),e.__H.__h.forEach(Pe),e.__H.__h=[]}catch(dn){e.__H.__h=[],ce.__e(dn,e.__v)}}ce.__b=function(e){re=null,ue&&ue(e)},ce.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),he&&he(e,t)},ce.__r=function(e){de&&de(e),ne=0;var t=(re=e.__c).__H;t&&(oe===re?(t.__h=[],re.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=le,e.__N=e.i=void 0}))):(t.__h.forEach(Re),t.__h.forEach(Pe),t.__h=[],ne=0)),oe=re},ce.diffed=function(e){pe&&pe(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==se.push(t)&&ie===ce.requestAnimationFrame||((ie=ce.requestAnimationFrame)||Oe)(Ne)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==le&&(e.__=e.__V),e.i=void 0,e.__V=le}))),oe=re=null},ce.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Re),e.__h=e.__h.filter((function(e){return!e.__||Pe(e)}))}catch(Wn){t.some((function(e){e.__h&&(e.__h=[])})),t=[],ce.__e(Wn,e.__v)}})),fe&&fe(e,t)},ce.unmount=function(e){me&&me(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Re(e)}catch(n){t=n}})),n.__H=void 0,t&&ce.__e(t,n.__v))};var Ae="function"==typeof requestAnimationFrame;function Oe(e){var t,n=function(){clearTimeout(r),Ae&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Ae&&(t=requestAnimationFrame(n))}function Re(e){var t=re,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),re=t}function Pe(e){var t=re;e.__c=e.__(),re=t}function Le(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Ie(e,t){return"function"==typeof t?t(e):t}var Ue=0;function Fe(e,t,n,r,o,i){var a,s,c={};for(s in t)"ref"==s?a=t[s]:c[s]=t[s];var u={type:e,props:c,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--Ue,__i:-1,__u:0,__source:o,__self:i};if("function"==typeof e&&(a=e.defaultProps))for(s in a)void 0===c[s]&&(c[s]=a[s]);return l.vnode&&l.vnode(u),u}const De=e=>Fe("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:[Fe("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"}),Fe("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"})]}),je=[],Me={offers:[],isComplete:!1,isAppEnabled:!1,identity:{email:"",phoneNumber:"",verifiedPhoneNumber:"",registrationStatus:"Unregistered"},workplace:{employerName:"",linkingStatus:"Unlinked"},featureFlags:{marketplaceScheme:"promotion",marketplaceSubNavigation:!1},updateIdentity:e=>({}),offersProgress:{get:()=>je,update:(e,t)=>{const n=je.findIndex((t=>t.offerName===e));-1!==n&&je.slice(n,1),je.push({offerName:e,isEnrolled:t})},hasEnrolled:()=>je.some((e=>"Perks"!==e.offerName&&e.isEnrolled))}},Be=G(Me),He='/*! 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-50{z-index:50}.m-0{margin:0}.m-0\\.5{margin:.125rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.mr-10{margin-right:2.5rem}.mr-3{margin-right:.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}.line-clamp-2{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.hidden{display:none}.h-10{height:2.5rem}.h-12{height:3rem}.h-16{height:4rem}.h-4{height:1rem}.h-40{height:10rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-\\[90\\%\\]{height:90%}.h-full{height:100%}.max-h-10{max-height:2.5rem}.max-h-12{max-height:3rem}.max-h-6{max-height:1.5rem}.max-h-8{max-height:2rem}.min-h-12{min-height:3rem}.min-h-6{min-height:1.5rem}.min-h-8{min-height:2rem}.w-10{width:2.5rem}.w-16{width:4rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-full{width:100%}.min-w-10{min-width:2.5rem}.min-w-6{min-width:1.5rem}.min-w-8{min-width:2rem}.max-w-10{max-width:2.5rem}.max-w-20{max-width:5rem}.max-w-6{max-width:1.5rem}.max-w-8{max-width:2rem}.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-1{flex:1 1 0%}.-translate-y-6{--tw-translate-y:-1.5rem}.-translate-y-6,.translate-y-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) 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}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-auto{cursor:auto}.flex-col{flex-direction:column}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.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)))}.self-start{align-self:flex-start}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.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-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-primary-base{border-color:var(--fl-color-primary)}.border-transparent{border-color:transparent}.bg-primary-base{background-color:var(--fl-color-primary)}.bg-teal-50{--tw-bg-opacity:1;background-color:rgb(240 253 250/var(--tw-bg-opacity))}.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-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-6{padding-left:1.5rem;padding-right:1.5rem}.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-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.pb-6{padding-bottom:1.5rem}.pb-8{padding-bottom:2rem}.pl-3{padding-left:.75rem}.pr-3{padding-right:.75rem}.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}.leading-tight{line-height:1.25}.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-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/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-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-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)}.delay-300{transition-delay:.3s}.duration-300{transition-duration:.3s}.duration-700{transition-duration:.7s}.duration-\\[600ms\\]{transition-duration:.6s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:left-4:after{content:var(--tw-content);left:1rem}.after\\:top-8:after{content:var(--tw-content);top:2rem}.after\\:inline-block:after{content:var(--tw-content);display:inline-block}.after\\:h-\\[calc\\(100\\%-theme\\(height\\.8\\)\\)\\]:after{content:var(--tw-content);height:calc(100% - 2rem)}.after\\:w-0:after{content:var(--tw-content);width:0}.after\\:w-0\\.5:after{content:var(--tw-content);width:.125rem}.after\\:bg-gray-300:after{content:var(--tw-content);--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.after\\:bg-primary-base:after{background-color:var(--fl-color-primary);content:var(--tw-content)}.after\\:content-\\[\\\'\\\'\\]:after{--tw-content:"";content:var(--tw-content)}.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\\:ring-gray-500:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(107 114 128/var(--tw-ring-opacity))}.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\\:mb-4{margin-bottom:1rem}.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}}@media (min-width:1024px){.lg\\:-m-8{margin:-2rem}.lg\\:w-3\\/4{width:75%}}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:absolute:not(:last-child):after{position:absolute}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:left-10:not(:last-child):after{left:2.5rem}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:top-3:not(:last-child):after{top:.75rem}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:w-10:not(:last-child):after{width:2.5rem}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:border-b-2:not(:last-child):after{border-bottom-width:2px}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:border-solid:not(:last-child):after{border-style:solid}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:border-gray-200:not(:last-child):after{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:content-\\[\\"\\"\\]:not(:last-child):after{--tw-content:"";content:var(--tw-content)}';const ze=e=>{const[t,n]=ye(!1);return Fe("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:[Fe("div",{class:""+(t?"invisible":""),children:e.children}),t&&Fe("div",{class:"absolute animate-spin",children:Fe(De,{theme:"light"})})]})},We=({className:e,children:t})=>Fe("h1",{className:`text-2xl md:text-3xl font-bold ${e??""}`,children:t}),qe=({className:e,children:t})=>Fe("h3",{class:`text-base md:text-lg text-gray-600 ${e??""}`,children:t});function Ve(e,t){for(var n in t)e[n]=t[n];return e}function $e(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 Ge(e,t){this.props=e,this.context=t}function Ye(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:$e(this.props,e)}function r(t){return this.shouldComponentUpdate=n,v(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Ge.prototype=new S).isPureReactComponent=!0,Ge.prototype.shouldComponentUpdate=function(e,t){return $e(this.props,e)||$e(this.state,t)};var Je=l.__b;l.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Je&&Je(e)};var Ke="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Xe(e){function t(t){var n=Ve({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=Ke,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Ze=function(e,t){return null==e?null:L(L(e).map(t))},Qe={map:Ze,forEach:Ze,count:function(e){return e?L(e).length:0},only:function(e){var t=L(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:L},et=l.__e;l.__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);et(e,t,n,r)};var tt=l.unmount;function nt(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=Ve({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return nt(e,t,n)}))),e}function rt(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return rt(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 ot(){this.__u=0,this.t=null,this.__b=null}function it(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function at(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 v(n,o)}return o.displayName="Lazy",o.__f=!0,o}function st(){this.u=null,this.o=null}l.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),tt&&tt(e)},(ot.prototype=new S).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=it(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]=rt(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)},ot.prototype.componentWillUnmount=function(){this.t=[]},ot.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]=nt(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&v(E,null,e.fallback);return o&&(o.__u&=-33),[v(E,null,t.__a?null:e.children),o]};var lt=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 ct(e){return this.getChildContext=function(){return e.context},e.children}function ut(e){var t=this,n=e.i;t.componentWillUnmount=function(){q(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)}}),q(v(ct,{context:t.context},e.__v),t.l)}function dt(e,t){var n=v(ut,{__v:e,i:t});return n.containerInfo=t,n}(st.prototype=new S).__a=function(e){var t=this,n=it(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),lt(t,e,r)):o()};n?n(i):i()}},st.prototype.render=function(e){this.u=null,this.o=new Map;var t=L(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},st.prototype.componentDidUpdate=st.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){lt(e,n,t)}))};var pt="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ft=/^(?: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]/,mt=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ht=/[A-Z0-9]/g,gt="undefined"!=typeof document,yt=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function bt(e,t,n){return null==t.__k&&(t.textContent=""),q(e,t),"function"==typeof n&&n(),e?e.__c:null}function _t(e,t,n){return V(e,t),"function"==typeof n&&n(),e?e.__c:null}S.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(S.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var wt=l.event;function vt(){}function xt(){return this.cancelBubble}function kt(){return this.defaultPrevented}l.event=function(e){return wt&&(e=wt(e)),e.persist=vt,e.isPropagationStopped=xt,e.isDefaultPrevented=kt,e.nativeEvent=e};var Et,St={enumerable:!1,configurable:!0,get:function(){return this.class}},Tt=l.vnode;l.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||gt&&"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||yt(t.type)?"onfocus"===a?o="onfocusin":"onblur"===a?o="onfocusout":mt.test(o)?o=a:-1===n.indexOf("-")&&ft.test(o)?o=o.replace(ht,"-$&").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=L(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=L(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",St)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=pt,Tt&&Tt(e)};var Ct=l.__r;l.__r=function(e){Ct&&Ct(e),Et=e.__c};var Nt=l.diffed;l.diffed=function(e){Nt&&Nt(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),Et=null};var At={ReactCurrentDispatcher:{current:{readContext:function(e){return Et.__n[e.__c].props.value}}}};function Ot(e){return v.bind(null,e)}function Rt(e){return!!e&&e.$$typeof===pt}function Pt(e){return Rt(e)&&e.type===E}function Lt(e){return Rt(e)?$.apply(null,arguments):e}function It(e){return!!e.__k&&(q(null,e),!0)}function Ut(e){return e&&(e.base||1===e.nodeType&&e)||null}var Ft=function(e,t){return e(t)},Dt=function(e,t){return e(t)},jt=E;function Mt(e){e()}function Bt(e){return e}function Ht(){return[!1,Mt]}var zt=we,Wt=Rt;function qt(e,t){var n=t(),r=ye({h:{__:n,v:t}}),o=r[0].h,i=r[1];return we((function(){o.__=n,o.v=t,Vt(o)&&i({h:o})}),[e,n,t]),_e((function(){return Vt(o)&&i({h:o}),e((function(){Vt(o)&&i({h:o})}))}),[e]),n}function Vt(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 $t={useState:ye,useId:Ce,useReducer:be,useEffect:_e,useLayoutEffect:we,useInsertionEffect:zt,useTransition:Ht,useDeferredValue:Bt,useSyncExternalStore:qt,startTransition:Mt,useRef:ve,useImperativeHandle:xe,useMemo:ke,useCallback:Ee,useContext:Se,useDebugValue:Te,version:"17.0.2",Children:Qe,render:bt,hydrate:_t,unmountComponentAtNode:It,createPortal:dt,createElement:v,createContext:G,createFactory:Ot,cloneElement:Lt,createRef:k,Fragment:E,isValidElement:Rt,isElement:Wt,isFragment:Pt,findDOMNode:Ut,Component:S,PureComponent:Ge,memo:Ye,forwardRef:Xe,flushSync:Dt,unstable_batchedUpdates:Ft,StrictMode:jt,Suspense:ot,SuspenseList:st,lazy:at,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:At};const Gt=Object.freeze(Object.defineProperty({__proto__:null,Children:Qe,Component:S,Fragment:E,PureComponent:Ge,StrictMode:jt,Suspense:ot,SuspenseList:st,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:At,cloneElement:Lt,createContext:G,createElement:v,createFactory:Ot,createPortal:dt,createRef:k,default:$t,findDOMNode:Ut,flushSync:Dt,forwardRef:Xe,hydrate:_t,isElement:Wt,isFragment:Pt,isValidElement:Rt,lazy:at,memo:Ye,render:bt,startTransition:Mt,unmountComponentAtNode:It,unstable_batchedUpdates:Ft,useCallback:Ee,useContext:Se,useDebugValue:Te,useDeferredValue:Bt,useEffect:_e,useErrorBoundary:function(e){var t=ge(ne++,10),n=ye();return t.__=e,re.componentDidCatch||(re.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:Ce,useImperativeHandle:xe,useInsertionEffect:zt,useLayoutEffect:we,useMemo:ke,useReducer:be,useRef:ve,useState:ye,useSyncExternalStore:qt,useTransition:Ht,version:"17.0.2"},Symbol.toStringTag,{value:"Module"})),Yt=e=>v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...e},v("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"})),Jt=({title:e,steps:t,...n})=>{const r=t.length,o=t.filter((e=>e.completed)).length;return Fe("div",{...n,children:[Fe("h1",{className:"text-lg font-semibold mb-4",children:e}),Fe("ol",{children:t.map(((e,t)=>{const n=o===t;return Fe("li",{className:"relative flex-1 pb-6 "+(t!==r-1?`after:content-[''] after:w-0.5 after:h-[calc(100%-theme(height.8))] ${e.completed?"after:bg-primary-base":"after:bg-gray-300"} after:inline-block after:absolute after:top-8 after:left-4`:""),children:Fe("div",{className:"flex font-medium w-full",children:[Fe("span",{className:`w-8 min-w-8 max-w-8 h-8 min-h-8 max-h-8 ${e.completed?"bg-primary-base":"bg-white"} border-2 ${e.completed||n?"border-primary-base":"border-gray-300"} rounded-full flex justify-center items-center mr-3 text-sm ${n?"text-primary-base":"text-gray-500"}`,children:e.completed?Fe(Yt,{className:"w-4 h-4 text-white"}):t+1}),Fe("div",{children:[Fe("h4",{className:"text-sm text-left font-semibold "+(e.completed||n?"text-primary-base":"text-gray-600"),children:e.title}),Fe("p",{className:"text-sm text-left font-normal",children:e.description})]})]})},e.title)}))})]})};var Kt=Object.defineProperty,Xt=(e,t,n)=>(((e,t,n)=>{t in e?Kt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let Zt=new class{constructor(){Xt(this,"current",this.detect()),Xt(this,"handoffState","pending"),Xt(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}},Qt=(e,t)=>{Zt.isServer?_e(e,t):we(e,t)};function en(e){let t=ve(e);return Qt((()=>{t.current=e}),[e]),t}let tn=function(e){let t=en(e);return $t.useCallback(((...e)=>t.current(...e)),[t])};function nn(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function rn(){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 nn((()=>{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=rn();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 on(){let[e]=ye(rn);return _e((()=>()=>e.dispose()),[e]),e}function an(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in Gt&&Gt.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=ye(Zt.isHandoffComplete);return t&&!1===Zt.isHandoffComplete&&n(!1),_e((()=>{!0!==t&&n(!0)}),[t]),_e((()=>Zt.handoff()),[]),!e&&t}var sn;let ln=null!=(sn=$t.useId)?sn:function(){let e=an(),[t,n]=$t.useState(e?()=>Zt.nextId():null);return Qt((()=>{null===t&&n(Zt.nextId())}),[t]),null!=t?""+t:void 0};function cn(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,cn),r}let un=["[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 dn,pn,fn,mn=((fn=mn||{})[fn.First=1]="First",fn[fn.Previous=2]="Previous",fn[fn.Next=4]="Next",fn[fn.Last=8]="Last",fn[fn.WrapAround=16]="WrapAround",fn[fn.NoScroll=32]="NoScroll",fn),hn=((pn=hn||{})[pn.Error=0]="Error",pn[pn.Overflow=1]="Overflow",pn[pn.Success=2]="Success",pn[pn.Underflow=3]="Underflow",pn),gn=((dn=gn||{})[dn.Previous=-1]="Previous",dn[dn.Next=1]="Next",dn);var yn=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(yn||{}),bn=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(bn||{});"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 _n=["textarea","input"].join(",");function wn(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}))}function vn(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?n?wn(e):e:function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(un)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}(e);o.length>0&&a.length>1&&(a=a.filter((e=>!o.includes(e)))),r=null!=r?r:i.activeElement;let s,l=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,a.indexOf(r))-1;if(4&t)return Math.max(0,a.indexOf(r))+1;if(8&t)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=32&t?{preventScroll:!0}:{},d=0,p=a.length;do{if(d>=p||d+p<=0)return 0;let e=c+d;if(16&t)e=(e+p)%p;else{if(e<0)return 3;if(e>=p)return 1}s=a[e],null==s||s.focus(u),d+=l}while(s!==i.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,_n))&&n}(s)&&s.select(),2}function xn(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 kn(e,t){let[n,r]=ye((()=>xn(e)));return Qt((()=>{r(xn(e))}),[e.type,e.as]),Qt((()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")}),[n,t]),n}let En=Symbol();function Sn(...e){let t=ve(e);_e((()=>{t.current=e}),[e]);let n=tn((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[En])))?void 0:n}function Tn(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}var Cn,Nn=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Nn||{}),An=((Cn=An||{})[Cn.Unmount=0]="Unmount",Cn[Cn.Hidden=1]="Hidden",Cn);function On({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a,mergeRefs:s}){s=null!=s?s:Pn;let l=Ln(t,e);if(i)return Rn(l,n,r,a,s);let c=null!=o?o:0;if(2&c){let{static:e=!1,...t}=l;if(e)return Rn(t,n,r,a,s)}if(1&c){let{unmount:e=!0,...t}=l;return cn(e?0:1,{0:()=>null,1:()=>Rn({...t,hidden:!0,style:{display:"none"}},n,r,a,s)})}return Rn(l,n,r,a,s)}function Rn(e,t={},n,r,o){let{as:i=n,children:a,refName:s="ref",...l}=Fn(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===E&&Object.keys(Un(l)).length>0){if(!Rt(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)=>Tn(null==e?void 0:e.className(...t),l.className):Tn(null==e?void 0:e.className,l.className),n=t?{className:t}:{};return Lt(u,Object.assign({},Ln(u.props,Un(Fn(l,["ref"]))),d,c,{ref:o(u.ref,c.ref)},n))}return v(i,Object.assign({},Fn(l,["ref"]),i!==E&&c,i!==E&&d),u)}function Pn(...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 Ln(...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 In(e){var t;return Object.assign(Xe(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Un(e){let t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}function Fn(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}var Dn=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Dn||{});let jn=In((function(e,t){var n;let{features:r=1,...o}=e;return On({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"})})),Mn=G(null);Mn.displayName="OpenClosedContext";var Bn=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Bn||{});function Hn(){return Se(Mn)}function zn({value:e,children:t}){return $t.createElement(Mn.Provider,{value:e},t)}var Wn,qn=((Wn=qn||{}).Space=" ",Wn.Enter="Enter",Wn.Escape="Escape",Wn.Backspace="Backspace",Wn.Delete="Delete",Wn.ArrowLeft="ArrowLeft",Wn.ArrowUp="ArrowUp",Wn.ArrowRight="ArrowRight",Wn.ArrowDown="ArrowDown",Wn.Home="Home",Wn.End="End",Wn.PageUp="PageUp",Wn.PageDown="PageDown",Wn.Tab="Tab",Wn);function Vn(){let e=ve(!1);return Qt((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function $n({onFocus:e}){let[t,n]=ye(!0),r=Vn();return t?$t.createElement(jn,{as:"button",type:"button",features:Dn.Focusable,onFocus:t=>{t.preventDefault();let o,i=50;o=requestAnimationFrame((function t(){if(i--<=0)o&&cancelAnimationFrame(o);else if(e()){if(cancelAnimationFrame(o),!r.current)return;n(!1)}else o=requestAnimationFrame(t)}))}}):null}const Gn=G(null);function Yn({children:e}){let t=ve({groups:new Map,get(e,t){var n;let r=this.groups.get(e);r||(r=new Map,this.groups.set(e,r));let o=null!=(n=r.get(t))?n:0;return r.set(t,o+1),[Array.from(r.keys()).indexOf(t),function(){let e=r.get(t);e>1?r.set(t,e-1):r.delete(t)}]}});return v(Gn.Provider,{value:t},e)}function Jn(e){let t=Se(Gn);if(!t)throw new Error("You must wrap your component in a <StableCollection>");let n=function(){var e,t,n;let r=null!=(n=null==(t=null==(e=At)?void 0:e.ReactCurrentOwner)?void 0:t.current)?n:null;if(!r)return Symbol();let o=[],i=r;for(;i;)o.push(i.index),i=i.return;return"$."+o.join(".")}(),[r,o]=t.current.get(e,n);return _e((()=>o),[]),r}var Kn=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Kn||{}),Xn=(e=>(e[e.Less=-1]="Less",e[e.Equal=0]="Equal",e[e.Greater=1]="Greater",e))(Xn||{}),Zn=(e=>(e[e.SetSelectedIndex=0]="SetSelectedIndex",e[e.RegisterTab=1]="RegisterTab",e[e.UnregisterTab=2]="UnregisterTab",e[e.RegisterPanel=3]="RegisterPanel",e[e.UnregisterPanel=4]="UnregisterPanel",e))(Zn||{});let Qn={0(e,t){var n;let r=wn(e.tabs,(e=>e.current)),o=wn(e.panels,(e=>e.current)),i=r.filter((e=>{var t;return!(null!=(t=e.current)&&t.hasAttribute("disabled"))})),a={...e,tabs:r,panels:o};if(t.index<0||t.index>r.length-1){let n=cn(Math.sign(t.index-e.selectedIndex),{[-1]:()=>1,0:()=>cn(Math.sign(t.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});if(0===i.length)return a;let o=cn(n,{0:()=>r.indexOf(i[0]),1:()=>r.indexOf(i[i.length-1])});return{...a,selectedIndex:-1===o?e.selectedIndex:o}}let s=r.slice(0,t.index),l=[...r.slice(t.index),...s].find((e=>i.includes(e)));if(!l)return a;let c=null!=(n=r.indexOf(l))?n:e.selectedIndex;return-1===c&&(c=e.selectedIndex),{...a,selectedIndex:c}},1(e,t){var n;if(e.tabs.includes(t.tab))return e;let r=e.tabs[e.selectedIndex],o=wn([...e.tabs,t.tab],(e=>e.current)),i=null!=(n=o.indexOf(r))?n:e.selectedIndex;return-1===i&&(i=e.selectedIndex),{...e,tabs:o,selectedIndex:i}},2:(e,t)=>({...e,tabs:e.tabs.filter((e=>e!==t.tab))}),3:(e,t)=>e.panels.includes(t.panel)?e:{...e,panels:wn([...e.panels,t.panel],(e=>e.current))},4:(e,t)=>({...e,panels:e.panels.filter((e=>e!==t.panel))})},er=G(null);function tr(e){let t=Se(er);if(null===t){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,tr),t}return t}er.displayName="TabsDataContext";let nr=G(null);function rr(e){let t=Se(nr);if(null===t){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,rr),t}return t}function or(e,t){return cn(t.type,Qn,e,t)}nr.displayName="TabsActionsContext";let ir=E;let ar=Nn.RenderStrategy|Nn.Static;let sr=In((function(e,t){var n,r;let o=ln(),{id:i=`headlessui-tabs-tab-${o}`,...a}=e,{orientation:s,activation:l,selectedIndex:c,tabs:u,panels:d}=tr("Tab"),p=rr("Tab"),f=tr("Tab"),m=ve(null),h=Sn(m,t);Qt((()=>p.registerTab(m)),[p,m]);let g=Jn("tabs"),y=u.indexOf(m);-1===y&&(y=g);let b=y===c,_=tn((e=>{var t;let n=e();if(n===hn.Success&&"auto"===l){let e=null==(t=function(e){return Zt.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}(m))?void 0:t.activeElement,n=f.tabs.findIndex((t=>t.current===e));-1!==n&&p.change(n)}return n})),w=tn((e=>{let t=u.map((e=>e.current)).filter(Boolean);if(e.key===qn.Space||e.key===qn.Enter)return e.preventDefault(),e.stopPropagation(),void p.change(y);switch(e.key){case qn.Home:case qn.PageUp:return e.preventDefault(),e.stopPropagation(),_((()=>vn(t,mn.First)));case qn.End:case qn.PageDown:return e.preventDefault(),e.stopPropagation(),_((()=>vn(t,mn.Last)))}return _((()=>cn(s,{vertical:()=>e.key===qn.ArrowUp?vn(t,mn.Previous|mn.WrapAround):e.key===qn.ArrowDown?vn(t,mn.Next|mn.WrapAround):hn.Error,horizontal:()=>e.key===qn.ArrowLeft?vn(t,mn.Previous|mn.WrapAround):e.key===qn.ArrowRight?vn(t,mn.Next|mn.WrapAround):hn.Error})))===hn.Success?e.preventDefault():void 0})),v=ve(!1),x=tn((()=>{var e;v.current||(v.current=!0,null==(e=m.current)||e.focus({preventScroll:!0}),p.change(y),nn((()=>{v.current=!1})))})),k=tn((e=>{e.preventDefault()})),E=ke((()=>({selected:b})),[b]);return On({ourProps:{ref:h,onKeyDown:w,onMouseDown:k,onClick:x,id:i,role:"tab",type:kn(e,m),"aria-controls":null==(r=null==(n=d[y])?void 0:n.current)?void 0:r.id,"aria-selected":b,tabIndex:b?0:-1},theirProps:a,slot:E,defaultTag:"button",name:"Tabs.Tab"})})),lr=In((function(e,t){let{defaultIndex:n=0,vertical:r=!1,manual:o=!1,onChange:i,selectedIndex:a=null,...s}=e;const l=r?"vertical":"horizontal",c=o?"manual":"auto";let u=null!==a,d=Sn(t),[p,f]=be(or,{selectedIndex:null!=a?a:n,tabs:[],panels:[]}),m=ke((()=>({selectedIndex:p.selectedIndex})),[p.selectedIndex]),h=en(i||(()=>{})),g=en(p.tabs),y=ke((()=>({orientation:l,activation:c,...p})),[l,c,p]),b=tn((e=>(f({type:1,tab:e}),()=>f({type:2,tab:e})))),_=tn((e=>(f({type:3,panel:e}),()=>f({type:4,panel:e})))),w=tn((e=>{v.current!==e&&h.current(e),u||f({type:0,index:e})})),v=en(u?e.selectedIndex:p.selectedIndex),x=ke((()=>({registerTab:b,registerPanel:_,change:w})),[]);Qt((()=>{f({type:0,index:null!=a?a:n})}),[a]),Qt((()=>{if(void 0===v.current||p.tabs.length<=0)return;let e=wn(p.tabs,(e=>e.current));e.some(((e,t)=>p.tabs[t]!==e))&&w(e.indexOf(p.tabs[v.current]))}));let k={ref:d};return $t.createElement(Yn,null,$t.createElement(nr.Provider,{value:x},$t.createElement(er.Provider,{value:y},y.tabs.length<=0&&$t.createElement($n,{onFocus:()=>{var e,t;for(let n of g.current)if(0===(null==(e=n.current)?void 0:e.tabIndex))return null==(t=n.current)||t.focus(),!0;return!1}}),On({ourProps:k,theirProps:s,slot:m,defaultTag:ir,name:"Tabs"}))))})),cr=In((function(e,t){let{orientation:n,selectedIndex:r}=tr("Tab.List");return On({ourProps:{ref:Sn(t),role:"tablist","aria-orientation":n},theirProps:e,slot:{selectedIndex:r},defaultTag:"div",name:"Tabs.List"})})),ur=In((function(e,t){let{selectedIndex:n}=tr("Tab.Panels");return On({ourProps:{ref:Sn(t)},theirProps:e,slot:ke((()=>({selectedIndex:n})),[n]),defaultTag:"div",name:"Tabs.Panels"})})),dr=In((function(e,t){var n,r,o,i;let a=ln(),{id:s=`headlessui-tabs-panel-${a}`,tabIndex:l=0,...c}=e,{selectedIndex:u,tabs:d,panels:p}=tr("Tab.Panel"),f=rr("Tab.Panel"),m=ve(null),h=Sn(m,t);Qt((()=>f.registerPanel(m)),[f,m]);let g=Jn("panels"),y=p.indexOf(m);-1===y&&(y=g);let b=y===u,_=ke((()=>({selected:b})),[b]),w={ref:h,id:s,role:"tabpanel","aria-labelledby":null==(r=null==(n=d[y])?void 0:n.current)?void 0:r.id,tabIndex:b?l:-1};return b||null!=(o=c.unmount)&&!o||null!=(i=c.static)&&i?On({ourProps:w,theirProps:c,slot:_,defaultTag:"div",features:ar,visible:b,name:"Tabs.Panel"}):$t.createElement(jn,{as:"span","aria-hidden":"true",...w})})),pr=Object.assign(sr,{Group:lr,List:cr,Panels:ur,Panel:dr});function fr(e,...t){e&&t.length>0&&e.classList.add(...t)}function mr(e,...t){e&&t.length>0&&e.classList.remove(...t)}function hr(e,t,n,r){let o=n?"enter":"leave",i=rn(),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=cn(o,{enter:()=>t.enter,leave:()=>t.leave}),l=cn(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=cn(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return mr(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),fr(e,...t.base,...s,...c),i.nextFrame((()=>{mr(e,...t.base,...s,...c),fr(e,...t.base,...s,...l),function(e,t){let n=rn();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,(()=>(mr(e,...t.base,...s),fr(e,...t.base,...t.entered),a())))})),i.dispose}function gr(e=""){return e.split(/\s+/).filter((e=>e.length>1))}let yr=G(null);yr.displayName="TransitionContext";var br=(e=>(e.Visible="visible",e.Hidden="hidden",e))(br||{});let _r=G(null);function wr(e){return"children"in e?wr(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function vr(e,t){let n=en(e),r=ve([]),o=Vn(),i=on(),a=tn(((e,t=An.Hidden)=>{let a=r.current.findIndex((({el:t})=>t===e));-1!==a&&(cn(t,{[An.Unmount](){r.current.splice(a,1)},[An.Hidden](){r.current[a].state="hidden"}}),i.microTask((()=>{var e;!wr(r)&&o.current&&(null==(e=n.current)||e.call(n))})))})),s=tn((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,An.Unmount)})),l=ve([]),c=ve(Promise.resolve()),u=ve({enter:[],leave:[],idle:[]}),d=tn(((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=tn(((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 ke((()=>({children:r,register:s,unregister:a,onStart:d,onStop:p,wait:c,chains:u})),[s,a,r,d,p,u,c])}function xr(){}_r.displayName="NestingContext";let kr=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Er(e){var t;let n={};for(let r of kr)n[r]=null!=(t=e[r])?t:xr;return n}let Sr=Nn.RenderStrategy;let Tr=In((function(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,a=ve(null),s=Sn(a,t);an();let l=Hn();if(void 0===n&&null!==l&&(n=(l&Bn.Open)===Bn.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,u]=ye(n?"visible":"hidden"),d=vr((()=>{u("hidden")})),[p,f]=ye(!0),m=ve([n]);Qt((()=>{!1!==p&&m.current[m.current.length-1]!==n&&(m.current.push(n),f(!1))}),[m,n]);let h=ke((()=>({show:n,appear:r,initial:p})),[n,r,p]);_e((()=>{if(n)u("visible");else if(wr(d)){let e=a.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&u("hidden")}else u("hidden")}),[n,d]);let g={unmount:o},y=tn((()=>{var t;p&&f(!1),null==(t=e.beforeEnter)||t.call(e)})),b=tn((()=>{var t;p&&f(!1),null==(t=e.beforeLeave)||t.call(e)}));return $t.createElement(_r.Provider,{value:d},$t.createElement(yr.Provider,{value:h},On({ourProps:{...g,as:E,children:$t.createElement(Cr,{ref:s,...g,...i,beforeEnter:y,beforeLeave:b})},theirProps:{},defaultTag:E,features:Sr,visible:"visible"===c,name:"Transition"})))})),Cr=In((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=ve(null),y=Sn(g,t),b=null==(n=h.unmount)||n?An.Unmount:An.Hidden,{show:_,appear:w,initial:v}=function(){let e=Se(yr);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]=ye(_?"visible":"hidden"),E=function(){let e=Se(_r);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:S,unregister:T}=E;_e((()=>S(g)),[S,g]),_e((()=>{if(b===An.Hidden&&g.current)return _&&"visible"!==x?void k("visible"):cn(x,{hidden:()=>T(g),visible:()=>S(g)})}),[x,g,S,T,_,b]);let C=en({base:gr(h.className),enter:gr(l),enterFrom:gr(c),enterTo:gr(u),entered:gr(d),leave:gr(p),leaveFrom:gr(f),leaveTo:gr(m)}),N=function(e){let t=ve(Er(e));return _e((()=>{t.current=Er(e)}),[e]),t}({beforeEnter:o,afterEnter:i,beforeLeave:a,afterLeave:s}),A=an();_e((()=>{if(A&&"visible"===x&&null===g.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[g,x,A]);let O=v&&!w,R=w&&_&&v,P=(()=>!A||O?"idle":_?"enter":"leave")(),L=function(e=0){let[t,n]=ye(e),r=Vn(),o=Ee((e=>{r.current&&n((t=>t|e))}),[t,r]),i=Ee((e=>Boolean(t&e)),[t]),a=Ee((e=>{r.current&&n((t=>t&~e))}),[n,r]),s=Ee((e=>{r.current&&n((t=>t^e))}),[n]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:a,toggleFlag:s}}(0),I=tn((e=>cn(e,{enter:()=>{L.addFlag(Bn.Opening),N.current.beforeEnter()},leave:()=>{L.addFlag(Bn.Closing),N.current.beforeLeave()},idle:()=>{}}))),U=tn((e=>cn(e,{enter:()=>{L.removeFlag(Bn.Opening),N.current.afterEnter()},leave:()=>{L.removeFlag(Bn.Closing),N.current.afterLeave()},idle:()=>{}}))),F=vr((()=>{k("hidden"),T(g)}),E),D=ve(!1);!function({immediate:e,container:t,direction:n,classes:r,onStart:o,onStop:i}){let a=Vn(),s=on(),l=en(n);Qt((()=>{e&&(l.current="enter")}),[e]),Qt((()=>{let e=rn();s.add(e.dispose);let n=t.current;if(n&&"idle"!==l.current&&a.current)return e.dispose(),o.current(l.current),e.add(hr(n,r.current,"enter"===l.current,(()=>{e.dispose(),i.current(l.current)}))),e.dispose}),[n])}({immediate:R,container:g,classes:C,direction:P,onStart:en((e=>{D.current=!0,F.onStart(g,e,I)})),onStop:en((e=>{D.current=!1,F.onStop(g,e,U),"leave"===e&&!wr(F)&&(k("hidden"),T(g))}))});let j=h,M={ref:y};return R?j={...j,className:Tn(h.className,...C.current.enter,...C.current.enterFrom)}:D.current&&(j.className=Tn(h.className,null==(r=g.current)?void 0:r.className),""===j.className&&delete j.className),$t.createElement(_r.Provider,{value:F},$t.createElement(zn,{value:cn(x,{visible:Bn.Open,hidden:Bn.Closed})|L.flags},On({ourProps:M,theirProps:j,defaultTag:"div",features:Sr,visible:"visible"===x,name:"Transition.Child"})))})),Nr=In((function(e,t){let n=null!==Se(yr),r=null!==Hn();return $t.createElement($t.Fragment,null,!n&&r?$t.createElement(Tr,{ref:t,...e}):$t.createElement(Cr,{ref:t,...e}))})),Ar=Object.assign(Tr,{Child:Nr,Root:Tr});const Or=({children:e})=>{const t=$t.Children.toArray(e),n=t.find((e=>e.type===Rr)),r=t.find((e=>e.type===Pr));return Fe(Ar,{appear:!0,show:!0,enter:"transition duration-700 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:Fe("div",{class:"flex flex-col text-center items-center max-w-[40rem] mx-auto",children:[Fe(Ar,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:n&&Fe("div",{class:"flex items-center h-full",children:n})}),Fe(Ar,{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&&Fe("div",{class:"flex items-center h-full",children:r})})]})})},Rr=({children:e})=>Fe(E,{children:e}),Pr=({children:e})=>Fe(E,{children:e});Or.Top=Rr,Or.Bottom=Pr;const Lr={title:"Introducing your Flare Benefits Allowance",description:"As part of joining your workplace benefits program, you now have exclusive access to your Flare Benefits Allowance which helps you save on household expenses. This allowance is only available to you within the first 30 days of joining your benefits program.",buttonText:"Set up your benefits",progress:{title:"How it works?",steps:[{title:"Join your workplace benefits program",completed:!0},{title:"Set up your benefits",description:"Choose and enrol in the benefits you want to include in your allowance",completed:!1},{title:"Purchase within 30 days*",completed:!1},{title:"Get reimbursed within 90 days*",completed:!1}]},termsAndConditions:()=>Fe("span",{children:["* You must purchase the benefit within 30 days of joining your workplace benefits program to be eligible for reimbursement. Reimbursements will be distributed as a Flare Gift Card to your email address after you have held your plan/policy for 90 days. Individual product eligibility requirements apply. See"," ",Fe("a",{target:"_blank",rel:"noreferrer",href:"https://www.flarehr.com/flare-benefits-allowance-terms",children:"Terms and Conditions"})," ","for more details"]})},Ir=({onContinue:e})=>Fe(Or,{children:[Fe(Or.Top,{children:Fe("div",{className:"flex flex-col gap-4",children:[Fe(We,{children:Lr.title}),Fe(qe,{children:Lr.description})]})}),Fe(Or.Bottom,{children:Fe("div",{className:"mt-5 flex flex-col items-center gap-5 text-center",children:[Lr.progress&&Fe(Jt,{title:Lr.progress.title,steps:Lr.progress.steps,className:"rounded-md px-6 py-4 lg:w-3/4",style:{background:"linear-gradient(90deg, rgba(255, 135, 111, 0.10) 0%, rgba(166, 80, 255, 0.10) 100%)"}}),Fe(ze,{class:"mt-5 w-full md:w-[240px]",onClickPromise:e,children:Lr.buttonText}),Lr.termsAndConditions&&Fe("span",{className:"font-normal text-xs mt-4 lg:w-3/4",children:Fe(Lr.termsAndConditions,{})})]})})]}),Ur=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/intro_allowance_experiment-DOEEBjp3.png").href:new URL("assets/intro_allowance_experiment-DOEEBjp3.png","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),Fr=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/intro_allowance_experiment-Cw7WZ2Ba.png").href:new URL("assets/intro_allowance_experiment-Cw7WZ2Ba.png","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),Dr=({icon:e,children:t,className:n,...r})=>Fe("div",{...r,className:`${n??""} rounded-md shadow-sm`,children:Fe("div",{className:"flex items-center gap-4 px-4 py-4",children:[e&&Fe("span",{className:"w-10 min-w-10 max-w-10",children:e}),t&&Fe("span",{className:"text-left text-base",children:t})]})});class jr extends Error{}function Mr(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)}}jr.prototype.name="InvalidTokenError";const Br=crypto.randomUUID?crypto.randomUUID():crypto.getRandomValues(new Uint32Array(5)).join("-"),Hr=e=>(window.addEventListener(Br,e),()=>window.removeEventListener(Br,e)),zr=()=>{window.dispatchEvent(new Event(Br))};function Wr(e,t){return function(){return e.apply(t,arguments)}}const{toString:qr}=Object.prototype,{getPrototypeOf:Vr}=Object,$r=(e=>t=>{const n=qr.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Gr=e=>(e=e.toLowerCase(),t=>$r(t)===e),Yr=e=>t=>typeof t===e,{isArray:Jr}=Array,Kr=Yr("undefined");const Xr=Gr("ArrayBuffer");const Zr=Yr("string"),Qr=Yr("function"),eo=Yr("number"),to=e=>null!==e&&"object"==typeof e,no=e=>{if("object"!==$r(e))return!1;const t=Vr(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},ro=Gr("Date"),oo=Gr("File"),io=Gr("Blob"),ao=Gr("FileList"),so=Gr("URLSearchParams"),[lo,co,uo,po]=["ReadableStream","Request","Response","Headers"].map(Gr);function fo(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),Jr(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 mo(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 ho="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,go=e=>!Kr(e)&&e!==ho;const yo=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&Vr(Uint8Array)),bo=Gr("HTMLFormElement"),_o=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),wo=Gr("RegExp"),vo=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};fo(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},xo="abcdefghijklmnopqrstuvwxyz",ko="0123456789",Eo={DIGIT:ko,ALPHA:xo,ALPHA_DIGIT:xo+xo.toUpperCase()+ko};const So=Gr("AsyncFunction"),To=(Co="function"==typeof setImmediate,No=Qr(ho.postMessage),Co?setImmediate:No?(Ao=`axios@${Math.random()}`,Oo=[],ho.addEventListener("message",(({source:e,data:t})=>{e===ho&&t===Ao&&Oo.length&&Oo.shift()()}),!1),e=>{Oo.push(e),ho.postMessage(Ao,"*")}):e=>setTimeout(e));var Co,No,Ao,Oo;const Ro="undefined"!=typeof queueMicrotask?queueMicrotask.bind(ho):"undefined"!=typeof process&&process.nextTick||To,Po={isArray:Jr,isArrayBuffer:Xr,isBuffer:function(e){return null!==e&&!Kr(e)&&null!==e.constructor&&!Kr(e.constructor)&&Qr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||Qr(e.append)&&("formdata"===(t=$r(e))||"object"===t&&Qr(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Xr(e.buffer),t},isString:Zr,isNumber:eo,isBoolean:e=>!0===e||!1===e,isObject:to,isPlainObject:no,isReadableStream:lo,isRequest:co,isResponse:uo,isHeaders:po,isUndefined:Kr,isDate:ro,isFile:oo,isBlob:io,isRegExp:wo,isFunction:Qr,isStream:e=>to(e)&&Qr(e.pipe),isURLSearchParams:so,isTypedArray:yo,isFileList:ao,forEach:fo,merge:function e(){const{caseless:t}=go(this)&&this||{},n={},r=(r,o)=>{const i=t&&mo(n,o)||o;no(n[i])&&no(r)?n[i]=e(n[i],r):no(r)?n[i]=e({},r):Jr(r)?n[i]=r.slice():n[i]=r};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&fo(arguments[o],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(fo(t,((t,r)=>{n&&Qr(t)?e[r]=Wr(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&&Vr(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:$r,kindOfTest:Gr,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(Jr(e))return e;let t=e.length;if(!eo(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:bo,hasOwnProperty:_o,hasOwnProp:_o,reduceDescriptors:vo,freezeMethods:e=>{vo(e,((t,n)=>{if(Qr(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];Qr(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 Jr(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)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:mo,global:ho,isContextDefined:go,ALPHABET:Eo,generateString:(e=16,t=Eo.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&Qr(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(to(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=Jr(e)?[]:{};return fo(e,((e,t)=>{const i=n(e,r+1);!Kr(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:So,isThenable:e=>e&&(to(e)||Qr(e))&&Qr(e.then)&&Qr(e.catch),setImmediate:To,asap:Ro};function Lo(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)}Po.inherits(Lo,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:Po.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Io=Lo.prototype,Uo={};["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=>{Uo[e]={value:e}})),Object.defineProperties(Lo,Uo),Object.defineProperty(Io,"isAxiosError",{value:!0}),Lo.from=(e,t,n,r,o,i)=>{const a=Object.create(Io);return Po.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Lo.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function Fo(e){return Po.isPlainObject(e)||Po.isArray(e)}function Do(e){return Po.endsWith(e,"[]")?e.slice(0,-2):e}function jo(e,t,n){return e?e.concat(t).map((function(e,t){return e=Do(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Mo=Po.toFlatObject(Po,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Bo(e,t,n){if(!Po.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Po.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Po.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Po.isSpecCompliantForm(t);if(!Po.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Po.isDate(e))return e.toISOString();if(!s&&Po.isBlob(e))throw new Lo("Blob is not supported. Use a Buffer instead.");return Po.isArrayBuffer(e)||Po.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(Po.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Po.isArray(e)&&function(e){return Po.isArray(e)&&!e.some(Fo)}(e)||(Po.isFileList(e)||Po.endsWith(n,"[]"))&&(s=Po.toArray(e)))return n=Do(n),s.forEach((function(e,r){!Po.isUndefined(e)&&null!==e&&t.append(!0===a?jo([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!Fo(e)||(t.append(jo(o,n,i),l(e)),!1)}const u=[],d=Object.assign(Mo,{defaultVisitor:c,convertValue:l,isVisitable:Fo});if(!Po.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Po.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),Po.forEach(n,(function(n,i){!0===(!(Po.isUndefined(n)||null===n)&&o.call(t,n,Po.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t}function Ho(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function zo(e,t){this._pairs=[],e&&Bo(e,this,t)}const Wo=zo.prototype;function qo(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Vo(e,t,n){if(!t)return e;const r=n&&n.encode||qo,o=n&&n.serialize;let i;if(i=o?o(t,n):Po.isURLSearchParams(t)?t.toString():new zo(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}Wo.append=function(e,t){this._pairs.push([e,t])},Wo.toString=function(e){const t=e?function(t){return e.call(this,t,Ho)}:Ho;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class $o{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){Po.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const Go={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Yo={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:zo,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Jo="undefined"!=typeof window&&"undefined"!=typeof document,Ko=(Xo="undefined"!=typeof navigator&&navigator.product,Jo&&["ReactNative","NativeScript","NS"].indexOf(Xo)<0);var Xo;const Zo="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Qo=Jo&&window.location.href||"http://localhost",ei={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Jo,hasStandardBrowserEnv:Ko,hasStandardBrowserWebWorkerEnv:Zo,origin:Qo},Symbol.toStringTag,{value:"Module"})),...Yo};function ti(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&&Po.isArray(r)?r.length:i,s)return Po.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&Po.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&Po.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(Po.isFormData(e)&&Po.isFunction(e.entries)){const n={};return Po.forEachEntry(e,((e,r)=>{t(function(e){return Po.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const ni={transitional:Go,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Po.isObject(e);o&&Po.isHTMLForm(e)&&(e=new FormData(e));if(Po.isFormData(e))return r?JSON.stringify(ti(e)):e;if(Po.isArrayBuffer(e)||Po.isBuffer(e)||Po.isStream(e)||Po.isFile(e)||Po.isBlob(e)||Po.isReadableStream(e))return e;if(Po.isArrayBufferView(e))return e.buffer;if(Po.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 Bo(e,new ei.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return ei.isNode&&Po.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=Po.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Bo(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Po.isString(e))try{return(t||JSON.parse)(e),Po.trim(e)}catch(Cn){if("SyntaxError"!==Cn.name)throw Cn}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ni.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Po.isResponse(e)||Po.isReadableStream(e))return e;if(e&&Po.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(Cn){if(n){if("SyntaxError"===Cn.name)throw Lo.from(Cn,Lo.ERR_BAD_RESPONSE,this,null,this.response);throw Cn}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ei.classes.FormData,Blob:ei.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Po.forEach(["delete","get","head","post","put","patch"],(e=>{ni.headers[e]={}}));const ri=Po.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"]),oi=Symbol("internals");function ii(e){return e&&String(e).trim().toLowerCase()}function ai(e){return!1===e||null==e?e:Po.isArray(e)?e.map(ai):String(e)}function si(e,t,n,r,o){return Po.isFunction(r)?r.call(this,t,n):(o&&(t=n),Po.isString(t)?Po.isString(r)?-1!==t.indexOf(r):Po.isRegExp(r)?r.test(t):void 0:void 0)}class li{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=ii(t);if(!o)throw new Error("header name must be a non-empty string");const i=Po.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=ai(e))}const i=(e,t)=>Po.forEach(e,((e,n)=>o(e,n,t)));if(Po.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Po.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]&&ri[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(Po.isHeaders(e))for(const[a,s]of e.entries())o(s,a,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=ii(e)){const n=Po.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(Po.isFunction(t))return t.call(this,e,n);if(Po.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ii(e)){const n=Po.findKey(this,e);return!(!n||void 0===this[n]||t&&!si(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=ii(e)){const o=Po.findKey(n,e);!o||t&&!si(0,n[o],o,t)||(delete n[o],r=!0)}}return Po.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&&!si(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Po.forEach(this,((r,o)=>{const i=Po.findKey(n,o);if(i)return t[i]=ai(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]=ai(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Po.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Po.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[oi]=this[oi]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=ii(e);t[r]||(!function(e,t){const n=Po.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 Po.isArray(e)?e.forEach(r):r(e),this}}function ci(e,t){const n=this||ni,r=t||n,o=li.from(r.headers);let i=r.data;return Po.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function ui(e){return!(!e||!e.__CANCEL__)}function di(e,t,n){Lo.call(this,null==e?"canceled":e,Lo.ERR_CANCELED,t,n),this.name="CanceledError"}function pi(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Lo("Request failed with status code "+n.status,[Lo.ERR_BAD_REQUEST,Lo.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}li.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Po.reduceDescriptors(li.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Po.freezeMethods(li),Po.inherits(di,Lo,{__CANCEL__:!0});const fi=(e,t,n=3)=>{let r=0;const o=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 function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout((()=>{r=null,a(n)}),i-s)))},()=>n&&a(n)]}((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i;e({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:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},mi=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},hi=e=>(...t)=>Po.asap((()=>e(...t))),gi=ei.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=Po.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return function(){return!0}}(),yi=ei.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Po.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Po.isString(r)&&a.push("path="+r),Po.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 bi(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 _i=e=>e instanceof li?{...e}:e;function wi(e,t){t=t||{};const n={};function r(e,t,n){return Po.isPlainObject(e)&&Po.isPlainObject(t)?Po.merge.call({caseless:n},e,t):Po.isPlainObject(t)?Po.merge({},t):Po.isArray(t)?t.slice():t}function o(e,t,n){return Po.isUndefined(t)?Po.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!Po.isUndefined(t))return r(void 0,t)}function a(e,t){return Po.isUndefined(t)?Po.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(_i(e),_i(t),!0)};return Po.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);Po.isUndefined(a)&&i!==s||(n[r]=a)})),n}const vi=e=>{const t=wi({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=li.from(s),t.url=Vo(bi(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Po.isFormData(r))if(ei.hasStandardBrowserEnv||ei.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(ei.hasStandardBrowserEnv&&(o&&Po.isFunction(o)&&(o=o(t)),o||!1!==o&&gi(t.url))){const e=i&&a&&yi.read(a);e&&s.set(i,e)}return t},xi="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=vi(e);let o=r.data;const i=li.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:p,onDownloadProgress:f}=r;function m(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let h=new XMLHttpRequest;function g(){if(!h)return;const r=li.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());pi((function(e){t(e),m()}),(function(e){n(e),m()}),{data:d&&"text"!==d&&"json"!==d?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout,"onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(g)},h.onabort=function(){h&&(n(new Lo("Request aborted",Lo.ECONNABORTED,e,h)),h=null)},h.onerror=function(){n(new Lo("Network Error",Lo.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||Go;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Lo(t,o.clarifyTimeoutError?Lo.ETIMEDOUT:Lo.ECONNABORTED,e,h)),h=null},void 0===o&&i.setContentType(null),"setRequestHeader"in h&&Po.forEach(i.toJSON(),(function(e,t){h.setRequestHeader(t,e)})),Po.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),d&&"json"!==d&&(h.responseType=r.responseType),f&&([l,u]=fi(f,!0),h.addEventListener("progress",l)),p&&h.upload&&([s,c]=fi(p),h.upload.addEventListener("progress",s),h.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{h&&(n(!t||t.type?new di(null,e,h):t),h.abort(),h=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===ei.protocols.indexOf(y)?n(new Lo("Unsupported protocol "+y+":",Lo.ERR_BAD_REQUEST,e)):h.send(o||null)}))},ki=(e,t)=>{let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Lo?t:new di(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{o(new Lo(`timeout ${t} of ms exceeded`,Lo.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",o):e.unsubscribe(o))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=a,[s,()=>{i&&clearTimeout(i),i=null}]},Ei=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},Si=(e,t,n,r,o)=>{const i=async function*(e,t,n){for await(const r of e)yield*Ei(ArrayBuffer.isView(r)?r:await n(String(r)),t)}(e,t,o);let a,s=0,l=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return l(),void e.close();let o=r.byteLength;if(n){let e=s+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw l(t),t}},cancel:e=>(l(e),i.return())},{highWaterMark:2})},Ti="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Ci=Ti&&"function"==typeof ReadableStream,Ni=Ti&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ai=(e,...t)=>{try{return!!e(...t)}catch(Cn){return!1}},Oi=Ci&&Ai((()=>{let e=!1;const t=new Request(ei.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Ri=Ci&&Ai((()=>Po.isReadableStream(new Response("").body))),Pi={stream:Ri&&(e=>e.body)};var Li;Ti&&(Li=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Pi[e]&&(Pi[e]=Po.isFunction(Li[e])?t=>t[e]():(t,n)=>{throw new Lo(`Response type '${e}' is not supported`,Lo.ERR_NOT_SUPPORT,n)})})));const Ii=async(e,t)=>{const n=Po.toFiniteNumber(e.getContentLength());return null==n?(async e=>null==e?0:Po.isBlob(e)?e.size:Po.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:Po.isArrayBufferView(e)||Po.isArrayBuffer(e)?e.byteLength:(Po.isURLSearchParams(e)&&(e+=""),Po.isString(e)?(await Ni(e)).byteLength:void 0))(t):n},Ui={http:null,xhr:xi,fetch:Ti&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:p}=vi(e);c=c?(c+"").toLowerCase():"text";let f,m,[h,g]=o||i||a?ki([o,i],a):[];const y=()=>{!f&&setTimeout((()=>{h&&h.unsubscribe()})),f=!0};let b;try{if(l&&Oi&&"get"!==n&&"head"!==n&&0!==(b=await Ii(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(Po.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=mi(b,fi(hi(l)));r=Si(n.body,65536,e,t,Ni)}}Po.isString(d)||(d=d?"include":"omit"),m=new Request(t,{...p,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:d});let o=await fetch(m);const i=Ri&&("stream"===c||"response"===c);if(Ri&&(s||i)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=Po.toFiniteNumber(o.headers.get("content-length")),[n,r]=s&&mi(t,fi(hi(s),!0))||[];o=new Response(Si(o.body,65536,n,(()=>{r&&r(),i&&y()}),Ni),e)}c=c||"text";let a=await Pi[Po.findKey(Pi,c)||"text"](o,e);return!i&&y(),g&&g(),await new Promise(((t,n)=>{pi(t,n,{data:a,headers:li.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:m})}))}catch(_){if(y(),_&&"TypeError"===_.name&&/fetch/i.test(_.message))throw Object.assign(new Lo("Network Error",Lo.ERR_NETWORK,e,m),{cause:_.cause||_});throw Lo.from(_,_&&_.code,e,m)}})};Po.forEach(Ui,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(Cn){}Object.defineProperty(e,"adapterName",{value:t})}}));const Fi=e=>`- ${e}`,Di=e=>Po.isFunction(e)||null===e||!1===e,ji=e=>{e=Po.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,!Di(n)&&(r=Ui[(t=String(n)).toLowerCase()],void 0===r))throw new Lo(`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 Lo("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Fi).join("\n"):" "+Fi(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function Mi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new di(null,e)}function Bi(e){Mi(e),e.headers=li.from(e.headers),e.data=ci.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return ji(e.adapter||ni.adapter)(e).then((function(t){return Mi(e),t.data=ci.call(e,e.transformResponse,t),t.headers=li.from(t.headers),t}),(function(t){return ui(t)||(Mi(e),t&&t.response&&(t.response.data=ci.call(e,e.transformResponse,t.response),t.response.headers=li.from(t.response.headers))),Promise.reject(t)}))}const Hi="1.7.4",zi={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{zi[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Wi={};zi.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.4] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Lo(r(o," has been removed"+(t?" in "+t:"")),Lo.ERR_DEPRECATED);return t&&!Wi[o]&&(Wi[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 qi={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Lo("options must be an object",Lo.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 Lo("option "+i+" must be "+n,Lo.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Lo("Unknown option "+i,Lo.ERR_BAD_OPTION)}},validators:zi},Vi=qi.validators;class $i{constructor(e){this.defaults=e,this.interceptors={request:new $o,response:new $o}}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/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(Cn){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=wi(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&qi.assertOptions(n,{silentJSONParsing:Vi.transitional(Vi.boolean),forcedJSONParsing:Vi.transitional(Vi.boolean),clarifyTimeoutError:Vi.transitional(Vi.boolean)},!1),null!=r&&(Po.isFunction(r)?t.paramsSerializer={serialize:r}:qi.assertOptions(r,{encode:Vi.function,serialize:Vi.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Po.merge(o.common,o[t.method]);o&&Po.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=li.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=[Bi.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=Bi.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 Vo(bi((e=wi(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}Po.forEach(["delete","get","head","options"],(function(e){$i.prototype[e]=function(t,n){return this.request(wi(n||{},{method:e,url:t,data:(n||{}).data}))}})),Po.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(wi(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}$i.prototype[e]=t(),$i.prototype[e+"Form"]=t(!0)}));class Gi{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 di(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 Gi((function(t){e=t})),cancel:e}}}const Yi={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(Yi).forEach((([e,t])=>{Yi[t]=e}));const Ji=function e(t){const n=new $i(t),r=Wr($i.prototype.request,n);return Po.extend(r,$i.prototype,n,{allOwnKeys:!0}),Po.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(wi(t,n))},r}(ni);Ji.Axios=$i,Ji.CanceledError=di,Ji.CancelToken=Gi,Ji.isCancel=ui,Ji.VERSION=Hi,Ji.toFormData=Bo,Ji.AxiosError=Lo,Ji.Cancel=Ji.CanceledError,Ji.all=function(e){return Promise.all(e)},Ji.spread=function(e){return function(t){return e.apply(null,t)}},Ji.isAxiosError=function(e){return Po.isObject(e)&&!0===e.isAxiosError},Ji.mergeConfig=wi,Ji.AxiosHeaders=li,Ji.formToJSON=e=>ti(Po.isHTMLForm(e)?new FormData(e):e),Ji.getAdapter=ji,Ji.HttpStatusCode=Yi,Ji.default=Ji;class Ki{constructor(){__privateAdd(this,e)}initClient(t,n){__privateSet(this,e,Ji.create({baseURL:`${this.url(t)}/backend`,headers:n}))}getClient(){return __privateGet(this,e)}}e=new WeakMap;const Xi={backend:new class extends Ki{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 Zi;class Qi{constructor(){__privateAdd(this,t),__privateAdd(this,n),__privateAdd(this,r),__privateAdd(this,o,(async e=>(Zi||(Zi=await Xi.backend.getIdToken()),e.headers.Authorization=`Bearer ${Zi}`,e.params={...e.params??{},client:"onboarding",source:"Onboarding",channel:"onboarding"},e)))}initClient(e,i,a){__privateSet(this,n,e),__privateSet(this,r,i),__privateSet(this,t,Ji.create({baseURL:`${this.url(e)}/workplace-backend`,headers:{...a,"X-PROFILE-ID":i}})),__privateGet(this,t).interceptors.request.use(__privateGet(this,o))}getClient(){return __privateGet(this,t)}async getAccessToken(){return Zi||(Zi=await Xi.backend.getIdToken()),Zi}getBaseUrl(){return __privateGet(this,n)}getProfileId(){return __privateGet(this,r)}}t=new WeakMap,n=new WeakMap,r=new WeakMap,o=new WeakMap;const ea=e=>{var t,n;throw"Auth_SessionExpired"===(null==(n=null==(t=e.response)?void 0:t.data)?void 0:n.code)&&zr(),e};let ta=(a=class extends Qi{constructor(){super(...arguments),__publicField(this,"_canceledSignal"),__privateAdd(this,i,(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,i))}async track(e,t){await this.getClient().post("/v1.0/analytics/track",{event:e,properties:t}).catch((e=>{}))}},i=new WeakMap,a);const na={backend:new class extends Ki{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),ea),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 ta};const ra={workplaceBackend:new class extends Qi{url(e){return`${e}/benefits-plan`}}},oa=(e,t,n)=>{const r=function(e,t){if("string"!=typeof e)throw new jr("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 jr(`Invalid token specified: missing part #${n+1}`);let o;try{o=Mr(r)}catch(Cn){throw new jr(`Invalid token specified: invalid base64 for part #${n+1} (${Cn.message})`)}try{return JSON.parse(o)}catch(Cn){throw new jr(`Invalid token specified: invalid json for part #${n+1} (${Cn.message})`)}}(t).sub,o={backend:{Authorization:`Bearer ${t}`},workplaceBackend:{}};na.backend.initClient(e,o.backend,n),na.workplaceBackend.initClient(e,r,o.workplaceBackend),Xi.backend.initClient(e,o.backend),ra.workplaceBackend.initClient(e,r,o.workplaceBackend)},ia=(e,t)=>{switch(!0){case"started"===e:return na.backend.command({eventType:"Started",metadata:t});case"membership-accepted"===e:return na.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!0,featureName:"",treatmentName:"",template:"Eoi"}});case"membership-declined"===e:return na.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!1,featureName:"",treatmentName:"",template:"Eoi"}});case"sign-up-viewed"===e:return na.backend.command({eventType:"OfferViewed",offerName:"Membership",data:{featureName:"",treatmentName:""}});case"sign-up-completed"===e:return(async()=>{await na.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!0,featureName:"",treatmentName:"",template:"Eoi"}}),await na.backend.command({eventType:"CustomerRegistrationCompleted",isRegistered:!0})})();case"sign-up-declined"===e:return(async()=>{await na.backend.command({eventType:"CustomerRegistrationCompleted",isRegistered:!1}),await na.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!1,featureName:"",treatmentName:"",template:"Eoi"}})})();case"object"==typeof e&&"offer-viewed"===e.type:return na.backend.command({...e,eventType:"OfferViewed"});case"object"==typeof e&&"offer-accepted"===e.type:return na.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:{...e.data,accepted:!0}});case"object"==typeof e&&"offer-declined"===e.type:return na.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:{...e.data,accepted:!1}});case"object"==typeof e&&"offer-progressed"===e.type:return na.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:e.data});case"object"==typeof e&&"summary-viewed"===e.type:return na.backend.command({eventType:"SummaryViewed",summaryVariant:e.data.summaryVariant,metadata:t});case"completed"===e:return na.backend.command({eventType:"Completed",metadata:t})}return Promise.resolve()},aa=()=>({trace:ia}),sa=e=>{const{trace:t}=aa(),{featureFlags:{marketplaceScheme:n}}=Se(Be),r={desktopImageUrl:Ur,mobileImageUrl:Fr,title:"Your workplace benefits program",description:"Your employer has partnered with Flare Benefits to give you exclusive access to savings and perks from Australia’s most-loved brands. Join your program today to also get access to your Flare Benefits Allowance.",specialBanner:{title:"Flare Benefits Allowance",subTitle:Fe("span",{children:["As part of joining your workplace benefits, ",Fe("b",{children:"$1,500"})," has been allocated as part of your Flare Benefits Program to help you save on household expenses."]})},buttonText:"Join your workplace"};return Fe(Or,{children:[Fe(Or.Top,{children:[Fe("img",{class:"max-w-[30rem] w-full hidden md:block",src:r.desktopImageUrl}),Fe("img",{class:"max-w-[30rem] w-full md:hidden",src:r.mobileImageUrl})]}),Fe(Or.Bottom,{children:Fe("div",{children:[Fe("h3",{class:"mt-8 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:r.title}),Fe("p",{class:"mt-3 text-lg leading-7 text-gray-600",children:r.description}),Fe(Dr,{className:"bg-teal-50 mt-5",children:Fe("div",{children:[Fe("p",{className:"font-semibold text-base text-gray-900",children:r.specialBanner.title}),Fe("span",{className:"font-normal text-base text-gray-900",children:r.specialBanner.subTitle})]})}),Fe(ze,{class:"mt-8",onClickPromise:async()=>{await t("started",{experiment:"onboarding-marketplace-scheme",treatment:n}),e.onContinue()},children:r.buttonText})]})})]})},la=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/get-app-CQalMIl7.jpg?inline").href:new URL("assets/get-app-CQalMIl7.jpg?inline","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),ca=({className:e,onClick:t,...n})=>{const[r,o]=ye(!1);return Fe("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:Ee((()=>{if(!r)return o(!0),t().finally((()=>{o(!1)}))}),[r,t]),...n,children:[Fe("div",{class:"relative "+(r?"invisible":""),children:n.children}),r&&Fe("div",{class:"absolute animate-spin",children:Fe(De,{theme:"primary"})})]})},ua=()=>Fe("div",{className:"mt-4 flex items-center border rounded-md border-gray-300",children:[Fe("img",{className:"h-40 h-min-40 h-max-40 m-0.5",src:la}),Fe("div",{className:"flex flex-col gap-1",children:[Fe("h4",{className:"font-bold text-lg text-left",children:"Workplace benefits in your pocket!"}),Fe("p",{className:"font-normal text-base text-left",children:"Download the Flare app for easy access to your workplace benefits and exclusive discounts."}),Fe(ca,{className:"self-start font-bold",target:"_blank",rel:"noreferrer",href:"https://flarehr.app.link/download",onClick:async()=>{},children:["Get the Flare App ","->"]})]})]}),da={title:"You’re all set!",description:"You’ve finished setting up your benefits plan. Continue to review your details and finish up your workplace onboarding.",buttonText:"Finish benefits set up"},pa=({onContinue:e})=>{const{identity:{email:t},offersProgress:{hasEnrolled:n},isAppEnabled:r,featureFlags:{marketplaceScheme:o}}=Se(Be),{trace:i}=aa(),a=ke((()=>{const e=n();switch(!0){case r&&e:return"allowance-accepted-app";case r&&!e:return"allowance-declined-app";case!r&&e:return"allowance-accepted-noapp";case!r&&!e:return"allowance-declined-noapp";default:throw"Invalid summary variant"}}),[n,r]);_e((()=>{(async()=>{await i({type:"summary-viewed",data:{summaryVariant:a}},{experiment:"onboarding-marketplace-scheme",treatment:o})})()}),[o,a,i]);const s=Ee((async()=>{await i("completed",{experiment:"onboarding-marketplace-scheme",treatment:o}),await e()}),[o,e,i]),l=ke((()=>n()?(e=>({title:"Congratulations, you’ve unlocked your benefits allowance",description:`We’ve sent an email to ${e} with more information about your benefits program and how you can get reimbursed as part of your allowance`,buttonText:"Finish benefits set up",progress:{title:"How this works?",steps:[{title:"Join your workplace benefits program",completed:!0},{title:"Configure your benefits plan",completed:!0},{title:"Purchase within 30 days*",description:"Make sure you complete your benefit purchase in the first 30 days of your enrolment",completed:!1},{title:"Get reimbursed after 90 days*",completed:!1}]}}))(t):da),[t,n]);return Fe(Or,{children:[Fe(Or.Top,{children:Fe("div",{className:"flex flex-col gap-4",children:[Fe(We,{children:l.title}),Fe(qe,{children:l.description})]})}),Fe(Or.Bottom,{children:Fe("div",{className:"mt-5 flex flex-col items-center gap-5 text-center",children:[l.progress&&Fe(Jt,{title:l.progress.title,steps:l.progress.steps,className:"rounded-md px-6 py-4 lg:w-3/4",style:{background:"linear-gradient(90deg, rgba(255, 135, 111, 0.10) 0%, rgba(166, 80, 255, 0.10) 100%)"}}),Fe(ze,{class:"mt-5 w-full md:w-[240px]",onClickPromise:s,children:l.buttonText}),r&&Fe(ua,{})]})})]})};var fa=(e=>(e[e.PHONE_NUMBER=0]="PHONE_NUMBER",e[e.OTP=1]="OTP",e[e.SUCCESS=2]="SUCCESS",e))(fa||{});const ma=({className:e,children:t,...n})=>Fe("label",{class:`text-base text-gray-600 ${e??""}`,...n,children:t}),ha=e=>v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"green",className:"w-5 h-5",...e},v("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"})),ga=({className:e,allowedKeyPattern:t,onChange:n,value:r,leadingIconElement:o,trailingIconElement:i,...a})=>{const s=Ee((e=>{t.test(e.key)||e.preventDefault()}),[t]);return Fe(E,{children:Fe("div",{class:"relative",children:[o,Fe("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:s,onChange:e=>n(e.currentTarget.value),...a}),i]})})},ya=e=>e.replace(/ /g,""),ba=e=>{const t=ya(e);return t.startsWith("04")&&10===t.length||t.startsWith("614")&&11===t.length||t.startsWith("+614")&&12===t.length||/^\+642\d{7,9}$/.test(t)},_a=({phoneNumber:e,onSubmit:t,onDecline:n})=>{const{trace:r}=aa(),[o,i]=ye(""),{setPhoneNumber:a,phoneNumber:s}=(e=>{const{identity:t}=Se(Be),[n,r]=ye((()=>e&&ba(e)?e:"")),o=ke((()=>ba(n)),[n]),i=ke((()=>ya(n)),[n]),a=ke((()=>i.startsWith("04")?`+61${i.replace(/^0+/,"")}`:i.startsWith("614")?`+${i}`:i),[i]),s=ke((()=>(e=>{let t=0;return"#### ### ### ### ### ### ###".replace(/#/g,(()=>e[t++]??"")).trim()})(i)),[i]),l=ke((()=>ba(t.verifiedPhoneNumber)&&a===t.verifiedPhoneNumber),[a,t.verifiedPhoneNumber]);return{setPhoneNumber:r,phoneNumber:{valid:o,original:n,formatted:a,masked:s,isVerified:l}}})(e),[l,c]=ye(s.isVerified);_e((()=>{(async()=>{await r("sign-up-viewed")})()}),[r]);const u=Ee((()=>{i("")}),[]),d=Ee((()=>{const e=s.valid?"":"Please enter a valid Australian mobile number beginning with 04.";i(e),c(s.isVerified)}),[s.isVerified,s.valid]),p=Ee((async()=>{s.valid&&await t(s).then((async()=>await r("sign-up-completed"))).catch(i)}),[s,t,r]),f=Ee((()=>r("sign-up-declined").then(n)),[n,r]),m=Ee((async()=>{c(!1)}),[]),h=Fe("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 ",Fe(ha,{})]});return Fe(Or,{children:[Fe(Or.Top,{children:Fe("div",{className:"flex flex-col gap-5",children:[Fe(We,{children:"Join your workplace benefits program"}),Fe(qe,{children:[s.isVerified?"Confirm ":"Enter "," your ",Fe("b",{children:"personal"})," mobile number to finish setting up your Flare Benefits account linked to your workplace"]})]})}),Fe(Or.Bottom,{children:Fe("div",{className:"mt-5 md:w-[300px] text-left",children:[Fe(ma,{className:"font-medium text-sm text-gray-900 text-left",children:"Australian Mobile Number"}),Fe(ga,{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&&Fe("div",{className:"h-8 leading-none",children:Fe("span",{className:"text-xs text-rose-500",children:o})}),l&&Fe("div",{className:"mt-2 ml-2 mb-2 leading-none",children:Fe("span",{className:"text-xs",children:["Not your personal number?",Fe(ca,{class:"text-blue-500",onClick:m,children:"Change number"})]})}),Fe("div",{children:Fe("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"," ",Fe("a",{href:"https://www.flarehr.com/flare-app-terms-and-conditions/",target:"_blank",rel:"noreferrer",children:" Terms of Use "}),"and",Fe("a",{href:"https://www.flarehr.com/privacy-policy/",target:"_blank",rel:"noreferrer",children:" Privacy Policy"}),"."," "]})}),Fe(ze,{class:"mt-5 md:w-full",onClickPromise:p,children:"Join your workplace"}),Fe(ze,{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"})]})})]})},wa=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/check-animated-QQOZQPLY.gif?inline").href:new URL("assets/check-animated-QQOZQPLY.gif?inline","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),va=({onContinue:e})=>{const{featureFlags:{marketplaceScheme:t}}=Se(Be),n=ke((()=>"allowance"===t?{title:"Account created successfully",description:"You now have access to your workplace benefits",isNextButtonHidden:!0}:{title:"You’ve joined your workplace benefits program",description:"With your new Flare Benefits account, you now have access to a range of exclusive benefits available through your workplace.",isNextButtonHidden:!1}),[t]);return _e((()=>{if("allowance"===t){const t=setTimeout(e,3e3);return()=>clearTimeout(t)}}),[t,e]),Fe(Or,{children:[Fe(Or.Top,{children:Fe("img",{src:wa,className:"h-16 w-16"})}),Fe(Or.Bottom,{children:Fe("div",{className:"mt-5 flex flex-col items-center gap-5 text-center",children:[Fe(We,{children:n.title}),Fe(qe,{children:n.description}),!n.isNextButtonHidden&&Fe(ze,{class:"mt-5 w-full md:w-[240px]",onClickPromise:async()=>{e()},children:"Set up your benefits"})]})})]})},xa=e=>v("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,viewBox:"0 -960 960 960",width:24,fill:"currentColor",...e},v("path",{d:"m313-440 224 224-57 56-320-320 320-320 57 56-224 224h487v80H313Z"})),ka=({children:e,...t})=>Fe("dialog",{className:"z-50 w-full h-full absolute top-0 left-0 bottom-0 right-0",...t,children:e}),Ea=({open:e})=>Fe(ka,{open:e,children:Fe("div",{className:"flex flex-col gap-5 items-center justify-center text-center mt-20",children:[Fe("span",{class:"animate-spin",children:Fe(De,{size:"lg"})}),Fe(We,{children:"Creating your account"}),Fe("div",{children:[Fe(qe,{children:"This can take up to 30 seconds."}),Fe(qe,{children:"Please don't navigate away or refresh your browser."})]})]})}),Sa=({phoneNumber:e,onVerify:t,onResendOtp:n,onGoBack:r})=>{const{otp:o,setOtp:i}=(()=>{const[e,t]=ye("");return{otp:{valid:ke((()=>6===e.length),[e.length]),code:e},setOtp:t}})(),[a,s]=ye(!1),[l,c]=ye(""),{countdown:u,restart:d}=(e=>{const[t,n]=ye(e),r=ve(),o=Ee((()=>{clearInterval(r.current)}),[]);return _e((()=>o),[o]),{countdown:t,restart:Ee((()=>{let t=e;clearInterval(r.current),r.current=setInterval((()=>{t<0?clearInterval(r.current):n(t--)}),1e3)}),[e])}})(60);_e(d,[d]);const p=Ee((()=>(s(!0),c(""),t(o.code).catch(c).finally((()=>{s(!1)})))),[t,o.code]),f=Ee((()=>(c(""),n().then(d).catch(c))),[n,d]);return Fe(E,{children:[Fe(Ea,{open:a}),Fe(Or,{children:[Fe(Or.Top,{children:Fe("div",{className:"flex flex-col gap-5",children:[Fe(We,{children:"Verify your mobile number"}),Fe(qe,{children:["An SMS verification code has been sent to the number ",e,"."]})]})}),Fe(Or.Bottom,{children:Fe("div",{className:"mt-5 md:w-[300px] text-left",children:[Fe(ma,{className:"font-medium text-sm text-gray-900 text-left",children:"Enter your verification code"}),Fe(ga,{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&&Fe("span",{className:"text-xs text-rose-500",children:l}),Fe("p",{class:"mt-2 text-center text-xs text-gray-600 disabled:opacity-75 ",children:["Didn't get the code?",Fe(ca,{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&&Fe(E,{children:["in ",u," secs"]})]}),Fe(ze,{class:"mt-5 md:w-full",disabled:!o.valid,onClickPromise:p,children:"Continue"}),Fe(ze,{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:Fe("span",{className:"flex gap-3",children:[Fe(xa,{}),"Back"]})})]})})]})]})},Ta=({phoneNumber:e,onSignUp:t,onVerify:n,onResendOtp:r,onSuccess:o,onDecline:i})=>{const[a,s]=ye(e??""),{step:l,goBack:c,goToStep:u}=(()=>{const[e,t]=ye(0),n=Ee((()=>{const n=e-1;n>=0&&t(n)}),[e]),r=Ee((e=>{e<=2&&t(e)}),[e]);return{step:e,goBack:n,goToStep:r}})(),d=Ee((e=>t(e.formatted).then((t=>{s(e.masked),u(t.isVerificationRequired?fa.OTP:fa.SUCCESS)}))),[u,t]),p=Ee((e=>n(e).then((()=>{u(fa.SUCCESS)}))),[u,n]);return Fe(E,{children:[l===fa.PHONE_NUMBER&&Fe(_a,{phoneNumber:a,onSubmit:d,onDecline:i}),l===fa.OTP&&Fe(Sa,{phoneNumber:a,onVerify:p,onResendOtp:r,onGoBack:c}),l===fa.SUCCESS&&Fe(va,{onContinue:o})]})},Ca="Onboarding",Na="onboarding";var Aa=(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))(Aa||{});const Oa=e=>{var t;const n=null==(t=null==e?void 0:e.response)?void 0:t.data;throw Aa[null==n?void 0:n.code]??"Sorry, we are currently experiencing some issues. Please try again later."},Ra=({onSuccess:e,onDecline:t})=>{const{identity:{phoneNumber:n}}=Se(Be),{signUp:r,verifyOtp:o,resendOtp:i}={signUp:async e=>na.backend.getClient().post("v2.0/auth/signUp",{mobileNumber:e,source:Ca,channel:Na}).then((e=>({isVerificationRequired:e.data.isVerificationRequired??!0}))),verifyOtp:async e=>{await na.backend.getClient().post("auth/verify",{otp:e,source:Ca,channel:Na}).catch(Oa)},resendOtp:async()=>{await na.backend.getClient().post("auth/resend").catch(Oa)}};return Fe(E,{children:Fe(Ta,{phoneNumber:n,onSignUp:r,onVerify:o,onResendOtp:i,onSuccess:e,onDecline:t})})},Pa=""+("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&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),La=e=>{const{trace:t}=aa(),{featureFlags:{marketplaceScheme:n}}=Se(Be);return Fe(Or,{children:[Fe(Or.Top,{children:Fe("img",{class:"max-w-[30rem] w-full",src:Pa})}),Fe(Or.Bottom,{children:Fe("div",{children:[Fe("h3",{class:"mt-8 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:"Finish setting up your workplace benefits"}),Fe("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."}),Fe(ze,{class:"mt-8",onClickPromise:async()=>{await t("started",{experiment:"onboarding-marketplace-scheme",treatment:n}),e.onStepComplete()},children:"Continue"})]})})]})};function Ia(){return Ia=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ia.apply(null,arguments)}function Ua(e,t){return(Ua=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Fa(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;
1
+ var __defProp=Object.defineProperty,__typeError=e=>{throw TypeError(e)},__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),__accessCheck=(e,t,n)=>t.has(e)||__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)=>t.has(e)?__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={},g=[],y=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,_=Array.isArray;function b(e,t){for(var n in t)e[n]=t[n];return e}function w(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,n){var r,o,i,a={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?s.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return x(e,a,r,o,null)}function x(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?++c:o,__i:-1,__u:0};return null==o&&null!=l.vnode&&l.vnode(i),i}function C(){return{current:null}}function k(e){return e.children}function E(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 T(e,t,n){var r,o=e.__v,i=o.__e,a=e.__P;if(a)return(r=b({},o)).__v=o.__v+1,l.vnode&&l.vnode(r),j(a,r,o,e.__n,void 0!==a.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 A(e){(!e.__d&&(e.__d=!0)&&u.push(e)&&!O.__r++||d!==l.debounceRendering)&&((d=l.debounceRendering)||p)(O)}function O(){var e,t,n,r=[],o=[];for(u.sort(f);e=u.shift();)e.__d&&(n=u.length,t=T(e,r,o)||t,0===n||u.length>n?(B(r,t,o),o.length=r.length=0,t=void 0,u.sort(f)):t&&l.__c&&l.__c(t,g));t&&B(r,t,o),O.__r=0}function R(e,t,n,r,o,i,a,s,l,c,u){var d,p,f,m,y,b=r&&r.__k||g,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?x(null,o,null,null,o):_(o)?x(k,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?x(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,s=I(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)),z(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)),z(i,i))}(n,t,b),l=n.__d,d=0;d<w;d++)null!=(f=n.__k[d])&&"boolean"!=typeof f&&"function"!=typeof f&&(p=-1===f.__i?h:b[f.__i]||h,f.__i=d,j(e,f,p,o,i,a,s,l,c,u),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&H(p.ref,null,f),u.push(f.ref,f.__c||m,f)),null==y&&null!=m&&(y=m),65536&f.__u||p.__k===f.__k?l=P(f,l,e):"function"==typeof f.type&&void 0!==f.__d?l=f.__d:m&&(l=m.nextSibling),f.__d=void 0,f.__u&=-196609);n.__d=l,n.__e=y}function P(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=P(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 L(e,t){return t=t||[],null==e||"boolean"==typeof e||(_(e)?e.some((function(e){L(e,t)})):t.push(e)),t}function I(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 U(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||y.test(t)?n:n+"px"}function F(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||U(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||U(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?M:D,i)):e.removeEventListener(t,i?M: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(l.event?l.event(e):e)}}function M(e){if(this.l)return this.l[e.type+!0](l.event?l.event(e):e)}function j(e,t,n,r,o,i,a,c,u,d){var p,f,m,g,y,v,x,C,T,N,A,O,P,L,I,U=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(u=!!(32&n.__u),i=[c=t.__e=n.__e]),(p=l.__b)&&p(t);e:if("function"==typeof U)try{if(C=t.props,T=(p=U.contextType)&&r[p.__c],N=p?T?T.props.value:p.__:r,n.__c?x=(f=t.__c=n.__c).__=f.__E:("prototype"in U&&U.prototype.render?t.__c=f=new U(C,N):(t.__c=f=new E(C,N),f.constructor=U,f.render=W),T&&T.sub(f),f.props=C,f.state||(f.state={}),f.context=N,f.__n=r,m=f.__d=!0,f.__h=[],f._sb=[]),null==f.__s&&(f.__s=f.state),null!=U.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=b({},f.__s)),b(f.__s,U.getDerivedStateFromProps(C,f.__s))),g=f.props,y=f.state,f.__v=t,m)null==U.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==U.getDerivedStateFromProps&&C!==g&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(C,N),!f.__e&&(null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(C,f.__s,N)||t.__v===n.__v)){for(t.__v!==n.__v&&(f.props=C,f.state=f.__s,f.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),A=0;A<f._sb.length;A++)f.__h.push(f._sb[A]);f._sb=[],f.__h.length&&a.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(C,f.__s,N),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(g,y,v)}))}if(f.context=N,f.props=C,f.__P=e,f.__e=!1,O=l.__r,P=0,"prototype"in U&&U.prototype.render){for(f.state=f.__s,f.__d=!1,O&&O(t),p=f.render(f.props,f.state,f.context),L=0;L<f._sb.length;L++)f.__h.push(f._sb[L]);f._sb=[]}else do{f.__d=!1,O&&O(t),p=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++P<25);f.state=f.__s,null!=f.getChildContext&&(r=b(b({},r),f.getChildContext())),m||null==f.getSnapshotBeforeUpdate||(v=f.getSnapshotBeforeUpdate(g,y)),R(e,_(I=null!=p&&p.type===k&&null==p.key?p.props.children:p)?I:[I],t,n,r,o,i,a,c,u,d),f.base=t.__e,t.__u&=-161,f.__h.length&&a.push(f),x&&(f.__E=f.__=null)}catch(D){t.__v=null,u||null!=i?(t.__e=c,t.__u|=u?160:32,i[i.indexOf(c)]=null):(t.__e=n.__e,t.__k=n.__k),l.__e(D,t,n)}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,o,i,a,l,c){var u,d,p,f,m,g,y,b=n.props,v=t.props,x=t.type;if("svg"===x&&(o=!0),null!=i)for(u=0;u<i.length;u++)if((m=i[u])&&"setAttribute"in m==!!x&&(x?m.localName===x:3===m.nodeType)){e=m,i[u]=null;break}if(null==e){if(null===x)return document.createTextNode(v);e=o?document.createElementNS("http://www.w3.org/2000/svg",x):document.createElement(x,v.is&&v),i=null,l=!1}if(null===x)b===v||l&&e.data===v||(e.data=v);else{if(i=i&&s.call(e.childNodes),b=n.props||h,!l&&null!=i)for(b={},u=0;u<e.attributes.length;u++)b[(m=e.attributes[u]).name]=m.value;for(u in b)m=b[u],"children"==u||("dangerouslySetInnerHTML"==u?p=m:"key"===u||u in v||F(e,u,null,m,o));for(u in v)m=v[u],"children"==u?f=m:"dangerouslySetInnerHTML"==u?d=m:"value"==u?g=m:"checked"==u?y=m:"key"===u||l&&"function"!=typeof m||b[u]===m||F(e,u,m,b[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=""),R(e,_(f)?f:[f],t,n,r,o&&"foreignObject"!==x,i,a,i?i[0]:n.__k&&S(n,0),l,c),null!=i)for(u=i.length;u--;)null!=i[u]&&w(i[u]);l||(u="value",void 0!==g&&(g!==e[u]||"progress"===x&&!g||"option"===x&&g!==b[u])&&F(e,u,g,b[u],!1),u="checked",void 0!==y&&y!==e[u]&&F(e,u,y,b[u],!1))}return e}(n.__e,t,n,r,o,i,a,u,d);(p=l.diffed)&&p(t)}function B(e,t,n){for(var r=0;r<n.length;r++)H(n[r],n[++r],n[++r]);l.__c&&l.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(n){l.__e(n,t.__v)}}))}function H(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(r){l.__e(r,n)}}function z(e,t,n){var r,o;if(l.unmount&&l.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||H(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){l.__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]&&z(r[o],t,n||"function"!=typeof e.type);n||null==e.__e||w(e.__e),e.__=e.__e=e.__d=void 0}function W(e,t,n){return this.constructor(e,n)}function q(e,t,n){var r,o,i,a;l.__&&l.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,i=[],a=[],j(t,e=(!r&&n||t).__k=v(k,null,[e]),o||h,h,void 0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?s.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,a),e.__d=void 0,B(i,e,a)}function V(e,t){q(e,t,V)}function G(e,t,n){var r,o,i,a,l=b({},e.props);for(i in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)"key"==i?r=t[i]:"ref"==i?o=t[i]:l[i]=void 0===t[i]&&void 0!==a?a[i]:t[i];return arguments.length>2&&(l.children=arguments.length>3?s.call(arguments,2):n),x(e.type,l,r||e.key,o||e.ref,null)}function $(e,t){var n={__c:t="__cC"+m++,__: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,A(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 Y(){return(Y=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)}s=g.slice,l={__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}},c=0,E.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),A(this))},E.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),A(this))},E.prototype.render=k,u=[],p="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f=function(e,t){return e.__v.__b-t.__v.__b},O.__r=0,m=0;var Z=["context","children"];function K(e){return this.getChildContext=function(){return e.context},G(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,Z))}function J(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=v(K,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[X(a[i].name)]=a[i].value);for(i=s.length;i--;){var l=e(s[i],null),c=s[i].slot;c?o[c]=v(te,{name:c},l):r[i]=l}var u=n?v(te,null,r):r;return v(n||t.nodeName.toLowerCase(),o,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?V:q)(this._vdom,this._root)}function X(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function Q(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[X(e)]=n,this._vdom=G(this._vdom,r),q(this._vdom,this._root)}}function ee(){q(this._vdom=null,this._root)}function te(e,t){var n=this;return v("slot",Y({},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 ne,re,oe,ie,ae=0,se=[],le=[],ce=l,ue=ce.__b,de=ce.__r,pe=ce.diffed,fe=ce.__c,me=ce.unmount,he=ce.__;function ge(e,t){ce.__h&&ce.__h(re,e,ae||t),ae=0;var n=re.__H||(re.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:le}),n.__[e]}function ye(e){return ae=1,_e(Ie,e)}function _e(e,t,n){var r=ge(ne++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Ie(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=re,!re.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))};re.u=!0;var i=re.shouldComponentUpdate,a=re.componentWillUpdate;re.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)},re.shouldComponentUpdate=o}return r.__N||r.__}function be(e,t){var n=ge(ne++,3);!ce.__s&&Le(n.__H,t)&&(n.__=e,n.i=t,re.__H.__h.push(n))}function we(e,t){var n=ge(ne++,4);!ce.__s&&Le(n.__H,t)&&(n.__=e,n.i=t,re.__h.push(n))}function ve(e){return ae=5,Ce((function(){return{current:e}}),[])}function xe(e,t,n){ae=6,we((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 Ce(e,t){var n=ge(ne++,7);return Le(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function ke(e,t){return ae=8,Ce((function(){return e}),t)}function Ee(e){var t=re.context[e.__c],n=ge(ne++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(re)),t.props.value):e.__}function Se(e,t){ce.useDebugValue&&ce.useDebugValue(t?t(e):e)}function Te(){var e=ge(ne++,11);if(!e.__){for(var t=re.__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=se.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Re),e.__H.__h.forEach(Pe),e.__H.__h=[]}catch(dn){e.__H.__h=[],ce.__e(dn,e.__v)}}ce.__b=function(e){re=null,ue&&ue(e)},ce.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),he&&he(e,t)},ce.__r=function(e){de&&de(e),ne=0;var t=(re=e.__c).__H;t&&(oe===re?(t.__h=[],re.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=le,e.__N=e.i=void 0}))):(t.__h.forEach(Re),t.__h.forEach(Pe),t.__h=[],ne=0)),oe=re},ce.diffed=function(e){pe&&pe(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==se.push(t)&&ie===ce.requestAnimationFrame||((ie=ce.requestAnimationFrame)||Oe)(Ne)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==le&&(e.__=e.__V),e.i=void 0,e.__V=le}))),oe=re=null},ce.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Re),e.__h=e.__h.filter((function(e){return!e.__||Pe(e)}))}catch(Wn){t.some((function(e){e.__h&&(e.__h=[])})),t=[],ce.__e(Wn,e.__v)}})),fe&&fe(e,t)},ce.unmount=function(e){me&&me(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Re(e)}catch(n){t=n}})),n.__H=void 0,t&&ce.__e(t,n.__v))};var Ae="function"==typeof requestAnimationFrame;function Oe(e){var t,n=function(){clearTimeout(r),Ae&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Ae&&(t=requestAnimationFrame(n))}function Re(e){var t=re,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),re=t}function Pe(e){var t=re;e.__c=e.__(),re=t}function Le(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Ie(e,t){return"function"==typeof t?t(e):t}var Ue=0;function Fe(e,t,n,r,o,i){var a,s,c={};for(s in t)"ref"==s?a=t[s]:c[s]=t[s];var u={type:e,props:c,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--Ue,__i:-1,__u:0,__source:o,__self:i};if("function"==typeof e&&(a=e.defaultProps))for(s in a)void 0===c[s]&&(c[s]=a[s]);return l.vnode&&l.vnode(u),u}const De=e=>Fe("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:[Fe("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"}),Fe("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"})]}),Me=[],je={offers:[],isComplete:!1,isAppEnabled:!1,identity:{email:"",phoneNumber:"",verifiedPhoneNumber:"",registrationStatus:"Unregistered"},workplace:{employerName:"",linkingStatus:"Unlinked"},featureFlags:{marketplaceScheme:"promotion",marketplaceSubNavigation:!1},updateIdentity:e=>({}),offersProgress:{get:()=>Me,update:(e,t)=>{const n=Me.findIndex((t=>t.offerName===e));-1!==n&&Me.slice(n,1),Me.push({offerName:e,isEnrolled:t})},hasEnrolled:()=>Me.some((e=>"Perks"!==e.offerName&&e.isEnrolled))}},Be=$(je),He='/*! 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-50{z-index:50}.m-0{margin:0}.m-0\\.5{margin:.125rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.mr-10{margin-right:2.5rem}.mr-3{margin-right:.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}.line-clamp-2{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.hidden{display:none}.h-10{height:2.5rem}.h-12{height:3rem}.h-16{height:4rem}.h-4{height:1rem}.h-40{height:10rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-\\[90\\%\\]{height:90%}.h-full{height:100%}.max-h-10{max-height:2.5rem}.max-h-12{max-height:3rem}.max-h-6{max-height:1.5rem}.max-h-8{max-height:2rem}.min-h-12{min-height:3rem}.min-h-6{min-height:1.5rem}.min-h-8{min-height:2rem}.w-10{width:2.5rem}.w-16{width:4rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-full{width:100%}.min-w-10{min-width:2.5rem}.min-w-6{min-width:1.5rem}.min-w-8{min-width:2rem}.max-w-10{max-width:2.5rem}.max-w-20{max-width:5rem}.max-w-6{max-width:1.5rem}.max-w-8{max-width:2rem}.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-1{flex:1 1 0%}.-translate-y-6{--tw-translate-y:-1.5rem}.-translate-y-6,.translate-y-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) 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}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-auto{cursor:auto}.flex-col{flex-direction:column}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.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)))}.self-start{align-self:flex-start}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.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-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-primary-base{border-color:var(--fl-color-primary)}.border-transparent{border-color:transparent}.bg-primary-base{background-color:var(--fl-color-primary)}.bg-teal-50{--tw-bg-opacity:1;background-color:rgb(240 253 250/var(--tw-bg-opacity))}.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-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-6{padding-left:1.5rem;padding-right:1.5rem}.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-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.pb-6{padding-bottom:1.5rem}.pb-8{padding-bottom:2rem}.pl-3{padding-left:.75rem}.pr-3{padding-right:.75rem}.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}.leading-tight{line-height:1.25}.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-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/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-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-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)}.delay-300{transition-delay:.3s}.duration-300{transition-duration:.3s}.duration-700{transition-duration:.7s}.duration-\\[600ms\\]{transition-duration:.6s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:left-4:after{content:var(--tw-content);left:1rem}.after\\:top-8:after{content:var(--tw-content);top:2rem}.after\\:inline-block:after{content:var(--tw-content);display:inline-block}.after\\:h-\\[calc\\(100\\%-theme\\(height\\.8\\)\\)\\]:after{content:var(--tw-content);height:calc(100% - 2rem)}.after\\:w-0:after{content:var(--tw-content);width:0}.after\\:w-0\\.5:after{content:var(--tw-content);width:.125rem}.after\\:bg-gray-300:after{content:var(--tw-content);--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.after\\:bg-primary-base:after{background-color:var(--fl-color-primary);content:var(--tw-content)}.after\\:content-\\[\\\'\\\'\\]:after{--tw-content:"";content:var(--tw-content)}.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\\:ring-gray-500:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(107 114 128/var(--tw-ring-opacity))}.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\\:mb-4{margin-bottom:1rem}.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}}@media (min-width:1024px){.lg\\:-m-8{margin:-2rem}.lg\\:w-3\\/4{width:75%}}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:absolute:not(:last-child):after{position:absolute}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:left-10:not(:last-child):after{left:2.5rem}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:top-3:not(:last-child):after{top:.75rem}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:w-10:not(:last-child):after{width:2.5rem}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:border-b-2:not(:last-child):after{border-bottom-width:2px}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:border-solid:not(:last-child):after{border-style:solid}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:border-gray-200:not(:last-child):after{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:content-\\[\\"\\"\\]:not(:last-child):after{--tw-content:"";content:var(--tw-content)}';const ze=e=>{const[t,n]=ye(!1);return Fe("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:[Fe("div",{class:""+(t?"invisible":""),children:e.children}),t&&Fe("div",{class:"absolute animate-spin",children:Fe(De,{theme:"light"})})]})},We=({className:e,children:t})=>Fe("h1",{className:`text-2xl md:text-3xl font-bold ${e??""}`,children:t}),qe=({className:e,children:t})=>Fe("h3",{class:`text-base md:text-lg text-gray-600 ${e??""}`,children:t});function Ve(e,t){for(var n in t)e[n]=t[n];return e}function Ge(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 $e(e,t){this.props=e,this.context=t}function Ye(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:Ge(this.props,e)}function r(t){return this.shouldComponentUpdate=n,v(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}($e.prototype=new E).isPureReactComponent=!0,$e.prototype.shouldComponentUpdate=function(e,t){return Ge(this.props,e)||Ge(this.state,t)};var Ze=l.__b;l.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ze&&Ze(e)};var Ke="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Je(e){function t(t){var n=Ve({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=Ke,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Xe=function(e,t){return null==e?null:L(L(e).map(t))},Qe={map:Xe,forEach:Xe,count:function(e){return e?L(e).length:0},only:function(e){var t=L(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:L},et=l.__e;l.__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);et(e,t,n,r)};var tt=l.unmount;function nt(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=Ve({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return nt(e,t,n)}))),e}function rt(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return rt(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 ot(){this.__u=0,this.t=null,this.__b=null}function it(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function at(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 v(n,o)}return o.displayName="Lazy",o.__f=!0,o}function st(){this.u=null,this.o=null}l.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),tt&&tt(e)},(ot.prototype=new E).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=it(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]=rt(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)},ot.prototype.componentWillUnmount=function(){this.t=[]},ot.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]=nt(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&v(k,null,e.fallback);return o&&(o.__u&=-33),[v(k,null,t.__a?null:e.children),o]};var lt=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 ct(e){return this.getChildContext=function(){return e.context},e.children}function ut(e){var t=this,n=e.i;t.componentWillUnmount=function(){q(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)}}),q(v(ct,{context:t.context},e.__v),t.l)}function dt(e,t){var n=v(ut,{__v:e,i:t});return n.containerInfo=t,n}(st.prototype=new E).__a=function(e){var t=this,n=it(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),lt(t,e,r)):o()};n?n(i):i()}},st.prototype.render=function(e){this.u=null,this.o=new Map;var t=L(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},st.prototype.componentDidUpdate=st.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){lt(e,n,t)}))};var pt="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ft=/^(?: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]/,mt=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ht=/[A-Z0-9]/g,gt="undefined"!=typeof document,yt=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function _t(e,t,n){return null==t.__k&&(t.textContent=""),q(e,t),"function"==typeof n&&n(),e?e.__c:null}function bt(e,t,n){return V(e,t),"function"==typeof n&&n(),e?e.__c:null}E.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(E.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var wt=l.event;function vt(){}function xt(){return this.cancelBubble}function Ct(){return this.defaultPrevented}l.event=function(e){return wt&&(e=wt(e)),e.persist=vt,e.isPropagationStopped=xt,e.isDefaultPrevented=Ct,e.nativeEvent=e};var kt,Et={enumerable:!1,configurable:!0,get:function(){return this.class}},St=l.vnode;l.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||gt&&"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||yt(t.type)?"onfocus"===a?o="onfocusin":"onblur"===a?o="onfocusout":mt.test(o)?o=a:-1===n.indexOf("-")&&ft.test(o)?o=o.replace(ht,"-$&").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=L(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=L(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",Et)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=pt,St&&St(e)};var Tt=l.__r;l.__r=function(e){Tt&&Tt(e),kt=e.__c};var Nt=l.diffed;l.diffed=function(e){Nt&&Nt(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),kt=null};var At={ReactCurrentDispatcher:{current:{readContext:function(e){return kt.__n[e.__c].props.value}}}};function Ot(e){return v.bind(null,e)}function Rt(e){return!!e&&e.$$typeof===pt}function Pt(e){return Rt(e)&&e.type===k}function Lt(e){return Rt(e)?G.apply(null,arguments):e}function It(e){return!!e.__k&&(q(null,e),!0)}function Ut(e){return e&&(e.base||1===e.nodeType&&e)||null}var Ft=function(e,t){return e(t)},Dt=function(e,t){return e(t)},Mt=k;function jt(e){e()}function Bt(e){return e}function Ht(){return[!1,jt]}var zt=we,Wt=Rt;function qt(e,t){var n=t(),r=ye({h:{__:n,v:t}}),o=r[0].h,i=r[1];return we((function(){o.__=n,o.v=t,Vt(o)&&i({h:o})}),[e,n,t]),be((function(){return Vt(o)&&i({h:o}),e((function(){Vt(o)&&i({h:o})}))}),[e]),n}function Vt(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 Gt={useState:ye,useId:Te,useReducer:_e,useEffect:be,useLayoutEffect:we,useInsertionEffect:zt,useTransition:Ht,useDeferredValue:Bt,useSyncExternalStore:qt,startTransition:jt,useRef:ve,useImperativeHandle:xe,useMemo:Ce,useCallback:ke,useContext:Ee,useDebugValue:Se,version:"17.0.2",Children:Qe,render:_t,hydrate:bt,unmountComponentAtNode:It,createPortal:dt,createElement:v,createContext:$,createFactory:Ot,cloneElement:Lt,createRef:C,Fragment:k,isValidElement:Rt,isElement:Wt,isFragment:Pt,findDOMNode:Ut,Component:E,PureComponent:$e,memo:Ye,forwardRef:Je,flushSync:Dt,unstable_batchedUpdates:Ft,StrictMode:Mt,Suspense:ot,SuspenseList:st,lazy:at,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:At};const $t=Object.freeze(Object.defineProperty({__proto__:null,Children:Qe,Component:E,Fragment:k,PureComponent:$e,StrictMode:Mt,Suspense:ot,SuspenseList:st,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:At,cloneElement:Lt,createContext:$,createElement:v,createFactory:Ot,createPortal:dt,createRef:C,default:Gt,findDOMNode:Ut,flushSync:Dt,forwardRef:Je,hydrate:bt,isElement:Wt,isFragment:Pt,isValidElement:Rt,lazy:at,memo:Ye,render:_t,startTransition:jt,unmountComponentAtNode:It,unstable_batchedUpdates:Ft,useCallback:ke,useContext:Ee,useDebugValue:Se,useDeferredValue:Bt,useEffect:be,useErrorBoundary:function(e){var t=ge(ne++,10),n=ye();return t.__=e,re.componentDidCatch||(re.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:Te,useImperativeHandle:xe,useInsertionEffect:zt,useLayoutEffect:we,useMemo:Ce,useReducer:_e,useRef:ve,useState:ye,useSyncExternalStore:qt,useTransition:Ht,version:"17.0.2"},Symbol.toStringTag,{value:"Module"})),Yt=e=>v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...e},v("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"})),Zt=({title:e,steps:t,...n})=>{const r=t.length,o=t.filter((e=>e.completed)).length;return Fe("div",{...n,children:[Fe("h1",{className:"text-lg font-semibold mb-4",children:e}),Fe("ol",{children:t.map(((e,t)=>{const n=o===t;return Fe("li",{className:"relative flex-1 pb-6 "+(t!==r-1?`after:content-[''] after:w-0.5 after:h-[calc(100%-theme(height.8))] ${e.completed?"after:bg-primary-base":"after:bg-gray-300"} after:inline-block after:absolute after:top-8 after:left-4`:""),children:Fe("div",{className:"flex font-medium w-full",children:[Fe("span",{className:`w-8 min-w-8 max-w-8 h-8 min-h-8 max-h-8 ${e.completed?"bg-primary-base":"bg-white"} border-2 ${e.completed||n?"border-primary-base":"border-gray-300"} rounded-full flex justify-center items-center mr-3 text-sm ${n?"text-primary-base":"text-gray-500"}`,children:e.completed?Fe(Yt,{className:"w-4 h-4 text-white"}):t+1}),Fe("div",{children:[Fe("h4",{className:"text-sm text-left font-semibold "+(e.completed||n?"text-primary-base":"text-gray-600"),children:e.title}),Fe("p",{className:"text-sm text-left font-normal",children:e.description})]})]})},e.title)}))})]})};var Kt=Object.defineProperty,Jt=(e,t,n)=>(((e,t,n)=>{t in e?Kt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let Xt=new class{constructor(){Jt(this,"current",this.detect()),Jt(this,"handoffState","pending"),Jt(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}},Qt=(e,t)=>{Xt.isServer?be(e,t):we(e,t)};function en(e){let t=ve(e);return Qt((()=>{t.current=e}),[e]),t}let tn=function(e){let t=en(e);return Gt.useCallback(((...e)=>t.current(...e)),[t])};function nn(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function rn(){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 nn((()=>{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=rn();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 on(){let[e]=ye(rn);return be((()=>()=>e.dispose()),[e]),e}function an(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in $t&&$t.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=ye(Xt.isHandoffComplete);return t&&!1===Xt.isHandoffComplete&&n(!1),be((()=>{!0!==t&&n(!0)}),[t]),be((()=>Xt.handoff()),[]),!e&&t}var sn;let ln=null!=(sn=Gt.useId)?sn:function(){let e=an(),[t,n]=Gt.useState(e?()=>Xt.nextId():null);return Qt((()=>{null===t&&n(Xt.nextId())}),[t]),null!=t?""+t:void 0};function cn(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,cn),r}let un=["[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 dn,pn,fn,mn=((fn=mn||{})[fn.First=1]="First",fn[fn.Previous=2]="Previous",fn[fn.Next=4]="Next",fn[fn.Last=8]="Last",fn[fn.WrapAround=16]="WrapAround",fn[fn.NoScroll=32]="NoScroll",fn),hn=((pn=hn||{})[pn.Error=0]="Error",pn[pn.Overflow=1]="Overflow",pn[pn.Success=2]="Success",pn[pn.Underflow=3]="Underflow",pn),gn=((dn=gn||{})[dn.Previous=-1]="Previous",dn[dn.Next=1]="Next",dn);var yn=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(yn||{}),_n=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(_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 bn=["textarea","input"].join(",");function wn(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}))}function vn(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?n?wn(e):e:function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(un)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}(e);o.length>0&&a.length>1&&(a=a.filter((e=>!o.includes(e)))),r=null!=r?r:i.activeElement;let s,l=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,a.indexOf(r))-1;if(4&t)return Math.max(0,a.indexOf(r))+1;if(8&t)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=32&t?{preventScroll:!0}:{},d=0,p=a.length;do{if(d>=p||d+p<=0)return 0;let e=c+d;if(16&t)e=(e+p)%p;else{if(e<0)return 3;if(e>=p)return 1}s=a[e],null==s||s.focus(u),d+=l}while(s!==i.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,bn))&&n}(s)&&s.select(),2}function xn(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 Cn(e,t){let[n,r]=ye((()=>xn(e)));return Qt((()=>{r(xn(e))}),[e.type,e.as]),Qt((()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")}),[n,t]),n}let kn=Symbol();function En(...e){let t=ve(e);be((()=>{t.current=e}),[e]);let n=tn((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[kn])))?void 0:n}function Sn(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}var Tn,Nn=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Nn||{}),An=((Tn=An||{})[Tn.Unmount=0]="Unmount",Tn[Tn.Hidden=1]="Hidden",Tn);function On({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a,mergeRefs:s}){s=null!=s?s:Pn;let l=Ln(t,e);if(i)return Rn(l,n,r,a,s);let c=null!=o?o:0;if(2&c){let{static:e=!1,...t}=l;if(e)return Rn(t,n,r,a,s)}if(1&c){let{unmount:e=!0,...t}=l;return cn(e?0:1,{0:()=>null,1:()=>Rn({...t,hidden:!0,style:{display:"none"}},n,r,a,s)})}return Rn(l,n,r,a,s)}function Rn(e,t={},n,r,o){let{as:i=n,children:a,refName:s="ref",...l}=Fn(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===k&&Object.keys(Un(l)).length>0){if(!Rt(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)=>Sn(null==e?void 0:e.className(...t),l.className):Sn(null==e?void 0:e.className,l.className),n=t?{className:t}:{};return Lt(u,Object.assign({},Ln(u.props,Un(Fn(l,["ref"]))),d,c,{ref:o(u.ref,c.ref)},n))}return v(i,Object.assign({},Fn(l,["ref"]),i!==k&&c,i!==k&&d),u)}function Pn(...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 Ln(...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 In(e){var t;return Object.assign(Je(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Un(e){let t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}function Fn(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}var Dn=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Dn||{});let Mn=In((function(e,t){var n;let{features:r=1,...o}=e;return On({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"})})),jn=$(null);jn.displayName="OpenClosedContext";var Bn=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Bn||{});function Hn(){return Ee(jn)}function zn({value:e,children:t}){return Gt.createElement(jn.Provider,{value:e},t)}var Wn,qn=((Wn=qn||{}).Space=" ",Wn.Enter="Enter",Wn.Escape="Escape",Wn.Backspace="Backspace",Wn.Delete="Delete",Wn.ArrowLeft="ArrowLeft",Wn.ArrowUp="ArrowUp",Wn.ArrowRight="ArrowRight",Wn.ArrowDown="ArrowDown",Wn.Home="Home",Wn.End="End",Wn.PageUp="PageUp",Wn.PageDown="PageDown",Wn.Tab="Tab",Wn);function Vn(){let e=ve(!1);return Qt((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function Gn({onFocus:e}){let[t,n]=ye(!0),r=Vn();return t?Gt.createElement(Mn,{as:"button",type:"button",features:Dn.Focusable,onFocus:t=>{t.preventDefault();let o,i=50;o=requestAnimationFrame((function t(){if(i--<=0)o&&cancelAnimationFrame(o);else if(e()){if(cancelAnimationFrame(o),!r.current)return;n(!1)}else o=requestAnimationFrame(t)}))}}):null}const $n=$(null);function Yn({children:e}){let t=ve({groups:new Map,get(e,t){var n;let r=this.groups.get(e);r||(r=new Map,this.groups.set(e,r));let o=null!=(n=r.get(t))?n:0;return r.set(t,o+1),[Array.from(r.keys()).indexOf(t),function(){let e=r.get(t);e>1?r.set(t,e-1):r.delete(t)}]}});return v($n.Provider,{value:t},e)}function Zn(e){let t=Ee($n);if(!t)throw new Error("You must wrap your component in a <StableCollection>");let n=function(){var e,t,n;let r=null!=(n=null==(t=null==(e=At)?void 0:e.ReactCurrentOwner)?void 0:t.current)?n:null;if(!r)return Symbol();let o=[],i=r;for(;i;)o.push(i.index),i=i.return;return"$."+o.join(".")}(),[r,o]=t.current.get(e,n);return be((()=>o),[]),r}var Kn=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Kn||{}),Jn=(e=>(e[e.Less=-1]="Less",e[e.Equal=0]="Equal",e[e.Greater=1]="Greater",e))(Jn||{}),Xn=(e=>(e[e.SetSelectedIndex=0]="SetSelectedIndex",e[e.RegisterTab=1]="RegisterTab",e[e.UnregisterTab=2]="UnregisterTab",e[e.RegisterPanel=3]="RegisterPanel",e[e.UnregisterPanel=4]="UnregisterPanel",e))(Xn||{});let Qn={0(e,t){var n;let r=wn(e.tabs,(e=>e.current)),o=wn(e.panels,(e=>e.current)),i=r.filter((e=>{var t;return!(null!=(t=e.current)&&t.hasAttribute("disabled"))})),a={...e,tabs:r,panels:o};if(t.index<0||t.index>r.length-1){let n=cn(Math.sign(t.index-e.selectedIndex),{[-1]:()=>1,0:()=>cn(Math.sign(t.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});if(0===i.length)return a;let o=cn(n,{0:()=>r.indexOf(i[0]),1:()=>r.indexOf(i[i.length-1])});return{...a,selectedIndex:-1===o?e.selectedIndex:o}}let s=r.slice(0,t.index),l=[...r.slice(t.index),...s].find((e=>i.includes(e)));if(!l)return a;let c=null!=(n=r.indexOf(l))?n:e.selectedIndex;return-1===c&&(c=e.selectedIndex),{...a,selectedIndex:c}},1(e,t){var n;if(e.tabs.includes(t.tab))return e;let r=e.tabs[e.selectedIndex],o=wn([...e.tabs,t.tab],(e=>e.current)),i=null!=(n=o.indexOf(r))?n:e.selectedIndex;return-1===i&&(i=e.selectedIndex),{...e,tabs:o,selectedIndex:i}},2:(e,t)=>({...e,tabs:e.tabs.filter((e=>e!==t.tab))}),3:(e,t)=>e.panels.includes(t.panel)?e:{...e,panels:wn([...e.panels,t.panel],(e=>e.current))},4:(e,t)=>({...e,panels:e.panels.filter((e=>e!==t.panel))})},er=$(null);function tr(e){let t=Ee(er);if(null===t){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,tr),t}return t}er.displayName="TabsDataContext";let nr=$(null);function rr(e){let t=Ee(nr);if(null===t){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,rr),t}return t}function or(e,t){return cn(t.type,Qn,e,t)}nr.displayName="TabsActionsContext";let ir=k;let ar=Nn.RenderStrategy|Nn.Static;let sr=In((function(e,t){var n,r;let o=ln(),{id:i=`headlessui-tabs-tab-${o}`,...a}=e,{orientation:s,activation:l,selectedIndex:c,tabs:u,panels:d}=tr("Tab"),p=rr("Tab"),f=tr("Tab"),m=ve(null),h=En(m,t);Qt((()=>p.registerTab(m)),[p,m]);let g=Zn("tabs"),y=u.indexOf(m);-1===y&&(y=g);let _=y===c,b=tn((e=>{var t;let n=e();if(n===hn.Success&&"auto"===l){let e=null==(t=function(e){return Xt.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}(m))?void 0:t.activeElement,n=f.tabs.findIndex((t=>t.current===e));-1!==n&&p.change(n)}return n})),w=tn((e=>{let t=u.map((e=>e.current)).filter(Boolean);if(e.key===qn.Space||e.key===qn.Enter)return e.preventDefault(),e.stopPropagation(),void p.change(y);switch(e.key){case qn.Home:case qn.PageUp:return e.preventDefault(),e.stopPropagation(),b((()=>vn(t,mn.First)));case qn.End:case qn.PageDown:return e.preventDefault(),e.stopPropagation(),b((()=>vn(t,mn.Last)))}return b((()=>cn(s,{vertical:()=>e.key===qn.ArrowUp?vn(t,mn.Previous|mn.WrapAround):e.key===qn.ArrowDown?vn(t,mn.Next|mn.WrapAround):hn.Error,horizontal:()=>e.key===qn.ArrowLeft?vn(t,mn.Previous|mn.WrapAround):e.key===qn.ArrowRight?vn(t,mn.Next|mn.WrapAround):hn.Error})))===hn.Success?e.preventDefault():void 0})),v=ve(!1),x=tn((()=>{var e;v.current||(v.current=!0,null==(e=m.current)||e.focus({preventScroll:!0}),p.change(y),nn((()=>{v.current=!1})))})),C=tn((e=>{e.preventDefault()})),k=Ce((()=>({selected:_})),[_]);return On({ourProps:{ref:h,onKeyDown:w,onMouseDown:C,onClick:x,id:i,role:"tab",type:Cn(e,m),"aria-controls":null==(r=null==(n=d[y])?void 0:n.current)?void 0:r.id,"aria-selected":_,tabIndex:_?0:-1},theirProps:a,slot:k,defaultTag:"button",name:"Tabs.Tab"})})),lr=In((function(e,t){let{defaultIndex:n=0,vertical:r=!1,manual:o=!1,onChange:i,selectedIndex:a=null,...s}=e;const l=r?"vertical":"horizontal",c=o?"manual":"auto";let u=null!==a,d=En(t),[p,f]=_e(or,{selectedIndex:null!=a?a:n,tabs:[],panels:[]}),m=Ce((()=>({selectedIndex:p.selectedIndex})),[p.selectedIndex]),h=en(i||(()=>{})),g=en(p.tabs),y=Ce((()=>({orientation:l,activation:c,...p})),[l,c,p]),_=tn((e=>(f({type:1,tab:e}),()=>f({type:2,tab:e})))),b=tn((e=>(f({type:3,panel:e}),()=>f({type:4,panel:e})))),w=tn((e=>{v.current!==e&&h.current(e),u||f({type:0,index:e})})),v=en(u?e.selectedIndex:p.selectedIndex),x=Ce((()=>({registerTab:_,registerPanel:b,change:w})),[]);Qt((()=>{f({type:0,index:null!=a?a:n})}),[a]),Qt((()=>{if(void 0===v.current||p.tabs.length<=0)return;let e=wn(p.tabs,(e=>e.current));e.some(((e,t)=>p.tabs[t]!==e))&&w(e.indexOf(p.tabs[v.current]))}));let C={ref:d};return Gt.createElement(Yn,null,Gt.createElement(nr.Provider,{value:x},Gt.createElement(er.Provider,{value:y},y.tabs.length<=0&&Gt.createElement(Gn,{onFocus:()=>{var e,t;for(let n of g.current)if(0===(null==(e=n.current)?void 0:e.tabIndex))return null==(t=n.current)||t.focus(),!0;return!1}}),On({ourProps:C,theirProps:s,slot:m,defaultTag:ir,name:"Tabs"}))))})),cr=In((function(e,t){let{orientation:n,selectedIndex:r}=tr("Tab.List");return On({ourProps:{ref:En(t),role:"tablist","aria-orientation":n},theirProps:e,slot:{selectedIndex:r},defaultTag:"div",name:"Tabs.List"})})),ur=In((function(e,t){let{selectedIndex:n}=tr("Tab.Panels");return On({ourProps:{ref:En(t)},theirProps:e,slot:Ce((()=>({selectedIndex:n})),[n]),defaultTag:"div",name:"Tabs.Panels"})})),dr=In((function(e,t){var n,r,o,i;let a=ln(),{id:s=`headlessui-tabs-panel-${a}`,tabIndex:l=0,...c}=e,{selectedIndex:u,tabs:d,panels:p}=tr("Tab.Panel"),f=rr("Tab.Panel"),m=ve(null),h=En(m,t);Qt((()=>f.registerPanel(m)),[f,m]);let g=Zn("panels"),y=p.indexOf(m);-1===y&&(y=g);let _=y===u,b=Ce((()=>({selected:_})),[_]),w={ref:h,id:s,role:"tabpanel","aria-labelledby":null==(r=null==(n=d[y])?void 0:n.current)?void 0:r.id,tabIndex:_?l:-1};return _||null!=(o=c.unmount)&&!o||null!=(i=c.static)&&i?On({ourProps:w,theirProps:c,slot:b,defaultTag:"div",features:ar,visible:_,name:"Tabs.Panel"}):Gt.createElement(Mn,{as:"span","aria-hidden":"true",...w})})),pr=Object.assign(sr,{Group:lr,List:cr,Panels:ur,Panel:dr});function fr(e,...t){e&&t.length>0&&e.classList.add(...t)}function mr(e,...t){e&&t.length>0&&e.classList.remove(...t)}function hr(e,t,n,r){let o=n?"enter":"leave",i=rn(),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=cn(o,{enter:()=>t.enter,leave:()=>t.leave}),l=cn(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=cn(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return mr(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),fr(e,...t.base,...s,...c),i.nextFrame((()=>{mr(e,...t.base,...s,...c),fr(e,...t.base,...s,...l),function(e,t){let n=rn();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,(()=>(mr(e,...t.base,...s),fr(e,...t.base,...t.entered),a())))})),i.dispose}function gr(e=""){return e.split(/\s+/).filter((e=>e.length>1))}let yr=$(null);yr.displayName="TransitionContext";var _r=(e=>(e.Visible="visible",e.Hidden="hidden",e))(_r||{});let br=$(null);function wr(e){return"children"in e?wr(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function vr(e,t){let n=en(e),r=ve([]),o=Vn(),i=on(),a=tn(((e,t=An.Hidden)=>{let a=r.current.findIndex((({el:t})=>t===e));-1!==a&&(cn(t,{[An.Unmount](){r.current.splice(a,1)},[An.Hidden](){r.current[a].state="hidden"}}),i.microTask((()=>{var e;!wr(r)&&o.current&&(null==(e=n.current)||e.call(n))})))})),s=tn((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,An.Unmount)})),l=ve([]),c=ve(Promise.resolve()),u=ve({enter:[],leave:[],idle:[]}),d=tn(((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=tn(((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 Ce((()=>({children:r,register:s,unregister:a,onStart:d,onStop:p,wait:c,chains:u})),[s,a,r,d,p,u,c])}function xr(){}br.displayName="NestingContext";let Cr=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function kr(e){var t;let n={};for(let r of Cr)n[r]=null!=(t=e[r])?t:xr;return n}let Er=Nn.RenderStrategy;let Sr=In((function(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,a=ve(null),s=En(a,t);an();let l=Hn();if(void 0===n&&null!==l&&(n=(l&Bn.Open)===Bn.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,u]=ye(n?"visible":"hidden"),d=vr((()=>{u("hidden")})),[p,f]=ye(!0),m=ve([n]);Qt((()=>{!1!==p&&m.current[m.current.length-1]!==n&&(m.current.push(n),f(!1))}),[m,n]);let h=Ce((()=>({show:n,appear:r,initial:p})),[n,r,p]);be((()=>{if(n)u("visible");else if(wr(d)){let e=a.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&u("hidden")}else u("hidden")}),[n,d]);let g={unmount:o},y=tn((()=>{var t;p&&f(!1),null==(t=e.beforeEnter)||t.call(e)})),_=tn((()=>{var t;p&&f(!1),null==(t=e.beforeLeave)||t.call(e)}));return Gt.createElement(br.Provider,{value:d},Gt.createElement(yr.Provider,{value:h},On({ourProps:{...g,as:k,children:Gt.createElement(Tr,{ref:s,...g,...i,beforeEnter:y,beforeLeave:_})},theirProps:{},defaultTag:k,features:Er,visible:"visible"===c,name:"Transition"})))})),Tr=In((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=ve(null),y=En(g,t),_=null==(n=h.unmount)||n?An.Unmount:An.Hidden,{show:b,appear:w,initial:v}=function(){let e=Ee(yr);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[x,C]=ye(b?"visible":"hidden"),k=function(){let e=Ee(br);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:S}=k;be((()=>E(g)),[E,g]),be((()=>{if(_===An.Hidden&&g.current)return b&&"visible"!==x?void C("visible"):cn(x,{hidden:()=>S(g),visible:()=>E(g)})}),[x,g,E,S,b,_]);let T=en({base:gr(h.className),enter:gr(l),enterFrom:gr(c),enterTo:gr(u),entered:gr(d),leave:gr(p),leaveFrom:gr(f),leaveTo:gr(m)}),N=function(e){let t=ve(kr(e));return be((()=>{t.current=kr(e)}),[e]),t}({beforeEnter:o,afterEnter:i,beforeLeave:a,afterLeave:s}),A=an();be((()=>{if(A&&"visible"===x&&null===g.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[g,x,A]);let O=v&&!w,R=w&&b&&v,P=(()=>!A||O?"idle":b?"enter":"leave")(),L=function(e=0){let[t,n]=ye(e),r=Vn(),o=ke((e=>{r.current&&n((t=>t|e))}),[t,r]),i=ke((e=>Boolean(t&e)),[t]),a=ke((e=>{r.current&&n((t=>t&~e))}),[n,r]),s=ke((e=>{r.current&&n((t=>t^e))}),[n]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:a,toggleFlag:s}}(0),I=tn((e=>cn(e,{enter:()=>{L.addFlag(Bn.Opening),N.current.beforeEnter()},leave:()=>{L.addFlag(Bn.Closing),N.current.beforeLeave()},idle:()=>{}}))),U=tn((e=>cn(e,{enter:()=>{L.removeFlag(Bn.Opening),N.current.afterEnter()},leave:()=>{L.removeFlag(Bn.Closing),N.current.afterLeave()},idle:()=>{}}))),F=vr((()=>{C("hidden"),S(g)}),k),D=ve(!1);!function({immediate:e,container:t,direction:n,classes:r,onStart:o,onStop:i}){let a=Vn(),s=on(),l=en(n);Qt((()=>{e&&(l.current="enter")}),[e]),Qt((()=>{let e=rn();s.add(e.dispose);let n=t.current;if(n&&"idle"!==l.current&&a.current)return e.dispose(),o.current(l.current),e.add(hr(n,r.current,"enter"===l.current,(()=>{e.dispose(),i.current(l.current)}))),e.dispose}),[n])}({immediate:R,container:g,classes:T,direction:P,onStart:en((e=>{D.current=!0,F.onStart(g,e,I)})),onStop:en((e=>{D.current=!1,F.onStop(g,e,U),"leave"===e&&!wr(F)&&(C("hidden"),S(g))}))});let M=h,j={ref:y};return R?M={...M,className:Sn(h.className,...T.current.enter,...T.current.enterFrom)}:D.current&&(M.className=Sn(h.className,null==(r=g.current)?void 0:r.className),""===M.className&&delete M.className),Gt.createElement(br.Provider,{value:F},Gt.createElement(zn,{value:cn(x,{visible:Bn.Open,hidden:Bn.Closed})|L.flags},On({ourProps:j,theirProps:M,defaultTag:"div",features:Er,visible:"visible"===x,name:"Transition.Child"})))})),Nr=In((function(e,t){let n=null!==Ee(yr),r=null!==Hn();return Gt.createElement(Gt.Fragment,null,!n&&r?Gt.createElement(Sr,{ref:t,...e}):Gt.createElement(Tr,{ref:t,...e}))})),Ar=Object.assign(Sr,{Child:Nr,Root:Sr});const Or=({children:e})=>{const t=Gt.Children.toArray(e),n=t.find((e=>e.type===Rr)),r=t.find((e=>e.type===Pr));return Fe(Ar,{appear:!0,show:!0,enter:"transition duration-700 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:Fe("div",{class:"mt-20 md:mt-0 flex flex-col text-center items-center max-w-[40rem] mx-auto",children:[Fe(Ar,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:n&&Fe("div",{class:"flex items-center h-full",children:n})}),Fe(Ar,{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&&Fe("div",{class:"flex items-center h-full",children:r})})]})})},Rr=({children:e})=>Fe(k,{children:e}),Pr=({children:e})=>Fe(k,{children:e});Or.Top=Rr,Or.Bottom=Pr;const Lr={title:"Introducing your Thrive at Home Allowance",description:"Thriving at home is as important as thriving at work, so the allowance covers things that matter the most. This allowance is made available to you within the first 30 days of joining your benefits program.",buttonText:"Configure your benefits plan",progress:{title:"How it works?",steps:[{title:"Join your workplace benefits program",description:"Thanks for creating your account. You now have access to your workplace benefits",completed:!0},{title:"Configure your benefits plan",description:"Enrol in the benefits that matter most to you",completed:!1},{title:"Purchase within 30 days*",description:"Make sure you complete your benefit purchase in the first 30 days of joining your workplace benefits program",completed:!1},{title:"Get reimbursed within 90 days*",description:"Based on what you purchased, you will then be reimbursed from your allowance",completed:!1}]},termsAndConditions:()=>Fe("span",{children:["* You must purchase the benefit within 30 days of joining your workplace benefits program to be eligible for reimbursement. Reimbursements will be distributed as a gift card to your email address 90 days after your purchase. Individual eligibility requirements apply. See",Fe("a",{href:"#",children:"Terms and Conditions"})]})},Ir=({onContinue:e})=>Fe(Or,{children:[Fe(Or.Top,{children:Fe("div",{className:"flex flex-col gap-4",children:[Fe(We,{children:Lr.title}),Fe(qe,{children:Lr.description})]})}),Fe(Or.Bottom,{children:Fe("div",{className:"mt-5 flex flex-col items-center gap-5 text-center",children:[Lr.progress&&Fe(Zt,{title:Lr.progress.title,steps:Lr.progress.steps,className:"rounded-md px-6 py-4 lg:w-3/4",style:{background:"linear-gradient(90deg, rgba(255, 135, 111, 0.10) 0%, rgba(166, 80, 255, 0.10) 100%)"}}),Fe(ze,{class:"mt-5 w-full md:w-[240px]",onClickPromise:e,children:Lr.buttonText}),Lr.termsAndConditions&&Fe("span",{className:"font-normal text-xs mt-4 lg:w-3/4",children:Fe(Lr.termsAndConditions,{})})]})})]}),Ur=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/intro_allowance_experiment-DHuWn3lw.png").href:new URL("assets/intro_allowance_experiment-DHuWn3lw.png","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),Fr=e=>v("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v("g",{id:"confetti",clipPath:"url(#clip0_158_3429)"},v("g",{id:"Group"},v("path",{id:"Vector",d:"M0.639604 38.9048C1.28749 39.5527 2.27104 39.7272 3.10223 39.3417L25.6608 29.6295C26.7649 29.1175 27.0229 27.6631 26.1624 26.8025L12.7907 13.4308C11.9301 12.5702 10.4757 12.8282 9.96369 13.9324L0.202679 36.4422C-0.182768 37.2734 -0.00828658 38.2569 0.639604 38.9048Z",fill:"#FFE266"}),v("path",{id:"Vector_2",d:"M19.4314 27.5015L2.84876 34.6409C2.2627 34.9126 1.57431 34.8049 1.09874 34.3755L0.202679 36.4418C-0.182768 37.2731 -0.00828658 38.2566 0.639604 38.9045C1.28749 39.5524 2.27104 39.7268 3.10223 39.3414L25.4444 29.7223C24.9297 29.516 19.5151 27.4627 19.4314 27.5015Z",fill:"#EFAA66"}),v("path",{id:"Vector_3",d:"M26.3181 28.717C27.8596 27.1756 25.6184 22.4352 21.3124 18.1292C17.0064 13.8232 12.2661 11.5821 10.7246 13.1235C9.18318 14.665 11.4243 19.4053 15.7303 23.7113C20.0364 28.0173 24.7767 30.2585 26.3181 28.717Z",fill:"#FFE266"}),v("path",{id:"Vector_4",d:"M22.4126 26.7308C23.4237 25.7197 21.7859 22.4424 18.7543 19.4109C15.7228 16.3793 12.4455 14.7415 11.4344 15.7526C10.4232 16.7638 12.0611 20.0411 15.0926 23.0726C18.1242 26.1042 21.4014 27.742 22.4126 26.7308Z",fill:"#EFAA66"}),v("g",{id:"Group_2"},v("path",{id:"Vector_5",d:"M24.9319 30.007C22.4747 30.007 18.6692 27.7798 15.1683 24.2789C11.9894 21.0999 9.81107 17.5989 9.48367 15.1422C9.42522 14.7032 9.73353 14.2999 10.1725 14.2415C10.6111 14.1832 11.0148 14.4913 11.0732 14.9303C11.3522 17.023 13.4048 20.2474 16.3024 23.145C20.0047 26.8473 23.4188 28.4616 25.0232 28.4016C25.4652 28.3855 25.8386 28.7285 25.8563 29.171C25.8738 29.6135 25.5294 29.9865 25.0868 30.0041C25.0359 30.006 24.984 30.007 24.9319 30.007Z",fill:"#D0844B"})),v("path",{id:"Vector_6",d:"M16.3577 17.6288C16.1695 17.4406 16.0243 17.2041 15.9436 16.9308L15.2021 14.4211C14.922 13.4733 15.1748 12.4578 15.8616 11.7711L17.2095 10.4232C17.8963 9.73629 18.9118 9.48363 19.8596 9.76372L22.5594 10.5257L21.6488 7.27704C21.3908 6.40375 21.8896 5.48668 22.7629 5.22865C23.6362 4.97062 24.5532 5.46944 24.8113 6.34273L25.5528 8.8525C25.8328 9.80036 25.5801 10.8158 24.8934 11.5025L23.5455 12.8504C22.8587 13.5372 21.8432 13.7899 20.8955 13.5098L18.1681 12.6204L19.1061 15.9965C19.3642 16.8698 18.8653 17.7869 17.9921 18.0449C17.3919 18.2222 16.771 18.0421 16.3577 17.6288Z",fill:"#CAB4EF"}),v("path",{id:"Vector_7",d:"M22.5594 10.5256L19.8596 9.76358C19.0449 9.52286 18.1805 9.67602 17.5176 10.1598C17.7032 10.902 17.9393 11.8894 18.168 12.6202L20.8954 13.5096C21.7487 13.7617 22.6567 13.5819 23.3305 13.0424C23.0918 12.2954 22.7865 11.2761 22.5594 10.5256Z",fill:"#A183E2"}),v("path",{id:"Vector_8",d:"M26.8006 16.4549C26.9888 16.6431 27.2253 16.7883 27.4985 16.8689L30.0083 17.6104C30.956 17.8904 31.9715 17.6377 32.6583 16.951L34.0062 15.6031C34.693 14.9162 34.9457 13.9007 34.6656 12.953L33.9036 10.2531L37.1523 11.1636C38.0256 11.4217 38.9427 10.9228 39.2008 10.0496C39.4588 9.17627 38.96 8.2592 38.0867 8.00116L35.5769 7.2597C34.6291 6.97969 33.6136 7.23243 32.9269 7.91914L31.579 9.26704C30.8922 9.95382 30.6396 10.9693 30.9196 11.9171L31.8089 14.6445L28.4328 13.7064C27.5595 13.4483 26.6425 13.9472 26.3844 14.8205C26.2071 15.4206 26.3872 16.0415 26.8006 16.4549Z",fill:"#F7C4DB"}),v("path",{id:"Vector_9",d:"M34.6649 12.9529L33.9029 10.2531C33.1175 10.0838 32.0186 9.86725 31.2346 9.69141C30.8149 10.3373 30.692 11.1493 30.9189 11.9171L31.8082 14.6445C32.6214 14.8453 33.4818 14.9838 34.2625 15.3034C34.7512 14.6394 34.9067 13.771 34.6649 12.9529Z",fill:"#EF8BBD"}),v("path",{id:"Vector_10",d:"M30.639 2.89626C30.1162 3.41906 29.2684 3.41906 28.7456 2.89626C28.2228 2.37345 28.2228 1.52574 28.7456 1.00294C29.2684 0.480139 30.1162 0.480139 30.639 1.00294C31.1618 1.52582 31.1618 2.37345 30.639 2.89626Z",fill:"#FFA585"}),v("path",{id:"Vector_11",d:"M32.6591 25.138C33.3985 25.138 33.9979 24.5386 33.9979 23.7992C33.9979 23.0598 33.3985 22.4604 32.6591 22.4604C31.9197 22.4604 31.3203 23.0598 31.3203 23.7992C31.3203 24.5386 31.9197 25.138 32.6591 25.138Z",fill:"#78EAC4"}),v("path",{id:"Vector_12",d:"M25.3352 24.989C24.8124 25.5118 23.9647 25.5118 23.4419 24.989C22.9191 24.4662 22.9191 23.6185 23.4419 23.0957C23.9647 22.5729 24.8124 22.5729 25.3352 23.0957C25.858 23.6186 25.858 24.4662 25.3352 24.989Z",fill:"#78EAC4"}),v("path",{id:"Vector_13",d:"M25.3352 24.989C24.8124 25.5118 23.9647 25.5118 23.4419 24.989C22.9191 24.4662 22.9191 23.6185 23.4419 23.0957C23.9647 22.5729 24.8124 22.5729 25.3352 23.0957C25.858 23.6186 25.858 24.4662 25.3352 24.989Z",fill:"#8BB6EF"}),v("g",{id:"Group_3"},v("path",{id:"Vector_14",d:"M7.28893 28.9139C7.18316 28.9139 7.07556 28.8928 6.97228 28.8483C6.5655 28.6732 6.37771 28.2015 6.55291 27.7948L7.56837 25.4362C7.74349 25.0295 8.2153 24.8414 8.62191 25.0169C9.02869 25.192 9.21648 25.6636 9.04128 26.0704L8.02582 28.4289C7.8952 28.7323 7.59956 28.9139 7.28893 28.9139Z",fill:"white"})),v("g",{id:"Group_4"},v("path",{id:"Vector_15",d:"M9.44127 23.9159C9.33551 23.9159 9.22798 23.8948 9.12454 23.8503C8.71785 23.6752 8.53005 23.2036 8.70526 22.7967L9.01477 22.0778C9.18989 21.6711 9.66137 21.483 10.0684 21.6585C10.4751 21.8336 10.6629 22.3052 10.4878 22.7121L10.1782 23.431C10.0475 23.7343 9.75182 23.9159 9.44127 23.9159Z",fill:"white"})),v("path",{id:"Vector_16",d:"M15.7341 0.651858L16.3927 2.50396C16.4209 2.58326 16.4767 2.64613 16.5472 2.67788L18.1927 3.41926C18.4251 3.52399 18.4251 3.89436 18.1927 3.99916L16.5472 4.74054C16.4767 4.7723 16.4209 4.83516 16.3927 4.91438L15.7341 6.76648C15.6411 7.02813 15.3119 7.02813 15.2189 6.76648L14.5603 4.91438C14.532 4.83508 14.4762 4.77222 14.4057 4.74054L12.7603 3.99916C12.5278 3.89444 12.5278 3.52407 12.7603 3.41926L14.4057 2.67788C14.4762 2.64613 14.532 2.58326 14.5603 2.50396L15.2189 0.651858C15.3119 0.390136 15.6411 0.390136 15.7341 0.651858Z",fill:"#F7C4DB"}),v("path",{id:"Vector_17",d:"M38.0472 17.3018L38.5357 18.6756C38.5567 18.7344 38.598 18.781 38.6503 18.8046L39.8709 19.3545C40.0434 19.4322 40.0434 19.7069 39.8709 19.7846L38.6503 20.3345C38.598 20.3581 38.5567 20.4047 38.5357 20.4635L38.0472 21.8373C37.9781 22.0314 37.734 22.0314 37.665 21.8373L37.1764 20.4635C37.1555 20.4047 37.1141 20.3581 37.0618 20.3345L35.8413 19.7846C35.6688 19.7069 35.6688 19.4322 35.8413 19.3545L37.0618 18.8046C37.1141 18.781 37.1555 18.7344 37.1764 18.6756L37.665 17.3018C37.734 17.1077 37.9781 17.1077 38.0472 17.3018Z",fill:"#CAB4EF"}),v("path",{id:"Vector_18",d:"M28.9622 6.9561C29.3048 6.9561 29.5826 6.67835 29.5826 6.33572C29.5826 5.99309 29.3048 5.71533 28.9622 5.71533C28.6196 5.71533 28.3418 5.99309 28.3418 6.33572C28.3418 6.67835 28.6196 6.9561 28.9622 6.9561Z",fill:"#78EAC4"}),v("path",{id:"Vector_19",d:"M38.3556 2.49627C38.4328 1.86823 37.9862 1.29654 37.3581 1.21937C36.73 1.14221 36.1583 1.58878 36.0811 2.21683C36.004 2.84487 36.4506 3.41656 37.0787 3.49373C37.7068 3.57089 38.2785 3.12432 38.3556 2.49627Z",fill:"#8BB6EF"}))),v("defs",null,v("clipPath",{id:"clip0_158_3429"},v("rect",{width:40,height:40,fill:"white"})))),Dr=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/intro_allowance_experiment-CtKcTSf8.png").href:new URL("assets/intro_allowance_experiment-CtKcTSf8.png","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),Mr=({icon:e,children:t,className:n,...r})=>Fe("div",{...r,className:`${n??""} rounded-md shadow-sm`,children:Fe("div",{className:"flex items-center gap-4 px-4 py-4",children:[e&&Fe("span",{className:"w-10 min-w-10 max-w-10",children:e}),t&&Fe("span",{className:"text-left text-base",children:t})]})});class jr extends Error{}function Br(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)}}jr.prototype.name="InvalidTokenError";const Hr=crypto.randomUUID?crypto.randomUUID():crypto.getRandomValues(new Uint32Array(5)).join("-"),zr=e=>(window.addEventListener(Hr,e),()=>window.removeEventListener(Hr,e)),Wr=()=>{window.dispatchEvent(new Event(Hr))};function qr(e,t){return function(){return e.apply(t,arguments)}}const{toString:Vr}=Object.prototype,{getPrototypeOf:Gr}=Object,$r=(e=>t=>{const n=Vr.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Yr=e=>(e=e.toLowerCase(),t=>$r(t)===e),Zr=e=>t=>typeof t===e,{isArray:Kr}=Array,Jr=Zr("undefined");const Xr=Yr("ArrayBuffer");const Qr=Zr("string"),eo=Zr("function"),to=Zr("number"),no=e=>null!==e&&"object"==typeof e,ro=e=>{if("object"!==$r(e))return!1;const t=Gr(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},oo=Yr("Date"),io=Yr("File"),ao=Yr("Blob"),so=Yr("FileList"),lo=Yr("URLSearchParams"),[co,uo,po,fo]=["ReadableStream","Request","Response","Headers"].map(Yr);function mo(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),Kr(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 ho(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 go="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,yo=e=>!Jr(e)&&e!==go;const _o=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&Gr(Uint8Array)),bo=Yr("HTMLFormElement"),wo=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),vo=Yr("RegExp"),xo=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};mo(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},Co="abcdefghijklmnopqrstuvwxyz",ko="0123456789",Eo={DIGIT:ko,ALPHA:Co,ALPHA_DIGIT:Co+Co.toUpperCase()+ko};const So=Yr("AsyncFunction"),To=(No="function"==typeof setImmediate,Ao=eo(go.postMessage),No?setImmediate:Ao?(Oo=`axios@${Math.random()}`,Ro=[],go.addEventListener("message",(({source:e,data:t})=>{e===go&&t===Oo&&Ro.length&&Ro.shift()()}),!1),e=>{Ro.push(e),go.postMessage(Oo,"*")}):e=>setTimeout(e));var No,Ao,Oo,Ro;const Po="undefined"!=typeof queueMicrotask?queueMicrotask.bind(go):"undefined"!=typeof process&&process.nextTick||To,Lo={isArray:Kr,isArrayBuffer:Xr,isBuffer:function(e){return null!==e&&!Jr(e)&&null!==e.constructor&&!Jr(e.constructor)&&eo(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||eo(e.append)&&("formdata"===(t=$r(e))||"object"===t&&eo(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Xr(e.buffer),t},isString:Qr,isNumber:to,isBoolean:e=>!0===e||!1===e,isObject:no,isPlainObject:ro,isReadableStream:co,isRequest:uo,isResponse:po,isHeaders:fo,isUndefined:Jr,isDate:oo,isFile:io,isBlob:ao,isRegExp:vo,isFunction:eo,isStream:e=>no(e)&&eo(e.pipe),isURLSearchParams:lo,isTypedArray:_o,isFileList:so,forEach:mo,merge:function e(){const{caseless:t}=yo(this)&&this||{},n={},r=(r,o)=>{const i=t&&ho(n,o)||o;ro(n[i])&&ro(r)?n[i]=e(n[i],r):ro(r)?n[i]=e({},r):Kr(r)?n[i]=r.slice():n[i]=r};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&mo(arguments[o],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(mo(t,((t,r)=>{n&&eo(t)?e[r]=qr(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&&Gr(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:$r,kindOfTest:Yr,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(Kr(e))return e;let t=e.length;if(!to(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:bo,hasOwnProperty:wo,hasOwnProp:wo,reduceDescriptors:xo,freezeMethods:e=>{xo(e,((t,n)=>{if(eo(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];eo(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 Kr(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)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:ho,global:go,isContextDefined:yo,ALPHABET:Eo,generateString:(e=16,t=Eo.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&eo(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(no(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=Kr(e)?[]:{};return mo(e,((e,t)=>{const i=n(e,r+1);!Jr(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:So,isThenable:e=>e&&(no(e)||eo(e))&&eo(e.then)&&eo(e.catch),setImmediate:To,asap:Po};function Io(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)}Lo.inherits(Io,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:Lo.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Uo=Io.prototype,Fo={};["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=>{Fo[e]={value:e}})),Object.defineProperties(Io,Fo),Object.defineProperty(Uo,"isAxiosError",{value:!0}),Io.from=(e,t,n,r,o,i)=>{const a=Object.create(Uo);return Lo.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Io.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function Do(e){return Lo.isPlainObject(e)||Lo.isArray(e)}function Mo(e){return Lo.endsWith(e,"[]")?e.slice(0,-2):e}function jo(e,t,n){return e?e.concat(t).map((function(e,t){return e=Mo(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Bo=Lo.toFlatObject(Lo,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Ho(e,t,n){if(!Lo.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Lo.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Lo.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Lo.isSpecCompliantForm(t);if(!Lo.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Lo.isDate(e))return e.toISOString();if(!s&&Lo.isBlob(e))throw new Io("Blob is not supported. Use a Buffer instead.");return Lo.isArrayBuffer(e)||Lo.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(Lo.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Lo.isArray(e)&&function(e){return Lo.isArray(e)&&!e.some(Do)}(e)||(Lo.isFileList(e)||Lo.endsWith(n,"[]"))&&(s=Lo.toArray(e)))return n=Mo(n),s.forEach((function(e,r){!Lo.isUndefined(e)&&null!==e&&t.append(!0===a?jo([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!Do(e)||(t.append(jo(o,n,i),l(e)),!1)}const u=[],d=Object.assign(Bo,{defaultVisitor:c,convertValue:l,isVisitable:Do});if(!Lo.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Lo.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),Lo.forEach(n,(function(n,i){!0===(!(Lo.isUndefined(n)||null===n)&&o.call(t,n,Lo.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t}function zo(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Wo(e,t){this._pairs=[],e&&Ho(e,this,t)}const qo=Wo.prototype;function Vo(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Go(e,t,n){if(!t)return e;const r=n&&n.encode||Vo,o=n&&n.serialize;let i;if(i=o?o(t,n):Lo.isURLSearchParams(t)?t.toString():new Wo(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}qo.append=function(e,t){this._pairs.push([e,t])},qo.toString=function(e){const t=e?function(t){return e.call(this,t,zo)}:zo;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class $o{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){Lo.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const Yo={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Zo={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Wo,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Ko="undefined"!=typeof window&&"undefined"!=typeof document,Jo=(Xo="undefined"!=typeof navigator&&navigator.product,Ko&&["ReactNative","NativeScript","NS"].indexOf(Xo)<0);var Xo;const Qo="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ei=Ko&&window.location.href||"http://localhost",ti={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ko,hasStandardBrowserEnv:Jo,hasStandardBrowserWebWorkerEnv:Qo,origin:ei},Symbol.toStringTag,{value:"Module"})),...Zo};function ni(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&&Lo.isArray(r)?r.length:i,s)return Lo.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&Lo.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&Lo.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(Lo.isFormData(e)&&Lo.isFunction(e.entries)){const n={};return Lo.forEachEntry(e,((e,r)=>{t(function(e){return Lo.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const ri={transitional:Yo,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Lo.isObject(e);o&&Lo.isHTMLForm(e)&&(e=new FormData(e));if(Lo.isFormData(e))return r?JSON.stringify(ni(e)):e;if(Lo.isArrayBuffer(e)||Lo.isBuffer(e)||Lo.isStream(e)||Lo.isFile(e)||Lo.isBlob(e)||Lo.isReadableStream(e))return e;if(Lo.isArrayBufferView(e))return e.buffer;if(Lo.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 Ho(e,new ti.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return ti.isNode&&Lo.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=Lo.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Ho(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Lo.isString(e))try{return(t||JSON.parse)(e),Lo.trim(e)}catch(Tn){if("SyntaxError"!==Tn.name)throw Tn}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ri.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Lo.isResponse(e)||Lo.isReadableStream(e))return e;if(e&&Lo.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(Tn){if(n){if("SyntaxError"===Tn.name)throw Io.from(Tn,Io.ERR_BAD_RESPONSE,this,null,this.response);throw Tn}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ti.classes.FormData,Blob:ti.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Lo.forEach(["delete","get","head","post","put","patch"],(e=>{ri.headers[e]={}}));const oi=Lo.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"]),ii=Symbol("internals");function ai(e){return e&&String(e).trim().toLowerCase()}function si(e){return!1===e||null==e?e:Lo.isArray(e)?e.map(si):String(e)}function li(e,t,n,r,o){return Lo.isFunction(r)?r.call(this,t,n):(o&&(t=n),Lo.isString(t)?Lo.isString(r)?-1!==t.indexOf(r):Lo.isRegExp(r)?r.test(t):void 0:void 0)}class ci{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=ai(t);if(!o)throw new Error("header name must be a non-empty string");const i=Lo.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=si(e))}const i=(e,t)=>Lo.forEach(e,((e,n)=>o(e,n,t)));if(Lo.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Lo.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]&&oi[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(Lo.isHeaders(e))for(const[a,s]of e.entries())o(s,a,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=ai(e)){const n=Lo.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(Lo.isFunction(t))return t.call(this,e,n);if(Lo.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ai(e)){const n=Lo.findKey(this,e);return!(!n||void 0===this[n]||t&&!li(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=ai(e)){const o=Lo.findKey(n,e);!o||t&&!li(0,n[o],o,t)||(delete n[o],r=!0)}}return Lo.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&&!li(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Lo.forEach(this,((r,o)=>{const i=Lo.findKey(n,o);if(i)return t[i]=si(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]=si(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Lo.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Lo.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[ii]=this[ii]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=ai(e);t[r]||(!function(e,t){const n=Lo.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 Lo.isArray(e)?e.forEach(r):r(e),this}}function ui(e,t){const n=this||ri,r=t||n,o=ci.from(r.headers);let i=r.data;return Lo.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function di(e){return!(!e||!e.__CANCEL__)}function pi(e,t,n){Io.call(this,null==e?"canceled":e,Io.ERR_CANCELED,t,n),this.name="CanceledError"}function fi(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Io("Request failed with status code "+n.status,[Io.ERR_BAD_REQUEST,Io.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}ci.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Lo.reduceDescriptors(ci.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Lo.freezeMethods(ci),Lo.inherits(pi,Io,{__CANCEL__:!0});const mi=(e,t,n=3)=>{let r=0;const o=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 function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout((()=>{r=null,a(n)}),i-s)))},()=>n&&a(n)]}((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i;e({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:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},hi=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},gi=e=>(...t)=>Lo.asap((()=>e(...t))),yi=ti.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=Lo.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return function(){return!0}}(),_i=ti.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Lo.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Lo.isString(r)&&a.push("path="+r),Lo.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 bi(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 wi=e=>e instanceof ci?{...e}:e;function vi(e,t){t=t||{};const n={};function r(e,t,n){return Lo.isPlainObject(e)&&Lo.isPlainObject(t)?Lo.merge.call({caseless:n},e,t):Lo.isPlainObject(t)?Lo.merge({},t):Lo.isArray(t)?t.slice():t}function o(e,t,n){return Lo.isUndefined(t)?Lo.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!Lo.isUndefined(t))return r(void 0,t)}function a(e,t){return Lo.isUndefined(t)?Lo.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(wi(e),wi(t),!0)};return Lo.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);Lo.isUndefined(a)&&i!==s||(n[r]=a)})),n}const xi=e=>{const t=vi({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=ci.from(s),t.url=Go(bi(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Lo.isFormData(r))if(ti.hasStandardBrowserEnv||ti.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(ti.hasStandardBrowserEnv&&(o&&Lo.isFunction(o)&&(o=o(t)),o||!1!==o&&yi(t.url))){const e=i&&a&&_i.read(a);e&&s.set(i,e)}return t},Ci="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=xi(e);let o=r.data;const i=ci.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:p,onDownloadProgress:f}=r;function m(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let h=new XMLHttpRequest;function g(){if(!h)return;const r=ci.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());fi((function(e){t(e),m()}),(function(e){n(e),m()}),{data:d&&"text"!==d&&"json"!==d?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout,"onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(g)},h.onabort=function(){h&&(n(new Io("Request aborted",Io.ECONNABORTED,e,h)),h=null)},h.onerror=function(){n(new Io("Network Error",Io.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||Yo;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Io(t,o.clarifyTimeoutError?Io.ETIMEDOUT:Io.ECONNABORTED,e,h)),h=null},void 0===o&&i.setContentType(null),"setRequestHeader"in h&&Lo.forEach(i.toJSON(),(function(e,t){h.setRequestHeader(t,e)})),Lo.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),d&&"json"!==d&&(h.responseType=r.responseType),f&&([l,u]=mi(f,!0),h.addEventListener("progress",l)),p&&h.upload&&([s,c]=mi(p),h.upload.addEventListener("progress",s),h.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{h&&(n(!t||t.type?new pi(null,e,h):t),h.abort(),h=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===ti.protocols.indexOf(y)?n(new Io("Unsupported protocol "+y+":",Io.ERR_BAD_REQUEST,e)):h.send(o||null)}))},ki=(e,t)=>{let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Io?t:new pi(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{o(new Io(`timeout ${t} of ms exceeded`,Io.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",o):e.unsubscribe(o))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=a,[s,()=>{i&&clearTimeout(i),i=null}]},Ei=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},Si=(e,t,n,r,o)=>{const i=async function*(e,t,n){for await(const r of e)yield*Ei(ArrayBuffer.isView(r)?r:await n(String(r)),t)}(e,t,o);let a,s=0,l=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return l(),void e.close();let o=r.byteLength;if(n){let e=s+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw l(t),t}},cancel:e=>(l(e),i.return())},{highWaterMark:2})},Ti="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Ni=Ti&&"function"==typeof ReadableStream,Ai=Ti&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Oi=(e,...t)=>{try{return!!e(...t)}catch(Tn){return!1}},Ri=Ni&&Oi((()=>{let e=!1;const t=new Request(ti.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Pi=Ni&&Oi((()=>Lo.isReadableStream(new Response("").body))),Li={stream:Pi&&(e=>e.body)};var Ii;Ti&&(Ii=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Li[e]&&(Li[e]=Lo.isFunction(Ii[e])?t=>t[e]():(t,n)=>{throw new Io(`Response type '${e}' is not supported`,Io.ERR_NOT_SUPPORT,n)})})));const Ui=async(e,t)=>{const n=Lo.toFiniteNumber(e.getContentLength());return null==n?(async e=>null==e?0:Lo.isBlob(e)?e.size:Lo.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:Lo.isArrayBufferView(e)||Lo.isArrayBuffer(e)?e.byteLength:(Lo.isURLSearchParams(e)&&(e+=""),Lo.isString(e)?(await Ai(e)).byteLength:void 0))(t):n},Fi={http:null,xhr:Ci,fetch:Ti&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:p}=xi(e);c=c?(c+"").toLowerCase():"text";let f,m,[h,g]=o||i||a?ki([o,i],a):[];const y=()=>{!f&&setTimeout((()=>{h&&h.unsubscribe()})),f=!0};let _;try{if(l&&Ri&&"get"!==n&&"head"!==n&&0!==(_=await Ui(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(Lo.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=hi(_,mi(gi(l)));r=Si(n.body,65536,e,t,Ai)}}Lo.isString(d)||(d=d?"include":"omit"),m=new Request(t,{...p,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:d});let o=await fetch(m);const i=Pi&&("stream"===c||"response"===c);if(Pi&&(s||i)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=Lo.toFiniteNumber(o.headers.get("content-length")),[n,r]=s&&hi(t,mi(gi(s),!0))||[];o=new Response(Si(o.body,65536,n,(()=>{r&&r(),i&&y()}),Ai),e)}c=c||"text";let a=await Li[Lo.findKey(Li,c)||"text"](o,e);return!i&&y(),g&&g(),await new Promise(((t,n)=>{fi(t,n,{data:a,headers:ci.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:m})}))}catch(b){if(y(),b&&"TypeError"===b.name&&/fetch/i.test(b.message))throw Object.assign(new Io("Network Error",Io.ERR_NETWORK,e,m),{cause:b.cause||b});throw Io.from(b,b&&b.code,e,m)}})};Lo.forEach(Fi,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(Tn){}Object.defineProperty(e,"adapterName",{value:t})}}));const Di=e=>`- ${e}`,Mi=e=>Lo.isFunction(e)||null===e||!1===e,ji=e=>{e=Lo.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,!Mi(n)&&(r=Fi[(t=String(n)).toLowerCase()],void 0===r))throw new Io(`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 Io("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Di).join("\n"):" "+Di(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function Bi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new pi(null,e)}function Hi(e){Bi(e),e.headers=ci.from(e.headers),e.data=ui.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return ji(e.adapter||ri.adapter)(e).then((function(t){return Bi(e),t.data=ui.call(e,e.transformResponse,t),t.headers=ci.from(t.headers),t}),(function(t){return di(t)||(Bi(e),t&&t.response&&(t.response.data=ui.call(e,e.transformResponse,t.response),t.response.headers=ci.from(t.response.headers))),Promise.reject(t)}))}const zi="1.7.4",Wi={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Wi[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const qi={};Wi.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.4] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Io(r(o," has been removed"+(t?" in "+t:"")),Io.ERR_DEPRECATED);return t&&!qi[o]&&(qi[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 Vi={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Io("options must be an object",Io.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 Io("option "+i+" must be "+n,Io.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Io("Unknown option "+i,Io.ERR_BAD_OPTION)}},validators:Wi},Gi=Vi.validators;class $i{constructor(e){this.defaults=e,this.interceptors={request:new $o,response:new $o}}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/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(Tn){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=vi(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Vi.assertOptions(n,{silentJSONParsing:Gi.transitional(Gi.boolean),forcedJSONParsing:Gi.transitional(Gi.boolean),clarifyTimeoutError:Gi.transitional(Gi.boolean)},!1),null!=r&&(Lo.isFunction(r)?t.paramsSerializer={serialize:r}:Vi.assertOptions(r,{encode:Gi.function,serialize:Gi.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Lo.merge(o.common,o[t.method]);o&&Lo.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=ci.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=[Hi.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=Hi.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 Go(bi((e=vi(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}Lo.forEach(["delete","get","head","options"],(function(e){$i.prototype[e]=function(t,n){return this.request(vi(n||{},{method:e,url:t,data:(n||{}).data}))}})),Lo.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(vi(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}$i.prototype[e]=t(),$i.prototype[e+"Form"]=t(!0)}));class Yi{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 pi(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 Yi((function(t){e=t})),cancel:e}}}const Zi={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(Zi).forEach((([e,t])=>{Zi[t]=e}));const Ki=function e(t){const n=new $i(t),r=qr($i.prototype.request,n);return Lo.extend(r,$i.prototype,n,{allOwnKeys:!0}),Lo.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(vi(t,n))},r}(ri);Ki.Axios=$i,Ki.CanceledError=pi,Ki.CancelToken=Yi,Ki.isCancel=di,Ki.VERSION=zi,Ki.toFormData=Ho,Ki.AxiosError=Io,Ki.Cancel=Ki.CanceledError,Ki.all=function(e){return Promise.all(e)},Ki.spread=function(e){return function(t){return e.apply(null,t)}},Ki.isAxiosError=function(e){return Lo.isObject(e)&&!0===e.isAxiosError},Ki.mergeConfig=vi,Ki.AxiosHeaders=ci,Ki.formToJSON=e=>ni(Lo.isHTMLForm(e)?new FormData(e):e),Ki.getAdapter=ji,Ki.HttpStatusCode=Zi,Ki.default=Ki;class Ji{constructor(){__privateAdd(this,e)}initClient(t,n){__privateSet(this,e,Ki.create({baseURL:`${this.url(t)}/backend`,headers:n}))}getClient(){return __privateGet(this,e)}}e=new WeakMap;const Xi={backend:new class extends Ji{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 Qi;class ea{constructor(){__privateAdd(this,t),__privateAdd(this,n),__privateAdd(this,r),__privateAdd(this,o,(async e=>(Qi||(Qi=await Xi.backend.getIdToken()),e.headers.Authorization=`Bearer ${Qi}`,e.params={...e.params??{},client:"onboarding",source:"Onboarding",channel:"onboarding"},e)))}initClient(e,i,a){__privateSet(this,n,e),__privateSet(this,r,i),__privateSet(this,t,Ki.create({baseURL:`${this.url(e)}/workplace-backend`,headers:{...a,"X-PROFILE-ID":i}})),__privateGet(this,t).interceptors.request.use(__privateGet(this,o))}getClient(){return __privateGet(this,t)}async getAccessToken(){return Qi||(Qi=await Xi.backend.getIdToken()),Qi}getBaseUrl(){return __privateGet(this,n)}getProfileId(){return __privateGet(this,r)}}t=new WeakMap,n=new WeakMap,r=new WeakMap,o=new WeakMap;const ta=e=>{var t,n;throw"Auth_SessionExpired"===(null==(n=null==(t=e.response)?void 0:t.data)?void 0:n.code)&&Wr(),e};let na=(a=class extends ea{constructor(){super(...arguments),__publicField(this,"_canceledSignal"),__privateAdd(this,i,(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,i))}async track(e,t){await this.getClient().post("/v1.0/analytics/track",{event:e,properties:t}).catch((e=>{}))}},i=new WeakMap,a);const ra={backend:new class extends Ji{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),ta),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 na};const oa={workplaceBackend:new class extends ea{url(e){return`${e}/benefits-plan`}}},ia=(e,t,n)=>{const r=function(e,t){if("string"!=typeof e)throw new jr("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 jr(`Invalid token specified: missing part #${n+1}`);let o;try{o=Br(r)}catch(Tn){throw new jr(`Invalid token specified: invalid base64 for part #${n+1} (${Tn.message})`)}try{return JSON.parse(o)}catch(Tn){throw new jr(`Invalid token specified: invalid json for part #${n+1} (${Tn.message})`)}}(t).sub,o={backend:{Authorization:`Bearer ${t}`},workplaceBackend:{}};ra.backend.initClient(e,o.backend,n),ra.workplaceBackend.initClient(e,r,o.workplaceBackend),Xi.backend.initClient(e,o.backend),oa.workplaceBackend.initClient(e,r,o.workplaceBackend)},aa=e=>{switch(!0){case"started"===e:return ra.backend.command({eventType:"Started"});case"membership-accepted"===e:return ra.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!0,featureName:"",treatmentName:"",template:"Eoi"}});case"membership-declined"===e:return ra.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!1,featureName:"",treatmentName:"",template:"Eoi"}});case"sign-up-viewed"===e:return ra.backend.command({eventType:"OfferViewed",offerName:"Membership",data:{featureName:"",treatmentName:""}});case"sign-up-completed"===e:return(async()=>{await ra.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!0,featureName:"",treatmentName:"",template:"Eoi"}}),await ra.backend.command({eventType:"CustomerRegistrationCompleted",isRegistered:!0})})();case"sign-up-declined"===e:return(async()=>{await ra.backend.command({eventType:"CustomerRegistrationCompleted",isRegistered:!1}),await ra.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!1,featureName:"",treatmentName:"",template:"Eoi"}})})();case"object"==typeof e&&"offer-viewed"===e.type:return ra.backend.command({...e,eventType:"OfferViewed"});case"object"==typeof e&&"offer-accepted"===e.type:return ra.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:{...e.data,accepted:!0}});case"object"==typeof e&&"offer-declined"===e.type:return ra.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:{...e.data,accepted:!1}});case"object"==typeof e&&"offer-progressed"===e.type:return ra.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:e.data});case"object"==typeof e&&"summary-viewed"===e.type:return ra.backend.command({eventType:"SummaryViewed",summaryVariant:e.data.summaryVariant});case"completed"===e:return ra.backend.command({eventType:"Completed"})}return Promise.resolve()},sa=()=>({trace:aa}),la=e=>{const{trace:t}=sa(),n={desktopImageUrl:Ur,mobileImageUrl:Dr,title:"Join your workplace benefits program",description:"Your employer has partnered with Flare Benefits to give you exclusive access to savings and perks from Australia’s most-loved brands. Join your program today to get access to your Thrive at Home Allowance.",specialBanner:{icon:Fr,html:()=>Fe("span",{children:["As part of your workplace benefits, ",Fe("b",{children:"$1,500"})," has been allocated as part of your Thrive at Home Allowance to help you thrive both at work and at home"]})},buttonText:"Continue"};return Fe(Or,{children:[Fe(Or.Top,{children:[Fe("img",{class:"max-w-[30rem] w-full hidden md:block",src:n.desktopImageUrl}),Fe("img",{class:"max-w-[30rem] w-full md:hidden",src:n.mobileImageUrl})]}),Fe(Or.Bottom,{children:Fe("div",{children:[Fe("h3",{class:"mt-8 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:n.title}),Fe("p",{class:"mt-3 text-lg leading-7 text-gray-600",children:n.description}),n.specialBanner&&Fe(Mr,{className:"bg-teal-50 mt-5",icon:Fe(n.specialBanner.icon,{}),children:Fe(n.specialBanner.html,{})}),Fe(ze,{class:"mt-8",onClickPromise:async()=>{await t("started"),e.onContinue()},children:n.buttonText})]})})]})},ca=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/get-app-CQalMIl7.jpg?inline").href:new URL("assets/get-app-CQalMIl7.jpg?inline","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),ua=({className:e,onClick:t,...n})=>{const[r,o]=ye(!1);return Fe("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:ke((()=>{if(!r)return o(!0),t().finally((()=>{o(!1)}))}),[r,t]),...n,children:[Fe("div",{class:"relative "+(r?"invisible":""),children:n.children}),r&&Fe("div",{class:"absolute animate-spin",children:Fe(De,{theme:"primary"})})]})},da=()=>Fe("div",{className:"mt-4 flex items-center border rounded-md border-gray-300",children:[Fe("img",{className:"h-40 h-min-40 h-max-40 m-0.5",src:ca}),Fe("div",{className:"flex flex-col gap-1",children:[Fe("h4",{className:"font-bold text-lg text-left",children:"Workplace benefits in your pocket!"}),Fe("p",{className:"font-normal text-base text-left",children:"Download the Flare app for easy access to your workplace benefits and exclusive discounts."}),Fe(ua,{className:"self-start font-bold",onClick:async()=>{},children:["Get the Flare App ","->"]})]})]}),pa={title:"You’re all set!",description:"You’ve finished setting up your benefits plan. Continue to review your details and finish up your workplace onboarding.",buttonText:"Finish benefits set up"},fa=({onContinue:e})=>{const{identity:{email:t},offersProgress:{hasEnrolled:n},isAppEnabled:r}=Ee(Be),{trace:o}=sa();be((()=>{(async()=>{})()}),[o]);const i=ke((async()=>{await o("completed"),await e()}),[e,o]),a=Ce((()=>n()?(e=>({title:"Congratulations, you’re on your way to claiming your allowance",description:`We’ve sent an email to ${e} with more information about your benefits plan and how you can claim your allowance.`,buttonText:"Finish benefits set up",progress:{title:"Your journey so far",steps:[{title:"Join your workplace benefits program",description:"Thanks for creating your account. You now have access to your workplace benefits",completed:!0},{title:"Configure your benefits plan",description:"Enrol in the benefits that matter most to you",completed:!0},{title:"Purchase within 30 days*",description:"Make sure you complete your benefit purchase in the first 30 days of joining your workplace benefits program",completed:!1},{title:"Get reimbursed within 90 days*",description:"Based on what you purchased, you will then be reimbursed from your allowance",completed:!1}]}}))(t):pa),[t,n]);return Fe(Or,{children:[Fe(Or.Top,{children:Fe("div",{className:"flex flex-col gap-4",children:[Fe(We,{children:a.title}),Fe(qe,{children:a.description})]})}),Fe(Or.Bottom,{children:Fe("div",{className:"mt-5 flex flex-col items-center gap-5 text-center",children:[a.progress&&Fe(Zt,{title:a.progress.title,steps:a.progress.steps,className:"rounded-md px-6 py-4 lg:w-3/4",style:{background:"linear-gradient(90deg, rgba(255, 135, 111, 0.10) 0%, rgba(166, 80, 255, 0.10) 100%)"}}),Fe(ze,{class:"mt-5 w-full md:w-[240px]",onClickPromise:i,children:a.buttonText}),r&&Fe(da,{})]})})]})};var ma=(e=>(e[e.PHONE_NUMBER=0]="PHONE_NUMBER",e[e.OTP=1]="OTP",e[e.SUCCESS=2]="SUCCESS",e))(ma||{});const ha=({className:e,children:t,...n})=>Fe("label",{class:`text-base text-gray-600 ${e??""}`,...n,children:t}),ga=e=>v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"green",className:"w-5 h-5",...e},v("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"})),ya=({className:e,allowedKeyPattern:t,onChange:n,value:r,leadingIconElement:o,trailingIconElement:i,...a})=>{const s=ke((e=>{t.test(e.key)||e.preventDefault()}),[t]);return Fe(k,{children:Fe("div",{class:"relative",children:[o,Fe("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:s,onChange:e=>n(e.currentTarget.value),...a}),i]})})},_a=e=>e.replace(/ /g,""),ba=e=>{const t=_a(e);return t.startsWith("04")&&10===t.length||t.startsWith("614")&&11===t.length||t.startsWith("+614")&&12===t.length||/^\+642\d{7,9}$/.test(t)},wa=({phoneNumber:e,onSubmit:t,onDecline:n})=>{const{trace:r}=sa(),[o,i]=ye(""),{setPhoneNumber:a,phoneNumber:s}=(e=>{const{identity:t}=Ee(Be),[n,r]=ye((()=>e&&ba(e)?e:"")),o=Ce((()=>ba(n)),[n]),i=Ce((()=>_a(n)),[n]),a=Ce((()=>i.startsWith("04")?`+61${i.replace(/^0+/,"")}`:i.startsWith("614")?`+${i}`:i),[i]),s=Ce((()=>(e=>{let t=0;return"#### ### ### ### ### ### ###".replace(/#/g,(()=>e[t++]??"")).trim()})(i)),[i]),l=Ce((()=>ba(t.verifiedPhoneNumber)&&a===t.verifiedPhoneNumber),[a,t.verifiedPhoneNumber]);return{setPhoneNumber:r,phoneNumber:{valid:o,original:n,formatted:a,masked:s,isVerified:l}}})(e),[l,c]=ye(s.isVerified);be((()=>{(async()=>{await r("sign-up-viewed")})()}),[r]);const u=ke((()=>{i("")}),[]),d=ke((()=>{const e=s.valid?"":"Please enter a valid Australian mobile number beginning with 04.";i(e),c(s.isVerified)}),[s.isVerified,s.valid]),p=ke((async()=>{s.valid&&await t(s).then((async()=>await r("sign-up-completed"))).catch(i)}),[s,t,r]),f=ke((()=>r("sign-up-declined").then(n)),[n,r]),m=ke((async()=>{c(!1)}),[]),h=Fe("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 ",Fe(ga,{})]});return Fe(Or,{children:[Fe(Or.Top,{children:Fe("div",{className:"flex flex-col gap-5",children:[Fe(We,{children:"Join your workplace benefits program"}),Fe(qe,{children:[s.isVerified?"Confirm ":"Enter "," your ",Fe("b",{children:"personal"})," mobile number to finish setting up your Flare Benefits account linked to your workplace"]})]})}),Fe(Or.Bottom,{children:Fe("div",{className:"mt-5 md:w-[300px] text-left",children:[Fe(ha,{className:"font-medium text-sm text-gray-900 text-left",children:"Australian Mobile Number"}),Fe(ya,{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&&Fe("div",{className:"h-8 leading-none",children:Fe("span",{className:"text-xs text-rose-500",children:o})}),l&&Fe("div",{className:"mt-2 ml-2 mb-2 leading-none",children:Fe("span",{className:"text-xs",children:["Not your personal number?",Fe(ua,{class:"text-blue-500",onClick:m,children:"Change number"})]})}),Fe("div",{children:Fe("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"," ",Fe("a",{href:"https://www.flarehr.com/flare-app-terms-and-conditions/",target:"_blank",rel:"noreferrer",children:" Terms of Use "}),"and",Fe("a",{href:"https://www.flarehr.com/privacy-policy/",target:"_blank",rel:"noreferrer",children:" Privacy Policy"}),"."," "]})}),Fe(ze,{class:"mt-5 md:w-full",onClickPromise:p,children:"Join your workplace"}),Fe(ze,{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"})]})})]})},va=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/check-animated-QQOZQPLY.gif?inline").href:new URL("assets/check-animated-QQOZQPLY.gif?inline","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),xa=({onContinue:e})=>{const{featureFlags:{marketplaceScheme:t}}=Ee(Be),n=Ce((()=>"allowance"===t?{title:"Account created successfully",description:"You now have access to your workplace benefits",isNextButtonHidden:!0}:{title:"You’ve joined your workplace benefits program",description:"With your new Flare Benefits account, you now have access to a range of exclusive benefits available through your workplace.",isNextButtonHidden:!1}),[t]);return be((()=>{if("allowance"===t){const t=setTimeout(e,3e3);return()=>clearTimeout(t)}}),[t,e]),Fe(Or,{children:[Fe(Or.Top,{children:Fe("img",{src:va,className:"h-16 w-16"})}),Fe(Or.Bottom,{children:Fe("div",{className:"mt-5 flex flex-col items-center gap-5 text-center",children:[Fe(We,{children:n.title}),Fe(qe,{children:n.description}),!n.isNextButtonHidden&&Fe(ze,{class:"mt-5 w-full md:w-[240px]",onClickPromise:async()=>{e()},children:"Set up your benefits"})]})})]})},Ca=e=>v("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,viewBox:"0 -960 960 960",width:24,fill:"currentColor",...e},v("path",{d:"m313-440 224 224-57 56-320-320 320-320 57 56-224 224h487v80H313Z"})),ka=({children:e,...t})=>Fe("dialog",{className:"z-50 w-full h-full absolute top-0 left-0 bottom-0 right-0",...t,children:e}),Ea=({open:e})=>Fe(ka,{open:e,children:Fe("div",{className:"flex flex-col gap-5 items-center justify-center text-center mt-20",children:[Fe("span",{class:"animate-spin",children:Fe(De,{size:"lg"})}),Fe(We,{children:"Creating your account"}),Fe("div",{children:[Fe(qe,{children:"This can take up to 30 seconds."}),Fe(qe,{children:"Please don't navigate away or refresh your browser."})]})]})}),Sa=({phoneNumber:e,onVerify:t,onResendOtp:n,onGoBack:r})=>{const{otp:o,setOtp:i}=(()=>{const[e,t]=ye("");return{otp:{valid:Ce((()=>6===e.length),[e.length]),code:e},setOtp:t}})(),[a,s]=ye(!1),[l,c]=ye(""),{countdown:u,restart:d}=(e=>{const[t,n]=ye(e),r=ve(),o=ke((()=>{clearInterval(r.current)}),[]);return be((()=>o),[o]),{countdown:t,restart:ke((()=>{let t=e;clearInterval(r.current),r.current=setInterval((()=>{t<0?clearInterval(r.current):n(t--)}),1e3)}),[e])}})(60);be(d,[d]);const p=ke((()=>(s(!0),c(""),t(o.code).catch(c).finally((()=>{s(!1)})))),[t,o.code]),f=ke((()=>(c(""),n().then(d).catch(c))),[n,d]);return Fe(k,{children:[Fe(Ea,{open:a}),Fe(Or,{children:[Fe(Or.Top,{children:Fe("div",{className:"flex flex-col gap-5",children:[Fe(We,{children:"Verify your mobile number"}),Fe(qe,{children:["An SMS verification code has been sent to the number ",e,"."]})]})}),Fe(Or.Bottom,{children:Fe("div",{className:"mt-5 md:w-[300px] text-left",children:[Fe(ha,{className:"font-medium text-sm text-gray-900 text-left",children:"Enter your verification code"}),Fe(ya,{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&&Fe("span",{className:"text-xs text-rose-500",children:l}),Fe("p",{class:"mt-2 text-center text-xs text-gray-600 disabled:opacity-75 ",children:["Didn't get the code?",Fe(ua,{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&&Fe(k,{children:["in ",u," secs"]})]}),Fe(ze,{class:"mt-5 md:w-full",disabled:!o.valid,onClickPromise:p,children:"Continue"}),Fe(ze,{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:Fe("span",{className:"flex gap-3",children:[Fe(Ca,{}),"Back"]})})]})})]})]})},Ta=({phoneNumber:e,onSignUp:t,onVerify:n,onResendOtp:r,onSuccess:o,onDecline:i})=>{const[a,s]=ye(e??""),{step:l,goBack:c,goToStep:u}=(()=>{const[e,t]=ye(0),n=ke((()=>{const n=e-1;n>=0&&t(n)}),[e]),r=ke((e=>{e<=2&&t(e)}),[e]);return{step:e,goBack:n,goToStep:r}})(),d=ke((e=>t(e.formatted).then((t=>{s(e.masked),u(t.isVerificationRequired?ma.OTP:ma.SUCCESS)}))),[u,t]),p=ke((e=>n(e).then((()=>{u(ma.SUCCESS)}))),[u,n]);return Fe(k,{children:[l===ma.PHONE_NUMBER&&Fe(wa,{phoneNumber:a,onSubmit:d,onDecline:i}),l===ma.OTP&&Fe(Sa,{phoneNumber:a,onVerify:p,onResendOtp:r,onGoBack:c}),l===ma.SUCCESS&&Fe(xa,{onContinue:o})]})},Na="Onboarding",Aa="onboarding";var Oa=(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))(Oa||{});const Ra=e=>{var t;const n=null==(t=null==e?void 0:e.response)?void 0:t.data;throw Oa[null==n?void 0:n.code]??"Sorry, we are currently experiencing some issues. Please try again later."},Pa=({onSuccess:e,onDecline:t})=>{const{identity:{phoneNumber:n}}=Ee(Be),{signUp:r,verifyOtp:o,resendOtp:i}={signUp:async e=>ra.backend.getClient().post("v2.0/auth/signUp",{mobileNumber:e,source:Na,channel:Aa}).then((e=>({isVerificationRequired:e.data.isVerificationRequired??!0}))),verifyOtp:async e=>{await ra.backend.getClient().post("auth/verify",{otp:e,source:Na,channel:Aa}).catch(Ra)},resendOtp:async()=>{await ra.backend.getClient().post("auth/resend").catch(Ra)}};return Fe(k,{children:Fe(Ta,{phoneNumber:n,onSignUp:r,onVerify:o,onResendOtp:i,onSuccess:e,onDecline:t})})},La=""+("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&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),Ia=e=>{const{trace:t}=sa();return Fe(Or,{children:[Fe(Or.Top,{children:Fe("img",{class:"max-w-[30rem] w-full",src:La})}),Fe(Or.Bottom,{children:Fe("div",{children:[Fe("h3",{class:"mt-8 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:"Finish setting up your workplace benefits"}),Fe("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."}),Fe(ze,{class:"mt-8",onClickPromise:async()=>{await t("started"),e.onStepComplete()},children:"Continue"})]})})]})};function Ua(){return Ua=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ua.apply(null,arguments)}function Fa(e,t){return(Fa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Da(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;
2
2
  /*!
3
3
  * content-type
4
4
  * Copyright(c) 2015 Douglas Christopher Wilson
5
5
  * MIT Licensed
6
6
  */
7
- var Da=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,ja=/\\([\u000b\u0020-\u00ff])/g,Ma=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,Ba=function(e){if(!e)throw new TypeError("argument string is required");var t="object"==typeof e?function(e){var t;"function"==typeof e.getHeader?t=e.getHeader("content-type"):"object"==typeof e.headers&&(t=e.headers&&e.headers["content-type"]);if("string"!=typeof t)throw new TypeError("content-type header is missing from object");return t}(e):e;if("string"!=typeof t)throw new TypeError("argument string is required to be a string");var n=t.indexOf(";"),r=-1!==n?t.slice(0,n).trim():t.trim();if(!Ma.test(r))throw new TypeError("invalid media type");var o=new Ha(r.toLowerCase());if(-1!==n){var i,a,s;for(Da.lastIndex=n;a=Da.exec(t);){if(a.index!==n)throw new TypeError("invalid parameter format");n+=a[0].length,i=a[1].toLowerCase(),34===(s=a[2]).charCodeAt(0)&&-1!==(s=s.slice(1,-1)).indexOf("\\")&&(s=s.replace(ja,"$1")),o.parameters[i]=s}if(n!==t.length)throw new TypeError("invalid parameter format")}return o};function Ha(e){this.parameters=Object.create(null),this.type=e}var za=new Map,Wa=function(e){return e.cloneNode(!0)},qa=function(){return"file:"===window.location.protocol},Va=function(e,t,n){var r=new XMLHttpRequest;r.onreadystatechange=function(){try{if(!/\.svg/i.test(e)&&2===r.readyState){var t=r.getResponseHeader("Content-Type");if(!t)throw new Error("Content type not found");var o=Ba(t).type;if("image/svg+xml"!==o&&"text/plain"!==o)throw new Error("Invalid content type: ".concat(o))}if(4===r.readyState){if(404===r.status||null===r.responseXML)throw new Error(qa()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+e);if(!(200===r.status||qa()&&0===r.status))throw new Error("There was a problem injecting the SVG: "+r.status+" "+r.statusText);n(null,r)}}catch(i){if(r.abort(),!(i instanceof Error))throw i;n(i,r)}},r.open("GET",e),r.withCredentials=t,r.overrideMimeType&&r.overrideMimeType("text/xml"),r.send()},$a={},Ga=function(e,t){$a[e]=$a[e]||[],$a[e].push(t)},Ya=function(e,t,n){if(za.has(e)){var r=za.get(e);if(void 0===r)return void Ga(e,n);if(r instanceof SVGSVGElement)return void n(null,Wa(r))}za.set(e,void 0),Ga(e,n),Va(e,t,(function(t,n){var r;t?za.set(e,t):(null===(r=n.responseXML)||void 0===r?void 0:r.documentElement)instanceof SVGSVGElement&&za.set(e,n.responseXML.documentElement),function(e){for(var t=function(t,n){setTimeout((function(){if(Array.isArray($a[e])){var n=za.get(e),r=$a[e][t];n instanceof SVGSVGElement&&r(null,Wa(n)),n instanceof Error&&r(n),t===$a[e].length-1&&delete $a[e]}}),0)},n=0,r=$a[e].length;n<r;n++)t(n)}(e)}))},Ja=function(e,t,n){Va(e,t,(function(e,t){var r;e?n(e):(null===(r=t.responseXML)||void 0===r?void 0:r.documentElement)instanceof SVGSVGElement&&n(null,t.responseXML.documentElement)}))},Ka=0,Xa=[],Za={},Qa="http://www.w3.org/1999/xlink",es=function(e,t,n,r,o,i,a){var s=e.getAttribute("data-src")||e.getAttribute("src");if(s){if(-1!==Xa.indexOf(e))return Xa.splice(Xa.indexOf(e),1),void(e=null);Xa.push(e),e.setAttribute("src",""),(r?Ya:Ja)(s,o,(function(r,o){if(!o)return Xa.splice(Xa.indexOf(e),1),e=null,void a(r);var l=e.getAttribute("id");l&&o.setAttribute("id",l);var c=e.getAttribute("title");c&&o.setAttribute("title",c);var u=e.getAttribute("width");u&&o.setAttribute("width",u);var d=e.getAttribute("height");d&&o.setAttribute("height",d);var p=Array.from(new Set(Fa(Fa(Fa([],(o.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(e.getAttribute("class")||"").split(" "),!0))).join(" ").trim();o.setAttribute("class",p);var f=e.getAttribute("style");f&&o.setAttribute("style",f),o.setAttribute("data-src",s);var m=[].filter.call(e.attributes,(function(e){return/^data-\w[\w-]*$/.test(e.name)}));if(Array.prototype.forEach.call(m,(function(e){e.name&&e.value&&o.setAttribute(e.name,e.value)})),n){var h,g,y,b,_,w={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],path:[],pattern:["fill","stroke"],radialGradient:["fill","stroke"]};Object.keys(w).forEach((function(e){h=e,y=w[e];for(var t=function(e,t){var n;b=g[e].id,_=b+"-"+ ++Ka,Array.prototype.forEach.call(y,(function(e){for(var t=0,r=(n=o.querySelectorAll("["+e+'*="'+b+'"]')).length;t<r;t++){var i=n[t].getAttribute(e);i&&!i.match(new RegExp('url\\("?#'+b+'"?\\)'))||n[t].setAttribute(e,"url(#"+_+")")}}));for(var r=o.querySelectorAll("[*|href]"),i=[],a=0,s=r.length;a<s;a++){var l=r[a].getAttributeNS(Qa,"href");l&&l.toString()==="#"+g[e].id&&i.push(r[a])}for(var c=0,u=i.length;c<u;c++)i[c].setAttributeNS(Qa,"href","#"+_);g[e].id=_},n=0,r=(g=o.querySelectorAll(h+"[id]")).length;n<r;n++)t(n)}))}o.removeAttribute("xmlns:a");for(var v,x,k=o.querySelectorAll("script"),E=[],S=0,T=k.length;S<T;S++)(x=k[S].getAttribute("type"))&&"application/ecmascript"!==x&&"application/javascript"!==x&&"text/javascript"!==x||((v=k[S].innerText||k[S].textContent)&&E.push(v),o.removeChild(k[S]));if(E.length>0&&("always"===t||"once"===t&&!Za[s])){for(var C=0,N=E.length;C<N;C++)new Function(E[C])(window);Za[s]=!0}var A=o.querySelectorAll("style");if(Array.prototype.forEach.call(A,(function(e){e.textContent+=""})),o.setAttribute("xmlns","http://www.w3.org/2000/svg"),o.setAttribute("xmlns:xlink",Qa),i(o),!e.parentNode)return Xa.splice(Xa.indexOf(e),1),e=null,void a(new Error("Parent node is null"));e.parentNode.replaceChild(o,e),Xa.splice(Xa.indexOf(e),1),e=null,a(null,o)}))}else a(new Error("Invalid data-src or src attribute"))},ts={exports:{}};function ns(){}function rs(){}rs.resetWarningCache=ns;ts.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:rs,resetWarningCache:ns};return n.PropTypes=n,n}();var os=ts.exports,is=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],as="http://www.w3.org/2000/svg",ss="http://www.w3.org/1999/xlink",ls=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).initialState={hasError:!1,isLoading:!0},t.state=t.initialState,t._isMounted=!1,t.reactWrapper=void 0,t.nonReactWrapper=void 0,t.refCallback=function(e){t.reactWrapper=e},t}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ua(e,t)}(t,e);var n=t.prototype;return n.renderSVG=function(){var e,t=this;if(this.reactWrapper instanceof(e=this.reactWrapper,((null==e?void 0:e.ownerDocument)||document).defaultView||window).Node){var n,r,o=this.props,i=o.desc,a=o.evalScripts,s=o.httpRequestWithCredentials,l=o.renumerateIRIElements,c=o.src,u=o.title,d=o.useRequestCache,p=this.props.onError,f=this.props.beforeInjection,m=this.props.afterInjection,h=this.props.wrapper;"svg"===h?((n=document.createElementNS(as,h)).setAttribute("xmlns",as),n.setAttribute("xmlns:xlink",ss),r=document.createElementNS(as,h)):(n=document.createElement(h),r=document.createElement(h)),n.appendChild(r),r.dataset.src=c,this.nonReactWrapper=this.reactWrapper.appendChild(n);var g=function(e){t.removeSVG(),t._isMounted?t.setState((function(){return{hasError:!0,isLoading:!1}}),(function(){p(e)})):p(e)};!function(e,t){var n=void 0===t?{}:t,r=n.afterAll,o=void 0===r?function(){}:r,i=n.afterEach,a=void 0===i?function(){}:i,s=n.beforeEach,l=void 0===s?function(){}:s,c=n.cacheRequests,u=void 0===c||c,d=n.evalScripts,p=void 0===d?"never":d,f=n.httpRequestWithCredentials,m=void 0!==f&&f,h=n.renumerateIRIElements,g=void 0===h||h;if(e&&"length"in e)for(var y=0,b=0,_=e.length;b<_;b++)es(e[b],p,g,u,m,l,(function(t,n){a(t,n),e&&"length"in e&&e.length===++y&&o(y)}));else e?es(e,p,g,u,m,l,(function(t,n){a(t,n),o(1),e=null})):o(0)}(r,{afterEach:function(e,n){e?g(e):t._isMounted&&t.setState((function(){return{isLoading:!1}}),(function(){try{m(n)}catch(e){g(e)}}))},beforeEach:function(e){if(e.setAttribute("role","img"),i){var t=e.querySelector(":scope > desc");t&&e.removeChild(t);var n=document.createElement("desc");n.innerHTML=i,e.prepend(n)}if(u){var r=e.querySelector(":scope > title");r&&e.removeChild(r);var o=document.createElement("title");o.innerHTML=u,e.prepend(o)}try{f(e)}catch(a){g(a)}},cacheRequests:d,evalScripts:a,httpRequestWithCredentials:s,renumerateIRIElements:l})}},n.removeSVG=function(){var e;null!=(e=this.nonReactWrapper)&&e.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},n.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},n.componentDidUpdate=function(e){var t=this;(function(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1})(Ia({},e),this.props)&&this.setState((function(){return t.initialState}),(function(){t.removeSVG(),t.renderSVG()}))},n.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},n.render=function(){var e=this.props;e.afterInjection,e.beforeInjection,e.desc,e.evalScripts;var t=e.fallback;e.httpRequestWithCredentials;var n=e.loading;e.renumerateIRIElements,e.src,e.title,e.useRequestCache;var r=e.wrapper,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,is);return v(r,Ia({},o,{ref:this.refCallback},"svg"===r?{xmlns:as,xmlnsXlink:ss}:{}),this.state.isLoading&&n&&v(n,null),this.state.hasError&&t&&v(t,null))},t}(S);ls.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"},ls.propTypes={afterInjection:os.func,beforeInjection:os.func,desc:os.string,evalScripts:os.oneOf(["always","once","never"]),fallback:os.oneOfType([os.func,os.object,os.string]),httpRequestWithCredentials:os.bool,loading:os.oneOfType([os.func,os.object,os.string]),onError:os.func,renumerateIRIElements:os.bool,src:os.string.isRequired,title:os.string,useRequestCache:os.bool,wrapper:os.oneOf(["div","span","svg"])};const cs=()=>Fe("div",{class:"flex justify-center",children:Fe("span",{class:"animate-spin",children:Fe(De,{size:"lg"})})}),us=(ds=e=>{var t,n,r;const{featureFlags:{marketplaceScheme:o}}=Se(Be),{trace:i}=aa(),a=ve(null);return _e((()=>{i({type:"offer-viewed",offerName:e.marketPlaceOffer.name,data:e.marketPlaceOffer.metadata}),a.current&&(a.current.terms=e.marketPlaceOffer.content.terms,a.current.details=e.marketPlaceOffer.content.details,a.current["on-accept"]=async()=>{await i({type:"offer-accepted",offerName:e.marketPlaceOffer.name,data:{...e.marketPlaceOffer.metadata,template:e.marketPlaceOffer.content.template,assessmentId:e.marketPlaceOffer.content.assessmentId}})},a.current["on-decline"]=async()=>{await i({type:"offer-declined",offerName:e.marketPlaceOffer.name,data:{...e.marketPlaceOffer.metadata,template:e.marketPlaceOffer.content.template,assessmentId:e.marketPlaceOffer.content.assessmentId}}),e.onStepComplete(!1)},a.current["on-complete"]=()=>e.onStepComplete(!0))}),[e,i]),Fe("benefits-plan-assessment",{"base-url":ra.workplaceBackend.getBaseUrl(),"profile-id":ra.workplaceBackend.getProfileId(),"skip-more-details":!0,"access-token":e.accessToken,"image-url":e.marketPlaceOffer.content.imageUrl,"assessment-id":e.marketPlaceOffer.content.assessmentId,"assessment-instructions":"allowance"===o?e.marketPlaceOffer.content.assessmentInstructions:void 0,"track-client":"onboarding","track-source":"Onboarding","track-channel":"onboarding","track-experiment":"onboarding-marketplace-scheme","track-treatment":o,title:e.marketPlaceOffer.content.title,description:e.marketPlaceOffer.content.description,"accept-button":e.marketPlaceOffer.content.acceptButton,"decline-button":e.marketPlaceOffer.content.declineButton,"special-banner-title":"allowance"===o?null==(t=e.marketPlaceOffer.content.specialBanner)?void 0:t.title:void 0,"special-banner-subtitle":"allowance"===o?null==(n=e.marketPlaceOffer.content.specialBanner)?void 0:n.subtitle:void 0,"special-banner-type":"allowance"===o?null==(r=e.marketPlaceOffer.content.specialBanner)?void 0:r.type:void 0,"vertical-alignment":"items-center",ref:a})},e=>{const t=ve(null),[n,r]=ye(),[o,i]=ye(!1);return _e((()=>{(async()=>{const e=await ra.workplaceBackend.getAccessToken();r(e)})(),(()=>{if(t.current&&!t.current.querySelector("script[data-injected]")){const e=document.createElement("script"),n=(e=>{const t=null==e?void 0:e.match(/^(https:\/\/)?(test|autodev|sandbox)?-?partner\.flarehr\.com$/);return t&&t[2]?t[2]:"prod"})(ra.workplaceBackend.getBaseUrl());e.type="module",e.src=`https://npm-cdn.flarehr.com/@flarehr/benefits-plan-assessment@${n}/dist/benefits-plan-assessment.js`,e.dataset.injected="true",e.onload=()=>{i(!0)},t.current.appendChild(e)}else i(!0)})()}),[]),Fe("div",{ref:t,class:e.class,children:n&&o?Fe(ds,{...e,accessToken:n}):Fe(cs,{})})});var ds;
7
+ var Ma=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,ja=/\\([\u000b\u0020-\u00ff])/g,Ba=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,Ha=function(e){if(!e)throw new TypeError("argument string is required");var t="object"==typeof e?function(e){var t;"function"==typeof e.getHeader?t=e.getHeader("content-type"):"object"==typeof e.headers&&(t=e.headers&&e.headers["content-type"]);if("string"!=typeof t)throw new TypeError("content-type header is missing from object");return t}(e):e;if("string"!=typeof t)throw new TypeError("argument string is required to be a string");var n=t.indexOf(";"),r=-1!==n?t.slice(0,n).trim():t.trim();if(!Ba.test(r))throw new TypeError("invalid media type");var o=new za(r.toLowerCase());if(-1!==n){var i,a,s;for(Ma.lastIndex=n;a=Ma.exec(t);){if(a.index!==n)throw new TypeError("invalid parameter format");n+=a[0].length,i=a[1].toLowerCase(),34===(s=a[2]).charCodeAt(0)&&-1!==(s=s.slice(1,-1)).indexOf("\\")&&(s=s.replace(ja,"$1")),o.parameters[i]=s}if(n!==t.length)throw new TypeError("invalid parameter format")}return o};function za(e){this.parameters=Object.create(null),this.type=e}var Wa=new Map,qa=function(e){return e.cloneNode(!0)},Va=function(){return"file:"===window.location.protocol},Ga=function(e,t,n){var r=new XMLHttpRequest;r.onreadystatechange=function(){try{if(!/\.svg/i.test(e)&&2===r.readyState){var t=r.getResponseHeader("Content-Type");if(!t)throw new Error("Content type not found");var o=Ha(t).type;if("image/svg+xml"!==o&&"text/plain"!==o)throw new Error("Invalid content type: ".concat(o))}if(4===r.readyState){if(404===r.status||null===r.responseXML)throw new Error(Va()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+e);if(!(200===r.status||Va()&&0===r.status))throw new Error("There was a problem injecting the SVG: "+r.status+" "+r.statusText);n(null,r)}}catch(i){if(r.abort(),!(i instanceof Error))throw i;n(i,r)}},r.open("GET",e),r.withCredentials=t,r.overrideMimeType&&r.overrideMimeType("text/xml"),r.send()},$a={},Ya=function(e,t){$a[e]=$a[e]||[],$a[e].push(t)},Za=function(e,t,n){if(Wa.has(e)){var r=Wa.get(e);if(void 0===r)return void Ya(e,n);if(r instanceof SVGSVGElement)return void n(null,qa(r))}Wa.set(e,void 0),Ya(e,n),Ga(e,t,(function(t,n){var r;t?Wa.set(e,t):(null===(r=n.responseXML)||void 0===r?void 0:r.documentElement)instanceof SVGSVGElement&&Wa.set(e,n.responseXML.documentElement),function(e){for(var t=function(t,n){setTimeout((function(){if(Array.isArray($a[e])){var n=Wa.get(e),r=$a[e][t];n instanceof SVGSVGElement&&r(null,qa(n)),n instanceof Error&&r(n),t===$a[e].length-1&&delete $a[e]}}),0)},n=0,r=$a[e].length;n<r;n++)t(n)}(e)}))},Ka=function(e,t,n){Ga(e,t,(function(e,t){var r;e?n(e):(null===(r=t.responseXML)||void 0===r?void 0:r.documentElement)instanceof SVGSVGElement&&n(null,t.responseXML.documentElement)}))},Ja=0,Xa=[],Qa={},es="http://www.w3.org/1999/xlink",ts=function(e,t,n,r,o,i,a){var s=e.getAttribute("data-src")||e.getAttribute("src");if(s){if(-1!==Xa.indexOf(e))return Xa.splice(Xa.indexOf(e),1),void(e=null);Xa.push(e),e.setAttribute("src",""),(r?Za:Ka)(s,o,(function(r,o){if(!o)return Xa.splice(Xa.indexOf(e),1),e=null,void a(r);var l=e.getAttribute("id");l&&o.setAttribute("id",l);var c=e.getAttribute("title");c&&o.setAttribute("title",c);var u=e.getAttribute("width");u&&o.setAttribute("width",u);var d=e.getAttribute("height");d&&o.setAttribute("height",d);var p=Array.from(new Set(Da(Da(Da([],(o.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(e.getAttribute("class")||"").split(" "),!0))).join(" ").trim();o.setAttribute("class",p);var f=e.getAttribute("style");f&&o.setAttribute("style",f),o.setAttribute("data-src",s);var m=[].filter.call(e.attributes,(function(e){return/^data-\w[\w-]*$/.test(e.name)}));if(Array.prototype.forEach.call(m,(function(e){e.name&&e.value&&o.setAttribute(e.name,e.value)})),n){var h,g,y,_,b,w={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],path:[],pattern:["fill","stroke"],radialGradient:["fill","stroke"]};Object.keys(w).forEach((function(e){h=e,y=w[e];for(var t=function(e,t){var n;_=g[e].id,b=_+"-"+ ++Ja,Array.prototype.forEach.call(y,(function(e){for(var t=0,r=(n=o.querySelectorAll("["+e+'*="'+_+'"]')).length;t<r;t++){var i=n[t].getAttribute(e);i&&!i.match(new RegExp('url\\("?#'+_+'"?\\)'))||n[t].setAttribute(e,"url(#"+b+")")}}));for(var r=o.querySelectorAll("[*|href]"),i=[],a=0,s=r.length;a<s;a++){var l=r[a].getAttributeNS(es,"href");l&&l.toString()==="#"+g[e].id&&i.push(r[a])}for(var c=0,u=i.length;c<u;c++)i[c].setAttributeNS(es,"href","#"+b);g[e].id=b},n=0,r=(g=o.querySelectorAll(h+"[id]")).length;n<r;n++)t(n)}))}o.removeAttribute("xmlns:a");for(var v,x,C=o.querySelectorAll("script"),k=[],E=0,S=C.length;E<S;E++)(x=C[E].getAttribute("type"))&&"application/ecmascript"!==x&&"application/javascript"!==x&&"text/javascript"!==x||((v=C[E].innerText||C[E].textContent)&&k.push(v),o.removeChild(C[E]));if(k.length>0&&("always"===t||"once"===t&&!Qa[s])){for(var T=0,N=k.length;T<N;T++)new Function(k[T])(window);Qa[s]=!0}var A=o.querySelectorAll("style");if(Array.prototype.forEach.call(A,(function(e){e.textContent+=""})),o.setAttribute("xmlns","http://www.w3.org/2000/svg"),o.setAttribute("xmlns:xlink",es),i(o),!e.parentNode)return Xa.splice(Xa.indexOf(e),1),e=null,void a(new Error("Parent node is null"));e.parentNode.replaceChild(o,e),Xa.splice(Xa.indexOf(e),1),e=null,a(null,o)}))}else a(new Error("Invalid data-src or src attribute"))},ns={exports:{}};function rs(){}function os(){}os.resetWarningCache=rs;ns.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:os,resetWarningCache:rs};return n.PropTypes=n,n}();var is=ns.exports,as=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],ss="http://www.w3.org/2000/svg",ls="http://www.w3.org/1999/xlink",cs=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).initialState={hasError:!1,isLoading:!0},t.state=t.initialState,t._isMounted=!1,t.reactWrapper=void 0,t.nonReactWrapper=void 0,t.refCallback=function(e){t.reactWrapper=e},t}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Fa(e,t)}(t,e);var n=t.prototype;return n.renderSVG=function(){var e,t=this;if(this.reactWrapper instanceof(e=this.reactWrapper,((null==e?void 0:e.ownerDocument)||document).defaultView||window).Node){var n,r,o=this.props,i=o.desc,a=o.evalScripts,s=o.httpRequestWithCredentials,l=o.renumerateIRIElements,c=o.src,u=o.title,d=o.useRequestCache,p=this.props.onError,f=this.props.beforeInjection,m=this.props.afterInjection,h=this.props.wrapper;"svg"===h?((n=document.createElementNS(ss,h)).setAttribute("xmlns",ss),n.setAttribute("xmlns:xlink",ls),r=document.createElementNS(ss,h)):(n=document.createElement(h),r=document.createElement(h)),n.appendChild(r),r.dataset.src=c,this.nonReactWrapper=this.reactWrapper.appendChild(n);var g=function(e){t.removeSVG(),t._isMounted?t.setState((function(){return{hasError:!0,isLoading:!1}}),(function(){p(e)})):p(e)};!function(e,t){var n=void 0===t?{}:t,r=n.afterAll,o=void 0===r?function(){}:r,i=n.afterEach,a=void 0===i?function(){}:i,s=n.beforeEach,l=void 0===s?function(){}:s,c=n.cacheRequests,u=void 0===c||c,d=n.evalScripts,p=void 0===d?"never":d,f=n.httpRequestWithCredentials,m=void 0!==f&&f,h=n.renumerateIRIElements,g=void 0===h||h;if(e&&"length"in e)for(var y=0,_=0,b=e.length;_<b;_++)ts(e[_],p,g,u,m,l,(function(t,n){a(t,n),e&&"length"in e&&e.length===++y&&o(y)}));else e?ts(e,p,g,u,m,l,(function(t,n){a(t,n),o(1),e=null})):o(0)}(r,{afterEach:function(e,n){e?g(e):t._isMounted&&t.setState((function(){return{isLoading:!1}}),(function(){try{m(n)}catch(e){g(e)}}))},beforeEach:function(e){if(e.setAttribute("role","img"),i){var t=e.querySelector(":scope > desc");t&&e.removeChild(t);var n=document.createElement("desc");n.innerHTML=i,e.prepend(n)}if(u){var r=e.querySelector(":scope > title");r&&e.removeChild(r);var o=document.createElement("title");o.innerHTML=u,e.prepend(o)}try{f(e)}catch(a){g(a)}},cacheRequests:d,evalScripts:a,httpRequestWithCredentials:s,renumerateIRIElements:l})}},n.removeSVG=function(){var e;null!=(e=this.nonReactWrapper)&&e.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},n.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},n.componentDidUpdate=function(e){var t=this;(function(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1})(Ua({},e),this.props)&&this.setState((function(){return t.initialState}),(function(){t.removeSVG(),t.renderSVG()}))},n.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},n.render=function(){var e=this.props;e.afterInjection,e.beforeInjection,e.desc,e.evalScripts;var t=e.fallback;e.httpRequestWithCredentials;var n=e.loading;e.renumerateIRIElements,e.src,e.title,e.useRequestCache;var r=e.wrapper,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,as);return v(r,Ua({},o,{ref:this.refCallback},"svg"===r?{xmlns:ss,xmlnsXlink:ls}:{}),this.state.isLoading&&n&&v(n,null),this.state.hasError&&t&&v(t,null))},t}(E);cs.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"},cs.propTypes={afterInjection:is.func,beforeInjection:is.func,desc:is.string,evalScripts:is.oneOf(["always","once","never"]),fallback:is.oneOfType([is.func,is.object,is.string]),httpRequestWithCredentials:is.bool,loading:is.oneOfType([is.func,is.object,is.string]),onError:is.func,renumerateIRIElements:is.bool,src:is.string.isRequired,title:is.string,useRequestCache:is.bool,wrapper:is.oneOf(["div","span","svg"])};const us=()=>Fe("div",{class:"flex justify-center",children:Fe("span",{class:"animate-spin",children:Fe(De,{size:"lg"})})}),ds=(ps=e=>{var t,n,r;const{featureFlags:{marketplaceScheme:o}}=Ee(Be),{trace:i}=sa(),a=ve(null);return be((()=>{i({type:"offer-viewed",offerName:e.marketPlaceOffer.name,data:e.marketPlaceOffer.metadata}),a.current&&(a.current.terms=e.marketPlaceOffer.content.terms,a.current.details=e.marketPlaceOffer.content.details,a.current["on-accept"]=async()=>{await i({type:"offer-accepted",offerName:e.marketPlaceOffer.name,data:{...e.marketPlaceOffer.metadata,template:e.marketPlaceOffer.content.template,assessmentId:e.marketPlaceOffer.content.assessmentId}})},a.current["on-decline"]=async()=>{await i({type:"offer-declined",offerName:e.marketPlaceOffer.name,data:{...e.marketPlaceOffer.metadata,template:e.marketPlaceOffer.content.template,assessmentId:e.marketPlaceOffer.content.assessmentId}}),e.onStepComplete(!1)},a.current["on-complete"]=()=>e.onStepComplete(!0))}),[e,i]),Fe("benefits-plan-assessment",{"base-url":oa.workplaceBackend.getBaseUrl(),"profile-id":oa.workplaceBackend.getProfileId(),"access-token":e.accessToken,"image-url":e.marketPlaceOffer.content.imageUrl,"assessment-id":e.marketPlaceOffer.content.assessmentId,"assessment-instructions":"allowance"===o?e.marketPlaceOffer.content.assessmentInstructions:void 0,"track-client":"onboarding","track-source":"Onboarding","track-channel":"onboarding",title:e.marketPlaceOffer.content.title,description:e.marketPlaceOffer.content.description,"accept-button":e.marketPlaceOffer.content.acceptButton,"decline-button":e.marketPlaceOffer.content.declineButton,"special-banner-title":"allowance"===o?null==(t=e.marketPlaceOffer.content.specialBanner)?void 0:t.title:void 0,"special-banner-subtitle":"allowance"===o?null==(n=e.marketPlaceOffer.content.specialBanner)?void 0:n.subtitle:void 0,"special-banner-type":"allowance"===o?null==(r=e.marketPlaceOffer.content.specialBanner)?void 0:r.type:void 0,"vertical-alignment":"items-center",ref:a})},e=>{const t=ve(null),[n,r]=ye(),[o,i]=ye(!1);return be((()=>{(async()=>{const e=await oa.workplaceBackend.getAccessToken();r(e)})(),(()=>{if(t.current&&!t.current.querySelector("script[data-injected]")){const e=document.createElement("script"),n=(e=>{const t=null==e?void 0:e.match(/^(https:\/\/)?(test|autodev|sandbox)?-?partner\.flarehr\.com$/);return t&&t[2]?t[2]:"prod"})(oa.workplaceBackend.getBaseUrl());e.type="module",e.src=`https://npm-cdn.flarehr.com/@flarehr/benefits-plan-assessment@${n}/dist/benefits-plan-assessment.js`,e.dataset.injected="true",e.onload=()=>{i(!0)},t.current.appendChild(e)}else i(!0)})()}),[]),Fe("div",{ref:t,class:e.class,children:n&&o?Fe(ps,{...e,accessToken:n}):Fe(us,{})})});var ps;
8
8
  /*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */
9
- const{entries:ps,setPrototypeOf:fs,isFrozen:ms,getPrototypeOf:hs,getOwnPropertyDescriptor:gs}=Object;let{freeze:ys,seal:bs,create:_s}=Object,{apply:ws,construct:vs}="undefined"!=typeof Reflect&&Reflect;ys||(ys=function(e){return e}),bs||(bs=function(e){return e}),ws||(ws=function(e,t,n){return e.apply(t,n)}),vs||(vs=function(e,t){return new e(...t)});const xs=Us(Array.prototype.forEach),ks=Us(Array.prototype.pop),Es=Us(Array.prototype.push),Ss=Us(String.prototype.toLowerCase),Ts=Us(String.prototype.toString),Cs=Us(String.prototype.match),Ns=Us(String.prototype.replace),As=Us(String.prototype.indexOf),Os=Us(String.prototype.trim),Rs=Us(Object.prototype.hasOwnProperty),Ps=Us(RegExp.prototype.test),Ls=(Is=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return vs(Is,t)});var Is;function Us(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 ws(e,t,r)}}function Fs(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ss;fs&&fs(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(ms(t)||(t[r]=e),o=e)}e[o]=!0}return e}function Ds(e){for(let t=0;t<e.length;t++){Rs(e,t)||(e[t]=null)}return e}function js(e){const t=_s(null);for(const[n,r]of ps(e)){Rs(e,n)&&(Array.isArray(r)?t[n]=Ds(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=js(r):t[n]=r)}return t}function Ms(e,t){for(;null!==e;){const n=gs(e,t);if(n){if(n.get)return Us(n.get);if("function"==typeof n.value)return Us(n.value)}e=hs(e)}return function(){return null}}const Bs=ys(["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"]),Hs=ys(["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"]),zs=ys(["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"]),Ws=ys(["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"]),qs=ys(["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"]),Vs=ys(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),$s=ys(["#text"]),Gs=ys(["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","popover","popovertarget","popovertargetaction","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","wrap","xmlns","slot"]),Ys=ys(["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"]),Js=ys(["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"]),Ks=ys(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Xs=bs(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Zs=bs(/<%[\w\W]*|[\w\W]*%>/gm),Qs=bs(/\${[\w\W]*}/gm),el=bs(/^data-[\-\w.\u00B7-\uFFFF]/),tl=bs(/^aria-[\-\w]+$/),nl=bs(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),rl=bs(/^(?:\w+script|data):/i),ol=bs(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),il=bs(/^html$/i),al=bs(/^[a-z][.\w]*(-[.\w]+)+$/i);var sl=Object.freeze({__proto__:null,MUSTACHE_EXPR:Xs,ERB_EXPR:Zs,TMPLIT_EXPR:Qs,DATA_ATTR:el,ARIA_ATTR:tl,IS_ALLOWED_URI:nl,IS_SCRIPT_OR_DATA:rl,ATTR_WHITESPACE:ol,DOCTYPE_NAME:il,CUSTOM_ELEMENT:al});const ll=1,cl=3,ul=7,dl=8,pl=9;var fl=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.1.6",n.removed=[],!t||!t.document||t.document.nodeType!==pl)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=Ms(h,"cloneNode"),y=Ms(h,"remove"),b=Ms(h,"nextSibling"),_=Ms(h,"childNodes"),w=Ms(h,"parentNode");if("function"==typeof s){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let v,x="";const{implementation:k,createNodeIterator:E,createDocumentFragment:S,getElementsByTagName:T}=r,{importNode:C}=o;let N={};n.isSupported="function"==typeof ps&&"function"==typeof w&&k&&void 0!==k.createHTMLDocument;const{MUSTACHE_EXPR:A,ERB_EXPR:O,TMPLIT_EXPR:R,DATA_ATTR:P,ARIA_ATTR:L,IS_SCRIPT_OR_DATA:I,ATTR_WHITESPACE:U,CUSTOM_ELEMENT:F}=sl;let{IS_ALLOWED_URI:D}=sl,j=null;const M=Fs({},[...Bs,...Hs,...zs,...qs,...$s]);let B=null;const H=Fs({},[...Gs,...Ys,...Js,...Ks]);let z=Object.seal(_s(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}})),W=null,q=null,V=!0,$=!0,G=!1,Y=!0,J=!1,K=!0,X=!1,Z=!1,Q=!1,ee=!1,te=!1,ne=!1,re=!0,oe=!1,ie=!0,ae=!1,se={},le=null;const ce=Fs({},["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 ue=null;const de=Fs({},["audio","video","img","source","image","track"]);let pe=null;const fe=Fs({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),me="http://www.w3.org/1998/Math/MathML",he="http://www.w3.org/2000/svg",ge="http://www.w3.org/1999/xhtml";let ye=ge,be=!1,_e=null;const we=Fs({},[me,he,ge],Ts);let ve=null;const xe=["application/xhtml+xml","text/html"];let ke=null,Ee=null;const Se=r.createElement("form"),Te=function(e){return e instanceof RegExp||e instanceof Function},Ce=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ee||Ee!==e){if(e&&"object"==typeof e||(e={}),e=js(e),ve=-1===xe.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ke="application/xhtml+xml"===ve?Ts:Ss,j=Rs(e,"ALLOWED_TAGS")?Fs({},e.ALLOWED_TAGS,ke):M,B=Rs(e,"ALLOWED_ATTR")?Fs({},e.ALLOWED_ATTR,ke):H,_e=Rs(e,"ALLOWED_NAMESPACES")?Fs({},e.ALLOWED_NAMESPACES,Ts):we,pe=Rs(e,"ADD_URI_SAFE_ATTR")?Fs(js(fe),e.ADD_URI_SAFE_ATTR,ke):fe,ue=Rs(e,"ADD_DATA_URI_TAGS")?Fs(js(de),e.ADD_DATA_URI_TAGS,ke):de,le=Rs(e,"FORBID_CONTENTS")?Fs({},e.FORBID_CONTENTS,ke):ce,W=Rs(e,"FORBID_TAGS")?Fs({},e.FORBID_TAGS,ke):{},q=Rs(e,"FORBID_ATTR")?Fs({},e.FORBID_ATTR,ke):{},se=!!Rs(e,"USE_PROFILES")&&e.USE_PROFILES,V=!1!==e.ALLOW_ARIA_ATTR,$=!1!==e.ALLOW_DATA_ATTR,G=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,J=e.SAFE_FOR_TEMPLATES||!1,K=!1!==e.SAFE_FOR_XML,X=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,Q=e.FORCE_BODY||!1,re=!1!==e.SANITIZE_DOM,oe=e.SANITIZE_NAMED_PROPS||!1,ie=!1!==e.KEEP_CONTENT,ae=e.IN_PLACE||!1,D=e.ALLOWED_URI_REGEXP||nl,ye=e.NAMESPACE||ge,z=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Te(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(z.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Te(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(z.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(z.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),J&&($=!1),te&&(ee=!0),se&&(j=Fs({},$s),B=[],!0===se.html&&(Fs(j,Bs),Fs(B,Gs)),!0===se.svg&&(Fs(j,Hs),Fs(B,Ys),Fs(B,Ks)),!0===se.svgFilters&&(Fs(j,zs),Fs(B,Ys),Fs(B,Ks)),!0===se.mathMl&&(Fs(j,qs),Fs(B,Js),Fs(B,Ks))),e.ADD_TAGS&&(j===M&&(j=js(j)),Fs(j,e.ADD_TAGS,ke)),e.ADD_ATTR&&(B===H&&(B=js(B)),Fs(B,e.ADD_ATTR,ke)),e.ADD_URI_SAFE_ATTR&&Fs(pe,e.ADD_URI_SAFE_ATTR,ke),e.FORBID_CONTENTS&&(le===ce&&(le=js(le)),Fs(le,e.FORBID_CONTENTS,ke)),ie&&(j["#text"]=!0),X&&Fs(j,["html","head","body"]),j.table&&(Fs(j,["tbody"]),delete W.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw Ls('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw Ls('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=e.TRUSTED_TYPES_POLICY,x=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 x&&(x=v.createHTML(""));ys&&ys(e),Ee=e}},Ne=Fs({},["mi","mo","mn","ms","mtext"]),Ae=Fs({},["foreignobject","annotation-xml"]),Oe=Fs({},["title","style","font","a","script"]),Re=Fs({},[...Hs,...zs,...Ws]),Pe=Fs({},[...qs,...Vs]),Le=function(e){Es(n.removed,{element:e});try{w(e).removeChild(e)}catch(t){y(e)}},Ie=function(e,t){try{Es(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(r){Es(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!B[e])if(ee||te)try{Le(t)}catch(r){}else try{t.setAttribute(e,"")}catch(r){}},Ue=function(e){let t=null,n=null;if(Q)e="<remove></remove>"+e;else{const t=Cs(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ve&&ye===ge&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=v?v.createHTML(e):e;if(ye===ge)try{t=(new f).parseFromString(o,ve)}catch(a){}if(!t||!t.documentElement){t=k.createDocument(ye,"template",null);try{t.documentElement.innerHTML=be?x:o}catch(a){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),ye===ge?T.call(t,X?"html":"body")[0]:X?t.documentElement:i},Fe=function(e){return E.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},De=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},je=function(e){return"function"==typeof l&&e instanceof l},Me=function(e,t,r){N[e]&&xs(N[e],(e=>{e.call(n,t,r,Ee)}))},Be=function(e){let t=null;if(Me("beforeSanitizeElements",e,null),De(e))return Le(e),!0;const r=ke(e.nodeName);if(Me("uponSanitizeElement",e,{tagName:r,allowedTags:j}),e.hasChildNodes()&&!je(e.firstElementChild)&&Ps(/<[/\w]/g,e.innerHTML)&&Ps(/<[/\w]/g,e.textContent))return Le(e),!0;if(e.nodeType===ul)return Le(e),!0;if(K&&e.nodeType===dl&&Ps(/<[/\w]/g,e.data))return Le(e),!0;if(!j[r]||W[r]){if(!W[r]&&ze(r)){if(z.tagNameCheck instanceof RegExp&&Ps(z.tagNameCheck,r))return!1;if(z.tagNameCheck instanceof Function&&z.tagNameCheck(r))return!1}if(ie&&!le[r]){const t=w(e)||e.parentNode,n=_(e)||e.childNodes;if(n&&t){for(let r=n.length-1;r>=0;--r){const o=g(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,b(e))}}}return Le(e),!0}return e instanceof c&&!function(e){let t=w(e);t&&t.tagName||(t={namespaceURI:ye,tagName:"template"});const n=Ss(e.tagName),r=Ss(t.tagName);return!!_e[e.namespaceURI]&&(e.namespaceURI===he?t.namespaceURI===ge?"svg"===n:t.namespaceURI===me?"svg"===n&&("annotation-xml"===r||Ne[r]):Boolean(Re[n]):e.namespaceURI===me?t.namespaceURI===ge?"math"===n:t.namespaceURI===he?"math"===n&&Ae[r]:Boolean(Pe[n]):e.namespaceURI===ge?!(t.namespaceURI===he&&!Ae[r])&&!(t.namespaceURI===me&&!Ne[r])&&!Pe[n]&&(Oe[n]||!Re[n]):!("application/xhtml+xml"!==ve||!_e[e.namespaceURI]))}(e)?(Le(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!Ps(/<\/no(script|embed|frames)/i,e.innerHTML)?(J&&e.nodeType===cl&&(t=e.textContent,xs([A,O,R],(e=>{t=Ns(t,e," ")})),e.textContent!==t&&(Es(n.removed,{element:e.cloneNode()}),e.textContent=t)),Me("afterSanitizeElements",e,null),!1):(Le(e),!0)},He=function(e,t,n){if(re&&("id"===t||"name"===t)&&(n in r||n in Se))return!1;if($&&!q[t]&&Ps(P,t));else if(V&&Ps(L,t));else if(!B[t]||q[t]){if(!(ze(e)&&(z.tagNameCheck instanceof RegExp&&Ps(z.tagNameCheck,e)||z.tagNameCheck instanceof Function&&z.tagNameCheck(e))&&(z.attributeNameCheck instanceof RegExp&&Ps(z.attributeNameCheck,t)||z.attributeNameCheck instanceof Function&&z.attributeNameCheck(t))||"is"===t&&z.allowCustomizedBuiltInElements&&(z.tagNameCheck instanceof RegExp&&Ps(z.tagNameCheck,n)||z.tagNameCheck instanceof Function&&z.tagNameCheck(n))))return!1}else if(pe[t]);else if(Ps(D,Ns(n,U,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==As(n,"data:")||!ue[e]){if(G&&!Ps(I,Ns(n,U,"")));else if(n)return!1}else;return!0},ze=function(e){return"annotation-xml"!==e&&Cs(e,F)},We=function(e){Me("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:B};let o=t.length;for(;o--;){const a=t[o],{name:s,namespaceURI:l,value:c}=a,u=ke(s);let d="value"===s?c:Os(c);if(r.attrName=u,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,Me("uponSanitizeAttribute",e,r),d=r.attrValue,K&&Ps(/((--!?|])>)|<\/(style|title)/i,d)){Ie(s,e);continue}if(r.forceKeepAttr)continue;if(Ie(s,e),!r.keepAttr)continue;if(!Y&&Ps(/\/>/i,d)){Ie(s,e);continue}J&&xs([A,O,R],(e=>{d=Ns(d,e," ")}));const p=ke(e.nodeName);if(He(p,u,d)){if(!oe||"id"!==u&&"name"!==u||(Ie(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),De(e)?Le(e):ks(n.removed)}catch(i){}}}Me("afterSanitizeAttributes",e,null)},qe=function e(t){let n=null;const r=Fe(t);for(Me("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)Me("uponSanitizeShadowNode",n,null),Be(n)||(n.content instanceof a&&e(n.content),We(n));Me("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(be=!e,be&&(e="\x3c!--\x3e"),"string"!=typeof e&&!je(e)){if("function"!=typeof e.toString)throw Ls("toString is not a function");if("string"!=typeof(e=e.toString()))throw Ls("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Z||Ce(t),n.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){const t=ke(e.nodeName);if(!j[t]||W[t])throw Ls("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)r=Ue("\x3c!----\x3e"),i=r.ownerDocument.importNode(e,!0),i.nodeType===ll&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!ee&&!J&&!X&&-1===e.indexOf("<"))return v&&ne?v.createHTML(e):e;if(r=Ue(e),!r)return ee?null:ne?x:""}r&&Q&&Le(r.firstChild);const u=Fe(ae?e:r);for(;s=u.nextNode();)Be(s)||(s.content instanceof a&&qe(s.content),We(s));if(ae)return e;if(ee){if(te)for(c=S.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(B.shadowroot||B.shadowrootmode)&&(c=C.call(o,c,!0)),c}let d=X?r.outerHTML:r.innerHTML;return X&&j["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&Ps(il,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),J&&xs([A,O,R],(e=>{d=Ns(d,e," ")})),v&&ne?v.createHTML(d):d},n.setConfig=function(){Ce(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Z=!0},n.clearConfig=function(){Ee=null,Z=!1},n.isValidAttribute=function(e,t,n){Ee||Ce({});const r=ke(e),o=ke(t);return He(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(N[e]=N[e]||[],Es(N[e],t))},n.removeHook=function(e){if(N[e])return ks(N[e])},n.removeHooks=function(e){N[e]&&(N[e]=[])},n.removeAllHooks=function(){N={}},n}();const ml=({children:e})=>{const t=$t.Children.toArray(e),n=t.find((e=>e.type===hl)),r=t.find((e=>e.type===gl));return Fe(Ar,{appear:!0,show:!0,enter:"transition duration-700 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:Fe("div",{class:"md:grid md:grid-cols-2 max-w-[59.5rem] mx-auto",children:[Fe(Ar,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:n&&Fe("div",{class:"flex items-center h-full",children:n})}),Fe(Ar,{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&&Fe("div",{class:"flex items-center h-full",children:r})})]})})},hl=({children:e})=>Fe(E,{children:e}),gl=({children:e})=>Fe(E,{children:e});ml.Left=hl,ml.Right=gl;const yl=e=>v("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,...e},v("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})),bl=e=>Fe(Ar,{appear:!0,show:!0,enter:"transition duration-300 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:Fe("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)=>Fe("div",{class:"flex space-x-1",children:[Fe("span",{children:Fe(Yt,{class:"h-5 w-5 fill-primary-base"})}),Fe("span",{class:"text-sm leading-5 text-gray-600",children:e})]},t)))})}),_l=e=>{const[t,n]=ye(!1);return Fe("div",{class:e.class,children:t?Fe(bl,{items:e.items}):Fe("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",Fe("span",{class:"ml-1",children:Fe(yl,{class:"h-4 w-4"})})]})})},wl=e=>{var t,n;const{featureFlags:{marketplaceScheme:r}}=Se(Be),{trace:o}=aa();_e((()=>{(async()=>{await o({type:"offer-viewed",offerName:e.step.name,data:e.step.metadata})})()}),[e.step.metadata,e.step.name,o]);const i=async t=>{t?await o({type:"offer-accepted",offerName:e.step.name,data:{...e.step.metadata,template:"Eoi"}}):await o({type:"offer-declined",offerName:e.step.name,data:{...e.step.metadata,template:"Eoi"}});return(t?e.primaryButton:e.secondaryButton).onClick()};return Fe(ml,{children:[Fe(ml.Left,{children:Fe("div",{children:Fe(Ar,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:[Fe("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:e.step.content.mobileImageUrl,loading:"lazy"}),Fe("div",{class:"md:max-w-[27.5rem]",children:[Fe("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:e.step.content.title}),Fe("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&&Fe("div",{class:"mt-6 hidden md:block",children:Fe(bl,{items:e.step.content.details})})]}),e.step.content.details&&Fe(_l,{class:"mt-6 md:hidden",items:e.step.content.details}),"allowance"===r&&"offer"==(null==(t=e.step.content.specialBanner)?void 0:t.type)&&Fe(Dr,{style:{background:"linear-gradient(90deg, rgba(255, 135, 111, 0.10) 0%, rgba(166, 80, 255, 0.10) 100%)"},className:"md:max-w-[27.5rem] mt-6",children:Fe("div",{children:[Fe("p",{className:"font-semibold text-lg leading-tight text-gray-900",children:e.step.content.specialBanner.title}),Fe("span",{className:"font-normal text-sm text-gray-900",children:e.step.content.specialBanner.subtitle})]})}),e.children&&e.children,Fe("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:[Fe(ze,{class:e.primaryButton.class??"",onClickPromise:()=>i(!0),children:e.primaryButton.text??"Next"}),(null==(n=e.secondaryButton)?void 0:n.text)&&Fe(ze,{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:()=>i(!1),children:e.secondaryButton.text})]}),e.step.content.terms&&Fe("div",{class:"flex flex-col gap-3 mt-6 text-gray-600 text-xs",children:e.step.content.terms.map(((e,t)=>Fe("span",{dangerouslySetInnerHTML:{__html:fl.sanitize(e,{ADD_ATTR:["target"]})}},t)))})]})})}),Fe(ml.Right,{children:Fe("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},vl=e=>{var t;const{featureFlags:{marketplaceScheme:n}}=Se(Be),{trace:r}=aa();_e((()=>{(async()=>{"name"in e.step&&await r({type:"offer-viewed",offerName:e.step.name,data:e.step.metadata})})()}),[e.step,r]);return Fe(ml,{children:[Fe(ml.Left,{children:Fe("div",{children:Fe(Ar,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:[Fe("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:e.step.content.mobileImageUrl,loading:"lazy"}),Fe("div",{class:"md:max-w-[27.5rem]",children:[Fe("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:e.step.content.title}),Fe("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&&Fe("div",{class:"mt-6 hidden md:block",children:Fe(bl,{items:e.step.content.details})})]}),e.step.content.details&&Fe(_l,{class:"mt-6 md:hidden",items:e.step.content.details}),"allowance"===n&&"offer"==(null==(t=e.step.content.specialBanner)?void 0:t.type)&&Fe(Dr,{style:{background:"linear-gradient(90deg, rgba(255, 135, 111, 0.10) 0%, rgba(166, 80, 255, 0.10) 100%)"},className:"md:max-w-[27.5rem] mt-6",children:Fe("div",{children:[Fe("p",{className:"font-semibold text-lg leading-tight text-gray-900",children:e.step.content.specialBanner.title}),Fe("span",{className:"font-normal text-sm text-gray-900",children:e.step.content.specialBanner.subtitle})]})}),e.children&&e.children,Fe("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:Fe(ze,{class:e.primaryButton.class??"",onClickPromise:async()=>{"name"in e.step&&await r({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&&Fe("div",{class:"flex flex-col gap-3 mt-6 text-gray-600 text-xs ",children:e.step.content.terms.map(((e,t)=>Fe("span",{dangerouslySetInnerHTML:{__html:fl.sanitize(e,{ADD_ATTR:["target"]})}},t)))})]})})}),Fe(ml.Right,{children:Fe("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},xl=({current:e,total:t})=>Fe("div",{className:"md:grid md:grid-cols-2 max-w-[59.5rem] mx-auto",children:Fe("div",{className:"flex justify-between md:block text-xs tracking-wide",children:Fe("span",{className:"relative px-3 py-0.5 text-primary-base font-semibold",children:[e," OF ",t,Fe("span",{className:"absolute left-0 rounded-xl bg-primary-base opacity-10 w-full h-[90%]"})]})})}),kl=e=>{const{featureFlags:{marketplaceSubNavigation:t},offersProgress:{update:n}}=Se(Be),[r,o]=ye(0),i=Ee(((t,i)=>{n(t,i),r===e.offers.length-1?e.onComplete():o(r+1)}),[n,r,e]);return Fe("div",{children:[!t&&Fe(xl,{current:r+1,total:e.offers.length+1}),Fe(pr.Group,{selectedIndex:r,onChange:o,children:[Fe("div",{className:(t?"md:grid":"hidden")+" md:grid-cols-2 max-w-[59.5rem] mx-auto ",children:Fe(pr.List,{className:"flex items-baseline md:mb-4",children:e.offers.map(((e,t)=>Fe(pr,{disabled:r!==t,className:({selected:e})=>'\n text-sm font-medium cursor-auto w-10 min-w-10 max-w-10 h-12 min-h-12 max-h-12 mr-10 h-full relative\n flex items-center justify-center\n [&:not(:last-child):after]:absolute [&:not(:last-child):after]:top-3 [&:not(:last-child):after]:content-[""] [&:not(:last-child):after]:w-10 [&:not(:last-child):after]:border-b-2 [&:not(:last-child):after]:border-solid [&:not(:last-child):after]:border-gray-200 [&:not(:last-child):after]:left-10\n '+(e?"text-primary-base":"text-gray-400"),children:Fe("div",{className:"flex items-center flex-col",children:[Fe(ls,{src:e.content.iconUrl,wrapper:"svg",className:"w-6 h-6 max-w-6 max-h-6 min-w-6 min-h-6",beforeInjection:e=>{var t;e.removeAttribute("width"),e.removeAttribute("height"),null==(t=e.querySelector("path"))||t.removeAttribute("fill"),e.setAttribute("fill","currentColor")}}),Fe("p",{className:"max-h-10 max-w-20 break-words text-ellipsis overflow-hidden line-clamp-2 mt-2",children:e.content.productName})]})},e.name)))})}),Fe(pr.Panels,{children:e.offers.map((e=>Fe(pr.Panel,{children:["Eoi"===e.content.template&&Fe(wl,{step:e,primaryButton:{text:e.content.acceptButton,onClick:()=>i(e.name,!0)},secondaryButton:{text:e.content.declineButton,onClick:()=>i(e.name,!1)}}),"Simple"===e.content.template&&Fe(vl,{step:e,primaryButton:{text:e.content.acceptButton,onClick:()=>i(e.name,!0)}}),"Assessment"===e.content.template&&Fe("div",{class:"max-w-[59.5rem] mx-auto",children:Fe(us,{class:"lg:-m-8 mt-4 md:mt-0",onStepComplete:t=>i(e.name,t),marketPlaceOffer:e},e.name)})]},e.name)))})]})]})},El=""+("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&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),Sl=e=>v("svg",{width:36,height:42,viewBox:"0 0 36 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v("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"})),Tl=e=>v("svg",{width:37,height:40,viewBox:"0 0 37 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v("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"})),Cl=""+("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&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),Nl=({onComplete:e})=>{const{trace:t}=aa(),{identity:n,featureFlags:{marketplaceScheme:r}}=Se(Be);_e((()=>{(async()=>{await t({type:"summary-viewed",data:{summaryVariant:"app"}},{experiment:"onboarding-marketplace-scheme",treatment:r})})()}),[r,t]);const o={...Al(n),imageUrl:El,mobileImageUrl:Cl},i={text:"Continue",class:"mt-6 md:mt-14",onClick:async()=>{await t("completed",{experiment:"onboarding-marketplace-scheme",treatment:r}),await e()}};return Fe(ml,{children:[Fe(ml.Left,{children:Fe("div",{children:[Fe("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:o.mobileImageUrl,loading:"lazy"}),Fe("div",{class:"md:max-w-[27.5rem]",children:[Fe("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:o.title}),Fe("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:o.description})]}),Fe("div",{class:"mt-6 flex space-x-6",children:[Fe(Sl,{}),Fe(Tl,{})]}),Fe(ze,{class:i.class,onClickPromise:i.onClick,children:i.text})]})}),Fe(ml.Right,{children:Fe("img",{class:"max-w-[30rem] w-full hidden md:block",src:o.imageUrl,loading:"lazy"})})]})},Al=e=>{switch(e.registrationStatus){case"RegistrationAbandoned":return{title:"Join your workplace",description:`We’ve sent an email to ${e.email} with instructions on how to 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.`}}},Ol=""+("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&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),Rl=""+("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&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),Pl=({onComplete:e})=>{const{trace:t}=aa(),{workplace:n,featureFlags:{marketplaceScheme:r}}=Se(Be);_e((()=>{(async()=>{await t({type:"summary-viewed",data:{summaryVariant:"generic"}},{experiment:"onboarding-marketplace-scheme",treatment:r})})()}),[r,t]);const o={imageUrl:Ol,mobileImageUrl:Rl,title:"You're all set!",description:"PreviouslyLinked"===n.linkingStatus?"You’ve already connected this employer with your Flare Benefits account. Simply continue and review the details you have provided to complete your onboarding.":"Simply continue and review the details you have provided to complete your onboarding."},i={text:"Continue",class:"mt-6 md:mt-6",onClick:async()=>{await t("completed",{experiment:"onboarding-marketplace-scheme",treatment:r}),await e()}};return Fe(ml,{children:[Fe(ml.Left,{children:Fe("div",{children:[Fe("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:o.mobileImageUrl,loading:"lazy"}),Fe("div",{class:"md:max-w-[27.5rem]",children:[Fe("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:o.title}),Fe("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:o.description})]}),Fe("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:Fe(ze,{class:i.class,onClickPromise:i.onClick,children:i.text})})]})}),Fe(ml.Right,{children:Fe("img",{class:"max-w-[30rem] w-full hidden md:block",src:o.imageUrl,loading:"lazy"})})]})},Ll=()=>{const{offers:e,isComplete:t,isAppEnabled:n,identity:r,workplace:o,featureFlags:i,updateIdentity:a}=Se(Be),{current:s,goNext:l}=function(e,t,n,r,o){const i=function(e,t,n,r,o){const i="allowance"===o.marketplaceScheme?"Allowance_JoinBenefits":"Introduction",a="allowance"===o.marketplaceScheme?"Allowance_BenefitsSummary":t?"SummaryApp":"SummaryGeneric";if(e)return[a];switch(!0){case"Unregistered"===n.registrationStatus:case"PreviouslyRegistered"===n.registrationStatus&&"Unlinked"===r.linkingStatus:return[i,"FlareAppIdentity"];case"PreviouslyRegistered"===n.registrationStatus&&"NewlyLinked"==r.linkingStatus:case"NewlyRegistered"===n.registrationStatus:return"allowance"===o.marketplaceScheme?["Allowance_ConfigureBenefits","MarketplaceOffers","Allowance_BenefitsSummary"]:["MarketplaceOffers",a];case"PreviouslyRegistered"===n.registrationStatus&&"PreviouslyLinked"==r.linkingStatus:case"RegistrationAbandoned"===n.registrationStatus:return[a];default:return[]}}(e,t,n,r,o),[a,s]=ye(i[0]);return i.some((e=>e===a))||s(i[0]),{current:a,goNext:async()=>{if(i.indexOf(a)===i.length-1){const e=document.querySelector(Ul),t=new CustomEvent("step-completion",{bubbles:!0});return null==e||e.dispatchEvent(t),void(await new Promise((e=>setTimeout(e,1e4))))}try{const e=i.findIndex((e=>e===a)),t=i[e+1];s(t)}catch{}}}}(t,n,r,o,i),c=Ee((()=>{a(!0)}),[a]),u=Ee((()=>{a(!1)}),[a]);switch(s){case"Introduction":return Fe(La,{employerName:o.employerName,onStepComplete:l});case"Allowance_JoinBenefits":return Fe(sa,{employerName:o.employerName,onContinue:l});case"FlareAppIdentity":return Fe(Ra,{onSuccess:c,onDecline:u});case"Allowance_ConfigureBenefits":return Fe(Ir,{onContinue:l});case"MarketplaceOffers":return Fe(kl,{offers:e,onComplete:l});case"Allowance_BenefitsSummary":return Fe(pa,{onContinue:l});case"SummaryApp":return Fe(Nl,{onComplete:l});case"SummaryGeneric":return Fe(Pl,{onComplete:l});default:return Fe(E,{})}},Il=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{...Me,...e,isAppEnabled:t,identity:r,workplace:i}},Ul="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=X,o.prototype.attributeChangedCallback=Q,o.prototype.disconnectedCallback=ee,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,o)}((e=>{const[t,n]=ye(),[r,o]=ye(0);_e((()=>Hr((()=>{i().then((()=>o(r+1)))}))),[r]),_e((()=>{i()}),[]);const i=async()=>{const t={backendUrl:e["backend-url"],accessToken:e["access-token"],workflowsInstanceId:e["workflows-instance-id"]};oa(t.backendUrl,t.accessToken,t.workflowsInstanceId);const r=await na.backend.init();n(Il(r))},a=Ee((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 Fe(E,{children:[Fe("style",{children:He.toString()}),Fe("div",{class:"font-inter pt-6 pb-8 md:py-24 px-px",children:t?Fe(Be.Provider,{value:{...t,updateIdentity:a},children:Fe(Ll,{})}):Fe("div",{class:"flex justify-center",children:Fe("span",{class:"animate-spin",children:Fe(De,{size:"lg"})})})},r)]})}),Ul,[],{shadow:!0})}));
9
+ const{entries:fs,setPrototypeOf:ms,isFrozen:hs,getPrototypeOf:gs,getOwnPropertyDescriptor:ys}=Object;let{freeze:_s,seal:bs,create:ws}=Object,{apply:vs,construct:xs}="undefined"!=typeof Reflect&&Reflect;_s||(_s=function(e){return e}),bs||(bs=function(e){return e}),vs||(vs=function(e,t,n){return e.apply(t,n)}),xs||(xs=function(e,t){return new e(...t)});const Cs=Fs(Array.prototype.forEach),ks=Fs(Array.prototype.pop),Es=Fs(Array.prototype.push),Ss=Fs(String.prototype.toLowerCase),Ts=Fs(String.prototype.toString),Ns=Fs(String.prototype.match),As=Fs(String.prototype.replace),Os=Fs(String.prototype.indexOf),Rs=Fs(String.prototype.trim),Ps=Fs(Object.prototype.hasOwnProperty),Ls=Fs(RegExp.prototype.test),Is=(Us=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return xs(Us,t)});var Us;function Fs(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 vs(e,t,r)}}function Ds(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ss;ms&&ms(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(hs(t)||(t[r]=e),o=e)}e[o]=!0}return e}function Ms(e){for(let t=0;t<e.length;t++){Ps(e,t)||(e[t]=null)}return e}function js(e){const t=ws(null);for(const[n,r]of fs(e)){Ps(e,n)&&(Array.isArray(r)?t[n]=Ms(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=js(r):t[n]=r)}return t}function Bs(e,t){for(;null!==e;){const n=ys(e,t);if(n){if(n.get)return Fs(n.get);if("function"==typeof n.value)return Fs(n.value)}e=gs(e)}return function(){return null}}const Hs=_s(["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"]),zs=_s(["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"]),Ws=_s(["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"]),qs=_s(["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"]),Vs=_s(["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"]),Gs=_s(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),$s=_s(["#text"]),Ys=_s(["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","popover","popovertarget","popovertargetaction","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","wrap","xmlns","slot"]),Zs=_s(["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"]),Ks=_s(["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"]),Js=_s(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Xs=bs(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Qs=bs(/<%[\w\W]*|[\w\W]*%>/gm),el=bs(/\${[\w\W]*}/gm),tl=bs(/^data-[\-\w.\u00B7-\uFFFF]/),nl=bs(/^aria-[\-\w]+$/),rl=bs(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ol=bs(/^(?:\w+script|data):/i),il=bs(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),al=bs(/^html$/i),sl=bs(/^[a-z][.\w]*(-[.\w]+)+$/i);var ll=Object.freeze({__proto__:null,MUSTACHE_EXPR:Xs,ERB_EXPR:Qs,TMPLIT_EXPR:el,DATA_ATTR:tl,ARIA_ATTR:nl,IS_ALLOWED_URI:rl,IS_SCRIPT_OR_DATA:ol,ATTR_WHITESPACE:il,DOCTYPE_NAME:al,CUSTOM_ELEMENT:sl});const cl=1,ul=3,dl=7,pl=8,fl=9;var ml=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.1.6",n.removed=[],!t||!t.document||t.document.nodeType!==fl)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=Bs(h,"cloneNode"),y=Bs(h,"remove"),_=Bs(h,"nextSibling"),b=Bs(h,"childNodes"),w=Bs(h,"parentNode");if("function"==typeof s){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let v,x="";const{implementation:C,createNodeIterator:k,createDocumentFragment:E,getElementsByTagName:S}=r,{importNode:T}=o;let N={};n.isSupported="function"==typeof fs&&"function"==typeof w&&C&&void 0!==C.createHTMLDocument;const{MUSTACHE_EXPR:A,ERB_EXPR:O,TMPLIT_EXPR:R,DATA_ATTR:P,ARIA_ATTR:L,IS_SCRIPT_OR_DATA:I,ATTR_WHITESPACE:U,CUSTOM_ELEMENT:F}=ll;let{IS_ALLOWED_URI:D}=ll,M=null;const j=Ds({},[...Hs,...zs,...Ws,...Vs,...$s]);let B=null;const H=Ds({},[...Ys,...Zs,...Ks,...Js]);let z=Object.seal(ws(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}})),W=null,q=null,V=!0,G=!0,$=!1,Y=!0,Z=!1,K=!0,J=!1,X=!1,Q=!1,ee=!1,te=!1,ne=!1,re=!0,oe=!1,ie=!0,ae=!1,se={},le=null;const ce=Ds({},["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 ue=null;const de=Ds({},["audio","video","img","source","image","track"]);let pe=null;const fe=Ds({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),me="http://www.w3.org/1998/Math/MathML",he="http://www.w3.org/2000/svg",ge="http://www.w3.org/1999/xhtml";let ye=ge,_e=!1,be=null;const we=Ds({},[me,he,ge],Ts);let ve=null;const xe=["application/xhtml+xml","text/html"];let Ce=null,ke=null;const Ee=r.createElement("form"),Se=function(e){return e instanceof RegExp||e instanceof Function},Te=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ke||ke!==e){if(e&&"object"==typeof e||(e={}),e=js(e),ve=-1===xe.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ce="application/xhtml+xml"===ve?Ts:Ss,M=Ps(e,"ALLOWED_TAGS")?Ds({},e.ALLOWED_TAGS,Ce):j,B=Ps(e,"ALLOWED_ATTR")?Ds({},e.ALLOWED_ATTR,Ce):H,be=Ps(e,"ALLOWED_NAMESPACES")?Ds({},e.ALLOWED_NAMESPACES,Ts):we,pe=Ps(e,"ADD_URI_SAFE_ATTR")?Ds(js(fe),e.ADD_URI_SAFE_ATTR,Ce):fe,ue=Ps(e,"ADD_DATA_URI_TAGS")?Ds(js(de),e.ADD_DATA_URI_TAGS,Ce):de,le=Ps(e,"FORBID_CONTENTS")?Ds({},e.FORBID_CONTENTS,Ce):ce,W=Ps(e,"FORBID_TAGS")?Ds({},e.FORBID_TAGS,Ce):{},q=Ps(e,"FORBID_ATTR")?Ds({},e.FORBID_ATTR,Ce):{},se=!!Ps(e,"USE_PROFILES")&&e.USE_PROFILES,V=!1!==e.ALLOW_ARIA_ATTR,G=!1!==e.ALLOW_DATA_ATTR,$=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Z=e.SAFE_FOR_TEMPLATES||!1,K=!1!==e.SAFE_FOR_XML,J=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,Q=e.FORCE_BODY||!1,re=!1!==e.SANITIZE_DOM,oe=e.SANITIZE_NAMED_PROPS||!1,ie=!1!==e.KEEP_CONTENT,ae=e.IN_PLACE||!1,D=e.ALLOWED_URI_REGEXP||rl,ye=e.NAMESPACE||ge,z=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Se(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(z.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Se(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(z.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(z.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Z&&(G=!1),te&&(ee=!0),se&&(M=Ds({},$s),B=[],!0===se.html&&(Ds(M,Hs),Ds(B,Ys)),!0===se.svg&&(Ds(M,zs),Ds(B,Zs),Ds(B,Js)),!0===se.svgFilters&&(Ds(M,Ws),Ds(B,Zs),Ds(B,Js)),!0===se.mathMl&&(Ds(M,Vs),Ds(B,Ks),Ds(B,Js))),e.ADD_TAGS&&(M===j&&(M=js(M)),Ds(M,e.ADD_TAGS,Ce)),e.ADD_ATTR&&(B===H&&(B=js(B)),Ds(B,e.ADD_ATTR,Ce)),e.ADD_URI_SAFE_ATTR&&Ds(pe,e.ADD_URI_SAFE_ATTR,Ce),e.FORBID_CONTENTS&&(le===ce&&(le=js(le)),Ds(le,e.FORBID_CONTENTS,Ce)),ie&&(M["#text"]=!0),J&&Ds(M,["html","head","body"]),M.table&&(Ds(M,["tbody"]),delete W.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw Is('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw Is('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=e.TRUSTED_TYPES_POLICY,x=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 x&&(x=v.createHTML(""));_s&&_s(e),ke=e}},Ne=Ds({},["mi","mo","mn","ms","mtext"]),Ae=Ds({},["foreignobject","annotation-xml"]),Oe=Ds({},["title","style","font","a","script"]),Re=Ds({},[...zs,...Ws,...qs]),Pe=Ds({},[...Vs,...Gs]),Le=function(e){Es(n.removed,{element:e});try{w(e).removeChild(e)}catch(t){y(e)}},Ie=function(e,t){try{Es(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(r){Es(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!B[e])if(ee||te)try{Le(t)}catch(r){}else try{t.setAttribute(e,"")}catch(r){}},Ue=function(e){let t=null,n=null;if(Q)e="<remove></remove>"+e;else{const t=Ns(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ve&&ye===ge&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=v?v.createHTML(e):e;if(ye===ge)try{t=(new f).parseFromString(o,ve)}catch(a){}if(!t||!t.documentElement){t=C.createDocument(ye,"template",null);try{t.documentElement.innerHTML=_e?x:o}catch(a){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),ye===ge?S.call(t,J?"html":"body")[0]:J?t.documentElement:i},Fe=function(e){return k.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},De=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Me=function(e){return"function"==typeof l&&e instanceof l},je=function(e,t,r){N[e]&&Cs(N[e],(e=>{e.call(n,t,r,ke)}))},Be=function(e){let t=null;if(je("beforeSanitizeElements",e,null),De(e))return Le(e),!0;const r=Ce(e.nodeName);if(je("uponSanitizeElement",e,{tagName:r,allowedTags:M}),e.hasChildNodes()&&!Me(e.firstElementChild)&&Ls(/<[/\w]/g,e.innerHTML)&&Ls(/<[/\w]/g,e.textContent))return Le(e),!0;if(e.nodeType===dl)return Le(e),!0;if(K&&e.nodeType===pl&&Ls(/<[/\w]/g,e.data))return Le(e),!0;if(!M[r]||W[r]){if(!W[r]&&ze(r)){if(z.tagNameCheck instanceof RegExp&&Ls(z.tagNameCheck,r))return!1;if(z.tagNameCheck instanceof Function&&z.tagNameCheck(r))return!1}if(ie&&!le[r]){const t=w(e)||e.parentNode,n=b(e)||e.childNodes;if(n&&t){for(let r=n.length-1;r>=0;--r){const o=g(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,_(e))}}}return Le(e),!0}return e instanceof c&&!function(e){let t=w(e);t&&t.tagName||(t={namespaceURI:ye,tagName:"template"});const n=Ss(e.tagName),r=Ss(t.tagName);return!!be[e.namespaceURI]&&(e.namespaceURI===he?t.namespaceURI===ge?"svg"===n:t.namespaceURI===me?"svg"===n&&("annotation-xml"===r||Ne[r]):Boolean(Re[n]):e.namespaceURI===me?t.namespaceURI===ge?"math"===n:t.namespaceURI===he?"math"===n&&Ae[r]:Boolean(Pe[n]):e.namespaceURI===ge?!(t.namespaceURI===he&&!Ae[r])&&!(t.namespaceURI===me&&!Ne[r])&&!Pe[n]&&(Oe[n]||!Re[n]):!("application/xhtml+xml"!==ve||!be[e.namespaceURI]))}(e)?(Le(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!Ls(/<\/no(script|embed|frames)/i,e.innerHTML)?(Z&&e.nodeType===ul&&(t=e.textContent,Cs([A,O,R],(e=>{t=As(t,e," ")})),e.textContent!==t&&(Es(n.removed,{element:e.cloneNode()}),e.textContent=t)),je("afterSanitizeElements",e,null),!1):(Le(e),!0)},He=function(e,t,n){if(re&&("id"===t||"name"===t)&&(n in r||n in Ee))return!1;if(G&&!q[t]&&Ls(P,t));else if(V&&Ls(L,t));else if(!B[t]||q[t]){if(!(ze(e)&&(z.tagNameCheck instanceof RegExp&&Ls(z.tagNameCheck,e)||z.tagNameCheck instanceof Function&&z.tagNameCheck(e))&&(z.attributeNameCheck instanceof RegExp&&Ls(z.attributeNameCheck,t)||z.attributeNameCheck instanceof Function&&z.attributeNameCheck(t))||"is"===t&&z.allowCustomizedBuiltInElements&&(z.tagNameCheck instanceof RegExp&&Ls(z.tagNameCheck,n)||z.tagNameCheck instanceof Function&&z.tagNameCheck(n))))return!1}else if(pe[t]);else if(Ls(D,As(n,U,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Os(n,"data:")||!ue[e]){if($&&!Ls(I,As(n,U,"")));else if(n)return!1}else;return!0},ze=function(e){return"annotation-xml"!==e&&Ns(e,F)},We=function(e){je("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:B};let o=t.length;for(;o--;){const a=t[o],{name:s,namespaceURI:l,value:c}=a,u=Ce(s);let d="value"===s?c:Rs(c);if(r.attrName=u,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,je("uponSanitizeAttribute",e,r),d=r.attrValue,K&&Ls(/((--!?|])>)|<\/(style|title)/i,d)){Ie(s,e);continue}if(r.forceKeepAttr)continue;if(Ie(s,e),!r.keepAttr)continue;if(!Y&&Ls(/\/>/i,d)){Ie(s,e);continue}Z&&Cs([A,O,R],(e=>{d=As(d,e," ")}));const p=Ce(e.nodeName);if(He(p,u,d)){if(!oe||"id"!==u&&"name"!==u||(Ie(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),De(e)?Le(e):ks(n.removed)}catch(i){}}}je("afterSanitizeAttributes",e,null)},qe=function e(t){let n=null;const r=Fe(t);for(je("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)je("uponSanitizeShadowNode",n,null),Be(n)||(n.content instanceof a&&e(n.content),We(n));je("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(_e=!e,_e&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Me(e)){if("function"!=typeof e.toString)throw Is("toString is not a function");if("string"!=typeof(e=e.toString()))throw Is("dirty is not a string, aborting")}if(!n.isSupported)return e;if(X||Te(t),n.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){const t=Ce(e.nodeName);if(!M[t]||W[t])throw Is("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)r=Ue("\x3c!----\x3e"),i=r.ownerDocument.importNode(e,!0),i.nodeType===cl&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!ee&&!Z&&!J&&-1===e.indexOf("<"))return v&&ne?v.createHTML(e):e;if(r=Ue(e),!r)return ee?null:ne?x:""}r&&Q&&Le(r.firstChild);const u=Fe(ae?e:r);for(;s=u.nextNode();)Be(s)||(s.content instanceof a&&qe(s.content),We(s));if(ae)return e;if(ee){if(te)for(c=E.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(B.shadowroot||B.shadowrootmode)&&(c=T.call(o,c,!0)),c}let d=J?r.outerHTML:r.innerHTML;return J&&M["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&Ls(al,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),Z&&Cs([A,O,R],(e=>{d=As(d,e," ")})),v&&ne?v.createHTML(d):d},n.setConfig=function(){Te(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),X=!0},n.clearConfig=function(){ke=null,X=!1},n.isValidAttribute=function(e,t,n){ke||Te({});const r=Ce(e),o=Ce(t);return He(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(N[e]=N[e]||[],Es(N[e],t))},n.removeHook=function(e){if(N[e])return ks(N[e])},n.removeHooks=function(e){N[e]&&(N[e]=[])},n.removeAllHooks=function(){N={}},n}();const hl=({children:e})=>{const t=Gt.Children.toArray(e),n=t.find((e=>e.type===gl)),r=t.find((e=>e.type===yl));return Fe(Ar,{appear:!0,show:!0,enter:"transition duration-700 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:Fe("div",{class:"md:grid md:grid-cols-2 max-w-[59.5rem] mx-auto",children:[Fe(Ar,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:n&&Fe("div",{class:"flex items-center h-full",children:n})}),Fe(Ar,{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&&Fe("div",{class:"flex items-center h-full",children:r})})]})})},gl=({children:e})=>Fe(k,{children:e}),yl=({children:e})=>Fe(k,{children:e});hl.Left=gl,hl.Right=yl;const _l=e=>v("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,...e},v("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})),bl=e=>Fe(Ar,{appear:!0,show:!0,enter:"transition duration-300 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:Fe("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)=>Fe("div",{class:"flex space-x-1",children:[Fe("span",{children:Fe(Yt,{class:"h-5 w-5 fill-primary-base"})}),Fe("span",{class:"text-sm leading-5 text-gray-600",children:e})]},t)))})}),wl=e=>{const[t,n]=ye(!1);return Fe("div",{class:e.class,children:t?Fe(bl,{items:e.items}):Fe("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",Fe("span",{class:"ml-1",children:Fe(_l,{class:"h-4 w-4"})})]})})},vl=e=>{var t,n;const{featureFlags:{marketplaceScheme:r}}=Ee(Be),{trace:o}=sa();be((()=>{(async()=>{await o({type:"offer-viewed",offerName:e.step.name,data:e.step.metadata})})()}),[e.step.metadata,e.step.name,o]);const i=async t=>{t?await o({type:"offer-accepted",offerName:e.step.name,data:{...e.step.metadata,template:"Eoi"}}):await o({type:"offer-declined",offerName:e.step.name,data:{...e.step.metadata,template:"Eoi"}});return(t?e.primaryButton:e.secondaryButton).onClick()};return Fe(hl,{children:[Fe(hl.Left,{children:Fe("div",{children:Fe(Ar,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:[Fe("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:e.step.content.mobileImageUrl,loading:"lazy"}),Fe("div",{class:"md:max-w-[27.5rem]",children:[Fe("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:e.step.content.title}),Fe("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&&Fe("div",{class:"mt-6 hidden md:block",children:Fe(bl,{items:e.step.content.details})})]}),e.step.content.details&&Fe(wl,{class:"mt-6 md:hidden",items:e.step.content.details}),"allowance"===r&&"offer"==(null==(t=e.step.content.specialBanner)?void 0:t.type)&&Fe(Mr,{style:{background:"linear-gradient(90deg, rgba(255, 135, 111, 0.10) 0%, rgba(166, 80, 255, 0.10) 100%)"},className:"md:max-w-[27.5rem] mt-6",children:Fe("div",{children:[Fe("p",{className:"font-semibold text-lg leading-tight text-gray-900",children:e.step.content.specialBanner.title}),Fe("span",{className:"font-normal text-sm text-gray-900",children:e.step.content.specialBanner.subtitle})]})}),e.children&&e.children,Fe("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:[Fe(ze,{class:e.primaryButton.class??"",onClickPromise:()=>i(!0),children:e.primaryButton.text??"Next"}),(null==(n=e.secondaryButton)?void 0:n.text)&&Fe(ze,{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:()=>i(!1),children:e.secondaryButton.text})]}),e.step.content.terms&&Fe("div",{class:"flex flex-col gap-3 mt-6 text-gray-600 text-xs",children:e.step.content.terms.map(((e,t)=>Fe("span",{dangerouslySetInnerHTML:{__html:ml.sanitize(e,{ADD_ATTR:["target"]})}},t)))})]})})}),Fe(hl.Right,{children:Fe("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},xl=e=>{var t;const{featureFlags:{marketplaceScheme:n}}=Ee(Be),{trace:r}=sa();be((()=>{(async()=>{"name"in e.step&&await r({type:"offer-viewed",offerName:e.step.name,data:e.step.metadata})})()}),[e.step,r]);return Fe(hl,{children:[Fe(hl.Left,{children:Fe("div",{children:Fe(Ar,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:[Fe("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:e.step.content.mobileImageUrl,loading:"lazy"}),Fe("div",{class:"md:max-w-[27.5rem]",children:[Fe("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:e.step.content.title}),Fe("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&&Fe("div",{class:"mt-6 hidden md:block",children:Fe(bl,{items:e.step.content.details})})]}),e.step.content.details&&Fe(wl,{class:"mt-6 md:hidden",items:e.step.content.details}),"allowance"===n&&"offer"==(null==(t=e.step.content.specialBanner)?void 0:t.type)&&Fe(Mr,{style:{background:"linear-gradient(90deg, rgba(255, 135, 111, 0.10) 0%, rgba(166, 80, 255, 0.10) 100%)"},className:"md:max-w-[27.5rem] mt-6",children:Fe("div",{children:[Fe("p",{className:"font-semibold text-lg leading-tight text-gray-900",children:e.step.content.specialBanner.title}),Fe("span",{className:"font-normal text-sm text-gray-900",children:e.step.content.specialBanner.subtitle})]})}),e.children&&e.children,Fe("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:Fe(ze,{class:e.primaryButton.class??"",onClickPromise:async()=>{"name"in e.step&&await r({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&&Fe("div",{class:"flex flex-col gap-3 mt-6 text-gray-600 text-xs ",children:e.step.content.terms.map(((e,t)=>Fe("span",{dangerouslySetInnerHTML:{__html:ml.sanitize(e,{ADD_ATTR:["target"]})}},t)))})]})})}),Fe(hl.Right,{children:Fe("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},Cl=({current:e,total:t})=>Fe("div",{className:"md:grid md:grid-cols-2 max-w-[59.5rem] mx-auto",children:Fe("div",{className:"flex justify-between md:block text-xs tracking-wide",children:Fe("span",{className:"relative px-3 py-0.5 text-primary-base font-semibold",children:[e," OF ",t,Fe("span",{className:"absolute left-0 rounded-xl bg-primary-base opacity-10 w-full h-[90%]"})]})})}),kl=e=>{const{featureFlags:{marketplaceSubNavigation:t},offersProgress:{update:n}}=Ee(Be),[r,o]=ye(0),i=ke(((t,i)=>{n(t,i),r===e.offers.length-1?e.onComplete():o(r+1)}),[n,r,e]);return Fe("div",{children:[!t&&Fe(Cl,{current:r+1,total:e.offers.length+1}),Fe(pr.Group,{selectedIndex:r,onChange:o,children:[Fe("div",{className:(t?"md:grid":"hidden")+" md:grid-cols-2 max-w-[59.5rem] mx-auto ",children:Fe(pr.List,{className:"flex items-baseline md:mb-4",children:e.offers.map(((e,t)=>Fe(pr,{disabled:r!==t,className:({selected:e})=>'\n text-sm font-medium cursor-auto w-10 min-w-10 max-w-10 h-12 min-h-12 max-h-12 mr-10 h-full relative\n flex items-center justify-center\n [&:not(:last-child):after]:absolute [&:not(:last-child):after]:top-3 [&:not(:last-child):after]:content-[""] [&:not(:last-child):after]:w-10 [&:not(:last-child):after]:border-b-2 [&:not(:last-child):after]:border-solid [&:not(:last-child):after]:border-gray-200 [&:not(:last-child):after]:left-10\n '+(e?"text-primary-base":"text-gray-400"),children:Fe("div",{className:"flex items-center flex-col",children:[Fe(cs,{src:e.content.iconUrl,wrapper:"svg",className:"w-6 h-6 max-w-6 max-h-6 min-w-6 min-h-6",beforeInjection:e=>{var t;e.removeAttribute("width"),e.removeAttribute("height"),null==(t=e.querySelector("path"))||t.removeAttribute("fill"),e.setAttribute("fill","currentColor")}}),Fe("p",{className:"max-h-10 max-w-20 break-words text-ellipsis overflow-hidden line-clamp-2 mt-2",children:e.content.productName})]})},e.name)))})}),Fe(pr.Panels,{children:e.offers.map((e=>Fe(pr.Panel,{children:["Eoi"===e.content.template&&Fe(vl,{step:e,primaryButton:{text:e.content.acceptButton,onClick:()=>i(e.name,!0)},secondaryButton:{text:e.content.declineButton,onClick:()=>i(e.name,!1)}}),"Simple"===e.content.template&&Fe(xl,{step:e,primaryButton:{text:e.content.acceptButton,onClick:()=>i(e.name,!0)}}),"Assessment"===e.content.template&&Fe("div",{class:"max-w-[59.5rem] mx-auto",children:Fe(ds,{class:"lg:-m-8 mt-4 md:mt-0",onStepComplete:t=>i(e.name,t),marketPlaceOffer:e},e.name)})]},e.name)))})]})]})},El=""+("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&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),Sl=e=>v("svg",{width:36,height:42,viewBox:"0 0 36 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v("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"})),Tl=e=>v("svg",{width:37,height:40,viewBox:"0 0 37 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v("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"})),Nl=""+("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&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),Al=({onComplete:e})=>{const{trace:t}=sa();be((()=>{(async()=>{await t({type:"summary-viewed",data:{summaryVariant:"app"}})})()}),[]);const{identity:n}=Ee(Be),r={...Ol(n),imageUrl:El,mobileImageUrl:Nl},o={text:"Continue",class:"mt-6 md:mt-14",onClick:async()=>{await t("completed"),await e()}};return Fe(hl,{children:[Fe(hl.Left,{children:Fe("div",{children:[Fe("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:r.mobileImageUrl,loading:"lazy"}),Fe("div",{class:"md:max-w-[27.5rem]",children:[Fe("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:r.title}),Fe("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:r.description})]}),Fe("div",{class:"mt-6 flex space-x-6",children:[Fe(Sl,{}),Fe(Tl,{})]}),Fe(ze,{class:o.class,onClickPromise:o.onClick,children:o.text})]})}),Fe(hl.Right,{children:Fe("img",{class:"max-w-[30rem] w-full hidden md:block",src:r.imageUrl,loading:"lazy"})})]})},Ol=e=>{switch(e.registrationStatus){case"RegistrationAbandoned":return{title:"Join your workplace",description:`We’ve sent an email to ${e.email} with instructions on how to 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.`}}},Rl=""+("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&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),Pl=""+("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&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),Ll=({onComplete:e})=>{const{trace:t}=sa();be((()=>{(async()=>{await t({type:"summary-viewed",data:{summaryVariant:"generic"}})})()}),[]);const{workplace:n}=Ee(Be),r={imageUrl:Rl,mobileImageUrl:Pl,title:"You're all set!",description:"PreviouslyLinked"===n.linkingStatus?"You’ve already connected this employer with your Flare Benefits account. Simply continue and review the details you have provided to complete your onboarding.":"Simply continue and review the details you have provided to complete your onboarding."},o={text:"Continue",class:"mt-6 md:mt-6",onClick:async()=>{await t("completed"),await e()}};return Fe(hl,{children:[Fe(hl.Left,{children:Fe("div",{children:[Fe("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:r.mobileImageUrl,loading:"lazy"}),Fe("div",{class:"md:max-w-[27.5rem]",children:[Fe("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:r.title}),Fe("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:r.description})]}),Fe("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:Fe(ze,{class:o.class,onClickPromise:o.onClick,children:o.text})})]})}),Fe(hl.Right,{children:Fe("img",{class:"max-w-[30rem] w-full hidden md:block",src:r.imageUrl,loading:"lazy"})})]})},Il=()=>{const{offers:e,isComplete:t,isAppEnabled:n,identity:r,workplace:o,featureFlags:i,updateIdentity:a}=Ee(Be),{current:s,goNext:l}=function(e,t,n,r,o){const i=function(e,t,n,r,o){const i="allowance"===o.marketplaceScheme?"Allowance_JoinBenefits":"Introduction",a="allowance"===o.marketplaceScheme?"Allowance_BenefitsSummary":t?"SummaryApp":"SummaryGeneric";if(e)return[a];switch(!0){case"Unregistered"===n.registrationStatus:case"PreviouslyRegistered"===n.registrationStatus&&"Unlinked"===r.linkingStatus:return[i,"FlareAppIdentity"];case"PreviouslyRegistered"===n.registrationStatus&&"NewlyLinked"==r.linkingStatus:case"NewlyRegistered"===n.registrationStatus:return"allowance"===o.marketplaceScheme?["Allowance_ConfigureBenefits","MarketplaceOffers","Allowance_BenefitsSummary"]:["MarketplaceOffers",a];case"PreviouslyRegistered"===n.registrationStatus&&"PreviouslyLinked"==r.linkingStatus:case"RegistrationAbandoned"===n.registrationStatus:return[a];default:return[]}}(e,t,n,r,o),[a,s]=ye(i[0]);return i.some((e=>e===a))||s(i[0]),{current:a,goNext:async()=>{if(i.indexOf(a)===i.length-1){const e=document.querySelector(Fl),t=new CustomEvent("step-completion",{bubbles:!0});return null==e||e.dispatchEvent(t),void(await new Promise((e=>setTimeout(e,1e4))))}try{const e=i.findIndex((e=>e===a)),t=i[e+1];s(t)}catch{}}}}(t,n,r,o,i),c=ke((()=>{a(!0)}),[a]),u=ke((()=>{a(!1)}),[a]);switch(s){case"Introduction":return Fe(Ia,{employerName:o.employerName,onStepComplete:l});case"Allowance_JoinBenefits":return Fe(la,{employerName:o.employerName,onContinue:l});case"FlareAppIdentity":return Fe(Pa,{onSuccess:c,onDecline:u});case"Allowance_ConfigureBenefits":return Fe(Ir,{onContinue:l});case"MarketplaceOffers":return Fe(kl,{offers:e,onComplete:l});case"Allowance_BenefitsSummary":return Fe(fa,{onContinue:l});case"SummaryApp":return Fe(Al,{onComplete:l});case"SummaryGeneric":return Fe(Ll,{onComplete:l});default:return Fe(k,{})}},Ul=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{...je,...e,isAppEnabled:t,identity:r,workplace:i}},Fl="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=J,o.prototype.attributeChangedCallback=Q,o.prototype.disconnectedCallback=ee,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,o)}((e=>{const[t,n]=ye(),[r,o]=ye(0);be((()=>zr((()=>{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"]};ia(t.backendUrl,t.accessToken,t.workflowsInstanceId);const r=await ra.backend.init();n(Ul(r))},a=ke((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 Fe(k,{children:[Fe("style",{children:He.toString()}),Fe("div",{class:"font-inter pt-6 pb-8 md:py-24 px-px",children:t?Fe(Be.Provider,{value:{...t,updateIdentity:a},children:Fe(Il,{})}):Fe("div",{class:"flex justify-center",children:Fe("span",{class:"animate-spin",children:Fe(De,{size:"lg"})})})},r)]})}),Fl,[],{shadow:!0})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flarehr/apollo-benefits-onboarding",
3
- "version": "0.1.2390",
3
+ "version": "0.1.2391",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "dist/"