@flarehr/apollo-benefits-onboarding 1.96.147 → 1.97.148
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 C(e){return e.children}function E(e,t){this.props=e,this.context=t}function S(e,t){if(null==t)return e.__?S(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?S(e):null}function N(e,t,n){var r,o=e.__v,i=o.__e,a=e.__P;if(a)return(r=b({},o)).__v=o.__v+1,l.vnode&&l.vnode(r),M(a,r,o,e.__n,void 0!==a.ownerSVGElement,32&o.__u?[i]:null,t,null==i?S(o):i,!!(32&o.__u),n),r.__v=o.__v,r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=i&&T(r),r}function T(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return T(e)}}function A(e){(!e.__d&&(e.__d=!0)&&d.push(e)&&!O.__r++||u!==l.debounceRendering)&&((u=l.debounceRendering)||p)(O)}function O(){var e,t,n,r=[],o=[];for(d.sort(f);e=d.shift();)e.__d&&(n=d.length,t=N(e,r,o)||t,0===n||d.length>n?(B(r,t,o),o.length=r.length=0,t=void 0,d.sort(f)):t&&l.__c&&l.__c(t,g));t&&B(r,t,o),O.__r=0}function R(e,t,n,r,o,i,a,s,l,c,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(C,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?x(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,s=I(o,n,a=r+u,d),o.__i=s,i=null,-1!==s&&(d--,(i=n[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&u--,"function"!=typeof o.type&&(o.__u|=65536)):s!==a&&(s===a+1?u++:s>a?d>l-a?u+=s-a:u--:u=s<a&&s==a-1?s-a:0,s!==r+u&&(o.__u|=65536))):(i=n[r])&&null==i.key&&i.__e&&0==(131072&i.__u)&&(i.__e==e.__d&&(e.__d=S(i)),H(i,i,!1),n[r]=null,d--);if(d)for(r=0;r<c;r++)null!=(i=n[r])&&0==(131072&i.__u)&&(i.__e==e.__d&&(e.__d=S(i)),H(i,i))}(n,t,b),l=n.__d,u=0;u<w;u++)null!=(f=n.__k[u])&&"boolean"!=typeof f&&"function"!=typeof f&&(p=-1===f.__i?h:b[f.__i]||h,f.__i=u,M(e,f,p,o,i,a,s,l,c,d),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&z(p.ref,null,f),d.push(f.ref,f.__c||m,f)),null==y&&null!=m&&(y=m),65536&f.__u||p.__k===f.__k?l=L(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 L(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=L(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 P(e,t){return t=t||[],null==e||"boolean"==typeof e||(_(e)?e.some((function(e){P(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 M(e,t,n,r,o,i,a,c,d,u){var p,f,m,g,y,v,x,k,N,T,A,O,L,P,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)})),A=0;A<f._sb.length;A++)f.__h.push(f._sb[A]);f._sb=[],f.__h.length&&a.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(k,f.__s,T),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(g,y,v)}))}if(f.context=T,f.props=k,f.__P=e,f.__e=!1,O=l.__r,L=0,"prototype"in U&&U.prototype.render){for(f.state=f.__s,f.__d=!1,O&&O(t),p=f.render(f.props,f.state,f.context),P=0;P<f._sb.length;P++)f.__h.push(f._sb[P]);f._sb=[]}else do{f.__d=!1,O&&O(t),p=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++L<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===C&&null==p.key?p.props.children:p)?I:[I],t,n,r,o,i,a,c,d,u),f.base=t.__e,t.__u&=-161,f.__h.length&&a.push(f),x&&(f.__E=f.__=null)}catch(j){t.__v=null,d||null!=i?(t.__e=c,t.__u|=d?160:32,i[i.indexOf(c)]=null):(t.__e=n.__e,t.__k=n.__k),l.__e(j,t,n)}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,o,i,a,l,c){var d,u,p,f,m,g,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&&S(n,0),l,c),null!=i)for(d=i.length;d--;)null!=i[d]&&w(i[d]);l||(d="value",void 0!==g&&(g!==e[d]||"progress"===x&&!g||"option"===x&&g!==b[d])&&F(e,d,g,b[d],!1),d="checked",void 0!==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 B(e,t,n){for(var r=0;r<n.length;r++)z(n[r],n[++r],n[++r]);l.__c&&l.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(n){l.__e(n,t.__v)}}))}function z(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(r){l.__e(r,n)}}function H(e,t,n){var r,o;if(l.unmount&&l.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||z(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){l.__e(i,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&H(r[o],t,n||"function"!=typeof e.type);n||null==e.__e||w(e.__e),e.__=e.__e=e.__d=void 0}function q(e,t,n){return this.constructor(e,n)}function W(e,t,n){var r,o,i,a;l.__&&l.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,i=[],a=[],M(t,e=(!r&&n||t).__k=v(C,null,[e]),o||h,h,void 0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?s.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,a),e.__d=void 0,B(i,e,a)}function V(e,t){W(e,t,V)}function $(e,t,n){var r,o,i,a,l=b({},e.props);for(i in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)"key"==i?r=t[i]:"ref"==i?o=t[i]:l[i]=void 0===t[i]&&void 0!==a?a[i]:t[i];return arguments.length>2&&(l.children=arguments.length>3?s.call(arguments,2):n),x(e.type,l,r||e.key,o||e.ref,null)}function G(e,t){var n={__c:t="__cC"+m++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,A(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}function Y(){return(Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}s=g.slice,l={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(s){e=s}throw e}},c=0,E.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=b({},this.state),"function"==typeof e&&(e=e(b({},n),this.props)),e&&b(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),A(this))},E.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),A(this))},E.prototype.render=C,d=[],p="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f=function(e,t){return e.__v.__b-t.__v.__b},O.__r=0,m=0;var Z=["context","children"];function J(e){return this.getChildContext=function(){return e.context},$(e.children,function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(e,Z))}function X(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=v(J,Y({},this._props,{context:e.detail.context}),function e(t,n){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var r=[],o={},i=0,a=t.attributes,s=t.childNodes;for(i=a.length;i--;)"slot"!==a[i].name&&(o[a[i].name]=a[i].value,o[K(a[i].name)]=a[i].value);for(i=s.length;i--;){var l=e(s[i],null),c=s[i].slot;c?o[c]=v(te,{name:c},l):r[i]=l}var d=n?v(te,null,r):r;return v(n||t.nodeName.toLowerCase(),o,d)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?V:W)(this._vdom,this._root)}function K(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function Q(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[K(e)]=n,this._vdom=$(this._vdom,r),W(this._vdom,this._root)}}function ee(){W(this._vdom=null,this._root)}function te(e,t){var n=this;return v("slot",Y({},e,{ref:function(e){e?(n.ref=e,n._listener||(n._listener=function(e){e.stopPropagation(),e.detail.context=t},e.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}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),re=""+("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 oe extends Error{}function ie(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)}}oe.prototype.name="InvalidTokenError";const ae=crypto.randomUUID?crypto.randomUUID():crypto.getRandomValues(new Uint32Array(5)).join("-"),se=e=>(window.addEventListener(ae,e),()=>window.removeEventListener(ae,e)),le=()=>{window.dispatchEvent(new Event(ae))};function ce(e,t){return function(){return e.apply(t,arguments)}}const{toString:de}=Object.prototype,{getPrototypeOf:ue}=Object,pe=(e=>t=>{const n=de.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),fe=e=>(e=e.toLowerCase(),t=>pe(t)===e),me=e=>t=>typeof t===e,{isArray:he}=Array,ge=me("undefined");const ye=fe("ArrayBuffer");const _e=me("string"),be=me("function"),we=me("number"),ve=e=>null!==e&&"object"==typeof e,xe=e=>{if("object"!==pe(e))return!1;const t=ue(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},ke=fe("Date"),Ce=fe("File"),Ee=fe("Blob"),Se=fe("FileList"),Ne=fe("URLSearchParams"),[Te,Ae,Oe,Re]=["ReadableStream","Request","Response","Headers"].map(fe);function Le(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),he(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 Pe(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 Ie="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Ue=e=>!ge(e)&&e!==Ie;const Fe=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&ue(Uint8Array)),je=fe("HTMLFormElement"),De=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Me=fe("RegExp"),Be=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Le(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)};const ze=fe("AsyncFunction"),He=(qe="function"==typeof setImmediate,We=be(Ie.postMessage),qe?setImmediate:We?(Ve=`axios@${Math.random()}`,$e=[],Ie.addEventListener("message",(({source:e,data:t})=>{e===Ie&&t===Ve&&$e.length&&$e.shift()()}),!1),e=>{$e.push(e),Ie.postMessage(Ve,"*")}):e=>setTimeout(e));var qe,We,Ve,$e;const Ge="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Ie):"undefined"!=typeof process&&process.nextTick||He,Ye={isArray:he,isArrayBuffer:ye,isBuffer:function(e){return null!==e&&!ge(e)&&null!==e.constructor&&!ge(e.constructor)&&be(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||be(e.append)&&("formdata"===(t=pe(e))||"object"===t&&be(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ye(e.buffer),t},isString:_e,isNumber:we,isBoolean:e=>!0===e||!1===e,isObject:ve,isPlainObject:xe,isReadableStream:Te,isRequest:Ae,isResponse:Oe,isHeaders:Re,isUndefined:ge,isDate:ke,isFile:Ce,isBlob:Ee,isRegExp:Me,isFunction:be,isStream:e=>ve(e)&&be(e.pipe),isURLSearchParams:Ne,isTypedArray:Fe,isFileList:Se,forEach:Le,merge:function e(){const{caseless:t}=Ue(this)&&this||{},n={},r=(r,o)=>{const i=t&&Pe(n,o)||o;xe(n[i])&&xe(r)?n[i]=e(n[i],r):xe(r)?n[i]=e({},r):he(r)?n[i]=r.slice():n[i]=r};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&Le(arguments[o],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(Le(t,((t,r)=>{n&&be(t)?e[r]=ce(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&&ue(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:pe,kindOfTest:fe,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(he(e))return e;let t=e.length;if(!we(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:je,hasOwnProperty:De,hasOwnProp:De,reduceDescriptors:Be,freezeMethods:e=>{Be(e,((t,n)=>{if(be(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];be(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 he(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:Pe,global:Ie,isContextDefined:Ue,isSpecCompliantForm:function(e){return!!(e&&be(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(ve(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=he(e)?[]:{};return Le(e,((e,t)=>{const i=n(e,r+1);!ge(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:ze,isThenable:e=>e&&(ve(e)||be(e))&&be(e.then)&&be(e.catch),setImmediate:He,asap:Ge};function Ze(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)}Ye.inherits(Ze,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:Ye.toJSONObject(this.config),code:this.code,status:this.status}}});const Je=Ze.prototype,Xe={};["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=>{Xe[e]={value:e}})),Object.defineProperties(Ze,Xe),Object.defineProperty(Je,"isAxiosError",{value:!0}),Ze.from=(e,t,n,r,o,i)=>{const a=Object.create(Je);return Ye.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Ze.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function Ke(e){return Ye.isPlainObject(e)||Ye.isArray(e)}function Qe(e){return Ye.endsWith(e,"[]")?e.slice(0,-2):e}function et(e,t,n){return e?e.concat(t).map((function(e,t){return e=Qe(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const tt=Ye.toFlatObject(Ye,{},null,(function(e){return/^is[A-Z]/.test(e)}));function nt(e,t,n){if(!Ye.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Ye.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Ye.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Ye.isSpecCompliantForm(t);if(!Ye.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Ye.isDate(e))return e.toISOString();if(!s&&Ye.isBlob(e))throw new Ze("Blob is not supported. Use a Buffer instead.");return Ye.isArrayBuffer(e)||Ye.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(Ye.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Ye.isArray(e)&&function(e){return Ye.isArray(e)&&!e.some(Ke)}(e)||(Ye.isFileList(e)||Ye.endsWith(n,"[]"))&&(s=Ye.toArray(e)))return n=Qe(n),s.forEach((function(e,r){!Ye.isUndefined(e)&&null!==e&&t.append(!0===a?et([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!Ke(e)||(t.append(et(o,n,i),l(e)),!1)}const d=[],u=Object.assign(tt,{defaultVisitor:c,convertValue:l,isVisitable:Ke});if(!Ye.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Ye.isUndefined(n)){if(-1!==d.indexOf(n))throw Error("Circular reference detected in "+r.join("."));d.push(n),Ye.forEach(n,(function(n,i){!0===(!(Ye.isUndefined(n)||null===n)&&o.call(t,n,Ye.isString(i)?i.trim():i,r,u))&&e(n,r?r.concat(i):[i])})),d.pop()}}(e),t}function rt(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ot(e,t){this._pairs=[],e&&nt(e,this,t)}const it=ot.prototype;function at(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function st(e,t,n){if(!t)return e;const r=n&&n.encode||at;Ye.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):Ye.isURLSearchParams(t)?t.toString():new ot(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}it.append=function(e,t){this._pairs.push([e,t])},it.toString=function(e){const t=e?function(t){return e.call(this,t,rt)}:rt;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class lt{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){Ye.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const ct={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},dt={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ot,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},ut="undefined"!=typeof window&&"undefined"!=typeof document,pt="object"==typeof navigator&&navigator||void 0,ft=ut&&(!pt||["ReactNative","NativeScript","NS"].indexOf(pt.product)<0),mt="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ht=ut&&window.location.href||"http://localhost",gt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ut,hasStandardBrowserEnv:ft,hasStandardBrowserWebWorkerEnv:mt,navigator:pt,origin:ht},Symbol.toStringTag,{value:"Module"})),...dt};function yt(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&Ye.isArray(r)?r.length:i,s)return Ye.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&Ye.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&Ye.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(Ye.isFormData(e)&&Ye.isFunction(e.entries)){const n={};return Ye.forEachEntry(e,((e,r)=>{t(function(e){return Ye.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const _t={transitional:ct,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Ye.isObject(e);o&&Ye.isHTMLForm(e)&&(e=new FormData(e));if(Ye.isFormData(e))return r?JSON.stringify(yt(e)):e;if(Ye.isArrayBuffer(e)||Ye.isBuffer(e)||Ye.isStream(e)||Ye.isFile(e)||Ye.isBlob(e)||Ye.isReadableStream(e))return e;if(Ye.isArrayBufferView(e))return e.buffer;if(Ye.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 nt(e,new gt.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return gt.isNode&&Ye.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=Ye.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return nt(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Ye.isString(e))try{return(t||JSON.parse)(e),Ye.trim(e)}catch(yi){if("SyntaxError"!==yi.name)throw yi}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||_t.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Ye.isResponse(e)||Ye.isReadableStream(e))return e;if(e&&Ye.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(yi){if(n){if("SyntaxError"===yi.name)throw Ze.from(yi,Ze.ERR_BAD_RESPONSE,this,null,this.response);throw yi}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gt.classes.FormData,Blob:gt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ye.forEach(["delete","get","head","post","put","patch"],(e=>{_t.headers[e]={}}));const bt=Ye.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"]),wt=Symbol("internals");function vt(e){return e&&String(e).trim().toLowerCase()}function xt(e){return!1===e||null==e?e:Ye.isArray(e)?e.map(xt):String(e)}function kt(e,t,n,r,o){return Ye.isFunction(r)?r.call(this,t,n):(o&&(t=n),Ye.isString(t)?Ye.isString(r)?-1!==t.indexOf(r):Ye.isRegExp(r)?r.test(t):void 0:void 0)}class Ct{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=vt(t);if(!o)throw new Error("header name must be a non-empty string");const i=Ye.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=xt(e))}const i=(e,t)=>Ye.forEach(e,((e,n)=>o(e,n,t)));if(Ye.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Ye.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]&&bt[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(Ye.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=vt(e)){const n=Ye.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(Ye.isFunction(t))return t.call(this,e,n);if(Ye.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=vt(e)){const n=Ye.findKey(this,e);return!(!n||void 0===this[n]||t&&!kt(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=vt(e)){const o=Ye.findKey(n,e);!o||t&&!kt(0,n[o],o,t)||(delete n[o],r=!0)}}return Ye.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!kt(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Ye.forEach(this,((r,o)=>{const i=Ye.findKey(n,o);if(i)return t[i]=xt(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]=xt(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Ye.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Ye.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[wt]=this[wt]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=vt(e);t[r]||(!function(e,t){const n=Ye.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 Ye.isArray(e)?e.forEach(r):r(e),this}}function Et(e,t){const n=this||_t,r=t||n,o=Ct.from(r.headers);let i=r.data;return Ye.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function St(e){return!(!e||!e.__CANCEL__)}function Nt(e,t,n){Ze.call(this,null==e?"canceled":e,Ze.ERR_CANCELED,t,n),this.name="CanceledError"}function Tt(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Ze("Request failed with status code "+n.status,[Ze.ERR_BAD_REQUEST,Ze.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}Ct.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ye.reduceDescriptors(Ct.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Ye.freezeMethods(Ct),Ye.inherits(Nt,Ze,{__CANCEL__:!0});const At=(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)},Ot=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Rt=e=>(...t)=>Ye.asap((()=>e(...t))),Lt=gt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,gt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(gt.origin),gt.navigator&&/(msie|trident)/i.test(gt.navigator.userAgent)):()=>!0,Pt=gt.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Ye.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Ye.isString(r)&&a.push("path="+r),Ye.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 It(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 Ut=e=>e instanceof Ct?{...e}:e;function Ft(e,t){t=t||{};const n={};function r(e,t,n,r){return Ye.isPlainObject(e)&&Ye.isPlainObject(t)?Ye.merge.call({caseless:r},e,t):Ye.isPlainObject(t)?Ye.merge({},t):Ye.isArray(t)?t.slice():t}function o(e,t,n,o){return Ye.isUndefined(t)?Ye.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!Ye.isUndefined(t))return r(void 0,t)}function a(e,t){return Ye.isUndefined(t)?Ye.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(Ut(e),Ut(t),0,!0)};return Ye.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);Ye.isUndefined(a)&&i!==s||(n[r]=a)})),n}const jt=e=>{const t=Ft({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=Ct.from(s),t.url=st(It(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Ye.isFormData(r))if(gt.hasStandardBrowserEnv||gt.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(gt.hasStandardBrowserEnv&&(o&&Ye.isFunction(o)&&(o=o(t)),o||!1!==o&&Lt(t.url))){const e=i&&a&&Pt.read(a);e&&s.set(i,e)}return t},Dt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=jt(e);let o=r.data;const i=Ct.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=Ct.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());Tt((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 Ze("Request aborted",Ze.ECONNABORTED,e,h)),h=null)},h.onerror=function(){n(new Ze("Network Error",Ze.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||ct;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Ze(t,o.clarifyTimeoutError?Ze.ETIMEDOUT:Ze.ECONNABORTED,e,h)),h=null},void 0===o&&i.setContentType(null),"setRequestHeader"in h&&Ye.forEach(i.toJSON(),(function(e,t){h.setRequestHeader(t,e)})),Ye.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),u&&"json"!==u&&(h.responseType=r.responseType),f&&([l,d]=At(f,!0),h.addEventListener("progress",l)),p&&h.upload&&([s,c]=At(p),h.upload.addEventListener("progress",s),h.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{h&&(n(!t||t.type?new Nt(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===gt.protocols.indexOf(y)?n(new Ze("Unsupported protocol "+y+":",Ze.ERR_BAD_REQUEST,e)):h.send(o||null)}))},Mt=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Ze?t:new Nt(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new Ze(`timeout ${t} of ms exceeded`,Ze.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=()=>Ye.asap(a),s}},Bt=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},zt=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()}},Ht=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of zt(e))yield*Bt(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})},qt="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Wt=qt&&"function"==typeof ReadableStream,Vt=qt&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),$t=(e,...t)=>{try{return!!e(...t)}catch(yi){return!1}},Gt=Wt&&$t((()=>{let e=!1;const t=new Request(gt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Yt=Wt&&$t((()=>Ye.isReadableStream(new Response("").body))),Zt={stream:Yt&&(e=>e.body)};var Jt;qt&&(Jt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Zt[e]&&(Zt[e]=Ye.isFunction(Jt[e])?t=>t[e]():(t,n)=>{throw new Ze(`Response type '${e}' is not supported`,Ze.ERR_NOT_SUPPORT,n)})})));const Xt=async(e,t)=>{const n=Ye.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(Ye.isBlob(e))return e.size;if(Ye.isSpecCompliantForm(e)){const t=new Request(gt.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Ye.isArrayBufferView(e)||Ye.isArrayBuffer(e)?e.byteLength:(Ye.isURLSearchParams(e)&&(e+=""),Ye.isString(e)?(await Vt(e)).byteLength:void 0)})(t):n},Kt={http:null,xhr:Dt,fetch:qt&&(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}=jt(e);c=c?(c+"").toLowerCase():"text";let f,m=Mt([o,i&&i.toAbortSignal()],a);const h=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let g;try{if(l&&Gt&&"get"!==n&&"head"!==n&&0!==(g=await Xt(d,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(Ye.isFormData(r)&&(e=n.headers.get("content-type"))&&d.setContentType(e),n.body){const[e,t]=Ot(g,At(Rt(l)));r=Ht(n.body,65536,e,t)}}Ye.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=Yt&&("stream"===c||"response"===c);if(Yt&&(s||a&&h)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=Ye.toFiniteNumber(i.headers.get("content-length")),[n,r]=s&&Ot(t,At(Rt(s),!0))||[];i=new Response(Ht(i.body,65536,n,(()=>{r&&r(),h&&h()})),e)}c=c||"text";let y=await Zt[Ye.findKey(Zt,c)||"text"](i,e);return!a&&h&&h(),await new Promise(((t,n)=>{Tt(t,n,{data:y,headers:Ct.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 Ze("Network Error",Ze.ERR_NETWORK,e,f),{cause:y.cause||y});throw Ze.from(y,y&&y.code,e,f)}})};Ye.forEach(Kt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(yi){}Object.defineProperty(e,"adapterName",{value:t})}}));const Qt=e=>`- ${e}`,en=e=>Ye.isFunction(e)||null===e||!1===e,tn=e=>{e=Ye.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,!en(n)&&(r=Kt[(t=String(n)).toLowerCase()],void 0===r))throw new Ze(`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 Ze("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Qt).join("\n"):" "+Qt(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function nn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Nt(null,e)}function rn(e){nn(e),e.headers=Ct.from(e.headers),e.data=Et.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return tn(e.adapter||_t.adapter)(e).then((function(t){return nn(e),t.data=Et.call(e,e.transformResponse,t),t.headers=Ct.from(t.headers),t}),(function(t){return St(t)||(nn(e),t&&t.response&&(t.response.data=Et.call(e,e.transformResponse,t.response),t.response.headers=Ct.from(t.response.headers))),Promise.reject(t)}))}const on="1.8.3",an={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{an[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const sn={};an.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 Ze(r(o," has been removed"+(t?" in "+t:"")),Ze.ERR_DEPRECATED);return t&&!sn[o]&&(sn[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)}},an.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const ln={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Ze("options must be an object",Ze.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 Ze("option "+i+" must be "+n,Ze.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Ze("Unknown option "+i,Ze.ERR_BAD_OPTION)}},validators:an},cn=ln.validators;class dn{constructor(e){this.defaults=e,this.interceptors={request:new lt,response:new lt}}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(yi){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ft(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&ln.assertOptions(n,{silentJSONParsing:cn.transitional(cn.boolean),forcedJSONParsing:cn.transitional(cn.boolean),clarifyTimeoutError:cn.transitional(cn.boolean)},!1),null!=r&&(Ye.isFunction(r)?t.paramsSerializer={serialize:r}:ln.assertOptions(r,{encode:cn.function,serialize:cn.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),ln.assertOptions(t,{baseUrl:cn.spelling("baseURL"),withXsrfToken:cn.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Ye.merge(o.common,o[t.method]);o&&Ye.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Ct.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=[rn.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=rn.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 st(It((e=Ft(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}Ye.forEach(["delete","get","head","options"],(function(e){dn.prototype[e]=function(t,n){return this.request(Ft(n||{},{method:e,url:t,data:(n||{}).data}))}})),Ye.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Ft(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}dn.prototype[e]=t(),dn.prototype[e+"Form"]=t(!0)}));class un{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 Nt(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 un((function(t){e=t})),cancel:e}}}const pn={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(pn).forEach((([e,t])=>{pn[t]=e}));const fn=function e(t){const n=new dn(t),r=ce(dn.prototype.request,n);return Ye.extend(r,dn.prototype,n,{allOwnKeys:!0}),Ye.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Ft(t,n))},r}(_t);fn.Axios=dn,fn.CanceledError=Nt,fn.CancelToken=un,fn.isCancel=St,fn.VERSION=on,fn.toFormData=nt,fn.AxiosError=Ze,fn.Cancel=fn.CanceledError,fn.all=function(e){return Promise.all(e)},fn.spread=function(e){return function(t){return e.apply(null,t)}},fn.isAxiosError=function(e){return Ye.isObject(e)&&!0===e.isAxiosError},fn.mergeConfig=Ft,fn.AxiosHeaders=Ct,fn.formToJSON=e=>yt(Ye.isHTMLForm(e)?new FormData(e):e),fn.getAdapter=tn,fn.HttpStatusCode=pn,fn.default=fn;class mn{constructor(){__privateAdd(this,e)}initClient(t,n){__privateSet(this,e,fn.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 hn={backend:new class extends mn{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 gn;class yn{constructor(){__privateAdd(this,t),__privateAdd(this,n),__privateAdd(this,r),__privateAdd(this,o,(async e=>(gn||(gn=await hn.backend.getIdToken()),e.headers.Authorization=`Bearer ${gn}`,e)))}initClient(e,i,a){__privateSet(this,n,e),__privateSet(this,r,i),__privateSet(this,t,fn.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 gn||(gn=await hn.backend.getIdToken()),gn}getBaseUrl(){return __privateGet(this,n)}getProfileId(){return __privateGet(this,r)}}t=new WeakMap,n=new WeakMap,r=new WeakMap,o=new WeakMap;const _n=e=>{var t,n;throw"Auth_SessionExpired"===(null==(n=null==(t=e.response)?void 0:t.data)?void 0:n.code)&&le(),e};let bn=(a=class extends yn{constructor(){super(...arguments),__publicField(this,"_canceledSignal"),__privateAdd(this,i,(async e=>e))}get canceledSignal(){if(!this._canceledSignal){const e=new AbortController;e.abort(),this._canceledSignal=e.signal}return this._canceledSignal}url(e){return`${e}/benefits-onboarding`}initClient(e,t,n){super.initClient(e,t,n),this.getClient().interceptors.request.use(__privateGet(this,i))}async track(e,t,n){await this.getClient().post("/v1.0/analytics/track",{event:e,properties:t},{params:n}).catch((e=>{}))}},i=new WeakMap,a);const wn={backend:new class extends mn{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),_n),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 bn};const vn={workplaceBackend:new class extends yn{url(e){return`${e}/benefits-plan`}}},xn=(e,t,n,r)=>{const o=function(e,t){if("string"!=typeof e)throw new oe("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 oe(`Invalid token specified: missing part #${n+1}`);let o;try{o=ie(r)}catch(yi){throw new oe(`Invalid token specified: invalid base64 for part #${n+1} (${yi.message})`)}try{return JSON.parse(o)}catch(yi){throw new oe(`Invalid token specified: invalid json for part #${n+1} (${yi.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;wn.backend.initClient(s,i,n),wn.workplaceBackend.initClient(s,o,a);const l=e;hn.backend.initClient(l,i);const c=e;vn.workplaceBackend.initClient(c,o,a)};var kn,Cn,En,Sn,Nn=0,Tn=[],An=[],On=l,Rn=On.__b,Ln=On.__r,Pn=On.diffed,In=On.__c,Un=On.unmount,Fn=On.__;function jn(e,t){On.__h&&On.__h(Cn,e,Nn||t),Nn=0;var n=Cn.__H||(Cn.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:An}),n.__[e]}function Dn(e){return Nn=1,Mn(tr,e)}function Mn(e,t,n){var r=jn(kn++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):tr(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=Cn,!Cn.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))};Cn.u=!0;var i=Cn.shouldComponentUpdate,a=Cn.componentWillUpdate;Cn.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)},Cn.shouldComponentUpdate=o}return r.__N||r.__}function Bn(e,t){var n=jn(kn++,3);!On.__s&&er(n.__H,t)&&(n.__=e,n.i=t,Cn.__H.__h.push(n))}function zn(e,t){var n=jn(kn++,4);!On.__s&&er(n.__H,t)&&(n.__=e,n.i=t,Cn.__h.push(n))}function Hn(e){return Nn=5,Wn((function(){return{current:e}}),[])}function qn(e,t,n){Nn=6,zn((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 Wn(e,t){var n=jn(kn++,7);return er(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Vn(e,t){return Nn=8,Wn((function(){return e}),t)}function $n(e){var t=Cn.context[e.__c],n=jn(kn++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(Cn)),t.props.value):e.__}function Gn(e,t){On.useDebugValue&&On.useDebugValue(t?t(e):e)}function Yn(){var e=jn(kn++,11);if(!e.__){for(var t=Cn.__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 Zn(){for(var e;e=Tn.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Kn),e.__H.__h.forEach(Qn),e.__H.__h=[]}catch(t){e.__H.__h=[],On.__e(t,e.__v)}}On.__b=function(e){Cn=null,Rn&&Rn(e)},On.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Fn&&Fn(e,t)},On.__r=function(e){Ln&&Ln(e),kn=0;var t=(Cn=e.__c).__H;t&&(En===Cn?(t.__h=[],Cn.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=An,e.__N=e.i=void 0}))):(t.__h.forEach(Kn),t.__h.forEach(Qn),t.__h=[],kn=0)),En=Cn},On.diffed=function(e){Pn&&Pn(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Tn.push(t)&&Sn===On.requestAnimationFrame||((Sn=On.requestAnimationFrame)||Xn)(Zn)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==An&&(e.__=e.__V),e.i=void 0,e.__V=An}))),En=Cn=null},On.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Kn),e.__h=e.__h.filter((function(e){return!e.__||Qn(e)}))}catch(Di){t.some((function(e){e.__h&&(e.__h=[])})),t=[],On.__e(Di,e.__v)}})),In&&In(e,t)},On.unmount=function(e){Un&&Un(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Kn(e)}catch(n){t=n}})),n.__H=void 0,t&&On.__e(t,n.__v))};var Jn="function"==typeof requestAnimationFrame;function Xn(e){var t,n=function(){clearTimeout(r),Jn&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Jn&&(t=requestAnimationFrame(n))}function Kn(e){var t=Cn,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),Cn=t}function Qn(e){var t=Cn;e.__c=e.__(),Cn=t}function er(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function tr(e,t){return"function"==typeof t?t(e):t}function nr(e,t){for(var n in t)e[n]=t[n];return e}function rr(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 or(e,t){this.props=e,this.context=t}function ir(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:rr(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}(or.prototype=new E).isPureReactComponent=!0,or.prototype.shouldComponentUpdate=function(e,t){return rr(this.props,e)||rr(this.state,t)};var ar=l.__b;l.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ar&&ar(e)};var sr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function lr(e){function t(t){var n=nr({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=sr,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var cr=function(e,t){return null==e?null:P(P(e).map(t))},dr={map:cr,forEach:cr,count:function(e){return e?P(e).length:0},only:function(e){var t=P(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:P},ur=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);ur(e,t,n,r)};var pr=l.unmount;function fr(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=nr({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return fr(e,t,n)}))),e}function mr(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return mr(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 hr(){this.__u=0,this.t=null,this.__b=null}function gr(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function yr(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 _r(){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),pr&&pr(e)},(hr.prototype=new E).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=gr(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]=mr(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)},hr.prototype.componentWillUnmount=function(){this.t=[]},hr.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]=fr(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&v(C,null,e.fallback);return o&&(o.__u&=-33),[v(C,null,t.__a?null:e.children),o]};var br=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 wr(e){return this.getChildContext=function(){return e.context},e.children}function vr(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(wr,{context:t.context},e.__v),t.l)}function xr(e,t){var n=v(vr,{__v:e,i:t});return n.containerInfo=t,n}(_r.prototype=new E).__a=function(e){var t=this,n=gr(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),br(t,e,r)):o()};n?n(i):i()}},_r.prototype.render=function(e){this.u=null,this.o=new Map;var t=P(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},_r.prototype.componentDidUpdate=_r.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){br(e,n,t)}))};var kr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Cr=/^(?: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]/,Er=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Sr=/[A-Z0-9]/g,Nr="undefined"!=typeof document,Tr=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function Ar(e,t,n){return null==t.__k&&(t.textContent=""),W(e,t),"function"==typeof n&&n(),e?e.__c:null}function Or(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 Rr=l.event;function Lr(){}function Pr(){return this.cancelBubble}function Ir(){return this.defaultPrevented}l.event=function(e){return Rr&&(e=Rr(e)),e.persist=Lr,e.isPropagationStopped=Pr,e.isDefaultPrevented=Ir,e.nativeEvent=e};var Ur,Fr={enumerable:!1,configurable:!0,get:function(){return this.class}},jr=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||Nr&&"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||Tr(t.type)?"onfocus"===a?o="onfocusin":"onblur"===a?o="onfocusout":Er.test(o)?o=a:-1===n.indexOf("-")&&Cr.test(o)?o=o.replace(Sr,"-$&").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=P(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=P(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",Fr)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=kr,jr&&jr(e)};var Dr=l.__r;l.__r=function(e){Dr&&Dr(e),Ur=e.__c};var Mr=l.diffed;l.diffed=function(e){Mr&&Mr(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),Ur=null};var Br={ReactCurrentDispatcher:{current:{readContext:function(e){return Ur.__n[e.__c].props.value}}}};function zr(e){return v.bind(null,e)}function Hr(e){return!!e&&e.$$typeof===kr}function qr(e){return Hr(e)&&e.type===C}function Wr(e){return Hr(e)?$.apply(null,arguments):e}function Vr(e){return!!e.__k&&(W(null,e),!0)}function $r(e){return e&&(e.base||1===e.nodeType&&e)||null}var Gr=function(e,t){return e(t)},Yr=function(e,t){return e(t)},Zr=C;function Jr(e){e()}function Xr(e){return e}function Kr(){return[!1,Jr]}var Qr=zn,eo=Hr;function to(e,t){var n=t(),r=Dn({h:{__:n,v:t}}),o=r[0].h,i=r[1];return zn((function(){o.__=n,o.v=t,no(o)&&i({h:o})}),[e,n,t]),Bn((function(){return no(o)&&i({h:o}),e((function(){no(o)&&i({h:o})}))}),[e]),n}function no(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 ro={useState:Dn,useId:Yn,useReducer:Mn,useEffect:Bn,useLayoutEffect:zn,useInsertionEffect:Qr,useTransition:Kr,useDeferredValue:Xr,useSyncExternalStore:to,startTransition:Jr,useRef:Hn,useImperativeHandle:qn,useMemo:Wn,useCallback:Vn,useContext:$n,useDebugValue:Gn,version:"17.0.2",Children:dr,render:Ar,hydrate:Or,unmountComponentAtNode:Vr,createPortal:xr,createElement:v,createContext:G,createFactory:zr,cloneElement:Wr,createRef:k,Fragment:C,isValidElement:Hr,isElement:eo,isFragment:qr,findDOMNode:$r,Component:E,PureComponent:or,memo:ir,forwardRef:lr,flushSync:Yr,unstable_batchedUpdates:Gr,StrictMode:Zr,Suspense:hr,SuspenseList:_r,lazy:yr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Br};const oo=Object.freeze(Object.defineProperty({__proto__:null,Children:dr,Component:E,Fragment:C,PureComponent:or,StrictMode:Zr,Suspense:hr,SuspenseList:_r,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Br,cloneElement:Wr,createContext:G,createElement:v,createFactory:zr,createPortal:xr,createRef:k,default:ro,findDOMNode:$r,flushSync:Yr,forwardRef:lr,hydrate:Or,isElement:eo,isFragment:qr,isValidElement:Hr,lazy:yr,memo:ir,render:Ar,startTransition:Jr,unmountComponentAtNode:Vr,unstable_batchedUpdates:Gr,useCallback:Vn,useContext:$n,useDebugValue:Gn,useDeferredValue:Xr,useEffect:Bn,useErrorBoundary:function(e){var t=jn(kn++,10),n=Dn();return t.__=e,Cn.componentDidCatch||(Cn.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:Yn,useImperativeHandle:qn,useInsertionEffect:Qr,useLayoutEffect:zn,useMemo:Wn,useReducer:Mn,useRef:Hn,useState:Dn,useSyncExternalStore:to,useTransition:Kr,version:"17.0.2"},Symbol.toStringTag,{value:"Module"})),io=e=>v("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v("g",{clipPath:"url(#clip0_2383_2245)"},v("path",{d:"M0.639604 38.9047C1.28749 39.5526 2.27104 39.7271 3.10223 39.3416L25.6608 29.6293C26.7649 29.1174 27.0229 27.663 26.1624 26.8024L12.7907 13.4307C11.9301 12.57 10.4757 12.8281 9.96369 13.9323L0.202679 36.442C-0.182768 37.2732 -0.00828658 38.2568 0.639604 38.9047Z",fill:"#FFE266"}),v("path",{d:"M19.4314 27.5018L2.84876 34.6411C2.2627 34.9129 1.57431 34.8051 1.09874 34.3757L0.202679 36.4421C-0.182768 37.2734 -0.00828658 38.2568 0.639604 38.9047C1.28749 39.5526 2.27104 39.7271 3.10223 39.3416L25.4444 29.7226C24.9297 29.5162 19.5151 27.463 19.4314 27.5018Z",fill:"#EFAA66"}),v("path",{d:"M26.3181 28.7173C27.8596 27.1758 25.6184 22.4355 21.3124 18.1295C17.0064 13.8234 12.2661 11.5823 10.7246 13.1238C9.18318 14.6652 11.4243 19.4055 15.7303 23.7115C20.0364 28.0176 24.7767 30.2587 26.3181 28.7173Z",fill:"#FFE266"}),v("path",{d:"M22.4126 26.7308C23.4237 25.7197 21.7859 22.4424 18.7543 19.4109C15.7228 16.3793 12.4455 14.7415 11.4344 15.7526C10.4232 16.7638 12.0611 20.0411 15.0926 23.0726C18.1242 26.1042 21.4014 27.742 22.4126 26.7308Z",fill:"#EFAA66"}),v("path",{d:"M24.9319 30.0073C22.4747 30.0073 18.6692 27.78 15.1683 24.2792C11.9894 21.1002 9.81107 17.5992 9.48367 15.1424C9.42522 14.7034 9.73353 14.3002 10.1725 14.2417C10.6111 14.1834 11.0148 14.4916 11.0732 14.9306C11.3522 17.0232 13.4048 20.2477 16.3024 23.1452C20.0047 26.8476 23.4188 28.4618 25.0232 28.4018C25.4652 28.3857 25.8386 28.7288 25.8563 29.1713C25.8738 29.6137 25.5294 29.9868 25.0868 30.0043C25.0359 30.0062 24.984 30.0073 24.9319 30.0073Z",fill:"#D0844B"}),v("path",{d:"M16.3577 17.6285C16.1695 17.4403 16.0243 17.2039 15.9436 16.9306L15.2021 14.4208C14.922 13.473 15.1748 12.4576 15.8616 11.7708L17.2095 10.4229C17.8963 9.73605 18.9118 9.48339 19.8596 9.76347L22.5594 10.5255L21.6488 7.2768C21.3908 6.40351 21.8896 5.48644 22.7629 5.22841C23.6362 4.97037 24.5532 5.4692 24.8113 6.34249L25.5528 8.85226C25.8328 9.80012 25.5801 10.8156 24.8934 11.5023L23.5455 12.8502C22.8587 13.5369 21.8432 13.7896 20.8955 13.5096L18.1681 12.6202L19.1061 15.9963C19.3642 16.8696 18.8653 17.7866 17.9921 18.0447C17.3919 18.222 16.771 18.0419 16.3577 17.6285Z",fill:"#CAB4EF"}),v("path",{d:"M22.5594 10.5256L19.8596 9.76358C19.0449 9.52286 18.1805 9.67602 17.5176 10.1598C17.7032 10.902 17.9393 11.8894 18.168 12.6202L20.8954 13.5096C21.7487 13.7617 22.6567 13.5819 23.3305 13.0424C23.0918 12.2954 22.7865 11.2761 22.5594 10.5256Z",fill:"#A183E2"}),v("path",{d:"M26.8006 16.4551C26.9888 16.6433 27.2253 16.7885 27.4985 16.8692L30.0083 17.6106C30.956 17.8906 31.9715 17.638 32.6583 16.9512L34.0062 15.6033C34.693 14.9164 34.9457 13.901 34.6656 12.9532L33.9036 10.2534L37.1523 11.1639C38.0256 11.4219 38.9427 10.9231 39.2008 10.0498C39.4588 9.17651 38.96 8.25944 38.0867 8.00141L35.5769 7.25994C34.6291 6.97994 33.6136 7.23268 32.9269 7.91938L31.579 9.26728C30.8922 9.95406 30.6396 10.9695 30.9196 11.9173L31.8089 14.6447L28.4328 13.7066C27.5595 13.4486 26.6425 13.9474 26.3844 14.8207C26.2071 15.4209 26.3872 16.0418 26.8006 16.4551Z",fill:"#F7C4DB"}),v("path",{d:"M34.6649 12.9532L33.9029 10.2533C33.1175 10.0841 32.0186 9.8675 31.2346 9.69165C30.8149 10.3375 30.692 11.1496 30.9189 11.9173L31.8082 14.6447C32.6214 14.8455 33.4818 14.984 34.2625 15.3037C34.7512 14.6396 34.9067 13.7713 34.6649 12.9532Z",fill:"#EF8BBD"}),v("path",{d:"M30.639 2.8965C30.1162 3.4193 29.2684 3.4193 28.7456 2.8965C28.2228 2.3737 28.2228 1.52599 28.7456 1.00319C29.2684 0.480383 30.1162 0.480383 30.639 1.00319C31.1618 1.52607 31.1618 2.3737 30.639 2.8965Z",fill:"#FFA585"}),v("path",{d:"M32.6591 25.138C33.3985 25.138 33.9979 24.5386 33.9979 23.7992C33.9979 23.0598 33.3985 22.4604 32.6591 22.4604C31.9197 22.4604 31.3203 23.0598 31.3203 23.7992C31.3203 24.5386 31.9197 25.138 32.6591 25.138Z",fill:"#78EAC4"}),v("path",{d:"M25.3352 24.9889C24.8124 25.5117 23.9647 25.5117 23.4419 24.9889C22.9191 24.4661 22.9191 23.6184 23.4419 23.0956C23.9647 22.5728 24.8124 22.5728 25.3352 23.0956C25.858 23.6185 25.858 24.4661 25.3352 24.9889Z",fill:"#78EAC4"}),v("path",{d:"M25.3352 24.9889C24.8124 25.5117 23.9647 25.5117 23.4419 24.9889C22.9191 24.4661 22.9191 23.6184 23.4419 23.0956C23.9647 22.5728 24.8124 22.5728 25.3352 23.0956C25.858 23.6185 25.858 24.4661 25.3352 24.9889Z",fill:"#8BB6EF"}),v("path",{d:"M7.28893 28.9138C7.18316 28.9138 7.07556 28.8927 6.97228 28.8482C6.5655 28.6731 6.37771 28.2014 6.55291 27.7946L7.56837 25.4361C7.74349 25.0294 8.2153 24.8413 8.62191 25.0167C9.02869 25.1919 9.21648 25.6635 9.04128 26.0703L8.02582 28.4288C7.8952 28.7322 7.59956 28.9138 7.28893 28.9138Z",fill:"white"}),v("path",{d:"M9.44127 23.916C9.33551 23.916 9.22798 23.895 9.12454 23.8505C8.71785 23.6753 8.53005 23.2037 8.70526 22.7968L9.01477 22.0779C9.18989 21.6713 9.66137 21.4832 10.0684 21.6586C10.4751 21.8337 10.6629 22.3054 10.4878 22.7122L10.1782 23.4312C10.0475 23.7344 9.75182 23.916 9.44127 23.916Z",fill:"white"}),v("path",{d:"M15.7341 0.651858L16.3927 2.50396C16.4209 2.58326 16.4767 2.64613 16.5472 2.67788L18.1927 3.41926C18.4251 3.52399 18.4251 3.89436 18.1927 3.99916L16.5472 4.74054C16.4767 4.7723 16.4209 4.83516 16.3927 4.91438L15.7341 6.76648C15.6411 7.02813 15.3119 7.02813 15.2189 6.76648L14.5603 4.91438C14.532 4.83508 14.4762 4.77222 14.4057 4.74054L12.7603 3.99916C12.5278 3.89444 12.5278 3.52407 12.7603 3.41926L14.4057 2.67788C14.4762 2.64613 14.532 2.58326 14.5603 2.50396L15.2189 0.651858C15.3119 0.390136 15.6411 0.390136 15.7341 0.651858Z",fill:"#F7C4DB"}),v("path",{d:"M38.0472 17.3018L38.5357 18.6756C38.5567 18.7344 38.598 18.781 38.6503 18.8046L39.8709 19.3545C40.0434 19.4322 40.0434 19.7069 39.8709 19.7846L38.6503 20.3345C38.598 20.3581 38.5567 20.4047 38.5357 20.4635L38.0472 21.8373C37.9781 22.0314 37.734 22.0314 37.665 21.8373L37.1764 20.4635C37.1555 20.4047 37.1141 20.3581 37.0618 20.3345L35.8413 19.7846C35.6688 19.7069 35.6688 19.4322 35.8413 19.3545L37.0618 18.8046C37.1141 18.781 37.1555 18.7344 37.1764 18.6756L37.665 17.3018C37.734 17.1077 37.9781 17.1077 38.0472 17.3018Z",fill:"#CAB4EF"}),v("path",{d:"M28.9622 6.95622C29.3048 6.95622 29.5826 6.67847 29.5826 6.33584C29.5826 5.99321 29.3048 5.71545 28.9622 5.71545C28.6196 5.71545 28.3418 5.99321 28.3418 6.33584C28.3418 6.67847 28.6196 6.95622 28.9622 6.95622Z",fill:"#78EAC4"}),v("path",{d:"M38.3556 2.49627C38.4328 1.86823 37.9862 1.29654 37.3581 1.21937C36.73 1.14221 36.1583 1.58878 36.0811 2.21683C36.004 2.84487 36.4506 3.41656 37.0787 3.49373C37.7068 3.57089 38.2785 3.12432 38.3556 2.49627Z",fill:"#8BB6EF"})),v("defs",null,v("clipPath",{id:"clip0_2383_2245"},v("rect",{width:40,height:40,fill:"white"}))));var 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]=Dn(),o=Hn("Unregistered"),i=Hn("Unlinked"),[a,s]=Dn([]),l=Vn((e=>{e?("Unregistered"===o.current&&(o.current="NewlyRegistered"),"Unlinked"===i.current&&(i.current="NewlyLinked")):o.current="RegistrationAbandoned"}),[]),c=Vn((()=>o.current),[]),d=Vn((()=>i.current),[]),u=Wn((()=>a.some((e=>"Perks"!==e.offerName&&e.isCompleted))),[a]),p=Vn(((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=Wn((()=>{return e=(null==n?void 0:n.identity.email)??"",t=u,{joinBenefits:{desktopImageUrl:ne,mobileImageUrl:re,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(io,{}),subTitle:so("span",{children:["As an additional bonus, 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."]})},buttonText:"Get Started"},setUpBenefits:{title:"Unlock your $1,300 Flare Benefits Allowance",description:"You've been allocated up to $1,300 for reimbursement as part of your Flare Benefits Allowance. Make your selections today, to be eligible for reimbursement later.",buttonText:"Set up your benefits",progress:{title:"See how it works",steps:[{title:"Join your workplace benefits program",completed:!0},{title:"Select the benefits you want to include as part of your allowance.",completed:!1},{title:"Purchase or switch to an eligible product",completed:!1},{title:"Keep your product for 90 days and we'll send you a Flare gift card",completed:!1}]},termsAndConditions:()=>so("div",{className:"flex flex-col gap-2",children:so("span",{children:["Allowance offer expires today.",so("br",{})," 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=Wn((()=>{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 Bn((()=>{(async()=>{const e=await wn.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-default:hover:before{content:var(--tw-content);cursor:default}.hover\\:before\\:cursor-pointer:hover:before{content:var(--tw-content);cursor:pointer}.hover\\:before\\:content-\\[\\\'\\\'\\]:hover:before{--tw-content:"";content:var(--tw-content)}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:\\!ring-gray-200:focus{--tw-ring-opacity:1!important;--tw-ring-color:rgb(229 231 235/var(--tw-ring-opacity))!important}.focus\\:ring-primary-focus:focus{--tw-ring-color:var(--fl-color-primary-focus)}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\\:ring-gray-500:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(107 114 128/var(--tw-ring-opacity))}.disabled\\:cursor-text:disabled{cursor:text}.disabled\\:bg-gray-100:disabled{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.disabled\\:px-0:disabled{padding-left:0;padding-right:0}.disabled\\:text-gray-300:disabled{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.disabled\\:text-gray-600:disabled{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.disabled\\:opacity-75:disabled{opacity:.75}.disabled\\:hover\\:bg-transparent:hover:disabled{background-color:transparent}@media (min-width: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]=Dn(!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]=Dn(!1),s=Hn(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:Vn((()=>{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=e=>{Bn(e,[])};function wo(){return wo=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},wo.apply(null,arguments)}function vo(e,t){return(vo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function xo(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 C(e){return e.children}function E(e,t){this.props=e,this.context=t}function S(e,t){if(null==t)return e.__?S(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?S(e):null}function N(e,t,n){var r,o=e.__v,i=o.__e,a=e.__P;if(a)return(r=b({},o)).__v=o.__v+1,l.vnode&&l.vnode(r),D(a,r,o,e.__n,void 0!==a.ownerSVGElement,32&o.__u?[i]:null,t,null==i?S(o):i,!!(32&o.__u),n),r.__v=o.__v,r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=i&&T(r),r}function T(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return T(e)}}function 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(C,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?x(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,s=I(o,n,a=r+u,d),o.__i=s,i=null,-1!==s&&(d--,(i=n[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&u--,"function"!=typeof o.type&&(o.__u|=65536)):s!==a&&(s===a+1?u++:s>a?d>l-a?u+=s-a:u--:u=s<a&&s==a-1?s-a:0,s!==r+u&&(o.__u|=65536))):(i=n[r])&&null==i.key&&i.__e&&0==(131072&i.__u)&&(i.__e==e.__d&&(e.__d=S(i)),H(i,i,!1),n[r]=null,d--);if(d)for(r=0;r<c;r++)null!=(i=n[r])&&0==(131072&i.__u)&&(i.__e==e.__d&&(e.__d=S(i)),H(i,i))}(n,t,b),l=n.__d,u=0;u<w;u++)null!=(f=n.__k[u])&&"boolean"!=typeof f&&"function"!=typeof f&&(p=-1===f.__i?h:b[f.__i]||h,f.__i=u,D(e,f,p,o,i,a,s,l,c,d),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&z(p.ref,null,f),d.push(f.ref,f.__c||m,f)),null==y&&null!=m&&(y=m),65536&f.__u||p.__k===f.__k?l=L(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 L(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=L(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 P(e,t){return t=t||[],null==e||"boolean"==typeof e||(_(e)?e.some((function(e){P(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?B:j,i)):e.removeEventListener(t,i?B:j,i);else{if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(a){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function j(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(l.event?l.event(e):e)}}function B(e){if(this.l)return this.l[e.type+!0](l.event?l.event(e):e)}function D(e,t,n,r,o,i,a,c,d,u){var p,f,m,g,y,v,x,k,N,T,O,A,L,P,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,A=l.__r,L=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),P=0;P<f._sb.length;P++)f.__h.push(f._sb[P]);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&&++L<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===C&&null==p.key?p.props.children:p)?I:[I],t,n,r,o,i,a,c,d,u),f.base=t.__e,t.__u&=-161,f.__h.length&&a.push(f),x&&(f.__E=f.__=null)}catch(j){t.__v=null,d||null!=i?(t.__e=c,t.__u|=d?160:32,i[i.indexOf(c)]=null):(t.__e=n.__e,t.__k=n.__k),l.__e(j,t,n)}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,o,i,a,l,c){var d,u,p,f,m,g,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&&S(n,0),l,c),null!=i)for(d=i.length;d--;)null!=i[d]&&w(i[d]);l||(d="value",void 0!==g&&(g!==e[d]||"progress"===x&&!g||"option"===x&&g!==b[d])&&F(e,d,g,b[d],!1),d="checked",void 0!==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=[],D(t,e=(!r&&n||t).__k=v(C,null,[e]),o||h,h,void 0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?s.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,a),e.__d=void 0,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=C,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 Z=["context","children"];function J(e){return this.getChildContext=function(){return e.context},$(e.children,function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(e,Z))}function X(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=v(J,Y({},this._props,{context:e.detail.context}),function e(t,n){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var r=[],o={},i=0,a=t.attributes,s=t.childNodes;for(i=a.length;i--;)"slot"!==a[i].name&&(o[a[i].name]=a[i].value,o[K(a[i].name)]=a[i].value);for(i=s.length;i--;){var l=e(s[i],null),c=s[i].slot;c?o[c]=v(te,{name:c},l):r[i]=l}var d=n?v(te,null,r):r;return v(n||t.nodeName.toLowerCase(),o,d)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?V:W)(this._vdom,this._root)}function K(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function Q(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[K(e)]=n,this._vdom=$(this._vdom,r),W(this._vdom,this._root)}}function ee(){W(this._vdom=null,this._root)}function te(e,t){var n=this;return v("slot",Y({},e,{ref:function(e){e?(n.ref=e,n._listener||(n._listener=function(e){e.stopPropagation(),e.detail.context=t},e.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}var ne=(e=>(e.BenefitsExisting="BenefitsExisting",e.AppInvite="AppInvite",e.BenefitsOnboarding="BenefitsOnboarding",e))(ne||{});const re=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/intro_allowance_experiment-Bit4myCA.png").href:new URL("assets/intro_allowance_experiment-Bit4myCA.png","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),oe=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/intro_allowance_experiment-DyP_CJyB.png").href:new URL("assets/intro_allowance_experiment-DyP_CJyB.png","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href);class ie extends Error{}function ae(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,((e,t)=>{let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(n){return atob(t)}}ie.prototype.name="InvalidTokenError";const se=crypto.randomUUID?crypto.randomUUID():crypto.getRandomValues(new Uint32Array(5)).join("-"),le=e=>(window.addEventListener(se,e),()=>window.removeEventListener(se,e)),ce=()=>{window.dispatchEvent(new Event(se))};function de(e,t){return function(){return e.apply(t,arguments)}}const{toString:ue}=Object.prototype,{getPrototypeOf:pe}=Object,fe=(e=>t=>{const n=ue.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),me=e=>(e=e.toLowerCase(),t=>fe(t)===e),he=e=>t=>typeof t===e,{isArray:ge}=Array,ye=he("undefined");const _e=me("ArrayBuffer");const be=he("string"),we=he("function"),ve=he("number"),xe=e=>null!==e&&"object"==typeof e,ke=e=>{if("object"!==fe(e))return!1;const t=pe(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},Ce=me("Date"),Ee=me("File"),Se=me("Blob"),Ne=me("FileList"),Te=me("URLSearchParams"),[Oe,Ae,Re,Le]=["ReadableStream","Request","Response","Headers"].map(me);function Pe(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),ge(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function Ie(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Ue="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Fe=e=>!ye(e)&&e!==Ue;const je=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&pe(Uint8Array)),Be=me("HTMLFormElement"),De=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Me=me("RegExp"),ze=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Pe(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)};const He=me("AsyncFunction"),qe=(We="function"==typeof setImmediate,Ve=we(Ue.postMessage),We?setImmediate:Ve?($e=`axios@${Math.random()}`,Ge=[],Ue.addEventListener("message",(({source:e,data:t})=>{e===Ue&&t===$e&&Ge.length&&Ge.shift()()}),!1),e=>{Ge.push(e),Ue.postMessage($e,"*")}):e=>setTimeout(e));var We,Ve,$e,Ge;const Ye="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Ue):"undefined"!=typeof process&&process.nextTick||qe,Ze={isArray:ge,isArrayBuffer:_e,isBuffer:function(e){return null!==e&&!ye(e)&&null!==e.constructor&&!ye(e.constructor)&&we(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||we(e.append)&&("formdata"===(t=fe(e))||"object"===t&&we(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&_e(e.buffer),t},isString:be,isNumber:ve,isBoolean:e=>!0===e||!1===e,isObject:xe,isPlainObject:ke,isReadableStream:Oe,isRequest:Ae,isResponse:Re,isHeaders:Le,isUndefined:ye,isDate:Ce,isFile:Ee,isBlob:Se,isRegExp:Me,isFunction:we,isStream:e=>xe(e)&&we(e.pipe),isURLSearchParams:Te,isTypedArray:je,isFileList:Ne,forEach:Pe,merge:function e(){const{caseless:t}=Fe(this)&&this||{},n={},r=(r,o)=>{const i=t&&Ie(n,o)||o;ke(n[i])&&ke(r)?n[i]=e(n[i],r):ke(r)?n[i]=e({},r):ge(r)?n[i]=r.slice():n[i]=r};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&Pe(arguments[o],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(Pe(t,((t,r)=>{n&&we(t)?e[r]=de(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&pe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:fe,kindOfTest:me,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(ge(e))return e;let t=e.length;if(!ve(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:Be,hasOwnProperty:De,hasOwnProp:De,reduceDescriptors:ze,freezeMethods:e=>{ze(e,((t,n)=>{if(we(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];we(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return ge(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Ie,global:Ue,isContextDefined:Fe,isSpecCompliantForm:function(e){return!!(e&&we(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(xe(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=ge(e)?[]:{};return Pe(e,((e,t)=>{const i=n(e,r+1);!ye(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:He,isThenable:e=>e&&(xe(e)||we(e))&&we(e.then)&&we(e.catch),setImmediate:qe,asap:Ye};function Je(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}Ze.inherits(Je,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ze.toJSONObject(this.config),code:this.code,status:this.status}}});const Xe=Je.prototype,Ke={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Ke[e]={value:e}})),Object.defineProperties(Je,Ke),Object.defineProperty(Xe,"isAxiosError",{value:!0}),Je.from=(e,t,n,r,o,i)=>{const a=Object.create(Xe);return Ze.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Je.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function Qe(e){return Ze.isPlainObject(e)||Ze.isArray(e)}function et(e){return Ze.endsWith(e,"[]")?e.slice(0,-2):e}function tt(e,t,n){return e?e.concat(t).map((function(e,t){return e=et(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const nt=Ze.toFlatObject(Ze,{},null,(function(e){return/^is[A-Z]/.test(e)}));function rt(e,t,n){if(!Ze.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Ze.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Ze.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Ze.isSpecCompliantForm(t);if(!Ze.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Ze.isDate(e))return e.toISOString();if(!s&&Ze.isBlob(e))throw new Je("Blob is not supported. Use a Buffer instead.");return Ze.isArrayBuffer(e)||Ze.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(Ze.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Ze.isArray(e)&&function(e){return Ze.isArray(e)&&!e.some(Qe)}(e)||(Ze.isFileList(e)||Ze.endsWith(n,"[]"))&&(s=Ze.toArray(e)))return n=et(n),s.forEach((function(e,r){!Ze.isUndefined(e)&&null!==e&&t.append(!0===a?tt([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!Qe(e)||(t.append(tt(o,n,i),l(e)),!1)}const d=[],u=Object.assign(nt,{defaultVisitor:c,convertValue:l,isVisitable:Qe});if(!Ze.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Ze.isUndefined(n)){if(-1!==d.indexOf(n))throw Error("Circular reference detected in "+r.join("."));d.push(n),Ze.forEach(n,(function(n,i){!0===(!(Ze.isUndefined(n)||null===n)&&o.call(t,n,Ze.isString(i)?i.trim():i,r,u))&&e(n,r?r.concat(i):[i])})),d.pop()}}(e),t}function ot(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function it(e,t){this._pairs=[],e&&rt(e,this,t)}const at=it.prototype;function st(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function lt(e,t,n){if(!t)return e;const r=n&&n.encode||st;Ze.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):Ze.isURLSearchParams(t)?t.toString():new it(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}at.append=function(e,t){this._pairs.push([e,t])},at.toString=function(e){const t=e?function(t){return e.call(this,t,ot)}:ot;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class ct{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Ze.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const dt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ut={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:it,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},pt="undefined"!=typeof window&&"undefined"!=typeof document,ft="object"==typeof navigator&&navigator||void 0,mt=pt&&(!ft||["ReactNative","NativeScript","NS"].indexOf(ft.product)<0),ht="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,gt=pt&&window.location.href||"http://localhost",yt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:pt,hasStandardBrowserEnv:mt,hasStandardBrowserWebWorkerEnv:ht,navigator:ft,origin:gt},Symbol.toStringTag,{value:"Module"})),...ut};function _t(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&Ze.isArray(r)?r.length:i,s)return Ze.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&Ze.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&Ze.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(Ze.isFormData(e)&&Ze.isFunction(e.entries)){const n={};return Ze.forEachEntry(e,((e,r)=>{t(function(e){return Ze.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const bt={transitional:dt,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Ze.isObject(e);o&&Ze.isHTMLForm(e)&&(e=new FormData(e));if(Ze.isFormData(e))return r?JSON.stringify(_t(e)):e;if(Ze.isArrayBuffer(e)||Ze.isBuffer(e)||Ze.isStream(e)||Ze.isFile(e)||Ze.isBlob(e)||Ze.isReadableStream(e))return e;if(Ze.isArrayBufferView(e))return e.buffer;if(Ze.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return rt(e,new yt.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return yt.isNode&&Ze.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=Ze.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return rt(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Ze.isString(e))try{return(t||JSON.parse)(e),Ze.trim(e)}catch(_i){if("SyntaxError"!==_i.name)throw _i}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||bt.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Ze.isResponse(e)||Ze.isReadableStream(e))return e;if(e&&Ze.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(_i){if(n){if("SyntaxError"===_i.name)throw Je.from(_i,Je.ERR_BAD_RESPONSE,this,null,this.response);throw _i}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:yt.classes.FormData,Blob:yt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ze.forEach(["delete","get","head","post","put","patch"],(e=>{bt.headers[e]={}}));const wt=Ze.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),vt=Symbol("internals");function xt(e){return e&&String(e).trim().toLowerCase()}function kt(e){return!1===e||null==e?e:Ze.isArray(e)?e.map(kt):String(e)}function Ct(e,t,n,r,o){return Ze.isFunction(r)?r.call(this,t,n):(o&&(t=n),Ze.isString(t)?Ze.isString(r)?-1!==t.indexOf(r):Ze.isRegExp(r)?r.test(t):void 0:void 0)}class Et{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=xt(t);if(!o)throw new Error("header name must be a non-empty string");const i=Ze.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=kt(e))}const i=(e,t)=>Ze.forEach(e,((e,n)=>o(e,n,t)));if(Ze.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Ze.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&wt[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(Ze.isHeaders(e))for(const[a,s]of e.entries())o(s,a,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=xt(e)){const n=Ze.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(Ze.isFunction(t))return t.call(this,e,n);if(Ze.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=xt(e)){const n=Ze.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ct(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=xt(e)){const o=Ze.findKey(n,e);!o||t&&!Ct(0,n[o],o,t)||(delete n[o],r=!0)}}return Ze.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Ct(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Ze.forEach(this,((r,o)=>{const i=Ze.findKey(n,o);if(i)return t[i]=kt(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=kt(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Ze.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Ze.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[vt]=this[vt]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=xt(e);t[r]||(!function(e,t){const n=Ze.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return Ze.isArray(e)?e.forEach(r):r(e),this}}function St(e,t){const n=this||bt,r=t||n,o=Et.from(r.headers);let i=r.data;return Ze.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Nt(e){return!(!e||!e.__CANCEL__)}function Tt(e,t,n){Je.call(this,null==e?"canceled":e,Je.ERR_CANCELED,t,n),this.name="CanceledError"}function Ot(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Je("Request failed with status code "+n.status,[Je.ERR_BAD_REQUEST,Je.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}Et.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ze.reduceDescriptors(Et.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Ze.freezeMethods(Et),Ze.inherits(Tt,Je,{__CANCEL__:!0});const At=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let d=a,u=0;for(;d!==i;)u+=n[d++],d%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const p=c&&l-c;return p?Math.round(1e3*u/p):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout((()=>{r=null,a(n)}),i-s)))},()=>n&&a(n)]}((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},Rt=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Lt=e=>(...t)=>Ze.asap((()=>e(...t))),Pt=yt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,yt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(yt.origin),yt.navigator&&/(msie|trident)/i.test(yt.navigator.userAgent)):()=>!0,It=yt.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Ze.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Ze.isString(r)&&a.push("path="+r),Ze.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Ut(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&r||0==n?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Ft=e=>e instanceof Et?{...e}:e;function jt(e,t){t=t||{};const n={};function r(e,t,n,r){return Ze.isPlainObject(e)&&Ze.isPlainObject(t)?Ze.merge.call({caseless:r},e,t):Ze.isPlainObject(t)?Ze.merge({},t):Ze.isArray(t)?t.slice():t}function o(e,t,n,o){return Ze.isUndefined(t)?Ze.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!Ze.isUndefined(t))return r(void 0,t)}function a(e,t){return Ze.isUndefined(t)?Ze.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>o(Ft(e),Ft(t),0,!0)};return Ze.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);Ze.isUndefined(a)&&i!==s||(n[r]=a)})),n}const Bt=e=>{const t=jt({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=Et.from(s),t.url=lt(Ut(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Ze.isFormData(r))if(yt.hasStandardBrowserEnv||yt.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(yt.hasStandardBrowserEnv&&(o&&Ze.isFunction(o)&&(o=o(t)),o||!1!==o&&Pt(t.url))){const e=i&&a&&It.read(a);e&&s.set(i,e)}return t},Dt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Bt(e);let o=r.data;const i=Et.from(r.headers).normalize();let a,s,l,c,d,{responseType:u,onUploadProgress:p,onDownloadProgress:f}=r;function m(){c&&c(),d&&d(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let h=new XMLHttpRequest;function g(){if(!h)return;const r=Et.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());Ot((function(e){t(e),m()}),(function(e){n(e),m()}),{data:u&&"text"!==u&&"json"!==u?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout,"onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(g)},h.onabort=function(){h&&(n(new Je("Request aborted",Je.ECONNABORTED,e,h)),h=null)},h.onerror=function(){n(new Je("Network Error",Je.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||dt;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Je(t,o.clarifyTimeoutError?Je.ETIMEDOUT:Je.ECONNABORTED,e,h)),h=null},void 0===o&&i.setContentType(null),"setRequestHeader"in h&&Ze.forEach(i.toJSON(),(function(e,t){h.setRequestHeader(t,e)})),Ze.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),u&&"json"!==u&&(h.responseType=r.responseType),f&&([l,d]=At(f,!0),h.addEventListener("progress",l)),p&&h.upload&&([s,c]=At(p),h.upload.addEventListener("progress",s),h.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{h&&(n(!t||t.type?new Tt(null,e,h):t),h.abort(),h=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===yt.protocols.indexOf(y)?n(new Je("Unsupported protocol "+y+":",Je.ERR_BAD_REQUEST,e)):h.send(o||null)}))},Mt=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Je?t:new Tt(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new Je(`timeout ${t} of ms exceeded`,Je.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=()=>Ze.asap(a),s}},zt=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},Ht=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},qt=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of Ht(e))yield*zt(n,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw s(t),t}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},Wt="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Vt=Wt&&"function"==typeof ReadableStream,$t=Wt&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Gt=(e,...t)=>{try{return!!e(...t)}catch(_i){return!1}},Yt=Vt&&Gt((()=>{let e=!1;const t=new Request(yt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Zt=Vt&&Gt((()=>Ze.isReadableStream(new Response("").body))),Jt={stream:Zt&&(e=>e.body)};var Xt;Wt&&(Xt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Jt[e]&&(Jt[e]=Ze.isFunction(Xt[e])?t=>t[e]():(t,n)=>{throw new Je(`Response type '${e}' is not supported`,Je.ERR_NOT_SUPPORT,n)})})));const Kt=async(e,t)=>{const n=Ze.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(Ze.isBlob(e))return e.size;if(Ze.isSpecCompliantForm(e)){const t=new Request(yt.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Ze.isArrayBufferView(e)||Ze.isArrayBuffer(e)?e.byteLength:(Ze.isURLSearchParams(e)&&(e+=""),Ze.isString(e)?(await $t(e)).byteLength:void 0)})(t):n},Qt={http:null,xhr:Dt,fetch:Wt&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:d,withCredentials:u="same-origin",fetchOptions:p}=Bt(e);c=c?(c+"").toLowerCase():"text";let f,m=Mt([o,i&&i.toAbortSignal()],a);const h=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let g;try{if(l&&Yt&&"get"!==n&&"head"!==n&&0!==(g=await Kt(d,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(Ze.isFormData(r)&&(e=n.headers.get("content-type"))&&d.setContentType(e),n.body){const[e,t]=Rt(g,At(Lt(l)));r=qt(n.body,65536,e,t)}}Ze.isString(u)||(u=u?"include":"omit");const o="credentials"in Request.prototype;f=new Request(t,{...p,signal:m,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:o?u:void 0});let i=await fetch(f);const a=Zt&&("stream"===c||"response"===c);if(Zt&&(s||a&&h)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=Ze.toFiniteNumber(i.headers.get("content-length")),[n,r]=s&&Rt(t,At(Lt(s),!0))||[];i=new Response(qt(i.body,65536,n,(()=>{r&&r(),h&&h()})),e)}c=c||"text";let y=await Jt[Ze.findKey(Jt,c)||"text"](i,e);return!a&&h&&h(),await new Promise(((t,n)=>{Ot(t,n,{data:y,headers:Et.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 Je("Network Error",Je.ERR_NETWORK,e,f),{cause:y.cause||y});throw Je.from(y,y&&y.code,e,f)}})};Ze.forEach(Qt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(_i){}Object.defineProperty(e,"adapterName",{value:t})}}));const en=e=>`- ${e}`,tn=e=>Ze.isFunction(e)||null===e||!1===e,nn=e=>{e=Ze.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!tn(n)&&(r=Qt[(t=String(n)).toLowerCase()],void 0===r))throw new Je(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new Je("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(en).join("\n"):" "+en(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function rn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Tt(null,e)}function on(e){rn(e),e.headers=Et.from(e.headers),e.data=St.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return nn(e.adapter||bt.adapter)(e).then((function(t){return rn(e),t.data=St.call(e,e.transformResponse,t),t.headers=Et.from(t.headers),t}),(function(t){return Nt(t)||(rn(e),t&&t.response&&(t.response.data=St.call(e,e.transformResponse,t.response),t.response.headers=Et.from(t.response.headers))),Promise.reject(t)}))}const an="1.8.3",sn={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{sn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const ln={};sn.transitional=function(e,t,n){function r(e,t){return"[Axios v1.8.3] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Je(r(o," has been removed"+(t?" in "+t:"")),Je.ERR_DEPRECATED);return t&&!ln[o]&&(ln[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},sn.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const cn={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Je("options must be an object",Je.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new Je("option "+i+" must be "+n,Je.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Je("Unknown option "+i,Je.ERR_BAD_OPTION)}},validators:sn},dn=cn.validators;class un{constructor(e){this.defaults=e,this.interceptors={request:new ct,response:new ct}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(_i){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=jt(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&cn.assertOptions(n,{silentJSONParsing:dn.transitional(dn.boolean),forcedJSONParsing:dn.transitional(dn.boolean),clarifyTimeoutError:dn.transitional(dn.boolean)},!1),null!=r&&(Ze.isFunction(r)?t.paramsSerializer={serialize:r}:cn.assertOptions(r,{encode:dn.function,serialize:dn.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),cn.assertOptions(t,{baseUrl:dn.spelling("baseURL"),withXsrfToken:dn.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Ze.merge(o.common,o[t.method]);o&&Ze.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Et.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let d,u=0;if(!s){const e=[on.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),d=e.length,c=Promise.resolve(t);u<d;)c=c.then(e[u++],e[u++]);return c}d=a.length;let p=t;for(u=0;u<d;){const e=a[u++],t=a[u++];try{p=e(p)}catch(f){t.call(this,f);break}}try{c=on.call(this,p)}catch(f){return Promise.reject(f)}for(u=0,d=l.length;u<d;)c=c.then(l[u++],l[u++]);return c}getUri(e){return lt(Ut((e=jt(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}Ze.forEach(["delete","get","head","options"],(function(e){un.prototype[e]=function(t,n){return this.request(jt(n||{},{method:e,url:t,data:(n||{}).data}))}})),Ze.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(jt(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}un.prototype[e]=t(),un.prototype[e+"Form"]=t(!0)}));class pn{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new Tt(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new pn((function(t){e=t})),cancel:e}}}const fn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(fn).forEach((([e,t])=>{fn[t]=e}));const mn=function e(t){const n=new un(t),r=de(un.prototype.request,n);return Ze.extend(r,un.prototype,n,{allOwnKeys:!0}),Ze.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(jt(t,n))},r}(bt);mn.Axios=un,mn.CanceledError=Tt,mn.CancelToken=pn,mn.isCancel=Nt,mn.VERSION=an,mn.toFormData=rt,mn.AxiosError=Je,mn.Cancel=mn.CanceledError,mn.all=function(e){return Promise.all(e)},mn.spread=function(e){return function(t){return e.apply(null,t)}},mn.isAxiosError=function(e){return Ze.isObject(e)&&!0===e.isAxiosError},mn.mergeConfig=jt,mn.AxiosHeaders=Et,mn.formToJSON=e=>_t(Ze.isHTMLForm(e)?new FormData(e):e),mn.getAdapter=nn,mn.HttpStatusCode=fn,mn.default=mn;class hn{constructor(){__privateAdd(this,e)}initClient(t,n){__privateSet(this,e,mn.create({baseURL:`${this.url(t)}/backend`,allowAbsoluteUrls:!1})),n&&__privateGet(this,e).interceptors.request.use(n)}getClient(){return __privateGet(this,e)}}e=new WeakMap;const gn={backend:new class extends hn{constructor(){super(...arguments),__publicField(this,"getIdToken",(()=>this.getClient().get("v1.0/auth/token").then((e=>e.data.token))))}url(e){return`${e}/flare-app-identity`}}};let yn;class _n{constructor(){__privateAdd(this,t),__privateAdd(this,n),__privateAdd(this,r),__privateAdd(this,o,(async e=>(yn||(yn=await gn.backend.getIdToken()),e.headers.Authorization=`Bearer ${yn}`,e)))}initClient(e,i,a){__privateSet(this,n,e),__privateSet(this,r,i),__privateSet(this,t,mn.create({baseURL:`${this.url(e)}/workplace-backend`,headers:{"X-PROFILE-ID":i},allowAbsoluteUrls:!1})),__privateGet(this,t).interceptors.request.use(__privateGet(this,o)),a&&__privateGet(this,t).interceptors.request.use(a)}getClient(){return __privateGet(this,t)}async getIdToken(){return yn||(yn=await gn.backend.getIdToken()),yn}getBaseUrl(){return __privateGet(this,n)}getProfileId(){return __privateGet(this,r)}}t=new WeakMap,n=new WeakMap,r=new WeakMap,o=new WeakMap;const bn=e=>{var t,n;throw"Auth_SessionExpired"===(null==(n=null==(t=e.response)?void 0:t.data)?void 0:n.code)&&ce(),e};let wn=(a=class extends _n{constructor(){super(...arguments),__publicField(this,"_canceledSignal"),__privateAdd(this,i,(async e=>e))}get canceledSignal(){if(!this._canceledSignal){const e=new AbortController;e.abort(),this._canceledSignal=e.signal}return this._canceledSignal}url(e){return`${e}/benefits-onboarding`}initClient(e,t,n){super.initClient(e,t,n),this.getClient().interceptors.request.use(__privateGet(this,i))}async track(e,t,n){await this.getClient().post("/v1.0/analytics/track",{event:e,properties:t},{params:n}).catch((e=>{}))}},i=new WeakMap,a);const vn={backend:new class extends hn{constructor(){super(...arguments),__publicField(this,"sourceId")}url(e){return`${e}/benefits-onboarding`}initClient(e,t,n){super.initClient(e,t),this.getClient().interceptors.response.use((e=>e),bn),this.sourceId=n}async init(){return this.getClient().post("/init",{source:"Onboarding",sourceId:this.sourceId}).then((e=>e.data))}command(e,t){return this.getClient().post("/command",{source:"Onboarding",sourceId:this.sourceId,...e},{params:t})}},workplaceBackend:new wn};const xn={workplaceBackend:new class extends _n{url(e){return`${e}/benefits-plan`}}},kn=(e,t,n,r)=>{const o=function(e,t){if("string"!=typeof e)throw new ie("Invalid token specified: must be a string");t||(t={});const n=!0===t.header?0:1,r=e.split(".")[n];if("string"!=typeof r)throw new ie(`Invalid token specified: missing part #${n+1}`);let o;try{o=ae(r)}catch(_i){throw new ie(`Invalid token specified: invalid base64 for part #${n+1} (${_i.message})`)}try{return JSON.parse(o)}catch(_i){throw new ie(`Invalid token specified: invalid json for part #${n+1} (${_i.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;vn.backend.initClient(s,i,n),vn.workplaceBackend.initClient(s,o,a);const l=e;gn.backend.initClient(l,i);const c=e;xn.workplaceBackend.initClient(c,o,a)};var Cn,En,Sn,Nn,Tn=0,On=[],An=[],Rn=l,Ln=Rn.__b,Pn=Rn.__r,In=Rn.diffed,Un=Rn.__c,Fn=Rn.unmount,jn=Rn.__;function Bn(e,t){Rn.__h&&Rn.__h(En,e,Tn||t),Tn=0;var n=En.__H||(En.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:An}),n.__[e]}function Dn(e){return Tn=1,Mn(nr,e)}function Mn(e,t,n){var r=Bn(Cn++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):nr(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=En,!En.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))};En.u=!0;var i=En.shouldComponentUpdate,a=En.componentWillUpdate;En.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)},En.shouldComponentUpdate=o}return r.__N||r.__}function zn(e,t){var n=Bn(Cn++,3);!Rn.__s&&tr(n.__H,t)&&(n.__=e,n.i=t,En.__H.__h.push(n))}function Hn(e,t){var n=Bn(Cn++,4);!Rn.__s&&tr(n.__H,t)&&(n.__=e,n.i=t,En.__h.push(n))}function qn(e){return Tn=5,Vn((function(){return{current:e}}),[])}function Wn(e,t,n){Tn=6,Hn((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 Vn(e,t){var n=Bn(Cn++,7);return tr(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function $n(e,t){return Tn=8,Vn((function(){return e}),t)}function Gn(e){var t=En.context[e.__c],n=Bn(Cn++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(En)),t.props.value):e.__}function Yn(e,t){Rn.useDebugValue&&Rn.useDebugValue(t?t(e):e)}function Zn(){var e=Bn(Cn++,11);if(!e.__){for(var t=En.__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 Jn(){for(var e;e=On.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Qn),e.__H.__h.forEach(er),e.__H.__h=[]}catch(t){e.__H.__h=[],Rn.__e(t,e.__v)}}Rn.__b=function(e){En=null,Ln&&Ln(e)},Rn.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),jn&&jn(e,t)},Rn.__r=function(e){Pn&&Pn(e),Cn=0;var t=(En=e.__c).__H;t&&(Sn===En?(t.__h=[],En.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=An,e.__N=e.i=void 0}))):(t.__h.forEach(Qn),t.__h.forEach(er),t.__h=[],Cn=0)),Sn=En},Rn.diffed=function(e){In&&In(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==On.push(t)&&Nn===Rn.requestAnimationFrame||((Nn=Rn.requestAnimationFrame)||Kn)(Jn)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==An&&(e.__=e.__V),e.i=void 0,e.__V=An}))),Sn=En=null},Rn.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Qn),e.__h=e.__h.filter((function(e){return!e.__||er(e)}))}catch(Di){t.some((function(e){e.__h&&(e.__h=[])})),t=[],Rn.__e(Di,e.__v)}})),Un&&Un(e,t)},Rn.unmount=function(e){Fn&&Fn(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Qn(e)}catch(n){t=n}})),n.__H=void 0,t&&Rn.__e(t,n.__v))};var Xn="function"==typeof requestAnimationFrame;function Kn(e){var t,n=function(){clearTimeout(r),Xn&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Xn&&(t=requestAnimationFrame(n))}function Qn(e){var t=En,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),En=t}function er(e){var t=En;e.__c=e.__(),En=t}function tr(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function nr(e,t){return"function"==typeof t?t(e):t}function rr(e,t){for(var n in t)e[n]=t[n];return e}function or(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 ir(e,t){this.props=e,this.context=t}function ar(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:or(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}(ir.prototype=new E).isPureReactComponent=!0,ir.prototype.shouldComponentUpdate=function(e,t){return or(this.props,e)||or(this.state,t)};var sr=l.__b;l.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),sr&&sr(e)};var lr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function cr(e){function t(t){var n=rr({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=lr,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var dr=function(e,t){return null==e?null:P(P(e).map(t))},ur={map:dr,forEach:dr,count:function(e){return e?P(e).length:0},only:function(e){var t=P(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:P},pr=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);pr(e,t,n,r)};var fr=l.unmount;function mr(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=rr({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return mr(e,t,n)}))),e}function hr(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return hr(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 gr(){this.__u=0,this.t=null,this.__b=null}function yr(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function _r(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 br(){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),fr&&fr(e)},(gr.prototype=new E).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=yr(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]=hr(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)},gr.prototype.componentWillUnmount=function(){this.t=[]},gr.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]=mr(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&v(C,null,e.fallback);return o&&(o.__u&=-33),[v(C,null,t.__a?null:e.children),o]};var wr=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 vr(e){return this.getChildContext=function(){return e.context},e.children}function xr(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(vr,{context:t.context},e.__v),t.l)}function kr(e,t){var n=v(xr,{__v:e,i:t});return n.containerInfo=t,n}(br.prototype=new E).__a=function(e){var t=this,n=yr(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),wr(t,e,r)):o()};n?n(i):i()}},br.prototype.render=function(e){this.u=null,this.o=new Map;var t=P(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},br.prototype.componentDidUpdate=br.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){wr(e,n,t)}))};var Cr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Er=/^(?: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]/,Sr=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Nr=/[A-Z0-9]/g,Tr="undefined"!=typeof document,Or=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function Ar(e,t,n){return null==t.__k&&(t.textContent=""),W(e,t),"function"==typeof n&&n(),e?e.__c:null}function Rr(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 Lr=l.event;function Pr(){}function Ir(){return this.cancelBubble}function Ur(){return this.defaultPrevented}l.event=function(e){return Lr&&(e=Lr(e)),e.persist=Pr,e.isPropagationStopped=Ir,e.isDefaultPrevented=Ur,e.nativeEvent=e};var Fr,jr={enumerable:!1,configurable:!0,get:function(){return this.class}},Br=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||Tr&&"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||Or(t.type)?"onfocus"===a?o="onfocusin":"onblur"===a?o="onfocusout":Sr.test(o)?o=a:-1===n.indexOf("-")&&Er.test(o)?o=o.replace(Nr,"-$&").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=P(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=P(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",jr)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=Cr,Br&&Br(e)};var Dr=l.__r;l.__r=function(e){Dr&&Dr(e),Fr=e.__c};var Mr=l.diffed;l.diffed=function(e){Mr&&Mr(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),Fr=null};var zr={ReactCurrentDispatcher:{current:{readContext:function(e){return Fr.__n[e.__c].props.value}}}};function Hr(e){return v.bind(null,e)}function qr(e){return!!e&&e.$$typeof===Cr}function Wr(e){return qr(e)&&e.type===C}function Vr(e){return qr(e)?$.apply(null,arguments):e}function $r(e){return!!e.__k&&(W(null,e),!0)}function Gr(e){return e&&(e.base||1===e.nodeType&&e)||null}var Yr=function(e,t){return e(t)},Zr=function(e,t){return e(t)},Jr=C;function Xr(e){e()}function Kr(e){return e}function Qr(){return[!1,Xr]}var eo=Hn,to=qr;function no(e,t){var n=t(),r=Dn({h:{__:n,v:t}}),o=r[0].h,i=r[1];return Hn((function(){o.__=n,o.v=t,ro(o)&&i({h:o})}),[e,n,t]),zn((function(){return ro(o)&&i({h:o}),e((function(){ro(o)&&i({h:o})}))}),[e]),n}function ro(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 oo={useState:Dn,useId:Zn,useReducer:Mn,useEffect:zn,useLayoutEffect:Hn,useInsertionEffect:eo,useTransition:Qr,useDeferredValue:Kr,useSyncExternalStore:no,startTransition:Xr,useRef:qn,useImperativeHandle:Wn,useMemo:Vn,useCallback:$n,useContext:Gn,useDebugValue:Yn,version:"17.0.2",Children:ur,render:Ar,hydrate:Rr,unmountComponentAtNode:$r,createPortal:kr,createElement:v,createContext:G,createFactory:Hr,cloneElement:Vr,createRef:k,Fragment:C,isValidElement:qr,isElement:to,isFragment:Wr,findDOMNode:Gr,Component:E,PureComponent:ir,memo:ar,forwardRef:cr,flushSync:Zr,unstable_batchedUpdates:Yr,StrictMode:Jr,Suspense:gr,SuspenseList:br,lazy:_r,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:zr};const io=Object.freeze(Object.defineProperty({__proto__:null,Children:ur,Component:E,Fragment:C,PureComponent:ir,StrictMode:Jr,Suspense:gr,SuspenseList:br,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:zr,cloneElement:Vr,createContext:G,createElement:v,createFactory:Hr,createPortal:kr,createRef:k,default:oo,findDOMNode:Gr,flushSync:Zr,forwardRef:cr,hydrate:Rr,isElement:to,isFragment:Wr,isValidElement:qr,lazy:_r,memo:ar,render:Ar,startTransition:Xr,unmountComponentAtNode:$r,unstable_batchedUpdates:Yr,useCallback:$n,useContext:Gn,useDebugValue:Yn,useDeferredValue:Kr,useEffect:zn,useErrorBoundary:function(e){var t=Bn(Cn++,10),n=Dn();return t.__=e,En.componentDidCatch||(En.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:Zn,useImperativeHandle:Wn,useInsertionEffect:eo,useLayoutEffect:Hn,useMemo:Vn,useReducer:Mn,useRef:qn,useState:Dn,useSyncExternalStore:no,useTransition:Qr,version:"17.0.2"},Symbol.toStringTag,{value:"Module"})),ao=e=>v("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v("g",{clipPath:"url(#clip0_2383_2245)"},v("path",{d:"M0.639604 38.9047C1.28749 39.5526 2.27104 39.7271 3.10223 39.3416L25.6608 29.6293C26.7649 29.1174 27.0229 27.663 26.1624 26.8024L12.7907 13.4307C11.9301 12.57 10.4757 12.8281 9.96369 13.9323L0.202679 36.442C-0.182768 37.2732 -0.00828658 38.2568 0.639604 38.9047Z",fill:"#FFE266"}),v("path",{d:"M19.4314 27.5018L2.84876 34.6411C2.2627 34.9129 1.57431 34.8051 1.09874 34.3757L0.202679 36.4421C-0.182768 37.2734 -0.00828658 38.2568 0.639604 38.9047C1.28749 39.5526 2.27104 39.7271 3.10223 39.3416L25.4444 29.7226C24.9297 29.5162 19.5151 27.463 19.4314 27.5018Z",fill:"#EFAA66"}),v("path",{d:"M26.3181 28.7173C27.8596 27.1758 25.6184 22.4355 21.3124 18.1295C17.0064 13.8234 12.2661 11.5823 10.7246 13.1238C9.18318 14.6652 11.4243 19.4055 15.7303 23.7115C20.0364 28.0176 24.7767 30.2587 26.3181 28.7173Z",fill:"#FFE266"}),v("path",{d:"M22.4126 26.7308C23.4237 25.7197 21.7859 22.4424 18.7543 19.4109C15.7228 16.3793 12.4455 14.7415 11.4344 15.7526C10.4232 16.7638 12.0611 20.0411 15.0926 23.0726C18.1242 26.1042 21.4014 27.742 22.4126 26.7308Z",fill:"#EFAA66"}),v("path",{d:"M24.9319 30.0073C22.4747 30.0073 18.6692 27.78 15.1683 24.2792C11.9894 21.1002 9.81107 17.5992 9.48367 15.1424C9.42522 14.7034 9.73353 14.3002 10.1725 14.2417C10.6111 14.1834 11.0148 14.4916 11.0732 14.9306C11.3522 17.0232 13.4048 20.2477 16.3024 23.1452C20.0047 26.8476 23.4188 28.4618 25.0232 28.4018C25.4652 28.3857 25.8386 28.7288 25.8563 29.1713C25.8738 29.6137 25.5294 29.9868 25.0868 30.0043C25.0359 30.0062 24.984 30.0073 24.9319 30.0073Z",fill:"#D0844B"}),v("path",{d:"M16.3577 17.6285C16.1695 17.4403 16.0243 17.2039 15.9436 16.9306L15.2021 14.4208C14.922 13.473 15.1748 12.4576 15.8616 11.7708L17.2095 10.4229C17.8963 9.73605 18.9118 9.48339 19.8596 9.76347L22.5594 10.5255L21.6488 7.2768C21.3908 6.40351 21.8896 5.48644 22.7629 5.22841C23.6362 4.97037 24.5532 5.4692 24.8113 6.34249L25.5528 8.85226C25.8328 9.80012 25.5801 10.8156 24.8934 11.5023L23.5455 12.8502C22.8587 13.5369 21.8432 13.7896 20.8955 13.5096L18.1681 12.6202L19.1061 15.9963C19.3642 16.8696 18.8653 17.7866 17.9921 18.0447C17.3919 18.222 16.771 18.0419 16.3577 17.6285Z",fill:"#CAB4EF"}),v("path",{d:"M22.5594 10.5256L19.8596 9.76358C19.0449 9.52286 18.1805 9.67602 17.5176 10.1598C17.7032 10.902 17.9393 11.8894 18.168 12.6202L20.8954 13.5096C21.7487 13.7617 22.6567 13.5819 23.3305 13.0424C23.0918 12.2954 22.7865 11.2761 22.5594 10.5256Z",fill:"#A183E2"}),v("path",{d:"M26.8006 16.4551C26.9888 16.6433 27.2253 16.7885 27.4985 16.8692L30.0083 17.6106C30.956 17.8906 31.9715 17.638 32.6583 16.9512L34.0062 15.6033C34.693 14.9164 34.9457 13.901 34.6656 12.9532L33.9036 10.2534L37.1523 11.1639C38.0256 11.4219 38.9427 10.9231 39.2008 10.0498C39.4588 9.17651 38.96 8.25944 38.0867 8.00141L35.5769 7.25994C34.6291 6.97994 33.6136 7.23268 32.9269 7.91938L31.579 9.26728C30.8922 9.95406 30.6396 10.9695 30.9196 11.9173L31.8089 14.6447L28.4328 13.7066C27.5595 13.4486 26.6425 13.9474 26.3844 14.8207C26.2071 15.4209 26.3872 16.0418 26.8006 16.4551Z",fill:"#F7C4DB"}),v("path",{d:"M34.6649 12.9532L33.9029 10.2533C33.1175 10.0841 32.0186 9.8675 31.2346 9.69165C30.8149 10.3375 30.692 11.1496 30.9189 11.9173L31.8082 14.6447C32.6214 14.8455 33.4818 14.984 34.2625 15.3037C34.7512 14.6396 34.9067 13.7713 34.6649 12.9532Z",fill:"#EF8BBD"}),v("path",{d:"M30.639 2.8965C30.1162 3.4193 29.2684 3.4193 28.7456 2.8965C28.2228 2.3737 28.2228 1.52599 28.7456 1.00319C29.2684 0.480383 30.1162 0.480383 30.639 1.00319C31.1618 1.52607 31.1618 2.3737 30.639 2.8965Z",fill:"#FFA585"}),v("path",{d:"M32.6591 25.138C33.3985 25.138 33.9979 24.5386 33.9979 23.7992C33.9979 23.0598 33.3985 22.4604 32.6591 22.4604C31.9197 22.4604 31.3203 23.0598 31.3203 23.7992C31.3203 24.5386 31.9197 25.138 32.6591 25.138Z",fill:"#78EAC4"}),v("path",{d:"M25.3352 24.9889C24.8124 25.5117 23.9647 25.5117 23.4419 24.9889C22.9191 24.4661 22.9191 23.6184 23.4419 23.0956C23.9647 22.5728 24.8124 22.5728 25.3352 23.0956C25.858 23.6185 25.858 24.4661 25.3352 24.9889Z",fill:"#78EAC4"}),v("path",{d:"M25.3352 24.9889C24.8124 25.5117 23.9647 25.5117 23.4419 24.9889C22.9191 24.4661 22.9191 23.6184 23.4419 23.0956C23.9647 22.5728 24.8124 22.5728 25.3352 23.0956C25.858 23.6185 25.858 24.4661 25.3352 24.9889Z",fill:"#8BB6EF"}),v("path",{d:"M7.28893 28.9138C7.18316 28.9138 7.07556 28.8927 6.97228 28.8482C6.5655 28.6731 6.37771 28.2014 6.55291 27.7946L7.56837 25.4361C7.74349 25.0294 8.2153 24.8413 8.62191 25.0167C9.02869 25.1919 9.21648 25.6635 9.04128 26.0703L8.02582 28.4288C7.8952 28.7322 7.59956 28.9138 7.28893 28.9138Z",fill:"white"}),v("path",{d:"M9.44127 23.916C9.33551 23.916 9.22798 23.895 9.12454 23.8505C8.71785 23.6753 8.53005 23.2037 8.70526 22.7968L9.01477 22.0779C9.18989 21.6713 9.66137 21.4832 10.0684 21.6586C10.4751 21.8337 10.6629 22.3054 10.4878 22.7122L10.1782 23.4312C10.0475 23.7344 9.75182 23.916 9.44127 23.916Z",fill:"white"}),v("path",{d:"M15.7341 0.651858L16.3927 2.50396C16.4209 2.58326 16.4767 2.64613 16.5472 2.67788L18.1927 3.41926C18.4251 3.52399 18.4251 3.89436 18.1927 3.99916L16.5472 4.74054C16.4767 4.7723 16.4209 4.83516 16.3927 4.91438L15.7341 6.76648C15.6411 7.02813 15.3119 7.02813 15.2189 6.76648L14.5603 4.91438C14.532 4.83508 14.4762 4.77222 14.4057 4.74054L12.7603 3.99916C12.5278 3.89444 12.5278 3.52407 12.7603 3.41926L14.4057 2.67788C14.4762 2.64613 14.532 2.58326 14.5603 2.50396L15.2189 0.651858C15.3119 0.390136 15.6411 0.390136 15.7341 0.651858Z",fill:"#F7C4DB"}),v("path",{d:"M38.0472 17.3018L38.5357 18.6756C38.5567 18.7344 38.598 18.781 38.6503 18.8046L39.8709 19.3545C40.0434 19.4322 40.0434 19.7069 39.8709 19.7846L38.6503 20.3345C38.598 20.3581 38.5567 20.4047 38.5357 20.4635L38.0472 21.8373C37.9781 22.0314 37.734 22.0314 37.665 21.8373L37.1764 20.4635C37.1555 20.4047 37.1141 20.3581 37.0618 20.3345L35.8413 19.7846C35.6688 19.7069 35.6688 19.4322 35.8413 19.3545L37.0618 18.8046C37.1141 18.781 37.1555 18.7344 37.1764 18.6756L37.665 17.3018C37.734 17.1077 37.9781 17.1077 38.0472 17.3018Z",fill:"#CAB4EF"}),v("path",{d:"M28.9622 6.95622C29.3048 6.95622 29.5826 6.67847 29.5826 6.33584C29.5826 5.99321 29.3048 5.71545 28.9622 5.71545C28.6196 5.71545 28.3418 5.99321 28.3418 6.33584C28.3418 6.67847 28.6196 6.95622 28.9622 6.95622Z",fill:"#78EAC4"}),v("path",{d:"M38.3556 2.49627C38.4328 1.86823 37.9862 1.29654 37.3581 1.21937C36.73 1.14221 36.1583 1.58878 36.0811 2.21683C36.004 2.84487 36.4506 3.41656 37.0787 3.49373C37.7068 3.57089 38.2785 3.12432 38.3556 2.49627Z",fill:"#8BB6EF"})),v("defs",null,v("clipPath",{id:"clip0_2383_2245"},v("rect",{width:40,height:40,fill:"white"}))));var so=0;function lo(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:--so,__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 co={isLoading:!0,offers:[],isAppEnabled:!1,identity:{email:"",phoneNumber:"",verifiedPhoneNumber:""},workplace:{employerName:""},featureFlags:{marketplaceScheme:{scheme:"promotion"},marketplaceSubNavigation:!1},hostInformation:{channel:"",client:"",source:"",experiment:"",treatment:"",workflowsJourneyType:ne.BenefitsOnboarding},updateIdentity:e=>({}),getIdentityRegistrationStatus:()=>"Unregistered",getWorkplaceLinkingStatus:()=>"Unlinked",offersProgress:{update:()=>({}),hasCompletedAnyOffers:()=>!1,isOfferCompleted:()=>!1,isOfferProgressed:()=>!1}},uo=G(co),po=e=>{const t=e.find((e=>"Perks"===e.name));return t?[...e.filter((e=>e!==t)).slice(0,4),t]:e.slice(0,5)},fo=({children:e,...t})=>{const[n,r]=Dn(),o=qn("Unregistered"),i=qn("Unlinked"),a=qn({}),s=$n((e=>{e?("Unregistered"===o.current&&(o.current="NewlyRegistered"),"Unlinked"===i.current&&(i.current="NewlyLinked")):o.current="RegistrationAbandoned"}),[]),l=$n((()=>o.current),[]),c=$n((()=>i.current),[]),d=$n((()=>Object.entries(a.current).some((e=>"Perks"!==e[0]&&e[1].isCompleted))),[]),u=$n(((e,t,n)=>{a.current[e]={isEnrolled:t,isCompleted:n}}),[]),p=$n((e=>{var t;return!0===(null==(t=a.current[e])?void 0:t.isCompleted)}),[a]),f=$n((e=>!!a.current[e]),[a]),m=Vn((()=>{return e=(null==n?void 0:n.identity.email)??"",t=d(),{joinBenefits:{desktopImageUrl:re,mobileImageUrl:oe,title:"Your workplace benefits program",description:"Your employer has partnered with Flare Benefits to give you exclusive access to savings and perks from Australia's most-loved brands.",specialBanner:{title:"Flare Benefits Allowance",icon:lo(ao,{}),subTitle:lo("span",{children:["As an additional bonus, you have been allocated an allowance of up to ",lo("b",{children:"$1,300"})," as part of your benefits program. Set up your benefits today to be eligible."]})},buttonText:"Get Started"},setUpBenefits:{title:"Unlock your $1,300 Flare Benefits Allowance",description:"You've been allocated up to $1,300 for reimbursement as part of your Flare Benefits Allowance. Make your selections today, to be eligible for reimbursement later.",buttonText:"Set up your benefits",progress:{title:"See how it works",steps:[{title:"Join your workplace benefits program",completed:!0},{title:"Select the benefits you want to include as part of your allowance.",completed:!1},{title:"Purchase or switch to an eligible product",completed:!1},{title:"Keep your product for 90 days and we'll send you a Flare gift card",completed:!1}]},termsAndConditions:()=>lo("div",{className:"flex flex-col gap-2",children:lo("span",{children:["Allowance offer expires today.",lo("br",{})," Exclusions and limitations apply. See full"," ",lo("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,d]),h=Vn((()=>{if(!n)return co;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:po(n.offers),isAppEnabled:e,identity:r,workplace:n.workplace,featureFlags:{marketplaceScheme:"promotion"===n.featureFlags.marketplaceScheme?{scheme:"promotion"}:{scheme:"allowance",content:m},marketplaceSubNavigation:n.featureFlags.marketplaceSubNavigation},hostInformation:{channel:"onboarding",client:"onboarding",source:"BenefitsExisting"===t.workflowsJourneyType?"Invite":"Onboarding",experiment:"onboarding-marketplace-scheme",treatment:n.featureFlags.marketplaceScheme,workflowsJourneyType:t.workflowsJourneyType},updateIdentity:s,getIdentityRegistrationStatus:l,getWorkplaceLinkingStatus:c,offersProgress:{hasCompletedAnyOffers:d,update:u,isOfferCompleted:p,isOfferProgressed:f}}}),[m,l,c,d,n,s,u,p,f,t.workflowsJourneyType]);return zn((()=>{(async()=>{const e=await vn.backend.init();r(e)})()}),[]),lo(uo.Provider,{value:h,children:e})},mo=e=>{const t=null==e?void 0:e.match(/^(https:\/\/)?(test|autodev|sandbox)?-?partner\.flarehr\.com$/);return t&&t[2]?t[2]:"prod"};const ho={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)}},go=e=>lo("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:[lo("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"}),lo("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"})]}),yo='/*! 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-default:hover:before{content:var(--tw-content);cursor:default}.hover\\:before\\:cursor-pointer:hover:before{content:var(--tw-content);cursor:pointer}.hover\\:before\\:content-\\[\\\'\\\'\\]:hover:before{--tw-content:"";content:var(--tw-content)}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:\\!ring-gray-200:focus{--tw-ring-opacity:1!important;--tw-ring-color:rgb(229 231 235/var(--tw-ring-opacity))!important}.focus\\:ring-primary-focus:focus{--tw-ring-color:var(--fl-color-primary-focus)}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\\:ring-gray-500:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(107 114 128/var(--tw-ring-opacity))}.disabled\\:cursor-text:disabled{cursor:text}.disabled\\:bg-gray-100:disabled{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.disabled\\:px-0:disabled{padding-left:0;padding-right:0}.disabled\\:text-gray-300:disabled{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.disabled\\:text-gray-600:disabled{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.disabled\\:opacity-75:disabled{opacity:.75}.disabled\\:hover\\:bg-transparent:hover:disabled{background-color:transparent}@media (min-width: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 _o=e=>{const[t,n]=Dn(!1);return lo("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:[lo("div",{class:""+(t?"invisible":""),children:e.children}),t&&lo("div",{class:"absolute animate-spin",children:lo(go,{theme:"light"})})]})},bo=({title:e,className:t,children:n,...r})=>{var o;const[i,a]=Dn(!1),s=qn(null);return lo("div",{className:`border border-2 border-gray-300 p-2 rounded-md overflow-hidden w-full ${t??""}`,...r,children:[lo("div",{className:"mx-2 flex justify-between cursor-pointer",onClick:$n((()=>{a(!i)}),[i]),children:[lo("span",{className:"text-base text-left font-semibold text-primary-base",children:e}),lo("span",{className:"text-base text-left font-semibold text-gray-500",children:i?"-":"+"})]}),lo("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})]})},wo=e=>{zn(e,[])};function vo(){return vo=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},vo.apply(null,arguments)}function xo(e,t){return(xo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ko(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 ko=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,Co=/\\([\u000b\u0020-\u00ff])/g,Eo=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,So=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(!Eo.test(r))throw new TypeError("invalid media type");var o=new No(r.toLowerCase());if(-1!==n){var i,a,s;for(ko.lastIndex=n;a=ko.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(Co,"$1")),o.parameters[i]=s}if(n!==t.length)throw new TypeError("invalid parameter format")}return o};function No(e){this.parameters=Object.create(null),this.type=e}var To=new Map,Ao=function(e){return e.cloneNode(!0)},Oo=function(){return"file:"===window.location.protocol},Ro=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=So(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(Oo()?"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||Oo()&&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()},Lo={},Po=function(e,t){Lo[e]=Lo[e]||[],Lo[e].push(t)},Io=function(e,t,n){if(To.has(e)){var r=To.get(e);if(void 0===r)return void Po(e,n);if(r instanceof SVGSVGElement)return void n(null,Ao(r))}To.set(e,void 0),Po(e,n),Ro(e,t,(function(t,n){var r;t?To.set(e,t):(null===(r=n.responseXML)||void 0===r?void 0:r.documentElement)instanceof SVGSVGElement&&To.set(e,n.responseXML.documentElement),function(e){for(var t=function(t,n){setTimeout((function(){if(Array.isArray(Lo[e])){var n=To.get(e),r=Lo[e][t];n instanceof SVGSVGElement&&r(null,Ao(n)),n instanceof Error&&r(n),t===Lo[e].length-1&&delete Lo[e]}}),0)},n=0,r=Lo[e].length;n<r;n++)t(n)}(e)}))},Uo=function(e,t,n){Ro(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)}))},Fo=0,jo=[],Do={},Mo="http://www.w3.org/1999/xlink",Bo=function(e,t,n,r,o,i,a){var s=e.getAttribute("data-src")||e.getAttribute("src");if(s){if(-1!==jo.indexOf(e))return jo.splice(jo.indexOf(e),1),void(e=null);jo.push(e),e.setAttribute("src",""),(r?Io:Uo)(s,o,(function(r,o){if(!o)return jo.splice(jo.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(xo(xo(xo([],(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=_+"-"+ ++Fo,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(Mo,"href");l&&l.toString()==="#"+g[e].id&&i.push(r[a])}for(var c=0,d=i.length;c<d;c++)i[c].setAttributeNS(Mo,"href","#"+b);g[e].id=b},n=0,r=(g=o.querySelectorAll(h+"[id]")).length;n<r;n++)t(n)}))}o.removeAttribute("xmlns:a");for(var v,x,k=o.querySelectorAll("script"),C=[],E=0,S=k.length;E<S;E++)(x=k[E].getAttribute("type"))&&"application/ecmascript"!==x&&"application/javascript"!==x&&"text/javascript"!==x||((v=k[E].innerText||k[E].textContent)&&C.push(v),o.removeChild(k[E]));if(C.length>0&&("always"===t||"once"===t&&!Do[s])){for(var N=0,T=C.length;N<T;N++)new Function(C[N])(window);Do[s]=!0}var A=o.querySelectorAll("style");if(Array.prototype.forEach.call(A,(function(e){e.textContent+=""})),o.setAttribute("xmlns","http://www.w3.org/2000/svg"),o.setAttribute("xmlns:xlink",Mo),i(o),!e.parentNode)return jo.splice(jo.indexOf(e),1),e=null,void a(new Error("Parent node is null"));e.parentNode.replaceChild(o,e),jo.splice(jo.indexOf(e),1),e=null,a(null,o)}))}else a(new Error("Invalid data-src or src attribute"))},zo={exports:{}};function Ho(){}function qo(){}qo.resetWarningCache=Ho;zo.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:qo,resetWarningCache:Ho};return n.PropTypes=n,n}();var Wo=zo.exports,Vo=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],$o="http://www.w3.org/2000/svg",Go="http://www.w3.org/1999/xlink",Yo=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,vo(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($o,h)).setAttribute("xmlns",$o),n.setAttribute("xmlns:xlink",Go),r=document.createElementNS($o,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;_++)Bo(e[_],p,g,d,m,l,(function(t,n){a(t,n),e&&"length"in e&&e.length===++y&&o(y)}));else e?Bo(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})(wo({},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,Vo);return v(r,wo({},o,{ref:this.refCallback},"svg"===r?{xmlns:$o,xmlnsXlink:Go}:{}),this.state.isLoading&&n&&v(n,null),this.state.hasError&&t&&v(t,null))},t}(E);Yo.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"},Yo.propTypes={afterInjection:Wo.func,beforeInjection:Wo.func,desc:Wo.string,evalScripts:Wo.oneOf(["always","once","never"]),fallback:Wo.oneOfType([Wo.func,Wo.object,Wo.string]),httpRequestWithCredentials:Wo.bool,loading:Wo.oneOfType([Wo.func,Wo.object,Wo.string]),onError:Wo.func,renumerateIRIElements:Wo.bool,src:Wo.string.isRequired,title:Wo.string,useRequestCache:Wo.bool,wrapper:Wo.oneOf(["div","span","svg"])};const Zo=({visible:e,children:t})=>{const n=Hn(e);return e&&!n.current&&(n.current=!0),n.current?so("div",{hidden:!e,children:t}):null},Jo=({iconUrl:e})=>so(Yo,{src:e,wrapper:"svg",className:"w-6 h-6 max-w-6 max-h-6 min-w-6 min-h-6",beforeInjection:e=>{var t;e.removeAttribute("width"),e.removeAttribute("height"),null==(t=e.querySelector("path"))||t.removeAttribute("fill"),e.setAttribute("fill","currentColor")}}),Xo=({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})]}),Ko=({children:e})=>so(C,{children:e}),Qo=({selectedIndex:e,onChange:t,children:n})=>{const r=Wn((()=>dr.toArray(n).filter((e=>e.type===Xo))),[n]),o=Wn((()=>dr.toArray(n).filter((e=>e.type===Ko))),[n]);return bo((()=>{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-[''] \n ${o.length>0?"hover:before:cursor-pointer":"hover:before:cursor-default"} \n hover:before:w-16 hover:before:h-16 hover:before:absolute\n `,children:n},n.key)))}),o.map(((t,n)=>so(Zo,{visible:n===e,children:t},t.key)))]})},ei=({className:e,children:t})=>so("h1",{className:`text-2xl md:text-3xl font-bold ${e??""}`,children:t}),ti=({className:e,children:t})=>so("h3",{class:`text-base md:text-lg text-gray-600 ${e??""}`,children:t}),ni=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"})),ri=({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(ni,{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 oi=Object.defineProperty,ii=(e,t,n)=>(((e,t,n)=>{t in e?oi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let ai=new class{constructor(){ii(this,"current",this.detect()),ii(this,"handoffState","pending"),ii(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}},si=(e,t)=>{ai.isServer?Bn(e,t):zn(e,t)};function li(e){let t=Hn(e);return si((()=>{t.current=e}),[e]),t}let ci=function(e){let t=li(e);return ro.useCallback(((...e)=>t.current(...e)),[t])};function di(){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=di();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 ui(){let[e]=Dn(di);return Bn((()=>()=>e.dispose()),[e]),e}function pi(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in oo&&oo.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=Dn(ai.isHandoffComplete);return t&&!1===ai.isHandoffComplete&&n(!1),Bn((()=>{!0!==t&&n(!0)}),[t]),Bn((()=>ai.handoff()),[]),!e&&t}function fi(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,fi),r}let mi=Symbol();function hi(...e){let t=Hn(e);Bn((()=>{t.current=e}),[e]);let n=ci((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[mi])))?void 0:n}function gi(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}var yi,_i,bi=((_i=bi||{})[_i.None=0]="None",_i[_i.RenderStrategy=1]="RenderStrategy",_i[_i.Static=2]="Static",_i),wi=((yi=wi||{})[yi.Unmount=0]="Unmount",yi[yi.Hidden=1]="Hidden",yi);function vi({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a,mergeRefs:s}){s=null!=s?s:ki;let l=Ci(t,e);if(i)return xi(l,n,r,a,s);let c=null!=o?o:0;if(2&c){let{static:e=!1,...t}=l;if(e)return xi(t,n,r,a,s)}if(1&c){let{unmount:e=!0,...t}=l;return fi(e?0:1,{0:()=>null,1:()=>xi({...t,hidden:!0,style:{display:"none"}},n,r,a,s)})}return xi(l,n,r,a,s)}function xi(e,t={},n,r,o){let{as:i=n,children:a,refName:s="ref",...l}=Ni(e,["unmount","static"]),c=void 0!==e.ref?{[s]:e.ref}:{},d="function"==typeof a?a(t):a;"className"in l&&l.className&&"function"==typeof l.className&&(l.className=l.className(t));let u={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r);e&&(u["data-headlessui-state"]=n.join(" "))}if(i===C&&Object.keys(Si(l)).length>0){if(!Hr(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)=>gi(null==e?void 0:e.className(...t),l.className):gi(null==e?void 0:e.className,l.className),n=t?{className:t}:{};return Wr(d,Object.assign({},Ci(d.props,Si(Ni(l,["ref"]))),u,c,{ref:o(d.ref,c.ref)},n))}return v(i,Object.assign({},Ni(l,["ref"]),i!==C&&c,i!==C&&u),d)}function ki(...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 Ci(...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 Ei(e){var t;return Object.assign(lr(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Si(e){let t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}function Ni(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}let Ti=G(null);Ti.displayName="OpenClosedContext";var Ai=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Ai||{});function Oi(){return $n(Ti)}function Ri({value:e,children:t}){return ro.createElement(Ti.Provider,{value:e},t)}function Li(){let e=Hn(!1);return si((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function Pi(e,...t){e&&t.length>0&&e.classList.add(...t)}function Ii(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Ui(e,t,n,r){let o=n?"enter":"leave",i=di(),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=fi(o,{enter:()=>t.enter,leave:()=>t.leave}),l=fi(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=fi(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Ii(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Pi(e,...t.base,...s,...c),i.nextFrame((()=>{Ii(e,...t.base,...s,...c),Pi(e,...t.base,...s,...l),function(e,t){let n=di();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,(()=>(Ii(e,...t.base,...s),Pi(e,...t.base,...t.entered),a())))})),i.dispose}function Fi(e=""){return e.split(/\s+/).filter((e=>e.length>1))}let ji=G(null);ji.displayName="TransitionContext";var Di,Mi=((Di=Mi||{}).Visible="visible",Di.Hidden="hidden",Di);let Bi=G(null);function zi(e){return"children"in e?zi(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function Hi(e,t){let n=li(e),r=Hn([]),o=Li(),i=ui(),a=ci(((e,t=wi.Hidden)=>{let a=r.current.findIndex((({el:t})=>t===e));-1!==a&&(fi(t,{[wi.Unmount](){r.current.splice(a,1)},[wi.Hidden](){r.current[a].state="hidden"}}),i.microTask((()=>{var e;!zi(r)&&o.current&&(null==(e=n.current)||e.call(n))})))})),s=ci((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,wi.Unmount)})),l=Hn([]),c=Hn(Promise.resolve()),d=Hn({enter:[],leave:[],idle:[]}),u=ci(((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=ci(((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 Wn((()=>({children:r,register:s,unregister:a,onStart:u,onStop:p,wait:c,chains:d})),[s,a,r,u,p,d,c])}function qi(){}Bi.displayName="NestingContext";let Wi=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Vi(e){var t;let n={};for(let r of Wi)n[r]=null!=(t=e[r])?t:qi;return n}let $i=bi.RenderStrategy;let Gi=Ei((function(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,a=Hn(null),s=hi(a,t);pi();let l=Oi();if(void 0===n&&null!==l&&(n=(l&Ai.Open)===Ai.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,d]=Dn(n?"visible":"hidden"),u=Hi((()=>{d("hidden")})),[p,f]=Dn(!0),m=Hn([n]);si((()=>{!1!==p&&m.current[m.current.length-1]!==n&&(m.current.push(n),f(!1))}),[m,n]);let h=Wn((()=>({show:n,appear:r,initial:p})),[n,r,p]);Bn((()=>{if(n)d("visible");else if(zi(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=ci((()=>{var t;p&&f(!1),null==(t=e.beforeEnter)||t.call(e)})),_=ci((()=>{var t;p&&f(!1),null==(t=e.beforeLeave)||t.call(e)}));return ro.createElement(Bi.Provider,{value:u},ro.createElement(ji.Provider,{value:h},vi({ourProps:{...g,as:C,children:ro.createElement(Yi,{ref:s,...g,...i,beforeEnter:y,beforeLeave:_})},theirProps:{},defaultTag:C,features:$i,visible:"visible"===c,name:"Transition"})))})),Yi=Ei((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=Hn(null),y=hi(g,t),_=null==(n=h.unmount)||n?wi.Unmount:wi.Hidden,{show:b,appear:w,initial:v}=function(){let e=$n(ji);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]=Dn(b?"visible":"hidden"),C=function(){let e=$n(Bi);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:E,unregister:S}=C;Bn((()=>E(g)),[E,g]),Bn((()=>{if(_===wi.Hidden&&g.current)return b&&"visible"!==x?void k("visible"):fi(x,{hidden:()=>S(g),visible:()=>E(g)})}),[x,g,E,S,b,_]);let N=li({base:Fi(h.className),enter:Fi(l),enterFrom:Fi(c),enterTo:Fi(d),entered:Fi(u),leave:Fi(p),leaveFrom:Fi(f),leaveTo:Fi(m)}),T=function(e){let t=Hn(Vi(e));return Bn((()=>{t.current=Vi(e)}),[e]),t}({beforeEnter:o,afterEnter:i,beforeLeave:a,afterLeave:s}),A=pi();Bn((()=>{if(A&&"visible"===x&&null===g.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[g,x,A]);let O=v&&!w,R=w&&b&&v,L=(()=>!A||O?"idle":b?"enter":"leave")(),P=function(e=0){let[t,n]=Dn(e),r=Li(),o=Vn((e=>{r.current&&n((t=>t|e))}),[t,r]),i=Vn((e=>Boolean(t&e)),[t]),a=Vn((e=>{r.current&&n((t=>t&~e))}),[n,r]),s=Vn((e=>{r.current&&n((t=>t^e))}),[n]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:a,toggleFlag:s}}(0),I=ci((e=>fi(e,{enter:()=>{P.addFlag(Ai.Opening),T.current.beforeEnter()},leave:()=>{P.addFlag(Ai.Closing),T.current.beforeLeave()},idle:()=>{}}))),U=ci((e=>fi(e,{enter:()=>{P.removeFlag(Ai.Opening),T.current.afterEnter()},leave:()=>{P.removeFlag(Ai.Closing),T.current.afterLeave()},idle:()=>{}}))),F=Hi((()=>{k("hidden"),S(g)}),C),j=Hn(!1);!function({immediate:e,container:t,direction:n,classes:r,onStart:o,onStop:i}){let a=Li(),s=ui(),l=li(n);si((()=>{e&&(l.current="enter")}),[e]),si((()=>{let e=di();s.add(e.dispose);let n=t.current;if(n&&"idle"!==l.current&&a.current)return e.dispose(),o.current(l.current),e.add(Ui(n,r.current,"enter"===l.current,(()=>{e.dispose(),i.current(l.current)}))),e.dispose}),[n])}({immediate:R,container:g,classes:N,direction:L,onStart:li((e=>{j.current=!0,F.onStart(g,e,I)})),onStop:li((e=>{j.current=!1,F.onStop(g,e,U),"leave"===e&&!zi(F)&&(k("hidden"),S(g))}))});let D=h,M={ref:y};return R?D={...D,className:gi(h.className,...N.current.enter,...N.current.enterFrom)}:j.current&&(D.className=gi(h.className,null==(r=g.current)?void 0:r.className),""===D.className&&delete D.className),ro.createElement(Bi.Provider,{value:F},ro.createElement(Ri,{value:fi(x,{visible:Ai.Open,hidden:Ai.Closed})|P.flags},vi({ourProps:M,theirProps:D,defaultTag:"div",features:$i,visible:"visible"===x,name:"Transition.Child"})))})),Zi=Ei((function(e,t){let n=null!==$n(ji),r=null!==Oi();return ro.createElement(ro.Fragment,null,!n&&r?ro.createElement(Gi,{ref:t,...e}):ro.createElement(Yi,{ref:t,...e}))})),Ji=Object.assign(Gi,{Child:Zi,Root:Gi});const Xi=({children:e})=>{const t=ro.Children.toArray(e),n=t.find((e=>e.type===Ki)),r=t.find((e=>e.type===Qi));return so(Ji,{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(Ji,{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(Ji,{appear:!0,show:!0,enter:"transition delay-300 duration-[600ms] ease-out",enterFrom:"opacity-0 -translate-y-6",enterTo:"opacity-100 translate-y-0",children:r&&so("div",{class:"flex items-center h-full",children:r})})]})})},Ki=({children:e})=>so(C,{children:e}),Qi=({children:e})=>so(C,{children:e});Xi.Top=Ki,Xi.Bottom=Qi;const ea=({onContinue:e})=>{const{featureFlags:{marketplaceScheme:t},offers:n}=$n(co),r="allowance"===t.scheme?t.content.setUpBenefits:void 0;return so(C,{children:r&&so("div",{className:"flex flex-col items-center max-w-full w-full mx-auto",children:[so(Qo,{selectedIndex:-1,children:n.map((e=>so(Xo,{label:e.content.productName,icon:so(Jo,{iconUrl:e.content.iconUrl})},e.name)))}),so(Xi,{children:[so(Xi.Top,{children:so("div",{className:"flex flex-col gap-4",children:[so(ei,{children:r.title}),so(ti,{children:r.description})]})}),so(Xi.Bottom,{children:so("div",{className:"mt-5 flex flex-col items-center gap-5 text-center",children:[r.progress&&so(_o,{className:"lg:w-3/4",title:r.progress.title,children:so(ri,{steps:r.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:r.buttonText}),r.termsAndConditions&&so("span",{className:"font-normal text-xs mt-4 lg:w-3/4",children:so(r.termsAndConditions,{})})]})})]})]})})},ta=({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})]})}),na=(e,t)=>{switch(!0){case"started"===e:return wn.backend.command({eventType:"Started"},t);case"membership-accepted"===e:return wn.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!0,featureName:"",treatmentName:"",template:"Eoi"}},t);case"membership-declined"===e:return wn.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!1,featureName:"",treatmentName:"",template:"Eoi"}},t);case"sign-up-viewed"===e:return wn.backend.command({eventType:"OfferViewed",offerName:"Membership",data:{featureName:"",treatmentName:""}},t);case"sign-up-completed"===e:return(async()=>{await wn.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!0,featureName:"",treatmentName:"",template:"Eoi"}},t),await wn.backend.command({eventType:"CustomerRegistrationCompleted",isRegistered:!0},t)})();case"sign-up-declined"===e:return(async()=>{await wn.backend.command({eventType:"CustomerRegistrationCompleted",isRegistered:!1},t),await wn.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!1,featureName:"",treatmentName:"",template:"Eoi"}},t)})();case"object"==typeof e&&"offer-selected"===e.type:return wn.workplaceBackend.track("MarketplaceOffer Selected",{offer:e.offerName},t);case"object"==typeof e&&"offer-viewed"===e.type:return wn.backend.command({...e,eventType:"OfferViewed"},t);case"object"==typeof e&&"offer-accepted"===e.type:return wn.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:{...e.data,accepted:!0}},t);case"object"==typeof e&&"offer-declined"===e.type:return wn.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:{...e.data,accepted:!1}},t);case"object"==typeof e&&"offer-progressed"===e.type:return wn.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:e.data},t);case"object"==typeof e&&"summary-viewed"===e.type:return wn.backend.command({eventType:"SummaryViewed",summaryVariant:e.data.summaryVariant},t);case"completed"===e:return wn.backend.command({eventType:"Completed"},t)}return Promise.resolve()},ra=()=>({trace:na}),oa=e=>{const{trace:t}=ra(),{featureFlags:{marketplaceScheme:n}}=$n(co),r="allowance"===n.scheme?n.content.joinBenefits:void 0;return so(C,{children:r&&so(Xi,{children:[so(Xi.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(Xi.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(ta,{className:"bg-teal-50 mt-5",style:{background:"linear-gradient(90deg, rgba(255, 216, 77, 0.10) 0%, rgba(255, 135, 111, 0.10) 100%)"},icon: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})]})})]})})},ia=""+("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),aa=()=>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:ia}),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 ","->"]})]})]}),sa=({onContinue:e})=>{const{offersProgress:{hasCompletedAnyOffers:t},isAppEnabled:n,featureFlags:{marketplaceScheme:r}}=$n(co),{trace:o}=ra(),i=Wn((()=>{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]);Bn((()=>{(async()=>{await o({type:"summary-viewed",data:{summaryVariant:i}},{experiment:"onboarding-marketplace-scheme",treatment:r.scheme})})()}),[r,i,o]);const a=Vn((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(C,{children:s&&so(Xi,{children:[so(Xi.Top,{children:so("div",{className:"flex flex-col gap-4",children:[so(ei,{children:s.title}),so(ti,{children:s.description})]})}),so(Xi.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(ri,{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(aa,{})]})})]})})};var la=(e=>(e[e.PHONE_NUMBER=0]="PHONE_NUMBER",e[e.OTP=1]="OTP",e[e.SUCCESS=2]="SUCCESS",e))(la||{});const ca=({className:e,children:t,...n})=>so("label",{class:`text-base text-gray-600 ${e??""}`,...n,children:t}),da=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"})),ua=({className:e,onClick:t,...n})=>{const[r,o]=Dn(!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:Vn((()=>{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"})})]})},pa=({className:e,allowedKeyPattern:t,onChange:n,value:r,leadingIconElement:o,trailingIconElement:i,...a})=>{const s=Vn((e=>{t.test(e.key)||e.preventDefault()}),[t]);return so(C,{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]})})},fa=e=>e.replace(/ /g,""),ma=e=>{const t=fa(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)},ha=({phoneNumber:e,onSubmit:t,onDecline:n})=>{const[r,o]=Dn(""),{setPhoneNumber:i,phoneNumber:a}=(e=>{const{identity:t}=$n(co),[n,r]=Dn((()=>e&&ma(e)?e:"")),o=Wn((()=>ma(n)),[n]),i=Wn((()=>fa(n)),[n]),a=Wn((()=>i.startsWith("04")?`+61${i.replace(/^0+/,"")}`:i.startsWith("614")?`+${i}`:i),[i]),s=Wn((()=>(e=>{let t=0;return"#### ### ### ### ### ### ###".replace(/#/g,(()=>e[t++]??"")).trim()})(i)),[i]),l=Wn((()=>ma(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]=Dn(a.isVerified),c=Vn((()=>{o("")}),[]),d=Vn((()=>{const e=a.valid?"":"Please enter a valid Australian mobile number beginning with 04.";o(e),l(a.isVerified)}),[a.isVerified,a.valid]),u=Vn((async()=>{a.valid&&await t(a).catch(o)}),[a,t]),p=Vn((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(da,{})]});return so(Xi,{children:[so(Xi.Top,{children:so("div",{className:"flex flex-col gap-5",children:[so(ei,{children:"Join your workplace benefits program"}),so(ti,{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(Xi.Bottom,{children:so("div",{className:"mt-5 md:w-[300px] text-left",children:[so(ca,{className:"font-medium text-sm text-gray-900 text-left",children:"Australian Mobile Number"}),so(pa,{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(ua,{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"})]})})]})},ga=""+("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),ya=({onContinue:e})=>{const{featureFlags:{marketplaceScheme:t}}=$n(co),n=Wn((()=>"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 Bn((()=>{if("allowance"===t.scheme){const t=setTimeout(e,3e3);return()=>clearTimeout(t)}}),[t,e]),so(Xi,{children:[so(Xi.Top,{children:so("img",{src:ga,className:"h-16 w-16"})}),so(Xi.Bottom,{children:so("div",{className:"mt-5 flex flex-col items-center gap-5 text-center",children:[so(ei,{children:n.title}),so(ti,{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"})]})})]})},_a=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"})),ba=({children:e})=>so(C,{children:e}),wa=({children:e})=>so(C,{children:e}),va=({open:e,children:t})=>{const n=Wn((()=>ro.Children.toArray(t).find((e=>e.type===ba))),[t]),r=Wn((()=>ro.Children.toArray(t).find((e=>e.type===wa))),[t]),[o,i]=Dn(!e);return Bn((()=>{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})]})})})})})})})},xa=({open:e})=>so(va,{open:e,children:so(wa,{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(ei,{children:"Creating your account"}),so("div",{children:[so(ti,{children:"This can take up to 30 seconds."}),so(ti,{children:"Please don't navigate away or refresh your browser."})]})]})})}),ka=({phoneNumber:e,onVerify:t,onResendOtp:n,onGoBack:r})=>{const{otp:o,setOtp:i}=(()=>{const[e,t]=Dn("");return{otp:{valid:Wn((()=>6===e.length),[e.length]),code:e},setOtp:t}})(),[a,s]=Dn(!1),[l,c]=Dn(""),{countdown:d,restart:u}=(e=>{const[t,n]=Dn(e),r=Hn(),o=Vn((()=>{clearInterval(r.current)}),[]);return Bn((()=>o),[o]),{countdown:t,restart:Vn((()=>{let t=e;clearInterval(r.current),r.current=setInterval((()=>{t<0?clearInterval(r.current):n(t--)}),1e3)}),[e])}})(60);Bn(u,[u]);const p=Vn((()=>(s(!0),c(""),t(o.code).catch(c).finally((()=>{s(!1)})))),[t,o.code]),f=Vn((()=>(c(""),n().then(u).catch(c))),[n,u]);return so(C,{children:[so(xa,{open:a}),so(Xi,{children:[so(Xi.Top,{children:so("div",{className:"flex flex-col gap-5",children:[so(ei,{children:"Verify your mobile number"}),so(ti,{children:["An SMS verification code has been sent to the number ",e,"."]})]})}),so(Xi.Bottom,{children:so("div",{className:"mt-5 md:w-[300px] text-left",children:[so(ca,{className:"font-medium text-sm text-gray-900 text-left",children:"Enter your verification code"}),so(pa,{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(ua,{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(C,{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(_a,{}),"Back"]})})]})})]})]})},Ca=({phoneNumber:e,onSignUp:t,onVerify:n,onResendOtp:r,onSuccess:o,onDecline:i})=>{const{trace:a}=ra(),[s,l]=Dn(e??""),{step:c,goBack:d,goToStep:u}=(()=>{const[e,t]=Dn(0),n=Vn((()=>{const n=e-1;n>=0&&t(n)}),[e]),r=Vn((e=>{e<=2&&t(e)}),[]);return{step:e,goBack:n,goToStep:r}})();Bn((()=>{(async()=>{await a("sign-up-viewed")})()}),[a]);const p=Vn((e=>t(e.formatted).then((async t=>{l(e.masked),t.isVerificationRequired?u(la.OTP):(await a("sign-up-completed"),u(la.SUCCESS))}))),[u,t,a]),f=Vn((()=>a("sign-up-declined").then(i)),[i,a]),m=Vn((e=>n(e).then((async()=>{await a("sign-up-completed"),u(la.SUCCESS)}))),[u,n,a]);return so(C,{children:[c===la.PHONE_NUMBER&&so(ha,{phoneNumber:s,onSubmit:p,onDecline:f}),c===la.OTP&&so(ka,{phoneNumber:s,onVerify:m,onResendOtp:r,onGoBack:d}),c===la.SUCCESS&&so(ya,{onContinue:o})]})};var Ea=(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))(Ea||{});const Sa=e=>{var t;const n=null==(t=null==e?void 0:e.response)?void 0:t.data;throw Ea[null==n?void 0:n.code]??"Sorry, we are currently experiencing some issues. Please try again later."},Na=({onSuccess:e,onDecline:t})=>{const{identity:{phoneNumber:n}}=$n(co),{signUp:r,verifyOtp:o,resendOtp:i}={signUp:async e=>wn.backend.getClient().post("v2.0/auth/signUp",{mobileNumber:e}).then((e=>({isVerificationRequired:e.data.isVerificationRequired??!0}))),verifyOtp:async e=>{await wn.backend.getClient().post("auth/verify",{otp:e}).catch(Sa)},resendOtp:async()=>{await wn.backend.getClient().post("auth/resend").catch(Sa)}};return so(C,{children:so(Ca,{phoneNumber:n,onSignUp:r,onVerify:o,onResendOtp:i,onSuccess:e,onDecline:t})})},Ta=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/intro-COqxd5jd.png").href:new URL("assets/intro-COqxd5jd.png","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),Aa=e=>{const{trace:t}=ra(),{featureFlags:{marketplaceScheme:n}}=$n(co);return so(Xi,{children:[so(Xi.Top,{children:so("img",{class:"max-w-[30rem] w-full",src:Ta})}),so(Xi.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"})]})})]})},Oa=()=>so("div",{class:"flex justify-center",children:so("span",{class:"animate-spin",children:so(ho,{size:"lg"})})}),Ra=(La=e=>{var t,n,r;const{featureFlags:{marketplaceScheme:o},hostInformation:i}=$n(co),{trace:a}=ra(),s=Hn(null);return bo((()=>{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":vn.workplaceBackend.getBaseUrl(),"profile-id":vn.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=Hn(null),[n,r]=Dn(),[o,i]=Dn(!1);return Bn((()=>{(async()=>{const e=await vn.workplaceBackend.getIdToken();r(e)})(),(()=>{if(t.current&&!t.current.querySelector("script[data-injected]")){const e=document.createElement("script"),n=fo(vn.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(La,{...e,accessToken:n}):so(Oa,{})})});var La;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:Ia,setPrototypeOf:Ua,isFrozen:Fa,getPrototypeOf:ja,getOwnPropertyDescriptor:Da}=Object;let{freeze:Ma,seal:Ba,create:za}=Object,{apply:Ha,construct:qa}="undefined"!=typeof Reflect&&Reflect;Ma||(Ma=function(e){return e}),Ba||(Ba=function(e){return e}),Ha||(Ha=function(e,t,n){return e.apply(t,n)}),qa||(qa=function(e,t){return new e(...t)});const Wa=rs(Array.prototype.forEach),Va=rs(Array.prototype.pop),$a=rs(Array.prototype.push),Ga=rs(String.prototype.toLowerCase),Ya=rs(String.prototype.toString),Za=rs(String.prototype.match),Ja=rs(String.prototype.replace),Xa=rs(String.prototype.indexOf),Ka=rs(String.prototype.trim),Qa=rs(Object.prototype.hasOwnProperty),es=rs(RegExp.prototype.test),ts=(ns=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return qa(ns,t)});var ns;function rs(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return Ha(e,t,r)}}function os(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ga;Ua&&Ua(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(Fa(t)||(t[r]=e),o=e)}e[o]=!0}return e}function is(e){for(let t=0;t<e.length;t++){Qa(e,t)||(e[t]=null)}return e}function as(e){const t=za(null);for(const[n,r]of Ia(e)){Qa(e,n)&&(Array.isArray(r)?t[n]=is(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=as(r):t[n]=r)}return t}function ss(e,t){for(;null!==e;){const n=Da(e,t);if(n){if(n.get)return rs(n.get);if("function"==typeof n.value)return rs(n.value)}e=ja(e)}return function(){return null}}const ls=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"]),cs=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"]),ds=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"]),us=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"]),ps=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"]),fs=Ma(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ms=Ma(["#text"]),hs=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"]),gs=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"]),ys=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"]),_s=Ma(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),bs=Ba(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ws=Ba(/<%[\w\W]*|[\w\W]*%>/gm),vs=Ba(/\${[\w\W]*}/gm),xs=Ba(/^data-[\-\w.\u00B7-\uFFFF]/),ks=Ba(/^aria-[\-\w]+$/),Cs=Ba(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Es=Ba(/^(?:\w+script|data):/i),Ss=Ba(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ns=Ba(/^html$/i),Ts=Ba(/^[a-z][.\w]*(-[.\w]+)+$/i);var As=Object.freeze({__proto__:null,MUSTACHE_EXPR:bs,ERB_EXPR:ws,TMPLIT_EXPR:vs,DATA_ATTR:xs,ARIA_ATTR:ks,IS_ALLOWED_URI:Cs,IS_SCRIPT_OR_DATA:Es,ATTR_WHITESPACE:Ss,DOCTYPE_NAME:Ns,CUSTOM_ELEMENT:Ts});const Os=1,Rs=3,Ls=7,Ps=8,Is=9;var Us=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!==Is)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=ss(h,"cloneNode"),y=ss(h,"remove"),_=ss(h,"nextSibling"),b=ss(h,"childNodes"),w=ss(h,"parentNode");if("function"==typeof s){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let v,x="";const{implementation:k,createNodeIterator:C,createDocumentFragment:E,getElementsByTagName:S}=r,{importNode:N}=o;let T={};n.isSupported="function"==typeof Ia&&"function"==typeof w&&k&&void 0!==k.createHTMLDocument;const{MUSTACHE_EXPR:A,ERB_EXPR:O,TMPLIT_EXPR:R,DATA_ATTR:L,ARIA_ATTR:P,IS_SCRIPT_OR_DATA:I,ATTR_WHITESPACE:U,CUSTOM_ELEMENT:F}=As;let{IS_ALLOWED_URI:j}=As,D=null;const M=os({},[...ls,...cs,...ds,...ps,...ms]);let B=null;const z=os({},[...hs,...gs,...ys,..._s]);let H=Object.seal(za(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),q=null,W=null,V=!0,$=!0,G=!1,Y=!0,Z=!1,J=!0,X=!1,K=!1,Q=!1,ee=!1,te=!1,ne=!1,re=!0,oe=!1,ie=!0,ae=!1,se={},le=null;const ce=os({},["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=os({},["audio","video","img","source","image","track"]);let pe=null;const fe=os({},["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=os({},[me,he,ge],Ya);let ve=null;const xe=["application/xhtml+xml","text/html"];let ke=null,Ce=null;const Ee=r.createElement("form"),Se=function(e){return e instanceof RegExp||e instanceof Function},Ne=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ce||Ce!==e){if(e&&"object"==typeof e||(e={}),e=as(e),ve=-1===xe.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ke="application/xhtml+xml"===ve?Ya:Ga,D=Qa(e,"ALLOWED_TAGS")?os({},e.ALLOWED_TAGS,ke):M,B=Qa(e,"ALLOWED_ATTR")?os({},e.ALLOWED_ATTR,ke):z,be=Qa(e,"ALLOWED_NAMESPACES")?os({},e.ALLOWED_NAMESPACES,Ya):we,pe=Qa(e,"ADD_URI_SAFE_ATTR")?os(as(fe),e.ADD_URI_SAFE_ATTR,ke):fe,de=Qa(e,"ADD_DATA_URI_TAGS")?os(as(ue),e.ADD_DATA_URI_TAGS,ke):ue,le=Qa(e,"FORBID_CONTENTS")?os({},e.FORBID_CONTENTS,ke):ce,q=Qa(e,"FORBID_TAGS")?os({},e.FORBID_TAGS,ke):{},W=Qa(e,"FORBID_ATTR")?os({},e.FORBID_ATTR,ke):{},se=!!Qa(e,"USE_PROFILES")&&e.USE_PROFILES,V=!1!==e.ALLOW_ARIA_ATTR,$=!1!==e.ALLOW_DATA_ATTR,G=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Z=e.SAFE_FOR_TEMPLATES||!1,J=!1!==e.SAFE_FOR_XML,X=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,Q=e.FORCE_BODY||!1,re=!1!==e.SANITIZE_DOM,oe=e.SANITIZE_NAMED_PROPS||!1,ie=!1!==e.KEEP_CONTENT,ae=e.IN_PLACE||!1,j=e.ALLOWED_URI_REGEXP||Cs,ye=e.NAMESPACE||ge,H=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Se(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Se(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(H.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Z&&($=!1),te&&(ee=!0),se&&(D=os({},ms),B=[],!0===se.html&&(os(D,ls),os(B,hs)),!0===se.svg&&(os(D,cs),os(B,gs),os(B,_s)),!0===se.svgFilters&&(os(D,ds),os(B,gs),os(B,_s)),!0===se.mathMl&&(os(D,ps),os(B,ys),os(B,_s))),e.ADD_TAGS&&(D===M&&(D=as(D)),os(D,e.ADD_TAGS,ke)),e.ADD_ATTR&&(B===z&&(B=as(B)),os(B,e.ADD_ATTR,ke)),e.ADD_URI_SAFE_ATTR&&os(pe,e.ADD_URI_SAFE_ATTR,ke),e.FORBID_CONTENTS&&(le===ce&&(le=as(le)),os(le,e.FORBID_CONTENTS,ke)),ie&&(D["#text"]=!0),X&&os(D,["html","head","body"]),D.table&&(os(D,["tbody"]),delete q.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw ts('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw ts('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),Ce=e}},Te=os({},["mi","mo","mn","ms","mtext"]),Ae=os({},["foreignobject","annotation-xml"]),Oe=os({},["title","style","font","a","script"]),Re=os({},[...cs,...ds,...us]),Le=os({},[...ps,...fs]),Pe=function(e){$a(n.removed,{element:e});try{w(e).removeChild(e)}catch(t){y(e)}},Ie=function(e,t){try{$a(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(r){$a(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!B[e])if(ee||te)try{Pe(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=Za(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?S.call(t,X?"html":"body")[0]:X?t.documentElement:i},Fe=function(e){return C.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},je=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof u)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},De=function(e){return"function"==typeof l&&e instanceof l},Me=function(e,t,r){T[e]&&Wa(T[e],(e=>{e.call(n,t,r,Ce)}))},Be=function(e){let t=null;if(Me("beforeSanitizeElements",e,null),je(e))return Pe(e),!0;const r=ke(e.nodeName);if(Me("uponSanitizeElement",e,{tagName:r,allowedTags:D}),e.hasChildNodes()&&!De(e.firstElementChild)&&es(/<[/\w]/g,e.innerHTML)&&es(/<[/\w]/g,e.textContent))return Pe(e),!0;if(e.nodeType===Ls)return Pe(e),!0;if(J&&e.nodeType===Ps&&es(/<[/\w]/g,e.data))return Pe(e),!0;if(!D[r]||q[r]){if(!q[r]&&He(r)){if(H.tagNameCheck instanceof RegExp&&es(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 Pe(e),!0}return e instanceof c&&!function(e){let t=w(e);t&&t.tagName||(t={namespaceURI:ye,tagName:"template"});const n=Ga(e.tagName),r=Ga(t.tagName);return!!be[e.namespaceURI]&&(e.namespaceURI===he?t.namespaceURI===ge?"svg"===n:t.namespaceURI===me?"svg"===n&&("annotation-xml"===r||Te[r]):Boolean(Re[n]):e.namespaceURI===me?t.namespaceURI===ge?"math"===n:t.namespaceURI===he?"math"===n&&Ae[r]:Boolean(Le[n]):e.namespaceURI===ge?!(t.namespaceURI===he&&!Ae[r])&&!(t.namespaceURI===me&&!Te[r])&&!Le[n]&&(Oe[n]||!Re[n]):!("application/xhtml+xml"!==ve||!be[e.namespaceURI]))}(e)?(Pe(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!es(/<\/no(script|embed|frames)/i,e.innerHTML)?(Z&&e.nodeType===Rs&&(t=e.textContent,Wa([A,O,R],(e=>{t=Ja(t,e," ")})),e.textContent!==t&&($a(n.removed,{element:e.cloneNode()}),e.textContent=t)),Me("afterSanitizeElements",e,null),!1):(Pe(e),!0)},ze=function(e,t,n){if(re&&("id"===t||"name"===t)&&(n in r||n in Ee))return!1;if($&&!W[t]&&es(L,t));else if(V&&es(P,t));else if(!B[t]||W[t]){if(!(He(e)&&(H.tagNameCheck instanceof RegExp&&es(H.tagNameCheck,e)||H.tagNameCheck instanceof Function&&H.tagNameCheck(e))&&(H.attributeNameCheck instanceof RegExp&&es(H.attributeNameCheck,t)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(t))||"is"===t&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&es(H.tagNameCheck,n)||H.tagNameCheck instanceof Function&&H.tagNameCheck(n))))return!1}else if(pe[t]);else if(es(j,Ja(n,U,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Xa(n,"data:")||!de[e]){if(G&&!es(I,Ja(n,U,"")));else if(n)return!1}else;return!0},He=function(e){return"annotation-xml"!==e&&Za(e,F)},qe=function(e){Me("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:B};let o=t.length;for(;o--;){const a=t[o],{name:s,namespaceURI:l,value:c}=a,d=ke(s);let u="value"===s?c:Ka(c);if(r.attrName=d,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,Me("uponSanitizeAttribute",e,r),u=r.attrValue,J&&es(/((--!?|])>)|<\/(style|title)/i,u)){Ie(s,e);continue}if(r.forceKeepAttr)continue;if(Ie(s,e),!r.keepAttr)continue;if(!Y&&es(/\/>/i,u)){Ie(s,e);continue}Z&&Wa([A,O,R],(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)?Pe(e):Va(n.removed)}catch(i){}}}Me("afterSanitizeAttributes",e,null)},We=function e(t){let n=null;const r=Fe(t);for(Me("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)Me("uponSanitizeShadowNode",n,null),Be(n)||(n.content instanceof a&&e(n.content),qe(n));Me("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,s=null,c=null;if(_e=!e,_e&&(e="\x3c!--\x3e"),"string"!=typeof e&&!De(e)){if("function"!=typeof e.toString)throw ts("toString is not a function");if("string"!=typeof(e=e.toString()))throw ts("dirty is not a string, aborting")}if(!n.isSupported)return e;if(K||Ne(t),n.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){const t=ke(e.nodeName);if(!D[t]||q[t])throw ts("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&&!Z&&!X&&-1===e.indexOf("<"))return v&&ne?v.createHTML(e):e;if(r=Ue(e),!r)return ee?null:ne?x:""}r&&Q&&Pe(r.firstChild);const d=Fe(ae?e:r);for(;s=d.nextNode();)Be(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(B.shadowroot||B.shadowrootmode)&&(c=N.call(o,c,!0)),c}let u=X?r.outerHTML:r.innerHTML;return X&&D["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&es(Ns,r.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+u),Z&&Wa([A,O,R],(e=>{u=Ja(u,e," ")})),v&&ne?v.createHTML(u):u},n.setConfig=function(){Ne(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),K=!0},n.clearConfig=function(){Ce=null,K=!1},n.isValidAttribute=function(e,t,n){Ce||Ne({});const r=ke(e),o=ke(t);return ze(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(T[e]=T[e]||[],$a(T[e],t))},n.removeHook=function(e){if(T[e])return Va(T[e])},n.removeHooks=function(e){T[e]&&(T[e]=[])},n.removeAllHooks=function(){T={}},n}();const Fs=({children:e})=>{const t=ro.Children.toArray(e),n=t.find((e=>e.type===js)),r=t.find((e=>e.type===Ds));return so(Ji,{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(Ji,{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(Ji,{appear:!0,show:!0,enter:"transition delay-300 duration-[600ms] ease-out",enterFrom:"opacity-0 -translate-y-6",enterTo:"opacity-100 translate-y-0",children:r&&so("div",{class:"flex items-center h-full",children:r})})]})})},js=({children:e})=>so(C,{children:e}),Ds=({children:e})=>so(C,{children:e});Fs.Left=js,Fs.Right=Ds;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"})),Bs=e=>so(Ji,{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(ni,{class:"h-5 w-5 fill-primary-base"})}),so("span",{class:"text-sm leading-5 text-gray-600",children:e})]},t)))})}),zs=e=>{const[t,n]=Dn(!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(Ms,{class:"h-4 w-4"})})]})})},Hs=e=>{var t,n,r,o;const{featureFlags:{marketplaceScheme:i}}=$n(co),{trace:a}=ra(),[s,l]=Dn(!1);bo((()=>{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(Fs,{children:[so(Fs.Left,{children:so("div",{children:so(Ji,{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(zs,{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(ta,{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(va,{open:s,children:[so(ba,{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(wa,{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:Us.sanitize(e,{ADD_ATTR:["target"]})}},t)))})})]})]})})})}),so(Fs.Right,{children:so("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},qs=e=>{var t,n,r;const{featureFlags:{marketplaceScheme:o}}=$n(co),{trace:i}=ra(),[a,s]=Dn(!1);bo((()=>{"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(Fs,{children:[so(Fs.Left,{children:so("div",{children:so(Ji,{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(zs,{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(ta,{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(va,{open:a,children:[so(ba,{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(wa,{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:Us.sanitize(e,{ADD_ATTR:["target"]})}},t)))})})]})]})})})}),so(Fs.Right,{children:so("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},Ws=({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%]"})]})}),Vs=e=>{const{featureFlags:{marketplaceSubNavigation:t},offersProgress:{update:n}}=$n(co),[r,o]=Dn(0),{trace:i}=ra(),a=Vn(((t,i,a)=>{n(t,i,a),r===e.offers.length-1?e.onComplete():o(r+1)}),[n,r,e]),s=Vn((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(Ws,{current:r+1,total:e.offers.length+1}),so(Qo,{selectedIndex:r,onChange:s,children:[t&&e.offers.map((e=>so(Xo,{label:e.content.productName,icon:so(Jo,{iconUrl:e.content.iconUrl})},e.name))),e.offers.map((e=>so(Ko,{children:["Eoi"===e.content.template&&so(Hs,{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(qs,{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)))]})]})},$s=""+("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),Gs=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"})),Ys=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"})),Zs=""+("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}=ra(),{identity:n,getIdentityRegistrationStatus:r,featureFlags:{marketplaceScheme:o}}=$n(co);Bn((()=>{(async()=>{await t({type:"summary-viewed",data:{summaryVariant:"app"}},{experiment:"onboarding-marketplace-scheme",treatment:o.scheme})})()}),[o,t]);const i={...Xs(n,r()),imageUrl:$s,mobileImageUrl:Zs},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(Fs,{children:[so(Fs.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(Gs,{}),so(Ys,{})]}),so(yo,{testId:"step-benefits-finish",class:a.class,onClickPromise:a.onClick,children:a.text})]})}),so(Fs.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),Qs=""+("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),el=({onComplete:e})=>{const{trace:t}=ra(),{getWorkplaceLinkingStatus:n,featureFlags:{marketplaceScheme:r}}=$n(co);Bn((()=>{(async()=>{await t({type:"summary-viewed",data:{summaryVariant:"generic"}},{experiment:"onboarding-marketplace-scheme",treatment:r.scheme})})()}),[r,t]);const o={imageUrl:Ks,mobileImageUrl:Qs,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(Fs,{children:[so(Fs.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(Fs.Right,{children:so("img",{class:"max-w-[30rem] w-full hidden md:block",src:o.imageUrl,loading:"lazy"})})]})},tl=()=>{const{offers:e,workplace:t,updateIdentity:n}=$n(co),{current:r,goNext:o}=function(){const{isAppEnabled:e,getIdentityRegistrationStatus:t,featureFlags:n}=$n(co),r=Wn((()=>"allowance"===n.marketplaceScheme.scheme?["Allowance_JoinBenefits","FlareAppIdentity","Allowance_ConfigureBenefits","MarketplaceOffers","Allowance_BenefitsSummary"]:["Introduction","FlareAppIdentity","MarketplaceOffers",e?"SummaryApp":"SummaryGeneric"]),[n,e]),[o,i]=Dn(r[0]),a=Vn((async()=>{if(r.indexOf(o)===r.length-1){const e=document.querySelector(rl),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=Vn((()=>{n(!0),o()}),[o,n]),a=Vn((()=>{n(!1),o()}),[o,n]);switch(r){case"Introduction":return so(Aa,{employerName:t.employerName,onStepComplete:o});case"Allowance_JoinBenefits":return so(oa,{employerName:t.employerName,onContinue:o});case"FlareAppIdentity":return so(Na,{onSuccess:i,onDecline:a});case"Allowance_ConfigureBenefits":return so(ea,{onContinue:o});case"MarketplaceOffers":return so(Vs,{offers:e,onComplete:o});case"Allowance_BenefitsSummary":return so(sa,{onContinue:o});case"SummaryApp":return so(Js,{onComplete:o});case"SummaryGeneric":return so(el,{onComplete:o});default:return so(C,{})}},nl=()=>$n(co).isLoading?so("div",{class:"flex justify-center",children:so("span",{class:"animate-spin",children:so(ho,{size:"lg"})})}):so(tl,{}),rl="benefits-onboarding";!function(e,t,n,r){function o(){var t=Reflect.construct(HTMLElement,[],o);return t._vdomComponent=e,t._root=r&&r.shadow?t.attachShadow({mode:r.mode||"open"}):t,t}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=X,o.prototype.attributeChangedCallback=Q,o.prototype.disconnectedCallback=ee,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(t){this._vdom?this.attributeChangedCallback(e,null,t):(this._props||(this._props={}),this._props[e]=t,this.connectedCallback());var n=typeof t;null!=t&&"string"!==n&&"boolean"!==n&&"number"!==n||this.setAttribute(e,t)}})})),customElements.define(t,o)}((e=>{const[t,n]=Dn(0);Bn((()=>se((()=>{n(t+1)}))),[t]);const r={backendUrl:e["backend-url"],accessToken:e["access-token"],workflowsInstanceId:e["workflows-instance-id"],workflowsJourneyType:e["journey-type"]};return xn(r.backendUrl,r.accessToken,r.workflowsInstanceId,r.workflowsJourneyType),"prod"===fo(r.backendUrl)&&mo.init("p09arvzysr"),so(C,{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(nl,{})})},t)]})}),rl,[],{shadow:!0})}));
|
7
|
+
var Co=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,Eo=/\\([\u000b\u0020-\u00ff])/g,So=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,No=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(!So.test(r))throw new TypeError("invalid media type");var o=new To(r.toLowerCase());if(-1!==n){var i,a,s;for(Co.lastIndex=n;a=Co.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(Eo,"$1")),o.parameters[i]=s}if(n!==t.length)throw new TypeError("invalid parameter format")}return o};function To(e){this.parameters=Object.create(null),this.type=e}var Oo=new Map,Ao=function(e){return e.cloneNode(!0)},Ro=function(){return"file:"===window.location.protocol},Lo=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=No(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(Ro()?"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||Ro()&&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()},Po={},Io=function(e,t){Po[e]=Po[e]||[],Po[e].push(t)},Uo=function(e,t,n){if(Oo.has(e)){var r=Oo.get(e);if(void 0===r)return void Io(e,n);if(r instanceof SVGSVGElement)return void n(null,Ao(r))}Oo.set(e,void 0),Io(e,n),Lo(e,t,(function(t,n){var r;t?Oo.set(e,t):(null===(r=n.responseXML)||void 0===r?void 0:r.documentElement)instanceof SVGSVGElement&&Oo.set(e,n.responseXML.documentElement),function(e){for(var t=function(t,n){setTimeout((function(){if(Array.isArray(Po[e])){var n=Oo.get(e),r=Po[e][t];n instanceof SVGSVGElement&&r(null,Ao(n)),n instanceof Error&&r(n),t===Po[e].length-1&&delete Po[e]}}),0)},n=0,r=Po[e].length;n<r;n++)t(n)}(e)}))},Fo=function(e,t,n){Lo(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)}))},jo=0,Bo=[],Do={},Mo="http://www.w3.org/1999/xlink",zo=function(e,t,n,r,o,i,a){var s=e.getAttribute("data-src")||e.getAttribute("src");if(s){if(-1!==Bo.indexOf(e))return Bo.splice(Bo.indexOf(e),1),void(e=null);Bo.push(e),e.setAttribute("src",""),(r?Uo:Fo)(s,o,(function(r,o){if(!o)return Bo.splice(Bo.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(ko(ko(ko([],(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=_+"-"+ ++jo,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(Mo,"href");l&&l.toString()==="#"+g[e].id&&i.push(r[a])}for(var c=0,d=i.length;c<d;c++)i[c].setAttributeNS(Mo,"href","#"+b);g[e].id=b},n=0,r=(g=o.querySelectorAll(h+"[id]")).length;n<r;n++)t(n)}))}o.removeAttribute("xmlns:a");for(var v,x,k=o.querySelectorAll("script"),C=[],E=0,S=k.length;E<S;E++)(x=k[E].getAttribute("type"))&&"application/ecmascript"!==x&&"application/javascript"!==x&&"text/javascript"!==x||((v=k[E].innerText||k[E].textContent)&&C.push(v),o.removeChild(k[E]));if(C.length>0&&("always"===t||"once"===t&&!Do[s])){for(var N=0,T=C.length;N<T;N++)new Function(C[N])(window);Do[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",Mo),i(o),!e.parentNode)return Bo.splice(Bo.indexOf(e),1),e=null,void a(new Error("Parent node is null"));e.parentNode.replaceChild(o,e),Bo.splice(Bo.indexOf(e),1),e=null,a(null,o)}))}else a(new Error("Invalid data-src or src attribute"))},Ho={exports:{}};function qo(){}function Wo(){}Wo.resetWarningCache=qo;Ho.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:Wo,resetWarningCache:qo};return n.PropTypes=n,n}();var Vo=Ho.exports,$o=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],Go="http://www.w3.org/2000/svg",Yo="http://www.w3.org/1999/xlink",Zo=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,xo(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(Go,h)).setAttribute("xmlns",Go),n.setAttribute("xmlns:xlink",Yo),r=document.createElementNS(Go,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;_++)zo(e[_],p,g,d,m,l,(function(t,n){a(t,n),e&&"length"in e&&e.length===++y&&o(y)}));else e?zo(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})(vo({},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,$o);return v(r,vo({},o,{ref:this.refCallback},"svg"===r?{xmlns:Go,xmlnsXlink:Yo}:{}),this.state.isLoading&&n&&v(n,null),this.state.hasError&&t&&v(t,null))},t}(E);Zo.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"},Zo.propTypes={afterInjection:Vo.func,beforeInjection:Vo.func,desc:Vo.string,evalScripts:Vo.oneOf(["always","once","never"]),fallback:Vo.oneOfType([Vo.func,Vo.object,Vo.string]),httpRequestWithCredentials:Vo.bool,loading:Vo.oneOfType([Vo.func,Vo.object,Vo.string]),onError:Vo.func,renumerateIRIElements:Vo.bool,src:Vo.string.isRequired,title:Vo.string,useRequestCache:Vo.bool,wrapper:Vo.oneOf(["div","span","svg"])};const Jo=({visible:e,children:t})=>{const n=qn(e);return e&&!n.current&&(n.current=!0),n.current?lo("div",{hidden:!e,children:t}):null},Xo=({icon:e})=>"string"==typeof e?lo(Zo,{src:e,wrapper:"svg",className:"w-6 h-6 max-w-6 max-h-6 min-w-6 min-h-6",beforeInjection:e=>{var t;e.removeAttribute("width"),e.removeAttribute("height"),null==(t=e.querySelector("path"))||t.removeAttribute("fill"),e.setAttribute("fill","currentColor")}}):lo("div",{className:"w-6 h-6 max-w-6 max-h-6 min-w-6 min-h-6",children:e}),Ko=({label:e,icon:t})=>lo("div",{className:"flex items-center flex-col",children:[t,lo("p",{className:"max-h-10 max-w-20 break-words text-ellipsis overflow-hidden line-clamp-2 mt-2",children:e})]}),Qo=({children:e})=>lo(C,{children:e}),ei=({selectedIndex:e,onChange:t,children:n})=>{const r=Vn((()=>ur.toArray(n).filter((e=>e.type===Ko))),[n]),o=Vn((()=>ur.toArray(n).filter((e=>e.type===Qo))),[n]);return wo((()=>{o.length>0&&(null==t||t(0))})),lo("div",{children:[lo("div",{className:"flex items-baseline md:mb-4",children:r.map(((n,r)=>lo("div",{onClick:()=>null==t?void 0:t(r),className:`\n text-sm font-medium cursor-auto w-10 min-w-10 max-w-10 h-12 min-h-12 max-h-12 mr-10 h-full relative\n flex items-center justify-center\n [&:not(:last-child):after]:absolute [&:not(:last-child):after]:top-3 [&:not(:last-child):after]:content-[""] [&:not(:last-child):after]:w-10 [&:not(:last-child):after]:border-b-2 [&:not(:last-child):after]:border-solid [&:not(:last-child):after]:border-gray-200 [&:not(:last-child):after]:left-10\n ${r===e?"text-primary-base":"text-gray-400"}\n hover:before:content-[''] \n ${o.length>0?"hover:before:cursor-pointer":"hover:before:cursor-default"} \n hover:before:w-16 hover:before:h-16 hover:before:absolute\n `,children:n},n.key)))}),o.map(((t,n)=>lo(Jo,{visible:n===e,children:t},t.key)))]})},ti=({className:e,children:t})=>lo("h1",{className:`text-2xl md:text-3xl font-bold ${e??""}`,children:t}),ni=({className:e,children:t})=>lo("h3",{class:`text-base md:text-lg text-gray-600 ${e??""}`,children:t}),ri=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"})),oi=({title:e,steps:t,...n})=>{const r=t.length,o=t.filter((e=>e.completed)).length;return lo("div",{...n,children:[e&&lo("h1",{className:"text-lg font-semibold mb-4",children:e}),lo("ol",{children:t.map(((e,t)=>{const n=o===t;return lo("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:lo("div",{className:"flex font-medium w-full",children:[lo("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?lo(ri,{className:"w-4 h-4 text-white"}):t+1}),lo("div",{children:[lo("h4",{className:"text-sm text-left font-semibold "+(e.completed||n?"text-primary-base":"text-gray-600"),children:e.title}),lo("p",{className:"text-sm text-left font-normal",children:e.description})]})]})},t)}))})]})};var ii=Object.defineProperty,ai=(e,t,n)=>(((e,t,n)=>{t in e?ii(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let si=new class{constructor(){ai(this,"current",this.detect()),ai(this,"handoffState","pending"),ai(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}},li=(e,t)=>{si.isServer?zn(e,t):Hn(e,t)};function ci(e){let t=qn(e);return li((()=>{t.current=e}),[e]),t}let di=function(e){let t=ci(e);return oo.useCallback(((...e)=>t.current(...e)),[t])};function ui(){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=ui();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 pi(){let[e]=Dn(ui);return zn((()=>()=>e.dispose()),[e]),e}function fi(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in io&&io.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=Dn(si.isHandoffComplete);return t&&!1===si.isHandoffComplete&&n(!1),zn((()=>{!0!==t&&n(!0)}),[t]),zn((()=>si.handoff()),[]),!e&&t}function mi(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,mi),r}let hi=Symbol();function gi(...e){let t=qn(e);zn((()=>{t.current=e}),[e]);let n=di((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[hi])))?void 0:n}function yi(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}var _i,bi,wi=((bi=wi||{})[bi.None=0]="None",bi[bi.RenderStrategy=1]="RenderStrategy",bi[bi.Static=2]="Static",bi),vi=((_i=vi||{})[_i.Unmount=0]="Unmount",_i[_i.Hidden=1]="Hidden",_i);function xi({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a,mergeRefs:s}){s=null!=s?s:Ci;let l=Ei(t,e);if(i)return ki(l,n,r,a,s);let c=null!=o?o:0;if(2&c){let{static:e=!1,...t}=l;if(e)return ki(t,n,r,a,s)}if(1&c){let{unmount:e=!0,...t}=l;return mi(e?0:1,{0:()=>null,1:()=>ki({...t,hidden:!0,style:{display:"none"}},n,r,a,s)})}return ki(l,n,r,a,s)}function ki(e,t={},n,r,o){let{as:i=n,children:a,refName:s="ref",...l}=Ti(e,["unmount","static"]),c=void 0!==e.ref?{[s]:e.ref}:{},d="function"==typeof a?a(t):a;"className"in l&&l.className&&"function"==typeof l.className&&(l.className=l.className(t));let u={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r);e&&(u["data-headlessui-state"]=n.join(" "))}if(i===C&&Object.keys(Ni(l)).length>0){if(!qr(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)=>yi(null==e?void 0:e.className(...t),l.className):yi(null==e?void 0:e.className,l.className),n=t?{className:t}:{};return Vr(d,Object.assign({},Ei(d.props,Ni(Ti(l,["ref"]))),u,c,{ref:o(d.ref,c.ref)},n))}return v(i,Object.assign({},Ti(l,["ref"]),i!==C&&c,i!==C&&u),d)}function Ci(...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 Ei(...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 Si(e){var t;return Object.assign(cr(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Ni(e){let t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}function Ti(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}let Oi=G(null);Oi.displayName="OpenClosedContext";var Ai=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Ai||{});function Ri(){return Gn(Oi)}function Li({value:e,children:t}){return oo.createElement(Oi.Provider,{value:e},t)}function Pi(){let e=qn(!1);return li((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function Ii(e,...t){e&&t.length>0&&e.classList.add(...t)}function Ui(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Fi(e,t,n,r){let o=n?"enter":"leave",i=ui(),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=mi(o,{enter:()=>t.enter,leave:()=>t.leave}),l=mi(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=mi(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Ui(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Ii(e,...t.base,...s,...c),i.nextFrame((()=>{Ui(e,...t.base,...s,...c),Ii(e,...t.base,...s,...l),function(e,t){let n=ui();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,(()=>(Ui(e,...t.base,...s),Ii(e,...t.base,...t.entered),a())))})),i.dispose}function ji(e=""){return e.split(/\s+/).filter((e=>e.length>1))}let Bi=G(null);Bi.displayName="TransitionContext";var Di,Mi=((Di=Mi||{}).Visible="visible",Di.Hidden="hidden",Di);let zi=G(null);function Hi(e){return"children"in e?Hi(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function qi(e,t){let n=ci(e),r=qn([]),o=Pi(),i=pi(),a=di(((e,t=vi.Hidden)=>{let a=r.current.findIndex((({el:t})=>t===e));-1!==a&&(mi(t,{[vi.Unmount](){r.current.splice(a,1)},[vi.Hidden](){r.current[a].state="hidden"}}),i.microTask((()=>{var e;!Hi(r)&&o.current&&(null==(e=n.current)||e.call(n))})))})),s=di((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,vi.Unmount)})),l=qn([]),c=qn(Promise.resolve()),d=qn({enter:[],leave:[],idle:[]}),u=di(((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=di(((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 Vn((()=>({children:r,register:s,unregister:a,onStart:u,onStop:p,wait:c,chains:d})),[s,a,r,u,p,d,c])}function Wi(){}zi.displayName="NestingContext";let Vi=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function $i(e){var t;let n={};for(let r of Vi)n[r]=null!=(t=e[r])?t:Wi;return n}let Gi=wi.RenderStrategy;let Yi=Si((function(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,a=qn(null),s=gi(a,t);fi();let l=Ri();if(void 0===n&&null!==l&&(n=(l&Ai.Open)===Ai.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,d]=Dn(n?"visible":"hidden"),u=qi((()=>{d("hidden")})),[p,f]=Dn(!0),m=qn([n]);li((()=>{!1!==p&&m.current[m.current.length-1]!==n&&(m.current.push(n),f(!1))}),[m,n]);let h=Vn((()=>({show:n,appear:r,initial:p})),[n,r,p]);zn((()=>{if(n)d("visible");else if(Hi(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=di((()=>{var t;p&&f(!1),null==(t=e.beforeEnter)||t.call(e)})),_=di((()=>{var t;p&&f(!1),null==(t=e.beforeLeave)||t.call(e)}));return oo.createElement(zi.Provider,{value:u},oo.createElement(Bi.Provider,{value:h},xi({ourProps:{...g,as:C,children:oo.createElement(Zi,{ref:s,...g,...i,beforeEnter:y,beforeLeave:_})},theirProps:{},defaultTag:C,features:Gi,visible:"visible"===c,name:"Transition"})))})),Zi=Si((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=qn(null),y=gi(g,t),_=null==(n=h.unmount)||n?vi.Unmount:vi.Hidden,{show:b,appear:w,initial:v}=function(){let e=Gn(Bi);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]=Dn(b?"visible":"hidden"),C=function(){let e=Gn(zi);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:E,unregister:S}=C;zn((()=>E(g)),[E,g]),zn((()=>{if(_===vi.Hidden&&g.current)return b&&"visible"!==x?void k("visible"):mi(x,{hidden:()=>S(g),visible:()=>E(g)})}),[x,g,E,S,b,_]);let N=ci({base:ji(h.className),enter:ji(l),enterFrom:ji(c),enterTo:ji(d),entered:ji(u),leave:ji(p),leaveFrom:ji(f),leaveTo:ji(m)}),T=function(e){let t=qn($i(e));return zn((()=>{t.current=$i(e)}),[e]),t}({beforeEnter:o,afterEnter:i,beforeLeave:a,afterLeave:s}),O=fi();zn((()=>{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,L=(()=>!O||A?"idle":b?"enter":"leave")(),P=function(e=0){let[t,n]=Dn(e),r=Pi(),o=$n((e=>{r.current&&n((t=>t|e))}),[t,r]),i=$n((e=>Boolean(t&e)),[t]),a=$n((e=>{r.current&&n((t=>t&~e))}),[n,r]),s=$n((e=>{r.current&&n((t=>t^e))}),[n]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:a,toggleFlag:s}}(0),I=di((e=>mi(e,{enter:()=>{P.addFlag(Ai.Opening),T.current.beforeEnter()},leave:()=>{P.addFlag(Ai.Closing),T.current.beforeLeave()},idle:()=>{}}))),U=di((e=>mi(e,{enter:()=>{P.removeFlag(Ai.Opening),T.current.afterEnter()},leave:()=>{P.removeFlag(Ai.Closing),T.current.afterLeave()},idle:()=>{}}))),F=qi((()=>{k("hidden"),S(g)}),C),j=qn(!1);!function({immediate:e,container:t,direction:n,classes:r,onStart:o,onStop:i}){let a=Pi(),s=pi(),l=ci(n);li((()=>{e&&(l.current="enter")}),[e]),li((()=>{let e=ui();s.add(e.dispose);let n=t.current;if(n&&"idle"!==l.current&&a.current)return e.dispose(),o.current(l.current),e.add(Fi(n,r.current,"enter"===l.current,(()=>{e.dispose(),i.current(l.current)}))),e.dispose}),[n])}({immediate:R,container:g,classes:N,direction:L,onStart:ci((e=>{j.current=!0,F.onStart(g,e,I)})),onStop:ci((e=>{j.current=!1,F.onStop(g,e,U),"leave"===e&&!Hi(F)&&(k("hidden"),S(g))}))});let B=h,D={ref:y};return R?B={...B,className:yi(h.className,...N.current.enter,...N.current.enterFrom)}:j.current&&(B.className=yi(h.className,null==(r=g.current)?void 0:r.className),""===B.className&&delete B.className),oo.createElement(zi.Provider,{value:F},oo.createElement(Li,{value:mi(x,{visible:Ai.Open,hidden:Ai.Closed})|P.flags},xi({ourProps:D,theirProps:B,defaultTag:"div",features:Gi,visible:"visible"===x,name:"Transition.Child"})))})),Ji=Si((function(e,t){let n=null!==Gn(Bi),r=null!==Ri();return oo.createElement(oo.Fragment,null,!n&&r?oo.createElement(Yi,{ref:t,...e}):oo.createElement(Zi,{ref:t,...e}))})),Xi=Object.assign(Yi,{Child:Ji,Root:Yi});const Ki=({children:e})=>{const t=oo.Children.toArray(e),n=t.find((e=>e.type===Qi)),r=t.find((e=>e.type===ea));return lo(Xi,{appear:!0,show:!0,enter:"transition duration-700 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:lo("div",{class:"flex flex-col text-center items-center max-w-[40rem] mx-auto",children:[lo(Xi,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:n&&lo("div",{class:"flex items-center h-full",children:n})}),lo(Xi,{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&&lo("div",{class:"flex items-center h-full",children:r})})]})})},Qi=({children:e})=>lo(C,{children:e}),ea=({children:e})=>lo(C,{children:e});Ki.Top=Qi,Ki.Bottom=ea;const ta=({onContinue:e})=>{const{featureFlags:{marketplaceScheme:t},offers:n}=Gn(uo),r="allowance"===t.scheme?t.content.setUpBenefits:void 0;return lo(C,{children:r&&lo("div",{className:"flex flex-col items-center max-w-full w-full mx-auto",children:[lo(ei,{selectedIndex:-1,children:n.map((e=>lo(Ko,{label:e.content.productName,icon:lo(Xo,{icon:e.content.iconUrl})},e.name)))}),lo(Ki,{children:[lo(Ki.Top,{children:lo("div",{className:"flex flex-col gap-4",children:[lo(ti,{children:r.title}),lo(ni,{children:r.description})]})}),lo(Ki.Bottom,{children:lo("div",{className:"mt-5 flex flex-col items-center gap-5 text-center",children:[r.progress&&lo(bo,{className:"lg:w-3/4",title:r.progress.title,children:lo(oi,{steps:r.progress.steps,className:"mt-2 rounded-md px-6 py-4"})}),lo(_o,{testId:"allowance_set_up_benefits_button_next_screen",class:"mt-5 w-full md:w-[240px]",onClickPromise:e,children:r.buttonText}),r.termsAndConditions&&lo("span",{className:"font-normal text-xs mt-4 lg:w-3/4",children:lo(r.termsAndConditions,{})})]})})]})]})})},na=({icon:e,children:t,className:n,...r})=>lo("div",{...r,className:`${n??""} rounded-md shadow-sm`,children:lo("div",{className:"flex items-center gap-4 px-4 py-4",children:[e&&lo("span",{className:"w-8 min-w-8 max-w-8",children:e}),t&&lo("span",{className:"text-left text-base",children:t})]})}),ra=(e,t)=>{switch(!0){case"started"===e:return vn.backend.command({eventType:"Started"},t);case"membership-accepted"===e:return vn.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!0,featureName:"",treatmentName:"",template:"Eoi"}},t);case"membership-declined"===e:return vn.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!1,featureName:"",treatmentName:"",template:"Eoi"}},t);case"sign-up-viewed"===e:return vn.backend.command({eventType:"OfferViewed",offerName:"Membership",data:{featureName:"",treatmentName:""}},t);case"sign-up-completed"===e:return(async()=>{await vn.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!0,featureName:"",treatmentName:"",template:"Eoi"}},t),await vn.backend.command({eventType:"CustomerRegistrationCompleted",isRegistered:!0},t)})();case"sign-up-declined"===e:return(async()=>{await vn.backend.command({eventType:"CustomerRegistrationCompleted",isRegistered:!1},t),await vn.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!1,featureName:"",treatmentName:"",template:"Eoi"}},t)})();case"object"==typeof e&&"offer-selected"===e.type:return vn.workplaceBackend.track("MarketplaceOffer Selected",{offer:e.offerName},t);case"object"==typeof e&&"offer-viewed"===e.type:return vn.backend.command({...e,eventType:"OfferViewed"},t);case"object"==typeof e&&"offer-accepted"===e.type:return vn.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:{...e.data,accepted:!0}},t);case"object"==typeof e&&"offer-declined"===e.type:return vn.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:{...e.data,accepted:!1}},t);case"object"==typeof e&&"offer-progressed"===e.type:return vn.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:e.data},t);case"object"==typeof e&&"summary-viewed"===e.type:return vn.backend.command({eventType:"SummaryViewed",summaryVariant:e.data.summaryVariant},t);case"completed"===e:return vn.backend.command({eventType:"Completed"},t)}return Promise.resolve()},oa=()=>({trace:ra}),ia=e=>{const{trace:t}=oa(),{featureFlags:{marketplaceScheme:n}}=Gn(uo),r="allowance"===n.scheme?n.content.joinBenefits:void 0;return lo(C,{children:r&&lo(Ki,{children:[lo(Ki.Top,{children:[lo("img",{class:"max-w-[30rem] w-full hidden md:block",src:r.desktopImageUrl}),lo("img",{class:"max-w-[30rem] w-full md:hidden",src:r.mobileImageUrl})]}),lo(Ki.Bottom,{children:lo("div",{children:[lo("h3",{class:"mt-8 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:r.title}),lo("p",{class:"mt-3 text-lg leading-7 text-gray-600",children:r.description}),lo(na,{className:"bg-teal-50 mt-5",style:{background:"linear-gradient(90deg, rgba(255, 216, 77, 0.10) 0%, rgba(255, 135, 111, 0.10) 100%)"},icon:r.specialBanner.icon,children:lo("div",{children:[lo("p",{className:"font-semibold text-base text-gray-900",children:r.specialBanner.title}),lo("span",{className:"font-normal text-base text-gray-900",children:r.specialBanner.subTitle})]})}),lo(_o,{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})]})})]})})},aa=""+("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),sa=()=>lo("div",{className:"mt-4 flex items-center border rounded-md border-gray-300",children:[lo("img",{className:"h-40 h-min-40 h-max-40 m-0.5",src:aa}),lo("div",{className:"flex flex-col gap-1",children:[lo("h4",{className:"font-bold text-lg text-left",children:"Workplace benefits in your pocket!"}),lo("p",{className:"font-normal text-base text-left",children:"Download the Flare app for easy access to your workplace benefits and exclusive discounts."}),lo("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 ","->"]})]})]}),la=({onContinue:e})=>{const{offersProgress:{hasCompletedAnyOffers:t},isAppEnabled:n,featureFlags:{marketplaceScheme:r}}=Gn(uo),{trace:o}=oa(),i=Vn((()=>{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]);zn((()=>{(async()=>{await o({type:"summary-viewed",data:{summaryVariant:i}},{experiment:"onboarding-marketplace-scheme",treatment:r.scheme})})()}),[r,i,o]);const a=$n((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 lo(C,{children:s&&lo(Ki,{children:[lo(Ki.Top,{children:lo("div",{className:"flex flex-col gap-4",children:[lo(ti,{children:s.title}),lo(ni,{children:s.description})]})}),lo(Ki.Bottom,{children:lo("div",{className:"mt-5 flex flex-col items-center gap-5 text-center",children:[s.progress&&lo(bo,{className:"lg:w-3/4",title:s.progress.title,children:lo(oi,{steps:s.progress.steps,className:"mt-2 rounded-md px-6 py-4"})}),lo(_o,{testId:"step-benefits-finish",class:"mt-5 w-full md:w-[240px]",onClickPromise:a,children:s.buttonText}),n&&lo(sa,{})]})})]})})};var ca=(e=>(e[e.PHONE_NUMBER=0]="PHONE_NUMBER",e[e.OTP=1]="OTP",e[e.SUCCESS=2]="SUCCESS",e))(ca||{});const da=({className:e,children:t,...n})=>lo("label",{class:`text-base text-gray-600 ${e??""}`,...n,children:t}),ua=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"})),pa=({className:e,onClick:t,...n})=>{const[r,o]=Dn(!1);return lo("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:$n((()=>{if(!r)return o(!0),t().finally((()=>{o(!1)}))}),[r,t]),...n,children:[lo("div",{class:"relative "+(r?"invisible":""),children:n.children}),r&&lo("div",{class:"absolute animate-spin",children:lo(go,{theme:"primary"})})]})},fa=({className:e,allowedKeyPattern:t,onChange:n,value:r,leadingIconElement:o,trailingIconElement:i,...a})=>{const s=$n((e=>{t.test(e.key)||e.preventDefault()}),[t]);return lo(C,{children:lo("div",{class:"relative",children:[o,lo("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]})})},ma=e=>e.replace(/ /g,""),ha=e=>{const t=ma(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)},ga=({phoneNumber:e,onSubmit:t,onDecline:n})=>{const{hostInformation:{workflowsJourneyType:r}}=Gn(uo),[o,i]=Dn(""),{setPhoneNumber:a,phoneNumber:s}=(e=>{const{identity:t}=Gn(uo),[n,r]=Dn((()=>e&&ha(e)?e:"")),o=Vn((()=>ha(n)),[n]),i=Vn((()=>ma(n)),[n]),a=Vn((()=>i.startsWith("04")?`+61${i.replace(/^0+/,"")}`:i.startsWith("614")?`+${i}`:i),[i]),s=Vn((()=>(e=>{let t=0;return"#### ### ### ### ### ### ###".replace(/#/g,(()=>e[t++]??"")).trim()})(i)),[i]),l=Vn((()=>ha(t.verifiedPhoneNumber)&&a===t.verifiedPhoneNumber),[a,t.verifiedPhoneNumber]);return{setPhoneNumber:r,phoneNumber:{valid:o,original:n,formatted:a,masked:s,isVerified:l}}})(e),[l,c]=Dn(s.isVerified),d=$n((()=>{i("")}),[]),u=$n((()=>{const e=s.valid?"":"Please enter a valid Australian mobile number beginning with 04.";i(e),c(s.isVerified)}),[s.isVerified,s.valid]),p=$n((async()=>{s.valid&&await t(s).catch(i)}),[s,t]),f=$n((async()=>{c(!1)}),[]),m=lo("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 ",lo(ua,{})]});return lo(Ki,{children:[lo(Ki.Top,{children:lo("div",{className:"flex flex-col gap-5",children:[lo(ti,{children:"Join your workplace benefits program"}),lo(ni,{children:[s.isVerified?"Confirm ":"Enter "," your ",lo("b",{children:"personal"})," mobile number to finish setting up your Flare Benefits account linked to your workplace"]})]})}),lo(Ki.Bottom,{children:lo("div",{className:"mt-5 md:w-[300px] text-left",children:[lo(da,{className:"font-medium text-sm text-gray-900 text-left",children:"Australian Mobile Number"}),lo(fa,{testId:"sign_in_mobile_number_text_input_mobile_number",allowedKeyPattern:/[+0-9]/,inputMode:"numeric",className:"mt-1 mb-1 w-full p-2 focus-visible:ring-gray-500",value:s.original,onChange:a,onfocusin:d,onfocusout:u,trailingIconElement:l&&m,disabled:l}),0!==o.length&&lo("div",{className:"h-8 leading-none",children:lo("span",{className:"text-xs text-rose-500",children:o})}),l&&lo("div",{className:"mt-2 ml-2 mb-2 leading-none",children:lo("span",{className:"text-xs",children:["Not your personal number?",lo(pa,{class:"text-blue-500",onClick:f,children:"Change number"})]})}),lo("div",{children:lo("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"," ",lo("a",{href:"https://www.flarehr.com/flare-app-terms-and-conditions/",target:"_blank",rel:"noreferrer",children:" Terms of Use "}),"and",lo("a",{href:"https://www.flarehr.com/privacy-policy/",target:"_blank",rel:"noreferrer",children:" Privacy Policy"}),"."," "]})}),lo(_o,{testId:"sign_in_mobile_number_button_send_otp",class:"mt-5 md:w-full",onClickPromise:p,children:"Join your workplace"}),r!==ne.AppInvite&&lo(_o,{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"})]})})]})},ya=""+("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),_a=({onContinue:e})=>{const{featureFlags:{marketplaceScheme:t}}=Gn(uo),n=Vn((()=>"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 zn((()=>{if("allowance"===t.scheme){const t=setTimeout(e,3e3);return()=>clearTimeout(t)}}),[t,e]),lo(Ki,{children:[lo(Ki.Top,{children:lo("img",{src:ya,className:"h-16 w-16"})}),lo(Ki.Bottom,{children:lo("div",{className:"mt-5 flex flex-col items-center gap-5 text-center",children:[lo(ti,{children:n.title}),lo(ni,{children:n.description}),!n.isNextButtonHidden&&lo(_o,{testId:"sign_in_success_button_next_screen",class:"mt-5 w-full md:w-[240px]",onClickPromise:async()=>{e()},children:"Set up your benefits"})]})})]})},ba=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"})),wa=({children:e})=>lo(C,{children:e}),va=({children:e})=>lo(C,{children:e}),xa=({open:e,children:t})=>{const n=Vn((()=>oo.Children.toArray(t).find((e=>e.type===wa))),[t]),r=Vn((()=>oo.Children.toArray(t).find((e=>e.type===va))),[t]),[o,i]=Dn(!e);return zn((()=>{let t;return e?i(!1):t=setTimeout((()=>{i(!0)}),200),()=>{t&&clearTimeout(t)}}),[e]),lo("div",{hidden:o,children:lo("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:lo("div",{className:"flex overflow-y-auto min-h-full items-end justify-center p-4 sm:items-center sm:p-0",children:lo("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:lo("div",{className:"bg-white p-4 sm:p-6",children:lo("div",{className:"sm:flex sm:items-start",children:lo("div",{className:"mt-3 sm:ml-4 sm:mt-0",children:[n,lo("div",{className:"mt-4",children:r})]})})})})})})})},ka=({open:e})=>lo(xa,{open:e,children:lo(va,{children:lo("div",{className:"flex flex-col gap-5 items-center justify-center text-center",children:[lo("span",{class:"animate-spin",children:lo(go,{size:"lg"})}),lo(ti,{children:"Creating your account"}),lo("div",{children:[lo(ni,{children:"This can take up to 30 seconds."}),lo(ni,{children:"Please don't navigate away or refresh your browser."})]})]})})}),Ca=({phoneNumber:e,onVerify:t,onResendOtp:n,onGoBack:r})=>{const{otp:o,setOtp:i}=(()=>{const[e,t]=Dn("");return{otp:{valid:Vn((()=>6===e.length),[e.length]),code:e},setOtp:t}})(),[a,s]=Dn(!1),[l,c]=Dn(""),{countdown:d,restart:u}=(e=>{const[t,n]=Dn(e),r=qn(),o=$n((()=>{clearInterval(r.current)}),[]);return zn((()=>o),[o]),{countdown:t,restart:$n((()=>{let t=e;clearInterval(r.current),r.current=setInterval((()=>{t<0?clearInterval(r.current):n(t--)}),1e3)}),[e])}})(60);zn(u,[u]);const p=$n((()=>(s(!0),c(""),t(o.code).catch(c).finally((()=>{s(!1)})))),[t,o.code]),f=$n((()=>(c(""),n().then(u).catch(c))),[n,u]);return lo(C,{children:[lo(ka,{open:a}),lo(Ki,{children:[lo(Ki.Top,{children:lo("div",{className:"flex flex-col gap-5",children:[lo(ti,{children:"Verify your mobile number"}),lo(ni,{children:["An SMS verification code has been sent to the number ",e,"."]})]})}),lo(Ki.Bottom,{children:lo("div",{className:"mt-5 md:w-[300px] text-left",children:[lo(da,{className:"font-medium text-sm text-gray-900 text-left",children:"Enter your verification code"}),lo(fa,{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&&lo("span",{className:"text-xs text-rose-500",children:l}),lo("p",{class:"mt-2 text-center text-xs text-gray-600 disabled:opacity-75 ",children:["Didn't get the code?",lo(pa,{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&&lo(C,{children:["in ",d," secs"]})]}),lo(_o,{testId:"sign_in_otp_button_verify_otp",class:"mt-5 md:w-full",disabled:!o.valid,onClickPromise:p,children:"Continue"}),lo(_o,{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:lo("span",{className:"flex gap-3",children:[lo(ba,{}),"Back"]})})]})})]})]})},Ea=({phoneNumber:e,onSignUp:t,onVerify:n,onResendOtp:r,onSuccess:o,onDecline:i})=>{const{trace:a}=oa(),[s,l]=Dn(e??""),{step:c,goBack:d,goToStep:u}=(()=>{const[e,t]=Dn(0),n=$n((()=>{const n=e-1;n>=0&&t(n)}),[e]),r=$n((e=>{e<=2&&t(e)}),[]);return{step:e,goBack:n,goToStep:r}})();zn((()=>{(async()=>{await a("sign-up-viewed")})()}),[a]);const p=$n((e=>t(e.formatted).then((async t=>{l(e.masked),t.isVerificationRequired?u(ca.OTP):(await a("sign-up-completed"),u(ca.SUCCESS))}))),[u,t,a]),f=$n((()=>a("sign-up-declined").then(i)),[i,a]),m=$n((e=>n(e).then((async()=>{await a("sign-up-completed"),u(ca.SUCCESS)}))),[u,n,a]);return lo(C,{children:[c===ca.PHONE_NUMBER&&lo(ga,{phoneNumber:s,onSubmit:p,onDecline:f}),c===ca.OTP&&lo(Ca,{phoneNumber:s,onVerify:m,onResendOtp:r,onGoBack:d}),c===ca.SUCCESS&&lo(_a,{onContinue:o})]})};var Sa=(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))(Sa||{});const Na=e=>{var t;const n=null==(t=null==e?void 0:e.response)?void 0:t.data;throw Sa[null==n?void 0:n.code]??"Sorry, we are currently experiencing some issues. Please try again later."},Ta=({onSuccess:e,onDecline:t})=>{const{identity:{phoneNumber:n}}=Gn(uo),{signUp:r,verifyOtp:o,resendOtp:i}={signUp:async e=>vn.backend.getClient().post("v2.0/auth/signUp",{mobileNumber:e}).then((e=>({isVerificationRequired:e.data.isVerificationRequired??!0}))),verifyOtp:async e=>{await vn.backend.getClient().post("auth/verify",{otp:e}).catch(Na)},resendOtp:async()=>{await vn.backend.getClient().post("auth/resend").catch(Na)}};return lo(C,{children:lo(Ea,{phoneNumber:n,onSignUp:r,onVerify:o,onResendOtp:i,onSuccess:e,onDecline:t})})},Oa=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/intro-COqxd5jd.png").href:new URL("assets/intro-COqxd5jd.png","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),Aa=e=>{const{trace:t}=oa(),{featureFlags:{marketplaceScheme:n}}=Gn(uo);return lo(Ki,{children:[lo(Ki.Top,{children:lo("img",{class:"max-w-[30rem] w-full",src:Oa})}),lo(Ki.Bottom,{children:lo("div",{children:[lo("h3",{class:"mt-8 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:"Finish setting up your workplace benefits"}),lo("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."}),lo(_o,{testId:"introduction_button_next_screen",class:"mt-8",onClickPromise:async()=>{await t("started",{experiment:"onboarding-marketplace-scheme",treatment:n.scheme}),e.onStepComplete()},children:"Continue"})]})})]})},Ra=()=>lo("div",{class:"flex justify-center",children:lo("span",{class:"animate-spin",children:lo(go,{size:"lg"})})}),La=(Pa=e=>{var t,n,r;const{featureFlags:{marketplaceScheme:o},hostInformation:i}=Gn(uo),{trace:a}=oa(),s=qn(null);return wo((()=>{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))})),lo("benefits-plan-assessment",{"base-url":xn.workplaceBackend.getBaseUrl(),"profile-id":xn.workplaceBackend.getProfileId(),"skip-more-details":!0,"access-token":e.accessToken,"image-url":e.marketPlaceOffer.content.imageUrl,"assessment-id":e.marketPlaceOffer.content.assessmentId,"assessment-instructions":"allowance"===o.scheme?e.marketPlaceOffer.content.assessmentInstructions:void 0,"track-client":i.client,"track-source":i.source,"track-channel":i.channel,"track-experiment":i.experiment,"track-treatment":i.treatment,"marketplace-offer-name":e.marketPlaceOffer.name,"assessment-title":e.marketPlaceOffer.content.title,description:e.marketPlaceOffer.content.description,"accept-button":e.marketPlaceOffer.content.acceptButton,"decline-button":e.marketPlaceOffer.content.declineButton,"special-banner-title":"allowance"===o.scheme?null==(t=e.marketPlaceOffer.content.specialBanner)?void 0:t.title:void 0,"special-banner-subtitle":"allowance"===o.scheme?null==(n=e.marketPlaceOffer.content.specialBanner)?void 0:n.subtitle:void 0,"special-banner-type":"allowance"===o.scheme?null==(r=e.marketPlaceOffer.content.specialBanner)?void 0:r.type:void 0,"vertical-alignment":"items-center",ref:s})},e=>{const t=qn(null),[n,r]=Dn(),[o,i]=Dn(!1);return zn((()=>{(async()=>{const e=await xn.workplaceBackend.getIdToken();r(e)})(),(()=>{if(t.current&&!t.current.querySelector("script[data-injected]")){const e=document.createElement("script"),n=mo(xn.workplaceBackend.getBaseUrl());e.type="module",e.src=`https://npm-cdn.flarehr.com/@flarehr/benefits-plan-assessment@${n}/dist/benefits-plan-assessment.js`,e.dataset.injected="true",e.onload=()=>{i(!0)},t.current.appendChild(e)}else i(!0)})()}),[]),lo("div",{ref:t,className:n,children:n&&o?lo(Pa,{...e,accessToken:n}):lo(Ra,{})})});var Pa;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:Ba,getOwnPropertyDescriptor:Da}=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),Za=os(String.prototype.toString),Ja=os(String.prototype.match),Xa=os(String.prototype.replace),Ka=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=Da(e,t);if(n){if(n.get)return os(n.get);if("function"==typeof n.value)return os(n.value)}e=Ba(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]/),Cs=za(/^aria-[\-\w]+$/),Es=za(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ss=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:Cs,IS_ALLOWED_URI:Es,IS_SCRIPT_OR_DATA:Ss,ATTR_WHITESPACE:Ns,DOCTYPE_NAME:Ts,CUSTOM_ELEMENT:Os});const Rs=1,Ls=3,Ps=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:C,createDocumentFragment:E,getElementsByTagName:S}=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:L,ARIA_ATTR:P,IS_SCRIPT_OR_DATA:I,ATTR_WHITESPACE:U,CUSTOM_ELEMENT:F}=As;let{IS_ALLOWED_URI:j}=As,B=null;const D=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,Z=!1,J=!0,X=!1,K=!1,Q=!1,ee=!1,te=!1,ne=!1,re=!0,oe=!1,ie=!0,ae=!1,se={},le=null;const ce=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],Za);let ve=null;const xe=["application/xhtml+xml","text/html"];let ke=null,Ce=null;const Ee=r.createElement("form"),Se=function(e){return e instanceof RegExp||e instanceof Function},Ne=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ce||Ce!==e){if(e&&"object"==typeof e||(e={}),e=ss(e),ve=-1===xe.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ke="application/xhtml+xml"===ve?Za:Ya,B=es(e,"ALLOWED_TAGS")?is({},e.ALLOWED_TAGS,ke):D,M=es(e,"ALLOWED_ATTR")?is({},e.ALLOWED_ATTR,ke):z,be=es(e,"ALLOWED_NAMESPACES")?is({},e.ALLOWED_NAMESPACES,Za):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,Z=e.SAFE_FOR_TEMPLATES||!1,J=!1!==e.SAFE_FOR_XML,X=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,Q=e.FORCE_BODY||!1,re=!1!==e.SANITIZE_DOM,oe=e.SANITIZE_NAMED_PROPS||!1,ie=!1!==e.KEEP_CONTENT,ae=e.IN_PLACE||!1,j=e.ALLOWED_URI_REGEXP||Es,ye=e.NAMESPACE||ge,H=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Se(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Se(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(H.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Z&&($=!1),te&&(ee=!0),se&&(B=is({},hs),M=[],!0===se.html&&(is(B,cs),is(M,gs)),!0===se.svg&&(is(B,ds),is(M,ys),is(M,bs)),!0===se.svgFilters&&(is(B,us),is(M,ys),is(M,bs)),!0===se.mathMl&&(is(B,fs),is(M,_s),is(M,bs))),e.ADD_TAGS&&(B===D&&(B=ss(B)),is(B,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&&(B["#text"]=!0),X&&is(B,["html","head","body"]),B.table&&(is(B,["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),Ce=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]),Le=is({},[...fs,...ms]),Pe=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{Pe(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=Ja(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?S.call(t,X?"html":"body")[0]:X?t.documentElement:i},Fe=function(e){return C.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},je=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof u)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Be=function(e){return"function"==typeof l&&e instanceof l},De=function(e,t,r){T[e]&&Va(T[e],(e=>{e.call(n,t,r,Ce)}))},Me=function(e){let t=null;if(De("beforeSanitizeElements",e,null),je(e))return Pe(e),!0;const r=ke(e.nodeName);if(De("uponSanitizeElement",e,{tagName:r,allowedTags:B}),e.hasChildNodes()&&!Be(e.firstElementChild)&&ts(/<[/\w]/g,e.innerHTML)&&ts(/<[/\w]/g,e.textContent))return Pe(e),!0;if(e.nodeType===Ps)return Pe(e),!0;if(J&&e.nodeType===Is&&ts(/<[/\w]/g,e.data))return Pe(e),!0;if(!B[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 Pe(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(Le[n]):e.namespaceURI===ge?!(t.namespaceURI===he&&!Oe[r])&&!(t.namespaceURI===me&&!Te[r])&&!Le[n]&&(Ae[n]||!Re[n]):!("application/xhtml+xml"!==ve||!be[e.namespaceURI]))}(e)?(Pe(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!ts(/<\/no(script|embed|frames)/i,e.innerHTML)?(Z&&e.nodeType===Ls&&(t=e.textContent,Va([O,A,R],(e=>{t=Xa(t,e," ")})),e.textContent!==t&&(Ga(n.removed,{element:e.cloneNode()}),e.textContent=t)),De("afterSanitizeElements",e,null),!1):(Pe(e),!0)},ze=function(e,t,n){if(re&&("id"===t||"name"===t)&&(n in r||n in Ee))return!1;if($&&!W[t]&&ts(L,t));else if(V&&ts(P,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,Xa(n,U,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Ka(n,"data:")||!de[e]){if(G&&!ts(I,Xa(n,U,"")));else if(n)return!1}else;return!0},He=function(e){return"annotation-xml"!==e&&Ja(e,F)},qe=function(e){De("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:M};let o=t.length;for(;o--;){const a=t[o],{name:s,namespaceURI:l,value:c}=a,d=ke(s);let u="value"===s?c:Qa(c);if(r.attrName=d,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,De("uponSanitizeAttribute",e,r),u=r.attrValue,J&&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}Z&&Va([O,A,R],(e=>{u=Xa(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)?Pe(e):$a(n.removed)}catch(i){}}}De("afterSanitizeAttributes",e,null)},We=function e(t){let n=null;const r=Fe(t);for(De("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)De("uponSanitizeShadowNode",n,null),Me(n)||(n.content instanceof a&&e(n.content),qe(n));De("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,s=null,c=null;if(_e=!e,_e&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Be(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(K||Ne(t),n.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){const t=ke(e.nodeName);if(!B[t]||q[t])throw 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&&!Z&&!X&&-1===e.indexOf("<"))return v&&ne?v.createHTML(e):e;if(r=Ue(e),!r)return ee?null:ne?x:""}r&&Q&&Pe(r.firstChild);const d=Fe(ae?e:r);for(;s=d.nextNode();)Me(s)||(s.content instanceof a&&We(s.content),qe(s));if(ae)return e;if(ee){if(te)for(c=E.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(M.shadowroot||M.shadowrootmode)&&(c=N.call(o,c,!0)),c}let u=X?r.outerHTML:r.innerHTML;return X&&B["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&ts(Ts,r.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+u),Z&&Va([O,A,R],(e=>{u=Xa(u,e," ")})),v&&ne?v.createHTML(u):u},n.setConfig=function(){Ne(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),K=!0},n.clearConfig=function(){Ce=null,K=!1},n.isValidAttribute=function(e,t,n){Ce||Ne({});const r=ke(e),o=ke(t);return ze(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(T[e]=T[e]||[],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=oo.Children.toArray(e),n=t.find((e=>e.type===Bs)),r=t.find((e=>e.type===Ds));return lo(Xi,{appear:!0,show:!0,enter:"transition duration-700 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:lo("div",{class:"md:grid md:grid-cols-2 max-w-[59.5rem] mx-auto",children:[lo(Xi,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:n&&lo("div",{class:"flex items-center h-full",children:n})}),lo(Xi,{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&&lo("div",{class:"flex items-center h-full",children:r})})]})})},Bs=({children:e})=>lo(C,{children:e}),Ds=({children:e})=>lo(C,{children:e});js.Left=Bs,js.Right=Ds;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=>lo(Xi,{appear:!0,show:!0,enter:"transition duration-300 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:lo("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)=>lo("div",{class:"flex space-x-1",children:[lo("span",{children:lo(ri,{class:"h-5 w-5 fill-primary-base"})}),lo("span",{class:"text-sm leading-5 text-gray-600",children:e})]},t)))})}),Hs=e=>{const[t,n]=Dn(!1);return lo("div",{class:e.class,children:t?lo(zs,{items:e.items}):lo("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",lo("span",{class:"ml-1",children:lo(Ms,{class:"h-4 w-4"})})]})})},qs=e=>{var t,n,r,o;const{featureFlags:{marketplaceScheme:i}}=Gn(uo),{trace:a}=oa(),[s,l]=Dn(!1);wo((()=>{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 lo(js,{children:[lo(js.Left,{children:lo("div",{children:lo(Xi,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:lo("div",{children:[lo("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:e.step.content.mobileImageUrl,loading:"lazy"}),lo("div",{class:"md:max-w-[27.5rem]",children:[lo("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:e.step.content.title}),lo("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&&lo("div",{class:"mt-6 hidden md:block",children:lo(zs,{items:e.step.content.details})})]}),e.step.content.details&&lo(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)&&lo(na,{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:lo("div",{children:[lo("p",{className:"font-semibold text-lg leading-tight text-gray-900",children:e.step.content.specialBanner.title}),lo("span",{className:"font-normal text-sm text-gray-900",children:e.step.content.specialBanner.subtitle})]})}),e.children&&e.children,lo("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:[lo(_o,{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)&&lo(_o,{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&&lo("p",{className:"mt-6 text-xs",children:[lo("span",{children:"*"}),lo("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&&lo(xa,{open:s,children:[lo(wa,{children:lo("div",{className:"relative",children:[lo("h3",{className:"text-base font-semibold text-gray-900",children:"Terms & Conditions"}),lo("span",{className:"absolute top-0 right-0 p-1 rounded-full bg-gray-200 cursor-pointer hover:bg-gray-100",onClick:()=>l(!1),children:lo(Ia,{className:"h-4 min-h-4 max-h-4 w-4 min-w-4 max-w-4"})})]})}),lo(va,{children:lo("div",{class:"flex flex-col gap-3 mt-6 text-gray-600 text-xs",children:e.step.content.terms.map(((e,t)=>lo("span",{dangerouslySetInnerHTML:{__html:Fs.sanitize(e,{ADD_ATTR:["target"]})}},t)))})})]})]})})})}),lo(js.Right,{children:lo("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}}=Gn(uo),{trace:i}=oa(),[a,s]=Dn(!1);wo((()=>{"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 lo(js,{children:[lo(js.Left,{children:lo("div",{children:lo(Xi,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:lo("div",{children:[lo("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:e.step.content.mobileImageUrl,loading:"lazy"}),lo("div",{class:"md:max-w-[27.5rem]",children:[lo("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:e.step.content.title}),lo("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&&lo("div",{class:"mt-6 hidden md:block",children:lo(zs,{items:e.step.content.details})})]}),e.step.content.details&&lo(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)&&lo(na,{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:lo("div",{children:[lo("p",{className:"font-semibold text-lg leading-tight text-gray-900",children:e.step.content.specialBanner.title}),lo("span",{className:"font-normal text-sm text-gray-900",children:e.step.content.specialBanner.subtitle})]})}),e.children&&e.children,lo("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:lo(_o,{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&&lo("p",{className:"mt-6 text-xs",children:[lo("span",{children:"*"}),lo("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&&lo(xa,{open:a,children:[lo(wa,{children:lo("div",{className:"relative",children:[lo("h3",{className:"text-base font-semibold text-gray-900",children:"Terms & Conditions"}),lo("span",{className:"absolute top-0 right-0 p-1 rounded-full bg-gray-200 cursor-pointer hover:bg-gray-100",onClick:()=>s(!1),children:lo(Ia,{className:"h-4 min-h-4 max-h-4 w-4 min-w-4 max-w-4"})})]})}),lo(va,{children:lo("div",{class:"flex flex-col gap-3 mt-6 text-gray-600 text-xs",children:e.step.content.terms.map(((e,t)=>lo("span",{dangerouslySetInnerHTML:{__html:Fs.sanitize(e,{ADD_ATTR:["target"]})}},t)))})})]})]})})})}),lo(js.Right,{children:lo("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},Vs=({current:e,total:t})=>lo("div",{className:"flex justify-between md:block text-xs tracking-wide",children:lo("span",{className:"relative px-3 py-0.5 text-primary-base font-semibold",children:[e," OF ",t,lo("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,isOfferCompleted:r,isOfferProgressed:o}}=Gn(uo),[i,a]=Dn(0),{trace:s}=oa(),l=$n(((t,r,o)=>{n(t,r,o),i===e.offers.length-1?e.onComplete():a(i+1)}),[n,i,e]),c=$n((t=>{a(t);const n=e.offers[t];s({type:"offer-selected",offerName:n.name},{experiment:n.metadata.featureName,treatment:n.metadata.treatmentName})}),[e.offers,s]),d=(e,t,n)=>{const i=o(e);return!!r(e)||(!i||t!==n)&&!!i};return lo("div",{className:"max-w-[59.5rem] mx-auto",children:[!t&&lo(Vs,{current:i+1,total:e.offers.length+1}),lo(ei,{selectedIndex:i,onChange:c,children:[t&&e.offers.map(((e,t)=>lo(Ko,{label:e.content.productName,icon:lo(Xo,{icon:d(e.name,t,i)?lo(ri,{}):e.content.iconUrl})},e.name))),e.offers.map((e=>lo(Qo,{children:["Eoi"===e.content.template&&lo(qs,{step:e,primaryButton:{text:e.content.acceptButton,onClick:()=>l(e.name,!0,!0)},secondaryButton:{text:e.content.declineButton,onClick:()=>l(e.name,!1,!1)}}),"Simple"===e.content.template&&lo(Ws,{step:e,primaryButton:{text:e.content.acceptButton,onClick:()=>l(e.name,!0,!0)}}),"Assessment"===e.content.template&&lo(La,{onStepComplete:(t,n)=>l(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"})),Zs=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"})),Js=""+("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),Xs=({onComplete:e})=>{const{trace:t}=oa(),{identity:n,getIdentityRegistrationStatus:r,featureFlags:{marketplaceScheme:o}}=Gn(uo);zn((()=>{(async()=>{await t({type:"summary-viewed",data:{summaryVariant:"app"}},{experiment:"onboarding-marketplace-scheme",treatment:o.scheme})})()}),[o,t]);const i={...Ks(n,r()),imageUrl:Gs,mobileImageUrl:Js},a={text:"Continue",class:"mt-6 md:mt-14",onClick:async()=>{await t("completed",{experiment:"onboarding-marketplace-scheme",treatment:o.scheme}),await e()}};return lo(js,{children:[lo(js.Left,{children:lo("div",{children:[lo("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:i.mobileImageUrl,loading:"lazy"}),lo("div",{class:"md:max-w-[27.5rem]",children:[lo("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:i.title}),lo("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:i.description})]}),lo("div",{class:"mt-6 flex space-x-6",children:[lo(Ys,{}),lo(Zs,{})]}),lo(_o,{testId:"step-benefits-finish",class:a.class,onClickPromise:a.onClick,children:a.text})]})}),lo(js.Right,{children:lo("img",{class:"max-w-[30rem] w-full hidden md:block",src:i.imageUrl,loading:"lazy"})})]})},Ks=(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}=oa(),{getWorkplaceLinkingStatus:n,featureFlags:{marketplaceScheme:r}}=Gn(uo);zn((()=>{(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 lo(js,{children:[lo(js.Left,{children:lo("div",{children:[lo("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:o.mobileImageUrl,loading:"lazy"}),lo("div",{class:"md:max-w-[27.5rem]",children:[lo("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:o.title}),lo("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:o.description})]}),lo("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:lo(_o,{testId:"step-benefits-finish",class:i.class,onClickPromise:i.onClick,children:i.text})})]})}),lo(js.Right,{children:lo("img",{class:"max-w-[30rem] w-full hidden md:block",src:o.imageUrl,loading:"lazy"})})]})},nl=()=>{const{offers:e,workplace:t,updateIdentity:n}=Gn(uo),{current:r,goNext:o}=function(){const{isAppEnabled:e,getIdentityRegistrationStatus:t,featureFlags:n}=Gn(uo),r=Vn((()=>"allowance"===n.marketplaceScheme.scheme?["Allowance_JoinBenefits","FlareAppIdentity","Allowance_ConfigureBenefits","MarketplaceOffers","Allowance_BenefitsSummary"]:["Introduction","FlareAppIdentity","MarketplaceOffers",e?"SummaryApp":"SummaryGeneric"]),[n,e]),[o,i]=Dn(r[0]),a=$n((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=$n((()=>{n(!0),o()}),[o,n]),a=$n((()=>{n(!1),o()}),[o,n]);switch(r){case"Introduction":return lo(Aa,{employerName:t.employerName,onStepComplete:o});case"Allowance_JoinBenefits":return lo(ia,{employerName:t.employerName,onContinue:o});case"FlareAppIdentity":return lo(Ta,{onSuccess:i,onDecline:a});case"Allowance_ConfigureBenefits":return lo(ta,{onContinue:o});case"MarketplaceOffers":return lo($s,{offers:e,onComplete:o});case"Allowance_BenefitsSummary":return lo(la,{onContinue:o});case"SummaryApp":return lo(Xs,{onComplete:o});case"SummaryGeneric":return lo(tl,{onComplete:o});default:return lo(C,{})}},rl=()=>Gn(uo).isLoading?lo("div",{class:"flex justify-center",children:lo("span",{class:"animate-spin",children:lo(go,{size:"lg"})})}):lo(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=X,o.prototype.attributeChangedCallback=Q,o.prototype.disconnectedCallback=ee,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(t){this._vdom?this.attributeChangedCallback(e,null,t):(this._props||(this._props={}),this._props[e]=t,this.connectedCallback());var n=typeof t;null!=t&&"string"!==n&&"boolean"!==n&&"number"!==n||this.setAttribute(e,t)}})})),customElements.define(t,o)}((e=>{const[t,n]=Dn(0);zn((()=>le((()=>{n(t+1)}))),[t]);const r={backendUrl:e["backend-url"],accessToken:e["access-token"],workflowsInstanceId:e["workflows-instance-id"],workflowsJourneyType:e["journey-type"]};return kn(r.backendUrl,r.accessToken,r.workflowsInstanceId,r.workflowsJourneyType),"prod"===mo(r.backendUrl)&&ho.init("p09arvzysr"),lo(C,{children:[lo("style",{children:yo.toString()}),lo("div",{class:"font-inter pt-6 pb-8 md:py-24 px-px",children:lo(fo,{workflowsJourneyType:r.workflowsJourneyType,children:lo(rl,{})})},t)]})}),ol,[],{shadow:!0})}));
|