@flarehr/apollo-benefits-onboarding 1.92.140 → 1.92.141
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.
@@ -5,4 +5,4 @@ var __defProp=Object.defineProperty,__typeError=e=>{throw TypeError(e)},__defNor
|
|
5
5
|
* MIT Licensed
|
6
6
|
*/
|
7
7
|
var ia=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,aa=/\\([\u000b\u0020-\u00ff])/g,sa=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,la=function(e){if(!e)throw new TypeError("argument string is required");var t="object"==typeof e?function(e){var t;"function"==typeof e.getHeader?t=e.getHeader("content-type"):"object"==typeof e.headers&&(t=e.headers&&e.headers["content-type"]);if("string"!=typeof t)throw new TypeError("content-type header is missing from object");return t}(e):e;if("string"!=typeof t)throw new TypeError("argument string is required to be a string");var n=t.indexOf(";"),r=-1!==n?t.slice(0,n).trim():t.trim();if(!sa.test(r))throw new TypeError("invalid media type");var o=new ca(r.toLowerCase());if(-1!==n){var i,a,s;for(ia.lastIndex=n;a=ia.exec(t);){if(a.index!==n)throw new TypeError("invalid parameter format");n+=a[0].length,i=a[1].toLowerCase(),34===(s=a[2]).charCodeAt(0)&&-1!==(s=s.slice(1,-1)).indexOf("\\")&&(s=s.replace(aa,"$1")),o.parameters[i]=s}if(n!==t.length)throw new TypeError("invalid parameter format")}return o};function ca(e){this.parameters=Object.create(null),this.type=e}var da=new Map,ua=function(e){return e.cloneNode(!0)},pa=function(){return"file:"===window.location.protocol},fa=function(e,t,n){var r=new XMLHttpRequest;r.onreadystatechange=function(){try{if(!/\.svg/i.test(e)&&2===r.readyState){var t=r.getResponseHeader("Content-Type");if(!t)throw new Error("Content type not found");var o=la(t).type;if("image/svg+xml"!==o&&"text/plain"!==o)throw new Error("Invalid content type: ".concat(o))}if(4===r.readyState){if(404===r.status||null===r.responseXML)throw new Error(pa()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+e);if(!(200===r.status||pa()&&0===r.status))throw new Error("There was a problem injecting the SVG: "+r.status+" "+r.statusText);n(null,r)}}catch(i){if(r.abort(),!(i instanceof Error))throw i;n(i,r)}},r.open("GET",e),r.withCredentials=t,r.overrideMimeType&&r.overrideMimeType("text/xml"),r.send()},ma={},ha=function(e,t){ma[e]=ma[e]||[],ma[e].push(t)},ga=function(e,t,n){if(da.has(e)){var r=da.get(e);if(void 0===r)return void ha(e,n);if(r instanceof SVGSVGElement)return void n(null,ua(r))}da.set(e,void 0),ha(e,n),fa(e,t,(function(t,n){var r;t?da.set(e,t):(null===(r=n.responseXML)||void 0===r?void 0:r.documentElement)instanceof SVGSVGElement&&da.set(e,n.responseXML.documentElement),function(e){for(var t=function(t,n){setTimeout((function(){if(Array.isArray(ma[e])){var n=da.get(e),r=ma[e][t];n instanceof SVGSVGElement&&r(null,ua(n)),n instanceof Error&&r(n),t===ma[e].length-1&&delete ma[e]}}),0)},n=0,r=ma[e].length;n<r;n++)t(n)}(e)}))},ya=function(e,t,n){fa(e,t,(function(e,t){var r;e?n(e):(null===(r=t.responseXML)||void 0===r?void 0:r.documentElement)instanceof SVGSVGElement&&n(null,t.responseXML.documentElement)}))},_a=0,ba=[],wa={},va="http://www.w3.org/1999/xlink",xa=function(e,t,n,r,o,i,a){var s=e.getAttribute("data-src")||e.getAttribute("src");if(s){if(-1!==ba.indexOf(e))return ba.splice(ba.indexOf(e),1),void(e=null);ba.push(e),e.setAttribute("src",""),(r?ga:ya)(s,o,(function(r,o){if(!o)return ba.splice(ba.indexOf(e),1),e=null,void a(r);var l=e.getAttribute("id");l&&o.setAttribute("id",l);var c=e.getAttribute("title");c&&o.setAttribute("title",c);var d=e.getAttribute("width");d&&o.setAttribute("width",d);var u=e.getAttribute("height");u&&o.setAttribute("height",u);var p=Array.from(new Set(oa(oa(oa([],(o.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(e.getAttribute("class")||"").split(" "),!0))).join(" ").trim();o.setAttribute("class",p);var f=e.getAttribute("style");f&&o.setAttribute("style",f),o.setAttribute("data-src",s);var m=[].filter.call(e.attributes,(function(e){return/^data-\w[\w-]*$/.test(e.name)}));if(Array.prototype.forEach.call(m,(function(e){e.name&&e.value&&o.setAttribute(e.name,e.value)})),n){var h,g,y,_,b,w={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],path:[],pattern:["fill","stroke"],radialGradient:["fill","stroke"]};Object.keys(w).forEach((function(e){h=e,y=w[e];for(var t=function(e,t){var n;_=g[e].id,b=_+"-"+ ++_a,Array.prototype.forEach.call(y,(function(e){for(var t=0,r=(n=o.querySelectorAll("["+e+'*="'+_+'"]')).length;t<r;t++){var i=n[t].getAttribute(e);i&&!i.match(new RegExp('url\\("?#'+_+'"?\\)'))||n[t].setAttribute(e,"url(#"+b+")")}}));for(var r=o.querySelectorAll("[*|href]"),i=[],a=0,s=r.length;a<s;a++){var l=r[a].getAttributeNS(va,"href");l&&l.toString()==="#"+g[e].id&&i.push(r[a])}for(var c=0,d=i.length;c<d;c++)i[c].setAttributeNS(va,"href","#"+b);g[e].id=b},n=0,r=(g=o.querySelectorAll(h+"[id]")).length;n<r;n++)t(n)}))}o.removeAttribute("xmlns:a");for(var v,x,k=o.querySelectorAll("script"),E=[],S=0,C=k.length;S<C;S++)(x=k[S].getAttribute("type"))&&"application/ecmascript"!==x&&"application/javascript"!==x&&"text/javascript"!==x||((v=k[S].innerText||k[S].textContent)&&E.push(v),o.removeChild(k[S]));if(E.length>0&&("always"===t||"once"===t&&!wa[s])){for(var N=0,T=E.length;N<T;N++)new Function(E[N])(window);wa[s]=!0}var O=o.querySelectorAll("style");if(Array.prototype.forEach.call(O,(function(e){e.textContent+=""})),o.setAttribute("xmlns","http://www.w3.org/2000/svg"),o.setAttribute("xmlns:xlink",va),i(o),!e.parentNode)return ba.splice(ba.indexOf(e),1),e=null,void a(new Error("Parent node is null"));e.parentNode.replaceChild(o,e),ba.splice(ba.indexOf(e),1),e=null,a(null,o)}))}else a(new Error("Invalid data-src or src attribute"))},ka={exports:{}};function Ea(){}function Sa(){}Sa.resetWarningCache=Ea;ka.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Sa,resetWarningCache:Ea};return n.PropTypes=n,n}();var Ca=ka.exports,Na=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],Ta="http://www.w3.org/2000/svg",Oa="http://www.w3.org/1999/xlink",Aa=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).initialState={hasError:!1,isLoading:!0},t.state=t.initialState,t._isMounted=!1,t.reactWrapper=void 0,t.nonReactWrapper=void 0,t.refCallback=function(e){t.reactWrapper=e},t}var n,r;r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,ra(n,r);var o=t.prototype;return o.renderSVG=function(){var e,t=this;if(this.reactWrapper instanceof(e=this.reactWrapper,((null==e?void 0:e.ownerDocument)||document).defaultView||window).Node){var n,r,o=this.props,i=o.desc,a=o.evalScripts,s=o.httpRequestWithCredentials,l=o.renumerateIRIElements,c=o.src,d=o.title,u=o.useRequestCache,p=this.props.onError,f=this.props.beforeInjection,m=this.props.afterInjection,h=this.props.wrapper;"svg"===h?((n=document.createElementNS(Ta,h)).setAttribute("xmlns",Ta),n.setAttribute("xmlns:xlink",Oa),r=document.createElementNS(Ta,h)):(n=document.createElement(h),r=document.createElement(h)),n.appendChild(r),r.dataset.src=c,this.nonReactWrapper=this.reactWrapper.appendChild(n);var g=function(e){t.removeSVG(),t._isMounted?t.setState((function(){return{hasError:!0,isLoading:!1}}),(function(){p(e)})):p(e)};!function(e,t){var n=void 0===t?{}:t,r=n.afterAll,o=void 0===r?function(){}:r,i=n.afterEach,a=void 0===i?function(){}:i,s=n.beforeEach,l=void 0===s?function(){}:s,c=n.cacheRequests,d=void 0===c||c,u=n.evalScripts,p=void 0===u?"never":u,f=n.httpRequestWithCredentials,m=void 0!==f&&f,h=n.renumerateIRIElements,g=void 0===h||h;if(e&&"length"in e)for(var y=0,_=0,b=e.length;_<b;_++)xa(e[_],p,g,d,m,l,(function(t,n){a(t,n),e&&"length"in e&&e.length===++y&&o(y)}));else e?xa(e,p,g,d,m,l,(function(t,n){a(t,n),o(1),e=null})):o(0)}(r,{afterEach:function(e,n){e?g(e):t._isMounted&&t.setState((function(){return{isLoading:!1}}),(function(){try{m(n)}catch(e){g(e)}}))},beforeEach:function(e){if(e.setAttribute("role","img"),i){var t=e.querySelector(":scope > desc");t&&e.removeChild(t);var n=document.createElement("desc");n.innerHTML=i,e.prepend(n)}if(d){var r=e.querySelector(":scope > title");r&&e.removeChild(r);var o=document.createElement("title");o.innerHTML=d,e.prepend(o)}try{f(e)}catch(a){g(a)}},cacheRequests:u,evalScripts:a,httpRequestWithCredentials:s,renumerateIRIElements:l})}},o.removeSVG=function(){var e;null!=(e=this.nonReactWrapper)&&e.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},o.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},o.componentDidUpdate=function(e){var t=this;(function(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1})(na({},e),this.props)&&this.setState((function(){return t.initialState}),(function(){t.removeSVG(),t.renderSVG()}))},o.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},o.render=function(){var e=this.props;e.afterInjection,e.beforeInjection,e.desc,e.evalScripts;var t=e.fallback;e.httpRequestWithCredentials;var n=e.loading;e.renumerateIRIElements,e.src,e.title,e.useRequestCache;var r=e.wrapper,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,Na);return v(r,na({},o,{ref:this.refCallback},"svg"===r?{xmlns:Ta,xmlnsXlink:Oa}:{}),this.state.isLoading&&n&&v(n,null),this.state.hasError&&t&&v(t,null))},t}(S);Aa.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"},Aa.propTypes={afterInjection:Ca.func,beforeInjection:Ca.func,desc:Ca.string,evalScripts:Ca.oneOf(["always","once","never"]),fallback:Ca.oneOfType([Ca.func,Ca.object,Ca.string]),httpRequestWithCredentials:Ca.bool,loading:Ca.oneOfType([Ca.func,Ca.object,Ca.string]),onError:Ca.func,renumerateIRIElements:Ca.bool,src:Ca.string.isRequired,title:Ca.string,useRequestCache:Ca.bool,wrapper:Ca.oneOf(["div","span","svg"])};const Ra=()=>co("div",{class:"flex justify-center",children:co("span",{class:"animate-spin",children:co(yo,{size:"lg"})})}),Pa=(La=e=>{var t,n,r;const{featureFlags:{marketplaceScheme:o}}=Ce(po),{trace:i}=Ei(),a=xe(null);return Ki((()=>{i({type:"offer-viewed",offerName:e.marketPlaceOffer.name,data:e.marketPlaceOffer.metadata},{experiment:e.marketPlaceOffer.metadata.featureName,treatment:e.marketPlaceOffer.metadata.treatmentName}),a.current&&(a.current.terms=e.marketPlaceOffer.content.terms,a.current.details=e.marketPlaceOffer.content.details,a.current["on-accept"]=async()=>{await i({type:"offer-accepted",offerName:e.marketPlaceOffer.name,data:{...e.marketPlaceOffer.metadata,template:e.marketPlaceOffer.content.template,assessmentId:e.marketPlaceOffer.content.assessmentId}},{experiment:e.marketPlaceOffer.metadata.featureName,treatment:e.marketPlaceOffer.metadata.treatmentName})},a.current["on-decline"]=async()=>{await i({type:"offer-declined",offerName:e.marketPlaceOffer.name,data:{...e.marketPlaceOffer.metadata,template:e.marketPlaceOffer.content.template,assessmentId:e.marketPlaceOffer.content.assessmentId}},{experiment:e.marketPlaceOffer.metadata.featureName,treatment:e.marketPlaceOffer.metadata.treatmentName}),e.onStepComplete(!1,!1)},a.current["on-complete"]=()=>e.onStepComplete(!0,!0),a.current["on-skip"]=e.marketPlaceOffer.content.skipButtonHidden?void 0:()=>e.onStepComplete(!0,!1))})),co("benefits-plan-assessment",{"base-url":ao.workplaceBackend.getBaseUrl(),"profile-id":ao.workplaceBackend.getProfileId(),"skip-more-details":!0,"access-token":e.accessToken,"image-url":e.marketPlaceOffer.content.imageUrl,"assessment-id":e.marketPlaceOffer.content.assessmentId,"assessment-instructions":"allowance"===o.scheme?e.marketPlaceOffer.content.assessmentInstructions:void 0,"track-client":"onboarding","track-source":"Onboarding","track-channel":"onboarding","track-experiment":"onboarding-marketplace-scheme","track-treatment":o.scheme,"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:a})},e=>{const t=xe(null),[n,r]=_e(),[o,i]=_e(!1);return we((()=>{(async()=>{const e=await ao.workplaceBackend.getIdToken();r(e)})(),(()=>{if(t.current&&!t.current.querySelector("script[data-injected]")){const e=document.createElement("script"),n=ho(ao.workplaceBackend.getBaseUrl());e.type="module",e.src=`https://npm-cdn.flarehr.com/@flarehr/benefits-plan-assessment@${n}/dist/benefits-plan-assessment.js`,e.dataset.injected="true",e.onload=()=>{i(!0)},t.current.appendChild(e)}else i(!0)})()}),[]),co("div",{ref:t,className:n,children:n&&o?co(La,{...e,accessToken:n}):co(Ra,{})})});var La;const Ia=e=>v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",...e},v("path",{fill:"currentColor",d:"M345 137c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-119 119L73 103c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l119 119L39 375c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l119-119L311 409c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-119-119L345 137z"}))
|
8
|
-
/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */,{entries:Ua,setPrototypeOf:Fa,isFrozen:ja,getPrototypeOf:Da,getOwnPropertyDescriptor:Ba}=Object;let{freeze:Ma,seal:za,create:Ha}=Object,{apply:qa,construct:Wa}="undefined"!=typeof Reflect&&Reflect;Ma||(Ma=function(e){return e}),za||(za=function(e){return e}),qa||(qa=function(e,t,n){return e.apply(t,n)}),Wa||(Wa=function(e,t){return new e(...t)});const Va=os(Array.prototype.forEach),$a=os(Array.prototype.pop),Ga=os(Array.prototype.push),Ya=os(String.prototype.toLowerCase),Ja=os(String.prototype.toString),Xa=os(String.prototype.match),Ka=os(String.prototype.replace),Za=os(String.prototype.indexOf),Qa=os(String.prototype.trim),es=os(Object.prototype.hasOwnProperty),ts=os(RegExp.prototype.test),ns=(rs=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Wa(rs,t)});var rs;function os(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return qa(e,t,r)}}function is(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ya;Fa&&Fa(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(ja(t)||(t[r]=e),o=e)}e[o]=!0}return e}function as(e){for(let t=0;t<e.length;t++){es(e,t)||(e[t]=null)}return e}function ss(e){const t=Ha(null);for(const[n,r]of Ua(e)){es(e,n)&&(Array.isArray(r)?t[n]=as(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=ss(r):t[n]=r)}return t}function ls(e,t){for(;null!==e;){const n=Ba(e,t);if(n){if(n.get)return os(n.get);if("function"==typeof n.value)return os(n.value)}e=Da(e)}return function(){return null}}const cs=Ma(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ds=Ma(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),us=Ma(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ps=Ma(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),fs=Ma(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),ms=Ma(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),hs=Ma(["#text"]),gs=Ma(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),ys=Ma(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),_s=Ma(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),bs=Ma(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ws=za(/\{\{[\w\W]*|[\w\W]*\}\}/gm),vs=za(/<%[\w\W]*|[\w\W]*%>/gm),xs=za(/\${[\w\W]*}/gm),ks=za(/^data-[\-\w.\u00B7-\uFFFF]/),Es=za(/^aria-[\-\w]+$/),Ss=za(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Cs=za(/^(?:\w+script|data):/i),Ns=za(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ts=za(/^html$/i),Os=za(/^[a-z][.\w]*(-[.\w]+)+$/i);var As=Object.freeze({__proto__:null,MUSTACHE_EXPR:ws,ERB_EXPR:vs,TMPLIT_EXPR:xs,DATA_ATTR:ks,ARIA_ATTR:Es,IS_ALLOWED_URI:Ss,IS_SCRIPT_OR_DATA:Cs,ATTR_WHITESPACE:Ns,DOCTYPE_NAME:Ts,CUSTOM_ELEMENT:Os});const Rs=1,Ps=3,Ls=7,Is=8,Us=9;var Fs=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window;const n=t=>e(t);if(n.version="3.1.6",n.removed=[],!t||!t.document||t.document.nodeType!==Us)return n.isSupported=!1,n;let{document:r}=t;const o=r,i=o.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:l,Element:c,NodeFilter:d,NamedNodeMap:u=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:f,trustedTypes:m}=t,h=c.prototype,g=ls(h,"cloneNode"),y=ls(h,"remove"),_=ls(h,"nextSibling"),b=ls(h,"childNodes"),w=ls(h,"parentNode");if("function"==typeof s){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let v,x="";const{implementation:k,createNodeIterator:E,createDocumentFragment:S,getElementsByTagName:C}=r,{importNode:N}=o;let T={};n.isSupported="function"==typeof Ua&&"function"==typeof w&&k&&void 0!==k.createHTMLDocument;const{MUSTACHE_EXPR:O,ERB_EXPR:A,TMPLIT_EXPR:R,DATA_ATTR:P,ARIA_ATTR:L,IS_SCRIPT_OR_DATA:I,ATTR_WHITESPACE:U,CUSTOM_ELEMENT:F}=As;let{IS_ALLOWED_URI:j}=As,D=null;const B=is({},[...cs,...ds,...us,...fs,...hs]);let M=null;const z=is({},[...gs,...ys,..._s,...bs]);let H=Object.seal(Ha(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),q=null,W=null,V=!0,$=!0,G=!1,Y=!0,J=!1,X=!0,K=!1,Z=!1,Q=!1,ee=!1,te=!1,ne=!1,re=!0,oe=!1,ie=!0,ae=!1,se={},le=null;const ce=is({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let de=null;const ue=is({},["audio","video","img","source","image","track"]);let pe=null;const fe=is({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),me="http://www.w3.org/1998/Math/MathML",he="http://www.w3.org/2000/svg",ge="http://www.w3.org/1999/xhtml";let ye=ge,_e=!1,be=null;const we=is({},[me,he,ge],Ja);let ve=null;const xe=["application/xhtml+xml","text/html"];let ke=null,Ee=null;const Se=r.createElement("form"),Ce=function(e){return e instanceof RegExp||e instanceof Function},Ne=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ee||Ee!==e){if(e&&"object"==typeof e||(e={}),e=ss(e),ve=-1===xe.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ke="application/xhtml+xml"===ve?Ja:Ya,D=es(e,"ALLOWED_TAGS")?is({},e.ALLOWED_TAGS,ke):B,M=es(e,"ALLOWED_ATTR")?is({},e.ALLOWED_ATTR,ke):z,be=es(e,"ALLOWED_NAMESPACES")?is({},e.ALLOWED_NAMESPACES,Ja):we,pe=es(e,"ADD_URI_SAFE_ATTR")?is(ss(fe),e.ADD_URI_SAFE_ATTR,ke):fe,de=es(e,"ADD_DATA_URI_TAGS")?is(ss(ue),e.ADD_DATA_URI_TAGS,ke):ue,le=es(e,"FORBID_CONTENTS")?is({},e.FORBID_CONTENTS,ke):ce,q=es(e,"FORBID_TAGS")?is({},e.FORBID_TAGS,ke):{},W=es(e,"FORBID_ATTR")?is({},e.FORBID_ATTR,ke):{},se=!!es(e,"USE_PROFILES")&&e.USE_PROFILES,V=!1!==e.ALLOW_ARIA_ATTR,$=!1!==e.ALLOW_DATA_ATTR,G=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,J=e.SAFE_FOR_TEMPLATES||!1,X=!1!==e.SAFE_FOR_XML,K=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,Q=e.FORCE_BODY||!1,re=!1!==e.SANITIZE_DOM,oe=e.SANITIZE_NAMED_PROPS||!1,ie=!1!==e.KEEP_CONTENT,ae=e.IN_PLACE||!1,j=e.ALLOWED_URI_REGEXP||Ss,ye=e.NAMESPACE||ge,H=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Ce(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Ce(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(H.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),J&&($=!1),te&&(ee=!0),se&&(D=is({},hs),M=[],!0===se.html&&(is(D,cs),is(M,gs)),!0===se.svg&&(is(D,ds),is(M,ys),is(M,bs)),!0===se.svgFilters&&(is(D,us),is(M,ys),is(M,bs)),!0===se.mathMl&&(is(D,fs),is(M,_s),is(M,bs))),e.ADD_TAGS&&(D===B&&(D=ss(D)),is(D,e.ADD_TAGS,ke)),e.ADD_ATTR&&(M===z&&(M=ss(M)),is(M,e.ADD_ATTR,ke)),e.ADD_URI_SAFE_ATTR&&is(pe,e.ADD_URI_SAFE_ATTR,ke),e.FORBID_CONTENTS&&(le===ce&&(le=ss(le)),is(le,e.FORBID_CONTENTS,ke)),ie&&(D["#text"]=!0),K&&is(D,["html","head","body"]),D.table&&(is(D,["tbody"]),delete q.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw ns('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw ns('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=e.TRUSTED_TYPES_POLICY,x=v.createHTML("")}else void 0===v&&(v=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(i){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(m,i)),null!==v&&"string"==typeof x&&(x=v.createHTML(""));Ma&&Ma(e),Ee=e}},Te=is({},["mi","mo","mn","ms","mtext"]),Oe=is({},["foreignobject","annotation-xml"]),Ae=is({},["title","style","font","a","script"]),Re=is({},[...ds,...us,...ps]),Pe=is({},[...fs,...ms]),Le=function(e){Ga(n.removed,{element:e});try{w(e).removeChild(e)}catch(t){y(e)}},Ie=function(e,t){try{Ga(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(r){Ga(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!M[e])if(ee||te)try{Le(t)}catch(r){}else try{t.setAttribute(e,"")}catch(r){}},Ue=function(e){let t=null,n=null;if(Q)e="<remove></remove>"+e;else{const t=Xa(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ve&&ye===ge&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=v?v.createHTML(e):e;if(ye===ge)try{t=(new f).parseFromString(o,ve)}catch(a){}if(!t||!t.documentElement){t=k.createDocument(ye,"template",null);try{t.documentElement.innerHTML=_e?x:o}catch(a){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),ye===ge?C.call(t,K?"html":"body")[0]:K?t.documentElement:i},Fe=function(e){return E.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},je=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof u)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},De=function(e){return"function"==typeof l&&e instanceof l},Be=function(e,t,r){T[e]&&Va(T[e],(e=>{e.call(n,t,r,Ee)}))},Me=function(e){let t=null;if(Be("beforeSanitizeElements",e,null),je(e))return Le(e),!0;const r=ke(e.nodeName);if(Be("uponSanitizeElement",e,{tagName:r,allowedTags:D}),e.hasChildNodes()&&!De(e.firstElementChild)&&ts(/<[/\w]/g,e.innerHTML)&&ts(/<[/\w]/g,e.textContent))return Le(e),!0;if(e.nodeType===Ls)return Le(e),!0;if(X&&e.nodeType===Is&&ts(/<[/\w]/g,e.data))return Le(e),!0;if(!D[r]||q[r]){if(!q[r]&&He(r)){if(H.tagNameCheck instanceof RegExp&&ts(H.tagNameCheck,r))return!1;if(H.tagNameCheck instanceof Function&&H.tagNameCheck(r))return!1}if(ie&&!le[r]){const t=w(e)||e.parentNode,n=b(e)||e.childNodes;if(n&&t){for(let r=n.length-1;r>=0;--r){const o=g(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,_(e))}}}return Le(e),!0}return e instanceof c&&!function(e){let t=w(e);t&&t.tagName||(t={namespaceURI:ye,tagName:"template"});const n=Ya(e.tagName),r=Ya(t.tagName);return!!be[e.namespaceURI]&&(e.namespaceURI===he?t.namespaceURI===ge?"svg"===n:t.namespaceURI===me?"svg"===n&&("annotation-xml"===r||Te[r]):Boolean(Re[n]):e.namespaceURI===me?t.namespaceURI===ge?"math"===n:t.namespaceURI===he?"math"===n&&Oe[r]:Boolean(Pe[n]):e.namespaceURI===ge?!(t.namespaceURI===he&&!Oe[r])&&!(t.namespaceURI===me&&!Te[r])&&!Pe[n]&&(Ae[n]||!Re[n]):!("application/xhtml+xml"!==ve||!be[e.namespaceURI]))}(e)?(Le(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!ts(/<\/no(script|embed|frames)/i,e.innerHTML)?(J&&e.nodeType===Ps&&(t=e.textContent,Va([O,A,R],(e=>{t=Ka(t,e," ")})),e.textContent!==t&&(Ga(n.removed,{element:e.cloneNode()}),e.textContent=t)),Be("afterSanitizeElements",e,null),!1):(Le(e),!0)},ze=function(e,t,n){if(re&&("id"===t||"name"===t)&&(n in r||n in Se))return!1;if($&&!W[t]&&ts(P,t));else if(V&&ts(L,t));else if(!M[t]||W[t]){if(!(He(e)&&(H.tagNameCheck instanceof RegExp&&ts(H.tagNameCheck,e)||H.tagNameCheck instanceof Function&&H.tagNameCheck(e))&&(H.attributeNameCheck instanceof RegExp&&ts(H.attributeNameCheck,t)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(t))||"is"===t&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&ts(H.tagNameCheck,n)||H.tagNameCheck instanceof Function&&H.tagNameCheck(n))))return!1}else if(pe[t]);else if(ts(j,Ka(n,U,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Za(n,"data:")||!de[e]){if(G&&!ts(I,Ka(n,U,"")));else if(n)return!1}else;return!0},He=function(e){return"annotation-xml"!==e&&Xa(e,F)},qe=function(e){Be("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:M};let o=t.length;for(;o--;){const a=t[o],{name:s,namespaceURI:l,value:c}=a,d=ke(s);let u="value"===s?c:Qa(c);if(r.attrName=d,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,Be("uponSanitizeAttribute",e,r),u=r.attrValue,X&&ts(/((--!?|])>)|<\/(style|title)/i,u)){Ie(s,e);continue}if(r.forceKeepAttr)continue;if(Ie(s,e),!r.keepAttr)continue;if(!Y&&ts(/\/>/i,u)){Ie(s,e);continue}J&&Va([O,A,R],(e=>{u=Ka(u,e," ")}));const p=ke(e.nodeName);if(ze(p,d,u)){if(!oe||"id"!==d&&"name"!==d||(Ie(s,e),u="user-content-"+u),v&&"object"==typeof m&&"function"==typeof m.getAttributeType)if(l);else switch(m.getAttributeType(p,d)){case"TrustedHTML":u=v.createHTML(u);break;case"TrustedScriptURL":u=v.createScriptURL(u)}try{l?e.setAttributeNS(l,s,u):e.setAttribute(s,u),je(e)?Le(e):$a(n.removed)}catch(i){}}}Be("afterSanitizeAttributes",e,null)},We=function e(t){let n=null;const r=Fe(t);for(Be("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)Be("uponSanitizeShadowNode",n,null),Me(n)||(n.content instanceof a&&e(n.content),qe(n));Be("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,s=null,c=null;if(_e=!e,_e&&(e="\x3c!--\x3e"),"string"!=typeof e&&!De(e)){if("function"!=typeof e.toString)throw ns("toString is not a function");if("string"!=typeof(e=e.toString()))throw ns("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Z||Ne(t),n.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){const t=ke(e.nodeName);if(!D[t]||q[t])throw ns("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)r=Ue("\x3c!----\x3e"),i=r.ownerDocument.importNode(e,!0),i.nodeType===Rs&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!ee&&!J&&!K&&-1===e.indexOf("<"))return v&&ne?v.createHTML(e):e;if(r=Ue(e),!r)return ee?null:ne?x:""}r&&Q&&Le(r.firstChild);const d=Fe(ae?e:r);for(;s=d.nextNode();)Me(s)||(s.content instanceof a&&We(s.content),qe(s));if(ae)return e;if(ee){if(te)for(c=S.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(M.shadowroot||M.shadowrootmode)&&(c=N.call(o,c,!0)),c}let u=K?r.outerHTML:r.innerHTML;return K&&D["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&ts(Ts,r.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+u),J&&Va([O,A,R],(e=>{u=Ka(u,e," ")})),v&&ne?v.createHTML(u):u},n.setConfig=function(){Ne(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Z=!0},n.clearConfig=function(){Ee=null,Z=!1},n.isValidAttribute=function(e,t,n){Ee||Ne({});const r=ke(e),o=ke(t);return ze(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(T[e]=T[e]||[],Ga(T[e],t))},n.removeHook=function(e){if(T[e])return $a(T[e])},n.removeHooks=function(e){T[e]&&(T[e]=[])},n.removeAllHooks=function(){T={}},n}();const js=({children:e})=>{const t=jt.Children.toArray(e),n=t.find((e=>e.type===Ds)),r=t.find((e=>e.type===Bs));return co(yi,{appear:!0,show:!0,enter:"transition duration-700 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:co("div",{class:"md:grid md:grid-cols-2 max-w-[59.5rem] mx-auto",children:[co(yi,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:n&&co("div",{class:"flex items-center h-full",children:n})}),co(yi,{appear:!0,show:!0,enter:"transition delay-300 duration-[600ms] ease-out",enterFrom:"opacity-0 -translate-y-6",enterTo:"opacity-100 translate-y-0",children:r&&co("div",{class:"flex items-center h-full",children:r})})]})})},Ds=({children:e})=>co(E,{children:e}),Bs=({children:e})=>co(E,{children:e});js.Left=Ds,js.Right=Bs;const Ms=e=>v("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,...e},v("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})),zs=e=>co(yi,{appear:!0,show:!0,enter:"transition duration-300 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:co("div",{class:"w-full border border-gray-200 rounded-lg shadow-sm p-4 pl-3 md:p-6 space-y-2",children:e.items.map(((e,t)=>co("div",{class:"flex space-x-1",children:[co("span",{children:co(ko,{class:"h-5 w-5 fill-primary-base"})}),co("span",{class:"text-sm leading-5 text-gray-600",children:e})]},t)))})}),Hs=e=>{const[t,n]=_e(!1);return co("div",{class:e.class,children:t?co(zs,{items:e.items}):co("button",{type:"button",class:"w-full inline-flex justify-center items-center px-4 py-3 border border-gray-200 shadow-sm text-sm font-medium rounded-md text-primary-base bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus",onClick:()=>n(!0),children:["Learn more",co("span",{class:"ml-1",children:co(Ms,{class:"h-4 w-4"})})]})})},qs=e=>{var t,n,r,o;const{featureFlags:{marketplaceScheme:i}}=Ce(po),{trace:a}=Ei(),[s,l]=_e(!1);Ki((()=>{a({type:"offer-viewed",offerName:e.step.name,data:e.step.metadata},{experiment:e.step.metadata.featureName,treatment:e.step.metadata.treatmentName})}));const c=async t=>{t?await a({type:"offer-accepted",offerName:e.step.name,data:{...e.step.metadata,template:"Eoi"}},{experiment:e.step.metadata.featureName,treatment:e.step.metadata.treatmentName}):await a({type:"offer-declined",offerName:e.step.name,data:{...e.step.metadata,template:"Eoi"}},{experiment:e.step.metadata.featureName,treatment:e.step.metadata.treatmentName});return(t?e.primaryButton:e.secondaryButton).onClick()};return co(js,{children:[co(js.Left,{children:co("div",{children:co(yi,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:co("div",{children:[co("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:e.step.content.mobileImageUrl,loading:"lazy"}),co("div",{class:"md:max-w-[27.5rem]",children:[co("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:e.step.content.title}),co("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:e.step.content.description}),e.step.content.details&&co("div",{class:"mt-6 hidden md:block",children:co(zs,{items:e.step.content.details})})]}),e.step.content.details&&co(Hs,{class:"mt-6 md:hidden",items:e.step.content.details}),"allowance"===i.scheme&&"offer"==(null==(t=e.step.content.specialBanner)?void 0:t.type)&&co(xi,{style:{background:"linear-gradient(90deg, rgba(255, 135, 111, 0.10) 0%, rgba(166, 80, 255, 0.10) 100%)"},className:"md:max-w-[27.5rem] mt-6",children:co("div",{children:[co("p",{className:"font-semibold text-lg leading-tight text-gray-900",children:e.step.content.specialBanner.title}),co("span",{className:"font-normal text-sm text-gray-900",children:e.step.content.specialBanner.subtitle})]})}),e.children&&e.children,co("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:[co(bo,{testId:`offer_${e.step.name}_button_accept`,class:e.primaryButton.class??"",onClickPromise:()=>c(!0),children:e.primaryButton.text??"Next"}),(null==(n=e.secondaryButton)?void 0:n.text)&&co(bo,{testId:`offer_${e.step.name}_button_decline`,class:e.secondaryButton.class??"bg-white hover:!bg-gray-100 focus:!ring-gray-200 !border-0 !shadow-none !text-gray-700 !border-gray-300",onClickPromise:()=>c(!1),children:e.secondaryButton.text})]}),(null==(r=e.step.content.terms)?void 0:r.length)>0&&co("p",{className:"mt-6 text-xs",children:[co("span",{children:"*"}),co("span",{className:"underline text-primary-base cursor-pointer",onClick:()=>l(!0),children:"T&C's apply"})]}),(null==(o=e.step.content.terms)?void 0:o.length)>0&&co(Hi,{open:s,children:[co(Mi,{children:co("div",{className:"relative",children:[co("h3",{className:"text-base font-semibold text-gray-900",children:"Terms & Conditions"}),co("span",{className:"absolute top-0 right-0 p-1 rounded-full bg-gray-200 cursor-pointer hover:bg-gray-100",onClick:()=>l(!1),children:co(Ia,{className:"h-4 min-h-4 max-h-4 w-4 min-w-4 max-w-4"})})]})}),co(zi,{children:co("div",{class:"flex flex-col gap-3 mt-6 text-gray-600 text-xs",children:e.step.content.terms.map(((e,t)=>co("span",{dangerouslySetInnerHTML:{__html:Fs.sanitize(e,{ADD_ATTR:["target"]})}},t)))})})]})]})})})}),co(js.Right,{children:co("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},Ws=e=>{var t,n,r;const{featureFlags:{marketplaceScheme:o}}=Ce(po),{trace:i}=Ei(),[a,s]=_e(!1);Ki((()=>{"name"in e.step&&i({type:"offer-viewed",offerName:e.step.name,data:e.step.metadata},{experiment:e.step.metadata.featureName,treatment:e.step.metadata.treatmentName})}));return co(js,{children:[co(js.Left,{children:co("div",{children:co(yi,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:co("div",{children:[co("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:e.step.content.mobileImageUrl,loading:"lazy"}),co("div",{class:"md:max-w-[27.5rem]",children:[co("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:e.step.content.title}),co("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:e.step.content.description}),e.step.content.details&&co("div",{class:"mt-6 hidden md:block",children:co(zs,{items:e.step.content.details})})]}),e.step.content.details&&co(Hs,{class:"mt-6 md:hidden",items:e.step.content.details}),"allowance"===o.scheme&&"offer"==(null==(t=e.step.content.specialBanner)?void 0:t.type)&&co(xi,{style:{background:"linear-gradient(90deg, rgba(255, 135, 111, 0.10) 0%, rgba(166, 80, 255, 0.10) 100%)"},className:"md:max-w-[27.5rem] mt-6",children:co("div",{children:[co("p",{className:"font-semibold text-lg leading-tight text-gray-900",children:e.step.content.specialBanner.title}),co("span",{className:"font-normal text-sm text-gray-900",children:e.step.content.specialBanner.subtitle})]})}),e.children&&e.children,co("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:co(bo,{testId:`offer_${e.step.name}_button_accept`,class:e.primaryButton.class??"",onClickPromise:async()=>{"name"in e.step&&await i({type:"offer-progressed",offerName:e.step.name,data:{...e.step.metadata,template:"Simple"}},{experiment:e.step.metadata.featureName,treatment:e.step.metadata.treatmentName}),e.primaryButton.onClick()},children:e.primaryButton.text??"Next"})}),(null==(n=e.step.content.terms)?void 0:n.length)>0&&co("p",{className:"mt-6 text-xs",children:[co("span",{children:"*"}),co("span",{className:"underline text-primary-base cursor-pointer",onClick:()=>s(!0),children:"T&C's apply"})]}),(null==(r=e.step.content.terms)?void 0:r.length)>0&&co(Hi,{open:a,children:[co(Mi,{children:co("div",{className:"relative",children:[co("h3",{className:"text-base font-semibold text-gray-900",children:"Terms & Conditions"}),co("span",{className:"absolute top-0 right-0 p-1 rounded-full bg-gray-200 cursor-pointer hover:bg-gray-100",onClick:()=>s(!1),children:co(Ia,{className:"h-4 min-h-4 max-h-4 w-4 min-w-4 max-w-4"})})]})}),co(zi,{children:co("div",{class:"flex flex-col gap-3 mt-6 text-gray-600 text-xs",children:e.step.content.terms.map(((e,t)=>co("span",{dangerouslySetInnerHTML:{__html:Fs.sanitize(e,{ADD_ATTR:["target"]})}},t)))})})]})]})})})}),co(js.Right,{children:co("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},Vs=({current:e,total:t})=>co("div",{className:"flex justify-between md:block text-xs tracking-wide",children:co("span",{className:"relative px-3 py-0.5 text-primary-base font-semibold",children:[e," OF ",t,co("span",{className:"absolute left-0 rounded-xl bg-primary-base opacity-10 w-full h-[90%]"})]})}),$s=e=>{const{featureFlags:{marketplaceSubNavigation:t},offersProgress:{update:n}}=Ce(po),[r,o]=_e(0),{trace:i}=Ei(),a=Se(((t,i,a)=>{n(t,i,a),r===e.offers.length-1?e.onComplete():o(r+1)}),[n,r,e]),s=Se((t=>{o(t);const n=e.offers[t];i({type:"offer-selected",offerName:n.name},{experiment:n.metadata.featureName,treatment:n.metadata.treatmentName})}),[e.offers,i]);return co("div",{className:"max-w-[59.5rem] mx-auto",children:[!t&&co(Vs,{current:r+1,total:e.offers.length+1}),co(ta,{selectedIndex:r,onChange:s,children:[t&&e.offers.map((e=>co(Qi,{label:e.content.productName,icon:co(Aa,{src:e.content.iconUrl,wrapper:"svg",className:"w-6 h-6 max-w-6 max-h-6 min-w-6 min-h-6",beforeInjection:e=>{var t;e.removeAttribute("width"),e.removeAttribute("height"),null==(t=e.querySelector("path"))||t.removeAttribute("fill"),e.setAttribute("fill","currentColor")}})},e.name))),e.offers.map((e=>co(ea,{children:["Eoi"===e.content.template&&co(qs,{step:e,primaryButton:{text:e.content.acceptButton,onClick:()=>a(e.name,!0,!0)},secondaryButton:{text:e.content.declineButton,onClick:()=>a(e.name,!1,!1)}}),"Simple"===e.content.template&&co(Ws,{step:e,primaryButton:{text:e.content.acceptButton,onClick:()=>a(e.name,!0,!0)}}),"Assessment"===e.content.template&&co(Pa,{onStepComplete:(t,n)=>a(e.name,t,n),marketPlaceOffer:e},e.name)]},e.name)))]})]})},Gs=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/get-app-CQalMIl7.jpg").href:new URL("assets/get-app-CQalMIl7.jpg","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),Ys=e=>v("svg",{width:36,height:42,viewBox:"0 0 36 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v("path",{d:"M29.7406 21.8737C29.7406 18.5174 31.3138 16.0681 34.3678 14.1632C32.6094 11.714 30.0182 10.444 26.5941 10.1719C23.2625 9.89974 19.6532 11.9861 18.3576 11.9861C16.9694 11.9861 13.8229 10.2626 11.3242 10.2626C6.14176 10.3533 0.681641 14.2539 0.681641 22.3273C0.681641 24.6858 1.05182 27.135 1.97726 29.6749C3.18034 33.0312 7.43738 41.1953 11.8795 41.0139C14.1931 41.0139 15.8589 39.3811 18.9129 39.3811C21.8743 39.3811 23.355 41.0139 25.9463 41.0139C30.4809 41.0139 34.3678 33.5755 35.4783 30.2192C29.4629 27.4071 29.7406 22.0551 29.7406 21.8737ZM24.5581 6.99696C27.0568 4.09418 26.7792 1.37283 26.7792 0.375C24.5581 0.556424 21.9668 1.9171 20.4861 3.54991C18.8203 5.36415 17.8949 7.63194 18.08 10.0812C20.4861 10.2626 22.7072 9.08333 24.5581 6.99696Z",fill:"#9CA3AF"})),Js=e=>v("svg",{width:37,height:40,viewBox:"0 0 37 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v("path",{d:"M24.1063 18.8401L6.78538 1.88173L28.8088 14.2567L24.1063 18.8401ZM2.318 0.888672C1.29913 1.42339 0.59375 2.41645 0.59375 3.63867V37.3262C0.59375 38.5484 1.29913 39.5415 2.318 39.9998L22.382 20.4442L2.318 0.888672ZM35.6274 18.1526L31.0033 15.5553L25.8305 20.4442L31.0033 25.4095L35.7058 22.8123C37.1165 21.7428 37.1165 19.222 35.6274 18.1526ZM6.78538 39.0067L28.8088 26.7081L24.1063 22.1248L6.78538 39.0067Z",fill:"#9CA3AF"})),Xs=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/get-app-mobile-DORYS6YR.jpg").href:new URL("assets/get-app-mobile-DORYS6YR.jpg","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),Ks=({onComplete:e})=>{const{trace:t}=Ei(),{identity:n,getIdentityRegistrationStatus:r,featureFlags:{marketplaceScheme:o}}=Ce(po);we((()=>{(async()=>{await t({type:"summary-viewed",data:{summaryVariant:"app"}},{experiment:"onboarding-marketplace-scheme",treatment:o.scheme})})()}),[o,t]);const i={...Zs(n,r()),imageUrl:Gs,mobileImageUrl:Xs},a={text:"Continue",class:"mt-6 md:mt-14",onClick:async()=>{await t("completed",{experiment:"onboarding-marketplace-scheme",treatment:o.scheme}),await e()}};return co(js,{children:[co(js.Left,{children:co("div",{children:[co("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:i.mobileImageUrl,loading:"lazy"}),co("div",{class:"md:max-w-[27.5rem]",children:[co("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:i.title}),co("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:i.description})]}),co("div",{class:"mt-6 flex space-x-6",children:[co(Ys,{}),co(Js,{})]}),co(bo,{testId:"step-benefits-finish",class:a.class,onClickPromise:a.onClick,children:a.text})]})}),co(js.Right,{children:co("img",{class:"max-w-[30rem] w-full hidden md:block",src:i.imageUrl,loading:"lazy"})})]})},Zs=(e,t)=>{switch(t){case"RegistrationAbandoned":return{title:"Join your workplace",description:`We’ve sent an email to ${e.email} with instructions on how to join your workplace. This will enable you to access all your workplace benefits through the Flare app in the future.`};case"NewlyRegistered":return{title:"Join your workplace’s benefits program",description:`We’ve sent an email to ${e.email} with instructions on how to download the Flare app - where your company’s benefits live.`};default:return{title:"Check your email",description:`We’ve sent an email to ${e.email} with instructions on how to download and activate the Flare App and Card.`}}},Qs=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/all-set-vt2mQYDm.jpg").href:new URL("assets/all-set-vt2mQYDm.jpg","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),el=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/all-set-mobile-Fhtje9HW.jpg").href:new URL("assets/all-set-mobile-Fhtje9HW.jpg","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),tl=({onComplete:e})=>{const{trace:t}=Ei(),{getWorkplaceLinkingStatus:n,featureFlags:{marketplaceScheme:r}}=Ce(po);we((()=>{(async()=>{await t({type:"summary-viewed",data:{summaryVariant:"generic"}},{experiment:"onboarding-marketplace-scheme",treatment:r.scheme})})()}),[r,t]);const o={imageUrl:Qs,mobileImageUrl:el,title:"You're all set!",description:"PreviouslyLinked"===n()?"You’ve already connected this employer with your Flare Benefits account. Simply continue and review the details you have provided to complete your onboarding.":"Simply continue and review the details you have provided to complete your onboarding."},i={text:"Continue",class:"mt-6 md:mt-6",onClick:async()=>{await t("completed",{experiment:"onboarding-marketplace-scheme",treatment:r.scheme}),await e()}};return co(js,{children:[co(js.Left,{children:co("div",{children:[co("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:o.mobileImageUrl,loading:"lazy"}),co("div",{class:"md:max-w-[27.5rem]",children:[co("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:o.title}),co("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:o.description})]}),co("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:co(bo,{testId:"step-benefits-finish",class:i.class,onClickPromise:i.onClick,children:i.text})})]})}),co(js.Right,{children:co("img",{class:"max-w-[30rem] w-full hidden md:block",src:o.imageUrl,loading:"lazy"})})]})},nl=()=>{const{offers:e,workplace:t,updateIdentity:n}=Ce(po),{current:r,goNext:o}=function(){const{isAppEnabled:e,getIdentityRegistrationStatus:t,featureFlags:n}=Ce(po),r=Ee((()=>"allowance"===n.marketplaceScheme.scheme?["Allowance_JoinBenefits","FlareAppIdentity","Allowance_ConfigureBenefits","MarketplaceOffers","Allowance_BenefitsSummary"]:["Introduction","FlareAppIdentity","MarketplaceOffers",e?"SummaryApp":"SummaryGeneric"]),[n,e]),[o,i]=_e(r[0]),a=Se((async()=>{if(r.indexOf(o)===r.length-1){const e=document.querySelector(ol),t=new CustomEvent("step-completion",{bubbles:!0});return null==e||e.dispatchEvent(t),void(await new Promise((e=>setTimeout(e,1e4))))}if("RegistrationAbandoned"!==t())try{const e=r.findIndex((e=>e===o)),t=r[e+1];return void i(t)}catch{}else i(r[r.length-1])}),[o,t,r]);return{current:o,goNext:a}}(),i=Se((()=>{n(!0),o()}),[o,n]),a=Se((()=>{n(!1),o()}),[o,n]);switch(r){case"Introduction":return co(Xi,{employerName:t.employerName,onStepComplete:o});case"Allowance_JoinBenefits":return co(Si,{employerName:t.employerName,onContinue:o});case"FlareAppIdentity":return co(Yi,{onSuccess:i,onDecline:a});case"Allowance_ConfigureBenefits":return co(vi,{onContinue:o});case"MarketplaceOffers":return co($s,{offers:e,onComplete:o});case"Allowance_BenefitsSummary":return co(Ti,{onContinue:o});case"SummaryApp":return co(Ks,{onComplete:o});case"SummaryGeneric":return co(tl,{onComplete:o});default:return co(E,{})}},rl=()=>Ce(po).isLoading?co("div",{class:"flex justify-center",children:co("span",{class:"animate-spin",children:co(yo,{size:"lg"})})}):co(nl,{}),ol="benefits-onboarding";!function(e,t,n,r){function o(){var t=Reflect.construct(HTMLElement,[],o);return t._vdomComponent=e,t._root=r&&r.shadow?t.attachShadow({mode:r.mode||"open"}):t,t}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=K,o.prototype.attributeChangedCallback=Q,o.prototype.disconnectedCallback=ee,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(t){this._vdom?this.attributeChangedCallback(e,null,t):(this._props||(this._props={}),this._props[e]=t,this.connectedCallback());var n=typeof t;null!=t&&"string"!==n&&"boolean"!==n&&"number"!==n||this.setAttribute(e,t)}})})),customElements.define(t,o)}((e=>{const[t,n]=_e(0);we((()=>Wt((()=>{n(t+1)}))),[t]);const r={backendUrl:e["backend-url"],accessToken:e["access-token"],workflowsInstanceId:e["workflows-instance-id"],workflowsJourneyType:e["workflows-journey-type"]};return so(r.backendUrl,r.accessToken,r.workflowsInstanceId,r.workflowsJourneyType),"prod"===ho(r.backendUrl)&&go.init("p09arvzysr"),co(E,{children:[co("style",{children:_o.toString()}),co("div",{class:"font-inter pt-6 pb-8 md:py-24 px-px",children:co(mo,{children:co(rl,{})})},t)]})}),ol,[],{shadow:!0})}));
|
8
|
+
/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */,{entries:Ua,setPrototypeOf:Fa,isFrozen:ja,getPrototypeOf:Da,getOwnPropertyDescriptor:Ba}=Object;let{freeze:Ma,seal:za,create:Ha}=Object,{apply:qa,construct:Wa}="undefined"!=typeof Reflect&&Reflect;Ma||(Ma=function(e){return e}),za||(za=function(e){return e}),qa||(qa=function(e,t,n){return e.apply(t,n)}),Wa||(Wa=function(e,t){return new e(...t)});const Va=os(Array.prototype.forEach),$a=os(Array.prototype.pop),Ga=os(Array.prototype.push),Ya=os(String.prototype.toLowerCase),Ja=os(String.prototype.toString),Xa=os(String.prototype.match),Ka=os(String.prototype.replace),Za=os(String.prototype.indexOf),Qa=os(String.prototype.trim),es=os(Object.prototype.hasOwnProperty),ts=os(RegExp.prototype.test),ns=(rs=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Wa(rs,t)});var rs;function os(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return qa(e,t,r)}}function is(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ya;Fa&&Fa(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(ja(t)||(t[r]=e),o=e)}e[o]=!0}return e}function as(e){for(let t=0;t<e.length;t++){es(e,t)||(e[t]=null)}return e}function ss(e){const t=Ha(null);for(const[n,r]of Ua(e)){es(e,n)&&(Array.isArray(r)?t[n]=as(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=ss(r):t[n]=r)}return t}function ls(e,t){for(;null!==e;){const n=Ba(e,t);if(n){if(n.get)return os(n.get);if("function"==typeof n.value)return os(n.value)}e=Da(e)}return function(){return null}}const cs=Ma(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ds=Ma(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),us=Ma(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ps=Ma(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),fs=Ma(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),ms=Ma(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),hs=Ma(["#text"]),gs=Ma(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),ys=Ma(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),_s=Ma(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),bs=Ma(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ws=za(/\{\{[\w\W]*|[\w\W]*\}\}/gm),vs=za(/<%[\w\W]*|[\w\W]*%>/gm),xs=za(/\${[\w\W]*}/gm),ks=za(/^data-[\-\w.\u00B7-\uFFFF]/),Es=za(/^aria-[\-\w]+$/),Ss=za(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Cs=za(/^(?:\w+script|data):/i),Ns=za(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ts=za(/^html$/i),Os=za(/^[a-z][.\w]*(-[.\w]+)+$/i);var As=Object.freeze({__proto__:null,MUSTACHE_EXPR:ws,ERB_EXPR:vs,TMPLIT_EXPR:xs,DATA_ATTR:ks,ARIA_ATTR:Es,IS_ALLOWED_URI:Ss,IS_SCRIPT_OR_DATA:Cs,ATTR_WHITESPACE:Ns,DOCTYPE_NAME:Ts,CUSTOM_ELEMENT:Os});const Rs=1,Ps=3,Ls=7,Is=8,Us=9;var Fs=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window;const n=t=>e(t);if(n.version="3.1.6",n.removed=[],!t||!t.document||t.document.nodeType!==Us)return n.isSupported=!1,n;let{document:r}=t;const o=r,i=o.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:l,Element:c,NodeFilter:d,NamedNodeMap:u=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:f,trustedTypes:m}=t,h=c.prototype,g=ls(h,"cloneNode"),y=ls(h,"remove"),_=ls(h,"nextSibling"),b=ls(h,"childNodes"),w=ls(h,"parentNode");if("function"==typeof s){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let v,x="";const{implementation:k,createNodeIterator:E,createDocumentFragment:S,getElementsByTagName:C}=r,{importNode:N}=o;let T={};n.isSupported="function"==typeof Ua&&"function"==typeof w&&k&&void 0!==k.createHTMLDocument;const{MUSTACHE_EXPR:O,ERB_EXPR:A,TMPLIT_EXPR:R,DATA_ATTR:P,ARIA_ATTR:L,IS_SCRIPT_OR_DATA:I,ATTR_WHITESPACE:U,CUSTOM_ELEMENT:F}=As;let{IS_ALLOWED_URI:j}=As,D=null;const B=is({},[...cs,...ds,...us,...fs,...hs]);let M=null;const z=is({},[...gs,...ys,..._s,...bs]);let H=Object.seal(Ha(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),q=null,W=null,V=!0,$=!0,G=!1,Y=!0,J=!1,X=!0,K=!1,Z=!1,Q=!1,ee=!1,te=!1,ne=!1,re=!0,oe=!1,ie=!0,ae=!1,se={},le=null;const ce=is({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let de=null;const ue=is({},["audio","video","img","source","image","track"]);let pe=null;const fe=is({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),me="http://www.w3.org/1998/Math/MathML",he="http://www.w3.org/2000/svg",ge="http://www.w3.org/1999/xhtml";let ye=ge,_e=!1,be=null;const we=is({},[me,he,ge],Ja);let ve=null;const xe=["application/xhtml+xml","text/html"];let ke=null,Ee=null;const Se=r.createElement("form"),Ce=function(e){return e instanceof RegExp||e instanceof Function},Ne=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ee||Ee!==e){if(e&&"object"==typeof e||(e={}),e=ss(e),ve=-1===xe.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ke="application/xhtml+xml"===ve?Ja:Ya,D=es(e,"ALLOWED_TAGS")?is({},e.ALLOWED_TAGS,ke):B,M=es(e,"ALLOWED_ATTR")?is({},e.ALLOWED_ATTR,ke):z,be=es(e,"ALLOWED_NAMESPACES")?is({},e.ALLOWED_NAMESPACES,Ja):we,pe=es(e,"ADD_URI_SAFE_ATTR")?is(ss(fe),e.ADD_URI_SAFE_ATTR,ke):fe,de=es(e,"ADD_DATA_URI_TAGS")?is(ss(ue),e.ADD_DATA_URI_TAGS,ke):ue,le=es(e,"FORBID_CONTENTS")?is({},e.FORBID_CONTENTS,ke):ce,q=es(e,"FORBID_TAGS")?is({},e.FORBID_TAGS,ke):{},W=es(e,"FORBID_ATTR")?is({},e.FORBID_ATTR,ke):{},se=!!es(e,"USE_PROFILES")&&e.USE_PROFILES,V=!1!==e.ALLOW_ARIA_ATTR,$=!1!==e.ALLOW_DATA_ATTR,G=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,J=e.SAFE_FOR_TEMPLATES||!1,X=!1!==e.SAFE_FOR_XML,K=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,Q=e.FORCE_BODY||!1,re=!1!==e.SANITIZE_DOM,oe=e.SANITIZE_NAMED_PROPS||!1,ie=!1!==e.KEEP_CONTENT,ae=e.IN_PLACE||!1,j=e.ALLOWED_URI_REGEXP||Ss,ye=e.NAMESPACE||ge,H=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Ce(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Ce(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(H.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),J&&($=!1),te&&(ee=!0),se&&(D=is({},hs),M=[],!0===se.html&&(is(D,cs),is(M,gs)),!0===se.svg&&(is(D,ds),is(M,ys),is(M,bs)),!0===se.svgFilters&&(is(D,us),is(M,ys),is(M,bs)),!0===se.mathMl&&(is(D,fs),is(M,_s),is(M,bs))),e.ADD_TAGS&&(D===B&&(D=ss(D)),is(D,e.ADD_TAGS,ke)),e.ADD_ATTR&&(M===z&&(M=ss(M)),is(M,e.ADD_ATTR,ke)),e.ADD_URI_SAFE_ATTR&&is(pe,e.ADD_URI_SAFE_ATTR,ke),e.FORBID_CONTENTS&&(le===ce&&(le=ss(le)),is(le,e.FORBID_CONTENTS,ke)),ie&&(D["#text"]=!0),K&&is(D,["html","head","body"]),D.table&&(is(D,["tbody"]),delete q.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw ns('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw ns('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=e.TRUSTED_TYPES_POLICY,x=v.createHTML("")}else void 0===v&&(v=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(i){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(m,i)),null!==v&&"string"==typeof x&&(x=v.createHTML(""));Ma&&Ma(e),Ee=e}},Te=is({},["mi","mo","mn","ms","mtext"]),Oe=is({},["foreignobject","annotation-xml"]),Ae=is({},["title","style","font","a","script"]),Re=is({},[...ds,...us,...ps]),Pe=is({},[...fs,...ms]),Le=function(e){Ga(n.removed,{element:e});try{w(e).removeChild(e)}catch(t){y(e)}},Ie=function(e,t){try{Ga(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(r){Ga(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!M[e])if(ee||te)try{Le(t)}catch(r){}else try{t.setAttribute(e,"")}catch(r){}},Ue=function(e){let t=null,n=null;if(Q)e="<remove></remove>"+e;else{const t=Xa(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ve&&ye===ge&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=v?v.createHTML(e):e;if(ye===ge)try{t=(new f).parseFromString(o,ve)}catch(a){}if(!t||!t.documentElement){t=k.createDocument(ye,"template",null);try{t.documentElement.innerHTML=_e?x:o}catch(a){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),ye===ge?C.call(t,K?"html":"body")[0]:K?t.documentElement:i},Fe=function(e){return E.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},je=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof u)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},De=function(e){return"function"==typeof l&&e instanceof l},Be=function(e,t,r){T[e]&&Va(T[e],(e=>{e.call(n,t,r,Ee)}))},Me=function(e){let t=null;if(Be("beforeSanitizeElements",e,null),je(e))return Le(e),!0;const r=ke(e.nodeName);if(Be("uponSanitizeElement",e,{tagName:r,allowedTags:D}),e.hasChildNodes()&&!De(e.firstElementChild)&&ts(/<[/\w]/g,e.innerHTML)&&ts(/<[/\w]/g,e.textContent))return Le(e),!0;if(e.nodeType===Ls)return Le(e),!0;if(X&&e.nodeType===Is&&ts(/<[/\w]/g,e.data))return Le(e),!0;if(!D[r]||q[r]){if(!q[r]&&He(r)){if(H.tagNameCheck instanceof RegExp&&ts(H.tagNameCheck,r))return!1;if(H.tagNameCheck instanceof Function&&H.tagNameCheck(r))return!1}if(ie&&!le[r]){const t=w(e)||e.parentNode,n=b(e)||e.childNodes;if(n&&t){for(let r=n.length-1;r>=0;--r){const o=g(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,_(e))}}}return Le(e),!0}return e instanceof c&&!function(e){let t=w(e);t&&t.tagName||(t={namespaceURI:ye,tagName:"template"});const n=Ya(e.tagName),r=Ya(t.tagName);return!!be[e.namespaceURI]&&(e.namespaceURI===he?t.namespaceURI===ge?"svg"===n:t.namespaceURI===me?"svg"===n&&("annotation-xml"===r||Te[r]):Boolean(Re[n]):e.namespaceURI===me?t.namespaceURI===ge?"math"===n:t.namespaceURI===he?"math"===n&&Oe[r]:Boolean(Pe[n]):e.namespaceURI===ge?!(t.namespaceURI===he&&!Oe[r])&&!(t.namespaceURI===me&&!Te[r])&&!Pe[n]&&(Ae[n]||!Re[n]):!("application/xhtml+xml"!==ve||!be[e.namespaceURI]))}(e)?(Le(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!ts(/<\/no(script|embed|frames)/i,e.innerHTML)?(J&&e.nodeType===Ps&&(t=e.textContent,Va([O,A,R],(e=>{t=Ka(t,e," ")})),e.textContent!==t&&(Ga(n.removed,{element:e.cloneNode()}),e.textContent=t)),Be("afterSanitizeElements",e,null),!1):(Le(e),!0)},ze=function(e,t,n){if(re&&("id"===t||"name"===t)&&(n in r||n in Se))return!1;if($&&!W[t]&&ts(P,t));else if(V&&ts(L,t));else if(!M[t]||W[t]){if(!(He(e)&&(H.tagNameCheck instanceof RegExp&&ts(H.tagNameCheck,e)||H.tagNameCheck instanceof Function&&H.tagNameCheck(e))&&(H.attributeNameCheck instanceof RegExp&&ts(H.attributeNameCheck,t)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(t))||"is"===t&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&ts(H.tagNameCheck,n)||H.tagNameCheck instanceof Function&&H.tagNameCheck(n))))return!1}else if(pe[t]);else if(ts(j,Ka(n,U,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Za(n,"data:")||!de[e]){if(G&&!ts(I,Ka(n,U,"")));else if(n)return!1}else;return!0},He=function(e){return"annotation-xml"!==e&&Xa(e,F)},qe=function(e){Be("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:M};let o=t.length;for(;o--;){const a=t[o],{name:s,namespaceURI:l,value:c}=a,d=ke(s);let u="value"===s?c:Qa(c);if(r.attrName=d,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,Be("uponSanitizeAttribute",e,r),u=r.attrValue,X&&ts(/((--!?|])>)|<\/(style|title)/i,u)){Ie(s,e);continue}if(r.forceKeepAttr)continue;if(Ie(s,e),!r.keepAttr)continue;if(!Y&&ts(/\/>/i,u)){Ie(s,e);continue}J&&Va([O,A,R],(e=>{u=Ka(u,e," ")}));const p=ke(e.nodeName);if(ze(p,d,u)){if(!oe||"id"!==d&&"name"!==d||(Ie(s,e),u="user-content-"+u),v&&"object"==typeof m&&"function"==typeof m.getAttributeType)if(l);else switch(m.getAttributeType(p,d)){case"TrustedHTML":u=v.createHTML(u);break;case"TrustedScriptURL":u=v.createScriptURL(u)}try{l?e.setAttributeNS(l,s,u):e.setAttribute(s,u),je(e)?Le(e):$a(n.removed)}catch(i){}}}Be("afterSanitizeAttributes",e,null)},We=function e(t){let n=null;const r=Fe(t);for(Be("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)Be("uponSanitizeShadowNode",n,null),Me(n)||(n.content instanceof a&&e(n.content),qe(n));Be("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,s=null,c=null;if(_e=!e,_e&&(e="\x3c!--\x3e"),"string"!=typeof e&&!De(e)){if("function"!=typeof e.toString)throw ns("toString is not a function");if("string"!=typeof(e=e.toString()))throw ns("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Z||Ne(t),n.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){const t=ke(e.nodeName);if(!D[t]||q[t])throw ns("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)r=Ue("\x3c!----\x3e"),i=r.ownerDocument.importNode(e,!0),i.nodeType===Rs&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!ee&&!J&&!K&&-1===e.indexOf("<"))return v&&ne?v.createHTML(e):e;if(r=Ue(e),!r)return ee?null:ne?x:""}r&&Q&&Le(r.firstChild);const d=Fe(ae?e:r);for(;s=d.nextNode();)Me(s)||(s.content instanceof a&&We(s.content),qe(s));if(ae)return e;if(ee){if(te)for(c=S.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(M.shadowroot||M.shadowrootmode)&&(c=N.call(o,c,!0)),c}let u=K?r.outerHTML:r.innerHTML;return K&&D["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&ts(Ts,r.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+u),J&&Va([O,A,R],(e=>{u=Ka(u,e," ")})),v&&ne?v.createHTML(u):u},n.setConfig=function(){Ne(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Z=!0},n.clearConfig=function(){Ee=null,Z=!1},n.isValidAttribute=function(e,t,n){Ee||Ne({});const r=ke(e),o=ke(t);return ze(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(T[e]=T[e]||[],Ga(T[e],t))},n.removeHook=function(e){if(T[e])return $a(T[e])},n.removeHooks=function(e){T[e]&&(T[e]=[])},n.removeAllHooks=function(){T={}},n}();const js=({children:e})=>{const t=jt.Children.toArray(e),n=t.find((e=>e.type===Ds)),r=t.find((e=>e.type===Bs));return co(yi,{appear:!0,show:!0,enter:"transition duration-700 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:co("div",{class:"md:grid md:grid-cols-2 max-w-[59.5rem] mx-auto",children:[co(yi,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:n&&co("div",{class:"flex items-center h-full",children:n})}),co(yi,{appear:!0,show:!0,enter:"transition delay-300 duration-[600ms] ease-out",enterFrom:"opacity-0 -translate-y-6",enterTo:"opacity-100 translate-y-0",children:r&&co("div",{class:"flex items-center h-full",children:r})})]})})},Ds=({children:e})=>co(E,{children:e}),Bs=({children:e})=>co(E,{children:e});js.Left=Ds,js.Right=Bs;const Ms=e=>v("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,...e},v("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})),zs=e=>co(yi,{appear:!0,show:!0,enter:"transition duration-300 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:co("div",{class:"w-full border border-gray-200 rounded-lg shadow-sm p-4 pl-3 md:p-6 space-y-2",children:e.items.map(((e,t)=>co("div",{class:"flex space-x-1",children:[co("span",{children:co(ko,{class:"h-5 w-5 fill-primary-base"})}),co("span",{class:"text-sm leading-5 text-gray-600",children:e})]},t)))})}),Hs=e=>{const[t,n]=_e(!1);return co("div",{class:e.class,children:t?co(zs,{items:e.items}):co("button",{type:"button",class:"w-full inline-flex justify-center items-center px-4 py-3 border border-gray-200 shadow-sm text-sm font-medium rounded-md text-primary-base bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus",onClick:()=>n(!0),children:["Learn more",co("span",{class:"ml-1",children:co(Ms,{class:"h-4 w-4"})})]})})},qs=e=>{var t,n,r,o;const{featureFlags:{marketplaceScheme:i}}=Ce(po),{trace:a}=Ei(),[s,l]=_e(!1);Ki((()=>{a({type:"offer-viewed",offerName:e.step.name,data:e.step.metadata},{experiment:e.step.metadata.featureName,treatment:e.step.metadata.treatmentName})}));const c=async t=>{t?await a({type:"offer-accepted",offerName:e.step.name,data:{...e.step.metadata,template:"Eoi"}},{experiment:e.step.metadata.featureName,treatment:e.step.metadata.treatmentName}):await a({type:"offer-declined",offerName:e.step.name,data:{...e.step.metadata,template:"Eoi"}},{experiment:e.step.metadata.featureName,treatment:e.step.metadata.treatmentName});return(t?e.primaryButton:e.secondaryButton).onClick()};return co(js,{children:[co(js.Left,{children:co("div",{children:co(yi,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:co("div",{children:[co("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:e.step.content.mobileImageUrl,loading:"lazy"}),co("div",{class:"md:max-w-[27.5rem]",children:[co("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:e.step.content.title}),co("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:e.step.content.description}),e.step.content.details&&co("div",{class:"mt-6 hidden md:block",children:co(zs,{items:e.step.content.details})})]}),e.step.content.details&&co(Hs,{class:"mt-6 md:hidden",items:e.step.content.details}),"allowance"===i.scheme&&"offer"==(null==(t=e.step.content.specialBanner)?void 0:t.type)&&co(xi,{style:{background:"linear-gradient(90deg, rgba(255, 135, 111, 0.10) 0%, rgba(166, 80, 255, 0.10) 100%)"},className:"md:max-w-[27.5rem] mt-6",children:co("div",{children:[co("p",{className:"font-semibold text-lg leading-tight text-gray-900",children:e.step.content.specialBanner.title}),co("span",{className:"font-normal text-sm text-gray-900",children:e.step.content.specialBanner.subtitle})]})}),e.children&&e.children,co("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:[co(bo,{testId:`offer_${e.step.name}_button_accept`,class:e.primaryButton.class??"",onClickPromise:()=>c(!0),children:e.primaryButton.text??"Next"}),(null==(n=e.secondaryButton)?void 0:n.text)&&co(bo,{testId:`offer_${e.step.name}_button_decline`,class:e.secondaryButton.class??"bg-white hover:!bg-gray-100 focus:!ring-gray-200 !border-0 !shadow-none !text-gray-700 !border-gray-300",onClickPromise:()=>c(!1),children:e.secondaryButton.text})]}),(null==(r=e.step.content.terms)?void 0:r.length)>0&&co("p",{className:"mt-6 text-xs",children:[co("span",{children:"*"}),co("span",{className:"underline text-primary-base cursor-pointer",onClick:()=>l(!0),children:"T&C's apply"})]}),(null==(o=e.step.content.terms)?void 0:o.length)>0&&co(Hi,{open:s,children:[co(Mi,{children:co("div",{className:"relative",children:[co("h3",{className:"text-base font-semibold text-gray-900",children:"Terms & Conditions"}),co("span",{className:"absolute top-0 right-0 p-1 rounded-full bg-gray-200 cursor-pointer hover:bg-gray-100",onClick:()=>l(!1),children:co(Ia,{className:"h-4 min-h-4 max-h-4 w-4 min-w-4 max-w-4"})})]})}),co(zi,{children:co("div",{class:"flex flex-col gap-3 mt-6 text-gray-600 text-xs",children:e.step.content.terms.map(((e,t)=>co("span",{dangerouslySetInnerHTML:{__html:Fs.sanitize(e,{ADD_ATTR:["target"]})}},t)))})})]})]})})})}),co(js.Right,{children:co("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},Ws=e=>{var t,n,r;const{featureFlags:{marketplaceScheme:o}}=Ce(po),{trace:i}=Ei(),[a,s]=_e(!1);Ki((()=>{"name"in e.step&&i({type:"offer-viewed",offerName:e.step.name,data:e.step.metadata},{experiment:e.step.metadata.featureName,treatment:e.step.metadata.treatmentName})}));return co(js,{children:[co(js.Left,{children:co("div",{children:co(yi,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:co("div",{children:[co("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:e.step.content.mobileImageUrl,loading:"lazy"}),co("div",{class:"md:max-w-[27.5rem]",children:[co("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:e.step.content.title}),co("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:e.step.content.description}),e.step.content.details&&co("div",{class:"mt-6 hidden md:block",children:co(zs,{items:e.step.content.details})})]}),e.step.content.details&&co(Hs,{class:"mt-6 md:hidden",items:e.step.content.details}),"allowance"===o.scheme&&"offer"==(null==(t=e.step.content.specialBanner)?void 0:t.type)&&co(xi,{style:{background:"linear-gradient(90deg, rgba(255, 135, 111, 0.10) 0%, rgba(166, 80, 255, 0.10) 100%)"},className:"md:max-w-[27.5rem] mt-6",children:co("div",{children:[co("p",{className:"font-semibold text-lg leading-tight text-gray-900",children:e.step.content.specialBanner.title}),co("span",{className:"font-normal text-sm text-gray-900",children:e.step.content.specialBanner.subtitle})]})}),e.children&&e.children,co("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:co(bo,{testId:`offer_${e.step.name}_button_accept`,class:e.primaryButton.class??"",onClickPromise:async()=>{"name"in e.step&&await i({type:"offer-progressed",offerName:e.step.name,data:{...e.step.metadata,template:"Simple"}},{experiment:e.step.metadata.featureName,treatment:e.step.metadata.treatmentName}),e.primaryButton.onClick()},children:e.primaryButton.text??"Next"})}),(null==(n=e.step.content.terms)?void 0:n.length)>0&&co("p",{className:"mt-6 text-xs",children:[co("span",{children:"*"}),co("span",{className:"underline text-primary-base cursor-pointer",onClick:()=>s(!0),children:"T&C's apply"})]}),(null==(r=e.step.content.terms)?void 0:r.length)>0&&co(Hi,{open:a,children:[co(Mi,{children:co("div",{className:"relative",children:[co("h3",{className:"text-base font-semibold text-gray-900",children:"Terms & Conditions"}),co("span",{className:"absolute top-0 right-0 p-1 rounded-full bg-gray-200 cursor-pointer hover:bg-gray-100",onClick:()=>s(!1),children:co(Ia,{className:"h-4 min-h-4 max-h-4 w-4 min-w-4 max-w-4"})})]})}),co(zi,{children:co("div",{class:"flex flex-col gap-3 mt-6 text-gray-600 text-xs",children:e.step.content.terms.map(((e,t)=>co("span",{dangerouslySetInnerHTML:{__html:Fs.sanitize(e,{ADD_ATTR:["target"]})}},t)))})})]})]})})})}),co(js.Right,{children:co("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},Vs=({current:e,total:t})=>co("div",{className:"flex justify-between md:block text-xs tracking-wide",children:co("span",{className:"relative px-3 py-0.5 text-primary-base font-semibold",children:[e," OF ",t,co("span",{className:"absolute left-0 rounded-xl bg-primary-base opacity-10 w-full h-[90%]"})]})}),$s=e=>{const{featureFlags:{marketplaceSubNavigation:t},offersProgress:{update:n}}=Ce(po),[r,o]=_e(0),{trace:i}=Ei(),a=Se(((t,i,a)=>{n(t,i,a),r===e.offers.length-1?e.onComplete():o(r+1)}),[n,r,e]),s=Se((t=>{o(t);const n=e.offers[t];i({type:"offer-selected",offerName:n.name},{experiment:n.metadata.featureName,treatment:n.metadata.treatmentName})}),[e.offers,i]);return co("div",{className:"max-w-[59.5rem] mx-auto",children:[!t&&co(Vs,{current:r+1,total:e.offers.length+1}),co(ta,{selectedIndex:r,onChange:s,children:[t&&e.offers.map((e=>co(Qi,{label:e.content.productName,icon:co(Aa,{src:e.content.iconUrl,wrapper:"svg",className:"w-6 h-6 max-w-6 max-h-6 min-w-6 min-h-6",beforeInjection:e=>{var t;e.removeAttribute("width"),e.removeAttribute("height"),null==(t=e.querySelector("path"))||t.removeAttribute("fill"),e.setAttribute("fill","currentColor")}})},e.name))),e.offers.map((e=>co(ea,{children:["Eoi"===e.content.template&&co(qs,{step:e,primaryButton:{text:e.content.acceptButton,onClick:()=>a(e.name,!0,!0)},secondaryButton:{text:e.content.declineButton,onClick:()=>a(e.name,!1,!1)}}),"Simple"===e.content.template&&co(Ws,{step:e,primaryButton:{text:e.content.acceptButton,onClick:()=>a(e.name,!0,!0)}}),"Assessment"===e.content.template&&co(Pa,{onStepComplete:(t,n)=>a(e.name,t,n),marketPlaceOffer:e},e.name)]},e.name)))]})]})},Gs=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/get-app-CQalMIl7.jpg").href:new URL("assets/get-app-CQalMIl7.jpg","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),Ys=e=>v("svg",{width:36,height:42,viewBox:"0 0 36 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v("path",{d:"M29.7406 21.8737C29.7406 18.5174 31.3138 16.0681 34.3678 14.1632C32.6094 11.714 30.0182 10.444 26.5941 10.1719C23.2625 9.89974 19.6532 11.9861 18.3576 11.9861C16.9694 11.9861 13.8229 10.2626 11.3242 10.2626C6.14176 10.3533 0.681641 14.2539 0.681641 22.3273C0.681641 24.6858 1.05182 27.135 1.97726 29.6749C3.18034 33.0312 7.43738 41.1953 11.8795 41.0139C14.1931 41.0139 15.8589 39.3811 18.9129 39.3811C21.8743 39.3811 23.355 41.0139 25.9463 41.0139C30.4809 41.0139 34.3678 33.5755 35.4783 30.2192C29.4629 27.4071 29.7406 22.0551 29.7406 21.8737ZM24.5581 6.99696C27.0568 4.09418 26.7792 1.37283 26.7792 0.375C24.5581 0.556424 21.9668 1.9171 20.4861 3.54991C18.8203 5.36415 17.8949 7.63194 18.08 10.0812C20.4861 10.2626 22.7072 9.08333 24.5581 6.99696Z",fill:"#9CA3AF"})),Js=e=>v("svg",{width:37,height:40,viewBox:"0 0 37 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v("path",{d:"M24.1063 18.8401L6.78538 1.88173L28.8088 14.2567L24.1063 18.8401ZM2.318 0.888672C1.29913 1.42339 0.59375 2.41645 0.59375 3.63867V37.3262C0.59375 38.5484 1.29913 39.5415 2.318 39.9998L22.382 20.4442L2.318 0.888672ZM35.6274 18.1526L31.0033 15.5553L25.8305 20.4442L31.0033 25.4095L35.7058 22.8123C37.1165 21.7428 37.1165 19.222 35.6274 18.1526ZM6.78538 39.0067L28.8088 26.7081L24.1063 22.1248L6.78538 39.0067Z",fill:"#9CA3AF"})),Xs=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/get-app-mobile-DORYS6YR.jpg").href:new URL("assets/get-app-mobile-DORYS6YR.jpg","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),Ks=({onComplete:e})=>{const{trace:t}=Ei(),{identity:n,getIdentityRegistrationStatus:r,featureFlags:{marketplaceScheme:o}}=Ce(po);we((()=>{(async()=>{await t({type:"summary-viewed",data:{summaryVariant:"app"}},{experiment:"onboarding-marketplace-scheme",treatment:o.scheme})})()}),[o,t]);const i={...Zs(n,r()),imageUrl:Gs,mobileImageUrl:Xs},a={text:"Continue",class:"mt-6 md:mt-14",onClick:async()=>{await t("completed",{experiment:"onboarding-marketplace-scheme",treatment:o.scheme}),await e()}};return co(js,{children:[co(js.Left,{children:co("div",{children:[co("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:i.mobileImageUrl,loading:"lazy"}),co("div",{class:"md:max-w-[27.5rem]",children:[co("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:i.title}),co("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:i.description})]}),co("div",{class:"mt-6 flex space-x-6",children:[co(Ys,{}),co(Js,{})]}),co(bo,{testId:"step-benefits-finish",class:a.class,onClickPromise:a.onClick,children:a.text})]})}),co(js.Right,{children:co("img",{class:"max-w-[30rem] w-full hidden md:block",src:i.imageUrl,loading:"lazy"})})]})},Zs=(e,t)=>{switch(t){case"RegistrationAbandoned":return{title:"Join your workplace",description:`We’ve sent an email to ${e.email} with instructions on how to join your workplace. This will enable you to access all your workplace benefits through the Flare app in the future.`};case"NewlyRegistered":return{title:"Join your workplace’s benefits program",description:`We’ve sent an email to ${e.email} with instructions on how to download the Flare app - where your company’s benefits live.`};default:return{title:"Check your email",description:`We’ve sent an email to ${e.email} with instructions on how to download and activate the Flare App and Card.`}}},Qs=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/all-set-vt2mQYDm.jpg").href:new URL("assets/all-set-vt2mQYDm.jpg","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),el=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/all-set-mobile-Fhtje9HW.jpg").href:new URL("assets/all-set-mobile-Fhtje9HW.jpg","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),tl=({onComplete:e})=>{const{trace:t}=Ei(),{getWorkplaceLinkingStatus:n,featureFlags:{marketplaceScheme:r}}=Ce(po);we((()=>{(async()=>{await t({type:"summary-viewed",data:{summaryVariant:"generic"}},{experiment:"onboarding-marketplace-scheme",treatment:r.scheme})})()}),[r,t]);const o={imageUrl:Qs,mobileImageUrl:el,title:"You're all set!",description:"PreviouslyLinked"===n()?"You’ve already connected this employer with your Flare Benefits account. Simply continue and review the details you have provided to complete your onboarding.":"Simply continue and review the details you have provided to complete your onboarding."},i={text:"Continue",class:"mt-6 md:mt-6",onClick:async()=>{await t("completed",{experiment:"onboarding-marketplace-scheme",treatment:r.scheme}),await e()}};return co(js,{children:[co(js.Left,{children:co("div",{children:[co("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:o.mobileImageUrl,loading:"lazy"}),co("div",{class:"md:max-w-[27.5rem]",children:[co("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:o.title}),co("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:o.description})]}),co("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:co(bo,{testId:"step-benefits-finish",class:i.class,onClickPromise:i.onClick,children:i.text})})]})}),co(js.Right,{children:co("img",{class:"max-w-[30rem] w-full hidden md:block",src:o.imageUrl,loading:"lazy"})})]})},nl=()=>{const{offers:e,workplace:t,updateIdentity:n}=Ce(po),{current:r,goNext:o}=function(){const{isAppEnabled:e,getIdentityRegistrationStatus:t,featureFlags:n}=Ce(po),r=Ee((()=>"allowance"===n.marketplaceScheme.scheme?["Allowance_JoinBenefits","FlareAppIdentity","Allowance_ConfigureBenefits","MarketplaceOffers","Allowance_BenefitsSummary"]:["Introduction","FlareAppIdentity","MarketplaceOffers",e?"SummaryApp":"SummaryGeneric"]),[n,e]),[o,i]=_e(r[0]),a=Se((async()=>{if(r.indexOf(o)===r.length-1){const e=document.querySelector(ol),t=new CustomEvent("step-completion",{bubbles:!0});return null==e||e.dispatchEvent(t),void(await new Promise((e=>setTimeout(e,1e4))))}if("RegistrationAbandoned"!==t())try{const e=r.findIndex((e=>e===o)),t=r[e+1];return void i(t)}catch{}else i(r[r.length-1])}),[o,t,r]);return{current:o,goNext:a}}(),i=Se((()=>{n(!0),o()}),[o,n]),a=Se((()=>{n(!1),o()}),[o,n]);switch(r){case"Introduction":return co(Xi,{employerName:t.employerName,onStepComplete:o});case"Allowance_JoinBenefits":return co(Si,{employerName:t.employerName,onContinue:o});case"FlareAppIdentity":return co(Yi,{onSuccess:i,onDecline:a});case"Allowance_ConfigureBenefits":return co(vi,{onContinue:o});case"MarketplaceOffers":return co($s,{offers:e,onComplete:o});case"Allowance_BenefitsSummary":return co(Ti,{onContinue:o});case"SummaryApp":return co(Ks,{onComplete:o});case"SummaryGeneric":return co(tl,{onComplete:o});default:return co(E,{})}},rl=()=>Ce(po).isLoading?co("div",{class:"flex justify-center",children:co("span",{class:"animate-spin",children:co(yo,{size:"lg"})})}):co(nl,{}),ol="benefits-onboarding";!function(e,t,n,r){function o(){var t=Reflect.construct(HTMLElement,[],o);return t._vdomComponent=e,t._root=r&&r.shadow?t.attachShadow({mode:r.mode||"open"}):t,t}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=K,o.prototype.attributeChangedCallback=Q,o.prototype.disconnectedCallback=ee,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(t){this._vdom?this.attributeChangedCallback(e,null,t):(this._props||(this._props={}),this._props[e]=t,this.connectedCallback());var n=typeof t;null!=t&&"string"!==n&&"boolean"!==n&&"number"!==n||this.setAttribute(e,t)}})})),customElements.define(t,o)}((e=>{const[t,n]=_e(0);we((()=>Wt((()=>{n(t+1)}))),[t]);const r={backendUrl:e["backend-url"],accessToken:e["access-token"],workflowsInstanceId:e["workflows-instance-id"],workflowsJourneyType:e["journey-type"]};return so(r.backendUrl,r.accessToken,r.workflowsInstanceId,r.workflowsJourneyType),"prod"===ho(r.backendUrl)&&go.init("p09arvzysr"),co(E,{children:[co("style",{children:_o.toString()}),co("div",{class:"font-inter pt-6 pb-8 md:py-24 px-px",children:co(mo,{children:co(rl,{})})},t)]})}),ol,[],{shadow:!0})}));
|