@flarehr/apollo-import-workspace-app 0.33.0 → 0.34.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,17 +1,17 @@
|
|
|
1
|
-
var Eo,Ee,df,_r,Ju,ff,il,Rl,ol,sl,mf,ho={},hf=[],Np=/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 Ye(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,Tp(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 Tp(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(Ye,{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=$p(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 $p(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===Ye||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"||Np.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,F,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=Ip),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,F=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&&++F<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===Ye&&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=Mp(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 Mp(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 Ip(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(Ye,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=Ye,_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 Dp=["context","children"];function Rp(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,Dp);return Ll(t,n)}function Op(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=c(Rp,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 Fp(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 Pp(){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 Lp(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=Op,i.prototype.attributeChangedCallback=Fp,i.prototype.disconnectedCallback=Pp,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){Lp(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 jr(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,Br(Cf,e)}function Br(e,t,n){var r=jr(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=jr(Vn++,3);!it.__s&&Ul(n.__H,t)&&(n.__=e,n.i=t,Ge.__H.__h.push(n))}function Cn(e,t){var n=jr(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=jr(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=jr(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 Vp(e){var t=jr(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=jr(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 Hp(){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)||jp)(Hp)),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 jp(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 Bp=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=Bp,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},Up=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)}Up(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 oi(){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(Ye,null,e.fallback);return i&&(i.__u&=-33),[c(Ye,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 Wp(e){return this.getChildContext=function(){return e.context},e.children}function Gp(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(Wp,{context:t.context},e.__v),t.v)}function Ys(e,t){var n=c(Gp,{__v:e,h:t});return n.containerInfo=t,n}(oi.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()}},oi.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},oi.prototype.componentDidUpdate=oi.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,zp=/^(?: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]/,qp=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Yp=/[A-Z0-9]/g,Zp=typeof document<"u",Kp=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 Xp(){}function Jp(){return this.cancelBubble}function Qp(){return this.defaultPrevented}Ee.event=function(e){return hc&&(e=hc(e)),e.persist=Xp,e.isPropagationStopped=Jp,e.isDefaultPrevented=Qp,e.nativeEvent=e};var Kl,e1={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||Zp&&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"||Kp(n.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":qp.test(s)&&(s=l):l=s="oninput":o&&zp.test(s)?s=s.replace(Yp,"-$&").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",e1)):(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:Br,useRef:ie,useState:be,useSyncExternalStore:qs,useTransition:zl}}},t1="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===Ye}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=Ye,Hf=Ei,Q={useState:be,useId:an,useReducer:Br,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:Ye,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:oi,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:Ye,PureComponent:bs,StrictMode:Vf,Suspense:uo,SuspenseList:oi,__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:Vp,useId:an,useImperativeHandle:jl,useInsertionEffect:ql,useLayoutEffect:Cn,useMemo:me,useReducer:Br,useRef:ie,useState:be,useSyncExternalStore:qs,useTransition:zl,version:t1},Symbol.toStringTag,{value:"Module"})),n1=`*,: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 r1(e){return e!=null&&typeof e.GetEnumerator=="function"}function i1(e){return e!=null&&typeof e.CompareTo=="function"}function o1(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 s1{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 r1(e)?e.GetEnumerator():new s1(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 a1{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 l1(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 u1(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 c1(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 d1(e){return jf(e)?e.GetHashCode():c1(e)}function f1(e){return e.getTime()}function m1(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 m1(e);if(e instanceof Date)return f1(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 d1(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 h1(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:o1(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&&h1(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 Ur(e,t){return e===t?0:e<t?-1:1}function p1(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 p1(e,t,Et)}function g1(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:i1(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?g1(e,t):-1}function w(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function w1(e){rn(e)?e.splice(0):e.clear()}const Zs=new WeakMap;function Ke(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 y1(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 y1(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
|
|
3
|
-
`)+" }"}function x1(e){const t=Object.values(e).map(n=>on(n));return Ao(t)}function C1(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 S1(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 b1(this)}toString(){return _1(this)}GetHashCode(){return x1(this)}Equals(t){return C1(this,t)}CompareTo(t){return S1(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 E1{constructor(t){this.message=t}}function A1(e){return e instanceof E1||e instanceof Error}function k1(e){return e instanceof Promise}function Ss(e){return A1(e)||k1(e)?e:new Error(String(e))}const Ql=nt(n1),ki=Symbol("numeric");function Gf(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[ki])}function N1(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 T1=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],$1=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],M1=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],I1=["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 D1(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+=T1[Sc(s)];break;case 4:o+=$1[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+=ai(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+=M1[Qo(s)-1];break;case 4:o+=I1[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=ai(s.getTimezoneOffset()*-6e4);break;case 0:l=ai(B1(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]=D1(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 ai(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 R1(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?ai(e.getTimezoneOffset()*-6e4):"")}}function O1(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+ai(t)}function F1(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," ")+ai(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 O1(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return eu(n,t,!0)}function P1(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 R1(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?F1(e,t):P1(e,t)}function ko(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function L1(){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 V1(e,t=!1){const[n,r]=zf(e),i=r!=null?t&&r==="Z"?1:2:0;return ko(n.getTime(),i)}function H1(e,t){try{return t.contents=V1(e),!0}catch{return!1}}function j1(e){return e.kind===1?e:ko(e.getTime(),1)}function B1(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 U1(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=U1(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,W1=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function qf(e,t){return N1(e,t)<0}function Hn(e){return{input:e,cont:z1(e)}}function Yf(e,t){return typeof t=="string"?e(t):t.cont(e)}function Ir(e){return Yf(t=>t,e)}function Zf(e){return Yf(t=>{throw new Error(t)},e)}function G1(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+=G1(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 z1(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(W1,(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=q1(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 q1(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 Y1(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 Z1(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 Dr{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 Dr?t.value:t)}CompareTo(t){return t==null?1:Et(this.value,t instanceof Dr?t.value:t)}}function V(e){if(e==null)throw new Error("Option has no value");return e instanceof Dr?e.value:e}function so(e){return e instanceof Dr?e.value:e}function ct(e){return e==null||e instanceof Dr?new Dr(e):e}function Qf(e){return e==null?null:V(e)}function Ti(e){return e==null?[]:[V(e)]}function Je(e,t){return e!=null?V(e):t}function K1(e,t){return e!=null?V(e):t()}function _t(e,t){return t!=null?ct(e(V(t))):void 0}function X1(e,t){return t!=null?e(V(t)):void 0}class J1{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 Xe(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 Mt(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 J1(i,a,o[a],s))});return i}function Tr(e){return new Bt("Microsoft.FSharp.Core.FSharpOption`1",[e])}function ir(e){return new Bt("Microsoft.FSharp.Collections.FSharpList`1",[e])}const Q1=new Bt("System.Object"),Dt=new Bt("System.String"),go=new Bt("System.Boolean"),qe=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 Xe(e){const t=To(e);return t!=null?Xe(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>Xe(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(()=>Q1))}function i0(e){var t;return(t=e.generics)==null?void 0:t[0]}function qr(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 eg(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 Yr(e,t){const n=parseInt(t,10);return eg(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 tg(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 ng(e,t){return e[t[0]]}function rg(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 ig(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 og(e,t){return e}const c0="Collection was empty.",sg="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 ag(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 lg(e,t,n,r,i){const o=Je(n,0)|0,s=Je(_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 lg(t,e,void 0,void 0,n)>=0}function ug(e,t){const n=yi(t,1);return $t(n,0,e),n}function cg(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 dg(e,t){const n=e.slice();return n.sort((r,i)=>t.Compare(r,i)),n}function fg(e,t,n){const r=t.slice();return r.sort((i,o)=>n.Compare(e(i),e(o))),r}function Rr(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 mg(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 pg(this)}[Symbol.iterator](){return Ai(Oe(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Oe(this)}}class hg{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 pg(e){return new hg(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 gg(e,t,n){return p0(e,mr(t),n)}function wg(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 yg(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 vg(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 bg(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=wg((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 _g(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 _g(n=>e(n)?ct(n):void 0,t)}function xg(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 Cg(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 Sg(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 xg(e,t)!=null}function y0(e,t){const n=mr(t);return n.sort(e),g(n)}function Eg(e,t,n){return y0((r,i)=>n.Compare(e(r),e(i)),t)}function Ag(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(sg+"\\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 kg(e,t,n){const r=tn(n)|0;let i;const o=Je(e,0)|0;i=o<0?0:o;let s;const a=Je(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 Ng(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 Tg(e){throw new Error(e)}const $g="Enumeration already finished.",Mg="Enumeration has not started. Call MoveNext.",_0="The input sequence has an insufficient number of elements.",Ig="Reset is not supported on this enumerator.";function Dg(){throw new Error(Ig)}function cu(){throw new Error(Mg)}function pl(){throw new Error($g)}class Rg{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 Og(e){return new Rg(e)}class Fg{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"(){Dg()}Dispose(){this.dispose()}}function ea(e,t,n){return new Fg(e,t,n)}function Pg(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 Lg(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 Vg(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 Hg(e,t){t==null&&Tg(e)}function Mi(e){return Og(e)}function sn(e){return Hg("source",e),Oe(e)}function $(e){return Mi(()=>Oe(e()))}function ta(e){return Mi(()=>Pg(e))}function jg(e,t){return Mi(()=>Vg(e,t))}function ht(){return $(()=>new Array(0))}function k(e){return $(()=>ug(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:yg(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 Bg(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 Ug(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 Zr(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 Bg(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 Wg(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 Gg(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 zg(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 qg(e){return $(()=>cg(jn(e)))}function Yg(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 Lg(()=>{},n)}catch(r){throw $e(n),r}})}function Zg(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 Kg(e,t){return zg((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)},Xg=e=>{Cn(()=>{const t=e();return()=>{t.Dispose()}})};function Jg(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 Qg(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 ew(e){return On(t=>t.onSuccess(e))}class tw{Bind(t,n){return Qg(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 ew(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 tw;function nw(e){return new k0(0,[e])}function rw(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 iw(e){return nw(e)}function ow(e){return rw(e)}function Oa(e){}function sw(e){return new A0(!1)}function aw(e){e.cancel()}function lw(e){return e!=null&&e.isCancelled}const uw=new A0;function cw(e){return On(t=>{e({onSuccess:n=>t.onSuccess(iw(n)),onError:n=>t.onSuccess(ow(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function dw(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 fw(e,t){return mw(e,t)}function Ii(e,t){return fw(e,t)}function mw(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||uw,trampoline:o})}function hw(e,t){return t}function pw(e,t,n,r){const i=y.memo(e,Ke(Je(_t(Xn,n),Se())));return Wn(o=>{e.displayName=o},Ti(t)),o=>{const s=hw(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(()=>Jg(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 Xg(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 ti 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 $r(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):$r(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?$r(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?$r(t,n,void 0,r,2):o===0?vi(t,n):$r(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 gw(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 $r(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?$r(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?$r(t,V(s),r,void 0,2):r}}}else{const i=n(void 0);return i!=null?vi(t,V(i)):r}}function ww(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 yw(e,t){F0(e,t)}function P0(e,t,n){let r=n;yw((i,o)=>{$t(t,r,[i,o]),r=r+1|0},e)}function vw(e){const t=R0(e)|0,n=$o(new Array(t),0,t,[null,null]);return P0(e,n,0),n}function bw(e,t){return Sn((n,r)=>bi(e,r[0],r[1],n),void 0,t)}function _w(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 xw(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 xw(e,t);if(t instanceof bt)return bw(e,t);{const n=Oe(t);try{return _w(e,void 0,n)}finally{$e(n)}}}class Cw 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 Cw(V0(ue(e)),!1)}function Sw(){throw new Error("enumeration not started")}function Ew(){throw new Error("enumeration already finished")}function $c(e){if(e.started){const t=e.stack;if(Te(t))return Ew();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 Sw()}function Aw(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 Aw(t)},"System.Collections.IEnumerator.Reset"(){t=Tc(e)},Dispose(){}}}class Ms{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Mw(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 Ug((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(Or(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 Or(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 kw(e){return Ro(e,void 0)}function Nw(e,t,n){return Ro(e.comparer,bi(e.comparer,t,n,e.tree))}function Tw(e,t,n){return Ro(e.comparer,gl(e.comparer,t,n,e.tree))}function Or(e,t){return gw(e.comparer,t,e.tree)}function Fa(e){return R0(e.tree)}function Ic(e,t){return ww(e.comparer,t,e.tree)}function $w(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],vw(e.tree))}function Ar(e,t){return hu(e.comparer,t,e.tree)}function Mw(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 Nw(n,e,t)}function es(e,t,n){return Tw(n,e,t)}function j0(e,t){return Ar(t,e)}function Iw(e){return Le(t=>[t[0],t[1]],e)}function ui(e,t){return Ro(t,L0(t,e))}function Dw(e,t){return Ro(t,L0(t,e))}function pu(e){return kw(e)}const wr=new aa("",new Di(0,[]),at(),!1,void 0,void 0,void 0,new sa(0,[]));new M0(0,"","","",pu({Compare:Ur}),new ti(0,[""]));function Rc(e,t){return ru(t)?new Array(0):Jf(t,[e],void 0,0)}function Rw(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 dw(t=>{const n=new XMLHttpRequest;n.open(Rw(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 ti(0,[n.responseText]):m==="text"?new ti(0,[n.responseText]):m==="arraybuffer"?new ti(2,[n.response]):m==="blob"?new ti(1,[n.response]):new ti(3,[n.response])),h=Dw(Xt(b=>{const v=g(Rc(":",b));if(!Te(v))return[le(v).toLocaleLowerCase(),At(":",Me(v)).trim()]},Rc(`\r
|
|
4
|
-
`,n.getAllResponseHeaders())),{Compare:Ur}),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 Ow(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?Ow(e(t.fields[0])):B0(t.fields[0])}function Fw(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 Pw(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=Pw(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 Lw(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 Vw=/^[\(\{]{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})$/,Hw=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function jw(e){function t(r){return r.replace(Pc,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Vw.test(n))return Y1(n,"{","}","(",")");if(Pc.test(n))return t(n);if(Hw.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 Bw(e,t){try{return t.contents=jw(e),!0}catch{return!1}}function G0(){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 Uw(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 Ww(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 Gw(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 zw(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||Gw(o,t),!Ww(n).test(s))return Uw(i,n)}return null}function qw(e,t,n,r,i){const o=zw(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=qw(e,t,n,r),!0}catch{return!1}}function z0(e,t){Yw(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function Yw(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 Zw(){return z0(-621355968e5,0)}function Kw(e){const[t,n]=zf(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return z0(t.getTime(),r)}function Xw(e,t){try{return t.contents=Kw(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 Jw(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 Jw(e){return Number(BigInt(e)/10000n)}function Qw(e){return Po(e/864e5)}function ey(e){return Po(e%864e5/36e5)}function ty(e){return Po(e%36e5/6e4)}function ny(e){return Po(e%6e4/1e3)}function ry(e){return Po(e%1e3)}function iy(e,t="c",n){if(["c","g","G"].indexOf(t)===-1)throw new Error("Custom formats are not supported");const r=Math.abs(Qw(e)),i=Math.abs(ey(e)),o=Math.abs(ty(e)),s=Math.abs(ny(e)),a=Math.abs(ry(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):"."+l1(a,3,7)}`}function oy(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 sy(e,t){try{return t.contents=oy(e),!0}catch{return!1}}class q0{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 Y0{constructor(t){this.k=t}}function Yt(e){return new Y0(e)}function ve(e){return e.k}class Pe extends Y0{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 si(e){return e.h}function Z0(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=Z0(We(o),r+1);continue e}else return r+1|0}else return r|0}}function ay(e){return Z0(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,si(r)):1}else o=0;let a;const l=n;if(l!=null){const d=V(l);a=d instanceof Pe?(i=d,si(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,si(r)):1}else f=0;let m;const h=n;if(h!=null){const b=V(h);m=b instanceof Pe?(i=b,si(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,si(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,si(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 K0(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 X0(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=V(r);if(i instanceof Pe){const o=i;X0(n,ze(o)),n(ve(o)),e=n,t=We(o);continue e}else n(ve(i))}break}}class ly extends _e{constructor(t,n){super(),this.stack=t,this.started=n}}function J0(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 ly(J0(ue(e)),!1)}function uy(){throw new Error("Enumeration not started")}function cy(){throw new Error("Enumeration already started")}function zc(e){if(e.started){const t=e.stack;if(Te(t))return cy();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 uy()}function dy(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=J0(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 dy(t)},"System.Collections.IEnumerator.Reset"(){t=Gc(e)},Dispose(){}}}function fy(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:fy(e,ue(t),ue(n))|0}function my(e,t,n){let r=n;X0(i=>{$t(t,r,i),r=r+1|0},e)}function hy(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 py(e,t){return Qs((n,r)=>_i(e,r,n),void 0,t)}function gy(e,t){return Sn((n,r)=>_i(e,r,n),void 0,t)}function Q0(e,t){if(rn(t))return py(e,t);if(t instanceof bt)return gy(e,t);{const n=Oe(t);try{return hy(e,void 0,n)}finally{$e(n)}}}class vu{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return vy(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 K0(ci(n),t,cn(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){my(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 em(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 wy(e){return la(e,void 0)}function yy(e,t){return la(ci(e),_i(ci(e),t,cn(e)))}function Va(e){return ay(cn(e))}function em(e,t){return K0(ci(e),t,cn(e))}function vy(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 em(t,e)}function by(e,t){return yy(t,e)}function _y(e){return wy(e)}function xy(e,t){return la(t,Q0(t,e))}function Cy(e,t){return la(t,Q0(t,e))}function Ki(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
|
|
1
|
+
var Co,ke,sf,vr,qu,af,nl,Il,rl,il,lf,fo={},uf=[],xp=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Us=Array.isArray;function Tn(e,t){for(var n in t)e[n]=t[n];return e}function cf(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?Co.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 so(e,s,r,i,null)}function so(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??++sf,__i:-1,__u:0};return i==null&&ke.vnode!=null&&ke.vnode(o),o}function Ws(){return{current:null}}function Ye(e){return e.children}function cn(e,t){this.props=e,this.context=t}function pi(e,t){if(t==null)return e.__?pi(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"?pi(e):null}function df(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 df(e)}}function ol(e){(!e.__d&&(e.__d=!0)&&vr.push(e)&&!ws.__r++||qu!==ke.debounceRendering)&&((qu=ke.debounceRendering)||af)(ws)}function ws(){var e,t,n,r,i,o,s,a;for(vr.sort(nl);e=vr.shift();)e.__d&&(t=vr.length,r=void 0,o=(i=(n=e).__v).__e,s=[],a=[],n.__P&&((r=Tn({},i)).__v=i.__v+1,ke.vnode&&ke.vnode(r),Dl(n.__P,r,i,n.__n,n.__P.namespaceURI,32&i.__u?[o]:null,s,o??pi(i),!!(32&i.__u),a),r.__v=i.__v,r.__.__k[r.__i]=r,hf(s,r,a),r.__e!=o&&df(r)),vr.length>t&&vr.sort(nl));ws.__r=0}function ff(e,t,n,r,i,o,s,a,l,u,d){var f,p,m,h,b,v=r&&r.__k||uf,_=t.length;for(n.__d=l,Cp(n,t,v),l=n.__d,f=0;f<_;f++)(m=n.__k[f])!=null&&(p=m.__i===-1?fo:v[m.__i]||fo,m.__i=f,Dl(e,m,p,i,o,s,a,l,u,d),h=m.__e,m.ref&&p.ref!=m.ref&&(p.ref&&Rl(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=mf(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 Cp(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?so(null,i,null,null,null):Us(i)?so(Ye,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?so(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=Sp(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=pi(o)),pf(o,o))}function mf(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=mf(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=pi(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function Dn(e,t){return t=t||[],e==null||typeof e=="boolean"||(Us(e)?e.some(function(n){Dn(n,t)}):t.push(e)),t}function Sp(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===Ye||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 Yu(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||xp.test(t)?n:n+"px"}function Yo(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||Yu(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Yu(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=Il,e.addEventListener(t,o?il:rl,o)):e.removeEventListener(t,o?il:rl,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 Zu(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Il++;else if(t.t<n.u)return;return ke.event&&(t=ke.event(t)),"handleEvent"in n?n.handleEvent(t):n(t)}}}function Dl(e,t,n,r,i,o,s,a,l,u){var d,f,p,m,h,b,v,_,x,E,T,I,O,F,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=ke.__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 cn(_,T),f.constructor=A,f.render=Ap),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=Tn({},f.__s)),Tn(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=ke.__r,F=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&&++F<25);f.state=f.__s,f.getChildContext!=null&&(r=Tn(Tn({},r),f.getChildContext())),x&&!p&&f.getSnapshotBeforeUpdate!=null&&(b=f.getSnapshotBeforeUpdate(m,h)),ff(e,Us(C=d!=null&&d.type===Ye&&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;ke.__e(N,t,n)}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Ep(n.__e,t,n,r,i,o,s,l,u);(d=ke.diffed)&&d(t)}function hf(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)Rl(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 Ep(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&&(ke.__m&&ke.__m(t,o),a=!1),o=null}if(x===null)v===_||a&&e.data===_||(e.data=_);else{if(o=o&&Co.call(e.childNodes),v=n.props||fo,!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;Yo(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||Yo(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=""),ff(e,Us(p)?p:[p],t,n,r,x==="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,s,o?o[0]:n.__k&&pi(n,0),a,l),o!=null)for(u=o.length;u--;)cf(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])&&Yo(e,u,h,v[u],i),u="checked",b!==void 0&&b!==e[u]&&Yo(e,u,b,v[u],i))}return e}function Rl(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 pf(e,t,n){var r,i;if(ke.unmount&&ke.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Rl(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]&&pf(r[i],t,n||typeof e.type!="function");n||cf(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Ap(e,t,n){return this.constructor(e,n)}function er(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=[],Dl(t,e=(!r&&n||t).__k=c(Ye,null,[e]),i||fo,fo,t.namespaceURI,!r&&n?[n]:i?null:t.firstChild?Co.call(t.childNodes):null,o,!r&&n?n:i?i.__e:t.firstChild,r,s),hf(o,e,s)}function Ol(e,t){er(e,t,Ol)}function Fl(e,t,n){var r,i,o,s,a=Tn({},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?Co.call(arguments,2):n),so(e.type,a,r||e.key,i||e.ref,null)}function lt(e,t){var n={__c:t="__cC"+lf++,__: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,ol(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}Co=uf.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}},sf=0,cn.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Tn({},this.state),typeof e=="function"&&(e=e(Tn({},n),this.props)),e&&Tn(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),ol(this))},cn.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ol(this))},cn.prototype.render=Ye,vr=[],af=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,nl=function(e,t){return e.__v.__b-t.__v.__b},ws.__r=0,Il=0,rl=Zu(!1),il=Zu(!0),lf=0;function Pl(){return(Pl=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 kp=["context","children"];function Np(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,kp);return Fl(t,n)}function Tp(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=c(Np,Pl({},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[gf(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(Ku,{name:d},u):i[s]=u}var f=r?c(Ku,null,i):i;return c(r||n.nodeName.toLowerCase(),o,f)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Ol:er)(this._vdom,this._root)}function gf(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function $p(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[gf(e)]=n,this._vdom=Fl(this._vdom,r),er(this._vdom,this._root)}}function Mp(){er(this._vdom=null,this._root)}function Ku(e,t){var n=this;return c("slot",Pl({},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 Ip(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=Tp,i.prototype.attributeChangedCallback=$p,i.prototype.disconnectedCallback=Mp,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 Ll(e,t){Ip(e,t)}var Fn,Ge,Ta,Xu,gi=0,wf=[],it=ke,Ju=it.__b,Qu=it.__r,ec=it.diffed,tc=it.__c,nc=it.unmount,rc=it.__;function Vr(e,t){it.__h&&it.__h(Ge,e,gi||t),gi=0;var n=Ge.__H||(Ge.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function xe(e){return gi=1,Hr(yf,e)}function Hr(e,t,n){var r=Vr(Fn++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):yf(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=Vr(Fn++,3);!it.__s&&jl(n.__H,t)&&(n.__=e,n.i=t,Ge.__H.__h.push(n))}function _n(e,t){var n=Vr(Fn++,4);!it.__s&&jl(n.__H,t)&&(n.__=e,n.i=t,Ge.__h.push(n))}function se(e){return gi=5,me(function(){return{current:e}},[])}function Vl(e,t,n){gi=6,_n(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=Vr(Fn++,7);return jl(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Re(e,t){return gi=8,me(function(){return e},t)}function Ve(e){var t=Ge.context[e.__c],n=Vr(Fn++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Ge)),t.props.value):e.__}function Hl(e,t){it.useDebugValue&&it.useDebugValue(t?t(e):e)}function Dp(e){var t=Vr(Fn++,10),n=xe();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 rn(){var e=Vr(Fn++,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 Rp(){for(var e;e=wf.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(us),e.__H.__h.forEach(sl),e.__H.__h=[]}catch(t){e.__H.__h=[],it.__e(t,e.__v)}}it.__b=function(e){Ge=null,Ju&&Ju(e)},it.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),rc&&rc(e,t)},it.__r=function(e){Qu&&Qu(e),Fn=0;var t=(Ge=e.__c).__H;t&&(Ta===Ge?(t.__h=[],Ge.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(us),t.__h.forEach(sl),t.__h=[],Fn=0)),Ta=Ge},it.diffed=function(e){ec&&ec(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(wf.push(t)!==1&&Xu===it.requestAnimationFrame||((Xu=it.requestAnimationFrame)||Op)(Rp)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),Ta=Ge=null},it.__c=function(e,t){t.some(function(n){try{n.__h.forEach(us),n.__h=n.__h.filter(function(r){return!r.__||sl(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],it.__e(r,n.__v)}}),tc&&tc(e,t)},it.unmount=function(e){nc&&nc(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{us(r)}catch(i){t=i}}),n.__H=void 0,t&&it.__e(t,n.__v))};var ic=typeof requestAnimationFrame=="function";function Op(e){var t,n=function(){clearTimeout(r),ic&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);ic&&(t=requestAnimationFrame(n))}function us(e){var t=Ge,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Ge=t}function sl(e){var t=Ge;e.__c=e.__(),Ge=t}function jl(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function yf(e,t){return typeof t=="function"?t(e):t}function al(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 Gs(e,t){var n=t(),r=xe({t:{__:n,u:t}}),i=r[0].t,o=r[1];return _n(function(){i.__=n,i.u=t,$a(i)&&o({t:i})},[e,n,t]),Fe(function(){return $a(i)&&o({t:i}),e(function(){$a(i)&&o({t:i})})},[e]),n}function $a(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 Bl(e){e()}function Ul(e){return e}function Wl(){return[!1,Bl]}var Gl=_n;function ys(e,t){this.props=e,this.context=t}function vf(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:al(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}(ys.prototype=new cn).isPureReactComponent=!0,ys.prototype.shouldComponentUpdate=function(e,t){return al(this.props,e)||al(this.state,t)};var oc=ke.__b;ke.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),oc&&oc(e)};var Fp=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function zl(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=Fp,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var sc=function(e,t){return e==null?null:Dn(Dn(e).map(t))},bf={map:sc,forEach:sc,count:function(e){return e?Dn(e).length:0},only:function(e){var t=Dn(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Dn},Pp=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)}Pp(e,t,n,r)};var ac=ke.unmount;function _f(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 _f(r,t,n)})),e}function xf(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return xf(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 ao(){this.__u=0,this.o=null,this.__b=null}function Cf(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Sf(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}ke.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),ac&&ac(e)},(ao.prototype=new cn).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var i=Cf(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]=xf(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)},ao.prototype.componentWillUnmount=function(){this.o=[]},ao.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]=_f(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&c(Ye,null,e.fallback);return i&&(i.__u&=-33),[c(Ye,null,t.__a?null:e.children),i]};var lc=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 Lp(e){return this.getChildContext=function(){return e.context},e.children}function Vp(e){var t=this,n=e.h;t.componentWillUnmount=function(){er(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)}}),er(c(Lp,{context:t.context},e.__v),t.v)}function zs(e,t){var n=c(Vp,{__v:e,h:t});return n.containerInfo=t,n}(ii.prototype=new cn).__a=function(e){var t=this,n=Cf(t.__v),r=t.l.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),lc(t,e,r)):i()};n?n(o):o()}},ii.prototype.render=function(e){this.i=null,this.l=new Map;var t=Dn(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){lc(e,n,t)})};var Ef=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Hp=/^(?: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]/,jp=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Bp=/[A-Z0-9]/g,Up=typeof document<"u",Wp=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function ql(e,t,n){return t.__k==null&&(t.textContent=""),er(e,t),typeof n=="function"&&n(),e?e.__c:null}function Af(e,t,n){return Ol(e,t),typeof n=="function"&&n(),e?e.__c:null}cn.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(cn.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var uc=ke.event;function Gp(){}function zp(){return this.cancelBubble}function qp(){return this.defaultPrevented}ke.event=function(e){return uc&&(e=uc(e)),e.persist=Gp,e.isPropagationStopped=zp,e.isDefaultPrevented=qp,e.nativeEvent=e};var Yl,Yp={enumerable:!1,configurable:!0,get:function(){return this.class}},cc=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||Up&&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"||Wp(n.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":jp.test(s)&&(s=l):l=s="oninput":o&&Hp.test(s)?s=s.replace(Bp,"-$&").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=Dn(n.children).forEach(function(u){u.props.selected=i.value.indexOf(u.props.value)!=-1})),r=="select"&&i.defaultValue!=null&&(i.value=Dn(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",Yp)):(n.className&&!n.class||n.class&&n.className)&&(i.class=i.className=n.className),t.props=i}(e),e.$$typeof=Ef,cc&&cc(e)};var dc=ke.__r;ke.__r=function(e){dc&&dc(e),Yl=e.__c};var fc=ke.diffed;ke.diffed=function(e){fc&&fc(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),Yl=null};var kf={ReactCurrentDispatcher:{current:{readContext:function(e){return Yl.__n[e.__c].props.value},useCallback:Re,useContext:Ve,useDebugValue:Hl,useDeferredValue:Ul,useEffect:Fe,useId:rn,useImperativeHandle:Vl,useInsertionEffect:Gl,useLayoutEffect:_n,useMemo:me,useReducer:Hr,useRef:se,useState:xe,useSyncExternalStore:Gs,useTransition:Wl}}},Zp="18.3.1";function Nf(e){return c.bind(null,e)}function Si(e){return!!e&&e.$$typeof===Ef}function Tf(e){return Si(e)&&e.type===Ye}function $f(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Zl(e){return Si(e)?Fl.apply(null,arguments):e}function Mf(e){return!!e.__k&&(er(null,e),!0)}function If(e){return e&&(e.base||e.nodeType===1&&e)||null}var Df=function(e,t){return e(t)},Zt=function(e,t){return e(t)},Rf=Ye,Of=Si,Q={useState:xe,useId:rn,useReducer:Hr,useEffect:Fe,useLayoutEffect:_n,useInsertionEffect:Gl,useTransition:Wl,useDeferredValue:Ul,useSyncExternalStore:Gs,startTransition:Bl,useRef:se,useImperativeHandle:Vl,useMemo:me,useCallback:Re,useContext:Ve,useDebugValue:Hl,version:"18.3.1",Children:bf,render:ql,hydrate:Af,unmountComponentAtNode:Mf,createPortal:zs,createElement:c,createContext:lt,createFactory:Nf,cloneElement:Zl,createRef:Ws,Fragment:Ye,isValidElement:Si,isElement:Of,isFragment:Tf,isMemo:$f,findDOMNode:If,Component:cn,PureComponent:ys,memo:vf,forwardRef:zl,flushSync:Zt,unstable_batchedUpdates:Df,StrictMode:Rf,Suspense:ao,SuspenseList:ii,lazy:Sf,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:kf};const vs=Object.freeze(Object.defineProperty({__proto__:null,Children:bf,Component:cn,Fragment:Ye,PureComponent:ys,StrictMode:Rf,Suspense:ao,SuspenseList:ii,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:kf,cloneElement:Zl,createContext:lt,createElement:c,createFactory:Nf,createPortal:zs,createRef:Ws,default:Q,findDOMNode:If,flushSync:Zt,forwardRef:zl,hydrate:Af,isElement:Of,isFragment:Tf,isMemo:$f,isValidElement:Si,lazy:Sf,memo:vf,render:ql,startTransition:Bl,unmountComponentAtNode:Mf,unstable_batchedUpdates:Df,useCallback:Re,useContext:Ve,useDebugValue:Hl,useDeferredValue:Ul,useEffect:Fe,useErrorBoundary:Dp,useId:rn,useImperativeHandle:Vl,useInsertionEffect:Gl,useLayoutEffect:_n,useMemo:me,useReducer:Hr,useRef:se,useState:xe,useSyncExternalStore:Gs,useTransition:Wl,version:Zp},Symbol.toStringTag,{value:"Module"})),Kp=`*,: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 en(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function Xp(e){return e!=null&&typeof e.GetEnumerator=="function"}function Jp(e){return e!=null&&typeof e.CompareTo=="function"}function Qp(e){return e!=null&&typeof e.Equals=="function"}function Ff(e){return e!=null&&typeof e.GetHashCode=="function"}function ll(e){return e!=null&&typeof e.Dispose=="function"}function Me(e){ll(e)&&e.Dispose()}function Ae(){return null}function bs(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 e1{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 Oe(e){return Xp(e)?e.GetEnumerator():new e1(e[Symbol.iterator]())}function Ei(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 t1{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 n1(e,t,n){return e.toString(10).padStart(t,"0").padEnd(n,"0")}function mc(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function r1(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function dn(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class $n{static id(t){return $n.idMap.has(t)||$n.idMap.set(t,++$n.count),$n.idMap.get(t)}}$n.idMap=new WeakMap;$n.count=0;function cr(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 Pf(e){return cr(e.toString(32))}function So(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 i1(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return ln(e);case"bigint":return Pf(e);case"string":return cr(e);default:return ln($n.id(e))}}function o1(e){return Ff(e)?e.GetHashCode():i1(e)}function s1(e){return e.getTime()}function a1(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=tn(e[r]);return So(n)}function tn(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 Pf(e);case"string":return cr(e);default:{if(Ff(e))return e.GetHashCode();if(en(e))return a1(e);if(e instanceof Date)return s1(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>tn(r));return So(n)}else return ln($n.id(e))}}}function _s(e){return o1(e)}function ul(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 Lf(e,t){return ul(e,t,te)}function l1(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:Qp(e)?e.Equals(t):en(e)?en(t)&&Lf(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&Vf(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&l1(e,t)}function Vf(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+mc(e),r=t.getTime()+mc(t)),n===r?0:n<r?-1:1}function jr(e,t){return e===t?0:e<t?-1:1}function u1(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 Kl(e,t){return u1(e,t,Et)}function c1(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:Jp(e)?e.CompareTo(t):en(e)?en(t)?Kl(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?Vf(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?c1(e,t):-1}function w(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function d1(e){en(e)?e.splice(0):e.clear()}const qs=new WeakMap;function Ke(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return qs.set(t,e),t}function Zn(e){return qs.get(e)??(t=>n=>e(t,n))}function cl(e){if(e==null)return null;const t=(n,r,i)=>e(n)(r)(i);return qs.set(t,e),t}function Ma(e){return qs.get(e)??(t=>n=>r=>e(t,n,r))}function f1(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 f1(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 m1(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 m1(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>tn(n));return t.splice(0,0,ln(this.tag)),So(t)}Equals(t){return this===t?!0:bs(this,t)&&this.tag===t.tag?Lf(this.fields,t.fields):!1}CompareTo(t){return this===t?0:bs(this,t)?this.tag===t.tag?Kl(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function h1(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function p1(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+nt(n)).join(`
|
|
3
|
+
`)+" }"}function g1(e){const t=Object.values(e).map(n=>tn(n));return So(t)}function w1(e,t){if(e===t)return!0;if(bs(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 y1(e,t){if(e===t)return 0;if(bs(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 Ce{toJSON(){return h1(this)}toString(){return p1(this)}GetHashCode(){return g1(this)}Equals(t){return w1(this,t)}CompareTo(t){return y1(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 v1{constructor(t){this.message=t}}function b1(e){return e instanceof v1||e instanceof Error}function _1(e){return e instanceof Promise}function xs(e){return b1(e)||_1(e)?e:new Error(String(e))}const Xl=nt(Kp),Ai=Symbol("numeric");function Hf(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[Ai])}function x1(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function dl(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[Ai]().multiply(t)}function cs(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[Ai]().toFixed(t)}function Cs(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[Ai]().toPrecision(t)}function Ss(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[Ai]().toExponential(t)}function Es(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[Ai]().toHex()}const C1=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],S1=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],E1=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],A1=["January","February","March","April","May","June","July","August","September","October","November","December"];function Bt(e,t,n){let r=0,i=t;for(;i<e.length&&e[i]===n;)i++,r++;return r}function hc(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function k1(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 Jl(e,t,n){let r=0,i=0,o="";const s=n?Eo(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(i=Bt(t,r,"d"),r+=i,i){case 1:o+=gc(s);break;case 2:o+=je(gc(s),2);break;case 3:o+=C1[vc(s)];break;case 4:o+=S1[vc(s)];break}break;case"f":if(i=Bt(t,r,"f"),r+=i,i<=3){const v=10**(3-i);o+=je(Math.floor(Ko(s)/v),i)}else i<=7&&(o+=(""+Ko(s)).padEnd(i,"0"));break;case"F":if(i=Bt(t,r,"F"),r+=i,i<=3){const v=10**(3-i),_=Math.floor(Ko(s)/v);_!=0&&(o+=je(_,i))}else if(i<=7){const v=Ko(s);v!=0&&(o+=je(v,3))}break;case"g":i=Bt(t,r,"g"),r+=i,i<=2&&(o+="A.D.");break;case"h":switch(i=Bt(t,r,"h"),r+=i,i){case 1:o+=Zo(s)%12;break;case 2:o+=je(Zo(s)%12,2);break}break;case"H":switch(i=Bt(t,r,"H"),r+=i,i){case 1:o+=Zo(s);break;case 2:o+=je(Zo(s),2);break}break;case"K":switch(i=Bt(t,r,"K"),r+=i,i){case 1:switch(pc(s)){case 1:o+="Z";break;case 2:o+=si(s.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(i=Bt(t,r,"m"),r+=i,i){case 1:o+=wc(s);break;case 2:o+=je(wc(s),2);break}break;case"M":switch(i=Bt(t,r,"M"),r+=i,i){case 1:o+=Xo(s);break;case 2:o+=je(Xo(s),2);break;case 3:o+=E1[Xo(s)-1];break;case 4:o+=A1[Xo(s)-1];break}break;case"s":switch(i=Bt(t,r,"s"),r+=i,i){case 1:o+=yc(s);break;case 2:o+=je(yc(s),2);break}break;case"t":switch(i=Bt(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=Bt(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=Bt(t,r,"z"),r+=i;let l="";switch(pc(s)){case 1:l="+00:00";break;case 2:l=si(s.getTimezoneOffset()*-6e4);break;case 0:l=si(F1(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]=k1(t,r);o+=p,r+=m;break;case"%":const h=hc(t,r);if(h>=0&&h!==37)r+=2,o+=Jl(s,String.fromCharCode(h),n);else throw new Error("Invalid format string");break;case"\\":const b=hc(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 pc(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 As(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 N1(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 T1(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+si(t)}function $1(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 As(n,"first");case"T":case"t":return As(n,"second");case"O":case"o":return T1(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return Jl(n,t,!0)}function M1(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?As(e,"first"):e.toLocaleDateString();case"T":case"t":return n?As(e,"second"):e.toLocaleTimeString();case"O":case"o":return N1(e,n);default:throw new Error("Unrecognized Date print format")}else return Jl(e,t,n)}function Ys(e,t,n){return e.offset!=null?$1(e,t):M1(e,t)}function Eo(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function I1(){return Eo(-621355968e5,1)}function jf(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 D1(e,t=!1){const[n,r]=jf(e),i=r!=null?t&&r==="Z"?1:2:0;return Eo(n.getTime(),i)}function R1(e,t){try{return t.contents=D1(e),!0}catch{return!1}}function O1(e){return e.kind===1?e:Eo(e.getTime(),1)}function F1(e){return e.kind===2?e:Eo(e.getTime(),2)}function gc(e){return e.kind===1?e.getUTCDate():e.getDate()}function Zo(e){return e.kind===1?e.getUTCHours():e.getHours()}function Ko(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function wc(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function Xo(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function yc(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function vc(e){return e.kind===1?e.getUTCDay():e.getDay()}function P1(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 Zs(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function bc(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 Ql(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=P1(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=bc(e,a),u=bc.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 qi=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,L1=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Bf(e,t){return x1(e,t)<0}function Pn(e){return{input:e,cont:H1(e)}}function Uf(e,t){return typeof t=="string"?e(t):t.cont(e)}function $r(e){return Uf(t=>t,e)}function Wf(e){return Uf(t=>{throw new Error(t)},e)}function V1(e,t,n,r,i){let o="";if(t=t||"",i=i||"",Hf(e))switch(i.toLowerCase()!=="x"&&(Bf(e,0)?(e=dl(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=cs(e,r);break;case"g":case"G":e=r!=null?Cs(e,r):Cs(e);break;case"e":case"E":e=r!=null?Ss(e,r):Ss(e);break;case"x":e=Es(e);break;case"X":e=Es(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=Ys(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=mo(e,n-o.length,l,a),e=o+e):e=mo(o+e,n,l,a)}return e}function Gf(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+=V1(u,d,h,p,m),a.splice(0,1),l.splice(0,1)}return l.length===0?(s+=a[0],e(s)):Gf(e,a,l,s,i)}}function H1(e){return t=>{qi.lastIndex=0;const n=[],r=[];let i=0,o=qi.exec(e);for(;o;){const s=o.index+(o[1]||"").length;n.push(e.substring(i,s).replace(/%%/g,"%")),r.push(o),i=qi.lastIndex,qi.lastIndex-=1,o=qi.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(i).replace(/%%/g,"%")),Gf(t,n,r))}}function eu(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(L1,(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(Hf(u))switch(a=a==null?null:parseInt(a,10),s){case"f":case"F":a=a??2,u=cs(u,a);break;case"g":case"G":u=a!=null?Cs(u,a):Cs(u);break;case"e":case"E":u=a!=null?Ss(u,a):Ss(u);break;case"p":case"P":a=a??2,u=cs(dl(u,100),a)+" %";break;case"d":case"D":u=a!=null?Ia(String(u),a,"0"):String(u);break;case"x":case"X":u=a!=null?Ia(Es(u),a,"0"):Es(u),s==="X"&&(u=u.toUpperCase());break;default:if(l){let d="";u=l.replace(/([0#,]+)(\.[0#]+)?/,(f,p,m)=>{Bf(u,0)&&(u=dl(u,-1),d="-"),m=m==null?"":m.substring(1),u=cs(u,Math.max(m.length,0));let[h,b]=u.split(".");b||(b="");const v=p.replace(/,/g,"").replace(/^#+/,"").length;h=Ia(h,v,"0");const _=m.replace(/#+$/,"").length;if(_>b.length?b=j1(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=Ys(u,l||s):u=nt(u);return o=parseInt((o||" ").substring(1),10),isNaN(o)||(u=mo(String(u),Math.abs(o)," ",o<0)),u})}function tu(e){return typeof e!="string"||e.length===0}function ki(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 mo(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 Ia(e,t,n){return mo(e,t,n)}function j1(e,t,n){return mo(e,t,n,!0)}function zf(e,t,n){return e.replace(new RegExp(Zs(t),"g"),n)}function qf(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(Zs),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 B1(e,...t){if(t.length===0)return e.trim();const n="["+Zs(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}function nu(e,...t){return t.length===0?e.trimEnd():e.replace(new RegExp("["+Zs(t.join(""))+"]+$"),"")}function U1(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 Mr{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return tn(this.value)}Equals(t){return t==null?!1:te(this.value,t instanceof Mr?t.value:t)}CompareTo(t){return t==null?1:Et(this.value,t instanceof Mr?t.value:t)}}function V(e){if(e==null)throw new Error("Option has no value");return e instanceof Mr?e.value:e}function io(e){return e instanceof Mr?e.value:e}function ct(e){return e==null||e instanceof Mr?new Mr(e):e}function Yf(e){return e==null?null:V(e)}function Ni(e){return e==null?[]:[V(e)]}function Je(e,t){return e!=null?V(e):t}function W1(e,t){return e!=null?V(e):t()}function _t(e,t){return t!=null?ct(e(V(t))):void 0}function G1(e,t){return t!=null?e(V(t)):void 0}class z1{constructor(t,n,r,i){this.declaringType=t,this.tag=n,this.name=r,this.fields=i}}class Ht{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 Xe(this)}GetHashCode(){return Zf(this)}Equals(t){return fl(this,t)}}function qt(e){return e.generics!=null?e.generics:[]}function Zf(e){const t=cr(e.fullname),n=qt(e).map(Zf);return So([t,...n])}function fl(e,t){return e.fullname===""?t.fullname===""&&ul(po(e),po(t),([n,r],[i,o])=>n===i&&fl(r,o)):e.fullname===t.fullname&&ul(qt(e),qt(t),fl)}function tr(e,t,n,r){return new Ht(e,t,n,r)}function Mt(e,t,n,r){return new Ht(e,t,n,void 0,r)}function Gn(...e){return new Ht("",void 0,void 0,void 0,()=>e)}function Ao(e,t,n,r){const i=new Ht(e,t,n,void 0,void 0,()=>{const o=n.prototype.cases();return r().map((s,a)=>new z1(i,a,o[a],s))});return i}function kr(e){return new Ht("Microsoft.FSharp.Core.FSharpOption`1",[e])}function nr(e){return new Ht("Microsoft.FSharp.Collections.FSharpList`1",[e])}const q1=new Ht("System.Object"),Dt=new Ht("System.String"),ho=new Ht("System.Boolean"),qe=new Ht("System.Int32");function ai(e){if(Array.isArray(e))return e[0];if(e instanceof Ht){const t=ko(e);if(t!=null)return ai(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function Xe(e){const t=ko(e);return t!=null?Xe(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>Xe(n)).join(",")+"]"}function Kf(e){return ko(e)!=null}function ko(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function Xf(e){return e.generics!=null&&e.generics.length>0}function ru(e){return e.enumCases!=null&&e.enumCases.length>0}function Jf(e){return e.generics==null?e:new Ht(e.fullname,e.generics.map(()=>q1))}function Qf(e){var t;return(t=e.generics)==null?void 0:t[0]}function zr(e){if(ru(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function Y1(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 Y1(e,isNaN(n)?t:n)[1]}function e0(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function po(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function t0(e){if(iu(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function n0(e){return e instanceof Ht?e.cases!=null:e instanceof W}function r0(e){return e instanceof Ht?e.fields!=null:e instanceof Ce}function iu(e){return e.fullname.startsWith("System.Tuple")}function Z1(e,t){const r=e0(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function i0(e){return e.fields==null?[]:e.fields}function K1(e,t){return e[t[0]]}function X1(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 J1(e,t){const n=po(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 Q1(e,t){return e}const o0="Collection was empty.",eg="The input must be non-negative.",s0="The input sequence has an insufficient number of elements.";function wi(e,t){return new Array(t)}function _c(e,t){return e>t?e:t}function xc(e,t){return e<t?e:t}function a0(e,t,n){const r=e.length|0,i=t.length|0,o=wi(n,r+i);for(let s=0;s<=r-1;s++)$t(o,s,pe(s,e));for(let s=0;s<=i-1;s++)$t(o,s+r,pe(s,t));return o}function No(e,t,n,r){const i=t|0;return e.fill(r,i,i+n)}function tg(e){if(e.length===0)throw new Error("The input array was empty\\nParameter name: array");return pe(e.length-1,e)}function l0(e,t,n){const r=t.length|0,i=wi(n,r);for(let o=0;o<=r-1;o++)$t(i,o,e(o,pe(o,t)));return i}function et(e,t,n){const r=t.length|0,i=wi(n,r);for(let o=0;o<=r-1;o++)$t(i,o,e(pe(o,t)));return i}function ks(e,t){const n=Array.isArray(e)?e:Array.from(e);switch(n.length|0){case 0:return wi(t,0);case 1:return pe(0,n);default:{let i=0,o=0;for(let a=0;a<=n.length-1;a++){const l=pe(a,n);o=o+l.length|0}const s=wi(t,o);for(let a=0;a<=n.length-1;a++){const l=pe(a,n);for(let u=0;u<=l.length-1;u++)$t(s,i,pe(u,l)),i=i+1|0}return s}}}function ng(e,t,n,r,i){const o=Je(n,0)|0,s=Je(_t(l=>o+l,r),e.length)|0;return(l=>{e:for(;;){const u=l;if(u>=s)return-1;if(i.Equals(t,pe(u,e)))return u|0;l=u+1;continue e}})(o)|0}function Ti(e,t,n){return ng(t,e,void 0,void 0,n)>=0}function rg(e,t){const n=wi(t,1);return $t(n,0,e),n}function ig(e){return e.slice().reverse()}function Ks(e,t){return t.find(e)}function Yt(e,t,n){const r=[];for(let i=0;i<=t.length-1;i++){const o=e(pe(i,t));if(o!=null){const s=V(o);r.push(s)}}return te(n,Ae())?r:et(i=>i,r,n)}function Xs(e,t,n){const r=e;return n.reduce(r,t)}function og(e,t){const n=e.slice();return n.sort((r,i)=>t.Compare(r,i)),n}function sg(e,t,n){const r=t.slice();return r.sort((i,o)=>n.Compare(e(i),e(o))),r}function Ir(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(pe(r,t),pe(r,n)),r=r+1|0;return i}}function Cc(e){if(e.length===0)throw new Error("The input array was empty\\nParameter name: array");return pe(0,e)}function ag(e){if(e.length===0)throw new Error("Not enough elements\\nParameter name: array");return e.slice(1)}function pe(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 u0(e,t){if(!(e<0||e>=t.length))return ct(t[e])}function c0(e,t,n){return t.reduceRight((r,i)=>e(i,r),n)}class bt extends Ce{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)+tn(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 ug(this)}[Symbol.iterator](){return Ei(Oe(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Oe(this)}}class lg{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 ug(e){return new lg(e)}function Qe(){return new bt(Ae(),void 0)}function To(e,t){return new bt(e,t)}function vn(e){return e.tail==null}function d0(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 rr(e){if(e.tail!=null)return e.head;throw new Error(o0+"\\nParameter name: list")}function gt(e){const t=e.tail;if(t!=null)return V(t);throw new Error(o0+"\\nParameter name: list")}function at(){return Qe()}function Xt(e,t){return To(e,t)}function ce(e){return To(e,Qe())}function Te(e){return vn(e)}function Jt(e){return d0(e)}function ue(e){return rr(e)}function De(e){return gt(e)}function dr(e){const t=d0(e)|0,n=No(new Array(t),0,t,null);return((i,o)=>{e:for(;;){const s=i,a=o;if(!vn(a)){$t(n,s,rr(a)),i=s+1,o=gt(a);continue e}break}})(0,e),n}function xn(e,t,n){let r=t,i=n;for(;!vn(i);)r=e(r,ue(i)),i=gt(i);return r}function ou(e){return xn((t,n)=>To(n,t),Qe(),e)}function cg(e,t,n){return c0(e,dr(t),n)}function dg(e,t,n){return((i,o,s)=>{e:for(;;){const a=i,l=o,u=s;if(vn(u))return l;i=a+1,o=e(a,l,rr(u)),s=gt(u);continue e}})(0,t,n)}function go(e,t){xn((n,r)=>{e(r)},void 0,t)}function rt(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=To(pe(r,e),n);return n}function g(e){return rt(e,Qe())}function fg(e){let t,n;if(en(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{Me(o)}const s=i,a=Qe();return s.tail=a,gt(r)}}function mg(e){const t=Qe();let n=t;const r=s=>{n=xn((a,l)=>{const u=new bt(l,void 0);return a.tail=u,u},n,s)};if(en(e))e.forEach(r);else if(e instanceof bt)go(r,e);else{const s=Oe(e);try{for(;s["System.Collections.IEnumerator.MoveNext"]();)r(s["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{Me(s)}}const i=n,o=Qe();return i.tail=o,gt(t)}function $o(e,t){return xn((n,r)=>To(r,n),t,ou(e))}function hg(e,t){let n,r;const i=Qe();let o=i,s=t;for(;!vn(s);){let u=e(rr(s));for(;!vn(u);)o=(n=o,r=new bt(rr(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 su(e,t){const n=Qe(),r=dg((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 ir(e,t){const n=Qe(),r=xn((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 pg(e,t){return(r=>{e:for(;;){const i=r;if(vn(i))return;{const o=e(rr(i));if(o==null){r=gt(i);continue e}else return o}}})(t)}function f0(e,t){return pg(n=>e(n)?ct(n):void 0,t)}function gg(e,t){return((r,i)=>{e:for(;;){const o=r,s=i;if(vn(s))return;if(e(rr(s)))return o;r=o+1,i=gt(s);continue e}})(0,t)}function Mn(e,t){const n=Qe(),r=xn((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 wg(e,t){const n=Qe(),r=Qe(),i=n,o=xn((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 yg(e,t){const n=Qe(),r=xn((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 au(e,t){return gg(e,t)!=null}function m0(e,t){const n=dr(t);return n.sort(e),g(n)}function vg(e,t,n){return m0((r,i)=>n.Compare(e(r),e(i)),t)}function bg(e,t,n){return m0((r,i)=>n.Compare(e(r),e(i))*-1,t)}function h0(e,t){e:for(;;){const n=e,r=t;if(n<=0)return r;if(vn(r))throw new Error(s0+"\\nParameter name: list");e=n-1,t=gt(r);continue e}}function p0(e,t){if(e<0)throw new Error(eg+"\\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(vn(p))throw new Error(s0+"\\nParameter name: list");s=d-1,a=(u=new bt(rr(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 _g(e,t,n){const r=Jt(n)|0;let i;const o=Je(e,0)|0;i=o<0?0:o;let s;const a=Je(t,r-1)|0;return s=a>=r?r-1:a,s<i?Qe():p0(s-i+1,h0(i,n))}const y=Q;function xg(e){const t=g([c("style",{children:[Xl]}),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 Cg(e){throw new Error(e)}const Sg="Enumeration already finished.",Eg="Enumeration has not started. Call MoveNext.",g0="The input sequence has an insufficient number of elements.",Ag="Reset is not supported on this enumerator.";function kg(){throw new Error(Ag)}function lu(){throw new Error(Eg)}function ml(){throw new Error(Sg)}class Ng{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{Me(i)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Ei(Oe(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function Tg(e){return new Ng(e)}class $g{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"(){kg()}Dispose(){this.dispose()}}function Js(e,t,n){return new $g(e,t,n)}function Mg(e){let t,n,r=!1,i=!1,o;const s=()=>{if(i=!0,n!=null){const a=V(n);try{Me(a)}finally{n=void 0}}if(t!=null){const a=V(t);try{Me(a)}finally{t=void 0}}};return Js(()=>(r?i&&ml():lu(),o!=null?V(o):ml()),()=>{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{Me(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 Ig(e,t){return Js(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{Me(t)}finally{}})}function w0(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 Js(()=>(r||lu(),i!=null?V(i):ml()),()=>{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 Dg(e,t){let n,r=t;return Js(()=>{if(n!=null){const i=V(n)[0];return V(n)[1],i}else return lu()},()=>(n=e(r),n!=null?(V(n)[0],r=V(n)[1],!0):!1),()=>{})}function Rg(e,t){t==null&&Cg(e)}function $i(e){return Tg(e)}function nn(e){return Rg("source",e),Oe(e)}function $(e){return $i(()=>Oe(e()))}function Qs(e){return $i(()=>Mg(e))}function Og(e,t){return $i(()=>Dg(e,t))}function ft(){return $(()=>new Array(0))}function k(e){return $(()=>rg(e))}function Ln(e){return e instanceof bt?dr(e):Array.from(e)}function K(e){return en(e)?g(e):e instanceof bt?e:fg(e)}function uu(e,t,n){return $i(()=>w0(e,t,n))}function y0(e,t,n){return $i(()=>{let r=-1;return w0(e,i=>(r=r+1|0,t(r,i)),n)})}function H(e,t){return Qs([e,t])}function Fg(e,t){return uu(()=>nn(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=>{Me(n)})}function Pg(e,t,n){const r=nn(t);try{const i=nn(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{Me(i)}}finally{Me(r)}}function Yr(e,t,n){const r=nn(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{Me(r)}}function ea(e,t){return Fg(n=>{if(e(n))return ct(n)},t)}function Mo(e,t,n){const r=nn(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{Me(r)}}function jn(e,t){Mo((n,r)=>{e(r)},void 0,t)}function v0(e,t){Mo((n,r)=>(e(n,r),n+1|0),0,t)}function Lg(e){if(en(e))return e.length|0;if(e instanceof bt)return Jt(e)|0;{const t=nn(e);try{let n=0;for(;t["System.Collections.IEnumerator.MoveNext"]();)n=n+1|0;return n|0}finally{Me(t)}}}function Le(e,t){return uu(()=>nn(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?ct(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{Me(n)})}function Vg(e,t){return y0(()=>nn(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?ct(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{Me(n)})}function Hg(e,t,n){return uu(()=>[nn(t),nn(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{Me(r[0])}finally{Me(r[1])}})}function jg(e){return $(()=>ig(Ln(e)))}function Bg(e,t){return $i(()=>{const n=nn(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(g0+"\\nParameter name: source");return Ig(()=>{},n)}catch(r){throw Me(n),r}})}function Ug(e,t){return y0(()=>nn(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(g0+"\\nParameter name: source")}else return},n=>{Me(n)})}function Wg(e,t){return Hg((n,r)=>[n,r],e,t)}function ta(e,t){return $(()=>Qs(Le(e,t)))}const b0=(e,t)=>{Fe(()=>{const n=e();return()=>{n.Dispose()}},t)},Gg=e=>{_n(()=>{const t=e();return()=>{t.Dispose()}})};function zg(e){return{Dispose(){jn(t=>{Me(t)},Ni(e))}}}class _0{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 na extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,na.prototype)}}class cu{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>cu.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function In(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new na);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(xs(n))}});else try{e(t)}catch(n){t.onError(xs(n))}}}function qg(e,t){return In(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(i){n.onError(xs(i))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function Yg(e){return In(t=>t.onSuccess(e))}class Zg{Bind(t,n){return qg(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return In(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 Yg(t)}ReturnFrom(t){return t}TryFinally(t,n){return In(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 In(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:i=>{try{n(i)(r)}catch(o){r.onError(xs(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 In(t=>t.onSuccess(void 0))}}const Y=new Zg;function Kg(e){return new x0(0,[e])}function Xg(e){return new x0(1,[e])}class x0 extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function Jg(e){return Kg(e)}function Qg(e){return Xg(e)}function Da(e){}function ew(e){return new _0(!1)}function tw(e){e.cancel()}function nw(e){return e!=null&&e.isCancelled}const rw=new _0;function iw(e){return In(t=>{e({onSuccess:n=>t.onSuccess(Jg(n)),onError:n=>t.onSuccess(Qg(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function ow(e){return In(t=>e([t.onSuccess,t.onError,t.onCancel]))}function C0(e){return In(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new na)})})}function sw(e,t){return aw(e,t)}function Mi(e,t){return sw(e,t)}function aw(e,t,n,r,i){typeof t!="function"&&(i=t,t=void 0);const o=new cu;e({onSuccess:t||Da,onError:Da,onCancel:Da,cancelToken:i||rw,trampoline:o})}function lw(e,t){return t}function uw(e,t,n,r){const i=y.memo(e,Ke(Je(_t(Zn,n),Ae())));return jn(o=>{e.displayName=o},Ni(t)),o=>{const s=lw(r,o);return y.createElement(i,s)}}function du(e){return{Dispose(){e()}}}function ra(e){const t=y.useRef(!1);y.useEffect(()=>{t.current||(t.current=!0,e())},[])}function S0(e){const t=y.useRef(void 0),n=y.useRef(!1),r=y.useRef(!1);n.current&&(r.current=!0),b0(()=>zg(n.current?void 0:(n.current=!0,t.current=ct(e()),r.current?t.current:void 0)),[])}function E0(e){const t=y.useRef(e),n=y.useCallback(r=>t.current(r),[]);return Gg(r=>(t.current=e,du(()=>{}))),n}class Ii extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class ia extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class oa extends Ce{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 A0 extends Ce{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 k0{constructor(t,n){this.k=t,this.v=n}}function yi(e,t){return new k0(e,t)}function ut(e){return e.k}function pt(e){return e.v}class mt extends k0{constructor(t,n,r,i,o){super(t,n),this.left=r,this.right=i,this.h=o|0}}function Nr(e,t,n,r,i){return new mt(e,t,n,r,i)}function ot(e){return e.left}function st(e){return e.right}function Jn(e){return e.h}function N0(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=V(r);if(i instanceof mt){const o=i;e=N0(n+1,ot(o)),t=st(o);continue e}else return n+1|0}else return n|0}}function T0(e){return N0(0,e)}function Wt(e,t,n,r){let i,o,s;const a=e;if(a!=null){const f=V(a);s=f instanceof mt?(i=f,Jn(i)):1}else s=0;let l;const u=r;if(u!=null){const f=V(u);l=f instanceof mt?(o=f,Jn(o)):1}else l=0;const d=(s<l?l:s)|0;return d===0?yi(t,n):Nr(t,n,e,r,d+1)}function Ns(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 mt?(i=v,Jn(i)):1}else p=0;let h;const b=r;if(b!=null){const v=V(b);h=v instanceof mt?(o=v,Jn(o)):1}else h=0;if(h>p+2){const v=V(r);if(v instanceof mt){const _=v;if(s=ot(_),(s!=null?(a=V(s),a instanceof mt?(l=a,Jn(l)):1):0)>p+1){const x=V(ot(_));if(x instanceof mt){const E=x;return Wt(Wt(e,t,n,ot(E)),ut(E),pt(E),Wt(st(E),ut(_),pt(_),st(_)))}else throw new Error("internal error: Map.rebalance")}else return Wt(Wt(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 mt){const _=v;if(u=st(_),(u!=null?(d=V(u),d instanceof mt?(f=d,Jn(f)):1):0)>h+1){const x=V(st(_));if(x instanceof mt){const E=x;return Wt(Wt(ot(_),ut(_),pt(_),ot(E)),ut(E),pt(E),Wt(st(E),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Wt(ot(_),ut(_),pt(_),Wt(st(_),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Wt(e,t,n,r)}function vi(e,t,n,r){if(r!=null){const i=V(r),o=e.Compare(t,ut(i))|0;if(i instanceof mt){const s=i;return o<0?Ns(vi(e,t,n,ot(s)),ut(s),pt(s),st(s)):o===0?Nr(t,n,ot(s),st(s),Jn(s)):Ns(ot(s),ut(s),pt(s),vi(e,t,n,st(s)))}else return o<0?Nr(t,n,void 0,r,2):o===0?yi(t,n):Nr(t,n,r,void 0,2)}else return yi(t,n)}function fu(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 mt){const l=s;e=r,t=i,n=a<0?ot(l):st(l);continue e}else return}else return}}function cw(e,t,n){const r=fu(e,t,n);if(r==null)throw new Error;return V(r)}function $0(e){if(e!=null){const t=V(e);if(t instanceof mt){const n=t;if(ot(n)==null)return[ut(n),pt(n),st(n)];{const r=$0(ot(n));return[r[0],r[1],Wt(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 hl(e,t,n,r){if(r!=null){const i=V(r);if(i instanceof mt){const o=i,s=e.Compare(t,ut(o))|0;if(s<0)return Ns(hl(e,t,n,ot(o)),ut(o),pt(o),st(o));if(s===0){const a=n(ct(pt(o)));if(a!=null)return Nr(t,V(a),ot(o),st(o),Jn(o));if(ot(o)==null)return st(o);if(st(o)==null)return ot(o);{const l=$0(st(o));return Wt(ot(o),l[0],l[1],l[2])}}else return Ns(ot(o),ut(o),pt(o),hl(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?Nr(t,V(s),void 0,r,2):r}else if(o===0){const s=n(ct(pt(i)));return s!=null?yi(t,V(s)):void 0}else{const s=n(void 0);return s!=null?Nr(t,V(s),r,void 0,2):r}}}else{const i=n(void 0);return i!=null?yi(t,V(i)):r}}function dw(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 mt){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 M0(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=V(r);if(i instanceof mt){const o=i;M0(n,ot(o)),n(ut(o),pt(o)),e=n,t=st(o);continue e}else n(ut(i),pt(i))}break}}function fw(e,t){M0(e,t)}function I0(e,t,n){let r=n;fw((i,o)=>{$t(t,r,[i,o]),r=r+1|0},e)}function mw(e){const t=T0(e)|0,n=No(new Array(t),0,t,[null,null]);return I0(e,n,0),n}function hw(e,t){return xn((n,r)=>vi(e,r[0],r[1],n),void 0,t)}function pw(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=vi(r,s[0],s[1],i),n=o;continue e}else return i}}function gw(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const i=pe(r,t);n=vi(e,i[0],i[1],n)}return n}function D0(e,t){if(en(t))return gw(e,t);if(t instanceof bt)return hw(e,t);{const n=Oe(t);try{return pw(e,void 0,n)}finally{Me(n)}}}class ww extends Ce{constructor(t,n){super(),this.stack=t,this.started=n}}function R0(e){e:for(;;){const t=e;if(Te(t))return at();{const n=De(t),r=ue(t);if(r!=null){const i=V(r);if(i instanceof mt){const o=i;e=rt([ot(o),yi(ut(o),pt(o)),st(o)],n);continue e}else return t}else{e=n;continue e}}}}function Sc(e){return new ww(R0(ce(e)),!1)}function yw(){throw new Error("enumeration not started")}function vw(){throw new Error("enumeration already finished")}function Ec(e){if(e.started){const t=e.stack;if(Te(t))return vw();if(ue(t)!=null){const n=V(ue(t));if(n instanceof mt)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 yw()}function bw(e){if(e.started){const t=e.stack;if(Te(t))return!1;if(ue(t)!=null){if(V(ue(t))instanceof mt)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=R0(De(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 Ac(e){let t=Sc(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Ec(t)},"System.Collections.IEnumerator.get_Current"(){return Ec(t)},"System.Collections.IEnumerator.MoveNext"(){return bw(t)},"System.Collections.IEnumerator.Reset"(){t=Sc(e)},Dispose(){}}}class Ts{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Ew(this)|0}Equals(t){const n=this;if(t instanceof Ts){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{Me(o)}}finally{Me(i)}}else return!1}toString(){return"map ["+At("; ",Le(n=>eu("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return Ac(this.tree)}[Symbol.iterator](){return Ei(Oe(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Ac(this.tree)}CompareTo(t){const n=this;if(t instanceof Ts)return Pg((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 kc(n,t[0])&&te(Dr(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){I0(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Ra(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Ra(this)|0}get size(){return Ra(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 Dr(this,t)}has(t){return kc(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;jn(i=>{t(i[1],i[0],r)},r)}}function Io(e,t){return new Ts(e,t)}function _w(e){return Io(e,void 0)}function xw(e,t,n){return Io(e.comparer,vi(e.comparer,t,n,e.tree))}function Cw(e,t,n){return Io(e.comparer,hl(e.comparer,t,n,e.tree))}function Dr(e,t){return cw(e.comparer,t,e.tree)}function Ra(e){return T0(e.tree)}function kc(e,t){return dw(e.comparer,t,e.tree)}function Sw(e,t,n){const r=fu(e.comparer,t,e.tree);if(r==null)return!1;{const i=V(r);return n.contents=i,!0}}function Nc(e){return et(t=>t[1],mw(e.tree))}function Sr(e,t){return fu(e.comparer,t,e.tree)}function Ew(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,tn(i[0]))|0,n=t(n,tn(i[1]))|0}}finally{Me(r)}return n|0}function O0(e,t,n){return xw(n,e,t)}function Jo(e,t,n){return Cw(n,e,t)}function F0(e,t){return Sr(t,e)}function Aw(e){return Le(t=>[t[0],t[1]],e)}function li(e,t){return Io(t,D0(t,e))}function kw(e,t){return Io(t,D0(t,e))}function mu(e){return _w(e)}const pr=new oa("",new Ii(0,[]),at(),!1,void 0,void 0,void 0,new ia(0,[]));new A0(0,"","","",mu({Compare:jr}),new ei(0,[""]));function Tc(e,t){return tu(t)?new Array(0):qf(t,[e],void 0,0)}function Nw(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 Do(e){return new oa(e,pr.method,pr.headers,pr.withCredentials,pr.overridenMimeType,pr.overridenResponseType,pr.timeout,pr.content)}function Ro(e,t){return new oa(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function hu(e,t){return new oa(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function $c(e){return ow(t=>{const n=new XMLHttpRequest;n.open(Nw(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=kw(Yt(b=>{const v=g(Tc(":",b));if(!Te(v))return[ue(v).toLocaleLowerCase(),At(":",De(v)).trim()]},Tc(`\r
|
|
4
|
+
`,n.getAllResponseHeaders())),{Compare:jr}),new A0(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{Me(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 Tw(e){return new M(0,[e])}function P0(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 Vn(e,t){return t.tag===0?Tw(e(t.fields[0])):P0(t.fields[0])}function $w(e,t){return t.tag===0?e(t.fields[0]):P0(t.fields[0])}const br={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function Oa(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 Mw(e,t){switch(t){case br.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case br.SnakeCase:return Oa(e,"_");case br.SnakeCaseAllCaps:return Oa(e,"_").toUpperCase();case br.KebabCase:return Oa(e,"-");case br.None:default:return e}}function Bn(e,t=br.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=Mw(s,a),n[s]=l}for(let s of e){let a=br.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 pu(e,t,n){return e.has(t)?(n.contents=e.get(t),!0):!1}function L0(e,t){return t.has(e)?!1:(t.add(e),!0)}function Iw(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 or(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class oe extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Hn extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function Mc(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function V0(e,t){switch(e.tag){case 2:return Ql(Mc(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Mc(t)}}const Dw=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Ic=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Rw=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Ow(e){function t(r){return r.replace(Ic,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Dw.test(n))return B1(n,"{","}","(",")");if(Ic.test(n))return t(n);if(Rw.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 Fw(e,t){try{return t.contents=Ow(e),!0}catch{return!1}}function H0(){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 Pw(e,t){const[,n,r,i]=e;return{sign:n||"",prefix:r||"",digits:i,radix:t}}function Dc(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 Lw(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 Vw(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 Hw(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||Vw(o,t),!Lw(n).test(s))return Pw(i,n)}return null}function jw(e,t,n,r,i){const o=Hw(e,t,i);if(o!=null){let s=Number.parseInt(o.sign+o.digits,o.radix);if(!Number.isNaN(s)){const[a,l]=Dc(!0,r);!n&&o.radix!==10&&s>=a&&s<=l&&(s=s<<32-r>>32-r);const[u,d]=Dc(n,r);if(s>=u&&s<=d)return s}}throw new Error(`The input string ${e} was not in a correct format.`)}function Di(e,t,n,r,i){try{return i.contents=jw(e,t,n,r),!0}catch{return!1}}function j0(e,t){Bw(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function Bw(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 Uw(){return j0(-621355968e5,0)}function Ww(e){const[t,n]=jf(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return j0(t.getTime(),r)}function Gw(e,t){try{return t.contents=Ww(e),!0}catch{return!1}}function Oo(e){return e<0?Math.ceil(e):Math.floor(e)}function Rc(e=0,t=0,n=0,r=0,i=0){switch(arguments.length){case 1:return zw(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 zw(e){return Number(BigInt(e)/10000n)}function qw(e){return Oo(e/864e5)}function Yw(e){return Oo(e%864e5/36e5)}function Zw(e){return Oo(e%36e5/6e4)}function Kw(e){return Oo(e%6e4/1e3)}function Xw(e){return Oo(e%1e3)}function Jw(e,t="c",n){if(["c","g","G"].indexOf(t)===-1)throw new Error("Custom formats are not supported");const r=Math.abs(qw(e)),i=Math.abs(Yw(e)),o=Math.abs(Zw(e)),s=Math.abs(Kw(e)),a=Math.abs(Xw(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):"."+n1(a,3,7)}`}function Qw(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 Rc(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*Rc(i,l,u,s,o)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function ey(e,t){try{return t.contents=Qw(e),!0}catch{return!1}}class B0{constructor(t,n){const r=new Ct(Ae());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"]();Fa(r.contents,o)}}finally{Me(i)}}get[Symbol.toStringTag](){return"HashSet"}toJSON(){const t=this;return Array.from(t)}"System.Collections.IEnumerable.GetEnumerator"(){return Oe(this)}GetEnumerator(){return Oe(Qs(this.hashMap.values()))}[Symbol.iterator](){return Ei(Oe(this))}"System.Collections.Generic.ICollection`1.Add2B595"(t){Fa(this,t)}"System.Collections.Generic.ICollection`1.Clear"(){Oc(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(t){return Pc(this,t)}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){v0((i,o)=>{$t(t,n+i,o)},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return Fc(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(t){return Lc(this,t)}get size(){return Fc(this)|0}add(t){const n=this;return Fa(n,t),n}clear(){Oc(this)}delete(t){return Lc(this,t)}has(t){return Pc(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;jn(i=>{t(i,i,r)},r)}}function gu(e,t){const n=e.comparer.GetHashCode(t)|0;let r,i=Ae();return r=[pu(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 Oc(e){e.hashMap.clear()}function Fc(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{Me(n)}return t|0}function Fa(e,t){const n=gu(e,t);return n[0]?n[2]>-1?!1:(or(e.hashMap,n[1]).push(t),!0):(e.hashMap.set(n[1],[t]),!0)}function Pc(e,t){const n=gu(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return!0;default:return!1}}function Lc(e,t){const n=gu(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return or(e.hashMap,n[1]).splice(n[2],1),!0;default:return!1}}class U0{constructor(t){this.k=t}}function Gt(e){return new U0(e)}function _e(e){return e.k}class Pe extends U0{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 W0(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=W0(We(o),r+1);continue e}else return r+1|0}else return r|0}}function ty(e){return W0(e,0)}function on(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?Gt(t):zt(t,e,n,u+1)}function Vc(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 on(on(e,t,ze(x)),_e(x),on(We(x),_e(v),We(v)))}else throw new Error("internal error: Set.rebalance")}else return on(on(e,t,ze(v)),_e(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 on(on(ze(v),_e(v),ze(x)),_e(x),on(We(x),t,n))}else throw new Error("internal error: Set.rebalance")}else return on(ze(v),_e(v),on(We(v),t,n))}else throw new Error("internal error: Set.rebalance")}else return on(e,t,n)}function bi(e,t,n){if(n!=null){const r=V(n),i=e.Compare(t,_e(r))|0;if(r instanceof Pe){const o=r;return i<0?Vc(bi(e,t,ze(o)),_e(o),We(o)):i===0?n:Vc(ze(o),_e(o),bi(e,t,We(o)))}else{const o=e.Compare(t,_e(r))|0;return o<0?zt(t,void 0,n,2):o===0?n:zt(t,n,void 0,2)}}else return Gt(t)}function G0(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=V(o),a=r.Compare(i,_e(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 z0(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=V(r);if(i instanceof Pe){const o=i;z0(n,ze(o)),n(_e(o)),e=n,t=We(o);continue e}else n(_e(i))}break}}class ny extends Ce{constructor(t,n){super(),this.stack=t,this.started=n}}function q0(e){e:for(;;){const t=e;if(Te(t))return at();{const n=ue(t),r=De(t);if(n!=null){const i=V(n);if(i instanceof Pe){const o=i;e=rt([ze(o),Gt(_e(o)),We(o)],r);continue e}else return t}else{e=r;continue e}}}}function Hc(e){return new ny(q0(ce(e)),!1)}function ry(){throw new Error("Enumeration not started")}function iy(){throw new Error("Enumeration already started")}function jc(e){if(e.started){const t=e.stack;if(Te(t))return iy();if(ue(t)!=null){const n=V(ue(t));return _e(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return ry()}function oy(e){if(e.started){const t=e.stack;if(Te(t))return!1;if(ue(t)!=null){if(V(ue(t))instanceof Pe)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=q0(De(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 Bc(e){let t=Hc(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return jc(t)},"System.Collections.IEnumerator.get_Current"(){return jc(t)},"System.Collections.IEnumerator.MoveNext"(){return oy(t)},"System.Collections.IEnumerator.Reset"(){t=Hc(e)},Dispose(){}}}function sy(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(ue(o)!=null)if(ue(i)!=null){const s=V(ue(i)),a=V(ue(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(_e(l),_e(u))|0;if(d!==0)return d|0;e=r,t=Xt(We(l),De(i)),n=Xt(We(u),De(o));continue e}else{let d,f,p,m,h;switch(Te(i)?Te(o)?d=2:ue(o)!=null?(d=1,m=De(o),h=V(ue(o))):d=2:ue(i)!=null?(d=0,f=De(i),p=V(ue(i))):Te(o)?d=2:ue(o)!=null?(d=1,m=De(o),h=V(ue(o))):d=2,d){case 0:if(p instanceof Pe){const b=p;e=r,t=rt([ze(b),zt(_e(b),void 0,We(b),0)],f),n=o;continue e}else{e=r,t=rt([void 0,Gt(_e(p))],f),n=o;continue e}case 1:if(h instanceof Pe){const b=h;e=r,t=i,n=rt([ze(b),zt(_e(b),void 0,We(b),0)],m);continue e}else{e=r,t=i,n=rt([void 0,Gt(_e(h))],m);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const u=r.Compare(_e(l),_e(a))|0;if(u!==0)return u|0;e=r,t=Xt(We(l),De(i)),n=Xt(void 0,De(o));continue e}else{let u,d,f,p,m;switch(Te(i)?Te(o)?u=2:ue(o)!=null?(u=1,p=De(o),m=V(ue(o))):u=2:ue(i)!=null?(u=0,d=De(i),f=V(ue(i))):Te(o)?u=2:ue(o)!=null?(u=1,p=De(o),m=V(ue(o))):u=2,u){case 0:if(f instanceof Pe){const h=f;e=r,t=rt([ze(h),zt(_e(h),void 0,We(h),0)],d),n=o;continue e}else{e=r,t=rt([void 0,Gt(_e(f))],d),n=o;continue e}case 1:if(m instanceof Pe){const h=m;e=r,t=i,n=rt([ze(h),zt(_e(h),void 0,We(h),0)],p);continue e}else{e=r,t=i,n=rt([void 0,Gt(_e(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(_e(s),_e(l))|0;if(u!==0)return u|0;e=r,t=Xt(void 0,De(i)),n=Xt(We(l),De(o));continue e}else{let u,d,f,p,m;switch(Te(i)?Te(o)?u=2:ue(o)!=null?(u=1,p=De(o),m=V(ue(o))):u=2:ue(i)!=null?(u=0,d=De(i),f=V(ue(i))):Te(o)?u=2:ue(o)!=null?(u=1,p=De(o),m=V(ue(o))):u=2,u){case 0:if(f instanceof Pe){const h=f;e=r,t=rt([ze(h),zt(_e(h),void 0,We(h),0)],d),n=o;continue e}else{e=r,t=rt([void 0,Gt(_e(f))],d),n=o;continue e}case 1:if(m instanceof Pe){const h=m;e=r,t=i,n=rt([ze(h),zt(_e(h),void 0,We(h),0)],p);continue e}else{e=r,t=i,n=rt([void 0,Gt(_e(m))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(_e(s),_e(a))|0;if(l!==0)return l|0;e=r,t=De(i),n=De(o);continue e}}else{V(ue(o));let s,a,l,u,d;switch(Te(i)?Te(o)?s=2:ue(o)!=null?(s=1,u=De(o),d=V(ue(o))):s=2:ue(i)!=null?(s=0,a=De(i),l=V(ue(i))):Te(o)?s=2:ue(o)!=null?(s=1,u=De(o),d=V(ue(o))):s=2,s){case 0:if(l instanceof Pe){const f=l;e=r,t=rt([ze(f),zt(_e(f),void 0,We(f),0)],a),n=o;continue e}else{e=r,t=rt([void 0,Gt(_e(l))],a),n=o;continue e}case 1:if(d instanceof Pe){const f=d;e=r,t=i,n=rt([ze(f),zt(_e(f),void 0,We(f),0)],u);continue e}else{e=r,t=i,n=rt([void 0,Gt(_e(d))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(ue(i)!=null){V(ue(i));let s,a,l,u,d;switch(Te(i)?Te(o)?s=2:ue(o)!=null?(s=1,u=De(o),d=V(ue(o))):s=2:ue(i)!=null?(s=0,a=De(i),l=V(ue(i))):Te(o)?s=2:ue(o)!=null?(s=1,u=De(o),d=V(ue(o))):s=2,s){case 0:if(l instanceof Pe){const f=l;e=r,t=rt([ze(f),zt(_e(f),void 0,We(f),0)],a),n=o;continue e}else{e=r,t=rt([void 0,Gt(_e(l))],a),n=o;continue e}case 1:if(d instanceof Pe){const f=d;e=r,t=i,n=rt([ze(f),zt(_e(f),void 0,We(f),0)],u);continue e}else{e=r,t=i,n=rt([void 0,Gt(_e(d))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=De(i),n=De(o);continue e}}}function Uc(e,t,n){return t==null?n==null?0:-1:n==null?1:sy(e,ce(t),ce(n))|0}function ay(e,t,n){let r=n;z0(i=>{$t(t,r,i),r=r+1|0},e)}function ly(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){e=r,t=bi(r,o["System.Collections.Generic.IEnumerator`1.get_Current"](),i),n=o;continue e}else return i}}function uy(e,t){return Xs((n,r)=>bi(e,r,n),void 0,t)}function cy(e,t){return xn((n,r)=>bi(e,r,n),void 0,t)}function Y0(e,t){if(en(t))return uy(e,t);if(t instanceof bt)return cy(e,t);{const n=Oe(t);try{return ly(e,void 0,n)}finally{Me(n)}}}class wu{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return my(this)|0}Equals(t){let n;const r=this;return t instanceof wu&&(n=t,Uc(ui(r),sn(r),sn(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 Uc(ui(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 G0(ui(n),t,sn(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){ay(sn(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Pa(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Pa(this)|0}GetEnumerator(){return Bc(sn(this))}[Symbol.iterator](){return Ei(Oe(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Bc(sn(this))}get size(){return Pa(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 Z0(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;jn(i=>{t(i,i,r)},r)}}function sa(e,t){return new wu(e,t)}function ui(e){return e.comparer}function sn(e){return e.tree}function dy(e){return sa(e,void 0)}function fy(e,t){return sa(ui(e),bi(ui(e),t,sn(e)))}function Pa(e){return ty(sn(e))}function Z0(e,t){return G0(ui(e),t,sn(e))}function my(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)+tn(r)+631|0}}finally{Me(n)}return Math.abs(t)|0}function gl(e,t){return Z0(t,e)}function hy(e,t){return fy(t,e)}function py(e){return dy(e)}function gy(e,t){return sa(t,Y0(t,e))}function wy(e,t){return sa(t,Y0(t,e))}function Yi(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
|
|
5
5
|
`:" ")+(JSON.stringify(t,null,4)+"")}catch{return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?`
|
|
6
|
-
`:" ")}}function
|
|
7
|
-
Reason: `+t.fields[2]:t.tag===3?
|
|
6
|
+
`:" ")}}function yy(e,t){const n=t.tag===2?Yi(t.fields[0],t.fields[1],!0):t.tag===1?Yi(t.fields[0],t.fields[1],!1)+`
|
|
7
|
+
Reason: `+t.fields[2]:t.tag===3?Yi(t.fields[0],t.fields[1],!0):t.tag===4?Yi(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
|
|
8
8
|
`+(JSON.stringify(t.fields[1],null,4)+""):t.tag===7?`The following errors were found:
|
|
9
9
|
|
|
10
10
|
`+At(`
|
|
11
11
|
|
|
12
|
-
`,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:
|
|
12
|
+
`,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:Yi(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function K0(e,t,n){const r=t(e,n);if(r.tag===1){const i=r.fields[0];return new M(1,[yy(i[0],i[1])])}else return new M(0,[r.fields[0]])}function aa(e,t){try{return K0("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new M(1,["Given an invalid JSON: "+n.message]);throw n}}function X0(e,t){return typeof t=="string"?new M(0,[t]):new M(1,[[e,new oe(0,["a string",t])]])}function vy(e,t){if(typeof t=="string"){const n=t;return n.length===1?new M(0,[n[0]]):new M(1,[[e,new oe(0,["a single character string",t])]])}else return new M(1,[[e,new oe(0,["a char",t])]])}function by(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[Fw(t,new Ct(()=>r,i=>{r=i})),r],n[0]?new M(0,[n[1]]):new M(1,[[e,new oe(0,["a guid",t])]])}else return new M(1,[[e,new oe(0,["a guid",t])]])}function _y(e,t){return t==null?new M(0,[void 0]):new M(1,[[e,new oe(0,["null",t])]])}const Wc=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 oe(1,["a sbyte",i,"Value was either too large or too small for a sbyte"])]]):new M(1,[[n,new oe(1,["a sbyte",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[Di(r,511,!1,8,new Ct(()=>o,s=>{o=s|0})),o],i[0]?new M(0,[i[1]]):new M(1,[[n,new oe(0,["a sbyte",r])]])}else return new M(1,[[n,new oe(0,["a sbyte",r])]])},Gc=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 oe(1,["a byte",i,"Value was either too large or too small for a byte"])]]):new M(1,[[n,new oe(1,["a byte",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[Di(r,511,!0,8,new Ct(()=>o,s=>{o=s})),o],i[0]?new M(0,[i[1]]):new M(1,[[n,new oe(0,["a byte",r])]])}else return new M(1,[[n,new oe(0,["a byte",r])]])},zc=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 oe(1,["an int16",i,"Value was either too large or too small for an int16"])]]):new M(1,[[n,new oe(1,["an int16",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[Di(r,511,!1,16,new Ct(()=>o,s=>{o=s|0})),o],i[0]?new M(0,[i[1]]):new M(1,[[n,new oe(0,["an int16",r])]])}else return new M(1,[[n,new oe(0,["an int16",r])]])},qc=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 oe(1,["an uint16",i,"Value was either too large or too small for an uint16"])]]):new M(1,[[n,new oe(1,["an uint16",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[Di(r,511,!0,16,new Ct(()=>o,s=>{o=s})),o],i[0]?new M(0,[i[1]]):new M(1,[[n,new oe(0,["an uint16",r])]])}else return new M(1,[[n,new oe(0,["an uint16",r])]])},Yc=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 oe(1,["an int",i,"Value was either too large or too small for an int"])]]):new M(1,[[n,new oe(1,["an int",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[Di(r,511,!1,32,new Ct(()=>o,s=>{o=s|0})),o],i[0]?new M(0,[i[1]]):new M(1,[[n,new oe(0,["an int",r])]])}else return new M(1,[[n,new oe(0,["an int",r])]])},Zc=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 oe(1,["an uint32",i,"Value was either too large or too small for an uint32"])]]):new M(1,[[n,new oe(1,["an uint32",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[Di(r,511,!0,32,new Ct(()=>o,s=>{o=s})),o],i[0]?new M(0,[i[1]]):new M(1,[[n,new oe(0,["an uint32",r])]])}else return new M(1,[[n,new oe(0,["an uint32",r])]])};function xy(e,t){return typeof t=="boolean"?new M(0,[t]):new M(1,[[e,new oe(0,["a boolean",t])]])}function Cy(e,t){return typeof t=="number"?new M(0,[t]):new M(1,[[e,new oe(0,["a float",t])]])}function Sy(e,t){return typeof t=="number"?new M(0,[t]):new M(1,[[e,new oe(0,["a float32",t])]])}function Ey(e,t){if(typeof t=="string"){let n,r=I1();return n=[R1(t,new Ct(()=>r,i=>{r=i})),r],n[0]?new M(0,[O1(n[1])]):new M(1,[[e,new oe(0,["a datetime",t])]])}else return new M(1,[[e,new oe(0,["a datetime",t])]])}function Ay(e,t){if(typeof t=="string"){let n,r=Uw();return n=[Gw(t,new Ct(()=>r,i=>{r=i})),r],n[0]?new M(0,[n[1]]):new M(1,[[e,new oe(0,["a datetimeoffset",t])]])}else return new M(1,[[e,new oe(0,["a datetime",t])]])}function ky(e,t){if(typeof t=="string"){let n,r=0;return n=[ey(t,new Ct(()=>r,i=>{r=i})),r],n[0]?new M(0,[n[1]]):new M(1,[[e,new oe(0,["a timespan",t])]])}else return new M(1,[[e,new oe(0,["a timespan",t])]])}function Kc(e,t,n,r){let i;const o=n+".["+dn(e)+"]";if(Array.isArray(r)){const s=r;return e<s.length?t(o,pe(e,s)):new M(1,[[o,new oe(5,["a longer array. Need index `"+dn(e)+"` but there are only `"+(i=s.length,dn(i))+"` entries",r])]])}else return new M(1,[[o,new oe(0,["an array",r])]])}function Ny(e,t,n){return n==null?new M(0,[void 0]):Vn(ct,e(t,n))}function Xc(e,t,n){if(Array.isArray(n)){let r=-1;return Vn(ou,Xs((i,o)=>{if(r=r+1|0,i.tag===0){const s=e(t+".["+dn(r)+"]",o);return s.tag===0?new M(0,[Xt(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 oe(0,["a list",n])]])}function Ty(e,t,n){if(Array.isArray(n)){let r=-1;return Vn(jg,Xs((i,o)=>{if(r=r+1|0,i.tag===0){const s=e(t+".["+dn(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 oe(0,["a seq",n])]])}function Jc(e,t,n){if(Array.isArray(n)){let r=-1;const i=n;return Xs((o,s)=>{if(r=r+1|0,o.tag===0){const a=o.fields[0],l=e(t+".["+dn(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,[No(new Array(i.length),0,i.length,null)]),i)}else return new M(1,[[t,new oe(0,["an array",n])]])}function $y(e,t,n){return((i,o)=>{e:for(;;){const s=i,a=o;if(Te(s))return new M(1,[[t,new oe(7,[a])]]);{const l=K0(t,Ke(ue(s)),n);if(l.tag===1){i=De(s),o=$o(a,ce(l.fields[0]));continue e}else return new M(0,[l.fields[0]])}}})(e,at())}function My(e,t,n){return new M(0,[e])}function Qc(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 Iy(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 Dy(e,t){let n;const r=e;return n=i=>o=>Kc(0,r,i,o),i=>o=>Qc(cl(s=>{let a;const l=t;return a=u=>d=>Kc(1,l,u,d),u=>d=>Qc((f,p,m)=>My([s,f]),Ke(a),u,d)}),Ke(n),i,o)}function Ry(e){return li(e,{Compare:Et})}function Oy(e){return wy(e,{Compare:Et})}function Fy(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?c0((r,i)=>{const o=r[0];return i.tag===0?Vn(s=>Xt(s,i.fields[0]),r[1](t+"."+o)(n[o])):i},e,new M(0,[at()])):new M(1,[[t,new oe(0,["an object",n])]])}function Py(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?Mo((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,[Xt([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 oe(0,["an object",r])]])}function J0(e,t,n,r){let i;const o=t.length+e|0;if(o!==r.length)return new M(1,[[n,new oe(6,[(i=r.length|0,$r(Pn("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=$r(Pn("%s[%i]"))(n)(a),d=pe(a-e,t),f=pe(a,r);s=Vn(p=>Xt(p,l),d(u)(f))}return Vn(ou,s)}}function ed(e,t,n,r,i,o){const s=Ks(a=>ai(a)===r,e0(n));if(s!=null){const a=s,l=et(u=>an(e,t,!1,u[1]),i0(a));return Vn(u=>X1(a,dr(u)),l.length===0&&o.length<=1?new M(0,[at()]):J0(1,l,i,o))}else return new M(1,[[i,new oe(6,["Cannot find case "+r+" in "+Xe(n)])]])}function td(e,t,n,r){let i;const o=new Ct(Ae());let s;const a=Xe(r);s=a===""?e:O0(a,o,e);let l;if(r0(r)){const u=et(d=>[V0(t,ai(d)),an(s,t,!1,d[1])],po(r));l=d=>f=>Vn(p=>J1(r,dr(p)),Fy(u,d,f))}else if(n0(r))l=u=>d=>{if(typeof d=="string")return ed(s,t,r,d,u,[]);if(Array.isArray(d)){const f=d;return $w(p=>ed(s,t,r,p,u,f),X0(u+"[0]",pe(0,f)))}else return new M(1,[[u,new oe(0,["a string or array",d])]])};else if(n)l=u=>d=>new M(1,[[u,new oe(2,["an extra coder for "+Xe(r),d])]]);else throw new Error((i=Xe(r),$r(Pn(`Cannot generate auto decoder for %s. Please pass an extra decoder.
|
|
13
13
|
|
|
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
|
|
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 an(e,t,n,r){let i,o,s,a;const l=Xe(r),u=F0(l,e);if(u==null)if(Kf(r)){const d=an(e,t,!1,ko(r));return f=>p=>Jc(Ke(d),f,p)}else if(ru(r))switch(Xe(Qf(r))){case"System.SByte":return f=>p=>{const m=r,h=f,b=p,v=Wc(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:ln})?new M(0,[qr(m,_.toString())]):new M(1,[[h,new oe(1,[Xe(m),b,"Unkown value provided for the enum"])]])}};case"System.Byte":return f=>p=>{const m=r,h=f,b=p,v=Gc(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:ln})?new M(0,[qr(m,_.toString())]):new M(1,[[h,new oe(1,[Xe(m),b,"Unkown value provided for the enum"])]])}};case"System.Int16":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:ln})?new M(0,[qr(m,r1(_))]):new M(1,[[h,new oe(1,[Xe(m),b,"Unkown value provided for the enum"])]])}};case"System.UInt16":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];return Yr(_,zr(m),{Equals:(x,E)=>x===E,GetHashCode:ln})?new M(0,[qr(m,_.toString())]):new M(1,[[h,new oe(1,[Xe(m),b,"Unkown value provided for the enum"])]])}};case"System.Int32":return f=>p=>{const m=r,h=f,b=p,v=Yc(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:ln})?new M(0,[qr(m,dn(_))]):new M(1,[[h,new oe(1,[Xe(m),b,"Unkown value provided for the enum"])]])}};case"System.UInt32":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];return Yr(_,zr(m),{Equals:(x,E)=>x===E,GetHashCode:ln})?new M(0,[qr(m,_.toString())]):new M(1,[[h,new oe(1,[Xe(m),b,"Unkown value provided for the enum"])]])}};default:{const f=Xe(r),p=Wf(Pn(`Cannot generate auto decoder for %s.
|
|
15
15
|
Thoth.Json.Net only support the following enum types:
|
|
16
16
|
- sbyte
|
|
17
17
|
- byte
|
|
@@ -20,9 +20,9 @@ Thoth.Json.Net only support the following enum types:
|
|
|
20
20
|
- int
|
|
21
21
|
- uint32
|
|
22
22
|
If you can't use one of these types, please pass an extra decoder.
|
|
23
|
-
`))(f);return m=>p(m)}}else if(
|
|
23
|
+
`))(f);return m=>p(m)}}else if(Xf(r))if(iu(r)){const d=et(f=>an(e,t,!1,f),t0(r));return f=>p=>Array.isArray(p)?Vn(m=>Q1(dr(m)),J0(0,d,f,p)):new M(1,[[f,new oe(0,["an array",p])]])}else switch(Xe(Jf(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return i=an(e,t,!0,pe(0,qt(r))),f=>p=>Ny(Ke(i),f,p);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return o=an(e,t,!1,pe(0,qt(r))),f=>p=>Xc(Ke(o),f,p);case"System.Collections.Generic.IEnumerable`1[System.Object]":return s=an(e,t,!1,pe(0,qt(r))),f=>p=>Ty(Ke(s),f,p);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const f=an(e,t,!1,pe(0,qt(r))),p=an(e,t,!1,pe(1,qt(r)));let m;const h=g([b=>v=>Py(Ke(f),Ke(p),b,v),(a=Dy(Ke(f),Ke(p)),b=>v=>Xc(Ke(a),b,v))]);return m=b=>v=>$y(h,b,v),b=>v=>Iy(Ry,Ke(m),b,v)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const f=an(e,t,!1,pe(0,qt(r)));return p=>m=>{const h=Jc(Ke(f),p,m);return h.tag===0?new M(0,[Oy(h.fields[0])]):new M(1,[h.fields[0]])}}default:return td(e,t,n,r)}else switch(l){case"System.Boolean":return d=>f=>xy(d,f);case"Microsoft.FSharp.Core.Unit":return d=>f=>_y(d,f);case"System.String":return d=>f=>X0(d,f);case"System.Char":return d=>f=>vy(d,f);case"System.SByte":return Wc;case"System.Byte":return Gc;case"System.Int16":return zc;case"System.UInt16":return qc;case"System.Int32":return Yc;case"System.UInt32":return Zc;case"System.Double":return d=>f=>Cy(d,f);case"System.Single":return d=>f=>Sy(d,f);case"System.DateTime":return d=>f=>Ey(d,f);case"System.DateTimeOffset":return d=>f=>Ay(d,f);case"System.TimeSpan":return d=>f=>ky(d,f);case"System.Guid":return d=>f=>by(d,f);case"System.Object":return d=>f=>new M(0,[f]);default:return td(e,t,n,r)}else{const d=u;return f=>p=>d.contents(f)(p)}}function Ly(e){return mu({Compare:jr})}function la(e,t,n){const r=Je(t,new Hn(0,[]));return an(Ly(),r,!1,e)}class Vy extends Ce{constructor(t,n){super(),this.Name=t,this.Email=n}}function yu(){return Mt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.UserDto",[],Vy,()=>[["Name",Dt],["Email",kr(Dt)]])}class Q0 extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Profiles","Tax"]}}function em(){return Ao("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.ImportStageDto",[],Q0,()=>[[],[]])}class Hy extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Invite","RevokeInvite"]}}function jy(){return Ao("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.BenefitsRequestTypeDto",[],Hy,()=>[[],[]])}class By extends Ce{constructor(t,n,r,i){super(),this.User=t,this.ProfileCount=n|0,this.RequestType=r,this.RequestedAt=i}}function Uy(){return Mt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.BenefitsRequestInfoDto",[],By,()=>[["User",yu()],["ProfileCount",qe],["RequestType",jy()],["RequestedAt",tr("System.DateTime")]])}class Wy extends Ce{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 Gy(){return Mt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.RunningStageDto",[],Wy,()=>[["Stage",em()],["InputRowCount",qe],["StartTime",tr("System.DateTime")],["SucceededRowCount",kr(qe)],["FailedRowCount",kr(qe)],["RemainingRowCount",kr(qe)]])}class zy extends Ce{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 tm(){return Mt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.CompletedStageDto",[],zy,()=>[["Stage",em()],["InputRowCount",qe],["SucceededRowCount",qe],["FailedRowCount",qe],["StartTime",tr("System.DateTime")],["StopTime",tr("System.DateTime")]])}class qy extends Ce{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 Yy(){return Mt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.ActiveImportDto",[],qy,()=>[["ImportId",qe],["User",yu()],["Filename",Dt],["NumberOfRecords",qe],["CurrentStage",kr(Gy())],["CompletedStages",nr(tm())],["StartTime",tr("System.DateTime")]])}class Zy extends Ce{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 Ky(){return Mt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.PastImportDto",[],Zy,()=>[["ImportId",qe],["User",yu()],["Filename",Dt],["NumberOfRecords",qe],["CompletedStages",nr(tm())],["BenefitsRequests",nr(Uy())],["StartTime",tr("System.DateTime")],["StopTime",tr("System.DateTime")]])}class Xy extends Ce{constructor(t,n){super(),this.ActiveImport=t,this.ImportHistory=n}}function Jy(){return Mt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.AccountImportsDto",[],Xy,()=>[["ActiveImport",kr(Yy())],["ImportHistory",nr(Ky())]])}function Qy(e){return e}const nm=Ae();function Qo(e){return Array.from(e)}function e2(e){return Ys(e,"O")}function t2(e){return Jw(e)}function n2(){return Ae()}function r2(e){return Ys(e,"O")}function vu(e,t){return JSON.stringify(t,void 0,ct(e))}function i2(e){return t=>W1(_t(e,t),()=>nm)}function nd(e,t,n,r){let i;const o=new Ct(Ae());let s;const a=Xe(r);s=a===""?e:O0(a,o,e);let l;if(r0(r)){const u=et(d=>{const f=V0(t,ai(d)),p=kn(s,t,n,d[1]);return m=>h=>{const b=K1(m,d);return(!n||n&&b!=null)&&(h[f]=p(b)),h}},po(r));l=d=>Mo((f,p)=>p(d)(f),{},u)}else if(n0(r))l=u=>{const d=Z1(u,r),f=d[0],p=d[1],m=p.length|0;if(m===0)return ai(f);{const h=m|0,b=i0(f),v=No(new Array(h+1),0,h+1,null);$t(v,0,ai(f));for(let _=1;_<=h;_++){const x=kn(s,t,n,pe(_-1,b)[1]);$t(v,_,x(pe(_-1,p)))}return v}};else throw new Error((i=Xe(r),$r(Pn(`Cannot generate auto encoder for %s. Please pass an extra encoder.
|
|
24
24
|
|
|
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
|
|
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 kn(e,t,n,r){const i=Xe(r),o=F0(i,e);if(o==null)if(Kf(r)){const s=kn(e,t,n,ko(r));return a=>Qo(Le(s,a))}else if(ru(r))switch(Xe(Qf(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=Xe(r);return Wf(Pn(`Cannot generate auto encoder for %s.
|
|
26
26
|
Thoth.Json.Net only support the following enum types:
|
|
27
27
|
- sbyte
|
|
28
28
|
- byte
|
|
@@ -34,7 +34,7 @@ Thoth.Json.Net only support the following enum types:
|
|
|
34
34
|
If you can't use one of these types, please pass an extra encoder.
|
|
35
35
|
|
|
36
36
|
Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders
|
|
37
|
-
`))(a)}}else if(n0(r))if(su(r)){const s=et(a=>$n(e,t,n,a),s0(r));return a=>ts(Gg((l,u)=>he(l,s)(u),a))}else{const s=Xe(r0(r));if(s==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]"){const a=new a1(()=>c2($n(e,t,n,he(0,Kt(r)))));return l=>l==null?am: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(Xe(a)==="System.String"||Xe(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 l2;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 u2;case"System.DateTimeOffset":return s2;case"System.TimeSpan":return a2;case"System.Guid":return o2;case"System.Object":return s=>s;default:return ad(e,t,n,r)}else{const s=o;return a=>s.contents(a)}}function d2(e){return pu({Compare:Ur})}function xu(e,t,n,r){const i=Je(t,new Un(0,[])),o=Je(r,!0);return $n(d2(),i,o,e)}class Cu extends _e{constructor(t,n){super(),this.RowId=t|0,this.Data=n}}function lm(){return Mt("Import.Dto.Shared.WorkspaceApi.ImportRowDataDto",[],Cu,()=>[["RowId",qe],["Data",rr("Microsoft.FSharp.Collections.FSharpMap`2",[Dt,Dt])]])}let um=class extends _e{constructor(t,n){super(),this.IncludesEmploymentInfo=t,this.Data=n}};function f2(){return Mt("Import.Dto.Shared.WorkspaceApi.ValidateImportRequest.ImportDataDto",[],um,()=>[["IncludesEmploymentInfo",go],["Data",ir(lm())]])}class m2 extends _e{constructor(t,n,r){super(),this.Column=t,this.PropName=n,this.Message=r}}function h2(){return Mt("Import.Dto.Shared.WorkspaceApi.ValidateImportResponse.FieldErrorDto",[],m2,()=>[["Column",Dt],["PropName",Dt],["Message",Dt]])}class p2 extends _e{constructor(t,n){super(),this.RowId=t|0,this.FieldErrors=n}}function g2(){return Mt("Import.Dto.Shared.WorkspaceApi.ValidateImportResponse.RowValidationErrorDto",[],p2,()=>[["RowId",qe],["FieldErrors",ir(h2())]])}class w2 extends _e{constructor(t,n){super(),this.Errors=t,this.DuplicateEmailCount=n|0}}function y2(){return Mt("Import.Dto.Shared.WorkspaceApi.ValidateImportResponse.ValidationResultDto",[],w2,()=>[["Errors",ir(g2())],["DuplicateEmailCount",qe]])}class cm extends _e{constructor(t,n,r){super(),this.IncludesEmploymentInfo=t,this.InviteNow=n,this.Data=r}}function v2(){return Mt("Import.Dto.Shared.WorkspaceApi.StartImportRequest.ImportDataDto",[],cm,()=>[["IncludesEmploymentInfo",go],["InviteNow",go],["Data",ir(lm())]])}class b2 extends _e{constructor(t){super(),this.ImportId=t|0}}function _2(){return Mt("Import.Dto.Shared.WorkspaceApi.StartImportResponse.ImportCreatedDto",[],b2,()=>[["ImportId",qe]])}class x2 extends _e{constructor(t,n){super(),this.DuplicateEmailCount=t|0,this.OtherFailuresCount=n|0}}function C2(){return Mt("Import.Dto.Shared.WorkspaceApi.GetImportStatusResponse.FailuresInfoDto",[],x2,()=>[["DuplicateEmailCount",qe],["OtherFailuresCount",qe]])}class S2 extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["AllRowsImported","SingleDuplicateEmail","ManyFailures"]}}function E2(){return No("Import.Dto.Shared.WorkspaceApi.GetImportStatusResponse.DoneStatsDto",[],S2,()=>[[["count",qe]],[["rowId",qe]],[["Item",C2()]]])}class A2 extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["InProgress","Done"]}}function k2(){return No("Import.Dto.Shared.WorkspaceApi.GetImportStatusResponse.ImportStatusDto",[],A2,()=>[[],[["Item",E2()]]])}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 N2(){return No("Import.Dto.Shared.WorkspaceApi.AnalyticsEventDataDto",[],gn,()=>[[["Item",qn(["Section",Dt])]],[["Item",qn(["Success",go])]],[["Item",qn(["From",Dt])]],[["Item",qn(["From",Dt],["To",Dt])]],[["Item",qn(["Field",Dt])]],[["Item",qn(["RowCount",qe])]],[["Item",qn(["DuplicateCount",qe],["RowCount",qe],["SuccessCount",qe],["TotalFailedCount",qe])]],[],[["Item",qn(["ImportId",qe],["UsersInvited",go])]]])}class dm extends _e{constructor(t,n){super(),this.SessionId=t,this.Data=n}}function T2(){return Mt("Import.Dto.Shared.WorkspaceApi.PostAnalyticsRequestDto",[],dm,()=>[["SessionId",Tr(Dt)],["Data",N2()]])}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 $2(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(Ke(ca(i2(),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 M2(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(f2(),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(Ke(ca(y2(),new Un(1,[]))),a.responseText);return Z.Return(l)}else return Z.Return(new M(1,[`Failed to validate: ${a.responseText}`]))}})})}function I2(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(v2(),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(Ke(ca(_2(),new Un(1,[]))),a.responseText);return Z.Return(l)}else return Z.Return(new M(1,[`Failed to start import: ${a.responseText}`]))}})})}function D2(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(Ke(ca(k2(),new Un(1,[]))),s.responseText);return Z.Return(a)}else return Z.Return(new M(1,[`Failed to get import status: ${s.responseText}`]))}})})}function fm(e,t,n){return Z.Delay(()=>{let r;const i=new dm(t,n);return Z.Bind(Vo((r=Fo(new Di(1,[]),Oo(Lo(e)+"/analytics")),gu(new sa(1,[_u(0,xu(T2(),new Un(1,[]),void 0,void 0)(i))]),r))),o=>{const s=o;return s.statusCode===200||console.warn(ct("Failed to send analytics: "),s.responseText),Z.Zero()})})}function R2(){return at()}function Su(e){return At("/",e)}function O2(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+Su(t),n])}function mm(e,t,n){try{$e(n)}catch(r){e(["Error stopping subscription: "+Su(t),r])}}function F2(e,t,n,r){try{return[n,r(t)]}catch(i){e(["Error starting subscription: "+Su(n),i]);return}}function P2(e,t){yo(n=>{mm(e,n[0],n[1])},t)}function ld(e,t,n,r,i,o){return yo(s=>{O2(e,s)},n),yo(s=>{mm(e,s[0],s[1])},r),Io(i,Sg(s=>F2(e,t,s[0],s[1]),o))}function L2(){return[at(),_y({Compare:Et}),at()]}function V2(e,t,n,r,i){return yl(e,r)?[en(e,n),r,i]:[n,by(e,r),en([e,t],i)]}function H2(e){return gg((t,n)=>V2(t[0],t[1],n[0],n[1],n[2]),e,L2())}const j2=at();function ud(e,t){const n=xy(sr(s=>s[0],e),{Compare:Et}),r=H2(t),i=r[1],o=r[0];if(n.Equals(i))return[o,at(),e,at()];{const s=Cg(a=>yl(a[0],i),e);return[o,s[1],s[0],Rn(a=>!yl(a[0],n),r[2])]}}class B2{constructor(t,n,r){this.OnNext=t,this.OnError=n||(i=>{}),this.OnCompleted=r||(()=>{})}}function U2(e,t){t.Subscribe(new B2(e))}class W2{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 z2(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 G2=class extends W2{};function z2(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 q2{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 G2}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 Y2(e,t){console.error(ct(e),t)}function Z2(e,t){let n,r=new q2(e);r.AutoReset=!1,n=r,U2(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 hm(e){return vg(e)}function pm(e){return ue(e)}function gm(e,t,n,r){return ue(i=>{e(Z.Delay(()=>Z.Bind(cw(t(n)),o=>{const s=o;return s.tag===0&&i(r(s.fields[0])),Z.Zero()})))})}function wm(e){Z2(1,t=>{Ii(e)})}function K2(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 X2(e,t,n,r,i){const o=K2(t,n,r,i);return $(()=>jg(o,e))}function Eu(e,t,n){return X2(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 J2{constructor(t){this.state=new di(0,[$o(new Array(Ac(t,10)),0,Ac(t,10),null),0])}}function Q2(e){return new J2(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 ev(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,[tv(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 tv(e,t,n){return Array.from($(()=>H(Yg(t,n),$(()=>H(Zg(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 Wr(e,t,n){return new Au(e,t,r=>R2(),n,Ke(r=>{const i=Xn(n)(r);return o=>{i(o)}}),r=>{Y2(r[0],r[1])},[r=>!1,r=>{}])}function nv(e,t){return new Au(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function rv(e){return e.init}function iv(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,Ke(l),Xn(i)(s.subscribe),Ke(u),Ke(d),s.onError,o(s.termination))}function ov(e,t,n){let r;const i=n.init(t),o=i[0],s=n.subscribe(o),a=n.termination,l=Q2(10);let u=!1,d=o,f=j2,p=!1;const m=v=>{p||(ev(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))P2(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([Ir(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([Ir(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 sv(e,t){ov(Ke(n=>n),e,t)}function av(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 lv=av(_s);/**
|
|
37
|
+
`))(a)}}else if(Xf(r))if(iu(r)){const s=et(a=>kn(e,t,n,a),t0(r));return a=>Qo(Vg((l,u)=>pe(l,s)(u),a))}else{const s=Xe(Jf(r));if(s==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]"){const a=new t1(()=>i2(kn(e,t,n,pe(0,qt(r)))));return l=>l==null?nm: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=kn(e,t,n,pe(0,qt(r)));return l=>Qo(Le(a,l))}else if(s==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const a=pe(0,qt(r)),l=kn(e,t,n,pe(1,qt(r)));if(Xe(a)==="System.String"||Xe(a)==="System.Guid")return u=>Mo((d,f)=>{const p=f;return d[p[0]]=l(p[1]),d},{},u);{let u;return u=kn(e,t,n,a),f=>Qo(Le(p=>{const m=p;return[u(m[0]),l(m[1])]},f))}}else return nd(e,t,n,r)}else switch(i){case"System.Boolean":return s=>s;case"Microsoft.FSharp.Core.Unit":return n2;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 e2;case"System.TimeSpan":return t2;case"System.Guid":return Qy;case"System.Object":return s=>s;default:return nd(e,t,n,r)}else{const s=o;return a=>s.contents(a)}}function o2(e){return mu({Compare:jr})}function bu(e,t,n,r){const i=Je(t,new Hn(0,[])),o=Je(r,!0);return kn(o2(),i,o,e)}class _u extends Ce{constructor(t,n){super(),this.RowId=t|0,this.Data=n}}function rm(){return Mt("Import.Dto.Shared.WorkspaceApi.ImportRowDataDto",[],_u,()=>[["RowId",qe],["Data",tr("Microsoft.FSharp.Collections.FSharpMap`2",[Dt,Dt])]])}let im=class extends Ce{constructor(t,n){super(),this.IncludesEmploymentInfo=t,this.Data=n}};function s2(){return Mt("Import.Dto.Shared.WorkspaceApi.ValidateImportRequest.ImportDataDto",[],im,()=>[["IncludesEmploymentInfo",ho],["Data",nr(rm())]])}class a2 extends Ce{constructor(t,n,r){super(),this.Column=t,this.PropName=n,this.Message=r}}function l2(){return Mt("Import.Dto.Shared.WorkspaceApi.ValidateImportResponse.FieldErrorDto",[],a2,()=>[["Column",Dt],["PropName",Dt],["Message",Dt]])}class u2 extends Ce{constructor(t,n){super(),this.RowId=t|0,this.FieldErrors=n}}function c2(){return Mt("Import.Dto.Shared.WorkspaceApi.ValidateImportResponse.RowValidationErrorDto",[],u2,()=>[["RowId",qe],["FieldErrors",nr(l2())]])}class d2 extends Ce{constructor(t,n){super(),this.Errors=t,this.DuplicateEmailCount=n|0}}function f2(){return Mt("Import.Dto.Shared.WorkspaceApi.ValidateImportResponse.ValidationResultDto",[],d2,()=>[["Errors",nr(c2())],["DuplicateEmailCount",qe]])}class om extends Ce{constructor(t,n,r){super(),this.IncludesEmploymentInfo=t,this.InviteNow=n,this.Data=r}}function m2(){return Mt("Import.Dto.Shared.WorkspaceApi.StartImportRequest.ImportDataDto",[],om,()=>[["IncludesEmploymentInfo",ho],["InviteNow",ho],["Data",nr(rm())]])}class h2 extends Ce{constructor(t){super(),this.ImportId=t|0}}function p2(){return Mt("Import.Dto.Shared.WorkspaceApi.StartImportResponse.ImportCreatedDto",[],h2,()=>[["ImportId",qe]])}class g2 extends Ce{constructor(t,n){super(),this.DuplicateEmailCount=t|0,this.OtherFailuresCount=n|0}}function w2(){return Mt("Import.Dto.Shared.WorkspaceApi.GetImportStatusResponse.FailuresInfoDto",[],g2,()=>[["DuplicateEmailCount",qe],["OtherFailuresCount",qe]])}class y2 extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["AllRowsImported","SingleDuplicateEmail","ManyFailures"]}}function v2(){return Ao("Import.Dto.Shared.WorkspaceApi.GetImportStatusResponse.DoneStatsDto",[],y2,()=>[[["count",qe]],[["rowId",qe]],[["Item",w2()]]])}class b2 extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["InProgress","Done"]}}function _2(){return Ao("Import.Dto.Shared.WorkspaceApi.GetImportStatusResponse.ImportStatusDto",[],b2,()=>[[],[["Item",v2()]]])}class fn extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SectionOpened","UserImportFileUploaded","UserImportCanceled","UserImportProgressed","UserImportFieldPreviewed","UserImportValidationRequested","UserImportValidationCompleted","UserImportErrorReportDownloaded","UserImportRequested"]}}function x2(){return Ao("Import.Dto.Shared.WorkspaceApi.AnalyticsEventDataDto",[],fn,()=>[[["Item",Gn(["Section",Dt])]],[["Item",Gn(["Success",ho])]],[["Item",Gn(["From",Dt])]],[["Item",Gn(["From",Dt],["To",Dt])]],[["Item",Gn(["Field",Dt])]],[["Item",Gn(["RowCount",qe])]],[["Item",Gn(["DuplicateCount",qe],["RowCount",qe],["SuccessCount",qe],["TotalFailedCount",qe])]],[],[["Item",Gn(["ImportId",qe],["UsersInvited",ho])]]])}class sm extends Ce{constructor(t,n){super(),this.SessionId=t,this.Data=n}}function C2(){return Mt("Import.Dto.Shared.WorkspaceApi.PostAnalyticsRequestDto",[],sm,()=>[["SessionId",kr(Dt)],["Data",x2()]])}function Fo(e){return`${e}/import/workspace/v1.0`}function Po(e){return Y.Delay(()=>Y.Bind($c(e),t=>{const n=t;return n.statusCode===429||n.statusCode>=500?Y.ReturnFrom($c(e)):Y.Return(n)}))}function S2(e,t){return Y.Delay(()=>{let n;const r=Po(Ro(new Ii(0,[]),Do(Fo(e)+"/accounts/current/imports")));return n=Y.Bind(r,i=>Y.Return(new M(0,[i]))),Y.Bind(n,i=>{const o=i;if(o.tag===1)return Y.Return(new M(1,[o.fields[0]]));{const s=o.fields[0];switch(s.statusCode|0){case 200:{let l;const u=aa(Ke(la(Jy(),new Hn(1,[]))),s.responseText);return l=u.tag===1?new M(1,[u.fields[0]]):new M(0,[u.fields[0]]),Y.Return(l)}case 404:return Y.Return(new M(0,[void 0]));default:return Y.Return(new M(1,["Failed to get account imports"]))}}})})}function E2(e,t){return Y.Delay(()=>{let n,r;const i=Po((n=Ro(new Ii(1,[]),Do(Fo(e)+"/accounts/current/import/validate")),hu(new ia(1,[vu(0,bu(s2(),new Hn(1,[]),void 0,void 0)(t))]),n)));return r=Y.Bind(i,o=>Y.Return(new M(0,[o]))),Y.Bind(r,o=>{const s=o;if(s.tag===1)return Y.Return(new M(1,[s.fields[0]]));{const a=s.fields[0];if(a.statusCode===200){const l=aa(Ke(la(f2(),new Hn(1,[]))),a.responseText);return Y.Return(l)}else return Y.Return(new M(1,[`Failed to validate: ${a.responseText}`]))}})})}function A2(e,t){return Y.Delay(()=>{let n,r;const i=Po((n=Ro(new Ii(1,[]),Do(Fo(e)+"/accounts/current/import/start")),hu(new ia(1,[vu(0,bu(m2(),new Hn(1,[]),void 0,void 0)(t))]),n)));return r=Y.Bind(i,o=>Y.Return(new M(0,[o]))),Y.Bind(r,o=>{const s=o;if(s.tag===1)return Y.Return(new M(1,[s.fields[0]]));{const a=s.fields[0];if(a.statusCode===201){const l=aa(Ke(la(p2(),new Hn(1,[]))),a.responseText);return Y.Return(l)}else return Y.Return(new M(1,[`Failed to start import: ${a.responseText}`]))}})})}function k2(e,t){return Y.Delay(()=>{let n;const r=Po(Ro(new Ii(0,[]),Do(Fo(e)+`/accounts/current/import/${t}/status`)));return n=Y.Bind(r,i=>Y.Return(new M(0,[i]))),Y.Bind(n,i=>{const o=i;if(o.tag===1)return Y.Return(new M(1,[o.fields[0]]));{const s=o.fields[0];if(s.statusCode===200){const a=aa(Ke(la(_2(),new Hn(1,[]))),s.responseText);return Y.Return(a)}else return Y.Return(new M(1,[`Failed to get import status: ${s.responseText}`]))}})})}function am(e,t,n){return Y.Delay(()=>{let r;const i=new sm(t,n);return Y.Bind(Po((r=Ro(new Ii(1,[]),Do(Fo(e)+"/analytics")),hu(new ia(1,[vu(0,bu(C2(),new Hn(1,[]),void 0,void 0)(i))]),r))),o=>{const s=o;return s.statusCode===200||console.warn(ct("Failed to send analytics: "),s.responseText),Y.Zero()})})}function N2(){return at()}function xu(e){return At("/",e)}function T2(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+xu(t),n])}function lm(e,t,n){try{Me(n)}catch(r){e(["Error stopping subscription: "+xu(t),r])}}function $2(e,t,n,r){try{return[n,r(t)]}catch(i){e(["Error starting subscription: "+xu(n),i]);return}}function M2(e,t){go(n=>{lm(e,n[0],n[1])},t)}function rd(e,t,n,r,i,o){return go(s=>{T2(e,s)},n),go(s=>{lm(e,s[0],s[1])},r),$o(i,yg(s=>$2(e,t,s[0],s[1]),o))}function I2(){return[at(),py({Compare:Et}),at()]}function D2(e,t,n,r,i){return gl(e,r)?[Xt(e,n),r,i]:[n,hy(e,r),Xt([e,t],i)]}function R2(e){return cg((t,n)=>D2(t[0],t[1],n[0],n[1],n[2]),e,I2())}const O2=at();function id(e,t){const n=gy(ir(s=>s[0],e),{Compare:Et}),r=R2(t),i=r[1],o=r[0];if(n.Equals(i))return[o,at(),e,at()];{const s=wg(a=>gl(a[0],i),e);return[o,s[1],s[0],Mn(a=>!gl(a[0],n),r[2])]}}class F2{constructor(t,n,r){this.OnNext=t,this.OnError=n||(i=>{}),this.OnCompleted=r||(()=>{})}}function P2(e,t){t.Subscribe(new F2(e))}class L2{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 H2(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 V2=class extends L2{};function H2(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 j2{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 V2}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 B2(e,t){console.error(ct(e),t)}function U2(e,t){let n,r=new j2(e);r.AutoReset=!1,n=r,P2(t,n.Elapsed()),n.Enabled=!0,n.Start()}function od(e,t,n){go(r=>{try{r(t)}catch(i){e(i)}},n)}function ve(){return at()}function um(e){return mg(e)}function cm(e){return ce(e)}function dm(e,t,n,r){return ce(i=>{e(Y.Delay(()=>Y.Bind(iw(t(n)),o=>{const s=o;return s.tag===0&&i(r(s.fields[0])),Y.Zero()})))})}function fm(e){U2(1,t=>{Mi(e)})}function W2(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 G2(e,t,n,r,i){const o=W2(t,n,r,i);return $(()=>Og(o,e))}function Cu(e,t,n){return G2(e,t,n,0,(r,i)=>r+i)}class ci extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class z2{constructor(t){this.state=new ci(0,[No(new Array(_c(t,10)),0,_c(t,10),null),0])}}function q2(e){return new z2(e)}function sd(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 ci(0,[i,n]):e.state=new ci(1,[i,n,o]),ct(pe(r,i))}else return}function Y2(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 ci(1,[Z2(e,i,o),o.length,0]):e.state=new ci(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 ci(1,[i,o,r])}}function Z2(e,t,n){return Array.from($(()=>H(Bg(t,n),$(()=>H(Ug(t,n),$(()=>ta(r=>k(Ae()),Cu(0,1,n.length))))))))}class Su extends Ce{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 Br(e,t,n){return new Su(e,t,r=>N2(),n,Ke(r=>{const i=Zn(n)(r);return o=>{i(o)}}),r=>{B2(r[0],r[1])},[r=>!1,r=>{}])}function K2(e,t){return new Su(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function X2(e){return e.init}function J2(e,t,n,r,i,o,s){const a=Zn(e)(s.init),l=Ma(t)(Zn(s.update)),u=Ma(n)(Zn(s.view)),d=Ma(r)(Zn(s.setState));return new Su(a,Ke(l),Zn(i)(s.subscribe),Ke(u),Ke(d),s.onError,o(s.termination))}function Q2(e,t,n){let r;const i=n.init(t),o=i[0],s=n.subscribe(o),a=n.termination,l=q2(10);let u=!1,d=o,f=O2,p=!1;const m=v=>{p||(Y2(l,v),u||(u=!0,b(),u=!1))},h=Zn(e)(m),b=()=>{let v,_=sd(l);for(;!p&&_!=null;){const x=V(_);if(a[0](x))M2(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),od(O=>{n.onError([$r(Pn("Error handling the message: %A"))(x),O])},h,E[1]),d=T,f=(v=id(f,I),rd(n.onError,h,v[0],v[1],v[2],v[3])),_=sd(l)}}};u=!0,n.setState(o,h),od(v=>{n.onError([$r(Pn("Error intitializing:")),v])},h,i[1]),f=(r=id(f,s),rd(n.onError,h,r[0],r[1],r[2],r[3])),b(),u=!1}function ev(e,t){Q2(Ke(n=>n),e,t)}function tv(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 La={exports:{}},Va={};const nv=tv(vs);/**
|
|
38
38
|
* @license React
|
|
39
39
|
* use-sync-external-store-shim.production.min.js
|
|
40
40
|
*
|
|
@@ -42,26 +42,26 @@ Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation
|
|
|
42
42
|
*
|
|
43
43
|
* This source code is licensed under the MIT license found in the
|
|
44
44
|
* LICENSE file in the root directory of this source tree.
|
|
45
|
-
*/var fd;function uv(){if(fd)return ja;fd=1;var e=lv;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 cv(){return md||(md=1,Ha.exports=uv()),Ha.exports}var dv=cv();class fv{constructor(t,n,r){this.arg=n,this.dependencies=r;const i=t(),o=[];this.finalDispatch=void 0;let s;const a=rv(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 sv(this.arg,nv((m,h)=>{const b=this.state;this.finalDispatch=h,this.state=[m,b[1],!0,o],m!==b[0]&&d()},iv((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),Ke(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 fv(e,t,n)}function mv(e){return e.state}function hv(e){return e.subscribe}function pv(e,t,n){return te(e.arg,t)?!te(e.dependencies,n):!0}function Gr(e,t,n){const r=be(()=>hd(e,t,n)),i=r[0];pv(i,t,n)&&r[1](hd(e,t,n));const o=dv.useSyncExternalStore(hv(i),()=>mv(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)}w1(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 gv(e){return e.tag===1?new vl(0,[]):new vl(1,[])}function wv(e,t,n){return e.tag===1?Ag(t,n,{Compare:Et}):Eg(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 pm(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"]}},ym=class extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["GetAccountImports"]}};function yv(){return[new ms(new hs(0,[])),ue(e=>{e(new ym(new da(0,[void 0])))})]}function vv(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,[])),gm(r=>{wm(r)},e,void 0,r=>new ym(new da(1,[r])))]}class bv 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 _v(e,t){const n=t.toLocaleLowerCase();return e.Name.toLocaleLowerCase().indexOf(n)>=0?!0:Je(_t(r=>r.toLocaleLowerCase().indexOf(n)>=0,e.Email),!1)}function xv(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,Je(_t(n=>`Added ${n.SucceededRowCount} users via Csv`,w0(n=>te(n.Stage,new im(0,[])),t.CompletedStages)),`Processed ${t.NumberOfRecords} records`)),e.ImportHistory))}function Cv(e){return new bv(Je(_t(xv,e),at()))}class gd extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Error","TableData"]}}class Sv 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 Ev extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["SortedList"]}}class Av extends _e{constructor(t,n){super(),this.SortInfo=t,this.SortDirectionToggledHandler=n}}class vm extends _e{constructor(t,n){super(),this.Column=t,this.Direction=n}}class kv 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 Nv 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 Tv(e){return e.tag===1?bm(e.fields[0].Data):Cm()}function $v(e){return e.tag===1?Oi(e.fields[0].Data):new Is(1,[])}function Mv(e){const t=ku(Cm(),e);return new Ho([Em(tn(e),20),t])}function jo(e){return e.fields[0][1]}function bm(e){return xm(jo(e))}function Iv(e){return Nu(jo(e))}function Oi(e){return e.fields[0][0]}function Dv(e){const t=Oi(e);if(t.tag===0){const n=t.fields[0],r=v0(n.FirstRowIndex,Iv(e));return b0(Gv(n),r)}else return at()}function _m(e,t){const n=ku(bm(e),t);return new Ho([Bv(Oi(e),tn(Nu(n))),n])}function Rv(e){return new Ho([Oi(e),Pv(jo(e))])}function Ov(e){return new Ho([jv(Oi(e)),jo(e)])}function Fv(e){return new Ho([Hv(Oi(e)),jo(e)])}function ku(e,t){return new Ev([e,wv(e.Direction,n=>n.Timestamp,t)])}function Nu(e){return e.fields[0][1]}function xm(e){return e.fields[0][0]}function Pv(e){return ku(Lv(xm(e)),Nu(e))}function Cm(){return new vm(new kv,new vl(0,[]))}function Lv(e){return new vm(e.Column,gv(e.Direction))}function Sm(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,Sm(e,t))|0,i=(r-1)*t|0;return new Is(0,[new Nv(r,i,kc(i+t-1,e-1),e,t)])}}function Em(e,t){return fa(e,t,1)}function Vv(e){if(e.tag===0){const t=e.fields[0];return Sm(t.TotalRecordsNumber,t.PageSize)|0}else return 0}function Am(e){return e.tag===0?e.fields[0].CurrentPage<Vv(e):!1}function km(e){return e.tag===0?e.fields[0].CurrentPage>1:!1}function Hv(e){const t=km(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 jv(e){const t=Am(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 Bv(e,t){return t<=0?new Is(1,[]):e.tag===0?fa(t,20,e.fields[0].CurrentPage):Em(t,20)}function Uv(e){return e.FirstRowIndex+1}function Wv(e){return e.LastRowIndex+1}function Gv(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 zv(e){if(e.tag===1)return Nm(e.fields[0])}function qv(e){return e.tag===0}function Yv(e){return e.tag===1?new gd(1,[tb(e.fields[0])]):new gd(0,[])}function Nm(e){const t=e.View;if(t.tag===1)return t.fields[0]}function Zv(e){return Nm(e)!=null}function Kv(e,t){return new lr(1,[new Fi(e.ImportHistory,new Tu(1,[t]),_m(e.PaginatedList,Rn(n=>_v(n.User,t),e.ImportHistory.UserActivities)))])}function Xv(e){return new lr(1,[new Fi(e.ImportHistory,new Tu(0,[]),_m(e.PaginatedList,e.ImportHistory.UserActivities))])}function Jv(e){return new lr(1,[new Fi(e.ImportHistory,e.View,Rv(e.PaginatedList))])}function Qv(e){return new lr(1,[new Fi(e.ImportHistory,e.View,Ov(e.PaginatedList))])}function eb(e){return new lr(1,[new Fi(e.ImportHistory,e.View,Fv(e.PaginatedList))])}function tb(e){return new Sv(e.PaginatedList,Zv(e))}let fi=class extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ApplyFilter","ClearFilter","ToggleSortDirection","NextPage","PrevPage"]}};function nb(e){let t;return[e.tag===1?new lr(0,[]):(t=e.fields[0],new lr(1,[new Fi(t,new Tu(0,[]),Mv(t.UserActivities))])),we()]}function Tm(e,t){return e.tag===1?t(e.fields[0]):[new lr(0,[]),we()]}function rb(e,t){return Tm(e,n=>[t(n),we()])}function ib(e,t){const n=r=>rb(t,r);switch(e.tag){case 1:return n(Xv);case 2:return n(Jv);case 3:return n(Qv);case 4:return n(eb);default:{const r=e.fields[0];return Tm(t,i=>ru(r)?[t,ue(o=>{o(new fi(1,[]))})]:[Kv(i,r),we()])}}}function ob(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 sb(){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=[ob(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 ab(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 lb(e){let t,n;const r=Je(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=[ab(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 ub(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 cb(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(ub,{width:10,height:7})],["children",y.Children.toArray(Array.from(t))])])))}function db(e){const t=e.toggleSortDirection,n=e.props;return c(cb,{sortDirection:n.Direction,sortDirectionChangeHandler:t})}function fb(e){let t,n,r,i;const o=c(db,{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 Fr(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 En(e){Ft(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 mb(e,t){Ft(2,arguments);var n=En(e).getTime(),r=Fr(t);return new Date(n+r)}var hb={};function ma(){return hb}function pb(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 gb(e){return Ft(1,arguments),e instanceof Date||Rs(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function wb(e){if(Ft(1,arguments),!gb(e)&&typeof e!="number")return!1;var t=En(e);return!isNaN(Number(t))}function yb(e,t){Ft(2,arguments);var n=Fr(t);return mb(e,-n)}var vb=864e5;function bb(e){Ft(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/vb)+1}function Os(e){Ft(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 $m(e){Ft(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 _b(e){Ft(1,arguments);var t=$m(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=Os(n);return r}var xb=6048e5;function Cb(e){Ft(1,arguments);var t=En(e),n=Os(t).getTime()-_b(t).getTime();return Math.round(n/xb)+1}function Fs(e,t){var n,r,i,o,s,a,l,u;Ft(1,arguments);var d=ma(),f=Fr((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 Mm(e,t){var n,r,i,o,s,a,l,u;Ft(1,arguments);var d=En(e),f=d.getUTCFullYear(),p=ma(),m=Fr((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 Sb(e,t){var n,r,i,o,s,a,l,u;Ft(1,arguments);var d=ma(),f=Fr((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=Mm(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 Eb=6048e5;function Ab(e,t){Ft(1,arguments);var n=En(e),r=Fs(n,t).getTime()-Sb(n,t).getTime();return Math.round(r/Eb)+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)}},Kr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},kb={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=Mm(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=$m(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=Ab(t,i);return n==="wo"?r.ordinalNumber(o,{unit:"week"}):He(o,n.length)},I:function(t,n,r){var i=Cb(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=bb(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=Kr.noon:i===0?o=Kr.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=Kr.evening:i>=12?o=Kr.afternoon:i>=4?o=Kr.morning:o=Kr.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"})}},Im=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"})}},Nb=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}}",Im(o,n))},Tb={p:Im,P:Nb},$b=["D","DD"],Mb=["YY","YYYY"];function Ib(e){return $b.indexOf(e)!==-1}function Db(e){return Mb.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 Rb={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"}},Ob=function(t,n,r){var i,o=Rb[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 Fb={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Pb={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Lb={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Vb={date:Ba({formats:Fb,defaultWidth:"full"}),time:Ba({formats:Pb,defaultWidth:"full"}),dateTime:Ba({formats:Lb,defaultWidth:"full"})},Hb={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},jb=function(t,n,r,i){return Hb[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 Bb={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ub={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Wb={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"]},Gb={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"]},zb={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"}},qb={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"}},Yb=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"},Zb={ordinalNumber:Yb,era:Xi({values:Bb,defaultWidth:"wide"}),quarter:Xi({values:Ub,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Xi({values:Wb,defaultWidth:"wide"}),day:Xi({values:Gb,defaultWidth:"wide"}),dayPeriod:Xi({values:zb,defaultWidth:"wide",formattingValues:qb,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)?Xb(a,function(f){return f.test(s)}):Kb(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 Kb(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function Xb(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function Jb(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 Qb=/^(\d+)(th|st|nd|rd)?/i,e_=/\d+/i,t_={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},n_={any:[/^b/i,/^(a|c)/i]},r_={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},i_={any:[/1/i,/2/i,/3/i,/4/i]},o_={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},s_={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]},a_={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},l_={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]},u_={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},c_={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}},d_={ordinalNumber:Jb({matchPattern:Qb,parsePattern:e_,valueCallback:function(t){return parseInt(t,10)}}),era:Ji({matchPatterns:t_,defaultMatchWidth:"wide",parsePatterns:n_,defaultParseWidth:"any"}),quarter:Ji({matchPatterns:r_,defaultMatchWidth:"wide",parsePatterns:i_,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Ji({matchPatterns:o_,defaultMatchWidth:"wide",parsePatterns:s_,defaultParseWidth:"any"}),day:Ji({matchPatterns:a_,defaultMatchWidth:"wide",parsePatterns:l_,defaultParseWidth:"any"}),dayPeriod:Ji({matchPatterns:u_,defaultMatchWidth:"any",parsePatterns:c_,defaultParseWidth:"any"})},f_={code:"en-US",formatDistance:Ob,formatLong:Vb,formatRelative:jb,localize:Zb,match:d_,options:{weekStartsOn:0,firstWeekContainsDate:1}},m_=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,h_=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,p_=/^'([^]*?)'?$/,g_=/''/g,w_=/[a-zA-Z]/;function Dm(e,t,n){var r,i,o,s,a,l,u,d,f,p,m,h,b,v;Ft(2,arguments);var _=String(t),x=ma(),E=(r=(i=void 0)!==null&&i!==void 0?i:x.locale)!==null&&r!==void 0?r:f_,T=Fr((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=Fr((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(!wb(O))throw new RangeError("Invalid time value");var F=pb(O),S=yb(O,F),C={firstWeekContainsDate:T,weekStartsOn:I,locale:E,_originalDate:O},A=_.match(h_).map(function(N){var D=N[0];if(D==="p"||D==="P"){var P=Tb[D];return P(N,E.formatLong)}return N}).join("").match(m_).map(function(N){if(N==="''")return"'";var D=N[0];if(D==="'")return y_(N);var P=kb[D];if(P)return Db(N)&&_d(N,t,String(e)),Ib(N)&&_d(N,t,String(e)),P(S,N,E.localize,C);if(D.match(w_))throw new RangeError("Format string contains an unescaped latin alphabet character `"+D+"`");return N}).join("");return A}function y_(e){var t=e.match(p_);return t?t[1].replace(g_,"'"):e}function v_(e){return Dm(e,"d MMM, yyyy")}function b_(e){return Dm(e,"h:mm a")}function __(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:v_(e.Timestamp)})],["children",y.Children.toArray(Array.from(i))])]))),c("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:b_(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 x_(e){const t=sr(n=>c(__,n),e.Data);return c("div",{className:"self-stretch flex flex-col justify-start items-stretch",children:y.Children.toArray(Array.from(t))})}function C_(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 S_(){let e;return c("div",w(g([["className","w-[120px] h-[120px] flex flex-col justify-center items-center"],(e=[c(C_,{width:120,height:120})],["children",y.Children.toArray(Array.from(e))])])))}function E_(){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(S_,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 A_(e){return{Data:Dv(e.Data)}}function k_(e){let t;const n=e.props,r=n.tag===1?c(x_,A_(n.fields[0])):c(E_,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 N_(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(Uv(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(Wv(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",!km(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",!Am(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 T_(e,t){e(t.tag===0?new bl(2,[]):new bl(1,[]))}function $_(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(fb,new Av(Tv(i),()=>{r(new bl(0,[]))})),c(k_,{props:i}),c(N_,{pagingInfo:$v(i),pageChangedHandler:o=>{T_(r,o)}})],["children",y.Children.toArray(Array.from(n))])])))}function M_(e,t){t.tag===0?e(new fi(0,[t.fields[0]])):e(new fi(1,[]))}function I_(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=nb(r);i=Gr(()=>Wr(()=>o,ib,(d,f)=>{}),void 0,void 0);const s=i[0],a=i[1];let l;const u=zv(s);return l={ActionHandler:d=>{M_(a,d)},Disabled:qv(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(sb,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(lb,l),c($_,{props:Yv(s),actionHandler:d=>{I_(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 D_(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=>D_(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 R_(){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 O_(e){oa(()=>{Ii(fm(e.backendUrl,void 0,new gn(0,[{Section:"user past activities"}])))});let t;const n=Gr(()=>Wr(yv,(i,o)=>vv(()=>$2(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,[Cv(n.fields[0])])}):c(R_,null);const r=[c("style",{children:[Ql]}),t];return c(Ye,{},...r)}function F_(){Hl(e=>c(O_,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 P_(e){return t=>{let n,r;return n=_l("/",t),n!=null?(r=n,r):"/"+t}}function L_(e,t){return P_()(At("/",sr(n=>n.indexOf("?")>=0||n.startsWith("#")||n.startsWith("/")?n:encodeURIComponent(n),e)))}function Rm(e,t,n){history.pushState(void 0,"",L_(e));const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)}function V_(e,t){return bg(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(!Rr((o,s)=>o===s,i,Se())&&i.length===1){const o=he(0,i);return ue(decodeURIComponent(o))}else if(!Rr((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?Z1(e,1,e.length-1):t===1&&(Ad("#",e)!=null||Ad("#/",e)!=null)?"":e,["/"],void 0,0)))}function H_(e,t,n){return t(V_(e===2?window.location.pathname+window.location.search:window.location.hash,e))}pw(e=>{const t=$0(r=>{const i=Je(e.onUrlChanged,o=>{});H_(Je(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 j_{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 B_(e,t){return $(()=>{const n=new q0([],t);return na(r=>U0(r,n),e)})}function U_(e,t,n){return $(()=>{const r=new q0(e,n);return na(i=>U0(i,r),t)})}function W_(e,t,n){return $(()=>{const r=new j_([],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):(Lw(r,a,[s]),i.push(a))}}finally{$e(o)}return Le(s=>[s,ar(r,s)],i)})}function Om(e,t){return jn(B_(e,t))}function Fm(e,t,n){return jn(U_(e,t,n))}function G_(e,t,n){return jn(Le(r=>[r[0],jn(r[1])],W_(e,t,n)))}class z_ extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvColumnIndex"]}}class q_ extends _e{constructor(t,n,r,i){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=i}}class Y_ 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 Z_ 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 Pm(e){switch(e.tag){case 1:return"Part-time";case 2:return"Casual";case 3:return"Labour hire";default:return"Full-time"}}function K_(e){switch(e.tag){case 1:return"PartTime";case 2:return"Casual";case 3:return"LabourHire";default:return"FullTime"}}function X_(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 J_ extends _e{constructor(t,n){super(),this.Head=t,this.Tail=n}}function Q_(e){return ui(et(t=>[t[1].fields[0],K_(t[0])],f0([e.Head],e.Tail)),{Compare:Ur})}class ex extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisColumn"]}}class Xr 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 tx extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvColumnName"]}}class nx extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvDataRow"]}}class Lm extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvDataRows"]}}function rx(e,t){let n;return new ex(et(r=>new Z_(r),fg(r=>r,Om((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:Ur})))}function ix(e){return e.fields[0].length}class Vm extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FileName"]}}class ox 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 Hm(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 sx(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 ax 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 lx(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 ux(e,t){return new ax(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 jm(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 ni(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=>ux(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 q_(l,u,a,o),_t(h=>new Y_(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=jm(n,l[0],l[1]),$u(e,(o=n.Preview,o!=null&&te(o[0],r)?(s=o[0],[s,ni(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=jm(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 Bm(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 cx=e=>t=>Bm(e,t);function dx(e,t){const n=Bm(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 fx(e,t){let n,r,i,o,s,a,l,u,d;const f=p=>lx(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 mx(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:sx(N)}]));let v,_,x,E,T,I,O,F,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,F=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,[]),ni(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,[]),ni(F,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,[]),ni(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,[]),ni(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,[]),ni(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 Um=typeof document<"u"?Q.useLayoutEffect:()=>{};function hx(e){const t=ie(null);return Um(()=>{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 px(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 gx(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 Wm(e){let t=null;return()=>(t==null&&(t=e()),t)}const wx=Wm(function(){return gx(/^Mac/i)}),yx=Wm(function(){return px(/Android/i)});function vx(e){return e.mozInputSource===0&&e.isTrusted?!0:yx()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}class bx{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 Gm(e){let t=ie({isFocused:!1,observer:null});Um(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=hx(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 bx("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 _x(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=Gm(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,Pr=!1,Cl=!1;const xx={Tab:!0,Escape:!0};function Mu(e,t){for(let n of xl)n(e,t)}function Cx(e){return!(e.metaKey||!wx()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Ps(e){Pr=!0,Cx(e)&&(Wo="keyboard",Mu("keyboard",e))}function nn(e){Wo="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Pr=!0,Mu("pointer",e))}function zm(e){vx(e)&&(Pr=!0,Wo="virtual")}function qm(e){e.target===window||e.target===document||(!Pr&&!Cl&&(Wo="virtual",Mu("virtual",e)),Pr=!1,Cl=!1)}function Ym(){Pr=!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(){Pr=!0,r.apply(this,arguments)},n.addEventListener("keydown",Ps,!0),n.addEventListener("keyup",Ps,!0),n.addEventListener("click",zm,!0),t.addEventListener("focus",qm,!0),t.addEventListener("blur",Ym,!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",()=>{Zm(e)},{once:!0}),fo.set(t,{focus:r})}const Zm=(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",zm,!0),n.removeEventListener("focus",qm,!0),n.removeEventListener("blur",Ym,!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 Sx(e){const t=Uo(e);let n;return t.readyState!=="loading"?Sl(e):(n=()=>{Sl(e)},t.addEventListener("DOMContentLoaded",n)),()=>Zm(e,n)}typeof document<"u"&&Sx();function Km(){return Wo!=="pointer"}const Ex=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Ax(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&&!Ex.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&&!xx[n.key])}function kx(e,t,n){Sl(),Fe(()=>{let r=(i,o)=>{Ax(!!(n!=null&&n.isTextInput),i,o)&&e(Km())};return xl.add(r),()=>{xl.delete(r)}},t)}function Nx(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=Gm(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 Tx(){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 $x(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(Tx,[]);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 Mx(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=ie({isFocused:!1,isFocusVisible:t||Km()}),[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]);kx(m=>{i.current.isFocusVisible=m,u()},[],{isTextInput:n});let{focusProps:f}=_x({isDisabled:r,onFocusChange:d}),{focusWithinProps:p}=Nx({isDisabled:!r,onFocusWithinChange:d});return{isFocused:o,isFocusVisible:a,focusProps:r?p:f}}var Ix=Object.defineProperty,Dx=(e,t,n)=>t in e?Ix(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,za=(e,t,n)=>(Dx(e,typeof t!="symbol"?t+"":t,n),n);let Rx=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"}},Mr=new Rx;function Pi(e){return Mr.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)=>{Mr.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 Ox(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 Fx(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function Px({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=Ox(u);r(Fx(d,t.current.getBoundingClientRect()))}},!1),i.addEventListener(l,"pointercancel",o,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:s,onPointerUp:o,onClick:o}}}let Lx=lt(void 0);function Iu(){return Ve(Lx)}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=Hx();return De(t=>Vx({mergeRefs:e,...t}),[e])}function Vx({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:s,mergeRefs:a}){a=a??jx;let l=Xm(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===Ye&&(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(`
|
|
45
|
+
*/var ad;function rv(){if(ad)return Va;ad=1;var e=nv;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 Va.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,Va}var ld;function iv(){return ld||(ld=1,La.exports=rv()),La.exports}var ov=iv();class sv{constructor(t,n,r){this.arg=n,this.dependencies=r;const i=t(),o=[];this.finalDispatch=void 0;let s;const a=X2(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=ll(this.state[0]);return ev(this.arg,K2((m,h)=>{const b=this.state;this.finalDispatch=h,this.state=[m,b[1],!0,o],m!==b[0]&&d()},J2((m,h)=>{const b=this.cmd;return this.cmd=ve(),[this.state[0],b]},(m,h,b)=>m(h)(this.state[0]),cl(m=>m),cl(m=>m),Ke(m=>m),m=>[h=>m[0](h)?!0:p&&f,h=>{const b=h;ll(b)?Me(b):m[1](h)}],i))),()=>{f=!0}}}}function ud(e,t,n){return new sv(e,t,n)}function av(e){return e.state}function lv(e){return e.subscribe}function uv(e,t,n){return te(e.arg,t)?!te(e.dependencies,n):!0}function Ur(e,t,n){const r=xe(()=>ud(e,t,n)),i=r[0];uv(i,t,n)&&r[1](ud(e,t,n));const o=ov.useSyncExternalStore(lv(i),()=>av(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{Me(u)}d1(a)}},[s,a]),[o[0],l]}class wl extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Asc","Desc"]}}function cv(e){return e.tag===1?new wl(0,[]):new wl(1,[])}function dv(e,t,n){return e.tag===1?bg(t,n,{Compare:Et}):vg(t,n,{Compare:Et})}class ua extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Requested","Finished"]}}function Rn(e,t){return cm(n=>{e(t)})}let ds=class extends Ce{constructor(t){super(),this.View=t}},fs=class extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Loaded","Error"]}},mm=class extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["GetAccountImports"]}};function fv(){return[new ds(new fs(0,[])),ce(e=>{e(new mm(new ua(0,[void 0])))})]}function mv(e,t,n){return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new ds(new fs(2,[t.fields[0].fields[0].fields[0]])),ve()]:[new ds(new fs(1,[t.fields[0].fields[0].fields[0]])),ve()]:[new ds(new fs(0,[])),dm(r=>{fm(r)},e,void 0,r=>new mm(new ua(1,[r])))]}class hv extends Ce{constructor(t){super(),this.UserActivities=t}}class cd extends Ce{constructor(t,n,r){super(),this.Timestamp=t,this.User=n,this.Activity=r}}function pv(e,t){const n=t.toLocaleLowerCase();return e.Name.toLocaleLowerCase().indexOf(n)>=0?!0:Je(_t(r=>r.toLocaleLowerCase().indexOf(n)>=0,e.Email),!1)}function gv(e){return $o(g(Ni(_t(t=>new cd(t.StartTime,t.User,`Processing ${t.NumberOfRecords} records`),e.ActiveImport))),ir(t=>new cd(t.StartTime,t.User,Je(_t(n=>`Added ${n.SucceededRowCount} users via Csv`,f0(n=>te(n.Stage,new Q0(0,[])),t.CompletedStages)),`Processed ${t.NumberOfRecords} records`)),e.ImportHistory))}function wv(e){return new hv(Je(_t(gv,e),at()))}class dd extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Error","TableData"]}}class yv extends Ce{constructor(t,n){super(),this.Data=t,this.IsFiltered=n}}class Lo extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["PaginatedList"]}}class vv extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["SortedList"]}}class bv extends Ce{constructor(t,n){super(),this.SortInfo=t,this.SortDirectionToggledHandler=n}}class hm extends Ce{constructor(t,n){super(),this.Column=t,this.Direction=n}}class _v extends W{constructor(){super(),this.tag=0,this.fields=[]}cases(){return["Time"]}}class $s extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NonEmptyPagingInfo","EmptyPagingInfo"]}}class xv extends Ce{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 Cv(e){return e.tag===1?pm(e.fields[0].Data):ym()}function Sv(e){return e.tag===1?Ri(e.fields[0].Data):new $s(1,[])}function Ev(e){const t=Eu(ym(),e);return new Lo([bm(Jt(e),20),t])}function Vo(e){return e.fields[0][1]}function pm(e){return wm(Vo(e))}function Av(e){return Au(Vo(e))}function Ri(e){return e.fields[0][0]}function kv(e){const t=Ri(e);if(t.tag===0){const n=t.fields[0],r=h0(n.FirstRowIndex,Av(e));return p0(Vv(n),r)}else return at()}function gm(e,t){const n=Eu(pm(e),t);return new Lo([Fv(Ri(e),Jt(Au(n))),n])}function Nv(e){return new Lo([Ri(e),Mv(Vo(e))])}function Tv(e){return new Lo([Ov(Ri(e)),Vo(e)])}function $v(e){return new Lo([Rv(Ri(e)),Vo(e)])}function Eu(e,t){return new vv([e,dv(e.Direction,n=>n.Timestamp,t)])}function Au(e){return e.fields[0][1]}function wm(e){return e.fields[0][0]}function Mv(e){return Eu(Iv(wm(e)),Au(e))}function ym(){return new hm(new _v,new wl(0,[]))}function Iv(e){return new hm(e.Column,cv(e.Direction))}function vm(e,t){return~~(e/t)+(e%t===0?0:1)}function ca(e,t,n){if(e<=0)return new $s(1,[]);{const r=xc(n,vm(e,t))|0,i=(r-1)*t|0;return new $s(0,[new xv(r,i,xc(i+t-1,e-1),e,t)])}}function bm(e,t){return ca(e,t,1)}function Dv(e){if(e.tag===0){const t=e.fields[0];return vm(t.TotalRecordsNumber,t.PageSize)|0}else return 0}function _m(e){return e.tag===0?e.fields[0].CurrentPage<Dv(e):!1}function xm(e){return e.tag===0?e.fields[0].CurrentPage>1:!1}function Rv(e){const t=xm(e);let n;switch(t&&e.tag===0?n=0:n=1,n){case 0:{const r=e.fields[0];return ca(r.TotalRecordsNumber,r.PageSize,r.CurrentPage-1)}default:return e}}function Ov(e){const t=_m(e);let n;switch(t&&e.tag===0?n=0:n=1,n){case 0:{const r=e.fields[0];return ca(r.TotalRecordsNumber,r.PageSize,r.CurrentPage+1)}default:return e}}function Fv(e,t){return t<=0?new $s(1,[]):e.tag===0?ca(t,20,e.fields[0].CurrentPage):bm(t,20)}function Pv(e){return e.FirstRowIndex+1}function Lv(e){return e.LastRowIndex+1}function Vv(e){return e.LastRowIndex-e.FirstRowIndex+1}let sr=class extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["LoadingError","ValidState"]}};class Oi extends Ce{constructor(t,n,r){super(),this.ImportHistory=t,this.View=n,this.PaginatedList=r}}class ku extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Default","Filtered"]}}function Hv(e){if(e.tag===1)return Cm(e.fields[0])}function jv(e){return e.tag===0}function Bv(e){return e.tag===1?new dd(1,[Zv(e.fields[0])]):new dd(0,[])}function Cm(e){const t=e.View;if(t.tag===1)return t.fields[0]}function Uv(e){return Cm(e)!=null}function Wv(e,t){return new sr(1,[new Oi(e.ImportHistory,new ku(1,[t]),gm(e.PaginatedList,Mn(n=>pv(n.User,t),e.ImportHistory.UserActivities)))])}function Gv(e){return new sr(1,[new Oi(e.ImportHistory,new ku(0,[]),gm(e.PaginatedList,e.ImportHistory.UserActivities))])}function zv(e){return new sr(1,[new Oi(e.ImportHistory,e.View,Nv(e.PaginatedList))])}function qv(e){return new sr(1,[new Oi(e.ImportHistory,e.View,Tv(e.PaginatedList))])}function Yv(e){return new sr(1,[new Oi(e.ImportHistory,e.View,$v(e.PaginatedList))])}function Zv(e){return new yv(e.PaginatedList,Uv(e))}let di=class extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ApplyFilter","ClearFilter","ToggleSortDirection","NextPage","PrevPage"]}};function Kv(e){let t;return[e.tag===1?new sr(0,[]):(t=e.fields[0],new sr(1,[new Oi(t,new ku(0,[]),Ev(t.UserActivities))])),ve()]}function Sm(e,t){return e.tag===1?t(e.fields[0]):[new sr(0,[]),ve()]}function Xv(e,t){return Sm(e,n=>[t(n),ve()])}function Jv(e,t){const n=r=>Xv(t,r);switch(e.tag){case 1:return n(Gv);case 2:return n(zv);case 3:return n(qv);case 4:return n(Yv);default:{const r=e.fields[0];return Sm(t,i=>tu(r)?[t,ce(o=>{o(new di(1,[]))})]:[Wv(i,r),ve()])}}}function Qv(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=ce(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 eb(){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=[Qv(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 tb(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=ce(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 Ms(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=ce(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 fd extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateFilter","ClearFilter"]}}function nb(e){let t,n;const r=Je(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=[tb(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 fd(0,[s.target.value]))}],["value",r],["disabled",e.Disabled]])))),$(()=>{let s;return tu(r)?k(Ae()):k(c("div",w(g([["onClick",a=>{e.ActionHandler(new fd(1,[]))}],["className","absolute inset-y-0 right-0 flex items-center pr-3 cursor-pointer text-gray-600"],(s=[Ms(10,10)],["children",y.Children.toArray(Array.from(s))])]))))}))}))})),["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function rb(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=ce(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 ib(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(rb,{width:10,height:7})],["children",y.Children.toArray(Array.from(t))])])))}function ob(e){const t=e.toggleSortDirection,n=e.props;return c(ib,{sortDirection:n.Direction,sortDirectionChangeHandler:t})}function sb(e){let t,n,r,i;const o=c(ob,{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 Is(e){"@babel/helpers - typeof";return Is=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},Is(e)}function Rr(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 Cn(e){Ft(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Is(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 ab(e,t){Ft(2,arguments);var n=Cn(e).getTime(),r=Rr(t);return new Date(n+r)}var lb={};function da(){return lb}function ub(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 cb(e){return Ft(1,arguments),e instanceof Date||Is(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function db(e){if(Ft(1,arguments),!cb(e)&&typeof e!="number")return!1;var t=Cn(e);return!isNaN(Number(t))}function fb(e,t){Ft(2,arguments);var n=Rr(t);return ab(e,-n)}var mb=864e5;function hb(e){Ft(1,arguments);var t=Cn(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/mb)+1}function Ds(e){Ft(1,arguments);var t=1,n=Cn(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 Em(e){Ft(1,arguments);var t=Cn(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=Ds(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var s=Ds(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function pb(e){Ft(1,arguments);var t=Em(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=Ds(n);return r}var gb=6048e5;function wb(e){Ft(1,arguments);var t=Cn(e),n=Ds(t).getTime()-pb(t).getTime();return Math.round(n/gb)+1}function Rs(e,t){var n,r,i,o,s,a,l,u;Ft(1,arguments);var d=da(),f=Rr((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=Cn(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 Am(e,t){var n,r,i,o,s,a,l,u;Ft(1,arguments);var d=Cn(e),f=d.getUTCFullYear(),p=da(),m=Rr((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=Rs(h,t),v=new Date(0);v.setUTCFullYear(f,0,m),v.setUTCHours(0,0,0,0);var _=Rs(v,t);return d.getTime()>=b.getTime()?f+1:d.getTime()>=_.getTime()?f:f-1}function yb(e,t){var n,r,i,o,s,a,l,u;Ft(1,arguments);var d=da(),f=Rr((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=Am(e,t),m=new Date(0);m.setUTCFullYear(p,0,f),m.setUTCHours(0,0,0,0);var h=Rs(m,t);return h}var vb=6048e5;function bb(e,t){Ft(1,arguments);var n=Cn(e),r=Rs(n,t).getTime()-yb(n,t).getTime();return Math.round(r/vb)+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 zn={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"},_b={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 zn.y(t,n)},Y:function(t,n,r,i){var o=Am(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=Em(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 zn.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=bb(t,i);return n==="wo"?r.ordinalNumber(o,{unit:"week"}):He(o,n.length)},I:function(t,n,r){var i=wb(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"}):zn.d(t,n)},D:function(t,n,r){var i=hb(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 zn.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):zn.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"}):zn.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):zn.s(t,n)},S:function(t,n){return zn.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 hd(s);case"XXXX":case"XX":return wr(s);case"XXXXX":case"XXX":default:return wr(s,":")}},x:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"x":return hd(s);case"xxxx":case"xx":return wr(s);case"xxxxx":case"xxx":default:return wr(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"+md(s,":");case"OOOO":default:return"GMT"+wr(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"+md(s,":");case"zzzz":default:return"GMT"+wr(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 md(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 hd(e,t){if(e%60===0){var n=e>0?"-":"+";return n+He(Math.abs(e)/60,2)}return wr(e,t)}function wr(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 pd=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"})}},km=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"})}},xb=function(t,n){var r=t.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return pd(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}}",pd(i,n)).replace("{{time}}",km(o,n))},Cb={p:km,P:xb},Sb=["D","DD"],Eb=["YY","YYYY"];function Ab(e){return Sb.indexOf(e)!==-1}function kb(e){return Eb.indexOf(e)!==-1}function gd(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 Nb={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"}},Tb=function(t,n,r){var i,o=Nb[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 Ha(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 $b={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Mb={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Ib={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Db={date:Ha({formats:$b,defaultWidth:"full"}),time:Ha({formats:Mb,defaultWidth:"full"}),dateTime:Ha({formats:Ib,defaultWidth:"full"})},Rb={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Ob=function(t,n,r,i){return Rb[t]};function Zi(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 Fb={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Pb={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Lb={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"]},Vb={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"]},Hb={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"}},jb={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"}},Bb=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"},Ub={ordinalNumber:Bb,era:Zi({values:Fb,defaultWidth:"wide"}),quarter:Zi({values:Pb,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Zi({values:Lb,defaultWidth:"wide"}),day:Zi({values:Vb,defaultWidth:"wide"}),dayPeriod:Zi({values:Hb,defaultWidth:"wide",formattingValues:jb,defaultFormattingWidth:"wide"})};function Ki(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)?Gb(a,function(f){return f.test(s)}):Wb(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 Wb(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function Gb(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function zb(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 qb=/^(\d+)(th|st|nd|rd)?/i,Yb=/\d+/i,Zb={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},Kb={any:[/^b/i,/^(a|c)/i]},Xb={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Jb={any:[/1/i,/2/i,/3/i,/4/i]},Qb={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},e_={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]},t_={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},n_={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]},r_={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},i_={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}},o_={ordinalNumber:zb({matchPattern:qb,parsePattern:Yb,valueCallback:function(t){return parseInt(t,10)}}),era:Ki({matchPatterns:Zb,defaultMatchWidth:"wide",parsePatterns:Kb,defaultParseWidth:"any"}),quarter:Ki({matchPatterns:Xb,defaultMatchWidth:"wide",parsePatterns:Jb,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Ki({matchPatterns:Qb,defaultMatchWidth:"wide",parsePatterns:e_,defaultParseWidth:"any"}),day:Ki({matchPatterns:t_,defaultMatchWidth:"wide",parsePatterns:n_,defaultParseWidth:"any"}),dayPeriod:Ki({matchPatterns:r_,defaultMatchWidth:"any",parsePatterns:i_,defaultParseWidth:"any"})},s_={code:"en-US",formatDistance:Tb,formatLong:Db,formatRelative:Ob,localize:Ub,match:o_,options:{weekStartsOn:0,firstWeekContainsDate:1}},a_=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,l_=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,u_=/^'([^]*?)'?$/,c_=/''/g,d_=/[a-zA-Z]/;function Nm(e,t,n){var r,i,o,s,a,l,u,d,f,p,m,h,b,v;Ft(2,arguments);var _=String(t),x=da(),E=(r=(i=void 0)!==null&&i!==void 0?i:x.locale)!==null&&r!==void 0?r:s_,T=Rr((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=Rr((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=Cn(e);if(!db(O))throw new RangeError("Invalid time value");var F=ub(O),S=fb(O,F),C={firstWeekContainsDate:T,weekStartsOn:I,locale:E,_originalDate:O},A=_.match(l_).map(function(N){var D=N[0];if(D==="p"||D==="P"){var P=Cb[D];return P(N,E.formatLong)}return N}).join("").match(a_).map(function(N){if(N==="''")return"'";var D=N[0];if(D==="'")return f_(N);var P=_b[D];if(P)return kb(N)&&gd(N,t,String(e)),Ab(N)&&gd(N,t,String(e)),P(S,N,E.localize,C);if(D.match(d_))throw new RangeError("Format string contains an unescaped latin alphabet character `"+D+"`");return N}).join("");return A}function f_(e){var t=e.match(u_);return t?t[1].replace(c_,"'"):e}function m_(e){return Nm(e,"d MMM, yyyy")}function h_(e){return Nm(e,"h:mm a")}function p_(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:m_(e.Timestamp)})],["children",y.Children.toArray(Array.from(i))])]))),c("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:h_(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(Ae()):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 g_(e){const t=ir(n=>c(p_,n),e.Data);return c("div",{className:"self-stretch flex flex-col justify-start items-stretch",children:y.Children.toArray(Array.from(t))})}function w_(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=ce(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 y_(){let e;return c("div",w(g([["className","w-[120px] h-[120px] flex flex-col justify-center items-center"],(e=[c(w_,{width:120,height:120})],["children",y.Children.toArray(Array.from(e))])])))}function v_(){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(y_,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 b_(e){return{Data:kv(e.Data)}}function __(e){let t;const n=e.props,r=n.tag===1?c(g_,b_(n.fields[0])):c(v_,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 wd extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Prev","Next"]}}function x_(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:dn(Pv(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:dn(Lv(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:dn(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 wd(0,[]))}],["disabled",!xm(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 wd(1,[]))}],["disabled",!_m(i)]])))],["children",y.Children.toArray(Array.from(l))])]))))}))})),["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}class yl extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ToggleSortDirection","NextPage","PrevPage"]}}function C_(e,t){e(t.tag===0?new yl(2,[]):new yl(1,[]))}function S_(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(sb,new bv(Cv(i),()=>{r(new yl(0,[]))})),c(__,{props:i}),c(x_,{pagingInfo:Sv(i),pageChangedHandler:o=>{C_(r,o)}})],["children",y.Children.toArray(Array.from(n))])])))}function E_(e,t){t.tag===0?e(new di(0,[t.fields[0]])):e(new di(1,[]))}function A_(e,t){switch(t.tag){case 2:{e(new di(4,[]));break}case 0:{e(new di(2,[]));break}default:e(new di(3,[]))}}function yd(e){let t,n;const r=e.importHistory;let i;const o=Kv(r);i=Ur(()=>Br(()=>o,Jv,(d,f)=>{}),void 0,void 0);const s=i[0],a=i[1];let l;const u=Hv(s);return l={ActionHandler:d=>{E_(a,d)},Disabled:jv(s),Value:io(u)},c("div",w(g([["className","self-stretch grow basis-0 flex flex-col justify-start items-start gap-2"],(t=[c(eb,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(nb,l),c(S_,{props:Bv(s),actionHandler:d=>{A_(a,d)}})],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}class vd extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Header","Row"]}}function k_(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 bd(e){const t=ir(n=>k_(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 N_(){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=$o(ce(bd(new vd(0,[]))),ir(n=>bd(new vd(1,[])),K(Cu(1,1,5)))),["children",y.Children.toArray(Array.from(t))])])))}function T_(e){ra(()=>{Mi(am(e.backendUrl,void 0,new fn(0,[{Section:"user past activities"}])))});let t;const n=Ur(()=>Br(fv,(i,o)=>mv(()=>S2(e.backendUrl),i),(i,o)=>{}),void 0,[])[0].View;t=n.tag===2?c(yd,{importHistory:new M(1,[void 0])}):n.tag===1?c(yd,{importHistory:new M(0,[wv(n.fields[0])])}):c(N_,null);const r=[c("style",{children:[Xl]}),t];return c(Ye,{},...r)}function $_(){Ll(e=>c(T_,e),"apollo-import-workspace-past-history")}function vl(e,t){if(t.startsWith(e))return t}function _d(e,t){if(t.endsWith(e))return t}function M_(e){return t=>{let n,r;return n=vl("/",t),n!=null?(r=n,r):"/"+t}}function I_(e,t){return M_()(At("/",ir(n=>n.indexOf("?")>=0||n.startsWith("#")||n.startsWith("/")?n:encodeURIComponent(n),e)))}function Tm(e,t,n){history.pushState(void 0,"",I_(e));const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)}function D_(e,t){return hg(n=>{if(ki(n))return at();{const r=nu(n,"#");if(r==="?")return at();if(vl("?",r)!=null)return ce(r);{const i=r.split("?");if(!Ir((o,s)=>o===s,i,Ae())&&i.length===1){const o=pe(0,i);return ce(decodeURIComponent(o))}else if(!Ir((o,s)=>o===s,i,Ae())&&i.length===2)if(pe(1,i)===""){const o=pe(0,i);return ce(decodeURIComponent(o))}else{const o=pe(0,i),s=pe(1,i);return g([decodeURIComponent(o),"?"+s])}else return at()}}},g(qf(vl("#",e)!=null?U1(e,1,e.length-1):t===1&&(_d("#",e)!=null||_d("#/",e)!=null)?"":e,["/"],void 0,0)))}function R_(e,t,n){return t(D_(e===2?window.location.pathname+window.location.search:window.location.hash,e))}uw(e=>{const t=E0(r=>{const i=Je(e.onUrlChanged,o=>{});R_(Je(e.hashMode,1),i)});S0(()=>(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),du(()=>{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)}))),ra(()=>{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 O_{constructor(t,n){const r=new Ct(Ae());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"]();ja(r.contents,o[0],o[1])}}finally{Me(i)}}get[Symbol.toStringTag](){return"Dictionary"}toJSON(){const t=this;return Array.from(t)}"System.Collections.IEnumerable.GetEnumerator"(){return Oe(this)}GetEnumerator(){return Oe(Qs(this.hashMap.values()))}[Symbol.iterator](){return Ei(Oe(this))}"System.Collections.Generic.ICollection`1.Add2B595"(t){ja(this,t[0],t[1])}"System.Collections.Generic.ICollection`1.Clear"(){xd(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const r=ms(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){v0((i,o)=>{$t(t,n+i,o)},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return Cd(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(t){const n=this,r=ms(n,t[0]);return r!=null?(te(V(r)[1],t[1])&&Ba(n,t[0]),!0):!1}"System.Collections.Generic.IDictionary`2.Add5BDDA1"(t,n){ja(this,t,n)}"System.Collections.Generic.IDictionary`2.ContainsKey2B595"(t){return Ad(this,t)}"System.Collections.Generic.IDictionary`2.get_Item2B595"(t){return Sd(this,t)}"System.Collections.Generic.IDictionary`2.set_Item5BDDA1"(t,n){Ed(this,t,n)}"System.Collections.Generic.IDictionary`2.get_Keys"(){const t=this;return Ln($(()=>Le(n=>n[0],t)))}"System.Collections.Generic.IDictionary`2.Remove2B595"(t){return Ba(this,t)}"System.Collections.Generic.IDictionary`2.TryGetValue6DC89625"(t,n){const i=ms(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 Ln($(()=>Le(n=>n[1],t)))}get size(){return Cd(this)|0}clear(){xd(this)}delete(t){return Ba(this,t)}entries(){return Le(n=>[n[0],n[1]],this)}get(t){return Sd(this,t)}has(t){return Ad(this,t)}keys(){return Le(n=>n[0],this)}set(t,n){const r=this;return Ed(r,t,n),r}values(){return Le(n=>n[1],this)}forEach(t,n){const r=this;jn(i=>{t(i[1],i[0],r)},r)}}function Ho(e,t){const n=e.comparer.GetHashCode(t)|0;let r,i=Ae();return r=[pu(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 ms(e,t){const n=Ho(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return or(e.hashMap,n[1])[n[2]];default:return}}function xd(e){e.hashMap.clear()}function Cd(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{Me(n)}return t|0}function Sd(e,t){const n=ms(e,t);if(n!=null)return V(n)[1];throw new Error("The item was not found in collection")}function Ed(e,t,n){const r=Ho(e,t);r[0]?r[2]>-1?or(e.hashMap,r[1])[r[2]]=[t,n]:or(e.hashMap,r[1]).push([t,n]):e.hashMap.set(r[1],[[t,n]])}function ja(e,t,n){const r=Ho(e,t);if(r[0]){if(r[2]>-1)throw new Error(eu("An item with the same key has already been added. Key: {0}",t));or(e.hashMap,r[1]).push([t,n])}else e.hashMap.set(r[1],[[t,n]])}function Ad(e,t){const n=Ho(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return!0;default:return!1}}function Ba(e,t){const n=Ho(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return or(e.hashMap,n[1]).splice(n[2],1),!0;default:return!1}}function F_(e,t){return $(()=>{const n=new B0([],t);return ea(r=>L0(r,n),e)})}function P_(e,t,n){return $(()=>{const r=new B0(e,n);return ea(i=>L0(i,r),t)})}function L_(e,t,n){return $(()=>{const r=new O_([],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=Ae();l=[pu(r,a,new Ct(()=>u,d=>{u=d})),u],l[0]?l[1].push(s):(Iw(r,a,[s]),i.push(a))}}finally{Me(o)}return Le(s=>[s,or(r,s)],i)})}function $m(e,t){return Ln(F_(e,t))}function Mm(e,t,n){return Ln(P_(e,t,n))}function V_(e,t,n){return Ln(Le(r=>[r[0],Ln(r[1])],L_(e,t,n)))}class H_ extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvColumnIndex"]}}class j_ extends Ce{constructor(t,n,r,i){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=i}}class B_ extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisCsvColumnIndex"]}}class lo extends Ce{constructor(t,n,r,i,o){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=i,this.EmploymentBasis=o}}new lo(void 0,void 0,void 0,void 0,void 0);function kd(e,t){return new lo(e.FirstName,e.LastName,e.Email,e.MobilePhone,_t(n=>n.fields[0],t))}class U_ extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisRawValue"]}}class ht extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FullTime","PartTime","Casual","LabourHire"]}}function Im(e){switch(e.tag){case 1:return"Part-time";case 2:return"Casual";case 3:return"Labour hire";default:return"Full-time"}}function W_(e){switch(e.tag){case 1:return"PartTime";case 2:return"Casual";case 3:return"LabourHire";default:return"FullTime"}}function G_(e){switch(e){case"FullTime":return new ht(0,[]);case"PartTime":return new ht(1,[]);case"Casual":return new ht(2,[]);case"LabourHire":return new ht(3,[]);default:return}}class z_ extends Ce{constructor(t,n){super(),this.Head=t,this.Tail=n}}function q_(e){return li(et(t=>[t[1].fields[0],W_(t[0])],a0([e.Head],e.Tail)),{Compare:jr})}class Y_ 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 En extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["DraftColumnMappings","ValidatedColumnMappings"]}}class Z_ extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvColumnName"]}}class K_ extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvDataRow"]}}class Dm extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvDataRows"]}}function X_(e,t){let n;return new Y_(et(r=>new U_(r),sg(r=>r,$m((n=et(r=>pe(t.fields[0].fields[0],r.fields[0]),e.fields[0]),n.filter(r=>!ki(r))),{Equals:(r,i)=>r===i,GetHashCode:cr}),{Compare:jr})))}function J_(e){return e.fields[0].length}class Rm extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FileName"]}}class Q_ extends Ce{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 es extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Draft","Valid"]}}class re extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FirstName","LastName","Email","MobilePhone","EmploymentBasis"]}}function wo(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 _r(e){switch(e.tag){case 1:return"lastName";case 2:return"email";case 3:return"mobileNumber";case 4:return"employmentBasis";default:return"firstName"}}function Om(e){switch(e){case"firstName":return new re(0,[]);case"lastName":return new re(1,[]);case"email":return new re(2,[]);case"mobileNumber":return new re(3,[]);case"employmentBasis":return new re(4,[]);default:return}}function ex(e){switch(e.tag){case 1:return"lastName";case 2:return"email";case 3:return"mobilePhone";case 4:return"employmentBasis";default:return"firstName"}}let qn=class extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Set","Clear","Preview","ClosePreview"]}};class Xi extends Ce{constructor(t,n){super(),this.ColumnIndex=t,this.IncomingFields=n}}class tx extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["IncomingFields"]}}class Nn extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Available","Unavailable"]}}let yr=class extends Ce{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 nx(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],Ks(r=>Ti(Ql(r[1].fields[0],"[^a-zA-Z]","").toLocaleLowerCase(),n,{Equals:(i,o)=>i===o,GetHashCode:cr}),e))}function rx(e,t){return new tx(et(n=>{const r=n[0];return[r,n[1],Ti(r,t,{Equals:te,GetHashCode:_s})?new Nn(1,[]):new Nn(0,[])]},e))}function Fm(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 Yt(n=>n,et(n=>u0(e.fields[0],n.fields[0]),t.fields[0].slice(void 0,10)))}function Nu(e,t,n,r,i,o,s){let a,l,u;const d=h=>rx(e,h);let f;f=Yt(h=>h,[n,r,i,o,s]).length;const m=n!=null?r!=null?i!=null?(a=i,l=n,u=r,new es(1,[new j_(l,u,a,o),_t(h=>new B_(h),s)])):new es(0,[new lo(n,r,i,o,s)]):new es(0,[new lo(n,r,i,o,s)]):new es(0,[new lo(n,r,i,o,s)]);return new yr(new Xi(n,d(Yt(h=>h,[r,i,o,s]))),new Xi(r,d(Yt(h=>h,[n,i,o,s]))),new Xi(i,d(Yt(h=>h,[n,r,o,s]))),new Xi(o,d(Yt(h=>h,[n,r,i,s]))),new Xi(s,d(Yt(h=>h,[n,r,i,o]))),t,e.length,f,e.length-f,m)}function Ji(e,t,n,r,i){let o,s,a;const l=[r,i];return a=Fm(n,l[0],l[1]),Nu(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 Qi(e,t,n){let r,i;const o=[n,void 0];return i=Fm(t,o[0],o[1]),Nu(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 Pm(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 ix=e=>t=>Pm(e,t);function ox(e,t){const n=Pm(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 sx(e,t){let n,r,i,o,s,a,l,u,d;const f=p=>nx(e,p);return[(n=t==null?(r=f(new re(0,[])),i=f(new re(1,[])),o=f(new re(2,[])),s=f(new re(3,[])),a=f(new re(4,[])),l=Yt(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]),Nu(e,void 0,n[0],n[1],n[2],n[3],n[4])),ve()]}function ax(e,t,n,r,i){let o,s,a,l,u,d,f,p,m,h;const b=N=>Rn(e,new fn(4,[{Field:ex(N)}]));let v,_,x,E,T,I,O,F,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,F=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 Nn(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 Nn(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 Nn(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 Nn(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 Nn(0,[])):!1)?(v=0,i.FirstName.ColumnIndex,i.FirstName.IncomingFields.fields[0],_=r.fields[1]):v=16}}switch(v){case 0:return[(o=[new re(0,[]),_],Ji(t,n,i,o[0],o[1])),ve()];case 1:return[(s=[new re(1,[]),x],Ji(t,n,i,s[0],s[1])),ve()];case 2:return[(a=[new re(2,[]),E],Ji(t,n,i,a[0],a[1])),ve()];case 3:return[(l=[new re(3,[]),T],Ji(t,n,i,l[0],l[1])),ve()];case 4:return[(u=[new re(4,[]),I],Ji(t,n,i,u[0],u[1])),ve()];case 5:return[Qi(t,i,new re(0,[])),ve()];case 6:return[Qi(t,i,new re(1,[])),ve()];case 7:return[Qi(t,i,new re(2,[])),ve()];case 8:return[Qi(t,i,new re(3,[])),ve()];case 9:return[Qi(t,i,new re(4,[])),ve()];case 10:return[new yr(i.FirstName,i.LastName,i.Email,i.MobilePhone,i.EmploymentBasis,[new re(0,[]),ti(O,n)],i.NumberOfIncomingFields,i.NumberOfDestinationFieldsMapped,i.NumberOfIncomingFieldsDiscarded,i.Status),b(new re(0,[]))];case 11:return[new yr(i.FirstName,i.LastName,i.Email,i.MobilePhone,i.EmploymentBasis,[new re(1,[]),ti(F,n)],i.NumberOfIncomingFields,i.NumberOfDestinationFieldsMapped,i.NumberOfIncomingFieldsDiscarded,i.Status),b(new re(1,[]))];case 12:return[new yr(i.FirstName,i.LastName,i.Email,i.MobilePhone,i.EmploymentBasis,[new re(2,[]),ti(S,n)],i.NumberOfIncomingFields,i.NumberOfDestinationFieldsMapped,i.NumberOfIncomingFieldsDiscarded,i.Status),b(new re(2,[]))];case 13:return[new yr(i.FirstName,i.LastName,i.Email,i.MobilePhone,i.EmploymentBasis,[new re(3,[]),ti(C,n)],i.NumberOfIncomingFields,i.NumberOfDestinationFieldsMapped,i.NumberOfIncomingFieldsDiscarded,i.Status),b(new re(3,[]))];case 14:return[new yr(i.FirstName,i.LastName,i.Email,i.MobilePhone,i.EmploymentBasis,[new re(4,[]),ti(A,n)],i.NumberOfIncomingFields,i.NumberOfDestinationFieldsMapped,i.NumberOfIncomingFieldsDiscarded,i.Status),b(new re(4,[]))];case 15:return[new yr(i.FirstName,i.LastName,i.Email,i.MobilePhone,i.EmploymentBasis,void 0,i.NumberOfIncomingFields,i.NumberOfDestinationFieldsMapped,i.NumberOfIncomingFieldsDiscarded,i.Status),ve()];default:return[i,ve()]}}const Lm=typeof document<"u"?Q.useLayoutEffect:()=>{};function lx(e){const t=se(null);return Lm(()=>{t.current=e},[e]),Re((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}const jo=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Er=e=>e&&"window"in e&&e.window===e?e:jo(e).defaultView||window;function ux(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 cx(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 Vm(e){let t=null;return()=>(t==null&&(t=e()),t)}const dx=Vm(function(){return cx(/^Mac/i)}),fx=Vm(function(){return ux(/Android/i)});function mx(e){return e.mozInputSource===0&&e.isTrusted?!0:fx()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}class hx{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 Hm(e){let t=se({isFocused:!1,observer:null});Lm(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=lx(r=>{e==null||e(r)});return Re(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 hx("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 px(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=Re(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),s=Hm(o),a=Re(l=>{const u=jo(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 Bo=null,bl=new Set,uo=new Map,Or=!1,_l=!1;const gx={Tab:!0,Escape:!0};function Tu(e,t){for(let n of bl)n(e,t)}function wx(e){return!(e.metaKey||!dx()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Os(e){Or=!0,wx(e)&&(Bo="keyboard",Tu("keyboard",e))}function Qt(e){Bo="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Or=!0,Tu("pointer",e))}function jm(e){mx(e)&&(Or=!0,Bo="virtual")}function Bm(e){e.target===window||e.target===document||(!Or&&!_l&&(Bo="virtual",Tu("virtual",e)),Or=!1,_l=!1)}function Um(){Or=!1,_l=!0}function xl(e){if(typeof window>"u"||uo.get(Er(e)))return;const t=Er(e),n=jo(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Or=!0,r.apply(this,arguments)},n.addEventListener("keydown",Os,!0),n.addEventListener("keyup",Os,!0),n.addEventListener("click",jm,!0),t.addEventListener("focus",Bm,!0),t.addEventListener("blur",Um,!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",()=>{Wm(e)},{once:!0}),uo.set(t,{focus:r})}const Wm=(e,t)=>{const n=Er(e),r=jo(e);t&&r.removeEventListener("DOMContentLoaded",t),uo.has(n)&&(n.HTMLElement.prototype.focus=uo.get(n).focus,r.removeEventListener("keydown",Os,!0),r.removeEventListener("keyup",Os,!0),r.removeEventListener("click",jm,!0),n.removeEventListener("focus",Bm,!0),n.removeEventListener("blur",Um,!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)),uo.delete(n))};function yx(e){const t=jo(e);let n;return t.readyState!=="loading"?xl(e):(n=()=>{xl(e)},t.addEventListener("DOMContentLoaded",n)),()=>Wm(e,n)}typeof document<"u"&&yx();function Gm(){return Bo!=="pointer"}const vx=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function bx(e,t,n){var r;const i=typeof window<"u"?Er(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,o=typeof window<"u"?Er(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?Er(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window<"u"?Er(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof i&&!vx.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&&!gx[n.key])}function _x(e,t,n){xl(),Fe(()=>{let r=(i,o)=>{bx(!!(n!=null&&n.isTextInput),i,o)&&e(Gm())};return bl.add(r),()=>{bl.delete(r)}},t)}function xx(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=se({isFocusWithin:!1}),s=Re(u=>{o.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,o]),a=Hm(s),l=Re(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 Fs=!1,Ua=0;function Cl(){Fs=!0,setTimeout(()=>{Fs=!1},50)}function Nd(e){e.pointerType==="touch"&&Cl()}function Cx(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Nd):document.addEventListener("touchend",Cl),Ua++,()=>{Ua--,!(Ua>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Nd):document.removeEventListener("touchend",Cl))}}function Sx(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,s]=xe(!1),a=se({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;Fe(Cx,[]);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=>{Fs&&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&&!Fs&&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 Ex(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=se({isFocused:!1,isFocusVisible:t||Gm()}),[o,s]=xe(!1),[a,l]=xe(()=>i.current.isFocused&&i.current.isFocusVisible),u=Re(()=>l(i.current.isFocused&&i.current.isFocusVisible),[]),d=Re(m=>{i.current.isFocused=m,s(m),u()},[u]);_x(m=>{i.current.isFocusVisible=m,u()},[],{isTextInput:n});let{focusProps:f}=px({isDisabled:r,onFocusChange:d}),{focusWithinProps:p}=xx({isDisabled:!r,onFocusWithinChange:d});return{isFocused:o,isFocusVisible:a,focusProps:r?p:f}}var Ax=Object.defineProperty,kx=(e,t,n)=>t in e?Ax(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wa=(e,t,n)=>(kx(e,typeof t!="symbol"?t+"":t,n),n);let Nx=class{constructor(){Wa(this,"current",this.detect()),Wa(this,"handoffState","pending"),Wa(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"}},Tr=new Nx;function Fi(e){return Tr.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function fa(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Un(){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 fa(()=>{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=Un();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 fr(){let[e]=xe(Un);return Fe(()=>()=>e.dispose(),[e]),e}let tt=(e,t)=>{Tr.isServer?Fe(e,t):_n(e,t)};function mr(e){let t=se(e);return tt(()=>{t.current=e},[e]),t}let fe=function(e){let t=mr(e);return Q.useCallback((...n)=>t.current(...n),[t])};function Tx(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 $x(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function Mx({disabled:e=!1}={}){let t=se(null),[n,r]=xe(!1),i=fr(),o=fe(()=>{t.current=null,r(!1),i.dispose()}),s=fe(a=>{if(i.dispose(),t.current===null){t.current=a.currentTarget,r(!0);{let l=Fi(a.currentTarget);i.addEventListener(l,"pointerup",o,!1),i.addEventListener(l,"pointermove",u=>{if(t.current){let d=Tx(u);r($x(d,t.current.getBoundingClientRect()))}},!1),i.addEventListener(l,"pointercancel",o,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:s,onPointerUp:o,onClick:o}}}let Ix=lt(void 0);function $u(){return Ve(Ix)}function Sl(...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 _i=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(_i||{}),Qn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Qn||{});function St(){let e=Rx();return Re(t=>Dx({mergeRefs:e,...t}),[e])}function Dx({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:s,mergeRefs:a}){a=a??Ox;let l=zm(t,e);if(o)return ts(l,n,r,s,a);let u=i??0;if(u&2){let{static:d=!1,...f}=l;if(d)return ts(f,n,r,s,a)}if(u&1){let{unmount:d=!0,...f}=l;return Vt(d?0:1,{0(){return null},1(){return ts({...f,hidden:!0,style:{display:"none"}},n,r,s,a)}})}return ts(l,n,r,s,a)}function ts(e,t={},n,r,i){let{as:o=n,children:s,refName:a="ref",...l}=Ga(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===Ye&&(Object.keys(Yn(l)).length>0||Object.keys(Yn(f)).length>0))if(!Si(d)||Array.isArray(d)&&d.length>1){if(Object.keys(Yn(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(Yn(l)).concat(Object.keys(Yn(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=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=Xm(d.props,Kn(qa(l,["ref"])));for(let _ in f)_ in v&&delete f[_];return Xl(d,Object.assign({},v,f,u,{ref:i(Bx(d),u.ref)},b))}return c(o,Object.assign({},qa(l,["ref"]),o!==Ye&&u,o!==Ye&&f),d)}function Hx(){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 jx(...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 Xm(...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 Jm(...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 Bx(e){return Q.version.split(".")[0]>="19"?e.props.ref:e.ref}function Ux(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 Wx(e){let[t]=be(e);return t}function Qm(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))th(n,eh(t,r),i);return n}function eh(e,t){return e?e+"["+t+"]":t}function th(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())th(e,eh(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,""]):Qm(n,t,e)}function Gx(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 zx="span";var Ci=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Ci||{});function qx(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:zx,name:"Hidden"})}let bo=wt(qx),Yx=lt(null);function Zx({children:e}){let t=Ve(Yx);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 Kx({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(Zx,null,Q.createElement(Xx,{setForm:s,formId:t}),Qm(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 Xx({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 Jx=lt(void 0);function nh(){return Ve(Jx)}function Qx(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&&e3(n)?!1:r}function e3(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let rh=Symbol();function t3(e,t=!0){return Object.assign(e,{[rh]:t})}function It(...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[rh]))?void 0:n}let pa=lt(null);pa.displayName="DescriptionContext";function ih(){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,ih),t}return e}function n3(){var e,t;return(t=(e=Ve(pa))==null?void 0:e.value)!=null?t:void 0}function r3(){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 i3="p";function o3(e,t){let n=an(),r=Iu(),{id:i=`headlessui-description-${n}`,...o}=e,s=ih(),a=It(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:i3,name:s.name||"Description"})}let s3=wt(o3),a3=Object.assign(s3,{});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 oh(){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,oh),t}return e}function sh(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 l3({inherit:e=!1}={}){let t=sh(),[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 u3="label";function c3(e,t){var n;let r=an(),i=oh(),o=nh(),s=Iu(),{id:a=`headlessui-label-${r}`,htmlFor:l=o??((n=i.props)==null?void 0:n.htmlFor),passive:u=!1,...d}=e,f=It(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?u3:"div",name:i.name||"Label"})}let d3=wt(c3),f3=Object.assign(d3,{}),m3=lt(()=>{});function h3({value:e,children:t}){return Q.createElement(m3.Provider,{value:e},t)}function p3(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 g3(e=p3){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 w3(e){if(e===null)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function y3(e,t=!1){let[n,r]=Br(()=>({}),{}),i=me(()=>w3(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 v3=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 ah(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 lh(e){return qs(e.subscribe,e.getSnapshot,e.getSnapshot)}let b3=new v3(()=>ah(()=>[],{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=b3.get(t),r=an(),i=lh(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 uh(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 ch(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(","),_3=["[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||{}),x3=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(x3||{});function dh(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 C3(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(_3)).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 fh(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 S3=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(S3||{});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 E3=["textarea","input"].join(",");function A3(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,E3))!=null?n:!1}function mh(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 k3(e,t){return mi(dh(),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?mh(e):e:t&64?C3(e):dh(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&&A3(p)&&p.select(),2}function hh(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function N3(){return/Android/gi.test(window.navigator.userAgent)}function T3(){return hh()||N3()}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 ph(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 gh(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!fh(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=>{T3()||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),ph(r,"blur",l=>o(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Vi(...e){return me(()=>Pi(...e),[...e])}function wh(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 $3(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 M3(){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 I3(){return hh()?{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 D3(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function R3(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Nr=ah(()=>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:R3(n)},i=[I3(),M3(),D3()];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 O3(e,t,n=()=>({containers:[]})){let r=lh(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 yh(e,t,n=()=>[document.body]){let r=Li(e,"scroll-lock");O3(r,t,i=>{var o;return{containers:[...(o=i.containers)!=null?o:[],n]}})}function Pd(e){return[e.screenX,e.screenY]}function F3(){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 P3(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 L3={},Ld,Vd;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((Ld=process==null?void 0:L3)==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 V3=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(V3||{});function vh(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function bh(e,t,n,r){let[i,o]=be(n),{hasFlag:s,addFlag:a,removeFlag:l}=P3(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),H3(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 H3(e,{prepare:t,run:n,done:r,inFlight:i}){let o=zn();return B3(e,{prepare:t,inFlight:i}),o.nextFrame(()=>{n(),o.requestAnimationFrame(()=>{o.add(j3(e,r))})}),o.dispose}function j3(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 B3(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 _h(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=(_h(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function _h(e){return wa()?e instanceof Node||e instanceof Qt(e).Node:!1}function Rt(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 U3(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=Rt(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 W3(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 Rt(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 xh(e){const t=ur(e);return Si(t)?e.ownerDocument?e.ownerDocument.body:e.body:xn(t)&&Go(t)?t:xh(t)}function _o(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=xh(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 G3(){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 Lr=Math.min,Tt=Math.max,xo=Math.round,is=Math.floor,bn=e=>({x:e,y:e}),z3={left:"right",right:"left",bottom:"top",top:"bottom"},q3={start:"end",end:"start"};function jd(e,t,n){return Tt(e,Lr(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 Ch(e){return e==="x"?"y":"x"}function Sh(e){return e==="y"?"height":"width"}function Vr(e){return["top","bottom"].includes(cr(e))?"y":"x"}function Eh(e){return Ch(Vr(e))}function Y3(e,t,n){n===void 0&&(n=!1);const r=zo(e),i=Eh(e),o=Sh(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 Z3(e){const t=Hs(e);return[$l(e),t,$l(t)]}function $l(e){return e.replace(/start|end/g,t=>q3[t])}function K3(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 X3(e,t,n,r){const i=zo(e);let o=K3(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=>z3[t])}function J3(e){return{top:0,right:0,bottom:0,left:0,...e}}function Q3(e){return typeof e!="number"?J3(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=Vr(t),s=Eh(t),a=Sh(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 e5=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=Q3(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 t5=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=Vr(a),E=cr(a)===a,T=await(l.isRTL==null?void 0:l.isRTL(u.floating)),I=p||(E||!b?[Hs(a)]:Z3(a)),O=h!=="none";!p&&O&&I.push(...X3(a,b,h,T));const F=[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=Y3(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=F[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 P;const J=(P=A.filter(L=>{if(O){const G=Vr(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:P[0];J&&(X=J);break}case"initialPlacement":X=a;break}if(i!==X)return{reset:{placement:X}}}return{}}}};async function n5(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=Vr(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 r5=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 n5(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}}}}},i5=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=Vr(cr(i)),p=Ch(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}}}}}},o5=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=Vr(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=Lr(b-d[v],x),I=Lr(h-d[_],E),O=!t.middlewareData.shift;let F=T,S=I;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(S=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(F=x),O&&!p){const A=Tt(d.left,0),N=Tt(d.right,0),D=Tt(d.top,0),P=Tt(d.bottom,0);m?S=h-2*(A!==0||N!==0?A+N:Tt(d.left,d.right)):F=b-2*(D!==0||P!==0?D+P:Tt(d.top,d.bottom))}await l({...t,availableWidth:S,availableHeight:F});const C=await s.getDimensions(a.floating);return h!==C.width||b!==C.height?{reset:{rects:!0}}:{}}}};function Ah(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 Rt(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}=Ah(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 s5=bn(0);function kh(e){const t=Qt(e);return!Fu()||!t.visualViewport?s5:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function a5(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Qt(e)?!1:t}function Hr(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?Rt(r)&&(s=hi(r)):s=hi(e));const a=a5(o,n,r)?kh(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&&Rt(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:Hr(An(e)).left+n}function Nh(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 l5(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=Hr(r);u=hi(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}const p=s&&!f&&!o?Nh(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 u5(e){return Array.from(e.getClientRects())}function c5(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 d5(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 f5(e,t){const n=Hr(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=d5(e,n);else if(t==="document")r=c5(An(e));else if(Rt(t))r=f5(t,n);else{const i=kh(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return js(r)}function Th(e,t){const n=ur(e);return n===t||!Rt(n)||Si(n)?!1:wn(n).position==="fixed"||Th(n,t)}function m5(e,t){const n=t.get(e);if(n)return n;let r=_o(e,[],!1).filter(a=>Rt(a)&&Hi(a)!=="body"),i=null;const o=wn(e).position==="fixed";let s=o?ur(e):e;for(;Rt(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&&Th(e,s))?r=r.filter(d=>d!==s):i=a,s=ur(s)}return t.set(e,r),r}function h5(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?ya(t)?[]:m5(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=Lr(f.right,u.right),u.bottom=Lr(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 p5(e){const{width:t,height:n}=Ah(e);return{width:t,height:n}}function g5(e,t,n){const r=xn(t),i=An(t),o=n==="fixed",s=Hr(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=Hr(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?Nh(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 $h(e,t){const n=Qt(e);if(ya(e))return n;if(!xn(e)){let i=ur(e);for(;i&&!Si(i);){if(Rt(i)&&!Ya(i))return i;i=ur(i)}return n}let r=Wd(e,t);for(;r&&U3(r)&&Ya(r);)r=Wd(r,t);return r&&Si(r)&&Ya(r)&&!Ou(r)?n:r||W3(e)||n}const w5=async function(e){const t=this.getOffsetParent||$h,n=this.getDimensions,r=await n(e.floating);return{reference:g5(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function y5(e){return wn(e).direction==="rtl"}const v5={convertOffsetParentRelativeRectToViewportRelativeRect:l5,getDocumentElement:An,getClippingRect:h5,getOffsetParent:$h,getElementRects:w5,getClientRects:u5,getDimensions:p5,getScale:hi,isElement:Rt,isRTL:y5};function Mh(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function b5(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,Lr(1,l))||1};let T=!0;function I(O){const F=O[0].intersectionRatio;if(F!==l){if(!T)return s();F?s(!1,F):r=setTimeout(()=>{s(!1,1e-7)},1e3)}F===1&&!Mh(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 _5(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?b5(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?Hr(e):null;l&&v();function v(){const _=Hr(e);b&&!Mh(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,x5=r5,C5=i5,S5=t5,E5=o5,A5=(e,t,n)=>{const r=new Map,i={platform:v5,...n},o={...i.platform,_c:r};return e5(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 Ih(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Gd(e,t){const n=Ih(e);return Math.round(t*n)/n}function Ka(e){const t=ie(e);return gs(()=>{t.current=e}),t}function k5(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!==F.current&&(F.current=L,_(L))},[]),T=o||h,I=s||v,O=ie(null),F=ie(null),S=ie(d),C=l!=null,A=Ka(l),N=Ka(i),D=Ka(u),P=De(()=>{if(!O.current||!F.current)return;const L={placement:t,strategy:n,middleware:p};N.current&&(L.platform=N.current),A5(O.current,F.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&&(F.current=I),T&&I){if(A.current)return A.current(T,I,P);P()}},[T,I,P,A,C]);const se=me(()=>({reference:O,floating:F,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)",...Ih(X.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:G,top:B}},[n,a,X.floating,d.x,d.y]);return me(()=>({...d,update:P,refs:se,elements:X,floatingStyles:J}),[d,P,se,X,J])}const Dh=(e,t)=>({...x5(e),options:[e,t]}),N5=(e,t)=>({...C5(e),options:[e,t]}),T5=(e,t)=>({...S5(e),options:[e,t]}),$5=(e,t)=>({...E5(e),options:[e,t]}),Rh={..._s},M5=Rh.useInsertionEffect,I5=M5||(e=>e());function Oh(e){const t=ie(()=>{});return I5(()=>{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,D5=0;const qd=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+D5++;function R5(){const[e,t]=be(()=>zd?qd():void 0);return Ml(()=>{e==null&&t(qd())},[]),Fe(()=>{zd=!0},[]),e}const O5=Rh.useId,F5=O5||R5;function P5(){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 L5=lt(null),V5=lt(null),H5=()=>{var e;return((e=Ve(L5))==null?void 0:e.id)||null},j5=()=>Ve(V5),B5="data-floating-ui-focusable";function U5(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=F5(),o=ie({}),[s]=be(()=>P5()),a=H5()!=null,[l,u]=be(r.reference),d=Oh((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 W5(e){e===void 0&&(e={});const{nodeId:t}=e,n=U5({...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=j5();Ml(()=>{d&&(f.current=d)},[d]);const m=k5({...e,elements:{...i,...a&&{reference:a}}}),h=De(E=>{const T=Rt(E)?{getBoundingClientRect:()=>E.getBoundingClientRect(),contextElement:E}:E;l(T),m.refs.setReference(T)},[m.refs]),b=De(E=>{(Rt(E)||E===null)&&(f.current=E,s(E)),(Rt(m.refs.reference.current)||m.refs.reference.current===null||E!==null&&!Rt(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,[B5]:""},...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 G5(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 z5=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 Dh(-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),F=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*Lr(a,n.current.length)-1||I.top>=-l||I.bottom>=-l;Jt(()=>i(N))}return r&&(r.current=await Za(Kd({...E,y:F},h.offsetHeight+b+p.clientTop),d)),{y:F}}});function q5(e,t){const{open:n,elements:r}=e,{enabled:i=!0,overflowRef:o,scrollRef:s,onChange:a}=t,l=Oh(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(G3())&&(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 Y5(e){return me(()=>e?typeof e=="string"?{to:e}:e:null,[e])}function Z5(){return Ve(Bi).setReference}function K5(){return Ve(Bi).getReferenceProps}function X5(){let{getFloatingProps:e,slot:t}=Ve(Bi);return De((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}function J5(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 Q5({children:e,enabled:t=!0}){let[n,r]=be(null),[i,o]=be(0),s=ie(null),[a,l]=be(null);eC(a);let u=t&&n!==null&&a!==null,{to:d="bottom",gap:f=0,offset:p=0,padding:m=0,inner:h}=tC(n,a),[b,v="center"]=d.split(" ");tt(()=>{u&&o(0)},[u]);let{refs:_,floatingStyles:x,context:E}=W5({open:u,placement:b==="selection"?v==="center"?"bottom":`bottom-${v}`:v==="center"?`${b}`:`${b}-${v}`,strategy:"absolute",transform:!1,middleware:[Dh({mainAxis:b==="selection"?0:f,crossAxis:p}),N5({padding:m}),b!=="selection"&&T5({padding:m}),b==="selection"&&h?z5({...h,padding:m,overflowRef:s,offset:i,minItemsVisible:Xd,referenceOverflowThreshold:m,onFallbackChange(N){var D,P;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(P=(D=E.elements.floating)==null?void 0:D.childNodes)!=null?P:[])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,$5({padding:m,apply({availableWidth:N,availableHeight:D,elements:P}){Object.assign(P.floating.style,{overflow:"auto",maxWidth:`${N}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${D}px)`})}})].filter(Boolean),whileElementsMounted:_5}),[T=b,I=v]=E.placement.split("-");b==="selection"&&(T="selection");let O=me(()=>({anchor:[T,I].filter(Boolean).join(" ")}),[T,I]),F=q5(E,{overflowRef:s,onChange:o}),{getReferenceProps:S,getFloatingProps:C}=G5([F]),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 eC(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 tC(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=Fh(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 Fh(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,...Fh(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 nC(e,t){let[n,r]=be(t);return!e&&n!==t&&r(t),e?n:t}let _a=lt(null);_a.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 qo(){return Ve(_a)}function Ph({value:e,children:t}){return Q.createElement(_a.Provider,{value:e},t)}function rC({children:e}){return Q.createElement(_a.Provider,{value:null},e)}function iC(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let Jn=[];iC(()=>{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 oC(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:oC(e)}}function Lh(e){let t=de(e),n=ie(!1);Fe(()=>(n.current=!1,()=>{n.current=!0,ha(()=>{n.current&&t()})}),[t])}function sC(){let e=typeof document>"u";return"useSyncExternalStore"in _s?(t=>t.useSyncExternalStore)(_s)(()=>()=>{},()=>!1,()=>!e):!1}function Yo(){let e=sC(),[t,n]=be(Mr.isHandoffComplete);return t&&Mr.isHandoffComplete===!1&&n(!1),Fe(()=>{t!==!0&&n(!0)},[t]),Fe(()=>Mr.handoff(),[]),e?!1:t}let Vh=lt(!1);function aC(){return Ve(Vh)}function Qd(e){return Q.createElement(Vh.Provider,{value:e.force},e.children)}function lC(e){let t=aC(),n=Ve(jh),r=Vi(e),[i,o]=be(()=>{var s;if(!t&&n!==null)return(s=n.current)!=null?s:null;if(Mr.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 Hh=Ye,uC=wt(function(e,t){let n=e,r=ie(null),i=It(t3(f=>{r.current=f}),t),o=Vi(r),s=lC(r),[a]=be(()=>{var f;return Mr.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]),Lh(()=>{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:Hh,name:"Portal"}),a):null});function cC(e,t){let n=It(t),{enabled:r=!0,...i}=e,o=St();return r?Q.createElement(uC,{...i,ref:n}):o({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:Hh,name:"Portal"})}let dC=Ye,jh=lt(null);function fC(e,t){let{target:n,...r}=e,i={ref:It(t)},o=St();return Q.createElement(jh.Provider,{value:n},o({ourProps:i,theirProps:r,defaultTag:dC,name:"Popover.Group"}))}let Il=lt(null);function mC(){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 hC=wt(cC),Bh=wt(fC),Uh=Object.assign(hC,{Group:Bh});function pC(e,t=typeof document<"u"?document.defaultView:null,n){let r=Li(e,"escape");wh(t,"keydown",i=>{r&&(i.defaultPrevented||i.key===yt.Escape&&n(i))})}function gC(){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 wC({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 Wh=lt(null);function ef({children:e,node:t}){let[n,r]=be(null),i=Gh(t??n);return Q.createElement(Wh.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 Gh(e=null){var t;return(t=Ve(Wh))!=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 yC(){let e=ie(0);return ph(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function zh(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 vC="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 bC(e,t){let n=ie(null),r=It(n,t),{initialFocus:i,initialFocusFallback:o,containers:s,features:a=15,...l}=e;Yo()||(a=0);let u=Vi(n);SC(a,{ownerDocument:u});let d=EC(a,{ownerDocument:u,container:n,initialFocus:i,initialFocusFallback:o});AC(a,{ownerDocument:u,container:n,containers:s,previousActiveElement:d});let f=yC(),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=zh(s);n.current instanceof HTMLElement&&E.add(n.current);let T=x.relatedTarget;T instanceof HTMLElement&&T.dataset.headlessuiFocusGuard!=="true"&&(qh(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:vC,name:"FocusTrap"}),m&&Q.createElement(bo,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:Ci.Focusable}))}let _C=wt(bC),xC=Object.assign(_C,{features:Sr});function CC(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 SC(e,{ownerDocument:t}){let n=!!(e&8),r=CC(n);Ru(()=>{n||(t==null?void 0:t.activeElement)===(t==null?void 0:t.body)&&Ln(r())},[n]),Lh(()=>{n&&Ln(r())})}function EC(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 AC(e,{ownerDocument:t,container:n,containers:r,previousActiveElement:i}){let o=Hu(),s=!!(e&4);wh(t==null?void 0:t.defaultView,"focus",a=>{if(!s||!o.current)return;let l=zh(r);n.current instanceof HTMLElement&&l.add(n.current);let u=i.current;if(!u)return;let d=a.target;d&&d instanceof HTMLElement?qh(l,d)?(i.current=d,Ln(d)):(a.preventDefault(),a.stopPropagation(),Ln(u)):Ln(i.current)},!0)}function qh(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function Yh(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||((t=e.as)!=null?t:Kh)!==Ye||Q.Children.count(e.children)===1}let xa=lt(null);xa.displayName="TransitionContext";var kC=(e=>(e.Visible="visible",e.Hidden="hidden",e))(kC||{});function NC(){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 TC(){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 Zh(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 Kh=Ye,Xh=xi.RenderStrategy;function $C(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=Yh(e),I=It(...T?[E,t,x]:t===null?[]:[t]),O=(n=v.unmount)==null||n?tr.Unmount:tr.Hidden,{show:F,appear:S,initial:C}=NC(),[A,N]=be(F?"visible":"hidden"),D=TC(),{register:P,unregister:j}=D;tt(()=>P(E),[P,E]),tt(()=>{if(O===tr.Hidden&&E.current){if(F&&A!=="visible"){N("visible");return}return jt(A,{hidden:()=>j(E),visible:()=>P(E)})}},[A,E,P,j,F,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&&F&&C,L=ie(!1),G=Zh(()=>{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(F),ce(F))},[F,T,i]);let q=!(!i||!T||!se||X),[,R]=bh(q,_,F,{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&&F&&p))==null?void 0:r.trim())||void 0,...vh(R)}),U=0;A==="visible"&&(U|=Ot.Open),A==="hidden"&&(U|=Ot.Closed),R.enter&&(U|=Ot.Opening),R.leave&&(U|=Ot.Closing);let Ae=St();return Q.createElement(Ca.Provider,{value:G},Q.createElement(Ph,{value:U},Ae({ourProps:fe,theirProps:v,defaultTag:Kh,features:Xh,visible:A==="visible",name:"Transition.Child"})))}function MC(e,t){let{show:n,appear:r=!1,unmount:i=!0,...o}=e,s=ie(null),a=Yh(e),l=It(...a?[s,t]:t===null?[]:[t]);Yo();let u=qo();if(n===void 0&&u!==null&&(n=(u&Ot.Open)===Ot.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=Zh(()=>{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:Ye,children:Q.createElement(Jh,{ref:l,..._,...o,beforeEnter:x,beforeLeave:E})},theirProps:{},defaultTag:Ye,features:Xh,visible:d==="visible",name:"Transition"})))}function IC(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(Jh,{ref:t,...e}))}let Dl=wt(MC),Jh=wt($C),ju=wt(IC),Qh=Object.assign(Dl,{Child:ju,Root:Dl});var DC=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(DC||{}),RC=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(RC||{});let OC={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 FC(e,t){return jt(t.type,OC,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&Ot.Open)===Ot.Open);let h=ie(null),b=It(h,t),v=Vi(h),_=i?0:1,[x,E]=Br(FC,{titleId:null,descriptionId:null,panelRef:zs()}),T=de(()=>o(!1)),I=de(ce=>E({type:0,id:ce})),O=Yo()?_===0:!1,[F,S]=mC(),C={get current(){var ce;return(ce=x.panelRef.current)!=null?ce:h.current}},A=Gh(),{resolveContainers:N}=wC({mainTreeNode:A,portals:F,defaultContainers:[C]}),D=m!==null?(m&Ot.Closing)===Ot.Closing:!1;uh(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]})}),gh(O,N,ce=>{ce.preventDefault(),T()}),pC(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()}),yh(u||D?!1:O,v,N),ch(O,h,T);let[P,j]=r3(),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":P,unmount:d},L=!gC(),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(rC,null,Q.createElement(Qd,{force:!0},Q.createElement(Uh,null,Q.createElement(Bu.Provider,{value:se},Q.createElement(Bh,{target:h},Q.createElement(Qd,{force:!1},Q.createElement(j,{slot:X},Q.createElement(S,null,Q.createElement(xC,{initialFocus:s,initialFocusFallback:h,containers:N,features:G},Q.createElement(h3,{value:T},B({ourProps:J,theirProps:f,slot:X,defaultTag:PC,features:LC,visible:_===0,name:"Dialog"})))))))))))}),PC="div",LC=xi.RenderStrategy|xi.Static;function VC(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(Qh,{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 HC="div";function jC(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=It(t,l.panelRef),d=me(()=>({open:s===0}),[s]),f=de(v=>{v.stopPropagation()}),p={ref:u,id:r,onClick:f},m=i?ju:Ye,h=i?{unmount:a}:{},b=St();return Q.createElement(m,{...h},b({ourProps:p,theirProps:o,slot:d,defaultTag:HC,name:"Dialog.Panel"}))}let BC="div";function UC(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:Ye,u=n?{unmount:o}:{},d=St();return Q.createElement(l,{...u},d({ourProps:a,theirProps:r,slot:s,defaultTag:BC,name:"Dialog.Backdrop"}))}let WC="h2";function GC(e,t){let n=an(),{id:r=`headlessui-dialog-title-${n}`,...i}=e,[{dialogState:o,setTitleId:s}]=Ea("Dialog.Title"),a=It(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:WC,name:"Dialog.Title"})}let zC=wt(VC),qC=wt(jC),YC=wt(UC),ZC=wt(GC),Uu=Object.assign(zC,{Panel:qC,Title:ZC,Description:a3});function KC(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 XC(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 JC(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=XC(r).trim().toLowerCase();return t.current=i,n.current=o,o})}var QC=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(QC||{}),e6=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(e6||{}),t6=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(t6||{}),n6=(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))(n6||{});function el(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=mh(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 r6={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 i6(e,t){return jt(t.type,r6,e,t)}let o6=Ye;function s6(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 _=It(t),x=Wx(o),[E=m?[]:void 0,T]=Ux(i,l,x),[I,O]=Br(i6,{dataRef:zs(),listboxState:h?0:1,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,optionsVisible:!1,buttonElement:null,optionsElement:null,__demoMode:h}),F=ie({static:!1,hold:!1}),S=ie(new Map),C=g3(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:F,listRef:S}),[E,f,d,m,I,S]);tt(()=>{I.dataRef.current=N},[N]);let D=N.listboxState===0;gh(D,[N.buttonElement,N.optionsElement],(ae,pe)=>{var ee;O({type:1}),fh(pe,Du.Loose)||(ae.preventDefault(),(ee=N.buttonElement)==null||ee.focus())});let P=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]=l3({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(Q5,null,Q.createElement(Wu.Provider,{value:Ae},Q.createElement(ka.Provider,{value:N},Q.createElement(Ph,{value:jt(N.listboxState,{0:Ot.Open,1:Ot.Closed})},a!=null&&E!=null&&Q.createElement(Kx,{disabled:f,data:{[a]:E},form:s,onReset:ye}),Ie({ourProps:Ce,theirProps:b,slot:P,defaultTag:o6,name:"Listbox"}))))))}let a6="button";function l6(e,t){var n;let r=Zo("Listbox.Button"),i=Aa("Listbox.Button"),o=an(),s=nh(),{id:a=s||`headlessui-listbox-button-${o}`,disabled:l=r.disabled||!1,autoFocus:u=!1,...d}=e,f=It(t,Z5(),i.setButtonElement),p=K5(),m=de(N=>{switch(N.key){case yt.Enter:Gx(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(Qx(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()),_=sh([a]),x=n3(),{isFocusVisible:E,focusProps:T}=Mx({autoFocus:u}),{isHovered:I,hoverProps:O}=$x({isDisabled:l}),{pressed:F,pressProps:S}=Px({disabled:l}),C=me(()=>({open:r.listboxState===0,active:F||r.listboxState===0,disabled:l,invalid:r.invalid,value:r.value,hover:I,focus:E,autofocus:u}),[r.listboxState,r.value,l,I,E,F,r.invalid,u]),A=Jm(p(),{ref:f,id:a,type:$3(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:a6,name:"Listbox.Button"})}let ep=lt(!1),u6="div",c6=xi.RenderStrategy|xi.Static;function d6(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=Y5(s),[p,m]=be(null);f&&(a=!0);let h=Zo("Listbox.Options"),b=Aa("Listbox.Options"),v=Vi(h.optionsElement),_=qo(),[x,E]=bh(u,p,_!==null?(_&Ot.Open)===Ot.Open:h.listboxState===0);ch(x,h.buttonElement,b.closeListbox);let T=h.__demoMode?!1:l&&h.listboxState===0;yh(T,v);let I=h.__demoMode?!1:l&&h.listboxState===0;uh(I,{allowed:De(()=>[h.buttonElement,h.optionsElement],[h.buttonElement,h.optionsElement])});let O=h.listboxState!==0,F=KC(O,h.buttonElement)?!1:x,S=x&&h.listboxState===1,C=nC(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}}})(),[P,j]=J5(D),se=X5(),X=It(t,f?P: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()),k3(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=Jm(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":y3(h.buttonElement,!0).width},...vh(E)}),q=St();return Q.createElement(Uh,{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:u6,features:c6,visible:F,name:"Listbox.Options"})))}let f6="div";function m6(e,t){let n=an(),{id:r=`headlessui-listbox-option-${n}`,disabled:i=!1,value:o,...s}=e,a=Ve(ep)===!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=JC(p),h=pr({disabled:i,value:o,domRef:p,get textValue(){return m()}}),b=It(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=F3(),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]),F=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:F,theirProps:s,slot:O,defaultTag:f6,name:"Listbox.Option"})}let h6=Ye;function p6(e,t){let{options:n,placeholder:r,...i}=e,o={ref:It(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(ep.Provider,{value:!0},u({ourProps:o,theirProps:{...i,children:Q.createElement(Q.Fragment,null,r&&l?r:n)},slot:a,defaultTag:h6,name:"ListboxSelectedOption"}))}let g6=wt(s6),tp=wt(l6),w6=f3,np=wt(d6),rp=wt(m6),y6=wt(p6),v6=Object.assign(g6,{Button:tp,Label:w6,Options:np,Option:rp,SelectedOption:y6}),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 ip(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(YC,Gn(e,1))}function zr(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 b6(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=[zr(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 _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="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 op(){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=[_6(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 sp(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 ap(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=[sp(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 lp(e){return c(v6,Gn(e,1))}class Ws extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ClassName","Children"]}}function up(e){return c(tp,Gn(e,1))}class cp extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ClassName"]}}function dp(e,t){return c(np,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 fp(e){return c(rp,Gn(e,1))}function mp(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],X1(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=[lp(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=[up(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=[mp(20,20)],["children",y.Children.toArray(Array.from(E))])])))]]))}))}))),dp(K($(()=>k(new cp(`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(fp(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 hp(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 pp(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 x6(e){return e.startsWith("614")&&e.length===11?`+${e}`:e}function C6(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 gp(e){return C6(x6(Xf(e," ","")))}function S6(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=[zr(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",gp(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 E6(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=fx(l,u);d=Gr(()=>Wr(()=>f,(T,I)=>mx(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(cx(p)(T))return()=>{m(new Zn(1,[T]))}},E=T=>{if(dx(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=[b6(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(op()):k(Se()),$(()=>H(_&&p.Status.tag===0?k(ap("Some required fields are incomplete. Fill in all required fields to continue.")):k(Se()),$(()=>{let I,O,F,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]),(F=[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 P;return k((P=[c("div",{className:"text-center text-xs font-medium leading-none",children:`${p.NumberOfDestinationFieldsMapped} of 5 mapped`})],["children",y.Children.toArray(Array.from(P))]))}))))))],["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(F))])]))),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,[]),P=>{let j;m((j=[new ne(0,[]),P],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,[]),P=>{let j;m((j=[new ne(1,[]),P],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,[]),P=>{let j;m((j=[new ne(2,[]),P],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,[]),P=>{let j;m((j=[new ne(3,[]),P],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,[]),P=>{let j;m((j=[new ne(4,[]),P],new Zn(0,[j[0],j[1]])))},x(new ne(4,[])),E(new ne(4,[])))),$(()=>{let P,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"],(P=[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=[hp(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(P))])])))),$(()=>{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(pp("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(S6(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"]}},A6=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 wp(e,t,n){let r;const i=t.fields[0],o=Xt(s=>s,Ts(Dc(n)));return new A6(et(s=>[s,$i(s,o,{Equals:te,GetHashCode:Cs})?new So(1,[]):new So(0,[])],i),n,o.length,Wg(na(s=>{let a;return a=Xt(l=>l,s),a.length!==0},Dc(n))),Fm(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 J_(le(r),mr(Me(r)))),e)}function k6(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 N6(e,t){let n;if(t==null){let r=!1;const i=o=>{const s=k6(e,o);return!Rr(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],dg(o[1],{Compare:Jl}))],G_(o=>o[0],Ts([r.Tail,[r.Head]]),{Equals:te,GetHashCode:Cs})),{Compare:Et});n=[ui([[new mt(0,[]),Je(Ar(i,new mt(0,[])),Qn)],[new mt(1,[]),Je(Ar(i,new mt(1,[])),Qn)],[new mt(2,[]),Je(Ar(i,new mt(2,[])),Qn)],[new mt(3,[]),Je(Ar(i,new mt(3,[])),Qn)]],{Compare:Et}),!1]}return[wp(n[1],e,n[0]),we()]}function yp(e,t){const n=Or(e.Selections,t);let r;switch(!Rr(te,n,Se())&&n.length===1&&he(0,n)!=null?r=0:r=1,r){case 0:return!0;default:return!1}}function vp(e,t){let n;return e.DiscardedValues.length>0?(n=Or(e.Selections,t),!n.some(r=>r==null)):!1}function T6(e,t,n){const r=Or(e.Selections,t);return!Rr(te,r,Se())&&r.length===1?!1:$i(n,r,{Equals:te,GetHashCode:on})}function $6(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,Or(e.Selections,t),{Equals:te,GetHashCode:on}):!1}function M6(e,t,n){let r,i;const o=h=>wp(n.Prefilled,e,h);let s,a,l,u,d,f,p,m;switch(t.tag){case 1:{yp(n,t.fields[0])?(s=1,l=t.fields[0]):s=4;break}case 2:{T6(n,t.fields[0],t.fields[1])?(s=2,u=t.fields[0],d=t.fields[1]):s=4;break}case 3:{$6(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:vp(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=>Fm(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 I6(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 D6(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(Rr(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:Pm(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(lp(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=[up(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=[mp(20,20)],["children",y.Children.toArray(Array.from(E))])])))]])])),dp(ue(new cp("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(fp(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,[F=>[c("span",{className:At(" ",K($(()=>H(k("px-4 py-2 block truncate"),$(()=>{const S=F.active;let C;switch(F.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,ag(t))?k(c("button",w(K($(()=>{let _;return H(k((_=[I6(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 R6(e){let t,n,r;const i=e.back,o=e.next,s=e.employmentBasisColumn,a=e.existingMappings;let l;const u=N6(s,a);l=Gr(()=>Wr(()=>u,(h,b)=>M6(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(op()):k(Se()),$(()=>H(m&&d.ValidatedMappings==null?k(ap("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(F=>{let S,C,A;const N=F[0];return k(D6(N,F[1],d.IncomingValues,(S=N,yp(d,S)?()=>{f(new ss(1,[S]))}:void 0),(C=N,vp(d,C)?()=>{f(new ss(0,[C]))}:void 0),(A=N,Or(d.Selections,A).length>1?D=>{let P;f((P=[A,D],new ss(2,[P[0],P[1]])))}:void 0),D=>{let P;f((P=[N,D[0],D[1]],new ss(3,[P[0],P[1],P[2]])))}))},Iw(d.Selections)),$(()=>{let F,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"],(F=[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=[hp(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 P=d.DiscardedValues.length|0;return k(P===1?["children","Remaining 1 unused field:"]:["children",`Remaining ${P} unused fields:`])}))))))),$(()=>{let P;return k(c("ul",w(g([["className","pl-2 font-normal overflow-hidden list-inside list-disc"],(P=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(P))])]))))})))),["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(F))])])))),$(()=>{let P;return k(c("div",w(g([["className","w-[640px] pt-4 border-t border-gray-200 flex-col justify-start items-start flex"],(P=K($(()=>H(d.DiscardedValues.length===0?k(pp("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(P))])]))))}))})))),["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 O6 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 bp(e,t,n){const r=n!=null?[n[0].fields[0].fields[0],Q_(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(F=>F,[(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:gp(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(),[$w(_[1],E,new Ct(()=>T,F=>{T=F})),T]),x[0]?x[1]:void 0)),b==null?void 0:(I=b,[Cr(new ne(4,[])),I]))]),{Compare:Ur})},e.fields[0]))}function F6(e,t,n){const r=Cr(n);return[Ar(e.Data,r),!uu(i=>i.PropName===r,t)]}function P6(e,t){const n=Hm(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=Hm(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 L6(e,t,n,r){return Z.Delay(()=>Z.TryWith(Z.Delay(()=>{let i,o,s;return Z.ReturnFrom((i=new um(r!=null,lu((a,l)=>new Cu(a+2,l),(o=[t,n,r],bp(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=Je((f=w0(x=>x.RowId===d.RowId,u.fields[0].Errors),f==null?void 0:f.FieldErrors),at()),_=x=>F6(d,v,x);return new O6(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:X_(h)),m==null?void 0:Pm(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=P6(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 V6(e,t,n,r,i){return Z.Delay(()=>Z.TryWith(Z.Delay(()=>{let o;return Z.Bind(e(new cm(r!=null,te(i,new Nt(0,[])),lu((s,a)=>new Cu(s+2,a),(o=[t,n,r],bp(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 ri=class extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Validated","SetInviteTiming","ShowOnlyRowsWithErrors","PreviewNextPage","PreviewPreviousPage","DownloadedErrorReport"]}},ii=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 H6(e,t,n){return[new ii(0,[]),hm(g([Pn(t,new gn(5,[{RowCount:ix(n)}])),gm(r=>{wm(r)},e,void 0,r=>new ri(0,[r]))]))]}function ls(e,t,n){const r=(e-1)*20|0,i=kg(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 _p(e){return e.PageNo>1}function xp(e){return e.ShowingOnlyRowsWithErrors?e.RowTo<e.NumberOfInvalidRows:e.RowTo<e.NumberOfRows}function j6(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
|
-
`),
|
|
51
|
-
`;return t?`${o},${s},${a},${l},${u},${Je(i.EmploymentBasis[0],"")},${i.RowNumber}${d}`:`${o},${s},${a},${l},${u},${i.RowNumber}${d}`},n))}function B6(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&&xp(r.fields[0])?(o=4,p=r.fields[0]):(o=7,h=r);break}case 4:{r.tag===1&&_p(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 ii(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 ii(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 ii(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 ii(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 ii(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 Cp(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 Sp(e,t,n){let r,i,o,s,a,l,u,d,f,p,m,h,b,v,_,x,E,T,I,O,F,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=[zr(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"],(F=[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(F))])])))],["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"}),Cp(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 U6(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=[zr(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 W6=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"})))),G6=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"})),z6=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)"})))),q6=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})))),Y6=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)"})))),Z6=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"})),K6=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"})),X6=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 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){return gr(K6,e)}function o4(e){return gr(X6,e)}function s4(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=[zr(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=[t4([])],["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=[ip(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 a4(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 l4(e){return`${iu(e,".")}.`}function af(e){return iu(e,".")}function u4(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:[l4(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 Jr(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 c4(){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=[Jr("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=[Jr("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=[Jr("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=[Jr("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=[Jr("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=[Jr("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 d4(e){const t=et(r=>r,mr(e)),n=new Blob(t,{type:"text/csv;charset=utf-8;"});return window.URL.createObjectURL(n)}const f4=(()=>{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 m4(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=H6(()=>L6(f,d,u,l),i,d);p=Gr(()=>Wr(()=>m,(O,F)=>B6(o,i,O,F),(O,F)=>{}),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=[Sp(f4,b[0],()=>{v(!1)}),U6(_[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,F,S;const C=p[0];if(C.tag===1){const A=C.fields[0],N=se=>{h(new ri(1,[se]))},D=se=>{h(new ri(2,[se]))},P=xp(A)?se=>{h(new ri(3,[]))}:void 0,j=_p(A)?se=>{h(new ri(4,[]))}:void 0;return k((O=[c("div",w(g([["className","flex-col justify-start items-start gap-6 inline-flex"],(F=K($(()=>H(k(s4(T,A.NumberOfValidRows,()=>{T&&I(!1)},()=>{T&&a([new Lm(jn(Le(se=>se[0],na(se=>se[1].Errors==null,Kg(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=[a4(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:d4((q=[A,l!=null],j6(q[0],q[1]))),onClick:R=>{h(new ri(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 Pt=V(z.Errors).Details;return Pt==null?ht():k(c("div",w(g([["className","pl-1 text-amber-700 items-center inline-flex"],(dt=[c(u4,{text:Pt,children:[Q6([])]})],["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=P,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,Pt,Ze,Lt,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=[J6([]),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",Vt=>{N(new Nt(1,[]))}],(dt=[c("input",w(g([["id",nt(new Nt(1,[]))],["name","InviteTiming"],["type","radio"],(Pt="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",Pt]),["checked",te(A.InviteTiming,new Nt(1,[]))],["onChange",Vt=>{Vt.target.checked,N(new Nt(1,[]))}]])))],["children",y.Children.toArray(Array.from(dt))])]))),c("div",w(g([["className","ml-3 text-sm/6"],(Ze=[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(Ze))])])))],["children",y.Children.toArray(Array.from(xe))])])))],["children",y.Children.toArray(Array.from(Be))])]))),c("div",w(ue((Lt=[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",Vt=>{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",Vt=>{Vt.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(Lt))]))))],["children",y.Children.toArray(Array.from(ke))]))))],["children",y.Children.toArray(Array.from(Ue))])])))],["children",y.Children.toArray(Array.from(z))])])))):ht(),$(()=>{let Vt,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"],(Vt=[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",kp=>{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",kp=>{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(Vt))])]))))}))}))}))})))),["children",y.Children.toArray(Array.from(F))])])))],["children",y.Children.toArray(Array.from(O))]))}else return k((S=[c4()],["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
|
|
48
|
+
`))}else{let p=d.props,m=p==null?void 0:p.className,h=typeof m=="function"?(..._)=>Sl(m(..._),l.className):Sl(m,l.className),b=h?{className:h}:{},v=zm(d.props,Yn(Ga(l,["ref"])));for(let _ in f)_ in v&&delete f[_];return Zl(d,Object.assign({},v,f,u,{ref:i(Fx(d),u.ref)},b))}return c(o,Object.assign({},Ga(l,["ref"]),o!==Ye&&u,o!==Ye&&f),d)}function Rx(){let e=se([]),t=Re(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 Ox(...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 qm(...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(zl(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Yn(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Ga(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function Fx(e){return Q.version.split(".")[0]>="19"?e.props.ref:e.ref}function Px(e,t,n){let[r,i]=xe(n),o=e!==void 0,s=se(o),a=se(!1),l=se(!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,fe(u=>(o||i(u),t==null?void 0:t(u)))]}function Lx(e){let[t]=xe(e);return t}function Ym(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))Km(n,Zm(t,r),i);return n}function Zm(e,t){return e?e+"["+t+"]":t}function Km(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())Km(e,Zm(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,""]):Ym(n,t,e)}function Vx(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 Hx="span";var xi=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(xi||{});function jx(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:Hx,name:"Hidden"})}let yo=wt(jx),Bx=lt(null);function Ux({children:e}){let t=Ve(Bx);if(!t)return Q.createElement(Q.Fragment,null,e);let{target:n}=t;return n?zs(Q.createElement(Q.Fragment,null,e),n):null}function Wx({data:e,form:t,disabled:n,onReset:r,overrides:i}){let[o,s]=xe(null),a=fr();return Fe(()=>{if(r&&o)return a.addEventListener(o,"reset",r)},[o,t,r]),Q.createElement(Ux,null,Q.createElement(Gx,{setForm:s,formId:t}),Ym(e).map(([l,u])=>Q.createElement(yo,{features:xi.Hidden,...Yn({key:l,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:l,value:u,...i})})))}function Gx({setForm:e,formId:t}){return Fe(()=>{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:Q.createElement(yo,{features:xi.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:n=>{if(!n)return;let r=n.closest("form");r&&e(r)}})}let zx=lt(void 0);function Xm(){return Ve(zx)}function qx(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&&Yx(n)?!1:r}function Yx(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let Jm=Symbol();function Zx(e,t=!0){return Object.assign(e,{[Jm]:t})}function It(...e){let t=se(e);Fe(()=>{t.current=e},[e]);let n=fe(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[Jm]))?void 0:n}let ma=lt(null);ma.displayName="DescriptionContext";function Qm(){let e=Ve(ma);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,Qm),t}return e}function Kx(){var e,t;return(t=(e=Ve(ma))==null?void 0:e.value)!=null?t:void 0}function Xx(){let[e,t]=xe([]);return[e.length>0?e.join(" "):void 0,me(()=>function(n){let r=fe(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(ma.Provider,{value:i},n.children)},[t])]}let Jx="p";function Qx(e,t){let n=rn(),r=$u(),{id:i=`headlessui-description-${n}`,...o}=e,s=Qm(),a=It(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:Jx,name:s.name||"Description"})}let e3=wt(Qx),t3=Object.assign(e3,{});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 ha=lt(null);ha.displayName="LabelContext";function eh(){let e=Ve(ha);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,eh),t}return e}function th(e){var t,n,r;let i=(n=(t=Ve(ha))==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 n3({inherit:e=!1}={}){let t=th(),[n,r]=xe([]),i=e?[t,...n].filter(Boolean):n;return[i.length>0?i.join(" "):void 0,me(()=>function(o){let s=fe(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(ha.Provider,{value:a},o.children)},[r])]}let r3="label";function i3(e,t){var n;let r=rn(),i=eh(),o=Xm(),s=$u(),{id:a=`headlessui-label-${r}`,htmlFor:l=o??((n=i.props)==null?void 0:n.htmlFor),passive:u=!1,...d}=e,f=It(t);tt(()=>i.register(a),[a,i.register]);let p=fe(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?r3:"div",name:i.name||"Label"})}let o3=wt(i3),s3=Object.assign(o3,{}),a3=lt(()=>{});function l3({value:e,children:t}){return Q.createElement(a3.Provider,{value:e},t)}function u3(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 c3(e=u3){return Re((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 d3(e){if(e===null)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function f3(e,t=!1){let[n,r]=Hr(()=>({}),{}),i=me(()=>d3(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 m3=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 nh(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 rh(e){return Gs(e.subscribe,e.getSnapshot,e.getSnapshot)}let h3=new m3(()=>nh(()=>[],{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 Pi(e,t){let n=h3.get(t),r=rn(),i=rh(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 El=new Map,co=new Map;function Td(e){var t;let n=(t=co.get(e))!=null?t:0;return co.set(e,n+1),n!==0?()=>$d(e):(El.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>$d(e))}function $d(e){var t;let n=(t=co.get(e))!=null?t:1;if(n===1?co.delete(e):co.set(e,n-1),n!==1)return;let r=El.get(e);r&&(r["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,El.delete(e))}function ih(e,{allowed:t,disallowed:n}={}){let r=Pi(e,"inert-others");tt(()=>{var i,o;if(!r)return;let s=Un();for(let l of(i=n==null?void 0:n())!=null?i:[])l&&s.add(Td(l));let a=(o=t==null?void 0:t())!=null?o:[];for(let l of a){if(!l)continue;let u=Fi(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(Td(f));d=d.parentElement}}return s.dispose},[r,t,n])}function oh(e,t,n){let r=mr(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=Un();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 Ps=["[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(","),p3=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var un=(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))(un||{}),Al=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Al||{}),g3=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(g3||{});function sh(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Ps)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}function w3(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(p3)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Mu=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Mu||{});function ah(e,t=0){var n;return e===((n=Fi(e))==null?void 0:n.body)?!1:Vt(t,{0(){return e.matches(Ps)},1(){let r=e;for(;r!==null;){if(r.matches(Ps))return!0;r=r.parentElement}return!1}})}var y3=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(y3||{});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 v3=["textarea","input"].join(",");function b3(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,v3))!=null?n:!1}function lh(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 _3(e,t){return fi(sh(),t,{relativeTo:e})}function fi(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?lh(e):e:t&64?w3(e):sh(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&&b3(p)&&p.select(),2}function uh(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function x3(){return/Android/gi.test(window.navigator.userAgent)}function C3(){return uh()||x3()}function eo(e,t,n,r){let i=mr(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 ch(e,t,n,r){let i=mr(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 Md=30;function dh(e,t,n){let r=Pi(e,"outside-click"),i=mr(n),o=Re(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!ah(d,Mu.Loose)&&d.tabIndex!==-1&&l.preventDefault(),i.current(l,d)},[i,t]),s=se(null);eo(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),eo(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),eo(r,"click",l=>{C3()||s.current&&(o(l,()=>s.current),s.current=null)},!0);let a=se({x:0,y:0});eo(r,"touchstart",l=>{a.current.x=l.touches[0].clientX,a.current.y=l.touches[0].clientY},!0),eo(r,"touchend",l=>{let u={x:l.changedTouches[0].clientX,y:l.changedTouches[0].clientY};if(!(Math.abs(u.x-a.current.x)>=Md||Math.abs(u.y-a.current.y)>=Md))return o(l,()=>l.target instanceof HTMLElement?l.target:null)},!0),ch(r,"blur",l=>o(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Li(...e){return me(()=>Fi(...e),[...e])}function fh(e,t,n,r){let i=mr(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 S3(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 E3(){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 A3(){return uh()?{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=Un();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 k3(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function N3(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Ar=nh(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Un(),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:N3(n)},i=[A3(),E3(),k3()];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)}});Ar.subscribe(()=>{let e=Ar.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)&&Ar.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Ar.dispatch("TEARDOWN",n)}});function T3(e,t,n=()=>({containers:[]})){let r=rh(Ar),i=t?r.get(t):void 0,o=i?i.count>0:!1;return tt(()=>{if(!(!t||!e))return Ar.dispatch("PUSH",t,n),()=>Ar.dispatch("POP",t,n)},[e,t]),o}function mh(e,t,n=()=>[document.body]){let r=Pi(e,"scroll-lock");T3(r,t,i=>{var o;return{containers:[...(o=i.containers)!=null?o:[],n]}})}function Id(e){return[e.screenX,e.screenY]}function $3(){let e=se([-1,-1]);return{wasMoved(t){let n=Id(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=Id(t)}}}function M3(e=0){let[t,n]=xe(e),r=Re(l=>n(l),[t]),i=Re(l=>n(u=>u|l),[t]),o=Re(l=>(t&l)===l,[t]),s=Re(l=>n(u=>u&~l),[n]),a=Re(l=>n(u=>u^l),[n]);return{flags:t,setFlag:r,addFlag:i,hasFlag:o,removeFlag:s,toggleFlag:a}}var I3={},Dd,Rd;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((Dd=process==null?void 0:I3)==null?void 0:Dd.NODE_ENV)==="test"&&typeof((Rd=Element==null?void 0:Element.prototype)==null?void 0:Rd.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 D3=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(D3||{});function hh(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function ph(e,t,n,r){let[i,o]=xe(n),{hasFlag:s,addFlag:a,removeFlag:l}=M3(e&&i?3:0),u=se(!1),d=se(!1),f=fr();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),R3(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 R3(e,{prepare:t,run:n,done:r,inFlight:i}){let o=Un();return F3(e,{prepare:t,inFlight:i}),o.nextFrame(()=>{n(),o.requestAnimationFrame(()=>{o.add(O3(e,r))})}),o.dispose}function O3(e,t){var n,r;let i=Un();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 F3(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 Iu(e,t){let n=se([]),r=fe(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 pa(){return typeof window<"u"}function Vi(e){return gh(e)?(e.nodeName||"").toLowerCase():"#document"}function Kt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Sn(e){var t;return(t=(gh(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function gh(e){return pa()?e instanceof Node||e instanceof Kt(e).Node:!1}function Rt(e){return pa()?e instanceof Element||e instanceof Kt(e).Element:!1}function bn(e){return pa()?e instanceof HTMLElement||e instanceof Kt(e).HTMLElement:!1}function Od(e){return!pa()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Kt(e).ShadowRoot}function Uo(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=mn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function P3(e){return["table","td","th"].includes(Vi(e))}function ga(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Du(e){const t=Ru(),n=Rt(e)?mn(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 L3(e){let t=ar(e);for(;bn(t)&&!Ci(t);){if(Du(t))return t;if(ga(t))return null;t=ar(t)}return null}function Ru(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ci(e){return["html","body","#document"].includes(Vi(e))}function mn(e){return Kt(e).getComputedStyle(e)}function wa(e){return Rt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ar(e){if(Vi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Od(e)&&e.host||Sn(e);return Od(t)?t.host:t}function wh(e){const t=ar(e);return Ci(t)?e.ownerDocument?e.ownerDocument.body:e.body:bn(t)&&Uo(t)?t:wh(t)}function vo(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=wh(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=Kt(i);if(o){const a=kl(s);return t.concat(s,s.visualViewport||[],Uo(i)?i:[],a&&n?vo(a):[])}return t.concat(i,vo(i,[],n))}function kl(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function V3(){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 Fr=Math.min,Tt=Math.max,bo=Math.round,ns=Math.floor,yn=e=>({x:e,y:e}),H3={left:"right",right:"left",bottom:"top",top:"bottom"},j3={start:"end",end:"start"};function Fd(e,t,n){return Tt(e,Fr(t,n))}function Hi(e,t){return typeof e=="function"?e(t):e}function lr(e){return e.split("-")[0]}function Wo(e){return e.split("-")[1]}function yh(e){return e==="x"?"y":"x"}function vh(e){return e==="y"?"height":"width"}function Pr(e){return["top","bottom"].includes(lr(e))?"y":"x"}function bh(e){return yh(Pr(e))}function B3(e,t,n){n===void 0&&(n=!1);const r=Wo(e),i=bh(e),o=vh(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=Ls(s)),[s,Ls(s)]}function U3(e){const t=Ls(e);return[Nl(e),t,Nl(t)]}function Nl(e){return e.replace(/start|end/g,t=>j3[t])}function W3(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 G3(e,t,n,r){const i=Wo(e);let o=W3(lr(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(Nl)))),o}function Ls(e){return e.replace(/left|right|bottom|top/g,t=>H3[t])}function z3(e){return{top:0,right:0,bottom:0,left:0,...e}}function q3(e){return typeof e!="number"?z3(e):{top:e,right:e,bottom:e,left:e}}function Vs(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 Pd(e,t,n){let{reference:r,floating:i}=e;const o=Pr(t),s=bh(t),a=vh(s),l=lr(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(Wo(t)){case"start":m[s]-=p*(n&&u?-1:1);break;case"end":m[s]+=p*(n&&u?-1:1);break}return m}const Y3=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}=Pd(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}=Pd(u,p,l)),b=-1)}return{x:d,y:f,placement:p,strategy:i,middlewareData:m}};async function ya(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}=Hi(t,e),h=q3(m),v=a[p?f==="floating"?"reference":"floating":f],_=Vs(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=Vs(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 Z3=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}=Hi(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const _=lr(i),x=Pr(a),E=lr(a)===a,T=await(l.isRTL==null?void 0:l.isRTL(u.floating)),I=p||(E||!b?[Ls(a)]:U3(a)),O=h!=="none";!p&&O&&I.push(...G3(a,b,h,T));const F=[a,...I],S=await ya(t,v),C=[];let A=((r=o.flip)==null?void 0:r.overflows)||[];if(d&&C.push(S[_]),f){const j=B3(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,ae=F[j];if(ae)return{data:{index:j,overflows:A},reset:{placement:ae}};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 P;const J=(P=A.filter(L=>{if(O){const G=Pr(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:P[0];J&&(X=J);break}case"initialPlacement":X=a;break}if(i!==X)return{reset:{placement:X}}}return{}}}};async function K3(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=lr(n),a=Wo(n),l=Pr(n)==="y",u=["left","top"].includes(s)?-1:1,d=o&&l?-1:1,f=Hi(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 X3=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 K3(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}}}}},J3=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}=Hi(e,t),u={x:n,y:r},d=await ya(t,l),f=Pr(lr(i)),p=yh(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=Fd(x,m,E)}if(s){const v=f==="y"?"top":"left",_=f==="y"?"bottom":"right",x=h+d[v],E=h-d[_];h=Fd(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}}}}}},Q3=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}=Hi(e,t),d=await ya(t,u),f=lr(i),p=Wo(i),m=Pr(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=Fr(b-d[v],x),I=Fr(h-d[_],E),O=!t.middlewareData.shift;let F=T,S=I;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(S=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(F=x),O&&!p){const A=Tt(d.left,0),N=Tt(d.right,0),D=Tt(d.top,0),P=Tt(d.bottom,0);m?S=h-2*(A!==0||N!==0?A+N:Tt(d.left,d.right)):F=b-2*(D!==0||P!==0?D+P:Tt(d.top,d.bottom))}await l({...t,availableWidth:S,availableHeight:F});const C=await s.getDimensions(a.floating);return h!==C.width||b!==C.height?{reset:{rects:!0}}:{}}}};function _h(e){const t=mn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=bn(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=bo(n)!==o||bo(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function Ou(e){return Rt(e)?e:e.contextElement}function mi(e){const t=Ou(e);if(!bn(t))return yn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=_h(t);let s=(o?bo(n.width):n.width)/r,a=(o?bo(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const e5=yn(0);function xh(e){const t=Kt(e);return!Ru()||!t.visualViewport?e5:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function t5(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Kt(e)?!1:t}function Lr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Ou(e);let s=yn(1);t&&(r?Rt(r)&&(s=mi(r)):s=mi(e));const a=t5(o,n,r)?xh(o):yn(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=Kt(o),m=r&&Rt(r)?Kt(r):r;let h=p,b=kl(h);for(;b&&r&&m!==h;){const v=mi(b),_=b.getBoundingClientRect(),x=mn(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=Kt(b),b=kl(h)}}return Vs({width:d,height:f,x:l,y:u})}function Fu(e,t){const n=wa(e).scrollLeft;return t?t.left+n:Lr(Sn(e)).left+n}function Ch(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:Fu(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function n5(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=Sn(r),a=t?ga(t.floating):!1;if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},u=yn(1);const d=yn(0),f=bn(r);if((f||!f&&!o)&&((Vi(r)!=="body"||Uo(s))&&(l=wa(r)),bn(r))){const m=Lr(r);u=mi(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}const p=s&&!f&&!o?Ch(s,l,!0):yn(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 r5(e){return Array.from(e.getClientRects())}function i5(e){const t=Sn(e),n=wa(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+Fu(e);const a=-n.scrollTop;return mn(r).direction==="rtl"&&(s+=Tt(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}function o5(e,t){const n=Kt(e),r=Sn(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=Ru();(!u||u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a,y:l}}function s5(e,t){const n=Lr(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=bn(e)?mi(e):yn(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 Ld(e,t,n){let r;if(t==="viewport")r=o5(e,n);else if(t==="document")r=i5(Sn(e));else if(Rt(t))r=s5(t,n);else{const i=xh(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Vs(r)}function Sh(e,t){const n=ar(e);return n===t||!Rt(n)||Ci(n)?!1:mn(n).position==="fixed"||Sh(n,t)}function a5(e,t){const n=t.get(e);if(n)return n;let r=vo(e,[],!1).filter(a=>Rt(a)&&Vi(a)!=="body"),i=null;const o=mn(e).position==="fixed";let s=o?ar(e):e;for(;Rt(s)&&!Ci(s);){const a=mn(s),l=Du(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Uo(s)&&!l&&Sh(e,s))?r=r.filter(d=>d!==s):i=a,s=ar(s)}return t.set(e,r),r}function l5(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?ga(t)?[]:a5(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((u,d)=>{const f=Ld(t,d,i);return u.top=Tt(f.top,u.top),u.right=Fr(f.right,u.right),u.bottom=Fr(f.bottom,u.bottom),u.left=Tt(f.left,u.left),u},Ld(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function u5(e){const{width:t,height:n}=_h(e);return{width:t,height:n}}function c5(e,t,n){const r=bn(t),i=Sn(t),o=n==="fixed",s=Lr(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=yn(0);if(r||!r&&!o)if((Vi(t)!=="body"||Uo(i))&&(a=wa(t)),r){const p=Lr(t,!0,o,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else i&&(l.x=Fu(i));const u=i&&!r&&!o?Ch(i,a):yn(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 za(e){return mn(e).position==="static"}function Vd(e,t){if(!bn(e)||mn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Sn(e)===n&&(n=n.ownerDocument.body),n}function Eh(e,t){const n=Kt(e);if(ga(e))return n;if(!bn(e)){let i=ar(e);for(;i&&!Ci(i);){if(Rt(i)&&!za(i))return i;i=ar(i)}return n}let r=Vd(e,t);for(;r&&P3(r)&&za(r);)r=Vd(r,t);return r&&Ci(r)&&za(r)&&!Du(r)?n:r||L3(e)||n}const d5=async function(e){const t=this.getOffsetParent||Eh,n=this.getDimensions,r=await n(e.floating);return{reference:c5(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function f5(e){return mn(e).direction==="rtl"}const m5={convertOffsetParentRelativeRectToViewportRelativeRect:n5,getDocumentElement:Sn,getClippingRect:l5,getOffsetParent:Eh,getElementRects:d5,getClientRects:r5,getDimensions:u5,getScale:mi,isElement:Rt,isRTL:f5};function Ah(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function h5(e,t){let n=null,r;const i=Sn(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=ns(f),b=ns(i.clientWidth-(d+p)),v=ns(i.clientHeight-(f+m)),_=ns(d),E={rootMargin:-h+"px "+-b+"px "+-v+"px "+-_+"px",threshold:Tt(0,Fr(1,l))||1};let T=!0;function I(O){const F=O[0].intersectionRatio;if(F!==l){if(!T)return s();F?s(!1,F):r=setTimeout(()=>{s(!1,1e-7)},1e3)}F===1&&!Ah(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 p5(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=Ou(e),d=i||o?[...u?vo(u):[],...vo(t)]:[];d.forEach(_=>{i&&_.addEventListener("scroll",n,{passive:!0}),o&&_.addEventListener("resize",n)});const f=u&&a?h5(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?Lr(e):null;l&&v();function v(){const _=Lr(e);b&&!Ah(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 qa=ya,g5=X3,w5=J3,y5=Z3,v5=Q3,b5=(e,t,n)=>{const r=new Map,i={platform:m5,...n},o={...i.platform,_c:r};return Y3(e,t,{...i,platform:o})};var hs=typeof document<"u"?_n:Fe;function Hs(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(!Hs(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)&&!Hs(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function kh(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Hd(e,t){const n=kh(e);return Math.round(t*n)/n}function Ya(e){const t=se(e);return hs(()=>{t.current=e}),t}function _5(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]=xe({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=xe(r);Hs(p,r)||m(r);const[h,b]=xe(null),[v,_]=xe(null),x=Re(L=>{L!==O.current&&(O.current=L,b(L))},[]),E=Re(L=>{L!==F.current&&(F.current=L,_(L))},[]),T=o||h,I=s||v,O=se(null),F=se(null),S=se(d),C=l!=null,A=Ya(l),N=Ya(i),D=Ya(u),P=Re(()=>{if(!O.current||!F.current)return;const L={placement:t,strategy:n,middleware:p};N.current&&(L.platform=N.current),b5(O.current,F.current,L).then(G=>{const B={...G,isPositioned:D.current!==!1};j.current&&!Hs(S.current,B)&&(S.current=B,Zt(()=>{f(B)}))})},[p,t,n,N,D]);hs(()=>{u===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,f(L=>({...L,isPositioned:!1})))},[u]);const j=se(!1);hs(()=>(j.current=!0,()=>{j.current=!1}),[]),hs(()=>{if(T&&(O.current=T),I&&(F.current=I),T&&I){if(A.current)return A.current(T,I,P);P()}},[T,I,P,A,C]);const ae=me(()=>({reference:O,floating:F,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=Hd(X.floating,d.x),B=Hd(X.floating,d.y);return a?{...L,transform:"translate("+G+"px, "+B+"px)",...kh(X.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:G,top:B}},[n,a,X.floating,d.x,d.y]);return me(()=>({...d,update:P,refs:ae,elements:X,floatingStyles:J}),[d,P,ae,X,J])}const Nh=(e,t)=>({...g5(e),options:[e,t]}),x5=(e,t)=>({...w5(e),options:[e,t]}),C5=(e,t)=>({...y5(e),options:[e,t]}),S5=(e,t)=>({...v5(e),options:[e,t]}),Th={...vs},E5=Th.useInsertionEffect,A5=E5||(e=>e());function $h(e){const t=se(()=>{});return A5(()=>{t.current=e}),Re(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 Tl=typeof document<"u"?_n:Fe;let jd=!1,k5=0;const Bd=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+k5++;function N5(){const[e,t]=xe(()=>jd?Bd():void 0);return Tl(()=>{e==null&&t(Bd())},[]),Fe(()=>{jd=!0},[]),e}const T5=Th.useId,$5=T5||N5;function M5(){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 I5=lt(null),D5=lt(null),R5=()=>{var e;return((e=Ve(I5))==null?void 0:e.id)||null},O5=()=>Ve(D5),F5="data-floating-ui-focusable";function P5(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=$5(),o=se({}),[s]=xe(()=>M5()),a=R5()!=null,[l,u]=xe(r.reference),d=$h((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 L5(e){e===void 0&&(e={});const{nodeId:t}=e,n=P5({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,s]=xe(null),[a,l]=xe(null),d=(i==null?void 0:i.domReference)||o,f=se(null),p=O5();Tl(()=>{d&&(f.current=d)},[d]);const m=_5({...e,elements:{...i,...a&&{reference:a}}}),h=Re(E=>{const T=Rt(E)?{getBoundingClientRect:()=>E.getBoundingClientRect(),contextElement:E}:E;l(T),m.refs.setReference(T)},[m.refs]),b=Re(E=>{(Rt(E)||E===null)&&(f.current=E,s(E)),(Rt(m.refs.reference.current)||m.refs.reference.current===null||E!==null&&!Rt(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 Tl(()=>{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 Ud="active",Wd="selected";function Za(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[Ud]:s,[Wd]:a,...l}=e;o=l}return{...n==="floating"&&{tabIndex:-1,[F5]:""},...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&&[Ud,Wd].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 V5(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=Re(a=>Za(a,e,"reference"),t),o=Re(a=>Za(a,e,"floating"),n),s=Re(a=>Za(a,e,"item"),r);return me(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:s}),[i,o,s])}function Gd(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const H5=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}=Hi(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 Nh(-m.offsetTop-p.clientTop-f.reference.height/2-m.offsetHeight/2-o).fn(t)},T=await qa(Gd(E,h.scrollHeight+b+p.clientTop),d),I=await qa(E,{...d,elementContext:"reference"}),O=Tt(0,T.top),F=E.y+O,A=(h.scrollHeight>h.clientHeight?N=>N:bo)(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*Fr(a,n.current.length)-1||I.top>=-l||I.bottom>=-l;Zt(()=>i(N))}return r&&(r.current=await qa(Gd({...E,y:F},h.offsetHeight+b+p.clientTop),d)),{y:F}}});function j5(e,t){const{open:n,elements:r}=e,{enabled:i=!0,overflowRef:o,scrollRef:s,onChange:a}=t,l=$h(a),u=se(!1),d=se(null),f=se(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(),Zt(()=>{l(O=>O+Math[I](v,E*T))})):/firefox/i.test(V3())&&(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)&&Zt(()=>l(b=>b+h))}requestAnimationFrame(()=>{d.current=m.scrollTop})}}}),[r.floating,l,o,s]);return me(()=>i?{floating:p}:{},[i,p])}let ji=lt({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});ji.displayName="FloatingContext";let Pu=lt(null);Pu.displayName="PlacementContext";function B5(e){return me(()=>e?typeof e=="string"?{to:e}:e:null,[e])}function U5(){return Ve(ji).setReference}function W5(){return Ve(ji).getReferenceProps}function G5(){let{getFloatingProps:e,slot:t}=Ve(ji);return Re((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}function z5(e=null){e===!1&&(e=null),typeof e=="string"&&(e={to:e});let t=Ve(Pu),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(ji);return me(()=>[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}let zd=4;function q5({children:e,enabled:t=!0}){let[n,r]=xe(null),[i,o]=xe(0),s=se(null),[a,l]=xe(null);Y5(a);let u=t&&n!==null&&a!==null,{to:d="bottom",gap:f=0,offset:p=0,padding:m=0,inner:h}=Z5(n,a),[b,v="center"]=d.split(" ");tt(()=>{u&&o(0)},[u]);let{refs:_,floatingStyles:x,context:E}=L5({open:u,placement:b==="selection"?v==="center"?"bottom":`bottom-${v}`:v==="center"?`${b}`:`${b}-${v}`,strategy:"absolute",transform:!1,middleware:[Nh({mainAxis:b==="selection"?0:f,crossAxis:p}),x5({padding:m}),b!=="selection"&&C5({padding:m}),b==="selection"&&h?H5({...h,padding:m,overflowRef:s,offset:i,minItemsVisible:zd,referenceOverflowThreshold:m,onFallbackChange(N){var D,P;if(!N)return;let j=E.elements.floating;if(!j)return;let ae=parseFloat(getComputedStyle(j).scrollPaddingBottom)||0,X=Math.min(zd,j.childElementCount),J=0,L=0;for(let G of(P=(D=E.elements.floating)==null?void 0:D.childNodes)!=null?P:[])if(G instanceof HTMLElement){let B=G.offsetTop,de=B+G.clientHeight+ae,q=j.scrollTop,R=q+j.clientHeight;if(B>=q&&de<=R)X--;else{L=Math.max(0,Math.min(de,R)-Math.max(B,q)),J=G.clientHeight;break}}X>=1&&o(G=>{let B=J*X-L+ae;return G>=B?G:B})}}):null,S5({padding:m,apply({availableWidth:N,availableHeight:D,elements:P}){Object.assign(P.floating.style,{overflow:"auto",maxWidth:`${N}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${D}px)`})}})].filter(Boolean),whileElementsMounted:p5}),[T=b,I=v]=E.placement.split("-");b==="selection"&&(T="selection");let O=me(()=>({anchor:[T,I].filter(Boolean).join(" ")}),[T,I]),F=j5(E,{overflowRef:s,onChange:o}),{getReferenceProps:S,getFloatingProps:C}=V5([F]),A=fe(N=>{l(N),_.setFloating(N)});return c(Pu.Provider,{value:r},c(ji.Provider,{value:{setFloating:A,setReference:_.setReference,styles:x,getReferenceProps:S,getFloatingProps:C,slot:O}},e))}function Y5(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 Z5(e,t){var n,r,i;let o=Ka((n=e==null?void 0:e.gap)!=null?n:"var(--anchor-gap, 0)",t),s=Ka((r=e==null?void 0:e.offset)!=null?r:"var(--anchor-offset, 0)",t),a=Ka((i=e==null?void 0:e.padding)!=null?i:"var(--anchor-padding, 0)",t);return{...e,gap:o,offset:s,padding:a}}function Ka(e,t,n=void 0){let r=fr(),i=fe((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=qd(l,u);return[d,f=>{let p=Mh(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=qd(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]=xe();return tt(()=>{let[l,u]=i(e,t);if(a(l),!!u)return u(a)},[e,t]),s}function Mh(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,...Mh(i)]:[r]}return[]}function qd(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 K5(e,t){let[n,r]=xe(t);return!e&&n!==t&&r(t),e?n:t}let va=lt(null);va.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 Go(){return Ve(va)}function Ih({value:e,children:t}){return Q.createElement(va.Provider,{value:e},t)}function X5({children:e}){return Q.createElement(va.Provider,{value:null},e)}function J5(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let Kn=[];J5(()=>{function e(t){if(!(t.target instanceof HTMLElement)||t.target===document.body||Kn[0]===t.target)return;let n=t.target;n=n.closest(Ps),Kn.unshift(n??t.target),Kn=Kn.filter(r=>r!=null&&r.isConnected),Kn.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 Q5(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 Xa(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:Q5(e)}}function Dh(e){let t=fe(e),n=se(!1);Fe(()=>(n.current=!1,()=>{n.current=!0,fa(()=>{n.current&&t()})}),[t])}function eC(){let e=typeof document>"u";return"useSyncExternalStore"in vs?(t=>t.useSyncExternalStore)(vs)(()=>()=>{},()=>!1,()=>!e):!1}function zo(){let e=eC(),[t,n]=xe(Tr.isHandoffComplete);return t&&Tr.isHandoffComplete===!1&&n(!1),Fe(()=>{t!==!0&&n(!0)},[t]),Fe(()=>Tr.handoff(),[]),e?!1:t}let Rh=lt(!1);function tC(){return Ve(Rh)}function Yd(e){return Q.createElement(Rh.Provider,{value:e.force},e.children)}function nC(e){let t=tC(),n=Ve(Fh),r=Li(e),[i,o]=xe(()=>{var s;if(!t&&n!==null)return(s=n.current)!=null?s:null;if(Tr.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 Oh=Ye,rC=wt(function(e,t){let n=e,r=se(null),i=It(Zx(f=>{r.current=f}),t),o=Li(r),s=nC(r),[a]=xe(()=>{var f;return Tr.isServer?null:(f=o==null?void 0:o.createElement("div"))!=null?f:null}),l=Ve($l),u=zo();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]),Dh(()=>{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:zs(d({ourProps:{ref:i},theirProps:n,slot:{},defaultTag:Oh,name:"Portal"}),a):null});function iC(e,t){let n=It(t),{enabled:r=!0,...i}=e,o=St();return r?Q.createElement(rC,{...i,ref:n}):o({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:Oh,name:"Portal"})}let oC=Ye,Fh=lt(null);function sC(e,t){let{target:n,...r}=e,i={ref:It(t)},o=St();return Q.createElement(Fh.Provider,{value:n},o({ourProps:i,theirProps:r,defaultTag:oC,name:"Popover.Group"}))}let $l=lt(null);function aC(){let e=Ve($l),t=se([]),n=fe(o=>(t.current.push(o),e&&e.register(o),()=>r(o))),r=fe(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($l.Provider,{value:i},o)},[i])]}let lC=wt(iC),Ph=wt(sC),Lh=Object.assign(lC,{Group:Ph});function uC(e,t=typeof document<"u"?document.defaultView:null,n){let r=Pi(e,"escape");fh(t,"keydown",i=>{r&&(i.defaultPrevented||i.key===yt.Escape&&n(i))})}function cC(){var e;let[t]=xe(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[n,r]=xe((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 dC({defaultContainers:e=[],portals:t,mainTreeNode:n}={}){let r=Li(n),i=fe(()=>{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:fe(o=>i().some(s=>s.contains(o)))}}let Vh=lt(null);function Zd({children:e,node:t}){let[n,r]=xe(null),i=Hh(t??n);return Q.createElement(Vh.Provider,{value:i},e,i===null&&Q.createElement(yo,{features:xi.Hidden,ref:o=>{var s,a;if(o){for(let l of(a=(s=Fi(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 Hh(e=null){var t;return(t=Ve(Vh))!=null?t:e}function Lu(){let e=se(!1);return tt(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var oo=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(oo||{});function fC(){let e=se(0);return ch(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function jh(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 mC="div";var xr=(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))(xr||{});function hC(e,t){let n=se(null),r=It(n,t),{initialFocus:i,initialFocusFallback:o,containers:s,features:a=15,...l}=e;zo()||(a=0);let u=Li(n);yC(a,{ownerDocument:u});let d=vC(a,{ownerDocument:u,container:n,initialFocus:i,initialFocusFallback:o});bC(a,{ownerDocument:u,container:n,containers:s,previousActiveElement:d});let f=fC(),p=fe(x=>{let E=n.current;E&&(T=>T())(()=>{Vt(f.current,{[oo.Forwards]:()=>{fi(E,un.First,{skipElements:[x.relatedTarget,o]})},[oo.Backwards]:()=>{fi(E,un.Last,{skipElements:[x.relatedTarget,o]})}})})}),m=Pi(!!(a&2),"focus-trap#tab-lock"),h=fr(),b=se(!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=jh(s);n.current instanceof HTMLElement&&E.add(n.current);let T=x.relatedTarget;T instanceof HTMLElement&&T.dataset.headlessuiFocusGuard!=="true"&&(Bh(E,T)||(b.current?fi(n.current,Vt(f.current,{[oo.Forwards]:()=>un.Next,[oo.Backwards]:()=>un.Previous})|un.WrapAround,{relativeTo:x.target}):x.target instanceof HTMLElement&&On(x.target)))}},_=St();return Q.createElement(Q.Fragment,null,m&&Q.createElement(yo,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:xi.Focusable}),_({ourProps:v,theirProps:l,defaultTag:mC,name:"FocusTrap"}),m&&Q.createElement(yo,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:xi.Focusable}))}let pC=wt(hC),gC=Object.assign(pC,{features:xr});function wC(e=!0){let t=se(Kn.slice());return Iu(([n],[r])=>{r===!0&&n===!1&&fa(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=Kn.slice())},[e,Kn,t]),fe(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function yC(e,{ownerDocument:t}){let n=!!(e&8),r=wC(n);Iu(()=>{n||(t==null?void 0:t.activeElement)===(t==null?void 0:t.body)&&On(r())},[n]),Dh(()=>{n&&On(r())})}function vC(e,{ownerDocument:t,container:n,initialFocus:r,initialFocusFallback:i}){let o=se(null),s=Pi(!!(e&1),"focus-trap#initial-focus"),a=Lu();return Iu(()=>{if(e===0)return;if(!s){i!=null&&i.current&&On(i.current);return}let l=n.current;l&&fa(()=>{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)On(r.current);else{if(e&16){if(fi(l,un.First|un.AutoFocus)!==Al.Error)return}else if(fi(l,un.First)!==Al.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 bC(e,{ownerDocument:t,container:n,containers:r,previousActiveElement:i}){let o=Lu(),s=!!(e&4);fh(t==null?void 0:t.defaultView,"focus",a=>{if(!s||!o.current)return;let l=jh(r);n.current instanceof HTMLElement&&l.add(n.current);let u=i.current;if(!u)return;let d=a.target;d&&d instanceof HTMLElement?Bh(l,d)?(i.current=d,On(d)):(a.preventDefault(),a.stopPropagation(),On(u)):On(i.current)},!0)}function Bh(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function Uh(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||((t=e.as)!=null?t:Gh)!==Ye||Q.Children.count(e.children)===1}let ba=lt(null);ba.displayName="TransitionContext";var _C=(e=>(e.Visible="visible",e.Hidden="hidden",e))(_C||{});function xC(){let e=Ve(ba);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function CC(){let e=Ve(_a);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let _a=lt(null);_a.displayName="NestingContext";function xa(e){return"children"in e?xa(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Wh(e,t){let n=mr(e),r=se([]),i=Lu(),o=fr(),s=fe((m,h=Qn.Hidden)=>{let b=r.current.findIndex(({el:v})=>v===m);b!==-1&&(Vt(h,{[Qn.Unmount](){r.current.splice(b,1)},[Qn.Hidden](){r.current[b].state="hidden"}}),o.microTask(()=>{var v;!xa(r)&&i.current&&((v=n.current)==null||v.call(n))}))}),a=fe(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,Qn.Unmount)}),l=se([]),u=se(Promise.resolve()),d=se({enter:[],leave:[]}),f=fe((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=fe((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 Gh=Ye,zh=_i.RenderStrategy;function SC(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]=xe(null),E=se(null),T=Uh(e),I=It(...T?[E,t,x]:t===null?[]:[t]),O=(n=v.unmount)==null||n?Qn.Unmount:Qn.Hidden,{show:F,appear:S,initial:C}=xC(),[A,N]=xe(F?"visible":"hidden"),D=CC(),{register:P,unregister:j}=D;tt(()=>P(E),[P,E]),tt(()=>{if(O===Qn.Hidden&&E.current){if(F&&A!=="visible"){N("visible");return}return Vt(A,{hidden:()=>j(E),visible:()=>P(E)})}},[A,E,P,j,F,O]);let ae=zo();tt(()=>{if(T&&ae&&A==="visible"&&E.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[E,A,ae,T]);let X=C&&!S,J=S&&F&&C,L=se(!1),G=Wh(()=>{L.current||(N("hidden"),j(E))},D),B=fe(ge=>{L.current=!0;let z=ge?"enter":"leave";G.onStart(E,z,Se=>{Se==="enter"?o==null||o():Se==="leave"&&(a==null||a())})}),de=fe(ge=>{let z=ge?"enter":"leave";L.current=!1,G.onStop(E,z,Se=>{Se==="enter"?s==null||s():Se==="leave"&&(l==null||l())}),z==="leave"&&!xa(G)&&(N("hidden"),j(E))});Fe(()=>{T&&i||(B(F),de(F))},[F,T,i]);let q=!(!i||!T||!ae||X),[,R]=ph(q,_,F,{start:B,end:de}),le=Yn({ref:I,className:((r=Sl(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&&F&&p))==null?void 0:r.trim())||void 0,...hh(R)}),U=0;A==="visible"&&(U|=Ot.Open),A==="hidden"&&(U|=Ot.Closed),R.enter&&(U|=Ot.Opening),R.leave&&(U|=Ot.Closing);let ye=St();return Q.createElement(_a.Provider,{value:G},Q.createElement(Ih,{value:U},ye({ourProps:le,theirProps:v,defaultTag:Gh,features:zh,visible:A==="visible",name:"Transition.Child"})))}function EC(e,t){let{show:n,appear:r=!1,unmount:i=!0,...o}=e,s=se(null),a=Uh(e),l=It(...a?[s,t]:t===null?[]:[t]);zo();let u=Go();if(n===void 0&&u!==null&&(n=(u&Ot.Open)===Ot.Open),n===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[d,f]=xe(n?"visible":"hidden"),p=Wh(()=>{n||f("hidden")}),[m,h]=xe(!0),b=se([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"):!xa(p)&&s.current!==null&&f("hidden")},[n,p]);let _={unmount:i},x=fe(()=>{var I;m&&h(!1),(I=e.beforeEnter)==null||I.call(e)}),E=fe(()=>{var I;m&&h(!1),(I=e.beforeLeave)==null||I.call(e)}),T=St();return Q.createElement(_a.Provider,{value:p},Q.createElement(ba.Provider,{value:v},T({ourProps:{..._,as:Ye,children:Q.createElement(qh,{ref:l,..._,...o,beforeEnter:x,beforeLeave:E})},theirProps:{},defaultTag:Ye,features:zh,visible:d==="visible",name:"Transition"})))}function AC(e,t){let n=Ve(ba)!==null,r=Go()!==null;return Q.createElement(Q.Fragment,null,!n&&r?Q.createElement(Ml,{ref:t,...e}):Q.createElement(qh,{ref:t,...e}))}let Ml=wt(EC),qh=wt(SC),Vu=wt(AC),Yh=Object.assign(Ml,{Child:Vu,Root:Ml});var kC=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(kC||{}),NC=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(NC||{});let TC={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},Hu=lt(null);Hu.displayName="DialogContext";function Ca(e){let t=Ve(Hu);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ca),n}return t}function $C(e,t){return Vt(t.type,TC,e,t)}let Kd=wt(function(e,t){let n=rn(),{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=se(!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=Go();i===void 0&&m!==null&&(i=(m&Ot.Open)===Ot.Open);let h=se(null),b=It(h,t),v=Li(h),_=i?0:1,[x,E]=Hr($C,{titleId:null,descriptionId:null,panelRef:Ws()}),T=fe(()=>o(!1)),I=fe(de=>E({type:0,id:de})),O=zo()?_===0:!1,[F,S]=aC(),C={get current(){var de;return(de=x.panelRef.current)!=null?de:h.current}},A=Hh(),{resolveContainers:N}=dC({mainTreeNode:A,portals:F,defaultContainers:[C]}),D=m!==null?(m&Ot.Closing)===Ot.Closing:!1;ih(u||D?!1:O,{allowed:fe(()=>{var de,q;return[(q=(de=h.current)==null?void 0:de.closest("[data-headlessui-portal]"))!=null?q:null]}),disallowed:fe(()=>{var de;return[(de=A==null?void 0:A.closest("body > *:not(#headlessui-portal-root)"))!=null?de:null]})}),dh(O,N,de=>{de.preventDefault(),T()}),uC(O,v==null?void 0:v.defaultView,de=>{de.preventDefault(),de.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),T()}),mh(u||D?!1:O,v,N),oh(O,h,T);let[P,j]=Xx(),ae=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":P,unmount:d},L=!cC(),G=xr.None;O&&!u&&(G|=xr.RestoreFocus,G|=xr.TabLock,l&&(G|=xr.AutoFocus),L&&(G|=xr.InitialFocus));let B=St();return Q.createElement(X5,null,Q.createElement(Yd,{force:!0},Q.createElement(Lh,null,Q.createElement(Hu.Provider,{value:ae},Q.createElement(Ph,{target:h},Q.createElement(Yd,{force:!1},Q.createElement(j,{slot:X},Q.createElement(S,null,Q.createElement(gC,{initialFocus:s,initialFocusFallback:h,containers:N,features:G},Q.createElement(l3,{value:T},B({ourProps:J,theirProps:f,slot:X,defaultTag:MC,features:IC,visible:_===0,name:"Dialog"})))))))))))}),MC="div",IC=_i.RenderStrategy|_i.Static;function DC(e,t){let{transition:n=!1,open:r,...i}=e,o=Go(),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(Zd,null,Q.createElement(Yh,{show:r,transition:n,unmount:i.unmount},Q.createElement(Kd,{ref:t,...i}))):Q.createElement(Zd,null,Q.createElement(Kd,{ref:t,open:r,...i}))}let RC="div";function OC(e,t){let n=rn(),{id:r=`headlessui-dialog-panel-${n}`,transition:i=!1,...o}=e,[{dialogState:s,unmount:a},l]=Ca("Dialog.Panel"),u=It(t,l.panelRef),d=me(()=>({open:s===0}),[s]),f=fe(v=>{v.stopPropagation()}),p={ref:u,id:r,onClick:f},m=i?Vu:Ye,h=i?{unmount:a}:{},b=St();return Q.createElement(m,{...h},b({ourProps:p,theirProps:o,slot:d,defaultTag:RC,name:"Dialog.Panel"}))}let FC="div";function PC(e,t){let{transition:n=!1,...r}=e,[{dialogState:i,unmount:o}]=Ca("Dialog.Backdrop"),s=me(()=>({open:i===0}),[i]),a={ref:t,"aria-hidden":!0},l=n?Vu:Ye,u=n?{unmount:o}:{},d=St();return Q.createElement(l,{...u},d({ourProps:a,theirProps:r,slot:s,defaultTag:FC,name:"Dialog.Backdrop"}))}let LC="h2";function VC(e,t){let n=rn(),{id:r=`headlessui-dialog-title-${n}`,...i}=e,[{dialogState:o,setTitleId:s}]=Ca("Dialog.Title"),a=It(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:LC,name:"Dialog.Title"})}let HC=wt(DC),jC=wt(OC),BC=wt(PC),UC=wt(VC),ju=Object.assign(HC,{Panel:jC,Title:UC,Description:t3});function WC(e,t){let n=se({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 Xd=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Jd(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 Xd.test(s)&&(s=s.replace(Xd,"")),s}function GC(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():Jd(o).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return Jd(e).trim()}function zC(e){let t=se(""),n=se("");return fe(()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let o=GC(r).trim().toLowerCase();return t.current=i,n.current=o,o})}var qC=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(qC||{}),YC=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(YC||{}),ZC=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(ZC||{}),KC=(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))(KC||{});function Ja(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=lh(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 XC={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=Xa(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=Xa(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=Ja(e),u=Xa(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=Ja(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=Ja(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}},Bu=lt(null);Bu.displayName="ListboxActionsContext";function Sa(e){let t=Ve(Bu);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Sa),n}return t}let Ea=lt(null);Ea.displayName="ListboxDataContext";function qo(e){let t=Ve(Ea);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,qo),n}return t}function JC(e,t){return Vt(t.type,XC,e,t)}let QC=Ye;function e6(e,t){var n;let r=$u(),{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 _=It(t),x=Lx(o),[E=m?[]:void 0,T]=Px(i,l,x),[I,O]=Hr(JC,{dataRef:Ws(),listboxState:h?0:1,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,optionsVisible:!1,buttonElement:null,optionsElement:null,__demoMode:h}),F=se({static:!1,hold:!1}),S=se(new Map),C=c3(u),A=Re(ie=>Vt(N.mode,{1:()=>E.some(he=>C(he,ie)),0:()=>C(E,ie)}),[E]),N=me(()=>({...I,value:E,disabled:f,invalid:d,mode:m?1:0,orientation:v,compare:C,isSelected:A,optionsPropsRef:F,listRef:S}),[E,f,d,m,I,S]);tt(()=>{I.dataRef.current=N},[N]);let D=N.listboxState===0;dh(D,[N.buttonElement,N.optionsElement],(ie,he)=>{var ee;O({type:1}),ah(he,Mu.Loose)||(ie.preventDefault(),(ee=N.buttonElement)==null||ee.focus())});let P=me(()=>({open:N.listboxState===0,disabled:f,invalid:d,value:E}),[N,f,E,d]),j=fe(ie=>{let he=N.options.find(ee=>ee.id===ie);he&&de(he.dataRef.current.value)}),ae=fe(()=>{if(N.activeOptionIndex!==null){let{dataRef:ie,id:he}=N.options[N.activeOptionIndex];de(ie.current.value),O({type:2,focus:vt.Specific,id:he})}}),X=fe(()=>O({type:0})),J=fe(()=>O({type:1})),L=fr(),G=fe((ie,he,ee)=>{L.dispose(),L.microTask(()=>ie===vt.Specific?O({type:2,focus:vt.Specific,id:he,trigger:ee}):O({type:2,focus:ie,trigger:ee}))}),B=fe((ie,he)=>(O({type:5,id:ie,dataRef:he}),()=>O({type:6,id:ie}))),de=fe(ie=>Vt(N.mode,{0(){return T==null?void 0:T(ie)},1(){let he=N.value.slice(),ee=he.findIndex(ne=>C(ne,ie));return ee===-1?he.push(ie):he.splice(ee,1),T==null?void 0:T(he)}})),q=fe(ie=>O({type:3,value:ie})),R=fe(()=>O({type:4})),le=fe(ie=>{O({type:7,element:ie})}),U=fe(ie=>{O({type:8,element:ie})}),ye=me(()=>({onChange:de,registerOption:B,goToOption:G,closeListbox:J,openListbox:X,selectActiveOption:ae,selectOption:j,search:q,clearSearch:R,setButtonElement:le,setOptionsElement:U}),[]),[ge,z]=n3({inherit:!0}),Se={ref:_},we=Re(()=>{if(x!==void 0)return T==null?void 0:T(x)},[T,x]),$e=St();return Q.createElement(z,{value:ge,props:{htmlFor:(n=N.buttonElement)==null?void 0:n.id},slot:{open:N.listboxState===0,disabled:f}},Q.createElement(q5,null,Q.createElement(Bu.Provider,{value:ye},Q.createElement(Ea.Provider,{value:N},Q.createElement(Ih,{value:Vt(N.listboxState,{0:Ot.Open,1:Ot.Closed})},a!=null&&E!=null&&Q.createElement(Wx,{disabled:f,data:{[a]:E},form:s,onReset:we}),$e({ourProps:Se,theirProps:b,slot:P,defaultTag:QC,name:"Listbox"}))))))}let t6="button";function n6(e,t){var n;let r=qo("Listbox.Button"),i=Sa("Listbox.Button"),o=rn(),s=Xm(),{id:a=s||`headlessui-listbox-button-${o}`,disabled:l=r.disabled||!1,autoFocus:u=!1,...d}=e,f=It(t,U5(),i.setButtonElement),p=W5(),m=fe(N=>{switch(N.key){case yt.Enter:Vx(N.currentTarget);break;case yt.Space:case yt.ArrowDown:N.preventDefault(),Zt(()=>i.openListbox()),r.value||i.goToOption(vt.First);break;case yt.ArrowUp:N.preventDefault(),Zt(()=>i.openListbox()),r.value||i.goToOption(vt.Last);break}}),h=fe(N=>{switch(N.key){case yt.Space:N.preventDefault();break}}),b=fe(N=>{var D;if(qx(N.currentTarget))return N.preventDefault();r.listboxState===0?(Zt(()=>i.closeListbox()),(D=r.buttonElement)==null||D.focus({preventScroll:!0})):(N.preventDefault(),i.openListbox())}),v=fe(N=>N.preventDefault()),_=th([a]),x=Kx(),{isFocusVisible:E,focusProps:T}=Ex({autoFocus:u}),{isHovered:I,hoverProps:O}=Sx({isDisabled:l}),{pressed:F,pressProps:S}=Mx({disabled:l}),C=me(()=>({open:r.listboxState===0,active:F||r.listboxState===0,disabled:l,invalid:r.invalid,value:r.value,hover:I,focus:E,autofocus:u}),[r.listboxState,r.value,l,I,E,F,r.invalid,u]),A=qm(p(),{ref:f,id:a,type:S3(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:t6,name:"Listbox.Button"})}let Zh=lt(!1),r6="div",i6=_i.RenderStrategy|_i.Static;function o6(e,t){var n,r;let i=rn(),{id:o=`headlessui-listbox-options-${i}`,anchor:s,portal:a=!1,modal:l=!0,transition:u=!1,...d}=e,f=B5(s),[p,m]=xe(null);f&&(a=!0);let h=qo("Listbox.Options"),b=Sa("Listbox.Options"),v=Li(h.optionsElement),_=Go(),[x,E]=ph(u,p,_!==null?(_&Ot.Open)===Ot.Open:h.listboxState===0);oh(x,h.buttonElement,b.closeListbox);let T=h.__demoMode?!1:l&&h.listboxState===0;mh(T,v);let I=h.__demoMode?!1:l&&h.listboxState===0;ih(I,{allowed:Re(()=>[h.buttonElement,h.optionsElement],[h.buttonElement,h.optionsElement])});let O=h.listboxState!==0,F=WC(O,h.buttonElement)?!1:x,S=x&&h.listboxState===1,C=K5(S,h.value),A=fe(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 le=h.options.findIndex(U=>A(U.dataRef.current.value));return le===-1&&(le=0),le},[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}}})(),[P,j]=z5(D),ae=G5(),X=It(t,f?P:null,b.setOptionsElement,m),J=fr();Fe(()=>{var R;let le=h.optionsElement;le&&h.listboxState===0&&le!==((R=Fi(le))==null?void 0:R.activeElement)&&(le==null||le.focus({preventScroll:!0}))},[h.listboxState,h.optionsElement]);let L=fe(R=>{var le,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:ye}=h.options[h.activeOptionIndex];b.onChange(ye.current.value)}h.mode===0&&(Zt(()=>b.closeListbox()),(le=h.buttonElement)==null||le.focus({preventScroll:!0}));break;case Vt(h.orientation,{vertical:yt.ArrowDown,horizontal:yt.ArrowRight}):return R.preventDefault(),R.stopPropagation(),b.goToOption(vt.Next);case Vt(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(),Zt(()=>b.closeListbox()),(U=h.buttonElement)==null||U.focus({preventScroll:!0});return;case yt.Tab:R.preventDefault(),R.stopPropagation(),Zt(()=>b.closeListbox()),_3(h.buttonElement,R.shiftKey?un.Previous:un.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]),de=qm(f?ae():{},{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":f3(h.buttonElement,!0).width},...hh(E)}),q=St();return Q.createElement(Lh,{enabled:a?e.static||x:!1},Q.createElement(Ea.Provider,{value:h.mode===1?h:{...h,isSelected:A}},q({ourProps:de,theirProps:d,slot:B,defaultTag:r6,features:i6,visible:F,name:"Listbox.Options"})))}let s6="div";function a6(e,t){let n=rn(),{id:r=`headlessui-listbox-option-${n}`,disabled:i=!1,value:o,...s}=e,a=Ve(Zh)===!0,l=qo("Listbox.Option"),u=Sa("Listbox.Option"),d=l.activeOptionIndex!==null?l.options[l.activeOptionIndex].id===r:!1,f=l.isSelected(o),p=se(null),m=zC(p),h=mr({disabled:i,value:o,domRef:p,get textValue(){return m()}}),b=It(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 Un().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=fe(C=>{var A;if(i)return C.preventDefault();u.onChange(o),l.mode===0&&(Zt(()=>u.closeListbox()),(A=l.buttonElement)==null||A.focus({preventScroll:!0}))}),_=fe(()=>{if(i)return u.goToOption(vt.Nothing);u.goToOption(vt.Specific,r)}),x=$3(),E=fe(C=>{x.update(C),!i&&(d||u.goToOption(vt.Specific,r,0))}),T=fe(C=>{x.wasMoved(C)&&(i||d||u.goToOption(vt.Specific,r,0))}),I=fe(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]),F=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:F,theirProps:s,slot:O,defaultTag:s6,name:"Listbox.Option"})}let l6=Ye;function u6(e,t){let{options:n,placeholder:r,...i}=e,o={ref:It(t)},s=qo("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(Zh.Provider,{value:!0},u({ourProps:o,theirProps:{...i,children:Q.createElement(Q.Fragment,null,r&&l?r:n)},slot:a,defaultTag:l6,name:"ListboxSelectedOption"}))}let c6=wt(e6),Kh=wt(n6),d6=s3,Xh=wt(o6),Jh=wt(a6),f6=wt(u6),m6=Object.assign(c6,{Button:Kh,Label:d6,Options:Xh,Option:Jh,SelectedOption:f6}),xt=class extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Open","OnClose","Children"]}};function Bi(e){return c(ju,Bn(e,1))}class ur extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","ClassName","Children"]}}function Ui(e){return c(ju.Panel,Bn(e,1))}class js extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Children"]}}function Qh(e){return c(ju.Title,Bn(e,1))}class Wi extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName"]}}function Gi(e){return c(BC,Bn(e,1))}function Wr(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=ce(c("path",{d:"M6 18L18 6M6 6L18 18",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2,strokeLinecap:"round"})),["children",y.Children.toArray(Array.from(n))])])))}function h6(e,t){let n,r,i,o,s;return Bi(g([new xt(3,[e]),new xt(4,[t]),new xt(5,[[Gi(ce(new Wi(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=[Ui(ce(new ur(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=[Wr(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 Aa(e){return c("span",{className:"font-sonoma text-black font-semibold text-lg",children:e})}function ka(e){return c("span",{className:"text-sm font-normal pt-2",children:e})}function _o(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 p6(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=ce(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 ep(){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=[p6(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 tp(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=ce(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 np(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=[tp(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 Na(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 hi=class extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Value","OnChange","Children"]}};function rp(e){return c(m6,Bn(e,1))}class Bs extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ClassName","Children"]}}function ip(e){return c(Kh,Bn(e,1))}class op extends W{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ClassName"]}}function sp(e,t){return c(Xh,Bn(e,1),...t)}class wn extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","Value","Disabled","ClassName","Children"]}}function ap(e){return c(Jh,Bn(e,1))}function lp(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=ce(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 to extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Below","Above"]}}function no(e,t,n,r,i,o,s,a,l){let u,d,f,p,m,h,b;const v=i.fields[0],_=Yf(_t(x=>x[1].fields[0],G1(x=>u0(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:wo(e)})),$(()=>k(t?c("div",{className:"text-red-500 text-sm font-medium leading-tight",children:"*"}):Ae()))))),["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=[Na(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=[rp(g([new hi(0,[_]),new hi(1,[x=>{jn(E=>{s(E[0])},Ni(Ks(E=>E[1].fields[0]===x?te(E[2],new Nn(0,[])):!1,v)))}]),new hi(2,[[c("div",w(g([["className","relative w-full"],(m=[ip(K($(()=>{let x;return H(k(new Bs(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 Bs(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=[lp(20,20)],["children",y.Children.toArray(Array.from(E))])])))]]))}))}))),sp(K($(()=>k(new op(`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($(()=>ta(x=>{const E=x[2],T=x[1].fields[0];return k(ap(g([new wn(0,[dn(x[0].fields[0])]),new wn(1,[T]),new wn(2,[te(E,new Nn(1,[]))]),new wn(3,["relative select-none"]),new wn(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 ft();{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 ft();{const E=x;return k(["onClick",T=>{E()}])}}))))))))],["children",y.Children.toArray(Array.from(b))])])))],["children",y.Children.toArray(Array.from(u))])])))}function up(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=ce(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 Uu(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=ce(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 cp(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=[Uu(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 Wu(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=ce(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 g6(e){return e.startsWith("614")&&e.length===11?`+${e}`:e}function w6(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 dp(e){return w6(g6(zf(e," ","")))}function y6(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 “${wo(e)}”`}),c("button",w(g([["onClick",f=>{n()}],["type","button"],["className","text-gray-600"],(a=[Wr(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=l0((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=ki(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",dp(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 v6(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=sx(l,u);d=Ur(()=>Br(()=>f,(T,I)=>ax(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(ix(p)(T))return()=>{m(new qn(1,[T]))}},E=T=>{if(ox(p,T))return()=>{m(new qn(2,[T]))}};return c("div",w(g([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12 h-full"],(t=[h6(h[0],()=>{b(!1)}),Aa("Map fields"),ka("Match the fields from your CSV to the corresponding destination fields."),c("div",w(g([["className","flex flex-row pt-3 gap-2"],(n=[_o("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(ep()):k(Ae()),$(()=>H(_&&p.Status.tag===0?k(np("Some required fields are incomplete. Fill in all required fields to continue.")):k(Ae()),$(()=>{let I,O,F,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]),(F=[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 P;return k((P=[c("div",{className:"text-center text-xs font-medium leading-none",children:`${p.NumberOfDestinationFieldsMapped} of 5 mapped`})],["children",y.Children.toArray(Array.from(P))]))}))))))],["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(F))])]))),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(ce((D=K($(()=>H(k(no(new re(0,[]),!0,_,p.FirstName.ColumnIndex,p.FirstName.IncomingFields,new to(0,[]),P=>{let j;m((j=[new re(0,[]),P],new qn(0,[j[0],j[1]])))},x(new re(0,[])),E(new re(0,[])))),$(()=>H(k(no(new re(1,[]),!0,_,p.LastName.ColumnIndex,p.LastName.IncomingFields,new to(0,[]),P=>{let j;m((j=[new re(1,[]),P],new qn(0,[j[0],j[1]])))},x(new re(1,[])),E(new re(1,[])))),$(()=>H(k(no(new re(2,[]),!0,_,p.Email.ColumnIndex,p.Email.IncomingFields,new to(0,[]),P=>{let j;m((j=[new re(2,[]),P],new qn(0,[j[0],j[1]])))},x(new re(2,[])),E(new re(2,[])))),$(()=>H(k(no(new re(3,[]),!1,_,p.MobilePhone.ColumnIndex,p.MobilePhone.IncomingFields,new to(0,[]),P=>{let j;m((j=[new re(3,[]),P],new qn(0,[j[0],j[1]])))},x(new re(3,[])),E(new re(3,[])))),$(()=>H(k(no(new re(4,[]),!1,_,p.EmploymentBasis.ColumnIndex,p.EmploymentBasis.IncomingFields,new to(1,[]),P=>{let j;m((j=[new re(4,[]),P],new qn(0,[j[0],j[1]])))},x(new re(4,[])),E(new re(4,[])))),$(()=>{let P,j,ae,X,J,L;return H(p.NumberOfIncomingFieldsDiscarded===0?k(Ae()):k(c("div",w(g([["className","h-16 pr-3 pt-2 pb-4 rounded-lg justify-start items-start gap-2 inline-flex"],(P=[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"],(ae=[up(14,14),c("div",{className:"text-gray-500 text-sm font-medium leading-tight",children:"Discarded"})],["children",y.Children.toArray(Array.from(ae))])]))),c("div",w(g([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(X=[Na(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(P))])])))),$(()=>{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(cp("All destination fields have been mapped. You’re good to go.")):k(Ae()),$(()=>{let B,de,q,R,le,U,ye,ge,z;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"],(de=[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"],(le=[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",Se=>{o(p.Status)}],(ye=[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(ye))])]))),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",Se=>{const we=p.Status;we.tag===0?v[1](!0):s([we.fields[0],we.fields[1]])}],(z=[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"}),Wu(13,8)],["children",y.Children.toArray(Array.from(z))])])))],["children",y.Children.toArray(Array.from(le))])])))],["children",y.Children.toArray(Array.from(de))])])))],["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(Ae()):k(y6(I[0],I[1],()=>{m(new qn(3,[]))}))}))})),["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(t))])])))}class rs extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UploadingCsv","MappingColumns","MappingEmploymentBasis","Reviewing"]}}class Qa extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Reviewing","MappingEmploymentBasis","MappingColumns"]}}let gr=class extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Next","Back"]}},is=class extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Add","Clear","Remove","Set"]}},b6=class extends Ce{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 xo extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Available","Unavailable"]}}const Xn=[void 0];function fp(e,t,n){let r;const i=t.fields[0],o=Yt(s=>s,ks(Nc(n)));return new b6(et(s=>[s,Ti(s,o,{Equals:te,GetHashCode:_s})?new xo(1,[]):new xo(0,[])],i),n,o.length,Lg(ea(s=>{let a;return a=Yt(l=>l,s),a.length!==0},Nc(n))),Mm(o,i,{Equals:te,GetHashCode:_s}),(r=g(Yt(s=>s,ks(Le(s=>et(a=>{if(a!=null)return[s[0],a]},s[1]),n)))),Te(r)?void 0:new z_(ue(r),dr(De(r)))),e)}function _6(e,t){const n=t.tag===1?["parttime"]:t.tag===2?["casual"]:t.tag===3?["labourhire"]:["fulltime"];return e.fields[0].filter(r=>Ti(Ql(r.fields[0],"[^a-zA-Z]","").toLocaleLowerCase(),n,{Equals:(i,o)=>i===o,GetHashCode:cr}))}function x6(e,t){let n;if(t==null){let r=!1;const i=o=>{const s=_6(e,o);return!Ir(te,s,Ae())&&s.length===0?Xn:(r=!0,et(a=>a,s))};n=[li([[new ht(0,[]),i(new ht(0,[]))],[new ht(1,[]),i(new ht(1,[]))],[new ht(2,[]),i(new ht(2,[]))],[new ht(3,[]),i(new ht(3,[]))]],{Compare:Et}),r]}else{const r=t,i=li(et(o=>[o[0],et(s=>s[1],og(o[1],{Compare:Kl}))],V_(o=>o[0],ks([r.Tail,[r.Head]]),{Equals:te,GetHashCode:_s})),{Compare:Et});n=[li([[new ht(0,[]),Je(Sr(i,new ht(0,[])),Xn)],[new ht(1,[]),Je(Sr(i,new ht(1,[])),Xn)],[new ht(2,[]),Je(Sr(i,new ht(2,[])),Xn)],[new ht(3,[]),Je(Sr(i,new ht(3,[])),Xn)]],{Compare:Et}),!1]}return[fp(n[1],e,n[0]),ve()]}function mp(e,t){const n=Dr(e.Selections,t);let r;switch(!Ir(te,n,Ae())&&n.length===1&&pe(0,n)!=null?r=0:r=1,r){case 0:return!0;default:return!1}}function hp(e,t){let n;return e.DiscardedValues.length>0?(n=Dr(e.Selections,t),!n.some(r=>r==null)):!1}function C6(e,t,n){const r=Dr(e.Selections,t);return!Ir(te,r,Ae())&&r.length===1?!1:Ti(n,r,{Equals:te,GetHashCode:tn})}function S6(e,t,n,r){return!te(n,r)&&e.IncomingValues.some(i=>te(i[0],r)?te(i[1],new xo(0,[])):!1)?Ti(n,Dr(e.Selections,t),{Equals:te,GetHashCode:tn}):!1}function E6(e,t,n){let r,i;const o=h=>fp(n.Prefilled,e,h);let s,a,l,u,d,f,p,m;switch(t.tag){case 1:{mp(n,t.fields[0])?(s=1,l=t.fields[0]):s=4;break}case 2:{C6(n,t.fields[0],t.fields[1])?(s=2,u=t.fields[0],d=t.fields[1]):s=4;break}case 3:{S6(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:hp(n,t.fields[0])?(s=0,a=t.fields[0]):s=4}switch(s){case 0:return[o(Jo(a,h=>_t(b=>a0(b,Xn),h),n.Selections)),ve()];case 1:return[o(Jo(l,h=>_t(b=>Xn,h),n.Selections)),ve()];case 2:return[o(Jo(u,(r=(i=[d],h=>Mm(i,h,{Equals:te,GetHashCode:tn})),h=>_t(r,h)),n.Selections)),ve()];case 3:return[o(Jo(f,h=>_t(b=>et(v=>te(v,p)?m:v,b),h),n.Selections)),ve()];default:return[n,ve()]}}function A6(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=ce(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 k6(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(Ir(te,t,Xn)?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:Im(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=[Na(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(ce((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(rp(K($(()=>{const _=Yf(_t(x=>x.fields[0],m));return H(k(new hi(0,[_])),$(()=>H(k(new hi(1,[x=>{jn(E=>{s([m,E[0]])},Ni(Ks(E=>E[0].fields[0]===x?te(E[1],new xo(0,[])):!1,n)))}])),$(()=>{let x,E;return k(new hi(2,[[c("div",w(g([["className","relative w-full"],(x=[ip(g([new Bs(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 Bs(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=[lp(20,20)],["children",y.Children.toArray(Array.from(E))])])))]])])),sp(ce(new op("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($(()=>ta(T=>{const I=T[1],O=T[0].fields[0];return k(ap(g([new wn(0,[O]),new wn(1,[O]),new wn(2,[te(I,new xo(1,[]))&&O!==_]),new wn(3,["relative select-none"]),new wn(4,[F=>[c("span",{className:At(" ",K($(()=>H(k("px-4 py-2 block truncate"),$(()=>{const S=F.active;let C;switch(F.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,tg(t))?k(c("button",w(K($(()=>{let _;return H(k((_=[A6(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 ft();{const E=x;return k(["onClick",T=>{E()}])}}))))}))))):ft())))),["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 ft();{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 N6(e){let t,n,r;const i=e.back,o=e.next,s=e.employmentBasisColumn,a=e.existingMappings;let l;const u=x6(s,a);l=Ur(()=>Br(()=>u,(h,b)=>E6(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=[Aa("Map values - Employment basis"),ka("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(ep()):k(Ae()),$(()=>H(m&&d.ValidatedMappings==null?k(np("Map at least one value to continue.")):k(Ae()),$(()=>{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(ce((O=K($(()=>H(ta(F=>{let S,C,A;const N=F[0];return k(k6(N,F[1],d.IncomingValues,(S=N,mp(d,S)?()=>{f(new is(1,[S]))}:void 0),(C=N,hp(d,C)?()=>{f(new is(0,[C]))}:void 0),(A=N,Dr(d.Selections,A).length>1?D=>{let P;f((P=[A,D],new is(2,[P[0],P[1]])))}:void 0),D=>{let P;f((P=[N,D[0],D[1]],new is(3,[P[0],P[1],P[2]])))}))},Aw(d.Selections)),$(()=>{let F,S,C,A,N,D;return H(d.DiscardedValues.length===0?k(Ae()):k(c("div",w(g([["className","pr-3 pt-2 pb-4 rounded-lg justify-start items-start gap-2 inline-flex"],(F=[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=[up(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=[Na(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 P=d.DiscardedValues.length|0;return k(P===1?["children","Remaining 1 unused field:"]:["children",`Remaining ${P} unused fields:`])}))))))),$(()=>{let P;return k(c("ul",w(g([["className","pl-2 font-normal overflow-hidden list-inside list-disc"],(P=et(j=>c("li",{children:[j]}),ks(Ln($(()=>H(k(et(j=>j.fields[0],d.DiscardedValues.slice(void 0,8))),$(()=>d.DiscardedValues.length>8?k(["... and 0 other values"]):ft())))))),["children",y.Children.toArray(Array.from(P))])]))))})))),["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(F))])])))),$(()=>{let P;return k(c("div",w(g([["className","w-[640px] pt-4 border-t border-gray-200 flex-col justify-start items-start flex"],(P=K($(()=>H(d.DiscardedValues.length===0?k(cp("All incoming values have been mapped.")):k(Ae()),$(()=>{let j,ae,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"],(ae=[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",de=>{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",de=>{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"}),Wu(13,8)],["children",y.Children.toArray(Array.from(B))])])))],["children",y.Children.toArray(Array.from(X))])])))],["children",y.Children.toArray(Array.from(ae))])])))],["children",y.Children.toArray(Array.from(j))])]))))})))),["children",y.Children.toArray(Array.from(P))])]))))}))})))),["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 T6 extends Ce{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 Qd extends Ce{constructor(t,n){super(),this.Summary=t,this.Details=n}}function os(e){if(!ki(e))return e}function pp(e,t,n){const r=n!=null?[n[0].fields[0].fields[0],q_(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 li(Yt(F=>F,[(o=os(pe(t.FirstName.fields[0],O)),o==null?void 0:(s=o,[_r(new re(0,[])),s])),(a=os(pe(t.LastName.fields[0],O)),a==null?void 0:(l=a,[_r(new re(1,[])),l])),(u=os(pe(t.Email.fields[0],O)),u==null?void 0:(d=u,[_r(new re(2,[])),d])),(f=(p=t.MobilePhone,p==null?void 0:(m=os(pe(p.fields[0],O)),m==null?void 0:dp(m))),f==null?void 0:(h=f,[_r(new re(3,[])),h])),(b=(v=r,v==null?void 0:(_=v,x=(E=pe(_[0],O),T=Ae(),[Sw(_[1],E,new Ct(()=>T,F=>{T=F})),T]),x[0]?x[1]:void 0)),b==null?void 0:(I=b,[_r(new re(4,[])),I]))]),{Compare:jr})},e.fields[0]))}function $6(e,t,n){const r=_r(n);return[Sr(e.Data,r),!au(i=>i.PropName===r,t)]}function M6(e,t){const n=Om(t.PropName);if(n==null)return["Invalid or missing field",!1];{const r=n,i=wo(r).toLocaleLowerCase();if(Sr(e.Data,_r(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 ef(e){const t=Om(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`${wo(n)} exists in multiple rows`;default:return zf(e.Message,e.Column,wo(n))}}}function I6(e,t,n,r){return Y.Delay(()=>Y.TryWith(Y.Delay(()=>{let i,o,s;return Y.ReturnFrom((i=new im(r!=null,su((a,l)=>new _u(a+2,l),(o=[t,n,r],pp(o[0],o[1],o[2])))),s=e(i),Y.Bind(s,a=>{let l;const u=a;return l=u.tag===1?new M(1,[u.fields[0]]):new M(0,[ir(d=>{let f,p,m,h,b;const v=Je((f=f0(x=>x.RowId===d.RowId,u.fields[0].Errors),f==null?void 0:f.FieldErrors),at()),_=x=>$6(d,v,x);return new T6(d.RowId-2+1,_(new re(0,[])),_(new re(1,[])),_(new re(2,[])),_(new re(3,[])),(p=_(new re(4,[])),[(m=(h=p[0],h==null?void 0:G_(h)),m==null?void 0:Im(m)),p[1]]),au(x=>x.Message.startsWith("Duplicate Email"),v),!Te(Mn(x=>!x.Message.startsWith("Duplicate Email"),v)),Te(v)?void 0:Te(De(v))?(b=M6(d,ue(v)),new Qd(b[0],b[1]?ce(ef(ue(v))):void 0)):new Qd("Multiple invalid or missing fields",ir(ef,v)))},i.Data)]),Y.Return(l)})))}),i=>Y.Return(new M(1,[nt(i)]))))}function D6(e,t,n,r,i){return Y.Delay(()=>Y.TryWith(Y.Delay(()=>{let o;return Y.Bind(e(new om(r!=null,te(i,new Nt(0,[])),su((s,a)=>new _u(s+2,a),(o=[t,n,r],pp(o[0],o[1],o[2]))))),s=>{let a;return Y.Return((a=s,a.tag===1?new M(1,[a.fields[0]]):new M(0,[a.fields[0].ImportId])))})}),o=>Y.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 ro extends Ce{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 R6(e,t,n){return[new ri(0,[]),um(g([Rn(t,new fn(5,[{RowCount:J_(n)}])),dm(r=>{fm(r)},e,void 0,r=>new ni(0,[r]))]))]}function ss(e,t,n){const r=(e-1)*20|0,i=_g(r,e*20-1,n?Mn(o=>o.Errors!=null,t):t);if(Te(i))return[0,0,at()];{const o=i;return[r+1,r+Jt(o),o]}}function gp(e){return e.PageNo>1}function wp(e){return e.ShowingOnlyRowsWithErrors?e.RowTo<e.NumberOfInvalidRows:e.RowTo<e.NumberOfRows}function O6(e,t){const n=Mn(r=>r.Errors!=null,e.Data);return $o(ce(`Error detail,First name,Last name,Email,Mobile phone${t?",Employment basis":""},Original row #
|
|
50
|
+
`),su((r,i)=>{const o=Je(_t(f=>f.Summary,i.Errors),""),s=Je(i.FirstName[0],""),a=Je(i.LastName[0],""),l=Je(i.Email[0],""),u=Je(i.MobilePhone[0],""),d=r===Jt(n)-1?"":`
|
|
51
|
+
`;return t?`${o},${s},${a},${l},${u},${Je(i.EmploymentBasis[0],"")},${i.RowNumber}${d}`:`${o},${s},${a},${l},${u},${i.RowNumber}${d}`},n))}function F6(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&&wp(r.fields[0])?(o=4,p=r.fields[0]):(o=7,h=r);break}case 4:{r.tag===1&&gp(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=ss(1,v[0],v[1]);const _=Jt(Mn(T=>T.Errors==null,s))|0,x=Jt(Mn(T=>T.HasDuplicateEmailError,s))|0,E=Jt(Mn(T=>T.Errors!=null,s))|0;return[new ri(1,[new ro(s,new Nt(1,[]),x,Jt(Mn(T=>T.HasErrorOtherThanDuplicateEmail,s)),E,Jt(s),_,!1,au(T=>T.Errors!=null,s),b[0],b[1],b[2],1)]),Rn(t,new fn(6,[{DuplicateCount:x,RowCount:Jt(s),SuccessCount:_,TotalFailedCount:E}]))]}case 1:return[r,Rn(e,a)];case 2:return[new ri(1,[new ro(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)]),ve()];case 3:{let b;const v=[d.Data,f];return b=ss(1,v[0],v[1]),[new ri(1,[new ro(d.Data,d.InviteTiming,d.DuplicateEmailCount,d.NumberOfRowsWithErrorsOtherThanDuplicateEmail,d.NumberOfInvalidRows,d.NumberOfRows,d.NumberOfValidRows,f,d.HasErrors,b[0],b[1],b[2],1)]),ve()]}case 4:{const b=p.PageNo+1|0;let v;const _=[p.Data,p.ShowingOnlyRowsWithErrors];return v=ss(b,_[0],_[1]),[new ri(1,[new ro(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)]),ve()]}case 5:{const b=m.PageNo-1|0;let v;const _=[m.Data,m.ShowingOnlyRowsWithErrors];return v=ss(b,_[0],_[1]),[new ri(1,[new ro(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)]),ve()]}case 6:return[r,Rn(t,new fn(7,[]))];default:return[h,ve()]}}function yp(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 vp(e,t,n){let r,i,o,s,a,l,u,d,f,p,m,h,b,v,_,x,E,T,I,O,F,S;return Bi(g([new xt(3,[t]),new xt(4,[n]),new xt(5,[[Gi(ce(new Wi(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=[Ui(ce(new ur(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=[Wr(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(ce((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(ce((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(ce((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(ce((_=[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(ce((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(ce((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"],(F=[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(F))])])))],["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"}),yp(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 P6(e,t){let n,r,i,o,s,a,l,u,d,f,p,m,h;return Bi(g([new xt(3,[e]),new xt(4,[t]),new xt(5,[[Gi(ce(new Wi(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=[Ui(ce(new ur(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=[Wr(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(ce((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(ce((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 L6=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"})))),V6=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"})),H6=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)"})))),j6=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})))),B6=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)"})))),U6=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"})),W6=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"})),G6=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 hr(e,t){return y.createElement(e,w(t))}function z6(e){return hr(L6,e)}function q6(e){return hr(V6,e)}function Y6(e){return hr(H6,e)}function Z6(e){return hr(j6,e)}function K6(e){return hr(B6,e)}function X6(e){return hr(U6,e)}function J6(e){return hr(W6,e)}function Q6(e){return hr(G6,e)}function e4(e,t,n,r){let i,o,s,a,l,u,d,f,p,m,h;return Bi(g([new xt(3,[e]),new xt(4,[n]),new xt(5,[[Gi(ce(new Wi(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=[Ui(g([new ur(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 ur(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=[Wr(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=[Z6([])],["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=[Qh(g([new js(2,["text-gray-900 text-lg font-bold"]),new js(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 t4(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=ce(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 n4(e){return`${nu(e,".")}.`}function tf(e){return nu(e,".")}function r4(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:[tf(u)]}),r))),["children",y.Children.toArray(Array.from(l))])])))):Te(De(r))?k(c("p",{children:[n4(ue(r))]})):k(c("ul",w(g([["className","list-outside list-disc"],(l=K($(()=>Le(u=>c("li",{children:[tf(u)]}),r))),["children",y.Children.toArray(Array.from(l))])]))))})),["children",y.Children.toArray(Array.from(a))])])))):ft()})))),["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 i4(){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(Cu(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 o4(e){const t=et(r=>r,dr(e)),n=new Blob(t,{type:"text/csv;charset=utf-8;"});return window.URL.createObjectURL(n)}const s4=(()=>{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 a4(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=R6(()=>I6(f,d,u,l),i,d);p=Ur(()=>Br(()=>m,(O,F)=>F6(o,i,O,F),(O,F)=>{}),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=[vp(s4,b[0],()=>{v(!1)}),P6(_[0],()=>{x(!1)}),Aa("Review"),ka("Preview your data and confirm that everything is mapped correctly."),c("div",w(g([["className","flex flex-row pt-3 gap-2"],(n=[_o("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,F,S;const C=p[0];if(C.tag===1){const A=C.fields[0],N=ae=>{h(new ni(1,[ae]))},D=ae=>{h(new ni(2,[ae]))},P=wp(A)?ae=>{h(new ni(3,[]))}:void 0,j=gp(A)?ae=>{h(new ni(4,[]))}:void 0;return k((O=[c("div",w(g([["className","flex-col justify-start items-start gap-6 inline-flex"],(F=K($(()=>H(k(e4(T,A.NumberOfValidRows,()=>{T&&I(!1)},()=>{T&&a([new Dm(Ln(Le(ae=>ae[0],ea(ae=>ae[1].Errors==null,Wg(d.fields[0],A.Data))))),A.InviteTiming])})),$(()=>{let ae,X,J,L,G,B,de,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"],(ae=[t4(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))}))):ft(),$(()=>{let le;return A.NumberOfRowsWithErrorsOtherThanDuplicateEmail>0?k((le=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(le))}))):ft()}))})),["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"],(de=[c("a",{className:"text-amber-800 text-sm font-medium leading-tight",children:"Download Error Report (.csv)",href:o4((q=[A,l!=null],O6(q[0],q[1]))),onClick:R=>{h(new ni(5,[]))},download:"import_users_error_rows"})],["children",y.Children.toArray(Array.from(de))])])))],["children",y.Children.toArray(Array.from(X))])])))],["children",y.Children.toArray(Array.from(ae))])])))):ft(),$(()=>{let R;return H(k(c("div",w(g([["className","w-full flex-col justify-start items-end gap-4 inline-flex"],(R=K($(()=>{let le,U;return H(A.HasErrors?k(c("div",w(g([["className","justify-start items-center gap-2 inline-flex py-3 -my-3"],["onClick",ye=>{D(!A.ShowingOnlyRowsWithErrors)}],(le=[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",ye=>{ye.preventDefault(),ye.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(le))])])))):ft(),$(()=>{let ye,ge,z,Se,we,$e,ie,he,ee,ne,Ie;return k(c("div",w(g([["className","w-full px-4 pt-4 pb-2 bg-white rounded-lg border border-gray-200 flex-col"],(ye=[c("div",w(ce((ge=[c("div",w(g([["className","w-full max-h-[470px] overflow-auto"],(z=[c("table",w(g([["className","w-full divide-y divide-gray-300"],(Se=[c("thead",w(g([["className","bg-gray-100 border-b border-gray-200 text-sm text-gray-900 text-sm font-medium leading-tight"],(we=[($e=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 be;return H(k(c("th",w(g([["scope","col"],["className","px-3 py-2.5 text-left"],(be=[c("span",{children:["Email "]}),c("span",{className:"text-red-500",children:"*"})],["children",y.Children.toArray(Array.from(be))])])))),$(()=>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"})):ft()))))}))}))})))))),c("tr",{children:y.Children.toArray(Array.from($e))}))],["children",y.Children.toArray(Array.from(we))])]))),c("tbody",w(g([["className","divide-y divide-gray-200"],(ie=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 be;return k((be=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 Ne,Be,Ee;return Z.Errors!=null?k((Ne=[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]),(Ee=K($(()=>H(k(c("span",{children:[V(Z.Errors).Summary]})),$(()=>{let dt;const Pt=V(Z.Errors).Details;return Pt==null?ft():k(c("div",w(g([["className","pl-1 text-amber-700 items-center inline-flex"],(dt=[c(r4,{text:Pt,children:[q6([])]})],["children",y.Children.toArray(Array.from(dt))])]))))})))),["children",y.Children.toArray(Array.from(Ee))])])))],["children",y.Children.toArray(Array.from(Ne))])):ft()}))))))),$(()=>H(k(c("td",w(K($(()=>{let Ne,Be;const Ee=Z.FirstName;return Ee[0]==null?ft():Ee[1]?(Ne=Ee[0],H(k(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),$(()=>k(["children",Ne])))):(Be=Ee[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 Ne,Be;const Ee=Z.LastName;return Ee[0]==null?ft():Ee[1]?(Ne=Ee[0],H(k(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),$(()=>k(["children",Ne])))):(Be=Ee[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 Ne,Be;const Ee=Z.Email;return Ee[0]==null?ft():Ee[1]?(Ne=Ee[0],H(k(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),$(()=>k(["children",Ne])))):(Be=Ee[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 Ne,Be;const Ee=Z.MobilePhone;return Ee[0]==null?ft():Ee[1]?(Ne=Ee[0],H(k(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),$(()=>k(["children",Ne])))):(Be=Ee[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 Ne,Be;const Ee=Z.EmploymentBasis;return Ee[0]==null?ft():Ee[1]?(Ne=Ee[0],H(k(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),$(()=>k(["children",Ne])))):(Be=Ee[0],H(k(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),$(()=>k(["children",Be]))))}))))):ft())))))))))))))),["children",y.Children.toArray(Array.from(be))]))}))})))))),A.Page))),["children",y.Children.toArray(Array.from(ie))])])))],["children",y.Children.toArray(Array.from(Se))])])))],["children",y.Children.toArray(Array.from(z))])]))),c("div",w(g([["className","h-[63px] w-full flex-col justify-start items-start inline-flex"],(he=[c("div",w(g([["className","self-stretch py-2.5 justify-between items-center inline-flex"],(ee=[(ne=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(ne))})),c("div",w(g([["className","justify-start items-start gap-3 flex"],(Ie=[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 be;return k((be=[c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:"Previous"})],["children",y.Children.toArray(Array.from(be))]))}))}))})))),c("button",w(K($(()=>{let Z;return H((Z=P,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 be;return k((be=[c("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(Ie))])])))],["children",y.Children.toArray(Array.from(ee))])])))],["children",y.Children.toArray(Array.from(he))])])))],["children",y.Children.toArray(Array.from(ge))]))))],["children",y.Children.toArray(Array.from(ye))])]))))}))})),["children",y.Children.toArray(Array.from(R))])])))),$(()=>{let le,U,ye,ge,z,Se,we,$e,ie,he,ee,ne,Ie,Z,Ue;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"],(le=[z6([]),c("div",w(g([["className","grow shrink basis-0 flex-col justify-center items-start gap-4 inline-flex"],(U=[c("div",w(g([["className","flex-col justify-start items-start gap-2 flex"],(ye=[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(ye))])]))),_o("What is workplace benefits?",()=>{x(!0)}),c("div",w(ce((ge=[c("div",w(g([["className","flex-col justify-start items-start gap-2 flex"],(z=[c("div",w(g([["key",nt(new Nt(1,[]))],["className","relative flex items-start"],(Se=[c("div",w(g([["className","flex h-6 items-center py-2"],["onClick",be=>{N(new Nt(1,[]))}],(we=[c("input",w(g([["id",nt(new Nt(1,[]))],["name","InviteTiming"],["type","radio"],($e="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",$e]),["checked",te(A.InviteTiming,new Nt(1,[]))],["onChange",be=>{be.target.checked,N(new Nt(1,[]))}]])))],["children",y.Children.toArray(Array.from(we))])]))),c("div",w(g([["className","ml-3 text-sm/6"],(ie=[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(ie))])])))],["children",y.Children.toArray(Array.from(Se))])])))],["children",y.Children.toArray(Array.from(z))])]))),c("div",w(ce((he=[c("div",w(g([["key",nt(new Nt(0,[]))],["className","relative flex items-start"],(ee=[c("div",w(g([["className","flex h-6 items-center py-2"],["onClick",be=>{N(new Nt(0,[]))}],(ne=[c("input",w(g([["id",nt(new Nt(0,[]))],["name","InviteTiming"],["type","radio"],(Ie="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",Ie]),["checked",te(A.InviteTiming,new Nt(0,[]))],["onChange",be=>{be.target.checked,N(new Nt(0,[]))}]])))],["children",y.Children.toArray(Array.from(ne))])]))),c("div",w(g([["className","ml-3 text-sm/6"],(Z=[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"],(Ue="We’ll import your users and send an email to help them set up workplace benefits and access the Flare app.",["children",Ue])])))],["children",y.Children.toArray(Array.from(Z))])])))],["children",y.Children.toArray(Array.from(ee))])])))],["children",y.Children.toArray(Array.from(he))]))))],["children",y.Children.toArray(Array.from(ge))]))))],["children",y.Children.toArray(Array.from(U))])])))],["children",y.Children.toArray(Array.from(le))])])))):ft(),$(()=>{let be,Ne,Be,Ee,dt,Pt,Ze;return k(c("div",w(g([["className","justify-start items-end gap-2 inline-flex w-full pb-2"],(be=[c("div",w(g([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(Ne=[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"],(Be=[c("button",w(g([(Ee="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",Ee]),["onClick",jt=>{s()}],(dt=[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(dt))])]))),c("button",w(g([(Pt="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",Pt]),["onClick",jt=>{T||I(!0)}],["disabled",A.NumberOfValidRows===0],(Ze=[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(Ze))])])))],["children",y.Children.toArray(Array.from(Be))])])))],["children",y.Children.toArray(Array.from(Ne))])])))],["children",y.Children.toArray(Array.from(be))])]))))}))}))}))})))),["children",y.Children.toArray(Array.from(F))])])))],["children",y.Children.toArray(Array.from(O))]))}else return k((S=[i4()],["children",y.Children.toArray(Array.from(S))]))}))))))],["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(t))])])))}class An extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UnsupportedFileType","TooLarge","NoData","MoreThan5000Rows","EmptyFieldNames","DuplicateFieldNames","InconsistentRowLengths","GenericParseError"]}}class ps extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Parse","CancelParsing","Remove"]}}var gs={exports:{}};/* @license
|
|
52
52
|
Papa Parse
|
|
53
53
|
v5.5.1
|
|
54
54
|
https://github.com/mholt/PapaParse
|
|
55
55
|
License: MIT
|
|
56
|
-
*/var
|
|
57
|
-
`),
|
|
58
|
-
`;for(var
|
|
59
|
-
`&&
|
|
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,P=S.preview,j=S.fastMode,
|
|
56
|
+
*/var l4=gs.exports,nf;function u4(){return nf||(nf=1,function(e,t){((n,r)=>{e.exports=r()})(l4,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 P=this._config.newline;P||(D=this._config.quoteChar||'"',P=this._handle.guessLineEndings(C,D)),C=[...C.split(P).slice(N)].join(P)}this.isFirstChunk&&F(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(F(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||!F(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){F(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(P){this._chunkError(P.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,P=(this._config.chunkSize&&(P=Math.min(this._start+this._config.chunkSize,this._input.size),D=A.call(D,this._start,P)),C.readAsText(D,this._config.encoding));N||this._chunkLoaded({target:{result:P}})},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(P){this._streamError(P)}},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,P=Math.pow(2,53),j=-P,ae=/^\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,de=!1,q=[],R={data:[],errors:[],meta:{}};function le(z){return S.skipEmptyLines==="greedy"?z.join("").trim()==="":z.length===1&&z[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(ie){return!le(ie)})),ye()){let ie=function(he,ee){F(S.transformHeader)&&(he=S.transformHeader(he,ee)),q.push(he)};var $e=ie;if(R)if(Array.isArray(R.data[0])){for(var z=0;ye()&&z<R.data.length;z++)R.data[z].forEach(ie);R.data.splice(0,1)}else R.data.forEach(ie)}function Se(ie,he){for(var ee=S.header?{}:[],ne=0;ne<ie.length;ne++){var Ie=ne,Z=ie[ne],Z=((Ue,be)=>(Ne=>(S.dynamicTypingFunction&&S.dynamicTyping[Ne]===void 0&&(S.dynamicTyping[Ne]=S.dynamicTypingFunction(Ne)),(S.dynamicTyping[Ne]||S.dynamicTyping)===!0))(Ue)?be==="true"||be==="TRUE"||be!=="false"&&be!=="FALSE"&&((Ne=>{if(ae.test(Ne)&&(Ne=parseFloat(Ne),j<Ne&&Ne<P))return 1})(be)?parseFloat(be):X.test(be)?new Date(be):be===""?null:be):be)(Ie=S.header?ne>=q.length?"__parsed_extra":q[ne]:Ie,Z=S.transform?S.transform(Z,Ie):Z);Ie==="__parsed_extra"?(ee[Ie]=ee[Ie]||[],ee[Ie].push(Z)):ee[Ie]=Z}return S.header&&(ne>q.length?ge("FieldMismatch","TooManyFields","Too many fields: expected "+q.length+" fields but parsed "+ne,G+he):ne<q.length&&ge("FieldMismatch","TooFewFields","Too few fields: expected "+q.length+" fields but parsed "+ne,G+he)),ee}var we;R&&(S.header||S.dynamicTyping||S.transform)&&(we=1,!R.data.length||Array.isArray(R.data[0])?(R.data=R.data.map(Se),we=R.data.length):R.data=Se(R.data,0),S.header&&R.meta&&(R.meta.fields=q),G+=we)}function ye(){return S.header&&q.length===0}function ge(z,Se,we,$e){z={type:z,code:Se,message:we},$e!==void 0&&(z.row=$e),R.errors.push(z)}F(S.step)&&(D=S.step,S.step=function(z){R=z,ye()?U():(U(),R.data.length!==0&&(L+=z.data.length,S.preview&&L>S.preview?A.abort():(R.data=R.data[0],D(R,J))))}),this.parse=function(z,Se,we){var $e=S.quoteChar||'"',$e=(S.newline||(S.newline=this.guessLineEndings(z,$e)),N=!1,S.delimiter?F(S.delimiter)&&(S.delimiter=S.delimiter(z),R.meta.delimiter=S.delimiter):(($e=((ie,he,ee,ne,Ie)=>{var Z,Ue,be,Ne;Ie=Ie||[","," ","|",";",u.RECORD_SEP,u.UNIT_SEP];for(var Be=0;Be<Ie.length;Be++){for(var Ee,dt=Ie[Be],Pt=0,Ze=0,jt=0,hn=(be=void 0,new _({comments:ne,delimiter:dt,newline:he,preview:10}).parse(ie)),Wn=0;Wn<hn.data.length;Wn++)ee&&le(hn.data[Wn])?jt++:(Ee=hn.data[Wn].length,Ze+=Ee,be===void 0?be=Ee:0<Ee&&(Pt+=Math.abs(Ee-be),be=Ee));0<hn.data.length&&(Ze/=hn.data.length-jt),(Ue===void 0||Pt<=Ue)&&(Ne===void 0||Ne<Ze)&&1.99<Ze&&(Ue=Pt,Z=dt,Ne=Ze)}return{successful:!!(S.delimiter=Z),bestDelimiter:Z}})(z,S.newline,S.skipEmptyLines,S.comments,S.delimitersToGuess)).successful?S.delimiter=$e.bestDelimiter:(N=!0,S.delimiter=u.DefaultDelimiter),R.meta.delimiter=S.delimiter),I(S));return S.preview&&S.header&&$e.preview++,C=z,A=new _($e),R=A.parse(C,Se,we),U(),B?{meta:{paused:!0}}:R||{meta:{paused:!1}}},this.paused=function(){return B},this.pause=function(){B=!0,A.abort(),C=F(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 de},this.abort=function(){de=!0,A.abort(),R.meta.aborted=!0,F(S.complete)&&S.complete(R),C=""},this.guessLineEndings=function(ie,$e){ie=ie.substring(0,1048576);var $e=new RegExp(v($e)+"([^]*?)"+v($e),"gm"),we=(ie=ie.replace($e,"")).split("\r"),$e=ie.split(`
|
|
57
|
+
`),ie=1<$e.length&&$e[0].length<we[0].length;if(we.length===1||ie)return`
|
|
58
|
+
`;for(var he=0,ee=0;ee<we.length;ee++)we[ee][0]===`
|
|
59
|
+
`&&he++;return he>=we.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,P=S.preview,j=S.fastMode,ae=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
61
|
`&&A!=="\r"&&A!==`\r
|
|
62
62
|
`&&(A=`
|
|
63
|
-
`);var L=0,G=!1;this.parse=function(B,
|
|
64
|
-
`,j='"',
|
|
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(P){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)F(S.complete)&&S.complete();else{var P,j,
|
|
63
|
+
`);var L=0,G=!1;this.parse=function(B,de,q){if(typeof B!="string")throw new Error("Input must be a string");var R=B.length,le=C.length,U=A.length,ye=N.length,ge=F(D),z=[],Se=[],we=[],$e=L=0;if(!B)return dt();if(j||j!==!1&&B.indexOf(X)===-1){for(var ie=B.split(A),he=0;he<ie.length;he++){if(we=ie[he],L+=we.length,he!==ie.length-1)L+=A.length;else if(q)return dt();if(!N||we.substring(0,ye)!==N){if(ge){if(z=[],be(we.split(C)),Pt(),G)return dt()}else be(we.split(C));if(P&&P<=he)return z=z.slice(0,P),dt(!0)}}return dt()}for(var ee=B.indexOf(C,L),ne=B.indexOf(A,L),Ie=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||Se.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:z.length,index:L}),Be();if(Z===R-1)return Be(B.substring(L,Z).replace(Ie,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=Ne((ne=ne!==-1&&ne<Z+1?B.indexOf(A,Z+1):ne)===-1?ee:Math.min(ee,ne));if(B.substr(Z+1+Ue,le)===C){we.push(B.substring(L,Z).replace(Ie,X)),B[L=Z+1+Ue+le]!==X&&(Z=B.indexOf(X,L)),ee=B.indexOf(C,L),ne=B.indexOf(A,L);break}if(Ue=Ne(ne),B.substring(Z+1+Ue,Z+1+Ue+U)===A){if(we.push(B.substring(L,Z).replace(Ie,X)),Ee(Z+1+Ue+U),ee=B.indexOf(C,L),Z=B.indexOf(X,L),ge&&(Pt(),G))return dt();if(P&&z.length>=P)return dt(!0);break}Se.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:z.length,index:L}),Z++}}else if(N&&we.length===0&&B.substring(L,L+ye)===N){if(ne===-1)return dt();L=ne+U,ne=B.indexOf(A,L),ee=B.indexOf(C,L)}else if(ee!==-1&&(ee<ne||ne===-1))we.push(B.substring(L,ee)),L=ee+le,ee=B.indexOf(C,L);else{if(ne===-1)break;if(we.push(B.substring(L,ne)),Ee(ne+U),ge&&(Pt(),G))return dt();if(P&&z.length>=P)return dt(!0)}return Be();function be(Ze){z.push(Ze),$e=L}function Ne(Ze){var jt=0;return jt=Ze!==-1&&(Ze=B.substring(Z+1,Ze))&&Ze.trim()===""?Ze.length:jt}function Be(Ze){return q||(Ze===void 0&&(Ze=B.substring(L)),we.push(Ze),L=R,be(we),ge&&Pt()),dt()}function Ee(Ze){L=Ze,be(we),we=[],ne=B.indexOf(A,L)}function dt(Ze){if(S.header&&!de&&z.length){var jt=z[0],hn={},Wn=new Set(jt);let Gu=!1;for(let Gr=0;Gr<jt.length;Gr++){let pn=jt[Gr];if(hn[pn=F(S.transformHeader)?S.transformHeader(pn,Gr):pn]){let zi,zu=hn[pn];for(;zi=pn+"_"+zu,zu++,Wn.has(zi););Wn.add(zi),jt[Gr]=zi,hn[pn]++,Gu=!0,(ae=ae===null?{}:ae)[zi]=pn}else hn[pn]=1,jt[Gr]=pn;Wn.add(pn)}Gu&&console.warn("Duplicate headers found and renamed.")}return{data:z,errors:Se,meta:{delimiter:C,linebreak:A,aborted:G,truncated:!!Ze,cursor:$e+(de||0),renamedHeaders:ae}}}function Pt(){D(dt()),z=[],Se=[]}},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(F(A.userStep)){for(var P=0;P<C.results.data.length&&(A.userStep({data:C.results.data[P],errors:C.results.errors,meta:C.results.meta},D),!N);P++);delete C.results}else F(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];F(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 F(S){return typeof S=="function"}return u.parse=function(S,C){var A=(C=C||{}).dynamicTyping||!1;if(F(A)&&(C.dynamicTypingFunction=A,A={}),C.dynamicTyping=A,C.transform=!!F(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&&F(S.read)&&F(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,P=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; ","(",P,")();"],{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=F(C.step),C.chunk=F(C.chunk),C.complete=F(C.complete),C.error=F(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=",",P=`\r
|
|
64
|
+
`,j='"',ae=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"&&(P=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&&(ae=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,le){var U="",ye=(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(ye&&N){for(var z=0;z<q.length;z++)0<z&&(U+=D),U+=de(q[z],z);0<R.length&&(U+=P)}for(var Se=0;Se<R.length;Se++){var we=(ye?q:R[Se]).length,$e=!1,ie=ye?Object.keys(R[Se]).length===0:R[Se].length===0;if(le&&!ye&&($e=le==="greedy"?R[Se].join("").trim()==="":R[Se].length===1&&R[Se][0].length===0),le==="greedy"&&ye){for(var he=[],ee=0;ee<we;ee++){var ne=ge?q[ee]:ee;he.push(R[Se][ne])}$e=he.join("").trim()===""}if(!$e){for(var Ie=0;Ie<we;Ie++){0<Ie&&!ie&&(U+=D);var Z=ye&&ge?q[Ie]:Ie;U+=de(R[Se][Z],Ie)}Se<R.length-1&&(!le||0<we&&!ie)&&(U+=P)}}return U}function de(q,R){var le,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),le=q.toString().replace(G,ae),(U=U||A===!0||typeof A=="function"&&A(q,R)||Array.isArray(A)&&A[R]||((ye,ge)=>{for(var z=0;z<ge.length;z++)if(-1<ye.indexOf(ge[z]))return!0;return!1})(le,u.BAD_DELIMITERS)||-1<le.indexOf(D)||le.charAt(0)===" "||le.charAt(le.length-1)===" ")?j+le+j:le)}},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(P){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)F(S.complete)&&S.complete();else{var P,j,ae,X,J=A[0];if(F(S.before)){var L=S.before(J.file,J.inputElem);if(typeof L=="object"){if(L.action==="abort")return P="AbortError",j=J.file,ae=J.inputElem,X=L.reason,void(F(S.error)&&S.error({name:P},j,ae,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){F(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})}(gs)),gs.exports}var c4=u4();const d4=e=>e.filter(n=>!ki(n)).length===0;function f4(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,!Ir(te,a,Ae())&&a.length===0?(l=(u=o.data,u.filter(E=>!d4(E))),d=l.length>1?new M(0,[void 0]):new M(1,[new An(2,[])]),d.tag===1?new M(1,[d.fields[0]]):(f=l.length<=5001?new M(0,[void 0]):new M(1,[new An(3,[])]),f.tag===1?new M(1,[f.fields[0]]):(p=Cc(l),m=p.length|0,h=p.some(ki)?new M(1,[new An(4,[])]):new M(0,[void 0]),h.tag===1?new M(1,[h.fields[0]]):(b=(v=$m(et(E=>E.trim().toLocaleLowerCase(),p),{Equals:(E,T)=>E===T,GetHashCode:cr}),v.length===m?new M(0,[void 0]):new M(1,[new An(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 An(6,[])])),_.tag===1?new M(1,[_.fields[0]]):new M(0,[new Q_(new Rm(t.name),l0((E,T)=>[new H_(E),new Z_(T.trim())],Cc(l)),new Dm(et(E=>new K_(et(T=>T.trim(),E)),ag(l))),t.size)])))))):new M(1,[new An(7,[pe(0,o.errors).message])])))},i.error=(o,s)=>{e(new M(1,[new An(7,[o])]))},i.worker=!0,c4.parse(t,i)}else e(new M(1,[new An(1,[])]));else e(new M(1,[new An(0,[])]))}let Cr=class extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NoFileSelected","ParsingFile","FileSelected"]}};function m4(e){return e==null?[new Cr(0,[void 0]),ve()]:[new Cr(2,[e]),ve()]}function h4(e,t,n,r){const i=d=>Rn(t,new fn(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 Cr(1,[s]),cm(a)];case 1:return[new Cr(2,[l]),um(g([Rn(e,!0),i(!0)]))];case 2:return[new Cr(0,[u]),i(!1)];case 3:return[r,ve()];case 4:return[new Cr(0,[void 0]),ve()];case 5:return[r,ve()];case 6:return[new Cr(0,[void 0]),Rn(e,!1)];default:return[r,ve()]}}function p4(e,t){let n,r,i,o,s,a,l;return Bi(g([new xt(3,[e]),new xt(4,[t]),new xt(5,[[Gi(ce(new Wi(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=[Ui(ce(new ur(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=[Wr(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
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 x4(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 C4(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 S4(e,t){Ii(Z.Delay(()=>Z.Bind(N0(1e3),()=>(y4(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 E4(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=v4(m);h=Gr(()=>Wr(()=>b,(N,D)=>b4(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 Vm(N.name),D=>{S4(N,D)}]])]))},E=y.useState(!1),T=E[1],I=y.useState(!1),O=I[1],F=y.useState(!1),S=F[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=[Sp(nl,E[0],()=>{T(!1)}),_4(F[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"}),Cp(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,P,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"],(P=[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(P))])]))),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),Ir(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=[x4(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=[sp(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=[C4(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 Ep(e){switch(e.tag){case 1:return"field mapping";case 2:return"value mapping";case 3:return"review";default:return"file upload"}}class Ht extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Configuring","Importing"]}}function uf(e){return e.tag===1?"requested":Ep(e.fields[0])}function A4(){return[new Ht(0,[new zt(0,[void 0])]),we()]}function k4(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,F,S,C,A,N,D,P,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,P=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,F=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 Ht(0,[new zt(1,[[o,new Nn(0,[void 0])]])]);return[U,r(n,U)]}case 1:{const U=te(s,a)?new Ht(0,[new zt(1,[[a,l]])]):new Ht(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 Ht(0,[new zt(3,[[d,u,void 0]])]);return[U,r(n,U)]}case 4:{const U=new Ht(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 Ht(0,[new zt(3,[[v,b,[_,x]]])]);return[U,r(n,U)]}case 7:return[n,we()];case 8:{const U=new Ht(1,[[O,E,T,I]]);return[U,r(n,U)]}case 9:return[n,we()];case 10:{const U=new Ht(0,[new zt(1,[[S,new Nn(1,[new Xr(0,[F])])]])]);return[U,r(n,U)]}case 11:{const U=new Ht(0,[new zt(2,[[A,C,N,D]])]);return[U,r(n,U)]}case 12:return[n,we()];case 13:{const U=new Ht(0,[new zt(1,[[j,new Nn(1,[new Xr(1,[P,se,X])])]])]);return[U,r(n,U)]}case 14:return[n,we()];case 15:{const U=new Ht(0,[new zt(0,[[L,new Nn(1,[new Xr(0,[J])])]])]);return[U,r(n,U)]}case 16:{const U=new Ht(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 Xr(1,[G,ce,void 0])]):new Nn(1,[new Xr(1,[G,ce,void 0])]):new Nn(1,[new Xr(1,[G,ce,void 0])])]])]);return[U,r(n,U)]}case 17:{const U=new Ht(0,[new zt(0,[[R,new Nn(0,[fe])]])]);return[U,r(n,U)]}default:return[n,we()]}}function N4(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=[zr(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=[e4([])],["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=[ip(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 T4(e,t){let n;const r=sw();return n=y.useRef(r),T0(()=>mu(()=>{aw(n.current)})),$0(i=>{lw(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 $4(e,t,n,r,i,o,s){let a,l,u,d,f,p,m;return oa((a=[()=>V6(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}}}],T4(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=[n4([])],["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 M4(e){return c(Qh,Gn(e,1))}class Qr extends _e{constructor(t,n,r){super(),this.Type=t,this.Title=n,this.Message=r}}class ei extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Success","Failure","InProgress"]}}function I4(e,t){let n,r,i,o,s,a,l,u;return M4(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(i4([])):d.tag===2?k(o4([])):k(r4([]))})),["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 D4(e){const t=document.getElementById("workspace-toasts-container"),n=G0(),r=I4(()=>{document.getElementById(n).remove()},e),i=document.createElement("div");Zl(r,i);const o=i.children[0];o.id=n,t.appendChild(o)}const R4=3e4;function O4(e,t,n,r,i){const o=r.fields[0],s=()=>Z.Delay(()=>Z.Bind(N0(R4),()=>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 Qr(new ei(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 Qr(new ei(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 Qr(new ei(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 Qr(new ei(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 Qr(new ei(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 Qr(new ei(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(){Rm(g(["admin","app","users"]))}function Ap(e){Rm(g(["admin","app","oops"]))}function F4(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 P4(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(E6,{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=rx(o.fields[0][0].DataRows,o.fields[0][2]);return c(R6,{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(m4,{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=>{Ap()},sendAnalytics:i});default:{const s=_t(a=>a[0],o.fields[0]);return c(E4,{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 L4(e){let t,n,r,i,o,s,a,l;const u=(t=G0(),t);l=I=>fm(e.backendUrl,u,I),a=I=>{Ii(l(I))},s=y.useCallback(a,[]),oa(()=>{s(new gn(0,[{Section:"user import"}]))});const d=Gr(()=>Wr(A4,(I,O)=>k4(s,I,O),(I,O)=>{}),void 0,void 0),f=d[0],p=y.useState(!1),m=p[0],h=p[1],b=y.useState(!1),v=b[0],_=y.useCallback(I=>{I.preventDefault(),I.returnValue=!0},[]),x=()=>{window.removeEventListener("beforeunload",_)};E0(()=>(v?window.addEventListener("beforeunload",_):x(),{Dispose(){x()}}),[v]);let E;if(f.tag===0){const I=f.fields[0],O=()=>{m||h(!0)},F=F4(I),S=P4(C=>M2(e.backendUrl,C),O,d[1],b[1],s,I);E=c("div",w(g([["className","flex flex-col h-full"],(n=[N4(m,()=>{m&&h(!1)},()=>{m&&(s(new gn(2,[{From:Ep(I)}])),x(),cf())}),c("div",w(g([["className","flex flex-row justify-between px-12 pt-8 pb-4"],(r=[c("span",{className:"font-sonoma text-gray-900 font-bold text-lg",children:"Import Users from CSV"}),c("button",w(g([(i="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",i]),["onClick",C=>{O()}],["type","button"],["children",y.Children.toArray(["Cancel import"])]])))],["children",y.Children.toArray(Array.from(r))])]))),c("div",w(g([["className","flex flex-row items-center px-12 gap-2 border-b border-gray-200"],(o=[cs("1. Upload CSV",F.UploadingCsv),c("hr",{className:"w-16 pt-1.5"}),cs("2. Map fields",F.MappingColumns),c("hr",{className:"w-16 pt-1.5"}),cs("3. Map values",F.MappingEmploymentBasis),c("hr",{className:"w-16 pt-1.5"}),cs("4. Review",F.Reviewing)],["children",y.Children.toArray(Array.from(o))])]))),S],["children",y.Children.toArray(Array.from(n))])])))}else{const I=f.fields[0][3],O=f.fields[0][0],F=f.fields[0][1];E=$4(S=>I2(e.backendUrl,S),O,F,f.fields[0][2],I,S=>{s(new gn(8,[{ImportId:S,UsersInvited:I.tag!==1}])),x();const C=[S,O,F.Email];O4(A=>{D4(A)},A=>D2(e.backendUrl,A),C[0],C[1],C[2]),cf()},S=>{x(),Ap()})}const T=[c("style",{children:[Ql]}),E];return c(Ye,{},...T)}function V4(){Hl(e=>c(L4,e),"apollo-import-workspace-wizard")}Hl(e=>c(Ng,e),"apollo-import-workspace-app");F_();V4();
|
|
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 g4(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 w4(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 y4(e,t){Mi(Y.Delay(()=>Y.Bind(C0(1e3),()=>(f4(n=>{t(new ps(0,[new ua(1,[n])]))},e),Y.Zero()))))}const el=(()=>{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 v4(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=m4(m);h=Ur(()=>Br(()=>b,(N,D)=>h4(d,u,N,D),(N,D)=>{}),void 0,void 0);const v=h[0],_=h[1],x=N=>{_(new ps(0,[new ua(0,[[new Rm(N.name),D=>{y4(N,D)}]])]))},E=y.useState(!1),T=E[1],I=y.useState(!1),O=I[1],F=y.useState(!1),S=F[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=[vp(el,E[0],()=>{T(!1)}),p4(F[0],()=>{S(!1)}),Aa("Upload CSV"),ka("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",el],["download","import_users"],(r=[c("span",{className:"text-sm font-medium text-primary-600 pt-2",children:"Download sample CSV template"}),yp(16,16)],["children",y.Children.toArray(Array.from(r))])]))),c("div",w(g([["className","flex flex-row pt-3 gap-2"],(i=[_o("What kind of data do I need?",()=>{T(!0)}),_o("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,P,j,ae,X,J,L,G,B,de,q,R,le,U;switch(v.tag){case 2:{let ye;const ge=v.fields[0].SizeInBytes/1024/1024;return ye=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"],(P=[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=[Uu(20,20)],["children",y.Children.toArray(Array.from(j))])])))],["children",y.Children.toArray(Array.from(P))])]))),c("div",w(g([["className","justify-start items-start gap-3 flex"],(ae=[c("div",{className:"text-center text-gray-500 text-sm font-medium",children:(X=eu("{0:F2}",ye),$r(Pn("%sMB"))(X))}),c("button",w(g([["className","justify-start items-center gap-1 flex text-red-600"],["onClick",z=>{_(new ps(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=[Ms(10,10)],["children",y.Children.toArray(Array.from(L))])])))],["children",y.Children.toArray(Array.from(J))])])))],["children",y.Children.toArray(Array.from(ae))])])))],["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"],(de=[g4(20,20)],["children",y.Children.toArray(Array.from(de))])])))],["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",ye=>{_(new ps(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"],(le=[Ms(10,10)],["children",y.Children.toArray(Array.from(le))])])))],["children",y.Children.toArray(Array.from(R))])])))],["children",y.Children.toArray(Array.from(q))])])))],["children",y.Children.toArray(Array.from(G))])]))));default:{const ye=ge=>{ge.preventDefault(),ge.stopPropagation()};return k(c("div",w(g([["className","flex flex-col items-center p-4"],["onDragEnter",ge=>{ye(ge),O(!0)}],["onDragLeave",ge=>{ye(ge),O(!1)}],["onDragOver",ge=>{ye(ge),O(!0)}],["onDrop",ge=>{let z;ye(ge),O(!1),x((z=ge,z.dataTransfer).files.item(0))}],(U=K($(()=>{let ge,z,Se,we,$e,ie;return H((ge=v.fields[0],ge==null?k(Ae()):(z=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"],(Se=[c("div",w(g([["className","w-5 h-5 px-0.5 pt-0.5 pb-[3px] justify-center items-center flex"],(we=[tp(16,15)],["children",y.Children.toArray(Array.from(we))])]))),c("div",w(g([["className","grow shrink basis-0 flex-col justify-start items-start gap-2 inline-flex"],($e=[c("div",w(g([["className","self-stretch text-red-800 text-sm font-normal"],(ie=K($(()=>{let he;const ee=Z=>c("span",{className:"font-medium",children:Z}),ne=Z=>c("span",{children:[Z]}),Ie=c("a",{className:"underline",children:"sample CSV",href:el,download:"import_users"});return k((he=z.tag===1?g([ee("File is too large (over 10MB). "),ne("Upload a "),ee("smaller file"),ne(".")]):z.tag===2?g([ee("File is empty. "),ne("Ensure your file contains data before uploading.")]):z.tag===3?g([ee("Too many rows (5000+). "),ne("Upload a "),ee("file with fewer rows"),ne(".")]):z.tag===4?g([ee("Invalid CSV: Missing header field(s). "),ne("Try using our "),Ie,ne(".")]):z.tag===5?g([ee("Invalid CSV: Duplicate header fields. "),ne("Try using our "),Ie,ne(".")]):z.tag===6?g([ee("Invalid CSV: Rows have different lengths. "),ne("Check for missing or extra columns.")]):z.tag===7?g([ee("Invalid CSV format. "),ne("Try using our "),Ie,ne(".")]):g([ee("Unsupported file type. "),ne("Upload a "),ee(".csv file"),ne(".")]),c("p",{children:y.Children.toArray(Array.from(he))})))})),["children",y.Children.toArray(Array.from(ie))])])))],["children",y.Children.toArray(Array.from($e))])])))],["children",y.Children.toArray(Array.from(Se))])])))))),$(()=>{let he;return H(k(c("div",w(g([["className","pt-2"],(he=[w4(20,21)],["children",y.Children.toArray(Array.from(he))])])))),$(()=>H(k(c("input",{type:"file",onChange:ee=>{const ne=ee.target.files;ne!=null&&ne.length>0&&x(ne.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=>{jn(ne=>{ne.click()},Ni(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",Wu(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 Ut extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UploadingCsv","MappingColumns","MappingEmploymentBasis","Reviewing"]}}function bp(e){switch(e.tag){case 1:return"field mapping";case 2:return"value mapping";case 3:return"review";default:return"file upload"}}class Lt extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Configuring","Importing"]}}function rf(e){return e.tag===1?"requested":bp(e.fields[0])}function b4(){return[new Lt(0,[new Ut(0,[void 0])]),ve()]}function _4(e,t,n){const r=(U,ye)=>Rn(e,new fn(3,[{From:rf(U),To:rf(ye)}]));let i,o,s,a,l,u,d,f,p,m,h,b,v,_,x,E,T,I,O,F,S,C,A,N,D,P,j,ae,X,J,L,G,B,de,q,R,le;if(t.tag===1)switch(t.fields[0].tag){case 1:{n.tag===0&&n.fields[0].tag===2?(i=13,P=n.fields[0].fields[0][1],j=n.fields[0].fields[0][0],ae=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],le=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],de=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,F=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 Lt(0,[new Ut(1,[[o,new En(0,[void 0])]])]);return[U,r(n,U)]}case 1:{const U=te(s,a)?new Lt(0,[new Ut(1,[[a,l]])]):new Lt(0,[new Ut(1,[[s,new En(0,[void 0])]])]);return[U,r(n,U)]}case 2:return[n,ve()];case 3:{const U=new Lt(0,[new Ut(3,[[d,u,void 0]])]);return[U,r(n,U)]}case 4:{const U=new Lt(0,[new Ut(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,ve()];case 6:{const U=new Lt(0,[new Ut(3,[[v,b,[_,x]]])]);return[U,r(n,U)]}case 7:return[n,ve()];case 8:{const U=new Lt(1,[[O,E,T,I]]);return[U,r(n,U)]}case 9:return[n,ve()];case 10:{const U=new Lt(0,[new Ut(1,[[S,new En(1,[new Kr(0,[F])])]])]);return[U,r(n,U)]}case 11:{const U=new Lt(0,[new Ut(2,[[A,C,N,D]])]);return[U,r(n,U)]}case 12:return[n,ve()];case 13:{const U=new Lt(0,[new Ut(1,[[j,new En(1,[new Kr(1,[P,ae,X])])]])]);return[U,r(n,U)]}case 14:return[n,ve()];case 15:{const U=new Lt(0,[new Ut(0,[[L,new En(1,[new Kr(0,[J])])]])]);return[U,r(n,U)]}case 16:{const U=new Lt(0,[new Ut(0,[[B,q.tag===1?q.fields[0].tag===1?te(G,q.fields[0].fields[0])&&te(de,q.fields[0].fields[1])?q:new En(1,[new Kr(1,[G,de,void 0])]):new En(1,[new Kr(1,[G,de,void 0])]):new En(1,[new Kr(1,[G,de,void 0])])]])]);return[U,r(n,U)]}case 17:{const U=new Lt(0,[new Ut(0,[[R,new En(0,[le])]])]);return[U,r(n,U)]}default:return[n,ve()]}}function x4(e,t,n){let r,i,o,s,a,l,u,d,f,p,m;return Bi(g([new xt(3,[e]),new xt(4,[t]),new xt(5,[[Gi(ce(new Wi(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=[Ui(g([new ur(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 ur(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=[Wr(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=[Y6([])],["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=[Qh(g([new js(2,["text-gray-900 text-lg font-bold"]),new js(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 tl extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function C4(e,t){let n;const r=ew();return n=y.useRef(r),S0(()=>du(()=>{tw(n.current)})),E0(i=>{nw(n.current)||Mi(Y.Delay(()=>Y.TryWith(Y.Delay(()=>(t(new tl(1,[])),Y.Bind(e(i),o=>(t(new tl(2,[o])),Y.Zero())))),o=>(t(new tl(3,[o])),Y.Zero()))),n.current)})}function S4(e,t,n,r,i,o,s){let a,l,u,d,f,p,m;return ra((a=[()=>D6(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}}}],C4(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=[K6([])],["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 gn 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 E4(e){return c(Yh,Bn(e,1))}class Jr extends Ce{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 A4(e,t){let n,r,i,o,s,a,l,u;return E4(g([new gn(1,["div"]),new gn(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 gn(3,[!0]),new gn(5,["transform ease-out duration-300 transition"]),new gn(6,["translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2"]),new gn(7,["translate-y-0 opacity-100 sm:translate-x-0"]),new gn(8,["transition ease-in duration-100"]),new gn(9,["opacity-100"]),new gn(10,["opacity-0"]),new gn(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(J6([])):d.tag===2?k(Q6([])):k(X6([]))})),["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=[Ms(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 k4(e){const t=document.getElementById("workspace-toasts-container"),n=H0(),r=A4(()=>{document.getElementById(n).remove()},e),i=document.createElement("div");ql(r,i);const o=i.children[0];o.id=n,t.appendChild(o)}const N4=3e4;function T4(e,t,n,r,i){const o=r.fields[0],s=()=>Y.Delay(()=>Y.Bind(C0(N4),()=>Y.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",`"${pe(i.fields[0],pe(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)))?Y.Bind(s(),()=>Y.Return(void 0)):Y.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.")),Mi(s())}class kt extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Completed","Active","Disabled"]}}class as extends Ce{constructor(t,n,r,i){super(),this.UploadingCsv=t,this.MappingColumns=n,this.MappingEmploymentBasis=r,this.Reviewing=i}}function of(){Tm(g(["admin","app","users"]))}function _p(e){Tm(g(["admin","app","oops"]))}function $4(e){switch(e.tag){case 1:return new as(new kt(0,[]),new kt(1,[]),new kt(2,[]),new kt(2,[]));case 2:return new as(new kt(0,[]),new kt(0,[]),new kt(1,[]),new kt(2,[]));case 3:return new as(new kt(0,[]),new kt(0,[]),new kt(0,[]),new kt(1,[]));default:return new as(new kt(1,[]),new kt(2,[]),new kt(2,[]),new kt(2,[]))}}function M4(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?[kd(s[1].fields[0].fields[0],s[1].fields[0].fields[1]),s[0].HeaderRow,s[0].DataRows]:[kd(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(v6,{existingMappings:io(a[0]),headerRow:a[1],dataRows:a[2],next:l=>{let u;n(new gr(0,[(u=l,new rs(1,[u[0],u[1]]))]))},back:l=>{n(new gr(1,[new Qa(2,[l])]))},sendAnalytics:i})}case 2:{const s=X_(o.fields[0][0].DataRows,o.fields[0][2]);return c(N6,{existingMappings:io(o.fields[0][3]),employmentBasisColumn:s,next:a=>{n(new gr(0,[new rs(2,[a])]))},back:a=>{n(new gr(1,[new Qa(1,[a])]))}})}case 3:return c(a4,{apiCallAsync:e,dataRows:o.fields[0][0].DataRows,baseColumnMappings:o.fields[0][1],employmentBasis:io(o.fields[0][2]),next:s=>{let a;n(new gr(0,[(a=s,new rs(3,[a[0],a[1]]))]))},back:()=>{n(new gr(1,[new Qa(0,[])]))},onError:s=>{_p()},sendAnalytics:i});default:{const s=_t(a=>a[0],o.fields[0]);return c(v4,{existingCsvFile:io(s),next:a=>{n(new gr(0,[new rs(0,[a])]))},cancel:t,markDirty:r,sendAnalytics:i})}}}function ls(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=[Uu(20,20),c("span",{children:e})],["children",y.Children.toArray(Array.from(i))])])))}}function I4(e){let t,n,r,i,o,s,a,l;const u=(t=H0(),t);l=I=>am(e.backendUrl,u,I),a=I=>{Mi(l(I))},s=y.useCallback(a,[]),ra(()=>{s(new fn(0,[{Section:"user import"}]))});const d=Ur(()=>Br(b4,(I,O)=>_4(s,I,O),(I,O)=>{}),void 0,void 0),f=d[0],p=y.useState(!1),m=p[0],h=p[1],b=y.useState(!1),v=b[0],_=y.useCallback(I=>{I.preventDefault(),I.returnValue=!0},[]),x=()=>{window.removeEventListener("beforeunload",_)};b0(()=>(v?window.addEventListener("beforeunload",_):x(),{Dispose(){x()}}),[v]);let E;if(f.tag===0){const I=f.fields[0],O=()=>{m||h(!0)},F=$4(I),S=M4(C=>E2(e.backendUrl,C),O,d[1],b[1],s,I);E=c("div",w(g([["className","flex flex-col h-full"],(n=[x4(m,()=>{m&&h(!1)},()=>{m&&(s(new fn(2,[{From:bp(I)}])),x(),of())}),c("div",w(g([["className","flex flex-row justify-between px-12 pt-8 pb-4"],(r=[c("span",{className:"font-sonoma text-gray-900 font-bold text-lg",children:"Import Users from CSV"}),c("button",w(g([(i="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",i]),["onClick",C=>{O()}],["type","button"],["children",y.Children.toArray(["Cancel import"])]])))],["children",y.Children.toArray(Array.from(r))])]))),c("div",w(g([["className","flex flex-row items-center px-12 gap-2 border-b border-gray-200"],(o=[ls("1. Upload CSV",F.UploadingCsv),c("hr",{className:"w-16 pt-1.5"}),ls("2. Map fields",F.MappingColumns),c("hr",{className:"w-16 pt-1.5"}),ls("3. Map values",F.MappingEmploymentBasis),c("hr",{className:"w-16 pt-1.5"}),ls("4. Review",F.Reviewing)],["children",y.Children.toArray(Array.from(o))])]))),S],["children",y.Children.toArray(Array.from(n))])])))}else{const I=f.fields[0][3],O=f.fields[0][0],F=f.fields[0][1];E=S4(S=>A2(e.backendUrl,S),O,F,f.fields[0][2],I,S=>{s(new fn(8,[{ImportId:S,UsersInvited:I.tag!==1}])),x();const C=[S,O,F.Email];T4(A=>{k4(A)},A=>k2(e.backendUrl,A),C[0],C[1],C[2]),of()},S=>{x(),_p()})}const T=[c("style",{children:[Xl]}),E];return c(Ye,{},...T)}function D4(){Ll(e=>c(I4,e),"apollo-import-workspace-wizard")}Ll(e=>c(xg,e),"apollo-import-workspace-app");$_();D4();
|