@flarehr/apollo-benefits-onboarding 0.1.2334 → 0.1.2336
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 +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,f,p,m,h={},_=[],g=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,y=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 k(){return{current:null}}function E(e){return e.children}function S(e,t){this.props=e,this.context=t}function C(e,t){if(null==t)return e.__?C(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?C(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),M(a,r,o,e.__n,void 0!==a.ownerSVGElement,32&o.__u?[i]:null,t,null==i?C(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 O(e){(!e.__d&&(e.__d=!0)&&u.push(e)&&!R.__r++||d!==l.debounceRendering)&&((d=l.debounceRendering)||f)(R)}function R(){var e,t,n,r=[],o=[];for(u.sort(p);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(p)):t&&l.__c&&l.__c(t,_));t&&B(r,t,o),R.__r=0}function A(e,t,n,r,o,i,a,s,l,c,u){var d,f,p,m,g,b=r&&r.__k||_,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):y(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=U(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=C(i)),H(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=C(i)),H(i,i))}(n,t,b),l=n.__d,d=0;d<w;d++)null!=(p=n.__k[d])&&"boolean"!=typeof p&&"function"!=typeof p&&(f=-1===p.__i?h:b[p.__i]||h,p.__i=d,M(e,p,f,o,i,a,s,l,c,u),m=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&z(f.ref,null,p),u.push(p.ref,p.__c||m,p)),null==g&&null!=m&&(g=m),65536&p.__u||f.__k===p.__k?l=P(p,l,e):"function"==typeof p.type&&void 0!==p.__d?l=p.__d:m&&(l=m.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=l,n.__e=g}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||(y(e)?e.some((function(e){L(e,t)})):t.push(e)),t}function U(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 D(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||g.test(t)?n:n+"px"}function I(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||D(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||D(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:F,i)):e.removeEventListener(t,i?j:F,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 F(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 f,p,m,_,g,v,x,k,T,N,O,R,P,L,U,D=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(u=!!(32&n.__u),i=[c=t.__e=n.__e]),(f=l.__b)&&f(t);e:if("function"==typeof D)try{if(k=t.props,T=(f=D.contextType)&&r[f.__c],N=f?T?T.props.value:f.__:r,n.__c?x=(p=t.__c=n.__c).__=p.__E:("prototype"in D&&D.prototype.render?t.__c=p=new D(k,N):(t.__c=p=new S(k,N),p.constructor=D,p.render=W),T&&T.sub(p),p.props=k,p.state||(p.state={}),p.context=N,p.__n=r,m=p.__d=!0,p.__h=[],p._sb=[]),null==p.__s&&(p.__s=p.state),null!=D.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=b({},p.__s)),b(p.__s,D.getDerivedStateFromProps(k,p.__s))),_=p.props,g=p.state,p.__v=t,m)null==D.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(null==D.getDerivedStateFromProps&&k!==_&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(k,N),!p.__e&&(null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(k,p.__s,N)||t.__v===n.__v)){for(t.__v!==n.__v&&(p.props=k,p.state=p.__s,p.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),O=0;O<p._sb.length;O++)p.__h.push(p._sb[O]);p._sb=[],p.__h.length&&a.push(p);break e}null!=p.componentWillUpdate&&p.componentWillUpdate(k,p.__s,N),null!=p.componentDidUpdate&&p.__h.push((function(){p.componentDidUpdate(_,g,v)}))}if(p.context=N,p.props=k,p.__P=e,p.__e=!1,R=l.__r,P=0,"prototype"in D&&D.prototype.render){for(p.state=p.__s,p.__d=!1,R&&R(t),f=p.render(p.props,p.state,p.context),L=0;L<p._sb.length;L++)p.__h.push(p._sb[L]);p._sb=[]}else do{p.__d=!1,R&&R(t),f=p.render(p.props,p.state,p.context),p.state=p.__s}while(p.__d&&++P<25);p.state=p.__s,null!=p.getChildContext&&(r=b(b({},r),p.getChildContext())),m||null==p.getSnapshotBeforeUpdate||(v=p.getSnapshotBeforeUpdate(_,g)),A(e,y(U=null!=f&&f.type===E&&null==f.key?f.props.children:f)?U:[U],t,n,r,o,i,a,c,u,d),p.base=t.__e,t.__u&=-161,p.__h.length&&a.push(p),x&&(p.__E=p.__=null)}catch(F){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(F,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,f,p,m,_,g,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?f=m:"key"===u||u in v||I(e,u,null,m,o));for(u in v)m=v[u],"children"==u?p=m:"dangerouslySetInnerHTML"==u?d=m:"value"==u?_=m:"checked"==u?g=m:"key"===u||l&&"function"!=typeof m||b[u]===m||I(e,u,m,b[u],o);if(d)l||f&&(d.__html===f.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(f&&(e.innerHTML=""),A(e,y(p)?p:[p],t,n,r,o&&"foreignObject"!==x,i,a,i?i[0]:n.__k&&C(n,0),l,c),null!=i)for(u=i.length;u--;)null!=i[u]&&w(i[u]);l||(u="value",void 0!==_&&(_!==e[u]||"progress"===x&&!_||"option"===x&&_!==b[u])&&I(e,u,_,b[u],!1),u="checked",void 0!==g&&g!==e[u]&&I(e,u,g,b[u],!1))}return e}(n.__e,t,n,r,o,i,a,u,d);(f=l.diffed)&&f(t)}function B(e,t,n){for(var r=0;r<n.length;r++)z(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 z(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(r){l.__e(r,n)}}function H(e,t,n){var r,o;if(l.unmount&&l.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||z(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]&&H(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=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 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,O(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=_.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=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),O(this))},S.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),O(this))},S.prototype.render=E,u=[],f="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,p=function(e,t){return e.__v.__b-t.__v.__b},R.__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,fe=ce.diffed,pe=ce.__c,me=ce.unmount,he=ce.__;function _e(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 ge(e){return ae=1,ye(Ue,e)}function ye(e,t,n){var r=_e(ne++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Ue(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=_e(ne++,3);!ce.__s&&Le(n.__H,t)&&(n.__=e,n.i=t,re.__H.__h.push(n))}function we(e,t){var n=_e(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=_e(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=_e(ne++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(re)),t.props.value):e.__}function Ce(e,t){ce.useDebugValue&&ce.useDebugValue(t?t(e):e)}function Te(){var e=_e(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(Ae),e.__H.__h.forEach(Pe),e.__H.__h=[]}catch(t){e.__H.__h=[],ce.__e(t,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(Ae),t.__h.forEach(Pe),t.__h=[],ne=0)),oe=re},ce.diffed=function(e){fe&&fe(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==se.push(t)&&ie===ce.requestAnimationFrame||((ie=ce.requestAnimationFrame)||Re)(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(Ae),e.__h=e.__h.filter((function(e){return!e.__||Pe(e)}))}catch(ti){t.some((function(e){e.__h&&(e.__h=[])})),t=[],ce.__e(ti,e.__v)}})),pe&&pe(e,t)},ce.unmount=function(e){me&&me(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Ae(e)}catch(n){t=n}})),n.__H=void 0,t&&ce.__e(t,n.__v))};var Oe="function"==typeof requestAnimationFrame;function Re(e){var t,n=function(){clearTimeout(r),Oe&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Oe&&(t=requestAnimationFrame(n))}function Ae(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 Ue(e,t){return"function"==typeof t?t(e):t}var De=0;function Ie(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:--De,__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 Fe=e=>Ie("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"lg"===e.size?"h-10 w-10":"h-5 w-5",children:[Ie("path",{d:"M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM1.99743 8C1.99743 11.3151 4.68487 14.0026 8 14.0026C11.3151 14.0026 14.0026 11.3151 14.0026 8C14.0026 4.68487 11.3151 1.99743 8 1.99743C4.68487 1.99743 1.99743 4.68487 1.99743 8Z",class:"light"===e.theme?"fill-white":"fill-gray-200","fill-opacity":"light"===e.theme?"0.3":"1"}),Ie("path",{d:"M8 1C8 0.447715 8.44943 -0.00643769 8.99741 0.0624193C9.70527 0.151368 10.3996 0.334798 11.0615 0.608964C12.0321 1.011 12.914 1.60028 13.6569 2.34315C14.3997 3.08602 14.989 3.96793 15.391 4.93853C15.6652 5.60043 15.8486 6.29473 15.9376 7.0026C16.0064 7.55057 15.5523 8 15 8C14.4477 8 14.0085 7.54925 13.9169 7.00462C13.842 6.55939 13.7169 6.12298 13.5433 5.7039C13.2417 4.97595 12.7998 4.31451 12.2426 3.75736C11.6855 3.20021 11.0241 2.75825 10.2961 2.45672C9.87702 2.28313 9.44061 2.15804 8.99538 2.08314C8.45075 1.99152 8 1.55228 8 1Z",class:"light"===e.theme?"fill-white":"fill-primary-base"})]}),je={offers:[],isComplete:!1,isAppEnabled:!1,identity:{email:"",phoneNumber:"",verifiedPhoneNumber:"",registrationStatus:"Unregistered"},workplace:{employerName:"",linkingStatus:"Unlinked"},featureFlags:{unifiedCustomerRegistration:!1},updateIdentity:e=>({})},Me=G(je);var Be=(e=>(e[e.PHONE_NUMBER=0]="PHONE_NUMBER",e[e.OTP=1]="OTP",e[e.SUCCESS=2]="SUCCESS",e))(Be||{});const ze=({className:e,children:t,...n})=>Ie("label",{class:`text-base text-gray-600 ${e??""}`,...n,children:t});function He(e,t){for(var n in t)e[n]=t[n];return e}function We(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 qe(e,t){this.props=e,this.context=t}function Ve(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:We(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}(qe.prototype=new S).isPureReactComponent=!0,qe.prototype.shouldComponentUpdate=function(e,t){return We(this.props,e)||We(this.state,t)};var $e=l.__b;l.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),$e&&$e(e)};var Ge="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ye(e){function t(t){var n=He({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=Ge,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Je=function(e,t){return null==e?null:L(L(e).map(t))},Ke={map:Je,forEach:Je,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},Xe=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);Xe(e,t,n,r)};var Ze=l.unmount;function Qe(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=He({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Qe(e,t,n)}))),e}function et(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return et(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 tt(){this.__u=0,this.t=null,this.__b=null}function nt(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function rt(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 ot(){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),Ze&&Ze(e)},(tt.prototype=new S).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=nt(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]=et(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)},tt.prototype.componentWillUnmount=function(){this.t=[]},tt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Qe(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&v(E,null,e.fallback);return o&&(o.__u&=-33),[v(E,null,t.__a?null:e.children),o]};var it=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 at(e){return this.getChildContext=function(){return e.context},e.children}function st(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(at,{context:t.context},e.__v),t.l)}function lt(e,t){var n=v(st,{__v:e,i:t});return n.containerInfo=t,n}(ot.prototype=new S).__a=function(e){var t=this,n=nt(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),it(t,e,r)):o()};n?n(i):i()}},ot.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},ot.prototype.componentDidUpdate=ot.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){it(e,n,t)}))};var ct="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ut=/^(?: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]/,dt=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ft=/[A-Z0-9]/g,pt="undefined"!=typeof document,mt=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function ht(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 gt=l.event;function yt(){}function bt(){return this.cancelBubble}function wt(){return this.defaultPrevented}l.event=function(e){return gt&&(e=gt(e)),e.persist=yt,e.isPropagationStopped=bt,e.isDefaultPrevented=wt,e.nativeEvent=e};var vt,xt={enumerable:!1,configurable:!0,get:function(){return this.class}},kt=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||pt&&"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||mt(t.type)?"onfocus"===a?o="onfocusin":"onblur"===a?o="onfocusout":dt.test(o)?o=a:-1===n.indexOf("-")&&ut.test(o)?o=o.replace(ft,"-$&").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",xt)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=ct,kt&&kt(e)};var Et=l.__r;l.__r=function(e){Et&&Et(e),vt=e.__c};var St=l.diffed;l.diffed=function(e){St&&St(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),vt=null};var Ct={ReactCurrentDispatcher:{current:{readContext:function(e){return vt.__n[e.__c].props.value}}}};function Tt(e){return v.bind(null,e)}function Nt(e){return!!e&&e.$$typeof===ct}function Ot(e){return Nt(e)&&e.type===E}function Rt(e){return Nt(e)?$.apply(null,arguments):e}function At(e){return!!e.__k&&(q(null,e),!0)}function Pt(e){return e&&(e.base||1===e.nodeType&&e)||null}var Lt=function(e,t){return e(t)},Ut=function(e,t){return e(t)},Dt=E;function It(e){e()}function Ft(e){return e}function jt(){return[!1,It]}var Mt=we,Bt=Nt;function zt(e,t){var n=t(),r=ge({h:{__:n,v:t}}),o=r[0].h,i=r[1];return we((function(){o.__=n,o.v=t,Ht(o)&&i({h:o})}),[e,n,t]),be((function(){return Ht(o)&&i({h:o}),e((function(){Ht(o)&&i({h:o})}))}),[e]),n}function Ht(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 Wt={useState:ge,useId:Te,useReducer:ye,useEffect:be,useLayoutEffect:we,useInsertionEffect:Mt,useTransition:jt,useDeferredValue:Ft,useSyncExternalStore:zt,startTransition:It,useRef:ve,useImperativeHandle:xe,useMemo:ke,useCallback:Ee,useContext:Se,useDebugValue:Ce,version:"17.0.2",Children:Ke,render:ht,hydrate:_t,unmountComponentAtNode:At,createPortal:lt,createElement:v,createContext:G,createFactory:Tt,cloneElement:Rt,createRef:k,Fragment:E,isValidElement:Nt,isElement:Bt,isFragment:Ot,findDOMNode:Pt,Component:S,PureComponent:qe,memo:Ve,forwardRef:Ye,flushSync:Ut,unstable_batchedUpdates:Lt,StrictMode:Dt,Suspense:tt,SuspenseList:ot,lazy:rt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ct};const qt=Object.freeze(Object.defineProperty({__proto__:null,Children:Ke,Component:S,Fragment:E,PureComponent:qe,StrictMode:Dt,Suspense:tt,SuspenseList:ot,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ct,cloneElement:Rt,createContext:G,createElement:v,createFactory:Tt,createPortal:lt,createRef:k,default:Wt,findDOMNode:Pt,flushSync:Ut,forwardRef:Ye,hydrate:_t,isElement:Bt,isFragment:Ot,isValidElement:Nt,lazy:rt,memo:Ve,render:ht,startTransition:It,unmountComponentAtNode:At,unstable_batchedUpdates:Lt,useCallback:Ee,useContext:Se,useDebugValue:Ce,useDeferredValue:Ft,useEffect:be,useErrorBoundary:function(e){var t=_e(ne++,10),n=ge();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:Mt,useLayoutEffect:we,useMemo:ke,useReducer:ye,useRef:ve,useState:ge,useSyncExternalStore:zt,useTransition:jt,version:"17.0.2"},Symbol.toStringTag,{value:"Module"})),Vt=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"})),$t=e=>{const[t,n]=ge(!1);return Ie("button",{type:"button",class:`${e.class} inline-flex items-center justify-center px-10 py-2 border border-transparent text-base font-medium rounded-md shadow-sm text-white disabled:text-gray-300 bg-primary-base hover:bg-primary-hover disabled:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus w-full md:w-auto`,disabled:e.disabled,onClick:async()=>{if(e.onClickPromise&&!t){n(!0);try{await e.onClickPromise()}catch(r){}n(!1)}},children:[Ie("div",{class:""+(t?"invisible":""),children:e.children}),t&&Ie("div",{class:"absolute animate-spin",children:Ie(Fe,{theme:"light"})})]})},Gt=({className:e,onClick:t,...n})=>{const[r,o]=ge(!1);return Ie("button",{className:`inline-flex items-center justify-center px-2 text-primary-base rounded-md bg-transparent hover:bg-sky-50/50 focus:ring-2 focus:ring-primary-focus ${e??""}`,onClick:Ee((()=>{if(!r)return o(!0),t().finally((()=>{o(!1)}))}),[r,t]),...n,children:[Ie("div",{class:"relative "+(r?"invisible":""),children:n.children}),r&&Ie("div",{class:"absolute animate-spin",children:Ie(Fe,{theme:"primary"})})]})},Yt=({className:e,allowedKeyPattern:t,onChange:n,value:r,leadingIconElement:o,trailingIconElement:i,...a})=>Ie(E,{children:Ie("div",{class:"relative",children:[o,Ie("input",{type:"text",className:`border-0 ring-2 ring-gray-200 focus:outline-none text-base font-medium rounded-md shadow-sm ${e}`,value:r,onKeyPress:Ee((e=>{t.test(e.key)||e.preventDefault()}),[t]),onChange:e=>n(e.currentTarget.value),...a}),i]})}),Jt=({className:e,children:t})=>Ie("h1",{className:`text-2xl md:text-3xl font-bold ${e??""}`,children:t}),Kt=({className:e,children:t})=>Ie("h3",{class:`text-base md:text-lg text-gray-600 ${e??""}`,children:t});class Xt extends Error{}function Zt(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)}}Xt.prototype.name="InvalidTokenError";const Qt=crypto.randomUUID?crypto.randomUUID():crypto.getRandomValues(new Uint32Array(5)).join("-"),en=e=>(window.addEventListener(Qt,e),()=>window.removeEventListener(Qt,e)),tn=()=>{window.dispatchEvent(new Event(Qt))};function nn(e,t){return function(){return e.apply(t,arguments)}}const{toString:rn}=Object.prototype,{getPrototypeOf:on}=Object,an=(e=>t=>{const n=rn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),sn=e=>(e=e.toLowerCase(),t=>an(t)===e),ln=e=>t=>typeof t===e,{isArray:cn}=Array,un=ln("undefined");const dn=sn("ArrayBuffer");const fn=ln("string"),pn=ln("function"),mn=ln("number"),hn=e=>null!==e&&"object"==typeof e,_n=e=>{if("object"!==an(e))return!1;const t=on(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},gn=sn("Date"),yn=sn("File"),bn=sn("Blob"),wn=sn("FileList"),vn=sn("URLSearchParams"),[xn,kn,En,Sn]=["ReadableStream","Request","Response","Headers"].map(sn);function Cn(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),cn(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 Tn(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 Nn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,On=e=>!un(e)&&e!==Nn;const Rn=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&on(Uint8Array)),An=sn("HTMLFormElement"),Pn=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ln=sn("RegExp"),Un=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Cn(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},Dn="abcdefghijklmnopqrstuvwxyz",In="0123456789",Fn={DIGIT:In,ALPHA:Dn,ALPHA_DIGIT:Dn+Dn.toUpperCase()+In};const jn=sn("AsyncFunction"),Mn=(Bn="function"==typeof setImmediate,zn=pn(Nn.postMessage),Bn?setImmediate:zn?(Hn=`axios@${Math.random()}`,Wn=[],Nn.addEventListener("message",(({source:e,data:t})=>{e===Nn&&t===Hn&&Wn.length&&Wn.shift()()}),!1),e=>{Wn.push(e),Nn.postMessage(Hn,"*")}):e=>setTimeout(e));var Bn,zn,Hn,Wn;const qn="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Nn):"undefined"!=typeof process&&process.nextTick||Mn,Vn={isArray:cn,isArrayBuffer:dn,isBuffer:function(e){return null!==e&&!un(e)&&null!==e.constructor&&!un(e.constructor)&&pn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||pn(e.append)&&("formdata"===(t=an(e))||"object"===t&&pn(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&dn(e.buffer),t},isString:fn,isNumber:mn,isBoolean:e=>!0===e||!1===e,isObject:hn,isPlainObject:_n,isReadableStream:xn,isRequest:kn,isResponse:En,isHeaders:Sn,isUndefined:un,isDate:gn,isFile:yn,isBlob:bn,isRegExp:Ln,isFunction:pn,isStream:e=>hn(e)&&pn(e.pipe),isURLSearchParams:vn,isTypedArray:Rn,isFileList:wn,forEach:Cn,merge:function e(){const{caseless:t}=On(this)&&this||{},n={},r=(r,o)=>{const i=t&&Tn(n,o)||o;_n(n[i])&&_n(r)?n[i]=e(n[i],r):_n(r)?n[i]=e({},r):cn(r)?n[i]=r.slice():n[i]=r};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&Cn(arguments[o],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(Cn(t,((t,r)=>{n&&pn(t)?e[r]=nn(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&&on(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:an,kindOfTest:sn,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(cn(e))return e;let t=e.length;if(!mn(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:An,hasOwnProperty:Pn,hasOwnProp:Pn,reduceDescriptors:Un,freezeMethods:e=>{Un(e,((t,n)=>{if(pn(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];pn(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 cn(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:Tn,global:Nn,isContextDefined:On,ALPHABET:Fn,generateString:(e=16,t=Fn.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&pn(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(hn(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=cn(e)?[]:{};return Cn(e,((e,t)=>{const i=n(e,r+1);!un(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:jn,isThenable:e=>e&&(hn(e)||pn(e))&&pn(e.then)&&pn(e.catch),setImmediate:Mn,asap:qn};function $n(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)}Vn.inherits($n,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:Vn.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Gn=$n.prototype,Yn={};["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=>{Yn[e]={value:e}})),Object.defineProperties($n,Yn),Object.defineProperty(Gn,"isAxiosError",{value:!0}),$n.from=(e,t,n,r,o,i)=>{const a=Object.create(Gn);return Vn.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),$n.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function Jn(e){return Vn.isPlainObject(e)||Vn.isArray(e)}function Kn(e){return Vn.endsWith(e,"[]")?e.slice(0,-2):e}function Xn(e,t,n){return e?e.concat(t).map((function(e,t){return e=Kn(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Zn=Vn.toFlatObject(Vn,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Qn(e,t,n){if(!Vn.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Vn.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Vn.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Vn.isSpecCompliantForm(t);if(!Vn.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Vn.isDate(e))return e.toISOString();if(!s&&Vn.isBlob(e))throw new $n("Blob is not supported. Use a Buffer instead.");return Vn.isArrayBuffer(e)||Vn.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(Vn.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Vn.isArray(e)&&function(e){return Vn.isArray(e)&&!e.some(Jn)}(e)||(Vn.isFileList(e)||Vn.endsWith(n,"[]"))&&(s=Vn.toArray(e)))return n=Kn(n),s.forEach((function(e,r){!Vn.isUndefined(e)&&null!==e&&t.append(!0===a?Xn([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!Jn(e)||(t.append(Xn(o,n,i),l(e)),!1)}const u=[],d=Object.assign(Zn,{defaultVisitor:c,convertValue:l,isVisitable:Jn});if(!Vn.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Vn.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),Vn.forEach(n,(function(n,i){!0===(!(Vn.isUndefined(n)||null===n)&&o.call(t,n,Vn.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t}function er(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function tr(e,t){this._pairs=[],e&&Qn(e,this,t)}const nr=tr.prototype;function rr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function or(e,t,n){if(!t)return e;const r=n&&n.encode||rr,o=n&&n.serialize;let i;if(i=o?o(t,n):Vn.isURLSearchParams(t)?t.toString():new tr(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}nr.append=function(e,t){this._pairs.push([e,t])},nr.toString=function(e){const t=e?function(t){return e.call(this,t,er)}:er;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class ir{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){Vn.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const ar={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},sr={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:tr,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},lr="undefined"!=typeof window&&"undefined"!=typeof document,cr=(ur="undefined"!=typeof navigator&&navigator.product,lr&&["ReactNative","NativeScript","NS"].indexOf(ur)<0);var ur;const dr="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,fr=lr&&window.location.href||"http://localhost",pr={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:lr,hasStandardBrowserEnv:cr,hasStandardBrowserWebWorkerEnv:dr,origin:fr},Symbol.toStringTag,{value:"Module"})),...sr};function mr(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&&Vn.isArray(r)?r.length:i,s)return Vn.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&Vn.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&Vn.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(Vn.isFormData(e)&&Vn.isFunction(e.entries)){const n={};return Vn.forEachEntry(e,((e,r)=>{t(function(e){return Vn.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const hr={transitional:ar,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Vn.isObject(e);o&&Vn.isHTMLForm(e)&&(e=new FormData(e));if(Vn.isFormData(e))return r?JSON.stringify(mr(e)):e;if(Vn.isArrayBuffer(e)||Vn.isBuffer(e)||Vn.isStream(e)||Vn.isFile(e)||Vn.isBlob(e)||Vn.isReadableStream(e))return e;if(Vn.isArrayBufferView(e))return e.buffer;if(Vn.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 Qn(e,new pr.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return pr.isNode&&Vn.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=Vn.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Qn(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Vn.isString(e))try{return(t||JSON.parse)(e),Vn.trim(e)}catch(Uo){if("SyntaxError"!==Uo.name)throw Uo}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||hr.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Vn.isResponse(e)||Vn.isReadableStream(e))return e;if(e&&Vn.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(Uo){if(n){if("SyntaxError"===Uo.name)throw $n.from(Uo,$n.ERR_BAD_RESPONSE,this,null,this.response);throw Uo}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pr.classes.FormData,Blob:pr.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Vn.forEach(["delete","get","head","post","put","patch"],(e=>{hr.headers[e]={}}));const _r=Vn.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"]),gr=Symbol("internals");function yr(e){return e&&String(e).trim().toLowerCase()}function br(e){return!1===e||null==e?e:Vn.isArray(e)?e.map(br):String(e)}function wr(e,t,n,r,o){return Vn.isFunction(r)?r.call(this,t,n):(o&&(t=n),Vn.isString(t)?Vn.isString(r)?-1!==t.indexOf(r):Vn.isRegExp(r)?r.test(t):void 0:void 0)}class vr{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=yr(t);if(!o)throw new Error("header name must be a non-empty string");const i=Vn.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=br(e))}const i=(e,t)=>Vn.forEach(e,((e,n)=>o(e,n,t)));if(Vn.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Vn.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]&&_r[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(Vn.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=yr(e)){const n=Vn.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(Vn.isFunction(t))return t.call(this,e,n);if(Vn.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=yr(e)){const n=Vn.findKey(this,e);return!(!n||void 0===this[n]||t&&!wr(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=yr(e)){const o=Vn.findKey(n,e);!o||t&&!wr(0,n[o],o,t)||(delete n[o],r=!0)}}return Vn.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&&!wr(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Vn.forEach(this,((r,o)=>{const i=Vn.findKey(n,o);if(i)return t[i]=br(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]=br(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Vn.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Vn.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[gr]=this[gr]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=yr(e);t[r]||(!function(e,t){const n=Vn.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 Vn.isArray(e)?e.forEach(r):r(e),this}}function xr(e,t){const n=this||hr,r=t||n,o=vr.from(r.headers);let i=r.data;return Vn.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function kr(e){return!(!e||!e.__CANCEL__)}function Er(e,t,n){$n.call(this,null==e?"canceled":e,$n.ERR_CANCELED,t,n),this.name="CanceledError"}function Sr(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new $n("Request failed with status code "+n.status,[$n.ERR_BAD_REQUEST,$n.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}vr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Vn.reduceDescriptors(vr.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Vn.freezeMethods(vr),Vn.inherits(Er,$n,{__CANCEL__:!0});const Cr=(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 f=c&&l-c;return f?Math.round(1e3*d/f):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)},Tr=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Nr=e=>(...t)=>Vn.asap((()=>e(...t))),Or=pr.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=Vn.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return function(){return!0}}(),Rr=pr.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Vn.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Vn.isString(r)&&a.push("path="+r),Vn.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 Ar(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 Pr=e=>e instanceof vr?{...e}:e;function Lr(e,t){t=t||{};const n={};function r(e,t,n){return Vn.isPlainObject(e)&&Vn.isPlainObject(t)?Vn.merge.call({caseless:n},e,t):Vn.isPlainObject(t)?Vn.merge({},t):Vn.isArray(t)?t.slice():t}function o(e,t,n){return Vn.isUndefined(t)?Vn.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!Vn.isUndefined(t))return r(void 0,t)}function a(e,t){return Vn.isUndefined(t)?Vn.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(Pr(e),Pr(t),!0)};return Vn.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);Vn.isUndefined(a)&&i!==s||(n[r]=a)})),n}const Ur=e=>{const t=Lr({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=vr.from(s),t.url=or(Ar(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Vn.isFormData(r))if(pr.hasStandardBrowserEnv||pr.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(pr.hasStandardBrowserEnv&&(o&&Vn.isFunction(o)&&(o=o(t)),o||!1!==o&&Or(t.url))){const e=i&&a&&Rr.read(a);e&&s.set(i,e)}return t},Dr="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Ur(e);let o=r.data;const i=vr.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=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 _(){if(!h)return;const r=vr.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());Sr((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=_:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(_)},h.onabort=function(){h&&(n(new $n("Request aborted",$n.ECONNABORTED,e,h)),h=null)},h.onerror=function(){n(new $n("Network Error",$n.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||ar;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new $n(t,o.clarifyTimeoutError?$n.ETIMEDOUT:$n.ECONNABORTED,e,h)),h=null},void 0===o&&i.setContentType(null),"setRequestHeader"in h&&Vn.forEach(i.toJSON(),(function(e,t){h.setRequestHeader(t,e)})),Vn.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),d&&"json"!==d&&(h.responseType=r.responseType),p&&([l,u]=Cr(p,!0),h.addEventListener("progress",l)),f&&h.upload&&([s,c]=Cr(f),h.upload.addEventListener("progress",s),h.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{h&&(n(!t||t.type?new Er(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 g=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);g&&-1===pr.protocols.indexOf(g)?n(new $n("Unsupported protocol "+g+":",$n.ERR_BAD_REQUEST,e)):h.send(o||null)}))},Ir=(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 $n?t:new Er(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{o(new $n(`timeout ${t} of ms exceeded`,$n.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}]},Fr=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},jr=(e,t,n,r,o)=>{const i=async function*(e,t,n){for await(const r of e)yield*Fr(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})},Mr="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Br=Mr&&"function"==typeof ReadableStream,zr=Mr&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Hr=(e,...t)=>{try{return!!e(...t)}catch(Uo){return!1}},Wr=Br&&Hr((()=>{let e=!1;const t=new Request(pr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),qr=Br&&Hr((()=>Vn.isReadableStream(new Response("").body))),Vr={stream:qr&&(e=>e.body)};var $r;Mr&&($r=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Vr[e]&&(Vr[e]=Vn.isFunction($r[e])?t=>t[e]():(t,n)=>{throw new $n(`Response type '${e}' is not supported`,$n.ERR_NOT_SUPPORT,n)})})));const Gr=async(e,t)=>{const n=Vn.toFiniteNumber(e.getContentLength());return null==n?(async e=>null==e?0:Vn.isBlob(e)?e.size:Vn.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:Vn.isArrayBufferView(e)||Vn.isArrayBuffer(e)?e.byteLength:(Vn.isURLSearchParams(e)&&(e+=""),Vn.isString(e)?(await zr(e)).byteLength:void 0))(t):n},Yr={http:null,xhr:Dr,fetch:Mr&&(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:f}=Ur(e);c=c?(c+"").toLowerCase():"text";let p,m,[h,_]=o||i||a?Ir([o,i],a):[];const g=()=>{!p&&setTimeout((()=>{h&&h.unsubscribe()})),p=!0};let y;try{if(l&&Wr&&"get"!==n&&"head"!==n&&0!==(y=await Gr(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(Vn.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=Tr(y,Cr(Nr(l)));r=jr(n.body,65536,e,t,zr)}}Vn.isString(d)||(d=d?"include":"omit"),m=new Request(t,{...f,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:d});let o=await fetch(m);const i=qr&&("stream"===c||"response"===c);if(qr&&(s||i)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=Vn.toFiniteNumber(o.headers.get("content-length")),[n,r]=s&&Tr(t,Cr(Nr(s),!0))||[];o=new Response(jr(o.body,65536,n,(()=>{r&&r(),i&&g()}),zr),e)}c=c||"text";let a=await Vr[Vn.findKey(Vr,c)||"text"](o,e);return!i&&g(),_&&_(),await new Promise(((t,n)=>{Sr(t,n,{data:a,headers:vr.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:m})}))}catch(b){if(g(),b&&"TypeError"===b.name&&/fetch/i.test(b.message))throw Object.assign(new $n("Network Error",$n.ERR_NETWORK,e,m),{cause:b.cause||b});throw $n.from(b,b&&b.code,e,m)}})};Vn.forEach(Yr,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(Uo){}Object.defineProperty(e,"adapterName",{value:t})}}));const Jr=e=>`- ${e}`,Kr=e=>Vn.isFunction(e)||null===e||!1===e,Xr=e=>{e=Vn.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,!Kr(n)&&(r=Yr[(t=String(n)).toLowerCase()],void 0===r))throw new $n(`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 $n("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Jr).join("\n"):" "+Jr(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function Zr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Er(null,e)}function Qr(e){Zr(e),e.headers=vr.from(e.headers),e.data=xr.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Xr(e.adapter||hr.adapter)(e).then((function(t){return Zr(e),t.data=xr.call(e,e.transformResponse,t),t.headers=vr.from(t.headers),t}),(function(t){return kr(t)||(Zr(e),t&&t.response&&(t.response.data=xr.call(e,e.transformResponse,t.response),t.response.headers=vr.from(t.response.headers))),Promise.reject(t)}))}const eo="1.7.4",to={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{to[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const no={};to.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 $n(r(o," has been removed"+(t?" in "+t:"")),$n.ERR_DEPRECATED);return t&&!no[o]&&(no[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 ro={assertOptions:function(e,t,n){if("object"!=typeof e)throw new $n("options must be an object",$n.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 $n("option "+i+" must be "+n,$n.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new $n("Unknown option "+i,$n.ERR_BAD_OPTION)}},validators:to},oo=ro.validators;class io{constructor(e){this.defaults=e,this.interceptors={request:new ir,response:new ir}}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(Uo){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Lr(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&ro.assertOptions(n,{silentJSONParsing:oo.transitional(oo.boolean),forcedJSONParsing:oo.transitional(oo.boolean),clarifyTimeoutError:oo.transitional(oo.boolean)},!1),null!=r&&(Vn.isFunction(r)?t.paramsSerializer={serialize:r}:ro.assertOptions(r,{encode:oo.function,serialize:oo.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Vn.merge(o.common,o[t.method]);o&&Vn.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=vr.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=[Qr.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let f=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{f=e(f)}catch(p){t.call(this,p);break}}try{c=Qr.call(this,f)}catch(p){return Promise.reject(p)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return or(Ar((e=Lr(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}Vn.forEach(["delete","get","head","options"],(function(e){io.prototype[e]=function(t,n){return this.request(Lr(n||{},{method:e,url:t,data:(n||{}).data}))}})),Vn.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Lr(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}io.prototype[e]=t(),io.prototype[e+"Form"]=t(!0)}));class ao{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 Er(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 ao((function(t){e=t})),cancel:e}}}const so={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(so).forEach((([e,t])=>{so[t]=e}));const lo=function e(t){const n=new io(t),r=nn(io.prototype.request,n);return Vn.extend(r,io.prototype,n,{allOwnKeys:!0}),Vn.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Lr(t,n))},r}(hr);lo.Axios=io,lo.CanceledError=Er,lo.CancelToken=ao,lo.isCancel=kr,lo.VERSION=eo,lo.toFormData=Qn,lo.AxiosError=$n,lo.Cancel=lo.CanceledError,lo.all=function(e){return Promise.all(e)},lo.spread=function(e){return function(t){return e.apply(null,t)}},lo.isAxiosError=function(e){return Vn.isObject(e)&&!0===e.isAxiosError},lo.mergeConfig=Lr,lo.AxiosHeaders=vr,lo.formToJSON=e=>mr(Vn.isHTMLForm(e)?new FormData(e):e),lo.getAdapter=Xr,lo.HttpStatusCode=so,lo.default=lo;class co{constructor(){__privateAdd(this,e)}initClient(t,n){__privateSet(this,e,lo.create({baseURL:`${this.url(t)}/backend`,headers:n}))}getClient(){return __privateGet(this,e)}}e=new WeakMap;const uo={backend:new class extends co{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 fo;class po{constructor(){__privateAdd(this,t),__privateAdd(this,n),__privateAdd(this,r),__privateAdd(this,o,(async e=>(fo||(fo=await uo.backend.getIdToken()),e.headers.Authorization=`Bearer ${fo}`,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,lo.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 fo||(fo=await uo.backend.getIdToken()),fo}getBaseUrl(){return __privateGet(this,n)}getProfileId(){return __privateGet(this,r)}}t=new WeakMap,n=new WeakMap,r=new WeakMap,o=new WeakMap;const mo=e=>{var t,n;throw"Auth_SessionExpired"===(null==(n=null==(t=e.response)?void 0:t.data)?void 0:n.code)&&tn(),e};let ho=(a=class extends po{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 _o={backend:new class extends co{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),mo),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 ho};const go={workplaceBackend:new class extends po{url(e){return`${e}/benefits-plan`}}},yo=(e,t,n)=>{const r=function(e,t){if("string"!=typeof e)throw new Xt("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 Xt(`Invalid token specified: missing part #${n+1}`);let o;try{o=Zt(r)}catch(Uo){throw new Xt(`Invalid token specified: invalid base64 for part #${n+1} (${Uo.message})`)}try{return JSON.parse(o)}catch(Uo){throw new Xt(`Invalid token specified: invalid json for part #${n+1} (${Uo.message})`)}}(t).sub,o={backend:{Authorization:`Bearer ${t}`},workplaceBackend:{}};_o.backend.initClient(e,o.backend,n),_o.workplaceBackend.initClient(e,r,o.workplaceBackend),uo.backend.initClient(e,o.backend),go.workplaceBackend.initClient(e,r,o.workplaceBackend)},bo=e=>{switch(!0){case"started"===e:return _o.backend.command({eventType:"Started"});case"membership-accepted"===e:return _o.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!0,featureName:"",treatmentName:"",template:"Eoi"}});case"membership-declined"===e:return _o.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!1,featureName:"",treatmentName:"",template:"Eoi"}});case"sign-up-viewed"===e:return _o.backend.command({eventType:"OfferViewed",offerName:"Membership",data:{featureName:"",treatmentName:""}});case"sign-up-completed"===e:return(async()=>{await _o.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!0,featureName:"",treatmentName:"",template:"Eoi"}}),await _o.backend.command({eventType:"CustomerRegistrationCompleted",isRegistered:!0})})();case"sign-up-declined"===e:return(async()=>{await _o.backend.command({eventType:"CustomerRegistrationCompleted",isRegistered:!1}),await _o.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!1,featureName:"",treatmentName:"",template:"Eoi"}})})();case"object"==typeof e&&"offer-viewed"===e.type:return _o.backend.command({...e,eventType:"OfferViewed"});case"object"==typeof e&&"offer-accepted"===e.type:return _o.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:{...e.data,accepted:!0}});case"object"==typeof e&&"offer-declined"===e.type:return _o.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:{...e.data,accepted:!1}});case"object"==typeof e&&"offer-progressed"===e.type:return _o.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:e.data});case"object"==typeof e&&"summary-viewed"===e.type:return _o.backend.command({eventType:"SummaryViewed",summaryVariant:e.data.summaryVariant});case"completed"===e:return _o.backend.command({eventType:"Completed"})}return Promise.resolve()},wo=()=>({trace:bo});var vo=Object.defineProperty,xo=(e,t,n)=>(((e,t,n)=>{t in e?vo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let ko=new class{constructor(){xo(this,"current",this.detect()),xo(this,"handoffState","pending"),xo(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}},Eo=(e,t)=>{ko.isServer?be(e,t):we(e,t)};function So(e){let t=ve(e);return Eo((()=>{t.current=e}),[e]),t}let Co=function(e){let t=So(e);return Wt.useCallback(((...e)=>t.current(...e)),[t])};function To(){let e=[],t={addEventListener:(e,n,r,o)=>(e.addEventListener(n,r,o),t.add((()=>e.removeEventListener(n,r,o)))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add((()=>cancelAnimationFrame(n)))},nextFrame:(...e)=>t.requestAnimationFrame((()=>t.requestAnimationFrame(...e))),setTimeout(...e){let n=setTimeout(...e);return t.add((()=>clearTimeout(n)))},microTask(...e){let n={current:!0};return function(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}((()=>{n.current&&e[0]()})),t.add((()=>{n.current=!1}))},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add((()=>{Object.assign(e.style,{[t]:r})}))},group(e){let t=To();return e(t),this.add((()=>t.dispose()))},add:t=>(e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function No(){let[e]=ge(To);return be((()=>()=>e.dispose()),[e]),e}function Oo(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in qt&&qt.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=ge(ko.isHandoffComplete);return t&&!1===ko.isHandoffComplete&&n(!1),be((()=>{!0!==t&&n(!0)}),[t]),be((()=>ko.handoff()),[]),!e&&t}function Ro(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,Ro),r}let Ao=Symbol();function Po(...e){let t=ve(e);be((()=>{t.current=e}),[e]);let n=Co((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[Ao])))?void 0:n}function Lo(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}var Uo,Do,Io=((Do=Io||{})[Do.None=0]="None",Do[Do.RenderStrategy=1]="RenderStrategy",Do[Do.Static=2]="Static",Do),Fo=((Uo=Fo||{})[Uo.Unmount=0]="Unmount",Uo[Uo.Hidden=1]="Hidden",Uo);function jo({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a,mergeRefs:s}){s=null!=s?s:Bo;let l=zo(t,e);if(i)return Mo(l,n,r,a,s);let c=null!=o?o:0;if(2&c){let{static:e=!1,...t}=l;if(e)return Mo(t,n,r,a,s)}if(1&c){let{unmount:e=!0,...t}=l;return Ro(e?0:1,{0:()=>null,1:()=>Mo({...t,hidden:!0,style:{display:"none"}},n,r,a,s)})}return Mo(l,n,r,a,s)}function Mo(e,t={},n,r,o){let{as:i=n,children:a,refName:s="ref",...l}=qo(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(Wo(l)).length>0){if(!Nt(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));let e=u.props,t="function"==typeof(null==e?void 0:e.className)?(...t)=>Lo(null==e?void 0:e.className(...t),l.className):Lo(null==e?void 0:e.className,l.className),n=t?{className:t}:{};return Rt(u,Object.assign({},zo(u.props,Wo(qo(l,["ref"]))),d,c,{ref:o(u.ref,c.ref)},n))}return v(i,Object.assign({},qo(l,["ref"]),i!==E&&c,i!==E&&d),u)}function Bo(...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 zo(...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 Ho(e){var t;return Object.assign(Ye(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Wo(e){let t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}function qo(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}let Vo=G(null);Vo.displayName="OpenClosedContext";var $o=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))($o||{});function Go(){return Se(Vo)}function Yo({value:e,children:t}){return Wt.createElement(Vo.Provider,{value:e},t)}function Jo(){let e=ve(!1);return Eo((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function Ko(e,...t){e&&t.length>0&&e.classList.add(...t)}function Xo(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Zo(e,t,n,r){let o=n?"enter":"leave",i=To(),a=void 0!==r?function(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}(r):()=>{};"enter"===o&&(e.removeAttribute("hidden"),e.style.display="");let s=Ro(o,{enter:()=>t.enter,leave:()=>t.leave}),l=Ro(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=Ro(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Xo(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Ko(e,...t.base,...s,...c),i.nextFrame((()=>{Xo(e,...t.base,...s,...c),Ko(e,...t.base,...s,...l),function(e,t){let n=To();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,a]=[r,o].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t})),s=i+a;if(0!==s){n.group((n=>{n.setTimeout((()=>{t(),n.dispose()}),s),n.addEventListener(e,"transitionrun",(e=>{e.target===e.currentTarget&&n.dispose()}))}));let r=n.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(t(),r())}))}else t();n.add((()=>t())),n.dispose}(e,(()=>(Xo(e,...t.base,...s),Ko(e,...t.base,...t.entered),a())))})),i.dispose}function Qo(e=""){return e.split(/\s+/).filter((e=>e.length>1))}let ei=G(null);ei.displayName="TransitionContext";var ti,ni=((ti=ni||{}).Visible="visible",ti.Hidden="hidden",ti);let ri=G(null);function oi(e){return"children"in e?oi(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function ii(e,t){let n=So(e),r=ve([]),o=Jo(),i=No(),a=Co(((e,t=Fo.Hidden)=>{let a=r.current.findIndex((({el:t})=>t===e));-1!==a&&(Ro(t,{[Fo.Unmount](){r.current.splice(a,1)},[Fo.Hidden](){r.current[a].state="hidden"}}),i.microTask((()=>{var e;!oi(r)&&o.current&&(null==(e=n.current)||e.call(n))})))})),s=Co((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,Fo.Unmount)})),l=ve([]),c=ve(Promise.resolve()),u=ve({enter:[],leave:[],idle:[]}),d=Co(((e,n,r)=>{l.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter((([t])=>t!==e))),null==t||t.chains.current[n].push([e,new Promise((e=>{l.current.push(e)}))]),null==t||t.chains.current[n].push([e,new Promise((e=>{Promise.all(u.current[n].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===n?c.current=c.current.then((()=>null==t?void 0:t.wait.current)).then((()=>r(n))):r(n)})),f=Co(((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:f,wait:c,chains:u})),[s,a,r,d,f,u,c])}function ai(){}ri.displayName="NestingContext";let si=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function li(e){var t;let n={};for(let r of si)n[r]=null!=(t=e[r])?t:ai;return n}let ci=Io.RenderStrategy;let ui=Ho((function(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,a=ve(null),s=Po(a,t);Oo();let l=Go();if(void 0===n&&null!==l&&(n=(l&$o.Open)===$o.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,u]=ge(n?"visible":"hidden"),d=ii((()=>{u("hidden")})),[f,p]=ge(!0),m=ve([n]);Eo((()=>{!1!==f&&m.current[m.current.length-1]!==n&&(m.current.push(n),p(!1))}),[m,n]);let h=ke((()=>({show:n,appear:r,initial:f})),[n,r,f]);be((()=>{if(n)u("visible");else if(oi(d)){let e=a.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&u("hidden")}else u("hidden")}),[n,d]);let _={unmount:o},g=Co((()=>{var t;f&&p(!1),null==(t=e.beforeEnter)||t.call(e)})),y=Co((()=>{var t;f&&p(!1),null==(t=e.beforeLeave)||t.call(e)}));return Wt.createElement(ri.Provider,{value:d},Wt.createElement(ei.Provider,{value:h},jo({ourProps:{..._,as:E,children:Wt.createElement(di,{ref:s,..._,...i,beforeEnter:g,beforeLeave:y})},theirProps:{},defaultTag:E,features:ci,visible:"visible"===c,name:"Transition"})))})),di=Ho((function(e,t){var n,r;let{beforeEnter:o,afterEnter:i,beforeLeave:a,afterLeave:s,enter:l,enterFrom:c,enterTo:u,entered:d,leave:f,leaveFrom:p,leaveTo:m,...h}=e,_=ve(null),g=Po(_,t),y=null==(n=h.unmount)||n?Fo.Unmount:Fo.Hidden,{show:b,appear:w,initial:v}=function(){let e=Se(ei);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]=ge(b?"visible":"hidden"),E=function(){let e=Se(ri);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:S,unregister:C}=E;be((()=>S(_)),[S,_]),be((()=>{if(y===Fo.Hidden&&_.current)return b&&"visible"!==x?void k("visible"):Ro(x,{hidden:()=>C(_),visible:()=>S(_)})}),[x,_,S,C,b,y]);let T=So({base:Qo(h.className),enter:Qo(l),enterFrom:Qo(c),enterTo:Qo(u),entered:Qo(d),leave:Qo(f),leaveFrom:Qo(p),leaveTo:Qo(m)}),N=function(e){let t=ve(li(e));return be((()=>{t.current=li(e)}),[e]),t}({beforeEnter:o,afterEnter:i,beforeLeave:a,afterLeave:s}),O=Oo();be((()=>{if(O&&"visible"===x&&null===_.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[_,x,O]);let R=v&&!w,A=w&&b&&v,P=(()=>!O||R?"idle":b?"enter":"leave")(),L=function(e=0){let[t,n]=ge(e),r=Jo(),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),U=Co((e=>Ro(e,{enter:()=>{L.addFlag($o.Opening),N.current.beforeEnter()},leave:()=>{L.addFlag($o.Closing),N.current.beforeLeave()},idle:()=>{}}))),D=Co((e=>Ro(e,{enter:()=>{L.removeFlag($o.Opening),N.current.afterEnter()},leave:()=>{L.removeFlag($o.Closing),N.current.afterLeave()},idle:()=>{}}))),I=ii((()=>{k("hidden"),C(_)}),E),F=ve(!1);!function({immediate:e,container:t,direction:n,classes:r,onStart:o,onStop:i}){let a=Jo(),s=No(),l=So(n);Eo((()=>{e&&(l.current="enter")}),[e]),Eo((()=>{let e=To();s.add(e.dispose);let n=t.current;if(n&&"idle"!==l.current&&a.current)return e.dispose(),o.current(l.current),e.add(Zo(n,r.current,"enter"===l.current,(()=>{e.dispose(),i.current(l.current)}))),e.dispose}),[n])}({immediate:A,container:_,classes:T,direction:P,onStart:So((e=>{F.current=!0,I.onStart(_,e,U)})),onStop:So((e=>{F.current=!1,I.onStop(_,e,D),"leave"===e&&!oi(I)&&(k("hidden"),C(_))}))});let j=h,M={ref:g};return A?j={...j,className:Lo(h.className,...T.current.enter,...T.current.enterFrom)}:F.current&&(j.className=Lo(h.className,null==(r=_.current)?void 0:r.className),""===j.className&&delete j.className),Wt.createElement(ri.Provider,{value:I},Wt.createElement(Yo,{value:Ro(x,{visible:$o.Open,hidden:$o.Closed})|L.flags},jo({ourProps:M,theirProps:j,defaultTag:"div",features:ci,visible:"visible"===x,name:"Transition.Child"})))})),fi=Ho((function(e,t){let n=null!==Se(ei),r=null!==Go();return Wt.createElement(Wt.Fragment,null,!n&&r?Wt.createElement(ui,{ref:t,...e}):Wt.createElement(di,{ref:t,...e}))})),pi=Object.assign(ui,{Child:fi,Root:ui});const mi=({children:e})=>{const t=Wt.Children.toArray(e),n=t.find((e=>e.type===hi)),r=t.find((e=>e.type===_i));return Ie(pi,{appear:!0,show:!0,enter:"transition duration-700 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:Ie("div",{class:"mt-20 md:mt-0 flex flex-col text-center items-center max-w-[40rem] mx-auto",children:[Ie(pi,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:n&&Ie("div",{class:"flex items-center h-full",children:n})}),Ie(pi,{appear:!0,show:!0,enter:"transition delay-300 duration-[600ms] ease-out",enterFrom:"opacity-0 -translate-y-6",enterTo:"opacity-100 translate-y-0",children:r&&Ie("div",{class:"flex items-center h-full",children:r})})]})})},hi=({children:e})=>Ie(E,{children:e}),_i=({children:e})=>Ie(E,{children:e});mi.Top=hi,mi.Bottom=_i;const gi=e=>e.replace(/ /g,""),yi=e=>{const t=gi(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)},bi=({phoneNumber:e,onSubmit:t,onDecline:n})=>{const{trace:r}=wo(),[o,i]=ge(""),{setPhoneNumber:a,phoneNumber:s}=(e=>{const{identity:t}=Se(Me),[n,r]=ge((()=>e&&yi(e)?e:"")),o=ke((()=>yi(n)),[n]),i=ke((()=>gi(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((()=>yi(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]=ge(s.isVerified);be((()=>{(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]),f=Ee((async()=>{s.valid&&await t(s).then((async()=>await r("sign-up-completed"))).catch(i)}),[s,t,r]),p=Ee((()=>r("sign-up-declined").then(n)),[n,r]),m=Ee((async()=>{c(!1)}),[]),h=Ie("div",{class:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3 text-xs text-green-700 font-bold",children:["Verified ",Ie(Vt,{})]});return Ie(mi,{children:[Ie(mi.Top,{children:Ie("div",{className:"flex flex-col gap-5",children:[Ie(Jt,{children:"Join your workplace benefits program"}),Ie(Kt,{children:[s.isVerified?"Confirm ":"Enter "," your ",Ie("b",{children:"personal"})," mobile number to finish setting up your Flare Benefits account linked to your workplace"]})]})}),Ie(mi.Bottom,{children:Ie("div",{className:"mt-5 md:w-[300px] text-left",children:[Ie(ze,{className:"font-medium text-sm text-gray-900 text-left",children:"Australian Mobile Number"}),Ie(Yt,{allowedKeyPattern:/[+0-9]/,inputMode:"numeric",className:"mt-1 mb-1 w-full p-2 focus-visible:ring-gray-500",value:s.original,onChange:a,onfocusin:u,onfocusout:d,trailingIconElement:l&&h,disabled:l}),0!==o.length&&Ie("div",{className:"h-8 leading-none",children:Ie("span",{className:"text-xs text-rose-500",children:o})}),l&&Ie("div",{className:"mt-2 ml-2 mb-2 leading-none",children:Ie("span",{className:"text-xs",children:["Not your personal number?",Ie(Gt,{class:"text-blue-500",onClick:m,children:"Change number"})]})}),Ie("div",{children:Ie("span",{className:"font-medium text-sm text-gray-900 text-center",children:["By creating your account you confirm you have read and agree to Flare Benefits"," ",Ie("a",{href:"https://www.flarehr.com/flare-app-terms-and-conditions/",target:"_blank",rel:"noreferrer",children:" Terms of Use "}),"and",Ie("a",{href:"https://www.flarehr.com/privacy-policy/",target:"_blank",rel:"noreferrer",children:" Privacy Policy"}),"."," "]})}),Ie($t,{class:"mt-5 md:w-full",onClickPromise:f,children:"Join your workplace"}),Ie($t,{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:p,children:"Not now"})]})})]})},wi=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"})),vi=({onContinue:e})=>Ie(mi,{children:[Ie(mi.Top,{children:Ie("div",{className:"h-16 w-16 flex items-center justify-center rounded-full bg-blue-50 text-primary-base",children:Ie(wi,{className:"h-7 w-7"})})}),Ie(mi.Bottom,{children:Ie("div",{className:"mt-5 flex flex-col items-center gap-5 text-center",children:[Ie(Jt,{children:"You’ve joined your workplace benefits program"}),Ie(Kt,{children:"With your new Flare Benefits account, you now have access to a range of exclusive benefits available through your workplace."}),Ie($t,{class:"mt-5 w-full md:w-[240px]",onClickPromise:async()=>{e()},children:"Set up your benefits"})]})})]}),xi=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"})),ki=({children:e,...t})=>Ie("dialog",{className:"z-50 w-full h-full absolute top-0 left-0 bottom-0 right-0",...t,children:e}),Ei=({open:e})=>Ie(ki,{open:e,children:Ie("div",{className:"flex flex-col gap-5 items-center justify-center text-center mt-20",children:[Ie("span",{class:"animate-spin",children:Ie(Fe,{size:"lg"})}),Ie(Jt,{children:"Creating your account"}),Ie("div",{children:[Ie(Kt,{children:"This can take up to 30 seconds."}),Ie(Kt,{children:"Please don't navigate away or refresh your browser."})]})]})}),Si=({phoneNumber:e,onVerify:t,onResendOtp:n,onGoBack:r})=>{const{otp:o,setOtp:i}=(()=>{const[e,t]=ge("");return{otp:{valid:ke((()=>6===e.length),[e.length]),code:e},setOtp:t}})(),[a,s]=ge(!1),[l,c]=ge(""),{countdown:u,restart:d}=(e=>{const[t,n]=ge(e),r=ve(),o=Ee((()=>{clearInterval(r.current)}),[]);return be((()=>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);be(d,[d]);const f=Ee((()=>(s(!0),c(""),t(o.code).catch(c).finally((()=>{s(!1)})))),[t,o.code]),p=Ee((()=>(c(""),n().then(d).catch(c))),[n,d]);return Ie(E,{children:[Ie(Ei,{open:a}),Ie(mi,{children:[Ie(mi.Top,{children:Ie("div",{className:"flex flex-col gap-5",children:[Ie(Jt,{children:"Verify your mobile number"}),Ie(Kt,{children:["An SMS verification code has been sent to the number ",e,"."]})]})}),Ie(mi.Bottom,{children:Ie("div",{className:"mt-5 md:w-[300px] text-left",children:[Ie(ze,{className:"font-medium text-sm text-gray-900 text-left",children:"Enter your verification code"}),Ie(Yt,{allowedKeyPattern:/[0-9]/,inputMode:"numeric",minLength:6,maxLength:6,className:"mt-1 mb-1 w-full p-2 focus-visible:ring-gray-500",trailingIconElement:!1,onChange:i}),l&&Ie("span",{className:"text-xs text-rose-500",children:l}),Ie("p",{class:"mt-2 text-center text-xs text-gray-600 disabled:opacity-75 ",children:["Didn't get the code?",Ie(Gt,{disabled:0!==u,className:"underline mx-2 disabled:text-gray-600 disabled:hover:bg-transparent disabled:cursor-text disabled:px-0",onClick:p,children:"Resend SMS"}),0!==u&&Ie(E,{children:["in ",u," secs"]})]}),Ie($t,{class:"mt-5 md:w-full",disabled:!o.valid,onClickPromise:f,children:"Continue"}),Ie($t,{class:"mt-5 md:w-full bg-white hover:!bg-gray-100 focus:!ring-gray-200 !border-0 !shadow-none !text-gray-700 !border-gray-300",onClickPromise:async()=>{r()},children:Ie("span",{className:"flex gap-3",children:[Ie(xi,{}),"Back"]})})]})})]})]})},Ci=({phoneNumber:e,onSignUp:t,onVerify:n,onResendOtp:r,onSuccess:o,onDecline:i})=>{const[a,s]=ge(e??""),{step:l,goBack:c,goToStep:u}=(()=>{const[e,t]=ge(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?Be.OTP:Be.SUCCESS)}))),[u,t]),f=Ee((e=>n(e).then((()=>{u(Be.SUCCESS)}))),[u,n]);return Ie(E,{children:[l===Be.PHONE_NUMBER&&Ie(bi,{phoneNumber:a,onSubmit:d,onDecline:i}),l===Be.OTP&&Ie(Si,{phoneNumber:a,onVerify:f,onResendOtp:r,onGoBack:c}),l===Be.SUCCESS&&Ie(vi,{onContinue:o})]})},Ti="Onboarding",Ni="onboarding";var Oi=(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))(Oi||{});const Ri=e=>{var t;const n=null==(t=null==e?void 0:e.response)?void 0:t.data;throw Oi[null==n?void 0:n.code]??"Sorry, we are currently experiencing some issues. Please try again later."},Ai=({onSuccess:e,onDecline:t})=>{const{identity:{phoneNumber:n}}=Se(Me),{signUp:r,verifyOtp:o,resendOtp:i}={signUp:async e=>_o.backend.getClient().post("v2.0/auth/signUp",{mobileNumber:e,source:Ti,channel:Ni}).then((e=>({isVerificationRequired:e.data.isVerificationRequired??!0}))),verifyOtp:async e=>{await _o.backend.getClient().post("auth/verify",{otp:e,source:Ti,channel:Ni}).catch(Ri)},resendOtp:async()=>{await _o.backend.getClient().post("auth/resend").catch(Ri)}};return Ie(E,{children:Ie(Ci,{phoneNumber:n,onSignUp:r,onVerify:o,onResendOtp:i,onSuccess:e,onDecline:t})})},Pi=""+("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),Li=e=>{const{featureFlags:t}=Se(Me),[n,r]=ge(!0),{trace:o}=wo();return be((()=>{t.unifiedCustomerRegistration||(async()=>{await o("sign-up-viewed")})()}),[]),Ie(mi,{children:[Ie(mi.Top,{children:Ie("img",{class:"max-w-[30rem] w-full",src:Pi})}),Ie(mi.Bottom,{children:Ie("div",{children:[Ie("h3",{class:"mt-8 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:"Finish setting up your workplace benefits"}),Ie("p",{class:"mt-3 text-lg leading-7 text-gray-600",children:"Because your workplace uses Flare you have access to a range of exclusive benefits that can save you thousands of dollars every year on your car, private health insurance, weekly grocery shop and more."}),!t.unifiedCustomerRegistration&&Ie("div",{class:"flex items-center text-left mt-6",children:[Ie("input",{class:"accent-primary-base h-4 w-4",type:"checkbox",name:"membership",checked:n,onChange:e=>{var t;return r(null==(t=e.target)?void 0:t.checked)}}),Ie("label",{class:"font-medium text-sm text-gray-900 ml-3",for:"membership",children:Ie("span",{children:["I would like to be contacted about the latest benefits from Flare and agree to the"," ",Ie("a",{href:"https://www.flarehr.com/privacy-policy/",target:"_blank",rel:"noreferrer",children:"privacy policy"}),"."]})})]}),Ie($t,{class:"mt-8",onClickPromise:async()=>{await o("started"),t.unifiedCustomerRegistration||await o(n?"membership-accepted":"membership-declined"),e.onStepComplete()},children:"Continue"})]})})]})},Ui=e=>{const[t,n]=ge();be((()=>{(async()=>{n(await go.workplaceBackend.getAccessToken()),r({type:"offer-viewed",offerName:e.marketPlaceOffer.name,data:e.marketPlaceOffer.metadata})})()}),[]);const{trace:r}=wo(),o=ve(null);return be((()=>{o.current&&(o.current.terms=e.marketPlaceOffer.content.terms,o.current.details=e.marketPlaceOffer.content.details,o.current.onAccepted=async()=>{await r({type:"offer-accepted",offerName:e.marketPlaceOffer.name,data:{...e.marketPlaceOffer.metadata,template:e.marketPlaceOffer.content.template,assessmentId:e.marketPlaceOffer.content.assessmentId}})},o.current.onDeclined=async()=>{await r({type:"offer-declined",offerName:e.marketPlaceOffer.name,data:{...e.marketPlaceOffer.metadata,template:e.marketPlaceOffer.content.template,assessmentId:e.marketPlaceOffer.content.assessmentId}})},o.current.onComplete=e.onStepComplete)}),[e.marketPlaceOffer.content.assessmentId,e.marketPlaceOffer.content.details,e.marketPlaceOffer.content.template,e.marketPlaceOffer.content.terms,e.marketPlaceOffer.metadata,e.marketPlaceOffer.name,e.onStepComplete,r]),t?Ie(Di,{children:Ie("benefits-plan-assessment",{"base-url":go.workplaceBackend.getBaseUrl(),"profile-id":go.workplaceBackend.getProfileId(),"access-token":t,"image-url":e.marketPlaceOffer.content.imageUrl,"assessment-id":e.marketPlaceOffer.content.assessmentId,"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,ref:o})}):null},Di=({children:e})=>{const t=ve(null),[n,r]=ge(!1);return be((()=>{(()=>{if(t.current&&!t.current.querySelector("script[data-injected]")){const e=document.createElement("script");e.type="module",e.src="https://npm-cdn.flarehr.com/@flarehr/benefits-plan-assessment/dist/benefits-plan-assessment.js",e.dataset.injected="true",e.onload=()=>{r(!0)},t.current.appendChild(e)}else r(!0)})()}),[]),Ie("div",{ref:t,children:n?e:Ie("div",{class:"flex justify-center",children:Ie("span",{class:"animate-spin",children:Ie(Fe,{size:"lg"})})})})},{entries:Ii,setPrototypeOf:Fi,isFrozen:ji,getPrototypeOf:Mi,getOwnPropertyDescriptor:Bi}=Object;let{freeze:zi,seal:Hi,create:Wi}=Object,{apply:qi,construct:Vi}="undefined"!=typeof Reflect&&Reflect;zi||(zi=function(e){return e}),Hi||(Hi=function(e){return e}),qi||(qi=function(e,t,n){return e.apply(t,n)}),Vi||(Vi=function(e,t){return new e(...t)});const $i=ia(Array.prototype.forEach),Gi=ia(Array.prototype.pop),Yi=ia(Array.prototype.push),Ji=ia(String.prototype.toLowerCase),Ki=ia(String.prototype.toString),Xi=ia(String.prototype.match),Zi=ia(String.prototype.replace),Qi=ia(String.prototype.indexOf),ea=ia(String.prototype.trim),ta=ia(Object.prototype.hasOwnProperty),na=ia(RegExp.prototype.test),ra=(oa=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Vi(oa,t)});var oa;function ia(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 qi(e,t,r)}}function aa(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ji;Fi&&Fi(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(ji(t)||(t[r]=e),o=e)}e[o]=!0}return e}function sa(e){for(let t=0;t<e.length;t++){ta(e,t)||(e[t]=null)}return e}function la(e){const t=Wi(null);for(const[n,r]of Ii(e)){ta(e,n)&&(Array.isArray(r)?t[n]=sa(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=la(r):t[n]=r)}return t}function ca(e,t){for(;null!==e;){const n=Bi(e,t);if(n){if(n.get)return ia(n.get);if("function"==typeof n.value)return ia(n.value)}e=Mi(e)}return function(){return null}}const ua=zi(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),da=zi(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),fa=zi(["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"]),pa=zi(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),ma=zi(["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"]),ha=zi(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),_a=zi(["#text"]),ga=zi(["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"]),ya=zi(["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"]),ba=zi(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),wa=zi(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),va=Hi(/\{\{[\w\W]*|[\w\W]*\}\}/gm),xa=Hi(/<%[\w\W]*|[\w\W]*%>/gm),ka=Hi(/\${[\w\W]*}/gm),Ea=Hi(/^data-[\-\w.\u00B7-\uFFFF]/),Sa=Hi(/^aria-[\-\w]+$/),Ca=Hi(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ta=Hi(/^(?:\w+script|data):/i),Na=Hi(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Oa=Hi(/^html$/i),Ra=Hi(/^[a-z][.\w]*(-[.\w]+)+$/i);var Aa=Object.freeze({__proto__:null,MUSTACHE_EXPR:va,ERB_EXPR:xa,TMPLIT_EXPR:ka,DATA_ATTR:Ea,ARIA_ATTR:Sa,IS_ALLOWED_URI:Ca,IS_SCRIPT_OR_DATA:Ta,ATTR_WHITESPACE:Na,DOCTYPE_NAME:Oa,CUSTOM_ELEMENT:Ra});const Pa=1,La=3,Ua=7,Da=8,Ia=9;var Fa=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!==Ia)return n.isSupported=!1,n;let{document:r}=t;const o=r,i=o.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:l,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:f,DOMParser:p,trustedTypes:m}=t,h=c.prototype,_=ca(h,"cloneNode"),g=ca(h,"remove"),y=ca(h,"nextSibling"),b=ca(h,"childNodes"),w=ca(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:C}=r,{importNode:T}=o;let N={};n.isSupported="function"==typeof Ii&&"function"==typeof w&&k&&void 0!==k.createHTMLDocument;const{MUSTACHE_EXPR:O,ERB_EXPR:R,TMPLIT_EXPR:A,DATA_ATTR:P,ARIA_ATTR:L,IS_SCRIPT_OR_DATA:U,ATTR_WHITESPACE:D,CUSTOM_ELEMENT:I}=Aa;let{IS_ALLOWED_URI:F}=Aa,j=null;const M=aa({},[...ua,...da,...fa,...ma,..._a]);let B=null;const z=aa({},[...ga,...ya,...ba,...wa]);let H=Object.seal(Wi(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=aa({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ue=null;const de=aa({},["audio","video","img","source","image","track"]);let fe=null;const pe=aa({},["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",_e="http://www.w3.org/1999/xhtml";let ge=_e,ye=!1,be=null;const we=aa({},[me,he,_e],Ki);let ve=null;const xe=["application/xhtml+xml","text/html"];let ke=null,Ee=null;const Se=r.createElement("form"),Ce=function(e){return e instanceof RegExp||e instanceof Function},Te=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ee||Ee!==e){if(e&&"object"==typeof e||(e={}),e=la(e),ve=-1===xe.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ke="application/xhtml+xml"===ve?Ki:Ji,j=ta(e,"ALLOWED_TAGS")?aa({},e.ALLOWED_TAGS,ke):M,B=ta(e,"ALLOWED_ATTR")?aa({},e.ALLOWED_ATTR,ke):z,be=ta(e,"ALLOWED_NAMESPACES")?aa({},e.ALLOWED_NAMESPACES,Ki):we,fe=ta(e,"ADD_URI_SAFE_ATTR")?aa(la(pe),e.ADD_URI_SAFE_ATTR,ke):pe,ue=ta(e,"ADD_DATA_URI_TAGS")?aa(la(de),e.ADD_DATA_URI_TAGS,ke):de,le=ta(e,"FORBID_CONTENTS")?aa({},e.FORBID_CONTENTS,ke):ce,W=ta(e,"FORBID_TAGS")?aa({},e.FORBID_TAGS,ke):{},q=ta(e,"FORBID_ATTR")?aa({},e.FORBID_ATTR,ke):{},se=!!ta(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,F=e.ALLOWED_URI_REGEXP||Ca,ge=e.NAMESPACE||_e,H=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Ce(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Ce(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(H.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),J&&($=!1),te&&(ee=!0),se&&(j=aa({},_a),B=[],!0===se.html&&(aa(j,ua),aa(B,ga)),!0===se.svg&&(aa(j,da),aa(B,ya),aa(B,wa)),!0===se.svgFilters&&(aa(j,fa),aa(B,ya),aa(B,wa)),!0===se.mathMl&&(aa(j,ma),aa(B,ba),aa(B,wa))),e.ADD_TAGS&&(j===M&&(j=la(j)),aa(j,e.ADD_TAGS,ke)),e.ADD_ATTR&&(B===z&&(B=la(B)),aa(B,e.ADD_ATTR,ke)),e.ADD_URI_SAFE_ATTR&&aa(fe,e.ADD_URI_SAFE_ATTR,ke),e.FORBID_CONTENTS&&(le===ce&&(le=la(le)),aa(le,e.FORBID_CONTENTS,ke)),ie&&(j["#text"]=!0),X&&aa(j,["html","head","body"]),j.table&&(aa(j,["tbody"]),delete W.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw ra('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw ra('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(""));zi&&zi(e),Ee=e}},Ne=aa({},["mi","mo","mn","ms","mtext"]),Oe=aa({},["foreignobject","annotation-xml"]),Re=aa({},["title","style","font","a","script"]),Ae=aa({},[...da,...fa,...pa]),Pe=aa({},[...ma,...ha]),Le=function(e){Yi(n.removed,{element:e});try{w(e).removeChild(e)}catch(t){g(e)}},Ue=function(e,t){try{Yi(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(r){Yi(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){}},De=function(e){let t=null,n=null;if(Q)e="<remove></remove>"+e;else{const t=Xi(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ve&&ge===_e&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=v?v.createHTML(e):e;if(ge===_e)try{t=(new p).parseFromString(o,ve)}catch(a){}if(!t||!t.documentElement){t=k.createDocument(ge,"template",null);try{t.documentElement.innerHTML=ye?x:o}catch(a){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),ge===_e?C.call(t,X?"html":"body")[0]:X?t.documentElement:i},Ie=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)},Fe=function(e){return e instanceof f&&("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]&&$i(N[e],(e=>{e.call(n,t,r,Ee)}))},Be=function(e){let t=null;if(Me("beforeSanitizeElements",e,null),Fe(e))return Le(e),!0;const r=ke(e.nodeName);if(Me("uponSanitizeElement",e,{tagName:r,allowedTags:j}),e.hasChildNodes()&&!je(e.firstElementChild)&&na(/<[/\w]/g,e.innerHTML)&&na(/<[/\w]/g,e.textContent))return Le(e),!0;if(e.nodeType===Ua)return Le(e),!0;if(K&&e.nodeType===Da&&na(/<[/\w]/g,e.data))return Le(e),!0;if(!j[r]||W[r]){if(!W[r]&&He(r)){if(H.tagNameCheck instanceof RegExp&&na(H.tagNameCheck,r))return!1;if(H.tagNameCheck instanceof Function&&H.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=_(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,y(e))}}}return Le(e),!0}return e instanceof c&&!function(e){let t=w(e);t&&t.tagName||(t={namespaceURI:ge,tagName:"template"});const n=Ji(e.tagName),r=Ji(t.tagName);return!!be[e.namespaceURI]&&(e.namespaceURI===he?t.namespaceURI===_e?"svg"===n:t.namespaceURI===me?"svg"===n&&("annotation-xml"===r||Ne[r]):Boolean(Ae[n]):e.namespaceURI===me?t.namespaceURI===_e?"math"===n:t.namespaceURI===he?"math"===n&&Oe[r]:Boolean(Pe[n]):e.namespaceURI===_e?!(t.namespaceURI===he&&!Oe[r])&&!(t.namespaceURI===me&&!Ne[r])&&!Pe[n]&&(Re[n]||!Ae[n]):!("application/xhtml+xml"!==ve||!be[e.namespaceURI]))}(e)?(Le(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!na(/<\/no(script|embed|frames)/i,e.innerHTML)?(J&&e.nodeType===La&&(t=e.textContent,$i([O,R,A],(e=>{t=Zi(t,e," ")})),e.textContent!==t&&(Yi(n.removed,{element:e.cloneNode()}),e.textContent=t)),Me("afterSanitizeElements",e,null),!1):(Le(e),!0)},ze=function(e,t,n){if(re&&("id"===t||"name"===t)&&(n in r||n in Se))return!1;if($&&!q[t]&&na(P,t));else if(V&&na(L,t));else if(!B[t]||q[t]){if(!(He(e)&&(H.tagNameCheck instanceof RegExp&&na(H.tagNameCheck,e)||H.tagNameCheck instanceof Function&&H.tagNameCheck(e))&&(H.attributeNameCheck instanceof RegExp&&na(H.attributeNameCheck,t)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(t))||"is"===t&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&na(H.tagNameCheck,n)||H.tagNameCheck instanceof Function&&H.tagNameCheck(n))))return!1}else if(fe[t]);else if(na(F,Zi(n,D,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Qi(n,"data:")||!ue[e]){if(G&&!na(U,Zi(n,D,"")));else if(n)return!1}else;return!0},He=function(e){return"annotation-xml"!==e&&Xi(e,I)},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:ea(c);if(r.attrName=u,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,Me("uponSanitizeAttribute",e,r),d=r.attrValue,K&&na(/((--!?|])>)|<\/(style|title)/i,d)){Ue(s,e);continue}if(r.forceKeepAttr)continue;if(Ue(s,e),!r.keepAttr)continue;if(!Y&&na(/\/>/i,d)){Ue(s,e);continue}J&&$i([O,R,A],(e=>{d=Zi(d,e," ")}));const f=ke(e.nodeName);if(ze(f,u,d)){if(!oe||"id"!==u&&"name"!==u||(Ue(s,e),d="user-content-"+d),v&&"object"==typeof m&&"function"==typeof m.getAttributeType)if(l);else switch(m.getAttributeType(f,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),Fe(e)?Le(e):Gi(n.removed)}catch(i){}}}Me("afterSanitizeAttributes",e,null)},qe=function e(t){let n=null;const r=Ie(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(ye=!e,ye&&(e="\x3c!--\x3e"),"string"!=typeof e&&!je(e)){if("function"!=typeof e.toString)throw ra("toString is not a function");if("string"!=typeof(e=e.toString()))throw ra("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Z||Te(t),n.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){const t=ke(e.nodeName);if(!j[t]||W[t])throw ra("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)r=De("\x3c!----\x3e"),i=r.ownerDocument.importNode(e,!0),i.nodeType===Pa&&"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=De(e),!r)return ee?null:ne?x:""}r&&Q&&Le(r.firstChild);const u=Ie(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=T.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&&na(Oa,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),J&&$i([O,R,A],(e=>{d=Zi(d,e," ")})),v&&ne?v.createHTML(d):d},n.setConfig=function(){Te(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||Te({});const r=ke(e),o=ke(t);return ze(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(N[e]=N[e]||[],Yi(N[e],t))},n.removeHook=function(e){if(N[e])return Gi(N[e])},n.removeHooks=function(e){N[e]&&(N[e]=[])},n.removeAllHooks=function(){N={}},n}();const ja=({children:e})=>{const t=Wt.Children.toArray(e),n=t.find((e=>e.type===Ma)),r=t.find((e=>e.type===Ba));return Ie(pi,{appear:!0,show:!0,enter:"transition duration-700 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:Ie("div",{class:"md:grid md:grid-cols-2 max-w-[59.5rem] mx-auto",children:[Ie(pi,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:n&&Ie("div",{class:"flex items-center h-full",children:n})}),Ie(pi,{appear:!0,show:!0,enter:"transition delay-300 duration-[600ms] ease-out",enterFrom:"opacity-0 -translate-y-6",enterTo:"opacity-100 translate-y-0",children:r&&Ie("div",{class:"flex items-center h-full",children:r})})]})})},Ma=({children:e})=>Ie(E,{children:e}),Ba=({children:e})=>Ie(E,{children:e});ja.Left=Ma,ja.Right=Ba;const za=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"})),Ha=e=>Ie(pi,{appear:!0,show:!0,enter:"transition duration-300 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:Ie("div",{class:"w-full border border-gray-200 rounded-lg shadow-sm p-4 pl-3 md:p-6 space-y-2",children:e.items.map(((e,t)=>Ie("div",{class:"flex space-x-1",children:[Ie("span",{children:Ie(wi,{class:"h-5 w-5 fill-primary-base"})}),Ie("span",{class:"text-sm leading-5 text-gray-600",children:e})]},t)))})}),Wa=e=>{const[t,n]=ge(!1);return Ie("div",{class:e.class,children:t?Ie(Ha,{items:e.items}):Ie("button",{type:"button",class:"w-full inline-flex justify-center items-center px-4 py-3 border border-gray-200 shadow-sm text-sm font-medium rounded-md text-primary-base bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus",onClick:()=>n(!0),children:["Learn more",Ie("span",{class:"ml-1",children:Ie(za,{class:"h-4 w-4"})})]})})},qa=e=>{var t;const{trace:n}=wo();be((()=>{(async()=>{await n({type:"offer-viewed",offerName:e.step.name,data:e.step.metadata})})()}),[e.step.metadata,e.step.name,n]);const r=async t=>{t?await n({type:"offer-accepted",offerName:e.step.name,data:{...e.step.metadata,template:"Eoi"}}):await n({type:"offer-declined",offerName:e.step.name,data:{...e.step.metadata,template:"Eoi"}});return(t?e.primaryButton:e.secondaryButton).onClick()};return Ie(ja,{children:[Ie(ja.Left,{children:Ie("div",{children:Ie(pi,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:[Ie("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:e.step.content.mobileImageUrl,loading:"lazy"}),Ie("div",{class:"md:max-w-[27.5rem]",children:[Ie("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:e.step.content.title}),Ie("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:e.step.content.description}),e.step.content.details&&Ie("div",{class:"mt-6 hidden md:block",children:Ie(Ha,{items:e.step.content.details})})]}),e.step.content.details&&Ie(Wa,{class:"mt-6 md:hidden",items:e.step.content.details}),e.children&&e.children,Ie("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:[Ie($t,{class:e.primaryButton.class??"",onClickPromise:()=>r(!0),children:e.primaryButton.text??"Next"}),(null==(t=e.secondaryButton)?void 0:t.text)&&Ie($t,{class:e.secondaryButton.class??"bg-white hover:!bg-gray-100 focus:!ring-gray-200 !border-0 !shadow-none !text-gray-700 !border-gray-300",onClickPromise:()=>r(!1),children:e.secondaryButton.text})]}),e.step.content.terms&&Ie("div",{class:"flex flex-col gap-3 mt-6 text-gray-600 text-xs",children:e.step.content.terms.map(((e,t)=>Ie("span",{dangerouslySetInnerHTML:{__html:Fa.sanitize(e,{ADD_ATTR:["target"]})}},t)))})]})})}),Ie(ja.Right,{children:Ie("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},Va=e=>{const{trace:t}=wo();be((()=>{(async()=>{"name"in e.step&&await t({type:"offer-viewed",offerName:e.step.name,data:e.step.metadata})})()}),[e.step,t]);return Ie(ja,{children:[Ie(ja.Left,{children:Ie("div",{children:Ie(pi,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:[Ie("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:e.step.content.mobileImageUrl,loading:"lazy"}),Ie("div",{class:"md:max-w-[27.5rem]",children:[Ie("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:e.step.content.title}),Ie("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:e.step.content.description}),e.step.content.details&&Ie("div",{class:"mt-6 hidden md:block",children:Ie(Ha,{items:e.step.content.details})})]}),e.step.content.details&&Ie(Wa,{class:"mt-6 md:hidden",items:e.step.content.details}),e.children&&e.children,Ie("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:Ie($t,{class:e.primaryButton.class??"",onClickPromise:async()=>{"name"in e.step&&await t({type:"offer-progressed",offerName:e.step.name,data:{...e.step.metadata,template:"Simple"}}),e.primaryButton.onClick()},children:e.primaryButton.text??"Next"})}),e.step.content.terms&&Ie("div",{class:"flex flex-col gap-3 mt-6 text-gray-600 text-xs ",children:e.step.content.terms.map(((e,t)=>Ie("span",{dangerouslySetInnerHTML:{__html:Fa.sanitize(e,{ADD_ATTR:["target"]})}},t)))})]})})}),Ie(ja.Right,{children:Ie("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},$a=e=>Ie("div",{children:[Ie("div",{class:"max-w-[59.5rem] mx-auto text-xs",children:Ie("span",{class:"relative px-3 py-0.5 text-primary-base font-semibold",children:[e.stepNumber.current," OF ",e.stepNumber.total,Ie("span",{class:"absolute left-0 rounded-xl bg-primary-base opacity-10 w-full h-[90%]"})]})}),"Eoi"===e.marketPlaceOffer.content.template&&Ie(qa,{step:e.marketPlaceOffer,primaryButton:{text:e.marketPlaceOffer.content.acceptButton,onClick:e.onStepComplete},secondaryButton:{text:e.marketPlaceOffer.content.declineButton,onClick:e.onStepComplete}}),"Simple"===e.marketPlaceOffer.content.template&&Ie(Va,{step:e.marketPlaceOffer,primaryButton:{text:e.marketPlaceOffer.content.acceptButton,onClick:e.onStepComplete}}),"Assessment"===e.marketPlaceOffer.content.template&&Ie(Ui,{onStepComplete:e.onStepComplete,marketPlaceOffer:{...e.marketPlaceOffer,content:e.marketPlaceOffer.content}})]}),Ga=""+("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),Ya=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"})),Ja=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"})),Ka=""+("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),Xa=()=>{const{trace:e}=wo();be((()=>{(async()=>{await e({type:"summary-viewed",data:{summaryVariant:"app"}})})()}),[]);const{identity:t}=Se(Me),n={...Za(t),imageUrl:Ga,mobileImageUrl:Ka},r={text:"Continue",class:"mt-6 md:mt-14",onClick:async()=>{await e("completed");const t=document.querySelector(os),n=new CustomEvent("step-completion",{bubbles:!0});null==t||t.dispatchEvent(n),await new Promise((e=>setTimeout(e,1e4)))}};return Ie(ja,{children:[Ie(ja.Left,{children:Ie("div",{children:[Ie("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:n.mobileImageUrl,loading:"lazy"}),Ie("div",{class:"md:max-w-[27.5rem]",children:[Ie("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:n.title}),Ie("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:n.description})]}),Ie("div",{class:"mt-6 flex space-x-6",children:[Ie(Ya,{}),Ie(Ja,{})]}),Ie($t,{class:r.class,onClickPromise:r.onClick,children:r.text})]})}),Ie(ja.Right,{children:Ie("img",{class:"max-w-[30rem] w-full hidden md:block",src:n.imageUrl,loading:"lazy"})})]})},Za=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.`}}},Qa=""+("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),es=""+("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),ts=()=>{const{trace:e}=wo();be((()=>{(async()=>{await e({type:"summary-viewed",data:{summaryVariant:"generic"}})})()}),[]);const{workplace:t}=Se(Me),n={imageUrl:Qa,mobileImageUrl:es,title:"You're all set!",description:"PreviouslyLinked"===t.linkingStatus?"You’ve already connected this employer with your Flare Benefits account. Simply continue and review the details you have provided to complete your onboarding.":"Simply continue and review the details you have provided to complete your onboarding."},r={text:"Continue",class:"mt-6 md:mt-6",onClick:async()=>{await e("completed");const t=document.querySelector(os),n=new CustomEvent("step-completion",{bubbles:!0});null==t||t.dispatchEvent(n),await new Promise((e=>setTimeout(e,1e4)))}};return Ie(ja,{children:[Ie(ja.Left,{children:Ie("div",{children:[Ie("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:n.mobileImageUrl,loading:"lazy"}),Ie("div",{class:"md:max-w-[27.5rem]",children:[Ie("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:n.title}),Ie("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:n.description})]}),Ie("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:Ie($t,{class:r.class,onClickPromise:r.onClick,children:r.text})})]})}),Ie(ja.Right,{children:Ie("img",{class:"max-w-[30rem] w-full hidden md:block",src:n.imageUrl,loading:"lazy"})})]})},ns=()=>{const{offers:e,isComplete:t,isAppEnabled:n,identity:r,workplace:o,featureFlags:i,updateIdentity:a}=Se(Me),{current:s,goNext:l}=function(e,t,n,r,o,i){const a=function(e,t,n,r,o,i){const{unifiedCustomerRegistration:a}=i,s=n?"SummaryApp":"SummaryGeneric";if(t)return[s];if(!a)return["Introduction",...e.map((e=>e.name)),s];switch(!0){case"Unregistered"===r.registrationStatus:case"PreviouslyRegistered"===r.registrationStatus&&"Unlinked"===o.linkingStatus:return["Introduction","FlareAppIdentity"];case"PreviouslyRegistered"===r.registrationStatus&&"NewlyLinked"==o.linkingStatus:case"NewlyRegistered"===r.registrationStatus:return[...e.map((e=>e.name)),s];case"PreviouslyRegistered"===r.registrationStatus&&"PreviouslyLinked"==o.linkingStatus:case"RegistrationAbandoned"===r.registrationStatus:return[s];default:return[]}}(e,t,n,r,o,i),[s,l]=ge(a[0]),c=ke((()=>{const t=e.find((e=>e.name===s));return t?{screenName:"MarketplaceOffer",offerName:t.name}:{screenName:s}}),[s,e]);return a.some((e=>e===s))||l(a[0]),{current:c,goNext:()=>{try{const e=a.findIndex((e=>e===s)),t=a[e+1];l(t)}catch{}}}}(e,t,n,r,o,i),c=Ee((()=>{a(!0)}),[a]),u=Ee((()=>{a(!1)}),[a]);switch(s.screenName){case"Introduction":return Ie(Li,{employerName:o.employerName,onStepComplete:l});case"FlareAppIdentity":return Ie(Ai,{onSuccess:c,onDecline:u});case"MarketplaceOffer":return Ie($a,{stepNumber:{current:e.findIndex((e=>e.name===s.offerName))+1,total:e.length},marketPlaceOffer:e.find((e=>e.name===s.offerName)),onStepComplete:l});case"SummaryApp":return Ie(Xa,{});case"SummaryGeneric":return Ie(ts,{});default:return Ie(E,{})}},rs=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}},os="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]=ge(),[r,o]=ge(0);be((()=>en((()=>{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"]};yo(t.backendUrl,t.accessToken,t.workflowsInstanceId);const r=await _o.backend.init();n(rs(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 Ie(E,{children:[Ie("style",{children:'/*! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}span a{color:var(--fl-color-primary)}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.absolute{position:absolute}.relative{position:relative}.inset-y-0{bottom:0;top:0}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.z-50{z-index:50}.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}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-20{margin-top:5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.hidden{display:none}.h-10{height:2.5rem}.h-16{height:4rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-\\[90\\%\\]{height:90%}.h-full{height:100%}.w-10{width:2.5rem}.w-16{width:4rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-7{width:1.75rem}.w-full{width:100%}.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%}.-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}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.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)))}.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-gray-300{--tw-border-opacity:1!important;border-color:rgb(209 213 219/var(--tw-border-opacity))!important}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity))}.bg-primary-base{background-color:var(--fl-color-primary)}.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-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}.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-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}.\\!text-gray-700{--tw-text-opacity:1!important;color:rgb(55 65 81/var(--tw-text-opacity))!important}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-gray-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))}.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)}.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\\:mt-0{margin-top:0}.md\\:mt-11{margin-top:2.75rem}.md\\:mt-14{margin-top:3.5rem}.md\\:mt-3{margin-top:.75rem}.md\\:mt-6{margin-top:1.5rem}.md\\:block{display:block}.md\\:grid{display:grid}.md\\:hidden{display:none}.md\\:w-\\[240px\\]{width:240px}.md\\:w-\\[300px\\]{width:300px}.md\\:w-auto{width:auto}.md\\:w-full{width:100%}.md\\:max-w-\\[27\\.5rem\\]{max-width:27.5rem}.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:flex-row{flex-direction:row}.md\\:justify-between{justify-content:space-between}.md\\:p-6{padding:1.5rem}.md\\:py-24{padding-bottom:6rem;padding-top:6rem}.md\\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\\:text-lg{font-size:1.125rem}.md\\:leading-7,.md\\:text-lg{line-height:1.75rem}.md\\:leading-9{line-height:2.25rem}.md\\:transition-none{transition-property:none}}'.toString()}),Ie("div",{class:"font-inter pt-6 pb-8 md:py-24 px-px",children:t?Ie(Me.Provider,{value:{...t,updateIdentity:a},children:Ie(ns,{})}):Ie("div",{class:"flex justify-center",children:Ie("span",{class:"animate-spin",children:Ie(Fe,{size:"lg"})})})},r)]})}),os,[],{shadow:!0})}));
|
|
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,f,p,m,h={},g=[],_=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,y=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 E(){return{current:null}}function k(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=b({},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)||f)(O)}function O(){var e,t,n,r=[],o=[];for(u.sort(p);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(p)):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,f,p,m,_,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):y(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=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,b),l=n.__d,d=0;d<w;d++)null!=(p=n.__k[d])&&"boolean"!=typeof p&&"function"!=typeof p&&(f=-1===p.__i?h:b[p.__i]||h,p.__i=d,M(e,p,f,o,i,a,s,l,c,u),m=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&H(f.ref,null,p),u.push(p.ref,p.__c||m,p)),null==_&&null!=m&&(_=m),65536&p.__u||f.__k===p.__k?l=P(p,l,e):"function"==typeof p.type&&void 0!==p.__d?l=p.__d:m&&(l=m.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=l,n.__e=_}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||(y(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||_.test(t)?n:n+"px"}function D(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:F,i)):e.removeEventListener(t,i?j:F,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 F(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 f,p,m,g,_,v,x,E,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]),(f=l.__b)&&f(t);e:if("function"==typeof U)try{if(E=t.props,C=(f=U.contextType)&&r[f.__c],N=f?C?C.props.value:f.__:r,n.__c?x=(p=t.__c=n.__c).__=p.__E:("prototype"in U&&U.prototype.render?t.__c=p=new U(E,N):(t.__c=p=new S(E,N),p.constructor=U,p.render=W),C&&C.sub(p),p.props=E,p.state||(p.state={}),p.context=N,p.__n=r,m=p.__d=!0,p.__h=[],p._sb=[]),null==p.__s&&(p.__s=p.state),null!=U.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=b({},p.__s)),b(p.__s,U.getDerivedStateFromProps(E,p.__s))),g=p.props,_=p.state,p.__v=t,m)null==U.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(null==U.getDerivedStateFromProps&&E!==g&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(E,N),!p.__e&&(null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(E,p.__s,N)||t.__v===n.__v)){for(t.__v!==n.__v&&(p.props=E,p.state=p.__s,p.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),A=0;A<p._sb.length;A++)p.__h.push(p._sb[A]);p._sb=[],p.__h.length&&a.push(p);break e}null!=p.componentWillUpdate&&p.componentWillUpdate(E,p.__s,N),null!=p.componentDidUpdate&&p.__h.push((function(){p.componentDidUpdate(g,_,v)}))}if(p.context=N,p.props=E,p.__P=e,p.__e=!1,O=l.__r,P=0,"prototype"in U&&U.prototype.render){for(p.state=p.__s,p.__d=!1,O&&O(t),f=p.render(p.props,p.state,p.context),L=0;L<p._sb.length;L++)p.__h.push(p._sb[L]);p._sb=[]}else do{p.__d=!1,O&&O(t),f=p.render(p.props,p.state,p.context),p.state=p.__s}while(p.__d&&++P<25);p.state=p.__s,null!=p.getChildContext&&(r=b(b({},r),p.getChildContext())),m||null==p.getSnapshotBeforeUpdate||(v=p.getSnapshotBeforeUpdate(g,_)),R(e,y(I=null!=f&&f.type===k&&null==f.key?f.props.children:f)?I:[I],t,n,r,o,i,a,c,u,d),p.base=t.__e,t.__u&=-161,p.__h.length&&a.push(p),x&&(p.__E=p.__=null)}catch(F){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(F,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,f,p,m,g,_,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?f=m:"key"===u||u in v||D(e,u,null,m,o));for(u in v)m=v[u],"children"==u?p=m:"dangerouslySetInnerHTML"==u?d=m:"value"==u?g=m:"checked"==u?_=m:"key"===u||l&&"function"!=typeof m||b[u]===m||D(e,u,m,b[u],o);if(d)l||f&&(d.__html===f.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(f&&(e.innerHTML=""),R(e,y(p)?p:[p],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!==b[u])&&D(e,u,g,b[u],!1),u="checked",void 0!==_&&_!==e[u]&&D(e,u,_,b[u],!1))}return e}(n.__e,t,n,r,o,i,a,u,d);(f=l.diffed)&&f(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(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,S.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))},S.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),A(this))},S.prototype.render=k,u=[],f="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,p=function(e,t){return e.__v.__b-t.__v.__b},O.__r=0,m=0;var K=["context","children"];function X(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,K))}function J(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=v(X,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=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,fe=ce.diffed,pe=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 _e(e){return ae=1,ye(Ie,e)}function ye(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,Ee((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 Ee(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,Ee((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(Uo){e.__H.__h=[],ce.__e(Uo,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){fe&&fe(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(pi){t.some((function(e){e.__h&&(e.__h=[])})),t=[],ce.__e(pi,e.__v)}})),pe&&pe(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 De(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 Fe=e=>De("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:[De("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"}),De("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={offers:[],isComplete:!1,isAppEnabled:!1,identity:{email:"",phoneNumber:"",verifiedPhoneNumber:"",registrationStatus:"Unregistered"},workplace:{employerName:"",linkingStatus:"Unlinked"},featureFlags:{unifiedCustomerRegistration:!1,marketplaceSubNavigation:!1},updateIdentity:e=>({})},Me=$(je);var Be=(e=>(e[e.PHONE_NUMBER=0]="PHONE_NUMBER",e[e.OTP=1]="OTP",e[e.SUCCESS=2]="SUCCESS",e))(Be||{});const He=({className:e,children:t,...n})=>De("label",{class:`text-base text-gray-600 ${e??""}`,...n,children:t});function ze(e,t){for(var n in t)e[n]=t[n];return e}function We(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 qe(e,t){this.props=e,this.context=t}function Ve(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:We(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}(qe.prototype=new S).isPureReactComponent=!0,qe.prototype.shouldComponentUpdate=function(e,t){return We(this.props,e)||We(this.state,t)};var Ge=l.__b;l.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ge&&Ge(e)};var $e="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ye(e){function t(t){var n=ze({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=$e,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Ke=function(e,t){return null==e?null:L(L(e).map(t))},Xe={map:Ke,forEach:Ke,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},Je=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);Je(e,t,n,r)};var Ze=l.unmount;function Qe(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=ze({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Qe(e,t,n)}))),e}function et(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return et(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 tt(){this.__u=0,this.t=null,this.__b=null}function nt(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function rt(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 ot(){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),Ze&&Ze(e)},(tt.prototype=new S).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=nt(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]=et(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)},tt.prototype.componentWillUnmount=function(){this.t=[]},tt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Qe(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&v(k,null,e.fallback);return o&&(o.__u&=-33),[v(k,null,t.__a?null:e.children),o]};var it=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 at(e){return this.getChildContext=function(){return e.context},e.children}function st(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(at,{context:t.context},e.__v),t.l)}function lt(e,t){var n=v(st,{__v:e,i:t});return n.containerInfo=t,n}(ot.prototype=new S).__a=function(e){var t=this,n=nt(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),it(t,e,r)):o()};n?n(i):i()}},ot.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},ot.prototype.componentDidUpdate=ot.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){it(e,n,t)}))};var ct="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ut=/^(?: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]/,dt=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ft=/[A-Z0-9]/g,pt="undefined"!=typeof document,mt=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function ht(e,t,n){return null==t.__k&&(t.textContent=""),q(e,t),"function"==typeof n&&n(),e?e.__c:null}function gt(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 _t=l.event;function yt(){}function bt(){return this.cancelBubble}function wt(){return this.defaultPrevented}l.event=function(e){return _t&&(e=_t(e)),e.persist=yt,e.isPropagationStopped=bt,e.isDefaultPrevented=wt,e.nativeEvent=e};var vt,xt={enumerable:!1,configurable:!0,get:function(){return this.class}},Et=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||pt&&"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||mt(t.type)?"onfocus"===a?o="onfocusin":"onblur"===a?o="onfocusout":dt.test(o)?o=a:-1===n.indexOf("-")&&ut.test(o)?o=o.replace(ft,"-$&").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",xt)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=ct,Et&&Et(e)};var kt=l.__r;l.__r=function(e){kt&&kt(e),vt=e.__c};var St=l.diffed;l.diffed=function(e){St&&St(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),vt=null};var Tt={ReactCurrentDispatcher:{current:{readContext:function(e){return vt.__n[e.__c].props.value}}}};function Ct(e){return v.bind(null,e)}function Nt(e){return!!e&&e.$$typeof===ct}function At(e){return Nt(e)&&e.type===k}function Ot(e){return Nt(e)?G.apply(null,arguments):e}function Rt(e){return!!e.__k&&(q(null,e),!0)}function Pt(e){return e&&(e.base||1===e.nodeType&&e)||null}var Lt=function(e,t){return e(t)},It=function(e,t){return e(t)},Ut=k;function Dt(e){e()}function Ft(e){return e}function jt(){return[!1,Dt]}var Mt=we,Bt=Nt;function Ht(e,t){var n=t(),r=_e({h:{__:n,v:t}}),o=r[0].h,i=r[1];return we((function(){o.__=n,o.v=t,zt(o)&&i({h:o})}),[e,n,t]),be((function(){return zt(o)&&i({h:o}),e((function(){zt(o)&&i({h:o})}))}),[e]),n}function zt(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 Wt={useState:_e,useId:Ce,useReducer:ye,useEffect:be,useLayoutEffect:we,useInsertionEffect:Mt,useTransition:jt,useDeferredValue:Ft,useSyncExternalStore:Ht,startTransition:Dt,useRef:ve,useImperativeHandle:xe,useMemo:Ee,useCallback:ke,useContext:Se,useDebugValue:Te,version:"17.0.2",Children:Xe,render:ht,hydrate:gt,unmountComponentAtNode:Rt,createPortal:lt,createElement:v,createContext:$,createFactory:Ct,cloneElement:Ot,createRef:E,Fragment:k,isValidElement:Nt,isElement:Bt,isFragment:At,findDOMNode:Pt,Component:S,PureComponent:qe,memo:Ve,forwardRef:Ye,flushSync:It,unstable_batchedUpdates:Lt,StrictMode:Ut,Suspense:tt,SuspenseList:ot,lazy:rt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Tt};const qt=Object.freeze(Object.defineProperty({__proto__:null,Children:Xe,Component:S,Fragment:k,PureComponent:qe,StrictMode:Ut,Suspense:tt,SuspenseList:ot,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Tt,cloneElement:Ot,createContext:$,createElement:v,createFactory:Ct,createPortal:lt,createRef:E,default:Wt,findDOMNode:Pt,flushSync:It,forwardRef:Ye,hydrate:gt,isElement:Bt,isFragment:At,isValidElement:Nt,lazy:rt,memo:Ve,render:ht,startTransition:Dt,unmountComponentAtNode:Rt,unstable_batchedUpdates:Lt,useCallback:ke,useContext:Se,useDebugValue:Te,useDeferredValue:Ft,useEffect:be,useErrorBoundary:function(e){var t=ge(ne++,10),n=_e();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:Mt,useLayoutEffect:we,useMemo:Ee,useReducer:ye,useRef:ve,useState:_e,useSyncExternalStore:Ht,useTransition:jt,version:"17.0.2"},Symbol.toStringTag,{value:"Module"})),Vt=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"})),Gt=e=>{const[t,n]=_e(!1);return De("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:[De("div",{class:""+(t?"invisible":""),children:e.children}),t&&De("div",{class:"absolute animate-spin",children:De(Fe,{theme:"light"})})]})},$t=({className:e,onClick:t,...n})=>{const[r,o]=_e(!1);return De("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:[De("div",{class:"relative "+(r?"invisible":""),children:n.children}),r&&De("div",{class:"absolute animate-spin",children:De(Fe,{theme:"primary"})})]})},Yt=({className:e,allowedKeyPattern:t,onChange:n,value:r,leadingIconElement:o,trailingIconElement:i,...a})=>De(k,{children:De("div",{class:"relative",children:[o,De("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:ke((e=>{t.test(e.key)||e.preventDefault()}),[t]),onChange:e=>n(e.currentTarget.value),...a}),i]})}),Kt=({className:e,children:t})=>De("h1",{className:`text-2xl md:text-3xl font-bold ${e??""}`,children:t}),Xt=({className:e,children:t})=>De("h3",{class:`text-base md:text-lg text-gray-600 ${e??""}`,children:t});class Jt extends Error{}function Zt(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)}}Jt.prototype.name="InvalidTokenError";const Qt=crypto.randomUUID?crypto.randomUUID():crypto.getRandomValues(new Uint32Array(5)).join("-"),en=e=>(window.addEventListener(Qt,e),()=>window.removeEventListener(Qt,e)),tn=()=>{window.dispatchEvent(new Event(Qt))};function nn(e,t){return function(){return e.apply(t,arguments)}}const{toString:rn}=Object.prototype,{getPrototypeOf:on}=Object,an=(e=>t=>{const n=rn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),sn=e=>(e=e.toLowerCase(),t=>an(t)===e),ln=e=>t=>typeof t===e,{isArray:cn}=Array,un=ln("undefined");const dn=sn("ArrayBuffer");const fn=ln("string"),pn=ln("function"),mn=ln("number"),hn=e=>null!==e&&"object"==typeof e,gn=e=>{if("object"!==an(e))return!1;const t=on(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},_n=sn("Date"),yn=sn("File"),bn=sn("Blob"),wn=sn("FileList"),vn=sn("URLSearchParams"),[xn,En,kn,Sn]=["ReadableStream","Request","Response","Headers"].map(sn);function Tn(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),cn(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 Cn(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 Nn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,An=e=>!un(e)&&e!==Nn;const On=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&on(Uint8Array)),Rn=sn("HTMLFormElement"),Pn=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ln=sn("RegExp"),In=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Tn(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},Un="abcdefghijklmnopqrstuvwxyz",Dn="0123456789",Fn={DIGIT:Dn,ALPHA:Un,ALPHA_DIGIT:Un+Un.toUpperCase()+Dn};const jn=sn("AsyncFunction"),Mn=(Bn="function"==typeof setImmediate,Hn=pn(Nn.postMessage),Bn?setImmediate:Hn?(zn=`axios@${Math.random()}`,Wn=[],Nn.addEventListener("message",(({source:e,data:t})=>{e===Nn&&t===zn&&Wn.length&&Wn.shift()()}),!1),e=>{Wn.push(e),Nn.postMessage(zn,"*")}):e=>setTimeout(e));var Bn,Hn,zn,Wn;const qn="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Nn):"undefined"!=typeof process&&process.nextTick||Mn,Vn={isArray:cn,isArrayBuffer:dn,isBuffer:function(e){return null!==e&&!un(e)&&null!==e.constructor&&!un(e.constructor)&&pn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||pn(e.append)&&("formdata"===(t=an(e))||"object"===t&&pn(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&dn(e.buffer),t},isString:fn,isNumber:mn,isBoolean:e=>!0===e||!1===e,isObject:hn,isPlainObject:gn,isReadableStream:xn,isRequest:En,isResponse:kn,isHeaders:Sn,isUndefined:un,isDate:_n,isFile:yn,isBlob:bn,isRegExp:Ln,isFunction:pn,isStream:e=>hn(e)&&pn(e.pipe),isURLSearchParams:vn,isTypedArray:On,isFileList:wn,forEach:Tn,merge:function e(){const{caseless:t}=An(this)&&this||{},n={},r=(r,o)=>{const i=t&&Cn(n,o)||o;gn(n[i])&&gn(r)?n[i]=e(n[i],r):gn(r)?n[i]=e({},r):cn(r)?n[i]=r.slice():n[i]=r};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&Tn(arguments[o],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(Tn(t,((t,r)=>{n&&pn(t)?e[r]=nn(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&&on(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:an,kindOfTest:sn,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(cn(e))return e;let t=e.length;if(!mn(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:Rn,hasOwnProperty:Pn,hasOwnProp:Pn,reduceDescriptors:In,freezeMethods:e=>{In(e,((t,n)=>{if(pn(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];pn(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 cn(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:Cn,global:Nn,isContextDefined:An,ALPHABET:Fn,generateString:(e=16,t=Fn.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&pn(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(hn(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=cn(e)?[]:{};return Tn(e,((e,t)=>{const i=n(e,r+1);!un(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:jn,isThenable:e=>e&&(hn(e)||pn(e))&&pn(e.then)&&pn(e.catch),setImmediate:Mn,asap:qn};function Gn(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)}Vn.inherits(Gn,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:Vn.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const $n=Gn.prototype,Yn={};["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=>{Yn[e]={value:e}})),Object.defineProperties(Gn,Yn),Object.defineProperty($n,"isAxiosError",{value:!0}),Gn.from=(e,t,n,r,o,i)=>{const a=Object.create($n);return Vn.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Gn.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function Kn(e){return Vn.isPlainObject(e)||Vn.isArray(e)}function Xn(e){return Vn.endsWith(e,"[]")?e.slice(0,-2):e}function Jn(e,t,n){return e?e.concat(t).map((function(e,t){return e=Xn(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Zn=Vn.toFlatObject(Vn,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Qn(e,t,n){if(!Vn.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Vn.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Vn.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Vn.isSpecCompliantForm(t);if(!Vn.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Vn.isDate(e))return e.toISOString();if(!s&&Vn.isBlob(e))throw new Gn("Blob is not supported. Use a Buffer instead.");return Vn.isArrayBuffer(e)||Vn.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(Vn.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Vn.isArray(e)&&function(e){return Vn.isArray(e)&&!e.some(Kn)}(e)||(Vn.isFileList(e)||Vn.endsWith(n,"[]"))&&(s=Vn.toArray(e)))return n=Xn(n),s.forEach((function(e,r){!Vn.isUndefined(e)&&null!==e&&t.append(!0===a?Jn([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!Kn(e)||(t.append(Jn(o,n,i),l(e)),!1)}const u=[],d=Object.assign(Zn,{defaultVisitor:c,convertValue:l,isVisitable:Kn});if(!Vn.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Vn.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),Vn.forEach(n,(function(n,i){!0===(!(Vn.isUndefined(n)||null===n)&&o.call(t,n,Vn.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t}function er(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function tr(e,t){this._pairs=[],e&&Qn(e,this,t)}const nr=tr.prototype;function rr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function or(e,t,n){if(!t)return e;const r=n&&n.encode||rr,o=n&&n.serialize;let i;if(i=o?o(t,n):Vn.isURLSearchParams(t)?t.toString():new tr(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}nr.append=function(e,t){this._pairs.push([e,t])},nr.toString=function(e){const t=e?function(t){return e.call(this,t,er)}:er;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class ir{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){Vn.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const ar={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},sr={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:tr,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},lr="undefined"!=typeof window&&"undefined"!=typeof document,cr=(ur="undefined"!=typeof navigator&&navigator.product,lr&&["ReactNative","NativeScript","NS"].indexOf(ur)<0);var ur;const dr="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,fr=lr&&window.location.href||"http://localhost",pr={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:lr,hasStandardBrowserEnv:cr,hasStandardBrowserWebWorkerEnv:dr,origin:fr},Symbol.toStringTag,{value:"Module"})),...sr};function mr(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&&Vn.isArray(r)?r.length:i,s)return Vn.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&Vn.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&Vn.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(Vn.isFormData(e)&&Vn.isFunction(e.entries)){const n={};return Vn.forEachEntry(e,((e,r)=>{t(function(e){return Vn.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const hr={transitional:ar,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Vn.isObject(e);o&&Vn.isHTMLForm(e)&&(e=new FormData(e));if(Vn.isFormData(e))return r?JSON.stringify(mr(e)):e;if(Vn.isArrayBuffer(e)||Vn.isBuffer(e)||Vn.isStream(e)||Vn.isFile(e)||Vn.isBlob(e)||Vn.isReadableStream(e))return e;if(Vn.isArrayBufferView(e))return e.buffer;if(Vn.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 Qn(e,new pr.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return pr.isNode&&Vn.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=Vn.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Qn(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Vn.isString(e))try{return(t||JSON.parse)(e),Vn.trim(e)}catch(Jo){if("SyntaxError"!==Jo.name)throw Jo}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||hr.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Vn.isResponse(e)||Vn.isReadableStream(e))return e;if(e&&Vn.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(Jo){if(n){if("SyntaxError"===Jo.name)throw Gn.from(Jo,Gn.ERR_BAD_RESPONSE,this,null,this.response);throw Jo}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pr.classes.FormData,Blob:pr.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Vn.forEach(["delete","get","head","post","put","patch"],(e=>{hr.headers[e]={}}));const gr=Vn.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"]),_r=Symbol("internals");function yr(e){return e&&String(e).trim().toLowerCase()}function br(e){return!1===e||null==e?e:Vn.isArray(e)?e.map(br):String(e)}function wr(e,t,n,r,o){return Vn.isFunction(r)?r.call(this,t,n):(o&&(t=n),Vn.isString(t)?Vn.isString(r)?-1!==t.indexOf(r):Vn.isRegExp(r)?r.test(t):void 0:void 0)}class vr{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=yr(t);if(!o)throw new Error("header name must be a non-empty string");const i=Vn.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=br(e))}const i=(e,t)=>Vn.forEach(e,((e,n)=>o(e,n,t)));if(Vn.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Vn.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]&&gr[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(Vn.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=yr(e)){const n=Vn.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(Vn.isFunction(t))return t.call(this,e,n);if(Vn.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=yr(e)){const n=Vn.findKey(this,e);return!(!n||void 0===this[n]||t&&!wr(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=yr(e)){const o=Vn.findKey(n,e);!o||t&&!wr(0,n[o],o,t)||(delete n[o],r=!0)}}return Vn.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&&!wr(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Vn.forEach(this,((r,o)=>{const i=Vn.findKey(n,o);if(i)return t[i]=br(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]=br(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Vn.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Vn.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[_r]=this[_r]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=yr(e);t[r]||(!function(e,t){const n=Vn.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 Vn.isArray(e)?e.forEach(r):r(e),this}}function xr(e,t){const n=this||hr,r=t||n,o=vr.from(r.headers);let i=r.data;return Vn.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Er(e){return!(!e||!e.__CANCEL__)}function kr(e,t,n){Gn.call(this,null==e?"canceled":e,Gn.ERR_CANCELED,t,n),this.name="CanceledError"}function Sr(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Gn("Request failed with status code "+n.status,[Gn.ERR_BAD_REQUEST,Gn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}vr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Vn.reduceDescriptors(vr.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Vn.freezeMethods(vr),Vn.inherits(kr,Gn,{__CANCEL__:!0});const Tr=(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 f=c&&l-c;return f?Math.round(1e3*d/f):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)},Cr=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Nr=e=>(...t)=>Vn.asap((()=>e(...t))),Ar=pr.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=Vn.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return function(){return!0}}(),Or=pr.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Vn.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Vn.isString(r)&&a.push("path="+r),Vn.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 Rr(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 Pr=e=>e instanceof vr?{...e}:e;function Lr(e,t){t=t||{};const n={};function r(e,t,n){return Vn.isPlainObject(e)&&Vn.isPlainObject(t)?Vn.merge.call({caseless:n},e,t):Vn.isPlainObject(t)?Vn.merge({},t):Vn.isArray(t)?t.slice():t}function o(e,t,n){return Vn.isUndefined(t)?Vn.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!Vn.isUndefined(t))return r(void 0,t)}function a(e,t){return Vn.isUndefined(t)?Vn.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(Pr(e),Pr(t),!0)};return Vn.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);Vn.isUndefined(a)&&i!==s||(n[r]=a)})),n}const Ir=e=>{const t=Lr({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=vr.from(s),t.url=or(Rr(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Vn.isFormData(r))if(pr.hasStandardBrowserEnv||pr.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(pr.hasStandardBrowserEnv&&(o&&Vn.isFunction(o)&&(o=o(t)),o||!1!==o&&Ar(t.url))){const e=i&&a&&Or.read(a);e&&s.set(i,e)}return t},Ur="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Ir(e);let o=r.data;const i=vr.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=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=vr.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());Sr((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 Gn("Request aborted",Gn.ECONNABORTED,e,h)),h=null)},h.onerror=function(){n(new Gn("Network Error",Gn.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||ar;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Gn(t,o.clarifyTimeoutError?Gn.ETIMEDOUT:Gn.ECONNABORTED,e,h)),h=null},void 0===o&&i.setContentType(null),"setRequestHeader"in h&&Vn.forEach(i.toJSON(),(function(e,t){h.setRequestHeader(t,e)})),Vn.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),d&&"json"!==d&&(h.responseType=r.responseType),p&&([l,u]=Tr(p,!0),h.addEventListener("progress",l)),f&&h.upload&&([s,c]=Tr(f),h.upload.addEventListener("progress",s),h.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{h&&(n(!t||t.type?new kr(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 _=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);_&&-1===pr.protocols.indexOf(_)?n(new Gn("Unsupported protocol "+_+":",Gn.ERR_BAD_REQUEST,e)):h.send(o||null)}))},Dr=(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 Gn?t:new kr(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{o(new Gn(`timeout ${t} of ms exceeded`,Gn.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}]},Fr=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},jr=(e,t,n,r,o)=>{const i=async function*(e,t,n){for await(const r of e)yield*Fr(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})},Mr="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Br=Mr&&"function"==typeof ReadableStream,Hr=Mr&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),zr=(e,...t)=>{try{return!!e(...t)}catch(Jo){return!1}},Wr=Br&&zr((()=>{let e=!1;const t=new Request(pr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),qr=Br&&zr((()=>Vn.isReadableStream(new Response("").body))),Vr={stream:qr&&(e=>e.body)};var Gr;Mr&&(Gr=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Vr[e]&&(Vr[e]=Vn.isFunction(Gr[e])?t=>t[e]():(t,n)=>{throw new Gn(`Response type '${e}' is not supported`,Gn.ERR_NOT_SUPPORT,n)})})));const $r=async(e,t)=>{const n=Vn.toFiniteNumber(e.getContentLength());return null==n?(async e=>null==e?0:Vn.isBlob(e)?e.size:Vn.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:Vn.isArrayBufferView(e)||Vn.isArrayBuffer(e)?e.byteLength:(Vn.isURLSearchParams(e)&&(e+=""),Vn.isString(e)?(await Hr(e)).byteLength:void 0))(t):n},Yr={http:null,xhr:Ur,fetch:Mr&&(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:f}=Ir(e);c=c?(c+"").toLowerCase():"text";let p,m,[h,g]=o||i||a?Dr([o,i],a):[];const _=()=>{!p&&setTimeout((()=>{h&&h.unsubscribe()})),p=!0};let y;try{if(l&&Wr&&"get"!==n&&"head"!==n&&0!==(y=await $r(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(Vn.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=Cr(y,Tr(Nr(l)));r=jr(n.body,65536,e,t,Hr)}}Vn.isString(d)||(d=d?"include":"omit"),m=new Request(t,{...f,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:d});let o=await fetch(m);const i=qr&&("stream"===c||"response"===c);if(qr&&(s||i)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=Vn.toFiniteNumber(o.headers.get("content-length")),[n,r]=s&&Cr(t,Tr(Nr(s),!0))||[];o=new Response(jr(o.body,65536,n,(()=>{r&&r(),i&&_()}),Hr),e)}c=c||"text";let a=await Vr[Vn.findKey(Vr,c)||"text"](o,e);return!i&&_(),g&&g(),await new Promise(((t,n)=>{Sr(t,n,{data:a,headers:vr.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:m})}))}catch(b){if(_(),b&&"TypeError"===b.name&&/fetch/i.test(b.message))throw Object.assign(new Gn("Network Error",Gn.ERR_NETWORK,e,m),{cause:b.cause||b});throw Gn.from(b,b&&b.code,e,m)}})};Vn.forEach(Yr,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(Jo){}Object.defineProperty(e,"adapterName",{value:t})}}));const Kr=e=>`- ${e}`,Xr=e=>Vn.isFunction(e)||null===e||!1===e,Jr=e=>{e=Vn.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,!Xr(n)&&(r=Yr[(t=String(n)).toLowerCase()],void 0===r))throw new Gn(`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 Gn("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Kr).join("\n"):" "+Kr(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function Zr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new kr(null,e)}function Qr(e){Zr(e),e.headers=vr.from(e.headers),e.data=xr.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Jr(e.adapter||hr.adapter)(e).then((function(t){return Zr(e),t.data=xr.call(e,e.transformResponse,t),t.headers=vr.from(t.headers),t}),(function(t){return Er(t)||(Zr(e),t&&t.response&&(t.response.data=xr.call(e,e.transformResponse,t.response),t.response.headers=vr.from(t.response.headers))),Promise.reject(t)}))}const eo="1.7.4",to={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{to[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const no={};to.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 Gn(r(o," has been removed"+(t?" in "+t:"")),Gn.ERR_DEPRECATED);return t&&!no[o]&&(no[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 ro={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Gn("options must be an object",Gn.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 Gn("option "+i+" must be "+n,Gn.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Gn("Unknown option "+i,Gn.ERR_BAD_OPTION)}},validators:to},oo=ro.validators;class io{constructor(e){this.defaults=e,this.interceptors={request:new ir,response:new ir}}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(Jo){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Lr(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&ro.assertOptions(n,{silentJSONParsing:oo.transitional(oo.boolean),forcedJSONParsing:oo.transitional(oo.boolean),clarifyTimeoutError:oo.transitional(oo.boolean)},!1),null!=r&&(Vn.isFunction(r)?t.paramsSerializer={serialize:r}:ro.assertOptions(r,{encode:oo.function,serialize:oo.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Vn.merge(o.common,o[t.method]);o&&Vn.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=vr.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=[Qr.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let f=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{f=e(f)}catch(p){t.call(this,p);break}}try{c=Qr.call(this,f)}catch(p){return Promise.reject(p)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return or(Rr((e=Lr(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}Vn.forEach(["delete","get","head","options"],(function(e){io.prototype[e]=function(t,n){return this.request(Lr(n||{},{method:e,url:t,data:(n||{}).data}))}})),Vn.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Lr(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}io.prototype[e]=t(),io.prototype[e+"Form"]=t(!0)}));class ao{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 kr(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 ao((function(t){e=t})),cancel:e}}}const so={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(so).forEach((([e,t])=>{so[t]=e}));const lo=function e(t){const n=new io(t),r=nn(io.prototype.request,n);return Vn.extend(r,io.prototype,n,{allOwnKeys:!0}),Vn.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Lr(t,n))},r}(hr);lo.Axios=io,lo.CanceledError=kr,lo.CancelToken=ao,lo.isCancel=Er,lo.VERSION=eo,lo.toFormData=Qn,lo.AxiosError=Gn,lo.Cancel=lo.CanceledError,lo.all=function(e){return Promise.all(e)},lo.spread=function(e){return function(t){return e.apply(null,t)}},lo.isAxiosError=function(e){return Vn.isObject(e)&&!0===e.isAxiosError},lo.mergeConfig=Lr,lo.AxiosHeaders=vr,lo.formToJSON=e=>mr(Vn.isHTMLForm(e)?new FormData(e):e),lo.getAdapter=Jr,lo.HttpStatusCode=so,lo.default=lo;class co{constructor(){__privateAdd(this,e)}initClient(t,n){__privateSet(this,e,lo.create({baseURL:`${this.url(t)}/backend`,headers:n}))}getClient(){return __privateGet(this,e)}}e=new WeakMap;const uo={backend:new class extends co{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 fo;class po{constructor(){__privateAdd(this,t),__privateAdd(this,n),__privateAdd(this,r),__privateAdd(this,o,(async e=>(fo||(fo=await uo.backend.getIdToken()),e.headers.Authorization=`Bearer ${fo}`,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,lo.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 fo||(fo=await uo.backend.getIdToken()),fo}getBaseUrl(){return __privateGet(this,n)}getProfileId(){return __privateGet(this,r)}}t=new WeakMap,n=new WeakMap,r=new WeakMap,o=new WeakMap;const mo=e=>{var t,n;throw"Auth_SessionExpired"===(null==(n=null==(t=e.response)?void 0:t.data)?void 0:n.code)&&tn(),e};let ho=(a=class extends po{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 go={backend:new class extends co{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),mo),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 ho};const _o={workplaceBackend:new class extends po{url(e){return`${e}/benefits-plan`}}},yo=(e,t,n)=>{const r=function(e,t){if("string"!=typeof e)throw new Jt("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 Jt(`Invalid token specified: missing part #${n+1}`);let o;try{o=Zt(r)}catch(Jo){throw new Jt(`Invalid token specified: invalid base64 for part #${n+1} (${Jo.message})`)}try{return JSON.parse(o)}catch(Jo){throw new Jt(`Invalid token specified: invalid json for part #${n+1} (${Jo.message})`)}}(t).sub,o={backend:{Authorization:`Bearer ${t}`},workplaceBackend:{}};go.backend.initClient(e,o.backend,n),go.workplaceBackend.initClient(e,r,o.workplaceBackend),uo.backend.initClient(e,o.backend),_o.workplaceBackend.initClient(e,r,o.workplaceBackend)},bo=e=>{switch(!0){case"started"===e:return go.backend.command({eventType:"Started"});case"membership-accepted"===e:return go.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!0,featureName:"",treatmentName:"",template:"Eoi"}});case"membership-declined"===e:return go.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!1,featureName:"",treatmentName:"",template:"Eoi"}});case"sign-up-viewed"===e:return go.backend.command({eventType:"OfferViewed",offerName:"Membership",data:{featureName:"",treatmentName:""}});case"sign-up-completed"===e:return(async()=>{await go.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!0,featureName:"",treatmentName:"",template:"Eoi"}}),await go.backend.command({eventType:"CustomerRegistrationCompleted",isRegistered:!0})})();case"sign-up-declined"===e:return(async()=>{await go.backend.command({eventType:"CustomerRegistrationCompleted",isRegistered:!1}),await go.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!1,featureName:"",treatmentName:"",template:"Eoi"}})})();case"object"==typeof e&&"offer-viewed"===e.type:return go.backend.command({...e,eventType:"OfferViewed"});case"object"==typeof e&&"offer-accepted"===e.type:return go.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:{...e.data,accepted:!0}});case"object"==typeof e&&"offer-declined"===e.type:return go.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:{...e.data,accepted:!1}});case"object"==typeof e&&"offer-progressed"===e.type:return go.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:e.data});case"object"==typeof e&&"summary-viewed"===e.type:return go.backend.command({eventType:"SummaryViewed",summaryVariant:e.data.summaryVariant});case"completed"===e:return go.backend.command({eventType:"Completed"})}return Promise.resolve()},wo=()=>({trace:bo});var vo=Object.defineProperty,xo=(e,t,n)=>(((e,t,n)=>{t in e?vo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let Eo=new class{constructor(){xo(this,"current",this.detect()),xo(this,"handoffState","pending"),xo(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}},ko=(e,t)=>{Eo.isServer?be(e,t):we(e,t)};function So(e){let t=ve(e);return ko((()=>{t.current=e}),[e]),t}let To=function(e){let t=So(e);return Wt.useCallback(((...e)=>t.current(...e)),[t])};function Co(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function No(){let e=[],t={addEventListener:(e,n,r,o)=>(e.addEventListener(n,r,o),t.add((()=>e.removeEventListener(n,r,o)))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add((()=>cancelAnimationFrame(n)))},nextFrame:(...e)=>t.requestAnimationFrame((()=>t.requestAnimationFrame(...e))),setTimeout(...e){let n=setTimeout(...e);return t.add((()=>clearTimeout(n)))},microTask(...e){let n={current:!0};return Co((()=>{n.current&&e[0]()})),t.add((()=>{n.current=!1}))},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add((()=>{Object.assign(e.style,{[t]:r})}))},group(e){let t=No();return e(t),this.add((()=>t.dispose()))},add:t=>(e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function Ao(){let[e]=_e(No);return be((()=>()=>e.dispose()),[e]),e}function Oo(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in qt&&qt.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=_e(Eo.isHandoffComplete);return t&&!1===Eo.isHandoffComplete&&n(!1),be((()=>{!0!==t&&n(!0)}),[t]),be((()=>Eo.handoff()),[]),!e&&t}var Ro;let Po=null!=(Ro=Wt.useId)?Ro:function(){let e=Oo(),[t,n]=Wt.useState(e?()=>Eo.nextId():null);return ko((()=>{null===t&&n(Eo.nextId())}),[t]),null!=t?""+t:void 0};function Lo(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,Lo),r}let Io=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var Uo,Do,Fo,jo=((Fo=jo||{})[Fo.First=1]="First",Fo[Fo.Previous=2]="Previous",Fo[Fo.Next=4]="Next",Fo[Fo.Last=8]="Last",Fo[Fo.WrapAround=16]="WrapAround",Fo[Fo.NoScroll=32]="NoScroll",Fo),Mo=((Do=Mo||{})[Do.Error=0]="Error",Do[Do.Overflow=1]="Overflow",Do[Do.Success=2]="Success",Do[Do.Underflow=3]="Underflow",Do),Bo=((Uo=Bo||{})[Uo.Previous=-1]="Previous",Uo[Uo.Next=1]="Next",Uo);var Ho=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Ho||{}),zo=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(zo||{});"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 Wo=["textarea","input"].join(",");function qo(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 Vo(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?qo(e):e:function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(Io)).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,f=a.length;do{if(d>=f||d+f<=0)return 0;let e=c+d;if(16&t)e=(e+f)%f;else{if(e<0)return 3;if(e>=f)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,Wo))&&n}(s)&&s.select(),2}function Go(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 $o(e,t){let[n,r]=_e((()=>Go(e)));return ko((()=>{r(Go(e))}),[e.type,e.as]),ko((()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")}),[n,t]),n}let Yo=Symbol();function Ko(...e){let t=ve(e);be((()=>{t.current=e}),[e]);let n=To((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[Yo])))?void 0:n}function Xo(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}var Jo,Zo=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Zo||{}),Qo=((Jo=Qo||{})[Jo.Unmount=0]="Unmount",Jo[Jo.Hidden=1]="Hidden",Jo);function ei({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a,mergeRefs:s}){s=null!=s?s:ni;let l=ri(t,e);if(i)return ti(l,n,r,a,s);let c=null!=o?o:0;if(2&c){let{static:e=!1,...t}=l;if(e)return ti(t,n,r,a,s)}if(1&c){let{unmount:e=!0,...t}=l;return Lo(e?0:1,{0:()=>null,1:()=>ti({...t,hidden:!0,style:{display:"none"}},n,r,a,s)})}return ti(l,n,r,a,s)}function ti(e,t={},n,r,o){let{as:i=n,children:a,refName:s="ref",...l}=ai(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(ii(l)).length>0){if(!Nt(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));let e=u.props,t="function"==typeof(null==e?void 0:e.className)?(...t)=>Xo(null==e?void 0:e.className(...t),l.className):Xo(null==e?void 0:e.className,l.className),n=t?{className:t}:{};return Ot(u,Object.assign({},ri(u.props,ii(ai(l,["ref"]))),d,c,{ref:o(u.ref,c.ref)},n))}return v(i,Object.assign({},ai(l,["ref"]),i!==k&&c,i!==k&&d),u)}function ni(...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 ri(...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 oi(e){var t;return Object.assign(Ye(e),{displayName:null!=(t=e.displayName)?t:e.name})}function ii(e){let t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}function ai(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}var si=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(si||{});let li=oi((function(e,t){var n;let{features:r=1,...o}=e;return ei({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"})})),ci=$(null);ci.displayName="OpenClosedContext";var ui=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(ui||{});function di(){return Se(ci)}function fi({value:e,children:t}){return Wt.createElement(ci.Provider,{value:e},t)}var pi,mi=((pi=mi||{}).Space=" ",pi.Enter="Enter",pi.Escape="Escape",pi.Backspace="Backspace",pi.Delete="Delete",pi.ArrowLeft="ArrowLeft",pi.ArrowUp="ArrowUp",pi.ArrowRight="ArrowRight",pi.ArrowDown="ArrowDown",pi.Home="Home",pi.End="End",pi.PageUp="PageUp",pi.PageDown="PageDown",pi.Tab="Tab",pi);function hi(){let e=ve(!1);return ko((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function gi({onFocus:e}){let[t,n]=_e(!0),r=hi();return t?Wt.createElement(li,{as:"button",type:"button",features:si.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 _i=$(null);function yi({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(_i.Provider,{value:t},e)}function bi(e){let t=Se(_i);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=Tt)?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 wi=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(wi||{}),vi=(e=>(e[e.Less=-1]="Less",e[e.Equal=0]="Equal",e[e.Greater=1]="Greater",e))(vi||{}),xi=(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))(xi||{});let Ei={0(e,t){var n;let r=qo(e.tabs,(e=>e.current)),o=qo(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=Lo(Math.sign(t.index-e.selectedIndex),{[-1]:()=>1,0:()=>Lo(Math.sign(t.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});if(0===i.length)return a;let o=Lo(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=qo([...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:qo([...e.panels,t.panel],(e=>e.current))},4:(e,t)=>({...e,panels:e.panels.filter((e=>e!==t.panel))})},ki=$(null);function Si(e){let t=Se(ki);if(null===t){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Si),t}return t}ki.displayName="TabsDataContext";let Ti=$(null);function Ci(e){let t=Se(Ti);if(null===t){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Ci),t}return t}function Ni(e,t){return Lo(t.type,Ei,e,t)}Ti.displayName="TabsActionsContext";let Ai=k;let Oi=Zo.RenderStrategy|Zo.Static;let Ri=oi((function(e,t){var n,r;let o=Po(),{id:i=`headlessui-tabs-tab-${o}`,...a}=e,{orientation:s,activation:l,selectedIndex:c,tabs:u,panels:d}=Si("Tab"),f=Ci("Tab"),p=Si("Tab"),m=ve(null),h=Ko(m,t);ko((()=>f.registerTab(m)),[f,m]);let g=bi("tabs"),_=u.indexOf(m);-1===_&&(_=g);let y=_===c,b=To((e=>{var t;let n=e();if(n===Mo.Success&&"auto"===l){let e=null==(t=function(e){return Eo.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=p.tabs.findIndex((t=>t.current===e));-1!==n&&f.change(n)}return n})),w=To((e=>{let t=u.map((e=>e.current)).filter(Boolean);if(e.key===mi.Space||e.key===mi.Enter)return e.preventDefault(),e.stopPropagation(),void f.change(_);switch(e.key){case mi.Home:case mi.PageUp:return e.preventDefault(),e.stopPropagation(),b((()=>Vo(t,jo.First)));case mi.End:case mi.PageDown:return e.preventDefault(),e.stopPropagation(),b((()=>Vo(t,jo.Last)))}return b((()=>Lo(s,{vertical:()=>e.key===mi.ArrowUp?Vo(t,jo.Previous|jo.WrapAround):e.key===mi.ArrowDown?Vo(t,jo.Next|jo.WrapAround):Mo.Error,horizontal:()=>e.key===mi.ArrowLeft?Vo(t,jo.Previous|jo.WrapAround):e.key===mi.ArrowRight?Vo(t,jo.Next|jo.WrapAround):Mo.Error})))===Mo.Success?e.preventDefault():void 0})),v=ve(!1),x=To((()=>{var e;v.current||(v.current=!0,null==(e=m.current)||e.focus({preventScroll:!0}),f.change(_),Co((()=>{v.current=!1})))})),E=To((e=>{e.preventDefault()})),k=Ee((()=>({selected:y})),[y]);return ei({ourProps:{ref:h,onKeyDown:w,onMouseDown:E,onClick:x,id:i,role:"tab",type:$o(e,m),"aria-controls":null==(r=null==(n=d[_])?void 0:n.current)?void 0:r.id,"aria-selected":y,tabIndex:y?0:-1},theirProps:a,slot:k,defaultTag:"button",name:"Tabs.Tab"})})),Pi=oi((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=Ko(t),[f,p]=ye(Ni,{selectedIndex:null!=a?a:n,tabs:[],panels:[]}),m=Ee((()=>({selectedIndex:f.selectedIndex})),[f.selectedIndex]),h=So(i||(()=>{})),g=So(f.tabs),_=Ee((()=>({orientation:l,activation:c,...f})),[l,c,f]),y=To((e=>(p({type:1,tab:e}),()=>p({type:2,tab:e})))),b=To((e=>(p({type:3,panel:e}),()=>p({type:4,panel:e})))),w=To((e=>{v.current!==e&&h.current(e),u||p({type:0,index:e})})),v=So(u?e.selectedIndex:f.selectedIndex),x=Ee((()=>({registerTab:y,registerPanel:b,change:w})),[]);ko((()=>{p({type:0,index:null!=a?a:n})}),[a]),ko((()=>{if(void 0===v.current||f.tabs.length<=0)return;let e=qo(f.tabs,(e=>e.current));e.some(((e,t)=>f.tabs[t]!==e))&&w(e.indexOf(f.tabs[v.current]))}));let E={ref:d};return Wt.createElement(yi,null,Wt.createElement(Ti.Provider,{value:x},Wt.createElement(ki.Provider,{value:_},_.tabs.length<=0&&Wt.createElement(gi,{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}}),ei({ourProps:E,theirProps:s,slot:m,defaultTag:Ai,name:"Tabs"}))))})),Li=oi((function(e,t){let{orientation:n,selectedIndex:r}=Si("Tab.List");return ei({ourProps:{ref:Ko(t),role:"tablist","aria-orientation":n},theirProps:e,slot:{selectedIndex:r},defaultTag:"div",name:"Tabs.List"})})),Ii=oi((function(e,t){let{selectedIndex:n}=Si("Tab.Panels");return ei({ourProps:{ref:Ko(t)},theirProps:e,slot:Ee((()=>({selectedIndex:n})),[n]),defaultTag:"div",name:"Tabs.Panels"})})),Ui=oi((function(e,t){var n,r,o,i;let a=Po(),{id:s=`headlessui-tabs-panel-${a}`,tabIndex:l=0,...c}=e,{selectedIndex:u,tabs:d,panels:f}=Si("Tab.Panel"),p=Ci("Tab.Panel"),m=ve(null),h=Ko(m,t);ko((()=>p.registerPanel(m)),[p,m]);let g=bi("panels"),_=f.indexOf(m);-1===_&&(_=g);let y=_===u,b=Ee((()=>({selected:y})),[y]),w={ref:h,id:s,role:"tabpanel","aria-labelledby":null==(r=null==(n=d[_])?void 0:n.current)?void 0:r.id,tabIndex:y?l:-1};return y||null!=(o=c.unmount)&&!o||null!=(i=c.static)&&i?ei({ourProps:w,theirProps:c,slot:b,defaultTag:"div",features:Oi,visible:y,name:"Tabs.Panel"}):Wt.createElement(li,{as:"span","aria-hidden":"true",...w})})),Di=Object.assign(Ri,{Group:Pi,List:Li,Panels:Ii,Panel:Ui});function Fi(e,...t){e&&t.length>0&&e.classList.add(...t)}function ji(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Mi(e,t,n,r){let o=n?"enter":"leave",i=No(),a=void 0!==r?function(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}(r):()=>{};"enter"===o&&(e.removeAttribute("hidden"),e.style.display="");let s=Lo(o,{enter:()=>t.enter,leave:()=>t.leave}),l=Lo(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=Lo(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return ji(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Fi(e,...t.base,...s,...c),i.nextFrame((()=>{ji(e,...t.base,...s,...c),Fi(e,...t.base,...s,...l),function(e,t){let n=No();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,a]=[r,o].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t})),s=i+a;if(0!==s){n.group((n=>{n.setTimeout((()=>{t(),n.dispose()}),s),n.addEventListener(e,"transitionrun",(e=>{e.target===e.currentTarget&&n.dispose()}))}));let r=n.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(t(),r())}))}else t();n.add((()=>t())),n.dispose}(e,(()=>(ji(e,...t.base,...s),Fi(e,...t.base,...t.entered),a())))})),i.dispose}function Bi(e=""){return e.split(/\s+/).filter((e=>e.length>1))}let Hi=$(null);Hi.displayName="TransitionContext";var zi=(e=>(e.Visible="visible",e.Hidden="hidden",e))(zi||{});let Wi=$(null);function qi(e){return"children"in e?qi(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function Vi(e,t){let n=So(e),r=ve([]),o=hi(),i=Ao(),a=To(((e,t=Qo.Hidden)=>{let a=r.current.findIndex((({el:t})=>t===e));-1!==a&&(Lo(t,{[Qo.Unmount](){r.current.splice(a,1)},[Qo.Hidden](){r.current[a].state="hidden"}}),i.microTask((()=>{var e;!qi(r)&&o.current&&(null==(e=n.current)||e.call(n))})))})),s=To((e=>{let t=r.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>a(e,Qo.Unmount)})),l=ve([]),c=ve(Promise.resolve()),u=ve({enter:[],leave:[],idle:[]}),d=To(((e,n,r)=>{l.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter((([t])=>t!==e))),null==t||t.chains.current[n].push([e,new Promise((e=>{l.current.push(e)}))]),null==t||t.chains.current[n].push([e,new Promise((e=>{Promise.all(u.current[n].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===n?c.current=c.current.then((()=>null==t?void 0:t.wait.current)).then((()=>r(n))):r(n)})),f=To(((e,t,n)=>{Promise.all(u.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=l.current.shift())||e()})).then((()=>n(t)))}));return Ee((()=>({children:r,register:s,unregister:a,onStart:d,onStop:f,wait:c,chains:u})),[s,a,r,d,f,u,c])}function Gi(){}Wi.displayName="NestingContext";let $i=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Yi(e){var t;let n={};for(let r of $i)n[r]=null!=(t=e[r])?t:Gi;return n}let Ki=Zo.RenderStrategy;let Xi=oi((function(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,a=ve(null),s=Ko(a,t);Oo();let l=di();if(void 0===n&&null!==l&&(n=(l&ui.Open)===ui.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,u]=_e(n?"visible":"hidden"),d=Vi((()=>{u("hidden")})),[f,p]=_e(!0),m=ve([n]);ko((()=>{!1!==f&&m.current[m.current.length-1]!==n&&(m.current.push(n),p(!1))}),[m,n]);let h=Ee((()=>({show:n,appear:r,initial:f})),[n,r,f]);be((()=>{if(n)u("visible");else if(qi(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},_=To((()=>{var t;f&&p(!1),null==(t=e.beforeEnter)||t.call(e)})),y=To((()=>{var t;f&&p(!1),null==(t=e.beforeLeave)||t.call(e)}));return Wt.createElement(Wi.Provider,{value:d},Wt.createElement(Hi.Provider,{value:h},ei({ourProps:{...g,as:k,children:Wt.createElement(Ji,{ref:s,...g,...i,beforeEnter:_,beforeLeave:y})},theirProps:{},defaultTag:k,features:Ki,visible:"visible"===c,name:"Transition"})))})),Ji=oi((function(e,t){var n,r;let{beforeEnter:o,afterEnter:i,beforeLeave:a,afterLeave:s,enter:l,enterFrom:c,enterTo:u,entered:d,leave:f,leaveFrom:p,leaveTo:m,...h}=e,g=ve(null),_=Ko(g,t),y=null==(n=h.unmount)||n?Qo.Unmount:Qo.Hidden,{show:b,appear:w,initial:v}=function(){let e=Se(Hi);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[x,E]=_e(b?"visible":"hidden"),k=function(){let e=Se(Wi);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}=k;be((()=>S(g)),[S,g]),be((()=>{if(y===Qo.Hidden&&g.current)return b&&"visible"!==x?void E("visible"):Lo(x,{hidden:()=>T(g),visible:()=>S(g)})}),[x,g,S,T,b,y]);let C=So({base:Bi(h.className),enter:Bi(l),enterFrom:Bi(c),enterTo:Bi(u),entered:Bi(d),leave:Bi(f),leaveFrom:Bi(p),leaveTo:Bi(m)}),N=function(e){let t=ve(Yi(e));return be((()=>{t.current=Yi(e)}),[e]),t}({beforeEnter:o,afterEnter:i,beforeLeave:a,afterLeave:s}),A=Oo();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]=_e(e),r=hi(),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=To((e=>Lo(e,{enter:()=>{L.addFlag(ui.Opening),N.current.beforeEnter()},leave:()=>{L.addFlag(ui.Closing),N.current.beforeLeave()},idle:()=>{}}))),U=To((e=>Lo(e,{enter:()=>{L.removeFlag(ui.Opening),N.current.afterEnter()},leave:()=>{L.removeFlag(ui.Closing),N.current.afterLeave()},idle:()=>{}}))),D=Vi((()=>{E("hidden"),T(g)}),k),F=ve(!1);!function({immediate:e,container:t,direction:n,classes:r,onStart:o,onStop:i}){let a=hi(),s=Ao(),l=So(n);ko((()=>{e&&(l.current="enter")}),[e]),ko((()=>{let e=No();s.add(e.dispose);let n=t.current;if(n&&"idle"!==l.current&&a.current)return e.dispose(),o.current(l.current),e.add(Mi(n,r.current,"enter"===l.current,(()=>{e.dispose(),i.current(l.current)}))),e.dispose}),[n])}({immediate:R,container:g,classes:C,direction:P,onStart:So((e=>{F.current=!0,D.onStart(g,e,I)})),onStop:So((e=>{F.current=!1,D.onStop(g,e,U),"leave"===e&&!qi(D)&&(E("hidden"),T(g))}))});let j=h,M={ref:_};return R?j={...j,className:Xo(h.className,...C.current.enter,...C.current.enterFrom)}:F.current&&(j.className=Xo(h.className,null==(r=g.current)?void 0:r.className),""===j.className&&delete j.className),Wt.createElement(Wi.Provider,{value:D},Wt.createElement(fi,{value:Lo(x,{visible:ui.Open,hidden:ui.Closed})|L.flags},ei({ourProps:M,theirProps:j,defaultTag:"div",features:Ki,visible:"visible"===x,name:"Transition.Child"})))})),Zi=oi((function(e,t){let n=null!==Se(Hi),r=null!==di();return Wt.createElement(Wt.Fragment,null,!n&&r?Wt.createElement(Xi,{ref:t,...e}):Wt.createElement(Ji,{ref:t,...e}))})),Qi=Object.assign(Xi,{Child:Zi,Root:Xi});const ea=({children:e})=>{const t=Wt.Children.toArray(e),n=t.find((e=>e.type===ta)),r=t.find((e=>e.type===na));return De(Qi,{appear:!0,show:!0,enter:"transition duration-700 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:De("div",{class:"mt-20 md:mt-0 flex flex-col text-center items-center max-w-[40rem] mx-auto",children:[De(Qi,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:n&&De("div",{class:"flex items-center h-full",children:n})}),De(Qi,{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&&De("div",{class:"flex items-center h-full",children:r})})]})})},ta=({children:e})=>De(k,{children:e}),na=({children:e})=>De(k,{children:e});ea.Top=ta,ea.Bottom=na;const ra=e=>e.replace(/ /g,""),oa=e=>{const t=ra(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)},ia=({phoneNumber:e,onSubmit:t,onDecline:n})=>{const{trace:r}=wo(),[o,i]=_e(""),{setPhoneNumber:a,phoneNumber:s}=(e=>{const{identity:t}=Se(Me),[n,r]=_e((()=>e&&oa(e)?e:"")),o=Ee((()=>oa(n)),[n]),i=Ee((()=>ra(n)),[n]),a=Ee((()=>i.startsWith("04")?`+61${i.replace(/^0+/,"")}`:i.startsWith("614")?`+${i}`:i),[i]),s=Ee((()=>(e=>{let t=0;return"#### ### ### ### ### ### ###".replace(/#/g,(()=>e[t++]??"")).trim()})(i)),[i]),l=Ee((()=>oa(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]=_e(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]),f=ke((async()=>{s.valid&&await t(s).then((async()=>await r("sign-up-completed"))).catch(i)}),[s,t,r]),p=ke((()=>r("sign-up-declined").then(n)),[n,r]),m=ke((async()=>{c(!1)}),[]),h=De("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 ",De(Vt,{})]});return De(ea,{children:[De(ea.Top,{children:De("div",{className:"flex flex-col gap-5",children:[De(Kt,{children:"Join your workplace benefits program"}),De(Xt,{children:[s.isVerified?"Confirm ":"Enter "," your ",De("b",{children:"personal"})," mobile number to finish setting up your Flare Benefits account linked to your workplace"]})]})}),De(ea.Bottom,{children:De("div",{className:"mt-5 md:w-[300px] text-left",children:[De(He,{className:"font-medium text-sm text-gray-900 text-left",children:"Australian Mobile Number"}),De(Yt,{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&&De("div",{className:"h-8 leading-none",children:De("span",{className:"text-xs text-rose-500",children:o})}),l&&De("div",{className:"mt-2 ml-2 mb-2 leading-none",children:De("span",{className:"text-xs",children:["Not your personal number?",De($t,{class:"text-blue-500",onClick:m,children:"Change number"})]})}),De("div",{children:De("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"," ",De("a",{href:"https://www.flarehr.com/flare-app-terms-and-conditions/",target:"_blank",rel:"noreferrer",children:" Terms of Use "}),"and",De("a",{href:"https://www.flarehr.com/privacy-policy/",target:"_blank",rel:"noreferrer",children:" Privacy Policy"}),"."," "]})}),De(Gt,{class:"mt-5 md:w-full",onClickPromise:f,children:"Join your workplace"}),De(Gt,{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:p,children:"Not now"})]})})]})},aa=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"})),sa=({onContinue:e})=>De(ea,{children:[De(ea.Top,{children:De("div",{className:"h-16 w-16 flex items-center justify-center rounded-full bg-blue-50 text-primary-base",children:De(aa,{className:"h-7 w-7"})})}),De(ea.Bottom,{children:De("div",{className:"mt-5 flex flex-col items-center gap-5 text-center",children:[De(Kt,{children:"You’ve joined your workplace benefits program"}),De(Xt,{children:"With your new Flare Benefits account, you now have access to a range of exclusive benefits available through your workplace."}),De(Gt,{class:"mt-5 w-full md:w-[240px]",onClickPromise:async()=>{e()},children:"Set up your benefits"})]})})]}),la=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"})),ca=({children:e,...t})=>De("dialog",{className:"z-50 w-full h-full absolute top-0 left-0 bottom-0 right-0",...t,children:e}),ua=({open:e})=>De(ca,{open:e,children:De("div",{className:"flex flex-col gap-5 items-center justify-center text-center mt-20",children:[De("span",{class:"animate-spin",children:De(Fe,{size:"lg"})}),De(Kt,{children:"Creating your account"}),De("div",{children:[De(Xt,{children:"This can take up to 30 seconds."}),De(Xt,{children:"Please don't navigate away or refresh your browser."})]})]})}),da=({phoneNumber:e,onVerify:t,onResendOtp:n,onGoBack:r})=>{const{otp:o,setOtp:i}=(()=>{const[e,t]=_e("");return{otp:{valid:Ee((()=>6===e.length),[e.length]),code:e},setOtp:t}})(),[a,s]=_e(!1),[l,c]=_e(""),{countdown:u,restart:d}=(e=>{const[t,n]=_e(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 f=ke((()=>(s(!0),c(""),t(o.code).catch(c).finally((()=>{s(!1)})))),[t,o.code]),p=ke((()=>(c(""),n().then(d).catch(c))),[n,d]);return De(k,{children:[De(ua,{open:a}),De(ea,{children:[De(ea.Top,{children:De("div",{className:"flex flex-col gap-5",children:[De(Kt,{children:"Verify your mobile number"}),De(Xt,{children:["An SMS verification code has been sent to the number ",e,"."]})]})}),De(ea.Bottom,{children:De("div",{className:"mt-5 md:w-[300px] text-left",children:[De(He,{className:"font-medium text-sm text-gray-900 text-left",children:"Enter your verification code"}),De(Yt,{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&&De("span",{className:"text-xs text-rose-500",children:l}),De("p",{class:"mt-2 text-center text-xs text-gray-600 disabled:opacity-75 ",children:["Didn't get the code?",De($t,{disabled:0!==u,className:"underline mx-2 disabled:text-gray-600 disabled:hover:bg-transparent disabled:cursor-text disabled:px-0",onClick:p,children:"Resend SMS"}),0!==u&&De(k,{children:["in ",u," secs"]})]}),De(Gt,{class:"mt-5 md:w-full",disabled:!o.valid,onClickPromise:f,children:"Continue"}),De(Gt,{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:De("span",{className:"flex gap-3",children:[De(la,{}),"Back"]})})]})})]})]})},fa=({phoneNumber:e,onSignUp:t,onVerify:n,onResendOtp:r,onSuccess:o,onDecline:i})=>{const[a,s]=_e(e??""),{step:l,goBack:c,goToStep:u}=(()=>{const[e,t]=_e(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?Be.OTP:Be.SUCCESS)}))),[u,t]),f=ke((e=>n(e).then((()=>{u(Be.SUCCESS)}))),[u,n]);return De(k,{children:[l===Be.PHONE_NUMBER&&De(ia,{phoneNumber:a,onSubmit:d,onDecline:i}),l===Be.OTP&&De(da,{phoneNumber:a,onVerify:f,onResendOtp:r,onGoBack:c}),l===Be.SUCCESS&&De(sa,{onContinue:o})]})},pa="Onboarding",ma="onboarding";var ha=(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))(ha||{});const ga=e=>{var t;const n=null==(t=null==e?void 0:e.response)?void 0:t.data;throw ha[null==n?void 0:n.code]??"Sorry, we are currently experiencing some issues. Please try again later."},_a=({onSuccess:e,onDecline:t})=>{const{identity:{phoneNumber:n}}=Se(Me),{signUp:r,verifyOtp:o,resendOtp:i}={signUp:async e=>go.backend.getClient().post("v2.0/auth/signUp",{mobileNumber:e,source:pa,channel:ma}).then((e=>({isVerificationRequired:e.data.isVerificationRequired??!0}))),verifyOtp:async e=>{await go.backend.getClient().post("auth/verify",{otp:e,source:pa,channel:ma}).catch(ga)},resendOtp:async()=>{await go.backend.getClient().post("auth/resend").catch(ga)}};return De(k,{children:De(fa,{phoneNumber:n,onSignUp:r,onVerify:o,onResendOtp:i,onSuccess:e,onDecline:t})})},ya=""+("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),ba=e=>{const{featureFlags:t}=Se(Me),[n,r]=_e(!0),{trace:o}=wo();return be((()=>{t.unifiedCustomerRegistration||(async()=>{await o("sign-up-viewed")})()}),[]),De(ea,{children:[De(ea.Top,{children:De("img",{class:"max-w-[30rem] w-full",src:ya})}),De(ea.Bottom,{children:De("div",{children:[De("h3",{class:"mt-8 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:"Finish setting up your workplace benefits"}),De("p",{class:"mt-3 text-lg leading-7 text-gray-600",children:"Because your workplace uses Flare you have access to a range of exclusive benefits that can save you thousands of dollars every year on your car, private health insurance, weekly grocery shop and more."}),!t.unifiedCustomerRegistration&&De("div",{class:"flex items-center text-left mt-6",children:[De("input",{class:"accent-primary-base h-4 w-4",type:"checkbox",name:"membership",checked:n,onChange:e=>{var t;return r(null==(t=e.target)?void 0:t.checked)}}),De("label",{class:"font-medium text-sm text-gray-900 ml-3",for:"membership",children:De("span",{children:["I would like to be contacted about the latest benefits from Flare and agree to the"," ",De("a",{href:"https://www.flarehr.com/privacy-policy/",target:"_blank",rel:"noreferrer",children:"privacy policy"}),"."]})})]}),De(Gt,{class:"mt-8",onClickPromise:async()=>{await o("started"),t.unifiedCustomerRegistration||await o(n?"membership-accepted":"membership-declined"),e.onStepComplete()},children:"Continue"})]})})]})},wa=({value:e,className:t,...n})=>De("div",{className:t??"",...n,children:De("div",{className:"w-full bg-gray-300 rounded-full h-1",children:De("div",{className:"relative bg-primary-base h-full rounded-full",style:`width: ${100*e}%`,children:De("span",{className:`absolute bg-primary-base h-3 w-3 ${e>0?"right-0":""} rounded-full -inset-y-1`})})})});function va(){return va=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},va.apply(null,arguments)}function xa(e,t){return(xa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ea(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
|
+
/*!
|
|
3
|
+
* content-type
|
|
4
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
5
|
+
* MIT Licensed
|
|
6
|
+
*/
|
|
7
|
+
var ka=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,Sa=/\\([\u000b\u0020-\u00ff])/g,Ta=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,Ca=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(!Ta.test(r))throw new TypeError("invalid media type");var o=new Na(r.toLowerCase());if(-1!==n){var i,a,s;for(ka.lastIndex=n;a=ka.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(Sa,"$1")),o.parameters[i]=s}if(n!==t.length)throw new TypeError("invalid parameter format")}return o};function Na(e){this.parameters=Object.create(null),this.type=e}var Aa=new Map,Oa=function(e){return e.cloneNode(!0)},Ra=function(){return"file:"===window.location.protocol},Pa=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=Ca(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(Ra()?"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||Ra()&&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()},La={},Ia=function(e,t){La[e]=La[e]||[],La[e].push(t)},Ua=function(e,t,n){if(Aa.has(e)){var r=Aa.get(e);if(void 0===r)return void Ia(e,n);if(r instanceof SVGSVGElement)return void n(null,Oa(r))}Aa.set(e,void 0),Ia(e,n),Pa(e,t,(function(t,n){var r;t?Aa.set(e,t):(null===(r=n.responseXML)||void 0===r?void 0:r.documentElement)instanceof SVGSVGElement&&Aa.set(e,n.responseXML.documentElement),function(e){for(var t=function(t,n){setTimeout((function(){if(Array.isArray(La[e])){var n=Aa.get(e),r=La[e][t];n instanceof SVGSVGElement&&r(null,Oa(n)),n instanceof Error&&r(n),t===La[e].length-1&&delete La[e]}}),0)},n=0,r=La[e].length;n<r;n++)t(n)}(e)}))},Da=function(e,t,n){Pa(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)}))},Fa=0,ja=[],Ma={},Ba="http://www.w3.org/1999/xlink",Ha=function(e,t,n,r,o,i,a){var s=e.getAttribute("data-src")||e.getAttribute("src");if(s){if(-1!==ja.indexOf(e))return ja.splice(ja.indexOf(e),1),void(e=null);ja.push(e),e.setAttribute("src",""),(r?Ua:Da)(s,o,(function(r,o){if(!o)return ja.splice(ja.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 f=Array.from(new Set(Ea(Ea(Ea([],(o.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(e.getAttribute("class")||"").split(" "),!0))).join(" ").trim();o.setAttribute("class",f);var p=e.getAttribute("style");p&&o.setAttribute("style",p),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,_=w[e];for(var t=function(e,t){var n;y=g[e].id,b=y+"-"+ ++Fa,Array.prototype.forEach.call(_,(function(e){for(var t=0,r=(n=o.querySelectorAll("["+e+'*="'+y+'"]')).length;t<r;t++){var i=n[t].getAttribute(e);i&&!i.match(new RegExp('url\\("?#'+y+'"?\\)'))||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(Ba,"href");l&&l.toString()==="#"+g[e].id&&i.push(r[a])}for(var c=0,u=i.length;c<u;c++)i[c].setAttributeNS(Ba,"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,E=o.querySelectorAll("script"),k=[],S=0,T=E.length;S<T;S++)(x=E[S].getAttribute("type"))&&"application/ecmascript"!==x&&"application/javascript"!==x&&"text/javascript"!==x||((v=E[S].innerText||E[S].textContent)&&k.push(v),o.removeChild(E[S]));if(k.length>0&&("always"===t||"once"===t&&!Ma[s])){for(var C=0,N=k.length;C<N;C++)new Function(k[C])(window);Ma[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",Ba),i(o),!e.parentNode)return ja.splice(ja.indexOf(e),1),e=null,void a(new Error("Parent node is null"));e.parentNode.replaceChild(o,e),ja.splice(ja.indexOf(e),1),e=null,a(null,o)}))}else a(new Error("Invalid data-src or src attribute"))},za={exports:{}};function Wa(){}function qa(){}qa.resetWarningCache=Wa;za.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:qa,resetWarningCache:Wa};return n.PropTypes=n,n}();var Va=za.exports,Ga=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],$a="http://www.w3.org/2000/svg",Ya="http://www.w3.org/1999/xlink",Ka=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,xa(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,f=this.props.onError,p=this.props.beforeInjection,m=this.props.afterInjection,h=this.props.wrapper;"svg"===h?((n=document.createElementNS($a,h)).setAttribute("xmlns",$a),n.setAttribute("xmlns:xlink",Ya),r=document.createElementNS($a,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(){f(e)})):f(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,f=void 0===d?"never":d,p=n.httpRequestWithCredentials,m=void 0!==p&&p,h=n.renumerateIRIElements,g=void 0===h||h;if(e&&"length"in e)for(var _=0,y=0,b=e.length;y<b;y++)Ha(e[y],f,g,u,m,l,(function(t,n){a(t,n),e&&"length"in e&&e.length===++_&&o(_)}));else e?Ha(e,f,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{p(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})(va({},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,Ga);return v(r,va({},o,{ref:this.refCallback},"svg"===r?{xmlns:$a,xmlnsXlink:Ya}:{}),this.state.isLoading&&n&&v(n,null),this.state.hasError&&t&&v(t,null))},t}(S);Ka.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"},Ka.propTypes={afterInjection:Va.func,beforeInjection:Va.func,desc:Va.string,evalScripts:Va.oneOf(["always","once","never"]),fallback:Va.oneOfType([Va.func,Va.object,Va.string]),httpRequestWithCredentials:Va.bool,loading:Va.oneOfType([Va.func,Va.object,Va.string]),onError:Va.func,renumerateIRIElements:Va.bool,src:Va.string.isRequired,title:Va.string,useRequestCache:Va.bool,wrapper:Va.oneOf(["div","span","svg"])};const Xa=()=>De("div",{class:"flex justify-center",children:De("span",{class:"animate-spin",children:De(Fe,{size:"lg"})})}),Ja=(Za=e=>{const{trace:t}=wo(),n=ve(null);return be((()=>{t({type:"offer-viewed",offerName:e.marketPlaceOffer.name,data:e.marketPlaceOffer.metadata}),n.current&&(n.current.terms=e.marketPlaceOffer.content.terms,n.current.details=e.marketPlaceOffer.content.details,n.current["on-accept"]=async()=>{await t({type:"offer-accepted",offerName:e.marketPlaceOffer.name,data:{...e.marketPlaceOffer.metadata,template:e.marketPlaceOffer.content.template,assessmentId:e.marketPlaceOffer.content.assessmentId}})},n.current["on-decline"]=async()=>{await t({type:"offer-declined",offerName:e.marketPlaceOffer.name,data:{...e.marketPlaceOffer.metadata,template:e.marketPlaceOffer.content.template,assessmentId:e.marketPlaceOffer.content.assessmentId}}),e.onStepComplete()},n.current["on-complete"]=e.onStepComplete)}),[e,t]),De("benefits-plan-assessment",{"base-url":_o.workplaceBackend.getBaseUrl(),"profile-id":_o.workplaceBackend.getProfileId(),"access-token":e.accessToken,"image-url":e.marketPlaceOffer.content.imageUrl,"assessment-id":e.marketPlaceOffer.content.assessmentId,"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,"vertical-alignment":"items-center",ref:n})},e=>{const t=ve(null),[n,r]=_e(),[o,i]=_e(!1);return be((()=>{(async()=>{const e=await _o.workplaceBackend.getAccessToken();r(e)})(),(()=>{if(t.current&&!t.current.querySelector("script[data-injected]")){const e=document.createElement("script");e.type="module",e.src="https://npm-cdn.flarehr.com/@flarehr/benefits-plan-assessment/dist/benefits-plan-assessment.js",e.dataset.injected="true",e.onload=()=>{i(!0)},t.current.appendChild(e)}else i(!0)})()}),[]),De("div",{ref:t,class:e.class,children:n&&o?De(Za,{...e,accessToken:n}):De(Xa,{})})});var Za;
|
|
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:Qa,setPrototypeOf:es,isFrozen:ts,getPrototypeOf:ns,getOwnPropertyDescriptor:rs}=Object;let{freeze:os,seal:is,create:as}=Object,{apply:ss,construct:ls}="undefined"!=typeof Reflect&&Reflect;os||(os=function(e){return e}),is||(is=function(e){return e}),ss||(ss=function(e,t,n){return e.apply(t,n)}),ls||(ls=function(e,t){return new e(...t)});const cs=xs(Array.prototype.forEach),us=xs(Array.prototype.pop),ds=xs(Array.prototype.push),fs=xs(String.prototype.toLowerCase),ps=xs(String.prototype.toString),ms=xs(String.prototype.match),hs=xs(String.prototype.replace),gs=xs(String.prototype.indexOf),_s=xs(String.prototype.trim),ys=xs(Object.prototype.hasOwnProperty),bs=xs(RegExp.prototype.test),ws=(vs=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ls(vs,t)});var vs;function xs(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 ss(e,t,r)}}function Es(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:fs;es&&es(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(ts(t)||(t[r]=e),o=e)}e[o]=!0}return e}function ks(e){for(let t=0;t<e.length;t++){ys(e,t)||(e[t]=null)}return e}function Ss(e){const t=as(null);for(const[n,r]of Qa(e)){ys(e,n)&&(Array.isArray(r)?t[n]=ks(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=Ss(r):t[n]=r)}return t}function Ts(e,t){for(;null!==e;){const n=rs(e,t);if(n){if(n.get)return xs(n.get);if("function"==typeof n.value)return xs(n.value)}e=ns(e)}return function(){return null}}const Cs=os(["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"]),Ns=os(["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"]),As=os(["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"]),Os=os(["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"]),Rs=os(["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"]),Ps=os(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ls=os(["#text"]),Is=os(["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"]),Us=os(["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"]),Ds=os(["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"]),Fs=os(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),js=is(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ms=is(/<%[\w\W]*|[\w\W]*%>/gm),Bs=is(/\${[\w\W]*}/gm),Hs=is(/^data-[\-\w.\u00B7-\uFFFF]/),zs=is(/^aria-[\-\w]+$/),Ws=is(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),qs=is(/^(?:\w+script|data):/i),Vs=is(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Gs=is(/^html$/i),$s=is(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ys=Object.freeze({__proto__:null,MUSTACHE_EXPR:js,ERB_EXPR:Ms,TMPLIT_EXPR:Bs,DATA_ATTR:Hs,ARIA_ATTR:zs,IS_ALLOWED_URI:Ws,IS_SCRIPT_OR_DATA:qs,ATTR_WHITESPACE:Vs,DOCTYPE_NAME:Gs,CUSTOM_ELEMENT:$s});const Ks=1,Xs=3,Js=7,Zs=8,Qs=9;var el=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!==Qs)return n.isSupported=!1,n;let{document:r}=t;const o=r,i=o.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:l,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:f,DOMParser:p,trustedTypes:m}=t,h=c.prototype,g=Ts(h,"cloneNode"),_=Ts(h,"remove"),y=Ts(h,"nextSibling"),b=Ts(h,"childNodes"),w=Ts(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:E,createNodeIterator:k,createDocumentFragment:S,getElementsByTagName:T}=r,{importNode:C}=o;let N={};n.isSupported="function"==typeof Qa&&"function"==typeof w&&E&&void 0!==E.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:D}=Ys;let{IS_ALLOWED_URI:F}=Ys,j=null;const M=Es({},[...Cs,...Ns,...As,...Rs,...Ls]);let B=null;const H=Es({},[...Is,...Us,...Ds,...Fs]);let z=Object.seal(as(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,K=!1,X=!0,J=!1,Z=!1,Q=!1,ee=!1,te=!1,ne=!1,re=!0,oe=!1,ie=!0,ae=!1,se={},le=null;const ce=Es({},["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=Es({},["audio","video","img","source","image","track"]);let fe=null;const pe=Es({},["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 _e=ge,ye=!1,be=null;const we=Es({},[me,he,ge],ps);let ve=null;const xe=["application/xhtml+xml","text/html"];let Ee=null,ke=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(!ke||ke!==e){if(e&&"object"==typeof e||(e={}),e=Ss(e),ve=-1===xe.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ee="application/xhtml+xml"===ve?ps:fs,j=ys(e,"ALLOWED_TAGS")?Es({},e.ALLOWED_TAGS,Ee):M,B=ys(e,"ALLOWED_ATTR")?Es({},e.ALLOWED_ATTR,Ee):H,be=ys(e,"ALLOWED_NAMESPACES")?Es({},e.ALLOWED_NAMESPACES,ps):we,fe=ys(e,"ADD_URI_SAFE_ATTR")?Es(Ss(pe),e.ADD_URI_SAFE_ATTR,Ee):pe,ue=ys(e,"ADD_DATA_URI_TAGS")?Es(Ss(de),e.ADD_DATA_URI_TAGS,Ee):de,le=ys(e,"FORBID_CONTENTS")?Es({},e.FORBID_CONTENTS,Ee):ce,W=ys(e,"FORBID_TAGS")?Es({},e.FORBID_TAGS,Ee):{},q=ys(e,"FORBID_ATTR")?Es({},e.FORBID_ATTR,Ee):{},se=!!ys(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,K=e.SAFE_FOR_TEMPLATES||!1,X=!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,F=e.ALLOWED_URI_REGEXP||Ws,_e=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),K&&(G=!1),te&&(ee=!0),se&&(j=Es({},Ls),B=[],!0===se.html&&(Es(j,Cs),Es(B,Is)),!0===se.svg&&(Es(j,Ns),Es(B,Us),Es(B,Fs)),!0===se.svgFilters&&(Es(j,As),Es(B,Us),Es(B,Fs)),!0===se.mathMl&&(Es(j,Rs),Es(B,Ds),Es(B,Fs))),e.ADD_TAGS&&(j===M&&(j=Ss(j)),Es(j,e.ADD_TAGS,Ee)),e.ADD_ATTR&&(B===H&&(B=Ss(B)),Es(B,e.ADD_ATTR,Ee)),e.ADD_URI_SAFE_ATTR&&Es(fe,e.ADD_URI_SAFE_ATTR,Ee),e.FORBID_CONTENTS&&(le===ce&&(le=Ss(le)),Es(le,e.FORBID_CONTENTS,Ee)),ie&&(j["#text"]=!0),J&&Es(j,["html","head","body"]),j.table&&(Es(j,["tbody"]),delete W.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw ws('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw ws('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(""));os&&os(e),ke=e}},Ne=Es({},["mi","mo","mn","ms","mtext"]),Ae=Es({},["foreignobject","annotation-xml"]),Oe=Es({},["title","style","font","a","script"]),Re=Es({},[...Ns,...As,...Os]),Pe=Es({},[...Rs,...Ps]),Le=function(e){ds(n.removed,{element:e});try{w(e).removeChild(e)}catch(t){_(e)}},Ie=function(e,t){try{ds(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(r){ds(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=ms(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ve&&_e===ge&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=v?v.createHTML(e):e;if(_e===ge)try{t=(new p).parseFromString(o,ve)}catch(a){}if(!t||!t.documentElement){t=E.createDocument(_e,"template",null);try{t.documentElement.innerHTML=ye?x:o}catch(a){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),_e===ge?T.call(t,J?"html":"body")[0]:J?t.documentElement:i},De=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)},Fe=function(e){return e instanceof f&&("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]&&cs(N[e],(e=>{e.call(n,t,r,ke)}))},Be=function(e){let t=null;if(Me("beforeSanitizeElements",e,null),Fe(e))return Le(e),!0;const r=Ee(e.nodeName);if(Me("uponSanitizeElement",e,{tagName:r,allowedTags:j}),e.hasChildNodes()&&!je(e.firstElementChild)&&bs(/<[/\w]/g,e.innerHTML)&&bs(/<[/\w]/g,e.textContent))return Le(e),!0;if(e.nodeType===Js)return Le(e),!0;if(X&&e.nodeType===Zs&&bs(/<[/\w]/g,e.data))return Le(e),!0;if(!j[r]||W[r]){if(!W[r]&&ze(r)){if(z.tagNameCheck instanceof RegExp&&bs(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,y(e))}}}return Le(e),!0}return e instanceof c&&!function(e){let t=w(e);t&&t.tagName||(t={namespaceURI:_e,tagName:"template"});const n=fs(e.tagName),r=fs(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||!bs(/<\/no(script|embed|frames)/i,e.innerHTML)?(K&&e.nodeType===Xs&&(t=e.textContent,cs([A,O,R],(e=>{t=hs(t,e," ")})),e.textContent!==t&&(ds(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(G&&!q[t]&&bs(P,t));else if(V&&bs(L,t));else if(!B[t]||q[t]){if(!(ze(e)&&(z.tagNameCheck instanceof RegExp&&bs(z.tagNameCheck,e)||z.tagNameCheck instanceof Function&&z.tagNameCheck(e))&&(z.attributeNameCheck instanceof RegExp&&bs(z.attributeNameCheck,t)||z.attributeNameCheck instanceof Function&&z.attributeNameCheck(t))||"is"===t&&z.allowCustomizedBuiltInElements&&(z.tagNameCheck instanceof RegExp&&bs(z.tagNameCheck,n)||z.tagNameCheck instanceof Function&&z.tagNameCheck(n))))return!1}else if(fe[t]);else if(bs(F,hs(n,U,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==gs(n,"data:")||!ue[e]){if($&&!bs(I,hs(n,U,"")));else if(n)return!1}else;return!0},ze=function(e){return"annotation-xml"!==e&&ms(e,D)},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=Ee(s);let d="value"===s?c:_s(c);if(r.attrName=u,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,Me("uponSanitizeAttribute",e,r),d=r.attrValue,X&&bs(/((--!?|])>)|<\/(style|title)/i,d)){Ie(s,e);continue}if(r.forceKeepAttr)continue;if(Ie(s,e),!r.keepAttr)continue;if(!Y&&bs(/\/>/i,d)){Ie(s,e);continue}K&&cs([A,O,R],(e=>{d=hs(d,e," ")}));const f=Ee(e.nodeName);if(He(f,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(f,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),Fe(e)?Le(e):us(n.removed)}catch(i){}}}Me("afterSanitizeAttributes",e,null)},qe=function e(t){let n=null;const r=De(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(ye=!e,ye&&(e="\x3c!--\x3e"),"string"!=typeof e&&!je(e)){if("function"!=typeof e.toString)throw ws("toString is not a function");if("string"!=typeof(e=e.toString()))throw ws("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=Ee(e.nodeName);if(!j[t]||W[t])throw ws("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===Ks&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!ee&&!K&&!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=De(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=J?r.outerHTML:r.innerHTML;return J&&j["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&bs(Gs,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),K&&cs([A,O,R],(e=>{d=hs(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(){ke=null,Z=!1},n.isValidAttribute=function(e,t,n){ke||Ce({});const r=Ee(e),o=Ee(t);return He(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(N[e]=N[e]||[],ds(N[e],t))},n.removeHook=function(e){if(N[e])return us(N[e])},n.removeHooks=function(e){N[e]&&(N[e]=[])},n.removeAllHooks=function(){N={}},n}();const tl=({children:e})=>{const t=Wt.Children.toArray(e),n=t.find((e=>e.type===nl)),r=t.find((e=>e.type===rl));return De(Qi,{appear:!0,show:!0,enter:"transition duration-700 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:De("div",{class:"md:grid md:grid-cols-2 max-w-[59.5rem] mx-auto",children:[De(Qi,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:n&&De("div",{class:"flex items-center h-full",children:n})}),De(Qi,{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&&De("div",{class:"flex items-center h-full",children:r})})]})})},nl=({children:e})=>De(k,{children:e}),rl=({children:e})=>De(k,{children:e});tl.Left=nl,tl.Right=rl;const ol=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"})),il=e=>De(Qi,{appear:!0,show:!0,enter:"transition duration-300 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:De("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)=>De("div",{class:"flex space-x-1",children:[De("span",{children:De(aa,{class:"h-5 w-5 fill-primary-base"})}),De("span",{class:"text-sm leading-5 text-gray-600",children:e})]},t)))})}),al=e=>{const[t,n]=_e(!1);return De("div",{class:e.class,children:t?De(il,{items:e.items}):De("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",De("span",{class:"ml-1",children:De(ol,{class:"h-4 w-4"})})]})})},sl=e=>{var t;const{trace:n}=wo();be((()=>{(async()=>{await n({type:"offer-viewed",offerName:e.step.name,data:e.step.metadata})})()}),[e.step.metadata,e.step.name,n]);const r=async t=>{t?await n({type:"offer-accepted",offerName:e.step.name,data:{...e.step.metadata,template:"Eoi"}}):await n({type:"offer-declined",offerName:e.step.name,data:{...e.step.metadata,template:"Eoi"}});return(t?e.primaryButton:e.secondaryButton).onClick()};return De(tl,{children:[De(tl.Left,{children:De("div",{children:De(Qi,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:[De("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:e.step.content.mobileImageUrl,loading:"lazy"}),De("div",{class:"md:max-w-[27.5rem]",children:[De("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:e.step.content.title}),De("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&&De("div",{class:"mt-6 hidden md:block",children:De(il,{items:e.step.content.details})})]}),e.step.content.details&&De(al,{class:"mt-6 md:hidden",items:e.step.content.details}),e.children&&e.children,De("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:[De(Gt,{class:e.primaryButton.class??"",onClickPromise:()=>r(!0),children:e.primaryButton.text??"Next"}),(null==(t=e.secondaryButton)?void 0:t.text)&&De(Gt,{class:e.secondaryButton.class??"bg-white hover:!bg-gray-100 focus:!ring-gray-200 !border-0 !shadow-none !text-gray-700 !border-gray-300",onClickPromise:()=>r(!1),children:e.secondaryButton.text})]}),e.step.content.terms&&De("div",{class:"flex flex-col gap-3 mt-6 text-gray-600 text-xs",children:e.step.content.terms.map(((e,t)=>De("span",{dangerouslySetInnerHTML:{__html:el.sanitize(e,{ADD_ATTR:["target"]})}},t)))})]})})}),De(tl.Right,{children:De("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},ll=e=>{const{trace:t}=wo();be((()=>{(async()=>{"name"in e.step&&await t({type:"offer-viewed",offerName:e.step.name,data:e.step.metadata})})()}),[e.step,t]);return De(tl,{children:[De(tl.Left,{children:De("div",{children:De(Qi,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:[De("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:e.step.content.mobileImageUrl,loading:"lazy"}),De("div",{class:"md:max-w-[27.5rem]",children:[De("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:e.step.content.title}),De("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&&De("div",{class:"mt-6 hidden md:block",children:De(il,{items:e.step.content.details})})]}),e.step.content.details&&De(al,{class:"mt-6 md:hidden",items:e.step.content.details}),e.children&&e.children,De("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:De(Gt,{class:e.primaryButton.class??"",onClickPromise:async()=>{"name"in e.step&&await t({type:"offer-progressed",offerName:e.step.name,data:{...e.step.metadata,template:"Simple"}}),e.primaryButton.onClick()},children:e.primaryButton.text??"Next"})}),e.step.content.terms&&De("div",{class:"flex flex-col gap-3 mt-6 text-gray-600 text-xs ",children:e.step.content.terms.map(((e,t)=>De("span",{dangerouslySetInnerHTML:{__html:el.sanitize(e,{ADD_ATTR:["target"]})}},t)))})]})})}),De(tl.Right,{children:De("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},cl=({current:e,total:t})=>De("div",{className:"md:grid md:grid-cols-2 max-w-[59.5rem] mx-auto",children:De("div",{className:"flex justify-between md:block text-xs tracking-wide",children:De("span",{className:"relative px-3 py-0.5 text-primary-base font-semibold",children:[e," OF ",t,De("span",{className:"absolute left-0 rounded-xl bg-primary-base opacity-10 w-full h-[90%]"})]})})}),ul=e=>{const{featureFlags:{marketplaceSubNavigation:t}}=Se(Me),[n,r]=_e(0),o=ke((()=>{n===e.offers.length-1?e.onComplete():r(n+1)}),[e,n]);return De("div",{children:[t&&De(wa,{className:"flex items-center bg-white sticky top-0 z-10 h-10 border-b-[1px] border-gray-300 mb-5 md:hidden",value:(n+1)/e.offers.length}),!t&&De(cl,{current:n+1,total:e.offers.length+1}),De(Di.Group,{selectedIndex:n,onChange:r,children:[De("div",{className:(t?"md:grid":"hidden")+" md:grid-cols-2 max-w-[59.5rem] mx-auto ",children:De(Di.List,{className:"flex justify-between items-center md:mb-4",children:e.offers.map(((e,t)=>De(Di,{style:"flex: 1 1 0; width: 0;",disabled:n!==t,className:({selected:e})=>' \n text-sm font-medium cursor-auto h-full relative\n flex items-center justify-center\n [&:not(:last-child):after]:absolute [&:not(:last-child):after]:content-[""] [&:not(:last-child):after]:w-1/2 [&:not(:last-child):after]:border-b-2 [&:not(:last-child):after]:border-solid [&:not(:last-child):after]:border-gray-200 [&:not(:last-child):after]:ml-[100%]\n '+(e?"text-primary-base":"text-gray-400"),children:De("div",{className:"flex items-center flex-col w-3/4 md:w-1/2",children:[De(Ka,{src:e.content.iconUrl,wrapper:"svg",className:"w-6 h-6 max-w-6 max-h-6",beforeInjection:e=>{var t;e.removeAttribute("width"),e.removeAttribute("height"),null==(t=e.querySelector("path"))||t.removeAttribute("fill"),e.setAttribute("fill","currentColor")}}),De("p",{className:"w-full break-words mt-2",children:e.content.productName})]})},e.name)))})}),De(Di.Panels,{children:e.offers.map((e=>De(Di.Panel,{children:["Eoi"===e.content.template&&De(sl,{step:e,primaryButton:{text:e.content.acceptButton,onClick:o},secondaryButton:{text:e.content.declineButton,onClick:o}}),"Simple"===e.content.template&&De(ll,{step:e,primaryButton:{text:e.content.acceptButton,onClick:o}}),"Assessment"===e.content.template&&De(Ja,{class:"max-w-[59.5rem] mx-auto",onStepComplete:o,marketPlaceOffer:e},e.name)]},e.name)))})]})]})},dl=""+("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),fl=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"})),pl=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"})),ml=""+("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),hl=()=>{const{trace:e}=wo();be((()=>{(async()=>{await e({type:"summary-viewed",data:{summaryVariant:"app"}})})()}),[]);const{identity:t}=Se(Me),n={...gl(t),imageUrl:dl,mobileImageUrl:ml},r={text:"Continue",class:"mt-6 md:mt-14",onClick:async()=>{await e("completed");const t=document.querySelector(xl),n=new CustomEvent("step-completion",{bubbles:!0});null==t||t.dispatchEvent(n),await new Promise((e=>setTimeout(e,1e4)))}};return De(tl,{children:[De(tl.Left,{children:De("div",{children:[De("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:n.mobileImageUrl,loading:"lazy"}),De("div",{class:"md:max-w-[27.5rem]",children:[De("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:n.title}),De("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:n.description})]}),De("div",{class:"mt-6 flex space-x-6",children:[De(fl,{}),De(pl,{})]}),De(Gt,{class:r.class,onClickPromise:r.onClick,children:r.text})]})}),De(tl.Right,{children:De("img",{class:"max-w-[30rem] w-full hidden md:block",src:n.imageUrl,loading:"lazy"})})]})},gl=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.`}}},_l=""+("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),yl=""+("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),bl=()=>{const{trace:e}=wo();be((()=>{(async()=>{await e({type:"summary-viewed",data:{summaryVariant:"generic"}})})()}),[]);const{workplace:t}=Se(Me),n={imageUrl:_l,mobileImageUrl:yl,title:"You're all set!",description:"PreviouslyLinked"===t.linkingStatus?"You’ve already connected this employer with your Flare Benefits account. Simply continue and review the details you have provided to complete your onboarding.":"Simply continue and review the details you have provided to complete your onboarding."},r={text:"Continue",class:"mt-6 md:mt-6",onClick:async()=>{await e("completed");const t=document.querySelector(xl),n=new CustomEvent("step-completion",{bubbles:!0});null==t||t.dispatchEvent(n),await new Promise((e=>setTimeout(e,1e4)))}};return De(tl,{children:[De(tl.Left,{children:De("div",{children:[De("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:n.mobileImageUrl,loading:"lazy"}),De("div",{class:"md:max-w-[27.5rem]",children:[De("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:n.title}),De("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:n.description})]}),De("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:De(Gt,{class:r.class,onClickPromise:r.onClick,children:r.text})})]})}),De(tl.Right,{children:De("img",{class:"max-w-[30rem] w-full hidden md:block",src:n.imageUrl,loading:"lazy"})})]})},wl=()=>{const{offers:e,isComplete:t,isAppEnabled:n,identity:r,workplace:o,featureFlags:i,updateIdentity:a}=Se(Me),{current:s,goNext:l}=function(e,t,n,r,o){const i=function(e,t,n,r,o){const{unifiedCustomerRegistration:i}=o,a=t?"SummaryApp":"SummaryGeneric";if(e)return[a];if(!i)return["Introduction","MarketplaceOffers",a];switch(!0){case"Unregistered"===n.registrationStatus:case"PreviouslyRegistered"===n.registrationStatus&&"Unlinked"===r.linkingStatus:return["Introduction","FlareAppIdentity"];case"PreviouslyRegistered"===n.registrationStatus&&"NewlyLinked"==r.linkingStatus:case"NewlyRegistered"===n.registrationStatus:return["MarketplaceOffers",a];case"PreviouslyRegistered"===n.registrationStatus&&"PreviouslyLinked"==r.linkingStatus:case"RegistrationAbandoned"===n.registrationStatus:return[a];default:return[]}}(e,t,n,r,o),[a,s]=_e(i[0]);return i.some((e=>e===a))||s(i[0]),{current:a,goNext:()=>{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 De(ba,{employerName:o.employerName,onStepComplete:l});case"FlareAppIdentity":return De(_a,{onSuccess:c,onDecline:u});case"MarketplaceOffers":return De(ul,{offers:e,onComplete:l});case"SummaryApp":return De(hl,{});case"SummaryGeneric":return De(bl,{});default:return De(k,{})}},vl=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}},xl="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]=_e(),[r,o]=_e(0);be((()=>en((()=>{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"]};yo(t.backendUrl,t.accessToken,t.workflowsInstanceId);const r=await go.backend.init();n(vl(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 De(k,{children:[De("style",{children:'/*! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}span a{color:var(--fl-color-primary)}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.-inset-y-1{bottom:-.25rem;top:-.25rem}.inset-y-0{bottom:0;top:0}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.z-10{z-index:10}.z-50{z-index:50}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-5{margin-bottom:1.25rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-20{margin-top:5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.hidden{display:none}.h-1{height:.25rem}.h-10{height:2.5rem}.h-16{height:4rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-\\[90\\%\\]{height:90%}.h-full{height:100%}.max-h-6{max-height:1.5rem}.w-10{width:2.5rem}.w-16{width:4rem}.w-3{width:.75rem}.w-3\\/4{width:75%}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-7{width:1.75rem}.w-full{width:100%}.max-w-6{max-width:1.5rem}.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%}.-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}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.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)))}.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-b-\\[1px\\]{border-bottom-width:1px}.\\!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-transparent{border-color:transparent}.bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.bg-primary-base{background-color:var(--fl-color-primary)}.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-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}.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-semibold{font-weight:600}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.leading-8{line-height:2rem}.leading-none{line-height:1}.tracking-wide{letter-spacing:.025em}.\\!text-gray-700{--tw-text-opacity:1!important;color:rgb(55 65 81/var(--tw-text-opacity))!important}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/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))}.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)}.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-1\\/2{width:50%}.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}}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:absolute:not(:last-child):after{position:absolute}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:ml-\\[100\\%\\]:not(:last-child):after{margin-left:100%}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:w-1\\/2:not(:last-child):after{width:50%}.\\[\\&\\: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)}'.toString()}),De("div",{class:"font-inter pt-6 pb-8 md:py-24 px-px",children:t?De(Me.Provider,{value:{...t,updateIdentity:a},children:De(wl,{})}):De("div",{class:"flex justify-center",children:De("span",{class:"animate-spin",children:De(Fe,{size:"lg"})})})},r)]})}),xl,[],{shadow:!0})}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flarehr/apollo-benefits-onboarding",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2336",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist/"
|
|
@@ -17,11 +17,12 @@
|
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@headlessui/react": "^1.7.18",
|
|
19
19
|
"axios": "^1.6.7",
|
|
20
|
-
"dompurify": "^3.
|
|
20
|
+
"dompurify": "^3.1.6",
|
|
21
21
|
"fast-deep-equal": "^3.1.3",
|
|
22
22
|
"jwt-decode": "^4.0.0",
|
|
23
23
|
"preact": "^10.19.5",
|
|
24
|
-
"preact-custom-element": "^4.3.0"
|
|
24
|
+
"preact-custom-element": "^4.3.0",
|
|
25
|
+
"react-svg": "^16.1.34"
|
|
25
26
|
},
|
|
26
27
|
"devDependencies": {
|
|
27
28
|
"@preact/preset-vite": "^2.8.1",
|