@flarehr/apollo-benefits-onboarding 1.94.144 → 1.95.145
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=[],y=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,_=Array.isArray;function b(e,t){for(var n in t)e[n]=t[n];return e}function w(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,n){var r,o,i,a={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?s.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return x(e,a,r,o,null)}function x(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++c:o,__i:-1,__u:0};return null==o&&null!=l.vnode&&l.vnode(i),i}function k(){return{current:null}}function E(e){return e.children}function S(e,t){this.props=e,this.context=t}function C(e,t){if(null==t)return e.__?C(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?C(e):null}function 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),B(a,r,o,e.__n,void 0!==a.ownerSVGElement,32&o.__u?[i]:null,t,null==i?C(o):i,!!(32&o.__u),n),r.__v=o.__v,r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=i&&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 O(e){(!e.__d&&(e.__d=!0)&&d.push(e)&&!A.__r++||u!==l.debounceRendering)&&((u=l.debounceRendering)||p)(A)}function A(){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),A.__r=0}function R(e,t,n,r,o,i,a,s,l,c,d){var u,p,f,m,y,b=r&&r.__k||g,w=t.length;for(n.__d=l,function(e,t,n){var r,o,i,a,s,l=t.length,c=n.length,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):_(o)?x(E,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?x(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,s=I(o,n,a=r+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=C(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=C(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,B(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==y&&null!=m&&(y=m),65536&f.__u||p.__k===f.__k?l=P(f,l,e):"function"==typeof f.type&&void 0!==f.__d?l=f.__d:m&&(l=m.nextSibling),f.__d=void 0,f.__u&=-196609);n.__d=l,n.__e=y}function P(e,t,n){var r,o;if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=P(r[o],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function L(e,t){return t=t||[],null==e||"boolean"==typeof e||(_(e)?e.some((function(e){L(e,t)})):t.push(e)),t}function I(e,t,n,r){var o=e.key,i=e.type,a=n-1,s=n+1,l=t[n];if(null===l||l&&o==l.key&&i===l.type)return n;if(r>(null!=l&&0==(131072&l.__u)?1:0))for(;a>=0||s<t.length;){if(a>=0){if((l=t[a])&&0==(131072&l.__u)&&o==l.key&&i===l.type)return a;a--}if(s<t.length){if((l=t[s])&&0==(131072&l.__u)&&o==l.key&&i===l.type)return s;s++}}return-1}function U(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||y.test(t)?n:n+"px"}function F(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||U(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||U(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,i?D:j,i)):e.removeEventListener(t,i?D: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 D(e){if(this.l)return this.l[e.type+!0](l.event?l.event(e):e)}function B(e,t,n,r,o,i,a,c,d,u){var p,f,m,g,y,v,x,k,N,T,O,A,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 S(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,y=f.state,f.__v=t,m)null==U.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==U.getDerivedStateFromProps&&k!==g&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(k,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)})),O=0;O<f._sb.length;O++)f.__h.push(f._sb[O]);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,y,v)}))}if(f.context=T,f.props=k,f.__P=e,f.__e=!1,A=l.__r,P=0,"prototype"in U&&U.prototype.render){for(f.state=f.__s,f.__d=!1,A&&A(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,A&&A(t),p=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++P<25);f.state=f.__s,null!=f.getChildContext&&(r=b(b({},r),f.getChildContext())),m||null==f.getSnapshotBeforeUpdate||(v=f.getSnapshotBeforeUpdate(g,y)),R(e,_(I=null!=p&&p.type===E&&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,y,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?y=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,_(f)?f:[f],t,n,r,o&&"foreignObject"!==x,i,a,i?i[0]:n.__k&&C(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!==y&&y!==e[d]&&F(e,d,y,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=[],B(t,e=(!r&&n||t).__k=v(E,null,[e]),o||h,h,void 0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?s.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,a),e.__d=void 0,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,O(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}function Y(){return(Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}s=g.slice,l={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(s){e=s}throw e}},c=0,S.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=b({},this.state),"function"==typeof e&&(e=e(b({},n),this.props)),e&&b(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),O(this))},S.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),O(this))},S.prototype.render=E,d=[],p="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f=function(e,t){return e.__v.__b-t.__v.__b},A.__r=0,m=0;var J=["context","children"];function X(e){return this.getChildContext=function(){return e.context},$(e.children,function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(e,J))}function K(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=v(X,Y({},this._props,{context:e.detail.context}),function e(t,n){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var r=[],o={},i=0,a=t.attributes,s=t.childNodes;for(i=a.length;i--;)"slot"!==a[i].name&&(o[a[i].name]=a[i].value,o[Z(a[i].name)]=a[i].value);for(i=s.length;i--;){var l=e(s[i],null),c=s[i].slot;c?o[c]=v(te,{name:c},l):r[i]=l}var 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 Z(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function Q(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[Z(e)]=n,this._vdom=$(this._vdom,r),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)}}))}const ne=""+("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);var re,oe,ie,ae,se=0,le=[],ce=[],de=l,ue=de.__b,pe=de.__r,fe=de.diffed,me=de.__c,he=de.unmount,ge=de.__;function ye(e,t){de.__h&&de.__h(oe,e,se||t),se=0;var n=oe.__H||(oe.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:ce}),n.__[e]}function _e(e){return se=1,be(Ue,e)}function be(e,t,n){var r=ye(re++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Ue(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=oe,!oe.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))};oe.u=!0;var i=oe.shouldComponentUpdate,a=oe.componentWillUpdate;oe.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)},oe.shouldComponentUpdate=o}return r.__N||r.__}function we(e,t){var n=ye(re++,3);!de.__s&&Ie(n.__H,t)&&(n.__=e,n.i=t,oe.__H.__h.push(n))}function ve(e,t){var n=ye(re++,4);!de.__s&&Ie(n.__H,t)&&(n.__=e,n.i=t,oe.__h.push(n))}function xe(e){return se=5,Ee((function(){return{current:e}}),[])}function ke(e,t,n){se=6,ve((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function Ee(e,t){var n=ye(re++,7);return Ie(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Se(e,t){return se=8,Ee((function(){return e}),t)}function Ce(e){var t=oe.context[e.__c],n=ye(re++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(oe)),t.props.value):e.__}function Ne(e,t){de.useDebugValue&&de.useDebugValue(t?t(e):e)}function Te(){var e=ye(re++,11);if(!e.__){for(var t=oe.__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 Oe(){for(var e;e=le.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Pe),e.__H.__h.forEach(Le),e.__H.__h=[]}catch(t){e.__H.__h=[],de.__e(t,e.__v)}}de.__b=function(e){oe=null,ue&&ue(e)},de.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ge&&ge(e,t)},de.__r=function(e){pe&&pe(e),re=0;var t=(oe=e.__c).__H;t&&(ie===oe?(t.__h=[],oe.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=ce,e.__N=e.i=void 0}))):(t.__h.forEach(Pe),t.__h.forEach(Le),t.__h=[],re=0)),ie=oe},de.diffed=function(e){fe&&fe(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==le.push(t)&&ae===de.requestAnimationFrame||((ae=de.requestAnimationFrame)||Re)(Oe)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==ce&&(e.__=e.__V),e.i=void 0,e.__V=ce}))),ie=oe=null},de.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Pe),e.__h=e.__h.filter((function(e){return!e.__||Le(e)}))}catch(ii){t.some((function(e){e.__h&&(e.__h=[])})),t=[],de.__e(ii,e.__v)}})),me&&me(e,t)},de.unmount=function(e){he&&he(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Pe(e)}catch(n){t=n}})),n.__H=void 0,t&&de.__e(t,n.__v))};var Ae="function"==typeof requestAnimationFrame;function Re(e){var t,n=function(){clearTimeout(r),Ae&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Ae&&(t=requestAnimationFrame(n))}function Pe(e){var t=oe,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),oe=t}function Le(e){var t=oe;e.__c=e.__(),oe=t}function Ie(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Ue(e,t){return"function"==typeof t?t(e):t}function Fe(e,t){for(var n in t)e[n]=t[n];return e}function je(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 De(e,t){this.props=e,this.context=t}function Be(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:je(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}(De.prototype=new S).isPureReactComponent=!0,De.prototype.shouldComponentUpdate=function(e,t){return je(this.props,e)||je(this.state,t)};var Me=l.__b;l.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Me&&Me(e)};var ze="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function He(e){function t(t){var n=Fe({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=ze,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var qe=function(e,t){return null==e?null:L(L(e).map(t))},We={map:qe,forEach:qe,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},Ve=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);Ve(e,t,n,r)};var $e=l.unmount;function Ge(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=Fe({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Ge(e,t,n)}))),e}function Ye(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return Ye(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 Je(){this.__u=0,this.t=null,this.__b=null}function Xe(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ke(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 Ze(){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),$e&&$e(e)},(Je.prototype=new S).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=Xe(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]=Ye(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)},Je.prototype.componentWillUnmount=function(){this.t=[]},Je.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]=Ge(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&v(E,null,e.fallback);return o&&(o.__u&=-33),[v(E,null,t.__a?null:e.children),o]};var Qe=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 et(e){return this.getChildContext=function(){return e.context},e.children}function tt(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(et,{context:t.context},e.__v),t.l)}function nt(e,t){var n=v(tt,{__v:e,i:t});return n.containerInfo=t,n}(Ze.prototype=new S).__a=function(e){var t=this,n=Xe(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Qe(t,e,r)):o()};n?n(i):i()}},Ze.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},Ze.prototype.componentDidUpdate=Ze.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Qe(e,n,t)}))};var rt="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ot=/^(?: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]/,it=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,at=/[A-Z0-9]/g,st="undefined"!=typeof document,lt=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function ct(e,t,n){return null==t.__k&&(t.textContent=""),W(e,t),"function"==typeof n&&n(),e?e.__c:null}function dt(e,t,n){return V(e,t),"function"==typeof n&&n(),e?e.__c:null}S.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(S.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var ut=l.event;function pt(){}function ft(){return this.cancelBubble}function mt(){return this.defaultPrevented}l.event=function(e){return ut&&(e=ut(e)),e.persist=pt,e.isPropagationStopped=ft,e.isDefaultPrevented=mt,e.nativeEvent=e};var ht,gt={enumerable:!1,configurable:!0,get:function(){return this.class}},yt=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||st&&"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||lt(t.type)?"onfocus"===a?o="onfocusin":"onblur"===a?o="onfocusout":it.test(o)?o=a:-1===n.indexOf("-")&&ot.test(o)?o=o.replace(at,"-$&").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",gt)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=rt,yt&&yt(e)};var _t=l.__r;l.__r=function(e){_t&&_t(e),ht=e.__c};var bt=l.diffed;l.diffed=function(e){bt&&bt(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),ht=null};var wt={ReactCurrentDispatcher:{current:{readContext:function(e){return ht.__n[e.__c].props.value}}}};function vt(e){return v.bind(null,e)}function xt(e){return!!e&&e.$$typeof===rt}function kt(e){return xt(e)&&e.type===E}function Et(e){return xt(e)?$.apply(null,arguments):e}function St(e){return!!e.__k&&(W(null,e),!0)}function Ct(e){return e&&(e.base||1===e.nodeType&&e)||null}var Nt=function(e,t){return e(t)},Tt=function(e,t){return e(t)},Ot=E;function At(e){e()}function Rt(e){return e}function Pt(){return[!1,At]}var Lt=ve,It=xt;function Ut(e,t){var n=t(),r=_e({h:{__:n,v:t}}),o=r[0].h,i=r[1];return ve((function(){o.__=n,o.v=t,Ft(o)&&i({h:o})}),[e,n,t]),we((function(){return Ft(o)&&i({h:o}),e((function(){Ft(o)&&i({h:o})}))}),[e]),n}function Ft(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 jt={useState:_e,useId:Te,useReducer:be,useEffect:we,useLayoutEffect:ve,useInsertionEffect:Lt,useTransition:Pt,useDeferredValue:Rt,useSyncExternalStore:Ut,startTransition:At,useRef:xe,useImperativeHandle:ke,useMemo:Ee,useCallback:Se,useContext:Ce,useDebugValue:Ne,version:"17.0.2",Children:We,render:ct,hydrate:dt,unmountComponentAtNode:St,createPortal:nt,createElement:v,createContext:G,createFactory:vt,cloneElement:Et,createRef:k,Fragment:E,isValidElement:xt,isElement:It,isFragment:kt,findDOMNode:Ct,Component:S,PureComponent:De,memo:Be,forwardRef:He,flushSync:Tt,unstable_batchedUpdates:Nt,StrictMode:Ot,Suspense:Je,SuspenseList:Ze,lazy:Ke,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:wt};const Dt=Object.freeze(Object.defineProperty({__proto__:null,Children:We,Component:S,Fragment:E,PureComponent:De,StrictMode:Ot,Suspense:Je,SuspenseList:Ze,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:wt,cloneElement:Et,createContext:G,createElement:v,createFactory:vt,createPortal:nt,createRef:k,default:jt,findDOMNode:Ct,flushSync:Tt,forwardRef:He,hydrate:dt,isElement:It,isFragment:kt,isValidElement:xt,lazy:Ke,memo:Be,render:ct,startTransition:At,unmountComponentAtNode:St,unstable_batchedUpdates:Nt,useCallback:Se,useContext:Ce,useDebugValue:Ne,useDeferredValue:Rt,useEffect:we,useErrorBoundary:function(e){var t=ye(re++,10),n=_e();return t.__=e,oe.componentDidCatch||(oe.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:Te,useImperativeHandle:ke,useInsertionEffect:Lt,useLayoutEffect:ve,useMemo:Ee,useReducer:be,useRef:xe,useState:_e,useSyncExternalStore:Ut,useTransition:Pt,version:"17.0.2"},Symbol.toStringTag,{value:"Module"})),Bt=e=>v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",...e},v("path",{d:"M 25 2 C 12.309295 2 2 12.309295 2 25 C 2 37.690705 12.309295 48 25 48 C 37.690705 48 48 37.690705 48 25 C 48 12.309295 37.690705 2 25 2 z M 25 4 C 36.609824 4 46 13.390176 46 25 C 46 36.609824 36.609824 46 25 46 C 13.390176 46 4 36.609824 4 25 C 4 13.390176 13.390176 4 25 4 z M 25 11 A 3 3 0 0 0 22 14 A 3 3 0 0 0 25 17 A 3 3 0 0 0 28 14 A 3 3 0 0 0 25 11 z M 21 21 L 21 23 L 22 23 L 23 23 L 23 36 L 22 36 L 21 36 L 21 38 L 22 38 L 23 38 L 27 38 L 28 38 L 29 38 L 29 36 L 28 36 L 27 36 L 27 21 L 26 21 L 22 21 L 21 21 z"})),Mt=""+("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 zt extends Error{}function Ht(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)}}zt.prototype.name="InvalidTokenError";const qt=crypto.randomUUID?crypto.randomUUID():crypto.getRandomValues(new Uint32Array(5)).join("-"),Wt=e=>(window.addEventListener(qt,e),()=>window.removeEventListener(qt,e)),Vt=()=>{window.dispatchEvent(new Event(qt))};function $t(e,t){return function(){return e.apply(t,arguments)}}const{toString:Gt}=Object.prototype,{getPrototypeOf:Yt}=Object,Jt=(e=>t=>{const n=Gt.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Xt=e=>(e=e.toLowerCase(),t=>Jt(t)===e),Kt=e=>t=>typeof t===e,{isArray:Zt}=Array,Qt=Kt("undefined");const en=Xt("ArrayBuffer");const tn=Kt("string"),nn=Kt("function"),rn=Kt("number"),on=e=>null!==e&&"object"==typeof e,an=e=>{if("object"!==Jt(e))return!1;const t=Yt(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},sn=Xt("Date"),ln=Xt("File"),cn=Xt("Blob"),dn=Xt("FileList"),un=Xt("URLSearchParams"),[pn,fn,mn,hn]=["ReadableStream","Request","Response","Headers"].map(Xt);function gn(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),Zt(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 yn(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 _n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,bn=e=>!Qt(e)&&e!==_n;const wn=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&Yt(Uint8Array)),vn=Xt("HTMLFormElement"),xn=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),kn=Xt("RegExp"),En=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};gn(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},Sn="abcdefghijklmnopqrstuvwxyz",Cn="0123456789",Nn={DIGIT:Cn,ALPHA:Sn,ALPHA_DIGIT:Sn+Sn.toUpperCase()+Cn};const Tn=Xt("AsyncFunction"),On=(An="function"==typeof setImmediate,Rn=nn(_n.postMessage),An?setImmediate:Rn?(Pn=`axios@${Math.random()}`,Ln=[],_n.addEventListener("message",(({source:e,data:t})=>{e===_n&&t===Pn&&Ln.length&&Ln.shift()()}),!1),e=>{Ln.push(e),_n.postMessage(Pn,"*")}):e=>setTimeout(e));var An,Rn,Pn,Ln;const In="undefined"!=typeof queueMicrotask?queueMicrotask.bind(_n):"undefined"!=typeof process&&process.nextTick||On,Un={isArray:Zt,isArrayBuffer:en,isBuffer:function(e){return null!==e&&!Qt(e)&&null!==e.constructor&&!Qt(e.constructor)&&nn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||nn(e.append)&&("formdata"===(t=Jt(e))||"object"===t&&nn(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&en(e.buffer),t},isString:tn,isNumber:rn,isBoolean:e=>!0===e||!1===e,isObject:on,isPlainObject:an,isReadableStream:pn,isRequest:fn,isResponse:mn,isHeaders:hn,isUndefined:Qt,isDate:sn,isFile:ln,isBlob:cn,isRegExp:kn,isFunction:nn,isStream:e=>on(e)&&nn(e.pipe),isURLSearchParams:un,isTypedArray:wn,isFileList:dn,forEach:gn,merge:function e(){const{caseless:t}=bn(this)&&this||{},n={},r=(r,o)=>{const i=t&&yn(n,o)||o;an(n[i])&&an(r)?n[i]=e(n[i],r):an(r)?n[i]=e({},r):Zt(r)?n[i]=r.slice():n[i]=r};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&gn(arguments[o],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(gn(t,((t,r)=>{n&&nn(t)?e[r]=$t(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&&Yt(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Jt,kindOfTest:Xt,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(Zt(e))return e;let t=e.length;if(!rn(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:vn,hasOwnProperty:xn,hasOwnProp:xn,reduceDescriptors:En,freezeMethods:e=>{En(e,((t,n)=>{if(nn(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];nn(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 Zt(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:yn,global:_n,isContextDefined:bn,ALPHABET:Nn,generateString:(e=16,t=Nn.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&nn(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(on(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=Zt(e)?[]:{};return gn(e,((e,t)=>{const i=n(e,r+1);!Qt(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:Tn,isThenable:e=>e&&(on(e)||nn(e))&&nn(e.then)&&nn(e.catch),setImmediate:On,asap:In};function Fn(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)}Un.inherits(Fn,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:Un.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const jn=Fn.prototype,Dn={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Dn[e]={value:e}})),Object.defineProperties(Fn,Dn),Object.defineProperty(jn,"isAxiosError",{value:!0}),Fn.from=(e,t,n,r,o,i)=>{const a=Object.create(jn);return Un.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Fn.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function Bn(e){return Un.isPlainObject(e)||Un.isArray(e)}function Mn(e){return Un.endsWith(e,"[]")?e.slice(0,-2):e}function zn(e,t,n){return e?e.concat(t).map((function(e,t){return e=Mn(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Hn=Un.toFlatObject(Un,{},null,(function(e){return/^is[A-Z]/.test(e)}));function qn(e,t,n){if(!Un.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Un.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Un.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Un.isSpecCompliantForm(t);if(!Un.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Un.isDate(e))return e.toISOString();if(!s&&Un.isBlob(e))throw new Fn("Blob is not supported. Use a Buffer instead.");return Un.isArrayBuffer(e)||Un.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(Un.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Un.isArray(e)&&function(e){return Un.isArray(e)&&!e.some(Bn)}(e)||(Un.isFileList(e)||Un.endsWith(n,"[]"))&&(s=Un.toArray(e)))return n=Mn(n),s.forEach((function(e,r){!Un.isUndefined(e)&&null!==e&&t.append(!0===a?zn([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!Bn(e)||(t.append(zn(o,n,i),l(e)),!1)}const d=[],u=Object.assign(Hn,{defaultVisitor:c,convertValue:l,isVisitable:Bn});if(!Un.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Un.isUndefined(n)){if(-1!==d.indexOf(n))throw Error("Circular reference detected in "+r.join("."));d.push(n),Un.forEach(n,(function(n,i){!0===(!(Un.isUndefined(n)||null===n)&&o.call(t,n,Un.isString(i)?i.trim():i,r,u))&&e(n,r?r.concat(i):[i])})),d.pop()}}(e),t}function Wn(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Vn(e,t){this._pairs=[],e&&qn(e,this,t)}const $n=Vn.prototype;function Gn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Yn(e,t,n){if(!t)return e;const r=n&&n.encode||Gn,o=n&&n.serialize;let i;if(i=o?o(t,n):Un.isURLSearchParams(t)?t.toString():new Vn(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}$n.append=function(e,t){this._pairs.push([e,t])},$n.toString=function(e){const t=e?function(t){return e.call(this,t,Wn)}:Wn;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class Jn{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){Un.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const Xn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Kn={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Vn,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Zn="undefined"!=typeof window&&"undefined"!=typeof document,Qn=(er="undefined"!=typeof navigator&&navigator.product,Zn&&["ReactNative","NativeScript","NS"].indexOf(er)<0);var er;const tr="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,nr=Zn&&window.location.href||"http://localhost",rr={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Zn,hasStandardBrowserEnv:Qn,hasStandardBrowserWebWorkerEnv:tr,origin:nr},Symbol.toStringTag,{value:"Module"})),...Kn};function or(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&&Un.isArray(r)?r.length:i,s)return Un.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&Un.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&Un.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(Un.isFormData(e)&&Un.isFunction(e.entries)){const n={};return Un.forEachEntry(e,((e,r)=>{t(function(e){return Un.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const ir={transitional:Xn,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Un.isObject(e);o&&Un.isHTMLForm(e)&&(e=new FormData(e));if(Un.isFormData(e))return r?JSON.stringify(or(e)):e;if(Un.isArrayBuffer(e)||Un.isBuffer(e)||Un.isStream(e)||Un.isFile(e)||Un.isBlob(e)||Un.isReadableStream(e))return e;if(Un.isArrayBufferView(e))return e.buffer;if(Un.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return qn(e,new rr.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return rr.isNode&&Un.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=Un.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return qn(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Un.isString(e))try{return(t||JSON.parse)(e),Un.trim(e)}catch(Do){if("SyntaxError"!==Do.name)throw Do}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ir.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Un.isResponse(e)||Un.isReadableStream(e))return e;if(e&&Un.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(Do){if(n){if("SyntaxError"===Do.name)throw Fn.from(Do,Fn.ERR_BAD_RESPONSE,this,null,this.response);throw Do}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:rr.classes.FormData,Blob:rr.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Un.forEach(["delete","get","head","post","put","patch"],(e=>{ir.headers[e]={}}));const ar=Un.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"]),sr=Symbol("internals");function lr(e){return e&&String(e).trim().toLowerCase()}function cr(e){return!1===e||null==e?e:Un.isArray(e)?e.map(cr):String(e)}function dr(e,t,n,r,o){return Un.isFunction(r)?r.call(this,t,n):(o&&(t=n),Un.isString(t)?Un.isString(r)?-1!==t.indexOf(r):Un.isRegExp(r)?r.test(t):void 0:void 0)}class ur{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=lr(t);if(!o)throw new Error("header name must be a non-empty string");const i=Un.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=cr(e))}const i=(e,t)=>Un.forEach(e,((e,n)=>o(e,n,t)));if(Un.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Un.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]&&ar[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(Un.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=lr(e)){const n=Un.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(Un.isFunction(t))return t.call(this,e,n);if(Un.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=lr(e)){const n=Un.findKey(this,e);return!(!n||void 0===this[n]||t&&!dr(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=lr(e)){const o=Un.findKey(n,e);!o||t&&!dr(0,n[o],o,t)||(delete n[o],r=!0)}}return Un.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&&!dr(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Un.forEach(this,((r,o)=>{const i=Un.findKey(n,o);if(i)return t[i]=cr(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]=cr(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Un.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Un.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[sr]=this[sr]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=lr(e);t[r]||(!function(e,t){const n=Un.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 Un.isArray(e)?e.forEach(r):r(e),this}}function pr(e,t){const n=this||ir,r=t||n,o=ur.from(r.headers);let i=r.data;return Un.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function fr(e){return!(!e||!e.__CANCEL__)}function mr(e,t,n){Fn.call(this,null==e?"canceled":e,Fn.ERR_CANCELED,t,n),this.name="CanceledError"}function hr(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Fn("Request failed with status code "+n.status,[Fn.ERR_BAD_REQUEST,Fn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}ur.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Un.reduceDescriptors(ur.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Un.freezeMethods(ur),Un.inherits(mr,Fn,{__CANCEL__:!0});const gr=(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)},yr=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},_r=e=>(...t)=>Un.asap((()=>e(...t))),br=rr.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=Un.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return function(){return!0}}(),wr=rr.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Un.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Un.isString(r)&&a.push("path="+r),Un.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 vr(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const xr=e=>e instanceof ur?{...e}:e;function kr(e,t){t=t||{};const n={};function r(e,t,n){return Un.isPlainObject(e)&&Un.isPlainObject(t)?Un.merge.call({caseless:n},e,t):Un.isPlainObject(t)?Un.merge({},t):Un.isArray(t)?t.slice():t}function o(e,t,n){return Un.isUndefined(t)?Un.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!Un.isUndefined(t))return r(void 0,t)}function a(e,t){return Un.isUndefined(t)?Un.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(xr(e),xr(t),!0)};return Un.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);Un.isUndefined(a)&&i!==s||(n[r]=a)})),n}const Er=e=>{const t=kr({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=ur.from(s),t.url=Yn(vr(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Un.isFormData(r))if(rr.hasStandardBrowserEnv||rr.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(rr.hasStandardBrowserEnv&&(o&&Un.isFunction(o)&&(o=o(t)),o||!1!==o&&br(t.url))){const e=i&&a&&wr.read(a);e&&s.set(i,e)}return t},Sr="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Er(e);let o=r.data;const i=ur.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=ur.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());hr((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 Fn("Request aborted",Fn.ECONNABORTED,e,h)),h=null)},h.onerror=function(){n(new Fn("Network Error",Fn.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||Xn;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Fn(t,o.clarifyTimeoutError?Fn.ETIMEDOUT:Fn.ECONNABORTED,e,h)),h=null},void 0===o&&i.setContentType(null),"setRequestHeader"in h&&Un.forEach(i.toJSON(),(function(e,t){h.setRequestHeader(t,e)})),Un.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),u&&"json"!==u&&(h.responseType=r.responseType),f&&([l,d]=gr(f,!0),h.addEventListener("progress",l)),p&&h.upload&&([s,c]=gr(p),h.upload.addEventListener("progress",s),h.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{h&&(n(!t||t.type?new mr(null,e,h):t),h.abort(),h=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===rr.protocols.indexOf(y)?n(new Fn("Unsupported protocol "+y+":",Fn.ERR_BAD_REQUEST,e)):h.send(o||null)}))},Cr=(e,t)=>{let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Fn?t:new mr(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{o(new Fn(`timeout ${t} of ms exceeded`,Fn.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",o):e.unsubscribe(o))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=a,[s,()=>{i&&clearTimeout(i),i=null}]},Nr=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},Tr=(e,t,n,r,o)=>{const i=async function*(e,t,n){for await(const r of e)yield*Nr(ArrayBuffer.isView(r)?r:await n(String(r)),t)}(e,t,o);let a,s=0,l=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return l(),void e.close();let o=r.byteLength;if(n){let e=s+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw l(t),t}},cancel:e=>(l(e),i.return())},{highWaterMark:2})},Or="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Ar=Or&&"function"==typeof ReadableStream,Rr=Or&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Pr=(e,...t)=>{try{return!!e(...t)}catch(Do){return!1}},Lr=Ar&&Pr((()=>{let e=!1;const t=new Request(rr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Ir=Ar&&Pr((()=>Un.isReadableStream(new Response("").body))),Ur={stream:Ir&&(e=>e.body)};var Fr;Or&&(Fr=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Ur[e]&&(Ur[e]=Un.isFunction(Fr[e])?t=>t[e]():(t,n)=>{throw new Fn(`Response type '${e}' is not supported`,Fn.ERR_NOT_SUPPORT,n)})})));const jr=async(e,t)=>{const n=Un.toFiniteNumber(e.getContentLength());return null==n?(async e=>null==e?0:Un.isBlob(e)?e.size:Un.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:Un.isArrayBufferView(e)||Un.isArrayBuffer(e)?e.byteLength:(Un.isURLSearchParams(e)&&(e+=""),Un.isString(e)?(await Rr(e)).byteLength:void 0))(t):n},Dr={http:null,xhr:Sr,fetch:Or&&(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}=Er(e);c=c?(c+"").toLowerCase():"text";let f,m,[h,g]=o||i||a?Cr([o,i],a):[];const y=()=>{!f&&setTimeout((()=>{h&&h.unsubscribe()})),f=!0};let _;try{if(l&&Lr&&"get"!==n&&"head"!==n&&0!==(_=await jr(d,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(Un.isFormData(r)&&(e=n.headers.get("content-type"))&&d.setContentType(e),n.body){const[e,t]=yr(_,gr(_r(l)));r=Tr(n.body,65536,e,t,Rr)}}Un.isString(u)||(u=u?"include":"omit"),m=new Request(t,{...p,signal:h,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:u});let o=await fetch(m);const i=Ir&&("stream"===c||"response"===c);if(Ir&&(s||i)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=Un.toFiniteNumber(o.headers.get("content-length")),[n,r]=s&&yr(t,gr(_r(s),!0))||[];o=new Response(Tr(o.body,65536,n,(()=>{r&&r(),i&&y()}),Rr),e)}c=c||"text";let a=await Ur[Un.findKey(Ur,c)||"text"](o,e);return!i&&y(),g&&g(),await new Promise(((t,n)=>{hr(t,n,{data:a,headers:ur.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:m})}))}catch(b){if(y(),b&&"TypeError"===b.name&&/fetch/i.test(b.message))throw Object.assign(new Fn("Network Error",Fn.ERR_NETWORK,e,m),{cause:b.cause||b});throw Fn.from(b,b&&b.code,e,m)}})};Un.forEach(Dr,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(Do){}Object.defineProperty(e,"adapterName",{value:t})}}));const Br=e=>`- ${e}`,Mr=e=>Un.isFunction(e)||null===e||!1===e,zr=e=>{e=Un.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,!Mr(n)&&(r=Dr[(t=String(n)).toLowerCase()],void 0===r))throw new Fn(`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 Fn("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Br).join("\n"):" "+Br(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function Hr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new mr(null,e)}function qr(e){Hr(e),e.headers=ur.from(e.headers),e.data=pr.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return zr(e.adapter||ir.adapter)(e).then((function(t){return Hr(e),t.data=pr.call(e,e.transformResponse,t),t.headers=ur.from(t.headers),t}),(function(t){return fr(t)||(Hr(e),t&&t.response&&(t.response.data=pr.call(e,e.transformResponse,t.response),t.response.headers=ur.from(t.response.headers))),Promise.reject(t)}))}const Wr="1.7.4",Vr={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Vr[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const $r={};Vr.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.4] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Fn(r(o," has been removed"+(t?" in "+t:"")),Fn.ERR_DEPRECATED);return t&&!$r[o]&&($r[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};const Gr={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Fn("options must be an object",Fn.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 Fn("option "+i+" must be "+n,Fn.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Fn("Unknown option "+i,Fn.ERR_BAD_OPTION)}},validators:Vr},Yr=Gr.validators;class Jr{constructor(e){this.defaults=e,this.interceptors={request:new Jn,response:new Jn}}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(Do){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=kr(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Gr.assertOptions(n,{silentJSONParsing:Yr.transitional(Yr.boolean),forcedJSONParsing:Yr.transitional(Yr.boolean),clarifyTimeoutError:Yr.transitional(Yr.boolean)},!1),null!=r&&(Un.isFunction(r)?t.paramsSerializer={serialize:r}:Gr.assertOptions(r,{encode:Yr.function,serialize:Yr.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Un.merge(o.common,o[t.method]);o&&Un.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=ur.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let d,u=0;if(!s){const e=[qr.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=qr.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 Yn(vr((e=kr(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}Un.forEach(["delete","get","head","options"],(function(e){Jr.prototype[e]=function(t,n){return this.request(kr(n||{},{method:e,url:t,data:(n||{}).data}))}})),Un.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(kr(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Jr.prototype[e]=t(),Jr.prototype[e+"Form"]=t(!0)}));class Xr{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 mr(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new Xr((function(t){e=t})),cancel:e}}}const Kr={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(Kr).forEach((([e,t])=>{Kr[t]=e}));const Zr=function e(t){const n=new Jr(t),r=$t(Jr.prototype.request,n);return Un.extend(r,Jr.prototype,n,{allOwnKeys:!0}),Un.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(kr(t,n))},r}(ir);Zr.Axios=Jr,Zr.CanceledError=mr,Zr.CancelToken=Xr,Zr.isCancel=fr,Zr.VERSION=Wr,Zr.toFormData=qn,Zr.AxiosError=Fn,Zr.Cancel=Zr.CanceledError,Zr.all=function(e){return Promise.all(e)},Zr.spread=function(e){return function(t){return e.apply(null,t)}},Zr.isAxiosError=function(e){return Un.isObject(e)&&!0===e.isAxiosError},Zr.mergeConfig=kr,Zr.AxiosHeaders=ur,Zr.formToJSON=e=>or(Un.isHTMLForm(e)?new FormData(e):e),Zr.getAdapter=zr,Zr.HttpStatusCode=Kr,Zr.default=Zr;class Qr{constructor(){__privateAdd(this,e)}initClient(t,n){__privateSet(this,e,Zr.create({baseURL:`${this.url(t)}/backend`})),n&&__privateGet(this,e).interceptors.request.use(n)}getClient(){return __privateGet(this,e)}}e=new WeakMap;const eo={backend:new class extends Qr{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 to;class no{constructor(){__privateAdd(this,t),__privateAdd(this,n),__privateAdd(this,r),__privateAdd(this,o,(async e=>(to||(to=await eo.backend.getIdToken()),e.headers.Authorization=`Bearer ${to}`,e)))}initClient(e,i,a){__privateSet(this,n,e),__privateSet(this,r,i),__privateSet(this,t,Zr.create({baseURL:`${this.url(e)}/workplace-backend`,headers:{"X-PROFILE-ID":i}})),__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 to||(to=await eo.backend.getIdToken()),to}getBaseUrl(){return __privateGet(this,n)}getProfileId(){return __privateGet(this,r)}}t=new WeakMap,n=new WeakMap,r=new WeakMap,o=new WeakMap;const ro=e=>{var t,n;throw"Auth_SessionExpired"===(null==(n=null==(t=e.response)?void 0:t.data)?void 0:n.code)&&Vt(),e};let oo=(a=class extends no{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 io={backend:new class extends Qr{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),ro),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 oo};const ao={workplaceBackend:new class extends no{url(e){return`${e}/benefits-plan`}}},so=(e,t,n,r)=>{const o=function(e,t){if("string"!=typeof e)throw new zt("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 zt(`Invalid token specified: missing part #${n+1}`);let o;try{o=Ht(r)}catch(Do){throw new zt(`Invalid token specified: invalid base64 for part #${n+1} (${Do.message})`)}try{return JSON.parse(o)}catch(Do){throw new zt(`Invalid token specified: invalid json for part #${n+1} (${Do.message})`)}}(t).sub,i=e=>(e.params={...e.params,client:"onboarding",source:"BenefitsExisting"===r?"Invite":"Onboarding",channel:"onboarding"},e.headers.setAuthorization(`Bearer ${t}`),e),a=e=>(e.params={...e.params??{},client:"onboarding",source:"BenefitsExisting"===r?"Invite":"Onboarding",channel:"onboarding"},e),s=e;io.backend.initClient(s,i,n),io.workplaceBackend.initClient(s,o,a);const l=e;eo.backend.initClient(l,i);const c=e;ao.workplaceBackend.initClient(c,o,a)};var lo=0;function co(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:--lo,__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 uo={isLoading:!0,offers:[],isAppEnabled:!1,identity:{email:"",phoneNumber:"",verifiedPhoneNumber:""},workplace:{employerName:""},featureFlags:{marketplaceScheme:{scheme:"promotion"},marketplaceSubNavigation:!1},hostInformation:{channel:"",client:"",source:"",experiment:"",treatment:""},updateIdentity:e=>({}),getIdentityRegistrationStatus:()=>"Unregistered",getWorkplaceLinkingStatus:()=>"Unlinked",offersProgress:{update:()=>({}),hasCompletedAnyOffers:()=>!1}},po=G(uo),fo=e=>{const t=e.find((e=>"Perks"===e.name));return t?[...e.filter((e=>e!==t)).slice(0,4),t]:e.slice(0,5)},mo=({children:e,...t})=>{const[n,r]=_e(),o=xe("Unregistered"),i=xe("Unlinked"),[a,s]=_e([]),l=Se((e=>{e?("Unregistered"===o.current&&(o.current="NewlyRegistered"),"Unlinked"===i.current&&(i.current="NewlyLinked")):o.current="RegistrationAbandoned"}),[]),c=Se((()=>o.current),[]),d=Se((()=>i.current),[]),u=Ee((()=>a.some((e=>"Perks"!==e.offerName&&e.isCompleted))),[a]),p=Se(((e,t,n)=>{const r=[...a],o=r.findIndex((t=>t.offerName===e));-1!==o&&r.slice(o,1),r.push({offerName:e,isEnrolled:t,isCompleted:n}),s(r)}),[a]),f=Ee((()=>{return e=(null==n?void 0:n.identity.email)??"",t=u,{joinBenefits:{desktopImageUrl:ne,mobileImageUrl:Mt,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:co(Bt,{}),subTitle:co("span",{children:["You have been allocated an allowance of up to ",co("b",{children:"$1,300"})," as part of your benefits program. Set up your benefits today to be eligible for reimbursement."]})},buttonText:"Join your workplace"},setUpBenefits:{title:"Set up your Benefits Allowance today",description:"You've been allocated up to $1,300 for reimbursement as part of your Flare Benefits Allowance. To be eligible, you'll need to make your selections today.",buttonText:"Set up your benefits",progress:{title:"How it works",steps:[{title:"Join your workplace benefits program",completed:!0},{title:"Complete your benefits setup today",description:"Select the benefits you want to include as part of your allowance.",completed:!1},{title:"Purchase or switch to an eligible product within 30 days",completed:!1},{title:"Qualify for reimbursement within 90 days and we'll send you a Flare gift card",completed:!1}]},termsAndConditions:()=>co("div",{className:"flex flex-col gap-2",children:co("span",{children:["Allowance offer expires today. Exclusions and limitations apply. See full"," ",co("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==n?void 0:n.identity.email,u]),m=Ee((()=>{if(!n)return uo;const e=n.offers.some((e=>"Perks"===e.name));o.current=n.identity.isRegistered?"PreviouslyRegistered":"Unregistered",i.current=n.workplace.isLinkedWithIdentity?"PreviouslyLinked":"Unlinked";const r={email:n.identity.email,phoneNumber:n.identity.phoneNumber??"",verifiedPhoneNumber:n.identity.verifiedPhoneNumber??""};return{isLoading:!1,offers:fo(n.offers),isAppEnabled:e,identity:r,workplace:n.workplace,featureFlags:{marketplaceScheme:"promotion"===n.featureFlags.marketplaceScheme?{scheme:"promotion"}:{scheme:"allowance",content:f},marketplaceSubNavigation:n.featureFlags.marketplaceSubNavigation},hostInformation:{channel:"onboarding",client:"onboarding",source:"BenefitsExisting"===t.workflowsJourneyType?"Invite":"Onboarding",experiment:"onboarding-marketplace-scheme",treatment:n.featureFlags.marketplaceScheme},updateIdentity:l,getIdentityRegistrationStatus:c,getWorkplaceLinkingStatus:d,offersProgress:{hasCompletedAnyOffers:()=>u,update:p}}}),[f,c,d,u,n,l,p]);return we((()=>{(async()=>{const e=await io.backend.init();r(e)})()}),[]),co(po.Provider,{value:m,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)}},yo=e=>co("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:[co("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"}),co("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"})]}),_o='/*! 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%}.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}.min-h-full{min-height:100%}.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}.translate-y-4{--tw-translate-y:1rem}.transform,.translate-y-4{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-auto{cursor:auto}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.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}.overflow-y-auto{overflow-y:auto}.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-gray-500\\/75{background-color:#6b7280bf}.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)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.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-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:640px){.sm\\:my-8{margin-bottom:2rem;margin-top:2rem}.sm\\:ml-4{margin-left:1rem}.sm\\:mt-0{margin-top:0}.sm\\:flex{display:flex}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}.sm\\:translate-y-0{--tw-translate-y:0px}.sm\\:scale-100,.sm\\: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))}.sm\\:scale-100{--tw-scale-x:1;--tw-scale-y:1}.sm\\:scale-95{--tw-scale-x:.95;--tw-scale-y:.95;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))}.sm\\:items-start{align-items:flex-start}.sm\\:items-center{align-items:center}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}}@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 bo=e=>{const[t,n]=_e(!1);return co("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:[co("div",{class:""+(t?"invisible":""),children:e.children}),t&&co("div",{class:"absolute animate-spin",children:co(yo,{theme:"light"})})]})},wo=({title:e,className:t,children:n,...r})=>{var o;const[i,a]=_e(!1),s=xe(null);return co("div",{className:`border border-2 border-gray-300 p-2 rounded-md overflow-hidden w-full ${t??""}`,...r,children:[co("div",{className:"mx-2 flex justify-between cursor-pointer",onClick:Se((()=>{a(!i)}),[i]),children:[co("span",{className:"text-base text-left font-semibold text-primary-base",children:e}),co("span",{className:"text-base text-left font-semibold text-gray-500",children:i?"-":"+"})]}),co("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})]})},vo=({className:e,children:t})=>co("h1",{className:`text-2xl md:text-3xl font-bold ${e??""}`,children:t}),xo=({className:e,children:t})=>co("h3",{class:`text-base md:text-lg text-gray-600 ${e??""}`,children:t}),ko=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"})),Eo=({title:e,steps:t,...n})=>{const r=t.length,o=t.filter((e=>e.completed)).length;return co("div",{...n,children:[e&&co("h1",{className:"text-lg font-semibold mb-4",children:e}),co("ol",{children:t.map(((e,t)=>{const n=o===t;return co("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:co("div",{className:"flex font-medium w-full",children:[co("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?co(ko,{className:"w-4 h-4 text-white"}):t+1}),co("div",{children:[co("h4",{className:"text-sm text-left font-semibold "+(e.completed||n?"text-primary-base":"text-gray-600"),children:e.title}),co("p",{className:"text-sm text-left font-normal",children:e.description})]})]})},t)}))})]})};var So=Object.defineProperty,Co=(e,t,n)=>(((e,t,n)=>{t in e?So(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let No=new class{constructor(){Co(this,"current",this.detect()),Co(this,"handoffState","pending"),Co(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}},To=(e,t)=>{No.isServer?we(e,t):ve(e,t)};function Oo(e){let t=xe(e);return To((()=>{t.current=e}),[e]),t}let Ao=function(e){let t=Oo(e);return jt.useCallback(((...e)=>t.current(...e)),[t])};function Ro(){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=Ro();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 Po(){let[e]=_e(Ro);return we((()=>()=>e.dispose()),[e]),e}function Lo(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in Dt&&Dt.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=_e(No.isHandoffComplete);return t&&!1===No.isHandoffComplete&&n(!1),we((()=>{!0!==t&&n(!0)}),[t]),we((()=>No.handoff()),[]),!e&&t}function Io(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,Io),r}let Uo=Symbol();function Fo(...e){let t=xe(e);we((()=>{t.current=e}),[e]);let n=Ao((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[Uo])))?void 0:n}function jo(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}var Do,Bo,Mo=((Bo=Mo||{})[Bo.None=0]="None",Bo[Bo.RenderStrategy=1]="RenderStrategy",Bo[Bo.Static=2]="Static",Bo),zo=((Do=zo||{})[Do.Unmount=0]="Unmount",Do[Do.Hidden=1]="Hidden",Do);function Ho({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a,mergeRefs:s}){s=null!=s?s:Wo;let l=Vo(t,e);if(i)return qo(l,n,r,a,s);let c=null!=o?o:0;if(2&c){let{static:e=!1,...t}=l;if(e)return qo(t,n,r,a,s)}if(1&c){let{unmount:e=!0,...t}=l;return Io(e?0:1,{0:()=>null,1:()=>qo({...t,hidden:!0,style:{display:"none"}},n,r,a,s)})}return qo(l,n,r,a,s)}function qo(e,t={},n,r,o){let{as:i=n,children:a,refName:s="ref",...l}=Yo(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===E&&Object.keys(Go(l)).length>0){if(!xt(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)=>jo(null==e?void 0:e.className(...t),l.className):jo(null==e?void 0:e.className,l.className),n=t?{className:t}:{};return Et(d,Object.assign({},Vo(d.props,Go(Yo(l,["ref"]))),u,c,{ref:o(d.ref,c.ref)},n))}return v(i,Object.assign({},Yo(l,["ref"]),i!==E&&c,i!==E&&u),d)}function Wo(...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 Vo(...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 $o(e){var t;return Object.assign(He(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Go(e){let t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}function Yo(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}let Jo=G(null);Jo.displayName="OpenClosedContext";var Xo=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Xo||{});function Ko(){return Ce(Jo)}function Zo({value:e,children:t}){return jt.createElement(Jo.Provider,{value:e},t)}function Qo(){let e=xe(!1);return To((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function ei(e,...t){e&&t.length>0&&e.classList.add(...t)}function ti(e,...t){e&&t.length>0&&e.classList.remove(...t)}function ni(e,t,n,r){let o=n?"enter":"leave",i=Ro(),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=Io(o,{enter:()=>t.enter,leave:()=>t.leave}),l=Io(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=Io(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return ti(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),ei(e,...t.base,...s,...c),i.nextFrame((()=>{ti(e,...t.base,...s,...c),ei(e,...t.base,...s,...l),function(e,t){let n=Ro();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,(()=>(ti(e,...t.base,...s),ei(e,...t.base,...t.entered),a())))})),i.dispose}function ri(e=""){return e.split(/\s+/).filter((e=>e.length>1))}let oi=G(null);oi.displayName="TransitionContext";var ii,ai=((ii=ai||{}).Visible="visible",ii.Hidden="hidden",ii);let si=G(null);function li(e){return"children"in e?li(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function ci(e,t){let n=Oo(e),r=xe([]),o=Qo(),i=Po(),a=Ao(((e,t=zo.Hidden)=>{let a=r.current.findIndex((({el:t})=>t===e));-1!==a&&(Io(t,{[zo.Unmount](){r.current.splice(a,1)},[zo.Hidden](){r.current[a].state="hidden"}}),i.microTask((()=>{var e;!li(r)&&o.current&&(null==(e=n.current)||e.call(n))})))})),s=Ao((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,zo.Unmount)})),l=xe([]),c=xe(Promise.resolve()),d=xe({enter:[],leave:[],idle:[]}),u=Ao(((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=Ao(((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 Ee((()=>({children:r,register:s,unregister:a,onStart:u,onStop:p,wait:c,chains:d})),[s,a,r,u,p,d,c])}function di(){}si.displayName="NestingContext";let ui=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function pi(e){var t;let n={};for(let r of ui)n[r]=null!=(t=e[r])?t:di;return n}let fi=Mo.RenderStrategy;let mi=$o((function(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,a=xe(null),s=Fo(a,t);Lo();let l=Ko();if(void 0===n&&null!==l&&(n=(l&Xo.Open)===Xo.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,d]=_e(n?"visible":"hidden"),u=ci((()=>{d("hidden")})),[p,f]=_e(!0),m=xe([n]);To((()=>{!1!==p&&m.current[m.current.length-1]!==n&&(m.current.push(n),f(!1))}),[m,n]);let h=Ee((()=>({show:n,appear:r,initial:p})),[n,r,p]);we((()=>{if(n)d("visible");else if(li(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},y=Ao((()=>{var t;p&&f(!1),null==(t=e.beforeEnter)||t.call(e)})),_=Ao((()=>{var t;p&&f(!1),null==(t=e.beforeLeave)||t.call(e)}));return jt.createElement(si.Provider,{value:u},jt.createElement(oi.Provider,{value:h},Ho({ourProps:{...g,as:E,children:jt.createElement(hi,{ref:s,...g,...i,beforeEnter:y,beforeLeave:_})},theirProps:{},defaultTag:E,features:fi,visible:"visible"===c,name:"Transition"})))})),hi=$o((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=xe(null),y=Fo(g,t),_=null==(n=h.unmount)||n?zo.Unmount:zo.Hidden,{show:b,appear:w,initial:v}=function(){let e=Ce(oi);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]=_e(b?"visible":"hidden"),E=function(){let e=Ce(si);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:S,unregister:C}=E;we((()=>S(g)),[S,g]),we((()=>{if(_===zo.Hidden&&g.current)return b&&"visible"!==x?void k("visible"):Io(x,{hidden:()=>C(g),visible:()=>S(g)})}),[x,g,S,C,b,_]);let N=Oo({base:ri(h.className),enter:ri(l),enterFrom:ri(c),enterTo:ri(d),entered:ri(u),leave:ri(p),leaveFrom:ri(f),leaveTo:ri(m)}),T=function(e){let t=xe(pi(e));return we((()=>{t.current=pi(e)}),[e]),t}({beforeEnter:o,afterEnter:i,beforeLeave:a,afterLeave:s}),O=Lo();we((()=>{if(O&&"visible"===x&&null===g.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[g,x,O]);let A=v&&!w,R=w&&b&&v,P=(()=>!O||A?"idle":b?"enter":"leave")(),L=function(e=0){let[t,n]=_e(e),r=Qo(),o=Se((e=>{r.current&&n((t=>t|e))}),[t,r]),i=Se((e=>Boolean(t&e)),[t]),a=Se((e=>{r.current&&n((t=>t&~e))}),[n,r]),s=Se((e=>{r.current&&n((t=>t^e))}),[n]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:a,toggleFlag:s}}(0),I=Ao((e=>Io(e,{enter:()=>{L.addFlag(Xo.Opening),T.current.beforeEnter()},leave:()=>{L.addFlag(Xo.Closing),T.current.beforeLeave()},idle:()=>{}}))),U=Ao((e=>Io(e,{enter:()=>{L.removeFlag(Xo.Opening),T.current.afterEnter()},leave:()=>{L.removeFlag(Xo.Closing),T.current.afterLeave()},idle:()=>{}}))),F=ci((()=>{k("hidden"),C(g)}),E),j=xe(!1);!function({immediate:e,container:t,direction:n,classes:r,onStart:o,onStop:i}){let a=Qo(),s=Po(),l=Oo(n);To((()=>{e&&(l.current="enter")}),[e]),To((()=>{let e=Ro();s.add(e.dispose);let n=t.current;if(n&&"idle"!==l.current&&a.current)return e.dispose(),o.current(l.current),e.add(ni(n,r.current,"enter"===l.current,(()=>{e.dispose(),i.current(l.current)}))),e.dispose}),[n])}({immediate:R,container:g,classes:N,direction:P,onStart:Oo((e=>{j.current=!0,F.onStart(g,e,I)})),onStop:Oo((e=>{j.current=!1,F.onStop(g,e,U),"leave"===e&&!li(F)&&(k("hidden"),C(g))}))});let D=h,B={ref:y};return R?D={...D,className:jo(h.className,...N.current.enter,...N.current.enterFrom)}:j.current&&(D.className=jo(h.className,null==(r=g.current)?void 0:r.className),""===D.className&&delete D.className),jt.createElement(si.Provider,{value:F},jt.createElement(Zo,{value:Io(x,{visible:Xo.Open,hidden:Xo.Closed})|L.flags},Ho({ourProps:B,theirProps:D,defaultTag:"div",features:fi,visible:"visible"===x,name:"Transition.Child"})))})),gi=$o((function(e,t){let n=null!==Ce(oi),r=null!==Ko();return jt.createElement(jt.Fragment,null,!n&&r?jt.createElement(mi,{ref:t,...e}):jt.createElement(hi,{ref:t,...e}))})),yi=Object.assign(mi,{Child:gi,Root:mi});const _i=({children:e})=>{const t=jt.Children.toArray(e),n=t.find((e=>e.type===bi)),r=t.find((e=>e.type===wi));return co(yi,{appear:!0,show:!0,enter:"transition duration-700 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:co("div",{class:"flex flex-col text-center items-center max-w-[40rem] mx-auto",children:[co(yi,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:n&&co("div",{class:"flex items-center h-full",children:n})}),co(yi,{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&&co("div",{class:"flex items-center h-full",children:r})})]})})},bi=({children:e})=>co(E,{children:e}),wi=({children:e})=>co(E,{children:e});_i.Top=bi,_i.Bottom=wi;const vi=({onContinue:e})=>{const{featureFlags:{marketplaceScheme:t}}=Ce(po),n="allowance"===t.scheme?t.content.setUpBenefits:void 0;return co(E,{children:n&&co(_i,{children:[co(_i.Top,{children:co("div",{className:"flex flex-col gap-4",children:[co(vo,{children:n.title}),co(xo,{children:n.description})]})}),co(_i.Bottom,{children:co("div",{className:"mt-5 flex flex-col items-center gap-5 text-center",children:[n.progress&&co(wo,{className:"lg:w-3/4",title:n.progress.title,children:co(Eo,{steps:n.progress.steps,className:"mt-2 rounded-md px-6 py-4"})}),co(bo,{testId:"allowance_set_up_benefits_button_next_screen",class:"mt-5 w-full md:w-[240px]",onClickPromise:e,children:n.buttonText}),n.termsAndConditions&&co("span",{className:"font-normal text-xs mt-4 lg:w-3/4",children:co(n.termsAndConditions,{})})]})})]})})},xi=({icon:e,children:t,className:n,...r})=>co("div",{...r,className:`${n??""} rounded-md shadow-sm`,children:co("div",{className:"flex items-center gap-4 px-4 py-4",children:[e&&co("span",{className:"w-8 min-w-8 max-w-8",children:e}),t&&co("span",{className:"text-left text-base",children:t})]})}),ki=(e,t)=>{switch(!0){case"started"===e:return io.backend.command({eventType:"Started"},t);case"membership-accepted"===e:return io.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!0,featureName:"",treatmentName:"",template:"Eoi"}},t);case"membership-declined"===e:return io.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!1,featureName:"",treatmentName:"",template:"Eoi"}},t);case"sign-up-viewed"===e:return io.backend.command({eventType:"OfferViewed",offerName:"Membership",data:{featureName:"",treatmentName:""}},t);case"sign-up-completed"===e:return(async()=>{await io.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!0,featureName:"",treatmentName:"",template:"Eoi"}},t),await io.backend.command({eventType:"CustomerRegistrationCompleted",isRegistered:!0},t)})();case"sign-up-declined"===e:return(async()=>{await io.backend.command({eventType:"CustomerRegistrationCompleted",isRegistered:!1},t),await io.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!1,featureName:"",treatmentName:"",template:"Eoi"}},t)})();case"object"==typeof e&&"offer-selected"===e.type:return io.workplaceBackend.track("MarketplaceOffer Selected",{offer:e.offerName},t);case"object"==typeof e&&"offer-viewed"===e.type:return io.backend.command({...e,eventType:"OfferViewed"},t);case"object"==typeof e&&"offer-accepted"===e.type:return io.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:{...e.data,accepted:!0}},t);case"object"==typeof e&&"offer-declined"===e.type:return io.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:{...e.data,accepted:!1}},t);case"object"==typeof e&&"offer-progressed"===e.type:return io.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:e.data},t);case"object"==typeof e&&"summary-viewed"===e.type:return io.backend.command({eventType:"SummaryViewed",summaryVariant:e.data.summaryVariant},t);case"completed"===e:return io.backend.command({eventType:"Completed"},t)}return Promise.resolve()},Ei=()=>({trace:ki}),Si=e=>{const{trace:t}=Ei(),{featureFlags:{marketplaceScheme:n}}=Ce(po),r="allowance"===n.scheme?n.content.joinBenefits:void 0;return co(E,{children:r&&co(_i,{children:[co(_i.Top,{children:[co("img",{class:"max-w-[30rem] w-full hidden md:block",src:r.desktopImageUrl}),co("img",{class:"max-w-[30rem] w-full md:hidden",src:r.mobileImageUrl})]}),co(_i.Bottom,{children:co("div",{children:[co("h3",{class:"mt-8 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:r.title}),co("p",{class:"mt-3 text-lg leading-7 text-gray-600",children:r.description}),co(xi,{className:"bg-teal-50 mt-5",style:{background:"linear-gradient(90deg, rgba(255, 135, 111, 0.10) 0%, rgba(166, 80, 255, 0.10) 100%)"},icon:r.specialBanner.icon,children:co("div",{children:[co("p",{className:"font-semibold text-base text-gray-900",children:r.specialBanner.title}),co("span",{className:"font-normal text-base text-gray-900",children:r.specialBanner.subTitle})]})}),co(bo,{testId:"introduction_button_next_screen",class:"mt-8",onClickPromise:async()=>{await t("started",{experiment:"onboarding-marketplace-scheme",treatment:n.scheme}),e.onContinue()},children:r.buttonText})]})})]})})},Ci=""+("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),Ni=()=>co("div",{className:"mt-4 flex items-center border rounded-md border-gray-300",children:[co("img",{className:"h-40 h-min-40 h-max-40 m-0.5",src:Ci}),co("div",{className:"flex flex-col gap-1",children:[co("h4",{className:"font-bold text-lg text-left",children:"Workplace benefits in your pocket!"}),co("p",{className:"font-normal text-base text-left",children:"Download the Flare app for easy access to your workplace benefits and exclusive discounts."}),co("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 ","->"]})]})]}),Ti=({onContinue:e})=>{const{offersProgress:{hasCompletedAnyOffers:t},isAppEnabled:n,featureFlags:{marketplaceScheme:r}}=Ce(po),{trace:o}=Ei(),i=Ee((()=>{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]);we((()=>{(async()=>{await o({type:"summary-viewed",data:{summaryVariant:i}},{experiment:"onboarding-marketplace-scheme",treatment:r.scheme})})()}),[r,i,o]);const a=Se((async()=>{await o("completed",{experiment:"onboarding-marketplace-scheme",treatment:r.scheme}),await e()}),[r,e,o]),s="allowance"===r.scheme?r.content.summary:void 0;return co(E,{children:s&&co(_i,{children:[co(_i.Top,{children:co("div",{className:"flex flex-col gap-4",children:[co(vo,{children:s.title}),co(xo,{children:s.description})]})}),co(_i.Bottom,{children:co("div",{className:"mt-5 flex flex-col items-center gap-5 text-center",children:[s.progress&&co(wo,{className:"lg:w-3/4",title:s.progress.title,children:co(Eo,{steps:s.progress.steps,className:"mt-2 rounded-md px-6 py-4"})}),co(bo,{testId:"step-benefits-finish",class:"mt-5 w-full md:w-[240px]",onClickPromise:a,children:s.buttonText}),n&&co(Ni,{})]})})]})})};var Oi=(e=>(e[e.PHONE_NUMBER=0]="PHONE_NUMBER",e[e.OTP=1]="OTP",e[e.SUCCESS=2]="SUCCESS",e))(Oi||{});const Ai=({className:e,children:t,...n})=>co("label",{class:`text-base text-gray-600 ${e??""}`,...n,children:t}),Ri=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"})),Pi=({className:e,onClick:t,...n})=>{const[r,o]=_e(!1);return co("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:Se((()=>{if(!r)return o(!0),t().finally((()=>{o(!1)}))}),[r,t]),...n,children:[co("div",{class:"relative "+(r?"invisible":""),children:n.children}),r&&co("div",{class:"absolute animate-spin",children:co(yo,{theme:"primary"})})]})},Li=({className:e,allowedKeyPattern:t,onChange:n,value:r,leadingIconElement:o,trailingIconElement:i,...a})=>{const s=Se((e=>{t.test(e.key)||e.preventDefault()}),[t]);return co(E,{children:co("div",{class:"relative",children:[o,co("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]})})},Ii=e=>e.replace(/ /g,""),Ui=e=>{const t=Ii(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)},Fi=({phoneNumber:e,onSubmit:t,onDecline:n})=>{const[r,o]=_e(""),{setPhoneNumber:i,phoneNumber:a}=(e=>{const{identity:t}=Ce(po),[n,r]=_e((()=>e&&Ui(e)?e:"")),o=Ee((()=>Ui(n)),[n]),i=Ee((()=>Ii(n)),[n]),a=Ee((()=>i.startsWith("04")?`+61${i.replace(/^0+/,"")}`:i.startsWith("614")?`+${i}`:i),[i]),s=Ee((()=>(e=>{let t=0;return"#### ### ### ### ### ### ###".replace(/#/g,(()=>e[t++]??"")).trim()})(i)),[i]),l=Ee((()=>Ui(t.verifiedPhoneNumber)&&a===t.verifiedPhoneNumber),[a,t.verifiedPhoneNumber]);return{setPhoneNumber:r,phoneNumber:{valid:o,original:n,formatted:a,masked:s,isVerified:l}}})(e),[s,l]=_e(a.isVerified),c=Se((()=>{o("")}),[]),d=Se((()=>{const e=a.valid?"":"Please enter a valid Australian mobile number beginning with 04.";o(e),l(a.isVerified)}),[a.isVerified,a.valid]),u=Se((async()=>{a.valid&&await t(a).catch(o)}),[a,t]),p=Se((async()=>{l(!1)}),[]),f=co("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 ",co(Ri,{})]});return co(_i,{children:[co(_i.Top,{children:co("div",{className:"flex flex-col gap-5",children:[co(vo,{children:"Join your workplace benefits program"}),co(xo,{children:[a.isVerified?"Confirm ":"Enter "," your ",co("b",{children:"personal"})," mobile number to finish setting up your Flare Benefits account linked to your workplace"]})]})}),co(_i.Bottom,{children:co("div",{className:"mt-5 md:w-[300px] text-left",children:[co(Ai,{className:"font-medium text-sm text-gray-900 text-left",children:"Australian Mobile Number"}),co(Li,{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:a.original,onChange:i,onfocusin:c,onfocusout:d,trailingIconElement:s&&f,disabled:s}),0!==r.length&&co("div",{className:"h-8 leading-none",children:co("span",{className:"text-xs text-rose-500",children:r})}),s&&co("div",{className:"mt-2 ml-2 mb-2 leading-none",children:co("span",{className:"text-xs",children:["Not your personal number?",co(Pi,{class:"text-blue-500",onClick:p,children:"Change number"})]})}),co("div",{children:co("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"," ",co("a",{href:"https://www.flarehr.com/flare-app-terms-and-conditions/",target:"_blank",rel:"noreferrer",children:" Terms of Use "}),"and",co("a",{href:"https://www.flarehr.com/privacy-policy/",target:"_blank",rel:"noreferrer",children:" Privacy Policy"}),"."," "]})}),co(bo,{testId:"sign_in_mobile_number_button_send_otp",class:"mt-5 md:w-full",onClickPromise:u,children:"Join your workplace"}),co(bo,{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"})]})})]})},ji=""+("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),Di=({onContinue:e})=>{const{featureFlags:{marketplaceScheme:t}}=Ce(po),n=Ee((()=>"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 we((()=>{if("allowance"===t.scheme){const t=setTimeout(e,3e3);return()=>clearTimeout(t)}}),[t,e]),co(_i,{children:[co(_i.Top,{children:co("img",{src:ji,className:"h-16 w-16"})}),co(_i.Bottom,{children:co("div",{className:"mt-5 flex flex-col items-center gap-5 text-center",children:[co(vo,{children:n.title}),co(xo,{children:n.description}),!n.isNextButtonHidden&&co(bo,{testId:"sign_in_success_button_next_screen",class:"mt-5 w-full md:w-[240px]",onClickPromise:async()=>{e()},children:"Set up your benefits"})]})})]})},Bi=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"})),Mi=({children:e})=>co(E,{children:e}),zi=({children:e})=>co(E,{children:e}),Hi=({open:e,children:t})=>{const n=Ee((()=>jt.Children.toArray(t).find((e=>e.type===Mi))),[t]),r=Ee((()=>jt.Children.toArray(t).find((e=>e.type===zi))),[t]),[o,i]=_e(!e);return we((()=>{let t;return e?i(!1):t=setTimeout((()=>{i(!0)}),200),()=>{t&&clearTimeout(t)}}),[e]),co("div",{hidden:o,children:co("div",{className:"z-50 fixed inset-0 w-screen bg-gray-500/75 transition-opacity "+(e?"ease-in duration-300 opacity-100":"ease-in duration-200 opacity-0"),children:co("div",{className:"flex overflow-y-auto min-h-full items-end justify-center p-4 sm:items-center sm:p-0",children:co("div",{className:"relative transform overflow-hidden rounded-lg bg-white shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg "+(e?"ease-out duration-300 opacity-100 translate-y-0 sm:scale-100":"ease-in duration-200 opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"),children:co("div",{className:"bg-white p-4 sm:p-6",children:co("div",{className:"sm:flex sm:items-start",children:co("div",{className:"mt-3 sm:ml-4 sm:mt-0",children:[n,co("div",{className:"mt-4",children:r})]})})})})})})})},qi=({open:e})=>co(Hi,{open:e,children:co(zi,{children:co("div",{className:"flex flex-col gap-5 items-center justify-center text-center",children:[co("span",{class:"animate-spin",children:co(yo,{size:"lg"})}),co(vo,{children:"Creating your account"}),co("div",{children:[co(xo,{children:"This can take up to 30 seconds."}),co(xo,{children:"Please don't navigate away or refresh your browser."})]})]})})}),Wi=({phoneNumber:e,onVerify:t,onResendOtp:n,onGoBack:r})=>{const{otp:o,setOtp:i}=(()=>{const[e,t]=_e("");return{otp:{valid:Ee((()=>6===e.length),[e.length]),code:e},setOtp:t}})(),[a,s]=_e(!1),[l,c]=_e(""),{countdown:d,restart:u}=(e=>{const[t,n]=_e(e),r=xe(),o=Se((()=>{clearInterval(r.current)}),[]);return we((()=>o),[o]),{countdown:t,restart:Se((()=>{let t=e;clearInterval(r.current),r.current=setInterval((()=>{t<0?clearInterval(r.current):n(t--)}),1e3)}),[e])}})(60);we(u,[u]);const p=Se((()=>(s(!0),c(""),t(o.code).catch(c).finally((()=>{s(!1)})))),[t,o.code]),f=Se((()=>(c(""),n().then(u).catch(c))),[n,u]);return co(E,{children:[co(qi,{open:a}),co(_i,{children:[co(_i.Top,{children:co("div",{className:"flex flex-col gap-5",children:[co(vo,{children:"Verify your mobile number"}),co(xo,{children:["An SMS verification code has been sent to the number ",e,"."]})]})}),co(_i.Bottom,{children:co("div",{className:"mt-5 md:w-[300px] text-left",children:[co(Ai,{className:"font-medium text-sm text-gray-900 text-left",children:"Enter your verification code"}),co(Li,{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&&co("span",{className:"text-xs text-rose-500",children:l}),co("p",{class:"mt-2 text-center text-xs text-gray-600 disabled:opacity-75 ",children:["Didn't get the code?",co(Pi,{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&&co(E,{children:["in ",d," secs"]})]}),co(bo,{testId:"sign_in_otp_button_verify_otp",class:"mt-5 md:w-full",disabled:!o.valid,onClickPromise:p,children:"Continue"}),co(bo,{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:co("span",{className:"flex gap-3",children:[co(Bi,{}),"Back"]})})]})})]})]})},Vi=({phoneNumber:e,onSignUp:t,onVerify:n,onResendOtp:r,onSuccess:o,onDecline:i})=>{const{trace:a}=Ei(),[s,l]=_e(e??""),{step:c,goBack:d,goToStep:u}=(()=>{const[e,t]=_e(0),n=Se((()=>{const n=e-1;n>=0&&t(n)}),[e]),r=Se((e=>{e<=2&&t(e)}),[]);return{step:e,goBack:n,goToStep:r}})();we((()=>{(async()=>{await a("sign-up-viewed")})()}),[a]);const p=Se((e=>t(e.formatted).then((async t=>{l(e.masked),t.isVerificationRequired?u(Oi.OTP):(await a("sign-up-completed"),u(Oi.SUCCESS))}))),[u,t,a]),f=Se((()=>a("sign-up-declined").then(i)),[i,a]),m=Se((e=>n(e).then((async()=>{await a("sign-up-completed"),u(Oi.SUCCESS)}))),[u,n,a]);return co(E,{children:[c===Oi.PHONE_NUMBER&&co(Fi,{phoneNumber:s,onSubmit:p,onDecline:f}),c===Oi.OTP&&co(Wi,{phoneNumber:s,onVerify:m,onResendOtp:r,onGoBack:d}),c===Oi.SUCCESS&&co(Di,{onContinue:o})]})};var $i=(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))($i||{});const Gi=e=>{var t;const n=null==(t=null==e?void 0:e.response)?void 0:t.data;throw $i[null==n?void 0:n.code]??"Sorry, we are currently experiencing some issues. Please try again later."},Yi=({onSuccess:e,onDecline:t})=>{const{identity:{phoneNumber:n}}=Ce(po),{signUp:r,verifyOtp:o,resendOtp:i}={signUp:async e=>io.backend.getClient().post("v2.0/auth/signUp",{mobileNumber:e}).then((e=>({isVerificationRequired:e.data.isVerificationRequired??!0}))),verifyOtp:async e=>{await io.backend.getClient().post("auth/verify",{otp:e}).catch(Gi)},resendOtp:async()=>{await io.backend.getClient().post("auth/resend").catch(Gi)}};return co(E,{children:co(Vi,{phoneNumber:n,onSignUp:r,onVerify:o,onResendOtp:i,onSuccess:e,onDecline:t})})},Ji=""+("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),Xi=e=>{const{trace:t}=Ei(),{featureFlags:{marketplaceScheme:n}}=Ce(po);return co(_i,{children:[co(_i.Top,{children:co("img",{class:"max-w-[30rem] w-full",src:Ji})}),co(_i.Bottom,{children:co("div",{children:[co("h3",{class:"mt-8 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:"Finish setting up your workplace benefits"}),co("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."}),co(bo,{testId:"introduction_button_next_screen",class:"mt-8",onClickPromise:async()=>{await t("started",{experiment:"onboarding-marketplace-scheme",treatment:n.scheme}),e.onStepComplete()},children:"Continue"})]})})]})},Ki=e=>{we(e,[])},Zi=({visible:e,children:t})=>{const n=xe(e);return e&&!n.current&&(n.current=!0),n.current?co("div",{hidden:!e,children:t}):null},Qi=({label:e,icon:t})=>co("div",{className:"flex items-center flex-col",children:[t,co("p",{className:"max-h-10 max-w-20 break-words text-ellipsis overflow-hidden line-clamp-2 mt-2",children:e})]}),ea=({children:e})=>co(E,{children:e}),ta=({selectedIndex:e,onChange:t,children:n})=>{const r=Ee((()=>We.toArray(n).filter((e=>e.type===Qi))),[n]),o=Ee((()=>We.toArray(n).filter((e=>e.type===ea))),[n]);return Ki((()=>{o.length>0&&(null==t||t(0))})),co("div",{children:[co("div",{className:"flex items-baseline md:mb-4",children:r.map(((n,r)=>co("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-[''] hover:before:cursor-pointer hover:before:w-16 hover:before:h-16 hover:before:absolute\n `,children:n},n.key)))}),o.map(((t,n)=>co(Zi,{visible:n===e,children:t},t.key)))]})};function na(){return na=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},na.apply(null,arguments)}function ra(e,t){return(ra=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function oa(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=[],y=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,_=Array.isArray;function b(e,t){for(var n in t)e[n]=t[n];return e}function w(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,n){var r,o,i,a={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?s.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return x(e,a,r,o,null)}function x(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++c:o,__i:-1,__u:0};return null==o&&null!=l.vnode&&l.vnode(i),i}function k(){return{current:null}}function S(e){return e.children}function E(e,t){this.props=e,this.context=t}function C(e,t){if(null==t)return e.__?C(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?C(e):null}function 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),B(a,r,o,e.__n,void 0!==a.ownerSVGElement,32&o.__u?[i]:null,t,null==i?C(o):i,!!(32&o.__u),n),r.__v=o.__v,r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=i&&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 O(e){(!e.__d&&(e.__d=!0)&&d.push(e)&&!R.__r++||u!==l.debounceRendering)&&((u=l.debounceRendering)||p)(R)}function R(){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),R.__r=0}function A(e,t,n,r,o,i,a,s,l,c,d){var u,p,f,m,y,b=r&&r.__k||g,w=t.length;for(n.__d=l,function(e,t,n){var r,o,i,a,s,l=t.length,c=n.length,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):_(o)?x(S,{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=C(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=C(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,B(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==y&&null!=m&&(y=m),65536&f.__u||p.__k===f.__k?l=P(f,l,e):"function"==typeof f.type&&void 0!==f.__d?l=f.__d:m&&(l=m.nextSibling),f.__d=void 0,f.__u&=-196609);n.__d=l,n.__e=y}function P(e,t,n){var r,o;if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=P(r[o],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function L(e,t){return t=t||[],null==e||"boolean"==typeof e||(_(e)?e.some((function(e){L(e,t)})):t.push(e)),t}function I(e,t,n,r){var o=e.key,i=e.type,a=n-1,s=n+1,l=t[n];if(null===l||l&&o==l.key&&i===l.type)return n;if(r>(null!=l&&0==(131072&l.__u)?1:0))for(;a>=0||s<t.length;){if(a>=0){if((l=t[a])&&0==(131072&l.__u)&&o==l.key&&i===l.type)return a;a--}if(s<t.length){if((l=t[s])&&0==(131072&l.__u)&&o==l.key&&i===l.type)return s;s++}}return-1}function U(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||y.test(t)?n:n+"px"}function F(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||U(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||U(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,i?D:j,i)):e.removeEventListener(t,i?D: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 D(e){if(this.l)return this.l[e.type+!0](l.event?l.event(e):e)}function B(e,t,n,r,o,i,a,c,d,u){var p,f,m,g,y,v,x,k,N,T,O,R,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,y=f.state,f.__v=t,m)null==U.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==U.getDerivedStateFromProps&&k!==g&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(k,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)})),O=0;O<f._sb.length;O++)f.__h.push(f._sb[O]);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,y,v)}))}if(f.context=T,f.props=k,f.__P=e,f.__e=!1,R=l.__r,P=0,"prototype"in U&&U.prototype.render){for(f.state=f.__s,f.__d=!1,R&&R(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,R&&R(t),p=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++P<25);f.state=f.__s,null!=f.getChildContext&&(r=b(b({},r),f.getChildContext())),m||null==f.getSnapshotBeforeUpdate||(v=f.getSnapshotBeforeUpdate(g,y)),A(e,_(I=null!=p&&p.type===S&&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,y,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?y=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=""),A(e,_(f)?f:[f],t,n,r,o&&"foreignObject"!==x,i,a,i?i[0]:n.__k&&C(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!==y&&y!==e[d]&&F(e,d,y,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=[],B(t,e=(!r&&n||t).__k=v(S,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,O(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}function Y(){return(Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}s=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),O(this))},E.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),O(this))},E.prototype.render=S,d=[],p="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f=function(e,t){return e.__v.__b-t.__v.__b},R.__r=0,m=0;var J=["context","children"];function X(e){return this.getChildContext=function(){return e.context},$(e.children,function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(e,J))}function K(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=v(X,Y({},this._props,{context:e.detail.context}),function e(t,n){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var r=[],o={},i=0,a=t.attributes,s=t.childNodes;for(i=a.length;i--;)"slot"!==a[i].name&&(o[a[i].name]=a[i].value,o[Z(a[i].name)]=a[i].value);for(i=s.length;i--;){var l=e(s[i],null),c=s[i].slot;c?o[c]=v(te,{name:c},l):r[i]=l}var 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 Z(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function Q(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[Z(e)]=n,this._vdom=$(this._vdom,r),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)}}))}const ne=""+("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);var re,oe,ie,ae,se=0,le=[],ce=[],de=l,ue=de.__b,pe=de.__r,fe=de.diffed,me=de.__c,he=de.unmount,ge=de.__;function ye(e,t){de.__h&&de.__h(oe,e,se||t),se=0;var n=oe.__H||(oe.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:ce}),n.__[e]}function _e(e){return se=1,be(Ue,e)}function be(e,t,n){var r=ye(re++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Ue(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=oe,!oe.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))};oe.u=!0;var i=oe.shouldComponentUpdate,a=oe.componentWillUpdate;oe.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)},oe.shouldComponentUpdate=o}return r.__N||r.__}function we(e,t){var n=ye(re++,3);!de.__s&&Ie(n.__H,t)&&(n.__=e,n.i=t,oe.__H.__h.push(n))}function ve(e,t){var n=ye(re++,4);!de.__s&&Ie(n.__H,t)&&(n.__=e,n.i=t,oe.__h.push(n))}function xe(e){return se=5,Se((function(){return{current:e}}),[])}function ke(e,t,n){se=6,ve((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 Se(e,t){var n=ye(re++,7);return Ie(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Ee(e,t){return se=8,Se((function(){return e}),t)}function Ce(e){var t=oe.context[e.__c],n=ye(re++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(oe)),t.props.value):e.__}function Ne(e,t){de.useDebugValue&&de.useDebugValue(t?t(e):e)}function Te(){var e=ye(re++,11);if(!e.__){for(var t=oe.__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 Oe(){for(var e;e=le.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Pe),e.__H.__h.forEach(Le),e.__H.__h=[]}catch(t){e.__H.__h=[],de.__e(t,e.__v)}}de.__b=function(e){oe=null,ue&&ue(e)},de.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ge&&ge(e,t)},de.__r=function(e){pe&&pe(e),re=0;var t=(oe=e.__c).__H;t&&(ie===oe?(t.__h=[],oe.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=ce,e.__N=e.i=void 0}))):(t.__h.forEach(Pe),t.__h.forEach(Le),t.__h=[],re=0)),ie=oe},de.diffed=function(e){fe&&fe(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==le.push(t)&&ae===de.requestAnimationFrame||((ae=de.requestAnimationFrame)||Ae)(Oe)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==ce&&(e.__=e.__V),e.i=void 0,e.__V=ce}))),ie=oe=null},de.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Pe),e.__h=e.__h.filter((function(e){return!e.__||Le(e)}))}catch(ri){t.some((function(e){e.__h&&(e.__h=[])})),t=[],de.__e(ri,e.__v)}})),me&&me(e,t)},de.unmount=function(e){he&&he(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Pe(e)}catch(n){t=n}})),n.__H=void 0,t&&de.__e(t,n.__v))};var Re="function"==typeof requestAnimationFrame;function Ae(e){var t,n=function(){clearTimeout(r),Re&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Re&&(t=requestAnimationFrame(n))}function Pe(e){var t=oe,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),oe=t}function Le(e){var t=oe;e.__c=e.__(),oe=t}function Ie(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Ue(e,t){return"function"==typeof t?t(e):t}function Fe(e,t){for(var n in t)e[n]=t[n];return e}function je(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 De(e,t){this.props=e,this.context=t}function Be(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:je(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}(De.prototype=new E).isPureReactComponent=!0,De.prototype.shouldComponentUpdate=function(e,t){return je(this.props,e)||je(this.state,t)};var Me=l.__b;l.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Me&&Me(e)};var ze="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function He(e){function t(t){var n=Fe({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=ze,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var qe=function(e,t){return null==e?null:L(L(e).map(t))},We={map:qe,forEach:qe,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},Ve=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);Ve(e,t,n,r)};var $e=l.unmount;function Ge(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=Fe({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Ge(e,t,n)}))),e}function Ye(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return Ye(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 Je(){this.__u=0,this.t=null,this.__b=null}function Xe(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ke(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 Ze(){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),$e&&$e(e)},(Je.prototype=new E).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=Xe(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]=Ye(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)},Je.prototype.componentWillUnmount=function(){this.t=[]},Je.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]=Ge(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&v(S,null,e.fallback);return o&&(o.__u&=-33),[v(S,null,t.__a?null:e.children),o]};var Qe=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 et(e){return this.getChildContext=function(){return e.context},e.children}function tt(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(et,{context:t.context},e.__v),t.l)}function nt(e,t){var n=v(tt,{__v:e,i:t});return n.containerInfo=t,n}(Ze.prototype=new E).__a=function(e){var t=this,n=Xe(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Qe(t,e,r)):o()};n?n(i):i()}},Ze.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},Ze.prototype.componentDidUpdate=Ze.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Qe(e,n,t)}))};var rt="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ot=/^(?: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]/,it=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,at=/[A-Z0-9]/g,st="undefined"!=typeof document,lt=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function ct(e,t,n){return null==t.__k&&(t.textContent=""),W(e,t),"function"==typeof n&&n(),e?e.__c:null}function dt(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 ut=l.event;function pt(){}function ft(){return this.cancelBubble}function mt(){return this.defaultPrevented}l.event=function(e){return ut&&(e=ut(e)),e.persist=pt,e.isPropagationStopped=ft,e.isDefaultPrevented=mt,e.nativeEvent=e};var ht,gt={enumerable:!1,configurable:!0,get:function(){return this.class}},yt=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||st&&"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||lt(t.type)?"onfocus"===a?o="onfocusin":"onblur"===a?o="onfocusout":it.test(o)?o=a:-1===n.indexOf("-")&&ot.test(o)?o=o.replace(at,"-$&").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",gt)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=rt,yt&&yt(e)};var _t=l.__r;l.__r=function(e){_t&&_t(e),ht=e.__c};var bt=l.diffed;l.diffed=function(e){bt&&bt(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),ht=null};var wt={ReactCurrentDispatcher:{current:{readContext:function(e){return ht.__n[e.__c].props.value}}}};function vt(e){return v.bind(null,e)}function xt(e){return!!e&&e.$$typeof===rt}function kt(e){return xt(e)&&e.type===S}function St(e){return xt(e)?$.apply(null,arguments):e}function Et(e){return!!e.__k&&(W(null,e),!0)}function Ct(e){return e&&(e.base||1===e.nodeType&&e)||null}var Nt=function(e,t){return e(t)},Tt=function(e,t){return e(t)},Ot=S;function Rt(e){e()}function At(e){return e}function Pt(){return[!1,Rt]}var Lt=ve,It=xt;function Ut(e,t){var n=t(),r=_e({h:{__:n,v:t}}),o=r[0].h,i=r[1];return ve((function(){o.__=n,o.v=t,Ft(o)&&i({h:o})}),[e,n,t]),we((function(){return Ft(o)&&i({h:o}),e((function(){Ft(o)&&i({h:o})}))}),[e]),n}function Ft(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 jt={useState:_e,useId:Te,useReducer:be,useEffect:we,useLayoutEffect:ve,useInsertionEffect:Lt,useTransition:Pt,useDeferredValue:At,useSyncExternalStore:Ut,startTransition:Rt,useRef:xe,useImperativeHandle:ke,useMemo:Se,useCallback:Ee,useContext:Ce,useDebugValue:Ne,version:"17.0.2",Children:We,render:ct,hydrate:dt,unmountComponentAtNode:Et,createPortal:nt,createElement:v,createContext:G,createFactory:vt,cloneElement:St,createRef:k,Fragment:S,isValidElement:xt,isElement:It,isFragment:kt,findDOMNode:Ct,Component:E,PureComponent:De,memo:Be,forwardRef:He,flushSync:Tt,unstable_batchedUpdates:Nt,StrictMode:Ot,Suspense:Je,SuspenseList:Ze,lazy:Ke,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:wt};const Dt=Object.freeze(Object.defineProperty({__proto__:null,Children:We,Component:E,Fragment:S,PureComponent:De,StrictMode:Ot,Suspense:Je,SuspenseList:Ze,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:wt,cloneElement:St,createContext:G,createElement:v,createFactory:vt,createPortal:nt,createRef:k,default:jt,findDOMNode:Ct,flushSync:Tt,forwardRef:He,hydrate:dt,isElement:It,isFragment:kt,isValidElement:xt,lazy:Ke,memo:Be,render:ct,startTransition:Rt,unmountComponentAtNode:Et,unstable_batchedUpdates:Nt,useCallback:Ee,useContext:Ce,useDebugValue:Ne,useDeferredValue:At,useEffect:we,useErrorBoundary:function(e){var t=ye(re++,10),n=_e();return t.__=e,oe.componentDidCatch||(oe.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:Te,useImperativeHandle:ke,useInsertionEffect:Lt,useLayoutEffect:ve,useMemo:Se,useReducer:be,useRef:xe,useState:_e,useSyncExternalStore:Ut,useTransition:Pt,version:"17.0.2"},Symbol.toStringTag,{value:"Module"})),Bt=e=>v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",...e},v("path",{d:"M 25 2 C 12.309295 2 2 12.309295 2 25 C 2 37.690705 12.309295 48 25 48 C 37.690705 48 48 37.690705 48 25 C 48 12.309295 37.690705 2 25 2 z M 25 4 C 36.609824 4 46 13.390176 46 25 C 46 36.609824 36.609824 46 25 46 C 13.390176 46 4 36.609824 4 25 C 4 13.390176 13.390176 4 25 4 z M 25 11 A 3 3 0 0 0 22 14 A 3 3 0 0 0 25 17 A 3 3 0 0 0 28 14 A 3 3 0 0 0 25 11 z M 21 21 L 21 23 L 22 23 L 23 23 L 23 36 L 22 36 L 21 36 L 21 38 L 22 38 L 23 38 L 27 38 L 28 38 L 29 38 L 29 36 L 28 36 L 27 36 L 27 21 L 26 21 L 22 21 L 21 21 z"})),Mt=""+("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 zt extends Error{}function Ht(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)}}zt.prototype.name="InvalidTokenError";const qt=crypto.randomUUID?crypto.randomUUID():crypto.getRandomValues(new Uint32Array(5)).join("-"),Wt=e=>(window.addEventListener(qt,e),()=>window.removeEventListener(qt,e)),Vt=()=>{window.dispatchEvent(new Event(qt))};function $t(e,t){return function(){return e.apply(t,arguments)}}const{toString:Gt}=Object.prototype,{getPrototypeOf:Yt}=Object,Jt=(e=>t=>{const n=Gt.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Xt=e=>(e=e.toLowerCase(),t=>Jt(t)===e),Kt=e=>t=>typeof t===e,{isArray:Zt}=Array,Qt=Kt("undefined");const en=Xt("ArrayBuffer");const tn=Kt("string"),nn=Kt("function"),rn=Kt("number"),on=e=>null!==e&&"object"==typeof e,an=e=>{if("object"!==Jt(e))return!1;const t=Yt(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},sn=Xt("Date"),ln=Xt("File"),cn=Xt("Blob"),dn=Xt("FileList"),un=Xt("URLSearchParams"),[pn,fn,mn,hn]=["ReadableStream","Request","Response","Headers"].map(Xt);function gn(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),Zt(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 yn(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 _n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,bn=e=>!Qt(e)&&e!==_n;const wn=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&Yt(Uint8Array)),vn=Xt("HTMLFormElement"),xn=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),kn=Xt("RegExp"),Sn=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};gn(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)};const En=Xt("AsyncFunction"),Cn=(Nn="function"==typeof setImmediate,Tn=nn(_n.postMessage),Nn?setImmediate:Tn?(On=`axios@${Math.random()}`,Rn=[],_n.addEventListener("message",(({source:e,data:t})=>{e===_n&&t===On&&Rn.length&&Rn.shift()()}),!1),e=>{Rn.push(e),_n.postMessage(On,"*")}):e=>setTimeout(e));var Nn,Tn,On,Rn;const An="undefined"!=typeof queueMicrotask?queueMicrotask.bind(_n):"undefined"!=typeof process&&process.nextTick||Cn,Pn={isArray:Zt,isArrayBuffer:en,isBuffer:function(e){return null!==e&&!Qt(e)&&null!==e.constructor&&!Qt(e.constructor)&&nn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||nn(e.append)&&("formdata"===(t=Jt(e))||"object"===t&&nn(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&en(e.buffer),t},isString:tn,isNumber:rn,isBoolean:e=>!0===e||!1===e,isObject:on,isPlainObject:an,isReadableStream:pn,isRequest:fn,isResponse:mn,isHeaders:hn,isUndefined:Qt,isDate:sn,isFile:ln,isBlob:cn,isRegExp:kn,isFunction:nn,isStream:e=>on(e)&&nn(e.pipe),isURLSearchParams:un,isTypedArray:wn,isFileList:dn,forEach:gn,merge:function e(){const{caseless:t}=bn(this)&&this||{},n={},r=(r,o)=>{const i=t&&yn(n,o)||o;an(n[i])&&an(r)?n[i]=e(n[i],r):an(r)?n[i]=e({},r):Zt(r)?n[i]=r.slice():n[i]=r};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&gn(arguments[o],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(gn(t,((t,r)=>{n&&nn(t)?e[r]=$t(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&&Yt(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Jt,kindOfTest:Xt,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(Zt(e))return e;let t=e.length;if(!rn(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:vn,hasOwnProperty:xn,hasOwnProp:xn,reduceDescriptors:Sn,freezeMethods:e=>{Sn(e,((t,n)=>{if(nn(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];nn(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 Zt(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:yn,global:_n,isContextDefined:bn,isSpecCompliantForm:function(e){return!!(e&&nn(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(on(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=Zt(e)?[]:{};return gn(e,((e,t)=>{const i=n(e,r+1);!Qt(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:En,isThenable:e=>e&&(on(e)||nn(e))&&nn(e.then)&&nn(e.catch),setImmediate:Cn,asap:An};function Ln(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}Pn.inherits(Ln,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Pn.toJSONObject(this.config),code:this.code,status:this.status}}});const In=Ln.prototype,Un={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Un[e]={value:e}})),Object.defineProperties(Ln,Un),Object.defineProperty(In,"isAxiosError",{value:!0}),Ln.from=(e,t,n,r,o,i)=>{const a=Object.create(In);return Pn.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Ln.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function Fn(e){return Pn.isPlainObject(e)||Pn.isArray(e)}function jn(e){return Pn.endsWith(e,"[]")?e.slice(0,-2):e}function Dn(e,t,n){return e?e.concat(t).map((function(e,t){return e=jn(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Bn=Pn.toFlatObject(Pn,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Mn(e,t,n){if(!Pn.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Pn.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Pn.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Pn.isSpecCompliantForm(t);if(!Pn.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Pn.isDate(e))return e.toISOString();if(!s&&Pn.isBlob(e))throw new Ln("Blob is not supported. Use a Buffer instead.");return Pn.isArrayBuffer(e)||Pn.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(Pn.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Pn.isArray(e)&&function(e){return Pn.isArray(e)&&!e.some(Fn)}(e)||(Pn.isFileList(e)||Pn.endsWith(n,"[]"))&&(s=Pn.toArray(e)))return n=jn(n),s.forEach((function(e,r){!Pn.isUndefined(e)&&null!==e&&t.append(!0===a?Dn([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!Fn(e)||(t.append(Dn(o,n,i),l(e)),!1)}const d=[],u=Object.assign(Bn,{defaultVisitor:c,convertValue:l,isVisitable:Fn});if(!Pn.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Pn.isUndefined(n)){if(-1!==d.indexOf(n))throw Error("Circular reference detected in "+r.join("."));d.push(n),Pn.forEach(n,(function(n,i){!0===(!(Pn.isUndefined(n)||null===n)&&o.call(t,n,Pn.isString(i)?i.trim():i,r,u))&&e(n,r?r.concat(i):[i])})),d.pop()}}(e),t}function zn(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Hn(e,t){this._pairs=[],e&&Mn(e,this,t)}const qn=Hn.prototype;function Wn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Vn(e,t,n){if(!t)return e;const r=n&&n.encode||Wn;Pn.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):Pn.isURLSearchParams(t)?t.toString():new Hn(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}qn.append=function(e,t){this._pairs.push([e,t])},qn.toString=function(e){const t=e?function(t){return e.call(this,t,zn)}:zn;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class $n{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Pn.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const Gn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Yn={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Hn,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Jn="undefined"!=typeof window&&"undefined"!=typeof document,Xn="object"==typeof navigator&&navigator||void 0,Kn=Jn&&(!Xn||["ReactNative","NativeScript","NS"].indexOf(Xn.product)<0),Zn="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Qn=Jn&&window.location.href||"http://localhost",er={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Jn,hasStandardBrowserEnv:Kn,hasStandardBrowserWebWorkerEnv:Zn,navigator:Xn,origin:Qn},Symbol.toStringTag,{value:"Module"})),...Yn};function tr(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&Pn.isArray(r)?r.length:i,s)return Pn.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&Pn.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&Pn.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(Pn.isFormData(e)&&Pn.isFunction(e.entries)){const n={};return Pn.forEachEntry(e,((e,r)=>{t(function(e){return Pn.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const nr={transitional:Gn,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Pn.isObject(e);o&&Pn.isHTMLForm(e)&&(e=new FormData(e));if(Pn.isFormData(e))return r?JSON.stringify(tr(e)):e;if(Pn.isArrayBuffer(e)||Pn.isBuffer(e)||Pn.isStream(e)||Pn.isFile(e)||Pn.isBlob(e)||Pn.isReadableStream(e))return e;if(Pn.isArrayBufferView(e))return e.buffer;if(Pn.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Mn(e,new er.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return er.isNode&&Pn.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=Pn.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Mn(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Pn.isString(e))try{return(t||JSON.parse)(e),Pn.trim(e)}catch(Fo){if("SyntaxError"!==Fo.name)throw Fo}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||nr.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Pn.isResponse(e)||Pn.isReadableStream(e))return e;if(e&&Pn.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(Fo){if(n){if("SyntaxError"===Fo.name)throw Ln.from(Fo,Ln.ERR_BAD_RESPONSE,this,null,this.response);throw Fo}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:er.classes.FormData,Blob:er.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Pn.forEach(["delete","get","head","post","put","patch"],(e=>{nr.headers[e]={}}));const rr=Pn.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),or=Symbol("internals");function ir(e){return e&&String(e).trim().toLowerCase()}function ar(e){return!1===e||null==e?e:Pn.isArray(e)?e.map(ar):String(e)}function sr(e,t,n,r,o){return Pn.isFunction(r)?r.call(this,t,n):(o&&(t=n),Pn.isString(t)?Pn.isString(r)?-1!==t.indexOf(r):Pn.isRegExp(r)?r.test(t):void 0:void 0)}class lr{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=ir(t);if(!o)throw new Error("header name must be a non-empty string");const i=Pn.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=ar(e))}const i=(e,t)=>Pn.forEach(e,((e,n)=>o(e,n,t)));if(Pn.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Pn.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&rr[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(Pn.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=ir(e)){const n=Pn.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(Pn.isFunction(t))return t.call(this,e,n);if(Pn.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ir(e)){const n=Pn.findKey(this,e);return!(!n||void 0===this[n]||t&&!sr(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=ir(e)){const o=Pn.findKey(n,e);!o||t&&!sr(0,n[o],o,t)||(delete n[o],r=!0)}}return Pn.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!sr(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Pn.forEach(this,((r,o)=>{const i=Pn.findKey(n,o);if(i)return t[i]=ar(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=ar(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Pn.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Pn.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[or]=this[or]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=ir(e);t[r]||(!function(e,t){const n=Pn.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return Pn.isArray(e)?e.forEach(r):r(e),this}}function cr(e,t){const n=this||nr,r=t||n,o=lr.from(r.headers);let i=r.data;return Pn.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function dr(e){return!(!e||!e.__CANCEL__)}function ur(e,t,n){Ln.call(this,null==e?"canceled":e,Ln.ERR_CANCELED,t,n),this.name="CanceledError"}function pr(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Ln("Request failed with status code "+n.status,[Ln.ERR_BAD_REQUEST,Ln.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}lr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Pn.reduceDescriptors(lr.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Pn.freezeMethods(lr),Pn.inherits(ur,Ln,{__CANCEL__:!0});const fr=(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)},mr=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},hr=e=>(...t)=>Pn.asap((()=>e(...t))),gr=er.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,er.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(er.origin),er.navigator&&/(msie|trident)/i.test(er.navigator.userAgent)):()=>!0,yr=er.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Pn.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Pn.isString(r)&&a.push("path="+r),Pn.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function _r(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 br=e=>e instanceof lr?{...e}:e;function wr(e,t){t=t||{};const n={};function r(e,t,n,r){return Pn.isPlainObject(e)&&Pn.isPlainObject(t)?Pn.merge.call({caseless:r},e,t):Pn.isPlainObject(t)?Pn.merge({},t):Pn.isArray(t)?t.slice():t}function o(e,t,n,o){return Pn.isUndefined(t)?Pn.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!Pn.isUndefined(t))return r(void 0,t)}function a(e,t){return Pn.isUndefined(t)?Pn.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>o(br(e),br(t),0,!0)};return Pn.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);Pn.isUndefined(a)&&i!==s||(n[r]=a)})),n}const vr=e=>{const t=wr({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=lr.from(s),t.url=Vn(_r(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Pn.isFormData(r))if(er.hasStandardBrowserEnv||er.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(er.hasStandardBrowserEnv&&(o&&Pn.isFunction(o)&&(o=o(t)),o||!1!==o&&gr(t.url))){const e=i&&a&&yr.read(a);e&&s.set(i,e)}return t},xr="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=vr(e);let o=r.data;const i=lr.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=lr.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());pr((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 Ln("Request aborted",Ln.ECONNABORTED,e,h)),h=null)},h.onerror=function(){n(new Ln("Network Error",Ln.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||Gn;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Ln(t,o.clarifyTimeoutError?Ln.ETIMEDOUT:Ln.ECONNABORTED,e,h)),h=null},void 0===o&&i.setContentType(null),"setRequestHeader"in h&&Pn.forEach(i.toJSON(),(function(e,t){h.setRequestHeader(t,e)})),Pn.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),u&&"json"!==u&&(h.responseType=r.responseType),f&&([l,d]=fr(f,!0),h.addEventListener("progress",l)),p&&h.upload&&([s,c]=fr(p),h.upload.addEventListener("progress",s),h.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{h&&(n(!t||t.type?new ur(null,e,h):t),h.abort(),h=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===er.protocols.indexOf(y)?n(new Ln("Unsupported protocol "+y+":",Ln.ERR_BAD_REQUEST,e)):h.send(o||null)}))},kr=(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 Ln?t:new ur(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new Ln(`timeout ${t} of ms exceeded`,Ln.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=()=>Pn.asap(a),s}},Sr=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},Er=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()}},Cr=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of Er(e))yield*Sr(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})},Nr="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Tr=Nr&&"function"==typeof ReadableStream,Or=Nr&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Rr=(e,...t)=>{try{return!!e(...t)}catch(Fo){return!1}},Ar=Tr&&Rr((()=>{let e=!1;const t=new Request(er.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Pr=Tr&&Rr((()=>Pn.isReadableStream(new Response("").body))),Lr={stream:Pr&&(e=>e.body)};var Ir;Nr&&(Ir=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Lr[e]&&(Lr[e]=Pn.isFunction(Ir[e])?t=>t[e]():(t,n)=>{throw new Ln(`Response type '${e}' is not supported`,Ln.ERR_NOT_SUPPORT,n)})})));const Ur=async(e,t)=>{const n=Pn.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(Pn.isBlob(e))return e.size;if(Pn.isSpecCompliantForm(e)){const t=new Request(er.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Pn.isArrayBufferView(e)||Pn.isArrayBuffer(e)?e.byteLength:(Pn.isURLSearchParams(e)&&(e+=""),Pn.isString(e)?(await Or(e)).byteLength:void 0)})(t):n},Fr={http:null,xhr:xr,fetch:Nr&&(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}=vr(e);c=c?(c+"").toLowerCase():"text";let f,m=kr([o,i&&i.toAbortSignal()],a);const h=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let g;try{if(l&&Ar&&"get"!==n&&"head"!==n&&0!==(g=await Ur(d,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(Pn.isFormData(r)&&(e=n.headers.get("content-type"))&&d.setContentType(e),n.body){const[e,t]=mr(g,fr(hr(l)));r=Cr(n.body,65536,e,t)}}Pn.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=Pr&&("stream"===c||"response"===c);if(Pr&&(s||a&&h)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=Pn.toFiniteNumber(i.headers.get("content-length")),[n,r]=s&&mr(t,fr(hr(s),!0))||[];i=new Response(Cr(i.body,65536,n,(()=>{r&&r(),h&&h()})),e)}c=c||"text";let y=await Lr[Pn.findKey(Lr,c)||"text"](i,e);return!a&&h&&h(),await new Promise(((t,n)=>{pr(t,n,{data:y,headers:lr.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:f})}))}catch(y){if(h&&h(),y&&"TypeError"===y.name&&/fetch/i.test(y.message))throw Object.assign(new Ln("Network Error",Ln.ERR_NETWORK,e,f),{cause:y.cause||y});throw Ln.from(y,y&&y.code,e,f)}})};Pn.forEach(Fr,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(Fo){}Object.defineProperty(e,"adapterName",{value:t})}}));const jr=e=>`- ${e}`,Dr=e=>Pn.isFunction(e)||null===e||!1===e,Br=e=>{e=Pn.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!Dr(n)&&(r=Fr[(t=String(n)).toLowerCase()],void 0===r))throw new Ln(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new Ln("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(jr).join("\n"):" "+jr(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function Mr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ur(null,e)}function zr(e){Mr(e),e.headers=lr.from(e.headers),e.data=cr.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Br(e.adapter||nr.adapter)(e).then((function(t){return Mr(e),t.data=cr.call(e,e.transformResponse,t),t.headers=lr.from(t.headers),t}),(function(t){return dr(t)||(Mr(e),t&&t.response&&(t.response.data=cr.call(e,e.transformResponse,t.response),t.response.headers=lr.from(t.response.headers))),Promise.reject(t)}))}const Hr="1.8.3",qr={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{qr[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Wr={};qr.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 Ln(r(o," has been removed"+(t?" in "+t:"")),Ln.ERR_DEPRECATED);return t&&!Wr[o]&&(Wr[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)}},qr.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const Vr={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Ln("options must be an object",Ln.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new Ln("option "+i+" must be "+n,Ln.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Ln("Unknown option "+i,Ln.ERR_BAD_OPTION)}},validators:qr},$r=Vr.validators;class Gr{constructor(e){this.defaults=e,this.interceptors={request:new $n,response:new $n}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(Fo){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=wr(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Vr.assertOptions(n,{silentJSONParsing:$r.transitional($r.boolean),forcedJSONParsing:$r.transitional($r.boolean),clarifyTimeoutError:$r.transitional($r.boolean)},!1),null!=r&&(Pn.isFunction(r)?t.paramsSerializer={serialize:r}:Vr.assertOptions(r,{encode:$r.function,serialize:$r.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Vr.assertOptions(t,{baseUrl:$r.spelling("baseURL"),withXsrfToken:$r.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Pn.merge(o.common,o[t.method]);o&&Pn.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=lr.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=[zr.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=zr.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 Vn(_r((e=wr(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}Pn.forEach(["delete","get","head","options"],(function(e){Gr.prototype[e]=function(t,n){return this.request(wr(n||{},{method:e,url:t,data:(n||{}).data}))}})),Pn.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(wr(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Gr.prototype[e]=t(),Gr.prototype[e+"Form"]=t(!0)}));class Yr{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 ur(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 Yr((function(t){e=t})),cancel:e}}}const Jr={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(Jr).forEach((([e,t])=>{Jr[t]=e}));const Xr=function e(t){const n=new Gr(t),r=$t(Gr.prototype.request,n);return Pn.extend(r,Gr.prototype,n,{allOwnKeys:!0}),Pn.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(wr(t,n))},r}(nr);Xr.Axios=Gr,Xr.CanceledError=ur,Xr.CancelToken=Yr,Xr.isCancel=dr,Xr.VERSION=Hr,Xr.toFormData=Mn,Xr.AxiosError=Ln,Xr.Cancel=Xr.CanceledError,Xr.all=function(e){return Promise.all(e)},Xr.spread=function(e){return function(t){return e.apply(null,t)}},Xr.isAxiosError=function(e){return Pn.isObject(e)&&!0===e.isAxiosError},Xr.mergeConfig=wr,Xr.AxiosHeaders=lr,Xr.formToJSON=e=>tr(Pn.isHTMLForm(e)?new FormData(e):e),Xr.getAdapter=Br,Xr.HttpStatusCode=Jr,Xr.default=Xr;class Kr{constructor(){__privateAdd(this,e)}initClient(t,n){__privateSet(this,e,Xr.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 Zr={backend:new class extends Kr{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 Qr;class eo{constructor(){__privateAdd(this,t),__privateAdd(this,n),__privateAdd(this,r),__privateAdd(this,o,(async e=>(Qr||(Qr=await Zr.backend.getIdToken()),e.headers.Authorization=`Bearer ${Qr}`,e)))}initClient(e,i,a){__privateSet(this,n,e),__privateSet(this,r,i),__privateSet(this,t,Xr.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 Qr||(Qr=await Zr.backend.getIdToken()),Qr}getBaseUrl(){return __privateGet(this,n)}getProfileId(){return __privateGet(this,r)}}t=new WeakMap,n=new WeakMap,r=new WeakMap,o=new WeakMap;const to=e=>{var t,n;throw"Auth_SessionExpired"===(null==(n=null==(t=e.response)?void 0:t.data)?void 0:n.code)&&Vt(),e};let no=(a=class extends eo{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 ro={backend:new class extends Kr{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),to),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 no};const oo={workplaceBackend:new class extends eo{url(e){return`${e}/benefits-plan`}}},io=(e,t,n,r)=>{const o=function(e,t){if("string"!=typeof e)throw new zt("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 zt(`Invalid token specified: missing part #${n+1}`);let o;try{o=Ht(r)}catch(Fo){throw new zt(`Invalid token specified: invalid base64 for part #${n+1} (${Fo.message})`)}try{return JSON.parse(o)}catch(Fo){throw new zt(`Invalid token specified: invalid json for part #${n+1} (${Fo.message})`)}}(t).sub,i=e=>(e.params={...e.params,client:"onboarding",source:"BenefitsExisting"===r?"Invite":"Onboarding",channel:"onboarding"},e.headers.setAuthorization(`Bearer ${t}`),e),a=e=>(e.params={...e.params??{},client:"onboarding",source:"BenefitsExisting"===r?"Invite":"Onboarding",channel:"onboarding"},e),s=e;ro.backend.initClient(s,i,n),ro.workplaceBackend.initClient(s,o,a);const l=e;Zr.backend.initClient(l,i);const c=e;oo.workplaceBackend.initClient(c,o,a)};var ao=0;function so(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:--ao,__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 lo={isLoading:!0,offers:[],isAppEnabled:!1,identity:{email:"",phoneNumber:"",verifiedPhoneNumber:""},workplace:{employerName:""},featureFlags:{marketplaceScheme:{scheme:"promotion"},marketplaceSubNavigation:!1},hostInformation:{channel:"",client:"",source:"",experiment:"",treatment:""},updateIdentity:e=>({}),getIdentityRegistrationStatus:()=>"Unregistered",getWorkplaceLinkingStatus:()=>"Unlinked",offersProgress:{update:()=>({}),hasCompletedAnyOffers:()=>!1}},co=G(lo),uo=e=>{const t=e.find((e=>"Perks"===e.name));return t?[...e.filter((e=>e!==t)).slice(0,4),t]:e.slice(0,5)},po=({children:e,...t})=>{const[n,r]=_e(),o=xe("Unregistered"),i=xe("Unlinked"),[a,s]=_e([]),l=Ee((e=>{e?("Unregistered"===o.current&&(o.current="NewlyRegistered"),"Unlinked"===i.current&&(i.current="NewlyLinked")):o.current="RegistrationAbandoned"}),[]),c=Ee((()=>o.current),[]),d=Ee((()=>i.current),[]),u=Se((()=>a.some((e=>"Perks"!==e.offerName&&e.isCompleted))),[a]),p=Ee(((e,t,n)=>{const r=[...a],o=r.findIndex((t=>t.offerName===e));-1!==o&&r.slice(o,1),r.push({offerName:e,isEnrolled:t,isCompleted:n}),s(r)}),[a]),f=Se((()=>{return e=(null==n?void 0:n.identity.email)??"",t=u,{joinBenefits:{desktopImageUrl:ne,mobileImageUrl:Mt,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:so(Bt,{}),subTitle:so("span",{children:["You have been allocated an allowance of up to ",so("b",{children:"$1,300"})," as part of your benefits program. Set up your benefits today to be eligible for reimbursement."]})},buttonText:"Join your workplace"},setUpBenefits:{title:"Set up your Benefits Allowance today",description:"You've been allocated up to $1,300 for reimbursement as part of your Flare Benefits Allowance. To be eligible, you'll need to make your selections today.",buttonText:"Set up your benefits",progress:{title:"How it works",steps:[{title:"Join your workplace benefits program",completed:!0},{title:"Complete your benefits setup today",description:"Select the benefits you want to include as part of your allowance.",completed:!1},{title:"Purchase or switch to an eligible product within 30 days",completed:!1},{title:"Qualify for reimbursement within 90 days and we'll send you a Flare gift card",completed:!1}]},termsAndConditions:()=>so("div",{className:"flex flex-col gap-2",children:so("span",{children:["Allowance offer expires today. Exclusions and limitations apply. See full"," ",so("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==n?void 0:n.identity.email,u]),m=Se((()=>{if(!n)return lo;const e=n.offers.some((e=>"Perks"===e.name));o.current=n.identity.isRegistered?"PreviouslyRegistered":"Unregistered",i.current=n.workplace.isLinkedWithIdentity?"PreviouslyLinked":"Unlinked";const r={email:n.identity.email,phoneNumber:n.identity.phoneNumber??"",verifiedPhoneNumber:n.identity.verifiedPhoneNumber??""};return{isLoading:!1,offers:uo(n.offers),isAppEnabled:e,identity:r,workplace:n.workplace,featureFlags:{marketplaceScheme:"promotion"===n.featureFlags.marketplaceScheme?{scheme:"promotion"}:{scheme:"allowance",content:f},marketplaceSubNavigation:n.featureFlags.marketplaceSubNavigation},hostInformation:{channel:"onboarding",client:"onboarding",source:"BenefitsExisting"===t.workflowsJourneyType?"Invite":"Onboarding",experiment:"onboarding-marketplace-scheme",treatment:n.featureFlags.marketplaceScheme},updateIdentity:l,getIdentityRegistrationStatus:c,getWorkplaceLinkingStatus:d,offersProgress:{hasCompletedAnyOffers:()=>u,update:p}}}),[f,c,d,u,n,l,p]);return we((()=>{(async()=>{const e=await ro.backend.init();r(e)})()}),[]),so(co.Provider,{value:m,children:e})},fo=e=>{const t=null==e?void 0:e.match(/^(https:\/\/)?(test|autodev|sandbox)?-?partner\.flarehr\.com$/);return t&&t[2]?t[2]:"prod"};const mo={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)}},ho=e=>so("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:[so("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"}),so("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"})]}),go='/*! 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%}.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}.min-h-full{min-height:100%}.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}.translate-y-4{--tw-translate-y:1rem}.transform,.translate-y-4{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-auto{cursor:auto}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.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}.overflow-y-auto{overflow-y:auto}.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-gray-500\\/75{background-color:#6b7280bf}.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)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.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-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:640px){.sm\\:my-8{margin-bottom:2rem;margin-top:2rem}.sm\\:ml-4{margin-left:1rem}.sm\\:mt-0{margin-top:0}.sm\\:flex{display:flex}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}.sm\\:translate-y-0{--tw-translate-y:0px}.sm\\:scale-100,.sm\\: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))}.sm\\:scale-100{--tw-scale-x:1;--tw-scale-y:1}.sm\\:scale-95{--tw-scale-x:.95;--tw-scale-y:.95;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))}.sm\\:items-start{align-items:flex-start}.sm\\:items-center{align-items:center}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}}@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 yo=e=>{const[t,n]=_e(!1);return so("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:[so("div",{class:""+(t?"invisible":""),children:e.children}),t&&so("div",{class:"absolute animate-spin",children:so(ho,{theme:"light"})})]})},_o=({title:e,className:t,children:n,...r})=>{var o;const[i,a]=_e(!1),s=xe(null);return so("div",{className:`border border-2 border-gray-300 p-2 rounded-md overflow-hidden w-full ${t??""}`,...r,children:[so("div",{className:"mx-2 flex justify-between cursor-pointer",onClick:Ee((()=>{a(!i)}),[i]),children:[so("span",{className:"text-base text-left font-semibold text-primary-base",children:e}),so("span",{className:"text-base text-left font-semibold text-gray-500",children:i?"-":"+"})]}),so("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})]})},bo=({className:e,children:t})=>so("h1",{className:`text-2xl md:text-3xl font-bold ${e??""}`,children:t}),wo=({className:e,children:t})=>so("h3",{class:`text-base md:text-lg text-gray-600 ${e??""}`,children:t}),vo=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"})),xo=({title:e,steps:t,...n})=>{const r=t.length,o=t.filter((e=>e.completed)).length;return so("div",{...n,children:[e&&so("h1",{className:"text-lg font-semibold mb-4",children:e}),so("ol",{children:t.map(((e,t)=>{const n=o===t;return so("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:so("div",{className:"flex font-medium w-full",children:[so("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?so(vo,{className:"w-4 h-4 text-white"}):t+1}),so("div",{children:[so("h4",{className:"text-sm text-left font-semibold "+(e.completed||n?"text-primary-base":"text-gray-600"),children:e.title}),so("p",{className:"text-sm text-left font-normal",children:e.description})]})]})},t)}))})]})};var ko=Object.defineProperty,So=(e,t,n)=>(((e,t,n)=>{t in e?ko(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let Eo=new class{constructor(){So(this,"current",this.detect()),So(this,"handoffState","pending"),So(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}},Co=(e,t)=>{Eo.isServer?we(e,t):ve(e,t)};function No(e){let t=xe(e);return Co((()=>{t.current=e}),[e]),t}let To=function(e){let t=No(e);return jt.useCallback(((...e)=>t.current(...e)),[t])};function Oo(){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=Oo();return e(t),this.add((()=>t.dispose()))},add:t=>(e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function Ro(){let[e]=_e(Oo);return we((()=>()=>e.dispose()),[e]),e}function Ao(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in Dt&&Dt.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=_e(Eo.isHandoffComplete);return t&&!1===Eo.isHandoffComplete&&n(!1),we((()=>{!0!==t&&n(!0)}),[t]),we((()=>Eo.handoff()),[]),!e&&t}function Po(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,Po),r}let Lo=Symbol();function Io(...e){let t=xe(e);we((()=>{t.current=e}),[e]);let n=To((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[Lo])))?void 0:n}function Uo(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}var Fo,jo,Do=((jo=Do||{})[jo.None=0]="None",jo[jo.RenderStrategy=1]="RenderStrategy",jo[jo.Static=2]="Static",jo),Bo=((Fo=Bo||{})[Fo.Unmount=0]="Unmount",Fo[Fo.Hidden=1]="Hidden",Fo);function Mo({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a,mergeRefs:s}){s=null!=s?s:Ho;let l=qo(t,e);if(i)return zo(l,n,r,a,s);let c=null!=o?o:0;if(2&c){let{static:e=!1,...t}=l;if(e)return zo(t,n,r,a,s)}if(1&c){let{unmount:e=!0,...t}=l;return Po(e?0:1,{0:()=>null,1:()=>zo({...t,hidden:!0,style:{display:"none"}},n,r,a,s)})}return zo(l,n,r,a,s)}function zo(e,t={},n,r,o){let{as:i=n,children:a,refName:s="ref",...l}=$o(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===S&&Object.keys(Vo(l)).length>0){if(!xt(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)=>Uo(null==e?void 0:e.className(...t),l.className):Uo(null==e?void 0:e.className,l.className),n=t?{className:t}:{};return St(d,Object.assign({},qo(d.props,Vo($o(l,["ref"]))),u,c,{ref:o(d.ref,c.ref)},n))}return v(i,Object.assign({},$o(l,["ref"]),i!==S&&c,i!==S&&u),d)}function Ho(...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 qo(...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 Wo(e){var t;return Object.assign(He(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Vo(e){let t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}function $o(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}let Go=G(null);Go.displayName="OpenClosedContext";var Yo=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Yo||{});function Jo(){return Ce(Go)}function Xo({value:e,children:t}){return jt.createElement(Go.Provider,{value:e},t)}function Ko(){let e=xe(!1);return Co((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function Zo(e,...t){e&&t.length>0&&e.classList.add(...t)}function Qo(e,...t){e&&t.length>0&&e.classList.remove(...t)}function ei(e,t,n,r){let o=n?"enter":"leave",i=Oo(),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=Po(o,{enter:()=>t.enter,leave:()=>t.leave}),l=Po(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=Po(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Qo(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Zo(e,...t.base,...s,...c),i.nextFrame((()=>{Qo(e,...t.base,...s,...c),Zo(e,...t.base,...s,...l),function(e,t){let n=Oo();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,(()=>(Qo(e,...t.base,...s),Zo(e,...t.base,...t.entered),a())))})),i.dispose}function ti(e=""){return e.split(/\s+/).filter((e=>e.length>1))}let ni=G(null);ni.displayName="TransitionContext";var ri,oi=((ri=oi||{}).Visible="visible",ri.Hidden="hidden",ri);let ii=G(null);function ai(e){return"children"in e?ai(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function si(e,t){let n=No(e),r=xe([]),o=Ko(),i=Ro(),a=To(((e,t=Bo.Hidden)=>{let a=r.current.findIndex((({el:t})=>t===e));-1!==a&&(Po(t,{[Bo.Unmount](){r.current.splice(a,1)},[Bo.Hidden](){r.current[a].state="hidden"}}),i.microTask((()=>{var e;!ai(r)&&o.current&&(null==(e=n.current)||e.call(n))})))})),s=To((e=>{let t=r.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>a(e,Bo.Unmount)})),l=xe([]),c=xe(Promise.resolve()),d=xe({enter:[],leave:[],idle:[]}),u=To(((e,n,r)=>{l.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter((([t])=>t!==e))),null==t||t.chains.current[n].push([e,new Promise((e=>{l.current.push(e)}))]),null==t||t.chains.current[n].push([e,new Promise((e=>{Promise.all(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=To(((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 Se((()=>({children:r,register:s,unregister:a,onStart:u,onStop:p,wait:c,chains:d})),[s,a,r,u,p,d,c])}function li(){}ii.displayName="NestingContext";let ci=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function di(e){var t;let n={};for(let r of ci)n[r]=null!=(t=e[r])?t:li;return n}let ui=Do.RenderStrategy;let pi=Wo((function(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,a=xe(null),s=Io(a,t);Ao();let l=Jo();if(void 0===n&&null!==l&&(n=(l&Yo.Open)===Yo.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,d]=_e(n?"visible":"hidden"),u=si((()=>{d("hidden")})),[p,f]=_e(!0),m=xe([n]);Co((()=>{!1!==p&&m.current[m.current.length-1]!==n&&(m.current.push(n),f(!1))}),[m,n]);let h=Se((()=>({show:n,appear:r,initial:p})),[n,r,p]);we((()=>{if(n)d("visible");else if(ai(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},y=To((()=>{var t;p&&f(!1),null==(t=e.beforeEnter)||t.call(e)})),_=To((()=>{var t;p&&f(!1),null==(t=e.beforeLeave)||t.call(e)}));return jt.createElement(ii.Provider,{value:u},jt.createElement(ni.Provider,{value:h},Mo({ourProps:{...g,as:S,children:jt.createElement(fi,{ref:s,...g,...i,beforeEnter:y,beforeLeave:_})},theirProps:{},defaultTag:S,features:ui,visible:"visible"===c,name:"Transition"})))})),fi=Wo((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=xe(null),y=Io(g,t),_=null==(n=h.unmount)||n?Bo.Unmount:Bo.Hidden,{show:b,appear:w,initial:v}=function(){let e=Ce(ni);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]=_e(b?"visible":"hidden"),S=function(){let e=Ce(ii);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:E,unregister:C}=S;we((()=>E(g)),[E,g]),we((()=>{if(_===Bo.Hidden&&g.current)return b&&"visible"!==x?void k("visible"):Po(x,{hidden:()=>C(g),visible:()=>E(g)})}),[x,g,E,C,b,_]);let N=No({base:ti(h.className),enter:ti(l),enterFrom:ti(c),enterTo:ti(d),entered:ti(u),leave:ti(p),leaveFrom:ti(f),leaveTo:ti(m)}),T=function(e){let t=xe(di(e));return we((()=>{t.current=di(e)}),[e]),t}({beforeEnter:o,afterEnter:i,beforeLeave:a,afterLeave:s}),O=Ao();we((()=>{if(O&&"visible"===x&&null===g.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[g,x,O]);let R=v&&!w,A=w&&b&&v,P=(()=>!O||R?"idle":b?"enter":"leave")(),L=function(e=0){let[t,n]=_e(e),r=Ko(),o=Ee((e=>{r.current&&n((t=>t|e))}),[t,r]),i=Ee((e=>Boolean(t&e)),[t]),a=Ee((e=>{r.current&&n((t=>t&~e))}),[n,r]),s=Ee((e=>{r.current&&n((t=>t^e))}),[n]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:a,toggleFlag:s}}(0),I=To((e=>Po(e,{enter:()=>{L.addFlag(Yo.Opening),T.current.beforeEnter()},leave:()=>{L.addFlag(Yo.Closing),T.current.beforeLeave()},idle:()=>{}}))),U=To((e=>Po(e,{enter:()=>{L.removeFlag(Yo.Opening),T.current.afterEnter()},leave:()=>{L.removeFlag(Yo.Closing),T.current.afterLeave()},idle:()=>{}}))),F=si((()=>{k("hidden"),C(g)}),S),j=xe(!1);!function({immediate:e,container:t,direction:n,classes:r,onStart:o,onStop:i}){let a=Ko(),s=Ro(),l=No(n);Co((()=>{e&&(l.current="enter")}),[e]),Co((()=>{let e=Oo();s.add(e.dispose);let n=t.current;if(n&&"idle"!==l.current&&a.current)return e.dispose(),o.current(l.current),e.add(ei(n,r.current,"enter"===l.current,(()=>{e.dispose(),i.current(l.current)}))),e.dispose}),[n])}({immediate:A,container:g,classes:N,direction:P,onStart:No((e=>{j.current=!0,F.onStart(g,e,I)})),onStop:No((e=>{j.current=!1,F.onStop(g,e,U),"leave"===e&&!ai(F)&&(k("hidden"),C(g))}))});let D=h,B={ref:y};return A?D={...D,className:Uo(h.className,...N.current.enter,...N.current.enterFrom)}:j.current&&(D.className=Uo(h.className,null==(r=g.current)?void 0:r.className),""===D.className&&delete D.className),jt.createElement(ii.Provider,{value:F},jt.createElement(Xo,{value:Po(x,{visible:Yo.Open,hidden:Yo.Closed})|L.flags},Mo({ourProps:B,theirProps:D,defaultTag:"div",features:ui,visible:"visible"===x,name:"Transition.Child"})))})),mi=Wo((function(e,t){let n=null!==Ce(ni),r=null!==Jo();return jt.createElement(jt.Fragment,null,!n&&r?jt.createElement(pi,{ref:t,...e}):jt.createElement(fi,{ref:t,...e}))})),hi=Object.assign(pi,{Child:mi,Root:pi});const gi=({children:e})=>{const t=jt.Children.toArray(e),n=t.find((e=>e.type===yi)),r=t.find((e=>e.type===_i));return so(hi,{appear:!0,show:!0,enter:"transition duration-700 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:so("div",{class:"flex flex-col text-center items-center max-w-[40rem] mx-auto",children:[so(hi,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:n&&so("div",{class:"flex items-center h-full",children:n})}),so(hi,{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&&so("div",{class:"flex items-center h-full",children:r})})]})})},yi=({children:e})=>so(S,{children:e}),_i=({children:e})=>so(S,{children:e});gi.Top=yi,gi.Bottom=_i;const bi=({onContinue:e})=>{const{featureFlags:{marketplaceScheme:t}}=Ce(co),n="allowance"===t.scheme?t.content.setUpBenefits:void 0;return so(S,{children:n&&so(gi,{children:[so(gi.Top,{children:so("div",{className:"flex flex-col gap-4",children:[so(bo,{children:n.title}),so(wo,{children:n.description})]})}),so(gi.Bottom,{children:so("div",{className:"mt-5 flex flex-col items-center gap-5 text-center",children:[n.progress&&so(_o,{className:"lg:w-3/4",title:n.progress.title,children:so(xo,{steps:n.progress.steps,className:"mt-2 rounded-md px-6 py-4"})}),so(yo,{testId:"allowance_set_up_benefits_button_next_screen",class:"mt-5 w-full md:w-[240px]",onClickPromise:e,children:n.buttonText}),n.termsAndConditions&&so("span",{className:"font-normal text-xs mt-4 lg:w-3/4",children:so(n.termsAndConditions,{})})]})})]})})},wi=({icon:e,children:t,className:n,...r})=>so("div",{...r,className:`${n??""} rounded-md shadow-sm`,children:so("div",{className:"flex items-center gap-4 px-4 py-4",children:[e&&so("span",{className:"w-8 min-w-8 max-w-8",children:e}),t&&so("span",{className:"text-left text-base",children:t})]})}),vi=(e,t)=>{switch(!0){case"started"===e:return ro.backend.command({eventType:"Started"},t);case"membership-accepted"===e:return ro.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!0,featureName:"",treatmentName:"",template:"Eoi"}},t);case"membership-declined"===e:return ro.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!1,featureName:"",treatmentName:"",template:"Eoi"}},t);case"sign-up-viewed"===e:return ro.backend.command({eventType:"OfferViewed",offerName:"Membership",data:{featureName:"",treatmentName:""}},t);case"sign-up-completed"===e:return(async()=>{await ro.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!0,featureName:"",treatmentName:"",template:"Eoi"}},t),await ro.backend.command({eventType:"CustomerRegistrationCompleted",isRegistered:!0},t)})();case"sign-up-declined"===e:return(async()=>{await ro.backend.command({eventType:"CustomerRegistrationCompleted",isRegistered:!1},t),await ro.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!1,featureName:"",treatmentName:"",template:"Eoi"}},t)})();case"object"==typeof e&&"offer-selected"===e.type:return ro.workplaceBackend.track("MarketplaceOffer Selected",{offer:e.offerName},t);case"object"==typeof e&&"offer-viewed"===e.type:return ro.backend.command({...e,eventType:"OfferViewed"},t);case"object"==typeof e&&"offer-accepted"===e.type:return ro.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:{...e.data,accepted:!0}},t);case"object"==typeof e&&"offer-declined"===e.type:return ro.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:{...e.data,accepted:!1}},t);case"object"==typeof e&&"offer-progressed"===e.type:return ro.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:e.data},t);case"object"==typeof e&&"summary-viewed"===e.type:return ro.backend.command({eventType:"SummaryViewed",summaryVariant:e.data.summaryVariant},t);case"completed"===e:return ro.backend.command({eventType:"Completed"},t)}return Promise.resolve()},xi=()=>({trace:vi}),ki=e=>{const{trace:t}=xi(),{featureFlags:{marketplaceScheme:n}}=Ce(co),r="allowance"===n.scheme?n.content.joinBenefits:void 0;return so(S,{children:r&&so(gi,{children:[so(gi.Top,{children:[so("img",{class:"max-w-[30rem] w-full hidden md:block",src:r.desktopImageUrl}),so("img",{class:"max-w-[30rem] w-full md:hidden",src:r.mobileImageUrl})]}),so(gi.Bottom,{children:so("div",{children:[so("h3",{class:"mt-8 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:r.title}),so("p",{class:"mt-3 text-lg leading-7 text-gray-600",children:r.description}),so(wi,{className:"bg-teal-50 mt-5",style:{background:"linear-gradient(90deg, rgba(255, 135, 111, 0.10) 0%, rgba(166, 80, 255, 0.10) 100%)"},icon:r.specialBanner.icon,children:so("div",{children:[so("p",{className:"font-semibold text-base text-gray-900",children:r.specialBanner.title}),so("span",{className:"font-normal text-base text-gray-900",children:r.specialBanner.subTitle})]})}),so(yo,{testId:"introduction_button_next_screen",class:"mt-8",onClickPromise:async()=>{await t("started",{experiment:"onboarding-marketplace-scheme",treatment:n.scheme}),e.onContinue()},children:r.buttonText})]})})]})})},Si=""+("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),Ei=()=>so("div",{className:"mt-4 flex items-center border rounded-md border-gray-300",children:[so("img",{className:"h-40 h-min-40 h-max-40 m-0.5",src:Si}),so("div",{className:"flex flex-col gap-1",children:[so("h4",{className:"font-bold text-lg text-left",children:"Workplace benefits in your pocket!"}),so("p",{className:"font-normal text-base text-left",children:"Download the Flare app for easy access to your workplace benefits and exclusive discounts."}),so("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 ","->"]})]})]}),Ci=({onContinue:e})=>{const{offersProgress:{hasCompletedAnyOffers:t},isAppEnabled:n,featureFlags:{marketplaceScheme:r}}=Ce(co),{trace:o}=xi(),i=Se((()=>{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]);we((()=>{(async()=>{await o({type:"summary-viewed",data:{summaryVariant:i}},{experiment:"onboarding-marketplace-scheme",treatment:r.scheme})})()}),[r,i,o]);const a=Ee((async()=>{await o("completed",{experiment:"onboarding-marketplace-scheme",treatment:r.scheme}),await e()}),[r,e,o]),s="allowance"===r.scheme?r.content.summary:void 0;return so(S,{children:s&&so(gi,{children:[so(gi.Top,{children:so("div",{className:"flex flex-col gap-4",children:[so(bo,{children:s.title}),so(wo,{children:s.description})]})}),so(gi.Bottom,{children:so("div",{className:"mt-5 flex flex-col items-center gap-5 text-center",children:[s.progress&&so(_o,{className:"lg:w-3/4",title:s.progress.title,children:so(xo,{steps:s.progress.steps,className:"mt-2 rounded-md px-6 py-4"})}),so(yo,{testId:"step-benefits-finish",class:"mt-5 w-full md:w-[240px]",onClickPromise:a,children:s.buttonText}),n&&so(Ei,{})]})})]})})};var Ni=(e=>(e[e.PHONE_NUMBER=0]="PHONE_NUMBER",e[e.OTP=1]="OTP",e[e.SUCCESS=2]="SUCCESS",e))(Ni||{});const Ti=({className:e,children:t,...n})=>so("label",{class:`text-base text-gray-600 ${e??""}`,...n,children:t}),Oi=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"})),Ri=({className:e,onClick:t,...n})=>{const[r,o]=_e(!1);return so("button",{className:`inline-flex items-center justify-center px-2 text-primary-base rounded-md bg-transparent hover:bg-sky-50/50 focus:ring-2 focus:ring-primary-focus ${e??""}`,onClick:Ee((()=>{if(!r)return o(!0),t().finally((()=>{o(!1)}))}),[r,t]),...n,children:[so("div",{class:"relative "+(r?"invisible":""),children:n.children}),r&&so("div",{class:"absolute animate-spin",children:so(ho,{theme:"primary"})})]})},Ai=({className:e,allowedKeyPattern:t,onChange:n,value:r,leadingIconElement:o,trailingIconElement:i,...a})=>{const s=Ee((e=>{t.test(e.key)||e.preventDefault()}),[t]);return so(S,{children:so("div",{class:"relative",children:[o,so("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]})})},Pi=e=>e.replace(/ /g,""),Li=e=>{const t=Pi(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)},Ii=({phoneNumber:e,onSubmit:t,onDecline:n})=>{const[r,o]=_e(""),{setPhoneNumber:i,phoneNumber:a}=(e=>{const{identity:t}=Ce(co),[n,r]=_e((()=>e&&Li(e)?e:"")),o=Se((()=>Li(n)),[n]),i=Se((()=>Pi(n)),[n]),a=Se((()=>i.startsWith("04")?`+61${i.replace(/^0+/,"")}`:i.startsWith("614")?`+${i}`:i),[i]),s=Se((()=>(e=>{let t=0;return"#### ### ### ### ### ### ###".replace(/#/g,(()=>e[t++]??"")).trim()})(i)),[i]),l=Se((()=>Li(t.verifiedPhoneNumber)&&a===t.verifiedPhoneNumber),[a,t.verifiedPhoneNumber]);return{setPhoneNumber:r,phoneNumber:{valid:o,original:n,formatted:a,masked:s,isVerified:l}}})(e),[s,l]=_e(a.isVerified),c=Ee((()=>{o("")}),[]),d=Ee((()=>{const e=a.valid?"":"Please enter a valid Australian mobile number beginning with 04.";o(e),l(a.isVerified)}),[a.isVerified,a.valid]),u=Ee((async()=>{a.valid&&await t(a).catch(o)}),[a,t]),p=Ee((async()=>{l(!1)}),[]),f=so("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 ",so(Oi,{})]});return so(gi,{children:[so(gi.Top,{children:so("div",{className:"flex flex-col gap-5",children:[so(bo,{children:"Join your workplace benefits program"}),so(wo,{children:[a.isVerified?"Confirm ":"Enter "," your ",so("b",{children:"personal"})," mobile number to finish setting up your Flare Benefits account linked to your workplace"]})]})}),so(gi.Bottom,{children:so("div",{className:"mt-5 md:w-[300px] text-left",children:[so(Ti,{className:"font-medium text-sm text-gray-900 text-left",children:"Australian Mobile Number"}),so(Ai,{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:a.original,onChange:i,onfocusin:c,onfocusout:d,trailingIconElement:s&&f,disabled:s}),0!==r.length&&so("div",{className:"h-8 leading-none",children:so("span",{className:"text-xs text-rose-500",children:r})}),s&&so("div",{className:"mt-2 ml-2 mb-2 leading-none",children:so("span",{className:"text-xs",children:["Not your personal number?",so(Ri,{class:"text-blue-500",onClick:p,children:"Change number"})]})}),so("div",{children:so("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"," ",so("a",{href:"https://www.flarehr.com/flare-app-terms-and-conditions/",target:"_blank",rel:"noreferrer",children:" Terms of Use "}),"and",so("a",{href:"https://www.flarehr.com/privacy-policy/",target:"_blank",rel:"noreferrer",children:" Privacy Policy"}),"."," "]})}),so(yo,{testId:"sign_in_mobile_number_button_send_otp",class:"mt-5 md:w-full",onClickPromise:u,children:"Join your workplace"}),so(yo,{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"})]})})]})},Ui=""+("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),Fi=({onContinue:e})=>{const{featureFlags:{marketplaceScheme:t}}=Ce(co),n=Se((()=>"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 we((()=>{if("allowance"===t.scheme){const t=setTimeout(e,3e3);return()=>clearTimeout(t)}}),[t,e]),so(gi,{children:[so(gi.Top,{children:so("img",{src:Ui,className:"h-16 w-16"})}),so(gi.Bottom,{children:so("div",{className:"mt-5 flex flex-col items-center gap-5 text-center",children:[so(bo,{children:n.title}),so(wo,{children:n.description}),!n.isNextButtonHidden&&so(yo,{testId:"sign_in_success_button_next_screen",class:"mt-5 w-full md:w-[240px]",onClickPromise:async()=>{e()},children:"Set up your benefits"})]})})]})},ji=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"})),Di=({children:e})=>so(S,{children:e}),Bi=({children:e})=>so(S,{children:e}),Mi=({open:e,children:t})=>{const n=Se((()=>jt.Children.toArray(t).find((e=>e.type===Di))),[t]),r=Se((()=>jt.Children.toArray(t).find((e=>e.type===Bi))),[t]),[o,i]=_e(!e);return we((()=>{let t;return e?i(!1):t=setTimeout((()=>{i(!0)}),200),()=>{t&&clearTimeout(t)}}),[e]),so("div",{hidden:o,children:so("div",{className:"z-50 fixed inset-0 w-screen bg-gray-500/75 transition-opacity "+(e?"ease-in duration-300 opacity-100":"ease-in duration-200 opacity-0"),children:so("div",{className:"flex overflow-y-auto min-h-full items-end justify-center p-4 sm:items-center sm:p-0",children:so("div",{className:"relative transform overflow-hidden rounded-lg bg-white shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg "+(e?"ease-out duration-300 opacity-100 translate-y-0 sm:scale-100":"ease-in duration-200 opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"),children:so("div",{className:"bg-white p-4 sm:p-6",children:so("div",{className:"sm:flex sm:items-start",children:so("div",{className:"mt-3 sm:ml-4 sm:mt-0",children:[n,so("div",{className:"mt-4",children:r})]})})})})})})})},zi=({open:e})=>so(Mi,{open:e,children:so(Bi,{children:so("div",{className:"flex flex-col gap-5 items-center justify-center text-center",children:[so("span",{class:"animate-spin",children:so(ho,{size:"lg"})}),so(bo,{children:"Creating your account"}),so("div",{children:[so(wo,{children:"This can take up to 30 seconds."}),so(wo,{children:"Please don't navigate away or refresh your browser."})]})]})})}),Hi=({phoneNumber:e,onVerify:t,onResendOtp:n,onGoBack:r})=>{const{otp:o,setOtp:i}=(()=>{const[e,t]=_e("");return{otp:{valid:Se((()=>6===e.length),[e.length]),code:e},setOtp:t}})(),[a,s]=_e(!1),[l,c]=_e(""),{countdown:d,restart:u}=(e=>{const[t,n]=_e(e),r=xe(),o=Ee((()=>{clearInterval(r.current)}),[]);return we((()=>o),[o]),{countdown:t,restart:Ee((()=>{let t=e;clearInterval(r.current),r.current=setInterval((()=>{t<0?clearInterval(r.current):n(t--)}),1e3)}),[e])}})(60);we(u,[u]);const p=Ee((()=>(s(!0),c(""),t(o.code).catch(c).finally((()=>{s(!1)})))),[t,o.code]),f=Ee((()=>(c(""),n().then(u).catch(c))),[n,u]);return so(S,{children:[so(zi,{open:a}),so(gi,{children:[so(gi.Top,{children:so("div",{className:"flex flex-col gap-5",children:[so(bo,{children:"Verify your mobile number"}),so(wo,{children:["An SMS verification code has been sent to the number ",e,"."]})]})}),so(gi.Bottom,{children:so("div",{className:"mt-5 md:w-[300px] text-left",children:[so(Ti,{className:"font-medium text-sm text-gray-900 text-left",children:"Enter your verification code"}),so(Ai,{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&&so("span",{className:"text-xs text-rose-500",children:l}),so("p",{class:"mt-2 text-center text-xs text-gray-600 disabled:opacity-75 ",children:["Didn't get the code?",so(Ri,{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&&so(S,{children:["in ",d," secs"]})]}),so(yo,{testId:"sign_in_otp_button_verify_otp",class:"mt-5 md:w-full",disabled:!o.valid,onClickPromise:p,children:"Continue"}),so(yo,{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:so("span",{className:"flex gap-3",children:[so(ji,{}),"Back"]})})]})})]})]})},qi=({phoneNumber:e,onSignUp:t,onVerify:n,onResendOtp:r,onSuccess:o,onDecline:i})=>{const{trace:a}=xi(),[s,l]=_e(e??""),{step:c,goBack:d,goToStep:u}=(()=>{const[e,t]=_e(0),n=Ee((()=>{const n=e-1;n>=0&&t(n)}),[e]),r=Ee((e=>{e<=2&&t(e)}),[]);return{step:e,goBack:n,goToStep:r}})();we((()=>{(async()=>{await a("sign-up-viewed")})()}),[a]);const p=Ee((e=>t(e.formatted).then((async t=>{l(e.masked),t.isVerificationRequired?u(Ni.OTP):(await a("sign-up-completed"),u(Ni.SUCCESS))}))),[u,t,a]),f=Ee((()=>a("sign-up-declined").then(i)),[i,a]),m=Ee((e=>n(e).then((async()=>{await a("sign-up-completed"),u(Ni.SUCCESS)}))),[u,n,a]);return so(S,{children:[c===Ni.PHONE_NUMBER&&so(Ii,{phoneNumber:s,onSubmit:p,onDecline:f}),c===Ni.OTP&&so(Hi,{phoneNumber:s,onVerify:m,onResendOtp:r,onGoBack:d}),c===Ni.SUCCESS&&so(Fi,{onContinue:o})]})};var Wi=(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))(Wi||{});const Vi=e=>{var t;const n=null==(t=null==e?void 0:e.response)?void 0:t.data;throw Wi[null==n?void 0:n.code]??"Sorry, we are currently experiencing some issues. Please try again later."},$i=({onSuccess:e,onDecline:t})=>{const{identity:{phoneNumber:n}}=Ce(co),{signUp:r,verifyOtp:o,resendOtp:i}={signUp:async e=>ro.backend.getClient().post("v2.0/auth/signUp",{mobileNumber:e}).then((e=>({isVerificationRequired:e.data.isVerificationRequired??!0}))),verifyOtp:async e=>{await ro.backend.getClient().post("auth/verify",{otp:e}).catch(Vi)},resendOtp:async()=>{await ro.backend.getClient().post("auth/resend").catch(Vi)}};return so(S,{children:so(qi,{phoneNumber:n,onSignUp:r,onVerify:o,onResendOtp:i,onSuccess:e,onDecline:t})})},Gi=""+("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),Yi=e=>{const{trace:t}=xi(),{featureFlags:{marketplaceScheme:n}}=Ce(co);return so(gi,{children:[so(gi.Top,{children:so("img",{class:"max-w-[30rem] w-full",src:Gi})}),so(gi.Bottom,{children:so("div",{children:[so("h3",{class:"mt-8 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:"Finish setting up your workplace benefits"}),so("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."}),so(yo,{testId:"introduction_button_next_screen",class:"mt-8",onClickPromise:async()=>{await t("started",{experiment:"onboarding-marketplace-scheme",treatment:n.scheme}),e.onStepComplete()},children:"Continue"})]})})]})},Ji=e=>{we(e,[])},Xi=({visible:e,children:t})=>{const n=xe(e);return e&&!n.current&&(n.current=!0),n.current?so("div",{hidden:!e,children:t}):null},Ki=({label:e,icon:t})=>so("div",{className:"flex items-center flex-col",children:[t,so("p",{className:"max-h-10 max-w-20 break-words text-ellipsis overflow-hidden line-clamp-2 mt-2",children:e})]}),Zi=({children:e})=>so(S,{children:e}),Qi=({selectedIndex:e,onChange:t,children:n})=>{const r=Se((()=>We.toArray(n).filter((e=>e.type===Ki))),[n]),o=Se((()=>We.toArray(n).filter((e=>e.type===Zi))),[n]);return Ji((()=>{o.length>0&&(null==t||t(0))})),so("div",{children:[so("div",{className:"flex items-baseline md:mb-4",children:r.map(((n,r)=>so("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-[''] hover:before:cursor-pointer hover:before:w-16 hover:before:h-16 hover:before:absolute\n `,children:n},n.key)))}),o.map(((t,n)=>so(Xi,{visible:n===e,children:t},t.key)))]})};function ea(){return ea=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},ea.apply(null,arguments)}function ta(e,t){return(ta=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function na(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 ia=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,aa=/\\([\u000b\u0020-\u00ff])/g,sa=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,la=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(!sa.test(r))throw new TypeError("invalid media type");var o=new ca(r.toLowerCase());if(-1!==n){var i,a,s;for(ia.lastIndex=n;a=ia.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(aa,"$1")),o.parameters[i]=s}if(n!==t.length)throw new TypeError("invalid parameter format")}return o};function ca(e){this.parameters=Object.create(null),this.type=e}var da=new Map,ua=function(e){return e.cloneNode(!0)},pa=function(){return"file:"===window.location.protocol},fa=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=la(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(pa()?"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||pa()&&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()},ma={},ha=function(e,t){ma[e]=ma[e]||[],ma[e].push(t)},ga=function(e,t,n){if(da.has(e)){var r=da.get(e);if(void 0===r)return void ha(e,n);if(r instanceof SVGSVGElement)return void n(null,ua(r))}da.set(e,void 0),ha(e,n),fa(e,t,(function(t,n){var r;t?da.set(e,t):(null===(r=n.responseXML)||void 0===r?void 0:r.documentElement)instanceof SVGSVGElement&&da.set(e,n.responseXML.documentElement),function(e){for(var t=function(t,n){setTimeout((function(){if(Array.isArray(ma[e])){var n=da.get(e),r=ma[e][t];n instanceof SVGSVGElement&&r(null,ua(n)),n instanceof Error&&r(n),t===ma[e].length-1&&delete ma[e]}}),0)},n=0,r=ma[e].length;n<r;n++)t(n)}(e)}))},ya=function(e,t,n){fa(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)}))},_a=0,ba=[],wa={},va="http://www.w3.org/1999/xlink",xa=function(e,t,n,r,o,i,a){var s=e.getAttribute("data-src")||e.getAttribute("src");if(s){if(-1!==ba.indexOf(e))return ba.splice(ba.indexOf(e),1),void(e=null);ba.push(e),e.setAttribute("src",""),(r?ga:ya)(s,o,(function(r,o){if(!o)return ba.splice(ba.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(oa(oa(oa([],(o.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(e.getAttribute("class")||"").split(" "),!0))).join(" ").trim();o.setAttribute("class",p);var f=e.getAttribute("style");f&&o.setAttribute("style",f),o.setAttribute("data-src",s);var m=[].filter.call(e.attributes,(function(e){return/^data-\w[\w-]*$/.test(e.name)}));if(Array.prototype.forEach.call(m,(function(e){e.name&&e.value&&o.setAttribute(e.name,e.value)})),n){var h,g,y,_,b,w={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],path:[],pattern:["fill","stroke"],radialGradient:["fill","stroke"]};Object.keys(w).forEach((function(e){h=e,y=w[e];for(var t=function(e,t){var n;_=g[e].id,b=_+"-"+ ++_a,Array.prototype.forEach.call(y,(function(e){for(var t=0,r=(n=o.querySelectorAll("["+e+'*="'+_+'"]')).length;t<r;t++){var i=n[t].getAttribute(e);i&&!i.match(new RegExp('url\\("?#'+_+'"?\\)'))||n[t].setAttribute(e,"url(#"+b+")")}}));for(var r=o.querySelectorAll("[*|href]"),i=[],a=0,s=r.length;a<s;a++){var l=r[a].getAttributeNS(va,"href");l&&l.toString()==="#"+g[e].id&&i.push(r[a])}for(var c=0,d=i.length;c<d;c++)i[c].setAttributeNS(va,"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"),E=[],S=0,C=k.length;S<C;S++)(x=k[S].getAttribute("type"))&&"application/ecmascript"!==x&&"application/javascript"!==x&&"text/javascript"!==x||((v=k[S].innerText||k[S].textContent)&&E.push(v),o.removeChild(k[S]));if(E.length>0&&("always"===t||"once"===t&&!wa[s])){for(var N=0,T=E.length;N<T;N++)new Function(E[N])(window);wa[s]=!0}var O=o.querySelectorAll("style");if(Array.prototype.forEach.call(O,(function(e){e.textContent+=""})),o.setAttribute("xmlns","http://www.w3.org/2000/svg"),o.setAttribute("xmlns:xlink",va),i(o),!e.parentNode)return ba.splice(ba.indexOf(e),1),e=null,void a(new Error("Parent node is null"));e.parentNode.replaceChild(o,e),ba.splice(ba.indexOf(e),1),e=null,a(null,o)}))}else a(new Error("Invalid data-src or src attribute"))},ka={exports:{}};function Ea(){}function Sa(){}Sa.resetWarningCache=Ea;ka.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:Sa,resetWarningCache:Ea};return n.PropTypes=n,n}();var Ca=ka.exports,Na=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],Ta="http://www.w3.org/2000/svg",Oa="http://www.w3.org/1999/xlink",Aa=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,ra(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(Ta,h)).setAttribute("xmlns",Ta),n.setAttribute("xmlns:xlink",Oa),r=document.createElementNS(Ta,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 y=0,_=0,b=e.length;_<b;_++)xa(e[_],p,g,d,m,l,(function(t,n){a(t,n),e&&"length"in e&&e.length===++y&&o(y)}));else e?xa(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})(na({},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,Na);return v(r,na({},o,{ref:this.refCallback},"svg"===r?{xmlns:Ta,xmlnsXlink:Oa}:{}),this.state.isLoading&&n&&v(n,null),this.state.hasError&&t&&v(t,null))},t}(S);Aa.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"},Aa.propTypes={afterInjection:Ca.func,beforeInjection:Ca.func,desc:Ca.string,evalScripts:Ca.oneOf(["always","once","never"]),fallback:Ca.oneOfType([Ca.func,Ca.object,Ca.string]),httpRequestWithCredentials:Ca.bool,loading:Ca.oneOfType([Ca.func,Ca.object,Ca.string]),onError:Ca.func,renumerateIRIElements:Ca.bool,src:Ca.string.isRequired,title:Ca.string,useRequestCache:Ca.bool,wrapper:Ca.oneOf(["div","span","svg"])};const Ra=()=>co("div",{class:"flex justify-center",children:co("span",{class:"animate-spin",children:co(yo,{size:"lg"})})}),Pa=(La=e=>{var t,n,r;const{featureFlags:{marketplaceScheme:o},hostInformation:i}=Ce(po),{trace:a}=Ei(),s=xe(null);return Ki((()=>{a({type:"offer-viewed",offerName:e.marketPlaceOffer.name,data:e.marketPlaceOffer.metadata},{experiment:e.marketPlaceOffer.metadata.featureName,treatment:e.marketPlaceOffer.metadata.treatmentName}),s.current&&(s.current.terms=e.marketPlaceOffer.content.terms,s.current.details=e.marketPlaceOffer.content.details,s.current["on-accept"]=async()=>{await a({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})},s.current["on-decline"]=async()=>{await a({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)},s.current["on-complete"]=()=>e.onStepComplete(!0,!0),s.current["on-skip"]=e.marketPlaceOffer.content.skipButtonHidden?void 0:()=>e.onStepComplete(!0,!1))})),co("benefits-plan-assessment",{"base-url":ao.workplaceBackend.getBaseUrl(),"profile-id":ao.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",ref:s})},e=>{const t=xe(null),[n,r]=_e(),[o,i]=_e(!1);return we((()=>{(async()=>{const e=await ao.workplaceBackend.getIdToken();r(e)})(),(()=>{if(t.current&&!t.current.querySelector("script[data-injected]")){const e=document.createElement("script"),n=ho(ao.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)})()}),[]),co("div",{ref:t,className:n,children:n&&o?co(La,{...e,accessToken:n}):co(Ra,{})})});var La;const Ia=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:Ua,setPrototypeOf:Fa,isFrozen:ja,getPrototypeOf:Da,getOwnPropertyDescriptor:Ba}=Object;let{freeze:Ma,seal:za,create:Ha}=Object,{apply:qa,construct:Wa}="undefined"!=typeof Reflect&&Reflect;Ma||(Ma=function(e){return e}),za||(za=function(e){return e}),qa||(qa=function(e,t,n){return e.apply(t,n)}),Wa||(Wa=function(e,t){return new e(...t)});const Va=os(Array.prototype.forEach),$a=os(Array.prototype.pop),Ga=os(Array.prototype.push),Ya=os(String.prototype.toLowerCase),Ja=os(String.prototype.toString),Xa=os(String.prototype.match),Ka=os(String.prototype.replace),Za=os(String.prototype.indexOf),Qa=os(String.prototype.trim),es=os(Object.prototype.hasOwnProperty),ts=os(RegExp.prototype.test),ns=(rs=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Wa(rs,t)});var rs;function os(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 qa(e,t,r)}}function is(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ya;Fa&&Fa(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(ja(t)||(t[r]=e),o=e)}e[o]=!0}return e}function as(e){for(let t=0;t<e.length;t++){es(e,t)||(e[t]=null)}return e}function ss(e){const t=Ha(null);for(const[n,r]of Ua(e)){es(e,n)&&(Array.isArray(r)?t[n]=as(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=ss(r):t[n]=r)}return t}function ls(e,t){for(;null!==e;){const n=Ba(e,t);if(n){if(n.get)return os(n.get);if("function"==typeof n.value)return os(n.value)}e=Da(e)}return function(){return null}}const cs=Ma(["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"]),ds=Ma(["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"]),us=Ma(["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"]),ps=Ma(["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"]),fs=Ma(["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"]),ms=Ma(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),hs=Ma(["#text"]),gs=Ma(["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=Ma(["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"]),_s=Ma(["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"]),bs=Ma(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ws=za(/\{\{[\w\W]*|[\w\W]*\}\}/gm),vs=za(/<%[\w\W]*|[\w\W]*%>/gm),xs=za(/\${[\w\W]*}/gm),ks=za(/^data-[\-\w.\u00B7-\uFFFF]/),Es=za(/^aria-[\-\w]+$/),Ss=za(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Cs=za(/^(?:\w+script|data):/i),Ns=za(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ts=za(/^html$/i),Os=za(/^[a-z][.\w]*(-[.\w]+)+$/i);var As=Object.freeze({__proto__:null,MUSTACHE_EXPR:ws,ERB_EXPR:vs,TMPLIT_EXPR:xs,DATA_ATTR:ks,ARIA_ATTR:Es,IS_ALLOWED_URI:Ss,IS_SCRIPT_OR_DATA:Cs,ATTR_WHITESPACE:Ns,DOCTYPE_NAME:Ts,CUSTOM_ELEMENT:Os});const Rs=1,Ps=3,Ls=7,Is=8,Us=9;var Fs=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!==Us)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=ls(h,"cloneNode"),y=ls(h,"remove"),_=ls(h,"nextSibling"),b=ls(h,"childNodes"),w=ls(h,"parentNode");if("function"==typeof s){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let v,x="";const{implementation:k,createNodeIterator:E,createDocumentFragment:S,getElementsByTagName:C}=r,{importNode:N}=o;let T={};n.isSupported="function"==typeof Ua&&"function"==typeof w&&k&&void 0!==k.createHTMLDocument;const{MUSTACHE_EXPR:O,ERB_EXPR:A,TMPLIT_EXPR:R,DATA_ATTR:P,ARIA_ATTR:L,IS_SCRIPT_OR_DATA:I,ATTR_WHITESPACE:U,CUSTOM_ELEMENT:F}=As;let{IS_ALLOWED_URI:j}=As,D=null;const B=is({},[...cs,...ds,...us,...fs,...hs]);let M=null;const z=is({},[...gs,...ys,..._s,...bs]);let H=Object.seal(Ha(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,J=!1,X=!0,K=!1,Z=!1,Q=!1,ee=!1,te=!1,ne=!1,re=!0,oe=!1,ie=!0,ae=!1,se={},le=null;const ce=is({},["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=is({},["audio","video","img","source","image","track"]);let pe=null;const fe=is({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),me="http://www.w3.org/1998/Math/MathML",he="http://www.w3.org/2000/svg",ge="http://www.w3.org/1999/xhtml";let ye=ge,_e=!1,be=null;const we=is({},[me,he,ge],Ja);let ve=null;const xe=["application/xhtml+xml","text/html"];let ke=null,Ee=null;const Se=r.createElement("form"),Ce=function(e){return e instanceof RegExp||e instanceof Function},Ne=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ee||Ee!==e){if(e&&"object"==typeof e||(e={}),e=ss(e),ve=-1===xe.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ke="application/xhtml+xml"===ve?Ja:Ya,D=es(e,"ALLOWED_TAGS")?is({},e.ALLOWED_TAGS,ke):B,M=es(e,"ALLOWED_ATTR")?is({},e.ALLOWED_ATTR,ke):z,be=es(e,"ALLOWED_NAMESPACES")?is({},e.ALLOWED_NAMESPACES,Ja):we,pe=es(e,"ADD_URI_SAFE_ATTR")?is(ss(fe),e.ADD_URI_SAFE_ATTR,ke):fe,de=es(e,"ADD_DATA_URI_TAGS")?is(ss(ue),e.ADD_DATA_URI_TAGS,ke):ue,le=es(e,"FORBID_CONTENTS")?is({},e.FORBID_CONTENTS,ke):ce,q=es(e,"FORBID_TAGS")?is({},e.FORBID_TAGS,ke):{},W=es(e,"FORBID_ATTR")?is({},e.FORBID_ATTR,ke):{},se=!!es(e,"USE_PROFILES")&&e.USE_PROFILES,V=!1!==e.ALLOW_ARIA_ATTR,$=!1!==e.ALLOW_DATA_ATTR,G=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,J=e.SAFE_FOR_TEMPLATES||!1,X=!1!==e.SAFE_FOR_XML,K=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,ye=e.NAMESPACE||ge,H=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Ce(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Ce(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(H.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),J&&($=!1),te&&(ee=!0),se&&(D=is({},hs),M=[],!0===se.html&&(is(D,cs),is(M,gs)),!0===se.svg&&(is(D,ds),is(M,ys),is(M,bs)),!0===se.svgFilters&&(is(D,us),is(M,ys),is(M,bs)),!0===se.mathMl&&(is(D,fs),is(M,_s),is(M,bs))),e.ADD_TAGS&&(D===B&&(D=ss(D)),is(D,e.ADD_TAGS,ke)),e.ADD_ATTR&&(M===z&&(M=ss(M)),is(M,e.ADD_ATTR,ke)),e.ADD_URI_SAFE_ATTR&&is(pe,e.ADD_URI_SAFE_ATTR,ke),e.FORBID_CONTENTS&&(le===ce&&(le=ss(le)),is(le,e.FORBID_CONTENTS,ke)),ie&&(D["#text"]=!0),K&&is(D,["html","head","body"]),D.table&&(is(D,["tbody"]),delete q.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw ns('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw ns('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(""));Ma&&Ma(e),Ee=e}},Te=is({},["mi","mo","mn","ms","mtext"]),Oe=is({},["foreignobject","annotation-xml"]),Ae=is({},["title","style","font","a","script"]),Re=is({},[...ds,...us,...ps]),Pe=is({},[...fs,...ms]),Le=function(e){Ga(n.removed,{element:e});try{w(e).removeChild(e)}catch(t){y(e)}},Ie=function(e,t){try{Ga(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(r){Ga(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&&ye===ge&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=v?v.createHTML(e):e;if(ye===ge)try{t=(new f).parseFromString(o,ve)}catch(a){}if(!t||!t.documentElement){t=k.createDocument(ye,"template",null);try{t.documentElement.innerHTML=_e?x:o}catch(a){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),ye===ge?C.call(t,K?"html":"body")[0]:K?t.documentElement:i},Fe=function(e){return E.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)},De=function(e){return"function"==typeof l&&e instanceof l},Be=function(e,t,r){T[e]&&Va(T[e],(e=>{e.call(n,t,r,Ee)}))},Me=function(e){let t=null;if(Be("beforeSanitizeElements",e,null),je(e))return Le(e),!0;const r=ke(e.nodeName);if(Be("uponSanitizeElement",e,{tagName:r,allowedTags:D}),e.hasChildNodes()&&!De(e.firstElementChild)&&ts(/<[/\w]/g,e.innerHTML)&&ts(/<[/\w]/g,e.textContent))return Le(e),!0;if(e.nodeType===Ls)return Le(e),!0;if(X&&e.nodeType===Is&&ts(/<[/\w]/g,e.data))return Le(e),!0;if(!D[r]||q[r]){if(!q[r]&&He(r)){if(H.tagNameCheck instanceof RegExp&&ts(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,_(e))}}}return Le(e),!0}return e instanceof c&&!function(e){let t=w(e);t&&t.tagName||(t={namespaceURI:ye,tagName:"template"});const n=Ya(e.tagName),r=Ya(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&&Oe[r]:Boolean(Pe[n]):e.namespaceURI===ge?!(t.namespaceURI===he&&!Oe[r])&&!(t.namespaceURI===me&&!Te[r])&&!Pe[n]&&(Ae[n]||!Re[n]):!("application/xhtml+xml"!==ve||!be[e.namespaceURI]))}(e)?(Le(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!ts(/<\/no(script|embed|frames)/i,e.innerHTML)?(J&&e.nodeType===Ps&&(t=e.textContent,Va([O,A,R],(e=>{t=Ka(t,e," ")})),e.textContent!==t&&(Ga(n.removed,{element:e.cloneNode()}),e.textContent=t)),Be("afterSanitizeElements",e,null),!1):(Le(e),!0)},ze=function(e,t,n){if(re&&("id"===t||"name"===t)&&(n in r||n in Se))return!1;if($&&!W[t]&&ts(P,t));else if(V&&ts(L,t));else if(!M[t]||W[t]){if(!(He(e)&&(H.tagNameCheck instanceof RegExp&&ts(H.tagNameCheck,e)||H.tagNameCheck instanceof Function&&H.tagNameCheck(e))&&(H.attributeNameCheck instanceof RegExp&&ts(H.attributeNameCheck,t)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(t))||"is"===t&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&ts(H.tagNameCheck,n)||H.tagNameCheck instanceof Function&&H.tagNameCheck(n))))return!1}else if(pe[t]);else if(ts(j,Ka(n,U,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Za(n,"data:")||!de[e]){if(G&&!ts(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){Be("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=ke(s);let u="value"===s?c:Qa(c);if(r.attrName=d,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,Be("uponSanitizeAttribute",e,r),u=r.attrValue,X&&ts(/((--!?|])>)|<\/(style|title)/i,u)){Ie(s,e);continue}if(r.forceKeepAttr)continue;if(Ie(s,e),!r.keepAttr)continue;if(!Y&&ts(/\/>/i,u)){Ie(s,e);continue}J&&Va([O,A,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):$a(n.removed)}catch(i){}}}Be("afterSanitizeAttributes",e,null)},We=function e(t){let n=null;const r=Fe(t);for(Be("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)Be("uponSanitizeShadowNode",n,null),Me(n)||(n.content instanceof a&&e(n.content),qe(n));Be("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,s=null,c=null;if(_e=!e,_e&&(e="\x3c!--\x3e"),"string"!=typeof e&&!De(e)){if("function"!=typeof e.toString)throw ns("toString is not a function");if("string"!=typeof(e=e.toString()))throw ns("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Z||Ne(t),n.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){const t=ke(e.nodeName);if(!D[t]||q[t])throw ns("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===Rs&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!ee&&!J&&!K&&-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=S.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=K?r.outerHTML:r.innerHTML;return K&&D["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&ts(Ts,r.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+u),J&&Va([O,A,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]:{}),Z=!0},n.clearConfig=function(){Ee=null,Z=!1},n.isValidAttribute=function(e,t,n){Ee||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]||[],Ga(T[e],t))},n.removeHook=function(e){if(T[e])return $a(T[e])},n.removeHooks=function(e){T[e]&&(T[e]=[])},n.removeAllHooks=function(){T={}},n}();const js=({children:e})=>{const t=jt.Children.toArray(e),n=t.find((e=>e.type===Ds)),r=t.find((e=>e.type===Bs));return co(yi,{appear:!0,show:!0,enter:"transition duration-700 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:co("div",{class:"md:grid md:grid-cols-2 max-w-[59.5rem] mx-auto",children:[co(yi,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:n&&co("div",{class:"flex items-center h-full",children:n})}),co(yi,{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&&co("div",{class:"flex items-center h-full",children:r})})]})})},Ds=({children:e})=>co(E,{children:e}),Bs=({children:e})=>co(E,{children:e});js.Left=Ds,js.Right=Bs;const Ms=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"})),zs=e=>co(yi,{appear:!0,show:!0,enter:"transition duration-300 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:co("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)=>co("div",{class:"flex space-x-1",children:[co("span",{children:co(ko,{class:"h-5 w-5 fill-primary-base"})}),co("span",{class:"text-sm leading-5 text-gray-600",children:e})]},t)))})}),Hs=e=>{const[t,n]=_e(!1);return co("div",{class:e.class,children:t?co(zs,{items:e.items}):co("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",co("span",{class:"ml-1",children:co(Ms,{class:"h-4 w-4"})})]})})},qs=e=>{var t,n,r,o;const{featureFlags:{marketplaceScheme:i}}=Ce(po),{trace:a}=Ei(),[s,l]=_e(!1);Ki((()=>{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 co(js,{children:[co(js.Left,{children:co("div",{children:co(yi,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:co("div",{children:[co("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:e.step.content.mobileImageUrl,loading:"lazy"}),co("div",{class:"md:max-w-[27.5rem]",children:[co("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:e.step.content.title}),co("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&&co("div",{class:"mt-6 hidden md:block",children:co(zs,{items:e.step.content.details})})]}),e.step.content.details&&co(Hs,{class:"mt-6 md:hidden",items:e.step.content.details}),"allowance"===i.scheme&&"offer"==(null==(t=e.step.content.specialBanner)?void 0:t.type)&&co(xi,{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:co("div",{children:[co("p",{className:"font-semibold text-lg leading-tight text-gray-900",children:e.step.content.specialBanner.title}),co("span",{className:"font-normal text-sm text-gray-900",children:e.step.content.specialBanner.subtitle})]})}),e.children&&e.children,co("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:[co(bo,{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)&&co(bo,{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&&co("p",{className:"mt-6 text-xs",children:[co("span",{children:"*"}),co("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&&co(Hi,{open:s,children:[co(Mi,{children:co("div",{className:"relative",children:[co("h3",{className:"text-base font-semibold text-gray-900",children:"Terms & Conditions"}),co("span",{className:"absolute top-0 right-0 p-1 rounded-full bg-gray-200 cursor-pointer hover:bg-gray-100",onClick:()=>l(!1),children:co(Ia,{className:"h-4 min-h-4 max-h-4 w-4 min-w-4 max-w-4"})})]})}),co(zi,{children:co("div",{class:"flex flex-col gap-3 mt-6 text-gray-600 text-xs",children:e.step.content.terms.map(((e,t)=>co("span",{dangerouslySetInnerHTML:{__html:Fs.sanitize(e,{ADD_ATTR:["target"]})}},t)))})})]})]})})})}),co(js.Right,{children:co("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},Ws=e=>{var t,n,r;const{featureFlags:{marketplaceScheme:o}}=Ce(po),{trace:i}=Ei(),[a,s]=_e(!1);Ki((()=>{"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 co(js,{children:[co(js.Left,{children:co("div",{children:co(yi,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:co("div",{children:[co("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:e.step.content.mobileImageUrl,loading:"lazy"}),co("div",{class:"md:max-w-[27.5rem]",children:[co("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:e.step.content.title}),co("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&&co("div",{class:"mt-6 hidden md:block",children:co(zs,{items:e.step.content.details})})]}),e.step.content.details&&co(Hs,{class:"mt-6 md:hidden",items:e.step.content.details}),"allowance"===o.scheme&&"offer"==(null==(t=e.step.content.specialBanner)?void 0:t.type)&&co(xi,{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:co("div",{children:[co("p",{className:"font-semibold text-lg leading-tight text-gray-900",children:e.step.content.specialBanner.title}),co("span",{className:"font-normal text-sm text-gray-900",children:e.step.content.specialBanner.subtitle})]})}),e.children&&e.children,co("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:co(bo,{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&&co("p",{className:"mt-6 text-xs",children:[co("span",{children:"*"}),co("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&&co(Hi,{open:a,children:[co(Mi,{children:co("div",{className:"relative",children:[co("h3",{className:"text-base font-semibold text-gray-900",children:"Terms & Conditions"}),co("span",{className:"absolute top-0 right-0 p-1 rounded-full bg-gray-200 cursor-pointer hover:bg-gray-100",onClick:()=>s(!1),children:co(Ia,{className:"h-4 min-h-4 max-h-4 w-4 min-w-4 max-w-4"})})]})}),co(zi,{children:co("div",{class:"flex flex-col gap-3 mt-6 text-gray-600 text-xs",children:e.step.content.terms.map(((e,t)=>co("span",{dangerouslySetInnerHTML:{__html:Fs.sanitize(e,{ADD_ATTR:["target"]})}},t)))})})]})]})})})}),co(js.Right,{children:co("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},Vs=({current:e,total:t})=>co("div",{className:"flex justify-between md:block text-xs tracking-wide",children:co("span",{className:"relative px-3 py-0.5 text-primary-base font-semibold",children:[e," OF ",t,co("span",{className:"absolute left-0 rounded-xl bg-primary-base opacity-10 w-full h-[90%]"})]})}),$s=e=>{const{featureFlags:{marketplaceSubNavigation:t},offersProgress:{update:n}}=Ce(po),[r,o]=_e(0),{trace:i}=Ei(),a=Se(((t,i,a)=>{n(t,i,a),r===e.offers.length-1?e.onComplete():o(r+1)}),[n,r,e]),s=Se((t=>{o(t);const n=e.offers[t];i({type:"offer-selected",offerName:n.name},{experiment:n.metadata.featureName,treatment:n.metadata.treatmentName})}),[e.offers,i]);return co("div",{className:"max-w-[59.5rem] mx-auto",children:[!t&&co(Vs,{current:r+1,total:e.offers.length+1}),co(ta,{selectedIndex:r,onChange:s,children:[t&&e.offers.map((e=>co(Qi,{label:e.content.productName,icon:co(Aa,{src:e.content.iconUrl,wrapper:"svg",className:"w-6 h-6 max-w-6 max-h-6 min-w-6 min-h-6",beforeInjection:e=>{var t;e.removeAttribute("width"),e.removeAttribute("height"),null==(t=e.querySelector("path"))||t.removeAttribute("fill"),e.setAttribute("fill","currentColor")}})},e.name))),e.offers.map((e=>co(ea,{children:["Eoi"===e.content.template&&co(qs,{step:e,primaryButton:{text:e.content.acceptButton,onClick:()=>a(e.name,!0,!0)},secondaryButton:{text:e.content.declineButton,onClick:()=>a(e.name,!1,!1)}}),"Simple"===e.content.template&&co(Ws,{step:e,primaryButton:{text:e.content.acceptButton,onClick:()=>a(e.name,!0,!0)}}),"Assessment"===e.content.template&&co(Pa,{onStepComplete:(t,n)=>a(e.name,t,n),marketPlaceOffer:e},e.name)]},e.name)))]})]})},Gs=""+("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),Ys=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}=Ei(),{identity:n,getIdentityRegistrationStatus:r,featureFlags:{marketplaceScheme:o}}=Ce(po);we((()=>{(async()=>{await t({type:"summary-viewed",data:{summaryVariant:"app"}},{experiment:"onboarding-marketplace-scheme",treatment:o.scheme})})()}),[o,t]);const i={...Zs(n,r()),imageUrl:Gs,mobileImageUrl:Xs},a={text:"Continue",class:"mt-6 md:mt-14",onClick:async()=>{await t("completed",{experiment:"onboarding-marketplace-scheme",treatment:o.scheme}),await e()}};return co(js,{children:[co(js.Left,{children:co("div",{children:[co("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:i.mobileImageUrl,loading:"lazy"}),co("div",{class:"md:max-w-[27.5rem]",children:[co("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:i.title}),co("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:i.description})]}),co("div",{class:"mt-6 flex space-x-6",children:[co(Ys,{}),co(Js,{})]}),co(bo,{testId:"step-benefits-finish",class:a.class,onClickPromise:a.onClick,children:a.text})]})}),co(js.Right,{children:co("img",{class:"max-w-[30rem] w-full hidden md:block",src:i.imageUrl,loading:"lazy"})})]})},Zs=(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.`}}},Qs=""+("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),el=""+("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),tl=({onComplete:e})=>{const{trace:t}=Ei(),{getWorkplaceLinkingStatus:n,featureFlags:{marketplaceScheme:r}}=Ce(po);we((()=>{(async()=>{await t({type:"summary-viewed",data:{summaryVariant:"generic"}},{experiment:"onboarding-marketplace-scheme",treatment:r.scheme})})()}),[r,t]);const o={imageUrl:Qs,mobileImageUrl:el,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."},i={text:"Continue",class:"mt-6 md:mt-6",onClick:async()=>{await t("completed",{experiment:"onboarding-marketplace-scheme",treatment:r.scheme}),await e()}};return co(js,{children:[co(js.Left,{children:co("div",{children:[co("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:o.mobileImageUrl,loading:"lazy"}),co("div",{class:"md:max-w-[27.5rem]",children:[co("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:o.title}),co("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:o.description})]}),co("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:co(bo,{testId:"step-benefits-finish",class:i.class,onClickPromise:i.onClick,children:i.text})})]})}),co(js.Right,{children:co("img",{class:"max-w-[30rem] w-full hidden md:block",src:o.imageUrl,loading:"lazy"})})]})},nl=()=>{const{offers:e,workplace:t,updateIdentity:n}=Ce(po),{current:r,goNext:o}=function(){const{isAppEnabled:e,getIdentityRegistrationStatus:t,featureFlags:n}=Ce(po),r=Ee((()=>"allowance"===n.marketplaceScheme.scheme?["Allowance_JoinBenefits","FlareAppIdentity","Allowance_ConfigureBenefits","MarketplaceOffers","Allowance_BenefitsSummary"]:["Introduction","FlareAppIdentity","MarketplaceOffers",e?"SummaryApp":"SummaryGeneric"]),[n,e]),[o,i]=_e(r[0]),a=Se((async()=>{if(r.indexOf(o)===r.length-1){const e=document.querySelector(ol),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}}(),i=Se((()=>{n(!0),o()}),[o,n]),a=Se((()=>{n(!1),o()}),[o,n]);switch(r){case"Introduction":return co(Xi,{employerName:t.employerName,onStepComplete:o});case"Allowance_JoinBenefits":return co(Si,{employerName:t.employerName,onContinue:o});case"FlareAppIdentity":return co(Yi,{onSuccess:i,onDecline:a});case"Allowance_ConfigureBenefits":return co(vi,{onContinue:o});case"MarketplaceOffers":return co($s,{offers:e,onComplete:o});case"Allowance_BenefitsSummary":return co(Ti,{onContinue:o});case"SummaryApp":return co(Ks,{onComplete:o});case"SummaryGeneric":return co(tl,{onComplete:o});default:return co(E,{})}},rl=()=>Ce(po).isLoading?co("div",{class:"flex justify-center",children:co("span",{class:"animate-spin",children:co(yo,{size:"lg"})})}):co(nl,{}),ol="benefits-onboarding";!function(e,t,n,r){function o(){var t=Reflect.construct(HTMLElement,[],o);return t._vdomComponent=e,t._root=r&&r.shadow?t.attachShadow({mode:r.mode||"open"}):t,t}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=K,o.prototype.attributeChangedCallback=Q,o.prototype.disconnectedCallback=ee,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(t){this._vdom?this.attributeChangedCallback(e,null,t):(this._props||(this._props={}),this._props[e]=t,this.connectedCallback());var n=typeof t;null!=t&&"string"!==n&&"boolean"!==n&&"number"!==n||this.setAttribute(e,t)}})})),customElements.define(t,o)}((e=>{const[t,n]=_e(0);we((()=>Wt((()=>{n(t+1)}))),[t]);const r={backendUrl:e["backend-url"],accessToken:e["access-token"],workflowsInstanceId:e["workflows-instance-id"],workflowsJourneyType:e["journey-type"]};return so(r.backendUrl,r.accessToken,r.workflowsInstanceId,r.workflowsJourneyType),"prod"===ho(r.backendUrl)&&go.init("p09arvzysr"),co(E,{children:[co("style",{children:_o.toString()}),co("div",{class:"font-inter pt-6 pb-8 md:py-24 px-px",children:co(mo,{workflowsJourneyType:r.workflowsJourneyType,children:co(rl,{})})},t)]})}),ol,[],{shadow:!0})}));
|
7
|
+
var ra=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,oa=/\\([\u000b\u0020-\u00ff])/g,ia=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,aa=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(!ia.test(r))throw new TypeError("invalid media type");var o=new sa(r.toLowerCase());if(-1!==n){var i,a,s;for(ra.lastIndex=n;a=ra.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(oa,"$1")),o.parameters[i]=s}if(n!==t.length)throw new TypeError("invalid parameter format")}return o};function sa(e){this.parameters=Object.create(null),this.type=e}var la=new Map,ca=function(e){return e.cloneNode(!0)},da=function(){return"file:"===window.location.protocol},ua=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=aa(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(da()?"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||da()&&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()},pa={},fa=function(e,t){pa[e]=pa[e]||[],pa[e].push(t)},ma=function(e,t,n){if(la.has(e)){var r=la.get(e);if(void 0===r)return void fa(e,n);if(r instanceof SVGSVGElement)return void n(null,ca(r))}la.set(e,void 0),fa(e,n),ua(e,t,(function(t,n){var r;t?la.set(e,t):(null===(r=n.responseXML)||void 0===r?void 0:r.documentElement)instanceof SVGSVGElement&&la.set(e,n.responseXML.documentElement),function(e){for(var t=function(t,n){setTimeout((function(){if(Array.isArray(pa[e])){var n=la.get(e),r=pa[e][t];n instanceof SVGSVGElement&&r(null,ca(n)),n instanceof Error&&r(n),t===pa[e].length-1&&delete pa[e]}}),0)},n=0,r=pa[e].length;n<r;n++)t(n)}(e)}))},ha=function(e,t,n){ua(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)}))},ga=0,ya=[],_a={},ba="http://www.w3.org/1999/xlink",wa=function(e,t,n,r,o,i,a){var s=e.getAttribute("data-src")||e.getAttribute("src");if(s){if(-1!==ya.indexOf(e))return ya.splice(ya.indexOf(e),1),void(e=null);ya.push(e),e.setAttribute("src",""),(r?ma:ha)(s,o,(function(r,o){if(!o)return ya.splice(ya.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(na(na(na([],(o.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(e.getAttribute("class")||"").split(" "),!0))).join(" ").trim();o.setAttribute("class",p);var f=e.getAttribute("style");f&&o.setAttribute("style",f),o.setAttribute("data-src",s);var m=[].filter.call(e.attributes,(function(e){return/^data-\w[\w-]*$/.test(e.name)}));if(Array.prototype.forEach.call(m,(function(e){e.name&&e.value&&o.setAttribute(e.name,e.value)})),n){var h,g,y,_,b,w={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],path:[],pattern:["fill","stroke"],radialGradient:["fill","stroke"]};Object.keys(w).forEach((function(e){h=e,y=w[e];for(var t=function(e,t){var n;_=g[e].id,b=_+"-"+ ++ga,Array.prototype.forEach.call(y,(function(e){for(var t=0,r=(n=o.querySelectorAll("["+e+'*="'+_+'"]')).length;t<r;t++){var i=n[t].getAttribute(e);i&&!i.match(new RegExp('url\\("?#'+_+'"?\\)'))||n[t].setAttribute(e,"url(#"+b+")")}}));for(var r=o.querySelectorAll("[*|href]"),i=[],a=0,s=r.length;a<s;a++){var l=r[a].getAttributeNS(ba,"href");l&&l.toString()==="#"+g[e].id&&i.push(r[a])}for(var c=0,d=i.length;c<d;c++)i[c].setAttributeNS(ba,"href","#"+b);g[e].id=b},n=0,r=(g=o.querySelectorAll(h+"[id]")).length;n<r;n++)t(n)}))}o.removeAttribute("xmlns:a");for(var v,x,k=o.querySelectorAll("script"),S=[],E=0,C=k.length;E<C;E++)(x=k[E].getAttribute("type"))&&"application/ecmascript"!==x&&"application/javascript"!==x&&"text/javascript"!==x||((v=k[E].innerText||k[E].textContent)&&S.push(v),o.removeChild(k[E]));if(S.length>0&&("always"===t||"once"===t&&!_a[s])){for(var N=0,T=S.length;N<T;N++)new Function(S[N])(window);_a[s]=!0}var O=o.querySelectorAll("style");if(Array.prototype.forEach.call(O,(function(e){e.textContent+=""})),o.setAttribute("xmlns","http://www.w3.org/2000/svg"),o.setAttribute("xmlns:xlink",ba),i(o),!e.parentNode)return ya.splice(ya.indexOf(e),1),e=null,void a(new Error("Parent node is null"));e.parentNode.replaceChild(o,e),ya.splice(ya.indexOf(e),1),e=null,a(null,o)}))}else a(new Error("Invalid data-src or src attribute"))},va={exports:{}};function xa(){}function ka(){}ka.resetWarningCache=xa;va.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:ka,resetWarningCache:xa};return n.PropTypes=n,n}();var Sa=va.exports,Ea=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],Ca="http://www.w3.org/2000/svg",Na="http://www.w3.org/1999/xlink",Ta=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,ta(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(Ca,h)).setAttribute("xmlns",Ca),n.setAttribute("xmlns:xlink",Na),r=document.createElementNS(Ca,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 y=0,_=0,b=e.length;_<b;_++)wa(e[_],p,g,d,m,l,(function(t,n){a(t,n),e&&"length"in e&&e.length===++y&&o(y)}));else e?wa(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})(ea({},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,Ea);return v(r,ea({},o,{ref:this.refCallback},"svg"===r?{xmlns:Ca,xmlnsXlink:Na}:{}),this.state.isLoading&&n&&v(n,null),this.state.hasError&&t&&v(t,null))},t}(E);Ta.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"},Ta.propTypes={afterInjection:Sa.func,beforeInjection:Sa.func,desc:Sa.string,evalScripts:Sa.oneOf(["always","once","never"]),fallback:Sa.oneOfType([Sa.func,Sa.object,Sa.string]),httpRequestWithCredentials:Sa.bool,loading:Sa.oneOfType([Sa.func,Sa.object,Sa.string]),onError:Sa.func,renumerateIRIElements:Sa.bool,src:Sa.string.isRequired,title:Sa.string,useRequestCache:Sa.bool,wrapper:Sa.oneOf(["div","span","svg"])};const Oa=()=>so("div",{class:"flex justify-center",children:so("span",{class:"animate-spin",children:so(ho,{size:"lg"})})}),Ra=(Aa=e=>{var t,n,r;const{featureFlags:{marketplaceScheme:o},hostInformation:i}=Ce(co),{trace:a}=xi(),s=xe(null);return Ji((()=>{a({type:"offer-viewed",offerName:e.marketPlaceOffer.name,data:e.marketPlaceOffer.metadata},{experiment:e.marketPlaceOffer.metadata.featureName,treatment:e.marketPlaceOffer.metadata.treatmentName}),s.current&&(s.current.terms=e.marketPlaceOffer.content.terms,s.current.details=e.marketPlaceOffer.content.details,s.current["on-accept"]=async()=>{await a({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})},s.current["on-decline"]=async()=>{await a({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)},s.current["on-complete"]=()=>e.onStepComplete(!0,!0),s.current["on-skip"]=e.marketPlaceOffer.content.skipButtonHidden?void 0:()=>e.onStepComplete(!0,!1))})),so("benefits-plan-assessment",{"base-url":oo.workplaceBackend.getBaseUrl(),"profile-id":oo.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",ref:s})},e=>{const t=xe(null),[n,r]=_e(),[o,i]=_e(!1);return we((()=>{(async()=>{const e=await oo.workplaceBackend.getIdToken();r(e)})(),(()=>{if(t.current&&!t.current.querySelector("script[data-injected]")){const e=document.createElement("script"),n=fo(oo.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)})()}),[]),so("div",{ref:t,className:n,children:n&&o?so(Aa,{...e,accessToken:n}):so(Oa,{})})});var Aa;const Pa=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:La,setPrototypeOf:Ia,isFrozen:Ua,getPrototypeOf:Fa,getOwnPropertyDescriptor:ja}=Object;let{freeze:Da,seal:Ba,create:Ma}=Object,{apply:za,construct:Ha}="undefined"!=typeof Reflect&&Reflect;Da||(Da=function(e){return e}),Ba||(Ba=function(e){return e}),za||(za=function(e,t,n){return e.apply(t,n)}),Ha||(Ha=function(e,t){return new e(...t)});const qa=ns(Array.prototype.forEach),Wa=ns(Array.prototype.pop),Va=ns(Array.prototype.push),$a=ns(String.prototype.toLowerCase),Ga=ns(String.prototype.toString),Ya=ns(String.prototype.match),Ja=ns(String.prototype.replace),Xa=ns(String.prototype.indexOf),Ka=ns(String.prototype.trim),Za=ns(Object.prototype.hasOwnProperty),Qa=ns(RegExp.prototype.test),es=(ts=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ha(ts,t)});var ts;function ns(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 za(e,t,r)}}function rs(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$a;Ia&&Ia(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(Ua(t)||(t[r]=e),o=e)}e[o]=!0}return e}function os(e){for(let t=0;t<e.length;t++){Za(e,t)||(e[t]=null)}return e}function is(e){const t=Ma(null);for(const[n,r]of La(e)){Za(e,n)&&(Array.isArray(r)?t[n]=os(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=is(r):t[n]=r)}return t}function as(e,t){for(;null!==e;){const n=ja(e,t);if(n){if(n.get)return ns(n.get);if("function"==typeof n.value)return ns(n.value)}e=Fa(e)}return function(){return null}}const ss=Da(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ls=Da(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),cs=Da(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ds=Da(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),us=Da(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),ps=Da(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),fs=Da(["#text"]),ms=Da(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","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"]),hs=Da(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),gs=Da(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ys=Da(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),_s=Ba(/\{\{[\w\W]*|[\w\W]*\}\}/gm),bs=Ba(/<%[\w\W]*|[\w\W]*%>/gm),ws=Ba(/\${[\w\W]*}/gm),vs=Ba(/^data-[\-\w.\u00B7-\uFFFF]/),xs=Ba(/^aria-[\-\w]+$/),ks=Ba(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ss=Ba(/^(?:\w+script|data):/i),Es=Ba(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Cs=Ba(/^html$/i),Ns=Ba(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ts=Object.freeze({__proto__:null,MUSTACHE_EXPR:_s,ERB_EXPR:bs,TMPLIT_EXPR:ws,DATA_ATTR:vs,ARIA_ATTR:xs,IS_ALLOWED_URI:ks,IS_SCRIPT_OR_DATA:Ss,ATTR_WHITESPACE:Es,DOCTYPE_NAME:Cs,CUSTOM_ELEMENT:Ns});const Os=1,Rs=3,As=7,Ps=8,Ls=9;var Is=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!==Ls)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=as(h,"cloneNode"),y=as(h,"remove"),_=as(h,"nextSibling"),b=as(h,"childNodes"),w=as(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:S,createDocumentFragment:E,getElementsByTagName:C}=r,{importNode:N}=o;let T={};n.isSupported="function"==typeof La&&"function"==typeof w&&k&&void 0!==k.createHTMLDocument;const{MUSTACHE_EXPR:O,ERB_EXPR:R,TMPLIT_EXPR:A,DATA_ATTR:P,ARIA_ATTR:L,IS_SCRIPT_OR_DATA:I,ATTR_WHITESPACE:U,CUSTOM_ELEMENT:F}=Ts;let{IS_ALLOWED_URI:j}=Ts,D=null;const B=rs({},[...ss,...ls,...cs,...us,...fs]);let M=null;const z=rs({},[...ms,...hs,...gs,...ys]);let H=Object.seal(Ma(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),q=null,W=null,V=!0,$=!0,G=!1,Y=!0,J=!1,X=!0,K=!1,Z=!1,Q=!1,ee=!1,te=!1,ne=!1,re=!0,oe=!1,ie=!0,ae=!1,se={},le=null;const ce=rs({},["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=rs({},["audio","video","img","source","image","track"]);let pe=null;const fe=rs({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),me="http://www.w3.org/1998/Math/MathML",he="http://www.w3.org/2000/svg",ge="http://www.w3.org/1999/xhtml";let ye=ge,_e=!1,be=null;const we=rs({},[me,he,ge],Ga);let ve=null;const xe=["application/xhtml+xml","text/html"];let ke=null,Se=null;const Ee=r.createElement("form"),Ce=function(e){return e instanceof RegExp||e instanceof Function},Ne=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Se||Se!==e){if(e&&"object"==typeof e||(e={}),e=is(e),ve=-1===xe.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ke="application/xhtml+xml"===ve?Ga:$a,D=Za(e,"ALLOWED_TAGS")?rs({},e.ALLOWED_TAGS,ke):B,M=Za(e,"ALLOWED_ATTR")?rs({},e.ALLOWED_ATTR,ke):z,be=Za(e,"ALLOWED_NAMESPACES")?rs({},e.ALLOWED_NAMESPACES,Ga):we,pe=Za(e,"ADD_URI_SAFE_ATTR")?rs(is(fe),e.ADD_URI_SAFE_ATTR,ke):fe,de=Za(e,"ADD_DATA_URI_TAGS")?rs(is(ue),e.ADD_DATA_URI_TAGS,ke):ue,le=Za(e,"FORBID_CONTENTS")?rs({},e.FORBID_CONTENTS,ke):ce,q=Za(e,"FORBID_TAGS")?rs({},e.FORBID_TAGS,ke):{},W=Za(e,"FORBID_ATTR")?rs({},e.FORBID_ATTR,ke):{},se=!!Za(e,"USE_PROFILES")&&e.USE_PROFILES,V=!1!==e.ALLOW_ARIA_ATTR,$=!1!==e.ALLOW_DATA_ATTR,G=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,J=e.SAFE_FOR_TEMPLATES||!1,X=!1!==e.SAFE_FOR_XML,K=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||ks,ye=e.NAMESPACE||ge,H=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Ce(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Ce(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(H.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),J&&($=!1),te&&(ee=!0),se&&(D=rs({},fs),M=[],!0===se.html&&(rs(D,ss),rs(M,ms)),!0===se.svg&&(rs(D,ls),rs(M,hs),rs(M,ys)),!0===se.svgFilters&&(rs(D,cs),rs(M,hs),rs(M,ys)),!0===se.mathMl&&(rs(D,us),rs(M,gs),rs(M,ys))),e.ADD_TAGS&&(D===B&&(D=is(D)),rs(D,e.ADD_TAGS,ke)),e.ADD_ATTR&&(M===z&&(M=is(M)),rs(M,e.ADD_ATTR,ke)),e.ADD_URI_SAFE_ATTR&&rs(pe,e.ADD_URI_SAFE_ATTR,ke),e.FORBID_CONTENTS&&(le===ce&&(le=is(le)),rs(le,e.FORBID_CONTENTS,ke)),ie&&(D["#text"]=!0),K&&rs(D,["html","head","body"]),D.table&&(rs(D,["tbody"]),delete q.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw es('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw es('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(""));Da&&Da(e),Se=e}},Te=rs({},["mi","mo","mn","ms","mtext"]),Oe=rs({},["foreignobject","annotation-xml"]),Re=rs({},["title","style","font","a","script"]),Ae=rs({},[...ls,...cs,...ds]),Pe=rs({},[...us,...ps]),Le=function(e){Va(n.removed,{element:e});try{w(e).removeChild(e)}catch(t){y(e)}},Ie=function(e,t){try{Va(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(r){Va(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=Ya(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ve&&ye===ge&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=v?v.createHTML(e):e;if(ye===ge)try{t=(new f).parseFromString(o,ve)}catch(a){}if(!t||!t.documentElement){t=k.createDocument(ye,"template",null);try{t.documentElement.innerHTML=_e?x:o}catch(a){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),ye===ge?C.call(t,K?"html":"body")[0]:K?t.documentElement:i},Fe=function(e){return S.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)},De=function(e){return"function"==typeof l&&e instanceof l},Be=function(e,t,r){T[e]&&qa(T[e],(e=>{e.call(n,t,r,Se)}))},Me=function(e){let t=null;if(Be("beforeSanitizeElements",e,null),je(e))return Le(e),!0;const r=ke(e.nodeName);if(Be("uponSanitizeElement",e,{tagName:r,allowedTags:D}),e.hasChildNodes()&&!De(e.firstElementChild)&&Qa(/<[/\w]/g,e.innerHTML)&&Qa(/<[/\w]/g,e.textContent))return Le(e),!0;if(e.nodeType===As)return Le(e),!0;if(X&&e.nodeType===Ps&&Qa(/<[/\w]/g,e.data))return Le(e),!0;if(!D[r]||q[r]){if(!q[r]&&He(r)){if(H.tagNameCheck instanceof RegExp&&Qa(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,_(e))}}}return Le(e),!0}return e instanceof c&&!function(e){let t=w(e);t&&t.tagName||(t={namespaceURI:ye,tagName:"template"});const n=$a(e.tagName),r=$a(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(Ae[n]):e.namespaceURI===me?t.namespaceURI===ge?"math"===n:t.namespaceURI===he?"math"===n&&Oe[r]:Boolean(Pe[n]):e.namespaceURI===ge?!(t.namespaceURI===he&&!Oe[r])&&!(t.namespaceURI===me&&!Te[r])&&!Pe[n]&&(Re[n]||!Ae[n]):!("application/xhtml+xml"!==ve||!be[e.namespaceURI]))}(e)?(Le(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!Qa(/<\/no(script|embed|frames)/i,e.innerHTML)?(J&&e.nodeType===Rs&&(t=e.textContent,qa([O,R,A],(e=>{t=Ja(t,e," ")})),e.textContent!==t&&(Va(n.removed,{element:e.cloneNode()}),e.textContent=t)),Be("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]&&Qa(P,t));else if(V&&Qa(L,t));else if(!M[t]||W[t]){if(!(He(e)&&(H.tagNameCheck instanceof RegExp&&Qa(H.tagNameCheck,e)||H.tagNameCheck instanceof Function&&H.tagNameCheck(e))&&(H.attributeNameCheck instanceof RegExp&&Qa(H.attributeNameCheck,t)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(t))||"is"===t&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&Qa(H.tagNameCheck,n)||H.tagNameCheck instanceof Function&&H.tagNameCheck(n))))return!1}else if(pe[t]);else if(Qa(j,Ja(n,U,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Xa(n,"data:")||!de[e]){if(G&&!Qa(I,Ja(n,U,"")));else if(n)return!1}else;return!0},He=function(e){return"annotation-xml"!==e&&Ya(e,F)},qe=function(e){Be("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=ke(s);let u="value"===s?c:Ka(c);if(r.attrName=d,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,Be("uponSanitizeAttribute",e,r),u=r.attrValue,X&&Qa(/((--!?|])>)|<\/(style|title)/i,u)){Ie(s,e);continue}if(r.forceKeepAttr)continue;if(Ie(s,e),!r.keepAttr)continue;if(!Y&&Qa(/\/>/i,u)){Ie(s,e);continue}J&&qa([O,R,A],(e=>{u=Ja(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):Wa(n.removed)}catch(i){}}}Be("afterSanitizeAttributes",e,null)},We=function e(t){let n=null;const r=Fe(t);for(Be("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)Be("uponSanitizeShadowNode",n,null),Me(n)||(n.content instanceof a&&e(n.content),qe(n));Be("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,s=null,c=null;if(_e=!e,_e&&(e="\x3c!--\x3e"),"string"!=typeof e&&!De(e)){if("function"!=typeof e.toString)throw es("toString is not a function");if("string"!=typeof(e=e.toString()))throw es("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Z||Ne(t),n.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){const t=ke(e.nodeName);if(!D[t]||q[t])throw es("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===Os&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!ee&&!J&&!K&&-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=K?r.outerHTML:r.innerHTML;return K&&D["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&Qa(Cs,r.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+u),J&&qa([O,R,A],(e=>{u=Ja(u,e," ")})),v&&ne?v.createHTML(u):u},n.setConfig=function(){Ne(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Z=!0},n.clearConfig=function(){Se=null,Z=!1},n.isValidAttribute=function(e,t,n){Se||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]||[],Va(T[e],t))},n.removeHook=function(e){if(T[e])return Wa(T[e])},n.removeHooks=function(e){T[e]&&(T[e]=[])},n.removeAllHooks=function(){T={}},n}();const Us=({children:e})=>{const t=jt.Children.toArray(e),n=t.find((e=>e.type===Fs)),r=t.find((e=>e.type===js));return so(hi,{appear:!0,show:!0,enter:"transition duration-700 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:so("div",{class:"md:grid md:grid-cols-2 max-w-[59.5rem] mx-auto",children:[so(hi,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:n&&so("div",{class:"flex items-center h-full",children:n})}),so(hi,{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&&so("div",{class:"flex items-center h-full",children:r})})]})})},Fs=({children:e})=>so(S,{children:e}),js=({children:e})=>so(S,{children:e});Us.Left=Fs,Us.Right=js;const Ds=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"})),Bs=e=>so(hi,{appear:!0,show:!0,enter:"transition duration-300 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:so("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)=>so("div",{class:"flex space-x-1",children:[so("span",{children:so(vo,{class:"h-5 w-5 fill-primary-base"})}),so("span",{class:"text-sm leading-5 text-gray-600",children:e})]},t)))})}),Ms=e=>{const[t,n]=_e(!1);return so("div",{class:e.class,children:t?so(Bs,{items:e.items}):so("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",so("span",{class:"ml-1",children:so(Ds,{class:"h-4 w-4"})})]})})},zs=e=>{var t,n,r,o;const{featureFlags:{marketplaceScheme:i}}=Ce(co),{trace:a}=xi(),[s,l]=_e(!1);Ji((()=>{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 so(Us,{children:[so(Us.Left,{children:so("div",{children:so(hi,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:so("div",{children:[so("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:e.step.content.mobileImageUrl,loading:"lazy"}),so("div",{class:"md:max-w-[27.5rem]",children:[so("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:e.step.content.title}),so("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&&so("div",{class:"mt-6 hidden md:block",children:so(Bs,{items:e.step.content.details})})]}),e.step.content.details&&so(Ms,{class:"mt-6 md:hidden",items:e.step.content.details}),"allowance"===i.scheme&&"offer"==(null==(t=e.step.content.specialBanner)?void 0:t.type)&&so(wi,{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:so("div",{children:[so("p",{className:"font-semibold text-lg leading-tight text-gray-900",children:e.step.content.specialBanner.title}),so("span",{className:"font-normal text-sm text-gray-900",children:e.step.content.specialBanner.subtitle})]})}),e.children&&e.children,so("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:[so(yo,{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)&&so(yo,{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&&so("p",{className:"mt-6 text-xs",children:[so("span",{children:"*"}),so("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&&so(Mi,{open:s,children:[so(Di,{children:so("div",{className:"relative",children:[so("h3",{className:"text-base font-semibold text-gray-900",children:"Terms & Conditions"}),so("span",{className:"absolute top-0 right-0 p-1 rounded-full bg-gray-200 cursor-pointer hover:bg-gray-100",onClick:()=>l(!1),children:so(Pa,{className:"h-4 min-h-4 max-h-4 w-4 min-w-4 max-w-4"})})]})}),so(Bi,{children:so("div",{class:"flex flex-col gap-3 mt-6 text-gray-600 text-xs",children:e.step.content.terms.map(((e,t)=>so("span",{dangerouslySetInnerHTML:{__html:Is.sanitize(e,{ADD_ATTR:["target"]})}},t)))})})]})]})})})}),so(Us.Right,{children:so("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},Hs=e=>{var t,n,r;const{featureFlags:{marketplaceScheme:o}}=Ce(co),{trace:i}=xi(),[a,s]=_e(!1);Ji((()=>{"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 so(Us,{children:[so(Us.Left,{children:so("div",{children:so(hi,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:so("div",{children:[so("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:e.step.content.mobileImageUrl,loading:"lazy"}),so("div",{class:"md:max-w-[27.5rem]",children:[so("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:e.step.content.title}),so("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&&so("div",{class:"mt-6 hidden md:block",children:so(Bs,{items:e.step.content.details})})]}),e.step.content.details&&so(Ms,{class:"mt-6 md:hidden",items:e.step.content.details}),"allowance"===o.scheme&&"offer"==(null==(t=e.step.content.specialBanner)?void 0:t.type)&&so(wi,{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:so("div",{children:[so("p",{className:"font-semibold text-lg leading-tight text-gray-900",children:e.step.content.specialBanner.title}),so("span",{className:"font-normal text-sm text-gray-900",children:e.step.content.specialBanner.subtitle})]})}),e.children&&e.children,so("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:so(yo,{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&&so("p",{className:"mt-6 text-xs",children:[so("span",{children:"*"}),so("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&&so(Mi,{open:a,children:[so(Di,{children:so("div",{className:"relative",children:[so("h3",{className:"text-base font-semibold text-gray-900",children:"Terms & Conditions"}),so("span",{className:"absolute top-0 right-0 p-1 rounded-full bg-gray-200 cursor-pointer hover:bg-gray-100",onClick:()=>s(!1),children:so(Pa,{className:"h-4 min-h-4 max-h-4 w-4 min-w-4 max-w-4"})})]})}),so(Bi,{children:so("div",{class:"flex flex-col gap-3 mt-6 text-gray-600 text-xs",children:e.step.content.terms.map(((e,t)=>so("span",{dangerouslySetInnerHTML:{__html:Is.sanitize(e,{ADD_ATTR:["target"]})}},t)))})})]})]})})})}),so(Us.Right,{children:so("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},qs=({current:e,total:t})=>so("div",{className:"flex justify-between md:block text-xs tracking-wide",children:so("span",{className:"relative px-3 py-0.5 text-primary-base font-semibold",children:[e," OF ",t,so("span",{className:"absolute left-0 rounded-xl bg-primary-base opacity-10 w-full h-[90%]"})]})}),Ws=e=>{const{featureFlags:{marketplaceSubNavigation:t},offersProgress:{update:n}}=Ce(co),[r,o]=_e(0),{trace:i}=xi(),a=Ee(((t,i,a)=>{n(t,i,a),r===e.offers.length-1?e.onComplete():o(r+1)}),[n,r,e]),s=Ee((t=>{o(t);const n=e.offers[t];i({type:"offer-selected",offerName:n.name},{experiment:n.metadata.featureName,treatment:n.metadata.treatmentName})}),[e.offers,i]);return so("div",{className:"max-w-[59.5rem] mx-auto",children:[!t&&so(qs,{current:r+1,total:e.offers.length+1}),so(Qi,{selectedIndex:r,onChange:s,children:[t&&e.offers.map((e=>so(Ki,{label:e.content.productName,icon:so(Ta,{src:e.content.iconUrl,wrapper:"svg",className:"w-6 h-6 max-w-6 max-h-6 min-w-6 min-h-6",beforeInjection:e=>{var t;e.removeAttribute("width"),e.removeAttribute("height"),null==(t=e.querySelector("path"))||t.removeAttribute("fill"),e.setAttribute("fill","currentColor")}})},e.name))),e.offers.map((e=>so(Zi,{children:["Eoi"===e.content.template&&so(zs,{step:e,primaryButton:{text:e.content.acceptButton,onClick:()=>a(e.name,!0,!0)},secondaryButton:{text:e.content.declineButton,onClick:()=>a(e.name,!1,!1)}}),"Simple"===e.content.template&&so(Hs,{step:e,primaryButton:{text:e.content.acceptButton,onClick:()=>a(e.name,!0,!0)}}),"Assessment"===e.content.template&&so(Ra,{onStepComplete:(t,n)=>a(e.name,t,n),marketPlaceOffer:e},e.name)]},e.name)))]})]})},Vs=""+("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),$s=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"})),Gs=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"})),Ys=""+("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),Js=({onComplete:e})=>{const{trace:t}=xi(),{identity:n,getIdentityRegistrationStatus:r,featureFlags:{marketplaceScheme:o}}=Ce(co);we((()=>{(async()=>{await t({type:"summary-viewed",data:{summaryVariant:"app"}},{experiment:"onboarding-marketplace-scheme",treatment:o.scheme})})()}),[o,t]);const i={...Xs(n,r()),imageUrl:Vs,mobileImageUrl:Ys},a={text:"Continue",class:"mt-6 md:mt-14",onClick:async()=>{await t("completed",{experiment:"onboarding-marketplace-scheme",treatment:o.scheme}),await e()}};return so(Us,{children:[so(Us.Left,{children:so("div",{children:[so("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:i.mobileImageUrl,loading:"lazy"}),so("div",{class:"md:max-w-[27.5rem]",children:[so("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:i.title}),so("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:i.description})]}),so("div",{class:"mt-6 flex space-x-6",children:[so($s,{}),so(Gs,{})]}),so(yo,{testId:"step-benefits-finish",class:a.class,onClickPromise:a.onClick,children:a.text})]})}),so(Us.Right,{children:so("img",{class:"max-w-[30rem] w-full hidden md:block",src:i.imageUrl,loading:"lazy"})})]})},Xs=(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.`}}},Ks=""+("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),Zs=""+("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),Qs=({onComplete:e})=>{const{trace:t}=xi(),{getWorkplaceLinkingStatus:n,featureFlags:{marketplaceScheme:r}}=Ce(co);we((()=>{(async()=>{await t({type:"summary-viewed",data:{summaryVariant:"generic"}},{experiment:"onboarding-marketplace-scheme",treatment:r.scheme})})()}),[r,t]);const o={imageUrl:Ks,mobileImageUrl:Zs,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."},i={text:"Continue",class:"mt-6 md:mt-6",onClick:async()=>{await t("completed",{experiment:"onboarding-marketplace-scheme",treatment:r.scheme}),await e()}};return so(Us,{children:[so(Us.Left,{children:so("div",{children:[so("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:o.mobileImageUrl,loading:"lazy"}),so("div",{class:"md:max-w-[27.5rem]",children:[so("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:o.title}),so("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:o.description})]}),so("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:so(yo,{testId:"step-benefits-finish",class:i.class,onClickPromise:i.onClick,children:i.text})})]})}),so(Us.Right,{children:so("img",{class:"max-w-[30rem] w-full hidden md:block",src:o.imageUrl,loading:"lazy"})})]})},el=()=>{const{offers:e,workplace:t,updateIdentity:n}=Ce(co),{current:r,goNext:o}=function(){const{isAppEnabled:e,getIdentityRegistrationStatus:t,featureFlags:n}=Ce(co),r=Se((()=>"allowance"===n.marketplaceScheme.scheme?["Allowance_JoinBenefits","FlareAppIdentity","Allowance_ConfigureBenefits","MarketplaceOffers","Allowance_BenefitsSummary"]:["Introduction","FlareAppIdentity","MarketplaceOffers",e?"SummaryApp":"SummaryGeneric"]),[n,e]),[o,i]=_e(r[0]),a=Ee((async()=>{if(r.indexOf(o)===r.length-1){const e=document.querySelector(nl),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}}(),i=Ee((()=>{n(!0),o()}),[o,n]),a=Ee((()=>{n(!1),o()}),[o,n]);switch(r){case"Introduction":return so(Yi,{employerName:t.employerName,onStepComplete:o});case"Allowance_JoinBenefits":return so(ki,{employerName:t.employerName,onContinue:o});case"FlareAppIdentity":return so($i,{onSuccess:i,onDecline:a});case"Allowance_ConfigureBenefits":return so(bi,{onContinue:o});case"MarketplaceOffers":return so(Ws,{offers:e,onComplete:o});case"Allowance_BenefitsSummary":return so(Ci,{onContinue:o});case"SummaryApp":return so(Js,{onComplete:o});case"SummaryGeneric":return so(Qs,{onComplete:o});default:return so(S,{})}},tl=()=>Ce(co).isLoading?so("div",{class:"flex justify-center",children:so("span",{class:"animate-spin",children:so(ho,{size:"lg"})})}):so(el,{}),nl="benefits-onboarding";!function(e,t,n,r){function o(){var t=Reflect.construct(HTMLElement,[],o);return t._vdomComponent=e,t._root=r&&r.shadow?t.attachShadow({mode:r.mode||"open"}):t,t}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=K,o.prototype.attributeChangedCallback=Q,o.prototype.disconnectedCallback=ee,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(t){this._vdom?this.attributeChangedCallback(e,null,t):(this._props||(this._props={}),this._props[e]=t,this.connectedCallback());var n=typeof t;null!=t&&"string"!==n&&"boolean"!==n&&"number"!==n||this.setAttribute(e,t)}})})),customElements.define(t,o)}((e=>{const[t,n]=_e(0);we((()=>Wt((()=>{n(t+1)}))),[t]);const r={backendUrl:e["backend-url"],accessToken:e["access-token"],workflowsInstanceId:e["workflows-instance-id"],workflowsJourneyType:e["journey-type"]};return io(r.backendUrl,r.accessToken,r.workflowsInstanceId,r.workflowsJourneyType),"prod"===fo(r.backendUrl)&&mo.init("p09arvzysr"),so(S,{children:[so("style",{children:go.toString()}),so("div",{class:"font-inter pt-6 pb-8 md:py-24 px-px",children:so(po,{workflowsJourneyType:r.workflowsJourneyType,children:so(tl,{})})},t)]})}),nl,[],{shadow:!0})}));
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@flarehr/apollo-benefits-onboarding",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.95.145",
|
4
4
|
"license": "MIT",
|
5
5
|
"files": [
|
6
6
|
"dist/"
|
@@ -16,7 +16,7 @@
|
|
16
16
|
"dependencies": {
|
17
17
|
"@headlessui/react": "^1.7.18",
|
18
18
|
"@microsoft/clarity": "^1.0.0",
|
19
|
-
"axios": "^1.
|
19
|
+
"axios": "^1.8.3",
|
20
20
|
"dompurify": "^3.1.6",
|
21
21
|
"fast-deep-equal": "^3.1.3",
|
22
22
|
"jwt-decode": "^4.0.0",
|