@flarehr/apollo-import-workspace-app 0.31.0 → 0.32.0

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,25 +1,17 @@
1
- var yo,ke,nf,yr,Gu,rf,Qa,$l,el,tl,of,lo={},sf=[],yp=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Fs=Array.isArray;function Nn(e,t){for(var n in t)e[n]=t[n];return e}function af(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function u(e,t,n){var r,i,o,s={};for(o in t)o=="key"?r=t[o]:o=="ref"?i=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?yo.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)s[o]===void 0&&(s[o]=e.defaultProps[o]);return ro(e,s,r,i,null)}function ro(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i??++nf,__i:-1,__u:0};return i==null&&ke.vnode!=null&&ke.vnode(o),o}function Ps(){return{current:null}}function ze(e){return e.children}function dn(e,t){this.props=e,this.context=t}function fi(e,t){if(t==null)return e.__?fi(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?fi(e):null}function lf(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return lf(e)}}function nl(e){(!e.__d&&(e.__d=!0)&&yr.push(e)&&!us.__r++||Gu!==ke.debounceRendering)&&((Gu=ke.debounceRendering)||rf)(us)}function us(){var e,t,n,r,i,o,s,a;for(yr.sort(Qa);e=yr.shift();)e.__d&&(t=yr.length,r=void 0,o=(i=(n=e).__v).__e,s=[],a=[],n.__P&&((r=Nn({},i)).__v=i.__v+1,ke.vnode&&ke.vnode(r),Ml(n.__P,r,i,n.__n,n.__P.namespaceURI,32&i.__u?[o]:null,s,o??fi(i),!!(32&i.__u),a),r.__v=i.__v,r.__.__k[r.__i]=r,df(s,r,a),r.__e!=o&&lf(r)),yr.length>t&&yr.sort(Qa));us.__r=0}function uf(e,t,n,r,i,o,s,a,l,c,f){var d,p,h,m,v,b=r&&r.__k||sf,x=t.length;for(n.__d=l,vp(n,t,b),l=n.__d,d=0;d<x;d++)(h=n.__k[d])!=null&&(p=h.__i===-1?lo:b[h.__i]||lo,h.__i=d,Ml(e,h,p,i,o,s,a,l,c,f),m=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&Il(p.ref,null,h),f.push(h.ref,h.__c||m,h)),v==null&&m!=null&&(v=m),65536&h.__u||p.__k===h.__k?l=cf(h,l,e):typeof h.type=="function"&&h.__d!==void 0?l=h.__d:m&&(l=m.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=l,n.__e=v}function vp(e,t,n){var r,i,o,s,a,l=t.length,c=n.length,f=c,d=0;for(e.__k=[],r=0;r<l;r++)(i=t[r])!=null&&typeof i!="boolean"&&typeof i!="function"?(s=r+d,(i=e.__k[r]=typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?ro(null,i,null,null,null):Fs(i)?ro(ze,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?ro(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=e,i.__b=e.__b+1,o=null,(a=i.__i=bp(i,n,s,f))!==-1&&(f--,(o=n[a])&&(o.__u|=131072)),o==null||o.__v===null?(a==-1&&d--,typeof i.type!="function"&&(i.__u|=65536)):a!==s&&(a==s-1?d--:a==s+1?d++:(a>s?d--:d++,i.__u|=65536))):i=e.__k[r]=null;if(f)for(r=0;r<c;r++)(o=n[r])!=null&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=fi(o)),ff(o,o))}function cf(e,t,n){var r,i;if(typeof e.type=="function"){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=cf(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=fi(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function In(e,t){return t=t||[],e==null||typeof e=="boolean"||(Fs(e)?e.some(function(n){In(n,t)}):t.push(e)),t}function bp(e,t,n,r){var i=e.key,o=e.type,s=n-1,a=n+1,l=t[n];if(l===null||l&&i==l.key&&o===l.type&&!(131072&l.__u))return n;if((typeof o!="function"||o===ze||i)&&r>(l!=null&&!(131072&l.__u)?1:0))for(;s>=0||a<t.length;){if(s>=0){if((l=t[s])&&!(131072&l.__u)&&i==l.key&&o===l.type)return s;s--}if(a<t.length){if((l=t[a])&&!(131072&l.__u)&&i==l.key&&o===l.type)return a;a++}}return-1}function zu(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||yp.test(t)?n:n+"px"}function Vo(e,t,n,r,i){var o;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||zu(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||zu(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n.u=r.u:(n.u=$l,e.addEventListener(t,o?tl:el,o)):e.removeEventListener(t,o?tl:el,o);else{if(i=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function qu(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=$l++;else if(t.t<n.u)return;return ke.event&&(t=ke.event(t)),"handleEvent"in n?n.handleEvent(t):n(t)}}}function Ml(e,t,n,r,i,o,s,a,l,c){var f,d,p,h,m,v,b,x,C,S,$,D,F,L,E,_,k=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),o=[a=t.__e=n.__e]),(f=ke.__b)&&f(t);e:if(typeof k=="function")try{if(x=t.props,C="prototype"in k&&k.prototype.render,S=(f=k.contextType)&&r[f.__c],$=f?S?S.props.value:f.__:r,n.__c?b=(d=t.__c=n.__c).__=d.__E:(C?t.__c=d=new k(x,$):(t.__c=d=new dn(x,$),d.constructor=k,d.render=xp),S&&S.sub(d),d.props=x,d.state||(d.state={}),d.context=$,d.__n=r,p=d.__d=!0,d.__h=[],d._sb=[]),C&&d.__s==null&&(d.__s=d.state),C&&k.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=Nn({},d.__s)),Nn(d.__s,k.getDerivedStateFromProps(x,d.__s))),h=d.props,m=d.state,d.__v=t,p)C&&k.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),C&&d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(C&&k.getDerivedStateFromProps==null&&x!==h&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(x,$),!d.__e&&(d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(x,d.__s,$)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=x,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(N){N&&(N.__=t)}),D=0;D<d._sb.length;D++)d.__h.push(d._sb[D]);d._sb=[],d.__h.length&&s.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(x,d.__s,$),C&&d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(h,m,v)})}if(d.context=$,d.props=x,d.__P=e,d.__e=!1,F=ke.__r,L=0,C){for(d.state=d.__s,d.__d=!1,F&&F(t),f=d.render(d.props,d.state,d.context),E=0;E<d._sb.length;E++)d.__h.push(d._sb[E]);d._sb=[]}else do d.__d=!1,F&&F(t),f=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++L<25);d.state=d.__s,d.getChildContext!=null&&(r=Nn(Nn({},r),d.getChildContext())),C&&!p&&d.getSnapshotBeforeUpdate!=null&&(v=d.getSnapshotBeforeUpdate(h,m)),uf(e,Fs(_=f!=null&&f.type===ze&&f.key==null?f.props.children:f)?_:[_],t,n,r,i,o,s,a,l,c),d.base=t.__e,t.__u&=-161,d.__h.length&&s.push(d),b&&(d.__E=d.__=null)}catch(N){if(t.__v=null,l||o!=null){for(t.__u|=l?160:128;a&&a.nodeType===8&&a.nextSibling;)a=a.nextSibling;o[o.indexOf(a)]=null,t.__e=a}else t.__e=n.__e,t.__k=n.__k;ke.__e(N,t,n)}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=_p(n.__e,t,n,r,i,o,s,l,c);(f=ke.diffed)&&f(t)}function df(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)Il(n[r],n[++r],n[++r]);ke.__c&&ke.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){ke.__e(o,i.__v)}})}function _p(e,t,n,r,i,o,s,a,l){var c,f,d,p,h,m,v,b=n.props,x=t.props,C=t.type;if(C==="svg"?i="http://www.w3.org/2000/svg":C==="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(c=0;c<o.length;c++)if((h=o[c])&&"setAttribute"in h==!!C&&(C?h.localName===C:h.nodeType===3)){e=h,o[c]=null;break}}if(e==null){if(C===null)return document.createTextNode(x);e=document.createElementNS(i,C,x.is&&x),a&&(ke.__m&&ke.__m(t,o),a=!1),o=null}if(C===null)b===x||a&&e.data===x||(e.data=x);else{if(o=o&&yo.call(e.childNodes),b=n.props||lo,!a&&o!=null)for(b={},c=0;c<e.attributes.length;c++)b[(h=e.attributes[c]).name]=h.value;for(c in b)if(h=b[c],c!="children"){if(c=="dangerouslySetInnerHTML")d=h;else if(!(c in x)){if(c=="value"&&"defaultValue"in x||c=="checked"&&"defaultChecked"in x)continue;Vo(e,c,null,h,i)}}for(c in x)h=x[c],c=="children"?p=h:c=="dangerouslySetInnerHTML"?f=h:c=="value"?m=h:c=="checked"?v=h:a&&typeof h!="function"||b[c]===h||Vo(e,c,h,b[c],i);if(f)a||d&&(f.__html===d.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(d&&(e.innerHTML=""),uf(e,Fs(p)?p:[p],t,n,r,C==="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,s,o?o[0]:n.__k&&fi(n,0),a,l),o!=null)for(c=o.length;c--;)af(o[c]);a||(c="value",C==="progress"&&m==null?e.removeAttribute("value"):m!==void 0&&(m!==e[c]||C==="progress"&&!m||C==="option"&&m!==b[c])&&Vo(e,c,m,b[c],i),c="checked",v!==void 0&&v!==e[c]&&Vo(e,c,v,b[c],i))}return e}function Il(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(i){ke.__e(i,n)}}function ff(e,t,n){var r,i;if(ke.unmount&&ke.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Il(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){ke.__e(o,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&ff(r[i],t,n||typeof e.type!="function");n||af(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function xp(e,t,n){return this.constructor(e,n)}function Jn(e,t,n){var r,i,o,s;ke.__&&ke.__(e,t),i=(r=typeof n=="function")?null:n&&n.__k||t.__k,o=[],s=[],Ml(t,e=(!r&&n||t).__k=u(ze,null,[e]),i||lo,lo,t.namespaceURI,!r&&n?[n]:i?null:t.firstChild?yo.call(t.childNodes):null,o,!r&&n?n:i?i.__e:t.firstChild,r,s),df(o,e,s)}function Dl(e,t){Jn(e,t,Dl)}function Ol(e,t,n){var r,i,o,s,a=Nn({},e.props);for(o in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)o=="key"?r=t[o]:o=="ref"?i=t[o]:a[o]=t[o]===void 0&&s!==void 0?s[o]:t[o];return arguments.length>2&&(a.children=arguments.length>3?yo.call(arguments,2):n),ro(e.type,a,r||e.key,i||e.ref,null)}function st(e,t){var n={__c:t="__cC"+of++,__:e,Consumer:function(r,i){return r.children(i)},Provider:function(r){var i,o;return this.getChildContext||(i=new Set,(o={})[t]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){i=null},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&i.forEach(function(a){a.__e=!0,nl(a)})},this.sub=function(s){i.add(s);var a=s.componentWillUnmount;s.componentWillUnmount=function(){i&&i.delete(s),a&&a.call(s)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}yo=sf.slice,ke={__e:function(e,t,n,r){for(var i,o,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),s=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),s=i.__d),s)return i.__E=i}catch(a){e=a}throw e}},nf=0,dn.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Nn({},this.state),typeof e=="function"&&(e=e(Nn({},n),this.props)),e&&Nn(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),nl(this))},dn.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),nl(this))},dn.prototype.render=ze,yr=[],rf=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Qa=function(e,t){return e.__v.__b-t.__v.__b},us.__r=0,$l=0,el=qu(!1),tl=qu(!0),of=0;function Rl(){return(Rl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Cp=["context","children"];function Sp(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,i){if(r==null)return{};var o,s,a={},l=Object.keys(r);for(s=0;s<l.length;s++)i.indexOf(o=l[s])>=0||(a[o]=r[o]);return a}(e,Cp);return Ol(t,n)}function Ep(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=u(Sp,Rl({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var i=[],o={},s=0,a=n.attributes,l=n.childNodes;for(s=a.length;s--;)a[s].name!=="slot"&&(o[a[s].name]=a[s].value,o[mf(a[s].name)]=a[s].value);for(s=l.length;s--;){var c=t(l[s],null),f=l[s].slot;f?o[f]=u(Yu,{name:f},c):i[s]=c}var d=r?u(Yu,null,i):i;return u(r||n.nodeName.toLowerCase(),o,d)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Dl:Jn)(this._vdom,this._root)}function mf(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function Ap(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[mf(e)]=n,this._vdom=Ol(this._vdom,r),Jn(this._vdom,this._root)}}function kp(){Jn(this._vdom=null,this._root)}function Yu(e,t){var n=this;return u("slot",Rl({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(i){i.stopPropagation(),i.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function Np(e,t,n,r){function i(){var o=Reflect.construct(HTMLElement,[],i);return o._vdomComponent=e,o._root=o,o}return(i.prototype=Object.create(HTMLElement.prototype)).constructor=i,i.prototype.connectedCallback=Ep,i.prototype.attributeChangedCallback=Ap,i.prototype.disconnectedCallback=kp,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),i.observedAttributes=n,n.forEach(function(o){Object.defineProperty(i.prototype,o,{get:function(){return this._vdom.props[o]},set:function(s){this._vdom?this.attributeChangedCallback(o,null,s):(this._props||(this._props={}),this._props[o]=s,this.connectedCallback());var a=typeof s;s!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(o,s)}})}),customElements.define(t||e.tagName||e.displayName||e.name,i)}function Fl(e,t){Np(e,t)}var Rn,Ue,Aa,Zu,mi=0,hf=[],tt=ke,Ku=tt.__b,Xu=tt.__r,Ju=tt.diffed,Qu=tt.__c,ec=tt.unmount,tc=tt.__;function Pr(e,t){tt.__h&&tt.__h(Ue,e,mi||t),mi=0;var n=Ue.__H||(Ue.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function be(e){return mi=1,Lr(pf,e)}function Lr(e,t,n){var r=Pr(Rn++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):pf(void 0,t),function(a){var l=r.__N?r.__N[0]:r.__[0],c=r.t(l,a);l!==c&&(r.__N=[c,r.__[1]],r.__c.setState({}))}],r.__c=Ue,!Ue.u)){var i=function(a,l,c){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(p){return!!p.__c});if(f.every(function(p){return!p.__N}))return!o||o.call(this,a,l,c);var d=r.__c.props!==a;return f.forEach(function(p){if(p.__N){var h=p.__[0];p.__=p.__N,p.__N=void 0,h!==p.__[0]&&(d=!0)}}),o&&o.call(this,a,l,c)||d};Ue.u=!0;var o=Ue.shouldComponentUpdate,s=Ue.componentWillUpdate;Ue.componentWillUpdate=function(a,l,c){if(this.__e){var f=o;o=void 0,i(a,l,c),o=f}s&&s.call(this,a,l,c)},Ue.shouldComponentUpdate=i}return r.__N||r.__}function Re(e,t){var n=Pr(Rn++,3);!tt.__s&&Vl(n.__H,t)&&(n.__=e,n.i=t,Ue.__H.__h.push(n))}function bn(e,t){var n=Pr(Rn++,4);!tt.__s&&Vl(n.__H,t)&&(n.__=e,n.i=t,Ue.__h.push(n))}function ie(e){return mi=5,fe(function(){return{current:e}},[])}function Pl(e,t,n){mi=6,bn(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function fe(e,t){var n=Pr(Rn++,7);return Vl(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Oe(e,t){return mi=8,fe(function(){return e},t)}function Ve(e){var t=Ue.context[e.__c],n=Pr(Rn++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Ue)),t.props.value):e.__}function Ll(e,t){tt.useDebugValue&&tt.useDebugValue(t?t(e):e)}function Tp(e){var t=Pr(Rn++,10),n=be();return t.__=e,Ue.componentDidCatch||(Ue.componentDidCatch=function(r,i){t.__&&t.__(r,i),n[1](r)}),[n[0],function(){n[1](void 0)}]}function nn(){var e=Pr(Rn++,11);if(!e.__){for(var t=Ue.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function $p(){for(var e;e=hf.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(es),e.__H.__h.forEach(rl),e.__H.__h=[]}catch(t){e.__H.__h=[],tt.__e(t,e.__v)}}tt.__b=function(e){Ue=null,Ku&&Ku(e)},tt.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),tc&&tc(e,t)},tt.__r=function(e){Xu&&Xu(e),Rn=0;var t=(Ue=e.__c).__H;t&&(Aa===Ue?(t.__h=[],Ue.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(es),t.__h.forEach(rl),t.__h=[],Rn=0)),Aa=Ue},tt.diffed=function(e){Ju&&Ju(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(hf.push(t)!==1&&Zu===tt.requestAnimationFrame||((Zu=tt.requestAnimationFrame)||Mp)($p)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),Aa=Ue=null},tt.__c=function(e,t){t.some(function(n){try{n.__h.forEach(es),n.__h=n.__h.filter(function(r){return!r.__||rl(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],tt.__e(r,n.__v)}}),Qu&&Qu(e,t)},tt.unmount=function(e){ec&&ec(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{es(r)}catch(i){t=i}}),n.__H=void 0,t&&tt.__e(t,n.__v))};var nc=typeof requestAnimationFrame=="function";function Mp(e){var t,n=function(){clearTimeout(r),nc&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);nc&&(t=requestAnimationFrame(n))}function es(e){var t=Ue,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Ue=t}function rl(e){var t=Ue;e.__c=e.__(),Ue=t}function Vl(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function pf(e,t){return typeof t=="function"?t(e):t}function il(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function Ls(e,t){var n=t(),r=be({t:{__:n,u:t}}),i=r[0].t,o=r[1];return bn(function(){i.__=n,i.u=t,ka(i)&&o({t:i})},[e,n,t]),Re(function(){return ka(i)&&o({t:i}),e(function(){ka(i)&&o({t:i})})},[e]),n}function ka(e){var t,n,r=e.u,i=e.__;try{var o=r();return!((t=i)===(n=o)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}function Hl(e){e()}function jl(e){return e}function Bl(){return[!1,Hl]}var Wl=bn;function cs(e,t){this.props=e,this.context=t}function gf(e,t){function n(i){var o=this.props.ref,s=o==i.ref;return!s&&o&&(o.call?o(null):o.current=null),t?!t(this.props,i)||!s:il(this.props,i)}function r(i){return this.shouldComponentUpdate=n,u(e,i)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(cs.prototype=new dn).isPureReactComponent=!0,cs.prototype.shouldComponentUpdate=function(e,t){return il(this.props,e)||il(this.state,t)};var rc=ke.__b;ke.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),rc&&rc(e)};var Ip=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ul(e){function t(n){if(!("ref"in n))return e(n,null);var r=n.ref;delete n.ref;var i=e(n,r);return n.ref=r,i}return t.$$typeof=Ip,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var ic=function(e,t){return e==null?null:In(In(e).map(t))},wf={map:ic,forEach:ic,count:function(e){return e?In(e).length:0},only:function(e){var t=In(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:In},Dp=ke.__e;ke.__e=function(e,t,n,r){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}Dp(e,t,n,r)};var oc=ke.unmount;function yf(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=function(r,i){for(var o in i)r[o]=i[o];return r}({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return yf(r,t,n)})),e}function vf(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return vf(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function io(){this.__u=0,this.o=null,this.__b=null}function bf(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function _f(e){var t,n,r;function i(o){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return u(n,o)}return i.displayName="Lazy",i.__f=!0,i}function ei(){this.i=null,this.l=null}ke.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),oc&&oc(e)},(io.prototype=new dn).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var i=bf(r.__v),o=!1,s=function(){o||(o=!0,n.__R=null,i?i(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=vf(l,l.__c.__P,l.__c.__O)}var c;for(r.setState({__a:r.__b=null});c=r.o.pop();)c.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},io.prototype.componentWillUnmount=function(){this.o=[]},io.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]=yf(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&u(ze,null,e.fallback);return i&&(i.__u&=-33),[u(ze,null,t.__a?null:e.children),i]};var sc=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function Op(e){return this.getChildContext=function(){return e.context},e.children}function Rp(e){var t=this,n=e.h;t.componentWillUnmount=function(){Jn(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),t.v||(t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(r){this.childNodes.push(r),t.h.appendChild(r)},insertBefore:function(r,i){this.childNodes.push(r),t.h.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.h.removeChild(r)}}),Jn(u(Op,{context:t.context},e.__v),t.v)}function Vs(e,t){var n=u(Rp,{__v:e,h:t});return n.containerInfo=t,n}(ei.prototype=new dn).__a=function(e){var t=this,n=bf(t.__v),r=t.l.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),sc(t,e,r)):i()};n?n(o):o()}},ei.prototype.render=function(e){this.i=null,this.l=new Map;var t=In(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},ei.prototype.componentDidUpdate=ei.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){sc(e,n,t)})};var xf=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Fp=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Pp=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Lp=/[A-Z0-9]/g,Vp=typeof document<"u",Hp=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Gl(e,t,n){return t.__k==null&&(t.textContent=""),Jn(e,t),typeof n=="function"&&n(),e?e.__c:null}function Cf(e,t,n){return Dl(e,t),typeof n=="function"&&n(),e?e.__c:null}dn.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(dn.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var ac=ke.event;function jp(){}function Bp(){return this.cancelBubble}function Wp(){return this.defaultPrevented}ke.event=function(e){return ac&&(e=ac(e)),e.persist=jp,e.isPropagationStopped=Bp,e.isDefaultPrevented=Wp,e.nativeEvent=e};var zl,Up={enumerable:!1,configurable:!0,get:function(){return this.class}},lc=ke.vnode;ke.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,i={},o=r.indexOf("-")===-1;for(var s in n){var a=n[s];if(!(s==="value"&&"defaultValue"in n&&a==null||Vp&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var l=s.toLowerCase();s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&a===!0?a="":l==="translate"&&a==="no"?a=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?s="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||Hp(n.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":Pp.test(s)&&(s=l):l=s="oninput":o&&Fp.test(s)?s=s.replace(Lp,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&i[s=l]&&(s="oninputCapture"),i[s]=a}}r=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=In(n.children).forEach(function(c){c.props.selected=i.value.indexOf(c.props.value)!=-1})),r=="select"&&i.defaultValue!=null&&(i.value=In(n.children).forEach(function(c){c.props.selected=i.multiple?i.defaultValue.indexOf(c.props.value)!=-1:i.defaultValue==c.props.value})),n.class&&!n.className?(i.class=n.class,Object.defineProperty(i,"className",Up)):(n.className&&!n.class||n.class&&n.className)&&(i.class=i.className=n.className),t.props=i}(e),e.$$typeof=xf,lc&&lc(e)};var uc=ke.__r;ke.__r=function(e){uc&&uc(e),zl=e.__c};var cc=ke.diffed;ke.diffed=function(e){cc&&cc(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),zl=null};var Sf={ReactCurrentDispatcher:{current:{readContext:function(e){return zl.__n[e.__c].props.value},useCallback:Oe,useContext:Ve,useDebugValue:Ll,useDeferredValue:jl,useEffect:Re,useId:nn,useImperativeHandle:Pl,useInsertionEffect:Wl,useLayoutEffect:bn,useMemo:fe,useReducer:Lr,useRef:ie,useState:be,useSyncExternalStore:Ls,useTransition:Bl}}},Gp="18.3.1";function Ef(e){return u.bind(null,e)}function _i(e){return!!e&&e.$$typeof===xf}function Af(e){return _i(e)&&e.type===ze}function kf(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function ql(e){return _i(e)?Ol.apply(null,arguments):e}function Nf(e){return!!e.__k&&(Jn(null,e),!0)}function Tf(e){return e&&(e.base||e.nodeType===1&&e)||null}var $f=function(e,t){return e(t)},Yt=function(e,t){return e(t)},Mf=ze,If=_i,K={useState:be,useId:nn,useReducer:Lr,useEffect:Re,useLayoutEffect:bn,useInsertionEffect:Wl,useTransition:Bl,useDeferredValue:jl,useSyncExternalStore:Ls,startTransition:Hl,useRef:ie,useImperativeHandle:Pl,useMemo:fe,useCallback:Oe,useContext:Ve,useDebugValue:Ll,version:"18.3.1",Children:wf,render:Gl,hydrate:Cf,unmountComponentAtNode:Nf,createPortal:Vs,createElement:u,createContext:st,createFactory:Ef,cloneElement:ql,createRef:Ps,Fragment:ze,isValidElement:_i,isElement:If,isFragment:Af,isMemo:kf,findDOMNode:Tf,Component:dn,PureComponent:cs,memo:gf,forwardRef:Ul,flushSync:Yt,unstable_batchedUpdates:$f,StrictMode:Mf,Suspense:io,SuspenseList:ei,lazy:_f,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Sf};const ds=Object.freeze(Object.defineProperty({__proto__:null,Children:wf,Component:dn,Fragment:ze,PureComponent:cs,StrictMode:Mf,Suspense:io,SuspenseList:ei,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Sf,cloneElement:ql,createContext:st,createElement:u,createFactory:Ef,createPortal:Vs,createRef:Ps,default:K,findDOMNode:Tf,flushSync:Yt,forwardRef:Ul,hydrate:Cf,isElement:If,isFragment:Af,isMemo:kf,isValidElement:_i,lazy:_f,memo:gf,render:Gl,startTransition:Hl,unmountComponentAtNode:Nf,unstable_batchedUpdates:$f,useCallback:Oe,useContext:Ve,useDebugValue:Ll,useDeferredValue:jl,useEffect:Re,useErrorBoundary:Tp,useId:nn,useImperativeHandle:Pl,useInsertionEffect:Wl,useLayoutEffect:bn,useMemo:fe,useReducer:Lr,useRef:ie,useState:be,useSyncExternalStore:Ls,useTransition:Bl,version:Gp},Symbol.toStringTag,{value:"Module"})),zp=`*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}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,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;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{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-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,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,input:where(:not([type])):focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--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);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb}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;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");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],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--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)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=checkbox]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}@media (forced-colors: active){[type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}@font-face{font-family:BRSonoma;font-weight:900;src:url(/assets/BRSonoma-Black-Dd-41VER.otf) format("opentype")}@font-face{font-family:BRSonoma;font-weight:700;src:url(/assets/BRSonoma-Bold-ntHe2u-j.otf) format("opentype")}@font-face{font-family:BRSonoma;font-weight:500;src:url(/assets/BRSonoma-Medium-j1GGAHzV.otf) format("opentype")}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-y-0{top:0;bottom:0}.bottom-0{bottom:0}.left-0{left:0}.left-full{left:100%}.right-0{right:0}.top-0{top:0}.z-10{z-index:10}.col-span-1{grid-column:span 1 / span 1}.col-span-2{grid-column:span 2 / span 2}.col-span-4{grid-column:span 4 / span 4}.col-start-1{grid-column-start:1}.row-start-1{grid-row-start:1}.-my-3{margin-top:-.75rem;margin-bottom:-.75rem}.mx-12{margin-left:3rem;margin-right:3rem}.mx-auto{margin-left:auto;margin-right:auto}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.-mt-\\[226px\\]{margin-top:-226px}.mb-12{margin-bottom:3rem}.mb-6{margin-bottom:1.5rem}.ml-1{margin-left:.25rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.mt-0\\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.inline-table{display:inline-table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-column{display:table-column}.table-column-group{display:table-column-group}.table-footer-group{display:table-footer-group}.table-header-group{display:table-header-group}.table-row-group{display:table-row-group}.table-row{display:table-row}.flow-root{display:flow-root}.grid{display:grid}.inline-grid{display:inline-grid}.contents{display:contents}.list-item{display:list-item}.hidden{display:none}.size-12{width:3rem;height:3rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.h-1\\.5{height:.375rem}.h-10{height:2.5rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-9{height:2.25rem}.h-\\[118px\\]{height:118px}.h-\\[120px\\]{height:120px}.h-\\[34px\\]{height:34px}.h-\\[38px\\]{height:38px}.h-\\[52px\\]{height:52px}.h-\\[58px\\]{height:58px}.h-\\[60px\\]{height:60px}.h-\\[63px\\]{height:63px}.h-\\[72px\\]{height:72px}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-48{max-height:12rem}.max-h-\\[470px\\]{max-height:470px}.min-h-full{min-height:100%}.w-0{width:0px}.w-16{width:4rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-60{width:15rem}.w-80{width:20rem}.w-96{width:24rem}.w-\\[1030px\\]{width:1030px}.w-\\[120px\\]{width:120px}.w-\\[128px\\]{width:128px}.w-\\[140px\\]{width:140px}.w-\\[148px\\]{width:148px}.w-\\[206px\\]{width:206px}.w-\\[218px\\]{width:218px}.w-\\[230px\\]{width:230px}.w-\\[260px\\]{width:260px}.w-\\[480px\\]{width:480px}.w-\\[640px\\]{width:640px}.w-full{width:100%}.w-screen{width:100vw}.min-w-60{min-width:15rem}.max-w-\\[640px\\]{max-width:640px}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.basis-0{flex-basis:0px}.-translate-y-1\\/4{--tw-translate-y: -25%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-2{--tw-translate-y: .5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.list-inside{list-style-position:inside}.list-outside{list-style-position:outside}.list-disc{list-style-type:disc}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\\.5{gap:.375rem}.gap-12{gap:3rem}.gap-2{gap:.5rem}.gap-2\\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity, 1))}.divide-gray-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(209 213 219 / var(--tw-divide-opacity, 1))}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.self-center{align-self:center}.self-stretch{align-self:stretch}.justify-self-end{justify-self:end}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.text-wrap{text-wrap:wrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\\[10px\\]{border-radius:10px}.rounded-\\[5px\\]{border-radius:5px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-blue-300{--tw-border-opacity: 1;border-color:rgb(147 197 253 / var(--tw-border-opacity, 1))}.border-emerald-200{--tw-border-opacity: 1;border-color:rgb(167 243 208 / var(--tw-border-opacity, 1))}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-primary-600{border-color:var(--fl-color-primary-600)}.border-r-gray-200{--tw-border-opacity: 1;border-right-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.bg-amber-100{--tw-bg-opacity: 1;background-color:rgb(254 243 199 / var(--tw-bg-opacity, 1))}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.bg-emerald-100{--tw-bg-opacity: 1;background-color:rgb(209 250 229 / var(--tw-bg-opacity, 1))}.bg-emerald-50{--tw-bg-opacity: 1;background-color:rgb(236 253 245 / var(--tw-bg-opacity, 1))}.bg-emerald-600{--tw-bg-opacity: 1;background-color:rgb(5 150 105 / var(--tw-bg-opacity, 1))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-gray-500\\/50{background-color:#6b728080}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.bg-primary-600{background-color:var(--fl-color-primary-600)}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-\\[\\#a650ff\\]{--tw-gradient-from: #a650ff var(--tw-gradient-from-position);--tw-gradient-to: rgb(166 80 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-\\[\\#0095f2\\]{--tw-gradient-to: #0095f2 var(--tw-gradient-to-position)}.p-2{padding:.5rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-0\\.5{padding-left:.125rem;padding-right:.125rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-12{padding-left:3rem;padding-right:3rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-\\[13px\\]{padding-left:13px;padding-right:13px}.px-\\[17px\\]{padding-left:17px;padding-right:17px}.px-\\[3px\\]{padding-left:3px;padding-right:3px}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-\\[0\\.5625rem\\]{padding-top:.5625rem;padding-bottom:.5625rem}.py-\\[5px\\]{padding-top:5px;padding-bottom:5px}.py-\\[9px\\]{padding-top:9px;padding-bottom:9px}.pb-10{padding-bottom:2.5rem}.pb-12{padding-bottom:3rem}.pb-2{padding-bottom:.5rem}.pb-24{padding-bottom:6rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pb-\\[3px\\]{padding-bottom:3px}.pl-1{padding-left:.25rem}.pl-2{padding-left:.5rem}.pl-2\\.5{padding-left:.625rem}.pl-3{padding-left:.75rem}.pl-6{padding-left:1.5rem}.pl-\\[13px\\]{padding-left:13px}.pr-1\\.5{padding-right:.375rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pr-6{padding-right:1.5rem}.pr-\\[11px\\]{padding-right:11px}.pt-0\\.5{padding-top:.125rem}.pt-1{padding-top:.25rem}.pt-1\\.5{padding-top:.375rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.pt-6{padding-top:1.5rem}.pt-8{padding-top:2rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-sonoma{font-family:BRSonoma}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-sm\\/6{font-size:.875rem;line-height:1.5rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.leading-4{line-height:1rem}.leading-5{line-height:1.25rem}.leading-7{line-height:1.75rem}.leading-none{line-height:1}.leading-normal{line-height:1.5}.leading-tight{line-height:1.25}.text-amber-700{--tw-text-opacity: 1;color:rgb(180 83 9 / var(--tw-text-opacity, 1))}.text-amber-800{--tw-text-opacity: 1;color:rgb(146 64 14 / var(--tw-text-opacity, 1))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity, 1))}.text-emerald-700{--tw-text-opacity: 1;color:rgb(4 120 87 / var(--tw-text-opacity, 1))}.text-emerald-800{--tw-text-opacity: 1;color:rgb(6 95 70 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-primary-600{color:var(--fl-color-primary-600)}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-red-700{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity, 1))}.text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}.text-red-900{--tw-text-opacity: 1;color:rgb(127 29 29 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.overline{text-decoration-line:overline}.line-through{text-decoration-line:line-through}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);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 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(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)}.shadow-gray-300{--tw-shadow-color: #d1d5db;--tw-shadow: var(--tw-shadow-colored)}.outline{outline-style:solid}.outline-1{outline-width:1px}.-outline-offset-1{outline-offset:-1px}.outline-gray-300{outline-color:#d1d5db}.outline-red-300{outline-color:#fca5a5}.ring-1{--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);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-inset{--tw-ring-inset: inset}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity, 1))}.ring-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity, 1))}.ring-opacity-5{--tw-ring-opacity: .05}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.sepia{--tw-sepia: sepia(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes progressBar{0%{width:0}to{width:100%}}.placeholder\\:text-gray-500::-moz-placeholder{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.placeholder\\:text-gray-500::placeholder{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:inset-1:before{content:var(--tw-content);top:.25rem;right:.25rem;bottom:.25rem;left:.25rem}.before\\:rounded-full:before{content:var(--tw-content);border-radius:9999px}.before\\:bg-white:before{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.checked\\:border-primary-600:checked{border-color:var(--fl-color-primary-600)}.checked\\:bg-primary-600:checked{background-color:var(--fl-color-primary-600)}.hover\\:bg-emerald-700:hover{--tw-bg-opacity: 1;background-color:rgb(4 120 87 / var(--tw-bg-opacity, 1))}.hover\\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.hover\\:bg-red-500:hover{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.hover\\:text-gray-500:hover{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.hover\\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.focus\\:border-blue-600:focus{--tw-border-opacity: 1;border-color:rgb(37 99 235 / var(--tw-border-opacity, 1))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:outline:focus{outline-style:solid}.focus\\:outline-2:focus{outline-width:2px}.focus\\:-outline-offset-2:focus{outline-offset:-2px}.focus\\:outline-blue-600:focus{outline-color:#2563eb}.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-primary-500:focus{--tw-ring-color: var(--fl-color-primary-500)}.focus\\:ring-primary-600:focus{--tw-ring-color: var(--fl-color-primary-600)}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\\:outline:focus-visible{outline-style:solid}.focus-visible\\:outline-2:focus-visible{outline-width:2px}.focus-visible\\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\\:outline-primary-600:focus-visible{outline-color:var(--fl-color-primary-600)}.hover\\:enabled\\:bg-emerald-700:enabled:hover{--tw-bg-opacity: 1;background-color:rgb(4 120 87 / var(--tw-bg-opacity, 1))}.hover\\:enabled\\:bg-gray-50:enabled:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.hover\\:enabled\\:bg-primary-700:enabled:hover{background-color:var(--fl-color-primary-700)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:border-gray-300:disabled{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.disabled\\:bg-gray-100:disabled{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:before\\:bg-gray-400:disabled:before{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}@media (min-width: 640px){.sm\\:mx-0{margin-left:0;margin-right:0}.sm\\:my-8{margin-top:2rem;margin-bottom:2rem}.sm\\:ml-3{margin-left:.75rem}.sm\\:ml-4{margin-left:1rem}.sm\\:mt-0{margin-top:0}.sm\\:mt-4{margin-top:1rem}.sm\\:block{display:block}.sm\\:flex{display:flex}.sm\\:size-10{width:2.5rem;height:2.5rem}.sm\\:size-4{width:1rem;height:1rem}.sm\\:w-auto{width:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}.sm\\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:translate-x-2{--tw-translate-x: .5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:flex-row-reverse{flex-direction:row-reverse}.sm\\:items-start{align-items:flex-start}.sm\\:items-end{align-items:flex-end}.sm\\:items-center{align-items:center}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}.sm\\:text-left{text-align:left}}@media (forced-colors: active){.forced-colors\\:appearance-auto{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}.forced-colors\\:before\\:hidden:before{content:var(--tw-content);display:none}}.\\[\\&\\:not\\(\\:checked\\)\\]\\:before\\:hidden:not(:checked):before{content:var(--tw-content);display:none}`;function mn(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function qp(e){return e!=null&&typeof e.GetEnumerator=="function"}function Yp(e){return e!=null&&typeof e.CompareTo=="function"}function Zp(e){return e!=null&&typeof e.Equals=="function"}function Df(e){return e!=null&&typeof e.GetHashCode=="function"}function ol(e){return e!=null&&typeof e.Dispose=="function"}function Ie(e){ol(e)&&e.Dispose()}function Ae(){return null}function fs(e,t){var n,r;return((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===((r=Object.getPrototypeOf(t))==null?void 0:r.constructor)}class Kp{constructor(t){this.iter=t,this.current=Ae()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this.iter.next();return this.current=t.value,!t.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function Le(e){return qp(e)?e.GetEnumerator():new Kp(e[Symbol.iterator]())}function xi(e){return{next(){const t=e["System.Collections.IEnumerator.MoveNext"](),n=t?e["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0;return{done:!t,value:n}}}}class Xp{constructor(t){this.factory=t,this.isValueCreated=!1}get Value(){return this.isValueCreated||(this.createdValue=this.factory(),this.isValueCreated=!0),this.createdValue}get IsValueCreated(){return this.isValueCreated}}function je(e,t){return e.toString(10).padStart(t,"0")}function Jp(e,t,n){return e.toString(10).padStart(t,"0").padEnd(n,"0")}function dc(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function Qp(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function fn(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class Tn{static id(t){return Tn.idMap.has(t)||Tn.idMap.set(t,++Tn.count),Tn.idMap.get(t)}}Tn.idMap=new WeakMap;Tn.count=0;function ur(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function ln(e){return e*2654435761|0}function Of(e){return ur(e.toString(32))}function vo(e){let t=0;const n=e.length;for(let r=0;r<n;r++){const i=e[r];t=(t<<5)+t^i}return t}function e1(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return ln(e);case"bigint":return Of(e);case"string":return ur(e);default:return ln(Tn.id(e))}}function t1(e){return Df(e)?e.GetHashCode():e1(e)}function n1(e){return e.getTime()}function r1(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=en(e[r]);return vo(n)}function en(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return ln(e);case"bigint":return Of(e);case"string":return ur(e);default:{if(Df(e))return e.GetHashCode();if(mn(e))return r1(e);if(e instanceof Date)return n1(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>en(r));return vo(n)}else return ln(Tn.id(e))}}}function ms(e){return t1(e)}function sl(e,t,n){if(e==null)return t==null;if(t==null||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function Rf(e,t){return sl(e,t,J)}function i1(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let i=0;i<n.length;i++)if(n[i]!==r[i]||!J(e[n[i]],t[r[i]]))return!1;return!0}function J(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:Zp(e)?e.Equals(t):mn(e)?mn(t)&&Rf(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&Ff(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&i1(e,t)}function Ff(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+dc(e),r=t.getTime()+dc(t)),n===r?0:n<r?-1:1}function Vr(e,t){return e===t?0:e<t?-1:1}function o1(e,t,n){if(e==null)return t==null?0:1;if(t==null)return-1;if(e.length!==t.length)return e.length<t.length?-1:1;for(let r=0,i=0;r<e.length;r++)if(i=n(e[r],t[r]),i!==0)return i;return 0}function Yl(e,t){return o1(e,t,St)}function s1(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return n.length<r.length?-1:1;n.sort(),r.sort();for(let i=0,o=0;i<n.length;i++){const s=n[i];if(s!==r[i])return s<r[i]?-1:1;if(o=St(e[s],t[s]),o!==0)return o}return 0}function St(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:Yp(e)?e.CompareTo(t):mn(e)?mn(t)?Yl(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?Ff(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?s1(e,t):-1}function w(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function a1(e){mn(e)?e.splice(0):e.clear()}const Hs=new WeakMap;function qe(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return Hs.set(t,e),t}function qn(e){return Hs.get(e)??(t=>n=>e(t,n))}function al(e){if(e==null)return null;const t=(n,r,i)=>e(n)(r)(i);return Hs.set(t,e),t}function Na(e){return Hs.get(e)??(t=>n=>r=>e(t,n,r))}function l1(e){let t=0,n="[";for(const r of e){if(t===0)n+=Qe(r);else if(t===100){n+="; ...";break}else n+="; "+Qe(r);t++}return n+"]"}function Qe(e,t=0){var n;if(e!=null&&typeof e=="object"){if(typeof e.toString=="function")return e.toString();if(Symbol.iterator in e)return l1(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([i,o])=>i+" = "+Qe(o,t+1)).join(`
2
- `)+" }":(r==null?void 0:r.name)??""}}return String(e)}function u1(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=Qe(t[0]),r=n.indexOf(" ")>=0):n=t.map(i=>Qe(i)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class W{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return u1(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>en(n));return t.splice(0,0,ln(this.tag)),vo(t)}Equals(t){return this===t?!0:fs(this,t)&&this.tag===t.tag?Rf(this.fields,t.fields):!1}CompareTo(t){return this===t?0:fs(this,t)?this.tag===t.tag?Yl(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function c1(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function d1(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+Qe(n)).join(`
3
- `)+" }"}function f1(e){const t=Object.values(e).map(n=>en(n));return vo(t)}function m1(e,t){if(e===t)return!0;if(fs(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!J(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function h1(e,t){if(e===t)return 0;if(fs(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const i=St(e[n[r]],t[n[r]]);if(i!==0)return i}return 0}else return-1}class _e{toJSON(){return c1(this)}toString(){return d1(this)}GetHashCode(){return f1(this)}Equals(t){return m1(this,t)}CompareTo(t){return h1(this,t)}}class xt{get contents(){return this.getter()}set contents(t){this.setter(t)}constructor(t,n){typeof n=="function"?(this.getter=t,this.setter=n):(this.getter=()=>t,this.setter=r=>{t=r})}}class p1{constructor(t){this.message=t}}function g1(e){return e instanceof p1||e instanceof Error}function w1(e){return e instanceof Promise}function hs(e){return g1(e)||w1(e)?e:new Error(String(e))}const Zl=Qe(zp),Ci=Symbol("numeric");function Pf(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[Ci])}function y1(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function ll(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[Ci]().multiply(t)}function ts(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[Ci]().toFixed(t)}function ps(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[Ci]().toPrecision(t)}function gs(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[Ci]().toExponential(t)}function ws(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[Ci]().toHex()}const v1=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],b1=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],_1=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],x1=["January","February","March","April","May","June","July","August","September","October","November","December"];function jt(e,t,n){let r=0,i=t;for(;i<e.length&&e[i]===n;)i++,r++;return r}function fc(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function C1(e,t){let n=t;const r=e[t];let i="",o=!1;for(;t<e.length;){t++;const s=e[t];if(s===r){o=!0;break}else if(s==="\\")if(t<e.length)t++,i+=e[t];else throw new Error("Invalid string format");else i+=s}if(!o)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[i,t-n+1]}function Kl(e,t,n){let r=0,i=0,o="";const s=n?bo(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(i=jt(t,r,"d"),r+=i,i){case 1:o+=hc(s);break;case 2:o+=je(hc(s),2);break;case 3:o+=v1[wc(s)];break;case 4:o+=b1[wc(s)];break}break;case"f":if(i=jt(t,r,"f"),r+=i,i<=3){const b=10**(3-i);o+=je(Math.floor(jo(s)/b),i)}else i<=7&&(o+=(""+jo(s)).padEnd(i,"0"));break;case"F":if(i=jt(t,r,"F"),r+=i,i<=3){const b=10**(3-i),x=Math.floor(jo(s)/b);x!=0&&(o+=je(x,i))}else if(i<=7){const b=jo(s);b!=0&&(o+=je(b,3))}break;case"g":i=jt(t,r,"g"),r+=i,i<=2&&(o+="A.D.");break;case"h":switch(i=jt(t,r,"h"),r+=i,i){case 1:o+=Ho(s)%12;break;case 2:o+=je(Ho(s)%12,2);break}break;case"H":switch(i=jt(t,r,"H"),r+=i,i){case 1:o+=Ho(s);break;case 2:o+=je(Ho(s),2);break}break;case"K":switch(i=jt(t,r,"K"),r+=i,i){case 1:switch(mc(s)){case 1:o+="Z";break;case 2:o+=ni(s.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(i=jt(t,r,"m"),r+=i,i){case 1:o+=pc(s);break;case 2:o+=je(pc(s),2);break}break;case"M":switch(i=jt(t,r,"M"),r+=i,i){case 1:o+=Bo(s);break;case 2:o+=je(Bo(s),2);break;case 3:o+=_1[Bo(s)-1];break;case 4:o+=x1[Bo(s)-1];break}break;case"s":switch(i=jt(t,r,"s"),r+=i,i){case 1:o+=gc(s);break;case 2:o+=je(gc(s),2);break}break;case"t":switch(i=jt(t,r,"t"),r+=i,i){case 1:o+=s.getHours()<12?"A":"P";break;case 2:o+=s.getHours()<12?"AM":"PM";break}break;case"y":switch(i=jt(t,r,"y"),r+=i,i){case 1:o+=s.getFullYear()%100;break;case 2:o+=je(s.getFullYear()%100,2);break;case 3:o+=je(s.getFullYear(),3);break;case 4:o+=je(s.getFullYear(),4);break;case 5:o+=je(s.getFullYear(),5);break}break;case"z":i=jt(t,r,"z"),r+=i;let l="";switch(mc(s)){case 1:l="+00:00";break;case 2:l=ni(s.getTimezoneOffset()*-6e4);break;case 0:l=ni(I1(s).getTimezoneOffset()*-6e4);break}const c=l[0]==="-"?"-":"+",f=parseInt(l.substring(1,3),10),d=parseInt(l.substring(4,6),10);switch(i){case 1:o+=`${c}${f}`;break;case 2:o+=`${c}${je(f,2)}`;break;default:o+=`${c}${je(f,2)}:${je(d,2)}`;break}break;case":":o+=":",r++;break;case"/":o+="/",r++;break;case"'":case'"':const[p,h]=C1(t,r);o+=p,r+=h;break;case"%":const m=fc(t,r);if(m>=0&&m!==37)r+=2,o+=Kl(s,String.fromCharCode(m),n);else throw new Error("Invalid format string");break;case"\\":const v=fc(t,r);if(v>=0)r+=2,o+=String.fromCharCode(v);else throw new Error("Invalid format string");break;default:r++,o+=a;break}}return o}function mc(e){return e.kind||0}function ni(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+je(n,2)+":"+je(r,2)}function ys(e,t){const n=e.toISOString();return t==="first"?n.substring(0,n.indexOf("T")):n.substring(n.indexOf("T")+1,n.length-1)}function S1(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return je(e.getFullYear(),4)+"-"+je(e.getMonth()+1,2)+"-"+je(e.getDate(),2)+"T"+je(e.getHours(),2)+":"+je(e.getMinutes(),2)+":"+je(e.getSeconds(),2)+"."+je(e.getMilliseconds(),3)+(n?ni(e.getTimezoneOffset()*-6e4):"")}}function E1(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+ni(t)}function A1(e,t){const n=new Date(e.getTime()+(e.offset??0));if(typeof t!="string")return n.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+ni(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return ys(n,"first");case"T":case"t":return ys(n,"second");case"O":case"o":return E1(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return Kl(n,t,!0)}function k1(e,t){const n=e.kind===1;if(typeof t!="string")return n?e.toUTCString():e.toLocaleString();if(t.length===1)switch(t){case"D":case"d":return n?ys(e,"first"):e.toLocaleDateString();case"T":case"t":return n?ys(e,"second"):e.toLocaleTimeString();case"O":case"o":return S1(e,n);default:throw new Error("Unrecognized Date print format")}else return Kl(e,t,n)}function js(e,t,n){return e.offset!=null?A1(e,t):k1(e,t)}function bo(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function N1(){return bo(-621355968e5,1)}function Lf(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}(e==null||e.trim()==="")&&t(),e.length===10&&e[4]==="-"&&e[7]==="-"&&(e+="T00:00:00");let n=new Date(e),r=null;if(isNaN(n.getTime())){const i=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(i!=null){let o,s=0;if(i[2]!=null){const a=i[2].split(":"),l=parseInt(a[0],10);s=l*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),i[3]!=null&&i[3].toUpperCase()==="PM"&&l<12&&(s+=720)}if(i[4]!=null){if(i[1]!=null)o=new Date(i[1]+" UTC");else{const a=new Date;o=new Date(a.getUTCFullYear()+"/"+(a.getUTCMonth()+1)+"/"+a.getUTCDate())}if(i[4]==="Z")r="Z";else{let a=parseInt(i[5],10)*60+parseInt(i[6]||"0",10);i[4][0]==="-"&&(a*=-1),r=a,s-=a*60}}else if(i[1]!=null)o=new Date(i[1]);else{const a=new Date;o=new Date(a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.getDate())}n=new Date(o.getTime()+s*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-o.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function T1(e,t=!1){const[n,r]=Lf(e),i=r!=null?t&&r==="Z"?1:2:0;return bo(n.getTime(),i)}function $1(e,t){try{return t.contents=T1(e),!0}catch{return!1}}function M1(e){return e.kind===1?e:bo(e.getTime(),1)}function I1(e){return e.kind===2?e:bo(e.getTime(),2)}function hc(e){return e.kind===1?e.getUTCDate():e.getDate()}function Ho(e){return e.kind===1?e.getUTCHours():e.getHours()}function jo(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function pc(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function Bo(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function gc(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function wc(e){return e.kind===1?e.getUTCDay():e.getDay()}function D1(e,t=0){if(t&-284)throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let n="gu";return n+=t&1?"i":"",n+=t&2?"m":"",n+=t&16?"s":"",new RegExp(e,n)}function Bs(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function yc(e,t,n=0){if(t==null)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=n;const r=[];let i,o=-1;for(;(i=e.exec(t))!=null;)i.index===o?e.lastIndex++:(o=i.index,r.push(i));return r}function Xl(e,t,n,r,i=0){function o(){let s=arguments[0];if(r){r--;const a=[],l=arguments.length,c=typeof arguments[l-1]!="string";let f=c?l-3:l-2;for(let d=0;d<f;d++)a.push(arguments[d]);a.index=arguments[f++],a.input=arguments[f++],c&&(a.groups=arguments[f]),s=n(a)}return s}if(typeof e=="string"){const s=e;e=D1(t,r??0),t=s,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,i)+t.substring(i).replace(e,o);if(n=n.replace(/\$0/g,s=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let s;const a=t.substring(i),l=yc(e,a),c=yc.length>r?(s=l[r-1],a.substring(0,s.index+s[0].length)):a;return t.substring(0,i)+c.replace(e,n)+t.substring(i+c.length)}else return t.replace(e,n)}const Wi=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,O1=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Vf(e,t){return y1(e,t)<0}function Fn(e){return{input:e,cont:F1(e)}}function Hf(e,t){return typeof t=="string"?e(t):t.cont(e)}function Nr(e){return Hf(t=>t,e)}function jf(e){return Hf(t=>{throw new Error(t)},e)}function R1(e,t,n,r,i){let o="";if(t=t||"",i=i||"",Pf(e))switch(i.toLowerCase()!=="x"&&(Vf(e,0)?(e=ll(e,-1),o="-"):t.indexOf(" ")>=0?o=" ":t.indexOf("+")>=0&&(o="+")),r=r==null?null:parseInt(r,10),i){case"f":case"F":r=r??6,e=ts(e,r);break;case"g":case"G":e=r!=null?ps(e,r):ps(e);break;case"e":case"E":e=r!=null?gs(e,r):gs(e);break;case"x":e=ws(e);break;case"X":e=ws(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=js(e):e=Qe(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=o+e;else{const s=t.indexOf("0")>=0,a=t.indexOf("-")>=0,l=a||!s?" ":"0";l==="0"?(e=uo(e,n-o.length,l,a),e=o+e):e=uo(o+e,n,l,a)}return e}function Bf(e,t,n,r="",i=-1){return(...o)=>{let s=r;const a=t.slice(),l=n.slice();for(const c of o){const[,,f,d,p,h]=l[0];let m=d;if(i>=0)m=i,i=-1;else if(m==="*"){if(c<0)throw new Error("Non-negative number required");i=c;continue}s+=a[0],s+=R1(c,f,m,p,h),a.splice(0,1),l.splice(0,1)}return l.length===0?(s+=a[0],e(s)):Bf(e,a,l,s,i)}}function F1(e){return t=>{Wi.lastIndex=0;const n=[],r=[];let i=0,o=Wi.exec(e);for(;o;){const s=o.index+(o[1]||"").length;n.push(e.substring(i,s).replace(/%%/g,"%")),r.push(o),i=Wi.lastIndex,Wi.lastIndex-=1,o=Wi.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(i).replace(/%%/g,"%")),Bf(t,n,r))}}function Jl(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(O1,(r,i,o,s,a,l)=>{if(i<0||i>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let c=t[i];if(Pf(c))switch(a=a==null?null:parseInt(a,10),s){case"f":case"F":a=a??2,c=ts(c,a);break;case"g":case"G":c=a!=null?ps(c,a):ps(c);break;case"e":case"E":c=a!=null?gs(c,a):gs(c);break;case"p":case"P":a=a??2,c=ts(ll(c,100),a)+" %";break;case"d":case"D":c=a!=null?Ta(String(c),a,"0"):String(c);break;case"x":case"X":c=a!=null?Ta(ws(c),a,"0"):ws(c),s==="X"&&(c=c.toUpperCase());break;default:if(l){let f="";c=l.replace(/([0#,]+)(\.[0#]+)?/,(d,p,h)=>{Vf(c,0)&&(c=ll(c,-1),f="-"),h=h==null?"":h.substring(1),c=ts(c,Math.max(h.length,0));let[m,v]=c.split(".");v||(v="");const b=p.replace(/,/g,"").replace(/^#+/,"").length;m=Ta(m,b,"0");const x=h.replace(/#+$/,"").length;if(x>v.length?v=P1(v,x,"0"):x<v.length&&(v=v.substring(0,x)+v.substring(x).replace(/0+$/,"")),p.indexOf(",")>0){const C=m.length%3,S=Math.floor(m.length/3);let $=C>0?m.substr(0,C)+(S>0?",":""):"";for(let D=0;D<S;D++)$+=m.substr(C+D*3,3)+(D<S-1?",":"");m=$}return v.length>0?m+"."+v:m}),c=f+c}}else c instanceof Date?c=js(c,l||s):c=Qe(c);return o=parseInt((o||" ").substring(1),10),isNaN(o)||(c=uo(String(c),Math.abs(o)," ",o<0)),c})}function Ql(e){return typeof e!="string"||e.length===0}function Si(e){return typeof e!="string"||/^\s*$/.test(e)}function Et(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function uo(e,t,n,r){n=n||" ",t=t-e.length;for(let i=0;i<t;i++)e=r?e+n:n+e;return e}function Ta(e,t,n){return uo(e,t,n)}function P1(e,t,n){return uo(e,t,n,!0)}function Wf(e,t,n){return e.replace(new RegExp(Bs(t),"g"),n)}function Uf(e,t,n,r){if(n=typeof n=="number"?n:void 0,r=typeof r=="number"?r:0,n&&n<0)throw new Error("Count cannot be less than zero");if(n===0)return[];const i=(r&1)===1,o=(r&2)===2;t=t||[],t=t.filter(f=>f).map(Bs),t=t.length>0?t:["\\s"];const s=[],a=new RegExp(t.join("|"),"g");let l=!0,c=0;do{const f=a.exec(e);if(f===null){const d=o?e.substring(c).trim():e.substring(c);(!i||d.length>0)&&s.push(d),l=!1}else{const d=o?e.substring(c,f.index).trim():e.substring(c,f.index);(!i||d.length>0)&&(n!=null&&s.length+1===n?(s.push(o?e.substring(c).trim():e.substring(c)),l=!1):s.push(d)),c=a.lastIndex}}while(l);return s}function L1(e,...t){if(t.length===0)return e.trim();const n="["+Bs(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}function eu(e,...t){return t.length===0?e.trimEnd():e.replace(new RegExp("["+Bs(t.join(""))+"]+$"),"")}function V1(e,t,n){if(t+(n||0)>e.length)throw new Error("Invalid startIndex and/or length");return n!=null?e.substr(t,n):e.substr(t)}class Tr{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return en(this.value)}Equals(t){return t==null?!1:J(this.value,t instanceof Tr?t.value:t)}CompareTo(t){return t==null?1:St(this.value,t instanceof Tr?t.value:t)}}function V(e){if(e==null)throw new Error("Option has no value");return e instanceof Tr?e.value:e}function eo(e){return e instanceof Tr?e.value:e}function ct(e){return e==null||e instanceof Tr?new Tr(e):e}function Gf(e){return e==null?null:V(e)}function Ei(e){return e==null?[]:[V(e)]}function Ze(e,t){return e!=null?V(e):t}function H1(e,t){return e!=null?V(e):t()}function bt(e,t){return t!=null?ct(e(V(t))):void 0}function j1(e,t){return t!=null?e(V(t)):void 0}class B1{constructor(t,n,r,i){this.declaringType=t,this.tag=n,this.name=r,this.fields=i}}class Kt{constructor(t,n,r,i,o,s,a){this.fullname=t,this.generics=n,this.construct=r,this.parent=i,this.fields=o,this.cases=s,this.enumCases=a}toString(){return Ye(this)}GetHashCode(){return zf(this)}Equals(t){return ul(this,t)}}function zt(e){return e.generics!=null?e.generics:[]}function zf(e){const t=ur(e.fullname),n=zt(e).map(zf);return vo([t,...n])}function ul(e,t){return e.fullname===""?t.fullname===""&&sl(co(e),co(t),([n,r],[i,o])=>n===i&&ul(r,o)):e.fullname===t.fullname&&sl(zt(e),zt(t),ul)}function Qn(e,t,n,r){return new Kt(e,t,n,r)}function Rt(e,t,n,r){return new Kt(e,t,n,void 0,r)}function Ws(e,t,n,r){const i=new Kt(e,t,n,void 0,void 0,()=>{const o=n.prototype.cases();return r().map((s,a)=>new B1(i,a,o[a],s))});return i}function ri(e){return new Kt("Microsoft.FSharp.Core.FSharpOption`1",[e])}function er(e){return new Kt("Microsoft.FSharp.Collections.FSharpList`1",[e])}const W1=new Kt("System.Object"),Dn=new Kt("System.String"),cl=new Kt("System.Boolean"),ht=new Kt("System.Int32");function ii(e){if(Array.isArray(e))return e[0];if(e instanceof Kt){const t=_o(e);if(t!=null)return ii(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function Ye(e){const t=_o(e);return t!=null?Ye(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>Ye(n)).join(",")+"]"}function qf(e){return _o(e)!=null}function _o(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function Yf(e){return e.generics!=null&&e.generics.length>0}function tu(e){return e.enumCases!=null&&e.enumCases.length>0}function Zf(e){return e.generics==null?e:new Kt(e.fullname,e.generics.map(()=>W1))}function Kf(e){var t;return(t=e.generics)==null?void 0:t[0]}function Wr(e){if(tu(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function U1(e,t){if(e.enumCases!=null)if(typeof t=="string"){for(const n of e.enumCases)if(n[0]===t)return n;throw new Error(`'${t}' was not found in ${e.fullname}`)}else{for(const n of e.enumCases)if(n[1]===t)return n;return["",t]}else throw new Error(`${e.fullname} is not an enum type`)}function Ur(e,t){const n=parseInt(t,10);return U1(e,isNaN(n)?t:n)[1]}function Xf(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function co(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Jf(e){if(nu(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Qf(e){return e instanceof Kt?e.cases!=null:e instanceof W}function e0(e){return e instanceof Kt?e.fields!=null:e instanceof _e}function nu(e){return e.fullname.startsWith("System.Tuple")}function G1(e,t){const r=Xf(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function t0(e){return e.fields==null?[]:e.fields}function z1(e,t){return e[t[0]]}function q1(e,t){const n=(e.fields||[]).length;if(t.length!==n)throw new Error(`Expected an array of length ${n} but got ${t.length}`);const r=e.declaringType.construct;return r==null?{}:(e.declaringType.cases?e.declaringType.cases().length==1:!1)?new r(...t):new r(e.tag,t)}function Y1(e,t){const n=co(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return e.construct!=null?new e.construct(...t):n.reduce((r,[i,o],s)=>(r[i]=t[s],r),{})}function Z1(e,t){return e}const n0="Collection was empty.",K1="The input must be non-negative.",r0="The input sequence has an insufficient number of elements.";function hi(e,t){return new Array(t)}function vc(e,t){return e>t?e:t}function bc(e,t){return e<t?e:t}function i0(e,t,n){const r=e.length|0,i=t.length|0,o=hi(n,r+i);for(let s=0;s<=r-1;s++)$t(o,s,he(s,e));for(let s=0;s<=i-1;s++)$t(o,s+r,he(s,t));return o}function xo(e,t,n,r){const i=t|0;return e.fill(r,i,i+n)}function X1(e){if(e.length===0)throw new Error("The input array was empty\\nParameter name: array");return he(e.length-1,e)}function o0(e,t,n){const r=t.length|0,i=hi(n,r);for(let o=0;o<=r-1;o++)$t(i,o,e(o,he(o,t)));return i}function Ke(e,t,n){const r=t.length|0,i=hi(n,r);for(let o=0;o<=r-1;o++)$t(i,o,e(he(o,t)));return i}function vs(e,t){const n=Array.isArray(e)?e:Array.from(e);switch(n.length|0){case 0:return hi(t,0);case 1:return he(0,n);default:{let i=0,o=0;for(let a=0;a<=n.length-1;a++){const l=he(a,n);o=o+l.length|0}const s=hi(t,o);for(let a=0;a<=n.length-1;a++){const l=he(a,n);for(let c=0;c<=l.length-1;c++)$t(s,i,he(c,l)),i=i+1|0}return s}}}function J1(e,t,n,r,i){const o=Ze(n,0)|0,s=Ze(bt(l=>o+l,r),e.length)|0;return(l=>{e:for(;;){const c=l;if(c>=s)return-1;if(i.Equals(t,he(c,e)))return c|0;l=c+1;continue e}})(o)|0}function Ai(e,t,n){return J1(t,e,void 0,void 0,n)>=0}function Q1(e,t){const n=hi(t,1);return $t(n,0,e),n}function eg(e){return e.slice().reverse()}function Us(e,t){return t.find(e)}function qt(e,t,n){const r=[];for(let i=0;i<=t.length-1;i++){const o=e(he(i,t));if(o!=null){const s=V(o);r.push(s)}}return J(n,Ae())?r:Ke(i=>i,r,n)}function Gs(e,t,n){const r=e;return n.reduce(r,t)}function tg(e,t){const n=e.slice();return n.sort((r,i)=>t.Compare(r,i)),n}function ng(e,t,n){const r=t.slice();return r.sort((i,o)=>n.Compare(e(i),e(o))),r}function $r(e,t,n){if(t==null)return n==null;if(n==null)return!1;{let r=0,i=!0;const o=t.length|0,s=n.length|0;if(o>s)return!1;if(o<s)return!1;for(;r<o&&i;)i=e(he(r,t),he(r,n)),r=r+1|0;return i}}function _c(e){if(e.length===0)throw new Error("The input array was empty\\nParameter name: array");return he(0,e)}function rg(e){if(e.length===0)throw new Error("Not enough elements\\nParameter name: array");return e.slice(1)}function he(e,t){if(e<0||e>=t.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");return t[e]}function $t(e,t,n){if(t<0||t>=e.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");e[t]=n}function s0(e,t){if(!(e<0||e>=t.length))return ct(t[e])}function a0(e,t,n){return t.reduceRight((r,i)=>e(i,r),n)}class At extends _e{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+Et("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((i,o)=>{e:for(;;){const s=i,a=o,l=s.tail,c=a.tail;if(l!=null)if(c!=null){const f=V(l),d=V(c);if(J(s.head,a.head)){i=f,o=d;continue e}else return!1}else return!1;else return c==null}})(n,t)}GetHashCode(){return((r,i,o)=>{e:for(;;){const s=r,a=i,l=o,c=l.tail;if(c!=null){const f=V(c);if(s>18)return a|0;r=s+1,i=(a<<1)+en(l.head)+631*s,o=f;continue e}else return a|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((i,o)=>{e:for(;;){const s=i,a=o,l=s.tail,c=a.tail;if(l!=null)if(c!=null){const f=V(l),d=V(c),p=St(s.head,a.head)|0;if(p===0){i=f,o=d;continue e}else return p|0}else return 1;else return c!=null?-1:0}})(this,t)|0}GetEnumerator(){return og(this)}[Symbol.iterator](){return xi(Le(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Le(this)}}class ig{constructor(t){this.xs=t,this.it=this.xs,this.current=Ae()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this,n=t.it.tail;if(n!=null){const r=V(n);return t.current=t.it.head,t.it=r,!0}else return!1}"System.Collections.IEnumerator.Reset"(){const t=this;t.it=t.xs,t.current=Ae()}Dispose(){}}function og(e){return new ig(e)}function it(){return new At(Ae(),void 0)}function Co(e,t){return new At(e,t)}function yn(e){return e.tail==null}function l0(e){return((n,r)=>{e:for(;;){const i=n,s=r.tail;if(s!=null){n=i+1,r=V(s);continue e}else return i|0}})(0,e)|0}function tr(e){if(e.tail!=null)return e.head;throw new Error(n0+"\\nParameter name: list")}function vt(e){const t=e.tail;if(t!=null)return V(t);throw new Error(n0+"\\nParameter name: list")}function ot(){return it()}function Jt(e,t){return Co(e,t)}function le(e){return Co(e,it())}function $e(e){return yn(e)}function un(e){return l0(e)}function ae(e){return tr(e)}function Me(e){return vt(e)}function cr(e){const t=l0(e)|0,n=xo(new Array(t),0,t,null);return((i,o)=>{e:for(;;){const s=i,a=o;if(!yn(a)){$t(n,s,tr(a)),i=s+1,o=vt(a);continue e}break}})(0,e),n}function Vn(e,t,n){let r=t,i=n;for(;!yn(i);)r=e(r,ae(i)),i=vt(i);return r}function ru(e){return Vn((t,n)=>Co(n,t),it(),e)}function sg(e,t,n){return a0(e,cr(t),n)}function ag(e,t,n){return((i,o,s)=>{e:for(;;){const a=i,l=o,c=s;if(yn(c))return l;i=a+1,o=e(a,l,tr(c)),s=vt(c);continue e}})(0,t,n)}function bs(e,t){Vn((n,r)=>{e(r)},void 0,t)}function et(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=Co(he(r,e),n);return n}function g(e){return et(e,it())}function lg(e){let t,n;if(mn(e))return g(e);if(e instanceof At)return e;{const r=it();let i=r;const o=Le(e);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const l=o["System.Collections.Generic.IEnumerator`1.get_Current"]();i=(t=i,n=new At(l,void 0),t.tail=n,n)}}finally{Ie(o)}const s=i,a=it();return s.tail=a,vt(r)}}function So(e,t){return Vn((n,r)=>Co(r,n),t,ru(e))}function ug(e,t){let n,r;const i=it();let o=i,s=t;for(;!yn(s);){let c=e(tr(s));for(;!yn(c);)o=(n=o,r=new At(tr(c),void 0),n.tail=r,r),c=vt(c);s=vt(s)}const a=o,l=it();return a.tail=l,vt(i)}function iu(e,t){const n=it(),r=ag((o,s,a)=>{const l=new At(e(o,a),void 0);return s.tail=l,l},n,t),i=it();return r.tail=i,vt(n)}function nr(e,t){const n=it(),r=Vn((o,s)=>{const a=new At(e(s),void 0);return o.tail=a,a},n,t),i=it();return r.tail=i,vt(n)}function cg(e,t){return(r=>{e:for(;;){const i=r;if(yn(i))return;{const o=e(tr(i));if(o==null){r=vt(i);continue e}else return o}}})(t)}function u0(e,t){return cg(n=>e(n)?ct(n):void 0,t)}function dg(e,t){return((r,i)=>{e:for(;;){const o=r,s=i;if(yn(s))return;if(e(tr(s)))return o;r=o+1,i=vt(s);continue e}})(0,t)}function $n(e,t){const n=it(),r=Vn((o,s)=>{if(e(s)){const a=new At(s,void 0);return o.tail=a,a}else return o},n,t),i=it();return r.tail=i,vt(n)}function fg(e,t){const n=it(),r=it(),i=n,o=Vn((l,c)=>{let f,d;const p=l[0],h=l[1];return e(c)?[(f=new At(c,void 0),p.tail=f,f),h]:[p,(d=new At(c,void 0),h.tail=d,d)]},[i,r],t),s=it();o[0].tail=s;const a=it();return o[1].tail=a,[vt(i),vt(r)]}function mg(e,t){const n=it(),r=Vn((o,s)=>{const a=e(s);if(a==null)return o;{const l=new At(V(a),void 0);return o.tail=l,l}},n,t),i=it();return r.tail=i,vt(n)}function ou(e,t){return dg(e,t)!=null}function c0(e,t){const n=cr(t);return n.sort(e),g(n)}function hg(e,t,n){return c0((r,i)=>n.Compare(e(r),e(i)),t)}function pg(e,t,n){return c0((r,i)=>n.Compare(e(r),e(i))*-1,t)}function d0(e,t){e:for(;;){const n=e,r=t;if(n<=0)return r;if(yn(r))throw new Error(r0+"\\nParameter name: list");e=n-1,t=vt(r);continue e}}function f0(e,t){if(e<0)throw new Error(K1+"\\nParameter name: count");const n=(s,a,l)=>{let c;e:for(;;){const f=s,d=a,p=l;if(f<=0)return d;if(yn(p))throw new Error(r0+"\\nParameter name: list");s=f-1,a=(c=new At(tr(p),void 0),d.tail=c,c),l=vt(p);continue e}},r=it(),i=n(e,r,t),o=it();return i.tail=o,vt(r)}function gg(e,t,n){const r=un(n)|0;let i;const o=Ze(e,0)|0;i=o<0?0:o;let s;const a=Ze(t,r-1)|0;return s=a>=r?r-1:a,s<i?it():f0(s-i+1,d0(i,n))}const y=K;function wg(e){const t=g([u("style",{children:[Zl]}),u("div",{className:"text-blue-500",children:`Welcome to apollo-import-workspace-app, with backend url ${e.backendUrl}`})]);return u("div",{children:y.Children.toArray(Array.from(t))})}function yg(e){throw new Error(e)}const vg="Enumeration already finished.",bg="Enumeration has not started. Call MoveNext.",m0="The input sequence has an insufficient number of elements.",_g="Reset is not supported on this enumerator.";function xg(){throw new Error(_g)}function su(){throw new Error(bg)}function dl(){throw new Error(vg)}class Cg{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const i=Le(t);try{for(;n<4&&i["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+Qe(i["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{Ie(i)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return xi(Le(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function Sg(e){return new Cg(e)}class Eg{constructor(t,n,r){this.current=t,this.next=n,this.dispose=r}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current()}"System.Collections.IEnumerator.get_Current"(){return this.current()}"System.Collections.IEnumerator.MoveNext"(){return this.next()}"System.Collections.IEnumerator.Reset"(){xg()}Dispose(){this.dispose()}}function zs(e,t,n){return new Eg(e,t,n)}function Ag(e){let t,n,r=!1,i=!1,o;const s=()=>{if(i=!0,n!=null){const a=V(n);try{Ie(a)}finally{n=void 0}}if(t!=null){const a=V(t);try{Ie(a)}finally{t=void 0}}};return zs(()=>(r?i&&dl():su(),o!=null?V(o):dl()),()=>{let a;if(r||(r=!0),i)return!1;{let l;for(;l==null;){const c=t,f=n;if(c!=null)if(f!=null){const d=V(f);if(d["System.Collections.IEnumerator.MoveNext"]())o=ct(d["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{Ie(d)}finally{n=void 0}}else{const d=V(c);d["System.Collections.IEnumerator.MoveNext"]()?n=(a=d["System.Collections.Generic.IEnumerator`1.get_Current"](),Le(a)):(s(),l=!1)}else t=Le(e)}return V(l)}},()=>{i||s()})}function kg(e,t){return zs(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{Ie(t)}finally{}})}function h0(e,t,n){let r=!1,i,o=ct(e());const s=()=>{if(o!=null){const l=V(o);try{n(l)}finally{o=void 0}}},a=()=>{try{s()}finally{i=void 0}};return zs(()=>(r||su(),i!=null?V(i):dl()),()=>{if(r||(r=!0),o!=null){const l=V(o);let c;try{c=t(l)}catch(f){throw a(),f}return c!=null?(i=c,!0):(a(),!1)}else return!1},s)}function Ng(e,t){let n,r=t;return zs(()=>{if(n!=null){const i=V(n)[0];return V(n)[1],i}else return su()},()=>(n=e(r),n!=null?(V(n)[0],r=V(n)[1],!0):!1),()=>{})}function Tg(e,t){t==null&&yg(e)}function ki(e){return Sg(e)}function tn(e){return Tg("source",e),Le(e)}function T(e){return ki(()=>Le(e()))}function qs(e){return ki(()=>Ag(e))}function $g(e,t){return ki(()=>Ng(e,t))}function ft(){return T(()=>new Array(0))}function A(e){return T(()=>Q1(e))}function Pn(e){return e instanceof At?cr(e):Array.from(e)}function Y(e){return mn(e)?g(e):e instanceof At?e:lg(e)}function au(e,t,n){return ki(()=>h0(e,t,n))}function p0(e,t,n){return ki(()=>{let r=-1;return h0(e,i=>(r=r+1|0,t(r,i)),n)})}function H(e,t){return qs([e,t])}function Mg(e,t){return au(()=>tn(t),n=>{let r;for(;r==null&&n["System.Collections.IEnumerator.MoveNext"]();)r=e(n["System.Collections.Generic.IEnumerator`1.get_Current"]());return r},n=>{Ie(n)})}function Ig(e,t,n){const r=tn(t);try{const i=tn(n);try{let o=0,s=r["System.Collections.IEnumerator.MoveNext"](),a=i["System.Collections.IEnumerator.MoveNext"]();for(;o===0&&s&&a;)o=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),i["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,o===0&&(s=r["System.Collections.IEnumerator.MoveNext"](),a=i["System.Collections.IEnumerator.MoveNext"]());return(o!==0?o:s?1:a?-1:0)|0}finally{Ie(i)}}finally{Ie(r)}}function Gr(e,t,n){const r=tn(t);try{let i=!1;for(;!i&&r["System.Collections.IEnumerator.MoveNext"]();)i=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return i}finally{Ie(r)}}function Ys(e,t){return Mg(n=>{if(e(n))return ct(n)},t)}function Eo(e,t,n){const r=tn(n);try{let i=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)i=e(i,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return i}finally{Ie(r)}}function Hn(e,t){Eo((n,r)=>{e(r)},void 0,t)}function g0(e,t){Eo((n,r)=>(e(n,r),n+1|0),0,t)}function Dg(e){if(mn(e))return e.length|0;if(e instanceof At)return un(e)|0;{const t=tn(e);try{let n=0;for(;t["System.Collections.IEnumerator.MoveNext"]();)n=n+1|0;return n|0}finally{Ie(t)}}}function Pe(e,t){return au(()=>tn(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?ct(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{Ie(n)})}function Og(e,t){return p0(()=>tn(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?ct(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{Ie(n)})}function Rg(e,t,n){return au(()=>[tn(t),tn(n)],r=>{const i=r[0],o=r[1];return i["System.Collections.IEnumerator.MoveNext"]()&&o["System.Collections.IEnumerator.MoveNext"]()?ct(e(i["System.Collections.Generic.IEnumerator`1.get_Current"](),o["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0},r=>{try{Ie(r[0])}finally{Ie(r[1])}})}function Fg(e){return T(()=>eg(Pn(e)))}function Pg(e,t){return ki(()=>{const n=tn(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(m0+"\\nParameter name: source");return kg(()=>{},n)}catch(r){throw Ie(n),r}})}function Lg(e,t){return p0(()=>tn(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return ct(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(m0+"\\nParameter name: source")}else return},n=>{Ie(n)})}function Vg(e,t){return Rg((n,r)=>[n,r],e,t)}function Zs(e,t){return T(()=>qs(Pe(e,t)))}const vr={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function $a(e,t){return e.replace(/[a-z]?[A-Z]/g,n=>n.length===1?n.toLowerCase():n.charAt(0)+t+n.charAt(1).toLowerCase())}function Hg(e,t){switch(t){case vr.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case vr.SnakeCase:return $a(e,"_");case vr.SnakeCaseAllCaps:return $a(e,"_").toUpperCase();case vr.KebabCase:return $a(e,"-");case vr.None:default:return e}}function jn(e,t=vr.None){const n={},r=t;function i(s){throw new Error("Cannot infer key and value of "+String(s))}function o(s,a,l){s=Hg(s,a),n[s]=l}for(let s of e){let a=vr.None;if(s==null&&i(s),s instanceof W){const l=s.cases()[s.tag];s=s.fields.length===0?l:[l].concat(s.fields),a=r}if(Array.isArray(s))switch(s.length){case 0:i(s);break;case 1:o(s[0],a,!0);break;case 2:const l=s[1];o(s[0],a,l);break;default:o(s[0],a,s.slice(1))}else typeof s=="string"?o(s,a,!0):i(s)}return n}function lu(e,t,n){return e.has(t)?(n.contents=e.get(t),!0):!1}function w0(e,t){return t.has(e)?!1:(t.add(e),!0)}function jg(e,t,n){if(e.has(t))throw new Error("An item with the same key has already been added. Key: "+t);e.set(t,n)}function rr(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class y0{constructor(t,n){const r=new xt(Ae());this.comparer=n,r.contents=this,this.hashMap=new Map([]),this["init@9"]=1;const i=Le(t);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const o=i["System.Collections.Generic.IEnumerator`1.get_Current"]();Ma(r.contents,o)}}finally{Ie(i)}}get[Symbol.toStringTag](){return"HashSet"}toJSON(){const t=this;return Array.from(t)}"System.Collections.IEnumerable.GetEnumerator"(){return Le(this)}GetEnumerator(){return Le(qs(this.hashMap.values()))}[Symbol.iterator](){return xi(Le(this))}"System.Collections.Generic.ICollection`1.Add2B595"(t){Ma(this,t)}"System.Collections.Generic.ICollection`1.Clear"(){xc(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(t){return Sc(this,t)}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){g0((i,o)=>{$t(t,n+i,o)},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return Cc(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(t){return Ec(this,t)}get size(){return Cc(this)|0}add(t){const n=this;return Ma(n,t),n}clear(){xc(this)}delete(t){return Ec(this,t)}has(t){return Sc(this,t)}keys(){return Pe(n=>n,this)}values(){return Pe(n=>n,this)}entries(){return Pe(n=>[n,n],this)}forEach(t,n){const r=this;Hn(i=>{t(i,i,r)},r)}}function uu(e,t){const n=e.comparer.GetHashCode(t)|0;let r,i=Ae();return r=[lu(e.hashMap,n,new xt(()=>i,o=>{i=o})),i],r[0]?[!0,n,r[1].findIndex(o=>e.comparer.Equals(t,o))]:[!1,n,-1]}function xc(e){e.hashMap.clear()}function Cc(e){let t=0,n=Le(e.hashMap.values());try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=t+r.length|0}}finally{Ie(n)}return t|0}function Ma(e,t){const n=uu(e,t);return n[0]?n[2]>-1?!1:(rr(e.hashMap,n[1]).push(t),!0):(e.hashMap.set(n[1],[t]),!0)}function Sc(e,t){const n=uu(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return!0;default:return!1}}function Ec(e,t){const n=uu(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return rr(e.hashMap,n[1]).splice(n[2],1),!0;default:return!1}}class v0{constructor(t){this.k=t}}function Ut(e){return new v0(e)}function ve(e){return e.k}class Fe extends v0{constructor(t,n,r,i){super(t),this.left=n,this.right=r,this.h=i|0}}function Gt(e,t,n,r){return new Fe(e,t,n,r)}function Ge(e){return e.left}function We(e){return e.right}function ti(e){return e.h}function b0(e,t){e:for(;;){const n=e,r=t;if(n!=null){const i=V(n);if(i instanceof Fe){const o=i;e=Ge(o),t=b0(We(o),r+1);continue e}else return r+1|0}else return r|0}}function Bg(e){return b0(e,0)}function on(e,t,n){let r,i,o;const s=e;if(s!=null){const f=V(s);o=f instanceof Fe?(r=f,ti(r)):1}else o=0;let a;const l=n;if(l!=null){const f=V(l);a=f instanceof Fe?(i=f,ti(i)):1}else a=0;const c=(o<a?a:o)|0;return c===0?Ut(t):Gt(t,e,n,c+1)}function Ac(e,t,n){let r,i,o,s,a,l,c,f,d;const p=e;if(p!=null){const v=V(p);d=v instanceof Fe?(r=v,ti(r)):1}else d=0;let h;const m=n;if(m!=null){const v=V(m);h=v instanceof Fe?(i=v,ti(i)):1}else h=0;if(h>d+2){const v=V(n);if(v instanceof Fe){const b=v;if(o=Ge(b),(o!=null?(s=V(o),s instanceof Fe?(a=s,ti(a)):1):0)>d+1){const x=V(Ge(b));if(x instanceof Fe){const C=x;return on(on(e,t,Ge(C)),ve(C),on(We(C),ve(b),We(b)))}else throw new Error("internal error: Set.rebalance")}else return on(on(e,t,Ge(b)),ve(b),We(b))}else throw new Error("internal error: Set.rebalance")}else if(d>h+2){const v=V(e);if(v instanceof Fe){const b=v;if(l=We(b),(l!=null?(c=V(l),c instanceof Fe?(f=c,ti(f)):1):0)>h+1){const x=V(We(b));if(x instanceof Fe){const C=x;return on(on(Ge(b),ve(b),Ge(C)),ve(C),on(We(C),t,n))}else throw new Error("internal error: Set.rebalance")}else return on(Ge(b),ve(b),on(We(b),t,n))}else throw new Error("internal error: Set.rebalance")}else return on(e,t,n)}function pi(e,t,n){if(n!=null){const r=V(n),i=e.Compare(t,ve(r))|0;if(r instanceof Fe){const o=r;return i<0?Ac(pi(e,t,Ge(o)),ve(o),We(o)):i===0?n:Ac(Ge(o),ve(o),pi(e,t,We(o)))}else{const o=e.Compare(t,ve(r))|0;return o<0?Gt(t,void 0,n,2):o===0?n:Gt(t,n,void 0,2)}}else return Ut(t)}function _0(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=V(o),a=r.Compare(i,ve(s))|0;if(s instanceof Fe){const l=s;if(a<0){e=r,t=i,n=Ge(l);continue e}else{if(a===0)return!0;e=r,t=i,n=We(l);continue e}}else return a===0}else return!1}}function x0(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=V(r);if(i instanceof Fe){const o=i;x0(n,Ge(o)),n(ve(o)),e=n,t=We(o);continue e}else n(ve(i))}break}}class Wg extends _e{constructor(t,n){super(),this.stack=t,this.started=n}}function C0(e){e:for(;;){const t=e;if($e(t))return ot();{const n=ae(t),r=Me(t);if(n!=null){const i=V(n);if(i instanceof Fe){const o=i;e=et([Ge(o),Ut(ve(o)),We(o)],r);continue e}else return t}else{e=r;continue e}}}}function kc(e){return new Wg(C0(le(e)),!1)}function Ug(){throw new Error("Enumeration not started")}function Gg(){throw new Error("Enumeration already started")}function Nc(e){if(e.started){const t=e.stack;if($e(t))return Gg();if(ae(t)!=null){const n=V(ae(t));return ve(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return Ug()}function zg(e){if(e.started){const t=e.stack;if($e(t))return!1;if(ae(t)!=null){if(V(ae(t))instanceof Fe)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=C0(Me(t)),!$e(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!$e(e.stack)}function Tc(e){let t=kc(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Nc(t)},"System.Collections.IEnumerator.get_Current"(){return Nc(t)},"System.Collections.IEnumerator.MoveNext"(){return zg(t)},"System.Collections.IEnumerator.Reset"(){t=kc(e)},Dispose(){}}}function qg(e,t,n){e:for(;;){const r=e,i=t,o=n;if($e(i))return $e(o)?0:-1;if($e(o))return 1;if(ae(o)!=null)if(ae(i)!=null){const s=V(ae(i)),a=V(ae(o));if(s instanceof Fe){const l=s;if(Ge(l)==null)if(a instanceof Fe){const c=a;if(Ge(c)==null){const f=r.Compare(ve(l),ve(c))|0;if(f!==0)return f|0;e=r,t=Jt(We(l),Me(i)),n=Jt(We(c),Me(o));continue e}else{let f,d,p,h,m;switch($e(i)?$e(o)?f=2:ae(o)!=null?(f=1,h=Me(o),m=V(ae(o))):f=2:ae(i)!=null?(f=0,d=Me(i),p=V(ae(i))):$e(o)?f=2:ae(o)!=null?(f=1,h=Me(o),m=V(ae(o))):f=2,f){case 0:if(p instanceof Fe){const v=p;e=r,t=et([Ge(v),Gt(ve(v),void 0,We(v),0)],d),n=o;continue e}else{e=r,t=et([void 0,Ut(ve(p))],d),n=o;continue e}case 1:if(m instanceof Fe){const v=m;e=r,t=i,n=et([Ge(v),Gt(ve(v),void 0,We(v),0)],h);continue e}else{e=r,t=i,n=et([void 0,Ut(ve(m))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const c=r.Compare(ve(l),ve(a))|0;if(c!==0)return c|0;e=r,t=Jt(We(l),Me(i)),n=Jt(void 0,Me(o));continue e}else{let c,f,d,p,h;switch($e(i)?$e(o)?c=2:ae(o)!=null?(c=1,p=Me(o),h=V(ae(o))):c=2:ae(i)!=null?(c=0,f=Me(i),d=V(ae(i))):$e(o)?c=2:ae(o)!=null?(c=1,p=Me(o),h=V(ae(o))):c=2,c){case 0:if(d instanceof Fe){const m=d;e=r,t=et([Ge(m),Gt(ve(m),void 0,We(m),0)],f),n=o;continue e}else{e=r,t=et([void 0,Ut(ve(d))],f),n=o;continue e}case 1:if(h instanceof Fe){const m=h;e=r,t=i,n=et([Ge(m),Gt(ve(m),void 0,We(m),0)],p);continue e}else{e=r,t=i,n=et([void 0,Ut(ve(h))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof Fe){const l=a;if(Ge(l)==null){const c=r.Compare(ve(s),ve(l))|0;if(c!==0)return c|0;e=r,t=Jt(void 0,Me(i)),n=Jt(We(l),Me(o));continue e}else{let c,f,d,p,h;switch($e(i)?$e(o)?c=2:ae(o)!=null?(c=1,p=Me(o),h=V(ae(o))):c=2:ae(i)!=null?(c=0,f=Me(i),d=V(ae(i))):$e(o)?c=2:ae(o)!=null?(c=1,p=Me(o),h=V(ae(o))):c=2,c){case 0:if(d instanceof Fe){const m=d;e=r,t=et([Ge(m),Gt(ve(m),void 0,We(m),0)],f),n=o;continue e}else{e=r,t=et([void 0,Ut(ve(d))],f),n=o;continue e}case 1:if(h instanceof Fe){const m=h;e=r,t=i,n=et([Ge(m),Gt(ve(m),void 0,We(m),0)],p);continue e}else{e=r,t=i,n=et([void 0,Ut(ve(h))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(ve(s),ve(a))|0;if(l!==0)return l|0;e=r,t=Me(i),n=Me(o);continue e}}else{V(ae(o));let s,a,l,c,f;switch($e(i)?$e(o)?s=2:ae(o)!=null?(s=1,c=Me(o),f=V(ae(o))):s=2:ae(i)!=null?(s=0,a=Me(i),l=V(ae(i))):$e(o)?s=2:ae(o)!=null?(s=1,c=Me(o),f=V(ae(o))):s=2,s){case 0:if(l instanceof Fe){const d=l;e=r,t=et([Ge(d),Gt(ve(d),void 0,We(d),0)],a),n=o;continue e}else{e=r,t=et([void 0,Ut(ve(l))],a),n=o;continue e}case 1:if(f instanceof Fe){const d=f;e=r,t=i,n=et([Ge(d),Gt(ve(d),void 0,We(d),0)],c);continue e}else{e=r,t=i,n=et([void 0,Ut(ve(f))],c);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(ae(i)!=null){V(ae(i));let s,a,l,c,f;switch($e(i)?$e(o)?s=2:ae(o)!=null?(s=1,c=Me(o),f=V(ae(o))):s=2:ae(i)!=null?(s=0,a=Me(i),l=V(ae(i))):$e(o)?s=2:ae(o)!=null?(s=1,c=Me(o),f=V(ae(o))):s=2,s){case 0:if(l instanceof Fe){const d=l;e=r,t=et([Ge(d),Gt(ve(d),void 0,We(d),0)],a),n=o;continue e}else{e=r,t=et([void 0,Ut(ve(l))],a),n=o;continue e}case 1:if(f instanceof Fe){const d=f;e=r,t=i,n=et([Ge(d),Gt(ve(d),void 0,We(d),0)],c);continue e}else{e=r,t=i,n=et([void 0,Ut(ve(f))],c);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=Me(i),n=Me(o);continue e}}}function $c(e,t,n){return t==null?n==null?0:-1:n==null?1:qg(e,le(t),le(n))|0}function Yg(e,t,n){let r=n;x0(i=>{$t(t,r,i),r=r+1|0},e)}function Zg(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){e=r,t=pi(r,o["System.Collections.Generic.IEnumerator`1.get_Current"](),i),n=o;continue e}else return i}}function Kg(e,t){return Gs((n,r)=>pi(e,r,n),void 0,t)}function Xg(e,t){return Vn((n,r)=>pi(e,r,n),void 0,t)}function S0(e,t){if(mn(t))return Kg(e,t);if(t instanceof At)return Xg(e,t);{const n=Le(t);try{return Zg(e,void 0,n)}finally{Ie(n)}}}class cu{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return ew(this)|0}Equals(t){let n;const r=this;return t instanceof cu&&(n=t,$c(oi(r),sn(r),sn(n))===0)}toString(){return"set ["+Et("; ",Pe(n=>Qe(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return $c(oi(n),sn(n),sn(t))|0}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return _0(oi(n),t,sn(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Yg(sn(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Ia(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Ia(this)|0}GetEnumerator(){return Tc(sn(this))}[Symbol.iterator](){return xi(Le(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Tc(sn(this))}get size(){return Ia(this)|0}add(t){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(t){throw new Error("Set cannot be mutated")}has(t){return E0(this,t)}keys(){return Pe(n=>n,this)}values(){return Pe(n=>n,this)}entries(){return Pe(n=>[n,n],this)}forEach(t,n){const r=this;Hn(i=>{t(i,i,r)},r)}}function Ks(e,t){return new cu(e,t)}function oi(e){return e.comparer}function sn(e){return e.tree}function Jg(e){return Ks(e,void 0)}function Qg(e,t){return Ks(oi(e),pi(oi(e),t,sn(e)))}function Ia(e){return Bg(sn(e))}function E0(e,t){return _0(oi(e),t,sn(e))}function ew(e){let t=0;const n=Le(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+en(r)+631|0}}finally{Ie(n)}return Math.abs(t)|0}function fl(e,t){return E0(t,e)}function tw(e,t){return Qg(t,e)}function nw(e){return Jg(e)}function rw(e,t){return Ks(t,S0(t,e))}function iw(e,t){return Ks(t,S0(t,e))}function ow(){return ot()}function du(e){return Et("/",e)}function sw(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+du(t),n])}function A0(e,t,n){try{Ie(n)}catch(r){e(["Error stopping subscription: "+du(t),r])}}function aw(e,t,n,r){try{return[n,r(t)]}catch(i){e(["Error starting subscription: "+du(n),i]);return}}function lw(e,t){bs(n=>{A0(e,n[0],n[1])},t)}function Mc(e,t,n,r,i,o){return bs(s=>{sw(e,s)},n),bs(s=>{A0(e,s[0],s[1])},r),So(i,mg(s=>aw(e,t,s[0],s[1]),o))}function uw(){return[ot(),nw({Compare:St}),ot()]}function cw(e,t,n,r,i){return fl(e,r)?[Jt(e,n),r,i]:[n,tw(e,r),Jt([e,t],i)]}function dw(e){return sg((t,n)=>cw(t[0],t[1],n[0],n[1],n[2]),e,uw())}const fw=ot();function Ic(e,t){const n=rw(nr(s=>s[0],e),{Compare:St}),r=dw(t),i=r[1],o=r[0];if(n.Equals(i))return[o,ot(),e,ot()];{const s=fg(a=>fl(a[0],i),e);return[o,s[1],s[0],$n(a=>!fl(a[0],n),r[2])]}}function mw(e){return new k0(0,[e])}function hw(e){return new k0(1,[e])}class k0 extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function pw(e){return mw(e)}function gw(e){return hw(e)}class ww{constructor(t,n,r){this.OnNext=t,this.OnError=n||(i=>{}),this.OnCompleted=r||(()=>{})}}function yw(e,t){t.Subscribe(new ww(e))}class vw{constructor(){this.delegates=[]}_add(t){this.delegates.push(t)}_remove(t){const n=this.delegates.indexOf(t);n>-1&&this.delegates.splice(n,1)}get Publish(){return _w(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const i=n===void 0?t:(r=t,n);this.delegates.forEach(o=>{o(r,i)})}}let bw=class extends vw{};function _w(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(i,o)=>n.OnNext(o);return e(r),{Dispose(){t(r)}}}}}class xw{constructor(t){this._enabled=!1,this._isDisposed=!1,this._intervalId=0,this._timeoutId=0,this.Interval=t&&t>0?t:100,this.AutoReset=!0,this._elapsed=new bw}Elapsed(){return this._elapsed.Publish}get Enabled(){return this._enabled}set Enabled(t){!this._isDisposed&&this._enabled!==t&&(this._enabled=t,this._enabled?this.AutoReset?this._intervalId=setInterval(()=>{this.AutoReset||(this.Enabled=!1),this._elapsed.Trigger(new Date)},this.Interval):this._timeoutId=setTimeout(()=>{this.Enabled=!1,this._timeoutId=0,this.AutoReset&&(this.Enabled=!0),this._elapsed.Trigger(new Date)},this.Interval):(this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=0),this._intervalId&&(clearInterval(this._intervalId),this._intervalId=0)))}Dispose(){this.Enabled=!1,this._isDisposed=!0}Close(){this.Dispose()}Start(){this.Enabled=!0}Stop(){this.Enabled=!1}}function Cw(e,t){console.error(ct(e),t)}function Sw(e,t){let n,r=new xw(e);r.AutoReset=!1,n=r,yw(t,n.Elapsed()),n.Enabled=!0,n.Start()}class N0{constructor(t=!1){this._id=0,this._cancelled=t,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,t]of this._listeners)t()}}addListener(t){const n=this._id;return this._listeners.set(this._id++,t),n}removeListener(t){return this._listeners.delete(t)}register(t,n){const r=this,i=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(i)}}}Dispose(){}}class Xs extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Xs.prototype)}}class fu{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>fu.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function Mn(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new Xs);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(hs(n))}});else try{e(t)}catch(n){t.onError(hs(n))}}}function Ew(e,t){return Mn(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(i){n.onError(hs(i))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function Aw(e){return Mn(t=>t.onSuccess(e))}class kw{Bind(t,n){return Ew(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return Mn(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let i=r.next();return this.While(()=>!i.done,this.Delay(()=>{const o=n(i.value);return i=r.next(),o}))}Return(t){return Aw(t)}ReturnFrom(t){return t}TryFinally(t,n){return Mn(r=>{t({onSuccess:i=>{n(),r.onSuccess(i)},onError:i=>{n(),r.onError(i)},onCancel:i=>{n(),r.onCancel(i)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return Mn(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:i=>{try{n(i)(r)}catch(o){r.onError(hs(o))}}})})}Using(t,n){return this.TryFinally(n(t),()=>t.Dispose())}While(t,n){return t()?this.Bind(n,()=>this.While(t,n)):this.Return(void 0)}Zero(){return Mn(t=>t.onSuccess(void 0))}}const Q=new kw;function Da(e){}function Nw(e){return new N0(!1)}function Tw(e){e.cancel()}function $w(e){return e!=null&&e.isCancelled}const Mw=new N0;function Iw(e){return Mn(t=>{e({onSuccess:n=>t.onSuccess(pw(n)),onError:n=>t.onSuccess(gw(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function Dw(e){return Mn(t=>e([t.onSuccess,t.onError,t.onCancel]))}function T0(e){return Mn(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new Xs)})})}function Ow(e,t){return Rw(e,t)}function Js(e,t){return Ow(e,t)}function Rw(e,t,n,r,i){typeof t!="function"&&(i=t,t=void 0);const o=new fu;e({onSuccess:t||Da,onError:Da,onCancel:Da,cancelToken:i||Mw,trampoline:o})}function Dc(e,t,n){bs(r=>{try{r(t)}catch(i){e(i)}},n)}function X(){return ot()}function ns(e){return le(e)}function $0(e,t,n,r){return le(i=>{e(Q.Delay(()=>Q.Bind(Iw(t(n)),o=>{const s=o;return s.tag===0&&i(r(s.fields[0])),Q.Zero()})))})}function M0(e){Sw(1,t=>{Js(e)})}function Fw(e,t,n,r){const i=St(e,n)|0;if(i===0)throw new Error("The step of a range cannot be zero");const o=i>0;return s=>{const a=St(s,t)|0;return o&&a<=0||!o&&a>=0?[s,r(s,e)]:void 0}}function Pw(e,t,n,r,i){const o=Fw(t,n,r,i);return T(()=>$g(o,e))}function mu(e,t,n){return Pw(e,t,n,0,(r,i)=>r+i)}class si extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class Lw{constructor(t){this.state=new si(0,[xo(new Array(vc(t,10)),0,vc(t,10),null),0])}}function Vw(e){return new Lw(e)}function Oc(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,i=t.fields[0],o=(r+1)%i.length|0;return o===n?e.state=new si(0,[i,n]):e.state=new si(1,[i,n,o]),ct(he(r,i))}else return}function Hw(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,i=n.fields[2]|0,o=n.fields[0];$t(o,r,t);const s=(r+1)%o.length|0;s===i?e.state=new si(1,[jw(e,i,o),o.length,0]):e.state=new si(1,[o,s,i])}else{const r=n.fields[1]|0,i=n.fields[0];$t(i,r,t);const o=(r+1)%i.length|0;e.state=new si(1,[i,o,r])}}function jw(e,t,n){return Array.from(T(()=>H(Pg(t,n),T(()=>H(Lg(t,n),T(()=>Zs(r=>A(Ae()),mu(0,1,n.length))))))))}class hu extends _e{constructor(t,n,r,i,o,s,a){super(),this.init=t,this.update=n,this.subscribe=r,this.view=i,this.setState=o,this.onError=s,this.termination=a}}function Hr(e,t,n){return new hu(e,t,r=>ow(),n,qe(r=>{const i=qn(n)(r);return o=>{i(o)}}),r=>{Cw(r[0],r[1])},[r=>!1,r=>{}])}function Bw(e,t){return new hu(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function Ww(e){return e.init}function Uw(e,t,n,r,i,o,s){const a=qn(e)(s.init),l=Na(t)(qn(s.update)),c=Na(n)(qn(s.view)),f=Na(r)(qn(s.setState));return new hu(a,qe(l),qn(i)(s.subscribe),qe(c),qe(f),s.onError,o(s.termination))}function Gw(e,t,n){let r;const i=n.init(t),o=i[0],s=n.subscribe(o),a=n.termination,l=Vw(10);let c=!1,f=o,d=fw,p=!1;const h=b=>{p||(Hw(l,b),c||(c=!0,v(),c=!1))},m=qn(e)(h),v=()=>{let b,x=Oc(l);for(;!p&&x!=null;){const C=V(x);if(a[0](C))lw(n.onError,d),a[1](f),p=!0;else{const S=n.update(C,f),$=S[0],D=n.subscribe($);n.setState($,m),Dc(F=>{n.onError([Nr(Fn("Error handling the message: %A"))(C),F])},m,S[1]),f=$,d=(b=Ic(d,D),Mc(n.onError,m,b[0],b[1],b[2],b[3])),x=Oc(l)}}};c=!0,n.setState(o,m),Dc(b=>{n.onError([Nr(Fn("Error intitializing:")),b])},m,i[1]),d=(r=Ic(d,s),Mc(n.onError,m,r[0],r[1],r[2],r[3])),v(),c=!1}function zw(e,t){Gw(qe(n=>n),e,t)}function qw(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Oa={exports:{}},Ra={};const Yw=qw(ds);/**
4
- * @license React
5
- * use-sync-external-store-shim.production.min.js
6
- *
7
- * Copyright (c) Facebook, Inc. and its affiliates.
8
- *
9
- * This source code is licensed under the MIT license found in the
10
- * LICENSE file in the root directory of this source tree.
11
- */var Rc;function Zw(){if(Rc)return Ra;Rc=1;var e=Yw;function t(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,o=e.useLayoutEffect,s=e.useDebugValue;function a(d,p){var h=p(),m=r({inst:{value:h,getSnapshot:p}}),v=m[0].inst,b=m[1];return o(function(){v.value=h,v.getSnapshot=p,l(v)&&b({inst:v})},[d,h,p]),i(function(){return l(v)&&b({inst:v}),d(function(){l(v)&&b({inst:v})})},[d]),s(h),h}function l(d){var p=d.getSnapshot;d=d.value;try{var h=p();return!n(d,h)}catch{return!0}}function c(d,p){return p()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:a;return Ra.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,Ra}var Fc;function Kw(){return Fc||(Fc=1,Oa.exports=Zw()),Oa.exports}var Xw=Kw();class Jw{constructor(t,n,r){this.arg=n,this.dependencies=r;const i=t(),o=[];this.finalDispatch=void 0;let s;const a=Ww(i)(this.arg);let l=a[0],c=a[1];s=[[l,f=>{const d=this.finalDispatch;d==null?o.push(f):d(f)},!1,o],c],this.state=s[0],this.cmd=s[1],this.subscribe=f=>{let d=!1;const p=ol(this.state[0]);return zw(this.arg,Bw((h,m)=>{const v=this.state;this.finalDispatch=m,this.state=[h,v[1],!0,o],h!==v[0]&&f()},Uw((h,m)=>{const v=this.cmd;return this.cmd=X(),[this.state[0],v]},(h,m,v)=>h(m)(this.state[0]),al(h=>h),al(h=>h),qe(h=>h),h=>[m=>h[0](m)?!0:p&&d,m=>{const v=m;ol(v)?Ie(v):h[1](m)}],i))),()=>{d=!0}}}}function Pc(e,t,n){return new Jw(e,t,n)}function Qw(e){return e.state}function ey(e){return e.subscribe}function ty(e,t,n){return J(e.arg,t)?!J(e.dependencies,n):!0}function jr(e,t,n){const r=be(()=>Pc(e,t,n)),i=r[0];ty(i,t,n)&&r[1](Pc(e,t,n));const o=Xw.useSyncExternalStore(ey(i),()=>Qw(i)),s=o[2],a=o[3],l=o[1];return Re(()=>{if(s&&a.length>0){let c=Le(a);try{for(;c["System.Collections.IEnumerator.MoveNext"]();){const f=c["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{l(f)})}}finally{Ie(c)}a1(a)}},[s,a]),[o[0],l]}class ny extends _e{constructor(t,n){super(),this.Name=t,this.Email=n}}function pu(){return Rt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.UserDto",[],ny,()=>[["Name",Dn],["Email",ri(Dn)]])}class I0 extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Profiles","Tax"]}}function D0(){return Ws("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.ImportStageDto",[],I0,()=>[[],[]])}class ry extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Invite","RevokeInvite"]}}function iy(){return Ws("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.BenefitsRequestTypeDto",[],ry,()=>[[],[]])}class oy extends _e{constructor(t,n,r,i){super(),this.User=t,this.ProfileCount=n|0,this.RequestType=r,this.RequestedAt=i}}function sy(){return Rt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.BenefitsRequestInfoDto",[],oy,()=>[["User",pu()],["ProfileCount",ht],["RequestType",iy()],["RequestedAt",Qn("System.DateTime")]])}class ay extends _e{constructor(t,n,r,i,o,s){super(),this.Stage=t,this.InputRowCount=n|0,this.StartTime=r,this.SucceededRowCount=i,this.FailedRowCount=o,this.RemainingRowCount=s}}function ly(){return Rt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.RunningStageDto",[],ay,()=>[["Stage",D0()],["InputRowCount",ht],["StartTime",Qn("System.DateTime")],["SucceededRowCount",ri(ht)],["FailedRowCount",ri(ht)],["RemainingRowCount",ri(ht)]])}class uy extends _e{constructor(t,n,r,i,o,s){super(),this.Stage=t,this.InputRowCount=n|0,this.SucceededRowCount=r|0,this.FailedRowCount=i|0,this.StartTime=o,this.StopTime=s}}function O0(){return Rt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.CompletedStageDto",[],uy,()=>[["Stage",D0()],["InputRowCount",ht],["SucceededRowCount",ht],["FailedRowCount",ht],["StartTime",Qn("System.DateTime")],["StopTime",Qn("System.DateTime")]])}class cy extends _e{constructor(t,n,r,i,o,s,a){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=i|0,this.CurrentStage=o,this.CompletedStages=s,this.StartTime=a}}function dy(){return Rt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.ActiveImportDto",[],cy,()=>[["ImportId",ht],["User",pu()],["Filename",Dn],["NumberOfRecords",ht],["CurrentStage",ri(ly())],["CompletedStages",er(O0())],["StartTime",Qn("System.DateTime")]])}class fy extends _e{constructor(t,n,r,i,o,s,a,l){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=i|0,this.CompletedStages=o,this.BenefitsRequests=s,this.StartTime=a,this.StopTime=l}}function my(){return Rt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.PastImportDto",[],fy,()=>[["ImportId",ht],["User",pu()],["Filename",Dn],["NumberOfRecords",ht],["CompletedStages",er(O0())],["BenefitsRequests",er(sy())],["StartTime",Qn("System.DateTime")],["StopTime",Qn("System.DateTime")]])}class hy extends _e{constructor(t,n){super(),this.ActiveImport=t,this.ImportHistory=n}}function py(){return Rt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.AccountImportsDto",[],hy,()=>[["ActiveImport",ri(dy())],["ImportHistory",er(my())]])}function gy(e){return new M(0,[e])}function R0(e){return new M(1,[e])}class M extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function Ln(e,t){return t.tag===0?gy(e(t.fields[0])):R0(t.fields[0])}function wy(e,t){return t.tag===0?e(t.fields[0]):R0(t.fields[0])}class ml extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Asc","Desc"]}}function yy(e){return e.tag===1?new ml(0,[]):new ml(1,[])}function vy(e,t,n){return e.tag===1?pg(t,n,{Compare:St}):hg(t,n,{Compare:St})}class Qs extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Requested","Finished"]}}let rs=class extends _e{constructor(t){super(),this.View=t}},is=class extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Loaded","Error"]}},F0=class extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["GetAccountImports"]}};function by(){return[new rs(new is(0,[])),le(e=>{e(new F0(new Qs(0,[void 0])))})]}function _y(e,t,n){return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new rs(new is(2,[t.fields[0].fields[0].fields[0]])),X()]:[new rs(new is(1,[t.fields[0].fields[0].fields[0]])),X()]:[new rs(new is(0,[])),$0(r=>{M0(r)},e,void 0,r=>new F0(new Qs(1,[r])))]}class Ao extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class gu extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class ea extends _e{constructor(t,n,r,i,o,s,a,l){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=i,this.overridenMimeType=o,this.overridenResponseType=s,this.timeout=a,this.content=l}}class Xr extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class P0 extends _e{constructor(t,n,r,i,o,s){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=i,this.responseHeaders=o,this.content=s}}class L0{constructor(t,n){this.k=t,this.v=n}}function gi(e,t){return new L0(e,t)}function at(e){return e.k}function mt(e){return e.v}class ut extends L0{constructor(t,n,r,i,o){super(t,n),this.left=r,this.right=i,this.h=o|0}}function Ar(e,t,n,r,i){return new ut(e,t,n,r,i)}function nt(e){return e.left}function rt(e){return e.right}function Kn(e){return e.h}function V0(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=V(r);if(i instanceof ut){const o=i;e=V0(n+1,nt(o)),t=rt(o);continue e}else return n+1|0}else return n|0}}function H0(e){return V0(0,e)}function Wt(e,t,n,r){let i,o,s;const a=e;if(a!=null){const d=V(a);s=d instanceof ut?(i=d,Kn(i)):1}else s=0;let l;const c=r;if(c!=null){const d=V(c);l=d instanceof ut?(o=d,Kn(o)):1}else l=0;const f=(s<l?l:s)|0;return f===0?gi(t,n):Ar(t,n,e,r,f+1)}function _s(e,t,n,r){let i,o,s,a,l,c,f,d,p;const h=e;if(h!=null){const b=V(h);p=b instanceof ut?(i=b,Kn(i)):1}else p=0;let m;const v=r;if(v!=null){const b=V(v);m=b instanceof ut?(o=b,Kn(o)):1}else m=0;if(m>p+2){const b=V(r);if(b instanceof ut){const x=b;if(s=nt(x),(s!=null?(a=V(s),a instanceof ut?(l=a,Kn(l)):1):0)>p+1){const C=V(nt(x));if(C instanceof ut){const S=C;return Wt(Wt(e,t,n,nt(S)),at(S),mt(S),Wt(rt(S),at(x),mt(x),rt(x)))}else throw new Error("internal error: Map.rebalance")}else return Wt(Wt(e,t,n,nt(x)),at(x),mt(x),rt(x))}else throw new Error("internal error: Map.rebalance")}else if(p>m+2){const b=V(e);if(b instanceof ut){const x=b;if(c=rt(x),(c!=null?(f=V(c),f instanceof ut?(d=f,Kn(d)):1):0)>m+1){const C=V(rt(x));if(C instanceof ut){const S=C;return Wt(Wt(nt(x),at(x),mt(x),nt(S)),at(S),mt(S),Wt(rt(S),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Wt(nt(x),at(x),mt(x),Wt(rt(x),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Wt(e,t,n,r)}function wi(e,t,n,r){if(r!=null){const i=V(r),o=e.Compare(t,at(i))|0;if(i instanceof ut){const s=i;return o<0?_s(wi(e,t,n,nt(s)),at(s),mt(s),rt(s)):o===0?Ar(t,n,nt(s),rt(s),Kn(s)):_s(nt(s),at(s),mt(s),wi(e,t,n,rt(s)))}else return o<0?Ar(t,n,void 0,r,2):o===0?gi(t,n):Ar(t,n,r,void 0,2)}else return gi(t,n)}function wu(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=V(o),a=r.Compare(i,at(s))|0;if(a===0)return ct(mt(s));if(s instanceof ut){const l=s;e=r,t=i,n=a<0?nt(l):rt(l);continue e}else return}else return}}function xy(e,t,n){const r=wu(e,t,n);if(r==null)throw new Error;return V(r)}function j0(e){if(e!=null){const t=V(e);if(t instanceof ut){const n=t;if(nt(n)==null)return[at(n),mt(n),rt(n)];{const r=j0(nt(n));return[r[0],r[1],Wt(r[2],at(n),mt(n),rt(n))]}}else return[at(t),mt(t),void 0]}else throw new Error("internal error: Map.spliceOutSuccessor")}function hl(e,t,n,r){if(r!=null){const i=V(r);if(i instanceof ut){const o=i,s=e.Compare(t,at(o))|0;if(s<0)return _s(hl(e,t,n,nt(o)),at(o),mt(o),rt(o));if(s===0){const a=n(ct(mt(o)));if(a!=null)return Ar(t,V(a),nt(o),rt(o),Kn(o));if(nt(o)==null)return rt(o);if(rt(o)==null)return nt(o);{const l=j0(rt(o));return Wt(nt(o),l[0],l[1],l[2])}}else return _s(nt(o),at(o),mt(o),hl(e,t,n,rt(o)))}else{const o=e.Compare(t,at(i))|0;if(o<0){const s=n(void 0);return s!=null?Ar(t,V(s),void 0,r,2):r}else if(o===0){const s=n(ct(mt(i)));return s!=null?gi(t,V(s)):void 0}else{const s=n(void 0);return s!=null?Ar(t,V(s),r,void 0,2):r}}}else{const i=n(void 0);return i!=null?gi(t,V(i)):r}}function Cy(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=V(o),a=r.Compare(i,at(s))|0;if(s instanceof ut){const l=s;if(a<0){e=r,t=i,n=nt(l);continue e}else{if(a===0)return!0;e=r,t=i,n=rt(l);continue e}}else return a===0}else return!1}}function B0(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=V(r);if(i instanceof ut){const o=i;B0(n,nt(o)),n(at(o),mt(o)),e=n,t=rt(o);continue e}else n(at(i),mt(i))}break}}function Sy(e,t){B0(e,t)}function W0(e,t,n){let r=n;Sy((i,o)=>{$t(t,r,[i,o]),r=r+1|0},e)}function Ey(e){const t=H0(e)|0,n=xo(new Array(t),0,t,[null,null]);return W0(e,n,0),n}function Ay(e,t){return Vn((n,r)=>wi(e,r[0],r[1],n),void 0,t)}function ky(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){const s=o["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=wi(r,s[0],s[1],i),n=o;continue e}else return i}}function Ny(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const i=he(r,t);n=wi(e,i[0],i[1],n)}return n}function U0(e,t){if(mn(t))return Ny(e,t);if(t instanceof At)return Ay(e,t);{const n=Le(t);try{return ky(e,void 0,n)}finally{Ie(n)}}}class Ty extends _e{constructor(t,n){super(),this.stack=t,this.started=n}}function G0(e){e:for(;;){const t=e;if($e(t))return ot();{const n=Me(t),r=ae(t);if(r!=null){const i=V(r);if(i instanceof ut){const o=i;e=et([nt(o),gi(at(o),mt(o)),rt(o)],n);continue e}else return t}else{e=n;continue e}}}}function Lc(e){return new Ty(G0(le(e)),!1)}function $y(){throw new Error("enumeration not started")}function My(){throw new Error("enumeration already finished")}function Vc(e){if(e.started){const t=e.stack;if($e(t))return My();if(ae(t)!=null){const n=V(ae(t));if(n instanceof ut)throw new Error("Please report error: Map iterator, unexpected stack for current");return[at(n),mt(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return $y()}function Iy(e){if(e.started){const t=e.stack;if($e(t))return!1;if(ae(t)!=null){if(V(ae(t))instanceof ut)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=G0(Me(t)),!$e(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!$e(e.stack)}function Hc(e){let t=Lc(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Vc(t)},"System.Collections.IEnumerator.get_Current"(){return Vc(t)},"System.Collections.IEnumerator.MoveNext"(){return Iy(t)},"System.Collections.IEnumerator.Reset"(){t=Lc(e)},Dispose(){}}}class xs{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Py(this)|0}Equals(t){const n=this;if(t instanceof xs){const r=t,i=Le(n);try{const o=Le(r);try{const s=()=>{const a=i["System.Collections.IEnumerator.MoveNext"]();if(a===o["System.Collections.IEnumerator.MoveNext"]())if(a){const l=i["System.Collections.Generic.IEnumerator`1.get_Current"](),c=o["System.Collections.Generic.IEnumerator`1.get_Current"]();return J(l[0],c[0])&&J(l[1],c[1])?s():!1}else return!0;else return!1};return s()}finally{Ie(o)}}finally{Ie(i)}}else return!1}toString(){return"map ["+Et("; ",Pe(n=>Jl("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return Hc(this.tree)}[Symbol.iterator](){return xi(Le(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Hc(this.tree)}CompareTo(t){const n=this;if(t instanceof xs)return Ig((i,o)=>{const s=n.comparer.Compare(i[0],o[0])|0;return(s!==0?s:St(i[1],o[1]))|0},n,t)|0;throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return jc(n,t[0])&&J(Mr(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){W0(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Fa(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Fa(this)|0}get size(){return Fa(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return Pe(n=>[n[0],n[1]],this)}get(t){return Mr(this,t)}has(t){return jc(this,t)}keys(){return Pe(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return Pe(n=>n[1],this)}forEach(t,n){const r=this;Hn(i=>{t(i[1],i[0],r)},r)}}function ko(e,t){return new xs(e,t)}function Dy(e){return ko(e,void 0)}function Oy(e,t,n){return ko(e.comparer,wi(e.comparer,t,n,e.tree))}function Ry(e,t,n){return ko(e.comparer,hl(e.comparer,t,n,e.tree))}function Mr(e,t){return xy(e.comparer,t,e.tree)}function Fa(e){return H0(e.tree)}function jc(e,t){return Cy(e.comparer,t,e.tree)}function Fy(e,t,n){const r=wu(e.comparer,t,e.tree);if(r==null)return!1;{const i=V(r);return n.contents=i,!0}}function Bc(e){return Ke(t=>t[1],Ey(e.tree))}function Cr(e,t){return wu(e.comparer,t,e.tree)}function Py(e){const t=(i,o)=>(i<<1)+o+631;let n=0;const r=Le(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const i=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,en(i[0]))|0,n=t(n,en(i[1]))|0}}finally{Ie(r)}return n|0}function z0(e,t,n){return Oy(n,e,t)}function Wo(e,t,n){return Ry(n,e,t)}function q0(e,t){return Cr(t,e)}function Ly(e){return Pe(t=>[t[0],t[1]],e)}function ai(e,t){return ko(t,U0(t,e))}function Vy(e,t){return ko(t,U0(t,e))}function yu(e){return Dy(e)}const hr=new ea("",new Ao(0,[]),ot(),!1,void 0,void 0,void 0,new gu(0,[]));new P0(0,"","","",yu({Compare:Vr}),new Xr(0,[""]));function Wc(e,t){return Ql(t)?new Array(0):Uf(t,[e],void 0,0)}function Hy(e){switch(e.tag){case 1:return"POST";case 3:return"PATCH";case 2:return"PUT";case 4:return"DELETE";case 6:return"OPTIONS";case 5:return"HEAD";default:return"GET"}}function ta(e){return new ea(e,hr.method,hr.headers,hr.withCredentials,hr.overridenMimeType,hr.overridenResponseType,hr.timeout,hr.content)}function na(e,t){return new ea(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Y0(e,t){return new ea(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function Uc(e){return Dw(t=>{const n=new XMLHttpRequest;n.open(Hy(e.method),e.url),n.onreadystatechange=()=>{let l,c,f,d,p,h,m;n.readyState===4&&t[0]((l=(c=n.responseType,c===""||c==="text"?n.responseText:""),f=n.status|0,d=n.responseType,p=(h=n.responseType,h===""?new Xr(0,[n.responseText]):h==="text"?new Xr(0,[n.responseText]):h==="arraybuffer"?new Xr(2,[n.response]):h==="blob"?new Xr(1,[n.response]):new Xr(3,[n.response])),m=Vy(qt(v=>{const b=g(Wc(":",v));if(!$e(b))return[ae(b).toLocaleLowerCase(),Et(":",Me(b)).trim()]},Wc(`\r
12
- `,n.getAllResponseHeaders())),{Compare:Vr}),new P0(f,l,d,n.responseURL,m,p)))};const r=Le(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const l=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(l.fields[0],l.fields[1])}}finally{Ie(r)}n.withCredentials=e.withCredentials;const i=e.overridenMimeType;if(i!=null){const l=i;n.overrideMimeType(l)}const o=e.overridenResponseType;if(o!=null)switch(o.tag){case 1:{n.responseType="blob";break}case 2:{n.responseType="arraybuffer";break}default:n.responseType="text"}const s=e.timeout;if(s!=null){const l=s|0;n.timeout=l|0}const a=e.content;switch(a.tag){case 1:{n.send(ct(a.fields[0]));break}case 3:{n.send(ct(a.fields[0]));break}case 2:{n.send(ct(a.fields[0]));break}default:n.send()}})}class re extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class ir extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function Gc(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Z0(e,t){switch(e.tag){case 2:return Xl(Gc(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Gc(t)}}const jy=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,zc=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,By=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Wy(e){function t(r){return r.replace(zc,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(jy.test(n))return L1(n,"{","}","(",")");if(zc.test(n))return t(n);if(By.test(n))return t(n.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}function Uy(e,t){try{return t.contents=Wy(e),!0}catch{return!1}}function Gy(){let e="";for(let t=0;t++<36;)e+=t*51&52?(t^15?8^Math.random()*(t^20?16:4):4).toString(16):"-";return e}var pl;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(pl||(pl={}));function zy(e,t){const[,n,r,i]=e;return{sign:n||"",prefix:r||"",digits:i,radix:t}}function qc(e,t){switch(t){case 8:return e?[0,255]:[-128,127];case 16:return e?[0,65535]:[-32768,32767];case 32:return e?[0,4294967295]:[-2147483648,2147483647];default:throw new Error("Invalid bit size.")}}function qy(e){switch(e){case 2:return/[^0-1]/;case 8:return/[^0-7]/;case 10:return/[^0-9]/;case 16:return/[^0-9a-fA-F]/;default:throw new Error("Invalid Base.")}}function Yy(e,t){if(t&pl.AllowHexSpecifier)return 16;switch(e){case"0b":case"0B":return 2;case"0o":case"0O":return 8;case"0x":case"0X":return 16;default:return 10}}function Zy(e,t,n){const i=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(i!=null){const[,,o,s]=i;if(n=n||Yy(o,t),!qy(n).test(s))return zy(i,n)}return null}function Ky(e,t,n,r,i){const o=Zy(e,t,i);if(o!=null){let s=Number.parseInt(o.sign+o.digits,o.radix);if(!Number.isNaN(s)){const[a,l]=qc(!0,r);!n&&o.radix!==10&&s>=a&&s<=l&&(s=s<<32-r>>32-r);const[c,f]=qc(n,r);if(s>=c&&s<=f)return s}}throw new Error(`The input string ${e} was not in a correct format.`)}function Ni(e,t,n,r,i){try{return i.contents=Ky(e,t,n,r),!0}catch{return!1}}function K0(e,t){Xy(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function Xy(e){if(e!=null&&e!==0){if(e%6e4!==0)throw new Error("Offset must be specified in whole minutes.");if(Math.abs(e/36e5)>14)throw new Error("Offset must be within plus or minus 14 hours.")}}function Jy(){return K0(-621355968e5,0)}function Qy(e){const[t,n]=Lf(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return K0(t.getTime(),r)}function e2(e,t){try{return t.contents=Qy(e),!0}catch{return!1}}function No(e){return e<0?Math.ceil(e):Math.floor(e)}function Yc(e=0,t=0,n=0,r=0,i=0){switch(arguments.length){case 1:return t2(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],i=0;break}return e*864e5+t*36e5+n*6e4+r*1e3+i}function t2(e){return Number(BigInt(e)/10000n)}function n2(e){return No(e/864e5)}function r2(e){return No(e%864e5/36e5)}function i2(e){return No(e%36e5/6e4)}function o2(e){return No(e%6e4/1e3)}function s2(e){return No(e%1e3)}function a2(e,t="c",n){if(["c","g","G"].indexOf(t)===-1)throw new Error("Custom formats are not supported");const r=Math.abs(n2(e)),i=Math.abs(r2(e)),o=Math.abs(i2(e)),s=Math.abs(o2(e)),a=Math.abs(s2(e));return`${e<0?"-":""}${r===0&&(t==="c"||t==="g")?"":t==="c"?r+".":r+":"}${t==="g"?i:je(i,2)}:${je(o,2)}:${je(s,2)}${a===0&&(t==="c"||t==="g")?"":t==="g"?"."+je(a,3):"."+Jp(a,3,7)}`}function l2(e){const t=e.search("\\."),n=e.search("\\:");if(t===-1&&n===-1){const r=parseInt(e,0);if(isNaN(r))throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`);return Yc(r,0,0,0,0)}if(n>0){const r=/^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(e);if(r!=null&&r[4]!=null&&r[5]!=null){let i=0,o=0,s=0;const a=r[1]!=null&&r[1]==="-"?-1:1,l=+r[4],c=+r[5];if(r[3]!=null&&(i=+r[3]),r[7]!=null&&(s=+r[7]),r[8]!=null)switch(r[8].length){case 1:o=+r[8]*100;break;case 2:o=+r[8]*10;break;case 3:o=+r[8];break;case 4:o=+r[8]/10;break;case 5:o=+r[8]/100;break;case 6:o=+r[8]/1e3;break;case 7:o=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return a*Yc(i,l,c,s,o)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function u2(e,t){try{return t.contents=l2(e),!0}catch{return!1}}function Ui(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
1
+ var Eo,Ee,df,_r,Ju,ff,il,Rl,ol,sl,mf,ho={},hf=[],Ap=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Gs=Array.isArray;function In(e,t){for(var n in t)e[n]=t[n];return e}function pf(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function c(e,t,n){var r,i,o,s={};for(o in t)o=="key"?r=t[o]:o=="ref"?i=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?Eo.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)s[o]===void 0&&(s[o]=e.defaultProps[o]);return lo(e,s,r,i,null)}function lo(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i??++df,__i:-1,__u:0};return i==null&&Ee.vnode!=null&&Ee.vnode(o),o}function zs(){return{current:null}}function qe(e){return e.children}function hn(e,t){this.props=e,this.context=t}function gi(e,t){if(t==null)return e.__?gi(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?gi(e):null}function gf(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return gf(e)}}function al(e){(!e.__d&&(e.__d=!0)&&_r.push(e)&&!vs.__r++||Ju!==Ee.debounceRendering)&&((Ju=Ee.debounceRendering)||ff)(vs)}function vs(){var e,t,n,r,i,o,s,a;for(_r.sort(il);e=_r.shift();)e.__d&&(t=_r.length,r=void 0,o=(i=(n=e).__v).__e,s=[],a=[],n.__P&&((r=In({},i)).__v=i.__v+1,Ee.vnode&&Ee.vnode(r),Ol(n.__P,r,i,n.__n,n.__P.namespaceURI,32&i.__u?[o]:null,s,o??gi(i),!!(32&i.__u),a),r.__v=i.__v,r.__.__k[r.__i]=r,vf(s,r,a),r.__e!=o&&gf(r)),_r.length>t&&_r.sort(il));vs.__r=0}function wf(e,t,n,r,i,o,s,a,l,u,d){var f,p,m,h,b,v=r&&r.__k||hf,_=t.length;for(n.__d=l,kp(n,t,v),l=n.__d,f=0;f<_;f++)(m=n.__k[f])!=null&&(p=m.__i===-1?ho:v[m.__i]||ho,m.__i=f,Ol(e,m,p,i,o,s,a,l,u,d),h=m.__e,m.ref&&p.ref!=m.ref&&(p.ref&&Fl(p.ref,null,m),d.push(m.ref,m.__c||h,m)),b==null&&h!=null&&(b=h),65536&m.__u||p.__k===m.__k?l=yf(m,l,e):typeof m.type=="function"&&m.__d!==void 0?l=m.__d:h&&(l=h.nextSibling),m.__d=void 0,m.__u&=-196609);n.__d=l,n.__e=b}function kp(e,t,n){var r,i,o,s,a,l=t.length,u=n.length,d=u,f=0;for(e.__k=[],r=0;r<l;r++)(i=t[r])!=null&&typeof i!="boolean"&&typeof i!="function"?(s=r+f,(i=e.__k[r]=typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?lo(null,i,null,null,null):Gs(i)?lo(qe,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?lo(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=e,i.__b=e.__b+1,o=null,(a=i.__i=Np(i,n,s,d))!==-1&&(d--,(o=n[a])&&(o.__u|=131072)),o==null||o.__v===null?(a==-1&&f--,typeof i.type!="function"&&(i.__u|=65536)):a!==s&&(a==s-1?f--:a==s+1?f++:(a>s?f--:f++,i.__u|=65536))):i=e.__k[r]=null;if(d)for(r=0;r<u;r++)(o=n[r])!=null&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=gi(o)),bf(o,o))}function yf(e,t,n){var r,i;if(typeof e.type=="function"){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=yf(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=gi(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function Fn(e,t){return t=t||[],e==null||typeof e=="boolean"||(Gs(e)?e.some(function(n){Fn(n,t)}):t.push(e)),t}function Np(e,t,n,r){var i=e.key,o=e.type,s=n-1,a=n+1,l=t[n];if(l===null||l&&i==l.key&&o===l.type&&!(131072&l.__u))return n;if((typeof o!="function"||o===qe||i)&&r>(l!=null&&!(131072&l.__u)?1:0))for(;s>=0||a<t.length;){if(s>=0){if((l=t[s])&&!(131072&l.__u)&&i==l.key&&o===l.type)return s;s--}if(a<t.length){if((l=t[a])&&!(131072&l.__u)&&i==l.key&&o===l.type)return a;a++}}return-1}function Qu(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Ap.test(t)?n:n+"px"}function Ko(e,t,n,r,i){var o;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Qu(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Qu(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n.u=r.u:(n.u=Rl,e.addEventListener(t,o?sl:ol,o)):e.removeEventListener(t,o?sl:ol,o);else{if(i=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function ec(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Rl++;else if(t.t<n.u)return;return Ee.event&&(t=Ee.event(t)),"handleEvent"in n?n.handleEvent(t):n(t)}}}function Ol(e,t,n,r,i,o,s,a,l,u){var d,f,p,m,h,b,v,_,x,E,T,I,O,P,S,C,A=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),o=[a=t.__e=n.__e]),(d=Ee.__b)&&d(t);e:if(typeof A=="function")try{if(_=t.props,x="prototype"in A&&A.prototype.render,E=(d=A.contextType)&&r[d.__c],T=d?E?E.props.value:d.__:r,n.__c?v=(f=t.__c=n.__c).__=f.__E:(x?t.__c=f=new A(_,T):(t.__c=f=new hn(_,T),f.constructor=A,f.render=$p),E&&E.sub(f),f.props=_,f.state||(f.state={}),f.context=T,f.__n=r,p=f.__d=!0,f.__h=[],f._sb=[]),x&&f.__s==null&&(f.__s=f.state),x&&A.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=In({},f.__s)),In(f.__s,A.getDerivedStateFromProps(_,f.__s))),m=f.props,h=f.state,f.__v=t,p)x&&A.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),x&&f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(x&&A.getDerivedStateFromProps==null&&_!==m&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(_,T),!f.__e&&(f.shouldComponentUpdate!=null&&f.shouldComponentUpdate(_,f.__s,T)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(f.props=_,f.state=f.__s,f.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(N){N&&(N.__=t)}),I=0;I<f._sb.length;I++)f.__h.push(f._sb[I]);f._sb=[],f.__h.length&&s.push(f);break e}f.componentWillUpdate!=null&&f.componentWillUpdate(_,f.__s,T),x&&f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(m,h,b)})}if(f.context=T,f.props=_,f.__P=e,f.__e=!1,O=Ee.__r,P=0,x){for(f.state=f.__s,f.__d=!1,O&&O(t),d=f.render(f.props,f.state,f.context),S=0;S<f._sb.length;S++)f.__h.push(f._sb[S]);f._sb=[]}else do f.__d=!1,O&&O(t),d=f.render(f.props,f.state,f.context),f.state=f.__s;while(f.__d&&++P<25);f.state=f.__s,f.getChildContext!=null&&(r=In(In({},r),f.getChildContext())),x&&!p&&f.getSnapshotBeforeUpdate!=null&&(b=f.getSnapshotBeforeUpdate(m,h)),wf(e,Gs(C=d!=null&&d.type===qe&&d.key==null?d.props.children:d)?C:[C],t,n,r,i,o,s,a,l,u),f.base=t.__e,t.__u&=-161,f.__h.length&&s.push(f),v&&(f.__E=f.__=null)}catch(N){if(t.__v=null,l||o!=null){for(t.__u|=l?160:128;a&&a.nodeType===8&&a.nextSibling;)a=a.nextSibling;o[o.indexOf(a)]=null,t.__e=a}else t.__e=n.__e,t.__k=n.__k;Ee.__e(N,t,n)}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Tp(n.__e,t,n,r,i,o,s,l,u);(d=Ee.diffed)&&d(t)}function vf(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)Fl(n[r],n[++r],n[++r]);Ee.__c&&Ee.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){Ee.__e(o,i.__v)}})}function Tp(e,t,n,r,i,o,s,a,l){var u,d,f,p,m,h,b,v=n.props,_=t.props,x=t.type;if(x==="svg"?i="http://www.w3.org/2000/svg":x==="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(u=0;u<o.length;u++)if((m=o[u])&&"setAttribute"in m==!!x&&(x?m.localName===x:m.nodeType===3)){e=m,o[u]=null;break}}if(e==null){if(x===null)return document.createTextNode(_);e=document.createElementNS(i,x,_.is&&_),a&&(Ee.__m&&Ee.__m(t,o),a=!1),o=null}if(x===null)v===_||a&&e.data===_||(e.data=_);else{if(o=o&&Eo.call(e.childNodes),v=n.props||ho,!a&&o!=null)for(v={},u=0;u<e.attributes.length;u++)v[(m=e.attributes[u]).name]=m.value;for(u in v)if(m=v[u],u!="children"){if(u=="dangerouslySetInnerHTML")f=m;else if(!(u in _)){if(u=="value"&&"defaultValue"in _||u=="checked"&&"defaultChecked"in _)continue;Ko(e,u,null,m,i)}}for(u in _)m=_[u],u=="children"?p=m:u=="dangerouslySetInnerHTML"?d=m:u=="value"?h=m:u=="checked"?b=m:a&&typeof m!="function"||v[u]===m||Ko(e,u,m,v[u],i);if(d)a||f&&(d.__html===f.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(f&&(e.innerHTML=""),wf(e,Gs(p)?p:[p],t,n,r,x==="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,s,o?o[0]:n.__k&&gi(n,0),a,l),o!=null)for(u=o.length;u--;)pf(o[u]);a||(u="value",x==="progress"&&h==null?e.removeAttribute("value"):h!==void 0&&(h!==e[u]||x==="progress"&&!h||x==="option"&&h!==v[u])&&Ko(e,u,h,v[u],i),u="checked",b!==void 0&&b!==e[u]&&Ko(e,u,b,v[u],i))}return e}function Fl(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(i){Ee.__e(i,n)}}function bf(e,t,n){var r,i;if(Ee.unmount&&Ee.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Fl(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){Ee.__e(o,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&bf(r[i],t,n||typeof e.type!="function");n||pf(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function $p(e,t,n){return this.constructor(e,n)}function nr(e,t,n){var r,i,o,s;Ee.__&&Ee.__(e,t),i=(r=typeof n=="function")?null:n&&n.__k||t.__k,o=[],s=[],Ol(t,e=(!r&&n||t).__k=c(qe,null,[e]),i||ho,ho,t.namespaceURI,!r&&n?[n]:i?null:t.firstChild?Eo.call(t.childNodes):null,o,!r&&n?n:i?i.__e:t.firstChild,r,s),vf(o,e,s)}function Pl(e,t){nr(e,t,Pl)}function Ll(e,t,n){var r,i,o,s,a=In({},e.props);for(o in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)o=="key"?r=t[o]:o=="ref"?i=t[o]:a[o]=t[o]===void 0&&s!==void 0?s[o]:t[o];return arguments.length>2&&(a.children=arguments.length>3?Eo.call(arguments,2):n),lo(e.type,a,r||e.key,i||e.ref,null)}function lt(e,t){var n={__c:t="__cC"+mf++,__:e,Consumer:function(r,i){return r.children(i)},Provider:function(r){var i,o;return this.getChildContext||(i=new Set,(o={})[t]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){i=null},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&i.forEach(function(a){a.__e=!0,al(a)})},this.sub=function(s){i.add(s);var a=s.componentWillUnmount;s.componentWillUnmount=function(){i&&i.delete(s),a&&a.call(s)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}Eo=hf.slice,Ee={__e:function(e,t,n,r){for(var i,o,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),s=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),s=i.__d),s)return i.__E=i}catch(a){e=a}throw e}},df=0,hn.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=In({},this.state),typeof e=="function"&&(e=e(In({},n),this.props)),e&&In(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),al(this))},hn.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),al(this))},hn.prototype.render=qe,_r=[],ff=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,il=function(e,t){return e.__v.__b-t.__v.__b},vs.__r=0,Rl=0,ol=ec(!1),sl=ec(!0),mf=0;function Vl(){return(Vl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Mp=["context","children"];function Ip(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,i){if(r==null)return{};var o,s,a={},l=Object.keys(r);for(s=0;s<l.length;s++)i.indexOf(o=l[s])>=0||(a[o]=r[o]);return a}(e,Mp);return Ll(t,n)}function Dp(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=c(Ip,Vl({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var i=[],o={},s=0,a=n.attributes,l=n.childNodes;for(s=a.length;s--;)a[s].name!=="slot"&&(o[a[s].name]=a[s].value,o[_f(a[s].name)]=a[s].value);for(s=l.length;s--;){var u=t(l[s],null),d=l[s].slot;d?o[d]=c(tc,{name:d},u):i[s]=u}var f=r?c(tc,null,i):i;return c(r||n.nodeName.toLowerCase(),o,f)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Pl:nr)(this._vdom,this._root)}function _f(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function Rp(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[_f(e)]=n,this._vdom=Ll(this._vdom,r),nr(this._vdom,this._root)}}function Op(){nr(this._vdom=null,this._root)}function tc(e,t){var n=this;return c("slot",Vl({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(i){i.stopPropagation(),i.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function Fp(e,t,n,r){function i(){var o=Reflect.construct(HTMLElement,[],i);return o._vdomComponent=e,o._root=o,o}return(i.prototype=Object.create(HTMLElement.prototype)).constructor=i,i.prototype.connectedCallback=Dp,i.prototype.attributeChangedCallback=Rp,i.prototype.disconnectedCallback=Op,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),i.observedAttributes=n,n.forEach(function(o){Object.defineProperty(i.prototype,o,{get:function(){return this._vdom.props[o]},set:function(s){this._vdom?this.attributeChangedCallback(o,null,s):(this._props||(this._props={}),this._props[o]=s,this.connectedCallback());var a=typeof s;s!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(o,s)}})}),customElements.define(t||e.tagName||e.displayName||e.name,i)}function Hl(e,t){Fp(e,t)}var Vn,Ge,Ma,nc,wi=0,xf=[],it=Ee,rc=it.__b,ic=it.__r,oc=it.diffed,sc=it.__c,ac=it.unmount,lc=it.__;function Hr(e,t){it.__h&&it.__h(Ge,e,wi||t),wi=0;var n=Ge.__H||(Ge.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function be(e){return wi=1,jr(Cf,e)}function jr(e,t,n){var r=Hr(Vn++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Cf(void 0,t),function(a){var l=r.__N?r.__N[0]:r.__[0],u=r.t(l,a);l!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=Ge,!Ge.u)){var i=function(a,l,u){if(!r.__c.__H)return!0;var d=r.__c.__H.__.filter(function(p){return!!p.__c});if(d.every(function(p){return!p.__N}))return!o||o.call(this,a,l,u);var f=r.__c.props!==a;return d.forEach(function(p){if(p.__N){var m=p.__[0];p.__=p.__N,p.__N=void 0,m!==p.__[0]&&(f=!0)}}),o&&o.call(this,a,l,u)||f};Ge.u=!0;var o=Ge.shouldComponentUpdate,s=Ge.componentWillUpdate;Ge.componentWillUpdate=function(a,l,u){if(this.__e){var d=o;o=void 0,i(a,l,u),o=d}s&&s.call(this,a,l,u)},Ge.shouldComponentUpdate=i}return r.__N||r.__}function Fe(e,t){var n=Hr(Vn++,3);!it.__s&&Ul(n.__H,t)&&(n.__=e,n.i=t,Ge.__H.__h.push(n))}function Cn(e,t){var n=Hr(Vn++,4);!it.__s&&Ul(n.__H,t)&&(n.__=e,n.i=t,Ge.__h.push(n))}function ie(e){return wi=5,me(function(){return{current:e}},[])}function jl(e,t,n){wi=6,Cn(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function me(e,t){var n=Hr(Vn++,7);return Ul(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function De(e,t){return wi=8,me(function(){return e},t)}function Ve(e){var t=Ge.context[e.__c],n=Hr(Vn++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Ge)),t.props.value):e.__}function Bl(e,t){it.useDebugValue&&it.useDebugValue(t?t(e):e)}function Pp(e){var t=Hr(Vn++,10),n=be();return t.__=e,Ge.componentDidCatch||(Ge.componentDidCatch=function(r,i){t.__&&t.__(r,i),n[1](r)}),[n[0],function(){n[1](void 0)}]}function an(){var e=Hr(Vn++,11);if(!e.__){for(var t=Ge.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Lp(){for(var e;e=xf.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ds),e.__H.__h.forEach(ll),e.__H.__h=[]}catch(t){e.__H.__h=[],it.__e(t,e.__v)}}it.__b=function(e){Ge=null,rc&&rc(e)},it.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),lc&&lc(e,t)},it.__r=function(e){ic&&ic(e),Vn=0;var t=(Ge=e.__c).__H;t&&(Ma===Ge?(t.__h=[],Ge.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(ds),t.__h.forEach(ll),t.__h=[],Vn=0)),Ma=Ge},it.diffed=function(e){oc&&oc(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(xf.push(t)!==1&&nc===it.requestAnimationFrame||((nc=it.requestAnimationFrame)||Vp)(Lp)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),Ma=Ge=null},it.__c=function(e,t){t.some(function(n){try{n.__h.forEach(ds),n.__h=n.__h.filter(function(r){return!r.__||ll(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],it.__e(r,n.__v)}}),sc&&sc(e,t)},it.unmount=function(e){ac&&ac(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{ds(r)}catch(i){t=i}}),n.__H=void 0,t&&it.__e(t,n.__v))};var uc=typeof requestAnimationFrame=="function";function Vp(e){var t,n=function(){clearTimeout(r),uc&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);uc&&(t=requestAnimationFrame(n))}function ds(e){var t=Ge,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Ge=t}function ll(e){var t=Ge;e.__c=e.__(),Ge=t}function Ul(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Cf(e,t){return typeof t=="function"?t(e):t}function ul(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function qs(e,t){var n=t(),r=be({t:{__:n,u:t}}),i=r[0].t,o=r[1];return Cn(function(){i.__=n,i.u=t,Ia(i)&&o({t:i})},[e,n,t]),Fe(function(){return Ia(i)&&o({t:i}),e(function(){Ia(i)&&o({t:i})})},[e]),n}function Ia(e){var t,n,r=e.u,i=e.__;try{var o=r();return!((t=i)===(n=o)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}function Wl(e){e()}function Gl(e){return e}function zl(){return[!1,Wl]}var ql=Cn;function bs(e,t){this.props=e,this.context=t}function Sf(e,t){function n(i){var o=this.props.ref,s=o==i.ref;return!s&&o&&(o.call?o(null):o.current=null),t?!t(this.props,i)||!s:ul(this.props,i)}function r(i){return this.shouldComponentUpdate=n,c(e,i)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(bs.prototype=new hn).isPureReactComponent=!0,bs.prototype.shouldComponentUpdate=function(e,t){return ul(this.props,e)||ul(this.state,t)};var cc=Ee.__b;Ee.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),cc&&cc(e)};var Hp=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Yl(e){function t(n){if(!("ref"in n))return e(n,null);var r=n.ref;delete n.ref;var i=e(n,r);return n.ref=r,i}return t.$$typeof=Hp,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var dc=function(e,t){return e==null?null:Fn(Fn(e).map(t))},Ef={map:dc,forEach:dc,count:function(e){return e?Fn(e).length:0},only:function(e){var t=Fn(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Fn},jp=Ee.__e;Ee.__e=function(e,t,n,r){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}jp(e,t,n,r)};var fc=Ee.unmount;function Af(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=function(r,i){for(var o in i)r[o]=i[o];return r}({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Af(r,t,n)})),e}function kf(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return kf(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function uo(){this.__u=0,this.o=null,this.__b=null}function Nf(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Tf(e){var t,n,r;function i(o){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return c(n,o)}return i.displayName="Lazy",i.__f=!0,i}function ii(){this.i=null,this.l=null}Ee.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),fc&&fc(e)},(uo.prototype=new hn).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var i=Nf(r.__v),o=!1,s=function(){o||(o=!0,n.__R=null,i?i(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=kf(l,l.__c.__P,l.__c.__O)}var u;for(r.setState({__a:r.__b=null});u=r.o.pop();)u.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},uo.prototype.componentWillUnmount=function(){this.o=[]},uo.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]=Af(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&c(qe,null,e.fallback);return i&&(i.__u&=-33),[c(qe,null,t.__a?null:e.children),i]};var mc=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function Bp(e){return this.getChildContext=function(){return e.context},e.children}function Up(e){var t=this,n=e.h;t.componentWillUnmount=function(){nr(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),t.v||(t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(r){this.childNodes.push(r),t.h.appendChild(r)},insertBefore:function(r,i){this.childNodes.push(r),t.h.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.h.removeChild(r)}}),nr(c(Bp,{context:t.context},e.__v),t.v)}function Ys(e,t){var n=c(Up,{__v:e,h:t});return n.containerInfo=t,n}(ii.prototype=new hn).__a=function(e){var t=this,n=Nf(t.__v),r=t.l.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),mc(t,e,r)):i()};n?n(o):o()}},ii.prototype.render=function(e){this.i=null,this.l=new Map;var t=Fn(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},ii.prototype.componentDidUpdate=ii.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){mc(e,n,t)})};var $f=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Wp=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Gp=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,zp=/[A-Z0-9]/g,qp=typeof document<"u",Yp=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Zl(e,t,n){return t.__k==null&&(t.textContent=""),nr(e,t),typeof n=="function"&&n(),e?e.__c:null}function Mf(e,t,n){return Pl(e,t),typeof n=="function"&&n(),e?e.__c:null}hn.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(hn.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var hc=Ee.event;function Zp(){}function Kp(){return this.cancelBubble}function Xp(){return this.defaultPrevented}Ee.event=function(e){return hc&&(e=hc(e)),e.persist=Zp,e.isPropagationStopped=Kp,e.isDefaultPrevented=Xp,e.nativeEvent=e};var Kl,Jp={enumerable:!1,configurable:!0,get:function(){return this.class}},pc=Ee.vnode;Ee.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,i={},o=r.indexOf("-")===-1;for(var s in n){var a=n[s];if(!(s==="value"&&"defaultValue"in n&&a==null||qp&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var l=s.toLowerCase();s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&a===!0?a="":l==="translate"&&a==="no"?a=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?s="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||Yp(n.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":Gp.test(s)&&(s=l):l=s="oninput":o&&Wp.test(s)?s=s.replace(zp,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&i[s=l]&&(s="oninputCapture"),i[s]=a}}r=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=Fn(n.children).forEach(function(u){u.props.selected=i.value.indexOf(u.props.value)!=-1})),r=="select"&&i.defaultValue!=null&&(i.value=Fn(n.children).forEach(function(u){u.props.selected=i.multiple?i.defaultValue.indexOf(u.props.value)!=-1:i.defaultValue==u.props.value})),n.class&&!n.className?(i.class=n.class,Object.defineProperty(i,"className",Jp)):(n.className&&!n.class||n.class&&n.className)&&(i.class=i.className=n.className),t.props=i}(e),e.$$typeof=$f,pc&&pc(e)};var gc=Ee.__r;Ee.__r=function(e){gc&&gc(e),Kl=e.__c};var wc=Ee.diffed;Ee.diffed=function(e){wc&&wc(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),Kl=null};var If={ReactCurrentDispatcher:{current:{readContext:function(e){return Kl.__n[e.__c].props.value},useCallback:De,useContext:Ve,useDebugValue:Bl,useDeferredValue:Gl,useEffect:Fe,useId:an,useImperativeHandle:jl,useInsertionEffect:ql,useLayoutEffect:Cn,useMemo:me,useReducer:jr,useRef:ie,useState:be,useSyncExternalStore:qs,useTransition:zl}}},Qp="18.3.1";function Df(e){return c.bind(null,e)}function Ei(e){return!!e&&e.$$typeof===$f}function Rf(e){return Ei(e)&&e.type===qe}function Of(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Xl(e){return Ei(e)?Ll.apply(null,arguments):e}function Ff(e){return!!e.__k&&(nr(null,e),!0)}function Pf(e){return e&&(e.base||e.nodeType===1&&e)||null}var Lf=function(e,t){return e(t)},Jt=function(e,t){return e(t)},Vf=qe,Hf=Ei,Q={useState:be,useId:an,useReducer:jr,useEffect:Fe,useLayoutEffect:Cn,useInsertionEffect:ql,useTransition:zl,useDeferredValue:Gl,useSyncExternalStore:qs,startTransition:Wl,useRef:ie,useImperativeHandle:jl,useMemo:me,useCallback:De,useContext:Ve,useDebugValue:Bl,version:"18.3.1",Children:Ef,render:Zl,hydrate:Mf,unmountComponentAtNode:Ff,createPortal:Ys,createElement:c,createContext:lt,createFactory:Df,cloneElement:Xl,createRef:zs,Fragment:qe,isValidElement:Ei,isElement:Hf,isFragment:Rf,isMemo:Of,findDOMNode:Pf,Component:hn,PureComponent:bs,memo:Sf,forwardRef:Yl,flushSync:Jt,unstable_batchedUpdates:Lf,StrictMode:Vf,Suspense:uo,SuspenseList:ii,lazy:Tf,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:If};const _s=Object.freeze(Object.defineProperty({__proto__:null,Children:Ef,Component:hn,Fragment:qe,PureComponent:bs,StrictMode:Vf,Suspense:uo,SuspenseList:ii,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:If,cloneElement:Xl,createContext:lt,createElement:c,createFactory:Df,createPortal:Ys,createRef:zs,default:Q,findDOMNode:Pf,flushSync:Jt,forwardRef:Yl,hydrate:Mf,isElement:Hf,isFragment:Rf,isMemo:Of,isValidElement:Ei,lazy:Tf,memo:Sf,render:Zl,startTransition:Wl,unmountComponentAtNode:Ff,unstable_batchedUpdates:Lf,useCallback:De,useContext:Ve,useDebugValue:Bl,useDeferredValue:Gl,useEffect:Fe,useErrorBoundary:Pp,useId:an,useImperativeHandle:jl,useInsertionEffect:ql,useLayoutEffect:Cn,useMemo:me,useReducer:jr,useRef:ie,useState:be,useSyncExternalStore:qs,useTransition:zl,version:Qp},Symbol.toStringTag,{value:"Module"})),e1=`*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}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,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;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{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-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,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,input:where(:not([type])):focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--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);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb}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;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");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],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--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)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=checkbox]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}@media (forced-colors: active){[type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}@font-face{font-family:BRSonoma;font-weight:900;src:url(/assets/BRSonoma-Black-Dd-41VER.otf) format("opentype")}@font-face{font-family:BRSonoma;font-weight:700;src:url(/assets/BRSonoma-Bold-ntHe2u-j.otf) format("opentype")}@font-face{font-family:BRSonoma;font-weight:500;src:url(/assets/BRSonoma-Medium-j1GGAHzV.otf) format("opentype")}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-y-0{top:0;bottom:0}.bottom-0{bottom:0}.left-0{left:0}.left-full{left:100%}.right-0{right:0}.top-0{top:0}.z-10{z-index:10}.col-span-1{grid-column:span 1 / span 1}.col-span-2{grid-column:span 2 / span 2}.col-span-4{grid-column:span 4 / span 4}.col-start-1{grid-column-start:1}.row-start-1{grid-row-start:1}.-my-3{margin-top:-.75rem;margin-bottom:-.75rem}.mx-12{margin-left:3rem;margin-right:3rem}.mx-auto{margin-left:auto;margin-right:auto}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.-mt-\\[226px\\]{margin-top:-226px}.mb-12{margin-bottom:3rem}.mb-6{margin-bottom:1.5rem}.ml-1{margin-left:.25rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.mt-0\\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.inline-table{display:inline-table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-column{display:table-column}.table-column-group{display:table-column-group}.table-footer-group{display:table-footer-group}.table-header-group{display:table-header-group}.table-row-group{display:table-row-group}.table-row{display:table-row}.flow-root{display:flow-root}.grid{display:grid}.inline-grid{display:inline-grid}.contents{display:contents}.list-item{display:list-item}.hidden{display:none}.size-12{width:3rem;height:3rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.h-1\\.5{height:.375rem}.h-10{height:2.5rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-9{height:2.25rem}.h-\\[118px\\]{height:118px}.h-\\[120px\\]{height:120px}.h-\\[34px\\]{height:34px}.h-\\[38px\\]{height:38px}.h-\\[52px\\]{height:52px}.h-\\[58px\\]{height:58px}.h-\\[60px\\]{height:60px}.h-\\[63px\\]{height:63px}.h-\\[72px\\]{height:72px}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-48{max-height:12rem}.max-h-\\[470px\\]{max-height:470px}.min-h-full{min-height:100%}.w-0{width:0px}.w-16{width:4rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-60{width:15rem}.w-80{width:20rem}.w-96{width:24rem}.w-\\[1030px\\]{width:1030px}.w-\\[120px\\]{width:120px}.w-\\[128px\\]{width:128px}.w-\\[140px\\]{width:140px}.w-\\[148px\\]{width:148px}.w-\\[206px\\]{width:206px}.w-\\[218px\\]{width:218px}.w-\\[230px\\]{width:230px}.w-\\[260px\\]{width:260px}.w-\\[480px\\]{width:480px}.w-\\[640px\\]{width:640px}.w-full{width:100%}.w-screen{width:100vw}.min-w-60{min-width:15rem}.max-w-\\[640px\\]{max-width:640px}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.basis-0{flex-basis:0px}.-translate-y-1\\/4{--tw-translate-y: -25%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-2{--tw-translate-y: .5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.list-inside{list-style-position:inside}.list-outside{list-style-position:outside}.list-disc{list-style-type:disc}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\\.5{gap:.375rem}.gap-12{gap:3rem}.gap-2{gap:.5rem}.gap-2\\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity, 1))}.divide-gray-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(209 213 219 / var(--tw-divide-opacity, 1))}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.self-center{align-self:center}.self-stretch{align-self:stretch}.justify-self-end{justify-self:end}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.text-wrap{text-wrap:wrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\\[10px\\]{border-radius:10px}.rounded-\\[5px\\]{border-radius:5px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-blue-300{--tw-border-opacity: 1;border-color:rgb(147 197 253 / var(--tw-border-opacity, 1))}.border-emerald-200{--tw-border-opacity: 1;border-color:rgb(167 243 208 / var(--tw-border-opacity, 1))}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-primary-600{border-color:var(--fl-color-primary-600)}.border-r-gray-200{--tw-border-opacity: 1;border-right-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.bg-amber-100{--tw-bg-opacity: 1;background-color:rgb(254 243 199 / var(--tw-bg-opacity, 1))}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.bg-emerald-100{--tw-bg-opacity: 1;background-color:rgb(209 250 229 / var(--tw-bg-opacity, 1))}.bg-emerald-50{--tw-bg-opacity: 1;background-color:rgb(236 253 245 / var(--tw-bg-opacity, 1))}.bg-emerald-600{--tw-bg-opacity: 1;background-color:rgb(5 150 105 / var(--tw-bg-opacity, 1))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-gray-500\\/50{background-color:#6b728080}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.bg-primary-600{background-color:var(--fl-color-primary-600)}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-\\[\\#a650ff\\]{--tw-gradient-from: #a650ff var(--tw-gradient-from-position);--tw-gradient-to: rgb(166 80 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-\\[\\#0095f2\\]{--tw-gradient-to: #0095f2 var(--tw-gradient-to-position)}.p-2{padding:.5rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-0\\.5{padding-left:.125rem;padding-right:.125rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-12{padding-left:3rem;padding-right:3rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-\\[13px\\]{padding-left:13px;padding-right:13px}.px-\\[17px\\]{padding-left:17px;padding-right:17px}.px-\\[3px\\]{padding-left:3px;padding-right:3px}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-\\[0\\.5625rem\\]{padding-top:.5625rem;padding-bottom:.5625rem}.py-\\[5px\\]{padding-top:5px;padding-bottom:5px}.py-\\[9px\\]{padding-top:9px;padding-bottom:9px}.pb-10{padding-bottom:2.5rem}.pb-12{padding-bottom:3rem}.pb-2{padding-bottom:.5rem}.pb-24{padding-bottom:6rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pb-\\[3px\\]{padding-bottom:3px}.pl-1{padding-left:.25rem}.pl-2{padding-left:.5rem}.pl-2\\.5{padding-left:.625rem}.pl-3{padding-left:.75rem}.pl-6{padding-left:1.5rem}.pl-\\[13px\\]{padding-left:13px}.pr-1\\.5{padding-right:.375rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pr-6{padding-right:1.5rem}.pr-\\[11px\\]{padding-right:11px}.pt-0\\.5{padding-top:.125rem}.pt-1{padding-top:.25rem}.pt-1\\.5{padding-top:.375rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.pt-6{padding-top:1.5rem}.pt-8{padding-top:2rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-sonoma{font-family:BRSonoma}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-sm\\/6{font-size:.875rem;line-height:1.5rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.leading-4{line-height:1rem}.leading-5{line-height:1.25rem}.leading-7{line-height:1.75rem}.leading-none{line-height:1}.leading-normal{line-height:1.5}.leading-tight{line-height:1.25}.text-amber-700{--tw-text-opacity: 1;color:rgb(180 83 9 / var(--tw-text-opacity, 1))}.text-amber-800{--tw-text-opacity: 1;color:rgb(146 64 14 / var(--tw-text-opacity, 1))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity, 1))}.text-emerald-700{--tw-text-opacity: 1;color:rgb(4 120 87 / var(--tw-text-opacity, 1))}.text-emerald-800{--tw-text-opacity: 1;color:rgb(6 95 70 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-primary-600{color:var(--fl-color-primary-600)}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-red-700{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity, 1))}.text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}.text-red-900{--tw-text-opacity: 1;color:rgb(127 29 29 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.overline{text-decoration-line:overline}.line-through{text-decoration-line:line-through}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);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 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(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)}.shadow-gray-300{--tw-shadow-color: #d1d5db;--tw-shadow: var(--tw-shadow-colored)}.outline{outline-style:solid}.outline-1{outline-width:1px}.-outline-offset-1{outline-offset:-1px}.outline-gray-300{outline-color:#d1d5db}.outline-red-300{outline-color:#fca5a5}.ring-1{--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);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-inset{--tw-ring-inset: inset}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity, 1))}.ring-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity, 1))}.ring-opacity-5{--tw-ring-opacity: .05}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.sepia{--tw-sepia: sepia(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes progressBar{0%{width:0}to{width:100%}}.placeholder\\:text-gray-500::-moz-placeholder{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.placeholder\\:text-gray-500::placeholder{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:inset-1:before{content:var(--tw-content);top:.25rem;right:.25rem;bottom:.25rem;left:.25rem}.before\\:rounded-full:before{content:var(--tw-content);border-radius:9999px}.before\\:bg-white:before{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.checked\\:border-primary-600:checked{border-color:var(--fl-color-primary-600)}.checked\\:bg-primary-600:checked{background-color:var(--fl-color-primary-600)}.hover\\:bg-emerald-700:hover{--tw-bg-opacity: 1;background-color:rgb(4 120 87 / var(--tw-bg-opacity, 1))}.hover\\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.hover\\:bg-red-500:hover{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.hover\\:text-gray-500:hover{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.hover\\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.focus\\:border-blue-600:focus{--tw-border-opacity: 1;border-color:rgb(37 99 235 / var(--tw-border-opacity, 1))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:outline:focus{outline-style:solid}.focus\\:outline-2:focus{outline-width:2px}.focus\\:-outline-offset-2:focus{outline-offset:-2px}.focus\\:outline-blue-600:focus{outline-color:#2563eb}.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-primary-500:focus{--tw-ring-color: var(--fl-color-primary-500)}.focus\\:ring-primary-600:focus{--tw-ring-color: var(--fl-color-primary-600)}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\\:outline:focus-visible{outline-style:solid}.focus-visible\\:outline-2:focus-visible{outline-width:2px}.focus-visible\\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\\:outline-primary-600:focus-visible{outline-color:var(--fl-color-primary-600)}.hover\\:enabled\\:bg-emerald-700:enabled:hover{--tw-bg-opacity: 1;background-color:rgb(4 120 87 / var(--tw-bg-opacity, 1))}.hover\\:enabled\\:bg-gray-50:enabled:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.hover\\:enabled\\:bg-primary-700:enabled:hover{background-color:var(--fl-color-primary-700)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:border-gray-300:disabled{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.disabled\\:bg-gray-100:disabled{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:before\\:bg-gray-400:disabled:before{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}@media (min-width: 640px){.sm\\:mx-0{margin-left:0;margin-right:0}.sm\\:my-8{margin-top:2rem;margin-bottom:2rem}.sm\\:ml-3{margin-left:.75rem}.sm\\:ml-4{margin-left:1rem}.sm\\:mt-0{margin-top:0}.sm\\:mt-4{margin-top:1rem}.sm\\:block{display:block}.sm\\:flex{display:flex}.sm\\:size-10{width:2.5rem;height:2.5rem}.sm\\:size-4{width:1rem;height:1rem}.sm\\:w-auto{width:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}.sm\\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:translate-x-2{--tw-translate-x: .5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\\:flex-row-reverse{flex-direction:row-reverse}.sm\\:items-start{align-items:flex-start}.sm\\:items-end{align-items:flex-end}.sm\\:items-center{align-items:center}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}.sm\\:text-left{text-align:left}}@media (forced-colors: active){.forced-colors\\:appearance-auto{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}.forced-colors\\:before\\:hidden:before{content:var(--tw-content);display:none}}.\\[\\&\\:not\\(\\:checked\\)\\]\\:before\\:hidden:not(:checked):before{content:var(--tw-content);display:none}`;function rn(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function t1(e){return e!=null&&typeof e.GetEnumerator=="function"}function n1(e){return e!=null&&typeof e.CompareTo=="function"}function r1(e){return e!=null&&typeof e.Equals=="function"}function jf(e){return e!=null&&typeof e.GetHashCode=="function"}function cl(e){return e!=null&&typeof e.Dispose=="function"}function $e(e){cl(e)&&e.Dispose()}function Se(){return null}function xs(e,t){var n,r;return((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===((r=Object.getPrototypeOf(t))==null?void 0:r.constructor)}class i1{constructor(t){this.iter=t,this.current=Se()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this.iter.next();return this.current=t.value,!t.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function Oe(e){return t1(e)?e.GetEnumerator():new i1(e[Symbol.iterator]())}function Ai(e){return{next(){const t=e["System.Collections.IEnumerator.MoveNext"](),n=t?e["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0;return{done:!t,value:n}}}}class o1{constructor(t){this.factory=t,this.isValueCreated=!1}get Value(){return this.isValueCreated||(this.createdValue=this.factory(),this.isValueCreated=!0),this.createdValue}get IsValueCreated(){return this.isValueCreated}}function je(e,t){return e.toString(10).padStart(t,"0")}function s1(e,t,n){return e.toString(10).padStart(t,"0").padEnd(n,"0")}function yc(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function a1(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function pn(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class Dn{static id(t){return Dn.idMap.has(t)||Dn.idMap.set(t,++Dn.count),Dn.idMap.get(t)}}Dn.idMap=new WeakMap;Dn.count=0;function fr(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function fn(e){return e*2654435761|0}function Bf(e){return fr(e.toString(32))}function Ao(e){let t=0;const n=e.length;for(let r=0;r<n;r++){const i=e[r];t=(t<<5)+t^i}return t}function l1(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return fn(e);case"bigint":return Bf(e);case"string":return fr(e);default:return fn(Dn.id(e))}}function u1(e){return jf(e)?e.GetHashCode():l1(e)}function c1(e){return e.getTime()}function d1(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=on(e[r]);return Ao(n)}function on(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return fn(e);case"bigint":return Bf(e);case"string":return fr(e);default:{if(jf(e))return e.GetHashCode();if(rn(e))return d1(e);if(e instanceof Date)return c1(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>on(r));return Ao(n)}else return fn(Dn.id(e))}}}function Cs(e){return u1(e)}function dl(e,t,n){if(e==null)return t==null;if(t==null||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function Uf(e,t){return dl(e,t,te)}function f1(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let i=0;i<n.length;i++)if(n[i]!==r[i]||!te(e[n[i]],t[r[i]]))return!1;return!0}function te(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:r1(e)?e.Equals(t):rn(e)?rn(t)&&Uf(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&Wf(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&f1(e,t)}function Wf(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+yc(e),r=t.getTime()+yc(t)),n===r?0:n<r?-1:1}function Br(e,t){return e===t?0:e<t?-1:1}function m1(e,t,n){if(e==null)return t==null?0:1;if(t==null)return-1;if(e.length!==t.length)return e.length<t.length?-1:1;for(let r=0,i=0;r<e.length;r++)if(i=n(e[r],t[r]),i!==0)return i;return 0}function Jl(e,t){return m1(e,t,Et)}function h1(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return n.length<r.length?-1:1;n.sort(),r.sort();for(let i=0,o=0;i<n.length;i++){const s=n[i];if(s!==r[i])return s<r[i]?-1:1;if(o=Et(e[s],t[s]),o!==0)return o}return 0}function Et(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:n1(e)?e.CompareTo(t):rn(e)?rn(t)?Jl(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?Wf(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?h1(e,t):-1}function w(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function p1(e){rn(e)?e.splice(0):e.clear()}const Zs=new WeakMap;function Ze(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return Zs.set(t,e),t}function Xn(e){return Zs.get(e)??(t=>n=>e(t,n))}function fl(e){if(e==null)return null;const t=(n,r,i)=>e(n)(r)(i);return Zs.set(t,e),t}function Da(e){return Zs.get(e)??(t=>n=>r=>e(t,n,r))}function g1(e){let t=0,n="[";for(const r of e){if(t===0)n+=nt(r);else if(t===100){n+="; ...";break}else n+="; "+nt(r);t++}return n+"]"}function nt(e,t=0){var n;if(e!=null&&typeof e=="object"){if(typeof e.toString=="function")return e.toString();if(Symbol.iterator in e)return g1(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([i,o])=>i+" = "+nt(o,t+1)).join(`
2
+ `)+" }":(r==null?void 0:r.name)??""}}return String(e)}function w1(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=nt(t[0]),r=n.indexOf(" ")>=0):n=t.map(i=>nt(i)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class W{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return w1(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>on(n));return t.splice(0,0,fn(this.tag)),Ao(t)}Equals(t){return this===t?!0:xs(this,t)&&this.tag===t.tag?Uf(this.fields,t.fields):!1}CompareTo(t){return this===t?0:xs(this,t)?this.tag===t.tag?Jl(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function y1(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function v1(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+nt(n)).join(`
3
+ `)+" }"}function b1(e){const t=Object.values(e).map(n=>on(n));return Ao(t)}function _1(e,t){if(e===t)return!0;if(xs(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!te(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function x1(e,t){if(e===t)return 0;if(xs(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const i=Et(e[n[r]],t[n[r]]);if(i!==0)return i}return 0}else return-1}class _e{toJSON(){return y1(this)}toString(){return v1(this)}GetHashCode(){return b1(this)}Equals(t){return _1(this,t)}CompareTo(t){return x1(this,t)}}class Ct{get contents(){return this.getter()}set contents(t){this.setter(t)}constructor(t,n){typeof n=="function"?(this.getter=t,this.setter=n):(this.getter=()=>t,this.setter=r=>{t=r})}}class C1{constructor(t){this.message=t}}function S1(e){return e instanceof C1||e instanceof Error}function E1(e){return e instanceof Promise}function Ss(e){return S1(e)||E1(e)?e:new Error(String(e))}const Ql=nt(e1),ki=Symbol("numeric");function Gf(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[ki])}function A1(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function ml(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[ki]().multiply(t)}function fs(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[ki]().toFixed(t)}function Es(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[ki]().toPrecision(t)}function As(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[ki]().toExponential(t)}function ks(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[ki]().toHex()}const k1=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],N1=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],T1=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],$1=["January","February","March","April","May","June","July","August","September","October","November","December"];function Gt(e,t,n){let r=0,i=t;for(;i<e.length&&e[i]===n;)i++,r++;return r}function vc(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function M1(e,t){let n=t;const r=e[t];let i="",o=!1;for(;t<e.length;){t++;const s=e[t];if(s===r){o=!0;break}else if(s==="\\")if(t<e.length)t++,i+=e[t];else throw new Error("Invalid string format");else i+=s}if(!o)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[i,t-n+1]}function eu(e,t,n){let r=0,i=0,o="";const s=n?ko(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(i=Gt(t,r,"d"),r+=i,i){case 1:o+=_c(s);break;case 2:o+=je(_c(s),2);break;case 3:o+=k1[Sc(s)];break;case 4:o+=N1[Sc(s)];break}break;case"f":if(i=Gt(t,r,"f"),r+=i,i<=3){const v=10**(3-i);o+=je(Math.floor(Jo(s)/v),i)}else i<=7&&(o+=(""+Jo(s)).padEnd(i,"0"));break;case"F":if(i=Gt(t,r,"F"),r+=i,i<=3){const v=10**(3-i),_=Math.floor(Jo(s)/v);_!=0&&(o+=je(_,i))}else if(i<=7){const v=Jo(s);v!=0&&(o+=je(v,3))}break;case"g":i=Gt(t,r,"g"),r+=i,i<=2&&(o+="A.D.");break;case"h":switch(i=Gt(t,r,"h"),r+=i,i){case 1:o+=Xo(s)%12;break;case 2:o+=je(Xo(s)%12,2);break}break;case"H":switch(i=Gt(t,r,"H"),r+=i,i){case 1:o+=Xo(s);break;case 2:o+=je(Xo(s),2);break}break;case"K":switch(i=Gt(t,r,"K"),r+=i,i){case 1:switch(bc(s)){case 1:o+="Z";break;case 2:o+=si(s.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(i=Gt(t,r,"m"),r+=i,i){case 1:o+=xc(s);break;case 2:o+=je(xc(s),2);break}break;case"M":switch(i=Gt(t,r,"M"),r+=i,i){case 1:o+=Qo(s);break;case 2:o+=je(Qo(s),2);break;case 3:o+=T1[Qo(s)-1];break;case 4:o+=$1[Qo(s)-1];break}break;case"s":switch(i=Gt(t,r,"s"),r+=i,i){case 1:o+=Cc(s);break;case 2:o+=je(Cc(s),2);break}break;case"t":switch(i=Gt(t,r,"t"),r+=i,i){case 1:o+=s.getHours()<12?"A":"P";break;case 2:o+=s.getHours()<12?"AM":"PM";break}break;case"y":switch(i=Gt(t,r,"y"),r+=i,i){case 1:o+=s.getFullYear()%100;break;case 2:o+=je(s.getFullYear()%100,2);break;case 3:o+=je(s.getFullYear(),3);break;case 4:o+=je(s.getFullYear(),4);break;case 5:o+=je(s.getFullYear(),5);break}break;case"z":i=Gt(t,r,"z"),r+=i;let l="";switch(bc(s)){case 1:l="+00:00";break;case 2:l=si(s.getTimezoneOffset()*-6e4);break;case 0:l=si(H1(s).getTimezoneOffset()*-6e4);break}const u=l[0]==="-"?"-":"+",d=parseInt(l.substring(1,3),10),f=parseInt(l.substring(4,6),10);switch(i){case 1:o+=`${u}${d}`;break;case 2:o+=`${u}${je(d,2)}`;break;default:o+=`${u}${je(d,2)}:${je(f,2)}`;break}break;case":":o+=":",r++;break;case"/":o+="/",r++;break;case"'":case'"':const[p,m]=M1(t,r);o+=p,r+=m;break;case"%":const h=vc(t,r);if(h>=0&&h!==37)r+=2,o+=eu(s,String.fromCharCode(h),n);else throw new Error("Invalid format string");break;case"\\":const b=vc(t,r);if(b>=0)r+=2,o+=String.fromCharCode(b);else throw new Error("Invalid format string");break;default:r++,o+=a;break}}return o}function bc(e){return e.kind||0}function si(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+je(n,2)+":"+je(r,2)}function Ns(e,t){const n=e.toISOString();return t==="first"?n.substring(0,n.indexOf("T")):n.substring(n.indexOf("T")+1,n.length-1)}function I1(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return je(e.getFullYear(),4)+"-"+je(e.getMonth()+1,2)+"-"+je(e.getDate(),2)+"T"+je(e.getHours(),2)+":"+je(e.getMinutes(),2)+":"+je(e.getSeconds(),2)+"."+je(e.getMilliseconds(),3)+(n?si(e.getTimezoneOffset()*-6e4):"")}}function D1(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+si(t)}function R1(e,t){const n=new Date(e.getTime()+(e.offset??0));if(typeof t!="string")return n.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+si(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return Ns(n,"first");case"T":case"t":return Ns(n,"second");case"O":case"o":return D1(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return eu(n,t,!0)}function O1(e,t){const n=e.kind===1;if(typeof t!="string")return n?e.toUTCString():e.toLocaleString();if(t.length===1)switch(t){case"D":case"d":return n?Ns(e,"first"):e.toLocaleDateString();case"T":case"t":return n?Ns(e,"second"):e.toLocaleTimeString();case"O":case"o":return I1(e,n);default:throw new Error("Unrecognized Date print format")}else return eu(e,t,n)}function Ks(e,t,n){return e.offset!=null?R1(e,t):O1(e,t)}function ko(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function F1(){return ko(-621355968e5,1)}function zf(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}(e==null||e.trim()==="")&&t(),e.length===10&&e[4]==="-"&&e[7]==="-"&&(e+="T00:00:00");let n=new Date(e),r=null;if(isNaN(n.getTime())){const i=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(i!=null){let o,s=0;if(i[2]!=null){const a=i[2].split(":"),l=parseInt(a[0],10);s=l*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),i[3]!=null&&i[3].toUpperCase()==="PM"&&l<12&&(s+=720)}if(i[4]!=null){if(i[1]!=null)o=new Date(i[1]+" UTC");else{const a=new Date;o=new Date(a.getUTCFullYear()+"/"+(a.getUTCMonth()+1)+"/"+a.getUTCDate())}if(i[4]==="Z")r="Z";else{let a=parseInt(i[5],10)*60+parseInt(i[6]||"0",10);i[4][0]==="-"&&(a*=-1),r=a,s-=a*60}}else if(i[1]!=null)o=new Date(i[1]);else{const a=new Date;o=new Date(a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.getDate())}n=new Date(o.getTime()+s*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-o.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function P1(e,t=!1){const[n,r]=zf(e),i=r!=null?t&&r==="Z"?1:2:0;return ko(n.getTime(),i)}function L1(e,t){try{return t.contents=P1(e),!0}catch{return!1}}function V1(e){return e.kind===1?e:ko(e.getTime(),1)}function H1(e){return e.kind===2?e:ko(e.getTime(),2)}function _c(e){return e.kind===1?e.getUTCDate():e.getDate()}function Xo(e){return e.kind===1?e.getUTCHours():e.getHours()}function Jo(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function xc(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function Qo(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function Cc(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function Sc(e){return e.kind===1?e.getUTCDay():e.getDay()}function j1(e,t=0){if(t&-284)throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let n="gu";return n+=t&1?"i":"",n+=t&2?"m":"",n+=t&16?"s":"",new RegExp(e,n)}function Xs(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Ec(e,t,n=0){if(t==null)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=n;const r=[];let i,o=-1;for(;(i=e.exec(t))!=null;)i.index===o?e.lastIndex++:(o=i.index,r.push(i));return r}function tu(e,t,n,r,i=0){function o(){let s=arguments[0];if(r){r--;const a=[],l=arguments.length,u=typeof arguments[l-1]!="string";let d=u?l-3:l-2;for(let f=0;f<d;f++)a.push(arguments[f]);a.index=arguments[d++],a.input=arguments[d++],u&&(a.groups=arguments[d]),s=n(a)}return s}if(typeof e=="string"){const s=e;e=j1(t,r??0),t=s,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,i)+t.substring(i).replace(e,o);if(n=n.replace(/\$0/g,s=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let s;const a=t.substring(i),l=Ec(e,a),u=Ec.length>r?(s=l[r-1],a.substring(0,s.index+s[0].length)):a;return t.substring(0,i)+u.replace(e,n)+t.substring(i+u.length)}else return t.replace(e,n)}const Zi=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,B1=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function qf(e,t){return A1(e,t)<0}function Hn(e){return{input:e,cont:W1(e)}}function Yf(e,t){return typeof t=="string"?e(t):t.cont(e)}function Mr(e){return Yf(t=>t,e)}function Zf(e){return Yf(t=>{throw new Error(t)},e)}function U1(e,t,n,r,i){let o="";if(t=t||"",i=i||"",Gf(e))switch(i.toLowerCase()!=="x"&&(qf(e,0)?(e=ml(e,-1),o="-"):t.indexOf(" ")>=0?o=" ":t.indexOf("+")>=0&&(o="+")),r=r==null?null:parseInt(r,10),i){case"f":case"F":r=r??6,e=fs(e,r);break;case"g":case"G":e=r!=null?Es(e,r):Es(e);break;case"e":case"E":e=r!=null?As(e,r):As(e);break;case"x":e=ks(e);break;case"X":e=ks(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=Ks(e):e=nt(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=o+e;else{const s=t.indexOf("0")>=0,a=t.indexOf("-")>=0,l=a||!s?" ":"0";l==="0"?(e=po(e,n-o.length,l,a),e=o+e):e=po(o+e,n,l,a)}return e}function Kf(e,t,n,r="",i=-1){return(...o)=>{let s=r;const a=t.slice(),l=n.slice();for(const u of o){const[,,d,f,p,m]=l[0];let h=f;if(i>=0)h=i,i=-1;else if(h==="*"){if(u<0)throw new Error("Non-negative number required");i=u;continue}s+=a[0],s+=U1(u,d,h,p,m),a.splice(0,1),l.splice(0,1)}return l.length===0?(s+=a[0],e(s)):Kf(e,a,l,s,i)}}function W1(e){return t=>{Zi.lastIndex=0;const n=[],r=[];let i=0,o=Zi.exec(e);for(;o;){const s=o.index+(o[1]||"").length;n.push(e.substring(i,s).replace(/%%/g,"%")),r.push(o),i=Zi.lastIndex,Zi.lastIndex-=1,o=Zi.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(i).replace(/%%/g,"%")),Kf(t,n,r))}}function nu(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(B1,(r,i,o,s,a,l)=>{if(i<0||i>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let u=t[i];if(Gf(u))switch(a=a==null?null:parseInt(a,10),s){case"f":case"F":a=a??2,u=fs(u,a);break;case"g":case"G":u=a!=null?Es(u,a):Es(u);break;case"e":case"E":u=a!=null?As(u,a):As(u);break;case"p":case"P":a=a??2,u=fs(ml(u,100),a)+" %";break;case"d":case"D":u=a!=null?Ra(String(u),a,"0"):String(u);break;case"x":case"X":u=a!=null?Ra(ks(u),a,"0"):ks(u),s==="X"&&(u=u.toUpperCase());break;default:if(l){let d="";u=l.replace(/([0#,]+)(\.[0#]+)?/,(f,p,m)=>{qf(u,0)&&(u=ml(u,-1),d="-"),m=m==null?"":m.substring(1),u=fs(u,Math.max(m.length,0));let[h,b]=u.split(".");b||(b="");const v=p.replace(/,/g,"").replace(/^#+/,"").length;h=Ra(h,v,"0");const _=m.replace(/#+$/,"").length;if(_>b.length?b=G1(b,_,"0"):_<b.length&&(b=b.substring(0,_)+b.substring(_).replace(/0+$/,"")),p.indexOf(",")>0){const x=h.length%3,E=Math.floor(h.length/3);let T=x>0?h.substr(0,x)+(E>0?",":""):"";for(let I=0;I<E;I++)T+=h.substr(x+I*3,3)+(I<E-1?",":"");h=T}return b.length>0?h+"."+b:h}),u=d+u}}else u instanceof Date?u=Ks(u,l||s):u=nt(u);return o=parseInt((o||" ").substring(1),10),isNaN(o)||(u=po(String(u),Math.abs(o)," ",o<0)),u})}function ru(e){return typeof e!="string"||e.length===0}function Ni(e){return typeof e!="string"||/^\s*$/.test(e)}function At(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function po(e,t,n,r){n=n||" ",t=t-e.length;for(let i=0;i<t;i++)e=r?e+n:n+e;return e}function Ra(e,t,n){return po(e,t,n)}function G1(e,t,n){return po(e,t,n,!0)}function Xf(e,t,n){return e.replace(new RegExp(Xs(t),"g"),n)}function Jf(e,t,n,r){if(n=typeof n=="number"?n:void 0,r=typeof r=="number"?r:0,n&&n<0)throw new Error("Count cannot be less than zero");if(n===0)return[];const i=(r&1)===1,o=(r&2)===2;t=t||[],t=t.filter(d=>d).map(Xs),t=t.length>0?t:["\\s"];const s=[],a=new RegExp(t.join("|"),"g");let l=!0,u=0;do{const d=a.exec(e);if(d===null){const f=o?e.substring(u).trim():e.substring(u);(!i||f.length>0)&&s.push(f),l=!1}else{const f=o?e.substring(u,d.index).trim():e.substring(u,d.index);(!i||f.length>0)&&(n!=null&&s.length+1===n?(s.push(o?e.substring(u).trim():e.substring(u)),l=!1):s.push(f)),u=a.lastIndex}}while(l);return s}function z1(e,...t){if(t.length===0)return e.trim();const n="["+Xs(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}function iu(e,...t){return t.length===0?e.trimEnd():e.replace(new RegExp("["+Xs(t.join(""))+"]+$"),"")}function q1(e,t,n){if(t+(n||0)>e.length)throw new Error("Invalid startIndex and/or length");return n!=null?e.substr(t,n):e.substr(t)}class Ir{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return on(this.value)}Equals(t){return t==null?!1:te(this.value,t instanceof Ir?t.value:t)}CompareTo(t){return t==null?1:Et(this.value,t instanceof Ir?t.value:t)}}function V(e){if(e==null)throw new Error("Option has no value");return e instanceof Ir?e.value:e}function so(e){return e instanceof Ir?e.value:e}function ct(e){return e==null||e instanceof Ir?new Ir(e):e}function Qf(e){return e==null?null:V(e)}function Ti(e){return e==null?[]:[V(e)]}function Xe(e,t){return e!=null?V(e):t}function Y1(e,t){return e!=null?V(e):t()}function _t(e,t){return t!=null?ct(e(V(t))):void 0}function Z1(e,t){return t!=null?e(V(t)):void 0}class K1{constructor(t,n,r,i){this.declaringType=t,this.tag=n,this.name=r,this.fields=i}}class Bt{constructor(t,n,r,i,o,s,a){this.fullname=t,this.generics=n,this.construct=r,this.parent=i,this.fields=o,this.cases=s,this.enumCases=a}toString(){return Ke(this)}GetHashCode(){return e0(this)}Equals(t){return hl(this,t)}}function Kt(e){return e.generics!=null?e.generics:[]}function e0(e){const t=fr(e.fullname),n=Kt(e).map(e0);return Ao([t,...n])}function hl(e,t){return e.fullname===""?t.fullname===""&&dl(wo(e),wo(t),([n,r],[i,o])=>n===i&&hl(r,o)):e.fullname===t.fullname&&dl(Kt(e),Kt(t),hl)}function rr(e,t,n,r){return new Bt(e,t,n,r)}function Rt(e,t,n,r){return new Bt(e,t,n,void 0,r)}function qn(...e){return new Bt("",void 0,void 0,void 0,()=>e)}function No(e,t,n,r){const i=new Bt(e,t,n,void 0,void 0,()=>{const o=n.prototype.cases();return r().map((s,a)=>new K1(i,a,o[a],s))});return i}function ai(e){return new Bt("Microsoft.FSharp.Core.FSharpOption`1",[e])}function ir(e){return new Bt("Microsoft.FSharp.Collections.FSharpList`1",[e])}const X1=new Bt("System.Object"),Ht=new Bt("System.String"),go=new Bt("System.Boolean"),Je=new Bt("System.Int32");function li(e){if(Array.isArray(e))return e[0];if(e instanceof Bt){const t=To(e);if(t!=null)return li(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function Ke(e){const t=To(e);return t!=null?Ke(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>Ke(n)).join(",")+"]"}function t0(e){return To(e)!=null}function To(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function n0(e){return e.generics!=null&&e.generics.length>0}function ou(e){return e.enumCases!=null&&e.enumCases.length>0}function r0(e){return e.generics==null?e:new Bt(e.fullname,e.generics.map(()=>X1))}function i0(e){var t;return(t=e.generics)==null?void 0:t[0]}function zr(e){if(ou(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function J1(e,t){if(e.enumCases!=null)if(typeof t=="string"){for(const n of e.enumCases)if(n[0]===t)return n;throw new Error(`'${t}' was not found in ${e.fullname}`)}else{for(const n of e.enumCases)if(n[1]===t)return n;return["",t]}else throw new Error(`${e.fullname} is not an enum type`)}function qr(e,t){const n=parseInt(t,10);return J1(e,isNaN(n)?t:n)[1]}function o0(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function wo(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function s0(e){if(su(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function a0(e){return e instanceof Bt?e.cases!=null:e instanceof W}function l0(e){return e instanceof Bt?e.fields!=null:e instanceof _e}function su(e){return e.fullname.startsWith("System.Tuple")}function Q1(e,t){const r=o0(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function u0(e){return e.fields==null?[]:e.fields}function eg(e,t){return e[t[0]]}function tg(e,t){const n=(e.fields||[]).length;if(t.length!==n)throw new Error(`Expected an array of length ${n} but got ${t.length}`);const r=e.declaringType.construct;return r==null?{}:(e.declaringType.cases?e.declaringType.cases().length==1:!1)?new r(...t):new r(e.tag,t)}function ng(e,t){const n=wo(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return e.construct!=null?new e.construct(...t):n.reduce((r,[i,o],s)=>(r[i]=t[s],r),{})}function rg(e,t){return e}const c0="Collection was empty.",ig="The input must be non-negative.",d0="The input sequence has an insufficient number of elements.";function yi(e,t){return new Array(t)}function Ac(e,t){return e>t?e:t}function kc(e,t){return e<t?e:t}function f0(e,t,n){const r=e.length|0,i=t.length|0,o=yi(n,r+i);for(let s=0;s<=r-1;s++)$t(o,s,he(s,e));for(let s=0;s<=i-1;s++)$t(o,s+r,he(s,t));return o}function $o(e,t,n,r){const i=t|0;return e.fill(r,i,i+n)}function og(e){if(e.length===0)throw new Error("The input array was empty\\nParameter name: array");return he(e.length-1,e)}function m0(e,t,n){const r=t.length|0,i=yi(n,r);for(let o=0;o<=r-1;o++)$t(i,o,e(o,he(o,t)));return i}function et(e,t,n){const r=t.length|0,i=yi(n,r);for(let o=0;o<=r-1;o++)$t(i,o,e(he(o,t)));return i}function Ts(e,t){const n=Array.isArray(e)?e:Array.from(e);switch(n.length|0){case 0:return yi(t,0);case 1:return he(0,n);default:{let i=0,o=0;for(let a=0;a<=n.length-1;a++){const l=he(a,n);o=o+l.length|0}const s=yi(t,o);for(let a=0;a<=n.length-1;a++){const l=he(a,n);for(let u=0;u<=l.length-1;u++)$t(s,i,he(u,l)),i=i+1|0}return s}}}function sg(e,t,n,r,i){const o=Xe(n,0)|0,s=Xe(_t(l=>o+l,r),e.length)|0;return(l=>{e:for(;;){const u=l;if(u>=s)return-1;if(i.Equals(t,he(u,e)))return u|0;l=u+1;continue e}})(o)|0}function $i(e,t,n){return sg(t,e,void 0,void 0,n)>=0}function ag(e,t){const n=yi(t,1);return $t(n,0,e),n}function lg(e){return e.slice().reverse()}function Js(e,t){return t.find(e)}function Xt(e,t,n){const r=[];for(let i=0;i<=t.length-1;i++){const o=e(he(i,t));if(o!=null){const s=V(o);r.push(s)}}return te(n,Se())?r:et(i=>i,r,n)}function Qs(e,t,n){const r=e;return n.reduce(r,t)}function ug(e,t){const n=e.slice();return n.sort((r,i)=>t.Compare(r,i)),n}function cg(e,t,n){const r=t.slice();return r.sort((i,o)=>n.Compare(e(i),e(o))),r}function Dr(e,t,n){if(t==null)return n==null;if(n==null)return!1;{let r=0,i=!0;const o=t.length|0,s=n.length|0;if(o>s)return!1;if(o<s)return!1;for(;r<o&&i;)i=e(he(r,t),he(r,n)),r=r+1|0;return i}}function Nc(e){if(e.length===0)throw new Error("The input array was empty\\nParameter name: array");return he(0,e)}function dg(e){if(e.length===0)throw new Error("Not enough elements\\nParameter name: array");return e.slice(1)}function he(e,t){if(e<0||e>=t.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");return t[e]}function $t(e,t,n){if(t<0||t>=e.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");e[t]=n}function h0(e,t){if(!(e<0||e>=t.length))return ct(t[e])}function p0(e,t,n){return t.reduceRight((r,i)=>e(i,r),n)}class bt extends _e{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+At("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((i,o)=>{e:for(;;){const s=i,a=o,l=s.tail,u=a.tail;if(l!=null)if(u!=null){const d=V(l),f=V(u);if(te(s.head,a.head)){i=d,o=f;continue e}else return!1}else return!1;else return u==null}})(n,t)}GetHashCode(){return((r,i,o)=>{e:for(;;){const s=r,a=i,l=o,u=l.tail;if(u!=null){const d=V(u);if(s>18)return a|0;r=s+1,i=(a<<1)+on(l.head)+631*s,o=d;continue e}else return a|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((i,o)=>{e:for(;;){const s=i,a=o,l=s.tail,u=a.tail;if(l!=null)if(u!=null){const d=V(l),f=V(u),p=Et(s.head,a.head)|0;if(p===0){i=d,o=f;continue e}else return p|0}else return 1;else return u!=null?-1:0}})(this,t)|0}GetEnumerator(){return mg(this)}[Symbol.iterator](){return Ai(Oe(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Oe(this)}}class fg{constructor(t){this.xs=t,this.it=this.xs,this.current=Se()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this,n=t.it.tail;if(n!=null){const r=V(n);return t.current=t.it.head,t.it=r,!0}else return!1}"System.Collections.IEnumerator.Reset"(){const t=this;t.it=t.xs,t.current=Se()}Dispose(){}}function mg(e){return new fg(e)}function Qe(){return new bt(Se(),void 0)}function Mo(e,t){return new bt(e,t)}function _n(e){return e.tail==null}function g0(e){return((n,r)=>{e:for(;;){const i=n,s=r.tail;if(s!=null){n=i+1,r=V(s);continue e}else return i|0}})(0,e)|0}function or(e){if(e.tail!=null)return e.head;throw new Error(c0+"\\nParameter name: list")}function gt(e){const t=e.tail;if(t!=null)return V(t);throw new Error(c0+"\\nParameter name: list")}function at(){return Qe()}function en(e,t){return Mo(e,t)}function ue(e){return Mo(e,Qe())}function Te(e){return _n(e)}function tn(e){return g0(e)}function le(e){return or(e)}function Me(e){return gt(e)}function mr(e){const t=g0(e)|0,n=$o(new Array(t),0,t,null);return((i,o)=>{e:for(;;){const s=i,a=o;if(!_n(a)){$t(n,s,or(a)),i=s+1,o=gt(a);continue e}break}})(0,e),n}function Sn(e,t,n){let r=t,i=n;for(;!_n(i);)r=e(r,le(i)),i=gt(i);return r}function au(e){return Sn((t,n)=>Mo(n,t),Qe(),e)}function hg(e,t,n){return p0(e,mr(t),n)}function pg(e,t,n){return((i,o,s)=>{e:for(;;){const a=i,l=o,u=s;if(_n(u))return l;i=a+1,o=e(a,l,or(u)),s=gt(u);continue e}})(0,t,n)}function yo(e,t){Sn((n,r)=>{e(r)},void 0,t)}function rt(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=Mo(he(r,e),n);return n}function g(e){return rt(e,Qe())}function gg(e){let t,n;if(rn(e))return g(e);if(e instanceof bt)return e;{const r=Qe();let i=r;const o=Oe(e);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const l=o["System.Collections.Generic.IEnumerator`1.get_Current"]();i=(t=i,n=new bt(l,void 0),t.tail=n,n)}}finally{$e(o)}const s=i,a=Qe();return s.tail=a,gt(r)}}function wg(e){const t=Qe();let n=t;const r=s=>{n=Sn((a,l)=>{const u=new bt(l,void 0);return a.tail=u,u},n,s)};if(rn(e))e.forEach(r);else if(e instanceof bt)yo(r,e);else{const s=Oe(e);try{for(;s["System.Collections.IEnumerator.MoveNext"]();)r(s["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{$e(s)}}const i=n,o=Qe();return i.tail=o,gt(t)}function Io(e,t){return Sn((n,r)=>Mo(r,n),t,au(e))}function yg(e,t){let n,r;const i=Qe();let o=i,s=t;for(;!_n(s);){let u=e(or(s));for(;!_n(u);)o=(n=o,r=new bt(or(u),void 0),n.tail=r,r),u=gt(u);s=gt(s)}const a=o,l=Qe();return a.tail=l,gt(i)}function lu(e,t){const n=Qe(),r=pg((o,s,a)=>{const l=new bt(e(o,a),void 0);return s.tail=l,l},n,t),i=Qe();return r.tail=i,gt(n)}function sr(e,t){const n=Qe(),r=Sn((o,s)=>{const a=new bt(e(s),void 0);return o.tail=a,a},n,t),i=Qe();return r.tail=i,gt(n)}function vg(e,t){return(r=>{e:for(;;){const i=r;if(_n(i))return;{const o=e(or(i));if(o==null){r=gt(i);continue e}else return o}}})(t)}function w0(e,t){return vg(n=>e(n)?ct(n):void 0,t)}function bg(e,t){return((r,i)=>{e:for(;;){const o=r,s=i;if(_n(s))return;if(e(or(s)))return o;r=o+1,i=gt(s);continue e}})(0,t)}function Rn(e,t){const n=Qe(),r=Sn((o,s)=>{if(e(s)){const a=new bt(s,void 0);return o.tail=a,a}else return o},n,t),i=Qe();return r.tail=i,gt(n)}function _g(e,t){const n=Qe(),r=Qe(),i=n,o=Sn((l,u)=>{let d,f;const p=l[0],m=l[1];return e(u)?[(d=new bt(u,void 0),p.tail=d,d),m]:[p,(f=new bt(u,void 0),m.tail=f,f)]},[i,r],t),s=Qe();o[0].tail=s;const a=Qe();return o[1].tail=a,[gt(i),gt(r)]}function xg(e,t){const n=Qe(),r=Sn((o,s)=>{const a=e(s);if(a==null)return o;{const l=new bt(V(a),void 0);return o.tail=l,l}},n,t),i=Qe();return r.tail=i,gt(n)}function uu(e,t){return bg(e,t)!=null}function y0(e,t){const n=mr(t);return n.sort(e),g(n)}function Cg(e,t,n){return y0((r,i)=>n.Compare(e(r),e(i)),t)}function Sg(e,t,n){return y0((r,i)=>n.Compare(e(r),e(i))*-1,t)}function v0(e,t){e:for(;;){const n=e,r=t;if(n<=0)return r;if(_n(r))throw new Error(d0+"\\nParameter name: list");e=n-1,t=gt(r);continue e}}function b0(e,t){if(e<0)throw new Error(ig+"\\nParameter name: count");const n=(s,a,l)=>{let u;e:for(;;){const d=s,f=a,p=l;if(d<=0)return f;if(_n(p))throw new Error(d0+"\\nParameter name: list");s=d-1,a=(u=new bt(or(p),void 0),f.tail=u,u),l=gt(p);continue e}},r=Qe(),i=n(e,r,t),o=Qe();return i.tail=o,gt(r)}function Eg(e,t,n){const r=tn(n)|0;let i;const o=Xe(e,0)|0;i=o<0?0:o;let s;const a=Xe(t,r-1)|0;return s=a>=r?r-1:a,s<i?Qe():b0(s-i+1,v0(i,n))}const y=Q;function Ag(e){const t=g([c("style",{children:[Ql]}),c("div",{className:"text-blue-500",children:`Welcome to apollo-import-workspace-app, with backend url ${e.backendUrl}`})]);return c("div",{children:y.Children.toArray(Array.from(t))})}function kg(e){throw new Error(e)}const Ng="Enumeration already finished.",Tg="Enumeration has not started. Call MoveNext.",_0="The input sequence has an insufficient number of elements.",$g="Reset is not supported on this enumerator.";function Mg(){throw new Error($g)}function cu(){throw new Error(Tg)}function pl(){throw new Error(Ng)}class Ig{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const i=Oe(t);try{for(;n<4&&i["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+nt(i["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{$e(i)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Ai(Oe(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function Dg(e){return new Ig(e)}class Rg{constructor(t,n,r){this.current=t,this.next=n,this.dispose=r}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current()}"System.Collections.IEnumerator.get_Current"(){return this.current()}"System.Collections.IEnumerator.MoveNext"(){return this.next()}"System.Collections.IEnumerator.Reset"(){Mg()}Dispose(){this.dispose()}}function ea(e,t,n){return new Rg(e,t,n)}function Og(e){let t,n,r=!1,i=!1,o;const s=()=>{if(i=!0,n!=null){const a=V(n);try{$e(a)}finally{n=void 0}}if(t!=null){const a=V(t);try{$e(a)}finally{t=void 0}}};return ea(()=>(r?i&&pl():cu(),o!=null?V(o):pl()),()=>{let a;if(r||(r=!0),i)return!1;{let l;for(;l==null;){const u=t,d=n;if(u!=null)if(d!=null){const f=V(d);if(f["System.Collections.IEnumerator.MoveNext"]())o=ct(f["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{$e(f)}finally{n=void 0}}else{const f=V(u);f["System.Collections.IEnumerator.MoveNext"]()?n=(a=f["System.Collections.Generic.IEnumerator`1.get_Current"](),Oe(a)):(s(),l=!1)}else t=Oe(e)}return V(l)}},()=>{i||s()})}function Fg(e,t){return ea(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{$e(t)}finally{}})}function x0(e,t,n){let r=!1,i,o=ct(e());const s=()=>{if(o!=null){const l=V(o);try{n(l)}finally{o=void 0}}},a=()=>{try{s()}finally{i=void 0}};return ea(()=>(r||cu(),i!=null?V(i):pl()),()=>{if(r||(r=!0),o!=null){const l=V(o);let u;try{u=t(l)}catch(d){throw a(),d}return u!=null?(i=u,!0):(a(),!1)}else return!1},s)}function Pg(e,t){let n,r=t;return ea(()=>{if(n!=null){const i=V(n)[0];return V(n)[1],i}else return cu()},()=>(n=e(r),n!=null?(V(n)[0],r=V(n)[1],!0):!1),()=>{})}function Lg(e,t){t==null&&kg(e)}function Mi(e){return Dg(e)}function sn(e){return Lg("source",e),Oe(e)}function $(e){return Mi(()=>Oe(e()))}function ta(e){return Mi(()=>Og(e))}function Vg(e,t){return Mi(()=>Pg(e,t))}function ht(){return $(()=>new Array(0))}function k(e){return $(()=>ag(e))}function jn(e){return e instanceof bt?mr(e):Array.from(e)}function K(e){return rn(e)?g(e):e instanceof bt?e:gg(e)}function du(e,t,n){return Mi(()=>x0(e,t,n))}function C0(e,t,n){return Mi(()=>{let r=-1;return x0(e,i=>(r=r+1|0,t(r,i)),n)})}function H(e,t){return ta([e,t])}function Hg(e,t){return du(()=>sn(t),n=>{let r;for(;r==null&&n["System.Collections.IEnumerator.MoveNext"]();)r=e(n["System.Collections.Generic.IEnumerator`1.get_Current"]());return r},n=>{$e(n)})}function jg(e,t,n){const r=sn(t);try{const i=sn(n);try{let o=0,s=r["System.Collections.IEnumerator.MoveNext"](),a=i["System.Collections.IEnumerator.MoveNext"]();for(;o===0&&s&&a;)o=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),i["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,o===0&&(s=r["System.Collections.IEnumerator.MoveNext"](),a=i["System.Collections.IEnumerator.MoveNext"]());return(o!==0?o:s?1:a?-1:0)|0}finally{$e(i)}}finally{$e(r)}}function Yr(e,t,n){const r=sn(t);try{let i=!1;for(;!i&&r["System.Collections.IEnumerator.MoveNext"]();)i=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return i}finally{$e(r)}}function na(e,t){return Hg(n=>{if(e(n))return ct(n)},t)}function Do(e,t,n){const r=sn(n);try{let i=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)i=e(i,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return i}finally{$e(r)}}function Wn(e,t){Do((n,r)=>{e(r)},void 0,t)}function S0(e,t){Do((n,r)=>(e(n,r),n+1|0),0,t)}function Bg(e){if(rn(e))return e.length|0;if(e instanceof bt)return tn(e)|0;{const t=sn(e);try{let n=0;for(;t["System.Collections.IEnumerator.MoveNext"]();)n=n+1|0;return n|0}finally{$e(t)}}}function Le(e,t){return du(()=>sn(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?ct(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{$e(n)})}function Ug(e,t){return C0(()=>sn(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?ct(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{$e(n)})}function Wg(e,t,n){return du(()=>[sn(t),sn(n)],r=>{const i=r[0],o=r[1];return i["System.Collections.IEnumerator.MoveNext"]()&&o["System.Collections.IEnumerator.MoveNext"]()?ct(e(i["System.Collections.Generic.IEnumerator`1.get_Current"](),o["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0},r=>{try{$e(r[0])}finally{$e(r[1])}})}function Gg(e){return $(()=>lg(jn(e)))}function zg(e,t){return Mi(()=>{const n=sn(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(_0+"\\nParameter name: source");return Fg(()=>{},n)}catch(r){throw $e(n),r}})}function qg(e,t){return C0(()=>sn(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return ct(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(_0+"\\nParameter name: source")}else return},n=>{$e(n)})}function Yg(e,t){return Wg((n,r)=>[n,r],e,t)}function ra(e,t){return $(()=>ta(Le(e,t)))}const E0=(e,t)=>{Fe(()=>{const n=e();return()=>{n.Dispose()}},t)},Zg=e=>{Cn(()=>{const t=e();return()=>{t.Dispose()}})};function Kg(e){return{Dispose(){Wn(t=>{$e(t)},Ti(e))}}}class A0{constructor(t=!1){this._id=0,this._cancelled=t,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,t]of this._listeners)t()}}addListener(t){const n=this._id;return this._listeners.set(this._id++,t),n}removeListener(t){return this._listeners.delete(t)}register(t,n){const r=this,i=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(i)}}}Dispose(){}}class ia extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,ia.prototype)}}class fu{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>fu.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function On(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new ia);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(Ss(n))}});else try{e(t)}catch(n){t.onError(Ss(n))}}}function Xg(e,t){return On(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(i){n.onError(Ss(i))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function Jg(e){return On(t=>t.onSuccess(e))}class Qg{Bind(t,n){return Xg(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return On(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let i=r.next();return this.While(()=>!i.done,this.Delay(()=>{const o=n(i.value);return i=r.next(),o}))}Return(t){return Jg(t)}ReturnFrom(t){return t}TryFinally(t,n){return On(r=>{t({onSuccess:i=>{n(),r.onSuccess(i)},onError:i=>{n(),r.onError(i)},onCancel:i=>{n(),r.onCancel(i)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return On(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:i=>{try{n(i)(r)}catch(o){r.onError(Ss(o))}}})})}Using(t,n){return this.TryFinally(n(t),()=>t.Dispose())}While(t,n){return t()?this.Bind(n,()=>this.While(t,n)):this.Return(void 0)}Zero(){return On(t=>t.onSuccess(void 0))}}const Z=new Qg;function ew(e){return new k0(0,[e])}function tw(e){return new k0(1,[e])}class k0 extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function nw(e){return ew(e)}function rw(e){return tw(e)}function Oa(e){}function iw(e){return new A0(!1)}function ow(e){e.cancel()}function sw(e){return e!=null&&e.isCancelled}const aw=new A0;function lw(e){return On(t=>{e({onSuccess:n=>t.onSuccess(nw(n)),onError:n=>t.onSuccess(rw(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function uw(e){return On(t=>e([t.onSuccess,t.onError,t.onCancel]))}function N0(e){return On(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new ia)})})}function cw(e,t){return dw(e,t)}function Ii(e,t){return cw(e,t)}function dw(e,t,n,r,i){typeof t!="function"&&(i=t,t=void 0);const o=new fu;e({onSuccess:t||Oa,onError:Oa,onCancel:Oa,cancelToken:i||aw,trampoline:o})}function fw(e,t){return t}function mw(e,t,n,r){const i=y.memo(e,Ze(Xe(_t(Xn,n),Se())));return Wn(o=>{e.displayName=o},Ti(t)),o=>{const s=fw(r,o);return y.createElement(i,s)}}function mu(e){return{Dispose(){e()}}}function oa(e){const t=y.useRef(!1);y.useEffect(()=>{t.current||(t.current=!0,e())},[])}function T0(e){const t=y.useRef(void 0),n=y.useRef(!1),r=y.useRef(!1);n.current&&(r.current=!0),E0(()=>Kg(n.current?void 0:(n.current=!0,t.current=ct(e()),r.current?t.current:void 0)),[])}function $0(e){const t=y.useRef(e),n=y.useCallback(r=>t.current(r),[]);return Zg(r=>(t.current=e,mu(()=>{}))),n}class Di extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class sa extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class aa extends _e{constructor(t,n,r,i,o,s,a,l){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=i,this.overridenMimeType=o,this.overridenResponseType=s,this.timeout=a,this.content=l}}class ei extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class M0 extends _e{constructor(t,n,r,i,o,s){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=i,this.responseHeaders=o,this.content=s}}class I0{constructor(t,n){this.k=t,this.v=n}}function vi(e,t){return new I0(e,t)}function ut(e){return e.k}function pt(e){return e.v}class ft extends I0{constructor(t,n,r,i,o){super(t,n),this.left=r,this.right=i,this.h=o|0}}function Tr(e,t,n,r,i){return new ft(e,t,n,r,i)}function ot(e){return e.left}function st(e){return e.right}function er(e){return e.h}function D0(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=V(r);if(i instanceof ft){const o=i;e=D0(n+1,ot(o)),t=st(o);continue e}else return n+1|0}else return n|0}}function R0(e){return D0(0,e)}function qt(e,t,n,r){let i,o,s;const a=e;if(a!=null){const f=V(a);s=f instanceof ft?(i=f,er(i)):1}else s=0;let l;const u=r;if(u!=null){const f=V(u);l=f instanceof ft?(o=f,er(o)):1}else l=0;const d=(s<l?l:s)|0;return d===0?vi(t,n):Tr(t,n,e,r,d+1)}function $s(e,t,n,r){let i,o,s,a,l,u,d,f,p;const m=e;if(m!=null){const v=V(m);p=v instanceof ft?(i=v,er(i)):1}else p=0;let h;const b=r;if(b!=null){const v=V(b);h=v instanceof ft?(o=v,er(o)):1}else h=0;if(h>p+2){const v=V(r);if(v instanceof ft){const _=v;if(s=ot(_),(s!=null?(a=V(s),a instanceof ft?(l=a,er(l)):1):0)>p+1){const x=V(ot(_));if(x instanceof ft){const E=x;return qt(qt(e,t,n,ot(E)),ut(E),pt(E),qt(st(E),ut(_),pt(_),st(_)))}else throw new Error("internal error: Map.rebalance")}else return qt(qt(e,t,n,ot(_)),ut(_),pt(_),st(_))}else throw new Error("internal error: Map.rebalance")}else if(p>h+2){const v=V(e);if(v instanceof ft){const _=v;if(u=st(_),(u!=null?(d=V(u),d instanceof ft?(f=d,er(f)):1):0)>h+1){const x=V(st(_));if(x instanceof ft){const E=x;return qt(qt(ot(_),ut(_),pt(_),ot(E)),ut(E),pt(E),qt(st(E),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return qt(ot(_),ut(_),pt(_),qt(st(_),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return qt(e,t,n,r)}function bi(e,t,n,r){if(r!=null){const i=V(r),o=e.Compare(t,ut(i))|0;if(i instanceof ft){const s=i;return o<0?$s(bi(e,t,n,ot(s)),ut(s),pt(s),st(s)):o===0?Tr(t,n,ot(s),st(s),er(s)):$s(ot(s),ut(s),pt(s),bi(e,t,n,st(s)))}else return o<0?Tr(t,n,void 0,r,2):o===0?vi(t,n):Tr(t,n,r,void 0,2)}else return vi(t,n)}function hu(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=V(o),a=r.Compare(i,ut(s))|0;if(a===0)return ct(pt(s));if(s instanceof ft){const l=s;e=r,t=i,n=a<0?ot(l):st(l);continue e}else return}else return}}function hw(e,t,n){const r=hu(e,t,n);if(r==null)throw new Error;return V(r)}function O0(e){if(e!=null){const t=V(e);if(t instanceof ft){const n=t;if(ot(n)==null)return[ut(n),pt(n),st(n)];{const r=O0(ot(n));return[r[0],r[1],qt(r[2],ut(n),pt(n),st(n))]}}else return[ut(t),pt(t),void 0]}else throw new Error("internal error: Map.spliceOutSuccessor")}function gl(e,t,n,r){if(r!=null){const i=V(r);if(i instanceof ft){const o=i,s=e.Compare(t,ut(o))|0;if(s<0)return $s(gl(e,t,n,ot(o)),ut(o),pt(o),st(o));if(s===0){const a=n(ct(pt(o)));if(a!=null)return Tr(t,V(a),ot(o),st(o),er(o));if(ot(o)==null)return st(o);if(st(o)==null)return ot(o);{const l=O0(st(o));return qt(ot(o),l[0],l[1],l[2])}}else return $s(ot(o),ut(o),pt(o),gl(e,t,n,st(o)))}else{const o=e.Compare(t,ut(i))|0;if(o<0){const s=n(void 0);return s!=null?Tr(t,V(s),void 0,r,2):r}else if(o===0){const s=n(ct(pt(i)));return s!=null?vi(t,V(s)):void 0}else{const s=n(void 0);return s!=null?Tr(t,V(s),r,void 0,2):r}}}else{const i=n(void 0);return i!=null?vi(t,V(i)):r}}function pw(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=V(o),a=r.Compare(i,ut(s))|0;if(s instanceof ft){const l=s;if(a<0){e=r,t=i,n=ot(l);continue e}else{if(a===0)return!0;e=r,t=i,n=st(l);continue e}}else return a===0}else return!1}}function F0(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=V(r);if(i instanceof ft){const o=i;F0(n,ot(o)),n(ut(o),pt(o)),e=n,t=st(o);continue e}else n(ut(i),pt(i))}break}}function gw(e,t){F0(e,t)}function P0(e,t,n){let r=n;gw((i,o)=>{$t(t,r,[i,o]),r=r+1|0},e)}function ww(e){const t=R0(e)|0,n=$o(new Array(t),0,t,[null,null]);return P0(e,n,0),n}function yw(e,t){return Sn((n,r)=>bi(e,r[0],r[1],n),void 0,t)}function vw(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){const s=o["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=bi(r,s[0],s[1],i),n=o;continue e}else return i}}function bw(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const i=he(r,t);n=bi(e,i[0],i[1],n)}return n}function L0(e,t){if(rn(t))return bw(e,t);if(t instanceof bt)return yw(e,t);{const n=Oe(t);try{return vw(e,void 0,n)}finally{$e(n)}}}class _w extends _e{constructor(t,n){super(),this.stack=t,this.started=n}}function V0(e){e:for(;;){const t=e;if(Te(t))return at();{const n=Me(t),r=le(t);if(r!=null){const i=V(r);if(i instanceof ft){const o=i;e=rt([ot(o),vi(ut(o),pt(o)),st(o)],n);continue e}else return t}else{e=n;continue e}}}}function Tc(e){return new _w(V0(ue(e)),!1)}function xw(){throw new Error("enumeration not started")}function Cw(){throw new Error("enumeration already finished")}function $c(e){if(e.started){const t=e.stack;if(Te(t))return Cw();if(le(t)!=null){const n=V(le(t));if(n instanceof ft)throw new Error("Please report error: Map iterator, unexpected stack for current");return[ut(n),pt(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return xw()}function Sw(e){if(e.started){const t=e.stack;if(Te(t))return!1;if(le(t)!=null){if(V(le(t))instanceof ft)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=V0(Me(t)),!Te(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!Te(e.stack)}function Mc(e){let t=Tc(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return $c(t)},"System.Collections.IEnumerator.get_Current"(){return $c(t)},"System.Collections.IEnumerator.MoveNext"(){return Sw(t)},"System.Collections.IEnumerator.Reset"(){t=Tc(e)},Dispose(){}}}class Ms{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Tw(this)|0}Equals(t){const n=this;if(t instanceof Ms){const r=t,i=Oe(n);try{const o=Oe(r);try{const s=()=>{const a=i["System.Collections.IEnumerator.MoveNext"]();if(a===o["System.Collections.IEnumerator.MoveNext"]())if(a){const l=i["System.Collections.Generic.IEnumerator`1.get_Current"](),u=o["System.Collections.Generic.IEnumerator`1.get_Current"]();return te(l[0],u[0])&&te(l[1],u[1])?s():!1}else return!0;else return!1};return s()}finally{$e(o)}}finally{$e(i)}}else return!1}toString(){return"map ["+At("; ",Le(n=>nu("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return Mc(this.tree)}[Symbol.iterator](){return Ai(Oe(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Mc(this.tree)}CompareTo(t){const n=this;if(t instanceof Ms)return jg((i,o)=>{const s=n.comparer.Compare(i[0],o[0])|0;return(s!==0?s:Et(i[1],o[1]))|0},n,t)|0;throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return Ic(n,t[0])&&te(Rr(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){P0(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Fa(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Fa(this)|0}get size(){return Fa(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return Le(n=>[n[0],n[1]],this)}get(t){return Rr(this,t)}has(t){return Ic(this,t)}keys(){return Le(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return Le(n=>n[1],this)}forEach(t,n){const r=this;Wn(i=>{t(i[1],i[0],r)},r)}}function Ro(e,t){return new Ms(e,t)}function Ew(e){return Ro(e,void 0)}function Aw(e,t,n){return Ro(e.comparer,bi(e.comparer,t,n,e.tree))}function kw(e,t,n){return Ro(e.comparer,gl(e.comparer,t,n,e.tree))}function Rr(e,t){return hw(e.comparer,t,e.tree)}function Fa(e){return R0(e.tree)}function Ic(e,t){return pw(e.comparer,t,e.tree)}function Nw(e,t,n){const r=hu(e.comparer,t,e.tree);if(r==null)return!1;{const i=V(r);return n.contents=i,!0}}function Dc(e){return et(t=>t[1],ww(e.tree))}function Ar(e,t){return hu(e.comparer,t,e.tree)}function Tw(e){const t=(i,o)=>(i<<1)+o+631;let n=0;const r=Oe(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const i=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,on(i[0]))|0,n=t(n,on(i[1]))|0}}finally{$e(r)}return n|0}function H0(e,t,n){return Aw(n,e,t)}function es(e,t,n){return kw(n,e,t)}function j0(e,t){return Ar(t,e)}function $w(e){return Le(t=>[t[0],t[1]],e)}function ui(e,t){return Ro(t,L0(t,e))}function Mw(e,t){return Ro(t,L0(t,e))}function pu(e){return Ew(e)}const wr=new aa("",new Di(0,[]),at(),!1,void 0,void 0,void 0,new sa(0,[]));new M0(0,"","","",pu({Compare:Br}),new ei(0,[""]));function Rc(e,t){return ru(t)?new Array(0):Jf(t,[e],void 0,0)}function Iw(e){switch(e.tag){case 1:return"POST";case 3:return"PATCH";case 2:return"PUT";case 4:return"DELETE";case 6:return"OPTIONS";case 5:return"HEAD";default:return"GET"}}function Oo(e){return new aa(e,wr.method,wr.headers,wr.withCredentials,wr.overridenMimeType,wr.overridenResponseType,wr.timeout,wr.content)}function Fo(e,t){return new aa(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function gu(e,t){return new aa(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function Oc(e){return uw(t=>{const n=new XMLHttpRequest;n.open(Iw(e.method),e.url),n.onreadystatechange=()=>{let l,u,d,f,p,m,h;n.readyState===4&&t[0]((l=(u=n.responseType,u===""||u==="text"?n.responseText:""),d=n.status|0,f=n.responseType,p=(m=n.responseType,m===""?new ei(0,[n.responseText]):m==="text"?new ei(0,[n.responseText]):m==="arraybuffer"?new ei(2,[n.response]):m==="blob"?new ei(1,[n.response]):new ei(3,[n.response])),h=Mw(Xt(b=>{const v=g(Rc(":",b));if(!Te(v))return[le(v).toLocaleLowerCase(),At(":",Me(v)).trim()]},Rc(`\r
4
+ `,n.getAllResponseHeaders())),{Compare:Br}),new M0(d,l,f,n.responseURL,h,p)))};const r=Oe(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const l=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(l.fields[0],l.fields[1])}}finally{$e(r)}n.withCredentials=e.withCredentials;const i=e.overridenMimeType;if(i!=null){const l=i;n.overrideMimeType(l)}const o=e.overridenResponseType;if(o!=null)switch(o.tag){case 1:{n.responseType="blob";break}case 2:{n.responseType="arraybuffer";break}default:n.responseType="text"}const s=e.timeout;if(s!=null){const l=s|0;n.timeout=l|0}const a=e.content;switch(a.tag){case 1:{n.send(ct(a.fields[0]));break}case 3:{n.send(ct(a.fields[0]));break}case 2:{n.send(ct(a.fields[0]));break}default:n.send()}})}function Dw(e){return new M(0,[e])}function B0(e){return new M(1,[e])}class M extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function Bn(e,t){return t.tag===0?Dw(e(t.fields[0])):B0(t.fields[0])}function Rw(e,t){return t.tag===0?e(t.fields[0]):B0(t.fields[0])}const xr={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function Pa(e,t){return e.replace(/[a-z]?[A-Z]/g,n=>n.length===1?n.toLowerCase():n.charAt(0)+t+n.charAt(1).toLowerCase())}function Ow(e,t){switch(t){case xr.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case xr.SnakeCase:return Pa(e,"_");case xr.SnakeCaseAllCaps:return Pa(e,"_").toUpperCase();case xr.KebabCase:return Pa(e,"-");case xr.None:default:return e}}function Gn(e,t=xr.None){const n={},r=t;function i(s){throw new Error("Cannot infer key and value of "+String(s))}function o(s,a,l){s=Ow(s,a),n[s]=l}for(let s of e){let a=xr.None;if(s==null&&i(s),s instanceof W){const l=s.cases()[s.tag];s=s.fields.length===0?l:[l].concat(s.fields),a=r}if(Array.isArray(s))switch(s.length){case 0:i(s);break;case 1:o(s[0],a,!0);break;case 2:const l=s[1];o(s[0],a,l);break;default:o(s[0],a,s.slice(1))}else typeof s=="string"?o(s,a,!0):i(s)}return n}function wu(e,t,n){return e.has(t)?(n.contents=e.get(t),!0):!1}function U0(e,t){return t.has(e)?!1:(t.add(e),!0)}function Fw(e,t,n){if(e.has(t))throw new Error("An item with the same key has already been added. Key: "+t);e.set(t,n)}function ar(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class re extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Un extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function Fc(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function W0(e,t){switch(e.tag){case 2:return tu(Fc(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Fc(t)}}const Pw=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Pc=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Lw=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Vw(e){function t(r){return r.replace(Pc,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Pw.test(n))return z1(n,"{","}","(",")");if(Pc.test(n))return t(n);if(Lw.test(n))return t(n.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}function Hw(e,t){try{return t.contents=Vw(e),!0}catch{return!1}}function jw(){let e="";for(let t=0;t++<36;)e+=t*51&52?(t^15?8^Math.random()*(t^20?16:4):4).toString(16):"-";return e}var wl;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(wl||(wl={}));function Bw(e,t){const[,n,r,i]=e;return{sign:n||"",prefix:r||"",digits:i,radix:t}}function Lc(e,t){switch(t){case 8:return e?[0,255]:[-128,127];case 16:return e?[0,65535]:[-32768,32767];case 32:return e?[0,4294967295]:[-2147483648,2147483647];default:throw new Error("Invalid bit size.")}}function Uw(e){switch(e){case 2:return/[^0-1]/;case 8:return/[^0-7]/;case 10:return/[^0-9]/;case 16:return/[^0-9a-fA-F]/;default:throw new Error("Invalid Base.")}}function Ww(e,t){if(t&wl.AllowHexSpecifier)return 16;switch(e){case"0b":case"0B":return 2;case"0o":case"0O":return 8;case"0x":case"0X":return 16;default:return 10}}function Gw(e,t,n){const i=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(i!=null){const[,,o,s]=i;if(n=n||Ww(o,t),!Uw(n).test(s))return Bw(i,n)}return null}function zw(e,t,n,r,i){const o=Gw(e,t,i);if(o!=null){let s=Number.parseInt(o.sign+o.digits,o.radix);if(!Number.isNaN(s)){const[a,l]=Lc(!0,r);!n&&o.radix!==10&&s>=a&&s<=l&&(s=s<<32-r>>32-r);const[u,d]=Lc(n,r);if(s>=u&&s<=d)return s}}throw new Error(`The input string ${e} was not in a correct format.`)}function Ri(e,t,n,r,i){try{return i.contents=zw(e,t,n,r),!0}catch{return!1}}function G0(e,t){qw(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function qw(e){if(e!=null&&e!==0){if(e%6e4!==0)throw new Error("Offset must be specified in whole minutes.");if(Math.abs(e/36e5)>14)throw new Error("Offset must be within plus or minus 14 hours.")}}function Yw(){return G0(-621355968e5,0)}function Zw(e){const[t,n]=zf(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return G0(t.getTime(),r)}function Kw(e,t){try{return t.contents=Zw(e),!0}catch{return!1}}function Po(e){return e<0?Math.ceil(e):Math.floor(e)}function Vc(e=0,t=0,n=0,r=0,i=0){switch(arguments.length){case 1:return Xw(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],i=0;break}return e*864e5+t*36e5+n*6e4+r*1e3+i}function Xw(e){return Number(BigInt(e)/10000n)}function Jw(e){return Po(e/864e5)}function Qw(e){return Po(e%864e5/36e5)}function ey(e){return Po(e%36e5/6e4)}function ty(e){return Po(e%6e4/1e3)}function ny(e){return Po(e%1e3)}function ry(e,t="c",n){if(["c","g","G"].indexOf(t)===-1)throw new Error("Custom formats are not supported");const r=Math.abs(Jw(e)),i=Math.abs(Qw(e)),o=Math.abs(ey(e)),s=Math.abs(ty(e)),a=Math.abs(ny(e));return`${e<0?"-":""}${r===0&&(t==="c"||t==="g")?"":t==="c"?r+".":r+":"}${t==="g"?i:je(i,2)}:${je(o,2)}:${je(s,2)}${a===0&&(t==="c"||t==="g")?"":t==="g"?"."+je(a,3):"."+s1(a,3,7)}`}function iy(e){const t=e.search("\\."),n=e.search("\\:");if(t===-1&&n===-1){const r=parseInt(e,0);if(isNaN(r))throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`);return Vc(r,0,0,0,0)}if(n>0){const r=/^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(e);if(r!=null&&r[4]!=null&&r[5]!=null){let i=0,o=0,s=0;const a=r[1]!=null&&r[1]==="-"?-1:1,l=+r[4],u=+r[5];if(r[3]!=null&&(i=+r[3]),r[7]!=null&&(s=+r[7]),r[8]!=null)switch(r[8].length){case 1:o=+r[8]*100;break;case 2:o=+r[8]*10;break;case 3:o=+r[8];break;case 4:o=+r[8]/10;break;case 5:o=+r[8]/100;break;case 6:o=+r[8]/1e3;break;case 7:o=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return a*Vc(i,l,u,s,o)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function oy(e,t){try{return t.contents=iy(e),!0}catch{return!1}}class z0{constructor(t,n){const r=new Ct(Se());this.comparer=n,r.contents=this,this.hashMap=new Map([]),this["init@9"]=1;const i=Oe(t);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const o=i["System.Collections.Generic.IEnumerator`1.get_Current"]();La(r.contents,o)}}finally{$e(i)}}get[Symbol.toStringTag](){return"HashSet"}toJSON(){const t=this;return Array.from(t)}"System.Collections.IEnumerable.GetEnumerator"(){return Oe(this)}GetEnumerator(){return Oe(ta(this.hashMap.values()))}[Symbol.iterator](){return Ai(Oe(this))}"System.Collections.Generic.ICollection`1.Add2B595"(t){La(this,t)}"System.Collections.Generic.ICollection`1.Clear"(){Hc(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(t){return Bc(this,t)}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){S0((i,o)=>{$t(t,n+i,o)},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return jc(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(t){return Uc(this,t)}get size(){return jc(this)|0}add(t){const n=this;return La(n,t),n}clear(){Hc(this)}delete(t){return Uc(this,t)}has(t){return Bc(this,t)}keys(){return Le(n=>n,this)}values(){return Le(n=>n,this)}entries(){return Le(n=>[n,n],this)}forEach(t,n){const r=this;Wn(i=>{t(i,i,r)},r)}}function yu(e,t){const n=e.comparer.GetHashCode(t)|0;let r,i=Se();return r=[wu(e.hashMap,n,new Ct(()=>i,o=>{i=o})),i],r[0]?[!0,n,r[1].findIndex(o=>e.comparer.Equals(t,o))]:[!1,n,-1]}function Hc(e){e.hashMap.clear()}function jc(e){let t=0,n=Oe(e.hashMap.values());try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=t+r.length|0}}finally{$e(n)}return t|0}function La(e,t){const n=yu(e,t);return n[0]?n[2]>-1?!1:(ar(e.hashMap,n[1]).push(t),!0):(e.hashMap.set(n[1],[t]),!0)}function Bc(e,t){const n=yu(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return!0;default:return!1}}function Uc(e,t){const n=yu(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return ar(e.hashMap,n[1]).splice(n[2],1),!0;default:return!1}}class q0{constructor(t){this.k=t}}function Yt(e){return new q0(e)}function ve(e){return e.k}class Pe extends q0{constructor(t,n,r,i){super(t),this.left=n,this.right=r,this.h=i|0}}function Zt(e,t,n,r){return new Pe(e,t,n,r)}function ze(e){return e.left}function We(e){return e.right}function oi(e){return e.h}function Y0(e,t){e:for(;;){const n=e,r=t;if(n!=null){const i=V(n);if(i instanceof Pe){const o=i;e=ze(o),t=Y0(We(o),r+1);continue e}else return r+1|0}else return r|0}}function sy(e){return Y0(e,0)}function un(e,t,n){let r,i,o;const s=e;if(s!=null){const d=V(s);o=d instanceof Pe?(r=d,oi(r)):1}else o=0;let a;const l=n;if(l!=null){const d=V(l);a=d instanceof Pe?(i=d,oi(i)):1}else a=0;const u=(o<a?a:o)|0;return u===0?Yt(t):Zt(t,e,n,u+1)}function Wc(e,t,n){let r,i,o,s,a,l,u,d,f;const p=e;if(p!=null){const b=V(p);f=b instanceof Pe?(r=b,oi(r)):1}else f=0;let m;const h=n;if(h!=null){const b=V(h);m=b instanceof Pe?(i=b,oi(i)):1}else m=0;if(m>f+2){const b=V(n);if(b instanceof Pe){const v=b;if(o=ze(v),(o!=null?(s=V(o),s instanceof Pe?(a=s,oi(a)):1):0)>f+1){const _=V(ze(v));if(_ instanceof Pe){const x=_;return un(un(e,t,ze(x)),ve(x),un(We(x),ve(v),We(v)))}else throw new Error("internal error: Set.rebalance")}else return un(un(e,t,ze(v)),ve(v),We(v))}else throw new Error("internal error: Set.rebalance")}else if(f>m+2){const b=V(e);if(b instanceof Pe){const v=b;if(l=We(v),(l!=null?(u=V(l),u instanceof Pe?(d=u,oi(d)):1):0)>m+1){const _=V(We(v));if(_ instanceof Pe){const x=_;return un(un(ze(v),ve(v),ze(x)),ve(x),un(We(x),t,n))}else throw new Error("internal error: Set.rebalance")}else return un(ze(v),ve(v),un(We(v),t,n))}else throw new Error("internal error: Set.rebalance")}else return un(e,t,n)}function _i(e,t,n){if(n!=null){const r=V(n),i=e.Compare(t,ve(r))|0;if(r instanceof Pe){const o=r;return i<0?Wc(_i(e,t,ze(o)),ve(o),We(o)):i===0?n:Wc(ze(o),ve(o),_i(e,t,We(o)))}else{const o=e.Compare(t,ve(r))|0;return o<0?Zt(t,void 0,n,2):o===0?n:Zt(t,n,void 0,2)}}else return Yt(t)}function Z0(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=V(o),a=r.Compare(i,ve(s))|0;if(s instanceof Pe){const l=s;if(a<0){e=r,t=i,n=ze(l);continue e}else{if(a===0)return!0;e=r,t=i,n=We(l);continue e}}else return a===0}else return!1}}function K0(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=V(r);if(i instanceof Pe){const o=i;K0(n,ze(o)),n(ve(o)),e=n,t=We(o);continue e}else n(ve(i))}break}}class ay extends _e{constructor(t,n){super(),this.stack=t,this.started=n}}function X0(e){e:for(;;){const t=e;if(Te(t))return at();{const n=le(t),r=Me(t);if(n!=null){const i=V(n);if(i instanceof Pe){const o=i;e=rt([ze(o),Yt(ve(o)),We(o)],r);continue e}else return t}else{e=r;continue e}}}}function Gc(e){return new ay(X0(ue(e)),!1)}function ly(){throw new Error("Enumeration not started")}function uy(){throw new Error("Enumeration already started")}function zc(e){if(e.started){const t=e.stack;if(Te(t))return uy();if(le(t)!=null){const n=V(le(t));return ve(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return ly()}function cy(e){if(e.started){const t=e.stack;if(Te(t))return!1;if(le(t)!=null){if(V(le(t))instanceof Pe)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=X0(Me(t)),!Te(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!Te(e.stack)}function qc(e){let t=Gc(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return zc(t)},"System.Collections.IEnumerator.get_Current"(){return zc(t)},"System.Collections.IEnumerator.MoveNext"(){return cy(t)},"System.Collections.IEnumerator.Reset"(){t=Gc(e)},Dispose(){}}}function dy(e,t,n){e:for(;;){const r=e,i=t,o=n;if(Te(i))return Te(o)?0:-1;if(Te(o))return 1;if(le(o)!=null)if(le(i)!=null){const s=V(le(i)),a=V(le(o));if(s instanceof Pe){const l=s;if(ze(l)==null)if(a instanceof Pe){const u=a;if(ze(u)==null){const d=r.Compare(ve(l),ve(u))|0;if(d!==0)return d|0;e=r,t=en(We(l),Me(i)),n=en(We(u),Me(o));continue e}else{let d,f,p,m,h;switch(Te(i)?Te(o)?d=2:le(o)!=null?(d=1,m=Me(o),h=V(le(o))):d=2:le(i)!=null?(d=0,f=Me(i),p=V(le(i))):Te(o)?d=2:le(o)!=null?(d=1,m=Me(o),h=V(le(o))):d=2,d){case 0:if(p instanceof Pe){const b=p;e=r,t=rt([ze(b),Zt(ve(b),void 0,We(b),0)],f),n=o;continue e}else{e=r,t=rt([void 0,Yt(ve(p))],f),n=o;continue e}case 1:if(h instanceof Pe){const b=h;e=r,t=i,n=rt([ze(b),Zt(ve(b),void 0,We(b),0)],m);continue e}else{e=r,t=i,n=rt([void 0,Yt(ve(h))],m);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const u=r.Compare(ve(l),ve(a))|0;if(u!==0)return u|0;e=r,t=en(We(l),Me(i)),n=en(void 0,Me(o));continue e}else{let u,d,f,p,m;switch(Te(i)?Te(o)?u=2:le(o)!=null?(u=1,p=Me(o),m=V(le(o))):u=2:le(i)!=null?(u=0,d=Me(i),f=V(le(i))):Te(o)?u=2:le(o)!=null?(u=1,p=Me(o),m=V(le(o))):u=2,u){case 0:if(f instanceof Pe){const h=f;e=r,t=rt([ze(h),Zt(ve(h),void 0,We(h),0)],d),n=o;continue e}else{e=r,t=rt([void 0,Yt(ve(f))],d),n=o;continue e}case 1:if(m instanceof Pe){const h=m;e=r,t=i,n=rt([ze(h),Zt(ve(h),void 0,We(h),0)],p);continue e}else{e=r,t=i,n=rt([void 0,Yt(ve(m))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof Pe){const l=a;if(ze(l)==null){const u=r.Compare(ve(s),ve(l))|0;if(u!==0)return u|0;e=r,t=en(void 0,Me(i)),n=en(We(l),Me(o));continue e}else{let u,d,f,p,m;switch(Te(i)?Te(o)?u=2:le(o)!=null?(u=1,p=Me(o),m=V(le(o))):u=2:le(i)!=null?(u=0,d=Me(i),f=V(le(i))):Te(o)?u=2:le(o)!=null?(u=1,p=Me(o),m=V(le(o))):u=2,u){case 0:if(f instanceof Pe){const h=f;e=r,t=rt([ze(h),Zt(ve(h),void 0,We(h),0)],d),n=o;continue e}else{e=r,t=rt([void 0,Yt(ve(f))],d),n=o;continue e}case 1:if(m instanceof Pe){const h=m;e=r,t=i,n=rt([ze(h),Zt(ve(h),void 0,We(h),0)],p);continue e}else{e=r,t=i,n=rt([void 0,Yt(ve(m))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(ve(s),ve(a))|0;if(l!==0)return l|0;e=r,t=Me(i),n=Me(o);continue e}}else{V(le(o));let s,a,l,u,d;switch(Te(i)?Te(o)?s=2:le(o)!=null?(s=1,u=Me(o),d=V(le(o))):s=2:le(i)!=null?(s=0,a=Me(i),l=V(le(i))):Te(o)?s=2:le(o)!=null?(s=1,u=Me(o),d=V(le(o))):s=2,s){case 0:if(l instanceof Pe){const f=l;e=r,t=rt([ze(f),Zt(ve(f),void 0,We(f),0)],a),n=o;continue e}else{e=r,t=rt([void 0,Yt(ve(l))],a),n=o;continue e}case 1:if(d instanceof Pe){const f=d;e=r,t=i,n=rt([ze(f),Zt(ve(f),void 0,We(f),0)],u);continue e}else{e=r,t=i,n=rt([void 0,Yt(ve(d))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(le(i)!=null){V(le(i));let s,a,l,u,d;switch(Te(i)?Te(o)?s=2:le(o)!=null?(s=1,u=Me(o),d=V(le(o))):s=2:le(i)!=null?(s=0,a=Me(i),l=V(le(i))):Te(o)?s=2:le(o)!=null?(s=1,u=Me(o),d=V(le(o))):s=2,s){case 0:if(l instanceof Pe){const f=l;e=r,t=rt([ze(f),Zt(ve(f),void 0,We(f),0)],a),n=o;continue e}else{e=r,t=rt([void 0,Yt(ve(l))],a),n=o;continue e}case 1:if(d instanceof Pe){const f=d;e=r,t=i,n=rt([ze(f),Zt(ve(f),void 0,We(f),0)],u);continue e}else{e=r,t=i,n=rt([void 0,Yt(ve(d))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=Me(i),n=Me(o);continue e}}}function Yc(e,t,n){return t==null?n==null?0:-1:n==null?1:dy(e,ue(t),ue(n))|0}function fy(e,t,n){let r=n;K0(i=>{$t(t,r,i),r=r+1|0},e)}function my(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){e=r,t=_i(r,o["System.Collections.Generic.IEnumerator`1.get_Current"](),i),n=o;continue e}else return i}}function hy(e,t){return Qs((n,r)=>_i(e,r,n),void 0,t)}function py(e,t){return Sn((n,r)=>_i(e,r,n),void 0,t)}function J0(e,t){if(rn(t))return hy(e,t);if(t instanceof bt)return py(e,t);{const n=Oe(t);try{return my(e,void 0,n)}finally{$e(n)}}}class vu{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return yy(this)|0}Equals(t){let n;const r=this;return t instanceof vu&&(n=t,Yc(ci(r),cn(r),cn(n))===0)}toString(){return"set ["+At("; ",Le(n=>nt(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return Yc(ci(n),cn(n),cn(t))|0}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return Z0(ci(n),t,cn(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){fy(cn(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Va(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Va(this)|0}GetEnumerator(){return qc(cn(this))}[Symbol.iterator](){return Ai(Oe(this))}"System.Collections.IEnumerable.GetEnumerator"(){return qc(cn(this))}get size(){return Va(this)|0}add(t){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(t){throw new Error("Set cannot be mutated")}has(t){return Q0(this,t)}keys(){return Le(n=>n,this)}values(){return Le(n=>n,this)}entries(){return Le(n=>[n,n],this)}forEach(t,n){const r=this;Wn(i=>{t(i,i,r)},r)}}function la(e,t){return new vu(e,t)}function ci(e){return e.comparer}function cn(e){return e.tree}function gy(e){return la(e,void 0)}function wy(e,t){return la(ci(e),_i(ci(e),t,cn(e)))}function Va(e){return sy(cn(e))}function Q0(e,t){return Z0(ci(e),t,cn(e))}function yy(e){let t=0;const n=Oe(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+on(r)+631|0}}finally{$e(n)}return Math.abs(t)|0}function yl(e,t){return Q0(t,e)}function vy(e,t){return wy(t,e)}function by(e){return gy(e)}function _y(e,t){return la(t,J0(t,e))}function xy(e,t){return la(t,J0(t,e))}function Ki(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
13
5
  `:" ")+(JSON.stringify(t,null,4)+"")}catch{return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?`
14
- `:" ")}}function c2(e,t){const n=t.tag===2?Ui(t.fields[0],t.fields[1],!0):t.tag===1?Ui(t.fields[0],t.fields[1],!1)+`
15
- Reason: `+t.fields[2]:t.tag===3?Ui(t.fields[0],t.fields[1],!0):t.tag===4?Ui(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
6
+ `:" ")}}function Cy(e,t){const n=t.tag===2?Ki(t.fields[0],t.fields[1],!0):t.tag===1?Ki(t.fields[0],t.fields[1],!1)+`
7
+ Reason: `+t.fields[2]:t.tag===3?Ki(t.fields[0],t.fields[1],!0):t.tag===4?Ki(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
16
8
  `+(JSON.stringify(t.fields[1],null,4)+""):t.tag===7?`The following errors were found:
17
9
 
18
- `+Et(`
10
+ `+At(`
19
11
 
20
- `,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:Ui(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function X0(e,t,n){const r=t(e,n);if(r.tag===1){const i=r.fields[0];return new M(1,[c2(i[0],i[1])])}else return new M(0,[r.fields[0]])}function ra(e,t){try{return X0("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new M(1,["Given an invalid JSON: "+n.message]);throw n}}function J0(e,t){return typeof t=="string"?new M(0,[t]):new M(1,[[e,new re(0,["a string",t])]])}function d2(e,t){if(typeof t=="string"){const n=t;return n.length===1?new M(0,[n[0]]):new M(1,[[e,new re(0,["a single character string",t])]])}else return new M(1,[[e,new re(0,["a char",t])]])}function f2(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[Uy(t,new xt(()=>r,i=>{r=i})),r],n[0]?new M(0,[n[1]]):new M(1,[[e,new re(0,["a guid",t])]])}else return new M(1,[[e,new re(0,["a guid",t])]])}function m2(e,t){return t==null?new M(0,[void 0]):new M(1,[[e,new re(0,["null",t])]])}const Zc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?-128<=i&&i<=127?new M(0,[(i+128&255)-128]):new M(1,[[n,new re(1,["a sbyte",i,"Value was either too large or too small for a sbyte"])]]):new M(1,[[n,new re(1,["a sbyte",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[Ni(r,511,!1,8,new xt(()=>o,s=>{o=s|0})),o],i[0]?new M(0,[i[1]]):new M(1,[[n,new re(0,["a sbyte",r])]])}else return new M(1,[[n,new re(0,["a sbyte",r])]])},Kc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=255?new M(0,[i&255]):new M(1,[[n,new re(1,["a byte",i,"Value was either too large or too small for a byte"])]]):new M(1,[[n,new re(1,["a byte",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[Ni(r,511,!0,8,new xt(()=>o,s=>{o=s})),o],i[0]?new M(0,[i[1]]):new M(1,[[n,new re(0,["a byte",r])]])}else return new M(1,[[n,new re(0,["a byte",r])]])},Xc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?-32768<=i&&i<=32767?new M(0,[(i+32768&65535)-32768]):new M(1,[[n,new re(1,["an int16",i,"Value was either too large or too small for an int16"])]]):new M(1,[[n,new re(1,["an int16",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[Ni(r,511,!1,16,new xt(()=>o,s=>{o=s|0})),o],i[0]?new M(0,[i[1]]):new M(1,[[n,new re(0,["an int16",r])]])}else return new M(1,[[n,new re(0,["an int16",r])]])},Jc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=65535?new M(0,[i&65535]):new M(1,[[n,new re(1,["an uint16",i,"Value was either too large or too small for an uint16"])]]):new M(1,[[n,new re(1,["an uint16",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[Ni(r,511,!0,16,new xt(()=>o,s=>{o=s})),o],i[0]?new M(0,[i[1]]):new M(1,[[n,new re(0,["an uint16",r])]])}else return new M(1,[[n,new re(0,["an uint16",r])]])},Qc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?-2147483648<=i&&i<=2147483647?new M(0,[~~i]):new M(1,[[n,new re(1,["an int",i,"Value was either too large or too small for an int"])]]):new M(1,[[n,new re(1,["an int",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[Ni(r,511,!1,32,new xt(()=>o,s=>{o=s|0})),o],i[0]?new M(0,[i[1]]):new M(1,[[n,new re(0,["an int",r])]])}else return new M(1,[[n,new re(0,["an int",r])]])},ed=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=4294967295?new M(0,[i>>>0]):new M(1,[[n,new re(1,["an uint32",i,"Value was either too large or too small for an uint32"])]]):new M(1,[[n,new re(1,["an uint32",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[Ni(r,511,!0,32,new xt(()=>o,s=>{o=s})),o],i[0]?new M(0,[i[1]]):new M(1,[[n,new re(0,["an uint32",r])]])}else return new M(1,[[n,new re(0,["an uint32",r])]])};function h2(e,t){return typeof t=="boolean"?new M(0,[t]):new M(1,[[e,new re(0,["a boolean",t])]])}function p2(e,t){return typeof t=="number"?new M(0,[t]):new M(1,[[e,new re(0,["a float",t])]])}function g2(e,t){return typeof t=="number"?new M(0,[t]):new M(1,[[e,new re(0,["a float32",t])]])}function w2(e,t){if(typeof t=="string"){let n,r=N1();return n=[$1(t,new xt(()=>r,i=>{r=i})),r],n[0]?new M(0,[M1(n[1])]):new M(1,[[e,new re(0,["a datetime",t])]])}else return new M(1,[[e,new re(0,["a datetime",t])]])}function y2(e,t){if(typeof t=="string"){let n,r=Jy();return n=[e2(t,new xt(()=>r,i=>{r=i})),r],n[0]?new M(0,[n[1]]):new M(1,[[e,new re(0,["a datetimeoffset",t])]])}else return new M(1,[[e,new re(0,["a datetime",t])]])}function v2(e,t){if(typeof t=="string"){let n,r=0;return n=[u2(t,new xt(()=>r,i=>{r=i})),r],n[0]?new M(0,[n[1]]):new M(1,[[e,new re(0,["a timespan",t])]])}else return new M(1,[[e,new re(0,["a timespan",t])]])}function td(e,t,n,r){let i;const o=n+".["+fn(e)+"]";if(Array.isArray(r)){const s=r;return e<s.length?t(o,he(e,s)):new M(1,[[o,new re(5,["a longer array. Need index `"+fn(e)+"` but there are only `"+(i=s.length,fn(i))+"` entries",r])]])}else return new M(1,[[o,new re(0,["an array",r])]])}function b2(e,t,n){return n==null?new M(0,[void 0]):Ln(ct,e(t,n))}function nd(e,t,n){if(Array.isArray(n)){let r=-1;return Ln(ru,Gs((i,o)=>{if(r=r+1|0,i.tag===0){const s=e(t+".["+fn(r)+"]",o);return s.tag===0?new M(0,[Jt(s.fields[0],i.fields[0])]):new M(1,[s.fields[0]])}else return i},new M(0,[ot()]),n))}else return new M(1,[[t,new re(0,["a list",n])]])}function _2(e,t,n){if(Array.isArray(n)){let r=-1;return Ln(Fg,Gs((i,o)=>{if(r=r+1|0,i.tag===0){const s=e(t+".["+fn(r)+"]",o);return s.tag===0?new M(0,[H([s.fields[0]],i.fields[0])]):new M(1,[s.fields[0]])}else return i},new M(0,[[]]),n))}else return new M(1,[[t,new re(0,["a seq",n])]])}function rd(e,t,n){if(Array.isArray(n)){let r=-1;const i=n;return Gs((o,s)=>{if(r=r+1|0,o.tag===0){const a=o.fields[0],l=e(t+".["+fn(r)+"]",s);return l.tag===0?($t(a,r,l.fields[0]),new M(0,[a])):new M(1,[l.fields[0]])}else return o},new M(0,[xo(new Array(i.length),0,i.length,null)]),i)}else return new M(1,[[t,new re(0,["an array",n])]])}function x2(e,t,n){return((i,o)=>{e:for(;;){const s=i,a=o;if($e(s))return new M(1,[[t,new re(7,[a])]]);{const l=X0(t,qe(ae(s)),n);if(l.tag===1){i=Me(s),o=So(a,le(l.fields[0]));continue e}else return new M(0,[l.fields[0]])}}})(e,ot())}function C2(e,t,n){return new M(0,[e])}function id(e,t,n,r){const i=t(n,r);return i.tag===0?e(i.fields[0],n,r):new M(1,[i.fields[0]])}function S2(e,t,n,r){const i=t(n,r);return i.tag===1?new M(1,[i.fields[0]]):new M(0,[e(i.fields[0])])}function E2(e,t){let n;const r=e;return n=i=>o=>td(0,r,i,o),i=>o=>id(al(s=>{let a;const l=t;return a=c=>f=>td(1,l,c,f),c=>f=>id((d,p,h)=>C2([s,d]),qe(a),c,f)}),qe(n),i,o)}function A2(e){return ai(e,{Compare:St})}function k2(e){return iw(e,{Compare:St})}function N2(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?a0((r,i)=>{const o=r[0];return i.tag===0?Ln(s=>Jt(s,i.fields[0]),r[1](t+"."+o)(n[o])):i},e,new M(0,[ot()])):new M(1,[[t,new re(0,["an object",n])]])}function T2(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?Eo((i,o)=>{if(i.tag===0){const s=e(n,o);if(s.tag===0){const a=t(n+"."+o,r[o]);return a.tag===0?new M(0,[Jt([s.fields[0],a.fields[0]],i.fields[0])]):new M(1,[a.fields[0]])}else return new M(1,[s.fields[0]])}else return i},new M(0,[ot()]),Object.keys(r)):new M(1,[[n,new re(0,["an object",r])]])}function Q0(e,t,n,r){let i;const o=t.length+e|0;if(o!==r.length)return new M(1,[[n,new re(6,[(i=r.length|0,Nr(Fn("Expected array of length %i but got %i"))(o)(i))])]]);{let s=new M(0,[ot()]);for(let a=e;a<=r.length-1;a++)if(s.tag===0){const l=s.fields[0],c=Nr(Fn("%s[%i]"))(n)(a),f=he(a-e,t),d=he(a,r);s=Ln(p=>Jt(p,l),f(c)(d))}return Ln(ru,s)}}function od(e,t,n,r,i,o){const s=Us(a=>ii(a)===r,Xf(n));if(s!=null){const a=s,l=Ke(c=>an(e,t,!1,c[1]),t0(a));return Ln(c=>q1(a,cr(c)),l.length===0&&o.length<=1?new M(0,[ot()]):Q0(1,l,i,o))}else return new M(1,[[i,new re(6,["Cannot find case "+r+" in "+Ye(n)])]])}function sd(e,t,n,r){let i;const o=new xt(Ae());let s;const a=Ye(r);s=a===""?e:z0(a,o,e);let l;if(e0(r)){const c=Ke(f=>[Z0(t,ii(f)),an(s,t,!1,f[1])],co(r));l=f=>d=>Ln(p=>Y1(r,cr(p)),N2(c,f,d))}else if(Qf(r))l=c=>f=>{if(typeof f=="string")return od(s,t,r,f,c,[]);if(Array.isArray(f)){const d=f;return wy(p=>od(s,t,r,p,c,d),J0(c+"[0]",he(0,d)))}else return new M(1,[[c,new re(0,["a string or array",f])]])};else if(n)l=c=>f=>new M(1,[[c,new re(2,["an extra coder for "+Ye(r),f])]]);else throw new Error((i=Ye(r),Nr(Fn(`Cannot generate auto decoder for %s. Please pass an extra decoder.
12
+ `,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:Ki(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function em(e,t,n){const r=t(e,n);if(r.tag===1){const i=r.fields[0];return new M(1,[Cy(i[0],i[1])])}else return new M(0,[r.fields[0]])}function ua(e,t){try{return em("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new M(1,["Given an invalid JSON: "+n.message]);throw n}}function tm(e,t){return typeof t=="string"?new M(0,[t]):new M(1,[[e,new re(0,["a string",t])]])}function Sy(e,t){if(typeof t=="string"){const n=t;return n.length===1?new M(0,[n[0]]):new M(1,[[e,new re(0,["a single character string",t])]])}else return new M(1,[[e,new re(0,["a char",t])]])}function Ey(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[Hw(t,new Ct(()=>r,i=>{r=i})),r],n[0]?new M(0,[n[1]]):new M(1,[[e,new re(0,["a guid",t])]])}else return new M(1,[[e,new re(0,["a guid",t])]])}function Ay(e,t){return t==null?new M(0,[void 0]):new M(1,[[e,new re(0,["null",t])]])}const Zc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?-128<=i&&i<=127?new M(0,[(i+128&255)-128]):new M(1,[[n,new re(1,["a sbyte",i,"Value was either too large or too small for a sbyte"])]]):new M(1,[[n,new re(1,["a sbyte",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[Ri(r,511,!1,8,new Ct(()=>o,s=>{o=s|0})),o],i[0]?new M(0,[i[1]]):new M(1,[[n,new re(0,["a sbyte",r])]])}else return new M(1,[[n,new re(0,["a sbyte",r])]])},Kc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=255?new M(0,[i&255]):new M(1,[[n,new re(1,["a byte",i,"Value was either too large or too small for a byte"])]]):new M(1,[[n,new re(1,["a byte",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[Ri(r,511,!0,8,new Ct(()=>o,s=>{o=s})),o],i[0]?new M(0,[i[1]]):new M(1,[[n,new re(0,["a byte",r])]])}else return new M(1,[[n,new re(0,["a byte",r])]])},Xc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?-32768<=i&&i<=32767?new M(0,[(i+32768&65535)-32768]):new M(1,[[n,new re(1,["an int16",i,"Value was either too large or too small for an int16"])]]):new M(1,[[n,new re(1,["an int16",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[Ri(r,511,!1,16,new Ct(()=>o,s=>{o=s|0})),o],i[0]?new M(0,[i[1]]):new M(1,[[n,new re(0,["an int16",r])]])}else return new M(1,[[n,new re(0,["an int16",r])]])},Jc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=65535?new M(0,[i&65535]):new M(1,[[n,new re(1,["an uint16",i,"Value was either too large or too small for an uint16"])]]):new M(1,[[n,new re(1,["an uint16",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[Ri(r,511,!0,16,new Ct(()=>o,s=>{o=s})),o],i[0]?new M(0,[i[1]]):new M(1,[[n,new re(0,["an uint16",r])]])}else return new M(1,[[n,new re(0,["an uint16",r])]])},Qc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?-2147483648<=i&&i<=2147483647?new M(0,[~~i]):new M(1,[[n,new re(1,["an int",i,"Value was either too large or too small for an int"])]]):new M(1,[[n,new re(1,["an int",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[Ri(r,511,!1,32,new Ct(()=>o,s=>{o=s|0})),o],i[0]?new M(0,[i[1]]):new M(1,[[n,new re(0,["an int",r])]])}else return new M(1,[[n,new re(0,["an int",r])]])},ed=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=4294967295?new M(0,[i>>>0]):new M(1,[[n,new re(1,["an uint32",i,"Value was either too large or too small for an uint32"])]]):new M(1,[[n,new re(1,["an uint32",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[Ri(r,511,!0,32,new Ct(()=>o,s=>{o=s})),o],i[0]?new M(0,[i[1]]):new M(1,[[n,new re(0,["an uint32",r])]])}else return new M(1,[[n,new re(0,["an uint32",r])]])};function ky(e,t){return typeof t=="boolean"?new M(0,[t]):new M(1,[[e,new re(0,["a boolean",t])]])}function Ny(e,t){return typeof t=="number"?new M(0,[t]):new M(1,[[e,new re(0,["a float",t])]])}function Ty(e,t){return typeof t=="number"?new M(0,[t]):new M(1,[[e,new re(0,["a float32",t])]])}function $y(e,t){if(typeof t=="string"){let n,r=F1();return n=[L1(t,new Ct(()=>r,i=>{r=i})),r],n[0]?new M(0,[V1(n[1])]):new M(1,[[e,new re(0,["a datetime",t])]])}else return new M(1,[[e,new re(0,["a datetime",t])]])}function My(e,t){if(typeof t=="string"){let n,r=Yw();return n=[Kw(t,new Ct(()=>r,i=>{r=i})),r],n[0]?new M(0,[n[1]]):new M(1,[[e,new re(0,["a datetimeoffset",t])]])}else return new M(1,[[e,new re(0,["a datetime",t])]])}function Iy(e,t){if(typeof t=="string"){let n,r=0;return n=[oy(t,new Ct(()=>r,i=>{r=i})),r],n[0]?new M(0,[n[1]]):new M(1,[[e,new re(0,["a timespan",t])]])}else return new M(1,[[e,new re(0,["a timespan",t])]])}function td(e,t,n,r){let i;const o=n+".["+pn(e)+"]";if(Array.isArray(r)){const s=r;return e<s.length?t(o,he(e,s)):new M(1,[[o,new re(5,["a longer array. Need index `"+pn(e)+"` but there are only `"+(i=s.length,pn(i))+"` entries",r])]])}else return new M(1,[[o,new re(0,["an array",r])]])}function Dy(e,t,n){return n==null?new M(0,[void 0]):Bn(ct,e(t,n))}function nd(e,t,n){if(Array.isArray(n)){let r=-1;return Bn(au,Qs((i,o)=>{if(r=r+1|0,i.tag===0){const s=e(t+".["+pn(r)+"]",o);return s.tag===0?new M(0,[en(s.fields[0],i.fields[0])]):new M(1,[s.fields[0]])}else return i},new M(0,[at()]),n))}else return new M(1,[[t,new re(0,["a list",n])]])}function Ry(e,t,n){if(Array.isArray(n)){let r=-1;return Bn(Gg,Qs((i,o)=>{if(r=r+1|0,i.tag===0){const s=e(t+".["+pn(r)+"]",o);return s.tag===0?new M(0,[H([s.fields[0]],i.fields[0])]):new M(1,[s.fields[0]])}else return i},new M(0,[[]]),n))}else return new M(1,[[t,new re(0,["a seq",n])]])}function rd(e,t,n){if(Array.isArray(n)){let r=-1;const i=n;return Qs((o,s)=>{if(r=r+1|0,o.tag===0){const a=o.fields[0],l=e(t+".["+pn(r)+"]",s);return l.tag===0?($t(a,r,l.fields[0]),new M(0,[a])):new M(1,[l.fields[0]])}else return o},new M(0,[$o(new Array(i.length),0,i.length,null)]),i)}else return new M(1,[[t,new re(0,["an array",n])]])}function Oy(e,t,n){return((i,o)=>{e:for(;;){const s=i,a=o;if(Te(s))return new M(1,[[t,new re(7,[a])]]);{const l=em(t,Ze(le(s)),n);if(l.tag===1){i=Me(s),o=Io(a,ue(l.fields[0]));continue e}else return new M(0,[l.fields[0]])}}})(e,at())}function Fy(e,t,n){return new M(0,[e])}function id(e,t,n,r){const i=t(n,r);return i.tag===0?e(i.fields[0],n,r):new M(1,[i.fields[0]])}function Py(e,t,n,r){const i=t(n,r);return i.tag===1?new M(1,[i.fields[0]]):new M(0,[e(i.fields[0])])}function Ly(e,t){let n;const r=e;return n=i=>o=>td(0,r,i,o),i=>o=>id(fl(s=>{let a;const l=t;return a=u=>d=>td(1,l,u,d),u=>d=>id((f,p,m)=>Fy([s,f]),Ze(a),u,d)}),Ze(n),i,o)}function Vy(e){return ui(e,{Compare:Et})}function Hy(e){return xy(e,{Compare:Et})}function jy(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?p0((r,i)=>{const o=r[0];return i.tag===0?Bn(s=>en(s,i.fields[0]),r[1](t+"."+o)(n[o])):i},e,new M(0,[at()])):new M(1,[[t,new re(0,["an object",n])]])}function By(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?Do((i,o)=>{if(i.tag===0){const s=e(n,o);if(s.tag===0){const a=t(n+"."+o,r[o]);return a.tag===0?new M(0,[en([s.fields[0],a.fields[0]],i.fields[0])]):new M(1,[a.fields[0]])}else return new M(1,[s.fields[0]])}else return i},new M(0,[at()]),Object.keys(r)):new M(1,[[n,new re(0,["an object",r])]])}function nm(e,t,n,r){let i;const o=t.length+e|0;if(o!==r.length)return new M(1,[[n,new re(6,[(i=r.length|0,Mr(Hn("Expected array of length %i but got %i"))(o)(i))])]]);{let s=new M(0,[at()]);for(let a=e;a<=r.length-1;a++)if(s.tag===0){const l=s.fields[0],u=Mr(Hn("%s[%i]"))(n)(a),d=he(a-e,t),f=he(a,r);s=Bn(p=>en(p,l),d(u)(f))}return Bn(au,s)}}function od(e,t,n,r,i,o){const s=Js(a=>li(a)===r,o0(n));if(s!=null){const a=s,l=et(u=>dn(e,t,!1,u[1]),u0(a));return Bn(u=>tg(a,mr(u)),l.length===0&&o.length<=1?new M(0,[at()]):nm(1,l,i,o))}else return new M(1,[[i,new re(6,["Cannot find case "+r+" in "+Ke(n)])]])}function sd(e,t,n,r){let i;const o=new Ct(Se());let s;const a=Ke(r);s=a===""?e:H0(a,o,e);let l;if(l0(r)){const u=et(d=>[W0(t,li(d)),dn(s,t,!1,d[1])],wo(r));l=d=>f=>Bn(p=>ng(r,mr(p)),jy(u,d,f))}else if(a0(r))l=u=>d=>{if(typeof d=="string")return od(s,t,r,d,u,[]);if(Array.isArray(d)){const f=d;return Rw(p=>od(s,t,r,p,u,f),tm(u+"[0]",he(0,f)))}else return new M(1,[[u,new re(0,["a string or array",d])]])};else if(n)l=u=>d=>new M(1,[[u,new re(2,["an extra coder for "+Ke(r),d])]]);else throw new Error((i=Ke(r),Mr(Hn(`Cannot generate auto decoder for %s. Please pass an extra decoder.
21
13
 
22
- Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(i)));return o.contents=l,l}function an(e,t,n,r){let i,o,s,a;const l=Ye(r),c=q0(l,e);if(c==null)if(qf(r)){const f=an(e,t,!1,_o(r));return d=>p=>rd(qe(f),d,p)}else if(tu(r))switch(Ye(Kf(r))){case"System.SByte":return d=>p=>{const h=r,m=d,v=p,b=Zc(m)(v);if(b.tag===1)return new M(1,[b.fields[0]]);{const x=b.fields[0]|0;return Gr(x,Wr(h),{Equals:(C,S)=>C===S,GetHashCode:ln})?new M(0,[Ur(h,x.toString())]):new M(1,[[m,new re(1,[Ye(h),v,"Unkown value provided for the enum"])]])}};case"System.Byte":return d=>p=>{const h=r,m=d,v=p,b=Kc(m)(v);if(b.tag===1)return new M(1,[b.fields[0]]);{const x=b.fields[0];return Gr(x,Wr(h),{Equals:(C,S)=>C===S,GetHashCode:ln})?new M(0,[Ur(h,x.toString())]):new M(1,[[m,new re(1,[Ye(h),v,"Unkown value provided for the enum"])]])}};case"System.Int16":return d=>p=>{const h=r,m=d,v=p,b=Xc(m)(v);if(b.tag===1)return new M(1,[b.fields[0]]);{const x=b.fields[0]|0;return Gr(x,Wr(h),{Equals:(C,S)=>C===S,GetHashCode:ln})?new M(0,[Ur(h,Qp(x))]):new M(1,[[m,new re(1,[Ye(h),v,"Unkown value provided for the enum"])]])}};case"System.UInt16":return d=>p=>{const h=r,m=d,v=p,b=Jc(m)(v);if(b.tag===1)return new M(1,[b.fields[0]]);{const x=b.fields[0];return Gr(x,Wr(h),{Equals:(C,S)=>C===S,GetHashCode:ln})?new M(0,[Ur(h,x.toString())]):new M(1,[[m,new re(1,[Ye(h),v,"Unkown value provided for the enum"])]])}};case"System.Int32":return d=>p=>{const h=r,m=d,v=p,b=Qc(m)(v);if(b.tag===1)return new M(1,[b.fields[0]]);{const x=b.fields[0]|0;return Gr(x,Wr(h),{Equals:(C,S)=>C===S,GetHashCode:ln})?new M(0,[Ur(h,fn(x))]):new M(1,[[m,new re(1,[Ye(h),v,"Unkown value provided for the enum"])]])}};case"System.UInt32":return d=>p=>{const h=r,m=d,v=p,b=ed(m)(v);if(b.tag===1)return new M(1,[b.fields[0]]);{const x=b.fields[0];return Gr(x,Wr(h),{Equals:(C,S)=>C===S,GetHashCode:ln})?new M(0,[Ur(h,x.toString())]):new M(1,[[m,new re(1,[Ye(h),v,"Unkown value provided for the enum"])]])}};default:{const d=Ye(r),p=jf(Fn(`Cannot generate auto decoder for %s.
14
+ Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(i)));return o.contents=l,l}function dn(e,t,n,r){let i,o,s,a;const l=Ke(r),u=j0(l,e);if(u==null)if(t0(r)){const d=dn(e,t,!1,To(r));return f=>p=>rd(Ze(d),f,p)}else if(ou(r))switch(Ke(i0(r))){case"System.SByte":return f=>p=>{const m=r,h=f,b=p,v=Zc(h)(b);if(v.tag===1)return new M(1,[v.fields[0]]);{const _=v.fields[0]|0;return Yr(_,zr(m),{Equals:(x,E)=>x===E,GetHashCode:fn})?new M(0,[qr(m,_.toString())]):new M(1,[[h,new re(1,[Ke(m),b,"Unkown value provided for the enum"])]])}};case"System.Byte":return f=>p=>{const m=r,h=f,b=p,v=Kc(h)(b);if(v.tag===1)return new M(1,[v.fields[0]]);{const _=v.fields[0];return Yr(_,zr(m),{Equals:(x,E)=>x===E,GetHashCode:fn})?new M(0,[qr(m,_.toString())]):new M(1,[[h,new re(1,[Ke(m),b,"Unkown value provided for the enum"])]])}};case"System.Int16":return f=>p=>{const m=r,h=f,b=p,v=Xc(h)(b);if(v.tag===1)return new M(1,[v.fields[0]]);{const _=v.fields[0]|0;return Yr(_,zr(m),{Equals:(x,E)=>x===E,GetHashCode:fn})?new M(0,[qr(m,a1(_))]):new M(1,[[h,new re(1,[Ke(m),b,"Unkown value provided for the enum"])]])}};case"System.UInt16":return f=>p=>{const m=r,h=f,b=p,v=Jc(h)(b);if(v.tag===1)return new M(1,[v.fields[0]]);{const _=v.fields[0];return Yr(_,zr(m),{Equals:(x,E)=>x===E,GetHashCode:fn})?new M(0,[qr(m,_.toString())]):new M(1,[[h,new re(1,[Ke(m),b,"Unkown value provided for the enum"])]])}};case"System.Int32":return f=>p=>{const m=r,h=f,b=p,v=Qc(h)(b);if(v.tag===1)return new M(1,[v.fields[0]]);{const _=v.fields[0]|0;return Yr(_,zr(m),{Equals:(x,E)=>x===E,GetHashCode:fn})?new M(0,[qr(m,pn(_))]):new M(1,[[h,new re(1,[Ke(m),b,"Unkown value provided for the enum"])]])}};case"System.UInt32":return f=>p=>{const m=r,h=f,b=p,v=ed(h)(b);if(v.tag===1)return new M(1,[v.fields[0]]);{const _=v.fields[0];return Yr(_,zr(m),{Equals:(x,E)=>x===E,GetHashCode:fn})?new M(0,[qr(m,_.toString())]):new M(1,[[h,new re(1,[Ke(m),b,"Unkown value provided for the enum"])]])}};default:{const f=Ke(r),p=Zf(Hn(`Cannot generate auto decoder for %s.
23
15
  Thoth.Json.Net only support the following enum types:
24
16
  - sbyte
25
17
  - byte
@@ -28,9 +20,9 @@ Thoth.Json.Net only support the following enum types:
28
20
  - int
29
21
  - uint32
30
22
  If you can't use one of these types, please pass an extra decoder.
31
- `))(d);return h=>p(h)}}else if(Yf(r))if(nu(r)){const f=Ke(d=>an(e,t,!1,d),Jf(r));return d=>p=>Array.isArray(p)?Ln(h=>Z1(cr(h)),Q0(0,f,d,p)):new M(1,[[d,new re(0,["an array",p])]])}else switch(Ye(Zf(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return i=an(e,t,!0,he(0,zt(r))),d=>p=>b2(qe(i),d,p);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return o=an(e,t,!1,he(0,zt(r))),d=>p=>nd(qe(o),d,p);case"System.Collections.Generic.IEnumerable`1[System.Object]":return s=an(e,t,!1,he(0,zt(r))),d=>p=>_2(qe(s),d,p);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const d=an(e,t,!1,he(0,zt(r))),p=an(e,t,!1,he(1,zt(r)));let h;const m=g([v=>b=>T2(qe(d),qe(p),v,b),(a=E2(qe(d),qe(p)),v=>b=>nd(qe(a),v,b))]);return h=v=>b=>x2(m,v,b),v=>b=>S2(A2,qe(h),v,b)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const d=an(e,t,!1,he(0,zt(r)));return p=>h=>{const m=rd(qe(d),p,h);return m.tag===0?new M(0,[k2(m.fields[0])]):new M(1,[m.fields[0]])}}default:return sd(e,t,n,r)}else switch(l){case"System.Boolean":return f=>d=>h2(f,d);case"Microsoft.FSharp.Core.Unit":return f=>d=>m2(f,d);case"System.String":return f=>d=>J0(f,d);case"System.Char":return f=>d=>d2(f,d);case"System.SByte":return Zc;case"System.Byte":return Kc;case"System.Int16":return Xc;case"System.UInt16":return Jc;case"System.Int32":return Qc;case"System.UInt32":return ed;case"System.Double":return f=>d=>p2(f,d);case"System.Single":return f=>d=>g2(f,d);case"System.DateTime":return f=>d=>w2(f,d);case"System.DateTimeOffset":return f=>d=>y2(f,d);case"System.TimeSpan":return f=>d=>v2(f,d);case"System.Guid":return f=>d=>f2(f,d);case"System.Object":return f=>d=>new M(0,[d]);default:return sd(e,t,n,r)}else{const f=c;return d=>p=>f.contents(d)(p)}}function $2(e){return yu({Compare:Vr})}function ia(e,t,n){const r=Ze(t,new ir(0,[]));return an($2(),r,!1,e)}function M2(e){return e}const em=Ae();function Uo(e){return Array.from(e)}function I2(e){return js(e,"O")}function D2(e){return a2(e)}function O2(){return Ae()}function R2(e){return js(e,"O")}function tm(e,t){return JSON.stringify(t,void 0,ct(e))}function F2(e){return t=>H1(bt(e,t),()=>em)}function ad(e,t,n,r){let i;const o=new xt(Ae());let s;const a=Ye(r);s=a===""?e:z0(a,o,e);let l;if(e0(r)){const c=Ke(f=>{const d=Z0(t,ii(f)),p=An(s,t,n,f[1]);return h=>m=>{const v=z1(h,f);return(!n||n&&v!=null)&&(m[d]=p(v)),m}},co(r));l=f=>Eo((d,p)=>p(f)(d),{},c)}else if(Qf(r))l=c=>{const f=G1(c,r),d=f[0],p=f[1],h=p.length|0;if(h===0)return ii(d);{const m=h|0,v=t0(d),b=xo(new Array(m+1),0,m+1,null);$t(b,0,ii(d));for(let x=1;x<=m;x++){const C=An(s,t,n,he(x-1,v)[1]);$t(b,x,C(he(x-1,p)))}return b}};else throw new Error((i=Ye(r),Nr(Fn(`Cannot generate auto encoder for %s. Please pass an extra encoder.
23
+ `))(f);return m=>p(m)}}else if(n0(r))if(su(r)){const d=et(f=>dn(e,t,!1,f),s0(r));return f=>p=>Array.isArray(p)?Bn(m=>rg(mr(m)),nm(0,d,f,p)):new M(1,[[f,new re(0,["an array",p])]])}else switch(Ke(r0(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return i=dn(e,t,!0,he(0,Kt(r))),f=>p=>Dy(Ze(i),f,p);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return o=dn(e,t,!1,he(0,Kt(r))),f=>p=>nd(Ze(o),f,p);case"System.Collections.Generic.IEnumerable`1[System.Object]":return s=dn(e,t,!1,he(0,Kt(r))),f=>p=>Ry(Ze(s),f,p);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const f=dn(e,t,!1,he(0,Kt(r))),p=dn(e,t,!1,he(1,Kt(r)));let m;const h=g([b=>v=>By(Ze(f),Ze(p),b,v),(a=Ly(Ze(f),Ze(p)),b=>v=>nd(Ze(a),b,v))]);return m=b=>v=>Oy(h,b,v),b=>v=>Py(Vy,Ze(m),b,v)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const f=dn(e,t,!1,he(0,Kt(r)));return p=>m=>{const h=rd(Ze(f),p,m);return h.tag===0?new M(0,[Hy(h.fields[0])]):new M(1,[h.fields[0]])}}default:return sd(e,t,n,r)}else switch(l){case"System.Boolean":return d=>f=>ky(d,f);case"Microsoft.FSharp.Core.Unit":return d=>f=>Ay(d,f);case"System.String":return d=>f=>tm(d,f);case"System.Char":return d=>f=>Sy(d,f);case"System.SByte":return Zc;case"System.Byte":return Kc;case"System.Int16":return Xc;case"System.UInt16":return Jc;case"System.Int32":return Qc;case"System.UInt32":return ed;case"System.Double":return d=>f=>Ny(d,f);case"System.Single":return d=>f=>Ty(d,f);case"System.DateTime":return d=>f=>$y(d,f);case"System.DateTimeOffset":return d=>f=>My(d,f);case"System.TimeSpan":return d=>f=>Iy(d,f);case"System.Guid":return d=>f=>Ey(d,f);case"System.Object":return d=>f=>new M(0,[f]);default:return sd(e,t,n,r)}else{const d=u;return f=>p=>d.contents(f)(p)}}function Uy(e){return pu({Compare:Br})}function ca(e,t,n){const r=Xe(t,new Un(0,[]));return dn(Uy(),r,!1,e)}class Wy extends _e{constructor(t,n){super(),this.Name=t,this.Email=n}}function bu(){return Rt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.UserDto",[],Wy,()=>[["Name",Ht],["Email",ai(Ht)]])}class rm extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Profiles","Tax"]}}function im(){return No("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.ImportStageDto",[],rm,()=>[[],[]])}class Gy extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Invite","RevokeInvite"]}}function zy(){return No("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.BenefitsRequestTypeDto",[],Gy,()=>[[],[]])}class qy extends _e{constructor(t,n,r,i){super(),this.User=t,this.ProfileCount=n|0,this.RequestType=r,this.RequestedAt=i}}function Yy(){return Rt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.BenefitsRequestInfoDto",[],qy,()=>[["User",bu()],["ProfileCount",Je],["RequestType",zy()],["RequestedAt",rr("System.DateTime")]])}class Zy extends _e{constructor(t,n,r,i,o,s){super(),this.Stage=t,this.InputRowCount=n|0,this.StartTime=r,this.SucceededRowCount=i,this.FailedRowCount=o,this.RemainingRowCount=s}}function Ky(){return Rt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.RunningStageDto",[],Zy,()=>[["Stage",im()],["InputRowCount",Je],["StartTime",rr("System.DateTime")],["SucceededRowCount",ai(Je)],["FailedRowCount",ai(Je)],["RemainingRowCount",ai(Je)]])}class Xy extends _e{constructor(t,n,r,i,o,s){super(),this.Stage=t,this.InputRowCount=n|0,this.SucceededRowCount=r|0,this.FailedRowCount=i|0,this.StartTime=o,this.StopTime=s}}function om(){return Rt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.CompletedStageDto",[],Xy,()=>[["Stage",im()],["InputRowCount",Je],["SucceededRowCount",Je],["FailedRowCount",Je],["StartTime",rr("System.DateTime")],["StopTime",rr("System.DateTime")]])}class Jy extends _e{constructor(t,n,r,i,o,s,a){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=i|0,this.CurrentStage=o,this.CompletedStages=s,this.StartTime=a}}function Qy(){return Rt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.ActiveImportDto",[],Jy,()=>[["ImportId",Je],["User",bu()],["Filename",Ht],["NumberOfRecords",Je],["CurrentStage",ai(Ky())],["CompletedStages",ir(om())],["StartTime",rr("System.DateTime")]])}class e2 extends _e{constructor(t,n,r,i,o,s,a,l){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=i|0,this.CompletedStages=o,this.BenefitsRequests=s,this.StartTime=a,this.StopTime=l}}function t2(){return Rt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.PastImportDto",[],e2,()=>[["ImportId",Je],["User",bu()],["Filename",Ht],["NumberOfRecords",Je],["CompletedStages",ir(om())],["BenefitsRequests",ir(Yy())],["StartTime",rr("System.DateTime")],["StopTime",rr("System.DateTime")]])}class n2 extends _e{constructor(t,n){super(),this.ActiveImport=t,this.ImportHistory=n}}function r2(){return Rt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.AccountImportsDto",[],n2,()=>[["ActiveImport",ai(Qy())],["ImportHistory",ir(t2())]])}function i2(e){return e}const sm=Se();function ts(e){return Array.from(e)}function o2(e){return Ks(e,"O")}function s2(e){return ry(e)}function a2(){return Se()}function l2(e){return Ks(e,"O")}function _u(e,t){return JSON.stringify(t,void 0,ct(e))}function u2(e){return t=>Y1(_t(e,t),()=>sm)}function ad(e,t,n,r){let i;const o=new Ct(Se());let s;const a=Ke(r);s=a===""?e:H0(a,o,e);let l;if(l0(r)){const u=et(d=>{const f=W0(t,li(d)),p=$n(s,t,n,d[1]);return m=>h=>{const b=eg(m,d);return(!n||n&&b!=null)&&(h[f]=p(b)),h}},wo(r));l=d=>Do((f,p)=>p(d)(f),{},u)}else if(a0(r))l=u=>{const d=Q1(u,r),f=d[0],p=d[1],m=p.length|0;if(m===0)return li(f);{const h=m|0,b=u0(f),v=$o(new Array(h+1),0,h+1,null);$t(v,0,li(f));for(let _=1;_<=h;_++){const x=$n(s,t,n,he(_-1,b)[1]);$t(v,_,x(he(_-1,p)))}return v}};else throw new Error((i=Ke(r),Mr(Hn(`Cannot generate auto encoder for %s. Please pass an extra encoder.
32
24
 
33
- Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(i)));return o.contents=l,l}function An(e,t,n,r){const i=Ye(r),o=q0(i,e);if(o==null)if(qf(r)){const s=An(e,t,n,_o(r));return a=>Uo(Pe(s,a))}else if(tu(r))switch(Ye(Kf(r))){case"System.SByte":return a=>a;case"System.Byte":return a=>a;case"System.Int16":return a=>a;case"System.UInt16":return a=>a;case"System.Int32":return a=>a;case"System.UInt32":return a=>a;default:{const a=Ye(r);return jf(Fn(`Cannot generate auto encoder for %s.
25
+ Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(i)));return o.contents=l,l}function $n(e,t,n,r){const i=Ke(r),o=j0(i,e);if(o==null)if(t0(r)){const s=$n(e,t,n,To(r));return a=>ts(Le(s,a))}else if(ou(r))switch(Ke(i0(r))){case"System.SByte":return a=>a;case"System.Byte":return a=>a;case"System.Int16":return a=>a;case"System.UInt16":return a=>a;case"System.Int32":return a=>a;case"System.UInt32":return a=>a;default:{const a=Ke(r);return Zf(Hn(`Cannot generate auto encoder for %s.
34
26
  Thoth.Json.Net only support the following enum types:
35
27
  - sbyte
36
28
  - byte
@@ -42,26 +34,34 @@ Thoth.Json.Net only support the following enum types:
42
34
  If you can't use one of these types, please pass an extra encoder.
43
35
 
44
36
  Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders
45
- `))(a)}}else if(Yf(r))if(nu(r)){const s=Ke(a=>An(e,t,n,a),Jf(r));return a=>Uo(Og((l,c)=>he(l,s)(c),a))}else{const s=Ye(Zf(r));if(s==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]"){const a=new Xp(()=>F2(An(e,t,n,he(0,zt(r)))));return l=>l==null?em:a.Value(l)}else if(s==="Microsoft.FSharp.Collections.FSharpList`1[System.Object]"||s==="Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"||s==="System.Collections.Generic.IEnumerable`1[System.Object]"){const a=An(e,t,n,he(0,zt(r)));return l=>Uo(Pe(a,l))}else if(s==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const a=he(0,zt(r)),l=An(e,t,n,he(1,zt(r)));if(Ye(a)==="System.String"||Ye(a)==="System.Guid")return c=>Eo((f,d)=>{const p=d;return f[p[0]]=l(p[1]),f},{},c);{let c;return c=An(e,t,n,a),d=>Uo(Pe(p=>{const h=p;return[c(h[0]),l(h[1])]},d))}}else return ad(e,t,n,r)}else switch(i){case"System.Boolean":return s=>s;case"Microsoft.FSharp.Core.Unit":return O2;case"System.String":return s=>s;case"System.Char":return s=>s;case"System.SByte":return s=>s;case"System.Byte":return s=>s;case"System.Int16":return s=>s;case"System.UInt16":return s=>s;case"System.Int32":return s=>s;case"System.UInt32":return s=>s;case"System.Double":return s=>s;case"System.Single":return s=>s;case"System.DateTime":return R2;case"System.DateTimeOffset":return I2;case"System.TimeSpan":return D2;case"System.Guid":return M2;case"System.Object":return s=>s;default:return ad(e,t,n,r)}else{const s=o;return a=>s.contents(a)}}function P2(e){return yu({Compare:Vr})}function nm(e,t,n,r){const i=Ze(t,new ir(0,[])),o=Ze(r,!0);return An(P2(),i,o,e)}class vu extends _e{constructor(t,n){super(),this.RowId=t|0,this.Data=n}}function rm(){return Rt("Import.Dto.Shared.WorkspaceApi.ImportRowDataDto",[],vu,()=>[["RowId",ht],["Data",Qn("Microsoft.FSharp.Collections.FSharpMap`2",[Dn,Dn])]])}let im=class extends _e{constructor(t,n){super(),this.IncludesEmploymentInfo=t,this.Data=n}};function L2(){return Rt("Import.Dto.Shared.WorkspaceApi.ValidateImportRequest.ImportDataDto",[],im,()=>[["IncludesEmploymentInfo",cl],["Data",er(rm())]])}class V2 extends _e{constructor(t,n,r){super(),this.Column=t,this.PropName=n,this.Message=r}}function H2(){return Rt("Import.Dto.Shared.WorkspaceApi.ValidateImportResponse.FieldErrorDto",[],V2,()=>[["Column",Dn],["PropName",Dn],["Message",Dn]])}class j2 extends _e{constructor(t,n){super(),this.RowId=t|0,this.FieldErrors=n}}function B2(){return Rt("Import.Dto.Shared.WorkspaceApi.ValidateImportResponse.RowValidationErrorDto",[],j2,()=>[["RowId",ht],["FieldErrors",er(H2())]])}class W2 extends _e{constructor(t,n){super(),this.Errors=t,this.DuplicateEmailCount=n|0}}function U2(){return Rt("Import.Dto.Shared.WorkspaceApi.ValidateImportResponse.ValidationResultDto",[],W2,()=>[["Errors",er(B2())],["DuplicateEmailCount",ht]])}class om extends _e{constructor(t,n,r){super(),this.IncludesEmploymentInfo=t,this.InviteNow=n,this.Data=r}}function G2(){return Rt("Import.Dto.Shared.WorkspaceApi.StartImportRequest.ImportDataDto",[],om,()=>[["IncludesEmploymentInfo",cl],["InviteNow",cl],["Data",er(rm())]])}class z2 extends _e{constructor(t){super(),this.ImportId=t|0}}function q2(){return Rt("Import.Dto.Shared.WorkspaceApi.StartImportResponse.ImportCreatedDto",[],z2,()=>[["ImportId",ht]])}class Y2 extends _e{constructor(t,n){super(),this.DuplicateEmailCount=t|0,this.OtherFailuresCount=n|0}}function Z2(){return Rt("Import.Dto.Shared.WorkspaceApi.GetImportStatusResponse.FailuresInfoDto",[],Y2,()=>[["DuplicateEmailCount",ht],["OtherFailuresCount",ht]])}class K2 extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["AllRowsImported","SingleDuplicateEmail","ManyFailures"]}}function X2(){return Ws("Import.Dto.Shared.WorkspaceApi.GetImportStatusResponse.DoneStatsDto",[],K2,()=>[[["count",ht]],[["rowId",ht]],[["Item",Z2()]]])}class J2 extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["InProgress","Done"]}}function Q2(){return Ws("Import.Dto.Shared.WorkspaceApi.GetImportStatusResponse.ImportStatusDto",[],J2,()=>[[],[["Item",X2()]]])}function oa(e){return`${e}/import/workspace/v1.0/accounts/current`}function sa(e){return Q.Delay(()=>{let t;const n=Uc(e);return t=Q.Bind(n,r=>Q.Return(new M(0,[r]))),Q.Bind(t,r=>{const i=r;if(i.tag===1)return Q.Return(new M(1,[i.fields[0]]));{const o=i.fields[0];if(o.statusCode===429||o.statusCode>=500){const s=Uc(e);return Q.Bind(s,a=>Q.Return(new M(0,[a])))}else return Q.Return(new M(0,[o]))}})})}function ev(e,t){return Q.Delay(()=>{const n=sa(na(new Ao(0,[]),ta(oa(e)+"/imports")));return Q.Bind(n,r=>{const i=r;if(i.tag===1)return Q.Return(new M(1,[i.fields[0]]));{const o=i.fields[0];switch(o.statusCode|0){case 200:{let a;const l=ra(qe(ia(py(),new ir(1,[]))),o.responseText);return a=l.tag===1?new M(1,[l.fields[0]]):new M(0,[l.fields[0]]),Q.Return(a)}case 404:return Q.Return(new M(0,[void 0]));default:return Q.Return(new M(1,["Failed to get account imports"]))}}})})}function tv(e,t){return Q.Delay(()=>{let n;const r=sa((n=na(new Ao(1,[]),ta(oa(e)+"/import/validate")),Y0(new gu(1,[tm(0,nm(L2(),new ir(1,[]),void 0,void 0)(t))]),n)));return Q.Bind(r,i=>{const o=i;if(o.tag===1)return Q.Return(new M(1,[o.fields[0]]));{const s=o.fields[0];if(s.statusCode===200){const a=ra(qe(ia(U2(),new ir(1,[]))),s.responseText);return Q.Return(a)}else return Q.Return(new M(1,[`Failed to validate: ${s.responseText}`]))}})})}function nv(e,t){return Q.Delay(()=>{let n;const r=sa((n=na(new Ao(1,[]),ta(oa(e)+"/import/start")),Y0(new gu(1,[tm(0,nm(G2(),new ir(1,[]),void 0,void 0)(t))]),n)));return Q.Bind(r,i=>{const o=i;if(o.tag===1)return Q.Return(new M(1,[o.fields[0]]));{const s=o.fields[0];if(s.statusCode===201){const a=ra(qe(ia(q2(),new ir(1,[]))),s.responseText);return Q.Return(a)}else return Q.Return(new M(1,[`Failed to start import: ${s.responseText}`]))}})})}function rv(e,t){return Q.Delay(()=>{const n=sa(na(new Ao(0,[]),ta(oa(e)+`/import/${t}/status`)));return Q.Bind(n,r=>{const i=r;if(i.tag===1)return Q.Return(new M(1,[i.fields[0]]));{const o=i.fields[0];if(o.statusCode===200){const s=ra(qe(ia(Q2(),new ir(1,[]))),o.responseText);return Q.Return(s)}else return Q.Return(new M(1,[`Failed to get import status: ${o.responseText}`]))}})})}class iv extends _e{constructor(t){super(),this.UserActivities=t}}class ld extends _e{constructor(t,n,r){super(),this.Timestamp=t,this.User=n,this.Activity=r}}function ov(e,t){const n=t.toLocaleLowerCase();return e.Name.toLocaleLowerCase().indexOf(n)>=0?!0:Ze(bt(r=>r.toLocaleLowerCase().indexOf(n)>=0,e.Email),!1)}function sv(e){return So(g(Ei(bt(t=>new ld(t.StartTime,t.User,`Processing ${t.NumberOfRecords} records`),e.ActiveImport))),nr(t=>new ld(t.StartTime,t.User,Ze(bt(n=>`Added ${n.SucceededRowCount} users via Csv`,u0(n=>J(n.Stage,new I0(0,[])),t.CompletedStages)),`Processed ${t.NumberOfRecords} records`)),e.ImportHistory))}function av(e){return new iv(Ze(bt(sv,e),ot()))}class ud extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Error","TableData"]}}class lv extends _e{constructor(t,n){super(),this.Data=t,this.IsFiltered=n}}class To extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["PaginatedList"]}}class uv extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["SortedList"]}}class cv extends _e{constructor(t,n){super(),this.SortInfo=t,this.SortDirectionToggledHandler=n}}class sm extends _e{constructor(t,n){super(),this.Column=t,this.Direction=n}}class dv extends W{constructor(){super(),this.tag=0,this.fields=[]}cases(){return["Time"]}}class Cs extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NonEmptyPagingInfo","EmptyPagingInfo"]}}class fv extends _e{constructor(t,n,r,i,o){super(),this.CurrentPage=t|0,this.FirstRowIndex=n|0,this.LastRowIndex=r|0,this.TotalRecordsNumber=i|0,this.PageSize=o|0}}function mv(e){return e.tag===1?am(e.fields[0].Data):cm()}function hv(e){return e.tag===1?Ti(e.fields[0].Data):new Cs(1,[])}function pv(e){const t=bu(cm(),e);return new To([fm(un(e),20),t])}function $o(e){return e.fields[0][1]}function am(e){return um($o(e))}function gv(e){return _u($o(e))}function Ti(e){return e.fields[0][0]}function wv(e){const t=Ti(e);if(t.tag===0){const n=t.fields[0],r=d0(n.FirstRowIndex,gv(e));return f0(Tv(n),r)}else return ot()}function lm(e,t){const n=bu(am(e),t);return new To([Av(Ti(e),un(_u(n))),n])}function yv(e){return new To([Ti(e),_v($o(e))])}function vv(e){return new To([Ev(Ti(e)),$o(e)])}function bv(e){return new To([Sv(Ti(e)),$o(e)])}function bu(e,t){return new uv([e,vy(e.Direction,n=>n.Timestamp,t)])}function _u(e){return e.fields[0][1]}function um(e){return e.fields[0][0]}function _v(e){return bu(xv(um(e)),_u(e))}function cm(){return new sm(new dv,new ml(0,[]))}function xv(e){return new sm(e.Column,yy(e.Direction))}function dm(e,t){return~~(e/t)+(e%t===0?0:1)}function aa(e,t,n){if(e<=0)return new Cs(1,[]);{const r=bc(n,dm(e,t))|0,i=(r-1)*t|0;return new Cs(0,[new fv(r,i,bc(i+t-1,e-1),e,t)])}}function fm(e,t){return aa(e,t,1)}function Cv(e){if(e.tag===0){const t=e.fields[0];return dm(t.TotalRecordsNumber,t.PageSize)|0}else return 0}function mm(e){return e.tag===0?e.fields[0].CurrentPage<Cv(e):!1}function hm(e){return e.tag===0?e.fields[0].CurrentPage>1:!1}function Sv(e){const t=hm(e);let n;switch(t&&e.tag===0?n=0:n=1,n){case 0:{const r=e.fields[0];return aa(r.TotalRecordsNumber,r.PageSize,r.CurrentPage-1)}default:return e}}function Ev(e){const t=mm(e);let n;switch(t&&e.tag===0?n=0:n=1,n){case 0:{const r=e.fields[0];return aa(r.TotalRecordsNumber,r.PageSize,r.CurrentPage+1)}default:return e}}function Av(e,t){return t<=0?new Cs(1,[]):e.tag===0?aa(t,20,e.fields[0].CurrentPage):fm(t,20)}function kv(e){return e.FirstRowIndex+1}function Nv(e){return e.LastRowIndex+1}function Tv(e){return e.LastRowIndex-e.FirstRowIndex+1}let or=class extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["LoadingError","ValidState"]}};class $i extends _e{constructor(t,n,r){super(),this.ImportHistory=t,this.View=n,this.PaginatedList=r}}class xu extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Default","Filtered"]}}function $v(e){if(e.tag===1)return pm(e.fields[0])}function Mv(e){return e.tag===0}function Iv(e){return e.tag===1?new ud(1,[Vv(e.fields[0])]):new ud(0,[])}function pm(e){const t=e.View;if(t.tag===1)return t.fields[0]}function Dv(e){return pm(e)!=null}function Ov(e,t){return new or(1,[new $i(e.ImportHistory,new xu(1,[t]),lm(e.PaginatedList,$n(n=>ov(n.User,t),e.ImportHistory.UserActivities)))])}function Rv(e){return new or(1,[new $i(e.ImportHistory,new xu(0,[]),lm(e.PaginatedList,e.ImportHistory.UserActivities))])}function Fv(e){return new or(1,[new $i(e.ImportHistory,e.View,yv(e.PaginatedList))])}function Pv(e){return new or(1,[new $i(e.ImportHistory,e.View,vv(e.PaginatedList))])}function Lv(e){return new or(1,[new $i(e.ImportHistory,e.View,bv(e.PaginatedList))])}function Vv(e){return new lv(e.PaginatedList,Dv(e))}let li=class extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ApplyFilter","ClearFilter","ToggleSortDirection","NextPage","PrevPage"]}};function Hv(e){let t;return[e.tag===1?new or(0,[]):(t=e.fields[0],new or(1,[new $i(t,new xu(0,[]),pv(t.UserActivities))])),X()]}function gm(e,t){return e.tag===1?t(e.fields[0]):[new or(0,[]),X()]}function jv(e,t){return gm(e,n=>[t(n),X()])}function Bv(e,t){const n=r=>jv(t,r);switch(e.tag){case 1:return n(Rv);case 2:return n(Fv);case 3:return n(Pv);case 4:return n(Lv);default:{const r=e.fields[0];return gm(t,i=>Ql(r)?[t,le(o=>{o(new li(1,[]))})]:[Ov(i,r),X()])}}}function Wv(e,t){let n,r;return u("svg",w(g([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",24],["xmlns","http://www.w3.org/2000/svg"],(n=le(u("path",w(g([(r="M6.77835 19.8844C6.74702 19.9444 6.7414 20.0146 6.76278 20.0789C6.78416 20.1432 6.83071 20.196 6.89177 20.2254L7.82464 20.6734C7.9462 20.7317 8.09214 20.6832 8.15452 20.5636L16.5023 4.56364C16.5337 4.50358 16.5393 4.43338 16.5179 4.3691C16.4965 4.30482 16.45 4.25197 16.3889 4.22264L15.4561 3.77464C15.3345 3.71627 15.1886 3.76481 15.1262 3.88436L6.77835 19.8844Z",["d",r]),["fill","#D1D5DB"],["stroke","#D1D5DB"],["strokeWidth",.5],["strokeLinejoin","round"]])))),["children",y.Children.toArray(Array.from(n))])])))}function Uv(){let e,t,n;return u("div",w(g([["className","self-stretch px-12 pt-8 pb-4 bg-white justify-start items-end gap-6 inline-flex"],(e=[u("div",w(g([["className","grow shrink basis-0 h-[34px] rounded-md justify-start items-center gap-1 flex"],(t=[u("div",{className:"text-gray-900 text-2xl font-bold font-['BR Sonoma'] leading-7",children:"Users"}),u("div",w(g([["className","w-6 h-6 text-gray-900 relative overflow-hidden"],(n=[Wv(24,24)],["children",y.Children.toArray(Array.from(n))])]))),u("div",{className:"text-gray-900 text-2xl font-bold font-['BR Sonoma'] leading-7",children:"Past activities"})],["children",y.Children.toArray(Array.from(t))])])))],["children",y.Children.toArray(Array.from(e))])])))}function Gv(e,t){let n,r;return u("svg",w(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=le(u("path",w(g([["clipRule","evenodd"],(r="M8 4C5.79086 4 4 5.79086 4 8C4 10.2091 5.79086 12 8 12C10.2091 12 12 10.2091 12 8C12 5.79086 10.2091 4 8 4ZM2 8C2 4.68629 4.68629 2 8 2C11.3137 2 14 4.68629 14 8C14 9.29583 13.5892 10.4957 12.8907 11.4765L17.7071 16.2929C18.0976 16.6834 18.0976 17.3166 17.7071 17.7071C17.3166 18.0976 16.6834 18.0976 16.2929 17.7071L11.4765 12.8907C10.4957 13.5892 9.29583 14 8 14C4.68629 14 2 11.3137 2 8Z",["d",r]),["fill","#9CA3AF"]])))),["children",y.Children.toArray(Array.from(n))])])))}function Ss(e,t){let n,r;return u("svg",w(g([["width",e],["height",t],["viewBox","0 0 "+e+" "+t],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(n=le(u("path",w(g([(r="M9.70757 0.292433C9.52026 0.105188 9.26626 0 9.00142 0C8.73658 0 8.48257 0.105188 8.29527 0.292433L5.00624 3.58146L1.71721 0.292433C1.52884 0.110495 1.27654 0.00982222 1.01466 0.0120979C0.752781 0.0143736 0.502271 0.119416 0.317087 0.3046C0.131902 0.489785 0.0268602 0.740295 0.0245845 1.00218C0.0223088 1.26406 0.122982 1.51635 0.30492 1.70473L3.59395 4.99376L0.30492 8.28279C0.209525 8.37492 0.133435 8.48513 0.0810888 8.60699C0.028743 8.72885 0.00119014 8.85991 3.77112e-05 8.99253C-0.00111471 9.12515 0.0241565 9.25667 0.0743768 9.37942C0.124597 9.50216 0.19876 9.61368 0.29254 9.70746C0.386319 9.80124 0.497837 9.8754 0.620585 9.92562C0.743333 9.97584 0.874854 10.0011 1.00747 9.99996C1.14009 9.99881 1.27115 9.97126 1.39301 9.91891C1.51487 9.86657 1.62508 9.79047 1.71721 9.69508L5.00624 6.40605L8.29527 9.69508C8.48365 9.87702 8.73594 9.97769 8.99782 9.97542C9.25971 9.97314 9.51022 9.8681 9.6954 9.68291C9.88058 9.49773 9.98563 9.24722 9.9879 8.98534C9.99018 8.72346 9.88951 8.47116 9.70757 8.28279L6.41854 4.99376L9.70757 1.70473C9.89481 1.51743 10 1.26343 10 0.998581C10 0.733736 9.89481 0.479735 9.70757 0.292433Z",["d",r]),["fill","currentColor"]])))),["children",y.Children.toArray(Array.from(n))])])))}class cd extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateFilter","ClearFilter"]}}function zv(e){let t,n;const r=Ze(e.Value,"");return u("div",w(g([["className","self-stretch justify-start items-start gap-4 inline-flex"],(t=[u("div",w(g([["className",Et(" ",["relative w-96 overflow-hidden focus:outline-none focus:border-blue-600"])],(n=Y(T(()=>{let i;return H(A(u("div",w(g([["className","pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3"],(i=[Gv(20,20)],["children",y.Children.toArray(Array.from(i))])])))),T(()=>{let o;return H(A(u("input",w(g([(o="rounded-md border-0 py-[0.5625rem] px-10 ring-1 ring-inset ring-gray-300 placeholder:text-gray-500 text-gray-900 focus:ring-2 focus:ring-inset focus:ring-primary-600 bg-white text-sm w-full",["className",o]),["placeholder","Search actors..."],["autoComplete","off"],["onChange",s=>{e.ActionHandler(new cd(0,[s.target.value]))}],["value",r],["disabled",e.Disabled]])))),T(()=>{let s;return Ql(r)?A(Ae()):A(u("div",w(g([["onClick",a=>{e.ActionHandler(new cd(1,[]))}],["className","absolute inset-y-0 right-0 flex items-center pr-3 cursor-pointer text-gray-600"],(s=[Ss(10,10)],["children",y.Children.toArray(Array.from(s))])]))))}))}))})),["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function qv(e){let t,n;const r=e.height,i=e.width;return u("svg",w(g([["fill","none"],["height",r],["width",i],["viewBox","0 0 "+i+" "+r],["xmlns","http://www.w3.org/2000/svg"],(t=le(u("path",w(g([(n="M4.98771 6.01229C4.72252 6.01223 4.4682 5.90684 4.28071 5.71929L0.280712 1.71929C0.0985537 1.53069 -0.00224062 1.27808 3.78026e-05 1.01589C0.00231622 0.75369 0.107485 0.502878 0.292893 0.31747C0.478301 0.132062 0.729114 0.0268924 0.99131 0.0246139C1.25351 0.0223355 1.50611 0.12313 1.69471 0.305288L4.98771 3.59829L8.28071 0.305288C8.37296 0.209778 8.4833 0.133596 8.60531 0.0811869C8.72731 0.0287779 8.85853 0.00119157 8.99131 3.77571e-05C9.12409 -0.00111606 9.25577 0.0241854 9.37867 0.0744663C9.50156 0.124747 9.61321 0.199 9.70711 0.292893C9.801 0.386786 9.87525 0.498438 9.92553 0.621334C9.97581 0.744231 10.0011 0.87591 9.99996 1.00869C9.99881 1.14147 9.97122 1.27269 9.91881 1.39469C9.8664 1.5167 9.79022 1.62704 9.69471 1.71929L5.69471 5.71929C5.50722 5.90684 5.25291 6.01223 4.98771 6.01229Z",["d",n]),["fill","#111827"]])))),["children",y.Children.toArray(Array.from(t))])])))}function Yv(e){let t;const n=e.sortDirectionChangeHandler,r=e.sortDirection;return u("div",w(g([["className",Et(" ",Y(T(()=>H(A("w-5 h-5 bg-gray-200 rounded overflow-hidden flex flex-col justify-center items-center"),T(()=>r.tag===1?A("rotate-180"):A(""))))))],["onClick",i=>{n(void 0)}],(t=[u(qv,{width:10,height:7})],["children",y.Children.toArray(Array.from(t))])])))}function Zv(e){const t=e.toggleSortDirection,n=e.props;return u(Yv,{sortDirection:n.Direction,sortDirectionChangeHandler:t})}function Kv(e){let t,n,r,i;const o=u(Zv,{props:e.SortInfo,toggleSortDirection:e.SortDirectionToggledHandler});return u("div",w(g([["className","flex-none grid grid-cols-7"],(t=[u("div",w(g([["className","col-span-1 px-6 py-3.5 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 flex"],(n=[u("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Time"}),o],["children",y.Children.toArray(Array.from(n))])]))),u("div",w(g([["className","col-span-2 px-6 py-3.5 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 flex"],(r=[u("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Actor"})],["children",y.Children.toArray(Array.from(r))])]))),u("div",w(g([["className","col-span-4 px-6 py-3.5 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 flex"],(i=[u("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Activity"})],["children",y.Children.toArray(Array.from(i))])])))],["children",y.Children.toArray(Array.from(t))])])))}function Es(e){"@babel/helpers - typeof";return Es=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Es(e)}function Ir(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Ft(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function _n(e){Ft(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Es(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Xv(e,t){Ft(2,arguments);var n=_n(e).getTime(),r=Ir(t);return new Date(n+r)}var Jv={};function la(){return Jv}function Qv(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function eb(e){return Ft(1,arguments),e instanceof Date||Es(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function tb(e){if(Ft(1,arguments),!eb(e)&&typeof e!="number")return!1;var t=_n(e);return!isNaN(Number(t))}function nb(e,t){Ft(2,arguments);var n=Ir(t);return Xv(e,-n)}var rb=864e5;function ib(e){Ft(1,arguments);var t=_n(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),i=n-r;return Math.floor(i/rb)+1}function As(e){Ft(1,arguments);var t=1,n=_n(e),r=n.getUTCDay(),i=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function wm(e){Ft(1,arguments);var t=_n(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=As(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var s=As(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function ob(e){Ft(1,arguments);var t=wm(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=As(n);return r}var sb=6048e5;function ab(e){Ft(1,arguments);var t=_n(e),n=As(t).getTime()-ob(t).getTime();return Math.round(n/sb)+1}function ks(e,t){var n,r,i,o,s,a,l,c;Ft(1,arguments);var f=la(),d=Ir((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=_n(e),h=p.getUTCDay(),m=(h<d?7:0)+h-d;return p.setUTCDate(p.getUTCDate()-m),p.setUTCHours(0,0,0,0),p}function ym(e,t){var n,r,i,o,s,a,l,c;Ft(1,arguments);var f=_n(e),d=f.getUTCFullYear(),p=la(),h=Ir((n=(r=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:p.firstWeekContainsDate)!==null&&r!==void 0?r:(l=p.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(d+1,0,h),m.setUTCHours(0,0,0,0);var v=ks(m,t),b=new Date(0);b.setUTCFullYear(d,0,h),b.setUTCHours(0,0,0,0);var x=ks(b,t);return f.getTime()>=v.getTime()?d+1:f.getTime()>=x.getTime()?d:d-1}function lb(e,t){var n,r,i,o,s,a,l,c;Ft(1,arguments);var f=la(),d=Ir((n=(r=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:f.firstWeekContainsDate)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1),p=ym(e,t),h=new Date(0);h.setUTCFullYear(p,0,d),h.setUTCHours(0,0,0,0);var m=ks(h,t);return m}var ub=6048e5;function cb(e,t){Ft(1,arguments);var n=_n(e),r=ks(n,t).getTime()-lb(n,t).getTime();return Math.round(r/ub)+1}function He(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var Un={y:function(t,n){var r=t.getUTCFullYear(),i=r>0?r:1-r;return He(n==="yy"?i%100:i,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):He(r+1,2)},d:function(t,n){return He(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return He(t.getUTCHours()%12||12,n.length)},H:function(t,n){return He(t.getUTCHours(),n.length)},m:function(t,n){return He(t.getUTCMinutes(),n.length)},s:function(t,n){return He(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,i=t.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,r-3));return He(o,n.length)}},zr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},db={G:function(t,n,r){var i=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var i=t.getUTCFullYear(),o=i>0?i:1-i;return r.ordinalNumber(o,{unit:"year"})}return Un.y(t,n)},Y:function(t,n,r,i){var o=ym(t,i),s=o>0?o:1-o;if(n==="YY"){var a=s%100;return He(a,2)}return n==="Yo"?r.ordinalNumber(s,{unit:"year"}):He(s,n.length)},R:function(t,n){var r=wm(t);return He(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return He(r,n.length)},Q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return He(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return He(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,n,r){var i=t.getUTCMonth();switch(n){case"M":case"MM":return Un.M(t,n);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(t,n,r){var i=t.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return He(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(t,n,r,i){var o=cb(t,i);return n==="wo"?r.ordinalNumber(o,{unit:"week"}):He(o,n.length)},I:function(t,n,r){var i=ab(t);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):He(i,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):Un.d(t,n)},D:function(t,n,r){var i=ib(t);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):He(i,n.length)},E:function(t,n,r){var i=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(t,n,r,i){var o=t.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(s);case"ee":return He(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(t,n,r,i){var o=t.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(s);case"cc":return He(s,n.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(t,n,r){var i=t.getUTCDay(),o=i===0?7:i;switch(n){case"i":return String(o);case"ii":return He(o,n.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(t,n,r){var i=t.getUTCHours(),o=i/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,n,r){var i=t.getUTCHours(),o;switch(i===12?o=zr.noon:i===0?o=zr.midnight:o=i/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,n,r){var i=t.getUTCHours(),o;switch(i>=17?o=zr.evening:i>=12?o=zr.afternoon:i>=4?o=zr.morning:o=zr.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var i=t.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return Un.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Un.H(t,n)},K:function(t,n,r){var i=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):He(i,n.length)},k:function(t,n,r){var i=t.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):He(i,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Un.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Un.s(t,n)},S:function(t,n){return Un.S(t,n)},X:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();if(s===0)return"Z";switch(n){case"X":return fd(s);case"XXXX":case"XX":return gr(s);case"XXXXX":case"XXX":default:return gr(s,":")}},x:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"x":return fd(s);case"xxxx":case"xx":return gr(s);case"xxxxx":case"xxx":default:return gr(s,":")}},O:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+dd(s,":");case"OOOO":default:return"GMT"+gr(s,":")}},z:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+dd(s,":");case"zzzz":default:return"GMT"+gr(s,":")}},t:function(t,n,r,i){var o=i._originalDate||t,s=Math.floor(o.getTime()/1e3);return He(s,n.length)},T:function(t,n,r,i){var o=i._originalDate||t,s=o.getTime();return He(s,n.length)}};function dd(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(o===0)return n+String(i);var s=t;return n+String(i)+s+He(o,2)}function fd(e,t){if(e%60===0){var n=e>0?"-":"+";return n+He(Math.abs(e)/60,2)}return gr(e,t)}function gr(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),o=He(Math.floor(i/60),2),s=He(i%60,2);return r+o+n+s}var md=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},vm=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},fb=function(t,n){var r=t.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return md(t,n);var s;switch(i){case"P":s=n.dateTime({width:"short"});break;case"PP":s=n.dateTime({width:"medium"});break;case"PPP":s=n.dateTime({width:"long"});break;case"PPPP":default:s=n.dateTime({width:"full"});break}return s.replace("{{date}}",md(i,n)).replace("{{time}}",vm(o,n))},mb={p:vm,P:fb},hb=["D","DD"],pb=["YY","YYYY"];function gb(e){return hb.indexOf(e)!==-1}function wb(e){return pb.indexOf(e)!==-1}function hd(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var yb={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},vb=function(t,n,r){var i,o=yb[t];return typeof o=="string"?i=o:n===1?i=o.one:i=o.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};function Pa(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var bb={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},_b={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},xb={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Cb={date:Pa({formats:bb,defaultWidth:"full"}),time:Pa({formats:_b,defaultWidth:"full"}),dateTime:Pa({formats:xb,defaultWidth:"full"})},Sb={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Eb=function(t,n,r,i){return Sb[t]};function Gi(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):o;i=e.formattingValues[s]||e.formattingValues[o]}else{var a=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[a]}var c=e.argumentCallback?e.argumentCallback(t):t;return i[c]}}var Ab={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},kb={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Nb={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Tb={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},$b={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Mb={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Ib=function(t,n){var r=Number(t),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Db={ordinalNumber:Ib,era:Gi({values:Ab,defaultWidth:"wide"}),quarter:Gi({values:kb,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Gi({values:Nb,defaultWidth:"wide"}),day:Gi({values:Tb,defaultWidth:"wide"}),dayPeriod:Gi({values:$b,defaultWidth:"wide",formattingValues:Mb,defaultFormattingWidth:"wide"})};function zi(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var s=o[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?Rb(a,function(d){return d.test(s)}):Ob(a,function(d){return d.test(s)}),c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;var f=t.slice(s.length);return{value:c,rest:f}}}function Ob(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function Rb(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function Fb(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],o=t.match(e.parsePattern);if(!o)return null;var s=e.valueCallback?e.valueCallback(o[0]):o[0];s=n.valueCallback?n.valueCallback(s):s;var a=t.slice(i.length);return{value:s,rest:a}}}var Pb=/^(\d+)(th|st|nd|rd)?/i,Lb=/\d+/i,Vb={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Hb={any:[/^b/i,/^(a|c)/i]},jb={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Bb={any:[/1/i,/2/i,/3/i,/4/i]},Wb={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Ub={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Gb={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},zb={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},qb={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Yb={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Zb={ordinalNumber:Fb({matchPattern:Pb,parsePattern:Lb,valueCallback:function(t){return parseInt(t,10)}}),era:zi({matchPatterns:Vb,defaultMatchWidth:"wide",parsePatterns:Hb,defaultParseWidth:"any"}),quarter:zi({matchPatterns:jb,defaultMatchWidth:"wide",parsePatterns:Bb,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:zi({matchPatterns:Wb,defaultMatchWidth:"wide",parsePatterns:Ub,defaultParseWidth:"any"}),day:zi({matchPatterns:Gb,defaultMatchWidth:"wide",parsePatterns:zb,defaultParseWidth:"any"}),dayPeriod:zi({matchPatterns:qb,defaultMatchWidth:"any",parsePatterns:Yb,defaultParseWidth:"any"})},Kb={code:"en-US",formatDistance:vb,formatLong:Cb,formatRelative:Eb,localize:Db,match:Zb,options:{weekStartsOn:0,firstWeekContainsDate:1}},Xb=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Jb=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Qb=/^'([^]*?)'?$/,e_=/''/g,t_=/[a-zA-Z]/;function bm(e,t,n){var r,i,o,s,a,l,c,f,d,p,h,m,v,b;Ft(2,arguments);var x=String(t),C=la(),S=(r=(i=void 0)!==null&&i!==void 0?i:C.locale)!==null&&r!==void 0?r:Kb,$=Ir((o=(s=(a=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&a!==void 0?a:C.firstWeekContainsDate)!==null&&s!==void 0?s:(c=C.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!($>=1&&$<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var D=Ir((d=(p=(h=(m=void 0)!==null&&m!==void 0?m:void 0)!==null&&h!==void 0?h:C.weekStartsOn)!==null&&p!==void 0?p:(v=C.locale)===null||v===void 0||(b=v.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&d!==void 0?d:0);if(!(D>=0&&D<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!S.localize)throw new RangeError("locale must contain localize property");if(!S.formatLong)throw new RangeError("locale must contain formatLong property");var F=_n(e);if(!tb(F))throw new RangeError("Invalid time value");var L=Qv(F),E=nb(F,L),_={firstWeekContainsDate:$,weekStartsOn:D,locale:S,_originalDate:F},k=x.match(Jb).map(function(N){var I=N[0];if(I==="p"||I==="P"){var O=mb[I];return O(N,S.formatLong)}return N}).join("").match(Xb).map(function(N){if(N==="''")return"'";var I=N[0];if(I==="'")return n_(N);var O=db[I];if(O)return wb(N)&&hd(N,t,String(e)),gb(N)&&hd(N,t,String(e)),O(E,N,S.localize,_);if(I.match(t_))throw new RangeError("Format string contains an unescaped latin alphabet character `"+I+"`");return N}).join("");return k}function n_(e){var t=e.match(Qb);return t?t[1].replace(e_,"'"):e}function r_(e){return bm(e,"d MMM, yyyy")}function i_(e){return bm(e,"h:mm a")}function o_(e){let t,n,r,i,o,s,a;return u("div",w(g([["className","grid grid-cols-7"],(t=[u("div",w(g([["className","col-span-1 px-6 py-4 bg-white border-b border-gray-200 flex justify-start items-center gap-4"],(n=[u("div",w(g([["className"," flex flex-col justify-center items-start"],(r=[u("div",w(g([["className","self-stretch justify-start items-center gap-2 inline-flex"],(i=[u("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:r_(e.Timestamp)})],["children",y.Children.toArray(Array.from(i))])]))),u("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:i_(e.Timestamp)})],["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(n))])]))),u("div",w(g([["className","col-span-2 px-6 py-4 bg-white border-b border-gray-200 flex justify-start items-start gap-4"],(o=[u("div",w(g([["className","justify-center items-start flex flex-col"],(s=Y(T(()=>{let l;return H(A(u("div",w(g([["className","self-stretch justify-start items-center gap-2 inline-flex"],(l=[u("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:e.User.Name})],["children",y.Children.toArray(Array.from(l))])])))),T(()=>{const c=e.User.Email;return c==null?A(Ae()):A(u("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:c}))}))})),["children",y.Children.toArray(Array.from(s))])])))],["children",y.Children.toArray(Array.from(o))])]))),u("div",w(g([["className","col-span-4 px-6 py-4 bg-white border-b border-gray-200 justify-start items-center gap-1 flex"],(a=[u("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:e.Activity})],["children",y.Children.toArray(Array.from(a))])])))],["children",y.Children.toArray(Array.from(t))])])))}function s_(e){const t=nr(n=>u(o_,n),e.Data);return u("div",{className:"self-stretch flex flex-col justify-start items-stretch",children:y.Children.toArray(Array.from(t))})}function a_(e){let t,n,r,i,o;const s=e.height,a=e.width;return u("svg",w(g([["width",a],["height",s],["viewBox","0 0 "+a+" "+s],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(t=g([u("path",w(g([(n="M60 100C37.9441 100 20 82.0567 20 60C20 37.9433 37.9441 20 60 20C82.0559 20 100 37.9433 100 60C100 82.0567 82.0559 100 60 100Z",["d",n]),["fill","url(#paint0_linear_3770_593)"]]))),u("path",{d:"M60 42V67",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),u("path",w(g([(r="M60 76C60.5523 76 61 75.5523 61 75C61 74.4477 60.5523 74 60 74C59.4477 74 59 74.4477 59 75C59 75.5523 59.4477 76 60 76Z",["d",r]),["stroke","#111827"],["strokeWidth",2],["strokeLinecap","round"],["strokeLinejoin","round"]]))),(i=le(u("linearGradient",w(g([["id","paint0_linear_3770_593"],["x1",20],["y1",20],["x2",100],["y2",20],(o=g([u("stop",{offset:0,stopColor:"#FFD84D"}),u("stop",{offset:1,stopColor:"#FF876F"})]),["children",y.Children.toArray(Array.from(o))])])))),u("defs",{children:y.Children.toArray(Array.from(i))}))]),["children",y.Children.toArray(Array.from(t))])])))}function l_(){let e;return u("div",w(g([["className","w-[120px] h-[120px] flex flex-col justify-center items-center"],(e=[u(a_,{width:120,height:120})],["children",y.Children.toArray(Array.from(e))])])))}function u_(){let e,t,n,r;return u("div",w(g([["className","self-stretch grow shrink basis-0 flex flex-col justify-center items-center"],(e=[u(l_,null),u("div",w(g([["className","flex-col justify-start items-center gap-6 inline-flex"],(t=[u("div",w(g([["className","self-stretch h-[72px] flex-col justify-start items-start gap-3 flex"],(n=[u("div",w(g([["className","h-[72px] flex-col justify-start items-center gap-1 flex"],(r=[u("div",{className:"self-stretch text-center text-gray-900 text-xl font-bold leading-7",children:"We couldn’t load your past activities"}),u("div",{className:"self-stretch text-center text-gray-500 text-sm font-normal leading-tight",children:"Something went wrong while retrieving your activities. Please refresh the page to try again."})],["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))],["children",y.Children.toArray(Array.from(e))])])))}function c_(e){return{Data:wv(e.Data)}}function d_(e){let t;const n=e.props,r=n.tag===1?u(s_,c_(n.fields[0])):u(u_,null);return u("div",w(g([["className","relative h-full grow"],(t=[u("div",{className:"overflow-y-auto self-stretch flex flex-col justify-start",style:{scrollbarWidth:"none"},children:y.Children.toArray([r])})],["children",y.Children.toArray(Array.from(t))])])))}class pd extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Prev","Next"]}}function f_(e){let t,n;const r=e.pageChangedHandler,i=e.pagingInfo;return u("div",w(g([["className","flex-none h-[60px] bg-white flex-col justify-start items-start flex"],(t=[u("div",{className:"self-stretch h-px bg-gray-200"}),u("div",w(g([["className","self-stretch px-6 py-3 justify-between items-center inline-flex"],(n=Y(T(()=>{let o,s,a;return H((o=i,o.tag===1?A(u("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:"No results found"})):(s=o.fields[0],A((a=g([u("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:fn(kv(s))}),u("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" to "}),u("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:fn(Nv(s))}),u("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" of "}),u("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:fn(s.TotalRecordsNumber)}),u("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" results"})]),u("div",{children:y.Children.toArray(Array.from(a))}))))),T(()=>{let l,c,f;return A(u("div",w(g([["className","justify-start items-start gap-3 flex"],(l=[u("button",w(g([["type","button"],(c="py-2 px-3 bg-white border border-gray-300 shadow-sm rounded-md text-sm font-medium text-gray-700 leading-4 disabled:cursor-not-allowed disabled:opacity-50 hover:bg-gray-50",["className",c]),["children","Previous"],["onClick",d=>{r(new pd(0,[]))}],["disabled",!hm(i)]]))),u("button",w(g([["type","button"],(f="ml-3 py-2 px-3 bg-white border border-gray-300 shadow-sm rounded-md text-sm font-medium text-gray-700 leading-4 disabled:cursor-not-allowed disabled:opacity-50 hover:bg-gray-50",["className",f]),["children","Next"],["onClick",d=>{r(new pd(1,[]))}],["disabled",!mm(i)]])))],["children",y.Children.toArray(Array.from(l))])]))))}))})),["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}class gl extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ToggleSortDirection","NextPage","PrevPage"]}}function m_(e,t){e(t.tag===0?new gl(2,[]):new gl(1,[]))}function h_(e){let t,n;const r=e.actionHandler,i=e.props;return u("div",w(g([(t="self-stretch grow bg-white rounded-lg shadow border border-gray-200 flex flex-col justify-center items-stretch",["className",t]),(n=[u(Kv,new cv(mv(i),()=>{r(new gl(0,[]))})),u(d_,{props:i}),u(f_,{pagingInfo:hv(i),pageChangedHandler:o=>{m_(r,o)}})],["children",y.Children.toArray(Array.from(n))])])))}function p_(e,t){t.tag===0?e(new li(0,[t.fields[0]])):e(new li(1,[]))}function g_(e,t){switch(t.tag){case 2:{e(new li(4,[]));break}case 0:{e(new li(2,[]));break}default:e(new li(3,[]))}}function gd(e){let t,n;const r=e.importHistory;let i;const o=Hv(r);i=jr(()=>Hr(()=>o,Bv,(f,d)=>{}),void 0,void 0);const s=i[0],a=i[1];let l;const c=$v(s);return l={ActionHandler:f=>{p_(a,f)},Disabled:Mv(s),Value:eo(c)},u("div",w(g([["className","self-stretch grow basis-0 flex flex-col justify-start items-start gap-2"],(t=[u(Uv,null),u("div",w(g([["className","self-stretch grow shrink basis-0 px-12 pb-6 flex flex-col justify-start items-start gap-2"],(n=[u(zv,l),u(h_,{props:Iv(s),actionHandler:f=>{g_(a,f)}})],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}class wd extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Header","Row"]}}function w_(e,t){let n;const r=e.tag===1?["bg-white","bg-gray-100","h-[72px]"]:["bg-gray-50","bg-gray-300",""];return u("div",w(g([["className",Et(" ",["px-6 py-3.5 border-b border-gray-200 justify-start items-center gap-2 flex",r[0],r[2],t])],(n=[u("div",{className:Et(" ",["w-full h-4 relative rounded",r[1]])})],["children",y.Children.toArray(Array.from(n))])])))}function yd(e){const t=nr(n=>w_(e,n),g(["col-span-1","col-span-2","col-span-4"]));return u("div",{className:"grid grid-cols-7",children:y.Children.toArray(Array.from(t))})}function y_(){let e,t;return u("div",w(g([(e="self-stretch animate-pulse grow bg-white rounded-lg shadow border border-gray-200 flex flex-col justify-start items-stretch",["className",e]),(t=So(le(yd(new wd(0,[]))),nr(n=>yd(new wd(1,[])),Y(mu(1,1,5)))),["children",y.Children.toArray(Array.from(t))])])))}function v_(e){let t;const n=jr(()=>Hr(by,(i,o)=>_y(()=>ev(e.backendUrl),i),(i,o)=>{}),void 0,[])[0].View;t=n.tag===2?u(gd,{importHistory:new M(1,[void 0])}):n.tag===1?u(gd,{importHistory:new M(0,[av(n.fields[0])])}):u(y_,null);const r=[u("style",{children:[Zl]}),t];return u(ze,{},...r)}function b_(){Fl(e=>u(v_,e),"apollo-import-workspace-past-history")}const _m=(e,t)=>{Re(()=>{const n=e();return()=>{n.Dispose()}},t)},__=e=>{bn(()=>{const t=e();return()=>{t.Dispose()}})};function x_(e){return{Dispose(){Hn(t=>{Ie(t)},Ei(e))}}}function C_(e,t){return t}function S_(e,t,n,r){const i=y.memo(e,qe(Ze(bt(qn,n),Ae())));return Hn(o=>{e.displayName=o},Ei(t)),o=>{const s=C_(r,o);return y.createElement(i,s)}}function Cu(e){return{Dispose(){e()}}}function xm(e){const t=y.useRef(!1);y.useEffect(()=>{t.current||(t.current=!0,e())},[])}function Cm(e){const t=y.useRef(void 0),n=y.useRef(!1),r=y.useRef(!1);n.current&&(r.current=!0),_m(()=>x_(n.current?void 0:(n.current=!0,t.current=ct(e()),r.current?t.current:void 0)),[])}function Sm(e){const t=y.useRef(e),n=y.useCallback(r=>t.current(r),[]);return __(r=>(t.current=e,Cu(()=>{}))),n}function wl(e,t){if(t.startsWith(e))return t}function vd(e,t){if(t.endsWith(e))return t}function E_(e){return t=>{let n,r;return n=wl("/",t),n!=null?(r=n,r):"/"+t}}function A_(e,t){return E_()(Et("/",nr(n=>n.indexOf("?")>=0||n.startsWith("#")||n.startsWith("/")?n:encodeURIComponent(n),e)))}function Em(e,t,n){history.pushState(void 0,"",A_(e));const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)}function k_(e,t){return ug(n=>{if(Si(n))return ot();{const r=eu(n,"#");if(r==="?")return ot();if(wl("?",r)!=null)return le(r);{const i=r.split("?");if(!$r((o,s)=>o===s,i,Ae())&&i.length===1){const o=he(0,i);return le(decodeURIComponent(o))}else if(!$r((o,s)=>o===s,i,Ae())&&i.length===2)if(he(1,i)===""){const o=he(0,i);return le(decodeURIComponent(o))}else{const o=he(0,i),s=he(1,i);return g([decodeURIComponent(o),"?"+s])}else return ot()}}},g(Uf(wl("#",e)!=null?V1(e,1,e.length-1):t===1&&(vd("#",e)!=null||vd("#/",e)!=null)?"":e,["/"],void 0,0)))}function N_(e,t,n){return t(k_(e===2?window.location.pathname+window.location.search:window.location.hash,e))}S_(e=>{const t=Sm(r=>{const i=Ze(e.onUrlChanged,o=>{});N_(Ze(e.hashMode,1),i)});Cm(()=>(window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0?window.addEventListener("hashchange",t):window.addEventListener("popstate",t),window.addEventListener("CUSTOM_NAVIGATION_EVENT",t),Cu(()=>{window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0?window.removeEventListener("hashchange",t):window.removeEventListener("popstate",t),window.removeEventListener("CUSTOM_NAVIGATION_EVENT",t)}))),xm(()=>{const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)});const n=e.application;return n??Ae()},void 0,void 0,void 0);class T_{constructor(t,n){const r=new xt(Ae());this.comparer=n,r.contents=this,this.hashMap=new Map([]),this["init@9"]=1;const i=Le(t);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const o=i["System.Collections.Generic.IEnumerator`1.get_Current"]();La(r.contents,o[0],o[1])}}finally{Ie(i)}}get[Symbol.toStringTag](){return"Dictionary"}toJSON(){const t=this;return Array.from(t)}"System.Collections.IEnumerable.GetEnumerator"(){return Le(this)}GetEnumerator(){return Le(qs(this.hashMap.values()))}[Symbol.iterator](){return xi(Le(this))}"System.Collections.Generic.ICollection`1.Add2B595"(t){La(this,t[0],t[1])}"System.Collections.Generic.ICollection`1.Clear"(){bd(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const r=os(this,t[0]);let i;switch(r!=null&&J(V(r)[1],t[1])?(i=0,V(r)):i=1,i){case 0:return!0;default:return!1}}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){g0((i,o)=>{$t(t,n+i,o)},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return _d(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(t){const n=this,r=os(n,t[0]);return r!=null?(J(V(r)[1],t[1])&&Va(n,t[0]),!0):!1}"System.Collections.Generic.IDictionary`2.Add5BDDA1"(t,n){La(this,t,n)}"System.Collections.Generic.IDictionary`2.ContainsKey2B595"(t){return Sd(this,t)}"System.Collections.Generic.IDictionary`2.get_Item2B595"(t){return xd(this,t)}"System.Collections.Generic.IDictionary`2.set_Item5BDDA1"(t,n){Cd(this,t,n)}"System.Collections.Generic.IDictionary`2.get_Keys"(){const t=this;return Pn(T(()=>Pe(n=>n[0],t)))}"System.Collections.Generic.IDictionary`2.Remove2B595"(t){return Va(this,t)}"System.Collections.Generic.IDictionary`2.TryGetValue6DC89625"(t,n){const i=os(this,t);if(i!=null){const o=V(i);return n.contents=o[1],!0}else return!1}"System.Collections.Generic.IDictionary`2.get_Values"(){const t=this;return Pn(T(()=>Pe(n=>n[1],t)))}get size(){return _d(this)|0}clear(){bd(this)}delete(t){return Va(this,t)}entries(){return Pe(n=>[n[0],n[1]],this)}get(t){return xd(this,t)}has(t){return Sd(this,t)}keys(){return Pe(n=>n[0],this)}set(t,n){const r=this;return Cd(r,t,n),r}values(){return Pe(n=>n[1],this)}forEach(t,n){const r=this;Hn(i=>{t(i[1],i[0],r)},r)}}function Mo(e,t){const n=e.comparer.GetHashCode(t)|0;let r,i=Ae();return r=[lu(e.hashMap,n,new xt(()=>i,o=>{i=o})),i],r[0]?[!0,n,r[1].findIndex(o=>e.comparer.Equals(t,o[0]))]:[!1,n,-1]}function os(e,t){const n=Mo(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return rr(e.hashMap,n[1])[n[2]];default:return}}function bd(e){e.hashMap.clear()}function _d(e){let t=0,n=Le(e.hashMap.values());try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=t+r.length|0}}finally{Ie(n)}return t|0}function xd(e,t){const n=os(e,t);if(n!=null)return V(n)[1];throw new Error("The item was not found in collection")}function Cd(e,t,n){const r=Mo(e,t);r[0]?r[2]>-1?rr(e.hashMap,r[1])[r[2]]=[t,n]:rr(e.hashMap,r[1]).push([t,n]):e.hashMap.set(r[1],[[t,n]])}function La(e,t,n){const r=Mo(e,t);if(r[0]){if(r[2]>-1)throw new Error(Jl("An item with the same key has already been added. Key: {0}",t));rr(e.hashMap,r[1]).push([t,n])}else e.hashMap.set(r[1],[[t,n]])}function Sd(e,t){const n=Mo(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return!0;default:return!1}}function Va(e,t){const n=Mo(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return rr(e.hashMap,n[1]).splice(n[2],1),!0;default:return!1}}function $_(e,t){return T(()=>{const n=new y0([],t);return Ys(r=>w0(r,n),e)})}function M_(e,t,n){return T(()=>{const r=new y0(e,n);return Ys(i=>w0(i,r),t)})}function I_(e,t,n){return T(()=>{const r=new T_([],n),i=[],o=Le(t);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const s=o["System.Collections.Generic.IEnumerator`1.get_Current"](),a=e(s);let l,c=Ae();l=[lu(r,a,new xt(()=>c,f=>{c=f})),c],l[0]?l[1].push(s):(jg(r,a,[s]),i.push(a))}}finally{Ie(o)}return Pe(s=>[s,rr(r,s)],i)})}function Am(e,t){return Pn($_(e,t))}function km(e,t,n){return Pn(M_(e,t,n))}function D_(e,t,n){return Pn(Pe(r=>[r[0],Pn(r[1])],I_(e,t,n)))}class O_ extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvColumnIndex"]}}class R_ extends _e{constructor(t,n,r,i){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=i}}class F_ extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisCsvColumnIndex"]}}class oo extends _e{constructor(t,n,r,i,o){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=i,this.EmploymentBasis=o}}new oo(void 0,void 0,void 0,void 0,void 0);function Ed(e,t){return new oo(e.FirstName,e.LastName,e.Email,e.MobilePhone,bt(n=>n.fields[0],t))}class P_ extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisRawValue"]}}class dt extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FullTime","PartTime","Casual","LabourHire"]}}function Nm(e){switch(e.tag){case 1:return"Part-time";case 2:return"Casual";case 3:return"Labour hire";default:return"Full-time"}}function L_(e){switch(e.tag){case 1:return"PartTime";case 2:return"Casual";case 3:return"LabourHire";default:return"FullTime"}}function V_(e){switch(e){case"FullTime":return new dt(0,[]);case"PartTime":return new dt(1,[]);case"Casual":return new dt(2,[]);case"LabourHire":return new dt(3,[]);default:return}}class H_ extends _e{constructor(t,n){super(),this.Head=t,this.Tail=n}}function j_(e){return ai(Ke(t=>[t[1].fields[0],L_(t[0])],i0([e.Head],e.Tail)),{Compare:Vr})}class B_ extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisColumn"]}}class qr extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["WithoutEmploymentBasis","WithEmploymentBasis"]}}class Sn extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["DraftColumnMappings","ValidatedColumnMappings"]}}class W_ extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvColumnName"]}}class U_ extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvDataRow"]}}class Tm extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvDataRows"]}}function G_(e,t){let n;return new B_(Ke(r=>new P_(r),ng(r=>r,Am((n=Ke(r=>he(t.fields[0].fields[0],r.fields[0]),e.fields[0]),n.filter(r=>!Si(r))),{Equals:(r,i)=>r===i,GetHashCode:ur}),{Compare:Vr})))}class $m extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FileName"]}}class z_ extends _e{constructor(t,n,r,i){super(),this.Name=t,this.HeaderRow=n,this.DataRows=r,this.SizeInBytes=i|0}}class Nt extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["InviteNow","InviteLater"]}}class Go extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Draft","Valid"]}}class se extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FirstName","LastName","Email","MobilePhone","EmploymentBasis"]}}function fo(e){switch(e.tag){case 1:return"Last name";case 2:return"Email";case 3:return"Mobile phone";case 4:return"Employment basis";default:return"First name"}}function br(e){switch(e.tag){case 1:return"lastName";case 2:return"email";case 3:return"mobileNumber";case 4:return"employmentBasis";default:return"firstName"}}function Mm(e){switch(e){case"firstName":return new se(0,[]);case"lastName":return new se(1,[]);case"email":return new se(2,[]);case"mobileNumber":return new se(3,[]);case"employmentBasis":return new se(4,[]);default:return}}let Gn=class extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Set","Clear","Preview","ClosePreview"]}};class qi extends _e{constructor(t,n){super(),this.ColumnIndex=t,this.IncomingFields=n}}class q_ extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["IncomingFields"]}}class kn extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Available","Unavailable"]}}let wr=class extends _e{constructor(t,n,r,i,o,s,a,l,c,f){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=i,this.EmploymentBasis=o,this.Preview=s,this.NumberOfIncomingFields=a|0,this.NumberOfDestinationFieldsMapped=l|0,this.NumberOfIncomingFieldsDiscarded=c|0,this.Status=f}};function Y_(e,t){const n=t.tag===1?["lastname","surname","familyname"]:t.tag===2?["email"]:t.tag===3?["mobilephone","mobilephonenumber","mobilenumber","mobile","phonenumber","phone"]:t.tag===4?["employmentbasis","employmenttype"]:["firstname","givenname","christianname","forename","baptismname","baptismalname"];return bt(r=>r[0],Us(r=>Ai(Xl(r[1].fields[0],"[^a-zA-Z]","").toLocaleLowerCase(),n,{Equals:(i,o)=>i===o,GetHashCode:ur}),e))}function Z_(e,t){return new q_(Ke(n=>{const r=n[0];return[r,n[1],Ai(r,t,{Equals:J,GetHashCode:ms})?new kn(1,[]):new kn(0,[])]},e))}function Im(e,t,n){switch(t.tag){case 1:return[e.FirstName.ColumnIndex,n,e.Email.ColumnIndex,e.MobilePhone.ColumnIndex,e.EmploymentBasis.ColumnIndex];case 2:return[e.FirstName.ColumnIndex,e.LastName.ColumnIndex,n,e.MobilePhone.ColumnIndex,e.EmploymentBasis.ColumnIndex];case 3:return[e.FirstName.ColumnIndex,e.LastName.ColumnIndex,e.Email.ColumnIndex,n,e.EmploymentBasis.ColumnIndex];case 4:return[e.FirstName.ColumnIndex,e.LastName.ColumnIndex,e.Email.ColumnIndex,e.MobilePhone.ColumnIndex,n];default:return[n,e.LastName.ColumnIndex,e.Email.ColumnIndex,e.MobilePhone.ColumnIndex,e.EmploymentBasis.ColumnIndex]}}function Jr(e,t){return qt(n=>n,Ke(n=>s0(e.fields[0],n.fields[0]),t.fields[0].slice(void 0,10)))}function Su(e,t,n,r,i,o,s){let a,l,c;const f=m=>Z_(e,m);let d;d=qt(m=>m,[n,r,i,o,s]).length;const h=n!=null?r!=null?i!=null?(a=i,l=n,c=r,new Go(1,[new R_(l,c,a,o),bt(m=>new F_(m),s)])):new Go(0,[new oo(n,r,i,o,s)]):new Go(0,[new oo(n,r,i,o,s)]):new Go(0,[new oo(n,r,i,o,s)]);return new wr(new qi(n,f(qt(m=>m,[r,i,o,s]))),new qi(r,f(qt(m=>m,[n,i,o,s]))),new qi(i,f(qt(m=>m,[n,r,o,s]))),new qi(o,f(qt(m=>m,[n,r,i,s]))),new qi(s,f(qt(m=>m,[n,r,i,o]))),t,e.length,d,e.length-d,h)}function Yi(e,t,n,r,i){let o,s,a;const l=[r,i];return a=Im(n,l[0],l[1]),Su(e,(o=n.Preview,o!=null&&J(o[0],r)?(s=o[0],[s,Jr(i,t)]):n.Preview),a[0],a[1],a[2],a[3],a[4])}function Zi(e,t,n){let r,i;const o=[n,void 0];return i=Im(t,o[0],o[1]),Su(e,(r=t.Preview,r!=null&&J(r[0],n)?(r[0],void 0):t.Preview),i[0],i[1],i[2],i[3],i[4])}function Dm(e,t){switch(t.tag){case 1:return e.LastName.ColumnIndex!=null;case 2:return e.Email.ColumnIndex!=null;case 3:return e.MobilePhone.ColumnIndex!=null;case 4:return e.EmploymentBasis.ColumnIndex!=null;default:return e.FirstName.ColumnIndex!=null}}const K_=e=>t=>Dm(e,t);function X_(e,t){const n=Dm(e,t),r=e.Preview;let i;switch(n?r==null?i=2:J(r[0],t)?(i=1,r[0]):i=2:i=0,i){case 0:return!1;case 1:return!1;default:return!0}}function J_(e,t){let n,r,i,o,s,a,l,c,f;const d=p=>Y_(e,p);return[(n=t==null?(r=d(new se(0,[])),i=d(new se(1,[])),o=d(new se(2,[])),s=d(new se(3,[])),a=d(new se(4,[])),l=qt(p=>p,[r,i,o,s,a]),c=p=>{let h,m;switch(p!=null?(h=p,l.filter(v=>J(v,h)).length>1?m=0:m=1):m=1,m){case 0:return;default:return p}},[c(r),c(i),c(o),c(s),c(a)]):(f=t,[f.FirstName,f.LastName,f.Email,f.MobilePhone,f.EmploymentBasis]),Su(e,void 0,n[0],n[1],n[2],n[3],n[4])),X()]}function Q_(e,t,n,r){let i,o,s,a,l,c,f,d,p,h,m,v,b,x,C,S,$,D,F,L,E;switch(n.tag){case 1:{switch(n.fields[0].tag){case 1:{r.LastName.ColumnIndex!=null?m=6:m=16;break}case 2:{r.Email.ColumnIndex!=null?m=7:m=16;break}case 3:{r.MobilePhone.ColumnIndex!=null?m=8:m=16;break}case 4:{r.EmploymentBasis.ColumnIndex!=null?m=9:m=16;break}default:r.FirstName.ColumnIndex!=null?m=5:m=16}break}case 2:{switch(n.fields[0].tag){case 1:{r.LastName.ColumnIndex!=null?(m=11,D=r.LastName.ColumnIndex):m=16;break}case 2:{r.Email.ColumnIndex!=null?(m=12,F=r.Email.ColumnIndex):m=16;break}case 3:{r.MobilePhone.ColumnIndex!=null?(m=13,L=r.MobilePhone.ColumnIndex):m=16;break}case 4:{r.EmploymentBasis.ColumnIndex!=null?(m=14,E=r.EmploymentBasis.ColumnIndex):m=16;break}default:r.FirstName.ColumnIndex!=null?(m=10,$=r.FirstName.ColumnIndex):m=16}break}case 3:{m=15;break}default:switch(n.fields[0].tag){case 1:{c=n.fields[1],!J(r.LastName.ColumnIndex,c)&&r.LastName.IncomingFields.fields[0].some(_=>J(c,_[0])?J(_[2],new kn(0,[])):!1)?(m=1,r.LastName.ColumnIndex,r.LastName.IncomingFields.fields[0],b=n.fields[1]):m=16;break}case 2:{f=n.fields[1],!J(r.Email.ColumnIndex,f)&&r.Email.IncomingFields.fields[0].some(_=>J(f,_[0])?J(_[2],new kn(0,[])):!1)?(m=2,r.Email.ColumnIndex,r.Email.IncomingFields.fields[0],x=n.fields[1]):m=16;break}case 3:{d=n.fields[1],!J(r.MobilePhone.ColumnIndex,d)&&r.MobilePhone.IncomingFields.fields[0].some(_=>J(d,_[0])?J(_[2],new kn(0,[])):!1)?(m=3,r.MobilePhone.ColumnIndex,r.MobilePhone.IncomingFields.fields[0],C=n.fields[1]):m=16;break}case 4:{p=n.fields[1],!J(r.EmploymentBasis.ColumnIndex,p)&&r.EmploymentBasis.IncomingFields.fields[0].some(_=>J(p,_[0])?J(_[2],new kn(0,[])):!1)?(m=4,r.EmploymentBasis.ColumnIndex,r.EmploymentBasis.IncomingFields.fields[0],S=n.fields[1]):m=16;break}default:h=n.fields[1],!J(r.FirstName.ColumnIndex,h)&&r.FirstName.IncomingFields.fields[0].some(_=>J(h,_[0])?J(_[2],new kn(0,[])):!1)?(m=0,r.FirstName.ColumnIndex,r.FirstName.IncomingFields.fields[0],v=n.fields[1]):m=16}}switch(m){case 0:return[(i=[new se(0,[]),v],Yi(e,t,r,i[0],i[1])),X()];case 1:return[(o=[new se(1,[]),b],Yi(e,t,r,o[0],o[1])),X()];case 2:return[(s=[new se(2,[]),x],Yi(e,t,r,s[0],s[1])),X()];case 3:return[(a=[new se(3,[]),C],Yi(e,t,r,a[0],a[1])),X()];case 4:return[(l=[new se(4,[]),S],Yi(e,t,r,l[0],l[1])),X()];case 5:return[Zi(e,r,new se(0,[])),X()];case 6:return[Zi(e,r,new se(1,[])),X()];case 7:return[Zi(e,r,new se(2,[])),X()];case 8:return[Zi(e,r,new se(3,[])),X()];case 9:return[Zi(e,r,new se(4,[])),X()];case 10:return[new wr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new se(0,[]),Jr($,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),X()];case 11:return[new wr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new se(1,[]),Jr(D,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),X()];case 12:return[new wr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new se(2,[]),Jr(F,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),X()];case 13:return[new wr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new se(3,[]),Jr(L,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),X()];case 14:return[new wr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new se(4,[]),Jr(E,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),X()];case 15:return[new wr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,void 0,r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),X()];default:return[r,X()]}}const Om=typeof document<"u"?K.useLayoutEffect:()=>{};function ex(e){const t=ie(null);return Om(()=>{t.current=e},[e]),Oe((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}const Io=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Sr=e=>e&&"window"in e&&e.window===e?e:Io(e).defaultView||window;function tx(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function nx(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Rm(e){let t=null;return()=>(t==null&&(t=e()),t)}const rx=Rm(function(){return nx(/^Mac/i)}),ix=Rm(function(){return tx(/Android/i)});function ox(e){return e.mozInputSource===0&&e.isTrusted?!0:ix()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}class sx{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function Fm(e){let t=ie({isFocused:!1,observer:null});Om(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=ex(r=>{e==null||e(r)});return Oe(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,o=s=>{t.current.isFocused=!1,i.disabled&&n(new sx("blur",s)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let a=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function ax(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=Oe(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),s=Fm(o),a=Oe(l=>{const c=Io(l.target);l.target===l.currentTarget&&c.activeElement===l.target&&(n&&n(l),i&&i(!0),s(l))},[i,n,s]);return{focusProps:{onFocus:!t&&(n||i||r)?a:void 0,onBlur:!t&&(r||i)?o:void 0}}}let Do=null,yl=new Set,so=new Map,Dr=!1,vl=!1;const lx={Tab:!0,Escape:!0};function Eu(e,t){for(let n of yl)n(e,t)}function ux(e){return!(e.metaKey||!rx()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Ns(e){Dr=!0,ux(e)&&(Do="keyboard",Eu("keyboard",e))}function Qt(e){Do="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Dr=!0,Eu("pointer",e))}function Pm(e){ox(e)&&(Dr=!0,Do="virtual")}function Lm(e){e.target===window||e.target===document||(!Dr&&!vl&&(Do="virtual",Eu("virtual",e)),Dr=!1,vl=!1)}function Vm(){Dr=!1,vl=!0}function bl(e){if(typeof window>"u"||so.get(Sr(e)))return;const t=Sr(e),n=Io(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Dr=!0,r.apply(this,arguments)},n.addEventListener("keydown",Ns,!0),n.addEventListener("keyup",Ns,!0),n.addEventListener("click",Pm,!0),t.addEventListener("focus",Lm,!0),t.addEventListener("blur",Vm,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Qt,!0),n.addEventListener("pointermove",Qt,!0),n.addEventListener("pointerup",Qt,!0)):(n.addEventListener("mousedown",Qt,!0),n.addEventListener("mousemove",Qt,!0),n.addEventListener("mouseup",Qt,!0)),t.addEventListener("beforeunload",()=>{Hm(e)},{once:!0}),so.set(t,{focus:r})}const Hm=(e,t)=>{const n=Sr(e),r=Io(e);t&&r.removeEventListener("DOMContentLoaded",t),so.has(n)&&(n.HTMLElement.prototype.focus=so.get(n).focus,r.removeEventListener("keydown",Ns,!0),r.removeEventListener("keyup",Ns,!0),r.removeEventListener("click",Pm,!0),n.removeEventListener("focus",Lm,!0),n.removeEventListener("blur",Vm,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Qt,!0),r.removeEventListener("pointermove",Qt,!0),r.removeEventListener("pointerup",Qt,!0)):(r.removeEventListener("mousedown",Qt,!0),r.removeEventListener("mousemove",Qt,!0),r.removeEventListener("mouseup",Qt,!0)),so.delete(n))};function cx(e){const t=Io(e);let n;return t.readyState!=="loading"?bl(e):(n=()=>{bl(e)},t.addEventListener("DOMContentLoaded",n)),()=>Hm(e,n)}typeof document<"u"&&cx();function jm(){return Do!=="pointer"}const dx=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function fx(e,t,n){var r;const i=typeof window<"u"?Sr(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,o=typeof window<"u"?Sr(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?Sr(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window<"u"?Sr(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof i&&!dx.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof o||(n==null?void 0:n.target)instanceof s&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof a&&!lx[n.key])}function mx(e,t,n){bl(),Re(()=>{let r=(i,o)=>{fx(!!(n!=null&&n.isTextInput),i,o)&&e(jm())};return yl.add(r),()=>{yl.delete(r)}},t)}function hx(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=ie({isFocusWithin:!1}),s=Oe(c=>{o.current.isFocusWithin&&!c.currentTarget.contains(c.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(c),i&&i(!1))},[n,i,o]),a=Fm(s),l=Oe(c=>{!o.current.isFocusWithin&&document.activeElement===c.target&&(r&&r(c),i&&i(!0),o.current.isFocusWithin=!0,a(c))},[r,i,a]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:s}}}let Ts=!1,Ha=0;function _l(){Ts=!0,setTimeout(()=>{Ts=!1},50)}function Ad(e){e.pointerType==="touch"&&_l()}function px(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Ad):document.addEventListener("touchend",_l),Ha++,()=>{Ha--,!(Ha>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Ad):document.removeEventListener("touchend",_l))}}function gx(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,s]=be(!1),a=ie({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;Re(px,[]);let{hoverProps:l,triggerHoverEnd:c}=fe(()=>{let f=(h,m)=>{if(a.pointerType=m,i||m==="touch"||a.isHovered||!h.currentTarget.contains(h.target))return;a.isHovered=!0;let v=h.currentTarget;a.target=v,t&&t({type:"hoverstart",target:v,pointerType:m}),n&&n(!0),s(!0)},d=(h,m)=>{if(a.pointerType="",a.target=null,m==="touch"||!a.isHovered)return;a.isHovered=!1;let v=h.currentTarget;r&&r({type:"hoverend",target:v,pointerType:m}),n&&n(!1),s(!1)},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=h=>{Ts&&h.pointerType==="mouse"||f(h,h.pointerType)},p.onPointerLeave=h=>{!i&&h.currentTarget.contains(h.target)&&d(h,h.pointerType)}):(p.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=h=>{!a.ignoreEmulatedMouseEvents&&!Ts&&f(h,"mouse"),a.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=h=>{!i&&h.currentTarget.contains(h.target)&&d(h,"mouse")}),{hoverProps:p,triggerHoverEnd:d}},[t,n,r,i,a]);return Re(()=>{i&&c({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:l,isHovered:o}}function wx(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=ie({isFocused:!1,isFocusVisible:t||jm()}),[o,s]=be(!1),[a,l]=be(()=>i.current.isFocused&&i.current.isFocusVisible),c=Oe(()=>l(i.current.isFocused&&i.current.isFocusVisible),[]),f=Oe(h=>{i.current.isFocused=h,s(h),c()},[c]);mx(h=>{i.current.isFocusVisible=h,c()},[],{isTextInput:n});let{focusProps:d}=ax({isDisabled:r,onFocusChange:f}),{focusWithinProps:p}=hx({isDisabled:!r,onFocusWithinChange:f});return{isFocused:o,isFocusVisible:a,focusProps:r?p:d}}var yx=Object.defineProperty,vx=(e,t,n)=>t in e?yx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ja=(e,t,n)=>(vx(e,typeof t!="symbol"?t+"":t,n),n);let bx=class{constructor(){ja(this,"current",this.detect()),ja(this,"handoffState","pending"),ja(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},kr=new bx;function Mi(e){return kr.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function ua(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Bn(){let e=[],t={addEventListener(n,r,i,o){return n.addEventListener(r,i,o),t.add(()=>n.removeEventListener(r,i,o))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return ua(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,i){let o=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:o})})},group(n){let r=Bn();return n(r),this.add(()=>r.dispose())},add(n){return e.includes(n)||e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let i of e.splice(r,1))i()}},dispose(){for(let n of e.splice(0))n()}};return t}function dr(){let[e]=be(Bn);return Re(()=>()=>e.dispose(),[e]),e}let Xe=(e,t)=>{kr.isServer?Re(e,t):bn(e,t)};function fr(e){let t=ie(e);return Xe(()=>{t.current=e},[e]),t}let ue=function(e){let t=fr(e);return K.useCallback((...n)=>t.current(...n),[t])};function _x(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function xx(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function Cx({disabled:e=!1}={}){let t=ie(null),[n,r]=be(!1),i=dr(),o=ue(()=>{t.current=null,r(!1),i.dispose()}),s=ue(a=>{if(i.dispose(),t.current===null){t.current=a.currentTarget,r(!0);{let l=Mi(a.currentTarget);i.addEventListener(l,"pointerup",o,!1),i.addEventListener(l,"pointermove",c=>{if(t.current){let f=_x(c);r(xx(f,t.current.getBoundingClientRect()))}},!1),i.addEventListener(l,"pointercancel",o,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:s,onPointerUp:o,onClick:o}}}let Sx=st(void 0);function Au(){return Ve(Sx)}function xl(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function Vt(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Vt),r}var yi=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(yi||{}),Xn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Xn||{});function Ct(){let e=Ax();return Oe(t=>Ex({mergeRefs:e,...t}),[e])}function Ex({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:s,mergeRefs:a}){a=a??kx;let l=Bm(t,e);if(o)return zo(l,n,r,s,a);let c=i??0;if(c&2){let{static:f=!1,...d}=l;if(f)return zo(d,n,r,s,a)}if(c&1){let{unmount:f=!0,...d}=l;return Vt(f?0:1,{0(){return null},1(){return zo({...d,hidden:!0,style:{display:"none"}},n,r,s,a)}})}return zo(l,n,r,s,a)}function zo(e,t={},n,r,i){let{as:o=n,children:s,refName:a="ref",...l}=Ba(e,["unmount","static"]),c=e.ref!==void 0?{[a]:e.ref}:{},f=typeof s=="function"?s(t):s;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let d={};if(t){let p=!1,h=[];for(let[m,v]of Object.entries(t))typeof v=="boolean"&&(p=!0),v===!0&&h.push(m.replace(/([A-Z])/g,b=>`-${b.toLowerCase()}`));if(p){d["data-headlessui-state"]=h.join(" ");for(let m of h)d[`data-${m}`]=""}}if(o===ze&&(Object.keys(zn(l)).length>0||Object.keys(zn(d)).length>0))if(!_i(f)||Array.isArray(f)&&f.length>1){if(Object.keys(zn(l)).length>0)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(zn(l)).concat(Object.keys(zn(d))).map(p=>` - ${p}`).join(`
37
+ `))(a)}}else if(n0(r))if(su(r)){const s=et(a=>$n(e,t,n,a),s0(r));return a=>ts(Ug((l,u)=>he(l,s)(u),a))}else{const s=Ke(r0(r));if(s==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]"){const a=new o1(()=>u2($n(e,t,n,he(0,Kt(r)))));return l=>l==null?sm:a.Value(l)}else if(s==="Microsoft.FSharp.Collections.FSharpList`1[System.Object]"||s==="Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"||s==="System.Collections.Generic.IEnumerable`1[System.Object]"){const a=$n(e,t,n,he(0,Kt(r)));return l=>ts(Le(a,l))}else if(s==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const a=he(0,Kt(r)),l=$n(e,t,n,he(1,Kt(r)));if(Ke(a)==="System.String"||Ke(a)==="System.Guid")return u=>Do((d,f)=>{const p=f;return d[p[0]]=l(p[1]),d},{},u);{let u;return u=$n(e,t,n,a),f=>ts(Le(p=>{const m=p;return[u(m[0]),l(m[1])]},f))}}else return ad(e,t,n,r)}else switch(i){case"System.Boolean":return s=>s;case"Microsoft.FSharp.Core.Unit":return a2;case"System.String":return s=>s;case"System.Char":return s=>s;case"System.SByte":return s=>s;case"System.Byte":return s=>s;case"System.Int16":return s=>s;case"System.UInt16":return s=>s;case"System.Int32":return s=>s;case"System.UInt32":return s=>s;case"System.Double":return s=>s;case"System.Single":return s=>s;case"System.DateTime":return l2;case"System.DateTimeOffset":return o2;case"System.TimeSpan":return s2;case"System.Guid":return i2;case"System.Object":return s=>s;default:return ad(e,t,n,r)}else{const s=o;return a=>s.contents(a)}}function c2(e){return pu({Compare:Br})}function xu(e,t,n,r){const i=Xe(t,new Un(0,[])),o=Xe(r,!0);return $n(c2(),i,o,e)}class Cu extends _e{constructor(t,n){super(),this.RowId=t|0,this.Data=n}}function am(){return Rt("Import.Dto.Shared.WorkspaceApi.ImportRowDataDto",[],Cu,()=>[["RowId",Je],["Data",rr("Microsoft.FSharp.Collections.FSharpMap`2",[Ht,Ht])]])}let lm=class extends _e{constructor(t,n){super(),this.IncludesEmploymentInfo=t,this.Data=n}};function d2(){return Rt("Import.Dto.Shared.WorkspaceApi.ValidateImportRequest.ImportDataDto",[],lm,()=>[["IncludesEmploymentInfo",go],["Data",ir(am())]])}class f2 extends _e{constructor(t,n,r){super(),this.Column=t,this.PropName=n,this.Message=r}}function m2(){return Rt("Import.Dto.Shared.WorkspaceApi.ValidateImportResponse.FieldErrorDto",[],f2,()=>[["Column",Ht],["PropName",Ht],["Message",Ht]])}class h2 extends _e{constructor(t,n){super(),this.RowId=t|0,this.FieldErrors=n}}function p2(){return Rt("Import.Dto.Shared.WorkspaceApi.ValidateImportResponse.RowValidationErrorDto",[],h2,()=>[["RowId",Je],["FieldErrors",ir(m2())]])}class g2 extends _e{constructor(t,n){super(),this.Errors=t,this.DuplicateEmailCount=n|0}}function w2(){return Rt("Import.Dto.Shared.WorkspaceApi.ValidateImportResponse.ValidationResultDto",[],g2,()=>[["Errors",ir(p2())],["DuplicateEmailCount",Je]])}class um extends _e{constructor(t,n,r){super(),this.IncludesEmploymentInfo=t,this.InviteNow=n,this.Data=r}}function y2(){return Rt("Import.Dto.Shared.WorkspaceApi.StartImportRequest.ImportDataDto",[],um,()=>[["IncludesEmploymentInfo",go],["InviteNow",go],["Data",ir(am())]])}class v2 extends _e{constructor(t){super(),this.ImportId=t|0}}function b2(){return Rt("Import.Dto.Shared.WorkspaceApi.StartImportResponse.ImportCreatedDto",[],v2,()=>[["ImportId",Je]])}class _2 extends _e{constructor(t,n){super(),this.DuplicateEmailCount=t|0,this.OtherFailuresCount=n|0}}function x2(){return Rt("Import.Dto.Shared.WorkspaceApi.GetImportStatusResponse.FailuresInfoDto",[],_2,()=>[["DuplicateEmailCount",Je],["OtherFailuresCount",Je]])}class C2 extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["AllRowsImported","SingleDuplicateEmail","ManyFailures"]}}function S2(){return No("Import.Dto.Shared.WorkspaceApi.GetImportStatusResponse.DoneStatsDto",[],C2,()=>[[["count",Je]],[["rowId",Je]],[["Item",x2()]]])}class E2 extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["InProgress","Done"]}}function A2(){return No("Import.Dto.Shared.WorkspaceApi.GetImportStatusResponse.ImportStatusDto",[],E2,()=>[[],[["Item",S2()]]])}class gn extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SectionOpened","UserImportFileUploaded","UserImportCanceled","UserImportProgressed","UserImportFieldPreviewed","UserImportValidationRequested","UserImportValidationCompleted","UserImportErrorReportDownloaded","UserImportRequested"]}}function k2(){return No("Import.Dto.Shared.WorkspaceApi.AnalyticsEventDto",[],gn,()=>[[["Item",qn(["Section",Ht])]],[["Item",qn(["Success",go])]],[["Item",qn(["From",Ht])]],[["Item",qn(["From",Ht],["To",Ht])]],[["Item",qn(["Field",Ht])]],[["Item",qn(["RowCount",Je])]],[["Item",qn(["DuplicateCount",Je],["RowCount",Je],["SuccessCount",Je],["TotalFailedCount",Je])]],[],[["Item",qn(["UsersInvited",go])]]])}function Lo(e){return`${e}/import/workspace/v1.0`}function Vo(e){return Z.Delay(()=>Z.Bind(Oc(e),t=>{const n=t;return n.statusCode===429||n.statusCode>=500?Z.ReturnFrom(Oc(e)):Z.Return(n)}))}function N2(e,t){return Z.Delay(()=>{let n;const r=Vo(Fo(new Di(0,[]),Oo(Lo(e)+"/accounts/current/imports")));return n=Z.Bind(r,i=>Z.Return(new M(0,[i]))),Z.Bind(n,i=>{const o=i;if(o.tag===1)return Z.Return(new M(1,[o.fields[0]]));{const s=o.fields[0];switch(s.statusCode|0){case 200:{let l;const u=ua(Ze(ca(r2(),new Un(1,[]))),s.responseText);return l=u.tag===1?new M(1,[u.fields[0]]):new M(0,[u.fields[0]]),Z.Return(l)}case 404:return Z.Return(new M(0,[void 0]));default:return Z.Return(new M(1,["Failed to get account imports"]))}}})})}function T2(e,t){return Z.Delay(()=>{let n,r;const i=Vo((n=Fo(new Di(1,[]),Oo(Lo(e)+"/accounts/current/import/validate")),gu(new sa(1,[_u(0,xu(d2(),new Un(1,[]),void 0,void 0)(t))]),n)));return r=Z.Bind(i,o=>Z.Return(new M(0,[o]))),Z.Bind(r,o=>{const s=o;if(s.tag===1)return Z.Return(new M(1,[s.fields[0]]));{const a=s.fields[0];if(a.statusCode===200){const l=ua(Ze(ca(w2(),new Un(1,[]))),a.responseText);return Z.Return(l)}else return Z.Return(new M(1,[`Failed to validate: ${a.responseText}`]))}})})}function $2(e,t){return Z.Delay(()=>{let n,r;const i=Vo((n=Fo(new Di(1,[]),Oo(Lo(e)+"/accounts/current/import/start")),gu(new sa(1,[_u(0,xu(y2(),new Un(1,[]),void 0,void 0)(t))]),n)));return r=Z.Bind(i,o=>Z.Return(new M(0,[o]))),Z.Bind(r,o=>{const s=o;if(s.tag===1)return Z.Return(new M(1,[s.fields[0]]));{const a=s.fields[0];if(a.statusCode===201){const l=ua(Ze(ca(b2(),new Un(1,[]))),a.responseText);return Z.Return(l)}else return Z.Return(new M(1,[`Failed to start import: ${a.responseText}`]))}})})}function M2(e,t){return Z.Delay(()=>{let n;const r=Vo(Fo(new Di(0,[]),Oo(Lo(e)+`/accounts/current/import/${t}/status`)));return n=Z.Bind(r,i=>Z.Return(new M(0,[i]))),Z.Bind(n,i=>{const o=i;if(o.tag===1)return Z.Return(new M(1,[o.fields[0]]));{const s=o.fields[0];if(s.statusCode===200){const a=ua(Ze(ca(A2(),new Un(1,[]))),s.responseText);return Z.Return(a)}else return Z.Return(new M(1,[`Failed to get import status: ${s.responseText}`]))}})})}function cm(e,t){return Z.Delay(()=>{let n;return Z.Bind(Vo((n=Fo(new Di(1,[]),Oo(Lo(e)+"/analytics")),gu(new sa(1,[_u(0,xu(k2(),new Un(1,[]),void 0,void 0)(t))]),n))),r=>{const i=r;return i.statusCode===200||console.warn(ct("Failed to send analytics: "),i.responseText),Z.Zero()})})}function I2(){return at()}function Su(e){return At("/",e)}function D2(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+Su(t),n])}function dm(e,t,n){try{$e(n)}catch(r){e(["Error stopping subscription: "+Su(t),r])}}function R2(e,t,n,r){try{return[n,r(t)]}catch(i){e(["Error starting subscription: "+Su(n),i]);return}}function O2(e,t){yo(n=>{dm(e,n[0],n[1])},t)}function ld(e,t,n,r,i,o){return yo(s=>{D2(e,s)},n),yo(s=>{dm(e,s[0],s[1])},r),Io(i,xg(s=>R2(e,t,s[0],s[1]),o))}function F2(){return[at(),by({Compare:Et}),at()]}function P2(e,t,n,r,i){return yl(e,r)?[en(e,n),r,i]:[n,vy(e,r),en([e,t],i)]}function L2(e){return hg((t,n)=>P2(t[0],t[1],n[0],n[1],n[2]),e,F2())}const V2=at();function ud(e,t){const n=_y(sr(s=>s[0],e),{Compare:Et}),r=L2(t),i=r[1],o=r[0];if(n.Equals(i))return[o,at(),e,at()];{const s=_g(a=>yl(a[0],i),e);return[o,s[1],s[0],Rn(a=>!yl(a[0],n),r[2])]}}class H2{constructor(t,n,r){this.OnNext=t,this.OnError=n||(i=>{}),this.OnCompleted=r||(()=>{})}}function j2(e,t){t.Subscribe(new H2(e))}class B2{constructor(){this.delegates=[]}_add(t){this.delegates.push(t)}_remove(t){const n=this.delegates.indexOf(t);n>-1&&this.delegates.splice(n,1)}get Publish(){return W2(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const i=n===void 0?t:(r=t,n);this.delegates.forEach(o=>{o(r,i)})}}let U2=class extends B2{};function W2(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(i,o)=>n.OnNext(o);return e(r),{Dispose(){t(r)}}}}}class G2{constructor(t){this._enabled=!1,this._isDisposed=!1,this._intervalId=0,this._timeoutId=0,this.Interval=t&&t>0?t:100,this.AutoReset=!0,this._elapsed=new U2}Elapsed(){return this._elapsed.Publish}get Enabled(){return this._enabled}set Enabled(t){!this._isDisposed&&this._enabled!==t&&(this._enabled=t,this._enabled?this.AutoReset?this._intervalId=setInterval(()=>{this.AutoReset||(this.Enabled=!1),this._elapsed.Trigger(new Date)},this.Interval):this._timeoutId=setTimeout(()=>{this.Enabled=!1,this._timeoutId=0,this.AutoReset&&(this.Enabled=!0),this._elapsed.Trigger(new Date)},this.Interval):(this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=0),this._intervalId&&(clearInterval(this._intervalId),this._intervalId=0)))}Dispose(){this.Enabled=!1,this._isDisposed=!0}Close(){this.Dispose()}Start(){this.Enabled=!0}Stop(){this.Enabled=!1}}function z2(e,t){console.error(ct(e),t)}function q2(e,t){let n,r=new G2(e);r.AutoReset=!1,n=r,j2(t,n.Elapsed()),n.Enabled=!0,n.Start()}function cd(e,t,n){yo(r=>{try{r(t)}catch(i){e(i)}},n)}function we(){return at()}function fm(e){return wg(e)}function mm(e){return ue(e)}function hm(e,t,n,r){return ue(i=>{e(Z.Delay(()=>Z.Bind(lw(t(n)),o=>{const s=o;return s.tag===0&&i(r(s.fields[0])),Z.Zero()})))})}function pm(e){q2(1,t=>{Ii(e)})}function Y2(e,t,n,r){const i=Et(e,n)|0;if(i===0)throw new Error("The step of a range cannot be zero");const o=i>0;return s=>{const a=Et(s,t)|0;return o&&a<=0||!o&&a>=0?[s,r(s,e)]:void 0}}function Z2(e,t,n,r,i){const o=Y2(t,n,r,i);return $(()=>Vg(o,e))}function Eu(e,t,n){return Z2(e,t,n,0,(r,i)=>r+i)}class di extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class K2{constructor(t){this.state=new di(0,[$o(new Array(Ac(t,10)),0,Ac(t,10),null),0])}}function X2(e){return new K2(e)}function dd(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,i=t.fields[0],o=(r+1)%i.length|0;return o===n?e.state=new di(0,[i,n]):e.state=new di(1,[i,n,o]),ct(he(r,i))}else return}function J2(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,i=n.fields[2]|0,o=n.fields[0];$t(o,r,t);const s=(r+1)%o.length|0;s===i?e.state=new di(1,[Q2(e,i,o),o.length,0]):e.state=new di(1,[o,s,i])}else{const r=n.fields[1]|0,i=n.fields[0];$t(i,r,t);const o=(r+1)%i.length|0;e.state=new di(1,[i,o,r])}}function Q2(e,t,n){return Array.from($(()=>H(zg(t,n),$(()=>H(qg(t,n),$(()=>ra(r=>k(Se()),Eu(0,1,n.length))))))))}class Au extends _e{constructor(t,n,r,i,o,s,a){super(),this.init=t,this.update=n,this.subscribe=r,this.view=i,this.setState=o,this.onError=s,this.termination=a}}function Ur(e,t,n){return new Au(e,t,r=>I2(),n,Ze(r=>{const i=Xn(n)(r);return o=>{i(o)}}),r=>{z2(r[0],r[1])},[r=>!1,r=>{}])}function ev(e,t){return new Au(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function tv(e){return e.init}function nv(e,t,n,r,i,o,s){const a=Xn(e)(s.init),l=Da(t)(Xn(s.update)),u=Da(n)(Xn(s.view)),d=Da(r)(Xn(s.setState));return new Au(a,Ze(l),Xn(i)(s.subscribe),Ze(u),Ze(d),s.onError,o(s.termination))}function rv(e,t,n){let r;const i=n.init(t),o=i[0],s=n.subscribe(o),a=n.termination,l=X2(10);let u=!1,d=o,f=V2,p=!1;const m=v=>{p||(J2(l,v),u||(u=!0,b(),u=!1))},h=Xn(e)(m),b=()=>{let v,_=dd(l);for(;!p&&_!=null;){const x=V(_);if(a[0](x))O2(n.onError,f),a[1](d),p=!0;else{const E=n.update(x,d),T=E[0],I=n.subscribe(T);n.setState(T,h),cd(O=>{n.onError([Mr(Hn("Error handling the message: %A"))(x),O])},h,E[1]),d=T,f=(v=ud(f,I),ld(n.onError,h,v[0],v[1],v[2],v[3])),_=dd(l)}}};u=!0,n.setState(o,h),cd(v=>{n.onError([Mr(Hn("Error intitializing:")),v])},h,i[1]),f=(r=ud(f,s),ld(n.onError,h,r[0],r[1],r[2],r[3])),b(),u=!1}function iv(e,t){rv(Ze(n=>n),e,t)}function ov(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Ha={exports:{}},ja={};const sv=ov(_s);/**
38
+ * @license React
39
+ * use-sync-external-store-shim.production.min.js
40
+ *
41
+ * Copyright (c) Facebook, Inc. and its affiliates.
42
+ *
43
+ * This source code is licensed under the MIT license found in the
44
+ * LICENSE file in the root directory of this source tree.
45
+ */var fd;function av(){if(fd)return ja;fd=1;var e=sv;function t(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,o=e.useLayoutEffect,s=e.useDebugValue;function a(f,p){var m=p(),h=r({inst:{value:m,getSnapshot:p}}),b=h[0].inst,v=h[1];return o(function(){b.value=m,b.getSnapshot=p,l(b)&&v({inst:b})},[f,m,p]),i(function(){return l(b)&&v({inst:b}),f(function(){l(b)&&v({inst:b})})},[f]),s(m),m}function l(f){var p=f.getSnapshot;f=f.value;try{var m=p();return!n(f,m)}catch{return!0}}function u(f,p){return p()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:a;return ja.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,ja}var md;function lv(){return md||(md=1,Ha.exports=av()),Ha.exports}var uv=lv();class cv{constructor(t,n,r){this.arg=n,this.dependencies=r;const i=t(),o=[];this.finalDispatch=void 0;let s;const a=tv(i)(this.arg);let l=a[0],u=a[1];s=[[l,d=>{const f=this.finalDispatch;f==null?o.push(d):f(d)},!1,o],u],this.state=s[0],this.cmd=s[1],this.subscribe=d=>{let f=!1;const p=cl(this.state[0]);return iv(this.arg,ev((m,h)=>{const b=this.state;this.finalDispatch=h,this.state=[m,b[1],!0,o],m!==b[0]&&d()},nv((m,h)=>{const b=this.cmd;return this.cmd=we(),[this.state[0],b]},(m,h,b)=>m(h)(this.state[0]),fl(m=>m),fl(m=>m),Ze(m=>m),m=>[h=>m[0](h)?!0:p&&f,h=>{const b=h;cl(b)?$e(b):m[1](h)}],i))),()=>{f=!0}}}}function hd(e,t,n){return new cv(e,t,n)}function dv(e){return e.state}function fv(e){return e.subscribe}function mv(e,t,n){return te(e.arg,t)?!te(e.dependencies,n):!0}function Wr(e,t,n){const r=be(()=>hd(e,t,n)),i=r[0];mv(i,t,n)&&r[1](hd(e,t,n));const o=uv.useSyncExternalStore(fv(i),()=>dv(i)),s=o[2],a=o[3],l=o[1];return Fe(()=>{if(s&&a.length>0){let u=Oe(a);try{for(;u["System.Collections.IEnumerator.MoveNext"]();){const d=u["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{l(d)})}}finally{$e(u)}p1(a)}},[s,a]),[o[0],l]}class vl extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Asc","Desc"]}}function hv(e){return e.tag===1?new vl(0,[]):new vl(1,[])}function pv(e,t,n){return e.tag===1?Sg(t,n,{Compare:Et}):Cg(t,n,{Compare:Et})}class da extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Requested","Finished"]}}function Pn(e,t){return mm(n=>{e(t)})}let ms=class extends _e{constructor(t){super(),this.View=t}},hs=class extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Loaded","Error"]}},gm=class extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["GetAccountImports"]}};function gv(){return[new ms(new hs(0,[])),ue(e=>{e(new gm(new da(0,[void 0])))})]}function wv(e,t,n){return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new ms(new hs(2,[t.fields[0].fields[0].fields[0]])),we()]:[new ms(new hs(1,[t.fields[0].fields[0].fields[0]])),we()]:[new ms(new hs(0,[])),hm(r=>{pm(r)},e,void 0,r=>new gm(new da(1,[r])))]}class yv extends _e{constructor(t){super(),this.UserActivities=t}}class pd extends _e{constructor(t,n,r){super(),this.Timestamp=t,this.User=n,this.Activity=r}}function vv(e,t){const n=t.toLocaleLowerCase();return e.Name.toLocaleLowerCase().indexOf(n)>=0?!0:Xe(_t(r=>r.toLocaleLowerCase().indexOf(n)>=0,e.Email),!1)}function bv(e){return Io(g(Ti(_t(t=>new pd(t.StartTime,t.User,`Processing ${t.NumberOfRecords} records`),e.ActiveImport))),sr(t=>new pd(t.StartTime,t.User,Xe(_t(n=>`Added ${n.SucceededRowCount} users via Csv`,w0(n=>te(n.Stage,new rm(0,[])),t.CompletedStages)),`Processed ${t.NumberOfRecords} records`)),e.ImportHistory))}function _v(e){return new yv(Xe(_t(bv,e),at()))}class gd extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Error","TableData"]}}class xv extends _e{constructor(t,n){super(),this.Data=t,this.IsFiltered=n}}class Ho extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["PaginatedList"]}}class Cv extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["SortedList"]}}class Sv extends _e{constructor(t,n){super(),this.SortInfo=t,this.SortDirectionToggledHandler=n}}class wm extends _e{constructor(t,n){super(),this.Column=t,this.Direction=n}}class Ev extends W{constructor(){super(),this.tag=0,this.fields=[]}cases(){return["Time"]}}class Is extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NonEmptyPagingInfo","EmptyPagingInfo"]}}class Av extends _e{constructor(t,n,r,i,o){super(),this.CurrentPage=t|0,this.FirstRowIndex=n|0,this.LastRowIndex=r|0,this.TotalRecordsNumber=i|0,this.PageSize=o|0}}function kv(e){return e.tag===1?ym(e.fields[0].Data):_m()}function Nv(e){return e.tag===1?Oi(e.fields[0].Data):new Is(1,[])}function Tv(e){const t=ku(_m(),e);return new Ho([Cm(tn(e),20),t])}function jo(e){return e.fields[0][1]}function ym(e){return bm(jo(e))}function $v(e){return Nu(jo(e))}function Oi(e){return e.fields[0][0]}function Mv(e){const t=Oi(e);if(t.tag===0){const n=t.fields[0],r=v0(n.FirstRowIndex,$v(e));return b0(Uv(n),r)}else return at()}function vm(e,t){const n=ku(ym(e),t);return new Ho([Hv(Oi(e),tn(Nu(n))),n])}function Iv(e){return new Ho([Oi(e),Ov(jo(e))])}function Dv(e){return new Ho([Vv(Oi(e)),jo(e)])}function Rv(e){return new Ho([Lv(Oi(e)),jo(e)])}function ku(e,t){return new Cv([e,pv(e.Direction,n=>n.Timestamp,t)])}function Nu(e){return e.fields[0][1]}function bm(e){return e.fields[0][0]}function Ov(e){return ku(Fv(bm(e)),Nu(e))}function _m(){return new wm(new Ev,new vl(0,[]))}function Fv(e){return new wm(e.Column,hv(e.Direction))}function xm(e,t){return~~(e/t)+(e%t===0?0:1)}function fa(e,t,n){if(e<=0)return new Is(1,[]);{const r=kc(n,xm(e,t))|0,i=(r-1)*t|0;return new Is(0,[new Av(r,i,kc(i+t-1,e-1),e,t)])}}function Cm(e,t){return fa(e,t,1)}function Pv(e){if(e.tag===0){const t=e.fields[0];return xm(t.TotalRecordsNumber,t.PageSize)|0}else return 0}function Sm(e){return e.tag===0?e.fields[0].CurrentPage<Pv(e):!1}function Em(e){return e.tag===0?e.fields[0].CurrentPage>1:!1}function Lv(e){const t=Em(e);let n;switch(t&&e.tag===0?n=0:n=1,n){case 0:{const r=e.fields[0];return fa(r.TotalRecordsNumber,r.PageSize,r.CurrentPage-1)}default:return e}}function Vv(e){const t=Sm(e);let n;switch(t&&e.tag===0?n=0:n=1,n){case 0:{const r=e.fields[0];return fa(r.TotalRecordsNumber,r.PageSize,r.CurrentPage+1)}default:return e}}function Hv(e,t){return t<=0?new Is(1,[]):e.tag===0?fa(t,20,e.fields[0].CurrentPage):Cm(t,20)}function jv(e){return e.FirstRowIndex+1}function Bv(e){return e.LastRowIndex+1}function Uv(e){return e.LastRowIndex-e.FirstRowIndex+1}let lr=class extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["LoadingError","ValidState"]}};class Fi extends _e{constructor(t,n,r){super(),this.ImportHistory=t,this.View=n,this.PaginatedList=r}}class Tu extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Default","Filtered"]}}function Wv(e){if(e.tag===1)return Am(e.fields[0])}function Gv(e){return e.tag===0}function zv(e){return e.tag===1?new gd(1,[Qv(e.fields[0])]):new gd(0,[])}function Am(e){const t=e.View;if(t.tag===1)return t.fields[0]}function qv(e){return Am(e)!=null}function Yv(e,t){return new lr(1,[new Fi(e.ImportHistory,new Tu(1,[t]),vm(e.PaginatedList,Rn(n=>vv(n.User,t),e.ImportHistory.UserActivities)))])}function Zv(e){return new lr(1,[new Fi(e.ImportHistory,new Tu(0,[]),vm(e.PaginatedList,e.ImportHistory.UserActivities))])}function Kv(e){return new lr(1,[new Fi(e.ImportHistory,e.View,Iv(e.PaginatedList))])}function Xv(e){return new lr(1,[new Fi(e.ImportHistory,e.View,Dv(e.PaginatedList))])}function Jv(e){return new lr(1,[new Fi(e.ImportHistory,e.View,Rv(e.PaginatedList))])}function Qv(e){return new xv(e.PaginatedList,qv(e))}let fi=class extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ApplyFilter","ClearFilter","ToggleSortDirection","NextPage","PrevPage"]}};function eb(e){let t;return[e.tag===1?new lr(0,[]):(t=e.fields[0],new lr(1,[new Fi(t,new Tu(0,[]),Tv(t.UserActivities))])),we()]}function km(e,t){return e.tag===1?t(e.fields[0]):[new lr(0,[]),we()]}function tb(e,t){return km(e,n=>[t(n),we()])}function nb(e,t){const n=r=>tb(t,r);switch(e.tag){case 1:return n(Zv);case 2:return n(Kv);case 3:return n(Xv);case 4:return n(Jv);default:{const r=e.fields[0];return km(t,i=>ru(r)?[t,ue(o=>{o(new fi(1,[]))})]:[Yv(i,r),we()])}}}function rb(e,t){let n,r;return c("svg",w(g([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",24],["xmlns","http://www.w3.org/2000/svg"],(n=ue(c("path",w(g([(r="M6.77835 19.8844C6.74702 19.9444 6.7414 20.0146 6.76278 20.0789C6.78416 20.1432 6.83071 20.196 6.89177 20.2254L7.82464 20.6734C7.9462 20.7317 8.09214 20.6832 8.15452 20.5636L16.5023 4.56364C16.5337 4.50358 16.5393 4.43338 16.5179 4.3691C16.4965 4.30482 16.45 4.25197 16.3889 4.22264L15.4561 3.77464C15.3345 3.71627 15.1886 3.76481 15.1262 3.88436L6.77835 19.8844Z",["d",r]),["fill","#D1D5DB"],["stroke","#D1D5DB"],["strokeWidth",.5],["strokeLinejoin","round"]])))),["children",y.Children.toArray(Array.from(n))])])))}function ib(){let e,t,n;return c("div",w(g([["className","self-stretch px-12 pt-8 pb-4 bg-white justify-start items-end gap-6 inline-flex"],(e=[c("div",w(g([["className","grow shrink basis-0 h-[34px] rounded-md justify-start items-center gap-1 flex"],(t=[c("div",{className:"text-gray-900 text-2xl font-bold font-['BR Sonoma'] leading-7",children:"Users"}),c("div",w(g([["className","w-6 h-6 text-gray-900 relative overflow-hidden"],(n=[rb(24,24)],["children",y.Children.toArray(Array.from(n))])]))),c("div",{className:"text-gray-900 text-2xl font-bold font-['BR Sonoma'] leading-7",children:"Past activities"})],["children",y.Children.toArray(Array.from(t))])])))],["children",y.Children.toArray(Array.from(e))])])))}function ob(e,t){let n,r;return c("svg",w(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=ue(c("path",w(g([["clipRule","evenodd"],(r="M8 4C5.79086 4 4 5.79086 4 8C4 10.2091 5.79086 12 8 12C10.2091 12 12 10.2091 12 8C12 5.79086 10.2091 4 8 4ZM2 8C2 4.68629 4.68629 2 8 2C11.3137 2 14 4.68629 14 8C14 9.29583 13.5892 10.4957 12.8907 11.4765L17.7071 16.2929C18.0976 16.6834 18.0976 17.3166 17.7071 17.7071C17.3166 18.0976 16.6834 18.0976 16.2929 17.7071L11.4765 12.8907C10.4957 13.5892 9.29583 14 8 14C4.68629 14 2 11.3137 2 8Z",["d",r]),["fill","#9CA3AF"]])))),["children",y.Children.toArray(Array.from(n))])])))}function Ds(e,t){let n,r;return c("svg",w(g([["width",e],["height",t],["viewBox","0 0 "+e+" "+t],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(n=ue(c("path",w(g([(r="M9.70757 0.292433C9.52026 0.105188 9.26626 0 9.00142 0C8.73658 0 8.48257 0.105188 8.29527 0.292433L5.00624 3.58146L1.71721 0.292433C1.52884 0.110495 1.27654 0.00982222 1.01466 0.0120979C0.752781 0.0143736 0.502271 0.119416 0.317087 0.3046C0.131902 0.489785 0.0268602 0.740295 0.0245845 1.00218C0.0223088 1.26406 0.122982 1.51635 0.30492 1.70473L3.59395 4.99376L0.30492 8.28279C0.209525 8.37492 0.133435 8.48513 0.0810888 8.60699C0.028743 8.72885 0.00119014 8.85991 3.77112e-05 8.99253C-0.00111471 9.12515 0.0241565 9.25667 0.0743768 9.37942C0.124597 9.50216 0.19876 9.61368 0.29254 9.70746C0.386319 9.80124 0.497837 9.8754 0.620585 9.92562C0.743333 9.97584 0.874854 10.0011 1.00747 9.99996C1.14009 9.99881 1.27115 9.97126 1.39301 9.91891C1.51487 9.86657 1.62508 9.79047 1.71721 9.69508L5.00624 6.40605L8.29527 9.69508C8.48365 9.87702 8.73594 9.97769 8.99782 9.97542C9.25971 9.97314 9.51022 9.8681 9.6954 9.68291C9.88058 9.49773 9.98563 9.24722 9.9879 8.98534C9.99018 8.72346 9.88951 8.47116 9.70757 8.28279L6.41854 4.99376L9.70757 1.70473C9.89481 1.51743 10 1.26343 10 0.998581C10 0.733736 9.89481 0.479735 9.70757 0.292433Z",["d",r]),["fill","currentColor"]])))),["children",y.Children.toArray(Array.from(n))])])))}class wd extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateFilter","ClearFilter"]}}function sb(e){let t,n;const r=Xe(e.Value,"");return c("div",w(g([["className","self-stretch justify-start items-start gap-4 inline-flex"],(t=[c("div",w(g([["className",At(" ",["relative w-96 overflow-hidden focus:outline-none focus:border-blue-600"])],(n=K($(()=>{let i;return H(k(c("div",w(g([["className","pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3"],(i=[ob(20,20)],["children",y.Children.toArray(Array.from(i))])])))),$(()=>{let o;return H(k(c("input",w(g([(o="rounded-md border-0 py-[0.5625rem] px-10 ring-1 ring-inset ring-gray-300 placeholder:text-gray-500 text-gray-900 focus:ring-2 focus:ring-inset focus:ring-primary-600 bg-white text-sm w-full",["className",o]),["placeholder","Search actors..."],["autoComplete","off"],["onChange",s=>{e.ActionHandler(new wd(0,[s.target.value]))}],["value",r],["disabled",e.Disabled]])))),$(()=>{let s;return ru(r)?k(Se()):k(c("div",w(g([["onClick",a=>{e.ActionHandler(new wd(1,[]))}],["className","absolute inset-y-0 right-0 flex items-center pr-3 cursor-pointer text-gray-600"],(s=[Ds(10,10)],["children",y.Children.toArray(Array.from(s))])]))))}))}))})),["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function ab(e){let t,n;const r=e.height,i=e.width;return c("svg",w(g([["fill","none"],["height",r],["width",i],["viewBox","0 0 "+i+" "+r],["xmlns","http://www.w3.org/2000/svg"],(t=ue(c("path",w(g([(n="M4.98771 6.01229C4.72252 6.01223 4.4682 5.90684 4.28071 5.71929L0.280712 1.71929C0.0985537 1.53069 -0.00224062 1.27808 3.78026e-05 1.01589C0.00231622 0.75369 0.107485 0.502878 0.292893 0.31747C0.478301 0.132062 0.729114 0.0268924 0.99131 0.0246139C1.25351 0.0223355 1.50611 0.12313 1.69471 0.305288L4.98771 3.59829L8.28071 0.305288C8.37296 0.209778 8.4833 0.133596 8.60531 0.0811869C8.72731 0.0287779 8.85853 0.00119157 8.99131 3.77571e-05C9.12409 -0.00111606 9.25577 0.0241854 9.37867 0.0744663C9.50156 0.124747 9.61321 0.199 9.70711 0.292893C9.801 0.386786 9.87525 0.498438 9.92553 0.621334C9.97581 0.744231 10.0011 0.87591 9.99996 1.00869C9.99881 1.14147 9.97122 1.27269 9.91881 1.39469C9.8664 1.5167 9.79022 1.62704 9.69471 1.71929L5.69471 5.71929C5.50722 5.90684 5.25291 6.01223 4.98771 6.01229Z",["d",n]),["fill","#111827"]])))),["children",y.Children.toArray(Array.from(t))])])))}function lb(e){let t;const n=e.sortDirectionChangeHandler,r=e.sortDirection;return c("div",w(g([["className",At(" ",K($(()=>H(k("w-5 h-5 bg-gray-200 rounded overflow-hidden flex flex-col justify-center items-center"),$(()=>r.tag===1?k("rotate-180"):k(""))))))],["onClick",i=>{n(void 0)}],(t=[c(ab,{width:10,height:7})],["children",y.Children.toArray(Array.from(t))])])))}function ub(e){const t=e.toggleSortDirection,n=e.props;return c(lb,{sortDirection:n.Direction,sortDirectionChangeHandler:t})}function cb(e){let t,n,r,i;const o=c(ub,{props:e.SortInfo,toggleSortDirection:e.SortDirectionToggledHandler});return c("div",w(g([["className","flex-none grid grid-cols-7"],(t=[c("div",w(g([["className","col-span-1 px-6 py-3.5 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 flex"],(n=[c("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Time"}),o],["children",y.Children.toArray(Array.from(n))])]))),c("div",w(g([["className","col-span-2 px-6 py-3.5 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 flex"],(r=[c("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Actor"})],["children",y.Children.toArray(Array.from(r))])]))),c("div",w(g([["className","col-span-4 px-6 py-3.5 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 flex"],(i=[c("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Activity"})],["children",y.Children.toArray(Array.from(i))])])))],["children",y.Children.toArray(Array.from(t))])])))}function Rs(e){"@babel/helpers - typeof";return Rs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rs(e)}function Or(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Ot(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function En(e){Ot(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Rs(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function db(e,t){Ot(2,arguments);var n=En(e).getTime(),r=Or(t);return new Date(n+r)}var fb={};function ma(){return fb}function mb(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function hb(e){return Ot(1,arguments),e instanceof Date||Rs(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function pb(e){if(Ot(1,arguments),!hb(e)&&typeof e!="number")return!1;var t=En(e);return!isNaN(Number(t))}function gb(e,t){Ot(2,arguments);var n=Or(t);return db(e,-n)}var wb=864e5;function yb(e){Ot(1,arguments);var t=En(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),i=n-r;return Math.floor(i/wb)+1}function Os(e){Ot(1,arguments);var t=1,n=En(e),r=n.getUTCDay(),i=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function Nm(e){Ot(1,arguments);var t=En(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=Os(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var s=Os(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function vb(e){Ot(1,arguments);var t=Nm(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=Os(n);return r}var bb=6048e5;function _b(e){Ot(1,arguments);var t=En(e),n=Os(t).getTime()-vb(t).getTime();return Math.round(n/bb)+1}function Fs(e,t){var n,r,i,o,s,a,l,u;Ot(1,arguments);var d=ma(),f=Or((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&r!==void 0?r:(l=d.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=En(e),m=p.getUTCDay(),h=(m<f?7:0)+m-f;return p.setUTCDate(p.getUTCDate()-h),p.setUTCHours(0,0,0,0),p}function Tm(e,t){var n,r,i,o,s,a,l,u;Ot(1,arguments);var d=En(e),f=d.getUTCFullYear(),p=ma(),m=Or((n=(r=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:p.firstWeekContainsDate)!==null&&r!==void 0?r:(l=p.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(f+1,0,m),h.setUTCHours(0,0,0,0);var b=Fs(h,t),v=new Date(0);v.setUTCFullYear(f,0,m),v.setUTCHours(0,0,0,0);var _=Fs(v,t);return d.getTime()>=b.getTime()?f+1:d.getTime()>=_.getTime()?f:f-1}function xb(e,t){var n,r,i,o,s,a,l,u;Ot(1,arguments);var d=ma(),f=Or((n=(r=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:d.firstWeekContainsDate)!==null&&r!==void 0?r:(l=d.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1),p=Tm(e,t),m=new Date(0);m.setUTCFullYear(p,0,f),m.setUTCHours(0,0,0,0);var h=Fs(m,t);return h}var Cb=6048e5;function Sb(e,t){Ot(1,arguments);var n=En(e),r=Fs(n,t).getTime()-xb(n,t).getTime();return Math.round(r/Cb)+1}function He(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var Yn={y:function(t,n){var r=t.getUTCFullYear(),i=r>0?r:1-r;return He(n==="yy"?i%100:i,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):He(r+1,2)},d:function(t,n){return He(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return He(t.getUTCHours()%12||12,n.length)},H:function(t,n){return He(t.getUTCHours(),n.length)},m:function(t,n){return He(t.getUTCMinutes(),n.length)},s:function(t,n){return He(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,i=t.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,r-3));return He(o,n.length)}},Zr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Eb={G:function(t,n,r){var i=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var i=t.getUTCFullYear(),o=i>0?i:1-i;return r.ordinalNumber(o,{unit:"year"})}return Yn.y(t,n)},Y:function(t,n,r,i){var o=Tm(t,i),s=o>0?o:1-o;if(n==="YY"){var a=s%100;return He(a,2)}return n==="Yo"?r.ordinalNumber(s,{unit:"year"}):He(s,n.length)},R:function(t,n){var r=Nm(t);return He(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return He(r,n.length)},Q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return He(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return He(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,n,r){var i=t.getUTCMonth();switch(n){case"M":case"MM":return Yn.M(t,n);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(t,n,r){var i=t.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return He(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(t,n,r,i){var o=Sb(t,i);return n==="wo"?r.ordinalNumber(o,{unit:"week"}):He(o,n.length)},I:function(t,n,r){var i=_b(t);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):He(i,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):Yn.d(t,n)},D:function(t,n,r){var i=yb(t);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):He(i,n.length)},E:function(t,n,r){var i=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(t,n,r,i){var o=t.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(s);case"ee":return He(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(t,n,r,i){var o=t.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(s);case"cc":return He(s,n.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(t,n,r){var i=t.getUTCDay(),o=i===0?7:i;switch(n){case"i":return String(o);case"ii":return He(o,n.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(t,n,r){var i=t.getUTCHours(),o=i/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,n,r){var i=t.getUTCHours(),o;switch(i===12?o=Zr.noon:i===0?o=Zr.midnight:o=i/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,n,r){var i=t.getUTCHours(),o;switch(i>=17?o=Zr.evening:i>=12?o=Zr.afternoon:i>=4?o=Zr.morning:o=Zr.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var i=t.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return Yn.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Yn.H(t,n)},K:function(t,n,r){var i=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):He(i,n.length)},k:function(t,n,r){var i=t.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):He(i,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Yn.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Yn.s(t,n)},S:function(t,n){return Yn.S(t,n)},X:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();if(s===0)return"Z";switch(n){case"X":return vd(s);case"XXXX":case"XX":return vr(s);case"XXXXX":case"XXX":default:return vr(s,":")}},x:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"x":return vd(s);case"xxxx":case"xx":return vr(s);case"xxxxx":case"xxx":default:return vr(s,":")}},O:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+yd(s,":");case"OOOO":default:return"GMT"+vr(s,":")}},z:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+yd(s,":");case"zzzz":default:return"GMT"+vr(s,":")}},t:function(t,n,r,i){var o=i._originalDate||t,s=Math.floor(o.getTime()/1e3);return He(s,n.length)},T:function(t,n,r,i){var o=i._originalDate||t,s=o.getTime();return He(s,n.length)}};function yd(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(o===0)return n+String(i);var s=t;return n+String(i)+s+He(o,2)}function vd(e,t){if(e%60===0){var n=e>0?"-":"+";return n+He(Math.abs(e)/60,2)}return vr(e,t)}function vr(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),o=He(Math.floor(i/60),2),s=He(i%60,2);return r+o+n+s}var bd=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},$m=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},Ab=function(t,n){var r=t.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return bd(t,n);var s;switch(i){case"P":s=n.dateTime({width:"short"});break;case"PP":s=n.dateTime({width:"medium"});break;case"PPP":s=n.dateTime({width:"long"});break;case"PPPP":default:s=n.dateTime({width:"full"});break}return s.replace("{{date}}",bd(i,n)).replace("{{time}}",$m(o,n))},kb={p:$m,P:Ab},Nb=["D","DD"],Tb=["YY","YYYY"];function $b(e){return Nb.indexOf(e)!==-1}function Mb(e){return Tb.indexOf(e)!==-1}function _d(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Ib={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Db=function(t,n,r){var i,o=Ib[t];return typeof o=="string"?i=o:n===1?i=o.one:i=o.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};function Ba(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var Rb={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ob={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Fb={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Pb={date:Ba({formats:Rb,defaultWidth:"full"}),time:Ba({formats:Ob,defaultWidth:"full"}),dateTime:Ba({formats:Fb,defaultWidth:"full"})},Lb={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Vb=function(t,n,r,i){return Lb[t]};function Xi(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):o;i=e.formattingValues[s]||e.formattingValues[o]}else{var a=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[a]}var u=e.argumentCallback?e.argumentCallback(t):t;return i[u]}}var Hb={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},jb={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Bb={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Ub={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Wb={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Gb={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},zb=function(t,n){var r=Number(t),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},qb={ordinalNumber:zb,era:Xi({values:Hb,defaultWidth:"wide"}),quarter:Xi({values:jb,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Xi({values:Bb,defaultWidth:"wide"}),day:Xi({values:Ub,defaultWidth:"wide"}),dayPeriod:Xi({values:Wb,defaultWidth:"wide",formattingValues:Gb,defaultFormattingWidth:"wide"})};function Ji(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var s=o[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?Zb(a,function(f){return f.test(s)}):Yb(a,function(f){return f.test(s)}),u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;var d=t.slice(s.length);return{value:u,rest:d}}}function Yb(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function Zb(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function Kb(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],o=t.match(e.parsePattern);if(!o)return null;var s=e.valueCallback?e.valueCallback(o[0]):o[0];s=n.valueCallback?n.valueCallback(s):s;var a=t.slice(i.length);return{value:s,rest:a}}}var Xb=/^(\d+)(th|st|nd|rd)?/i,Jb=/\d+/i,Qb={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},e_={any:[/^b/i,/^(a|c)/i]},t_={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},n_={any:[/1/i,/2/i,/3/i,/4/i]},r_={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},i_={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},o_={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},s_={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},a_={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},l_={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},u_={ordinalNumber:Kb({matchPattern:Xb,parsePattern:Jb,valueCallback:function(t){return parseInt(t,10)}}),era:Ji({matchPatterns:Qb,defaultMatchWidth:"wide",parsePatterns:e_,defaultParseWidth:"any"}),quarter:Ji({matchPatterns:t_,defaultMatchWidth:"wide",parsePatterns:n_,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Ji({matchPatterns:r_,defaultMatchWidth:"wide",parsePatterns:i_,defaultParseWidth:"any"}),day:Ji({matchPatterns:o_,defaultMatchWidth:"wide",parsePatterns:s_,defaultParseWidth:"any"}),dayPeriod:Ji({matchPatterns:a_,defaultMatchWidth:"any",parsePatterns:l_,defaultParseWidth:"any"})},c_={code:"en-US",formatDistance:Db,formatLong:Pb,formatRelative:Vb,localize:qb,match:u_,options:{weekStartsOn:0,firstWeekContainsDate:1}},d_=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,f_=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,m_=/^'([^]*?)'?$/,h_=/''/g,p_=/[a-zA-Z]/;function Mm(e,t,n){var r,i,o,s,a,l,u,d,f,p,m,h,b,v;Ot(2,arguments);var _=String(t),x=ma(),E=(r=(i=void 0)!==null&&i!==void 0?i:x.locale)!==null&&r!==void 0?r:c_,T=Or((o=(s=(a=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&a!==void 0?a:x.firstWeekContainsDate)!==null&&s!==void 0?s:(u=x.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var I=Or((f=(p=(m=(h=void 0)!==null&&h!==void 0?h:void 0)!==null&&m!==void 0?m:x.weekStartsOn)!==null&&p!==void 0?p:(b=x.locale)===null||b===void 0||(v=b.options)===null||v===void 0?void 0:v.weekStartsOn)!==null&&f!==void 0?f:0);if(!(I>=0&&I<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!E.localize)throw new RangeError("locale must contain localize property");if(!E.formatLong)throw new RangeError("locale must contain formatLong property");var O=En(e);if(!pb(O))throw new RangeError("Invalid time value");var P=mb(O),S=gb(O,P),C={firstWeekContainsDate:T,weekStartsOn:I,locale:E,_originalDate:O},A=_.match(f_).map(function(N){var D=N[0];if(D==="p"||D==="P"){var F=kb[D];return F(N,E.formatLong)}return N}).join("").match(d_).map(function(N){if(N==="''")return"'";var D=N[0];if(D==="'")return g_(N);var F=Eb[D];if(F)return Mb(N)&&_d(N,t,String(e)),$b(N)&&_d(N,t,String(e)),F(S,N,E.localize,C);if(D.match(p_))throw new RangeError("Format string contains an unescaped latin alphabet character `"+D+"`");return N}).join("");return A}function g_(e){var t=e.match(m_);return t?t[1].replace(h_,"'"):e}function w_(e){return Mm(e,"d MMM, yyyy")}function y_(e){return Mm(e,"h:mm a")}function v_(e){let t,n,r,i,o,s,a;return c("div",w(g([["className","grid grid-cols-7"],(t=[c("div",w(g([["className","col-span-1 px-6 py-4 bg-white border-b border-gray-200 flex justify-start items-center gap-4"],(n=[c("div",w(g([["className"," flex flex-col justify-center items-start"],(r=[c("div",w(g([["className","self-stretch justify-start items-center gap-2 inline-flex"],(i=[c("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:w_(e.Timestamp)})],["children",y.Children.toArray(Array.from(i))])]))),c("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:y_(e.Timestamp)})],["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(n))])]))),c("div",w(g([["className","col-span-2 px-6 py-4 bg-white border-b border-gray-200 flex justify-start items-start gap-4"],(o=[c("div",w(g([["className","justify-center items-start flex flex-col"],(s=K($(()=>{let l;return H(k(c("div",w(g([["className","self-stretch justify-start items-center gap-2 inline-flex"],(l=[c("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:e.User.Name})],["children",y.Children.toArray(Array.from(l))])])))),$(()=>{const u=e.User.Email;return u==null?k(Se()):k(c("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:u}))}))})),["children",y.Children.toArray(Array.from(s))])])))],["children",y.Children.toArray(Array.from(o))])]))),c("div",w(g([["className","col-span-4 px-6 py-4 bg-white border-b border-gray-200 justify-start items-center gap-1 flex"],(a=[c("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:e.Activity})],["children",y.Children.toArray(Array.from(a))])])))],["children",y.Children.toArray(Array.from(t))])])))}function b_(e){const t=sr(n=>c(v_,n),e.Data);return c("div",{className:"self-stretch flex flex-col justify-start items-stretch",children:y.Children.toArray(Array.from(t))})}function __(e){let t,n,r,i,o;const s=e.height,a=e.width;return c("svg",w(g([["width",a],["height",s],["viewBox","0 0 "+a+" "+s],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(t=g([c("path",w(g([(n="M60 100C37.9441 100 20 82.0567 20 60C20 37.9433 37.9441 20 60 20C82.0559 20 100 37.9433 100 60C100 82.0567 82.0559 100 60 100Z",["d",n]),["fill","url(#paint0_linear_3770_593)"]]))),c("path",{d:"M60 42V67",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),c("path",w(g([(r="M60 76C60.5523 76 61 75.5523 61 75C61 74.4477 60.5523 74 60 74C59.4477 74 59 74.4477 59 75C59 75.5523 59.4477 76 60 76Z",["d",r]),["stroke","#111827"],["strokeWidth",2],["strokeLinecap","round"],["strokeLinejoin","round"]]))),(i=ue(c("linearGradient",w(g([["id","paint0_linear_3770_593"],["x1",20],["y1",20],["x2",100],["y2",20],(o=g([c("stop",{offset:0,stopColor:"#FFD84D"}),c("stop",{offset:1,stopColor:"#FF876F"})]),["children",y.Children.toArray(Array.from(o))])])))),c("defs",{children:y.Children.toArray(Array.from(i))}))]),["children",y.Children.toArray(Array.from(t))])])))}function x_(){let e;return c("div",w(g([["className","w-[120px] h-[120px] flex flex-col justify-center items-center"],(e=[c(__,{width:120,height:120})],["children",y.Children.toArray(Array.from(e))])])))}function C_(){let e,t,n,r;return c("div",w(g([["className","self-stretch grow shrink basis-0 flex flex-col justify-center items-center"],(e=[c(x_,null),c("div",w(g([["className","flex-col justify-start items-center gap-6 inline-flex"],(t=[c("div",w(g([["className","self-stretch h-[72px] flex-col justify-start items-start gap-3 flex"],(n=[c("div",w(g([["className","h-[72px] flex-col justify-start items-center gap-1 flex"],(r=[c("div",{className:"self-stretch text-center text-gray-900 text-xl font-bold leading-7",children:"We couldn’t load your past activities"}),c("div",{className:"self-stretch text-center text-gray-500 text-sm font-normal leading-tight",children:"Something went wrong while retrieving your activities. Please refresh the page to try again."})],["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))],["children",y.Children.toArray(Array.from(e))])])))}function S_(e){return{Data:Mv(e.Data)}}function E_(e){let t;const n=e.props,r=n.tag===1?c(b_,S_(n.fields[0])):c(C_,null);return c("div",w(g([["className","relative h-full grow"],(t=[c("div",{className:"overflow-y-auto self-stretch flex flex-col justify-start",style:{scrollbarWidth:"none"},children:y.Children.toArray([r])})],["children",y.Children.toArray(Array.from(t))])])))}class xd extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Prev","Next"]}}function A_(e){let t,n;const r=e.pageChangedHandler,i=e.pagingInfo;return c("div",w(g([["className","flex-none h-[60px] bg-white flex-col justify-start items-start flex"],(t=[c("div",{className:"self-stretch h-px bg-gray-200"}),c("div",w(g([["className","self-stretch px-6 py-3 justify-between items-center inline-flex"],(n=K($(()=>{let o,s,a;return H((o=i,o.tag===1?k(c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:"No results found"})):(s=o.fields[0],k((a=g([c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:pn(jv(s))}),c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" to "}),c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:pn(Bv(s))}),c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" of "}),c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:pn(s.TotalRecordsNumber)}),c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" results"})]),c("div",{children:y.Children.toArray(Array.from(a))}))))),$(()=>{let l,u,d;return k(c("div",w(g([["className","justify-start items-start gap-3 flex"],(l=[c("button",w(g([["type","button"],(u="py-2 px-3 bg-white border border-gray-300 shadow-sm rounded-md text-sm font-medium text-gray-700 leading-4 disabled:cursor-not-allowed disabled:opacity-50 hover:bg-gray-50",["className",u]),["children","Previous"],["onClick",f=>{r(new xd(0,[]))}],["disabled",!Em(i)]]))),c("button",w(g([["type","button"],(d="ml-3 py-2 px-3 bg-white border border-gray-300 shadow-sm rounded-md text-sm font-medium text-gray-700 leading-4 disabled:cursor-not-allowed disabled:opacity-50 hover:bg-gray-50",["className",d]),["children","Next"],["onClick",f=>{r(new xd(1,[]))}],["disabled",!Sm(i)]])))],["children",y.Children.toArray(Array.from(l))])]))))}))})),["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}class bl extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ToggleSortDirection","NextPage","PrevPage"]}}function k_(e,t){e(t.tag===0?new bl(2,[]):new bl(1,[]))}function N_(e){let t,n;const r=e.actionHandler,i=e.props;return c("div",w(g([(t="self-stretch grow bg-white rounded-lg shadow border border-gray-200 flex flex-col justify-center items-stretch",["className",t]),(n=[c(cb,new Sv(kv(i),()=>{r(new bl(0,[]))})),c(E_,{props:i}),c(A_,{pagingInfo:Nv(i),pageChangedHandler:o=>{k_(r,o)}})],["children",y.Children.toArray(Array.from(n))])])))}function T_(e,t){t.tag===0?e(new fi(0,[t.fields[0]])):e(new fi(1,[]))}function $_(e,t){switch(t.tag){case 2:{e(new fi(4,[]));break}case 0:{e(new fi(2,[]));break}default:e(new fi(3,[]))}}function Cd(e){let t,n;const r=e.importHistory;let i;const o=eb(r);i=Wr(()=>Ur(()=>o,nb,(d,f)=>{}),void 0,void 0);const s=i[0],a=i[1];let l;const u=Wv(s);return l={ActionHandler:d=>{T_(a,d)},Disabled:Gv(s),Value:so(u)},c("div",w(g([["className","self-stretch grow basis-0 flex flex-col justify-start items-start gap-2"],(t=[c(ib,null),c("div",w(g([["className","self-stretch grow shrink basis-0 px-12 pb-6 flex flex-col justify-start items-start gap-2"],(n=[c(sb,l),c(N_,{props:zv(s),actionHandler:d=>{$_(a,d)}})],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}class Sd extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Header","Row"]}}function M_(e,t){let n;const r=e.tag===1?["bg-white","bg-gray-100","h-[72px]"]:["bg-gray-50","bg-gray-300",""];return c("div",w(g([["className",At(" ",["px-6 py-3.5 border-b border-gray-200 justify-start items-center gap-2 flex",r[0],r[2],t])],(n=[c("div",{className:At(" ",["w-full h-4 relative rounded",r[1]])})],["children",y.Children.toArray(Array.from(n))])])))}function Ed(e){const t=sr(n=>M_(e,n),g(["col-span-1","col-span-2","col-span-4"]));return c("div",{className:"grid grid-cols-7",children:y.Children.toArray(Array.from(t))})}function I_(){let e,t;return c("div",w(g([(e="self-stretch animate-pulse grow bg-white rounded-lg shadow border border-gray-200 flex flex-col justify-start items-stretch",["className",e]),(t=Io(ue(Ed(new Sd(0,[]))),sr(n=>Ed(new Sd(1,[])),K(Eu(1,1,5)))),["children",y.Children.toArray(Array.from(t))])])))}function D_(e){oa(()=>{Ii(cm(e.backendUrl,new gn(0,[{Section:"user past activities"}])))});let t;const n=Wr(()=>Ur(gv,(i,o)=>wv(()=>N2(e.backendUrl),i),(i,o)=>{}),void 0,[])[0].View;t=n.tag===2?c(Cd,{importHistory:new M(1,[void 0])}):n.tag===1?c(Cd,{importHistory:new M(0,[_v(n.fields[0])])}):c(I_,null);const r=[c("style",{children:[Ql]}),t];return c(qe,{},...r)}function R_(){Hl(e=>c(D_,e),"apollo-import-workspace-past-history")}function _l(e,t){if(t.startsWith(e))return t}function Ad(e,t){if(t.endsWith(e))return t}function O_(e){return t=>{let n,r;return n=_l("/",t),n!=null?(r=n,r):"/"+t}}function F_(e,t){return O_()(At("/",sr(n=>n.indexOf("?")>=0||n.startsWith("#")||n.startsWith("/")?n:encodeURIComponent(n),e)))}function Im(e,t,n){history.pushState(void 0,"",F_(e));const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)}function P_(e,t){return yg(n=>{if(Ni(n))return at();{const r=iu(n,"#");if(r==="?")return at();if(_l("?",r)!=null)return ue(r);{const i=r.split("?");if(!Dr((o,s)=>o===s,i,Se())&&i.length===1){const o=he(0,i);return ue(decodeURIComponent(o))}else if(!Dr((o,s)=>o===s,i,Se())&&i.length===2)if(he(1,i)===""){const o=he(0,i);return ue(decodeURIComponent(o))}else{const o=he(0,i),s=he(1,i);return g([decodeURIComponent(o),"?"+s])}else return at()}}},g(Jf(_l("#",e)!=null?q1(e,1,e.length-1):t===1&&(Ad("#",e)!=null||Ad("#/",e)!=null)?"":e,["/"],void 0,0)))}function L_(e,t,n){return t(P_(e===2?window.location.pathname+window.location.search:window.location.hash,e))}mw(e=>{const t=$0(r=>{const i=Xe(e.onUrlChanged,o=>{});L_(Xe(e.hashMode,1),i)});T0(()=>(window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0?window.addEventListener("hashchange",t):window.addEventListener("popstate",t),window.addEventListener("CUSTOM_NAVIGATION_EVENT",t),mu(()=>{window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0?window.removeEventListener("hashchange",t):window.removeEventListener("popstate",t),window.removeEventListener("CUSTOM_NAVIGATION_EVENT",t)}))),oa(()=>{const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)});const n=e.application;return n??Se()},void 0,void 0,void 0);class V_{constructor(t,n){const r=new Ct(Se());this.comparer=n,r.contents=this,this.hashMap=new Map([]),this["init@9"]=1;const i=Oe(t);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const o=i["System.Collections.Generic.IEnumerator`1.get_Current"]();Ua(r.contents,o[0],o[1])}}finally{$e(i)}}get[Symbol.toStringTag](){return"Dictionary"}toJSON(){const t=this;return Array.from(t)}"System.Collections.IEnumerable.GetEnumerator"(){return Oe(this)}GetEnumerator(){return Oe(ta(this.hashMap.values()))}[Symbol.iterator](){return Ai(Oe(this))}"System.Collections.Generic.ICollection`1.Add2B595"(t){Ua(this,t[0],t[1])}"System.Collections.Generic.ICollection`1.Clear"(){kd(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const r=ps(this,t[0]);let i;switch(r!=null&&te(V(r)[1],t[1])?(i=0,V(r)):i=1,i){case 0:return!0;default:return!1}}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){S0((i,o)=>{$t(t,n+i,o)},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return Nd(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(t){const n=this,r=ps(n,t[0]);return r!=null?(te(V(r)[1],t[1])&&Wa(n,t[0]),!0):!1}"System.Collections.Generic.IDictionary`2.Add5BDDA1"(t,n){Ua(this,t,n)}"System.Collections.Generic.IDictionary`2.ContainsKey2B595"(t){return Md(this,t)}"System.Collections.Generic.IDictionary`2.get_Item2B595"(t){return Td(this,t)}"System.Collections.Generic.IDictionary`2.set_Item5BDDA1"(t,n){$d(this,t,n)}"System.Collections.Generic.IDictionary`2.get_Keys"(){const t=this;return jn($(()=>Le(n=>n[0],t)))}"System.Collections.Generic.IDictionary`2.Remove2B595"(t){return Wa(this,t)}"System.Collections.Generic.IDictionary`2.TryGetValue6DC89625"(t,n){const i=ps(this,t);if(i!=null){const o=V(i);return n.contents=o[1],!0}else return!1}"System.Collections.Generic.IDictionary`2.get_Values"(){const t=this;return jn($(()=>Le(n=>n[1],t)))}get size(){return Nd(this)|0}clear(){kd(this)}delete(t){return Wa(this,t)}entries(){return Le(n=>[n[0],n[1]],this)}get(t){return Td(this,t)}has(t){return Md(this,t)}keys(){return Le(n=>n[0],this)}set(t,n){const r=this;return $d(r,t,n),r}values(){return Le(n=>n[1],this)}forEach(t,n){const r=this;Wn(i=>{t(i[1],i[0],r)},r)}}function Bo(e,t){const n=e.comparer.GetHashCode(t)|0;let r,i=Se();return r=[wu(e.hashMap,n,new Ct(()=>i,o=>{i=o})),i],r[0]?[!0,n,r[1].findIndex(o=>e.comparer.Equals(t,o[0]))]:[!1,n,-1]}function ps(e,t){const n=Bo(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return ar(e.hashMap,n[1])[n[2]];default:return}}function kd(e){e.hashMap.clear()}function Nd(e){let t=0,n=Oe(e.hashMap.values());try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=t+r.length|0}}finally{$e(n)}return t|0}function Td(e,t){const n=ps(e,t);if(n!=null)return V(n)[1];throw new Error("The item was not found in collection")}function $d(e,t,n){const r=Bo(e,t);r[0]?r[2]>-1?ar(e.hashMap,r[1])[r[2]]=[t,n]:ar(e.hashMap,r[1]).push([t,n]):e.hashMap.set(r[1],[[t,n]])}function Ua(e,t,n){const r=Bo(e,t);if(r[0]){if(r[2]>-1)throw new Error(nu("An item with the same key has already been added. Key: {0}",t));ar(e.hashMap,r[1]).push([t,n])}else e.hashMap.set(r[1],[[t,n]])}function Md(e,t){const n=Bo(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return!0;default:return!1}}function Wa(e,t){const n=Bo(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return ar(e.hashMap,n[1]).splice(n[2],1),!0;default:return!1}}function H_(e,t){return $(()=>{const n=new z0([],t);return na(r=>U0(r,n),e)})}function j_(e,t,n){return $(()=>{const r=new z0(e,n);return na(i=>U0(i,r),t)})}function B_(e,t,n){return $(()=>{const r=new V_([],n),i=[],o=Oe(t);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const s=o["System.Collections.Generic.IEnumerator`1.get_Current"](),a=e(s);let l,u=Se();l=[wu(r,a,new Ct(()=>u,d=>{u=d})),u],l[0]?l[1].push(s):(Fw(r,a,[s]),i.push(a))}}finally{$e(o)}return Le(s=>[s,ar(r,s)],i)})}function Dm(e,t){return jn(H_(e,t))}function Rm(e,t,n){return jn(j_(e,t,n))}function U_(e,t,n){return jn(Le(r=>[r[0],jn(r[1])],B_(e,t,n)))}class W_ extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvColumnIndex"]}}class G_ extends _e{constructor(t,n,r,i){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=i}}class z_ extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisCsvColumnIndex"]}}class co extends _e{constructor(t,n,r,i,o){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=i,this.EmploymentBasis=o}}new co(void 0,void 0,void 0,void 0,void 0);function Id(e,t){return new co(e.FirstName,e.LastName,e.Email,e.MobilePhone,_t(n=>n.fields[0],t))}class q_ extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisRawValue"]}}class mt extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FullTime","PartTime","Casual","LabourHire"]}}function Om(e){switch(e.tag){case 1:return"Part-time";case 2:return"Casual";case 3:return"Labour hire";default:return"Full-time"}}function Y_(e){switch(e.tag){case 1:return"PartTime";case 2:return"Casual";case 3:return"LabourHire";default:return"FullTime"}}function Z_(e){switch(e){case"FullTime":return new mt(0,[]);case"PartTime":return new mt(1,[]);case"Casual":return new mt(2,[]);case"LabourHire":return new mt(3,[]);default:return}}class K_ extends _e{constructor(t,n){super(),this.Head=t,this.Tail=n}}function X_(e){return ui(et(t=>[t[1].fields[0],Y_(t[0])],f0([e.Head],e.Tail)),{Compare:Br})}class J_ extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisColumn"]}}class Kr extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["WithoutEmploymentBasis","WithEmploymentBasis"]}}class Nn extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["DraftColumnMappings","ValidatedColumnMappings"]}}class Q_ extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvColumnName"]}}class ex extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvDataRow"]}}class Fm extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvDataRows"]}}function tx(e,t){let n;return new J_(et(r=>new q_(r),cg(r=>r,Dm((n=et(r=>he(t.fields[0].fields[0],r.fields[0]),e.fields[0]),n.filter(r=>!Ni(r))),{Equals:(r,i)=>r===i,GetHashCode:fr}),{Compare:Br})))}function nx(e){return e.fields[0].length}class Pm extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FileName"]}}class rx extends _e{constructor(t,n,r,i){super(),this.Name=t,this.HeaderRow=n,this.DataRows=r,this.SizeInBytes=i|0}}class Nt extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["InviteNow","InviteLater"]}}class ns extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Draft","Valid"]}}class ne extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FirstName","LastName","Email","MobilePhone","EmploymentBasis"]}}function vo(e){switch(e.tag){case 1:return"Last name";case 2:return"Email";case 3:return"Mobile phone";case 4:return"Employment basis";default:return"First name"}}function Cr(e){switch(e.tag){case 1:return"lastName";case 2:return"email";case 3:return"mobileNumber";case 4:return"employmentBasis";default:return"firstName"}}function Lm(e){switch(e){case"firstName":return new ne(0,[]);case"lastName":return new ne(1,[]);case"email":return new ne(2,[]);case"mobileNumber":return new ne(3,[]);case"employmentBasis":return new ne(4,[]);default:return}}function ix(e){switch(e.tag){case 1:return"lastName";case 2:return"email";case 3:return"mobilePhone";case 4:return"employmentBasis";default:return"firstName"}}let Zn=class extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Set","Clear","Preview","ClosePreview"]}};class Qi extends _e{constructor(t,n){super(),this.ColumnIndex=t,this.IncomingFields=n}}class ox extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["IncomingFields"]}}class Mn extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Available","Unavailable"]}}let br=class extends _e{constructor(t,n,r,i,o,s,a,l,u,d){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=i,this.EmploymentBasis=o,this.Preview=s,this.NumberOfIncomingFields=a|0,this.NumberOfDestinationFieldsMapped=l|0,this.NumberOfIncomingFieldsDiscarded=u|0,this.Status=d}};function sx(e,t){const n=t.tag===1?["lastname","surname","familyname"]:t.tag===2?["email"]:t.tag===3?["mobilephone","mobilephonenumber","mobilenumber","mobile","phonenumber","phone"]:t.tag===4?["employmentbasis","employmenttype"]:["firstname","givenname","christianname","forename","baptismname","baptismalname"];return _t(r=>r[0],Js(r=>$i(tu(r[1].fields[0],"[^a-zA-Z]","").toLocaleLowerCase(),n,{Equals:(i,o)=>i===o,GetHashCode:fr}),e))}function ax(e,t){return new ox(et(n=>{const r=n[0];return[r,n[1],$i(r,t,{Equals:te,GetHashCode:Cs})?new Mn(1,[]):new Mn(0,[])]},e))}function Vm(e,t,n){switch(t.tag){case 1:return[e.FirstName.ColumnIndex,n,e.Email.ColumnIndex,e.MobilePhone.ColumnIndex,e.EmploymentBasis.ColumnIndex];case 2:return[e.FirstName.ColumnIndex,e.LastName.ColumnIndex,n,e.MobilePhone.ColumnIndex,e.EmploymentBasis.ColumnIndex];case 3:return[e.FirstName.ColumnIndex,e.LastName.ColumnIndex,e.Email.ColumnIndex,n,e.EmploymentBasis.ColumnIndex];case 4:return[e.FirstName.ColumnIndex,e.LastName.ColumnIndex,e.Email.ColumnIndex,e.MobilePhone.ColumnIndex,n];default:return[n,e.LastName.ColumnIndex,e.Email.ColumnIndex,e.MobilePhone.ColumnIndex,e.EmploymentBasis.ColumnIndex]}}function ti(e,t){return Xt(n=>n,et(n=>h0(e.fields[0],n.fields[0]),t.fields[0].slice(void 0,10)))}function $u(e,t,n,r,i,o,s){let a,l,u;const d=h=>ax(e,h);let f;f=Xt(h=>h,[n,r,i,o,s]).length;const m=n!=null?r!=null?i!=null?(a=i,l=n,u=r,new ns(1,[new G_(l,u,a,o),_t(h=>new z_(h),s)])):new ns(0,[new co(n,r,i,o,s)]):new ns(0,[new co(n,r,i,o,s)]):new ns(0,[new co(n,r,i,o,s)]);return new br(new Qi(n,d(Xt(h=>h,[r,i,o,s]))),new Qi(r,d(Xt(h=>h,[n,i,o,s]))),new Qi(i,d(Xt(h=>h,[n,r,o,s]))),new Qi(o,d(Xt(h=>h,[n,r,i,s]))),new Qi(s,d(Xt(h=>h,[n,r,i,o]))),t,e.length,f,e.length-f,m)}function eo(e,t,n,r,i){let o,s,a;const l=[r,i];return a=Vm(n,l[0],l[1]),$u(e,(o=n.Preview,o!=null&&te(o[0],r)?(s=o[0],[s,ti(i,t)]):n.Preview),a[0],a[1],a[2],a[3],a[4])}function to(e,t,n){let r,i;const o=[n,void 0];return i=Vm(t,o[0],o[1]),$u(e,(r=t.Preview,r!=null&&te(r[0],n)?(r[0],void 0):t.Preview),i[0],i[1],i[2],i[3],i[4])}function Hm(e,t){switch(t.tag){case 1:return e.LastName.ColumnIndex!=null;case 2:return e.Email.ColumnIndex!=null;case 3:return e.MobilePhone.ColumnIndex!=null;case 4:return e.EmploymentBasis.ColumnIndex!=null;default:return e.FirstName.ColumnIndex!=null}}const lx=e=>t=>Hm(e,t);function ux(e,t){const n=Hm(e,t),r=e.Preview;let i;switch(n?r==null?i=2:te(r[0],t)?(i=1,r[0]):i=2:i=0,i){case 0:return!1;case 1:return!1;default:return!0}}function cx(e,t){let n,r,i,o,s,a,l,u,d;const f=p=>sx(e,p);return[(n=t==null?(r=f(new ne(0,[])),i=f(new ne(1,[])),o=f(new ne(2,[])),s=f(new ne(3,[])),a=f(new ne(4,[])),l=Xt(p=>p,[r,i,o,s,a]),u=p=>{let m,h;switch(p!=null?(m=p,l.filter(b=>te(b,m)).length>1?h=0:h=1):h=1,h){case 0:return;default:return p}},[u(r),u(i),u(o),u(s),u(a)]):(d=t,[d.FirstName,d.LastName,d.Email,d.MobilePhone,d.EmploymentBasis]),$u(e,void 0,n[0],n[1],n[2],n[3],n[4])),we()]}function dx(e,t,n,r,i){let o,s,a,l,u,d,f,p,m,h;const b=N=>Pn(e,new gn(4,[{Field:ix(N)}]));let v,_,x,E,T,I,O,P,S,C,A;switch(r.tag){case 1:{switch(r.fields[0].tag){case 1:{i.LastName.ColumnIndex!=null?v=6:v=16;break}case 2:{i.Email.ColumnIndex!=null?v=7:v=16;break}case 3:{i.MobilePhone.ColumnIndex!=null?v=8:v=16;break}case 4:{i.EmploymentBasis.ColumnIndex!=null?v=9:v=16;break}default:i.FirstName.ColumnIndex!=null?v=5:v=16}break}case 2:{switch(r.fields[0].tag){case 1:{i.LastName.ColumnIndex!=null?(v=11,P=i.LastName.ColumnIndex):v=16;break}case 2:{i.Email.ColumnIndex!=null?(v=12,S=i.Email.ColumnIndex):v=16;break}case 3:{i.MobilePhone.ColumnIndex!=null?(v=13,C=i.MobilePhone.ColumnIndex):v=16;break}case 4:{i.EmploymentBasis.ColumnIndex!=null?(v=14,A=i.EmploymentBasis.ColumnIndex):v=16;break}default:i.FirstName.ColumnIndex!=null?(v=10,O=i.FirstName.ColumnIndex):v=16}break}case 3:{v=15;break}default:switch(r.fields[0].tag){case 1:{d=r.fields[1],!te(i.LastName.ColumnIndex,d)&&i.LastName.IncomingFields.fields[0].some(N=>te(d,N[0])?te(N[2],new Mn(0,[])):!1)?(v=1,i.LastName.ColumnIndex,i.LastName.IncomingFields.fields[0],x=r.fields[1]):v=16;break}case 2:{f=r.fields[1],!te(i.Email.ColumnIndex,f)&&i.Email.IncomingFields.fields[0].some(N=>te(f,N[0])?te(N[2],new Mn(0,[])):!1)?(v=2,i.Email.ColumnIndex,i.Email.IncomingFields.fields[0],E=r.fields[1]):v=16;break}case 3:{p=r.fields[1],!te(i.MobilePhone.ColumnIndex,p)&&i.MobilePhone.IncomingFields.fields[0].some(N=>te(p,N[0])?te(N[2],new Mn(0,[])):!1)?(v=3,i.MobilePhone.ColumnIndex,i.MobilePhone.IncomingFields.fields[0],T=r.fields[1]):v=16;break}case 4:{m=r.fields[1],!te(i.EmploymentBasis.ColumnIndex,m)&&i.EmploymentBasis.IncomingFields.fields[0].some(N=>te(m,N[0])?te(N[2],new Mn(0,[])):!1)?(v=4,i.EmploymentBasis.ColumnIndex,i.EmploymentBasis.IncomingFields.fields[0],I=r.fields[1]):v=16;break}default:h=r.fields[1],!te(i.FirstName.ColumnIndex,h)&&i.FirstName.IncomingFields.fields[0].some(N=>te(h,N[0])?te(N[2],new Mn(0,[])):!1)?(v=0,i.FirstName.ColumnIndex,i.FirstName.IncomingFields.fields[0],_=r.fields[1]):v=16}}switch(v){case 0:return[(o=[new ne(0,[]),_],eo(t,n,i,o[0],o[1])),we()];case 1:return[(s=[new ne(1,[]),x],eo(t,n,i,s[0],s[1])),we()];case 2:return[(a=[new ne(2,[]),E],eo(t,n,i,a[0],a[1])),we()];case 3:return[(l=[new ne(3,[]),T],eo(t,n,i,l[0],l[1])),we()];case 4:return[(u=[new ne(4,[]),I],eo(t,n,i,u[0],u[1])),we()];case 5:return[to(t,i,new ne(0,[])),we()];case 6:return[to(t,i,new ne(1,[])),we()];case 7:return[to(t,i,new ne(2,[])),we()];case 8:return[to(t,i,new ne(3,[])),we()];case 9:return[to(t,i,new ne(4,[])),we()];case 10:return[new br(i.FirstName,i.LastName,i.Email,i.MobilePhone,i.EmploymentBasis,[new ne(0,[]),ti(O,n)],i.NumberOfIncomingFields,i.NumberOfDestinationFieldsMapped,i.NumberOfIncomingFieldsDiscarded,i.Status),b(new ne(0,[]))];case 11:return[new br(i.FirstName,i.LastName,i.Email,i.MobilePhone,i.EmploymentBasis,[new ne(1,[]),ti(P,n)],i.NumberOfIncomingFields,i.NumberOfDestinationFieldsMapped,i.NumberOfIncomingFieldsDiscarded,i.Status),b(new ne(1,[]))];case 12:return[new br(i.FirstName,i.LastName,i.Email,i.MobilePhone,i.EmploymentBasis,[new ne(2,[]),ti(S,n)],i.NumberOfIncomingFields,i.NumberOfDestinationFieldsMapped,i.NumberOfIncomingFieldsDiscarded,i.Status),b(new ne(2,[]))];case 13:return[new br(i.FirstName,i.LastName,i.Email,i.MobilePhone,i.EmploymentBasis,[new ne(3,[]),ti(C,n)],i.NumberOfIncomingFields,i.NumberOfDestinationFieldsMapped,i.NumberOfIncomingFieldsDiscarded,i.Status),b(new ne(3,[]))];case 14:return[new br(i.FirstName,i.LastName,i.Email,i.MobilePhone,i.EmploymentBasis,[new ne(4,[]),ti(A,n)],i.NumberOfIncomingFields,i.NumberOfDestinationFieldsMapped,i.NumberOfIncomingFieldsDiscarded,i.Status),b(new ne(4,[]))];case 15:return[new br(i.FirstName,i.LastName,i.Email,i.MobilePhone,i.EmploymentBasis,void 0,i.NumberOfIncomingFields,i.NumberOfDestinationFieldsMapped,i.NumberOfIncomingFieldsDiscarded,i.Status),we()];default:return[i,we()]}}const jm=typeof document<"u"?Q.useLayoutEffect:()=>{};function fx(e){const t=ie(null);return jm(()=>{t.current=e},[e]),De((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}const Uo=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},kr=e=>e&&"window"in e&&e.window===e?e:Uo(e).defaultView||window;function mx(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function hx(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Bm(e){let t=null;return()=>(t==null&&(t=e()),t)}const px=Bm(function(){return hx(/^Mac/i)}),gx=Bm(function(){return mx(/Android/i)});function wx(e){return e.mozInputSource===0&&e.isTrusted?!0:gx()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}class yx{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function Um(e){let t=ie({isFocused:!1,observer:null});jm(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=fx(r=>{e==null||e(r)});return De(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,o=s=>{t.current.isFocused=!1,i.disabled&&n(new yx("blur",s)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let a=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function vx(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=De(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),s=Um(o),a=De(l=>{const u=Uo(l.target);l.target===l.currentTarget&&u.activeElement===l.target&&(n&&n(l),i&&i(!0),s(l))},[i,n,s]);return{focusProps:{onFocus:!t&&(n||i||r)?a:void 0,onBlur:!t&&(r||i)?o:void 0}}}let Wo=null,xl=new Set,fo=new Map,Fr=!1,Cl=!1;const bx={Tab:!0,Escape:!0};function Mu(e,t){for(let n of xl)n(e,t)}function _x(e){return!(e.metaKey||!px()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Ps(e){Fr=!0,_x(e)&&(Wo="keyboard",Mu("keyboard",e))}function nn(e){Wo="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Fr=!0,Mu("pointer",e))}function Wm(e){wx(e)&&(Fr=!0,Wo="virtual")}function Gm(e){e.target===window||e.target===document||(!Fr&&!Cl&&(Wo="virtual",Mu("virtual",e)),Fr=!1,Cl=!1)}function zm(){Fr=!1,Cl=!0}function Sl(e){if(typeof window>"u"||fo.get(kr(e)))return;const t=kr(e),n=Uo(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Fr=!0,r.apply(this,arguments)},n.addEventListener("keydown",Ps,!0),n.addEventListener("keyup",Ps,!0),n.addEventListener("click",Wm,!0),t.addEventListener("focus",Gm,!0),t.addEventListener("blur",zm,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",nn,!0),n.addEventListener("pointermove",nn,!0),n.addEventListener("pointerup",nn,!0)):(n.addEventListener("mousedown",nn,!0),n.addEventListener("mousemove",nn,!0),n.addEventListener("mouseup",nn,!0)),t.addEventListener("beforeunload",()=>{qm(e)},{once:!0}),fo.set(t,{focus:r})}const qm=(e,t)=>{const n=kr(e),r=Uo(e);t&&r.removeEventListener("DOMContentLoaded",t),fo.has(n)&&(n.HTMLElement.prototype.focus=fo.get(n).focus,r.removeEventListener("keydown",Ps,!0),r.removeEventListener("keyup",Ps,!0),r.removeEventListener("click",Wm,!0),n.removeEventListener("focus",Gm,!0),n.removeEventListener("blur",zm,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",nn,!0),r.removeEventListener("pointermove",nn,!0),r.removeEventListener("pointerup",nn,!0)):(r.removeEventListener("mousedown",nn,!0),r.removeEventListener("mousemove",nn,!0),r.removeEventListener("mouseup",nn,!0)),fo.delete(n))};function xx(e){const t=Uo(e);let n;return t.readyState!=="loading"?Sl(e):(n=()=>{Sl(e)},t.addEventListener("DOMContentLoaded",n)),()=>qm(e,n)}typeof document<"u"&&xx();function Ym(){return Wo!=="pointer"}const Cx=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Sx(e,t,n){var r;const i=typeof window<"u"?kr(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,o=typeof window<"u"?kr(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?kr(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window<"u"?kr(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof i&&!Cx.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof o||(n==null?void 0:n.target)instanceof s&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof a&&!bx[n.key])}function Ex(e,t,n){Sl(),Fe(()=>{let r=(i,o)=>{Sx(!!(n!=null&&n.isTextInput),i,o)&&e(Ym())};return xl.add(r),()=>{xl.delete(r)}},t)}function Ax(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=ie({isFocusWithin:!1}),s=De(u=>{o.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,o]),a=Um(s),l=De(u=>{!o.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),i&&i(!0),o.current.isFocusWithin=!0,a(u))},[r,i,a]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:s}}}let Ls=!1,Ga=0;function El(){Ls=!0,setTimeout(()=>{Ls=!1},50)}function Dd(e){e.pointerType==="touch"&&El()}function kx(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Dd):document.addEventListener("touchend",El),Ga++,()=>{Ga--,!(Ga>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Dd):document.removeEventListener("touchend",El))}}function Nx(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,s]=be(!1),a=ie({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;Fe(kx,[]);let{hoverProps:l,triggerHoverEnd:u}=me(()=>{let d=(m,h)=>{if(a.pointerType=h,i||h==="touch"||a.isHovered||!m.currentTarget.contains(m.target))return;a.isHovered=!0;let b=m.currentTarget;a.target=b,t&&t({type:"hoverstart",target:b,pointerType:h}),n&&n(!0),s(!0)},f=(m,h)=>{if(a.pointerType="",a.target=null,h==="touch"||!a.isHovered)return;a.isHovered=!1;let b=m.currentTarget;r&&r({type:"hoverend",target:b,pointerType:h}),n&&n(!1),s(!1)},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=m=>{Ls&&m.pointerType==="mouse"||d(m,m.pointerType)},p.onPointerLeave=m=>{!i&&m.currentTarget.contains(m.target)&&f(m,m.pointerType)}):(p.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=m=>{!a.ignoreEmulatedMouseEvents&&!Ls&&d(m,"mouse"),a.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=m=>{!i&&m.currentTarget.contains(m.target)&&f(m,"mouse")}),{hoverProps:p,triggerHoverEnd:f}},[t,n,r,i,a]);return Fe(()=>{i&&u({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:l,isHovered:o}}function Tx(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=ie({isFocused:!1,isFocusVisible:t||Ym()}),[o,s]=be(!1),[a,l]=be(()=>i.current.isFocused&&i.current.isFocusVisible),u=De(()=>l(i.current.isFocused&&i.current.isFocusVisible),[]),d=De(m=>{i.current.isFocused=m,s(m),u()},[u]);Ex(m=>{i.current.isFocusVisible=m,u()},[],{isTextInput:n});let{focusProps:f}=vx({isDisabled:r,onFocusChange:d}),{focusWithinProps:p}=Ax({isDisabled:!r,onFocusWithinChange:d});return{isFocused:o,isFocusVisible:a,focusProps:r?p:f}}var $x=Object.defineProperty,Mx=(e,t,n)=>t in e?$x(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,za=(e,t,n)=>(Mx(e,typeof t!="symbol"?t+"":t,n),n);let Ix=class{constructor(){za(this,"current",this.detect()),za(this,"handoffState","pending"),za(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},$r=new Ix;function Pi(e){return $r.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function ha(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function zn(){let e=[],t={addEventListener(n,r,i,o){return n.addEventListener(r,i,o),t.add(()=>n.removeEventListener(r,i,o))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return ha(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,i){let o=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:o})})},group(n){let r=zn();return n(r),this.add(()=>r.dispose())},add(n){return e.includes(n)||e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let i of e.splice(r,1))i()}},dispose(){for(let n of e.splice(0))n()}};return t}function hr(){let[e]=be(zn);return Fe(()=>()=>e.dispose(),[e]),e}let tt=(e,t)=>{$r.isServer?Fe(e,t):Cn(e,t)};function pr(e){let t=ie(e);return tt(()=>{t.current=e},[e]),t}let de=function(e){let t=pr(e);return Q.useCallback((...n)=>t.current(...n),[t])};function Dx(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function Rx(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function Ox({disabled:e=!1}={}){let t=ie(null),[n,r]=be(!1),i=hr(),o=de(()=>{t.current=null,r(!1),i.dispose()}),s=de(a=>{if(i.dispose(),t.current===null){t.current=a.currentTarget,r(!0);{let l=Pi(a.currentTarget);i.addEventListener(l,"pointerup",o,!1),i.addEventListener(l,"pointermove",u=>{if(t.current){let d=Dx(u);r(Rx(d,t.current.getBoundingClientRect()))}},!1),i.addEventListener(l,"pointercancel",o,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:s,onPointerUp:o,onClick:o}}}let Fx=lt(void 0);function Iu(){return Ve(Fx)}function Al(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function jt(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,jt),r}var xi=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(xi||{}),tr=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(tr||{});function St(){let e=Lx();return De(t=>Px({mergeRefs:e,...t}),[e])}function Px({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:s,mergeRefs:a}){a=a??Vx;let l=Zm(t,e);if(o)return rs(l,n,r,s,a);let u=i??0;if(u&2){let{static:d=!1,...f}=l;if(d)return rs(f,n,r,s,a)}if(u&1){let{unmount:d=!0,...f}=l;return jt(d?0:1,{0(){return null},1(){return rs({...f,hidden:!0,style:{display:"none"}},n,r,s,a)}})}return rs(l,n,r,s,a)}function rs(e,t={},n,r,i){let{as:o=n,children:s,refName:a="ref",...l}=qa(e,["unmount","static"]),u=e.ref!==void 0?{[a]:e.ref}:{},d=typeof s=="function"?s(t):s;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let f={};if(t){let p=!1,m=[];for(let[h,b]of Object.entries(t))typeof b=="boolean"&&(p=!0),b===!0&&m.push(h.replace(/([A-Z])/g,v=>`-${v.toLowerCase()}`));if(p){f["data-headlessui-state"]=m.join(" ");for(let h of m)f[`data-${h}`]=""}}if(o===qe&&(Object.keys(Kn(l)).length>0||Object.keys(Kn(f)).length>0))if(!Ei(d)||Array.isArray(d)&&d.length>1){if(Object.keys(Kn(l)).length>0)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(Kn(l)).concat(Object.keys(Kn(f))).map(p=>` - ${p}`).join(`
46
46
  `),"","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(p=>` - ${p}`).join(`
47
47
  `)].join(`
48
- `))}else{let p=f.props,h=p==null?void 0:p.className,m=typeof h=="function"?(...x)=>xl(h(...x),l.className):xl(h,l.className),v=m?{className:m}:{},b=Bm(f.props,zn(Ba(l,["ref"])));for(let x in d)x in b&&delete d[x];return ql(f,Object.assign({},b,d,c,{ref:i(Nx(f),c.ref)},v))}return u(o,Object.assign({},Ba(l,["ref"]),o!==ze&&c,o!==ze&&d),f)}function Ax(){let e=ie([]),t=Oe(n=>{for(let r of e.current)r!=null&&(typeof r=="function"?r(n):r.current=n)},[]);return(...n)=>{if(!n.every(r=>r==null))return e.current=n,t}}function kx(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function Bm(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[i=>{var o;return(o=i==null?void 0:i.preventDefault)==null?void 0:o.call(i)}]);for(let r in n)Object.assign(t,{[r](i,...o){let s=n[r];for(let a of s){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;a(i,...o)}}});return t}function Wm(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];for(let r in n)Object.assign(t,{[r](...i){let o=n[r];for(let s of o)s==null||s(...i)}});return t}function pt(e){var t;return Object.assign(Ul(e),{displayName:(t=e.displayName)!=null?t:e.name})}function zn(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Ba(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function Nx(e){return K.version.split(".")[0]>="19"?e.props.ref:e.ref}function Tx(e,t,n){let[r,i]=be(n),o=e!==void 0,s=ie(o),a=ie(!1),l=ie(!1);return o&&!s.current&&!a.current?(a.current=!0,s.current=o,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!o&&s.current&&!l.current&&(l.current=!0,s.current=o,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[o?e:r,ue(c=>(o||i(c),t==null?void 0:t(c)))]}function $x(e){let[t]=be(e);return t}function Um(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))zm(n,Gm(t,r),i);return n}function Gm(e,t){return e?e+"["+t+"]":t}function zm(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())zm(e,Gm(t,r.toString()),i);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):Um(n,t,e)}function Mx(e){var t,n;let r=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(r){for(let i of r.elements)if(i!==e&&(i.tagName==="INPUT"&&i.type==="submit"||i.tagName==="BUTTON"&&i.type==="submit"||i.nodeName==="INPUT"&&i.type==="image")){i.click();return}(n=r.requestSubmit)==null||n.call(r)}}let Ix="span";var vi=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(vi||{});function Dx(e,t){var n;let{features:r=1,...i}=e,o={ref:t,"aria-hidden":(r&2)===2?!0:(n=i["aria-hidden"])!=null?n:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return Ct()({ourProps:o,theirProps:i,slot:{},defaultTag:Ix,name:"Hidden"})}let mo=pt(Dx),Ox=st(null);function Rx({children:e}){let t=Ve(Ox);if(!t)return K.createElement(K.Fragment,null,e);let{target:n}=t;return n?Vs(K.createElement(K.Fragment,null,e),n):null}function Fx({data:e,form:t,disabled:n,onReset:r,overrides:i}){let[o,s]=be(null),a=dr();return Re(()=>{if(r&&o)return a.addEventListener(o,"reset",r)},[o,t,r]),K.createElement(Rx,null,K.createElement(Px,{setForm:s,formId:t}),Um(e).map(([l,c])=>K.createElement(mo,{features:vi.Hidden,...zn({key:l,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:l,value:c,...i})})))}function Px({setForm:e,formId:t}){return Re(()=>{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:K.createElement(mo,{features:vi.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:n=>{if(!n)return;let r=n.closest("form");r&&e(r)}})}let Lx=st(void 0);function qm(){return Ve(Lx)}function Vx(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&Hx(n)?!1:r}function Hx(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let Ym=Symbol();function jx(e,t=!0){return Object.assign(e,{[Ym]:t})}function Mt(...e){let t=ie(e);Re(()=>{t.current=e},[e]);let n=ue(r=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(r):i.current=r)});return e.every(r=>r==null||(r==null?void 0:r[Ym]))?void 0:n}let ca=st(null);ca.displayName="DescriptionContext";function Zm(){let e=Ve(ca);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Zm),t}return e}function Bx(){var e,t;return(t=(e=Ve(ca))==null?void 0:e.value)!=null?t:void 0}function Wx(){let[e,t]=be([]);return[e.length>0?e.join(" "):void 0,fe(()=>function(n){let r=ue(o=>(t(s=>[...s,o]),()=>t(s=>{let a=s.slice(),l=a.indexOf(o);return l!==-1&&a.splice(l,1),a}))),i=fe(()=>({register:r,slot:n.slot,name:n.name,props:n.props,value:n.value}),[r,n.slot,n.name,n.props,n.value]);return K.createElement(ca.Provider,{value:i},n.children)},[t])]}let Ux="p";function Gx(e,t){let n=nn(),r=Au(),{id:i=`headlessui-description-${n}`,...o}=e,s=Zm(),a=Mt(t);Xe(()=>s.register(i),[i,s.register]);let l=r||!1,c=fe(()=>({...s.slot,disabled:l}),[s.slot,l]),f={ref:a,...s.props,id:i};return Ct()({ourProps:f,theirProps:o,slot:c,defaultTag:Ux,name:s.name||"Description"})}let zx=pt(Gx),qx=Object.assign(zx,{});var wt=(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))(wt||{});let da=st(null);da.displayName="LabelContext";function Km(){let e=Ve(da);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Km),t}return e}function Xm(e){var t,n,r;let i=(n=(t=Ve(da))==null?void 0:t.value)!=null?n:void 0;return((r=e==null?void 0:e.length)!=null?r:0)>0?[i,...e].filter(Boolean).join(" "):i}function Yx({inherit:e=!1}={}){let t=Xm(),[n,r]=be([]),i=e?[t,...n].filter(Boolean):n;return[i.length>0?i.join(" "):void 0,fe(()=>function(o){let s=ue(l=>(r(c=>[...c,l]),()=>r(c=>{let f=c.slice(),d=f.indexOf(l);return d!==-1&&f.splice(d,1),f}))),a=fe(()=>({register:s,slot:o.slot,name:o.name,props:o.props,value:o.value}),[s,o.slot,o.name,o.props,o.value]);return K.createElement(da.Provider,{value:a},o.children)},[r])]}let Zx="label";function Kx(e,t){var n;let r=nn(),i=Km(),o=qm(),s=Au(),{id:a=`headlessui-label-${r}`,htmlFor:l=o??((n=i.props)==null?void 0:n.htmlFor),passive:c=!1,...f}=e,d=Mt(t);Xe(()=>i.register(a),[a,i.register]);let p=ue(b=>{let x=b.currentTarget;if(x instanceof HTMLLabelElement&&b.preventDefault(),i.props&&"onClick"in i.props&&typeof i.props.onClick=="function"&&i.props.onClick(b),x instanceof HTMLLabelElement){let C=document.getElementById(x.htmlFor);if(C){let S=C.getAttribute("disabled");if(S==="true"||S==="")return;let $=C.getAttribute("aria-disabled");if($==="true"||$==="")return;(C instanceof HTMLInputElement&&(C.type==="radio"||C.type==="checkbox")||C.role==="radio"||C.role==="checkbox"||C.role==="switch")&&C.click(),C.focus({preventScroll:!0})}}}),h=s||!1,m=fe(()=>({...i.slot,disabled:h}),[i.slot,h]),v={ref:d,...i.props,id:a,htmlFor:l,onClick:p};return c&&("onClick"in v&&(delete v.htmlFor,delete v.onClick),"onClick"in f&&delete f.onClick),Ct()({ourProps:v,theirProps:f,slot:m,defaultTag:l?Zx:"div",name:i.name||"Label"})}let Xx=pt(Kx),Jx=Object.assign(Xx,{}),Qx=st(()=>{});function e3({value:e,children:t}){return K.createElement(Qx.Provider,{value:e},t)}function t3(e,t){return e!==null&&t!==null&&typeof e=="object"&&typeof t=="object"&&"id"in e&&"id"in t?e.id===t.id:e===t}function n3(e=t3){return Oe((t,n)=>{if(typeof e=="string"){let r=e;return(t==null?void 0:t[r])===(n==null?void 0:n[r])}return e(t,n)},[e])}function r3(e){if(e===null)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function i3(e,t=!1){let[n,r]=Lr(()=>({}),{}),i=fe(()=>r3(e),[e,n]);return Xe(()=>{if(!e)return;let o=new ResizeObserver(r);return o.observe(e),()=>{o.disconnect()}},[e]),t?{width:`${i.width}px`,height:`${i.height}px`}:i}let o3=class extends Map{constructor(t){super(),this.factory=t}get(t){let n=super.get(t);return n===void 0&&(n=this.factory(t),this.set(t,n)),n}};function Jm(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(i){return r.add(i),()=>r.delete(i)},dispatch(i,...o){let s=t[i].call(n,...o);s&&(n=s,r.forEach(a=>a()))}}}function Qm(e){return Ls(e.subscribe,e.getSnapshot,e.getSnapshot)}let s3=new o3(()=>Jm(()=>[],{ADD(e){return this.includes(e)?this:[...this,e]},REMOVE(e){let t=this.indexOf(e);if(t===-1)return this;let n=this.slice();return n.splice(t,1),n}}));function Ii(e,t){let n=s3.get(t),r=nn(),i=Qm(n);if(Xe(()=>{if(e)return n.dispatch("ADD",r),()=>n.dispatch("REMOVE",r)},[n,e]),!e)return!1;let o=i.indexOf(r),s=i.length;return o===-1&&(o=s,s+=1),o===s-1}let Cl=new Map,ao=new Map;function kd(e){var t;let n=(t=ao.get(e))!=null?t:0;return ao.set(e,n+1),n!==0?()=>Nd(e):(Cl.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>Nd(e))}function Nd(e){var t;let n=(t=ao.get(e))!=null?t:1;if(n===1?ao.delete(e):ao.set(e,n-1),n!==1)return;let r=Cl.get(e);r&&(r["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,Cl.delete(e))}function eh(e,{allowed:t,disallowed:n}={}){let r=Ii(e,"inert-others");Xe(()=>{var i,o;if(!r)return;let s=Bn();for(let l of(i=n==null?void 0:n())!=null?i:[])l&&s.add(kd(l));let a=(o=t==null?void 0:t())!=null?o:[];for(let l of a){if(!l)continue;let c=Mi(l);if(!c)continue;let f=l.parentElement;for(;f&&f!==c.body;){for(let d of f.children)a.some(p=>d.contains(p))||s.add(kd(d));f=f.parentElement}}return s.dispose},[r,t,n])}function th(e,t,n){let r=fr(i=>{let o=i.getBoundingClientRect();o.x===0&&o.y===0&&o.width===0&&o.height===0&&n()});Re(()=>{if(!e)return;let i=t===null?null:t instanceof HTMLElement?t:t.current;if(!i)return;let o=Bn();if(typeof ResizeObserver<"u"){let s=new ResizeObserver(()=>r.current(i));s.observe(i),o.add(()=>s.disconnect())}if(typeof IntersectionObserver<"u"){let s=new IntersectionObserver(()=>r.current(i));s.observe(i),o.add(()=>s.disconnect())}return()=>o.dispose()},[t,r,e])}let $s=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),a3=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var cn=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(cn||{}),Sl=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Sl||{}),l3=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(l3||{});function nh(e=document.body){return e==null?[]:Array.from(e.querySelectorAll($s)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}function u3(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(a3)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var ku=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(ku||{});function rh(e,t=0){var n;return e===((n=Mi(e))==null?void 0:n.body)?!1:Vt(t,{0(){return e.matches($s)},1(){let r=e;for(;r!==null;){if(r.matches($s))return!0;r=r.parentElement}return!1}})}var c3=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(c3||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function On(e){e==null||e.focus({preventScroll:!0})}let d3=["textarea","input"].join(",");function f3(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,d3))!=null?n:!1}function ih(e,t=n=>n){return e.slice().sort((n,r)=>{let i=t(n),o=t(r);if(i===null||o===null)return 0;let s=i.compareDocumentPosition(o);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function m3(e,t){return ui(nh(),t,{relativeTo:e})}function ui(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:i=[]}={}){let o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,s=Array.isArray(e)?n?ih(e):e:t&64?u3(e):nh(e);i.length>0&&s.length>1&&(s=s.filter(h=>!i.some(m=>m!=null&&"current"in m?(m==null?void 0:m.current)===h:m===h))),r=r??o.activeElement;let a=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,s.indexOf(r))-1;if(t&4)return Math.max(0,s.indexOf(r))+1;if(t&8)return s.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=t&32?{preventScroll:!0}:{},f=0,d=s.length,p;do{if(f>=d||f+d<=0)return 0;let h=l+f;if(t&16)h=(h+d)%d;else{if(h<0)return 3;if(h>=d)return 1}p=s[h],p==null||p.focus(c),f+=a}while(p!==o.activeElement);return t&6&&f3(p)&&p.select(),2}function oh(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function h3(){return/Android/gi.test(window.navigator.userAgent)}function p3(){return oh()||h3()}function Ki(e,t,n,r){let i=fr(n);Re(()=>{if(!e)return;function o(s){i.current(s)}return document.addEventListener(t,o,r),()=>document.removeEventListener(t,o,r)},[e,t,r])}function sh(e,t,n,r){let i=fr(n);Re(()=>{if(!e)return;function o(s){i.current(s)}return window.addEventListener(t,o,r),()=>window.removeEventListener(t,o,r)},[e,t,r])}const Td=30;function ah(e,t,n){let r=Ii(e,"outside-click"),i=fr(n),o=Oe(function(l,c){if(l.defaultPrevented)return;let f=c(l);if(f===null||!f.getRootNode().contains(f)||!f.isConnected)return;let d=function p(h){return typeof h=="function"?p(h()):Array.isArray(h)||h instanceof Set?h:[h]}(t);for(let p of d)if(p!==null&&(p.contains(f)||l.composed&&l.composedPath().includes(p)))return;return!rh(f,ku.Loose)&&f.tabIndex!==-1&&l.preventDefault(),i.current(l,f)},[i,t]),s=ie(null);Ki(r,"pointerdown",l=>{var c,f;s.current=((f=(c=l.composedPath)==null?void 0:c.call(l))==null?void 0:f[0])||l.target},!0),Ki(r,"mousedown",l=>{var c,f;s.current=((f=(c=l.composedPath)==null?void 0:c.call(l))==null?void 0:f[0])||l.target},!0),Ki(r,"click",l=>{p3()||s.current&&(o(l,()=>s.current),s.current=null)},!0);let a=ie({x:0,y:0});Ki(r,"touchstart",l=>{a.current.x=l.touches[0].clientX,a.current.y=l.touches[0].clientY},!0),Ki(r,"touchend",l=>{let c={x:l.changedTouches[0].clientX,y:l.changedTouches[0].clientY};if(!(Math.abs(c.x-a.current.x)>=Td||Math.abs(c.y-a.current.y)>=Td))return o(l,()=>l.target instanceof HTMLElement?l.target:null)},!0),sh(r,"blur",l=>o(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Di(...e){return fe(()=>Mi(...e),[...e])}function lh(e,t,n,r){let i=fr(n);Re(()=>{e=e??window;function o(s){i.current(s)}return e.addEventListener(t,o,r),()=>e.removeEventListener(t,o,r)},[e,t,r])}function g3(e,t){return fe(()=>{var n;if(e.type)return e.type;let r=(n=e.as)!=null?n:"button";if(typeof r=="string"&&r.toLowerCase()==="button"||(t==null?void 0:t.tagName)==="BUTTON"&&!t.hasAttribute("type"))return"button"},[e.type,e.as,t])}function w3(){let e;return{before({doc:t}){var n;let r=t.documentElement,i=(n=t.defaultView)!=null?n:window;e=Math.max(0,i.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,i=Math.max(0,r.clientWidth-r.offsetWidth),o=Math.max(0,e-i);n.style(r,"paddingRight",`${o}px`)}}}function y3(){return oh()?{before({doc:e,d:t,meta:n}){function r(i){return n.containers.flatMap(o=>o()).some(o=>o.contains(i))}t.microTask(()=>{var i;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let a=Bn();a.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>a.dispose()))}let o=(i=window.scrollY)!=null?i:window.pageYOffset,s=null;t.addEventListener(e,"click",a=>{if(a.target instanceof HTMLElement)try{let l=a.target.closest("a");if(!l)return;let{hash:c}=new URL(l.href),f=e.querySelector(c);f&&!r(f)&&(s=f)}catch{}},!0),t.addEventListener(e,"touchstart",a=>{if(a.target instanceof HTMLElement)if(r(a.target)){let l=a.target;for(;l.parentElement&&r(l.parentElement);)l=l.parentElement;t.style(l,"overscrollBehavior","contain")}else t.style(a.target,"touchAction","none")}),t.addEventListener(e,"touchmove",a=>{if(a.target instanceof HTMLElement){if(a.target.tagName==="INPUT")return;if(r(a.target)){let l=a.target;for(;l.parentElement&&l.dataset.headlessuiPortal!==""&&!(l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth);)l=l.parentElement;l.dataset.headlessuiPortal===""&&a.preventDefault()}else a.preventDefault()}},{passive:!1}),t.add(()=>{var a;let l=(a=window.scrollY)!=null?a:window.pageYOffset;o!==l&&window.scrollTo(0,o),s&&s.isConnected&&(s.scrollIntoView({block:"nearest"}),s=null)})})}}:{}}function v3(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function b3(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Er=Jm(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Bn(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:b3(n)},i=[y3(),w3(),v3()];i.forEach(({before:o})=>o==null?void 0:o(r)),i.forEach(({after:o})=>o==null?void 0:o(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Er.subscribe(()=>{let e=Er.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",i=n.count!==0;(i&&!r||!i&&r)&&Er.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Er.dispatch("TEARDOWN",n)}});function _3(e,t,n=()=>({containers:[]})){let r=Qm(Er),i=t?r.get(t):void 0,o=i?i.count>0:!1;return Xe(()=>{if(!(!t||!e))return Er.dispatch("PUSH",t,n),()=>Er.dispatch("POP",t,n)},[e,t]),o}function uh(e,t,n=()=>[document.body]){let r=Ii(e,"scroll-lock");_3(r,t,i=>{var o;return{containers:[...(o=i.containers)!=null?o:[],n]}})}function $d(e){return[e.screenX,e.screenY]}function x3(){let e=ie([-1,-1]);return{wasMoved(t){let n=$d(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=$d(t)}}}function C3(e=0){let[t,n]=be(e),r=Oe(l=>n(l),[t]),i=Oe(l=>n(c=>c|l),[t]),o=Oe(l=>(t&l)===l,[t]),s=Oe(l=>n(c=>c&~l),[n]),a=Oe(l=>n(c=>c^l),[n]);return{flags:t,setFlag:r,addFlag:i,hasFlag:o,removeFlag:s,toggleFlag:a}}var S3={},Md,Id;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((Md=process==null?void 0:S3)==null?void 0:Md.NODE_ENV)==="test"&&typeof((Id=Element==null?void 0:Element.prototype)==null?void 0:Id.getAnimations)>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
49
- `)),[]});var E3=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(E3||{});function ch(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function dh(e,t,n,r){let[i,o]=be(n),{hasFlag:s,addFlag:a,removeFlag:l}=C3(e&&i?3:0),c=ie(!1),f=ie(!1),d=dr();return Xe(()=>{var p;if(e){if(n&&o(!0),!t){n&&a(3);return}return(p=r==null?void 0:r.start)==null||p.call(r,n),A3(t,{inFlight:c,prepare(){f.current?f.current=!1:f.current=c.current,c.current=!0,!f.current&&(n?(a(3),l(4)):(a(4),l(2)))},run(){f.current?n?(l(3),a(4)):(l(4),a(3)):n?l(1):a(1)},done(){var h;f.current&&typeof t.getAnimations=="function"&&t.getAnimations().length>0||(c.current=!1,l(7),n||o(!1),(h=r==null?void 0:r.end)==null||h.call(r,n))}})}},[e,n,t,d]),e?[i,{closed:s(1),enter:s(2),leave:s(4),transition:s(2)||s(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function A3(e,{prepare:t,run:n,done:r,inFlight:i}){let o=Bn();return N3(e,{prepare:t,inFlight:i}),o.nextFrame(()=>{n(),o.requestAnimationFrame(()=>{o.add(k3(e,r))})}),o.dispose}function k3(e,t){var n,r;let i=Bn();if(!e)return i.dispose;let o=!1;i.add(()=>{o=!0});let s=(r=(n=e.getAnimations)==null?void 0:n.call(e).filter(a=>a instanceof CSSTransition))!=null?r:[];return s.length===0?(t(),i.dispose):(Promise.allSettled(s.map(a=>a.finished)).then(()=>{o||t()}),i.dispose)}function N3(e,{inFlight:t,prepare:n}){if(t!=null&&t.current){n();return}let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}function Nu(e,t){let n=ie([]),r=ue(e);Re(()=>{let i=[...n.current];for(let[o,s]of t.entries())if(n.current[o]!==s){let a=r(t,i);return n.current=t,a}},[r,...t])}function fa(){return typeof window<"u"}function Oi(e){return fh(e)?(e.nodeName||"").toLowerCase():"#document"}function Zt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function xn(e){var t;return(t=(fh(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function fh(e){return fa()?e instanceof Node||e instanceof Zt(e).Node:!1}function Dt(e){return fa()?e instanceof Element||e instanceof Zt(e).Element:!1}function vn(e){return fa()?e instanceof HTMLElement||e instanceof Zt(e).HTMLElement:!1}function Dd(e){return!fa()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Zt(e).ShadowRoot}function Oo(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=hn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function T3(e){return["table","td","th"].includes(Oi(e))}function ma(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Tu(e){const t=$u(),n=Dt(e)?hn(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function $3(e){let t=sr(e);for(;vn(t)&&!bi(t);){if(Tu(t))return t;if(ma(t))return null;t=sr(t)}return null}function $u(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function bi(e){return["html","body","#document"].includes(Oi(e))}function hn(e){return Zt(e).getComputedStyle(e)}function ha(e){return Dt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function sr(e){if(Oi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Dd(e)&&e.host||xn(e);return Dd(t)?t.host:t}function mh(e){const t=sr(e);return bi(t)?e.ownerDocument?e.ownerDocument.body:e.body:vn(t)&&Oo(t)?t:mh(t)}function ho(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=mh(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=Zt(i);if(o){const a=El(s);return t.concat(s,s.visualViewport||[],Oo(i)?i:[],a&&n?ho(a):[])}return t.concat(i,ho(i,[],n))}function El(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function M3(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}const Or=Math.min,Tt=Math.max,po=Math.round,qo=Math.floor,wn=e=>({x:e,y:e}),I3={left:"right",right:"left",bottom:"top",top:"bottom"},D3={start:"end",end:"start"};function Od(e,t,n){return Tt(e,Or(t,n))}function Ri(e,t){return typeof e=="function"?e(t):e}function ar(e){return e.split("-")[0]}function Ro(e){return e.split("-")[1]}function hh(e){return e==="x"?"y":"x"}function ph(e){return e==="y"?"height":"width"}function Rr(e){return["top","bottom"].includes(ar(e))?"y":"x"}function gh(e){return hh(Rr(e))}function O3(e,t,n){n===void 0&&(n=!1);const r=Ro(e),i=gh(e),o=ph(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=Ms(s)),[s,Ms(s)]}function R3(e){const t=Ms(e);return[Al(e),t,Al(t)]}function Al(e){return e.replace(/start|end/g,t=>D3[t])}function F3(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:s;default:return[]}}function P3(e,t,n,r){const i=Ro(e);let o=F3(ar(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(Al)))),o}function Ms(e){return e.replace(/left|right|bottom|top/g,t=>I3[t])}function L3(e){return{top:0,right:0,bottom:0,left:0,...e}}function V3(e){return typeof e!="number"?L3(e):{top:e,right:e,bottom:e,left:e}}function Is(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Rd(e,t,n){let{reference:r,floating:i}=e;const o=Rr(t),s=gh(t),a=ph(s),l=ar(t),c=o==="y",f=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,p=r[a]/2-i[a]/2;let h;switch(l){case"top":h={x:f,y:r.y-i.height};break;case"bottom":h={x:f,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-i.width,y:d};break;default:h={x:r.x,y:r.y}}switch(Ro(t)){case"start":h[s]-=p*(n&&c?-1:1);break;case"end":h[s]+=p*(n&&c?-1:1);break}return h}const H3=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:d}=Rd(c,r,l),p=r,h={},m=0;for(let v=0;v<a.length;v++){const{name:b,fn:x}=a[v],{x:C,y:S,data:$,reset:D}=await x({x:f,y:d,initialPlacement:r,placement:p,strategy:i,middlewareData:h,rects:c,platform:s,elements:{reference:e,floating:t}});f=C??f,d=S??d,h={...h,[b]:{...h[b],...$}},D&&m<=50&&(m++,typeof D=="object"&&(D.placement&&(p=D.placement),D.rects&&(c=D.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):D.rects),{x:f,y:d}=Rd(c,p,l)),v=-1)}return{x:f,y:d,placement:p,strategy:i,middlewareData:h}};async function pa(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=Ri(t,e),m=V3(h),b=a[p?d==="floating"?"reference":"floating":d],x=Is(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(b)))==null||n?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:f,strategy:l})),C=d==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),$=await(o.isElement==null?void 0:o.isElement(S))?await(o.getScale==null?void 0:o.getScale(S))||{x:1,y:1}:{x:1,y:1},D=Is(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:C,offsetParent:S,strategy:l}):C);return{top:(x.top-D.top+m.top)/$.y,bottom:(D.bottom-x.bottom+m.bottom)/$.y,left:(x.left-D.left+m.left)/$.x,right:(D.right-x.right+m.right)/$.x}}const j3=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:v=!0,...b}=Ri(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const x=ar(i),C=Rr(a),S=ar(a)===a,$=await(l.isRTL==null?void 0:l.isRTL(c.floating)),D=p||(S||!v?[Ms(a)]:R3(a)),F=m!=="none";!p&&F&&D.push(...P3(a,v,m,$));const L=[a,...D],E=await pa(t,b),_=[];let k=((r=o.flip)==null?void 0:r.overflows)||[];if(f&&_.push(E[x]),d){const B=O3(i,s,$);_.push(E[B[0]],E[B[1]])}if(k=[...k,{placement:i,overflows:_}],!_.every(B=>B<=0)){var N,I;const B=(((N=o.flip)==null?void 0:N.index)||0)+1,pe=L[B];if(pe)return{data:{index:B,overflows:k},reset:{placement:pe}};let Z=(I=k.filter(U=>U.overflows[0]<=0).sort((U,P)=>U.overflows[1]-P.overflows[1])[0])==null?void 0:I.placement;if(!Z)switch(h){case"bestFit":{var O;const U=(O=k.filter(P=>{if(F){const G=Rr(P.placement);return G===C||G==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(G=>G>0).reduce((G,j)=>G+j,0)]).sort((P,G)=>P[1]-G[1])[0])==null?void 0:O[0];U&&(Z=U);break}case"initialPlacement":Z=a;break}if(i!==Z)return{reset:{placement:Z}}}return{}}}};async function B3(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=ar(n),a=Ro(n),l=Rr(n)==="y",c=["left","top"].includes(s)?-1:1,f=o&&l?-1:1,d=Ri(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof m=="number"&&(h=a==="end"?m*-1:m),l?{x:h*f,y:p*c}:{x:p*c,y:h*f}}const W3=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:a}=t,l=await B3(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},U3=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:b=>{let{x,y:C}=b;return{x,y:C}}},...l}=Ri(e,t),c={x:n,y:r},f=await pa(t,l),d=Rr(ar(i)),p=hh(d);let h=c[p],m=c[d];if(o){const b=p==="y"?"top":"left",x=p==="y"?"bottom":"right",C=h+f[b],S=h-f[x];h=Od(C,h,S)}if(s){const b=d==="y"?"top":"left",x=d==="y"?"bottom":"right",C=m+f[b],S=m-f[x];m=Od(C,m,S)}const v=a.fn({...t,[p]:h,[d]:m});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[p]:o,[d]:s}}}}}},G3=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:s,elements:a}=t,{apply:l=()=>{},...c}=Ri(e,t),f=await pa(t,c),d=ar(i),p=Ro(i),h=Rr(i)==="y",{width:m,height:v}=o.floating;let b,x;d==="top"||d==="bottom"?(b=d,x=p===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(x=d,b=p==="end"?"top":"bottom");const C=v-f.top-f.bottom,S=m-f.left-f.right,$=Or(v-f[b],C),D=Or(m-f[x],S),F=!t.middlewareData.shift;let L=$,E=D;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(L=C),F&&!p){const k=Tt(f.left,0),N=Tt(f.right,0),I=Tt(f.top,0),O=Tt(f.bottom,0);h?E=m-2*(k!==0||N!==0?k+N:Tt(f.left,f.right)):L=v-2*(I!==0||O!==0?I+O:Tt(f.top,f.bottom))}await l({...t,availableWidth:E,availableHeight:L});const _=await s.getDimensions(a.floating);return m!==_.width||v!==_.height?{reset:{rects:!0}}:{}}}};function wh(e){const t=hn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=vn(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=po(n)!==o||po(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function Mu(e){return Dt(e)?e:e.contextElement}function ci(e){const t=Mu(e);if(!vn(t))return wn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=wh(t);let s=(o?po(n.width):n.width)/r,a=(o?po(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const z3=wn(0);function yh(e){const t=Zt(e);return!$u()||!t.visualViewport?z3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function q3(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Zt(e)?!1:t}function Fr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Mu(e);let s=wn(1);t&&(r?Dt(r)&&(s=ci(r)):s=ci(e));const a=q3(o,n,r)?yh(o):wn(0);let l=(i.left+a.x)/s.x,c=(i.top+a.y)/s.y,f=i.width/s.x,d=i.height/s.y;if(o){const p=Zt(o),h=r&&Dt(r)?Zt(r):r;let m=p,v=El(m);for(;v&&r&&h!==m;){const b=ci(v),x=v.getBoundingClientRect(),C=hn(v),S=x.left+(v.clientLeft+parseFloat(C.paddingLeft))*b.x,$=x.top+(v.clientTop+parseFloat(C.paddingTop))*b.y;l*=b.x,c*=b.y,f*=b.x,d*=b.y,l+=S,c+=$,m=Zt(v),v=El(m)}}return Is({width:f,height:d,x:l,y:c})}function Iu(e,t){const n=ha(e).scrollLeft;return t?t.left+n:Fr(xn(e)).left+n}function vh(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:Iu(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function Y3(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=xn(r),a=t?ma(t.floating):!1;if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},c=wn(1);const f=wn(0),d=vn(r);if((d||!d&&!o)&&((Oi(r)!=="body"||Oo(s))&&(l=ha(r)),vn(r))){const h=Fr(r);c=ci(r),f.x=h.x+r.clientLeft,f.y=h.y+r.clientTop}const p=s&&!d&&!o?vh(s,l,!0):wn(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+f.x+p.x,y:n.y*c.y-l.scrollTop*c.y+f.y+p.y}}function Z3(e){return Array.from(e.getClientRects())}function K3(e){const t=xn(e),n=ha(e),r=e.ownerDocument.body,i=Tt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Tt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Iu(e);const a=-n.scrollTop;return hn(r).direction==="rtl"&&(s+=Tt(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}function X3(e,t){const n=Zt(e),r=xn(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;const c=$u();(!c||c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a,y:l}}function J3(e,t){const n=Fr(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=vn(e)?ci(e):wn(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=i*o.x,c=r*o.y;return{width:s,height:a,x:l,y:c}}function Fd(e,t,n){let r;if(t==="viewport")r=X3(e,n);else if(t==="document")r=K3(xn(e));else if(Dt(t))r=J3(t,n);else{const i=yh(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Is(r)}function bh(e,t){const n=sr(e);return n===t||!Dt(n)||bi(n)?!1:hn(n).position==="fixed"||bh(n,t)}function Q3(e,t){const n=t.get(e);if(n)return n;let r=ho(e,[],!1).filter(a=>Dt(a)&&Oi(a)!=="body"),i=null;const o=hn(e).position==="fixed";let s=o?sr(e):e;for(;Dt(s)&&!bi(s);){const a=hn(s),l=Tu(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Oo(s)&&!l&&bh(e,s))?r=r.filter(f=>f!==s):i=a,s=sr(s)}return t.set(e,r),r}function e5(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?ma(t)?[]:Q3(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((c,f)=>{const d=Fd(t,f,i);return c.top=Tt(d.top,c.top),c.right=Or(d.right,c.right),c.bottom=Or(d.bottom,c.bottom),c.left=Tt(d.left,c.left),c},Fd(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function t5(e){const{width:t,height:n}=wh(e);return{width:t,height:n}}function n5(e,t,n){const r=vn(t),i=xn(t),o=n==="fixed",s=Fr(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=wn(0);if(r||!r&&!o)if((Oi(t)!=="body"||Oo(i))&&(a=ha(t)),r){const p=Fr(t,!0,o,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else i&&(l.x=Iu(i));const c=i&&!r&&!o?vh(i,a):wn(0),f=s.left+a.scrollLeft-l.x-c.x,d=s.top+a.scrollTop-l.y-c.y;return{x:f,y:d,width:s.width,height:s.height}}function Wa(e){return hn(e).position==="static"}function Pd(e,t){if(!vn(e)||hn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return xn(e)===n&&(n=n.ownerDocument.body),n}function _h(e,t){const n=Zt(e);if(ma(e))return n;if(!vn(e)){let i=sr(e);for(;i&&!bi(i);){if(Dt(i)&&!Wa(i))return i;i=sr(i)}return n}let r=Pd(e,t);for(;r&&T3(r)&&Wa(r);)r=Pd(r,t);return r&&bi(r)&&Wa(r)&&!Tu(r)?n:r||$3(e)||n}const r5=async function(e){const t=this.getOffsetParent||_h,n=this.getDimensions,r=await n(e.floating);return{reference:n5(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function i5(e){return hn(e).direction==="rtl"}const o5={convertOffsetParentRelativeRectToViewportRelativeRect:Y3,getDocumentElement:xn,getClippingRect:e5,getOffsetParent:_h,getElementRects:r5,getClientRects:Z3,getDimensions:t5,getScale:ci,isElement:Dt,isRTL:i5};function xh(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function s5(e,t){let n=null,r;const i=xn(e);function o(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const c=e.getBoundingClientRect(),{left:f,top:d,width:p,height:h}=c;if(a||t(),!p||!h)return;const m=qo(d),v=qo(i.clientWidth-(f+p)),b=qo(i.clientHeight-(d+h)),x=qo(f),S={rootMargin:-m+"px "+-v+"px "+-b+"px "+-x+"px",threshold:Tt(0,Or(1,l))||1};let $=!0;function D(F){const L=F[0].intersectionRatio;if(L!==l){if(!$)return s();L?s(!1,L):r=setTimeout(()=>{s(!1,1e-7)},1e3)}L===1&&!xh(c,e.getBoundingClientRect())&&s(),$=!1}try{n=new IntersectionObserver(D,{...S,root:i.ownerDocument})}catch{n=new IntersectionObserver(D,S)}n.observe(e)}return s(!0),o}function a5(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Mu(e),f=i||o?[...c?ho(c):[],...ho(t)]:[];f.forEach(x=>{i&&x.addEventListener("scroll",n,{passive:!0}),o&&x.addEventListener("resize",n)});const d=c&&a?s5(c,n):null;let p=-1,h=null;s&&(h=new ResizeObserver(x=>{let[C]=x;C&&C.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var S;(S=h)==null||S.observe(t)})),n()}),c&&!l&&h.observe(c),h.observe(t));let m,v=l?Fr(e):null;l&&b();function b(){const x=Fr(e);v&&!xh(v,x)&&n(),v=x,m=requestAnimationFrame(b)}return n(),()=>{var x;f.forEach(C=>{i&&C.removeEventListener("scroll",n),o&&C.removeEventListener("resize",n)}),d==null||d(),(x=h)==null||x.disconnect(),h=null,l&&cancelAnimationFrame(m)}}const Ua=pa,l5=W3,u5=U3,c5=j3,d5=G3,f5=(e,t,n)=>{const r=new Map,i={platform:o5,...n},o={...i.platform,_c:r};return H3(e,t,{...i,platform:o})};var ss=typeof document<"u"?bn:Re;function Ds(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ds(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!Ds(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Ch(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ld(e,t){const n=Ch(e);return Math.round(t*n)/n}function Ga(e){const t=ie(e);return ss(()=>{t.current=e}),t}function m5(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[f,d]=be({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=be(r);Ds(p,r)||h(r);const[m,v]=be(null),[b,x]=be(null),C=Oe(P=>{P!==F.current&&(F.current=P,v(P))},[]),S=Oe(P=>{P!==L.current&&(L.current=P,x(P))},[]),$=o||m,D=s||b,F=ie(null),L=ie(null),E=ie(f),_=l!=null,k=Ga(l),N=Ga(i),I=Ga(c),O=Oe(()=>{if(!F.current||!L.current)return;const P={placement:t,strategy:n,middleware:p};N.current&&(P.platform=N.current),f5(F.current,L.current,P).then(G=>{const j={...G,isPositioned:I.current!==!1};B.current&&!Ds(E.current,j)&&(E.current=j,Yt(()=>{d(j)}))})},[p,t,n,N,I]);ss(()=>{c===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,d(P=>({...P,isPositioned:!1})))},[c]);const B=ie(!1);ss(()=>(B.current=!0,()=>{B.current=!1}),[]),ss(()=>{if($&&(F.current=$),D&&(L.current=D),$&&D){if(k.current)return k.current($,D,O);O()}},[$,D,O,k,_]);const pe=fe(()=>({reference:F,floating:L,setReference:C,setFloating:S}),[C,S]),Z=fe(()=>({reference:$,floating:D}),[$,D]),U=fe(()=>{const P={position:n,left:0,top:0};if(!Z.floating)return P;const G=Ld(Z.floating,f.x),j=Ld(Z.floating,f.y);return a?{...P,transform:"translate("+G+"px, "+j+"px)",...Ch(Z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:G,top:j}},[n,a,Z.floating,f.x,f.y]);return fe(()=>({...f,update:O,refs:pe,elements:Z,floatingStyles:U}),[f,O,pe,Z,U])}const Sh=(e,t)=>({...l5(e),options:[e,t]}),h5=(e,t)=>({...u5(e),options:[e,t]}),p5=(e,t)=>({...c5(e),options:[e,t]}),g5=(e,t)=>({...d5(e),options:[e,t]}),Eh={...ds},w5=Eh.useInsertionEffect,y5=w5||(e=>e());function Ah(e){const t=ie(()=>{});return y5(()=>{t.current=e}),Oe(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}var kl=typeof document<"u"?bn:Re;let Vd=!1,v5=0;const Hd=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+v5++;function b5(){const[e,t]=be(()=>Vd?Hd():void 0);return kl(()=>{e==null&&t(Hd())},[]),Re(()=>{Vd=!0},[]),e}const _5=Eh.useId,x5=_5||b5;function C5(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const S5=st(null),E5=st(null),A5=()=>{var e;return((e=Ve(S5))==null?void 0:e.id)||null},k5=()=>Ve(E5),N5="data-floating-ui-focusable";function T5(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=x5(),o=ie({}),[s]=be(()=>C5()),a=A5()!=null,[l,c]=be(r.reference),f=Ah((h,m,v)=>{o.current.openEvent=h?m:void 0,s.emit("openchange",{open:h,event:m,reason:v,nested:a}),n==null||n(h,m,v)}),d=fe(()=>({setPositionReference:c}),[]),p=fe(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return fe(()=>({dataRef:o,open:t,onOpenChange:f,elements:p,events:s,floatingId:i,refs:d}),[t,f,p,s,i,d])}function $5(e){e===void 0&&(e={});const{nodeId:t}=e,n=T5({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,s]=be(null),[a,l]=be(null),f=(i==null?void 0:i.domReference)||o,d=ie(null),p=k5();kl(()=>{f&&(d.current=f)},[f]);const h=m5({...e,elements:{...i,...a&&{reference:a}}}),m=Oe(S=>{const $=Dt(S)?{getBoundingClientRect:()=>S.getBoundingClientRect(),contextElement:S}:S;l($),h.refs.setReference($)},[h.refs]),v=Oe(S=>{(Dt(S)||S===null)&&(d.current=S,s(S)),(Dt(h.refs.reference.current)||h.refs.reference.current===null||S!==null&&!Dt(S))&&h.refs.setReference(S)},[h.refs]),b=fe(()=>({...h.refs,setReference:v,setPositionReference:m,domReference:d}),[h.refs,v,m]),x=fe(()=>({...h.elements,domReference:f}),[h.elements,f]),C=fe(()=>({...h,...r,refs:b,elements:x,nodeId:t}),[h,b,x,t,r]);return kl(()=>{r.dataRef.current.floatingContext=C;const S=p==null?void 0:p.nodesRef.current.find($=>$.id===t);S&&(S.context=C)}),fe(()=>({...h,context:C,refs:b,elements:x}),[h,b,x,C])}const jd="active",Bd="selected";function za(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[jd]:s,[Bd]:a,...l}=e;o=l}return{...n==="floating"&&{tabIndex:-1,[N5]:""},...o,...t.map(s=>{const a=s?s[n]:null;return typeof a=="function"?e?a(e):null:a}).concat(e).reduce((s,a)=>(a&&Object.entries(a).forEach(l=>{let[c,f]=l;if(!(i&&[jd,Bd].includes(c)))if(c.indexOf("on")===0){if(r.has(c)||r.set(c,[]),typeof f=="function"){var d;(d=r.get(c))==null||d.push(f),s[c]=function(){for(var p,h=arguments.length,m=new Array(h),v=0;v<h;v++)m[v]=arguments[v];return(p=r.get(c))==null?void 0:p.map(b=>b(...m)).find(b=>b!==void 0)}}}else s[c]=f}),s),{})}}function M5(e){e===void 0&&(e=[]);const t=e.map(a=>a==null?void 0:a.reference),n=e.map(a=>a==null?void 0:a.floating),r=e.map(a=>a==null?void 0:a.item),i=Oe(a=>za(a,e,"reference"),t),o=Oe(a=>za(a,e,"floating"),n),s=Oe(a=>za(a,e,"item"),r);return fe(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:s}),[i,o,s])}function Wd(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const I5=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:r,onFallbackChange:i,offset:o=0,index:s=0,minItemsVisible:a=4,referenceOverflowThreshold:l=0,scrollRef:c,...f}=Ri(e,t),{rects:d,elements:{floating:p}}=t,h=n.current[s],m=(c==null?void 0:c.current)||p,v=p.clientTop||m.clientTop,b=p.clientTop!==0,x=m.clientTop!==0,C=p===m;if(!h)return{};const S={...t,...await Sh(-h.offsetTop-p.clientTop-d.reference.height/2-h.offsetHeight/2-o).fn(t)},$=await Ua(Wd(S,m.scrollHeight+v+p.clientTop),f),D=await Ua(S,{...f,elementContext:"reference"}),F=Tt(0,$.top),L=S.y+F,k=(m.scrollHeight>m.clientHeight?N=>N:po)(Tt(0,m.scrollHeight+(b&&C||x?v*2:0)-F-Tt(0,$.bottom)));if(m.style.maxHeight=k+"px",m.scrollTop=F,i){const N=m.offsetHeight<h.offsetHeight*Or(a,n.current.length)-1||D.top>=-l||D.bottom>=-l;Yt(()=>i(N))}return r&&(r.current=await Ua(Wd({...S,y:L},m.offsetHeight+v+p.clientTop),f)),{y:L}}});function D5(e,t){const{open:n,elements:r}=e,{enabled:i=!0,overflowRef:o,scrollRef:s,onChange:a}=t,l=Ah(a),c=ie(!1),f=ie(null),d=ie(null);Re(()=>{if(!i)return;function h(v){if(v.ctrlKey||!m||o.current==null)return;const b=v.deltaY,x=o.current.top>=-.5,C=o.current.bottom>=-.5,S=m.scrollHeight-m.clientHeight,$=b<0?-1:1,D=b<0?"max":"min";m.scrollHeight<=m.clientHeight||(!x&&b>0||!C&&b<0?(v.preventDefault(),Yt(()=>{l(F=>F+Math[D](b,S*$))})):/firefox/i.test(M3())&&(m.scrollTop+=b))}const m=(s==null?void 0:s.current)||r.floating;if(n&&m)return m.addEventListener("wheel",h),requestAnimationFrame(()=>{f.current=m.scrollTop,o.current!=null&&(d.current={...o.current})}),()=>{f.current=null,d.current=null,m.removeEventListener("wheel",h)}},[i,n,r.floating,o,s,l]);const p=fe(()=>({onKeyDown(){c.current=!0},onWheel(){c.current=!1},onPointerMove(){c.current=!1},onScroll(){const h=(s==null?void 0:s.current)||r.floating;if(!(!o.current||!h||!c.current)){if(f.current!==null){const m=h.scrollTop-f.current;(o.current.bottom<-.5&&m<-1||o.current.top<-.5&&m>1)&&Yt(()=>l(v=>v+m))}requestAnimationFrame(()=>{f.current=h.scrollTop})}}}),[r.floating,l,o,s]);return fe(()=>i?{floating:p}:{},[i,p])}let Fi=st({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});Fi.displayName="FloatingContext";let Du=st(null);Du.displayName="PlacementContext";function O5(e){return fe(()=>e?typeof e=="string"?{to:e}:e:null,[e])}function R5(){return Ve(Fi).setReference}function F5(){return Ve(Fi).getReferenceProps}function P5(){let{getFloatingProps:e,slot:t}=Ve(Fi);return Oe((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}function L5(e=null){e===!1&&(e=null),typeof e=="string"&&(e={to:e});let t=Ve(Du),n=fe(()=>e,[JSON.stringify(e,(i,o)=>{var s;return(s=o==null?void 0:o.outerHTML)!=null?s:o})]);Xe(()=>{t==null||t(n??null)},[t,n]);let r=Ve(Fi);return fe(()=>[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}let Ud=4;function V5({children:e,enabled:t=!0}){let[n,r]=be(null),[i,o]=be(0),s=ie(null),[a,l]=be(null);H5(a);let c=t&&n!==null&&a!==null,{to:f="bottom",gap:d=0,offset:p=0,padding:h=0,inner:m}=j5(n,a),[v,b="center"]=f.split(" ");Xe(()=>{c&&o(0)},[c]);let{refs:x,floatingStyles:C,context:S}=$5({open:c,placement:v==="selection"?b==="center"?"bottom":`bottom-${b}`:b==="center"?`${v}`:`${v}-${b}`,strategy:"absolute",transform:!1,middleware:[Sh({mainAxis:v==="selection"?0:d,crossAxis:p}),h5({padding:h}),v!=="selection"&&p5({padding:h}),v==="selection"&&m?I5({...m,padding:h,overflowRef:s,offset:i,minItemsVisible:Ud,referenceOverflowThreshold:h,onFallbackChange(N){var I,O;if(!N)return;let B=S.elements.floating;if(!B)return;let pe=parseFloat(getComputedStyle(B).scrollPaddingBottom)||0,Z=Math.min(Ud,B.childElementCount),U=0,P=0;for(let G of(O=(I=S.elements.floating)==null?void 0:I.childNodes)!=null?O:[])if(G instanceof HTMLElement){let j=G.offsetTop,de=j+G.clientHeight+pe,z=B.scrollTop,R=z+B.clientHeight;if(j>=z&&de<=R)Z--;else{P=Math.max(0,Math.min(de,R)-Math.max(j,z)),U=G.clientHeight;break}}Z>=1&&o(G=>{let j=U*Z-P+pe;return G>=j?G:j})}}):null,g5({padding:h,apply({availableWidth:N,availableHeight:I,elements:O}){Object.assign(O.floating.style,{overflow:"auto",maxWidth:`${N}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${I}px)`})}})].filter(Boolean),whileElementsMounted:a5}),[$=v,D=b]=S.placement.split("-");v==="selection"&&($="selection");let F=fe(()=>({anchor:[$,D].filter(Boolean).join(" ")}),[$,D]),L=D5(S,{overflowRef:s,onChange:o}),{getReferenceProps:E,getFloatingProps:_}=M5([L]),k=ue(N=>{l(N),x.setFloating(N)});return u(Du.Provider,{value:r},u(Fi.Provider,{value:{setFloating:k,setReference:x.setReference,styles:C,getReferenceProps:E,getFloatingProps:_,slot:F}},e))}function H5(e){Xe(()=>{if(!e)return;let t=new MutationObserver(()=>{let n=window.getComputedStyle(e).maxHeight,r=parseFloat(n);if(isNaN(r))return;let i=parseInt(n);isNaN(i)||r!==i&&(e.style.maxHeight=`${Math.ceil(r)}px`)});return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}},[e])}function j5(e,t){var n,r,i;let o=qa((n=e==null?void 0:e.gap)!=null?n:"var(--anchor-gap, 0)",t),s=qa((r=e==null?void 0:e.offset)!=null?r:"var(--anchor-offset, 0)",t),a=qa((i=e==null?void 0:e.padding)!=null?i:"var(--anchor-padding, 0)",t);return{...e,gap:o,offset:s,padding:a}}function qa(e,t,n=void 0){let r=dr(),i=ue((l,c)=>{if(l==null)return[n,null];if(typeof l=="number")return[l,null];if(typeof l=="string"){if(!c)return[n,null];let f=Gd(l,c);return[f,d=>{let p=kh(l);{let h=p.map(m=>window.getComputedStyle(c).getPropertyValue(m));r.requestAnimationFrame(function m(){r.nextFrame(m);let v=!1;for(let[x,C]of p.entries()){let S=window.getComputedStyle(c).getPropertyValue(C);if(h[x]!==S){h[x]=S,v=!0;break}}if(!v)return;let b=Gd(l,c);f!==b&&(d(b),f=b)})}return r.dispose}]}return[n,null]}),o=fe(()=>i(e,t)[0],[e,t]),[s=o,a]=be();return Xe(()=>{let[l,c]=i(e,t);if(a(l),!!c)return c(a)},[e,t]),s}function kh(e){let t=/var\((.*)\)/.exec(e);if(t){let n=t[1].indexOf(",");if(n===-1)return[t[1]];let r=t[1].slice(0,n).trim(),i=t[1].slice(n+1).trim();return i?[r,...kh(i)]:[r]}return[]}function Gd(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}function B5(e,t){let[n,r]=be(t);return!e&&n!==t&&r(t),e?n:t}let ga=st(null);ga.displayName="OpenClosedContext";var Ot=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Ot||{});function Fo(){return Ve(ga)}function Nh({value:e,children:t}){return K.createElement(ga.Provider,{value:e},t)}function W5({children:e}){return K.createElement(ga.Provider,{value:null},e)}function U5(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let Yn=[];U5(()=>{function e(t){if(!(t.target instanceof HTMLElement)||t.target===document.body||Yn[0]===t.target)return;let n=t.target;n=n.closest($s),Yn.unshift(n??t.target),Yn=Yn.filter(r=>r!=null&&r.isConnected),Yn.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function G5(e){throw new Error("Unexpected object: "+e)}var yt=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(yt||{});function Ya(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=r??-1;switch(e.focus){case 0:{for(let o=0;o<n.length;++o)if(!t.resolveDisabled(n[o],o,n))return o;return r}case 1:{i===-1&&(i=n.length);for(let o=i-1;o>=0;--o)if(!t.resolveDisabled(n[o],o,n))return o;return r}case 2:{for(let o=i+1;o<n.length;++o)if(!t.resolveDisabled(n[o],o,n))return o;return r}case 3:{for(let o=n.length-1;o>=0;--o)if(!t.resolveDisabled(n[o],o,n))return o;return r}case 4:{for(let o=0;o<n.length;++o)if(t.resolveId(n[o],o,n)===e.id)return o;return r}case 5:return null;default:G5(e)}}function Th(e){let t=ue(e),n=ie(!1);Re(()=>(n.current=!1,()=>{n.current=!0,ua(()=>{n.current&&t()})}),[t])}function z5(){let e=typeof document>"u";return"useSyncExternalStore"in ds?(t=>t.useSyncExternalStore)(ds)(()=>()=>{},()=>!1,()=>!e):!1}function Po(){let e=z5(),[t,n]=be(kr.isHandoffComplete);return t&&kr.isHandoffComplete===!1&&n(!1),Re(()=>{t!==!0&&n(!0)},[t]),Re(()=>kr.handoff(),[]),e?!1:t}let $h=st(!1);function q5(){return Ve($h)}function zd(e){return K.createElement($h.Provider,{value:e.force},e.children)}function Y5(e){let t=q5(),n=Ve(Ih),r=Di(e),[i,o]=be(()=>{var s;if(!t&&n!==null)return(s=n.current)!=null?s:null;if(kr.isServer)return null;let a=r==null?void 0:r.getElementById("headlessui-portal-root");if(a)return a;if(r===null)return null;let l=r.createElement("div");return l.setAttribute("id","headlessui-portal-root"),r.body.appendChild(l)});return Re(()=>{i!==null&&(r!=null&&r.body.contains(i)||r==null||r.body.appendChild(i))},[i,r]),Re(()=>{t||n!==null&&o(n.current)},[n,o,t]),i}let Mh=ze,Z5=pt(function(e,t){let n=e,r=ie(null),i=Mt(jx(d=>{r.current=d}),t),o=Di(r),s=Y5(r),[a]=be(()=>{var d;return kr.isServer?null:(d=o==null?void 0:o.createElement("div"))!=null?d:null}),l=Ve(Nl),c=Po();Xe(()=>{!s||!a||s.contains(a)||(a.setAttribute("data-headlessui-portal",""),s.appendChild(a))},[s,a]),Xe(()=>{if(a&&l)return l.register(a)},[l,a]),Th(()=>{var d;!s||!a||(a instanceof Node&&s.contains(a)&&s.removeChild(a),s.childNodes.length<=0&&((d=s.parentElement)==null||d.removeChild(s)))});let f=Ct();return c?!s||!a?null:Vs(f({ourProps:{ref:i},theirProps:n,slot:{},defaultTag:Mh,name:"Portal"}),a):null});function K5(e,t){let n=Mt(t),{enabled:r=!0,...i}=e,o=Ct();return r?K.createElement(Z5,{...i,ref:n}):o({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:Mh,name:"Portal"})}let X5=ze,Ih=st(null);function J5(e,t){let{target:n,...r}=e,i={ref:Mt(t)},o=Ct();return K.createElement(Ih.Provider,{value:n},o({ourProps:i,theirProps:r,defaultTag:X5,name:"Popover.Group"}))}let Nl=st(null);function Q5(){let e=Ve(Nl),t=ie([]),n=ue(o=>(t.current.push(o),e&&e.register(o),()=>r(o))),r=ue(o=>{let s=t.current.indexOf(o);s!==-1&&t.current.splice(s,1),e&&e.unregister(o)}),i=fe(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,fe(()=>function({children:o}){return K.createElement(Nl.Provider,{value:i},o)},[i])]}let eC=pt(K5),Dh=pt(J5),Oh=Object.assign(eC,{Group:Dh});function tC(e,t=typeof document<"u"?document.defaultView:null,n){let r=Ii(e,"escape");lh(t,"keydown",i=>{r&&(i.defaultPrevented||i.key===wt.Escape&&n(i))})}function nC(){var e;let[t]=be(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[n,r]=be((e=t==null?void 0:t.matches)!=null?e:!1);return Xe(()=>{if(!t)return;function i(o){r(o.matches)}return t.addEventListener("change",i),()=>t.removeEventListener("change",i)},[t]),n}function rC({defaultContainers:e=[],portals:t,mainTreeNode:n}={}){let r=Di(n),i=ue(()=>{var o,s;let a=[];for(let l of e)l!==null&&(l instanceof HTMLElement?a.push(l):"current"in l&&l.current instanceof HTMLElement&&a.push(l.current));if(t!=null&&t.current)for(let l of t.current)a.push(l);for(let l of(o=r==null?void 0:r.querySelectorAll("html > *, body > *"))!=null?o:[])l!==document.body&&l!==document.head&&l instanceof HTMLElement&&l.id!=="headlessui-portal-root"&&(n&&(l.contains(n)||l.contains((s=n==null?void 0:n.getRootNode())==null?void 0:s.host))||a.some(c=>l.contains(c))||a.push(l));return a});return{resolveContainers:i,contains:ue(o=>i().some(s=>s.contains(o)))}}let Rh=st(null);function qd({children:e,node:t}){let[n,r]=be(null),i=Fh(t??n);return K.createElement(Rh.Provider,{value:i},e,i===null&&K.createElement(mo,{features:vi.Hidden,ref:o=>{var s,a;if(o){for(let l of(a=(s=Mi(o))==null?void 0:s.querySelectorAll("html > *, body > *"))!=null?a:[])if(l!==document.body&&l!==document.head&&l instanceof HTMLElement&&l!=null&&l.contains(o)){r(l);break}}}}))}function Fh(e=null){var t;return(t=Ve(Rh))!=null?t:e}function Ou(){let e=ie(!1);return Xe(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var to=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(to||{});function iC(){let e=ie(0);return sh(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function Ph(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}let oC="div";var _r=(e=>(e[e.None=0]="None",e[e.InitialFocus=1]="InitialFocus",e[e.TabLock=2]="TabLock",e[e.FocusLock=4]="FocusLock",e[e.RestoreFocus=8]="RestoreFocus",e[e.AutoFocus=16]="AutoFocus",e))(_r||{});function sC(e,t){let n=ie(null),r=Mt(n,t),{initialFocus:i,initialFocusFallback:o,containers:s,features:a=15,...l}=e;Po()||(a=0);let c=Di(n);cC(a,{ownerDocument:c});let f=dC(a,{ownerDocument:c,container:n,initialFocus:i,initialFocusFallback:o});fC(a,{ownerDocument:c,container:n,containers:s,previousActiveElement:f});let d=iC(),p=ue(C=>{let S=n.current;S&&($=>$())(()=>{Vt(d.current,{[to.Forwards]:()=>{ui(S,cn.First,{skipElements:[C.relatedTarget,o]})},[to.Backwards]:()=>{ui(S,cn.Last,{skipElements:[C.relatedTarget,o]})}})})}),h=Ii(!!(a&2),"focus-trap#tab-lock"),m=dr(),v=ie(!1),b={ref:r,onKeyDown(C){C.key=="Tab"&&(v.current=!0,m.requestAnimationFrame(()=>{v.current=!1}))},onBlur(C){if(!(a&4))return;let S=Ph(s);n.current instanceof HTMLElement&&S.add(n.current);let $=C.relatedTarget;$ instanceof HTMLElement&&$.dataset.headlessuiFocusGuard!=="true"&&(Lh(S,$)||(v.current?ui(n.current,Vt(d.current,{[to.Forwards]:()=>cn.Next,[to.Backwards]:()=>cn.Previous})|cn.WrapAround,{relativeTo:C.target}):C.target instanceof HTMLElement&&On(C.target)))}},x=Ct();return K.createElement(K.Fragment,null,h&&K.createElement(mo,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:vi.Focusable}),x({ourProps:b,theirProps:l,defaultTag:oC,name:"FocusTrap"}),h&&K.createElement(mo,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:vi.Focusable}))}let aC=pt(sC),lC=Object.assign(aC,{features:_r});function uC(e=!0){let t=ie(Yn.slice());return Nu(([n],[r])=>{r===!0&&n===!1&&ua(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=Yn.slice())},[e,Yn,t]),ue(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function cC(e,{ownerDocument:t}){let n=!!(e&8),r=uC(n);Nu(()=>{n||(t==null?void 0:t.activeElement)===(t==null?void 0:t.body)&&On(r())},[n]),Th(()=>{n&&On(r())})}function dC(e,{ownerDocument:t,container:n,initialFocus:r,initialFocusFallback:i}){let o=ie(null),s=Ii(!!(e&1),"focus-trap#initial-focus"),a=Ou();return Nu(()=>{if(e===0)return;if(!s){i!=null&&i.current&&On(i.current);return}let l=n.current;l&&ua(()=>{if(!a.current)return;let c=t==null?void 0:t.activeElement;if(r!=null&&r.current){if((r==null?void 0:r.current)===c){o.current=c;return}}else if(l.contains(c)){o.current=c;return}if(r!=null&&r.current)On(r.current);else{if(e&16){if(ui(l,cn.First|cn.AutoFocus)!==Sl.Error)return}else if(ui(l,cn.First)!==Sl.Error)return;if(i!=null&&i.current&&(On(i.current),(t==null?void 0:t.activeElement)===i.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}o.current=t==null?void 0:t.activeElement})},[i,s,e]),o}function fC(e,{ownerDocument:t,container:n,containers:r,previousActiveElement:i}){let o=Ou(),s=!!(e&4);lh(t==null?void 0:t.defaultView,"focus",a=>{if(!s||!o.current)return;let l=Ph(r);n.current instanceof HTMLElement&&l.add(n.current);let c=i.current;if(!c)return;let f=a.target;f&&f instanceof HTMLElement?Lh(l,f)?(i.current=f,On(f)):(a.preventDefault(),a.stopPropagation(),On(c)):On(i.current)},!0)}function Lh(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function Vh(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||((t=e.as)!=null?t:jh)!==ze||K.Children.count(e.children)===1}let wa=st(null);wa.displayName="TransitionContext";var mC=(e=>(e.Visible="visible",e.Hidden="hidden",e))(mC||{});function hC(){let e=Ve(wa);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function pC(){let e=Ve(ya);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let ya=st(null);ya.displayName="NestingContext";function va(e){return"children"in e?va(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Hh(e,t){let n=fr(e),r=ie([]),i=Ou(),o=dr(),s=ue((h,m=Xn.Hidden)=>{let v=r.current.findIndex(({el:b})=>b===h);v!==-1&&(Vt(m,{[Xn.Unmount](){r.current.splice(v,1)},[Xn.Hidden](){r.current[v].state="hidden"}}),o.microTask(()=>{var b;!va(r)&&i.current&&((b=n.current)==null||b.call(n))}))}),a=ue(h=>{let m=r.current.find(({el:v})=>v===h);return m?m.state!=="visible"&&(m.state="visible"):r.current.push({el:h,state:"visible"}),()=>s(h,Xn.Unmount)}),l=ie([]),c=ie(Promise.resolve()),f=ie({enter:[],leave:[]}),d=ue((h,m,v)=>{l.current.splice(0),t&&(t.chains.current[m]=t.chains.current[m].filter(([b])=>b!==h)),t==null||t.chains.current[m].push([h,new Promise(b=>{l.current.push(b)})]),t==null||t.chains.current[m].push([h,new Promise(b=>{Promise.all(f.current[m].map(([x,C])=>C)).then(()=>b())})]),m==="enter"?c.current=c.current.then(()=>t==null?void 0:t.wait.current).then(()=>v(m)):v(m)}),p=ue((h,m,v)=>{Promise.all(f.current[m].splice(0).map(([b,x])=>x)).then(()=>{var b;(b=l.current.shift())==null||b()}).then(()=>v(m))});return fe(()=>({children:r,register:a,unregister:s,onStart:d,onStop:p,wait:c,chains:f}),[a,s,r,d,p,f,c])}let jh=ze,Bh=yi.RenderStrategy;function gC(e,t){var n,r;let{transition:i=!0,beforeEnter:o,afterEnter:s,beforeLeave:a,afterLeave:l,enter:c,enterFrom:f,enterTo:d,entered:p,leave:h,leaveFrom:m,leaveTo:v,...b}=e,[x,C]=be(null),S=ie(null),$=Vh(e),D=Mt(...$?[S,t,C]:t===null?[]:[t]),F=(n=b.unmount)==null||n?Xn.Unmount:Xn.Hidden,{show:L,appear:E,initial:_}=hC(),[k,N]=be(L?"visible":"hidden"),I=pC(),{register:O,unregister:B}=I;Xe(()=>O(S),[O,S]),Xe(()=>{if(F===Xn.Hidden&&S.current){if(L&&k!=="visible"){N("visible");return}return Vt(k,{hidden:()=>B(S),visible:()=>O(S)})}},[k,S,O,B,L,F]);let pe=Po();Xe(()=>{if($&&pe&&k==="visible"&&S.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[S,k,pe,$]);let Z=_&&!E,U=E&&L&&_,P=ie(!1),G=Hh(()=>{P.current||(N("hidden"),B(S))},I),j=ue(Ee=>{P.current=!0;let ne=Ee?"enter":"leave";G.onStart(S,ne,xe=>{xe==="enter"?o==null||o():xe==="leave"&&(a==null||a())})}),de=ue(Ee=>{let ne=Ee?"enter":"leave";P.current=!1,G.onStop(S,ne,xe=>{xe==="enter"?s==null||s():xe==="leave"&&(l==null||l())}),ne==="leave"&&!va(G)&&(N("hidden"),B(S))});Re(()=>{$&&i||(j(L),de(L))},[L,$,i]);let z=!(!i||!$||!pe||Z),[,R]=dh(z,x,L,{start:j,end:de}),ge=zn({ref:D,className:((r=xl(b.className,U&&c,U&&f,R.enter&&c,R.enter&&R.closed&&f,R.enter&&!R.closed&&d,R.leave&&h,R.leave&&!R.closed&&m,R.leave&&R.closed&&v,!R.transition&&L&&p))==null?void 0:r.trim())||void 0,...ch(R)}),me=0;k==="visible"&&(me|=Ot.Open),k==="hidden"&&(me|=Ot.Closed),R.enter&&(me|=Ot.Opening),R.leave&&(me|=Ot.Closing);let we=Ct();return K.createElement(ya.Provider,{value:G},K.createElement(Nh,{value:me},we({ourProps:ge,theirProps:b,defaultTag:jh,features:Bh,visible:k==="visible",name:"Transition.Child"})))}function wC(e,t){let{show:n,appear:r=!1,unmount:i=!0,...o}=e,s=ie(null),a=Vh(e),l=Mt(...a?[s,t]:t===null?[]:[t]);Po();let c=Fo();if(n===void 0&&c!==null&&(n=(c&Ot.Open)===Ot.Open),n===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[f,d]=be(n?"visible":"hidden"),p=Hh(()=>{n||d("hidden")}),[h,m]=be(!0),v=ie([n]);Xe(()=>{h!==!1&&v.current[v.current.length-1]!==n&&(v.current.push(n),m(!1))},[v,n]);let b=fe(()=>({show:n,appear:r,initial:h}),[n,r,h]);Xe(()=>{n?d("visible"):!va(p)&&s.current!==null&&d("hidden")},[n,p]);let x={unmount:i},C=ue(()=>{var D;h&&m(!1),(D=e.beforeEnter)==null||D.call(e)}),S=ue(()=>{var D;h&&m(!1),(D=e.beforeLeave)==null||D.call(e)}),$=Ct();return K.createElement(ya.Provider,{value:p},K.createElement(wa.Provider,{value:b},$({ourProps:{...x,as:ze,children:K.createElement(Wh,{ref:l,...x,...o,beforeEnter:C,beforeLeave:S})},theirProps:{},defaultTag:ze,features:Bh,visible:f==="visible",name:"Transition"})))}function yC(e,t){let n=Ve(wa)!==null,r=Fo()!==null;return K.createElement(K.Fragment,null,!n&&r?K.createElement(Tl,{ref:t,...e}):K.createElement(Wh,{ref:t,...e}))}let Tl=pt(wC),Wh=pt(gC),Ru=pt(yC),Uh=Object.assign(Tl,{Child:Ru,Root:Tl});var vC=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(vC||{}),bC=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(bC||{});let _C={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},Fu=st(null);Fu.displayName="DialogContext";function ba(e){let t=Ve(Fu);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,ba),n}return t}function xC(e,t){return Vt(t.type,_C,e,t)}let Yd=pt(function(e,t){let n=nn(),{id:r=`headlessui-dialog-${n}`,open:i,onClose:o,initialFocus:s,role:a="dialog",autoFocus:l=!0,__demoMode:c=!1,unmount:f=!1,...d}=e,p=ie(!1);a=function(){return a==="dialog"||a==="alertdialog"?a:(p.current||(p.current=!0,console.warn(`Invalid role [${a}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let h=Fo();i===void 0&&h!==null&&(i=(h&Ot.Open)===Ot.Open);let m=ie(null),v=Mt(m,t),b=Di(m),x=i?0:1,[C,S]=Lr(xC,{titleId:null,descriptionId:null,panelRef:Ps()}),$=ue(()=>o(!1)),D=ue(de=>S({type:0,id:de})),F=Po()?x===0:!1,[L,E]=Q5(),_={get current(){var de;return(de=C.panelRef.current)!=null?de:m.current}},k=Fh(),{resolveContainers:N}=rC({mainTreeNode:k,portals:L,defaultContainers:[_]}),I=h!==null?(h&Ot.Closing)===Ot.Closing:!1;eh(c||I?!1:F,{allowed:ue(()=>{var de,z;return[(z=(de=m.current)==null?void 0:de.closest("[data-headlessui-portal]"))!=null?z:null]}),disallowed:ue(()=>{var de;return[(de=k==null?void 0:k.closest("body > *:not(#headlessui-portal-root)"))!=null?de:null]})}),ah(F,N,de=>{de.preventDefault(),$()}),tC(F,b==null?void 0:b.defaultView,de=>{de.preventDefault(),de.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),$()}),uh(c||I?!1:F,b,N),th(F,m,$);let[O,B]=Wx(),pe=fe(()=>[{dialogState:x,close:$,setTitleId:D,unmount:f},C],[x,C,$,D,f]),Z=fe(()=>({open:x===0}),[x]),U={ref:v,id:r,role:a,tabIndex:-1,"aria-modal":c?void 0:x===0?!0:void 0,"aria-labelledby":C.titleId,"aria-describedby":O,unmount:f},P=!nC(),G=_r.None;F&&!c&&(G|=_r.RestoreFocus,G|=_r.TabLock,l&&(G|=_r.AutoFocus),P&&(G|=_r.InitialFocus));let j=Ct();return K.createElement(W5,null,K.createElement(zd,{force:!0},K.createElement(Oh,null,K.createElement(Fu.Provider,{value:pe},K.createElement(Dh,{target:m},K.createElement(zd,{force:!1},K.createElement(B,{slot:Z},K.createElement(E,null,K.createElement(lC,{initialFocus:s,initialFocusFallback:m,containers:N,features:G},K.createElement(e3,{value:$},j({ourProps:U,theirProps:d,slot:Z,defaultTag:CC,features:SC,visible:x===0,name:"Dialog"})))))))))))}),CC="div",SC=yi.RenderStrategy|yi.Static;function EC(e,t){let{transition:n=!1,open:r,...i}=e,o=Fo(),s=e.hasOwnProperty("open")||o!==null,a=e.hasOwnProperty("onClose");if(!s&&!a)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!s)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!a)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!o&&typeof e.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if(typeof e.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return(r!==void 0||n)&&!i.static?K.createElement(qd,null,K.createElement(Uh,{show:r,transition:n,unmount:i.unmount},K.createElement(Yd,{ref:t,...i}))):K.createElement(qd,null,K.createElement(Yd,{ref:t,open:r,...i}))}let AC="div";function kC(e,t){let n=nn(),{id:r=`headlessui-dialog-panel-${n}`,transition:i=!1,...o}=e,[{dialogState:s,unmount:a},l]=ba("Dialog.Panel"),c=Mt(t,l.panelRef),f=fe(()=>({open:s===0}),[s]),d=ue(b=>{b.stopPropagation()}),p={ref:c,id:r,onClick:d},h=i?Ru:ze,m=i?{unmount:a}:{},v=Ct();return K.createElement(h,{...m},v({ourProps:p,theirProps:o,slot:f,defaultTag:AC,name:"Dialog.Panel"}))}let NC="div";function TC(e,t){let{transition:n=!1,...r}=e,[{dialogState:i,unmount:o}]=ba("Dialog.Backdrop"),s=fe(()=>({open:i===0}),[i]),a={ref:t,"aria-hidden":!0},l=n?Ru:ze,c=n?{unmount:o}:{},f=Ct();return K.createElement(l,{...c},f({ourProps:a,theirProps:r,slot:s,defaultTag:NC,name:"Dialog.Backdrop"}))}let $C="h2";function MC(e,t){let n=nn(),{id:r=`headlessui-dialog-title-${n}`,...i}=e,[{dialogState:o,setTitleId:s}]=ba("Dialog.Title"),a=Mt(t);Re(()=>(s(r),()=>s(null)),[r,s]);let l=fe(()=>({open:o===0}),[o]),c={ref:a,id:r};return Ct()({ourProps:c,theirProps:i,slot:l,defaultTag:$C,name:"Dialog.Title"})}let IC=pt(EC),DC=pt(kC),OC=pt(TC),RC=pt(MC),Pu=Object.assign(IC,{Panel:DC,Title:RC,Description:qx});function FC(e,t){let n=ie({left:0,top:0});if(Xe(()=>{if(!t)return;let i=t.getBoundingClientRect();i&&(n.current=i)},[e,t]),t==null||!e||t===document.activeElement)return!1;let r=t.getBoundingClientRect();return r.top!==n.current.top||r.left!==n.current.left}let Zd=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Kd(e){var t,n;let r=(t=e.innerText)!=null?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return r;let o=!1;for(let a of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))a.remove(),o=!0;let s=o?(n=i.innerText)!=null?n:"":r;return Zd.test(s)&&(s=s.replace(Zd,"")),s}function PC(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(i=>{let o=document.getElementById(i);if(o){let s=o.getAttribute("aria-label");return typeof s=="string"?s.trim():Kd(o).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return Kd(e).trim()}function LC(e){let t=ie(""),n=ie("");return ue(()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let o=PC(r).trim().toLowerCase();return t.current=i,n.current=o,o})}var VC=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(VC||{}),HC=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(HC||{}),jC=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(jC||{}),BC=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.SetButtonElement=7]="SetButtonElement",e[e.SetOptionsElement=8]="SetOptionsElement",e))(BC||{});function Za(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=ih(t(e.options.slice()),o=>o.dataRef.current.domRef.current),i=n?r.indexOf(n):null;return i===-1&&(i=null),{options:r,activeOptionIndex:i}}let WC={1(e){return e.dataRef.current.disabled||e.listboxState===1?e:{...e,activeOptionIndex:null,listboxState:1,__demoMode:!1}},0(e){if(e.dataRef.current.disabled||e.listboxState===0)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex(i=>n(i.dataRef.current.value));return r!==-1&&(t=r),{...e,listboxState:0,activeOptionIndex:t,__demoMode:!1}},2(e,t){var n,r,i,o,s;if(e.dataRef.current.disabled||e.listboxState===1)return e;let a={...e,searchQuery:"",activationTrigger:(n=t.trigger)!=null?n:1,__demoMode:!1};if(t.focus===yt.Nothing)return{...a,activeOptionIndex:null};if(t.focus===yt.Specific)return{...a,activeOptionIndex:e.options.findIndex(f=>f.id===t.id)};if(t.focus===yt.Previous){let f=e.activeOptionIndex;if(f!==null){let d=e.options[f].dataRef.current.domRef,p=Ya(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:h=>h.id,resolveDisabled:h=>h.dataRef.current.disabled});if(p!==null){let h=e.options[p].dataRef.current.domRef;if(((r=d.current)==null?void 0:r.previousElementSibling)===h.current||((i=h.current)==null?void 0:i.previousElementSibling)===null)return{...a,activeOptionIndex:p}}}}else if(t.focus===yt.Next){let f=e.activeOptionIndex;if(f!==null){let d=e.options[f].dataRef.current.domRef,p=Ya(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:h=>h.id,resolveDisabled:h=>h.dataRef.current.disabled});if(p!==null){let h=e.options[p].dataRef.current.domRef;if(((o=d.current)==null?void 0:o.nextElementSibling)===h.current||((s=h.current)==null?void 0:s.nextElementSibling)===null)return{...a,activeOptionIndex:p}}}}let l=Za(e),c=Ya(t,{resolveItems:()=>l.options,resolveActiveIndex:()=>l.activeOptionIndex,resolveId:f=>f.id,resolveDisabled:f=>f.dataRef.current.disabled});return{...a,...l,activeOptionIndex:c}},3:(e,t)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let n=e.searchQuery!==""?0:1,r=e.searchQuery+t.value.toLowerCase(),i=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(s=>{var a;return!s.dataRef.current.disabled&&((a=s.dataRef.current.textValue)==null?void 0:a.startsWith(r))}),o=i?e.options.indexOf(i):-1;return o===-1||o===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:o,activationTrigger:1}},4(e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:{...e,searchQuery:""}},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=Za(e,i=>[...i,n]);return e.activeOptionIndex===null&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},6:(e,t)=>{let n=Za(e,r=>{let i=r.findIndex(o=>o.id===t.id);return i!==-1&&r.splice(i,1),r});return{...e,...n,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element}},Lu=st(null);Lu.displayName="ListboxActionsContext";function _a(e){let t=Ve(Lu);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,_a),n}return t}let xa=st(null);xa.displayName="ListboxDataContext";function Lo(e){let t=Ve(xa);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Lo),n}return t}function UC(e,t){return Vt(t.type,WC,e,t)}let GC=ze;function zC(e,t){var n;let r=Au(),{value:i,defaultValue:o,form:s,name:a,onChange:l,by:c,invalid:f=!1,disabled:d=r||!1,horizontal:p=!1,multiple:h=!1,__demoMode:m=!1,...v}=e;const b=p?"horizontal":"vertical";let x=Mt(t),C=$x(o),[S=h?[]:void 0,$]=Tx(i,l,C),[D,F]=Lr(UC,{dataRef:Ps(),listboxState:m?0:1,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,optionsVisible:!1,buttonElement:null,optionsElement:null,__demoMode:m}),L=ie({static:!1,hold:!1}),E=ie(new Map),_=n3(c),k=Oe(ee=>Vt(N.mode,{1:()=>S.some(oe=>_(oe,ee)),0:()=>_(S,ee)}),[S]),N=fe(()=>({...D,value:S,disabled:d,invalid:f,mode:h?1:0,orientation:b,compare:_,isSelected:k,optionsPropsRef:L,listRef:E}),[S,d,f,h,D,E]);Xe(()=>{D.dataRef.current=N},[N]);let I=N.listboxState===0;ah(I,[N.buttonElement,N.optionsElement],(ee,oe)=>{var q;F({type:1}),rh(oe,ku.Loose)||(ee.preventDefault(),(q=N.buttonElement)==null||q.focus())});let O=fe(()=>({open:N.listboxState===0,disabled:d,invalid:f,value:S}),[N,d,S,f]),B=ue(ee=>{let oe=N.options.find(q=>q.id===ee);oe&&de(oe.dataRef.current.value)}),pe=ue(()=>{if(N.activeOptionIndex!==null){let{dataRef:ee,id:oe}=N.options[N.activeOptionIndex];de(ee.current.value),F({type:2,focus:yt.Specific,id:oe})}}),Z=ue(()=>F({type:0})),U=ue(()=>F({type:1})),P=dr(),G=ue((ee,oe,q)=>{P.dispose(),P.microTask(()=>ee===yt.Specific?F({type:2,focus:yt.Specific,id:oe,trigger:q}):F({type:2,focus:ee,trigger:q}))}),j=ue((ee,oe)=>(F({type:5,id:ee,dataRef:oe}),()=>F({type:6,id:ee}))),de=ue(ee=>Vt(N.mode,{0(){return $==null?void 0:$(ee)},1(){let oe=N.value.slice(),q=oe.findIndex(Se=>_(Se,ee));return q===-1?oe.push(ee):oe.splice(q,1),$==null?void 0:$(oe)}})),z=ue(ee=>F({type:3,value:ee})),R=ue(()=>F({type:4})),ge=ue(ee=>{F({type:7,element:ee})}),me=ue(ee=>{F({type:8,element:ee})}),we=fe(()=>({onChange:de,registerOption:j,goToOption:G,closeListbox:U,openListbox:Z,selectActiveOption:pe,selectOption:B,search:z,clearSearch:R,setButtonElement:ge,setOptionsElement:me}),[]),[Ee,ne]=Yx({inherit:!0}),xe={ref:x},Ce=Oe(()=>{if(C!==void 0)return $==null?void 0:$(C)},[$,C]),De=Ct();return K.createElement(ne,{value:Ee,props:{htmlFor:(n=N.buttonElement)==null?void 0:n.id},slot:{open:N.listboxState===0,disabled:d}},K.createElement(V5,null,K.createElement(Lu.Provider,{value:we},K.createElement(xa.Provider,{value:N},K.createElement(Nh,{value:Vt(N.listboxState,{0:Ot.Open,1:Ot.Closed})},a!=null&&S!=null&&K.createElement(Fx,{disabled:d,data:{[a]:S},form:s,onReset:Ce}),De({ourProps:xe,theirProps:v,slot:O,defaultTag:GC,name:"Listbox"}))))))}let qC="button";function YC(e,t){var n;let r=Lo("Listbox.Button"),i=_a("Listbox.Button"),o=nn(),s=qm(),{id:a=s||`headlessui-listbox-button-${o}`,disabled:l=r.disabled||!1,autoFocus:c=!1,...f}=e,d=Mt(t,R5(),i.setButtonElement),p=F5(),h=ue(N=>{switch(N.key){case wt.Enter:Mx(N.currentTarget);break;case wt.Space:case wt.ArrowDown:N.preventDefault(),Yt(()=>i.openListbox()),r.value||i.goToOption(yt.First);break;case wt.ArrowUp:N.preventDefault(),Yt(()=>i.openListbox()),r.value||i.goToOption(yt.Last);break}}),m=ue(N=>{switch(N.key){case wt.Space:N.preventDefault();break}}),v=ue(N=>{var I;if(Vx(N.currentTarget))return N.preventDefault();r.listboxState===0?(Yt(()=>i.closeListbox()),(I=r.buttonElement)==null||I.focus({preventScroll:!0})):(N.preventDefault(),i.openListbox())}),b=ue(N=>N.preventDefault()),x=Xm([a]),C=Bx(),{isFocusVisible:S,focusProps:$}=wx({autoFocus:c}),{isHovered:D,hoverProps:F}=gx({isDisabled:l}),{pressed:L,pressProps:E}=Cx({disabled:l}),_=fe(()=>({open:r.listboxState===0,active:L||r.listboxState===0,disabled:l,invalid:r.invalid,value:r.value,hover:D,focus:S,autofocus:c}),[r.listboxState,r.value,l,D,S,L,r.invalid,c]),k=Wm(p(),{ref:d,id:a,type:g3(e,r.buttonElement),"aria-haspopup":"listbox","aria-controls":(n=r.optionsElement)==null?void 0:n.id,"aria-expanded":r.listboxState===0,"aria-labelledby":x,"aria-describedby":C,disabled:l||void 0,autoFocus:c,onKeyDown:h,onKeyUp:m,onKeyPress:b,onClick:v},$,F,E);return Ct()({ourProps:k,theirProps:f,slot:_,defaultTag:qC,name:"Listbox.Button"})}let Gh=st(!1),ZC="div",KC=yi.RenderStrategy|yi.Static;function XC(e,t){var n,r;let i=nn(),{id:o=`headlessui-listbox-options-${i}`,anchor:s,portal:a=!1,modal:l=!0,transition:c=!1,...f}=e,d=O5(s),[p,h]=be(null);d&&(a=!0);let m=Lo("Listbox.Options"),v=_a("Listbox.Options"),b=Di(m.optionsElement),x=Fo(),[C,S]=dh(c,p,x!==null?(x&Ot.Open)===Ot.Open:m.listboxState===0);th(C,m.buttonElement,v.closeListbox);let $=m.__demoMode?!1:l&&m.listboxState===0;uh($,b);let D=m.__demoMode?!1:l&&m.listboxState===0;eh(D,{allowed:Oe(()=>[m.buttonElement,m.optionsElement],[m.buttonElement,m.optionsElement])});let F=m.listboxState!==0,L=FC(F,m.buttonElement)?!1:C,E=C&&m.listboxState===1,_=B5(E,m.value),k=ue(R=>m.compare(_,R)),N=fe(()=>{var R;if(d==null||!((R=d==null?void 0:d.to)!=null&&R.includes("selection")))return null;let ge=m.options.findIndex(me=>k(me.dataRef.current.value));return ge===-1&&(ge=0),ge},[d,m.options]),I=(()=>{if(d==null)return;if(N===null)return{...d,inner:void 0};let R=Array.from(m.listRef.current.values());return{...d,inner:{listRef:{current:R},index:N}}})(),[O,B]=L5(I),pe=P5(),Z=Mt(t,d?O:null,v.setOptionsElement,h),U=dr();Re(()=>{var R;let ge=m.optionsElement;ge&&m.listboxState===0&&ge!==((R=Mi(ge))==null?void 0:R.activeElement)&&(ge==null||ge.focus({preventScroll:!0}))},[m.listboxState,m.optionsElement]);let P=ue(R=>{var ge,me;switch(U.dispose(),R.key){case wt.Space:if(m.searchQuery!=="")return R.preventDefault(),R.stopPropagation(),v.search(R.key);case wt.Enter:if(R.preventDefault(),R.stopPropagation(),m.activeOptionIndex!==null){let{dataRef:we}=m.options[m.activeOptionIndex];v.onChange(we.current.value)}m.mode===0&&(Yt(()=>v.closeListbox()),(ge=m.buttonElement)==null||ge.focus({preventScroll:!0}));break;case Vt(m.orientation,{vertical:wt.ArrowDown,horizontal:wt.ArrowRight}):return R.preventDefault(),R.stopPropagation(),v.goToOption(yt.Next);case Vt(m.orientation,{vertical:wt.ArrowUp,horizontal:wt.ArrowLeft}):return R.preventDefault(),R.stopPropagation(),v.goToOption(yt.Previous);case wt.Home:case wt.PageUp:return R.preventDefault(),R.stopPropagation(),v.goToOption(yt.First);case wt.End:case wt.PageDown:return R.preventDefault(),R.stopPropagation(),v.goToOption(yt.Last);case wt.Escape:R.preventDefault(),R.stopPropagation(),Yt(()=>v.closeListbox()),(me=m.buttonElement)==null||me.focus({preventScroll:!0});return;case wt.Tab:R.preventDefault(),R.stopPropagation(),Yt(()=>v.closeListbox()),m3(m.buttonElement,R.shiftKey?cn.Previous:cn.Next);break;default:R.key.length===1&&(v.search(R.key),U.setTimeout(()=>v.clearSearch(),350));break}}),G=(n=m.buttonElement)==null?void 0:n.id,j=fe(()=>({open:m.listboxState===0}),[m.listboxState]),de=Wm(d?pe():{},{id:o,ref:Z,"aria-activedescendant":m.activeOptionIndex===null||(r=m.options[m.activeOptionIndex])==null?void 0:r.id,"aria-multiselectable":m.mode===1?!0:void 0,"aria-labelledby":G,"aria-orientation":m.orientation,onKeyDown:P,role:"listbox",tabIndex:m.listboxState===0?0:void 0,style:{...f.style,...B,"--button-width":i3(m.buttonElement,!0).width},...ch(S)}),z=Ct();return K.createElement(Oh,{enabled:a?e.static||C:!1},K.createElement(xa.Provider,{value:m.mode===1?m:{...m,isSelected:k}},z({ourProps:de,theirProps:f,slot:j,defaultTag:ZC,features:KC,visible:L,name:"Listbox.Options"})))}let JC="div";function QC(e,t){let n=nn(),{id:r=`headlessui-listbox-option-${n}`,disabled:i=!1,value:o,...s}=e,a=Ve(Gh)===!0,l=Lo("Listbox.Option"),c=_a("Listbox.Option"),f=l.activeOptionIndex!==null?l.options[l.activeOptionIndex].id===r:!1,d=l.isSelected(o),p=ie(null),h=LC(p),m=fr({disabled:i,value:o,domRef:p,get textValue(){return h()}}),v=Mt(t,p,_=>{_?l.listRef.current.set(r,_):l.listRef.current.delete(r)});Xe(()=>{if(!l.__demoMode&&l.listboxState===0&&f&&l.activationTrigger!==0)return Bn().requestAnimationFrame(()=>{var _,k;(k=(_=p.current)==null?void 0:_.scrollIntoView)==null||k.call(_,{block:"nearest"})})},[p,f,l.__demoMode,l.listboxState,l.activationTrigger,l.activeOptionIndex]),Xe(()=>{if(!a)return c.registerOption(r,m)},[m,r,a]);let b=ue(_=>{var k;if(i)return _.preventDefault();c.onChange(o),l.mode===0&&(Yt(()=>c.closeListbox()),(k=l.buttonElement)==null||k.focus({preventScroll:!0}))}),x=ue(()=>{if(i)return c.goToOption(yt.Nothing);c.goToOption(yt.Specific,r)}),C=x3(),S=ue(_=>{C.update(_),!i&&(f||c.goToOption(yt.Specific,r,0))}),$=ue(_=>{C.wasMoved(_)&&(i||f||c.goToOption(yt.Specific,r,0))}),D=ue(_=>{C.wasMoved(_)&&(i||f&&c.goToOption(yt.Nothing))}),F=fe(()=>({active:f,focus:f,selected:d,disabled:i,selectedOption:d&&a}),[f,d,i,a]),L=a?{}:{id:r,ref:v,role:"option",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-selected":d,disabled:void 0,onClick:b,onFocus:x,onPointerEnter:S,onMouseEnter:S,onPointerMove:$,onMouseMove:$,onPointerLeave:D,onMouseLeave:D},E=Ct();return!d&&a?null:E({ourProps:L,theirProps:s,slot:F,defaultTag:JC,name:"Listbox.Option"})}let e6=ze;function t6(e,t){let{options:n,placeholder:r,...i}=e,o={ref:Mt(t)},s=Lo("ListboxSelectedOption"),a=fe(()=>({}),[]),l=s.value===void 0||s.value===null||s.mode===1&&Array.isArray(s.value)&&s.value.length===0,c=Ct();return K.createElement(Gh.Provider,{value:!0},c({ourProps:o,theirProps:{...i,children:K.createElement(K.Fragment,null,r&&l?r:n)},slot:a,defaultTag:e6,name:"ListboxSelectedOption"}))}let n6=pt(zC),zh=pt(YC),r6=Jx,qh=pt(XC),Yh=pt(QC),i6=pt(t6),o6=Object.assign(n6,{Button:zh,Label:r6,Options:qh,Option:Yh,SelectedOption:i6}),_t=class extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Open","OnClose","Children"]}};function Pi(e){return u(Pu,jn(e,1))}class lr extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","ClassName","Children"]}}function Li(e){return u(Pu.Panel,jn(e,1))}class Os extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Children"]}}function Zh(e){return u(Pu.Title,jn(e,1))}class Vi extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName"]}}function Hi(e){return u(OC,jn(e,1))}function Br(e,t){let n;return u("svg",w(g([["width",e],["height",t],["viewBox","0 0 "+e+" "+t],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(n=le(u("path",{d:"M6 18L18 6M6 6L18 18",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2,strokeLinecap:"round"})),["children",y.Children.toArray(Array.from(n))])])))}function s6(e,t){let n,r,i,o,s;return Pi(g([new _t(3,[e]),new _t(4,[t]),new _t(5,[[Hi(le(new Vi(2,["fixed inset-0 bg-gray-500/50"]))),u("div",w(g([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(n=[Li(le(new lr(2,[[u("div",w(g([["className","flex flex-col mt-6 mb-6 px-6"],(r=[u("div",w(g([["className","flex flex-row justify-between"],(i=[u("span",{className:"text-gray-900 font-semibold text-lg",children:"What is mapping and why is it important?"}),u("button",w(g([["onClick",a=>{t()}],["type","button"],["className","text-gray-700"],(o=[Br(24,24)],["children",y.Children.toArray(Array.from(o))])])))],["children",y.Children.toArray(Array.from(i))])]))),u("div",w(g([["className","text-sm text-gray-600 pt-6"],(s="Mapping involves pairing each incoming CSV field with its correct destination field. This step is important because it makes sure that your data is organised correctly, minimising the risk of errors and ensuring a smooth import process.",["children",s])])))],["children",y.Children.toArray(Array.from(r))])])))]])))],["children",y.Children.toArray(Array.from(n))])])))]])]))}function Ca(e){return u("span",{className:"font-sonoma text-black font-semibold text-lg",children:e})}function Sa(e){return u("span",{className:"text-sm font-normal pt-2",children:e})}function go(e,t){return u("button",{className:"rounded-2xl text-xs font-medium text-gray-600 border px-3.5 py-1.5 bg-white hover:bg-gray-50",onClick:n=>{t()},type:"button",children:y.Children.toArray([e])})}function a6(e,t){let n,r;return u("svg",w(g([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=le(u("path",w(g([["clipRule","evenodd"],["fill-rule","evenodd"],(r="M18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10ZM11 6C11 6.55228 10.5523 7 10 7C9.44772 7 9 6.55228 9 6C9 5.44772 9.44772 5 10 5C10.5523 5 11 5.44772 11 6ZM9 9C8.44772 9 8 9.44772 8 10C8 10.5523 8.44772 11 9 11V14C9 14.5523 9.44772 15 10 15H11C11.5523 15 12 14.5523 12 14C12 13.4477 11.5523 13 11 13V10C11 9.44772 10.5523 9 10 9H9Z",["d",r]),["fill","#60A5FA"]])))),["children",y.Children.toArray(Array.from(n))])])))}function Kh(){let e,t,n;return u("div",w(g([["className","w-full p-4 bg-blue-50 rounded-md justify-start items-start gap-3 inline-flex"],(e=[a6(20,20),u("div",w(g([["className","grow shrink basis-0 h-[60px] justify-between items-center flex"],(t=[u("div",w(g([["className","grow shrink basis-0 text-blue-800 text-sm font-medium leading-tight"],(n="We’ve automatically pre-filled some options based on the matches found in your CSV. Please double-check to make sure they are correct and fill in any missing fields before continuing.",["children",n])])))],["children",y.Children.toArray(Array.from(t))])])))],["children",y.Children.toArray(Array.from(e))])])))}function Xh(e,t){let n,r;return u("svg",w(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=le(u("path",w(g([(r="M15.8008 12.5263L9.48383 0.880306C9.32803 0.591371 9.09045 0.354828 8.80083 0.200306C8.40735 -0.0102628 7.94665 -0.0569536 7.51893 0.0703896C7.0912 0.197733 6.73106 0.488809 6.51683 0.880306L0.20083 12.5263C0.0627228 12.7826 -0.00633038 13.0704 0.00045607 13.3614C0.00724252 13.6525 0.0896351 13.9368 0.239538 14.1863C0.38944 14.4359 0.601694 14.6422 0.855444 14.7849C1.10919 14.9276 1.39571 15.0018 1.68683 15.0003H14.3148C14.5939 15.0003 14.8686 14.9316 15.1148 14.8003C15.3099 14.6968 15.4825 14.5556 15.6228 14.3851C15.763 14.2145 15.8681 14.0178 15.932 13.8064C15.9958 13.595 16.0172 13.373 15.9949 13.1533C15.9726 12.9336 15.9069 12.7205 15.8018 12.5263H15.8008ZM8.00083 13.0003C7.80305 13.0003 7.60971 12.9417 7.44526 12.8318C7.28081 12.7219 7.15264 12.5657 7.07695 12.383C7.00126 12.2003 6.98146 11.9992 7.02004 11.8052C7.05863 11.6112 7.15387 11.4331 7.29372 11.2932C7.43358 11.1533 7.61176 11.0581 7.80574 11.0195C7.99972 10.9809 8.20079 11.0007 8.38351 11.0764C8.56624 11.1521 8.72242 11.2803 8.8323 11.4447C8.94218 11.6092 9.00083 11.8025 9.00083 12.0003C9.00083 12.2655 8.89547 12.5199 8.70794 12.7074C8.5204 12.8949 8.26605 13.0003 8.00083 13.0003ZM9.00083 9.50031C9.00083 9.63291 8.94815 9.76009 8.85438 9.85386C8.76062 9.94763 8.63344 10.0003 8.50083 10.0003H7.50083C7.36822 10.0003 7.24104 9.94763 7.14728 9.85386C7.05351 9.76009 7.00083 9.63291 7.00083 9.50031V5.50031C7.00083 5.3677 7.05351 5.24052 7.14728 5.14675C7.24104 5.05298 7.36822 5.00031 7.50083 5.00031H8.50083C8.63344 5.00031 8.76062 5.05298 8.85438 5.14675C8.94815 5.24052 9.00083 5.3677 9.00083 5.50031V9.50031Z",["d",r]),["fill","#F87171"]])))),["children",y.Children.toArray(Array.from(n))])])))}function Jh(e){let t,n;return u("div",w(g([["className","w-full h-[52px] p-4 bg-red-50 rounded-md justify-start items-start gap-3 inline-flex"],(t=[Xh(16,15),u("div",w(g([["className","grow shrink basis-0 h-5 justify-between items-center flex"],(n=[u("div",{className:"grow shrink basis-0 text-red-800 text-sm font-medium leading-tight",children:e})],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function Ea(e,t){let n;return u("svg",w(g([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=g([u("path",{d:"M15 6H1",stroke:"#D1D5DB",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),u("path",{d:"M6 11L1 6L6 1",stroke:"#D1D5DB",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]),["children",y.Children.toArray(Array.from(n))])])))}let di=class extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Value","OnChange","Children"]}};function Qh(e){return u(o6,jn(e,1))}class Rs extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ClassName","Children"]}}function ep(e){return u(zh,jn(e,1))}class tp extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ClassName"]}}function np(e,t){return u(qh,jn(e,1),...t)}class gn extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","Value","Disabled","ClassName","Children"]}}function rp(e){return u(Yh,jn(e,1))}function ip(e,t){let n,r;return u("svg",w(g([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=le(u("path",w(g([["clipRule","evenodd"],["fill-rule","evenodd"],(r="M5.29289 7.29289C5.68342 6.90237 6.31658 6.90237 6.7071 7.29289L9.99999 10.5858L13.2929 7.29289C13.6834 6.90237 14.3166 6.90237 14.7071 7.29289C15.0976 7.68342 15.0976 8.31658 14.7071 8.70711L10.7071 12.7071C10.3166 13.0976 9.68341 13.0976 9.29289 12.7071L5.29289 8.70711C4.90237 8.31658 4.90237 7.68342 5.29289 7.29289Z",["d",r]),["fill","#6B7280"]])))),["children",y.Children.toArray(Array.from(n))])])))}class Xi extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Below","Above"]}}function Ji(e,t,n,r,i,o,s,a,l){let c,f,d,p,h,m,v;const b=i.fields[0],x=Gf(bt(C=>C[1].fields[0],j1(C=>s0(C.fields[0],b),r)));return u("div",w(g([["key",Qe(e)],["className","h-14 pr-3 py-2 rounded-lg justify-start items-center gap-2 inline-flex"],(c=[u("div",w(g([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(f=[u("div",w(Y(T(()=>H(A(["className",`${r==null?"bg-gray-50 border-gray-200 text-gray-500":"bg-emerald-50 border-emerald-200 text-emerald-700"} px-2 py-1 rounded border justify-start items-center gap-1.5 flex overflow-hidden`]),T(()=>{let C;return A((C=Y(T(()=>H(A(u("div",{className:"text-sm font-medium leading-tight",children:fo(e)})),T(()=>A(t?u("div",{className:"text-red-500 text-sm font-medium leading-tight",children:"*"}):Ae()))))),["children",y.Children.toArray(Array.from(C))]))}))))))],["children",y.Children.toArray(Array.from(f))])]))),u("div",w(g([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(d=[Ea(16,12)],["children",y.Children.toArray(Array.from(d))])]))),u("div",w(g([["className","w-[230px] h-[38px] px-3 justify-start items-center gap-2 flex"],(p=[Qh(g([new di(0,[x]),new di(1,[C=>{Hn(S=>{s(S[0])},Ei(Us(S=>S[1].fields[0]===C?J(S[2],new kn(0,[])):!1,b)))}]),new di(2,[[u("div",w(g([["className","relative w-full"],(h=[ep(Y(T(()=>{let C;return H(A(new Rs(0,[`${C=t&&n,C&&r==null?"outline-red-300":"outline-gray-300"} grid w-full grid-cols-1 rounded-md bg-white hover:bg-gray-50 py-1.5 pl-3 pr-2 text-left text-gray-900 text-sm outline outline-1 -outline-offset-1 focus:outline focus:outline-2 focus:outline-blue-600 focus:-outline-offset-2`])),T(()=>{let S;return A(new Rs(1,[[u("span",w(Y(T(()=>{let $;const D=t&&n;return $=r!=null?[x,""]:D?["Select a field","text-red-900"]:["Select a field","text-gray-500"],H(A(["className",`${$[1]} col-start-1 row-start-1 truncate pr-6`]),T(()=>A(["children",$[0]])))})))),u("span",w(g([["className","col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4"],(S=[ip(20,20)],["children",y.Children.toArray(Array.from(S))])])))]]))}))}))),np(Y(T(()=>A(new tp(`z-10 absolute ${o.tag===1?"-mt-[226px]":"mt-0.5"} max-h-48 w-full overflow-auto rounded-md border border-gray-300 shadow-gray-300 shadow-lg bg-white py-1 text-sm`)))),Y(T(()=>Zs(C=>{const S=C[2],$=C[1].fields[0];return A(rp(g([new gn(0,[fn(C[0].fields[0])]),new gn(1,[$]),new gn(2,[J(S,new kn(1,[]))]),new gn(3,["relative select-none"]),new gn(4,[D=>[u("span",{className:"px-4 py-2 block truncate "+(S.tag===0?D.active?"bg-primary-600 text-white":"text-gray-700":"text-gray-700 opacity-50 cursor-not-allowed"),children:$})]])])))},b))))],["children",y.Children.toArray(Array.from(h))])])))]])]))],["children",y.Children.toArray(Array.from(p))])]))),u("div",w(g([(m="pl-1 justify-center items-center gap-2.5 flex text-gray-500 text-xs font-normal underline leading-none",["className",m]),(v=[u("button",w(Y(T(()=>H(A(["children","Clear"]),T(()=>H(a==null?A(["className","opacity-50 cursor-not-allowed"]):A(["className","cursor-pointer py-3 hover:text-gray-700"]),T(()=>{const C=a;if(C==null)return ft();{const S=C;return A(["onClick",$=>{S()}])}})))))))),u("button",w(Y(T(()=>H(A(["children","Preview"]),T(()=>H(l==null?A(["className","opacity-50 cursor-not-allowed"]):A(["className","cursor-pointer py-3 hover:text-gray-700"]),T(()=>{const C=l;if(C==null)return ft();{const S=C;return A(["onClick",$=>{S()}])}}))))))))],["children",y.Children.toArray(Array.from(v))])])))],["children",y.Children.toArray(Array.from(c))])])))}function op(e,t){let n,r;return u("svg",w(g([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=le(u("path",w(g([["clipRule","evenodd"],["fill-rule","evenodd"],(r="M6.3001 1.40002C6.03495 1.40002 5.79257 1.54983 5.674 1.78697L5.16747 2.80002H2.8001C2.4135 2.80002 2.1001 3.11342 2.1001 3.50002C2.1001 3.88662 2.4135 4.20002 2.8001 4.20002L2.8001 11.2C2.8001 11.9732 3.4269 12.6 4.2001 12.6H9.80009C10.5733 12.6 11.2001 11.9732 11.2001 11.2V4.20002C11.5867 4.20002 11.9001 3.88662 11.9001 3.50002C11.9001 3.11342 11.5867 2.80002 11.2001 2.80002H8.83272L8.32619 1.78697C8.20762 1.54983 7.96523 1.40002 7.70009 1.40002H6.3001ZM4.9001 5.60002C4.9001 5.21342 5.2135 4.90002 5.60009 4.90002C5.98669 4.90002 6.30009 5.21342 6.30009 5.60002V9.80002C6.30009 10.1866 5.98669 10.5 5.60009 10.5C5.2135 10.5 4.9001 10.1866 4.9001 9.80002V5.60002ZM8.40009 4.90002C8.01349 4.90002 7.70009 5.21342 7.70009 5.60002V9.80002C7.70009 10.1866 8.01349 10.5 8.40009 10.5C8.78669 10.5 9.10009 10.1866 9.10009 9.80002V5.60002C9.10009 5.21342 8.78669 4.90002 8.40009 4.90002Z",["d",r]),["fill","#9CA3AF"]])))),["children",y.Children.toArray(Array.from(n))])])))}function Vu(e,t){let n,r;return u("svg",w(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=le(u("path",w(g([(r="M9.99992 0.833328C4.94575 0.833328 0.833252 4.94583 0.833252 10C0.833252 15.0542 4.94575 19.1667 9.99992 19.1667C15.0541 19.1667 19.1666 15.0542 19.1666 10C19.1666 4.94583 15.0541 0.833328 9.99992 0.833328ZM8.37409 14.5525L4.65492 10.8333L5.83325 9.655L8.29242 12.1142L14.0883 5.49083L15.3424 6.58833L8.37409 14.5525Z",["d",r]),["fill","#10B981"]])))),["children",y.Children.toArray(Array.from(n))])])))}function sp(e){let t,n,r;return u("div",w(g([["className","w-full h-[52px] p-4 bg-emerald-50 rounded-md justify-start items-center gap-3 inline-flex"],(t=[u("span",w(g([["className","text-emerald-700"],(n=[Vu(20,20)],["children",y.Children.toArray(Array.from(n))])]))),u("div",w(g([["className","grow shrink basis-0 h-5 justify-start items-center gap-3 flex"],(r=[u("div",{className:"grow shrink basis-0 text-emerald-800 text-sm font-medium leading-tight",children:e})],["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(t))])])))}function Hu(e,t){let n,r;return u("svg",w(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=le(u("path",w(g([(r="M8.83429 0.234315C9.14671 -0.0781049 9.65324 -0.0781049 9.96566 0.234315L13.1657 3.43431C13.4781 3.74673 13.4781 4.25327 13.1657 4.56569L9.96566 7.76569C9.65324 8.0781 9.14671 8.0781 8.83429 7.76569C8.52187 7.45327 8.52187 6.94673 8.83429 6.63432L10.6686 4.8H1.39998C0.958148 4.8 0.599976 4.44183 0.599976 4C0.599976 3.55817 0.958148 3.2 1.39998 3.2H10.6686L8.83429 1.36569C8.52187 1.05327 8.52187 0.546734 8.83429 0.234315Z",["d",r]),["fill","white"]])))),["children",y.Children.toArray(Array.from(n))])])))}function l6(e){return e.startsWith("614")&&e.length===11?`+${e}`:e}function u6(e){return e.startsWith("4")&&e.length===9?`+614${e.slice(1,e.length)}`:e.startsWith("04")&&e.length===10?`+614${e.slice(2,e.length)}`:e}function ap(e){return u6(l6(Wf(e," ","")))}function c6(e,t,n){let r,i,o,s,a,l,c,f;return u("div",w(g([["className","w-80 py-6 justify-start items-center gap-2.5 flex"],(r=[u("div",w(g([(i="grow shrink basis-0 p-4 bg-white rounded-lg shadow-lg border border-gray-100 flex-col justify-start items-start gap-3 inline-flex overflow-hidden",["className",i]),(o=[u("div",w(g([["className","flex justify-between w-full"],(s=[u("span",{className:"text-black text-base font-semibold leading-normal",children:`Previewing “${fo(e)}”`}),u("button",w(g([["onClick",d=>{n()}],["type","button"],["className","text-gray-600"],(a=[Br(24,24)],["children",y.Children.toArray(Array.from(a))])])))],["children",y.Children.toArray(Array.from(s))])]))),u("div",w(g([["className","self-stretch bg-white flex-col justify-start items-start flex overflow-hidden"],(l=[u("div",w(g([["className","self-stretch flex-col justify-center items-start flex"],(c=o0((d,p)=>u("div",w(Y(T(()=>H(A(["className",`${d%2===0?"bg-white":"bg-gray-50"} self-stretch h-10 px-3 py-3.5 border-b border-gray-200 justify-start items-center gap-1 inline-flex overflow-hidden`]),T(()=>{let h;return A((h=Y(T(()=>{const m=Si(p);return A(m?u("i",{className:"grow shrink text-gray-500 text-sm font-normal leading-tight",children:"(empty)"}):u("div",w(Y(T(()=>H(A(["className","grow shrink text-gray-700 text-sm font-medium leading-tight"]),T(()=>e.tag===3?A(["children",ap(p)]):A(["children",p]))))))))})),["children",y.Children.toArray(Array.from(h))]))})))))),t),["children",y.Children.toArray(Array.from(c))])])))],["children",y.Children.toArray(Array.from(l))])]))),u("div",w(g([["className","self-stretch pt-2 justify-center items-center gap-2.5 inline-flex"],(f=[u("div",{className:"grow shrink basis-0 text-gray-500 text-sm font-normal leading-tight",children:"Showing first 10 rows only"})],["children",y.Children.toArray(Array.from(f))])])))],["children",y.Children.toArray(Array.from(o))])])))],["children",y.Children.toArray(Array.from(r))])])))}function d6(e){let t,n,r;const i=e.back,o=e.next,s=e.dataRows,a=e.headerRow,l=e.existingMappings;let c;const f=J_(a,l);c=jr(()=>Hr(()=>f,(S,$)=>Q_(a,s,S,$),(S,$)=>{}),void 0,void 0);const d=c[0],p=c[1],h=y.useState(!1),m=h[1],v=y.useState(!1),b=v[0],x=S=>{if(K_(d)(S))return()=>{p(new Gn(1,[S]))}},C=S=>{if(X_(d,S))return()=>{p(new Gn(2,[S]))}};return u("div",w(g([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12 h-full"],(t=[s6(h[0],()=>{m(!1)}),Ca("Map fields"),Sa("Match the fields from your CSV to the corresponding destination fields."),u("div",w(g([["className","flex flex-row pt-3 gap-2"],(n=[go("What is mapping and why is it important?",()=>{m(!0)})],["children",y.Children.toArray(Array.from(n))])]))),u("div",w(g([["className","justify-start items-start gap-12 inline-flex"],(r=Y(T(()=>{let S;return H(A(u("div",w(g([["className","w-[640px] pt-6 flex-col justify-start items-start gap-4 inline-flex"],(S=Y(T(()=>H(l==null?A(Kh()):A(Ae()),T(()=>H(b&&d.Status.tag===0?A(Jh("Some required fields are incomplete. Fill in all required fields to continue.")):A(Ae()),T(()=>{let $,D,F,L,E,_,k,N;return A(u("div",w(g([["className","flex-col justify-start items-start inline-flex overflow-hidden"],($=[u("div",w(g([(D="w-[640px] h-16 pt-6 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 inline-flex",["className",D]),(F=[u("div",w(g([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(L=[u("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Destination fields"}),u("div",w(Y(T(()=>H(A(["className",`${d.NumberOfDestinationFieldsMapped===5?"bg-emerald-100 text-emerald-800":"bg-blue-100 text-blue-800"} px-2.5 py-0.5 rounded-[10px] justify-center items-center flex`]),T(()=>{let I;return A((I=[u("div",{className:"text-center text-xs font-medium leading-none",children:`${d.NumberOfDestinationFieldsMapped} of 5 mapped`})],["children",y.Children.toArray(Array.from(I))]))}))))))],["children",y.Children.toArray(Array.from(L))])]))),u("div",{className:"w-5 h-5 px-3 py-3.5"}),u("div",w(g([["className","w-[260px] h-10 px-3 py-3.5 justify-start items-center gap-1 flex overflow-hidden"],(E=[u("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Incoming CSV fields"}),u("div",w(g([["className","px-2.5 py-0.5 bg-gray-100 rounded-[10px] justify-center items-center flex"],(_=[u("div",{className:"text-center text-gray-800 text-xs font-medium leading-none",children:`${d.NumberOfDestinationFieldsMapped} of ${d.NumberOfIncomingFields} used`})],["children",y.Children.toArray(Array.from(_))])])))],["children",y.Children.toArray(Array.from(E))])])))],["children",y.Children.toArray(Array.from(F))])]))),u("div",w(g([["className","w-[640px] pt-2 pb-24 flex-col justify-start items-start gap-2 flex overflow-hidden"],(k=[u("div",w(le((N=Y(T(()=>H(A(Ji(new se(0,[]),!0,b,d.FirstName.ColumnIndex,d.FirstName.IncomingFields,new Xi(0,[]),I=>{let O;p((O=[new se(0,[]),I],new Gn(0,[O[0],O[1]])))},x(new se(0,[])),C(new se(0,[])))),T(()=>H(A(Ji(new se(1,[]),!0,b,d.LastName.ColumnIndex,d.LastName.IncomingFields,new Xi(0,[]),I=>{let O;p((O=[new se(1,[]),I],new Gn(0,[O[0],O[1]])))},x(new se(1,[])),C(new se(1,[])))),T(()=>H(A(Ji(new se(2,[]),!0,b,d.Email.ColumnIndex,d.Email.IncomingFields,new Xi(0,[]),I=>{let O;p((O=[new se(2,[]),I],new Gn(0,[O[0],O[1]])))},x(new se(2,[])),C(new se(2,[])))),T(()=>H(A(Ji(new se(3,[]),!1,b,d.MobilePhone.ColumnIndex,d.MobilePhone.IncomingFields,new Xi(0,[]),I=>{let O;p((O=[new se(3,[]),I],new Gn(0,[O[0],O[1]])))},x(new se(3,[])),C(new se(3,[])))),T(()=>H(A(Ji(new se(4,[]),!1,b,d.EmploymentBasis.ColumnIndex,d.EmploymentBasis.IncomingFields,new Xi(1,[]),I=>{let O;p((O=[new se(4,[]),I],new Gn(0,[O[0],O[1]])))},x(new se(4,[])),C(new se(4,[])))),T(()=>{let I,O,B,pe,Z,U;return H(d.NumberOfIncomingFieldsDiscarded===0?A(Ae()):A(u("div",w(g([["className","h-16 pr-3 pt-2 pb-4 rounded-lg justify-start items-start gap-2 inline-flex"],(I=[u("div",w(g([["className","h-10 bg-gray-100 rounded-lg justify-start items-center gap-2 flex"],(O=[u("div",w(g([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(B=[op(14,14),u("div",{className:"text-gray-500 text-sm font-medium leading-tight",children:"Discarded"})],["children",y.Children.toArray(Array.from(B))])]))),u("div",w(g([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(pe=[Ea(16,12)],["children",y.Children.toArray(Array.from(pe))])]))),u("div",w(g([["className","flex-col justify-start items-start gap-2 inline-flex"],(Z=[u("div",w(g([["className","w-[218px] pl-3 items-center inline-flex"],(U=[u("div",w(Y(T(()=>H(A(["className","text-gray-500 text-sm font-medium"]),T(()=>{const P=d.NumberOfIncomingFieldsDiscarded|0;return A(P===1?["children","Remaining 1 unused field"]:["children",`Remaining ${P} unused fields`])}))))))],["children",y.Children.toArray(Array.from(U))])])))],["children",y.Children.toArray(Array.from(Z))])])))],["children",y.Children.toArray(Array.from(O))])])))],["children",y.Children.toArray(Array.from(I))])])))),T(()=>{let P;return A(u("div",w(g([["className","w-[640px] pt-4 border-t border-gray-200 flex-col justify-start items-start flex"],(P=Y(T(()=>H(d.NumberOfDestinationFieldsMapped===5?A(sp("All destination fields have been mapped. You’re good to go.")):A(Ae()),T(()=>{let G,j,de,z,R,ge,me,we,Ee;return A(u("div",w(g([["className","h-[58px] pt-2 justify-start items-end gap-2 inline-flex w-full"],(G=[u("div",w(g([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(j=[u("div",w(g([["className","grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"],(de=[u("div",w(g([["className","grow shrink basis-0 text-right"],(z=[u("span",{className:"text-gray-500 text-xs font-normal leading-none",children:"Destination fields marked with "}),u("span",{className:"text-red-600 text-xs font-normal leading-none",children:"*"}),u("span",{className:"text-gray-500 text-xs font-normal leading-none",children:" are required"})],["children",y.Children.toArray(Array.from(z))])])))],["children",y.Children.toArray(Array.from(de))])]))),u("div",w(g([["className","justify-start items-center gap-2 flex"],(R=[u("button",w(g([(ge="px-[13px] py-[9px] bg-white hover:bg-gray-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",ge]),["onClick",ne=>{i(d.Status)}],(me=[u("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",y.Children.toArray(Array.from(me))])]))),u("button",w(g([(we="pl-[13px] pr-[11px] py-[9px] bg-primary-600 hover:enabled:bg-primary-700 disabled:opacity-50 rounded-md shadow-sm justify-center items-center gap-2 flex overflow-hidden",["className",we]),["disabled",b&&d.Status.tag===0],["onClick",ne=>{const xe=d.Status;xe.tag===0?v[1](!0):o([xe.fields[0],xe.fields[1]])}],(Ee=[u("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:d.EmploymentBasis.ColumnIndex==null?"Next":"Map values"}),Hu(13,8)],["children",y.Children.toArray(Array.from(Ee))])])))],["children",y.Children.toArray(Array.from(R))])])))],["children",y.Children.toArray(Array.from(j))])])))],["children",y.Children.toArray(Array.from(G))])]))))})))),["children",y.Children.toArray(Array.from(P))])]))))}))})))))))))))),["children",y.Children.toArray(Array.from(N))]))))],["children",y.Children.toArray(Array.from(k))])])))],["children",y.Children.toArray(Array.from($))])]))))})))))),["children",y.Children.toArray(Array.from(S))])])))),T(()=>{const $=d.Preview;return $==null?A(Ae()):A(c6($[0],$[1],()=>{p(new Gn(3,[]))}))}))})),["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(t))])])))}class Yo extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UploadingCsv","MappingColumns","MappingEmploymentBasis","Reviewing"]}}class Ka extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Reviewing","MappingEmploymentBasis","MappingColumns"]}}let pr=class extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Next","Back"]}},Zo=class extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Add","Clear","Remove","Set"]}},f6=class extends _e{constructor(t,n,r,i,o,s,a){super(),this.IncomingValues=t,this.Selections=n,this.NumberOfIncomingValuesUsed=r|0,this.NumberOfDestinationValuesMapped=i|0,this.DiscardedValues=o,this.ValidatedMappings=s,this.Prefilled=a}};class wo extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Available","Unavailable"]}}const Zn=[void 0];function lp(e,t,n){let r;const i=t.fields[0],o=qt(s=>s,vs(Bc(n)));return new f6(Ke(s=>[s,Ai(s,o,{Equals:J,GetHashCode:ms})?new wo(1,[]):new wo(0,[])],i),n,o.length,Dg(Ys(s=>{let a;return a=qt(l=>l,s),a.length!==0},Bc(n))),km(o,i,{Equals:J,GetHashCode:ms}),(r=g(qt(s=>s,vs(Pe(s=>Ke(a=>{if(a!=null)return[s[0],a]},s[1]),n)))),$e(r)?void 0:new H_(ae(r),cr(Me(r)))),e)}function m6(e,t){const n=t.tag===1?["parttime"]:t.tag===2?["casual"]:t.tag===3?["labourhire"]:["fulltime"];return e.fields[0].filter(r=>Ai(Xl(r.fields[0],"[^a-zA-Z]","").toLocaleLowerCase(),n,{Equals:(i,o)=>i===o,GetHashCode:ur}))}function h6(e,t){let n;if(t==null){let r=!1;const i=o=>{const s=m6(e,o);return!$r(J,s,Ae())&&s.length===0?Zn:(r=!0,Ke(a=>a,s))};n=[ai([[new dt(0,[]),i(new dt(0,[]))],[new dt(1,[]),i(new dt(1,[]))],[new dt(2,[]),i(new dt(2,[]))],[new dt(3,[]),i(new dt(3,[]))]],{Compare:St}),r]}else{const r=t,i=ai(Ke(o=>[o[0],Ke(s=>s[1],tg(o[1],{Compare:Yl}))],D_(o=>o[0],vs([r.Tail,[r.Head]]),{Equals:J,GetHashCode:ms})),{Compare:St});n=[ai([[new dt(0,[]),Ze(Cr(i,new dt(0,[])),Zn)],[new dt(1,[]),Ze(Cr(i,new dt(1,[])),Zn)],[new dt(2,[]),Ze(Cr(i,new dt(2,[])),Zn)],[new dt(3,[]),Ze(Cr(i,new dt(3,[])),Zn)]],{Compare:St}),!1]}return[lp(n[1],e,n[0]),X()]}function up(e,t){const n=Mr(e.Selections,t);let r;switch(!$r(J,n,Ae())&&n.length===1&&he(0,n)!=null?r=0:r=1,r){case 0:return!0;default:return!1}}function cp(e,t){let n;return e.DiscardedValues.length>0?(n=Mr(e.Selections,t),!n.some(r=>r==null)):!1}function p6(e,t,n){const r=Mr(e.Selections,t);return!$r(J,r,Ae())&&r.length===1?!1:Ai(n,r,{Equals:J,GetHashCode:en})}function g6(e,t,n,r){return!J(n,r)&&e.IncomingValues.some(i=>J(i[0],r)?J(i[1],new wo(0,[])):!1)?Ai(n,Mr(e.Selections,t),{Equals:J,GetHashCode:en}):!1}function w6(e,t,n){let r,i;const o=m=>lp(n.Prefilled,e,m);let s,a,l,c,f,d,p,h;switch(t.tag){case 1:{up(n,t.fields[0])?(s=1,l=t.fields[0]):s=4;break}case 2:{p6(n,t.fields[0],t.fields[1])?(s=2,c=t.fields[0],f=t.fields[1]):s=4;break}case 3:{g6(n,t.fields[0],t.fields[1],t.fields[2])?(s=3,d=t.fields[0],p=t.fields[1],h=t.fields[2]):s=4;break}default:cp(n,t.fields[0])?(s=0,a=t.fields[0]):s=4}switch(s){case 0:return[o(Wo(a,m=>bt(v=>i0(v,Zn),m),n.Selections)),X()];case 1:return[o(Wo(l,m=>bt(v=>Zn,m),n.Selections)),X()];case 2:return[o(Wo(c,(r=(i=[f],m=>km(i,m,{Equals:J,GetHashCode:en})),m=>bt(r,m)),n.Selections)),X()];case 3:return[o(Wo(d,m=>bt(v=>Ke(b=>J(b,p)?h:b,v),m),n.Selections)),X()];default:return[n,X()]}}function y6(e,t){let n,r;return u("svg",w(g([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=le(u("path",w(g([["clipRule","evenodd"],["fill-rule","evenodd"],(r="M6.9999 12.6C10.0927 12.6 12.5999 10.0928 12.5999 7.00002C12.5999 3.90723 10.0927 1.40002 6.9999 1.40002C3.90711 1.40002 1.3999 3.90723 1.3999 7.00002C1.3999 10.0928 3.90711 12.6 6.9999 12.6ZM7.6999 4.90002C7.6999 4.51342 7.3865 4.20002 6.9999 4.20002C6.6133 4.20002 6.2999 4.51342 6.2999 4.90002V6.30002H4.8999C4.5133 6.30002 4.1999 6.61342 4.1999 7.00002C4.1999 7.38662 4.5133 7.70002 4.8999 7.70002H6.2999V9.10002C6.2999 9.48662 6.6133 9.80002 6.9999 9.80002C7.3865 9.80002 7.6999 9.48662 7.6999 9.10002V7.70002H9.0999C9.4865 7.70002 9.7999 7.38662 9.7999 7.00002C9.7999 6.61342 9.4865 6.30002 9.0999 6.30002H7.6999V4.90002Z",["d",r]),["fill","currentColor"]])))),["children",y.Children.toArray(Array.from(n))])])))}function v6(e,t,n,r,i,o,s){let a,l,c,f,d,p;return u("div",w(g([["key",Qe(e)],["className","justify-start items-start gap-2 inline-flex"],(a=[u("div",w(g([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(l=[u("div",w(g([["className",Et(" ",Y(T(()=>H($r(J,t,Zn)?A("bg-gray-50 border-gray-200 text-gray-500"):A("bg-emerald-50 border-emerald-200 text-emerald-700"),T(()=>A("px-2 py-1 rounded border justify-start items-center gap-1.5 flex overflow-hidden"))))))],(c=[u("div",{className:"text-sm font-medium leading-tight",children:Nm(e)})],["children",y.Children.toArray(Array.from(c))])])))],["children",y.Children.toArray(Array.from(l))])]))),u("div",w(g([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(f=[Ea(16,12)],["children",y.Children.toArray(Array.from(f))])]))),u("div",w(g([["className","px-3 justify-start items-center gap-2 flex flex-col"],(d=[u("div",w(le((p=Y(T(()=>Pe(h=>{let m,v,b;return u("div",w(g([["className","mt-1 justify-start items-start gap-2 flex flex-inline"],(m=[u("div",w(g([["className","justify-start items-end flex flex-col w-[206px]"],(v=Y(T(()=>H(A(Qh(Y(T(()=>{const x=Gf(bt(C=>C.fields[0],h));return H(A(new di(0,[x])),T(()=>H(A(new di(1,[C=>{Hn(S=>{s([h,S[0]])},Ei(Us(S=>S[0].fields[0]===C?J(S[1],new wo(0,[])):!1,n)))}])),T(()=>{let C,S;return A(new di(2,[[u("div",w(g([["className","relative w-full"],(C=[ep(g([new Rs(0,["outline-gray-300 grid w-full grid-cols-1 rounded-md bg-white hover:bg-gray-50 py-1.5 pl-3 pr-2 text-left text-gray-900 text-sm outline outline-1 -outline-offset-1 focus:outline focus:outline-2 focus:outline-blue-600 focus:-outline-offset-2"]),new Rs(1,[[u("span",w(Y(T(()=>{const $=h!=null?[x,""]:["Select a value","text-gray-500"];return H(A(["className",`${$[1]} col-start-1 row-start-1 truncate pr-6`]),T(()=>A(["children",$[0]])))})))),u("span",w(g([["className","col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4"],(S=[ip(20,20)],["children",y.Children.toArray(Array.from(S))])])))]])])),np(le(new tp("z-10 absolute mt-0.5 max-h-48 w-full overflow-auto rounded-md border border-gray-300 shadow-gray-300 shadow-lg bg-white py-1 text-sm")),Y(T(()=>Zs($=>{const D=$[1],F=$[0].fields[0];return A(rp(g([new gn(0,[F]),new gn(1,[F]),new gn(2,[J(D,new wo(1,[]))&&F!==x]),new gn(3,["relative select-none"]),new gn(4,[L=>[u("span",{className:Et(" ",Y(T(()=>H(A("px-4 py-2 block truncate"),T(()=>{const E=L.active;let _;switch(L.selected?E?_=2:_=1:D.tag===1?_=0:E?_=2:_=1,_){case 0:return A("text-gray-700 opacity-50 cursor-not-allowed");case 1:return A("text-gray-700");default:return A("bg-primary-600 text-white")}}))))),children:F})]])])))},n))))],["children",y.Children.toArray(Array.from(C))])])))]]))}))))})))),T(()=>J(h,X1(t))?A(u("button",w(Y(T(()=>{let x;return H(A((x=[y6(14,14),u("span",{children:["Map additional value"]})],["children",y.Children.toArray(Array.from(x))])),T(()=>H(A(["className",Et(" ",Y(T(()=>H(A("py-2 justify-end items-center inline-flex text-gray-500 text-xs font-normal gap-1"),T(()=>i==null?A("opacity-50 cursor-not-allowed underline"):A("cursor-pointer underline hover:text-gray-700"))))))]),T(()=>{const C=i;if(C==null)return ft();{const S=C;return A(["onClick",$=>{S()}])}}))))}))))):ft())))),["children",y.Children.toArray(Array.from(v))])]))),u("div",w(g([["className","text-gray-500 text-xs font-normal pl-1"],(b=Y(T(()=>{if(o!=null){const x=o;return A(u("button",{children:"Remove",className:"cursor-pointer underline py-2 hover:text-gray-700",onClick:C=>{x(h)}}))}else return A(u("button",w(Y(T(()=>H(A(["children","Clear"]),T(()=>H(r==null?A(["className","opacity-50 underline cursor-not-allowed mt-2"]):A(["className","cursor-pointer underline py-2 hover:text-gray-700"]),T(()=>{const x=r;if(x==null)return ft();{const C=x;return A(["onClick",S=>{C()}])}})))))))))})),["children",y.Children.toArray(Array.from(b))])])))],["children",y.Children.toArray(Array.from(m))])])))},t))),["children",y.Children.toArray(Array.from(p))]))))],["children",y.Children.toArray(Array.from(d))])])))],["children",y.Children.toArray(Array.from(a))])])))}function b6(e){let t,n,r;const i=e.back,o=e.next,s=e.employmentBasisColumn,a=e.existingMappings;let l;const c=h6(s,a);l=jr(()=>Hr(()=>c,(m,v)=>w6(s,m,v),(m,v)=>{}),void 0,void 0);const f=l[0],d=l[1],p=y.useState(!1),h=p[0];return u("div",w(g([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12 h-full"],(t=[Ca("Map values - Employment basis"),Sa("Match the values from your CSV to the corresponding destination values."),u("div",w(g([["className","justify-start items-start gap-12 inline-flex"],(n=[u("div",w(g([["className","w-[640px] pt-6 flex-col justify-start items-start gap-4 inline-flex"],(r=Y(T(()=>H(f.Prefilled?A(Kh()):A(Ae()),T(()=>H(h&&f.ValidatedMappings==null?A(Jh("Map at least one value to continue.")):A(Ae()),T(()=>{let m,v,b,x,C,S,$,D,F;return A(u("div",w(g([["className","flex-col justify-start items-start inline-flex overflow-hidden"],(m=[u("div",w(g([(v="w-[640px] h-16 pt-6 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 inline-flex",["className",v]),(b=[u("div",w(g([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(x=[u("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Destination values"}),u("div",w(g([["className",Et(" ",Y(T(()=>H(f.NumberOfDestinationValuesMapped===4?A("bg-emerald-100 text-emerald-800"):A("bg-blue-100 text-blue-800"),T(()=>A("px-2.5 py-0.5 rounded-[10px] justify-center items-center flex"))))))],(C=[u("div",{className:"text-center text-xs font-medium leading-none",children:`${f.NumberOfDestinationValuesMapped} of 4 mapped`})],["children",y.Children.toArray(Array.from(C))])])))],["children",y.Children.toArray(Array.from(x))])]))),u("div",{className:"w-5 h-5 px-3 py-3.5"}),u("div",w(g([["className","w-[260px] h-10 px-3 py-3.5 justify-start items-center gap-1 flex overflow-hidden"],(S=[u("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Incoming CSV values"}),u("div",w(g([["className","px-2.5 py-0.5 bg-gray-100 rounded-[10px] justify-center items-center flex"],($=[u("div",{className:"text-center text-gray-800 text-xs font-medium leading-none",children:`${f.NumberOfIncomingValuesUsed} of ${f.IncomingValues.length} used`})],["children",y.Children.toArray(Array.from($))])])))],["children",y.Children.toArray(Array.from(S))])])))],["children",y.Children.toArray(Array.from(b))])]))),u("div",w(g([["className","w-[640px] pt-2 pb-24 flex-col justify-start items-start gap-2 flex overflow-hidden"],(D=[u("div",w(le((F=Y(T(()=>H(Zs(L=>{let E,_,k;const N=L[0];return A(v6(N,L[1],f.IncomingValues,(E=N,up(f,E)?()=>{d(new Zo(1,[E]))}:void 0),(_=N,cp(f,_)?()=>{d(new Zo(0,[_]))}:void 0),(k=N,Mr(f.Selections,k).length>1?I=>{let O;d((O=[k,I],new Zo(2,[O[0],O[1]])))}:void 0),I=>{let O;d((O=[N,I[0],I[1]],new Zo(3,[O[0],O[1],O[2]])))}))},Ly(f.Selections)),T(()=>{let L,E,_,k,N,I;return H(f.DiscardedValues.length===0?A(Ae()):A(u("div",w(g([["className","pr-3 pt-2 pb-4 rounded-lg justify-start items-start gap-2 inline-flex"],(L=[u("div",w(g([["className","py-3 bg-gray-100 rounded-lg justify-start items-center gap-2 flex"],(E=[u("div",w(g([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(_=[op(14,14),u("div",{className:"text-gray-500 text-sm font-medium leading-tight",children:"Discarded"})],["children",y.Children.toArray(Array.from(_))])]))),u("div",w(g([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(k=[Ea(16,12)],["children",y.Children.toArray(Array.from(k))])]))),u("div",w(g([["className","flex-col justify-start items-start gap-2 inline-flex"],(N=[u("div",w(g([["className","w-[218px] pl-3 flex flex-col text-gray-500 text-sm"],(I=Y(T(()=>H(A(u("div",w(Y(T(()=>H(A(["className","font-medium"]),T(()=>{const O=f.DiscardedValues.length|0;return A(O===1?["children","Remaining 1 unused field:"]:["children",`Remaining ${O} unused fields:`])}))))))),T(()=>{let O;return A(u("ul",w(g([["className","pl-2 font-normal overflow-hidden list-inside list-disc"],(O=Ke(B=>u("li",{children:[B]}),vs(Pn(T(()=>H(A(Ke(B=>B.fields[0],f.DiscardedValues.slice(void 0,8))),T(()=>f.DiscardedValues.length>8?A(["... and 0 other values"]):ft())))))),["children",y.Children.toArray(Array.from(O))])]))))})))),["children",y.Children.toArray(Array.from(I))])])))],["children",y.Children.toArray(Array.from(N))])])))],["children",y.Children.toArray(Array.from(E))])])))],["children",y.Children.toArray(Array.from(L))])])))),T(()=>{let O;return A(u("div",w(g([["className","w-[640px] pt-4 border-t border-gray-200 flex-col justify-start items-start flex"],(O=Y(T(()=>H(f.DiscardedValues.length===0?A(sp("All incoming values have been mapped.")):A(Ae()),T(()=>{let B,pe,Z,U,P,G,j;return A(u("div",w(g([["className","h-[58px] pt-2 justify-start items-end gap-2 inline-flex w-full"],(B=[u("div",w(g([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(pe=[u("div",{className:"grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"}),u("div",w(g([["className","justify-start items-center gap-2 flex"],(Z=[u("button",w(g([(U="px-[13px] py-[9px] bg-white hover:bg-gray-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",U]),["onClick",de=>{i(f.ValidatedMappings)}],(P=[u("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",y.Children.toArray(Array.from(P))])]))),u("button",w(g([(G="pl-[13px] pr-[11px] py-[9px] bg-primary-600 hover:enabled:bg-primary-700 disabled:opacity-50 rounded-md shadow-sm justify-center items-center gap-2 flex overflow-hidden",["className",G]),["disabled",h&&f.ValidatedMappings==null],["onClick",de=>{const z=f.ValidatedMappings;z==null?p[1](!0):o(z)}],(j=[u("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:"Review"}),Hu(13,8)],["children",y.Children.toArray(Array.from(j))])])))],["children",y.Children.toArray(Array.from(Z))])])))],["children",y.Children.toArray(Array.from(pe))])])))],["children",y.Children.toArray(Array.from(B))])]))))})))),["children",y.Children.toArray(Array.from(O))])]))))}))})))),["children",y.Children.toArray(Array.from(F))]))))],["children",y.Children.toArray(Array.from(D))])])))],["children",y.Children.toArray(Array.from(m))])]))))})))))),["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}class _6 extends _e{constructor(t,n,r,i,o,s,a,l,c){super(),this.RowNumber=t|0,this.FirstName=n,this.LastName=r,this.Email=i,this.MobilePhone=o,this.EmploymentBasis=s,this.HasDuplicateEmailError=a,this.HasErrorOtherThanDuplicateEmail=l,this.Errors=c}}class Xd extends _e{constructor(t,n){super(),this.Summary=t,this.Details=n}}function Ko(e){if(!Si(e))return e}function dp(e,t,n){const r=n!=null?[n[0].fields[0].fields[0],j_(n[1])]:void 0;return g(Ke(i=>{let o,s,a,l,c,f,d,p,h,m,v,b,x,C,S,$,D;const F=i.fields[0];return ai(qt(L=>L,[(o=Ko(he(t.FirstName.fields[0],F)),o==null?void 0:(s=o,[br(new se(0,[])),s])),(a=Ko(he(t.LastName.fields[0],F)),a==null?void 0:(l=a,[br(new se(1,[])),l])),(c=Ko(he(t.Email.fields[0],F)),c==null?void 0:(f=c,[br(new se(2,[])),f])),(d=(p=t.MobilePhone,p==null?void 0:(h=Ko(he(p.fields[0],F)),h==null?void 0:ap(h))),d==null?void 0:(m=d,[br(new se(3,[])),m])),(v=(b=r,b==null?void 0:(x=b,C=(S=he(x[0],F),$=Ae(),[Fy(x[1],S,new xt(()=>$,L=>{$=L})),$]),C[0]?C[1]:void 0)),v==null?void 0:(D=v,[br(new se(4,[])),D]))]),{Compare:Vr})},e.fields[0]))}function x6(e,t,n){const r=br(n);return[Cr(e.Data,r),!ou(i=>i.PropName===r,t)]}function C6(e,t){const n=Mm(t.PropName);if(n==null)return["Invalid or missing field",!1];{const r=n,i=fo(r).toLocaleLowerCase();if(Cr(e.Data,br(r))!=null){let s;switch(r.tag===2&&t.Message.startsWith("Duplicate")?s=0:s=1,s){case 0:return[`Duplicate ${i}`,!1];default:return[`Invalid ${i}`,!0]}}else return[`Missing ${i}`,!1]}}function Jd(e){const t=Mm(e.PropName);if(t==null)return e.Message;{const n=t;let r;switch(n.tag===2&&e.Message.startsWith("Duplicate")?r=0:r=1,r){case 0:return`${fo(n)} exists in multiple rows`;default:return Wf(e.Message,e.Column,fo(n))}}}function S6(e,t,n,r){return Q.Delay(()=>Q.TryWith(Q.Delay(()=>{let i,o,s;return Q.ReturnFrom((i=new im(r!=null,iu((a,l)=>new vu(a+2,l),(o=[t,n,r],dp(o[0],o[1],o[2])))),s=e(i),Q.Bind(s,a=>{let l;const c=a;return l=c.tag===1?new M(1,[c.fields[0]]):new M(0,[nr(f=>{let d,p,h,m,v;const b=Ze((d=u0(C=>C.RowId===f.RowId,c.fields[0].Errors),d==null?void 0:d.FieldErrors),ot()),x=C=>x6(f,b,C);return new _6(f.RowId-2+1,x(new se(0,[])),x(new se(1,[])),x(new se(2,[])),x(new se(3,[])),(p=x(new se(4,[])),[(h=(m=p[0],m==null?void 0:V_(m)),h==null?void 0:Nm(h)),p[1]]),ou(C=>C.Message.startsWith("Duplicate Email"),b),!$e($n(C=>!C.Message.startsWith("Duplicate Email"),b)),$e(b)?void 0:$e(Me(b))?(v=C6(f,ae(b)),new Xd(v[0],v[1]?le(Jd(ae(b))):void 0)):new Xd("Multiple invalid or missing fields",nr(Jd,b)))},i.Data)]),Q.Return(l)})))}),i=>Q.Return(new M(1,[Qe(i)]))))}function E6(e,t,n,r,i){return Q.Delay(()=>Q.TryWith(Q.Delay(()=>{let o;return Q.Bind(e(new om(r!=null,J(i,new Nt(0,[])),iu((s,a)=>new vu(s+2,a),(o=[t,n,r],dp(o[0],o[1],o[2]))))),s=>{let a;return Q.Return((a=s,a.tag===1?new M(1,[a.fields[0]]):new M(0,[a.fields[0].ImportId])))})}),o=>Q.Return(new M(1,[Qe(o)]))))}let no=class extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Validated","SetInviteTiming","ShowOnlyRowsWithErrors","PreviewNextPage","PreviewPreviousPage"]}},Qr=class extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Validating","Reviewing"]}};class Qi extends _e{constructor(t,n,r,i,o,s,a,l,c,f,d,p,h){super(),this.Data=t,this.InviteTiming=n,this.DuplicateEmailCount=r|0,this.NumberOfRowsWithErrorsOtherThanDuplicateEmail=i|0,this.NumberOfInvalidRows=o|0,this.NumberOfRows=s|0,this.NumberOfValidRows=a|0,this.ShowingOnlyRowsWithErrors=l,this.HasErrors=c,this.RowFrom=f|0,this.RowTo=d|0,this.Page=p,this.PageNo=h|0}}function A6(e){return[new Qr(0,[]),$0(t=>{M0(t)},e,void 0,t=>new no(0,[t]))]}function Xo(e,t,n){const r=(e-1)*20|0,i=gg(r,e*20-1,n?$n(o=>o.Errors!=null,t):t);if($e(i))return[0,0,ot()];{const o=i;return[r+1,r+un(o),o]}}function fp(e){return e.PageNo>1}function mp(e){return e.ShowingOnlyRowsWithErrors?e.RowTo<e.NumberOfInvalidRows:e.RowTo<e.NumberOfRows}function k6(e,t){const n=$n(r=>r.Errors!=null,e.Data);return So(le(`Error detail,First name,Last name,Email,Mobile phone${t?",Employment basis":""},Original row #
50
- `),iu((r,i)=>{const o=Ze(bt(d=>d.Summary,i.Errors),""),s=Ze(i.FirstName[0],""),a=Ze(i.LastName[0],""),l=Ze(i.Email[0],""),c=Ze(i.MobilePhone[0],""),f=r===un(n)-1?"":`
51
- `;return t?`${o},${s},${a},${l},${c},${Ze(i.EmploymentBasis[0],"")},${i.RowNumber}${f}`:`${o},${s},${a},${l},${c},${i.RowNumber}${f}`},n))}function N6(e,t,n){let r,i,o,s,a,l,c,f,d,p,h;switch(t.tag){case 1:{n.tag===1?(i=2,a=t.fields[0],l=n.fields[0]):(i=6,h=n);break}case 2:{n.tag===1?(r=n.fields[0],r.HasErrors&&r.ShowingOnlyRowsWithErrors!==t.fields[0]?(i=3,c=n.fields[0],f=t.fields[0]):(i=6,h=n)):(i=6,h=n);break}case 3:{n.tag===1&&mp(n.fields[0])?(i=4,d=n.fields[0]):(i=6,h=n);break}case 4:{n.tag===1&&fp(n.fields[0])?(i=5,p=n.fields[0]):(i=6,h=n);break}default:t.fields[0].tag===1?n.tag===0?(i=1,s=t.fields[0].fields[0]):(i=6,h=n):n.tag===0?(i=0,o=t.fields[0].fields[0]):(i=6,h=n)}switch(i){case 0:{let m;const v=[o,!1];return m=Xo(1,v[0],v[1]),[new Qr(1,[new Qi(o,new Nt(1,[]),un($n(b=>b.HasDuplicateEmailError,o)),un($n(b=>b.HasErrorOtherThanDuplicateEmail,o)),un($n(b=>b.Errors!=null,o)),un(o),un($n(b=>b.Errors==null,o)),!1,ou(b=>b.Errors!=null,o),m[0],m[1],m[2],1)]),X()]}case 1:return[n,ns(m=>{e(s)})];case 2:return[new Qr(1,[new Qi(l.Data,a,l.DuplicateEmailCount,l.NumberOfRowsWithErrorsOtherThanDuplicateEmail,l.NumberOfInvalidRows,l.NumberOfRows,l.NumberOfValidRows,l.ShowingOnlyRowsWithErrors,l.HasErrors,l.RowFrom,l.RowTo,l.Page,l.PageNo)]),X()];case 3:{let m;const v=[c.Data,f];return m=Xo(1,v[0],v[1]),[new Qr(1,[new Qi(c.Data,c.InviteTiming,c.DuplicateEmailCount,c.NumberOfRowsWithErrorsOtherThanDuplicateEmail,c.NumberOfInvalidRows,c.NumberOfRows,c.NumberOfValidRows,f,c.HasErrors,m[0],m[1],m[2],1)]),X()]}case 4:{const m=d.PageNo+1|0;let v;const b=[d.Data,d.ShowingOnlyRowsWithErrors];return v=Xo(m,b[0],b[1]),[new Qr(1,[new Qi(d.Data,d.InviteTiming,d.DuplicateEmailCount,d.NumberOfRowsWithErrorsOtherThanDuplicateEmail,d.NumberOfInvalidRows,d.NumberOfRows,d.NumberOfValidRows,d.ShowingOnlyRowsWithErrors,d.HasErrors,v[0],v[1],v[2],m)]),X()]}case 5:{const m=p.PageNo-1|0;let v;const b=[p.Data,p.ShowingOnlyRowsWithErrors];return v=Xo(m,b[0],b[1]),[new Qr(1,[new Qi(p.Data,p.InviteTiming,p.DuplicateEmailCount,p.NumberOfRowsWithErrorsOtherThanDuplicateEmail,p.NumberOfInvalidRows,p.NumberOfRows,p.NumberOfValidRows,p.ShowingOnlyRowsWithErrors,p.HasErrors,v[0],v[1],v[2],m)]),X()]}default:return[h,X()]}}function hp(e,t){let n,r,i;return u("svg",w(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=g([u("path",w(g([(r="M12.6666 14.6667H3.33328C2.23062 14.6667 1.33328 13.7693 1.33328 12.6667V10H2.66662V12.6667C2.66662 13.034 2.96595 13.3333 3.33328 13.3333H12.6666C13.0339 13.3333 13.3333 13.034 13.3333 12.6667V10H14.6666V12.6667C14.6666 13.7693 13.7693 14.6667 12.6666 14.6667Z",["d",r]),["fill","#2E66F7"]]))),u("path",w(g([(i="M11.3333 5.72395L8.66667 8.39062V1.33328H7.33333V8.39062L4.66667 5.72395L3.724 6.66662L8 10.9426L12.276 6.66662L11.3333 5.72395Z",["d",i]),["fill","#2E66F7"]])))]),["children",y.Children.toArray(Array.from(n))])])))}function pp(e,t,n){let r,i,o,s,a,l,c,f,d,p,h,m,v,b,x,C,S,$,D,F,L,E;return Pi(g([new _t(3,[t]),new _t(4,[n]),new _t(5,[[Hi(le(new Vi(2,["fixed inset-0 bg-gray-500/50"]))),u("div",w(g([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(r=[Li(le(new lr(2,[[u("div",w(g([["className","flex flex-col mt-6 mb-6 px-6"],(i=[u("div",w(g([["className","flex flex-row justify-between"],(o=[u("span",{className:"text-gray-900 font-semibold text-lg",children:"What kind of data do I need?"}),u("button",w(g([["onClick",_=>{n()}],["type","button"],["className","text-gray-600"],(s=[Br(24,24)],["children",y.Children.toArray(Array.from(s))])])))],["children",y.Children.toArray(Array.from(o))])]))),u("div",w(g([["className","text-gray-600 text-sm pt-6"],(a=[u("span",{children:"Fields marked with "}),u("span",{className:"text-red-600",children:"*"}),u("span",w(le((l=" are required to create a user. While “Mobile number” and “Employment basis” are optional, they are recommended for improved searching and filtering.",["children",l]))))],["children",y.Children.toArray(Array.from(a))])]))),u("div",w(g([["className","grid grid-cols-2 mt-3"],(c=[u("span",{className:"text-gray-900 font-medium text-sm px-3 py-3.5 bg-gray-100 border",children:"Column fields"}),u("span",{className:"text-gray-900 font-medium text-sm px-3 py-3.5 bg-gray-100 border",children:"Accepted values"}),u("div",w(g([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(f=[u("span",{children:"First name "}),u("span",{className:"text-red-600",children:"*"})],["children",y.Children.toArray(Array.from(f))])]))),u("div",w(le((d=[u("div",w(g([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(p=[u("span",{children:"For example:"}),u("br",{}),u("span",{className:"italic",children:"Sam, Josh, Alex"})],["children",y.Children.toArray(Array.from(p))])])))],["children",y.Children.toArray(Array.from(d))])))),u("div",w(g([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(h=[u("span",{children:"Last name "}),u("span",{className:"text-red-600",children:"*"})],["children",y.Children.toArray(Array.from(h))])]))),u("div",w(le((m=[u("div",w(g([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(v=[u("span",{children:"For example:"}),u("br",{}),u("span",{className:"italic",children:"Smith, Doe, Williams"})],["children",y.Children.toArray(Array.from(v))])])))],["children",y.Children.toArray(Array.from(m))])))),u("div",w(g([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(b=[u("span",{children:"Email "}),u("span",{className:"text-red-600",children:"*"})],["children",y.Children.toArray(Array.from(b))])]))),u("div",w(le((x=[u("div",w(g([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(C=[u("span",{children:"For example:"}),u("br",{}),u("span",{className:"italic",children:"john.smith@mycompany.com"})],["children",y.Children.toArray(Array.from(C))])])))],["children",y.Children.toArray(Array.from(x))])))),u("span",{className:"text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border",children:"Mobile number"}),u("div",w(le((S=[u("div",w(g([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],($=[u("span",{children:"For example:"}),u("br",{}),u("span",{className:"italic",children:"+61432368712"})],["children",y.Children.toArray(Array.from($))])])))],["children",y.Children.toArray(Array.from(S))])))),u("span",{className:"text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border",children:"Employment basis"}),u("div",w(le((D=[u("div",w(g([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(F=[u("span",{children:"One of the following options:"}),u("br",{}),u("ul",w(g([["className","italic list-disc px-3"],(L=[u("li",{children:"Full-time"}),u("li",{children:"Part-time"}),u("li",{children:"Labour hire"}),u("li",{children:"Casual"})],["children",y.Children.toArray(Array.from(L))])])))],["children",y.Children.toArray(Array.from(F))])])))],["children",y.Children.toArray(Array.from(D))])))),u("a",w(g([["className","flex flex-row items-end gap-1 pt-3"],["href",e],["download","import_users"],(E=[u("span",{className:"text-sm text-primary-600 font-medium",children:"Download template"}),hp(16,16)],["children",y.Children.toArray(Array.from(E))])])))],["children",y.Children.toArray(Array.from(c))])])))],["children",y.Children.toArray(Array.from(i))])])))]])))],["children",y.Children.toArray(Array.from(r))])])))]])]))}function T6(e,t){let n,r,i,o,s,a,l,c,f,d,p,h,m;return Pi(g([new _t(3,[e]),new _t(4,[t]),new _t(5,[[Hi(le(new Vi(2,["fixed inset-0 bg-gray-500/50"]))),u("div",w(g([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(n=[Li(le(new lr(2,[[u("div",w(g([["className","flex flex-col mt-6 mb-6 px-6"],(r=[u("div",w(g([["className","flex flex-row justify-between"],(i=[u("span",{className:"text-gray-900 font-semibold text-lg",children:"What is workplace benefits?"}),u("button",w(g([["onClick",v=>{t()}],["type","button"],["className","text-gray-600"],(o=[Br(24,24)],["children",y.Children.toArray(Array.from(o))])])))],["children",y.Children.toArray(Array.from(i))])]))),u("div",w(g([["className","text-gray-500 text-sm font-normal pt-6"],(s=[u("p",w(le((a=[u("span",{children:["Workplace benefits is a"]}),u("span",{className:"font-semibold",children:" free platform "}),(l="for your entire workforce – including full-time, part-time, casual employees, and volunteers. It allows you to share company benefits while supporting employee wellbeing.",u("span",{children:[l]}))],["children",y.Children.toArray(Array.from(a))])))),u("p",w(g([["className","pt-3"],(c=[(f="With workplace benefits, your people can access everyday savings from top Australian brands like Woolworths, Kmart, Harvey Norman, The Iconic, and more – all through the ",u("span",{children:[f]})),u("span",{className:"font-semibold",children:" Flare App"}),u("span",{children:["."]})],["children",y.Children.toArray(Array.from(c))])]))),u("p",{className:"pt-3",children:"The program is designed to help employees make their pay go further through:"}),u("ul",w(g([["className","list-inside list-disc pt-3"],(d=[u("li",w(le((p=[u("span",{className:"font-semibold",children:"Savings "}),u("span",{children:["on essentials like food, fuel, and more."]})],["children",y.Children.toArray(Array.from(p))])))),u("li",w(g([["className","pt-2"],(h=[u("span",{className:"font-semibold",children:"Exclusive offers "}),u("span",{children:["from leading brands and retailers."]})],["children",y.Children.toArray(Array.from(h))])]))),u("li",w(g([["className","pt-2"],(m=[u("span",{className:"font-semibold",children:"Tax savings "}),u("span",{children:["with salary packaging."]})],["children",y.Children.toArray(Array.from(m))])])))],["children",y.Children.toArray(Array.from(d))])])))],["children",y.Children.toArray(Array.from(s))])])))],["children",y.Children.toArray(Array.from(r))])])))]])))],["children",y.Children.toArray(Array.from(n))])])))]])]))}const $6=e=>u("svg",{width:48,height:54,viewBox:"0 0 48 54",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},u("g",{id:"Group 67"},u("path",{id:"Vector",d:"M24.2605 17.5933C17.766 17.5933 12.5005 22.9015 12.5005 29.4469V53.1561H36.0205V29.4469C36.0205 22.8995 30.7549 17.5933 24.2605 17.5933Z",fill:"url(#paint0_linear_4467_4223)"}),u("g",{id:"Group",opacity:.95},u("path",{id:"Vector_2",d:"M35.76 35.646C29.2655 35.646 24 40.9115 24 47.406V53.1558H47.52V47.406C47.52 40.9115 42.2544 35.646 35.76 35.646Z",fill:"url(#paint1_linear_4467_4223)"})),u("path",{id:"Vector_3",opacity:.95,d:"M12.24 35.646C5.74553 35.646 0.47998 40.9115 0.47998 47.406V53.1558H24V47.406C24 40.9115 18.7344 35.646 12.24 35.646Z",fill:"url(#paint2_linear_4467_4223)"}),u("path",{id:"Vector_4",d:"M24.1303 16.8098C28.5328 16.8098 32.1018 13.2408 32.1018 8.83827C32.1018 4.43569 28.5328 0.866699 24.1303 0.866699C19.7277 0.866699 16.1587 4.43569 16.1587 8.83827C16.1587 13.2408 19.7277 16.8098 24.1303 16.8098Z",fill:"#0095F2"}),u("path",{id:"Vector_5",opacity:.93,d:"M13.1537 35.1253C17.5563 35.1253 21.1253 31.5563 21.1253 27.1537C21.1253 22.7511 17.5563 19.1821 13.1537 19.1821C8.75112 19.1821 5.18213 22.7511 5.18213 27.1537C5.18213 31.5563 8.75112 35.1253 13.1537 35.1253Z",fill:"#FF876F"}),u("path",{id:"Vector_6",opacity:.93,d:"M35.89 35.1253C40.2926 35.1253 43.8616 31.5563 43.8616 27.1537C43.8616 22.7511 40.2926 19.1821 35.89 19.1821C31.4875 19.1821 27.9185 22.7511 27.9185 27.1537C27.9185 31.5563 31.4875 35.1253 35.89 35.1253Z",fill:"#A650FF"})),u("defs",null,u("linearGradient",{id:"paint0_linear_4467_4223",x1:24.2605,y1:53.1561,x2:24.2605,y2:17.5933,gradientUnits:"userSpaceOnUse"},u("stop",{stopColor:"#161E37"}),u("stop",{offset:.11,stopColor:"#172243"}),u("stop",{offset:.31,stopColor:"#1B2E62"}),u("stop",{offset:.57,stopColor:"#214196"}),u("stop",{offset:.89,stopColor:"#2A5CDD"}),u("stop",{offset:1,stopColor:"#2E66F7"})),u("linearGradient",{id:"paint1_linear_4467_4223",x1:24,y1:44.4009,x2:47.52,y2:44.4009,gradientUnits:"userSpaceOnUse"},u("stop",{offset:.11,stopColor:"#FF876F"}),u("stop",{offset:.99,stopColor:"#A650FF"})),u("linearGradient",{id:"paint2_linear_4467_4223",x1:.47998,y1:44.4009,x2:24,y2:44.4009,gradientUnits:"userSpaceOnUse"},u("stop",{stopColor:"#0095F2"}),u("stop",{offset:.29,stopColor:"#307CF6"}),u("stop",{offset:.61,stopColor:"#6163FB"}),u("stop",{offset:.86,stopColor:"#7F54FD"}),u("stop",{offset:1,stopColor:"#8B4FFF"})))),M6=e=>u("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:12,viewBox:"0 0 12 12",fill:"none",...e},u("path",{d:"M6.00033 0.666504C3.05966 0.666504 0.666992 3.05917 0.666992 5.99984C0.666992 8.9405 3.05966 11.3332 6.00033 11.3332C8.94099 11.3332 11.3337 8.9405 11.3337 5.99984C11.3337 3.05917 8.94099 0.666504 6.00033 0.666504ZM6.50033 8.54584C6.50033 8.82184 6.27633 9.04584 6.00033 9.04584C5.72433 9.04584 5.50033 8.82184 5.50033 8.54584V5.49984C5.50033 5.22384 5.72433 4.99984 6.00033 4.99984C6.27633 4.99984 6.50033 5.22384 6.50033 5.49984V8.54584ZM6.00033 4.49984C5.63233 4.49984 5.33366 4.2005 5.33366 3.83317C5.33366 3.46584 5.63233 3.1665 6.00033 3.1665C6.36833 3.1665 6.66699 3.46584 6.66699 3.83317C6.66699 4.2005 6.36833 4.49984 6.00033 4.49984Z",fill:"currentColor"})),I6=e=>u("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},u("rect",{width:40,height:40,rx:4,fill:"url(#paint0_linear_4584_4202)"}),u("g",{clipPath:"url(#clip0_4584_4202)"},u("path",{d:"M9.24302 26.953L18.152 10.111C18.33 9.77467 18.5963 9.49321 18.9222 9.2969C19.2482 9.10059 19.6215 8.99686 20.002 8.99686C20.3825 8.99686 20.7559 9.10059 21.0818 9.2969C21.4078 9.49321 21.6741 9.77467 21.852 10.111L30.761 26.953C30.9282 27.2708 31.0103 27.6266 30.9991 27.9855C30.988 28.3445 30.8841 28.6944 30.6975 29.0013C30.5109 29.3081 30.2479 29.5614 29.9343 29.7364C29.6207 29.9115 29.2672 30.0023 28.908 30H11.092C10.7332 30.0016 10.3801 29.9103 10.0671 29.735C9.75404 29.5597 9.49169 29.3063 9.30555 28.9996C9.11942 28.6928 9.01583 28.3431 9.00488 27.9845C8.99392 27.6259 9.07596 27.2705 9.24302 26.953V26.953Z",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),u("path",{d:"M20 16V22",stroke:"#DC2626",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),u("path",{d:"M20 27C20.8284 27 21.5 26.3284 21.5 25.5C21.5 24.6716 20.8284 24 20 24C19.1716 24 18.5 24.6716 18.5 25.5C18.5 26.3284 19.1716 27 20 27Z",fill:"#DC2626"})),u("defs",null,u("linearGradient",{id:"paint0_linear_4584_4202",x1:40,y1:571311e-11,x2:4.50001,y2:35.5,gradientUnits:"userSpaceOnUse"},u("stop",{stopColor:"#FECACA"}),u("stop",{offset:1,stopColor:"#FECACA",stopOpacity:0})),u("clipPath",{id:"clip0_4584_4202"},u("rect",{width:24,height:24,fill:"white",transform:"translate(8 8)"})))),D6=e=>u("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},u("rect",{width:40,height:40,rx:4,fill:"url(#paint0_linear_3326_53774)"}),u("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28.3272 22.6261C28.5428 23.1983 28.2016 23.8306 27.6205 24.025C26.6465 24.3503 25.3424 24.6628 23.7902 24.7151C23.7699 24.6508 23.7476 24.5864 23.7234 24.522C23.042 22.7136 21.7109 21.2192 20.0107 20.3308C20.9217 19.6032 22.0762 19.1683 23.3339 19.1683C25.6205 19.1683 27.5661 20.6061 28.3272 22.6261Z",fill:"#93C5FD"}),u("path",{d:"M23.3336 16.3889C24.5609 16.3889 25.5558 15.394 25.5558 14.1667C25.5558 12.9394 24.5609 11.9445 23.3336 11.9445C22.1062 11.9445 21.1113 12.9394 21.1113 14.1667C21.1113 15.394 22.1062 16.3889 23.3336 16.3889Z",fill:"#93C5FD"}),u("path",{d:"M16.3892 19.1667C17.6165 19.1667 18.6114 18.1718 18.6114 16.9445C18.6114 15.7172 17.6165 14.7222 16.3892 14.7222C15.1619 14.7222 14.167 15.7172 14.167 16.9445C14.167 18.1718 15.1619 19.1667 16.3892 19.1667Z",stroke:"#212121",strokeWidth:1.66667,strokeLinecap:"round",strokeLinejoin:"round"}),u("path",{d:"M20.6771 26.8022C21.2583 26.6078 21.5994 25.9756 21.3838 25.4033C20.6227 23.3833 18.6771 21.9456 16.3905 21.9456C14.1038 21.9456 12.1583 23.3833 11.3971 25.4033C11.1816 25.9767 11.5227 26.6089 12.1038 26.8022C13.1727 27.1589 14.6383 27.5 16.3916 27.5C18.1449 27.5 19.6094 27.1589 20.6771 26.8022Z",stroke:"#212121",strokeWidth:1.66667,strokeLinecap:"round",strokeLinejoin:"round"}),u("path",{d:"M23.3336 16.3889C24.5609 16.3889 25.5558 15.394 25.5558 14.1667C25.5558 12.9394 24.5609 11.9445 23.3336 11.9445C22.1062 11.9445 21.1113 12.9394 21.1113 14.1667C21.1113 15.394 22.1062 16.3889 23.3336 16.3889Z",stroke:"#212121",strokeWidth:1.66667,strokeLinecap:"round",strokeLinejoin:"round"}),u("path",{d:"M24.1664 24.6967C25.553 24.6111 26.7264 24.3233 27.6208 24.0245C28.2019 23.83 28.543 23.1978 28.3275 22.6256C27.5664 20.6056 25.6208 19.1678 23.3341 19.1678C22.2486 19.1678 21.2397 19.4922 20.3975 20.0489",stroke:"#212121",strokeWidth:1.66667,strokeLinecap:"round",strokeLinejoin:"round"}),u("defs",null,u("linearGradient",{id:"paint0_linear_3326_53774",x1:40,y1:571311e-11,x2:4.50001,y2:35.5,gradientUnits:"userSpaceOnUse"},u("stop",{stopColor:"#D6E2FC"}),u("stop",{offset:1,stopColor:"#D6E2FC",stopOpacity:0})))),O6=e=>u("svg",{width:96,height:28,viewBox:"0 0 96 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},u("g",{clipPath:"url(#clip0_3030_30757)"},u("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.40895 5.42706C5.79785 4.83985 8.86151 3.00302 11.0249 0.261313C11.1152 0.153807 11.235 0.0767261 11.3686 0.0401219C11.5021 0.00351777 11.6434 0.0090886 11.7738 0.056108C11.9043 0.103127 12.0179 0.189414 12.0999 0.303716C12.1819 0.418018 12.2285 0.555032 12.2335 0.696894L12.2335 11.4663C12.2313 11.588 12.1985 11.7071 12.1382 11.812C12.078 11.9168 11.9924 12.0039 11.8897 12.0648C11.787 12.1257 11.6708 12.1583 11.5522 12.1594C11.4336 12.1606 11.3168 12.1303 11.213 12.0714L2.17962 6.71732C2.06323 6.6422 1.97142 6.53301 1.91604 6.40381C1.86067 6.27462 1.84426 6.13136 1.86894 5.9925C1.89362 5.85364 1.95825 5.72556 2.05451 5.62478C2.15076 5.52399 2.27422 5.45513 2.40895 5.42706ZM2.40895 22.6054C5.79785 23.1926 8.86151 25.0295 11.0249 27.7712C11.1152 27.8787 11.235 27.9557 11.3686 27.9923C11.5021 28.029 11.6434 28.0234 11.7738 27.9764C11.9043 27.9293 12.0179 27.8431 12.0999 27.7288C12.1819 27.6145 12.2285 27.4774 12.2335 27.3356L12.2335 16.5756C12.2328 16.453 12.2012 16.3328 12.1416 16.2267C12.082 16.1205 11.9965 16.0321 11.8936 15.9701C11.7906 15.9081 11.6738 15.8747 11.5544 15.8731C11.4351 15.8715 11.3174 15.9018 11.213 15.961L2.17962 21.3151C2.06323 21.3903 1.97142 21.4995 1.91604 21.6287C1.86067 21.7578 1.84426 21.9011 1.86894 22.04C1.89362 22.1788 1.95825 22.3069 2.05451 22.4077C2.15076 22.5085 2.27422 22.5773 2.40895 22.6054ZM0.20511 8.8811C1.43425 12.1754 1.45137 15.8168 0.253269 19.1231C0.21046 19.2568 0.207545 19.4007 0.244898 19.5361C0.28225 19.6715 0.358167 19.7924 0.462907 19.8833C0.567647 19.9741 0.696433 20.0307 0.832742 20.0459C0.96905 20.0611 1.10666 20.0341 1.22793 19.9684L10.2567 14.6166C10.3578 14.5537 10.4414 14.465 10.4994 14.3592C10.5574 14.2535 10.5879 14.1341 10.5879 14.0127C10.5879 13.8913 10.5574 13.772 10.4994 13.6662C10.4414 13.5604 10.3578 13.4717 10.2567 13.4088L1.17518 8.02406C1.05302 7.95812 0.914374 7.93142 0.777244 7.94743C0.640114 7.96344 0.510844 8.02142 0.406231 8.11384C0.301618 8.20627 0.226497 8.32886 0.190631 8.46568C0.154764 8.60251 0.159809 8.74725 0.20511 8.8811ZM23.6634 22.6054C20.2745 23.1926 17.2108 25.0295 15.0474 27.7712C14.9571 27.8787 14.8374 27.9557 14.7038 27.9923C14.5702 28.029 14.4289 28.0234 14.2985 27.9764C14.168 27.9293 14.0544 27.8431 13.9724 27.7288C13.8904 27.6145 13.8439 27.4774 13.8388 27.3356L13.8388 16.5756C13.8397 16.4534 13.8714 16.3335 13.9309 16.2277C13.9904 16.1219 14.0756 16.0337 14.1781 15.9718C14.2807 15.9098 14.3972 15.8763 14.5162 15.8744C14.6352 15.8725 14.7527 15.9024 14.8571 15.961L23.8927 21.3152C24.0091 21.3903 24.1009 21.4995 24.1563 21.6287C24.2117 21.7579 24.2281 21.9011 24.2034 22.04C24.1787 22.1788 24.1141 22.3069 24.0178 22.4077C23.9216 22.5085 23.7981 22.5773 23.6634 22.6054ZM15.0474 0.261313C17.2108 3.00302 20.2745 4.83985 23.6634 5.42706C23.7981 5.45513 23.9216 5.52399 24.0178 5.62478C24.1141 5.72556 24.1787 5.85364 24.2034 5.9925C24.2281 6.13136 24.2117 6.27462 24.1563 6.40381C24.1009 6.53301 24.0091 6.6422 23.8927 6.71732L14.8571 12.0714C14.7533 12.1297 14.6367 12.1596 14.5185 12.1581C14.4002 12.1567 14.2844 12.124 14.182 12.0632C14.0797 12.0024 13.9943 11.9155 13.9342 11.8109C13.8741 11.7064 13.8412 11.5877 13.8388 11.4663L13.8388 0.696894C13.8439 0.555032 13.8904 0.418018 13.9724 0.303716C14.0544 0.189414 14.168 0.103127 14.2985 0.056108C14.4289 0.0090886 14.5702 0.00351777 14.7038 0.0401219C14.8374 0.0767261 14.9571 0.153807 15.0474 0.261313ZM25.8168 8.90935C24.6184 12.2158 24.6363 15.8576 25.8672 19.1514C25.913 19.2855 25.9182 19.4307 25.8823 19.5679C25.8464 19.7052 25.7711 19.8281 25.666 19.9207C25.561 20.0133 25.4312 20.0711 25.2936 20.0868C25.1561 20.1024 25.0171 20.0751 24.8949 20.0084L15.8111 14.6237C15.71 14.5607 15.6264 14.4721 15.5684 14.3663C15.5104 14.2605 15.4799 14.1412 15.4799 14.0198C15.4799 13.8984 15.5104 13.779 15.5684 13.6732C15.6264 13.5674 15.71 13.4788 15.8111 13.4158L24.8421 8.06409C24.9634 7.9984 25.101 7.97141 25.2373 7.98657C25.3736 8.00174 25.5024 8.05837 25.6072 8.14921C25.7119 8.24004 25.7878 8.36093 25.8252 8.49637C25.8625 8.63181 25.8596 8.77562 25.8168 8.90935Z",fill:"#2696EC"}),u("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.2209 10.9851V23.8468H35.8118V10.9851H33.4648V7.92778H35.8118V6.51672C35.8118 4.91439 36.1765 3.76595 36.9061 3.0714C37.6356 2.37685 38.8454 2.02879 40.5355 2.02722H42.4442V4.82816H41.2857C40.5347 4.82816 40.0032 4.98495 39.6912 5.29851C39.3769 5.6207 39.2209 6.16396 39.2209 6.94474V7.93718H42.3891V10.9945L39.2209 10.9851ZM48.9092 2.03663L45.4679 2.03663V23.8421L48.9092 23.8421V2.03663ZM67.5974 23.8468V7.93718L64.2755 7.93718V10.1196C63.6573 9.3308 62.873 8.69564 61.9813 8.26172C61.0863 7.83165 60.1089 7.61228 59.1205 7.6197C58.0959 7.5972 57.0782 7.79484 56.1327 8.19987C55.1871 8.60491 54.3348 9.20838 53.6305 9.97145C52.1393 11.5597 51.3937 13.5195 51.3937 15.8508C51.3952 18.2324 52.1202 20.2032 53.5686 21.7632C55.017 23.3232 56.8362 24.1031 59.0264 24.1031C60.0369 24.1101 61.0362 23.886 61.9515 23.447C62.8575 23.009 63.6545 22.3657 64.2823 21.5656V23.8468H67.5974ZM55.138 17.7811C54.9016 17.1671 54.7876 16.5107 54.8028 15.8508C54.7876 15.1909 54.9016 14.5346 55.138 13.9206C55.3744 13.3066 55.7285 12.7475 56.1794 12.2762C56.6129 11.8155 57.1322 11.4489 57.7066 11.1979C58.281 10.947 58.8988 10.8169 59.5231 10.8153C60.1475 10.8138 60.7658 10.9409 61.3414 11.189C61.917 11.4371 62.4381 11.8012 62.8737 12.2597C63.3183 12.7374 63.6661 13.3008 63.8968 13.9172C64.1276 14.5337 64.2368 15.1909 64.2181 15.8508C64.2368 16.5108 64.1276 17.168 63.8968 17.7844C63.6661 18.4009 63.3183 18.9642 62.8737 19.442C62.4381 19.9005 61.917 20.2646 61.3414 20.5127C60.7658 20.7608 60.1475 20.8879 59.5231 20.8863C58.8988 20.8848 58.281 20.7547 57.7066 20.5038C57.1322 20.2528 56.6129 19.8861 56.1794 19.4255C55.7285 18.9542 55.3744 18.395 55.138 17.7811ZM74.317 14.254V23.8468H70.9079V7.93718L74.223 7.93718V9.54108C74.592 8.94917 75.0969 8.45902 75.6935 8.11357C76.2985 7.77921 76.977 7.60919 77.6642 7.6197C78.1147 7.61511 78.5633 7.68012 78.9948 7.81254C79.3586 7.91663 79.6949 8.10308 79.979 8.35815L78.2584 11.4366C78.0425 11.2918 77.8055 11.1831 77.5564 11.1144C77.3265 11.052 77.0899 11.0196 76.8521 11.018C76.4954 11.0017 76.1402 11.0733 75.8161 11.2268C75.4919 11.3802 75.2084 11.611 74.9892 11.8999C74.5411 12.4863 74.317 13.271 74.317 14.254ZM95.8271 16.467C95.8432 16.34 95.8432 16.1472 95.8432 15.8908C95.8355 13.4967 95.0815 11.5197 93.5811 9.95969C92.0807 8.3997 90.1835 7.6197 87.8893 7.6197C85.5676 7.61186 83.642 8.38872 82.1126 9.95029C80.5831 11.5119 79.8184 13.4897 79.8184 15.8838C79.8184 18.2982 80.5587 20.2698 82.0392 21.7984C83.5197 23.3271 85.4384 24.0914 87.7952 24.0914C89.5346 24.1334 91.2443 23.6242 92.691 22.6333C94.0578 21.6868 95.0674 20.2892 95.5518 18.6729H91.9546C91.5609 19.4036 90.9761 20.0071 90.266 20.4156C89.5283 20.8295 88.6981 21.0394 87.8572 21.0247C86.7294 21.0612 85.6315 20.65 84.7922 19.877C83.977 19.1229 83.4975 18.1038 83.3537 16.8198H95.7812C95.8037 16.7033 95.819 16.5855 95.8271 16.467ZM87.8324 10.6957C87.8338 10.6957 87.8351 10.6958 87.8365 10.6958H87.8274C87.829 10.6958 87.8307 10.6957 87.8324 10.6957ZM84.9413 11.7212C85.7535 11.0344 86.7798 10.6704 87.8324 10.6957C88.8902 10.6749 89.9201 11.0447 90.7341 11.7376C91.5425 12.4257 92.0583 13.409 92.1725 14.4798L83.3927 14.4798C83.5781 13.4028 84.1261 12.4266 84.9413 11.7212Z",fill:"#143057"})),u("defs",null,u("clipPath",{id:"clip0_3030_30757"},u("rect",{width:95.6667,height:28,fill:"white",transform:"translate(0.166992)"})))),R6=e=>u("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},u("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5C8.14219 5 5 8.14219 5 12C5 15.8578 8.14219 19 12 19C15.8578 19 19 15.8578 19 12C19 8.14219 15.8578 5 12 5ZM3 12C3 7.03763 7.03763 3 12 3C16.9624 3 21 7.03763 21 12C21 16.9624 16.9624 21 12 21C7.03763 21 3 16.9624 3 12Z",fill:"#10B981"}),u("path",{d:"M11.707 14.707C11.3165 15.0975 10.6834 15.0975 10.2928 14.707L8.29294 12.7071C7.90247 12.3166 7.90247 11.6835 8.29294 11.2931C8.6834 10.9026 9.31647 10.9026 9.70694 11.2931L10.9999 12.5861L14.2929 9.29306C14.6834 8.90259 15.3165 8.90259 15.7069 9.29306C16.0974 9.68353 16.0974 10.3166 15.7069 10.7071L11.707 14.707Z",fill:"#10B981"})),F6=e=>u("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},u("path",{d:"M12.0004 2.40002C6.72039 2.40002 2.40039 6.72002 2.40039 12C2.40039 17.28 6.72039 21.6 12.0004 21.6C17.2804 21.6 21.6004 17.28 21.6004 12C21.6004 6.72002 17.2804 2.40002 12.0004 2.40002ZM12.0004 19.2C8.04039 19.2 4.80039 15.96 4.80039 12C4.80039 8.04002 8.04039 4.80002 12.0004 4.80002C15.9604 4.80002 19.2004 8.04002 19.2004 12C19.2004 15.96 15.9604 19.2 12.0004 19.2Z",fill:"#DC2626"}),u("path",{d:"M13.2008 7.20007H10.8008V13.2001H13.2008V7.20007Z",fill:"#DC2626"}),u("path",{d:"M12.0008 16.8C12.6635 16.8 13.2008 16.2628 13.2008 15.6C13.2008 14.9373 12.6635 14.4 12.0008 14.4C11.338 14.4 10.8008 14.9373 10.8008 15.6C10.8008 16.2628 11.338 16.8 12.0008 16.8Z",fill:"#DC2626"})),P6=e=>u("svg",{width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},u("g",{id:"Clock"},u("path",{id:"Icon",d:"M12.5 8V12L15.5 15M21.5 12C21.5 16.9706 17.4706 21 12.5 21C7.52944 21 3.5 16.9706 3.5 12C3.5 7.02944 7.52944 3 12.5 3C17.4706 3 21.5 7.02944 21.5 12Z",stroke:"#FB923C",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})));function mr(e,t){return y.createElement(e,w(t))}function L6(e){return mr($6,e)}function V6(e){return mr(M6,e)}function H6(e){return mr(I6,e)}function j6(e){return mr(D6,e)}function B6(e){return mr(O6,e)}function W6(e){return mr(R6,e)}function U6(e){return mr(F6,e)}function G6(e){return mr(P6,e)}function z6(e,t,n,r){let i,o,s,a,l,c,f,d,p,h,m;return Pi(g([new _t(3,[e]),new _t(4,[n]),new _t(5,[[Hi(le(new Vi(2,["fixed inset-0 bg-gray-500/50"]))),u("div",w(g([["className","fixed inset-0 z-10 w-screen overflow-y-auto"],(i=[u("div",w(g([["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(o=[Li(g([new lr(1,["relative transform overflow-hidden rounded-lg bg-white px-4 pt-5 pb-4 text-left shadow-xl sm:my-8 sm:w-full sm:max-w-lg sm:p-6"]),new lr(2,[[u("div",w(g([["className","absolute top-0 right-0 hidden pt-4 pr-4 sm:block"],(s=[u("button",w(g([["type","button"],["onClick",v=>{n()}],["className","text-gray-600"],(a=[Br(24,24)],["children",y.Children.toArray(Array.from(a))])])))],["children",y.Children.toArray(Array.from(s))])]))),u("div",w(g([["className","sm:flex sm:items-start"],(l=[u("div",w(g([["className","mx-auto flex size-12 shrink-0 items-center justify-center sm:mx-0 sm:size-10"],(c=[j6([])],["children",y.Children.toArray(Array.from(c))])]))),u("div",w(g([["className","mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"],(f=[Zh(g([new Os(2,["text-gray-900 text-lg font-bold"]),new Os(3,[[`Import ${t} users`]])])),u("div",w(g([["className","mt-2 text-sm text-gray-500 leading-tight"],(d=[u("p",{children:[`Are you sure you want to import ${t} users?`]})],["children",y.Children.toArray(Array.from(d))])])))],["children",y.Children.toArray(Array.from(f))])])))],["children",y.Children.toArray(Array.from(l))])]))),u("div",w(g([["className","mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"],(p=[u("button",w(g([["type","button"],["onClick",v=>{r()}],(h="inline-flex w-full justify-center rounded-md bg-emerald-600 px-3 py-2 text-sm font-medium text-white shadow-xs hover:bg-emerald-700 sm:ml-3 sm:w-auto",["className",h]),["children","Confirm import"]]))),u("button",w(g([["type","button"],["onClick",v=>{n()}],(m="mt-3 inline-flex w-full justify-center rounded-md bg-white px-3 py-2 text-gray-700 text-sm font-medium ring-1 shadow-xs ring-gray-300 ring-inset hover:bg-gray-50 sm:mt-0 sm:w-auto",["className",m]),["children","Cancel"]])))],["children",y.Children.toArray(Array.from(p))])])))]])]))],["children",y.Children.toArray(Array.from(o))])])))],["children",y.Children.toArray(Array.from(i))])])))]])]))}function q6(e,t){let n,r;return u("svg",w(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=le(u("path",w(g([(r="M17.8008 14.5263L11.4838 2.88031C11.328 2.59137 11.0904 2.35483 10.8008 2.20031C10.4074 1.98974 9.94665 1.94305 9.51893 2.07039C9.0912 2.19773 8.73106 2.48881 8.51683 2.88031L2.20083 14.5263C2.06272 14.7826 1.99367 15.0704 2.00046 15.3614C2.00724 15.6525 2.08964 15.9368 2.23954 16.1863C2.38944 16.4359 2.60169 16.6422 2.85544 16.7849C3.10919 16.9276 3.39571 17.0018 3.68683 17.0003H16.3148C16.5939 17.0003 16.8686 16.9316 17.1148 16.8003C17.3099 16.6968 17.4825 16.5556 17.6228 16.3851C17.763 16.2145 17.8681 16.0178 17.932 15.8064C17.9958 15.595 18.0172 15.373 17.9949 15.1533C17.9726 14.9336 17.9069 14.7205 17.8018 14.5263H17.8008ZM10.0008 15.0003C9.80305 15.0003 9.60971 14.9417 9.44526 14.8318C9.28081 14.7219 9.15264 14.5657 9.07695 14.383C9.00126 14.2003 8.98146 13.9992 9.02004 13.8052C9.05863 13.6112 9.15387 13.4331 9.29372 13.2932C9.43358 13.1533 9.61176 13.0581 9.80574 13.0195C9.99972 12.9809 10.2008 13.0007 10.3835 13.0764C10.5662 13.1521 10.7224 13.2803 10.8323 13.4447C10.9422 13.6092 11.0008 13.8025 11.0008 14.0003C11.0008 14.2655 10.8955 14.5199 10.7079 14.7074C10.5204 14.8949 10.266 15.0003 10.0008 15.0003ZM11.0008 11.5003C11.0008 11.6329 10.9482 11.7601 10.8544 11.8539C10.7606 11.9476 10.6334 12.0003 10.5008 12.0003H9.50083C9.36822 12.0003 9.24104 11.9476 9.14728 11.8539C9.05351 11.7601 9.00083 11.6329 9.00083 11.5003V7.50031C9.00083 7.3677 9.05351 7.24052 9.14728 7.14675C9.24104 7.05298 9.36822 7.00031 9.50083 7.00031H10.5008C10.6334 7.00031 10.7606 7.05298 10.8544 7.14675C10.9482 7.24052 11.0008 7.3677 11.0008 7.50031V11.5003Z",["d",r]),["fill","#FBBF24"]])))),["children",y.Children.toArray(Array.from(n))])])))}function Y6(e){return`${eu(e,".")}.`}function Qd(e){return eu(e,".")}function Z6(e){let t;const n=e.children,r=e.text,i=y.useState(!1),o=i[1];return u("div",w(g([["className","relative inline-block"],["onMouseEnter",s=>{o(!0)}],["onMouseLeave",s=>{o(!1)}],(t=Y(T(()=>H(n,T(()=>{let s,a;return i[0]?A(u("div",w(g([(s="absolute top-0 left-full -translate-y-1/4 ml-1 text-left text-white text-xs leading-5 font-medium ring-1 ring-black ring-opacity-5 shadow-md rounded-md bg-gray-900 pl-6 pr-3 py-2 w-60 text-wrap",["className",s]),(a=Y(T(()=>{let l;return $e(r)?A(u("ul",w(g([["className","list-outside list-disc"],(l=Y(T(()=>Pe(c=>u("li",{children:[Qd(c)]}),r))),["children",y.Children.toArray(Array.from(l))])])))):$e(Me(r))?A(u("p",{children:[Y6(ae(r))]})):A(u("ul",w(g([["className","list-outside list-disc"],(l=Y(T(()=>Pe(c=>u("li",{children:[Qd(c)]}),r))),["children",y.Children.toArray(Array.from(l))])]))))})),["children",y.Children.toArray(Array.from(a))])])))):ft()})))),["children",y.Children.toArray(Array.from(t))])])))}function Yr(e,t){let n;return u("div",w(g([["className",Et(" ",["animate-pulse w-full relative",e,t])],(n=[u("div",{className:Et(" ",["w-full left-0 top-0 absolute bg-gray-200 rounded",e])})],["children",y.Children.toArray(Array.from(n))])])))}function K6(){let e,t,n,r,i,o,s,a,l,c,f,d;return u("div",w(g([["className","flex-col justify-start items-start gap-6 inline-flex"],(e=[u("div",w(g([["className","flex-col justify-start items-end gap-4 inline-flex"],(t=[u("div",w(g([["className","justify-start items-center gap-2 inline-flex"],(n=[u("input",{type:"checkbox",defaultChecked:!1,disabled:!0,className:"rounded-sm border border-gray-300 bg-white"}),u("span",{className:"text-gray-400 text-sm font-normal leading-tight",children:"Show only rows with errors"})],["children",y.Children.toArray(Array.from(n))])]))),u("div",w(g([["className","px-4 pt-4 pb-2 bg-white rounded-lg border border-gray-200 flex-col"],(r=[u("div",w(g([["className","w-[1030px]"],(i=Y(T(()=>{let p,h,m,v;return H(A(u("div",w(g([["className","bg-gray-100 flex"],(p=[u("div",w(g([["className","px-3 py-2.5 text-left w-[128px]"],(h=[Yr("h-5","w-full")],["children",y.Children.toArray(Array.from(h))])]))),u("div",w(g([["className","px-3 py-2.5 text-left w-[148px]"],(m=[Yr("h-5","w-full")],["children",y.Children.toArray(Array.from(m))])]))),u("div",w(g([["className","px-3 py-2.5 text-left flex-1"],(v=[Yr("h-5","w-full")],["children",y.Children.toArray(Array.from(v))])])))],["children",y.Children.toArray(Array.from(p))])])))),T(()=>Pe(b=>u("div",w(Y(T(()=>H(b%2===1?A(["className","bg-white border-t border-gray-200 flex"]):A(["className","bg-gray-50 border-t border-gray-200 flex"]),T(()=>{let x,C,S,$;return A((x=[u("div",w(g([["className","px-3 py-2.5 text-left w-[128px]"],(C=[Yr("h-5","w-full")],["children",y.Children.toArray(Array.from(C))])]))),u("div",w(g([["className","px-3 py-2.5 text-left w-[148px]"],(S=[Yr("h-5","w-full")],["children",y.Children.toArray(Array.from(S))])]))),u("div",w(g([["className","px-3 py-2.5 text-left flex-1"],($=[Yr("h-5","w-full")],["children",y.Children.toArray(Array.from($))])])))],["children",y.Children.toArray(Array.from(x))]))})))))),Y(mu(0,1,9)))))})),["children",y.Children.toArray(Array.from(i))])])))],["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(t))])]))),u("div",w(g([["className","justify-start items-end gap-2 inline-flex w-full pb-2"],(o=[u("div",w(g([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(s=[u("div",{className:"grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"}),u("div",w(g([["className","justify-start items-center gap-2 flex"],(a=[u("button",w(g([(l="px-[13px] py-[9px] bg-white opacity-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex",["className",l]),["disabled",!0],(c=[u("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",y.Children.toArray(Array.from(c))])]))),u("button",w(g([(f="pl-[13px] pr-[11px] py-[9px] opacity-50 bg-emerald-600 rounded-md shadow-sm justify-center items-center gap-2 flex",["className",f]),["disabled",!0],(d=[u("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:"Import users"})],["children",y.Children.toArray(Array.from(d))])])))],["children",y.Children.toArray(Array.from(a))])])))],["children",y.Children.toArray(Array.from(s))])])))],["children",y.Children.toArray(Array.from(o))])])))],["children",y.Children.toArray(Array.from(e))])])))}function X6(e){const t=Ke(r=>r,cr(e)),n=new Blob(t,{type:"text/csv;charset=utf-8;"});return window.URL.createObjectURL(n)}const J6=(()=>{const e=new Blob(["First name,Last name,Email,Mobile phone,Employment basis"],{type:"text/csv;charset=utf-8;"});return window.URL.createObjectURL(e)})();function Q6(e){let t,n,r;const i=e.onError,o=e.back,s=e.next,a=e.employmentBasis,l=e.baseColumnMappings,c=e.dataRows,f=e.apiCallAsync;let d;const p=A6(()=>S6(f,c,l,a));d=jr(()=>Hr(()=>p,(D,F)=>N6(i,D,F),(D,F)=>{}),void 0,void 0);const h=d[1],m=y.useState(!1),v=m[1],b=y.useState(!1),x=b[1],C=y.useState(!1),S=C[0],$=C[1];return u("div",w(g([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12 h-full"],(t=[pp(J6,m[0],()=>{v(!1)}),T6(b[0],()=>{x(!1)}),Ca("Review"),Sa("Preview your data and confirm that everything is mapped correctly."),u("div",w(g([["className","flex flex-row pt-3 gap-2"],(n=[go("What kind of data do I need?",()=>{v(!0)})],["children",y.Children.toArray(Array.from(n))])]))),u("div",w(g([["className","justify-start items-start gap-12 inline-flex"],(r=[u("div",w(Y(T(()=>H(A(["className","pt-6 flex-col justify-start items-start gap-4 inline-flex"]),T(()=>{let D,F,L;const E=d[0];if(E.tag===1){const _=E.fields[0],k=B=>{h(new no(1,[B]))},N=B=>{h(new no(2,[B]))},I=mp(_)?B=>{h(new no(3,[]))}:void 0,O=fp(_)?B=>{h(new no(4,[]))}:void 0;return A((D=[u("div",w(g([["className","flex-col justify-start items-start gap-6 inline-flex"],(F=Y(T(()=>H(A(z6(S,_.NumberOfValidRows,()=>{S&&$(!1)},()=>{S&&s([new Tm(Pn(Pe(B=>B[0],Ys(B=>B[1].Errors==null,Vg(c.fields[0],_.Data))))),_.InviteTiming])})),T(()=>{let B,pe,Z,U,P,G,j,de;return H(_.HasErrors?A(u("div",w(g([["className","p-4 bg-amber-50 rounded-md justify-start items-start gap-3 inline-flex"],(B=[q6(20,20),u("div",w(g([["className","flex-col justify-start items-start gap-2 inline-flex"],(pe=[u("div",w(g([["className","self-stretch text-amber-800 text-sm font-medium leading-tight"],(Z=[u("span",{children:[`We found some issues across ${_.NumberOfInvalidRows} rows in your CSV:`]})],["children",y.Children.toArray(Array.from(Z))])]))),u("ul",w(g([["className","pl-2 font-normal overflow-hidden list-inside list-disc text-amber-700 text-sm"],(U=Y(T(()=>{let z;return H(_.DuplicateEmailCount>0?A((z=g([u("span",{className:"font-medium",children:`${_.DuplicateEmailCount} rows `}),u("span",{children:["have "]}),u("span",{className:"font-medium",children:"duplicate email addresses"})]),u("li",{children:y.Children.toArray(Array.from(z))}))):ft(),T(()=>{let R;return _.NumberOfRowsWithErrorsOtherThanDuplicateEmail>0?A((R=g([u("span",{className:"font-medium",children:`${_.NumberOfRowsWithErrorsOtherThanDuplicateEmail} rows `}),u("span",{children:["have "]}),u("span",{className:"font-medium",children:"missing or incorrectly formatted data"})]),u("li",{children:y.Children.toArray(Array.from(R))}))):ft()}))})),["children",y.Children.toArray(Array.from(U))])]))),u("div",w(g([["className","px-2 py-1.5"],(P=[u("div",w(g([["className","text-amber-700 text-sm leading-tight"],(G=[u("span",{children:[`You can continue the import without these ${_.NumberOfInvalidRows} rows—we’ll automatically skip them. To import them later, download the error report, fix the issues, and re-upload your file as a new import.`]})],["children",y.Children.toArray(Array.from(G))])])))],["children",y.Children.toArray(Array.from(P))])]))),u("div",w(g([["className","px-2 py-1.5"],(j=[u("a",{className:"text-amber-800 text-sm font-medium leading-tight",children:"Download Error Report (.csv)",href:X6((de=[_,a!=null],k6(de[0],de[1]))),download:"import_users_error_rows"})],["children",y.Children.toArray(Array.from(j))])])))],["children",y.Children.toArray(Array.from(pe))])])))],["children",y.Children.toArray(Array.from(B))])])))):ft(),T(()=>{let z,R,ge,me,we,Ee,ne,xe,Ce,De,ee,oe,q,Se;return H(A(u("div",w(g([["className","w-full flex-col justify-start items-end gap-4 inline-flex"],(z=[u("div",w(g([["className","justify-start items-center gap-2 inline-flex py-3 -my-3"],["onClick",te=>{N(!_.ShowingOnlyRowsWithErrors)}],(R=[u("input",w(g([["type","checkbox"],["checked",_.ShowingOnlyRowsWithErrors],(ge="rounded-sm border border-gray-300 bg-white checked:border-primary-600 checked:bg-primary-600 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600",["className",ge]),["onKeyPress",te=>{te.preventDefault(),te.key==="Enter"&&N(!_.ShowingOnlyRowsWithErrors)}]]))),u("span",{className:"text-gray-900 text-sm font-normal leading-tight",children:"Show only rows with errors"})],["children",y.Children.toArray(Array.from(R))])]))),u("div",w(g([["className","w-full px-4 pt-4 pb-2 bg-white rounded-lg border border-gray-200 flex-col"],(me=[u("div",w(le((we=[u("div",w(g([["className","w-full max-h-[470px] overflow-auto"],(Ee=[u("table",w(g([["className","w-full divide-y divide-gray-300"],(ne=[u("thead",w(g([["className","bg-gray-100 border-b border-gray-200 text-sm text-gray-900 text-sm font-medium leading-tight"],(xe=[(Ce=Y(T(()=>H(A(u("th",{scope:"col",className:"px-3 py-2.5 text-left",children:"#"})),T(()=>H(A(u("th",{scope:"col",className:"px-3 py-2.5 text-left",children:"Error detail"})),T(()=>{let te;return H(A(u("th",w(g([["scope","col"],["className","px-3 py-2.5 text-left"],(te=[u("span",{children:["First name "]}),u("span",{className:"text-red-500",children:"*"})],["children",y.Children.toArray(Array.from(te))])])))),T(()=>{let ce;return H(A(u("th",w(g([["scope","col"],["className","px-3 py-2.5 text-left"],(ce=[u("span",{children:["Last name "]}),u("span",{className:"text-red-500",children:"*"})],["children",y.Children.toArray(Array.from(ce))])])))),T(()=>{let Be;return H(A(u("th",w(g([["scope","col"],["className","px-3 py-2.5 text-left"],(Be=[u("span",{children:["Email "]}),u("span",{className:"text-red-500",children:"*"})],["children",y.Children.toArray(Array.from(Be))])])))),T(()=>H(A(u("th",{scope:"col",className:"px-3 py-2.5 text-left",children:"Mobile Phone"})),T(()=>a!=null?A(u("th",{scope:"col",className:"px-3 py-2.5 text-left",children:"Employment Basis"})):ft()))))}))}))})))))),u("tr",{children:y.Children.toArray(Array.from(Ce))}))],["children",y.Children.toArray(Array.from(xe))])]))),u("tbody",w(g([["className","divide-y divide-gray-200"],(De=Y(T(()=>Pe(te=>u("tr",w(Y(T(()=>H(A(["key",te.RowNumber]),T(()=>{let ce;return H((ce=te.RowNumber%2|0,te.Errors==null?A(ce===1?["className","bg-white"]:["className","bg-gray-50"]):A(["className","bg-amber-50"])),T(()=>{let Be;return A((Be=Y(T(()=>H(A(u("td",{className:"whitespace-nowrap px-3 py-2.5 text-sm text-gray-500",children:te.RowNumber})),T(()=>H(A(u("td",w(Y(T(()=>H(A(["className","whitespace-nowrap px-3 py-2.5"]),T(()=>{let ye,Ne,Te;return te.Errors!=null?A((ye=[u("div",w(g([(Ne="text-center text-amber-800 text-xs font-medium h-5 pl-2.5 pr-1.5 bg-amber-100 rounded justify-center items-center inline-flex",["className",Ne]),(Te=Y(T(()=>H(A(u("span",{children:[V(te.Errors).Summary]})),T(()=>{let It;const lt=V(te.Errors).Details;return lt==null?ft():A(u("div",w(g([["className","pl-1 text-amber-700 items-center inline-flex"],(It=[u(Z6,{text:lt,children:[V6([])]})],["children",y.Children.toArray(Array.from(It))])]))))})))),["children",y.Children.toArray(Array.from(Te))])])))],["children",y.Children.toArray(Array.from(ye))])):ft()}))))))),T(()=>H(A(u("td",w(Y(T(()=>{let ye,Ne;const Te=te.FirstName;return Te[0]==null?ft():Te[1]?(ye=Te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),T(()=>A(["children",ye])))):(Ne=Te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),T(()=>A(["children",Ne]))))}))))),T(()=>H(A(u("td",w(Y(T(()=>{let ye,Ne;const Te=te.LastName;return Te[0]==null?ft():Te[1]?(ye=Te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),T(()=>A(["children",ye])))):(Ne=Te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),T(()=>A(["children",Ne]))))}))))),T(()=>H(A(u("td",w(Y(T(()=>{let ye,Ne;const Te=te.Email;return Te[0]==null?ft():Te[1]?(ye=Te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),T(()=>A(["children",ye])))):(Ne=Te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),T(()=>A(["children",Ne]))))}))))),T(()=>H(A(u("td",w(Y(T(()=>{let ye,Ne;const Te=te.MobilePhone;return Te[0]==null?ft():Te[1]?(ye=Te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),T(()=>A(["children",ye])))):(Ne=Te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),T(()=>A(["children",Ne]))))}))))),T(()=>a!=null?A(u("td",w(Y(T(()=>{let ye,Ne;const Te=te.EmploymentBasis;return Te[0]==null?ft():Te[1]?(ye=Te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),T(()=>A(["children",ye])))):(Ne=Te[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),T(()=>A(["children",Ne]))))}))))):ft())))))))))))))),["children",y.Children.toArray(Array.from(Be))]))}))})))))),_.Page))),["children",y.Children.toArray(Array.from(De))])])))],["children",y.Children.toArray(Array.from(ne))])])))],["children",y.Children.toArray(Array.from(Ee))])]))),u("div",w(g([["className","h-[63px] w-full flex-col justify-start items-start inline-flex"],(ee=[u("div",w(g([["className","self-stretch py-2.5 justify-between items-center inline-flex"],(oe=[(q=g([u("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:"Showing "}),u("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:_.RowFrom}),u("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" to "}),u("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:_.RowTo}),u("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" of "}),u("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:_.ShowingOnlyRowsWithErrors?_.NumberOfInvalidRows:_.NumberOfRows}),u("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" results"})]),u("div",{children:y.Children.toArray(Array.from(q))})),u("div",w(g([["className","justify-start items-start gap-3 flex"],(Se=[u("button",w(Y(T(()=>{let te;return H((te=O,te==null?A(["disabled",!0]):A(["onClick",te])),T(()=>{let ce;return H(A((ce="px-[17px] py-[9px] disabled:opacity-50 bg-white hover:enabled:bg-gray-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",ce])),T(()=>{let Be;return A((Be=[u("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:"Previous"})],["children",y.Children.toArray(Array.from(Be))]))}))}))})))),u("button",w(Y(T(()=>{let te;return H((te=I,te==null?A(["disabled",!0]):A(["onClick",te])),T(()=>{let ce;return H(A((ce="px-[17px] py-[9px] disabled:opacity-50 bg-white hover:enabled:bg-gray-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",ce])),T(()=>{let Be;return A((Be=[u("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:"Next"})],["children",y.Children.toArray(Array.from(Be))]))}))}))}))))],["children",y.Children.toArray(Array.from(Se))])])))],["children",y.Children.toArray(Array.from(oe))])])))],["children",y.Children.toArray(Array.from(ee))])])))],["children",y.Children.toArray(Array.from(we))]))))],["children",y.Children.toArray(Array.from(me))])])))],["children",y.Children.toArray(Array.from(z))])])))),T(()=>{let te,ce,Be,ye,Ne,Te,It,lt,Xt,Je,Pt,Ht,rn,ji,Cn;return H(_.NumberOfValidRows>0?A(u("div",w(g([["className","pb-10 border-b border-gray-200 justify-start items-start gap-4 inline-flex w-full"],(te=[L6([]),u("div",w(g([["className","grow shrink basis-0 flex-col justify-center items-start gap-4 inline-flex"],(ce=[u("div",w(g([["className","flex-col justify-start items-start gap-2 flex"],(Be=[u("div",{className:"text-gray-700 text-base font-semibold leading-normal",children:`Invite ${_.NumberOfValidRows} users to workplace benefits`})],["children",y.Children.toArray(Array.from(Be))])]))),go("What is workplace benefits?",()=>{x(!0)}),u("div",w(le((ye=[u("div",w(g([["className","flex-col justify-start items-start gap-2 flex"],(Ne=[u("div",w(g([["key",Qe(new Nt(1,[]))],["className","relative flex items-start"],(Te=[u("div",w(g([["className","flex h-6 items-center py-2"],["onClick",gt=>{k(new Nt(1,[]))}],(It=[u("input",w(g([["id",Qe(new Nt(1,[]))],["name","InviteTiming"],["type","radio"],(lt="relative size-4 appearance-none rounded-full border border-gray-300 bg-white before:absolute before:inset-1 before:rounded-full before:bg-white checked:border-primary-600 checked:bg-primary-600 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 disabled:border-gray-300 disabled:bg-gray-100 disabled:before:bg-gray-400 forced-colors:appearance-auto forced-colors:before:hidden [&:not(:checked)]:before:hidden",["className",lt]),["checked",J(_.InviteTiming,new Nt(1,[]))],["onChange",gt=>{gt.target.checked,k(new Nt(1,[]))}]])))],["children",y.Children.toArray(Array.from(It))])]))),u("div",w(g([["className","ml-3 text-sm/6"],(Xt=[u("label",{for:Qe(new Nt(1,[])),className:"text-gray-700 text-sm font-medium leading-tight",children:"Import now, Invite later"}),u("p",{id:`${Qe(new Nt(1,[]))}-description`,className:"text-gray-500 text-sm font-normal leading-tight",children:"We’ll import your users now. You can invite them to workplace benefits at any time later."})],["children",y.Children.toArray(Array.from(Xt))])])))],["children",y.Children.toArray(Array.from(Te))])])))],["children",y.Children.toArray(Array.from(Ne))])]))),u("div",w(le((Je=[u("div",w(g([["key",Qe(new Nt(0,[]))],["className","relative flex items-start"],(Pt=[u("div",w(g([["className","flex h-6 items-center py-2"],["onClick",gt=>{k(new Nt(0,[]))}],(Ht=[u("input",w(g([["id",Qe(new Nt(0,[]))],["name","InviteTiming"],["type","radio"],(rn="relative size-4 appearance-none rounded-full border border-gray-300 bg-white before:absolute before:inset-1 before:rounded-full before:bg-white checked:border-primary-600 checked:bg-primary-600 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 disabled:border-gray-300 disabled:bg-gray-100 disabled:before:bg-gray-400 forced-colors:appearance-auto forced-colors:before:hidden [&:not(:checked)]:before:hidden",["className",rn]),["checked",J(_.InviteTiming,new Nt(0,[]))],["onChange",gt=>{gt.target.checked,k(new Nt(0,[]))}]])))],["children",y.Children.toArray(Array.from(Ht))])]))),u("div",w(g([["className","ml-3 text-sm/6"],(ji=[u("label",{for:Qe(new Nt(0,[])),className:"text-gray-700 text-sm font-medium leading-tight",children:"Import and invite now"}),u("p",w(g([["id",`${Qe(new Nt(0,[]))}-description`],["className","text-gray-500 text-sm font-normal leading-tight"],(Cn="We’ll import your users and send an email to help them set up workplace benefits and access the Flare app.",["children",Cn])])))],["children",y.Children.toArray(Array.from(ji))])])))],["children",y.Children.toArray(Array.from(Pt))])])))],["children",y.Children.toArray(Array.from(Je))]))))],["children",y.Children.toArray(Array.from(ye))]))))],["children",y.Children.toArray(Array.from(ce))])])))],["children",y.Children.toArray(Array.from(te))])])))):ft(),T(()=>{let gt,Wn,Bi,ju,Bu,Wu,Uu;return A(u("div",w(g([["className","justify-start items-end gap-2 inline-flex w-full pb-2"],(gt=[u("div",w(g([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(Wn=[u("div",{className:"grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"}),u("div",w(g([["className","justify-start items-center gap-2 flex"],(Bi=[u("button",w(g([(ju="px-[13px] py-[9px] bg-white hover:bg-gray-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",ju]),["onClick",wp=>{o()}],(Bu=[u("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",y.Children.toArray(Array.from(Bu))])]))),u("button",w(g([(Wu="pl-[13px] pr-[11px] py-[9px] disabled:opacity-50 bg-emerald-600 hover:enabled:bg-emerald-700 rounded-md shadow-sm justify-center items-center gap-2 flex overflow-hidden",["className",Wu]),["onClick",wp=>{S||$(!0)}],["disabled",_.NumberOfValidRows===0],(Uu=[u("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:`Import ${_.NumberOfValidRows} users`})],["children",y.Children.toArray(Array.from(Uu))])])))],["children",y.Children.toArray(Array.from(Bi))])])))],["children",y.Children.toArray(Array.from(Wn))])])))],["children",y.Children.toArray(Array.from(gt))])]))))}))}))}))})))),["children",y.Children.toArray(Array.from(F))])])))],["children",y.Children.toArray(Array.from(D))]))}else return A((L=[K6()],["children",y.Children.toArray(Array.from(L))]))}))))))],["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(t))])])))}class En extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UnsupportedFileType","TooLarge","NoData","MoreThan5000Rows","EmptyFieldNames","DuplicateFieldNames","InconsistentRowLengths","GenericParseError"]}}class as extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Parse","CancelParsing","Remove"]}}var ls={exports:{}};/* @license
48
+ `))}else{let p=d.props,m=p==null?void 0:p.className,h=typeof m=="function"?(..._)=>Al(m(..._),l.className):Al(m,l.className),b=h?{className:h}:{},v=Zm(d.props,Kn(qa(l,["ref"])));for(let _ in f)_ in v&&delete f[_];return Xl(d,Object.assign({},v,f,u,{ref:i(Hx(d),u.ref)},b))}return c(o,Object.assign({},qa(l,["ref"]),o!==qe&&u,o!==qe&&f),d)}function Lx(){let e=ie([]),t=De(n=>{for(let r of e.current)r!=null&&(typeof r=="function"?r(n):r.current=n)},[]);return(...n)=>{if(!n.every(r=>r==null))return e.current=n,t}}function Vx(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function Zm(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[i=>{var o;return(o=i==null?void 0:i.preventDefault)==null?void 0:o.call(i)}]);for(let r in n)Object.assign(t,{[r](i,...o){let s=n[r];for(let a of s){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;a(i,...o)}}});return t}function Km(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];for(let r in n)Object.assign(t,{[r](...i){let o=n[r];for(let s of o)s==null||s(...i)}});return t}function wt(e){var t;return Object.assign(Yl(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Kn(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function qa(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function Hx(e){return Q.version.split(".")[0]>="19"?e.props.ref:e.ref}function jx(e,t,n){let[r,i]=be(n),o=e!==void 0,s=ie(o),a=ie(!1),l=ie(!1);return o&&!s.current&&!a.current?(a.current=!0,s.current=o,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!o&&s.current&&!l.current&&(l.current=!0,s.current=o,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[o?e:r,de(u=>(o||i(u),t==null?void 0:t(u)))]}function Bx(e){let[t]=be(e);return t}function Xm(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))Qm(n,Jm(t,r),i);return n}function Jm(e,t){return e?e+"["+t+"]":t}function Qm(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())Qm(e,Jm(t,r.toString()),i);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):Xm(n,t,e)}function Ux(e){var t,n;let r=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(r){for(let i of r.elements)if(i!==e&&(i.tagName==="INPUT"&&i.type==="submit"||i.tagName==="BUTTON"&&i.type==="submit"||i.nodeName==="INPUT"&&i.type==="image")){i.click();return}(n=r.requestSubmit)==null||n.call(r)}}let Wx="span";var Ci=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Ci||{});function Gx(e,t){var n;let{features:r=1,...i}=e,o={ref:t,"aria-hidden":(r&2)===2?!0:(n=i["aria-hidden"])!=null?n:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return St()({ourProps:o,theirProps:i,slot:{},defaultTag:Wx,name:"Hidden"})}let bo=wt(Gx),zx=lt(null);function qx({children:e}){let t=Ve(zx);if(!t)return Q.createElement(Q.Fragment,null,e);let{target:n}=t;return n?Ys(Q.createElement(Q.Fragment,null,e),n):null}function Yx({data:e,form:t,disabled:n,onReset:r,overrides:i}){let[o,s]=be(null),a=hr();return Fe(()=>{if(r&&o)return a.addEventListener(o,"reset",r)},[o,t,r]),Q.createElement(qx,null,Q.createElement(Zx,{setForm:s,formId:t}),Xm(e).map(([l,u])=>Q.createElement(bo,{features:Ci.Hidden,...Kn({key:l,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:l,value:u,...i})})))}function Zx({setForm:e,formId:t}){return Fe(()=>{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:Q.createElement(bo,{features:Ci.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:n=>{if(!n)return;let r=n.closest("form");r&&e(r)}})}let Kx=lt(void 0);function eh(){return Ve(Kx)}function Xx(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&Jx(n)?!1:r}function Jx(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let th=Symbol();function Qx(e,t=!0){return Object.assign(e,{[th]:t})}function Mt(...e){let t=ie(e);Fe(()=>{t.current=e},[e]);let n=de(r=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(r):i.current=r)});return e.every(r=>r==null||(r==null?void 0:r[th]))?void 0:n}let pa=lt(null);pa.displayName="DescriptionContext";function nh(){let e=Ve(pa);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,nh),t}return e}function e3(){var e,t;return(t=(e=Ve(pa))==null?void 0:e.value)!=null?t:void 0}function t3(){let[e,t]=be([]);return[e.length>0?e.join(" "):void 0,me(()=>function(n){let r=de(o=>(t(s=>[...s,o]),()=>t(s=>{let a=s.slice(),l=a.indexOf(o);return l!==-1&&a.splice(l,1),a}))),i=me(()=>({register:r,slot:n.slot,name:n.name,props:n.props,value:n.value}),[r,n.slot,n.name,n.props,n.value]);return Q.createElement(pa.Provider,{value:i},n.children)},[t])]}let n3="p";function r3(e,t){let n=an(),r=Iu(),{id:i=`headlessui-description-${n}`,...o}=e,s=nh(),a=Mt(t);tt(()=>s.register(i),[i,s.register]);let l=r||!1,u=me(()=>({...s.slot,disabled:l}),[s.slot,l]),d={ref:a,...s.props,id:i};return St()({ourProps:d,theirProps:o,slot:u,defaultTag:n3,name:s.name||"Description"})}let i3=wt(r3),o3=Object.assign(i3,{});var yt=(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))(yt||{});let ga=lt(null);ga.displayName="LabelContext";function rh(){let e=Ve(ga);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,rh),t}return e}function ih(e){var t,n,r;let i=(n=(t=Ve(ga))==null?void 0:t.value)!=null?n:void 0;return((r=e==null?void 0:e.length)!=null?r:0)>0?[i,...e].filter(Boolean).join(" "):i}function s3({inherit:e=!1}={}){let t=ih(),[n,r]=be([]),i=e?[t,...n].filter(Boolean):n;return[i.length>0?i.join(" "):void 0,me(()=>function(o){let s=de(l=>(r(u=>[...u,l]),()=>r(u=>{let d=u.slice(),f=d.indexOf(l);return f!==-1&&d.splice(f,1),d}))),a=me(()=>({register:s,slot:o.slot,name:o.name,props:o.props,value:o.value}),[s,o.slot,o.name,o.props,o.value]);return Q.createElement(ga.Provider,{value:a},o.children)},[r])]}let a3="label";function l3(e,t){var n;let r=an(),i=rh(),o=eh(),s=Iu(),{id:a=`headlessui-label-${r}`,htmlFor:l=o??((n=i.props)==null?void 0:n.htmlFor),passive:u=!1,...d}=e,f=Mt(t);tt(()=>i.register(a),[a,i.register]);let p=de(v=>{let _=v.currentTarget;if(_ instanceof HTMLLabelElement&&v.preventDefault(),i.props&&"onClick"in i.props&&typeof i.props.onClick=="function"&&i.props.onClick(v),_ instanceof HTMLLabelElement){let x=document.getElementById(_.htmlFor);if(x){let E=x.getAttribute("disabled");if(E==="true"||E==="")return;let T=x.getAttribute("aria-disabled");if(T==="true"||T==="")return;(x instanceof HTMLInputElement&&(x.type==="radio"||x.type==="checkbox")||x.role==="radio"||x.role==="checkbox"||x.role==="switch")&&x.click(),x.focus({preventScroll:!0})}}}),m=s||!1,h=me(()=>({...i.slot,disabled:m}),[i.slot,m]),b={ref:f,...i.props,id:a,htmlFor:l,onClick:p};return u&&("onClick"in b&&(delete b.htmlFor,delete b.onClick),"onClick"in d&&delete d.onClick),St()({ourProps:b,theirProps:d,slot:h,defaultTag:l?a3:"div",name:i.name||"Label"})}let u3=wt(l3),c3=Object.assign(u3,{}),d3=lt(()=>{});function f3({value:e,children:t}){return Q.createElement(d3.Provider,{value:e},t)}function m3(e,t){return e!==null&&t!==null&&typeof e=="object"&&typeof t=="object"&&"id"in e&&"id"in t?e.id===t.id:e===t}function h3(e=m3){return De((t,n)=>{if(typeof e=="string"){let r=e;return(t==null?void 0:t[r])===(n==null?void 0:n[r])}return e(t,n)},[e])}function p3(e){if(e===null)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function g3(e,t=!1){let[n,r]=jr(()=>({}),{}),i=me(()=>p3(e),[e,n]);return tt(()=>{if(!e)return;let o=new ResizeObserver(r);return o.observe(e),()=>{o.disconnect()}},[e]),t?{width:`${i.width}px`,height:`${i.height}px`}:i}let w3=class extends Map{constructor(t){super(),this.factory=t}get(t){let n=super.get(t);return n===void 0&&(n=this.factory(t),this.set(t,n)),n}};function oh(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(i){return r.add(i),()=>r.delete(i)},dispatch(i,...o){let s=t[i].call(n,...o);s&&(n=s,r.forEach(a=>a()))}}}function sh(e){return qs(e.subscribe,e.getSnapshot,e.getSnapshot)}let y3=new w3(()=>oh(()=>[],{ADD(e){return this.includes(e)?this:[...this,e]},REMOVE(e){let t=this.indexOf(e);if(t===-1)return this;let n=this.slice();return n.splice(t,1),n}}));function Li(e,t){let n=y3.get(t),r=an(),i=sh(n);if(tt(()=>{if(e)return n.dispatch("ADD",r),()=>n.dispatch("REMOVE",r)},[n,e]),!e)return!1;let o=i.indexOf(r),s=i.length;return o===-1&&(o=s,s+=1),o===s-1}let kl=new Map,mo=new Map;function Rd(e){var t;let n=(t=mo.get(e))!=null?t:0;return mo.set(e,n+1),n!==0?()=>Od(e):(kl.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>Od(e))}function Od(e){var t;let n=(t=mo.get(e))!=null?t:1;if(n===1?mo.delete(e):mo.set(e,n-1),n!==1)return;let r=kl.get(e);r&&(r["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,kl.delete(e))}function ah(e,{allowed:t,disallowed:n}={}){let r=Li(e,"inert-others");tt(()=>{var i,o;if(!r)return;let s=zn();for(let l of(i=n==null?void 0:n())!=null?i:[])l&&s.add(Rd(l));let a=(o=t==null?void 0:t())!=null?o:[];for(let l of a){if(!l)continue;let u=Pi(l);if(!u)continue;let d=l.parentElement;for(;d&&d!==u.body;){for(let f of d.children)a.some(p=>f.contains(p))||s.add(Rd(f));d=d.parentElement}}return s.dispose},[r,t,n])}function lh(e,t,n){let r=pr(i=>{let o=i.getBoundingClientRect();o.x===0&&o.y===0&&o.width===0&&o.height===0&&n()});Fe(()=>{if(!e)return;let i=t===null?null:t instanceof HTMLElement?t:t.current;if(!i)return;let o=zn();if(typeof ResizeObserver<"u"){let s=new ResizeObserver(()=>r.current(i));s.observe(i),o.add(()=>s.disconnect())}if(typeof IntersectionObserver<"u"){let s=new IntersectionObserver(()=>r.current(i));s.observe(i),o.add(()=>s.disconnect())}return()=>o.dispose()},[t,r,e])}let Vs=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),v3=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var mn=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(mn||{}),Nl=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Nl||{}),b3=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(b3||{});function uh(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Vs)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}function _3(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(v3)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Du=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Du||{});function ch(e,t=0){var n;return e===((n=Pi(e))==null?void 0:n.body)?!1:jt(t,{0(){return e.matches(Vs)},1(){let r=e;for(;r!==null;){if(r.matches(Vs))return!0;r=r.parentElement}return!1}})}var x3=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(x3||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Ln(e){e==null||e.focus({preventScroll:!0})}let C3=["textarea","input"].join(",");function S3(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,C3))!=null?n:!1}function dh(e,t=n=>n){return e.slice().sort((n,r)=>{let i=t(n),o=t(r);if(i===null||o===null)return 0;let s=i.compareDocumentPosition(o);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function E3(e,t){return mi(uh(),t,{relativeTo:e})}function mi(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:i=[]}={}){let o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,s=Array.isArray(e)?n?dh(e):e:t&64?_3(e):uh(e);i.length>0&&s.length>1&&(s=s.filter(m=>!i.some(h=>h!=null&&"current"in h?(h==null?void 0:h.current)===m:h===m))),r=r??o.activeElement;let a=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,s.indexOf(r))-1;if(t&4)return Math.max(0,s.indexOf(r))+1;if(t&8)return s.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=t&32?{preventScroll:!0}:{},d=0,f=s.length,p;do{if(d>=f||d+f<=0)return 0;let m=l+d;if(t&16)m=(m+f)%f;else{if(m<0)return 3;if(m>=f)return 1}p=s[m],p==null||p.focus(u),d+=a}while(p!==o.activeElement);return t&6&&S3(p)&&p.select(),2}function fh(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function A3(){return/Android/gi.test(window.navigator.userAgent)}function k3(){return fh()||A3()}function no(e,t,n,r){let i=pr(n);Fe(()=>{if(!e)return;function o(s){i.current(s)}return document.addEventListener(t,o,r),()=>document.removeEventListener(t,o,r)},[e,t,r])}function mh(e,t,n,r){let i=pr(n);Fe(()=>{if(!e)return;function o(s){i.current(s)}return window.addEventListener(t,o,r),()=>window.removeEventListener(t,o,r)},[e,t,r])}const Fd=30;function hh(e,t,n){let r=Li(e,"outside-click"),i=pr(n),o=De(function(l,u){if(l.defaultPrevented)return;let d=u(l);if(d===null||!d.getRootNode().contains(d)||!d.isConnected)return;let f=function p(m){return typeof m=="function"?p(m()):Array.isArray(m)||m instanceof Set?m:[m]}(t);for(let p of f)if(p!==null&&(p.contains(d)||l.composed&&l.composedPath().includes(p)))return;return!ch(d,Du.Loose)&&d.tabIndex!==-1&&l.preventDefault(),i.current(l,d)},[i,t]),s=ie(null);no(r,"pointerdown",l=>{var u,d;s.current=((d=(u=l.composedPath)==null?void 0:u.call(l))==null?void 0:d[0])||l.target},!0),no(r,"mousedown",l=>{var u,d;s.current=((d=(u=l.composedPath)==null?void 0:u.call(l))==null?void 0:d[0])||l.target},!0),no(r,"click",l=>{k3()||s.current&&(o(l,()=>s.current),s.current=null)},!0);let a=ie({x:0,y:0});no(r,"touchstart",l=>{a.current.x=l.touches[0].clientX,a.current.y=l.touches[0].clientY},!0),no(r,"touchend",l=>{let u={x:l.changedTouches[0].clientX,y:l.changedTouches[0].clientY};if(!(Math.abs(u.x-a.current.x)>=Fd||Math.abs(u.y-a.current.y)>=Fd))return o(l,()=>l.target instanceof HTMLElement?l.target:null)},!0),mh(r,"blur",l=>o(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Vi(...e){return me(()=>Pi(...e),[...e])}function ph(e,t,n,r){let i=pr(n);Fe(()=>{e=e??window;function o(s){i.current(s)}return e.addEventListener(t,o,r),()=>e.removeEventListener(t,o,r)},[e,t,r])}function N3(e,t){return me(()=>{var n;if(e.type)return e.type;let r=(n=e.as)!=null?n:"button";if(typeof r=="string"&&r.toLowerCase()==="button"||(t==null?void 0:t.tagName)==="BUTTON"&&!t.hasAttribute("type"))return"button"},[e.type,e.as,t])}function T3(){let e;return{before({doc:t}){var n;let r=t.documentElement,i=(n=t.defaultView)!=null?n:window;e=Math.max(0,i.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,i=Math.max(0,r.clientWidth-r.offsetWidth),o=Math.max(0,e-i);n.style(r,"paddingRight",`${o}px`)}}}function $3(){return fh()?{before({doc:e,d:t,meta:n}){function r(i){return n.containers.flatMap(o=>o()).some(o=>o.contains(i))}t.microTask(()=>{var i;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let a=zn();a.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>a.dispose()))}let o=(i=window.scrollY)!=null?i:window.pageYOffset,s=null;t.addEventListener(e,"click",a=>{if(a.target instanceof HTMLElement)try{let l=a.target.closest("a");if(!l)return;let{hash:u}=new URL(l.href),d=e.querySelector(u);d&&!r(d)&&(s=d)}catch{}},!0),t.addEventListener(e,"touchstart",a=>{if(a.target instanceof HTMLElement)if(r(a.target)){let l=a.target;for(;l.parentElement&&r(l.parentElement);)l=l.parentElement;t.style(l,"overscrollBehavior","contain")}else t.style(a.target,"touchAction","none")}),t.addEventListener(e,"touchmove",a=>{if(a.target instanceof HTMLElement){if(a.target.tagName==="INPUT")return;if(r(a.target)){let l=a.target;for(;l.parentElement&&l.dataset.headlessuiPortal!==""&&!(l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth);)l=l.parentElement;l.dataset.headlessuiPortal===""&&a.preventDefault()}else a.preventDefault()}},{passive:!1}),t.add(()=>{var a;let l=(a=window.scrollY)!=null?a:window.pageYOffset;o!==l&&window.scrollTo(0,o),s&&s.isConnected&&(s.scrollIntoView({block:"nearest"}),s=null)})})}}:{}}function M3(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function I3(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Nr=oh(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:zn(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:I3(n)},i=[$3(),T3(),M3()];i.forEach(({before:o})=>o==null?void 0:o(r)),i.forEach(({after:o})=>o==null?void 0:o(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Nr.subscribe(()=>{let e=Nr.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",i=n.count!==0;(i&&!r||!i&&r)&&Nr.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Nr.dispatch("TEARDOWN",n)}});function D3(e,t,n=()=>({containers:[]})){let r=sh(Nr),i=t?r.get(t):void 0,o=i?i.count>0:!1;return tt(()=>{if(!(!t||!e))return Nr.dispatch("PUSH",t,n),()=>Nr.dispatch("POP",t,n)},[e,t]),o}function gh(e,t,n=()=>[document.body]){let r=Li(e,"scroll-lock");D3(r,t,i=>{var o;return{containers:[...(o=i.containers)!=null?o:[],n]}})}function Pd(e){return[e.screenX,e.screenY]}function R3(){let e=ie([-1,-1]);return{wasMoved(t){let n=Pd(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=Pd(t)}}}function O3(e=0){let[t,n]=be(e),r=De(l=>n(l),[t]),i=De(l=>n(u=>u|l),[t]),o=De(l=>(t&l)===l,[t]),s=De(l=>n(u=>u&~l),[n]),a=De(l=>n(u=>u^l),[n]);return{flags:t,setFlag:r,addFlag:i,hasFlag:o,removeFlag:s,toggleFlag:a}}var F3={},Ld,Vd;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((Ld=process==null?void 0:F3)==null?void 0:Ld.NODE_ENV)==="test"&&typeof((Vd=Element==null?void 0:Element.prototype)==null?void 0:Vd.getAnimations)>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
49
+ `)),[]});var P3=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(P3||{});function wh(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function yh(e,t,n,r){let[i,o]=be(n),{hasFlag:s,addFlag:a,removeFlag:l}=O3(e&&i?3:0),u=ie(!1),d=ie(!1),f=hr();return tt(()=>{var p;if(e){if(n&&o(!0),!t){n&&a(3);return}return(p=r==null?void 0:r.start)==null||p.call(r,n),L3(t,{inFlight:u,prepare(){d.current?d.current=!1:d.current=u.current,u.current=!0,!d.current&&(n?(a(3),l(4)):(a(4),l(2)))},run(){d.current?n?(l(3),a(4)):(l(4),a(3)):n?l(1):a(1)},done(){var m;d.current&&typeof t.getAnimations=="function"&&t.getAnimations().length>0||(u.current=!1,l(7),n||o(!1),(m=r==null?void 0:r.end)==null||m.call(r,n))}})}},[e,n,t,f]),e?[i,{closed:s(1),enter:s(2),leave:s(4),transition:s(2)||s(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function L3(e,{prepare:t,run:n,done:r,inFlight:i}){let o=zn();return H3(e,{prepare:t,inFlight:i}),o.nextFrame(()=>{n(),o.requestAnimationFrame(()=>{o.add(V3(e,r))})}),o.dispose}function V3(e,t){var n,r;let i=zn();if(!e)return i.dispose;let o=!1;i.add(()=>{o=!0});let s=(r=(n=e.getAnimations)==null?void 0:n.call(e).filter(a=>a instanceof CSSTransition))!=null?r:[];return s.length===0?(t(),i.dispose):(Promise.allSettled(s.map(a=>a.finished)).then(()=>{o||t()}),i.dispose)}function H3(e,{inFlight:t,prepare:n}){if(t!=null&&t.current){n();return}let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}function Ru(e,t){let n=ie([]),r=de(e);Fe(()=>{let i=[...n.current];for(let[o,s]of t.entries())if(n.current[o]!==s){let a=r(t,i);return n.current=t,a}},[r,...t])}function wa(){return typeof window<"u"}function Hi(e){return vh(e)?(e.nodeName||"").toLowerCase():"#document"}function Qt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function An(e){var t;return(t=(vh(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function vh(e){return wa()?e instanceof Node||e instanceof Qt(e).Node:!1}function It(e){return wa()?e instanceof Element||e instanceof Qt(e).Element:!1}function xn(e){return wa()?e instanceof HTMLElement||e instanceof Qt(e).HTMLElement:!1}function Hd(e){return!wa()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Qt(e).ShadowRoot}function Go(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=wn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function j3(e){return["table","td","th"].includes(Hi(e))}function ya(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Ou(e){const t=Fu(),n=It(e)?wn(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function B3(e){let t=ur(e);for(;xn(t)&&!Si(t);){if(Ou(t))return t;if(ya(t))return null;t=ur(t)}return null}function Fu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Si(e){return["html","body","#document"].includes(Hi(e))}function wn(e){return Qt(e).getComputedStyle(e)}function va(e){return It(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ur(e){if(Hi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Hd(e)&&e.host||An(e);return Hd(t)?t.host:t}function bh(e){const t=ur(e);return Si(t)?e.ownerDocument?e.ownerDocument.body:e.body:xn(t)&&Go(t)?t:bh(t)}function _o(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=bh(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=Qt(i);if(o){const a=Tl(s);return t.concat(s,s.visualViewport||[],Go(i)?i:[],a&&n?_o(a):[])}return t.concat(i,_o(i,[],n))}function Tl(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function U3(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}const Pr=Math.min,Tt=Math.max,xo=Math.round,is=Math.floor,bn=e=>({x:e,y:e}),W3={left:"right",right:"left",bottom:"top",top:"bottom"},G3={start:"end",end:"start"};function jd(e,t,n){return Tt(e,Pr(t,n))}function ji(e,t){return typeof e=="function"?e(t):e}function cr(e){return e.split("-")[0]}function zo(e){return e.split("-")[1]}function _h(e){return e==="x"?"y":"x"}function xh(e){return e==="y"?"height":"width"}function Lr(e){return["top","bottom"].includes(cr(e))?"y":"x"}function Ch(e){return _h(Lr(e))}function z3(e,t,n){n===void 0&&(n=!1);const r=zo(e),i=Ch(e),o=xh(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=Hs(s)),[s,Hs(s)]}function q3(e){const t=Hs(e);return[$l(e),t,$l(t)]}function $l(e){return e.replace(/start|end/g,t=>G3[t])}function Y3(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:s;default:return[]}}function Z3(e,t,n,r){const i=zo(e);let o=Y3(cr(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map($l)))),o}function Hs(e){return e.replace(/left|right|bottom|top/g,t=>W3[t])}function K3(e){return{top:0,right:0,bottom:0,left:0,...e}}function X3(e){return typeof e!="number"?K3(e):{top:e,right:e,bottom:e,left:e}}function js(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Bd(e,t,n){let{reference:r,floating:i}=e;const o=Lr(t),s=Ch(t),a=xh(s),l=cr(t),u=o==="y",d=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,p=r[a]/2-i[a]/2;let m;switch(l){case"top":m={x:d,y:r.y-i.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-i.width,y:f};break;default:m={x:r.x,y:r.y}}switch(zo(t)){case"start":m[s]-=p*(n&&u?-1:1);break;case"end":m[s]+=p*(n&&u?-1:1);break}return m}const J3=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:f}=Bd(u,r,l),p=r,m={},h=0;for(let b=0;b<a.length;b++){const{name:v,fn:_}=a[b],{x,y:E,data:T,reset:I}=await _({x:d,y:f,initialPlacement:r,placement:p,strategy:i,middlewareData:m,rects:u,platform:s,elements:{reference:e,floating:t}});d=x??d,f=E??f,m={...m,[v]:{...m[v],...T}},I&&h<=50&&(h++,typeof I=="object"&&(I.placement&&(p=I.placement),I.rects&&(u=I.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):I.rects),{x:d,y:f}=Bd(u,p,l)),b=-1)}return{x:d,y:f,placement:p,strategy:i,middlewareData:m}};async function ba(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=ji(t,e),h=X3(m),v=a[p?f==="floating"?"reference":"floating":f],_=js(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(v)))==null||n?v:v.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),x=f==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,E=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),T=await(o.isElement==null?void 0:o.isElement(E))?await(o.getScale==null?void 0:o.getScale(E))||{x:1,y:1}:{x:1,y:1},I=js(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:E,strategy:l}):x);return{top:(_.top-I.top+h.top)/T.y,bottom:(I.bottom-_.bottom+h.bottom)/T.y,left:(_.left-I.left+h.left)/T.x,right:(I.right-_.right+h.right)/T.x}}const Q3=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:s,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:b=!0,...v}=ji(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const _=cr(i),x=Lr(a),E=cr(a)===a,T=await(l.isRTL==null?void 0:l.isRTL(u.floating)),I=p||(E||!b?[Hs(a)]:q3(a)),O=h!=="none";!p&&O&&I.push(...Z3(a,b,h,T));const P=[a,...I],S=await ba(t,v),C=[];let A=((r=o.flip)==null?void 0:r.overflows)||[];if(d&&C.push(S[_]),f){const j=z3(i,s,T);C.push(S[j[0]],S[j[1]])}if(A=[...A,{placement:i,overflows:C}],!C.every(j=>j<=0)){var N,D;const j=(((N=o.flip)==null?void 0:N.index)||0)+1,se=P[j];if(se)return{data:{index:j,overflows:A},reset:{placement:se}};let X=(D=A.filter(J=>J.overflows[0]<=0).sort((J,L)=>J.overflows[1]-L.overflows[1])[0])==null?void 0:D.placement;if(!X)switch(m){case"bestFit":{var F;const J=(F=A.filter(L=>{if(O){const G=Lr(L.placement);return G===x||G==="y"}return!0}).map(L=>[L.placement,L.overflows.filter(G=>G>0).reduce((G,B)=>G+B,0)]).sort((L,G)=>L[1]-G[1])[0])==null?void 0:F[0];J&&(X=J);break}case"initialPlacement":X=a;break}if(i!==X)return{reset:{placement:X}}}return{}}}};async function e5(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=cr(n),a=zo(n),l=Lr(n)==="y",u=["left","top"].includes(s)?-1:1,d=o&&l?-1:1,f=ji(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:h}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof h=="number"&&(m=a==="end"?h*-1:h),l?{x:m*d,y:p*u}:{x:p*u,y:m*d}}const t5=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:a}=t,l=await e5(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},n5=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:v=>{let{x:_,y:x}=v;return{x:_,y:x}}},...l}=ji(e,t),u={x:n,y:r},d=await ba(t,l),f=Lr(cr(i)),p=_h(f);let m=u[p],h=u[f];if(o){const v=p==="y"?"top":"left",_=p==="y"?"bottom":"right",x=m+d[v],E=m-d[_];m=jd(x,m,E)}if(s){const v=f==="y"?"top":"left",_=f==="y"?"bottom":"right",x=h+d[v],E=h-d[_];h=jd(x,h,E)}const b=a.fn({...t,[p]:m,[f]:h});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[p]:o,[f]:s}}}}}},r5=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:s,elements:a}=t,{apply:l=()=>{},...u}=ji(e,t),d=await ba(t,u),f=cr(i),p=zo(i),m=Lr(i)==="y",{width:h,height:b}=o.floating;let v,_;f==="top"||f==="bottom"?(v=f,_=p===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(_=f,v=p==="end"?"top":"bottom");const x=b-d.top-d.bottom,E=h-d.left-d.right,T=Pr(b-d[v],x),I=Pr(h-d[_],E),O=!t.middlewareData.shift;let P=T,S=I;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(S=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(P=x),O&&!p){const A=Tt(d.left,0),N=Tt(d.right,0),D=Tt(d.top,0),F=Tt(d.bottom,0);m?S=h-2*(A!==0||N!==0?A+N:Tt(d.left,d.right)):P=b-2*(D!==0||F!==0?D+F:Tt(d.top,d.bottom))}await l({...t,availableWidth:S,availableHeight:P});const C=await s.getDimensions(a.floating);return h!==C.width||b!==C.height?{reset:{rects:!0}}:{}}}};function Sh(e){const t=wn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=xn(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=xo(n)!==o||xo(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function Pu(e){return It(e)?e:e.contextElement}function hi(e){const t=Pu(e);if(!xn(t))return bn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Sh(t);let s=(o?xo(n.width):n.width)/r,a=(o?xo(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const i5=bn(0);function Eh(e){const t=Qt(e);return!Fu()||!t.visualViewport?i5:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function o5(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Qt(e)?!1:t}function Vr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Pu(e);let s=bn(1);t&&(r?It(r)&&(s=hi(r)):s=hi(e));const a=o5(o,n,r)?Eh(o):bn(0);let l=(i.left+a.x)/s.x,u=(i.top+a.y)/s.y,d=i.width/s.x,f=i.height/s.y;if(o){const p=Qt(o),m=r&&It(r)?Qt(r):r;let h=p,b=Tl(h);for(;b&&r&&m!==h;){const v=hi(b),_=b.getBoundingClientRect(),x=wn(b),E=_.left+(b.clientLeft+parseFloat(x.paddingLeft))*v.x,T=_.top+(b.clientTop+parseFloat(x.paddingTop))*v.y;l*=v.x,u*=v.y,d*=v.x,f*=v.y,l+=E,u+=T,h=Qt(b),b=Tl(h)}}return js({width:d,height:f,x:l,y:u})}function Lu(e,t){const n=va(e).scrollLeft;return t?t.left+n:Vr(An(e)).left+n}function Ah(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:Lu(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function s5(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=An(r),a=t?ya(t.floating):!1;if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},u=bn(1);const d=bn(0),f=xn(r);if((f||!f&&!o)&&((Hi(r)!=="body"||Go(s))&&(l=va(r)),xn(r))){const m=Vr(r);u=hi(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}const p=s&&!f&&!o?Ah(s,l,!0):bn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+p.x,y:n.y*u.y-l.scrollTop*u.y+d.y+p.y}}function a5(e){return Array.from(e.getClientRects())}function l5(e){const t=An(e),n=va(e),r=e.ownerDocument.body,i=Tt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Tt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Lu(e);const a=-n.scrollTop;return wn(r).direction==="rtl"&&(s+=Tt(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}function u5(e,t){const n=Qt(e),r=An(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;const u=Fu();(!u||u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a,y:l}}function c5(e,t){const n=Vr(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=xn(e)?hi(e):bn(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=i*o.x,u=r*o.y;return{width:s,height:a,x:l,y:u}}function Ud(e,t,n){let r;if(t==="viewport")r=u5(e,n);else if(t==="document")r=l5(An(e));else if(It(t))r=c5(t,n);else{const i=Eh(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return js(r)}function kh(e,t){const n=ur(e);return n===t||!It(n)||Si(n)?!1:wn(n).position==="fixed"||kh(n,t)}function d5(e,t){const n=t.get(e);if(n)return n;let r=_o(e,[],!1).filter(a=>It(a)&&Hi(a)!=="body"),i=null;const o=wn(e).position==="fixed";let s=o?ur(e):e;for(;It(s)&&!Si(s);){const a=wn(s),l=Ou(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Go(s)&&!l&&kh(e,s))?r=r.filter(d=>d!==s):i=a,s=ur(s)}return t.set(e,r),r}function f5(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?ya(t)?[]:d5(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((u,d)=>{const f=Ud(t,d,i);return u.top=Tt(f.top,u.top),u.right=Pr(f.right,u.right),u.bottom=Pr(f.bottom,u.bottom),u.left=Tt(f.left,u.left),u},Ud(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function m5(e){const{width:t,height:n}=Sh(e);return{width:t,height:n}}function h5(e,t,n){const r=xn(t),i=An(t),o=n==="fixed",s=Vr(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=bn(0);if(r||!r&&!o)if((Hi(t)!=="body"||Go(i))&&(a=va(t)),r){const p=Vr(t,!0,o,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else i&&(l.x=Lu(i));const u=i&&!r&&!o?Ah(i,a):bn(0),d=s.left+a.scrollLeft-l.x-u.x,f=s.top+a.scrollTop-l.y-u.y;return{x:d,y:f,width:s.width,height:s.height}}function Ya(e){return wn(e).position==="static"}function Wd(e,t){if(!xn(e)||wn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return An(e)===n&&(n=n.ownerDocument.body),n}function Nh(e,t){const n=Qt(e);if(ya(e))return n;if(!xn(e)){let i=ur(e);for(;i&&!Si(i);){if(It(i)&&!Ya(i))return i;i=ur(i)}return n}let r=Wd(e,t);for(;r&&j3(r)&&Ya(r);)r=Wd(r,t);return r&&Si(r)&&Ya(r)&&!Ou(r)?n:r||B3(e)||n}const p5=async function(e){const t=this.getOffsetParent||Nh,n=this.getDimensions,r=await n(e.floating);return{reference:h5(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function g5(e){return wn(e).direction==="rtl"}const w5={convertOffsetParentRelativeRectToViewportRelativeRect:s5,getDocumentElement:An,getClippingRect:f5,getOffsetParent:Nh,getElementRects:p5,getClientRects:a5,getDimensions:m5,getScale:hi,isElement:It,isRTL:g5};function Th(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function y5(e,t){let n=null,r;const i=An(e);function o(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const u=e.getBoundingClientRect(),{left:d,top:f,width:p,height:m}=u;if(a||t(),!p||!m)return;const h=is(f),b=is(i.clientWidth-(d+p)),v=is(i.clientHeight-(f+m)),_=is(d),E={rootMargin:-h+"px "+-b+"px "+-v+"px "+-_+"px",threshold:Tt(0,Pr(1,l))||1};let T=!0;function I(O){const P=O[0].intersectionRatio;if(P!==l){if(!T)return s();P?s(!1,P):r=setTimeout(()=>{s(!1,1e-7)},1e3)}P===1&&!Th(u,e.getBoundingClientRect())&&s(),T=!1}try{n=new IntersectionObserver(I,{...E,root:i.ownerDocument})}catch{n=new IntersectionObserver(I,E)}n.observe(e)}return s(!0),o}function v5(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Pu(e),d=i||o?[...u?_o(u):[],..._o(t)]:[];d.forEach(_=>{i&&_.addEventListener("scroll",n,{passive:!0}),o&&_.addEventListener("resize",n)});const f=u&&a?y5(u,n):null;let p=-1,m=null;s&&(m=new ResizeObserver(_=>{let[x]=_;x&&x.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var E;(E=m)==null||E.observe(t)})),n()}),u&&!l&&m.observe(u),m.observe(t));let h,b=l?Vr(e):null;l&&v();function v(){const _=Vr(e);b&&!Th(b,_)&&n(),b=_,h=requestAnimationFrame(v)}return n(),()=>{var _;d.forEach(x=>{i&&x.removeEventListener("scroll",n),o&&x.removeEventListener("resize",n)}),f==null||f(),(_=m)==null||_.disconnect(),m=null,l&&cancelAnimationFrame(h)}}const Za=ba,b5=t5,_5=n5,x5=Q3,C5=r5,S5=(e,t,n)=>{const r=new Map,i={platform:w5,...n},o={...i.platform,_c:r};return J3(e,t,{...i,platform:o})};var gs=typeof document<"u"?Cn:Fe;function Bs(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Bs(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!Bs(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function $h(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Gd(e,t){const n=$h(e);return Math.round(t*n)/n}function Ka(e){const t=ie(e);return gs(()=>{t.current=e}),t}function E5(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[d,f]=be({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=be(r);Bs(p,r)||m(r);const[h,b]=be(null),[v,_]=be(null),x=De(L=>{L!==O.current&&(O.current=L,b(L))},[]),E=De(L=>{L!==P.current&&(P.current=L,_(L))},[]),T=o||h,I=s||v,O=ie(null),P=ie(null),S=ie(d),C=l!=null,A=Ka(l),N=Ka(i),D=Ka(u),F=De(()=>{if(!O.current||!P.current)return;const L={placement:t,strategy:n,middleware:p};N.current&&(L.platform=N.current),S5(O.current,P.current,L).then(G=>{const B={...G,isPositioned:D.current!==!1};j.current&&!Bs(S.current,B)&&(S.current=B,Jt(()=>{f(B)}))})},[p,t,n,N,D]);gs(()=>{u===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,f(L=>({...L,isPositioned:!1})))},[u]);const j=ie(!1);gs(()=>(j.current=!0,()=>{j.current=!1}),[]),gs(()=>{if(T&&(O.current=T),I&&(P.current=I),T&&I){if(A.current)return A.current(T,I,F);F()}},[T,I,F,A,C]);const se=me(()=>({reference:O,floating:P,setReference:x,setFloating:E}),[x,E]),X=me(()=>({reference:T,floating:I}),[T,I]),J=me(()=>{const L={position:n,left:0,top:0};if(!X.floating)return L;const G=Gd(X.floating,d.x),B=Gd(X.floating,d.y);return a?{...L,transform:"translate("+G+"px, "+B+"px)",...$h(X.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:G,top:B}},[n,a,X.floating,d.x,d.y]);return me(()=>({...d,update:F,refs:se,elements:X,floatingStyles:J}),[d,F,se,X,J])}const Mh=(e,t)=>({...b5(e),options:[e,t]}),A5=(e,t)=>({..._5(e),options:[e,t]}),k5=(e,t)=>({...x5(e),options:[e,t]}),N5=(e,t)=>({...C5(e),options:[e,t]}),Ih={..._s},T5=Ih.useInsertionEffect,$5=T5||(e=>e());function Dh(e){const t=ie(()=>{});return $5(()=>{t.current=e}),De(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}var Ml=typeof document<"u"?Cn:Fe;let zd=!1,M5=0;const qd=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+M5++;function I5(){const[e,t]=be(()=>zd?qd():void 0);return Ml(()=>{e==null&&t(qd())},[]),Fe(()=>{zd=!0},[]),e}const D5=Ih.useId,R5=D5||I5;function O5(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const F5=lt(null),P5=lt(null),L5=()=>{var e;return((e=Ve(F5))==null?void 0:e.id)||null},V5=()=>Ve(P5),H5="data-floating-ui-focusable";function j5(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=R5(),o=ie({}),[s]=be(()=>O5()),a=L5()!=null,[l,u]=be(r.reference),d=Dh((m,h,b)=>{o.current.openEvent=m?h:void 0,s.emit("openchange",{open:m,event:h,reason:b,nested:a}),n==null||n(m,h,b)}),f=me(()=>({setPositionReference:u}),[]),p=me(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return me(()=>({dataRef:o,open:t,onOpenChange:d,elements:p,events:s,floatingId:i,refs:f}),[t,d,p,s,i,f])}function B5(e){e===void 0&&(e={});const{nodeId:t}=e,n=j5({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,s]=be(null),[a,l]=be(null),d=(i==null?void 0:i.domReference)||o,f=ie(null),p=V5();Ml(()=>{d&&(f.current=d)},[d]);const m=E5({...e,elements:{...i,...a&&{reference:a}}}),h=De(E=>{const T=It(E)?{getBoundingClientRect:()=>E.getBoundingClientRect(),contextElement:E}:E;l(T),m.refs.setReference(T)},[m.refs]),b=De(E=>{(It(E)||E===null)&&(f.current=E,s(E)),(It(m.refs.reference.current)||m.refs.reference.current===null||E!==null&&!It(E))&&m.refs.setReference(E)},[m.refs]),v=me(()=>({...m.refs,setReference:b,setPositionReference:h,domReference:f}),[m.refs,b,h]),_=me(()=>({...m.elements,domReference:d}),[m.elements,d]),x=me(()=>({...m,...r,refs:v,elements:_,nodeId:t}),[m,v,_,t,r]);return Ml(()=>{r.dataRef.current.floatingContext=x;const E=p==null?void 0:p.nodesRef.current.find(T=>T.id===t);E&&(E.context=x)}),me(()=>({...m,context:x,refs:v,elements:_}),[m,v,_,x])}const Yd="active",Zd="selected";function Xa(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[Yd]:s,[Zd]:a,...l}=e;o=l}return{...n==="floating"&&{tabIndex:-1,[H5]:""},...o,...t.map(s=>{const a=s?s[n]:null;return typeof a=="function"?e?a(e):null:a}).concat(e).reduce((s,a)=>(a&&Object.entries(a).forEach(l=>{let[u,d]=l;if(!(i&&[Yd,Zd].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof d=="function"){var f;(f=r.get(u))==null||f.push(d),s[u]=function(){for(var p,m=arguments.length,h=new Array(m),b=0;b<m;b++)h[b]=arguments[b];return(p=r.get(u))==null?void 0:p.map(v=>v(...h)).find(v=>v!==void 0)}}}else s[u]=d}),s),{})}}function U5(e){e===void 0&&(e=[]);const t=e.map(a=>a==null?void 0:a.reference),n=e.map(a=>a==null?void 0:a.floating),r=e.map(a=>a==null?void 0:a.item),i=De(a=>Xa(a,e,"reference"),t),o=De(a=>Xa(a,e,"floating"),n),s=De(a=>Xa(a,e,"item"),r);return me(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:s}),[i,o,s])}function Kd(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const W5=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:r,onFallbackChange:i,offset:o=0,index:s=0,minItemsVisible:a=4,referenceOverflowThreshold:l=0,scrollRef:u,...d}=ji(e,t),{rects:f,elements:{floating:p}}=t,m=n.current[s],h=(u==null?void 0:u.current)||p,b=p.clientTop||h.clientTop,v=p.clientTop!==0,_=h.clientTop!==0,x=p===h;if(!m)return{};const E={...t,...await Mh(-m.offsetTop-p.clientTop-f.reference.height/2-m.offsetHeight/2-o).fn(t)},T=await Za(Kd(E,h.scrollHeight+b+p.clientTop),d),I=await Za(E,{...d,elementContext:"reference"}),O=Tt(0,T.top),P=E.y+O,A=(h.scrollHeight>h.clientHeight?N=>N:xo)(Tt(0,h.scrollHeight+(v&&x||_?b*2:0)-O-Tt(0,T.bottom)));if(h.style.maxHeight=A+"px",h.scrollTop=O,i){const N=h.offsetHeight<m.offsetHeight*Pr(a,n.current.length)-1||I.top>=-l||I.bottom>=-l;Jt(()=>i(N))}return r&&(r.current=await Za(Kd({...E,y:P},h.offsetHeight+b+p.clientTop),d)),{y:P}}});function G5(e,t){const{open:n,elements:r}=e,{enabled:i=!0,overflowRef:o,scrollRef:s,onChange:a}=t,l=Dh(a),u=ie(!1),d=ie(null),f=ie(null);Fe(()=>{if(!i)return;function m(b){if(b.ctrlKey||!h||o.current==null)return;const v=b.deltaY,_=o.current.top>=-.5,x=o.current.bottom>=-.5,E=h.scrollHeight-h.clientHeight,T=v<0?-1:1,I=v<0?"max":"min";h.scrollHeight<=h.clientHeight||(!_&&v>0||!x&&v<0?(b.preventDefault(),Jt(()=>{l(O=>O+Math[I](v,E*T))})):/firefox/i.test(U3())&&(h.scrollTop+=v))}const h=(s==null?void 0:s.current)||r.floating;if(n&&h)return h.addEventListener("wheel",m),requestAnimationFrame(()=>{d.current=h.scrollTop,o.current!=null&&(f.current={...o.current})}),()=>{d.current=null,f.current=null,h.removeEventListener("wheel",m)}},[i,n,r.floating,o,s,l]);const p=me(()=>({onKeyDown(){u.current=!0},onWheel(){u.current=!1},onPointerMove(){u.current=!1},onScroll(){const m=(s==null?void 0:s.current)||r.floating;if(!(!o.current||!m||!u.current)){if(d.current!==null){const h=m.scrollTop-d.current;(o.current.bottom<-.5&&h<-1||o.current.top<-.5&&h>1)&&Jt(()=>l(b=>b+h))}requestAnimationFrame(()=>{d.current=m.scrollTop})}}}),[r.floating,l,o,s]);return me(()=>i?{floating:p}:{},[i,p])}let Bi=lt({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});Bi.displayName="FloatingContext";let Vu=lt(null);Vu.displayName="PlacementContext";function z5(e){return me(()=>e?typeof e=="string"?{to:e}:e:null,[e])}function q5(){return Ve(Bi).setReference}function Y5(){return Ve(Bi).getReferenceProps}function Z5(){let{getFloatingProps:e,slot:t}=Ve(Bi);return De((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}function K5(e=null){e===!1&&(e=null),typeof e=="string"&&(e={to:e});let t=Ve(Vu),n=me(()=>e,[JSON.stringify(e,(i,o)=>{var s;return(s=o==null?void 0:o.outerHTML)!=null?s:o})]);tt(()=>{t==null||t(n??null)},[t,n]);let r=Ve(Bi);return me(()=>[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}let Xd=4;function X5({children:e,enabled:t=!0}){let[n,r]=be(null),[i,o]=be(0),s=ie(null),[a,l]=be(null);J5(a);let u=t&&n!==null&&a!==null,{to:d="bottom",gap:f=0,offset:p=0,padding:m=0,inner:h}=Q5(n,a),[b,v="center"]=d.split(" ");tt(()=>{u&&o(0)},[u]);let{refs:_,floatingStyles:x,context:E}=B5({open:u,placement:b==="selection"?v==="center"?"bottom":`bottom-${v}`:v==="center"?`${b}`:`${b}-${v}`,strategy:"absolute",transform:!1,middleware:[Mh({mainAxis:b==="selection"?0:f,crossAxis:p}),A5({padding:m}),b!=="selection"&&k5({padding:m}),b==="selection"&&h?W5({...h,padding:m,overflowRef:s,offset:i,minItemsVisible:Xd,referenceOverflowThreshold:m,onFallbackChange(N){var D,F;if(!N)return;let j=E.elements.floating;if(!j)return;let se=parseFloat(getComputedStyle(j).scrollPaddingBottom)||0,X=Math.min(Xd,j.childElementCount),J=0,L=0;for(let G of(F=(D=E.elements.floating)==null?void 0:D.childNodes)!=null?F:[])if(G instanceof HTMLElement){let B=G.offsetTop,ce=B+G.clientHeight+se,q=j.scrollTop,R=q+j.clientHeight;if(B>=q&&ce<=R)X--;else{L=Math.max(0,Math.min(ce,R)-Math.max(B,q)),J=G.clientHeight;break}}X>=1&&o(G=>{let B=J*X-L+se;return G>=B?G:B})}}):null,N5({padding:m,apply({availableWidth:N,availableHeight:D,elements:F}){Object.assign(F.floating.style,{overflow:"auto",maxWidth:`${N}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${D}px)`})}})].filter(Boolean),whileElementsMounted:v5}),[T=b,I=v]=E.placement.split("-");b==="selection"&&(T="selection");let O=me(()=>({anchor:[T,I].filter(Boolean).join(" ")}),[T,I]),P=G5(E,{overflowRef:s,onChange:o}),{getReferenceProps:S,getFloatingProps:C}=U5([P]),A=de(N=>{l(N),_.setFloating(N)});return c(Vu.Provider,{value:r},c(Bi.Provider,{value:{setFloating:A,setReference:_.setReference,styles:x,getReferenceProps:S,getFloatingProps:C,slot:O}},e))}function J5(e){tt(()=>{if(!e)return;let t=new MutationObserver(()=>{let n=window.getComputedStyle(e).maxHeight,r=parseFloat(n);if(isNaN(r))return;let i=parseInt(n);isNaN(i)||r!==i&&(e.style.maxHeight=`${Math.ceil(r)}px`)});return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}},[e])}function Q5(e,t){var n,r,i;let o=Ja((n=e==null?void 0:e.gap)!=null?n:"var(--anchor-gap, 0)",t),s=Ja((r=e==null?void 0:e.offset)!=null?r:"var(--anchor-offset, 0)",t),a=Ja((i=e==null?void 0:e.padding)!=null?i:"var(--anchor-padding, 0)",t);return{...e,gap:o,offset:s,padding:a}}function Ja(e,t,n=void 0){let r=hr(),i=de((l,u)=>{if(l==null)return[n,null];if(typeof l=="number")return[l,null];if(typeof l=="string"){if(!u)return[n,null];let d=Jd(l,u);return[d,f=>{let p=Rh(l);{let m=p.map(h=>window.getComputedStyle(u).getPropertyValue(h));r.requestAnimationFrame(function h(){r.nextFrame(h);let b=!1;for(let[_,x]of p.entries()){let E=window.getComputedStyle(u).getPropertyValue(x);if(m[_]!==E){m[_]=E,b=!0;break}}if(!b)return;let v=Jd(l,u);d!==v&&(f(v),d=v)})}return r.dispose}]}return[n,null]}),o=me(()=>i(e,t)[0],[e,t]),[s=o,a]=be();return tt(()=>{let[l,u]=i(e,t);if(a(l),!!u)return u(a)},[e,t]),s}function Rh(e){let t=/var\((.*)\)/.exec(e);if(t){let n=t[1].indexOf(",");if(n===-1)return[t[1]];let r=t[1].slice(0,n).trim(),i=t[1].slice(n+1).trim();return i?[r,...Rh(i)]:[r]}return[]}function Jd(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}function eC(e,t){let[n,r]=be(t);return!e&&n!==t&&r(t),e?n:t}let _a=lt(null);_a.displayName="OpenClosedContext";var Dt=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Dt||{});function qo(){return Ve(_a)}function Oh({value:e,children:t}){return Q.createElement(_a.Provider,{value:e},t)}function tC({children:e}){return Q.createElement(_a.Provider,{value:null},e)}function nC(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let Jn=[];nC(()=>{function e(t){if(!(t.target instanceof HTMLElement)||t.target===document.body||Jn[0]===t.target)return;let n=t.target;n=n.closest(Vs),Jn.unshift(n??t.target),Jn=Jn.filter(r=>r!=null&&r.isConnected),Jn.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function rC(e){throw new Error("Unexpected object: "+e)}var vt=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(vt||{});function Qa(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=r??-1;switch(e.focus){case 0:{for(let o=0;o<n.length;++o)if(!t.resolveDisabled(n[o],o,n))return o;return r}case 1:{i===-1&&(i=n.length);for(let o=i-1;o>=0;--o)if(!t.resolveDisabled(n[o],o,n))return o;return r}case 2:{for(let o=i+1;o<n.length;++o)if(!t.resolveDisabled(n[o],o,n))return o;return r}case 3:{for(let o=n.length-1;o>=0;--o)if(!t.resolveDisabled(n[o],o,n))return o;return r}case 4:{for(let o=0;o<n.length;++o)if(t.resolveId(n[o],o,n)===e.id)return o;return r}case 5:return null;default:rC(e)}}function Fh(e){let t=de(e),n=ie(!1);Fe(()=>(n.current=!1,()=>{n.current=!0,ha(()=>{n.current&&t()})}),[t])}function iC(){let e=typeof document>"u";return"useSyncExternalStore"in _s?(t=>t.useSyncExternalStore)(_s)(()=>()=>{},()=>!1,()=>!e):!1}function Yo(){let e=iC(),[t,n]=be($r.isHandoffComplete);return t&&$r.isHandoffComplete===!1&&n(!1),Fe(()=>{t!==!0&&n(!0)},[t]),Fe(()=>$r.handoff(),[]),e?!1:t}let Ph=lt(!1);function oC(){return Ve(Ph)}function Qd(e){return Q.createElement(Ph.Provider,{value:e.force},e.children)}function sC(e){let t=oC(),n=Ve(Vh),r=Vi(e),[i,o]=be(()=>{var s;if(!t&&n!==null)return(s=n.current)!=null?s:null;if($r.isServer)return null;let a=r==null?void 0:r.getElementById("headlessui-portal-root");if(a)return a;if(r===null)return null;let l=r.createElement("div");return l.setAttribute("id","headlessui-portal-root"),r.body.appendChild(l)});return Fe(()=>{i!==null&&(r!=null&&r.body.contains(i)||r==null||r.body.appendChild(i))},[i,r]),Fe(()=>{t||n!==null&&o(n.current)},[n,o,t]),i}let Lh=qe,aC=wt(function(e,t){let n=e,r=ie(null),i=Mt(Qx(f=>{r.current=f}),t),o=Vi(r),s=sC(r),[a]=be(()=>{var f;return $r.isServer?null:(f=o==null?void 0:o.createElement("div"))!=null?f:null}),l=Ve(Il),u=Yo();tt(()=>{!s||!a||s.contains(a)||(a.setAttribute("data-headlessui-portal",""),s.appendChild(a))},[s,a]),tt(()=>{if(a&&l)return l.register(a)},[l,a]),Fh(()=>{var f;!s||!a||(a instanceof Node&&s.contains(a)&&s.removeChild(a),s.childNodes.length<=0&&((f=s.parentElement)==null||f.removeChild(s)))});let d=St();return u?!s||!a?null:Ys(d({ourProps:{ref:i},theirProps:n,slot:{},defaultTag:Lh,name:"Portal"}),a):null});function lC(e,t){let n=Mt(t),{enabled:r=!0,...i}=e,o=St();return r?Q.createElement(aC,{...i,ref:n}):o({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:Lh,name:"Portal"})}let uC=qe,Vh=lt(null);function cC(e,t){let{target:n,...r}=e,i={ref:Mt(t)},o=St();return Q.createElement(Vh.Provider,{value:n},o({ourProps:i,theirProps:r,defaultTag:uC,name:"Popover.Group"}))}let Il=lt(null);function dC(){let e=Ve(Il),t=ie([]),n=de(o=>(t.current.push(o),e&&e.register(o),()=>r(o))),r=de(o=>{let s=t.current.indexOf(o);s!==-1&&t.current.splice(s,1),e&&e.unregister(o)}),i=me(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,me(()=>function({children:o}){return Q.createElement(Il.Provider,{value:i},o)},[i])]}let fC=wt(lC),Hh=wt(cC),jh=Object.assign(fC,{Group:Hh});function mC(e,t=typeof document<"u"?document.defaultView:null,n){let r=Li(e,"escape");ph(t,"keydown",i=>{r&&(i.defaultPrevented||i.key===yt.Escape&&n(i))})}function hC(){var e;let[t]=be(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[n,r]=be((e=t==null?void 0:t.matches)!=null?e:!1);return tt(()=>{if(!t)return;function i(o){r(o.matches)}return t.addEventListener("change",i),()=>t.removeEventListener("change",i)},[t]),n}function pC({defaultContainers:e=[],portals:t,mainTreeNode:n}={}){let r=Vi(n),i=de(()=>{var o,s;let a=[];for(let l of e)l!==null&&(l instanceof HTMLElement?a.push(l):"current"in l&&l.current instanceof HTMLElement&&a.push(l.current));if(t!=null&&t.current)for(let l of t.current)a.push(l);for(let l of(o=r==null?void 0:r.querySelectorAll("html > *, body > *"))!=null?o:[])l!==document.body&&l!==document.head&&l instanceof HTMLElement&&l.id!=="headlessui-portal-root"&&(n&&(l.contains(n)||l.contains((s=n==null?void 0:n.getRootNode())==null?void 0:s.host))||a.some(u=>l.contains(u))||a.push(l));return a});return{resolveContainers:i,contains:de(o=>i().some(s=>s.contains(o)))}}let Bh=lt(null);function ef({children:e,node:t}){let[n,r]=be(null),i=Uh(t??n);return Q.createElement(Bh.Provider,{value:i},e,i===null&&Q.createElement(bo,{features:Ci.Hidden,ref:o=>{var s,a;if(o){for(let l of(a=(s=Pi(o))==null?void 0:s.querySelectorAll("html > *, body > *"))!=null?a:[])if(l!==document.body&&l!==document.head&&l instanceof HTMLElement&&l!=null&&l.contains(o)){r(l);break}}}}))}function Uh(e=null){var t;return(t=Ve(Bh))!=null?t:e}function Hu(){let e=ie(!1);return tt(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var ao=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(ao||{});function gC(){let e=ie(0);return mh(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function Wh(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}let wC="div";var Sr=(e=>(e[e.None=0]="None",e[e.InitialFocus=1]="InitialFocus",e[e.TabLock=2]="TabLock",e[e.FocusLock=4]="FocusLock",e[e.RestoreFocus=8]="RestoreFocus",e[e.AutoFocus=16]="AutoFocus",e))(Sr||{});function yC(e,t){let n=ie(null),r=Mt(n,t),{initialFocus:i,initialFocusFallback:o,containers:s,features:a=15,...l}=e;Yo()||(a=0);let u=Vi(n);xC(a,{ownerDocument:u});let d=CC(a,{ownerDocument:u,container:n,initialFocus:i,initialFocusFallback:o});SC(a,{ownerDocument:u,container:n,containers:s,previousActiveElement:d});let f=gC(),p=de(x=>{let E=n.current;E&&(T=>T())(()=>{jt(f.current,{[ao.Forwards]:()=>{mi(E,mn.First,{skipElements:[x.relatedTarget,o]})},[ao.Backwards]:()=>{mi(E,mn.Last,{skipElements:[x.relatedTarget,o]})}})})}),m=Li(!!(a&2),"focus-trap#tab-lock"),h=hr(),b=ie(!1),v={ref:r,onKeyDown(x){x.key=="Tab"&&(b.current=!0,h.requestAnimationFrame(()=>{b.current=!1}))},onBlur(x){if(!(a&4))return;let E=Wh(s);n.current instanceof HTMLElement&&E.add(n.current);let T=x.relatedTarget;T instanceof HTMLElement&&T.dataset.headlessuiFocusGuard!=="true"&&(Gh(E,T)||(b.current?mi(n.current,jt(f.current,{[ao.Forwards]:()=>mn.Next,[ao.Backwards]:()=>mn.Previous})|mn.WrapAround,{relativeTo:x.target}):x.target instanceof HTMLElement&&Ln(x.target)))}},_=St();return Q.createElement(Q.Fragment,null,m&&Q.createElement(bo,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:Ci.Focusable}),_({ourProps:v,theirProps:l,defaultTag:wC,name:"FocusTrap"}),m&&Q.createElement(bo,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:Ci.Focusable}))}let vC=wt(yC),bC=Object.assign(vC,{features:Sr});function _C(e=!0){let t=ie(Jn.slice());return Ru(([n],[r])=>{r===!0&&n===!1&&ha(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=Jn.slice())},[e,Jn,t]),de(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function xC(e,{ownerDocument:t}){let n=!!(e&8),r=_C(n);Ru(()=>{n||(t==null?void 0:t.activeElement)===(t==null?void 0:t.body)&&Ln(r())},[n]),Fh(()=>{n&&Ln(r())})}function CC(e,{ownerDocument:t,container:n,initialFocus:r,initialFocusFallback:i}){let o=ie(null),s=Li(!!(e&1),"focus-trap#initial-focus"),a=Hu();return Ru(()=>{if(e===0)return;if(!s){i!=null&&i.current&&Ln(i.current);return}let l=n.current;l&&ha(()=>{if(!a.current)return;let u=t==null?void 0:t.activeElement;if(r!=null&&r.current){if((r==null?void 0:r.current)===u){o.current=u;return}}else if(l.contains(u)){o.current=u;return}if(r!=null&&r.current)Ln(r.current);else{if(e&16){if(mi(l,mn.First|mn.AutoFocus)!==Nl.Error)return}else if(mi(l,mn.First)!==Nl.Error)return;if(i!=null&&i.current&&(Ln(i.current),(t==null?void 0:t.activeElement)===i.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}o.current=t==null?void 0:t.activeElement})},[i,s,e]),o}function SC(e,{ownerDocument:t,container:n,containers:r,previousActiveElement:i}){let o=Hu(),s=!!(e&4);ph(t==null?void 0:t.defaultView,"focus",a=>{if(!s||!o.current)return;let l=Wh(r);n.current instanceof HTMLElement&&l.add(n.current);let u=i.current;if(!u)return;let d=a.target;d&&d instanceof HTMLElement?Gh(l,d)?(i.current=d,Ln(d)):(a.preventDefault(),a.stopPropagation(),Ln(u)):Ln(i.current)},!0)}function Gh(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function zh(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||((t=e.as)!=null?t:Yh)!==qe||Q.Children.count(e.children)===1}let xa=lt(null);xa.displayName="TransitionContext";var EC=(e=>(e.Visible="visible",e.Hidden="hidden",e))(EC||{});function AC(){let e=Ve(xa);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function kC(){let e=Ve(Ca);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Ca=lt(null);Ca.displayName="NestingContext";function Sa(e){return"children"in e?Sa(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function qh(e,t){let n=pr(e),r=ie([]),i=Hu(),o=hr(),s=de((m,h=tr.Hidden)=>{let b=r.current.findIndex(({el:v})=>v===m);b!==-1&&(jt(h,{[tr.Unmount](){r.current.splice(b,1)},[tr.Hidden](){r.current[b].state="hidden"}}),o.microTask(()=>{var v;!Sa(r)&&i.current&&((v=n.current)==null||v.call(n))}))}),a=de(m=>{let h=r.current.find(({el:b})=>b===m);return h?h.state!=="visible"&&(h.state="visible"):r.current.push({el:m,state:"visible"}),()=>s(m,tr.Unmount)}),l=ie([]),u=ie(Promise.resolve()),d=ie({enter:[],leave:[]}),f=de((m,h,b)=>{l.current.splice(0),t&&(t.chains.current[h]=t.chains.current[h].filter(([v])=>v!==m)),t==null||t.chains.current[h].push([m,new Promise(v=>{l.current.push(v)})]),t==null||t.chains.current[h].push([m,new Promise(v=>{Promise.all(d.current[h].map(([_,x])=>x)).then(()=>v())})]),h==="enter"?u.current=u.current.then(()=>t==null?void 0:t.wait.current).then(()=>b(h)):b(h)}),p=de((m,h,b)=>{Promise.all(d.current[h].splice(0).map(([v,_])=>_)).then(()=>{var v;(v=l.current.shift())==null||v()}).then(()=>b(h))});return me(()=>({children:r,register:a,unregister:s,onStart:f,onStop:p,wait:u,chains:d}),[a,s,r,f,p,d,u])}let Yh=qe,Zh=xi.RenderStrategy;function NC(e,t){var n,r;let{transition:i=!0,beforeEnter:o,afterEnter:s,beforeLeave:a,afterLeave:l,enter:u,enterFrom:d,enterTo:f,entered:p,leave:m,leaveFrom:h,leaveTo:b,...v}=e,[_,x]=be(null),E=ie(null),T=zh(e),I=Mt(...T?[E,t,x]:t===null?[]:[t]),O=(n=v.unmount)==null||n?tr.Unmount:tr.Hidden,{show:P,appear:S,initial:C}=AC(),[A,N]=be(P?"visible":"hidden"),D=kC(),{register:F,unregister:j}=D;tt(()=>F(E),[F,E]),tt(()=>{if(O===tr.Hidden&&E.current){if(P&&A!=="visible"){N("visible");return}return jt(A,{hidden:()=>j(E),visible:()=>F(E)})}},[A,E,F,j,P,O]);let se=Yo();tt(()=>{if(T&&se&&A==="visible"&&E.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[E,A,se,T]);let X=C&&!S,J=S&&P&&C,L=ie(!1),G=qh(()=>{L.current||(N("hidden"),j(E))},D),B=de(ge=>{L.current=!0;let Y=ge?"enter":"leave";G.onStart(E,Y,Ce=>{Ce==="enter"?o==null||o():Ce==="leave"&&(a==null||a())})}),ce=de(ge=>{let Y=ge?"enter":"leave";L.current=!1,G.onStop(E,Y,Ce=>{Ce==="enter"?s==null||s():Ce==="leave"&&(l==null||l())}),Y==="leave"&&!Sa(G)&&(N("hidden"),j(E))});Fe(()=>{T&&i||(B(P),ce(P))},[P,T,i]);let q=!(!i||!T||!se||X),[,R]=yh(q,_,P,{start:B,end:ce}),fe=Kn({ref:I,className:((r=Al(v.className,J&&u,J&&d,R.enter&&u,R.enter&&R.closed&&d,R.enter&&!R.closed&&f,R.leave&&m,R.leave&&!R.closed&&h,R.leave&&R.closed&&b,!R.transition&&P&&p))==null?void 0:r.trim())||void 0,...wh(R)}),U=0;A==="visible"&&(U|=Dt.Open),A==="hidden"&&(U|=Dt.Closed),R.enter&&(U|=Dt.Opening),R.leave&&(U|=Dt.Closing);let Ae=St();return Q.createElement(Ca.Provider,{value:G},Q.createElement(Oh,{value:U},Ae({ourProps:fe,theirProps:v,defaultTag:Yh,features:Zh,visible:A==="visible",name:"Transition.Child"})))}function TC(e,t){let{show:n,appear:r=!1,unmount:i=!0,...o}=e,s=ie(null),a=zh(e),l=Mt(...a?[s,t]:t===null?[]:[t]);Yo();let u=qo();if(n===void 0&&u!==null&&(n=(u&Dt.Open)===Dt.Open),n===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[d,f]=be(n?"visible":"hidden"),p=qh(()=>{n||f("hidden")}),[m,h]=be(!0),b=ie([n]);tt(()=>{m!==!1&&b.current[b.current.length-1]!==n&&(b.current.push(n),h(!1))},[b,n]);let v=me(()=>({show:n,appear:r,initial:m}),[n,r,m]);tt(()=>{n?f("visible"):!Sa(p)&&s.current!==null&&f("hidden")},[n,p]);let _={unmount:i},x=de(()=>{var I;m&&h(!1),(I=e.beforeEnter)==null||I.call(e)}),E=de(()=>{var I;m&&h(!1),(I=e.beforeLeave)==null||I.call(e)}),T=St();return Q.createElement(Ca.Provider,{value:p},Q.createElement(xa.Provider,{value:v},T({ourProps:{..._,as:qe,children:Q.createElement(Kh,{ref:l,..._,...o,beforeEnter:x,beforeLeave:E})},theirProps:{},defaultTag:qe,features:Zh,visible:d==="visible",name:"Transition"})))}function $C(e,t){let n=Ve(xa)!==null,r=qo()!==null;return Q.createElement(Q.Fragment,null,!n&&r?Q.createElement(Dl,{ref:t,...e}):Q.createElement(Kh,{ref:t,...e}))}let Dl=wt(TC),Kh=wt(NC),ju=wt($C),Xh=Object.assign(Dl,{Child:ju,Root:Dl});var MC=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(MC||{}),IC=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(IC||{});let DC={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},Bu=lt(null);Bu.displayName="DialogContext";function Ea(e){let t=Ve(Bu);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ea),n}return t}function RC(e,t){return jt(t.type,DC,e,t)}let tf=wt(function(e,t){let n=an(),{id:r=`headlessui-dialog-${n}`,open:i,onClose:o,initialFocus:s,role:a="dialog",autoFocus:l=!0,__demoMode:u=!1,unmount:d=!1,...f}=e,p=ie(!1);a=function(){return a==="dialog"||a==="alertdialog"?a:(p.current||(p.current=!0,console.warn(`Invalid role [${a}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let m=qo();i===void 0&&m!==null&&(i=(m&Dt.Open)===Dt.Open);let h=ie(null),b=Mt(h,t),v=Vi(h),_=i?0:1,[x,E]=jr(RC,{titleId:null,descriptionId:null,panelRef:zs()}),T=de(()=>o(!1)),I=de(ce=>E({type:0,id:ce})),O=Yo()?_===0:!1,[P,S]=dC(),C={get current(){var ce;return(ce=x.panelRef.current)!=null?ce:h.current}},A=Uh(),{resolveContainers:N}=pC({mainTreeNode:A,portals:P,defaultContainers:[C]}),D=m!==null?(m&Dt.Closing)===Dt.Closing:!1;ah(u||D?!1:O,{allowed:de(()=>{var ce,q;return[(q=(ce=h.current)==null?void 0:ce.closest("[data-headlessui-portal]"))!=null?q:null]}),disallowed:de(()=>{var ce;return[(ce=A==null?void 0:A.closest("body > *:not(#headlessui-portal-root)"))!=null?ce:null]})}),hh(O,N,ce=>{ce.preventDefault(),T()}),mC(O,v==null?void 0:v.defaultView,ce=>{ce.preventDefault(),ce.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),T()}),gh(u||D?!1:O,v,N),lh(O,h,T);let[F,j]=t3(),se=me(()=>[{dialogState:_,close:T,setTitleId:I,unmount:d},x],[_,x,T,I,d]),X=me(()=>({open:_===0}),[_]),J={ref:b,id:r,role:a,tabIndex:-1,"aria-modal":u?void 0:_===0?!0:void 0,"aria-labelledby":x.titleId,"aria-describedby":F,unmount:d},L=!hC(),G=Sr.None;O&&!u&&(G|=Sr.RestoreFocus,G|=Sr.TabLock,l&&(G|=Sr.AutoFocus),L&&(G|=Sr.InitialFocus));let B=St();return Q.createElement(tC,null,Q.createElement(Qd,{force:!0},Q.createElement(jh,null,Q.createElement(Bu.Provider,{value:se},Q.createElement(Hh,{target:h},Q.createElement(Qd,{force:!1},Q.createElement(j,{slot:X},Q.createElement(S,null,Q.createElement(bC,{initialFocus:s,initialFocusFallback:h,containers:N,features:G},Q.createElement(f3,{value:T},B({ourProps:J,theirProps:f,slot:X,defaultTag:OC,features:FC,visible:_===0,name:"Dialog"})))))))))))}),OC="div",FC=xi.RenderStrategy|xi.Static;function PC(e,t){let{transition:n=!1,open:r,...i}=e,o=qo(),s=e.hasOwnProperty("open")||o!==null,a=e.hasOwnProperty("onClose");if(!s&&!a)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!s)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!a)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!o&&typeof e.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if(typeof e.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return(r!==void 0||n)&&!i.static?Q.createElement(ef,null,Q.createElement(Xh,{show:r,transition:n,unmount:i.unmount},Q.createElement(tf,{ref:t,...i}))):Q.createElement(ef,null,Q.createElement(tf,{ref:t,open:r,...i}))}let LC="div";function VC(e,t){let n=an(),{id:r=`headlessui-dialog-panel-${n}`,transition:i=!1,...o}=e,[{dialogState:s,unmount:a},l]=Ea("Dialog.Panel"),u=Mt(t,l.panelRef),d=me(()=>({open:s===0}),[s]),f=de(v=>{v.stopPropagation()}),p={ref:u,id:r,onClick:f},m=i?ju:qe,h=i?{unmount:a}:{},b=St();return Q.createElement(m,{...h},b({ourProps:p,theirProps:o,slot:d,defaultTag:LC,name:"Dialog.Panel"}))}let HC="div";function jC(e,t){let{transition:n=!1,...r}=e,[{dialogState:i,unmount:o}]=Ea("Dialog.Backdrop"),s=me(()=>({open:i===0}),[i]),a={ref:t,"aria-hidden":!0},l=n?ju:qe,u=n?{unmount:o}:{},d=St();return Q.createElement(l,{...u},d({ourProps:a,theirProps:r,slot:s,defaultTag:HC,name:"Dialog.Backdrop"}))}let BC="h2";function UC(e,t){let n=an(),{id:r=`headlessui-dialog-title-${n}`,...i}=e,[{dialogState:o,setTitleId:s}]=Ea("Dialog.Title"),a=Mt(t);Fe(()=>(s(r),()=>s(null)),[r,s]);let l=me(()=>({open:o===0}),[o]),u={ref:a,id:r};return St()({ourProps:u,theirProps:i,slot:l,defaultTag:BC,name:"Dialog.Title"})}let WC=wt(PC),GC=wt(VC),zC=wt(jC),qC=wt(UC),Uu=Object.assign(WC,{Panel:GC,Title:qC,Description:o3});function YC(e,t){let n=ie({left:0,top:0});if(tt(()=>{if(!t)return;let i=t.getBoundingClientRect();i&&(n.current=i)},[e,t]),t==null||!e||t===document.activeElement)return!1;let r=t.getBoundingClientRect();return r.top!==n.current.top||r.left!==n.current.left}let nf=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function rf(e){var t,n;let r=(t=e.innerText)!=null?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return r;let o=!1;for(let a of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))a.remove(),o=!0;let s=o?(n=i.innerText)!=null?n:"":r;return nf.test(s)&&(s=s.replace(nf,"")),s}function ZC(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(i=>{let o=document.getElementById(i);if(o){let s=o.getAttribute("aria-label");return typeof s=="string"?s.trim():rf(o).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return rf(e).trim()}function KC(e){let t=ie(""),n=ie("");return de(()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let o=ZC(r).trim().toLowerCase();return t.current=i,n.current=o,o})}var XC=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(XC||{}),JC=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(JC||{}),QC=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(QC||{}),e6=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.SetButtonElement=7]="SetButtonElement",e[e.SetOptionsElement=8]="SetOptionsElement",e))(e6||{});function el(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=dh(t(e.options.slice()),o=>o.dataRef.current.domRef.current),i=n?r.indexOf(n):null;return i===-1&&(i=null),{options:r,activeOptionIndex:i}}let t6={1(e){return e.dataRef.current.disabled||e.listboxState===1?e:{...e,activeOptionIndex:null,listboxState:1,__demoMode:!1}},0(e){if(e.dataRef.current.disabled||e.listboxState===0)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex(i=>n(i.dataRef.current.value));return r!==-1&&(t=r),{...e,listboxState:0,activeOptionIndex:t,__demoMode:!1}},2(e,t){var n,r,i,o,s;if(e.dataRef.current.disabled||e.listboxState===1)return e;let a={...e,searchQuery:"",activationTrigger:(n=t.trigger)!=null?n:1,__demoMode:!1};if(t.focus===vt.Nothing)return{...a,activeOptionIndex:null};if(t.focus===vt.Specific)return{...a,activeOptionIndex:e.options.findIndex(d=>d.id===t.id)};if(t.focus===vt.Previous){let d=e.activeOptionIndex;if(d!==null){let f=e.options[d].dataRef.current.domRef,p=Qa(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:m=>m.id,resolveDisabled:m=>m.dataRef.current.disabled});if(p!==null){let m=e.options[p].dataRef.current.domRef;if(((r=f.current)==null?void 0:r.previousElementSibling)===m.current||((i=m.current)==null?void 0:i.previousElementSibling)===null)return{...a,activeOptionIndex:p}}}}else if(t.focus===vt.Next){let d=e.activeOptionIndex;if(d!==null){let f=e.options[d].dataRef.current.domRef,p=Qa(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:m=>m.id,resolveDisabled:m=>m.dataRef.current.disabled});if(p!==null){let m=e.options[p].dataRef.current.domRef;if(((o=f.current)==null?void 0:o.nextElementSibling)===m.current||((s=m.current)==null?void 0:s.nextElementSibling)===null)return{...a,activeOptionIndex:p}}}}let l=el(e),u=Qa(t,{resolveItems:()=>l.options,resolveActiveIndex:()=>l.activeOptionIndex,resolveId:d=>d.id,resolveDisabled:d=>d.dataRef.current.disabled});return{...a,...l,activeOptionIndex:u}},3:(e,t)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let n=e.searchQuery!==""?0:1,r=e.searchQuery+t.value.toLowerCase(),i=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(s=>{var a;return!s.dataRef.current.disabled&&((a=s.dataRef.current.textValue)==null?void 0:a.startsWith(r))}),o=i?e.options.indexOf(i):-1;return o===-1||o===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:o,activationTrigger:1}},4(e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:{...e,searchQuery:""}},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=el(e,i=>[...i,n]);return e.activeOptionIndex===null&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},6:(e,t)=>{let n=el(e,r=>{let i=r.findIndex(o=>o.id===t.id);return i!==-1&&r.splice(i,1),r});return{...e,...n,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element}},Wu=lt(null);Wu.displayName="ListboxActionsContext";function Aa(e){let t=Ve(Wu);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Aa),n}return t}let ka=lt(null);ka.displayName="ListboxDataContext";function Zo(e){let t=Ve(ka);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Zo),n}return t}function n6(e,t){return jt(t.type,t6,e,t)}let r6=qe;function i6(e,t){var n;let r=Iu(),{value:i,defaultValue:o,form:s,name:a,onChange:l,by:u,invalid:d=!1,disabled:f=r||!1,horizontal:p=!1,multiple:m=!1,__demoMode:h=!1,...b}=e;const v=p?"horizontal":"vertical";let _=Mt(t),x=Bx(o),[E=m?[]:void 0,T]=jx(i,l,x),[I,O]=jr(n6,{dataRef:zs(),listboxState:h?0:1,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,optionsVisible:!1,buttonElement:null,optionsElement:null,__demoMode:h}),P=ie({static:!1,hold:!1}),S=ie(new Map),C=h3(u),A=De(ae=>jt(N.mode,{1:()=>E.some(pe=>C(pe,ae)),0:()=>C(E,ae)}),[E]),N=me(()=>({...I,value:E,disabled:f,invalid:d,mode:m?1:0,orientation:v,compare:C,isSelected:A,optionsPropsRef:P,listRef:S}),[E,f,d,m,I,S]);tt(()=>{I.dataRef.current=N},[N]);let D=N.listboxState===0;hh(D,[N.buttonElement,N.optionsElement],(ae,pe)=>{var ee;O({type:1}),ch(pe,Du.Loose)||(ae.preventDefault(),(ee=N.buttonElement)==null||ee.focus())});let F=me(()=>({open:N.listboxState===0,disabled:f,invalid:d,value:E}),[N,f,E,d]),j=de(ae=>{let pe=N.options.find(ee=>ee.id===ae);pe&&ce(pe.dataRef.current.value)}),se=de(()=>{if(N.activeOptionIndex!==null){let{dataRef:ae,id:pe}=N.options[N.activeOptionIndex];ce(ae.current.value),O({type:2,focus:vt.Specific,id:pe})}}),X=de(()=>O({type:0})),J=de(()=>O({type:1})),L=hr(),G=de((ae,pe,ee)=>{L.dispose(),L.microTask(()=>ae===vt.Specific?O({type:2,focus:vt.Specific,id:pe,trigger:ee}):O({type:2,focus:ae,trigger:ee}))}),B=de((ae,pe)=>(O({type:5,id:ae,dataRef:pe}),()=>O({type:6,id:ae}))),ce=de(ae=>jt(N.mode,{0(){return T==null?void 0:T(ae)},1(){let pe=N.value.slice(),ee=pe.findIndex(oe=>C(oe,ae));return ee===-1?pe.push(ae):pe.splice(ee,1),T==null?void 0:T(pe)}})),q=de(ae=>O({type:3,value:ae})),R=de(()=>O({type:4})),fe=de(ae=>{O({type:7,element:ae})}),U=de(ae=>{O({type:8,element:ae})}),Ae=me(()=>({onChange:ce,registerOption:B,goToOption:G,closeListbox:J,openListbox:X,selectActiveOption:se,selectOption:j,search:q,clearSearch:R,setButtonElement:fe,setOptionsElement:U}),[]),[ge,Y]=s3({inherit:!0}),Ce={ref:_},ye=De(()=>{if(x!==void 0)return T==null?void 0:T(x)},[T,x]),Ie=St();return Q.createElement(Y,{value:ge,props:{htmlFor:(n=N.buttonElement)==null?void 0:n.id},slot:{open:N.listboxState===0,disabled:f}},Q.createElement(X5,null,Q.createElement(Wu.Provider,{value:Ae},Q.createElement(ka.Provider,{value:N},Q.createElement(Oh,{value:jt(N.listboxState,{0:Dt.Open,1:Dt.Closed})},a!=null&&E!=null&&Q.createElement(Yx,{disabled:f,data:{[a]:E},form:s,onReset:ye}),Ie({ourProps:Ce,theirProps:b,slot:F,defaultTag:r6,name:"Listbox"}))))))}let o6="button";function s6(e,t){var n;let r=Zo("Listbox.Button"),i=Aa("Listbox.Button"),o=an(),s=eh(),{id:a=s||`headlessui-listbox-button-${o}`,disabled:l=r.disabled||!1,autoFocus:u=!1,...d}=e,f=Mt(t,q5(),i.setButtonElement),p=Y5(),m=de(N=>{switch(N.key){case yt.Enter:Ux(N.currentTarget);break;case yt.Space:case yt.ArrowDown:N.preventDefault(),Jt(()=>i.openListbox()),r.value||i.goToOption(vt.First);break;case yt.ArrowUp:N.preventDefault(),Jt(()=>i.openListbox()),r.value||i.goToOption(vt.Last);break}}),h=de(N=>{switch(N.key){case yt.Space:N.preventDefault();break}}),b=de(N=>{var D;if(Xx(N.currentTarget))return N.preventDefault();r.listboxState===0?(Jt(()=>i.closeListbox()),(D=r.buttonElement)==null||D.focus({preventScroll:!0})):(N.preventDefault(),i.openListbox())}),v=de(N=>N.preventDefault()),_=ih([a]),x=e3(),{isFocusVisible:E,focusProps:T}=Tx({autoFocus:u}),{isHovered:I,hoverProps:O}=Nx({isDisabled:l}),{pressed:P,pressProps:S}=Ox({disabled:l}),C=me(()=>({open:r.listboxState===0,active:P||r.listboxState===0,disabled:l,invalid:r.invalid,value:r.value,hover:I,focus:E,autofocus:u}),[r.listboxState,r.value,l,I,E,P,r.invalid,u]),A=Km(p(),{ref:f,id:a,type:N3(e,r.buttonElement),"aria-haspopup":"listbox","aria-controls":(n=r.optionsElement)==null?void 0:n.id,"aria-expanded":r.listboxState===0,"aria-labelledby":_,"aria-describedby":x,disabled:l||void 0,autoFocus:u,onKeyDown:m,onKeyUp:h,onKeyPress:v,onClick:b},T,O,S);return St()({ourProps:A,theirProps:d,slot:C,defaultTag:o6,name:"Listbox.Button"})}let Jh=lt(!1),a6="div",l6=xi.RenderStrategy|xi.Static;function u6(e,t){var n,r;let i=an(),{id:o=`headlessui-listbox-options-${i}`,anchor:s,portal:a=!1,modal:l=!0,transition:u=!1,...d}=e,f=z5(s),[p,m]=be(null);f&&(a=!0);let h=Zo("Listbox.Options"),b=Aa("Listbox.Options"),v=Vi(h.optionsElement),_=qo(),[x,E]=yh(u,p,_!==null?(_&Dt.Open)===Dt.Open:h.listboxState===0);lh(x,h.buttonElement,b.closeListbox);let T=h.__demoMode?!1:l&&h.listboxState===0;gh(T,v);let I=h.__demoMode?!1:l&&h.listboxState===0;ah(I,{allowed:De(()=>[h.buttonElement,h.optionsElement],[h.buttonElement,h.optionsElement])});let O=h.listboxState!==0,P=YC(O,h.buttonElement)?!1:x,S=x&&h.listboxState===1,C=eC(S,h.value),A=de(R=>h.compare(C,R)),N=me(()=>{var R;if(f==null||!((R=f==null?void 0:f.to)!=null&&R.includes("selection")))return null;let fe=h.options.findIndex(U=>A(U.dataRef.current.value));return fe===-1&&(fe=0),fe},[f,h.options]),D=(()=>{if(f==null)return;if(N===null)return{...f,inner:void 0};let R=Array.from(h.listRef.current.values());return{...f,inner:{listRef:{current:R},index:N}}})(),[F,j]=K5(D),se=Z5(),X=Mt(t,f?F:null,b.setOptionsElement,m),J=hr();Fe(()=>{var R;let fe=h.optionsElement;fe&&h.listboxState===0&&fe!==((R=Pi(fe))==null?void 0:R.activeElement)&&(fe==null||fe.focus({preventScroll:!0}))},[h.listboxState,h.optionsElement]);let L=de(R=>{var fe,U;switch(J.dispose(),R.key){case yt.Space:if(h.searchQuery!=="")return R.preventDefault(),R.stopPropagation(),b.search(R.key);case yt.Enter:if(R.preventDefault(),R.stopPropagation(),h.activeOptionIndex!==null){let{dataRef:Ae}=h.options[h.activeOptionIndex];b.onChange(Ae.current.value)}h.mode===0&&(Jt(()=>b.closeListbox()),(fe=h.buttonElement)==null||fe.focus({preventScroll:!0}));break;case jt(h.orientation,{vertical:yt.ArrowDown,horizontal:yt.ArrowRight}):return R.preventDefault(),R.stopPropagation(),b.goToOption(vt.Next);case jt(h.orientation,{vertical:yt.ArrowUp,horizontal:yt.ArrowLeft}):return R.preventDefault(),R.stopPropagation(),b.goToOption(vt.Previous);case yt.Home:case yt.PageUp:return R.preventDefault(),R.stopPropagation(),b.goToOption(vt.First);case yt.End:case yt.PageDown:return R.preventDefault(),R.stopPropagation(),b.goToOption(vt.Last);case yt.Escape:R.preventDefault(),R.stopPropagation(),Jt(()=>b.closeListbox()),(U=h.buttonElement)==null||U.focus({preventScroll:!0});return;case yt.Tab:R.preventDefault(),R.stopPropagation(),Jt(()=>b.closeListbox()),E3(h.buttonElement,R.shiftKey?mn.Previous:mn.Next);break;default:R.key.length===1&&(b.search(R.key),J.setTimeout(()=>b.clearSearch(),350));break}}),G=(n=h.buttonElement)==null?void 0:n.id,B=me(()=>({open:h.listboxState===0}),[h.listboxState]),ce=Km(f?se():{},{id:o,ref:X,"aria-activedescendant":h.activeOptionIndex===null||(r=h.options[h.activeOptionIndex])==null?void 0:r.id,"aria-multiselectable":h.mode===1?!0:void 0,"aria-labelledby":G,"aria-orientation":h.orientation,onKeyDown:L,role:"listbox",tabIndex:h.listboxState===0?0:void 0,style:{...d.style,...j,"--button-width":g3(h.buttonElement,!0).width},...wh(E)}),q=St();return Q.createElement(jh,{enabled:a?e.static||x:!1},Q.createElement(ka.Provider,{value:h.mode===1?h:{...h,isSelected:A}},q({ourProps:ce,theirProps:d,slot:B,defaultTag:a6,features:l6,visible:P,name:"Listbox.Options"})))}let c6="div";function d6(e,t){let n=an(),{id:r=`headlessui-listbox-option-${n}`,disabled:i=!1,value:o,...s}=e,a=Ve(Jh)===!0,l=Zo("Listbox.Option"),u=Aa("Listbox.Option"),d=l.activeOptionIndex!==null?l.options[l.activeOptionIndex].id===r:!1,f=l.isSelected(o),p=ie(null),m=KC(p),h=pr({disabled:i,value:o,domRef:p,get textValue(){return m()}}),b=Mt(t,p,C=>{C?l.listRef.current.set(r,C):l.listRef.current.delete(r)});tt(()=>{if(!l.__demoMode&&l.listboxState===0&&d&&l.activationTrigger!==0)return zn().requestAnimationFrame(()=>{var C,A;(A=(C=p.current)==null?void 0:C.scrollIntoView)==null||A.call(C,{block:"nearest"})})},[p,d,l.__demoMode,l.listboxState,l.activationTrigger,l.activeOptionIndex]),tt(()=>{if(!a)return u.registerOption(r,h)},[h,r,a]);let v=de(C=>{var A;if(i)return C.preventDefault();u.onChange(o),l.mode===0&&(Jt(()=>u.closeListbox()),(A=l.buttonElement)==null||A.focus({preventScroll:!0}))}),_=de(()=>{if(i)return u.goToOption(vt.Nothing);u.goToOption(vt.Specific,r)}),x=R3(),E=de(C=>{x.update(C),!i&&(d||u.goToOption(vt.Specific,r,0))}),T=de(C=>{x.wasMoved(C)&&(i||d||u.goToOption(vt.Specific,r,0))}),I=de(C=>{x.wasMoved(C)&&(i||d&&u.goToOption(vt.Nothing))}),O=me(()=>({active:d,focus:d,selected:f,disabled:i,selectedOption:f&&a}),[d,f,i,a]),P=a?{}:{id:r,ref:b,role:"option",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-selected":f,disabled:void 0,onClick:v,onFocus:_,onPointerEnter:E,onMouseEnter:E,onPointerMove:T,onMouseMove:T,onPointerLeave:I,onMouseLeave:I},S=St();return!f&&a?null:S({ourProps:P,theirProps:s,slot:O,defaultTag:c6,name:"Listbox.Option"})}let f6=qe;function m6(e,t){let{options:n,placeholder:r,...i}=e,o={ref:Mt(t)},s=Zo("ListboxSelectedOption"),a=me(()=>({}),[]),l=s.value===void 0||s.value===null||s.mode===1&&Array.isArray(s.value)&&s.value.length===0,u=St();return Q.createElement(Jh.Provider,{value:!0},u({ourProps:o,theirProps:{...i,children:Q.createElement(Q.Fragment,null,r&&l?r:n)},slot:a,defaultTag:f6,name:"ListboxSelectedOption"}))}let h6=wt(i6),Qh=wt(s6),p6=c3,ep=wt(u6),tp=wt(d6),g6=wt(m6),w6=Object.assign(h6,{Button:Qh,Label:p6,Options:ep,Option:tp,SelectedOption:g6}),xt=class extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Open","OnClose","Children"]}};function Ui(e){return c(Uu,Gn(e,1))}class dr extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","ClassName","Children"]}}function Wi(e){return c(Uu.Panel,Gn(e,1))}class Us extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Children"]}}function np(e){return c(Uu.Title,Gn(e,1))}class Gi extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName"]}}function zi(e){return c(zC,Gn(e,1))}function Gr(e,t){let n;return c("svg",w(g([["width",e],["height",t],["viewBox","0 0 "+e+" "+t],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(n=ue(c("path",{d:"M6 18L18 6M6 6L18 18",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2,strokeLinecap:"round"})),["children",y.Children.toArray(Array.from(n))])])))}function y6(e,t){let n,r,i,o,s;return Ui(g([new xt(3,[e]),new xt(4,[t]),new xt(5,[[zi(ue(new Gi(2,["fixed inset-0 bg-gray-500/50"]))),c("div",w(g([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(n=[Wi(ue(new dr(2,[[c("div",w(g([["className","flex flex-col mt-6 mb-6 px-6"],(r=[c("div",w(g([["className","flex flex-row justify-between"],(i=[c("span",{className:"text-gray-900 font-semibold text-lg",children:"What is mapping and why is it important?"}),c("button",w(g([["onClick",a=>{t()}],["type","button"],["className","text-gray-700"],(o=[Gr(24,24)],["children",y.Children.toArray(Array.from(o))])])))],["children",y.Children.toArray(Array.from(i))])]))),c("div",w(g([["className","text-sm text-gray-600 pt-6"],(s="Mapping involves pairing each incoming CSV field with its correct destination field. This step is important because it makes sure that your data is organised correctly, minimising the risk of errors and ensuring a smooth import process.",["children",s])])))],["children",y.Children.toArray(Array.from(r))])])))]])))],["children",y.Children.toArray(Array.from(n))])])))]])]))}function Na(e){return c("span",{className:"font-sonoma text-black font-semibold text-lg",children:e})}function Ta(e){return c("span",{className:"text-sm font-normal pt-2",children:e})}function Co(e,t){return c("button",{className:"rounded-2xl text-xs font-medium text-gray-600 border px-3.5 py-1.5 bg-white hover:bg-gray-50",onClick:n=>{t()},type:"button",children:y.Children.toArray([e])})}function v6(e,t){let n,r;return c("svg",w(g([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=ue(c("path",w(g([["clipRule","evenodd"],["fill-rule","evenodd"],(r="M18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10ZM11 6C11 6.55228 10.5523 7 10 7C9.44772 7 9 6.55228 9 6C9 5.44772 9.44772 5 10 5C10.5523 5 11 5.44772 11 6ZM9 9C8.44772 9 8 9.44772 8 10C8 10.5523 8.44772 11 9 11V14C9 14.5523 9.44772 15 10 15H11C11.5523 15 12 14.5523 12 14C12 13.4477 11.5523 13 11 13V10C11 9.44772 10.5523 9 10 9H9Z",["d",r]),["fill","#60A5FA"]])))),["children",y.Children.toArray(Array.from(n))])])))}function rp(){let e,t,n;return c("div",w(g([["className","w-full p-4 bg-blue-50 rounded-md justify-start items-start gap-3 inline-flex"],(e=[v6(20,20),c("div",w(g([["className","grow shrink basis-0 h-[60px] justify-between items-center flex"],(t=[c("div",w(g([["className","grow shrink basis-0 text-blue-800 text-sm font-medium leading-tight"],(n="We’ve automatically pre-filled some options based on the matches found in your CSV. Please double-check to make sure they are correct and fill in any missing fields before continuing.",["children",n])])))],["children",y.Children.toArray(Array.from(t))])])))],["children",y.Children.toArray(Array.from(e))])])))}function ip(e,t){let n,r;return c("svg",w(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=ue(c("path",w(g([(r="M15.8008 12.5263L9.48383 0.880306C9.32803 0.591371 9.09045 0.354828 8.80083 0.200306C8.40735 -0.0102628 7.94665 -0.0569536 7.51893 0.0703896C7.0912 0.197733 6.73106 0.488809 6.51683 0.880306L0.20083 12.5263C0.0627228 12.7826 -0.00633038 13.0704 0.00045607 13.3614C0.00724252 13.6525 0.0896351 13.9368 0.239538 14.1863C0.38944 14.4359 0.601694 14.6422 0.855444 14.7849C1.10919 14.9276 1.39571 15.0018 1.68683 15.0003H14.3148C14.5939 15.0003 14.8686 14.9316 15.1148 14.8003C15.3099 14.6968 15.4825 14.5556 15.6228 14.3851C15.763 14.2145 15.8681 14.0178 15.932 13.8064C15.9958 13.595 16.0172 13.373 15.9949 13.1533C15.9726 12.9336 15.9069 12.7205 15.8018 12.5263H15.8008ZM8.00083 13.0003C7.80305 13.0003 7.60971 12.9417 7.44526 12.8318C7.28081 12.7219 7.15264 12.5657 7.07695 12.383C7.00126 12.2003 6.98146 11.9992 7.02004 11.8052C7.05863 11.6112 7.15387 11.4331 7.29372 11.2932C7.43358 11.1533 7.61176 11.0581 7.80574 11.0195C7.99972 10.9809 8.20079 11.0007 8.38351 11.0764C8.56624 11.1521 8.72242 11.2803 8.8323 11.4447C8.94218 11.6092 9.00083 11.8025 9.00083 12.0003C9.00083 12.2655 8.89547 12.5199 8.70794 12.7074C8.5204 12.8949 8.26605 13.0003 8.00083 13.0003ZM9.00083 9.50031C9.00083 9.63291 8.94815 9.76009 8.85438 9.85386C8.76062 9.94763 8.63344 10.0003 8.50083 10.0003H7.50083C7.36822 10.0003 7.24104 9.94763 7.14728 9.85386C7.05351 9.76009 7.00083 9.63291 7.00083 9.50031V5.50031C7.00083 5.3677 7.05351 5.24052 7.14728 5.14675C7.24104 5.05298 7.36822 5.00031 7.50083 5.00031H8.50083C8.63344 5.00031 8.76062 5.05298 8.85438 5.14675C8.94815 5.24052 9.00083 5.3677 9.00083 5.50031V9.50031Z",["d",r]),["fill","#F87171"]])))),["children",y.Children.toArray(Array.from(n))])])))}function op(e){let t,n;return c("div",w(g([["className","w-full h-[52px] p-4 bg-red-50 rounded-md justify-start items-start gap-3 inline-flex"],(t=[ip(16,15),c("div",w(g([["className","grow shrink basis-0 h-5 justify-between items-center flex"],(n=[c("div",{className:"grow shrink basis-0 text-red-800 text-sm font-medium leading-tight",children:e})],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function $a(e,t){let n;return c("svg",w(g([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=g([c("path",{d:"M15 6H1",stroke:"#D1D5DB",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),c("path",{d:"M6 11L1 6L6 1",stroke:"#D1D5DB",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]),["children",y.Children.toArray(Array.from(n))])])))}let pi=class extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Value","OnChange","Children"]}};function sp(e){return c(w6,Gn(e,1))}class Ws extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ClassName","Children"]}}function ap(e){return c(Qh,Gn(e,1))}class lp extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ClassName"]}}function up(e,t){return c(ep,Gn(e,1),...t)}class vn extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","Value","Disabled","ClassName","Children"]}}function cp(e){return c(tp,Gn(e,1))}function dp(e,t){let n,r;return c("svg",w(g([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=ue(c("path",w(g([["clipRule","evenodd"],["fill-rule","evenodd"],(r="M5.29289 7.29289C5.68342 6.90237 6.31658 6.90237 6.7071 7.29289L9.99999 10.5858L13.2929 7.29289C13.6834 6.90237 14.3166 6.90237 14.7071 7.29289C15.0976 7.68342 15.0976 8.31658 14.7071 8.70711L10.7071 12.7071C10.3166 13.0976 9.68341 13.0976 9.29289 12.7071L5.29289 8.70711C4.90237 8.31658 4.90237 7.68342 5.29289 7.29289Z",["d",r]),["fill","#6B7280"]])))),["children",y.Children.toArray(Array.from(n))])])))}class ro extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Below","Above"]}}function io(e,t,n,r,i,o,s,a,l){let u,d,f,p,m,h,b;const v=i.fields[0],_=Qf(_t(x=>x[1].fields[0],Z1(x=>h0(x.fields[0],v),r)));return c("div",w(g([["key",nt(e)],["className","h-14 pr-3 py-2 rounded-lg justify-start items-center gap-2 inline-flex"],(u=[c("div",w(g([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(d=[c("div",w(K($(()=>H(k(["className",`${r==null?"bg-gray-50 border-gray-200 text-gray-500":"bg-emerald-50 border-emerald-200 text-emerald-700"} px-2 py-1 rounded border justify-start items-center gap-1.5 flex overflow-hidden`]),$(()=>{let x;return k((x=K($(()=>H(k(c("div",{className:"text-sm font-medium leading-tight",children:vo(e)})),$(()=>k(t?c("div",{className:"text-red-500 text-sm font-medium leading-tight",children:"*"}):Se()))))),["children",y.Children.toArray(Array.from(x))]))}))))))],["children",y.Children.toArray(Array.from(d))])]))),c("div",w(g([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(f=[$a(16,12)],["children",y.Children.toArray(Array.from(f))])]))),c("div",w(g([["className","w-[230px] h-[38px] px-3 justify-start items-center gap-2 flex"],(p=[sp(g([new pi(0,[_]),new pi(1,[x=>{Wn(E=>{s(E[0])},Ti(Js(E=>E[1].fields[0]===x?te(E[2],new Mn(0,[])):!1,v)))}]),new pi(2,[[c("div",w(g([["className","relative w-full"],(m=[ap(K($(()=>{let x;return H(k(new Ws(0,[`${x=t&&n,x&&r==null?"outline-red-300":"outline-gray-300"} grid w-full grid-cols-1 rounded-md bg-white hover:bg-gray-50 py-1.5 pl-3 pr-2 text-left text-gray-900 text-sm outline outline-1 -outline-offset-1 focus:outline focus:outline-2 focus:outline-blue-600 focus:-outline-offset-2`])),$(()=>{let E;return k(new Ws(1,[[c("span",w(K($(()=>{let T;const I=t&&n;return T=r!=null?[_,""]:I?["Select a field","text-red-900"]:["Select a field","text-gray-500"],H(k(["className",`${T[1]} col-start-1 row-start-1 truncate pr-6`]),$(()=>k(["children",T[0]])))})))),c("span",w(g([["className","col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4"],(E=[dp(20,20)],["children",y.Children.toArray(Array.from(E))])])))]]))}))}))),up(K($(()=>k(new lp(`z-10 absolute ${o.tag===1?"-mt-[226px]":"mt-0.5"} max-h-48 w-full overflow-auto rounded-md border border-gray-300 shadow-gray-300 shadow-lg bg-white py-1 text-sm`)))),K($(()=>ra(x=>{const E=x[2],T=x[1].fields[0];return k(cp(g([new vn(0,[pn(x[0].fields[0])]),new vn(1,[T]),new vn(2,[te(E,new Mn(1,[]))]),new vn(3,["relative select-none"]),new vn(4,[I=>[c("span",{className:"px-4 py-2 block truncate "+(E.tag===0?I.active?"bg-primary-600 text-white":"text-gray-700":"text-gray-700 opacity-50 cursor-not-allowed"),children:T})]])])))},v))))],["children",y.Children.toArray(Array.from(m))])])))]])]))],["children",y.Children.toArray(Array.from(p))])]))),c("div",w(g([(h="pl-1 justify-center items-center gap-2.5 flex text-gray-500 text-xs font-normal underline leading-none",["className",h]),(b=[c("button",w(K($(()=>H(k(["children","Clear"]),$(()=>H(a==null?k(["className","opacity-50 cursor-not-allowed"]):k(["className","cursor-pointer py-3 hover:text-gray-700"]),$(()=>{const x=a;if(x==null)return ht();{const E=x;return k(["onClick",T=>{E()}])}})))))))),c("button",w(K($(()=>H(k(["children","Preview"]),$(()=>H(l==null?k(["className","opacity-50 cursor-not-allowed"]):k(["className","cursor-pointer py-3 hover:text-gray-700"]),$(()=>{const x=l;if(x==null)return ht();{const E=x;return k(["onClick",T=>{E()}])}}))))))))],["children",y.Children.toArray(Array.from(b))])])))],["children",y.Children.toArray(Array.from(u))])])))}function fp(e,t){let n,r;return c("svg",w(g([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=ue(c("path",w(g([["clipRule","evenodd"],["fill-rule","evenodd"],(r="M6.3001 1.40002C6.03495 1.40002 5.79257 1.54983 5.674 1.78697L5.16747 2.80002H2.8001C2.4135 2.80002 2.1001 3.11342 2.1001 3.50002C2.1001 3.88662 2.4135 4.20002 2.8001 4.20002L2.8001 11.2C2.8001 11.9732 3.4269 12.6 4.2001 12.6H9.80009C10.5733 12.6 11.2001 11.9732 11.2001 11.2V4.20002C11.5867 4.20002 11.9001 3.88662 11.9001 3.50002C11.9001 3.11342 11.5867 2.80002 11.2001 2.80002H8.83272L8.32619 1.78697C8.20762 1.54983 7.96523 1.40002 7.70009 1.40002H6.3001ZM4.9001 5.60002C4.9001 5.21342 5.2135 4.90002 5.60009 4.90002C5.98669 4.90002 6.30009 5.21342 6.30009 5.60002V9.80002C6.30009 10.1866 5.98669 10.5 5.60009 10.5C5.2135 10.5 4.9001 10.1866 4.9001 9.80002V5.60002ZM8.40009 4.90002C8.01349 4.90002 7.70009 5.21342 7.70009 5.60002V9.80002C7.70009 10.1866 8.01349 10.5 8.40009 10.5C8.78669 10.5 9.10009 10.1866 9.10009 9.80002V5.60002C9.10009 5.21342 8.78669 4.90002 8.40009 4.90002Z",["d",r]),["fill","#9CA3AF"]])))),["children",y.Children.toArray(Array.from(n))])])))}function Gu(e,t){let n,r;return c("svg",w(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=ue(c("path",w(g([(r="M9.99992 0.833328C4.94575 0.833328 0.833252 4.94583 0.833252 10C0.833252 15.0542 4.94575 19.1667 9.99992 19.1667C15.0541 19.1667 19.1666 15.0542 19.1666 10C19.1666 4.94583 15.0541 0.833328 9.99992 0.833328ZM8.37409 14.5525L4.65492 10.8333L5.83325 9.655L8.29242 12.1142L14.0883 5.49083L15.3424 6.58833L8.37409 14.5525Z",["d",r]),["fill","#10B981"]])))),["children",y.Children.toArray(Array.from(n))])])))}function mp(e){let t,n,r;return c("div",w(g([["className","w-full h-[52px] p-4 bg-emerald-50 rounded-md justify-start items-center gap-3 inline-flex"],(t=[c("span",w(g([["className","text-emerald-700"],(n=[Gu(20,20)],["children",y.Children.toArray(Array.from(n))])]))),c("div",w(g([["className","grow shrink basis-0 h-5 justify-start items-center gap-3 flex"],(r=[c("div",{className:"grow shrink basis-0 text-emerald-800 text-sm font-medium leading-tight",children:e})],["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(t))])])))}function zu(e,t){let n,r;return c("svg",w(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=ue(c("path",w(g([(r="M8.83429 0.234315C9.14671 -0.0781049 9.65324 -0.0781049 9.96566 0.234315L13.1657 3.43431C13.4781 3.74673 13.4781 4.25327 13.1657 4.56569L9.96566 7.76569C9.65324 8.0781 9.14671 8.0781 8.83429 7.76569C8.52187 7.45327 8.52187 6.94673 8.83429 6.63432L10.6686 4.8H1.39998C0.958148 4.8 0.599976 4.44183 0.599976 4C0.599976 3.55817 0.958148 3.2 1.39998 3.2H10.6686L8.83429 1.36569C8.52187 1.05327 8.52187 0.546734 8.83429 0.234315Z",["d",r]),["fill","white"]])))),["children",y.Children.toArray(Array.from(n))])])))}function b6(e){return e.startsWith("614")&&e.length===11?`+${e}`:e}function _6(e){return e.startsWith("4")&&e.length===9?`+614${e.slice(1,e.length)}`:e.startsWith("04")&&e.length===10?`+614${e.slice(2,e.length)}`:e}function hp(e){return _6(b6(Xf(e," ","")))}function x6(e,t,n){let r,i,o,s,a,l,u,d;return c("div",w(g([["className","w-80 py-6 justify-start items-center gap-2.5 flex"],(r=[c("div",w(g([(i="grow shrink basis-0 p-4 bg-white rounded-lg shadow-lg border border-gray-100 flex-col justify-start items-start gap-3 inline-flex overflow-hidden",["className",i]),(o=[c("div",w(g([["className","flex justify-between w-full"],(s=[c("span",{className:"text-black text-base font-semibold leading-normal",children:`Previewing “${vo(e)}”`}),c("button",w(g([["onClick",f=>{n()}],["type","button"],["className","text-gray-600"],(a=[Gr(24,24)],["children",y.Children.toArray(Array.from(a))])])))],["children",y.Children.toArray(Array.from(s))])]))),c("div",w(g([["className","self-stretch bg-white flex-col justify-start items-start flex overflow-hidden"],(l=[c("div",w(g([["className","self-stretch flex-col justify-center items-start flex"],(u=m0((f,p)=>c("div",w(K($(()=>H(k(["className",`${f%2===0?"bg-white":"bg-gray-50"} self-stretch h-10 px-3 py-3.5 border-b border-gray-200 justify-start items-center gap-1 inline-flex overflow-hidden`]),$(()=>{let m;return k((m=K($(()=>{const h=Ni(p);return k(h?c("i",{className:"grow shrink text-gray-500 text-sm font-normal leading-tight",children:"(empty)"}):c("div",w(K($(()=>H(k(["className","grow shrink text-gray-700 text-sm font-medium leading-tight"]),$(()=>e.tag===3?k(["children",hp(p)]):k(["children",p]))))))))})),["children",y.Children.toArray(Array.from(m))]))})))))),t),["children",y.Children.toArray(Array.from(u))])])))],["children",y.Children.toArray(Array.from(l))])]))),c("div",w(g([["className","self-stretch pt-2 justify-center items-center gap-2.5 inline-flex"],(d=[c("div",{className:"grow shrink basis-0 text-gray-500 text-sm font-normal leading-tight",children:"Showing first 10 rows only"})],["children",y.Children.toArray(Array.from(d))])])))],["children",y.Children.toArray(Array.from(o))])])))],["children",y.Children.toArray(Array.from(r))])])))}function C6(e){let t,n,r;const i=e.sendAnalytics,o=e.back,s=e.next,a=e.dataRows,l=e.headerRow,u=e.existingMappings;let d;const f=cx(l,u);d=Wr(()=>Ur(()=>f,(T,I)=>dx(i,l,a,T,I),(T,I)=>{}),void 0,void 0);const p=d[0],m=d[1],h=y.useState(!1),b=h[1],v=y.useState(!1),_=v[0],x=T=>{if(lx(p)(T))return()=>{m(new Zn(1,[T]))}},E=T=>{if(ux(p,T))return()=>{m(new Zn(2,[T]))}};return c("div",w(g([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12 h-full"],(t=[y6(h[0],()=>{b(!1)}),Na("Map fields"),Ta("Match the fields from your CSV to the corresponding destination fields."),c("div",w(g([["className","flex flex-row pt-3 gap-2"],(n=[Co("What is mapping and why is it important?",()=>{b(!0)})],["children",y.Children.toArray(Array.from(n))])]))),c("div",w(g([["className","justify-start items-start gap-12 inline-flex"],(r=K($(()=>{let T;return H(k(c("div",w(g([["className","w-[640px] pt-6 flex-col justify-start items-start gap-4 inline-flex"],(T=K($(()=>H(u==null?k(rp()):k(Se()),$(()=>H(_&&p.Status.tag===0?k(op("Some required fields are incomplete. Fill in all required fields to continue.")):k(Se()),$(()=>{let I,O,P,S,C,A,N,D;return k(c("div",w(g([["className","flex-col justify-start items-start inline-flex overflow-hidden"],(I=[c("div",w(g([(O="w-[640px] h-16 pt-6 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 inline-flex",["className",O]),(P=[c("div",w(g([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(S=[c("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Destination fields"}),c("div",w(K($(()=>H(k(["className",`${p.NumberOfDestinationFieldsMapped===5?"bg-emerald-100 text-emerald-800":"bg-blue-100 text-blue-800"} px-2.5 py-0.5 rounded-[10px] justify-center items-center flex`]),$(()=>{let F;return k((F=[c("div",{className:"text-center text-xs font-medium leading-none",children:`${p.NumberOfDestinationFieldsMapped} of 5 mapped`})],["children",y.Children.toArray(Array.from(F))]))}))))))],["children",y.Children.toArray(Array.from(S))])]))),c("div",{className:"w-5 h-5 px-3 py-3.5"}),c("div",w(g([["className","w-[260px] h-10 px-3 py-3.5 justify-start items-center gap-1 flex overflow-hidden"],(C=[c("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Incoming CSV fields"}),c("div",w(g([["className","px-2.5 py-0.5 bg-gray-100 rounded-[10px] justify-center items-center flex"],(A=[c("div",{className:"text-center text-gray-800 text-xs font-medium leading-none",children:`${p.NumberOfDestinationFieldsMapped} of ${p.NumberOfIncomingFields} used`})],["children",y.Children.toArray(Array.from(A))])])))],["children",y.Children.toArray(Array.from(C))])])))],["children",y.Children.toArray(Array.from(P))])]))),c("div",w(g([["className","w-[640px] pt-2 pb-24 flex-col justify-start items-start gap-2 flex overflow-hidden"],(N=[c("div",w(ue((D=K($(()=>H(k(io(new ne(0,[]),!0,_,p.FirstName.ColumnIndex,p.FirstName.IncomingFields,new ro(0,[]),F=>{let j;m((j=[new ne(0,[]),F],new Zn(0,[j[0],j[1]])))},x(new ne(0,[])),E(new ne(0,[])))),$(()=>H(k(io(new ne(1,[]),!0,_,p.LastName.ColumnIndex,p.LastName.IncomingFields,new ro(0,[]),F=>{let j;m((j=[new ne(1,[]),F],new Zn(0,[j[0],j[1]])))},x(new ne(1,[])),E(new ne(1,[])))),$(()=>H(k(io(new ne(2,[]),!0,_,p.Email.ColumnIndex,p.Email.IncomingFields,new ro(0,[]),F=>{let j;m((j=[new ne(2,[]),F],new Zn(0,[j[0],j[1]])))},x(new ne(2,[])),E(new ne(2,[])))),$(()=>H(k(io(new ne(3,[]),!1,_,p.MobilePhone.ColumnIndex,p.MobilePhone.IncomingFields,new ro(0,[]),F=>{let j;m((j=[new ne(3,[]),F],new Zn(0,[j[0],j[1]])))},x(new ne(3,[])),E(new ne(3,[])))),$(()=>H(k(io(new ne(4,[]),!1,_,p.EmploymentBasis.ColumnIndex,p.EmploymentBasis.IncomingFields,new ro(1,[]),F=>{let j;m((j=[new ne(4,[]),F],new Zn(0,[j[0],j[1]])))},x(new ne(4,[])),E(new ne(4,[])))),$(()=>{let F,j,se,X,J,L;return H(p.NumberOfIncomingFieldsDiscarded===0?k(Se()):k(c("div",w(g([["className","h-16 pr-3 pt-2 pb-4 rounded-lg justify-start items-start gap-2 inline-flex"],(F=[c("div",w(g([["className","h-10 bg-gray-100 rounded-lg justify-start items-center gap-2 flex"],(j=[c("div",w(g([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(se=[fp(14,14),c("div",{className:"text-gray-500 text-sm font-medium leading-tight",children:"Discarded"})],["children",y.Children.toArray(Array.from(se))])]))),c("div",w(g([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(X=[$a(16,12)],["children",y.Children.toArray(Array.from(X))])]))),c("div",w(g([["className","flex-col justify-start items-start gap-2 inline-flex"],(J=[c("div",w(g([["className","w-[218px] pl-3 items-center inline-flex"],(L=[c("div",w(K($(()=>H(k(["className","text-gray-500 text-sm font-medium"]),$(()=>{const G=p.NumberOfIncomingFieldsDiscarded|0;return k(G===1?["children","Remaining 1 unused field"]:["children",`Remaining ${G} unused fields`])}))))))],["children",y.Children.toArray(Array.from(L))])])))],["children",y.Children.toArray(Array.from(J))])])))],["children",y.Children.toArray(Array.from(j))])])))],["children",y.Children.toArray(Array.from(F))])])))),$(()=>{let G;return k(c("div",w(g([["className","w-[640px] pt-4 border-t border-gray-200 flex-col justify-start items-start flex"],(G=K($(()=>H(p.NumberOfDestinationFieldsMapped===5?k(mp("All destination fields have been mapped. You’re good to go.")):k(Se()),$(()=>{let B,ce,q,R,fe,U,Ae,ge,Y;return k(c("div",w(g([["className","h-[58px] pt-2 justify-start items-end gap-2 inline-flex w-full"],(B=[c("div",w(g([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(ce=[c("div",w(g([["className","grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"],(q=[c("div",w(g([["className","grow shrink basis-0 text-right"],(R=[c("span",{className:"text-gray-500 text-xs font-normal leading-none",children:"Destination fields marked with "}),c("span",{className:"text-red-600 text-xs font-normal leading-none",children:"*"}),c("span",{className:"text-gray-500 text-xs font-normal leading-none",children:" are required"})],["children",y.Children.toArray(Array.from(R))])])))],["children",y.Children.toArray(Array.from(q))])]))),c("div",w(g([["className","justify-start items-center gap-2 flex"],(fe=[c("button",w(g([(U="px-[13px] py-[9px] bg-white hover:bg-gray-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",U]),["onClick",Ce=>{o(p.Status)}],(Ae=[c("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",y.Children.toArray(Array.from(Ae))])]))),c("button",w(g([(ge="pl-[13px] pr-[11px] py-[9px] bg-primary-600 hover:enabled:bg-primary-700 disabled:opacity-50 rounded-md shadow-sm justify-center items-center gap-2 flex overflow-hidden",["className",ge]),["disabled",_&&p.Status.tag===0],["onClick",Ce=>{const ye=p.Status;ye.tag===0?v[1](!0):s([ye.fields[0],ye.fields[1]])}],(Y=[c("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:p.EmploymentBasis.ColumnIndex==null?"Next":"Map values"}),zu(13,8)],["children",y.Children.toArray(Array.from(Y))])])))],["children",y.Children.toArray(Array.from(fe))])])))],["children",y.Children.toArray(Array.from(ce))])])))],["children",y.Children.toArray(Array.from(B))])]))))})))),["children",y.Children.toArray(Array.from(G))])]))))}))})))))))))))),["children",y.Children.toArray(Array.from(D))]))))],["children",y.Children.toArray(Array.from(N))])])))],["children",y.Children.toArray(Array.from(I))])]))))})))))),["children",y.Children.toArray(Array.from(T))])])))),$(()=>{const I=p.Preview;return I==null?k(Se()):k(x6(I[0],I[1],()=>{m(new Zn(3,[]))}))}))})),["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(t))])])))}class os extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UploadingCsv","MappingColumns","MappingEmploymentBasis","Reviewing"]}}class tl extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Reviewing","MappingEmploymentBasis","MappingColumns"]}}let yr=class extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Next","Back"]}},ss=class extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Add","Clear","Remove","Set"]}},S6=class extends _e{constructor(t,n,r,i,o,s,a){super(),this.IncomingValues=t,this.Selections=n,this.NumberOfIncomingValuesUsed=r|0,this.NumberOfDestinationValuesMapped=i|0,this.DiscardedValues=o,this.ValidatedMappings=s,this.Prefilled=a}};class So extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Available","Unavailable"]}}const Qn=[void 0];function pp(e,t,n){let r;const i=t.fields[0],o=Xt(s=>s,Ts(Dc(n)));return new S6(et(s=>[s,$i(s,o,{Equals:te,GetHashCode:Cs})?new So(1,[]):new So(0,[])],i),n,o.length,Bg(na(s=>{let a;return a=Xt(l=>l,s),a.length!==0},Dc(n))),Rm(o,i,{Equals:te,GetHashCode:Cs}),(r=g(Xt(s=>s,Ts(Le(s=>et(a=>{if(a!=null)return[s[0],a]},s[1]),n)))),Te(r)?void 0:new K_(le(r),mr(Me(r)))),e)}function E6(e,t){const n=t.tag===1?["parttime"]:t.tag===2?["casual"]:t.tag===3?["labourhire"]:["fulltime"];return e.fields[0].filter(r=>$i(tu(r.fields[0],"[^a-zA-Z]","").toLocaleLowerCase(),n,{Equals:(i,o)=>i===o,GetHashCode:fr}))}function A6(e,t){let n;if(t==null){let r=!1;const i=o=>{const s=E6(e,o);return!Dr(te,s,Se())&&s.length===0?Qn:(r=!0,et(a=>a,s))};n=[ui([[new mt(0,[]),i(new mt(0,[]))],[new mt(1,[]),i(new mt(1,[]))],[new mt(2,[]),i(new mt(2,[]))],[new mt(3,[]),i(new mt(3,[]))]],{Compare:Et}),r]}else{const r=t,i=ui(et(o=>[o[0],et(s=>s[1],ug(o[1],{Compare:Jl}))],U_(o=>o[0],Ts([r.Tail,[r.Head]]),{Equals:te,GetHashCode:Cs})),{Compare:Et});n=[ui([[new mt(0,[]),Xe(Ar(i,new mt(0,[])),Qn)],[new mt(1,[]),Xe(Ar(i,new mt(1,[])),Qn)],[new mt(2,[]),Xe(Ar(i,new mt(2,[])),Qn)],[new mt(3,[]),Xe(Ar(i,new mt(3,[])),Qn)]],{Compare:Et}),!1]}return[pp(n[1],e,n[0]),we()]}function gp(e,t){const n=Rr(e.Selections,t);let r;switch(!Dr(te,n,Se())&&n.length===1&&he(0,n)!=null?r=0:r=1,r){case 0:return!0;default:return!1}}function wp(e,t){let n;return e.DiscardedValues.length>0?(n=Rr(e.Selections,t),!n.some(r=>r==null)):!1}function k6(e,t,n){const r=Rr(e.Selections,t);return!Dr(te,r,Se())&&r.length===1?!1:$i(n,r,{Equals:te,GetHashCode:on})}function N6(e,t,n,r){return!te(n,r)&&e.IncomingValues.some(i=>te(i[0],r)?te(i[1],new So(0,[])):!1)?$i(n,Rr(e.Selections,t),{Equals:te,GetHashCode:on}):!1}function T6(e,t,n){let r,i;const o=h=>pp(n.Prefilled,e,h);let s,a,l,u,d,f,p,m;switch(t.tag){case 1:{gp(n,t.fields[0])?(s=1,l=t.fields[0]):s=4;break}case 2:{k6(n,t.fields[0],t.fields[1])?(s=2,u=t.fields[0],d=t.fields[1]):s=4;break}case 3:{N6(n,t.fields[0],t.fields[1],t.fields[2])?(s=3,f=t.fields[0],p=t.fields[1],m=t.fields[2]):s=4;break}default:wp(n,t.fields[0])?(s=0,a=t.fields[0]):s=4}switch(s){case 0:return[o(es(a,h=>_t(b=>f0(b,Qn),h),n.Selections)),we()];case 1:return[o(es(l,h=>_t(b=>Qn,h),n.Selections)),we()];case 2:return[o(es(u,(r=(i=[d],h=>Rm(i,h,{Equals:te,GetHashCode:on})),h=>_t(r,h)),n.Selections)),we()];case 3:return[o(es(f,h=>_t(b=>et(v=>te(v,p)?m:v,b),h),n.Selections)),we()];default:return[n,we()]}}function $6(e,t){let n,r;return c("svg",w(g([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=ue(c("path",w(g([["clipRule","evenodd"],["fill-rule","evenodd"],(r="M6.9999 12.6C10.0927 12.6 12.5999 10.0928 12.5999 7.00002C12.5999 3.90723 10.0927 1.40002 6.9999 1.40002C3.90711 1.40002 1.3999 3.90723 1.3999 7.00002C1.3999 10.0928 3.90711 12.6 6.9999 12.6ZM7.6999 4.90002C7.6999 4.51342 7.3865 4.20002 6.9999 4.20002C6.6133 4.20002 6.2999 4.51342 6.2999 4.90002V6.30002H4.8999C4.5133 6.30002 4.1999 6.61342 4.1999 7.00002C4.1999 7.38662 4.5133 7.70002 4.8999 7.70002H6.2999V9.10002C6.2999 9.48662 6.6133 9.80002 6.9999 9.80002C7.3865 9.80002 7.6999 9.48662 7.6999 9.10002V7.70002H9.0999C9.4865 7.70002 9.7999 7.38662 9.7999 7.00002C9.7999 6.61342 9.4865 6.30002 9.0999 6.30002H7.6999V4.90002Z",["d",r]),["fill","currentColor"]])))),["children",y.Children.toArray(Array.from(n))])])))}function M6(e,t,n,r,i,o,s){let a,l,u,d,f,p;return c("div",w(g([["key",nt(e)],["className","justify-start items-start gap-2 inline-flex"],(a=[c("div",w(g([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(l=[c("div",w(g([["className",At(" ",K($(()=>H(Dr(te,t,Qn)?k("bg-gray-50 border-gray-200 text-gray-500"):k("bg-emerald-50 border-emerald-200 text-emerald-700"),$(()=>k("px-2 py-1 rounded border justify-start items-center gap-1.5 flex overflow-hidden"))))))],(u=[c("div",{className:"text-sm font-medium leading-tight",children:Om(e)})],["children",y.Children.toArray(Array.from(u))])])))],["children",y.Children.toArray(Array.from(l))])]))),c("div",w(g([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(d=[$a(16,12)],["children",y.Children.toArray(Array.from(d))])]))),c("div",w(g([["className","px-3 justify-start items-center gap-2 flex flex-col"],(f=[c("div",w(ue((p=K($(()=>Le(m=>{let h,b,v;return c("div",w(g([["className","mt-1 justify-start items-start gap-2 flex flex-inline"],(h=[c("div",w(g([["className","justify-start items-end flex flex-col w-[206px]"],(b=K($(()=>H(k(sp(K($(()=>{const _=Qf(_t(x=>x.fields[0],m));return H(k(new pi(0,[_])),$(()=>H(k(new pi(1,[x=>{Wn(E=>{s([m,E[0]])},Ti(Js(E=>E[0].fields[0]===x?te(E[1],new So(0,[])):!1,n)))}])),$(()=>{let x,E;return k(new pi(2,[[c("div",w(g([["className","relative w-full"],(x=[ap(g([new Ws(0,["outline-gray-300 grid w-full grid-cols-1 rounded-md bg-white hover:bg-gray-50 py-1.5 pl-3 pr-2 text-left text-gray-900 text-sm outline outline-1 -outline-offset-1 focus:outline focus:outline-2 focus:outline-blue-600 focus:-outline-offset-2"]),new Ws(1,[[c("span",w(K($(()=>{const T=m!=null?[_,""]:["Select a value","text-gray-500"];return H(k(["className",`${T[1]} col-start-1 row-start-1 truncate pr-6`]),$(()=>k(["children",T[0]])))})))),c("span",w(g([["className","col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4"],(E=[dp(20,20)],["children",y.Children.toArray(Array.from(E))])])))]])])),up(ue(new lp("z-10 absolute mt-0.5 max-h-48 w-full overflow-auto rounded-md border border-gray-300 shadow-gray-300 shadow-lg bg-white py-1 text-sm")),K($(()=>ra(T=>{const I=T[1],O=T[0].fields[0];return k(cp(g([new vn(0,[O]),new vn(1,[O]),new vn(2,[te(I,new So(1,[]))&&O!==_]),new vn(3,["relative select-none"]),new vn(4,[P=>[c("span",{className:At(" ",K($(()=>H(k("px-4 py-2 block truncate"),$(()=>{const S=P.active;let C;switch(P.selected?S?C=2:C=1:I.tag===1?C=0:S?C=2:C=1,C){case 0:return k("text-gray-700 opacity-50 cursor-not-allowed");case 1:return k("text-gray-700");default:return k("bg-primary-600 text-white")}}))))),children:O})]])])))},n))))],["children",y.Children.toArray(Array.from(x))])])))]]))}))))})))),$(()=>te(m,og(t))?k(c("button",w(K($(()=>{let _;return H(k((_=[$6(14,14),c("span",{children:["Map additional value"]})],["children",y.Children.toArray(Array.from(_))])),$(()=>H(k(["className",At(" ",K($(()=>H(k("py-2 justify-end items-center inline-flex text-gray-500 text-xs font-normal gap-1"),$(()=>i==null?k("opacity-50 cursor-not-allowed underline"):k("cursor-pointer underline hover:text-gray-700"))))))]),$(()=>{const x=i;if(x==null)return ht();{const E=x;return k(["onClick",T=>{E()}])}}))))}))))):ht())))),["children",y.Children.toArray(Array.from(b))])]))),c("div",w(g([["className","text-gray-500 text-xs font-normal pl-1"],(v=K($(()=>{if(o!=null){const _=o;return k(c("button",{children:"Remove",className:"cursor-pointer underline py-2 hover:text-gray-700",onClick:x=>{_(m)}}))}else return k(c("button",w(K($(()=>H(k(["children","Clear"]),$(()=>H(r==null?k(["className","opacity-50 underline cursor-not-allowed mt-2"]):k(["className","cursor-pointer underline py-2 hover:text-gray-700"]),$(()=>{const _=r;if(_==null)return ht();{const x=_;return k(["onClick",E=>{x()}])}})))))))))})),["children",y.Children.toArray(Array.from(v))])])))],["children",y.Children.toArray(Array.from(h))])])))},t))),["children",y.Children.toArray(Array.from(p))]))))],["children",y.Children.toArray(Array.from(f))])])))],["children",y.Children.toArray(Array.from(a))])])))}function I6(e){let t,n,r;const i=e.back,o=e.next,s=e.employmentBasisColumn,a=e.existingMappings;let l;const u=A6(s,a);l=Wr(()=>Ur(()=>u,(h,b)=>T6(s,h,b),(h,b)=>{}),void 0,void 0);const d=l[0],f=l[1],p=y.useState(!1),m=p[0];return c("div",w(g([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12 h-full"],(t=[Na("Map values - Employment basis"),Ta("Match the values from your CSV to the corresponding destination values."),c("div",w(g([["className","justify-start items-start gap-12 inline-flex"],(n=[c("div",w(g([["className","w-[640px] pt-6 flex-col justify-start items-start gap-4 inline-flex"],(r=K($(()=>H(d.Prefilled?k(rp()):k(Se()),$(()=>H(m&&d.ValidatedMappings==null?k(op("Map at least one value to continue.")):k(Se()),$(()=>{let h,b,v,_,x,E,T,I,O;return k(c("div",w(g([["className","flex-col justify-start items-start inline-flex overflow-hidden"],(h=[c("div",w(g([(b="w-[640px] h-16 pt-6 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 inline-flex",["className",b]),(v=[c("div",w(g([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(_=[c("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Destination values"}),c("div",w(g([["className",At(" ",K($(()=>H(d.NumberOfDestinationValuesMapped===4?k("bg-emerald-100 text-emerald-800"):k("bg-blue-100 text-blue-800"),$(()=>k("px-2.5 py-0.5 rounded-[10px] justify-center items-center flex"))))))],(x=[c("div",{className:"text-center text-xs font-medium leading-none",children:`${d.NumberOfDestinationValuesMapped} of 4 mapped`})],["children",y.Children.toArray(Array.from(x))])])))],["children",y.Children.toArray(Array.from(_))])]))),c("div",{className:"w-5 h-5 px-3 py-3.5"}),c("div",w(g([["className","w-[260px] h-10 px-3 py-3.5 justify-start items-center gap-1 flex overflow-hidden"],(E=[c("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Incoming CSV values"}),c("div",w(g([["className","px-2.5 py-0.5 bg-gray-100 rounded-[10px] justify-center items-center flex"],(T=[c("div",{className:"text-center text-gray-800 text-xs font-medium leading-none",children:`${d.NumberOfIncomingValuesUsed} of ${d.IncomingValues.length} used`})],["children",y.Children.toArray(Array.from(T))])])))],["children",y.Children.toArray(Array.from(E))])])))],["children",y.Children.toArray(Array.from(v))])]))),c("div",w(g([["className","w-[640px] pt-2 pb-24 flex-col justify-start items-start gap-2 flex overflow-hidden"],(I=[c("div",w(ue((O=K($(()=>H(ra(P=>{let S,C,A;const N=P[0];return k(M6(N,P[1],d.IncomingValues,(S=N,gp(d,S)?()=>{f(new ss(1,[S]))}:void 0),(C=N,wp(d,C)?()=>{f(new ss(0,[C]))}:void 0),(A=N,Rr(d.Selections,A).length>1?D=>{let F;f((F=[A,D],new ss(2,[F[0],F[1]])))}:void 0),D=>{let F;f((F=[N,D[0],D[1]],new ss(3,[F[0],F[1],F[2]])))}))},$w(d.Selections)),$(()=>{let P,S,C,A,N,D;return H(d.DiscardedValues.length===0?k(Se()):k(c("div",w(g([["className","pr-3 pt-2 pb-4 rounded-lg justify-start items-start gap-2 inline-flex"],(P=[c("div",w(g([["className","py-3 bg-gray-100 rounded-lg justify-start items-center gap-2 flex"],(S=[c("div",w(g([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(C=[fp(14,14),c("div",{className:"text-gray-500 text-sm font-medium leading-tight",children:"Discarded"})],["children",y.Children.toArray(Array.from(C))])]))),c("div",w(g([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(A=[$a(16,12)],["children",y.Children.toArray(Array.from(A))])]))),c("div",w(g([["className","flex-col justify-start items-start gap-2 inline-flex"],(N=[c("div",w(g([["className","w-[218px] pl-3 flex flex-col text-gray-500 text-sm"],(D=K($(()=>H(k(c("div",w(K($(()=>H(k(["className","font-medium"]),$(()=>{const F=d.DiscardedValues.length|0;return k(F===1?["children","Remaining 1 unused field:"]:["children",`Remaining ${F} unused fields:`])}))))))),$(()=>{let F;return k(c("ul",w(g([["className","pl-2 font-normal overflow-hidden list-inside list-disc"],(F=et(j=>c("li",{children:[j]}),Ts(jn($(()=>H(k(et(j=>j.fields[0],d.DiscardedValues.slice(void 0,8))),$(()=>d.DiscardedValues.length>8?k(["... and 0 other values"]):ht())))))),["children",y.Children.toArray(Array.from(F))])]))))})))),["children",y.Children.toArray(Array.from(D))])])))],["children",y.Children.toArray(Array.from(N))])])))],["children",y.Children.toArray(Array.from(S))])])))],["children",y.Children.toArray(Array.from(P))])])))),$(()=>{let F;return k(c("div",w(g([["className","w-[640px] pt-4 border-t border-gray-200 flex-col justify-start items-start flex"],(F=K($(()=>H(d.DiscardedValues.length===0?k(mp("All incoming values have been mapped.")):k(Se()),$(()=>{let j,se,X,J,L,G,B;return k(c("div",w(g([["className","h-[58px] pt-2 justify-start items-end gap-2 inline-flex w-full"],(j=[c("div",w(g([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(se=[c("div",{className:"grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"}),c("div",w(g([["className","justify-start items-center gap-2 flex"],(X=[c("button",w(g([(J="px-[13px] py-[9px] bg-white hover:bg-gray-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",J]),["onClick",ce=>{i(d.ValidatedMappings)}],(L=[c("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",y.Children.toArray(Array.from(L))])]))),c("button",w(g([(G="pl-[13px] pr-[11px] py-[9px] bg-primary-600 hover:enabled:bg-primary-700 disabled:opacity-50 rounded-md shadow-sm justify-center items-center gap-2 flex overflow-hidden",["className",G]),["disabled",m&&d.ValidatedMappings==null],["onClick",ce=>{const q=d.ValidatedMappings;q==null?p[1](!0):o(q)}],(B=[c("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:"Review"}),zu(13,8)],["children",y.Children.toArray(Array.from(B))])])))],["children",y.Children.toArray(Array.from(X))])])))],["children",y.Children.toArray(Array.from(se))])])))],["children",y.Children.toArray(Array.from(j))])]))))})))),["children",y.Children.toArray(Array.from(F))])]))))}))})))),["children",y.Children.toArray(Array.from(O))]))))],["children",y.Children.toArray(Array.from(I))])])))],["children",y.Children.toArray(Array.from(h))])]))))})))))),["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}class D6 extends _e{constructor(t,n,r,i,o,s,a,l,u){super(),this.RowNumber=t|0,this.FirstName=n,this.LastName=r,this.Email=i,this.MobilePhone=o,this.EmploymentBasis=s,this.HasDuplicateEmailError=a,this.HasErrorOtherThanDuplicateEmail=l,this.Errors=u}}class of extends _e{constructor(t,n){super(),this.Summary=t,this.Details=n}}function as(e){if(!Ni(e))return e}function yp(e,t,n){const r=n!=null?[n[0].fields[0].fields[0],X_(n[1])]:void 0;return g(et(i=>{let o,s,a,l,u,d,f,p,m,h,b,v,_,x,E,T,I;const O=i.fields[0];return ui(Xt(P=>P,[(o=as(he(t.FirstName.fields[0],O)),o==null?void 0:(s=o,[Cr(new ne(0,[])),s])),(a=as(he(t.LastName.fields[0],O)),a==null?void 0:(l=a,[Cr(new ne(1,[])),l])),(u=as(he(t.Email.fields[0],O)),u==null?void 0:(d=u,[Cr(new ne(2,[])),d])),(f=(p=t.MobilePhone,p==null?void 0:(m=as(he(p.fields[0],O)),m==null?void 0:hp(m))),f==null?void 0:(h=f,[Cr(new ne(3,[])),h])),(b=(v=r,v==null?void 0:(_=v,x=(E=he(_[0],O),T=Se(),[Nw(_[1],E,new Ct(()=>T,P=>{T=P})),T]),x[0]?x[1]:void 0)),b==null?void 0:(I=b,[Cr(new ne(4,[])),I]))]),{Compare:Br})},e.fields[0]))}function R6(e,t,n){const r=Cr(n);return[Ar(e.Data,r),!uu(i=>i.PropName===r,t)]}function O6(e,t){const n=Lm(t.PropName);if(n==null)return["Invalid or missing field",!1];{const r=n,i=vo(r).toLocaleLowerCase();if(Ar(e.Data,Cr(r))!=null){let s;switch(r.tag===2&&t.Message.startsWith("Duplicate")?s=0:s=1,s){case 0:return[`Duplicate ${i}`,!1];default:return[`Invalid ${i}`,!0]}}else return[`Missing ${i}`,!1]}}function sf(e){const t=Lm(e.PropName);if(t==null)return e.Message;{const n=t;let r;switch(n.tag===2&&e.Message.startsWith("Duplicate")?r=0:r=1,r){case 0:return`${vo(n)} exists in multiple rows`;default:return Xf(e.Message,e.Column,vo(n))}}}function F6(e,t,n,r){return Z.Delay(()=>Z.TryWith(Z.Delay(()=>{let i,o,s;return Z.ReturnFrom((i=new lm(r!=null,lu((a,l)=>new Cu(a+2,l),(o=[t,n,r],yp(o[0],o[1],o[2])))),s=e(i),Z.Bind(s,a=>{let l;const u=a;return l=u.tag===1?new M(1,[u.fields[0]]):new M(0,[sr(d=>{let f,p,m,h,b;const v=Xe((f=w0(x=>x.RowId===d.RowId,u.fields[0].Errors),f==null?void 0:f.FieldErrors),at()),_=x=>R6(d,v,x);return new D6(d.RowId-2+1,_(new ne(0,[])),_(new ne(1,[])),_(new ne(2,[])),_(new ne(3,[])),(p=_(new ne(4,[])),[(m=(h=p[0],h==null?void 0:Z_(h)),m==null?void 0:Om(m)),p[1]]),uu(x=>x.Message.startsWith("Duplicate Email"),v),!Te(Rn(x=>!x.Message.startsWith("Duplicate Email"),v)),Te(v)?void 0:Te(Me(v))?(b=O6(d,le(v)),new of(b[0],b[1]?ue(sf(le(v))):void 0)):new of("Multiple invalid or missing fields",sr(sf,v)))},i.Data)]),Z.Return(l)})))}),i=>Z.Return(new M(1,[nt(i)]))))}function P6(e,t,n,r,i){return Z.Delay(()=>Z.TryWith(Z.Delay(()=>{let o;return Z.Bind(e(new um(r!=null,te(i,new Nt(0,[])),lu((s,a)=>new Cu(s+2,a),(o=[t,n,r],yp(o[0],o[1],o[2]))))),s=>{let a;return Z.Return((a=s,a.tag===1?new M(1,[a.fields[0]]):new M(0,[a.fields[0].ImportId])))})}),o=>Z.Return(new M(1,[nt(o)]))))}let ni=class extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Validated","SetInviteTiming","ShowOnlyRowsWithErrors","PreviewNextPage","PreviewPreviousPage","DownloadedErrorReport"]}},ri=class extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Validating","Reviewing"]}};class oo extends _e{constructor(t,n,r,i,o,s,a,l,u,d,f,p,m){super(),this.Data=t,this.InviteTiming=n,this.DuplicateEmailCount=r|0,this.NumberOfRowsWithErrorsOtherThanDuplicateEmail=i|0,this.NumberOfInvalidRows=o|0,this.NumberOfRows=s|0,this.NumberOfValidRows=a|0,this.ShowingOnlyRowsWithErrors=l,this.HasErrors=u,this.RowFrom=d|0,this.RowTo=f|0,this.Page=p,this.PageNo=m|0}}function L6(e,t,n){return[new ri(0,[]),fm(g([Pn(t,new gn(5,[{RowCount:nx(n)}])),hm(r=>{pm(r)},e,void 0,r=>new ni(0,[r]))]))]}function ls(e,t,n){const r=(e-1)*20|0,i=Eg(r,e*20-1,n?Rn(o=>o.Errors!=null,t):t);if(Te(i))return[0,0,at()];{const o=i;return[r+1,r+tn(o),o]}}function vp(e){return e.PageNo>1}function bp(e){return e.ShowingOnlyRowsWithErrors?e.RowTo<e.NumberOfInvalidRows:e.RowTo<e.NumberOfRows}function V6(e,t){const n=Rn(r=>r.Errors!=null,e.Data);return Io(ue(`Error detail,First name,Last name,Email,Mobile phone${t?",Employment basis":""},Original row #
50
+ `),lu((r,i)=>{const o=Xe(_t(f=>f.Summary,i.Errors),""),s=Xe(i.FirstName[0],""),a=Xe(i.LastName[0],""),l=Xe(i.Email[0],""),u=Xe(i.MobilePhone[0],""),d=r===tn(n)-1?"":`
51
+ `;return t?`${o},${s},${a},${l},${u},${Xe(i.EmploymentBasis[0],"")},${i.RowNumber}${d}`:`${o},${s},${a},${l},${u},${i.RowNumber}${d}`},n))}function H6(e,t,n,r){let i,o,s,a,l,u,d,f,p,m,h;switch(n.tag){case 1:{r.tag===1?(o=2,l=n.fields[0],u=r.fields[0]):(o=7,h=r);break}case 2:{r.tag===1?(i=r.fields[0],i.HasErrors&&i.ShowingOnlyRowsWithErrors!==n.fields[0]?(o=3,d=r.fields[0],f=n.fields[0]):(o=7,h=r)):(o=7,h=r);break}case 3:{r.tag===1&&bp(r.fields[0])?(o=4,p=r.fields[0]):(o=7,h=r);break}case 4:{r.tag===1&&vp(r.fields[0])?(o=5,m=r.fields[0]):(o=7,h=r);break}case 5:{r.tag===1&&r.fields[0].HasErrors?o=6:(o=7,h=r);break}default:n.fields[0].tag===1?r.tag===0?(o=1,a=n.fields[0].fields[0]):(o=7,h=r):r.tag===0?(o=0,s=n.fields[0].fields[0]):(o=7,h=r)}switch(o){case 0:{let b;const v=[s,!1];b=ls(1,v[0],v[1]);const _=tn(Rn(T=>T.Errors==null,s))|0,x=tn(Rn(T=>T.HasDuplicateEmailError,s))|0,E=tn(Rn(T=>T.Errors!=null,s))|0;return[new ri(1,[new oo(s,new Nt(1,[]),x,tn(Rn(T=>T.HasErrorOtherThanDuplicateEmail,s)),E,tn(s),_,!1,uu(T=>T.Errors!=null,s),b[0],b[1],b[2],1)]),Pn(t,new gn(6,[{DuplicateCount:x,RowCount:tn(s),SuccessCount:_,TotalFailedCount:E}]))]}case 1:return[r,Pn(e,a)];case 2:return[new ri(1,[new oo(u.Data,l,u.DuplicateEmailCount,u.NumberOfRowsWithErrorsOtherThanDuplicateEmail,u.NumberOfInvalidRows,u.NumberOfRows,u.NumberOfValidRows,u.ShowingOnlyRowsWithErrors,u.HasErrors,u.RowFrom,u.RowTo,u.Page,u.PageNo)]),we()];case 3:{let b;const v=[d.Data,f];return b=ls(1,v[0],v[1]),[new ri(1,[new oo(d.Data,d.InviteTiming,d.DuplicateEmailCount,d.NumberOfRowsWithErrorsOtherThanDuplicateEmail,d.NumberOfInvalidRows,d.NumberOfRows,d.NumberOfValidRows,f,d.HasErrors,b[0],b[1],b[2],1)]),we()]}case 4:{const b=p.PageNo+1|0;let v;const _=[p.Data,p.ShowingOnlyRowsWithErrors];return v=ls(b,_[0],_[1]),[new ri(1,[new oo(p.Data,p.InviteTiming,p.DuplicateEmailCount,p.NumberOfRowsWithErrorsOtherThanDuplicateEmail,p.NumberOfInvalidRows,p.NumberOfRows,p.NumberOfValidRows,p.ShowingOnlyRowsWithErrors,p.HasErrors,v[0],v[1],v[2],b)]),we()]}case 5:{const b=m.PageNo-1|0;let v;const _=[m.Data,m.ShowingOnlyRowsWithErrors];return v=ls(b,_[0],_[1]),[new ri(1,[new oo(m.Data,m.InviteTiming,m.DuplicateEmailCount,m.NumberOfRowsWithErrorsOtherThanDuplicateEmail,m.NumberOfInvalidRows,m.NumberOfRows,m.NumberOfValidRows,m.ShowingOnlyRowsWithErrors,m.HasErrors,v[0],v[1],v[2],b)]),we()]}case 6:return[r,Pn(t,new gn(7,[]))];default:return[h,we()]}}function _p(e,t){let n,r,i;return c("svg",w(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=g([c("path",w(g([(r="M12.6666 14.6667H3.33328C2.23062 14.6667 1.33328 13.7693 1.33328 12.6667V10H2.66662V12.6667C2.66662 13.034 2.96595 13.3333 3.33328 13.3333H12.6666C13.0339 13.3333 13.3333 13.034 13.3333 12.6667V10H14.6666V12.6667C14.6666 13.7693 13.7693 14.6667 12.6666 14.6667Z",["d",r]),["fill","#2E66F7"]]))),c("path",w(g([(i="M11.3333 5.72395L8.66667 8.39062V1.33328H7.33333V8.39062L4.66667 5.72395L3.724 6.66662L8 10.9426L12.276 6.66662L11.3333 5.72395Z",["d",i]),["fill","#2E66F7"]])))]),["children",y.Children.toArray(Array.from(n))])])))}function xp(e,t,n){let r,i,o,s,a,l,u,d,f,p,m,h,b,v,_,x,E,T,I,O,P,S;return Ui(g([new xt(3,[t]),new xt(4,[n]),new xt(5,[[zi(ue(new Gi(2,["fixed inset-0 bg-gray-500/50"]))),c("div",w(g([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(r=[Wi(ue(new dr(2,[[c("div",w(g([["className","flex flex-col mt-6 mb-6 px-6"],(i=[c("div",w(g([["className","flex flex-row justify-between"],(o=[c("span",{className:"text-gray-900 font-semibold text-lg",children:"What kind of data do I need?"}),c("button",w(g([["onClick",C=>{n()}],["type","button"],["className","text-gray-600"],(s=[Gr(24,24)],["children",y.Children.toArray(Array.from(s))])])))],["children",y.Children.toArray(Array.from(o))])]))),c("div",w(g([["className","text-gray-600 text-sm pt-6"],(a=[c("span",{children:"Fields marked with "}),c("span",{className:"text-red-600",children:"*"}),c("span",w(ue((l=" are required to create a user. While “Mobile number” and “Employment basis” are optional, they are recommended for improved searching and filtering.",["children",l]))))],["children",y.Children.toArray(Array.from(a))])]))),c("div",w(g([["className","grid grid-cols-2 mt-3"],(u=[c("span",{className:"text-gray-900 font-medium text-sm px-3 py-3.5 bg-gray-100 border",children:"Column fields"}),c("span",{className:"text-gray-900 font-medium text-sm px-3 py-3.5 bg-gray-100 border",children:"Accepted values"}),c("div",w(g([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(d=[c("span",{children:"First name "}),c("span",{className:"text-red-600",children:"*"})],["children",y.Children.toArray(Array.from(d))])]))),c("div",w(ue((f=[c("div",w(g([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(p=[c("span",{children:"For example:"}),c("br",{}),c("span",{className:"italic",children:"Sam, Josh, Alex"})],["children",y.Children.toArray(Array.from(p))])])))],["children",y.Children.toArray(Array.from(f))])))),c("div",w(g([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(m=[c("span",{children:"Last name "}),c("span",{className:"text-red-600",children:"*"})],["children",y.Children.toArray(Array.from(m))])]))),c("div",w(ue((h=[c("div",w(g([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(b=[c("span",{children:"For example:"}),c("br",{}),c("span",{className:"italic",children:"Smith, Doe, Williams"})],["children",y.Children.toArray(Array.from(b))])])))],["children",y.Children.toArray(Array.from(h))])))),c("div",w(g([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(v=[c("span",{children:"Email "}),c("span",{className:"text-red-600",children:"*"})],["children",y.Children.toArray(Array.from(v))])]))),c("div",w(ue((_=[c("div",w(g([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(x=[c("span",{children:"For example:"}),c("br",{}),c("span",{className:"italic",children:"john.smith@mycompany.com"})],["children",y.Children.toArray(Array.from(x))])])))],["children",y.Children.toArray(Array.from(_))])))),c("span",{className:"text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border",children:"Mobile number"}),c("div",w(ue((E=[c("div",w(g([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(T=[c("span",{children:"For example:"}),c("br",{}),c("span",{className:"italic",children:"+61432368712"})],["children",y.Children.toArray(Array.from(T))])])))],["children",y.Children.toArray(Array.from(E))])))),c("span",{className:"text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border",children:"Employment basis"}),c("div",w(ue((I=[c("div",w(g([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(O=[c("span",{children:"One of the following options:"}),c("br",{}),c("ul",w(g([["className","italic list-disc px-3"],(P=[c("li",{children:"Full-time"}),c("li",{children:"Part-time"}),c("li",{children:"Labour hire"}),c("li",{children:"Casual"})],["children",y.Children.toArray(Array.from(P))])])))],["children",y.Children.toArray(Array.from(O))])])))],["children",y.Children.toArray(Array.from(I))])))),c("a",w(g([["className","flex flex-row items-end gap-1 pt-3"],["href",e],["download","import_users"],(S=[c("span",{className:"text-sm text-primary-600 font-medium",children:"Download template"}),_p(16,16)],["children",y.Children.toArray(Array.from(S))])])))],["children",y.Children.toArray(Array.from(u))])])))],["children",y.Children.toArray(Array.from(i))])])))]])))],["children",y.Children.toArray(Array.from(r))])])))]])]))}function j6(e,t){let n,r,i,o,s,a,l,u,d,f,p,m,h;return Ui(g([new xt(3,[e]),new xt(4,[t]),new xt(5,[[zi(ue(new Gi(2,["fixed inset-0 bg-gray-500/50"]))),c("div",w(g([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(n=[Wi(ue(new dr(2,[[c("div",w(g([["className","flex flex-col mt-6 mb-6 px-6"],(r=[c("div",w(g([["className","flex flex-row justify-between"],(i=[c("span",{className:"text-gray-900 font-semibold text-lg",children:"What is workplace benefits?"}),c("button",w(g([["onClick",b=>{t()}],["type","button"],["className","text-gray-600"],(o=[Gr(24,24)],["children",y.Children.toArray(Array.from(o))])])))],["children",y.Children.toArray(Array.from(i))])]))),c("div",w(g([["className","text-gray-500 text-sm font-normal pt-6"],(s=[c("p",w(ue((a=[c("span",{children:["Workplace benefits is a"]}),c("span",{className:"font-semibold",children:" free platform "}),(l="for your entire workforce – including full-time, part-time, casual employees, and volunteers. It allows you to share company benefits while supporting employee wellbeing.",c("span",{children:[l]}))],["children",y.Children.toArray(Array.from(a))])))),c("p",w(g([["className","pt-3"],(u=[(d="With workplace benefits, your people can access everyday savings from top Australian brands like Woolworths, Kmart, Harvey Norman, The Iconic, and more – all through the ",c("span",{children:[d]})),c("span",{className:"font-semibold",children:" Flare App"}),c("span",{children:["."]})],["children",y.Children.toArray(Array.from(u))])]))),c("p",{className:"pt-3",children:"The program is designed to help employees make their pay go further through:"}),c("ul",w(g([["className","list-inside list-disc pt-3"],(f=[c("li",w(ue((p=[c("span",{className:"font-semibold",children:"Savings "}),c("span",{children:["on essentials like food, fuel, and more."]})],["children",y.Children.toArray(Array.from(p))])))),c("li",w(g([["className","pt-2"],(m=[c("span",{className:"font-semibold",children:"Exclusive offers "}),c("span",{children:["from leading brands and retailers."]})],["children",y.Children.toArray(Array.from(m))])]))),c("li",w(g([["className","pt-2"],(h=[c("span",{className:"font-semibold",children:"Tax savings "}),c("span",{children:["with salary packaging."]})],["children",y.Children.toArray(Array.from(h))])])))],["children",y.Children.toArray(Array.from(f))])])))],["children",y.Children.toArray(Array.from(s))])])))],["children",y.Children.toArray(Array.from(r))])])))]])))],["children",y.Children.toArray(Array.from(n))])])))]])]))}const B6=e=>c("svg",{width:48,height:54,viewBox:"0 0 48 54",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c("g",{id:"Group 67"},c("path",{id:"Vector",d:"M24.2605 17.5933C17.766 17.5933 12.5005 22.9015 12.5005 29.4469V53.1561H36.0205V29.4469C36.0205 22.8995 30.7549 17.5933 24.2605 17.5933Z",fill:"url(#paint0_linear_4467_4223)"}),c("g",{id:"Group",opacity:.95},c("path",{id:"Vector_2",d:"M35.76 35.646C29.2655 35.646 24 40.9115 24 47.406V53.1558H47.52V47.406C47.52 40.9115 42.2544 35.646 35.76 35.646Z",fill:"url(#paint1_linear_4467_4223)"})),c("path",{id:"Vector_3",opacity:.95,d:"M12.24 35.646C5.74553 35.646 0.47998 40.9115 0.47998 47.406V53.1558H24V47.406C24 40.9115 18.7344 35.646 12.24 35.646Z",fill:"url(#paint2_linear_4467_4223)"}),c("path",{id:"Vector_4",d:"M24.1303 16.8098C28.5328 16.8098 32.1018 13.2408 32.1018 8.83827C32.1018 4.43569 28.5328 0.866699 24.1303 0.866699C19.7277 0.866699 16.1587 4.43569 16.1587 8.83827C16.1587 13.2408 19.7277 16.8098 24.1303 16.8098Z",fill:"#0095F2"}),c("path",{id:"Vector_5",opacity:.93,d:"M13.1537 35.1253C17.5563 35.1253 21.1253 31.5563 21.1253 27.1537C21.1253 22.7511 17.5563 19.1821 13.1537 19.1821C8.75112 19.1821 5.18213 22.7511 5.18213 27.1537C5.18213 31.5563 8.75112 35.1253 13.1537 35.1253Z",fill:"#FF876F"}),c("path",{id:"Vector_6",opacity:.93,d:"M35.89 35.1253C40.2926 35.1253 43.8616 31.5563 43.8616 27.1537C43.8616 22.7511 40.2926 19.1821 35.89 19.1821C31.4875 19.1821 27.9185 22.7511 27.9185 27.1537C27.9185 31.5563 31.4875 35.1253 35.89 35.1253Z",fill:"#A650FF"})),c("defs",null,c("linearGradient",{id:"paint0_linear_4467_4223",x1:24.2605,y1:53.1561,x2:24.2605,y2:17.5933,gradientUnits:"userSpaceOnUse"},c("stop",{stopColor:"#161E37"}),c("stop",{offset:.11,stopColor:"#172243"}),c("stop",{offset:.31,stopColor:"#1B2E62"}),c("stop",{offset:.57,stopColor:"#214196"}),c("stop",{offset:.89,stopColor:"#2A5CDD"}),c("stop",{offset:1,stopColor:"#2E66F7"})),c("linearGradient",{id:"paint1_linear_4467_4223",x1:24,y1:44.4009,x2:47.52,y2:44.4009,gradientUnits:"userSpaceOnUse"},c("stop",{offset:.11,stopColor:"#FF876F"}),c("stop",{offset:.99,stopColor:"#A650FF"})),c("linearGradient",{id:"paint2_linear_4467_4223",x1:.47998,y1:44.4009,x2:24,y2:44.4009,gradientUnits:"userSpaceOnUse"},c("stop",{stopColor:"#0095F2"}),c("stop",{offset:.29,stopColor:"#307CF6"}),c("stop",{offset:.61,stopColor:"#6163FB"}),c("stop",{offset:.86,stopColor:"#7F54FD"}),c("stop",{offset:1,stopColor:"#8B4FFF"})))),U6=e=>c("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:12,viewBox:"0 0 12 12",fill:"none",...e},c("path",{d:"M6.00033 0.666504C3.05966 0.666504 0.666992 3.05917 0.666992 5.99984C0.666992 8.9405 3.05966 11.3332 6.00033 11.3332C8.94099 11.3332 11.3337 8.9405 11.3337 5.99984C11.3337 3.05917 8.94099 0.666504 6.00033 0.666504ZM6.50033 8.54584C6.50033 8.82184 6.27633 9.04584 6.00033 9.04584C5.72433 9.04584 5.50033 8.82184 5.50033 8.54584V5.49984C5.50033 5.22384 5.72433 4.99984 6.00033 4.99984C6.27633 4.99984 6.50033 5.22384 6.50033 5.49984V8.54584ZM6.00033 4.49984C5.63233 4.49984 5.33366 4.2005 5.33366 3.83317C5.33366 3.46584 5.63233 3.1665 6.00033 3.1665C6.36833 3.1665 6.66699 3.46584 6.66699 3.83317C6.66699 4.2005 6.36833 4.49984 6.00033 4.49984Z",fill:"currentColor"})),W6=e=>c("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c("rect",{width:40,height:40,rx:4,fill:"url(#paint0_linear_4584_4202)"}),c("g",{clipPath:"url(#clip0_4584_4202)"},c("path",{d:"M9.24302 26.953L18.152 10.111C18.33 9.77467 18.5963 9.49321 18.9222 9.2969C19.2482 9.10059 19.6215 8.99686 20.002 8.99686C20.3825 8.99686 20.7559 9.10059 21.0818 9.2969C21.4078 9.49321 21.6741 9.77467 21.852 10.111L30.761 26.953C30.9282 27.2708 31.0103 27.6266 30.9991 27.9855C30.988 28.3445 30.8841 28.6944 30.6975 29.0013C30.5109 29.3081 30.2479 29.5614 29.9343 29.7364C29.6207 29.9115 29.2672 30.0023 28.908 30H11.092C10.7332 30.0016 10.3801 29.9103 10.0671 29.735C9.75404 29.5597 9.49169 29.3063 9.30555 28.9996C9.11942 28.6928 9.01583 28.3431 9.00488 27.9845C8.99392 27.6259 9.07596 27.2705 9.24302 26.953V26.953Z",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),c("path",{d:"M20 16V22",stroke:"#DC2626",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),c("path",{d:"M20 27C20.8284 27 21.5 26.3284 21.5 25.5C21.5 24.6716 20.8284 24 20 24C19.1716 24 18.5 24.6716 18.5 25.5C18.5 26.3284 19.1716 27 20 27Z",fill:"#DC2626"})),c("defs",null,c("linearGradient",{id:"paint0_linear_4584_4202",x1:40,y1:571311e-11,x2:4.50001,y2:35.5,gradientUnits:"userSpaceOnUse"},c("stop",{stopColor:"#FECACA"}),c("stop",{offset:1,stopColor:"#FECACA",stopOpacity:0})),c("clipPath",{id:"clip0_4584_4202"},c("rect",{width:24,height:24,fill:"white",transform:"translate(8 8)"})))),G6=e=>c("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c("rect",{width:40,height:40,rx:4,fill:"url(#paint0_linear_3326_53774)"}),c("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28.3272 22.6261C28.5428 23.1983 28.2016 23.8306 27.6205 24.025C26.6465 24.3503 25.3424 24.6628 23.7902 24.7151C23.7699 24.6508 23.7476 24.5864 23.7234 24.522C23.042 22.7136 21.7109 21.2192 20.0107 20.3308C20.9217 19.6032 22.0762 19.1683 23.3339 19.1683C25.6205 19.1683 27.5661 20.6061 28.3272 22.6261Z",fill:"#93C5FD"}),c("path",{d:"M23.3336 16.3889C24.5609 16.3889 25.5558 15.394 25.5558 14.1667C25.5558 12.9394 24.5609 11.9445 23.3336 11.9445C22.1062 11.9445 21.1113 12.9394 21.1113 14.1667C21.1113 15.394 22.1062 16.3889 23.3336 16.3889Z",fill:"#93C5FD"}),c("path",{d:"M16.3892 19.1667C17.6165 19.1667 18.6114 18.1718 18.6114 16.9445C18.6114 15.7172 17.6165 14.7222 16.3892 14.7222C15.1619 14.7222 14.167 15.7172 14.167 16.9445C14.167 18.1718 15.1619 19.1667 16.3892 19.1667Z",stroke:"#212121",strokeWidth:1.66667,strokeLinecap:"round",strokeLinejoin:"round"}),c("path",{d:"M20.6771 26.8022C21.2583 26.6078 21.5994 25.9756 21.3838 25.4033C20.6227 23.3833 18.6771 21.9456 16.3905 21.9456C14.1038 21.9456 12.1583 23.3833 11.3971 25.4033C11.1816 25.9767 11.5227 26.6089 12.1038 26.8022C13.1727 27.1589 14.6383 27.5 16.3916 27.5C18.1449 27.5 19.6094 27.1589 20.6771 26.8022Z",stroke:"#212121",strokeWidth:1.66667,strokeLinecap:"round",strokeLinejoin:"round"}),c("path",{d:"M23.3336 16.3889C24.5609 16.3889 25.5558 15.394 25.5558 14.1667C25.5558 12.9394 24.5609 11.9445 23.3336 11.9445C22.1062 11.9445 21.1113 12.9394 21.1113 14.1667C21.1113 15.394 22.1062 16.3889 23.3336 16.3889Z",stroke:"#212121",strokeWidth:1.66667,strokeLinecap:"round",strokeLinejoin:"round"}),c("path",{d:"M24.1664 24.6967C25.553 24.6111 26.7264 24.3233 27.6208 24.0245C28.2019 23.83 28.543 23.1978 28.3275 22.6256C27.5664 20.6056 25.6208 19.1678 23.3341 19.1678C22.2486 19.1678 21.2397 19.4922 20.3975 20.0489",stroke:"#212121",strokeWidth:1.66667,strokeLinecap:"round",strokeLinejoin:"round"}),c("defs",null,c("linearGradient",{id:"paint0_linear_3326_53774",x1:40,y1:571311e-11,x2:4.50001,y2:35.5,gradientUnits:"userSpaceOnUse"},c("stop",{stopColor:"#D6E2FC"}),c("stop",{offset:1,stopColor:"#D6E2FC",stopOpacity:0})))),z6=e=>c("svg",{width:96,height:28,viewBox:"0 0 96 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c("g",{clipPath:"url(#clip0_3030_30757)"},c("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.40895 5.42706C5.79785 4.83985 8.86151 3.00302 11.0249 0.261313C11.1152 0.153807 11.235 0.0767261 11.3686 0.0401219C11.5021 0.00351777 11.6434 0.0090886 11.7738 0.056108C11.9043 0.103127 12.0179 0.189414 12.0999 0.303716C12.1819 0.418018 12.2285 0.555032 12.2335 0.696894L12.2335 11.4663C12.2313 11.588 12.1985 11.7071 12.1382 11.812C12.078 11.9168 11.9924 12.0039 11.8897 12.0648C11.787 12.1257 11.6708 12.1583 11.5522 12.1594C11.4336 12.1606 11.3168 12.1303 11.213 12.0714L2.17962 6.71732C2.06323 6.6422 1.97142 6.53301 1.91604 6.40381C1.86067 6.27462 1.84426 6.13136 1.86894 5.9925C1.89362 5.85364 1.95825 5.72556 2.05451 5.62478C2.15076 5.52399 2.27422 5.45513 2.40895 5.42706ZM2.40895 22.6054C5.79785 23.1926 8.86151 25.0295 11.0249 27.7712C11.1152 27.8787 11.235 27.9557 11.3686 27.9923C11.5021 28.029 11.6434 28.0234 11.7738 27.9764C11.9043 27.9293 12.0179 27.8431 12.0999 27.7288C12.1819 27.6145 12.2285 27.4774 12.2335 27.3356L12.2335 16.5756C12.2328 16.453 12.2012 16.3328 12.1416 16.2267C12.082 16.1205 11.9965 16.0321 11.8936 15.9701C11.7906 15.9081 11.6738 15.8747 11.5544 15.8731C11.4351 15.8715 11.3174 15.9018 11.213 15.961L2.17962 21.3151C2.06323 21.3903 1.97142 21.4995 1.91604 21.6287C1.86067 21.7578 1.84426 21.9011 1.86894 22.04C1.89362 22.1788 1.95825 22.3069 2.05451 22.4077C2.15076 22.5085 2.27422 22.5773 2.40895 22.6054ZM0.20511 8.8811C1.43425 12.1754 1.45137 15.8168 0.253269 19.1231C0.21046 19.2568 0.207545 19.4007 0.244898 19.5361C0.28225 19.6715 0.358167 19.7924 0.462907 19.8833C0.567647 19.9741 0.696433 20.0307 0.832742 20.0459C0.96905 20.0611 1.10666 20.0341 1.22793 19.9684L10.2567 14.6166C10.3578 14.5537 10.4414 14.465 10.4994 14.3592C10.5574 14.2535 10.5879 14.1341 10.5879 14.0127C10.5879 13.8913 10.5574 13.772 10.4994 13.6662C10.4414 13.5604 10.3578 13.4717 10.2567 13.4088L1.17518 8.02406C1.05302 7.95812 0.914374 7.93142 0.777244 7.94743C0.640114 7.96344 0.510844 8.02142 0.406231 8.11384C0.301618 8.20627 0.226497 8.32886 0.190631 8.46568C0.154764 8.60251 0.159809 8.74725 0.20511 8.8811ZM23.6634 22.6054C20.2745 23.1926 17.2108 25.0295 15.0474 27.7712C14.9571 27.8787 14.8374 27.9557 14.7038 27.9923C14.5702 28.029 14.4289 28.0234 14.2985 27.9764C14.168 27.9293 14.0544 27.8431 13.9724 27.7288C13.8904 27.6145 13.8439 27.4774 13.8388 27.3356L13.8388 16.5756C13.8397 16.4534 13.8714 16.3335 13.9309 16.2277C13.9904 16.1219 14.0756 16.0337 14.1781 15.9718C14.2807 15.9098 14.3972 15.8763 14.5162 15.8744C14.6352 15.8725 14.7527 15.9024 14.8571 15.961L23.8927 21.3152C24.0091 21.3903 24.1009 21.4995 24.1563 21.6287C24.2117 21.7579 24.2281 21.9011 24.2034 22.04C24.1787 22.1788 24.1141 22.3069 24.0178 22.4077C23.9216 22.5085 23.7981 22.5773 23.6634 22.6054ZM15.0474 0.261313C17.2108 3.00302 20.2745 4.83985 23.6634 5.42706C23.7981 5.45513 23.9216 5.52399 24.0178 5.62478C24.1141 5.72556 24.1787 5.85364 24.2034 5.9925C24.2281 6.13136 24.2117 6.27462 24.1563 6.40381C24.1009 6.53301 24.0091 6.6422 23.8927 6.71732L14.8571 12.0714C14.7533 12.1297 14.6367 12.1596 14.5185 12.1581C14.4002 12.1567 14.2844 12.124 14.182 12.0632C14.0797 12.0024 13.9943 11.9155 13.9342 11.8109C13.8741 11.7064 13.8412 11.5877 13.8388 11.4663L13.8388 0.696894C13.8439 0.555032 13.8904 0.418018 13.9724 0.303716C14.0544 0.189414 14.168 0.103127 14.2985 0.056108C14.4289 0.0090886 14.5702 0.00351777 14.7038 0.0401219C14.8374 0.0767261 14.9571 0.153807 15.0474 0.261313ZM25.8168 8.90935C24.6184 12.2158 24.6363 15.8576 25.8672 19.1514C25.913 19.2855 25.9182 19.4307 25.8823 19.5679C25.8464 19.7052 25.7711 19.8281 25.666 19.9207C25.561 20.0133 25.4312 20.0711 25.2936 20.0868C25.1561 20.1024 25.0171 20.0751 24.8949 20.0084L15.8111 14.6237C15.71 14.5607 15.6264 14.4721 15.5684 14.3663C15.5104 14.2605 15.4799 14.1412 15.4799 14.0198C15.4799 13.8984 15.5104 13.779 15.5684 13.6732C15.6264 13.5674 15.71 13.4788 15.8111 13.4158L24.8421 8.06409C24.9634 7.9984 25.101 7.97141 25.2373 7.98657C25.3736 8.00174 25.5024 8.05837 25.6072 8.14921C25.7119 8.24004 25.7878 8.36093 25.8252 8.49637C25.8625 8.63181 25.8596 8.77562 25.8168 8.90935Z",fill:"#2696EC"}),c("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.2209 10.9851V23.8468H35.8118V10.9851H33.4648V7.92778H35.8118V6.51672C35.8118 4.91439 36.1765 3.76595 36.9061 3.0714C37.6356 2.37685 38.8454 2.02879 40.5355 2.02722H42.4442V4.82816H41.2857C40.5347 4.82816 40.0032 4.98495 39.6912 5.29851C39.3769 5.6207 39.2209 6.16396 39.2209 6.94474V7.93718H42.3891V10.9945L39.2209 10.9851ZM48.9092 2.03663L45.4679 2.03663V23.8421L48.9092 23.8421V2.03663ZM67.5974 23.8468V7.93718L64.2755 7.93718V10.1196C63.6573 9.3308 62.873 8.69564 61.9813 8.26172C61.0863 7.83165 60.1089 7.61228 59.1205 7.6197C58.0959 7.5972 57.0782 7.79484 56.1327 8.19987C55.1871 8.60491 54.3348 9.20838 53.6305 9.97145C52.1393 11.5597 51.3937 13.5195 51.3937 15.8508C51.3952 18.2324 52.1202 20.2032 53.5686 21.7632C55.017 23.3232 56.8362 24.1031 59.0264 24.1031C60.0369 24.1101 61.0362 23.886 61.9515 23.447C62.8575 23.009 63.6545 22.3657 64.2823 21.5656V23.8468H67.5974ZM55.138 17.7811C54.9016 17.1671 54.7876 16.5107 54.8028 15.8508C54.7876 15.1909 54.9016 14.5346 55.138 13.9206C55.3744 13.3066 55.7285 12.7475 56.1794 12.2762C56.6129 11.8155 57.1322 11.4489 57.7066 11.1979C58.281 10.947 58.8988 10.8169 59.5231 10.8153C60.1475 10.8138 60.7658 10.9409 61.3414 11.189C61.917 11.4371 62.4381 11.8012 62.8737 12.2597C63.3183 12.7374 63.6661 13.3008 63.8968 13.9172C64.1276 14.5337 64.2368 15.1909 64.2181 15.8508C64.2368 16.5108 64.1276 17.168 63.8968 17.7844C63.6661 18.4009 63.3183 18.9642 62.8737 19.442C62.4381 19.9005 61.917 20.2646 61.3414 20.5127C60.7658 20.7608 60.1475 20.8879 59.5231 20.8863C58.8988 20.8848 58.281 20.7547 57.7066 20.5038C57.1322 20.2528 56.6129 19.8861 56.1794 19.4255C55.7285 18.9542 55.3744 18.395 55.138 17.7811ZM74.317 14.254V23.8468H70.9079V7.93718L74.223 7.93718V9.54108C74.592 8.94917 75.0969 8.45902 75.6935 8.11357C76.2985 7.77921 76.977 7.60919 77.6642 7.6197C78.1147 7.61511 78.5633 7.68012 78.9948 7.81254C79.3586 7.91663 79.6949 8.10308 79.979 8.35815L78.2584 11.4366C78.0425 11.2918 77.8055 11.1831 77.5564 11.1144C77.3265 11.052 77.0899 11.0196 76.8521 11.018C76.4954 11.0017 76.1402 11.0733 75.8161 11.2268C75.4919 11.3802 75.2084 11.611 74.9892 11.8999C74.5411 12.4863 74.317 13.271 74.317 14.254ZM95.8271 16.467C95.8432 16.34 95.8432 16.1472 95.8432 15.8908C95.8355 13.4967 95.0815 11.5197 93.5811 9.95969C92.0807 8.3997 90.1835 7.6197 87.8893 7.6197C85.5676 7.61186 83.642 8.38872 82.1126 9.95029C80.5831 11.5119 79.8184 13.4897 79.8184 15.8838C79.8184 18.2982 80.5587 20.2698 82.0392 21.7984C83.5197 23.3271 85.4384 24.0914 87.7952 24.0914C89.5346 24.1334 91.2443 23.6242 92.691 22.6333C94.0578 21.6868 95.0674 20.2892 95.5518 18.6729H91.9546C91.5609 19.4036 90.9761 20.0071 90.266 20.4156C89.5283 20.8295 88.6981 21.0394 87.8572 21.0247C86.7294 21.0612 85.6315 20.65 84.7922 19.877C83.977 19.1229 83.4975 18.1038 83.3537 16.8198H95.7812C95.8037 16.7033 95.819 16.5855 95.8271 16.467ZM87.8324 10.6957C87.8338 10.6957 87.8351 10.6958 87.8365 10.6958H87.8274C87.829 10.6958 87.8307 10.6957 87.8324 10.6957ZM84.9413 11.7212C85.7535 11.0344 86.7798 10.6704 87.8324 10.6957C88.8902 10.6749 89.9201 11.0447 90.7341 11.7376C91.5425 12.4257 92.0583 13.409 92.1725 14.4798L83.3927 14.4798C83.5781 13.4028 84.1261 12.4266 84.9413 11.7212Z",fill:"#143057"})),c("defs",null,c("clipPath",{id:"clip0_3030_30757"},c("rect",{width:95.6667,height:28,fill:"white",transform:"translate(0.166992)"})))),q6=e=>c("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5C8.14219 5 5 8.14219 5 12C5 15.8578 8.14219 19 12 19C15.8578 19 19 15.8578 19 12C19 8.14219 15.8578 5 12 5ZM3 12C3 7.03763 7.03763 3 12 3C16.9624 3 21 7.03763 21 12C21 16.9624 16.9624 21 12 21C7.03763 21 3 16.9624 3 12Z",fill:"#10B981"}),c("path",{d:"M11.707 14.707C11.3165 15.0975 10.6834 15.0975 10.2928 14.707L8.29294 12.7071C7.90247 12.3166 7.90247 11.6835 8.29294 11.2931C8.6834 10.9026 9.31647 10.9026 9.70694 11.2931L10.9999 12.5861L14.2929 9.29306C14.6834 8.90259 15.3165 8.90259 15.7069 9.29306C16.0974 9.68353 16.0974 10.3166 15.7069 10.7071L11.707 14.707Z",fill:"#10B981"})),Y6=e=>c("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c("path",{d:"M12.0004 2.40002C6.72039 2.40002 2.40039 6.72002 2.40039 12C2.40039 17.28 6.72039 21.6 12.0004 21.6C17.2804 21.6 21.6004 17.28 21.6004 12C21.6004 6.72002 17.2804 2.40002 12.0004 2.40002ZM12.0004 19.2C8.04039 19.2 4.80039 15.96 4.80039 12C4.80039 8.04002 8.04039 4.80002 12.0004 4.80002C15.9604 4.80002 19.2004 8.04002 19.2004 12C19.2004 15.96 15.9604 19.2 12.0004 19.2Z",fill:"#DC2626"}),c("path",{d:"M13.2008 7.20007H10.8008V13.2001H13.2008V7.20007Z",fill:"#DC2626"}),c("path",{d:"M12.0008 16.8C12.6635 16.8 13.2008 16.2628 13.2008 15.6C13.2008 14.9373 12.6635 14.4 12.0008 14.4C11.338 14.4 10.8008 14.9373 10.8008 15.6C10.8008 16.2628 11.338 16.8 12.0008 16.8Z",fill:"#DC2626"})),Z6=e=>c("svg",{width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c("g",{id:"Clock"},c("path",{id:"Icon",d:"M12.5 8V12L15.5 15M21.5 12C21.5 16.9706 17.4706 21 12.5 21C7.52944 21 3.5 16.9706 3.5 12C3.5 7.02944 7.52944 3 12.5 3C17.4706 3 21.5 7.02944 21.5 12Z",stroke:"#FB923C",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})));function gr(e,t){return y.createElement(e,w(t))}function K6(e){return gr(B6,e)}function X6(e){return gr(U6,e)}function J6(e){return gr(W6,e)}function Q6(e){return gr(G6,e)}function e4(e){return gr(z6,e)}function t4(e){return gr(q6,e)}function n4(e){return gr(Y6,e)}function r4(e){return gr(Z6,e)}function i4(e,t,n,r){let i,o,s,a,l,u,d,f,p,m,h;return Ui(g([new xt(3,[e]),new xt(4,[n]),new xt(5,[[zi(ue(new Gi(2,["fixed inset-0 bg-gray-500/50"]))),c("div",w(g([["className","fixed inset-0 z-10 w-screen overflow-y-auto"],(i=[c("div",w(g([["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(o=[Wi(g([new dr(1,["relative transform overflow-hidden rounded-lg bg-white px-4 pt-5 pb-4 text-left shadow-xl sm:my-8 sm:w-full sm:max-w-lg sm:p-6"]),new dr(2,[[c("div",w(g([["className","absolute top-0 right-0 hidden pt-4 pr-4 sm:block"],(s=[c("button",w(g([["type","button"],["onClick",b=>{n()}],["className","text-gray-600"],(a=[Gr(24,24)],["children",y.Children.toArray(Array.from(a))])])))],["children",y.Children.toArray(Array.from(s))])]))),c("div",w(g([["className","sm:flex sm:items-start"],(l=[c("div",w(g([["className","mx-auto flex size-12 shrink-0 items-center justify-center sm:mx-0 sm:size-10"],(u=[Q6([])],["children",y.Children.toArray(Array.from(u))])]))),c("div",w(g([["className","mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"],(d=[np(g([new Us(2,["text-gray-900 text-lg font-bold"]),new Us(3,[[`Import ${t} users`]])])),c("div",w(g([["className","mt-2 text-sm text-gray-500 leading-tight"],(f=[c("p",{children:[`Are you sure you want to import ${t} users?`]})],["children",y.Children.toArray(Array.from(f))])])))],["children",y.Children.toArray(Array.from(d))])])))],["children",y.Children.toArray(Array.from(l))])]))),c("div",w(g([["className","mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"],(p=[c("button",w(g([["type","button"],["onClick",b=>{r()}],(m="inline-flex w-full justify-center rounded-md bg-emerald-600 px-3 py-2 text-sm font-medium text-white shadow-xs hover:bg-emerald-700 sm:ml-3 sm:w-auto",["className",m]),["children","Confirm import"]]))),c("button",w(g([["type","button"],["onClick",b=>{n()}],(h="mt-3 inline-flex w-full justify-center rounded-md bg-white px-3 py-2 text-gray-700 text-sm font-medium ring-1 shadow-xs ring-gray-300 ring-inset hover:bg-gray-50 sm:mt-0 sm:w-auto",["className",h]),["children","Cancel"]])))],["children",y.Children.toArray(Array.from(p))])])))]])]))],["children",y.Children.toArray(Array.from(o))])])))],["children",y.Children.toArray(Array.from(i))])])))]])]))}function o4(e,t){let n,r;return c("svg",w(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=ue(c("path",w(g([(r="M17.8008 14.5263L11.4838 2.88031C11.328 2.59137 11.0904 2.35483 10.8008 2.20031C10.4074 1.98974 9.94665 1.94305 9.51893 2.07039C9.0912 2.19773 8.73106 2.48881 8.51683 2.88031L2.20083 14.5263C2.06272 14.7826 1.99367 15.0704 2.00046 15.3614C2.00724 15.6525 2.08964 15.9368 2.23954 16.1863C2.38944 16.4359 2.60169 16.6422 2.85544 16.7849C3.10919 16.9276 3.39571 17.0018 3.68683 17.0003H16.3148C16.5939 17.0003 16.8686 16.9316 17.1148 16.8003C17.3099 16.6968 17.4825 16.5556 17.6228 16.3851C17.763 16.2145 17.8681 16.0178 17.932 15.8064C17.9958 15.595 18.0172 15.373 17.9949 15.1533C17.9726 14.9336 17.9069 14.7205 17.8018 14.5263H17.8008ZM10.0008 15.0003C9.80305 15.0003 9.60971 14.9417 9.44526 14.8318C9.28081 14.7219 9.15264 14.5657 9.07695 14.383C9.00126 14.2003 8.98146 13.9992 9.02004 13.8052C9.05863 13.6112 9.15387 13.4331 9.29372 13.2932C9.43358 13.1533 9.61176 13.0581 9.80574 13.0195C9.99972 12.9809 10.2008 13.0007 10.3835 13.0764C10.5662 13.1521 10.7224 13.2803 10.8323 13.4447C10.9422 13.6092 11.0008 13.8025 11.0008 14.0003C11.0008 14.2655 10.8955 14.5199 10.7079 14.7074C10.5204 14.8949 10.266 15.0003 10.0008 15.0003ZM11.0008 11.5003C11.0008 11.6329 10.9482 11.7601 10.8544 11.8539C10.7606 11.9476 10.6334 12.0003 10.5008 12.0003H9.50083C9.36822 12.0003 9.24104 11.9476 9.14728 11.8539C9.05351 11.7601 9.00083 11.6329 9.00083 11.5003V7.50031C9.00083 7.3677 9.05351 7.24052 9.14728 7.14675C9.24104 7.05298 9.36822 7.00031 9.50083 7.00031H10.5008C10.6334 7.00031 10.7606 7.05298 10.8544 7.14675C10.9482 7.24052 11.0008 7.3677 11.0008 7.50031V11.5003Z",["d",r]),["fill","#FBBF24"]])))),["children",y.Children.toArray(Array.from(n))])])))}function s4(e){return`${iu(e,".")}.`}function af(e){return iu(e,".")}function a4(e){let t;const n=e.children,r=e.text,i=y.useState(!1),o=i[1];return c("div",w(g([["className","relative inline-block"],["onMouseEnter",s=>{o(!0)}],["onMouseLeave",s=>{o(!1)}],(t=K($(()=>H(n,$(()=>{let s,a;return i[0]?k(c("div",w(g([(s="absolute top-0 left-full -translate-y-1/4 ml-1 text-left text-white text-xs leading-5 font-medium ring-1 ring-black ring-opacity-5 shadow-md rounded-md bg-gray-900 pl-6 pr-3 py-2 w-60 text-wrap",["className",s]),(a=K($(()=>{let l;return Te(r)?k(c("ul",w(g([["className","list-outside list-disc"],(l=K($(()=>Le(u=>c("li",{children:[af(u)]}),r))),["children",y.Children.toArray(Array.from(l))])])))):Te(Me(r))?k(c("p",{children:[s4(le(r))]})):k(c("ul",w(g([["className","list-outside list-disc"],(l=K($(()=>Le(u=>c("li",{children:[af(u)]}),r))),["children",y.Children.toArray(Array.from(l))])]))))})),["children",y.Children.toArray(Array.from(a))])])))):ht()})))),["children",y.Children.toArray(Array.from(t))])])))}function Xr(e,t){let n;return c("div",w(g([["className",At(" ",["animate-pulse w-full relative",e,t])],(n=[c("div",{className:At(" ",["w-full left-0 top-0 absolute bg-gray-200 rounded",e])})],["children",y.Children.toArray(Array.from(n))])])))}function l4(){let e,t,n,r,i,o,s,a,l,u,d,f;return c("div",w(g([["className","flex-col justify-start items-start gap-6 inline-flex"],(e=[c("div",w(g([["className","flex-col justify-start items-end gap-4 inline-flex"],(t=[c("div",w(g([["className","justify-start items-center gap-2 inline-flex"],(n=[c("input",{type:"checkbox",defaultChecked:!1,disabled:!0,className:"rounded-sm border border-gray-300 bg-white"}),c("span",{className:"text-gray-400 text-sm font-normal leading-tight",children:"Show only rows with errors"})],["children",y.Children.toArray(Array.from(n))])]))),c("div",w(g([["className","px-4 pt-4 pb-2 bg-white rounded-lg border border-gray-200 flex-col"],(r=[c("div",w(g([["className","w-[1030px]"],(i=K($(()=>{let p,m,h,b;return H(k(c("div",w(g([["className","bg-gray-100 flex"],(p=[c("div",w(g([["className","px-3 py-2.5 text-left w-[128px]"],(m=[Xr("h-5","w-full")],["children",y.Children.toArray(Array.from(m))])]))),c("div",w(g([["className","px-3 py-2.5 text-left w-[148px]"],(h=[Xr("h-5","w-full")],["children",y.Children.toArray(Array.from(h))])]))),c("div",w(g([["className","px-3 py-2.5 text-left flex-1"],(b=[Xr("h-5","w-full")],["children",y.Children.toArray(Array.from(b))])])))],["children",y.Children.toArray(Array.from(p))])])))),$(()=>Le(v=>c("div",w(K($(()=>H(v%2===1?k(["className","bg-white border-t border-gray-200 flex"]):k(["className","bg-gray-50 border-t border-gray-200 flex"]),$(()=>{let _,x,E,T;return k((_=[c("div",w(g([["className","px-3 py-2.5 text-left w-[128px]"],(x=[Xr("h-5","w-full")],["children",y.Children.toArray(Array.from(x))])]))),c("div",w(g([["className","px-3 py-2.5 text-left w-[148px]"],(E=[Xr("h-5","w-full")],["children",y.Children.toArray(Array.from(E))])]))),c("div",w(g([["className","px-3 py-2.5 text-left flex-1"],(T=[Xr("h-5","w-full")],["children",y.Children.toArray(Array.from(T))])])))],["children",y.Children.toArray(Array.from(_))]))})))))),K(Eu(0,1,9)))))})),["children",y.Children.toArray(Array.from(i))])])))],["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(t))])]))),c("div",w(g([["className","justify-start items-end gap-2 inline-flex w-full pb-2"],(o=[c("div",w(g([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(s=[c("div",{className:"grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"}),c("div",w(g([["className","justify-start items-center gap-2 flex"],(a=[c("button",w(g([(l="px-[13px] py-[9px] bg-white opacity-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex",["className",l]),["disabled",!0],(u=[c("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",y.Children.toArray(Array.from(u))])]))),c("button",w(g([(d="pl-[13px] pr-[11px] py-[9px] opacity-50 bg-emerald-600 rounded-md shadow-sm justify-center items-center gap-2 flex",["className",d]),["disabled",!0],(f=[c("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:"Import users"})],["children",y.Children.toArray(Array.from(f))])])))],["children",y.Children.toArray(Array.from(a))])])))],["children",y.Children.toArray(Array.from(s))])])))],["children",y.Children.toArray(Array.from(o))])])))],["children",y.Children.toArray(Array.from(e))])])))}function u4(e){const t=et(r=>r,mr(e)),n=new Blob(t,{type:"text/csv;charset=utf-8;"});return window.URL.createObjectURL(n)}const c4=(()=>{const e=new Blob(["First name,Last name,Email,Mobile phone,Employment basis"],{type:"text/csv;charset=utf-8;"});return window.URL.createObjectURL(e)})();function d4(e){let t,n,r;const i=e.sendAnalytics,o=e.onError,s=e.back,a=e.next,l=e.employmentBasis,u=e.baseColumnMappings,d=e.dataRows,f=e.apiCallAsync;let p;const m=L6(()=>F6(f,d,u,l),i,d);p=Wr(()=>Ur(()=>m,(O,P)=>H6(o,i,O,P),(O,P)=>{}),void 0,void 0);const h=p[1],b=y.useState(!1),v=b[1],_=y.useState(!1),x=_[1],E=y.useState(!1),T=E[0],I=E[1];return c("div",w(g([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12 h-full"],(t=[xp(c4,b[0],()=>{v(!1)}),j6(_[0],()=>{x(!1)}),Na("Review"),Ta("Preview your data and confirm that everything is mapped correctly."),c("div",w(g([["className","flex flex-row pt-3 gap-2"],(n=[Co("What kind of data do I need?",()=>{v(!0)})],["children",y.Children.toArray(Array.from(n))])]))),c("div",w(g([["className","justify-start items-start gap-12 inline-flex"],(r=[c("div",w(K($(()=>H(k(["className","pt-6 flex-col justify-start items-start gap-4 inline-flex"]),$(()=>{let O,P,S;const C=p[0];if(C.tag===1){const A=C.fields[0],N=se=>{h(new ni(1,[se]))},D=se=>{h(new ni(2,[se]))},F=bp(A)?se=>{h(new ni(3,[]))}:void 0,j=vp(A)?se=>{h(new ni(4,[]))}:void 0;return k((O=[c("div",w(g([["className","flex-col justify-start items-start gap-6 inline-flex"],(P=K($(()=>H(k(i4(T,A.NumberOfValidRows,()=>{T&&I(!1)},()=>{T&&a([new Fm(jn(Le(se=>se[0],na(se=>se[1].Errors==null,Yg(d.fields[0],A.Data))))),A.InviteTiming])})),$(()=>{let se,X,J,L,G,B,ce,q;return H(A.HasErrors?k(c("div",w(g([["className","p-4 bg-amber-50 rounded-md justify-start items-start gap-3 inline-flex"],(se=[o4(20,20),c("div",w(g([["className","flex-col justify-start items-start gap-2 inline-flex"],(X=[c("div",w(g([["className","self-stretch text-amber-800 text-sm font-medium leading-tight"],(J=[c("span",{children:[`We found some issues across ${A.NumberOfInvalidRows} rows in your CSV:`]})],["children",y.Children.toArray(Array.from(J))])]))),c("ul",w(g([["className","pl-2 font-normal overflow-hidden list-inside list-disc text-amber-700 text-sm"],(L=K($(()=>{let R;return H(A.DuplicateEmailCount>0?k((R=g([c("span",{className:"font-medium",children:`${A.DuplicateEmailCount} rows `}),c("span",{children:["have "]}),c("span",{className:"font-medium",children:"duplicate email addresses"})]),c("li",{children:y.Children.toArray(Array.from(R))}))):ht(),$(()=>{let fe;return A.NumberOfRowsWithErrorsOtherThanDuplicateEmail>0?k((fe=g([c("span",{className:"font-medium",children:`${A.NumberOfRowsWithErrorsOtherThanDuplicateEmail} rows `}),c("span",{children:["have "]}),c("span",{className:"font-medium",children:"missing or incorrectly formatted data"})]),c("li",{children:y.Children.toArray(Array.from(fe))}))):ht()}))})),["children",y.Children.toArray(Array.from(L))])]))),c("div",w(g([["className","px-2 py-1.5"],(G=[c("div",w(g([["className","text-amber-700 text-sm leading-tight"],(B=[c("span",{children:[`You can continue the import without these ${A.NumberOfInvalidRows} rows—we’ll automatically skip them. To import them later, download the error report, fix the issues, and re-upload your file as a new import.`]})],["children",y.Children.toArray(Array.from(B))])])))],["children",y.Children.toArray(Array.from(G))])]))),c("div",w(g([["className","px-2 py-1.5"],(ce=[c("a",{className:"text-amber-800 text-sm font-medium leading-tight",children:"Download Error Report (.csv)",href:u4((q=[A,l!=null],V6(q[0],q[1]))),onClick:R=>{h(new ni(5,[]))},download:"import_users_error_rows"})],["children",y.Children.toArray(Array.from(ce))])])))],["children",y.Children.toArray(Array.from(X))])])))],["children",y.Children.toArray(Array.from(se))])])))):ht(),$(()=>{let R,fe,U,Ae,ge,Y,Ce,ye,Ie,ae,pe,ee,oe,Re;return H(k(c("div",w(g([["className","w-full flex-col justify-start items-end gap-4 inline-flex"],(R=[c("div",w(g([["className","justify-start items-center gap-2 inline-flex py-3 -my-3"],["onClick",z=>{D(!A.ShowingOnlyRowsWithErrors)}],(fe=[c("input",w(g([["type","checkbox"],["checked",A.ShowingOnlyRowsWithErrors],(U="rounded-sm border border-gray-300 bg-white checked:border-primary-600 checked:bg-primary-600 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600",["className",U]),["onKeyPress",z=>{z.preventDefault(),z.key==="Enter"&&D(!A.ShowingOnlyRowsWithErrors)}]]))),c("span",{className:"text-gray-900 text-sm font-normal leading-tight",children:"Show only rows with errors"})],["children",y.Children.toArray(Array.from(fe))])]))),c("div",w(g([["className","w-full px-4 pt-4 pb-2 bg-white rounded-lg border border-gray-200 flex-col"],(Ae=[c("div",w(ue((ge=[c("div",w(g([["className","w-full max-h-[470px] overflow-auto"],(Y=[c("table",w(g([["className","w-full divide-y divide-gray-300"],(Ce=[c("thead",w(g([["className","bg-gray-100 border-b border-gray-200 text-sm text-gray-900 text-sm font-medium leading-tight"],(ye=[(Ie=K($(()=>H(k(c("th",{scope:"col",className:"px-3 py-2.5 text-left",children:"#"})),$(()=>H(k(c("th",{scope:"col",className:"px-3 py-2.5 text-left",children:"Error detail"})),$(()=>{let z;return H(k(c("th",w(g([["scope","col"],["className","px-3 py-2.5 text-left"],(z=[c("span",{children:["First name "]}),c("span",{className:"text-red-500",children:"*"})],["children",y.Children.toArray(Array.from(z))])])))),$(()=>{let Ue;return H(k(c("th",w(g([["scope","col"],["className","px-3 py-2.5 text-left"],(Ue=[c("span",{children:["Last name "]}),c("span",{className:"text-red-500",children:"*"})],["children",y.Children.toArray(Array.from(Ue))])])))),$(()=>{let Ne;return H(k(c("th",w(g([["scope","col"],["className","px-3 py-2.5 text-left"],(Ne=[c("span",{children:["Email "]}),c("span",{className:"text-red-500",children:"*"})],["children",y.Children.toArray(Array.from(Ne))])])))),$(()=>H(k(c("th",{scope:"col",className:"px-3 py-2.5 text-left",children:"Mobile Phone"})),$(()=>l!=null?k(c("th",{scope:"col",className:"px-3 py-2.5 text-left",children:"Employment Basis"})):ht()))))}))}))})))))),c("tr",{children:y.Children.toArray(Array.from(Ie))}))],["children",y.Children.toArray(Array.from(ye))])]))),c("tbody",w(g([["className","divide-y divide-gray-200"],(ae=K($(()=>Le(z=>c("tr",w(K($(()=>H(k(["key",z.RowNumber]),$(()=>{let Ue;return H((Ue=z.RowNumber%2|0,z.Errors==null?k(Ue===1?["className","bg-white"]:["className","bg-gray-50"]):k(["className","bg-amber-50"])),$(()=>{let Ne;return k((Ne=K($(()=>H(k(c("td",{className:"whitespace-nowrap px-3 py-2.5 text-sm text-gray-500",children:z.RowNumber})),$(()=>H(k(c("td",w(K($(()=>H(k(["className","whitespace-nowrap px-3 py-2.5"]),$(()=>{let ke,Be,xe;return z.Errors!=null?k((ke=[c("div",w(g([(Be="text-center text-amber-800 text-xs font-medium h-5 pl-2.5 pr-1.5 bg-amber-100 rounded justify-center items-center inline-flex",["className",Be]),(xe=K($(()=>H(k(c("span",{children:[V(z.Errors).Summary]})),$(()=>{let dt;const Ft=V(z.Errors).Details;return Ft==null?ht():k(c("div",w(g([["className","pl-1 text-amber-700 items-center inline-flex"],(dt=[c(a4,{text:Ft,children:[X6([])]})],["children",y.Children.toArray(Array.from(dt))])]))))})))),["children",y.Children.toArray(Array.from(xe))])])))],["children",y.Children.toArray(Array.from(ke))])):ht()}))))))),$(()=>H(k(c("td",w(K($(()=>{let ke,Be;const xe=z.FirstName;return xe[0]==null?ht():xe[1]?(ke=xe[0],H(k(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),$(()=>k(["children",ke])))):(Be=xe[0],H(k(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),$(()=>k(["children",Be]))))}))))),$(()=>H(k(c("td",w(K($(()=>{let ke,Be;const xe=z.LastName;return xe[0]==null?ht():xe[1]?(ke=xe[0],H(k(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),$(()=>k(["children",ke])))):(Be=xe[0],H(k(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),$(()=>k(["children",Be]))))}))))),$(()=>H(k(c("td",w(K($(()=>{let ke,Be;const xe=z.Email;return xe[0]==null?ht():xe[1]?(ke=xe[0],H(k(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),$(()=>k(["children",ke])))):(Be=xe[0],H(k(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),$(()=>k(["children",Be]))))}))))),$(()=>H(k(c("td",w(K($(()=>{let ke,Be;const xe=z.MobilePhone;return xe[0]==null?ht():xe[1]?(ke=xe[0],H(k(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),$(()=>k(["children",ke])))):(Be=xe[0],H(k(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),$(()=>k(["children",Be]))))}))))),$(()=>l!=null?k(c("td",w(K($(()=>{let ke,Be;const xe=z.EmploymentBasis;return xe[0]==null?ht():xe[1]?(ke=xe[0],H(k(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),$(()=>k(["children",ke])))):(Be=xe[0],H(k(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),$(()=>k(["children",Be]))))}))))):ht())))))))))))))),["children",y.Children.toArray(Array.from(Ne))]))}))})))))),A.Page))),["children",y.Children.toArray(Array.from(ae))])])))],["children",y.Children.toArray(Array.from(Ce))])])))],["children",y.Children.toArray(Array.from(Y))])]))),c("div",w(g([["className","h-[63px] w-full flex-col justify-start items-start inline-flex"],(pe=[c("div",w(g([["className","self-stretch py-2.5 justify-between items-center inline-flex"],(ee=[(oe=g([c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:"Showing "}),c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:A.RowFrom}),c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" to "}),c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:A.RowTo}),c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" of "}),c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:A.ShowingOnlyRowsWithErrors?A.NumberOfInvalidRows:A.NumberOfRows}),c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" results"})]),c("div",{children:y.Children.toArray(Array.from(oe))})),c("div",w(g([["className","justify-start items-start gap-3 flex"],(Re=[c("button",w(K($(()=>{let z;return H((z=j,z==null?k(["disabled",!0]):k(["onClick",z])),$(()=>{let Ue;return H(k((Ue="px-[17px] py-[9px] disabled:opacity-50 bg-white hover:enabled:bg-gray-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",Ue])),$(()=>{let Ne;return k((Ne=[c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:"Previous"})],["children",y.Children.toArray(Array.from(Ne))]))}))}))})))),c("button",w(K($(()=>{let z;return H((z=F,z==null?k(["disabled",!0]):k(["onClick",z])),$(()=>{let Ue;return H(k((Ue="px-[17px] py-[9px] disabled:opacity-50 bg-white hover:enabled:bg-gray-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",Ue])),$(()=>{let Ne;return k((Ne=[c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:"Next"})],["children",y.Children.toArray(Array.from(Ne))]))}))}))}))))],["children",y.Children.toArray(Array.from(Re))])])))],["children",y.Children.toArray(Array.from(ee))])])))],["children",y.Children.toArray(Array.from(pe))])])))],["children",y.Children.toArray(Array.from(ge))]))))],["children",y.Children.toArray(Array.from(Ae))])])))],["children",y.Children.toArray(Array.from(R))])])))),$(()=>{let z,Ue,Ne,ke,Be,xe,dt,Ft,Ye,Pt,Ut,ln,qi,kn,Wt;return H(A.NumberOfValidRows>0?k(c("div",w(g([["className","pb-10 border-b border-gray-200 justify-start items-start gap-4 inline-flex w-full"],(z=[K6([]),c("div",w(g([["className","grow shrink basis-0 flex-col justify-center items-start gap-4 inline-flex"],(Ue=[c("div",w(g([["className","flex-col justify-start items-start gap-2 flex"],(Ne=[c("div",{className:"text-gray-700 text-base font-semibold leading-normal",children:`Invite ${A.NumberOfValidRows} users to workplace benefits`})],["children",y.Children.toArray(Array.from(Ne))])]))),Co("What is workplace benefits?",()=>{x(!0)}),c("div",w(ue((ke=[c("div",w(g([["className","flex-col justify-start items-start gap-2 flex"],(Be=[c("div",w(g([["key",nt(new Nt(1,[]))],["className","relative flex items-start"],(xe=[c("div",w(g([["className","flex h-6 items-center py-2"],["onClick",Lt=>{N(new Nt(1,[]))}],(dt=[c("input",w(g([["id",nt(new Nt(1,[]))],["name","InviteTiming"],["type","radio"],(Ft="relative size-4 appearance-none rounded-full border border-gray-300 bg-white before:absolute before:inset-1 before:rounded-full before:bg-white checked:border-primary-600 checked:bg-primary-600 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 disabled:border-gray-300 disabled:bg-gray-100 disabled:before:bg-gray-400 forced-colors:appearance-auto forced-colors:before:hidden [&:not(:checked)]:before:hidden",["className",Ft]),["checked",te(A.InviteTiming,new Nt(1,[]))],["onChange",Lt=>{Lt.target.checked,N(new Nt(1,[]))}]])))],["children",y.Children.toArray(Array.from(dt))])]))),c("div",w(g([["className","ml-3 text-sm/6"],(Ye=[c("label",{for:nt(new Nt(1,[])),className:"text-gray-700 text-sm font-medium leading-tight",children:"Import now, Invite later"}),c("p",{id:`${nt(new Nt(1,[]))}-description`,className:"text-gray-500 text-sm font-normal leading-tight",children:"We’ll import your users now. You can invite them to workplace benefits at any time later."})],["children",y.Children.toArray(Array.from(Ye))])])))],["children",y.Children.toArray(Array.from(xe))])])))],["children",y.Children.toArray(Array.from(Be))])]))),c("div",w(ue((Pt=[c("div",w(g([["key",nt(new Nt(0,[]))],["className","relative flex items-start"],(Ut=[c("div",w(g([["className","flex h-6 items-center py-2"],["onClick",Lt=>{N(new Nt(0,[]))}],(ln=[c("input",w(g([["id",nt(new Nt(0,[]))],["name","InviteTiming"],["type","radio"],(qi="relative size-4 appearance-none rounded-full border border-gray-300 bg-white before:absolute before:inset-1 before:rounded-full before:bg-white checked:border-primary-600 checked:bg-primary-600 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 disabled:border-gray-300 disabled:bg-gray-100 disabled:before:bg-gray-400 forced-colors:appearance-auto forced-colors:before:hidden [&:not(:checked)]:before:hidden",["className",qi]),["checked",te(A.InviteTiming,new Nt(0,[]))],["onChange",Lt=>{Lt.target.checked,N(new Nt(0,[]))}]])))],["children",y.Children.toArray(Array.from(ln))])]))),c("div",w(g([["className","ml-3 text-sm/6"],(kn=[c("label",{for:nt(new Nt(0,[])),className:"text-gray-700 text-sm font-medium leading-tight",children:"Import and invite now"}),c("p",w(g([["id",`${nt(new Nt(0,[]))}-description`],["className","text-gray-500 text-sm font-normal leading-tight"],(Wt="We’ll import your users and send an email to help them set up workplace benefits and access the Flare app.",["children",Wt])])))],["children",y.Children.toArray(Array.from(kn))])])))],["children",y.Children.toArray(Array.from(Ut))])])))],["children",y.Children.toArray(Array.from(Pt))]))))],["children",y.Children.toArray(Array.from(ke))]))))],["children",y.Children.toArray(Array.from(Ue))])])))],["children",y.Children.toArray(Array.from(z))])])))):ht(),$(()=>{let Lt,Yi,qu,Yu,Zu,Ku,Xu;return k(c("div",w(g([["className","justify-start items-end gap-2 inline-flex w-full pb-2"],(Lt=[c("div",w(g([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(Yi=[c("div",{className:"grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"}),c("div",w(g([["className","justify-start items-center gap-2 flex"],(qu=[c("button",w(g([(Yu="px-[13px] py-[9px] bg-white hover:bg-gray-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",Yu]),["onClick",Ep=>{s()}],(Zu=[c("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",y.Children.toArray(Array.from(Zu))])]))),c("button",w(g([(Ku="pl-[13px] pr-[11px] py-[9px] disabled:opacity-50 bg-emerald-600 hover:enabled:bg-emerald-700 rounded-md shadow-sm justify-center items-center gap-2 flex overflow-hidden",["className",Ku]),["onClick",Ep=>{T||I(!0)}],["disabled",A.NumberOfValidRows===0],(Xu=[c("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:`Import ${A.NumberOfValidRows} users`})],["children",y.Children.toArray(Array.from(Xu))])])))],["children",y.Children.toArray(Array.from(qu))])])))],["children",y.Children.toArray(Array.from(Yi))])])))],["children",y.Children.toArray(Array.from(Lt))])]))))}))}))}))})))),["children",y.Children.toArray(Array.from(P))])])))],["children",y.Children.toArray(Array.from(O))]))}else return k((S=[l4()],["children",y.Children.toArray(Array.from(S))]))}))))))],["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(t))])])))}class Tn extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UnsupportedFileType","TooLarge","NoData","MoreThan5000Rows","EmptyFieldNames","DuplicateFieldNames","InconsistentRowLengths","GenericParseError"]}}class ws extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Parse","CancelParsing","Remove"]}}var ys={exports:{}};/* @license
52
52
  Papa Parse
53
53
  v5.5.1
54
54
  https://github.com/mholt/PapaParse
55
55
  License: MIT
56
- */var e4=ls.exports,ef;function t4(){return ef||(ef=1,function(e,t){((n,r)=>{e.exports=r()})(e4,function n(){var r=typeof self<"u"?self:typeof window<"u"?window:r!==void 0?r:{},i,o=!r.document&&!!r.postMessage,s=r.IS_PAPA_WORKER||!1,a={},l=0,c={};function f(E){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(_){var k=D(_);k.chunkSize=parseInt(k.chunkSize),_.step||_.chunk||(k.chunkSize=null),this._handle=new v(k),(this._handle.streamer=this)._config=k}).call(this,E),this.parseChunk=function(_,k){var N=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<N){let O=this._config.newline;O||(I=this._config.quoteChar||'"',O=this._handle.guessLineEndings(_,I)),_=[..._.split(O).slice(N)].join(O)}this.isFirstChunk&&L(this._config.beforeFirstChunk)&&(I=this._config.beforeFirstChunk(_))!==void 0&&(_=I),this.isFirstChunk=!1,this._halted=!1;var N=this._partialLine+_,I=(this._partialLine="",this._handle.parse(N,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(_=I.meta.cursor,N=(this._finished||(this._partialLine=N.substring(_-this._baseIndex),this._baseIndex=_),I&&I.data&&(this._rowCount+=I.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),s)r.postMessage({results:I,workerId:c.WORKER_ID,finished:N});else if(L(this._config.chunk)&&!k){if(this._config.chunk(I,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=I=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(I.data),this._completeResults.errors=this._completeResults.errors.concat(I.errors),this._completeResults.meta=I.meta),this._completed||!N||!L(this._config.complete)||I&&I.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),N||I&&I.meta.paused||this._nextChunk(),I}this._halted=!0},this._sendError=function(_){L(this._config.error)?this._config.error(_):s&&this._config.error&&r.postMessage({workerId:c.WORKER_ID,error:_,finished:!1})}}function d(E){var _;(E=E||{}).chunkSize||(E.chunkSize=c.RemoteChunkSize),f.call(this,E),this._nextChunk=o?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(k){this._input=k,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(_=new XMLHttpRequest,this._config.withCredentials&&(_.withCredentials=this._config.withCredentials),o||(_.onload=F(this._chunkLoaded,this),_.onerror=F(this._chunkError,this)),_.open(this._config.downloadRequestBody?"POST":"GET",this._input,!o),this._config.downloadRequestHeaders){var k,N=this._config.downloadRequestHeaders;for(k in N)_.setRequestHeader(k,N[k])}var I;this._config.chunkSize&&(I=this._start+this._config.chunkSize-1,_.setRequestHeader("Range","bytes="+this._start+"-"+I));try{_.send(this._config.downloadRequestBody)}catch(O){this._chunkError(O.message)}o&&_.status===0&&this._chunkError()}},this._chunkLoaded=function(){_.readyState===4&&(_.status<200||400<=_.status?this._chunkError():(this._start+=this._config.chunkSize||_.responseText.length,this._finished=!this._config.chunkSize||this._start>=(k=>(k=k.getResponseHeader("Content-Range"))!==null?parseInt(k.substring(k.lastIndexOf("/")+1)):-1)(_),this.parseChunk(_.responseText)))},this._chunkError=function(k){k=_.statusText||k,this._sendError(new Error(k))}}function p(E){(E=E||{}).chunkSize||(E.chunkSize=c.LocalChunkSize),f.call(this,E);var _,k,N=typeof FileReader<"u";this.stream=function(I){this._input=I,k=I.slice||I.webkitSlice||I.mozSlice,N?((_=new FileReader).onload=F(this._chunkLoaded,this),_.onerror=F(this._chunkError,this)):_=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var I=this._input,O=(this._config.chunkSize&&(O=Math.min(this._start+this._config.chunkSize,this._input.size),I=k.call(I,this._start,O)),_.readAsText(I,this._config.encoding));N||this._chunkLoaded({target:{result:O}})},this._chunkLoaded=function(I){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(I.target.result)},this._chunkError=function(){this._sendError(_.error)}}function h(E){var _;f.call(this,E=E||{}),this.stream=function(k){return _=k,this._nextChunk()},this._nextChunk=function(){var k,N;if(!this._finished)return k=this._config.chunkSize,_=k?(N=_.substring(0,k),_.substring(k)):(N=_,""),this._finished=!_,this.parseChunk(N)}}function m(E){f.call(this,E=E||{});var _=[],k=!0,N=!1;this.pause=function(){f.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){f.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(I){this._input=I,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){N&&_.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),_.length?this.parseChunk(_.shift()):k=!0},this._streamData=F(function(I){try{_.push(typeof I=="string"?I:I.toString(this._config.encoding)),k&&(k=!1,this._checkIsFinished(),this.parseChunk(_.shift()))}catch(O){this._streamError(O)}},this),this._streamError=F(function(I){this._streamCleanUp(),this._sendError(I)},this),this._streamEnd=F(function(){this._streamCleanUp(),N=!0,this._streamData("")},this),this._streamCleanUp=F(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function v(E){var _,k,N,I,O=Math.pow(2,53),B=-O,pe=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,Z=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,U=this,P=0,G=0,j=!1,de=!1,z=[],R={data:[],errors:[],meta:{}};function ge(ne){return E.skipEmptyLines==="greedy"?ne.join("").trim()==="":ne.length===1&&ne[0].length===0}function me(){if(R&&N&&(Ee("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+c.DefaultDelimiter+"'"),N=!1),E.skipEmptyLines&&(R.data=R.data.filter(function(ee){return!ge(ee)})),we()){let ee=function(oe,q){L(E.transformHeader)&&(oe=E.transformHeader(oe,q)),z.push(oe)};var De=ee;if(R)if(Array.isArray(R.data[0])){for(var ne=0;we()&&ne<R.data.length;ne++)R.data[ne].forEach(ee);R.data.splice(0,1)}else R.data.forEach(ee)}function xe(ee,oe){for(var q=E.header?{}:[],Se=0;Se<ee.length;Se++){var te=Se,ce=ee[Se],ce=((Be,ye)=>(Ne=>(E.dynamicTypingFunction&&E.dynamicTyping[Ne]===void 0&&(E.dynamicTyping[Ne]=E.dynamicTypingFunction(Ne)),(E.dynamicTyping[Ne]||E.dynamicTyping)===!0))(Be)?ye==="true"||ye==="TRUE"||ye!=="false"&&ye!=="FALSE"&&((Ne=>{if(pe.test(Ne)&&(Ne=parseFloat(Ne),B<Ne&&Ne<O))return 1})(ye)?parseFloat(ye):Z.test(ye)?new Date(ye):ye===""?null:ye):ye)(te=E.header?Se>=z.length?"__parsed_extra":z[Se]:te,ce=E.transform?E.transform(ce,te):ce);te==="__parsed_extra"?(q[te]=q[te]||[],q[te].push(ce)):q[te]=ce}return E.header&&(Se>z.length?Ee("FieldMismatch","TooManyFields","Too many fields: expected "+z.length+" fields but parsed "+Se,G+oe):Se<z.length&&Ee("FieldMismatch","TooFewFields","Too few fields: expected "+z.length+" fields but parsed "+Se,G+oe)),q}var Ce;R&&(E.header||E.dynamicTyping||E.transform)&&(Ce=1,!R.data.length||Array.isArray(R.data[0])?(R.data=R.data.map(xe),Ce=R.data.length):R.data=xe(R.data,0),E.header&&R.meta&&(R.meta.fields=z),G+=Ce)}function we(){return E.header&&z.length===0}function Ee(ne,xe,Ce,De){ne={type:ne,code:xe,message:Ce},De!==void 0&&(ne.row=De),R.errors.push(ne)}L(E.step)&&(I=E.step,E.step=function(ne){R=ne,we()?me():(me(),R.data.length!==0&&(P+=ne.data.length,E.preview&&P>E.preview?k.abort():(R.data=R.data[0],I(R,U))))}),this.parse=function(ne,xe,Ce){var De=E.quoteChar||'"',De=(E.newline||(E.newline=this.guessLineEndings(ne,De)),N=!1,E.delimiter?L(E.delimiter)&&(E.delimiter=E.delimiter(ne),R.meta.delimiter=E.delimiter):((De=((ee,oe,q,Se,te)=>{var ce,Be,ye,Ne;te=te||[","," ","|",";",c.RECORD_SEP,c.UNIT_SEP];for(var Te=0;Te<te.length;Te++){for(var It,lt=te[Te],Xt=0,Je=0,Pt=0,Ht=(ye=void 0,new x({comments:Se,delimiter:lt,newline:oe,preview:10}).parse(ee)),rn=0;rn<Ht.data.length;rn++)q&&ge(Ht.data[rn])?Pt++:(It=Ht.data[rn].length,Je+=It,ye===void 0?ye=It:0<It&&(Xt+=Math.abs(It-ye),ye=It));0<Ht.data.length&&(Je/=Ht.data.length-Pt),(Be===void 0||Xt<=Be)&&(Ne===void 0||Ne<Je)&&1.99<Je&&(Be=Xt,ce=lt,Ne=Je)}return{successful:!!(E.delimiter=ce),bestDelimiter:ce}})(ne,E.newline,E.skipEmptyLines,E.comments,E.delimitersToGuess)).successful?E.delimiter=De.bestDelimiter:(N=!0,E.delimiter=c.DefaultDelimiter),R.meta.delimiter=E.delimiter),D(E));return E.preview&&E.header&&De.preview++,_=ne,k=new x(De),R=k.parse(_,xe,Ce),me(),j?{meta:{paused:!0}}:R||{meta:{paused:!1}}},this.paused=function(){return j},this.pause=function(){j=!0,k.abort(),_=L(E.chunk)?"":_.substring(k.getCharIndex())},this.resume=function(){U.streamer._halted?(j=!1,U.streamer.parseChunk(_,!0)):setTimeout(U.resume,3)},this.aborted=function(){return de},this.abort=function(){de=!0,k.abort(),R.meta.aborted=!0,L(E.complete)&&E.complete(R),_=""},this.guessLineEndings=function(ee,De){ee=ee.substring(0,1048576);var De=new RegExp(b(De)+"([^]*?)"+b(De),"gm"),Ce=(ee=ee.replace(De,"")).split("\r"),De=ee.split(`
57
- `),ee=1<De.length&&De[0].length<Ce[0].length;if(Ce.length===1||ee)return`
58
- `;for(var oe=0,q=0;q<Ce.length;q++)Ce[q][0]===`
59
- `&&oe++;return oe>=Ce.length/2?`\r
60
- `:"\r"}}function b(E){return E.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function x(E){var _=(E=E||{}).delimiter,k=E.newline,N=E.comments,I=E.step,O=E.preview,B=E.fastMode,pe=null,Z=E.quoteChar==null?'"':E.quoteChar,U=Z;if(E.escapeChar!==void 0&&(U=E.escapeChar),(typeof _!="string"||-1<c.BAD_DELIMITERS.indexOf(_))&&(_=","),N===_)throw new Error("Comment character same as delimiter");N===!0?N="#":(typeof N!="string"||-1<c.BAD_DELIMITERS.indexOf(N))&&(N=!1),k!==`
61
- `&&k!=="\r"&&k!==`\r
62
- `&&(k=`
63
- `);var P=0,G=!1;this.parse=function(j,de,z){if(typeof j!="string")throw new Error("Input must be a string");var R=j.length,ge=_.length,me=k.length,we=N.length,Ee=L(I),ne=[],xe=[],Ce=[],De=P=0;if(!j)return lt();if(B||B!==!1&&j.indexOf(Z)===-1){for(var ee=j.split(k),oe=0;oe<ee.length;oe++){if(Ce=ee[oe],P+=Ce.length,oe!==ee.length-1)P+=k.length;else if(z)return lt();if(!N||Ce.substring(0,we)!==N){if(Ee){if(ne=[],ye(Ce.split(_)),Xt(),G)return lt()}else ye(Ce.split(_));if(O&&O<=oe)return ne=ne.slice(0,O),lt(!0)}}return lt()}for(var q=j.indexOf(_,P),Se=j.indexOf(k,P),te=new RegExp(b(U)+b(Z),"g"),ce=j.indexOf(Z,P);;)if(j[P]===Z)for(ce=P,P++;;){if((ce=j.indexOf(Z,ce+1))===-1)return z||xe.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:ne.length,index:P}),Te();if(ce===R-1)return Te(j.substring(P,ce).replace(te,Z));if(Z===U&&j[ce+1]===U)ce++;else if(Z===U||ce===0||j[ce-1]!==U){q!==-1&&q<ce+1&&(q=j.indexOf(_,ce+1));var Be=Ne((Se=Se!==-1&&Se<ce+1?j.indexOf(k,ce+1):Se)===-1?q:Math.min(q,Se));if(j.substr(ce+1+Be,ge)===_){Ce.push(j.substring(P,ce).replace(te,Z)),j[P=ce+1+Be+ge]!==Z&&(ce=j.indexOf(Z,P)),q=j.indexOf(_,P),Se=j.indexOf(k,P);break}if(Be=Ne(Se),j.substring(ce+1+Be,ce+1+Be+me)===k){if(Ce.push(j.substring(P,ce).replace(te,Z)),It(ce+1+Be+me),q=j.indexOf(_,P),ce=j.indexOf(Z,P),Ee&&(Xt(),G))return lt();if(O&&ne.length>=O)return lt(!0);break}xe.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:ne.length,index:P}),ce++}}else if(N&&Ce.length===0&&j.substring(P,P+we)===N){if(Se===-1)return lt();P=Se+me,Se=j.indexOf(k,P),q=j.indexOf(_,P)}else if(q!==-1&&(q<Se||Se===-1))Ce.push(j.substring(P,q)),P=q+ge,q=j.indexOf(_,P);else{if(Se===-1)break;if(Ce.push(j.substring(P,Se)),It(Se+me),Ee&&(Xt(),G))return lt();if(O&&ne.length>=O)return lt(!0)}return Te();function ye(Je){ne.push(Je),De=P}function Ne(Je){var Pt=0;return Pt=Je!==-1&&(Je=j.substring(ce+1,Je))&&Je.trim()===""?Je.length:Pt}function Te(Je){return z||(Je===void 0&&(Je=j.substring(P)),Ce.push(Je),P=R,ye(Ce),Ee&&Xt()),lt()}function It(Je){P=Je,ye(Ce),Ce=[],Se=j.indexOf(k,P)}function lt(Je){if(E.header&&!de&&ne.length){var Pt=ne[0],Ht={},rn=new Set(Pt);let ji=!1;for(let Cn=0;Cn<Pt.length;Cn++){let gt=Pt[Cn];if(Ht[gt=L(E.transformHeader)?E.transformHeader(gt,Cn):gt]){let Wn,Bi=Ht[gt];for(;Wn=gt+"_"+Bi,Bi++,rn.has(Wn););rn.add(Wn),Pt[Cn]=Wn,Ht[gt]++,ji=!0,(pe=pe===null?{}:pe)[Wn]=gt}else Ht[gt]=1,Pt[Cn]=gt;rn.add(gt)}ji&&console.warn("Duplicate headers found and renamed.")}return{data:ne,errors:xe,meta:{delimiter:_,linebreak:k,aborted:G,truncated:!!Je,cursor:De+(de||0),renamedHeaders:pe}}}function Xt(){I(lt()),ne=[],xe=[]}},this.abort=function(){G=!0},this.getCharIndex=function(){return P}}function C(E){var _=E.data,k=a[_.workerId],N=!1;if(_.error)k.userError(_.error,_.file);else if(_.results&&_.results.data){var I={abort:function(){N=!0,S(_.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:$,resume:$};if(L(k.userStep)){for(var O=0;O<_.results.data.length&&(k.userStep({data:_.results.data[O],errors:_.results.errors,meta:_.results.meta},I),!N);O++);delete _.results}else L(k.userChunk)&&(k.userChunk(_.results,I,_.file),delete _.results)}_.finished&&!N&&S(_.workerId,_.results)}function S(E,_){var k=a[E];L(k.userComplete)&&k.userComplete(_),k.terminate(),delete a[E]}function $(){throw new Error("Not implemented.")}function D(E){if(typeof E!="object"||E===null)return E;var _,k=Array.isArray(E)?[]:{};for(_ in E)k[_]=D(E[_]);return k}function F(E,_){return function(){E.apply(_,arguments)}}function L(E){return typeof E=="function"}return c.parse=function(E,_){var k=(_=_||{}).dynamicTyping||!1;if(L(k)&&(_.dynamicTypingFunction=k,k={}),_.dynamicTyping=k,_.transform=!!L(_.transform)&&_.transform,!_.worker||!c.WORKERS_SUPPORTED)return k=null,c.NODE_STREAM_INPUT,typeof E=="string"?(E=(N=>N.charCodeAt(0)!==65279?N:N.slice(1))(E),k=new(_.download?d:h)(_)):E.readable===!0&&L(E.read)&&L(E.on)?k=new m(_):(r.File&&E instanceof File||E instanceof Object)&&(k=new p(_)),k.stream(E);(k=(()=>{var N;return!!c.WORKERS_SUPPORTED&&(N=(()=>{var I=r.URL||r.webkitURL||null,O=n.toString();return c.BLOB_URL||(c.BLOB_URL=I.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",O,")();"],{type:"text/javascript"})))})(),(N=new r.Worker(N)).onmessage=C,N.id=l++,a[N.id]=N)})()).userStep=_.step,k.userChunk=_.chunk,k.userComplete=_.complete,k.userError=_.error,_.step=L(_.step),_.chunk=L(_.chunk),_.complete=L(_.complete),_.error=L(_.error),delete _.worker,k.postMessage({input:E,config:_,workerId:k.id})},c.unparse=function(E,_){var k=!1,N=!0,I=",",O=`\r
64
- `,B='"',pe=B+B,Z=!1,U=null,P=!1,G=((()=>{if(typeof _=="object"){if(typeof _.delimiter!="string"||c.BAD_DELIMITERS.filter(function(z){return _.delimiter.indexOf(z)!==-1}).length||(I=_.delimiter),typeof _.quotes!="boolean"&&typeof _.quotes!="function"&&!Array.isArray(_.quotes)||(k=_.quotes),typeof _.skipEmptyLines!="boolean"&&typeof _.skipEmptyLines!="string"||(Z=_.skipEmptyLines),typeof _.newline=="string"&&(O=_.newline),typeof _.quoteChar=="string"&&(B=_.quoteChar),typeof _.header=="boolean"&&(N=_.header),Array.isArray(_.columns)){if(_.columns.length===0)throw new Error("Option columns is empty");U=_.columns}_.escapeChar!==void 0&&(pe=_.escapeChar+B),_.escapeFormulae instanceof RegExp?P=_.escapeFormulae:typeof _.escapeFormulae=="boolean"&&_.escapeFormulae&&(P=/^[=+\-@\t\r].*$/)}})(),new RegExp(b(B),"g"));if(typeof E=="string"&&(E=JSON.parse(E)),Array.isArray(E)){if(!E.length||Array.isArray(E[0]))return j(null,E,Z);if(typeof E[0]=="object")return j(U||Object.keys(E[0]),E,Z)}else if(typeof E=="object")return typeof E.data=="string"&&(E.data=JSON.parse(E.data)),Array.isArray(E.data)&&(E.fields||(E.fields=E.meta&&E.meta.fields||U),E.fields||(E.fields=Array.isArray(E.data[0])?E.fields:typeof E.data[0]=="object"?Object.keys(E.data[0]):[]),Array.isArray(E.data[0])||typeof E.data[0]=="object"||(E.data=[E.data])),j(E.fields||[],E.data||[],Z);throw new Error("Unable to serialize unrecognized input");function j(z,R,ge){var me="",we=(typeof z=="string"&&(z=JSON.parse(z)),typeof R=="string"&&(R=JSON.parse(R)),Array.isArray(z)&&0<z.length),Ee=!Array.isArray(R[0]);if(we&&N){for(var ne=0;ne<z.length;ne++)0<ne&&(me+=I),me+=de(z[ne],ne);0<R.length&&(me+=O)}for(var xe=0;xe<R.length;xe++){var Ce=(we?z:R[xe]).length,De=!1,ee=we?Object.keys(R[xe]).length===0:R[xe].length===0;if(ge&&!we&&(De=ge==="greedy"?R[xe].join("").trim()==="":R[xe].length===1&&R[xe][0].length===0),ge==="greedy"&&we){for(var oe=[],q=0;q<Ce;q++){var Se=Ee?z[q]:q;oe.push(R[xe][Se])}De=oe.join("").trim()===""}if(!De){for(var te=0;te<Ce;te++){0<te&&!ee&&(me+=I);var ce=we&&Ee?z[te]:te;me+=de(R[xe][ce],te)}xe<R.length-1&&(!ge||0<Ce&&!ee)&&(me+=O)}}return me}function de(z,R){var ge,me;return z==null?"":z.constructor===Date?JSON.stringify(z).slice(1,25):(me=!1,P&&typeof z=="string"&&P.test(z)&&(z="'"+z,me=!0),ge=z.toString().replace(G,pe),(me=me||k===!0||typeof k=="function"&&k(z,R)||Array.isArray(k)&&k[R]||((we,Ee)=>{for(var ne=0;ne<Ee.length;ne++)if(-1<we.indexOf(Ee[ne]))return!0;return!1})(ge,c.BAD_DELIMITERS)||-1<ge.indexOf(I)||ge.charAt(0)===" "||ge.charAt(ge.length-1)===" ")?B+ge+B:ge)}},c.RECORD_SEP="",c.UNIT_SEP="",c.BYTE_ORDER_MARK="\uFEFF",c.BAD_DELIMITERS=["\r",`
65
- `,'"',c.BYTE_ORDER_MARK],c.WORKERS_SUPPORTED=!o&&!!r.Worker,c.NODE_STREAM_INPUT=1,c.LocalChunkSize=10485760,c.RemoteChunkSize=5242880,c.DefaultDelimiter=",",c.Parser=x,c.ParserHandle=v,c.NetworkStreamer=d,c.FileStreamer=p,c.StringStreamer=h,c.ReadableStreamStreamer=m,r.jQuery&&((i=r.jQuery).fn.parse=function(E){var _=E.config||{},k=[];return this.each(function(O){if(!(i(this).prop("tagName").toUpperCase()==="INPUT"&&i(this).attr("type").toLowerCase()==="file"&&r.FileReader)||!this.files||this.files.length===0)return!0;for(var B=0;B<this.files.length;B++)k.push({file:this.files[B],inputElem:this,instanceConfig:i.extend({},_)})}),N(),this;function N(){if(k.length===0)L(E.complete)&&E.complete();else{var O,B,pe,Z,U=k[0];if(L(E.before)){var P=E.before(U.file,U.inputElem);if(typeof P=="object"){if(P.action==="abort")return O="AbortError",B=U.file,pe=U.inputElem,Z=P.reason,void(L(E.error)&&E.error({name:O},B,pe,Z));if(P.action==="skip")return void I();typeof P.config=="object"&&(U.instanceConfig=i.extend(U.instanceConfig,P.config))}else if(P==="skip")return void I()}var G=U.instanceConfig.complete;U.instanceConfig.complete=function(j){L(G)&&G(j,U.file,U.inputElem),I()},c.parse(U.file,U.instanceConfig)}}function I(){k.splice(0,1),N()}}),s&&(r.onmessage=function(E){E=E.data,c.WORKER_ID===void 0&&E&&(c.WORKER_ID=E.workerId),typeof E.input=="string"?r.postMessage({workerId:c.WORKER_ID,results:c.parse(E.input,E.config),finished:!0}):(r.File&&E.input instanceof File||E.input instanceof Object)&&(E=c.parse(E.input,E.config))&&r.postMessage({workerId:c.WORKER_ID,results:E,finished:!0})}),(d.prototype=Object.create(f.prototype)).constructor=d,(p.prototype=Object.create(f.prototype)).constructor=p,(h.prototype=Object.create(h.prototype)).constructor=h,(m.prototype=Object.create(f.prototype)).constructor=m,c})}(ls)),ls.exports}var n4=t4();const r4=e=>e.filter(n=>!Si(n)).length===0;function i4(e,t){const n=t.type==="text/csv",r=t.size<=10485760;if(n)if(r){const i={};i.complete=(o,s)=>{let a,l,c,f,d,p,h,m,v,b,x,C;e((a=o.errors,!$r(J,a,Ae())&&a.length===0?(l=(c=o.data,c.filter(S=>!r4(S))),f=l.length>1?new M(0,[void 0]):new M(1,[new En(2,[])]),f.tag===1?new M(1,[f.fields[0]]):(d=l.length<=5001?new M(0,[void 0]):new M(1,[new En(3,[])]),d.tag===1?new M(1,[d.fields[0]]):(p=_c(l),h=p.length|0,m=p.some(Si)?new M(1,[new En(4,[])]):new M(0,[void 0]),m.tag===1?new M(1,[m.fields[0]]):(v=(b=Am(Ke(S=>S.trim().toLocaleLowerCase(),p),{Equals:(S,$)=>S===$,GetHashCode:ur}),b.length===h?new M(0,[void 0]):new M(1,[new En(5,[])])),v.tag===1?new M(1,[v.fields[0]]):(x=(C=l.filter(S=>S.length!==h),C.length===0?new M(0,[void 0]):new M(1,[new En(6,[])])),x.tag===1?new M(1,[x.fields[0]]):new M(0,[new z_(new $m(t.name),o0((S,$)=>[new O_(S),new W_($.trim())],_c(l)),new Tm(Ke(S=>new U_(Ke($=>$.trim(),S)),rg(l))),t.size)])))))):new M(1,[new En(7,[he(0,o.errors).message])])))},i.error=(o,s)=>{e(new M(1,[new En(7,[o])]))},i.worker=!0,n4.parse(t,i)}else e(new M(1,[new En(1,[])]));else e(new M(1,[new En(0,[])]))}let xr=class extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NoFileSelected","ParsingFile","FileSelected"]}};function o4(e){return e==null?[new xr(0,[void 0]),X()]:[new xr(2,[e]),X()]}function s4(e,t,n){let r,i,o,s,a;switch(t.tag){case 1:{n.tag===1?r=4:r=5;break}case 2:{n.tag===2?r=6:r=7;break}default:if(t.fields[0].tag===1)t.fields[0].fields[0].tag===1?n.tag===1?(r=2,a=t.fields[0].fields[0].fields[0]):r=3:n.tag===1?(r=1,s=t.fields[0].fields[0].fields[0]):r=3;else switch(n.tag){case 0:{r=0,i=t.fields[0].fields[0][0],o=t.fields[0].fields[0][1];break}case 2:{r=0,i=t.fields[0].fields[0][0],o=t.fields[0].fields[0][1];break}default:r=3}}switch(r){case 0:return[new xr(1,[i]),ns(o)];case 1:return[new xr(2,[s]),ns(l=>{e(!0)})];case 2:return[new xr(0,[a]),X()];case 3:return[n,X()];case 4:return[new xr(0,[void 0]),X()];case 5:return[n,X()];case 6:return[new xr(0,[void 0]),ns(l=>{e(!1)})];default:return[n,X()]}}function a4(e,t){let n,r,i,o,s,a,l;return Pi(g([new _t(3,[e]),new _t(4,[t]),new _t(5,[[Hi(le(new Vi(2,["fixed inset-0 bg-gray-500/50"]))),u("div",w(g([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(n=[Li(le(new lr(2,[[u("div",w(g([["className","flex flex-col mt-6 mb-6 px-6"],(r=[u("div",w(g([["className","flex flex-row justify-between"],(i=[u("span",{className:"text-gray-900 font-semibold text-lg",children:"Frequently asked questions"}),u("button",w(g([["onClick",c=>{t()}],["type","button"],["className","text-gray-700"],(o=[Br(24,24)],["children",y.Children.toArray(Array.from(o))])])))],["children",y.Children.toArray(Array.from(i))])]))),u("div",{className:"font-semibold text-sm pt-6",children:"What file format is accepted for bulk import?"}),u("div",{className:"text-sm text-gray-500 pt-2",children:"The only accepted file format for bulk import is CSV."}),u("div",{className:"font-semibold text-sm pt-6",children:"What is the maximum upload file size?"}),u("div",{className:"text-sm text-gray-500 pt-2",children:"The maximum upload file size is 10 MB."}),u("div",{className:"font-semibold text-sm pt-6",children:"What is the maximum number of rows supported for bulk import?"}),u("div",{className:"text-sm text-gray-500 pt-2",children:"The maximum number of rows you can upload is 5,000."}),u("div",{className:"font-semibold text-sm pt-6",children:"What information do I need to include in the CSV file?"}),u("div",w(g([["className","text-sm text-gray-500 pt-2"],(s="You must include the required fields: “First name,” “Last name,” and “Email” to create a profile. “Mobile number” and “Employment basis” are optional but recommended, as they can help with searching and filtering.",["children",s])]))),u("div",{className:"font-semibold text-sm pt-6",children:"How do I format the CSV file?"}),u("div",w(g([["className","text-sm text-gray-500 pt-2"],(a=`We recommend downloading and editing our sample CSV template, which includes all the necessary column headers and example values.
66
- If you’re using your own CSV, ensure that your data is organised correctly and that there are no extra spaces or special characters.`,["children",a])]))),u("div",{className:"font-semibold text-sm pt-6",children:"What should I do if my CSV file contains errors?"}),u("div",w(g([["className","text-sm text-gray-500 pt-2"],(l=`We recommend checking for common issues, such as missing data or incorrect formatting before upload.
67
- If errors are detected during import, you can download a CSV file that lists all the rows with issues.`,["children",l])])))],["children",y.Children.toArray(Array.from(r))])])))]])))],["children",y.Children.toArray(Array.from(n))])])))]])]))}function l4(e,t){let n,r,i;return u("svg",w(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=g([u("path",w(g([(r="M18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10ZM3.99743 10C3.99743 13.3151 6.68487 16.0026 10 16.0026C13.3151 16.0026 16.0026 13.3151 16.0026 10C16.0026 6.68487 13.3151 3.99743 10 3.99743C6.68487 3.99743 3.99743 6.68487 3.99743 10Z",["d",r]),["fill","#D6E2FC"]]))),u("path",w(g([(i="M10 3C10 2.44772 10.4494 1.99356 10.9974 2.06242C11.7053 2.15137 12.3996 2.3348 13.0615 2.60896C14.0321 3.011 14.914 3.60028 15.6569 4.34315C16.3997 5.08602 16.989 5.96793 17.391 6.93853C17.6652 7.60043 17.8486 8.29473 17.9376 9.0026C18.0064 9.55057 17.5523 10 17 10C16.4477 10 16.0085 9.54925 15.9169 9.00462C15.842 8.55939 15.7169 8.12298 15.5433 7.7039C15.2417 6.97595 14.7998 6.31451 14.2426 5.75736C13.6855 5.20021 13.0241 4.75825 12.2961 4.45672C11.877 4.28313 11.4406 4.15804 10.9954 4.08314C10.4508 3.99152 10 3.55228 10 3Z",["d",i]),["fill","#2E66F7"]])))]),["children",y.Children.toArray(Array.from(n))])])))}function u4(e,t){let n,r;return u("svg",w(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=g([u("path",w(g([(r="M17 21H3C1.346 21 0 19.654 0 18V14H2V18C2 18.551 2.448 19 3 19H17C17.552 19 18 18.551 18 18V14H20V18C20 19.654 18.654 21 17 21Z",["d",r]),["fill","#9CA3AF"]]))),u("path",{d:"M16.414 7L10 0.585999L3.586 7L5 8.414L9 4.414V15H11V4.414L15 8.414L16.414 7Z",fill:"#9CA3AF"})]),["children",y.Children.toArray(Array.from(n))])])))}function c4(e,t){Js(Q.Delay(()=>Q.Bind(T0(1e3),()=>(i4(n=>{t(new as(0,[new Qs(1,[n])]))},e),Q.Zero()))))}const Xa=(()=>{const e=new Blob(["First name,Last name,Email,Mobile phone,Employment basis"],{type:"text/csv;charset=utf-8;"});return window.URL.createObjectURL(e)})();function d4(e){let t,n,r,i,o,s,a,l;const c=e.markDirty,f=e.cancel,d=e.next,p=e.existingCsvFile;let h;const m=o4(p);h=jr(()=>Hr(()=>m,(k,N)=>s4(c,k,N),(k,N)=>{}),void 0,void 0);const v=h[0],b=h[1],x=k=>{b(new as(0,[new Qs(0,[[new $m(k.name),N=>{c4(k,N)}]])]))},C=y.useState(!1),S=C[1],$=y.useState(!1),D=$[1],F=y.useState(!1),L=F[1],E=y.useRef(void 0),_=v.tag===2;return u("div",w(g([["className","bg-gray-50 h-full"],(t=[u("div",w(g([["className","max-w-[640px] flex flex-col mx-12 mt-8 mb-12"],(n=[pp(Xa,C[0],()=>{S(!1)}),a4(F[0],()=>{L(!1)}),Ca("Upload CSV"),Sa("Download and use our template, or upload your own CSV to get started."),u("a",w(g([["className","flex flex-row items-end gap-1"],["href",Xa],["download","import_users"],(r=[u("span",{className:"text-sm font-medium text-primary-600 pt-2",children:"Download sample CSV template"}),hp(16,16)],["children",y.Children.toArray(Array.from(r))])]))),u("div",w(g([["className","flex flex-row pt-3 gap-2"],(i=[go("What kind of data do I need?",()=>{S(!0)}),go("Frequently asked questions",()=>{L(!0)})],["children",y.Children.toArray(Array.from(i))])]))),u("div",w(Y(T(()=>H($[0]?A(["className","h-75 border-gray-300 border-dashed border-2 rounded-md my-6 bg-blue-50 border-blue-300"]):A(["className","h-75 border-gray-300 border-dashed border-2 rounded-md my-6 hover:bg-gray-100"]),T(()=>{let k;return A((k=Y(T(()=>{let N,I,O,B,pe,Z,U,P,G,j,de,z,R,ge;switch(v.tag){case 2:{let me;const we=v.fields[0].SizeInBytes/1024/1024;return me=we<.01?.01:we,A(u("div",w(g([["className","p-6 justify-between items-center inline-flex w-full"],(N=[u("div",w(g([["className","justify-start items-start gap-2 flex"],(I=[u("div",{className:"text-center text-gray-600 text-sm font-medium",children:v.fields[0].Name.fields[0]}),u("span",w(g([["className","text-emerald-700"],(O=[Vu(20,20)],["children",y.Children.toArray(Array.from(O))])])))],["children",y.Children.toArray(Array.from(I))])]))),u("div",w(g([["className","justify-start items-start gap-3 flex"],(B=[u("div",{className:"text-center text-gray-500 text-sm font-medium",children:(pe=Jl("{0:F2}",me),Nr(Fn("%sMB"))(pe))}),u("button",w(g([["className","justify-start items-center gap-1 flex text-red-600"],["onClick",Ee=>{b(new as(2,[]))}],(Z=[u("div",{className:"text-center text-sm font-medium",children:"Remove"}),u("div",w(g([["className","w-4 h-4 justify-center items-center flex"],(U=[Ss(10,10)],["children",y.Children.toArray(Array.from(U))])])))],["children",y.Children.toArray(Array.from(Z))])])))],["children",y.Children.toArray(Array.from(B))])])))],["children",y.Children.toArray(Array.from(N))])]))))}case 1:return A(u("div",w(g([["className","p-6 justify-between items-center inline-flex w-full"],(P=[u("div",w(g([["className","justify-start items-start gap-2 flex"],(G=[u("div",{className:"text-center text-gray-600 text-sm font-medium",children:v.fields[0].fields[0]}),u("span",w(g([["className","animate-spin"],(j=[l4(20,20)],["children",y.Children.toArray(Array.from(j))])])))],["children",y.Children.toArray(Array.from(G))])]))),u("div",w(g([["className","justify-start items-start gap-2 flex"],(de=[u("button",w(g([["className","justify-start items-center gap-1 flex text-red-600"],["onClick",me=>{b(new as(1,[]))}],(z=[u("div",{className:"text-center text-sm font-medium",children:"Cancel"}),u("div",w(g([["className","w-4 h-4 justify-center items-center flex"],(R=[Ss(10,10)],["children",y.Children.toArray(Array.from(R))])])))],["children",y.Children.toArray(Array.from(z))])])))],["children",y.Children.toArray(Array.from(de))])])))],["children",y.Children.toArray(Array.from(P))])]))));default:{const me=we=>{we.preventDefault(),we.stopPropagation()};return A(u("div",w(g([["className","flex flex-col items-center p-4"],["onDragEnter",we=>{me(we),D(!0)}],["onDragLeave",we=>{me(we),D(!1)}],["onDragOver",we=>{me(we),D(!0)}],["onDrop",we=>{let Ee;me(we),D(!1),x((Ee=we,Ee.dataTransfer).files.item(0))}],(ge=Y(T(()=>{let we,Ee,ne,xe,Ce,De;return H((we=v.fields[0],we==null?A(Ae()):(Ee=we,A(u("div",w(g([["className","h-9 p-2 bg-red-50 rounded-md justify-start items-start gap-2 inline-flex w-full"],(ne=[u("div",w(g([["className","w-5 h-5 px-0.5 pt-0.5 pb-[3px] justify-center items-center flex"],(xe=[Xh(16,15)],["children",y.Children.toArray(Array.from(xe))])]))),u("div",w(g([["className","grow shrink basis-0 flex-col justify-start items-start gap-2 inline-flex"],(Ce=[u("div",w(g([["className","self-stretch text-red-800 text-sm font-normal"],(De=Y(T(()=>{let ee;const oe=te=>u("span",{className:"font-medium",children:te}),q=te=>u("span",{children:[te]}),Se=u("a",{className:"underline",children:"sample CSV",href:Xa,download:"import_users"});return A((ee=Ee.tag===1?g([oe("File is too large (over 10MB). "),q("Upload a "),oe("smaller file"),q(".")]):Ee.tag===2?g([oe("File is empty. "),q("Ensure your file contains data before uploading.")]):Ee.tag===3?g([oe("Too many rows (5000+). "),q("Upload a "),oe("file with fewer rows"),q(".")]):Ee.tag===4?g([oe("Invalid CSV: Missing header field(s). "),q("Try using our "),Se,q(".")]):Ee.tag===5?g([oe("Invalid CSV: Duplicate header fields. "),q("Try using our "),Se,q(".")]):Ee.tag===6?g([oe("Invalid CSV: Rows have different lengths. "),q("Check for missing or extra columns.")]):Ee.tag===7?g([oe("Invalid CSV format. "),q("Try using our "),Se,q(".")]):g([oe("Unsupported file type. "),q("Upload a "),oe(".csv file"),q(".")]),u("p",{children:y.Children.toArray(Array.from(ee))})))})),["children",y.Children.toArray(Array.from(De))])])))],["children",y.Children.toArray(Array.from(Ce))])])))],["children",y.Children.toArray(Array.from(ne))])])))))),T(()=>{let ee;return H(A(u("div",w(g([["className","pt-2"],(ee=[u4(20,21)],["children",y.Children.toArray(Array.from(ee))])])))),T(()=>H(A(u("input",{type:"file",onChange:oe=>{const q=oe.target.files;q!=null&&q.length>0&&x(q.item(0))},className:"hidden",ref:E})),T(()=>H(A(u("span",{className:"text-gray-600 text-sm font-medium mt-3",children:"Drag and drop CSV file here"})),T(()=>H(A(u("button",{className:"rounded text-sm w-[120px] border px-3 py-2 mt-4 font-medium text-gray-700 bg-white hover:bg-gray-50",onClick:oe=>{Hn(q=>{q.click()},Ei(E.current))},type:"button",children:y.Children.toArray(["Choose file"])})),T(()=>A(u("span",{className:"text-gray-500 text-xs font-normal mt-2 font-normal pb-2",children:"Maximum size: 10 MB"}))))))))))}))})),["children",y.Children.toArray(Array.from(ge))])]))))}}})),["children",y.Children.toArray(Array.from(k))]))})))))),u("div",w(g([["className","flex flex-row justify-end gap-3"],(o=[u("button",w(g([(s="bg-white hover:bg-gray-50 rounded-md text-red-700 shadow-sm text-sm border border-gray-300 font-medium px-3 py-2 w-[120px]",["className",s]),["onClick",k=>{f()}],["type","button"],["children",y.Children.toArray(["Cancel import"])]]))),u("button",w(g([(a="inline-flex justify-center items-center gap-x-1 rounded-md text-white bg-primary-600 hover:enabled:bg-primary-700 text-sm w-[120px] border font-medium px-3 py-2 disabled:opacity-50",["className",a]),["onClick",k=>{v.tag===2&&d(v.fields[0])}],["type","button"],["disabled",!_],(l=["Map fields",Hu(13,8)],["children",y.Children.toArray(Array.from(l))])])))],["children",y.Children.toArray(Array.from(o))])])))],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}class Bt extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UploadingCsv","MappingColumns","MappingEmploymentBasis","Reviewing"]}}class Lt extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Configuring","Importing"]}}function f4(){return[new Lt(0,[new Bt(0,[void 0])]),X()]}function m4(e,t){let n,r,i,o,s,a,l,c,f,d,p,h,m,v,b,x,C,S,$,D,F,L,E,_,k,N,I,O,B,pe,Z,U,P,G,j,de,z;if(e.tag===1)switch(e.fields[0].tag){case 1:{t.tag===0&&t.fields[0].tag===2?(n=13,N=t.fields[0].fields[0][1],I=t.fields[0].fields[0][0],O=t.fields[0].fields[0][2],B=e.fields[0].fields[0]):n=14;break}case 2:{e.fields[0].fields[0].tag===0?t.tag===0&&t.fields[0].tag===1?(n=17,de=t.fields[0].fields[0][0],z=e.fields[0].fields[0].fields[0]):n=18:e.fields[0].fields[0].fields[1]!=null?t.tag===0&&t.fields[0].tag===1?(n=16,U=e.fields[0].fields[0].fields[0],P=t.fields[0].fields[0][0],G=e.fields[0].fields[0].fields[1],j=t.fields[0].fields[0][1]):n=18:t.tag===0&&t.fields[0].tag===1?(n=15,pe=e.fields[0].fields[0].fields[0],Z=t.fields[0].fields[0][0]):n=18;break}default:t.tag===0&&t.fields[0].tag===3?t.fields[0].fields[0][2]!=null?(n=11,L=t.fields[0].fields[0][1],E=t.fields[0].fields[0][0],_=t.fields[0].fields[0][2][0],k=t.fields[0].fields[0][2][1]):(n=10,D=t.fields[0].fields[0][1],F=t.fields[0].fields[0][0]):n=12}else switch(e.fields[0].tag){case 1:{e.fields[0].fields[1]!=null?t.tag===0&&t.fields[0].tag===1?(n=4,c=e.fields[0].fields[0],f=t.fields[0].fields[0][0],d=e.fields[0].fields[1],p=t.fields[0].fields[0][1]):n=5:t.tag===0&&t.fields[0].tag===1?(n=3,a=e.fields[0].fields[0],l=t.fields[0].fields[0][0]):n=5;break}case 2:{t.tag===0&&t.fields[0].tag===2?(n=6,h=t.fields[0].fields[0][1],m=t.fields[0].fields[0][0],v=t.fields[0].fields[0][2],b=e.fields[0].fields[0]):n=7;break}case 3:{t.tag===0&&t.fields[0].tag===3?(n=8,t.fields[0].fields[0][0],x=t.fields[0].fields[0][1],C=t.fields[0].fields[0][2],S=e.fields[0].fields[1],$=e.fields[0].fields[0]):n=9;break}default:t.tag===0&&t.fields[0].tag===0?t.fields[0].fields[0]!=null?(n=1,i=e.fields[0].fields[0],o=t.fields[0].fields[0][0],s=t.fields[0].fields[0][1]):(n=0,r=e.fields[0].fields[0]):n=2}switch(n){case 0:return[new Lt(0,[new Bt(1,[[r,new Sn(0,[void 0])]])]),X()];case 1:return J(i,o)?[new Lt(0,[new Bt(1,[[o,s]])]),X()]:[new Lt(0,[new Bt(1,[[i,new Sn(0,[void 0])]])]),X()];case 2:return[t,X()];case 3:return[new Lt(0,[new Bt(3,[[l,a,void 0]])]),X()];case 4:return[new Lt(0,[new Bt(2,[[f,c,d,p.tag===1&&p.fields[0].tag===1&&J(d,p.fields[0].fields[1])?p.fields[0].fields[2]:void 0]])]),X()];case 5:return[t,X()];case 6:return[new Lt(0,[new Bt(3,[[m,h,[v,b]]])]),X()];case 7:return[t,X()];case 8:return[new Lt(1,[[$,x,C,S]]),X()];case 9:return[t,X()];case 10:return[new Lt(0,[new Bt(1,[[F,new Sn(1,[new qr(0,[D])])]])]),X()];case 11:return[new Lt(0,[new Bt(2,[[E,L,_,k]])]),X()];case 12:return[t,X()];case 13:return[new Lt(0,[new Bt(1,[[I,new Sn(1,[new qr(1,[N,O,B])])]])]),X()];case 14:return[t,X()];case 15:return[new Lt(0,[new Bt(0,[[Z,new Sn(1,[new qr(0,[pe])])]])]),X()];case 16:return[new Lt(0,[new Bt(0,[[P,j.tag===1?j.fields[0].tag===1?J(U,j.fields[0].fields[0])&&J(G,j.fields[0].fields[1])?j:new Sn(1,[new qr(1,[U,G,void 0])]):new Sn(1,[new qr(1,[U,G,void 0])]):new Sn(1,[new qr(1,[U,G,void 0])])]])]),X()];case 17:return[new Lt(0,[new Bt(0,[[de,new Sn(0,[z])]])]),X()];default:return[t,X()]}}function h4(e,t,n){let r,i,o,s,a,l,c,f,d,p,h;return Pi(g([new _t(3,[e]),new _t(4,[t]),new _t(5,[[Hi(le(new Vi(2,["fixed inset-0 bg-gray-500/50"]))),u("div",w(g([["className","fixed inset-0 z-10 w-screen overflow-y-auto"],(r=[u("div",w(g([["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(i=[Li(g([new lr(1,["relative transform overflow-hidden rounded-lg bg-white px-4 pt-5 pb-4 text-left shadow-xl sm:my-8 sm:w-full sm:max-w-lg sm:p-6"]),new lr(2,[[u("div",w(g([["className","absolute top-0 right-0 hidden pt-4 pr-4 sm:block"],(o=[u("button",w(g([["type","button"],["onClick",m=>{t()}],["className","text-gray-600"],(s=[Br(24,24)],["children",y.Children.toArray(Array.from(s))])])))],["children",y.Children.toArray(Array.from(o))])]))),u("div",w(g([["className","sm:flex sm:items-start"],(a=[u("div",w(g([["className","mx-auto flex size-12 shrink-0 items-center justify-center sm:mx-0 sm:size-10"],(l=[H6([])],["children",y.Children.toArray(Array.from(l))])]))),u("div",w(g([["className","mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"],(c=[Zh(g([new Os(2,["text-gray-900 text-lg font-bold"]),new Os(3,[["Cancel import"]])])),u("div",w(g([["className","mt-2 text-sm text-gray-500 leading-tight"],(f=[u("p",{children:["You’re about to cancel your import. All changes will be discarded."]}),u("br",{}),u("p",{children:["Are you sure you want to cancel and exit?"]})],["children",y.Children.toArray(Array.from(f))])])))],["children",y.Children.toArray(Array.from(c))])])))],["children",y.Children.toArray(Array.from(a))])]))),u("div",w(g([["className","mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"],(d=[u("button",w(g([["type","button"],["onClick",m=>{n()}],(p="inline-flex w-full justify-center rounded-md bg-red-600 px-3 py-2 text-sm font-medium text-white shadow-xs hover:bg-red-500 sm:ml-3 sm:w-auto",["className",p]),["children","Cancel import and exit"]]))),u("button",w(g([["type","button"],["onClick",m=>{t()}],(h="mt-3 inline-flex w-full justify-center rounded-md bg-white px-3 py-2 text-gray-700 text-sm font-medium ring-1 shadow-xs ring-gray-300 ring-inset hover:bg-gray-50 sm:mt-0 sm:w-auto",["className",h]),["children","Continue import"]])))],["children",y.Children.toArray(Array.from(d))])])))]])]))],["children",y.Children.toArray(Array.from(i))])])))],["children",y.Children.toArray(Array.from(r))])])))]])]))}class Ja extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function p4(e,t){let n;const r=Nw();return n=y.useRef(r),Cm(()=>Cu(()=>{Tw(n.current)})),Sm(i=>{$w(n.current)||Js(Q.Delay(()=>Q.TryWith(Q.Delay(()=>(t(new Ja(1,[])),Q.Bind(e(i),o=>(t(new Ja(2,[o])),Q.Zero())))),o=>(t(new Ja(3,[o])),Q.Zero()))),n.current)})}function g4(e,t,n,r,i,o,s){let a,l,c,f,d,p,h;return xm((a=[()=>E6(e,t,n,r,i),m=>{let v,b,x,C;switch(m.tag){case 1:case 0:{v=3;break}case 3:{v=2,C=m.fields[0];break}default:m.fields[0].tag===1?(v=1,x=m.fields[0].fields[0]):(v=0,b=m.fields[0].fields[0])}switch(v){case 0:{o(b);break}case 1:{s(x);break}case 2:{s(Qe(C));break}}}],p4(a[0],a[1]))),u("div",w(g([["className","fixed inset-0 z-100 w-screen overflow-y-auto bg-white"],(l=[u("div",w(g([["className","flex-col w-full h-full justify-center items-center gap-2.5 inline-flex overflow-hidden"],(c=[u("div",w(g([["className","self-stretch h-[118px] flex-col justify-center items-center gap-8 flex"],(f=[u("div",w(g([["className","relative"],(d=[B6([])],["children",y.Children.toArray(Array.from(d))])]))),u("div",w(g([["className","flex-col justify-start items-center gap-6 flex"],(p=[u("div",w(g([["className","w-[140px] h-1.5 relative bg-blue-100 rounded-[5px] overflow-hidden"],(h=[u("div",{style:{animation:"progressBar 2s linear infinite"},className:"h-1.5 top-0 absolute bg-gradient-to-r from-[#a650ff] to-[#0095f2] rounded-[5px]"})],["children",y.Children.toArray(Array.from(h))])])))],["children",y.Children.toArray(Array.from(p))])])))],["children",y.Children.toArray(Array.from(f))])])))],["children",y.Children.toArray(Array.from(c))])])))],["children",y.Children.toArray(Array.from(l))])])))}class pn extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","As","Appear","Show","ClassName","Enter","EnterFrom","EnterTo","Leave","LeaveFrom","LeaveTo","Children"]}}function w4(e){return u(Uh,jn(e,1))}class Zr extends _e{constructor(t,n,r){super(),this.Type=t,this.Title=n,this.Message=r}}class Kr extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Success","Failure","InProgress"]}}function y4(e,t){let n,r,i,o,s,a,l,c;return w4(g([new pn(1,["div"]),new pn(4,["pointer-events-auto w-full max-w-sm overflow-hidden rounded-lg bg-white shadow-lg ring-1 ring-black ring-opacity-5"]),new pn(3,[!0]),new pn(5,["transform ease-out duration-300 transition"]),new pn(6,["translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2"]),new pn(7,["translate-y-0 opacity-100 sm:translate-x-0"]),new pn(8,["transition ease-in duration-100"]),new pn(9,["opacity-100"]),new pn(10,["opacity-0"]),new pn(11,[[u("div",w(g([["key","1"],(n=[u("div",w(g([["className","p-4"],(r=[u("div",w(g([["className","flex items-start"],(i=[u("div",w(g([["className","flex-shrink-0"],(o=Y(T(()=>{const f=t.Type;return f.tag===1?A(U6([])):f.tag===2?A(G6([])):A(W6([]))})),["children",y.Children.toArray(Array.from(o))])]))),u("div",w(g([["className","ml-3 w-0 flex-1 pt-0.5"],(s=[u("p",{className:"text-sm font-medium text-gray-900",children:t.Title}),u("p",{className:"mt-1 text-sm text-gray-500",children:t.Message})],["children",y.Children.toArray(Array.from(s))])]))),u("div",w(g([["className","ml-4 flex flex-shrink-0"],(a=[u("button",w(g([["type","button"],(l="inline-flex rounded-md bg-white text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-2",["className",l]),["onClick",f=>{e()}],(c=[Ss(10,10)],["children",y.Children.toArray(Array.from(c))])])))],["children",y.Children.toArray(Array.from(a))])])))],["children",y.Children.toArray(Array.from(i))])])))],["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(n))])])))]])]))}function v4(e){const t=document.getElementById("workspace-toasts-container"),n=Gy(),r=y4(()=>{document.getElementById(n).remove()},e),i=document.createElement("div");Gl(r,i);const o=i.children[0];o.id=n,t.appendChild(o)}const b4=3e4;function _4(e,t,n,r,i){const o=r.fields[0],s=()=>Q.Delay(()=>Q.Bind(T0(b4),()=>Q.Bind(t(n),a=>{let l,c,f,d;const p=a;return p.tag!==1&&(p.fields[0].tag!==1||(p.fields[0].fields[0].tag===1?(e(new Zr(new Kr(1,[]),"We found a duplicate user",`"${he(i.fields[0],he(p.fields[0].fields[0].fields[0]-2,o).fields[0])}" already exists in our system. This user was skipped during the import.`)),!1):p.fields[0].fields[0].tag===2?(l=p.fields[0].fields[0].fields[0].DuplicateEmailCount>0,c=p.fields[0].fields[0].fields[0].OtherFailuresCount>0,e(l?c?new Zr(new Kr(1,[]),"We found multiple import errors",(f="One or more of the rows experienced errors during import. These rows were skipped during the import.",f)):new Zr(new Kr(1,[]),`We found ${p.fields[0].fields[0].fields[0].DuplicateEmailCount} duplicate users`,(d="One or more of the users you’re trying to add already exist in our system. These users were skipped during the import.",d)):new Zr(new Kr(1,[]),"We found multiple import errors",(f="One or more of the rows experienced errors during import. These rows were skipped during the import.",f))),!1):(e(new Zr(new Kr(0,[]),`Successfully added ${p.fields[0].fields[0].fields[0]} users`,"If you don’t see any new users, try refreshing this page.")),!1)))?Q.Bind(s(),()=>Q.Return(void 0)):Q.Zero()})));e(new Zr(new Kr(2,[]),`Importing ${o.length} users`,"This might take a while. We’ll let you know via email when it’s finished.")),Js(s())}class kt extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Completed","Active","Disabled"]}}class Jo extends _e{constructor(t,n,r,i){super(),this.UploadingCsv=t,this.MappingColumns=n,this.MappingEmploymentBasis=r,this.Reviewing=i}}function tf(){Em(g(["admin","app","users"]))}function gp(e){Em(g(["admin","app","oops"]))}function x4(e){switch(e.tag){case 1:return new Jo(new kt(0,[]),new kt(1,[]),new kt(2,[]),new kt(2,[]));case 2:return new Jo(new kt(0,[]),new kt(0,[]),new kt(1,[]),new kt(2,[]));case 3:return new Jo(new kt(0,[]),new kt(0,[]),new kt(0,[]),new kt(1,[]));default:return new Jo(new kt(1,[]),new kt(2,[]),new kt(2,[]),new kt(2,[]))}}function C4(e,t,n,r,i){switch(i.tag){case 1:{const o=i.fields[0],s=o[1].tag===1?o[1].fields[0].tag===1?[Ed(o[1].fields[0].fields[0],o[1].fields[0].fields[1]),o[0].HeaderRow,o[0].DataRows]:[Ed(o[1].fields[0].fields[0],void 0),o[0].HeaderRow,o[0].DataRows]:[o[1].fields[0],o[0].HeaderRow,o[0].DataRows];return u(d6,{existingMappings:eo(s[0]),headerRow:s[1],dataRows:s[2],next:a=>{let l;n(new pr(0,[(l=a,new Yo(1,[l[0],l[1]]))]))},back:a=>{n(new pr(1,[new Ka(2,[a])]))}})}case 2:{const o=G_(i.fields[0][0].DataRows,i.fields[0][2]);return u(b6,{existingMappings:eo(i.fields[0][3]),employmentBasisColumn:o,next:s=>{n(new pr(0,[new Yo(2,[s])]))},back:s=>{n(new pr(1,[new Ka(1,[s])]))}})}case 3:return u(Q6,{apiCallAsync:e,dataRows:i.fields[0][0].DataRows,baseColumnMappings:i.fields[0][1],employmentBasis:eo(i.fields[0][2]),next:o=>{let s;n(new pr(0,[(s=o,new Yo(3,[s[0],s[1]]))]))},back:()=>{n(new pr(1,[new Ka(0,[])]))},onError:o=>{gp()}});default:{const o=bt(s=>s[0],i.fields[0]);return u(d4,{existingCsvFile:eo(o),next:s=>{n(new pr(0,[new Yo(0,[s])]))},cancel:t,markDirty:r})}}}function Qo(e,t){let n,r,i;switch(t.tag){case 1:return u("div",w(g([["className","text-sm font-medium border-b-2 border-primary-600 pt-1 pb-3 text-primary-600"],(n=[u("span",{children:e})],["children",y.Children.toArray(Array.from(n))])])));case 2:return u("div",w(g([["className","text-sm font-medium pt-1 pb-3 text-gray-500"],(r=[u("span",{children:e})],["children",y.Children.toArray(Array.from(r))])])));default:return u("div",w(g([["className","text-sm font-medium pt-1 pb-3 text-emerald-700 gap-2 inline-flex"],(i=[Vu(20,20),u("span",{children:e})],["children",y.Children.toArray(Array.from(i))])])))}}function S4(e){let t,n,r,i,o;const s=f4();o=jr(()=>Hr(()=>s,m4,(x,C)=>{}),void 0,void 0);const a=o[0],l=y.useState(!1),c=l[0],f=l[1],d=y.useState(!1),p=d[0],h=y.useCallback(x=>{x.preventDefault(),x.returnValue=!0},[]),m=()=>{window.removeEventListener("beforeunload",h)};_m(()=>(p?window.addEventListener("beforeunload",h):m(),{Dispose(){m()}}),[p]);let v;if(a.tag===0){const x=a.fields[0],C=()=>{c||f(!0)},S=x4(x),$=C4(D=>tv(e.backendUrl,D),C,o[1],d[1],x);v=u("div",w(g([["className","flex flex-col h-full"],(t=[h4(c,()=>{c&&f(!1)},()=>{c&&(m(),tf())}),u("div",w(g([["className","flex flex-row justify-between px-12 pt-8 pb-4"],(n=[u("span",{className:"font-sonoma text-gray-900 font-bold text-lg",children:"Import Users from CSV"}),u("button",w(g([(r="bg-white hover:bg-gray-50 rounded-md text-red-700 shadow-sm text-sm border border-gray-300 font-medium px-3 py-2 w-[120px]",["className",r]),["onClick",D=>{C()}],["type","button"],["children",y.Children.toArray(["Cancel import"])]])))],["children",y.Children.toArray(Array.from(n))])]))),u("div",w(g([["className","flex flex-row items-center px-12 gap-2 border-b border-gray-200"],(i=[Qo("1. Upload CSV",S.UploadingCsv),u("hr",{className:"w-16 pt-1.5"}),Qo("2. Map fields",S.MappingColumns),u("hr",{className:"w-16 pt-1.5"}),Qo("3. Map values",S.MappingEmploymentBasis),u("hr",{className:"w-16 pt-1.5"}),Qo("4. Review",S.Reviewing)],["children",y.Children.toArray(Array.from(i))])]))),$],["children",y.Children.toArray(Array.from(t))])])))}else{const x=a.fields[0][0],C=a.fields[0][1];v=g4(S=>nv(e.backendUrl,S),x,C,a.fields[0][2],a.fields[0][3],S=>{m();const $=[S,x,C.Email];_4(D=>{v4(D)},D=>rv(e.backendUrl,D),$[0],$[1],$[2]),tf()},S=>{m(),gp()})}const b=[u("style",{children:[Zl]}),v];return u(ze,{},...b)}function E4(){Fl(e=>u(S4,e),"apollo-import-workspace-wizard")}Fl(e=>u(wg,e),"apollo-import-workspace-app");b_();E4();
56
+ */var f4=ys.exports,lf;function m4(){return lf||(lf=1,function(e,t){((n,r)=>{e.exports=r()})(f4,function n(){var r=typeof self<"u"?self:typeof window<"u"?window:r!==void 0?r:{},i,o=!r.document&&!!r.postMessage,s=r.IS_PAPA_WORKER||!1,a={},l=0,u={};function d(S){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(C){var A=I(C);A.chunkSize=parseInt(A.chunkSize),C.step||C.chunk||(A.chunkSize=null),this._handle=new b(A),(this._handle.streamer=this)._config=A}).call(this,S),this.parseChunk=function(C,A){var N=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<N){let F=this._config.newline;F||(D=this._config.quoteChar||'"',F=this._handle.guessLineEndings(C,D)),C=[...C.split(F).slice(N)].join(F)}this.isFirstChunk&&P(this._config.beforeFirstChunk)&&(D=this._config.beforeFirstChunk(C))!==void 0&&(C=D),this.isFirstChunk=!1,this._halted=!1;var N=this._partialLine+C,D=(this._partialLine="",this._handle.parse(N,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(C=D.meta.cursor,N=(this._finished||(this._partialLine=N.substring(C-this._baseIndex),this._baseIndex=C),D&&D.data&&(this._rowCount+=D.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),s)r.postMessage({results:D,workerId:u.WORKER_ID,finished:N});else if(P(this._config.chunk)&&!A){if(this._config.chunk(D,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=D=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(D.data),this._completeResults.errors=this._completeResults.errors.concat(D.errors),this._completeResults.meta=D.meta),this._completed||!N||!P(this._config.complete)||D&&D.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),N||D&&D.meta.paused||this._nextChunk(),D}this._halted=!0},this._sendError=function(C){P(this._config.error)?this._config.error(C):s&&this._config.error&&r.postMessage({workerId:u.WORKER_ID,error:C,finished:!1})}}function f(S){var C;(S=S||{}).chunkSize||(S.chunkSize=u.RemoteChunkSize),d.call(this,S),this._nextChunk=o?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(A){this._input=A,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(C=new XMLHttpRequest,this._config.withCredentials&&(C.withCredentials=this._config.withCredentials),o||(C.onload=O(this._chunkLoaded,this),C.onerror=O(this._chunkError,this)),C.open(this._config.downloadRequestBody?"POST":"GET",this._input,!o),this._config.downloadRequestHeaders){var A,N=this._config.downloadRequestHeaders;for(A in N)C.setRequestHeader(A,N[A])}var D;this._config.chunkSize&&(D=this._start+this._config.chunkSize-1,C.setRequestHeader("Range","bytes="+this._start+"-"+D));try{C.send(this._config.downloadRequestBody)}catch(F){this._chunkError(F.message)}o&&C.status===0&&this._chunkError()}},this._chunkLoaded=function(){C.readyState===4&&(C.status<200||400<=C.status?this._chunkError():(this._start+=this._config.chunkSize||C.responseText.length,this._finished=!this._config.chunkSize||this._start>=(A=>(A=A.getResponseHeader("Content-Range"))!==null?parseInt(A.substring(A.lastIndexOf("/")+1)):-1)(C),this.parseChunk(C.responseText)))},this._chunkError=function(A){A=C.statusText||A,this._sendError(new Error(A))}}function p(S){(S=S||{}).chunkSize||(S.chunkSize=u.LocalChunkSize),d.call(this,S);var C,A,N=typeof FileReader<"u";this.stream=function(D){this._input=D,A=D.slice||D.webkitSlice||D.mozSlice,N?((C=new FileReader).onload=O(this._chunkLoaded,this),C.onerror=O(this._chunkError,this)):C=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var D=this._input,F=(this._config.chunkSize&&(F=Math.min(this._start+this._config.chunkSize,this._input.size),D=A.call(D,this._start,F)),C.readAsText(D,this._config.encoding));N||this._chunkLoaded({target:{result:F}})},this._chunkLoaded=function(D){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(D.target.result)},this._chunkError=function(){this._sendError(C.error)}}function m(S){var C;d.call(this,S=S||{}),this.stream=function(A){return C=A,this._nextChunk()},this._nextChunk=function(){var A,N;if(!this._finished)return A=this._config.chunkSize,C=A?(N=C.substring(0,A),C.substring(A)):(N=C,""),this._finished=!C,this.parseChunk(N)}}function h(S){d.call(this,S=S||{});var C=[],A=!0,N=!1;this.pause=function(){d.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){d.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(D){this._input=D,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){N&&C.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),C.length?this.parseChunk(C.shift()):A=!0},this._streamData=O(function(D){try{C.push(typeof D=="string"?D:D.toString(this._config.encoding)),A&&(A=!1,this._checkIsFinished(),this.parseChunk(C.shift()))}catch(F){this._streamError(F)}},this),this._streamError=O(function(D){this._streamCleanUp(),this._sendError(D)},this),this._streamEnd=O(function(){this._streamCleanUp(),N=!0,this._streamData("")},this),this._streamCleanUp=O(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function b(S){var C,A,N,D,F=Math.pow(2,53),j=-F,se=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,X=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,J=this,L=0,G=0,B=!1,ce=!1,q=[],R={data:[],errors:[],meta:{}};function fe(Y){return S.skipEmptyLines==="greedy"?Y.join("").trim()==="":Y.length===1&&Y[0].length===0}function U(){if(R&&N&&(ge("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+u.DefaultDelimiter+"'"),N=!1),S.skipEmptyLines&&(R.data=R.data.filter(function(ae){return!fe(ae)})),Ae()){let ae=function(pe,ee){P(S.transformHeader)&&(pe=S.transformHeader(pe,ee)),q.push(pe)};var Ie=ae;if(R)if(Array.isArray(R.data[0])){for(var Y=0;Ae()&&Y<R.data.length;Y++)R.data[Y].forEach(ae);R.data.splice(0,1)}else R.data.forEach(ae)}function Ce(ae,pe){for(var ee=S.header?{}:[],oe=0;oe<ae.length;oe++){var Re=oe,z=ae[oe],z=((Ue,Ne)=>(ke=>(S.dynamicTypingFunction&&S.dynamicTyping[ke]===void 0&&(S.dynamicTyping[ke]=S.dynamicTypingFunction(ke)),(S.dynamicTyping[ke]||S.dynamicTyping)===!0))(Ue)?Ne==="true"||Ne==="TRUE"||Ne!=="false"&&Ne!=="FALSE"&&((ke=>{if(se.test(ke)&&(ke=parseFloat(ke),j<ke&&ke<F))return 1})(Ne)?parseFloat(Ne):X.test(Ne)?new Date(Ne):Ne===""?null:Ne):Ne)(Re=S.header?oe>=q.length?"__parsed_extra":q[oe]:Re,z=S.transform?S.transform(z,Re):z);Re==="__parsed_extra"?(ee[Re]=ee[Re]||[],ee[Re].push(z)):ee[Re]=z}return S.header&&(oe>q.length?ge("FieldMismatch","TooManyFields","Too many fields: expected "+q.length+" fields but parsed "+oe,G+pe):oe<q.length&&ge("FieldMismatch","TooFewFields","Too few fields: expected "+q.length+" fields but parsed "+oe,G+pe)),ee}var ye;R&&(S.header||S.dynamicTyping||S.transform)&&(ye=1,!R.data.length||Array.isArray(R.data[0])?(R.data=R.data.map(Ce),ye=R.data.length):R.data=Ce(R.data,0),S.header&&R.meta&&(R.meta.fields=q),G+=ye)}function Ae(){return S.header&&q.length===0}function ge(Y,Ce,ye,Ie){Y={type:Y,code:Ce,message:ye},Ie!==void 0&&(Y.row=Ie),R.errors.push(Y)}P(S.step)&&(D=S.step,S.step=function(Y){R=Y,Ae()?U():(U(),R.data.length!==0&&(L+=Y.data.length,S.preview&&L>S.preview?A.abort():(R.data=R.data[0],D(R,J))))}),this.parse=function(Y,Ce,ye){var Ie=S.quoteChar||'"',Ie=(S.newline||(S.newline=this.guessLineEndings(Y,Ie)),N=!1,S.delimiter?P(S.delimiter)&&(S.delimiter=S.delimiter(Y),R.meta.delimiter=S.delimiter):((Ie=((ae,pe,ee,oe,Re)=>{var z,Ue,Ne,ke;Re=Re||[","," ","|",";",u.RECORD_SEP,u.UNIT_SEP];for(var Be=0;Be<Re.length;Be++){for(var xe,dt=Re[Be],Ft=0,Ye=0,Pt=0,Ut=(Ne=void 0,new _({comments:oe,delimiter:dt,newline:pe,preview:10}).parse(ae)),ln=0;ln<Ut.data.length;ln++)ee&&fe(Ut.data[ln])?Pt++:(xe=Ut.data[ln].length,Ye+=xe,Ne===void 0?Ne=xe:0<xe&&(Ft+=Math.abs(xe-Ne),Ne=xe));0<Ut.data.length&&(Ye/=Ut.data.length-Pt),(Ue===void 0||Ft<=Ue)&&(ke===void 0||ke<Ye)&&1.99<Ye&&(Ue=Ft,z=dt,ke=Ye)}return{successful:!!(S.delimiter=z),bestDelimiter:z}})(Y,S.newline,S.skipEmptyLines,S.comments,S.delimitersToGuess)).successful?S.delimiter=Ie.bestDelimiter:(N=!0,S.delimiter=u.DefaultDelimiter),R.meta.delimiter=S.delimiter),I(S));return S.preview&&S.header&&Ie.preview++,C=Y,A=new _(Ie),R=A.parse(C,Ce,ye),U(),B?{meta:{paused:!0}}:R||{meta:{paused:!1}}},this.paused=function(){return B},this.pause=function(){B=!0,A.abort(),C=P(S.chunk)?"":C.substring(A.getCharIndex())},this.resume=function(){J.streamer._halted?(B=!1,J.streamer.parseChunk(C,!0)):setTimeout(J.resume,3)},this.aborted=function(){return ce},this.abort=function(){ce=!0,A.abort(),R.meta.aborted=!0,P(S.complete)&&S.complete(R),C=""},this.guessLineEndings=function(ae,Ie){ae=ae.substring(0,1048576);var Ie=new RegExp(v(Ie)+"([^]*?)"+v(Ie),"gm"),ye=(ae=ae.replace(Ie,"")).split("\r"),Ie=ae.split(`
57
+ `),ae=1<Ie.length&&Ie[0].length<ye[0].length;if(ye.length===1||ae)return`
58
+ `;for(var pe=0,ee=0;ee<ye.length;ee++)ye[ee][0]===`
59
+ `&&pe++;return pe>=ye.length/2?`\r
60
+ `:"\r"}}function v(S){return S.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function _(S){var C=(S=S||{}).delimiter,A=S.newline,N=S.comments,D=S.step,F=S.preview,j=S.fastMode,se=null,X=S.quoteChar==null?'"':S.quoteChar,J=X;if(S.escapeChar!==void 0&&(J=S.escapeChar),(typeof C!="string"||-1<u.BAD_DELIMITERS.indexOf(C))&&(C=","),N===C)throw new Error("Comment character same as delimiter");N===!0?N="#":(typeof N!="string"||-1<u.BAD_DELIMITERS.indexOf(N))&&(N=!1),A!==`
61
+ `&&A!=="\r"&&A!==`\r
62
+ `&&(A=`
63
+ `);var L=0,G=!1;this.parse=function(B,ce,q){if(typeof B!="string")throw new Error("Input must be a string");var R=B.length,fe=C.length,U=A.length,Ae=N.length,ge=P(D),Y=[],Ce=[],ye=[],Ie=L=0;if(!B)return dt();if(j||j!==!1&&B.indexOf(X)===-1){for(var ae=B.split(A),pe=0;pe<ae.length;pe++){if(ye=ae[pe],L+=ye.length,pe!==ae.length-1)L+=A.length;else if(q)return dt();if(!N||ye.substring(0,Ae)!==N){if(ge){if(Y=[],Ne(ye.split(C)),Ft(),G)return dt()}else Ne(ye.split(C));if(F&&F<=pe)return Y=Y.slice(0,F),dt(!0)}}return dt()}for(var ee=B.indexOf(C,L),oe=B.indexOf(A,L),Re=new RegExp(v(J)+v(X),"g"),z=B.indexOf(X,L);;)if(B[L]===X)for(z=L,L++;;){if((z=B.indexOf(X,z+1))===-1)return q||Ce.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:Y.length,index:L}),Be();if(z===R-1)return Be(B.substring(L,z).replace(Re,X));if(X===J&&B[z+1]===J)z++;else if(X===J||z===0||B[z-1]!==J){ee!==-1&&ee<z+1&&(ee=B.indexOf(C,z+1));var Ue=ke((oe=oe!==-1&&oe<z+1?B.indexOf(A,z+1):oe)===-1?ee:Math.min(ee,oe));if(B.substr(z+1+Ue,fe)===C){ye.push(B.substring(L,z).replace(Re,X)),B[L=z+1+Ue+fe]!==X&&(z=B.indexOf(X,L)),ee=B.indexOf(C,L),oe=B.indexOf(A,L);break}if(Ue=ke(oe),B.substring(z+1+Ue,z+1+Ue+U)===A){if(ye.push(B.substring(L,z).replace(Re,X)),xe(z+1+Ue+U),ee=B.indexOf(C,L),z=B.indexOf(X,L),ge&&(Ft(),G))return dt();if(F&&Y.length>=F)return dt(!0);break}Ce.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:Y.length,index:L}),z++}}else if(N&&ye.length===0&&B.substring(L,L+Ae)===N){if(oe===-1)return dt();L=oe+U,oe=B.indexOf(A,L),ee=B.indexOf(C,L)}else if(ee!==-1&&(ee<oe||oe===-1))ye.push(B.substring(L,ee)),L=ee+fe,ee=B.indexOf(C,L);else{if(oe===-1)break;if(ye.push(B.substring(L,oe)),xe(oe+U),ge&&(Ft(),G))return dt();if(F&&Y.length>=F)return dt(!0)}return Be();function Ne(Ye){Y.push(Ye),Ie=L}function ke(Ye){var Pt=0;return Pt=Ye!==-1&&(Ye=B.substring(z+1,Ye))&&Ye.trim()===""?Ye.length:Pt}function Be(Ye){return q||(Ye===void 0&&(Ye=B.substring(L)),ye.push(Ye),L=R,Ne(ye),ge&&Ft()),dt()}function xe(Ye){L=Ye,Ne(ye),ye=[],oe=B.indexOf(A,L)}function dt(Ye){if(S.header&&!ce&&Y.length){var Pt=Y[0],Ut={},ln=new Set(Pt);let qi=!1;for(let kn=0;kn<Pt.length;kn++){let Wt=Pt[kn];if(Ut[Wt=P(S.transformHeader)?S.transformHeader(Wt,kn):Wt]){let Lt,Yi=Ut[Wt];for(;Lt=Wt+"_"+Yi,Yi++,ln.has(Lt););ln.add(Lt),Pt[kn]=Lt,Ut[Wt]++,qi=!0,(se=se===null?{}:se)[Lt]=Wt}else Ut[Wt]=1,Pt[kn]=Wt;ln.add(Wt)}qi&&console.warn("Duplicate headers found and renamed.")}return{data:Y,errors:Ce,meta:{delimiter:C,linebreak:A,aborted:G,truncated:!!Ye,cursor:Ie+(ce||0),renamedHeaders:se}}}function Ft(){D(dt()),Y=[],Ce=[]}},this.abort=function(){G=!0},this.getCharIndex=function(){return L}}function x(S){var C=S.data,A=a[C.workerId],N=!1;if(C.error)A.userError(C.error,C.file);else if(C.results&&C.results.data){var D={abort:function(){N=!0,E(C.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:T,resume:T};if(P(A.userStep)){for(var F=0;F<C.results.data.length&&(A.userStep({data:C.results.data[F],errors:C.results.errors,meta:C.results.meta},D),!N);F++);delete C.results}else P(A.userChunk)&&(A.userChunk(C.results,D,C.file),delete C.results)}C.finished&&!N&&E(C.workerId,C.results)}function E(S,C){var A=a[S];P(A.userComplete)&&A.userComplete(C),A.terminate(),delete a[S]}function T(){throw new Error("Not implemented.")}function I(S){if(typeof S!="object"||S===null)return S;var C,A=Array.isArray(S)?[]:{};for(C in S)A[C]=I(S[C]);return A}function O(S,C){return function(){S.apply(C,arguments)}}function P(S){return typeof S=="function"}return u.parse=function(S,C){var A=(C=C||{}).dynamicTyping||!1;if(P(A)&&(C.dynamicTypingFunction=A,A={}),C.dynamicTyping=A,C.transform=!!P(C.transform)&&C.transform,!C.worker||!u.WORKERS_SUPPORTED)return A=null,u.NODE_STREAM_INPUT,typeof S=="string"?(S=(N=>N.charCodeAt(0)!==65279?N:N.slice(1))(S),A=new(C.download?f:m)(C)):S.readable===!0&&P(S.read)&&P(S.on)?A=new h(C):(r.File&&S instanceof File||S instanceof Object)&&(A=new p(C)),A.stream(S);(A=(()=>{var N;return!!u.WORKERS_SUPPORTED&&(N=(()=>{var D=r.URL||r.webkitURL||null,F=n.toString();return u.BLOB_URL||(u.BLOB_URL=D.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",F,")();"],{type:"text/javascript"})))})(),(N=new r.Worker(N)).onmessage=x,N.id=l++,a[N.id]=N)})()).userStep=C.step,A.userChunk=C.chunk,A.userComplete=C.complete,A.userError=C.error,C.step=P(C.step),C.chunk=P(C.chunk),C.complete=P(C.complete),C.error=P(C.error),delete C.worker,A.postMessage({input:S,config:C,workerId:A.id})},u.unparse=function(S,C){var A=!1,N=!0,D=",",F=`\r
64
+ `,j='"',se=j+j,X=!1,J=null,L=!1,G=((()=>{if(typeof C=="object"){if(typeof C.delimiter!="string"||u.BAD_DELIMITERS.filter(function(q){return C.delimiter.indexOf(q)!==-1}).length||(D=C.delimiter),typeof C.quotes!="boolean"&&typeof C.quotes!="function"&&!Array.isArray(C.quotes)||(A=C.quotes),typeof C.skipEmptyLines!="boolean"&&typeof C.skipEmptyLines!="string"||(X=C.skipEmptyLines),typeof C.newline=="string"&&(F=C.newline),typeof C.quoteChar=="string"&&(j=C.quoteChar),typeof C.header=="boolean"&&(N=C.header),Array.isArray(C.columns)){if(C.columns.length===0)throw new Error("Option columns is empty");J=C.columns}C.escapeChar!==void 0&&(se=C.escapeChar+j),C.escapeFormulae instanceof RegExp?L=C.escapeFormulae:typeof C.escapeFormulae=="boolean"&&C.escapeFormulae&&(L=/^[=+\-@\t\r].*$/)}})(),new RegExp(v(j),"g"));if(typeof S=="string"&&(S=JSON.parse(S)),Array.isArray(S)){if(!S.length||Array.isArray(S[0]))return B(null,S,X);if(typeof S[0]=="object")return B(J||Object.keys(S[0]),S,X)}else if(typeof S=="object")return typeof S.data=="string"&&(S.data=JSON.parse(S.data)),Array.isArray(S.data)&&(S.fields||(S.fields=S.meta&&S.meta.fields||J),S.fields||(S.fields=Array.isArray(S.data[0])?S.fields:typeof S.data[0]=="object"?Object.keys(S.data[0]):[]),Array.isArray(S.data[0])||typeof S.data[0]=="object"||(S.data=[S.data])),B(S.fields||[],S.data||[],X);throw new Error("Unable to serialize unrecognized input");function B(q,R,fe){var U="",Ae=(typeof q=="string"&&(q=JSON.parse(q)),typeof R=="string"&&(R=JSON.parse(R)),Array.isArray(q)&&0<q.length),ge=!Array.isArray(R[0]);if(Ae&&N){for(var Y=0;Y<q.length;Y++)0<Y&&(U+=D),U+=ce(q[Y],Y);0<R.length&&(U+=F)}for(var Ce=0;Ce<R.length;Ce++){var ye=(Ae?q:R[Ce]).length,Ie=!1,ae=Ae?Object.keys(R[Ce]).length===0:R[Ce].length===0;if(fe&&!Ae&&(Ie=fe==="greedy"?R[Ce].join("").trim()==="":R[Ce].length===1&&R[Ce][0].length===0),fe==="greedy"&&Ae){for(var pe=[],ee=0;ee<ye;ee++){var oe=ge?q[ee]:ee;pe.push(R[Ce][oe])}Ie=pe.join("").trim()===""}if(!Ie){for(var Re=0;Re<ye;Re++){0<Re&&!ae&&(U+=D);var z=Ae&&ge?q[Re]:Re;U+=ce(R[Ce][z],Re)}Ce<R.length-1&&(!fe||0<ye&&!ae)&&(U+=F)}}return U}function ce(q,R){var fe,U;return q==null?"":q.constructor===Date?JSON.stringify(q).slice(1,25):(U=!1,L&&typeof q=="string"&&L.test(q)&&(q="'"+q,U=!0),fe=q.toString().replace(G,se),(U=U||A===!0||typeof A=="function"&&A(q,R)||Array.isArray(A)&&A[R]||((Ae,ge)=>{for(var Y=0;Y<ge.length;Y++)if(-1<Ae.indexOf(ge[Y]))return!0;return!1})(fe,u.BAD_DELIMITERS)||-1<fe.indexOf(D)||fe.charAt(0)===" "||fe.charAt(fe.length-1)===" ")?j+fe+j:fe)}},u.RECORD_SEP="",u.UNIT_SEP="",u.BYTE_ORDER_MARK="\uFEFF",u.BAD_DELIMITERS=["\r",`
65
+ `,'"',u.BYTE_ORDER_MARK],u.WORKERS_SUPPORTED=!o&&!!r.Worker,u.NODE_STREAM_INPUT=1,u.LocalChunkSize=10485760,u.RemoteChunkSize=5242880,u.DefaultDelimiter=",",u.Parser=_,u.ParserHandle=b,u.NetworkStreamer=f,u.FileStreamer=p,u.StringStreamer=m,u.ReadableStreamStreamer=h,r.jQuery&&((i=r.jQuery).fn.parse=function(S){var C=S.config||{},A=[];return this.each(function(F){if(!(i(this).prop("tagName").toUpperCase()==="INPUT"&&i(this).attr("type").toLowerCase()==="file"&&r.FileReader)||!this.files||this.files.length===0)return!0;for(var j=0;j<this.files.length;j++)A.push({file:this.files[j],inputElem:this,instanceConfig:i.extend({},C)})}),N(),this;function N(){if(A.length===0)P(S.complete)&&S.complete();else{var F,j,se,X,J=A[0];if(P(S.before)){var L=S.before(J.file,J.inputElem);if(typeof L=="object"){if(L.action==="abort")return F="AbortError",j=J.file,se=J.inputElem,X=L.reason,void(P(S.error)&&S.error({name:F},j,se,X));if(L.action==="skip")return void D();typeof L.config=="object"&&(J.instanceConfig=i.extend(J.instanceConfig,L.config))}else if(L==="skip")return void D()}var G=J.instanceConfig.complete;J.instanceConfig.complete=function(B){P(G)&&G(B,J.file,J.inputElem),D()},u.parse(J.file,J.instanceConfig)}}function D(){A.splice(0,1),N()}}),s&&(r.onmessage=function(S){S=S.data,u.WORKER_ID===void 0&&S&&(u.WORKER_ID=S.workerId),typeof S.input=="string"?r.postMessage({workerId:u.WORKER_ID,results:u.parse(S.input,S.config),finished:!0}):(r.File&&S.input instanceof File||S.input instanceof Object)&&(S=u.parse(S.input,S.config))&&r.postMessage({workerId:u.WORKER_ID,results:S,finished:!0})}),(f.prototype=Object.create(d.prototype)).constructor=f,(p.prototype=Object.create(d.prototype)).constructor=p,(m.prototype=Object.create(m.prototype)).constructor=m,(h.prototype=Object.create(d.prototype)).constructor=h,u})}(ys)),ys.exports}var h4=m4();const p4=e=>e.filter(n=>!Ni(n)).length===0;function g4(e,t){const n=t.type==="text/csv",r=t.size<=10485760;if(n)if(r){const i={};i.complete=(o,s)=>{let a,l,u,d,f,p,m,h,b,v,_,x;e((a=o.errors,!Dr(te,a,Se())&&a.length===0?(l=(u=o.data,u.filter(E=>!p4(E))),d=l.length>1?new M(0,[void 0]):new M(1,[new Tn(2,[])]),d.tag===1?new M(1,[d.fields[0]]):(f=l.length<=5001?new M(0,[void 0]):new M(1,[new Tn(3,[])]),f.tag===1?new M(1,[f.fields[0]]):(p=Nc(l),m=p.length|0,h=p.some(Ni)?new M(1,[new Tn(4,[])]):new M(0,[void 0]),h.tag===1?new M(1,[h.fields[0]]):(b=(v=Dm(et(E=>E.trim().toLocaleLowerCase(),p),{Equals:(E,T)=>E===T,GetHashCode:fr}),v.length===m?new M(0,[void 0]):new M(1,[new Tn(5,[])])),b.tag===1?new M(1,[b.fields[0]]):(_=(x=l.filter(E=>E.length!==m),x.length===0?new M(0,[void 0]):new M(1,[new Tn(6,[])])),_.tag===1?new M(1,[_.fields[0]]):new M(0,[new rx(new Pm(t.name),m0((E,T)=>[new W_(E),new Q_(T.trim())],Nc(l)),new Fm(et(E=>new ex(et(T=>T.trim(),E)),dg(l))),t.size)])))))):new M(1,[new Tn(7,[he(0,o.errors).message])])))},i.error=(o,s)=>{e(new M(1,[new Tn(7,[o])]))},i.worker=!0,h4.parse(t,i)}else e(new M(1,[new Tn(1,[])]));else e(new M(1,[new Tn(0,[])]))}let Er=class extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NoFileSelected","ParsingFile","FileSelected"]}};function w4(e){return e==null?[new Er(0,[void 0]),we()]:[new Er(2,[e]),we()]}function y4(e,t,n,r){const i=d=>Pn(t,new gn(1,[{Success:d}]));let o,s,a,l,u;switch(n.tag){case 1:{r.tag===1?o=4:o=5;break}case 2:{r.tag===2?o=6:o=7;break}default:if(n.fields[0].tag===1)n.fields[0].fields[0].tag===1?r.tag===1?(o=2,u=n.fields[0].fields[0].fields[0]):o=3:r.tag===1?(o=1,l=n.fields[0].fields[0].fields[0]):o=3;else switch(r.tag){case 0:{o=0,s=n.fields[0].fields[0][0],a=n.fields[0].fields[0][1];break}case 2:{o=0,s=n.fields[0].fields[0][0],a=n.fields[0].fields[0][1];break}default:o=3}}switch(o){case 0:return[new Er(1,[s]),mm(a)];case 1:return[new Er(2,[l]),fm(g([Pn(e,!0),i(!0)]))];case 2:return[new Er(0,[u]),i(!1)];case 3:return[r,we()];case 4:return[new Er(0,[void 0]),we()];case 5:return[r,we()];case 6:return[new Er(0,[void 0]),Pn(e,!1)];default:return[r,we()]}}function v4(e,t){let n,r,i,o,s,a,l;return Ui(g([new xt(3,[e]),new xt(4,[t]),new xt(5,[[zi(ue(new Gi(2,["fixed inset-0 bg-gray-500/50"]))),c("div",w(g([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(n=[Wi(ue(new dr(2,[[c("div",w(g([["className","flex flex-col mt-6 mb-6 px-6"],(r=[c("div",w(g([["className","flex flex-row justify-between"],(i=[c("span",{className:"text-gray-900 font-semibold text-lg",children:"Frequently asked questions"}),c("button",w(g([["onClick",u=>{t()}],["type","button"],["className","text-gray-700"],(o=[Gr(24,24)],["children",y.Children.toArray(Array.from(o))])])))],["children",y.Children.toArray(Array.from(i))])]))),c("div",{className:"font-semibold text-sm pt-6",children:"What file format is accepted for bulk import?"}),c("div",{className:"text-sm text-gray-500 pt-2",children:"The only accepted file format for bulk import is CSV."}),c("div",{className:"font-semibold text-sm pt-6",children:"What is the maximum upload file size?"}),c("div",{className:"text-sm text-gray-500 pt-2",children:"The maximum upload file size is 10 MB."}),c("div",{className:"font-semibold text-sm pt-6",children:"What is the maximum number of rows supported for bulk import?"}),c("div",{className:"text-sm text-gray-500 pt-2",children:"The maximum number of rows you can upload is 5,000."}),c("div",{className:"font-semibold text-sm pt-6",children:"What information do I need to include in the CSV file?"}),c("div",w(g([["className","text-sm text-gray-500 pt-2"],(s="You must include the required fields: “First name,” “Last name,” and “Email” to create a profile. “Mobile number” and “Employment basis” are optional but recommended, as they can help with searching and filtering.",["children",s])]))),c("div",{className:"font-semibold text-sm pt-6",children:"How do I format the CSV file?"}),c("div",w(g([["className","text-sm text-gray-500 pt-2"],(a=`We recommend downloading and editing our sample CSV template, which includes all the necessary column headers and example values.
66
+ If you’re using your own CSV, ensure that your data is organised correctly and that there are no extra spaces or special characters.`,["children",a])]))),c("div",{className:"font-semibold text-sm pt-6",children:"What should I do if my CSV file contains errors?"}),c("div",w(g([["className","text-sm text-gray-500 pt-2"],(l=`We recommend checking for common issues, such as missing data or incorrect formatting before upload.
67
+ If errors are detected during import, you can download a CSV file that lists all the rows with issues.`,["children",l])])))],["children",y.Children.toArray(Array.from(r))])])))]])))],["children",y.Children.toArray(Array.from(n))])])))]])]))}function b4(e,t){let n,r,i;return c("svg",w(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=g([c("path",w(g([(r="M18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10ZM3.99743 10C3.99743 13.3151 6.68487 16.0026 10 16.0026C13.3151 16.0026 16.0026 13.3151 16.0026 10C16.0026 6.68487 13.3151 3.99743 10 3.99743C6.68487 3.99743 3.99743 6.68487 3.99743 10Z",["d",r]),["fill","#D6E2FC"]]))),c("path",w(g([(i="M10 3C10 2.44772 10.4494 1.99356 10.9974 2.06242C11.7053 2.15137 12.3996 2.3348 13.0615 2.60896C14.0321 3.011 14.914 3.60028 15.6569 4.34315C16.3997 5.08602 16.989 5.96793 17.391 6.93853C17.6652 7.60043 17.8486 8.29473 17.9376 9.0026C18.0064 9.55057 17.5523 10 17 10C16.4477 10 16.0085 9.54925 15.9169 9.00462C15.842 8.55939 15.7169 8.12298 15.5433 7.7039C15.2417 6.97595 14.7998 6.31451 14.2426 5.75736C13.6855 5.20021 13.0241 4.75825 12.2961 4.45672C11.877 4.28313 11.4406 4.15804 10.9954 4.08314C10.4508 3.99152 10 3.55228 10 3Z",["d",i]),["fill","#2E66F7"]])))]),["children",y.Children.toArray(Array.from(n))])])))}function _4(e,t){let n,r;return c("svg",w(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=g([c("path",w(g([(r="M17 21H3C1.346 21 0 19.654 0 18V14H2V18C2 18.551 2.448 19 3 19H17C17.552 19 18 18.551 18 18V14H20V18C20 19.654 18.654 21 17 21Z",["d",r]),["fill","#9CA3AF"]]))),c("path",{d:"M16.414 7L10 0.585999L3.586 7L5 8.414L9 4.414V15H11V4.414L15 8.414L16.414 7Z",fill:"#9CA3AF"})]),["children",y.Children.toArray(Array.from(n))])])))}function x4(e,t){Ii(Z.Delay(()=>Z.Bind(N0(1e3),()=>(g4(n=>{t(new ws(0,[new da(1,[n])]))},e),Z.Zero()))))}const nl=(()=>{const e=new Blob(["First name,Last name,Email,Mobile phone,Employment basis"],{type:"text/csv;charset=utf-8;"});return window.URL.createObjectURL(e)})();function C4(e){let t,n,r,i,o,s,a,l;const u=e.sendAnalytics,d=e.markDirty,f=e.cancel,p=e.next,m=e.existingCsvFile;let h;const b=w4(m);h=Wr(()=>Ur(()=>b,(N,D)=>y4(d,u,N,D),(N,D)=>{}),void 0,void 0);const v=h[0],_=h[1],x=N=>{_(new ws(0,[new da(0,[[new Pm(N.name),D=>{x4(N,D)}]])]))},E=y.useState(!1),T=E[1],I=y.useState(!1),O=I[1],P=y.useState(!1),S=P[1],C=y.useRef(void 0),A=v.tag===2;return c("div",w(g([["className","bg-gray-50 h-full"],(t=[c("div",w(g([["className","max-w-[640px] flex flex-col mx-12 mt-8 mb-12"],(n=[xp(nl,E[0],()=>{T(!1)}),v4(P[0],()=>{S(!1)}),Na("Upload CSV"),Ta("Download and use our template, or upload your own CSV to get started."),c("a",w(g([["className","flex flex-row items-end gap-1"],["href",nl],["download","import_users"],(r=[c("span",{className:"text-sm font-medium text-primary-600 pt-2",children:"Download sample CSV template"}),_p(16,16)],["children",y.Children.toArray(Array.from(r))])]))),c("div",w(g([["className","flex flex-row pt-3 gap-2"],(i=[Co("What kind of data do I need?",()=>{T(!0)}),Co("Frequently asked questions",()=>{S(!0)})],["children",y.Children.toArray(Array.from(i))])]))),c("div",w(K($(()=>H(I[0]?k(["className","h-75 border-gray-300 border-dashed border-2 rounded-md my-6 bg-blue-50 border-blue-300"]):k(["className","h-75 border-gray-300 border-dashed border-2 rounded-md my-6 hover:bg-gray-100"]),$(()=>{let N;return k((N=K($(()=>{let D,F,j,se,X,J,L,G,B,ce,q,R,fe,U;switch(v.tag){case 2:{let Ae;const ge=v.fields[0].SizeInBytes/1024/1024;return Ae=ge<.01?.01:ge,k(c("div",w(g([["className","p-6 justify-between items-center inline-flex w-full"],(D=[c("div",w(g([["className","justify-start items-start gap-2 flex"],(F=[c("div",{className:"text-center text-gray-600 text-sm font-medium",children:v.fields[0].Name.fields[0]}),c("span",w(g([["className","text-emerald-700"],(j=[Gu(20,20)],["children",y.Children.toArray(Array.from(j))])])))],["children",y.Children.toArray(Array.from(F))])]))),c("div",w(g([["className","justify-start items-start gap-3 flex"],(se=[c("div",{className:"text-center text-gray-500 text-sm font-medium",children:(X=nu("{0:F2}",Ae),Mr(Hn("%sMB"))(X))}),c("button",w(g([["className","justify-start items-center gap-1 flex text-red-600"],["onClick",Y=>{_(new ws(2,[]))}],(J=[c("div",{className:"text-center text-sm font-medium",children:"Remove"}),c("div",w(g([["className","w-4 h-4 justify-center items-center flex"],(L=[Ds(10,10)],["children",y.Children.toArray(Array.from(L))])])))],["children",y.Children.toArray(Array.from(J))])])))],["children",y.Children.toArray(Array.from(se))])])))],["children",y.Children.toArray(Array.from(D))])]))))}case 1:return k(c("div",w(g([["className","p-6 justify-between items-center inline-flex w-full"],(G=[c("div",w(g([["className","justify-start items-start gap-2 flex"],(B=[c("div",{className:"text-center text-gray-600 text-sm font-medium",children:v.fields[0].fields[0]}),c("span",w(g([["className","animate-spin"],(ce=[b4(20,20)],["children",y.Children.toArray(Array.from(ce))])])))],["children",y.Children.toArray(Array.from(B))])]))),c("div",w(g([["className","justify-start items-start gap-2 flex"],(q=[c("button",w(g([["className","justify-start items-center gap-1 flex text-red-600"],["onClick",Ae=>{_(new ws(1,[]))}],(R=[c("div",{className:"text-center text-sm font-medium",children:"Cancel"}),c("div",w(g([["className","w-4 h-4 justify-center items-center flex"],(fe=[Ds(10,10)],["children",y.Children.toArray(Array.from(fe))])])))],["children",y.Children.toArray(Array.from(R))])])))],["children",y.Children.toArray(Array.from(q))])])))],["children",y.Children.toArray(Array.from(G))])]))));default:{const Ae=ge=>{ge.preventDefault(),ge.stopPropagation()};return k(c("div",w(g([["className","flex flex-col items-center p-4"],["onDragEnter",ge=>{Ae(ge),O(!0)}],["onDragLeave",ge=>{Ae(ge),O(!1)}],["onDragOver",ge=>{Ae(ge),O(!0)}],["onDrop",ge=>{let Y;Ae(ge),O(!1),x((Y=ge,Y.dataTransfer).files.item(0))}],(U=K($(()=>{let ge,Y,Ce,ye,Ie,ae;return H((ge=v.fields[0],ge==null?k(Se()):(Y=ge,k(c("div",w(g([["className","h-9 p-2 bg-red-50 rounded-md justify-start items-start gap-2 inline-flex w-full"],(Ce=[c("div",w(g([["className","w-5 h-5 px-0.5 pt-0.5 pb-[3px] justify-center items-center flex"],(ye=[ip(16,15)],["children",y.Children.toArray(Array.from(ye))])]))),c("div",w(g([["className","grow shrink basis-0 flex-col justify-start items-start gap-2 inline-flex"],(Ie=[c("div",w(g([["className","self-stretch text-red-800 text-sm font-normal"],(ae=K($(()=>{let pe;const ee=z=>c("span",{className:"font-medium",children:z}),oe=z=>c("span",{children:[z]}),Re=c("a",{className:"underline",children:"sample CSV",href:nl,download:"import_users"});return k((pe=Y.tag===1?g([ee("File is too large (over 10MB). "),oe("Upload a "),ee("smaller file"),oe(".")]):Y.tag===2?g([ee("File is empty. "),oe("Ensure your file contains data before uploading.")]):Y.tag===3?g([ee("Too many rows (5000+). "),oe("Upload a "),ee("file with fewer rows"),oe(".")]):Y.tag===4?g([ee("Invalid CSV: Missing header field(s). "),oe("Try using our "),Re,oe(".")]):Y.tag===5?g([ee("Invalid CSV: Duplicate header fields. "),oe("Try using our "),Re,oe(".")]):Y.tag===6?g([ee("Invalid CSV: Rows have different lengths. "),oe("Check for missing or extra columns.")]):Y.tag===7?g([ee("Invalid CSV format. "),oe("Try using our "),Re,oe(".")]):g([ee("Unsupported file type. "),oe("Upload a "),ee(".csv file"),oe(".")]),c("p",{children:y.Children.toArray(Array.from(pe))})))})),["children",y.Children.toArray(Array.from(ae))])])))],["children",y.Children.toArray(Array.from(Ie))])])))],["children",y.Children.toArray(Array.from(Ce))])])))))),$(()=>{let pe;return H(k(c("div",w(g([["className","pt-2"],(pe=[_4(20,21)],["children",y.Children.toArray(Array.from(pe))])])))),$(()=>H(k(c("input",{type:"file",onChange:ee=>{const oe=ee.target.files;oe!=null&&oe.length>0&&x(oe.item(0))},className:"hidden",ref:C})),$(()=>H(k(c("span",{className:"text-gray-600 text-sm font-medium mt-3",children:"Drag and drop CSV file here"})),$(()=>H(k(c("button",{className:"rounded text-sm w-[120px] border px-3 py-2 mt-4 font-medium text-gray-700 bg-white hover:bg-gray-50",onClick:ee=>{Wn(oe=>{oe.click()},Ti(C.current))},type:"button",children:y.Children.toArray(["Choose file"])})),$(()=>k(c("span",{className:"text-gray-500 text-xs font-normal mt-2 font-normal pb-2",children:"Maximum size: 10 MB"}))))))))))}))})),["children",y.Children.toArray(Array.from(U))])]))))}}})),["children",y.Children.toArray(Array.from(N))]))})))))),c("div",w(g([["className","flex flex-row justify-end gap-3"],(o=[c("button",w(g([(s="bg-white hover:bg-gray-50 rounded-md text-red-700 shadow-sm text-sm border border-gray-300 font-medium px-3 py-2 w-[120px]",["className",s]),["onClick",N=>{f()}],["type","button"],["children",y.Children.toArray(["Cancel import"])]]))),c("button",w(g([(a="inline-flex justify-center items-center gap-x-1 rounded-md text-white bg-primary-600 hover:enabled:bg-primary-700 text-sm w-[120px] border font-medium px-3 py-2 disabled:opacity-50",["className",a]),["onClick",N=>{v.tag===2&&p(v.fields[0])}],["type","button"],["disabled",!A],(l=["Map fields",zu(13,8)],["children",y.Children.toArray(Array.from(l))])])))],["children",y.Children.toArray(Array.from(o))])])))],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}class zt extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UploadingCsv","MappingColumns","MappingEmploymentBasis","Reviewing"]}}function Cp(e){switch(e.tag){case 1:return"field mapping";case 2:return"value mapping";case 3:return"review";default:return"file upload"}}class Vt extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Configuring","Importing"]}}function uf(e){return e.tag===1?"requested":Cp(e.fields[0])}function S4(){return[new Vt(0,[new zt(0,[void 0])]),we()]}function E4(e,t,n){const r=(U,Ae)=>Pn(e,new gn(3,[{From:uf(U),To:uf(Ae)}]));let i,o,s,a,l,u,d,f,p,m,h,b,v,_,x,E,T,I,O,P,S,C,A,N,D,F,j,se,X,J,L,G,B,ce,q,R,fe;if(t.tag===1)switch(t.fields[0].tag){case 1:{n.tag===0&&n.fields[0].tag===2?(i=13,F=n.fields[0].fields[0][1],j=n.fields[0].fields[0][0],se=n.fields[0].fields[0][2],X=t.fields[0].fields[0]):i=14;break}case 2:{t.fields[0].fields[0].tag===0?n.tag===0&&n.fields[0].tag===1?(i=17,R=n.fields[0].fields[0][0],fe=t.fields[0].fields[0].fields[0]):i=18:t.fields[0].fields[0].fields[1]!=null?n.tag===0&&n.fields[0].tag===1?(i=16,G=t.fields[0].fields[0].fields[0],B=n.fields[0].fields[0][0],ce=t.fields[0].fields[0].fields[1],q=n.fields[0].fields[0][1]):i=18:n.tag===0&&n.fields[0].tag===1?(i=15,J=t.fields[0].fields[0].fields[0],L=n.fields[0].fields[0][0]):i=18;break}default:n.tag===0&&n.fields[0].tag===3?n.fields[0].fields[0][2]!=null?(i=11,C=n.fields[0].fields[0][1],A=n.fields[0].fields[0][0],N=n.fields[0].fields[0][2][0],D=n.fields[0].fields[0][2][1]):(i=10,P=n.fields[0].fields[0][1],S=n.fields[0].fields[0][0]):i=12}else switch(t.fields[0].tag){case 1:{t.fields[0].fields[1]!=null?n.tag===0&&n.fields[0].tag===1?(i=4,f=t.fields[0].fields[0],p=n.fields[0].fields[0][0],m=t.fields[0].fields[1],h=n.fields[0].fields[0][1]):i=5:n.tag===0&&n.fields[0].tag===1?(i=3,u=t.fields[0].fields[0],d=n.fields[0].fields[0][0]):i=5;break}case 2:{n.tag===0&&n.fields[0].tag===2?(i=6,b=n.fields[0].fields[0][1],v=n.fields[0].fields[0][0],_=n.fields[0].fields[0][2],x=t.fields[0].fields[0]):i=7;break}case 3:{n.tag===0&&n.fields[0].tag===3?(i=8,n.fields[0].fields[0][0],E=n.fields[0].fields[0][1],T=n.fields[0].fields[0][2],I=t.fields[0].fields[1],O=t.fields[0].fields[0]):i=9;break}default:n.tag===0&&n.fields[0].tag===0?n.fields[0].fields[0]!=null?(i=1,s=t.fields[0].fields[0],a=n.fields[0].fields[0][0],l=n.fields[0].fields[0][1]):(i=0,o=t.fields[0].fields[0]):i=2}switch(i){case 0:{const U=new Vt(0,[new zt(1,[[o,new Nn(0,[void 0])]])]);return[U,r(n,U)]}case 1:{const U=te(s,a)?new Vt(0,[new zt(1,[[a,l]])]):new Vt(0,[new zt(1,[[s,new Nn(0,[void 0])]])]);return[U,r(n,U)]}case 2:return[n,we()];case 3:{const U=new Vt(0,[new zt(3,[[d,u,void 0]])]);return[U,r(n,U)]}case 4:{const U=new Vt(0,[new zt(2,[[p,f,m,h.tag===1&&h.fields[0].tag===1&&te(m,h.fields[0].fields[1])?h.fields[0].fields[2]:void 0]])]);return[U,r(n,U)]}case 5:return[n,we()];case 6:{const U=new Vt(0,[new zt(3,[[v,b,[_,x]]])]);return[U,r(n,U)]}case 7:return[n,we()];case 8:{const U=new Vt(1,[[O,E,T,I]]);return[U,r(n,U)]}case 9:return[n,we()];case 10:{const U=new Vt(0,[new zt(1,[[S,new Nn(1,[new Kr(0,[P])])]])]);return[U,r(n,U)]}case 11:{const U=new Vt(0,[new zt(2,[[A,C,N,D]])]);return[U,r(n,U)]}case 12:return[n,we()];case 13:{const U=new Vt(0,[new zt(1,[[j,new Nn(1,[new Kr(1,[F,se,X])])]])]);return[U,r(n,U)]}case 14:return[n,we()];case 15:{const U=new Vt(0,[new zt(0,[[L,new Nn(1,[new Kr(0,[J])])]])]);return[U,r(n,U)]}case 16:{const U=new Vt(0,[new zt(0,[[B,q.tag===1?q.fields[0].tag===1?te(G,q.fields[0].fields[0])&&te(ce,q.fields[0].fields[1])?q:new Nn(1,[new Kr(1,[G,ce,void 0])]):new Nn(1,[new Kr(1,[G,ce,void 0])]):new Nn(1,[new Kr(1,[G,ce,void 0])])]])]);return[U,r(n,U)]}case 17:{const U=new Vt(0,[new zt(0,[[R,new Nn(0,[fe])]])]);return[U,r(n,U)]}default:return[n,we()]}}function A4(e,t,n){let r,i,o,s,a,l,u,d,f,p,m;return Ui(g([new xt(3,[e]),new xt(4,[t]),new xt(5,[[zi(ue(new Gi(2,["fixed inset-0 bg-gray-500/50"]))),c("div",w(g([["className","fixed inset-0 z-10 w-screen overflow-y-auto"],(r=[c("div",w(g([["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(i=[Wi(g([new dr(1,["relative transform overflow-hidden rounded-lg bg-white px-4 pt-5 pb-4 text-left shadow-xl sm:my-8 sm:w-full sm:max-w-lg sm:p-6"]),new dr(2,[[c("div",w(g([["className","absolute top-0 right-0 hidden pt-4 pr-4 sm:block"],(o=[c("button",w(g([["type","button"],["onClick",h=>{t()}],["className","text-gray-600"],(s=[Gr(24,24)],["children",y.Children.toArray(Array.from(s))])])))],["children",y.Children.toArray(Array.from(o))])]))),c("div",w(g([["className","sm:flex sm:items-start"],(a=[c("div",w(g([["className","mx-auto flex size-12 shrink-0 items-center justify-center sm:mx-0 sm:size-10"],(l=[J6([])],["children",y.Children.toArray(Array.from(l))])]))),c("div",w(g([["className","mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"],(u=[np(g([new Us(2,["text-gray-900 text-lg font-bold"]),new Us(3,[["Cancel import"]])])),c("div",w(g([["className","mt-2 text-sm text-gray-500 leading-tight"],(d=[c("p",{children:["You’re about to cancel your import. All changes will be discarded."]}),c("br",{}),c("p",{children:["Are you sure you want to cancel and exit?"]})],["children",y.Children.toArray(Array.from(d))])])))],["children",y.Children.toArray(Array.from(u))])])))],["children",y.Children.toArray(Array.from(a))])]))),c("div",w(g([["className","mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"],(f=[c("button",w(g([["type","button"],["onClick",h=>{n()}],(p="inline-flex w-full justify-center rounded-md bg-red-600 px-3 py-2 text-sm font-medium text-white shadow-xs hover:bg-red-500 sm:ml-3 sm:w-auto",["className",p]),["children","Cancel import and exit"]]))),c("button",w(g([["type","button"],["onClick",h=>{t()}],(m="mt-3 inline-flex w-full justify-center rounded-md bg-white px-3 py-2 text-gray-700 text-sm font-medium ring-1 shadow-xs ring-gray-300 ring-inset hover:bg-gray-50 sm:mt-0 sm:w-auto",["className",m]),["children","Continue import"]])))],["children",y.Children.toArray(Array.from(f))])])))]])]))],["children",y.Children.toArray(Array.from(i))])])))],["children",y.Children.toArray(Array.from(r))])])))]])]))}class rl extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function k4(e,t){let n;const r=iw();return n=y.useRef(r),T0(()=>mu(()=>{ow(n.current)})),$0(i=>{sw(n.current)||Ii(Z.Delay(()=>Z.TryWith(Z.Delay(()=>(t(new rl(1,[])),Z.Bind(e(i),o=>(t(new rl(2,[o])),Z.Zero())))),o=>(t(new rl(3,[o])),Z.Zero()))),n.current)})}function N4(e,t,n,r,i,o,s){let a,l,u,d,f,p,m;return oa((a=[()=>P6(e,t,n,r,i),h=>{let b,v,_,x;switch(h.tag){case 1:case 0:{b=3;break}case 3:{b=2,x=h.fields[0];break}default:h.fields[0].tag===1?(b=1,_=h.fields[0].fields[0]):(b=0,v=h.fields[0].fields[0])}switch(b){case 0:{o(v);break}case 1:{s(_);break}case 2:{s(nt(x));break}}}],k4(a[0],a[1]))),c("div",w(g([["className","fixed inset-0 z-100 w-screen overflow-y-auto bg-white"],(l=[c("div",w(g([["className","flex-col w-full h-full justify-center items-center gap-2.5 inline-flex overflow-hidden"],(u=[c("div",w(g([["className","self-stretch h-[118px] flex-col justify-center items-center gap-8 flex"],(d=[c("div",w(g([["className","relative"],(f=[e4([])],["children",y.Children.toArray(Array.from(f))])]))),c("div",w(g([["className","flex-col justify-start items-center gap-6 flex"],(p=[c("div",w(g([["className","w-[140px] h-1.5 relative bg-blue-100 rounded-[5px] overflow-hidden"],(m=[c("div",{style:{animation:"progressBar 2s linear infinite"},className:"h-1.5 top-0 absolute bg-gradient-to-r from-[#a650ff] to-[#0095f2] rounded-[5px]"})],["children",y.Children.toArray(Array.from(m))])])))],["children",y.Children.toArray(Array.from(p))])])))],["children",y.Children.toArray(Array.from(d))])])))],["children",y.Children.toArray(Array.from(u))])])))],["children",y.Children.toArray(Array.from(l))])])))}class yn extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","As","Appear","Show","ClassName","Enter","EnterFrom","EnterTo","Leave","LeaveFrom","LeaveTo","Children"]}}function T4(e){return c(Xh,Gn(e,1))}class Jr extends _e{constructor(t,n,r){super(),this.Type=t,this.Title=n,this.Message=r}}class Qr extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Success","Failure","InProgress"]}}function $4(e,t){let n,r,i,o,s,a,l,u;return T4(g([new yn(1,["div"]),new yn(4,["pointer-events-auto w-full max-w-sm overflow-hidden rounded-lg bg-white shadow-lg ring-1 ring-black ring-opacity-5"]),new yn(3,[!0]),new yn(5,["transform ease-out duration-300 transition"]),new yn(6,["translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2"]),new yn(7,["translate-y-0 opacity-100 sm:translate-x-0"]),new yn(8,["transition ease-in duration-100"]),new yn(9,["opacity-100"]),new yn(10,["opacity-0"]),new yn(11,[[c("div",w(g([["key","1"],(n=[c("div",w(g([["className","p-4"],(r=[c("div",w(g([["className","flex items-start"],(i=[c("div",w(g([["className","flex-shrink-0"],(o=K($(()=>{const d=t.Type;return d.tag===1?k(n4([])):d.tag===2?k(r4([])):k(t4([]))})),["children",y.Children.toArray(Array.from(o))])]))),c("div",w(g([["className","ml-3 w-0 flex-1 pt-0.5"],(s=[c("p",{className:"text-sm font-medium text-gray-900",children:t.Title}),c("p",{className:"mt-1 text-sm text-gray-500",children:t.Message})],["children",y.Children.toArray(Array.from(s))])]))),c("div",w(g([["className","ml-4 flex flex-shrink-0"],(a=[c("button",w(g([["type","button"],(l="inline-flex rounded-md bg-white text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-2",["className",l]),["onClick",d=>{e()}],(u=[Ds(10,10)],["children",y.Children.toArray(Array.from(u))])])))],["children",y.Children.toArray(Array.from(a))])])))],["children",y.Children.toArray(Array.from(i))])])))],["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(n))])])))]])]))}function M4(e){const t=document.getElementById("workspace-toasts-container"),n=jw(),r=$4(()=>{document.getElementById(n).remove()},e),i=document.createElement("div");Zl(r,i);const o=i.children[0];o.id=n,t.appendChild(o)}const I4=3e4;function D4(e,t,n,r,i){const o=r.fields[0],s=()=>Z.Delay(()=>Z.Bind(N0(I4),()=>Z.Bind(t(n),a=>{let l,u,d,f;const p=a;return p.tag!==1&&(p.fields[0].tag!==1||(p.fields[0].fields[0].tag===1?(e(new Jr(new Qr(1,[]),"We found a duplicate user",`"${he(i.fields[0],he(p.fields[0].fields[0].fields[0]-2,o).fields[0])}" already exists in our system. This user was skipped during the import.`)),!1):p.fields[0].fields[0].tag===2?(l=p.fields[0].fields[0].fields[0].DuplicateEmailCount>0,u=p.fields[0].fields[0].fields[0].OtherFailuresCount>0,e(l?u?new Jr(new Qr(1,[]),"We found multiple import errors",(d="One or more of the rows experienced errors during import. These rows were skipped during the import.",d)):new Jr(new Qr(1,[]),`We found ${p.fields[0].fields[0].fields[0].DuplicateEmailCount} duplicate users`,(f="One or more of the users you’re trying to add already exist in our system. These users were skipped during the import.",f)):new Jr(new Qr(1,[]),"We found multiple import errors",(d="One or more of the rows experienced errors during import. These rows were skipped during the import.",d))),!1):(e(new Jr(new Qr(0,[]),`Successfully added ${p.fields[0].fields[0].fields[0]} users`,"If you don’t see any new users, try refreshing this page.")),!1)))?Z.Bind(s(),()=>Z.Return(void 0)):Z.Zero()})));e(new Jr(new Qr(2,[]),`Importing ${o.length} users`,"This might take a while. We’ll let you know via email when it’s finished.")),Ii(s())}class kt extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Completed","Active","Disabled"]}}class us extends _e{constructor(t,n,r,i){super(),this.UploadingCsv=t,this.MappingColumns=n,this.MappingEmploymentBasis=r,this.Reviewing=i}}function cf(){Im(g(["admin","app","users"]))}function Sp(e){Im(g(["admin","app","oops"]))}function R4(e){switch(e.tag){case 1:return new us(new kt(0,[]),new kt(1,[]),new kt(2,[]),new kt(2,[]));case 2:return new us(new kt(0,[]),new kt(0,[]),new kt(1,[]),new kt(2,[]));case 3:return new us(new kt(0,[]),new kt(0,[]),new kt(0,[]),new kt(1,[]));default:return new us(new kt(1,[]),new kt(2,[]),new kt(2,[]),new kt(2,[]))}}function O4(e,t,n,r,i,o){switch(o.tag){case 1:{const s=o.fields[0],a=s[1].tag===1?s[1].fields[0].tag===1?[Id(s[1].fields[0].fields[0],s[1].fields[0].fields[1]),s[0].HeaderRow,s[0].DataRows]:[Id(s[1].fields[0].fields[0],void 0),s[0].HeaderRow,s[0].DataRows]:[s[1].fields[0],s[0].HeaderRow,s[0].DataRows];return c(C6,{existingMappings:so(a[0]),headerRow:a[1],dataRows:a[2],next:l=>{let u;n(new yr(0,[(u=l,new os(1,[u[0],u[1]]))]))},back:l=>{n(new yr(1,[new tl(2,[l])]))},sendAnalytics:i})}case 2:{const s=tx(o.fields[0][0].DataRows,o.fields[0][2]);return c(I6,{existingMappings:so(o.fields[0][3]),employmentBasisColumn:s,next:a=>{n(new yr(0,[new os(2,[a])]))},back:a=>{n(new yr(1,[new tl(1,[a])]))}})}case 3:return c(d4,{apiCallAsync:e,dataRows:o.fields[0][0].DataRows,baseColumnMappings:o.fields[0][1],employmentBasis:so(o.fields[0][2]),next:s=>{let a;n(new yr(0,[(a=s,new os(3,[a[0],a[1]]))]))},back:()=>{n(new yr(1,[new tl(0,[])]))},onError:s=>{Sp()},sendAnalytics:i});default:{const s=_t(a=>a[0],o.fields[0]);return c(C4,{existingCsvFile:so(s),next:a=>{n(new yr(0,[new os(0,[a])]))},cancel:t,markDirty:r,sendAnalytics:i})}}}function cs(e,t){let n,r,i;switch(t.tag){case 1:return c("div",w(g([["className","text-sm font-medium border-b-2 border-primary-600 pt-1 pb-3 text-primary-600"],(n=[c("span",{children:e})],["children",y.Children.toArray(Array.from(n))])])));case 2:return c("div",w(g([["className","text-sm font-medium pt-1 pb-3 text-gray-500"],(r=[c("span",{children:e})],["children",y.Children.toArray(Array.from(r))])])));default:return c("div",w(g([["className","text-sm font-medium pt-1 pb-3 text-emerald-700 gap-2 inline-flex"],(i=[Gu(20,20),c("span",{children:e})],["children",y.Children.toArray(Array.from(i))])])))}}function F4(e){let t,n,r,i;const o=_=>{Ii(cm(e.backendUrl,_))};oa(()=>{o(new gn(0,[{Section:"user import"}]))});const s=Wr(()=>Ur(S4,(_,x)=>E4(o,_,x),(_,x)=>{}),void 0,void 0),a=s[0],l=y.useState(!1),u=l[0],d=l[1],f=y.useState(!1),p=f[0],m=y.useCallback(_=>{_.preventDefault(),_.returnValue=!0},[]),h=()=>{window.removeEventListener("beforeunload",m)};E0(()=>(p?window.addEventListener("beforeunload",m):h(),{Dispose(){h()}}),[p]);let b;if(a.tag===0){const _=a.fields[0],x=()=>{u||d(!0)},E=R4(_),T=O4(I=>T2(e.backendUrl,I),x,s[1],f[1],o,_);b=c("div",w(g([["className","flex flex-col h-full"],(t=[A4(u,()=>{u&&d(!1)},()=>{u&&(o(new gn(2,[{From:Cp(_)}])),h(),cf())}),c("div",w(g([["className","flex flex-row justify-between px-12 pt-8 pb-4"],(n=[c("span",{className:"font-sonoma text-gray-900 font-bold text-lg",children:"Import Users from CSV"}),c("button",w(g([(r="bg-white hover:bg-gray-50 rounded-md text-red-700 shadow-sm text-sm border border-gray-300 font-medium px-3 py-2 w-[120px]",["className",r]),["onClick",I=>{x()}],["type","button"],["children",y.Children.toArray(["Cancel import"])]])))],["children",y.Children.toArray(Array.from(n))])]))),c("div",w(g([["className","flex flex-row items-center px-12 gap-2 border-b border-gray-200"],(i=[cs("1. Upload CSV",E.UploadingCsv),c("hr",{className:"w-16 pt-1.5"}),cs("2. Map fields",E.MappingColumns),c("hr",{className:"w-16 pt-1.5"}),cs("3. Map values",E.MappingEmploymentBasis),c("hr",{className:"w-16 pt-1.5"}),cs("4. Review",E.Reviewing)],["children",y.Children.toArray(Array.from(i))])]))),T],["children",y.Children.toArray(Array.from(t))])])))}else{const _=a.fields[0][3],x=a.fields[0][0],E=a.fields[0][1];b=N4(T=>$2(e.backendUrl,T),x,E,a.fields[0][2],_,T=>{o(new gn(8,[{UsersInvited:_.tag!==1}])),h();const I=[T,x,E.Email];D4(O=>{M4(O)},O=>M2(e.backendUrl,O),I[0],I[1],I[2]),cf()},T=>{h(),Sp()})}const v=[c("style",{children:[Ql]}),b];return c(qe,{},...v)}function P4(){Hl(e=>c(F4,e),"apollo-import-workspace-wizard")}Hl(e=>c(Ag,e),"apollo-import-workspace-app");R_();P4();