@flarehr/superhero-benefits-onboarding 2.9.13 → 2.11.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (()=>{var e={608:(e,t,n)=>{const r=n(661),o=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L6.832 19.82a4.5 4.5 0 01-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 011.13-1.897L16.863 4.487zm0 0L19.5 7.125"}))}));e.exports=o},783:(e,t,n)=>{const r=n(661),o=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"}))}));e.exports=o},669:(e,t,n)=>{e.exports=n(609)},448:(e,t,n)=>{"use strict";var r=n(867),o=n(26),i=n(372),a=n(327),s=n(97),c=n(109),l=n(985),u=n(874),f=n(648),d=n(644),p=n(205);e.exports=function(e){return new Promise((function(t,n){var h,b=e.data,g=e.headers,v=e.responseType;function m(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}r.isFormData(b)&&r.isStandardBrowserEnv()&&delete g["Content-Type"];var w=new XMLHttpRequest;if(e.auth){var _=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";g.Authorization="Basic "+btoa(_+":"+y)}var x=s(e.baseURL,e.url);function k(){if(w){var r="getAllResponseHeaders"in w?c(w.getAllResponseHeaders()):null,i={data:v&&"text"!==v&&"json"!==v?w.response:w.responseText,status:w.status,statusText:w.statusText,headers:r,config:e,request:w};o((function(e){t(e),m()}),(function(e){n(e),m()}),i),w=null}}if(w.open(e.method.toUpperCase(),a(x,e.params,e.paramsSerializer),!0),w.timeout=e.timeout,"onloadend"in w?w.onloadend=k:w.onreadystatechange=function(){w&&4===w.readyState&&(0!==w.status||w.responseURL&&0===w.responseURL.indexOf("file:"))&&setTimeout(k)},w.onabort=function(){w&&(n(new f("Request aborted",f.ECONNABORTED,e,w)),w=null)},w.onerror=function(){n(new f("Network Error",f.ERR_NETWORK,e,w,w)),w=null},w.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||u;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new f(t,r.clarifyTimeoutError?f.ETIMEDOUT:f.ECONNABORTED,e,w)),w=null},r.isStandardBrowserEnv()){var E=(e.withCredentials||l(x))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;E&&(g[e.xsrfHeaderName]=E)}"setRequestHeader"in w&&r.forEach(g,(function(e,t){void 0===b&&"content-type"===t.toLowerCase()?delete g[t]:w.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(w.withCredentials=!!e.withCredentials),v&&"json"!==v&&(w.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&w.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&w.upload&&w.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function(e){w&&(n(!e||e&&e.type?new d:e),w.abort(),w=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),b||(b=null);var C=p(x);C&&-1===["http","https","file"].indexOf(C)?n(new f("Unsupported protocol "+C+":",f.ERR_BAD_REQUEST,e)):w.send(b)}))}},609:(e,t,n)=>{"use strict";var r=n(867),o=n(849),i=n(321),a=n(185),s=function e(t){var n=new i(t),s=o(i.prototype.request,n);return r.extend(s,i.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(546));s.Axios=i,s.CanceledError=n(644),s.CancelToken=n(972),s.isCancel=n(502),s.VERSION=n(288).version,s.toFormData=n(675),s.AxiosError=n(648),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=n(713),s.isAxiosError=n(268),e.exports=s,e.exports.default=s},972:(e,t,n)=>{"use strict";var r=n(644);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},644:(e,t,n)=>{"use strict";var r=n(648);function o(e){r.call(this,null==e?"canceled":e,r.ERR_CANCELED),this.name="CanceledError"}n(867).inherits(o,r,{__CANCEL__:!0}),e.exports=o},502:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,n)=>{"use strict";var r=n(867),o=n(327),i=n(782),a=n(572),s=n(185),c=n(97),l=n(875),u=l.validators;function f(e){this.defaults=e,this.interceptors={request:new i,response:new i}}f.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&l.assertOptions(n,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var i,c=[];if(this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)})),!o){var f=[a,void 0];for(Array.prototype.unshift.apply(f,r),f=f.concat(c),i=Promise.resolve(t);f.length;)i=i.then(f.shift(),f.shift());return i}for(var d=t;r.length;){var p=r.shift(),h=r.shift();try{d=p(d)}catch(e){h(e);break}}try{i=a(d)}catch(e){return Promise.reject(e)}for(;c.length;)i=i.then(c.shift(),c.shift());return i},f.prototype.getUri=function(e){e=s(this.defaults,e);var t=c(e.baseURL,e.url);return o(t,e.params,e.paramsSerializer)},r.forEach(["delete","get","head","options"],(function(e){f.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(s(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}f.prototype[e]=t(),f.prototype[e+"Form"]=t(!0)})),e.exports=f},648:(e,t,n)=>{"use strict";var r=n(867);function o(e,t,n,r,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}r.inherits(o,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var i=o.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){a[e]={value:e}})),Object.defineProperties(o,a),Object.defineProperty(i,"isAxiosError",{value:!0}),o.from=function(e,t,n,a,s,c){var l=Object.create(i);return r.toFlatObject(e,l,(function(e){return e!==Error.prototype})),o.call(l,e.message,t,n,a,s),l.name=e.name,c&&Object.assign(l,c),l},e.exports=o},782:(e,t,n)=>{"use strict";var r=n(867);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},97:(e,t,n)=>{"use strict";var r=n(793),o=n(303);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},572:(e,t,n)=>{"use strict";var r=n(867),o=n(527),i=n(502),a=n(546),s=n(644);function c(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){return c(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return c(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(c(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},185:(e,t,n)=>{"use strict";var r=n(867);e.exports=function(e,t){t=t||{};var n={};function o(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function i(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return o(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(void 0,t[n])}function c(n){return n in t?o(e[n],t[n]):n in e?o(void 0,e[n]):void 0}var l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=l[e]||i,o=t(e);r.isUndefined(o)&&t!==c||(n[e]=o)})),n}},26:(e,t,n)=>{"use strict";var r=n(648);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new r("Request failed with status code "+n.status,[r.ERR_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},527:(e,t,n)=>{"use strict";var r=n(867),o=n(546);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},546:(e,t,n)=>{"use strict";var r=n(867),o=n(16),i=n(648),a=n(874),s=n(675),c={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u,f={transitional:a,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(u=n(448)),u),transformRequest:[function(e,t){if(o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e))return e;if(r.isArrayBufferView(e))return e.buffer;if(r.isURLSearchParams(e))return l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,i=r.isObject(e),a=t&&t["Content-Type"];if((n=r.isFileList(e))||i&&"multipart/form-data"===a){var c=this.env&&this.env.FormData;return s(n?{"files[]":e}:e,c&&new c)}return i||"application/json"===a?(l(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(0,JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||f.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw i.from(e,i.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(623)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){f.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){f.headers[e]=r.merge(c)})),e.exports=f},874:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},288:e=>{e.exports={version:"0.27.2"}},849:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},327:(e,t,n)=>{"use strict";var r=n(867);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},372:(e,t,n)=>{"use strict";var r=n(867);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},268:(e,t,n)=>{"use strict";var r=n(867);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},985:(e,t,n)=>{"use strict";var r=n(867);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},16:(e,t,n)=>{"use strict";var r=n(867);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},623:e=>{e.exports=null},109:(e,t,n)=>{"use strict";var r=n(867),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},205:e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},675:(e,t,n)=>{"use strict";var r=n(867);e.exports=function(e,t){t=t||new FormData;var n=[];function o(e){return null===e?"":r.isDate(e)?e.toISOString():r.isArrayBuffer(e)||r.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(i,a){if(r.isPlainObject(i)||r.isArray(i)){if(-1!==n.indexOf(i))throw Error("Circular reference detected in "+a);n.push(i),r.forEach(i,(function(n,i){if(!r.isUndefined(n)){var s,c=a?a+"."+i:i;if(n&&!a&&"object"==typeof n)if(r.endsWith(i,"{}"))n=JSON.stringify(n);else if(r.endsWith(i,"[]")&&(s=r.toArray(n)))return void s.forEach((function(e){!r.isUndefined(e)&&t.append(c,o(e))}));e(n,c)}})),n.pop()}else t.append(a,o(i))}(e),t}},875:(e,t,n)=>{"use strict";var r=n(288).version,o=n(648),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={};i.transitional=function(e,t,n){function i(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new o(i(r," has been removed"+(t?" in "+t:"")),o.ERR_DEPRECATED);return t&&!a[r]&&(a[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var a=r[i],s=t[a];if(s){var c=e[a],l=void 0===c||s(c,a,e);if(!0!==l)throw new o("option "+a+" must be "+l,o.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new o("Unknown option "+a,o.ERR_BAD_OPTION)}},validators:i}},867:(e,t,n)=>{"use strict";var r,o=n(849),i=Object.prototype.toString,a=(r=Object.create(null),function(e){var t=i.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return a(t)===e}}function c(e){return Array.isArray(e)}function l(e){return void 0===e}var u=s("ArrayBuffer");function f(e){return null!==e&&"object"==typeof e}function d(e){if("object"!==a(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=s("Date"),h=s("File"),b=s("Blob"),g=s("FileList");function v(e){return"[object Function]"===i.call(e)}var m=s("URLSearchParams");function w(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),c(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var _,y=(_="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return _&&e instanceof _});e.exports={isArray:c,isArrayBuffer:u,isBuffer:function(e){return null!==e&&!l(e)&&null!==e.constructor&&!l(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||i.call(e)===t||v(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&u(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:f,isPlainObject:d,isUndefined:l,isDate:p,isFile:h,isBlob:b,isFunction:v,isStream:function(e){return f(e)&&v(e.pipe)},isURLSearchParams:m,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:w,merge:function e(){var t={};function n(n,r){d(t[r])&&d(n)?t[r]=e(t[r],n):d(n)?t[r]=e({},n):c(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)w(arguments[r],n);return t},extend:function(e,t,n){return w(t,(function(t,r){e[r]=n&&"function"==typeof t?o(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var r,o,i,a={};t=t||{};do{for(o=(r=Object.getOwnPropertyNames(e)).length;o-- >0;)a[i=r[o]]||(t[i]=e[i],a[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:s,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(l(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:y,isFileList:g}},383:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(81),o=n.n(r),i=n(645),a=n.n(i),s=n(667),c=n.n(s),l=new URL(n(578),n.b),u=new URL(n(254),n.b),f=new URL(n(184),n.b),d=new URL(n(421),n.b),p=a()(o()),h=c()(l),b=c()(u),g=c()(f),v=c()(d);p.push([e.id,'/*! tailwindcss v3.1.8 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],select,textarea{--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,select:focus,textarea:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}select{color-adjust:exact;background-image:url('+h+");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple]{color-adjust:unset;background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{color-adjust:exact;--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:checked{background-image:url("+b+")}[type=radio]:checked{background-image:url("+g+")}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("+v+");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::-webkit-backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.pointer-events-none{pointer-events:none}.visible{visibility:visible}.\\!visible{visibility:visible!important}.invisible{visibility:hidden}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{bottom:0;left:0;right:0;top:0}.z-10{z-index:10}.mx-auto{margin-left:auto;margin-right:auto}.my-auto{margin-bottom:auto;margin-top:auto}.mt-3{margin-top:.75rem}.mt-2{margin-top:.5rem}.mt-5{margin-top:1.25rem}.ml-3{margin-left:.75rem}.-mb-px{margin-bottom:-1px}.ml-\\[3\\.5rem\\]{margin-left:3.5rem}.ml-\\[3rem\\]{margin-left:3rem}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-5{height:1.25rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-6,.h-\\[1\\.5rem\\]{height:1.5rem}.h-\\[1\\.25rem\\]{height:1.25rem}.h-full{height:100%}.h-\\[3rem\\]{height:3rem}.min-h-full{min-height:100%}.min-h-\\[300px\\]{min-height:300px}.w-5{width:1.25rem}.w-full{width:100%}.w-10{width:2.5rem}.w-12{width:3rem}.w-6{width:1.5rem}.w-\\[2\\.75rem\\]{width:2.75rem}.w-\\[1\\.25rem\\]{width:1.25rem}.w-1\\/2{width:50%}.max-w-lg{max-width:32rem}.flex-shrink-0,.shrink-0{flex-shrink:0}.basis-1\\/2{flex-basis:50%}.basis-3\\/4{flex-basis:75%}.translate-x-\\[1\\.25rem\\]{--tw-translate-x:1.25rem}.translate-x-0,.translate-x-\\[1\\.25rem\\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x:0px}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@-webkit-keyframes spin{to{transform:rotate(1turn)}}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.gap-7{gap:1.75rem}.space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(2rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(2rem*var(--tw-space-x-reverse))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.space-x-10>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(2.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(2.5rem*var(--tw-space-x-reverse))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.rounded-md{border-radius:.375rem}.rounded-lg{border-radius:.5rem}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-indigo-500{--tw-border-opacity:1;border-color:rgb(99 102 241/var(--tw-border-opacity))}.bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(79 70 229/var(--tw-bg-opacity))}.bg-opacity-75{--tw-bg-opacity:0.75}.fill-white{fill:#fff}.fill-gray-200{fill:#e5e7eb}.fill-teal-500{fill:#14b8a6}.p-4{padding:1rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-4{padding-bottom:1rem;padding-top:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.pt-5{padding-top:1.25rem}.pb-4{padding-bottom:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-base{font-size:1rem;line-height:1.5rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-6{line-height:1.5rem}.leading-5{line-height:1.25rem}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-indigo-600{--tw-text-opacity:1;color:rgb(79 70 229/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,fill,stroke,-webkit-text-decoration-color;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,-webkit-text-decoration-color;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\\:border-gray-300:hover{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.hover\\:bg-red-700:hover{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.hover\\:bg-indigo-700:hover{--tw-bg-opacity:1;background-color:rgb(67 56 202/var(--tw-bg-opacity))}.hover\\:text-gray-700:hover{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.focus\\:border-indigo-500:focus{--tw-border-opacity:1;border-color:rgb(99 102 241/var(--tw-border-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-indigo-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(99 102 241/var(--tw-ring-opacity))}.focus\\:ring-red-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(239 68 68/var(--tw-ring-opacity))}.focus\\:ring-gray-300:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(209 213 219/var(--tw-ring-opacity))}.focus\\:ring-red-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(220 38 38/var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:ring-white:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(255 255 255/var(--tw-ring-opacity))}.focus-visible\\:ring-opacity-75:focus-visible{--tw-ring-opacity:0.75}@media (min-width:640px){.sm\\:my-8{margin-bottom:2rem;margin-top:2rem}.sm\\:mx-0{margin-left:0;margin-right:0}.sm\\:mt-0{margin-top:0}.sm\\:ml-4{margin-left:1rem}.sm\\:mt-4{margin-top:1rem}.sm\\:ml-3{margin-left:.75rem}.sm\\:flex{display:flex}.sm\\:h-10{height:2.5rem}.sm\\:w-full{width:100%}.sm\\:w-10{width:2.5rem}.sm\\:w-auto{width:auto}.sm\\:max-w-xs{max-width:20rem}.sm\\:max-w-lg{max-width:32rem}.sm\\:flex-row-reverse{flex-direction:row-reverse}.sm\\:items-start{align-items:flex-start}.sm\\:items-center{align-items:center}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}.sm\\:text-left{text-align:left}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}",""]);const m=p},645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var c=this[s][0];null!=c&&(a[c]=!0)}for(var l=0;l<e.length;l++){var u=[].concat(e[l]);r&&a[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},667:e=>{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},81:e=>{"use strict";e.exports=function(e){return e[1]}},63:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},661:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Children:()=>p,Component:()=>o.wA,Fragment:()=>o.HY,PureComponent:()=>s,StrictMode:()=>q,Suspense:()=>g,SuspenseList:()=>w,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>L,cloneElement:()=>Y,createContext:()=>o.kr,createElement:()=>o.az,createFactory:()=>z,createPortal:()=>k,createRef:()=>o.Vf,default:()=>K,findDOMNode:()=>V,flushSync:()=>W,forwardRef:()=>f,hydrate:()=>R,isValidElement:()=>H,lazy:()=>m,memo:()=>c,render:()=>P,startTransition:()=>$,unmountComponentAtNode:()=>F,unstable_batchedUpdates:()=>J,useCallback:()=>r.I4,useContext:()=>r.qp,useDebugValue:()=>r.Qb,useDeferredValue:()=>G,useEffect:()=>r.d4,useErrorBoundary:()=>r.cO,useImperativeHandle:()=>r.aP,useInsertionEffect:()=>X,useLayoutEffect:()=>r.bt,useMemo:()=>r.Ye,useReducer:()=>r._Y,useRef:()=>r.sO,useState:()=>r.eJ,useSyncExternalStore:()=>Q,useTransition:()=>Z,version:()=>M});var r=n(396),o=n(400);function i(e,t){for(var n in t)e[n]=t[n];return e}function a(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function s(e){this.props=e}function c(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:a(this.props,e)}function r(t){return this.shouldComponentUpdate=n,(0,o.az)(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(s.prototype=new o.wA).isPureReactComponent=!0,s.prototype.shouldComponentUpdate=function(e,t){return a(this.props,e)||a(this.state,t)};var l=o.YM.__b;o.YM.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),l&&l(e)};var u="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function f(e){function t(t){var n=i({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=u,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var d=function(e,t){return null==e?null:(0,o.bR)((0,o.bR)(e).map(t))},p={map:d,forEach:d,count:function(e){return e?(0,o.bR)(e).length:0},only:function(e){var t=(0,o.bR)(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:o.bR},h=o.YM.__e;o.YM.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);h(e,t,n,r)};var b=o.YM.unmount;function g(){this.__u=0,this.t=null,this.__b=null}function v(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function m(e){var t,n,r;function i(i){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return(0,o.az)(n,i)}return i.displayName="Lazy",i.__f=!0,i}function w(){this.u=null,this.o=null}o.YM.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),b&&b(e)},(g.prototype=new o.wA).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=v(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(s):s())};n.__R=a;var s=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=function e(t,n,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)})),t.__c&&t.__c.__P===n&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},c=!0===t.__h;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},g.prototype.componentWillUnmount=function(){this.t=[]},g.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=i({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)}))),t}(this.__b,n,r.__O=r.__P)}this.__b=null}var a=t.__a&&(0,o.az)(o.HY,null,e.fallback);return a&&(a.__h=null),[(0,o.az)(o.HY,null,t.__a?null:e.children),a]};var _=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function y(e){return this.getChildContext=function(){return e.context},e.children}function x(e){var t=this,n=e.i;t.componentWillUnmount=function(){(0,o.sY)(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),(0,o.sY)((0,o.az)(y,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function k(e,t){var n=(0,o.az)(x,{__v:e,i:t});return n.containerInfo=t,n}(w.prototype=new o.wA).__a=function(e){var t=this,n=v(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),_(t,e,r)):o()};n?n(i):i()}},w.prototype.render=function(e){this.u=null,this.o=new Map;var t=(0,o.bR)(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},w.prototype.componentDidUpdate=w.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){_(e,n,t)}))};var E="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,C=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,O="undefined"!=typeof document,S=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};function P(e,t,n){return null==t.__k&&(t.textContent=""),(0,o.sY)(e,t),"function"==typeof n&&n(),e?e.__c:null}function R(e,t,n){return(0,o.ZB)(e,t),"function"==typeof n&&n(),e?e.__c:null}o.wA.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(o.wA.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var j=o.YM.event;function T(){}function A(){return this.cancelBubble}function N(){return this.defaultPrevented}o.YM.event=function(e){return j&&(e=j(e)),e.persist=T,e.isPropagationStopped=A,e.isDefaultPrevented=N,e.nativeEvent=e};var D,I={configurable:!0,get:function(){return this.class}},U=o.YM.vnode;o.YM.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){var i=-1===t.indexOf("-");for(var a in r={},n){var s=n[a];O&&"children"===a&&"noscript"===t||"value"===a&&"defaultValue"in n&&null==s||("defaultValue"===a&&"value"in n&&null==n.value?a="value":"download"===a&&!0===s?s="":/ondoubleclick/i.test(a)?a="ondblclick":/^onchange(textarea|input)/i.test(a+t)&&!S(n.type)?a="oninput":/^onfocus$/i.test(a)?a="onfocusin":/^onblur$/i.test(a)?a="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(a)?a=a.toLowerCase():i&&C.test(a)?a=a.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===s&&(s=void 0),/^oninput$/i.test(a)&&(a=a.toLowerCase(),r[a]&&(a="oninputCapture")),r[a]=s)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=(0,o.bR)(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=(0,o.bR)(n.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r,n.class!=n.className&&(I.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",I))}e.$$typeof=E,U&&U(e)};var B=o.YM.__r;o.YM.__r=function(e){B&&B(e),D=e.__c};var L={ReactCurrentDispatcher:{current:{readContext:function(e){return D.__n[e.__c].props.value}}}},M="17.0.2";function z(e){return o.az.bind(null,e)}function H(e){return!!e&&e.$$typeof===E}function Y(e){return H(e)?o.Tm.apply(null,arguments):e}function F(e){return!!e.__k&&((0,o.sY)(null,e),!0)}function V(e){return e&&(e.base||1===e.nodeType&&e)||null}var J=function(e,t){return e(t)},W=function(e,t){return e(t)},q=o.HY;function $(e){e()}function G(e){return e}function Z(){return[!1,$]}var X=r.bt;function Q(e,t){var n=(0,r.eJ)(t),o=n[0],i=n[1];return(0,r.d4)((function(){return e((function(){i((function(){return t()}))}))}),[e,t]),o}const K={useState:r.eJ,useReducer:r._Y,useEffect:r.d4,useLayoutEffect:r.bt,useInsertionEffect:r.bt,useTransition:Z,useDeferredValue:G,useSyncExternalStore:Q,startTransition:$,useRef:r.sO,useImperativeHandle:r.aP,useMemo:r.Ye,useCallback:r.I4,useContext:r.qp,useDebugValue:r.Qb,version:"17.0.2",Children:p,render:P,hydrate:R,unmountComponentAtNode:F,createPortal:k,createElement:o.az,createContext:o.kr,createFactory:z,cloneElement:Y,createRef:o.Vf,Fragment:o.HY,isValidElement:H,findDOMNode:V,Component:o.wA,PureComponent:s,memo:c,forwardRef:f,flushSync:W,unstable_batchedUpdates:J,StrictMode:o.HY,Suspense:g,SuspenseList:w,lazy:m,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:L}},400:(e,t,n)=>{"use strict";n.d(t,{HY:()=>v,Tm:()=>M,Vf:()=>g,YM:()=>o,ZB:()=>L,az:()=>h,bR:()=>C,h:()=>h,kr:()=>z,sY:()=>B,wA:()=>m});var r,o,i,a,s,c,l={},u=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function d(e,t){for(var n in t)e[n]=t[n];return e}function p(e){var t=e.parentNode;t&&t.removeChild(e)}function h(e,t,n){var o,i,a,s={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:s[a]=t[a];if(arguments.length>2&&(s.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]);return b(e,s,o,i,null)}function b(e,t,n,r,a){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++i:a};return null==a&&null!=o.vnode&&o.vnode(s),s}function g(){return{current:null}}function v(e){return e.children}function m(e,t){this.props=e,this.context=t}function w(e,t){if(null==t)return e.__?w(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?w(e):null}function _(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return _(e)}}function y(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!x.__r++||s!==o.debounceRendering)&&((s=o.debounceRendering)||setTimeout)(x)}function x(){for(var e;x.__r=a.length;)e=a.sort((function(e,t){return e.__v.__b-t.__v.__b})),a=[],e.some((function(e){var t,n,r,o,i,a;e.__d&&(i=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=d({},o)).__v=o.__v+1,T(a,o,r,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?w(o):i,o.__h),A(n,o),o.__e!=i&&_(o)))}))}function k(e,t,n,r,o,i,a,s,c,f){var d,p,h,g,m,_,y,x=r&&r.__k||u,k=x.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(g=n.__k[d]=null==(g=t[d])||"boolean"==typeof g?null:"string"==typeof g||"number"==typeof g||"bigint"==typeof g?b(null,g,null,null,g):Array.isArray(g)?b(v,{children:g},null,null,null):g.__b>0?b(g.type,g.props,g.key,null,g.__v):g)){if(g.__=n,g.__b=n.__b+1,null===(h=x[d])||h&&g.key==h.key&&g.type===h.type)x[d]=void 0;else for(p=0;p<k;p++){if((h=x[p])&&g.key==h.key&&g.type===h.type){x[p]=void 0;break}h=null}T(e,g,h=h||l,o,i,a,s,c,f),m=g.__e,(p=g.ref)&&h.ref!=p&&(y||(y=[]),h.ref&&y.push(h.ref,null,g),y.push(p,g.__c||m,g)),null!=m?(null==_&&(_=m),"function"==typeof g.type&&g.__k===h.__k?g.__d=c=E(g,c,e):c=O(e,g,h,x,m,c),"function"==typeof n.type&&(n.__d=c)):c&&h.__e==c&&c.parentNode!=e&&(c=w(h))}for(n.__e=_,d=k;d--;)null!=x[d]&&("function"==typeof n.type&&null!=x[d].__e&&x[d].__e==n.__d&&(n.__d=w(r,d+1)),I(x[d],x[d]));if(y)for(d=0;d<y.length;d++)D(y[d],y[++d],y[++d])}function E(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?E(r,t,n):O(n,r,r,o,r.__e,t));return t}function C(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){C(e,t)})):t.push(e)),t}function O(e,t,n,r,o,i){var a,s,c;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(s=i,c=0;(s=s.nextSibling)&&c<r.length;c+=2)if(s==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function S(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||f.test(t)?n:n+"px"}function P(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||S(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||S(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?j:R,i):e.removeEventListener(t,i?j:R,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function R(e){this.l[e.type+!1](o.event?o.event(e):e)}function j(e){this.l[e.type+!0](o.event?o.event(e):e)}function T(e,t,n,r,i,a,s,c,l){var u,f,p,h,b,g,w,_,y,x,E,C,O,S=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,c=t.__e=n.__e,t.__h=null,a=[c]),(u=o.__b)&&u(t);try{e:if("function"==typeof S){if(_=t.props,y=(u=S.contextType)&&r[u.__c],x=u?y?y.props.value:u.__:r,n.__c?w=(f=t.__c=n.__c).__=f.__E:("prototype"in S&&S.prototype.render?t.__c=f=new S(_,x):(t.__c=f=new m(_,x),f.constructor=S,f.render=U),y&&y.sub(f),f.props=_,f.state||(f.state={}),f.context=x,f.__n=r,p=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=S.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=d({},f.__s)),d(f.__s,S.getDerivedStateFromProps(_,f.__s))),h=f.props,b=f.state,p)null==S.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==S.getDerivedStateFromProps&&_!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(_,x),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(_,f.__s,x)||t.__v===n.__v){f.props=_,f.state=f.__s,t.__v!==n.__v&&(f.__d=!1),f.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),f.__h.length&&s.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(_,f.__s,x),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(h,b,g)}))}if(f.context=x,f.props=_,f.__v=t,f.__P=e,E=o.__r,C=0,"prototype"in S&&S.prototype.render)f.state=f.__s,f.__d=!1,E&&E(t),u=f.render(f.props,f.state,f.context);else do{f.__d=!1,E&&E(t),u=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++C<25);f.state=f.__s,null!=f.getChildContext&&(r=d(d({},r),f.getChildContext())),p||null==f.getSnapshotBeforeUpdate||(g=f.getSnapshotBeforeUpdate(h,b)),O=null!=u&&u.type===v&&null==u.key?u.props.children:u,k(e,Array.isArray(O)?O:[O],t,n,r,i,a,s,c,l),f.base=t.__e,t.__h=null,f.__h.length&&s.push(f),w&&(f.__E=f.__=null),f.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=N(n.__e,t,n,r,i,a,s,l);(u=o.diffed)&&u(t)}catch(e){t.__v=null,(l||null!=a)&&(t.__e=c,t.__h=!!l,a[a.indexOf(c)]=null),o.__e(e,t,n)}}function A(e,t){o.__c&&o.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){o.__e(e,t.__v)}}))}function N(e,t,n,o,i,a,s,c){var u,f,d,h=n.props,b=t.props,g=t.type,v=0;if("svg"===g&&(i=!0),null!=a)for(;v<a.length;v++)if((u=a[v])&&"setAttribute"in u==!!g&&(g?u.localName===g:3===u.nodeType)){e=u,a[v]=null;break}if(null==e){if(null===g)return document.createTextNode(b);e=i?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,b.is&&b),a=null,c=!1}if(null===g)h===b||c&&e.data===b||(e.data=b);else{if(a=a&&r.call(e.childNodes),f=(h=n.props||l).dangerouslySetInnerHTML,d=b.dangerouslySetInnerHTML,!c){if(null!=a)for(h={},v=0;v<e.attributes.length;v++)h[e.attributes[v].name]=e.attributes[v].value;(d||f)&&(d&&(f&&d.__html==f.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||P(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||P(e,i,t[i],n[i],r)}(e,b,h,i,c),d)t.__k=[];else if(v=t.props.children,k(e,Array.isArray(v)?v:[v],t,n,o,i&&"foreignObject"!==g,a,s,a?a[0]:n.__k&&w(n,0),c),null!=a)for(v=a.length;v--;)null!=a[v]&&p(a[v]);c||("value"in b&&void 0!==(v=b.value)&&(v!==e.value||"progress"===g&&!v||"option"===g&&v!==h.value)&&P(e,"value",v,h.value,!1),"checked"in b&&void 0!==(v=b.checked)&&v!==e.checked&&P(e,"checked",v,h.checked,!1))}return e}function D(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){o.__e(e,n)}}function I(e,t,n){var r,i;if(o.unmount&&o.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||D(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){o.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&I(r[i],t,"function"!=typeof e.type);n||null==e.__e||p(e.__e),e.__e=e.__d=void 0}function U(e,t,n){return this.constructor(e,n)}function B(e,t,n){var i,a,s;o.__&&o.__(e,t),a=(i="function"==typeof n)?null:n&&n.__k||t.__k,s=[],T(t,e=(!i&&n||t).__k=h(v,null,[e]),a||l,l,void 0!==t.ownerSVGElement,!i&&n?[n]:a?null:t.firstChild?r.call(t.childNodes):null,s,!i&&n?n:a?a.__e:t.firstChild,i),A(s,e)}function L(e,t){B(e,t,L)}function M(e,t,n){var o,i,a,s=d({},e.props);for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:s[a]=t[a];return arguments.length>2&&(s.children=arguments.length>3?r.call(arguments,2):n),b(e.type,s,o||e.key,i||e.ref,null)}function z(e,t){var n={__c:t="__cC"+c++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(y)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}r=u.slice,o={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},i=0,m.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),"function"==typeof e&&(e=e(d({},n),this.props)),e&&d(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),y(this))},m.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),y(this))},m.prototype.render=v,a=[],x.__r=0,c=0},396:(e,t,n)=>{"use strict";n.d(t,{I4:()=>E,Qb:()=>O,Ye:()=>k,_Y:()=>m,aP:()=>x,bt:()=>_,cO:()=>S,d4:()=>w,eJ:()=>v,qp:()=>C,sO:()=>y});var r,o,i,a,s=n(400),c=0,l=[],u=[],f=s.YM.__b,d=s.YM.__r,p=s.YM.diffed,h=s.YM.__c,b=s.YM.unmount;function g(e,t){s.YM.__h&&s.YM.__h(o,e,c||t),c=0;var n=o.__H||(o.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:u}),n.__[e]}function v(e){return c=1,m(N,e)}function m(e,t,n){var i=g(r++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):N(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=o,!i.__c.u)){i.__c.__H.u=!0;var a=i.__c.shouldComponentUpdate;i.__c.shouldComponentUpdate=function(e,t,n){var r=i.__c.__H.__.filter((function(e){return e.__c}));return(r.every((function(e){return!e.__N}))||!r.every((function(e){if(!e.__N)return!0;var t=e.__[0];return e.__=e.__N,e.__N=void 0,t===e.__[0]})))&&(!a||a(e,t,n))}}return i.__N||i.__}function w(e,t){var n=g(r++,3);!s.YM.__s&&A(n.__H,t)&&(n.__=e,n.o=t,o.__H.__h.push(n))}function _(e,t){var n=g(r++,4);!s.YM.__s&&A(n.__H,t)&&(n.__=e,n.o=t,o.__h.push(n))}function y(e){return c=5,k((function(){return{current:e}}),[])}function x(e,t,n){c=6,_((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function k(e,t){var n=g(r++,7);return A(n.__H,t)?(n.__V=e(),n.o=t,n.__h=e,n.__V):n.__}function E(e,t){return c=8,k((function(){return e}),t)}function C(e){var t=o.context[e.__c],n=g(r++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(o)),t.props.value):e.__}function O(e,t){s.YM.useDebugValue&&s.YM.useDebugValue(t?t(e):e)}function S(e){var t=g(r++,10),n=v();return t.__=e,o.componentDidCatch||(o.componentDidCatch=function(e){t.__&&t.__(e),n[1](e)}),[n[0],function(){n[1](void 0)}]}function P(){for(var e;e=l.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(j),e.__H.__h.forEach(T),e.__H.__h=[]}catch(t){e.__H.__h=[],s.YM.__e(t,e.__v)}}s.YM.__b=function(e){o=null,f&&f(e)},s.YM.__r=function(e){d&&d(e),r=0;var t=(o=e.__c).__H;t&&(i===o?(t.__h=[],o.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=u,e.__N=e.o=void 0}))):(t.__h.forEach(j),t.__h.forEach(T),t.__h=[])),i=o},s.YM.diffed=function(e){p&&p(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==l.push(t)&&a===s.YM.requestAnimationFrame||((a=s.YM.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),R&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);R&&(t=requestAnimationFrame(n))})(P)),t.__H.__.forEach((function(e){e.o&&(e.__H=e.o),e.__V!==u&&(e.__=e.__V),e.o=void 0,e.__V=u}))),i=o=null},s.YM.__c=function(e,t){t.some((function(e){try{e.__h.forEach(j),e.__h=e.__h.filter((function(e){return!e.__||T(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],s.YM.__e(n,e.__v)}})),h&&h(e,t)},s.YM.unmount=function(e){b&&b(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{j(e)}catch(e){t=e}})),t&&s.YM.__e(t,n.__v))};var R="function"==typeof requestAnimationFrame;function j(e){var t=o,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),o=t}function T(e){var t=o;e.__c=e.__(),o=t}function A(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function N(e,t){return"function"==typeof t?t(e):t}},184:e=>{"use strict";e.exports="data:image/svg+xml;charset=utf-8,%3Csvg viewBox=%270 0 16 16%27 fill=%27%23fff%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Ccircle cx=%278%27 cy=%278%27 r=%273%27/%3E%3C/svg%3E"},254:e=>{"use strict";e.exports="data:image/svg+xml;charset=utf-8,%3Csvg viewBox=%270 0 16 16%27 fill=%27%23fff%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z%27/%3E%3C/svg%3E"},421:e=>{"use strict";e.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 16 16%27%3E%3Cpath stroke=%27%23fff%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%272%27 d=%27M4 8h8%27/%3E%3C/svg%3E"},578:e=>{"use strict";e.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 20 20%27%3E%3Cpath stroke=%27%236b7280%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%271.5%27 d=%27m6 8 4 4 4-4%27/%3E%3C/svg%3E"}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,exports:{}};return e[r](i,i.exports,n),i.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.b=document.baseURI||self.location.href,(()=>{"use strict";var e=n(400),t=0;function r(n,r,o,i,a){var s,c,l={};for(c in r)"ref"==c?s=r[c]:l[c]=r[c];var u={type:n,props:l,key:o,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--t,__source:a,__self:i};if("function"==typeof n&&(s=n.defaultProps))for(c in s)void 0===l[c]&&(l[c]=s[c]);return e.YM.vnode&&e.YM.vnode(u),u}var o=n(383),i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function a(t){return function(n){return r(e.HY,{children:[r("style",{children:o.Z.toString()}),r(t,i({},n))]})}}const s=a((function(t){return r(e.HY,{children:r("div",{children:r("p",{children:"Hello, Superhero."})})})}));var c=n(396),l=n(661);function u(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,u),r}var f,d=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(d||{}),p=((f=p||{})[f.Unmount=0]="Unmount",f[f.Hidden=1]="Hidden",f);function h({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a}){let s=g(t,e);if(i)return b(s,n,r,a);let c=null!=o?o:0;if(2&c){let{static:e=!1,...t}=s;if(e)return b(t,n,r,a)}if(1&c){let{unmount:e=!0,...t}=s;return u(e?0:1,{0:()=>null,1:()=>b({...t,hidden:!0,style:{display:"none"}},n,r,a)})}return b(s,n,r,a)}function b(e,t={},n,r){let{as:o=n,children:i,refName:a="ref",...s}=w(e,["unmount","static"]),c=void 0!==e.ref?{[a]:e.ref}:{},u="function"==typeof i?i(t):i;s.className&&"function"==typeof s.className&&(s.className=s.className(t));let f={};if(o===l.Fragment&&Object.keys(m(s)).length>0){if(!(0,l.isValidElement)(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(s).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));return(0,l.cloneElement)(u,Object.assign({},g(u.props,m(w(s,["ref"]))),f,c))}return(0,l.createElement)(o,Object.assign({},w(s,["ref"]),o!==l.Fragment&&c,o!==l.Fragment&&f),u)}function g(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map((e=>[e,void 0]))));for(let e in n)Object.assign(t,{[e](t,...r){let o=n[e];for(let e of o){if(t.defaultPrevented)return;e(t,...r)}}});return t}function v(e){var t;return Object.assign((0,l.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function m(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function w(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}let _="undefined"!=typeof window?l.useLayoutEffect:l.useEffect,y={serverHandoffComplete:!1};var x;let k=0;function E(){return++k}let C=null!=(x=l.default.useId)?x:function(){let e=function(){let[e,t]=(0,l.useState)(y.serverHandoffComplete);return(0,l.useEffect)((()=>{!0!==e&&t(!0)}),[e]),(0,l.useEffect)((()=>{!1===y.serverHandoffComplete&&(y.serverHandoffComplete=!0)}),[]),e}(),[t,n]=l.default.useState(e?E:null);return _((()=>{null===t&&n(E())}),[t]),null!=t?""+t:void 0};var O=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(O||{});let S=function(e){let t=function(e){let t=(0,l.useRef)(e);return _((()=>{t.current=e}),[e]),t}(e);return l.default.useCallback(((...e)=>t.current(...e)),[t])},P=Symbol();function R(...e){let t=(0,l.useRef)(e);(0,l.useEffect)((()=>{t.current=e}),[e]);let n=S((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[P])))?void 0:n}let j=(0,l.createContext)(null);function T(){let e=(0,l.useContext)(j);if(null===e){let e=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,T),e}return e}let A=v((function(e,t){let{passive:n=!1,...r}=e,o=T(),i=`headlessui-label-${C()}`,a=R(t);_((()=>o.register(i)),[i,o.register]);let s={ref:a,...o.props,id:i};return n&&("onClick"in s&&delete s.onClick,"onClick"in r&&delete r.onClick),h({ourProps:s,theirProps:r,slot:o.slot||{},defaultTag:"label",name:o.name||"Label"})})),N=(0,l.createContext)(null);function D(){let e=(0,l.useContext)(N);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,D),e}return e}function I(){let[e,t]=(0,l.useState)([]);return[e.length>0?e.join(" "):void 0,(0,l.useMemo)((()=>function(e){let n=S((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),r=(0,l.useMemo)((()=>({register:n,slot:e.slot,name:e.name,props:e.props})),[n,e.slot,e.name,e.props]);return l.default.createElement(N.Provider,{value:r},e.children)}),[t])]}let U=v((function(e,t){let n=D(),r=`headlessui-description-${C()}`,o=R(t);_((()=>n.register(r)),[r,n.register]);let i=e;return h({ourProps:{ref:o,...n.props,id:r},theirProps:i,slot:n.slot||{},defaultTag:"p",name:n.name||"Description"})}));function B(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";return"string"==typeof n&&"button"===n.toLowerCase()?"button":void 0}function L(e,t){let[n,r]=(0,l.useState)((()=>B(e)));return _((()=>{r(B(e))}),[e.type,e.as]),_((()=>{n||!t.current||t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")}),[n,t]),n}var M=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(M||{});let z=v((function(e,t){let{features:n=1,...r}=e;return h({ourProps:{ref:t,"aria-hidden":2==(2&n)||void 0,style:{position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4==(4&n)&&2!=(2&n)&&{display:"none"}}},theirProps:r,slot:{},defaultTag:"div",name:"Hidden"})})),H=(0,l.createContext)(null);H.displayName="GroupContext";let Y=l.Fragment,F=v((function(e,t){let{checked:n,onChange:r,name:o,value:i,...a}=e,s=`headlessui-switch-${C()}`,c=(0,l.useContext)(H),u=(0,l.useRef)(null),f=R(u,t,null===c?null:c.setSwitch),d=S((()=>r(!n))),p=S((e=>{if(function(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}(e.currentTarget))return e.preventDefault();e.preventDefault(),d()})),b=S((e=>{e.key===O.Space?(e.preventDefault(),d()):e.key===O.Enter&&function(e){var t;let n=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(n)for(let e of n.elements)if("INPUT"===e.tagName&&"submit"===e.type||"BUTTON"===e.tagName&&"submit"===e.type||"INPUT"===e.nodeName&&"image"===e.type)return void e.click()}(e.currentTarget)})),g=S((e=>e.preventDefault())),v=(0,l.useMemo)((()=>({checked:n})),[n]),w={id:s,ref:f,role:"switch",type:L(e,u),tabIndex:0,"aria-checked":n,"aria-labelledby":null==c?void 0:c.labelledby,"aria-describedby":null==c?void 0:c.describedby,onClick:p,onKeyUp:b,onKeyPress:g};return l.default.createElement(l.default.Fragment,null,null!=o&&n&&l.default.createElement(z,{features:M.Hidden,...m({as:"input",type:"checkbox",hidden:!0,readOnly:!0,checked:n,name:o,value:i})}),h({ourProps:w,theirProps:a,slot:v,defaultTag:"button",name:"Switch"}))})),V=Object.assign(F,{Group:function(e){let[t,n]=(0,l.useState)(null),[r,o]=function(){let[e,t]=(0,l.useState)([]);return[e.length>0?e.join(" "):void 0,(0,l.useMemo)((()=>function(e){let n=S((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),r=(0,l.useMemo)((()=>({register:n,slot:e.slot,name:e.name,props:e.props})),[n,e.slot,e.name,e.props]);return l.default.createElement(j.Provider,{value:r},e.children)}),[t])]}(),[i,a]=I(),s=(0,l.useMemo)((()=>({switch:t,setSwitch:n,labelledby:r,describedby:i})),[t,n,r,i]),c=e;return l.default.createElement(a,{name:"Switch.Description"},l.default.createElement(o,{name:"Switch.Label",props:{onClick(){!t||(t.click(),t.focus({preventScroll:!0}))}}},l.default.createElement(H.Provider,{value:s},h({ourProps:{},theirProps:c,defaultTag:Y,name:"Switch.Group"}))))},Label:A,Description:U});var J=function(){return J=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},J.apply(this,arguments)};const W=function(e){var t=e.className,n=e.value,o=e.disabled,i=e.label,a=e.onChange;return r(V.Group,{children:r("div",J({class:"flex ".concat(t," ").concat(o?"pointer-events-none":"")},{children:[r(V,J({disabled:o,checked:n,onChange:a,class:"".concat(n?"bg-gray-900":"bg-gray-300","\n inline-flex h-[1.5rem] w-[2.75rem] shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75 my-auto")},{children:r("span",{class:"".concat(n?"translate-x-[1.25rem]":"translate-x-0","\n pointer-events-none inline-block h-[1.25rem] w-[1.25rem] transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out")})})),r(V.Label,{children:r("div",J({class:"flex items-center h-full text-sm leading-5 text-gray-900 cursor-pointer ml-3"},{children:i}))})]}))})};var q,$,G,Z=function(){return Z=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Z.apply(this,arguments)};!function(e){e.Default="Default",e.Ineligible="Ineligible employee base",e.Ineligible_Account_Constraints="Ineligible due to account constraints",e.Existing_Provider="Has existing benefit provider",e.Not_Offer="Does not offer benefit",e.Not_Offer_Flare="Does not offer any Flare benefits"}(q||(q={})),function(e){e.Off="Off",e.Injected="Injected",e.Discrete="Discrete"}($||($={})),function(e){e.Partner="Partner",e.Default="Default",e.Account="Account"}(G||(G={}));var X,Q=Object.entries(q).map((function(e){return{name:e[0],value:e[1]}})),K={ownership:"Default",wellbeing:{isEnabled:!0},flareApp:{isEnabled:!0},salaryPackagingCars:{isEnabled:!0}},ee={ownership:"Default",products:[]},te=n(669),ne=n.n(te),re=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},oe=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},ie=function(){function e(){}return e.initClient=function(e,t){this.axiosInstance=ne().create({baseURL:"".concat(e,"/admin"),headers:{Authorization:"Bearer ".concat(t)}})},e.getConfigUrl=function(e,t){return t?"/partners/".concat(e,"/accounts/").concat(t,"/config"):"/partners/".concat(e,"/config")},e.getConfig=function(e,t){return re(this,void 0,void 0,(function(){return oe(this,(function(n){switch(n.label){case 0:return[4,this.axiosInstance.get(this.getConfigUrl(e,t),{})];case 1:return[2,n.sent().data]}}))}))},e.upsertImplementationStyle=function(e,t){return re(this,void 0,void 0,(function(){return oe(this,(function(n){switch(n.label){case 0:return[4,this.axiosInstance.put("".concat(this.getConfigUrl(e),"/style"),{implementationStyle:t})];case 1:return n.sent(),[2]}}))}))},e.upsertOffers=function(e,t,n){return re(this,void 0,void 0,(function(){return oe(this,(function(r){switch(r.label){case 0:return[4,this.axiosInstance.put("".concat(this.getConfigUrl(e,n),"/offers"),{offerEnablements:t})];case 1:return r.sent(),[2]}}))}))},e.deleteOffers=function(e,t){return re(this,void 0,void 0,(function(){return oe(this,(function(n){switch(n.label){case 0:return[4,this.axiosInstance.delete("".concat(this.getConfigUrl(e,t),"/offers"))];case 1:return n.sent(),[2]}}))}))},e.upsertInjectedStyle=function(e,t,n){return re(this,void 0,void 0,(function(){return oe(this,(function(r){switch(r.label){case 0:return[4,this.axiosInstance.put("".concat(this.getConfigUrl(e,n),"/injected"),t)];case 1:return r.sent(),[2]}}))}))},e.deleteInjectedStyle=function(e,t){return re(this,void 0,void 0,(function(){return oe(this,(function(n){switch(n.label){case 0:return[4,this.axiosInstance.delete("".concat(this.getConfigUrl(e,t),"/injected"))];case 1:return n.sent(),[2]}}))}))},e}();!function(e){e.Default="Default",e.Ineligible="Ineligible employee base",e.Ineligible_Account_Constraints="Ineligible due to account constraints",e.Existing_Provider="Has existing benefit provider",e.Not_Offer="Does not offer benefit",e.Not_Offer_Flare="Does not offer any Flare benefits",e.DEPRECATED_Existing_Provider="Existing novated lease provider",e.DEPRECATED_Not_Offer="Does not offer a novated lease benefit",e.DEPRECATED_Not_Offer_Flare="Does not wish to offer any Flare premium benefits"}(X||(X={}));var ae=function(e){switch(e){case q.Ineligible:return X.Ineligible;case q.Ineligible_Account_Constraints:return X.Ineligible_Account_Constraints;case q.Existing_Provider:return X.Existing_Provider;case q.Not_Offer:return X.Not_Offer;case q.Not_Offer_Flare:return X.Not_Offer_Flare;case q.Default:default:return X.Default}},se=function(e){switch(e){case X.Ineligible:return q.Ineligible;case X.Ineligible_Account_Constraints:return q.Ineligible_Account_Constraints;case X.Existing_Provider:case X.DEPRECATED_Existing_Provider:return q.Existing_Provider;case X.Not_Offer:case X.DEPRECATED_Not_Offer:return q.Not_Offer;case X.Not_Offer_Flare:case X.DEPRECATED_Not_Offer_Flare:return q.Not_Offer_Flare;case X.Default:default:return q.Default}},ce=function(e){return{ownership:e.ownership,wellbeing:e.wellbeing.isEnabled?{isEnabled:!0}:{isEnabled:!1,disabledReason:ae(e.wellbeing.disabledReason)},flareApp:e.flareApp.isEnabled?{isEnabled:!0}:{isEnabled:!1,disabledReason:ae(e.flareApp.disabledReason)},salaryPackagingCars:e.salaryPackagingCars.isEnabled?{isEnabled:!0}:{isEnabled:!1,disabledReason:ae(e.salaryPackagingCars.disabledReason)}}},le=function(e){return{ownership:e.ownership,wellbeing:e.wellbeing.isEnabled?{isEnabled:!0}:{isEnabled:!1,disabledReason:se(e.wellbeing.disabledReason)},flareApp:e.flareApp.isEnabled?{isEnabled:!0}:{isEnabled:!1,disabledReason:se(e.flareApp.disabledReason)},salaryPackagingCars:e.salaryPackagingCars.isEnabled?{isEnabled:!0}:{isEnabled:!1,disabledReason:se(e.salaryPackagingCars.disabledReason)}}},ue=function(e){return{ownership:e.ownership,products:e.products.map((function(e){return e.isEnabled?{tag:e.name,isEnabled:!0}:{tag:e.name,isEnabled:!1,disabledReason:ae(e.disabledReason)}}))}},fe=function(e){return{ownership:e.ownership,products:e.products.map((function(e){return e.isEnabled?{name:e.tag,isEnabled:!0}:{name:e.tag,isEnabled:!1,disabledReason:se(e.disabledReason)}}))}},de=function(){return de=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},de.apply(this,arguments)},pe=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},he=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},be=function(e,t){var n=(0,c.eJ)(!0),r=n[0],o=n[1],i=(0,c.eJ)(""),a=i[0],s=i[1],l=(0,c.eJ)(),u=l[0],f=l[1],d=(0,c.I4)((function(){return pe(void 0,void 0,void 0,(function(){return he(this,(function(n){switch(n.label){case 0:return o(!0),s(""),[4,ie.getConfig(e,t).then(me).then(f).catch((function(){return s("Oops, there was an error. Please refresh this page")})).finally((function(){return o(!1)}))];case 1:return n.sent(),[2]}}))}))}),[e,t]),p=(0,c.I4)((function(t){return pe(void 0,void 0,void 0,(function(){return he(this,(function(n){switch(n.label){case 0:return s(""),[4,ie.upsertImplementationStyle(e,$[t]).then(d).catch((function(e){var t;return s(null!==(t=e.response.data)&&void 0!==t?t:"Unable to save config")}))];case 1:return n.sent(),[2]}}))}))}),[e,d]),h=(0,c.I4)((function(n){return pe(void 0,void 0,void 0,(function(){return he(this,(function(r){switch(r.label){case 0:return s(""),[4,ie.upsertOffers(e,n.map(ve),t).then(d).catch((function(e){var t;return s(null!==(t=e.response.data)&&void 0!==t?t:"Unable to save config")}))];case 1:return r.sent(),[2]}}))}))}),[e,t,d]),b=(0,c.I4)((function(n){return pe(void 0,void 0,void 0,(function(){return he(this,(function(r){switch(r.label){case 0:return s(""),[4,ie.upsertInjectedStyle(e,n,t).then(d).catch((function(e){var t;return s(null!==(t=e.response.data)&&void 0!==t?t:"Unable to save config")}))];case 1:return r.sent(),[2]}}))}))}),[e,t,d]),g=(0,c.I4)((function(){return pe(void 0,void 0,void 0,(function(){return he(this,(function(n){switch(n.label){case 0:return s(""),[4,ie.deleteOffers(e,t).then(d).catch((function(){return s("Unable to delete config")}))];case 1:return n.sent(),[2]}}))}))}),[t,d,e]),v=(0,c.I4)((function(){return pe(void 0,void 0,void 0,(function(){return he(this,(function(n){switch(n.label){case 0:return s(""),[4,ie.deleteInjectedStyle(e,t).then(d).catch((function(){return s("Unable to delete config")}))];case 1:return n.sent(),[2]}}))}))}),[t,d,e]);return{isLoading:r,error:a,config:u,fetchConfig:d,upsertImplementationStyle:p,upsertOffers:h,deleteOffers:g,upsertInjectedStyle:b,deleteInjectedStyle:v}},ge=function(e){return de(de({},e),{disabledReason:e.disabledReason?se(e.disabledReason):q.Default})},ve=function(e){return de(de({},e),{disabledReason:e.disabledReason?ae(e.disabledReason):X.Default})},me=function(e){return{implementationStyle:{value:(t=e.implementationStyle.value,$[t]),ownership:G[e.implementationStyle.ownership]},injectedStyleEnablement:{value:e.injectedStyleEnablement.value,ownership:G[e.injectedStyleEnablement.ownership]},offerEnablements:{ownership:G[e.offerEnablements.ownership],value:e.offerEnablements.value.map(ge)}};var t},we=function(){return we=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},we.apply(this,arguments)};const _e=function(e){return r("svg",we({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"lg"===e.size?"h-10 w-10":"h-5 w-5"},{children:[r("path",{d:"M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM1.99743 8C1.99743 11.3151 4.68487 14.0026 8 14.0026C11.3151 14.0026 14.0026 11.3151 14.0026 8C14.0026 4.68487 11.3151 1.99743 8 1.99743C4.68487 1.99743 1.99743 4.68487 1.99743 8Z",class:"light"===e.theme?"fill-white":"fill-gray-200","fill-opacity":"light"===e.theme?"0.3":"1"}),r("path",{d:"M8 1C8 0.447715 8.44943 -0.00643769 8.99741 0.0624193C9.70527 0.151368 10.3996 0.334798 11.0615 0.608964C12.0321 1.011 12.914 1.60028 13.6569 2.34315C14.3997 3.08602 14.989 3.96793 15.391 4.93853C15.6652 5.60043 15.8486 6.29473 15.9376 7.0026C16.0064 7.55057 15.5523 8 15 8C14.4477 8 14.0085 7.54925 13.9169 7.00462C13.842 6.55939 13.7169 6.12298 13.5433 5.7039C13.2417 4.97595 12.7998 4.31451 12.2426 3.75736C11.6855 3.20021 11.0241 2.75825 10.2961 2.45672C9.87702 2.28313 9.44061 2.15804 8.99538 2.08314C8.45075 1.99152 8 1.55228 8 1Z",class:"light"===e.theme?"fill-white":"fill-teal-500"})]}))},ye=l.forwardRef((function({title:e,titleId:t,...n},r){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?l.createElement("title",{id:t},e):null,l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"}))}));var xe,ke=n(608),Ee=n.n(ke),Ce=n(783),Oe=n.n(Ce),Se=function(){return Se=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Se.apply(this,arguments)};!function(e){e[e.Pencil=0]="Pencil",e[e.Trash=1]="Trash",e[e.ExclamationTriangle=2]="ExclamationTriangle"}(xe||(xe={}));var Pe=function(e){switch(e.iconType){case xe.Pencil:return r(Ee(),Se({},e));case xe.Trash:return r(Oe(),Se({},e));case xe.ExclamationTriangle:return r(ye,Se({},e))}},Re=function(){return Re=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Re.apply(this,arguments)},je=function(e){var t=(0,c.eJ)(!1),n=t[0],o=t[1],i=e.class,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["class"]);return r("div",Re({class:"".concat(e.hidden?"hidden":"")},{children:r("button",Re({type:"button"},a,{class:i,onClick:e.onClickPromise?function(){return t=void 0,r=void 0,a=function(){return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,(function(t){switch(t.label){case 0:if(!e.onClickPromise||n)return[3,6];o(!0),t.label=1;case 1:return t.trys.push([1,4,,5]),e.onClickPromise?[4,e.onClickPromise()]:[3,3];case 2:t.sent(),t.label=3;case 3:return[3,5];case 4:return t.sent(),[3,5];case 5:o(!1),t.label=6;case 6:return[2]}}))},new((i=void 0)||(i=Promise))((function(e,n){function o(e){try{c(a.next(e))}catch(e){n(e)}}function s(e){try{c(a.throw(e))}catch(e){n(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(o,s)}c((a=a.apply(t,r||[])).next())}));var t,r,i,a}:e.onClick},{children:[r("div",Re({class:"relative ".concat(n?"invisible":"")},{children:e.children})),n&&r("div",Re({class:"absolute animate-spin"},{children:r(_e,{theme:"light"})}))]}))}))},Te=function(e){return r(je,Re({},e,{children:[null!=e.iconType&&r(Pe,{iconType:e.iconType,class:"h-5 w-5"}),e.children]}))};const Ae=je;var Ne=function(){return Ne=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ne.apply(this,arguments)},De="inline-flex justify-center rounded-md border border-transparent py-2 px-4 shadow-sm focus:outline-none focus:ring-indigo-500 focus:ring-2 focus:ring-offset-2 text-sm font-medium text-white";const Ie=function(t){var n=t.canEdit,o=t.onEdit,i=t.onSave,a=t.onCancel,s=t.canDelete,l=t.onDelete,u=t.isEditMode,f=(0,c.eJ)(null!=u&&u),d=f[0],p=f[1];return(0,c.d4)((function(){p(!!u)}),[u]),r("div",Ne({class:"flex flex-row space-x-2"},{children:[d&&r(e.HY,{children:[r(Ae,Ne({class:"".concat(De," bg-indigo-600 hover:bg-indigo-700"),onClickPromise:i},{children:"Save"})),r(Ae,Ne({className:"".concat(De," border-gray-300 bg-white text-gray-700 hover:bg-gray-50 focus:ring-gray-300"),onClick:function(){p(!1),a()}},{children:"Cancel"}))]}),!d&&r(e.HY,{children:[n&&r(Te,{class:"".concat(De," bg-indigo-600 hover:bg-indigo-700"),iconType:xe.Pencil,onClick:function(){p(!0),o()}}),s&&r(Te,{class:"".concat(De," bg-red-600 hover:bg-red-700 focus:ring-red-600"),onClick:l,iconType:xe.Trash})]})]}))};var Ue=function(){return Ue=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ue.apply(this,arguments)};const Be=function(e){var t,n;return r("div",Ue({class:"relative z-10","aria-labelledby":"modal-title",role:"dialog","aria-modal":"true"},{children:[r("div",{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"}),r("div",Ue({class:"fixed inset-0 z-10 overflow-y-auto"},{children:r("div",Ue({class:"flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"},{children:r("div",Ue({class:"relative transform overflow-hidden rounded-lg bg-white px-4 pt-5 pb-4 text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg sm:p-6"},{children:[r("div",Ue({class:"sm:flex sm:items-start"},{children:[r("div",Ue({class:"mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full bg-red-100 sm:mx-0 sm:h-10 sm:w-10"},{children:r(Pe,{iconType:xe.ExclamationTriangle,className:"h-6 w-6 text-red-600"})})),r("div",Ue({class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"},{children:[r("h3",Ue({class:"text-lg font-medium leading-6 text-gray-900",id:"modal-title"},{children:e.headingText})),r("div",Ue({class:"mt-2"},{children:r("p",Ue({class:"text-sm text-gray-500"},{children:e.bodyTest}))}))]}))]})),r("div",Ue({class:"mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"},{children:[r(Ae,Ue({class:"inline-flex w-full justify-center rounded-md border border-transparent bg-red-600 px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 sm:ml-3 sm:w-auto sm:text-sm",onClickPromise:e.confirm.handler},{children:null!==(t=e.confirm.text)&&void 0!==t?t:"Confirm"})),r(Ae,Ue({class:"mt-3 inline-flex w-full justify-center rounded-md border border-gray-300 bg-white px-4 py-2 text-base font-medium text-gray-700 shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 sm:mt-0 sm:w-auto sm:text-sm",onClick:e.cancel.handler},{children:null!==(n=e.cancel.text)&&void 0!==n?n:"Cancel"}))]}))]}))}))}))]}))};var Le,Me={canView:!1,canEdit:!1,canDelete:!1},ze={partnerId:"",accountId:void 0,access:{partnerStyle:Me,benefitsOnboarding:Me,webBenefits:Me,benefitsPlan:Me}},He=(0,e.kr)(ze),Ye=n(63),Fe=n.n(Ye),Ve=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},Je=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};!function(e){e[e.View=0]="View",e[e.Edit=1]="Edit"}(Le||(Le={}));var We=function(e,t,n,r){var o=(0,c.qp)(He).accountId,i=(0,c.eJ)(t.value),a=i[0],s=i[1],l=(0,c.eJ)(Le.View),u=l[0],f=l[1],d=(0,c.eJ)(!1),p=d[0],h=d[1],b=(0,c.Ye)((function(){return u===Le.Edit?"(*)":t.ownership===G.Default?"(Default)":o&&t.ownership===G.Partner?"(Inherited)":""}),[o,t.ownership,u]),g=(0,c.Ye)((function(){return o?t.ownership===G.Account:t.ownership===G.Partner}),[o,t.ownership]),v=(0,c.Ye)((function(){return e.canEdit}),[e.canEdit]),m=(0,c.Ye)((function(){return e.canDelete&&g}),[e.canDelete,g]),w=(0,c.I4)((function(){return Ve(void 0,void 0,void 0,(function(){return Je(this,(function(e){return f(Le.View),s(t.value),h(!1),[2]}))}))}),[t,s]),_=(0,c.I4)((function(e){s(e)}),[s]),y=(0,c.I4)((function(){return Ve(void 0,void 0,void 0,(function(){return Je(this,(function(e){switch(e.label){case 0:return!g||g&&!Fe()(t.value,a)?[4,n(a)]:[3,2];case 1:e.sent(),e.label=2;case 2:return f(Le.View),[2]}}))}))}),[t,g,n,a]),x=(0,c.I4)((function(){return Ve(void 0,void 0,void 0,(function(){return Je(this,(function(e){switch(e.label){case 0:return f(Le.View),[4,null==r?void 0:r()];case 1:return e.sent(),[2]}}))}))}),[r]);return{titleSuffix:b,mode:u,confirmingDelete:p,canView:e.canView,canEdit:v,canDelete:m,config:a,handleEditButtonClick:function(){f(Le.Edit)},handleCancelButtonClick:w,handleDeleteButtonClick:function(){h(!0)},handleChange:_,handleSaveButtonClick:y,handleDeleteConfirmButtonClick:x}},qe=function(){return qe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},qe.apply(this,arguments)};const $e=function(e){var t=e.value,n=e.disabled,o=e.options,i=e.onChange;return r("select",qe({readOnly:n,disabled:n,autocomplete:"off",value:o.findIndex((function(e){return e.value===t})),className:"max-w-lg focus:ring-indigo-500 focus:border-indigo-500 w-full shadow-sm sm:max-w-xs border-gray-300 rounded-md",onChange:function(e){var t;i(null===(t=o.find((function(t,n){return n.toString()===e.currentTarget.value})))||void 0===t?void 0:t.value)}},{children:[o.map((function(e,t){return r("option",qe({value:t.toString()},{children:e.label}),e.label)})),";"]}))};var Ge=function(){return Ge=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ge.apply(this,arguments)},Ze=Object.values($).map((function(e){return{label:e,value:e}})),Xe=(0,e.kr)({}),Qe=function(t){var n=(0,c.qp)(He).access.partnerStyle,o=(0,c.qp)(Xe),i=o.partnerStyle,a=o.update,s=We(n,t.config,t.onUpsert),l=s.titleSuffix,u=s.mode,f=s.canEdit,d=s.config,p=s.handleEditButtonClick,h=s.handleCancelButtonClick,b=s.handleChange,g=s.handleSaveButtonClick;return(0,c.d4)((function(){var e={mode:u,value:d,ownership:t.config.ownership};Fe()(i,e)||a({partnerStyle:e})}),[d,u,i,t,a]),r(e.HY,{children:r("div",{children:[r("div",Ge({class:"flex"},{children:[r("div",Ge({class:"basis-1/2"},{children:r("h3",Ge({class:"text-lg font-semibold text-gray-900"},{children:"Network Partner Implementation Style"}))})),r("div",Ge({class:"basis-3/4"},{children:r(Ie,{canEdit:f,onEdit:p,onSave:g,onCancel:h,isEditMode:u==Le.Edit})}))]})),r("div",Ge({class:"flex flex-col"},{children:[r("label",Ge({className:"text-sm font-semibold"},{children:["Benefits in onboarding ",l]})),r($e,{disabled:u===Le.View,value:d,options:Ze,onChange:b})]}))]})})},Ke=function(e){var t=(0,c.qp)(He).access.benefitsOnboarding,n=(0,c.qp)(Xe).partnerStyle,o=We(t,e.config,e.onUpsert,e.onDelete),i=o.titleSuffix,a=o.mode,s=o.confirmingDelete,l=o.canEdit,u=o.canDelete,f=o.config,d=o.handleEditButtonClick,p=o.handleCancelButtonClick,h=o.handleDeleteButtonClick,b=o.handleChange,g=o.handleSaveButtonClick,v=o.handleDeleteConfirmButtonClick,m=(0,c.Ye)((function(){return(null==n?void 0:n.value)!==$.Injected}),[null==n?void 0:n.value]),w=(0,c.Ye)((function(){return l&&(null==n?void 0:n.ownership)===G.Partner&&(null==n?void 0:n.mode)===Le.View}),[l,null==n?void 0:n.mode,null==n?void 0:n.ownership]);return r("div",Ge({className:m?"hidden":""},{children:[s&&r(Be,{bodyTest:"Are you sure you want to reset the current injected workflow settings? This action cannot be undone.",headingText:"Reset Injected Workflow Settings",cancel:{handler:p},confirm:{text:"Reset",handler:v}}),r("div",Ge({class:"flex"},{children:[r("div",Ge({class:"basis-1/2"},{children:r("h3",Ge({class:"ml-[3rem] text-lg font-semibold text-gray-900"},{children:"Injected Workflow Settings ".concat(i)}))})),r("div",Ge({class:"basis-3/4"},{children:r(Ie,{canEdit:w,onEdit:d,canDelete:u,onSave:g,onCancel:p,onDelete:h,isEditMode:a==Le.Edit})}))]})),r("div",Ge({class:"flex flex-col"},{children:r(W,{className:"ml-[3rem] flex items-center h-[3rem]",label:"Benefits step in onboarding",disabled:a===Le.View,value:f.isEnabled,onChange:function(e){return b({isEnabled:e})}})}))]}))};const et=function(){var e=(0,c.qp)(He),t=e.partnerId,n=e.accountId,o=(0,c.eJ)(),i=o[0],a=o[1],s=be(t,n),l=s.isLoading,u=s.error,f=s.config,d=s.fetchConfig,p=s.upsertImplementationStyle,h=s.upsertInjectedStyle,b=s.deleteInjectedStyle;return(0,c.d4)((function(){d()}),[d]),l?r("div",Ge({class:"flex justify-center items-center min-h-[300px]"},{children:r("span",Ge({class:"animate-spin"},{children:r(_e,{size:"lg"})}))})):u?r("h1",Ge({class:"text-red-500"},{children:u})):r(Xe.Provider,Ge({value:Ge(Ge({},i),{update:a})},{children:f&&r("div",Ge({className:"flex flex-col gap-7"},{children:[r(Qe,{config:f.implementationStyle,onUpsert:p}),r(Ke,{config:f.injectedStyleEnablement,onUpsert:h,onDelete:b})]}))}))};var tt=function(){return tt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},tt.apply(this,arguments)};const nt=function(e){var t=e.className,n=e.editable,o=e.item,i=e.onChange;return r("div",tt({class:"flex flex-row items-center justify-start space-x-10 ".concat(t)},{children:[r(W,{label:o.name,disabled:!n,value:o.isEnabled,onChange:function(e){return i(e?{isEnabled:!0}:{isEnabled:!1,disabledReason:q.Default})}}),!o.isEnabled&&r("div",tt({class:"flex flex-row items-center space-x-2 w-1/2 text-sm"},{children:[r("label",tt({for:"reason"},{children:"Reason"})),r("select",tt({readOnly:!n,disabled:!n,autocomplete:"off",value:o.disabledReason,class:"max-w-lg focus:ring-indigo-500 focus:border-indigo-500 w-full shadow-sm sm:max-w-xs border-gray-300 rounded-md",onChange:function(e){i({isEnabled:!1,disabledReason:e.currentTarget.value})}},{children:[Q.map((function(e){return r("option",{children:e.value},e.name)})),";"]}))]}))]}))};var rt=function(){return rt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},rt.apply(this,arguments)},ot=function(e){var t=(0,c.qp)(He).access.benefitsOnboarding,n=(0,c.I4)((function(t){return e.onUpsert(at(t))}),[e]),o=We(t,{value:it(e.config.value),ownership:e.config.ownership},n,e.onDelete),i=o.titleSuffix,a=o.mode,s=o.confirmingDelete,l=o.canEdit,u=o.canDelete,f=o.config,d=o.handleEditButtonClick,p=o.handleCancelButtonClick,h=o.handleDeleteButtonClick,b=o.handleChange,g=o.handleSaveButtonClick,v=o.handleDeleteConfirmButtonClick;return r("div",{children:[s&&r(Be,{bodyTest:"Are you sure you want to reset the current benefits plan in onboarding settings? This action cannot be undone.",headingText:"Reset Benefits Plan in Onboarding Settings",cancel:{handler:p},confirm:{text:"Reset",handler:v}}),r("div",rt({class:"flex"},{children:[r("div",rt({class:"basis-1/2"},{children:r("h3",rt({class:"text-lg font-semibold text-gray-900"},{children:"Benefits Plan in Onboarding Settings ".concat(i)}))})),r("div",rt({class:"basis-3/4"},{children:r(Ie,{canEdit:l,onEdit:d,canDelete:u,onSave:g,onCancel:p,onDelete:h,isEditMode:a==Le.Edit})}))]})),r("div",rt({class:"flex flex-col"},{children:Object.entries(f).map((function(e){var t=e[0],n=e[1];return r(nt,{className:"flex items-center h-[3rem]",editable:a===Le.Edit,item:rt(rt({},n),{name:"".concat(t," Screen")}),onChange:function(e){var n;b(rt(rt({},f),((n={})[t]=e,n)))}},t)}))}))]})},it=function(e){return e.reduce((function(e,t){var n;return rt(rt({},e),((n={})[t.offerName]={isEnabled:t.isEnabled,disabledReason:t.disabledReason},n))}),{})},at=function(e){return Object.entries(e).map((function(e){var t=e[0],n=e[1];return{isEnabled:n.isEnabled,disabledReason:n.disabledReason,offerName:t}}))};const st=function(){var t=(0,c.qp)(He),n=t.partnerId,o=t.accountId,i=be(n,o),a=i.isLoading,s=i.error,l=i.config,u=i.fetchConfig,f=i.upsertOffers,d=i.deleteOffers;return(0,c.d4)((function(){u()}),[u]),a?r("div",rt({class:"flex justify-center items-center min-h-[300px]"},{children:r("span",rt({class:"animate-spin"},{children:r(_e,{size:"lg"})}))})):s?r("h1",rt({class:"text-red-500"},{children:s})):r(e.HY,{children:l&&r("div",rt({className:"flex flex-col gap-7"},{children:r(ot,{config:l.offerEnablements,onUpsert:f,onDelete:d})}))})};var ct,lt=function(){return lt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},lt.apply(this,arguments)},ut=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},ft=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},dt=function(){if(ct)return ct;throw"Axios client has not been initialized yet."},pt=function(e,t){return ut(void 0,void 0,void 0,(function(){var n;return ft(this,(function(r){switch(r.label){case 0:return n="/config?partnerId=".concat(e),t&&(n+="&accountId=".concat(t)),[4,dt().get(n)];case 1:return[2,r.sent().data]}}))}))},ht=function(e,t,n){return ut(void 0,void 0,void 0,(function(){return ft(this,(function(r){switch(r.label){case 0:return[4,dt().put("config",lt(lt({},t),{partnerId:e,accountId:n||""}))];case 1:return r.sent(),[2]}}))}))},bt=function(e,t){return ut(void 0,void 0,void 0,(function(){var n;return ft(this,(function(r){switch(r.label){case 0:return n="/config?partnerId=".concat(e),t&&(n+="&accountId=".concat(t)),[4,dt().delete(n)];case 1:return r.sent(),[2]}}))}))},gt=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},vt=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},mt=function(){return mt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},mt.apply(this,arguments)},wt=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},_t=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};const yt=function(t){var n=t.partnerId,o=t.accountId,i=(0,c.eJ)(!1),a=i[0],s=i[1],l=(0,c.eJ)(!1),u=l[0],f=l[1],d=(0,c.qp)(He).access.webBenefits,p=function(e,t){var n=(0,c.eJ)(!0),r=n[0],o=n[1],i=(0,c.eJ)(""),a=i[0],s=i[1],l=(0,c.eJ)(K),u=l[0],f=l[1],d=(0,c.I4)((function(){return gt(void 0,void 0,void 0,(function(){return vt(this,(function(n){switch(n.label){case 0:return o(!0),s(""),[4,pt(e,t).then(le).then(f).catch((function(){return s("Oops, there was an error. Please refresh this page")})).finally((function(){return o(!1)}))];case 1:return n.sent(),[2]}}))}))}),[e,t]),p=(0,c.I4)((function(n){return gt(void 0,void 0,void 0,(function(){return vt(this,(function(r){switch(r.label){case 0:return s(""),[4,ht(e,ce(n),t).then(d).catch((function(){return s("Unable to save config")}))];case 1:return r.sent(),[2]}}))}))}),[e,t,d]),h=(0,c.I4)((function(){return gt(void 0,void 0,void 0,(function(){return vt(this,(function(n){switch(n.label){case 0:return s(""),[4,bt(e,t).then(d).catch((function(){return s("Unable to delete config")}))];case 1:return n.sent(),[2]}}))}))}),[t,d,e]);return{isLoading:r,error:a,config:u,fetchConfig:d,updateConfig:p,deleteConfig:h}}(n,o),h=p.isLoading,b=p.error,g=p.config,v=p.fetchConfig,m=p.updateConfig,w=p.deleteConfig,_=(0,c.eJ)(g),y=_[0],x=_[1];(0,c.d4)((function(){x(g)}),[g]);var k=(0,c.I4)((function(){return wt(void 0,void 0,void 0,(function(){return _t(this,(function(e){switch(e.label){case 0:return[4,m(y)];case 1:return e.sent(),s(!1),[2]}}))}))}),[y,m]),E=(0,c.I4)((function(){s(!1),x(g)}),[g]),C=(0,c.I4)((function(){return wt(void 0,void 0,void 0,(function(){return _t(this,(function(e){switch(e.label){case 0:return[4,w()];case 1:return e.sent(),f(!1),[2]}}))}))}),[w]);return(0,c.d4)((function(){v()}),[v]),h?r("div",mt({class:"flex justify-center items-center min-h-[300px]"},{children:r("span",mt({class:"animate-spin"},{children:r(_e,{size:"lg"})}))})):b?r("h1",mt({class:"text-red-500"},{children:b})):r(e.HY,{children:[u&&r(Be,{bodyTest:"Are you sure you want to reset the current benefits configuration? This action cannot be undone.",headingText:"Reset Benefits Configuration",cancel:{handler:function(){return f(!1)}},confirm:{text:"Reset",handler:C}}),r("div",mt({class:"flex"},{children:[r("div",mt({class:"basis-1/2"},{children:r("h3",mt({class:"text-lg font-semibold text-gray-900"},{children:"Flare Benefits Settings".concat(a?" (*)":"Specific"==g.ownership?"":" (".concat(g.ownership,")"))}))})),r("div",mt({class:"basis-3/4"},{children:r(Ie,{canEdit:d.canEdit,onEdit:function(){return s(!0)},canDelete:d.canDelete&&"Specific"===g.ownership,onSave:k,onCancel:E,onDelete:function(){return f(!0)}})}))]})),r("div",{children:[r(nt,{className:"h-[3rem]",editable:a,item:mt(mt({},y.wellbeing),{name:"Wellbeing Hub"}),onChange:function(e){return x(mt(mt({},y),{wellbeing:e}))}}),r(nt,{className:"h-[3rem]",editable:a,item:mt(mt({},y.flareApp),{name:"Flare App"}),onChange:function(e){return x(mt(mt({},y),{flareApp:e}))}})]})]})};var xt,kt=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},Et=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},Ct=function(){if(xt)return xt;throw"Axios client has not been initialized yet."},Ot=function(e,t){return kt(void 0,void 0,void 0,(function(){var n;return Et(this,(function(r){switch(r.label){case 0:return n="/partners/".concat(e,"/config"),t&&(n="/partners/".concat(e,"/accounts/").concat(t,"/config")),[4,Ct().get(n)];case 1:return[2,r.sent().data]}}))}))},St=function(e,t,n){return kt(void 0,void 0,void 0,(function(){var r;return Et(this,(function(o){switch(o.label){case 0:return r="/partners/".concat(e,"/config"),n&&(r="/partners/".concat(e,"/accounts/").concat(n,"/config")),[4,Ct().put(r,t)];case 1:return o.sent(),[2]}}))}))},Pt=function(e,t){return kt(void 0,void 0,void 0,(function(){var n;return Et(this,(function(r){switch(r.label){case 0:return n="/partners/".concat(e,"/config"),t&&(n="/partners/".concat(e,"/accounts/").concat(t,"/config")),[4,Ct().delete(n)];case 1:return r.sent(),[2]}}))}))},Rt=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},jt=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},Tt=function(){return Tt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Tt.apply(this,arguments)},At=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},Nt=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};const Dt=function(t){var n=t.partnerId,o=t.accountId,i=(0,c.eJ)(!1),a=i[0],s=i[1],l=(0,c.eJ)(!1),u=l[0],f=l[1],d=(0,c.qp)(He).access.benefitsPlan,p=function(e,t){var n=(0,c.eJ)(!0),r=n[0],o=n[1],i=(0,c.eJ)(""),a=i[0],s=i[1],l=(0,c.eJ)(ee),u=l[0],f=l[1],d=(0,c.I4)((function(){return Rt(void 0,void 0,void 0,(function(){return jt(this,(function(n){switch(n.label){case 0:return o(!0),s(""),[4,Ot(e,t).then(fe).then(f).catch((function(){return s("Oops, there was an error. Please refresh this page")})).finally((function(){return o(!1)}))];case 1:return n.sent(),[2]}}))}))}),[e,t]),p=(0,c.I4)((function(n){return Rt(void 0,void 0,void 0,(function(){return jt(this,(function(r){switch(r.label){case 0:return s(""),[4,St(e,ue(n),t).then(d).catch((function(){return s("Unable to save config")}))];case 1:return r.sent(),[2]}}))}))}),[e,t,d]),h=(0,c.I4)((function(){return Rt(void 0,void 0,void 0,(function(){return jt(this,(function(n){switch(n.label){case 0:return s(""),[4,Pt(e,t).then(d).catch((function(){return s("Unable to delete config")}))];case 1:return n.sent(),[2]}}))}))}),[t,d,e]);return{isLoading:r,error:a,config:u,fetchConfig:d,updateConfig:p,deleteConfig:h}}(n,o),h=p.isLoading,b=p.error,g=p.config,v=p.fetchConfig,m=p.updateConfig,w=p.deleteConfig,_=(0,c.eJ)(g),y=_[0],x=_[1];(0,c.d4)((function(){v()}),[v]),(0,c.d4)((function(){x(g)}),[g]);var k=(0,c.I4)((function(){return At(void 0,void 0,void 0,(function(){return Nt(this,(function(e){switch(e.label){case 0:return[4,m(y)];case 1:return e.sent(),s(!1),[2]}}))}))}),[y,m]),E=(0,c.I4)((function(){s(!1),x(g)}),[g]),C=(0,c.I4)((function(){return At(void 0,void 0,void 0,(function(){return Nt(this,(function(e){switch(e.label){case 0:return[4,w()];case 1:return e.sent(),f(!1),[2]}}))}))}),[w]),O=(0,c.I4)((function(e){if(e.isEnabled){var t=function(e,t){var n=e.products.map((function(e){return e.name===t?{name:t,isEnabled:!0}:e}));return Z(Z({},e),{products:n})}(y,e.name);x(t)}else t=function(e,t,n){var r=e.products.map((function(e){return e.name===t?{name:t,isEnabled:!1,disabledReason:n}:e}));return Z(Z({},e),{products:r})}(y,e.name,e.disabledReason),x(t)}),[y]);return h?r("div",Tt({class:"flex justify-center items-center min-h-[300px]"},{children:r("span",Tt({class:"animate-spin"},{children:r(_e,{size:"lg"})}))})):b?r("h1",Tt({class:"text-red-500"},{children:b})):r(e.HY,{children:[u&&r(Be,{bodyTest:"Are you sure you want to reset the current benefits plan configuration? This action cannot be undone.",headingText:"Reset Benefits Plan Configuration",cancel:{handler:function(){return f(!1)}},confirm:{text:"Reset",handler:C}}),r("div",Tt({class:"flex"},{children:[r("div",Tt({class:"basis-1/2"},{children:r("h3",Tt({class:"text-lg font-semibold text-gray-900"},{children:"Benefits Plan Settings".concat(a?" (*)":"Specific"==g.ownership?"":" (".concat(g.ownership,")"))}))})),r("div",Tt({class:"basis-3/4"},{children:r(Ie,{canEdit:d.canEdit,onEdit:function(){return s(!0)},canDelete:d.canDelete&&"Specific"==g.ownership,onSave:k,onCancel:E,onDelete:function(){return f(!0)}})}))]})),r("div",Tt({class:"flex flex-col"},{children:y.products.map((function(e){return r(nt,{className:"flex items-center h-[3rem] ml-[3.5rem]",editable:a,item:Tt(Tt({},e),{name:(t=e.name,t.replace(/([a-z])([A-Z])/g,"$1 $2"))}),onChange:function(t){return O(Tt(Tt({},t),{name:e.name}))}},e.name);var t}))}))]})};var It=function(){return It=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},It.apply(this,arguments)};const Ut=function(e){var t=e.tabTitles,n=e.currentTab,o=e.onChange,i=(0,c.eJ)(n),a=i[0],s=i[1],l=(0,c.I4)((function(e){s(e),o(e)}),[o]);return r("div",It({class:"border-b border-gray-200"},{children:r("nav",It({"aria-label":"Tabs",class:"-mb-px flex space-x-8"},{children:t.map((function(e){return r("a",It({class:"cursor-pointer border-transparent text-gray-500 whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm ".concat(a===e?"border-b-2 border-indigo-500 text-indigo-600":"hover:text-gray-700 hover:border-gray-300 "),onClick:function(){return l(e)}},{children:e}),e)}))}))}))};var Bt=function(){return Bt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Bt.apply(this,arguments)};const Lt=function(e){var t=e.visible,n=e.children,o=(0,c.sO)(t);return t&&!o.current&&(o.current=!0),o.current?r("div",Bt({hidden:!t},{children:n})):null};function Mt(e){this.message=e}Mt.prototype=new Error,Mt.prototype.name="InvalidCharacterError";var zt="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new Mt("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,o=0,i=0,a="";r=t.charAt(i++);~r&&(n=o%4?64*n+r:r,o++%4)?a+=String.fromCharCode(255&n>>(-2*o&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return a};function Ht(e){this.message=e}Ht.prototype=new Error,Ht.prototype.name="InvalidTokenError";var Yt,Ft=function(){function e(e){this.roles=e}return e.create=function(t){if("string"==typeof t)return new e(function(e,t){if("string"!=typeof e)throw new Ht("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(zt(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return zt(t)}}(e.split(".")[n]))}catch(e){throw new Ht("Invalid token specified: "+e.message)}}(t).roles||[]);throw new Error("Failed to identify the user")},e.prototype.hasRole=function(e){return this.roles.includes(e)},e}(),Vt=function(){return Vt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Vt.apply(this,arguments)},Jt=function(e,t,n){var r=Ft.create(e),o=r.hasRole(t),i={canEdit:o,canView:o||r.hasRole(n),canDelete:o};return{user:r,access:i}},Wt=function(){return Wt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Wt.apply(this,arguments)};!function(e){e.Style="Style",e.BenefitsOnboarding="Benefits Onboarding",e.WebBenefits="Web Benefits",e.BenefitsPlan="Benefits Plan"}(Yt||(Yt={}));const qt=a((function(e){var t=e.backendUrl,n=e.accessToken,o=e.partnerId,i=e.accountId,a=function(e,t){var n=Jt(e,"BenefitsOnboarding.EditConfig","BenefitsOnboarding.Access"),r=n.user,o=n.access,i=Jt(e,"BenefitsOnboarding.EditPartnerStyle","BenefitsOnboarding.Access").access,a=Jt(e,"BenefitsPlan.EditConfig","BenefitsPlan.Access").access;return{user:r,access:{partnerStyle:Vt(Vt({},i),{canEdit:i.canEdit&&!t}),benefitsOnboarding:o,webBenefits:o,benefitsPlan:a}}}(n,i).access,s=(0,c.eJ)(Yt.Style),l=s[0],u=s[1],f=(0,c.I4)((function(e){return e===l}),[l]);return function(e,t){!function(e,t){ct=ne().create({baseURL:"".concat(e,"/_admin/v2.0"),headers:{Authorization:"Bearer ".concat(t)}})}("".concat(e,"/benefits"),t),ie.initClient("".concat(e,"/benefits-onboarding"),t),function(e,t){xt=ne().create({baseURL:"".concat(e,"/_admin/v1.0/configuration"),headers:{Authorization:"Bearer ".concat(t)}})}("".concat(e,"/benefits-plan"),t)}(t,n),r(He.Provider,Wt({value:{partnerId:o,accountId:i,access:a}},{children:[r(Ut,{tabTitles:Object.entries(Yt).map((function(e){return e[1]})),currentTab:l,onChange:u}),r("div",Wt({class:"mt-5"},{children:[a.partnerStyle.canView&&r(Lt,Wt({visible:f(Yt.Style)},{children:r(et,{})})),a.benefitsOnboarding.canView&&r(Lt,Wt({visible:f(Yt.BenefitsOnboarding)},{children:r(st,{})})),a.webBenefits.canView&&r(Lt,Wt({visible:f(Yt.WebBenefits)},{children:r(yt,{accessToken:n,partnerId:o,accountId:i})})),a.benefitsPlan.canView&&r(Lt,Wt({visible:f(Yt.BenefitsPlan)},{children:r(Dt,{accessToken:n,partnerId:o,accountId:i})}))]}))]}))}));function $t(){return($t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Gt(t){this.getChildContext=function(){return t.context};var n=t.children,r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(t,["context","children"]);return(0,e.Tm)(n,r)}function Zt(){var t=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(t),this._vdom=(0,e.h)(Gt,$t({},this._props,{context:t.detail.context}),function t(n,r){if(3===n.nodeType)return n.data;if(1!==n.nodeType)return null;var o=[],i={},a=0,s=n.attributes,c=n.childNodes;for(a=s.length;a--;)"slot"!==s[a].name&&(i[s[a].name]=s[a].value,i[Xt(s[a].name)]=s[a].value);for(a=c.length;a--;){var l=t(c[a],null),u=c[a].slot;u?i[u]=(0,e.h)(en,{name:u},l):o[a]=l}var f=r?(0,e.h)(en,null,o):o;return(0,e.h)(r||n.nodeName.toLowerCase(),i,f)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?e.ZB:e.sY)(this._vdom,this._root)}function Xt(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function Qt(t,n,r){if(this._vdom){var o={};o[t]=r=null==r?void 0:r,o[Xt(t)]=r,this._vdom=(0,e.Tm)(this._vdom,o),(0,e.sY)(this._vdom,this._root)}}function Kt(){(0,e.sY)(this._vdom=null,this._root)}function en(t,n){var r=this;return(0,e.h)("slot",$t({},t,{ref:function(e){e?(r.ref=e,r._listener||(r._listener=function(e){e.stopPropagation(),e.detail.context=n},e.addEventListener("_preact",r._listener))):r.ref.removeEventListener("_preact",r._listener)}}))}function tn(e,t,n,r){function o(){var t=Reflect.construct(HTMLElement,[],o);return t._vdomComponent=e,t._root=r&&r.shadow?t.attachShadow({mode:"open"}):t,t}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=Zt,o.prototype.attributeChangedCallback=Qt,o.prototype.disconnectedCallback=Kt,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||e.tagName||e.displayName||e.name,o)}tn(s,"superhero-benefits-onboarding",[],{shadow:!0}),tn(qt,"superhero-benefits-onboarding-configuration",[],{shadow:!0})})()})();
1
+ (()=>{var e={608:(e,t,n)=>{const r=n(661),o=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L6.832 19.82a4.5 4.5 0 01-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 011.13-1.897L16.863 4.487zm0 0L19.5 7.125"}))}));e.exports=o},783:(e,t,n)=>{const r=n(661),o=r.forwardRef((function({title:e,titleId:t,...n},o){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"}))}));e.exports=o},669:(e,t,n)=>{e.exports=n(609)},448:(e,t,n)=>{"use strict";var r=n(867),o=n(26),i=n(372),a=n(327),c=n(97),s=n(109),l=n(985),u=n(874),f=n(648),d=n(644),p=n(205);e.exports=function(e){return new Promise((function(t,n){var h,b=e.data,g=e.headers,m=e.responseType;function v(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}r.isFormData(b)&&r.isStandardBrowserEnv()&&delete g["Content-Type"];var w=new XMLHttpRequest;if(e.auth){var y=e.auth.username||"",_=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";g.Authorization="Basic "+btoa(y+":"+_)}var x=c(e.baseURL,e.url);function k(){if(w){var r="getAllResponseHeaders"in w?s(w.getAllResponseHeaders()):null,i={data:m&&"text"!==m&&"json"!==m?w.response:w.responseText,status:w.status,statusText:w.statusText,headers:r,config:e,request:w};o((function(e){t(e),v()}),(function(e){n(e),v()}),i),w=null}}if(w.open(e.method.toUpperCase(),a(x,e.params,e.paramsSerializer),!0),w.timeout=e.timeout,"onloadend"in w?w.onloadend=k:w.onreadystatechange=function(){w&&4===w.readyState&&(0!==w.status||w.responseURL&&0===w.responseURL.indexOf("file:"))&&setTimeout(k)},w.onabort=function(){w&&(n(new f("Request aborted",f.ECONNABORTED,e,w)),w=null)},w.onerror=function(){n(new f("Network Error",f.ERR_NETWORK,e,w,w)),w=null},w.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||u;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new f(t,r.clarifyTimeoutError?f.ETIMEDOUT:f.ECONNABORTED,e,w)),w=null},r.isStandardBrowserEnv()){var E=(e.withCredentials||l(x))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;E&&(g[e.xsrfHeaderName]=E)}"setRequestHeader"in w&&r.forEach(g,(function(e,t){void 0===b&&"content-type"===t.toLowerCase()?delete g[t]:w.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(w.withCredentials=!!e.withCredentials),m&&"json"!==m&&(w.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&w.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&w.upload&&w.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function(e){w&&(n(!e||e&&e.type?new d:e),w.abort(),w=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),b||(b=null);var C=p(x);C&&-1===["http","https","file"].indexOf(C)?n(new f("Unsupported protocol "+C+":",f.ERR_BAD_REQUEST,e)):w.send(b)}))}},609:(e,t,n)=>{"use strict";var r=n(867),o=n(849),i=n(321),a=n(185),c=function e(t){var n=new i(t),c=o(i.prototype.request,n);return r.extend(c,i.prototype,n),r.extend(c,n),c.create=function(n){return e(a(t,n))},c}(n(546));c.Axios=i,c.CanceledError=n(644),c.CancelToken=n(972),c.isCancel=n(502),c.VERSION=n(288).version,c.toFormData=n(675),c.AxiosError=n(648),c.Cancel=c.CanceledError,c.all=function(e){return Promise.all(e)},c.spread=n(713),c.isAxiosError=n(268),e.exports=c,e.exports.default=c},972:(e,t,n)=>{"use strict";var r=n(644);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},644:(e,t,n)=>{"use strict";var r=n(648);function o(e){r.call(this,null==e?"canceled":e,r.ERR_CANCELED),this.name="CanceledError"}n(867).inherits(o,r,{__CANCEL__:!0}),e.exports=o},502:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,n)=>{"use strict";var r=n(867),o=n(327),i=n(782),a=n(572),c=n(185),s=n(97),l=n(875),u=l.validators;function f(e){this.defaults=e,this.interceptors={request:new i,response:new i}}f.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=c(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&l.assertOptions(n,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var i,s=[];if(this.interceptors.response.forEach((function(e){s.push(e.fulfilled,e.rejected)})),!o){var f=[a,void 0];for(Array.prototype.unshift.apply(f,r),f=f.concat(s),i=Promise.resolve(t);f.length;)i=i.then(f.shift(),f.shift());return i}for(var d=t;r.length;){var p=r.shift(),h=r.shift();try{d=p(d)}catch(e){h(e);break}}try{i=a(d)}catch(e){return Promise.reject(e)}for(;s.length;)i=i.then(s.shift(),s.shift());return i},f.prototype.getUri=function(e){e=c(this.defaults,e);var t=s(e.baseURL,e.url);return o(t,e.params,e.paramsSerializer)},r.forEach(["delete","get","head","options"],(function(e){f.prototype[e]=function(t,n){return this.request(c(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(c(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}f.prototype[e]=t(),f.prototype[e+"Form"]=t(!0)})),e.exports=f},648:(e,t,n)=>{"use strict";var r=n(867);function o(e,t,n,r,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}r.inherits(o,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var i=o.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){a[e]={value:e}})),Object.defineProperties(o,a),Object.defineProperty(i,"isAxiosError",{value:!0}),o.from=function(e,t,n,a,c,s){var l=Object.create(i);return r.toFlatObject(e,l,(function(e){return e!==Error.prototype})),o.call(l,e.message,t,n,a,c),l.name=e.name,s&&Object.assign(l,s),l},e.exports=o},782:(e,t,n)=>{"use strict";var r=n(867);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},97:(e,t,n)=>{"use strict";var r=n(793),o=n(303);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},572:(e,t,n)=>{"use strict";var r=n(867),o=n(527),i=n(502),a=n(546),c=n(644);function s(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new c}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return s(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(s(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},185:(e,t,n)=>{"use strict";var r=n(867);e.exports=function(e,t){t=t||{};var n={};function o(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function i(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return o(void 0,t[e])}function c(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(void 0,t[n])}function s(n){return n in t?o(e[n],t[n]):n in e?o(void 0,e[n]):void 0}var l={url:a,method:a,data:a,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:s};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=l[e]||i,o=t(e);r.isUndefined(o)&&t!==s||(n[e]=o)})),n}},26:(e,t,n)=>{"use strict";var r=n(648);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new r("Request failed with status code "+n.status,[r.ERR_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},527:(e,t,n)=>{"use strict";var r=n(867),o=n(546);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},546:(e,t,n)=>{"use strict";var r=n(867),o=n(16),i=n(648),a=n(874),c=n(675),s={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u,f={transitional:a,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(u=n(448)),u),transformRequest:[function(e,t){if(o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e))return e;if(r.isArrayBufferView(e))return e.buffer;if(r.isURLSearchParams(e))return l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,i=r.isObject(e),a=t&&t["Content-Type"];if((n=r.isFileList(e))||i&&"multipart/form-data"===a){var s=this.env&&this.env.FormData;return c(n?{"files[]":e}:e,s&&new s)}return i||"application/json"===a?(l(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(0,JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||f.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw i.from(e,i.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(623)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){f.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){f.headers[e]=r.merge(s)})),e.exports=f},874:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},288:e=>{e.exports={version:"0.27.2"}},849:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},327:(e,t,n)=>{"use strict";var r=n(867);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var c=e.indexOf("#");-1!==c&&(e=e.slice(0,c)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},372:(e,t,n)=>{"use strict";var r=n(867);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var c=[];c.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),r.isString(o)&&c.push("path="+o),r.isString(i)&&c.push("domain="+i),!0===a&&c.push("secure"),document.cookie=c.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},268:(e,t,n)=>{"use strict";var r=n(867);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},985:(e,t,n)=>{"use strict";var r=n(867);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},16:(e,t,n)=>{"use strict";var r=n(867);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},623:e=>{e.exports=null},109:(e,t,n)=>{"use strict";var r=n(867),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},205:e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},675:(e,t,n)=>{"use strict";var r=n(867);e.exports=function(e,t){t=t||new FormData;var n=[];function o(e){return null===e?"":r.isDate(e)?e.toISOString():r.isArrayBuffer(e)||r.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(i,a){if(r.isPlainObject(i)||r.isArray(i)){if(-1!==n.indexOf(i))throw Error("Circular reference detected in "+a);n.push(i),r.forEach(i,(function(n,i){if(!r.isUndefined(n)){var c,s=a?a+"."+i:i;if(n&&!a&&"object"==typeof n)if(r.endsWith(i,"{}"))n=JSON.stringify(n);else if(r.endsWith(i,"[]")&&(c=r.toArray(n)))return void c.forEach((function(e){!r.isUndefined(e)&&t.append(s,o(e))}));e(n,s)}})),n.pop()}else t.append(a,o(i))}(e),t}},875:(e,t,n)=>{"use strict";var r=n(288).version,o=n(648),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={};i.transitional=function(e,t,n){function i(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,c){if(!1===e)throw new o(i(r," has been removed"+(t?" in "+t:"")),o.ERR_DEPRECATED);return t&&!a[r]&&(a[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,c)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var a=r[i],c=t[a];if(c){var s=e[a],l=void 0===s||c(s,a,e);if(!0!==l)throw new o("option "+a+" must be "+l,o.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new o("Unknown option "+a,o.ERR_BAD_OPTION)}},validators:i}},867:(e,t,n)=>{"use strict";var r,o=n(849),i=Object.prototype.toString,a=(r=Object.create(null),function(e){var t=i.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function c(e){return e=e.toLowerCase(),function(t){return a(t)===e}}function s(e){return Array.isArray(e)}function l(e){return void 0===e}var u=c("ArrayBuffer");function f(e){return null!==e&&"object"==typeof e}function d(e){if("object"!==a(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=c("Date"),h=c("File"),b=c("Blob"),g=c("FileList");function m(e){return"[object Function]"===i.call(e)}var v=c("URLSearchParams");function w(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),s(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var y,_=(y="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return y&&e instanceof y});e.exports={isArray:s,isArrayBuffer:u,isBuffer:function(e){return null!==e&&!l(e)&&null!==e.constructor&&!l(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||i.call(e)===t||m(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&u(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:f,isPlainObject:d,isUndefined:l,isDate:p,isFile:h,isBlob:b,isFunction:m,isStream:function(e){return f(e)&&m(e.pipe)},isURLSearchParams:v,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:w,merge:function e(){var t={};function n(n,r){d(t[r])&&d(n)?t[r]=e(t[r],n):d(n)?t[r]=e({},n):s(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)w(arguments[r],n);return t},extend:function(e,t,n){return w(t,(function(t,r){e[r]=n&&"function"==typeof t?o(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var r,o,i,a={};t=t||{};do{for(o=(r=Object.getOwnPropertyNames(e)).length;o-- >0;)a[i=r[o]]||(t[i]=e[i],a[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:c,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(l(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:_,isFileList:g}},383:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r=n(81),o=n.n(r),i=n(645),a=n.n(i),c=n(667),s=n.n(c),l=new URL(n(578),n.b),u=new URL(n(254),n.b),f=new URL(n(184),n.b),d=new URL(n(421),n.b),p=a()(o()),h=s()(l),b=s()(u),g=s()(f),m=s()(d);p.push([e.id,'/*! tailwindcss v3.1.8 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],select,textarea{--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,select:focus,textarea:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}select{color-adjust:exact;background-image:url('+h+");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple]{color-adjust:unset;background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{color-adjust:exact;--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:checked{background-image:url("+b+")}[type=radio]:checked{background-image:url("+g+")}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("+m+");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::-webkit-backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.\\!visible{visibility:visible!important}.invisible{visibility:hidden}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{bottom:0;left:0;right:0;top:0}.top-0{top:0}.right-0{right:0}.z-10{z-index:10}.mx-auto{margin-left:auto;margin-right:auto}.my-auto{margin-bottom:auto;margin-top:auto}.my-5{margin-bottom:1.25rem;margin-top:1.25rem}.my-10{margin-bottom:2.5rem;margin-top:2.5rem}.mt-3{margin-top:.75rem}.mt-2{margin-top:.5rem}.mt-5{margin-top:1.25rem}.ml-3{margin-left:.75rem}.-mb-px{margin-bottom:-1px}.ml-\\[3\\.5rem\\]{margin-left:3.5rem}.ml-\\[3rem\\]{margin-left:3rem}.mt-\\[2rem\\]{margin-top:2rem}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-5{height:1.25rem}.h-12{height:3rem}.h-6{height:1.5rem}.h-10{height:2.5rem}.h-\\[1\\.5rem\\]{height:1.5rem}.h-\\[1\\.25rem\\]{height:1.25rem}.h-full{height:100%}.h-\\[3rem\\]{height:3rem}.min-h-full{min-height:100%}.min-h-\\[300px\\]{min-height:300px}.w-5{width:1.25rem}.w-full{width:100%}.w-12{width:3rem}.w-6{width:1.5rem}.w-10{width:2.5rem}.w-\\[2\\.75rem\\]{width:2.75rem}.w-\\[1\\.25rem\\]{width:1.25rem}.w-1\\/2{width:50%}.max-w-7xl{max-width:80rem}.max-w-lg{max-width:32rem}.flex-shrink-0,.shrink-0{flex-shrink:0}.basis-1\\/2{flex-basis:50%}.basis-3\\/4{flex-basis:75%}.translate-x-\\[1\\.25rem\\]{--tw-translate-x:1.25rem}.translate-x-0,.translate-x-\\[1\\.25rem\\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x:0px}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@-webkit-keyframes spin{to{transform:rotate(1turn)}}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.gap-7{gap:1.75rem}.gap-1{gap:.25rem}.space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(2rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(2rem*var(--tw-space-x-reverse))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.space-x-10>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(2.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(2.5rem*var(--tw-space-x-reverse))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.rounded-md{border-radius:.375rem}.rounded-lg{border-radius:.5rem}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-indigo-500{--tw-border-opacity:1;border-color:rgb(99 102 241/var(--tw-border-opacity))}.bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(79 70 229/var(--tw-bg-opacity))}.bg-opacity-75{--tw-bg-opacity:0.75}.fill-white{fill:#fff}.fill-gray-200{fill:#e5e7eb}.fill-teal-500{fill:#14b8a6}.p-4{padding:1rem}.p-2{padding:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-4{padding-bottom:1rem;padding-top:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.pt-5{padding-top:1.25rem}.pb-4{padding-bottom:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-base{font-size:1rem;line-height:1.5rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-6{line-height:1.5rem}.leading-5{line-height:1.25rem}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-indigo-600{--tw-text-opacity:1;color:rgb(79 70 229/var(--tw-text-opacity))}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,fill,stroke,-webkit-text-decoration-color;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,-webkit-text-decoration-color;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\\:border-gray-300:hover{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.hover\\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.hover\\:bg-red-700:hover{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.hover\\:bg-indigo-700:hover{--tw-bg-opacity:1;background-color:rgb(67 56 202/var(--tw-bg-opacity))}.hover\\:text-gray-500:hover{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.hover\\:text-gray-700:hover{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.focus\\:border-indigo-500:focus{--tw-border-opacity:1;border-color:rgb(99 102 241/var(--tw-border-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-inset:focus{--tw-ring-inset:inset}.focus\\:ring-indigo-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(99 102 241/var(--tw-ring-opacity))}.focus\\:ring-red-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(239 68 68/var(--tw-ring-opacity))}.focus\\:ring-gray-300:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(209 213 219/var(--tw-ring-opacity))}.focus\\:ring-red-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(220 38 38/var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:ring-white:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(255 255 255/var(--tw-ring-opacity))}.focus-visible\\:ring-opacity-75:focus-visible{--tw-ring-opacity:0.75}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:bg-gray-300:disabled{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.disabled\\:opacity-50:disabled{opacity:.5}@media (min-width:640px){.sm\\:my-8{margin-bottom:2rem;margin-top:2rem}.sm\\:mx-0{margin-left:0;margin-right:0}.sm\\:mt-0{margin-top:0}.sm\\:ml-4{margin-left:1rem}.sm\\:mt-4{margin-top:1rem}.sm\\:ml-3{margin-left:.75rem}.sm\\:flex{display:flex}.sm\\:h-10{height:2.5rem}.sm\\:w-full{width:100%}.sm\\:w-10{width:2.5rem}.sm\\:w-auto{width:auto}.sm\\:max-w-xs{max-width:20rem}.sm\\:max-w-lg{max-width:32rem}.sm\\:flex-row-reverse{flex-direction:row-reverse}.sm\\:items-start{align-items:flex-start}.sm\\:items-center{align-items:center}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}.sm\\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\\:text-left{text-align:left}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width:768px){.md\\:px-8{padding-left:2rem;padding-right:2rem}}",""]);const v=p},645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var c=0;c<this.length;c++){var s=this[c][0];null!=s&&(a[s]=!0)}for(var l=0;l<e.length;l++){var u=[].concat(e[l]);r&&a[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},667:e=>{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},81:e=>{"use strict";e.exports=function(e){return e[1]}},63:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},661:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Children:()=>p,Component:()=>o.wA,Fragment:()=>o.HY,PureComponent:()=>c,StrictMode:()=>q,Suspense:()=>g,SuspenseList:()=>w,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>L,cloneElement:()=>H,createContext:()=>o.kr,createElement:()=>o.az,createFactory:()=>z,createPortal:()=>k,createRef:()=>o.Vf,default:()=>K,findDOMNode:()=>V,flushSync:()=>W,forwardRef:()=>f,hydrate:()=>P,isValidElement:()=>Y,lazy:()=>v,memo:()=>s,render:()=>j,startTransition:()=>$,unmountComponentAtNode:()=>F,unstable_batchedUpdates:()=>J,useCallback:()=>r.I4,useContext:()=>r.qp,useDebugValue:()=>r.Qb,useDeferredValue:()=>G,useEffect:()=>r.d4,useErrorBoundary:()=>r.cO,useImperativeHandle:()=>r.aP,useInsertionEffect:()=>X,useLayoutEffect:()=>r.bt,useMemo:()=>r.Ye,useReducer:()=>r._Y,useRef:()=>r.sO,useState:()=>r.eJ,useSyncExternalStore:()=>Q,useTransition:()=>Z,version:()=>M});var r=n(396),o=n(400);function i(e,t){for(var n in t)e[n]=t[n];return e}function a(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function c(e){this.props=e}function s(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:a(this.props,e)}function r(t){return this.shouldComponentUpdate=n,(0,o.az)(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(c.prototype=new o.wA).isPureReactComponent=!0,c.prototype.shouldComponentUpdate=function(e,t){return a(this.props,e)||a(this.state,t)};var l=o.YM.__b;o.YM.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),l&&l(e)};var u="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function f(e){function t(t){var n=i({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=u,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var d=function(e,t){return null==e?null:(0,o.bR)((0,o.bR)(e).map(t))},p={map:d,forEach:d,count:function(e){return e?(0,o.bR)(e).length:0},only:function(e){var t=(0,o.bR)(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:o.bR},h=o.YM.__e;o.YM.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);h(e,t,n,r)};var b=o.YM.unmount;function g(){this.__u=0,this.t=null,this.__b=null}function m(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function v(e){var t,n,r;function i(i){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return(0,o.az)(n,i)}return i.displayName="Lazy",i.__f=!0,i}function w(){this.u=null,this.o=null}o.YM.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),b&&b(e)},(g.prototype=new o.wA).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=m(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(c):c())};n.__R=a;var c=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=function e(t,n,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)})),t.__c&&t.__c.__P===n&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},s=!0===t.__h;r.__u++||s||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},g.prototype.componentWillUnmount=function(){this.t=[]},g.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=i({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)}))),t}(this.__b,n,r.__O=r.__P)}this.__b=null}var a=t.__a&&(0,o.az)(o.HY,null,e.fallback);return a&&(a.__h=null),[(0,o.az)(o.HY,null,t.__a?null:e.children),a]};var y=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function _(e){return this.getChildContext=function(){return e.context},e.children}function x(e){var t=this,n=e.i;t.componentWillUnmount=function(){(0,o.sY)(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),(0,o.sY)((0,o.az)(_,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function k(e,t){var n=(0,o.az)(x,{__v:e,i:t});return n.containerInfo=t,n}(w.prototype=new o.wA).__a=function(e){var t=this,n=m(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),y(t,e,r)):o()};n?n(i):i()}},w.prototype.render=function(e){this.u=null,this.o=new Map;var t=(0,o.bR)(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},w.prototype.componentDidUpdate=w.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){y(e,n,t)}))};var E="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,C=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,O="undefined"!=typeof document,S=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};function j(e,t,n){return null==t.__k&&(t.textContent=""),(0,o.sY)(e,t),"function"==typeof n&&n(),e?e.__c:null}function P(e,t,n){return(0,o.ZB)(e,t),"function"==typeof n&&n(),e?e.__c:null}o.wA.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(o.wA.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var R=o.YM.event;function T(){}function A(){return this.cancelBubble}function N(){return this.defaultPrevented}o.YM.event=function(e){return R&&(e=R(e)),e.persist=T,e.isPropagationStopped=A,e.isDefaultPrevented=N,e.nativeEvent=e};var I,D={configurable:!0,get:function(){return this.class}},B=o.YM.vnode;o.YM.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){var i=-1===t.indexOf("-");for(var a in r={},n){var c=n[a];O&&"children"===a&&"noscript"===t||"value"===a&&"defaultValue"in n&&null==c||("defaultValue"===a&&"value"in n&&null==n.value?a="value":"download"===a&&!0===c?c="":/ondoubleclick/i.test(a)?a="ondblclick":/^onchange(textarea|input)/i.test(a+t)&&!S(n.type)?a="oninput":/^onfocus$/i.test(a)?a="onfocusin":/^onblur$/i.test(a)?a="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(a)?a=a.toLowerCase():i&&C.test(a)?a=a.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===c&&(c=void 0),/^oninput$/i.test(a)&&(a=a.toLowerCase(),r[a]&&(a="oninputCapture")),r[a]=c)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=(0,o.bR)(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=(0,o.bR)(n.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r,n.class!=n.className&&(D.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",D))}e.$$typeof=E,B&&B(e)};var U=o.YM.__r;o.YM.__r=function(e){U&&U(e),I=e.__c};var L={ReactCurrentDispatcher:{current:{readContext:function(e){return I.__n[e.__c].props.value}}}},M="17.0.2";function z(e){return o.az.bind(null,e)}function Y(e){return!!e&&e.$$typeof===E}function H(e){return Y(e)?o.Tm.apply(null,arguments):e}function F(e){return!!e.__k&&((0,o.sY)(null,e),!0)}function V(e){return e&&(e.base||1===e.nodeType&&e)||null}var J=function(e,t){return e(t)},W=function(e,t){return e(t)},q=o.HY;function $(e){e()}function G(e){return e}function Z(){return[!1,$]}var X=r.bt;function Q(e,t){var n=(0,r.eJ)(t),o=n[0],i=n[1];return(0,r.d4)((function(){return e((function(){i((function(){return t()}))}))}),[e,t]),o}const K={useState:r.eJ,useReducer:r._Y,useEffect:r.d4,useLayoutEffect:r.bt,useInsertionEffect:r.bt,useTransition:Z,useDeferredValue:G,useSyncExternalStore:Q,startTransition:$,useRef:r.sO,useImperativeHandle:r.aP,useMemo:r.Ye,useCallback:r.I4,useContext:r.qp,useDebugValue:r.Qb,version:"17.0.2",Children:p,render:j,hydrate:P,unmountComponentAtNode:F,createPortal:k,createElement:o.az,createContext:o.kr,createFactory:z,cloneElement:H,createRef:o.Vf,Fragment:o.HY,isValidElement:Y,findDOMNode:V,Component:o.wA,PureComponent:c,memo:s,forwardRef:f,flushSync:W,unstable_batchedUpdates:J,StrictMode:o.HY,Suspense:g,SuspenseList:w,lazy:v,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:L}},400:(e,t,n)=>{"use strict";n.d(t,{HY:()=>m,Tm:()=>M,Vf:()=>g,YM:()=>o,ZB:()=>L,az:()=>h,bR:()=>C,h:()=>h,kr:()=>z,sY:()=>U,wA:()=>v});var r,o,i,a,c,s,l={},u=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function d(e,t){for(var n in t)e[n]=t[n];return e}function p(e){var t=e.parentNode;t&&t.removeChild(e)}function h(e,t,n){var o,i,a,c={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:c[a]=t[a];if(arguments.length>2&&(c.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===c[a]&&(c[a]=e.defaultProps[a]);return b(e,c,o,i,null)}function b(e,t,n,r,a){var c={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++i:a};return null==a&&null!=o.vnode&&o.vnode(c),c}function g(){return{current:null}}function m(e){return e.children}function v(e,t){this.props=e,this.context=t}function w(e,t){if(null==t)return e.__?w(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?w(e):null}function y(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return y(e)}}function _(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!x.__r++||c!==o.debounceRendering)&&((c=o.debounceRendering)||setTimeout)(x)}function x(){for(var e;x.__r=a.length;)e=a.sort((function(e,t){return e.__v.__b-t.__v.__b})),a=[],e.some((function(e){var t,n,r,o,i,a;e.__d&&(i=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=d({},o)).__v=o.__v+1,T(a,o,r,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?w(o):i,o.__h),A(n,o),o.__e!=i&&y(o)))}))}function k(e,t,n,r,o,i,a,c,s,f){var d,p,h,g,v,y,_,x=r&&r.__k||u,k=x.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(g=n.__k[d]=null==(g=t[d])||"boolean"==typeof g?null:"string"==typeof g||"number"==typeof g||"bigint"==typeof g?b(null,g,null,null,g):Array.isArray(g)?b(m,{children:g},null,null,null):g.__b>0?b(g.type,g.props,g.key,null,g.__v):g)){if(g.__=n,g.__b=n.__b+1,null===(h=x[d])||h&&g.key==h.key&&g.type===h.type)x[d]=void 0;else for(p=0;p<k;p++){if((h=x[p])&&g.key==h.key&&g.type===h.type){x[p]=void 0;break}h=null}T(e,g,h=h||l,o,i,a,c,s,f),v=g.__e,(p=g.ref)&&h.ref!=p&&(_||(_=[]),h.ref&&_.push(h.ref,null,g),_.push(p,g.__c||v,g)),null!=v?(null==y&&(y=v),"function"==typeof g.type&&g.__k===h.__k?g.__d=s=E(g,s,e):s=O(e,g,h,x,v,s),"function"==typeof n.type&&(n.__d=s)):s&&h.__e==s&&s.parentNode!=e&&(s=w(h))}for(n.__e=y,d=k;d--;)null!=x[d]&&("function"==typeof n.type&&null!=x[d].__e&&x[d].__e==n.__d&&(n.__d=w(r,d+1)),D(x[d],x[d]));if(_)for(d=0;d<_.length;d++)I(_[d],_[++d],_[++d])}function E(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?E(r,t,n):O(n,r,r,o,r.__e,t));return t}function C(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){C(e,t)})):t.push(e)),t}function O(e,t,n,r,o,i){var a,c,s;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(c=i,s=0;(c=c.nextSibling)&&s<r.length;s+=2)if(c==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function S(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||f.test(t)?n:n+"px"}function j(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||S(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||S(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?R:P,i):e.removeEventListener(t,i?R:P,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function P(e){this.l[e.type+!1](o.event?o.event(e):e)}function R(e){this.l[e.type+!0](o.event?o.event(e):e)}function T(e,t,n,r,i,a,c,s,l){var u,f,p,h,b,g,w,y,_,x,E,C,O,S=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,s=t.__e=n.__e,t.__h=null,a=[s]),(u=o.__b)&&u(t);try{e:if("function"==typeof S){if(y=t.props,_=(u=S.contextType)&&r[u.__c],x=u?_?_.props.value:u.__:r,n.__c?w=(f=t.__c=n.__c).__=f.__E:("prototype"in S&&S.prototype.render?t.__c=f=new S(y,x):(t.__c=f=new v(y,x),f.constructor=S,f.render=B),_&&_.sub(f),f.props=y,f.state||(f.state={}),f.context=x,f.__n=r,p=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=S.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=d({},f.__s)),d(f.__s,S.getDerivedStateFromProps(y,f.__s))),h=f.props,b=f.state,p)null==S.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==S.getDerivedStateFromProps&&y!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(y,x),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(y,f.__s,x)||t.__v===n.__v){f.props=y,f.state=f.__s,t.__v!==n.__v&&(f.__d=!1),f.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),f.__h.length&&c.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(y,f.__s,x),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(h,b,g)}))}if(f.context=x,f.props=y,f.__v=t,f.__P=e,E=o.__r,C=0,"prototype"in S&&S.prototype.render)f.state=f.__s,f.__d=!1,E&&E(t),u=f.render(f.props,f.state,f.context);else do{f.__d=!1,E&&E(t),u=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++C<25);f.state=f.__s,null!=f.getChildContext&&(r=d(d({},r),f.getChildContext())),p||null==f.getSnapshotBeforeUpdate||(g=f.getSnapshotBeforeUpdate(h,b)),O=null!=u&&u.type===m&&null==u.key?u.props.children:u,k(e,Array.isArray(O)?O:[O],t,n,r,i,a,c,s,l),f.base=t.__e,t.__h=null,f.__h.length&&c.push(f),w&&(f.__E=f.__=null),f.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=N(n.__e,t,n,r,i,a,c,l);(u=o.diffed)&&u(t)}catch(e){t.__v=null,(l||null!=a)&&(t.__e=s,t.__h=!!l,a[a.indexOf(s)]=null),o.__e(e,t,n)}}function A(e,t){o.__c&&o.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){o.__e(e,t.__v)}}))}function N(e,t,n,o,i,a,c,s){var u,f,d,h=n.props,b=t.props,g=t.type,m=0;if("svg"===g&&(i=!0),null!=a)for(;m<a.length;m++)if((u=a[m])&&"setAttribute"in u==!!g&&(g?u.localName===g:3===u.nodeType)){e=u,a[m]=null;break}if(null==e){if(null===g)return document.createTextNode(b);e=i?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,b.is&&b),a=null,s=!1}if(null===g)h===b||s&&e.data===b||(e.data=b);else{if(a=a&&r.call(e.childNodes),f=(h=n.props||l).dangerouslySetInnerHTML,d=b.dangerouslySetInnerHTML,!s){if(null!=a)for(h={},m=0;m<e.attributes.length;m++)h[e.attributes[m].name]=e.attributes[m].value;(d||f)&&(d&&(f&&d.__html==f.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||j(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||j(e,i,t[i],n[i],r)}(e,b,h,i,s),d)t.__k=[];else if(m=t.props.children,k(e,Array.isArray(m)?m:[m],t,n,o,i&&"foreignObject"!==g,a,c,a?a[0]:n.__k&&w(n,0),s),null!=a)for(m=a.length;m--;)null!=a[m]&&p(a[m]);s||("value"in b&&void 0!==(m=b.value)&&(m!==e.value||"progress"===g&&!m||"option"===g&&m!==h.value)&&j(e,"value",m,h.value,!1),"checked"in b&&void 0!==(m=b.checked)&&m!==e.checked&&j(e,"checked",m,h.checked,!1))}return e}function I(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){o.__e(e,n)}}function D(e,t,n){var r,i;if(o.unmount&&o.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||I(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){o.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&D(r[i],t,"function"!=typeof e.type);n||null==e.__e||p(e.__e),e.__e=e.__d=void 0}function B(e,t,n){return this.constructor(e,n)}function U(e,t,n){var i,a,c;o.__&&o.__(e,t),a=(i="function"==typeof n)?null:n&&n.__k||t.__k,c=[],T(t,e=(!i&&n||t).__k=h(m,null,[e]),a||l,l,void 0!==t.ownerSVGElement,!i&&n?[n]:a?null:t.firstChild?r.call(t.childNodes):null,c,!i&&n?n:a?a.__e:t.firstChild,i),A(c,e)}function L(e,t){U(e,t,L)}function M(e,t,n){var o,i,a,c=d({},e.props);for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:c[a]=t[a];return arguments.length>2&&(c.children=arguments.length>3?r.call(arguments,2):n),b(e.type,c,o||e.key,i||e.ref,null)}function z(e,t){var n={__c:t="__cC"+s++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(_)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}r=u.slice,o={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},i=0,v.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),"function"==typeof e&&(e=e(d({},n),this.props)),e&&d(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),_(this))},v.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),_(this))},v.prototype.render=m,a=[],x.__r=0,s=0},396:(e,t,n)=>{"use strict";n.d(t,{I4:()=>E,Qb:()=>O,Ye:()=>k,_Y:()=>v,aP:()=>x,bt:()=>y,cO:()=>S,d4:()=>w,eJ:()=>m,qp:()=>C,sO:()=>_});var r,o,i,a,c=n(400),s=0,l=[],u=[],f=c.YM.__b,d=c.YM.__r,p=c.YM.diffed,h=c.YM.__c,b=c.YM.unmount;function g(e,t){c.YM.__h&&c.YM.__h(o,e,s||t),s=0;var n=o.__H||(o.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:u}),n.__[e]}function m(e){return s=1,v(N,e)}function v(e,t,n){var i=g(r++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):N(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=o,!i.__c.u)){i.__c.__H.u=!0;var a=i.__c.shouldComponentUpdate;i.__c.shouldComponentUpdate=function(e,t,n){var r=i.__c.__H.__.filter((function(e){return e.__c}));return(r.every((function(e){return!e.__N}))||!r.every((function(e){if(!e.__N)return!0;var t=e.__[0];return e.__=e.__N,e.__N=void 0,t===e.__[0]})))&&(!a||a(e,t,n))}}return i.__N||i.__}function w(e,t){var n=g(r++,3);!c.YM.__s&&A(n.__H,t)&&(n.__=e,n.o=t,o.__H.__h.push(n))}function y(e,t){var n=g(r++,4);!c.YM.__s&&A(n.__H,t)&&(n.__=e,n.o=t,o.__h.push(n))}function _(e){return s=5,k((function(){return{current:e}}),[])}function x(e,t,n){s=6,y((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function k(e,t){var n=g(r++,7);return A(n.__H,t)?(n.__V=e(),n.o=t,n.__h=e,n.__V):n.__}function E(e,t){return s=8,k((function(){return e}),t)}function C(e){var t=o.context[e.__c],n=g(r++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(o)),t.props.value):e.__}function O(e,t){c.YM.useDebugValue&&c.YM.useDebugValue(t?t(e):e)}function S(e){var t=g(r++,10),n=m();return t.__=e,o.componentDidCatch||(o.componentDidCatch=function(e){t.__&&t.__(e),n[1](e)}),[n[0],function(){n[1](void 0)}]}function j(){for(var e;e=l.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(R),e.__H.__h.forEach(T),e.__H.__h=[]}catch(t){e.__H.__h=[],c.YM.__e(t,e.__v)}}c.YM.__b=function(e){o=null,f&&f(e)},c.YM.__r=function(e){d&&d(e),r=0;var t=(o=e.__c).__H;t&&(i===o?(t.__h=[],o.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=u,e.__N=e.o=void 0}))):(t.__h.forEach(R),t.__h.forEach(T),t.__h=[])),i=o},c.YM.diffed=function(e){p&&p(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==l.push(t)&&a===c.YM.requestAnimationFrame||((a=c.YM.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),P&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);P&&(t=requestAnimationFrame(n))})(j)),t.__H.__.forEach((function(e){e.o&&(e.__H=e.o),e.__V!==u&&(e.__=e.__V),e.o=void 0,e.__V=u}))),i=o=null},c.YM.__c=function(e,t){t.some((function(e){try{e.__h.forEach(R),e.__h=e.__h.filter((function(e){return!e.__||T(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],c.YM.__e(n,e.__v)}})),h&&h(e,t)},c.YM.unmount=function(e){b&&b(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{R(e)}catch(e){t=e}})),t&&c.YM.__e(t,n.__v))};var P="function"==typeof requestAnimationFrame;function R(e){var t=o,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),o=t}function T(e){var t=o;e.__c=e.__(),o=t}function A(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function N(e,t){return"function"==typeof t?t(e):t}},184:e=>{"use strict";e.exports="data:image/svg+xml;charset=utf-8,%3Csvg viewBox=%270 0 16 16%27 fill=%27%23fff%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Ccircle cx=%278%27 cy=%278%27 r=%273%27/%3E%3C/svg%3E"},254:e=>{"use strict";e.exports="data:image/svg+xml;charset=utf-8,%3Csvg viewBox=%270 0 16 16%27 fill=%27%23fff%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z%27/%3E%3C/svg%3E"},421:e=>{"use strict";e.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 16 16%27%3E%3Cpath stroke=%27%23fff%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%272%27 d=%27M4 8h8%27/%3E%3C/svg%3E"},578:e=>{"use strict";e.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 20 20%27%3E%3Cpath stroke=%27%236b7280%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%271.5%27 d=%27m6 8 4 4 4-4%27/%3E%3C/svg%3E"}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,exports:{}};return e[r](i,i.exports,n),i.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.b=document.baseURI||self.location.href,(()=>{"use strict";var e=n(400),t=0;function r(n,r,o,i,a){var c,s,l={};for(s in r)"ref"==s?c=r[s]:l[s]=r[s];var u={type:n,props:l,key:o,ref:c,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--t,__source:a,__self:i};if("function"==typeof n&&(c=n.defaultProps))for(s in c)void 0===l[s]&&(l[s]=c[s]);return e.YM.vnode&&e.YM.vnode(u),u}var o=n(383),i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function a(t){return function(n){return r(e.HY,{children:[r("style",{children:o.Z.toString()}),r(t,i({},n))]})}}const c=a((function(t){return r(e.HY,{children:r("div",{children:r("p",{children:"Hello, Superhero."})})})}));var s=n(396),l=n(661);function u(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,u),r}var f,d=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(d||{}),p=((f=p||{})[f.Unmount=0]="Unmount",f[f.Hidden=1]="Hidden",f);function h({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a}){let c=g(t,e);if(i)return b(c,n,r,a);let s=null!=o?o:0;if(2&s){let{static:e=!1,...t}=c;if(e)return b(t,n,r,a)}if(1&s){let{unmount:e=!0,...t}=c;return u(e?0:1,{0:()=>null,1:()=>b({...t,hidden:!0,style:{display:"none"}},n,r,a)})}return b(c,n,r,a)}function b(e,t={},n,r){let{as:o=n,children:i,refName:a="ref",...c}=w(e,["unmount","static"]),s=void 0!==e.ref?{[a]:e.ref}:{},u="function"==typeof i?i(t):i;c.className&&"function"==typeof c.className&&(c.className=c.className(t));let f={};if(o===l.Fragment&&Object.keys(v(c)).length>0){if(!(0,l.isValidElement)(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(c).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));return(0,l.cloneElement)(u,Object.assign({},g(u.props,v(w(c,["ref"]))),f,s))}return(0,l.createElement)(o,Object.assign({},w(c,["ref"]),o!==l.Fragment&&s,o!==l.Fragment&&f),u)}function g(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map((e=>[e,void 0]))));for(let e in n)Object.assign(t,{[e](t,...r){let o=n[e];for(let e of o){if(t.defaultPrevented)return;e(t,...r)}}});return t}function m(e){var t;return Object.assign((0,l.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function v(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function w(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}let y="undefined"!=typeof window?l.useLayoutEffect:l.useEffect,_={serverHandoffComplete:!1};var x;let k=0;function E(){return++k}let C=null!=(x=l.default.useId)?x:function(){let e=function(){let[e,t]=(0,l.useState)(_.serverHandoffComplete);return(0,l.useEffect)((()=>{!0!==e&&t(!0)}),[e]),(0,l.useEffect)((()=>{!1===_.serverHandoffComplete&&(_.serverHandoffComplete=!0)}),[]),e}(),[t,n]=l.default.useState(e?E:null);return y((()=>{null===t&&n(E())}),[t]),null!=t?""+t:void 0};var O=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(O||{});let S=function(e){let t=function(e){let t=(0,l.useRef)(e);return y((()=>{t.current=e}),[e]),t}(e);return l.default.useCallback(((...e)=>t.current(...e)),[t])},j=Symbol();function P(...e){let t=(0,l.useRef)(e);(0,l.useEffect)((()=>{t.current=e}),[e]);let n=S((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[j])))?void 0:n}let R=(0,l.createContext)(null);function T(){let e=(0,l.useContext)(R);if(null===e){let e=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,T),e}return e}let A=m((function(e,t){let{passive:n=!1,...r}=e,o=T(),i=`headlessui-label-${C()}`,a=P(t);y((()=>o.register(i)),[i,o.register]);let c={ref:a,...o.props,id:i};return n&&("onClick"in c&&delete c.onClick,"onClick"in r&&delete r.onClick),h({ourProps:c,theirProps:r,slot:o.slot||{},defaultTag:"label",name:o.name||"Label"})})),N=(0,l.createContext)(null);function I(){let e=(0,l.useContext)(N);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,I),e}return e}function D(){let[e,t]=(0,l.useState)([]);return[e.length>0?e.join(" "):void 0,(0,l.useMemo)((()=>function(e){let n=S((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),r=(0,l.useMemo)((()=>({register:n,slot:e.slot,name:e.name,props:e.props})),[n,e.slot,e.name,e.props]);return l.default.createElement(N.Provider,{value:r},e.children)}),[t])]}let B=m((function(e,t){let n=I(),r=`headlessui-description-${C()}`,o=P(t);y((()=>n.register(r)),[r,n.register]);let i=e;return h({ourProps:{ref:o,...n.props,id:r},theirProps:i,slot:n.slot||{},defaultTag:"p",name:n.name||"Description"})}));function U(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";return"string"==typeof n&&"button"===n.toLowerCase()?"button":void 0}function L(e,t){let[n,r]=(0,l.useState)((()=>U(e)));return y((()=>{r(U(e))}),[e.type,e.as]),y((()=>{n||!t.current||t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")}),[n,t]),n}var M=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(M||{});let z=m((function(e,t){let{features:n=1,...r}=e;return h({ourProps:{ref:t,"aria-hidden":2==(2&n)||void 0,style:{position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4==(4&n)&&2!=(2&n)&&{display:"none"}}},theirProps:r,slot:{},defaultTag:"div",name:"Hidden"})})),Y=(0,l.createContext)(null);Y.displayName="GroupContext";let H=l.Fragment,F=m((function(e,t){let{checked:n,onChange:r,name:o,value:i,...a}=e,c=`headlessui-switch-${C()}`,s=(0,l.useContext)(Y),u=(0,l.useRef)(null),f=P(u,t,null===s?null:s.setSwitch),d=S((()=>r(!n))),p=S((e=>{if(function(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}(e.currentTarget))return e.preventDefault();e.preventDefault(),d()})),b=S((e=>{e.key===O.Space?(e.preventDefault(),d()):e.key===O.Enter&&function(e){var t;let n=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(n)for(let e of n.elements)if("INPUT"===e.tagName&&"submit"===e.type||"BUTTON"===e.tagName&&"submit"===e.type||"INPUT"===e.nodeName&&"image"===e.type)return void e.click()}(e.currentTarget)})),g=S((e=>e.preventDefault())),m=(0,l.useMemo)((()=>({checked:n})),[n]),w={id:c,ref:f,role:"switch",type:L(e,u),tabIndex:0,"aria-checked":n,"aria-labelledby":null==s?void 0:s.labelledby,"aria-describedby":null==s?void 0:s.describedby,onClick:p,onKeyUp:b,onKeyPress:g};return l.default.createElement(l.default.Fragment,null,null!=o&&n&&l.default.createElement(z,{features:M.Hidden,...v({as:"input",type:"checkbox",hidden:!0,readOnly:!0,checked:n,name:o,value:i})}),h({ourProps:w,theirProps:a,slot:m,defaultTag:"button",name:"Switch"}))})),V=Object.assign(F,{Group:function(e){let[t,n]=(0,l.useState)(null),[r,o]=function(){let[e,t]=(0,l.useState)([]);return[e.length>0?e.join(" "):void 0,(0,l.useMemo)((()=>function(e){let n=S((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),r=(0,l.useMemo)((()=>({register:n,slot:e.slot,name:e.name,props:e.props})),[n,e.slot,e.name,e.props]);return l.default.createElement(R.Provider,{value:r},e.children)}),[t])]}(),[i,a]=D(),c=(0,l.useMemo)((()=>({switch:t,setSwitch:n,labelledby:r,describedby:i})),[t,n,r,i]),s=e;return l.default.createElement(a,{name:"Switch.Description"},l.default.createElement(o,{name:"Switch.Label",props:{onClick(){!t||(t.click(),t.focus({preventScroll:!0}))}}},l.default.createElement(Y.Provider,{value:c},h({ourProps:{},theirProps:s,defaultTag:H,name:"Switch.Group"}))))},Label:A,Description:B});var J=function(){return J=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},J.apply(this,arguments)};const W=function(e){var t=e.className,n=e.value,o=e.disabled,i=e.label,a=e.onChange;return r(V.Group,{children:r("div",J({class:"flex ".concat(t," ").concat(o?"pointer-events-none":"")},{children:[r(V,J({disabled:o,checked:n,onChange:a,class:"".concat(n?"bg-gray-900":"bg-gray-300","\n inline-flex h-[1.5rem] w-[2.75rem] shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75 my-auto")},{children:r("span",{class:"".concat(n?"translate-x-[1.25rem]":"translate-x-0","\n pointer-events-none inline-block h-[1.25rem] w-[1.25rem] transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out")})})),r(V.Label,{children:r("div",J({class:"flex items-center h-full text-sm leading-5 text-gray-900 cursor-pointer ml-3"},{children:i}))})]}))})};var q,$,G,Z=function(){return Z=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Z.apply(this,arguments)};!function(e){e.Default="Default",e.Ineligible="Ineligible employee base",e.Ineligible_Account_Constraints="Ineligible due to account constraints",e.Existing_Provider="Has existing benefit provider",e.Not_Offer="Does not offer benefit",e.Not_Offer_Flare="Does not offer any Flare benefits"}(q||(q={})),function(e){e.Off="Off",e.Injected="Injected",e.Discrete="Discrete"}($||($={})),function(e){e.Partner="Partner",e.Default="Default",e.Account="Account"}(G||(G={}));var X,Q=Object.entries(q).map((function(e){return{name:e[0],value:e[1]}})),K={ownership:"Default",wellbeing:{isEnabled:!0},flareApp:{isEnabled:!0},salaryPackagingCars:{isEnabled:!0}},ee={ownership:"Default",products:[]},te=n(669),ne=n.n(te),re=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function c(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}s((r=r.apply(e,t||[])).next())}))},oe=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},ie=function(){function e(){}return e.initClient=function(e,t){this.axiosInstance=ne().create({baseURL:"".concat(e,"/admin"),headers:{Authorization:"Bearer ".concat(t)}})},e.getConfigUrl=function(e,t){return t?"/partners/".concat(e,"/accounts/").concat(t,"/config"):"/partners/".concat(e,"/config")},e.getConfig=function(e,t){return re(this,void 0,void 0,(function(){return oe(this,(function(n){switch(n.label){case 0:return[4,this.axiosInstance.get(this.getConfigUrl(e,t),{})];case 1:return[2,n.sent().data]}}))}))},e.upsertImplementationStyle=function(e,t){return re(this,void 0,void 0,(function(){return oe(this,(function(n){switch(n.label){case 0:return[4,this.axiosInstance.put("".concat(this.getConfigUrl(e),"/style"),{implementationStyle:t})];case 1:return n.sent(),[2]}}))}))},e.upsertOffers=function(e,t,n){return re(this,void 0,void 0,(function(){return oe(this,(function(r){switch(r.label){case 0:return[4,this.axiosInstance.put("".concat(this.getConfigUrl(e,n),"/offers"),{offerEnablements:t})];case 1:return r.sent(),[2]}}))}))},e.deleteOffers=function(e,t){return re(this,void 0,void 0,(function(){return oe(this,(function(n){switch(n.label){case 0:return[4,this.axiosInstance.delete("".concat(this.getConfigUrl(e,t),"/offers"))];case 1:return n.sent(),[2]}}))}))},e.getInjectedStyle=function(e){return re(this,void 0,void 0,(function(){return oe(this,(function(t){switch(t.label){case 0:return[4,this.axiosInstance.get("".concat(this.getConfigUrl(e),"/injected"))];case 1:return[2,t.sent().data]}}))}))},e.upsertInjectedStyle=function(e,t,n){return re(this,void 0,void 0,(function(){return oe(this,(function(r){switch(r.label){case 0:return[4,this.axiosInstance.put("".concat(this.getConfigUrl(e,n),"/injected"),t)];case 1:return r.sent(),[2]}}))}))},e.deleteInjectedStyle=function(e,t){return re(this,void 0,void 0,(function(){return oe(this,(function(n){switch(n.label){case 0:return[4,this.axiosInstance.delete("".concat(this.getConfigUrl(e,t),"/injected"))];case 1:return n.sent(),[2]}}))}))},e.upsertBenefitsAllowance=function(e,t,n){return re(this,void 0,void 0,(function(){return oe(this,(function(r){switch(r.label){case 0:return[4,this.axiosInstance.put("".concat(this.getConfigUrl(e,n),"/benefits-allowance"),t)];case 1:return r.sent(),[2]}}))}))},e.deleteBenefitsAllowance=function(e,t){return re(this,void 0,void 0,(function(){return oe(this,(function(n){switch(n.label){case 0:return[4,this.axiosInstance.delete("".concat(this.getConfigUrl(e,t),"/benefits-allowance"))];case 1:return n.sent(),[2]}}))}))},e}();!function(e){e.Default="Default",e.Ineligible="Ineligible employee base",e.Ineligible_Account_Constraints="Ineligible due to account constraints",e.Existing_Provider="Has existing benefit provider",e.Not_Offer="Does not offer benefit",e.Not_Offer_Flare="Does not offer any Flare benefits",e.DEPRECATED_Existing_Provider="Existing novated lease provider",e.DEPRECATED_Not_Offer="Does not offer a novated lease benefit",e.DEPRECATED_Not_Offer_Flare="Does not wish to offer any Flare premium benefits"}(X||(X={}));var ae=function(e){switch(e){case q.Ineligible:return X.Ineligible;case q.Ineligible_Account_Constraints:return X.Ineligible_Account_Constraints;case q.Existing_Provider:return X.Existing_Provider;case q.Not_Offer:return X.Not_Offer;case q.Not_Offer_Flare:return X.Not_Offer_Flare;case q.Default:default:return X.Default}},ce=function(e){switch(e){case X.Ineligible:return q.Ineligible;case X.Ineligible_Account_Constraints:return q.Ineligible_Account_Constraints;case X.Existing_Provider:case X.DEPRECATED_Existing_Provider:return q.Existing_Provider;case X.Not_Offer:case X.DEPRECATED_Not_Offer:return q.Not_Offer;case X.Not_Offer_Flare:case X.DEPRECATED_Not_Offer_Flare:return q.Not_Offer_Flare;case X.Default:default:return q.Default}},se=function(e){return{ownership:e.ownership,wellbeing:e.wellbeing.isEnabled?{isEnabled:!0}:{isEnabled:!1,disabledReason:ae(e.wellbeing.disabledReason)},flareApp:e.flareApp.isEnabled?{isEnabled:!0}:{isEnabled:!1,disabledReason:ae(e.flareApp.disabledReason)},salaryPackagingCars:e.salaryPackagingCars.isEnabled?{isEnabled:!0}:{isEnabled:!1,disabledReason:ae(e.salaryPackagingCars.disabledReason)}}},le=function(e){return{ownership:e.ownership,wellbeing:e.wellbeing.isEnabled?{isEnabled:!0}:{isEnabled:!1,disabledReason:ce(e.wellbeing.disabledReason)},flareApp:e.flareApp.isEnabled?{isEnabled:!0}:{isEnabled:!1,disabledReason:ce(e.flareApp.disabledReason)},salaryPackagingCars:e.salaryPackagingCars.isEnabled?{isEnabled:!0}:{isEnabled:!1,disabledReason:ce(e.salaryPackagingCars.disabledReason)}}},ue=function(e){return{ownership:e.ownership,products:e.products.map((function(e){return e.isEnabled?{tag:e.name,isEnabled:!0}:{tag:e.name,isEnabled:!1,disabledReason:ae(e.disabledReason)}}))}},fe=function(e){return{ownership:e.ownership,products:e.products.map((function(e){return e.isEnabled?{name:e.tag,isEnabled:!0}:{name:e.tag,isEnabled:!1,disabledReason:ce(e.disabledReason)}}))}},de={canView:!1,canEdit:!1,canDelete:!1},pe={partnerId:"",accountId:void 0,access:{partnerStyle:de,benefitsOnboarding:de,webBenefits:de,benefitsPlan:de},error:void 0,openError:function(e){}},he=(0,e.kr)(pe),be=function(){return be=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},be.apply(this,arguments)},ge=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function c(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}s((r=r.apply(e,t||[])).next())}))},me=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},ve=function(e,t){var n=(0,s.eJ)(!0),r=n[0],o=n[1],i=(0,s.qp)(he).openError,a=(0,s.eJ)(),c=a[0],l=a[1],u=(0,s.I4)((function(e){var t;throw i((null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)?e.response.data:"We have encountered an unexpected error. Please try again later."),"Unexpected API error. Error code: ".concat(e.code,"; Error message: ").concat(e.message)}),[i]),f=(0,s.I4)((function(){return ge(void 0,void 0,void 0,(function(){return me(this,(function(n){switch(n.label){case 0:return o(!0),[4,ie.getConfig(e,t).then(_e).then(l).catch((function(){return i("Oops, there was an error. Please refresh this page")})).finally((function(){return o(!1)}))];case 1:return n.sent(),[2]}}))}))}),[e,t,i]),d=(0,s.I4)((function(t){return ge(void 0,void 0,void 0,(function(){return me(this,(function(n){switch(n.label){case 0:return[4,ie.upsertImplementationStyle(e,$[t]).then(f).catch(u)];case 1:return n.sent(),[2]}}))}))}),[e,f,u]),p=(0,s.I4)((function(n){return ge(void 0,void 0,void 0,(function(){return me(this,(function(r){switch(r.label){case 0:return[4,ie.upsertOffers(e,n.map(ye),t).then(f).catch(u)];case 1:return r.sent(),[2]}}))}))}),[e,t,f,u]),h=(0,s.I4)((function(n){return ge(void 0,void 0,void 0,(function(){return me(this,(function(r){switch(r.label){case 0:return[4,ie.upsertInjectedStyle(e,n,t).then(f).catch(u)];case 1:return r.sent(),[2]}}))}))}),[e,t,f,u]),b=(0,s.I4)((function(n){return ge(void 0,void 0,void 0,(function(){return me(this,(function(r){switch(r.label){case 0:return[4,ie.upsertBenefitsAllowance(e,n,t).then(f).catch(u)];case 1:return r.sent(),[2]}}))}))}),[e,t,f,u]),g=(0,s.I4)((function(){return ge(void 0,void 0,void 0,(function(){return me(this,(function(n){switch(n.label){case 0:return[4,ie.deleteOffers(e,t).then(f).catch(u)];case 1:return n.sent(),[2]}}))}))}),[t,f,u,e]),m=(0,s.I4)((function(){return ge(void 0,void 0,void 0,(function(){return me(this,(function(n){switch(n.label){case 0:return[4,ie.deleteInjectedStyle(e,t).then(f).catch(u)];case 1:return n.sent(),[2]}}))}))}),[t,f,u,e]),v=(0,s.I4)((function(){return ge(void 0,void 0,void 0,(function(){return me(this,(function(n){switch(n.label){case 0:return[4,ie.deleteBenefitsAllowance(e,t).then(f).catch(u)];case 1:return n.sent(),[2]}}))}))}),[t,f,u,e]);return{isLoading:r,config:c,fetchConfig:f,upsertImplementationStyle:d,upsertOffers:p,deleteOffers:g,upsertInjectedStyle:h,deleteInjectedStyle:m,upsertBenefitsAllowance:b,deleteBenefitsAllowance:v}},we=function(e){return be(be({},e),{disabledReason:e.disabledReason?ce(e.disabledReason):q.Default})},ye=function(e){return be(be({},e),{disabledReason:e.disabledReason?ae(e.disabledReason):X.Default})},_e=function(e){return{implementationStyle:{value:(t=e.implementationStyle.value,$[t]),ownership:G[e.implementationStyle.ownership]},injectedStyleEnablement:{value:e.injectedStyleEnablement.value,ownership:G[e.injectedStyleEnablement.ownership]},benefitsAllowanceEnablement:{value:e.benefitsAllowanceEnablement.value,ownership:G[e.benefitsAllowanceEnablement.ownership]},offerEnablements:{ownership:G[e.offerEnablements.ownership],value:e.offerEnablements.value.map(we)}};var t},xe=function(){return xe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},xe.apply(this,arguments)};const ke=function(e){return r("svg",xe({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"lg"===e.size?"h-10 w-10":"h-5 w-5"},{children:[r("path",{d:"M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM1.99743 8C1.99743 11.3151 4.68487 14.0026 8 14.0026C11.3151 14.0026 14.0026 11.3151 14.0026 8C14.0026 4.68487 11.3151 1.99743 8 1.99743C4.68487 1.99743 1.99743 4.68487 1.99743 8Z",class:"light"===e.theme?"fill-white":"fill-gray-200","fill-opacity":"light"===e.theme?"0.3":"1"}),r("path",{d:"M8 1C8 0.447715 8.44943 -0.00643769 8.99741 0.0624193C9.70527 0.151368 10.3996 0.334798 11.0615 0.608964C12.0321 1.011 12.914 1.60028 13.6569 2.34315C14.3997 3.08602 14.989 3.96793 15.391 4.93853C15.6652 5.60043 15.8486 6.29473 15.9376 7.0026C16.0064 7.55057 15.5523 8 15 8C14.4477 8 14.0085 7.54925 13.9169 7.00462C13.842 6.55939 13.7169 6.12298 13.5433 5.7039C13.2417 4.97595 12.7998 4.31451 12.2426 3.75736C11.6855 3.20021 11.0241 2.75825 10.2961 2.45672C9.87702 2.28313 9.44061 2.15804 8.99538 2.08314C8.45075 1.99152 8 1.55228 8 1Z",class:"light"===e.theme?"fill-white":"fill-teal-500"})]}))},Ee=l.forwardRef((function({title:e,titleId:t,...n},r){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?l.createElement("title",{id:t},e):null,l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"}))}));var Ce,Oe=n(608),Se=n.n(Oe),je=n(783),Pe=n.n(je),Re=function(){return Re=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Re.apply(this,arguments)};!function(e){e[e.Pencil=0]="Pencil",e[e.Trash=1]="Trash",e[e.ExclamationTriangle=2]="ExclamationTriangle"}(Ce||(Ce={}));var Te=function(e){switch(e.iconType){case Ce.Pencil:return r(Se(),Re({},e));case Ce.Trash:return r(Pe(),Re({},e));case Ce.ExclamationTriangle:return r(Ee,Re({},e))}},Ae=function(){return Ae=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ae.apply(this,arguments)},Ne=function(e){var t=(0,s.eJ)(!1),n=t[0],o=t[1],i=e.class,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["class"]);return r("div",Ae({class:"".concat(e.hidden?"hidden":"")},{children:r("button",Ae({type:"button"},a,{class:"".concat(i," disabled:bg-gray-300 disabled:cursor-not-allowed disabled:opacity-50"),onClick:e.onClickPromise?function(){return t=void 0,r=void 0,a=function(){return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}(this,(function(t){switch(t.label){case 0:if(!e.onClickPromise||n)return[3,6];o(!0),t.label=1;case 1:return t.trys.push([1,4,,5]),e.onClickPromise?[4,e.onClickPromise()]:[3,3];case 2:t.sent(),t.label=3;case 3:return[3,5];case 4:return t.sent(),[3,5];case 5:o(!1),t.label=6;case 6:return[2]}}))},new((i=void 0)||(i=Promise))((function(e,n){function o(e){try{s(a.next(e))}catch(e){n(e)}}function c(e){try{s(a.throw(e))}catch(e){n(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(o,c)}s((a=a.apply(t,r||[])).next())}));var t,r,i,a}:e.onClick},{children:[r("div",Ae({class:"relative ".concat(n?"invisible":"")},{children:e.children})),n&&r("div",Ae({class:"absolute animate-spin"},{children:r(ke,{theme:"light"})}))]}))}))},Ie=function(e){return r(Ne,Ae({},e,{children:[null!=e.iconType&&r(Te,{iconType:e.iconType,class:"h-5 w-5"}),e.children]}))};const De=Ne;var Be=function(){return Be=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Be.apply(this,arguments)},Ue="inline-flex justify-center rounded-md border border-transparent py-2 px-4 shadow-sm focus:outline-none focus:ring-indigo-500 focus:ring-2 focus:ring-offset-2 text-sm font-medium text-white";const Le=function(t){var n=t.canEdit,o=t.onEdit,i=t.onSave,a=t.onCancel,c=t.canDelete,l=t.onDelete,u=t.isEditMode,f=(0,s.eJ)(null!=u&&u),d=f[0],p=f[1];return(0,s.d4)((function(){p(!!u)}),[u]),r("div",Be({class:"flex flex-row space-x-2"},{children:[d&&r(e.HY,{children:[r(De,Be({class:"".concat(Ue," bg-indigo-600 hover:bg-indigo-700"),onClickPromise:i},{children:"Save"})),r(De,Be({className:"".concat(Ue," border-gray-300 bg-white text-gray-700 hover:bg-gray-50 focus:ring-gray-300"),onClick:function(){p(!1),a()}},{children:"Cancel"}))]}),!d&&r(e.HY,{children:[n&&r(Ie,{class:"".concat(Ue," bg-indigo-600 hover:bg-indigo-700"),iconType:Ce.Pencil,onClick:function(){p(!0),o()}}),c&&r(Ie,{class:"".concat(Ue," bg-red-600 hover:bg-red-700 focus:ring-red-600"),onClick:l,iconType:Ce.Trash})]})]}))};var Me=function(){return Me=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Me.apply(this,arguments)},ze=function(e){var t,n,o=e.children,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children"]),a=l.default.Children.toArray(o).find((function(e){return e.type===Ye}));return r("div",Me({class:"relative z-10","aria-labelledby":"modal-title",role:"dialog","aria-modal":"true"},{children:[r("div",{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"}),r("div",Me({class:"fixed inset-0 z-10 overflow-y-auto"},{children:r("div",Me({class:"flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"},{children:r("div",Me({class:"relative transform overflow-hidden rounded-lg bg-white px-4 pt-5 pb-4 text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg sm:p-6"},{children:[r("div",Me({class:"sm:flex sm:items-start"},{children:[r("div",Me({class:"mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full bg-red-100 sm:mx-0 sm:h-10 sm:w-10"},{children:r(Te,{iconType:Ce.ExclamationTriangle,className:"h-6 w-6 text-red-600"})})),r("div",Me({class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"},{children:[r("h3",Me({class:"text-lg font-medium leading-6 text-gray-900",id:"modal-title"},{children:i.headingText})),r("div",Me({class:"mt-2"},{children:[r("p",Me({class:"text-sm text-gray-500"},{children:i.bodyTest})),a&&a]}))]}))]})),r("div",Me({class:"mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"},{children:[r(De,Me({class:"inline-flex w-full justify-center rounded-md border border-transparent bg-red-600 px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 sm:ml-3 sm:w-auto sm:text-sm",disabled:i.confirm.disabled,onClickPromise:i.confirm.handler},{children:null!==(t=i.confirm.text)&&void 0!==t?t:"Confirm"})),r(De,Me({class:"mt-3 inline-flex w-full justify-center rounded-md border border-gray-300 bg-white px-4 py-2 text-base font-medium text-gray-700 shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 sm:mt-0 sm:w-auto sm:text-sm",disabled:i.cancel.disabled,onClick:i.cancel.handler},{children:null!==(n=i.cancel.text)&&void 0!==n?n:"Cancel"}))]}))]}))}))}))]}))},Ye=function(t){var n=t.children;return r(e.HY,{children:n})};ze.Content=Ye;const He=ze;var Fe,Ve=n(63),Je=n.n(Ve),We=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function c(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}s((r=r.apply(e,t||[])).next())}))},qe=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}};!function(e){e[e.View=0]="View",e[e.Edit=1]="Edit"}(Fe||(Fe={}));var $e=function(e,t,n,r){var o=(0,s.qp)(he).accountId,i=(0,s.eJ)(t.value),a=i[0],c=i[1],l=(0,s.eJ)(Fe.View),u=l[0],f=l[1],d=(0,s.eJ)(!1),p=d[0],h=d[1],b=(0,s.Ye)((function(){return u===Fe.Edit?"(*)":t.ownership===G.Default?"(Default)":o&&t.ownership===G.Partner?"(Inherited)":""}),[o,t.ownership,u]),g=(0,s.Ye)((function(){return o?t.ownership===G.Account:t.ownership===G.Partner}),[o,t.ownership]),m=(0,s.Ye)((function(){return e.canEdit}),[e.canEdit]),v=(0,s.Ye)((function(){return e.canDelete&&g}),[e.canDelete,g]),w=(0,s.I4)((function(){return We(void 0,void 0,void 0,(function(){return qe(this,(function(e){return f(Fe.View),c(t.value),h(!1),[2]}))}))}),[t,c]),y=(0,s.I4)((function(e){c(e)}),[c]),_=(0,s.I4)((function(){return We(void 0,void 0,void 0,(function(){return qe(this,(function(e){switch(e.label){case 0:return!g||g&&!Je()(t.value,a)?[4,n(a)]:[3,2];case 1:e.sent(),e.label=2;case 2:return f(Fe.View),[2]}}))}))}),[t,g,n,a]),x=(0,s.I4)((function(){return We(void 0,void 0,void 0,(function(){return qe(this,(function(e){switch(e.label){case 0:return f(Fe.View),[4,null==r?void 0:r()];case 1:return e.sent(),[2]}}))}))}),[r]);return{titleSuffix:b,mode:u,confirmingDelete:p,canView:e.canView,canEdit:m,canDelete:v,config:a,handleEditButtonClick:function(){f(Fe.Edit)},handleCancelButtonClick:w,handleDeleteButtonClick:function(){h(!0)},handleChange:y,handleSaveButtonClick:_,handleDeleteConfirmButtonClick:x}},Ge=function(){return Ge=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ge.apply(this,arguments)};const Ze=function(e){var t=e.value,n=e.disabled,o=e.options,i=e.onChange;return r("select",Ge({readOnly:n,disabled:n,autocomplete:"off",value:o.findIndex((function(e){return e.value===t})),className:"max-w-lg focus:ring-indigo-500 focus:border-indigo-500 w-full shadow-sm sm:max-w-xs border-gray-300 rounded-md",onChange:function(e){var t;i(null===(t=o.find((function(t,n){return n.toString()===e.currentTarget.value})))||void 0===t?void 0:t.value)}},{children:[o.map((function(e,t){return r("option",Ge({value:t.toString()},{children:e.label}),e.label)})),";"]}))};var Xe=function(){return Xe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Xe.apply(this,arguments)};const Qe=function(t){var n=(0,s.eJ)(t.open),o=n[0],i=n[1],a=(0,s.eJ)(!1),c=a[0],l=a[1];(0,s.d4)((function(){i(t.open)}),[t.open]);var u=(0,s.eJ)(""),f=u[0],d=u[1],p=(0,s.Ye)((function(){return!t.input.match(f)}),[f,t]);return o?r(He,Xe({headingText:t.header,confirm:{text:t.primaryButton.text,disabled:p,handler:function(){return e=void 0,n=void 0,o=function(){return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}(this,(function(e){switch(e.label){case 0:return l(!0),[4,t.onStatusChange("confirmed").finally((function(){l(!1)}))];case 1:return e.sent(),i(!1),t.onChange(!1),[2]}}))},new((r=void 0)||(r=Promise))((function(t,i){function a(e){try{s(o.next(e))}catch(e){i(e)}}function c(e){try{s(o.throw(e))}catch(e){i(e)}}function s(e){var n;e.done?t(e.value):(n=e.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,c)}s((o=o.apply(e,n||[])).next())}));var e,n,r,o}},cancel:{text:t.secondaryButton.text,disabled:c,handler:function(){t.onStatusChange("canceled"),i(!1),t.onChange(!1)}}},{children:r(He.Content,{children:r("div",{children:[r(t.content,{}),r("label",Xe({className:"text-sm font-semibold"},{children:t.input.label})),r("input",{type:"text",placeholder:t.input.placeholder,className:"max-w-lg focus:ring-indigo-500 focus:border-indigo-500 w-full shadow-sm sm:max-w-xs border-gray-300 rounded-md",onChange:function(e){d(e.currentTarget.value)}})]})})})):r(e.HY,{})};var Ke=function(){return Ke=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ke.apply(this,arguments)},et=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function c(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}s((r=r.apply(e,t||[])).next())}))},tt=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},nt=Object.values($).map((function(e){return{label:e,value:e}})),rt=(0,e.kr)({}),ot=function(t){var n,o=(0,s.qp)(he),i=o.partnerId,a=o.openError,c=o.access.partnerStyle,l=(0,s.qp)(rt),u=l.partnerStyle,f=l.update,d=$e(c,t.config,t.onUpsert),p=d.titleSuffix,h=d.mode,b=d.canEdit,g=d.config,m=d.handleEditButtonClick,v=d.handleCancelButtonClick,w=d.handleChange,y=d.handleSaveButtonClick;(0,s.d4)((function(){var e={mode:h,value:g,ownership:t.config.ownership};Je()(u,e)||f({partnerStyle:e})}),[g,h,u,t,f]);var _=(0,s.eJ)(),x=_[0],k=_[1],E=at(t.config.value,g,null==x?void 0:x.partnerName,null==x?void 0:x.numberOfAccounts,y),C=(0,s.I4)((function(){return et(void 0,void 0,void 0,(function(){var e,n;return tt(this,(function(r){switch(r.label){case 0:return e=t.config.value,(n=e===g||e!==$.Injected||"confirmed"===E.statusRef.current)?[3,2]:[4,ie.getInjectedStyle(i).then((function(e){k(e),e.numberOfAccounts>0?E.setOpen(!0):n=!0})).catch((function(){a("Unexpected error. Please try again later.")}))];case 1:r.sent(),r.label=2;case 2:return n?[4,y()]:[3,4];case 3:r.sent(),r.label=4;case 4:return[2]}}))}))}),[g,E,a,i,t.config.value,y]);return r(e.HY,{children:[r("div",{children:[r("div",Ke({class:"flex"},{children:[r("div",Ke({class:"basis-1/2"},{children:r("h3",Ke({class:"text-lg font-semibold text-gray-900"},{children:"Network Partner Implementation Style"}))})),r("div",Ke({class:"basis-3/4"},{children:r(Le,{canEdit:b,onEdit:m,onSave:C,onCancel:v,isEditMode:h==Fe.Edit})}))]})),r("div",Ke({class:"flex flex-col"},{children:[r("label",Ke({className:"text-sm font-semibold"},{children:["Benefits in onboarding ",p]})),r(Ze,{disabled:h===Fe.View,value:g,options:nt,onChange:w})]}))]}),r(Qe,{open:E.open,header:"Warning",content:E.content,input:{label:"Partner name",placeholder:null!==(n=null==x?void 0:x.partnerName)&&void 0!==n?n:"",match:E.inputMatch},primaryButton:{text:"Confirm"},secondaryButton:{text:"Cancel"},onStatusChange:E.onStatusChange,onChange:E.setOpen})]})},it=function(e){var t=(0,s.qp)(he).access.benefitsOnboarding,n=(0,s.qp)(rt).partnerStyle,o=$e(t,e.config,e.onUpsert,e.onDelete),i=o.titleSuffix,a=o.mode,c=o.confirmingDelete,l=o.canEdit,u=o.canDelete,f=o.config,d=o.handleEditButtonClick,p=o.handleCancelButtonClick,h=o.handleDeleteButtonClick,b=o.handleChange,g=o.handleSaveButtonClick,m=o.handleDeleteConfirmButtonClick,v=(0,s.Ye)((function(){return(null==n?void 0:n.value)!==$.Injected}),[null==n?void 0:n.value]),w=(0,s.Ye)((function(){return l&&(null==n?void 0:n.ownership)===G.Partner&&(null==n?void 0:n.mode)===Fe.View}),[l,null==n?void 0:n.mode,null==n?void 0:n.ownership]);return r("div",Ke({className:v?"hidden":""},{children:[c&&r(He,{bodyTest:"Are you sure you want to reset the current injected workflow settings? This action cannot be undone.",headingText:"Reset Injected Workflow Settings",cancel:{handler:p},confirm:{text:"Reset",handler:m}}),r("div",Ke({class:"flex"},{children:[r("div",Ke({class:"basis-1/2"},{children:r("h3",Ke({class:"ml-[3rem] text-lg font-semibold text-gray-900"},{children:"Injected Workflow Settings ".concat(i)}))})),r("div",Ke({class:"basis-3/4"},{children:r(Le,{canEdit:w,onEdit:d,canDelete:u,onSave:g,onCancel:p,onDelete:h,isEditMode:a==Fe.Edit})}))]})),r("div",Ke({class:"flex flex-col"},{children:r(W,{className:"ml-[3rem] flex items-center h-[3rem]",label:"Benefits step in onboarding",disabled:a===Fe.View,value:f.isEnabled,onChange:function(e){return b({isEnabled:e})}})}))]}))},at=function(e,t,n,o,i){var a=(0,s.eJ)(!1),c=a[0],l=a[1],u=(0,s.sO)("idle"),f=(0,s.I4)((function(e){return et(void 0,void 0,void 0,(function(){return tt(this,(function(t){switch(t.label){case 0:return u.current=e,"confirmed"!==e?[3,2]:[4,i()];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))}),[i]);return{open:c,setOpen:l,statusRef:u,onStatusChange:f,content:function(){return r("div",Ke({className:"my-5 flex flex-col gap-1 text-sm"},{children:[r("p",{children:["You are switching the partner implementation style from"," ",r("span",Ke({className:"font-semibold"},{children:e}))," to"," ",r("span",Ke({className:"font-semibold"},{children:t})),"."]}),r("p",{children:["This action will delete account override configurations for"," ",r("span",Ke({className:"font-semibold"},{children:o}))," accounts."]}),o&&o>100&&r("p",{children:"This process could take a significant amount of time (> 1 min) please do not close the window."}),r("p",Ke({className:"mt-5"},{children:["Confirm the partner name ",r("span",Ke({className:"font-semibold"},{children:["(",n,")"]}))," to delete."]}))]}))},inputMatch:function(e){return e.length>0&&e.toLowerCase()===(null==n?void 0:n.toLowerCase())}}};const ct=function(){var e=(0,s.qp)(he),t=e.partnerId,n=e.accountId,o=(0,s.eJ)(),i=o[0],a=o[1],c=ve(t,n),l=c.isLoading,u=c.config,f=c.fetchConfig,d=c.upsertImplementationStyle,p=c.upsertInjectedStyle,h=c.deleteInjectedStyle;return(0,s.d4)((function(){f()}),[f]),l?r("div",Ke({class:"flex justify-center items-center min-h-[300px]"},{children:r("span",Ke({class:"animate-spin"},{children:r(ke,{size:"lg"})}))})):r(rt.Provider,Ke({value:Ke(Ke({},i),{update:a})},{children:u&&r("div",Ke({className:"flex flex-col gap-7"},{children:[r(ot,{config:u.implementationStyle,onUpsert:d}),r(it,{config:u.injectedStyleEnablement,onUpsert:p,onDelete:h})]}))}))};var st=function(){return st=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},st.apply(this,arguments)};const lt=function(e){var t=e.className,n=e.editable,o=e.item,i=e.onChange;return r("div",st({class:"flex flex-row items-center justify-start space-x-10 ".concat(t)},{children:[r(W,{label:o.name,disabled:!n,value:o.isEnabled,onChange:function(e){return i(e?{isEnabled:!0}:{isEnabled:!1,disabledReason:q.Default})}}),!o.isEnabled&&r("div",st({class:"flex flex-row items-center space-x-2 w-1/2 text-sm"},{children:[r("label",st({for:"reason"},{children:"Reason"})),r("select",st({readOnly:!n,disabled:!n,autocomplete:"off",value:o.disabledReason,class:"max-w-lg focus:ring-indigo-500 focus:border-indigo-500 w-full shadow-sm sm:max-w-xs border-gray-300 rounded-md",onChange:function(e){i({isEnabled:!1,disabledReason:e.currentTarget.value})}},{children:[Q.map((function(e){return r("option",{children:e.value},e.name)})),";"]}))]}))]}))};var ut=function(){return ut=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ut.apply(this,arguments)},ft=function(e){return e.reduce((function(e,t){var n;return ut(ut({},e),((n={})[t.offerName]={isEnabled:t.isEnabled,disabledReason:t.disabledReason},n))}),{})};const dt=function(e){var t=(0,s.qp)(he).access.benefitsOnboarding,n=(0,s.I4)((function(t){return e.onUpsert(function(e){return Object.entries(e).map((function(e){var t=e[0],n=e[1];return{isEnabled:n.isEnabled,disabledReason:n.disabledReason,offerName:t}}))}(t))}),[e]),o=$e(t,{value:ft(e.config.value),ownership:e.config.ownership},n,e.onDelete),i=o.titleSuffix,a=o.mode,c=o.confirmingDelete,l=o.canEdit,u=o.canDelete,f=o.config,d=o.handleEditButtonClick,p=o.handleCancelButtonClick,h=o.handleDeleteButtonClick,b=o.handleChange,g=o.handleSaveButtonClick,m=o.handleDeleteConfirmButtonClick;return r("div",{children:[c&&r(He,{bodyTest:"Are you sure you want to reset the current benefits plan in onboarding settings? This action cannot be undone.",headingText:"Reset Benefits Plan in Onboarding Settings",cancel:{handler:p},confirm:{text:"Reset",handler:m}}),r("div",ut({class:"flex"},{children:[r("div",ut({class:"basis-1/2"},{children:r("h3",ut({class:"text-lg font-semibold text-gray-900"},{children:"Benefits Plan in Onboarding Settings ".concat(i)}))})),r("div",ut({class:"basis-3/4"},{children:r(Le,{canEdit:l,onEdit:d,canDelete:u,onSave:g,onCancel:p,onDelete:h,isEditMode:a==Fe.Edit})}))]})),r("div",ut({class:"flex flex-col"},{children:Object.entries(f).map((function(e){var t=e[0],n=e[1];return r(lt,{className:"flex items-center h-[3rem]",editable:a===Fe.Edit,item:ut(ut({},n),{name:"".concat(t," Screen")}),onChange:function(e){var n;b(ut(ut({},f),((n={})[t]=e,n)))}},t)}))}))]})};var pt=function(){return pt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},pt.apply(this,arguments)};const ht=function(e){var t=(0,s.qp)(he).access.benefitsOnboarding,n=$e(t,e.config,e.onUpsert,e.onDelete),o=n.titleSuffix,i=n.mode,a=n.confirmingDelete,c=n.canEdit,l=n.canDelete,u=n.config,f=n.handleEditButtonClick,d=n.handleCancelButtonClick,p=n.handleDeleteButtonClick,h=n.handleChange,b=n.handleSaveButtonClick,g=n.handleDeleteConfirmButtonClick;return r("div",{children:[a&&r(He,{bodyTest:"Are you sure you want to reset the current benefits allowance in onboarding settings? This action cannot be undone.",headingText:"Reset Benefits Allowance in Onboarding Settings",cancel:{handler:d},confirm:{text:"Reset",handler:g}}),r("div",pt({class:"flex"},{children:[r("div",pt({class:"basis-1/2"},{children:r("h3",pt({class:"text-lg font-semibold text-gray-900"},{children:"Benefits Allowance in Onboarding Settings ".concat(o)}))})),r("div",pt({class:"basis-3/4"},{children:r(Le,{canEdit:c,onEdit:f,canDelete:l,onSave:b,onCancel:d,onDelete:p,isEditMode:i==Fe.Edit})}))]})),r("div",pt({class:"flex flex-col"},{children:r(lt,{className:"mt-[2rem]",editable:i===Fe.Edit,item:pt(pt({},u),{name:"Benefits Allowance"}),onChange:h})}))]})};var bt=function(){return bt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},bt.apply(this,arguments)};const gt=function(){var t=(0,s.qp)(he),n=t.partnerId,o=t.accountId,i=ve(n,o),a=i.isLoading,c=i.config,l=i.fetchConfig,u=i.upsertOffers,f=i.deleteOffers,d=i.upsertBenefitsAllowance,p=i.deleteBenefitsAllowance;return(0,s.d4)((function(){l()}),[l]),a?r("div",bt({class:"flex justify-center items-center min-h-[300px]"},{children:r("span",bt({class:"animate-spin"},{children:r(ke,{size:"lg"})}))})):r(e.HY,{children:c&&r(e.HY,{children:[r("div",bt({className:"flex flex-col gap-7"},{children:r(dt,{config:c.offerEnablements,onUpsert:u,onDelete:f})})),r("hr",{className:"my-10"}),r("div",bt({className:"flex flex-col gap-7"},{children:r(ht,{config:c.benefitsAllowanceEnablement,onUpsert:d,onDelete:p})}))]})})};var mt,vt=function(){return vt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},vt.apply(this,arguments)},wt=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function c(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}s((r=r.apply(e,t||[])).next())}))},yt=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},_t=function(){if(mt)return mt;throw"Axios client has not been initialized yet."},xt=function(e,t){return wt(void 0,void 0,void 0,(function(){var n;return yt(this,(function(r){switch(r.label){case 0:return n="/config?partnerId=".concat(e),t&&(n+="&accountId=".concat(t)),[4,_t().get(n)];case 1:return[2,r.sent().data]}}))}))},kt=function(e,t,n){return wt(void 0,void 0,void 0,(function(){return yt(this,(function(r){switch(r.label){case 0:return[4,_t().put("config",vt(vt({},t),{partnerId:e,accountId:n||""}))];case 1:return r.sent(),[2]}}))}))},Et=function(e,t){return wt(void 0,void 0,void 0,(function(){var n;return yt(this,(function(r){switch(r.label){case 0:return n="/config?partnerId=".concat(e),t&&(n+="&accountId=".concat(t)),[4,_t().delete(n)];case 1:return r.sent(),[2]}}))}))},Ct=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function c(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}s((r=r.apply(e,t||[])).next())}))},Ot=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},St=function(){return St=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},St.apply(this,arguments)},jt=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function c(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}s((r=r.apply(e,t||[])).next())}))},Pt=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}};const Rt=function(t){var n=t.partnerId,o=t.accountId,i=(0,s.eJ)(!1),a=i[0],c=i[1],l=(0,s.eJ)(!1),u=l[0],f=l[1],d=(0,s.qp)(he).access.webBenefits,p=function(e,t){var n=(0,s.eJ)(!0),r=n[0],o=n[1],i=(0,s.eJ)(""),a=i[0],c=i[1],l=(0,s.eJ)(K),u=l[0],f=l[1],d=(0,s.I4)((function(){return Ct(void 0,void 0,void 0,(function(){return Ot(this,(function(n){switch(n.label){case 0:return o(!0),c(""),[4,xt(e,t).then(le).then(f).catch((function(){return c("Oops, there was an error. Please refresh this page")})).finally((function(){return o(!1)}))];case 1:return n.sent(),[2]}}))}))}),[e,t]),p=(0,s.I4)((function(n){return Ct(void 0,void 0,void 0,(function(){return Ot(this,(function(r){switch(r.label){case 0:return c(""),[4,kt(e,se(n),t).then(d).catch((function(){return c("Unable to save config")}))];case 1:return r.sent(),[2]}}))}))}),[e,t,d]),h=(0,s.I4)((function(){return Ct(void 0,void 0,void 0,(function(){return Ot(this,(function(n){switch(n.label){case 0:return c(""),[4,Et(e,t).then(d).catch((function(){return c("Unable to delete config")}))];case 1:return n.sent(),[2]}}))}))}),[t,d,e]);return{isLoading:r,error:a,config:u,fetchConfig:d,updateConfig:p,deleteConfig:h}}(n,o),h=p.isLoading,b=p.error,g=p.config,m=p.fetchConfig,v=p.updateConfig,w=p.deleteConfig,y=(0,s.eJ)(g),_=y[0],x=y[1];(0,s.d4)((function(){x(g)}),[g]);var k=(0,s.I4)((function(){return jt(void 0,void 0,void 0,(function(){return Pt(this,(function(e){switch(e.label){case 0:return[4,v(_)];case 1:return e.sent(),c(!1),[2]}}))}))}),[_,v]),E=(0,s.I4)((function(){c(!1),x(g)}),[g]),C=(0,s.I4)((function(){return jt(void 0,void 0,void 0,(function(){return Pt(this,(function(e){switch(e.label){case 0:return[4,w()];case 1:return e.sent(),f(!1),[2]}}))}))}),[w]);return(0,s.d4)((function(){m()}),[m]),h?r("div",St({class:"flex justify-center items-center min-h-[300px]"},{children:r("span",St({class:"animate-spin"},{children:r(ke,{size:"lg"})}))})):b?r("h1",St({class:"text-red-500"},{children:b})):r(e.HY,{children:[u&&r(He,{bodyTest:"Are you sure you want to reset the current benefits configuration? This action cannot be undone.",headingText:"Reset Benefits Configuration",cancel:{handler:function(){return f(!1)}},confirm:{text:"Reset",handler:C}}),r("div",St({class:"flex"},{children:[r("div",St({class:"basis-1/2"},{children:r("h3",St({class:"text-lg font-semibold text-gray-900"},{children:"Flare Benefits Settings".concat(a?" (*)":"Specific"==g.ownership?"":" (".concat(g.ownership,")"))}))})),r("div",St({class:"basis-3/4"},{children:r(Le,{canEdit:d.canEdit,onEdit:function(){return c(!0)},canDelete:d.canDelete&&"Specific"===g.ownership,onSave:k,onCancel:E,onDelete:function(){return f(!0)}})}))]})),r("div",{children:[r(lt,{className:"h-[3rem]",editable:a,item:St(St({},_.wellbeing),{name:"Wellbeing Hub"}),onChange:function(e){return x(St(St({},_),{wellbeing:e}))}}),r(lt,{className:"h-[3rem]",editable:a,item:St(St({},_.flareApp),{name:"Flare App"}),onChange:function(e){return x(St(St({},_),{flareApp:e}))}})]})]})};var Tt,At=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function c(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}s((r=r.apply(e,t||[])).next())}))},Nt=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},It=function(){if(Tt)return Tt;throw"Axios client has not been initialized yet."},Dt=function(e,t){return At(void 0,void 0,void 0,(function(){var n;return Nt(this,(function(r){switch(r.label){case 0:return n="/partners/".concat(e,"/config"),t&&(n="/partners/".concat(e,"/accounts/").concat(t,"/config")),[4,It().get(n)];case 1:return[2,r.sent().data]}}))}))},Bt=function(e,t,n){return At(void 0,void 0,void 0,(function(){var r;return Nt(this,(function(o){switch(o.label){case 0:return r="/partners/".concat(e,"/config"),n&&(r="/partners/".concat(e,"/accounts/").concat(n,"/config")),[4,It().put(r,t)];case 1:return o.sent(),[2]}}))}))},Ut=function(e,t){return At(void 0,void 0,void 0,(function(){var n;return Nt(this,(function(r){switch(r.label){case 0:return n="/partners/".concat(e,"/config"),t&&(n="/partners/".concat(e,"/accounts/").concat(t,"/config")),[4,It().delete(n)];case 1:return r.sent(),[2]}}))}))},Lt=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function c(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}s((r=r.apply(e,t||[])).next())}))},Mt=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},zt=function(){return zt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},zt.apply(this,arguments)},Yt=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function c(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}s((r=r.apply(e,t||[])).next())}))},Ht=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}};const Ft=function(t){var n=t.partnerId,o=t.accountId,i=(0,s.eJ)(!1),a=i[0],c=i[1],l=(0,s.eJ)(!1),u=l[0],f=l[1],d=(0,s.qp)(he).access.benefitsPlan,p=function(e,t){var n=(0,s.eJ)(!0),r=n[0],o=n[1],i=(0,s.eJ)(""),a=i[0],c=i[1],l=(0,s.eJ)(ee),u=l[0],f=l[1],d=(0,s.I4)((function(){return Lt(void 0,void 0,void 0,(function(){return Mt(this,(function(n){switch(n.label){case 0:return o(!0),c(""),[4,Dt(e,t).then(fe).then(f).catch((function(){return c("Oops, there was an error. Please refresh this page")})).finally((function(){return o(!1)}))];case 1:return n.sent(),[2]}}))}))}),[e,t]),p=(0,s.I4)((function(n){return Lt(void 0,void 0,void 0,(function(){return Mt(this,(function(r){switch(r.label){case 0:return c(""),[4,Bt(e,ue(n),t).then(d).catch((function(){return c("Unable to save config")}))];case 1:return r.sent(),[2]}}))}))}),[e,t,d]),h=(0,s.I4)((function(){return Lt(void 0,void 0,void 0,(function(){return Mt(this,(function(n){switch(n.label){case 0:return c(""),[4,Ut(e,t).then(d).catch((function(){return c("Unable to delete config")}))];case 1:return n.sent(),[2]}}))}))}),[t,d,e]);return{isLoading:r,error:a,config:u,fetchConfig:d,updateConfig:p,deleteConfig:h}}(n,o),h=p.isLoading,b=p.error,g=p.config,m=p.fetchConfig,v=p.updateConfig,w=p.deleteConfig,y=(0,s.eJ)(g),_=y[0],x=y[1];(0,s.d4)((function(){m()}),[m]),(0,s.d4)((function(){x(g)}),[g]);var k=(0,s.I4)((function(){return Yt(void 0,void 0,void 0,(function(){return Ht(this,(function(e){switch(e.label){case 0:return[4,v(_)];case 1:return e.sent(),c(!1),[2]}}))}))}),[_,v]),E=(0,s.I4)((function(){c(!1),x(g)}),[g]),C=(0,s.I4)((function(){return Yt(void 0,void 0,void 0,(function(){return Ht(this,(function(e){switch(e.label){case 0:return[4,w()];case 1:return e.sent(),f(!1),[2]}}))}))}),[w]),O=(0,s.I4)((function(e){if(e.isEnabled){var t=function(e,t){var n=e.products.map((function(e){return e.name===t?{name:t,isEnabled:!0}:e}));return Z(Z({},e),{products:n})}(_,e.name);x(t)}else t=function(e,t,n){var r=e.products.map((function(e){return e.name===t?{name:t,isEnabled:!1,disabledReason:n}:e}));return Z(Z({},e),{products:r})}(_,e.name,e.disabledReason),x(t)}),[_]);return h?r("div",zt({class:"flex justify-center items-center min-h-[300px]"},{children:r("span",zt({class:"animate-spin"},{children:r(ke,{size:"lg"})}))})):b?r("h1",zt({class:"text-red-500"},{children:b})):r(e.HY,{children:[u&&r(He,{bodyTest:"Are you sure you want to reset the current benefits plan configuration? This action cannot be undone.",headingText:"Reset Benefits Plan Configuration",cancel:{handler:function(){return f(!1)}},confirm:{text:"Reset",handler:C}}),r("div",zt({class:"flex"},{children:[r("div",zt({class:"basis-1/2"},{children:r("h3",zt({class:"text-lg font-semibold text-gray-900"},{children:"Benefits Plan Settings".concat(a?" (*)":"Specific"==g.ownership?"":" (".concat(g.ownership,")"))}))})),r("div",zt({class:"basis-3/4"},{children:r(Le,{canEdit:d.canEdit,onEdit:function(){return c(!0)},canDelete:d.canDelete&&"Specific"==g.ownership,onSave:k,onCancel:E,onDelete:function(){return f(!0)}})}))]})),r("div",zt({class:"flex flex-col"},{children:_.products.map((function(e){return r(lt,{className:"flex items-center h-[3rem] ml-[3.5rem]",editable:a,item:zt(zt({},e),{name:(t=e.name,t.replace(/([a-z])([A-Z])/g,"$1 $2"))}),onChange:function(t){return O(zt(zt({},t),{name:e.name}))}},e.name);var t}))}))]})};var Vt=function(){return Vt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Vt.apply(this,arguments)};const Jt=function(e){var t=e.tabTitles,n=e.currentTab,o=e.onChange,i=(0,s.eJ)(n),a=i[0],c=i[1],l=(0,s.I4)((function(e){c(e),o(e)}),[o]);return r("div",Vt({class:"border-b border-gray-200"},{children:r("nav",Vt({"aria-label":"Tabs",class:"-mb-px flex space-x-8"},{children:t.map((function(e){return r("a",Vt({class:"cursor-pointer border-transparent text-gray-500 whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm ".concat(a===e?"border-b-2 border-indigo-500 text-indigo-600":"hover:text-gray-700 hover:border-gray-300 "),onClick:function(){return l(e)}},{children:e}),e)}))}))}))};var Wt=function(){return Wt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Wt.apply(this,arguments)};const qt=function(e){var t=e.visible,n=e.children,o=(0,s.sO)(t);return t&&!o.current&&(o.current=!0),o.current?r("div",Wt({hidden:!t},{children:n})):null};function $t(e){this.message=e}$t.prototype=new Error,$t.prototype.name="InvalidCharacterError";var Gt="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new $t("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,o=0,i=0,a="";r=t.charAt(i++);~r&&(n=o%4?64*n+r:r,o++%4)?a+=String.fromCharCode(255&n>>(-2*o&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return a};function Zt(e){this.message=e}Zt.prototype=new Error,Zt.prototype.name="InvalidTokenError";var Xt=function(){function e(e){this.roles=e}return e.create=function(t){if("string"==typeof t)return new e(function(e,t){if("string"!=typeof e)throw new Zt("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(Gt(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return Gt(t)}}(e.split(".")[n]))}catch(e){throw new Zt("Invalid token specified: "+e.message)}}(t).roles||[]);throw new Error("Failed to identify the user")},e.prototype.hasRole=function(e){return this.roles.includes(e)},e}(),Qt=function(){return Qt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Qt.apply(this,arguments)},Kt=function(e,t,n){var r=Xt.create(e),o=r.hasRole(t),i={canEdit:o,canView:o||r.hasRole(n),canDelete:o};return{user:r,access:i}},en=function(){return en=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},en.apply(this,arguments)};const tn=function(t){var n=(0,s.eJ)(t.open),o=n[0],i=n[1];return(0,s.d4)((function(){i(t.open)}),[t.open]),o?r("div",en({class:"relative z-10","aria-labelledby":"modal-title",role:"dialog","aria-modal":"true"},{children:[r("div",{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"}),r("div",en({class:"fixed inset-0 z-10 overflow-y-auto"},{children:r("div",en({class:"flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"},{children:r("div",en({class:"relative transform overflow-hidden rounded-lg bg-white px-4 pt-5 pb-4 text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg sm:p-6"},{children:[r("div",en({class:"sm:flex sm:items-start"},{children:[r("div",en({class:"mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full bg-red-100 sm:mx-0 sm:h-10 sm:w-10"},{children:r(Te,{iconType:Ce.ExclamationTriangle,className:"h-6 w-6 text-red-600"})})),r("div",en({class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"},{children:[r("h3",en({class:"text-lg font-medium leading-6 text-red-500",id:"modal-title"},{children:"Error"})),r("div",en({class:"mt-2"},{children:r("p",en({class:"text-sm"},{children:t.error}))}))]}))]})),r("button",en({type:"button",onClick:function(){var e;i(!1),null===(e=t.onChange)||void 0===e||e.call(t,!1)},class:"absolute top-0 right-0 bg-white rounded-full p-2 inline-flex items-center justify-center text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500"},{children:[r("span",en({class:"sr-only"},{children:"Close"})),r("svg",en({class:"h-6 w-6",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},{children:r("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})}))]}))]}))}))}))]})):r(e.HY,{})};var nn,rn=function(){return rn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},rn.apply(this,arguments)};!function(e){e.Style="Style",e.BenefitsOnboarding="Benefits Onboarding",e.WebBenefits="Web Benefits",e.BenefitsPlan="Benefits Plan"}(nn||(nn={}));const on=a((function(e){var t=e.backendUrl,n=e.accessToken,o=e.partnerId,i=e.accountId,a=function(e,t){var n=Kt(e,"BenefitsOnboarding.EditConfig","BenefitsOnboarding.Access"),r=n.user,o=n.access,i=Kt(e,"BenefitsOnboarding.EditPartnerStyle","BenefitsOnboarding.Access").access,a=Kt(e,"BenefitsPlan.EditConfig","BenefitsPlan.Access").access;return{user:r,access:{partnerStyle:Qt(Qt({},i),{canEdit:i.canEdit&&!t}),benefitsOnboarding:o,webBenefits:o,benefitsPlan:a}}}(n,i).access,c=(0,s.eJ)(nn.Style),l=c[0],u=c[1],f=(0,s.eJ)(),d=f[0],p=f[1],h=(0,s.I4)((function(e){return p(e)}),[]),b=(0,s.I4)((function(e){e||p(void 0)}),[]),g=(0,s.I4)((function(e){return e===l}),[l]);return function(e,t){!function(e,t){mt=ne().create({baseURL:"".concat(e,"/_admin/v2.0"),headers:{Authorization:"Bearer ".concat(t)}})}("".concat(e,"/benefits"),t),ie.initClient("".concat(e,"/benefits-onboarding"),t),function(e,t){Tt=ne().create({baseURL:"".concat(e,"/_admin/v1.0/configuration"),headers:{Authorization:"Bearer ".concat(t)}})}("".concat(e,"/benefits-plan"),t)}(t,n),r(he.Provider,rn({value:{partnerId:o,accountId:i,access:a,error:d,openError:h}},{children:[r(Jt,{tabTitles:Object.entries(nn).map((function(e){return e[1]})),currentTab:l,onChange:u}),r("div",rn({class:"mt-5"},{children:[a.partnerStyle.canView&&r(qt,rn({visible:g(nn.Style)},{children:r(ct,{})})),a.benefitsOnboarding.canView&&r(qt,rn({visible:g(nn.BenefitsOnboarding)},{children:r(gt,{})})),a.webBenefits.canView&&r(qt,rn({visible:g(nn.WebBenefits)},{children:r(Rt,{accessToken:n,partnerId:o,accountId:i})})),a.benefitsPlan.canView&&r(qt,rn({visible:g(nn.BenefitsPlan)},{children:r(Ft,{accessToken:n,partnerId:o,accountId:i})}))]})),r(tn,{open:!!d,error:null!=d?d:"",onChange:b})]}))}));function an(){return(an=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function cn(t){this.getChildContext=function(){return t.context};var n=t.children,r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(t,["context","children"]);return(0,e.Tm)(n,r)}function sn(){var t=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(t),this._vdom=(0,e.h)(cn,an({},this._props,{context:t.detail.context}),function t(n,r){if(3===n.nodeType)return n.data;if(1!==n.nodeType)return null;var o=[],i={},a=0,c=n.attributes,s=n.childNodes;for(a=c.length;a--;)"slot"!==c[a].name&&(i[c[a].name]=c[a].value,i[ln(c[a].name)]=c[a].value);for(a=s.length;a--;){var l=t(s[a],null),u=s[a].slot;u?i[u]=(0,e.h)(dn,{name:u},l):o[a]=l}var f=r?(0,e.h)(dn,null,o):o;return(0,e.h)(r||n.nodeName.toLowerCase(),i,f)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?e.ZB:e.sY)(this._vdom,this._root)}function ln(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function un(t,n,r){if(this._vdom){var o={};o[t]=r=null==r?void 0:r,o[ln(t)]=r,this._vdom=(0,e.Tm)(this._vdom,o),(0,e.sY)(this._vdom,this._root)}}function fn(){(0,e.sY)(this._vdom=null,this._root)}function dn(t,n){var r=this;return(0,e.h)("slot",an({},t,{ref:function(e){e?(r.ref=e,r._listener||(r._listener=function(e){e.stopPropagation(),e.detail.context=n},e.addEventListener("_preact",r._listener))):r.ref.removeEventListener("_preact",r._listener)}}))}function pn(e,t,n,r){function o(){var t=Reflect.construct(HTMLElement,[],o);return t._vdomComponent=e,t._root=r&&r.shadow?t.attachShadow({mode:"open"}):t,t}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=sn,o.prototype.attributeChangedCallback=un,o.prototype.disconnectedCallback=fn,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||e.tagName||e.displayName||e.name,o)}pn(c,"superhero-benefits-onboarding",[],{shadow:!0}),pn(on,"superhero-benefits-onboarding-configuration",[],{shadow:!0})})()})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flarehr/superhero-benefits-onboarding",
3
- "version": "2.9.13",
3
+ "version": "2.11.15",
4
4
  "description": "Flare Superhero Benefits Onboarding Component",
5
5
  "license": "MIT",
6
6
  "files": [