@flarehr/apollo-import-workspace-app 0.1.443 → 0.1.447
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 Pi,we,zc,Yn,Ul,Yc,na,Ia,ra,ia,Zc,$i={},Kc=[],Mm=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ko=Array.isArray;function mn(e,t){for(var n in t)e[n]=t[n];return e}function Xc(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function f(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?Pi.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 Si(e,s,r,i,null)}function Si(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??++zc,__i:-1,__u:0};return i==null&&we.vnode!=null&&we.vnode(o),o}function Xo(){return{current:null}}function Le(e){return e.children}function Kt(e,t){this.props=e,this.context=t}function Hr(e,t){if(t==null)return e.__?Hr(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"?Hr(e):null}function Qc(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 Qc(e)}}function oa(e){(!e.__d&&(e.__d=!0)&&Yn.push(e)&&!xo.__r++||Ul!==we.debounceRendering)&&((Ul=we.debounceRendering)||Yc)(xo)}function xo(){var e,t,n,r,i,o,s,a;for(Yn.sort(na);e=Yn.shift();)e.__d&&(t=Yn.length,r=void 0,o=(i=(n=e).__v).__e,s=[],a=[],n.__P&&((r=mn({},i)).__v=i.__v+1,we.vnode&&we.vnode(r),Da(n.__P,r,i,n.__n,n.__P.namespaceURI,32&i.__u?[o]:null,s,o??Hr(i),!!(32&i.__u),a),r.__v=i.__v,r.__.__k[r.__i]=r,td(s,r,a),r.__e!=o&&Qc(r)),Yn.length>t&&Yn.sort(na));xo.__r=0}function Jc(e,t,n,r,i,o,s,a,l,u,d){var c,p,m,h,g,w=r&&r.__k||Kc,S=t.length;for(n.__d=l,Im(n,t,w),l=n.__d,c=0;c<S;c++)(m=n.__k[c])!=null&&(p=m.__i===-1?$i:w[m.__i]||$i,m.__i=c,Da(e,m,p,i,o,s,a,l,u,d),h=m.__e,m.ref&&p.ref!=m.ref&&(p.ref&&Oa(p.ref,null,m),d.push(m.ref,m.__c||h,m)),g==null&&h!=null&&(g=h),65536&m.__u||p.__k===m.__k?l=ed(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=g}function Im(e,t,n){var r,i,o,s,a,l=t.length,u=n.length,d=u,c=0;for(e.__k=[],r=0;r<l;r++)(i=t[r])!=null&&typeof i!="boolean"&&typeof i!="function"?(s=r+c,(i=e.__k[r]=typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?Si(null,i,null,null,null):Ko(i)?Si(Le,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?Si(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=Dm(i,n,s,d))!==-1&&(d--,(o=n[a])&&(o.__u|=131072)),o==null||o.__v===null?(a==-1&&c--,typeof i.type!="function"&&(i.__u|=65536)):a!==s&&(a==s-1?c--:a==s+1?c++:(a>s?c--:c++,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=Hr(o)),nd(o,o))}function ed(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=ed(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Hr(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function wn(e,t){return t=t||[],e==null||typeof e=="boolean"||(Ko(e)?e.some(function(n){wn(n,t)}):t.push(e)),t}function Dm(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===Le||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 Wl(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Mm.test(t)?n:n+"px"}function eo(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||Wl(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Wl(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=Ia,e.addEventListener(t,o?ia:ra,o)):e.removeEventListener(t,o?ia:ra,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 Gl(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Ia++;else if(t.t<n.u)return;return we.event&&(t=we.event(t)),"handleEvent"in n?n.handleEvent(t):n(t)}}}function Da(e,t,n,r,i,o,s,a,l,u){var d,c,p,m,h,g,w,S,x,E,$,P,H,R,_,y,A=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),o=[a=t.__e=n.__e]),(d=we.__b)&&d(t);e:if(typeof A=="function")try{if(S=t.props,x="prototype"in A&&A.prototype.render,E=(d=A.contextType)&&r[d.__c],$=d?E?E.props.value:d.__:r,n.__c?w=(c=t.__c=n.__c).__=c.__E:(x?t.__c=c=new A(S,$):(t.__c=c=new Kt(S,$),c.constructor=A,c.render=Fm),E&&E.sub(c),c.props=S,c.state||(c.state={}),c.context=$,c.__n=r,p=c.__d=!0,c.__h=[],c._sb=[]),x&&c.__s==null&&(c.__s=c.state),x&&A.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=mn({},c.__s)),mn(c.__s,A.getDerivedStateFromProps(S,c.__s))),m=c.props,h=c.state,c.__v=t,p)x&&A.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),x&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(x&&A.getDerivedStateFromProps==null&&S!==m&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(S,$),!c.__e&&(c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(S,c.__s,$)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(c.props=S,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(k){k&&(k.__=t)}),P=0;P<c._sb.length;P++)c.__h.push(c._sb[P]);c._sb=[],c.__h.length&&s.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(S,c.__s,$),x&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(m,h,g)})}if(c.context=$,c.props=S,c.__P=e,c.__e=!1,H=we.__r,R=0,x){for(c.state=c.__s,c.__d=!1,H&&H(t),d=c.render(c.props,c.state,c.context),_=0;_<c._sb.length;_++)c.__h.push(c._sb[_]);c._sb=[]}else do c.__d=!1,H&&H(t),d=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++R<25);c.state=c.__s,c.getChildContext!=null&&(r=mn(mn({},r),c.getChildContext())),x&&!p&&c.getSnapshotBeforeUpdate!=null&&(g=c.getSnapshotBeforeUpdate(m,h)),Jc(e,Ko(y=d!=null&&d.type===Le&&d.key==null?d.props.children:d)?y:[y],t,n,r,i,o,s,a,l,u),c.base=t.__e,t.__u&=-161,c.__h.length&&s.push(c),w&&(c.__E=c.__=null)}catch(k){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;we.__e(k,t,n)}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Om(n.__e,t,n,r,i,o,s,l,u);(d=we.diffed)&&d(t)}function td(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)Oa(n[r],n[++r],n[++r]);we.__c&&we.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){we.__e(o,i.__v)}})}function Om(e,t,n,r,i,o,s,a,l){var u,d,c,p,m,h,g,w=n.props,S=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(S);e=document.createElementNS(i,x,S.is&&S),a&&(we.__m&&we.__m(t,o),a=!1),o=null}if(x===null)w===S||a&&e.data===S||(e.data=S);else{if(o=o&&Pi.call(e.childNodes),w=n.props||$i,!a&&o!=null)for(w={},u=0;u<e.attributes.length;u++)w[(m=e.attributes[u]).name]=m.value;for(u in w)if(m=w[u],u!="children"){if(u=="dangerouslySetInnerHTML")c=m;else if(!(u in S)){if(u=="value"&&"defaultValue"in S||u=="checked"&&"defaultChecked"in S)continue;eo(e,u,null,m,i)}}for(u in S)m=S[u],u=="children"?p=m:u=="dangerouslySetInnerHTML"?d=m:u=="value"?h=m:u=="checked"?g=m:a&&typeof m!="function"||w[u]===m||eo(e,u,m,w[u],i);if(d)a||c&&(d.__html===c.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(c&&(e.innerHTML=""),Jc(e,Ko(p)?p:[p],t,n,r,x==="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,s,o?o[0]:n.__k&&Hr(n,0),a,l),o!=null)for(u=o.length;u--;)Xc(o[u]);a||(u="value",x==="progress"&&h==null?e.removeAttribute("value"):h!==void 0&&(h!==e[u]||x==="progress"&&!h||x==="option"&&h!==w[u])&&eo(e,u,h,w[u],i),u="checked",g!==void 0&&g!==e[u]&&eo(e,u,g,w[u],i))}return e}function Oa(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){we.__e(i,n)}}function nd(e,t,n){var r,i;if(we.unmount&&we.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Oa(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){we.__e(o,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&nd(r[i],t,n||typeof e.type!="function");n||Xc(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Fm(e,t,n){return this.constructor(e,n)}function On(e,t,n){var r,i,o,s;we.__&&we.__(e,t),i=(r=typeof n=="function")?null:n&&n.__k||t.__k,o=[],s=[],Da(t,e=(!r&&n||t).__k=f(Le,null,[e]),i||$i,$i,t.namespaceURI,!r&&n?[n]:i?null:t.firstChild?Pi.call(t.childNodes):null,o,!r&&n?n:i?i.__e:t.firstChild,r,s),td(o,e,s)}function Fa(e,t){On(e,t,Fa)}function Pa(e,t,n){var r,i,o,s,a=mn({},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?Pi.call(arguments,2):n),Si(e.type,a,r||e.key,i||e.ref,null)}function qe(e,t){var n={__c:t="__cC"+Zc++,__: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,oa(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}Pi=Kc.slice,we={__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}},zc=0,Kt.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=mn({},this.state),typeof e=="function"&&(e=e(mn({},n),this.props)),e&&mn(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),oa(this))},Kt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),oa(this))},Kt.prototype.render=Le,Yn=[],Yc=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,na=function(e,t){return e.__v.__b-t.__v.__b},xo.__r=0,Ia=0,ra=Gl(!1),ia=Gl(!0),Zc=0;function Ra(){return(Ra=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 Pm=["context","children"];function Rm(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,Pm);return Pa(t,n)}function Lm(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=f(Rm,Ra({},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[rd(a[s].name)]=a[s].value);for(s=l.length;s--;){var u=t(l[s],null),d=l[s].slot;d?o[d]=f(ql,{name:d},u):i[s]=u}var c=r?f(ql,null,i):i;return f(r||n.nodeName.toLowerCase(),o,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Fa:On)(this._vdom,this._root)}function rd(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function Hm(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[rd(e)]=n,this._vdom=Pa(this._vdom,r),On(this._vdom,this._root)}}function Vm(){On(this._vdom=null,this._root)}function ql(e,t){var n=this;return f("slot",Ra({},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 jm(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=Lm,i.prototype.attributeChangedCallback=Hm,i.prototype.disconnectedCallback=Vm,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 La(e,t){jm(e,t)}var bn,Fe,Ns,zl,Vr=0,id=[],Ue=we,Yl=Ue.__b,Zl=Ue.__r,Kl=Ue.diffed,Xl=Ue.__c,Ql=Ue.unmount,Jl=Ue.__;function hr(e,t){Ue.__h&&Ue.__h(Fe,e,Vr||t),Vr=0;var n=Fe.__H||(Fe.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ce(e){return Vr=1,mr(od,e)}function mr(e,t,n){var r=hr(bn++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):od(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=Fe,!Fe.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 c=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]&&(c=!0)}}),o&&o.call(this,a,l,u)||c};Fe.u=!0;var o=Fe.shouldComponentUpdate,s=Fe.componentWillUpdate;Fe.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)},Fe.shouldComponentUpdate=i}return r.__N||r.__}function $e(e,t){var n=hr(bn++,3);!Ue.__s&&ja(n.__H,t)&&(n.__=e,n.i=t,Fe.__H.__h.push(n))}function Cn(e,t){var n=hr(bn++,4);!Ue.__s&&ja(n.__H,t)&&(n.__=e,n.i=t,Fe.__h.push(n))}function Q(e){return Vr=5,ie(function(){return{current:e}},[])}function Ha(e,t,n){Vr=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 ie(e,t){var n=hr(bn++,7);return ja(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function _e(e,t){return Vr=8,ie(function(){return e},t)}function Ne(e){var t=Fe.context[e.__c],n=hr(bn++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Fe)),t.props.value):e.__}function Va(e,t){Ue.useDebugValue&&Ue.useDebugValue(t?t(e):e)}function Bm(e){var t=hr(bn++,10),n=ce();return t.__=e,Fe.componentDidCatch||(Fe.componentDidCatch=function(r,i){t.__&&t.__(r,i),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Bt(){var e=hr(bn++,11);if(!e.__){for(var t=Fe.__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 Um(){for(var e;e=id.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ho),e.__H.__h.forEach(sa),e.__H.__h=[]}catch(t){e.__H.__h=[],Ue.__e(t,e.__v)}}Ue.__b=function(e){Fe=null,Yl&&Yl(e)},Ue.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Jl&&Jl(e,t)},Ue.__r=function(e){Zl&&Zl(e),bn=0;var t=(Fe=e.__c).__H;t&&(Ns===Fe?(t.__h=[],Fe.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(ho),t.__h.forEach(sa),t.__h=[],bn=0)),Ns=Fe},Ue.diffed=function(e){Kl&&Kl(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(id.push(t)!==1&&zl===Ue.requestAnimationFrame||((zl=Ue.requestAnimationFrame)||Wm)(Um)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),Ns=Fe=null},Ue.__c=function(e,t){t.some(function(n){try{n.__h.forEach(ho),n.__h=n.__h.filter(function(r){return!r.__||sa(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Ue.__e(r,n.__v)}}),Xl&&Xl(e,t)},Ue.unmount=function(e){Ql&&Ql(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{ho(r)}catch(i){t=i}}),n.__H=void 0,t&&Ue.__e(t,n.__v))};var eu=typeof requestAnimationFrame=="function";function Wm(e){var t,n=function(){clearTimeout(r),eu&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);eu&&(t=requestAnimationFrame(n))}function ho(e){var t=Fe,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Fe=t}function sa(e){var t=Fe;e.__c=e.__(),Fe=t}function ja(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function od(e,t){return typeof t=="function"?t(e):t}function aa(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 Qo(e,t){var n=t(),r=ce({t:{__:n,u:t}}),i=r[0].t,o=r[1];return Cn(function(){i.__=n,i.u=t,Ms(i)&&o({t:i})},[e,n,t]),$e(function(){return Ms(i)&&o({t:i}),e(function(){Ms(i)&&o({t:i})})},[e]),n}function Ms(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 Ba(e){e()}function Ua(e){return e}function Wa(){return[!1,Ba]}var Ga=Cn;function Co(e,t){this.props=e,this.context=t}function sd(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:aa(this.props,i)}function r(i){return this.shouldComponentUpdate=n,f(e,i)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Co.prototype=new Kt).isPureReactComponent=!0,Co.prototype.shouldComponentUpdate=function(e,t){return aa(this.props,e)||aa(this.state,t)};var tu=we.__b;we.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),tu&&tu(e)};var Gm=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function qa(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=Gm,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var nu=function(e,t){return e==null?null:wn(wn(e).map(t))},ad={map:nu,forEach:nu,count:function(e){return e?wn(e).length:0},only:function(e){var t=wn(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:wn},qm=we.__e;we.__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)}qm(e,t,n,r)};var ru=we.unmount;function ld(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 ld(r,t,n)})),e}function ud(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return ud(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 Ei(){this.__u=0,this.o=null,this.__b=null}function cd(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function dd(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 f(n,o)}return i.displayName="Lazy",i.__f=!0,i}function Tr(){this.i=null,this.l=null}we.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),ru&&ru(e)},(Ei.prototype=new Kt).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var i=cd(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]=ud(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)},Ei.prototype.componentWillUnmount=function(){this.o=[]},Ei.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]=ld(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&f(Le,null,e.fallback);return i&&(i.__u&=-33),[f(Le,null,t.__a?null:e.children),i]};var iu=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 zm(e){return this.getChildContext=function(){return e.context},e.children}function Ym(e){var t=this,n=e.h;t.componentWillUnmount=function(){On(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)}}),On(f(zm,{context:t.context},e.__v),t.v)}function Jo(e,t){var n=f(Ym,{__v:e,h:t});return n.containerInfo=t,n}(Tr.prototype=new Kt).__a=function(e){var t=this,n=cd(t.__v),r=t.l.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),iu(t,e,r)):i()};n?n(o):o()}},Tr.prototype.render=function(e){this.i=null,this.l=new Map;var t=wn(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},Tr.prototype.componentDidUpdate=Tr.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){iu(e,n,t)})};var fd=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Zm=/^(?: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]/,Km=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Xm=/[A-Z0-9]/g,Qm=typeof document<"u",Jm=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function hd(e,t,n){return t.__k==null&&(t.textContent=""),On(e,t),typeof n=="function"&&n(),e?e.__c:null}function md(e,t,n){return Fa(e,t),typeof n=="function"&&n(),e?e.__c:null}Kt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Kt.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var ou=we.event;function e0(){}function t0(){return this.cancelBubble}function n0(){return this.defaultPrevented}we.event=function(e){return ou&&(e=ou(e)),e.persist=e0,e.isPropagationStopped=t0,e.isDefaultPrevented=n0,e.nativeEvent=e};var za,r0={enumerable:!1,configurable:!0,get:function(){return this.class}},su=we.vnode;we.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||Qm&&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"||Jm(n.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":Km.test(s)&&(s=l):l=s="oninput":o&&Zm.test(s)?s=s.replace(Xm,"-$&").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=wn(n.children).forEach(function(u){u.props.selected=i.value.indexOf(u.props.value)!=-1})),r=="select"&&i.defaultValue!=null&&(i.value=wn(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",r0)):(n.className&&!n.class||n.class&&n.className)&&(i.class=i.className=n.className),t.props=i}(e),e.$$typeof=fd,su&&su(e)};var au=we.__r;we.__r=function(e){au&&au(e),za=e.__c};var lu=we.diffed;we.diffed=function(e){lu&&lu(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),za=null};var pd={ReactCurrentDispatcher:{current:{readContext:function(e){return za.__n[e.__c].props.value},useCallback:_e,useContext:Ne,useDebugValue:Va,useDeferredValue:Ua,useEffect:$e,useId:Bt,useImperativeHandle:Ha,useInsertionEffect:Ga,useLayoutEffect:Cn,useMemo:ie,useReducer:mr,useRef:Q,useState:ce,useSyncExternalStore:Qo,useTransition:Wa}}},i0="18.3.1";function gd(e){return f.bind(null,e)}function Zr(e){return!!e&&e.$$typeof===fd}function wd(e){return Zr(e)&&e.type===Le}function yd(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Ya(e){return Zr(e)?Pa.apply(null,arguments):e}function vd(e){return!!e.__k&&(On(null,e),!0)}function bd(e){return e&&(e.base||e.nodeType===1&&e)||null}var _d=function(e,t){return e(t)},It=function(e,t){return e(t)},xd=Le,Cd=Zr,W={useState:ce,useId:Bt,useReducer:mr,useEffect:$e,useLayoutEffect:Cn,useInsertionEffect:Ga,useTransition:Wa,useDeferredValue:Ua,useSyncExternalStore:Qo,startTransition:Ba,useRef:Q,useImperativeHandle:Ha,useMemo:ie,useCallback:_e,useContext:Ne,useDebugValue:Va,version:"18.3.1",Children:ad,render:hd,hydrate:md,unmountComponentAtNode:vd,createPortal:Jo,createElement:f,createContext:qe,createFactory:gd,cloneElement:Ya,createRef:Xo,Fragment:Le,isValidElement:Zr,isElement:Cd,isFragment:wd,isMemo:yd,findDOMNode:bd,Component:Kt,PureComponent:Co,memo:sd,forwardRef:qa,flushSync:It,unstable_batchedUpdates:_d,StrictMode:xd,Suspense:Ei,SuspenseList:Tr,lazy:dd,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:pd};const So=Object.freeze(Object.defineProperty({__proto__:null,Children:ad,Component:Kt,Fragment:Le,PureComponent:Co,StrictMode:xd,Suspense:Ei,SuspenseList:Tr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:pd,cloneElement:Ya,createContext:qe,createElement:f,createFactory:gd,createPortal:Jo,createRef:Xo,default:W,findDOMNode:bd,flushSync:It,forwardRef:qa,hydrate:md,isElement:Cd,isFragment:wd,isMemo:yd,isValidElement:Zr,lazy:dd,memo:sd,render:hd,startTransition:Ba,unmountComponentAtNode:vd,unstable_batchedUpdates:_d,useCallback:_e,useContext:Ne,useDebugValue:Va,useDeferredValue:Ua,useEffect:$e,useErrorBoundary:Bm,useId:Bt,useImperativeHandle:Ha,useInsertionEffect:Ga,useLayoutEffect:Cn,useMemo:ie,useReducer:mr,useRef:Q,useState:ce,useSyncExternalStore:Qo,useTransition:Wa,version:i0},Symbol.toStringTag,{value:"Module"})),o0=`*,: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}.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}.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}.mx-12{margin-left:3rem;margin-right:3rem}.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-3{margin-left:.75rem}.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-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-5{width:1.25rem;height:1.25rem}.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-\\[120px\\]{height:120px}.h-\\[34px\\]{height:34px}.h-\\[38px\\]{height:38px}.h-\\[52px\\]{height:52px}.h-\\[58px\\]{height:58px}.h-\\[60px\\]{height:60px}.h-\\[72px\\]{height:72px}.h-full{height:100%}.h-px{height:1px}.max-h-48{max-height:12rem}.w-16{width:4rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-80{width:20rem}.w-96{width:24rem}.w-\\[120px\\]{width:120px}.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%}.max-w-\\[640px\\]{max-width:640px}.flex-none{flex:none}.flex-shrink,.shrink{flex-shrink:1}.flex-grow,.grow{flex-grow:1}.basis-0{flex-basis:0px}.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-disc{list-style-type:disc}.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-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.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-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\\[10px\\]{border-radius:10px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.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-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)}.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-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-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-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.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-6{padding-left:1.5rem;padding-right:1.5rem}.px-\\[13px\\]{padding-left:13px;padding-right:13px}.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-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-\\[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-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-3{padding-left:.75rem}.pl-\\[13px\\]{padding-left:13px}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.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-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-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-7{line-height:1.75rem}.leading-none{line-height:1}.leading-normal{line-height:1.5}.leading-tight{line-height:1.25}.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-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-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-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-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-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity, 1))}.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}.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)}.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))}.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))}.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-600:focus{--tw-ring-color: var(--fl-color-primary-600)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}@media (min-width: 640px){.sm\\:size-4{width:1rem;height:1rem}}`;function Qt(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function s0(e){return e!=null&&typeof e.GetEnumerator=="function"}function a0(e){return e!=null&&typeof e.CompareTo=="function"}function l0(e){return e!=null&&typeof e.Equals=="function"}function Sd(e){return e!=null&&typeof e.GetHashCode=="function"}function la(e){return e!=null&&typeof e.Dispose=="function"}function Te(e){la(e)&&e.Dispose()}function Se(){return null}function Eo(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 u0{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 ke(e){return s0(e)?e.GetEnumerator():new u0(e[Symbol.iterator]())}function Kr(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}}}}function He(e,t){return e.toString(10).padStart(t,"0")}function uu(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function c0(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function Xt(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class pn{static id(t){return pn.idMap.has(t)||pn.idMap.set(t,++pn.count),pn.idMap.get(t)}}pn.idMap=new WeakMap;pn.count=0;function Vn(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function Yt(e){return e*2654435761|0}function Ed(e){return Vn(e.toString(32))}function Ri(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 d0(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Yt(e);case"bigint":return Ed(e);case"string":return Vn(e);default:return Yt(pn.id(e))}}function f0(e){return Sd(e)?e.GetHashCode():d0(e)}function h0(e){return e.getTime()}function m0(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=Vt(e[r]);return Ri(n)}function Vt(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Yt(e);case"bigint":return Ed(e);case"string":return Vn(e);default:{if(Sd(e))return e.GetHashCode();if(Qt(e))return m0(e);if(e instanceof Date)return h0(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>Vt(r));return Ri(n)}else return Yt(pn.id(e))}}}function Ao(e){return f0(e)}function ua(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 Ad(e,t){return ua(e,t,J)}function p0(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let i=0;i<n.length;i++)if(n[i]!==r[i]||!J(e[n[i]],t[r[i]]))return!1;return!0}function J(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:l0(e)?e.Equals(t):Qt(e)?Qt(t)&&Ad(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&kd(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&p0(e,t)}function kd(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+uu(e),r=t.getTime()+uu(t)),n===r?0:n<r?-1:1}function es(e,t){return e===t?0:e<t?-1:1}function g0(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 Za(e,t){return g0(e,t,ut)}function w0(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=ut(e[s],t[s]),o!==0)return o}return 0}function ut(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:a0(e)?e.CompareTo(t):Qt(e)?Qt(t)?Za(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?kd(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?w0(e,t):-1}function b(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function y0(e){Qt(e)?e.splice(0):e.clear()}const ts=new WeakMap;function Xe(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return ts.set(t,e),t}function Zn(e){return ts.get(e)??(t=>n=>e(t,n))}function ca(e){if(e==null)return null;const t=(n,r,i)=>e(n)(r)(i);return ts.set(t,e),t}function Is(e){return ts.get(e)??(t=>n=>r=>e(t,n,r))}function v0(e){let t=0,n="[";for(const r of e){if(t===0)n+=Ot(r);else if(t===100){n+="; ...";break}else n+="; "+Ot(r);t++}return n+"]"}function Ot(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 v0(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([i,o])=>i+" = "+Ot(o,t+1)).join(`
|
|
2
|
-
`)+" }":(r==null?void 0:r.name)??""}}return String(e)}function b0(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=Ot(t[0]),r=n.indexOf(" ")>=0):n=t.map(i=>Ot(i)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class z{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return b0(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>Vt(n));return t.splice(0,0,Yt(this.tag)),
|
|
3
|
-
`)+" }"}function C0(e){const t=Object.values(e).map(n=>Vt(n));return Ri(t)}function S0(e,t){if(e===t)return!0;if(Eo(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!J(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function E0(e,t){if(e===t)return 0;if(Eo(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const i=ut(e[n[r]],t[n[r]]);if(i!==0)return i}return 0}else return-1}class Me{toJSON(){return _0(this)}toString(){return x0(this)}GetHashCode(){return C0(this)}Equals(t){return S0(this,t)}CompareTo(t){return E0(this,t)}}class mt{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 A0{constructor(t){this.message=t}}function k0(e){return e instanceof A0||e instanceof Error}function T0(e){return e instanceof Promise}function ko(e){return k0(e)||T0(e)?e:new Error(String(e))}const Ka=Ot(o0),Xr=Symbol("numeric");function Td(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[Xr])}function $0(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function da(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[Xr]().multiply(t)}function mo(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[Xr]().toFixed(t)}function To(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[Xr]().toPrecision(t)}function $o(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[Xr]().toExponential(t)}function No(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[Xr]().toHex()}const N0=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],M0=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],I0=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],D0=["January","February","March","April","May","June","July","August","September","October","November","December"];function kt(e,t,n){let r=0,i=t;for(;i<e.length&&e[i]===n;)i++,r++;return r}function cu(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function O0(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 Xa(e,t,n){let r=0,i=0,o="";const s=n?Li(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(i=kt(t,r,"d"),r+=i,i){case 1:o+=fu(s);break;case 2:o+=He(fu(s),2);break;case 3:o+=N0[pu(s)];break;case 4:o+=M0[pu(s)];break}break;case"f":if(i=kt(t,r,"f"),r+=i,i<=3){const w=10**(3-i);o+=He(Math.floor(no(s)/w),i)}else i<=7&&(o+=(""+no(s)).padEnd(i,"0"));break;case"F":if(i=kt(t,r,"F"),r+=i,i<=3){const w=10**(3-i),S=Math.floor(no(s)/w);S!=0&&(o+=He(S,i))}else if(i<=7){const w=no(s);w!=0&&(o+=He(w,3))}break;case"g":i=kt(t,r,"g"),r+=i,i<=2&&(o+="A.D.");break;case"h":switch(i=kt(t,r,"h"),r+=i,i){case 1:o+=to(s)%12;break;case 2:o+=He(to(s)%12,2);break}break;case"H":switch(i=kt(t,r,"H"),r+=i,i){case 1:o+=to(s);break;case 2:o+=He(to(s),2);break}break;case"K":switch(i=kt(t,r,"K"),r+=i,i){case 1:switch(du(s)){case 1:o+="Z";break;case 2:o+=Nr(s.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(i=kt(t,r,"m"),r+=i,i){case 1:o+=hu(s);break;case 2:o+=He(hu(s),2);break}break;case"M":switch(i=kt(t,r,"M"),r+=i,i){case 1:o+=ro(s);break;case 2:o+=He(ro(s),2);break;case 3:o+=I0[ro(s)-1];break;case 4:o+=D0[ro(s)-1];break}break;case"s":switch(i=kt(t,r,"s"),r+=i,i){case 1:o+=mu(s);break;case 2:o+=He(mu(s),2);break}break;case"t":switch(i=kt(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=kt(t,r,"y"),r+=i,i){case 1:o+=s.getFullYear()%100;break;case 2:o+=He(s.getFullYear()%100,2);break;case 3:o+=He(s.getFullYear(),3);break;case 4:o+=He(s.getFullYear(),4);break;case 5:o+=He(s.getFullYear(),5);break}break;case"z":i=kt(t,r,"z"),r+=i;let l="";switch(du(s)){case 1:l="+00:00";break;case 2:l=Nr(s.getTimezoneOffset()*-6e4);break;case 0:l=Nr(U0(s).getTimezoneOffset()*-6e4);break}const u=l[0]==="-"?"-":"+",d=parseInt(l.substring(1,3),10),c=parseInt(l.substring(4,6),10);switch(i){case 1:o+=`${u}${d}`;break;case 2:o+=`${u}${He(d,2)}`;break;default:o+=`${u}${He(d,2)}:${He(c,2)}`;break}break;case":":o+=":",r++;break;case"/":o+="/",r++;break;case"'":case'"':const[p,m]=O0(t,r);o+=p,r+=m;break;case"%":const h=cu(t,r);if(h>=0&&h!==37)r+=2,o+=Xa(s,String.fromCharCode(h),n);else throw new Error("Invalid format string");break;case"\\":const g=cu(t,r);if(g>=0)r+=2,o+=String.fromCharCode(g);else throw new Error("Invalid format string");break;default:r++,o+=a;break}}return o}function du(e){return e.kind||0}function Nr(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+He(n,2)+":"+He(r,2)}function Mo(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 F0(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return He(e.getFullYear(),4)+"-"+He(e.getMonth()+1,2)+"-"+He(e.getDate(),2)+"T"+He(e.getHours(),2)+":"+He(e.getMinutes(),2)+":"+He(e.getSeconds(),2)+"."+He(e.getMilliseconds(),3)+(n?Nr(e.getTimezoneOffset()*-6e4):"")}}function P0(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+Nr(t)}function R0(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," ")+Nr(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return Mo(n,"first");case"T":case"t":return Mo(n,"second");case"O":case"o":return P0(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return Xa(n,t,!0)}function L0(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?Mo(e,"first"):e.toLocaleDateString();case"T":case"t":return n?Mo(e,"second"):e.toLocaleTimeString();case"O":case"o":return F0(e,n);default:throw new Error("Unrecognized Date print format")}else return Xa(e,t,n)}function $d(e,t,n){return e.offset!=null?R0(e,t):L0(e,t)}function Li(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function H0(){return Li(-621355968e5,1)}function Nd(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 V0(e,t=!1){const[n,r]=Nd(e),i=r!=null?t&&r==="Z"?1:2:0;return Li(n.getTime(),i)}function j0(e,t){try{return t.contents=V0(e),!0}catch{return!1}}function B0(e){return e.kind===1?e:Li(e.getTime(),1)}function U0(e){return e.kind===2?e:Li(e.getTime(),2)}function fu(e){return e.kind===1?e.getUTCDate():e.getDate()}function to(e){return e.kind===1?e.getUTCHours():e.getHours()}function no(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function hu(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function ro(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function mu(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function pu(e){return e.kind===1?e.getUTCDay():e.getDay()}function W0(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 Md(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function gu(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 Qa(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 c=0;c<d;c++)a.push(arguments[c]);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=W0(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=gu(e,a),u=gu.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 fi=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,G0=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Id(e,t){return $0(e,t)<0}function jr(e){return{input:e,cont:Y0(e)}}function Dd(e,t){return typeof t=="string"?e(t):t.cont(e)}function Ni(e){return Dd(t=>t,e)}function q0(e){return Dd(t=>{throw new Error(t)},e)}function z0(e,t,n,r,i){let o="";if(t=t||"",i=i||"",Td(e))switch(i.toLowerCase()!=="x"&&(Id(e,0)?(e=da(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=mo(e,r);break;case"g":case"G":e=r!=null?To(e,r):To(e);break;case"e":case"E":e=r!=null?$o(e,r):$o(e);break;case"x":e=No(e);break;case"X":e=No(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=$d(e):e=Ot(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=Mi(e,n-o.length,l,a),e=o+e):e=Mi(o+e,n,l,a)}return e}function Od(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,c,p,m]=l[0];let h=c;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+=z0(u,d,h,p,m),a.splice(0,1),l.splice(0,1)}return l.length===0?(s+=a[0],e(s)):Od(e,a,l,s,i)}}function Y0(e){return t=>{fi.lastIndex=0;const n=[],r=[];let i=0,o=fi.exec(e);for(;o;){const s=o.index+(o[1]||"").length;n.push(e.substring(i,s).replace(/%%/g,"%")),r.push(o),i=fi.lastIndex,fi.lastIndex-=1,o=fi.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(i).replace(/%%/g,"%")),Od(t,n,r))}}function Fd(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(G0,(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(Td(u))switch(a=a==null?null:parseInt(a,10),s){case"f":case"F":a=a??2,u=mo(u,a);break;case"g":case"G":u=a!=null?To(u,a):To(u);break;case"e":case"E":u=a!=null?$o(u,a):$o(u);break;case"p":case"P":a=a??2,u=mo(da(u,100),a)+" %";break;case"d":case"D":u=a!=null?Ds(String(u),a,"0"):String(u);break;case"x":case"X":u=a!=null?Ds(No(u),a,"0"):No(u),s==="X"&&(u=u.toUpperCase());break;default:if(l){let d="";u=l.replace(/([0#,]+)(\.[0#]+)?/,(c,p,m)=>{Id(u,0)&&(u=da(u,-1),d="-"),m=m==null?"":m.substring(1),u=mo(u,Math.max(m.length,0));let[h,g]=u.split(".");g||(g="");const w=p.replace(/,/g,"").replace(/^#+/,"").length;h=Ds(h,w,"0");const S=m.replace(/#+$/,"").length;if(S>g.length?g=Z0(g,S,"0"):S<g.length&&(g=g.substring(0,S)+g.substring(S).replace(/0+$/,"")),p.indexOf(",")>0){const x=h.length%3,E=Math.floor(h.length/3);let $=x>0?h.substr(0,x)+(E>0?",":""):"";for(let P=0;P<E;P++)$+=h.substr(x+P*3,3)+(P<E-1?",":"");h=$}return g.length>0?h+"."+g:h}),u=d+u}}else u instanceof Date?u=$d(u,l||s):u=Ot(u);return o=parseInt((o||" ").substring(1),10),isNaN(o)||(u=Mi(String(u),Math.abs(o)," ",o<0)),u})}function Ja(e){return typeof e!="string"||e.length===0}function el(e){return typeof e!="string"||/^\s*$/.test(e)}function St(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Mi(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 Ds(e,t,n){return Mi(e,t,n)}function Z0(e,t,n){return Mi(e,t,n,!0)}function K0(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(Md),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 c=o?e.substring(u).trim():e.substring(u);(!i||c.length>0)&&s.push(c),l=!1}else{const c=o?e.substring(u,d.index).trim():e.substring(u,d.index);(!i||c.length>0)&&(n!=null&&s.length+1===n?(s.push(o?e.substring(u).trim():e.substring(u)),l=!1):s.push(c)),u=a.lastIndex}}while(l);return s}function X0(e,...t){if(t.length===0)return e.trim();const n="["+Md(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}class or{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return Vt(this.value)}Equals(t){return t==null?!1:J(this.value,t instanceof or?t.value:t)}CompareTo(t){return t==null?1:ut(this.value,t instanceof or?t.value:t)}}function L(e){if(e==null)throw new Error("Option has no value");return e instanceof or?e.value:e}function po(e){return e instanceof or?e.value:e}function ht(e){return e==null||e instanceof or?new or(e):e}function Pd(e){return e==null?null:L(e)}function ns(e){return e==null?[]:[L(e)]}function rn(e,t){return e!=null?L(e):t}function Ct(e,t){return t!=null?ht(e(L(t))):void 0}function Q0(e,t){return t!=null?e(L(t)):void 0}class J0{constructor(t,n,r,i){this.declaringType=t,this.tag=n,this.name=r,this.fields=i}}class Ut{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 lt(this)}GetHashCode(){return Rd(this)}Equals(t){return fa(this,t)}}function fn(e){return e.generics!=null?e.generics:[]}function Rd(e){const t=Vn(e.fullname),n=fn(e).map(Rd);return Ri([t,...n])}function fa(e,t){return e.fullname===""?t.fullname===""&&ua(Oo(e),Oo(t),([n,r],[i,o])=>n===i&&fa(r,o)):e.fullname===t.fullname&&ua(fn(e),fn(t),fa)}function sr(e,t,n,r){return new Ut(e,t,n,r)}function pr(e,t,n,r){return new Ut(e,t,n,void 0,r)}function Ld(e,t,n,r){const i=new Ut(e,t,n,void 0,void 0,()=>{const o=n.prototype.cases();return r().map((s,a)=>new J0(i,a,o[a],s))});return i}function Mr(e){return new Ut("Microsoft.FSharp.Core.FSharpOption`1",[e])}function Io(e){return new Ut("Microsoft.FSharp.Collections.FSharpList`1",[e])}const ep=new Ut("System.Object"),Do=new Ut("System.String"),Ht=new Ut("System.Int32");function tl(e){if(Array.isArray(e))return e[0];if(e instanceof Ut){const t=rs(e);if(t!=null)return tl(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function lt(e){const t=rs(e);return t!=null?lt(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>lt(n)).join(",")+"]"}function tp(e){return rs(e)!=null}function rs(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function np(e){return e.generics!=null&&e.generics.length>0}function Hd(e){return e.enumCases!=null&&e.enumCases.length>0}function rp(e){return e.generics==null?e:new Ut(e.fullname,e.generics.map(()=>ep))}function ip(e){var t;return(t=e.generics)==null?void 0:t[0]}function br(e){if(Hd(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function op(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 _r(e,t){const n=parseInt(t,10);return op(e,isNaN(n)?t:n)[1]}function sp(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Oo(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function ap(e){if(Vd(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function lp(e){return e instanceof Ut?e.cases!=null:e instanceof z}function up(e){return e instanceof Ut?e.fields!=null:e instanceof Me}function Vd(e){return e.fullname.startsWith("System.Tuple")}function cp(e){return e.fields==null?[]:e.fields}function dp(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 fp(e,t){const n=Oo(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 hp(e,t){return e}const jd="Collection was empty.",mp="The input must be non-negative.",Bd="The input sequence has an insufficient number of elements.";function Br(e,t){return new Array(t)}function wu(e,t){return e>t?e:t}function yu(e,t){return e<t?e:t}function pp(e,t,n){const r=e.length|0,i=t.length|0,o=Br(n,r+i);for(let s=0;s<=r-1;s++)At(o,s,Ae(s,e));for(let s=0;s<=i-1;s++)At(o,s+r,Ae(s,t));return o}function is(e,t,n,r){const i=t|0;return e.fill(r,i,i+n)}function gp(e){if(e.length===0)throw new Error("The input array was empty\\nParameter name: array");return Ae(e.length-1,e)}function Ud(e,t,n){const r=t.length|0,i=Br(n,r);for(let o=0;o<=r-1;o++)At(i,o,e(o,Ae(o,t)));return i}function et(e,t,n){const r=t.length|0,i=Br(n,r);for(let o=0;o<=r-1;o++)At(i,o,e(Ae(o,t)));return i}function Fo(e,t){const n=Array.isArray(e)?e:Array.from(e);switch(n.length|0){case 0:return Br(t,0);case 1:return Ae(0,n);default:{let i=0,o=0;for(let a=0;a<=n.length-1;a++){const l=Ae(a,n);o=o+l.length|0}const s=Br(t,o);for(let a=0;a<=n.length-1;a++){const l=Ae(a,n);for(let u=0;u<=l.length-1;u++)At(s,i,Ae(u,l)),i=i+1|0}return s}}}function wp(e,t,n,r,i){const o=rn(n,0)|0,s=rn(Ct(l=>o+l,r),e.length)|0;return(l=>{e:for(;;){const u=l;if(u>=s)return-1;if(i.Equals(t,Ae(u,e)))return u|0;l=u+1;continue e}})(o)|0}function Qr(e,t,n){return wp(t,e,void 0,void 0,n)>=0}function yp(e,t){const n=Br(t,1);return At(n,0,e),n}function vp(e){return e.slice().reverse()}function os(e,t){return t.find(e)}function Pt(e,t,n){const r=[];for(let i=0;i<=t.length-1;i++){const o=e(Ae(i,t));if(o!=null){const s=L(o);r.push(s)}}return J(n,Se())?r:et(i=>i,r,n)}function ss(e,t,n){const r=e;return n.reduce(r,t)}function bp(e,t){const n=e.slice();return n.sort((r,i)=>t.Compare(r,i)),n}function _p(e,t,n){const r=t.slice();return r.sort((i,o)=>n.Compare(e(i),e(o))),r}function Hi(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(Ae(r,t),Ae(r,n)),r=r+1|0;return i}}function vu(e){if(e.length===0)throw new Error("The input array was empty\\nParameter name: array");return Ae(0,e)}function xp(e){if(e.length===0)throw new Error("Not enough elements\\nParameter name: array");return e.slice(1)}function Ae(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 At(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 Wd(e,t){if(!(e<0||e>=t.length))return ht(t[e])}function Gd(e,t,n){return t.reduceRight((r,i)=>e(i,r),n)}class bt extends Me{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+St("; ",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=L(l),c=L(u);if(J(s.head,a.head)){i=d,o=c;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=L(u);if(s>18)return a|0;r=s+1,i=(a<<1)+Vt(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=L(l),c=L(u),p=ut(s.head,a.head)|0;if(p===0){i=d,o=c;continue e}else return p|0}else return 1;else return u!=null?-1:0}})(this,t)|0}GetEnumerator(){return Sp(this)}[Symbol.iterator](){return Kr(ke(this))}"System.Collections.IEnumerable.GetEnumerator"(){return ke(this)}}class Cp{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=L(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 Sp(e){return new Cp(e)}function it(){return new bt(Se(),void 0)}function Vi(e,t){return new bt(e,t)}function ji(e){return e.tail==null}function qd(e){return((n,r)=>{e:for(;;){const i=n,s=r.tail;if(s!=null){n=i+1,r=L(s);continue e}else return i|0}})(0,e)|0}function nl(e){if(e.tail!=null)return e.head;throw new Error(jd+"\\nParameter name: list")}function jt(e){const t=e.tail;if(t!=null)return L(t);throw new Error(jd+"\\nParameter name: list")}function ot(){return it()}function Rt(e,t){return Vi(e,t)}function ge(e){return Vi(e,it())}function Ce(e){return ji(e)}function rl(e){return qd(e)}function re(e){return nl(e)}function xe(e){return jt(e)}function gr(e){const t=qd(e)|0,n=is(new Array(t),0,t,null);return((i,o)=>{e:for(;;){const s=i,a=o;if(!ji(a)){At(n,s,nl(a)),i=s+1,o=jt(a);continue e}break}})(0,e),n}function Sn(e,t,n){let r=t,i=n;for(;!ji(i);)r=e(r,re(i)),i=jt(i);return r}function il(e){return Sn((t,n)=>Vi(n,t),it(),e)}function Ep(e,t,n){return Gd(e,gr(t),n)}function Po(e,t){Sn((n,r)=>{e(r)},void 0,t)}function Be(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=Vi(Ae(r,e),n);return n}function v(e){return Be(e,it())}function Ap(e){let t,n;if(Qt(e))return v(e);if(e instanceof bt)return e;{const r=it();let i=r;const o=ke(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{Te(o)}const s=i,a=it();return s.tail=a,jt(r)}}function as(e,t){return Sn((n,r)=>Vi(r,n),t,il(e))}function Bi(e,t){const n=it(),r=Sn((o,s)=>{const a=new bt(e(s),void 0);return o.tail=a,a},n,t),i=it();return r.tail=i,jt(n)}function zd(e,t){const n=it(),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=it();return r.tail=i,jt(n)}function kp(e,t){const n=it(),r=it(),i=n,o=Sn((l,u)=>{let d,c;const p=l[0],m=l[1];return e(u)?[(d=new bt(u,void 0),p.tail=d,d),m]:[p,(c=new bt(u,void 0),m.tail=c,c)]},[i,r],t),s=it();o[0].tail=s;const a=it();return o[1].tail=a,[jt(i),jt(r)]}function Tp(e,t){const n=it(),r=Sn((o,s)=>{const a=e(s);if(a==null)return o;{const l=new bt(L(a),void 0);return o.tail=l,l}},n,t),i=it();return r.tail=i,jt(n)}function Yd(e,t){const n=gr(t);return n.sort(e),v(n)}function $p(e,t,n){return Yd((r,i)=>n.Compare(e(r),e(i)),t)}function Np(e,t,n){return Yd((r,i)=>n.Compare(e(r),e(i))*-1,t)}function Mp(e,t){e:for(;;){const n=e,r=t;if(n<=0)return r;if(ji(r))throw new Error(Bd+"\\nParameter name: list");e=n-1,t=jt(r);continue e}}function Ip(e,t){if(e<0)throw new Error(mp+"\\nParameter name: count");const n=(s,a,l)=>{let u;e:for(;;){const d=s,c=a,p=l;if(d<=0)return c;if(ji(p))throw new Error(Bd+"\\nParameter name: list");s=d-1,a=(u=new bt(nl(p),void 0),c.tail=u,u),l=jt(p);continue e}},r=it(),i=n(e,r,t),o=it();return i.tail=o,jt(r)}const C=W;function Dp(e){const t=v([f("style",{children:[Ka]}),f("div",{className:"text-blue-500",children:`Welcome to apollo-import-workspace-app, with backend url ${e.backendUrl}`})]);return f("div",{children:C.Children.toArray(Array.from(t))})}class Op{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 ls extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,ls.prototype)}}class ol{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>ol.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function gn(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new ls);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(ko(n))}});else try{e(t)}catch(n){t.onError(ko(n))}}}function Fp(e,t){return gn(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(i){n.onError(ko(i))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function Pp(e){return gn(t=>t.onSuccess(e))}class Rp{Bind(t,n){return Fp(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return gn(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 Pp(t)}ReturnFrom(t){return t}TryFinally(t,n){return gn(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 gn(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:i=>{try{n(i)(r)}catch(o){r.onError(ko(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 gn(t=>t.onSuccess(void 0))}}const wt=new Rp;function Lp(e){return new Zd(0,[e])}function Hp(e){return new Zd(1,[e])}class Zd extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function Vp(e){return Lp(e)}function jp(e){return Hp(e)}function Os(e){}const Bp=new Op;function Up(e){return gn(t=>{e({onSuccess:n=>t.onSuccess(Vp(n)),onError:n=>t.onSuccess(jp(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function Wp(e){return gn(t=>e([t.onSuccess,t.onError,t.onCancel]))}function Gp(e){return gn(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new ls)})})}function qp(e,t){return zp(e,t)}function Kd(e,t){return qp(e,t)}function zp(e,t,n,r,i){typeof t!="function"&&(i=t,t=void 0);const o=new ol;e({onSuccess:t||Os,onError:Os,onCancel:Os,cancelToken:i||Bp,trampoline:o})}class Xd extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class Yp extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class sl extends Me{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 Er extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Qd extends Me{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}}function Zp(e){throw new Error(e)}const Kp="Enumeration already finished.",Xp="Enumeration has not started. Call MoveNext.",Jd="The input sequence has an insufficient number of elements.",Qp="Reset is not supported on this enumerator.";function Jp(){throw new Error(Qp)}function al(){throw new Error(Xp)}function ha(){throw new Error(Kp)}class eg{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const i=ke(t);try{for(;n<4&&i["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+Ot(i["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{Te(i)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Kr(ke(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function tg(e){return new eg(e)}class ng{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"(){Jp()}Dispose(){this.dispose()}}function us(e,t,n){return new ng(e,t,n)}function rg(e){let t,n,r=!1,i=!1,o;const s=()=>{if(i=!0,n!=null){const a=L(n);try{Te(a)}finally{n=void 0}}if(t!=null){const a=L(t);try{Te(a)}finally{t=void 0}}};return us(()=>(r?i&&ha():al(),o!=null?L(o):ha()),()=>{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 c=L(d);if(c["System.Collections.IEnumerator.MoveNext"]())o=ht(c["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{Te(c)}finally{n=void 0}}else{const c=L(u);c["System.Collections.IEnumerator.MoveNext"]()?n=(a=c["System.Collections.Generic.IEnumerator`1.get_Current"](),ke(a)):(s(),l=!1)}else t=ke(e)}return L(l)}},()=>{i||s()})}function ig(e,t){return us(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{Te(t)}finally{}})}function ef(e,t,n){let r=!1,i,o=ht(e());const s=()=>{if(o!=null){const l=L(o);try{n(l)}finally{o=void 0}}},a=()=>{try{s()}finally{i=void 0}};return us(()=>(r||al(),i!=null?L(i):ha()),()=>{if(r||(r=!0),o!=null){const l=L(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 og(e,t){let n,r=t;return us(()=>{if(n!=null){const i=L(n)[0];return L(n)[1],i}else return al()},()=>(n=e(r),n!=null?(L(n)[0],r=L(n)[1],!0):!1),()=>{})}function sg(e,t){t==null&&Zp(e)}function Jr(e){return tg(e)}function _n(e){return sg("source",e),ke(e)}function O(e){return Jr(()=>ke(e()))}function cs(e){return Jr(()=>rg(e))}function ag(e,t){return Jr(()=>og(e,t))}function Ir(){return O(()=>new Array(0))}function M(e){return O(()=>yp(e))}function Fn(e){return e instanceof bt?gr(e):Array.from(e)}function he(e){return Qt(e)?v(e):e instanceof bt?e:Ap(e)}function tf(e,t,n){return Jr(()=>ef(e,t,n))}function lg(e,t,n){return Jr(()=>{let r=-1;return ef(e,i=>(r=r+1|0,t(r,i)),n)})}function te(e,t){return cs([e,t])}function ug(e,t){return tf(()=>_n(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=>{Te(n)})}function cg(e,t,n){const r=_n(t);try{const i=_n(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{Te(i)}}finally{Te(r)}}function xr(e,t,n){const r=_n(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{Te(r)}}function ll(e,t){return ug(n=>{if(e(n))return ht(n)},t)}function ul(e,t,n){const r=_n(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{Te(r)}}function wr(e,t){ul((n,r)=>{e(r)},void 0,t)}function nf(e,t){ul((n,r)=>(e(n,r),n+1|0),0,t)}function dg(e){if(Qt(e))return e.length|0;if(e instanceof bt)return rl(e)|0;{const t=_n(e);try{let n=0;for(;t["System.Collections.IEnumerator.MoveNext"]();)n=n+1|0;return n|0}finally{Te(t)}}}function Ze(e,t){return tf(()=>_n(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?ht(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{Te(n)})}function fg(e){return O(()=>vp(Fn(e)))}function hg(e,t){return Jr(()=>{const n=_n(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Jd+"\\nParameter name: source");return ig(()=>{},n)}catch(r){throw Te(n),r}})}function mg(e,t){return lg(()=>_n(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return ht(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(Jd+"\\nParameter name: source")}else return},n=>{Te(n)})}function ds(e,t){return O(()=>cs(Ze(e,t)))}class rf{constructor(t,n){this.k=t,this.v=n}}function Ur(e,t){return new rf(e,t)}function Ye(e){return e.k}function Je(e){return e.v}class Qe extends rf{constructor(t,n,r,i,o){super(t,n),this.left=r,this.right=i,this.h=o|0}}function rr(e,t,n,r,i){return new Qe(e,t,n,r,i)}function We(e){return e.left}function Ge(e){return e.right}function In(e){return e.h}function of(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=L(r);if(i instanceof Qe){const o=i;e=of(n+1,We(o)),t=Ge(o);continue e}else return n+1|0}else return n|0}}function sf(e){return of(0,e)}function $t(e,t,n,r){let i,o,s;const a=e;if(a!=null){const c=L(a);s=c instanceof Qe?(i=c,In(i)):1}else s=0;let l;const u=r;if(u!=null){const c=L(u);l=c instanceof Qe?(o=c,In(o)):1}else l=0;const d=(s<l?l:s)|0;return d===0?Ur(t,n):rr(t,n,e,r,d+1)}function Ro(e,t,n,r){let i,o,s,a,l,u,d,c,p;const m=e;if(m!=null){const w=L(m);p=w instanceof Qe?(i=w,In(i)):1}else p=0;let h;const g=r;if(g!=null){const w=L(g);h=w instanceof Qe?(o=w,In(o)):1}else h=0;if(h>p+2){const w=L(r);if(w instanceof Qe){const S=w;if(s=We(S),(s!=null?(a=L(s),a instanceof Qe?(l=a,In(l)):1):0)>p+1){const x=L(We(S));if(x instanceof Qe){const E=x;return $t($t(e,t,n,We(E)),Ye(E),Je(E),$t(Ge(E),Ye(S),Je(S),Ge(S)))}else throw new Error("internal error: Map.rebalance")}else return $t($t(e,t,n,We(S)),Ye(S),Je(S),Ge(S))}else throw new Error("internal error: Map.rebalance")}else if(p>h+2){const w=L(e);if(w instanceof Qe){const S=w;if(u=Ge(S),(u!=null?(d=L(u),d instanceof Qe?(c=d,In(c)):1):0)>h+1){const x=L(Ge(S));if(x instanceof Qe){const E=x;return $t($t(We(S),Ye(S),Je(S),We(E)),Ye(E),Je(E),$t(Ge(E),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return $t(We(S),Ye(S),Je(S),$t(Ge(S),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return $t(e,t,n,r)}function Wr(e,t,n,r){if(r!=null){const i=L(r),o=e.Compare(t,Ye(i))|0;if(i instanceof Qe){const s=i;return o<0?Ro(Wr(e,t,n,We(s)),Ye(s),Je(s),Ge(s)):o===0?rr(t,n,We(s),Ge(s),In(s)):Ro(We(s),Ye(s),Je(s),Wr(e,t,n,Ge(s)))}else return o<0?rr(t,n,void 0,r,2):o===0?Ur(t,n):rr(t,n,r,void 0,2)}else return Ur(t,n)}function af(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=L(o),a=r.Compare(i,Ye(s))|0;if(a===0)return ht(Je(s));if(s instanceof Qe){const l=s;e=r,t=i,n=a<0?We(l):Ge(l);continue e}else return}else return}}function pg(e,t,n){const r=af(e,t,n);if(r==null)throw new Error;return L(r)}function lf(e){if(e!=null){const t=L(e);if(t instanceof Qe){const n=t;if(We(n)==null)return[Ye(n),Je(n),Ge(n)];{const r=lf(We(n));return[r[0],r[1],$t(r[2],Ye(n),Je(n),Ge(n))]}}else return[Ye(t),Je(t),void 0]}else throw new Error("internal error: Map.spliceOutSuccessor")}function ma(e,t,n,r){if(r!=null){const i=L(r);if(i instanceof Qe){const o=i,s=e.Compare(t,Ye(o))|0;if(s<0)return Ro(ma(e,t,n,We(o)),Ye(o),Je(o),Ge(o));if(s===0){const a=n(ht(Je(o)));if(a!=null)return rr(t,L(a),We(o),Ge(o),In(o));if(We(o)==null)return Ge(o);if(Ge(o)==null)return We(o);{const l=lf(Ge(o));return $t(We(o),l[0],l[1],l[2])}}else return Ro(We(o),Ye(o),Je(o),ma(e,t,n,Ge(o)))}else{const o=e.Compare(t,Ye(i))|0;if(o<0){const s=n(void 0);return s!=null?rr(t,L(s),void 0,r,2):r}else if(o===0){const s=n(ht(Je(i)));return s!=null?Ur(t,L(s)):void 0}else{const s=n(void 0);return s!=null?rr(t,L(s),r,void 0,2):r}}}else{const i=n(void 0);return i!=null?Ur(t,L(i)):r}}function gg(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=L(o),a=r.Compare(i,Ye(s))|0;if(s instanceof Qe){const l=s;if(a<0){e=r,t=i,n=We(l);continue e}else{if(a===0)return!0;e=r,t=i,n=Ge(l);continue e}}else return a===0}else return!1}}function uf(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=L(r);if(i instanceof Qe){const o=i;uf(n,We(o)),n(Ye(o),Je(o)),e=n,t=Ge(o);continue e}else n(Ye(i),Je(i))}break}}function wg(e,t){uf(e,t)}function cf(e,t,n){let r=n;wg((i,o)=>{At(t,r,[i,o]),r=r+1|0},e)}function yg(e){const t=sf(e)|0,n=is(new Array(t),0,t,[null,null]);return cf(e,n,0),n}function vg(e,t){return Sn((n,r)=>Wr(e,r[0],r[1],n),void 0,t)}function bg(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=Wr(r,s[0],s[1],i),n=o;continue e}else return i}}function _g(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const i=Ae(r,t);n=Wr(e,i[0],i[1],n)}return n}function df(e,t){if(Qt(t))return _g(e,t);if(t instanceof bt)return vg(e,t);{const n=ke(t);try{return bg(e,void 0,n)}finally{Te(n)}}}class xg extends Me{constructor(t,n){super(),this.stack=t,this.started=n}}function ff(e){e:for(;;){const t=e;if(Ce(t))return ot();{const n=xe(t),r=re(t);if(r!=null){const i=L(r);if(i instanceof Qe){const o=i;e=Be([We(o),Ur(Ye(o),Je(o)),Ge(o)],n);continue e}else return t}else{e=n;continue e}}}}function bu(e){return new xg(ff(ge(e)),!1)}function Cg(){throw new Error("enumeration not started")}function Sg(){throw new Error("enumeration already finished")}function _u(e){if(e.started){const t=e.stack;if(Ce(t))return Sg();if(re(t)!=null){const n=L(re(t));if(n instanceof Qe)throw new Error("Please report error: Map iterator, unexpected stack for current");return[Ye(n),Je(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return Cg()}function Eg(e){if(e.started){const t=e.stack;if(Ce(t))return!1;if(re(t)!=null){if(L(re(t))instanceof Qe)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=ff(xe(t)),!Ce(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!Ce(e.stack)}function xu(e){let t=bu(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return _u(t)},"System.Collections.IEnumerator.get_Current"(){return _u(t)},"System.Collections.IEnumerator.MoveNext"(){return Eg(t)},"System.Collections.IEnumerator.Reset"(){t=bu(e)},Dispose(){}}}class Lo{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return $g(this)|0}Equals(t){const n=this;if(t instanceof Lo){const r=t,i=ke(n);try{const o=ke(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 J(l[0],u[0])&&J(l[1],u[1])?s():!1}else return!0;else return!1};return s()}finally{Te(o)}}finally{Te(i)}}else return!1}toString(){return"map ["+St("; ",Ze(n=>Fd("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return xu(this.tree)}[Symbol.iterator](){return Kr(ke(this))}"System.Collections.IEnumerable.GetEnumerator"(){return xu(this.tree)}CompareTo(t){const n=this;if(t instanceof Lo)return cg((i,o)=>{const s=n.comparer.Compare(i[0],o[0])|0;return(s!==0?s:ut(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 Cu(n,t[0])&&J(ar(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){cf(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Fs(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Fs(this)|0}get size(){return Fs(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return Ze(n=>[n[0],n[1]],this)}get(t){return ar(this,t)}has(t){return Cu(this,t)}keys(){return Ze(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return Ze(n=>n[1],this)}forEach(t,n){const r=this;wr(i=>{t(i[1],i[0],r)},r)}}function Ui(e,t){return new Lo(e,t)}function Ag(e){return Ui(e,void 0)}function kg(e,t,n){return Ui(e.comparer,Wr(e.comparer,t,n,e.tree))}function Tg(e,t,n){return Ui(e.comparer,ma(e.comparer,t,n,e.tree))}function ar(e,t){return pg(e.comparer,t,e.tree)}function Fs(e){return sf(e.tree)}function Cu(e,t){return gg(e.comparer,t,e.tree)}function Su(e){return et(t=>t[1],yg(e.tree))}function xi(e,t){return af(e.comparer,t,e.tree)}function $g(e){const t=(i,o)=>(i<<1)+o+631;let n=0;const r=ke(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const i=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,Vt(i[0]))|0,n=t(n,Vt(i[1]))|0}}finally{Te(r)}return n|0}function Ng(e,t,n){return kg(n,e,t)}function io(e,t,n){return Tg(n,e,t)}function Mg(e,t){return xi(t,e)}function Ig(e){return Ze(t=>[t[0],t[1]],e)}function go(e,t){return Ui(t,df(t,e))}function Dg(e,t){return Ui(t,df(t,e))}function hf(e){return Ag(e)}const Wn=new sl("",new Xd(0,[]),ot(),!1,void 0,void 0,void 0,new Yp(0,[]));new Qd(0,"","","",hf({Compare:es}),new Er(0,[""]));function Eu(e,t){return Ja(t)?new Array(0):K0(t,[e],void 0,0)}function Og(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 Fg(e){return new sl(e,Wn.method,Wn.headers,Wn.withCredentials,Wn.overridenMimeType,Wn.overridenResponseType,Wn.timeout,Wn.content)}function Pg(e,t){return new sl(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Rg(e){return Wp(t=>{const n=new XMLHttpRequest;n.open(Og(e.method),e.url),n.onreadystatechange=()=>{let l,u,d,c,p,m,h;n.readyState===4&&t[0]((l=(u=n.responseType,u===""||u==="text"?n.responseText:""),d=n.status|0,c=n.responseType,p=(m=n.responseType,m===""?new Er(0,[n.responseText]):m==="text"?new Er(0,[n.responseText]):m==="arraybuffer"?new Er(2,[n.response]):m==="blob"?new Er(1,[n.response]):new Er(3,[n.response])),h=Dg(Pt(g=>{const w=v(Eu(":",g));if(!Ce(w))return[re(w).toLocaleLowerCase(),St(":",xe(w)).trim()]},Eu(`\r
|
|
4
|
-
`,n.getAllResponseHeaders())),{Compare:es}),new Qd(d,l,c,n.responseURL,h,p)))};const r=ke(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{Te(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(ht(a.fields[0]));break}case 3:{n.send(ht(a.fields[0]));break}case 2:{n.send(ht(a.fields[0]));break}default:n.send()}})}function Lg(e){return new T(0,[e])}function mf(e){return new T(1,[e])}class T extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function xn(e,t){return t.tag===0?Lg(e(t.fields[0])):mf(t.fields[0])}function Hg(e,t){return t.tag===0?e(t.fields[0]):mf(t.fields[0])}const Kn={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function Ps(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 Vg(e,t){switch(t){case Kn.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case Kn.SnakeCase:return Ps(e,"_");case Kn.SnakeCaseAllCaps:return Ps(e,"_").toUpperCase();case Kn.KebabCase:return Ps(e,"-");case Kn.None:default:return e}}function yr(e,t=Kn.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=Vg(s,a),n[s]=l}for(let s of e){let a=Kn.None;if(s==null&&i(s),s instanceof z){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 cl(e,t,n){return e.has(t)?(n.contents=e.get(t),!0):!1}function pf(e,t){return t.has(e)?!1:(t.add(e),!0)}function jg(e,t,n){if(e.has(t))throw new Error("An item with the same key has already been added. Key: "+t);e.set(t,n)}function Pn(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class X extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class gf extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function Au(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Bg(e,t){switch(e.tag){case 2:return Qa(Au(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Au(t)}}const Ug=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,ku=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Wg=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Gg(e){function t(r){return r.replace(ku,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Ug.test(n))return X0(n,"{","}","(",")");if(ku.test(n))return t(n);if(Wg.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 qg(e,t){try{return t.contents=Gg(e),!0}catch{return!1}}var pa;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(pa||(pa={}));function zg(e,t){const[,n,r,i]=e;return{sign:n||"",prefix:r||"",digits:i,radix:t}}function Tu(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 Yg(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 Zg(e,t){if(t&pa.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 Kg(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||Zg(o,t),!Yg(n).test(s))return zg(i,n)}return null}function Xg(e,t,n,r,i){const o=Kg(e,t,i);if(o!=null){let s=Number.parseInt(o.sign+o.digits,o.radix);if(!Number.isNaN(s)){const[a,l]=Tu(!0,r);!n&&o.radix!==10&&s>=a&&s<=l&&(s=s<<32-r>>32-r);const[u,d]=Tu(n,r);if(s>=u&&s<=d)return s}}throw new Error(`The input string ${e} was not in a correct format.`)}function ei(e,t,n,r,i){try{return i.contents=Xg(e,t,n,r),!0}catch{return!1}}function wf(e,t){Qg(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function Qg(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 Jg(){return wf(-621355968e5,0)}function e1(e){const[t,n]=Nd(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return wf(t.getTime(),r)}function t1(e,t){try{return t.contents=e1(e),!0}catch{return!1}}function $u(e=0,t=0,n=0,r=0,i=0){switch(arguments.length){case 1:return n1(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 n1(e){return Number(BigInt(e)/10000n)}function r1(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 $u(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*$u(i,l,u,s,o)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function i1(e,t){try{return t.contents=r1(e),!0}catch{return!1}}class yf{constructor(t,n){const r=new mt(Se());this.comparer=n,r.contents=this,this.hashMap=new Map([]),this["init@9"]=1;const i=ke(t);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const o=i["System.Collections.Generic.IEnumerator`1.get_Current"]();Rs(r.contents,o)}}finally{Te(i)}}get[Symbol.toStringTag](){return"HashSet"}toJSON(){const t=this;return Array.from(t)}"System.Collections.IEnumerable.GetEnumerator"(){return ke(this)}GetEnumerator(){return ke(cs(this.hashMap.values()))}[Symbol.iterator](){return Kr(ke(this))}"System.Collections.Generic.ICollection`1.Add2B595"(t){Rs(this,t)}"System.Collections.Generic.ICollection`1.Clear"(){Nu(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(t){return Iu(this,t)}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){nf((i,o)=>{At(t,n+i,o)},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return Mu(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(t){return Du(this,t)}get size(){return Mu(this)|0}add(t){const n=this;return Rs(n,t),n}clear(){Nu(this)}delete(t){return Du(this,t)}has(t){return Iu(this,t)}keys(){return Ze(n=>n,this)}values(){return Ze(n=>n,this)}entries(){return Ze(n=>[n,n],this)}forEach(t,n){const r=this;wr(i=>{t(i,i,r)},r)}}function dl(e,t){const n=e.comparer.GetHashCode(t)|0;let r,i=Se();return r=[cl(e.hashMap,n,new mt(()=>i,o=>{i=o})),i],r[0]?[!0,n,r[1].findIndex(o=>e.comparer.Equals(t,o))]:[!1,n,-1]}function Nu(e){e.hashMap.clear()}function Mu(e){let t=0,n=ke(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{Te(n)}return t|0}function Rs(e,t){const n=dl(e,t);return n[0]?n[2]>-1?!1:(Pn(e.hashMap,n[1]).push(t),!0):(e.hashMap.set(n[1],[t]),!0)}function Iu(e,t){const n=dl(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return!0;default:return!1}}function Du(e,t){const n=dl(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return Pn(e.hashMap,n[1]).splice(n[2],1),!0;default:return!1}}class vf{constructor(t){this.k=t}}function Nt(e){return new vf(e)}function ue(e){return e.k}class Ee extends vf{constructor(t,n,r,i){super(t),this.left=n,this.right=r,this.h=i|0}}function Mt(e,t,n,r){return new Ee(e,t,n,r)}function Re(e){return e.left}function Oe(e){return e.right}function $r(e){return e.h}function bf(e,t){e:for(;;){const n=e,r=t;if(n!=null){const i=L(n);if(i instanceof Ee){const o=i;e=Re(o),t=bf(Oe(o),r+1);continue e}else return r+1|0}else return r|0}}function o1(e){return bf(e,0)}function Gt(e,t,n){let r,i,o;const s=e;if(s!=null){const d=L(s);o=d instanceof Ee?(r=d,$r(r)):1}else o=0;let a;const l=n;if(l!=null){const d=L(l);a=d instanceof Ee?(i=d,$r(i)):1}else a=0;const u=(o<a?a:o)|0;return u===0?Nt(t):Mt(t,e,n,u+1)}function Ou(e,t,n){let r,i,o,s,a,l,u,d,c;const p=e;if(p!=null){const g=L(p);c=g instanceof Ee?(r=g,$r(r)):1}else c=0;let m;const h=n;if(h!=null){const g=L(h);m=g instanceof Ee?(i=g,$r(i)):1}else m=0;if(m>c+2){const g=L(n);if(g instanceof Ee){const w=g;if(o=Re(w),(o!=null?(s=L(o),s instanceof Ee?(a=s,$r(a)):1):0)>c+1){const S=L(Re(w));if(S instanceof Ee){const x=S;return Gt(Gt(e,t,Re(x)),ue(x),Gt(Oe(x),ue(w),Oe(w)))}else throw new Error("internal error: Set.rebalance")}else return Gt(Gt(e,t,Re(w)),ue(w),Oe(w))}else throw new Error("internal error: Set.rebalance")}else if(c>m+2){const g=L(e);if(g instanceof Ee){const w=g;if(l=Oe(w),(l!=null?(u=L(l),u instanceof Ee?(d=u,$r(d)):1):0)>m+1){const S=L(Oe(w));if(S instanceof Ee){const x=S;return Gt(Gt(Re(w),ue(w),Re(x)),ue(x),Gt(Oe(x),t,n))}else throw new Error("internal error: Set.rebalance")}else return Gt(Re(w),ue(w),Gt(Oe(w),t,n))}else throw new Error("internal error: Set.rebalance")}else return Gt(e,t,n)}function Gr(e,t,n){if(n!=null){const r=L(n),i=e.Compare(t,ue(r))|0;if(r instanceof Ee){const o=r;return i<0?Ou(Gr(e,t,Re(o)),ue(o),Oe(o)):i===0?n:Ou(Re(o),ue(o),Gr(e,t,Oe(o)))}else{const o=e.Compare(t,ue(r))|0;return o<0?Mt(t,void 0,n,2):o===0?n:Mt(t,n,void 0,2)}}else return Nt(t)}function _f(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=L(o),a=r.Compare(i,ue(s))|0;if(s instanceof Ee){const l=s;if(a<0){e=r,t=i,n=Re(l);continue e}else{if(a===0)return!0;e=r,t=i,n=Oe(l);continue e}}else return a===0}else return!1}}function xf(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=L(r);if(i instanceof Ee){const o=i;xf(n,Re(o)),n(ue(o)),e=n,t=Oe(o);continue e}else n(ue(i))}break}}class s1 extends Me{constructor(t,n){super(),this.stack=t,this.started=n}}function Cf(e){e:for(;;){const t=e;if(Ce(t))return ot();{const n=re(t),r=xe(t);if(n!=null){const i=L(n);if(i instanceof Ee){const o=i;e=Be([Re(o),Nt(ue(o)),Oe(o)],r);continue e}else return t}else{e=r;continue e}}}}function Fu(e){return new s1(Cf(ge(e)),!1)}function a1(){throw new Error("Enumeration not started")}function l1(){throw new Error("Enumeration already started")}function Pu(e){if(e.started){const t=e.stack;if(Ce(t))return l1();if(re(t)!=null){const n=L(re(t));return ue(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return a1()}function u1(e){if(e.started){const t=e.stack;if(Ce(t))return!1;if(re(t)!=null){if(L(re(t))instanceof Ee)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Cf(xe(t)),!Ce(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!Ce(e.stack)}function Ru(e){let t=Fu(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Pu(t)},"System.Collections.IEnumerator.get_Current"(){return Pu(t)},"System.Collections.IEnumerator.MoveNext"(){return u1(t)},"System.Collections.IEnumerator.Reset"(){t=Fu(e)},Dispose(){}}}function c1(e,t,n){e:for(;;){const r=e,i=t,o=n;if(Ce(i))return Ce(o)?0:-1;if(Ce(o))return 1;if(re(o)!=null)if(re(i)!=null){const s=L(re(i)),a=L(re(o));if(s instanceof Ee){const l=s;if(Re(l)==null)if(a instanceof Ee){const u=a;if(Re(u)==null){const d=r.Compare(ue(l),ue(u))|0;if(d!==0)return d|0;e=r,t=Rt(Oe(l),xe(i)),n=Rt(Oe(u),xe(o));continue e}else{let d,c,p,m,h;switch(Ce(i)?Ce(o)?d=2:re(o)!=null?(d=1,m=xe(o),h=L(re(o))):d=2:re(i)!=null?(d=0,c=xe(i),p=L(re(i))):Ce(o)?d=2:re(o)!=null?(d=1,m=xe(o),h=L(re(o))):d=2,d){case 0:if(p instanceof Ee){const g=p;e=r,t=Be([Re(g),Mt(ue(g),void 0,Oe(g),0)],c),n=o;continue e}else{e=r,t=Be([void 0,Nt(ue(p))],c),n=o;continue e}case 1:if(h instanceof Ee){const g=h;e=r,t=i,n=Be([Re(g),Mt(ue(g),void 0,Oe(g),0)],m);continue e}else{e=r,t=i,n=Be([void 0,Nt(ue(h))],m);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const u=r.Compare(ue(l),ue(a))|0;if(u!==0)return u|0;e=r,t=Rt(Oe(l),xe(i)),n=Rt(void 0,xe(o));continue e}else{let u,d,c,p,m;switch(Ce(i)?Ce(o)?u=2:re(o)!=null?(u=1,p=xe(o),m=L(re(o))):u=2:re(i)!=null?(u=0,d=xe(i),c=L(re(i))):Ce(o)?u=2:re(o)!=null?(u=1,p=xe(o),m=L(re(o))):u=2,u){case 0:if(c instanceof Ee){const h=c;e=r,t=Be([Re(h),Mt(ue(h),void 0,Oe(h),0)],d),n=o;continue e}else{e=r,t=Be([void 0,Nt(ue(c))],d),n=o;continue e}case 1:if(m instanceof Ee){const h=m;e=r,t=i,n=Be([Re(h),Mt(ue(h),void 0,Oe(h),0)],p);continue e}else{e=r,t=i,n=Be([void 0,Nt(ue(m))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof Ee){const l=a;if(Re(l)==null){const u=r.Compare(ue(s),ue(l))|0;if(u!==0)return u|0;e=r,t=Rt(void 0,xe(i)),n=Rt(Oe(l),xe(o));continue e}else{let u,d,c,p,m;switch(Ce(i)?Ce(o)?u=2:re(o)!=null?(u=1,p=xe(o),m=L(re(o))):u=2:re(i)!=null?(u=0,d=xe(i),c=L(re(i))):Ce(o)?u=2:re(o)!=null?(u=1,p=xe(o),m=L(re(o))):u=2,u){case 0:if(c instanceof Ee){const h=c;e=r,t=Be([Re(h),Mt(ue(h),void 0,Oe(h),0)],d),n=o;continue e}else{e=r,t=Be([void 0,Nt(ue(c))],d),n=o;continue e}case 1:if(m instanceof Ee){const h=m;e=r,t=i,n=Be([Re(h),Mt(ue(h),void 0,Oe(h),0)],p);continue e}else{e=r,t=i,n=Be([void 0,Nt(ue(m))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(ue(s),ue(a))|0;if(l!==0)return l|0;e=r,t=xe(i),n=xe(o);continue e}}else{L(re(o));let s,a,l,u,d;switch(Ce(i)?Ce(o)?s=2:re(o)!=null?(s=1,u=xe(o),d=L(re(o))):s=2:re(i)!=null?(s=0,a=xe(i),l=L(re(i))):Ce(o)?s=2:re(o)!=null?(s=1,u=xe(o),d=L(re(o))):s=2,s){case 0:if(l instanceof Ee){const c=l;e=r,t=Be([Re(c),Mt(ue(c),void 0,Oe(c),0)],a),n=o;continue e}else{e=r,t=Be([void 0,Nt(ue(l))],a),n=o;continue e}case 1:if(d instanceof Ee){const c=d;e=r,t=i,n=Be([Re(c),Mt(ue(c),void 0,Oe(c),0)],u);continue e}else{e=r,t=i,n=Be([void 0,Nt(ue(d))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(re(i)!=null){L(re(i));let s,a,l,u,d;switch(Ce(i)?Ce(o)?s=2:re(o)!=null?(s=1,u=xe(o),d=L(re(o))):s=2:re(i)!=null?(s=0,a=xe(i),l=L(re(i))):Ce(o)?s=2:re(o)!=null?(s=1,u=xe(o),d=L(re(o))):s=2,s){case 0:if(l instanceof Ee){const c=l;e=r,t=Be([Re(c),Mt(ue(c),void 0,Oe(c),0)],a),n=o;continue e}else{e=r,t=Be([void 0,Nt(ue(l))],a),n=o;continue e}case 1:if(d instanceof Ee){const c=d;e=r,t=i,n=Be([Re(c),Mt(ue(c),void 0,Oe(c),0)],u);continue e}else{e=r,t=i,n=Be([void 0,Nt(ue(d))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=xe(i),n=xe(o);continue e}}}function Lu(e,t,n){return t==null?n==null?0:-1:n==null?1:c1(e,ge(t),ge(n))|0}function d1(e,t,n){let r=n;xf(i=>{At(t,r,i),r=r+1|0},e)}function f1(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){e=r,t=Gr(r,o["System.Collections.Generic.IEnumerator`1.get_Current"](),i),n=o;continue e}else return i}}function h1(e,t){return ss((n,r)=>Gr(e,r,n),void 0,t)}function m1(e,t){return Sn((n,r)=>Gr(e,r,n),void 0,t)}function Sf(e,t){if(Qt(t))return h1(e,t);if(t instanceof bt)return m1(e,t);{const n=ke(t);try{return f1(e,void 0,n)}finally{Te(n)}}}class fl{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return w1(this)|0}Equals(t){let n;const r=this;return t instanceof fl&&(n=t,Lu(Dr(r),qt(r),qt(n))===0)}toString(){return"set ["+St("; ",Ze(n=>Ot(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return Lu(Dr(n),qt(n),qt(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 _f(Dr(n),t,qt(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){d1(qt(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Ls(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Ls(this)|0}GetEnumerator(){return Ru(qt(this))}[Symbol.iterator](){return Kr(ke(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Ru(qt(this))}get size(){return Ls(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 Ef(this,t)}keys(){return Ze(n=>n,this)}values(){return Ze(n=>n,this)}entries(){return Ze(n=>[n,n],this)}forEach(t,n){const r=this;wr(i=>{t(i,i,r)},r)}}function fs(e,t){return new fl(e,t)}function Dr(e){return e.comparer}function qt(e){return e.tree}function p1(e){return fs(e,void 0)}function g1(e,t){return fs(Dr(e),Gr(Dr(e),t,qt(e)))}function Ls(e){return o1(qt(e))}function Ef(e,t){return _f(Dr(e),t,qt(e))}function w1(e){let t=0;const n=ke(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+Vt(r)+631|0}}finally{Te(n)}return Math.abs(t)|0}function ga(e,t){return Ef(t,e)}function y1(e,t){return g1(t,e)}function v1(e){return p1(e)}function b1(e,t){return fs(t,Sf(t,e))}function _1(e,t){return fs(t,Sf(t,e))}function hi(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
|
|
1
|
+
var Oi,we,zc,Yn,Ul,Yc,ra,Da,ia,oa,Zc,ki={},Kc=[],Mm=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Zo=Array.isArray;function mn(e,t){for(var n in t)e[n]=t[n];return e}function Xc(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function f(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?Oi.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 xi(e,s,r,i,null)}function xi(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??++zc,__i:-1,__u:0};return i==null&&we.vnode!=null&&we.vnode(o),o}function Ko(){return{current:null}}function Le(e){return e.children}function Kt(e,t){this.props=e,this.context=t}function Rr(e,t){if(t==null)return e.__?Rr(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"?Rr(e):null}function Qc(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 Qc(e)}}function sa(e){(!e.__d&&(e.__d=!0)&&Yn.push(e)&&!_o.__r++||Ul!==we.debounceRendering)&&((Ul=we.debounceRendering)||Yc)(_o)}function _o(){var e,t,n,r,i,o,s,a;for(Yn.sort(ra);e=Yn.shift();)e.__d&&(t=Yn.length,r=void 0,o=(i=(n=e).__v).__e,s=[],a=[],n.__P&&((r=mn({},i)).__v=i.__v+1,we.vnode&&we.vnode(r),Oa(n.__P,r,i,n.__n,n.__P.namespaceURI,32&i.__u?[o]:null,s,o??Rr(i),!!(32&i.__u),a),r.__v=i.__v,r.__.__k[r.__i]=r,td(s,r,a),r.__e!=o&&Qc(r)),Yn.length>t&&Yn.sort(ra));_o.__r=0}function Jc(e,t,n,r,i,o,s,a,l,u,d){var c,p,m,h,g,w=r&&r.__k||Kc,C=t.length;for(n.__d=l,Im(n,t,w),l=n.__d,c=0;c<C;c++)(m=n.__k[c])!=null&&(p=m.__i===-1?ki:w[m.__i]||ki,m.__i=c,Oa(e,m,p,i,o,s,a,l,u,d),h=m.__e,m.ref&&p.ref!=m.ref&&(p.ref&&Fa(p.ref,null,m),d.push(m.ref,m.__c||h,m)),g==null&&h!=null&&(g=h),65536&m.__u||p.__k===m.__k?l=ed(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=g}function Im(e,t,n){var r,i,o,s,a,l=t.length,u=n.length,d=u,c=0;for(e.__k=[],r=0;r<l;r++)(i=t[r])!=null&&typeof i!="boolean"&&typeof i!="function"?(s=r+c,(i=e.__k[r]=typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?xi(null,i,null,null,null):Zo(i)?xi(Le,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?xi(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=Dm(i,n,s,d))!==-1&&(d--,(o=n[a])&&(o.__u|=131072)),o==null||o.__v===null?(a==-1&&c--,typeof i.type!="function"&&(i.__u|=65536)):a!==s&&(a==s-1?c--:a==s+1?c++:(a>s?c--:c++,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=Rr(o)),nd(o,o))}function ed(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=ed(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Rr(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function wn(e,t){return t=t||[],e==null||typeof e=="boolean"||(Zo(e)?e.some(function(n){wn(n,t)}):t.push(e)),t}function Dm(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===Le||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 Wl(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Mm.test(t)?n:n+"px"}function Qi(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||Wl(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Wl(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=Da,e.addEventListener(t,o?oa:ia,o)):e.removeEventListener(t,o?oa:ia,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 Gl(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Da++;else if(t.t<n.u)return;return we.event&&(t=we.event(t)),"handleEvent"in n?n.handleEvent(t):n(t)}}}function Oa(e,t,n,r,i,o,s,a,l,u){var d,c,p,m,h,g,w,C,S,E,$,P,H,R,_,y,A=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),o=[a=t.__e=n.__e]),(d=we.__b)&&d(t);e:if(typeof A=="function")try{if(C=t.props,S="prototype"in A&&A.prototype.render,E=(d=A.contextType)&&r[d.__c],$=d?E?E.props.value:d.__:r,n.__c?w=(c=t.__c=n.__c).__=c.__E:(S?t.__c=c=new A(C,$):(t.__c=c=new Kt(C,$),c.constructor=A,c.render=Fm),E&&E.sub(c),c.props=C,c.state||(c.state={}),c.context=$,c.__n=r,p=c.__d=!0,c.__h=[],c._sb=[]),S&&c.__s==null&&(c.__s=c.state),S&&A.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=mn({},c.__s)),mn(c.__s,A.getDerivedStateFromProps(C,c.__s))),m=c.props,h=c.state,c.__v=t,p)S&&A.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),S&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(S&&A.getDerivedStateFromProps==null&&C!==m&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(C,$),!c.__e&&(c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(C,c.__s,$)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(c.props=C,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(k){k&&(k.__=t)}),P=0;P<c._sb.length;P++)c.__h.push(c._sb[P]);c._sb=[],c.__h.length&&s.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(C,c.__s,$),S&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(m,h,g)})}if(c.context=$,c.props=C,c.__P=e,c.__e=!1,H=we.__r,R=0,S){for(c.state=c.__s,c.__d=!1,H&&H(t),d=c.render(c.props,c.state,c.context),_=0;_<c._sb.length;_++)c.__h.push(c._sb[_]);c._sb=[]}else do c.__d=!1,H&&H(t),d=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++R<25);c.state=c.__s,c.getChildContext!=null&&(r=mn(mn({},r),c.getChildContext())),S&&!p&&c.getSnapshotBeforeUpdate!=null&&(g=c.getSnapshotBeforeUpdate(m,h)),Jc(e,Zo(y=d!=null&&d.type===Le&&d.key==null?d.props.children:d)?y:[y],t,n,r,i,o,s,a,l,u),c.base=t.__e,t.__u&=-161,c.__h.length&&s.push(c),w&&(c.__E=c.__=null)}catch(k){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;we.__e(k,t,n)}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Om(n.__e,t,n,r,i,o,s,l,u);(d=we.diffed)&&d(t)}function td(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)Fa(n[r],n[++r],n[++r]);we.__c&&we.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){we.__e(o,i.__v)}})}function Om(e,t,n,r,i,o,s,a,l){var u,d,c,p,m,h,g,w=n.props,C=t.props,S=t.type;if(S==="svg"?i="http://www.w3.org/2000/svg":S==="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==!!S&&(S?m.localName===S:m.nodeType===3)){e=m,o[u]=null;break}}if(e==null){if(S===null)return document.createTextNode(C);e=document.createElementNS(i,S,C.is&&C),a&&(we.__m&&we.__m(t,o),a=!1),o=null}if(S===null)w===C||a&&e.data===C||(e.data=C);else{if(o=o&&Oi.call(e.childNodes),w=n.props||ki,!a&&o!=null)for(w={},u=0;u<e.attributes.length;u++)w[(m=e.attributes[u]).name]=m.value;for(u in w)if(m=w[u],u!="children"){if(u=="dangerouslySetInnerHTML")c=m;else if(!(u in C)){if(u=="value"&&"defaultValue"in C||u=="checked"&&"defaultChecked"in C)continue;Qi(e,u,null,m,i)}}for(u in C)m=C[u],u=="children"?p=m:u=="dangerouslySetInnerHTML"?d=m:u=="value"?h=m:u=="checked"?g=m:a&&typeof m!="function"||w[u]===m||Qi(e,u,m,w[u],i);if(d)a||c&&(d.__html===c.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(c&&(e.innerHTML=""),Jc(e,Zo(p)?p:[p],t,n,r,S==="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,s,o?o[0]:n.__k&&Rr(n,0),a,l),o!=null)for(u=o.length;u--;)Xc(o[u]);a||(u="value",S==="progress"&&h==null?e.removeAttribute("value"):h!==void 0&&(h!==e[u]||S==="progress"&&!h||S==="option"&&h!==w[u])&&Qi(e,u,h,w[u],i),u="checked",g!==void 0&&g!==e[u]&&Qi(e,u,g,w[u],i))}return e}function Fa(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){we.__e(i,n)}}function nd(e,t,n){var r,i;if(we.unmount&&we.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Fa(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){we.__e(o,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&nd(r[i],t,n||typeof e.type!="function");n||Xc(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Fm(e,t,n){return this.constructor(e,n)}function On(e,t,n){var r,i,o,s;we.__&&we.__(e,t),i=(r=typeof n=="function")?null:n&&n.__k||t.__k,o=[],s=[],Oa(t,e=(!r&&n||t).__k=f(Le,null,[e]),i||ki,ki,t.namespaceURI,!r&&n?[n]:i?null:t.firstChild?Oi.call(t.childNodes):null,o,!r&&n?n:i?i.__e:t.firstChild,r,s),td(o,e,s)}function Pa(e,t){On(e,t,Pa)}function Ra(e,t,n){var r,i,o,s,a=mn({},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?Oi.call(arguments,2):n),xi(e.type,a,r||e.key,i||e.ref,null)}function qe(e,t){var n={__c:t="__cC"+Zc++,__: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,sa(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}Oi=Kc.slice,we={__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}},zc=0,Kt.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=mn({},this.state),typeof e=="function"&&(e=e(mn({},n),this.props)),e&&mn(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),sa(this))},Kt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),sa(this))},Kt.prototype.render=Le,Yn=[],Yc=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ra=function(e,t){return e.__v.__b-t.__v.__b},_o.__r=0,Da=0,ia=Gl(!1),oa=Gl(!0),Zc=0;function La(){return(La=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 Pm=["context","children"];function Rm(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,Pm);return Ra(t,n)}function Lm(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=f(Rm,La({},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[rd(a[s].name)]=a[s].value);for(s=l.length;s--;){var u=t(l[s],null),d=l[s].slot;d?o[d]=f(ql,{name:d},u):i[s]=u}var c=r?f(ql,null,i):i;return f(r||n.nodeName.toLowerCase(),o,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Pa:On)(this._vdom,this._root)}function rd(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function Hm(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[rd(e)]=n,this._vdom=Ra(this._vdom,r),On(this._vdom,this._root)}}function Vm(){On(this._vdom=null,this._root)}function ql(e,t){var n=this;return f("slot",La({},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 jm(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=Lm,i.prototype.attributeChangedCallback=Hm,i.prototype.disconnectedCallback=Vm,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 Ha(e,t){jm(e,t)}var bn,Fe,Ms,zl,Lr=0,id=[],Ue=we,Yl=Ue.__b,Zl=Ue.__r,Kl=Ue.diffed,Xl=Ue.__c,Ql=Ue.unmount,Jl=Ue.__;function dr(e,t){Ue.__h&&Ue.__h(Fe,e,Lr||t),Lr=0;var n=Fe.__H||(Fe.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ce(e){return Lr=1,fr(od,e)}function fr(e,t,n){var r=dr(bn++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):od(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=Fe,!Fe.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 c=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]&&(c=!0)}}),o&&o.call(this,a,l,u)||c};Fe.u=!0;var o=Fe.shouldComponentUpdate,s=Fe.componentWillUpdate;Fe.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)},Fe.shouldComponentUpdate=i}return r.__N||r.__}function $e(e,t){var n=dr(bn++,3);!Ue.__s&&Ba(n.__H,t)&&(n.__=e,n.i=t,Fe.__H.__h.push(n))}function Cn(e,t){var n=dr(bn++,4);!Ue.__s&&Ba(n.__H,t)&&(n.__=e,n.i=t,Fe.__h.push(n))}function Q(e){return Lr=5,ie(function(){return{current:e}},[])}function Va(e,t,n){Lr=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 ie(e,t){var n=dr(bn++,7);return Ba(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function _e(e,t){return Lr=8,ie(function(){return e},t)}function Ne(e){var t=Fe.context[e.__c],n=dr(bn++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Fe)),t.props.value):e.__}function ja(e,t){Ue.useDebugValue&&Ue.useDebugValue(t?t(e):e)}function Bm(e){var t=dr(bn++,10),n=ce();return t.__=e,Fe.componentDidCatch||(Fe.componentDidCatch=function(r,i){t.__&&t.__(r,i),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Bt(){var e=dr(bn++,11);if(!e.__){for(var t=Fe.__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 Um(){for(var e;e=id.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(co),e.__H.__h.forEach(aa),e.__H.__h=[]}catch(t){e.__H.__h=[],Ue.__e(t,e.__v)}}Ue.__b=function(e){Fe=null,Yl&&Yl(e)},Ue.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Jl&&Jl(e,t)},Ue.__r=function(e){Zl&&Zl(e),bn=0;var t=(Fe=e.__c).__H;t&&(Ms===Fe?(t.__h=[],Fe.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(co),t.__h.forEach(aa),t.__h=[],bn=0)),Ms=Fe},Ue.diffed=function(e){Kl&&Kl(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(id.push(t)!==1&&zl===Ue.requestAnimationFrame||((zl=Ue.requestAnimationFrame)||Wm)(Um)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),Ms=Fe=null},Ue.__c=function(e,t){t.some(function(n){try{n.__h.forEach(co),n.__h=n.__h.filter(function(r){return!r.__||aa(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Ue.__e(r,n.__v)}}),Xl&&Xl(e,t)},Ue.unmount=function(e){Ql&&Ql(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{co(r)}catch(i){t=i}}),n.__H=void 0,t&&Ue.__e(t,n.__v))};var eu=typeof requestAnimationFrame=="function";function Wm(e){var t,n=function(){clearTimeout(r),eu&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);eu&&(t=requestAnimationFrame(n))}function co(e){var t=Fe,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Fe=t}function aa(e){var t=Fe;e.__c=e.__(),Fe=t}function Ba(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function od(e,t){return typeof t=="function"?t(e):t}function la(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 Xo(e,t){var n=t(),r=ce({t:{__:n,u:t}}),i=r[0].t,o=r[1];return Cn(function(){i.__=n,i.u=t,Is(i)&&o({t:i})},[e,n,t]),$e(function(){return Is(i)&&o({t:i}),e(function(){Is(i)&&o({t:i})})},[e]),n}function Is(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 Ua(e){e()}function Wa(e){return e}function Ga(){return[!1,Ua]}var qa=Cn;function xo(e,t){this.props=e,this.context=t}function sd(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:la(this.props,i)}function r(i){return this.shouldComponentUpdate=n,f(e,i)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(xo.prototype=new Kt).isPureReactComponent=!0,xo.prototype.shouldComponentUpdate=function(e,t){return la(this.props,e)||la(this.state,t)};var tu=we.__b;we.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),tu&&tu(e)};var Gm=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function za(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=Gm,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var nu=function(e,t){return e==null?null:wn(wn(e).map(t))},ad={map:nu,forEach:nu,count:function(e){return e?wn(e).length:0},only:function(e){var t=wn(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:wn},qm=we.__e;we.__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)}qm(e,t,n,r)};var ru=we.unmount;function ld(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 ld(r,t,n)})),e}function ud(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return ud(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 Ci(){this.__u=0,this.o=null,this.__b=null}function cd(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function dd(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 f(n,o)}return i.displayName="Lazy",i.__f=!0,i}function Ar(){this.i=null,this.l=null}we.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),ru&&ru(e)},(Ci.prototype=new Kt).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var i=cd(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]=ud(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)},Ci.prototype.componentWillUnmount=function(){this.o=[]},Ci.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]=ld(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&f(Le,null,e.fallback);return i&&(i.__u&=-33),[f(Le,null,t.__a?null:e.children),i]};var iu=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 zm(e){return this.getChildContext=function(){return e.context},e.children}function Ym(e){var t=this,n=e.h;t.componentWillUnmount=function(){On(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)}}),On(f(zm,{context:t.context},e.__v),t.v)}function Qo(e,t){var n=f(Ym,{__v:e,h:t});return n.containerInfo=t,n}(Ar.prototype=new Kt).__a=function(e){var t=this,n=cd(t.__v),r=t.l.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),iu(t,e,r)):i()};n?n(o):o()}},Ar.prototype.render=function(e){this.i=null,this.l=new Map;var t=wn(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},Ar.prototype.componentDidUpdate=Ar.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){iu(e,n,t)})};var fd=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Zm=/^(?: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]/,Km=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Xm=/[A-Z0-9]/g,Qm=typeof document<"u",Jm=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function hd(e,t,n){return t.__k==null&&(t.textContent=""),On(e,t),typeof n=="function"&&n(),e?e.__c:null}function md(e,t,n){return Pa(e,t),typeof n=="function"&&n(),e?e.__c:null}Kt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Kt.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var ou=we.event;function e0(){}function t0(){return this.cancelBubble}function n0(){return this.defaultPrevented}we.event=function(e){return ou&&(e=ou(e)),e.persist=e0,e.isPropagationStopped=t0,e.isDefaultPrevented=n0,e.nativeEvent=e};var Ya,r0={enumerable:!1,configurable:!0,get:function(){return this.class}},su=we.vnode;we.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||Qm&&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"||Jm(n.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":Km.test(s)&&(s=l):l=s="oninput":o&&Zm.test(s)?s=s.replace(Xm,"-$&").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=wn(n.children).forEach(function(u){u.props.selected=i.value.indexOf(u.props.value)!=-1})),r=="select"&&i.defaultValue!=null&&(i.value=wn(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",r0)):(n.className&&!n.class||n.class&&n.className)&&(i.class=i.className=n.className),t.props=i}(e),e.$$typeof=fd,su&&su(e)};var au=we.__r;we.__r=function(e){au&&au(e),Ya=e.__c};var lu=we.diffed;we.diffed=function(e){lu&&lu(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),Ya=null};var pd={ReactCurrentDispatcher:{current:{readContext:function(e){return Ya.__n[e.__c].props.value},useCallback:_e,useContext:Ne,useDebugValue:ja,useDeferredValue:Wa,useEffect:$e,useId:Bt,useImperativeHandle:Va,useInsertionEffect:qa,useLayoutEffect:Cn,useMemo:ie,useReducer:fr,useRef:Q,useState:ce,useSyncExternalStore:Xo,useTransition:Ga}}},i0="18.3.1";function gd(e){return f.bind(null,e)}function zr(e){return!!e&&e.$$typeof===fd}function wd(e){return zr(e)&&e.type===Le}function yd(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Za(e){return zr(e)?Ra.apply(null,arguments):e}function vd(e){return!!e.__k&&(On(null,e),!0)}function bd(e){return e&&(e.base||e.nodeType===1&&e)||null}var _d=function(e,t){return e(t)},It=function(e,t){return e(t)},xd=Le,Cd=zr,W={useState:ce,useId:Bt,useReducer:fr,useEffect:$e,useLayoutEffect:Cn,useInsertionEffect:qa,useTransition:Ga,useDeferredValue:Wa,useSyncExternalStore:Xo,startTransition:Ua,useRef:Q,useImperativeHandle:Va,useMemo:ie,useCallback:_e,useContext:Ne,useDebugValue:ja,version:"18.3.1",Children:ad,render:hd,hydrate:md,unmountComponentAtNode:vd,createPortal:Qo,createElement:f,createContext:qe,createFactory:gd,cloneElement:Za,createRef:Ko,Fragment:Le,isValidElement:zr,isElement:Cd,isFragment:wd,isMemo:yd,findDOMNode:bd,Component:Kt,PureComponent:xo,memo:sd,forwardRef:za,flushSync:It,unstable_batchedUpdates:_d,StrictMode:xd,Suspense:Ci,SuspenseList:Ar,lazy:dd,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:pd};const Co=Object.freeze(Object.defineProperty({__proto__:null,Children:ad,Component:Kt,Fragment:Le,PureComponent:xo,StrictMode:xd,Suspense:Ci,SuspenseList:Ar,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:pd,cloneElement:Za,createContext:qe,createElement:f,createFactory:gd,createPortal:Qo,createRef:Ko,default:W,findDOMNode:bd,flushSync:It,forwardRef:za,hydrate:md,isElement:Cd,isFragment:wd,isMemo:yd,isValidElement:zr,lazy:dd,memo:sd,render:hd,startTransition:Ua,unmountComponentAtNode:vd,unstable_batchedUpdates:_d,useCallback:_e,useContext:Ne,useDebugValue:ja,useDeferredValue:Wa,useEffect:$e,useErrorBoundary:Bm,useId:Bt,useImperativeHandle:Va,useInsertionEffect:qa,useLayoutEffect:Cn,useMemo:ie,useReducer:fr,useRef:Q,useState:ce,useSyncExternalStore:Xo,useTransition:Ga,version:i0},Symbol.toStringTag,{value:"Module"})),o0=`*,: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}.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}.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}.mx-12{margin-left:3rem;margin-right:3rem}.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-3{margin-left:.75rem}.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-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-5{width:1.25rem;height:1.25rem}.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-\\[120px\\]{height:120px}.h-\\[34px\\]{height:34px}.h-\\[38px\\]{height:38px}.h-\\[52px\\]{height:52px}.h-\\[58px\\]{height:58px}.h-\\[60px\\]{height:60px}.h-\\[72px\\]{height:72px}.h-full{height:100%}.h-px{height:1px}.max-h-48{max-height:12rem}.w-16{width:4rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-80{width:20rem}.w-96{width:24rem}.w-\\[120px\\]{width:120px}.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%}.max-w-\\[640px\\]{max-width:640px}.flex-none{flex:none}.flex-shrink,.shrink{flex-shrink:1}.flex-grow,.grow{flex-grow:1}.basis-0{flex-basis:0px}.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-disc{list-style-type:disc}.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-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.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-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\\[10px\\]{border-radius:10px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.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-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)}.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-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-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-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.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-6{padding-left:1.5rem;padding-right:1.5rem}.px-\\[13px\\]{padding-left:13px;padding-right:13px}.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-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-\\[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-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-3{padding-left:.75rem}.pl-\\[13px\\]{padding-left:13px}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.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-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-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-7{line-height:1.75rem}.leading-none{line-height:1}.leading-normal{line-height:1.5}.leading-tight{line-height:1.25}.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-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-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-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-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-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity, 1))}.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}.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)}.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))}.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))}.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-600:focus{--tw-ring-color: var(--fl-color-primary-600)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}@media (min-width: 640px){.sm\\:size-4{width:1rem;height:1rem}}`;function Qt(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function s0(e){return e!=null&&typeof e.GetEnumerator=="function"}function a0(e){return e!=null&&typeof e.CompareTo=="function"}function l0(e){return e!=null&&typeof e.Equals=="function"}function Sd(e){return e!=null&&typeof e.GetHashCode=="function"}function ua(e){return e!=null&&typeof e.Dispose=="function"}function Te(e){ua(e)&&e.Dispose()}function Se(){return null}function So(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 u0{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 ke(e){return s0(e)?e.GetEnumerator():new u0(e[Symbol.iterator]())}function Yr(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}}}}function He(e,t){return e.toString(10).padStart(t,"0")}function uu(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function c0(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function Xt(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class pn{static id(t){return pn.idMap.has(t)||pn.idMap.set(t,++pn.count),pn.idMap.get(t)}}pn.idMap=new WeakMap;pn.count=0;function Vn(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function Yt(e){return e*2654435761|0}function Ed(e){return Vn(e.toString(32))}function Fi(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 d0(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Yt(e);case"bigint":return Ed(e);case"string":return Vn(e);default:return Yt(pn.id(e))}}function f0(e){return Sd(e)?e.GetHashCode():d0(e)}function h0(e){return e.getTime()}function m0(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=Vt(e[r]);return Fi(n)}function Vt(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Yt(e);case"bigint":return Ed(e);case"string":return Vn(e);default:{if(Sd(e))return e.GetHashCode();if(Qt(e))return m0(e);if(e instanceof Date)return h0(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>Vt(r));return Fi(n)}else return Yt(pn.id(e))}}}function Eo(e){return f0(e)}function ca(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 Ad(e,t){return ca(e,t,J)}function p0(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let i=0;i<n.length;i++)if(n[i]!==r[i]||!J(e[n[i]],t[r[i]]))return!1;return!0}function J(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:l0(e)?e.Equals(t):Qt(e)?Qt(t)&&Ad(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&kd(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&p0(e,t)}function kd(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+uu(e),r=t.getTime()+uu(t)),n===r?0:n<r?-1:1}function Jo(e,t){return e===t?0:e<t?-1:1}function g0(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 Ka(e,t){return g0(e,t,ut)}function w0(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=ut(e[s],t[s]),o!==0)return o}return 0}function ut(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:a0(e)?e.CompareTo(t):Qt(e)?Qt(t)?Ka(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?kd(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?w0(e,t):-1}function b(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function y0(e){Qt(e)?e.splice(0):e.clear()}const es=new WeakMap;function Xe(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return es.set(t,e),t}function Zn(e){return es.get(e)??(t=>n=>e(t,n))}function da(e){if(e==null)return null;const t=(n,r,i)=>e(n)(r)(i);return es.set(t,e),t}function Ds(e){return es.get(e)??(t=>n=>r=>e(t,n,r))}function v0(e){let t=0,n="[";for(const r of e){if(t===0)n+=Ot(r);else if(t===100){n+="; ...";break}else n+="; "+Ot(r);t++}return n+"]"}function Ot(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 v0(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([i,o])=>i+" = "+Ot(o,t+1)).join(`
|
|
2
|
+
`)+" }":(r==null?void 0:r.name)??""}}return String(e)}function b0(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=Ot(t[0]),r=n.indexOf(" ")>=0):n=t.map(i=>Ot(i)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class z{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return b0(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>Vt(n));return t.splice(0,0,Yt(this.tag)),Fi(t)}Equals(t){return this===t?!0:So(this,t)&&this.tag===t.tag?Ad(this.fields,t.fields):!1}CompareTo(t){return this===t?0:So(this,t)?this.tag===t.tag?Ka(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function _0(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function x0(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+Ot(n)).join(`
|
|
3
|
+
`)+" }"}function C0(e){const t=Object.values(e).map(n=>Vt(n));return Fi(t)}function S0(e,t){if(e===t)return!0;if(So(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!J(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function E0(e,t){if(e===t)return 0;if(So(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const i=ut(e[n[r]],t[n[r]]);if(i!==0)return i}return 0}else return-1}class Me{toJSON(){return _0(this)}toString(){return x0(this)}GetHashCode(){return C0(this)}Equals(t){return S0(this,t)}CompareTo(t){return E0(this,t)}}class mt{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 A0{constructor(t){this.message=t}}function k0(e){return e instanceof A0||e instanceof Error}function T0(e){return e instanceof Promise}function Ao(e){return k0(e)||T0(e)?e:new Error(String(e))}const Xa=Ot(o0),Zr=Symbol("numeric");function Td(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[Zr])}function $0(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function fa(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[Zr]().multiply(t)}function fo(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[Zr]().toFixed(t)}function ko(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[Zr]().toPrecision(t)}function To(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[Zr]().toExponential(t)}function $o(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[Zr]().toHex()}const N0=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],M0=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],I0=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],D0=["January","February","March","April","May","June","July","August","September","October","November","December"];function kt(e,t,n){let r=0,i=t;for(;i<e.length&&e[i]===n;)i++,r++;return r}function cu(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function O0(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 Qa(e,t,n){let r=0,i=0,o="";const s=n?Pi(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(i=kt(t,r,"d"),r+=i,i){case 1:o+=fu(s);break;case 2:o+=He(fu(s),2);break;case 3:o+=N0[pu(s)];break;case 4:o+=M0[pu(s)];break}break;case"f":if(i=kt(t,r,"f"),r+=i,i<=3){const w=10**(3-i);o+=He(Math.floor(eo(s)/w),i)}else i<=7&&(o+=(""+eo(s)).padEnd(i,"0"));break;case"F":if(i=kt(t,r,"F"),r+=i,i<=3){const w=10**(3-i),C=Math.floor(eo(s)/w);C!=0&&(o+=He(C,i))}else if(i<=7){const w=eo(s);w!=0&&(o+=He(w,3))}break;case"g":i=kt(t,r,"g"),r+=i,i<=2&&(o+="A.D.");break;case"h":switch(i=kt(t,r,"h"),r+=i,i){case 1:o+=Ji(s)%12;break;case 2:o+=He(Ji(s)%12,2);break}break;case"H":switch(i=kt(t,r,"H"),r+=i,i){case 1:o+=Ji(s);break;case 2:o+=He(Ji(s),2);break}break;case"K":switch(i=kt(t,r,"K"),r+=i,i){case 1:switch(du(s)){case 1:o+="Z";break;case 2:o+=Tr(s.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(i=kt(t,r,"m"),r+=i,i){case 1:o+=hu(s);break;case 2:o+=He(hu(s),2);break}break;case"M":switch(i=kt(t,r,"M"),r+=i,i){case 1:o+=to(s);break;case 2:o+=He(to(s),2);break;case 3:o+=I0[to(s)-1];break;case 4:o+=D0[to(s)-1];break}break;case"s":switch(i=kt(t,r,"s"),r+=i,i){case 1:o+=mu(s);break;case 2:o+=He(mu(s),2);break}break;case"t":switch(i=kt(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=kt(t,r,"y"),r+=i,i){case 1:o+=s.getFullYear()%100;break;case 2:o+=He(s.getFullYear()%100,2);break;case 3:o+=He(s.getFullYear(),3);break;case 4:o+=He(s.getFullYear(),4);break;case 5:o+=He(s.getFullYear(),5);break}break;case"z":i=kt(t,r,"z"),r+=i;let l="";switch(du(s)){case 1:l="+00:00";break;case 2:l=Tr(s.getTimezoneOffset()*-6e4);break;case 0:l=Tr(U0(s).getTimezoneOffset()*-6e4);break}const u=l[0]==="-"?"-":"+",d=parseInt(l.substring(1,3),10),c=parseInt(l.substring(4,6),10);switch(i){case 1:o+=`${u}${d}`;break;case 2:o+=`${u}${He(d,2)}`;break;default:o+=`${u}${He(d,2)}:${He(c,2)}`;break}break;case":":o+=":",r++;break;case"/":o+="/",r++;break;case"'":case'"':const[p,m]=O0(t,r);o+=p,r+=m;break;case"%":const h=cu(t,r);if(h>=0&&h!==37)r+=2,o+=Qa(s,String.fromCharCode(h),n);else throw new Error("Invalid format string");break;case"\\":const g=cu(t,r);if(g>=0)r+=2,o+=String.fromCharCode(g);else throw new Error("Invalid format string");break;default:r++,o+=a;break}}return o}function du(e){return e.kind||0}function Tr(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+He(n,2)+":"+He(r,2)}function No(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 F0(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return He(e.getFullYear(),4)+"-"+He(e.getMonth()+1,2)+"-"+He(e.getDate(),2)+"T"+He(e.getHours(),2)+":"+He(e.getMinutes(),2)+":"+He(e.getSeconds(),2)+"."+He(e.getMilliseconds(),3)+(n?Tr(e.getTimezoneOffset()*-6e4):"")}}function P0(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+Tr(t)}function R0(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," ")+Tr(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return No(n,"first");case"T":case"t":return No(n,"second");case"O":case"o":return P0(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return Qa(n,t,!0)}function L0(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?No(e,"first"):e.toLocaleDateString();case"T":case"t":return n?No(e,"second"):e.toLocaleTimeString();case"O":case"o":return F0(e,n);default:throw new Error("Unrecognized Date print format")}else return Qa(e,t,n)}function $d(e,t,n){return e.offset!=null?R0(e,t):L0(e,t)}function Pi(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function H0(){return Pi(-621355968e5,1)}function Nd(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 V0(e,t=!1){const[n,r]=Nd(e),i=r!=null?t&&r==="Z"?1:2:0;return Pi(n.getTime(),i)}function j0(e,t){try{return t.contents=V0(e),!0}catch{return!1}}function B0(e){return e.kind===1?e:Pi(e.getTime(),1)}function U0(e){return e.kind===2?e:Pi(e.getTime(),2)}function fu(e){return e.kind===1?e.getUTCDate():e.getDate()}function Ji(e){return e.kind===1?e.getUTCHours():e.getHours()}function eo(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function hu(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function to(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function mu(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function pu(e){return e.kind===1?e.getUTCDay():e.getDay()}function W0(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 Md(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function gu(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 Ja(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 c=0;c<d;c++)a.push(arguments[c]);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=W0(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=gu(e,a),u=gu.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 ci=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,G0=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Id(e,t){return $0(e,t)<0}function Hr(e){return{input:e,cont:Y0(e)}}function Dd(e,t){return typeof t=="string"?e(t):t.cont(e)}function Ti(e){return Dd(t=>t,e)}function q0(e){return Dd(t=>{throw new Error(t)},e)}function z0(e,t,n,r,i){let o="";if(t=t||"",i=i||"",Td(e))switch(i.toLowerCase()!=="x"&&(Id(e,0)?(e=fa(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=fo(e,r);break;case"g":case"G":e=r!=null?ko(e,r):ko(e);break;case"e":case"E":e=r!=null?To(e,r):To(e);break;case"x":e=$o(e);break;case"X":e=$o(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=$d(e):e=Ot(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=$i(e,n-o.length,l,a),e=o+e):e=$i(o+e,n,l,a)}return e}function Od(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,c,p,m]=l[0];let h=c;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+=z0(u,d,h,p,m),a.splice(0,1),l.splice(0,1)}return l.length===0?(s+=a[0],e(s)):Od(e,a,l,s,i)}}function Y0(e){return t=>{ci.lastIndex=0;const n=[],r=[];let i=0,o=ci.exec(e);for(;o;){const s=o.index+(o[1]||"").length;n.push(e.substring(i,s).replace(/%%/g,"%")),r.push(o),i=ci.lastIndex,ci.lastIndex-=1,o=ci.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(i).replace(/%%/g,"%")),Od(t,n,r))}}function Fd(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(G0,(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(Td(u))switch(a=a==null?null:parseInt(a,10),s){case"f":case"F":a=a??2,u=fo(u,a);break;case"g":case"G":u=a!=null?ko(u,a):ko(u);break;case"e":case"E":u=a!=null?To(u,a):To(u);break;case"p":case"P":a=a??2,u=fo(fa(u,100),a)+" %";break;case"d":case"D":u=a!=null?Os(String(u),a,"0"):String(u);break;case"x":case"X":u=a!=null?Os($o(u),a,"0"):$o(u),s==="X"&&(u=u.toUpperCase());break;default:if(l){let d="";u=l.replace(/([0#,]+)(\.[0#]+)?/,(c,p,m)=>{Id(u,0)&&(u=fa(u,-1),d="-"),m=m==null?"":m.substring(1),u=fo(u,Math.max(m.length,0));let[h,g]=u.split(".");g||(g="");const w=p.replace(/,/g,"").replace(/^#+/,"").length;h=Os(h,w,"0");const C=m.replace(/#+$/,"").length;if(C>g.length?g=Z0(g,C,"0"):C<g.length&&(g=g.substring(0,C)+g.substring(C).replace(/0+$/,"")),p.indexOf(",")>0){const S=h.length%3,E=Math.floor(h.length/3);let $=S>0?h.substr(0,S)+(E>0?",":""):"";for(let P=0;P<E;P++)$+=h.substr(S+P*3,3)+(P<E-1?",":"");h=$}return g.length>0?h+"."+g:h}),u=d+u}}else u instanceof Date?u=$d(u,l||s):u=Ot(u);return o=parseInt((o||" ").substring(1),10),isNaN(o)||(u=$i(String(u),Math.abs(o)," ",o<0)),u})}function el(e){return typeof e!="string"||e.length===0}function ts(e){return typeof e!="string"||/^\s*$/.test(e)}function St(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function $i(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 Os(e,t,n){return $i(e,t,n)}function Z0(e,t,n){return $i(e,t,n,!0)}function K0(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(Md),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 c=o?e.substring(u).trim():e.substring(u);(!i||c.length>0)&&s.push(c),l=!1}else{const c=o?e.substring(u,d.index).trim():e.substring(u,d.index);(!i||c.length>0)&&(n!=null&&s.length+1===n?(s.push(o?e.substring(u).trim():e.substring(u)),l=!1):s.push(c)),u=a.lastIndex}}while(l);return s}function X0(e,...t){if(t.length===0)return e.trim();const n="["+Md(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}class rr{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return Vt(this.value)}Equals(t){return t==null?!1:J(this.value,t instanceof rr?t.value:t)}CompareTo(t){return t==null?1:ut(this.value,t instanceof rr?t.value:t)}}function L(e){if(e==null)throw new Error("Option has no value");return e instanceof rr?e.value:e}function ho(e){return e instanceof rr?e.value:e}function ht(e){return e==null||e instanceof rr?new rr(e):e}function Pd(e){return e==null?null:L(e)}function ns(e){return e==null?[]:[L(e)]}function rn(e,t){return e!=null?L(e):t}function Ct(e,t){return t!=null?ht(e(L(t))):void 0}function Q0(e,t){return t!=null?e(L(t)):void 0}class J0{constructor(t,n,r,i){this.declaringType=t,this.tag=n,this.name=r,this.fields=i}}class Ut{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 lt(this)}GetHashCode(){return Rd(this)}Equals(t){return ha(this,t)}}function fn(e){return e.generics!=null?e.generics:[]}function Rd(e){const t=Vn(e.fullname),n=fn(e).map(Rd);return Fi([t,...n])}function ha(e,t){return e.fullname===""?t.fullname===""&&ca(Do(e),Do(t),([n,r],[i,o])=>n===i&&ha(r,o)):e.fullname===t.fullname&&ca(fn(e),fn(t),ha)}function ir(e,t,n,r){return new Ut(e,t,n,r)}function hr(e,t,n,r){return new Ut(e,t,n,void 0,r)}function Ld(e,t,n,r){const i=new Ut(e,t,n,void 0,void 0,()=>{const o=n.prototype.cases();return r().map((s,a)=>new J0(i,a,o[a],s))});return i}function $r(e){return new Ut("Microsoft.FSharp.Core.FSharpOption`1",[e])}function Mo(e){return new Ut("Microsoft.FSharp.Collections.FSharpList`1",[e])}const ep=new Ut("System.Object"),Io=new Ut("System.String"),Ht=new Ut("System.Int32");function tl(e){if(Array.isArray(e))return e[0];if(e instanceof Ut){const t=rs(e);if(t!=null)return tl(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function lt(e){const t=rs(e);return t!=null?lt(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>lt(n)).join(",")+"]"}function tp(e){return rs(e)!=null}function rs(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function np(e){return e.generics!=null&&e.generics.length>0}function Hd(e){return e.enumCases!=null&&e.enumCases.length>0}function rp(e){return e.generics==null?e:new Ut(e.fullname,e.generics.map(()=>ep))}function ip(e){var t;return(t=e.generics)==null?void 0:t[0]}function yr(e){if(Hd(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function op(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 vr(e,t){const n=parseInt(t,10);return op(e,isNaN(n)?t:n)[1]}function sp(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Do(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function ap(e){if(Vd(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function lp(e){return e instanceof Ut?e.cases!=null:e instanceof z}function up(e){return e instanceof Ut?e.fields!=null:e instanceof Me}function Vd(e){return e.fullname.startsWith("System.Tuple")}function cp(e){return e.fields==null?[]:e.fields}function dp(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 fp(e,t){const n=Do(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 hp(e,t){return e}const jd="Collection was empty.",mp="The input must be non-negative.",Bd="The input sequence has an insufficient number of elements.";function Vr(e,t){return new Array(t)}function wu(e,t){return e>t?e:t}function yu(e,t){return e<t?e:t}function pp(e,t,n){const r=e.length|0,i=t.length|0,o=Vr(n,r+i);for(let s=0;s<=r-1;s++)At(o,s,Ae(s,e));for(let s=0;s<=i-1;s++)At(o,s+r,Ae(s,t));return o}function is(e,t,n,r){const i=t|0;return e.fill(r,i,i+n)}function gp(e){if(e.length===0)throw new Error("The input array was empty\\nParameter name: array");return Ae(e.length-1,e)}function Ud(e,t,n){const r=t.length|0,i=Vr(n,r);for(let o=0;o<=r-1;o++)At(i,o,e(o,Ae(o,t)));return i}function et(e,t,n){const r=t.length|0,i=Vr(n,r);for(let o=0;o<=r-1;o++)At(i,o,e(Ae(o,t)));return i}function Oo(e,t){const n=Array.isArray(e)?e:Array.from(e);switch(n.length|0){case 0:return Vr(t,0);case 1:return Ae(0,n);default:{let i=0,o=0;for(let a=0;a<=n.length-1;a++){const l=Ae(a,n);o=o+l.length|0}const s=Vr(t,o);for(let a=0;a<=n.length-1;a++){const l=Ae(a,n);for(let u=0;u<=l.length-1;u++)At(s,i,Ae(u,l)),i=i+1|0}return s}}}function wp(e,t,n,r,i){const o=rn(n,0)|0,s=rn(Ct(l=>o+l,r),e.length)|0;return(l=>{e:for(;;){const u=l;if(u>=s)return-1;if(i.Equals(t,Ae(u,e)))return u|0;l=u+1;continue e}})(o)|0}function Kr(e,t,n){return wp(t,e,void 0,void 0,n)>=0}function yp(e,t){const n=Vr(t,1);return At(n,0,e),n}function vp(e){return e.slice().reverse()}function os(e,t){return t.find(e)}function Pt(e,t,n){const r=[];for(let i=0;i<=t.length-1;i++){const o=e(Ae(i,t));if(o!=null){const s=L(o);r.push(s)}}return J(n,Se())?r:et(i=>i,r,n)}function ss(e,t,n){const r=e;return n.reduce(r,t)}function bp(e,t){const n=e.slice();return n.sort((r,i)=>t.Compare(r,i)),n}function _p(e,t,n){const r=t.slice();return r.sort((i,o)=>n.Compare(e(i),e(o))),r}function Ri(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(Ae(r,t),Ae(r,n)),r=r+1|0;return i}}function vu(e){if(e.length===0)throw new Error("The input array was empty\\nParameter name: array");return Ae(0,e)}function xp(e){if(e.length===0)throw new Error("Not enough elements\\nParameter name: array");return e.slice(1)}function Ae(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 At(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 Wd(e,t){if(!(e<0||e>=t.length))return ht(t[e])}function Gd(e,t,n){return t.reduceRight((r,i)=>e(i,r),n)}class bt extends Me{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+St("; ",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=L(l),c=L(u);if(J(s.head,a.head)){i=d,o=c;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=L(u);if(s>18)return a|0;r=s+1,i=(a<<1)+Vt(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=L(l),c=L(u),p=ut(s.head,a.head)|0;if(p===0){i=d,o=c;continue e}else return p|0}else return 1;else return u!=null?-1:0}})(this,t)|0}GetEnumerator(){return Sp(this)}[Symbol.iterator](){return Yr(ke(this))}"System.Collections.IEnumerable.GetEnumerator"(){return ke(this)}}class Cp{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=L(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 Sp(e){return new Cp(e)}function it(){return new bt(Se(),void 0)}function Li(e,t){return new bt(e,t)}function Hi(e){return e.tail==null}function qd(e){return((n,r)=>{e:for(;;){const i=n,s=r.tail;if(s!=null){n=i+1,r=L(s);continue e}else return i|0}})(0,e)|0}function nl(e){if(e.tail!=null)return e.head;throw new Error(jd+"\\nParameter name: list")}function jt(e){const t=e.tail;if(t!=null)return L(t);throw new Error(jd+"\\nParameter name: list")}function ot(){return it()}function Rt(e,t){return Li(e,t)}function ge(e){return Li(e,it())}function Ce(e){return Hi(e)}function rl(e){return qd(e)}function re(e){return nl(e)}function xe(e){return jt(e)}function mr(e){const t=qd(e)|0,n=is(new Array(t),0,t,null);return((i,o)=>{e:for(;;){const s=i,a=o;if(!Hi(a)){At(n,s,nl(a)),i=s+1,o=jt(a);continue e}break}})(0,e),n}function Sn(e,t,n){let r=t,i=n;for(;!Hi(i);)r=e(r,re(i)),i=jt(i);return r}function il(e){return Sn((t,n)=>Li(n,t),it(),e)}function Ep(e,t,n){return Gd(e,mr(t),n)}function Fo(e,t){Sn((n,r)=>{e(r)},void 0,t)}function Be(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=Li(Ae(r,e),n);return n}function v(e){return Be(e,it())}function Ap(e){let t,n;if(Qt(e))return v(e);if(e instanceof bt)return e;{const r=it();let i=r;const o=ke(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{Te(o)}const s=i,a=it();return s.tail=a,jt(r)}}function as(e,t){return Sn((n,r)=>Li(r,n),t,il(e))}function Vi(e,t){const n=it(),r=Sn((o,s)=>{const a=new bt(e(s),void 0);return o.tail=a,a},n,t),i=it();return r.tail=i,jt(n)}function zd(e,t){const n=it(),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=it();return r.tail=i,jt(n)}function kp(e,t){const n=it(),r=it(),i=n,o=Sn((l,u)=>{let d,c;const p=l[0],m=l[1];return e(u)?[(d=new bt(u,void 0),p.tail=d,d),m]:[p,(c=new bt(u,void 0),m.tail=c,c)]},[i,r],t),s=it();o[0].tail=s;const a=it();return o[1].tail=a,[jt(i),jt(r)]}function Tp(e,t){const n=it(),r=Sn((o,s)=>{const a=e(s);if(a==null)return o;{const l=new bt(L(a),void 0);return o.tail=l,l}},n,t),i=it();return r.tail=i,jt(n)}function Yd(e,t){const n=mr(t);return n.sort(e),v(n)}function $p(e,t,n){return Yd((r,i)=>n.Compare(e(r),e(i)),t)}function Np(e,t,n){return Yd((r,i)=>n.Compare(e(r),e(i))*-1,t)}function Mp(e,t){e:for(;;){const n=e,r=t;if(n<=0)return r;if(Hi(r))throw new Error(Bd+"\\nParameter name: list");e=n-1,t=jt(r);continue e}}function Ip(e,t){if(e<0)throw new Error(mp+"\\nParameter name: count");const n=(s,a,l)=>{let u;e:for(;;){const d=s,c=a,p=l;if(d<=0)return c;if(Hi(p))throw new Error(Bd+"\\nParameter name: list");s=d-1,a=(u=new bt(nl(p),void 0),c.tail=u,u),l=jt(p);continue e}},r=it(),i=n(e,r,t),o=it();return i.tail=o,jt(r)}const x=W;function Dp(e){const t=v([f("style",{children:[Xa]}),f("div",{className:"text-blue-500",children:`Welcome to apollo-import-workspace-app, with backend url ${e.backendUrl}`})]);return f("div",{children:x.Children.toArray(Array.from(t))})}class Op{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 ls extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,ls.prototype)}}class ol{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>ol.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function gn(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new ls);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(Ao(n))}});else try{e(t)}catch(n){t.onError(Ao(n))}}}function Fp(e,t){return gn(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(i){n.onError(Ao(i))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function Pp(e){return gn(t=>t.onSuccess(e))}class Rp{Bind(t,n){return Fp(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return gn(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 Pp(t)}ReturnFrom(t){return t}TryFinally(t,n){return gn(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 gn(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:i=>{try{n(i)(r)}catch(o){r.onError(Ao(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 gn(t=>t.onSuccess(void 0))}}const wt=new Rp;function Lp(e){return new Zd(0,[e])}function Hp(e){return new Zd(1,[e])}class Zd extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function Vp(e){return Lp(e)}function jp(e){return Hp(e)}function Fs(e){}const Bp=new Op;function Up(e){return gn(t=>{e({onSuccess:n=>t.onSuccess(Vp(n)),onError:n=>t.onSuccess(jp(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function Wp(e){return gn(t=>e([t.onSuccess,t.onError,t.onCancel]))}function Gp(e){return gn(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new ls)})})}function qp(e,t){return zp(e,t)}function Kd(e,t){return qp(e,t)}function zp(e,t,n,r,i){typeof t!="function"&&(i=t,t=void 0);const o=new ol;e({onSuccess:t||Fs,onError:Fs,onCancel:Fs,cancelToken:i||Bp,trampoline:o})}class Xd extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class Yp extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class sl extends Me{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 Cr extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Qd extends Me{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}}function Zp(e){throw new Error(e)}const Kp="Enumeration already finished.",Xp="Enumeration has not started. Call MoveNext.",Jd="The input sequence has an insufficient number of elements.",Qp="Reset is not supported on this enumerator.";function Jp(){throw new Error(Qp)}function al(){throw new Error(Xp)}function ma(){throw new Error(Kp)}class eg{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const i=ke(t);try{for(;n<4&&i["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+Ot(i["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{Te(i)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Yr(ke(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function tg(e){return new eg(e)}class ng{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"(){Jp()}Dispose(){this.dispose()}}function us(e,t,n){return new ng(e,t,n)}function rg(e){let t,n,r=!1,i=!1,o;const s=()=>{if(i=!0,n!=null){const a=L(n);try{Te(a)}finally{n=void 0}}if(t!=null){const a=L(t);try{Te(a)}finally{t=void 0}}};return us(()=>(r?i&&ma():al(),o!=null?L(o):ma()),()=>{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 c=L(d);if(c["System.Collections.IEnumerator.MoveNext"]())o=ht(c["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{Te(c)}finally{n=void 0}}else{const c=L(u);c["System.Collections.IEnumerator.MoveNext"]()?n=(a=c["System.Collections.Generic.IEnumerator`1.get_Current"](),ke(a)):(s(),l=!1)}else t=ke(e)}return L(l)}},()=>{i||s()})}function ig(e,t){return us(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{Te(t)}finally{}})}function ef(e,t,n){let r=!1,i,o=ht(e());const s=()=>{if(o!=null){const l=L(o);try{n(l)}finally{o=void 0}}},a=()=>{try{s()}finally{i=void 0}};return us(()=>(r||al(),i!=null?L(i):ma()),()=>{if(r||(r=!0),o!=null){const l=L(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 og(e,t){let n,r=t;return us(()=>{if(n!=null){const i=L(n)[0];return L(n)[1],i}else return al()},()=>(n=e(r),n!=null?(L(n)[0],r=L(n)[1],!0):!1),()=>{})}function sg(e,t){t==null&&Zp(e)}function Xr(e){return tg(e)}function _n(e){return sg("source",e),ke(e)}function O(e){return Xr(()=>ke(e()))}function cs(e){return Xr(()=>rg(e))}function ag(e,t){return Xr(()=>og(e,t))}function Nr(){return O(()=>new Array(0))}function M(e){return O(()=>yp(e))}function Fn(e){return e instanceof bt?mr(e):Array.from(e)}function he(e){return Qt(e)?v(e):e instanceof bt?e:Ap(e)}function tf(e,t,n){return Xr(()=>ef(e,t,n))}function lg(e,t,n){return Xr(()=>{let r=-1;return ef(e,i=>(r=r+1|0,t(r,i)),n)})}function te(e,t){return cs([e,t])}function ug(e,t){return tf(()=>_n(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=>{Te(n)})}function cg(e,t,n){const r=_n(t);try{const i=_n(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{Te(i)}}finally{Te(r)}}function br(e,t,n){const r=_n(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{Te(r)}}function ll(e,t){return ug(n=>{if(e(n))return ht(n)},t)}function ul(e,t,n){const r=_n(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{Te(r)}}function pr(e,t){ul((n,r)=>{e(r)},void 0,t)}function nf(e,t){ul((n,r)=>(e(n,r),n+1|0),0,t)}function dg(e){if(Qt(e))return e.length|0;if(e instanceof bt)return rl(e)|0;{const t=_n(e);try{let n=0;for(;t["System.Collections.IEnumerator.MoveNext"]();)n=n+1|0;return n|0}finally{Te(t)}}}function Ze(e,t){return tf(()=>_n(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?ht(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{Te(n)})}function fg(e){return O(()=>vp(Fn(e)))}function hg(e,t){return Xr(()=>{const n=_n(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Jd+"\\nParameter name: source");return ig(()=>{},n)}catch(r){throw Te(n),r}})}function mg(e,t){return lg(()=>_n(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return ht(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(Jd+"\\nParameter name: source")}else return},n=>{Te(n)})}function ds(e,t){return O(()=>cs(Ze(e,t)))}class rf{constructor(t,n){this.k=t,this.v=n}}function jr(e,t){return new rf(e,t)}function Ye(e){return e.k}function Je(e){return e.v}class Qe extends rf{constructor(t,n,r,i,o){super(t,n),this.left=r,this.right=i,this.h=o|0}}function tr(e,t,n,r,i){return new Qe(e,t,n,r,i)}function We(e){return e.left}function Ge(e){return e.right}function In(e){return e.h}function of(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=L(r);if(i instanceof Qe){const o=i;e=of(n+1,We(o)),t=Ge(o);continue e}else return n+1|0}else return n|0}}function sf(e){return of(0,e)}function $t(e,t,n,r){let i,o,s;const a=e;if(a!=null){const c=L(a);s=c instanceof Qe?(i=c,In(i)):1}else s=0;let l;const u=r;if(u!=null){const c=L(u);l=c instanceof Qe?(o=c,In(o)):1}else l=0;const d=(s<l?l:s)|0;return d===0?jr(t,n):tr(t,n,e,r,d+1)}function Po(e,t,n,r){let i,o,s,a,l,u,d,c,p;const m=e;if(m!=null){const w=L(m);p=w instanceof Qe?(i=w,In(i)):1}else p=0;let h;const g=r;if(g!=null){const w=L(g);h=w instanceof Qe?(o=w,In(o)):1}else h=0;if(h>p+2){const w=L(r);if(w instanceof Qe){const C=w;if(s=We(C),(s!=null?(a=L(s),a instanceof Qe?(l=a,In(l)):1):0)>p+1){const S=L(We(C));if(S instanceof Qe){const E=S;return $t($t(e,t,n,We(E)),Ye(E),Je(E),$t(Ge(E),Ye(C),Je(C),Ge(C)))}else throw new Error("internal error: Map.rebalance")}else return $t($t(e,t,n,We(C)),Ye(C),Je(C),Ge(C))}else throw new Error("internal error: Map.rebalance")}else if(p>h+2){const w=L(e);if(w instanceof Qe){const C=w;if(u=Ge(C),(u!=null?(d=L(u),d instanceof Qe?(c=d,In(c)):1):0)>h+1){const S=L(Ge(C));if(S instanceof Qe){const E=S;return $t($t(We(C),Ye(C),Je(C),We(E)),Ye(E),Je(E),$t(Ge(E),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return $t(We(C),Ye(C),Je(C),$t(Ge(C),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return $t(e,t,n,r)}function Br(e,t,n,r){if(r!=null){const i=L(r),o=e.Compare(t,Ye(i))|0;if(i instanceof Qe){const s=i;return o<0?Po(Br(e,t,n,We(s)),Ye(s),Je(s),Ge(s)):o===0?tr(t,n,We(s),Ge(s),In(s)):Po(We(s),Ye(s),Je(s),Br(e,t,n,Ge(s)))}else return o<0?tr(t,n,void 0,r,2):o===0?jr(t,n):tr(t,n,r,void 0,2)}else return jr(t,n)}function af(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=L(o),a=r.Compare(i,Ye(s))|0;if(a===0)return ht(Je(s));if(s instanceof Qe){const l=s;e=r,t=i,n=a<0?We(l):Ge(l);continue e}else return}else return}}function pg(e,t,n){const r=af(e,t,n);if(r==null)throw new Error;return L(r)}function lf(e){if(e!=null){const t=L(e);if(t instanceof Qe){const n=t;if(We(n)==null)return[Ye(n),Je(n),Ge(n)];{const r=lf(We(n));return[r[0],r[1],$t(r[2],Ye(n),Je(n),Ge(n))]}}else return[Ye(t),Je(t),void 0]}else throw new Error("internal error: Map.spliceOutSuccessor")}function pa(e,t,n,r){if(r!=null){const i=L(r);if(i instanceof Qe){const o=i,s=e.Compare(t,Ye(o))|0;if(s<0)return Po(pa(e,t,n,We(o)),Ye(o),Je(o),Ge(o));if(s===0){const a=n(ht(Je(o)));if(a!=null)return tr(t,L(a),We(o),Ge(o),In(o));if(We(o)==null)return Ge(o);if(Ge(o)==null)return We(o);{const l=lf(Ge(o));return $t(We(o),l[0],l[1],l[2])}}else return Po(We(o),Ye(o),Je(o),pa(e,t,n,Ge(o)))}else{const o=e.Compare(t,Ye(i))|0;if(o<0){const s=n(void 0);return s!=null?tr(t,L(s),void 0,r,2):r}else if(o===0){const s=n(ht(Je(i)));return s!=null?jr(t,L(s)):void 0}else{const s=n(void 0);return s!=null?tr(t,L(s),r,void 0,2):r}}}else{const i=n(void 0);return i!=null?jr(t,L(i)):r}}function gg(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=L(o),a=r.Compare(i,Ye(s))|0;if(s instanceof Qe){const l=s;if(a<0){e=r,t=i,n=We(l);continue e}else{if(a===0)return!0;e=r,t=i,n=Ge(l);continue e}}else return a===0}else return!1}}function uf(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=L(r);if(i instanceof Qe){const o=i;uf(n,We(o)),n(Ye(o),Je(o)),e=n,t=Ge(o);continue e}else n(Ye(i),Je(i))}break}}function wg(e,t){uf(e,t)}function cf(e,t,n){let r=n;wg((i,o)=>{At(t,r,[i,o]),r=r+1|0},e)}function yg(e){const t=sf(e)|0,n=is(new Array(t),0,t,[null,null]);return cf(e,n,0),n}function vg(e,t){return Sn((n,r)=>Br(e,r[0],r[1],n),void 0,t)}function bg(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=Br(r,s[0],s[1],i),n=o;continue e}else return i}}function _g(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const i=Ae(r,t);n=Br(e,i[0],i[1],n)}return n}function df(e,t){if(Qt(t))return _g(e,t);if(t instanceof bt)return vg(e,t);{const n=ke(t);try{return bg(e,void 0,n)}finally{Te(n)}}}class xg extends Me{constructor(t,n){super(),this.stack=t,this.started=n}}function ff(e){e:for(;;){const t=e;if(Ce(t))return ot();{const n=xe(t),r=re(t);if(r!=null){const i=L(r);if(i instanceof Qe){const o=i;e=Be([We(o),jr(Ye(o),Je(o)),Ge(o)],n);continue e}else return t}else{e=n;continue e}}}}function bu(e){return new xg(ff(ge(e)),!1)}function Cg(){throw new Error("enumeration not started")}function Sg(){throw new Error("enumeration already finished")}function _u(e){if(e.started){const t=e.stack;if(Ce(t))return Sg();if(re(t)!=null){const n=L(re(t));if(n instanceof Qe)throw new Error("Please report error: Map iterator, unexpected stack for current");return[Ye(n),Je(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return Cg()}function Eg(e){if(e.started){const t=e.stack;if(Ce(t))return!1;if(re(t)!=null){if(L(re(t))instanceof Qe)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=ff(xe(t)),!Ce(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!Ce(e.stack)}function xu(e){let t=bu(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return _u(t)},"System.Collections.IEnumerator.get_Current"(){return _u(t)},"System.Collections.IEnumerator.MoveNext"(){return Eg(t)},"System.Collections.IEnumerator.Reset"(){t=bu(e)},Dispose(){}}}class Ro{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return $g(this)|0}Equals(t){const n=this;if(t instanceof Ro){const r=t,i=ke(n);try{const o=ke(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 J(l[0],u[0])&&J(l[1],u[1])?s():!1}else return!0;else return!1};return s()}finally{Te(o)}}finally{Te(i)}}else return!1}toString(){return"map ["+St("; ",Ze(n=>Fd("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return xu(this.tree)}[Symbol.iterator](){return Yr(ke(this))}"System.Collections.IEnumerable.GetEnumerator"(){return xu(this.tree)}CompareTo(t){const n=this;if(t instanceof Ro)return cg((i,o)=>{const s=n.comparer.Compare(i[0],o[0])|0;return(s!==0?s:ut(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 Cu(n,t[0])&&J(or(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){cf(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Ps(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Ps(this)|0}get size(){return Ps(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return Ze(n=>[n[0],n[1]],this)}get(t){return or(this,t)}has(t){return Cu(this,t)}keys(){return Ze(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return Ze(n=>n[1],this)}forEach(t,n){const r=this;pr(i=>{t(i[1],i[0],r)},r)}}function ji(e,t){return new Ro(e,t)}function Ag(e){return ji(e,void 0)}function kg(e,t,n){return ji(e.comparer,Br(e.comparer,t,n,e.tree))}function Tg(e,t,n){return ji(e.comparer,pa(e.comparer,t,n,e.tree))}function or(e,t){return pg(e.comparer,t,e.tree)}function Ps(e){return sf(e.tree)}function Cu(e,t){return gg(e.comparer,t,e.tree)}function Su(e){return et(t=>t[1],yg(e.tree))}function bi(e,t){return af(e.comparer,t,e.tree)}function $g(e){const t=(i,o)=>(i<<1)+o+631;let n=0;const r=ke(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const i=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,Vt(i[0]))|0,n=t(n,Vt(i[1]))|0}}finally{Te(r)}return n|0}function Ng(e,t,n){return kg(n,e,t)}function no(e,t,n){return Tg(n,e,t)}function Mg(e,t){return bi(t,e)}function Ig(e){return Ze(t=>[t[0],t[1]],e)}function mo(e,t){return ji(t,df(t,e))}function Dg(e,t){return ji(t,df(t,e))}function hf(e){return Ag(e)}const Wn=new sl("",new Xd(0,[]),ot(),!1,void 0,void 0,void 0,new Yp(0,[]));new Qd(0,"","","",hf({Compare:Jo}),new Cr(0,[""]));function Eu(e,t){return el(t)?new Array(0):K0(t,[e],void 0,0)}function Og(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 Fg(e){return new sl(e,Wn.method,Wn.headers,Wn.withCredentials,Wn.overridenMimeType,Wn.overridenResponseType,Wn.timeout,Wn.content)}function Pg(e,t){return new sl(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Rg(e){return Wp(t=>{const n=new XMLHttpRequest;n.open(Og(e.method),e.url),n.onreadystatechange=()=>{let l,u,d,c,p,m,h;n.readyState===4&&t[0]((l=(u=n.responseType,u===""||u==="text"?n.responseText:""),d=n.status|0,c=n.responseType,p=(m=n.responseType,m===""?new Cr(0,[n.responseText]):m==="text"?new Cr(0,[n.responseText]):m==="arraybuffer"?new Cr(2,[n.response]):m==="blob"?new Cr(1,[n.response]):new Cr(3,[n.response])),h=Dg(Pt(g=>{const w=v(Eu(":",g));if(!Ce(w))return[re(w).toLocaleLowerCase(),St(":",xe(w)).trim()]},Eu(`\r
|
|
4
|
+
`,n.getAllResponseHeaders())),{Compare:Jo}),new Qd(d,l,c,n.responseURL,h,p)))};const r=ke(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{Te(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(ht(a.fields[0]));break}case 3:{n.send(ht(a.fields[0]));break}case 2:{n.send(ht(a.fields[0]));break}default:n.send()}})}function Lg(e){return new T(0,[e])}function mf(e){return new T(1,[e])}class T extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function xn(e,t){return t.tag===0?Lg(e(t.fields[0])):mf(t.fields[0])}function Hg(e,t){return t.tag===0?e(t.fields[0]):mf(t.fields[0])}const Kn={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function Rs(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 Vg(e,t){switch(t){case Kn.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case Kn.SnakeCase:return Rs(e,"_");case Kn.SnakeCaseAllCaps:return Rs(e,"_").toUpperCase();case Kn.KebabCase:return Rs(e,"-");case Kn.None:default:return e}}function gr(e,t=Kn.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=Vg(s,a),n[s]=l}for(let s of e){let a=Kn.None;if(s==null&&i(s),s instanceof z){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 cl(e,t,n){return e.has(t)?(n.contents=e.get(t),!0):!1}function pf(e,t){return t.has(e)?!1:(t.add(e),!0)}function jg(e,t,n){if(e.has(t))throw new Error("An item with the same key has already been added. Key: "+t);e.set(t,n)}function Pn(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class X extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class gf extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function Au(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Bg(e,t){switch(e.tag){case 2:return Ja(Au(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Au(t)}}const Ug=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,ku=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Wg=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Gg(e){function t(r){return r.replace(ku,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Ug.test(n))return X0(n,"{","}","(",")");if(ku.test(n))return t(n);if(Wg.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 qg(e,t){try{return t.contents=Gg(e),!0}catch{return!1}}var ga;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(ga||(ga={}));function zg(e,t){const[,n,r,i]=e;return{sign:n||"",prefix:r||"",digits:i,radix:t}}function Tu(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 Yg(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 Zg(e,t){if(t&ga.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 Kg(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||Zg(o,t),!Yg(n).test(s))return zg(i,n)}return null}function Xg(e,t,n,r,i){const o=Kg(e,t,i);if(o!=null){let s=Number.parseInt(o.sign+o.digits,o.radix);if(!Number.isNaN(s)){const[a,l]=Tu(!0,r);!n&&o.radix!==10&&s>=a&&s<=l&&(s=s<<32-r>>32-r);const[u,d]=Tu(n,r);if(s>=u&&s<=d)return s}}throw new Error(`The input string ${e} was not in a correct format.`)}function Qr(e,t,n,r,i){try{return i.contents=Xg(e,t,n,r),!0}catch{return!1}}function wf(e,t){Qg(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function Qg(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 Jg(){return wf(-621355968e5,0)}function e1(e){const[t,n]=Nd(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return wf(t.getTime(),r)}function t1(e,t){try{return t.contents=e1(e),!0}catch{return!1}}function $u(e=0,t=0,n=0,r=0,i=0){switch(arguments.length){case 1:return n1(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 n1(e){return Number(BigInt(e)/10000n)}function r1(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 $u(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*$u(i,l,u,s,o)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function i1(e,t){try{return t.contents=r1(e),!0}catch{return!1}}class yf{constructor(t,n){const r=new mt(Se());this.comparer=n,r.contents=this,this.hashMap=new Map([]),this["init@9"]=1;const i=ke(t);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const o=i["System.Collections.Generic.IEnumerator`1.get_Current"]();Ls(r.contents,o)}}finally{Te(i)}}get[Symbol.toStringTag](){return"HashSet"}toJSON(){const t=this;return Array.from(t)}"System.Collections.IEnumerable.GetEnumerator"(){return ke(this)}GetEnumerator(){return ke(cs(this.hashMap.values()))}[Symbol.iterator](){return Yr(ke(this))}"System.Collections.Generic.ICollection`1.Add2B595"(t){Ls(this,t)}"System.Collections.Generic.ICollection`1.Clear"(){Nu(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(t){return Iu(this,t)}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){nf((i,o)=>{At(t,n+i,o)},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return Mu(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(t){return Du(this,t)}get size(){return Mu(this)|0}add(t){const n=this;return Ls(n,t),n}clear(){Nu(this)}delete(t){return Du(this,t)}has(t){return Iu(this,t)}keys(){return Ze(n=>n,this)}values(){return Ze(n=>n,this)}entries(){return Ze(n=>[n,n],this)}forEach(t,n){const r=this;pr(i=>{t(i,i,r)},r)}}function dl(e,t){const n=e.comparer.GetHashCode(t)|0;let r,i=Se();return r=[cl(e.hashMap,n,new mt(()=>i,o=>{i=o})),i],r[0]?[!0,n,r[1].findIndex(o=>e.comparer.Equals(t,o))]:[!1,n,-1]}function Nu(e){e.hashMap.clear()}function Mu(e){let t=0,n=ke(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{Te(n)}return t|0}function Ls(e,t){const n=dl(e,t);return n[0]?n[2]>-1?!1:(Pn(e.hashMap,n[1]).push(t),!0):(e.hashMap.set(n[1],[t]),!0)}function Iu(e,t){const n=dl(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return!0;default:return!1}}function Du(e,t){const n=dl(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return Pn(e.hashMap,n[1]).splice(n[2],1),!0;default:return!1}}class vf{constructor(t){this.k=t}}function Nt(e){return new vf(e)}function ue(e){return e.k}class Ee extends vf{constructor(t,n,r,i){super(t),this.left=n,this.right=r,this.h=i|0}}function Mt(e,t,n,r){return new Ee(e,t,n,r)}function Re(e){return e.left}function Oe(e){return e.right}function kr(e){return e.h}function bf(e,t){e:for(;;){const n=e,r=t;if(n!=null){const i=L(n);if(i instanceof Ee){const o=i;e=Re(o),t=bf(Oe(o),r+1);continue e}else return r+1|0}else return r|0}}function o1(e){return bf(e,0)}function Gt(e,t,n){let r,i,o;const s=e;if(s!=null){const d=L(s);o=d instanceof Ee?(r=d,kr(r)):1}else o=0;let a;const l=n;if(l!=null){const d=L(l);a=d instanceof Ee?(i=d,kr(i)):1}else a=0;const u=(o<a?a:o)|0;return u===0?Nt(t):Mt(t,e,n,u+1)}function Ou(e,t,n){let r,i,o,s,a,l,u,d,c;const p=e;if(p!=null){const g=L(p);c=g instanceof Ee?(r=g,kr(r)):1}else c=0;let m;const h=n;if(h!=null){const g=L(h);m=g instanceof Ee?(i=g,kr(i)):1}else m=0;if(m>c+2){const g=L(n);if(g instanceof Ee){const w=g;if(o=Re(w),(o!=null?(s=L(o),s instanceof Ee?(a=s,kr(a)):1):0)>c+1){const C=L(Re(w));if(C instanceof Ee){const S=C;return Gt(Gt(e,t,Re(S)),ue(S),Gt(Oe(S),ue(w),Oe(w)))}else throw new Error("internal error: Set.rebalance")}else return Gt(Gt(e,t,Re(w)),ue(w),Oe(w))}else throw new Error("internal error: Set.rebalance")}else if(c>m+2){const g=L(e);if(g instanceof Ee){const w=g;if(l=Oe(w),(l!=null?(u=L(l),u instanceof Ee?(d=u,kr(d)):1):0)>m+1){const C=L(Oe(w));if(C instanceof Ee){const S=C;return Gt(Gt(Re(w),ue(w),Re(S)),ue(S),Gt(Oe(S),t,n))}else throw new Error("internal error: Set.rebalance")}else return Gt(Re(w),ue(w),Gt(Oe(w),t,n))}else throw new Error("internal error: Set.rebalance")}else return Gt(e,t,n)}function Ur(e,t,n){if(n!=null){const r=L(n),i=e.Compare(t,ue(r))|0;if(r instanceof Ee){const o=r;return i<0?Ou(Ur(e,t,Re(o)),ue(o),Oe(o)):i===0?n:Ou(Re(o),ue(o),Ur(e,t,Oe(o)))}else{const o=e.Compare(t,ue(r))|0;return o<0?Mt(t,void 0,n,2):o===0?n:Mt(t,n,void 0,2)}}else return Nt(t)}function _f(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=L(o),a=r.Compare(i,ue(s))|0;if(s instanceof Ee){const l=s;if(a<0){e=r,t=i,n=Re(l);continue e}else{if(a===0)return!0;e=r,t=i,n=Oe(l);continue e}}else return a===0}else return!1}}function xf(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=L(r);if(i instanceof Ee){const o=i;xf(n,Re(o)),n(ue(o)),e=n,t=Oe(o);continue e}else n(ue(i))}break}}class s1 extends Me{constructor(t,n){super(),this.stack=t,this.started=n}}function Cf(e){e:for(;;){const t=e;if(Ce(t))return ot();{const n=re(t),r=xe(t);if(n!=null){const i=L(n);if(i instanceof Ee){const o=i;e=Be([Re(o),Nt(ue(o)),Oe(o)],r);continue e}else return t}else{e=r;continue e}}}}function Fu(e){return new s1(Cf(ge(e)),!1)}function a1(){throw new Error("Enumeration not started")}function l1(){throw new Error("Enumeration already started")}function Pu(e){if(e.started){const t=e.stack;if(Ce(t))return l1();if(re(t)!=null){const n=L(re(t));return ue(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return a1()}function u1(e){if(e.started){const t=e.stack;if(Ce(t))return!1;if(re(t)!=null){if(L(re(t))instanceof Ee)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Cf(xe(t)),!Ce(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!Ce(e.stack)}function Ru(e){let t=Fu(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Pu(t)},"System.Collections.IEnumerator.get_Current"(){return Pu(t)},"System.Collections.IEnumerator.MoveNext"(){return u1(t)},"System.Collections.IEnumerator.Reset"(){t=Fu(e)},Dispose(){}}}function c1(e,t,n){e:for(;;){const r=e,i=t,o=n;if(Ce(i))return Ce(o)?0:-1;if(Ce(o))return 1;if(re(o)!=null)if(re(i)!=null){const s=L(re(i)),a=L(re(o));if(s instanceof Ee){const l=s;if(Re(l)==null)if(a instanceof Ee){const u=a;if(Re(u)==null){const d=r.Compare(ue(l),ue(u))|0;if(d!==0)return d|0;e=r,t=Rt(Oe(l),xe(i)),n=Rt(Oe(u),xe(o));continue e}else{let d,c,p,m,h;switch(Ce(i)?Ce(o)?d=2:re(o)!=null?(d=1,m=xe(o),h=L(re(o))):d=2:re(i)!=null?(d=0,c=xe(i),p=L(re(i))):Ce(o)?d=2:re(o)!=null?(d=1,m=xe(o),h=L(re(o))):d=2,d){case 0:if(p instanceof Ee){const g=p;e=r,t=Be([Re(g),Mt(ue(g),void 0,Oe(g),0)],c),n=o;continue e}else{e=r,t=Be([void 0,Nt(ue(p))],c),n=o;continue e}case 1:if(h instanceof Ee){const g=h;e=r,t=i,n=Be([Re(g),Mt(ue(g),void 0,Oe(g),0)],m);continue e}else{e=r,t=i,n=Be([void 0,Nt(ue(h))],m);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const u=r.Compare(ue(l),ue(a))|0;if(u!==0)return u|0;e=r,t=Rt(Oe(l),xe(i)),n=Rt(void 0,xe(o));continue e}else{let u,d,c,p,m;switch(Ce(i)?Ce(o)?u=2:re(o)!=null?(u=1,p=xe(o),m=L(re(o))):u=2:re(i)!=null?(u=0,d=xe(i),c=L(re(i))):Ce(o)?u=2:re(o)!=null?(u=1,p=xe(o),m=L(re(o))):u=2,u){case 0:if(c instanceof Ee){const h=c;e=r,t=Be([Re(h),Mt(ue(h),void 0,Oe(h),0)],d),n=o;continue e}else{e=r,t=Be([void 0,Nt(ue(c))],d),n=o;continue e}case 1:if(m instanceof Ee){const h=m;e=r,t=i,n=Be([Re(h),Mt(ue(h),void 0,Oe(h),0)],p);continue e}else{e=r,t=i,n=Be([void 0,Nt(ue(m))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof Ee){const l=a;if(Re(l)==null){const u=r.Compare(ue(s),ue(l))|0;if(u!==0)return u|0;e=r,t=Rt(void 0,xe(i)),n=Rt(Oe(l),xe(o));continue e}else{let u,d,c,p,m;switch(Ce(i)?Ce(o)?u=2:re(o)!=null?(u=1,p=xe(o),m=L(re(o))):u=2:re(i)!=null?(u=0,d=xe(i),c=L(re(i))):Ce(o)?u=2:re(o)!=null?(u=1,p=xe(o),m=L(re(o))):u=2,u){case 0:if(c instanceof Ee){const h=c;e=r,t=Be([Re(h),Mt(ue(h),void 0,Oe(h),0)],d),n=o;continue e}else{e=r,t=Be([void 0,Nt(ue(c))],d),n=o;continue e}case 1:if(m instanceof Ee){const h=m;e=r,t=i,n=Be([Re(h),Mt(ue(h),void 0,Oe(h),0)],p);continue e}else{e=r,t=i,n=Be([void 0,Nt(ue(m))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(ue(s),ue(a))|0;if(l!==0)return l|0;e=r,t=xe(i),n=xe(o);continue e}}else{L(re(o));let s,a,l,u,d;switch(Ce(i)?Ce(o)?s=2:re(o)!=null?(s=1,u=xe(o),d=L(re(o))):s=2:re(i)!=null?(s=0,a=xe(i),l=L(re(i))):Ce(o)?s=2:re(o)!=null?(s=1,u=xe(o),d=L(re(o))):s=2,s){case 0:if(l instanceof Ee){const c=l;e=r,t=Be([Re(c),Mt(ue(c),void 0,Oe(c),0)],a),n=o;continue e}else{e=r,t=Be([void 0,Nt(ue(l))],a),n=o;continue e}case 1:if(d instanceof Ee){const c=d;e=r,t=i,n=Be([Re(c),Mt(ue(c),void 0,Oe(c),0)],u);continue e}else{e=r,t=i,n=Be([void 0,Nt(ue(d))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(re(i)!=null){L(re(i));let s,a,l,u,d;switch(Ce(i)?Ce(o)?s=2:re(o)!=null?(s=1,u=xe(o),d=L(re(o))):s=2:re(i)!=null?(s=0,a=xe(i),l=L(re(i))):Ce(o)?s=2:re(o)!=null?(s=1,u=xe(o),d=L(re(o))):s=2,s){case 0:if(l instanceof Ee){const c=l;e=r,t=Be([Re(c),Mt(ue(c),void 0,Oe(c),0)],a),n=o;continue e}else{e=r,t=Be([void 0,Nt(ue(l))],a),n=o;continue e}case 1:if(d instanceof Ee){const c=d;e=r,t=i,n=Be([Re(c),Mt(ue(c),void 0,Oe(c),0)],u);continue e}else{e=r,t=i,n=Be([void 0,Nt(ue(d))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=xe(i),n=xe(o);continue e}}}function Lu(e,t,n){return t==null?n==null?0:-1:n==null?1:c1(e,ge(t),ge(n))|0}function d1(e,t,n){let r=n;xf(i=>{At(t,r,i),r=r+1|0},e)}function f1(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){e=r,t=Ur(r,o["System.Collections.Generic.IEnumerator`1.get_Current"](),i),n=o;continue e}else return i}}function h1(e,t){return ss((n,r)=>Ur(e,r,n),void 0,t)}function m1(e,t){return Sn((n,r)=>Ur(e,r,n),void 0,t)}function Sf(e,t){if(Qt(t))return h1(e,t);if(t instanceof bt)return m1(e,t);{const n=ke(t);try{return f1(e,void 0,n)}finally{Te(n)}}}class fl{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return w1(this)|0}Equals(t){let n;const r=this;return t instanceof fl&&(n=t,Lu(Mr(r),qt(r),qt(n))===0)}toString(){return"set ["+St("; ",Ze(n=>Ot(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return Lu(Mr(n),qt(n),qt(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 _f(Mr(n),t,qt(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){d1(qt(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Hs(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Hs(this)|0}GetEnumerator(){return Ru(qt(this))}[Symbol.iterator](){return Yr(ke(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Ru(qt(this))}get size(){return Hs(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 Ef(this,t)}keys(){return Ze(n=>n,this)}values(){return Ze(n=>n,this)}entries(){return Ze(n=>[n,n],this)}forEach(t,n){const r=this;pr(i=>{t(i,i,r)},r)}}function fs(e,t){return new fl(e,t)}function Mr(e){return e.comparer}function qt(e){return e.tree}function p1(e){return fs(e,void 0)}function g1(e,t){return fs(Mr(e),Ur(Mr(e),t,qt(e)))}function Hs(e){return o1(qt(e))}function Ef(e,t){return _f(Mr(e),t,qt(e))}function w1(e){let t=0;const n=ke(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+Vt(r)+631|0}}finally{Te(n)}return Math.abs(t)|0}function wa(e,t){return Ef(t,e)}function y1(e,t){return g1(t,e)}function v1(e){return p1(e)}function b1(e,t){return fs(t,Sf(t,e))}function _1(e,t){return fs(t,Sf(t,e))}function di(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 x1(e,t){const n=t.tag===2?
|
|
7
|
-
Reason: `+t.fields[2]:t.tag===3?
|
|
6
|
+
`:" ")}}function x1(e,t){const n=t.tag===2?di(t.fields[0],t.fields[1],!0):t.tag===1?di(t.fields[0],t.fields[1],!1)+`
|
|
7
|
+
Reason: `+t.fields[2]:t.tag===3?di(t.fields[0],t.fields[1],!0):t.tag===4?di(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
|
`+St(`
|
|
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]:di(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function Af(e,t,n){const r=t(e,n);if(r.tag===1){const i=r.fields[0];return new T(1,[x1(i[0],i[1])])}else return new T(0,[r.fields[0]])}function C1(e,t){try{return Af("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new T(1,["Given an invalid JSON: "+n.message]);throw n}}function kf(e,t){return typeof t=="string"?new T(0,[t]):new T(1,[[e,new X(0,["a string",t])]])}function S1(e,t){if(typeof t=="string"){const n=t;return n.length===1?new T(0,[n[0]]):new T(1,[[e,new X(0,["a single character string",t])]])}else return new T(1,[[e,new X(0,["a char",t])]])}function E1(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[qg(t,new mt(()=>r,i=>{r=i})),r],n[0]?new T(0,[n[1]]):new T(1,[[e,new X(0,["a guid",t])]])}else return new T(1,[[e,new X(0,["a guid",t])]])}function A1(e,t){return t==null?new T(0,[void 0]):new T(1,[[e,new X(0,["null",t])]])}const Hu=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 T(0,[(i+128&255)-128]):new T(1,[[n,new X(1,["a sbyte",i,"Value was either too large or too small for a sbyte"])]]):new T(1,[[n,new X(1,["a sbyte",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[Qr(r,511,!1,8,new mt(()=>o,s=>{o=s|0})),o],i[0]?new T(0,[i[1]]):new T(1,[[n,new X(0,["a sbyte",r])]])}else return new T(1,[[n,new X(0,["a sbyte",r])]])},Vu=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 T(0,[i&255]):new T(1,[[n,new X(1,["a byte",i,"Value was either too large or too small for a byte"])]]):new T(1,[[n,new X(1,["a byte",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[Qr(r,511,!0,8,new mt(()=>o,s=>{o=s})),o],i[0]?new T(0,[i[1]]):new T(1,[[n,new X(0,["a byte",r])]])}else return new T(1,[[n,new X(0,["a byte",r])]])},ju=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 T(0,[(i+32768&65535)-32768]):new T(1,[[n,new X(1,["an int16",i,"Value was either too large or too small for an int16"])]]):new T(1,[[n,new X(1,["an int16",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[Qr(r,511,!1,16,new mt(()=>o,s=>{o=s|0})),o],i[0]?new T(0,[i[1]]):new T(1,[[n,new X(0,["an int16",r])]])}else return new T(1,[[n,new X(0,["an int16",r])]])},Bu=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 T(0,[i&65535]):new T(1,[[n,new X(1,["an uint16",i,"Value was either too large or too small for an uint16"])]]):new T(1,[[n,new X(1,["an uint16",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[Qr(r,511,!0,16,new mt(()=>o,s=>{o=s})),o],i[0]?new T(0,[i[1]]):new T(1,[[n,new X(0,["an uint16",r])]])}else return new T(1,[[n,new X(0,["an uint16",r])]])},Uu=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 T(0,[~~i]):new T(1,[[n,new X(1,["an int",i,"Value was either too large or too small for an int"])]]):new T(1,[[n,new X(1,["an int",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[Qr(r,511,!1,32,new mt(()=>o,s=>{o=s|0})),o],i[0]?new T(0,[i[1]]):new T(1,[[n,new X(0,["an int",r])]])}else return new T(1,[[n,new X(0,["an int",r])]])},Wu=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 T(0,[i>>>0]):new T(1,[[n,new X(1,["an uint32",i,"Value was either too large or too small for an uint32"])]]):new T(1,[[n,new X(1,["an uint32",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[Qr(r,511,!0,32,new mt(()=>o,s=>{o=s})),o],i[0]?new T(0,[i[1]]):new T(1,[[n,new X(0,["an uint32",r])]])}else return new T(1,[[n,new X(0,["an uint32",r])]])};function k1(e,t){return typeof t=="boolean"?new T(0,[t]):new T(1,[[e,new X(0,["a boolean",t])]])}function T1(e,t){return typeof t=="number"?new T(0,[t]):new T(1,[[e,new X(0,["a float",t])]])}function $1(e,t){return typeof t=="number"?new T(0,[t]):new T(1,[[e,new X(0,["a float32",t])]])}function N1(e,t){if(typeof t=="string"){let n,r=H0();return n=[j0(t,new mt(()=>r,i=>{r=i})),r],n[0]?new T(0,[B0(n[1])]):new T(1,[[e,new X(0,["a datetime",t])]])}else return new T(1,[[e,new X(0,["a datetime",t])]])}function M1(e,t){if(typeof t=="string"){let n,r=Jg();return n=[t1(t,new mt(()=>r,i=>{r=i})),r],n[0]?new T(0,[n[1]]):new T(1,[[e,new X(0,["a datetimeoffset",t])]])}else return new T(1,[[e,new X(0,["a datetime",t])]])}function I1(e,t){if(typeof t=="string"){let n,r=0;return n=[i1(t,new mt(()=>r,i=>{r=i})),r],n[0]?new T(0,[n[1]]):new T(1,[[e,new X(0,["a timespan",t])]])}else return new T(1,[[e,new X(0,["a timespan",t])]])}function Gu(e,t,n,r){let i;const o=n+".["+Xt(e)+"]";if(Array.isArray(r)){const s=r;return e<s.length?t(o,Ae(e,s)):new T(1,[[o,new X(5,["a longer array. Need index `"+Xt(e)+"` but there are only `"+(i=s.length,Xt(i))+"` entries",r])]])}else return new T(1,[[o,new X(0,["an array",r])]])}function D1(e,t,n){return n==null?new T(0,[void 0]):xn(ht,e(t,n))}function qu(e,t,n){if(Array.isArray(n)){let r=-1;return xn(il,ss((i,o)=>{if(r=r+1|0,i.tag===0){const s=e(t+".["+Xt(r)+"]",o);return s.tag===0?new T(0,[Rt(s.fields[0],i.fields[0])]):new T(1,[s.fields[0]])}else return i},new T(0,[ot()]),n))}else return new T(1,[[t,new X(0,["a list",n])]])}function O1(e,t,n){if(Array.isArray(n)){let r=-1;return xn(fg,ss((i,o)=>{if(r=r+1|0,i.tag===0){const s=e(t+".["+Xt(r)+"]",o);return s.tag===0?new T(0,[te([s.fields[0]],i.fields[0])]):new T(1,[s.fields[0]])}else return i},new T(0,[[]]),n))}else return new T(1,[[t,new X(0,["a seq",n])]])}function zu(e,t,n){if(Array.isArray(n)){let r=-1;const i=n;return ss((o,s)=>{if(r=r+1|0,o.tag===0){const a=o.fields[0],l=e(t+".["+Xt(r)+"]",s);return l.tag===0?(At(a,r,l.fields[0]),new T(0,[a])):new T(1,[l.fields[0]])}else return o},new T(0,[is(new Array(i.length),0,i.length,null)]),i)}else return new T(1,[[t,new X(0,["an array",n])]])}function F1(e,t,n){return((i,o)=>{e:for(;;){const s=i,a=o;if(Ce(s))return new T(1,[[t,new X(7,[a])]]);{const l=Af(t,Xe(re(s)),n);if(l.tag===1){i=xe(s),o=as(a,ge(l.fields[0]));continue e}else return new T(0,[l.fields[0]])}}})(e,ot())}function P1(e,t,n){return new T(0,[e])}function Yu(e,t,n,r){const i=t(n,r);return i.tag===0?e(i.fields[0],n,r):new T(1,[i.fields[0]])}function R1(e,t,n,r){const i=t(n,r);return i.tag===1?new T(1,[i.fields[0]]):new T(0,[e(i.fields[0])])}function L1(e,t){let n;const r=e;return n=i=>o=>Gu(0,r,i,o),i=>o=>Yu(da(s=>{let a;const l=t;return a=u=>d=>Gu(1,l,u,d),u=>d=>Yu((c,p,m)=>P1([s,c]),Xe(a),u,d)}),Xe(n),i,o)}function H1(e){return mo(e,{Compare:ut})}function V1(e){return _1(e,{Compare:ut})}function j1(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?Gd((r,i)=>{const o=r[0];return i.tag===0?xn(s=>Rt(s,i.fields[0]),r[1](t+"."+o)(n[o])):i},e,new T(0,[ot()])):new T(1,[[t,new X(0,["an object",n])]])}function B1(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?ul((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 T(0,[Rt([s.fields[0],a.fields[0]],i.fields[0])]):new T(1,[a.fields[0]])}else return new T(1,[s.fields[0]])}else return i},new T(0,[ot()]),Object.keys(r)):new T(1,[[n,new X(0,["an object",r])]])}function Tf(e,t,n,r){let i;const o=t.length+e|0;if(o!==r.length)return new T(1,[[n,new X(6,[(i=r.length|0,Ti(Hr("Expected array of length %i but got %i"))(o)(i))])]]);{let s=new T(0,[ot()]);for(let a=e;a<=r.length-1;a++)if(s.tag===0){const l=s.fields[0],u=Ti(Hr("%s[%i]"))(n)(a),d=Ae(a-e,t),c=Ae(a,r);s=xn(p=>Rt(p,l),d(u)(c))}return xn(il,s)}}function Zu(e,t,n,r,i,o){const s=os(a=>tl(a)===r,sp(n));if(s!=null){const a=s,l=et(u=>zt(e,t,!1,u[1]),cp(a));return xn(u=>dp(a,mr(u)),l.length===0&&o.length<=1?new T(0,[ot()]):Tf(1,l,i,o))}else return new T(1,[[i,new X(6,["Cannot find case "+r+" in "+lt(n)])]])}function Ku(e,t,n,r){let i;const o=new mt(Se());let s;const a=lt(r);s=a===""?e:Ng(a,o,e);let l;if(up(r)){const u=et(d=>[Bg(t,tl(d)),zt(s,t,!1,d[1])],Do(r));l=d=>c=>xn(p=>fp(r,mr(p)),j1(u,d,c))}else if(lp(r))l=u=>d=>{if(typeof d=="string")return Zu(s,t,r,d,u,[]);if(Array.isArray(d)){const c=d;return Hg(p=>Zu(s,t,r,p,u,c),kf(u+"[0]",Ae(0,c)))}else return new T(1,[[u,new X(0,["a string or array",d])]])};else if(n)l=u=>d=>new T(1,[[u,new X(2,["an extra coder for "+lt(r),d])]]);else throw new Error((i=lt(r),Ti(Hr(`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 zt(e,t,n,r){let i,o,s,a;const l=lt(r),u=Mg(l,e);if(u==null)if(tp(r)){const d=zt(e,t,!1,rs(r));return c=>p=>zu(Xe(d),c,p)}else if(Hd(r))switch(lt(ip(r))){case"System.SByte":return c=>p=>{const m=r,h=c,g=p,w=Hu(h)(g);if(w.tag===1)return new T(1,[w.fields[0]]);{const
|
|
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 zt(e,t,n,r){let i,o,s,a;const l=lt(r),u=Mg(l,e);if(u==null)if(tp(r)){const d=zt(e,t,!1,rs(r));return c=>p=>zu(Xe(d),c,p)}else if(Hd(r))switch(lt(ip(r))){case"System.SByte":return c=>p=>{const m=r,h=c,g=p,w=Hu(h)(g);if(w.tag===1)return new T(1,[w.fields[0]]);{const C=w.fields[0]|0;return br(C,yr(m),{Equals:(S,E)=>S===E,GetHashCode:Yt})?new T(0,[vr(m,C.toString())]):new T(1,[[h,new X(1,[lt(m),g,"Unkown value provided for the enum"])]])}};case"System.Byte":return c=>p=>{const m=r,h=c,g=p,w=Vu(h)(g);if(w.tag===1)return new T(1,[w.fields[0]]);{const C=w.fields[0];return br(C,yr(m),{Equals:(S,E)=>S===E,GetHashCode:Yt})?new T(0,[vr(m,C.toString())]):new T(1,[[h,new X(1,[lt(m),g,"Unkown value provided for the enum"])]])}};case"System.Int16":return c=>p=>{const m=r,h=c,g=p,w=ju(h)(g);if(w.tag===1)return new T(1,[w.fields[0]]);{const C=w.fields[0]|0;return br(C,yr(m),{Equals:(S,E)=>S===E,GetHashCode:Yt})?new T(0,[vr(m,c0(C))]):new T(1,[[h,new X(1,[lt(m),g,"Unkown value provided for the enum"])]])}};case"System.UInt16":return c=>p=>{const m=r,h=c,g=p,w=Bu(h)(g);if(w.tag===1)return new T(1,[w.fields[0]]);{const C=w.fields[0];return br(C,yr(m),{Equals:(S,E)=>S===E,GetHashCode:Yt})?new T(0,[vr(m,C.toString())]):new T(1,[[h,new X(1,[lt(m),g,"Unkown value provided for the enum"])]])}};case"System.Int32":return c=>p=>{const m=r,h=c,g=p,w=Uu(h)(g);if(w.tag===1)return new T(1,[w.fields[0]]);{const C=w.fields[0]|0;return br(C,yr(m),{Equals:(S,E)=>S===E,GetHashCode:Yt})?new T(0,[vr(m,Xt(C))]):new T(1,[[h,new X(1,[lt(m),g,"Unkown value provided for the enum"])]])}};case"System.UInt32":return c=>p=>{const m=r,h=c,g=p,w=Wu(h)(g);if(w.tag===1)return new T(1,[w.fields[0]]);{const C=w.fields[0];return br(C,yr(m),{Equals:(S,E)=>S===E,GetHashCode:Yt})?new T(0,[vr(m,C.toString())]):new T(1,[[h,new X(1,[lt(m),g,"Unkown value provided for the enum"])]])}};default:{const c=lt(r),p=q0(Hr(`Cannot generate auto decoder for %s.
|
|
15
15
|
Thoth.Json.Net only support the following enum types:
|
|
16
16
|
- sbyte
|
|
17
17
|
- byte
|
|
@@ -20,7 +20,7 @@ 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
|
-
`))(c);return m=>p(m)}}else if(np(r))if(Vd(r)){const d=et(c=>zt(e,t,!1,c),ap(r));return c=>p=>Array.isArray(p)?xn(m=>hp(gr(m)),Tf(0,d,c,p)):new T(1,[[c,new X(0,["an array",p])]])}else switch(lt(rp(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return i=zt(e,t,!0,Ae(0,fn(r))),c=>p=>D1(Xe(i),c,p);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return o=zt(e,t,!1,Ae(0,fn(r))),c=>p=>qu(Xe(o),c,p);case"System.Collections.Generic.IEnumerable`1[System.Object]":return s=zt(e,t,!1,Ae(0,fn(r))),c=>p=>O1(Xe(s),c,p);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const c=zt(e,t,!1,Ae(0,fn(r))),p=zt(e,t,!1,Ae(1,fn(r)));let m;const h=v([g=>w=>B1(Xe(c),Xe(p),g,w),(a=L1(Xe(c),Xe(p)),g=>w=>qu(Xe(a),g,w))]);return m=g=>w=>F1(h,g,w),g=>w=>R1(H1,Xe(m),g,w)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const c=zt(e,t,!1,Ae(0,fn(r)));return p=>m=>{const h=zu(Xe(c),p,m);return h.tag===0?new T(0,[V1(h.fields[0])]):new T(1,[h.fields[0]])}}default:return Ku(e,t,n,r)}else switch(l){case"System.Boolean":return d=>c=>k1(d,c);case"Microsoft.FSharp.Core.Unit":return d=>c=>A1(d,c);case"System.String":return d=>c=>kf(d,c);case"System.Char":return d=>c=>S1(d,c);case"System.SByte":return Hu;case"System.Byte":return Vu;case"System.Int16":return ju;case"System.UInt16":return Bu;case"System.Int32":return Uu;case"System.UInt32":return Wu;case"System.Double":return d=>c=>T1(d,c);case"System.Single":return d=>c=>$1(d,c);case"System.DateTime":return d=>c=>N1(d,c);case"System.DateTimeOffset":return d=>c=>M1(d,c);case"System.TimeSpan":return d=>c=>I1(d,c);case"System.Guid":return d=>c=>E1(d,c);case"System.Object":return d=>c=>new T(0,[c]);default:return Ku(e,t,n,r)}else{const d=u;return c=>p=>d.contents(c)(p)}}function U1(e){return hf({Compare:es})}function W1(e,t,n){const r=rn(t,new gf(0,[]));return zt(U1(),r,!1,e)}class G1 extends Me{constructor(t,n){super(),this.Name=t,this.Email=n}}function hl(){return pr("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.UserDto",[],G1,()=>[["Name",Do],["Email",Mr(Do)]])}class q1 extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Profiles","Tax"]}}function $f(){return Ld("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.ImportStageDto",[],q1,()=>[[],[]])}class z1 extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Invite","RevokeInvite"]}}function Y1(){return Ld("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.BenefitsRequestTypeDto",[],z1,()=>[[],[]])}class Z1 extends Me{constructor(t,n,r,i){super(),this.User=t,this.ProfileCount=n|0,this.RequestType=r,this.RequestedAt=i}}function K1(){return pr("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.BenefitsRequestInfoDto",[],Z1,()=>[["User",hl()],["ProfileCount",Ht],["RequestType",Y1()],["RequestedAt",sr("System.DateTime")]])}class X1 extends Me{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 Q1(){return pr("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.RunningStageDto",[],X1,()=>[["Stage",$f()],["InputRowCount",Ht],["StartTime",sr("System.DateTime")],["SucceededRowCount",Mr(Ht)],["FailedRowCount",Mr(Ht)],["RemainingRowCount",Mr(Ht)]])}class J1 extends Me{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 Nf(){return pr("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.CompletedStageDto",[],J1,()=>[["Stage",$f()],["InputRowCount",Ht],["SucceededRowCount",Ht],["FailedRowCount",Ht],["StartTime",sr("System.DateTime")],["StopTime",sr("System.DateTime")]])}class ew extends Me{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 tw(){return pr("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.ActiveImportDto",[],ew,()=>[["ImportId",Ht],["User",hl()],["Filename",Do],["NumberOfRecords",Ht],["CurrentStage",Mr(Q1())],["CompletedStages",Io(Nf())],["StartTime",sr("System.DateTime")]])}class nw extends Me{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 rw(){return pr("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.PastImportDto",[],nw,()=>[["ImportId",Ht],["User",hl()],["Filename",Do],["NumberOfRecords",Ht],["CompletedStages",Io(Nf())],["BenefitsRequests",Io(K1())],["StartTime",sr("System.DateTime")],["StopTime",sr("System.DateTime")]])}class iw extends Me{constructor(t,n){super(),this.ActiveImport=t,this.ImportHistory=n}}function ow(){return pr("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.AccountImportsDto",[],iw,()=>[["ActiveImport",Mr(tw())],["ImportHistory",Io(rw())]])}class sw{constructor(t){this.baseUrl=`${t}/import/workspace/v1.0/accounts/current/imports`}}function aw(e){return new sw(e)}function lw(e){return wt.Delay(()=>{let t;const n=Rg(Pg(new Xd(0,[]),Fg(e.baseUrl)));return t=wt.Bind(n,r=>wt.Return(new T(0,[r]))),wt.Bind(t,r=>{const i=r;if(i.tag===1)return wt.Return(new T(1,[i.fields[0]]));{const o=i.fields[0];switch(o.statusCode|0){case 200:{let a;const l=C1(Xe(W1(ow(),new gf(1,[]))),o.responseText);return a=l.tag===1?new T(1,[l.fields[0]]):new T(0,[l.fields[0]]),wt.Return(a)}case 404:return wt.Return(new T(0,[void 0]));default:return wt.Return(new T(1,["Failed to get account imports"]))}}})})}function uw(){return ot()}function ml(e){return St("/",e)}function cw(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+ml(t),n])}function Mf(e,t,n){try{Te(n)}catch(r){e(["Error stopping subscription: "+ml(t),r])}}function dw(e,t,n,r){try{return[n,r(t)]}catch(i){e(["Error starting subscription: "+ml(n),i]);return}}function fw(e,t){Po(n=>{Mf(e,n[0],n[1])},t)}function Xu(e,t,n,r,i,o){return Po(s=>{cw(e,s)},n),Po(s=>{Mf(e,s[0],s[1])},r),as(i,Tp(s=>dw(e,t,s[0],s[1]),o))}function hw(){return[ot(),v1({Compare:ut}),ot()]}function mw(e,t,n,r,i){return ga(e,r)?[Rt(e,n),r,i]:[n,y1(e,r),Rt([e,t],i)]}function pw(e){return Ep((t,n)=>mw(t[0],t[1],n[0],n[1],n[2]),e,hw())}const gw=ot();function Qu(e,t){const n=b1(Bi(s=>s[0],e),{Compare:ut}),r=pw(t),i=r[1],o=r[0];if(n.Equals(i))return[o,ot(),e,ot()];{const s=kp(a=>ga(a[0],i),e);return[o,s[1],s[0],zd(a=>!ga(a[0],n),r[2])]}}class ww{constructor(t,n,r){this.OnNext=t,this.OnError=n||(i=>{}),this.OnCompleted=r||(()=>{})}}function yw(e,t){t.Subscribe(new ww(e))}class vw{constructor(){this.delegates=[]}_add(t){this.delegates.push(t)}_remove(t){const n=this.delegates.indexOf(t);n>-1&&this.delegates.splice(n,1)}get Publish(){return _w(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const i=n===void 0?t:(r=t,n);this.delegates.forEach(o=>{o(r,i)})}}let bw=class extends vw{};function _w(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(i,o)=>n.OnNext(o);return e(r),{Dispose(){t(r)}}}}}class xw{constructor(t){this._enabled=!1,this._isDisposed=!1,this._intervalId=0,this._timeoutId=0,this.Interval=t&&t>0?t:100,this.AutoReset=!0,this._elapsed=new bw}Elapsed(){return this._elapsed.Publish}get Enabled(){return this._enabled}set Enabled(t){!this._isDisposed&&this._enabled!==t&&(this._enabled=t,this._enabled?this.AutoReset?this._intervalId=setInterval(()=>{this.AutoReset||(this.Enabled=!1),this._elapsed.Trigger(new Date)},this.Interval):this._timeoutId=setTimeout(()=>{this.Enabled=!1,this._timeoutId=0,this.AutoReset&&(this.Enabled=!0),this._elapsed.Trigger(new Date)},this.Interval):(this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=0),this._intervalId&&(clearInterval(this._intervalId),this._intervalId=0)))}Dispose(){this.Enabled=!1,this._isDisposed=!0}Close(){this.Dispose()}Start(){this.Enabled=!0}Stop(){this.Enabled=!1}}function Cw(e,t){console.error(ht(e),t)}function Sw(e,t){let n,r=new xw(e);r.AutoReset=!1,n=r,yw(t,n.Elapsed()),n.Enabled=!0,n.Start()}function Ju(e,t,n){Po(r=>{try{r(t)}catch(i){e(i)}},n)}function Z(){return ot()}function Ew(e){return ge(e)}function Aw(e,t,n,r){return ge(i=>{e(wt.Delay(()=>wt.Bind(Up(t(n)),o=>{const s=o;return s.tag===0&&i(r(s.fields[0])),wt.Zero()})))})}function kw(e){Sw(1,t=>{Kd(e)})}function Tw(e,t,n,r){const i=ut(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=ut(s,t)|0;return o&&a<=0||!o&&a>=0?[s,r(s,e)]:void 0}}function $w(e,t,n,r,i){const o=Tw(t,n,r,i);return O(()=>ag(o,e))}function If(e,t,n){return $w(e,t,n,0,(r,i)=>r+i)}class Or extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class Nw{constructor(t){this.state=new Or(0,[is(new Array(wu(t,10)),0,wu(t,10),null),0])}}function Mw(e){return new Nw(e)}function ec(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 Or(0,[i,n]):e.state=new Or(1,[i,n,o]),ht(Ae(r,i))}else return}function Iw(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];At(o,r,t);const s=(r+1)%o.length|0;s===i?e.state=new Or(1,[Dw(e,i,o),o.length,0]):e.state=new Or(1,[o,s,i])}else{const r=n.fields[1]|0,i=n.fields[0];At(i,r,t);const o=(r+1)%i.length|0;e.state=new Or(1,[i,o,r])}}function Dw(e,t,n){return Array.from(O(()=>te(hg(t,n),O(()=>te(mg(t,n),O(()=>ds(r=>M(Se()),If(0,1,n.length))))))))}class pl extends Me{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 ti(e,t,n){return new pl(e,t,r=>uw(),n,Xe(r=>{const i=Zn(n)(r);return o=>{i(o)}}),r=>{Cw(r[0],r[1])},[r=>!1,r=>{}])}function Ow(e,t){return new pl(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function Fw(e){return e.init}function Pw(e,t,n,r,i,o,s){const a=Zn(e)(s.init),l=Is(t)(Zn(s.update)),u=Is(n)(Zn(s.view)),d=Is(r)(Zn(s.setState));return new pl(a,Xe(l),Zn(i)(s.subscribe),Xe(u),Xe(d),s.onError,o(s.termination))}function Rw(e,t,n){let r;const i=n.init(t),o=i[0],s=n.subscribe(o),a=n.termination,l=Mw(10);let u=!1,d=o,c=gw,p=!1;const m=w=>{p||(Iw(l,w),u||(u=!0,g(),u=!1))},h=Zn(e)(m),g=()=>{let w,S=ec(l);for(;!p&&S!=null;){const x=L(S);if(a[0](x))fw(n.onError,c),a[1](d),p=!0;else{const E=n.update(x,d),$=E[0],P=n.subscribe($);n.setState($,h),Ju(H=>{n.onError([Ni(jr("Error handling the message: %A"))(x),H])},h,E[1]),d=$,c=(w=Qu(c,P),Xu(n.onError,h,w[0],w[1],w[2],w[3])),S=ec(l)}}};u=!0,n.setState(o,h),Ju(w=>{n.onError([Ni(jr("Error intitializing:")),w])},h,i[1]),c=(r=Qu(c,s),Xu(n.onError,h,r[0],r[1],r[2],r[3])),g(),u=!1}function Lw(e,t){Rw(Xe(n=>n),e,t)}function Hw(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 Hs={exports:{}},Vs={};const Vw=Hw(So);/**
|
|
23
|
+
`))(c);return m=>p(m)}}else if(np(r))if(Vd(r)){const d=et(c=>zt(e,t,!1,c),ap(r));return c=>p=>Array.isArray(p)?xn(m=>hp(mr(m)),Tf(0,d,c,p)):new T(1,[[c,new X(0,["an array",p])]])}else switch(lt(rp(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return i=zt(e,t,!0,Ae(0,fn(r))),c=>p=>D1(Xe(i),c,p);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return o=zt(e,t,!1,Ae(0,fn(r))),c=>p=>qu(Xe(o),c,p);case"System.Collections.Generic.IEnumerable`1[System.Object]":return s=zt(e,t,!1,Ae(0,fn(r))),c=>p=>O1(Xe(s),c,p);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const c=zt(e,t,!1,Ae(0,fn(r))),p=zt(e,t,!1,Ae(1,fn(r)));let m;const h=v([g=>w=>B1(Xe(c),Xe(p),g,w),(a=L1(Xe(c),Xe(p)),g=>w=>qu(Xe(a),g,w))]);return m=g=>w=>F1(h,g,w),g=>w=>R1(H1,Xe(m),g,w)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const c=zt(e,t,!1,Ae(0,fn(r)));return p=>m=>{const h=zu(Xe(c),p,m);return h.tag===0?new T(0,[V1(h.fields[0])]):new T(1,[h.fields[0]])}}default:return Ku(e,t,n,r)}else switch(l){case"System.Boolean":return d=>c=>k1(d,c);case"Microsoft.FSharp.Core.Unit":return d=>c=>A1(d,c);case"System.String":return d=>c=>kf(d,c);case"System.Char":return d=>c=>S1(d,c);case"System.SByte":return Hu;case"System.Byte":return Vu;case"System.Int16":return ju;case"System.UInt16":return Bu;case"System.Int32":return Uu;case"System.UInt32":return Wu;case"System.Double":return d=>c=>T1(d,c);case"System.Single":return d=>c=>$1(d,c);case"System.DateTime":return d=>c=>N1(d,c);case"System.DateTimeOffset":return d=>c=>M1(d,c);case"System.TimeSpan":return d=>c=>I1(d,c);case"System.Guid":return d=>c=>E1(d,c);case"System.Object":return d=>c=>new T(0,[c]);default:return Ku(e,t,n,r)}else{const d=u;return c=>p=>d.contents(c)(p)}}function U1(e){return hf({Compare:Jo})}function W1(e,t,n){const r=rn(t,new gf(0,[]));return zt(U1(),r,!1,e)}class G1 extends Me{constructor(t,n){super(),this.Name=t,this.Email=n}}function hl(){return hr("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.UserDto",[],G1,()=>[["Name",Io],["Email",$r(Io)]])}class q1 extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Profiles","Tax"]}}function $f(){return Ld("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.ImportStageDto",[],q1,()=>[[],[]])}class z1 extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Invite","RevokeInvite"]}}function Y1(){return Ld("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.BenefitsRequestTypeDto",[],z1,()=>[[],[]])}class Z1 extends Me{constructor(t,n,r,i){super(),this.User=t,this.ProfileCount=n|0,this.RequestType=r,this.RequestedAt=i}}function K1(){return hr("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.BenefitsRequestInfoDto",[],Z1,()=>[["User",hl()],["ProfileCount",Ht],["RequestType",Y1()],["RequestedAt",ir("System.DateTime")]])}class X1 extends Me{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 Q1(){return hr("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.RunningStageDto",[],X1,()=>[["Stage",$f()],["InputRowCount",Ht],["StartTime",ir("System.DateTime")],["SucceededRowCount",$r(Ht)],["FailedRowCount",$r(Ht)],["RemainingRowCount",$r(Ht)]])}class J1 extends Me{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 Nf(){return hr("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.CompletedStageDto",[],J1,()=>[["Stage",$f()],["InputRowCount",Ht],["SucceededRowCount",Ht],["FailedRowCount",Ht],["StartTime",ir("System.DateTime")],["StopTime",ir("System.DateTime")]])}class ew extends Me{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 tw(){return hr("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.ActiveImportDto",[],ew,()=>[["ImportId",Ht],["User",hl()],["Filename",Io],["NumberOfRecords",Ht],["CurrentStage",$r(Q1())],["CompletedStages",Mo(Nf())],["StartTime",ir("System.DateTime")]])}class nw extends Me{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 rw(){return hr("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.PastImportDto",[],nw,()=>[["ImportId",Ht],["User",hl()],["Filename",Io],["NumberOfRecords",Ht],["CompletedStages",Mo(Nf())],["BenefitsRequests",Mo(K1())],["StartTime",ir("System.DateTime")],["StopTime",ir("System.DateTime")]])}class iw extends Me{constructor(t,n){super(),this.ActiveImport=t,this.ImportHistory=n}}function ow(){return hr("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.AccountImportsDto",[],iw,()=>[["ActiveImport",$r(tw())],["ImportHistory",Mo(rw())]])}class sw{constructor(t){this.baseUrl=`${t}/import/workspace/v1.0/accounts/current/imports`}}function aw(e){return new sw(e)}function lw(e){return wt.Delay(()=>{let t;const n=Rg(Pg(new Xd(0,[]),Fg(e.baseUrl)));return t=wt.Bind(n,r=>wt.Return(new T(0,[r]))),wt.Bind(t,r=>{const i=r;if(i.tag===1)return wt.Return(new T(1,[i.fields[0]]));{const o=i.fields[0];switch(o.statusCode|0){case 200:{let a;const l=C1(Xe(W1(ow(),new gf(1,[]))),o.responseText);return a=l.tag===1?new T(1,[l.fields[0]]):new T(0,[l.fields[0]]),wt.Return(a)}case 404:return wt.Return(new T(0,[void 0]));default:return wt.Return(new T(1,["Failed to get account imports"]))}}})})}function uw(){return ot()}function ml(e){return St("/",e)}function cw(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+ml(t),n])}function Mf(e,t,n){try{Te(n)}catch(r){e(["Error stopping subscription: "+ml(t),r])}}function dw(e,t,n,r){try{return[n,r(t)]}catch(i){e(["Error starting subscription: "+ml(n),i]);return}}function fw(e,t){Fo(n=>{Mf(e,n[0],n[1])},t)}function Xu(e,t,n,r,i,o){return Fo(s=>{cw(e,s)},n),Fo(s=>{Mf(e,s[0],s[1])},r),as(i,Tp(s=>dw(e,t,s[0],s[1]),o))}function hw(){return[ot(),v1({Compare:ut}),ot()]}function mw(e,t,n,r,i){return wa(e,r)?[Rt(e,n),r,i]:[n,y1(e,r),Rt([e,t],i)]}function pw(e){return Ep((t,n)=>mw(t[0],t[1],n[0],n[1],n[2]),e,hw())}const gw=ot();function Qu(e,t){const n=b1(Vi(s=>s[0],e),{Compare:ut}),r=pw(t),i=r[1],o=r[0];if(n.Equals(i))return[o,ot(),e,ot()];{const s=kp(a=>wa(a[0],i),e);return[o,s[1],s[0],zd(a=>!wa(a[0],n),r[2])]}}class ww{constructor(t,n,r){this.OnNext=t,this.OnError=n||(i=>{}),this.OnCompleted=r||(()=>{})}}function yw(e,t){t.Subscribe(new ww(e))}class vw{constructor(){this.delegates=[]}_add(t){this.delegates.push(t)}_remove(t){const n=this.delegates.indexOf(t);n>-1&&this.delegates.splice(n,1)}get Publish(){return _w(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const i=n===void 0?t:(r=t,n);this.delegates.forEach(o=>{o(r,i)})}}let bw=class extends vw{};function _w(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(i,o)=>n.OnNext(o);return e(r),{Dispose(){t(r)}}}}}class xw{constructor(t){this._enabled=!1,this._isDisposed=!1,this._intervalId=0,this._timeoutId=0,this.Interval=t&&t>0?t:100,this.AutoReset=!0,this._elapsed=new bw}Elapsed(){return this._elapsed.Publish}get Enabled(){return this._enabled}set Enabled(t){!this._isDisposed&&this._enabled!==t&&(this._enabled=t,this._enabled?this.AutoReset?this._intervalId=setInterval(()=>{this.AutoReset||(this.Enabled=!1),this._elapsed.Trigger(new Date)},this.Interval):this._timeoutId=setTimeout(()=>{this.Enabled=!1,this._timeoutId=0,this.AutoReset&&(this.Enabled=!0),this._elapsed.Trigger(new Date)},this.Interval):(this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=0),this._intervalId&&(clearInterval(this._intervalId),this._intervalId=0)))}Dispose(){this.Enabled=!1,this._isDisposed=!0}Close(){this.Dispose()}Start(){this.Enabled=!0}Stop(){this.Enabled=!1}}function Cw(e,t){console.error(ht(e),t)}function Sw(e,t){let n,r=new xw(e);r.AutoReset=!1,n=r,yw(t,n.Elapsed()),n.Enabled=!0,n.Start()}function Ju(e,t,n){Fo(r=>{try{r(t)}catch(i){e(i)}},n)}function Z(){return ot()}function Ew(e){return ge(e)}function Aw(e,t,n,r){return ge(i=>{e(wt.Delay(()=>wt.Bind(Up(t(n)),o=>{const s=o;return s.tag===0&&i(r(s.fields[0])),wt.Zero()})))})}function kw(e){Sw(1,t=>{Kd(e)})}function Tw(e,t,n,r){const i=ut(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=ut(s,t)|0;return o&&a<=0||!o&&a>=0?[s,r(s,e)]:void 0}}function $w(e,t,n,r,i){const o=Tw(t,n,r,i);return O(()=>ag(o,e))}function If(e,t,n){return $w(e,t,n,0,(r,i)=>r+i)}class Ir extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class Nw{constructor(t){this.state=new Ir(0,[is(new Array(wu(t,10)),0,wu(t,10),null),0])}}function Mw(e){return new Nw(e)}function ec(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 Ir(0,[i,n]):e.state=new Ir(1,[i,n,o]),ht(Ae(r,i))}else return}function Iw(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];At(o,r,t);const s=(r+1)%o.length|0;s===i?e.state=new Ir(1,[Dw(e,i,o),o.length,0]):e.state=new Ir(1,[o,s,i])}else{const r=n.fields[1]|0,i=n.fields[0];At(i,r,t);const o=(r+1)%i.length|0;e.state=new Ir(1,[i,o,r])}}function Dw(e,t,n){return Array.from(O(()=>te(hg(t,n),O(()=>te(mg(t,n),O(()=>ds(r=>M(Se()),If(0,1,n.length))))))))}class pl extends Me{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 Jr(e,t,n){return new pl(e,t,r=>uw(),n,Xe(r=>{const i=Zn(n)(r);return o=>{i(o)}}),r=>{Cw(r[0],r[1])},[r=>!1,r=>{}])}function Ow(e,t){return new pl(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function Fw(e){return e.init}function Pw(e,t,n,r,i,o,s){const a=Zn(e)(s.init),l=Ds(t)(Zn(s.update)),u=Ds(n)(Zn(s.view)),d=Ds(r)(Zn(s.setState));return new pl(a,Xe(l),Zn(i)(s.subscribe),Xe(u),Xe(d),s.onError,o(s.termination))}function Rw(e,t,n){let r;const i=n.init(t),o=i[0],s=n.subscribe(o),a=n.termination,l=Mw(10);let u=!1,d=o,c=gw,p=!1;const m=w=>{p||(Iw(l,w),u||(u=!0,g(),u=!1))},h=Zn(e)(m),g=()=>{let w,C=ec(l);for(;!p&&C!=null;){const S=L(C);if(a[0](S))fw(n.onError,c),a[1](d),p=!0;else{const E=n.update(S,d),$=E[0],P=n.subscribe($);n.setState($,h),Ju(H=>{n.onError([Ti(Hr("Error handling the message: %A"))(S),H])},h,E[1]),d=$,c=(w=Qu(c,P),Xu(n.onError,h,w[0],w[1],w[2],w[3])),C=ec(l)}}};u=!0,n.setState(o,h),Ju(w=>{n.onError([Ti(Hr("Error intitializing:")),w])},h,i[1]),c=(r=Qu(c,s),Xu(n.onError,h,r[0],r[1],r[2],r[3])),g(),u=!1}function Lw(e,t){Rw(Xe(n=>n),e,t)}function Hw(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 Vs={exports:{}},js={};const Vw=Hw(Co);/**
|
|
24
24
|
* @license React
|
|
25
25
|
* use-sync-external-store-shim.production.min.js
|
|
26
26
|
*
|
|
@@ -28,24 +28,24 @@ If you can't use one of these types, please pass an extra decoder.
|
|
|
28
28
|
*
|
|
29
29
|
* This source code is licensed under the MIT license found in the
|
|
30
30
|
* LICENSE file in the root directory of this source tree.
|
|
31
|
-
*/var tc;function jw(){if(tc)return Vs;tc=1;var e=Vw;function t(c,p){return c===p&&(c!==0||1/c===1/p)||c!==c&&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(c,p){var m=p(),h=r({inst:{value:m,getSnapshot:p}}),g=h[0].inst,w=h[1];return o(function(){g.value=m,g.getSnapshot=p,l(g)&&w({inst:g})},[c,m,p]),i(function(){return l(g)&&w({inst:g}),c(function(){l(g)&&w({inst:g})})},[c]),s(m),m}function l(c){var p=c.getSnapshot;c=c.value;try{var m=p();return!n(c,m)}catch{return!0}}function u(c,p){return p()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:a;return Vs.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,Vs}var nc;function Bw(){return nc||(nc=1,Hs.exports=jw()),Hs.exports}var Uw=Bw();class Ww{constructor(t,n,r){this.arg=n,this.dependencies=r;const i=t(),o=[];this.finalDispatch=void 0;let s;const a=Fw(i)(this.arg);let l=a[0],u=a[1];s=[[l,d=>{const c=this.finalDispatch;c==null?o.push(d):c(d)},!1,o],u],this.state=s[0],this.cmd=s[1],this.subscribe=d=>{let c=!1;const p=la(this.state[0]);return Lw(this.arg,Ow((m,h)=>{const g=this.state;this.finalDispatch=h,this.state=[m,g[1],!0,o],m!==g[0]&&d()},Pw((m,h)=>{const g=this.cmd;return this.cmd=Z(),[this.state[0],g]},(m,h,g)=>m(h)(this.state[0]),ca(m=>m),ca(m=>m),Xe(m=>m),m=>[h=>m[0](h)?!0:p&&c,h=>{const g=h;la(g)?Te(g):m[1](h)}],i))),()=>{c=!0}}}}function rc(e,t,n){return new Ww(e,t,n)}function Gw(e){return e.state}function qw(e){return e.subscribe}function zw(e,t,n){return J(e.arg,t)?!J(e.dependencies,n):!0}function ni(e,t,n){const r=ce(()=>rc(e,t,n)),i=r[0];zw(i,t,n)&&r[1](rc(e,t,n));const o=Uw.useSyncExternalStore(qw(i),()=>Gw(i)),s=o[2],a=o[3],l=o[1];return $e(()=>{if(s&&a.length>0){let u=ke(a);try{for(;u["System.Collections.IEnumerator.MoveNext"]();){const d=u["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{l(d)})}}finally{Te(u)}y0(a)}},[s,a]),[o[0],l]}class wa extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Asc","Desc"]}}function Yw(e){return e.tag===1?new wa(0,[]):new wa(1,[])}function Zw(e,t,n){return e.tag===1?Np(t,n,{Compare:ut}):$p(t,n,{Compare:ut})}class Jn extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Requested","Finished"]}}let wo=class extends Me{constructor(t){super(),this.View=t}},yo=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Loaded","Error"]}},Df=class extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["GetAccountImports"]}};function Kw(){return[new wo(new yo(0,[])),ge(e=>{e(new Df(new Jn(0,[void 0])))})]}function Xw(e,t,n){return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new wo(new yo(2,[t.fields[0].fields[0].fields[0]])),Z()]:[new wo(new yo(1,[t.fields[0].fields[0].fields[0]])),Z()]:[new wo(new yo(0,[])),Aw(r=>{kw(r)},e,void 0,r=>new Df(new Jn(1,[r])))]}class Qw extends Me{constructor(t){super(),this.UserActivities=t}}class ic extends Me{constructor(t,n,r){super(),this.Timestamp=t,this.User=n,this.Activity=r}}function Jw(e,t){const n=t.toLocaleLowerCase();return e.Name.toLocaleLowerCase().indexOf(n)>=0?!0:rn(Ct(r=>r.toLocaleLowerCase().indexOf(n)>=0,e.Email),!1)}function ey(e){return as(v(ns(Ct(t=>new ic(t.StartTime,t.User,`Added ${t.NumberOfRecords} users via Csv`),e.ActiveImport))),Bi(t=>new ic(t.StartTime,t.User,`Added ${t.NumberOfRecords} users via Csv`),e.ImportHistory))}function ty(e){return new Qw(rn(Ct(ey,e),ot()))}class oc extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Error","TableData"]}}class ny extends Me{constructor(t,n){super(),this.Data=t,this.IsFiltered=n}}class Wi extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["PaginatedList"]}}class ry extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["SortedList"]}}class iy extends Me{constructor(t,n){super(),this.SortInfo=t,this.SortDirectionToggledHandler=n}}class Of extends Me{constructor(t,n){super(),this.Column=t,this.Direction=n}}class oy extends z{constructor(){super(),this.tag=0,this.fields=[]}cases(){return["Time"]}}class Ho extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NonEmptyPagingInfo","EmptyPagingInfo"]}}class sy extends Me{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 ay(e){return e.tag===1?Ff(e.fields[0].Data):Lf()}function ly(e){return e.tag===1?ri(e.fields[0].Data):new Ho(1,[])}function uy(e){const t=gl(Lf(),e);return new Wi([Vf(rl(e),20),t])}function Gi(e){return e.fields[0][1]}function Ff(e){return Rf(Gi(e))}function cy(e){return wl(Gi(e))}function ri(e){return e.fields[0][0]}function dy(e){const t=ri(e);if(t.tag===0){const n=t.fields[0],r=Mp(n.FirstRowIndex,cy(e));return Ip(Cy(n),r)}else return ot()}function Pf(e,t){const n=gl(Ff(e),t);return new Wi([by(ri(e),rl(wl(n))),n])}function fy(e){return new Wi([ri(e),py(Gi(e))])}function hy(e){return new Wi([vy(ri(e)),Gi(e)])}function my(e){return new Wi([yy(ri(e)),Gi(e)])}function gl(e,t){return new ry([e,Zw(e.Direction,n=>n.Timestamp,t)])}function wl(e){return e.fields[0][1]}function Rf(e){return e.fields[0][0]}function py(e){return gl(gy(Rf(e)),wl(e))}function Lf(){return new Of(new oy,new wa(0,[]))}function gy(e){return new Of(e.Column,Yw(e.Direction))}function Hf(e,t){return~~(e/t)+(e%t===0?0:1)}function hs(e,t,n){if(e<=0)return new Ho(1,[]);{const r=yu(n,Hf(e,t))|0,i=(r-1)*t|0;return new Ho(0,[new sy(r,i,yu(i+t-1,e-1),e,t)])}}function Vf(e,t){return hs(e,t,1)}function wy(e){if(e.tag===0){const t=e.fields[0];return Hf(t.TotalRecordsNumber,t.PageSize)|0}else return 0}function jf(e){return e.tag===0?e.fields[0].CurrentPage<wy(e):!1}function Bf(e){return e.tag===0?e.fields[0].CurrentPage>1:!1}function yy(e){const t=Bf(e);let n;switch(t&&e.tag===0?n=0:n=1,n){case 0:{const r=e.fields[0];return hs(r.TotalRecordsNumber,r.PageSize,r.CurrentPage-1)}default:return e}}function vy(e){const t=jf(e);let n;switch(t&&e.tag===0?n=0:n=1,n){case 0:{const r=e.fields[0];return hs(r.TotalRecordsNumber,r.PageSize,r.CurrentPage+1)}default:return e}}function by(e,t){return t<=0?new Ho(1,[]):e.tag===0?hs(t,20,e.fields[0].CurrentPage):Vf(t,20)}function _y(e){return e.FirstRowIndex+1}function xy(e){return e.LastRowIndex+1}function Cy(e){return e.LastRowIndex-e.FirstRowIndex+1}let Rn=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["LoadingError","ValidState"]}};class ii extends Me{constructor(t,n,r){super(),this.ImportHistory=t,this.View=n,this.PaginatedList=r}}class yl extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Default","Filtered"]}}function Sy(e){if(e.tag===1)return Uf(e.fields[0])}function Ey(e){return e.tag===0}function Ay(e){return e.tag===1?new oc(1,[Dy(e.fields[0])]):new oc(0,[])}function Uf(e){const t=e.View;if(t.tag===1)return t.fields[0]}function ky(e){return Uf(e)!=null}function Ty(e,t){return new Rn(1,[new ii(e.ImportHistory,new yl(1,[t]),Pf(e.PaginatedList,zd(n=>Jw(n.User,t),e.ImportHistory.UserActivities)))])}function $y(e){return new Rn(1,[new ii(e.ImportHistory,new yl(0,[]),Pf(e.PaginatedList,e.ImportHistory.UserActivities))])}function Ny(e){return new Rn(1,[new ii(e.ImportHistory,e.View,fy(e.PaginatedList))])}function My(e){return new Rn(1,[new ii(e.ImportHistory,e.View,hy(e.PaginatedList))])}function Iy(e){return new Rn(1,[new ii(e.ImportHistory,e.View,my(e.PaginatedList))])}function Dy(e){return new ny(e.PaginatedList,ky(e))}let Fr=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ApplyFilter","ClearFilter","ToggleSortDirection","NextPage","PrevPage"]}};function Oy(e){let t;return[e.tag===1?new Rn(0,[]):(t=e.fields[0],new Rn(1,[new ii(t,new yl(0,[]),uy(t.UserActivities))])),Z()]}function Wf(e,t){return e.tag===1?t(e.fields[0]):[new Rn(0,[]),Z()]}function Fy(e,t){return Wf(e,n=>[t(n),Z()])}function Py(e,t){const n=r=>Fy(t,r);switch(e.tag){case 1:return n($y);case 2:return n(Ny);case 3:return n(My);case 4:return n(Iy);default:{const r=e.fields[0];return Wf(t,i=>Ja(r)?[t,ge(o=>{o(new Fr(1,[]))})]:[Ty(i,r),Z()])}}}function Ry(e,t){let n,r;return f("svg",b(v([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",24],["xmlns","http://www.w3.org/2000/svg"],(n=ge(f("path",b(v([(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",C.Children.toArray(Array.from(n))])])))}function Ly(){let e,t,n;return f("div",b(v([["className","self-stretch px-12 pt-8 pb-4 bg-white justify-start items-end gap-6 inline-flex"],(e=[f("div",b(v([["className","grow shrink basis-0 h-[34px] rounded-md justify-start items-center gap-1 flex"],(t=[f("div",{className:"text-gray-900 text-2xl font-bold font-['BR Sonoma'] leading-7",children:"Users"}),f("div",b(v([["className","w-6 h-6 text-gray-900 relative overflow-hidden"],(n=[Ry(24,24)],["children",C.Children.toArray(Array.from(n))])]))),f("div",{className:"text-gray-900 text-2xl font-bold font-['BR Sonoma'] leading-7",children:"Past activities"})],["children",C.Children.toArray(Array.from(t))])])))],["children",C.Children.toArray(Array.from(e))])])))}function Hy(e,t){let n,r;return f("svg",b(v([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=ge(f("path",b(v([["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",C.Children.toArray(Array.from(n))])])))}function ya(e,t){let n,r;return f("svg",b(v([["width",e],["height",t],["viewBox","0 0 "+e+" "+t],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(n=ge(f("path",b(v([(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",C.Children.toArray(Array.from(n))])])))}class sc extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateFilter","ClearFilter"]}}function Vy(e){let t,n;const r=rn(e.Value,"");return f("div",b(v([["className","self-stretch justify-start items-start gap-4 inline-flex"],(t=[f("div",b(v([["className",St(" ",["relative w-96 overflow-hidden focus:outline-none focus:border-blue-600"])],(n=he(O(()=>{let i;return te(M(f("div",b(v([["className","pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3"],(i=[Hy(20,20)],["children",C.Children.toArray(Array.from(i))])])))),O(()=>{let o;return te(M(f("input",b(v([(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 sc(0,[s.target.value]))}],["value",r],["disabled",e.Disabled]])))),O(()=>{let s;return Ja(r)?M(Se()):M(f("div",b(v([["onClick",a=>{e.ActionHandler(new sc(1,[]))}],["className","absolute inset-y-0 right-0 flex items-center pr-3 cursor-pointer text-gray-600"],(s=[ya(10,10)],["children",C.Children.toArray(Array.from(s))])]))))}))}))})),["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))}function jy(e){let t,n;const r=e.height,i=e.width;return f("svg",b(v([["fill","none"],["height",r],["width",i],["viewBox","0 0 "+i+" "+r],["xmlns","http://www.w3.org/2000/svg"],(t=ge(f("path",b(v([(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",C.Children.toArray(Array.from(t))])])))}function By(e){let t;const n=e.sortDirectionChangeHandler,r=e.sortDirection;return f("div",b(v([["className",St(" ",he(O(()=>te(M("w-5 h-5 bg-gray-200 rounded overflow-hidden flex flex-col justify-center items-center"),O(()=>r.tag===1?M("rotate-180"):M(""))))))],["onClick",i=>{n(void 0)}],(t=[f(jy,{width:10,height:7})],["children",C.Children.toArray(Array.from(t))])])))}function Uy(e){const t=e.toggleSortDirection,n=e.props;return f(By,{sortDirection:n.Direction,sortDirectionChangeHandler:t})}function Wy(e){let t,n,r,i;const o=f(Uy,{props:e.SortInfo,toggleSortDirection:e.SortDirectionToggledHandler});return f("div",b(v([["className","flex-none grid grid-cols-7"],(t=[f("div",b(v([["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=[f("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Time"}),o],["children",C.Children.toArray(Array.from(n))])]))),f("div",b(v([["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=[f("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Actor"})],["children",C.Children.toArray(Array.from(r))])]))),f("div",b(v([["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=[f("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Activity"})],["children",C.Children.toArray(Array.from(i))])])))],["children",C.Children.toArray(Array.from(t))])])))}function Vo(e){"@babel/helpers - typeof";return Vo=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},Vo(e)}function lr(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 _t(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function an(e){_t(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Vo(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 Gy(e,t){_t(2,arguments);var n=an(e).getTime(),r=lr(t);return new Date(n+r)}var qy={};function ms(){return qy}function zy(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 Yy(e){return _t(1,arguments),e instanceof Date||Vo(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Zy(e){if(_t(1,arguments),!Yy(e)&&typeof e!="number")return!1;var t=an(e);return!isNaN(Number(t))}function Ky(e,t){_t(2,arguments);var n=lr(t);return Gy(e,-n)}var Xy=864e5;function Qy(e){_t(1,arguments);var t=an(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/Xy)+1}function jo(e){_t(1,arguments);var t=1,n=an(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 Gf(e){_t(1,arguments);var t=an(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=jo(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var s=jo(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function Jy(e){_t(1,arguments);var t=Gf(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=jo(n);return r}var ev=6048e5;function tv(e){_t(1,arguments);var t=an(e),n=jo(t).getTime()-Jy(t).getTime();return Math.round(n/ev)+1}function Bo(e,t){var n,r,i,o,s,a,l,u;_t(1,arguments);var d=ms(),c=lr((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(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=an(e),m=p.getUTCDay(),h=(m<c?7:0)+m-c;return p.setUTCDate(p.getUTCDate()-h),p.setUTCHours(0,0,0,0),p}function qf(e,t){var n,r,i,o,s,a,l,u;_t(1,arguments);var d=an(e),c=d.getUTCFullYear(),p=ms(),m=lr((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(c+1,0,m),h.setUTCHours(0,0,0,0);var g=Bo(h,t),w=new Date(0);w.setUTCFullYear(c,0,m),w.setUTCHours(0,0,0,0);var S=Bo(w,t);return d.getTime()>=g.getTime()?c+1:d.getTime()>=S.getTime()?c:c-1}function nv(e,t){var n,r,i,o,s,a,l,u;_t(1,arguments);var d=ms(),c=lr((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=qf(e,t),m=new Date(0);m.setUTCFullYear(p,0,c),m.setUTCHours(0,0,0,0);var h=Bo(m,t);return h}var rv=6048e5;function iv(e,t){_t(1,arguments);var n=an(e),r=Bo(n,t).getTime()-nv(n,t).getTime();return Math.round(r/rv)+1}function Ie(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var Tn={y:function(t,n){var r=t.getUTCFullYear(),i=r>0?r:1-r;return Ie(n==="yy"?i%100:i,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):Ie(r+1,2)},d:function(t,n){return Ie(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 Ie(t.getUTCHours()%12||12,n.length)},H:function(t,n){return Ie(t.getUTCHours(),n.length)},m:function(t,n){return Ie(t.getUTCMinutes(),n.length)},s:function(t,n){return Ie(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 Ie(o,n.length)}},Cr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ov={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 Tn.y(t,n)},Y:function(t,n,r,i){var o=qf(t,i),s=o>0?o:1-o;if(n==="YY"){var a=s%100;return Ie(a,2)}return n==="Yo"?r.ordinalNumber(s,{unit:"year"}):Ie(s,n.length)},R:function(t,n){var r=Gf(t);return Ie(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return Ie(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 Ie(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 Ie(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 Tn.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 Ie(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=iv(t,i);return n==="wo"?r.ordinalNumber(o,{unit:"week"}):Ie(o,n.length)},I:function(t,n,r){var i=tv(t);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):Ie(i,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):Tn.d(t,n)},D:function(t,n,r){var i=Qy(t);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):Ie(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 Ie(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 Ie(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 Ie(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=Cr.noon:i===0?o=Cr.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=Cr.evening:i>=12?o=Cr.afternoon:i>=4?o=Cr.morning:o=Cr.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 Tn.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Tn.H(t,n)},K:function(t,n,r){var i=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):Ie(i,n.length)},k:function(t,n,r){var i=t.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):Ie(i,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Tn.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Tn.s(t,n)},S:function(t,n){return Tn.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 lc(s);case"XXXX":case"XX":return zn(s);case"XXXXX":case"XXX":default:return zn(s,":")}},x:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"x":return lc(s);case"xxxx":case"xx":return zn(s);case"xxxxx":case"xxx":default:return zn(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"+ac(s,":");case"OOOO":default:return"GMT"+zn(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"+ac(s,":");case"zzzz":default:return"GMT"+zn(s,":")}},t:function(t,n,r,i){var o=i._originalDate||t,s=Math.floor(o.getTime()/1e3);return Ie(s,n.length)},T:function(t,n,r,i){var o=i._originalDate||t,s=o.getTime();return Ie(s,n.length)}};function ac(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+Ie(o,2)}function lc(e,t){if(e%60===0){var n=e>0?"-":"+";return n+Ie(Math.abs(e)/60,2)}return zn(e,t)}function zn(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),o=Ie(Math.floor(i/60),2),s=Ie(i%60,2);return r+o+n+s}var uc=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"})}},zf=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"})}},sv=function(t,n){var r=t.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return uc(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}}",uc(i,n)).replace("{{time}}",zf(o,n))},av={p:zf,P:sv},lv=["D","DD"],uv=["YY","YYYY"];function cv(e){return lv.indexOf(e)!==-1}function dv(e){return uv.indexOf(e)!==-1}function cc(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 fv={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"}},hv=function(t,n,r){var i,o=fv[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 js(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 mv={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},pv={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},gv={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},wv={date:js({formats:mv,defaultWidth:"full"}),time:js({formats:pv,defaultWidth:"full"}),dateTime:js({formats:gv,defaultWidth:"full"})},yv={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},vv=function(t,n,r,i){return yv[t]};function mi(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 bv={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},_v={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},xv={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"]},Cv={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"]},Sv={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"}},Ev={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"}},Av=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"},kv={ordinalNumber:Av,era:mi({values:bv,defaultWidth:"wide"}),quarter:mi({values:_v,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:mi({values:xv,defaultWidth:"wide"}),day:mi({values:Cv,defaultWidth:"wide"}),dayPeriod:mi({values:Sv,defaultWidth:"wide",formattingValues:Ev,defaultFormattingWidth:"wide"})};function pi(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)?$v(a,function(c){return c.test(s)}):Tv(a,function(c){return c.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 Tv(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function $v(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function Nv(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 Mv=/^(\d+)(th|st|nd|rd)?/i,Iv=/\d+/i,Dv={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},Ov={any:[/^b/i,/^(a|c)/i]},Fv={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Pv={any:[/1/i,/2/i,/3/i,/4/i]},Rv={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},Lv={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]},Hv={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},Vv={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]},jv={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},Bv={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}},Uv={ordinalNumber:Nv({matchPattern:Mv,parsePattern:Iv,valueCallback:function(t){return parseInt(t,10)}}),era:pi({matchPatterns:Dv,defaultMatchWidth:"wide",parsePatterns:Ov,defaultParseWidth:"any"}),quarter:pi({matchPatterns:Fv,defaultMatchWidth:"wide",parsePatterns:Pv,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:pi({matchPatterns:Rv,defaultMatchWidth:"wide",parsePatterns:Lv,defaultParseWidth:"any"}),day:pi({matchPatterns:Hv,defaultMatchWidth:"wide",parsePatterns:Vv,defaultParseWidth:"any"}),dayPeriod:pi({matchPatterns:jv,defaultMatchWidth:"any",parsePatterns:Bv,defaultParseWidth:"any"})},Wv={code:"en-US",formatDistance:hv,formatLong:wv,formatRelative:vv,localize:kv,match:Uv,options:{weekStartsOn:0,firstWeekContainsDate:1}},Gv=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,qv=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,zv=/^'([^]*?)'?$/,Yv=/''/g,Zv=/[a-zA-Z]/;function Yf(e,t,n){var r,i,o,s,a,l,u,d,c,p,m,h,g,w;_t(2,arguments);var S=String(t),x=ms(),E=(r=(i=void 0)!==null&&i!==void 0?i:x.locale)!==null&&r!==void 0?r:Wv,$=lr((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(!($>=1&&$<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=lr((c=(p=(m=(h=void 0)!==null&&h!==void 0?h:void 0)!==null&&m!==void 0?m:x.weekStartsOn)!==null&&p!==void 0?p:(g=x.locale)===null||g===void 0||(w=g.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&c!==void 0?c:0);if(!(P>=0&&P<=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 H=an(e);if(!Zy(H))throw new RangeError("Invalid time value");var R=zy(H),_=Ky(H,R),y={firstWeekContainsDate:$,weekStartsOn:P,locale:E,_originalDate:H},A=S.match(qv).map(function(k){var N=k[0];if(N==="p"||N==="P"){var I=av[N];return I(k,E.formatLong)}return k}).join("").match(Gv).map(function(k){if(k==="''")return"'";var N=k[0];if(N==="'")return Kv(k);var I=ov[N];if(I)return dv(k)&&cc(k,t,String(e)),cv(k)&&cc(k,t,String(e)),I(_,k,E.localize,y);if(N.match(Zv))throw new RangeError("Format string contains an unescaped latin alphabet character `"+N+"`");return k}).join("");return A}function Kv(e){var t=e.match(zv);return t?t[1].replace(Yv,"'"):e}function Xv(e){return Yf(e,"d MMM, yyyy")}function Qv(e){return Yf(e,"h:mm a")}function Jv(e){let t,n,r,i,o,s,a;return f("div",b(v([["className","grid grid-cols-7"],(t=[f("div",b(v([["className","col-span-1 px-6 py-4 bg-white border-b border-gray-200 flex justify-start items-center gap-4"],(n=[f("div",b(v([["className"," flex flex-col justify-center items-start"],(r=[f("div",b(v([["className","self-stretch justify-start items-center gap-2 inline-flex"],(i=[f("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:Xv(e.Timestamp)})],["children",C.Children.toArray(Array.from(i))])]))),f("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:Qv(e.Timestamp)})],["children",C.Children.toArray(Array.from(r))])])))],["children",C.Children.toArray(Array.from(n))])]))),f("div",b(v([["className","col-span-2 px-6 py-4 bg-white border-b border-gray-200 flex justify-start items-start gap-4"],(o=[f("div",b(v([["className","justify-center items-start flex flex-col"],(s=he(O(()=>{let l;return te(M(f("div",b(v([["className","self-stretch justify-start items-center gap-2 inline-flex"],(l=[f("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:e.User.Name})],["children",C.Children.toArray(Array.from(l))])])))),O(()=>{const u=e.User.Email;return u==null?M(Se()):M(f("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:u}))}))})),["children",C.Children.toArray(Array.from(s))])])))],["children",C.Children.toArray(Array.from(o))])]))),f("div",b(v([["className","col-span-4 px-6 py-4 bg-white border-b border-gray-200 justify-start items-center gap-1 flex"],(a=[f("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:e.Activity})],["children",C.Children.toArray(Array.from(a))])])))],["children",C.Children.toArray(Array.from(t))])])))}function eb(e){const t=Bi(n=>f(Jv,n),e.Data);return f("div",{className:"self-stretch flex flex-col justify-start items-stretch",children:C.Children.toArray(Array.from(t))})}function tb(e){let t,n,r,i,o;const s=e.height,a=e.width;return f("svg",b(v([["width",a],["height",s],["viewBox","0 0 "+a+" "+s],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(t=v([f("path",b(v([(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)"]]))),f("path",{d:"M60 42V67",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),f("path",b(v([(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=ge(f("linearGradient",b(v([["id","paint0_linear_3770_593"],["x1",20],["y1",20],["x2",100],["y2",20],(o=v([f("stop",{offset:0,stopColor:"#FFD84D"}),f("stop",{offset:1,stopColor:"#FF876F"})]),["children",C.Children.toArray(Array.from(o))])])))),f("defs",{children:C.Children.toArray(Array.from(i))}))]),["children",C.Children.toArray(Array.from(t))])])))}function nb(){let e;return f("div",b(v([["className","w-[120px] h-[120px] flex flex-col justify-center items-center"],(e=[f(tb,{width:120,height:120})],["children",C.Children.toArray(Array.from(e))])])))}function rb(){let e,t,n,r;return f("div",b(v([["className","self-stretch grow shrink basis-0 flex flex-col justify-center items-center"],(e=[f(nb,null),f("div",b(v([["className","flex-col justify-start items-center gap-6 inline-flex"],(t=[f("div",b(v([["className","self-stretch h-[72px] flex-col justify-start items-start gap-3 flex"],(n=[f("div",b(v([["className","h-[72px] flex-col justify-start items-center gap-1 flex"],(r=[f("div",{className:"self-stretch text-center text-gray-900 text-xl font-bold leading-7",children:"We couldn’t load your past activities"}),f("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",C.Children.toArray(Array.from(r))])])))],["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))],["children",C.Children.toArray(Array.from(e))])])))}function ib(e){return{Data:dy(e.Data)}}function ob(e){let t;const n=e.props,r=n.tag===1?f(eb,ib(n.fields[0])):f(rb,null);return f("div",b(v([["className","relative h-full grow"],(t=[f("div",{className:"overflow-y-auto self-stretch flex flex-col justify-start",style:{scrollbarWidth:"none"},children:C.Children.toArray([r])})],["children",C.Children.toArray(Array.from(t))])])))}class dc extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Prev","Next"]}}function sb(e){let t,n;const r=e.pageChangedHandler,i=e.pagingInfo;return f("div",b(v([["className","flex-none h-[60px] bg-white flex-col justify-start items-start flex"],(t=[f("div",{className:"self-stretch h-px bg-gray-200"}),f("div",b(v([["className","self-stretch px-6 py-3 justify-between items-center inline-flex"],(n=he(O(()=>{let o,s,a;return te((o=i,o.tag===1?M(f("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:"No results found"})):(s=o.fields[0],M((a=v([f("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:Xt(_y(s))}),f("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" to "}),f("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:Xt(xy(s))}),f("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" of "}),f("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:Xt(s.TotalRecordsNumber)}),f("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" results"})]),f("div",{children:C.Children.toArray(Array.from(a))}))))),O(()=>{let l,u,d;return M(f("div",b(v([["className","justify-start items-start gap-3 flex"],(l=[f("button",b(v([["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",c=>{r(new dc(0,[]))}],["disabled",!Bf(i)]]))),f("button",b(v([["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",c=>{r(new dc(1,[]))}],["disabled",!jf(i)]])))],["children",C.Children.toArray(Array.from(l))])]))))}))})),["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))}class va extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ToggleSortDirection","NextPage","PrevPage"]}}function ab(e,t){e(t.tag===0?new va(2,[]):new va(1,[]))}function lb(e){let t,n;const r=e.actionHandler,i=e.props;return f("div",b(v([(t="self-stretch grow bg-white rounded-lg shadow border border-gray-200 flex flex-col justify-center items-stretch",["className",t]),(n=[f(Wy,new iy(ay(i),()=>{r(new va(0,[]))})),f(ob,{props:i}),f(sb,{pagingInfo:ly(i),pageChangedHandler:o=>{ab(r,o)}})],["children",C.Children.toArray(Array.from(n))])])))}function ub(e,t){t.tag===0?e(new Fr(0,[t.fields[0]])):e(new Fr(1,[]))}function cb(e,t){switch(t.tag){case 2:{e(new Fr(4,[]));break}case 0:{e(new Fr(2,[]));break}default:e(new Fr(3,[]))}}function fc(e){let t,n;const r=e.importHistory;let i;const o=Oy(r);i=ni(()=>ti(()=>o,Py,(d,c)=>{}),void 0,void 0);const s=i[0],a=i[1];let l;const u=Sy(s);return l={ActionHandler:d=>{ub(a,d)},Disabled:Ey(s),Value:po(u)},f("div",b(v([["className","self-stretch grow basis-0 flex flex-col justify-start items-start gap-2"],(t=[f(Ly,null),f("div",b(v([["className","self-stretch grow shrink basis-0 px-12 pb-6 flex flex-col justify-start items-start gap-2"],(n=[f(Vy,l),f(lb,{props:Ay(s),actionHandler:d=>{cb(a,d)}})],["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))}class hc extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Header","Row"]}}function db(e,t){let n;const r=e.tag===1?["bg-white","bg-gray-100","h-[72px]"]:["bg-gray-50","bg-gray-300",""];return f("div",b(v([["className",St(" ",["px-6 py-3.5 border-b border-gray-200 justify-start items-center gap-2 flex",r[0],r[2],t])],(n=[f("div",{className:St(" ",["w-full h-4 relative rounded",r[1]])})],["children",C.Children.toArray(Array.from(n))])])))}function mc(e){const t=Bi(n=>db(e,n),v(["col-span-1","col-span-2","col-span-4"]));return f("div",{className:"grid grid-cols-7",children:C.Children.toArray(Array.from(t))})}function fb(){let e,t;return f("div",b(v([(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=as(ge(mc(new hc(0,[]))),Bi(n=>mc(new hc(1,[])),he(If(1,1,5)))),["children",C.Children.toArray(Array.from(t))])])))}function hb(e){const t=aw(e.backendUrl);let n;const r=ni(()=>ti(Kw,(o,s)=>Xw(()=>lw(t),o),(o,s)=>{}),void 0,[])[0].View;n=r.tag===2?f(fc,{importHistory:new T(1,[void 0])}):r.tag===1?f(fc,{importHistory:new T(0,[ty(r.fields[0])])}):f(fb,null);const i=[f("style",{children:[Ka]}),n];return f(Le,{},...i)}function mb(){La(e=>f(hb,e),"apollo-import-workspace-past-history")}class pb{constructor(t,n){const r=new mt(Se());this.comparer=n,r.contents=this,this.hashMap=new Map([]),this["init@9"]=1;const i=ke(t);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const o=i["System.Collections.Generic.IEnumerator`1.get_Current"]();Bs(r.contents,o[0],o[1])}}finally{Te(i)}}get[Symbol.toStringTag](){return"Dictionary"}toJSON(){const t=this;return Array.from(t)}"System.Collections.IEnumerable.GetEnumerator"(){return ke(this)}GetEnumerator(){return ke(cs(this.hashMap.values()))}[Symbol.iterator](){return Kr(ke(this))}"System.Collections.Generic.ICollection`1.Add2B595"(t){Bs(this,t[0],t[1])}"System.Collections.Generic.ICollection`1.Clear"(){pc(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const r=vo(this,t[0]);let i;switch(r!=null&&J(L(r)[1],t[1])?(i=0,L(r)):i=1,i){case 0:return!0;default:return!1}}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){nf((i,o)=>{At(t,n+i,o)},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return gc(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(t){const n=this,r=vo(n,t[0]);return r!=null?(J(L(r)[1],t[1])&&Us(n,t[0]),!0):!1}"System.Collections.Generic.IDictionary`2.Add5BDDA1"(t,n){Bs(this,t,n)}"System.Collections.Generic.IDictionary`2.ContainsKey2B595"(t){return vc(this,t)}"System.Collections.Generic.IDictionary`2.get_Item2B595"(t){return wc(this,t)}"System.Collections.Generic.IDictionary`2.set_Item5BDDA1"(t,n){yc(this,t,n)}"System.Collections.Generic.IDictionary`2.get_Keys"(){const t=this;return Fn(O(()=>Ze(n=>n[0],t)))}"System.Collections.Generic.IDictionary`2.Remove2B595"(t){return Us(this,t)}"System.Collections.Generic.IDictionary`2.TryGetValue6DC89625"(t,n){const i=vo(this,t);if(i!=null){const o=L(i);return n.contents=o[1],!0}else return!1}"System.Collections.Generic.IDictionary`2.get_Values"(){const t=this;return Fn(O(()=>Ze(n=>n[1],t)))}get size(){return gc(this)|0}clear(){pc(this)}delete(t){return Us(this,t)}entries(){return Ze(n=>[n[0],n[1]],this)}get(t){return wc(this,t)}has(t){return vc(this,t)}keys(){return Ze(n=>n[0],this)}set(t,n){const r=this;return yc(r,t,n),r}values(){return Ze(n=>n[1],this)}forEach(t,n){const r=this;wr(i=>{t(i[1],i[0],r)},r)}}function qi(e,t){const n=e.comparer.GetHashCode(t)|0;let r,i=Se();return r=[cl(e.hashMap,n,new mt(()=>i,o=>{i=o})),i],r[0]?[!0,n,r[1].findIndex(o=>e.comparer.Equals(t,o[0]))]:[!1,n,-1]}function vo(e,t){const n=qi(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return Pn(e.hashMap,n[1])[n[2]];default:return}}function pc(e){e.hashMap.clear()}function gc(e){let t=0,n=ke(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{Te(n)}return t|0}function wc(e,t){const n=vo(e,t);if(n!=null)return L(n)[1];throw new Error("The item was not found in collection")}function yc(e,t,n){const r=qi(e,t);r[0]?r[2]>-1?Pn(e.hashMap,r[1])[r[2]]=[t,n]:Pn(e.hashMap,r[1]).push([t,n]):e.hashMap.set(r[1],[[t,n]])}function Bs(e,t,n){const r=qi(e,t);if(r[0]){if(r[2]>-1)throw new Error(Fd("An item with the same key has already been added. Key: {0}",t));Pn(e.hashMap,r[1]).push([t,n])}else e.hashMap.set(r[1],[[t,n]])}function vc(e,t){const n=qi(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return!0;default:return!1}}function Us(e,t){const n=qi(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return Pn(e.hashMap,n[1]).splice(n[2],1),!0;default:return!1}}function gb(e,t){return O(()=>{const n=new yf([],t);return ll(r=>pf(r,n),e)})}function wb(e,t,n){return O(()=>{const r=new yf(e,n);return ll(i=>pf(i,r),t)})}function yb(e,t,n){return O(()=>{const r=new pb([],n),i=[],o=ke(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=[cl(r,a,new mt(()=>u,d=>{u=d})),u],l[0]?l[1].push(s):(jg(r,a,[s]),i.push(a))}}finally{Te(o)}return Ze(s=>[s,Pn(r,s)],i)})}function Zf(e,t){return Fn(gb(e,t))}function Kf(e,t,n){return Fn(wb(e,t,n))}function vb(e,t,n){return Fn(Ze(r=>[r[0],Fn(r[1])],yb(e,t,n)))}class bb extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvColumnIndex"]}}class _b extends Me{constructor(t,n,r,i){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=i}}class xb extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisCsvColumnIndex"]}}class Ai extends Me{constructor(t,n,r,i,o){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=i,this.EmploymentBasis=o}}new Ai(void 0,void 0,void 0,void 0,void 0);function bc(e,t){return new Ai(e.FirstName,e.LastName,e.Email,e.MobilePhone,Ct(n=>n.fields[0],t))}class Cb extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisRawValue"]}}class ct extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FullTime","PartTime","Casual","LabourHire"]}}class Sb extends Me{constructor(t,n){super(),this.Head=t,this.Tail=n}}class Eb extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisColumn"]}}class Sr extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["WithoutEmploymentBasis","WithEmploymentBasis"]}}class cn extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["DraftColumnMappings","ValidatedColumnMappings"]}}class Ab extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvColumnName"]}}class kb extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvDataRow"]}}class Tb extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvDataRows"]}}function $b(e,t){let n;return new Eb(et(r=>new Cb(r),_p(r=>r,Zf((n=et(r=>Ae(t.fields[0].fields[0],r.fields[0]),e.fields[0]),n.filter(r=>!el(r))),{Equals:(r,i)=>r===i,GetHashCode:Vn}),{Compare:es})))}class Xf extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FileName"]}}class Nb extends Me{constructor(t,n,r,i){super(),this.Name=t,this.HeaderRow=n,this.DataRows=r,this.SizeInBytes=i|0}}class oo extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Draft","Valid"]}}class pe extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FirstName","LastName","Email","MobilePhone","EmploymentBasis"]}}function Qf(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"}}let Gn=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Set","Clear","Preview"]}};class gi extends Me{constructor(t,n){super(),this.ColumnIndex=t,this.IncomingFields=n}}class Mb extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["IncomingFields"]}}class hn extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Available","Unavailable"]}}let Ar=class extends Me{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 Ib(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 Ct(r=>r[0],os(r=>Qr(Qa(r[1].fields[0],"[^a-zA-Z]","").toLocaleLowerCase(),n,{Equals:(i,o)=>i===o,GetHashCode:Vn}),e))}function Db(e,t){return new Mb(et(n=>{const r=n[0];return[r,n[1],Qr(r,t,{Equals:J,GetHashCode:Ao})?new hn(1,[]):new hn(0,[])]},e))}function Jf(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 kr(e,t){return Pt(n=>n,et(n=>Wd(e.fields[0],n.fields[0]),t.fields[0].slice(void 0,10)))}function vl(e,t,n,r,i,o,s){let a,l,u;const d=h=>Db(e,h);let c;c=Pt(h=>h,[n,r,i,o,s]).length;const m=n!=null?r!=null?i!=null?(a=i,l=n,u=r,new oo(1,[new _b(l,u,a,o),Ct(h=>new xb(h),s)])):new oo(0,[new Ai(n,r,i,o,s)]):new oo(0,[new Ai(n,r,i,o,s)]):new oo(0,[new Ai(n,r,i,o,s)]);return new Ar(new gi(n,d(Pt(h=>h,[r,i,o,s]))),new gi(r,d(Pt(h=>h,[n,i,o,s]))),new gi(i,d(Pt(h=>h,[n,r,o,s]))),new gi(o,d(Pt(h=>h,[n,r,i,s]))),new gi(s,d(Pt(h=>h,[n,r,i,o]))),t,e.length,c,e.length-c,m)}function wi(e,t,n,r,i){let o,s,a;const l=[r,i];return a=Jf(n,l[0],l[1]),vl(e,(o=n.Preview,o!=null&&J(o[0],r)?(s=o[0],[s,kr(i,t)]):n.Preview),a[0],a[1],a[2],a[3],a[4])}function yi(e,t,n){let r,i;const o=[n,void 0];return i=Jf(t,o[0],o[1]),vl(e,(r=t.Preview,r!=null&&J(r[0],n)?(r[0],void 0):t.Preview),i[0],i[1],i[2],i[3],i[4])}function eh(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 Ob=e=>t=>eh(e,t);function Fb(e,t){const n=eh(e,t),r=e.Preview;let i;switch(n?r==null?i=2:J(r[0],t)?(i=1,r[0]):i=2:i=0,i){case 0:return!1;case 1:return!1;default:return!0}}function Pb(e,t){let n,r,i,o,s,a,l,u,d;const c=p=>Ib(e,p);return[(n=t==null?(r=c(new pe(0,[])),i=c(new pe(1,[])),o=c(new pe(2,[])),s=c(new pe(3,[])),a=c(new pe(4,[])),l=Pt(p=>p,[r,i,o,s,a]),u=p=>{let m,h;switch(p!=null?(m=p,l.filter(g=>J(g,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]),vl(e,void 0,n[0],n[1],n[2],n[3],n[4])),Z()]}function Rb(e,t,n,r){let i,o,s,a,l,u,d,c,p,m,h,g,w,S,x,E,$,P,H,R,_;switch(n.tag){case 1:{switch(n.fields[0].tag){case 1:{r.LastName.ColumnIndex!=null?h=6:h=15;break}case 2:{r.Email.ColumnIndex!=null?h=7:h=15;break}case 3:{r.MobilePhone.ColumnIndex!=null?h=8:h=15;break}case 4:{r.EmploymentBasis.ColumnIndex!=null?h=9:h=15;break}default:r.FirstName.ColumnIndex!=null?h=5:h=15}break}case 2:{switch(n.fields[0].tag){case 1:{r.LastName.ColumnIndex!=null?(h=11,P=r.LastName.ColumnIndex):h=15;break}case 2:{r.Email.ColumnIndex!=null?(h=12,H=r.Email.ColumnIndex):h=15;break}case 3:{r.MobilePhone.ColumnIndex!=null?(h=13,R=r.MobilePhone.ColumnIndex):h=15;break}case 4:{r.EmploymentBasis.ColumnIndex!=null?(h=14,_=r.EmploymentBasis.ColumnIndex):h=15;break}default:r.FirstName.ColumnIndex!=null?(h=10,$=r.FirstName.ColumnIndex):h=15}break}default:switch(n.fields[0].tag){case 1:{u=n.fields[1],!J(r.LastName.ColumnIndex,u)&&r.LastName.IncomingFields.fields[0].some(y=>J(u,y[0])?J(y[2],new hn(0,[])):!1)?(h=1,r.LastName.ColumnIndex,r.LastName.IncomingFields.fields[0],w=n.fields[1]):h=15;break}case 2:{d=n.fields[1],!J(r.Email.ColumnIndex,d)&&r.Email.IncomingFields.fields[0].some(y=>J(d,y[0])?J(y[2],new hn(0,[])):!1)?(h=2,r.Email.ColumnIndex,r.Email.IncomingFields.fields[0],S=n.fields[1]):h=15;break}case 3:{c=n.fields[1],!J(r.MobilePhone.ColumnIndex,c)&&r.MobilePhone.IncomingFields.fields[0].some(y=>J(c,y[0])?J(y[2],new hn(0,[])):!1)?(h=3,r.MobilePhone.ColumnIndex,r.MobilePhone.IncomingFields.fields[0],x=n.fields[1]):h=15;break}case 4:{p=n.fields[1],!J(r.EmploymentBasis.ColumnIndex,p)&&r.EmploymentBasis.IncomingFields.fields[0].some(y=>J(p,y[0])?J(y[2],new hn(0,[])):!1)?(h=4,r.EmploymentBasis.ColumnIndex,r.EmploymentBasis.IncomingFields.fields[0],E=n.fields[1]):h=15;break}default:m=n.fields[1],!J(r.FirstName.ColumnIndex,m)&&r.FirstName.IncomingFields.fields[0].some(y=>J(m,y[0])?J(y[2],new hn(0,[])):!1)?(h=0,r.FirstName.ColumnIndex,r.FirstName.IncomingFields.fields[0],g=n.fields[1]):h=15}}switch(h){case 0:return[(i=[new pe(0,[]),g],wi(e,t,r,i[0],i[1])),Z()];case 1:return[(o=[new pe(1,[]),w],wi(e,t,r,o[0],o[1])),Z()];case 2:return[(s=[new pe(2,[]),S],wi(e,t,r,s[0],s[1])),Z()];case 3:return[(a=[new pe(3,[]),x],wi(e,t,r,a[0],a[1])),Z()];case 4:return[(l=[new pe(4,[]),E],wi(e,t,r,l[0],l[1])),Z()];case 5:return[yi(e,r,new pe(0,[])),Z()];case 6:return[yi(e,r,new pe(1,[])),Z()];case 7:return[yi(e,r,new pe(2,[])),Z()];case 8:return[yi(e,r,new pe(3,[])),Z()];case 9:return[yi(e,r,new pe(4,[])),Z()];case 10:return[new Ar(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new pe(0,[]),kr($,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),Z()];case 11:return[new Ar(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new pe(1,[]),kr(P,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),Z()];case 12:return[new Ar(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new pe(2,[]),kr(H,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),Z()];case 13:return[new Ar(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new pe(3,[]),kr(R,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),Z()];case 14:return[new Ar(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new pe(4,[]),kr(_,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),Z()];default:return[r,Z()]}}const th=typeof document<"u"?W.useLayoutEffect:()=>{};function Lb(e){const t=Q(null);return th(()=>{t.current=e},[e]),_e((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}const zi=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:zi(e).defaultView||window;function Hb(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 Vb(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 nh(e){let t=null;return()=>(t==null&&(t=e()),t)}const jb=nh(function(){return Vb(/^Mac/i)}),Bb=nh(function(){return Hb(/Android/i)});function Ub(e){return e.mozInputSource===0&&e.isTrusted?!0:Bb()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}class Wb{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 rh(e){let t=Q({isFocused:!1,observer:null});th(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Lb(r=>{e==null||e(r)});return _e(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 Wb("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 Gb(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=_e(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),s=rh(o),a=_e(l=>{const u=zi(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 Yi=null,ba=new Set,ki=new Map,ur=!1,_a=!1;const qb={Tab:!0,Escape:!0};function bl(e,t){for(let n of ba)n(e,t)}function zb(e){return!(e.metaKey||!jb()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Uo(e){ur=!0,zb(e)&&(Yi="keyboard",bl("keyboard",e))}function Lt(e){Yi="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(ur=!0,bl("pointer",e))}function ih(e){Ub(e)&&(ur=!0,Yi="virtual")}function oh(e){e.target===window||e.target===document||(!ur&&!_a&&(Yi="virtual",bl("virtual",e)),ur=!1,_a=!1)}function sh(){ur=!1,_a=!0}function xa(e){if(typeof window>"u"||ki.get(er(e)))return;const t=er(e),n=zi(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){ur=!0,r.apply(this,arguments)},n.addEventListener("keydown",Uo,!0),n.addEventListener("keyup",Uo,!0),n.addEventListener("click",ih,!0),t.addEventListener("focus",oh,!0),t.addEventListener("blur",sh,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Lt,!0),n.addEventListener("pointermove",Lt,!0),n.addEventListener("pointerup",Lt,!0)):(n.addEventListener("mousedown",Lt,!0),n.addEventListener("mousemove",Lt,!0),n.addEventListener("mouseup",Lt,!0)),t.addEventListener("beforeunload",()=>{ah(e)},{once:!0}),ki.set(t,{focus:r})}const ah=(e,t)=>{const n=er(e),r=zi(e);t&&r.removeEventListener("DOMContentLoaded",t),ki.has(n)&&(n.HTMLElement.prototype.focus=ki.get(n).focus,r.removeEventListener("keydown",Uo,!0),r.removeEventListener("keyup",Uo,!0),r.removeEventListener("click",ih,!0),n.removeEventListener("focus",oh,!0),n.removeEventListener("blur",sh,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Lt,!0),r.removeEventListener("pointermove",Lt,!0),r.removeEventListener("pointerup",Lt,!0)):(r.removeEventListener("mousedown",Lt,!0),r.removeEventListener("mousemove",Lt,!0),r.removeEventListener("mouseup",Lt,!0)),ki.delete(n))};function Yb(e){const t=zi(e);let n;return t.readyState!=="loading"?xa(e):(n=()=>{xa(e)},t.addEventListener("DOMContentLoaded",n)),()=>ah(e,n)}typeof document<"u"&&Yb();function lh(){return Yi!=="pointer"}const Zb=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Kb(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&&!Zb.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&&!qb[n.key])}function Xb(e,t,n){xa(),$e(()=>{let r=(i,o)=>{Kb(!!(n!=null&&n.isTextInput),i,o)&&e(lh())};return ba.add(r),()=>{ba.delete(r)}},t)}function Qb(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=Q({isFocusWithin:!1}),s=_e(u=>{o.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,o]),a=rh(s),l=_e(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 Wo=!1,Ws=0;function Ca(){Wo=!0,setTimeout(()=>{Wo=!1},50)}function _c(e){e.pointerType==="touch"&&Ca()}function Jb(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",_c):document.addEventListener("touchend",Ca),Ws++,()=>{Ws--,!(Ws>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",_c):document.removeEventListener("touchend",Ca))}}function e_(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,s]=ce(!1),a=Q({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;$e(Jb,[]);let{hoverProps:l,triggerHoverEnd:u}=ie(()=>{let d=(m,h)=>{if(a.pointerType=h,i||h==="touch"||a.isHovered||!m.currentTarget.contains(m.target))return;a.isHovered=!0;let g=m.currentTarget;a.target=g,t&&t({type:"hoverstart",target:g,pointerType:h}),n&&n(!0),s(!0)},c=(m,h)=>{if(a.pointerType="",a.target=null,h==="touch"||!a.isHovered)return;a.isHovered=!1;let g=m.currentTarget;r&&r({type:"hoverend",target:g,pointerType:h}),n&&n(!1),s(!1)},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=m=>{Wo&&m.pointerType==="mouse"||d(m,m.pointerType)},p.onPointerLeave=m=>{!i&&m.currentTarget.contains(m.target)&&c(m,m.pointerType)}):(p.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=m=>{!a.ignoreEmulatedMouseEvents&&!Wo&&d(m,"mouse"),a.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=m=>{!i&&m.currentTarget.contains(m.target)&&c(m,"mouse")}),{hoverProps:p,triggerHoverEnd:c}},[t,n,r,i,a]);return $e(()=>{i&&u({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:l,isHovered:o}}function t_(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=Q({isFocused:!1,isFocusVisible:t||lh()}),[o,s]=ce(!1),[a,l]=ce(()=>i.current.isFocused&&i.current.isFocusVisible),u=_e(()=>l(i.current.isFocused&&i.current.isFocusVisible),[]),d=_e(m=>{i.current.isFocused=m,s(m),u()},[u]);Xb(m=>{i.current.isFocusVisible=m,u()},[],{isTextInput:n});let{focusProps:c}=Gb({isDisabled:r,onFocusChange:d}),{focusWithinProps:p}=Qb({isDisabled:!r,onFocusWithinChange:d});return{isFocused:o,isFocusVisible:a,focusProps:r?p:c}}var n_=Object.defineProperty,r_=(e,t,n)=>t in e?n_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Gs=(e,t,n)=>(r_(e,typeof t!="symbol"?t+"":t,n),n);let i_=class{constructor(){Gs(this,"current",this.detect()),Gs(this,"handoffState","pending"),Gs(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"}},ir=new i_;function oi(e){return ir.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function ps(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function En(){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 ps(()=>{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=En();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 jn(){let[e]=ce(En);return $e(()=>()=>e.dispose(),[e]),e}let Ve=(e,t)=>{ir.isServer?$e(e,t):Cn(e,t)};function Bn(e){let t=Q(e);return Ve(()=>{t.current=e},[e]),t}let ne=function(e){let t=Bn(e);return W.useCallback((...n)=>t.current(...n),[t])};function o_(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 s_(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function a_({disabled:e=!1}={}){let t=Q(null),[n,r]=ce(!1),i=jn(),o=ne(()=>{t.current=null,r(!1),i.dispose()}),s=ne(a=>{if(i.dispose(),t.current===null){t.current=a.currentTarget,r(!0);{let l=oi(a.currentTarget);i.addEventListener(l,"pointerup",o,!1),i.addEventListener(l,"pointermove",u=>{if(t.current){let d=o_(u);r(s_(d,t.current.getBoundingClientRect()))}},!1),i.addEventListener(l,"pointercancel",o,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:s,onPointerUp:o,onClick:o}}}let l_=qe(void 0);function _l(){return Ne(l_)}function Sa(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function Et(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,Et),r}var qr=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(qr||{}),Dn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Dn||{});function st(){let e=c_();return _e(t=>u_({mergeRefs:e,...t}),[e])}function u_({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:s,mergeRefs:a}){a=a??d_;let l=uh(t,e);if(o)return so(l,n,r,s,a);let u=i??0;if(u&2){let{static:d=!1,...c}=l;if(d)return so(c,n,r,s,a)}if(u&1){let{unmount:d=!0,...c}=l;return Et(d?0:1,{0(){return null},1(){return so({...c,hidden:!0,style:{display:"none"}},n,r,s,a)}})}return so(l,n,r,s,a)}function so(e,t={},n,r,i){let{as:o=n,children:s,refName:a="ref",...l}=qs(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 c={};if(t){let p=!1,m=[];for(let[h,g]of Object.entries(t))typeof g=="boolean"&&(p=!0),g===!0&&m.push(h.replace(/([A-Z])/g,w=>`-${w.toLowerCase()}`));if(p){c["data-headlessui-state"]=m.join(" ");for(let h of m)c[`data-${h}`]=""}}if(o===Le&&(Object.keys($n(l)).length>0||Object.keys($n(c)).length>0))if(!Zr(d)||Array.isArray(d)&&d.length>1){if(Object.keys($n(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($n(l)).concat(Object.keys($n(c))).map(p=>` - ${p}`).join(`
|
|
31
|
+
*/var tc;function jw(){if(tc)return js;tc=1;var e=Vw;function t(c,p){return c===p&&(c!==0||1/c===1/p)||c!==c&&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(c,p){var m=p(),h=r({inst:{value:m,getSnapshot:p}}),g=h[0].inst,w=h[1];return o(function(){g.value=m,g.getSnapshot=p,l(g)&&w({inst:g})},[c,m,p]),i(function(){return l(g)&&w({inst:g}),c(function(){l(g)&&w({inst:g})})},[c]),s(m),m}function l(c){var p=c.getSnapshot;c=c.value;try{var m=p();return!n(c,m)}catch{return!0}}function u(c,p){return p()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:a;return js.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,js}var nc;function Bw(){return nc||(nc=1,Vs.exports=jw()),Vs.exports}var Uw=Bw();class Ww{constructor(t,n,r){this.arg=n,this.dependencies=r;const i=t(),o=[];this.finalDispatch=void 0;let s;const a=Fw(i)(this.arg);let l=a[0],u=a[1];s=[[l,d=>{const c=this.finalDispatch;c==null?o.push(d):c(d)},!1,o],u],this.state=s[0],this.cmd=s[1],this.subscribe=d=>{let c=!1;const p=ua(this.state[0]);return Lw(this.arg,Ow((m,h)=>{const g=this.state;this.finalDispatch=h,this.state=[m,g[1],!0,o],m!==g[0]&&d()},Pw((m,h)=>{const g=this.cmd;return this.cmd=Z(),[this.state[0],g]},(m,h,g)=>m(h)(this.state[0]),da(m=>m),da(m=>m),Xe(m=>m),m=>[h=>m[0](h)?!0:p&&c,h=>{const g=h;ua(g)?Te(g):m[1](h)}],i))),()=>{c=!0}}}}function rc(e,t,n){return new Ww(e,t,n)}function Gw(e){return e.state}function qw(e){return e.subscribe}function zw(e,t,n){return J(e.arg,t)?!J(e.dependencies,n):!0}function ei(e,t,n){const r=ce(()=>rc(e,t,n)),i=r[0];zw(i,t,n)&&r[1](rc(e,t,n));const o=Uw.useSyncExternalStore(qw(i),()=>Gw(i)),s=o[2],a=o[3],l=o[1];return $e(()=>{if(s&&a.length>0){let u=ke(a);try{for(;u["System.Collections.IEnumerator.MoveNext"]();){const d=u["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{l(d)})}}finally{Te(u)}y0(a)}},[s,a]),[o[0],l]}class ya extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Asc","Desc"]}}function Yw(e){return e.tag===1?new ya(0,[]):new ya(1,[])}function Zw(e,t,n){return e.tag===1?Np(t,n,{Compare:ut}):$p(t,n,{Compare:ut})}class hs extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Requested","Finished"]}}let po=class extends Me{constructor(t){super(),this.View=t}},go=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Loaded","Error"]}},Df=class extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["GetAccountImports"]}};function Kw(){return[new po(new go(0,[])),ge(e=>{e(new Df(new hs(0,[void 0])))})]}function Xw(e,t,n){return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new po(new go(2,[t.fields[0].fields[0].fields[0]])),Z()]:[new po(new go(1,[t.fields[0].fields[0].fields[0]])),Z()]:[new po(new go(0,[])),Aw(r=>{kw(r)},e,void 0,r=>new Df(new hs(1,[r])))]}class Qw extends Me{constructor(t){super(),this.UserActivities=t}}class ic extends Me{constructor(t,n,r){super(),this.Timestamp=t,this.User=n,this.Activity=r}}function Jw(e,t){const n=t.toLocaleLowerCase();return e.Name.toLocaleLowerCase().indexOf(n)>=0?!0:rn(Ct(r=>r.toLocaleLowerCase().indexOf(n)>=0,e.Email),!1)}function ey(e){return as(v(ns(Ct(t=>new ic(t.StartTime,t.User,`Added ${t.NumberOfRecords} users via Csv`),e.ActiveImport))),Vi(t=>new ic(t.StartTime,t.User,`Added ${t.NumberOfRecords} users via Csv`),e.ImportHistory))}function ty(e){return new Qw(rn(Ct(ey,e),ot()))}class oc extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Error","TableData"]}}class ny extends Me{constructor(t,n){super(),this.Data=t,this.IsFiltered=n}}class Bi extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["PaginatedList"]}}class ry extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["SortedList"]}}class iy extends Me{constructor(t,n){super(),this.SortInfo=t,this.SortDirectionToggledHandler=n}}class Of extends Me{constructor(t,n){super(),this.Column=t,this.Direction=n}}class oy extends z{constructor(){super(),this.tag=0,this.fields=[]}cases(){return["Time"]}}class Lo extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NonEmptyPagingInfo","EmptyPagingInfo"]}}class sy extends Me{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 ay(e){return e.tag===1?Ff(e.fields[0].Data):Lf()}function ly(e){return e.tag===1?ti(e.fields[0].Data):new Lo(1,[])}function uy(e){const t=gl(Lf(),e);return new Bi([Vf(rl(e),20),t])}function Ui(e){return e.fields[0][1]}function Ff(e){return Rf(Ui(e))}function cy(e){return wl(Ui(e))}function ti(e){return e.fields[0][0]}function dy(e){const t=ti(e);if(t.tag===0){const n=t.fields[0],r=Mp(n.FirstRowIndex,cy(e));return Ip(Cy(n),r)}else return ot()}function Pf(e,t){const n=gl(Ff(e),t);return new Bi([by(ti(e),rl(wl(n))),n])}function fy(e){return new Bi([ti(e),py(Ui(e))])}function hy(e){return new Bi([vy(ti(e)),Ui(e)])}function my(e){return new Bi([yy(ti(e)),Ui(e)])}function gl(e,t){return new ry([e,Zw(e.Direction,n=>n.Timestamp,t)])}function wl(e){return e.fields[0][1]}function Rf(e){return e.fields[0][0]}function py(e){return gl(gy(Rf(e)),wl(e))}function Lf(){return new Of(new oy,new ya(0,[]))}function gy(e){return new Of(e.Column,Yw(e.Direction))}function Hf(e,t){return~~(e/t)+(e%t===0?0:1)}function ms(e,t,n){if(e<=0)return new Lo(1,[]);{const r=yu(n,Hf(e,t))|0,i=(r-1)*t|0;return new Lo(0,[new sy(r,i,yu(i+t-1,e-1),e,t)])}}function Vf(e,t){return ms(e,t,1)}function wy(e){if(e.tag===0){const t=e.fields[0];return Hf(t.TotalRecordsNumber,t.PageSize)|0}else return 0}function jf(e){return e.tag===0?e.fields[0].CurrentPage<wy(e):!1}function Bf(e){return e.tag===0?e.fields[0].CurrentPage>1:!1}function yy(e){const t=Bf(e);let n;switch(t&&e.tag===0?n=0:n=1,n){case 0:{const r=e.fields[0];return ms(r.TotalRecordsNumber,r.PageSize,r.CurrentPage-1)}default:return e}}function vy(e){const t=jf(e);let n;switch(t&&e.tag===0?n=0:n=1,n){case 0:{const r=e.fields[0];return ms(r.TotalRecordsNumber,r.PageSize,r.CurrentPage+1)}default:return e}}function by(e,t){return t<=0?new Lo(1,[]):e.tag===0?ms(t,20,e.fields[0].CurrentPage):Vf(t,20)}function _y(e){return e.FirstRowIndex+1}function xy(e){return e.LastRowIndex+1}function Cy(e){return e.LastRowIndex-e.FirstRowIndex+1}let Rn=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["LoadingError","ValidState"]}};class ni extends Me{constructor(t,n,r){super(),this.ImportHistory=t,this.View=n,this.PaginatedList=r}}class yl extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Default","Filtered"]}}function Sy(e){if(e.tag===1)return Uf(e.fields[0])}function Ey(e){return e.tag===0}function Ay(e){return e.tag===1?new oc(1,[Dy(e.fields[0])]):new oc(0,[])}function Uf(e){const t=e.View;if(t.tag===1)return t.fields[0]}function ky(e){return Uf(e)!=null}function Ty(e,t){return new Rn(1,[new ni(e.ImportHistory,new yl(1,[t]),Pf(e.PaginatedList,zd(n=>Jw(n.User,t),e.ImportHistory.UserActivities)))])}function $y(e){return new Rn(1,[new ni(e.ImportHistory,new yl(0,[]),Pf(e.PaginatedList,e.ImportHistory.UserActivities))])}function Ny(e){return new Rn(1,[new ni(e.ImportHistory,e.View,fy(e.PaginatedList))])}function My(e){return new Rn(1,[new ni(e.ImportHistory,e.View,hy(e.PaginatedList))])}function Iy(e){return new Rn(1,[new ni(e.ImportHistory,e.View,my(e.PaginatedList))])}function Dy(e){return new ny(e.PaginatedList,ky(e))}let Dr=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ApplyFilter","ClearFilter","ToggleSortDirection","NextPage","PrevPage"]}};function Oy(e){let t;return[e.tag===1?new Rn(0,[]):(t=e.fields[0],new Rn(1,[new ni(t,new yl(0,[]),uy(t.UserActivities))])),Z()]}function Wf(e,t){return e.tag===1?t(e.fields[0]):[new Rn(0,[]),Z()]}function Fy(e,t){return Wf(e,n=>[t(n),Z()])}function Py(e,t){const n=r=>Fy(t,r);switch(e.tag){case 1:return n($y);case 2:return n(Ny);case 3:return n(My);case 4:return n(Iy);default:{const r=e.fields[0];return Wf(t,i=>el(r)?[t,ge(o=>{o(new Dr(1,[]))})]:[Ty(i,r),Z()])}}}function Ry(e,t){let n,r;return f("svg",b(v([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",24],["xmlns","http://www.w3.org/2000/svg"],(n=ge(f("path",b(v([(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",x.Children.toArray(Array.from(n))])])))}function Ly(){let e,t,n;return f("div",b(v([["className","self-stretch px-12 pt-8 pb-4 bg-white justify-start items-end gap-6 inline-flex"],(e=[f("div",b(v([["className","grow shrink basis-0 h-[34px] rounded-md justify-start items-center gap-1 flex"],(t=[f("div",{className:"text-gray-900 text-2xl font-bold font-['BR Sonoma'] leading-7",children:"Users"}),f("div",b(v([["className","w-6 h-6 text-gray-900 relative overflow-hidden"],(n=[Ry(24,24)],["children",x.Children.toArray(Array.from(n))])]))),f("div",{className:"text-gray-900 text-2xl font-bold font-['BR Sonoma'] leading-7",children:"Past activities"})],["children",x.Children.toArray(Array.from(t))])])))],["children",x.Children.toArray(Array.from(e))])])))}function Hy(e,t){let n,r;return f("svg",b(v([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=ge(f("path",b(v([["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",x.Children.toArray(Array.from(n))])])))}function va(e,t){let n,r;return f("svg",b(v([["width",e],["height",t],["viewBox","0 0 "+e+" "+t],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(n=ge(f("path",b(v([(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",x.Children.toArray(Array.from(n))])])))}class sc extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateFilter","ClearFilter"]}}function Vy(e){let t,n;const r=rn(e.Value,"");return f("div",b(v([["className","self-stretch justify-start items-start gap-4 inline-flex"],(t=[f("div",b(v([["className",St(" ",["relative w-96 overflow-hidden focus:outline-none focus:border-blue-600"])],(n=he(O(()=>{let i;return te(M(f("div",b(v([["className","pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3"],(i=[Hy(20,20)],["children",x.Children.toArray(Array.from(i))])])))),O(()=>{let o;return te(M(f("input",b(v([(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 sc(0,[s.target.value]))}],["value",r],["disabled",e.Disabled]])))),O(()=>{let s;return el(r)?M(Se()):M(f("div",b(v([["onClick",a=>{e.ActionHandler(new sc(1,[]))}],["className","absolute inset-y-0 right-0 flex items-center pr-3 cursor-pointer text-gray-600"],(s=[va(10,10)],["children",x.Children.toArray(Array.from(s))])]))))}))}))})),["children",x.Children.toArray(Array.from(n))])])))],["children",x.Children.toArray(Array.from(t))])])))}function jy(e){let t,n;const r=e.height,i=e.width;return f("svg",b(v([["fill","none"],["height",r],["width",i],["viewBox","0 0 "+i+" "+r],["xmlns","http://www.w3.org/2000/svg"],(t=ge(f("path",b(v([(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",x.Children.toArray(Array.from(t))])])))}function By(e){let t;const n=e.sortDirectionChangeHandler,r=e.sortDirection;return f("div",b(v([["className",St(" ",he(O(()=>te(M("w-5 h-5 bg-gray-200 rounded overflow-hidden flex flex-col justify-center items-center"),O(()=>r.tag===1?M("rotate-180"):M(""))))))],["onClick",i=>{n(void 0)}],(t=[f(jy,{width:10,height:7})],["children",x.Children.toArray(Array.from(t))])])))}function Uy(e){const t=e.toggleSortDirection,n=e.props;return f(By,{sortDirection:n.Direction,sortDirectionChangeHandler:t})}function Wy(e){let t,n,r,i;const o=f(Uy,{props:e.SortInfo,toggleSortDirection:e.SortDirectionToggledHandler});return f("div",b(v([["className","flex-none grid grid-cols-7"],(t=[f("div",b(v([["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=[f("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Time"}),o],["children",x.Children.toArray(Array.from(n))])]))),f("div",b(v([["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=[f("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Actor"})],["children",x.Children.toArray(Array.from(r))])]))),f("div",b(v([["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=[f("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Activity"})],["children",x.Children.toArray(Array.from(i))])])))],["children",x.Children.toArray(Array.from(t))])])))}function Ho(e){"@babel/helpers - typeof";return Ho=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},Ho(e)}function sr(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 _t(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function an(e){_t(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Ho(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 Gy(e,t){_t(2,arguments);var n=an(e).getTime(),r=sr(t);return new Date(n+r)}var qy={};function ps(){return qy}function zy(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 Yy(e){return _t(1,arguments),e instanceof Date||Ho(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Zy(e){if(_t(1,arguments),!Yy(e)&&typeof e!="number")return!1;var t=an(e);return!isNaN(Number(t))}function Ky(e,t){_t(2,arguments);var n=sr(t);return Gy(e,-n)}var Xy=864e5;function Qy(e){_t(1,arguments);var t=an(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/Xy)+1}function Vo(e){_t(1,arguments);var t=1,n=an(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 Gf(e){_t(1,arguments);var t=an(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=Vo(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var s=Vo(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function Jy(e){_t(1,arguments);var t=Gf(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=Vo(n);return r}var ev=6048e5;function tv(e){_t(1,arguments);var t=an(e),n=Vo(t).getTime()-Jy(t).getTime();return Math.round(n/ev)+1}function jo(e,t){var n,r,i,o,s,a,l,u;_t(1,arguments);var d=ps(),c=sr((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(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=an(e),m=p.getUTCDay(),h=(m<c?7:0)+m-c;return p.setUTCDate(p.getUTCDate()-h),p.setUTCHours(0,0,0,0),p}function qf(e,t){var n,r,i,o,s,a,l,u;_t(1,arguments);var d=an(e),c=d.getUTCFullYear(),p=ps(),m=sr((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(c+1,0,m),h.setUTCHours(0,0,0,0);var g=jo(h,t),w=new Date(0);w.setUTCFullYear(c,0,m),w.setUTCHours(0,0,0,0);var C=jo(w,t);return d.getTime()>=g.getTime()?c+1:d.getTime()>=C.getTime()?c:c-1}function nv(e,t){var n,r,i,o,s,a,l,u;_t(1,arguments);var d=ps(),c=sr((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=qf(e,t),m=new Date(0);m.setUTCFullYear(p,0,c),m.setUTCHours(0,0,0,0);var h=jo(m,t);return h}var rv=6048e5;function iv(e,t){_t(1,arguments);var n=an(e),r=jo(n,t).getTime()-nv(n,t).getTime();return Math.round(r/rv)+1}function Ie(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var Tn={y:function(t,n){var r=t.getUTCFullYear(),i=r>0?r:1-r;return Ie(n==="yy"?i%100:i,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):Ie(r+1,2)},d:function(t,n){return Ie(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 Ie(t.getUTCHours()%12||12,n.length)},H:function(t,n){return Ie(t.getUTCHours(),n.length)},m:function(t,n){return Ie(t.getUTCMinutes(),n.length)},s:function(t,n){return Ie(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 Ie(o,n.length)}},_r={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ov={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 Tn.y(t,n)},Y:function(t,n,r,i){var o=qf(t,i),s=o>0?o:1-o;if(n==="YY"){var a=s%100;return Ie(a,2)}return n==="Yo"?r.ordinalNumber(s,{unit:"year"}):Ie(s,n.length)},R:function(t,n){var r=Gf(t);return Ie(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return Ie(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 Ie(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 Ie(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 Tn.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 Ie(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=iv(t,i);return n==="wo"?r.ordinalNumber(o,{unit:"week"}):Ie(o,n.length)},I:function(t,n,r){var i=tv(t);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):Ie(i,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):Tn.d(t,n)},D:function(t,n,r){var i=Qy(t);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):Ie(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 Ie(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 Ie(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 Ie(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=_r.noon:i===0?o=_r.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=_r.evening:i>=12?o=_r.afternoon:i>=4?o=_r.morning:o=_r.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 Tn.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Tn.H(t,n)},K:function(t,n,r){var i=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):Ie(i,n.length)},k:function(t,n,r){var i=t.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):Ie(i,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Tn.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Tn.s(t,n)},S:function(t,n){return Tn.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 lc(s);case"XXXX":case"XX":return zn(s);case"XXXXX":case"XXX":default:return zn(s,":")}},x:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"x":return lc(s);case"xxxx":case"xx":return zn(s);case"xxxxx":case"xxx":default:return zn(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"+ac(s,":");case"OOOO":default:return"GMT"+zn(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"+ac(s,":");case"zzzz":default:return"GMT"+zn(s,":")}},t:function(t,n,r,i){var o=i._originalDate||t,s=Math.floor(o.getTime()/1e3);return Ie(s,n.length)},T:function(t,n,r,i){var o=i._originalDate||t,s=o.getTime();return Ie(s,n.length)}};function ac(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+Ie(o,2)}function lc(e,t){if(e%60===0){var n=e>0?"-":"+";return n+Ie(Math.abs(e)/60,2)}return zn(e,t)}function zn(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),o=Ie(Math.floor(i/60),2),s=Ie(i%60,2);return r+o+n+s}var uc=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"})}},zf=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"})}},sv=function(t,n){var r=t.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return uc(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}}",uc(i,n)).replace("{{time}}",zf(o,n))},av={p:zf,P:sv},lv=["D","DD"],uv=["YY","YYYY"];function cv(e){return lv.indexOf(e)!==-1}function dv(e){return uv.indexOf(e)!==-1}function cc(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 fv={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"}},hv=function(t,n,r){var i,o=fv[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 Bs(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 mv={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},pv={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},gv={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},wv={date:Bs({formats:mv,defaultWidth:"full"}),time:Bs({formats:pv,defaultWidth:"full"}),dateTime:Bs({formats:gv,defaultWidth:"full"})},yv={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},vv=function(t,n,r,i){return yv[t]};function fi(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 bv={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},_v={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},xv={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"]},Cv={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"]},Sv={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"}},Ev={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"}},Av=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"},kv={ordinalNumber:Av,era:fi({values:bv,defaultWidth:"wide"}),quarter:fi({values:_v,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:fi({values:xv,defaultWidth:"wide"}),day:fi({values:Cv,defaultWidth:"wide"}),dayPeriod:fi({values:Sv,defaultWidth:"wide",formattingValues:Ev,defaultFormattingWidth:"wide"})};function hi(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)?$v(a,function(c){return c.test(s)}):Tv(a,function(c){return c.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 Tv(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function $v(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function Nv(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 Mv=/^(\d+)(th|st|nd|rd)?/i,Iv=/\d+/i,Dv={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},Ov={any:[/^b/i,/^(a|c)/i]},Fv={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Pv={any:[/1/i,/2/i,/3/i,/4/i]},Rv={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},Lv={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]},Hv={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},Vv={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]},jv={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},Bv={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}},Uv={ordinalNumber:Nv({matchPattern:Mv,parsePattern:Iv,valueCallback:function(t){return parseInt(t,10)}}),era:hi({matchPatterns:Dv,defaultMatchWidth:"wide",parsePatterns:Ov,defaultParseWidth:"any"}),quarter:hi({matchPatterns:Fv,defaultMatchWidth:"wide",parsePatterns:Pv,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:hi({matchPatterns:Rv,defaultMatchWidth:"wide",parsePatterns:Lv,defaultParseWidth:"any"}),day:hi({matchPatterns:Hv,defaultMatchWidth:"wide",parsePatterns:Vv,defaultParseWidth:"any"}),dayPeriod:hi({matchPatterns:jv,defaultMatchWidth:"any",parsePatterns:Bv,defaultParseWidth:"any"})},Wv={code:"en-US",formatDistance:hv,formatLong:wv,formatRelative:vv,localize:kv,match:Uv,options:{weekStartsOn:0,firstWeekContainsDate:1}},Gv=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,qv=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,zv=/^'([^]*?)'?$/,Yv=/''/g,Zv=/[a-zA-Z]/;function Yf(e,t,n){var r,i,o,s,a,l,u,d,c,p,m,h,g,w;_t(2,arguments);var C=String(t),S=ps(),E=(r=(i=void 0)!==null&&i!==void 0?i:S.locale)!==null&&r!==void 0?r:Wv,$=sr((o=(s=(a=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&a!==void 0?a:S.firstWeekContainsDate)!==null&&s!==void 0?s:(u=S.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!($>=1&&$<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=sr((c=(p=(m=(h=void 0)!==null&&h!==void 0?h:void 0)!==null&&m!==void 0?m:S.weekStartsOn)!==null&&p!==void 0?p:(g=S.locale)===null||g===void 0||(w=g.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&c!==void 0?c:0);if(!(P>=0&&P<=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 H=an(e);if(!Zy(H))throw new RangeError("Invalid time value");var R=zy(H),_=Ky(H,R),y={firstWeekContainsDate:$,weekStartsOn:P,locale:E,_originalDate:H},A=C.match(qv).map(function(k){var N=k[0];if(N==="p"||N==="P"){var I=av[N];return I(k,E.formatLong)}return k}).join("").match(Gv).map(function(k){if(k==="''")return"'";var N=k[0];if(N==="'")return Kv(k);var I=ov[N];if(I)return dv(k)&&cc(k,t,String(e)),cv(k)&&cc(k,t,String(e)),I(_,k,E.localize,y);if(N.match(Zv))throw new RangeError("Format string contains an unescaped latin alphabet character `"+N+"`");return k}).join("");return A}function Kv(e){var t=e.match(zv);return t?t[1].replace(Yv,"'"):e}function Xv(e){return Yf(e,"d MMM, yyyy")}function Qv(e){return Yf(e,"h:mm a")}function Jv(e){let t,n,r,i,o,s,a;return f("div",b(v([["className","grid grid-cols-7"],(t=[f("div",b(v([["className","col-span-1 px-6 py-4 bg-white border-b border-gray-200 flex justify-start items-center gap-4"],(n=[f("div",b(v([["className"," flex flex-col justify-center items-start"],(r=[f("div",b(v([["className","self-stretch justify-start items-center gap-2 inline-flex"],(i=[f("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:Xv(e.Timestamp)})],["children",x.Children.toArray(Array.from(i))])]))),f("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:Qv(e.Timestamp)})],["children",x.Children.toArray(Array.from(r))])])))],["children",x.Children.toArray(Array.from(n))])]))),f("div",b(v([["className","col-span-2 px-6 py-4 bg-white border-b border-gray-200 flex justify-start items-start gap-4"],(o=[f("div",b(v([["className","justify-center items-start flex flex-col"],(s=he(O(()=>{let l;return te(M(f("div",b(v([["className","self-stretch justify-start items-center gap-2 inline-flex"],(l=[f("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:e.User.Name})],["children",x.Children.toArray(Array.from(l))])])))),O(()=>{const u=e.User.Email;return u==null?M(Se()):M(f("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:u}))}))})),["children",x.Children.toArray(Array.from(s))])])))],["children",x.Children.toArray(Array.from(o))])]))),f("div",b(v([["className","col-span-4 px-6 py-4 bg-white border-b border-gray-200 justify-start items-center gap-1 flex"],(a=[f("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:e.Activity})],["children",x.Children.toArray(Array.from(a))])])))],["children",x.Children.toArray(Array.from(t))])])))}function eb(e){const t=Vi(n=>f(Jv,n),e.Data);return f("div",{className:"self-stretch flex flex-col justify-start items-stretch",children:x.Children.toArray(Array.from(t))})}function tb(e){let t,n,r,i,o;const s=e.height,a=e.width;return f("svg",b(v([["width",a],["height",s],["viewBox","0 0 "+a+" "+s],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(t=v([f("path",b(v([(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)"]]))),f("path",{d:"M60 42V67",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),f("path",b(v([(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=ge(f("linearGradient",b(v([["id","paint0_linear_3770_593"],["x1",20],["y1",20],["x2",100],["y2",20],(o=v([f("stop",{offset:0,stopColor:"#FFD84D"}),f("stop",{offset:1,stopColor:"#FF876F"})]),["children",x.Children.toArray(Array.from(o))])])))),f("defs",{children:x.Children.toArray(Array.from(i))}))]),["children",x.Children.toArray(Array.from(t))])])))}function nb(){let e;return f("div",b(v([["className","w-[120px] h-[120px] flex flex-col justify-center items-center"],(e=[f(tb,{width:120,height:120})],["children",x.Children.toArray(Array.from(e))])])))}function rb(){let e,t,n,r;return f("div",b(v([["className","self-stretch grow shrink basis-0 flex flex-col justify-center items-center"],(e=[f(nb,null),f("div",b(v([["className","flex-col justify-start items-center gap-6 inline-flex"],(t=[f("div",b(v([["className","self-stretch h-[72px] flex-col justify-start items-start gap-3 flex"],(n=[f("div",b(v([["className","h-[72px] flex-col justify-start items-center gap-1 flex"],(r=[f("div",{className:"self-stretch text-center text-gray-900 text-xl font-bold leading-7",children:"We couldn’t load your past activities"}),f("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",x.Children.toArray(Array.from(r))])])))],["children",x.Children.toArray(Array.from(n))])])))],["children",x.Children.toArray(Array.from(t))])])))],["children",x.Children.toArray(Array.from(e))])])))}function ib(e){return{Data:dy(e.Data)}}function ob(e){let t;const n=e.props,r=n.tag===1?f(eb,ib(n.fields[0])):f(rb,null);return f("div",b(v([["className","relative h-full grow"],(t=[f("div",{className:"overflow-y-auto self-stretch flex flex-col justify-start",style:{scrollbarWidth:"none"},children:x.Children.toArray([r])})],["children",x.Children.toArray(Array.from(t))])])))}class dc extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Prev","Next"]}}function sb(e){let t,n;const r=e.pageChangedHandler,i=e.pagingInfo;return f("div",b(v([["className","flex-none h-[60px] bg-white flex-col justify-start items-start flex"],(t=[f("div",{className:"self-stretch h-px bg-gray-200"}),f("div",b(v([["className","self-stretch px-6 py-3 justify-between items-center inline-flex"],(n=he(O(()=>{let o,s,a;return te((o=i,o.tag===1?M(f("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:"No results found"})):(s=o.fields[0],M((a=v([f("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:Xt(_y(s))}),f("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" to "}),f("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:Xt(xy(s))}),f("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" of "}),f("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:Xt(s.TotalRecordsNumber)}),f("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" results"})]),f("div",{children:x.Children.toArray(Array.from(a))}))))),O(()=>{let l,u,d;return M(f("div",b(v([["className","justify-start items-start gap-3 flex"],(l=[f("button",b(v([["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",c=>{r(new dc(0,[]))}],["disabled",!Bf(i)]]))),f("button",b(v([["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",c=>{r(new dc(1,[]))}],["disabled",!jf(i)]])))],["children",x.Children.toArray(Array.from(l))])]))))}))})),["children",x.Children.toArray(Array.from(n))])])))],["children",x.Children.toArray(Array.from(t))])])))}class ba extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ToggleSortDirection","NextPage","PrevPage"]}}function ab(e,t){e(t.tag===0?new ba(2,[]):new ba(1,[]))}function lb(e){let t,n;const r=e.actionHandler,i=e.props;return f("div",b(v([(t="self-stretch grow bg-white rounded-lg shadow border border-gray-200 flex flex-col justify-center items-stretch",["className",t]),(n=[f(Wy,new iy(ay(i),()=>{r(new ba(0,[]))})),f(ob,{props:i}),f(sb,{pagingInfo:ly(i),pageChangedHandler:o=>{ab(r,o)}})],["children",x.Children.toArray(Array.from(n))])])))}function ub(e,t){t.tag===0?e(new Dr(0,[t.fields[0]])):e(new Dr(1,[]))}function cb(e,t){switch(t.tag){case 2:{e(new Dr(4,[]));break}case 0:{e(new Dr(2,[]));break}default:e(new Dr(3,[]))}}function fc(e){let t,n;const r=e.importHistory;let i;const o=Oy(r);i=ei(()=>Jr(()=>o,Py,(d,c)=>{}),void 0,void 0);const s=i[0],a=i[1];let l;const u=Sy(s);return l={ActionHandler:d=>{ub(a,d)},Disabled:Ey(s),Value:ho(u)},f("div",b(v([["className","self-stretch grow basis-0 flex flex-col justify-start items-start gap-2"],(t=[f(Ly,null),f("div",b(v([["className","self-stretch grow shrink basis-0 px-12 pb-6 flex flex-col justify-start items-start gap-2"],(n=[f(Vy,l),f(lb,{props:Ay(s),actionHandler:d=>{cb(a,d)}})],["children",x.Children.toArray(Array.from(n))])])))],["children",x.Children.toArray(Array.from(t))])])))}class hc extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Header","Row"]}}function db(e,t){let n;const r=e.tag===1?["bg-white","bg-gray-100","h-[72px]"]:["bg-gray-50","bg-gray-300",""];return f("div",b(v([["className",St(" ",["px-6 py-3.5 border-b border-gray-200 justify-start items-center gap-2 flex",r[0],r[2],t])],(n=[f("div",{className:St(" ",["w-full h-4 relative rounded",r[1]])})],["children",x.Children.toArray(Array.from(n))])])))}function mc(e){const t=Vi(n=>db(e,n),v(["col-span-1","col-span-2","col-span-4"]));return f("div",{className:"grid grid-cols-7",children:x.Children.toArray(Array.from(t))})}function fb(){let e,t;return f("div",b(v([(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=as(ge(mc(new hc(0,[]))),Vi(n=>mc(new hc(1,[])),he(If(1,1,5)))),["children",x.Children.toArray(Array.from(t))])])))}function hb(e){const t=aw(e.backendUrl);let n;const r=ei(()=>Jr(Kw,(o,s)=>Xw(()=>lw(t),o),(o,s)=>{}),void 0,[])[0].View;n=r.tag===2?f(fc,{importHistory:new T(1,[void 0])}):r.tag===1?f(fc,{importHistory:new T(0,[ty(r.fields[0])])}):f(fb,null);const i=[f("style",{children:[Xa]}),n];return f(Le,{},...i)}function mb(){Ha(e=>f(hb,e),"apollo-import-workspace-past-history")}class pb{constructor(t,n){const r=new mt(Se());this.comparer=n,r.contents=this,this.hashMap=new Map([]),this["init@9"]=1;const i=ke(t);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const o=i["System.Collections.Generic.IEnumerator`1.get_Current"]();Us(r.contents,o[0],o[1])}}finally{Te(i)}}get[Symbol.toStringTag](){return"Dictionary"}toJSON(){const t=this;return Array.from(t)}"System.Collections.IEnumerable.GetEnumerator"(){return ke(this)}GetEnumerator(){return ke(cs(this.hashMap.values()))}[Symbol.iterator](){return Yr(ke(this))}"System.Collections.Generic.ICollection`1.Add2B595"(t){Us(this,t[0],t[1])}"System.Collections.Generic.ICollection`1.Clear"(){pc(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const r=wo(this,t[0]);let i;switch(r!=null&&J(L(r)[1],t[1])?(i=0,L(r)):i=1,i){case 0:return!0;default:return!1}}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){nf((i,o)=>{At(t,n+i,o)},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return gc(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(t){const n=this,r=wo(n,t[0]);return r!=null?(J(L(r)[1],t[1])&&Ws(n,t[0]),!0):!1}"System.Collections.Generic.IDictionary`2.Add5BDDA1"(t,n){Us(this,t,n)}"System.Collections.Generic.IDictionary`2.ContainsKey2B595"(t){return vc(this,t)}"System.Collections.Generic.IDictionary`2.get_Item2B595"(t){return wc(this,t)}"System.Collections.Generic.IDictionary`2.set_Item5BDDA1"(t,n){yc(this,t,n)}"System.Collections.Generic.IDictionary`2.get_Keys"(){const t=this;return Fn(O(()=>Ze(n=>n[0],t)))}"System.Collections.Generic.IDictionary`2.Remove2B595"(t){return Ws(this,t)}"System.Collections.Generic.IDictionary`2.TryGetValue6DC89625"(t,n){const i=wo(this,t);if(i!=null){const o=L(i);return n.contents=o[1],!0}else return!1}"System.Collections.Generic.IDictionary`2.get_Values"(){const t=this;return Fn(O(()=>Ze(n=>n[1],t)))}get size(){return gc(this)|0}clear(){pc(this)}delete(t){return Ws(this,t)}entries(){return Ze(n=>[n[0],n[1]],this)}get(t){return wc(this,t)}has(t){return vc(this,t)}keys(){return Ze(n=>n[0],this)}set(t,n){const r=this;return yc(r,t,n),r}values(){return Ze(n=>n[1],this)}forEach(t,n){const r=this;pr(i=>{t(i[1],i[0],r)},r)}}function Wi(e,t){const n=e.comparer.GetHashCode(t)|0;let r,i=Se();return r=[cl(e.hashMap,n,new mt(()=>i,o=>{i=o})),i],r[0]?[!0,n,r[1].findIndex(o=>e.comparer.Equals(t,o[0]))]:[!1,n,-1]}function wo(e,t){const n=Wi(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return Pn(e.hashMap,n[1])[n[2]];default:return}}function pc(e){e.hashMap.clear()}function gc(e){let t=0,n=ke(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{Te(n)}return t|0}function wc(e,t){const n=wo(e,t);if(n!=null)return L(n)[1];throw new Error("The item was not found in collection")}function yc(e,t,n){const r=Wi(e,t);r[0]?r[2]>-1?Pn(e.hashMap,r[1])[r[2]]=[t,n]:Pn(e.hashMap,r[1]).push([t,n]):e.hashMap.set(r[1],[[t,n]])}function Us(e,t,n){const r=Wi(e,t);if(r[0]){if(r[2]>-1)throw new Error(Fd("An item with the same key has already been added. Key: {0}",t));Pn(e.hashMap,r[1]).push([t,n])}else e.hashMap.set(r[1],[[t,n]])}function vc(e,t){const n=Wi(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return!0;default:return!1}}function Ws(e,t){const n=Wi(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return Pn(e.hashMap,n[1]).splice(n[2],1),!0;default:return!1}}function gb(e,t){return O(()=>{const n=new yf([],t);return ll(r=>pf(r,n),e)})}function wb(e,t,n){return O(()=>{const r=new yf(e,n);return ll(i=>pf(i,r),t)})}function yb(e,t,n){return O(()=>{const r=new pb([],n),i=[],o=ke(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=[cl(r,a,new mt(()=>u,d=>{u=d})),u],l[0]?l[1].push(s):(jg(r,a,[s]),i.push(a))}}finally{Te(o)}return Ze(s=>[s,Pn(r,s)],i)})}function Zf(e,t){return Fn(gb(e,t))}function Kf(e,t,n){return Fn(wb(e,t,n))}function vb(e,t,n){return Fn(Ze(r=>[r[0],Fn(r[1])],yb(e,t,n)))}class bb extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvColumnIndex"]}}class _b extends Me{constructor(t,n,r,i){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=i}}class xb extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisCsvColumnIndex"]}}class Si extends Me{constructor(t,n,r,i,o){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=i,this.EmploymentBasis=o}}new Si(void 0,void 0,void 0,void 0,void 0);function bc(e,t){return new Si(e.FirstName,e.LastName,e.Email,e.MobilePhone,Ct(n=>n.fields[0],t))}class Cb extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisRawValue"]}}class ct extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FullTime","PartTime","Casual","LabourHire"]}}class Sb extends Me{constructor(t,n){super(),this.Head=t,this.Tail=n}}class Eb extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisColumn"]}}class xr extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["WithoutEmploymentBasis","WithEmploymentBasis"]}}class cn extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["DraftColumnMappings","ValidatedColumnMappings"]}}class Ab extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvColumnName"]}}class kb extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvDataRow"]}}class Tb extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvDataRows"]}}function $b(e,t){let n;return new Eb(et(r=>new Cb(r),_p(r=>r,Zf((n=et(r=>Ae(t.fields[0].fields[0],r.fields[0]),e.fields[0]),n.filter(r=>!ts(r))),{Equals:(r,i)=>r===i,GetHashCode:Vn}),{Compare:Jo})))}class Xf extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FileName"]}}class Nb extends Me{constructor(t,n,r,i){super(),this.Name=t,this.HeaderRow=n,this.DataRows=r,this.SizeInBytes=i|0}}class ro extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Draft","Valid"]}}class pe extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FirstName","LastName","Email","MobilePhone","EmploymentBasis"]}}function Qf(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"}}let Gn=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Set","Clear","Preview"]}};class mi extends Me{constructor(t,n){super(),this.ColumnIndex=t,this.IncomingFields=n}}class Mb extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["IncomingFields"]}}class hn extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Available","Unavailable"]}}let Sr=class extends Me{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 Ib(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 Ct(r=>r[0],os(r=>Kr(Ja(r[1].fields[0],"[^a-zA-Z]","").toLocaleLowerCase(),n,{Equals:(i,o)=>i===o,GetHashCode:Vn}),e))}function Db(e,t){return new Mb(et(n=>{const r=n[0];return[r,n[1],Kr(r,t,{Equals:J,GetHashCode:Eo})?new hn(1,[]):new hn(0,[])]},e))}function Jf(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 Er(e,t){return Pt(n=>n,et(n=>Wd(e.fields[0],n.fields[0]),t.fields[0].slice(void 0,10)))}function vl(e,t,n,r,i,o,s){let a,l,u;const d=h=>Db(e,h);let c;c=Pt(h=>h,[n,r,i,o,s]).length;const m=n!=null?r!=null?i!=null?(a=i,l=n,u=r,new ro(1,[new _b(l,u,a,o),Ct(h=>new xb(h),s)])):new ro(0,[new Si(n,r,i,o,s)]):new ro(0,[new Si(n,r,i,o,s)]):new ro(0,[new Si(n,r,i,o,s)]);return new Sr(new mi(n,d(Pt(h=>h,[r,i,o,s]))),new mi(r,d(Pt(h=>h,[n,i,o,s]))),new mi(i,d(Pt(h=>h,[n,r,o,s]))),new mi(o,d(Pt(h=>h,[n,r,i,s]))),new mi(s,d(Pt(h=>h,[n,r,i,o]))),t,e.length,c,e.length-c,m)}function pi(e,t,n,r,i){let o,s,a;const l=[r,i];return a=Jf(n,l[0],l[1]),vl(e,(o=n.Preview,o!=null&&J(o[0],r)?(s=o[0],[s,Er(i,t)]):n.Preview),a[0],a[1],a[2],a[3],a[4])}function gi(e,t,n){let r,i;const o=[n,void 0];return i=Jf(t,o[0],o[1]),vl(e,(r=t.Preview,r!=null&&J(r[0],n)?(r[0],void 0):t.Preview),i[0],i[1],i[2],i[3],i[4])}function eh(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 Ob=e=>t=>eh(e,t);function Fb(e,t){const n=eh(e,t),r=e.Preview;let i;switch(n?r==null?i=2:J(r[0],t)?(i=1,r[0]):i=2:i=0,i){case 0:return!1;case 1:return!1;default:return!0}}function Pb(e,t){let n,r,i,o,s,a,l,u,d;const c=p=>Ib(e,p);return[(n=t==null?(r=c(new pe(0,[])),i=c(new pe(1,[])),o=c(new pe(2,[])),s=c(new pe(3,[])),a=c(new pe(4,[])),l=Pt(p=>p,[r,i,o,s,a]),u=p=>{let m,h;switch(p!=null?(m=p,l.filter(g=>J(g,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]),vl(e,void 0,n[0],n[1],n[2],n[3],n[4])),Z()]}function Rb(e,t,n,r){let i,o,s,a,l,u,d,c,p,m,h,g,w,C,S,E,$,P,H,R,_;switch(n.tag){case 1:{switch(n.fields[0].tag){case 1:{r.LastName.ColumnIndex!=null?h=6:h=15;break}case 2:{r.Email.ColumnIndex!=null?h=7:h=15;break}case 3:{r.MobilePhone.ColumnIndex!=null?h=8:h=15;break}case 4:{r.EmploymentBasis.ColumnIndex!=null?h=9:h=15;break}default:r.FirstName.ColumnIndex!=null?h=5:h=15}break}case 2:{switch(n.fields[0].tag){case 1:{r.LastName.ColumnIndex!=null?(h=11,P=r.LastName.ColumnIndex):h=15;break}case 2:{r.Email.ColumnIndex!=null?(h=12,H=r.Email.ColumnIndex):h=15;break}case 3:{r.MobilePhone.ColumnIndex!=null?(h=13,R=r.MobilePhone.ColumnIndex):h=15;break}case 4:{r.EmploymentBasis.ColumnIndex!=null?(h=14,_=r.EmploymentBasis.ColumnIndex):h=15;break}default:r.FirstName.ColumnIndex!=null?(h=10,$=r.FirstName.ColumnIndex):h=15}break}default:switch(n.fields[0].tag){case 1:{u=n.fields[1],!J(r.LastName.ColumnIndex,u)&&r.LastName.IncomingFields.fields[0].some(y=>J(u,y[0])?J(y[2],new hn(0,[])):!1)?(h=1,r.LastName.ColumnIndex,r.LastName.IncomingFields.fields[0],w=n.fields[1]):h=15;break}case 2:{d=n.fields[1],!J(r.Email.ColumnIndex,d)&&r.Email.IncomingFields.fields[0].some(y=>J(d,y[0])?J(y[2],new hn(0,[])):!1)?(h=2,r.Email.ColumnIndex,r.Email.IncomingFields.fields[0],C=n.fields[1]):h=15;break}case 3:{c=n.fields[1],!J(r.MobilePhone.ColumnIndex,c)&&r.MobilePhone.IncomingFields.fields[0].some(y=>J(c,y[0])?J(y[2],new hn(0,[])):!1)?(h=3,r.MobilePhone.ColumnIndex,r.MobilePhone.IncomingFields.fields[0],S=n.fields[1]):h=15;break}case 4:{p=n.fields[1],!J(r.EmploymentBasis.ColumnIndex,p)&&r.EmploymentBasis.IncomingFields.fields[0].some(y=>J(p,y[0])?J(y[2],new hn(0,[])):!1)?(h=4,r.EmploymentBasis.ColumnIndex,r.EmploymentBasis.IncomingFields.fields[0],E=n.fields[1]):h=15;break}default:m=n.fields[1],!J(r.FirstName.ColumnIndex,m)&&r.FirstName.IncomingFields.fields[0].some(y=>J(m,y[0])?J(y[2],new hn(0,[])):!1)?(h=0,r.FirstName.ColumnIndex,r.FirstName.IncomingFields.fields[0],g=n.fields[1]):h=15}}switch(h){case 0:return[(i=[new pe(0,[]),g],pi(e,t,r,i[0],i[1])),Z()];case 1:return[(o=[new pe(1,[]),w],pi(e,t,r,o[0],o[1])),Z()];case 2:return[(s=[new pe(2,[]),C],pi(e,t,r,s[0],s[1])),Z()];case 3:return[(a=[new pe(3,[]),S],pi(e,t,r,a[0],a[1])),Z()];case 4:return[(l=[new pe(4,[]),E],pi(e,t,r,l[0],l[1])),Z()];case 5:return[gi(e,r,new pe(0,[])),Z()];case 6:return[gi(e,r,new pe(1,[])),Z()];case 7:return[gi(e,r,new pe(2,[])),Z()];case 8:return[gi(e,r,new pe(3,[])),Z()];case 9:return[gi(e,r,new pe(4,[])),Z()];case 10:return[new Sr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new pe(0,[]),Er($,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),Z()];case 11:return[new Sr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new pe(1,[]),Er(P,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),Z()];case 12:return[new Sr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new pe(2,[]),Er(H,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),Z()];case 13:return[new Sr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new pe(3,[]),Er(R,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),Z()];case 14:return[new Sr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new pe(4,[]),Er(_,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),Z()];default:return[r,Z()]}}const th=typeof document<"u"?W.useLayoutEffect:()=>{};function Lb(e){const t=Q(null);return th(()=>{t.current=e},[e]),_e((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}const Gi=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Jn=e=>e&&"window"in e&&e.window===e?e:Gi(e).defaultView||window;function Hb(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 Vb(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 nh(e){let t=null;return()=>(t==null&&(t=e()),t)}const jb=nh(function(){return Vb(/^Mac/i)}),Bb=nh(function(){return Hb(/Android/i)});function Ub(e){return e.mozInputSource===0&&e.isTrusted?!0:Bb()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}class Wb{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 rh(e){let t=Q({isFocused:!1,observer:null});th(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Lb(r=>{e==null||e(r)});return _e(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 Wb("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 Gb(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=_e(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),s=rh(o),a=_e(l=>{const u=Gi(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 qi=null,_a=new Set,Ei=new Map,ar=!1,xa=!1;const qb={Tab:!0,Escape:!0};function bl(e,t){for(let n of _a)n(e,t)}function zb(e){return!(e.metaKey||!jb()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Bo(e){ar=!0,zb(e)&&(qi="keyboard",bl("keyboard",e))}function Lt(e){qi="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(ar=!0,bl("pointer",e))}function ih(e){Ub(e)&&(ar=!0,qi="virtual")}function oh(e){e.target===window||e.target===document||(!ar&&!xa&&(qi="virtual",bl("virtual",e)),ar=!1,xa=!1)}function sh(){ar=!1,xa=!0}function Ca(e){if(typeof window>"u"||Ei.get(Jn(e)))return;const t=Jn(e),n=Gi(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){ar=!0,r.apply(this,arguments)},n.addEventListener("keydown",Bo,!0),n.addEventListener("keyup",Bo,!0),n.addEventListener("click",ih,!0),t.addEventListener("focus",oh,!0),t.addEventListener("blur",sh,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Lt,!0),n.addEventListener("pointermove",Lt,!0),n.addEventListener("pointerup",Lt,!0)):(n.addEventListener("mousedown",Lt,!0),n.addEventListener("mousemove",Lt,!0),n.addEventListener("mouseup",Lt,!0)),t.addEventListener("beforeunload",()=>{ah(e)},{once:!0}),Ei.set(t,{focus:r})}const ah=(e,t)=>{const n=Jn(e),r=Gi(e);t&&r.removeEventListener("DOMContentLoaded",t),Ei.has(n)&&(n.HTMLElement.prototype.focus=Ei.get(n).focus,r.removeEventListener("keydown",Bo,!0),r.removeEventListener("keyup",Bo,!0),r.removeEventListener("click",ih,!0),n.removeEventListener("focus",oh,!0),n.removeEventListener("blur",sh,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Lt,!0),r.removeEventListener("pointermove",Lt,!0),r.removeEventListener("pointerup",Lt,!0)):(r.removeEventListener("mousedown",Lt,!0),r.removeEventListener("mousemove",Lt,!0),r.removeEventListener("mouseup",Lt,!0)),Ei.delete(n))};function Yb(e){const t=Gi(e);let n;return t.readyState!=="loading"?Ca(e):(n=()=>{Ca(e)},t.addEventListener("DOMContentLoaded",n)),()=>ah(e,n)}typeof document<"u"&&Yb();function lh(){return qi!=="pointer"}const Zb=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Kb(e,t,n){var r;const i=typeof window<"u"?Jn(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,o=typeof window<"u"?Jn(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?Jn(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window<"u"?Jn(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof i&&!Zb.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&&!qb[n.key])}function Xb(e,t,n){Ca(),$e(()=>{let r=(i,o)=>{Kb(!!(n!=null&&n.isTextInput),i,o)&&e(lh())};return _a.add(r),()=>{_a.delete(r)}},t)}function Qb(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=Q({isFocusWithin:!1}),s=_e(u=>{o.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,o]),a=rh(s),l=_e(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 Uo=!1,Gs=0;function Sa(){Uo=!0,setTimeout(()=>{Uo=!1},50)}function _c(e){e.pointerType==="touch"&&Sa()}function Jb(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",_c):document.addEventListener("touchend",Sa),Gs++,()=>{Gs--,!(Gs>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",_c):document.removeEventListener("touchend",Sa))}}function e_(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,s]=ce(!1),a=Q({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;$e(Jb,[]);let{hoverProps:l,triggerHoverEnd:u}=ie(()=>{let d=(m,h)=>{if(a.pointerType=h,i||h==="touch"||a.isHovered||!m.currentTarget.contains(m.target))return;a.isHovered=!0;let g=m.currentTarget;a.target=g,t&&t({type:"hoverstart",target:g,pointerType:h}),n&&n(!0),s(!0)},c=(m,h)=>{if(a.pointerType="",a.target=null,h==="touch"||!a.isHovered)return;a.isHovered=!1;let g=m.currentTarget;r&&r({type:"hoverend",target:g,pointerType:h}),n&&n(!1),s(!1)},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=m=>{Uo&&m.pointerType==="mouse"||d(m,m.pointerType)},p.onPointerLeave=m=>{!i&&m.currentTarget.contains(m.target)&&c(m,m.pointerType)}):(p.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=m=>{!a.ignoreEmulatedMouseEvents&&!Uo&&d(m,"mouse"),a.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=m=>{!i&&m.currentTarget.contains(m.target)&&c(m,"mouse")}),{hoverProps:p,triggerHoverEnd:c}},[t,n,r,i,a]);return $e(()=>{i&&u({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:l,isHovered:o}}function t_(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=Q({isFocused:!1,isFocusVisible:t||lh()}),[o,s]=ce(!1),[a,l]=ce(()=>i.current.isFocused&&i.current.isFocusVisible),u=_e(()=>l(i.current.isFocused&&i.current.isFocusVisible),[]),d=_e(m=>{i.current.isFocused=m,s(m),u()},[u]);Xb(m=>{i.current.isFocusVisible=m,u()},[],{isTextInput:n});let{focusProps:c}=Gb({isDisabled:r,onFocusChange:d}),{focusWithinProps:p}=Qb({isDisabled:!r,onFocusWithinChange:d});return{isFocused:o,isFocusVisible:a,focusProps:r?p:c}}var n_=Object.defineProperty,r_=(e,t,n)=>t in e?n_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,qs=(e,t,n)=>(r_(e,typeof t!="symbol"?t+"":t,n),n);let i_=class{constructor(){qs(this,"current",this.detect()),qs(this,"handoffState","pending"),qs(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"}},nr=new i_;function ri(e){return nr.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function gs(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function En(){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 gs(()=>{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=En();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 jn(){let[e]=ce(En);return $e(()=>()=>e.dispose(),[e]),e}let Ve=(e,t)=>{nr.isServer?$e(e,t):Cn(e,t)};function Bn(e){let t=Q(e);return Ve(()=>{t.current=e},[e]),t}let ne=function(e){let t=Bn(e);return W.useCallback((...n)=>t.current(...n),[t])};function o_(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 s_(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function a_({disabled:e=!1}={}){let t=Q(null),[n,r]=ce(!1),i=jn(),o=ne(()=>{t.current=null,r(!1),i.dispose()}),s=ne(a=>{if(i.dispose(),t.current===null){t.current=a.currentTarget,r(!0);{let l=ri(a.currentTarget);i.addEventListener(l,"pointerup",o,!1),i.addEventListener(l,"pointermove",u=>{if(t.current){let d=o_(u);r(s_(d,t.current.getBoundingClientRect()))}},!1),i.addEventListener(l,"pointercancel",o,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:s,onPointerUp:o,onClick:o}}}let l_=qe(void 0);function _l(){return Ne(l_)}function Ea(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function Et(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,Et),r}var Wr=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Wr||{}),Dn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Dn||{});function st(){let e=c_();return _e(t=>u_({mergeRefs:e,...t}),[e])}function u_({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:s,mergeRefs:a}){a=a??d_;let l=uh(t,e);if(o)return io(l,n,r,s,a);let u=i??0;if(u&2){let{static:d=!1,...c}=l;if(d)return io(c,n,r,s,a)}if(u&1){let{unmount:d=!0,...c}=l;return Et(d?0:1,{0(){return null},1(){return io({...c,hidden:!0,style:{display:"none"}},n,r,s,a)}})}return io(l,n,r,s,a)}function io(e,t={},n,r,i){let{as:o=n,children:s,refName:a="ref",...l}=zs(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 c={};if(t){let p=!1,m=[];for(let[h,g]of Object.entries(t))typeof g=="boolean"&&(p=!0),g===!0&&m.push(h.replace(/([A-Z])/g,w=>`-${w.toLowerCase()}`));if(p){c["data-headlessui-state"]=m.join(" ");for(let h of m)c[`data-${h}`]=""}}if(o===Le&&(Object.keys($n(l)).length>0||Object.keys($n(c)).length>0))if(!zr(d)||Array.isArray(d)&&d.length>1){if(Object.keys($n(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($n(l)).concat(Object.keys($n(c))).map(p=>` - ${p}`).join(`
|
|
32
32
|
`),"","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(`
|
|
33
33
|
`)].join(`
|
|
34
|
-
`))}else{let p=d.props,m=p==null?void 0:p.className,h=typeof m=="function"?(...S)=>Sa(m(...S),l.className):Sa(m,l.className),g=h?{className:h}:{},w=uh(d.props,$n(qs(l,["ref"])));for(let S in c)S in w&&delete c[S];return Ya(d,Object.assign({},w,c,u,{ref:i(f_(d),u.ref)},g))}return f(o,Object.assign({},qs(l,["ref"]),o!==Le&&u,o!==Le&&c),d)}function c_(){let e=Q([]),t=_e(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 d_(...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 uh(...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 ch(...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 tt(e){var t;return Object.assign(qa(e),{displayName:(t=e.displayName)!=null?t:e.name})}function $n(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function qs(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function f_(e){return W.version.split(".")[0]>="19"?e.props.ref:e.ref}function h_(e,t,n){let[r,i]=ce(n),o=e!==void 0,s=Q(o),a=Q(!1),l=Q(!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,ne(u=>(o||i(u),t==null?void 0:t(u)))]}function m_(e){let[t]=ce(e);return t}function dh(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))hh(n,fh(t,r),i);return n}function fh(e,t){return e?e+"["+t+"]":t}function hh(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())hh(e,fh(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,""]):dh(n,t,e)}function p_(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 g_="span";var zr=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(zr||{});function w_(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:g_,name:"Hidden"})}let Ii=tt(w_),y_=qe(null);function v_({children:e}){let t=Ne(y_);if(!t)return W.createElement(W.Fragment,null,e);let{target:n}=t;return n?Jo(W.createElement(W.Fragment,null,e),n):null}function b_({data:e,form:t,disabled:n,onReset:r,overrides:i}){let[o,s]=ce(null),a=jn();return $e(()=>{if(r&&o)return a.addEventListener(o,"reset",r)},[o,t,r]),W.createElement(v_,null,W.createElement(__,{setForm:s,formId:t}),dh(e).map(([l,u])=>W.createElement(Ii,{features:zr.Hidden,...$n({key:l,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:l,value:u,...i})})))}function __({setForm:e,formId:t}){return $e(()=>{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:W.createElement(Ii,{features:zr.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:n=>{if(!n)return;let r=n.closest("form");r&&e(r)}})}let x_=qe(void 0);function mh(){return Ne(x_)}function C_(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&&S_(n)?!1:r}function S_(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let ph=Symbol();function E_(e,t=!0){return Object.assign(e,{[ph]:t})}function pt(...e){let t=Q(e);$e(()=>{t.current=e},[e]);let n=ne(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[ph]))?void 0:n}let gs=qe(null);gs.displayName="DescriptionContext";function gh(){let e=Ne(gs);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,gh),t}return e}function A_(){var e,t;return(t=(e=Ne(gs))==null?void 0:e.value)!=null?t:void 0}function k_(){let[e,t]=ce([]);return[e.length>0?e.join(" "):void 0,ie(()=>function(n){let r=ne(o=>(t(s=>[...s,o]),()=>t(s=>{let a=s.slice(),l=a.indexOf(o);return l!==-1&&a.splice(l,1),a}))),i=ie(()=>({register:r,slot:n.slot,name:n.name,props:n.props,value:n.value}),[r,n.slot,n.name,n.props,n.value]);return W.createElement(gs.Provider,{value:i},n.children)},[t])]}let T_="p";function $_(e,t){let n=Bt(),r=_l(),{id:i=`headlessui-description-${n}`,...o}=e,s=gh(),a=pt(t);Ve(()=>s.register(i),[i,s.register]);let l=r||!1,u=ie(()=>({...s.slot,disabled:l}),[s.slot,l]),d={ref:a,...s.props,id:i};return st()({ourProps:d,theirProps:o,slot:u,defaultTag:T_,name:s.name||"Description"})}let N_=tt($_),M_=Object.assign(N_,{});var nt=(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))(nt||{});let ws=qe(null);ws.displayName="LabelContext";function wh(){let e=Ne(ws);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,wh),t}return e}function yh(e){var t,n,r;let i=(n=(t=Ne(ws))==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 I_({inherit:e=!1}={}){let t=yh(),[n,r]=ce([]),i=e?[t,...n].filter(Boolean):n;return[i.length>0?i.join(" "):void 0,ie(()=>function(o){let s=ne(l=>(r(u=>[...u,l]),()=>r(u=>{let d=u.slice(),c=d.indexOf(l);return c!==-1&&d.splice(c,1),d}))),a=ie(()=>({register:s,slot:o.slot,name:o.name,props:o.props,value:o.value}),[s,o.slot,o.name,o.props,o.value]);return W.createElement(ws.Provider,{value:a},o.children)},[r])]}let D_="label";function O_(e,t){var n;let r=Bt(),i=wh(),o=mh(),s=_l(),{id:a=`headlessui-label-${r}`,htmlFor:l=o??((n=i.props)==null?void 0:n.htmlFor),passive:u=!1,...d}=e,c=pt(t);Ve(()=>i.register(a),[a,i.register]);let p=ne(w=>{let S=w.currentTarget;if(S instanceof HTMLLabelElement&&w.preventDefault(),i.props&&"onClick"in i.props&&typeof i.props.onClick=="function"&&i.props.onClick(w),S instanceof HTMLLabelElement){let x=document.getElementById(S.htmlFor);if(x){let E=x.getAttribute("disabled");if(E==="true"||E==="")return;let $=x.getAttribute("aria-disabled");if($==="true"||$==="")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=ie(()=>({...i.slot,disabled:m}),[i.slot,m]),g={ref:c,...i.props,id:a,htmlFor:l,onClick:p};return u&&("onClick"in g&&(delete g.htmlFor,delete g.onClick),"onClick"in d&&delete d.onClick),st()({ourProps:g,theirProps:d,slot:h,defaultTag:l?D_:"div",name:i.name||"Label"})}let F_=tt(O_),P_=Object.assign(F_,{}),R_=qe(()=>{});function L_({value:e,children:t}){return W.createElement(R_.Provider,{value:e},t)}function H_(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 V_(e=H_){return _e((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 j_(e){if(e===null)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function B_(e,t=!1){let[n,r]=mr(()=>({}),{}),i=ie(()=>j_(e),[e,n]);return Ve(()=>{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 U_=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 vh(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 bh(e){return Qo(e.subscribe,e.getSnapshot,e.getSnapshot)}let W_=new U_(()=>vh(()=>[],{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 si(e,t){let n=W_.get(t),r=Bt(),i=bh(n);if(Ve(()=>{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 Ea=new Map,Ti=new Map;function xc(e){var t;let n=(t=Ti.get(e))!=null?t:0;return Ti.set(e,n+1),n!==0?()=>Cc(e):(Ea.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>Cc(e))}function Cc(e){var t;let n=(t=Ti.get(e))!=null?t:1;if(n===1?Ti.delete(e):Ti.set(e,n-1),n!==1)return;let r=Ea.get(e);r&&(r["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,Ea.delete(e))}function _h(e,{allowed:t,disallowed:n}={}){let r=si(e,"inert-others");Ve(()=>{var i,o;if(!r)return;let s=En();for(let l of(i=n==null?void 0:n())!=null?i:[])l&&s.add(xc(l));let a=(o=t==null?void 0:t())!=null?o:[];for(let l of a){if(!l)continue;let u=oi(l);if(!u)continue;let d=l.parentElement;for(;d&&d!==u.body;){for(let c of d.children)a.some(p=>c.contains(p))||s.add(xc(c));d=d.parentElement}}return s.dispose},[r,t,n])}function xh(e,t,n){let r=Bn(i=>{let o=i.getBoundingClientRect();o.x===0&&o.y===0&&o.width===0&&o.height===0&&n()});$e(()=>{if(!e)return;let i=t===null?null:t instanceof HTMLElement?t:t.current;if(!i)return;let o=En();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 Go=["[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(","),G_=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Zt=(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))(Zt||{}),Aa=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Aa||{}),q_=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(q_||{});function Ch(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Go)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}function z_(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(G_)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var xl=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(xl||{});function Sh(e,t=0){var n;return e===((n=oi(e))==null?void 0:n.body)?!1:Et(t,{0(){return e.matches(Go)},1(){let r=e;for(;r!==null;){if(r.matches(Go))return!0;r=r.parentElement}return!1}})}var Y_=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Y_||{});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 yn(e){e==null||e.focus({preventScroll:!0})}let Z_=["textarea","input"].join(",");function K_(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,Z_))!=null?n:!1}function Eh(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 X_(e,t){return Pr(Ch(),t,{relativeTo:e})}function Pr(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?Eh(e):e:t&64?z_(e):Ch(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,c=s.length,p;do{if(d>=c||d+c<=0)return 0;let m=l+d;if(t&16)m=(m+c)%c;else{if(m<0)return 3;if(m>=c)return 1}p=s[m],p==null||p.focus(u),d+=a}while(p!==o.activeElement);return t&6&&K_(p)&&p.select(),2}function Ah(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Q_(){return/Android/gi.test(window.navigator.userAgent)}function J_(){return Ah()||Q_()}function vi(e,t,n,r){let i=Bn(n);$e(()=>{if(!e)return;function o(s){i.current(s)}return document.addEventListener(t,o,r),()=>document.removeEventListener(t,o,r)},[e,t,r])}function kh(e,t,n,r){let i=Bn(n);$e(()=>{if(!e)return;function o(s){i.current(s)}return window.addEventListener(t,o,r),()=>window.removeEventListener(t,o,r)},[e,t,r])}const Sc=30;function Th(e,t,n){let r=si(e,"outside-click"),i=Bn(n),o=_e(function(l,u){if(l.defaultPrevented)return;let d=u(l);if(d===null||!d.getRootNode().contains(d)||!d.isConnected)return;let c=function p(m){return typeof m=="function"?p(m()):Array.isArray(m)||m instanceof Set?m:[m]}(t);for(let p of c)if(p!==null&&(p.contains(d)||l.composed&&l.composedPath().includes(p)))return;return!Sh(d,xl.Loose)&&d.tabIndex!==-1&&l.preventDefault(),i.current(l,d)},[i,t]),s=Q(null);vi(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),vi(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),vi(r,"click",l=>{J_()||s.current&&(o(l,()=>s.current),s.current=null)},!0);let a=Q({x:0,y:0});vi(r,"touchstart",l=>{a.current.x=l.touches[0].clientX,a.current.y=l.touches[0].clientY},!0),vi(r,"touchend",l=>{let u={x:l.changedTouches[0].clientX,y:l.changedTouches[0].clientY};if(!(Math.abs(u.x-a.current.x)>=Sc||Math.abs(u.y-a.current.y)>=Sc))return o(l,()=>l.target instanceof HTMLElement?l.target:null)},!0),kh(r,"blur",l=>o(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function ai(...e){return ie(()=>oi(...e),[...e])}function $h(e,t,n,r){let i=Bn(n);$e(()=>{e=e??window;function o(s){i.current(s)}return e.addEventListener(t,o,r),()=>e.removeEventListener(t,o,r)},[e,t,r])}function ex(e,t){return ie(()=>{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 tx(){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 nx(){return Ah()?{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=En();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 rx(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function ix(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let tr=vh(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:En(),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:ix(n)},i=[nx(),tx(),rx()];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)}});tr.subscribe(()=>{let e=tr.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)&&tr.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&tr.dispatch("TEARDOWN",n)}});function ox(e,t,n=()=>({containers:[]})){let r=bh(tr),i=t?r.get(t):void 0,o=i?i.count>0:!1;return Ve(()=>{if(!(!t||!e))return tr.dispatch("PUSH",t,n),()=>tr.dispatch("POP",t,n)},[e,t]),o}function Nh(e,t,n=()=>[document.body]){let r=si(e,"scroll-lock");ox(r,t,i=>{var o;return{containers:[...(o=i.containers)!=null?o:[],n]}})}function Ec(e){return[e.screenX,e.screenY]}function sx(){let e=Q([-1,-1]);return{wasMoved(t){let n=Ec(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=Ec(t)}}}function ax(e=0){let[t,n]=ce(e),r=_e(l=>n(l),[t]),i=_e(l=>n(u=>u|l),[t]),o=_e(l=>(t&l)===l,[t]),s=_e(l=>n(u=>u&~l),[n]),a=_e(l=>n(u=>u^l),[n]);return{flags:t,setFlag:r,addFlag:i,hasFlag:o,removeFlag:s,toggleFlag:a}}var lx={},Ac,kc;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((Ac=process==null?void 0:lx)==null?void 0:Ac.NODE_ENV)==="test"&&typeof((kc=Element==null?void 0:Element.prototype)==null?void 0:kc.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(`
|
|
35
|
-
`)),[]});var ux=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(ux||{});function Mh(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function Ih(e,t,n,r){let[i,o]=ce(n),{hasFlag:s,addFlag:a,removeFlag:l}=ax(e&&i?3:0),u=Q(!1),d=Q(!1),c=jn();return Ve(()=>{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),cx(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,c]),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 cx(e,{prepare:t,run:n,done:r,inFlight:i}){let o=En();return fx(e,{prepare:t,inFlight:i}),o.nextFrame(()=>{n(),o.requestAnimationFrame(()=>{o.add(dx(e,r))})}),o.dispose}function dx(e,t){var n,r;let i=En();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 fx(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 Cl(e,t){let n=Q([]),r=ne(e);$e(()=>{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 ys(){return typeof window<"u"}function li(e){return Dh(e)?(e.nodeName||"").toLowerCase():"#document"}function Dt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ln(e){var t;return(t=(Dh(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Dh(e){return ys()?e instanceof Node||e instanceof Dt(e).Node:!1}function yt(e){return ys()?e instanceof Element||e instanceof Dt(e).Element:!1}function sn(e){return ys()?e instanceof HTMLElement||e instanceof Dt(e).HTMLElement:!1}function Tc(e){return!ys()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Dt(e).ShadowRoot}function Zi(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Jt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function hx(e){return["table","td","th"].includes(li(e))}function vs(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Sl(e){const t=El(),n=yt(e)?Jt(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 mx(e){let t=Ln(e);for(;sn(t)&&!Yr(t);){if(Sl(t))return t;if(vs(t))return null;t=Ln(t)}return null}function El(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Yr(e){return["html","body","#document"].includes(li(e))}function Jt(e){return Dt(e).getComputedStyle(e)}function bs(e){return yt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ln(e){if(li(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Tc(e)&&e.host||ln(e);return Tc(t)?t.host:t}function Oh(e){const t=Ln(e);return Yr(t)?e.ownerDocument?e.ownerDocument.body:e.body:sn(t)&&Zi(t)?t:Oh(t)}function Di(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Oh(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=Dt(i);if(o){const a=ka(s);return t.concat(s,s.visualViewport||[],Zi(i)?i:[],a&&n?Di(a):[])}return t.concat(i,Di(i,[],n))}function ka(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function px(){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 cr=Math.min,ft=Math.max,Oi=Math.round,ao=Math.floor,on=e=>({x:e,y:e}),gx={left:"right",right:"left",bottom:"top",top:"bottom"},wx={start:"end",end:"start"};function $c(e,t,n){return ft(e,cr(t,n))}function ui(e,t){return typeof e=="function"?e(t):e}function Hn(e){return e.split("-")[0]}function Ki(e){return e.split("-")[1]}function Fh(e){return e==="x"?"y":"x"}function Ph(e){return e==="y"?"height":"width"}function dr(e){return["top","bottom"].includes(Hn(e))?"y":"x"}function Rh(e){return Fh(dr(e))}function yx(e,t,n){n===void 0&&(n=!1);const r=Ki(e),i=Rh(e),o=Ph(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=qo(s)),[s,qo(s)]}function vx(e){const t=qo(e);return[Ta(e),t,Ta(t)]}function Ta(e){return e.replace(/start|end/g,t=>wx[t])}function bx(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 _x(e,t,n,r){const i=Ki(e);let o=bx(Hn(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(Ta)))),o}function qo(e){return e.replace(/left|right|bottom|top/g,t=>gx[t])}function xx(e){return{top:0,right:0,bottom:0,left:0,...e}}function Cx(e){return typeof e!="number"?xx(e):{top:e,right:e,bottom:e,left:e}}function zo(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 Nc(e,t,n){let{reference:r,floating:i}=e;const o=dr(t),s=Rh(t),a=Ph(s),l=Hn(t),u=o==="y",d=r.x+r.width/2-i.width/2,c=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:c};break;case"left":m={x:r.x-i.width,y:c};break;default:m={x:r.x,y:r.y}}switch(Ki(t)){case"start":m[s]-=p*(n&&u?-1:1);break;case"end":m[s]+=p*(n&&u?-1:1);break}return m}const Sx=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:c}=Nc(u,r,l),p=r,m={},h=0;for(let g=0;g<a.length;g++){const{name:w,fn:S}=a[g],{x,y:E,data:$,reset:P}=await S({x:d,y:c,initialPlacement:r,placement:p,strategy:i,middlewareData:m,rects:u,platform:s,elements:{reference:e,floating:t}});d=x??d,c=E??c,m={...m,[w]:{...m[w],...$}},P&&h<=50&&(h++,typeof P=="object"&&(P.placement&&(p=P.placement),P.rects&&(u=P.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):P.rects),{x:d,y:c}=Nc(u,p,l)),g=-1)}return{x:d,y:c,placement:p,strategy:i,middlewareData:m}};async function _s(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:c="floating",altBoundary:p=!1,padding:m=0}=ui(t,e),h=Cx(m),w=a[p?c==="floating"?"reference":"floating":c],S=zo(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(w)))==null||n?w:w.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),x=c==="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)),$=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},P=zo(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:E,strategy:l}):x);return{top:(S.top-P.top+h.top)/$.y,bottom:(P.bottom-S.bottom+h.bottom)/$.y,left:(S.left-P.left+h.left)/$.x,right:(P.right-S.right+h.right)/$.x}}const Ex=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:c=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,...w}=ui(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const S=Hn(i),x=dr(a),E=Hn(a)===a,$=await(l.isRTL==null?void 0:l.isRTL(u.floating)),P=p||(E||!g?[qo(a)]:vx(a)),H=h!=="none";!p&&H&&P.push(..._x(a,g,h,$));const R=[a,...P],_=await _s(t,w),y=[];let A=((r=o.flip)==null?void 0:r.overflows)||[];if(d&&y.push(_[S]),c){const G=yx(i,s,$);y.push(_[G[0]],_[G[1]])}if(A=[...A,{placement:i,overflows:y}],!y.every(G=>G<=0)){var k,N;const G=(((k=o.flip)==null?void 0:k.index)||0)+1,le=R[G];if(le)return{data:{index:G,overflows:A},reset:{placement:le}};let q=(N=A.filter(B=>B.overflows[0]<=0).sort((B,F)=>B.overflows[1]-F.overflows[1])[0])==null?void 0:N.placement;if(!q)switch(m){case"bestFit":{var I;const B=(I=A.filter(F=>{if(H){const U=dr(F.placement);return U===x||U==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(U=>U>0).reduce((U,V)=>U+V,0)]).sort((F,U)=>F[1]-U[1])[0])==null?void 0:I[0];B&&(q=B);break}case"initialPlacement":q=a;break}if(i!==q)return{reset:{placement:q}}}return{}}}};async function Ax(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=Hn(n),a=Ki(n),l=dr(n)==="y",u=["left","top"].includes(s)?-1:1,d=o&&l?-1:1,c=ui(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:h}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.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 kx=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 Ax(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}}}}},Tx=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:w=>{let{x:S,y:x}=w;return{x:S,y:x}}},...l}=ui(e,t),u={x:n,y:r},d=await _s(t,l),c=dr(Hn(i)),p=Fh(c);let m=u[p],h=u[c];if(o){const w=p==="y"?"top":"left",S=p==="y"?"bottom":"right",x=m+d[w],E=m-d[S];m=$c(x,m,E)}if(s){const w=c==="y"?"top":"left",S=c==="y"?"bottom":"right",x=h+d[w],E=h-d[S];h=$c(x,h,E)}const g=a.fn({...t,[p]:m,[c]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[c]:s}}}}}},$x=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}=ui(e,t),d=await _s(t,u),c=Hn(i),p=Ki(i),m=dr(i)==="y",{width:h,height:g}=o.floating;let w,S;c==="top"||c==="bottom"?(w=c,S=p===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(S=c,w=p==="end"?"top":"bottom");const x=g-d.top-d.bottom,E=h-d.left-d.right,$=cr(g-d[w],x),P=cr(h-d[S],E),H=!t.middlewareData.shift;let R=$,_=P;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(_=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(R=x),H&&!p){const A=ft(d.left,0),k=ft(d.right,0),N=ft(d.top,0),I=ft(d.bottom,0);m?_=h-2*(A!==0||k!==0?A+k:ft(d.left,d.right)):R=g-2*(N!==0||I!==0?N+I:ft(d.top,d.bottom))}await l({...t,availableWidth:_,availableHeight:R});const y=await s.getDimensions(a.floating);return h!==y.width||g!==y.height?{reset:{rects:!0}}:{}}}};function Lh(e){const t=Jt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=sn(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=Oi(n)!==o||Oi(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function Al(e){return yt(e)?e:e.contextElement}function Rr(e){const t=Al(e);if(!sn(t))return on(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Lh(t);let s=(o?Oi(n.width):n.width)/r,a=(o?Oi(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Nx=on(0);function Hh(e){const t=Dt(e);return!El()||!t.visualViewport?Nx:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Mx(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Dt(e)?!1:t}function fr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Al(e);let s=on(1);t&&(r?yt(r)&&(s=Rr(r)):s=Rr(e));const a=Mx(o,n,r)?Hh(o):on(0);let l=(i.left+a.x)/s.x,u=(i.top+a.y)/s.y,d=i.width/s.x,c=i.height/s.y;if(o){const p=Dt(o),m=r&&yt(r)?Dt(r):r;let h=p,g=ka(h);for(;g&&r&&m!==h;){const w=Rr(g),S=g.getBoundingClientRect(),x=Jt(g),E=S.left+(g.clientLeft+parseFloat(x.paddingLeft))*w.x,$=S.top+(g.clientTop+parseFloat(x.paddingTop))*w.y;l*=w.x,u*=w.y,d*=w.x,c*=w.y,l+=E,u+=$,h=Dt(g),g=ka(h)}}return zo({width:d,height:c,x:l,y:u})}function kl(e,t){const n=bs(e).scrollLeft;return t?t.left+n:fr(ln(e)).left+n}function Vh(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:kl(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function Ix(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=ln(r),a=t?vs(t.floating):!1;if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},u=on(1);const d=on(0),c=sn(r);if((c||!c&&!o)&&((li(r)!=="body"||Zi(s))&&(l=bs(r)),sn(r))){const m=fr(r);u=Rr(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}const p=s&&!c&&!o?Vh(s,l,!0):on(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 Dx(e){return Array.from(e.getClientRects())}function Ox(e){const t=ln(e),n=bs(e),r=e.ownerDocument.body,i=ft(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=ft(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+kl(e);const a=-n.scrollTop;return Jt(r).direction==="rtl"&&(s+=ft(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}function Fx(e,t){const n=Dt(e),r=ln(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=El();(!u||u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a,y:l}}function Px(e,t){const n=fr(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=sn(e)?Rr(e):on(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 Mc(e,t,n){let r;if(t==="viewport")r=Fx(e,n);else if(t==="document")r=Ox(ln(e));else if(yt(t))r=Px(t,n);else{const i=Hh(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return zo(r)}function jh(e,t){const n=Ln(e);return n===t||!yt(n)||Yr(n)?!1:Jt(n).position==="fixed"||jh(n,t)}function Rx(e,t){const n=t.get(e);if(n)return n;let r=Di(e,[],!1).filter(a=>yt(a)&&li(a)!=="body"),i=null;const o=Jt(e).position==="fixed";let s=o?Ln(e):e;for(;yt(s)&&!Yr(s);){const a=Jt(s),l=Sl(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Zi(s)&&!l&&jh(e,s))?r=r.filter(d=>d!==s):i=a,s=Ln(s)}return t.set(e,r),r}function Lx(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?vs(t)?[]:Rx(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((u,d)=>{const c=Mc(t,d,i);return u.top=ft(c.top,u.top),u.right=cr(c.right,u.right),u.bottom=cr(c.bottom,u.bottom),u.left=ft(c.left,u.left),u},Mc(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Hx(e){const{width:t,height:n}=Lh(e);return{width:t,height:n}}function Vx(e,t,n){const r=sn(t),i=ln(t),o=n==="fixed",s=fr(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=on(0);if(r||!r&&!o)if((li(t)!=="body"||Zi(i))&&(a=bs(t)),r){const p=fr(t,!0,o,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else i&&(l.x=kl(i));const u=i&&!r&&!o?Vh(i,a):on(0),d=s.left+a.scrollLeft-l.x-u.x,c=s.top+a.scrollTop-l.y-u.y;return{x:d,y:c,width:s.width,height:s.height}}function zs(e){return Jt(e).position==="static"}function Ic(e,t){if(!sn(e)||Jt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ln(e)===n&&(n=n.ownerDocument.body),n}function Bh(e,t){const n=Dt(e);if(vs(e))return n;if(!sn(e)){let i=Ln(e);for(;i&&!Yr(i);){if(yt(i)&&!zs(i))return i;i=Ln(i)}return n}let r=Ic(e,t);for(;r&&hx(r)&&zs(r);)r=Ic(r,t);return r&&Yr(r)&&zs(r)&&!Sl(r)?n:r||mx(e)||n}const jx=async function(e){const t=this.getOffsetParent||Bh,n=this.getDimensions,r=await n(e.floating);return{reference:Vx(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Bx(e){return Jt(e).direction==="rtl"}const Ux={convertOffsetParentRelativeRectToViewportRelativeRect:Ix,getDocumentElement:ln,getClippingRect:Lx,getOffsetParent:Bh,getElementRects:jx,getClientRects:Dx,getDimensions:Hx,getScale:Rr,isElement:yt,isRTL:Bx};function Uh(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Wx(e,t){let n=null,r;const i=ln(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:c,width:p,height:m}=u;if(a||t(),!p||!m)return;const h=ao(c),g=ao(i.clientWidth-(d+p)),w=ao(i.clientHeight-(c+m)),S=ao(d),E={rootMargin:-h+"px "+-g+"px "+-w+"px "+-S+"px",threshold:ft(0,cr(1,l))||1};let $=!0;function P(H){const R=H[0].intersectionRatio;if(R!==l){if(!$)return s();R?s(!1,R):r=setTimeout(()=>{s(!1,1e-7)},1e3)}R===1&&!Uh(u,e.getBoundingClientRect())&&s(),$=!1}try{n=new IntersectionObserver(P,{...E,root:i.ownerDocument})}catch{n=new IntersectionObserver(P,E)}n.observe(e)}return s(!0),o}function Gx(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=Al(e),d=i||o?[...u?Di(u):[],...Di(t)]:[];d.forEach(S=>{i&&S.addEventListener("scroll",n,{passive:!0}),o&&S.addEventListener("resize",n)});const c=u&&a?Wx(u,n):null;let p=-1,m=null;s&&(m=new ResizeObserver(S=>{let[x]=S;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,g=l?fr(e):null;l&&w();function w(){const S=fr(e);g&&!Uh(g,S)&&n(),g=S,h=requestAnimationFrame(w)}return n(),()=>{var S;d.forEach(x=>{i&&x.removeEventListener("scroll",n),o&&x.removeEventListener("resize",n)}),c==null||c(),(S=m)==null||S.disconnect(),m=null,l&&cancelAnimationFrame(h)}}const Ys=_s,qx=kx,zx=Tx,Yx=Ex,Zx=$x,Kx=(e,t,n)=>{const r=new Map,i={platform:Ux,...n},o={...i.platform,_c:r};return Sx(e,t,{...i,platform:o})};var bo=typeof document<"u"?Cn:$e;function Yo(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(!Yo(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)&&!Yo(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Wh(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Dc(e,t){const n=Wh(e);return Math.round(t*n)/n}function Zs(e){const t=Q(e);return bo(()=>{t.current=e}),t}function Xx(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,c]=ce({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=ce(r);Yo(p,r)||m(r);const[h,g]=ce(null),[w,S]=ce(null),x=_e(F=>{F!==H.current&&(H.current=F,g(F))},[]),E=_e(F=>{F!==R.current&&(R.current=F,S(F))},[]),$=o||h,P=s||w,H=Q(null),R=Q(null),_=Q(d),y=l!=null,A=Zs(l),k=Zs(i),N=Zs(u),I=_e(()=>{if(!H.current||!R.current)return;const F={placement:t,strategy:n,middleware:p};k.current&&(F.platform=k.current),Kx(H.current,R.current,F).then(U=>{const V={...U,isPositioned:N.current!==!1};G.current&&!Yo(_.current,V)&&(_.current=V,It(()=>{c(V)}))})},[p,t,n,k,N]);bo(()=>{u===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,c(F=>({...F,isPositioned:!1})))},[u]);const G=Q(!1);bo(()=>(G.current=!0,()=>{G.current=!1}),[]),bo(()=>{if($&&(H.current=$),P&&(R.current=P),$&&P){if(A.current)return A.current($,P,I);I()}},[$,P,I,A,y]);const le=ie(()=>({reference:H,floating:R,setReference:x,setFloating:E}),[x,E]),q=ie(()=>({reference:$,floating:P}),[$,P]),B=ie(()=>{const F={position:n,left:0,top:0};if(!q.floating)return F;const U=Dc(q.floating,d.x),V=Dc(q.floating,d.y);return a?{...F,transform:"translate("+U+"px, "+V+"px)",...Wh(q.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:U,top:V}},[n,a,q.floating,d.x,d.y]);return ie(()=>({...d,update:I,refs:le,elements:q,floatingStyles:B}),[d,I,le,q,B])}const Gh=(e,t)=>({...qx(e),options:[e,t]}),Qx=(e,t)=>({...zx(e),options:[e,t]}),Jx=(e,t)=>({...Yx(e),options:[e,t]}),e2=(e,t)=>({...Zx(e),options:[e,t]}),qh={...So},t2=qh.useInsertionEffect,n2=t2||(e=>e());function zh(e){const t=Q(()=>{});return n2(()=>{t.current=e}),_e(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 $a=typeof document<"u"?Cn:$e;let Oc=!1,r2=0;const Fc=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+r2++;function i2(){const[e,t]=ce(()=>Oc?Fc():void 0);return $a(()=>{e==null&&t(Fc())},[]),$e(()=>{Oc=!0},[]),e}const o2=qh.useId,s2=o2||i2;function a2(){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 l2=qe(null),u2=qe(null),c2=()=>{var e;return((e=Ne(l2))==null?void 0:e.id)||null},d2=()=>Ne(u2),f2="data-floating-ui-focusable";function h2(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=s2(),o=Q({}),[s]=ce(()=>a2()),a=c2()!=null,[l,u]=ce(r.reference),d=zh((m,h,g)=>{o.current.openEvent=m?h:void 0,s.emit("openchange",{open:m,event:h,reason:g,nested:a}),n==null||n(m,h,g)}),c=ie(()=>({setPositionReference:u}),[]),p=ie(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return ie(()=>({dataRef:o,open:t,onOpenChange:d,elements:p,events:s,floatingId:i,refs:c}),[t,d,p,s,i,c])}function m2(e){e===void 0&&(e={});const{nodeId:t}=e,n=h2({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,s]=ce(null),[a,l]=ce(null),d=(i==null?void 0:i.domReference)||o,c=Q(null),p=d2();$a(()=>{d&&(c.current=d)},[d]);const m=Xx({...e,elements:{...i,...a&&{reference:a}}}),h=_e(E=>{const $=yt(E)?{getBoundingClientRect:()=>E.getBoundingClientRect(),contextElement:E}:E;l($),m.refs.setReference($)},[m.refs]),g=_e(E=>{(yt(E)||E===null)&&(c.current=E,s(E)),(yt(m.refs.reference.current)||m.refs.reference.current===null||E!==null&&!yt(E))&&m.refs.setReference(E)},[m.refs]),w=ie(()=>({...m.refs,setReference:g,setPositionReference:h,domReference:c}),[m.refs,g,h]),S=ie(()=>({...m.elements,domReference:d}),[m.elements,d]),x=ie(()=>({...m,...r,refs:w,elements:S,nodeId:t}),[m,w,S,t,r]);return $a(()=>{r.dataRef.current.floatingContext=x;const E=p==null?void 0:p.nodesRef.current.find($=>$.id===t);E&&(E.context=x)}),ie(()=>({...m,context:x,refs:w,elements:S}),[m,w,S,x])}const Pc="active",Rc="selected";function Ks(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[Pc]:s,[Rc]:a,...l}=e;o=l}return{...n==="floating"&&{tabIndex:-1,[f2]:""},...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&&[Pc,Rc].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof d=="function"){var c;(c=r.get(u))==null||c.push(d),s[u]=function(){for(var p,m=arguments.length,h=new Array(m),g=0;g<m;g++)h[g]=arguments[g];return(p=r.get(u))==null?void 0:p.map(w=>w(...h)).find(w=>w!==void 0)}}}else s[u]=d}),s),{})}}function p2(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=_e(a=>Ks(a,e,"reference"),t),o=_e(a=>Ks(a,e,"floating"),n),s=_e(a=>Ks(a,e,"item"),r);return ie(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:s}),[i,o,s])}function Lc(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const g2=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}=ui(e,t),{rects:c,elements:{floating:p}}=t,m=n.current[s],h=(u==null?void 0:u.current)||p,g=p.clientTop||h.clientTop,w=p.clientTop!==0,S=h.clientTop!==0,x=p===h;if(!m)return{};const E={...t,...await Gh(-m.offsetTop-p.clientTop-c.reference.height/2-m.offsetHeight/2-o).fn(t)},$=await Ys(Lc(E,h.scrollHeight+g+p.clientTop),d),P=await Ys(E,{...d,elementContext:"reference"}),H=ft(0,$.top),R=E.y+H,A=(h.scrollHeight>h.clientHeight?k=>k:Oi)(ft(0,h.scrollHeight+(w&&x||S?g*2:0)-H-ft(0,$.bottom)));if(h.style.maxHeight=A+"px",h.scrollTop=H,i){const k=h.offsetHeight<m.offsetHeight*cr(a,n.current.length)-1||P.top>=-l||P.bottom>=-l;It(()=>i(k))}return r&&(r.current=await Ys(Lc({...E,y:R},h.offsetHeight+g+p.clientTop),d)),{y:R}}});function w2(e,t){const{open:n,elements:r}=e,{enabled:i=!0,overflowRef:o,scrollRef:s,onChange:a}=t,l=zh(a),u=Q(!1),d=Q(null),c=Q(null);$e(()=>{if(!i)return;function m(g){if(g.ctrlKey||!h||o.current==null)return;const w=g.deltaY,S=o.current.top>=-.5,x=o.current.bottom>=-.5,E=h.scrollHeight-h.clientHeight,$=w<0?-1:1,P=w<0?"max":"min";h.scrollHeight<=h.clientHeight||(!S&&w>0||!x&&w<0?(g.preventDefault(),It(()=>{l(H=>H+Math[P](w,E*$))})):/firefox/i.test(px())&&(h.scrollTop+=w))}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&&(c.current={...o.current})}),()=>{d.current=null,c.current=null,h.removeEventListener("wheel",m)}},[i,n,r.floating,o,s,l]);const p=ie(()=>({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)&&It(()=>l(g=>g+h))}requestAnimationFrame(()=>{d.current=m.scrollTop})}}}),[r.floating,l,o,s]);return ie(()=>i?{floating:p}:{},[i,p])}let ci=qe({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});ci.displayName="FloatingContext";let Tl=qe(null);Tl.displayName="PlacementContext";function y2(e){return ie(()=>e?typeof e=="string"?{to:e}:e:null,[e])}function v2(){return Ne(ci).setReference}function b2(){return Ne(ci).getReferenceProps}function _2(){let{getFloatingProps:e,slot:t}=Ne(ci);return _e((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}function x2(e=null){e===!1&&(e=null),typeof e=="string"&&(e={to:e});let t=Ne(Tl),n=ie(()=>e,[JSON.stringify(e,(i,o)=>{var s;return(s=o==null?void 0:o.outerHTML)!=null?s:o})]);Ve(()=>{t==null||t(n??null)},[t,n]);let r=Ne(ci);return ie(()=>[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}let Hc=4;function C2({children:e,enabled:t=!0}){let[n,r]=ce(null),[i,o]=ce(0),s=Q(null),[a,l]=ce(null);S2(a);let u=t&&n!==null&&a!==null,{to:d="bottom",gap:c=0,offset:p=0,padding:m=0,inner:h}=E2(n,a),[g,w="center"]=d.split(" ");Ve(()=>{u&&o(0)},[u]);let{refs:S,floatingStyles:x,context:E}=m2({open:u,placement:g==="selection"?w==="center"?"bottom":`bottom-${w}`:w==="center"?`${g}`:`${g}-${w}`,strategy:"absolute",transform:!1,middleware:[Gh({mainAxis:g==="selection"?0:c,crossAxis:p}),Qx({padding:m}),g!=="selection"&&Jx({padding:m}),g==="selection"&&h?g2({...h,padding:m,overflowRef:s,offset:i,minItemsVisible:Hc,referenceOverflowThreshold:m,onFallbackChange(k){var N,I;if(!k)return;let G=E.elements.floating;if(!G)return;let le=parseFloat(getComputedStyle(G).scrollPaddingBottom)||0,q=Math.min(Hc,G.childElementCount),B=0,F=0;for(let U of(I=(N=E.elements.floating)==null?void 0:N.childNodes)!=null?I:[])if(U instanceof HTMLElement){let V=U.offsetTop,se=V+U.clientHeight+le,Y=G.scrollTop,D=Y+G.clientHeight;if(V>=Y&&se<=D)q--;else{F=Math.max(0,Math.min(se,D)-Math.max(V,Y)),B=U.clientHeight;break}}q>=1&&o(U=>{let V=B*q-F+le;return U>=V?U:V})}}):null,e2({padding:m,apply({availableWidth:k,availableHeight:N,elements:I}){Object.assign(I.floating.style,{overflow:"auto",maxWidth:`${k}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${N}px)`})}})].filter(Boolean),whileElementsMounted:Gx}),[$=g,P=w]=E.placement.split("-");g==="selection"&&($="selection");let H=ie(()=>({anchor:[$,P].filter(Boolean).join(" ")}),[$,P]),R=w2(E,{overflowRef:s,onChange:o}),{getReferenceProps:_,getFloatingProps:y}=p2([R]),A=ne(k=>{l(k),S.setFloating(k)});return f(Tl.Provider,{value:r},f(ci.Provider,{value:{setFloating:A,setReference:S.setReference,styles:x,getReferenceProps:_,getFloatingProps:y,slot:H}},e))}function S2(e){Ve(()=>{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 E2(e,t){var n,r,i;let o=Xs((n=e==null?void 0:e.gap)!=null?n:"var(--anchor-gap, 0)",t),s=Xs((r=e==null?void 0:e.offset)!=null?r:"var(--anchor-offset, 0)",t),a=Xs((i=e==null?void 0:e.padding)!=null?i:"var(--anchor-padding, 0)",t);return{...e,gap:o,offset:s,padding:a}}function Xs(e,t,n=void 0){let r=jn(),i=ne((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=Vc(l,u);return[d,c=>{let p=Yh(l);{let m=p.map(h=>window.getComputedStyle(u).getPropertyValue(h));r.requestAnimationFrame(function h(){r.nextFrame(h);let g=!1;for(let[S,x]of p.entries()){let E=window.getComputedStyle(u).getPropertyValue(x);if(m[S]!==E){m[S]=E,g=!0;break}}if(!g)return;let w=Vc(l,u);d!==w&&(c(w),d=w)})}return r.dispose}]}return[n,null]}),o=ie(()=>i(e,t)[0],[e,t]),[s=o,a]=ce();return Ve(()=>{let[l,u]=i(e,t);if(a(l),!!u)return u(a)},[e,t]),s}function Yh(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,...Yh(i)]:[r]}return[]}function Vc(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 A2(e,t){let[n,r]=ce(t);return!e&&n!==t&&r(t),e?n:t}let xs=qe(null);xs.displayName="OpenClosedContext";var vt=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(vt||{});function Xi(){return Ne(xs)}function Zh({value:e,children:t}){return W.createElement(xs.Provider,{value:e},t)}function k2({children:e}){return W.createElement(xs.Provider,{value:null},e)}function T2(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let Nn=[];T2(()=>{function e(t){if(!(t.target instanceof HTMLElement)||t.target===document.body||Nn[0]===t.target)return;let n=t.target;n=n.closest(Go),Nn.unshift(n??t.target),Nn=Nn.filter(r=>r!=null&&r.isConnected),Nn.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 $2(e){throw new Error("Unexpected object: "+e)}var rt=(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))(rt||{});function Qs(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:$2(e)}}function Kh(e){let t=ne(e),n=Q(!1);$e(()=>(n.current=!1,()=>{n.current=!0,ps(()=>{n.current&&t()})}),[t])}function N2(){let e=typeof document>"u";return"useSyncExternalStore"in So?(t=>t.useSyncExternalStore)(So)(()=>()=>{},()=>!1,()=>!e):!1}function Qi(){let e=N2(),[t,n]=ce(ir.isHandoffComplete);return t&&ir.isHandoffComplete===!1&&n(!1),$e(()=>{t!==!0&&n(!0)},[t]),$e(()=>ir.handoff(),[]),e?!1:t}let Xh=qe(!1);function M2(){return Ne(Xh)}function jc(e){return W.createElement(Xh.Provider,{value:e.force},e.children)}function I2(e){let t=M2(),n=Ne(Jh),r=ai(e),[i,o]=ce(()=>{var s;if(!t&&n!==null)return(s=n.current)!=null?s:null;if(ir.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 $e(()=>{i!==null&&(r!=null&&r.body.contains(i)||r==null||r.body.appendChild(i))},[i,r]),$e(()=>{t||n!==null&&o(n.current)},[n,o,t]),i}let Qh=Le,D2=tt(function(e,t){let n=e,r=Q(null),i=pt(E_(c=>{r.current=c}),t),o=ai(r),s=I2(r),[a]=ce(()=>{var c;return ir.isServer?null:(c=o==null?void 0:o.createElement("div"))!=null?c:null}),l=Ne(Na),u=Qi();Ve(()=>{!s||!a||s.contains(a)||(a.setAttribute("data-headlessui-portal",""),s.appendChild(a))},[s,a]),Ve(()=>{if(a&&l)return l.register(a)},[l,a]),Kh(()=>{var c;!s||!a||(a instanceof Node&&s.contains(a)&&s.removeChild(a),s.childNodes.length<=0&&((c=s.parentElement)==null||c.removeChild(s)))});let d=st();return u?!s||!a?null:Jo(d({ourProps:{ref:i},theirProps:n,slot:{},defaultTag:Qh,name:"Portal"}),a):null});function O2(e,t){let n=pt(t),{enabled:r=!0,...i}=e,o=st();return r?W.createElement(D2,{...i,ref:n}):o({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:Qh,name:"Portal"})}let F2=Le,Jh=qe(null);function P2(e,t){let{target:n,...r}=e,i={ref:pt(t)},o=st();return W.createElement(Jh.Provider,{value:n},o({ourProps:i,theirProps:r,defaultTag:F2,name:"Popover.Group"}))}let Na=qe(null);function R2(){let e=Ne(Na),t=Q([]),n=ne(o=>(t.current.push(o),e&&e.register(o),()=>r(o))),r=ne(o=>{let s=t.current.indexOf(o);s!==-1&&t.current.splice(s,1),e&&e.unregister(o)}),i=ie(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,ie(()=>function({children:o}){return W.createElement(Na.Provider,{value:i},o)},[i])]}let L2=tt(O2),em=tt(P2),tm=Object.assign(L2,{Group:em});function H2(e,t=typeof document<"u"?document.defaultView:null,n){let r=si(e,"escape");$h(t,"keydown",i=>{r&&(i.defaultPrevented||i.key===nt.Escape&&n(i))})}function V2(){var e;let[t]=ce(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[n,r]=ce((e=t==null?void 0:t.matches)!=null?e:!1);return Ve(()=>{if(!t)return;function i(o){r(o.matches)}return t.addEventListener("change",i),()=>t.removeEventListener("change",i)},[t]),n}function j2({defaultContainers:e=[],portals:t,mainTreeNode:n}={}){let r=ai(n),i=ne(()=>{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:ne(o=>i().some(s=>s.contains(o)))}}let nm=qe(null);function Bc({children:e,node:t}){let[n,r]=ce(null),i=rm(t??n);return W.createElement(nm.Provider,{value:i},e,i===null&&W.createElement(Ii,{features:zr.Hidden,ref:o=>{var s,a;if(o){for(let l of(a=(s=oi(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 rm(e=null){var t;return(t=Ne(nm))!=null?t:e}function $l(){let e=Q(!1);return Ve(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var Ci=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Ci||{});function B2(){let e=Q(0);return kh(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function im(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 U2="div";var Xn=(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))(Xn||{});function W2(e,t){let n=Q(null),r=pt(n,t),{initialFocus:i,initialFocusFallback:o,containers:s,features:a=15,...l}=e;Qi()||(a=0);let u=ai(n);Y2(a,{ownerDocument:u});let d=Z2(a,{ownerDocument:u,container:n,initialFocus:i,initialFocusFallback:o});K2(a,{ownerDocument:u,container:n,containers:s,previousActiveElement:d});let c=B2(),p=ne(x=>{let E=n.current;E&&($=>$())(()=>{Et(c.current,{[Ci.Forwards]:()=>{Pr(E,Zt.First,{skipElements:[x.relatedTarget,o]})},[Ci.Backwards]:()=>{Pr(E,Zt.Last,{skipElements:[x.relatedTarget,o]})}})})}),m=si(!!(a&2),"focus-trap#tab-lock"),h=jn(),g=Q(!1),w={ref:r,onKeyDown(x){x.key=="Tab"&&(g.current=!0,h.requestAnimationFrame(()=>{g.current=!1}))},onBlur(x){if(!(a&4))return;let E=im(s);n.current instanceof HTMLElement&&E.add(n.current);let $=x.relatedTarget;$ instanceof HTMLElement&&$.dataset.headlessuiFocusGuard!=="true"&&(om(E,$)||(g.current?Pr(n.current,Et(c.current,{[Ci.Forwards]:()=>Zt.Next,[Ci.Backwards]:()=>Zt.Previous})|Zt.WrapAround,{relativeTo:x.target}):x.target instanceof HTMLElement&&yn(x.target)))}},S=st();return W.createElement(W.Fragment,null,m&&W.createElement(Ii,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:zr.Focusable}),S({ourProps:w,theirProps:l,defaultTag:U2,name:"FocusTrap"}),m&&W.createElement(Ii,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:zr.Focusable}))}let G2=tt(W2),q2=Object.assign(G2,{features:Xn});function z2(e=!0){let t=Q(Nn.slice());return Cl(([n],[r])=>{r===!0&&n===!1&&ps(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=Nn.slice())},[e,Nn,t]),ne(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function Y2(e,{ownerDocument:t}){let n=!!(e&8),r=z2(n);Cl(()=>{n||(t==null?void 0:t.activeElement)===(t==null?void 0:t.body)&&yn(r())},[n]),Kh(()=>{n&&yn(r())})}function Z2(e,{ownerDocument:t,container:n,initialFocus:r,initialFocusFallback:i}){let o=Q(null),s=si(!!(e&1),"focus-trap#initial-focus"),a=$l();return Cl(()=>{if(e===0)return;if(!s){i!=null&&i.current&&yn(i.current);return}let l=n.current;l&&ps(()=>{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)yn(r.current);else{if(e&16){if(Pr(l,Zt.First|Zt.AutoFocus)!==Aa.Error)return}else if(Pr(l,Zt.First)!==Aa.Error)return;if(i!=null&&i.current&&(yn(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 K2(e,{ownerDocument:t,container:n,containers:r,previousActiveElement:i}){let o=$l(),s=!!(e&4);$h(t==null?void 0:t.defaultView,"focus",a=>{if(!s||!o.current)return;let l=im(r);n.current instanceof HTMLElement&&l.add(n.current);let u=i.current;if(!u)return;let d=a.target;d&&d instanceof HTMLElement?om(l,d)?(i.current=d,yn(d)):(a.preventDefault(),a.stopPropagation(),yn(u)):yn(i.current)},!0)}function om(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function sm(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||((t=e.as)!=null?t:lm)!==Le||W.Children.count(e.children)===1}let Cs=qe(null);Cs.displayName="TransitionContext";var X2=(e=>(e.Visible="visible",e.Hidden="hidden",e))(X2||{});function Q2(){let e=Ne(Cs);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function J2(){let e=Ne(Ss);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Ss=qe(null);Ss.displayName="NestingContext";function Es(e){return"children"in e?Es(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function am(e,t){let n=Bn(e),r=Q([]),i=$l(),o=jn(),s=ne((m,h=Dn.Hidden)=>{let g=r.current.findIndex(({el:w})=>w===m);g!==-1&&(Et(h,{[Dn.Unmount](){r.current.splice(g,1)},[Dn.Hidden](){r.current[g].state="hidden"}}),o.microTask(()=>{var w;!Es(r)&&i.current&&((w=n.current)==null||w.call(n))}))}),a=ne(m=>{let h=r.current.find(({el:g})=>g===m);return h?h.state!=="visible"&&(h.state="visible"):r.current.push({el:m,state:"visible"}),()=>s(m,Dn.Unmount)}),l=Q([]),u=Q(Promise.resolve()),d=Q({enter:[],leave:[]}),c=ne((m,h,g)=>{l.current.splice(0),t&&(t.chains.current[h]=t.chains.current[h].filter(([w])=>w!==m)),t==null||t.chains.current[h].push([m,new Promise(w=>{l.current.push(w)})]),t==null||t.chains.current[h].push([m,new Promise(w=>{Promise.all(d.current[h].map(([S,x])=>x)).then(()=>w())})]),h==="enter"?u.current=u.current.then(()=>t==null?void 0:t.wait.current).then(()=>g(h)):g(h)}),p=ne((m,h,g)=>{Promise.all(d.current[h].splice(0).map(([w,S])=>S)).then(()=>{var w;(w=l.current.shift())==null||w()}).then(()=>g(h))});return ie(()=>({children:r,register:a,unregister:s,onStart:c,onStop:p,wait:u,chains:d}),[a,s,r,c,p,d,u])}let lm=Le,um=qr.RenderStrategy;function eC(e,t){var n,r;let{transition:i=!0,beforeEnter:o,afterEnter:s,beforeLeave:a,afterLeave:l,enter:u,enterFrom:d,enterTo:c,entered:p,leave:m,leaveFrom:h,leaveTo:g,...w}=e,[S,x]=ce(null),E=Q(null),$=sm(e),P=pt(...$?[E,t,x]:t===null?[]:[t]),H=(n=w.unmount)==null||n?Dn.Unmount:Dn.Hidden,{show:R,appear:_,initial:y}=Q2(),[A,k]=ce(R?"visible":"hidden"),N=J2(),{register:I,unregister:G}=N;Ve(()=>I(E),[I,E]),Ve(()=>{if(H===Dn.Hidden&&E.current){if(R&&A!=="visible"){k("visible");return}return Et(A,{hidden:()=>G(E),visible:()=>I(E)})}},[A,E,I,G,R,H]);let le=Qi();Ve(()=>{if($&&le&&A==="visible"&&E.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[E,A,le,$]);let q=y&&!_,B=_&&R&&y,F=Q(!1),U=am(()=>{F.current||(k("hidden"),G(E))},N),V=ne(Pe=>{F.current=!0;let ee=Pe?"enter":"leave";U.onStart(E,ee,ye=>{ye==="enter"?o==null||o():ye==="leave"&&(a==null||a())})}),se=ne(Pe=>{let ee=Pe?"enter":"leave";F.current=!1,U.onStop(E,ee,ye=>{ye==="enter"?s==null||s():ye==="leave"&&(l==null||l())}),ee==="leave"&&!Es(U)&&(k("hidden"),G(E))});$e(()=>{$&&i||(V(R),se(R))},[R,$,i]);let Y=!(!i||!$||!le||q),[,D]=Ih(Y,S,R,{start:V,end:se}),K=$n({ref:P,className:((r=Sa(w.className,B&&u,B&&d,D.enter&&u,D.enter&&D.closed&&d,D.enter&&!D.closed&&c,D.leave&&m,D.leave&&!D.closed&&h,D.leave&&D.closed&&g,!D.transition&&R&&p))==null?void 0:r.trim())||void 0,...Mh(D)}),oe=0;A==="visible"&&(oe|=vt.Open),A==="hidden"&&(oe|=vt.Closed),D.enter&&(oe|=vt.Opening),D.leave&&(oe|=vt.Closing);let De=st();return W.createElement(Ss.Provider,{value:U},W.createElement(Zh,{value:oe},De({ourProps:K,theirProps:w,defaultTag:lm,features:um,visible:A==="visible",name:"Transition.Child"})))}function tC(e,t){let{show:n,appear:r=!1,unmount:i=!0,...o}=e,s=Q(null),a=sm(e),l=pt(...a?[s,t]:t===null?[]:[t]);Qi();let u=Xi();if(n===void 0&&u!==null&&(n=(u&vt.Open)===vt.Open),n===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[d,c]=ce(n?"visible":"hidden"),p=am(()=>{n||c("hidden")}),[m,h]=ce(!0),g=Q([n]);Ve(()=>{m!==!1&&g.current[g.current.length-1]!==n&&(g.current.push(n),h(!1))},[g,n]);let w=ie(()=>({show:n,appear:r,initial:m}),[n,r,m]);Ve(()=>{n?c("visible"):!Es(p)&&s.current!==null&&c("hidden")},[n,p]);let S={unmount:i},x=ne(()=>{var P;m&&h(!1),(P=e.beforeEnter)==null||P.call(e)}),E=ne(()=>{var P;m&&h(!1),(P=e.beforeLeave)==null||P.call(e)}),$=st();return W.createElement(Ss.Provider,{value:p},W.createElement(Cs.Provider,{value:w},$({ourProps:{...S,as:Le,children:W.createElement(cm,{ref:l,...S,...o,beforeEnter:x,beforeLeave:E})},theirProps:{},defaultTag:Le,features:um,visible:d==="visible",name:"Transition"})))}function nC(e,t){let n=Ne(Cs)!==null,r=Xi()!==null;return W.createElement(W.Fragment,null,!n&&r?W.createElement(Ma,{ref:t,...e}):W.createElement(cm,{ref:t,...e}))}let Ma=tt(tC),cm=tt(eC),Nl=tt(nC),rC=Object.assign(Ma,{Child:Nl,Root:Ma});var iC=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(iC||{}),oC=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(oC||{});let sC={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},Ml=qe(null);Ml.displayName="DialogContext";function As(e){let t=Ne(Ml);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,As),n}return t}function aC(e,t){return Et(t.type,sC,e,t)}let Uc=tt(function(e,t){let n=Bt(),{id:r=`headlessui-dialog-${n}`,open:i,onClose:o,initialFocus:s,role:a="dialog",autoFocus:l=!0,__demoMode:u=!1,unmount:d=!1,...c}=e,p=Q(!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=Xi();i===void 0&&m!==null&&(i=(m&vt.Open)===vt.Open);let h=Q(null),g=pt(h,t),w=ai(h),S=i?0:1,[x,E]=mr(aC,{titleId:null,descriptionId:null,panelRef:Xo()}),$=ne(()=>o(!1)),P=ne(se=>E({type:0,id:se})),H=Qi()?S===0:!1,[R,_]=R2(),y={get current(){var se;return(se=x.panelRef.current)!=null?se:h.current}},A=rm(),{resolveContainers:k}=j2({mainTreeNode:A,portals:R,defaultContainers:[y]}),N=m!==null?(m&vt.Closing)===vt.Closing:!1;_h(u||N?!1:H,{allowed:ne(()=>{var se,Y;return[(Y=(se=h.current)==null?void 0:se.closest("[data-headlessui-portal]"))!=null?Y:null]}),disallowed:ne(()=>{var se;return[(se=A==null?void 0:A.closest("body > *:not(#headlessui-portal-root)"))!=null?se:null]})}),Th(H,k,se=>{se.preventDefault(),$()}),H2(H,w==null?void 0:w.defaultView,se=>{se.preventDefault(),se.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),$()}),Nh(u||N?!1:H,w,k),xh(H,h,$);let[I,G]=k_(),le=ie(()=>[{dialogState:S,close:$,setTitleId:P,unmount:d},x],[S,x,$,P,d]),q=ie(()=>({open:S===0}),[S]),B={ref:g,id:r,role:a,tabIndex:-1,"aria-modal":u?void 0:S===0?!0:void 0,"aria-labelledby":x.titleId,"aria-describedby":I,unmount:d},F=!V2(),U=Xn.None;H&&!u&&(U|=Xn.RestoreFocus,U|=Xn.TabLock,l&&(U|=Xn.AutoFocus),F&&(U|=Xn.InitialFocus));let V=st();return W.createElement(k2,null,W.createElement(jc,{force:!0},W.createElement(tm,null,W.createElement(Ml.Provider,{value:le},W.createElement(em,{target:h},W.createElement(jc,{force:!1},W.createElement(G,{slot:q},W.createElement(_,null,W.createElement(q2,{initialFocus:s,initialFocusFallback:h,containers:k,features:U},W.createElement(L_,{value:$},V({ourProps:B,theirProps:c,slot:q,defaultTag:lC,features:uC,visible:S===0,name:"Dialog"})))))))))))}),lC="div",uC=qr.RenderStrategy|qr.Static;function cC(e,t){let{transition:n=!1,open:r,...i}=e,o=Xi(),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?W.createElement(Bc,null,W.createElement(rC,{show:r,transition:n,unmount:i.unmount},W.createElement(Uc,{ref:t,...i}))):W.createElement(Bc,null,W.createElement(Uc,{ref:t,open:r,...i}))}let dC="div";function fC(e,t){let n=Bt(),{id:r=`headlessui-dialog-panel-${n}`,transition:i=!1,...o}=e,[{dialogState:s,unmount:a},l]=As("Dialog.Panel"),u=pt(t,l.panelRef),d=ie(()=>({open:s===0}),[s]),c=ne(w=>{w.stopPropagation()}),p={ref:u,id:r,onClick:c},m=i?Nl:Le,h=i?{unmount:a}:{},g=st();return W.createElement(m,{...h},g({ourProps:p,theirProps:o,slot:d,defaultTag:dC,name:"Dialog.Panel"}))}let hC="div";function mC(e,t){let{transition:n=!1,...r}=e,[{dialogState:i,unmount:o}]=As("Dialog.Backdrop"),s=ie(()=>({open:i===0}),[i]),a={ref:t,"aria-hidden":!0},l=n?Nl:Le,u=n?{unmount:o}:{},d=st();return W.createElement(l,{...u},d({ourProps:a,theirProps:r,slot:s,defaultTag:hC,name:"Dialog.Backdrop"}))}let pC="h2";function gC(e,t){let n=Bt(),{id:r=`headlessui-dialog-title-${n}`,...i}=e,[{dialogState:o,setTitleId:s}]=As("Dialog.Title"),a=pt(t);$e(()=>(s(r),()=>s(null)),[r,s]);let l=ie(()=>({open:o===0}),[o]),u={ref:a,id:r};return st()({ourProps:u,theirProps:i,slot:l,defaultTag:pC,name:"Dialog.Title"})}let wC=tt(cC),yC=tt(fC),vC=tt(mC),bC=tt(gC),dm=Object.assign(wC,{Panel:yC,Title:bC,Description:M_});function _C(e,t){let n=Q({left:0,top:0});if(Ve(()=>{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 Wc=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Gc(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 Wc.test(s)&&(s=s.replace(Wc,"")),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():Gc(o).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return Gc(e).trim()}function CC(e){let t=Q(""),n=Q("");return ne(()=>{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 SC=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(SC||{}),EC=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(EC||{}),AC=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(AC||{}),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 Js(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=Eh(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 TC={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===rt.Nothing)return{...a,activeOptionIndex:null};if(t.focus===rt.Specific)return{...a,activeOptionIndex:e.options.findIndex(d=>d.id===t.id)};if(t.focus===rt.Previous){let d=e.activeOptionIndex;if(d!==null){let c=e.options[d].dataRef.current.domRef,p=Qs(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=c.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===rt.Next){let d=e.activeOptionIndex;if(d!==null){let c=e.options[d].dataRef.current.domRef,p=Qs(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=c.current)==null?void 0:o.nextElementSibling)===m.current||((s=m.current)==null?void 0:s.nextElementSibling)===null)return{...a,activeOptionIndex:p}}}}let l=Js(e),u=Qs(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=Js(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=Js(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}},Il=qe(null);Il.displayName="ListboxActionsContext";function ks(e){let t=Ne(Il);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,ks),n}return t}let Ts=qe(null);Ts.displayName="ListboxDataContext";function Ji(e){let t=Ne(Ts);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ji),n}return t}function $C(e,t){return Et(t.type,TC,e,t)}let NC=Le;function MC(e,t){var n;let r=_l(),{value:i,defaultValue:o,form:s,name:a,onChange:l,by:u,invalid:d=!1,disabled:c=r||!1,horizontal:p=!1,multiple:m=!1,__demoMode:h=!1,...g}=e;const w=p?"horizontal":"vertical";let S=pt(t),x=m_(o),[E=m?[]:void 0,$]=h_(i,l,x),[P,H]=mr($C,{dataRef:Xo(),listboxState:h?0:1,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,optionsVisible:!1,buttonElement:null,optionsElement:null,__demoMode:h}),R=Q({static:!1,hold:!1}),_=Q(new Map),y=V_(u),A=_e(j=>Et(k.mode,{1:()=>E.some(fe=>y(fe,j)),0:()=>y(E,j)}),[E]),k=ie(()=>({...P,value:E,disabled:c,invalid:d,mode:m?1:0,orientation:w,compare:y,isSelected:A,optionsPropsRef:R,listRef:_}),[E,c,d,m,P,_]);Ve(()=>{P.dataRef.current=k},[k]);let N=k.listboxState===0;Th(N,[k.buttonElement,k.optionsElement],(j,fe)=>{var ae;H({type:1}),Sh(fe,xl.Loose)||(j.preventDefault(),(ae=k.buttonElement)==null||ae.focus())});let I=ie(()=>({open:k.listboxState===0,disabled:c,invalid:d,value:E}),[k,c,E,d]),G=ne(j=>{let fe=k.options.find(ae=>ae.id===j);fe&&se(fe.dataRef.current.value)}),le=ne(()=>{if(k.activeOptionIndex!==null){let{dataRef:j,id:fe}=k.options[k.activeOptionIndex];se(j.current.value),H({type:2,focus:rt.Specific,id:fe})}}),q=ne(()=>H({type:0})),B=ne(()=>H({type:1})),F=jn(),U=ne((j,fe,ae)=>{F.dispose(),F.microTask(()=>j===rt.Specific?H({type:2,focus:rt.Specific,id:fe,trigger:ae}):H({type:2,focus:j,trigger:ae}))}),V=ne((j,fe)=>(H({type:5,id:j,dataRef:fe}),()=>H({type:6,id:j}))),se=ne(j=>Et(k.mode,{0(){return $==null?void 0:$(j)},1(){let fe=k.value.slice(),ae=fe.findIndex(be=>y(be,j));return ae===-1?fe.push(j):fe.splice(ae,1),$==null?void 0:$(fe)}})),Y=ne(j=>H({type:3,value:j})),D=ne(()=>H({type:4})),K=ne(j=>{H({type:7,element:j})}),oe=ne(j=>{H({type:8,element:j})}),De=ie(()=>({onChange:se,registerOption:V,goToOption:U,closeListbox:B,openListbox:q,selectActiveOption:le,selectOption:G,search:Y,clearSearch:D,setButtonElement:K,setOptionsElement:oe}),[]),[Pe,ee]=I_({inherit:!0}),ye={ref:S},me=_e(()=>{if(x!==void 0)return $==null?void 0:$(x)},[$,x]),de=st();return W.createElement(ee,{value:Pe,props:{htmlFor:(n=k.buttonElement)==null?void 0:n.id},slot:{open:k.listboxState===0,disabled:c}},W.createElement(C2,null,W.createElement(Il.Provider,{value:De},W.createElement(Ts.Provider,{value:k},W.createElement(Zh,{value:Et(k.listboxState,{0:vt.Open,1:vt.Closed})},a!=null&&E!=null&&W.createElement(b_,{disabled:c,data:{[a]:E},form:s,onReset:me}),de({ourProps:ye,theirProps:g,slot:I,defaultTag:NC,name:"Listbox"}))))))}let IC="button";function DC(e,t){var n;let r=Ji("Listbox.Button"),i=ks("Listbox.Button"),o=Bt(),s=mh(),{id:a=s||`headlessui-listbox-button-${o}`,disabled:l=r.disabled||!1,autoFocus:u=!1,...d}=e,c=pt(t,v2(),i.setButtonElement),p=b2(),m=ne(k=>{switch(k.key){case nt.Enter:p_(k.currentTarget);break;case nt.Space:case nt.ArrowDown:k.preventDefault(),It(()=>i.openListbox()),r.value||i.goToOption(rt.First);break;case nt.ArrowUp:k.preventDefault(),It(()=>i.openListbox()),r.value||i.goToOption(rt.Last);break}}),h=ne(k=>{switch(k.key){case nt.Space:k.preventDefault();break}}),g=ne(k=>{var N;if(C_(k.currentTarget))return k.preventDefault();r.listboxState===0?(It(()=>i.closeListbox()),(N=r.buttonElement)==null||N.focus({preventScroll:!0})):(k.preventDefault(),i.openListbox())}),w=ne(k=>k.preventDefault()),S=yh([a]),x=A_(),{isFocusVisible:E,focusProps:$}=t_({autoFocus:u}),{isHovered:P,hoverProps:H}=e_({isDisabled:l}),{pressed:R,pressProps:_}=a_({disabled:l}),y=ie(()=>({open:r.listboxState===0,active:R||r.listboxState===0,disabled:l,invalid:r.invalid,value:r.value,hover:P,focus:E,autofocus:u}),[r.listboxState,r.value,l,P,E,R,r.invalid,u]),A=ch(p(),{ref:c,id:a,type:ex(e,r.buttonElement),"aria-haspopup":"listbox","aria-controls":(n=r.optionsElement)==null?void 0:n.id,"aria-expanded":r.listboxState===0,"aria-labelledby":S,"aria-describedby":x,disabled:l||void 0,autoFocus:u,onKeyDown:m,onKeyUp:h,onKeyPress:w,onClick:g},$,H,_);return st()({ourProps:A,theirProps:d,slot:y,defaultTag:IC,name:"Listbox.Button"})}let fm=qe(!1),OC="div",FC=qr.RenderStrategy|qr.Static;function PC(e,t){var n,r;let i=Bt(),{id:o=`headlessui-listbox-options-${i}`,anchor:s,portal:a=!1,modal:l=!0,transition:u=!1,...d}=e,c=y2(s),[p,m]=ce(null);c&&(a=!0);let h=Ji("Listbox.Options"),g=ks("Listbox.Options"),w=ai(h.optionsElement),S=Xi(),[x,E]=Ih(u,p,S!==null?(S&vt.Open)===vt.Open:h.listboxState===0);xh(x,h.buttonElement,g.closeListbox);let $=h.__demoMode?!1:l&&h.listboxState===0;Nh($,w);let P=h.__demoMode?!1:l&&h.listboxState===0;_h(P,{allowed:_e(()=>[h.buttonElement,h.optionsElement],[h.buttonElement,h.optionsElement])});let H=h.listboxState!==0,R=_C(H,h.buttonElement)?!1:x,_=x&&h.listboxState===1,y=A2(_,h.value),A=ne(D=>h.compare(y,D)),k=ie(()=>{var D;if(c==null||!((D=c==null?void 0:c.to)!=null&&D.includes("selection")))return null;let K=h.options.findIndex(oe=>A(oe.dataRef.current.value));return K===-1&&(K=0),K},[c,h.options]),N=(()=>{if(c==null)return;if(k===null)return{...c,inner:void 0};let D=Array.from(h.listRef.current.values());return{...c,inner:{listRef:{current:D},index:k}}})(),[I,G]=x2(N),le=_2(),q=pt(t,c?I:null,g.setOptionsElement,m),B=jn();$e(()=>{var D;let K=h.optionsElement;K&&h.listboxState===0&&K!==((D=oi(K))==null?void 0:D.activeElement)&&(K==null||K.focus({preventScroll:!0}))},[h.listboxState,h.optionsElement]);let F=ne(D=>{var K,oe;switch(B.dispose(),D.key){case nt.Space:if(h.searchQuery!=="")return D.preventDefault(),D.stopPropagation(),g.search(D.key);case nt.Enter:if(D.preventDefault(),D.stopPropagation(),h.activeOptionIndex!==null){let{dataRef:De}=h.options[h.activeOptionIndex];g.onChange(De.current.value)}h.mode===0&&(It(()=>g.closeListbox()),(K=h.buttonElement)==null||K.focus({preventScroll:!0}));break;case Et(h.orientation,{vertical:nt.ArrowDown,horizontal:nt.ArrowRight}):return D.preventDefault(),D.stopPropagation(),g.goToOption(rt.Next);case Et(h.orientation,{vertical:nt.ArrowUp,horizontal:nt.ArrowLeft}):return D.preventDefault(),D.stopPropagation(),g.goToOption(rt.Previous);case nt.Home:case nt.PageUp:return D.preventDefault(),D.stopPropagation(),g.goToOption(rt.First);case nt.End:case nt.PageDown:return D.preventDefault(),D.stopPropagation(),g.goToOption(rt.Last);case nt.Escape:D.preventDefault(),D.stopPropagation(),It(()=>g.closeListbox()),(oe=h.buttonElement)==null||oe.focus({preventScroll:!0});return;case nt.Tab:D.preventDefault(),D.stopPropagation(),It(()=>g.closeListbox()),X_(h.buttonElement,D.shiftKey?Zt.Previous:Zt.Next);break;default:D.key.length===1&&(g.search(D.key),B.setTimeout(()=>g.clearSearch(),350));break}}),U=(n=h.buttonElement)==null?void 0:n.id,V=ie(()=>({open:h.listboxState===0}),[h.listboxState]),se=ch(c?le():{},{id:o,ref:q,"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":U,"aria-orientation":h.orientation,onKeyDown:F,role:"listbox",tabIndex:h.listboxState===0?0:void 0,style:{...d.style,...G,"--button-width":B_(h.buttonElement,!0).width},...Mh(E)}),Y=st();return W.createElement(tm,{enabled:a?e.static||x:!1},W.createElement(Ts.Provider,{value:h.mode===1?h:{...h,isSelected:A}},Y({ourProps:se,theirProps:d,slot:V,defaultTag:OC,features:FC,visible:R,name:"Listbox.Options"})))}let RC="div";function LC(e,t){let n=Bt(),{id:r=`headlessui-listbox-option-${n}`,disabled:i=!1,value:o,...s}=e,a=Ne(fm)===!0,l=Ji("Listbox.Option"),u=ks("Listbox.Option"),d=l.activeOptionIndex!==null?l.options[l.activeOptionIndex].id===r:!1,c=l.isSelected(o),p=Q(null),m=CC(p),h=Bn({disabled:i,value:o,domRef:p,get textValue(){return m()}}),g=pt(t,p,y=>{y?l.listRef.current.set(r,y):l.listRef.current.delete(r)});Ve(()=>{if(!l.__demoMode&&l.listboxState===0&&d&&l.activationTrigger!==0)return En().requestAnimationFrame(()=>{var y,A;(A=(y=p.current)==null?void 0:y.scrollIntoView)==null||A.call(y,{block:"nearest"})})},[p,d,l.__demoMode,l.listboxState,l.activationTrigger,l.activeOptionIndex]),Ve(()=>{if(!a)return u.registerOption(r,h)},[h,r,a]);let w=ne(y=>{var A;if(i)return y.preventDefault();u.onChange(o),l.mode===0&&(It(()=>u.closeListbox()),(A=l.buttonElement)==null||A.focus({preventScroll:!0}))}),S=ne(()=>{if(i)return u.goToOption(rt.Nothing);u.goToOption(rt.Specific,r)}),x=sx(),E=ne(y=>{x.update(y),!i&&(d||u.goToOption(rt.Specific,r,0))}),$=ne(y=>{x.wasMoved(y)&&(i||d||u.goToOption(rt.Specific,r,0))}),P=ne(y=>{x.wasMoved(y)&&(i||d&&u.goToOption(rt.Nothing))}),H=ie(()=>({active:d,focus:d,selected:c,disabled:i,selectedOption:c&&a}),[d,c,i,a]),R=a?{}:{id:r,ref:g,role:"option",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-selected":c,disabled:void 0,onClick:w,onFocus:S,onPointerEnter:E,onMouseEnter:E,onPointerMove:$,onMouseMove:$,onPointerLeave:P,onMouseLeave:P},_=st();return!c&&a?null:_({ourProps:R,theirProps:s,slot:H,defaultTag:RC,name:"Listbox.Option"})}let HC=Le;function VC(e,t){let{options:n,placeholder:r,...i}=e,o={ref:pt(t)},s=Ji("ListboxSelectedOption"),a=ie(()=>({}),[]),l=s.value===void 0||s.value===null||s.mode===1&&Array.isArray(s.value)&&s.value.length===0,u=st();return W.createElement(fm.Provider,{value:!0},u({ourProps:o,theirProps:{...i,children:W.createElement(W.Fragment,null,r&&l?r:n)},slot:a,defaultTag:HC,name:"ListboxSelectedOption"}))}let jC=tt(MC),hm=tt(DC),BC=P_,mm=tt(PC),pm=tt(LC),UC=tt(VC),WC=Object.assign(jC,{Button:hm,Label:BC,Options:mm,Option:pm,SelectedOption:UC}),vn=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Open","OnClose","Children"]}};function Dl(e){return f(dm,yr(e,1))}class Ol extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","ClassName","Children"]}}function Fl(e){return f(dm.Panel,yr(e,1))}class Pl extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName"]}}function Rl(e){return f(vC,yr(e,1))}function Ll(e,t){let n;return f("svg",b(v([["width",e],["height",t],["viewBox","0 0 "+e+" "+t],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(n=ge(f("path",{d:"M6 18L18 6M6 6L18 18",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2,strokeLinecap:"round"})),["children",C.Children.toArray(Array.from(n))])])))}function GC(e,t){let n,r,i,o,s;return Dl(v([new vn(3,[e]),new vn(4,[t]),new vn(5,[[Rl(ge(new Pl(2,["fixed inset-0 bg-gray-500/50"]))),f("div",b(v([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(n=[Fl(ge(new Ol(2,[[f("div",b(v([["className","flex flex-col mt-6 mb-6 px-6"],(r=[f("div",b(v([["className","flex flex-row justify-between"],(i=[f("span",{className:"text-gray-900 font-semibold text-lg",children:"What is mapping and why is it important?"}),f("button",b(v([["onClick",a=>{t()}],["type","button"],["className","text-gray-700"],(o=[Ll(24,24)],["children",C.Children.toArray(Array.from(o))])])))],["children",C.Children.toArray(Array.from(i))])]))),f("div",b(v([["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",C.Children.toArray(Array.from(r))])])))]])))],["children",C.Children.toArray(Array.from(n))])])))]])]))}function qC(e,t){let n,r;return f("svg",b(v([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=ge(f("path",b(v([["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",C.Children.toArray(Array.from(n))])])))}function gm(){let e,t,n;return f("div",b(v([["className","w-full p-4 bg-blue-50 rounded-md justify-start items-start gap-3 inline-flex"],(e=[qC(20,20),f("div",b(v([["className","grow shrink basis-0 h-[60px] justify-between items-center flex"],(t=[f("div",b(v([["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",C.Children.toArray(Array.from(t))])])))],["children",C.Children.toArray(Array.from(e))])])))}function wm(e,t){let n,r;return f("svg",b(v([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=ge(f("path",b(v([(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",C.Children.toArray(Array.from(n))])])))}function ym(e){let t,n;return f("div",b(v([["className","w-full h-[52px] p-4 bg-red-50 rounded-md justify-start items-start gap-3 inline-flex"],(t=[wm(16,15),f("div",b(v([["className","grow shrink basis-0 h-5 justify-between items-center flex"],(n=[f("div",{className:"grow shrink basis-0 text-red-800 text-sm font-medium leading-tight",children:e})],["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))}function $s(e,t){let n;return f("svg",b(v([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=v([f("path",{d:"M15 6H1",stroke:"#D1D5DB",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),f("path",{d:"M6 11L1 6L6 1",stroke:"#D1D5DB",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]),["children",C.Children.toArray(Array.from(n))])])))}class Lr extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Value","OnChange","Children"]}}function vm(e){return f(WC,yr(e,1))}class Zo extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ClassName","Children"]}}function bm(e){return f(hm,yr(e,1))}class _m extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ClassName"]}}function xm(e,t){return f(mm,yr(e,1),...t)}class nn extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","Value","Disabled","ClassName","Children"]}}function Cm(e){return f(pm,yr(e,1))}function Sm(e,t){let n,r;return f("svg",b(v([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=ge(f("path",b(v([["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",C.Children.toArray(Array.from(n))])])))}class bi extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Below","Above"]}}function _i(e,t,n,r,i,o,s,a,l){let u,d,c,p,m,h,g;const w=i.fields[0],S=Pd(Ct(x=>x[1].fields[0],Q0(x=>Wd(x.fields[0],w),r)));return f("div",b(v([["key",Ot(e)],["className","h-14 pr-3 py-2 rounded-lg justify-start items-center gap-2 inline-flex"],(u=[f("div",b(v([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(d=[f("div",b(he(O(()=>te(M(["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`]),O(()=>{let x;return M((x=he(O(()=>te(M(f("div",{className:"text-sm font-medium leading-tight",children:Qf(e)})),O(()=>M(t?f("div",{className:"text-red-500 text-sm font-medium leading-tight",children:"*"}):Se()))))),["children",C.Children.toArray(Array.from(x))]))}))))))],["children",C.Children.toArray(Array.from(d))])]))),f("div",b(v([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(c=[$s(16,12)],["children",C.Children.toArray(Array.from(c))])]))),f("div",b(v([["className","w-[230px] h-[38px] px-3 justify-start items-center gap-2 flex"],(p=[vm(v([new Lr(0,[S]),new Lr(1,[x=>{wr(E=>{s(E[0])},ns(os(E=>E[1].fields[0]===x?J(E[2],new hn(0,[])):!1,w)))}]),new Lr(2,[[f("div",b(v([["className","relative w-full"],(m=[bm(he(O(()=>te(M(new Zo(0,[`${t&&n&&r==null?"outline-red-300":"outline-gray-300"} grid w-full grid-cols-1 rounded-md bg-white 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`])),O(()=>{let x;return M(new Zo(1,[[f("span",b(he(O(()=>{const E=r!=null?[S,""]:n?["Select a field","text-red-900"]:["Select a field","text-gray-500"];return te(M(["className",`${E[1]} col-start-1 row-start-1 truncate pr-6`]),O(()=>M(["children",E[0]])))})))),f("span",b(v([["className","col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4"],(x=[Sm(20,20)],["children",C.Children.toArray(Array.from(x))])])))]]))}))))),xm(he(O(()=>M(new _m(`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`)))),he(O(()=>ds(x=>{const E=x[2],$=x[1].fields[0];return M(Cm(v([new nn(0,[Xt(x[0].fields[0])]),new nn(1,[$]),new nn(2,[J(E,new hn(1,[]))]),new nn(3,["relative select-none"]),new nn(4,[P=>[f("span",{className:"px-4 py-2 block truncate "+(E.tag===1?"text-gray-700 opacity-50 cursor-not-allowed":P.active?"bg-primary-600 text-white":(P.selected,"text-gray-700")),children:$})]])])))},w))))],["children",C.Children.toArray(Array.from(m))])])))]])]))],["children",C.Children.toArray(Array.from(p))])]))),f("div",b(v([(h="pl-1 justify-center items-center gap-2.5 flex text-gray-500 text-xs font-normal underline leading-none",["className",h]),(g=[f("button",b(he(O(()=>te(M(["children","Clear"]),O(()=>te(a==null?M(["className","opacity-50 cursor-not-allowed"]):M(["className","cursor-pointer"]),O(()=>{const x=a;if(x==null)return Ir();{const E=x;return M(["onClick",$=>{E()}])}})))))))),f("button",b(he(O(()=>te(M(["children","Preview"]),O(()=>te(l==null?M(["className","opacity-50 cursor-not-allowed"]):M(["className","cursor-pointer"]),O(()=>{const x=l;if(x==null)return Ir();{const E=x;return M(["onClick",$=>{E()}])}}))))))))],["children",C.Children.toArray(Array.from(g))])])))],["children",C.Children.toArray(Array.from(u))])])))}function Em(e,t){let n,r;return f("svg",b(v([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=ge(f("path",b(v([["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",C.Children.toArray(Array.from(n))])])))}function Hl(e,t){let n,r;return f("svg",b(v([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=ge(f("path",b(v([(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",C.Children.toArray(Array.from(n))])])))}function Am(e){let t,n,r;return f("div",b(v([["className","w-full h-[52px] p-4 bg-emerald-50 rounded-md justify-start items-center gap-3 inline-flex"],(t=[f("span",b(v([["className","text-emerald-700"],(n=[Hl(20,20)],["children",C.Children.toArray(Array.from(n))])]))),f("div",b(v([["className","grow shrink basis-0 h-5 justify-start items-center gap-3 flex"],(r=[f("div",{className:"grow shrink basis-0 text-emerald-800 text-sm font-medium leading-tight",children:e})],["children",C.Children.toArray(Array.from(r))])])))],["children",C.Children.toArray(Array.from(t))])])))}function Vl(e,t){let n,r;return f("svg",b(v([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=ge(f("path",b(v([(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",C.Children.toArray(Array.from(n))])])))}function zC(e,t){let n,r,i,o,s,a,l;return f("div",b(v([["className","w-80 py-6 justify-start items-center gap-2.5 flex"],(n=[f("div",b(v([(r="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",r]),(i=[f("div",b(v([["className","self-stretch justify-start items-center gap-2 inline-flex"],(o=[f("div",{className:"text-black text-base font-semibold leading-normal",children:`Previewing “${Qf(e)}”`})],["children",C.Children.toArray(Array.from(o))])]))),f("div",b(v([["className","self-stretch bg-white flex-col justify-start items-start flex overflow-hidden"],(s=[f("div",b(v([["className","self-stretch flex-col justify-center items-start flex"],(a=Ud((u,d)=>f("div",b(he(O(()=>te(M(["className",`${u%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`]),O(()=>{let c;return M((c=he(O(()=>{const p=el(d);return M(p?f("i",{className:"grow shrink text-gray-500 text-sm font-normal leading-tight",children:"(empty)"}):f("div",{className:"grow shrink text-gray-700 text-sm font-medium leading-tight",children:d}))})),["children",C.Children.toArray(Array.from(c))]))})))))),t),["children",C.Children.toArray(Array.from(a))])])))],["children",C.Children.toArray(Array.from(s))])]))),f("div",b(v([["className","self-stretch pt-2 justify-center items-center gap-2.5 inline-flex"],(l=[f("div",{className:"grow shrink basis-0 text-gray-500 text-sm font-normal leading-tight",children:"Showing first 10 rows only"})],["children",C.Children.toArray(Array.from(l))])])))],["children",C.Children.toArray(Array.from(i))])])))],["children",C.Children.toArray(Array.from(n))])])))}function YC(e){let t,n,r;const i=e.back,o=e.next,s=e.dataRows,a=e.headerRow,l=e.existingMappings;let u;const d=Pb(a,l);u=ni(()=>ti(()=>d,(E,$)=>Rb(a,s,E,$),(E,$)=>{}),void 0,[]);const c=u[0],p=u[1],m=C.useState(!1),h=m[1],g=C.useState(!1),w=g[0],S=E=>{if(Ob(c)(E))return()=>{p(new Gn(1,[E]))}},x=E=>{if(Fb(c,E))return()=>{p(new Gn(2,[E]))}};return f("div",b(v([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12 h-full"],(t=[GC(m[0],()=>{h(!1)}),f("span",{className:"font-sonoma text-black font-semibold text-lg",children:"Map fields"}),f("span",{className:"text-sm font-normal pt-2",children:"Match the fields from your CSV to the corresponding destination fields."}),f("div",b(v([["className","flex flex-row pt-3 gap-2"],(n=[f("button",{className:"rounded-2xl text-xs font-medium text-gray-600 border px-3.5 py-1.5 bg-white",onClick:E=>{h(!0)},type:"button",children:C.Children.toArray(["What is mapping and why is it important?"])})],["children",C.Children.toArray(Array.from(n))])]))),f("div",b(v([["className","justify-start items-start gap-12 inline-flex"],(r=he(O(()=>{let E;return te(M(f("div",b(v([["className","w-[640px] pt-6 flex-col justify-start items-start gap-4 inline-flex"],(E=he(O(()=>te(l==null?M(gm()):M(Se()),O(()=>te(w&&c.Status.tag===0?M(ym("Some required fields are incomplete. Fill in all required fields to continue.")):M(Se()),O(()=>{let $,P,H,R,_,y,A,k;return M(f("div",b(v([["className","flex-col justify-start items-start inline-flex overflow-hidden"],($=[f("div",b(v([(P="w-[640px] h-16 pt-6 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 inline-flex",["className",P]),(H=[f("div",b(v([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(R=[f("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Destination fields"}),f("div",b(he(O(()=>te(M(["className",`${c.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`]),O(()=>{let N;return M((N=[f("div",{className:"text-center text-xs font-medium leading-none",children:`${c.NumberOfDestinationFieldsMapped} of 5 mapped`})],["children",C.Children.toArray(Array.from(N))]))}))))))],["children",C.Children.toArray(Array.from(R))])]))),f("div",{className:"w-5 h-5 px-3 py-3.5"}),f("div",b(v([["className","w-[260px] h-10 px-3 py-3.5 justify-start items-center gap-1 flex overflow-hidden"],(_=[f("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Incoming CSV fields"}),f("div",b(v([["className","px-2.5 py-0.5 bg-gray-100 rounded-[10px] justify-center items-center flex"],(y=[f("div",{className:"text-center text-gray-800 text-xs font-medium leading-none",children:`${c.NumberOfDestinationFieldsMapped} of ${c.NumberOfIncomingFields} used`})],["children",C.Children.toArray(Array.from(y))])])))],["children",C.Children.toArray(Array.from(_))])])))],["children",C.Children.toArray(Array.from(H))])]))),f("div",b(v([["className","w-[640px] pt-2 pb-24 flex-col justify-start items-start gap-2 flex overflow-hidden"],(A=[f("div",b(ge((k=he(O(()=>te(M(_i(new pe(0,[]),!0,w,c.FirstName.ColumnIndex,c.FirstName.IncomingFields,new bi(0,[]),N=>{let I;p((I=[new pe(0,[]),N],new Gn(0,[I[0],I[1]])))},S(new pe(0,[])),x(new pe(0,[])))),O(()=>te(M(_i(new pe(1,[]),!0,w,c.LastName.ColumnIndex,c.LastName.IncomingFields,new bi(0,[]),N=>{let I;p((I=[new pe(1,[]),N],new Gn(0,[I[0],I[1]])))},S(new pe(1,[])),x(new pe(1,[])))),O(()=>te(M(_i(new pe(2,[]),!0,w,c.Email.ColumnIndex,c.Email.IncomingFields,new bi(0,[]),N=>{let I;p((I=[new pe(2,[]),N],new Gn(0,[I[0],I[1]])))},S(new pe(2,[])),x(new pe(2,[])))),O(()=>te(M(_i(new pe(3,[]),!1,w,c.MobilePhone.ColumnIndex,c.MobilePhone.IncomingFields,new bi(0,[]),N=>{let I;p((I=[new pe(3,[]),N],new Gn(0,[I[0],I[1]])))},S(new pe(3,[])),x(new pe(3,[])))),O(()=>te(M(_i(new pe(4,[]),!1,w,c.EmploymentBasis.ColumnIndex,c.EmploymentBasis.IncomingFields,new bi(1,[]),N=>{let I;p((I=[new pe(4,[]),N],new Gn(0,[I[0],I[1]])))},S(new pe(4,[])),x(new pe(4,[])))),O(()=>{let N,I,G,le,q,B;return te(c.NumberOfIncomingFieldsDiscarded===0?M(Se()):M(f("div",b(v([["className","h-16 pr-3 pt-2 pb-4 rounded-lg justify-start items-start gap-2 inline-flex"],(N=[f("div",b(v([["className","h-10 bg-gray-100 rounded-lg justify-start items-center gap-2 flex"],(I=[f("div",b(v([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(G=[Em(14,14),f("div",{className:"text-gray-500 text-sm font-medium leading-tight",children:"Discarded"})],["children",C.Children.toArray(Array.from(G))])]))),f("div",b(v([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(le=[$s(16,12)],["children",C.Children.toArray(Array.from(le))])]))),f("div",b(v([["className","flex-col justify-start items-start gap-2 inline-flex"],(q=[f("div",b(v([["className","w-[218px] pl-3 items-center inline-flex"],(B=[f("div",b(he(O(()=>te(M(["className","text-gray-500 text-sm font-medium"]),O(()=>{const F=c.NumberOfIncomingFieldsDiscarded|0;return M(F===1?["children","Remaining 1 unused field"]:["children",`Remaining ${F} unused fields`])}))))))],["children",C.Children.toArray(Array.from(B))])])))],["children",C.Children.toArray(Array.from(q))])])))],["children",C.Children.toArray(Array.from(I))])])))],["children",C.Children.toArray(Array.from(N))])])))),O(()=>{let F;return M(f("div",b(v([["className","w-[640px] pt-4 border-t border-gray-200 flex-col justify-start items-start flex"],(F=he(O(()=>te(c.NumberOfDestinationFieldsMapped===5?M(Am("All destination fields have been mapped. You’re good to go.")):M(Se()),O(()=>{let U,V,se,Y,D,K,oe,De,Pe;return M(f("div",b(v([["className","h-[58px] pt-2 justify-start items-end gap-2 inline-flex w-full"],(U=[f("div",b(v([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(V=[f("div",b(v([["className","grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"],(se=[f("div",b(v([["className","grow shrink basis-0 text-right"],(Y=[f("span",{className:"text-gray-500 text-xs font-normal leading-none",children:"Destination fields marked with "}),f("span",{className:"text-red-600 text-xs font-normal leading-none",children:"*"}),f("span",{className:"text-gray-500 text-xs font-normal leading-none",children:" are required"})],["children",C.Children.toArray(Array.from(Y))])])))],["children",C.Children.toArray(Array.from(se))])]))),f("div",b(v([["className","justify-start items-center gap-2 flex"],(D=[f("button",b(v([(K="px-[13px] py-[9px] bg-white rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",K]),["onClick",ee=>{i(c.Status)}],(oe=[f("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",C.Children.toArray(Array.from(oe))])]))),f("button",b(v([(De="pl-[13px] pr-[11px] py-[9px] bg-primary-600 disabled:opacity-50 rounded-md shadow-sm justify-center items-center gap-2 flex overflow-hidden",["className",De]),["disabled",w&&c.Status.tag===0],["onClick",ee=>{const ye=c.Status;ye.tag===0?g[1](!0):o([ye.fields[0],ye.fields[1]])}],(Pe=[f("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:"Next"}),Vl(13,8)],["children",C.Children.toArray(Array.from(Pe))])])))],["children",C.Children.toArray(Array.from(D))])])))],["children",C.Children.toArray(Array.from(V))])])))],["children",C.Children.toArray(Array.from(U))])]))))})))),["children",C.Children.toArray(Array.from(F))])]))))}))})))))))))))),["children",C.Children.toArray(Array.from(k))]))))],["children",C.Children.toArray(Array.from(A))])])))],["children",C.Children.toArray(Array.from($))])]))))})))))),["children",C.Children.toArray(Array.from(E))])])))),O(()=>{const $=c.Preview;return $==null?M(Se()):M(zC($[0],$[1]))}))})),["children",C.Children.toArray(Array.from(r))])])))],["children",C.Children.toArray(Array.from(t))])])))}class lo extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UploadingCsv","MappingColumns","MappingEmploymentBasis","Reviewing"]}}class ea extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Reviewing","MappingEmploymentBasis","MappingColumns"]}}let qn=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Next","Back"]}};function ZC(e){switch(e.tag){case 1:return"Part-time";case 2:return"Casual";case 3:return"Labour hire";default:return"Full-time"}}let uo=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Add","Clear","Remove","Set"]}},KC=class extends Me{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 Fi extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Available","Unavailable"]}}const Mn=[void 0];function km(e,t,n){let r;const i=t.fields[0],o=Pt(s=>s,Fo(Su(n)));return new KC(et(s=>[s,Qr(s,o,{Equals:J,GetHashCode:Ao})?new Fi(1,[]):new Fi(0,[])],i),n,o.length,dg(ll(s=>{let a;return a=Pt(l=>l,s),a.length!==0},Su(n))),Kf(o,i,{Equals:J,GetHashCode:Ao}),(r=v(Pt(s=>s,Fo(Ze(s=>et(a=>{if(a!=null)return[s[0],a]},s[1]),n)))),Ce(r)?void 0:new Sb(re(r),gr(xe(r)))),e)}function XC(e,t){const n=t.tag===1?["parttime"]:t.tag===2?["casual"]:t.tag===3?["labourhire"]:["fulltime"];return e.fields[0].filter(r=>Qr(Qa(r.fields[0],"[^a-zA-Z]","").toLocaleLowerCase(),n,{Equals:(i,o)=>i===o,GetHashCode:Vn}))}function QC(e,t){let n;if(t==null){let r=!1;const i=o=>{const s=XC(e,o);return!Hi(J,s,Se())&&s.length===0?Mn:(r=!0,et(a=>a,s))};n=[go([[new ct(0,[]),i(new ct(0,[]))],[new ct(1,[]),i(new ct(1,[]))],[new ct(2,[]),i(new ct(2,[]))],[new ct(3,[]),i(new ct(3,[]))]],{Compare:ut}),r]}else{const r=t,i=go(et(o=>[o[0],et(s=>s[1],bp(o[1],{Compare:Za}))],vb(o=>o[0],Fo([r.Tail,[r.Head]]),{Equals:J,GetHashCode:Ao})),{Compare:ut});n=[go([[new ct(0,[]),rn(xi(i,new ct(0,[])),Mn)],[new ct(1,[]),rn(xi(i,new ct(1,[])),Mn)],[new ct(2,[]),rn(xi(i,new ct(2,[])),Mn)],[new ct(3,[]),rn(xi(i,new ct(3,[])),Mn)]],{Compare:ut}),!1]}return[km(n[1],e,n[0]),Z()]}function Tm(e,t){const n=ar(e.Selections,t);let r;switch(!Hi(J,n,Se())&&n.length===1&&Ae(0,n)!=null?r=0:r=1,r){case 0:return!0;default:return!1}}function $m(e,t){let n;return e.DiscardedValues.length>0?(n=ar(e.Selections,t),!n.some(r=>r==null)):!1}function JC(e,t,n){const r=ar(e.Selections,t);return!Hi(J,r,Se())&&r.length===1?!1:Qr(n,r,{Equals:J,GetHashCode:Vt})}function e3(e,t,n,r){return!J(n,r)&&e.IncomingValues.some(i=>J(i[0],r)?J(i[1],new Fi(0,[])):!1)?Qr(n,ar(e.Selections,t),{Equals:J,GetHashCode:Vt}):!1}function t3(e,t,n){let r,i;const o=h=>km(n.Prefilled,e,h);let s,a,l,u,d,c,p,m;switch(t.tag){case 1:{Tm(n,t.fields[0])?(s=1,l=t.fields[0]):s=4;break}case 2:{JC(n,t.fields[0],t.fields[1])?(s=2,u=t.fields[0],d=t.fields[1]):s=4;break}case 3:{e3(n,t.fields[0],t.fields[1],t.fields[2])?(s=3,c=t.fields[0],p=t.fields[1],m=t.fields[2]):s=4;break}default:$m(n,t.fields[0])?(s=0,a=t.fields[0]):s=4}switch(s){case 0:return[o(io(a,h=>Ct(g=>pp(g,Mn),h),n.Selections)),Z()];case 1:return[o(io(l,h=>Ct(g=>Mn,h),n.Selections)),Z()];case 2:return[o(io(u,(r=(i=[d],h=>Kf(i,h,{Equals:J,GetHashCode:Vt})),h=>Ct(r,h)),n.Selections)),Z()];case 3:return[o(io(c,h=>Ct(g=>et(w=>J(w,p)?m:w,g),h),n.Selections)),Z()];default:return[n,Z()]}}function n3(e,t){let n,r;return f("svg",b(v([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=ge(f("path",b(v([["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",C.Children.toArray(Array.from(n))])])))}function r3(e,t,n,r,i,o,s){let a,l,u,d,c,p;return f("div",b(v([["key",Ot(e)],["className"," pr-3 py-2 justify-start items-start gap-2 inline-flex"],(a=[f("div",b(v([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(l=[f("div",b(v([["className",St(" ",he(O(()=>te(Hi(J,t,Mn)?M("bg-gray-50 border-gray-200 text-gray-500"):M("bg-emerald-50 border-emerald-200 text-emerald-700"),O(()=>M("px-2 py-1 rounded border justify-start items-center gap-1.5 flex overflow-hidden"))))))],(u=[f("div",{className:"text-sm font-medium leading-tight",children:ZC(e)})],["children",C.Children.toArray(Array.from(u))])])))],["children",C.Children.toArray(Array.from(l))])]))),f("div",b(v([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(d=[$s(16,12)],["children",C.Children.toArray(Array.from(d))])]))),f("div",b(v([["className","px-3 justify-start items-center gap-2 flex flex-col"],(c=[f("div",b(ge((p=he(O(()=>Ze(m=>{let h,g,w;return f("div",b(v([["className","mt-1 justify-start items-start gap-2 flex flex-inline"],(h=[f("div",b(v([["className","justify-start items-end gap-2 flex flex-col w-[206px]"],(g=he(O(()=>te(M(vm(he(O(()=>{const S=Pd(Ct(x=>x.fields[0],m));return te(M(new Lr(0,[S])),O(()=>te(M(new Lr(1,[x=>{wr(E=>{s([m,E[0]])},ns(os(E=>E[0].fields[0]===x?J(E[1],new Fi(0,[])):!1,n)))}])),O(()=>{let x,E;return M(new Lr(2,[[f("div",b(v([["className","relative w-full"],(x=[bm(v([new Zo(0,["outline-gray-300 grid w-full grid-cols-1 rounded-md bg-white 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 Zo(1,[[f("span",b(he(O(()=>{const $=m!=null?[S,""]:["Select a value","text-gray-500"];return te(M(["className",`${$[1]} col-start-1 row-start-1 truncate pr-6`]),O(()=>M(["children",$[0]])))})))),f("span",b(v([["className","col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4"],(E=[Sm(20,20)],["children",C.Children.toArray(Array.from(E))])])))]])])),xm(ge(new _m("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")),he(O(()=>ds($=>{const P=$[1],H=$[0].fields[0];return M(Cm(v([new nn(0,[H]),new nn(1,[H]),new nn(2,[J(P,new Fi(1,[]))]),new nn(3,["relative select-none"]),new nn(4,[R=>[f("span",{className:St(" ",he(O(()=>te(M("px-4 py-2 block truncate"),O(()=>{const _=R.active,y=R.selected;let A;switch(P.tag===1?y?_?A=2:A=3:A=0:_?A=2:y?A=3:A=1,A){case 0:return M("text-gray-700 opacity-50 cursor-not-allowed");case 1:return M("text-gray-700");case 2:return M("bg-primary-600 text-white");default:return M("text-gray-700")}}))))),children:H})]])])))},n))))],["children",C.Children.toArray(Array.from(x))])])))]]))}))))})))),O(()=>J(m,gp(t))?M(f("button",b(he(O(()=>{let S;return te(M((S=[n3(14,14),f("span",{children:["Map additional value"]})],["children",C.Children.toArray(Array.from(S))])),O(()=>te(M(["className",St(" ",he(O(()=>te(M("justify-end items-center inline-flex text-gray-500 text-xs font-normal gap-1"),O(()=>i==null?M("opacity-50 cursor-not-allowed underline"):M("cursor-pointer underline"))))))]),O(()=>{const x=i;if(x==null)return Ir();{const E=x;return M(["onClick",$=>{E()}])}}))))}))))):Ir())))),["children",C.Children.toArray(Array.from(g))])]))),f("div",b(v([["className","text-gray-500 text-xs font-normal mt-2 pl-1"],(w=he(O(()=>{if(o!=null){const S=o;return M(f("button",{children:"Remove",className:"cursor-pointer underline",onClick:x=>{S(m)}}))}else return M(f("button",b(he(O(()=>te(M(["children","Clear"]),O(()=>te(r==null?M(["className","opacity-50 cursor-not-allowed underline"]):M(["className","cursor-pointer underline"]),O(()=>{const S=r;if(S==null)return Ir();{const x=S;return M(["onClick",E=>{x()}])}})))))))))})),["children",C.Children.toArray(Array.from(w))])])))],["children",C.Children.toArray(Array.from(h))])])))},t))),["children",C.Children.toArray(Array.from(p))]))))],["children",C.Children.toArray(Array.from(c))])])))],["children",C.Children.toArray(Array.from(a))])])))}function i3(e){let t,n,r;const i=e.back,o=e.next,s=e.employmentBasisColumn,a=e.existingMappings;let l;const u=QC(s,a);l=ni(()=>ti(()=>u,(h,g)=>t3(s,h,g),(h,g)=>{}),void 0,[]);const d=l[0],c=l[1],p=C.useState(!1),m=p[0];return f("div",b(v([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12 h-full"],(t=[f("span",{className:"font-sonoma text-black font-semibold text-lg",children:"Map values - Employment basis"}),f("span",{className:"text-sm font-normal pt-2",children:"Match the values from your CSV to the corresponding destination values."}),f("div",b(v([["className","justify-start items-start gap-12 inline-flex"],(n=[f("div",b(v([["className","w-[640px] pt-6 flex-col justify-start items-start gap-4 inline-flex"],(r=he(O(()=>te(d.Prefilled?M(gm()):M(Se()),O(()=>te(m&&d.ValidatedMappings==null?M(ym("Map at least one value to continue.")):M(Se()),O(()=>{let h,g,w,S,x,E,$,P,H;return M(f("div",b(v([["className","flex-col justify-start items-start inline-flex overflow-hidden"],(h=[f("div",b(v([(g="w-[640px] h-16 pt-6 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 inline-flex",["className",g]),(w=[f("div",b(v([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(S=[f("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Destination fields"}),f("div",b(v([["className",St(" ",he(O(()=>te(d.NumberOfDestinationValuesMapped===4?M("bg-emerald-100 text-emerald-800"):M("bg-blue-100 text-blue-800"),O(()=>M("px-2.5 py-0.5 rounded-[10px] justify-center items-center flex"))))))],(x=[f("div",{className:"text-center text-xs font-medium leading-none",children:`${d.NumberOfDestinationValuesMapped} of 4 mapped`})],["children",C.Children.toArray(Array.from(x))])])))],["children",C.Children.toArray(Array.from(S))])]))),f("div",{className:"w-5 h-5 px-3 py-3.5"}),f("div",b(v([["className","w-[260px] h-10 px-3 py-3.5 justify-start items-center gap-1 flex overflow-hidden"],(E=[f("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Incoming CSV values"}),f("div",b(v([["className","px-2.5 py-0.5 bg-gray-100 rounded-[10px] justify-center items-center flex"],($=[f("div",{className:"text-center text-gray-800 text-xs font-medium leading-none",children:`${d.NumberOfIncomingValuesUsed} of ${d.IncomingValues.length} used`})],["children",C.Children.toArray(Array.from($))])])))],["children",C.Children.toArray(Array.from(E))])])))],["children",C.Children.toArray(Array.from(w))])]))),f("div",b(v([["className","w-[640px] pt-2 pb-24 flex-col justify-start items-start gap-2 flex overflow-hidden"],(P=[f("div",b(ge((H=he(O(()=>te(ds(R=>{let _,y,A;const k=R[0];return M(r3(k,R[1],d.IncomingValues,(_=k,Tm(d,_)?()=>{c(new uo(1,[_]))}:void 0),(y=k,$m(d,y)?()=>{c(new uo(0,[y]))}:void 0),(A=k,ar(d.Selections,A).length>1?N=>{let I;c((I=[A,N],new uo(2,[I[0],I[1]])))}:void 0),N=>{let I;c((I=[k,N[0],N[1]],new uo(3,[I[0],I[1],I[2]])))}))},Ig(d.Selections)),O(()=>{let R,_,y,A,k,N;return te(d.DiscardedValues.length===0?M(Se()):M(f("div",b(v([["className","pr-3 pt-2 pb-4 rounded-lg justify-start items-start gap-2 inline-flex"],(R=[f("div",b(v([["className","py-3 bg-gray-100 rounded-lg justify-start items-center gap-2 flex"],(_=[f("div",b(v([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(y=[Em(14,14),f("div",{className:"text-gray-500 text-sm font-medium leading-tight",children:"Discarded"})],["children",C.Children.toArray(Array.from(y))])]))),f("div",b(v([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(A=[$s(16,12)],["children",C.Children.toArray(Array.from(A))])]))),f("div",b(v([["className","flex-col justify-start items-start gap-2 inline-flex"],(k=[f("div",b(v([["className","w-[218px] pl-3 flex flex-col text-gray-500 text-sm"],(N=he(O(()=>te(M(f("div",b(he(O(()=>te(M(["className","font-medium"]),O(()=>{const I=d.DiscardedValues.length|0;return M(I===1?["children","Remaining 1 unused field:"]:["children",`Remaining ${I} unused fields:`])}))))))),O(()=>{let I;return M(f("ul",b(v([["className","pl-2 font-normal overflow-hidden list-inside list-disc"],(I=et(G=>f("li",{children:[G]}),Fo(Fn(O(()=>te(M(et(G=>G.fields[0],d.DiscardedValues.slice(void 0,8))),O(()=>d.DiscardedValues.length>8?M(["... and 0 other values"]):Ir())))))),["children",C.Children.toArray(Array.from(I))])]))))})))),["children",C.Children.toArray(Array.from(N))])])))],["children",C.Children.toArray(Array.from(k))])])))],["children",C.Children.toArray(Array.from(_))])])))],["children",C.Children.toArray(Array.from(R))])])))),O(()=>{let I;return M(f("div",b(v([["className","w-[640px] pt-4 border-t border-gray-200 flex-col justify-start items-start flex"],(I=he(O(()=>te(d.DiscardedValues.length===0?M(Am("All incoming values have been mapped.")):M(Se()),O(()=>{let G,le,q,B,F,U,V;return M(f("div",b(v([["className","h-[58px] pt-2 justify-start items-end gap-2 inline-flex w-full"],(G=[f("div",b(v([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(le=[f("div",{className:"grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"}),f("div",b(v([["className","justify-start items-center gap-2 flex"],(q=[f("button",b(v([(B="px-[13px] py-[9px] bg-white rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",B]),["onClick",se=>{i(d.ValidatedMappings)}],(F=[f("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",C.Children.toArray(Array.from(F))])]))),f("button",b(v([(U="pl-[13px] pr-[11px] py-[9px] bg-primary-600 disabled:opacity-50 rounded-md shadow-sm justify-center items-center gap-2 flex overflow-hidden",["className",U]),["disabled",m&&d.ValidatedMappings==null],["onClick",se=>{const Y=d.ValidatedMappings;Y==null?p[1](!0):o(Y)}],(V=[f("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:"Next"}),Vl(13,8)],["children",C.Children.toArray(Array.from(V))])])))],["children",C.Children.toArray(Array.from(q))])])))],["children",C.Children.toArray(Array.from(le))])])))],["children",C.Children.toArray(Array.from(G))])]))))})))),["children",C.Children.toArray(Array.from(I))])]))))}))})))),["children",C.Children.toArray(Array.from(H))]))))],["children",C.Children.toArray(Array.from(P))])])))],["children",C.Children.toArray(Array.from(h))])]))))})))))),["children",C.Children.toArray(Array.from(r))])])))],["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))}function o3(e,t,n,r,i,o){let s,a,l,u,d,c;return f("div",b(v([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12 h-full"],(s=[f("span",{className:"font-sonoma text-black font-semibold text-lg",children:"Review"}),f("span",{className:"text-sm font-normal pt-2",children:"Preview your data and confirm that everything is mapped correctly."}),f("div",b(v([["className","justify-start items-start gap-12 inline-flex"],(a=[f("div",b(v([["className","w-[640px] pt-6 flex-col justify-start items-start gap-4 inline-flex"],(l=[f("div",b(v([["className","justify-start items-center gap-2 flex"],(u=[f("button",b(v([(d="px-[13px] py-[9px] bg-white rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",d]),["onClick",p=>{o()}],(c=[f("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",C.Children.toArray(Array.from(c))])])))],["children",C.Children.toArray(Array.from(u))])])))],["children",C.Children.toArray(Array.from(l))])])))],["children",C.Children.toArray(Array.from(a))])])))],["children",C.Children.toArray(Array.from(s))])])))}class dn extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UnsupportedFileType","TooLarge","NoData","MoreThan5000Rows","EmptyFieldNames","DuplicateFieldNames","InconsistentRowLengths","GenericParseError"]}}class nr extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Parse","CancelParsing","Remove"]}}var _o={exports:{}};/* @license
|
|
34
|
+
`))}else{let p=d.props,m=p==null?void 0:p.className,h=typeof m=="function"?(...C)=>Ea(m(...C),l.className):Ea(m,l.className),g=h?{className:h}:{},w=uh(d.props,$n(zs(l,["ref"])));for(let C in c)C in w&&delete c[C];return Za(d,Object.assign({},w,c,u,{ref:i(f_(d),u.ref)},g))}return f(o,Object.assign({},zs(l,["ref"]),o!==Le&&u,o!==Le&&c),d)}function c_(){let e=Q([]),t=_e(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 d_(...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 uh(...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 ch(...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 tt(e){var t;return Object.assign(za(e),{displayName:(t=e.displayName)!=null?t:e.name})}function $n(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function zs(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function f_(e){return W.version.split(".")[0]>="19"?e.props.ref:e.ref}function h_(e,t,n){let[r,i]=ce(n),o=e!==void 0,s=Q(o),a=Q(!1),l=Q(!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,ne(u=>(o||i(u),t==null?void 0:t(u)))]}function m_(e){let[t]=ce(e);return t}function dh(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))hh(n,fh(t,r),i);return n}function fh(e,t){return e?e+"["+t+"]":t}function hh(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())hh(e,fh(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,""]):dh(n,t,e)}function p_(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 g_="span";var Gr=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Gr||{});function w_(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:g_,name:"Hidden"})}let Ni=tt(w_),y_=qe(null);function v_({children:e}){let t=Ne(y_);if(!t)return W.createElement(W.Fragment,null,e);let{target:n}=t;return n?Qo(W.createElement(W.Fragment,null,e),n):null}function b_({data:e,form:t,disabled:n,onReset:r,overrides:i}){let[o,s]=ce(null),a=jn();return $e(()=>{if(r&&o)return a.addEventListener(o,"reset",r)},[o,t,r]),W.createElement(v_,null,W.createElement(__,{setForm:s,formId:t}),dh(e).map(([l,u])=>W.createElement(Ni,{features:Gr.Hidden,...$n({key:l,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:l,value:u,...i})})))}function __({setForm:e,formId:t}){return $e(()=>{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:W.createElement(Ni,{features:Gr.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:n=>{if(!n)return;let r=n.closest("form");r&&e(r)}})}let x_=qe(void 0);function mh(){return Ne(x_)}function C_(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&&S_(n)?!1:r}function S_(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let ph=Symbol();function E_(e,t=!0){return Object.assign(e,{[ph]:t})}function pt(...e){let t=Q(e);$e(()=>{t.current=e},[e]);let n=ne(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[ph]))?void 0:n}let ws=qe(null);ws.displayName="DescriptionContext";function gh(){let e=Ne(ws);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,gh),t}return e}function A_(){var e,t;return(t=(e=Ne(ws))==null?void 0:e.value)!=null?t:void 0}function k_(){let[e,t]=ce([]);return[e.length>0?e.join(" "):void 0,ie(()=>function(n){let r=ne(o=>(t(s=>[...s,o]),()=>t(s=>{let a=s.slice(),l=a.indexOf(o);return l!==-1&&a.splice(l,1),a}))),i=ie(()=>({register:r,slot:n.slot,name:n.name,props:n.props,value:n.value}),[r,n.slot,n.name,n.props,n.value]);return W.createElement(ws.Provider,{value:i},n.children)},[t])]}let T_="p";function $_(e,t){let n=Bt(),r=_l(),{id:i=`headlessui-description-${n}`,...o}=e,s=gh(),a=pt(t);Ve(()=>s.register(i),[i,s.register]);let l=r||!1,u=ie(()=>({...s.slot,disabled:l}),[s.slot,l]),d={ref:a,...s.props,id:i};return st()({ourProps:d,theirProps:o,slot:u,defaultTag:T_,name:s.name||"Description"})}let N_=tt($_),M_=Object.assign(N_,{});var nt=(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))(nt||{});let ys=qe(null);ys.displayName="LabelContext";function wh(){let e=Ne(ys);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,wh),t}return e}function yh(e){var t,n,r;let i=(n=(t=Ne(ys))==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 I_({inherit:e=!1}={}){let t=yh(),[n,r]=ce([]),i=e?[t,...n].filter(Boolean):n;return[i.length>0?i.join(" "):void 0,ie(()=>function(o){let s=ne(l=>(r(u=>[...u,l]),()=>r(u=>{let d=u.slice(),c=d.indexOf(l);return c!==-1&&d.splice(c,1),d}))),a=ie(()=>({register:s,slot:o.slot,name:o.name,props:o.props,value:o.value}),[s,o.slot,o.name,o.props,o.value]);return W.createElement(ys.Provider,{value:a},o.children)},[r])]}let D_="label";function O_(e,t){var n;let r=Bt(),i=wh(),o=mh(),s=_l(),{id:a=`headlessui-label-${r}`,htmlFor:l=o??((n=i.props)==null?void 0:n.htmlFor),passive:u=!1,...d}=e,c=pt(t);Ve(()=>i.register(a),[a,i.register]);let p=ne(w=>{let C=w.currentTarget;if(C instanceof HTMLLabelElement&&w.preventDefault(),i.props&&"onClick"in i.props&&typeof i.props.onClick=="function"&&i.props.onClick(w),C instanceof HTMLLabelElement){let S=document.getElementById(C.htmlFor);if(S){let E=S.getAttribute("disabled");if(E==="true"||E==="")return;let $=S.getAttribute("aria-disabled");if($==="true"||$==="")return;(S instanceof HTMLInputElement&&(S.type==="radio"||S.type==="checkbox")||S.role==="radio"||S.role==="checkbox"||S.role==="switch")&&S.click(),S.focus({preventScroll:!0})}}}),m=s||!1,h=ie(()=>({...i.slot,disabled:m}),[i.slot,m]),g={ref:c,...i.props,id:a,htmlFor:l,onClick:p};return u&&("onClick"in g&&(delete g.htmlFor,delete g.onClick),"onClick"in d&&delete d.onClick),st()({ourProps:g,theirProps:d,slot:h,defaultTag:l?D_:"div",name:i.name||"Label"})}let F_=tt(O_),P_=Object.assign(F_,{}),R_=qe(()=>{});function L_({value:e,children:t}){return W.createElement(R_.Provider,{value:e},t)}function H_(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 V_(e=H_){return _e((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 j_(e){if(e===null)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function B_(e,t=!1){let[n,r]=fr(()=>({}),{}),i=ie(()=>j_(e),[e,n]);return Ve(()=>{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 U_=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 vh(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 bh(e){return Xo(e.subscribe,e.getSnapshot,e.getSnapshot)}let W_=new U_(()=>vh(()=>[],{ADD(e){return this.includes(e)?this:[...this,e]},REMOVE(e){let t=this.indexOf(e);if(t===-1)return this;let n=this.slice();return n.splice(t,1),n}}));function ii(e,t){let n=W_.get(t),r=Bt(),i=bh(n);if(Ve(()=>{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 Aa=new Map,Ai=new Map;function xc(e){var t;let n=(t=Ai.get(e))!=null?t:0;return Ai.set(e,n+1),n!==0?()=>Cc(e):(Aa.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>Cc(e))}function Cc(e){var t;let n=(t=Ai.get(e))!=null?t:1;if(n===1?Ai.delete(e):Ai.set(e,n-1),n!==1)return;let r=Aa.get(e);r&&(r["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,Aa.delete(e))}function _h(e,{allowed:t,disallowed:n}={}){let r=ii(e,"inert-others");Ve(()=>{var i,o;if(!r)return;let s=En();for(let l of(i=n==null?void 0:n())!=null?i:[])l&&s.add(xc(l));let a=(o=t==null?void 0:t())!=null?o:[];for(let l of a){if(!l)continue;let u=ri(l);if(!u)continue;let d=l.parentElement;for(;d&&d!==u.body;){for(let c of d.children)a.some(p=>c.contains(p))||s.add(xc(c));d=d.parentElement}}return s.dispose},[r,t,n])}function xh(e,t,n){let r=Bn(i=>{let o=i.getBoundingClientRect();o.x===0&&o.y===0&&o.width===0&&o.height===0&&n()});$e(()=>{if(!e)return;let i=t===null?null:t instanceof HTMLElement?t:t.current;if(!i)return;let o=En();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 Wo=["[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(","),G_=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Zt=(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))(Zt||{}),ka=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(ka||{}),q_=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(q_||{});function Ch(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Wo)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}function z_(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(G_)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var xl=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(xl||{});function Sh(e,t=0){var n;return e===((n=ri(e))==null?void 0:n.body)?!1:Et(t,{0(){return e.matches(Wo)},1(){let r=e;for(;r!==null;){if(r.matches(Wo))return!0;r=r.parentElement}return!1}})}var Y_=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Y_||{});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 yn(e){e==null||e.focus({preventScroll:!0})}let Z_=["textarea","input"].join(",");function K_(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,Z_))!=null?n:!1}function Eh(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 X_(e,t){return Or(Ch(),t,{relativeTo:e})}function Or(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?Eh(e):e:t&64?z_(e):Ch(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,c=s.length,p;do{if(d>=c||d+c<=0)return 0;let m=l+d;if(t&16)m=(m+c)%c;else{if(m<0)return 3;if(m>=c)return 1}p=s[m],p==null||p.focus(u),d+=a}while(p!==o.activeElement);return t&6&&K_(p)&&p.select(),2}function Ah(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Q_(){return/Android/gi.test(window.navigator.userAgent)}function J_(){return Ah()||Q_()}function wi(e,t,n,r){let i=Bn(n);$e(()=>{if(!e)return;function o(s){i.current(s)}return document.addEventListener(t,o,r),()=>document.removeEventListener(t,o,r)},[e,t,r])}function kh(e,t,n,r){let i=Bn(n);$e(()=>{if(!e)return;function o(s){i.current(s)}return window.addEventListener(t,o,r),()=>window.removeEventListener(t,o,r)},[e,t,r])}const Sc=30;function Th(e,t,n){let r=ii(e,"outside-click"),i=Bn(n),o=_e(function(l,u){if(l.defaultPrevented)return;let d=u(l);if(d===null||!d.getRootNode().contains(d)||!d.isConnected)return;let c=function p(m){return typeof m=="function"?p(m()):Array.isArray(m)||m instanceof Set?m:[m]}(t);for(let p of c)if(p!==null&&(p.contains(d)||l.composed&&l.composedPath().includes(p)))return;return!Sh(d,xl.Loose)&&d.tabIndex!==-1&&l.preventDefault(),i.current(l,d)},[i,t]),s=Q(null);wi(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),wi(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),wi(r,"click",l=>{J_()||s.current&&(o(l,()=>s.current),s.current=null)},!0);let a=Q({x:0,y:0});wi(r,"touchstart",l=>{a.current.x=l.touches[0].clientX,a.current.y=l.touches[0].clientY},!0),wi(r,"touchend",l=>{let u={x:l.changedTouches[0].clientX,y:l.changedTouches[0].clientY};if(!(Math.abs(u.x-a.current.x)>=Sc||Math.abs(u.y-a.current.y)>=Sc))return o(l,()=>l.target instanceof HTMLElement?l.target:null)},!0),kh(r,"blur",l=>o(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function oi(...e){return ie(()=>ri(...e),[...e])}function $h(e,t,n,r){let i=Bn(n);$e(()=>{e=e??window;function o(s){i.current(s)}return e.addEventListener(t,o,r),()=>e.removeEventListener(t,o,r)},[e,t,r])}function ex(e,t){return ie(()=>{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 tx(){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 nx(){return Ah()?{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=En();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 rx(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function ix(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let er=vh(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:En(),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:ix(n)},i=[nx(),tx(),rx()];i.forEach(({before:o})=>o==null?void 0:o(r)),i.forEach(({after:o})=>o==null?void 0:o(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});er.subscribe(()=>{let e=er.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",i=n.count!==0;(i&&!r||!i&&r)&&er.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&er.dispatch("TEARDOWN",n)}});function ox(e,t,n=()=>({containers:[]})){let r=bh(er),i=t?r.get(t):void 0,o=i?i.count>0:!1;return Ve(()=>{if(!(!t||!e))return er.dispatch("PUSH",t,n),()=>er.dispatch("POP",t,n)},[e,t]),o}function Nh(e,t,n=()=>[document.body]){let r=ii(e,"scroll-lock");ox(r,t,i=>{var o;return{containers:[...(o=i.containers)!=null?o:[],n]}})}function Ec(e){return[e.screenX,e.screenY]}function sx(){let e=Q([-1,-1]);return{wasMoved(t){let n=Ec(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=Ec(t)}}}function ax(e=0){let[t,n]=ce(e),r=_e(l=>n(l),[t]),i=_e(l=>n(u=>u|l),[t]),o=_e(l=>(t&l)===l,[t]),s=_e(l=>n(u=>u&~l),[n]),a=_e(l=>n(u=>u^l),[n]);return{flags:t,setFlag:r,addFlag:i,hasFlag:o,removeFlag:s,toggleFlag:a}}var lx={},Ac,kc;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((Ac=process==null?void 0:lx)==null?void 0:Ac.NODE_ENV)==="test"&&typeof((kc=Element==null?void 0:Element.prototype)==null?void 0:kc.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(`
|
|
35
|
+
`)),[]});var ux=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(ux||{});function Mh(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function Ih(e,t,n,r){let[i,o]=ce(n),{hasFlag:s,addFlag:a,removeFlag:l}=ax(e&&i?3:0),u=Q(!1),d=Q(!1),c=jn();return Ve(()=>{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),cx(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,c]),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 cx(e,{prepare:t,run:n,done:r,inFlight:i}){let o=En();return fx(e,{prepare:t,inFlight:i}),o.nextFrame(()=>{n(),o.requestAnimationFrame(()=>{o.add(dx(e,r))})}),o.dispose}function dx(e,t){var n,r;let i=En();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 fx(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 Cl(e,t){let n=Q([]),r=ne(e);$e(()=>{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 vs(){return typeof window<"u"}function si(e){return Dh(e)?(e.nodeName||"").toLowerCase():"#document"}function Dt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ln(e){var t;return(t=(Dh(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Dh(e){return vs()?e instanceof Node||e instanceof Dt(e).Node:!1}function yt(e){return vs()?e instanceof Element||e instanceof Dt(e).Element:!1}function sn(e){return vs()?e instanceof HTMLElement||e instanceof Dt(e).HTMLElement:!1}function Tc(e){return!vs()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Dt(e).ShadowRoot}function zi(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Jt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function hx(e){return["table","td","th"].includes(si(e))}function bs(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Sl(e){const t=El(),n=yt(e)?Jt(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 mx(e){let t=Ln(e);for(;sn(t)&&!qr(t);){if(Sl(t))return t;if(bs(t))return null;t=Ln(t)}return null}function El(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function qr(e){return["html","body","#document"].includes(si(e))}function Jt(e){return Dt(e).getComputedStyle(e)}function _s(e){return yt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ln(e){if(si(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Tc(e)&&e.host||ln(e);return Tc(t)?t.host:t}function Oh(e){const t=Ln(e);return qr(t)?e.ownerDocument?e.ownerDocument.body:e.body:sn(t)&&zi(t)?t:Oh(t)}function Mi(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Oh(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=Dt(i);if(o){const a=Ta(s);return t.concat(s,s.visualViewport||[],zi(i)?i:[],a&&n?Mi(a):[])}return t.concat(i,Mi(i,[],n))}function Ta(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function px(){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,ft=Math.max,Ii=Math.round,oo=Math.floor,on=e=>({x:e,y:e}),gx={left:"right",right:"left",bottom:"top",top:"bottom"},wx={start:"end",end:"start"};function $c(e,t,n){return ft(e,lr(t,n))}function ai(e,t){return typeof e=="function"?e(t):e}function Hn(e){return e.split("-")[0]}function Yi(e){return e.split("-")[1]}function Fh(e){return e==="x"?"y":"x"}function Ph(e){return e==="y"?"height":"width"}function ur(e){return["top","bottom"].includes(Hn(e))?"y":"x"}function Rh(e){return Fh(ur(e))}function yx(e,t,n){n===void 0&&(n=!1);const r=Yi(e),i=Rh(e),o=Ph(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=Go(s)),[s,Go(s)]}function vx(e){const t=Go(e);return[$a(e),t,$a(t)]}function $a(e){return e.replace(/start|end/g,t=>wx[t])}function bx(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 _x(e,t,n,r){const i=Yi(e);let o=bx(Hn(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map($a)))),o}function Go(e){return e.replace(/left|right|bottom|top/g,t=>gx[t])}function xx(e){return{top:0,right:0,bottom:0,left:0,...e}}function Cx(e){return typeof e!="number"?xx(e):{top:e,right:e,bottom:e,left:e}}function qo(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 Nc(e,t,n){let{reference:r,floating:i}=e;const o=ur(t),s=Rh(t),a=Ph(s),l=Hn(t),u=o==="y",d=r.x+r.width/2-i.width/2,c=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:c};break;case"left":m={x:r.x-i.width,y:c};break;default:m={x:r.x,y:r.y}}switch(Yi(t)){case"start":m[s]-=p*(n&&u?-1:1);break;case"end":m[s]+=p*(n&&u?-1:1);break}return m}const Sx=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:c}=Nc(u,r,l),p=r,m={},h=0;for(let g=0;g<a.length;g++){const{name:w,fn:C}=a[g],{x:S,y:E,data:$,reset:P}=await C({x:d,y:c,initialPlacement:r,placement:p,strategy:i,middlewareData:m,rects:u,platform:s,elements:{reference:e,floating:t}});d=S??d,c=E??c,m={...m,[w]:{...m[w],...$}},P&&h<=50&&(h++,typeof P=="object"&&(P.placement&&(p=P.placement),P.rects&&(u=P.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):P.rects),{x:d,y:c}=Nc(u,p,l)),g=-1)}return{x:d,y:c,placement:p,strategy:i,middlewareData:m}};async function xs(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:c="floating",altBoundary:p=!1,padding:m=0}=ai(t,e),h=Cx(m),w=a[p?c==="floating"?"reference":"floating":c],C=qo(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(w)))==null||n?w:w.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),S=c==="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)),$=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},P=qo(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:S,offsetParent:E,strategy:l}):S);return{top:(C.top-P.top+h.top)/$.y,bottom:(P.bottom-C.bottom+h.bottom)/$.y,left:(C.left-P.left+h.left)/$.x,right:(P.right-C.right+h.right)/$.x}}const Ex=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:c=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,...w}=ai(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const C=Hn(i),S=ur(a),E=Hn(a)===a,$=await(l.isRTL==null?void 0:l.isRTL(u.floating)),P=p||(E||!g?[Go(a)]:vx(a)),H=h!=="none";!p&&H&&P.push(..._x(a,g,h,$));const R=[a,...P],_=await xs(t,w),y=[];let A=((r=o.flip)==null?void 0:r.overflows)||[];if(d&&y.push(_[C]),c){const G=yx(i,s,$);y.push(_[G[0]],_[G[1]])}if(A=[...A,{placement:i,overflows:y}],!y.every(G=>G<=0)){var k,N;const G=(((k=o.flip)==null?void 0:k.index)||0)+1,le=R[G];if(le)return{data:{index:G,overflows:A},reset:{placement:le}};let q=(N=A.filter(B=>B.overflows[0]<=0).sort((B,F)=>B.overflows[1]-F.overflows[1])[0])==null?void 0:N.placement;if(!q)switch(m){case"bestFit":{var I;const B=(I=A.filter(F=>{if(H){const U=ur(F.placement);return U===S||U==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(U=>U>0).reduce((U,V)=>U+V,0)]).sort((F,U)=>F[1]-U[1])[0])==null?void 0:I[0];B&&(q=B);break}case"initialPlacement":q=a;break}if(i!==q)return{reset:{placement:q}}}return{}}}};async function Ax(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=Hn(n),a=Yi(n),l=ur(n)==="y",u=["left","top"].includes(s)?-1:1,d=o&&l?-1:1,c=ai(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:h}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.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 kx=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 Ax(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}}}}},Tx=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:w=>{let{x:C,y:S}=w;return{x:C,y:S}}},...l}=ai(e,t),u={x:n,y:r},d=await xs(t,l),c=ur(Hn(i)),p=Fh(c);let m=u[p],h=u[c];if(o){const w=p==="y"?"top":"left",C=p==="y"?"bottom":"right",S=m+d[w],E=m-d[C];m=$c(S,m,E)}if(s){const w=c==="y"?"top":"left",C=c==="y"?"bottom":"right",S=h+d[w],E=h-d[C];h=$c(S,h,E)}const g=a.fn({...t,[p]:m,[c]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[c]:s}}}}}},$x=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}=ai(e,t),d=await xs(t,u),c=Hn(i),p=Yi(i),m=ur(i)==="y",{width:h,height:g}=o.floating;let w,C;c==="top"||c==="bottom"?(w=c,C=p===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(C=c,w=p==="end"?"top":"bottom");const S=g-d.top-d.bottom,E=h-d.left-d.right,$=lr(g-d[w],S),P=lr(h-d[C],E),H=!t.middlewareData.shift;let R=$,_=P;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(_=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(R=S),H&&!p){const A=ft(d.left,0),k=ft(d.right,0),N=ft(d.top,0),I=ft(d.bottom,0);m?_=h-2*(A!==0||k!==0?A+k:ft(d.left,d.right)):R=g-2*(N!==0||I!==0?N+I:ft(d.top,d.bottom))}await l({...t,availableWidth:_,availableHeight:R});const y=await s.getDimensions(a.floating);return h!==y.width||g!==y.height?{reset:{rects:!0}}:{}}}};function Lh(e){const t=Jt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=sn(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=Ii(n)!==o||Ii(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function Al(e){return yt(e)?e:e.contextElement}function Fr(e){const t=Al(e);if(!sn(t))return on(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Lh(t);let s=(o?Ii(n.width):n.width)/r,a=(o?Ii(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Nx=on(0);function Hh(e){const t=Dt(e);return!El()||!t.visualViewport?Nx:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Mx(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Dt(e)?!1:t}function cr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Al(e);let s=on(1);t&&(r?yt(r)&&(s=Fr(r)):s=Fr(e));const a=Mx(o,n,r)?Hh(o):on(0);let l=(i.left+a.x)/s.x,u=(i.top+a.y)/s.y,d=i.width/s.x,c=i.height/s.y;if(o){const p=Dt(o),m=r&&yt(r)?Dt(r):r;let h=p,g=Ta(h);for(;g&&r&&m!==h;){const w=Fr(g),C=g.getBoundingClientRect(),S=Jt(g),E=C.left+(g.clientLeft+parseFloat(S.paddingLeft))*w.x,$=C.top+(g.clientTop+parseFloat(S.paddingTop))*w.y;l*=w.x,u*=w.y,d*=w.x,c*=w.y,l+=E,u+=$,h=Dt(g),g=Ta(h)}}return qo({width:d,height:c,x:l,y:u})}function kl(e,t){const n=_s(e).scrollLeft;return t?t.left+n:cr(ln(e)).left+n}function Vh(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:kl(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function Ix(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=ln(r),a=t?bs(t.floating):!1;if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},u=on(1);const d=on(0),c=sn(r);if((c||!c&&!o)&&((si(r)!=="body"||zi(s))&&(l=_s(r)),sn(r))){const m=cr(r);u=Fr(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}const p=s&&!c&&!o?Vh(s,l,!0):on(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 Dx(e){return Array.from(e.getClientRects())}function Ox(e){const t=ln(e),n=_s(e),r=e.ownerDocument.body,i=ft(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=ft(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+kl(e);const a=-n.scrollTop;return Jt(r).direction==="rtl"&&(s+=ft(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}function Fx(e,t){const n=Dt(e),r=ln(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=El();(!u||u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a,y:l}}function Px(e,t){const n=cr(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=sn(e)?Fr(e):on(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 Mc(e,t,n){let r;if(t==="viewport")r=Fx(e,n);else if(t==="document")r=Ox(ln(e));else if(yt(t))r=Px(t,n);else{const i=Hh(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return qo(r)}function jh(e,t){const n=Ln(e);return n===t||!yt(n)||qr(n)?!1:Jt(n).position==="fixed"||jh(n,t)}function Rx(e,t){const n=t.get(e);if(n)return n;let r=Mi(e,[],!1).filter(a=>yt(a)&&si(a)!=="body"),i=null;const o=Jt(e).position==="fixed";let s=o?Ln(e):e;for(;yt(s)&&!qr(s);){const a=Jt(s),l=Sl(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||zi(s)&&!l&&jh(e,s))?r=r.filter(d=>d!==s):i=a,s=Ln(s)}return t.set(e,r),r}function Lx(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?bs(t)?[]:Rx(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((u,d)=>{const c=Mc(t,d,i);return u.top=ft(c.top,u.top),u.right=lr(c.right,u.right),u.bottom=lr(c.bottom,u.bottom),u.left=ft(c.left,u.left),u},Mc(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Hx(e){const{width:t,height:n}=Lh(e);return{width:t,height:n}}function Vx(e,t,n){const r=sn(t),i=ln(t),o=n==="fixed",s=cr(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=on(0);if(r||!r&&!o)if((si(t)!=="body"||zi(i))&&(a=_s(t)),r){const p=cr(t,!0,o,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else i&&(l.x=kl(i));const u=i&&!r&&!o?Vh(i,a):on(0),d=s.left+a.scrollLeft-l.x-u.x,c=s.top+a.scrollTop-l.y-u.y;return{x:d,y:c,width:s.width,height:s.height}}function Ys(e){return Jt(e).position==="static"}function Ic(e,t){if(!sn(e)||Jt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ln(e)===n&&(n=n.ownerDocument.body),n}function Bh(e,t){const n=Dt(e);if(bs(e))return n;if(!sn(e)){let i=Ln(e);for(;i&&!qr(i);){if(yt(i)&&!Ys(i))return i;i=Ln(i)}return n}let r=Ic(e,t);for(;r&&hx(r)&&Ys(r);)r=Ic(r,t);return r&&qr(r)&&Ys(r)&&!Sl(r)?n:r||mx(e)||n}const jx=async function(e){const t=this.getOffsetParent||Bh,n=this.getDimensions,r=await n(e.floating);return{reference:Vx(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Bx(e){return Jt(e).direction==="rtl"}const Ux={convertOffsetParentRelativeRectToViewportRelativeRect:Ix,getDocumentElement:ln,getClippingRect:Lx,getOffsetParent:Bh,getElementRects:jx,getClientRects:Dx,getDimensions:Hx,getScale:Fr,isElement:yt,isRTL:Bx};function Uh(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Wx(e,t){let n=null,r;const i=ln(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:c,width:p,height:m}=u;if(a||t(),!p||!m)return;const h=oo(c),g=oo(i.clientWidth-(d+p)),w=oo(i.clientHeight-(c+m)),C=oo(d),E={rootMargin:-h+"px "+-g+"px "+-w+"px "+-C+"px",threshold:ft(0,lr(1,l))||1};let $=!0;function P(H){const R=H[0].intersectionRatio;if(R!==l){if(!$)return s();R?s(!1,R):r=setTimeout(()=>{s(!1,1e-7)},1e3)}R===1&&!Uh(u,e.getBoundingClientRect())&&s(),$=!1}try{n=new IntersectionObserver(P,{...E,root:i.ownerDocument})}catch{n=new IntersectionObserver(P,E)}n.observe(e)}return s(!0),o}function Gx(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=Al(e),d=i||o?[...u?Mi(u):[],...Mi(t)]:[];d.forEach(C=>{i&&C.addEventListener("scroll",n,{passive:!0}),o&&C.addEventListener("resize",n)});const c=u&&a?Wx(u,n):null;let p=-1,m=null;s&&(m=new ResizeObserver(C=>{let[S]=C;S&&S.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,g=l?cr(e):null;l&&w();function w(){const C=cr(e);g&&!Uh(g,C)&&n(),g=C,h=requestAnimationFrame(w)}return n(),()=>{var C;d.forEach(S=>{i&&S.removeEventListener("scroll",n),o&&S.removeEventListener("resize",n)}),c==null||c(),(C=m)==null||C.disconnect(),m=null,l&&cancelAnimationFrame(h)}}const Zs=xs,qx=kx,zx=Tx,Yx=Ex,Zx=$x,Kx=(e,t,n)=>{const r=new Map,i={platform:Ux,...n},o={...i.platform,_c:r};return Sx(e,t,{...i,platform:o})};var yo=typeof document<"u"?Cn:$e;function zo(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(!zo(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)&&!zo(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Wh(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Dc(e,t){const n=Wh(e);return Math.round(t*n)/n}function Ks(e){const t=Q(e);return yo(()=>{t.current=e}),t}function Xx(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,c]=ce({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=ce(r);zo(p,r)||m(r);const[h,g]=ce(null),[w,C]=ce(null),S=_e(F=>{F!==H.current&&(H.current=F,g(F))},[]),E=_e(F=>{F!==R.current&&(R.current=F,C(F))},[]),$=o||h,P=s||w,H=Q(null),R=Q(null),_=Q(d),y=l!=null,A=Ks(l),k=Ks(i),N=Ks(u),I=_e(()=>{if(!H.current||!R.current)return;const F={placement:t,strategy:n,middleware:p};k.current&&(F.platform=k.current),Kx(H.current,R.current,F).then(U=>{const V={...U,isPositioned:N.current!==!1};G.current&&!zo(_.current,V)&&(_.current=V,It(()=>{c(V)}))})},[p,t,n,k,N]);yo(()=>{u===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,c(F=>({...F,isPositioned:!1})))},[u]);const G=Q(!1);yo(()=>(G.current=!0,()=>{G.current=!1}),[]),yo(()=>{if($&&(H.current=$),P&&(R.current=P),$&&P){if(A.current)return A.current($,P,I);I()}},[$,P,I,A,y]);const le=ie(()=>({reference:H,floating:R,setReference:S,setFloating:E}),[S,E]),q=ie(()=>({reference:$,floating:P}),[$,P]),B=ie(()=>{const F={position:n,left:0,top:0};if(!q.floating)return F;const U=Dc(q.floating,d.x),V=Dc(q.floating,d.y);return a?{...F,transform:"translate("+U+"px, "+V+"px)",...Wh(q.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:U,top:V}},[n,a,q.floating,d.x,d.y]);return ie(()=>({...d,update:I,refs:le,elements:q,floatingStyles:B}),[d,I,le,q,B])}const Gh=(e,t)=>({...qx(e),options:[e,t]}),Qx=(e,t)=>({...zx(e),options:[e,t]}),Jx=(e,t)=>({...Yx(e),options:[e,t]}),e2=(e,t)=>({...Zx(e),options:[e,t]}),qh={...Co},t2=qh.useInsertionEffect,n2=t2||(e=>e());function zh(e){const t=Q(()=>{});return n2(()=>{t.current=e}),_e(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 Na=typeof document<"u"?Cn:$e;let Oc=!1,r2=0;const Fc=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+r2++;function i2(){const[e,t]=ce(()=>Oc?Fc():void 0);return Na(()=>{e==null&&t(Fc())},[]),$e(()=>{Oc=!0},[]),e}const o2=qh.useId,s2=o2||i2;function a2(){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 l2=qe(null),u2=qe(null),c2=()=>{var e;return((e=Ne(l2))==null?void 0:e.id)||null},d2=()=>Ne(u2),f2="data-floating-ui-focusable";function h2(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=s2(),o=Q({}),[s]=ce(()=>a2()),a=c2()!=null,[l,u]=ce(r.reference),d=zh((m,h,g)=>{o.current.openEvent=m?h:void 0,s.emit("openchange",{open:m,event:h,reason:g,nested:a}),n==null||n(m,h,g)}),c=ie(()=>({setPositionReference:u}),[]),p=ie(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return ie(()=>({dataRef:o,open:t,onOpenChange:d,elements:p,events:s,floatingId:i,refs:c}),[t,d,p,s,i,c])}function m2(e){e===void 0&&(e={});const{nodeId:t}=e,n=h2({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,s]=ce(null),[a,l]=ce(null),d=(i==null?void 0:i.domReference)||o,c=Q(null),p=d2();Na(()=>{d&&(c.current=d)},[d]);const m=Xx({...e,elements:{...i,...a&&{reference:a}}}),h=_e(E=>{const $=yt(E)?{getBoundingClientRect:()=>E.getBoundingClientRect(),contextElement:E}:E;l($),m.refs.setReference($)},[m.refs]),g=_e(E=>{(yt(E)||E===null)&&(c.current=E,s(E)),(yt(m.refs.reference.current)||m.refs.reference.current===null||E!==null&&!yt(E))&&m.refs.setReference(E)},[m.refs]),w=ie(()=>({...m.refs,setReference:g,setPositionReference:h,domReference:c}),[m.refs,g,h]),C=ie(()=>({...m.elements,domReference:d}),[m.elements,d]),S=ie(()=>({...m,...r,refs:w,elements:C,nodeId:t}),[m,w,C,t,r]);return Na(()=>{r.dataRef.current.floatingContext=S;const E=p==null?void 0:p.nodesRef.current.find($=>$.id===t);E&&(E.context=S)}),ie(()=>({...m,context:S,refs:w,elements:C}),[m,w,C,S])}const Pc="active",Rc="selected";function Xs(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[Pc]:s,[Rc]:a,...l}=e;o=l}return{...n==="floating"&&{tabIndex:-1,[f2]:""},...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&&[Pc,Rc].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof d=="function"){var c;(c=r.get(u))==null||c.push(d),s[u]=function(){for(var p,m=arguments.length,h=new Array(m),g=0;g<m;g++)h[g]=arguments[g];return(p=r.get(u))==null?void 0:p.map(w=>w(...h)).find(w=>w!==void 0)}}}else s[u]=d}),s),{})}}function p2(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=_e(a=>Xs(a,e,"reference"),t),o=_e(a=>Xs(a,e,"floating"),n),s=_e(a=>Xs(a,e,"item"),r);return ie(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:s}),[i,o,s])}function Lc(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const g2=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}=ai(e,t),{rects:c,elements:{floating:p}}=t,m=n.current[s],h=(u==null?void 0:u.current)||p,g=p.clientTop||h.clientTop,w=p.clientTop!==0,C=h.clientTop!==0,S=p===h;if(!m)return{};const E={...t,...await Gh(-m.offsetTop-p.clientTop-c.reference.height/2-m.offsetHeight/2-o).fn(t)},$=await Zs(Lc(E,h.scrollHeight+g+p.clientTop),d),P=await Zs(E,{...d,elementContext:"reference"}),H=ft(0,$.top),R=E.y+H,A=(h.scrollHeight>h.clientHeight?k=>k:Ii)(ft(0,h.scrollHeight+(w&&S||C?g*2:0)-H-ft(0,$.bottom)));if(h.style.maxHeight=A+"px",h.scrollTop=H,i){const k=h.offsetHeight<m.offsetHeight*lr(a,n.current.length)-1||P.top>=-l||P.bottom>=-l;It(()=>i(k))}return r&&(r.current=await Zs(Lc({...E,y:R},h.offsetHeight+g+p.clientTop),d)),{y:R}}});function w2(e,t){const{open:n,elements:r}=e,{enabled:i=!0,overflowRef:o,scrollRef:s,onChange:a}=t,l=zh(a),u=Q(!1),d=Q(null),c=Q(null);$e(()=>{if(!i)return;function m(g){if(g.ctrlKey||!h||o.current==null)return;const w=g.deltaY,C=o.current.top>=-.5,S=o.current.bottom>=-.5,E=h.scrollHeight-h.clientHeight,$=w<0?-1:1,P=w<0?"max":"min";h.scrollHeight<=h.clientHeight||(!C&&w>0||!S&&w<0?(g.preventDefault(),It(()=>{l(H=>H+Math[P](w,E*$))})):/firefox/i.test(px())&&(h.scrollTop+=w))}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&&(c.current={...o.current})}),()=>{d.current=null,c.current=null,h.removeEventListener("wheel",m)}},[i,n,r.floating,o,s,l]);const p=ie(()=>({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)&&It(()=>l(g=>g+h))}requestAnimationFrame(()=>{d.current=m.scrollTop})}}}),[r.floating,l,o,s]);return ie(()=>i?{floating:p}:{},[i,p])}let li=qe({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});li.displayName="FloatingContext";let Tl=qe(null);Tl.displayName="PlacementContext";function y2(e){return ie(()=>e?typeof e=="string"?{to:e}:e:null,[e])}function v2(){return Ne(li).setReference}function b2(){return Ne(li).getReferenceProps}function _2(){let{getFloatingProps:e,slot:t}=Ne(li);return _e((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}function x2(e=null){e===!1&&(e=null),typeof e=="string"&&(e={to:e});let t=Ne(Tl),n=ie(()=>e,[JSON.stringify(e,(i,o)=>{var s;return(s=o==null?void 0:o.outerHTML)!=null?s:o})]);Ve(()=>{t==null||t(n??null)},[t,n]);let r=Ne(li);return ie(()=>[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}let Hc=4;function C2({children:e,enabled:t=!0}){let[n,r]=ce(null),[i,o]=ce(0),s=Q(null),[a,l]=ce(null);S2(a);let u=t&&n!==null&&a!==null,{to:d="bottom",gap:c=0,offset:p=0,padding:m=0,inner:h}=E2(n,a),[g,w="center"]=d.split(" ");Ve(()=>{u&&o(0)},[u]);let{refs:C,floatingStyles:S,context:E}=m2({open:u,placement:g==="selection"?w==="center"?"bottom":`bottom-${w}`:w==="center"?`${g}`:`${g}-${w}`,strategy:"absolute",transform:!1,middleware:[Gh({mainAxis:g==="selection"?0:c,crossAxis:p}),Qx({padding:m}),g!=="selection"&&Jx({padding:m}),g==="selection"&&h?g2({...h,padding:m,overflowRef:s,offset:i,minItemsVisible:Hc,referenceOverflowThreshold:m,onFallbackChange(k){var N,I;if(!k)return;let G=E.elements.floating;if(!G)return;let le=parseFloat(getComputedStyle(G).scrollPaddingBottom)||0,q=Math.min(Hc,G.childElementCount),B=0,F=0;for(let U of(I=(N=E.elements.floating)==null?void 0:N.childNodes)!=null?I:[])if(U instanceof HTMLElement){let V=U.offsetTop,se=V+U.clientHeight+le,Y=G.scrollTop,D=Y+G.clientHeight;if(V>=Y&&se<=D)q--;else{F=Math.max(0,Math.min(se,D)-Math.max(V,Y)),B=U.clientHeight;break}}q>=1&&o(U=>{let V=B*q-F+le;return U>=V?U:V})}}):null,e2({padding:m,apply({availableWidth:k,availableHeight:N,elements:I}){Object.assign(I.floating.style,{overflow:"auto",maxWidth:`${k}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${N}px)`})}})].filter(Boolean),whileElementsMounted:Gx}),[$=g,P=w]=E.placement.split("-");g==="selection"&&($="selection");let H=ie(()=>({anchor:[$,P].filter(Boolean).join(" ")}),[$,P]),R=w2(E,{overflowRef:s,onChange:o}),{getReferenceProps:_,getFloatingProps:y}=p2([R]),A=ne(k=>{l(k),C.setFloating(k)});return f(Tl.Provider,{value:r},f(li.Provider,{value:{setFloating:A,setReference:C.setReference,styles:S,getReferenceProps:_,getFloatingProps:y,slot:H}},e))}function S2(e){Ve(()=>{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 E2(e,t){var n,r,i;let o=Qs((n=e==null?void 0:e.gap)!=null?n:"var(--anchor-gap, 0)",t),s=Qs((r=e==null?void 0:e.offset)!=null?r:"var(--anchor-offset, 0)",t),a=Qs((i=e==null?void 0:e.padding)!=null?i:"var(--anchor-padding, 0)",t);return{...e,gap:o,offset:s,padding:a}}function Qs(e,t,n=void 0){let r=jn(),i=ne((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=Vc(l,u);return[d,c=>{let p=Yh(l);{let m=p.map(h=>window.getComputedStyle(u).getPropertyValue(h));r.requestAnimationFrame(function h(){r.nextFrame(h);let g=!1;for(let[C,S]of p.entries()){let E=window.getComputedStyle(u).getPropertyValue(S);if(m[C]!==E){m[C]=E,g=!0;break}}if(!g)return;let w=Vc(l,u);d!==w&&(c(w),d=w)})}return r.dispose}]}return[n,null]}),o=ie(()=>i(e,t)[0],[e,t]),[s=o,a]=ce();return Ve(()=>{let[l,u]=i(e,t);if(a(l),!!u)return u(a)},[e,t]),s}function Yh(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,...Yh(i)]:[r]}return[]}function Vc(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 A2(e,t){let[n,r]=ce(t);return!e&&n!==t&&r(t),e?n:t}let Cs=qe(null);Cs.displayName="OpenClosedContext";var vt=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(vt||{});function Zi(){return Ne(Cs)}function Zh({value:e,children:t}){return W.createElement(Cs.Provider,{value:e},t)}function k2({children:e}){return W.createElement(Cs.Provider,{value:null},e)}function T2(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let Nn=[];T2(()=>{function e(t){if(!(t.target instanceof HTMLElement)||t.target===document.body||Nn[0]===t.target)return;let n=t.target;n=n.closest(Wo),Nn.unshift(n??t.target),Nn=Nn.filter(r=>r!=null&&r.isConnected),Nn.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 $2(e){throw new Error("Unexpected object: "+e)}var rt=(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))(rt||{});function Js(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:$2(e)}}function Kh(e){let t=ne(e),n=Q(!1);$e(()=>(n.current=!1,()=>{n.current=!0,gs(()=>{n.current&&t()})}),[t])}function N2(){let e=typeof document>"u";return"useSyncExternalStore"in Co?(t=>t.useSyncExternalStore)(Co)(()=>()=>{},()=>!1,()=>!e):!1}function Ki(){let e=N2(),[t,n]=ce(nr.isHandoffComplete);return t&&nr.isHandoffComplete===!1&&n(!1),$e(()=>{t!==!0&&n(!0)},[t]),$e(()=>nr.handoff(),[]),e?!1:t}let Xh=qe(!1);function M2(){return Ne(Xh)}function jc(e){return W.createElement(Xh.Provider,{value:e.force},e.children)}function I2(e){let t=M2(),n=Ne(Jh),r=oi(e),[i,o]=ce(()=>{var s;if(!t&&n!==null)return(s=n.current)!=null?s:null;if(nr.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 $e(()=>{i!==null&&(r!=null&&r.body.contains(i)||r==null||r.body.appendChild(i))},[i,r]),$e(()=>{t||n!==null&&o(n.current)},[n,o,t]),i}let Qh=Le,D2=tt(function(e,t){let n=e,r=Q(null),i=pt(E_(c=>{r.current=c}),t),o=oi(r),s=I2(r),[a]=ce(()=>{var c;return nr.isServer?null:(c=o==null?void 0:o.createElement("div"))!=null?c:null}),l=Ne(Ma),u=Ki();Ve(()=>{!s||!a||s.contains(a)||(a.setAttribute("data-headlessui-portal",""),s.appendChild(a))},[s,a]),Ve(()=>{if(a&&l)return l.register(a)},[l,a]),Kh(()=>{var c;!s||!a||(a instanceof Node&&s.contains(a)&&s.removeChild(a),s.childNodes.length<=0&&((c=s.parentElement)==null||c.removeChild(s)))});let d=st();return u?!s||!a?null:Qo(d({ourProps:{ref:i},theirProps:n,slot:{},defaultTag:Qh,name:"Portal"}),a):null});function O2(e,t){let n=pt(t),{enabled:r=!0,...i}=e,o=st();return r?W.createElement(D2,{...i,ref:n}):o({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:Qh,name:"Portal"})}let F2=Le,Jh=qe(null);function P2(e,t){let{target:n,...r}=e,i={ref:pt(t)},o=st();return W.createElement(Jh.Provider,{value:n},o({ourProps:i,theirProps:r,defaultTag:F2,name:"Popover.Group"}))}let Ma=qe(null);function R2(){let e=Ne(Ma),t=Q([]),n=ne(o=>(t.current.push(o),e&&e.register(o),()=>r(o))),r=ne(o=>{let s=t.current.indexOf(o);s!==-1&&t.current.splice(s,1),e&&e.unregister(o)}),i=ie(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,ie(()=>function({children:o}){return W.createElement(Ma.Provider,{value:i},o)},[i])]}let L2=tt(O2),em=tt(P2),tm=Object.assign(L2,{Group:em});function H2(e,t=typeof document<"u"?document.defaultView:null,n){let r=ii(e,"escape");$h(t,"keydown",i=>{r&&(i.defaultPrevented||i.key===nt.Escape&&n(i))})}function V2(){var e;let[t]=ce(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[n,r]=ce((e=t==null?void 0:t.matches)!=null?e:!1);return Ve(()=>{if(!t)return;function i(o){r(o.matches)}return t.addEventListener("change",i),()=>t.removeEventListener("change",i)},[t]),n}function j2({defaultContainers:e=[],portals:t,mainTreeNode:n}={}){let r=oi(n),i=ne(()=>{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:ne(o=>i().some(s=>s.contains(o)))}}let nm=qe(null);function Bc({children:e,node:t}){let[n,r]=ce(null),i=rm(t??n);return W.createElement(nm.Provider,{value:i},e,i===null&&W.createElement(Ni,{features:Gr.Hidden,ref:o=>{var s,a;if(o){for(let l of(a=(s=ri(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 rm(e=null){var t;return(t=Ne(nm))!=null?t:e}function $l(){let e=Q(!1);return Ve(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var _i=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(_i||{});function B2(){let e=Q(0);return kh(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function im(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 U2="div";var Xn=(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))(Xn||{});function W2(e,t){let n=Q(null),r=pt(n,t),{initialFocus:i,initialFocusFallback:o,containers:s,features:a=15,...l}=e;Ki()||(a=0);let u=oi(n);Y2(a,{ownerDocument:u});let d=Z2(a,{ownerDocument:u,container:n,initialFocus:i,initialFocusFallback:o});K2(a,{ownerDocument:u,container:n,containers:s,previousActiveElement:d});let c=B2(),p=ne(S=>{let E=n.current;E&&($=>$())(()=>{Et(c.current,{[_i.Forwards]:()=>{Or(E,Zt.First,{skipElements:[S.relatedTarget,o]})},[_i.Backwards]:()=>{Or(E,Zt.Last,{skipElements:[S.relatedTarget,o]})}})})}),m=ii(!!(a&2),"focus-trap#tab-lock"),h=jn(),g=Q(!1),w={ref:r,onKeyDown(S){S.key=="Tab"&&(g.current=!0,h.requestAnimationFrame(()=>{g.current=!1}))},onBlur(S){if(!(a&4))return;let E=im(s);n.current instanceof HTMLElement&&E.add(n.current);let $=S.relatedTarget;$ instanceof HTMLElement&&$.dataset.headlessuiFocusGuard!=="true"&&(om(E,$)||(g.current?Or(n.current,Et(c.current,{[_i.Forwards]:()=>Zt.Next,[_i.Backwards]:()=>Zt.Previous})|Zt.WrapAround,{relativeTo:S.target}):S.target instanceof HTMLElement&&yn(S.target)))}},C=st();return W.createElement(W.Fragment,null,m&&W.createElement(Ni,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:Gr.Focusable}),C({ourProps:w,theirProps:l,defaultTag:U2,name:"FocusTrap"}),m&&W.createElement(Ni,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:Gr.Focusable}))}let G2=tt(W2),q2=Object.assign(G2,{features:Xn});function z2(e=!0){let t=Q(Nn.slice());return Cl(([n],[r])=>{r===!0&&n===!1&&gs(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=Nn.slice())},[e,Nn,t]),ne(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function Y2(e,{ownerDocument:t}){let n=!!(e&8),r=z2(n);Cl(()=>{n||(t==null?void 0:t.activeElement)===(t==null?void 0:t.body)&&yn(r())},[n]),Kh(()=>{n&&yn(r())})}function Z2(e,{ownerDocument:t,container:n,initialFocus:r,initialFocusFallback:i}){let o=Q(null),s=ii(!!(e&1),"focus-trap#initial-focus"),a=$l();return Cl(()=>{if(e===0)return;if(!s){i!=null&&i.current&&yn(i.current);return}let l=n.current;l&&gs(()=>{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)yn(r.current);else{if(e&16){if(Or(l,Zt.First|Zt.AutoFocus)!==ka.Error)return}else if(Or(l,Zt.First)!==ka.Error)return;if(i!=null&&i.current&&(yn(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 K2(e,{ownerDocument:t,container:n,containers:r,previousActiveElement:i}){let o=$l(),s=!!(e&4);$h(t==null?void 0:t.defaultView,"focus",a=>{if(!s||!o.current)return;let l=im(r);n.current instanceof HTMLElement&&l.add(n.current);let u=i.current;if(!u)return;let d=a.target;d&&d instanceof HTMLElement?om(l,d)?(i.current=d,yn(d)):(a.preventDefault(),a.stopPropagation(),yn(u)):yn(i.current)},!0)}function om(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function sm(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||((t=e.as)!=null?t:lm)!==Le||W.Children.count(e.children)===1}let Ss=qe(null);Ss.displayName="TransitionContext";var X2=(e=>(e.Visible="visible",e.Hidden="hidden",e))(X2||{});function Q2(){let e=Ne(Ss);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function J2(){let e=Ne(Es);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Es=qe(null);Es.displayName="NestingContext";function As(e){return"children"in e?As(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function am(e,t){let n=Bn(e),r=Q([]),i=$l(),o=jn(),s=ne((m,h=Dn.Hidden)=>{let g=r.current.findIndex(({el:w})=>w===m);g!==-1&&(Et(h,{[Dn.Unmount](){r.current.splice(g,1)},[Dn.Hidden](){r.current[g].state="hidden"}}),o.microTask(()=>{var w;!As(r)&&i.current&&((w=n.current)==null||w.call(n))}))}),a=ne(m=>{let h=r.current.find(({el:g})=>g===m);return h?h.state!=="visible"&&(h.state="visible"):r.current.push({el:m,state:"visible"}),()=>s(m,Dn.Unmount)}),l=Q([]),u=Q(Promise.resolve()),d=Q({enter:[],leave:[]}),c=ne((m,h,g)=>{l.current.splice(0),t&&(t.chains.current[h]=t.chains.current[h].filter(([w])=>w!==m)),t==null||t.chains.current[h].push([m,new Promise(w=>{l.current.push(w)})]),t==null||t.chains.current[h].push([m,new Promise(w=>{Promise.all(d.current[h].map(([C,S])=>S)).then(()=>w())})]),h==="enter"?u.current=u.current.then(()=>t==null?void 0:t.wait.current).then(()=>g(h)):g(h)}),p=ne((m,h,g)=>{Promise.all(d.current[h].splice(0).map(([w,C])=>C)).then(()=>{var w;(w=l.current.shift())==null||w()}).then(()=>g(h))});return ie(()=>({children:r,register:a,unregister:s,onStart:c,onStop:p,wait:u,chains:d}),[a,s,r,c,p,d,u])}let lm=Le,um=Wr.RenderStrategy;function eC(e,t){var n,r;let{transition:i=!0,beforeEnter:o,afterEnter:s,beforeLeave:a,afterLeave:l,enter:u,enterFrom:d,enterTo:c,entered:p,leave:m,leaveFrom:h,leaveTo:g,...w}=e,[C,S]=ce(null),E=Q(null),$=sm(e),P=pt(...$?[E,t,S]:t===null?[]:[t]),H=(n=w.unmount)==null||n?Dn.Unmount:Dn.Hidden,{show:R,appear:_,initial:y}=Q2(),[A,k]=ce(R?"visible":"hidden"),N=J2(),{register:I,unregister:G}=N;Ve(()=>I(E),[I,E]),Ve(()=>{if(H===Dn.Hidden&&E.current){if(R&&A!=="visible"){k("visible");return}return Et(A,{hidden:()=>G(E),visible:()=>I(E)})}},[A,E,I,G,R,H]);let le=Ki();Ve(()=>{if($&&le&&A==="visible"&&E.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[E,A,le,$]);let q=y&&!_,B=_&&R&&y,F=Q(!1),U=am(()=>{F.current||(k("hidden"),G(E))},N),V=ne(Pe=>{F.current=!0;let ee=Pe?"enter":"leave";U.onStart(E,ee,ye=>{ye==="enter"?o==null||o():ye==="leave"&&(a==null||a())})}),se=ne(Pe=>{let ee=Pe?"enter":"leave";F.current=!1,U.onStop(E,ee,ye=>{ye==="enter"?s==null||s():ye==="leave"&&(l==null||l())}),ee==="leave"&&!As(U)&&(k("hidden"),G(E))});$e(()=>{$&&i||(V(R),se(R))},[R,$,i]);let Y=!(!i||!$||!le||q),[,D]=Ih(Y,C,R,{start:V,end:se}),K=$n({ref:P,className:((r=Ea(w.className,B&&u,B&&d,D.enter&&u,D.enter&&D.closed&&d,D.enter&&!D.closed&&c,D.leave&&m,D.leave&&!D.closed&&h,D.leave&&D.closed&&g,!D.transition&&R&&p))==null?void 0:r.trim())||void 0,...Mh(D)}),oe=0;A==="visible"&&(oe|=vt.Open),A==="hidden"&&(oe|=vt.Closed),D.enter&&(oe|=vt.Opening),D.leave&&(oe|=vt.Closing);let De=st();return W.createElement(Es.Provider,{value:U},W.createElement(Zh,{value:oe},De({ourProps:K,theirProps:w,defaultTag:lm,features:um,visible:A==="visible",name:"Transition.Child"})))}function tC(e,t){let{show:n,appear:r=!1,unmount:i=!0,...o}=e,s=Q(null),a=sm(e),l=pt(...a?[s,t]:t===null?[]:[t]);Ki();let u=Zi();if(n===void 0&&u!==null&&(n=(u&vt.Open)===vt.Open),n===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[d,c]=ce(n?"visible":"hidden"),p=am(()=>{n||c("hidden")}),[m,h]=ce(!0),g=Q([n]);Ve(()=>{m!==!1&&g.current[g.current.length-1]!==n&&(g.current.push(n),h(!1))},[g,n]);let w=ie(()=>({show:n,appear:r,initial:m}),[n,r,m]);Ve(()=>{n?c("visible"):!As(p)&&s.current!==null&&c("hidden")},[n,p]);let C={unmount:i},S=ne(()=>{var P;m&&h(!1),(P=e.beforeEnter)==null||P.call(e)}),E=ne(()=>{var P;m&&h(!1),(P=e.beforeLeave)==null||P.call(e)}),$=st();return W.createElement(Es.Provider,{value:p},W.createElement(Ss.Provider,{value:w},$({ourProps:{...C,as:Le,children:W.createElement(cm,{ref:l,...C,...o,beforeEnter:S,beforeLeave:E})},theirProps:{},defaultTag:Le,features:um,visible:d==="visible",name:"Transition"})))}function nC(e,t){let n=Ne(Ss)!==null,r=Zi()!==null;return W.createElement(W.Fragment,null,!n&&r?W.createElement(Ia,{ref:t,...e}):W.createElement(cm,{ref:t,...e}))}let Ia=tt(tC),cm=tt(eC),Nl=tt(nC),rC=Object.assign(Ia,{Child:Nl,Root:Ia});var iC=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(iC||{}),oC=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(oC||{});let sC={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},Ml=qe(null);Ml.displayName="DialogContext";function ks(e){let t=Ne(Ml);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,ks),n}return t}function aC(e,t){return Et(t.type,sC,e,t)}let Uc=tt(function(e,t){let n=Bt(),{id:r=`headlessui-dialog-${n}`,open:i,onClose:o,initialFocus:s,role:a="dialog",autoFocus:l=!0,__demoMode:u=!1,unmount:d=!1,...c}=e,p=Q(!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=Zi();i===void 0&&m!==null&&(i=(m&vt.Open)===vt.Open);let h=Q(null),g=pt(h,t),w=oi(h),C=i?0:1,[S,E]=fr(aC,{titleId:null,descriptionId:null,panelRef:Ko()}),$=ne(()=>o(!1)),P=ne(se=>E({type:0,id:se})),H=Ki()?C===0:!1,[R,_]=R2(),y={get current(){var se;return(se=S.panelRef.current)!=null?se:h.current}},A=rm(),{resolveContainers:k}=j2({mainTreeNode:A,portals:R,defaultContainers:[y]}),N=m!==null?(m&vt.Closing)===vt.Closing:!1;_h(u||N?!1:H,{allowed:ne(()=>{var se,Y;return[(Y=(se=h.current)==null?void 0:se.closest("[data-headlessui-portal]"))!=null?Y:null]}),disallowed:ne(()=>{var se;return[(se=A==null?void 0:A.closest("body > *:not(#headlessui-portal-root)"))!=null?se:null]})}),Th(H,k,se=>{se.preventDefault(),$()}),H2(H,w==null?void 0:w.defaultView,se=>{se.preventDefault(),se.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),$()}),Nh(u||N?!1:H,w,k),xh(H,h,$);let[I,G]=k_(),le=ie(()=>[{dialogState:C,close:$,setTitleId:P,unmount:d},S],[C,S,$,P,d]),q=ie(()=>({open:C===0}),[C]),B={ref:g,id:r,role:a,tabIndex:-1,"aria-modal":u?void 0:C===0?!0:void 0,"aria-labelledby":S.titleId,"aria-describedby":I,unmount:d},F=!V2(),U=Xn.None;H&&!u&&(U|=Xn.RestoreFocus,U|=Xn.TabLock,l&&(U|=Xn.AutoFocus),F&&(U|=Xn.InitialFocus));let V=st();return W.createElement(k2,null,W.createElement(jc,{force:!0},W.createElement(tm,null,W.createElement(Ml.Provider,{value:le},W.createElement(em,{target:h},W.createElement(jc,{force:!1},W.createElement(G,{slot:q},W.createElement(_,null,W.createElement(q2,{initialFocus:s,initialFocusFallback:h,containers:k,features:U},W.createElement(L_,{value:$},V({ourProps:B,theirProps:c,slot:q,defaultTag:lC,features:uC,visible:C===0,name:"Dialog"})))))))))))}),lC="div",uC=Wr.RenderStrategy|Wr.Static;function cC(e,t){let{transition:n=!1,open:r,...i}=e,o=Zi(),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?W.createElement(Bc,null,W.createElement(rC,{show:r,transition:n,unmount:i.unmount},W.createElement(Uc,{ref:t,...i}))):W.createElement(Bc,null,W.createElement(Uc,{ref:t,open:r,...i}))}let dC="div";function fC(e,t){let n=Bt(),{id:r=`headlessui-dialog-panel-${n}`,transition:i=!1,...o}=e,[{dialogState:s,unmount:a},l]=ks("Dialog.Panel"),u=pt(t,l.panelRef),d=ie(()=>({open:s===0}),[s]),c=ne(w=>{w.stopPropagation()}),p={ref:u,id:r,onClick:c},m=i?Nl:Le,h=i?{unmount:a}:{},g=st();return W.createElement(m,{...h},g({ourProps:p,theirProps:o,slot:d,defaultTag:dC,name:"Dialog.Panel"}))}let hC="div";function mC(e,t){let{transition:n=!1,...r}=e,[{dialogState:i,unmount:o}]=ks("Dialog.Backdrop"),s=ie(()=>({open:i===0}),[i]),a={ref:t,"aria-hidden":!0},l=n?Nl:Le,u=n?{unmount:o}:{},d=st();return W.createElement(l,{...u},d({ourProps:a,theirProps:r,slot:s,defaultTag:hC,name:"Dialog.Backdrop"}))}let pC="h2";function gC(e,t){let n=Bt(),{id:r=`headlessui-dialog-title-${n}`,...i}=e,[{dialogState:o,setTitleId:s}]=ks("Dialog.Title"),a=pt(t);$e(()=>(s(r),()=>s(null)),[r,s]);let l=ie(()=>({open:o===0}),[o]),u={ref:a,id:r};return st()({ourProps:u,theirProps:i,slot:l,defaultTag:pC,name:"Dialog.Title"})}let wC=tt(cC),yC=tt(fC),vC=tt(mC),bC=tt(gC),dm=Object.assign(wC,{Panel:yC,Title:bC,Description:M_});function _C(e,t){let n=Q({left:0,top:0});if(Ve(()=>{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 Wc=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Gc(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 Wc.test(s)&&(s=s.replace(Wc,"")),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():Gc(o).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return Gc(e).trim()}function CC(e){let t=Q(""),n=Q("");return ne(()=>{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 SC=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(SC||{}),EC=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(EC||{}),AC=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(AC||{}),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 ea(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=Eh(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 TC={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===rt.Nothing)return{...a,activeOptionIndex:null};if(t.focus===rt.Specific)return{...a,activeOptionIndex:e.options.findIndex(d=>d.id===t.id)};if(t.focus===rt.Previous){let d=e.activeOptionIndex;if(d!==null){let c=e.options[d].dataRef.current.domRef,p=Js(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=c.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===rt.Next){let d=e.activeOptionIndex;if(d!==null){let c=e.options[d].dataRef.current.domRef,p=Js(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=c.current)==null?void 0:o.nextElementSibling)===m.current||((s=m.current)==null?void 0:s.nextElementSibling)===null)return{...a,activeOptionIndex:p}}}}let l=ea(e),u=Js(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=ea(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=ea(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}},Il=qe(null);Il.displayName="ListboxActionsContext";function Ts(e){let t=Ne(Il);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ts),n}return t}let $s=qe(null);$s.displayName="ListboxDataContext";function Xi(e){let t=Ne($s);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Xi),n}return t}function $C(e,t){return Et(t.type,TC,e,t)}let NC=Le;function MC(e,t){var n;let r=_l(),{value:i,defaultValue:o,form:s,name:a,onChange:l,by:u,invalid:d=!1,disabled:c=r||!1,horizontal:p=!1,multiple:m=!1,__demoMode:h=!1,...g}=e;const w=p?"horizontal":"vertical";let C=pt(t),S=m_(o),[E=m?[]:void 0,$]=h_(i,l,S),[P,H]=fr($C,{dataRef:Ko(),listboxState:h?0:1,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,optionsVisible:!1,buttonElement:null,optionsElement:null,__demoMode:h}),R=Q({static:!1,hold:!1}),_=Q(new Map),y=V_(u),A=_e(j=>Et(k.mode,{1:()=>E.some(fe=>y(fe,j)),0:()=>y(E,j)}),[E]),k=ie(()=>({...P,value:E,disabled:c,invalid:d,mode:m?1:0,orientation:w,compare:y,isSelected:A,optionsPropsRef:R,listRef:_}),[E,c,d,m,P,_]);Ve(()=>{P.dataRef.current=k},[k]);let N=k.listboxState===0;Th(N,[k.buttonElement,k.optionsElement],(j,fe)=>{var ae;H({type:1}),Sh(fe,xl.Loose)||(j.preventDefault(),(ae=k.buttonElement)==null||ae.focus())});let I=ie(()=>({open:k.listboxState===0,disabled:c,invalid:d,value:E}),[k,c,E,d]),G=ne(j=>{let fe=k.options.find(ae=>ae.id===j);fe&&se(fe.dataRef.current.value)}),le=ne(()=>{if(k.activeOptionIndex!==null){let{dataRef:j,id:fe}=k.options[k.activeOptionIndex];se(j.current.value),H({type:2,focus:rt.Specific,id:fe})}}),q=ne(()=>H({type:0})),B=ne(()=>H({type:1})),F=jn(),U=ne((j,fe,ae)=>{F.dispose(),F.microTask(()=>j===rt.Specific?H({type:2,focus:rt.Specific,id:fe,trigger:ae}):H({type:2,focus:j,trigger:ae}))}),V=ne((j,fe)=>(H({type:5,id:j,dataRef:fe}),()=>H({type:6,id:j}))),se=ne(j=>Et(k.mode,{0(){return $==null?void 0:$(j)},1(){let fe=k.value.slice(),ae=fe.findIndex(be=>y(be,j));return ae===-1?fe.push(j):fe.splice(ae,1),$==null?void 0:$(fe)}})),Y=ne(j=>H({type:3,value:j})),D=ne(()=>H({type:4})),K=ne(j=>{H({type:7,element:j})}),oe=ne(j=>{H({type:8,element:j})}),De=ie(()=>({onChange:se,registerOption:V,goToOption:U,closeListbox:B,openListbox:q,selectActiveOption:le,selectOption:G,search:Y,clearSearch:D,setButtonElement:K,setOptionsElement:oe}),[]),[Pe,ee]=I_({inherit:!0}),ye={ref:C},me=_e(()=>{if(S!==void 0)return $==null?void 0:$(S)},[$,S]),de=st();return W.createElement(ee,{value:Pe,props:{htmlFor:(n=k.buttonElement)==null?void 0:n.id},slot:{open:k.listboxState===0,disabled:c}},W.createElement(C2,null,W.createElement(Il.Provider,{value:De},W.createElement($s.Provider,{value:k},W.createElement(Zh,{value:Et(k.listboxState,{0:vt.Open,1:vt.Closed})},a!=null&&E!=null&&W.createElement(b_,{disabled:c,data:{[a]:E},form:s,onReset:me}),de({ourProps:ye,theirProps:g,slot:I,defaultTag:NC,name:"Listbox"}))))))}let IC="button";function DC(e,t){var n;let r=Xi("Listbox.Button"),i=Ts("Listbox.Button"),o=Bt(),s=mh(),{id:a=s||`headlessui-listbox-button-${o}`,disabled:l=r.disabled||!1,autoFocus:u=!1,...d}=e,c=pt(t,v2(),i.setButtonElement),p=b2(),m=ne(k=>{switch(k.key){case nt.Enter:p_(k.currentTarget);break;case nt.Space:case nt.ArrowDown:k.preventDefault(),It(()=>i.openListbox()),r.value||i.goToOption(rt.First);break;case nt.ArrowUp:k.preventDefault(),It(()=>i.openListbox()),r.value||i.goToOption(rt.Last);break}}),h=ne(k=>{switch(k.key){case nt.Space:k.preventDefault();break}}),g=ne(k=>{var N;if(C_(k.currentTarget))return k.preventDefault();r.listboxState===0?(It(()=>i.closeListbox()),(N=r.buttonElement)==null||N.focus({preventScroll:!0})):(k.preventDefault(),i.openListbox())}),w=ne(k=>k.preventDefault()),C=yh([a]),S=A_(),{isFocusVisible:E,focusProps:$}=t_({autoFocus:u}),{isHovered:P,hoverProps:H}=e_({isDisabled:l}),{pressed:R,pressProps:_}=a_({disabled:l}),y=ie(()=>({open:r.listboxState===0,active:R||r.listboxState===0,disabled:l,invalid:r.invalid,value:r.value,hover:P,focus:E,autofocus:u}),[r.listboxState,r.value,l,P,E,R,r.invalid,u]),A=ch(p(),{ref:c,id:a,type:ex(e,r.buttonElement),"aria-haspopup":"listbox","aria-controls":(n=r.optionsElement)==null?void 0:n.id,"aria-expanded":r.listboxState===0,"aria-labelledby":C,"aria-describedby":S,disabled:l||void 0,autoFocus:u,onKeyDown:m,onKeyUp:h,onKeyPress:w,onClick:g},$,H,_);return st()({ourProps:A,theirProps:d,slot:y,defaultTag:IC,name:"Listbox.Button"})}let fm=qe(!1),OC="div",FC=Wr.RenderStrategy|Wr.Static;function PC(e,t){var n,r;let i=Bt(),{id:o=`headlessui-listbox-options-${i}`,anchor:s,portal:a=!1,modal:l=!0,transition:u=!1,...d}=e,c=y2(s),[p,m]=ce(null);c&&(a=!0);let h=Xi("Listbox.Options"),g=Ts("Listbox.Options"),w=oi(h.optionsElement),C=Zi(),[S,E]=Ih(u,p,C!==null?(C&vt.Open)===vt.Open:h.listboxState===0);xh(S,h.buttonElement,g.closeListbox);let $=h.__demoMode?!1:l&&h.listboxState===0;Nh($,w);let P=h.__demoMode?!1:l&&h.listboxState===0;_h(P,{allowed:_e(()=>[h.buttonElement,h.optionsElement],[h.buttonElement,h.optionsElement])});let H=h.listboxState!==0,R=_C(H,h.buttonElement)?!1:S,_=S&&h.listboxState===1,y=A2(_,h.value),A=ne(D=>h.compare(y,D)),k=ie(()=>{var D;if(c==null||!((D=c==null?void 0:c.to)!=null&&D.includes("selection")))return null;let K=h.options.findIndex(oe=>A(oe.dataRef.current.value));return K===-1&&(K=0),K},[c,h.options]),N=(()=>{if(c==null)return;if(k===null)return{...c,inner:void 0};let D=Array.from(h.listRef.current.values());return{...c,inner:{listRef:{current:D},index:k}}})(),[I,G]=x2(N),le=_2(),q=pt(t,c?I:null,g.setOptionsElement,m),B=jn();$e(()=>{var D;let K=h.optionsElement;K&&h.listboxState===0&&K!==((D=ri(K))==null?void 0:D.activeElement)&&(K==null||K.focus({preventScroll:!0}))},[h.listboxState,h.optionsElement]);let F=ne(D=>{var K,oe;switch(B.dispose(),D.key){case nt.Space:if(h.searchQuery!=="")return D.preventDefault(),D.stopPropagation(),g.search(D.key);case nt.Enter:if(D.preventDefault(),D.stopPropagation(),h.activeOptionIndex!==null){let{dataRef:De}=h.options[h.activeOptionIndex];g.onChange(De.current.value)}h.mode===0&&(It(()=>g.closeListbox()),(K=h.buttonElement)==null||K.focus({preventScroll:!0}));break;case Et(h.orientation,{vertical:nt.ArrowDown,horizontal:nt.ArrowRight}):return D.preventDefault(),D.stopPropagation(),g.goToOption(rt.Next);case Et(h.orientation,{vertical:nt.ArrowUp,horizontal:nt.ArrowLeft}):return D.preventDefault(),D.stopPropagation(),g.goToOption(rt.Previous);case nt.Home:case nt.PageUp:return D.preventDefault(),D.stopPropagation(),g.goToOption(rt.First);case nt.End:case nt.PageDown:return D.preventDefault(),D.stopPropagation(),g.goToOption(rt.Last);case nt.Escape:D.preventDefault(),D.stopPropagation(),It(()=>g.closeListbox()),(oe=h.buttonElement)==null||oe.focus({preventScroll:!0});return;case nt.Tab:D.preventDefault(),D.stopPropagation(),It(()=>g.closeListbox()),X_(h.buttonElement,D.shiftKey?Zt.Previous:Zt.Next);break;default:D.key.length===1&&(g.search(D.key),B.setTimeout(()=>g.clearSearch(),350));break}}),U=(n=h.buttonElement)==null?void 0:n.id,V=ie(()=>({open:h.listboxState===0}),[h.listboxState]),se=ch(c?le():{},{id:o,ref:q,"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":U,"aria-orientation":h.orientation,onKeyDown:F,role:"listbox",tabIndex:h.listboxState===0?0:void 0,style:{...d.style,...G,"--button-width":B_(h.buttonElement,!0).width},...Mh(E)}),Y=st();return W.createElement(tm,{enabled:a?e.static||S:!1},W.createElement($s.Provider,{value:h.mode===1?h:{...h,isSelected:A}},Y({ourProps:se,theirProps:d,slot:V,defaultTag:OC,features:FC,visible:R,name:"Listbox.Options"})))}let RC="div";function LC(e,t){let n=Bt(),{id:r=`headlessui-listbox-option-${n}`,disabled:i=!1,value:o,...s}=e,a=Ne(fm)===!0,l=Xi("Listbox.Option"),u=Ts("Listbox.Option"),d=l.activeOptionIndex!==null?l.options[l.activeOptionIndex].id===r:!1,c=l.isSelected(o),p=Q(null),m=CC(p),h=Bn({disabled:i,value:o,domRef:p,get textValue(){return m()}}),g=pt(t,p,y=>{y?l.listRef.current.set(r,y):l.listRef.current.delete(r)});Ve(()=>{if(!l.__demoMode&&l.listboxState===0&&d&&l.activationTrigger!==0)return En().requestAnimationFrame(()=>{var y,A;(A=(y=p.current)==null?void 0:y.scrollIntoView)==null||A.call(y,{block:"nearest"})})},[p,d,l.__demoMode,l.listboxState,l.activationTrigger,l.activeOptionIndex]),Ve(()=>{if(!a)return u.registerOption(r,h)},[h,r,a]);let w=ne(y=>{var A;if(i)return y.preventDefault();u.onChange(o),l.mode===0&&(It(()=>u.closeListbox()),(A=l.buttonElement)==null||A.focus({preventScroll:!0}))}),C=ne(()=>{if(i)return u.goToOption(rt.Nothing);u.goToOption(rt.Specific,r)}),S=sx(),E=ne(y=>{S.update(y),!i&&(d||u.goToOption(rt.Specific,r,0))}),$=ne(y=>{S.wasMoved(y)&&(i||d||u.goToOption(rt.Specific,r,0))}),P=ne(y=>{S.wasMoved(y)&&(i||d&&u.goToOption(rt.Nothing))}),H=ie(()=>({active:d,focus:d,selected:c,disabled:i,selectedOption:c&&a}),[d,c,i,a]),R=a?{}:{id:r,ref:g,role:"option",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-selected":c,disabled:void 0,onClick:w,onFocus:C,onPointerEnter:E,onMouseEnter:E,onPointerMove:$,onMouseMove:$,onPointerLeave:P,onMouseLeave:P},_=st();return!c&&a?null:_({ourProps:R,theirProps:s,slot:H,defaultTag:RC,name:"Listbox.Option"})}let HC=Le;function VC(e,t){let{options:n,placeholder:r,...i}=e,o={ref:pt(t)},s=Xi("ListboxSelectedOption"),a=ie(()=>({}),[]),l=s.value===void 0||s.value===null||s.mode===1&&Array.isArray(s.value)&&s.value.length===0,u=st();return W.createElement(fm.Provider,{value:!0},u({ourProps:o,theirProps:{...i,children:W.createElement(W.Fragment,null,r&&l?r:n)},slot:a,defaultTag:HC,name:"ListboxSelectedOption"}))}let jC=tt(MC),hm=tt(DC),BC=P_,mm=tt(PC),pm=tt(LC),UC=tt(VC),WC=Object.assign(jC,{Button:hm,Label:BC,Options:mm,Option:pm,SelectedOption:UC}),vn=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Open","OnClose","Children"]}};function Dl(e){return f(dm,gr(e,1))}class Ol extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","ClassName","Children"]}}function Fl(e){return f(dm.Panel,gr(e,1))}class Pl extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName"]}}function Rl(e){return f(vC,gr(e,1))}function Ll(e,t){let n;return f("svg",b(v([["width",e],["height",t],["viewBox","0 0 "+e+" "+t],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(n=ge(f("path",{d:"M6 18L18 6M6 6L18 18",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2,strokeLinecap:"round"})),["children",x.Children.toArray(Array.from(n))])])))}function GC(e,t){let n,r,i,o,s;return Dl(v([new vn(3,[e]),new vn(4,[t]),new vn(5,[[Rl(ge(new Pl(2,["fixed inset-0 bg-gray-500/50"]))),f("div",b(v([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(n=[Fl(ge(new Ol(2,[[f("div",b(v([["className","flex flex-col mt-6 mb-6 px-6"],(r=[f("div",b(v([["className","flex flex-row justify-between"],(i=[f("span",{className:"text-gray-900 font-semibold text-lg",children:"What is mapping and why is it important?"}),f("button",b(v([["onClick",a=>{t()}],["type","button"],["className","text-gray-700"],(o=[Ll(24,24)],["children",x.Children.toArray(Array.from(o))])])))],["children",x.Children.toArray(Array.from(i))])]))),f("div",b(v([["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",x.Children.toArray(Array.from(r))])])))]])))],["children",x.Children.toArray(Array.from(n))])])))]])]))}function qC(e,t){let n,r;return f("svg",b(v([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=ge(f("path",b(v([["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",x.Children.toArray(Array.from(n))])])))}function gm(){let e,t,n;return f("div",b(v([["className","w-full p-4 bg-blue-50 rounded-md justify-start items-start gap-3 inline-flex"],(e=[qC(20,20),f("div",b(v([["className","grow shrink basis-0 h-[60px] justify-between items-center flex"],(t=[f("div",b(v([["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",x.Children.toArray(Array.from(t))])])))],["children",x.Children.toArray(Array.from(e))])])))}function wm(e,t){let n,r;return f("svg",b(v([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=ge(f("path",b(v([(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",x.Children.toArray(Array.from(n))])])))}function ym(e){let t,n;return f("div",b(v([["className","w-full h-[52px] p-4 bg-red-50 rounded-md justify-start items-start gap-3 inline-flex"],(t=[wm(16,15),f("div",b(v([["className","grow shrink basis-0 h-5 justify-between items-center flex"],(n=[f("div",{className:"grow shrink basis-0 text-red-800 text-sm font-medium leading-tight",children:e})],["children",x.Children.toArray(Array.from(n))])])))],["children",x.Children.toArray(Array.from(t))])])))}function Ns(e,t){let n;return f("svg",b(v([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=v([f("path",{d:"M15 6H1",stroke:"#D1D5DB",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),f("path",{d:"M6 11L1 6L6 1",stroke:"#D1D5DB",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]),["children",x.Children.toArray(Array.from(n))])])))}class Pr extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Value","OnChange","Children"]}}function vm(e){return f(WC,gr(e,1))}class Yo extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ClassName","Children"]}}function bm(e){return f(hm,gr(e,1))}class _m extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ClassName"]}}function xm(e,t){return f(mm,gr(e,1),...t)}class nn extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","Value","Disabled","ClassName","Children"]}}function Cm(e){return f(pm,gr(e,1))}function Sm(e,t){let n,r;return f("svg",b(v([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=ge(f("path",b(v([["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",x.Children.toArray(Array.from(n))])])))}class yi extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Below","Above"]}}function vi(e,t,n,r,i,o,s,a,l){let u,d,c,p,m,h,g;const w=i.fields[0],C=Pd(Ct(S=>S[1].fields[0],Q0(S=>Wd(S.fields[0],w),r)));return f("div",b(v([["key",Ot(e)],["className","h-14 pr-3 py-2 rounded-lg justify-start items-center gap-2 inline-flex"],(u=[f("div",b(v([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(d=[f("div",b(he(O(()=>te(M(["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`]),O(()=>{let S;return M((S=he(O(()=>te(M(f("div",{className:"text-sm font-medium leading-tight",children:Qf(e)})),O(()=>M(t?f("div",{className:"text-red-500 text-sm font-medium leading-tight",children:"*"}):Se()))))),["children",x.Children.toArray(Array.from(S))]))}))))))],["children",x.Children.toArray(Array.from(d))])]))),f("div",b(v([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(c=[Ns(16,12)],["children",x.Children.toArray(Array.from(c))])]))),f("div",b(v([["className","w-[230px] h-[38px] px-3 justify-start items-center gap-2 flex"],(p=[vm(v([new Pr(0,[C]),new Pr(1,[S=>{pr(E=>{s(E[0])},ns(os(E=>E[1].fields[0]===S?J(E[2],new hn(0,[])):!1,w)))}]),new Pr(2,[[f("div",b(v([["className","relative w-full"],(m=[bm(he(O(()=>te(M(new Yo(0,[`${t&&n&&r==null?"outline-red-300":"outline-gray-300"} grid w-full grid-cols-1 rounded-md bg-white 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`])),O(()=>{let S;return M(new Yo(1,[[f("span",b(he(O(()=>{const E=r!=null?[C,""]:n?["Select a field","text-red-900"]:["Select a field","text-gray-500"];return te(M(["className",`${E[1]} col-start-1 row-start-1 truncate pr-6`]),O(()=>M(["children",E[0]])))})))),f("span",b(v([["className","col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4"],(S=[Sm(20,20)],["children",x.Children.toArray(Array.from(S))])])))]]))}))))),xm(he(O(()=>M(new _m(`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`)))),he(O(()=>ds(S=>{const E=S[2],$=S[1].fields[0];return M(Cm(v([new nn(0,[Xt(S[0].fields[0])]),new nn(1,[$]),new nn(2,[J(E,new hn(1,[]))]),new nn(3,["relative select-none"]),new nn(4,[P=>[f("span",{className:"px-4 py-2 block truncate "+(E.tag===1?"text-gray-700 opacity-50 cursor-not-allowed":P.active?"bg-primary-600 text-white":(P.selected,"text-gray-700")),children:$})]])])))},w))))],["children",x.Children.toArray(Array.from(m))])])))]])]))],["children",x.Children.toArray(Array.from(p))])]))),f("div",b(v([(h="pl-1 justify-center items-center gap-2.5 flex text-gray-500 text-xs font-normal underline leading-none",["className",h]),(g=[f("button",b(he(O(()=>te(M(["children","Clear"]),O(()=>te(a==null?M(["className","opacity-50 cursor-not-allowed"]):M(["className","cursor-pointer"]),O(()=>{const S=a;if(S==null)return Nr();{const E=S;return M(["onClick",$=>{E()}])}})))))))),f("button",b(he(O(()=>te(M(["children","Preview"]),O(()=>te(l==null?M(["className","opacity-50 cursor-not-allowed"]):M(["className","cursor-pointer"]),O(()=>{const S=l;if(S==null)return Nr();{const E=S;return M(["onClick",$=>{E()}])}}))))))))],["children",x.Children.toArray(Array.from(g))])])))],["children",x.Children.toArray(Array.from(u))])])))}function Em(e,t){let n,r;return f("svg",b(v([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=ge(f("path",b(v([["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",x.Children.toArray(Array.from(n))])])))}function Hl(e,t){let n,r;return f("svg",b(v([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=ge(f("path",b(v([(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",x.Children.toArray(Array.from(n))])])))}function Am(e){let t,n,r;return f("div",b(v([["className","w-full h-[52px] p-4 bg-emerald-50 rounded-md justify-start items-center gap-3 inline-flex"],(t=[f("span",b(v([["className","text-emerald-700"],(n=[Hl(20,20)],["children",x.Children.toArray(Array.from(n))])]))),f("div",b(v([["className","grow shrink basis-0 h-5 justify-start items-center gap-3 flex"],(r=[f("div",{className:"grow shrink basis-0 text-emerald-800 text-sm font-medium leading-tight",children:e})],["children",x.Children.toArray(Array.from(r))])])))],["children",x.Children.toArray(Array.from(t))])])))}function Vl(e,t){let n,r;return f("svg",b(v([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=ge(f("path",b(v([(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",x.Children.toArray(Array.from(n))])])))}function zC(e,t){let n,r,i,o,s,a,l;return f("div",b(v([["className","w-80 py-6 justify-start items-center gap-2.5 flex"],(n=[f("div",b(v([(r="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",r]),(i=[f("div",b(v([["className","self-stretch justify-start items-center gap-2 inline-flex"],(o=[f("div",{className:"text-black text-base font-semibold leading-normal",children:`Previewing “${Qf(e)}”`})],["children",x.Children.toArray(Array.from(o))])]))),f("div",b(v([["className","self-stretch bg-white flex-col justify-start items-start flex overflow-hidden"],(s=[f("div",b(v([["className","self-stretch flex-col justify-center items-start flex"],(a=Ud((u,d)=>f("div",b(he(O(()=>te(M(["className",`${u%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`]),O(()=>{let c;return M((c=he(O(()=>{const p=ts(d);return M(p?f("i",{className:"grow shrink text-gray-500 text-sm font-normal leading-tight",children:"(empty)"}):f("div",{className:"grow shrink text-gray-700 text-sm font-medium leading-tight",children:d}))})),["children",x.Children.toArray(Array.from(c))]))})))))),t),["children",x.Children.toArray(Array.from(a))])])))],["children",x.Children.toArray(Array.from(s))])]))),f("div",b(v([["className","self-stretch pt-2 justify-center items-center gap-2.5 inline-flex"],(l=[f("div",{className:"grow shrink basis-0 text-gray-500 text-sm font-normal leading-tight",children:"Showing first 10 rows only"})],["children",x.Children.toArray(Array.from(l))])])))],["children",x.Children.toArray(Array.from(i))])])))],["children",x.Children.toArray(Array.from(n))])])))}function YC(e){let t,n,r;const i=e.back,o=e.next,s=e.dataRows,a=e.headerRow,l=e.existingMappings;let u;const d=Pb(a,l);u=ei(()=>Jr(()=>d,(E,$)=>Rb(a,s,E,$),(E,$)=>{}),void 0,[]);const c=u[0],p=u[1],m=x.useState(!1),h=m[1],g=x.useState(!1),w=g[0],C=E=>{if(Ob(c)(E))return()=>{p(new Gn(1,[E]))}},S=E=>{if(Fb(c,E))return()=>{p(new Gn(2,[E]))}};return f("div",b(v([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12 h-full"],(t=[GC(m[0],()=>{h(!1)}),f("span",{className:"font-sonoma text-black font-semibold text-lg",children:"Map fields"}),f("span",{className:"text-sm font-normal pt-2",children:"Match the fields from your CSV to the corresponding destination fields."}),f("div",b(v([["className","flex flex-row pt-3 gap-2"],(n=[f("button",{className:"rounded-2xl text-xs font-medium text-gray-600 border px-3.5 py-1.5 bg-white",onClick:E=>{h(!0)},type:"button",children:x.Children.toArray(["What is mapping and why is it important?"])})],["children",x.Children.toArray(Array.from(n))])]))),f("div",b(v([["className","justify-start items-start gap-12 inline-flex"],(r=he(O(()=>{let E;return te(M(f("div",b(v([["className","w-[640px] pt-6 flex-col justify-start items-start gap-4 inline-flex"],(E=he(O(()=>te(l==null?M(gm()):M(Se()),O(()=>te(w&&c.Status.tag===0?M(ym("Some required fields are incomplete. Fill in all required fields to continue.")):M(Se()),O(()=>{let $,P,H,R,_,y,A,k;return M(f("div",b(v([["className","flex-col justify-start items-start inline-flex overflow-hidden"],($=[f("div",b(v([(P="w-[640px] h-16 pt-6 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 inline-flex",["className",P]),(H=[f("div",b(v([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(R=[f("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Destination fields"}),f("div",b(he(O(()=>te(M(["className",`${c.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`]),O(()=>{let N;return M((N=[f("div",{className:"text-center text-xs font-medium leading-none",children:`${c.NumberOfDestinationFieldsMapped} of 5 mapped`})],["children",x.Children.toArray(Array.from(N))]))}))))))],["children",x.Children.toArray(Array.from(R))])]))),f("div",{className:"w-5 h-5 px-3 py-3.5"}),f("div",b(v([["className","w-[260px] h-10 px-3 py-3.5 justify-start items-center gap-1 flex overflow-hidden"],(_=[f("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Incoming CSV fields"}),f("div",b(v([["className","px-2.5 py-0.5 bg-gray-100 rounded-[10px] justify-center items-center flex"],(y=[f("div",{className:"text-center text-gray-800 text-xs font-medium leading-none",children:`${c.NumberOfDestinationFieldsMapped} of ${c.NumberOfIncomingFields} used`})],["children",x.Children.toArray(Array.from(y))])])))],["children",x.Children.toArray(Array.from(_))])])))],["children",x.Children.toArray(Array.from(H))])]))),f("div",b(v([["className","w-[640px] pt-2 pb-24 flex-col justify-start items-start gap-2 flex overflow-hidden"],(A=[f("div",b(ge((k=he(O(()=>te(M(vi(new pe(0,[]),!0,w,c.FirstName.ColumnIndex,c.FirstName.IncomingFields,new yi(0,[]),N=>{let I;p((I=[new pe(0,[]),N],new Gn(0,[I[0],I[1]])))},C(new pe(0,[])),S(new pe(0,[])))),O(()=>te(M(vi(new pe(1,[]),!0,w,c.LastName.ColumnIndex,c.LastName.IncomingFields,new yi(0,[]),N=>{let I;p((I=[new pe(1,[]),N],new Gn(0,[I[0],I[1]])))},C(new pe(1,[])),S(new pe(1,[])))),O(()=>te(M(vi(new pe(2,[]),!0,w,c.Email.ColumnIndex,c.Email.IncomingFields,new yi(0,[]),N=>{let I;p((I=[new pe(2,[]),N],new Gn(0,[I[0],I[1]])))},C(new pe(2,[])),S(new pe(2,[])))),O(()=>te(M(vi(new pe(3,[]),!1,w,c.MobilePhone.ColumnIndex,c.MobilePhone.IncomingFields,new yi(0,[]),N=>{let I;p((I=[new pe(3,[]),N],new Gn(0,[I[0],I[1]])))},C(new pe(3,[])),S(new pe(3,[])))),O(()=>te(M(vi(new pe(4,[]),!1,w,c.EmploymentBasis.ColumnIndex,c.EmploymentBasis.IncomingFields,new yi(1,[]),N=>{let I;p((I=[new pe(4,[]),N],new Gn(0,[I[0],I[1]])))},C(new pe(4,[])),S(new pe(4,[])))),O(()=>{let N,I,G,le,q,B;return te(c.NumberOfIncomingFieldsDiscarded===0?M(Se()):M(f("div",b(v([["className","h-16 pr-3 pt-2 pb-4 rounded-lg justify-start items-start gap-2 inline-flex"],(N=[f("div",b(v([["className","h-10 bg-gray-100 rounded-lg justify-start items-center gap-2 flex"],(I=[f("div",b(v([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(G=[Em(14,14),f("div",{className:"text-gray-500 text-sm font-medium leading-tight",children:"Discarded"})],["children",x.Children.toArray(Array.from(G))])]))),f("div",b(v([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(le=[Ns(16,12)],["children",x.Children.toArray(Array.from(le))])]))),f("div",b(v([["className","flex-col justify-start items-start gap-2 inline-flex"],(q=[f("div",b(v([["className","w-[218px] pl-3 items-center inline-flex"],(B=[f("div",b(he(O(()=>te(M(["className","text-gray-500 text-sm font-medium"]),O(()=>{const F=c.NumberOfIncomingFieldsDiscarded|0;return M(F===1?["children","Remaining 1 unused field"]:["children",`Remaining ${F} unused fields`])}))))))],["children",x.Children.toArray(Array.from(B))])])))],["children",x.Children.toArray(Array.from(q))])])))],["children",x.Children.toArray(Array.from(I))])])))],["children",x.Children.toArray(Array.from(N))])])))),O(()=>{let F;return M(f("div",b(v([["className","w-[640px] pt-4 border-t border-gray-200 flex-col justify-start items-start flex"],(F=he(O(()=>te(c.NumberOfDestinationFieldsMapped===5?M(Am("All destination fields have been mapped. You’re good to go.")):M(Se()),O(()=>{let U,V,se,Y,D,K,oe,De,Pe;return M(f("div",b(v([["className","h-[58px] pt-2 justify-start items-end gap-2 inline-flex w-full"],(U=[f("div",b(v([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(V=[f("div",b(v([["className","grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"],(se=[f("div",b(v([["className","grow shrink basis-0 text-right"],(Y=[f("span",{className:"text-gray-500 text-xs font-normal leading-none",children:"Destination fields marked with "}),f("span",{className:"text-red-600 text-xs font-normal leading-none",children:"*"}),f("span",{className:"text-gray-500 text-xs font-normal leading-none",children:" are required"})],["children",x.Children.toArray(Array.from(Y))])])))],["children",x.Children.toArray(Array.from(se))])]))),f("div",b(v([["className","justify-start items-center gap-2 flex"],(D=[f("button",b(v([(K="px-[13px] py-[9px] bg-white rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",K]),["onClick",ee=>{i(c.Status)}],(oe=[f("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",x.Children.toArray(Array.from(oe))])]))),f("button",b(v([(De="pl-[13px] pr-[11px] py-[9px] bg-primary-600 disabled:opacity-50 rounded-md shadow-sm justify-center items-center gap-2 flex overflow-hidden",["className",De]),["disabled",w&&c.Status.tag===0],["onClick",ee=>{const ye=c.Status;ye.tag===0?g[1](!0):o([ye.fields[0],ye.fields[1]])}],(Pe=[f("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:"Next"}),Vl(13,8)],["children",x.Children.toArray(Array.from(Pe))])])))],["children",x.Children.toArray(Array.from(D))])])))],["children",x.Children.toArray(Array.from(V))])])))],["children",x.Children.toArray(Array.from(U))])]))))})))),["children",x.Children.toArray(Array.from(F))])]))))}))})))))))))))),["children",x.Children.toArray(Array.from(k))]))))],["children",x.Children.toArray(Array.from(A))])])))],["children",x.Children.toArray(Array.from($))])]))))})))))),["children",x.Children.toArray(Array.from(E))])])))),O(()=>{const $=c.Preview;return $==null?M(Se()):M(zC($[0],$[1]))}))})),["children",x.Children.toArray(Array.from(r))])])))],["children",x.Children.toArray(Array.from(t))])])))}class so extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UploadingCsv","MappingColumns","MappingEmploymentBasis","Reviewing"]}}class ta extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Reviewing","MappingEmploymentBasis","MappingColumns"]}}let qn=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Next","Back"]}};function ZC(e){switch(e.tag){case 1:return"Part-time";case 2:return"Casual";case 3:return"Labour hire";default:return"Full-time"}}let ao=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Add","Clear","Remove","Set"]}},KC=class extends Me{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 Di extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Available","Unavailable"]}}const Mn=[void 0];function km(e,t,n){let r;const i=t.fields[0],o=Pt(s=>s,Oo(Su(n)));return new KC(et(s=>[s,Kr(s,o,{Equals:J,GetHashCode:Eo})?new Di(1,[]):new Di(0,[])],i),n,o.length,dg(ll(s=>{let a;return a=Pt(l=>l,s),a.length!==0},Su(n))),Kf(o,i,{Equals:J,GetHashCode:Eo}),(r=v(Pt(s=>s,Oo(Ze(s=>et(a=>{if(a!=null)return[s[0],a]},s[1]),n)))),Ce(r)?void 0:new Sb(re(r),mr(xe(r)))),e)}function XC(e,t){const n=t.tag===1?["parttime"]:t.tag===2?["casual"]:t.tag===3?["labourhire"]:["fulltime"];return e.fields[0].filter(r=>Kr(Ja(r.fields[0],"[^a-zA-Z]","").toLocaleLowerCase(),n,{Equals:(i,o)=>i===o,GetHashCode:Vn}))}function QC(e,t){let n;if(t==null){let r=!1;const i=o=>{const s=XC(e,o);return!Ri(J,s,Se())&&s.length===0?Mn:(r=!0,et(a=>a,s))};n=[mo([[new ct(0,[]),i(new ct(0,[]))],[new ct(1,[]),i(new ct(1,[]))],[new ct(2,[]),i(new ct(2,[]))],[new ct(3,[]),i(new ct(3,[]))]],{Compare:ut}),r]}else{const r=t,i=mo(et(o=>[o[0],et(s=>s[1],bp(o[1],{Compare:Ka}))],vb(o=>o[0],Oo([r.Tail,[r.Head]]),{Equals:J,GetHashCode:Eo})),{Compare:ut});n=[mo([[new ct(0,[]),rn(bi(i,new ct(0,[])),Mn)],[new ct(1,[]),rn(bi(i,new ct(1,[])),Mn)],[new ct(2,[]),rn(bi(i,new ct(2,[])),Mn)],[new ct(3,[]),rn(bi(i,new ct(3,[])),Mn)]],{Compare:ut}),!1]}return[km(n[1],e,n[0]),Z()]}function Tm(e,t){const n=or(e.Selections,t);let r;switch(!Ri(J,n,Se())&&n.length===1&&Ae(0,n)!=null?r=0:r=1,r){case 0:return!0;default:return!1}}function $m(e,t){let n;return e.DiscardedValues.length>0?(n=or(e.Selections,t),!n.some(r=>r==null)):!1}function JC(e,t,n){const r=or(e.Selections,t);return!Ri(J,r,Se())&&r.length===1?!1:Kr(n,r,{Equals:J,GetHashCode:Vt})}function e3(e,t,n,r){return!J(n,r)&&e.IncomingValues.some(i=>J(i[0],r)?J(i[1],new Di(0,[])):!1)?Kr(n,or(e.Selections,t),{Equals:J,GetHashCode:Vt}):!1}function t3(e,t,n){let r,i;const o=h=>km(n.Prefilled,e,h);let s,a,l,u,d,c,p,m;switch(t.tag){case 1:{Tm(n,t.fields[0])?(s=1,l=t.fields[0]):s=4;break}case 2:{JC(n,t.fields[0],t.fields[1])?(s=2,u=t.fields[0],d=t.fields[1]):s=4;break}case 3:{e3(n,t.fields[0],t.fields[1],t.fields[2])?(s=3,c=t.fields[0],p=t.fields[1],m=t.fields[2]):s=4;break}default:$m(n,t.fields[0])?(s=0,a=t.fields[0]):s=4}switch(s){case 0:return[o(no(a,h=>Ct(g=>pp(g,Mn),h),n.Selections)),Z()];case 1:return[o(no(l,h=>Ct(g=>Mn,h),n.Selections)),Z()];case 2:return[o(no(u,(r=(i=[d],h=>Kf(i,h,{Equals:J,GetHashCode:Vt})),h=>Ct(r,h)),n.Selections)),Z()];case 3:return[o(no(c,h=>Ct(g=>et(w=>J(w,p)?m:w,g),h),n.Selections)),Z()];default:return[n,Z()]}}function n3(e,t){let n,r;return f("svg",b(v([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=ge(f("path",b(v([["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",x.Children.toArray(Array.from(n))])])))}function r3(e,t,n,r,i,o,s){let a,l,u,d,c,p;return f("div",b(v([["key",Ot(e)],["className"," pr-3 py-2 justify-start items-start gap-2 inline-flex"],(a=[f("div",b(v([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(l=[f("div",b(v([["className",St(" ",he(O(()=>te(Ri(J,t,Mn)?M("bg-gray-50 border-gray-200 text-gray-500"):M("bg-emerald-50 border-emerald-200 text-emerald-700"),O(()=>M("px-2 py-1 rounded border justify-start items-center gap-1.5 flex overflow-hidden"))))))],(u=[f("div",{className:"text-sm font-medium leading-tight",children:ZC(e)})],["children",x.Children.toArray(Array.from(u))])])))],["children",x.Children.toArray(Array.from(l))])]))),f("div",b(v([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(d=[Ns(16,12)],["children",x.Children.toArray(Array.from(d))])]))),f("div",b(v([["className","px-3 justify-start items-center gap-2 flex flex-col"],(c=[f("div",b(ge((p=he(O(()=>Ze(m=>{let h,g,w;return f("div",b(v([["className","mt-1 justify-start items-start gap-2 flex flex-inline"],(h=[f("div",b(v([["className","justify-start items-end gap-2 flex flex-col w-[206px]"],(g=he(O(()=>te(M(vm(he(O(()=>{const C=Pd(Ct(S=>S.fields[0],m));return te(M(new Pr(0,[C])),O(()=>te(M(new Pr(1,[S=>{pr(E=>{s([m,E[0]])},ns(os(E=>E[0].fields[0]===S?J(E[1],new Di(0,[])):!1,n)))}])),O(()=>{let S,E;return M(new Pr(2,[[f("div",b(v([["className","relative w-full"],(S=[bm(v([new Yo(0,["outline-gray-300 grid w-full grid-cols-1 rounded-md bg-white 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 Yo(1,[[f("span",b(he(O(()=>{const $=m!=null?[C,""]:["Select a value","text-gray-500"];return te(M(["className",`${$[1]} col-start-1 row-start-1 truncate pr-6`]),O(()=>M(["children",$[0]])))})))),f("span",b(v([["className","col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4"],(E=[Sm(20,20)],["children",x.Children.toArray(Array.from(E))])])))]])])),xm(ge(new _m("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")),he(O(()=>ds($=>{const P=$[1],H=$[0].fields[0];return M(Cm(v([new nn(0,[H]),new nn(1,[H]),new nn(2,[J(P,new Di(1,[]))]),new nn(3,["relative select-none"]),new nn(4,[R=>[f("span",{className:St(" ",he(O(()=>te(M("px-4 py-2 block truncate"),O(()=>{const _=R.active,y=R.selected;let A;switch(P.tag===1?y?_?A=2:A=3:A=0:_?A=2:y?A=3:A=1,A){case 0:return M("text-gray-700 opacity-50 cursor-not-allowed");case 1:return M("text-gray-700");case 2:return M("bg-primary-600 text-white");default:return M("text-gray-700")}}))))),children:H})]])])))},n))))],["children",x.Children.toArray(Array.from(S))])])))]]))}))))})))),O(()=>J(m,gp(t))?M(f("button",b(he(O(()=>{let C;return te(M((C=[n3(14,14),f("span",{children:["Map additional value"]})],["children",x.Children.toArray(Array.from(C))])),O(()=>te(M(["className",St(" ",he(O(()=>te(M("justify-end items-center inline-flex text-gray-500 text-xs font-normal gap-1"),O(()=>i==null?M("opacity-50 cursor-not-allowed underline"):M("cursor-pointer underline"))))))]),O(()=>{const S=i;if(S==null)return Nr();{const E=S;return M(["onClick",$=>{E()}])}}))))}))))):Nr())))),["children",x.Children.toArray(Array.from(g))])]))),f("div",b(v([["className","text-gray-500 text-xs font-normal mt-2 pl-1"],(w=he(O(()=>{if(o!=null){const C=o;return M(f("button",{children:"Remove",className:"cursor-pointer underline",onClick:S=>{C(m)}}))}else return M(f("button",b(he(O(()=>te(M(["children","Clear"]),O(()=>te(r==null?M(["className","opacity-50 cursor-not-allowed underline"]):M(["className","cursor-pointer underline"]),O(()=>{const C=r;if(C==null)return Nr();{const S=C;return M(["onClick",E=>{S()}])}})))))))))})),["children",x.Children.toArray(Array.from(w))])])))],["children",x.Children.toArray(Array.from(h))])])))},t))),["children",x.Children.toArray(Array.from(p))]))))],["children",x.Children.toArray(Array.from(c))])])))],["children",x.Children.toArray(Array.from(a))])])))}function i3(e){let t,n,r;const i=e.back,o=e.next,s=e.employmentBasisColumn,a=e.existingMappings;let l;const u=QC(s,a);l=ei(()=>Jr(()=>u,(h,g)=>t3(s,h,g),(h,g)=>{}),void 0,[]);const d=l[0],c=l[1],p=x.useState(!1),m=p[0];return f("div",b(v([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12 h-full"],(t=[f("span",{className:"font-sonoma text-black font-semibold text-lg",children:"Map values - Employment basis"}),f("span",{className:"text-sm font-normal pt-2",children:"Match the values from your CSV to the corresponding destination values."}),f("div",b(v([["className","justify-start items-start gap-12 inline-flex"],(n=[f("div",b(v([["className","w-[640px] pt-6 flex-col justify-start items-start gap-4 inline-flex"],(r=he(O(()=>te(d.Prefilled?M(gm()):M(Se()),O(()=>te(m&&d.ValidatedMappings==null?M(ym("Map at least one value to continue.")):M(Se()),O(()=>{let h,g,w,C,S,E,$,P,H;return M(f("div",b(v([["className","flex-col justify-start items-start inline-flex overflow-hidden"],(h=[f("div",b(v([(g="w-[640px] h-16 pt-6 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 inline-flex",["className",g]),(w=[f("div",b(v([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(C=[f("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Destination fields"}),f("div",b(v([["className",St(" ",he(O(()=>te(d.NumberOfDestinationValuesMapped===4?M("bg-emerald-100 text-emerald-800"):M("bg-blue-100 text-blue-800"),O(()=>M("px-2.5 py-0.5 rounded-[10px] justify-center items-center flex"))))))],(S=[f("div",{className:"text-center text-xs font-medium leading-none",children:`${d.NumberOfDestinationValuesMapped} of 4 mapped`})],["children",x.Children.toArray(Array.from(S))])])))],["children",x.Children.toArray(Array.from(C))])]))),f("div",{className:"w-5 h-5 px-3 py-3.5"}),f("div",b(v([["className","w-[260px] h-10 px-3 py-3.5 justify-start items-center gap-1 flex overflow-hidden"],(E=[f("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Incoming CSV values"}),f("div",b(v([["className","px-2.5 py-0.5 bg-gray-100 rounded-[10px] justify-center items-center flex"],($=[f("div",{className:"text-center text-gray-800 text-xs font-medium leading-none",children:`${d.NumberOfIncomingValuesUsed} of ${d.IncomingValues.length} used`})],["children",x.Children.toArray(Array.from($))])])))],["children",x.Children.toArray(Array.from(E))])])))],["children",x.Children.toArray(Array.from(w))])]))),f("div",b(v([["className","w-[640px] pt-2 pb-24 flex-col justify-start items-start gap-2 flex overflow-hidden"],(P=[f("div",b(ge((H=he(O(()=>te(ds(R=>{let _,y,A;const k=R[0];return M(r3(k,R[1],d.IncomingValues,(_=k,Tm(d,_)?()=>{c(new ao(1,[_]))}:void 0),(y=k,$m(d,y)?()=>{c(new ao(0,[y]))}:void 0),(A=k,or(d.Selections,A).length>1?N=>{let I;c((I=[A,N],new ao(2,[I[0],I[1]])))}:void 0),N=>{let I;c((I=[k,N[0],N[1]],new ao(3,[I[0],I[1],I[2]])))}))},Ig(d.Selections)),O(()=>{let R,_,y,A,k,N;return te(d.DiscardedValues.length===0?M(Se()):M(f("div",b(v([["className","pr-3 pt-2 pb-4 rounded-lg justify-start items-start gap-2 inline-flex"],(R=[f("div",b(v([["className","py-3 bg-gray-100 rounded-lg justify-start items-center gap-2 flex"],(_=[f("div",b(v([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(y=[Em(14,14),f("div",{className:"text-gray-500 text-sm font-medium leading-tight",children:"Discarded"})],["children",x.Children.toArray(Array.from(y))])]))),f("div",b(v([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(A=[Ns(16,12)],["children",x.Children.toArray(Array.from(A))])]))),f("div",b(v([["className","flex-col justify-start items-start gap-2 inline-flex"],(k=[f("div",b(v([["className","w-[218px] pl-3 flex flex-col text-gray-500 text-sm"],(N=he(O(()=>te(M(f("div",b(he(O(()=>te(M(["className","font-medium"]),O(()=>{const I=d.DiscardedValues.length|0;return M(I===1?["children","Remaining 1 unused field:"]:["children",`Remaining ${I} unused fields:`])}))))))),O(()=>{let I;return M(f("ul",b(v([["className","pl-2 font-normal overflow-hidden list-inside list-disc"],(I=et(G=>f("li",{children:[G]}),Oo(Fn(O(()=>te(M(et(G=>G.fields[0],d.DiscardedValues.slice(void 0,8))),O(()=>d.DiscardedValues.length>8?M(["... and 0 other values"]):Nr())))))),["children",x.Children.toArray(Array.from(I))])]))))})))),["children",x.Children.toArray(Array.from(N))])])))],["children",x.Children.toArray(Array.from(k))])])))],["children",x.Children.toArray(Array.from(_))])])))],["children",x.Children.toArray(Array.from(R))])])))),O(()=>{let I;return M(f("div",b(v([["className","w-[640px] pt-4 border-t border-gray-200 flex-col justify-start items-start flex"],(I=he(O(()=>te(d.DiscardedValues.length===0?M(Am("All incoming values have been mapped.")):M(Se()),O(()=>{let G,le,q,B,F,U,V;return M(f("div",b(v([["className","h-[58px] pt-2 justify-start items-end gap-2 inline-flex w-full"],(G=[f("div",b(v([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(le=[f("div",{className:"grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"}),f("div",b(v([["className","justify-start items-center gap-2 flex"],(q=[f("button",b(v([(B="px-[13px] py-[9px] bg-white rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",B]),["onClick",se=>{i(d.ValidatedMappings)}],(F=[f("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",x.Children.toArray(Array.from(F))])]))),f("button",b(v([(U="pl-[13px] pr-[11px] py-[9px] bg-primary-600 disabled:opacity-50 rounded-md shadow-sm justify-center items-center gap-2 flex overflow-hidden",["className",U]),["disabled",m&&d.ValidatedMappings==null],["onClick",se=>{const Y=d.ValidatedMappings;Y==null?p[1](!0):o(Y)}],(V=[f("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:"Next"}),Vl(13,8)],["children",x.Children.toArray(Array.from(V))])])))],["children",x.Children.toArray(Array.from(q))])])))],["children",x.Children.toArray(Array.from(le))])])))],["children",x.Children.toArray(Array.from(G))])]))))})))),["children",x.Children.toArray(Array.from(I))])]))))}))})))),["children",x.Children.toArray(Array.from(H))]))))],["children",x.Children.toArray(Array.from(P))])])))],["children",x.Children.toArray(Array.from(h))])]))))})))))),["children",x.Children.toArray(Array.from(r))])])))],["children",x.Children.toArray(Array.from(n))])])))],["children",x.Children.toArray(Array.from(t))])])))}function o3(e,t,n,r,i,o){let s,a,l,u,d,c;return f("div",b(v([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12 h-full"],(s=[f("span",{className:"font-sonoma text-black font-semibold text-lg",children:"Review"}),f("span",{className:"text-sm font-normal pt-2",children:"Preview your data and confirm that everything is mapped correctly."}),f("div",b(v([["className","justify-start items-start gap-12 inline-flex"],(a=[f("div",b(v([["className","w-[640px] pt-6 flex-col justify-start items-start gap-4 inline-flex"],(l=[f("div",b(v([["className","justify-start items-center gap-2 flex"],(u=[f("button",b(v([(d="px-[13px] py-[9px] bg-white rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",d]),["onClick",p=>{o()}],(c=[f("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",x.Children.toArray(Array.from(c))])])))],["children",x.Children.toArray(Array.from(u))])])))],["children",x.Children.toArray(Array.from(l))])])))],["children",x.Children.toArray(Array.from(a))])])))],["children",x.Children.toArray(Array.from(s))])])))}class dn extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UnsupportedFileType","TooLarge","NoData","MoreThan5000Rows","EmptyFieldNames","DuplicateFieldNames","InconsistentRowLengths","GenericParseError"]}}class vo extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Parse","CancelParsing","Remove"]}}var bo={exports:{}};/* @license
|
|
36
36
|
Papa Parse
|
|
37
37
|
v5.5.1
|
|
38
38
|
https://github.com/mholt/PapaParse
|
|
39
39
|
License: MIT
|
|
40
|
-
*/var s3=
|
|
40
|
+
*/var s3=bo.exports,qc;function a3(){return qc||(qc=1,function(e,t){((n,r)=>{e.exports=r()})(s3,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(_){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(y){var A=P(y);A.chunkSize=parseInt(A.chunkSize),y.step||y.chunk||(A.chunkSize=null),this._handle=new g(A),(this._handle.streamer=this)._config=A}).call(this,_),this.parseChunk=function(y,A){var k=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<k){let I=this._config.newline;I||(N=this._config.quoteChar||'"',I=this._handle.guessLineEndings(y,N)),y=[...y.split(I).slice(k)].join(I)}this.isFirstChunk&&R(this._config.beforeFirstChunk)&&(N=this._config.beforeFirstChunk(y))!==void 0&&(y=N),this.isFirstChunk=!1,this._halted=!1;var k=this._partialLine+y,N=(this._partialLine="",this._handle.parse(k,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(y=N.meta.cursor,k=(this._finished||(this._partialLine=k.substring(y-this._baseIndex),this._baseIndex=y),N&&N.data&&(this._rowCount+=N.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),s)r.postMessage({results:N,workerId:u.WORKER_ID,finished:k});else if(R(this._config.chunk)&&!A){if(this._config.chunk(N,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=N=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(N.data),this._completeResults.errors=this._completeResults.errors.concat(N.errors),this._completeResults.meta=N.meta),this._completed||!k||!R(this._config.complete)||N&&N.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),k||N&&N.meta.paused||this._nextChunk(),N}this._halted=!0},this._sendError=function(y){R(this._config.error)?this._config.error(y):s&&this._config.error&&r.postMessage({workerId:u.WORKER_ID,error:y,finished:!1})}}function c(_){var y;(_=_||{}).chunkSize||(_.chunkSize=u.RemoteChunkSize),d.call(this,_),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(y=new XMLHttpRequest,this._config.withCredentials&&(y.withCredentials=this._config.withCredentials),o||(y.onload=H(this._chunkLoaded,this),y.onerror=H(this._chunkError,this)),y.open(this._config.downloadRequestBody?"POST":"GET",this._input,!o),this._config.downloadRequestHeaders){var A,k=this._config.downloadRequestHeaders;for(A in k)y.setRequestHeader(A,k[A])}var N;this._config.chunkSize&&(N=this._start+this._config.chunkSize-1,y.setRequestHeader("Range","bytes="+this._start+"-"+N));try{y.send(this._config.downloadRequestBody)}catch(I){this._chunkError(I.message)}o&&y.status===0&&this._chunkError()}},this._chunkLoaded=function(){y.readyState===4&&(y.status<200||400<=y.status?this._chunkError():(this._start+=this._config.chunkSize||y.responseText.length,this._finished=!this._config.chunkSize||this._start>=(A=>(A=A.getResponseHeader("Content-Range"))!==null?parseInt(A.substring(A.lastIndexOf("/")+1)):-1)(y),this.parseChunk(y.responseText)))},this._chunkError=function(A){A=y.statusText||A,this._sendError(new Error(A))}}function p(_){(_=_||{}).chunkSize||(_.chunkSize=u.LocalChunkSize),d.call(this,_);var y,A,k=typeof FileReader<"u";this.stream=function(N){this._input=N,A=N.slice||N.webkitSlice||N.mozSlice,k?((y=new FileReader).onload=H(this._chunkLoaded,this),y.onerror=H(this._chunkError,this)):y=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var N=this._input,I=(this._config.chunkSize&&(I=Math.min(this._start+this._config.chunkSize,this._input.size),N=A.call(N,this._start,I)),y.readAsText(N,this._config.encoding));k||this._chunkLoaded({target:{result:I}})},this._chunkLoaded=function(N){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(N.target.result)},this._chunkError=function(){this._sendError(y.error)}}function m(_){var y;d.call(this,_=_||{}),this.stream=function(A){return y=A,this._nextChunk()},this._nextChunk=function(){var A,k;if(!this._finished)return A=this._config.chunkSize,y=A?(k=y.substring(0,A),y.substring(A)):(k=y,""),this._finished=!y,this.parseChunk(k)}}function h(_){d.call(this,_=_||{});var y=[],A=!0,k=!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(N){this._input=N,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){k&&y.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),y.length?this.parseChunk(y.shift()):A=!0},this._streamData=H(function(N){try{y.push(typeof N=="string"?N:N.toString(this._config.encoding)),A&&(A=!1,this._checkIsFinished(),this.parseChunk(y.shift()))}catch(I){this._streamError(I)}},this),this._streamError=H(function(N){this._streamCleanUp(),this._sendError(N)},this),this._streamEnd=H(function(){this._streamCleanUp(),k=!0,this._streamData("")},this),this._streamCleanUp=H(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function g(_){var y,A,k,N,I=Math.pow(2,53),G=-I,le=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,q=/^((\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)))$/,B=this,F=0,U=0,V=!1,se=!1,Y=[],D={data:[],errors:[],meta:{}};function K(ee){return _.skipEmptyLines==="greedy"?ee.join("").trim()==="":ee.length===1&&ee[0].length===0}function oe(){if(D&&k&&(Pe("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+u.DefaultDelimiter+"'"),k=!1),_.skipEmptyLines&&(D.data=D.data.filter(function(j){return!K(j)})),De()){let j=function(fe,ae){R(_.transformHeader)&&(fe=_.transformHeader(fe,ae)),Y.push(fe)};var de=j;if(D)if(Array.isArray(D.data[0])){for(var ee=0;De()&&ee<D.data.length;ee++)D.data[ee].forEach(j);D.data.splice(0,1)}else D.data.forEach(j)}function ye(j,fe){for(var ae=_.header?{}:[],be=0;be<j.length;be++){var je=be,ve=j[be],ve=((Ft,ze)=>(at=>(_.dynamicTypingFunction&&_.dynamicTyping[at]===void 0&&(_.dynamicTyping[at]=_.dynamicTypingFunction(at)),(_.dynamicTyping[at]||_.dynamicTyping)===!0))(Ft)?ze==="true"||ze==="TRUE"||ze!=="false"&&ze!=="FALSE"&&((at=>{if(le.test(at)&&(at=parseFloat(at),G<at&&at<I))return 1})(ze)?parseFloat(ze):q.test(ze)?new Date(ze):ze===""?null:ze):ze)(je=_.header?be>=Y.length?"__parsed_extra":Y[be]:je,ve=_.transform?_.transform(ve,je):ve);je==="__parsed_extra"?(ae[je]=ae[je]||[],ae[je].push(ve)):ae[je]=ve}return _.header&&(be>Y.length?Pe("FieldMismatch","TooManyFields","Too many fields: expected "+Y.length+" fields but parsed "+be,U+fe):be<Y.length&&Pe("FieldMismatch","TooFewFields","Too few fields: expected "+Y.length+" fields but parsed "+be,U+fe)),ae}var me;D&&(_.header||_.dynamicTyping||_.transform)&&(me=1,!D.data.length||Array.isArray(D.data[0])?(D.data=D.data.map(ye),me=D.data.length):D.data=ye(D.data,0),_.header&&D.meta&&(D.meta.fields=Y),U+=me)}function De(){return _.header&&Y.length===0}function Pe(ee,ye,me,de){ee={type:ee,code:ye,message:me},de!==void 0&&(ee.row=de),D.errors.push(ee)}R(_.step)&&(N=_.step,_.step=function(ee){D=ee,De()?oe():(oe(),D.data.length!==0&&(F+=ee.data.length,_.preview&&F>_.preview?A.abort():(D.data=D.data[0],N(D,B))))}),this.parse=function(ee,ye,me){var de=_.quoteChar||'"',de=(_.newline||(_.newline=this.guessLineEndings(ee,de)),k=!1,_.delimiter?R(_.delimiter)&&(_.delimiter=_.delimiter(ee),D.meta.delimiter=_.delimiter):((de=((j,fe,ae,be,je)=>{var ve,Ft,ze,at;je=je||[","," ","|",";",u.RECORD_SEP,u.UNIT_SEP];for(var Un=0;Un<je.length;Un++){for(var un,gt=je[Un],An=0,Ke=0,Wt=0,en=(ze=void 0,new C({comments:be,delimiter:gt,newline:fe,preview:10}).parse(j)),kn=0;kn<en.data.length;kn++)ae&&K(en.data[kn])?Wt++:(un=en.data[kn].length,Ke+=un,ze===void 0?ze=un:0<un&&(An+=Math.abs(un-ze),ze=un));0<en.data.length&&(Ke/=en.data.length-Wt),(Ft===void 0||An<=Ft)&&(at===void 0||at<Ke)&&1.99<Ke&&(Ft=An,ve=gt,at=Ke)}return{successful:!!(_.delimiter=ve),bestDelimiter:ve}})(ee,_.newline,_.skipEmptyLines,_.comments,_.delimitersToGuess)).successful?_.delimiter=de.bestDelimiter:(k=!0,_.delimiter=u.DefaultDelimiter),D.meta.delimiter=_.delimiter),P(_));return _.preview&&_.header&&de.preview++,y=ee,A=new C(de),D=A.parse(y,ye,me),oe(),V?{meta:{paused:!0}}:D||{meta:{paused:!1}}},this.paused=function(){return V},this.pause=function(){V=!0,A.abort(),y=R(_.chunk)?"":y.substring(A.getCharIndex())},this.resume=function(){B.streamer._halted?(V=!1,B.streamer.parseChunk(y,!0)):setTimeout(B.resume,3)},this.aborted=function(){return se},this.abort=function(){se=!0,A.abort(),D.meta.aborted=!0,R(_.complete)&&_.complete(D),y=""},this.guessLineEndings=function(j,de){j=j.substring(0,1048576);var de=new RegExp(w(de)+"([^]*?)"+w(de),"gm"),me=(j=j.replace(de,"")).split("\r"),de=j.split(`
|
|
41
41
|
`),j=1<de.length&&de[0].length<me[0].length;if(me.length===1||j)return`
|
|
42
42
|
`;for(var fe=0,ae=0;ae<me.length;ae++)me[ae][0]===`
|
|
43
43
|
`&&fe++;return fe>=me.length/2?`\r
|
|
44
|
-
`:"\r"}}function w(_){return _.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function
|
|
44
|
+
`:"\r"}}function w(_){return _.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function C(_){var y=(_=_||{}).delimiter,A=_.newline,k=_.comments,N=_.step,I=_.preview,G=_.fastMode,le=null,q=_.quoteChar==null?'"':_.quoteChar,B=q;if(_.escapeChar!==void 0&&(B=_.escapeChar),(typeof y!="string"||-1<u.BAD_DELIMITERS.indexOf(y))&&(y=","),k===y)throw new Error("Comment character same as delimiter");k===!0?k="#":(typeof k!="string"||-1<u.BAD_DELIMITERS.indexOf(k))&&(k=!1),A!==`
|
|
45
45
|
`&&A!=="\r"&&A!==`\r
|
|
46
46
|
`&&(A=`
|
|
47
|
-
`);var F=0,U=!1;this.parse=function(V,se,Y){if(typeof V!="string")throw new Error("Input must be a string");var D=V.length,K=y.length,oe=A.length,De=k.length,Pe=R(N),ee=[],ye=[],me=[],de=F=0;if(!V)return gt();if(G||G!==!1&&V.indexOf(q)===-1){for(var j=V.split(A),fe=0;fe<j.length;fe++){if(me=j[fe],F+=me.length,fe!==j.length-1)F+=A.length;else if(Y)return gt();if(!k||me.substring(0,De)!==k){if(Pe){if(ee=[],ze(me.split(y)),An(),U)return gt()}else ze(me.split(y));if(I&&I<=fe)return ee=ee.slice(0,I),gt(!0)}}return gt()}for(var ae=V.indexOf(y,F),be=V.indexOf(A,F),je=new RegExp(w(B)+w(q),"g"),ve=V.indexOf(q,F);;)if(V[F]===q)for(ve=F,F++;;){if((ve=V.indexOf(q,ve+1))===-1)return Y||ye.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:ee.length,index:F}),Un();if(ve===D-1)return Un(V.substring(F,ve).replace(je,q));if(q===B&&V[ve+1]===B)ve++;else if(q===B||ve===0||V[ve-1]!==B){ae!==-1&&ae<ve+1&&(ae=V.indexOf(y,ve+1));var Ft=at((be=be!==-1&&be<ve+1?V.indexOf(A,ve+1):be)===-1?ae:Math.min(ae,be));if(V.substr(ve+1+Ft,K)===y){me.push(V.substring(F,ve).replace(je,q)),V[F=ve+1+Ft+K]!==q&&(ve=V.indexOf(q,F)),ae=V.indexOf(y,F),be=V.indexOf(A,F);break}if(Ft=at(be),V.substring(ve+1+Ft,ve+1+Ft+oe)===A){if(me.push(V.substring(F,ve).replace(je,q)),un(ve+1+Ft+oe),ae=V.indexOf(y,F),ve=V.indexOf(q,F),Pe&&(An(),U))return gt();if(I&&ee.length>=I)return gt(!0);break}ye.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:ee.length,index:F}),ve++}}else if(k&&me.length===0&&V.substring(F,F+De)===k){if(be===-1)return gt();F=be+oe,be=V.indexOf(A,F),ae=V.indexOf(y,F)}else if(ae!==-1&&(ae<be||be===-1))me.push(V.substring(F,ae)),F=ae+K,ae=V.indexOf(y,F);else{if(be===-1)break;if(me.push(V.substring(F,be)),un(be+oe),Pe&&(An(),U))return gt();if(I&&ee.length>=I)return gt(!0)}return Un();function ze(Ke){ee.push(Ke),de=F}function at(Ke){var Wt=0;return Wt=Ke!==-1&&(Ke=V.substring(ve+1,Ke))&&Ke.trim()===""?Ke.length:Wt}function Un(Ke){return Y||(Ke===void 0&&(Ke=V.substring(F)),me.push(Ke),F=D,ze(me),Pe&&An()),gt()}function un(Ke){F=Ke,ze(me),me=[],be=V.indexOf(A,F)}function gt(Ke){if(_.header&&!se&&ee.length){var Wt=ee[0],en={},kn=new Set(Wt);let jl=!1;for(let
|
|
47
|
+
`);var F=0,U=!1;this.parse=function(V,se,Y){if(typeof V!="string")throw new Error("Input must be a string");var D=V.length,K=y.length,oe=A.length,De=k.length,Pe=R(N),ee=[],ye=[],me=[],de=F=0;if(!V)return gt();if(G||G!==!1&&V.indexOf(q)===-1){for(var j=V.split(A),fe=0;fe<j.length;fe++){if(me=j[fe],F+=me.length,fe!==j.length-1)F+=A.length;else if(Y)return gt();if(!k||me.substring(0,De)!==k){if(Pe){if(ee=[],ze(me.split(y)),An(),U)return gt()}else ze(me.split(y));if(I&&I<=fe)return ee=ee.slice(0,I),gt(!0)}}return gt()}for(var ae=V.indexOf(y,F),be=V.indexOf(A,F),je=new RegExp(w(B)+w(q),"g"),ve=V.indexOf(q,F);;)if(V[F]===q)for(ve=F,F++;;){if((ve=V.indexOf(q,ve+1))===-1)return Y||ye.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:ee.length,index:F}),Un();if(ve===D-1)return Un(V.substring(F,ve).replace(je,q));if(q===B&&V[ve+1]===B)ve++;else if(q===B||ve===0||V[ve-1]!==B){ae!==-1&&ae<ve+1&&(ae=V.indexOf(y,ve+1));var Ft=at((be=be!==-1&&be<ve+1?V.indexOf(A,ve+1):be)===-1?ae:Math.min(ae,be));if(V.substr(ve+1+Ft,K)===y){me.push(V.substring(F,ve).replace(je,q)),V[F=ve+1+Ft+K]!==q&&(ve=V.indexOf(q,F)),ae=V.indexOf(y,F),be=V.indexOf(A,F);break}if(Ft=at(be),V.substring(ve+1+Ft,ve+1+Ft+oe)===A){if(me.push(V.substring(F,ve).replace(je,q)),un(ve+1+Ft+oe),ae=V.indexOf(y,F),ve=V.indexOf(q,F),Pe&&(An(),U))return gt();if(I&&ee.length>=I)return gt(!0);break}ye.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:ee.length,index:F}),ve++}}else if(k&&me.length===0&&V.substring(F,F+De)===k){if(be===-1)return gt();F=be+oe,be=V.indexOf(A,F),ae=V.indexOf(y,F)}else if(ae!==-1&&(ae<be||be===-1))me.push(V.substring(F,ae)),F=ae+K,ae=V.indexOf(y,F);else{if(be===-1)break;if(me.push(V.substring(F,be)),un(be+oe),Pe&&(An(),U))return gt();if(I&&ee.length>=I)return gt(!0)}return Un();function ze(Ke){ee.push(Ke),de=F}function at(Ke){var Wt=0;return Wt=Ke!==-1&&(Ke=V.substring(ve+1,Ke))&&Ke.trim()===""?Ke.length:Wt}function Un(Ke){return Y||(Ke===void 0&&(Ke=V.substring(F)),me.push(Ke),F=D,ze(me),Pe&&An()),gt()}function un(Ke){F=Ke,ze(me),me=[],be=V.indexOf(A,F)}function gt(Ke){if(_.header&&!se&&ee.length){var Wt=ee[0],en={},kn=new Set(Wt);let jl=!1;for(let wr=0;wr<Wt.length;wr++){let tn=Wt[wr];if(en[tn=R(_.transformHeader)?_.transformHeader(tn,wr):tn]){let ui,Bl=en[tn];for(;ui=tn+"_"+Bl,Bl++,kn.has(ui););kn.add(ui),Wt[wr]=ui,en[tn]++,jl=!0,(le=le===null?{}:le)[ui]=tn}else en[tn]=1,Wt[wr]=tn;kn.add(tn)}jl&&console.warn("Duplicate headers found and renamed.")}return{data:ee,errors:ye,meta:{delimiter:y,linebreak:A,aborted:U,truncated:!!Ke,cursor:de+(se||0),renamedHeaders:le}}}function An(){N(gt()),ee=[],ye=[]}},this.abort=function(){U=!0},this.getCharIndex=function(){return F}}function S(_){var y=_.data,A=a[y.workerId],k=!1;if(y.error)A.userError(y.error,y.file);else if(y.results&&y.results.data){var N={abort:function(){k=!0,E(y.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:$,resume:$};if(R(A.userStep)){for(var I=0;I<y.results.data.length&&(A.userStep({data:y.results.data[I],errors:y.results.errors,meta:y.results.meta},N),!k);I++);delete y.results}else R(A.userChunk)&&(A.userChunk(y.results,N,y.file),delete y.results)}y.finished&&!k&&E(y.workerId,y.results)}function E(_,y){var A=a[_];R(A.userComplete)&&A.userComplete(y),A.terminate(),delete a[_]}function $(){throw new Error("Not implemented.")}function P(_){if(typeof _!="object"||_===null)return _;var y,A=Array.isArray(_)?[]:{};for(y in _)A[y]=P(_[y]);return A}function H(_,y){return function(){_.apply(y,arguments)}}function R(_){return typeof _=="function"}return u.parse=function(_,y){var A=(y=y||{}).dynamicTyping||!1;if(R(A)&&(y.dynamicTypingFunction=A,A={}),y.dynamicTyping=A,y.transform=!!R(y.transform)&&y.transform,!y.worker||!u.WORKERS_SUPPORTED)return A=null,u.NODE_STREAM_INPUT,typeof _=="string"?(_=(k=>k.charCodeAt(0)!==65279?k:k.slice(1))(_),A=new(y.download?c:m)(y)):_.readable===!0&&R(_.read)&&R(_.on)?A=new h(y):(r.File&&_ instanceof File||_ instanceof Object)&&(A=new p(y)),A.stream(_);(A=(()=>{var k;return!!u.WORKERS_SUPPORTED&&(k=(()=>{var N=r.URL||r.webkitURL||null,I=n.toString();return u.BLOB_URL||(u.BLOB_URL=N.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; ","(",I,")();"],{type:"text/javascript"})))})(),(k=new r.Worker(k)).onmessage=S,k.id=l++,a[k.id]=k)})()).userStep=y.step,A.userChunk=y.chunk,A.userComplete=y.complete,A.userError=y.error,y.step=R(y.step),y.chunk=R(y.chunk),y.complete=R(y.complete),y.error=R(y.error),delete y.worker,A.postMessage({input:_,config:y,workerId:A.id})},u.unparse=function(_,y){var A=!1,k=!0,N=",",I=`\r
|
|
48
48
|
`,G='"',le=G+G,q=!1,B=null,F=!1,U=((()=>{if(typeof y=="object"){if(typeof y.delimiter!="string"||u.BAD_DELIMITERS.filter(function(Y){return y.delimiter.indexOf(Y)!==-1}).length||(N=y.delimiter),typeof y.quotes!="boolean"&&typeof y.quotes!="function"&&!Array.isArray(y.quotes)||(A=y.quotes),typeof y.skipEmptyLines!="boolean"&&typeof y.skipEmptyLines!="string"||(q=y.skipEmptyLines),typeof y.newline=="string"&&(I=y.newline),typeof y.quoteChar=="string"&&(G=y.quoteChar),typeof y.header=="boolean"&&(k=y.header),Array.isArray(y.columns)){if(y.columns.length===0)throw new Error("Option columns is empty");B=y.columns}y.escapeChar!==void 0&&(le=y.escapeChar+G),y.escapeFormulae instanceof RegExp?F=y.escapeFormulae:typeof y.escapeFormulae=="boolean"&&y.escapeFormulae&&(F=/^[=+\-@\t\r].*$/)}})(),new RegExp(w(G),"g"));if(typeof _=="string"&&(_=JSON.parse(_)),Array.isArray(_)){if(!_.length||Array.isArray(_[0]))return V(null,_,q);if(typeof _[0]=="object")return V(B||Object.keys(_[0]),_,q)}else if(typeof _=="object")return typeof _.data=="string"&&(_.data=JSON.parse(_.data)),Array.isArray(_.data)&&(_.fields||(_.fields=_.meta&&_.meta.fields||B),_.fields||(_.fields=Array.isArray(_.data[0])?_.fields:typeof _.data[0]=="object"?Object.keys(_.data[0]):[]),Array.isArray(_.data[0])||typeof _.data[0]=="object"||(_.data=[_.data])),V(_.fields||[],_.data||[],q);throw new Error("Unable to serialize unrecognized input");function V(Y,D,K){var oe="",De=(typeof Y=="string"&&(Y=JSON.parse(Y)),typeof D=="string"&&(D=JSON.parse(D)),Array.isArray(Y)&&0<Y.length),Pe=!Array.isArray(D[0]);if(De&&k){for(var ee=0;ee<Y.length;ee++)0<ee&&(oe+=N),oe+=se(Y[ee],ee);0<D.length&&(oe+=I)}for(var ye=0;ye<D.length;ye++){var me=(De?Y:D[ye]).length,de=!1,j=De?Object.keys(D[ye]).length===0:D[ye].length===0;if(K&&!De&&(de=K==="greedy"?D[ye].join("").trim()==="":D[ye].length===1&&D[ye][0].length===0),K==="greedy"&&De){for(var fe=[],ae=0;ae<me;ae++){var be=Pe?Y[ae]:ae;fe.push(D[ye][be])}de=fe.join("").trim()===""}if(!de){for(var je=0;je<me;je++){0<je&&!j&&(oe+=N);var ve=De&&Pe?Y[je]:je;oe+=se(D[ye][ve],je)}ye<D.length-1&&(!K||0<me&&!j)&&(oe+=I)}}return oe}function se(Y,D){var K,oe;return Y==null?"":Y.constructor===Date?JSON.stringify(Y).slice(1,25):(oe=!1,F&&typeof Y=="string"&&F.test(Y)&&(Y="'"+Y,oe=!0),K=Y.toString().replace(U,le),(oe=oe||A===!0||typeof A=="function"&&A(Y,D)||Array.isArray(A)&&A[D]||((De,Pe)=>{for(var ee=0;ee<Pe.length;ee++)if(-1<De.indexOf(Pe[ee]))return!0;return!1})(K,u.BAD_DELIMITERS)||-1<K.indexOf(N)||K.charAt(0)===" "||K.charAt(K.length-1)===" ")?G+K+G:K)}},u.RECORD_SEP="",u.UNIT_SEP="",u.BYTE_ORDER_MARK="\uFEFF",u.BAD_DELIMITERS=["\r",`
|
|
49
|
-
`,'"',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=S,u.ParserHandle=g,u.NetworkStreamer=c,u.FileStreamer=p,u.StringStreamer=m,u.ReadableStreamStreamer=h,r.jQuery&&((i=r.jQuery).fn.parse=function(_){var y=_.config||{},A=[];return this.each(function(I){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 G=0;G<this.files.length;G++)A.push({file:this.files[G],inputElem:this,instanceConfig:i.extend({},y)})}),k(),this;function k(){if(A.length===0)R(_.complete)&&_.complete();else{var I,G,le,q,B=A[0];if(R(_.before)){var F=_.before(B.file,B.inputElem);if(typeof F=="object"){if(F.action==="abort")return I="AbortError",G=B.file,le=B.inputElem,q=F.reason,void(R(_.error)&&_.error({name:I},G,le,q));if(F.action==="skip")return void N();typeof F.config=="object"&&(B.instanceConfig=i.extend(B.instanceConfig,F.config))}else if(F==="skip")return void N()}var U=B.instanceConfig.complete;B.instanceConfig.complete=function(V){R(U)&&U(V,B.file,B.inputElem),N()},u.parse(B.file,B.instanceConfig)}}function N(){A.splice(0,1),k()}}),s&&(r.onmessage=function(_){_=_.data,u.WORKER_ID===void 0&&_&&(u.WORKER_ID=_.workerId),typeof _.input=="string"?r.postMessage({workerId:u.WORKER_ID,results:u.parse(_.input,_.config),finished:!0}):(r.File&&_.input instanceof File||_.input instanceof Object)&&(_=u.parse(_.input,_.config))&&r.postMessage({workerId:u.WORKER_ID,results:_,finished:!0})}),(c.prototype=Object.create(d.prototype)).constructor=c,(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})}(_o)),_o.exports}var l3=a3();let Qn=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NoFileSelected","ParsingFile","FileSelected"]}};function u3(e){return e==null?[new Qn(0,[void 0]),Z()]:[new Qn(2,[e]),Z()]}function c3(e,t){let n,r,i,o,s;switch(e.tag){case 1:{t.tag===1?n=4:n=5;break}case 2:{t.tag===2?n=6:n=7;break}default:if(e.fields[0].tag===1)e.fields[0].fields[0].tag===1?t.tag===1?(n=2,s=e.fields[0].fields[0].fields[0]):n=3:t.tag===1?(n=1,o=e.fields[0].fields[0].fields[0]):n=3;else switch(t.tag){case 0:{n=0,r=e.fields[0].fields[0][0],i=e.fields[0].fields[0][1];break}case 2:{n=0,r=e.fields[0].fields[0][0],i=e.fields[0].fields[0][1];break}default:n=3}}switch(n){case 0:return[new Qn(1,[r]),Ew(i)];case 1:return[new Qn(2,[o]),Z()];case 2:return[new Qn(0,[s]),Z()];case 3:return[t,Z()];case 4:return[new Qn(0,[void 0]),Z()];case 5:return[t,Z()];case 6:return[new Qn(0,[void 0]),Z()];default:return[t,Z()]}}function Nm(e,t){let n,r,i;return f("svg",b(v([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=v([f("path",b(v([(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"]]))),f("path",b(v([(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",C.Children.toArray(Array.from(n))])])))}function d3(e,t,n){let r,i,o,s,a,l,u,d,c,p,m,h,g,w,S,x,E,$,P,H,R,_;return Dl(v([new vn(3,[t]),new vn(4,[n]),new vn(5,[[Rl(ge(new Pl(2,["fixed inset-0 bg-gray-500/50"]))),f("div",b(v([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(r=[Fl(ge(new Ol(2,[[f("div",b(v([["className","flex flex-col mt-6 mb-6 px-6"],(i=[f("div",b(v([["className","flex flex-row justify-between"],(o=[f("span",{className:"text-gray-900 font-semibold text-lg",children:"What kind of data do I need?"}),f("button",b(v([["onClick",y=>{n()}],["type","button"],["className","text-gray-600"],(s=[Ll(24,24)],["children",C.Children.toArray(Array.from(s))])])))],["children",C.Children.toArray(Array.from(o))])]))),f("div",b(v([["className","text-gray-600 text-sm pt-6"],(a=[f("span",{children:"Fields marked with "}),f("span",{className:"text-red-600",children:"*"}),f("span",b(ge((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",C.Children.toArray(Array.from(a))])]))),f("div",b(v([["className","grid grid-cols-2 mt-3"],(u=[f("span",{className:"text-gray-900 font-medium text-sm px-3 py-3.5 bg-gray-100 border",children:"Column fields"}),f("span",{className:"text-gray-900 font-medium text-sm px-3 py-3.5 bg-gray-100 border",children:"Accepted values"}),f("div",b(v([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(d=[f("span",{children:"First name "}),f("span",{className:"text-red-600",children:"*"})],["children",C.Children.toArray(Array.from(d))])]))),f("div",b(ge((c=[f("div",b(v([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(p=[f("span",{children:"For example:"}),f("br",{}),f("span",{className:"italic",children:"Sam, Josh, Alex"})],["children",C.Children.toArray(Array.from(p))])])))],["children",C.Children.toArray(Array.from(c))])))),f("div",b(v([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(m=[f("span",{children:"Last name "}),f("span",{className:"text-red-600",children:"*"})],["children",C.Children.toArray(Array.from(m))])]))),f("div",b(ge((h=[f("div",b(v([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(g=[f("span",{children:"For example:"}),f("br",{}),f("span",{className:"italic",children:"Smith, Doe, Williams"})],["children",C.Children.toArray(Array.from(g))])])))],["children",C.Children.toArray(Array.from(h))])))),f("div",b(v([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(w=[f("span",{children:"Email "}),f("span",{className:"text-red-600",children:"*"})],["children",C.Children.toArray(Array.from(w))])]))),f("div",b(ge((S=[f("div",b(v([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(x=[f("span",{children:"For example:"}),f("br",{}),f("span",{className:"italic",children:"john.smith@mycompany.com"})],["children",C.Children.toArray(Array.from(x))])])))],["children",C.Children.toArray(Array.from(S))])))),f("span",{className:"text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border",children:"Mobile number"}),f("div",b(ge((E=[f("div",b(v([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],($=[f("span",{children:"For example:"}),f("br",{}),f("span",{className:"italic",children:"+61432368712"})],["children",C.Children.toArray(Array.from($))])])))],["children",C.Children.toArray(Array.from(E))])))),f("span",{className:"text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border",children:"Employment basis"}),f("div",b(ge((P=[f("div",b(v([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(H=[f("span",{children:"One of the following options:"}),f("br",{}),f("ul",b(v([["className","italic list-disc px-3"],(R=[f("li",{children:"Full-time"}),f("li",{children:"Part-time"}),f("li",{children:"Labour hire"}),f("li",{children:"Casual"})],["children",C.Children.toArray(Array.from(R))])])))],["children",C.Children.toArray(Array.from(H))])])))],["children",C.Children.toArray(Array.from(P))])))),f("a",b(v([["className","flex flex-row items-end gap-1 pt-3"],["href",e],["download","import_users"],(_=[f("span",{className:"text-sm text-primary-600 font-medium",children:"Download template"}),Nm(16,16)],["children",C.Children.toArray(Array.from(_))])])))],["children",C.Children.toArray(Array.from(u))])])))],["children",C.Children.toArray(Array.from(i))])])))]])))],["children",C.Children.toArray(Array.from(r))])])))]])]))}function f3(e,t){let n,r,i,o,s,a,l;return Dl(v([new vn(3,[e]),new vn(4,[t]),new vn(5,[[Rl(ge(new Pl(2,["fixed inset-0 bg-gray-500/50"]))),f("div",b(v([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(n=[Fl(ge(new Ol(2,[[f("div",b(v([["className","flex flex-col mt-6 mb-6 px-6"],(r=[f("div",b(v([["className","flex flex-row justify-between"],(i=[f("span",{className:"text-gray-900 font-semibold text-lg",children:"Frequently asked questions"}),f("button",b(v([["onClick",u=>{t()}],["type","button"],["className","text-gray-700"],(o=[Ll(24,24)],["children",C.Children.toArray(Array.from(o))])])))],["children",C.Children.toArray(Array.from(i))])]))),f("div",{className:"font-semibold text-sm pt-6",children:"What file format is accepted for bulk import?"}),f("div",{className:"text-sm text-gray-500 pt-2",children:"The only accepted file format for bulk import is CSV."}),f("div",{className:"font-semibold text-sm pt-6",children:"What is the maximum upload file size?"}),f("div",{className:"text-sm text-gray-500 pt-2",children:"The maximum upload file size is 10 MB."}),f("div",{className:"font-semibold text-sm pt-6",children:"What is the maximum number of rows supported for bulk import?"}),f("div",{className:"text-sm text-gray-500 pt-2",children:"The maximum number of rows you can upload is 5,000."}),f("div",{className:"font-semibold text-sm pt-6",children:"What information do I need to include in the CSV file?"}),f("div",b(v([["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])]))),f("div",{className:"font-semibold text-sm pt-6",children:"How do I format the CSV file?"}),f("div",b(v([["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.
|
|
49
|
+
`,'"',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=C,u.ParserHandle=g,u.NetworkStreamer=c,u.FileStreamer=p,u.StringStreamer=m,u.ReadableStreamStreamer=h,r.jQuery&&((i=r.jQuery).fn.parse=function(_){var y=_.config||{},A=[];return this.each(function(I){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 G=0;G<this.files.length;G++)A.push({file:this.files[G],inputElem:this,instanceConfig:i.extend({},y)})}),k(),this;function k(){if(A.length===0)R(_.complete)&&_.complete();else{var I,G,le,q,B=A[0];if(R(_.before)){var F=_.before(B.file,B.inputElem);if(typeof F=="object"){if(F.action==="abort")return I="AbortError",G=B.file,le=B.inputElem,q=F.reason,void(R(_.error)&&_.error({name:I},G,le,q));if(F.action==="skip")return void N();typeof F.config=="object"&&(B.instanceConfig=i.extend(B.instanceConfig,F.config))}else if(F==="skip")return void N()}var U=B.instanceConfig.complete;B.instanceConfig.complete=function(V){R(U)&&U(V,B.file,B.inputElem),N()},u.parse(B.file,B.instanceConfig)}}function N(){A.splice(0,1),k()}}),s&&(r.onmessage=function(_){_=_.data,u.WORKER_ID===void 0&&_&&(u.WORKER_ID=_.workerId),typeof _.input=="string"?r.postMessage({workerId:u.WORKER_ID,results:u.parse(_.input,_.config),finished:!0}):(r.File&&_.input instanceof File||_.input instanceof Object)&&(_=u.parse(_.input,_.config))&&r.postMessage({workerId:u.WORKER_ID,results:_,finished:!0})}),(c.prototype=Object.create(d.prototype)).constructor=c,(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})}(bo)),bo.exports}var l3=a3();const u3=e=>e.filter(n=>!ts(n)).length===0;function c3(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,c,p,m,h,g,w,C,S;e((a=o.errors,!Ri(J,a,Se())&&a.length===0?(l=(u=o.data,u.filter(E=>!u3(E))),d=l.length>1?new T(0,[void 0]):new T(1,[new dn(2,[])]),d.tag===1?new T(1,[d.fields[0]]):(c=l.length<=5001?new T(0,[void 0]):new T(1,[new dn(3,[])]),c.tag===1?new T(1,[c.fields[0]]):(p=vu(l),m=p.length|0,h=p.some(ts)?new T(1,[new dn(4,[])]):new T(0,[void 0]),h.tag===1?new T(1,[h.fields[0]]):(g=(w=Zf(et(E=>E.trim().toLocaleLowerCase(),p),{Equals:(E,$)=>E===$,GetHashCode:Vn}),w.length===m?new T(0,[void 0]):new T(1,[new dn(5,[])])),g.tag===1?new T(1,[g.fields[0]]):(C=(S=l.filter(E=>E.length!==m),S.length===0?new T(0,[void 0]):new T(1,[new dn(6,[])])),C.tag===1?new T(1,[C.fields[0]]):new T(0,[new Nb(new Xf(t.name),Ud((E,$)=>[new bb(E),new Ab($.trim())],vu(l)),new Tb(et(E=>new kb(et($=>$.trim(),E)),xp(l))),t.size)])))))):new T(1,[new dn(7,[Ae(0,o.errors).message])])))},i.error=(o,s)=>{e(new T(1,[new dn(7,[o])]))},i.worker=!0,l3.parse(t,i)}else e(new T(1,[new dn(1,[])]));else e(new T(1,[new dn(0,[])]))}let Qn=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NoFileSelected","ParsingFile","FileSelected"]}};function d3(e){return e==null?[new Qn(0,[void 0]),Z()]:[new Qn(2,[e]),Z()]}function f3(e,t){let n,r,i,o,s;switch(e.tag){case 1:{t.tag===1?n=4:n=5;break}case 2:{t.tag===2?n=6:n=7;break}default:if(e.fields[0].tag===1)e.fields[0].fields[0].tag===1?t.tag===1?(n=2,s=e.fields[0].fields[0].fields[0]):n=3:t.tag===1?(n=1,o=e.fields[0].fields[0].fields[0]):n=3;else switch(t.tag){case 0:{n=0,r=e.fields[0].fields[0][0],i=e.fields[0].fields[0][1];break}case 2:{n=0,r=e.fields[0].fields[0][0],i=e.fields[0].fields[0][1];break}default:n=3}}switch(n){case 0:return[new Qn(1,[r]),Ew(i)];case 1:return[new Qn(2,[o]),Z()];case 2:return[new Qn(0,[s]),Z()];case 3:return[t,Z()];case 4:return[new Qn(0,[void 0]),Z()];case 5:return[t,Z()];case 6:return[new Qn(0,[void 0]),Z()];default:return[t,Z()]}}function Nm(e,t){let n,r,i;return f("svg",b(v([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=v([f("path",b(v([(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"]]))),f("path",b(v([(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",x.Children.toArray(Array.from(n))])])))}function h3(e,t,n){let r,i,o,s,a,l,u,d,c,p,m,h,g,w,C,S,E,$,P,H,R,_;return Dl(v([new vn(3,[t]),new vn(4,[n]),new vn(5,[[Rl(ge(new Pl(2,["fixed inset-0 bg-gray-500/50"]))),f("div",b(v([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(r=[Fl(ge(new Ol(2,[[f("div",b(v([["className","flex flex-col mt-6 mb-6 px-6"],(i=[f("div",b(v([["className","flex flex-row justify-between"],(o=[f("span",{className:"text-gray-900 font-semibold text-lg",children:"What kind of data do I need?"}),f("button",b(v([["onClick",y=>{n()}],["type","button"],["className","text-gray-600"],(s=[Ll(24,24)],["children",x.Children.toArray(Array.from(s))])])))],["children",x.Children.toArray(Array.from(o))])]))),f("div",b(v([["className","text-gray-600 text-sm pt-6"],(a=[f("span",{children:"Fields marked with "}),f("span",{className:"text-red-600",children:"*"}),f("span",b(ge((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",x.Children.toArray(Array.from(a))])]))),f("div",b(v([["className","grid grid-cols-2 mt-3"],(u=[f("span",{className:"text-gray-900 font-medium text-sm px-3 py-3.5 bg-gray-100 border",children:"Column fields"}),f("span",{className:"text-gray-900 font-medium text-sm px-3 py-3.5 bg-gray-100 border",children:"Accepted values"}),f("div",b(v([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(d=[f("span",{children:"First name "}),f("span",{className:"text-red-600",children:"*"})],["children",x.Children.toArray(Array.from(d))])]))),f("div",b(ge((c=[f("div",b(v([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(p=[f("span",{children:"For example:"}),f("br",{}),f("span",{className:"italic",children:"Sam, Josh, Alex"})],["children",x.Children.toArray(Array.from(p))])])))],["children",x.Children.toArray(Array.from(c))])))),f("div",b(v([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(m=[f("span",{children:"Last name "}),f("span",{className:"text-red-600",children:"*"})],["children",x.Children.toArray(Array.from(m))])]))),f("div",b(ge((h=[f("div",b(v([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(g=[f("span",{children:"For example:"}),f("br",{}),f("span",{className:"italic",children:"Smith, Doe, Williams"})],["children",x.Children.toArray(Array.from(g))])])))],["children",x.Children.toArray(Array.from(h))])))),f("div",b(v([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(w=[f("span",{children:"Email "}),f("span",{className:"text-red-600",children:"*"})],["children",x.Children.toArray(Array.from(w))])]))),f("div",b(ge((C=[f("div",b(v([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(S=[f("span",{children:"For example:"}),f("br",{}),f("span",{className:"italic",children:"john.smith@mycompany.com"})],["children",x.Children.toArray(Array.from(S))])])))],["children",x.Children.toArray(Array.from(C))])))),f("span",{className:"text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border",children:"Mobile number"}),f("div",b(ge((E=[f("div",b(v([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],($=[f("span",{children:"For example:"}),f("br",{}),f("span",{className:"italic",children:"+61432368712"})],["children",x.Children.toArray(Array.from($))])])))],["children",x.Children.toArray(Array.from(E))])))),f("span",{className:"text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border",children:"Employment basis"}),f("div",b(ge((P=[f("div",b(v([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(H=[f("span",{children:"One of the following options:"}),f("br",{}),f("ul",b(v([["className","italic list-disc px-3"],(R=[f("li",{children:"Full-time"}),f("li",{children:"Part-time"}),f("li",{children:"Labour hire"}),f("li",{children:"Casual"})],["children",x.Children.toArray(Array.from(R))])])))],["children",x.Children.toArray(Array.from(H))])])))],["children",x.Children.toArray(Array.from(P))])))),f("a",b(v([["className","flex flex-row items-end gap-1 pt-3"],["href",e],["download","import_users"],(_=[f("span",{className:"text-sm text-primary-600 font-medium",children:"Download template"}),Nm(16,16)],["children",x.Children.toArray(Array.from(_))])])))],["children",x.Children.toArray(Array.from(u))])])))],["children",x.Children.toArray(Array.from(i))])])))]])))],["children",x.Children.toArray(Array.from(r))])])))]])]))}function m3(e,t){let n,r,i,o,s,a,l;return Dl(v([new vn(3,[e]),new vn(4,[t]),new vn(5,[[Rl(ge(new Pl(2,["fixed inset-0 bg-gray-500/50"]))),f("div",b(v([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(n=[Fl(ge(new Ol(2,[[f("div",b(v([["className","flex flex-col mt-6 mb-6 px-6"],(r=[f("div",b(v([["className","flex flex-row justify-between"],(i=[f("span",{className:"text-gray-900 font-semibold text-lg",children:"Frequently asked questions"}),f("button",b(v([["onClick",u=>{t()}],["type","button"],["className","text-gray-700"],(o=[Ll(24,24)],["children",x.Children.toArray(Array.from(o))])])))],["children",x.Children.toArray(Array.from(i))])]))),f("div",{className:"font-semibold text-sm pt-6",children:"What file format is accepted for bulk import?"}),f("div",{className:"text-sm text-gray-500 pt-2",children:"The only accepted file format for bulk import is CSV."}),f("div",{className:"font-semibold text-sm pt-6",children:"What is the maximum upload file size?"}),f("div",{className:"text-sm text-gray-500 pt-2",children:"The maximum upload file size is 10 MB."}),f("div",{className:"font-semibold text-sm pt-6",children:"What is the maximum number of rows supported for bulk import?"}),f("div",{className:"text-sm text-gray-500 pt-2",children:"The maximum number of rows you can upload is 5,000."}),f("div",{className:"font-semibold text-sm pt-6",children:"What information do I need to include in the CSV file?"}),f("div",b(v([["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])]))),f("div",{className:"font-semibold text-sm pt-6",children:"How do I format the CSV file?"}),f("div",b(v([["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.
|
|
50
50
|
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])]))),f("div",{className:"font-semibold text-sm pt-6",children:"What should I do if my CSV file contains errors?"}),f("div",b(v([["className","text-sm text-gray-500 pt-2"],(l=`We recommend checking for common issues, such as missing data or incorrect formatting before upload.
|
|
51
|
-
If errors are detected during import, you can download a CSV file that lists all the rows with issues.`,["children",l])])))],["children",C.Children.toArray(Array.from(r))])])))]])))],["children",C.Children.toArray(Array.from(n))])])))]])]))}function h3(e,t){let n,r,i;return f("svg",b(v([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=v([f("path",b(v([(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"]]))),f("path",b(v([(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",C.Children.toArray(Array.from(n))])])))}function m3(e,t){let n,r;return f("svg",b(v([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=v([f("path",b(v([(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"]]))),f("path",{d:"M16.414 7L10 0.585999L3.586 7L5 8.414L9 4.414V15H11V4.414L15 8.414L16.414 7Z",fill:"#9CA3AF"})]),["children",C.Children.toArray(Array.from(n))])])))}function p3(e,t){const n=e.type==="text/csv",r=e.size<=10485760;if(n)if(r){const i={};i.complete=(o,s)=>{let a,l,u,d,c,p,m,h,g,w,S;t(new nr(0,[new Jn(1,[(a=o.errors,!Hi(J,a,Se())&&a.length===0?(l=o.data.length>1?new T(0,[void 0]):new T(1,[new dn(2,[])]),l.tag===1?new T(1,[l.fields[0]]):(u=o.data.length<=5001?new T(0,[void 0]):new T(1,[new dn(3,[])]),u.tag===1?new T(1,[u.fields[0]]):(d=vu(o.data),c=d.length|0,p=d.some(el)?new T(1,[new dn(4,[])]):new T(0,[void 0]),p.tag===1?new T(1,[p.fields[0]]):(m=(h=Zf(et(x=>x.trim().toLocaleLowerCase(),d),{Equals:(x,E)=>x===E,GetHashCode:Vn}),h.length===c?new T(0,[void 0]):new T(1,[new dn(5,[])])),m.tag===1?new T(1,[m.fields[0]]):(g=(w=(S=o.data,S.filter(x=>x.length!==c)),w.length===0?new T(0,[void 0]):new T(1,[new dn(6,[])])),g.tag===1?new T(1,[g.fields[0]]):new T(0,[new Nb(new Xf(e.name),Ud((x,E)=>[new bb(x),new Ab(E.trim())],vu(o.data)),new Tb(et(x=>new kb(et(E=>E.trim(),x)),xp(o.data))),e.size)])))))):new T(1,[new dn(7,[Ae(0,o.errors).message])]))])]))},i.error=(o,s)=>{t(new nr(0,[new Jn(1,[new T(1,[new dn(7,[o])])])]))},i.worker=!0,l3.parse(e,i)}else t(new nr(0,[new Jn(1,[new T(1,[new dn(1,[])])])]));else t(new nr(0,[new Jn(1,[new T(1,[new dn(0,[])])])]))}function g3(e,t){Kd(wt.Delay(()=>wt.Bind(Gp(1e3),()=>(p3(e,t),wt.Zero()))))}const ta=(()=>{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 w3(e){let t,n,r,i,o,s,a,l;const u=e.cancel,d=e.next,c=e.existingCsvFile;let p;const m=u3(c);p=ni(()=>ti(()=>m,c3,(y,A)=>{}),void 0,[]);const h=p[0],g=p[1],w=y=>{g(new nr(0,[new Jn(0,[[new Xf(y.name),A=>{g3(y,A)}]])]))},S=C.useState(!1),x=S[1],E=C.useState(!1),$=E[1],P=C.useState(!1),H=P[1],R=C.useRef(void 0),_=h.tag===2;return f("div",b(v([["className","bg-gray-50 h-full"],(t=[f("div",b(v([["className","max-w-[640px] flex flex-col mx-12 mt-8 mb-12"],(n=[d3(ta,S[0],()=>{x(!1)}),f3(P[0],()=>{H(!1)}),f("span",{className:"font-sonoma text-black font-semibold text-lg",children:"Upload CSV"}),f("span",{className:"text-sm font-normal pt-2",children:"Download and use our template, or upload your own CSV to get started."}),f("a",b(v([["className","flex flex-row items-end gap-1"],["href",ta],["download","import_users"],(r=[f("span",{className:"text-sm font-medium text-primary-600 pt-2",children:"Download sample CSV template"}),Nm(16,16)],["children",C.Children.toArray(Array.from(r))])]))),f("div",b(v([["className","flex flex-row pt-3 gap-2"],(i=[f("button",{className:"rounded-2xl text-xs font-medium text-gray-600 border px-3.5 py-1.5 bg-white",onClick:y=>{x(!0)},type:"button",children:C.Children.toArray(["What kind of data do I need?"])}),f("button",{className:"rounded-2xl text-xs font-medium text-gray-600 border px-3.5 py-1.5 bg-white",onClick:y=>{H(!0)},type:"button",children:C.Children.toArray(["Frequently asked questions"])})],["children",C.Children.toArray(Array.from(i))])]))),f("div",b(he(O(()=>te(E[0]?M(["className","h-75 border-gray-300 border-dashed border-2 rounded-md my-6 bg-blue-50 border-blue-300"]):M(["className","h-75 border-gray-300 border-dashed border-2 rounded-md my-6 hover:bg-gray-100"]),O(()=>{let y;return M((y=he(O(()=>{let A,k,N,I,G,le,q,B,F,U,V,se,Y;switch(h.tag){case 2:{let D;const K=h.fields[0].SizeInBytes/1024/1024;return D=K<.01?.01:K,M(f("div",b(v([["className","p-6 justify-between items-center inline-flex w-full"],(A=[f("div",b(v([["className","justify-start items-start gap-2 flex"],(k=[f("div",{className:"text-center text-gray-600 text-sm font-medium",children:h.fields[0].Name.fields[0]}),f("span",b(v([["className","text-emerald-700"],(N=[Hl(20,20)],["children",C.Children.toArray(Array.from(N))])])))],["children",C.Children.toArray(Array.from(k))])]))),f("div",b(v([["className","justify-start items-start gap-2 flex"],(I=[f("div",{className:"text-center text-gray-500 text-sm font-medium",children:`${D}MB`}),f("button",b(v([["className","justify-start items-center gap-1 flex text-red-600"],["onClick",oe=>{g(new nr(2,[]))}],(G=[f("div",{className:"text-center text-sm font-medium",children:"Remove"}),f("div",b(v([["className","w-4 h-4 justify-center items-center flex"],(le=[ya(10,10)],["children",C.Children.toArray(Array.from(le))])])))],["children",C.Children.toArray(Array.from(G))])])))],["children",C.Children.toArray(Array.from(I))])])))],["children",C.Children.toArray(Array.from(A))])]))))}case 1:return M(f("div",b(v([["className","p-6 justify-between items-center inline-flex w-full"],(q=[f("div",b(v([["className","justify-start items-start gap-2 flex"],(B=[f("div",{className:"text-center text-gray-600 text-sm font-medium",children:h.fields[0].fields[0]}),f("span",b(v([["className","animate-spin"],(F=[h3(20,20)],["children",C.Children.toArray(Array.from(F))])])))],["children",C.Children.toArray(Array.from(B))])]))),f("div",b(v([["className","justify-start items-start gap-2 flex"],(U=[f("button",b(v([["className","justify-start items-center gap-1 flex text-red-600"],["onClick",D=>{g(new nr(1,[]))}],(V=[f("div",{className:"text-center text-sm font-medium",children:"Cancel"}),f("div",b(v([["className","w-4 h-4 justify-center items-center flex"],(se=[ya(10,10)],["children",C.Children.toArray(Array.from(se))])])))],["children",C.Children.toArray(Array.from(V))])])))],["children",C.Children.toArray(Array.from(U))])])))],["children",C.Children.toArray(Array.from(q))])]))));default:{const D=K=>{K.preventDefault(),K.stopPropagation()};return M(f("div",b(v([["className","flex flex-col items-center p-4"],["onDragEnter",K=>{D(K),$(!0)}],["onDragLeave",K=>{D(K),$(!1)}],["onDragOver",K=>{D(K),$(!0)}],["onDrop",K=>{let oe;D(K),$(!1),w((oe=K,oe.dataTransfer).files.item(0))}],(Y=he(O(()=>{let K,oe,De,Pe,ee,ye;return te((K=h.fields[0],K==null?M(Se()):(oe=K,M(f("div",b(v([["className","h-9 p-2 bg-red-50 rounded-md justify-start items-start gap-2 inline-flex w-full"],(De=[f("div",b(v([["className","w-5 h-5 px-0.5 pt-0.5 pb-[3px] justify-center items-center flex"],(Pe=[wm(16,15)],["children",C.Children.toArray(Array.from(Pe))])]))),f("div",b(v([["className","grow shrink basis-0 flex-col justify-start items-start gap-2 inline-flex"],(ee=[f("div",b(v([["className","self-stretch text-red-800 text-sm font-normal"],(ye=he(O(()=>{let me;const de=ae=>f("span",{className:"font-medium",children:ae}),j=ae=>f("span",{children:[ae]}),fe=f("a",{className:"underline",children:"sample CSV",href:ta,download:"import_users"});return M((me=oe.tag===1?v([de("File is too large (over 10MB). "),j("Upload a "),de("smaller file"),j(".")]):oe.tag===2?v([de("File is empty. "),j("Ensure your file contains data before uploading.")]):oe.tag===3?v([de("Too many rows (5000+). "),j("Upload a "),de("file with fewer rows"),j(".")]):oe.tag===4?v([de("Invalid CSV: Missing header field(s). "),j("Try using our "),fe,j(".")]):oe.tag===5?v([de("Invalid CSV: Duplicate header fields. "),j("Try using our "),fe,j(".")]):oe.tag===6?v([de("Invalid CSV: Rows have different lengths. "),j("Check for missing or extra columns.")]):oe.tag===7?v([de("Invalid CSV format. "),j("Try using our "),fe,j(".")]):v([de("Unsupported file type. "),j("Upload a "),de(".csv file"),j(".")]),f("p",{children:C.Children.toArray(Array.from(me))})))})),["children",C.Children.toArray(Array.from(ye))])])))],["children",C.Children.toArray(Array.from(ee))])])))],["children",C.Children.toArray(Array.from(De))])])))))),O(()=>{let me;return te(M(f("div",b(v([["className","pt-2"],(me=[m3(20,21)],["children",C.Children.toArray(Array.from(me))])])))),O(()=>te(M(f("input",{type:"file",onChange:de=>{const j=de.target.files;j!=null&&j.length>0&&w(j.item(0))},className:"hidden",ref:R})),O(()=>te(M(f("span",{className:"text-gray-600 text-sm font-medium mt-3",children:"Drag and drop CSV file here"})),O(()=>te(M(f("button",{className:"rounded text-sm w-[120px] border px-3 py-2 mt-4 font-medium text-gray-700 bg-white",onClick:de=>{wr(j=>{j.click()},ns(R.current))},type:"button",children:C.Children.toArray(["Choose file"])})),O(()=>M(f("span",{className:"text-gray-500 text-xs font-normal mt-2 font-normal pb-2",children:"Maximum size: 10 MB"}))))))))))}))})),["children",C.Children.toArray(Array.from(Y))])]))))}}})),["children",C.Children.toArray(Array.from(y))]))})))))),f("div",b(v([["className","flex flex-row justify-end gap-3"],(o=[f("button",b(v([(s="bg-white rounded-md text-red-700 shadow-sm text-sm border border-gray-300 font-medium px-3 py-2 w-[120px]",["className",s]),["onClick",y=>{u()}],["type","button"],["children",C.Children.toArray(["Cancel import"])]]))),f("button",b(v([(a="inline-flex justify-center items-center gap-x-1 rounded-md text-white bg-primary-600 text-sm w-[120px] border font-medium px-3 py-2 disabled:opacity-50",["className",a]),["onClick",y=>{h.tag===2&&d(h.fields[0])}],["type","button"],["disabled",!_],(l=["Map fields",Vl(13,8)],["children",C.Children.toArray(Array.from(l))])])))],["children",C.Children.toArray(Array.from(o))])])))],["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))}class Tt extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UploadingCsv","MappingColumns","MappingEmploymentBasis","Reviewing"]}}class xt extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Configuring","Importing"]}}function y3(){return[new xt(0,[new Tt(0,[void 0])]),Z()]}function v3(e,t){let n,r,i,o,s,a,l,u,d,c,p,m,h,g,w,S,x,E,$,P,H,R,_,y,A,k,N,I,G,le,q,B,F,U,V,se,Y;if(e.tag===1)switch(e.fields[0].tag){case 1:{t.tag===0&&t.fields[0].tag===2?(n=13,k=t.fields[0].fields[0][1],N=t.fields[0].fields[0][0],I=t.fields[0].fields[0][2],G=e.fields[0].fields[0]):n=14;break}case 2:{e.fields[0].fields[0].tag===0?t.tag===0&&t.fields[0].tag===1?(n=17,se=t.fields[0].fields[0][0],Y=e.fields[0].fields[0].fields[0]):n=18:e.fields[0].fields[0].fields[1]!=null?t.tag===0&&t.fields[0].tag===1?(n=16,B=e.fields[0].fields[0].fields[0],F=t.fields[0].fields[0][0],U=e.fields[0].fields[0].fields[1],V=t.fields[0].fields[0][1]):n=18:t.tag===0&&t.fields[0].tag===1?(n=15,le=e.fields[0].fields[0].fields[0],q=t.fields[0].fields[0][0]):n=18;break}default:t.tag===0&&t.fields[0].tag===3?t.fields[0].fields[0][2]!=null?(n=11,R=t.fields[0].fields[0][1],_=t.fields[0].fields[0][0],y=t.fields[0].fields[0][2][0],A=t.fields[0].fields[0][2][1]):(n=10,P=t.fields[0].fields[0][1],H=t.fields[0].fields[0][0]):n=12}else switch(e.fields[0].tag){case 1:{e.fields[0].fields[1]!=null?t.tag===0&&t.fields[0].tag===1?(n=4,u=e.fields[0].fields[0],d=t.fields[0].fields[0][0],c=e.fields[0].fields[1],p=t.fields[0].fields[0][1]):n=5:t.tag===0&&t.fields[0].tag===1?(n=3,a=e.fields[0].fields[0],l=t.fields[0].fields[0][0]):n=5;break}case 2:{t.tag===0&&t.fields[0].tag===2?(n=6,m=t.fields[0].fields[0][1],h=t.fields[0].fields[0][0],g=t.fields[0].fields[0][2],w=e.fields[0].fields[0]):n=7;break}case 3:{t.tag===0&&t.fields[0].tag===3?(n=8,S=t.fields[0].fields[0][1],x=t.fields[0].fields[0][0],E=t.fields[0].fields[0][2],$=e.fields[0].fields[0]):n=9;break}default:t.tag===0&&t.fields[0].tag===0?t.fields[0].fields[0]!=null?(n=1,i=e.fields[0].fields[0],o=t.fields[0].fields[0][0],s=t.fields[0].fields[0][1]):(n=0,r=e.fields[0].fields[0]):n=2}switch(n){case 0:return[new xt(0,[new Tt(1,[[r,new cn(0,[void 0])]])]),Z()];case 1:return J(i,o)?[new xt(0,[new Tt(1,[[o,s]])]),Z()]:[new xt(0,[new Tt(1,[[i,new cn(0,[void 0])]])]),Z()];case 2:return[t,Z()];case 3:return[new xt(0,[new Tt(3,[[l,a,void 0]])]),Z()];case 4:return[new xt(0,[new Tt(2,[[d,u,c,p.tag===1&&p.fields[0].tag===1&&J(c,p.fields[0].fields[1])?p.fields[0].fields[2]:void 0]])]),Z()];case 5:return[t,Z()];case 6:return[new xt(0,[new Tt(3,[[h,m,[g,w]]])]),Z()];case 7:return[t,Z()];case 8:return[new xt(1,[[x,S,E,$]]),Z()];case 9:return[t,Z()];case 10:return[new xt(0,[new Tt(1,[[H,new cn(1,[new Sr(0,[P])])]])]),Z()];case 11:return[new xt(0,[new Tt(2,[[_,R,y,A]])]),Z()];case 12:return[t,Z()];case 13:return[new xt(0,[new Tt(1,[[N,new cn(1,[new Sr(1,[k,I,G])])]])]),Z()];case 14:return[t,Z()];case 15:return[new xt(0,[new Tt(0,[[q,new cn(1,[new Sr(0,[le])])]])]),Z()];case 16:return[new xt(0,[new Tt(0,[[F,V.tag===1?V.fields[0].tag===1?J(B,V.fields[0].fields[0])&&J(U,V.fields[0].fields[1])?V:new cn(1,[new Sr(1,[B,U,void 0])]):new cn(1,[new Sr(1,[B,U,void 0])]):new cn(1,[new Sr(1,[B,U,void 0])])]])]),Z()];case 17:return[new xt(0,[new Tt(0,[[se,new cn(0,[Y])]])]),Z()];default:return[t,Z()]}}function b3(e,t,n,r,i,o,s){return f("div",{})}class dt extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Completed","Active","Disabled"]}}class co extends Me{constructor(t,n,r,i){super(),this.UploadingCsv=t,this.MappingColumns=n,this.MappingEmploymentBasis=r,this.Reviewing=i}}function _3(e){switch(e.tag){case 1:return new co(new dt(0,[]),new dt(1,[]),new dt(2,[]),new dt(2,[]));case 2:return new co(new dt(0,[]),new dt(0,[]),new dt(1,[]),new dt(2,[]));case 3:return new co(new dt(0,[]),new dt(0,[]),new dt(0,[]),new dt(1,[]));default:return new co(new dt(1,[]),new dt(2,[]),new dt(2,[]),new dt(2,[]))}}function x3(e,t,n){switch(n.tag){case 1:{const r=n.fields[0],i=r[1].tag===1?r[1].fields[0].tag===1?[bc(r[1].fields[0].fields[0],r[1].fields[0].fields[1]),r[0].HeaderRow,r[0].DataRows]:[bc(r[1].fields[0].fields[0],void 0),r[0].HeaderRow,r[0].DataRows]:[r[1].fields[0],r[0].HeaderRow,r[0].DataRows];return f(YC,{existingMappings:po(i[0]),headerRow:i[1],dataRows:i[2],next:o=>{let s;t(new qn(0,[(s=o,new lo(1,[s[0],s[1]]))]))},back:o=>{t(new qn(1,[new ea(2,[o])]))}})}case 2:{const r=$b(n.fields[0][0].DataRows,n.fields[0][2]);return f(i3,{existingMappings:po(n.fields[0][3]),employmentBasisColumn:r,next:i=>{t(new qn(0,[new lo(2,[i])]))},back:i=>{t(new qn(1,[new ea(1,[i])]))}})}case 3:return o3(n.fields[0][0].HeaderRow,n.fields[0][0].DataRows,n.fields[0][1],n.fields[0][2],r=>{t(new qn(0,[new lo(3,[r])]))},()=>{t(new qn(1,[new ea(0,[])]))});default:{const r=Ct(i=>i[0],n.fields[0]);return f(w3,{existingCsvFile:po(r),next:i=>{t(new qn(0,[new lo(0,[i])]))},cancel:e})}}}function fo(e,t){let n,r,i;switch(t.tag){case 1:return f("div",b(v([["className","text-sm font-medium border-b-2 border-primary-600 pt-1 pb-3 text-primary-600"],(n=[f("span",{children:e})],["children",C.Children.toArray(Array.from(n))])])));case 2:return f("div",b(v([["className","text-sm font-medium pt-1 pb-3 text-gray-500"],(r=[f("span",{children:e})],["children",C.Children.toArray(Array.from(r))])])));default:return f("div",b(v([["className","text-sm font-medium pt-1 pb-3 text-emerald-700 gap-2 inline-flex"],(i=[Hl(20,20),f("span",{children:e})],["children",C.Children.toArray(Array.from(i))])])))}}function C3(e){let t,n,r,i,o;const s=y3();o=ni(()=>ti(()=>s,v3,(c,p)=>{}),void 0,[]);const a=o[0],l=C.useState(!1);let u;if(a.tag===0){const c=a.fields[0],p=()=>{l[0]||l[1](!0)},m=_3(c),h=x3(p,o[1],c);u=f("div",b(v([["className","flex flex-col h-full"],(t=[f("div",b(v([["className","flex flex-row justify-between px-12 pt-8 pb-4"],(n=[f("span",{className:"font-sonoma text-gray-900 font-bold text-lg",children:"Import Users from CSV"}),f("button",b(v([(r="bg-white rounded-md text-red-700 shadow-sm text-sm border border-gray-300 font-medium px-3 py-2 w-[120px]",["className",r]),["onClick",g=>{p()}],["type","button"],["children",C.Children.toArray(["Cancel import"])]])))],["children",C.Children.toArray(Array.from(n))])]))),f("div",b(v([["className","flex flex-row items-center px-12 gap-2 border-b border-gray-200"],(i=[fo("1. Upload CSV",m.UploadingCsv),f("hr",{className:"w-16 pt-1.5"}),fo("2. Map fields",m.MappingColumns),f("hr",{className:"w-16 pt-1.5"}),fo("3. Map values",m.MappingEmploymentBasis),f("hr",{className:"w-16 pt-1.5"}),fo("4. Review",m.Reviewing)],["children",C.Children.toArray(Array.from(i))])]))),h],["children",C.Children.toArray(Array.from(t))])])))}else{const c=a.fields[0][0].DataRows;u=b3(a.fields[0][0].Name,a.fields[0][0].HeaderRow,c,a.fields[0][1],a.fields[0][2],a.fields[0][3])}const d=[f("style",{children:[Ka]}),u];return f(Le,{},...d)}function S3(){La(e=>f(C3,e),"apollo-import-workspace-wizard")}La(e=>f(Dp,e),"apollo-import-workspace-app");mb();S3();
|
|
51
|
+
If errors are detected during import, you can download a CSV file that lists all the rows with issues.`,["children",l])])))],["children",x.Children.toArray(Array.from(r))])])))]])))],["children",x.Children.toArray(Array.from(n))])])))]])]))}function p3(e,t){let n,r,i;return f("svg",b(v([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=v([f("path",b(v([(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"]]))),f("path",b(v([(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",x.Children.toArray(Array.from(n))])])))}function g3(e,t){let n,r;return f("svg",b(v([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=v([f("path",b(v([(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"]]))),f("path",{d:"M16.414 7L10 0.585999L3.586 7L5 8.414L9 4.414V15H11V4.414L15 8.414L16.414 7Z",fill:"#9CA3AF"})]),["children",x.Children.toArray(Array.from(n))])])))}function w3(e,t){Kd(wt.Delay(()=>wt.Bind(Gp(1e3),()=>(c3(n=>{t(new vo(0,[new hs(1,[n])]))},e),wt.Zero()))))}const na=(()=>{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 y3(e){let t,n,r,i,o,s,a,l;const u=e.cancel,d=e.next,c=e.existingCsvFile;let p;const m=d3(c);p=ei(()=>Jr(()=>m,f3,(y,A)=>{}),void 0,[]);const h=p[0],g=p[1],w=y=>{g(new vo(0,[new hs(0,[[new Xf(y.name),A=>{w3(y,A)}]])]))},C=x.useState(!1),S=C[1],E=x.useState(!1),$=E[1],P=x.useState(!1),H=P[1],R=x.useRef(void 0),_=h.tag===2;return f("div",b(v([["className","bg-gray-50 h-full"],(t=[f("div",b(v([["className","max-w-[640px] flex flex-col mx-12 mt-8 mb-12"],(n=[h3(na,C[0],()=>{S(!1)}),m3(P[0],()=>{H(!1)}),f("span",{className:"font-sonoma text-black font-semibold text-lg",children:"Upload CSV"}),f("span",{className:"text-sm font-normal pt-2",children:"Download and use our template, or upload your own CSV to get started."}),f("a",b(v([["className","flex flex-row items-end gap-1"],["href",na],["download","import_users"],(r=[f("span",{className:"text-sm font-medium text-primary-600 pt-2",children:"Download sample CSV template"}),Nm(16,16)],["children",x.Children.toArray(Array.from(r))])]))),f("div",b(v([["className","flex flex-row pt-3 gap-2"],(i=[f("button",{className:"rounded-2xl text-xs font-medium text-gray-600 border px-3.5 py-1.5 bg-white",onClick:y=>{S(!0)},type:"button",children:x.Children.toArray(["What kind of data do I need?"])}),f("button",{className:"rounded-2xl text-xs font-medium text-gray-600 border px-3.5 py-1.5 bg-white",onClick:y=>{H(!0)},type:"button",children:x.Children.toArray(["Frequently asked questions"])})],["children",x.Children.toArray(Array.from(i))])]))),f("div",b(he(O(()=>te(E[0]?M(["className","h-75 border-gray-300 border-dashed border-2 rounded-md my-6 bg-blue-50 border-blue-300"]):M(["className","h-75 border-gray-300 border-dashed border-2 rounded-md my-6 hover:bg-gray-100"]),O(()=>{let y;return M((y=he(O(()=>{let A,k,N,I,G,le,q,B,F,U,V,se,Y;switch(h.tag){case 2:{let D;const K=h.fields[0].SizeInBytes/1024/1024;return D=K<.01?.01:K,M(f("div",b(v([["className","p-6 justify-between items-center inline-flex w-full"],(A=[f("div",b(v([["className","justify-start items-start gap-2 flex"],(k=[f("div",{className:"text-center text-gray-600 text-sm font-medium",children:h.fields[0].Name.fields[0]}),f("span",b(v([["className","text-emerald-700"],(N=[Hl(20,20)],["children",x.Children.toArray(Array.from(N))])])))],["children",x.Children.toArray(Array.from(k))])]))),f("div",b(v([["className","justify-start items-start gap-2 flex"],(I=[f("div",{className:"text-center text-gray-500 text-sm font-medium",children:`${D}MB`}),f("button",b(v([["className","justify-start items-center gap-1 flex text-red-600"],["onClick",oe=>{g(new vo(2,[]))}],(G=[f("div",{className:"text-center text-sm font-medium",children:"Remove"}),f("div",b(v([["className","w-4 h-4 justify-center items-center flex"],(le=[va(10,10)],["children",x.Children.toArray(Array.from(le))])])))],["children",x.Children.toArray(Array.from(G))])])))],["children",x.Children.toArray(Array.from(I))])])))],["children",x.Children.toArray(Array.from(A))])]))))}case 1:return M(f("div",b(v([["className","p-6 justify-between items-center inline-flex w-full"],(q=[f("div",b(v([["className","justify-start items-start gap-2 flex"],(B=[f("div",{className:"text-center text-gray-600 text-sm font-medium",children:h.fields[0].fields[0]}),f("span",b(v([["className","animate-spin"],(F=[p3(20,20)],["children",x.Children.toArray(Array.from(F))])])))],["children",x.Children.toArray(Array.from(B))])]))),f("div",b(v([["className","justify-start items-start gap-2 flex"],(U=[f("button",b(v([["className","justify-start items-center gap-1 flex text-red-600"],["onClick",D=>{g(new vo(1,[]))}],(V=[f("div",{className:"text-center text-sm font-medium",children:"Cancel"}),f("div",b(v([["className","w-4 h-4 justify-center items-center flex"],(se=[va(10,10)],["children",x.Children.toArray(Array.from(se))])])))],["children",x.Children.toArray(Array.from(V))])])))],["children",x.Children.toArray(Array.from(U))])])))],["children",x.Children.toArray(Array.from(q))])]))));default:{const D=K=>{K.preventDefault(),K.stopPropagation()};return M(f("div",b(v([["className","flex flex-col items-center p-4"],["onDragEnter",K=>{D(K),$(!0)}],["onDragLeave",K=>{D(K),$(!1)}],["onDragOver",K=>{D(K),$(!0)}],["onDrop",K=>{let oe;D(K),$(!1),w((oe=K,oe.dataTransfer).files.item(0))}],(Y=he(O(()=>{let K,oe,De,Pe,ee,ye;return te((K=h.fields[0],K==null?M(Se()):(oe=K,M(f("div",b(v([["className","h-9 p-2 bg-red-50 rounded-md justify-start items-start gap-2 inline-flex w-full"],(De=[f("div",b(v([["className","w-5 h-5 px-0.5 pt-0.5 pb-[3px] justify-center items-center flex"],(Pe=[wm(16,15)],["children",x.Children.toArray(Array.from(Pe))])]))),f("div",b(v([["className","grow shrink basis-0 flex-col justify-start items-start gap-2 inline-flex"],(ee=[f("div",b(v([["className","self-stretch text-red-800 text-sm font-normal"],(ye=he(O(()=>{let me;const de=ae=>f("span",{className:"font-medium",children:ae}),j=ae=>f("span",{children:[ae]}),fe=f("a",{className:"underline",children:"sample CSV",href:na,download:"import_users"});return M((me=oe.tag===1?v([de("File is too large (over 10MB). "),j("Upload a "),de("smaller file"),j(".")]):oe.tag===2?v([de("File is empty. "),j("Ensure your file contains data before uploading.")]):oe.tag===3?v([de("Too many rows (5000+). "),j("Upload a "),de("file with fewer rows"),j(".")]):oe.tag===4?v([de("Invalid CSV: Missing header field(s). "),j("Try using our "),fe,j(".")]):oe.tag===5?v([de("Invalid CSV: Duplicate header fields. "),j("Try using our "),fe,j(".")]):oe.tag===6?v([de("Invalid CSV: Rows have different lengths. "),j("Check for missing or extra columns.")]):oe.tag===7?v([de("Invalid CSV format. "),j("Try using our "),fe,j(".")]):v([de("Unsupported file type. "),j("Upload a "),de(".csv file"),j(".")]),f("p",{children:x.Children.toArray(Array.from(me))})))})),["children",x.Children.toArray(Array.from(ye))])])))],["children",x.Children.toArray(Array.from(ee))])])))],["children",x.Children.toArray(Array.from(De))])])))))),O(()=>{let me;return te(M(f("div",b(v([["className","pt-2"],(me=[g3(20,21)],["children",x.Children.toArray(Array.from(me))])])))),O(()=>te(M(f("input",{type:"file",onChange:de=>{const j=de.target.files;j!=null&&j.length>0&&w(j.item(0))},className:"hidden",ref:R})),O(()=>te(M(f("span",{className:"text-gray-600 text-sm font-medium mt-3",children:"Drag and drop CSV file here"})),O(()=>te(M(f("button",{className:"rounded text-sm w-[120px] border px-3 py-2 mt-4 font-medium text-gray-700 bg-white",onClick:de=>{pr(j=>{j.click()},ns(R.current))},type:"button",children:x.Children.toArray(["Choose file"])})),O(()=>M(f("span",{className:"text-gray-500 text-xs font-normal mt-2 font-normal pb-2",children:"Maximum size: 10 MB"}))))))))))}))})),["children",x.Children.toArray(Array.from(Y))])]))))}}})),["children",x.Children.toArray(Array.from(y))]))})))))),f("div",b(v([["className","flex flex-row justify-end gap-3"],(o=[f("button",b(v([(s="bg-white rounded-md text-red-700 shadow-sm text-sm border border-gray-300 font-medium px-3 py-2 w-[120px]",["className",s]),["onClick",y=>{u()}],["type","button"],["children",x.Children.toArray(["Cancel import"])]]))),f("button",b(v([(a="inline-flex justify-center items-center gap-x-1 rounded-md text-white bg-primary-600 text-sm w-[120px] border font-medium px-3 py-2 disabled:opacity-50",["className",a]),["onClick",y=>{h.tag===2&&d(h.fields[0])}],["type","button"],["disabled",!_],(l=["Map fields",Vl(13,8)],["children",x.Children.toArray(Array.from(l))])])))],["children",x.Children.toArray(Array.from(o))])])))],["children",x.Children.toArray(Array.from(n))])])))],["children",x.Children.toArray(Array.from(t))])])))}class Tt extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UploadingCsv","MappingColumns","MappingEmploymentBasis","Reviewing"]}}class xt extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Configuring","Importing"]}}function v3(){return[new xt(0,[new Tt(0,[void 0])]),Z()]}function b3(e,t){let n,r,i,o,s,a,l,u,d,c,p,m,h,g,w,C,S,E,$,P,H,R,_,y,A,k,N,I,G,le,q,B,F,U,V,se,Y;if(e.tag===1)switch(e.fields[0].tag){case 1:{t.tag===0&&t.fields[0].tag===2?(n=13,k=t.fields[0].fields[0][1],N=t.fields[0].fields[0][0],I=t.fields[0].fields[0][2],G=e.fields[0].fields[0]):n=14;break}case 2:{e.fields[0].fields[0].tag===0?t.tag===0&&t.fields[0].tag===1?(n=17,se=t.fields[0].fields[0][0],Y=e.fields[0].fields[0].fields[0]):n=18:e.fields[0].fields[0].fields[1]!=null?t.tag===0&&t.fields[0].tag===1?(n=16,B=e.fields[0].fields[0].fields[0],F=t.fields[0].fields[0][0],U=e.fields[0].fields[0].fields[1],V=t.fields[0].fields[0][1]):n=18:t.tag===0&&t.fields[0].tag===1?(n=15,le=e.fields[0].fields[0].fields[0],q=t.fields[0].fields[0][0]):n=18;break}default:t.tag===0&&t.fields[0].tag===3?t.fields[0].fields[0][2]!=null?(n=11,R=t.fields[0].fields[0][1],_=t.fields[0].fields[0][0],y=t.fields[0].fields[0][2][0],A=t.fields[0].fields[0][2][1]):(n=10,P=t.fields[0].fields[0][1],H=t.fields[0].fields[0][0]):n=12}else switch(e.fields[0].tag){case 1:{e.fields[0].fields[1]!=null?t.tag===0&&t.fields[0].tag===1?(n=4,u=e.fields[0].fields[0],d=t.fields[0].fields[0][0],c=e.fields[0].fields[1],p=t.fields[0].fields[0][1]):n=5:t.tag===0&&t.fields[0].tag===1?(n=3,a=e.fields[0].fields[0],l=t.fields[0].fields[0][0]):n=5;break}case 2:{t.tag===0&&t.fields[0].tag===2?(n=6,m=t.fields[0].fields[0][1],h=t.fields[0].fields[0][0],g=t.fields[0].fields[0][2],w=e.fields[0].fields[0]):n=7;break}case 3:{t.tag===0&&t.fields[0].tag===3?(n=8,C=t.fields[0].fields[0][1],S=t.fields[0].fields[0][0],E=t.fields[0].fields[0][2],$=e.fields[0].fields[0]):n=9;break}default:t.tag===0&&t.fields[0].tag===0?t.fields[0].fields[0]!=null?(n=1,i=e.fields[0].fields[0],o=t.fields[0].fields[0][0],s=t.fields[0].fields[0][1]):(n=0,r=e.fields[0].fields[0]):n=2}switch(n){case 0:return[new xt(0,[new Tt(1,[[r,new cn(0,[void 0])]])]),Z()];case 1:return J(i,o)?[new xt(0,[new Tt(1,[[o,s]])]),Z()]:[new xt(0,[new Tt(1,[[i,new cn(0,[void 0])]])]),Z()];case 2:return[t,Z()];case 3:return[new xt(0,[new Tt(3,[[l,a,void 0]])]),Z()];case 4:return[new xt(0,[new Tt(2,[[d,u,c,p.tag===1&&p.fields[0].tag===1&&J(c,p.fields[0].fields[1])?p.fields[0].fields[2]:void 0]])]),Z()];case 5:return[t,Z()];case 6:return[new xt(0,[new Tt(3,[[h,m,[g,w]]])]),Z()];case 7:return[t,Z()];case 8:return[new xt(1,[[S,C,E,$]]),Z()];case 9:return[t,Z()];case 10:return[new xt(0,[new Tt(1,[[H,new cn(1,[new xr(0,[P])])]])]),Z()];case 11:return[new xt(0,[new Tt(2,[[_,R,y,A]])]),Z()];case 12:return[t,Z()];case 13:return[new xt(0,[new Tt(1,[[N,new cn(1,[new xr(1,[k,I,G])])]])]),Z()];case 14:return[t,Z()];case 15:return[new xt(0,[new Tt(0,[[q,new cn(1,[new xr(0,[le])])]])]),Z()];case 16:return[new xt(0,[new Tt(0,[[F,V.tag===1?V.fields[0].tag===1?J(B,V.fields[0].fields[0])&&J(U,V.fields[0].fields[1])?V:new cn(1,[new xr(1,[B,U,void 0])]):new cn(1,[new xr(1,[B,U,void 0])]):new cn(1,[new xr(1,[B,U,void 0])])]])]),Z()];case 17:return[new xt(0,[new Tt(0,[[se,new cn(0,[Y])]])]),Z()];default:return[t,Z()]}}function _3(e,t,n,r,i,o,s){return f("div",{})}class dt extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Completed","Active","Disabled"]}}class lo extends Me{constructor(t,n,r,i){super(),this.UploadingCsv=t,this.MappingColumns=n,this.MappingEmploymentBasis=r,this.Reviewing=i}}function x3(e){switch(e.tag){case 1:return new lo(new dt(0,[]),new dt(1,[]),new dt(2,[]),new dt(2,[]));case 2:return new lo(new dt(0,[]),new dt(0,[]),new dt(1,[]),new dt(2,[]));case 3:return new lo(new dt(0,[]),new dt(0,[]),new dt(0,[]),new dt(1,[]));default:return new lo(new dt(1,[]),new dt(2,[]),new dt(2,[]),new dt(2,[]))}}function C3(e,t,n){switch(n.tag){case 1:{const r=n.fields[0],i=r[1].tag===1?r[1].fields[0].tag===1?[bc(r[1].fields[0].fields[0],r[1].fields[0].fields[1]),r[0].HeaderRow,r[0].DataRows]:[bc(r[1].fields[0].fields[0],void 0),r[0].HeaderRow,r[0].DataRows]:[r[1].fields[0],r[0].HeaderRow,r[0].DataRows];return f(YC,{existingMappings:ho(i[0]),headerRow:i[1],dataRows:i[2],next:o=>{let s;t(new qn(0,[(s=o,new so(1,[s[0],s[1]]))]))},back:o=>{t(new qn(1,[new ta(2,[o])]))}})}case 2:{const r=$b(n.fields[0][0].DataRows,n.fields[0][2]);return f(i3,{existingMappings:ho(n.fields[0][3]),employmentBasisColumn:r,next:i=>{t(new qn(0,[new so(2,[i])]))},back:i=>{t(new qn(1,[new ta(1,[i])]))}})}case 3:return o3(n.fields[0][0].HeaderRow,n.fields[0][0].DataRows,n.fields[0][1],n.fields[0][2],r=>{t(new qn(0,[new so(3,[r])]))},()=>{t(new qn(1,[new ta(0,[])]))});default:{const r=Ct(i=>i[0],n.fields[0]);return f(y3,{existingCsvFile:ho(r),next:i=>{t(new qn(0,[new so(0,[i])]))},cancel:e})}}}function uo(e,t){let n,r,i;switch(t.tag){case 1:return f("div",b(v([["className","text-sm font-medium border-b-2 border-primary-600 pt-1 pb-3 text-primary-600"],(n=[f("span",{children:e})],["children",x.Children.toArray(Array.from(n))])])));case 2:return f("div",b(v([["className","text-sm font-medium pt-1 pb-3 text-gray-500"],(r=[f("span",{children:e})],["children",x.Children.toArray(Array.from(r))])])));default:return f("div",b(v([["className","text-sm font-medium pt-1 pb-3 text-emerald-700 gap-2 inline-flex"],(i=[Hl(20,20),f("span",{children:e})],["children",x.Children.toArray(Array.from(i))])])))}}function S3(e){let t,n,r,i,o;const s=v3();o=ei(()=>Jr(()=>s,b3,(c,p)=>{}),void 0,[]);const a=o[0],l=x.useState(!1);let u;if(a.tag===0){const c=a.fields[0],p=()=>{l[0]||l[1](!0)},m=x3(c),h=C3(p,o[1],c);u=f("div",b(v([["className","flex flex-col h-full"],(t=[f("div",b(v([["className","flex flex-row justify-between px-12 pt-8 pb-4"],(n=[f("span",{className:"font-sonoma text-gray-900 font-bold text-lg",children:"Import Users from CSV"}),f("button",b(v([(r="bg-white rounded-md text-red-700 shadow-sm text-sm border border-gray-300 font-medium px-3 py-2 w-[120px]",["className",r]),["onClick",g=>{p()}],["type","button"],["children",x.Children.toArray(["Cancel import"])]])))],["children",x.Children.toArray(Array.from(n))])]))),f("div",b(v([["className","flex flex-row items-center px-12 gap-2 border-b border-gray-200"],(i=[uo("1. Upload CSV",m.UploadingCsv),f("hr",{className:"w-16 pt-1.5"}),uo("2. Map fields",m.MappingColumns),f("hr",{className:"w-16 pt-1.5"}),uo("3. Map values",m.MappingEmploymentBasis),f("hr",{className:"w-16 pt-1.5"}),uo("4. Review",m.Reviewing)],["children",x.Children.toArray(Array.from(i))])]))),h],["children",x.Children.toArray(Array.from(t))])])))}else{const c=a.fields[0][0].DataRows;u=_3(a.fields[0][0].Name,a.fields[0][0].HeaderRow,c,a.fields[0][1],a.fields[0][2],a.fields[0][3])}const d=[f("style",{children:[Xa]}),u];return f(Le,{},...d)}function E3(){Ha(e=>f(S3,e),"apollo-import-workspace-wizard")}Ha(e=>f(Dp,e),"apollo-import-workspace-app");mb();E3();
|