@flarehr/apollo-benefits-onboarding 0.1.3014 → 0.1.3016

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,8 +1,8 @@
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,d,u,p,f,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 C(e){return e.children}function E(e,t){this.props=e,this.context=t}function S(e,t){if(null==t)return e.__?S(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?S(e):null}function N(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?S(o):i,!!(32&o.__u),n),r.__v=o.__v,r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=i&&T(r),r}function T(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 T(e)}}function A(e){(!e.__d&&(e.__d=!0)&&d.push(e)&&!O.__r++||u!==l.debounceRendering)&&((u=l.debounceRendering)||p)(O)}function O(){var e,t,n,r=[],o=[];for(d.sort(f);e=d.shift();)e.__d&&(n=d.length,t=N(e,r,o)||t,0===n||d.length>n?(D(r,t,o),o.length=r.length=0,t=void 0,d.sort(f)):t&&l.__c&&l.__c(t,g));t&&D(r,t,o),O.__r=0}function R(e,t,n,r,o,i,a,s,l,c,d){var u,p,f,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,d=c,u=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(C,{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+u,d),o.__i=s,i=null,-1!==s&&(d--,(i=n[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&u--,"function"!=typeof o.type&&(o.__u|=65536)):s!==a&&(s===a+1?u++:s>a?d>l-a?u+=s-a:u--:u=s<a&&s==a-1?s-a:0,s!==r+u&&(o.__u|=65536))):(i=n[r])&&null==i.key&&i.__e&&0==(131072&i.__u)&&(i.__e==e.__d&&(e.__d=S(i)),H(i,i,!1),n[r]=null,d--);if(d)for(r=0;r<c;r++)null!=(i=n[r])&&0==(131072&i.__u)&&(i.__e==e.__d&&(e.__d=S(i)),H(i,i))}(n,t,b),l=n.__d,u=0;u<w;u++)null!=(f=n.__k[u])&&"boolean"!=typeof f&&"function"!=typeof f&&(p=-1===f.__i?h:b[f.__i]||h,f.__i=u,M(e,f,p,o,i,a,s,l,c,d),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&z(p.ref,null,f),d.push(f.ref,f.__c||m,f)),null==_&&null!=m&&(_=m),65536&f.__u||p.__k===f.__k?l=P(f,l,e):"function"==typeof f.type&&void 0!==f.__d?l=f.__d:m&&(l=m.nextSibling),f.__d=void 0,f.__u&=-196609);n.__d=l,n.__e=_}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 F(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||U(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||U(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,i?B:j,i)):e.removeEventListener(t,i?B:j,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 j(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 B(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,d,u){var p,f,m,g,_,v,x,k,N,T,A,O,P,L,I,U=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(d=!!(32&n.__u),i=[c=t.__e=n.__e]),(p=l.__b)&&p(t);e:if("function"==typeof U)try{if(k=t.props,N=(p=U.contextType)&&r[p.__c],T=p?N?N.props.value:p.__:r,n.__c?x=(f=t.__c=n.__c).__=f.__E:("prototype"in U&&U.prototype.render?t.__c=f=new U(k,T):(t.__c=f=new E(k,T),f.constructor=U,f.render=q),N&&N.sub(f),f.props=k,f.state||(f.state={}),f.context=T,f.__n=r,m=f.__d=!0,f.__h=[],f._sb=[]),null==f.__s&&(f.__s=f.state),null!=U.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=b({},f.__s)),b(f.__s,U.getDerivedStateFromProps(k,f.__s))),g=f.props,_=f.state,f.__v=t,m)null==U.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==U.getDerivedStateFromProps&&k!==g&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(k,T),!f.__e&&(null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(k,f.__s,T)||t.__v===n.__v)){for(t.__v!==n.__v&&(f.props=k,f.state=f.__s,f.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),A=0;A<f._sb.length;A++)f.__h.push(f._sb[A]);f._sb=[],f.__h.length&&a.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(k,f.__s,T),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(g,_,v)}))}if(f.context=T,f.props=k,f.__P=e,f.__e=!1,O=l.__r,P=0,"prototype"in U&&U.prototype.render){for(f.state=f.__s,f.__d=!1,O&&O(t),p=f.render(f.props,f.state,f.context),L=0;L<f._sb.length;L++)f.__h.push(f._sb[L]);f._sb=[]}else do{f.__d=!1,O&&O(t),p=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++P<25);f.state=f.__s,null!=f.getChildContext&&(r=b(b({},r),f.getChildContext())),m||null==f.getSnapshotBeforeUpdate||(v=f.getSnapshotBeforeUpdate(g,_)),R(e,y(I=null!=p&&p.type===C&&null==p.key?p.props.children:p)?I:[I],t,n,r,o,i,a,c,d,u),f.base=t.__e,t.__u&=-161,f.__h.length&&a.push(f),x&&(f.__E=f.__=null)}catch(j){t.__v=null,d||null!=i?(t.__e=c,t.__u|=d?160:32,i[i.indexOf(c)]=null):(t.__e=n.__e,t.__k=n.__k),l.__e(j,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 d,u,p,f,m,g,_,b=n.props,v=t.props,x=t.type;if("svg"===x&&(o=!0),null!=i)for(d=0;d<i.length;d++)if((m=i[d])&&"setAttribute"in m==!!x&&(x?m.localName===x:3===m.nodeType)){e=m,i[d]=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={},d=0;d<e.attributes.length;d++)b[(m=e.attributes[d]).name]=m.value;for(d in b)m=b[d],"children"==d||("dangerouslySetInnerHTML"==d?p=m:"key"===d||d in v||F(e,d,null,m,o));for(d in v)m=v[d],"children"==d?f=m:"dangerouslySetInnerHTML"==d?u=m:"value"==d?g=m:"checked"==d?_=m:"key"===d||l&&"function"!=typeof m||b[d]===m||F(e,d,m,b[d],o);if(u)l||p&&(u.__html===p.__html||u.__html===e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(p&&(e.innerHTML=""),R(e,y(f)?f:[f],t,n,r,o&&"foreignObject"!==x,i,a,i?i[0]:n.__k&&S(n,0),l,c),null!=i)for(d=i.length;d--;)null!=i[d]&&w(i[d]);l||(d="value",void 0!==g&&(g!==e[d]||"progress"===x&&!g||"option"===x&&g!==b[d])&&F(e,d,g,b[d],!1),d="checked",void 0!==_&&_!==e[d]&&F(e,d,_,b[d],!1))}return e}(n.__e,t,n,r,o,i,a,d,u);(p=l.diffed)&&p(t)}function D(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 q(e,t,n){return this.constructor(e,n)}function W(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(C,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,D(i,e,a)}function V(e,t){W(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,A(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}function Y(){return(Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}s=g.slice,l={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(s){e=s}throw e}},c=0,E.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=b({},this.state),"function"==typeof e&&(e=e(b({},n),this.props)),e&&b(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),A(this))},E.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),A(this))},E.prototype.render=C,d=[],p="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f=function(e,t){return e.__v.__b-t.__v.__b},O.__r=0,m=0;var Z=["context","children"];function J(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,Z))}function X(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=v(J,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[K(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 d=n?v(te,null,r):r;return v(n||t.nodeName.toLowerCase(),o,d)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?V:W)(this._vdom,this._root)}function K(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[K(e)]=n,this._vdom=$(this._vdom,r),W(this._vdom,this._root)}}function ee(){W(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=(e=>(e.BenefitsExisting="BenefitsExisting",e.AppInvite="AppInvite",e.BenefitsOnboarding="BenefitsOnboarding",e))(ne||{});const re=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/intro_allowance_experiment-Bit4myCA.png").href:new URL("assets/intro_allowance_experiment-Bit4myCA.png","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),oe=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/intro_allowance_experiment-DyP_CJyB.png").href:new URL("assets/intro_allowance_experiment-DyP_CJyB.png","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href);class ie extends Error{}function ae(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)}}ie.prototype.name="InvalidTokenError";const se=crypto.randomUUID?crypto.randomUUID():crypto.getRandomValues(new Uint32Array(5)).join("-"),le=e=>(window.addEventListener(se,e),()=>window.removeEventListener(se,e)),ce=()=>{window.dispatchEvent(new Event(se))};function de(e,t){return function(){return e.apply(t,arguments)}}const{toString:ue}=Object.prototype,{getPrototypeOf:pe}=Object,fe=(e=>t=>{const n=ue.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),me=e=>(e=e.toLowerCase(),t=>fe(t)===e),he=e=>t=>typeof t===e,{isArray:ge}=Array,_e=he("undefined");const ye=me("ArrayBuffer");const be=he("string"),we=he("function"),ve=he("number"),xe=e=>null!==e&&"object"==typeof e,ke=e=>{if("object"!==fe(e))return!1;const t=pe(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},Ce=me("Date"),Ee=me("File"),Se=me("Blob"),Ne=me("FileList"),Te=me("URLSearchParams"),[Ae,Oe,Re,Pe]=["ReadableStream","Request","Response","Headers"].map(me);function Le(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),ge(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 Ie(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 Ue="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Fe=e=>!_e(e)&&e!==Ue;const je=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&pe(Uint8Array)),Be=me("HTMLFormElement"),Me=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),De=me("RegExp"),ze=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Le(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)};const He=me("AsyncFunction"),qe=(We="function"==typeof setImmediate,Ve=we(Ue.postMessage),We?setImmediate:Ve?($e=`axios@${Math.random()}`,Ge=[],Ue.addEventListener("message",(({source:e,data:t})=>{e===Ue&&t===$e&&Ge.length&&Ge.shift()()}),!1),e=>{Ge.push(e),Ue.postMessage($e,"*")}):e=>setTimeout(e));var We,Ve,$e,Ge;const Ye="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Ue):"undefined"!=typeof process&&process.nextTick||qe,Ze={isArray:ge,isArrayBuffer:ye,isBuffer:function(e){return null!==e&&!_e(e)&&null!==e.constructor&&!_e(e.constructor)&&we(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||we(e.append)&&("formdata"===(t=fe(e))||"object"===t&&we(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ye(e.buffer),t},isString:be,isNumber:ve,isBoolean:e=>!0===e||!1===e,isObject:xe,isPlainObject:ke,isReadableStream:Ae,isRequest:Oe,isResponse:Re,isHeaders:Pe,isUndefined:_e,isDate:Ce,isFile:Ee,isBlob:Se,isRegExp:De,isFunction:we,isStream:e=>xe(e)&&we(e.pipe),isURLSearchParams:Te,isTypedArray:je,isFileList:Ne,forEach:Le,merge:function e(){const{caseless:t}=Fe(this)&&this||{},n={},r=(r,o)=>{const i=t&&Ie(n,o)||o;ke(n[i])&&ke(r)?n[i]=e(n[i],r):ke(r)?n[i]=e({},r):ge(r)?n[i]=r.slice():n[i]=r};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&Le(arguments[o],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(Le(t,((t,r)=>{n&&we(t)?e[r]=de(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&&pe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:fe,kindOfTest:me,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(ge(e))return e;let t=e.length;if(!ve(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:Be,hasOwnProperty:Me,hasOwnProp:Me,reduceDescriptors:ze,freezeMethods:e=>{ze(e,((t,n)=>{if(we(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];we(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 ge(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:Ie,global:Ue,isContextDefined:Fe,isSpecCompliantForm:function(e){return!!(e&&we(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(xe(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=ge(e)?[]:{};return Le(e,((e,t)=>{const i=n(e,r+1);!_e(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:He,isThenable:e=>e&&(xe(e)||we(e))&&we(e.then)&&we(e.catch),setImmediate:qe,asap:Ye};function Je(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,this.status=o.status?o.status:null)}Ze.inherits(Je,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:Ze.toJSONObject(this.config),code:this.code,status:this.status}}});const Xe=Je.prototype,Ke={};["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=>{Ke[e]={value:e}})),Object.defineProperties(Je,Ke),Object.defineProperty(Xe,"isAxiosError",{value:!0}),Je.from=(e,t,n,r,o,i)=>{const a=Object.create(Xe);return Ze.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Je.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function Qe(e){return Ze.isPlainObject(e)||Ze.isArray(e)}function et(e){return Ze.endsWith(e,"[]")?e.slice(0,-2):e}function tt(e,t,n){return e?e.concat(t).map((function(e,t){return e=et(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const nt=Ze.toFlatObject(Ze,{},null,(function(e){return/^is[A-Z]/.test(e)}));function rt(e,t,n){if(!Ze.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Ze.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Ze.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Ze.isSpecCompliantForm(t);if(!Ze.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Ze.isDate(e))return e.toISOString();if(!s&&Ze.isBlob(e))throw new Je("Blob is not supported. Use a Buffer instead.");return Ze.isArrayBuffer(e)||Ze.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(Ze.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Ze.isArray(e)&&function(e){return Ze.isArray(e)&&!e.some(Qe)}(e)||(Ze.isFileList(e)||Ze.endsWith(n,"[]"))&&(s=Ze.toArray(e)))return n=et(n),s.forEach((function(e,r){!Ze.isUndefined(e)&&null!==e&&t.append(!0===a?tt([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!Qe(e)||(t.append(tt(o,n,i),l(e)),!1)}const d=[],u=Object.assign(nt,{defaultVisitor:c,convertValue:l,isVisitable:Qe});if(!Ze.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Ze.isUndefined(n)){if(-1!==d.indexOf(n))throw Error("Circular reference detected in "+r.join("."));d.push(n),Ze.forEach(n,(function(n,i){!0===(!(Ze.isUndefined(n)||null===n)&&o.call(t,n,Ze.isString(i)?i.trim():i,r,u))&&e(n,r?r.concat(i):[i])})),d.pop()}}(e),t}function ot(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function it(e,t){this._pairs=[],e&&rt(e,this,t)}const at=it.prototype;function st(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function lt(e,t,n){if(!t)return e;const r=n&&n.encode||st;Ze.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):Ze.isURLSearchParams(t)?t.toString():new it(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}at.append=function(e,t){this._pairs.push([e,t])},at.toString=function(e){const t=e?function(t){return e.call(this,t,ot)}:ot;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class ct{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){Ze.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const dt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ut={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:it,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},pt="undefined"!=typeof window&&"undefined"!=typeof document,ft="object"==typeof navigator&&navigator||void 0,mt=pt&&(!ft||["ReactNative","NativeScript","NS"].indexOf(ft.product)<0),ht="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,gt=pt&&window.location.href||"http://localhost",_t={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:pt,hasStandardBrowserEnv:mt,hasStandardBrowserWebWorkerEnv:ht,navigator:ft,origin:gt},Symbol.toStringTag,{value:"Module"})),...ut};function yt(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&&Ze.isArray(r)?r.length:i,s)return Ze.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&Ze.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&Ze.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(Ze.isFormData(e)&&Ze.isFunction(e.entries)){const n={};return Ze.forEachEntry(e,((e,r)=>{t(function(e){return Ze.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const bt={transitional:dt,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Ze.isObject(e);o&&Ze.isHTMLForm(e)&&(e=new FormData(e));if(Ze.isFormData(e))return r?JSON.stringify(yt(e)):e;if(Ze.isArrayBuffer(e)||Ze.isBuffer(e)||Ze.isStream(e)||Ze.isFile(e)||Ze.isBlob(e)||Ze.isReadableStream(e))return e;if(Ze.isArrayBufferView(e))return e.buffer;if(Ze.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 rt(e,new _t.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return _t.isNode&&Ze.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=Ze.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return rt(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Ze.isString(e))try{return(t||JSON.parse)(e),Ze.trim(e)}catch(Ci){if("SyntaxError"!==Ci.name)throw Ci}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||bt.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Ze.isResponse(e)||Ze.isReadableStream(e))return e;if(e&&Ze.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(Ci){if(n){if("SyntaxError"===Ci.name)throw Je.from(Ci,Je.ERR_BAD_RESPONSE,this,null,this.response);throw Ci}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:_t.classes.FormData,Blob:_t.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ze.forEach(["delete","get","head","post","put","patch"],(e=>{bt.headers[e]={}}));const wt=Ze.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"]),vt=Symbol("internals");function xt(e){return e&&String(e).trim().toLowerCase()}function kt(e){return!1===e||null==e?e:Ze.isArray(e)?e.map(kt):String(e)}function Ct(e,t,n,r,o){return Ze.isFunction(r)?r.call(this,t,n):(o&&(t=n),Ze.isString(t)?Ze.isString(r)?-1!==t.indexOf(r):Ze.isRegExp(r)?r.test(t):void 0:void 0)}class Et{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=xt(t);if(!o)throw new Error("header name must be a non-empty string");const i=Ze.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=kt(e))}const i=(e,t)=>Ze.forEach(e,((e,n)=>o(e,n,t)));if(Ze.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Ze.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]&&wt[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(Ze.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=xt(e)){const n=Ze.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(Ze.isFunction(t))return t.call(this,e,n);if(Ze.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=xt(e)){const n=Ze.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ct(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=xt(e)){const o=Ze.findKey(n,e);!o||t&&!Ct(0,n[o],o,t)||(delete n[o],r=!0)}}return Ze.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&&!Ct(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Ze.forEach(this,((r,o)=>{const i=Ze.findKey(n,o);if(i)return t[i]=kt(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]=kt(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Ze.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Ze.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[vt]=this[vt]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=xt(e);t[r]||(!function(e,t){const n=Ze.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 Ze.isArray(e)?e.forEach(r):r(e),this}}function St(e,t){const n=this||bt,r=t||n,o=Et.from(r.headers);let i=r.data;return Ze.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Nt(e){return!(!e||!e.__CANCEL__)}function Tt(e,t,n){Je.call(this,null==e?"canceled":e,Je.ERR_CANCELED,t,n),this.name="CanceledError"}function At(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Je("Request failed with status code "+n.status,[Je.ERR_BAD_REQUEST,Je.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}Et.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ze.reduceDescriptors(Et.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Ze.freezeMethods(Et),Ze.inherits(Tt,Je,{__CANCEL__:!0});const Ot=(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 d=a,u=0;for(;d!==i;)u+=n[d++],d%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const p=c&&l-c;return p?Math.round(1e3*u/p):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout((()=>{r=null,a(n)}),i-s)))},()=>n&&a(n)]}((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},Rt=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Pt=e=>(...t)=>Ze.asap((()=>e(...t))),Lt=_t.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,_t.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(_t.origin),_t.navigator&&/(msie|trident)/i.test(_t.navigator.userAgent)):()=>!0,It=_t.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Ze.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Ze.isString(r)&&a.push("path="+r),Ze.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 Ut(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&r||0==n?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Ft=e=>e instanceof Et?{...e}:e;function jt(e,t){t=t||{};const n={};function r(e,t,n,r){return Ze.isPlainObject(e)&&Ze.isPlainObject(t)?Ze.merge.call({caseless:r},e,t):Ze.isPlainObject(t)?Ze.merge({},t):Ze.isArray(t)?t.slice():t}function o(e,t,n,o){return Ze.isUndefined(t)?Ze.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!Ze.isUndefined(t))return r(void 0,t)}function a(e,t){return Ze.isUndefined(t)?Ze.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,n)=>o(Ft(e),Ft(t),0,!0)};return Ze.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);Ze.isUndefined(a)&&i!==s||(n[r]=a)})),n}const Bt=e=>{const t=jt({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=Et.from(s),t.url=lt(Ut(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Ze.isFormData(r))if(_t.hasStandardBrowserEnv||_t.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(_t.hasStandardBrowserEnv&&(o&&Ze.isFunction(o)&&(o=o(t)),o||!1!==o&&Lt(t.url))){const e=i&&a&&It.read(a);e&&s.set(i,e)}return t},Mt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Bt(e);let o=r.data;const i=Et.from(r.headers).normalize();let a,s,l,c,d,{responseType:u,onUploadProgress:p,onDownloadProgress:f}=r;function m(){c&&c(),d&&d(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let h=new XMLHttpRequest;function g(){if(!h)return;const r=Et.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());At((function(e){t(e),m()}),(function(e){n(e),m()}),{data:u&&"text"!==u&&"json"!==u?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 Je("Request aborted",Je.ECONNABORTED,e,h)),h=null)},h.onerror=function(){n(new Je("Network Error",Je.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||dt;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Je(t,o.clarifyTimeoutError?Je.ETIMEDOUT:Je.ECONNABORTED,e,h)),h=null},void 0===o&&i.setContentType(null),"setRequestHeader"in h&&Ze.forEach(i.toJSON(),(function(e,t){h.setRequestHeader(t,e)})),Ze.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),u&&"json"!==u&&(h.responseType=r.responseType),f&&([l,d]=Ot(f,!0),h.addEventListener("progress",l)),p&&h.upload&&([s,c]=Ot(p),h.upload.addEventListener("progress",s),h.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{h&&(n(!t||t.type?new Tt(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===_t.protocols.indexOf(_)?n(new Je("Unsupported protocol "+_+":",Je.ERR_BAD_REQUEST,e)):h.send(o||null)}))},Dt=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){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 Je?t:new Tt(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new Je(`timeout ${t} of ms exceeded`,Je.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=()=>Ze.asap(a),s}},zt=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},Ht=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},qt=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of Ht(e))yield*zt(n,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw s(t),t}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},Wt="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Vt=Wt&&"function"==typeof ReadableStream,$t=Wt&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Gt=(e,...t)=>{try{return!!e(...t)}catch(Ci){return!1}},Yt=Vt&&Gt((()=>{let e=!1;const t=new Request(_t.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Zt=Vt&&Gt((()=>Ze.isReadableStream(new Response("").body))),Jt={stream:Zt&&(e=>e.body)};var Xt;Wt&&(Xt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Jt[e]&&(Jt[e]=Ze.isFunction(Xt[e])?t=>t[e]():(t,n)=>{throw new Je(`Response type '${e}' is not supported`,Je.ERR_NOT_SUPPORT,n)})})));const Kt=async(e,t)=>{const n=Ze.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(Ze.isBlob(e))return e.size;if(Ze.isSpecCompliantForm(e)){const t=new Request(_t.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Ze.isArrayBufferView(e)||Ze.isArrayBuffer(e)?e.byteLength:(Ze.isURLSearchParams(e)&&(e+=""),Ze.isString(e)?(await $t(e)).byteLength:void 0)})(t):n},Qt={http:null,xhr:Mt,fetch:Wt&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:d,withCredentials:u="same-origin",fetchOptions:p}=Bt(e);c=c?(c+"").toLowerCase():"text";let f,m=Dt([o,i&&i.toAbortSignal()],a);const h=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let g;try{if(l&&Yt&&"get"!==n&&"head"!==n&&0!==(g=await Kt(d,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(Ze.isFormData(r)&&(e=n.headers.get("content-type"))&&d.setContentType(e),n.body){const[e,t]=Rt(g,Ot(Pt(l)));r=qt(n.body,65536,e,t)}}Ze.isString(u)||(u=u?"include":"omit");const o="credentials"in Request.prototype;f=new Request(t,{...p,signal:m,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:o?u:void 0});let i=await fetch(f);const a=Zt&&("stream"===c||"response"===c);if(Zt&&(s||a&&h)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=Ze.toFiniteNumber(i.headers.get("content-length")),[n,r]=s&&Rt(t,Ot(Pt(s),!0))||[];i=new Response(qt(i.body,65536,n,(()=>{r&&r(),h&&h()})),e)}c=c||"text";let _=await Jt[Ze.findKey(Jt,c)||"text"](i,e);return!a&&h&&h(),await new Promise(((t,n)=>{At(t,n,{data:_,headers:Et.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:f})}))}catch(_){if(h&&h(),_&&"TypeError"===_.name&&/fetch/i.test(_.message))throw Object.assign(new Je("Network Error",Je.ERR_NETWORK,e,f),{cause:_.cause||_});throw Je.from(_,_&&_.code,e,f)}})};Ze.forEach(Qt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(Ci){}Object.defineProperty(e,"adapterName",{value:t})}}));const en=e=>`- ${e}`,tn=e=>Ze.isFunction(e)||null===e||!1===e,nn=e=>{e=Ze.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,!tn(n)&&(r=Qt[(t=String(n)).toLowerCase()],void 0===r))throw new Je(`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 Je("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(en).join("\n"):" "+en(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function rn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Tt(null,e)}function on(e){rn(e),e.headers=Et.from(e.headers),e.data=St.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return nn(e.adapter||bt.adapter)(e).then((function(t){return rn(e),t.data=St.call(e,e.transformResponse,t),t.headers=Et.from(t.headers),t}),(function(t){return Nt(t)||(rn(e),t&&t.response&&(t.response.data=St.call(e,e.transformResponse,t.response),t.response.headers=Et.from(t.response.headers))),Promise.reject(t)}))}const an="1.8.3",sn={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{sn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const ln={};sn.transitional=function(e,t,n){function r(e,t){return"[Axios v1.8.3] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Je(r(o," has been removed"+(t?" in "+t:"")),Je.ERR_DEPRECATED);return t&&!ln[o]&&(ln[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)}},sn.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const cn={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Je("options must be an object",Je.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 Je("option "+i+" must be "+n,Je.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Je("Unknown option "+i,Je.ERR_BAD_OPTION)}},validators:sn},dn=cn.validators;class un{constructor(e){this.defaults=e,this.interceptors={request:new ct,response:new ct}}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(Ci){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=jt(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&cn.assertOptions(n,{silentJSONParsing:dn.transitional(dn.boolean),forcedJSONParsing:dn.transitional(dn.boolean),clarifyTimeoutError:dn.transitional(dn.boolean)},!1),null!=r&&(Ze.isFunction(r)?t.paramsSerializer={serialize:r}:cn.assertOptions(r,{encode:dn.function,serialize:dn.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),cn.assertOptions(t,{baseUrl:dn.spelling("baseURL"),withXsrfToken:dn.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Ze.merge(o.common,o[t.method]);o&&Ze.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Et.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 d,u=0;if(!s){const e=[on.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),d=e.length,c=Promise.resolve(t);u<d;)c=c.then(e[u++],e[u++]);return c}d=a.length;let p=t;for(u=0;u<d;){const e=a[u++],t=a[u++];try{p=e(p)}catch(f){t.call(this,f);break}}try{c=on.call(this,p)}catch(f){return Promise.reject(f)}for(u=0,d=l.length;u<d;)c=c.then(l[u++],l[u++]);return c}getUri(e){return lt(Ut((e=jt(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}Ze.forEach(["delete","get","head","options"],(function(e){un.prototype[e]=function(t,n){return this.request(jt(n||{},{method:e,url:t,data:(n||{}).data}))}})),Ze.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(jt(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}un.prototype[e]=t(),un.prototype[e+"Form"]=t(!0)}));class pn{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 Tt(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)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new pn((function(t){e=t})),cancel:e}}}const fn={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(fn).forEach((([e,t])=>{fn[t]=e}));const mn=function e(t){const n=new un(t),r=de(un.prototype.request,n);return Ze.extend(r,un.prototype,n,{allOwnKeys:!0}),Ze.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(jt(t,n))},r}(bt);mn.Axios=un,mn.CanceledError=Tt,mn.CancelToken=pn,mn.isCancel=Nt,mn.VERSION=an,mn.toFormData=rt,mn.AxiosError=Je,mn.Cancel=mn.CanceledError,mn.all=function(e){return Promise.all(e)},mn.spread=function(e){return function(t){return e.apply(null,t)}},mn.isAxiosError=function(e){return Ze.isObject(e)&&!0===e.isAxiosError},mn.mergeConfig=jt,mn.AxiosHeaders=Et,mn.formToJSON=e=>yt(Ze.isHTMLForm(e)?new FormData(e):e),mn.getAdapter=nn,mn.HttpStatusCode=fn,mn.default=mn;class hn{constructor(){__privateAdd(this,e)}initClient(t,n){__privateSet(this,e,mn.create({baseURL:`${this.url(t)}/backend`,allowAbsoluteUrls:!1})),n&&__privateGet(this,e).interceptors.request.use(n)}getClient(){return __privateGet(this,e)}}e=new WeakMap;const gn={backend:new class extends hn{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 _n;class yn{constructor(){__privateAdd(this,t),__privateAdd(this,n),__privateAdd(this,r),__privateAdd(this,o,(async e=>(_n||(_n=await gn.backend.getIdToken()),e.headers.Authorization=`Bearer ${_n}`,e)))}initClient(e,i,a){__privateSet(this,n,e),__privateSet(this,r,i),__privateSet(this,t,mn.create({baseURL:`${this.url(e)}/workplace-backend`,headers:{"X-PROFILE-ID":i},allowAbsoluteUrls:!1})),__privateGet(this,t).interceptors.request.use(__privateGet(this,o)),a&&__privateGet(this,t).interceptors.request.use(a)}getClient(){return __privateGet(this,t)}async getIdToken(){return _n||(_n=await gn.backend.getIdToken()),_n}getBaseUrl(){return __privateGet(this,n)}getProfileId(){return __privateGet(this,r)}}t=new WeakMap,n=new WeakMap,r=new WeakMap,o=new WeakMap;const bn=e=>{var t,n;throw"Auth_SessionExpired"===(null==(n=null==(t=e.response)?void 0:t.data)?void 0:n.code)&&ce(),e};let wn=(a=class extends yn{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,n){await this.getClient().post("/v1.0/analytics/track",{event:e,properties:t},{params:n}).catch((e=>{}))}},i=new WeakMap,a);const vn={backend:new class extends hn{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),bn),this.sourceId=n}async init(){return this.getClient().post("/init",{source:"Onboarding",sourceId:this.sourceId}).then((e=>e.data))}command(e,t){return this.getClient().post("/command",{source:"Onboarding",sourceId:this.sourceId,...e},{params:t})}},workplaceBackend:new wn};const xn={workplaceBackend:new class extends yn{url(e){return`${e}/benefits-plan`}getAllowanceProductsStatus(e){return this.getClient().get("/v2.0/allowance/products/status",{params:{activityIds:e.join(",")}}).then((e=>e.data))}}},kn=(e,t)=>e,Cn=(e,t)=>n=>(n.params={...n.params??{},client:e.client,source:e.source,channel:e.channel},t&&n.headers.setAuthorization(`Bearer ${t}`),n),En=(e,t,n)=>{const r=function(e,t){if("string"!=typeof e)throw new ie("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 ie(`Invalid token specified: missing part #${n+1}`);let o;try{o=ae(r)}catch(Ci){throw new ie(`Invalid token specified: invalid base64 for part #${n+1} (${Ci.message})`)}try{return JSON.parse(o)}catch(Ci){throw new ie(`Invalid token specified: invalid json for part #${n+1} (${Ci.message})`)}}(t).sub,o=Cn(n,t),i=Cn(n),a=kn(e),s=kn(e),l=kn(e);vn.backend.initClient(a,o,n.workflowsInstanceId),vn.workplaceBackend.initClient(a,r,i),gn.backend.initClient(s,o),xn.workplaceBackend.initClient(l,r,i)};var Sn,Nn,Tn,An,On=0,Rn=[],Pn=[],Ln=l,In=Ln.__b,Un=Ln.__r,Fn=Ln.diffed,jn=Ln.__c,Bn=Ln.unmount,Mn=Ln.__;function Dn(e,t){Ln.__h&&Ln.__h(Nn,e,On||t),On=0;var n=Nn.__H||(Nn.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Pn}),n.__[e]}function zn(e){return On=1,Hn(or,e)}function Hn(e,t,n){var r=Dn(Sn++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):or(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=Nn,!Nn.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))};Nn.u=!0;var i=Nn.shouldComponentUpdate,a=Nn.componentWillUpdate;Nn.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)},Nn.shouldComponentUpdate=o}return r.__N||r.__}function qn(e,t){var n=Dn(Sn++,3);!Ln.__s&&rr(n.__H,t)&&(n.__=e,n.i=t,Nn.__H.__h.push(n))}function Wn(e,t){var n=Dn(Sn++,4);!Ln.__s&&rr(n.__H,t)&&(n.__=e,n.i=t,Nn.__h.push(n))}function Vn(e){return On=5,Gn((function(){return{current:e}}),[])}function $n(e,t,n){On=6,Wn((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 Gn(e,t){var n=Dn(Sn++,7);return rr(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Yn(e,t){return On=8,Gn((function(){return e}),t)}function Zn(e){var t=Nn.context[e.__c],n=Dn(Sn++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(Nn)),t.props.value):e.__}function Jn(e,t){Ln.useDebugValue&&Ln.useDebugValue(t?t(e):e)}function Xn(){var e=Dn(Sn++,11);if(!e.__){for(var t=Nn.__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 Kn(){for(var e;e=Rn.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(tr),e.__H.__h.forEach(nr),e.__H.__h=[]}catch(t){e.__H.__h=[],Ln.__e(t,e.__v)}}Ln.__b=function(e){Nn=null,In&&In(e)},Ln.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Mn&&Mn(e,t)},Ln.__r=function(e){Un&&Un(e),Sn=0;var t=(Nn=e.__c).__H;t&&(Tn===Nn?(t.__h=[],Nn.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=Pn,e.__N=e.i=void 0}))):(t.__h.forEach(tr),t.__h.forEach(nr),t.__h=[],Sn=0)),Tn=Nn},Ln.diffed=function(e){Fn&&Fn(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Rn.push(t)&&An===Ln.requestAnimationFrame||((An=Ln.requestAnimationFrame)||er)(Kn)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==Pn&&(e.__=e.__V),e.i=void 0,e.__V=Pn}))),Tn=Nn=null},Ln.__c=function(e,t){t.some((function(e){try{e.__h.forEach(tr),e.__h=e.__h.filter((function(e){return!e.__||nr(e)}))}catch(Vi){t.some((function(e){e.__h&&(e.__h=[])})),t=[],Ln.__e(Vi,e.__v)}})),jn&&jn(e,t)},Ln.unmount=function(e){Bn&&Bn(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{tr(e)}catch(n){t=n}})),n.__H=void 0,t&&Ln.__e(t,n.__v))};var Qn="function"==typeof requestAnimationFrame;function er(e){var t,n=function(){clearTimeout(r),Qn&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Qn&&(t=requestAnimationFrame(n))}function tr(e){var t=Nn,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),Nn=t}function nr(e){var t=Nn;e.__c=e.__(),Nn=t}function rr(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function or(e,t){return"function"==typeof t?t(e):t}function ir(e,t){for(var n in t)e[n]=t[n];return e}function ar(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 sr(e,t){this.props=e,this.context=t}function lr(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:ar(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}(sr.prototype=new E).isPureReactComponent=!0,sr.prototype.shouldComponentUpdate=function(e,t){return ar(this.props,e)||ar(this.state,t)};var cr=l.__b;l.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),cr&&cr(e)};var dr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ur(e){function t(t){var n=ir({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=dr,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var pr=function(e,t){return null==e?null:L(L(e).map(t))},fr={map:pr,forEach:pr,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},mr=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);mr(e,t,n,r)};var hr=l.unmount;function gr(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=ir({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return gr(e,t,n)}))),e}function _r(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return _r(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 yr(){this.__u=0,this.t=null,this.__b=null}function br(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function wr(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 vr(){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),hr&&hr(e)},(yr.prototype=new E).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=br(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]=_r(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)},yr.prototype.componentWillUnmount=function(){this.t=[]},yr.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]=gr(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&v(C,null,e.fallback);return o&&(o.__u&=-33),[v(C,null,t.__a?null:e.children),o]};var xr=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 kr(e){return this.getChildContext=function(){return e.context},e.children}function Cr(e){var t=this,n=e.i;t.componentWillUnmount=function(){W(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)}}),W(v(kr,{context:t.context},e.__v),t.l)}function Er(e,t){var n=v(Cr,{__v:e,i:t});return n.containerInfo=t,n}(vr.prototype=new E).__a=function(e){var t=this,n=br(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),xr(t,e,r)):o()};n?n(i):i()}},vr.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},vr.prototype.componentDidUpdate=vr.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){xr(e,n,t)}))};var Sr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Nr=/^(?: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]/,Tr=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Ar=/[A-Z0-9]/g,Or="undefined"!=typeof document,Rr=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function Pr(e,t,n){return null==t.__k&&(t.textContent=""),W(e,t),"function"==typeof n&&n(),e?e.__c:null}function Lr(e,t,n){return V(e,t),"function"==typeof n&&n(),e?e.__c:null}E.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(E.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Ir=l.event;function Ur(){}function Fr(){return this.cancelBubble}function jr(){return this.defaultPrevented}l.event=function(e){return Ir&&(e=Ir(e)),e.persist=Ur,e.isPropagationStopped=Fr,e.isDefaultPrevented=jr,e.nativeEvent=e};var Br,Mr={enumerable:!1,configurable:!0,get:function(){return this.class}},Dr=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||Or&&"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||Rr(t.type)?"onfocus"===a?o="onfocusin":"onblur"===a?o="onfocusout":Tr.test(o)?o=a:-1===n.indexOf("-")&&Nr.test(o)?o=o.replace(Ar,"-$&").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",Mr)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=Sr,Dr&&Dr(e)};var zr=l.__r;l.__r=function(e){zr&&zr(e),Br=e.__c};var Hr=l.diffed;l.diffed=function(e){Hr&&Hr(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),Br=null};var qr={ReactCurrentDispatcher:{current:{readContext:function(e){return Br.__n[e.__c].props.value}}}};function Wr(e){return v.bind(null,e)}function Vr(e){return!!e&&e.$$typeof===Sr}function $r(e){return Vr(e)&&e.type===C}function Gr(e){return Vr(e)?$.apply(null,arguments):e}function Yr(e){return!!e.__k&&(W(null,e),!0)}function Zr(e){return e&&(e.base||1===e.nodeType&&e)||null}var Jr=function(e,t){return e(t)},Xr=function(e,t){return e(t)},Kr=C;function Qr(e){e()}function eo(e){return e}function to(){return[!1,Qr]}var no=Wn,ro=Vr;function oo(e,t){var n=t(),r=zn({h:{__:n,v:t}}),o=r[0].h,i=r[1];return Wn((function(){o.__=n,o.v=t,io(o)&&i({h:o})}),[e,n,t]),qn((function(){return io(o)&&i({h:o}),e((function(){io(o)&&i({h:o})}))}),[e]),n}function io(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 ao={useState:zn,useId:Xn,useReducer:Hn,useEffect:qn,useLayoutEffect:Wn,useInsertionEffect:no,useTransition:to,useDeferredValue:eo,useSyncExternalStore:oo,startTransition:Qr,useRef:Vn,useImperativeHandle:$n,useMemo:Gn,useCallback:Yn,useContext:Zn,useDebugValue:Jn,version:"17.0.2",Children:fr,render:Pr,hydrate:Lr,unmountComponentAtNode:Yr,createPortal:Er,createElement:v,createContext:G,createFactory:Wr,cloneElement:Gr,createRef:k,Fragment:C,isValidElement:Vr,isElement:ro,isFragment:$r,findDOMNode:Zr,Component:E,PureComponent:sr,memo:lr,forwardRef:ur,flushSync:Xr,unstable_batchedUpdates:Jr,StrictMode:Kr,Suspense:yr,SuspenseList:vr,lazy:wr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:qr};const so=Object.freeze(Object.defineProperty({__proto__:null,Children:fr,Component:E,Fragment:C,PureComponent:sr,StrictMode:Kr,Suspense:yr,SuspenseList:vr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:qr,cloneElement:Gr,createContext:G,createElement:v,createFactory:Wr,createPortal:Er,createRef:k,default:ao,findDOMNode:Zr,flushSync:Xr,forwardRef:ur,hydrate:Lr,isElement:ro,isFragment:$r,isValidElement:Vr,lazy:wr,memo:lr,render:Pr,startTransition:Qr,unmountComponentAtNode:Yr,unstable_batchedUpdates:Jr,useCallback:Yn,useContext:Zn,useDebugValue:Jn,useDeferredValue:eo,useEffect:qn,useErrorBoundary:function(e){var t=Dn(Sn++,10),n=zn();return t.__=e,Nn.componentDidCatch||(Nn.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:Xn,useImperativeHandle:$n,useInsertionEffect:no,useLayoutEffect:Wn,useMemo:Gn,useReducer:Hn,useRef:Vn,useState:zn,useSyncExternalStore:oo,useTransition:to,version:"17.0.2"},Symbol.toStringTag,{value:"Module"})),lo=e=>v("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v("g",{clipPath:"url(#clip0_2383_2245)"},v("path",{d:"M0.639604 38.9047C1.28749 39.5526 2.27104 39.7271 3.10223 39.3416L25.6608 29.6293C26.7649 29.1174 27.0229 27.663 26.1624 26.8024L12.7907 13.4307C11.9301 12.57 10.4757 12.8281 9.96369 13.9323L0.202679 36.442C-0.182768 37.2732 -0.00828658 38.2568 0.639604 38.9047Z",fill:"#FFE266"}),v("path",{d:"M19.4314 27.5018L2.84876 34.6411C2.2627 34.9129 1.57431 34.8051 1.09874 34.3757L0.202679 36.4421C-0.182768 37.2734 -0.00828658 38.2568 0.639604 38.9047C1.28749 39.5526 2.27104 39.7271 3.10223 39.3416L25.4444 29.7226C24.9297 29.5162 19.5151 27.463 19.4314 27.5018Z",fill:"#EFAA66"}),v("path",{d:"M26.3181 28.7173C27.8596 27.1758 25.6184 22.4355 21.3124 18.1295C17.0064 13.8234 12.2661 11.5823 10.7246 13.1238C9.18318 14.6652 11.4243 19.4055 15.7303 23.7115C20.0364 28.0176 24.7767 30.2587 26.3181 28.7173Z",fill:"#FFE266"}),v("path",{d:"M22.4126 26.7308C23.4237 25.7197 21.7859 22.4424 18.7543 19.4109C15.7228 16.3793 12.4455 14.7415 11.4344 15.7526C10.4232 16.7638 12.0611 20.0411 15.0926 23.0726C18.1242 26.1042 21.4014 27.742 22.4126 26.7308Z",fill:"#EFAA66"}),v("path",{d:"M24.9319 30.0073C22.4747 30.0073 18.6692 27.78 15.1683 24.2792C11.9894 21.1002 9.81107 17.5992 9.48367 15.1424C9.42522 14.7034 9.73353 14.3002 10.1725 14.2417C10.6111 14.1834 11.0148 14.4916 11.0732 14.9306C11.3522 17.0232 13.4048 20.2477 16.3024 23.1452C20.0047 26.8476 23.4188 28.4618 25.0232 28.4018C25.4652 28.3857 25.8386 28.7288 25.8563 29.1713C25.8738 29.6137 25.5294 29.9868 25.0868 30.0043C25.0359 30.0062 24.984 30.0073 24.9319 30.0073Z",fill:"#D0844B"}),v("path",{d:"M16.3577 17.6285C16.1695 17.4403 16.0243 17.2039 15.9436 16.9306L15.2021 14.4208C14.922 13.473 15.1748 12.4576 15.8616 11.7708L17.2095 10.4229C17.8963 9.73605 18.9118 9.48339 19.8596 9.76347L22.5594 10.5255L21.6488 7.2768C21.3908 6.40351 21.8896 5.48644 22.7629 5.22841C23.6362 4.97037 24.5532 5.4692 24.8113 6.34249L25.5528 8.85226C25.8328 9.80012 25.5801 10.8156 24.8934 11.5023L23.5455 12.8502C22.8587 13.5369 21.8432 13.7896 20.8955 13.5096L18.1681 12.6202L19.1061 15.9963C19.3642 16.8696 18.8653 17.7866 17.9921 18.0447C17.3919 18.222 16.771 18.0419 16.3577 17.6285Z",fill:"#CAB4EF"}),v("path",{d:"M22.5594 10.5256L19.8596 9.76358C19.0449 9.52286 18.1805 9.67602 17.5176 10.1598C17.7032 10.902 17.9393 11.8894 18.168 12.6202L20.8954 13.5096C21.7487 13.7617 22.6567 13.5819 23.3305 13.0424C23.0918 12.2954 22.7865 11.2761 22.5594 10.5256Z",fill:"#A183E2"}),v("path",{d:"M26.8006 16.4551C26.9888 16.6433 27.2253 16.7885 27.4985 16.8692L30.0083 17.6106C30.956 17.8906 31.9715 17.638 32.6583 16.9512L34.0062 15.6033C34.693 14.9164 34.9457 13.901 34.6656 12.9532L33.9036 10.2534L37.1523 11.1639C38.0256 11.4219 38.9427 10.9231 39.2008 10.0498C39.4588 9.17651 38.96 8.25944 38.0867 8.00141L35.5769 7.25994C34.6291 6.97994 33.6136 7.23268 32.9269 7.91938L31.579 9.26728C30.8922 9.95406 30.6396 10.9695 30.9196 11.9173L31.8089 14.6447L28.4328 13.7066C27.5595 13.4486 26.6425 13.9474 26.3844 14.8207C26.2071 15.4209 26.3872 16.0418 26.8006 16.4551Z",fill:"#F7C4DB"}),v("path",{d:"M34.6649 12.9532L33.9029 10.2533C33.1175 10.0841 32.0186 9.8675 31.2346 9.69165C30.8149 10.3375 30.692 11.1496 30.9189 11.9173L31.8082 14.6447C32.6214 14.8455 33.4818 14.984 34.2625 15.3037C34.7512 14.6396 34.9067 13.7713 34.6649 12.9532Z",fill:"#EF8BBD"}),v("path",{d:"M30.639 2.8965C30.1162 3.4193 29.2684 3.4193 28.7456 2.8965C28.2228 2.3737 28.2228 1.52599 28.7456 1.00319C29.2684 0.480383 30.1162 0.480383 30.639 1.00319C31.1618 1.52607 31.1618 2.3737 30.639 2.8965Z",fill:"#FFA585"}),v("path",{d:"M32.6591 25.138C33.3985 25.138 33.9979 24.5386 33.9979 23.7992C33.9979 23.0598 33.3985 22.4604 32.6591 22.4604C31.9197 22.4604 31.3203 23.0598 31.3203 23.7992C31.3203 24.5386 31.9197 25.138 32.6591 25.138Z",fill:"#78EAC4"}),v("path",{d:"M25.3352 24.9889C24.8124 25.5117 23.9647 25.5117 23.4419 24.9889C22.9191 24.4661 22.9191 23.6184 23.4419 23.0956C23.9647 22.5728 24.8124 22.5728 25.3352 23.0956C25.858 23.6185 25.858 24.4661 25.3352 24.9889Z",fill:"#78EAC4"}),v("path",{d:"M25.3352 24.9889C24.8124 25.5117 23.9647 25.5117 23.4419 24.9889C22.9191 24.4661 22.9191 23.6184 23.4419 23.0956C23.9647 22.5728 24.8124 22.5728 25.3352 23.0956C25.858 23.6185 25.858 24.4661 25.3352 24.9889Z",fill:"#8BB6EF"}),v("path",{d:"M7.28893 28.9138C7.18316 28.9138 7.07556 28.8927 6.97228 28.8482C6.5655 28.6731 6.37771 28.2014 6.55291 27.7946L7.56837 25.4361C7.74349 25.0294 8.2153 24.8413 8.62191 25.0167C9.02869 25.1919 9.21648 25.6635 9.04128 26.0703L8.02582 28.4288C7.8952 28.7322 7.59956 28.9138 7.28893 28.9138Z",fill:"white"}),v("path",{d:"M9.44127 23.916C9.33551 23.916 9.22798 23.895 9.12454 23.8505C8.71785 23.6753 8.53005 23.2037 8.70526 22.7968L9.01477 22.0779C9.18989 21.6713 9.66137 21.4832 10.0684 21.6586C10.4751 21.8337 10.6629 22.3054 10.4878 22.7122L10.1782 23.4312C10.0475 23.7344 9.75182 23.916 9.44127 23.916Z",fill:"white"}),v("path",{d:"M15.7341 0.651858L16.3927 2.50396C16.4209 2.58326 16.4767 2.64613 16.5472 2.67788L18.1927 3.41926C18.4251 3.52399 18.4251 3.89436 18.1927 3.99916L16.5472 4.74054C16.4767 4.7723 16.4209 4.83516 16.3927 4.91438L15.7341 6.76648C15.6411 7.02813 15.3119 7.02813 15.2189 6.76648L14.5603 4.91438C14.532 4.83508 14.4762 4.77222 14.4057 4.74054L12.7603 3.99916C12.5278 3.89444 12.5278 3.52407 12.7603 3.41926L14.4057 2.67788C14.4762 2.64613 14.532 2.58326 14.5603 2.50396L15.2189 0.651858C15.3119 0.390136 15.6411 0.390136 15.7341 0.651858Z",fill:"#F7C4DB"}),v("path",{d:"M38.0472 17.3018L38.5357 18.6756C38.5567 18.7344 38.598 18.781 38.6503 18.8046L39.8709 19.3545C40.0434 19.4322 40.0434 19.7069 39.8709 19.7846L38.6503 20.3345C38.598 20.3581 38.5567 20.4047 38.5357 20.4635L38.0472 21.8373C37.9781 22.0314 37.734 22.0314 37.665 21.8373L37.1764 20.4635C37.1555 20.4047 37.1141 20.3581 37.0618 20.3345L35.8413 19.7846C35.6688 19.7069 35.6688 19.4322 35.8413 19.3545L37.0618 18.8046C37.1141 18.781 37.1555 18.7344 37.1764 18.6756L37.665 17.3018C37.734 17.1077 37.9781 17.1077 38.0472 17.3018Z",fill:"#CAB4EF"}),v("path",{d:"M28.9622 6.95622C29.3048 6.95622 29.5826 6.67847 29.5826 6.33584C29.5826 5.99321 29.3048 5.71545 28.9622 5.71545C28.6196 5.71545 28.3418 5.99321 28.3418 6.33584C28.3418 6.67847 28.6196 6.95622 28.9622 6.95622Z",fill:"#78EAC4"}),v("path",{d:"M38.3556 2.49627C38.4328 1.86823 37.9862 1.29654 37.3581 1.21937C36.73 1.14221 36.1583 1.58878 36.0811 2.21683C36.004 2.84487 36.4506 3.41656 37.0787 3.49373C37.7068 3.57089 38.2785 3.12432 38.3556 2.49627Z",fill:"#8BB6EF"})),v("defs",null,v("clipPath",{id:"clip0_2383_2245"},v("rect",{width:40,height:40,fill:"white"}))));var co=0;function uo(e,t,n,r,o,i){var a,s,c={};for(s in t)"ref"==s?a=t[s]:c[s]=t[s];var d={type:e,props:c,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--co,__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(d),d}const po={isFetching:!1,isInitialized:!1,offers:[],isAppEnabled:!1,identity:{email:"",phoneNumber:"",verifiedPhoneNumber:""},featureFlags:{marketplaceScheme:{scheme:"promotion"},marketplaceSubNavigation:!1},hostInformation:{channel:"",client:"",source:"",experiment:"",treatment:"",workflowsJourneyType:ne.BenefitsOnboarding,workflowsInstanceId:""},updateIdentity:e=>Promise.resolve(),getIdentityRegistrationStatus:()=>"Unregistered",getWorkplaceLinkingStatus:()=>"Unlinked",offersProgress:{update:()=>({}),hasCompletedAnyOffers:()=>!1,isOfferCompleted:()=>!1,isOfferProgressed:()=>!1,canOfferSkipToEstimate:()=>!1}},fo=G(po),mo=({children:e,...t})=>{const[n,r]=zn(!1),[o,i]=zn(!1),[a,s]=zn(),l=Vn("Unregistered"),c=Vn("Unlinked"),d=Vn({}),u=Gn((()=>"allowance"===(null==a?void 0:a.featureFlags.marketplaceScheme)),[null==a?void 0:a.featureFlags.marketplaceScheme]),p=Gn((()=>a?(e=>{const t=e.find((e=>"Perks"===e.name));return t?[...e.filter((e=>e!==t)).slice(0,4),t]:e.slice(0,5)})(a.offers):[]),[a]),f=Yn((()=>l.current),[]),m=Yn((()=>c.current),[]),h=Yn((()=>Object.entries(d.current).some((e=>"Perks"!==e[0]&&e[1].isCompleted))),[]),g=Yn(((e,t,n)=>{d.current[e]={isEnrolled:t,isCompleted:n}}),[]),_=Yn((e=>{e.offers.filter((e=>void 0!==e.isAccepted)).forEach((e=>{const t="Assessment"!==e.content.template||void 0;g(e.name,!!e.isAccepted,t)}))}),[g]),y=Yn((async()=>{if(!u)return;const e=p.filter((e=>"Assessment"===e.content.template));e.length<=0||(r(!0),await xn.workplaceBackend.getAllowanceProductsStatus(e.map((e=>e.content.assessmentId))).then((t=>{t.filter((e=>!!e.status)).forEach((t=>{const n=e.find((e=>e.content.assessmentId===t.activityId)).name;g(n,!0,!0)}))})).catch(),r(!1))}),[u,p,g]),b=Yn((e=>{var t;return!0===(null==(t=d.current[e])?void 0:t.isCompleted)}),[d]),w=Yn((e=>!!d.current[e]),[d]),v=Yn((e=>u&&b(e)),[u,b]),x=Yn((async e=>{e?("Unregistered"===l.current&&(l.current="NewlyRegistered"),"Unlinked"===c.current&&(c.current="NewlyLinked"),await y()):l.current="RegistrationAbandoned"}),[y]),k=Gn((()=>{return e=(null==a?void 0:a.identity.email)??"",t=h(),{joinBenefits:{desktopImageUrl:re,mobileImageUrl:oe,title:"Your workplace benefits program",description:"Your employer has partnered with Flare Benefits to give you exclusive access to savings and perks from Australia's most-loved brands.",specialBanner:{title:"Flare Benefits Allowance",icon:uo(lo,{}),subTitle:uo("span",{children:["As an additional bonus, you have been allocated an allowance of up to ",uo("b",{children:"$1,300"})," as part of your benefits program. Set up your benefits today to be eligible."]})},buttonText:"Get Started"},setUpBenefits:{title:"Unlock your $1,300 Flare Benefits Allowance",description:"You've been allocated up to $1,300 for reimbursement as part of your Flare Benefits Allowance. Make your selections today, to be eligible for reimbursement later.",buttonText:"Set up your benefits",progress:{title:"See how it works",steps:[{title:"Join your workplace benefits program",completed:!0},{title:"Select the benefits you want to include as part of your allowance.",completed:!1},{title:"Purchase or switch to an eligible product",completed:!1},{title:"Keep your product for 90 days and we'll send you a Flare gift card",completed:!1}]},termsAndConditions:()=>uo("div",{className:"flex flex-col gap-2",children:uo("span",{children:["Allowance offer expires today.",uo("br",{})," Exclusions and limitations apply. See full"," ",uo("a",{target:"_blank",rel:"noreferrer",href:"https://www.flarehr.com/flare-benefits-allowance-terms",children:"T&Cs"}),"."]})})},summary:t?{title:"Congratulations, you've unlocked your benefits allowance",description:`We've sent an email to ${e} with more information about your benefits program and how you can get reimbursed as part of your allowance`,buttonText:"Finish benefits setup",progress:{title:"How this works",steps:[{title:"Join your workplace benefits program",completed:!0},{title:"Complete your benefits setup today",completed:!0},{title:"Purchase or switch to an eligible product within 30 days",description:"Make sure you make an eligible purchase within the first 30 days.",completed:!1},{title:"Qualify for reimbursement within 90 days and we'll send you a Flare gift card",completed:!1}]}}:{title:"You're all set!",description:"You've finished setting up your benefits plan. Continue to review your details and finish up your workplace onboarding.",buttonText:"Finish benefits setup"}};var e,t}),[null==a?void 0:a.identity.email,h]),C=Gn((()=>{if(!a)return po;const e=a.offers.some((e=>"Perks"===e.name));l.current=a.identity.isRegistered?"PreviouslyRegistered":"Unregistered",c.current=a.workplace.isLinkedWithIdentity?"PreviouslyLinked":"Unlinked";const r={email:a.identity.email,phoneNumber:a.identity.phoneNumber??"",verifiedPhoneNumber:a.identity.verifiedPhoneNumber??""};return{isFetching:n,isInitialized:o,offers:p,isAppEnabled:e,identity:r,featureFlags:{marketplaceScheme:"promotion"===a.featureFlags.marketplaceScheme?{scheme:"promotion"}:{scheme:"allowance",content:k},marketplaceSubNavigation:a.featureFlags.marketplaceSubNavigation},hostInformation:{...t.hostInformation,treatment:a.featureFlags.marketplaceScheme},updateIdentity:x,getIdentityRegistrationStatus:f,getWorkplaceLinkingStatus:m,offersProgress:{hasCompletedAnyOffers:h,update:g,isOfferCompleted:b,isOfferProgressed:w,canOfferSkipToEstimate:v}}}),[a,n,o,p,k,t.hostInformation,x,f,m,h,g,b,w,v]);return qn((()=>{(async()=>{const e=await vn.backend.init();s(e),_(e),i(!0)})()}),[_]),uo(fo.Provider,{value:C,children:e})},ho=e=>{const t=null==e?void 0:e.match(/^(https:\/\/)?(test|autodev|sandbox)?-?partner\.flarehr\.com$/);return t&&t[2]?t[2]:"prod"};const go={init(e){!function(e){try{return t=window,n=document,r="clarity",o="script",i=e,void(n.getElementById("clarity-script")||(t[r]=t[r]||function(){(t[r].q=t[r].q||[]).push(arguments)},(a=n.createElement(o)).async=1,a.src="https://www.clarity.ms/tag/"+i+"?ref=npm",a.id="clarity-script",(s=n.getElementsByTagName(o)[0]).parentNode.insertBefore(a,s)))}catch(l){return}var t,n,r,o,i,a,s}(e)},setTag(e,t){window.clarity("set",e,t)},identify(e,t,n,r){window.clarity("identify",e,t,n,r)},consent(e=!0){window.clarity("consent",e)},upgrade(e){window.clarity("upgrade",e)},event(e){window.clarity("event",e)}},_o=({children:e})=>uo(C,{children:e}),yo=({children:e})=>uo(C,{children:e}),bo=({open:e,children:t})=>{const n=Gn((()=>ao.Children.toArray(t).find((e=>e.type===_o))),[t]),r=Gn((()=>ao.Children.toArray(t).find((e=>e.type===yo))),[t]),[o,i]=zn(!e);return qn((()=>{let t;return e?i(!1):t=setTimeout((()=>{i(!0)}),200),()=>{t&&clearTimeout(t)}}),[e]),uo("div",{hidden:o,children:uo("div",{className:"z-50 fixed flex items-center justify-center w-screen h-screen inset-0 bg-white overflow-hidden transition-opacity "+(e?"ease-out duration-300 opacity-100":"ease-in duration-200 opacity-0"),children:[n,uo("div",{className:"mt-4",children:r})]})})},wo=e=>uo("span",{className:"inline-flex",children:uo("span",{className:"animate-spin",children:uo("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:[uo("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"}),uo("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"})]})})}),vo='/*! 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}.\\!visible{visibility:visible!important}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.inset-y-0{bottom:0;top:0}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.z-50{z-index:50}.m-0{margin:0}.m-0\\.5{margin:.125rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.mr-10{margin-right:2.5rem}.mr-3{margin-right:.75rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.line-clamp-2{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.hidden{display:none}.h-10{height:2.5rem}.h-12{height:3rem}.h-16{height:4rem}.h-4{height:1rem}.h-40{height:10rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-\\[90\\%\\]{height:90%}.h-full{height:100%}.h-screen{height:100vh}.max-h-10{max-height:2.5rem}.max-h-12{max-height:3rem}.max-h-4{max-height:1rem}.max-h-6{max-height:1.5rem}.max-h-8{max-height:2rem}.min-h-12{min-height:3rem}.min-h-4{min-height:1rem}.min-h-6{min-height:1.5rem}.min-h-8{min-height:2rem}.w-10{width:2.5rem}.w-16{width:4rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-full{width:100%}.w-screen{width:100vw}.min-w-10{min-width:2.5rem}.min-w-4{min-width:1rem}.min-w-6{min-width:1.5rem}.min-w-8{min-width:2rem}.max-w-10{max-width:2.5rem}.max-w-20{max-width:5rem}.max-w-4{max-width:1rem}.max-w-6{max-width:1.5rem}.max-w-8{max-width:2rem}.max-w-\\[30rem\\]{max-width:30rem}.max-w-\\[40rem\\]{max-width:40rem}.max-w-\\[59\\.5rem\\]{max-width:59.5rem}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.-translate-y-6{--tw-translate-y:-1.5rem}.-translate-y-6,.translate-y-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y:0px}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-auto{cursor:auto}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.25rem*var(--tw-space-x-reverse))}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1.5rem*var(--tw-space-x-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.self-start{align-self:flex-start}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.break-words{overflow-wrap:break-word}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.\\!border-0{border-width:0!important}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.\\!border-gray-300{--tw-border-opacity:1!important;border-color:rgb(209 213 219/var(--tw-border-opacity))!important}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-primary-base{border-color:var(--fl-color-primary)}.border-transparent{border-color:transparent}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-primary-base{background-color:var(--fl-color-primary)}.bg-teal-50{--tw-bg-opacity:1;background-color:rgb(240 253 250/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.fill-gray-200{fill:#e5e7eb}.fill-primary-base{fill:var(--fl-color-primary)}.fill-white{fill:#fff}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-px{padding-left:1px;padding-right:1px}.py-0{padding-bottom:0;padding-top:0}.py-0\\.5{padding-bottom:.125rem;padding-top:.125rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.pb-6{padding-bottom:1.5rem}.pb-8{padding-bottom:2rem}.pl-3{padding-left:.75rem}.pr-3{padding-right:.75rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.font-inter{font-family:Inter,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.leading-8{line-height:2rem}.leading-none{line-height:1}.leading-tight{line-height:1.25}.tracking-wide{letter-spacing:.025em}.\\!text-gray-700{--tw-text-opacity:1!important;color:rgb(55 65 81/var(--tw-text-opacity))!important}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity))}.text-primary-base{color:var(--fl-color-primary)}.text-rose-500{--tw-text-opacity:1;color:rgb(244 63 94/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.accent-primary-base{accent-color:var(--fl-color-primary)}.opacity-0{opacity:0}.opacity-10{opacity:.1}.opacity-100{opacity:1}.\\!shadow-none{--tw-shadow:0 0 #0000!important;--tw-shadow-colored:0 0 #0000!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-gray-200{--tw-ring-opacity:1;--tw-ring-color:rgb(229 231 235/var(--tw-ring-opacity))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.delay-300{transition-delay:.3s}.duration-1000{transition-duration:1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-700{transition-duration:.7s}.duration-\\[600ms\\]{transition-duration:.6s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:left-4:after{content:var(--tw-content);left:1rem}.after\\:top-8:after{content:var(--tw-content);top:2rem}.after\\:inline-block:after{content:var(--tw-content);display:inline-block}.after\\:h-\\[calc\\(100\\%-theme\\(height\\.8\\)\\)\\]:after{content:var(--tw-content);height:calc(100% - 2rem)}.after\\:w-0:after{content:var(--tw-content);width:0}.after\\:w-0\\.5:after{content:var(--tw-content);width:.125rem}.after\\:bg-gray-300:after{content:var(--tw-content);--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.after\\:bg-primary-base:after{background-color:var(--fl-color-primary);content:var(--tw-content)}.after\\:content-\\[\\\'\\\'\\]:after{--tw-content:"";content:var(--tw-content)}.hover\\:\\!bg-gray-100:hover{--tw-bg-opacity:1!important;background-color:rgb(243 244 246/var(--tw-bg-opacity))!important}.hover\\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.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}.hover\\:before\\:absolute:hover:before{content:var(--tw-content);position:absolute}.hover\\:before\\:h-16:hover:before{content:var(--tw-content);height:4rem}.hover\\:before\\:w-16:hover:before{content:var(--tw-content);width:4rem}.hover\\:before\\:cursor-default:hover:before{content:var(--tw-content);cursor:default}.hover\\:before\\:cursor-pointer:hover:before{content:var(--tw-content);cursor:pointer}.hover\\:before\\:content-\\[\\\'\\\'\\]:hover:before{--tw-content:"";content:var(--tw-content)}.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-11{margin-top:2.75rem}.md\\:mt-14{margin-top:3.5rem}.md\\:mt-3{margin-top:.75rem}.md\\:mt-6{margin-top:1.5rem}.md\\:block{display:block}.md\\:grid{display:grid}.md\\:hidden{display:none}.md\\:w-\\[240px\\]{width:240px}.md\\:w-\\[300px\\]{width:300px}.md\\:w-auto{width:auto}.md\\:w-full{width:100%}.md\\:max-w-\\[27\\.5rem\\]{max-width:27.5rem}.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:flex-row{flex-direction:row}.md\\:justify-between{justify-content:space-between}.md\\:p-6{padding:1.5rem}.md\\:py-24{padding-bottom:6rem;padding-top:6rem}.md\\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\\:text-lg{font-size:1.125rem}.md\\:leading-7,.md\\:text-lg{line-height:1.75rem}.md\\:leading-9{line-height:2.25rem}.md\\:transition-none{transition-property:none}}@media (min-width:1024px){.lg\\:w-3\\/4{width:75%}}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:absolute:not(:last-child):after{position:absolute}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:left-10:not(:last-child):after{left:2.5rem}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:top-3:not(:last-child):after{top:.75rem}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:w-10:not(:last-child):after{width:2.5rem}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:border-b-2:not(:last-child):after{border-bottom-width:2px}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:border-solid:not(:last-child):after{border-style:solid}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:border-gray-200:not(:last-child):after{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:content-\\[\\"\\"\\]:not(:last-child):after{--tw-content:"";content:var(--tw-content)}';const xo=e=>{const[t,n]=zn(!1);return uo("button",{"data-testid":e.testId,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:[uo("div",{class:""+(t?"invisible":""),children:e.children}),t&&uo("div",{class:"absolute",children:uo(wo,{theme:"light"})})]})},ko=({title:e,className:t,children:n,...r})=>{var o;const[i,a]=zn(!1),s=Vn(null);return uo("div",{className:`border border-2 border-gray-300 p-2 rounded-md overflow-hidden w-full ${t??""}`,...r,children:[uo("div",{className:"mx-2 flex justify-between cursor-pointer",onClick:Yn((()=>{a(!i)}),[i]),children:[uo("span",{className:"text-base text-left font-semibold text-primary-base",children:e}),uo("span",{className:"text-base text-left font-semibold text-gray-500",children:i?"-":"+"})]}),uo("div",{ref:s,className:"flex justify-center transition-all ease-in-out duration-1000",style:{height:i?`${(null==(o=null==s?void 0:s.current)?void 0:o.scrollHeight)??0}px`:"0px",opacity:i?1:0},children:n})]})},Co=e=>{qn(e,[])};function Eo(){return Eo=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},Eo.apply(null,arguments)}function So(e,t){return(So=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function No(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;
1
+ var __defProp=Object.defineProperty,__typeError=e=>{throw TypeError(e)},__defNormalProp=(e,t,n)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__publicField=(e,t,n)=>__defNormalProp(e,"symbol"!=typeof t?t+"":t,n),__accessCheck=(e,t,n)=>t.has(e)||__typeError("Cannot "+n),__privateGet=(e,t,n)=>(__accessCheck(e,t,"read from private field"),n?n.call(e):t.get(e)),__privateAdd=(e,t,n)=>t.has(e)?__typeError("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),__privateSet=(e,t,n,r)=>(__accessCheck(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";var e,t,n,r,o,i,a,s,l,c,d,u,p,f,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 C(){return{current:null}}function k(e){return e.children}function E(e,t){this.props=e,this.context=t}function S(e,t){if(null==t)return e.__?S(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?S(e):null}function N(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),D(a,r,o,e.__n,void 0!==a.ownerSVGElement,32&o.__u?[i]:null,t,null==i?S(o):i,!!(32&o.__u),n),r.__v=o.__v,r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=i&&T(r),r}function T(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 T(e)}}function A(e){(!e.__d&&(e.__d=!0)&&d.push(e)&&!O.__r++||u!==l.debounceRendering)&&((u=l.debounceRendering)||p)(O)}function O(){var e,t,n,r=[],o=[];for(d.sort(f);e=d.shift();)e.__d&&(n=d.length,t=N(e,r,o)||t,0===n||d.length>n?(M(r,t,o),o.length=r.length=0,t=void 0,d.sort(f)):t&&l.__c&&l.__c(t,g));t&&M(r,t,o),O.__r=0}function R(e,t,n,r,o,i,a,s,l,c,d){var u,p,f,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,d=c,u=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+u,d),o.__i=s,i=null,-1!==s&&(d--,(i=n[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&u--,"function"!=typeof o.type&&(o.__u|=65536)):s!==a&&(s===a+1?u++:s>a?d>l-a?u+=s-a:u--:u=s<a&&s==a-1?s-a:0,s!==r+u&&(o.__u|=65536))):(i=n[r])&&null==i.key&&i.__e&&0==(131072&i.__u)&&(i.__e==e.__d&&(e.__d=S(i)),H(i,i,!1),n[r]=null,d--);if(d)for(r=0;r<c;r++)null!=(i=n[r])&&0==(131072&i.__u)&&(i.__e==e.__d&&(e.__d=S(i)),H(i,i))}(n,t,b),l=n.__d,u=0;u<w;u++)null!=(f=n.__k[u])&&"boolean"!=typeof f&&"function"!=typeof f&&(p=-1===f.__i?h:b[f.__i]||h,f.__i=u,D(e,f,p,o,i,a,s,l,c,d),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&z(p.ref,null,f),d.push(f.ref,f.__c||m,f)),null==_&&null!=m&&(_=m),65536&f.__u||p.__k===f.__k?l=P(f,l,e):"function"==typeof f.type&&void 0!==f.__d?l=f.__d:m&&(l=m.nextSibling),f.__d=void 0,f.__u&=-196609);n.__d=l,n.__e=_}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 F(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||U(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||U(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,i?B:j,i)):e.removeEventListener(t,i?B:j,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 j(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 B(e){if(this.l)return this.l[e.type+!0](l.event?l.event(e):e)}function D(e,t,n,r,o,i,a,c,d,u){var p,f,m,g,_,v,x,C,N,T,A,O,P,L,I,U=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(d=!!(32&n.__u),i=[c=t.__e=n.__e]),(p=l.__b)&&p(t);e:if("function"==typeof U)try{if(C=t.props,N=(p=U.contextType)&&r[p.__c],T=p?N?N.props.value:p.__:r,n.__c?x=(f=t.__c=n.__c).__=f.__E:("prototype"in U&&U.prototype.render?t.__c=f=new U(C,T):(t.__c=f=new E(C,T),f.constructor=U,f.render=q),N&&N.sub(f),f.props=C,f.state||(f.state={}),f.context=T,f.__n=r,m=f.__d=!0,f.__h=[],f._sb=[]),null==f.__s&&(f.__s=f.state),null!=U.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=b({},f.__s)),b(f.__s,U.getDerivedStateFromProps(C,f.__s))),g=f.props,_=f.state,f.__v=t,m)null==U.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==U.getDerivedStateFromProps&&C!==g&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(C,T),!f.__e&&(null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(C,f.__s,T)||t.__v===n.__v)){for(t.__v!==n.__v&&(f.props=C,f.state=f.__s,f.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),A=0;A<f._sb.length;A++)f.__h.push(f._sb[A]);f._sb=[],f.__h.length&&a.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(C,f.__s,T),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(g,_,v)}))}if(f.context=T,f.props=C,f.__P=e,f.__e=!1,O=l.__r,P=0,"prototype"in U&&U.prototype.render){for(f.state=f.__s,f.__d=!1,O&&O(t),p=f.render(f.props,f.state,f.context),L=0;L<f._sb.length;L++)f.__h.push(f._sb[L]);f._sb=[]}else do{f.__d=!1,O&&O(t),p=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++P<25);f.state=f.__s,null!=f.getChildContext&&(r=b(b({},r),f.getChildContext())),m||null==f.getSnapshotBeforeUpdate||(v=f.getSnapshotBeforeUpdate(g,_)),R(e,y(I=null!=p&&p.type===k&&null==p.key?p.props.children:p)?I:[I],t,n,r,o,i,a,c,d,u),f.base=t.__e,t.__u&=-161,f.__h.length&&a.push(f),x&&(f.__E=f.__=null)}catch(j){t.__v=null,d||null!=i?(t.__e=c,t.__u|=d?160:32,i[i.indexOf(c)]=null):(t.__e=n.__e,t.__k=n.__k),l.__e(j,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 d,u,p,f,m,g,_,b=n.props,v=t.props,x=t.type;if("svg"===x&&(o=!0),null!=i)for(d=0;d<i.length;d++)if((m=i[d])&&"setAttribute"in m==!!x&&(x?m.localName===x:3===m.nodeType)){e=m,i[d]=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={},d=0;d<e.attributes.length;d++)b[(m=e.attributes[d]).name]=m.value;for(d in b)m=b[d],"children"==d||("dangerouslySetInnerHTML"==d?p=m:"key"===d||d in v||F(e,d,null,m,o));for(d in v)m=v[d],"children"==d?f=m:"dangerouslySetInnerHTML"==d?u=m:"value"==d?g=m:"checked"==d?_=m:"key"===d||l&&"function"!=typeof m||b[d]===m||F(e,d,m,b[d],o);if(u)l||p&&(u.__html===p.__html||u.__html===e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(p&&(e.innerHTML=""),R(e,y(f)?f:[f],t,n,r,o&&"foreignObject"!==x,i,a,i?i[0]:n.__k&&S(n,0),l,c),null!=i)for(d=i.length;d--;)null!=i[d]&&w(i[d]);l||(d="value",void 0!==g&&(g!==e[d]||"progress"===x&&!g||"option"===x&&g!==b[d])&&F(e,d,g,b[d],!1),d="checked",void 0!==_&&_!==e[d]&&F(e,d,_,b[d],!1))}return e}(n.__e,t,n,r,o,i,a,d,u);(p=l.diffed)&&p(t)}function M(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 q(e,t,n){return this.constructor(e,n)}function W(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=[],D(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,M(i,e,a)}function V(e,t){W(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,A(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}function Y(){return(Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}s=g.slice,l={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(s){e=s}throw e}},c=0,E.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=b({},this.state),"function"==typeof e&&(e=e(b({},n),this.props)),e&&b(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),A(this))},E.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),A(this))},E.prototype.render=k,d=[],p="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f=function(e,t){return e.__v.__b-t.__v.__b},O.__r=0,m=0;var Z=["context","children"];function J(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,Z))}function X(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=v(J,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[K(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 d=n?v(te,null,r):r;return v(n||t.nodeName.toLowerCase(),o,d)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?V:W)(this._vdom,this._root)}function K(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[K(e)]=n,this._vdom=$(this._vdom,r),W(this._vdom,this._root)}}function ee(){W(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=(e=>(e.BenefitsExisting="BenefitsExisting",e.AppInvite="AppInvite",e.BenefitsOnboarding="BenefitsOnboarding",e))(ne||{});const re=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/intro_allowance_experiment-Bit4myCA.png").href:new URL("assets/intro_allowance_experiment-Bit4myCA.png","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),oe=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/intro_allowance_experiment-DyP_CJyB.png").href:new URL("assets/intro_allowance_experiment-DyP_CJyB.png","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href);class ie extends Error{}function ae(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)}}ie.prototype.name="InvalidTokenError";const se=crypto.randomUUID?crypto.randomUUID():crypto.getRandomValues(new Uint32Array(5)).join("-"),le=e=>(window.addEventListener(se,e),()=>window.removeEventListener(se,e)),ce=()=>{window.dispatchEvent(new Event(se))};function de(e,t){return function(){return e.apply(t,arguments)}}const{toString:ue}=Object.prototype,{getPrototypeOf:pe}=Object,fe=(e=>t=>{const n=ue.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),me=e=>(e=e.toLowerCase(),t=>fe(t)===e),he=e=>t=>typeof t===e,{isArray:ge}=Array,_e=he("undefined");const ye=me("ArrayBuffer");const be=he("string"),we=he("function"),ve=he("number"),xe=e=>null!==e&&"object"==typeof e,Ce=e=>{if("object"!==fe(e))return!1;const t=pe(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},ke=me("Date"),Ee=me("File"),Se=me("Blob"),Ne=me("FileList"),Te=me("URLSearchParams"),[Ae,Oe,Re,Pe]=["ReadableStream","Request","Response","Headers"].map(me);function Le(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),ge(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 Ie(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 Ue="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Fe=e=>!_e(e)&&e!==Ue;const je=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&pe(Uint8Array)),Be=me("HTMLFormElement"),De=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Me=me("RegExp"),ze=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Le(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)};const He=me("AsyncFunction"),qe=(We="function"==typeof setImmediate,Ve=we(Ue.postMessage),We?setImmediate:Ve?($e=`axios@${Math.random()}`,Ge=[],Ue.addEventListener("message",(({source:e,data:t})=>{e===Ue&&t===$e&&Ge.length&&Ge.shift()()}),!1),e=>{Ge.push(e),Ue.postMessage($e,"*")}):e=>setTimeout(e));var We,Ve,$e,Ge;const Ye="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Ue):"undefined"!=typeof process&&process.nextTick||qe,Ze={isArray:ge,isArrayBuffer:ye,isBuffer:function(e){return null!==e&&!_e(e)&&null!==e.constructor&&!_e(e.constructor)&&we(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||we(e.append)&&("formdata"===(t=fe(e))||"object"===t&&we(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ye(e.buffer),t},isString:be,isNumber:ve,isBoolean:e=>!0===e||!1===e,isObject:xe,isPlainObject:Ce,isReadableStream:Ae,isRequest:Oe,isResponse:Re,isHeaders:Pe,isUndefined:_e,isDate:ke,isFile:Ee,isBlob:Se,isRegExp:Me,isFunction:we,isStream:e=>xe(e)&&we(e.pipe),isURLSearchParams:Te,isTypedArray:je,isFileList:Ne,forEach:Le,merge:function e(){const{caseless:t}=Fe(this)&&this||{},n={},r=(r,o)=>{const i=t&&Ie(n,o)||o;Ce(n[i])&&Ce(r)?n[i]=e(n[i],r):Ce(r)?n[i]=e({},r):ge(r)?n[i]=r.slice():n[i]=r};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&Le(arguments[o],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(Le(t,((t,r)=>{n&&we(t)?e[r]=de(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&&pe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:fe,kindOfTest:me,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(ge(e))return e;let t=e.length;if(!ve(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:Be,hasOwnProperty:De,hasOwnProp:De,reduceDescriptors:ze,freezeMethods:e=>{ze(e,((t,n)=>{if(we(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];we(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 ge(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:Ie,global:Ue,isContextDefined:Fe,isSpecCompliantForm:function(e){return!!(e&&we(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(xe(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=ge(e)?[]:{};return Le(e,((e,t)=>{const i=n(e,r+1);!_e(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:He,isThenable:e=>e&&(xe(e)||we(e))&&we(e.then)&&we(e.catch),setImmediate:qe,asap:Ye};function Je(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,this.status=o.status?o.status:null)}Ze.inherits(Je,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:Ze.toJSONObject(this.config),code:this.code,status:this.status}}});const Xe=Je.prototype,Ke={};["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=>{Ke[e]={value:e}})),Object.defineProperties(Je,Ke),Object.defineProperty(Xe,"isAxiosError",{value:!0}),Je.from=(e,t,n,r,o,i)=>{const a=Object.create(Xe);return Ze.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Je.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function Qe(e){return Ze.isPlainObject(e)||Ze.isArray(e)}function et(e){return Ze.endsWith(e,"[]")?e.slice(0,-2):e}function tt(e,t,n){return e?e.concat(t).map((function(e,t){return e=et(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const nt=Ze.toFlatObject(Ze,{},null,(function(e){return/^is[A-Z]/.test(e)}));function rt(e,t,n){if(!Ze.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Ze.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Ze.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Ze.isSpecCompliantForm(t);if(!Ze.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Ze.isDate(e))return e.toISOString();if(!s&&Ze.isBlob(e))throw new Je("Blob is not supported. Use a Buffer instead.");return Ze.isArrayBuffer(e)||Ze.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(Ze.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Ze.isArray(e)&&function(e){return Ze.isArray(e)&&!e.some(Qe)}(e)||(Ze.isFileList(e)||Ze.endsWith(n,"[]"))&&(s=Ze.toArray(e)))return n=et(n),s.forEach((function(e,r){!Ze.isUndefined(e)&&null!==e&&t.append(!0===a?tt([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!Qe(e)||(t.append(tt(o,n,i),l(e)),!1)}const d=[],u=Object.assign(nt,{defaultVisitor:c,convertValue:l,isVisitable:Qe});if(!Ze.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Ze.isUndefined(n)){if(-1!==d.indexOf(n))throw Error("Circular reference detected in "+r.join("."));d.push(n),Ze.forEach(n,(function(n,i){!0===(!(Ze.isUndefined(n)||null===n)&&o.call(t,n,Ze.isString(i)?i.trim():i,r,u))&&e(n,r?r.concat(i):[i])})),d.pop()}}(e),t}function ot(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function it(e,t){this._pairs=[],e&&rt(e,this,t)}const at=it.prototype;function st(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function lt(e,t,n){if(!t)return e;const r=n&&n.encode||st;Ze.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):Ze.isURLSearchParams(t)?t.toString():new it(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}at.append=function(e,t){this._pairs.push([e,t])},at.toString=function(e){const t=e?function(t){return e.call(this,t,ot)}:ot;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class ct{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){Ze.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const dt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ut={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:it,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},pt="undefined"!=typeof window&&"undefined"!=typeof document,ft="object"==typeof navigator&&navigator||void 0,mt=pt&&(!ft||["ReactNative","NativeScript","NS"].indexOf(ft.product)<0),ht="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,gt=pt&&window.location.href||"http://localhost",_t={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:pt,hasStandardBrowserEnv:mt,hasStandardBrowserWebWorkerEnv:ht,navigator:ft,origin:gt},Symbol.toStringTag,{value:"Module"})),...ut};function yt(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&&Ze.isArray(r)?r.length:i,s)return Ze.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&Ze.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&Ze.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(Ze.isFormData(e)&&Ze.isFunction(e.entries)){const n={};return Ze.forEachEntry(e,((e,r)=>{t(function(e){return Ze.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const bt={transitional:dt,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Ze.isObject(e);o&&Ze.isHTMLForm(e)&&(e=new FormData(e));if(Ze.isFormData(e))return r?JSON.stringify(yt(e)):e;if(Ze.isArrayBuffer(e)||Ze.isBuffer(e)||Ze.isStream(e)||Ze.isFile(e)||Ze.isBlob(e)||Ze.isReadableStream(e))return e;if(Ze.isArrayBufferView(e))return e.buffer;if(Ze.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 rt(e,new _t.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return _t.isNode&&Ze.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=Ze.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return rt(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Ze.isString(e))try{return(t||JSON.parse)(e),Ze.trim(e)}catch(xi){if("SyntaxError"!==xi.name)throw xi}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||bt.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Ze.isResponse(e)||Ze.isReadableStream(e))return e;if(e&&Ze.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(xi){if(n){if("SyntaxError"===xi.name)throw Je.from(xi,Je.ERR_BAD_RESPONSE,this,null,this.response);throw xi}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:_t.classes.FormData,Blob:_t.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ze.forEach(["delete","get","head","post","put","patch"],(e=>{bt.headers[e]={}}));const wt=Ze.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"]),vt=Symbol("internals");function xt(e){return e&&String(e).trim().toLowerCase()}function Ct(e){return!1===e||null==e?e:Ze.isArray(e)?e.map(Ct):String(e)}function kt(e,t,n,r,o){return Ze.isFunction(r)?r.call(this,t,n):(o&&(t=n),Ze.isString(t)?Ze.isString(r)?-1!==t.indexOf(r):Ze.isRegExp(r)?r.test(t):void 0:void 0)}class Et{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=xt(t);if(!o)throw new Error("header name must be a non-empty string");const i=Ze.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Ct(e))}const i=(e,t)=>Ze.forEach(e,((e,n)=>o(e,n,t)));if(Ze.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Ze.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]&&wt[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(Ze.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=xt(e)){const n=Ze.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(Ze.isFunction(t))return t.call(this,e,n);if(Ze.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=xt(e)){const n=Ze.findKey(this,e);return!(!n||void 0===this[n]||t&&!kt(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=xt(e)){const o=Ze.findKey(n,e);!o||t&&!kt(0,n[o],o,t)||(delete n[o],r=!0)}}return Ze.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&&!kt(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Ze.forEach(this,((r,o)=>{const i=Ze.findKey(n,o);if(i)return t[i]=Ct(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]=Ct(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Ze.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Ze.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[vt]=this[vt]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=xt(e);t[r]||(!function(e,t){const n=Ze.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 Ze.isArray(e)?e.forEach(r):r(e),this}}function St(e,t){const n=this||bt,r=t||n,o=Et.from(r.headers);let i=r.data;return Ze.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Nt(e){return!(!e||!e.__CANCEL__)}function Tt(e,t,n){Je.call(this,null==e?"canceled":e,Je.ERR_CANCELED,t,n),this.name="CanceledError"}function At(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Je("Request failed with status code "+n.status,[Je.ERR_BAD_REQUEST,Je.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}Et.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ze.reduceDescriptors(Et.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Ze.freezeMethods(Et),Ze.inherits(Tt,Je,{__CANCEL__:!0});const Ot=(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 d=a,u=0;for(;d!==i;)u+=n[d++],d%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const p=c&&l-c;return p?Math.round(1e3*u/p):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout((()=>{r=null,a(n)}),i-s)))},()=>n&&a(n)]}((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},Rt=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Pt=e=>(...t)=>Ze.asap((()=>e(...t))),Lt=_t.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,_t.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(_t.origin),_t.navigator&&/(msie|trident)/i.test(_t.navigator.userAgent)):()=>!0,It=_t.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Ze.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Ze.isString(r)&&a.push("path="+r),Ze.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 Ut(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&r||0==n?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Ft=e=>e instanceof Et?{...e}:e;function jt(e,t){t=t||{};const n={};function r(e,t,n,r){return Ze.isPlainObject(e)&&Ze.isPlainObject(t)?Ze.merge.call({caseless:r},e,t):Ze.isPlainObject(t)?Ze.merge({},t):Ze.isArray(t)?t.slice():t}function o(e,t,n,o){return Ze.isUndefined(t)?Ze.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!Ze.isUndefined(t))return r(void 0,t)}function a(e,t){return Ze.isUndefined(t)?Ze.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,n)=>o(Ft(e),Ft(t),0,!0)};return Ze.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);Ze.isUndefined(a)&&i!==s||(n[r]=a)})),n}const Bt=e=>{const t=jt({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=Et.from(s),t.url=lt(Ut(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Ze.isFormData(r))if(_t.hasStandardBrowserEnv||_t.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(_t.hasStandardBrowserEnv&&(o&&Ze.isFunction(o)&&(o=o(t)),o||!1!==o&&Lt(t.url))){const e=i&&a&&It.read(a);e&&s.set(i,e)}return t},Dt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Bt(e);let o=r.data;const i=Et.from(r.headers).normalize();let a,s,l,c,d,{responseType:u,onUploadProgress:p,onDownloadProgress:f}=r;function m(){c&&c(),d&&d(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let h=new XMLHttpRequest;function g(){if(!h)return;const r=Et.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());At((function(e){t(e),m()}),(function(e){n(e),m()}),{data:u&&"text"!==u&&"json"!==u?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 Je("Request aborted",Je.ECONNABORTED,e,h)),h=null)},h.onerror=function(){n(new Je("Network Error",Je.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||dt;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Je(t,o.clarifyTimeoutError?Je.ETIMEDOUT:Je.ECONNABORTED,e,h)),h=null},void 0===o&&i.setContentType(null),"setRequestHeader"in h&&Ze.forEach(i.toJSON(),(function(e,t){h.setRequestHeader(t,e)})),Ze.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),u&&"json"!==u&&(h.responseType=r.responseType),f&&([l,d]=Ot(f,!0),h.addEventListener("progress",l)),p&&h.upload&&([s,c]=Ot(p),h.upload.addEventListener("progress",s),h.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{h&&(n(!t||t.type?new Tt(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===_t.protocols.indexOf(_)?n(new Je("Unsupported protocol "+_+":",Je.ERR_BAD_REQUEST,e)):h.send(o||null)}))},Mt=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){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 Je?t:new Tt(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new Je(`timeout ${t} of ms exceeded`,Je.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=()=>Ze.asap(a),s}},zt=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},Ht=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},qt=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of Ht(e))yield*zt(n,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw s(t),t}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},Wt="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Vt=Wt&&"function"==typeof ReadableStream,$t=Wt&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Gt=(e,...t)=>{try{return!!e(...t)}catch(xi){return!1}},Yt=Vt&&Gt((()=>{let e=!1;const t=new Request(_t.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Zt=Vt&&Gt((()=>Ze.isReadableStream(new Response("").body))),Jt={stream:Zt&&(e=>e.body)};var Xt;Wt&&(Xt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Jt[e]&&(Jt[e]=Ze.isFunction(Xt[e])?t=>t[e]():(t,n)=>{throw new Je(`Response type '${e}' is not supported`,Je.ERR_NOT_SUPPORT,n)})})));const Kt=async(e,t)=>{const n=Ze.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(Ze.isBlob(e))return e.size;if(Ze.isSpecCompliantForm(e)){const t=new Request(_t.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Ze.isArrayBufferView(e)||Ze.isArrayBuffer(e)?e.byteLength:(Ze.isURLSearchParams(e)&&(e+=""),Ze.isString(e)?(await $t(e)).byteLength:void 0)})(t):n},Qt={http:null,xhr:Dt,fetch:Wt&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:d,withCredentials:u="same-origin",fetchOptions:p}=Bt(e);c=c?(c+"").toLowerCase():"text";let f,m=Mt([o,i&&i.toAbortSignal()],a);const h=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let g;try{if(l&&Yt&&"get"!==n&&"head"!==n&&0!==(g=await Kt(d,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(Ze.isFormData(r)&&(e=n.headers.get("content-type"))&&d.setContentType(e),n.body){const[e,t]=Rt(g,Ot(Pt(l)));r=qt(n.body,65536,e,t)}}Ze.isString(u)||(u=u?"include":"omit");const o="credentials"in Request.prototype;f=new Request(t,{...p,signal:m,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:o?u:void 0});let i=await fetch(f);const a=Zt&&("stream"===c||"response"===c);if(Zt&&(s||a&&h)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=Ze.toFiniteNumber(i.headers.get("content-length")),[n,r]=s&&Rt(t,Ot(Pt(s),!0))||[];i=new Response(qt(i.body,65536,n,(()=>{r&&r(),h&&h()})),e)}c=c||"text";let _=await Jt[Ze.findKey(Jt,c)||"text"](i,e);return!a&&h&&h(),await new Promise(((t,n)=>{At(t,n,{data:_,headers:Et.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:f})}))}catch(_){if(h&&h(),_&&"TypeError"===_.name&&/fetch/i.test(_.message))throw Object.assign(new Je("Network Error",Je.ERR_NETWORK,e,f),{cause:_.cause||_});throw Je.from(_,_&&_.code,e,f)}})};Ze.forEach(Qt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(xi){}Object.defineProperty(e,"adapterName",{value:t})}}));const en=e=>`- ${e}`,tn=e=>Ze.isFunction(e)||null===e||!1===e,nn=e=>{e=Ze.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,!tn(n)&&(r=Qt[(t=String(n)).toLowerCase()],void 0===r))throw new Je(`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 Je("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(en).join("\n"):" "+en(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function rn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Tt(null,e)}function on(e){rn(e),e.headers=Et.from(e.headers),e.data=St.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return nn(e.adapter||bt.adapter)(e).then((function(t){return rn(e),t.data=St.call(e,e.transformResponse,t),t.headers=Et.from(t.headers),t}),(function(t){return Nt(t)||(rn(e),t&&t.response&&(t.response.data=St.call(e,e.transformResponse,t.response),t.response.headers=Et.from(t.response.headers))),Promise.reject(t)}))}const an="1.8.3",sn={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{sn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const ln={};sn.transitional=function(e,t,n){function r(e,t){return"[Axios v1.8.3] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Je(r(o," has been removed"+(t?" in "+t:"")),Je.ERR_DEPRECATED);return t&&!ln[o]&&(ln[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)}},sn.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const cn={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Je("options must be an object",Je.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 Je("option "+i+" must be "+n,Je.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Je("Unknown option "+i,Je.ERR_BAD_OPTION)}},validators:sn},dn=cn.validators;class un{constructor(e){this.defaults=e,this.interceptors={request:new ct,response:new ct}}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(xi){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=jt(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&cn.assertOptions(n,{silentJSONParsing:dn.transitional(dn.boolean),forcedJSONParsing:dn.transitional(dn.boolean),clarifyTimeoutError:dn.transitional(dn.boolean)},!1),null!=r&&(Ze.isFunction(r)?t.paramsSerializer={serialize:r}:cn.assertOptions(r,{encode:dn.function,serialize:dn.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),cn.assertOptions(t,{baseUrl:dn.spelling("baseURL"),withXsrfToken:dn.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Ze.merge(o.common,o[t.method]);o&&Ze.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Et.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 d,u=0;if(!s){const e=[on.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),d=e.length,c=Promise.resolve(t);u<d;)c=c.then(e[u++],e[u++]);return c}d=a.length;let p=t;for(u=0;u<d;){const e=a[u++],t=a[u++];try{p=e(p)}catch(f){t.call(this,f);break}}try{c=on.call(this,p)}catch(f){return Promise.reject(f)}for(u=0,d=l.length;u<d;)c=c.then(l[u++],l[u++]);return c}getUri(e){return lt(Ut((e=jt(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}Ze.forEach(["delete","get","head","options"],(function(e){un.prototype[e]=function(t,n){return this.request(jt(n||{},{method:e,url:t,data:(n||{}).data}))}})),Ze.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(jt(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}un.prototype[e]=t(),un.prototype[e+"Form"]=t(!0)}));class pn{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 Tt(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)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new pn((function(t){e=t})),cancel:e}}}const fn={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(fn).forEach((([e,t])=>{fn[t]=e}));const mn=function e(t){const n=new un(t),r=de(un.prototype.request,n);return Ze.extend(r,un.prototype,n,{allOwnKeys:!0}),Ze.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(jt(t,n))},r}(bt);mn.Axios=un,mn.CanceledError=Tt,mn.CancelToken=pn,mn.isCancel=Nt,mn.VERSION=an,mn.toFormData=rt,mn.AxiosError=Je,mn.Cancel=mn.CanceledError,mn.all=function(e){return Promise.all(e)},mn.spread=function(e){return function(t){return e.apply(null,t)}},mn.isAxiosError=function(e){return Ze.isObject(e)&&!0===e.isAxiosError},mn.mergeConfig=jt,mn.AxiosHeaders=Et,mn.formToJSON=e=>yt(Ze.isHTMLForm(e)?new FormData(e):e),mn.getAdapter=nn,mn.HttpStatusCode=fn,mn.default=mn;class hn{constructor(){__privateAdd(this,e)}initClient(t,n){__privateSet(this,e,mn.create({baseURL:`${this.url(t)}/backend`,allowAbsoluteUrls:!1})),n&&__privateGet(this,e).interceptors.request.use(n)}getClient(){return __privateGet(this,e)}}e=new WeakMap;const gn={backend:new class extends hn{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 _n;class yn{constructor(){__privateAdd(this,t),__privateAdd(this,n),__privateAdd(this,r),__privateAdd(this,o,(async e=>(_n||(_n=await gn.backend.getIdToken()),e.headers.Authorization=`Bearer ${_n}`,e)))}initClient(e,i,a){__privateSet(this,n,e),__privateSet(this,r,i),__privateSet(this,t,mn.create({baseURL:`${this.url(e)}/workplace-backend`,headers:{"X-PROFILE-ID":i},allowAbsoluteUrls:!1})),__privateGet(this,t).interceptors.request.use(__privateGet(this,o)),a&&__privateGet(this,t).interceptors.request.use(a)}getClient(){return __privateGet(this,t)}async getIdToken(){return _n||(_n=await gn.backend.getIdToken()),_n}getBaseUrl(){return __privateGet(this,n)}getProfileId(){return __privateGet(this,r)}}t=new WeakMap,n=new WeakMap,r=new WeakMap,o=new WeakMap;const bn=e=>{var t,n;throw"Auth_SessionExpired"===(null==(n=null==(t=e.response)?void 0:t.data)?void 0:n.code)&&ce(),e};let wn=(a=class extends yn{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,n){await this.getClient().post("/v1.0/analytics/track",{event:e,properties:t},{params:n}).catch((e=>{}))}},i=new WeakMap,a);const vn={backend:new class extends hn{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),bn),this.sourceId=n}async init(){return this.getClient().post("/init",{source:"Onboarding",sourceId:this.sourceId}).then((e=>e.data))}command(e,t){return this.getClient().post("/command",{source:"Onboarding",sourceId:this.sourceId,...e},{params:t})}},workplaceBackend:new wn};const xn={workplaceBackend:new class extends yn{url(e){return`${e}/benefits-plan`}getAllowanceProductsStatus(e){return this.getClient().get("/v2.0/allowance/products/status",{params:{activityIds:e.join(",")}}).then((e=>e.data))}}},Cn=(e,t)=>e,kn=(e,t)=>n=>(n.params={...n.params??{},client:e.client,source:e.source,channel:e.channel},t&&n.headers.setAuthorization(`Bearer ${t}`),n),En=(e,t,n)=>{const r=function(e,t){if("string"!=typeof e)throw new ie("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 ie(`Invalid token specified: missing part #${n+1}`);let o;try{o=ae(r)}catch(xi){throw new ie(`Invalid token specified: invalid base64 for part #${n+1} (${xi.message})`)}try{return JSON.parse(o)}catch(xi){throw new ie(`Invalid token specified: invalid json for part #${n+1} (${xi.message})`)}}(t).sub,o=kn(n,t),i=kn(n),a=Cn(e),s=Cn(e),l=Cn(e);vn.backend.initClient(a,o,n.workflowsInstanceId),vn.workplaceBackend.initClient(a,r,i),gn.backend.initClient(s,o),xn.workplaceBackend.initClient(l,r,i)};var Sn,Nn,Tn,An,On=0,Rn=[],Pn=[],Ln=l,In=Ln.__b,Un=Ln.__r,Fn=Ln.diffed,jn=Ln.__c,Bn=Ln.unmount,Dn=Ln.__;function Mn(e,t){Ln.__h&&Ln.__h(Nn,e,On||t),On=0;var n=Nn.__H||(Nn.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Pn}),n.__[e]}function zn(e){return On=1,Hn(or,e)}function Hn(e,t,n){var r=Mn(Sn++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):or(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=Nn,!Nn.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))};Nn.u=!0;var i=Nn.shouldComponentUpdate,a=Nn.componentWillUpdate;Nn.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)},Nn.shouldComponentUpdate=o}return r.__N||r.__}function qn(e,t){var n=Mn(Sn++,3);!Ln.__s&&rr(n.__H,t)&&(n.__=e,n.i=t,Nn.__H.__h.push(n))}function Wn(e,t){var n=Mn(Sn++,4);!Ln.__s&&rr(n.__H,t)&&(n.__=e,n.i=t,Nn.__h.push(n))}function Vn(e){return On=5,Gn((function(){return{current:e}}),[])}function $n(e,t,n){On=6,Wn((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 Gn(e,t){var n=Mn(Sn++,7);return rr(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Yn(e,t){return On=8,Gn((function(){return e}),t)}function Zn(e){var t=Nn.context[e.__c],n=Mn(Sn++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(Nn)),t.props.value):e.__}function Jn(e,t){Ln.useDebugValue&&Ln.useDebugValue(t?t(e):e)}function Xn(){var e=Mn(Sn++,11);if(!e.__){for(var t=Nn.__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 Kn(){for(var e;e=Rn.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(tr),e.__H.__h.forEach(nr),e.__H.__h=[]}catch(t){e.__H.__h=[],Ln.__e(t,e.__v)}}Ln.__b=function(e){Nn=null,In&&In(e)},Ln.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Dn&&Dn(e,t)},Ln.__r=function(e){Un&&Un(e),Sn=0;var t=(Nn=e.__c).__H;t&&(Tn===Nn?(t.__h=[],Nn.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=Pn,e.__N=e.i=void 0}))):(t.__h.forEach(tr),t.__h.forEach(nr),t.__h=[],Sn=0)),Tn=Nn},Ln.diffed=function(e){Fn&&Fn(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Rn.push(t)&&An===Ln.requestAnimationFrame||((An=Ln.requestAnimationFrame)||er)(Kn)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==Pn&&(e.__=e.__V),e.i=void 0,e.__V=Pn}))),Tn=Nn=null},Ln.__c=function(e,t){t.some((function(e){try{e.__h.forEach(tr),e.__h=e.__h.filter((function(e){return!e.__||nr(e)}))}catch(qi){t.some((function(e){e.__h&&(e.__h=[])})),t=[],Ln.__e(qi,e.__v)}})),jn&&jn(e,t)},Ln.unmount=function(e){Bn&&Bn(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{tr(e)}catch(n){t=n}})),n.__H=void 0,t&&Ln.__e(t,n.__v))};var Qn="function"==typeof requestAnimationFrame;function er(e){var t,n=function(){clearTimeout(r),Qn&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Qn&&(t=requestAnimationFrame(n))}function tr(e){var t=Nn,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),Nn=t}function nr(e){var t=Nn;e.__c=e.__(),Nn=t}function rr(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function or(e,t){return"function"==typeof t?t(e):t}function ir(e,t){for(var n in t)e[n]=t[n];return e}function ar(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 sr(e,t){this.props=e,this.context=t}function lr(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:ar(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}(sr.prototype=new E).isPureReactComponent=!0,sr.prototype.shouldComponentUpdate=function(e,t){return ar(this.props,e)||ar(this.state,t)};var cr=l.__b;l.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),cr&&cr(e)};var dr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ur(e){function t(t){var n=ir({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=dr,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var pr=function(e,t){return null==e?null:L(L(e).map(t))},fr={map:pr,forEach:pr,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},mr=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);mr(e,t,n,r)};var hr=l.unmount;function gr(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=ir({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return gr(e,t,n)}))),e}function _r(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return _r(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 yr(){this.__u=0,this.t=null,this.__b=null}function br(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function wr(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 vr(){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),hr&&hr(e)},(yr.prototype=new E).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=br(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]=_r(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)},yr.prototype.componentWillUnmount=function(){this.t=[]},yr.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]=gr(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 xr=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 Cr(e){return this.getChildContext=function(){return e.context},e.children}function kr(e){var t=this,n=e.i;t.componentWillUnmount=function(){W(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)}}),W(v(Cr,{context:t.context},e.__v),t.l)}function Er(e,t){var n=v(kr,{__v:e,i:t});return n.containerInfo=t,n}(vr.prototype=new E).__a=function(e){var t=this,n=br(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),xr(t,e,r)):o()};n?n(i):i()}},vr.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},vr.prototype.componentDidUpdate=vr.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){xr(e,n,t)}))};var Sr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Nr=/^(?: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]/,Tr=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Ar=/[A-Z0-9]/g,Or="undefined"!=typeof document,Rr=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function Pr(e,t,n){return null==t.__k&&(t.textContent=""),W(e,t),"function"==typeof n&&n(),e?e.__c:null}function Lr(e,t,n){return V(e,t),"function"==typeof n&&n(),e?e.__c:null}E.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(E.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Ir=l.event;function Ur(){}function Fr(){return this.cancelBubble}function jr(){return this.defaultPrevented}l.event=function(e){return Ir&&(e=Ir(e)),e.persist=Ur,e.isPropagationStopped=Fr,e.isDefaultPrevented=jr,e.nativeEvent=e};var Br,Dr={enumerable:!1,configurable:!0,get:function(){return this.class}},Mr=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||Or&&"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||Rr(t.type)?"onfocus"===a?o="onfocusin":"onblur"===a?o="onfocusout":Tr.test(o)?o=a:-1===n.indexOf("-")&&Nr.test(o)?o=o.replace(Ar,"-$&").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",Dr)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=Sr,Mr&&Mr(e)};var zr=l.__r;l.__r=function(e){zr&&zr(e),Br=e.__c};var Hr=l.diffed;l.diffed=function(e){Hr&&Hr(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),Br=null};var qr={ReactCurrentDispatcher:{current:{readContext:function(e){return Br.__n[e.__c].props.value}}}};function Wr(e){return v.bind(null,e)}function Vr(e){return!!e&&e.$$typeof===Sr}function $r(e){return Vr(e)&&e.type===k}function Gr(e){return Vr(e)?$.apply(null,arguments):e}function Yr(e){return!!e.__k&&(W(null,e),!0)}function Zr(e){return e&&(e.base||1===e.nodeType&&e)||null}var Jr=function(e,t){return e(t)},Xr=function(e,t){return e(t)},Kr=k;function Qr(e){e()}function eo(e){return e}function to(){return[!1,Qr]}var no=Wn,ro=Vr;function oo(e,t){var n=t(),r=zn({h:{__:n,v:t}}),o=r[0].h,i=r[1];return Wn((function(){o.__=n,o.v=t,io(o)&&i({h:o})}),[e,n,t]),qn((function(){return io(o)&&i({h:o}),e((function(){io(o)&&i({h:o})}))}),[e]),n}function io(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 ao={useState:zn,useId:Xn,useReducer:Hn,useEffect:qn,useLayoutEffect:Wn,useInsertionEffect:no,useTransition:to,useDeferredValue:eo,useSyncExternalStore:oo,startTransition:Qr,useRef:Vn,useImperativeHandle:$n,useMemo:Gn,useCallback:Yn,useContext:Zn,useDebugValue:Jn,version:"17.0.2",Children:fr,render:Pr,hydrate:Lr,unmountComponentAtNode:Yr,createPortal:Er,createElement:v,createContext:G,createFactory:Wr,cloneElement:Gr,createRef:C,Fragment:k,isValidElement:Vr,isElement:ro,isFragment:$r,findDOMNode:Zr,Component:E,PureComponent:sr,memo:lr,forwardRef:ur,flushSync:Xr,unstable_batchedUpdates:Jr,StrictMode:Kr,Suspense:yr,SuspenseList:vr,lazy:wr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:qr};const so=Object.freeze(Object.defineProperty({__proto__:null,Children:fr,Component:E,Fragment:k,PureComponent:sr,StrictMode:Kr,Suspense:yr,SuspenseList:vr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:qr,cloneElement:Gr,createContext:G,createElement:v,createFactory:Wr,createPortal:Er,createRef:C,default:ao,findDOMNode:Zr,flushSync:Xr,forwardRef:ur,hydrate:Lr,isElement:ro,isFragment:$r,isValidElement:Vr,lazy:wr,memo:lr,render:Pr,startTransition:Qr,unmountComponentAtNode:Yr,unstable_batchedUpdates:Jr,useCallback:Yn,useContext:Zn,useDebugValue:Jn,useDeferredValue:eo,useEffect:qn,useErrorBoundary:function(e){var t=Mn(Sn++,10),n=zn();return t.__=e,Nn.componentDidCatch||(Nn.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:Xn,useImperativeHandle:$n,useInsertionEffect:no,useLayoutEffect:Wn,useMemo:Gn,useReducer:Hn,useRef:Vn,useState:zn,useSyncExternalStore:oo,useTransition:to,version:"17.0.2"},Symbol.toStringTag,{value:"Module"})),lo=e=>v("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v("g",{clipPath:"url(#clip0_2383_2245)"},v("path",{d:"M0.639604 38.9047C1.28749 39.5526 2.27104 39.7271 3.10223 39.3416L25.6608 29.6293C26.7649 29.1174 27.0229 27.663 26.1624 26.8024L12.7907 13.4307C11.9301 12.57 10.4757 12.8281 9.96369 13.9323L0.202679 36.442C-0.182768 37.2732 -0.00828658 38.2568 0.639604 38.9047Z",fill:"#FFE266"}),v("path",{d:"M19.4314 27.5018L2.84876 34.6411C2.2627 34.9129 1.57431 34.8051 1.09874 34.3757L0.202679 36.4421C-0.182768 37.2734 -0.00828658 38.2568 0.639604 38.9047C1.28749 39.5526 2.27104 39.7271 3.10223 39.3416L25.4444 29.7226C24.9297 29.5162 19.5151 27.463 19.4314 27.5018Z",fill:"#EFAA66"}),v("path",{d:"M26.3181 28.7173C27.8596 27.1758 25.6184 22.4355 21.3124 18.1295C17.0064 13.8234 12.2661 11.5823 10.7246 13.1238C9.18318 14.6652 11.4243 19.4055 15.7303 23.7115C20.0364 28.0176 24.7767 30.2587 26.3181 28.7173Z",fill:"#FFE266"}),v("path",{d:"M22.4126 26.7308C23.4237 25.7197 21.7859 22.4424 18.7543 19.4109C15.7228 16.3793 12.4455 14.7415 11.4344 15.7526C10.4232 16.7638 12.0611 20.0411 15.0926 23.0726C18.1242 26.1042 21.4014 27.742 22.4126 26.7308Z",fill:"#EFAA66"}),v("path",{d:"M24.9319 30.0073C22.4747 30.0073 18.6692 27.78 15.1683 24.2792C11.9894 21.1002 9.81107 17.5992 9.48367 15.1424C9.42522 14.7034 9.73353 14.3002 10.1725 14.2417C10.6111 14.1834 11.0148 14.4916 11.0732 14.9306C11.3522 17.0232 13.4048 20.2477 16.3024 23.1452C20.0047 26.8476 23.4188 28.4618 25.0232 28.4018C25.4652 28.3857 25.8386 28.7288 25.8563 29.1713C25.8738 29.6137 25.5294 29.9868 25.0868 30.0043C25.0359 30.0062 24.984 30.0073 24.9319 30.0073Z",fill:"#D0844B"}),v("path",{d:"M16.3577 17.6285C16.1695 17.4403 16.0243 17.2039 15.9436 16.9306L15.2021 14.4208C14.922 13.473 15.1748 12.4576 15.8616 11.7708L17.2095 10.4229C17.8963 9.73605 18.9118 9.48339 19.8596 9.76347L22.5594 10.5255L21.6488 7.2768C21.3908 6.40351 21.8896 5.48644 22.7629 5.22841C23.6362 4.97037 24.5532 5.4692 24.8113 6.34249L25.5528 8.85226C25.8328 9.80012 25.5801 10.8156 24.8934 11.5023L23.5455 12.8502C22.8587 13.5369 21.8432 13.7896 20.8955 13.5096L18.1681 12.6202L19.1061 15.9963C19.3642 16.8696 18.8653 17.7866 17.9921 18.0447C17.3919 18.222 16.771 18.0419 16.3577 17.6285Z",fill:"#CAB4EF"}),v("path",{d:"M22.5594 10.5256L19.8596 9.76358C19.0449 9.52286 18.1805 9.67602 17.5176 10.1598C17.7032 10.902 17.9393 11.8894 18.168 12.6202L20.8954 13.5096C21.7487 13.7617 22.6567 13.5819 23.3305 13.0424C23.0918 12.2954 22.7865 11.2761 22.5594 10.5256Z",fill:"#A183E2"}),v("path",{d:"M26.8006 16.4551C26.9888 16.6433 27.2253 16.7885 27.4985 16.8692L30.0083 17.6106C30.956 17.8906 31.9715 17.638 32.6583 16.9512L34.0062 15.6033C34.693 14.9164 34.9457 13.901 34.6656 12.9532L33.9036 10.2534L37.1523 11.1639C38.0256 11.4219 38.9427 10.9231 39.2008 10.0498C39.4588 9.17651 38.96 8.25944 38.0867 8.00141L35.5769 7.25994C34.6291 6.97994 33.6136 7.23268 32.9269 7.91938L31.579 9.26728C30.8922 9.95406 30.6396 10.9695 30.9196 11.9173L31.8089 14.6447L28.4328 13.7066C27.5595 13.4486 26.6425 13.9474 26.3844 14.8207C26.2071 15.4209 26.3872 16.0418 26.8006 16.4551Z",fill:"#F7C4DB"}),v("path",{d:"M34.6649 12.9532L33.9029 10.2533C33.1175 10.0841 32.0186 9.8675 31.2346 9.69165C30.8149 10.3375 30.692 11.1496 30.9189 11.9173L31.8082 14.6447C32.6214 14.8455 33.4818 14.984 34.2625 15.3037C34.7512 14.6396 34.9067 13.7713 34.6649 12.9532Z",fill:"#EF8BBD"}),v("path",{d:"M30.639 2.8965C30.1162 3.4193 29.2684 3.4193 28.7456 2.8965C28.2228 2.3737 28.2228 1.52599 28.7456 1.00319C29.2684 0.480383 30.1162 0.480383 30.639 1.00319C31.1618 1.52607 31.1618 2.3737 30.639 2.8965Z",fill:"#FFA585"}),v("path",{d:"M32.6591 25.138C33.3985 25.138 33.9979 24.5386 33.9979 23.7992C33.9979 23.0598 33.3985 22.4604 32.6591 22.4604C31.9197 22.4604 31.3203 23.0598 31.3203 23.7992C31.3203 24.5386 31.9197 25.138 32.6591 25.138Z",fill:"#78EAC4"}),v("path",{d:"M25.3352 24.9889C24.8124 25.5117 23.9647 25.5117 23.4419 24.9889C22.9191 24.4661 22.9191 23.6184 23.4419 23.0956C23.9647 22.5728 24.8124 22.5728 25.3352 23.0956C25.858 23.6185 25.858 24.4661 25.3352 24.9889Z",fill:"#78EAC4"}),v("path",{d:"M25.3352 24.9889C24.8124 25.5117 23.9647 25.5117 23.4419 24.9889C22.9191 24.4661 22.9191 23.6184 23.4419 23.0956C23.9647 22.5728 24.8124 22.5728 25.3352 23.0956C25.858 23.6185 25.858 24.4661 25.3352 24.9889Z",fill:"#8BB6EF"}),v("path",{d:"M7.28893 28.9138C7.18316 28.9138 7.07556 28.8927 6.97228 28.8482C6.5655 28.6731 6.37771 28.2014 6.55291 27.7946L7.56837 25.4361C7.74349 25.0294 8.2153 24.8413 8.62191 25.0167C9.02869 25.1919 9.21648 25.6635 9.04128 26.0703L8.02582 28.4288C7.8952 28.7322 7.59956 28.9138 7.28893 28.9138Z",fill:"white"}),v("path",{d:"M9.44127 23.916C9.33551 23.916 9.22798 23.895 9.12454 23.8505C8.71785 23.6753 8.53005 23.2037 8.70526 22.7968L9.01477 22.0779C9.18989 21.6713 9.66137 21.4832 10.0684 21.6586C10.4751 21.8337 10.6629 22.3054 10.4878 22.7122L10.1782 23.4312C10.0475 23.7344 9.75182 23.916 9.44127 23.916Z",fill:"white"}),v("path",{d:"M15.7341 0.651858L16.3927 2.50396C16.4209 2.58326 16.4767 2.64613 16.5472 2.67788L18.1927 3.41926C18.4251 3.52399 18.4251 3.89436 18.1927 3.99916L16.5472 4.74054C16.4767 4.7723 16.4209 4.83516 16.3927 4.91438L15.7341 6.76648C15.6411 7.02813 15.3119 7.02813 15.2189 6.76648L14.5603 4.91438C14.532 4.83508 14.4762 4.77222 14.4057 4.74054L12.7603 3.99916C12.5278 3.89444 12.5278 3.52407 12.7603 3.41926L14.4057 2.67788C14.4762 2.64613 14.532 2.58326 14.5603 2.50396L15.2189 0.651858C15.3119 0.390136 15.6411 0.390136 15.7341 0.651858Z",fill:"#F7C4DB"}),v("path",{d:"M38.0472 17.3018L38.5357 18.6756C38.5567 18.7344 38.598 18.781 38.6503 18.8046L39.8709 19.3545C40.0434 19.4322 40.0434 19.7069 39.8709 19.7846L38.6503 20.3345C38.598 20.3581 38.5567 20.4047 38.5357 20.4635L38.0472 21.8373C37.9781 22.0314 37.734 22.0314 37.665 21.8373L37.1764 20.4635C37.1555 20.4047 37.1141 20.3581 37.0618 20.3345L35.8413 19.7846C35.6688 19.7069 35.6688 19.4322 35.8413 19.3545L37.0618 18.8046C37.1141 18.781 37.1555 18.7344 37.1764 18.6756L37.665 17.3018C37.734 17.1077 37.9781 17.1077 38.0472 17.3018Z",fill:"#CAB4EF"}),v("path",{d:"M28.9622 6.95622C29.3048 6.95622 29.5826 6.67847 29.5826 6.33584C29.5826 5.99321 29.3048 5.71545 28.9622 5.71545C28.6196 5.71545 28.3418 5.99321 28.3418 6.33584C28.3418 6.67847 28.6196 6.95622 28.9622 6.95622Z",fill:"#78EAC4"}),v("path",{d:"M38.3556 2.49627C38.4328 1.86823 37.9862 1.29654 37.3581 1.21937C36.73 1.14221 36.1583 1.58878 36.0811 2.21683C36.004 2.84487 36.4506 3.41656 37.0787 3.49373C37.7068 3.57089 38.2785 3.12432 38.3556 2.49627Z",fill:"#8BB6EF"})),v("defs",null,v("clipPath",{id:"clip0_2383_2245"},v("rect",{width:40,height:40,fill:"white"}))));var co=0;function uo(e,t,n,r,o,i){var a,s,c={};for(s in t)"ref"==s?a=t[s]:c[s]=t[s];var d={type:e,props:c,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--co,__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(d),d}const po={isLoading:!0,offers:[],isAppEnabled:!1,identity:{email:"",phoneNumber:"",verifiedPhoneNumber:""},featureFlags:{marketplaceScheme:{scheme:"promotion"},marketplaceSubNavigation:!1},hostInformation:{channel:"",client:"",source:"",experiment:"",treatment:"",workflowsJourneyType:ne.BenefitsOnboarding,workflowsInstanceId:""},updateIdentity:e=>Promise.resolve(),getIdentityRegistrationStatus:()=>"Unregistered",getWorkplaceLinkingStatus:()=>"Unlinked",offersProgress:{update:()=>({}),hasCompletedAnyOffers:()=>!1,isOfferCompleted:()=>!1,isOfferProgressed:()=>!1,canOfferSkipToEstimate:()=>!1}},fo=G(po),mo=({children:e,...t})=>{const[n,r]=zn(!0),[o,i]=zn(),a=Vn("Unregistered"),s=Vn("Unlinked"),l=Vn({}),c=Gn((()=>"allowance"===(null==o?void 0:o.featureFlags.marketplaceScheme)),[null==o?void 0:o.featureFlags.marketplaceScheme]),d=Gn((()=>o?(e=>{const t=e.find((e=>"Perks"===e.name));return t?[...e.filter((e=>e!==t)).slice(0,4),t]:e.slice(0,5)})(o.offers):[]),[o]),u=Yn((()=>a.current),[]),p=Yn((()=>s.current),[]),f=Yn((()=>Object.entries(l.current).some((e=>"Perks"!==e[0]&&e[1].isCompleted))),[]),m=Yn(((e,t,n)=>{l.current[e]={isEnrolled:t,isCompleted:n}}),[]),h=Yn((e=>{e.offers.filter((e=>void 0!==e.isAccepted)).forEach((e=>{const t="Assessment"!==e.content.template||void 0;m(e.name,!!e.isAccepted,t)}))}),[m]),g=Yn((async()=>{if(!c)return;const e=d.filter((e=>"Assessment"===e.content.template));e.length<=0||(r(!0),await xn.workplaceBackend.getAllowanceProductsStatus(e.map((e=>e.content.assessmentId))).then((t=>{t.filter((e=>!!e.status)).forEach((t=>{const n=e.find((e=>e.content.assessmentId===t.activityId)).name;m(n,!0,!0)}))})).catch(),r(!1))}),[c,d,m]),_=Yn((e=>{var t;return!0===(null==(t=l.current[e])?void 0:t.isCompleted)}),[l]),y=Yn((e=>!!l.current[e]),[l]),b=Yn((e=>c&&_(e)),[c,_]),w=Yn((async e=>{e?("Unregistered"===a.current&&(a.current="NewlyRegistered"),"Unlinked"===s.current&&(s.current="NewlyLinked"),await g()):a.current="RegistrationAbandoned"}),[g]),v=Gn((()=>{return e=(null==o?void 0:o.identity.email)??"",t=f(),{joinBenefits:{desktopImageUrl:re,mobileImageUrl:oe,title:"Your workplace benefits program",description:"Your employer has partnered with Flare Benefits to give you exclusive access to savings and perks from Australia's most-loved brands.",specialBanner:{title:"Flare Benefits Allowance",icon:uo(lo,{}),subTitle:uo("span",{children:["As an additional bonus, you have been allocated an allowance of up to ",uo("b",{children:"$1,300"})," as part of your benefits program. Set up your benefits today to be eligible."]})},buttonText:"Get Started"},setUpBenefits:{title:"Unlock your $1,300 Flare Benefits Allowance",description:"You've been allocated up to $1,300 for reimbursement as part of your Flare Benefits Allowance. Make your selections today, to be eligible for reimbursement later.",buttonText:"Set up your benefits",progress:{title:"See how it works",steps:[{title:"Join your workplace benefits program",completed:!0},{title:"Select the benefits you want to include as part of your allowance.",completed:!1},{title:"Purchase or switch to an eligible product",completed:!1},{title:"Keep your product for 90 days and we'll send you a Flare gift card",completed:!1}]},termsAndConditions:()=>uo("div",{className:"flex flex-col gap-2",children:uo("span",{children:["Allowance offer expires today.",uo("br",{})," Exclusions and limitations apply. See full"," ",uo("a",{target:"_blank",rel:"noreferrer",href:"https://www.flarehr.com/flare-benefits-allowance-terms",children:"T&Cs"}),"."]})})},summary:t?{title:"Congratulations, you've unlocked your benefits allowance",description:`We've sent an email to ${e} with more information about your benefits program and how you can get reimbursed as part of your allowance`,buttonText:"Finish benefits setup",progress:{title:"How this works",steps:[{title:"Join your workplace benefits program",completed:!0},{title:"Complete your benefits setup today",completed:!0},{title:"Purchase or switch to an eligible product within 30 days",description:"Make sure you make an eligible purchase within the first 30 days.",completed:!1},{title:"Qualify for reimbursement within 90 days and we'll send you a Flare gift card",completed:!1}]}}:{title:"You're all set!",description:"You've finished setting up your benefits plan. Continue to review your details and finish up your workplace onboarding.",buttonText:"Finish benefits setup"}};var e,t}),[null==o?void 0:o.identity.email,f]),x=Gn((()=>{if(!o)return po;const e=o.offers.some((e=>"Perks"===e.name));a.current=o.identity.isRegistered?"PreviouslyRegistered":"Unregistered",s.current=o.workplace.isLinkedWithIdentity?"PreviouslyLinked":"Unlinked";const r={email:o.identity.email,phoneNumber:o.identity.phoneNumber??"",verifiedPhoneNumber:o.identity.verifiedPhoneNumber??""};return{isLoading:n,offers:d,isAppEnabled:e,identity:r,featureFlags:{marketplaceScheme:"promotion"===o.featureFlags.marketplaceScheme?{scheme:"promotion"}:{scheme:"allowance",content:v},marketplaceSubNavigation:o.featureFlags.marketplaceSubNavigation},hostInformation:{...t.hostInformation,treatment:o.featureFlags.marketplaceScheme},updateIdentity:w,getIdentityRegistrationStatus:u,getWorkplaceLinkingStatus:p,offersProgress:{hasCompletedAnyOffers:f,update:m,isOfferCompleted:_,isOfferProgressed:y,canOfferSkipToEstimate:b}}}),[o,n,d,v,t.hostInformation,w,u,p,f,m,_,y,b]);return qn((()=>{(async()=>{r(!0);const e=await vn.backend.init();i(e),h(e),r(!1)})()}),[h]),uo(fo.Provider,{value:x,children:e})},ho=e=>{const t=null==e?void 0:e.match(/^(https:\/\/)?(test|autodev|sandbox)?-?partner\.flarehr\.com$/);return t&&t[2]?t[2]:"prod"};const go={init(e){!function(e){try{return t=window,n=document,r="clarity",o="script",i=e,void(n.getElementById("clarity-script")||(t[r]=t[r]||function(){(t[r].q=t[r].q||[]).push(arguments)},(a=n.createElement(o)).async=1,a.src="https://www.clarity.ms/tag/"+i+"?ref=npm",a.id="clarity-script",(s=n.getElementsByTagName(o)[0]).parentNode.insertBefore(a,s)))}catch(l){return}var t,n,r,o,i,a,s}(e)},setTag(e,t){window.clarity("set",e,t)},identify(e,t,n,r){window.clarity("identify",e,t,n,r)},consent(e=!0){window.clarity("consent",e)},upgrade(e){window.clarity("upgrade",e)},event(e){window.clarity("event",e)}},_o=({children:e})=>uo(k,{children:e}),yo=({children:e})=>uo(k,{children:e}),bo=({open:e,children:t})=>{const n=Gn((()=>ao.Children.toArray(t).find((e=>e.type===_o))),[t]),r=Gn((()=>ao.Children.toArray(t).find((e=>e.type===yo))),[t]),[o,i]=zn(!e);return qn((()=>{let t;return e?i(!1):t=setTimeout((()=>{i(!0)}),200),()=>{t&&clearTimeout(t)}}),[e]),uo("div",{hidden:o,children:uo("div",{className:"z-50 fixed flex items-center justify-center w-screen h-screen inset-0 bg-white overflow-hidden transition-opacity "+(e?"ease-out duration-300 opacity-100":"ease-in duration-200 opacity-0"),children:[n,uo("div",{className:"mt-4",children:r})]})})},wo=e=>uo("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:[uo("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"}),uo("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"})]}),vo='/*! 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}.\\!visible{visibility:visible!important}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.inset-y-0{bottom:0;top:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.z-50{z-index:50}.m-0{margin:0}.m-0\\.5{margin:.125rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.mr-10{margin-right:2.5rem}.mr-3{margin-right:.75rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.line-clamp-2{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.hidden{display:none}.h-10{height:2.5rem}.h-12{height:3rem}.h-16{height:4rem}.h-4{height:1rem}.h-40{height:10rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-\\[90\\%\\]{height:90%}.h-full{height:100%}.h-screen{height:100vh}.max-h-10{max-height:2.5rem}.max-h-12{max-height:3rem}.max-h-4{max-height:1rem}.max-h-6{max-height:1.5rem}.max-h-8{max-height:2rem}.min-h-12{min-height:3rem}.min-h-4{min-height:1rem}.min-h-6{min-height:1.5rem}.min-h-8{min-height:2rem}.w-10{width:2.5rem}.w-16{width:4rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-full{width:100%}.w-screen{width:100vw}.min-w-10{min-width:2.5rem}.min-w-4{min-width:1rem}.min-w-6{min-width:1.5rem}.min-w-8{min-width:2rem}.max-w-10{max-width:2.5rem}.max-w-20{max-width:5rem}.max-w-4{max-width:1rem}.max-w-6{max-width:1.5rem}.max-w-8{max-width:2rem}.max-w-\\[30rem\\]{max-width:30rem}.max-w-\\[40rem\\]{max-width:40rem}.max-w-\\[59\\.5rem\\]{max-width:59.5rem}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.-translate-y-6{--tw-translate-y:-1.5rem}.-translate-y-6,.translate-y-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y:0px}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-auto{cursor:auto}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.25rem*var(--tw-space-x-reverse))}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1.5rem*var(--tw-space-x-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.self-start{align-self:flex-start}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.break-words{overflow-wrap:break-word}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.\\!border-0{border-width:0!important}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.\\!border-gray-300{--tw-border-opacity:1!important;border-color:rgb(209 213 219/var(--tw-border-opacity))!important}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-primary-base{border-color:var(--fl-color-primary)}.border-transparent{border-color:transparent}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-primary-base{background-color:var(--fl-color-primary)}.bg-teal-50{--tw-bg-opacity:1;background-color:rgb(240 253 250/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.fill-gray-200{fill:#e5e7eb}.fill-primary-base{fill:var(--fl-color-primary)}.fill-white{fill:#fff}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-px{padding-left:1px;padding-right:1px}.py-0{padding-bottom:0;padding-top:0}.py-0\\.5{padding-bottom:.125rem;padding-top:.125rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.pb-6{padding-bottom:1.5rem}.pb-8{padding-bottom:2rem}.pl-3{padding-left:.75rem}.pr-3{padding-right:.75rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.font-inter{font-family:Inter,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.leading-8{line-height:2rem}.leading-none{line-height:1}.leading-tight{line-height:1.25}.tracking-wide{letter-spacing:.025em}.\\!text-gray-700{--tw-text-opacity:1!important;color:rgb(55 65 81/var(--tw-text-opacity))!important}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity))}.text-primary-base{color:var(--fl-color-primary)}.text-rose-500{--tw-text-opacity:1;color:rgb(244 63 94/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.accent-primary-base{accent-color:var(--fl-color-primary)}.opacity-0{opacity:0}.opacity-10{opacity:.1}.opacity-100{opacity:1}.\\!shadow-none{--tw-shadow:0 0 #0000!important;--tw-shadow-colored:0 0 #0000!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-gray-200{--tw-ring-opacity:1;--tw-ring-color:rgb(229 231 235/var(--tw-ring-opacity))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.delay-300{transition-delay:.3s}.duration-1000{transition-duration:1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-700{transition-duration:.7s}.duration-\\[600ms\\]{transition-duration:.6s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:left-4:after{content:var(--tw-content);left:1rem}.after\\:top-8:after{content:var(--tw-content);top:2rem}.after\\:inline-block:after{content:var(--tw-content);display:inline-block}.after\\:h-\\[calc\\(100\\%-theme\\(height\\.8\\)\\)\\]:after{content:var(--tw-content);height:calc(100% - 2rem)}.after\\:w-0:after{content:var(--tw-content);width:0}.after\\:w-0\\.5:after{content:var(--tw-content);width:.125rem}.after\\:bg-gray-300:after{content:var(--tw-content);--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.after\\:bg-primary-base:after{background-color:var(--fl-color-primary);content:var(--tw-content)}.after\\:content-\\[\\\'\\\'\\]:after{--tw-content:"";content:var(--tw-content)}.hover\\:\\!bg-gray-100:hover{--tw-bg-opacity:1!important;background-color:rgb(243 244 246/var(--tw-bg-opacity))!important}.hover\\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.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}.hover\\:before\\:absolute:hover:before{content:var(--tw-content);position:absolute}.hover\\:before\\:h-16:hover:before{content:var(--tw-content);height:4rem}.hover\\:before\\:w-16:hover:before{content:var(--tw-content);width:4rem}.hover\\:before\\:cursor-default:hover:before{content:var(--tw-content);cursor:default}.hover\\:before\\:cursor-pointer:hover:before{content:var(--tw-content);cursor:pointer}.hover\\:before\\:content-\\[\\\'\\\'\\]:hover:before{--tw-content:"";content:var(--tw-content)}.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-11{margin-top:2.75rem}.md\\:mt-14{margin-top:3.5rem}.md\\:mt-3{margin-top:.75rem}.md\\:mt-6{margin-top:1.5rem}.md\\:block{display:block}.md\\:grid{display:grid}.md\\:hidden{display:none}.md\\:w-\\[240px\\]{width:240px}.md\\:w-\\[300px\\]{width:300px}.md\\:w-auto{width:auto}.md\\:w-full{width:100%}.md\\:max-w-\\[27\\.5rem\\]{max-width:27.5rem}.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:flex-row{flex-direction:row}.md\\:justify-between{justify-content:space-between}.md\\:p-6{padding:1.5rem}.md\\:py-24{padding-bottom:6rem;padding-top:6rem}.md\\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\\:text-lg{font-size:1.125rem}.md\\:leading-7,.md\\:text-lg{line-height:1.75rem}.md\\:leading-9{line-height:2.25rem}.md\\:transition-none{transition-property:none}}@media (min-width:1024px){.lg\\:w-3\\/4{width:75%}}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:absolute:not(:last-child):after{position:absolute}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:left-10:not(:last-child):after{left:2.5rem}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:top-3:not(:last-child):after{top:.75rem}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:w-10:not(:last-child):after{width:2.5rem}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:border-b-2:not(:last-child):after{border-bottom-width:2px}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:border-solid:not(:last-child):after{border-style:solid}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:border-gray-200:not(:last-child):after{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:content-\\[\\"\\"\\]:not(:last-child):after{--tw-content:"";content:var(--tw-content)}';const xo=e=>{const[t,n]=zn(!1);return uo("button",{"data-testid":e.testId,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:[uo("div",{class:""+(t?"invisible":""),children:e.children}),t&&uo("div",{class:"absolute animate-spin",children:uo(wo,{theme:"light"})})]})},Co=({title:e,className:t,children:n,...r})=>{var o;const[i,a]=zn(!1),s=Vn(null);return uo("div",{className:`border border-2 border-gray-300 p-2 rounded-md overflow-hidden w-full ${t??""}`,...r,children:[uo("div",{className:"mx-2 flex justify-between cursor-pointer",onClick:Yn((()=>{a(!i)}),[i]),children:[uo("span",{className:"text-base text-left font-semibold text-primary-base",children:e}),uo("span",{className:"text-base text-left font-semibold text-gray-500",children:i?"-":"+"})]}),uo("div",{ref:s,className:"flex justify-center transition-all ease-in-out duration-1000",style:{height:i?`${(null==(o=null==s?void 0:s.current)?void 0:o.scrollHeight)??0}px`:"0px",opacity:i?1:0},children:n})]})},ko=e=>{qn(e,[])};function Eo(){return Eo=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},Eo.apply(null,arguments)}function So(e,t){return(So=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function No(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;
2
2
  /*!
3
3
  * content-type
4
4
  * Copyright(c) 2015 Douglas Christopher Wilson
5
5
  * MIT Licensed
6
6
  */
7
- var To=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,Ao=/\\([\u000b\u0020-\u00ff])/g,Oo=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,Ro=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(!Oo.test(r))throw new TypeError("invalid media type");var o=new Po(r.toLowerCase());if(-1!==n){var i,a,s;for(To.lastIndex=n;a=To.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(Ao,"$1")),o.parameters[i]=s}if(n!==t.length)throw new TypeError("invalid parameter format")}return o};function Po(e){this.parameters=Object.create(null),this.type=e}var Lo=new Map,Io=function(e){return e.cloneNode(!0)},Uo=function(){return"file:"===window.location.protocol},Fo=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=Ro(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(Uo()?"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||Uo()&&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()},jo={},Bo=function(e,t){jo[e]=jo[e]||[],jo[e].push(t)},Mo=function(e,t,n){if(Lo.has(e)){var r=Lo.get(e);if(void 0===r)return void Bo(e,n);if(r instanceof SVGSVGElement)return void n(null,Io(r))}Lo.set(e,void 0),Bo(e,n),Fo(e,t,(function(t,n){var r;t?Lo.set(e,t):(null===(r=n.responseXML)||void 0===r?void 0:r.documentElement)instanceof SVGSVGElement&&Lo.set(e,n.responseXML.documentElement),function(e){for(var t=function(t,n){setTimeout((function(){if(Array.isArray(jo[e])){var n=Lo.get(e),r=jo[e][t];n instanceof SVGSVGElement&&r(null,Io(n)),n instanceof Error&&r(n),t===jo[e].length-1&&delete jo[e]}}),0)},n=0,r=jo[e].length;n<r;n++)t(n)}(e)}))},Do=function(e,t,n){Fo(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)}))},zo=0,Ho=[],qo={},Wo="http://www.w3.org/1999/xlink",Vo=function(e,t,n,r,o,i,a){var s=e.getAttribute("data-src")||e.getAttribute("src");if(s){if(-1!==Ho.indexOf(e))return Ho.splice(Ho.indexOf(e),1),void(e=null);Ho.push(e),e.setAttribute("src",""),(r?Mo:Do)(s,o,(function(r,o){if(!o)return Ho.splice(Ho.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 d=e.getAttribute("width");d&&o.setAttribute("width",d);var u=e.getAttribute("height");u&&o.setAttribute("height",u);var p=Array.from(new Set(No(No(No([],(o.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(e.getAttribute("class")||"").split(" "),!0))).join(" ").trim();o.setAttribute("class",p);var f=e.getAttribute("style");f&&o.setAttribute("style",f),o.setAttribute("data-src",s);var m=[].filter.call(e.attributes,(function(e){return/^data-\w[\w-]*$/.test(e.name)}));if(Array.prototype.forEach.call(m,(function(e){e.name&&e.value&&o.setAttribute(e.name,e.value)})),n){var h,g,_,y,b,w={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],path:[],pattern:["fill","stroke"],radialGradient:["fill","stroke"]};Object.keys(w).forEach((function(e){h=e,_=w[e];for(var t=function(e,t){var n;y=g[e].id,b=y+"-"+ ++zo,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(Wo,"href");l&&l.toString()==="#"+g[e].id&&i.push(r[a])}for(var c=0,d=i.length;c<d;c++)i[c].setAttributeNS(Wo,"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,k=o.querySelectorAll("script"),C=[],E=0,S=k.length;E<S;E++)(x=k[E].getAttribute("type"))&&"application/ecmascript"!==x&&"application/javascript"!==x&&"text/javascript"!==x||((v=k[E].innerText||k[E].textContent)&&C.push(v),o.removeChild(k[E]));if(C.length>0&&("always"===t||"once"===t&&!qo[s])){for(var N=0,T=C.length;N<T;N++)new Function(C[N])(window);qo[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",Wo),i(o),!e.parentNode)return Ho.splice(Ho.indexOf(e),1),e=null,void a(new Error("Parent node is null"));e.parentNode.replaceChild(o,e),Ho.splice(Ho.indexOf(e),1),e=null,a(null,o)}))}else a(new Error("Invalid data-src or src attribute"))},$o={exports:{}};function Go(){}function Yo(){}Yo.resetWarningCache=Go;$o.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:Yo,resetWarningCache:Go};return n.PropTypes=n,n}();var Zo=$o.exports,Jo=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],Xo="http://www.w3.org/2000/svg",Ko="http://www.w3.org/1999/xlink",Qo=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}var n,r;r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,So(n,r);var o=t.prototype;return o.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,d=o.title,u=o.useRequestCache,p=this.props.onError,f=this.props.beforeInjection,m=this.props.afterInjection,h=this.props.wrapper;"svg"===h?((n=document.createElementNS(Xo,h)).setAttribute("xmlns",Xo),n.setAttribute("xmlns:xlink",Ko),r=document.createElementNS(Xo,h)):(n=document.createElement(h),r=document.createElement(h)),n.appendChild(r),r.dataset.src=c,this.nonReactWrapper=this.reactWrapper.appendChild(n);var g=function(e){t.removeSVG(),t._isMounted?t.setState((function(){return{hasError:!0,isLoading:!1}}),(function(){p(e)})):p(e)};!function(e,t){var n=void 0===t?{}:t,r=n.afterAll,o=void 0===r?function(){}:r,i=n.afterEach,a=void 0===i?function(){}:i,s=n.beforeEach,l=void 0===s?function(){}:s,c=n.cacheRequests,d=void 0===c||c,u=n.evalScripts,p=void 0===u?"never":u,f=n.httpRequestWithCredentials,m=void 0!==f&&f,h=n.renumerateIRIElements,g=void 0===h||h;if(e&&"length"in e)for(var _=0,y=0,b=e.length;y<b;y++)Vo(e[y],p,g,d,m,l,(function(t,n){a(t,n),e&&"length"in e&&e.length===++_&&o(_)}));else e?Vo(e,p,g,d,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(d){var r=e.querySelector(":scope > title");r&&e.removeChild(r);var o=document.createElement("title");o.innerHTML=d,e.prepend(o)}try{f(e)}catch(a){g(a)}},cacheRequests:u,evalScripts:a,httpRequestWithCredentials:s,renumerateIRIElements:l})}},o.removeSVG=function(){var e;null!=(e=this.nonReactWrapper)&&e.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},o.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},o.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})(Eo({},e),this.props)&&this.setState((function(){return t.initialState}),(function(){t.removeSVG(),t.renderSVG()}))},o.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},o.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,Jo);return v(r,Eo({},o,{ref:this.refCallback},"svg"===r?{xmlns:Xo,xmlnsXlink:Ko}:{}),this.state.isLoading&&n&&v(n,null),this.state.hasError&&t&&v(t,null))},t}(E);Qo.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"},Qo.propTypes={afterInjection:Zo.func,beforeInjection:Zo.func,desc:Zo.string,evalScripts:Zo.oneOf(["always","once","never"]),fallback:Zo.oneOfType([Zo.func,Zo.object,Zo.string]),httpRequestWithCredentials:Zo.bool,loading:Zo.oneOfType([Zo.func,Zo.object,Zo.string]),onError:Zo.func,renumerateIRIElements:Zo.bool,src:Zo.string.isRequired,title:Zo.string,useRequestCache:Zo.bool,wrapper:Zo.oneOf(["div","span","svg"])};const ei=({visible:e,children:t})=>{const n=Vn(e);return e&&!n.current&&(n.current=!0),n.current?uo("div",{hidden:!e,children:t}):null},ti=({icon:e})=>"string"==typeof e?uo(Qo,{src:e,wrapper:"svg",className:"w-6 h-6 max-w-6 max-h-6 min-w-6 min-h-6",beforeInjection:e=>{var t;e.removeAttribute("width"),e.removeAttribute("height"),null==(t=e.querySelector("path"))||t.removeAttribute("fill"),e.setAttribute("fill","currentColor")}}):uo("div",{className:"w-6 h-6 max-w-6 max-h-6 min-w-6 min-h-6",children:e}),ni=({label:e,icon:t})=>uo("div",{className:"flex items-center flex-col",children:[t,uo("p",{className:"max-h-10 max-w-20 break-words text-ellipsis overflow-hidden line-clamp-2 mt-2",children:e})]}),ri=({children:e})=>uo(C,{children:e}),oi=({selectedIndex:e,onChange:t,children:n})=>{const r=Gn((()=>fr.toArray(n).filter((e=>e.type===ni))),[n]),o=Gn((()=>fr.toArray(n).filter((e=>e.type===ri))),[n]);return Co((()=>{o.length>0&&(null==t||t(0))})),uo("div",{children:[uo("div",{className:"flex items-baseline md:mb-4",children:r.map(((n,r)=>uo("div",{onClick:()=>null==t?void 0:t(r),className:`\n text-sm font-medium cursor-auto w-10 min-w-10 max-w-10 h-12 min-h-12 max-h-12 mr-10 h-full relative\n flex items-center justify-center\n [&:not(:last-child):after]:absolute [&:not(:last-child):after]:top-3 [&:not(:last-child):after]:content-[""] [&:not(:last-child):after]:w-10 [&:not(:last-child):after]:border-b-2 [&:not(:last-child):after]:border-solid [&:not(:last-child):after]:border-gray-200 [&:not(:last-child):after]:left-10\n ${r===e?"text-primary-base":"text-gray-400"}\n hover:before:content-[''] \n ${o.length>0?"hover:before:cursor-pointer":"hover:before:cursor-default"} \n hover:before:w-16 hover:before:h-16 hover:before:absolute\n `,children:n},n.key)))}),o.map(((t,n)=>uo(ei,{visible:n===e,children:t},t.key)))]})},ii=({className:e,children:t})=>uo("h1",{className:`text-2xl md:text-3xl font-bold ${e??""}`,children:t}),ai=({className:e,children:t})=>uo("h3",{class:`text-base md:text-lg text-gray-600 ${e??""}`,children:t}),si=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"})),li=({title:e,steps:t,...n})=>{const r=t.length,o=t.filter((e=>e.completed)).length;return uo("div",{...n,children:[e&&uo("h1",{className:"text-lg font-semibold mb-4",children:e}),uo("ol",{children:t.map(((e,t)=>{const n=o===t;return uo("li",{className:"relative flex-1 pb-6 "+(t!==r-1?`after:content-[''] after:w-0.5 after:h-[calc(100%-theme(height.8))] ${e.completed?"after:bg-primary-base":"after:bg-gray-300"} after:inline-block after:absolute after:top-8 after:left-4`:""),children:uo("div",{className:"flex font-medium w-full",children:[uo("span",{className:`w-8 min-w-8 max-w-8 h-8 min-h-8 max-h-8 ${e.completed?"bg-primary-base":"bg-white"} border-2 ${e.completed||n?"border-primary-base":"border-gray-300"} rounded-full flex justify-center items-center mr-3 text-sm ${n?"text-primary-base":"text-gray-500"}`,children:e.completed?uo(si,{className:"w-4 h-4 text-white"}):t+1}),uo("div",{children:[uo("h4",{className:"text-sm text-left font-semibold "+(e.completed||n?"text-primary-base":"text-gray-600"),children:e.title}),uo("p",{className:"text-sm text-left font-normal",children:e.description})]})]})},t)}))})]})},ci=(e,t)=>{switch(!0){case"benefits-setup-started"===e:return vn.backend.command({eventType:"Started"},t);case"membership-accepted"===e:return vn.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!0,featureName:"",treatmentName:"",template:"Eoi"}},t);case"membership-declined"===e:return vn.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!1,featureName:"",treatmentName:"",template:"Eoi"}},t);case"sign-up-viewed"===e:return vn.backend.command({eventType:"OfferViewed",offerName:"Membership",data:{featureName:"",treatmentName:""}},t);case"sign-up-completed"===e:return(async()=>{await vn.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!0,featureName:"",treatmentName:"",template:"Eoi"}},t),await vn.backend.command({eventType:"CustomerRegistrationCompleted",isRegistered:!0},t)})();case"sign-up-declined"===e:return(async()=>{await vn.backend.command({eventType:"CustomerRegistrationCompleted",isRegistered:!1},t),await vn.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!1,featureName:"",treatmentName:"",template:"Eoi"}},t)})();case"marketplace-started"===e:return vn.workplaceBackend.track("Marketplace Started",{},t);case"object"==typeof e&&"offer-selected"===e.type:return vn.workplaceBackend.track("MarketplaceOffer Selected",{offer:e.offerName},t);case"object"==typeof e&&"offer-viewed"===e.type:return vn.backend.command({...e,eventType:"OfferViewed"},t);case"object"==typeof e&&"offer-accepted"===e.type:return vn.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:{...e.data,accepted:!0}},t);case"object"==typeof e&&"offer-declined"===e.type:return vn.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:{...e.data,accepted:!1}},t);case"object"==typeof e&&"offer-progressed"===e.type:return vn.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:e.data},t);case"object"==typeof e&&"summary-viewed"===e.type:return vn.backend.command({eventType:"SummaryViewed",summaryVariant:e.data.summaryVariant},t);case"completed"===e:return vn.backend.command({eventType:"Completed"},t)}return Promise.resolve()},di=()=>({trace:ci});var ui=Object.defineProperty,pi=(e,t,n)=>(((e,t,n)=>{t in e?ui(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let fi=new class{constructor(){pi(this,"current",this.detect()),pi(this,"handoffState","pending"),pi(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}},mi=(e,t)=>{fi.isServer?qn(e,t):Wn(e,t)};function hi(e){let t=Vn(e);return mi((()=>{t.current=e}),[e]),t}let gi=function(e){let t=hi(e);return ao.useCallback(((...e)=>t.current(...e)),[t])};function _i(){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=_i();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 yi(){let[e]=zn(_i);return qn((()=>()=>e.dispose()),[e]),e}function bi(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in so&&so.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=zn(fi.isHandoffComplete);return t&&!1===fi.isHandoffComplete&&n(!1),qn((()=>{!0!==t&&n(!0)}),[t]),qn((()=>fi.handoff()),[]),!e&&t}function wi(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,wi),r}let vi=Symbol();function xi(...e){let t=Vn(e);qn((()=>{t.current=e}),[e]);let n=gi((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[vi])))?void 0:n}function ki(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}var Ci,Ei,Si=((Ei=Si||{})[Ei.None=0]="None",Ei[Ei.RenderStrategy=1]="RenderStrategy",Ei[Ei.Static=2]="Static",Ei),Ni=((Ci=Ni||{})[Ci.Unmount=0]="Unmount",Ci[Ci.Hidden=1]="Hidden",Ci);function Ti({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a,mergeRefs:s}){s=null!=s?s:Oi;let l=Ri(t,e);if(i)return Ai(l,n,r,a,s);let c=null!=o?o:0;if(2&c){let{static:e=!1,...t}=l;if(e)return Ai(t,n,r,a,s)}if(1&c){let{unmount:e=!0,...t}=l;return wi(e?0:1,{0:()=>null,1:()=>Ai({...t,hidden:!0,style:{display:"none"}},n,r,a,s)})}return Ai(l,n,r,a,s)}function Ai(e,t={},n,r,o){let{as:i=n,children:a,refName:s="ref",...l}=Ii(e,["unmount","static"]),c=void 0!==e.ref?{[s]:e.ref}:{},d="function"==typeof a?a(t):a;"className"in l&&l.className&&"function"==typeof l.className&&(l.className=l.className(t));let u={};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&&(u["data-headlessui-state"]=n.join(" "))}if(i===C&&Object.keys(Li(l)).length>0){if(!Vr(d)||Array.isArray(d)&&d.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=d.props,t="function"==typeof(null==e?void 0:e.className)?(...t)=>ki(null==e?void 0:e.className(...t),l.className):ki(null==e?void 0:e.className,l.className),n=t?{className:t}:{};return Gr(d,Object.assign({},Ri(d.props,Li(Ii(l,["ref"]))),u,c,{ref:o(d.ref,c.ref)},n))}return v(i,Object.assign({},Ii(l,["ref"]),i!==C&&c,i!==C&&u),d)}function Oi(...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 Pi(e){var t;return Object.assign(ur(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Li(e){let t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}function Ii(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}let Ui=G(null);Ui.displayName="OpenClosedContext";var Fi=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Fi||{});function ji(){return Zn(Ui)}function Bi({value:e,children:t}){return ao.createElement(Ui.Provider,{value:e},t)}function Mi(){let e=Vn(!1);return mi((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function Di(e,...t){e&&t.length>0&&e.classList.add(...t)}function zi(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Hi(e,t,n,r){let o=n?"enter":"leave",i=_i(),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=wi(o,{enter:()=>t.enter,leave:()=>t.leave}),l=wi(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=wi(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return zi(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Di(e,...t.base,...s,...c),i.nextFrame((()=>{zi(e,...t.base,...s,...c),Di(e,...t.base,...s,...l),function(e,t){let n=_i();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,(()=>(zi(e,...t.base,...s),Di(e,...t.base,...t.entered),a())))})),i.dispose}function qi(e=""){return e.split(/\s+/).filter((e=>e.length>1))}let Wi=G(null);Wi.displayName="TransitionContext";var Vi,$i=((Vi=$i||{}).Visible="visible",Vi.Hidden="hidden",Vi);let Gi=G(null);function Yi(e){return"children"in e?Yi(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function Zi(e,t){let n=hi(e),r=Vn([]),o=Mi(),i=yi(),a=gi(((e,t=Ni.Hidden)=>{let a=r.current.findIndex((({el:t})=>t===e));-1!==a&&(wi(t,{[Ni.Unmount](){r.current.splice(a,1)},[Ni.Hidden](){r.current[a].state="hidden"}}),i.microTask((()=>{var e;!Yi(r)&&o.current&&(null==(e=n.current)||e.call(n))})))})),s=gi((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,Ni.Unmount)})),l=Vn([]),c=Vn(Promise.resolve()),d=Vn({enter:[],leave:[],idle:[]}),u=gi(((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(d.current[n].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===n?c.current=c.current.then((()=>null==t?void 0:t.wait.current)).then((()=>r(n))):r(n)})),p=gi(((e,t,n)=>{Promise.all(d.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=l.current.shift())||e()})).then((()=>n(t)))}));return Gn((()=>({children:r,register:s,unregister:a,onStart:u,onStop:p,wait:c,chains:d})),[s,a,r,u,p,d,c])}function Ji(){}Gi.displayName="NestingContext";let Xi=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Ki(e){var t;let n={};for(let r of Xi)n[r]=null!=(t=e[r])?t:Ji;return n}let Qi=Si.RenderStrategy;let ea=Pi((function(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,a=Vn(null),s=xi(a,t);bi();let l=ji();if(void 0===n&&null!==l&&(n=(l&Fi.Open)===Fi.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,d]=zn(n?"visible":"hidden"),u=Zi((()=>{d("hidden")})),[p,f]=zn(!0),m=Vn([n]);mi((()=>{!1!==p&&m.current[m.current.length-1]!==n&&(m.current.push(n),f(!1))}),[m,n]);let h=Gn((()=>({show:n,appear:r,initial:p})),[n,r,p]);qn((()=>{if(n)d("visible");else if(Yi(u)){let e=a.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&d("hidden")}else d("hidden")}),[n,u]);let g={unmount:o},_=gi((()=>{var t;p&&f(!1),null==(t=e.beforeEnter)||t.call(e)})),y=gi((()=>{var t;p&&f(!1),null==(t=e.beforeLeave)||t.call(e)}));return ao.createElement(Gi.Provider,{value:u},ao.createElement(Wi.Provider,{value:h},Ti({ourProps:{...g,as:C,children:ao.createElement(ta,{ref:s,...g,...i,beforeEnter:_,beforeLeave:y})},theirProps:{},defaultTag:C,features:Qi,visible:"visible"===c,name:"Transition"})))})),ta=Pi((function(e,t){var n,r;let{beforeEnter:o,afterEnter:i,beforeLeave:a,afterLeave:s,enter:l,enterFrom:c,enterTo:d,entered:u,leave:p,leaveFrom:f,leaveTo:m,...h}=e,g=Vn(null),_=xi(g,t),y=null==(n=h.unmount)||n?Ni.Unmount:Ni.Hidden,{show:b,appear:w,initial:v}=function(){let e=Zn(Wi);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]=zn(b?"visible":"hidden"),C=function(){let e=Zn(Gi);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:E,unregister:S}=C;qn((()=>E(g)),[E,g]),qn((()=>{if(y===Ni.Hidden&&g.current)return b&&"visible"!==x?void k("visible"):wi(x,{hidden:()=>S(g),visible:()=>E(g)})}),[x,g,E,S,b,y]);let N=hi({base:qi(h.className),enter:qi(l),enterFrom:qi(c),enterTo:qi(d),entered:qi(u),leave:qi(p),leaveFrom:qi(f),leaveTo:qi(m)}),T=function(e){let t=Vn(Ki(e));return qn((()=>{t.current=Ki(e)}),[e]),t}({beforeEnter:o,afterEnter:i,beforeLeave:a,afterLeave:s}),A=bi();qn((()=>{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]=zn(e),r=Mi(),o=Yn((e=>{r.current&&n((t=>t|e))}),[t,r]),i=Yn((e=>Boolean(t&e)),[t]),a=Yn((e=>{r.current&&n((t=>t&~e))}),[n,r]),s=Yn((e=>{r.current&&n((t=>t^e))}),[n]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:a,toggleFlag:s}}(0),I=gi((e=>wi(e,{enter:()=>{L.addFlag(Fi.Opening),T.current.beforeEnter()},leave:()=>{L.addFlag(Fi.Closing),T.current.beforeLeave()},idle:()=>{}}))),U=gi((e=>wi(e,{enter:()=>{L.removeFlag(Fi.Opening),T.current.afterEnter()},leave:()=>{L.removeFlag(Fi.Closing),T.current.afterLeave()},idle:()=>{}}))),F=Zi((()=>{k("hidden"),S(g)}),C),j=Vn(!1);!function({immediate:e,container:t,direction:n,classes:r,onStart:o,onStop:i}){let a=Mi(),s=yi(),l=hi(n);mi((()=>{e&&(l.current="enter")}),[e]),mi((()=>{let e=_i();s.add(e.dispose);let n=t.current;if(n&&"idle"!==l.current&&a.current)return e.dispose(),o.current(l.current),e.add(Hi(n,r.current,"enter"===l.current,(()=>{e.dispose(),i.current(l.current)}))),e.dispose}),[n])}({immediate:R,container:g,classes:N,direction:P,onStart:hi((e=>{j.current=!0,F.onStart(g,e,I)})),onStop:hi((e=>{j.current=!1,F.onStop(g,e,U),"leave"===e&&!Yi(F)&&(k("hidden"),S(g))}))});let B=h,M={ref:_};return R?B={...B,className:ki(h.className,...N.current.enter,...N.current.enterFrom)}:j.current&&(B.className=ki(h.className,null==(r=g.current)?void 0:r.className),""===B.className&&delete B.className),ao.createElement(Gi.Provider,{value:F},ao.createElement(Bi,{value:wi(x,{visible:Fi.Open,hidden:Fi.Closed})|L.flags},Ti({ourProps:M,theirProps:B,defaultTag:"div",features:Qi,visible:"visible"===x,name:"Transition.Child"})))})),na=Pi((function(e,t){let n=null!==Zn(Wi),r=null!==ji();return ao.createElement(ao.Fragment,null,!n&&r?ao.createElement(ea,{ref:t,...e}):ao.createElement(ta,{ref:t,...e}))})),ra=Object.assign(ea,{Child:na,Root:ea});const oa=({children:e})=>{const t=ao.Children.toArray(e),n=t.find((e=>e.type===ia)),r=t.find((e=>e.type===aa));return uo(ra,{appear:!0,show:!0,enter:"transition duration-700 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:uo("div",{class:"flex flex-col text-center items-center max-w-[40rem] mx-auto",children:[uo(ra,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:n&&uo("div",{class:"flex items-center h-full",children:n})}),uo(ra,{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&&uo("div",{class:"flex items-center h-full",children:r})})]})})},ia=({children:e})=>uo(C,{children:e}),aa=({children:e})=>uo(C,{children:e});oa.Top=ia,oa.Bottom=aa;const sa=({onContinue:e})=>{const{featureFlags:{marketplaceScheme:t},offers:n,hostInformation:{experiment:r,treatment:o}}=Zn(fo),{trace:i}=di(),a="allowance"===t.scheme?t.content.setUpBenefits:void 0;return uo(C,{children:a&&uo("div",{className:"flex flex-col items-center max-w-full w-full mx-auto",children:[uo(oi,{selectedIndex:-1,children:n.map((e=>uo(ni,{label:e.content.productName,icon:uo(ti,{icon:e.content.iconUrl})},e.name)))}),uo(oa,{children:[uo(oa.Top,{children:uo("div",{className:"flex flex-col gap-4",children:[uo(ii,{children:a.title}),uo(ai,{children:a.description})]})}),uo(oa.Bottom,{children:uo("div",{className:"mt-5 flex flex-col items-center gap-5 text-center",children:[a.progress&&uo(ko,{className:"lg:w-3/4",title:a.progress.title,children:uo(li,{steps:a.progress.steps,className:"mt-2 rounded-md px-6 py-4"})}),uo(xo,{testId:"allowance_set_up_benefits_button_next_screen",class:"mt-5 w-full md:w-[240px]",onClickPromise:async()=>{await i("marketplace-started",{experiment:r,treatment:o}),await e()},children:a.buttonText}),a.termsAndConditions&&uo("span",{className:"font-normal text-xs mt-4 lg:w-3/4",children:uo(a.termsAndConditions,{})})]})})]})]})})},la=({icon:e,children:t,className:n,...r})=>uo("div",{...r,className:`${n??""} rounded-md shadow-sm`,children:uo("div",{className:"flex items-center gap-4 px-4 py-4",children:[e&&uo("span",{className:"w-8 min-w-8 max-w-8",children:e}),t&&uo("span",{className:"text-left text-base",children:t})]})}),ca=e=>{const{trace:t}=di(),{featureFlags:{marketplaceScheme:n},hostInformation:{experiment:r,treatment:o}}=Zn(fo),i="allowance"===n.scheme?n.content.joinBenefits:void 0;return qn((()=>{t("benefits-setup-started",{experiment:r,treatment:o})}),[r,t,o]),uo(C,{children:i&&uo(oa,{children:[uo(oa.Top,{children:[uo("img",{class:"max-w-[30rem] w-full hidden md:block",src:i.desktopImageUrl}),uo("img",{class:"max-w-[30rem] w-full md:hidden",src:i.mobileImageUrl})]}),uo(oa.Bottom,{children:uo("div",{children:[uo("h3",{class:"mt-8 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:i.title}),uo("p",{class:"mt-3 text-lg leading-7 text-gray-600",children:i.description}),uo(la,{className:"bg-teal-50 mt-5",style:{background:"linear-gradient(90deg, rgba(255, 216, 77, 0.10) 0%, rgba(255, 135, 111, 0.10) 100%)"},icon:i.specialBanner.icon,children:uo("div",{children:[uo("p",{className:"font-semibold text-base text-gray-900",children:i.specialBanner.title}),uo("span",{className:"font-normal text-base text-gray-900",children:i.specialBanner.subTitle})]})}),uo(xo,{testId:"introduction_button_next_screen",class:"mt-8",onClickPromise:async()=>{e.onContinue()},children:i.buttonText})]})})]})})},da=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/get-app-CQalMIl7.jpg?inline").href:new URL("assets/get-app-CQalMIl7.jpg?inline","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),ua=()=>uo("div",{className:"mt-4 flex items-center border rounded-md border-gray-300",children:[uo("img",{className:"h-40 h-min-40 h-max-40 m-0.5",src:da}),uo("div",{className:"flex flex-col gap-1",children:[uo("h4",{className:"font-bold text-lg text-left",children:"Workplace benefits in your pocket!"}),uo("p",{className:"font-normal text-base text-left",children:"Download the Flare app for easy access to your workplace benefits and exclusive discounts."}),uo("a",{className:"focus:ring-2 focus:ring-primary-focus font-bold rounded-md self-start text-primary-base",target:"_blank",rel:"noreferrer",href:"https://flarehr.app.link/download",children:["Get the Flare App ","->"]})]})]}),pa=({onContinue:e})=>{const{offersProgress:{hasCompletedAnyOffers:t},isAppEnabled:n,featureFlags:{marketplaceScheme:r},hostInformation:{experiment:o,treatment:i}}=Zn(fo),{trace:a}=di(),s=Gn((()=>{const e=t();switch(!0){case n&&e:return"allowance-accepted-app";case n&&!e:return"allowance-declined-app";case!n&&e:return"allowance-accepted-noapp";case!n&&!e:return"allowance-declined-noapp";default:throw"Invalid summary variant"}}),[t,n]);qn((()=>{(async()=>{await a({type:"summary-viewed",data:{summaryVariant:s}},{experiment:o,treatment:i})})()}),[o,i,s,a]);const l=Yn((async()=>{await a("completed",{experiment:o,treatment:i}),await e()}),[o,i,e,a]),c="allowance"===r.scheme?r.content.summary:void 0;return uo(C,{children:c&&uo(oa,{children:[uo(oa.Top,{children:uo("div",{className:"flex flex-col gap-4",children:[uo(ii,{children:c.title}),uo(ai,{children:c.description})]})}),uo(oa.Bottom,{children:uo("div",{className:"mt-5 flex flex-col items-center gap-5 text-center",children:[c.progress&&uo(ko,{className:"lg:w-3/4",title:c.progress.title,children:uo(li,{steps:c.progress.steps,className:"mt-2 rounded-md px-6 py-4"})}),uo(xo,{testId:"step-benefits-finish",class:"mt-5 w-full md:w-[240px]",onClickPromise:l,children:c.buttonText}),n&&uo(ua,{})]})})]})})};var fa=(e=>(e[e.PHONE_NUMBER=0]="PHONE_NUMBER",e[e.OTP=1]="OTP",e[e.SUCCESS=2]="SUCCESS",e))(fa||{});const ma=({className:e,children:t,...n})=>uo("label",{class:`text-base text-gray-600 ${e??""}`,...n,children:t}),ha=e=>v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"green",className:"w-5 h-5",...e},v("path",{fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm3.857-9.809a.75.75 0 0 0-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 1 0-1.06 1.061l2.5 2.5a.75.75 0 0 0 1.137-.089l4-5.5Z",clipRule:"evenodd"})),ga=({className:e,onClick:t,...n})=>{const[r,o]=zn(!1);return uo("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:Yn((()=>{if(!r)return o(!0),t().finally((()=>{o(!1)}))}),[r,t]),...n,children:[uo("div",{class:"relative "+(r?"invisible":""),children:n.children}),r&&uo("div",{class:"absolute",children:uo(wo,{theme:"primary"})})]})},_a=({className:e,allowedKeyPattern:t,onChange:n,value:r,leadingIconElement:o,trailingIconElement:i,...a})=>{const s=Yn((e=>{t.test(e.key)||e.preventDefault()}),[t]);return uo(C,{children:uo("div",{class:"relative",children:[o,uo("input",{"data-testid":a.testId,type:"text",className:`border-0 ring-2 ring-gray-200 focus:outline-none text-base font-medium rounded-md shadow-sm ${e}`,value:r,onKeyPress:s,onChange:e=>n(e.currentTarget.value),...a}),i]})})},ya=e=>e.replace(/ /g,""),ba=e=>{const t=ya(e);return t.startsWith("04")&&10===t.length||t.startsWith("614")&&11===t.length||t.startsWith("+614")&&12===t.length||/^\+642\d{7,9}$/.test(t)},wa=({phoneNumber:e,onSubmit:t,onDecline:n})=>{const{hostInformation:{workflowsJourneyType:r}}=Zn(fo),[o,i]=zn(""),{setPhoneNumber:a,phoneNumber:s}=(e=>{const{identity:t}=Zn(fo),[n,r]=zn((()=>e&&ba(e)?e:"")),o=Gn((()=>ba(n)),[n]),i=Gn((()=>ya(n)),[n]),a=Gn((()=>i.startsWith("04")?`+61${i.replace(/^0+/,"")}`:i.startsWith("614")?`+${i}`:i),[i]),s=Gn((()=>(e=>{let t=0;return"#### ### ### ### ### ### ###".replace(/#/g,(()=>e[t++]??"")).trim()})(i)),[i]),l=Gn((()=>ba(t.verifiedPhoneNumber)&&a===t.verifiedPhoneNumber),[a,t.verifiedPhoneNumber]);return{setPhoneNumber:r,phoneNumber:{valid:o,original:n,formatted:a,masked:s,isVerified:l}}})(e),[l,c]=zn(s.isVerified),d=Yn((()=>{i("")}),[]),u=Yn((()=>{const e=s.valid?"":"Please enter a valid Australian mobile number beginning with 04.";i(e),c(s.isVerified)}),[s.isVerified,s.valid]),p=Yn((async()=>{s.valid&&await t(s).catch(i)}),[s,t]),f=Yn((async()=>{c(!1)}),[]),m=uo("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 ",uo(ha,{})]});return uo(oa,{children:[uo(oa.Top,{children:uo("div",{className:"flex flex-col gap-5",children:[uo(ii,{children:"Join your workplace benefits program"}),uo(ai,{children:[s.isVerified?"Confirm ":"Enter "," your ",uo("b",{children:"personal"})," mobile number to finish setting up your Flare Benefits account linked to your workplace"]})]})}),uo(oa.Bottom,{children:uo("div",{className:"mt-5 md:w-[300px] text-left",children:[uo(ma,{className:"font-medium text-sm text-gray-900 text-left",children:"Australian Mobile Number"}),uo(_a,{testId:"sign_in_mobile_number_text_input_mobile_number",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:d,onfocusout:u,trailingIconElement:l&&m,disabled:l}),0!==o.length&&uo("div",{className:"h-8 leading-none",children:uo("span",{className:"text-xs text-rose-500",children:o})}),l&&uo("div",{className:"mt-2 ml-2 mb-2 leading-none",children:uo("span",{className:"text-xs",children:["Not your personal number?",uo(ga,{class:"text-blue-500",onClick:f,children:"Change number"})]})}),uo("div",{children:uo("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"," ",uo("a",{href:"https://www.flarehr.com/flare-app-terms-and-conditions/",target:"_blank",rel:"noreferrer",children:" Terms of Use "}),"and",uo("a",{href:"https://www.flarehr.com/privacy-policy/",target:"_blank",rel:"noreferrer",children:" Privacy Policy"}),"."," "]})}),uo(xo,{testId:"sign_in_mobile_number_button_send_otp",class:"mt-5 md:w-full",onClickPromise:p,children:"Join your workplace"}),r!==ne.AppInvite&&uo(xo,{testId:"sign_in_mobile_number_button_decline_to_send_otp",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:n,children:"Not now"})]})})]})},va=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/check-animated-QQOZQPLY.gif?inline").href:new URL("assets/check-animated-QQOZQPLY.gif?inline","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),xa=({onContinue:e})=>{const{featureFlags:{marketplaceScheme:t},hostInformation:{experiment:n,treatment:r}}=Zn(fo),{trace:o}=di(),i=Gn((()=>"allowance"===t.scheme?{title:"Account created successfully",description:"You now have access to your workplace benefits",isNextButtonHidden:!0}:{title:"You’ve joined your workplace benefits program",description:"You now have access to your workplace benefits",isNextButtonHidden:!1}),[t]),a=Yn((async()=>{"allowance"!==t.scheme&&await o("marketplace-started",{experiment:n,treatment:r}),e()}),[n,t.scheme,e,o,r]);return qn((()=>{if("allowance"===t.scheme){const t=setTimeout(e,3e3);return()=>clearTimeout(t)}}),[t,e]),uo(oa,{children:[uo(oa.Top,{children:uo("img",{src:va,className:"h-16 w-16"})}),uo(oa.Bottom,{children:uo("div",{className:"mt-5 flex flex-col items-center gap-5 text-center",children:[uo(ii,{children:i.title}),uo(ai,{children:i.description}),!i.isNextButtonHidden&&uo(xo,{testId:"sign_in_success_button_next_screen",class:"mt-5 w-full md:w-[240px]",onClickPromise:a,children:"Set up your benefits"})]})})]})},ka=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=({open:e})=>uo(bo,{open:e,children:uo(yo,{children:uo("div",{className:"flex flex-col gap-5 items-center justify-center text-center",children:[uo(wo,{size:"lg"}),uo(ii,{children:"Creating your account"}),uo("div",{children:[uo(ai,{children:"This can take up to 30 seconds."}),uo(ai,{children:"Please don't navigate away or refresh your browser."})]})]})})}),Ea=({phoneNumber:e,onVerify:t,onResendOtp:n,onGoBack:r})=>{const{otp:o,setOtp:i}=(()=>{const[e,t]=zn("");return{otp:{valid:Gn((()=>6===e.length),[e.length]),code:e},setOtp:t}})(),[a,s]=zn(!1),[l,c]=zn(""),{countdown:d,restart:u}=(e=>{const[t,n]=zn(e),r=Vn(),o=Yn((()=>{clearInterval(r.current)}),[]);return qn((()=>o),[o]),{countdown:t,restart:Yn((()=>{let t=e;clearInterval(r.current),r.current=setInterval((()=>{t<0?clearInterval(r.current):n(t--)}),1e3)}),[e])}})(60);qn(u,[u]);const p=Yn((()=>(s(!0),c(""),t(o.code).catch(c).finally((()=>{s(!1)})))),[t,o.code]),f=Yn((()=>(c(""),n().then(u).catch(c))),[n,u]);return uo(C,{children:[uo(Ca,{open:a}),uo(oa,{children:[uo(oa.Top,{children:uo("div",{className:"flex flex-col gap-5",children:[uo(ii,{children:"Verify your mobile number"}),uo(ai,{children:["An SMS verification code has been sent to the number ",e,"."]})]})}),uo(oa.Bottom,{children:uo("div",{className:"mt-5 md:w-[300px] text-left",children:[uo(ma,{className:"font-medium text-sm text-gray-900 text-left",children:"Enter your verification code"}),uo(_a,{testId:"sign_in_otp_text_input_otp",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&&uo("span",{className:"text-xs text-rose-500",children:l}),uo("p",{class:"mt-2 text-center text-xs text-gray-600 disabled:opacity-75 ",children:["Didn't get the code?",uo(ga,{disabled:0!==d,className:"underline mx-2 disabled:text-gray-600 disabled:hover:bg-transparent disabled:cursor-text disabled:px-0",onClick:f,children:"Resend SMS"}),0!==d&&uo(C,{children:["in ",d," secs"]})]}),uo(xo,{testId:"sign_in_otp_button_verify_otp",class:"mt-5 md:w-full",disabled:!o.valid,onClickPromise:p,children:"Continue"}),uo(xo,{testId:"sign_in_otp_button_decline_to_verify_otp",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:uo("span",{className:"flex gap-3",children:[uo(ka,{}),"Back"]})})]})})]})]})},Sa=({phoneNumber:e,onSignUp:t,onVerify:n,onResendOtp:r,onSuccess:o,onDecline:i})=>{const{trace:a}=di(),[s,l]=zn(e??""),{step:c,goBack:d,goToStep:u}=(()=>{const[e,t]=zn(0),n=Yn((()=>{const n=e-1;n>=0&&t(n)}),[e]),r=Yn((e=>{e<=2&&t(e)}),[]);return{step:e,goBack:n,goToStep:r}})();qn((()=>{(async()=>{await a("sign-up-viewed")})()}),[a]);const p=Yn((e=>t(e.formatted).then((async t=>{l(e.masked),t.isVerificationRequired?u(fa.OTP):(await a("sign-up-completed"),u(fa.SUCCESS))}))),[u,t,a]),f=Yn((()=>a("sign-up-declined").then(i)),[i,a]),m=Yn((e=>n(e).then((async()=>{await a("sign-up-completed"),u(fa.SUCCESS)}))),[u,n,a]);return uo(C,{children:[c===fa.PHONE_NUMBER&&uo(wa,{phoneNumber:s,onSubmit:p,onDecline:f}),c===fa.OTP&&uo(Ea,{phoneNumber:s,onVerify:m,onResendOtp:r,onGoBack:d}),c===fa.SUCCESS&&uo(xa,{onContinue:o})]})};var Na=(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))(Na||{});const Ta=e=>{var t;const n=null==(t=null==e?void 0:e.response)?void 0:t.data;throw Na[null==n?void 0:n.code]??"Sorry, we are currently experiencing some issues. Please try again later."},Aa=({onSuccess:e,onDecline:t})=>{const{identity:{phoneNumber:n}}=Zn(fo),{signUp:r,verifyOtp:o,resendOtp:i}={signUp:async e=>vn.backend.getClient().post("v2.0/auth/signUp",{mobileNumber:e}).then((e=>({isVerificationRequired:e.data.isVerificationRequired??!0}))),verifyOtp:async e=>{await vn.backend.getClient().post("auth/verify",{otp:e}).catch(Ta)},resendOtp:async()=>{await vn.backend.getClient().post("auth/resend").catch(Ta)}};return uo(C,{children:uo(Sa,{phoneNumber:n,onSignUp:r,onVerify:o,onResendOtp:i,onSuccess:e,onDecline:t})})},Oa=""+("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),Ra=e=>{const{trace:t}=di(),{hostInformation:{experiment:n,treatment:r}}=Zn(fo);return qn((()=>{t("benefits-setup-started",{experiment:n,treatment:r})}),[n,t,r]),uo(oa,{children:[uo(oa.Top,{children:uo("img",{class:"max-w-[30rem] w-full",src:Oa})}),uo(oa.Bottom,{children:uo("div",{children:[uo("h3",{class:"mt-8 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:"Finish setting up your workplace benefits"}),uo("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."}),uo(xo,{testId:"introduction_button_next_screen",class:"mt-8",onClickPromise:async()=>{e.onStepComplete()},children:"Continue"})]})})]})},Pa=()=>uo("div",{class:"flex justify-center",children:uo(wo,{size:"lg"})}),La=(Ia=e=>{var t,n,r;const{featureFlags:{marketplaceScheme:o},hostInformation:i,offersProgress:{canOfferSkipToEstimate:a}}=Zn(fo),{trace:s}=di(),l=Vn(null);return Co((()=>{s({type:"offer-viewed",offerName:e.marketPlaceOffer.name,data:e.marketPlaceOffer.metadata},{experiment:e.marketPlaceOffer.metadata.featureName,treatment:e.marketPlaceOffer.metadata.treatmentName}),l.current&&(l.current.terms=e.marketPlaceOffer.content.terms,l.current.details=e.marketPlaceOffer.content.details,l.current["on-accept"]=async()=>{await s({type:"offer-accepted",offerName:e.marketPlaceOffer.name,data:{...e.marketPlaceOffer.metadata,template:e.marketPlaceOffer.content.template,assessmentId:e.marketPlaceOffer.content.assessmentId}},{experiment:e.marketPlaceOffer.metadata.featureName,treatment:e.marketPlaceOffer.metadata.treatmentName})},l.current["on-decline"]=async()=>{await s({type:"offer-declined",offerName:e.marketPlaceOffer.name,data:{...e.marketPlaceOffer.metadata,template:e.marketPlaceOffer.content.template,assessmentId:e.marketPlaceOffer.content.assessmentId}},{experiment:e.marketPlaceOffer.metadata.featureName,treatment:e.marketPlaceOffer.metadata.treatmentName}),e.onStepComplete(!1,!1)},l.current["on-complete"]=()=>e.onStepComplete(!0,!0),l.current["on-skip"]=e.marketPlaceOffer.content.skipButtonHidden?void 0:()=>e.onStepComplete(!0,!1))})),uo("benefits-plan-assessment",{"base-url":xn.workplaceBackend.getBaseUrl(),"profile-id":xn.workplaceBackend.getProfileId(),"skip-more-details":!0,"access-token":e.accessToken,"image-url":e.marketPlaceOffer.content.imageUrl,"assessment-id":e.marketPlaceOffer.content.assessmentId,"assessment-instructions":"allowance"===o.scheme?e.marketPlaceOffer.content.assessmentInstructions:void 0,"track-client":i.client,"track-source":i.source,"track-channel":i.channel,"track-experiment":i.experiment,"track-treatment":i.treatment,"marketplace-offer-name":e.marketPlaceOffer.name,"assessment-title":e.marketPlaceOffer.content.title,description:e.marketPlaceOffer.content.description,"accept-button":e.marketPlaceOffer.content.acceptButton,"decline-button":e.marketPlaceOffer.content.declineButton,"special-banner-title":"allowance"===o.scheme?null==(t=e.marketPlaceOffer.content.specialBanner)?void 0:t.title:void 0,"special-banner-subtitle":"allowance"===o.scheme?null==(n=e.marketPlaceOffer.content.specialBanner)?void 0:n.subtitle:void 0,"special-banner-type":"allowance"===o.scheme?null==(r=e.marketPlaceOffer.content.specialBanner)?void 0:r.type:void 0,"vertical-alignment":"items-center","skip-to-completion":a(e.marketPlaceOffer.name),ref:l})},e=>{const t=Vn(null),[n,r]=zn(),[o,i]=zn(!1);return qn((()=>{(async()=>{const e=await xn.workplaceBackend.getIdToken();r(e)})(),(()=>{if(t.current&&!t.current.querySelector("script[data-injected]")){const e=document.createElement("script"),n=ho(xn.workplaceBackend.getBaseUrl());e.type="module",e.src=`https://npm-cdn.flarehr.com/@flarehr/benefits-plan-assessment@${n}/dist/benefits-plan-assessment.js`,e.dataset.injected="true",e.onload=()=>{i(!0)},t.current.appendChild(e)}else i(!0)})()}),[]),uo("div",{ref:t,className:n,children:n&&o?uo(Ia,{...e,accessToken:n}):uo(Pa,{})})});var Ia;const Ua=e=>v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",...e},v("path",{fill:"currentColor",d:"M345 137c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-119 119L73 103c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l119 119L39 375c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l119-119L311 409c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-119-119L345 137z"}))
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 */,{entries:Fa,setPrototypeOf:ja,isFrozen:Ba,getPrototypeOf:Ma,getOwnPropertyDescriptor:Da}=Object;let{freeze:za,seal:Ha,create:qa}=Object,{apply:Wa,construct:Va}="undefined"!=typeof Reflect&&Reflect;za||(za=function(e){return e}),Ha||(Ha=function(e){return e}),Wa||(Wa=function(e,t,n){return e.apply(t,n)}),Va||(Va=function(e,t){return new e(...t)});const $a=is(Array.prototype.forEach),Ga=is(Array.prototype.pop),Ya=is(Array.prototype.push),Za=is(String.prototype.toLowerCase),Ja=is(String.prototype.toString),Xa=is(String.prototype.match),Ka=is(String.prototype.replace),Qa=is(String.prototype.indexOf),es=is(String.prototype.trim),ts=is(Object.prototype.hasOwnProperty),ns=is(RegExp.prototype.test),rs=(os=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Va(os,t)});var os;function is(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 Wa(e,t,r)}}function as(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Za;ja&&ja(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(Ba(t)||(t[r]=e),o=e)}e[o]=!0}return e}function ss(e){for(let t=0;t<e.length;t++){ts(e,t)||(e[t]=null)}return e}function ls(e){const t=qa(null);for(const[n,r]of Fa(e)){ts(e,n)&&(Array.isArray(r)?t[n]=ss(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=ls(r):t[n]=r)}return t}function cs(e,t){for(;null!==e;){const n=Da(e,t);if(n){if(n.get)return is(n.get);if("function"==typeof n.value)return is(n.value)}e=Ma(e)}return function(){return null}}const ds=za(["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"]),us=za(["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"]),ps=za(["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"]),fs=za(["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"]),ms=za(["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"]),hs=za(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),gs=za(["#text"]),_s=za(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),ys=za(["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"]),bs=za(["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"]),ws=za(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),vs=Ha(/\{\{[\w\W]*|[\w\W]*\}\}/gm),xs=Ha(/<%[\w\W]*|[\w\W]*%>/gm),ks=Ha(/\${[\w\W]*}/gm),Cs=Ha(/^data-[\-\w.\u00B7-\uFFFF]/),Es=Ha(/^aria-[\-\w]+$/),Ss=Ha(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ns=Ha(/^(?:\w+script|data):/i),Ts=Ha(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),As=Ha(/^html$/i),Os=Ha(/^[a-z][.\w]*(-[.\w]+)+$/i);var Rs=Object.freeze({__proto__:null,MUSTACHE_EXPR:vs,ERB_EXPR:xs,TMPLIT_EXPR:ks,DATA_ATTR:Cs,ARIA_ATTR:Es,IS_ALLOWED_URI:Ss,IS_SCRIPT_OR_DATA:Ns,ATTR_WHITESPACE:Ts,DOCTYPE_NAME:As,CUSTOM_ELEMENT:Os});const Ps=1,Ls=3,Is=7,Us=8,Fs=9;var js=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!==Fs)return n.isSupported=!1,n;let{document:r}=t;const o=r,i=o.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:l,Element:c,NodeFilter:d,NamedNodeMap:u=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:f,trustedTypes:m}=t,h=c.prototype,g=cs(h,"cloneNode"),_=cs(h,"remove"),y=cs(h,"nextSibling"),b=cs(h,"childNodes"),w=cs(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:C,createDocumentFragment:E,getElementsByTagName:S}=r,{importNode:N}=o;let T={};n.isSupported="function"==typeof Fa&&"function"==typeof w&&k&&void 0!==k.createHTMLDocument;const{MUSTACHE_EXPR:A,ERB_EXPR:O,TMPLIT_EXPR:R,DATA_ATTR:P,ARIA_ATTR:L,IS_SCRIPT_OR_DATA:I,ATTR_WHITESPACE:U,CUSTOM_ELEMENT:F}=Rs;let{IS_ALLOWED_URI:j}=Rs,B=null;const M=as({},[...ds,...us,...ps,...ms,...gs]);let D=null;const z=as({},[..._s,...ys,...bs,...ws]);let H=Object.seal(qa(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}})),q=null,W=null,V=!0,$=!0,G=!1,Y=!0,Z=!1,J=!0,X=!1,K=!1,Q=!1,ee=!1,te=!1,ne=!1,re=!0,oe=!1,ie=!0,ae=!1,se={},le=null;const ce=as({},["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 de=null;const ue=as({},["audio","video","img","source","image","track"]);let pe=null;const fe=as({},["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=as({},[me,he,ge],Ja);let ve=null;const xe=["application/xhtml+xml","text/html"];let ke=null,Ce=null;const Ee=r.createElement("form"),Se=function(e){return e instanceof RegExp||e instanceof Function},Ne=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ce||Ce!==e){if(e&&"object"==typeof e||(e={}),e=ls(e),ve=-1===xe.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ke="application/xhtml+xml"===ve?Ja:Za,B=ts(e,"ALLOWED_TAGS")?as({},e.ALLOWED_TAGS,ke):M,D=ts(e,"ALLOWED_ATTR")?as({},e.ALLOWED_ATTR,ke):z,be=ts(e,"ALLOWED_NAMESPACES")?as({},e.ALLOWED_NAMESPACES,Ja):we,pe=ts(e,"ADD_URI_SAFE_ATTR")?as(ls(fe),e.ADD_URI_SAFE_ATTR,ke):fe,de=ts(e,"ADD_DATA_URI_TAGS")?as(ls(ue),e.ADD_DATA_URI_TAGS,ke):ue,le=ts(e,"FORBID_CONTENTS")?as({},e.FORBID_CONTENTS,ke):ce,q=ts(e,"FORBID_TAGS")?as({},e.FORBID_TAGS,ke):{},W=ts(e,"FORBID_ATTR")?as({},e.FORBID_ATTR,ke):{},se=!!ts(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,Z=e.SAFE_FOR_TEMPLATES||!1,J=!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,j=e.ALLOWED_URI_REGEXP||Ss,_e=e.NAMESPACE||ge,H=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Se(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Se(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),Z&&($=!1),te&&(ee=!0),se&&(B=as({},gs),D=[],!0===se.html&&(as(B,ds),as(D,_s)),!0===se.svg&&(as(B,us),as(D,ys),as(D,ws)),!0===se.svgFilters&&(as(B,ps),as(D,ys),as(D,ws)),!0===se.mathMl&&(as(B,ms),as(D,bs),as(D,ws))),e.ADD_TAGS&&(B===M&&(B=ls(B)),as(B,e.ADD_TAGS,ke)),e.ADD_ATTR&&(D===z&&(D=ls(D)),as(D,e.ADD_ATTR,ke)),e.ADD_URI_SAFE_ATTR&&as(pe,e.ADD_URI_SAFE_ATTR,ke),e.FORBID_CONTENTS&&(le===ce&&(le=ls(le)),as(le,e.FORBID_CONTENTS,ke)),ie&&(B["#text"]=!0),X&&as(B,["html","head","body"]),B.table&&(as(B,["tbody"]),delete q.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw rs('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw rs('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(""));za&&za(e),Ce=e}},Te=as({},["mi","mo","mn","ms","mtext"]),Ae=as({},["foreignobject","annotation-xml"]),Oe=as({},["title","style","font","a","script"]),Re=as({},[...us,...ps,...fs]),Pe=as({},[...ms,...hs]),Le=function(e){Ya(n.removed,{element:e});try{w(e).removeChild(e)}catch(t){_(e)}},Ie=function(e,t){try{Ya(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(r){Ya(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!D[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=Xa(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 f).parseFromString(o,ve)}catch(a){}if(!t||!t.documentElement){t=k.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?S.call(t,X?"html":"body")[0]:X?t.documentElement:i},Fe=function(e){return C.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},je=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof u)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Be=function(e){return"function"==typeof l&&e instanceof l},Me=function(e,t,r){T[e]&&$a(T[e],(e=>{e.call(n,t,r,Ce)}))},De=function(e){let t=null;if(Me("beforeSanitizeElements",e,null),je(e))return Le(e),!0;const r=ke(e.nodeName);if(Me("uponSanitizeElement",e,{tagName:r,allowedTags:B}),e.hasChildNodes()&&!Be(e.firstElementChild)&&ns(/<[/\w]/g,e.innerHTML)&&ns(/<[/\w]/g,e.textContent))return Le(e),!0;if(e.nodeType===Is)return Le(e),!0;if(J&&e.nodeType===Us&&ns(/<[/\w]/g,e.data))return Le(e),!0;if(!B[r]||q[r]){if(!q[r]&&He(r)){if(H.tagNameCheck instanceof RegExp&&ns(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=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=Za(e.tagName),r=Za(t.tagName);return!!be[e.namespaceURI]&&(e.namespaceURI===he?t.namespaceURI===ge?"svg"===n:t.namespaceURI===me?"svg"===n&&("annotation-xml"===r||Te[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&&!Te[r])&&!Pe[n]&&(Oe[n]||!Re[n]):!("application/xhtml+xml"!==ve||!be[e.namespaceURI]))}(e)?(Le(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!ns(/<\/no(script|embed|frames)/i,e.innerHTML)?(Z&&e.nodeType===Ls&&(t=e.textContent,$a([A,O,R],(e=>{t=Ka(t,e," ")})),e.textContent!==t&&(Ya(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 Ee))return!1;if($&&!W[t]&&ns(P,t));else if(V&&ns(L,t));else if(!D[t]||W[t]){if(!(He(e)&&(H.tagNameCheck instanceof RegExp&&ns(H.tagNameCheck,e)||H.tagNameCheck instanceof Function&&H.tagNameCheck(e))&&(H.attributeNameCheck instanceof RegExp&&ns(H.attributeNameCheck,t)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(t))||"is"===t&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&ns(H.tagNameCheck,n)||H.tagNameCheck instanceof Function&&H.tagNameCheck(n))))return!1}else if(pe[t]);else if(ns(j,Ka(n,U,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Qa(n,"data:")||!de[e]){if(G&&!ns(I,Ka(n,U,"")));else if(n)return!1}else;return!0},He=function(e){return"annotation-xml"!==e&&Xa(e,F)},qe=function(e){Me("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:D};let o=t.length;for(;o--;){const a=t[o],{name:s,namespaceURI:l,value:c}=a,d=ke(s);let u="value"===s?c:es(c);if(r.attrName=d,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,Me("uponSanitizeAttribute",e,r),u=r.attrValue,J&&ns(/((--!?|])>)|<\/(style|title)/i,u)){Ie(s,e);continue}if(r.forceKeepAttr)continue;if(Ie(s,e),!r.keepAttr)continue;if(!Y&&ns(/\/>/i,u)){Ie(s,e);continue}Z&&$a([A,O,R],(e=>{u=Ka(u,e," ")}));const p=ke(e.nodeName);if(ze(p,d,u)){if(!oe||"id"!==d&&"name"!==d||(Ie(s,e),u="user-content-"+u),v&&"object"==typeof m&&"function"==typeof m.getAttributeType)if(l);else switch(m.getAttributeType(p,d)){case"TrustedHTML":u=v.createHTML(u);break;case"TrustedScriptURL":u=v.createScriptURL(u)}try{l?e.setAttributeNS(l,s,u):e.setAttribute(s,u),je(e)?Le(e):Ga(n.removed)}catch(i){}}}Me("afterSanitizeAttributes",e,null)},We=function e(t){let n=null;const r=Fe(t);for(Me("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)Me("uponSanitizeShadowNode",n,null),De(n)||(n.content instanceof a&&e(n.content),qe(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&&!Be(e)){if("function"!=typeof e.toString)throw rs("toString is not a function");if("string"!=typeof(e=e.toString()))throw rs("dirty is not a string, aborting")}if(!n.isSupported)return e;if(K||Ne(t),n.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){const t=ke(e.nodeName);if(!B[t]||q[t])throw rs("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===Ps&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!ee&&!Z&&!X&&-1===e.indexOf("<"))return v&&ne?v.createHTML(e):e;if(r=Ue(e),!r)return ee?null:ne?x:""}r&&Q&&Le(r.firstChild);const d=Fe(ae?e:r);for(;s=d.nextNode();)De(s)||(s.content instanceof a&&We(s.content),qe(s));if(ae)return e;if(ee){if(te)for(c=E.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(D.shadowroot||D.shadowrootmode)&&(c=N.call(o,c,!0)),c}let u=X?r.outerHTML:r.innerHTML;return X&&B["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&ns(As,r.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+u),Z&&$a([A,O,R],(e=>{u=Ka(u,e," ")})),v&&ne?v.createHTML(u):u},n.setConfig=function(){Ne(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),K=!0},n.clearConfig=function(){Ce=null,K=!1},n.isValidAttribute=function(e,t,n){Ce||Ne({});const r=ke(e),o=ke(t);return ze(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(T[e]=T[e]||[],Ya(T[e],t))},n.removeHook=function(e){if(T[e])return Ga(T[e])},n.removeHooks=function(e){T[e]&&(T[e]=[])},n.removeAllHooks=function(){T={}},n}();const Bs=({children:e})=>{const t=ao.Children.toArray(e),n=t.find((e=>e.type===Ms)),r=t.find((e=>e.type===Ds));return uo(ra,{appear:!0,show:!0,enter:"transition duration-700 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:uo("div",{class:"md:grid md:grid-cols-2 max-w-[59.5rem] mx-auto",children:[uo(ra,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:n&&uo("div",{class:"flex items-center h-full",children:n})}),uo(ra,{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&&uo("div",{class:"flex items-center h-full",children:r})})]})})},Ms=({children:e})=>uo(C,{children:e}),Ds=({children:e})=>uo(C,{children:e});Bs.Left=Ms,Bs.Right=Ds;const zs=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"})),Hs=e=>uo(ra,{appear:!0,show:!0,enter:"transition duration-300 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:uo("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)=>uo("div",{class:"flex space-x-1",children:[uo("span",{children:uo(si,{class:"h-5 w-5 fill-primary-base"})}),uo("span",{class:"text-sm leading-5 text-gray-600",children:e})]},t)))})}),qs=e=>{const[t,n]=zn(!1);return uo("div",{class:e.class,children:t?uo(Hs,{items:e.items}):uo("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",uo("span",{class:"ml-1",children:uo(zs,{class:"h-4 w-4"})})]})})},Ws=e=>{var t,n,r,o;const{featureFlags:{marketplaceScheme:i}}=Zn(fo),{trace:a}=di(),[s,l]=zn(!1);Co((()=>{a({type:"offer-viewed",offerName:e.step.name,data:e.step.metadata},{experiment:e.step.metadata.featureName,treatment:e.step.metadata.treatmentName})}));const c=async t=>{t?await a({type:"offer-accepted",offerName:e.step.name,data:{...e.step.metadata,template:"Eoi"}},{experiment:e.step.metadata.featureName,treatment:e.step.metadata.treatmentName}):await a({type:"offer-declined",offerName:e.step.name,data:{...e.step.metadata,template:"Eoi"}},{experiment:e.step.metadata.featureName,treatment:e.step.metadata.treatmentName});return(t?e.primaryButton:e.secondaryButton).onClick()};return uo(Bs,{children:[uo(Bs.Left,{children:uo("div",{children:uo(ra,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:uo("div",{children:[uo("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:e.step.content.mobileImageUrl,loading:"lazy"}),uo("div",{class:"md:max-w-[27.5rem]",children:[uo("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:e.step.content.title}),uo("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&&uo("div",{class:"mt-6 hidden md:block",children:uo(Hs,{items:e.step.content.details})})]}),e.step.content.details&&uo(qs,{class:"mt-6 md:hidden",items:e.step.content.details}),"allowance"===i.scheme&&"offer"==(null==(t=e.step.content.specialBanner)?void 0:t.type)&&uo(la,{style:{background:"linear-gradient(90deg, rgba(255, 135, 111, 0.10) 0%, rgba(166, 80, 255, 0.10) 100%)"},className:"md:max-w-[27.5rem] mt-6",children:uo("div",{children:[uo("p",{className:"font-semibold text-lg leading-tight text-gray-900",children:e.step.content.specialBanner.title}),uo("span",{className:"font-normal text-sm text-gray-900",children:e.step.content.specialBanner.subtitle})]})}),e.children&&e.children,uo("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:[uo(xo,{testId:`offer_${e.step.name}_button_accept`,class:e.primaryButton.class??"",onClickPromise:()=>c(!0),children:e.primaryButton.text??"Next"}),(null==(n=e.secondaryButton)?void 0:n.text)&&uo(xo,{testId:`offer_${e.step.name}_button_decline`,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:()=>c(!1),children:e.secondaryButton.text})]}),(null==(r=e.step.content.terms)?void 0:r.length)>0&&uo("p",{className:"mt-6 text-xs",children:[uo("span",{children:"*"}),uo("span",{className:"underline text-primary-base cursor-pointer",onClick:()=>l(!0),children:"T&C's apply"})]}),(null==(o=e.step.content.terms)?void 0:o.length)>0&&uo(bo,{open:s,children:[uo(_o,{children:uo("div",{className:"relative",children:[uo("h3",{className:"text-base font-semibold text-gray-900",children:"Terms & Conditions"}),uo("span",{className:"absolute top-0 right-0 p-1 rounded-full bg-gray-200 cursor-pointer hover:bg-gray-100",onClick:()=>l(!1),children:uo(Ua,{className:"h-4 min-h-4 max-h-4 w-4 min-w-4 max-w-4"})})]})}),uo(yo,{children:uo("div",{class:"flex flex-col gap-3 mt-6 text-gray-600 text-xs",children:e.step.content.terms.map(((e,t)=>uo("span",{dangerouslySetInnerHTML:{__html:js.sanitize(e,{ADD_ATTR:["target"]})}},t)))})})]})]})})})}),uo(Bs.Right,{children:uo("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},Vs=e=>{var t,n,r;const{featureFlags:{marketplaceScheme:o}}=Zn(fo),{trace:i}=di(),[a,s]=zn(!1);Co((()=>{"name"in e.step&&i({type:"offer-viewed",offerName:e.step.name,data:e.step.metadata},{experiment:e.step.metadata.featureName,treatment:e.step.metadata.treatmentName})}));return uo(Bs,{children:[uo(Bs.Left,{children:uo("div",{children:uo(ra,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:uo("div",{children:[uo("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:e.step.content.mobileImageUrl,loading:"lazy"}),uo("div",{class:"md:max-w-[27.5rem]",children:[uo("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:e.step.content.title}),uo("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&&uo("div",{class:"mt-6 hidden md:block",children:uo(Hs,{items:e.step.content.details})})]}),e.step.content.details&&uo(qs,{class:"mt-6 md:hidden",items:e.step.content.details}),"allowance"===o.scheme&&"offer"==(null==(t=e.step.content.specialBanner)?void 0:t.type)&&uo(la,{style:{background:"linear-gradient(90deg, rgba(255, 135, 111, 0.10) 0%, rgba(166, 80, 255, 0.10) 100%)"},className:"md:max-w-[27.5rem] mt-6",children:uo("div",{children:[uo("p",{className:"font-semibold text-lg leading-tight text-gray-900",children:e.step.content.specialBanner.title}),uo("span",{className:"font-normal text-sm text-gray-900",children:e.step.content.specialBanner.subtitle})]})}),e.children&&e.children,uo("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:uo(xo,{testId:`offer_${e.step.name}_button_accept`,class:e.primaryButton.class??"",onClickPromise:async()=>{"name"in e.step&&await i({type:"offer-progressed",offerName:e.step.name,data:{...e.step.metadata,template:"Simple"}},{experiment:e.step.metadata.featureName,treatment:e.step.metadata.treatmentName}),e.primaryButton.onClick()},children:e.primaryButton.text??"Next"})}),(null==(n=e.step.content.terms)?void 0:n.length)>0&&uo("p",{className:"mt-6 text-xs",children:[uo("span",{children:"*"}),uo("span",{className:"underline text-primary-base cursor-pointer",onClick:()=>s(!0),children:"T&C's apply"})]}),(null==(r=e.step.content.terms)?void 0:r.length)>0&&uo(bo,{open:a,children:[uo(_o,{children:uo("div",{className:"relative",children:[uo("h3",{className:"text-base font-semibold text-gray-900",children:"Terms & Conditions"}),uo("span",{className:"absolute top-0 right-0 p-1 rounded-full bg-gray-200 cursor-pointer hover:bg-gray-100",onClick:()=>s(!1),children:uo(Ua,{className:"h-4 min-h-4 max-h-4 w-4 min-w-4 max-w-4"})})]})}),uo(yo,{children:uo("div",{class:"flex flex-col gap-3 mt-6 text-gray-600 text-xs",children:e.step.content.terms.map(((e,t)=>uo("span",{dangerouslySetInnerHTML:{__html:js.sanitize(e,{ADD_ATTR:["target"]})}},t)))})})]})]})})})}),uo(Bs.Right,{children:uo("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},$s=({current:e,total:t})=>uo("div",{className:"flex justify-between md:block text-xs tracking-wide",children:uo("span",{className:"relative px-3 py-0.5 text-primary-base font-semibold",children:[e," OF ",t,uo("span",{className:"absolute left-0 rounded-xl bg-primary-base opacity-10 w-full h-[90%]"})]})}),Gs=e=>{const{featureFlags:{marketplaceSubNavigation:t},offersProgress:{update:n,isOfferCompleted:r,isOfferProgressed:o}}=Zn(fo),[i,a]=zn(0),{trace:s}=di(),l=Yn(((t,r,o)=>{n(t,r,o),i===e.offers.length-1?e.onComplete():a(i+1)}),[n,i,e]),c=Yn((t=>{a(t);const n=e.offers[t];s({type:"offer-selected",offerName:n.name},{experiment:n.metadata.featureName,treatment:n.metadata.treatmentName})}),[e.offers,s]),d=(e,t,n)=>{const i=o(e);return!!r(e)||(!i||t!==n)&&!!i};return uo("div",{className:"max-w-[59.5rem] mx-auto",children:[!t&&uo($s,{current:i+1,total:e.offers.length+1}),uo(oi,{selectedIndex:i,onChange:c,children:[t&&e.offers.map(((e,t)=>uo(ni,{label:e.content.productName,icon:uo(ti,{icon:d(e.name,t,i)?uo(si,{}):e.content.iconUrl})},e.name))),e.offers.map((e=>uo(ri,{children:["Eoi"===e.content.template&&uo(Ws,{step:e,primaryButton:{text:e.content.acceptButton,onClick:()=>l(e.name,!0,!0)},secondaryButton:{text:e.content.declineButton,onClick:()=>l(e.name,!1,!1)}}),"Simple"===e.content.template&&uo(Vs,{step:e,primaryButton:{text:e.content.acceptButton,onClick:()=>l(e.name,!0,!0)}}),"Assessment"===e.content.template&&uo(La,{onStepComplete:(t,n)=>l(e.name,t,n),marketPlaceOffer:e},e.name)]},e.name)))]})]})},Ys=""+("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),Zs=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"})),Js=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"})),Xs=""+("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),Ks=({onComplete:e})=>{const{trace:t}=di(),{identity:n,getIdentityRegistrationStatus:r,hostInformation:{experiment:o,treatment:i}}=Zn(fo);qn((()=>{(async()=>{await t({type:"summary-viewed",data:{summaryVariant:"app"}},{experiment:o,treatment:i})})()}),[o,t,i]);const a={...Qs(n,r()),imageUrl:Ys,mobileImageUrl:Xs},s={text:"Continue",class:"mt-6 md:mt-14",onClick:async()=>{await t("completed",{experiment:o,treatment:i}),await e()}};return uo(Bs,{children:[uo(Bs.Left,{children:uo("div",{children:[uo("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:a.mobileImageUrl,loading:"lazy"}),uo("div",{class:"md:max-w-[27.5rem]",children:[uo("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:a.title}),uo("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:a.description})]}),uo("div",{class:"mt-6 flex space-x-6",children:[uo(Zs,{}),uo(Js,{})]}),uo(xo,{testId:"step-benefits-finish",class:s.class,onClickPromise:s.onClick,children:s.text})]})}),uo(Bs.Right,{children:uo("img",{class:"max-w-[30rem] w-full hidden md:block",src:a.imageUrl,loading:"lazy"})})]})},Qs=(e,t)=>{switch(t){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.`}}},el=""+("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),tl=""+("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),nl=({onComplete:e})=>{const{trace:t}=di(),{getWorkplaceLinkingStatus:n,hostInformation:{experiment:r,treatment:o}}=Zn(fo);qn((()=>{(async()=>{await t({type:"summary-viewed",data:{summaryVariant:"generic"}},{experiment:r,treatment:o})})()}),[r,o,t]);const i={imageUrl:el,mobileImageUrl:tl,title:"You're all set!",description:"PreviouslyLinked"===n()?"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."},a={text:"Continue",class:"mt-6 md:mt-6",onClick:async()=>{await t("completed",{experiment:r,treatment:o}),await e()}};return uo(Bs,{children:[uo(Bs.Left,{children:uo("div",{children:[uo("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:i.mobileImageUrl,loading:"lazy"}),uo("div",{class:"md:max-w-[27.5rem]",children:[uo("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:i.title}),uo("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:i.description})]}),uo("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:uo(xo,{testId:"step-benefits-finish",class:a.class,onClickPromise:a.onClick,children:a.text})})]})}),uo(Bs.Right,{children:uo("img",{class:"max-w-[30rem] w-full hidden md:block",src:i.imageUrl,loading:"lazy"})})]})},rl=()=>{const{offers:e,updateIdentity:t}=Zn(fo),{current:n,goNext:r}=function(){const{isAppEnabled:e,getIdentityRegistrationStatus:t,featureFlags:n}=Zn(fo),r=Gn((()=>"allowance"===n.marketplaceScheme.scheme?["Allowance_JoinBenefits","FlareAppIdentity","Allowance_ConfigureBenefits","MarketplaceOffers","Allowance_BenefitsSummary"]:["Introduction","FlareAppIdentity","MarketplaceOffers",e?"SummaryApp":"SummaryGeneric"]),[n.marketplaceScheme.scheme,e]),[o,i]=zn(r[0]);qn((()=>{i(r[0])}),[r]);const a=Yn((async()=>{if(r.indexOf(o)===r.length-1){const e=document.querySelector(il),t=new CustomEvent("step-completion",{bubbles:!0});return null==e||e.dispatchEvent(t),void(await new Promise((e=>setTimeout(e,1e4))))}if("RegistrationAbandoned"!==t())try{const e=r.findIndex((e=>e===o)),t=r[e+1];return void i(t)}catch{}else i(r[r.length-1])}),[o,t,r]);return{current:o,goNext:a}}(),o=Yn((()=>{t(!0),r()}),[r,t]),i=Yn((()=>{t(!1),r()}),[r,t]);switch(n){case"Introduction":return uo(Ra,{onStepComplete:r});case"Allowance_JoinBenefits":return uo(ca,{onContinue:r});case"FlareAppIdentity":return uo(Aa,{onSuccess:o,onDecline:i});case"Allowance_ConfigureBenefits":return uo(sa,{onContinue:r});case"MarketplaceOffers":return uo(Gs,{offers:e,onComplete:r});case"Allowance_BenefitsSummary":return uo(pa,{onContinue:r});case"SummaryApp":return uo(Ks,{onComplete:r});case"SummaryGeneric":return uo(nl,{onComplete:r});default:return uo(C,{})}},ol=()=>{const e=Zn(fo);return uo(C,{children:[uo(bo,{open:e.isFetching,children:uo(yo,{children:uo(wo,{size:"lg"})})}),e.isInitialized?uo(rl,{}):uo("div",{className:"fixed flex items-center justify-center top-0 bottom-0 left-0 right-0",children:uo(wo,{size:"lg"})})]})},il="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]=zn(0);qn((()=>le((()=>{n(t+1)}))),[t]);const r={backendUrl:e["backend-url"],accessToken:e["access-token"],workflowsInstanceId:e["workflows-instance-id"],workflowsJourneyType:e["journey-type"]},o={channel:"onboarding",client:"onboarding",source:(e=>{switch(e){case ne.BenefitsExisting:case ne.AppInvite:return"Invite";default:return"Onboarding"}})(r.workflowsJourneyType),experiment:"onboarding-marketplace-scheme",workflowsJourneyType:r.workflowsJourneyType,workflowsInstanceId:r.workflowsInstanceId};return En(r.backendUrl,r.accessToken,o),"prod"===ho(r.backendUrl)&&go.init("p09arvzysr"),uo(C,{children:[uo("style",{children:vo.toString()}),uo("div",{class:"font-inter pt-6 pb-8 md:py-24 px-px",children:uo(mo,{hostInformation:o,children:uo(ol,{})})},t)]})}),il,[],{shadow:!0})}));
7
+ var To=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,Ao=/\\([\u000b\u0020-\u00ff])/g,Oo=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,Ro=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(!Oo.test(r))throw new TypeError("invalid media type");var o=new Po(r.toLowerCase());if(-1!==n){var i,a,s;for(To.lastIndex=n;a=To.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(Ao,"$1")),o.parameters[i]=s}if(n!==t.length)throw new TypeError("invalid parameter format")}return o};function Po(e){this.parameters=Object.create(null),this.type=e}var Lo=new Map,Io=function(e){return e.cloneNode(!0)},Uo=function(){return"file:"===window.location.protocol},Fo=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=Ro(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(Uo()?"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||Uo()&&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()},jo={},Bo=function(e,t){jo[e]=jo[e]||[],jo[e].push(t)},Do=function(e,t,n){if(Lo.has(e)){var r=Lo.get(e);if(void 0===r)return void Bo(e,n);if(r instanceof SVGSVGElement)return void n(null,Io(r))}Lo.set(e,void 0),Bo(e,n),Fo(e,t,(function(t,n){var r;t?Lo.set(e,t):(null===(r=n.responseXML)||void 0===r?void 0:r.documentElement)instanceof SVGSVGElement&&Lo.set(e,n.responseXML.documentElement),function(e){for(var t=function(t,n){setTimeout((function(){if(Array.isArray(jo[e])){var n=Lo.get(e),r=jo[e][t];n instanceof SVGSVGElement&&r(null,Io(n)),n instanceof Error&&r(n),t===jo[e].length-1&&delete jo[e]}}),0)},n=0,r=jo[e].length;n<r;n++)t(n)}(e)}))},Mo=function(e,t,n){Fo(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)}))},zo=0,Ho=[],qo={},Wo="http://www.w3.org/1999/xlink",Vo=function(e,t,n,r,o,i,a){var s=e.getAttribute("data-src")||e.getAttribute("src");if(s){if(-1!==Ho.indexOf(e))return Ho.splice(Ho.indexOf(e),1),void(e=null);Ho.push(e),e.setAttribute("src",""),(r?Do:Mo)(s,o,(function(r,o){if(!o)return Ho.splice(Ho.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 d=e.getAttribute("width");d&&o.setAttribute("width",d);var u=e.getAttribute("height");u&&o.setAttribute("height",u);var p=Array.from(new Set(No(No(No([],(o.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(e.getAttribute("class")||"").split(" "),!0))).join(" ").trim();o.setAttribute("class",p);var f=e.getAttribute("style");f&&o.setAttribute("style",f),o.setAttribute("data-src",s);var m=[].filter.call(e.attributes,(function(e){return/^data-\w[\w-]*$/.test(e.name)}));if(Array.prototype.forEach.call(m,(function(e){e.name&&e.value&&o.setAttribute(e.name,e.value)})),n){var h,g,_,y,b,w={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],path:[],pattern:["fill","stroke"],radialGradient:["fill","stroke"]};Object.keys(w).forEach((function(e){h=e,_=w[e];for(var t=function(e,t){var n;y=g[e].id,b=y+"-"+ ++zo,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(Wo,"href");l&&l.toString()==="#"+g[e].id&&i.push(r[a])}for(var c=0,d=i.length;c<d;c++)i[c].setAttributeNS(Wo,"href","#"+b);g[e].id=b},n=0,r=(g=o.querySelectorAll(h+"[id]")).length;n<r;n++)t(n)}))}o.removeAttribute("xmlns:a");for(var v,x,C=o.querySelectorAll("script"),k=[],E=0,S=C.length;E<S;E++)(x=C[E].getAttribute("type"))&&"application/ecmascript"!==x&&"application/javascript"!==x&&"text/javascript"!==x||((v=C[E].innerText||C[E].textContent)&&k.push(v),o.removeChild(C[E]));if(k.length>0&&("always"===t||"once"===t&&!qo[s])){for(var N=0,T=k.length;N<T;N++)new Function(k[N])(window);qo[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",Wo),i(o),!e.parentNode)return Ho.splice(Ho.indexOf(e),1),e=null,void a(new Error("Parent node is null"));e.parentNode.replaceChild(o,e),Ho.splice(Ho.indexOf(e),1),e=null,a(null,o)}))}else a(new Error("Invalid data-src or src attribute"))},$o={exports:{}};function Go(){}function Yo(){}Yo.resetWarningCache=Go;$o.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:Yo,resetWarningCache:Go};return n.PropTypes=n,n}();var Zo=$o.exports,Jo=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],Xo="http://www.w3.org/2000/svg",Ko="http://www.w3.org/1999/xlink",Qo=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}var n,r;r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,So(n,r);var o=t.prototype;return o.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,d=o.title,u=o.useRequestCache,p=this.props.onError,f=this.props.beforeInjection,m=this.props.afterInjection,h=this.props.wrapper;"svg"===h?((n=document.createElementNS(Xo,h)).setAttribute("xmlns",Xo),n.setAttribute("xmlns:xlink",Ko),r=document.createElementNS(Xo,h)):(n=document.createElement(h),r=document.createElement(h)),n.appendChild(r),r.dataset.src=c,this.nonReactWrapper=this.reactWrapper.appendChild(n);var g=function(e){t.removeSVG(),t._isMounted?t.setState((function(){return{hasError:!0,isLoading:!1}}),(function(){p(e)})):p(e)};!function(e,t){var n=void 0===t?{}:t,r=n.afterAll,o=void 0===r?function(){}:r,i=n.afterEach,a=void 0===i?function(){}:i,s=n.beforeEach,l=void 0===s?function(){}:s,c=n.cacheRequests,d=void 0===c||c,u=n.evalScripts,p=void 0===u?"never":u,f=n.httpRequestWithCredentials,m=void 0!==f&&f,h=n.renumerateIRIElements,g=void 0===h||h;if(e&&"length"in e)for(var _=0,y=0,b=e.length;y<b;y++)Vo(e[y],p,g,d,m,l,(function(t,n){a(t,n),e&&"length"in e&&e.length===++_&&o(_)}));else e?Vo(e,p,g,d,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(d){var r=e.querySelector(":scope > title");r&&e.removeChild(r);var o=document.createElement("title");o.innerHTML=d,e.prepend(o)}try{f(e)}catch(a){g(a)}},cacheRequests:u,evalScripts:a,httpRequestWithCredentials:s,renumerateIRIElements:l})}},o.removeSVG=function(){var e;null!=(e=this.nonReactWrapper)&&e.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},o.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},o.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})(Eo({},e),this.props)&&this.setState((function(){return t.initialState}),(function(){t.removeSVG(),t.renderSVG()}))},o.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},o.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,Jo);return v(r,Eo({},o,{ref:this.refCallback},"svg"===r?{xmlns:Xo,xmlnsXlink:Ko}:{}),this.state.isLoading&&n&&v(n,null),this.state.hasError&&t&&v(t,null))},t}(E);Qo.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"},Qo.propTypes={afterInjection:Zo.func,beforeInjection:Zo.func,desc:Zo.string,evalScripts:Zo.oneOf(["always","once","never"]),fallback:Zo.oneOfType([Zo.func,Zo.object,Zo.string]),httpRequestWithCredentials:Zo.bool,loading:Zo.oneOfType([Zo.func,Zo.object,Zo.string]),onError:Zo.func,renumerateIRIElements:Zo.bool,src:Zo.string.isRequired,title:Zo.string,useRequestCache:Zo.bool,wrapper:Zo.oneOf(["div","span","svg"])};const ei=({visible:e,children:t})=>{const n=Vn(e);return e&&!n.current&&(n.current=!0),n.current?uo("div",{hidden:!e,children:t}):null},ti=({icon:e})=>"string"==typeof e?uo(Qo,{src:e,wrapper:"svg",className:"w-6 h-6 max-w-6 max-h-6 min-w-6 min-h-6",beforeInjection:e=>{var t;e.removeAttribute("width"),e.removeAttribute("height"),null==(t=e.querySelector("path"))||t.removeAttribute("fill"),e.setAttribute("fill","currentColor")}}):uo("div",{className:"w-6 h-6 max-w-6 max-h-6 min-w-6 min-h-6",children:e}),ni=({label:e,icon:t})=>uo("div",{className:"flex items-center flex-col",children:[t,uo("p",{className:"max-h-10 max-w-20 break-words text-ellipsis overflow-hidden line-clamp-2 mt-2",children:e})]}),ri=({children:e})=>uo(k,{children:e}),oi=({selectedIndex:e,onChange:t,children:n})=>{const r=Gn((()=>fr.toArray(n).filter((e=>e.type===ni))),[n]),o=Gn((()=>fr.toArray(n).filter((e=>e.type===ri))),[n]);return ko((()=>{o.length>0&&(null==t||t(0))})),uo("div",{children:[uo("div",{className:"flex items-baseline md:mb-4",children:r.map(((n,r)=>uo("div",{onClick:()=>null==t?void 0:t(r),className:`\n text-sm font-medium cursor-auto w-10 min-w-10 max-w-10 h-12 min-h-12 max-h-12 mr-10 h-full relative\n flex items-center justify-center\n [&:not(:last-child):after]:absolute [&:not(:last-child):after]:top-3 [&:not(:last-child):after]:content-[""] [&:not(:last-child):after]:w-10 [&:not(:last-child):after]:border-b-2 [&:not(:last-child):after]:border-solid [&:not(:last-child):after]:border-gray-200 [&:not(:last-child):after]:left-10\n ${r===e?"text-primary-base":"text-gray-400"}\n hover:before:content-[''] \n ${o.length>0?"hover:before:cursor-pointer":"hover:before:cursor-default"} \n hover:before:w-16 hover:before:h-16 hover:before:absolute\n `,children:n},n.key)))}),o.map(((t,n)=>uo(ei,{visible:n===e,children:t},t.key)))]})},ii=({className:e,children:t})=>uo("h1",{className:`text-2xl md:text-3xl font-bold ${e??""}`,children:t}),ai=({className:e,children:t})=>uo("h3",{class:`text-base md:text-lg text-gray-600 ${e??""}`,children:t}),si=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"})),li=({title:e,steps:t,...n})=>{const r=t.length,o=t.filter((e=>e.completed)).length;return uo("div",{...n,children:[e&&uo("h1",{className:"text-lg font-semibold mb-4",children:e}),uo("ol",{children:t.map(((e,t)=>{const n=o===t;return uo("li",{className:"relative flex-1 pb-6 "+(t!==r-1?`after:content-[''] after:w-0.5 after:h-[calc(100%-theme(height.8))] ${e.completed?"after:bg-primary-base":"after:bg-gray-300"} after:inline-block after:absolute after:top-8 after:left-4`:""),children:uo("div",{className:"flex font-medium w-full",children:[uo("span",{className:`w-8 min-w-8 max-w-8 h-8 min-h-8 max-h-8 ${e.completed?"bg-primary-base":"bg-white"} border-2 ${e.completed||n?"border-primary-base":"border-gray-300"} rounded-full flex justify-center items-center mr-3 text-sm ${n?"text-primary-base":"text-gray-500"}`,children:e.completed?uo(si,{className:"w-4 h-4 text-white"}):t+1}),uo("div",{children:[uo("h4",{className:"text-sm text-left font-semibold "+(e.completed||n?"text-primary-base":"text-gray-600"),children:e.title}),uo("p",{className:"text-sm text-left font-normal",children:e.description})]})]})},t)}))})]})};var ci=Object.defineProperty,di=(e,t,n)=>(((e,t,n)=>{t in e?ci(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let ui=new class{constructor(){di(this,"current",this.detect()),di(this,"handoffState","pending"),di(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}},pi=(e,t)=>{ui.isServer?qn(e,t):Wn(e,t)};function fi(e){let t=Vn(e);return pi((()=>{t.current=e}),[e]),t}let mi=function(e){let t=fi(e);return ao.useCallback(((...e)=>t.current(...e)),[t])};function hi(){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=hi();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 gi(){let[e]=zn(hi);return qn((()=>()=>e.dispose()),[e]),e}function _i(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in so&&so.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=zn(ui.isHandoffComplete);return t&&!1===ui.isHandoffComplete&&n(!1),qn((()=>{!0!==t&&n(!0)}),[t]),qn((()=>ui.handoff()),[]),!e&&t}function yi(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,yi),r}let bi=Symbol();function wi(...e){let t=Vn(e);qn((()=>{t.current=e}),[e]);let n=mi((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[bi])))?void 0:n}function vi(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}var xi,Ci,ki=((Ci=ki||{})[Ci.None=0]="None",Ci[Ci.RenderStrategy=1]="RenderStrategy",Ci[Ci.Static=2]="Static",Ci),Ei=((xi=Ei||{})[xi.Unmount=0]="Unmount",xi[xi.Hidden=1]="Hidden",xi);function Si({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a,mergeRefs:s}){s=null!=s?s:Ti;let l=Ai(t,e);if(i)return Ni(l,n,r,a,s);let c=null!=o?o:0;if(2&c){let{static:e=!1,...t}=l;if(e)return Ni(t,n,r,a,s)}if(1&c){let{unmount:e=!0,...t}=l;return yi(e?0:1,{0:()=>null,1:()=>Ni({...t,hidden:!0,style:{display:"none"}},n,r,a,s)})}return Ni(l,n,r,a,s)}function Ni(e,t={},n,r,o){let{as:i=n,children:a,refName:s="ref",...l}=Pi(e,["unmount","static"]),c=void 0!==e.ref?{[s]:e.ref}:{},d="function"==typeof a?a(t):a;"className"in l&&l.className&&"function"==typeof l.className&&(l.className=l.className(t));let u={};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&&(u["data-headlessui-state"]=n.join(" "))}if(i===k&&Object.keys(Ri(l)).length>0){if(!Vr(d)||Array.isArray(d)&&d.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=d.props,t="function"==typeof(null==e?void 0:e.className)?(...t)=>vi(null==e?void 0:e.className(...t),l.className):vi(null==e?void 0:e.className,l.className),n=t?{className:t}:{};return Gr(d,Object.assign({},Ai(d.props,Ri(Pi(l,["ref"]))),u,c,{ref:o(d.ref,c.ref)},n))}return v(i,Object.assign({},Pi(l,["ref"]),i!==k&&c,i!==k&&u),d)}function Ti(...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 Ai(...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(ur(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Ri(e){let t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}function Pi(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}let Li=G(null);Li.displayName="OpenClosedContext";var Ii=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Ii||{});function Ui(){return Zn(Li)}function Fi({value:e,children:t}){return ao.createElement(Li.Provider,{value:e},t)}function ji(){let e=Vn(!1);return pi((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function Bi(e,...t){e&&t.length>0&&e.classList.add(...t)}function Di(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Mi(e,t,n,r){let o=n?"enter":"leave",i=hi(),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=yi(o,{enter:()=>t.enter,leave:()=>t.leave}),l=yi(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=yi(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Di(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Bi(e,...t.base,...s,...c),i.nextFrame((()=>{Di(e,...t.base,...s,...c),Bi(e,...t.base,...s,...l),function(e,t){let n=hi();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,(()=>(Di(e,...t.base,...s),Bi(e,...t.base,...t.entered),a())))})),i.dispose}function zi(e=""){return e.split(/\s+/).filter((e=>e.length>1))}let Hi=G(null);Hi.displayName="TransitionContext";var qi,Wi=((qi=Wi||{}).Visible="visible",qi.Hidden="hidden",qi);let Vi=G(null);function $i(e){return"children"in e?$i(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function Gi(e,t){let n=fi(e),r=Vn([]),o=ji(),i=gi(),a=mi(((e,t=Ei.Hidden)=>{let a=r.current.findIndex((({el:t})=>t===e));-1!==a&&(yi(t,{[Ei.Unmount](){r.current.splice(a,1)},[Ei.Hidden](){r.current[a].state="hidden"}}),i.microTask((()=>{var e;!$i(r)&&o.current&&(null==(e=n.current)||e.call(n))})))})),s=mi((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,Ei.Unmount)})),l=Vn([]),c=Vn(Promise.resolve()),d=Vn({enter:[],leave:[],idle:[]}),u=mi(((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(d.current[n].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===n?c.current=c.current.then((()=>null==t?void 0:t.wait.current)).then((()=>r(n))):r(n)})),p=mi(((e,t,n)=>{Promise.all(d.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=l.current.shift())||e()})).then((()=>n(t)))}));return Gn((()=>({children:r,register:s,unregister:a,onStart:u,onStop:p,wait:c,chains:d})),[s,a,r,u,p,d,c])}function Yi(){}Vi.displayName="NestingContext";let Zi=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Ji(e){var t;let n={};for(let r of Zi)n[r]=null!=(t=e[r])?t:Yi;return n}let Xi=ki.RenderStrategy;let Ki=Oi((function(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,a=Vn(null),s=wi(a,t);_i();let l=Ui();if(void 0===n&&null!==l&&(n=(l&Ii.Open)===Ii.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,d]=zn(n?"visible":"hidden"),u=Gi((()=>{d("hidden")})),[p,f]=zn(!0),m=Vn([n]);pi((()=>{!1!==p&&m.current[m.current.length-1]!==n&&(m.current.push(n),f(!1))}),[m,n]);let h=Gn((()=>({show:n,appear:r,initial:p})),[n,r,p]);qn((()=>{if(n)d("visible");else if($i(u)){let e=a.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&d("hidden")}else d("hidden")}),[n,u]);let g={unmount:o},_=mi((()=>{var t;p&&f(!1),null==(t=e.beforeEnter)||t.call(e)})),y=mi((()=>{var t;p&&f(!1),null==(t=e.beforeLeave)||t.call(e)}));return ao.createElement(Vi.Provider,{value:u},ao.createElement(Hi.Provider,{value:h},Si({ourProps:{...g,as:k,children:ao.createElement(Qi,{ref:s,...g,...i,beforeEnter:_,beforeLeave:y})},theirProps:{},defaultTag:k,features:Xi,visible:"visible"===c,name:"Transition"})))})),Qi=Oi((function(e,t){var n,r;let{beforeEnter:o,afterEnter:i,beforeLeave:a,afterLeave:s,enter:l,enterFrom:c,enterTo:d,entered:u,leave:p,leaveFrom:f,leaveTo:m,...h}=e,g=Vn(null),_=wi(g,t),y=null==(n=h.unmount)||n?Ei.Unmount:Ei.Hidden,{show:b,appear:w,initial:v}=function(){let e=Zn(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,C]=zn(b?"visible":"hidden"),k=function(){let e=Zn(Vi);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:E,unregister:S}=k;qn((()=>E(g)),[E,g]),qn((()=>{if(y===Ei.Hidden&&g.current)return b&&"visible"!==x?void C("visible"):yi(x,{hidden:()=>S(g),visible:()=>E(g)})}),[x,g,E,S,b,y]);let N=fi({base:zi(h.className),enter:zi(l),enterFrom:zi(c),enterTo:zi(d),entered:zi(u),leave:zi(p),leaveFrom:zi(f),leaveTo:zi(m)}),T=function(e){let t=Vn(Ji(e));return qn((()=>{t.current=Ji(e)}),[e]),t}({beforeEnter:o,afterEnter:i,beforeLeave:a,afterLeave:s}),A=_i();qn((()=>{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]=zn(e),r=ji(),o=Yn((e=>{r.current&&n((t=>t|e))}),[t,r]),i=Yn((e=>Boolean(t&e)),[t]),a=Yn((e=>{r.current&&n((t=>t&~e))}),[n,r]),s=Yn((e=>{r.current&&n((t=>t^e))}),[n]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:a,toggleFlag:s}}(0),I=mi((e=>yi(e,{enter:()=>{L.addFlag(Ii.Opening),T.current.beforeEnter()},leave:()=>{L.addFlag(Ii.Closing),T.current.beforeLeave()},idle:()=>{}}))),U=mi((e=>yi(e,{enter:()=>{L.removeFlag(Ii.Opening),T.current.afterEnter()},leave:()=>{L.removeFlag(Ii.Closing),T.current.afterLeave()},idle:()=>{}}))),F=Gi((()=>{C("hidden"),S(g)}),k),j=Vn(!1);!function({immediate:e,container:t,direction:n,classes:r,onStart:o,onStop:i}){let a=ji(),s=gi(),l=fi(n);pi((()=>{e&&(l.current="enter")}),[e]),pi((()=>{let e=hi();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:N,direction:P,onStart:fi((e=>{j.current=!0,F.onStart(g,e,I)})),onStop:fi((e=>{j.current=!1,F.onStop(g,e,U),"leave"===e&&!$i(F)&&(C("hidden"),S(g))}))});let B=h,D={ref:_};return R?B={...B,className:vi(h.className,...N.current.enter,...N.current.enterFrom)}:j.current&&(B.className=vi(h.className,null==(r=g.current)?void 0:r.className),""===B.className&&delete B.className),ao.createElement(Vi.Provider,{value:F},ao.createElement(Fi,{value:yi(x,{visible:Ii.Open,hidden:Ii.Closed})|L.flags},Si({ourProps:D,theirProps:B,defaultTag:"div",features:Xi,visible:"visible"===x,name:"Transition.Child"})))})),ea=Oi((function(e,t){let n=null!==Zn(Hi),r=null!==Ui();return ao.createElement(ao.Fragment,null,!n&&r?ao.createElement(Ki,{ref:t,...e}):ao.createElement(Qi,{ref:t,...e}))})),ta=Object.assign(Ki,{Child:ea,Root:Ki});const na=({children:e})=>{const t=ao.Children.toArray(e),n=t.find((e=>e.type===ra)),r=t.find((e=>e.type===oa));return uo(ta,{appear:!0,show:!0,enter:"transition duration-700 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:uo("div",{class:"flex flex-col text-center items-center max-w-[40rem] mx-auto",children:[uo(ta,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:n&&uo("div",{class:"flex items-center h-full",children:n})}),uo(ta,{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&&uo("div",{class:"flex items-center h-full",children:r})})]})})},ra=({children:e})=>uo(k,{children:e}),oa=({children:e})=>uo(k,{children:e});na.Top=ra,na.Bottom=oa;const ia=({onContinue:e})=>{const{featureFlags:{marketplaceScheme:t},offers:n}=Zn(fo),r="allowance"===t.scheme?t.content.setUpBenefits:void 0;return uo(k,{children:r&&uo("div",{className:"flex flex-col items-center max-w-full w-full mx-auto",children:[uo(oi,{selectedIndex:-1,children:n.map((e=>uo(ni,{label:e.content.productName,icon:uo(ti,{icon:e.content.iconUrl})},e.name)))}),uo(na,{children:[uo(na.Top,{children:uo("div",{className:"flex flex-col gap-4",children:[uo(ii,{children:r.title}),uo(ai,{children:r.description})]})}),uo(na.Bottom,{children:uo("div",{className:"mt-5 flex flex-col items-center gap-5 text-center",children:[r.progress&&uo(Co,{className:"lg:w-3/4",title:r.progress.title,children:uo(li,{steps:r.progress.steps,className:"mt-2 rounded-md px-6 py-4"})}),uo(xo,{testId:"allowance_set_up_benefits_button_next_screen",class:"mt-5 w-full md:w-[240px]",onClickPromise:e,children:r.buttonText}),r.termsAndConditions&&uo("span",{className:"font-normal text-xs mt-4 lg:w-3/4",children:uo(r.termsAndConditions,{})})]})})]})]})})},aa=({icon:e,children:t,className:n,...r})=>uo("div",{...r,className:`${n??""} rounded-md shadow-sm`,children:uo("div",{className:"flex items-center gap-4 px-4 py-4",children:[e&&uo("span",{className:"w-8 min-w-8 max-w-8",children:e}),t&&uo("span",{className:"text-left text-base",children:t})]})}),sa=(e,t)=>{switch(!0){case"started"===e:return vn.backend.command({eventType:"Started"},t);case"membership-accepted"===e:return vn.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!0,featureName:"",treatmentName:"",template:"Eoi"}},t);case"membership-declined"===e:return vn.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!1,featureName:"",treatmentName:"",template:"Eoi"}},t);case"sign-up-viewed"===e:return vn.backend.command({eventType:"OfferViewed",offerName:"Membership",data:{featureName:"",treatmentName:""}},t);case"sign-up-completed"===e:return(async()=>{await vn.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!0,featureName:"",treatmentName:"",template:"Eoi"}},t),await vn.backend.command({eventType:"CustomerRegistrationCompleted",isRegistered:!0},t)})();case"sign-up-declined"===e:return(async()=>{await vn.backend.command({eventType:"CustomerRegistrationCompleted",isRegistered:!1},t),await vn.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!1,featureName:"",treatmentName:"",template:"Eoi"}},t)})();case"object"==typeof e&&"offer-selected"===e.type:return vn.workplaceBackend.track("MarketplaceOffer Selected",{offer:e.offerName},t);case"object"==typeof e&&"offer-viewed"===e.type:return vn.backend.command({...e,eventType:"OfferViewed"},t);case"object"==typeof e&&"offer-accepted"===e.type:return vn.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:{...e.data,accepted:!0}},t);case"object"==typeof e&&"offer-declined"===e.type:return vn.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:{...e.data,accepted:!1}},t);case"object"==typeof e&&"offer-progressed"===e.type:return vn.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:e.data},t);case"object"==typeof e&&"summary-viewed"===e.type:return vn.backend.command({eventType:"SummaryViewed",summaryVariant:e.data.summaryVariant},t);case"completed"===e:return vn.backend.command({eventType:"Completed"},t)}return Promise.resolve()},la=()=>({trace:sa}),ca=e=>{const{trace:t}=la(),{featureFlags:{marketplaceScheme:n},hostInformation:{experiment:r,treatment:o}}=Zn(fo),i="allowance"===n.scheme?n.content.joinBenefits:void 0;return uo(k,{children:i&&uo(na,{children:[uo(na.Top,{children:[uo("img",{class:"max-w-[30rem] w-full hidden md:block",src:i.desktopImageUrl}),uo("img",{class:"max-w-[30rem] w-full md:hidden",src:i.mobileImageUrl})]}),uo(na.Bottom,{children:uo("div",{children:[uo("h3",{class:"mt-8 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:i.title}),uo("p",{class:"mt-3 text-lg leading-7 text-gray-600",children:i.description}),uo(aa,{className:"bg-teal-50 mt-5",style:{background:"linear-gradient(90deg, rgba(255, 216, 77, 0.10) 0%, rgba(255, 135, 111, 0.10) 100%)"},icon:i.specialBanner.icon,children:uo("div",{children:[uo("p",{className:"font-semibold text-base text-gray-900",children:i.specialBanner.title}),uo("span",{className:"font-normal text-base text-gray-900",children:i.specialBanner.subTitle})]})}),uo(xo,{testId:"introduction_button_next_screen",class:"mt-8",onClickPromise:async()=>{await t("started",{experiment:r,treatment:o}),e.onContinue()},children:i.buttonText})]})})]})})},da=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/get-app-CQalMIl7.jpg?inline").href:new URL("assets/get-app-CQalMIl7.jpg?inline","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),ua=()=>uo("div",{className:"mt-4 flex items-center border rounded-md border-gray-300",children:[uo("img",{className:"h-40 h-min-40 h-max-40 m-0.5",src:da}),uo("div",{className:"flex flex-col gap-1",children:[uo("h4",{className:"font-bold text-lg text-left",children:"Workplace benefits in your pocket!"}),uo("p",{className:"font-normal text-base text-left",children:"Download the Flare app for easy access to your workplace benefits and exclusive discounts."}),uo("a",{className:"focus:ring-2 focus:ring-primary-focus font-bold rounded-md self-start text-primary-base",target:"_blank",rel:"noreferrer",href:"https://flarehr.app.link/download",children:["Get the Flare App ","->"]})]})]}),pa=({onContinue:e})=>{const{offersProgress:{hasCompletedAnyOffers:t},isAppEnabled:n,featureFlags:{marketplaceScheme:r},hostInformation:{experiment:o,treatment:i}}=Zn(fo),{trace:a}=la(),s=Gn((()=>{const e=t();switch(!0){case n&&e:return"allowance-accepted-app";case n&&!e:return"allowance-declined-app";case!n&&e:return"allowance-accepted-noapp";case!n&&!e:return"allowance-declined-noapp";default:throw"Invalid summary variant"}}),[t,n]);qn((()=>{(async()=>{await a({type:"summary-viewed",data:{summaryVariant:s}},{experiment:o,treatment:i})})()}),[o,i,s,a]);const l=Yn((async()=>{await a("completed",{experiment:o,treatment:i}),await e()}),[o,i,e,a]),c="allowance"===r.scheme?r.content.summary:void 0;return uo(k,{children:c&&uo(na,{children:[uo(na.Top,{children:uo("div",{className:"flex flex-col gap-4",children:[uo(ii,{children:c.title}),uo(ai,{children:c.description})]})}),uo(na.Bottom,{children:uo("div",{className:"mt-5 flex flex-col items-center gap-5 text-center",children:[c.progress&&uo(Co,{className:"lg:w-3/4",title:c.progress.title,children:uo(li,{steps:c.progress.steps,className:"mt-2 rounded-md px-6 py-4"})}),uo(xo,{testId:"step-benefits-finish",class:"mt-5 w-full md:w-[240px]",onClickPromise:l,children:c.buttonText}),n&&uo(ua,{})]})})]})})};var fa=(e=>(e[e.PHONE_NUMBER=0]="PHONE_NUMBER",e[e.OTP=1]="OTP",e[e.SUCCESS=2]="SUCCESS",e))(fa||{});const ma=({className:e,children:t,...n})=>uo("label",{class:`text-base text-gray-600 ${e??""}`,...n,children:t}),ha=e=>v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"green",className:"w-5 h-5",...e},v("path",{fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm3.857-9.809a.75.75 0 0 0-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 1 0-1.06 1.061l2.5 2.5a.75.75 0 0 0 1.137-.089l4-5.5Z",clipRule:"evenodd"})),ga=({className:e,onClick:t,...n})=>{const[r,o]=zn(!1);return uo("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:Yn((()=>{if(!r)return o(!0),t().finally((()=>{o(!1)}))}),[r,t]),...n,children:[uo("div",{class:"relative "+(r?"invisible":""),children:n.children}),r&&uo("div",{class:"absolute animate-spin",children:uo(wo,{theme:"primary"})})]})},_a=({className:e,allowedKeyPattern:t,onChange:n,value:r,leadingIconElement:o,trailingIconElement:i,...a})=>{const s=Yn((e=>{t.test(e.key)||e.preventDefault()}),[t]);return uo(k,{children:uo("div",{class:"relative",children:[o,uo("input",{"data-testid":a.testId,type:"text",className:`border-0 ring-2 ring-gray-200 focus:outline-none text-base font-medium rounded-md shadow-sm ${e}`,value:r,onKeyPress:s,onChange:e=>n(e.currentTarget.value),...a}),i]})})},ya=e=>e.replace(/ /g,""),ba=e=>{const t=ya(e);return t.startsWith("04")&&10===t.length||t.startsWith("614")&&11===t.length||t.startsWith("+614")&&12===t.length||/^\+642\d{7,9}$/.test(t)},wa=({phoneNumber:e,onSubmit:t,onDecline:n})=>{const{hostInformation:{workflowsJourneyType:r}}=Zn(fo),[o,i]=zn(""),{setPhoneNumber:a,phoneNumber:s}=(e=>{const{identity:t}=Zn(fo),[n,r]=zn((()=>e&&ba(e)?e:"")),o=Gn((()=>ba(n)),[n]),i=Gn((()=>ya(n)),[n]),a=Gn((()=>i.startsWith("04")?`+61${i.replace(/^0+/,"")}`:i.startsWith("614")?`+${i}`:i),[i]),s=Gn((()=>(e=>{let t=0;return"#### ### ### ### ### ### ###".replace(/#/g,(()=>e[t++]??"")).trim()})(i)),[i]),l=Gn((()=>ba(t.verifiedPhoneNumber)&&a===t.verifiedPhoneNumber),[a,t.verifiedPhoneNumber]);return{setPhoneNumber:r,phoneNumber:{valid:o,original:n,formatted:a,masked:s,isVerified:l}}})(e),[l,c]=zn(s.isVerified),d=Yn((()=>{i("")}),[]),u=Yn((()=>{const e=s.valid?"":"Please enter a valid Australian mobile number beginning with 04.";i(e),c(s.isVerified)}),[s.isVerified,s.valid]),p=Yn((async()=>{s.valid&&await t(s).catch(i)}),[s,t]),f=Yn((async()=>{c(!1)}),[]),m=uo("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 ",uo(ha,{})]});return uo(na,{children:[uo(na.Top,{children:uo("div",{className:"flex flex-col gap-5",children:[uo(ii,{children:"Join your workplace benefits program"}),uo(ai,{children:[s.isVerified?"Confirm ":"Enter "," your ",uo("b",{children:"personal"})," mobile number to finish setting up your Flare Benefits account linked to your workplace"]})]})}),uo(na.Bottom,{children:uo("div",{className:"mt-5 md:w-[300px] text-left",children:[uo(ma,{className:"font-medium text-sm text-gray-900 text-left",children:"Australian Mobile Number"}),uo(_a,{testId:"sign_in_mobile_number_text_input_mobile_number",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:d,onfocusout:u,trailingIconElement:l&&m,disabled:l}),0!==o.length&&uo("div",{className:"h-8 leading-none",children:uo("span",{className:"text-xs text-rose-500",children:o})}),l&&uo("div",{className:"mt-2 ml-2 mb-2 leading-none",children:uo("span",{className:"text-xs",children:["Not your personal number?",uo(ga,{class:"text-blue-500",onClick:f,children:"Change number"})]})}),uo("div",{children:uo("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"," ",uo("a",{href:"https://www.flarehr.com/flare-app-terms-and-conditions/",target:"_blank",rel:"noreferrer",children:" Terms of Use "}),"and",uo("a",{href:"https://www.flarehr.com/privacy-policy/",target:"_blank",rel:"noreferrer",children:" Privacy Policy"}),"."," "]})}),uo(xo,{testId:"sign_in_mobile_number_button_send_otp",class:"mt-5 md:w-full",onClickPromise:p,children:"Join your workplace"}),r!==ne.AppInvite&&uo(xo,{testId:"sign_in_mobile_number_button_decline_to_send_otp",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:n,children:"Not now"})]})})]})},va=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/check-animated-QQOZQPLY.gif?inline").href:new URL("assets/check-animated-QQOZQPLY.gif?inline","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),xa=({onContinue:e})=>{const{featureFlags:{marketplaceScheme:t}}=Zn(fo),n=Gn((()=>"allowance"===t.scheme?{title:"Account created successfully",description:"You now have access to your workplace benefits",isNextButtonHidden:!0}:{title:"You’ve joined your workplace benefits program",description:"You now have access to your workplace benefits",isNextButtonHidden:!1}),[t]);return qn((()=>{if("allowance"===t.scheme){const t=setTimeout(e,3e3);return()=>clearTimeout(t)}}),[t,e]),uo(na,{children:[uo(na.Top,{children:uo("img",{src:va,className:"h-16 w-16"})}),uo(na.Bottom,{children:uo("div",{className:"mt-5 flex flex-col items-center gap-5 text-center",children:[uo(ii,{children:n.title}),uo(ai,{children:n.description}),!n.isNextButtonHidden&&uo(xo,{testId:"sign_in_success_button_next_screen",class:"mt-5 w-full md:w-[240px]",onClickPromise:async()=>{e()},children:"Set up your benefits"})]})})]})},Ca=e=>v("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,viewBox:"0 -960 960 960",width:24,fill:"currentColor",...e},v("path",{d:"m313-440 224 224-57 56-320-320 320-320 57 56-224 224h487v80H313Z"})),ka=({open:e})=>uo(bo,{open:e,children:uo(yo,{children:uo("div",{className:"flex flex-col gap-5 items-center justify-center text-center",children:[uo("span",{class:"animate-spin",children:uo(wo,{size:"lg"})}),uo(ii,{children:"Creating your account"}),uo("div",{children:[uo(ai,{children:"This can take up to 30 seconds."}),uo(ai,{children:"Please don't navigate away or refresh your browser."})]})]})})}),Ea=({phoneNumber:e,onVerify:t,onResendOtp:n,onGoBack:r})=>{const{otp:o,setOtp:i}=(()=>{const[e,t]=zn("");return{otp:{valid:Gn((()=>6===e.length),[e.length]),code:e},setOtp:t}})(),[a,s]=zn(!1),[l,c]=zn(""),{countdown:d,restart:u}=(e=>{const[t,n]=zn(e),r=Vn(),o=Yn((()=>{clearInterval(r.current)}),[]);return qn((()=>o),[o]),{countdown:t,restart:Yn((()=>{let t=e;clearInterval(r.current),r.current=setInterval((()=>{t<0?clearInterval(r.current):n(t--)}),1e3)}),[e])}})(60);qn(u,[u]);const p=Yn((()=>(s(!0),c(""),t(o.code).catch(c).finally((()=>{s(!1)})))),[t,o.code]),f=Yn((()=>(c(""),n().then(u).catch(c))),[n,u]);return uo(k,{children:[uo(ka,{open:a}),uo(na,{children:[uo(na.Top,{children:uo("div",{className:"flex flex-col gap-5",children:[uo(ii,{children:"Verify your mobile number"}),uo(ai,{children:["An SMS verification code has been sent to the number ",e,"."]})]})}),uo(na.Bottom,{children:uo("div",{className:"mt-5 md:w-[300px] text-left",children:[uo(ma,{className:"font-medium text-sm text-gray-900 text-left",children:"Enter your verification code"}),uo(_a,{testId:"sign_in_otp_text_input_otp",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&&uo("span",{className:"text-xs text-rose-500",children:l}),uo("p",{class:"mt-2 text-center text-xs text-gray-600 disabled:opacity-75 ",children:["Didn't get the code?",uo(ga,{disabled:0!==d,className:"underline mx-2 disabled:text-gray-600 disabled:hover:bg-transparent disabled:cursor-text disabled:px-0",onClick:f,children:"Resend SMS"}),0!==d&&uo(k,{children:["in ",d," secs"]})]}),uo(xo,{testId:"sign_in_otp_button_verify_otp",class:"mt-5 md:w-full",disabled:!o.valid,onClickPromise:p,children:"Continue"}),uo(xo,{testId:"sign_in_otp_button_decline_to_verify_otp",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:uo("span",{className:"flex gap-3",children:[uo(Ca,{}),"Back"]})})]})})]})]})},Sa=({phoneNumber:e,onSignUp:t,onVerify:n,onResendOtp:r,onSuccess:o,onDecline:i})=>{const{trace:a}=la(),[s,l]=zn(e??""),{step:c,goBack:d,goToStep:u}=(()=>{const[e,t]=zn(0),n=Yn((()=>{const n=e-1;n>=0&&t(n)}),[e]),r=Yn((e=>{e<=2&&t(e)}),[]);return{step:e,goBack:n,goToStep:r}})();qn((()=>{(async()=>{await a("sign-up-viewed")})()}),[a]);const p=Yn((e=>t(e.formatted).then((async t=>{l(e.masked),t.isVerificationRequired?u(fa.OTP):(await a("sign-up-completed"),u(fa.SUCCESS))}))),[u,t,a]),f=Yn((()=>a("sign-up-declined").then(i)),[i,a]),m=Yn((e=>n(e).then((async()=>{await a("sign-up-completed"),u(fa.SUCCESS)}))),[u,n,a]);return uo(k,{children:[c===fa.PHONE_NUMBER&&uo(wa,{phoneNumber:s,onSubmit:p,onDecline:f}),c===fa.OTP&&uo(Ea,{phoneNumber:s,onVerify:m,onResendOtp:r,onGoBack:d}),c===fa.SUCCESS&&uo(xa,{onContinue:o})]})};var Na=(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))(Na||{});const Ta=e=>{var t;const n=null==(t=null==e?void 0:e.response)?void 0:t.data;throw Na[null==n?void 0:n.code]??"Sorry, we are currently experiencing some issues. Please try again later."},Aa=({onSuccess:e,onDecline:t})=>{const{identity:{phoneNumber:n}}=Zn(fo),{signUp:r,verifyOtp:o,resendOtp:i}={signUp:async e=>vn.backend.getClient().post("v2.0/auth/signUp",{mobileNumber:e}).then((e=>({isVerificationRequired:e.data.isVerificationRequired??!0}))),verifyOtp:async e=>{await vn.backend.getClient().post("auth/verify",{otp:e}).catch(Ta)},resendOtp:async()=>{await vn.backend.getClient().post("auth/resend").catch(Ta)}};return uo(k,{children:uo(Sa,{phoneNumber:n,onSignUp:r,onVerify:o,onResendOtp:i,onSuccess:e,onDecline:t})})},Oa=""+("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),Ra=e=>{const{trace:t}=la(),{hostInformation:{experiment:n,treatment:r}}=Zn(fo);return uo(na,{children:[uo(na.Top,{children:uo("img",{class:"max-w-[30rem] w-full",src:Oa})}),uo(na.Bottom,{children:uo("div",{children:[uo("h3",{class:"mt-8 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:"Finish setting up your workplace benefits"}),uo("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."}),uo(xo,{testId:"introduction_button_next_screen",class:"mt-8",onClickPromise:async()=>{await t("started",{experiment:n,treatment:r}),e.onStepComplete()},children:"Continue"})]})})]})},Pa=()=>uo("div",{class:"flex justify-center",children:uo("span",{class:"animate-spin",children:uo(wo,{size:"lg"})})}),La=(Ia=e=>{var t,n,r;const{featureFlags:{marketplaceScheme:o},hostInformation:i,offersProgress:{canOfferSkipToEstimate:a}}=Zn(fo),{trace:s}=la(),l=Vn(null);return ko((()=>{s({type:"offer-viewed",offerName:e.marketPlaceOffer.name,data:e.marketPlaceOffer.metadata},{experiment:e.marketPlaceOffer.metadata.featureName,treatment:e.marketPlaceOffer.metadata.treatmentName}),l.current&&(l.current.terms=e.marketPlaceOffer.content.terms,l.current.details=e.marketPlaceOffer.content.details,l.current["on-accept"]=async()=>{await s({type:"offer-accepted",offerName:e.marketPlaceOffer.name,data:{...e.marketPlaceOffer.metadata,template:e.marketPlaceOffer.content.template,assessmentId:e.marketPlaceOffer.content.assessmentId}},{experiment:e.marketPlaceOffer.metadata.featureName,treatment:e.marketPlaceOffer.metadata.treatmentName})},l.current["on-decline"]=async()=>{await s({type:"offer-declined",offerName:e.marketPlaceOffer.name,data:{...e.marketPlaceOffer.metadata,template:e.marketPlaceOffer.content.template,assessmentId:e.marketPlaceOffer.content.assessmentId}},{experiment:e.marketPlaceOffer.metadata.featureName,treatment:e.marketPlaceOffer.metadata.treatmentName}),e.onStepComplete(!1,!1)},l.current["on-complete"]=()=>e.onStepComplete(!0,!0),l.current["on-skip"]=e.marketPlaceOffer.content.skipButtonHidden?void 0:()=>e.onStepComplete(!0,!1))})),uo("benefits-plan-assessment",{"base-url":xn.workplaceBackend.getBaseUrl(),"profile-id":xn.workplaceBackend.getProfileId(),"skip-more-details":!0,"access-token":e.accessToken,"image-url":e.marketPlaceOffer.content.imageUrl,"assessment-id":e.marketPlaceOffer.content.assessmentId,"assessment-instructions":"allowance"===o.scheme?e.marketPlaceOffer.content.assessmentInstructions:void 0,"track-client":i.client,"track-source":i.source,"track-channel":i.channel,"track-experiment":i.experiment,"track-treatment":i.treatment,"marketplace-offer-name":e.marketPlaceOffer.name,"assessment-title":e.marketPlaceOffer.content.title,description:e.marketPlaceOffer.content.description,"accept-button":e.marketPlaceOffer.content.acceptButton,"decline-button":e.marketPlaceOffer.content.declineButton,"special-banner-title":"allowance"===o.scheme?null==(t=e.marketPlaceOffer.content.specialBanner)?void 0:t.title:void 0,"special-banner-subtitle":"allowance"===o.scheme?null==(n=e.marketPlaceOffer.content.specialBanner)?void 0:n.subtitle:void 0,"special-banner-type":"allowance"===o.scheme?null==(r=e.marketPlaceOffer.content.specialBanner)?void 0:r.type:void 0,"vertical-alignment":"items-center","skip-to-completion":a(e.marketPlaceOffer.name),ref:l})},e=>{const t=Vn(null),[n,r]=zn(),[o,i]=zn(!1);return qn((()=>{(async()=>{const e=await xn.workplaceBackend.getIdToken();r(e)})(),(()=>{if(t.current&&!t.current.querySelector("script[data-injected]")){const e=document.createElement("script"),n=ho(xn.workplaceBackend.getBaseUrl());e.type="module",e.src=`https://npm-cdn.flarehr.com/@flarehr/benefits-plan-assessment@${n}/dist/benefits-plan-assessment.js`,e.dataset.injected="true",e.onload=()=>{i(!0)},t.current.appendChild(e)}else i(!0)})()}),[]),uo("div",{ref:t,className:n,children:n&&o?uo(Ia,{...e,accessToken:n}):uo(Pa,{})})});var Ia;const Ua=e=>v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",...e},v("path",{fill:"currentColor",d:"M345 137c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-119 119L73 103c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l119 119L39 375c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l119-119L311 409c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-119-119L345 137z"}))
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 */,{entries:Fa,setPrototypeOf:ja,isFrozen:Ba,getPrototypeOf:Da,getOwnPropertyDescriptor:Ma}=Object;let{freeze:za,seal:Ha,create:qa}=Object,{apply:Wa,construct:Va}="undefined"!=typeof Reflect&&Reflect;za||(za=function(e){return e}),Ha||(Ha=function(e){return e}),Wa||(Wa=function(e,t,n){return e.apply(t,n)}),Va||(Va=function(e,t){return new e(...t)});const $a=is(Array.prototype.forEach),Ga=is(Array.prototype.pop),Ya=is(Array.prototype.push),Za=is(String.prototype.toLowerCase),Ja=is(String.prototype.toString),Xa=is(String.prototype.match),Ka=is(String.prototype.replace),Qa=is(String.prototype.indexOf),es=is(String.prototype.trim),ts=is(Object.prototype.hasOwnProperty),ns=is(RegExp.prototype.test),rs=(os=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Va(os,t)});var os;function is(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 Wa(e,t,r)}}function as(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Za;ja&&ja(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(Ba(t)||(t[r]=e),o=e)}e[o]=!0}return e}function ss(e){for(let t=0;t<e.length;t++){ts(e,t)||(e[t]=null)}return e}function ls(e){const t=qa(null);for(const[n,r]of Fa(e)){ts(e,n)&&(Array.isArray(r)?t[n]=ss(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=ls(r):t[n]=r)}return t}function cs(e,t){for(;null!==e;){const n=Ma(e,t);if(n){if(n.get)return is(n.get);if("function"==typeof n.value)return is(n.value)}e=Da(e)}return function(){return null}}const ds=za(["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"]),us=za(["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"]),ps=za(["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"]),fs=za(["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"]),ms=za(["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"]),hs=za(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),gs=za(["#text"]),_s=za(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),ys=za(["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"]),bs=za(["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"]),ws=za(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),vs=Ha(/\{\{[\w\W]*|[\w\W]*\}\}/gm),xs=Ha(/<%[\w\W]*|[\w\W]*%>/gm),Cs=Ha(/\${[\w\W]*}/gm),ks=Ha(/^data-[\-\w.\u00B7-\uFFFF]/),Es=Ha(/^aria-[\-\w]+$/),Ss=Ha(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ns=Ha(/^(?:\w+script|data):/i),Ts=Ha(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),As=Ha(/^html$/i),Os=Ha(/^[a-z][.\w]*(-[.\w]+)+$/i);var Rs=Object.freeze({__proto__:null,MUSTACHE_EXPR:vs,ERB_EXPR:xs,TMPLIT_EXPR:Cs,DATA_ATTR:ks,ARIA_ATTR:Es,IS_ALLOWED_URI:Ss,IS_SCRIPT_OR_DATA:Ns,ATTR_WHITESPACE:Ts,DOCTYPE_NAME:As,CUSTOM_ELEMENT:Os});const Ps=1,Ls=3,Is=7,Us=8,Fs=9;var js=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!==Fs)return n.isSupported=!1,n;let{document:r}=t;const o=r,i=o.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:l,Element:c,NodeFilter:d,NamedNodeMap:u=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:f,trustedTypes:m}=t,h=c.prototype,g=cs(h,"cloneNode"),_=cs(h,"remove"),y=cs(h,"nextSibling"),b=cs(h,"childNodes"),w=cs(h,"parentNode");if("function"==typeof s){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let v,x="";const{implementation:C,createNodeIterator:k,createDocumentFragment:E,getElementsByTagName:S}=r,{importNode:N}=o;let T={};n.isSupported="function"==typeof Fa&&"function"==typeof w&&C&&void 0!==C.createHTMLDocument;const{MUSTACHE_EXPR:A,ERB_EXPR:O,TMPLIT_EXPR:R,DATA_ATTR:P,ARIA_ATTR:L,IS_SCRIPT_OR_DATA:I,ATTR_WHITESPACE:U,CUSTOM_ELEMENT:F}=Rs;let{IS_ALLOWED_URI:j}=Rs,B=null;const D=as({},[...ds,...us,...ps,...ms,...gs]);let M=null;const z=as({},[..._s,...ys,...bs,...ws]);let H=Object.seal(qa(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}})),q=null,W=null,V=!0,$=!0,G=!1,Y=!0,Z=!1,J=!0,X=!1,K=!1,Q=!1,ee=!1,te=!1,ne=!1,re=!0,oe=!1,ie=!0,ae=!1,se={},le=null;const ce=as({},["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 de=null;const ue=as({},["audio","video","img","source","image","track"]);let pe=null;const fe=as({},["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=as({},[me,he,ge],Ja);let ve=null;const xe=["application/xhtml+xml","text/html"];let Ce=null,ke=null;const Ee=r.createElement("form"),Se=function(e){return e instanceof RegExp||e instanceof Function},Ne=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ke||ke!==e){if(e&&"object"==typeof e||(e={}),e=ls(e),ve=-1===xe.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ce="application/xhtml+xml"===ve?Ja:Za,B=ts(e,"ALLOWED_TAGS")?as({},e.ALLOWED_TAGS,Ce):D,M=ts(e,"ALLOWED_ATTR")?as({},e.ALLOWED_ATTR,Ce):z,be=ts(e,"ALLOWED_NAMESPACES")?as({},e.ALLOWED_NAMESPACES,Ja):we,pe=ts(e,"ADD_URI_SAFE_ATTR")?as(ls(fe),e.ADD_URI_SAFE_ATTR,Ce):fe,de=ts(e,"ADD_DATA_URI_TAGS")?as(ls(ue),e.ADD_DATA_URI_TAGS,Ce):ue,le=ts(e,"FORBID_CONTENTS")?as({},e.FORBID_CONTENTS,Ce):ce,q=ts(e,"FORBID_TAGS")?as({},e.FORBID_TAGS,Ce):{},W=ts(e,"FORBID_ATTR")?as({},e.FORBID_ATTR,Ce):{},se=!!ts(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,Z=e.SAFE_FOR_TEMPLATES||!1,J=!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,j=e.ALLOWED_URI_REGEXP||Ss,_e=e.NAMESPACE||ge,H=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Se(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Se(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),Z&&($=!1),te&&(ee=!0),se&&(B=as({},gs),M=[],!0===se.html&&(as(B,ds),as(M,_s)),!0===se.svg&&(as(B,us),as(M,ys),as(M,ws)),!0===se.svgFilters&&(as(B,ps),as(M,ys),as(M,ws)),!0===se.mathMl&&(as(B,ms),as(M,bs),as(M,ws))),e.ADD_TAGS&&(B===D&&(B=ls(B)),as(B,e.ADD_TAGS,Ce)),e.ADD_ATTR&&(M===z&&(M=ls(M)),as(M,e.ADD_ATTR,Ce)),e.ADD_URI_SAFE_ATTR&&as(pe,e.ADD_URI_SAFE_ATTR,Ce),e.FORBID_CONTENTS&&(le===ce&&(le=ls(le)),as(le,e.FORBID_CONTENTS,Ce)),ie&&(B["#text"]=!0),X&&as(B,["html","head","body"]),B.table&&(as(B,["tbody"]),delete q.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw rs('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw rs('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(""));za&&za(e),ke=e}},Te=as({},["mi","mo","mn","ms","mtext"]),Ae=as({},["foreignobject","annotation-xml"]),Oe=as({},["title","style","font","a","script"]),Re=as({},[...us,...ps,...fs]),Pe=as({},[...ms,...hs]),Le=function(e){Ya(n.removed,{element:e});try{w(e).removeChild(e)}catch(t){_(e)}},Ie=function(e,t){try{Ya(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(r){Ya(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!M[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=Xa(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 f).parseFromString(o,ve)}catch(a){}if(!t||!t.documentElement){t=C.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?S.call(t,X?"html":"body")[0]:X?t.documentElement:i},Fe=function(e){return k.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},je=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof u)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Be=function(e){return"function"==typeof l&&e instanceof l},De=function(e,t,r){T[e]&&$a(T[e],(e=>{e.call(n,t,r,ke)}))},Me=function(e){let t=null;if(De("beforeSanitizeElements",e,null),je(e))return Le(e),!0;const r=Ce(e.nodeName);if(De("uponSanitizeElement",e,{tagName:r,allowedTags:B}),e.hasChildNodes()&&!Be(e.firstElementChild)&&ns(/<[/\w]/g,e.innerHTML)&&ns(/<[/\w]/g,e.textContent))return Le(e),!0;if(e.nodeType===Is)return Le(e),!0;if(J&&e.nodeType===Us&&ns(/<[/\w]/g,e.data))return Le(e),!0;if(!B[r]||q[r]){if(!q[r]&&He(r)){if(H.tagNameCheck instanceof RegExp&&ns(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=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=Za(e.tagName),r=Za(t.tagName);return!!be[e.namespaceURI]&&(e.namespaceURI===he?t.namespaceURI===ge?"svg"===n:t.namespaceURI===me?"svg"===n&&("annotation-xml"===r||Te[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&&!Te[r])&&!Pe[n]&&(Oe[n]||!Re[n]):!("application/xhtml+xml"!==ve||!be[e.namespaceURI]))}(e)?(Le(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!ns(/<\/no(script|embed|frames)/i,e.innerHTML)?(Z&&e.nodeType===Ls&&(t=e.textContent,$a([A,O,R],(e=>{t=Ka(t,e," ")})),e.textContent!==t&&(Ya(n.removed,{element:e.cloneNode()}),e.textContent=t)),De("afterSanitizeElements",e,null),!1):(Le(e),!0)},ze=function(e,t,n){if(re&&("id"===t||"name"===t)&&(n in r||n in Ee))return!1;if($&&!W[t]&&ns(P,t));else if(V&&ns(L,t));else if(!M[t]||W[t]){if(!(He(e)&&(H.tagNameCheck instanceof RegExp&&ns(H.tagNameCheck,e)||H.tagNameCheck instanceof Function&&H.tagNameCheck(e))&&(H.attributeNameCheck instanceof RegExp&&ns(H.attributeNameCheck,t)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(t))||"is"===t&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&ns(H.tagNameCheck,n)||H.tagNameCheck instanceof Function&&H.tagNameCheck(n))))return!1}else if(pe[t]);else if(ns(j,Ka(n,U,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Qa(n,"data:")||!de[e]){if(G&&!ns(I,Ka(n,U,"")));else if(n)return!1}else;return!0},He=function(e){return"annotation-xml"!==e&&Xa(e,F)},qe=function(e){De("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:M};let o=t.length;for(;o--;){const a=t[o],{name:s,namespaceURI:l,value:c}=a,d=Ce(s);let u="value"===s?c:es(c);if(r.attrName=d,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,De("uponSanitizeAttribute",e,r),u=r.attrValue,J&&ns(/((--!?|])>)|<\/(style|title)/i,u)){Ie(s,e);continue}if(r.forceKeepAttr)continue;if(Ie(s,e),!r.keepAttr)continue;if(!Y&&ns(/\/>/i,u)){Ie(s,e);continue}Z&&$a([A,O,R],(e=>{u=Ka(u,e," ")}));const p=Ce(e.nodeName);if(ze(p,d,u)){if(!oe||"id"!==d&&"name"!==d||(Ie(s,e),u="user-content-"+u),v&&"object"==typeof m&&"function"==typeof m.getAttributeType)if(l);else switch(m.getAttributeType(p,d)){case"TrustedHTML":u=v.createHTML(u);break;case"TrustedScriptURL":u=v.createScriptURL(u)}try{l?e.setAttributeNS(l,s,u):e.setAttribute(s,u),je(e)?Le(e):Ga(n.removed)}catch(i){}}}De("afterSanitizeAttributes",e,null)},We=function e(t){let n=null;const r=Fe(t);for(De("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)De("uponSanitizeShadowNode",n,null),Me(n)||(n.content instanceof a&&e(n.content),qe(n));De("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,s=null,c=null;if(ye=!e,ye&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Be(e)){if("function"!=typeof e.toString)throw rs("toString is not a function");if("string"!=typeof(e=e.toString()))throw rs("dirty is not a string, aborting")}if(!n.isSupported)return e;if(K||Ne(t),n.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){const t=Ce(e.nodeName);if(!B[t]||q[t])throw rs("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===Ps&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!ee&&!Z&&!X&&-1===e.indexOf("<"))return v&&ne?v.createHTML(e):e;if(r=Ue(e),!r)return ee?null:ne?x:""}r&&Q&&Le(r.firstChild);const d=Fe(ae?e:r);for(;s=d.nextNode();)Me(s)||(s.content instanceof a&&We(s.content),qe(s));if(ae)return e;if(ee){if(te)for(c=E.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(M.shadowroot||M.shadowrootmode)&&(c=N.call(o,c,!0)),c}let u=X?r.outerHTML:r.innerHTML;return X&&B["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&ns(As,r.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+u),Z&&$a([A,O,R],(e=>{u=Ka(u,e," ")})),v&&ne?v.createHTML(u):u},n.setConfig=function(){Ne(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),K=!0},n.clearConfig=function(){ke=null,K=!1},n.isValidAttribute=function(e,t,n){ke||Ne({});const r=Ce(e),o=Ce(t);return ze(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(T[e]=T[e]||[],Ya(T[e],t))},n.removeHook=function(e){if(T[e])return Ga(T[e])},n.removeHooks=function(e){T[e]&&(T[e]=[])},n.removeAllHooks=function(){T={}},n}();const Bs=({children:e})=>{const t=ao.Children.toArray(e),n=t.find((e=>e.type===Ds)),r=t.find((e=>e.type===Ms));return uo(ta,{appear:!0,show:!0,enter:"transition duration-700 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:uo("div",{class:"md:grid md:grid-cols-2 max-w-[59.5rem] mx-auto",children:[uo(ta,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:n&&uo("div",{class:"flex items-center h-full",children:n})}),uo(ta,{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&&uo("div",{class:"flex items-center h-full",children:r})})]})})},Ds=({children:e})=>uo(k,{children:e}),Ms=({children:e})=>uo(k,{children:e});Bs.Left=Ds,Bs.Right=Ms;const zs=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"})),Hs=e=>uo(ta,{appear:!0,show:!0,enter:"transition duration-300 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:uo("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)=>uo("div",{class:"flex space-x-1",children:[uo("span",{children:uo(si,{class:"h-5 w-5 fill-primary-base"})}),uo("span",{class:"text-sm leading-5 text-gray-600",children:e})]},t)))})}),qs=e=>{const[t,n]=zn(!1);return uo("div",{class:e.class,children:t?uo(Hs,{items:e.items}):uo("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",uo("span",{class:"ml-1",children:uo(zs,{class:"h-4 w-4"})})]})})},Ws=e=>{var t,n,r,o;const{featureFlags:{marketplaceScheme:i}}=Zn(fo),{trace:a}=la(),[s,l]=zn(!1);ko((()=>{a({type:"offer-viewed",offerName:e.step.name,data:e.step.metadata},{experiment:e.step.metadata.featureName,treatment:e.step.metadata.treatmentName})}));const c=async t=>{t?await a({type:"offer-accepted",offerName:e.step.name,data:{...e.step.metadata,template:"Eoi"}},{experiment:e.step.metadata.featureName,treatment:e.step.metadata.treatmentName}):await a({type:"offer-declined",offerName:e.step.name,data:{...e.step.metadata,template:"Eoi"}},{experiment:e.step.metadata.featureName,treatment:e.step.metadata.treatmentName});return(t?e.primaryButton:e.secondaryButton).onClick()};return uo(Bs,{children:[uo(Bs.Left,{children:uo("div",{children:uo(ta,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:uo("div",{children:[uo("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:e.step.content.mobileImageUrl,loading:"lazy"}),uo("div",{class:"md:max-w-[27.5rem]",children:[uo("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:e.step.content.title}),uo("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&&uo("div",{class:"mt-6 hidden md:block",children:uo(Hs,{items:e.step.content.details})})]}),e.step.content.details&&uo(qs,{class:"mt-6 md:hidden",items:e.step.content.details}),"allowance"===i.scheme&&"offer"==(null==(t=e.step.content.specialBanner)?void 0:t.type)&&uo(aa,{style:{background:"linear-gradient(90deg, rgba(255, 135, 111, 0.10) 0%, rgba(166, 80, 255, 0.10) 100%)"},className:"md:max-w-[27.5rem] mt-6",children:uo("div",{children:[uo("p",{className:"font-semibold text-lg leading-tight text-gray-900",children:e.step.content.specialBanner.title}),uo("span",{className:"font-normal text-sm text-gray-900",children:e.step.content.specialBanner.subtitle})]})}),e.children&&e.children,uo("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:[uo(xo,{testId:`offer_${e.step.name}_button_accept`,class:e.primaryButton.class??"",onClickPromise:()=>c(!0),children:e.primaryButton.text??"Next"}),(null==(n=e.secondaryButton)?void 0:n.text)&&uo(xo,{testId:`offer_${e.step.name}_button_decline`,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:()=>c(!1),children:e.secondaryButton.text})]}),(null==(r=e.step.content.terms)?void 0:r.length)>0&&uo("p",{className:"mt-6 text-xs",children:[uo("span",{children:"*"}),uo("span",{className:"underline text-primary-base cursor-pointer",onClick:()=>l(!0),children:"T&C's apply"})]}),(null==(o=e.step.content.terms)?void 0:o.length)>0&&uo(bo,{open:s,children:[uo(_o,{children:uo("div",{className:"relative",children:[uo("h3",{className:"text-base font-semibold text-gray-900",children:"Terms & Conditions"}),uo("span",{className:"absolute top-0 right-0 p-1 rounded-full bg-gray-200 cursor-pointer hover:bg-gray-100",onClick:()=>l(!1),children:uo(Ua,{className:"h-4 min-h-4 max-h-4 w-4 min-w-4 max-w-4"})})]})}),uo(yo,{children:uo("div",{class:"flex flex-col gap-3 mt-6 text-gray-600 text-xs",children:e.step.content.terms.map(((e,t)=>uo("span",{dangerouslySetInnerHTML:{__html:js.sanitize(e,{ADD_ATTR:["target"]})}},t)))})})]})]})})})}),uo(Bs.Right,{children:uo("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},Vs=e=>{var t,n,r;const{featureFlags:{marketplaceScheme:o}}=Zn(fo),{trace:i}=la(),[a,s]=zn(!1);ko((()=>{"name"in e.step&&i({type:"offer-viewed",offerName:e.step.name,data:e.step.metadata},{experiment:e.step.metadata.featureName,treatment:e.step.metadata.treatmentName})}));return uo(Bs,{children:[uo(Bs.Left,{children:uo("div",{children:uo(ta,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:uo("div",{children:[uo("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:e.step.content.mobileImageUrl,loading:"lazy"}),uo("div",{class:"md:max-w-[27.5rem]",children:[uo("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:e.step.content.title}),uo("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&&uo("div",{class:"mt-6 hidden md:block",children:uo(Hs,{items:e.step.content.details})})]}),e.step.content.details&&uo(qs,{class:"mt-6 md:hidden",items:e.step.content.details}),"allowance"===o.scheme&&"offer"==(null==(t=e.step.content.specialBanner)?void 0:t.type)&&uo(aa,{style:{background:"linear-gradient(90deg, rgba(255, 135, 111, 0.10) 0%, rgba(166, 80, 255, 0.10) 100%)"},className:"md:max-w-[27.5rem] mt-6",children:uo("div",{children:[uo("p",{className:"font-semibold text-lg leading-tight text-gray-900",children:e.step.content.specialBanner.title}),uo("span",{className:"font-normal text-sm text-gray-900",children:e.step.content.specialBanner.subtitle})]})}),e.children&&e.children,uo("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:uo(xo,{testId:`offer_${e.step.name}_button_accept`,class:e.primaryButton.class??"",onClickPromise:async()=>{"name"in e.step&&await i({type:"offer-progressed",offerName:e.step.name,data:{...e.step.metadata,template:"Simple"}},{experiment:e.step.metadata.featureName,treatment:e.step.metadata.treatmentName}),e.primaryButton.onClick()},children:e.primaryButton.text??"Next"})}),(null==(n=e.step.content.terms)?void 0:n.length)>0&&uo("p",{className:"mt-6 text-xs",children:[uo("span",{children:"*"}),uo("span",{className:"underline text-primary-base cursor-pointer",onClick:()=>s(!0),children:"T&C's apply"})]}),(null==(r=e.step.content.terms)?void 0:r.length)>0&&uo(bo,{open:a,children:[uo(_o,{children:uo("div",{className:"relative",children:[uo("h3",{className:"text-base font-semibold text-gray-900",children:"Terms & Conditions"}),uo("span",{className:"absolute top-0 right-0 p-1 rounded-full bg-gray-200 cursor-pointer hover:bg-gray-100",onClick:()=>s(!1),children:uo(Ua,{className:"h-4 min-h-4 max-h-4 w-4 min-w-4 max-w-4"})})]})}),uo(yo,{children:uo("div",{class:"flex flex-col gap-3 mt-6 text-gray-600 text-xs",children:e.step.content.terms.map(((e,t)=>uo("span",{dangerouslySetInnerHTML:{__html:js.sanitize(e,{ADD_ATTR:["target"]})}},t)))})})]})]})})})}),uo(Bs.Right,{children:uo("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},$s=({current:e,total:t})=>uo("div",{className:"flex justify-between md:block text-xs tracking-wide",children:uo("span",{className:"relative px-3 py-0.5 text-primary-base font-semibold",children:[e," OF ",t,uo("span",{className:"absolute left-0 rounded-xl bg-primary-base opacity-10 w-full h-[90%]"})]})}),Gs=e=>{const{featureFlags:{marketplaceSubNavigation:t},offersProgress:{update:n,isOfferCompleted:r,isOfferProgressed:o}}=Zn(fo),[i,a]=zn(0),{trace:s}=la(),l=Yn(((t,r,o)=>{n(t,r,o),i===e.offers.length-1?e.onComplete():a(i+1)}),[n,i,e]),c=Yn((t=>{a(t);const n=e.offers[t];s({type:"offer-selected",offerName:n.name},{experiment:n.metadata.featureName,treatment:n.metadata.treatmentName})}),[e.offers,s]),d=(e,t,n)=>{const i=o(e);return!!r(e)||(!i||t!==n)&&!!i};return uo("div",{className:"max-w-[59.5rem] mx-auto",children:[!t&&uo($s,{current:i+1,total:e.offers.length+1}),uo(oi,{selectedIndex:i,onChange:c,children:[t&&e.offers.map(((e,t)=>uo(ni,{label:e.content.productName,icon:uo(ti,{icon:d(e.name,t,i)?uo(si,{}):e.content.iconUrl})},e.name))),e.offers.map((e=>uo(ri,{children:["Eoi"===e.content.template&&uo(Ws,{step:e,primaryButton:{text:e.content.acceptButton,onClick:()=>l(e.name,!0,!0)},secondaryButton:{text:e.content.declineButton,onClick:()=>l(e.name,!1,!1)}}),"Simple"===e.content.template&&uo(Vs,{step:e,primaryButton:{text:e.content.acceptButton,onClick:()=>l(e.name,!0,!0)}}),"Assessment"===e.content.template&&uo(La,{onStepComplete:(t,n)=>l(e.name,t,n),marketPlaceOffer:e},e.name)]},e.name)))]})]})},Ys=""+("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),Zs=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"})),Js=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"})),Xs=""+("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),Ks=({onComplete:e})=>{const{trace:t}=la(),{identity:n,getIdentityRegistrationStatus:r,hostInformation:{experiment:o,treatment:i}}=Zn(fo);qn((()=>{(async()=>{await t({type:"summary-viewed",data:{summaryVariant:"app"}},{experiment:o,treatment:i})})()}),[o,t,i]);const a={...Qs(n,r()),imageUrl:Ys,mobileImageUrl:Xs},s={text:"Continue",class:"mt-6 md:mt-14",onClick:async()=>{await t("completed",{experiment:o,treatment:i}),await e()}};return uo(Bs,{children:[uo(Bs.Left,{children:uo("div",{children:[uo("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:a.mobileImageUrl,loading:"lazy"}),uo("div",{class:"md:max-w-[27.5rem]",children:[uo("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:a.title}),uo("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:a.description})]}),uo("div",{class:"mt-6 flex space-x-6",children:[uo(Zs,{}),uo(Js,{})]}),uo(xo,{testId:"step-benefits-finish",class:s.class,onClickPromise:s.onClick,children:s.text})]})}),uo(Bs.Right,{children:uo("img",{class:"max-w-[30rem] w-full hidden md:block",src:a.imageUrl,loading:"lazy"})})]})},Qs=(e,t)=>{switch(t){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.`}}},el=""+("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),tl=""+("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),nl=({onComplete:e})=>{const{trace:t}=la(),{getWorkplaceLinkingStatus:n,hostInformation:{experiment:r,treatment:o}}=Zn(fo);qn((()=>{(async()=>{await t({type:"summary-viewed",data:{summaryVariant:"generic"}},{experiment:r,treatment:o})})()}),[r,o,t]);const i={imageUrl:el,mobileImageUrl:tl,title:"You're all set!",description:"PreviouslyLinked"===n()?"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."},a={text:"Continue",class:"mt-6 md:mt-6",onClick:async()=>{await t("completed",{experiment:r,treatment:o}),await e()}};return uo(Bs,{children:[uo(Bs.Left,{children:uo("div",{children:[uo("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:i.mobileImageUrl,loading:"lazy"}),uo("div",{class:"md:max-w-[27.5rem]",children:[uo("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:i.title}),uo("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:i.description})]}),uo("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:uo(xo,{testId:"step-benefits-finish",class:a.class,onClickPromise:a.onClick,children:a.text})})]})}),uo(Bs.Right,{children:uo("img",{class:"max-w-[30rem] w-full hidden md:block",src:i.imageUrl,loading:"lazy"})})]})},rl=()=>{const{offers:e,updateIdentity:t}=Zn(fo),{current:n,goNext:r}=function(){const{isAppEnabled:e,getIdentityRegistrationStatus:t,featureFlags:n}=Zn(fo),r=Gn((()=>"allowance"===n.marketplaceScheme.scheme?["Allowance_JoinBenefits","FlareAppIdentity","Allowance_ConfigureBenefits","MarketplaceOffers","Allowance_BenefitsSummary"]:["Introduction","FlareAppIdentity","MarketplaceOffers",e?"SummaryApp":"SummaryGeneric"]),[n.marketplaceScheme.scheme,e]),[o,i]=zn(r[0]);qn((()=>{i(r[0])}),[r]);const a=Yn((async()=>{if(r.indexOf(o)===r.length-1){const e=document.querySelector(il),t=new CustomEvent("step-completion",{bubbles:!0});return null==e||e.dispatchEvent(t),void(await new Promise((e=>setTimeout(e,1e4))))}if("RegistrationAbandoned"!==t())try{const e=r.findIndex((e=>e===o)),t=r[e+1];return void i(t)}catch{}else i(r[r.length-1])}),[o,t,r]);return{current:o,goNext:a}}(),o=Yn((()=>{t(!0),r()}),[r,t]),i=Yn((()=>{t(!1),r()}),[r,t]);switch(n){case"Introduction":return uo(Ra,{onStepComplete:r});case"Allowance_JoinBenefits":return uo(ca,{onContinue:r});case"FlareAppIdentity":return uo(Aa,{onSuccess:o,onDecline:i});case"Allowance_ConfigureBenefits":return uo(ia,{onContinue:r});case"MarketplaceOffers":return uo(Gs,{offers:e,onComplete:r});case"Allowance_BenefitsSummary":return uo(pa,{onContinue:r});case"SummaryApp":return uo(Ks,{onComplete:r});case"SummaryGeneric":return uo(nl,{onComplete:r});default:return uo(k,{})}},ol=()=>{const e=Zn(fo);return uo(k,{children:[uo(bo,{open:e.isLoading,children:uo(yo,{children:uo("div",{class:"flex",children:uo("span",{class:"animate-spin",children:uo(wo,{size:"lg"})})})})}),uo(rl,{})]})},il="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]=zn(0);qn((()=>le((()=>{n(t+1)}))),[t]);const r={backendUrl:e["backend-url"],accessToken:e["access-token"],workflowsInstanceId:e["workflows-instance-id"],workflowsJourneyType:e["journey-type"]},o={channel:"onboarding",client:"onboarding",source:(e=>{switch(e){case ne.BenefitsExisting:case ne.AppInvite:return"Invite";default:return"Onboarding"}})(r.workflowsJourneyType),experiment:"onboarding-marketplace-scheme",workflowsJourneyType:r.workflowsJourneyType,workflowsInstanceId:r.workflowsInstanceId};return En(r.backendUrl,r.accessToken,o),"prod"===ho(r.backendUrl)&&go.init("p09arvzysr"),uo(k,{children:[uo("style",{children:vo.toString()}),uo("div",{class:"font-inter pt-6 pb-8 md:py-24 px-px",children:uo(mo,{hostInformation:o,children:uo(ol,{})})},t)]})}),il,[],{shadow:!0})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flarehr/apollo-benefits-onboarding",
3
- "version": "0.1.3014",
3
+ "version": "0.1.3016",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "dist/"