@flarehr/apollo-import-workspace-app 0.1.384 → 0.1.387

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 En,N,Gs,vt,bi,Bs,Qr,Eo,eo,to,zs,xn={},Ws=[],pu=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,wr=Array.isArray;function Xe(e,t){for(var n in t)e[n]=t[n];return e}function qs(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function p(e,t,n){var r,o,i,s={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?En.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)s[i]===void 0&&(s[i]=e.defaultProps[i]);return _n(e,s,r,o,null)}function _n(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++Gs,__i:-1,__u:0};return o==null&&N.vnode!=null&&N.vnode(i),i}function ko(){return{current:null}}function G(e){return e.children}function Ve(e,t){this.props=e,this.context=t}function Kt(e,t){if(t==null)return e.__?Kt(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"?Kt(e):null}function Zs(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 Zs(e)}}function no(e){(!e.__d&&(e.__d=!0)&&vt.push(e)&&!er.__r++||bi!==N.debounceRendering)&&((bi=N.debounceRendering)||Bs)(er)}function er(){var e,t,n,r,o,i,s,a;for(vt.sort(Qr);e=vt.shift();)e.__d&&(t=vt.length,r=void 0,i=(o=(n=e).__v).__e,s=[],a=[],n.__P&&((r=Xe({},o)).__v=o.__v+1,N.vnode&&N.vnode(r),To(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[i]:null,s,i??Kt(o),!!(32&o.__u),a),r.__v=o.__v,r.__.__k[r.__i]=r,Js(s,r,a),r.__e!=i&&Zs(r)),vt.length>t&&vt.sort(Qr));er.__r=0}function Ys(e,t,n,r,o,i,s,a,l,u,f){var c,h,d,m,w,g=r&&r.__k||Ws,y=t.length;for(n.__d=l,hu(n,t,g),l=n.__d,c=0;c<y;c++)(d=n.__k[c])!=null&&(h=d.__i===-1?xn:g[d.__i]||xn,d.__i=c,To(e,d,h,o,i,s,a,l,u,f),m=d.__e,d.ref&&h.ref!=d.ref&&(h.ref&&$o(h.ref,null,d),f.push(d.ref,d.__c||m,d)),w==null&&m!=null&&(w=m),65536&d.__u||h.__k===d.__k?l=Ks(d,l,e):typeof d.type=="function"&&d.__d!==void 0?l=d.__d:m&&(l=m.nextSibling),d.__d=void 0,d.__u&=-196609);n.__d=l,n.__e=w}function hu(e,t,n){var r,o,i,s,a,l=t.length,u=n.length,f=u,c=0;for(e.__k=[],r=0;r<l;r++)(o=t[r])!=null&&typeof o!="boolean"&&typeof o!="function"?(s=r+c,(o=e.__k[r]=typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?_n(null,o,null,null,null):wr(o)?_n(G,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?_n(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,i=null,(a=o.__i=mu(o,n,s,f))!==-1&&(f--,(i=n[a])&&(i.__u|=131072)),i==null||i.__v===null?(a==-1&&c--,typeof o.type!="function"&&(o.__u|=65536)):a!==s&&(a==s-1?c--:a==s+1?c++:(a>s?c--:c++,o.__u|=65536))):o=e.__k[r]=null;if(f)for(r=0;r<u;r++)(i=n[r])!=null&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=Kt(i)),Xs(i,i))}function Ks(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=Ks(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Kt(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function et(e,t){return t=t||[],e==null||typeof e=="boolean"||(wr(e)?e.some(function(n){et(n,t)}):t.push(e)),t}function mu(e,t,n,r){var o=e.key,i=e.type,s=n-1,a=n+1,l=t[n];if(l===null||l&&o==l.key&&i===l.type&&!(131072&l.__u))return n;if((typeof i!="function"||i===G||o)&&r>(l!=null&&!(131072&l.__u)?1:0))for(;s>=0||a<t.length;){if(s>=0){if((l=t[s])&&!(131072&l.__u)&&o==l.key&&i===l.type)return s;s--}if(a<t.length){if((l=t[a])&&!(131072&l.__u)&&o==l.key&&i===l.type)return a;a++}}return-1}function vi(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||pu.test(t)?n:n+"px"}function jn(e,t,n,r,o){var i;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||vi(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||vi(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")i=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+i]=n,n?r?n.u=r.u:(n.u=Eo,e.addEventListener(t,i?to:eo,i)):e.removeEventListener(t,i?to:eo,i);else{if(o=="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 xi(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Eo++;else if(t.t<n.u)return;return N.event&&(t=N.event(t)),"handleEvent"in n?n.handleEvent(t):n(t)}}}function To(e,t,n,r,o,i,s,a,l,u){var f,c,h,d,m,w,g,y,b,E,I,V,J,ae,Be,lt,z=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),i=[a=t.__e=n.__e]),(f=N.__b)&&f(t);e:if(typeof z=="function")try{if(y=t.props,b="prototype"in z&&z.prototype.render,E=(f=z.contextType)&&r[f.__c],I=f?E?E.props.value:f.__:r,n.__c?g=(c=t.__c=n.__c).__=c.__E:(b?t.__c=c=new z(y,I):(t.__c=c=new Ve(y,I),c.constructor=z,c.render=wu),E&&E.sub(c),c.props=y,c.state||(c.state={}),c.context=I,c.__n=r,h=c.__d=!0,c.__h=[],c._sb=[]),b&&c.__s==null&&(c.__s=c.state),b&&z.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=Xe({},c.__s)),Xe(c.__s,z.getDerivedStateFromProps(y,c.__s))),d=c.props,m=c.state,c.__v=t,h)b&&z.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),b&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(b&&z.getDerivedStateFromProps==null&&y!==d&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(y,I),!c.__e&&(c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(y,c.__s,I)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(c.props=y,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(ke){ke&&(ke.__=t)}),V=0;V<c._sb.length;V++)c.__h.push(c._sb[V]);c._sb=[],c.__h.length&&s.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(y,c.__s,I),b&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(d,m,w)})}if(c.context=I,c.props=y,c.__P=e,c.__e=!1,J=N.__r,ae=0,b){for(c.state=c.__s,c.__d=!1,J&&J(t),f=c.render(c.props,c.state,c.context),Be=0;Be<c._sb.length;Be++)c.__h.push(c._sb[Be]);c._sb=[]}else do c.__d=!1,J&&J(t),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++ae<25);c.state=c.__s,c.getChildContext!=null&&(r=Xe(Xe({},r),c.getChildContext())),b&&!h&&c.getSnapshotBeforeUpdate!=null&&(w=c.getSnapshotBeforeUpdate(d,m)),Ys(e,wr(lt=f!=null&&f.type===G&&f.key==null?f.props.children:f)?lt:[lt],t,n,r,o,i,s,a,l,u),c.base=t.__e,t.__u&=-161,c.__h.length&&s.push(c),g&&(c.__E=c.__=null)}catch(ke){if(t.__v=null,l||i!=null){for(t.__u|=l?160:128;a&&a.nodeType===8&&a.nextSibling;)a=a.nextSibling;i[i.indexOf(a)]=null,t.__e=a}else t.__e=n.__e,t.__k=n.__k;N.__e(ke,t,n)}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=gu(n.__e,t,n,r,o,i,s,l,u);(f=N.diffed)&&f(t)}function Js(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)$o(n[r],n[++r],n[++r]);N.__c&&N.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){N.__e(i,o.__v)}})}function gu(e,t,n,r,o,i,s,a,l){var u,f,c,h,d,m,w,g=n.props,y=t.props,b=t.type;if(b==="svg"?o="http://www.w3.org/2000/svg":b==="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(u=0;u<i.length;u++)if((d=i[u])&&"setAttribute"in d==!!b&&(b?d.localName===b:d.nodeType===3)){e=d,i[u]=null;break}}if(e==null){if(b===null)return document.createTextNode(y);e=document.createElementNS(o,b,y.is&&y),a&&(N.__m&&N.__m(t,i),a=!1),i=null}if(b===null)g===y||a&&e.data===y||(e.data=y);else{if(i=i&&En.call(e.childNodes),g=n.props||xn,!a&&i!=null)for(g={},u=0;u<e.attributes.length;u++)g[(d=e.attributes[u]).name]=d.value;for(u in g)if(d=g[u],u!="children"){if(u=="dangerouslySetInnerHTML")c=d;else if(!(u in y)){if(u=="value"&&"defaultValue"in y||u=="checked"&&"defaultChecked"in y)continue;jn(e,u,null,d,o)}}for(u in y)d=y[u],u=="children"?h=d:u=="dangerouslySetInnerHTML"?f=d:u=="value"?m=d:u=="checked"?w=d:a&&typeof d!="function"||g[u]===d||jn(e,u,d,g[u],o);if(f)a||c&&(f.__html===c.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(c&&(e.innerHTML=""),Ys(e,wr(h)?h:[h],t,n,r,b==="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,s,i?i[0]:n.__k&&Kt(n,0),a,l),i!=null)for(u=i.length;u--;)qs(i[u]);a||(u="value",b==="progress"&&m==null?e.removeAttribute("value"):m!==void 0&&(m!==e[u]||b==="progress"&&!m||b==="option"&&m!==g[u])&&jn(e,u,m,g[u],o),u="checked",w!==void 0&&w!==e[u]&&jn(e,u,w,g[u],o))}return e}function $o(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(o){N.__e(o,n)}}function Xs(e,t,n){var r,o;if(N.unmount&&N.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||$o(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){N.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Xs(r[o],t,n||typeof e.type!="function");n||qs(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function wu(e,t,n){return this.constructor(e,n)}function pt(e,t,n){var r,o,i,s;N.__&&N.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],s=[],To(t,e=(!r&&n||t).__k=p(G,null,[e]),o||xn,xn,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?En.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,s),Js(i,e,s)}function Ao(e,t){pt(e,t,Ao)}function Io(e,t,n){var r,o,i,s,a=Xe({},e.props);for(i in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i]===void 0&&s!==void 0?s[i]:t[i];return arguments.length>2&&(a.children=arguments.length>3?En.call(arguments,2):n),_n(e.type,a,r||e.key,o||e.ref,null)}function Ee(e,t){var n={__c:t="__cC"+zs++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,i;return this.getChildContext||(o=new Set,(i={})[t]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){o=null},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&o.forEach(function(a){a.__e=!0,no(a)})},this.sub=function(s){o.add(s);var a=s.componentWillUnmount;s.componentWillUnmount=function(){o&&o.delete(s),a&&a.call(s)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}En=Ws.slice,N={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(a){e=a}throw e}},Gs=0,Ve.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Xe({},this.state),typeof e=="function"&&(e=e(Xe({},n),this.props)),e&&Xe(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),no(this))},Ve.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),no(this))},Ve.prototype.render=G,vt=[],Bs=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Qr=function(e,t){return e.__v.__b-t.__v.__b},er.__r=0,Eo=0,eo=xi(!1),to=xi(!0),zs=0;function No(){return(No=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 _u=["context","children"];function yu(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var i,s,a={},l=Object.keys(r);for(s=0;s<l.length;s++)o.indexOf(i=l[s])>=0||(a[i]=r[i]);return a}(e,_u);return Io(t,n)}function bu(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=p(yu,No({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var o=[],i={},s=0,a=n.attributes,l=n.childNodes;for(s=a.length;s--;)a[s].name!=="slot"&&(i[a[s].name]=a[s].value,i[Qs(a[s].name)]=a[s].value);for(s=l.length;s--;){var u=t(l[s],null),f=l[s].slot;f?i[f]=p(Ci,{name:f},u):o[s]=u}var c=r?p(Ci,null,o):o;return p(r||n.nodeName.toLowerCase(),i,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Ao:pt)(this._vdom,this._root)}function Qs(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function vu(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[Qs(e)]=n,this._vdom=Io(this._vdom,r),pt(this._vdom,this._root)}}function xu(){pt(this._vdom=null,this._root)}function Ci(e,t){var n=this;return p("slot",No({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(o){o.stopPropagation(),o.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function Cu(e,t,n,r){function o(){var i=Reflect.construct(HTMLElement,[],o);return i._vdomComponent=e,i._root=i,i}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=bu,o.prototype.attributeChangedCallback=vu,o.prototype.disconnectedCallback=xu,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach(function(i){Object.defineProperty(o.prototype,i,{get:function(){return this._vdom.props[i]},set:function(s){this._vdom?this.attributeChangedCallback(i,null,s):(this._props||(this._props={}),this._props[i]=s,this.connectedCallback());var a=typeof s;s!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(i,s)}})}),customElements.define(t||e.tagName||e.displayName||e.name,o)}function Mo(e,t){Cu(e,t)}var nt,L,jr,Si,Jt=0,ea=[],q=N,Ei=q.__b,ki=q.__r,Ti=q.diffed,$i=q.__c,Ai=q.unmount,Ii=q.__;function Nt(e,t){q.__h&&q.__h(L,e,Jt||t),Jt=0;var n=L.__H||(L.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function X(e){return Jt=1,kn(ta,e)}function kn(e,t,n){var r=Nt(nt++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):ta(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=L,!L.u)){var o=function(a,l,u){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(h){return!!h.__c});if(f.every(function(h){return!h.__N}))return!i||i.call(this,a,l,u);var c=r.__c.props!==a;return f.forEach(function(h){if(h.__N){var d=h.__[0];h.__=h.__N,h.__N=void 0,d!==h.__[0]&&(c=!0)}}),i&&i.call(this,a,l,u)||c};L.u=!0;var i=L.shouldComponentUpdate,s=L.componentWillUpdate;L.componentWillUpdate=function(a,l,u){if(this.__e){var f=i;i=void 0,o(a,l,u),i=f}s&&s.call(this,a,l,u)},L.shouldComponentUpdate=o}return r.__N||r.__}function Q(e,t){var n=Nt(nt++,3);!q.__s&&Do(n.__H,t)&&(n.__=e,n.i=t,L.__H.__h.push(n))}function Mt(e,t){var n=Nt(nt++,4);!q.__s&&Do(n.__H,t)&&(n.__=e,n.i=t,L.__h.push(n))}function D(e){return Jt=5,ie(function(){return{current:e}},[])}function Fo(e,t,n){Jt=6,Mt(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=Nt(nt++,7);return Do(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Le(e,t){return Jt=8,ie(function(){return e},t)}function me(e){var t=L.context[e.__c],n=Nt(nt++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(L)),t.props.value):e.__}function Po(e,t){q.useDebugValue&&q.useDebugValue(t?t(e):e)}function Su(e){var t=Nt(nt++,10),n=X();return t.__=e,L.componentDidCatch||(L.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function gt(){var e=Nt(nt++,11);if(!e.__){for(var t=L.__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 Eu(){for(var e;e=ea.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(qn),e.__H.__h.forEach(ro),e.__H.__h=[]}catch(t){e.__H.__h=[],q.__e(t,e.__v)}}q.__b=function(e){L=null,Ei&&Ei(e)},q.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Ii&&Ii(e,t)},q.__r=function(e){ki&&ki(e),nt=0;var t=(L=e.__c).__H;t&&(jr===L?(t.__h=[],L.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(qn),t.__h.forEach(ro),t.__h=[],nt=0)),jr=L},q.diffed=function(e){Ti&&Ti(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(ea.push(t)!==1&&Si===q.requestAnimationFrame||((Si=q.requestAnimationFrame)||ku)(Eu)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),jr=L=null},q.__c=function(e,t){t.some(function(n){try{n.__h.forEach(qn),n.__h=n.__h.filter(function(r){return!r.__||ro(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],q.__e(r,n.__v)}}),$i&&$i(e,t)},q.unmount=function(e){Ai&&Ai(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{qn(r)}catch(o){t=o}}),n.__H=void 0,t&&q.__e(t,n.__v))};var Ni=typeof requestAnimationFrame=="function";function ku(e){var t,n=function(){clearTimeout(r),Ni&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Ni&&(t=requestAnimationFrame(n))}function qn(e){var t=L,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),L=t}function ro(e){var t=L;e.__c=e.__(),L=t}function Do(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function ta(e,t){return typeof t=="function"?t(e):t}function oo(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 _r(e,t){var n=t(),r=X({t:{__:n,u:t}}),o=r[0].t,i=r[1];return Mt(function(){o.__=n,o.u=t,Ur(o)&&i({t:o})},[e,n,t]),Q(function(){return Ur(o)&&i({t:o}),e(function(){Ur(o)&&i({t:o})})},[e]),n}function Ur(e){var t,n,r=e.u,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}function Oo(e){e()}function Ro(e){return e}function Lo(){return[!1,Oo]}var Ho=Mt;function tr(e,t){this.props=e,this.context=t}function na(e,t){function n(o){var i=this.props.ref,s=i==o.ref;return!s&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!s:oo(this.props,o)}function r(o){return this.shouldComponentUpdate=n,p(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(tr.prototype=new Ve).isPureReactComponent=!0,tr.prototype.shouldComponentUpdate=function(e,t){return oo(this.props,e)||oo(this.state,t)};var Mi=N.__b;N.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Mi&&Mi(e)};var Tu=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Vo(e){function t(n){if(!("ref"in n))return e(n,null);var r=n.ref;delete n.ref;var o=e(n,r);return n.ref=r,o}return t.$$typeof=Tu,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Fi=function(e,t){return e==null?null:et(et(e).map(t))},ra={map:Fi,forEach:Fi,count:function(e){return e?et(e).length:0},only:function(e){var t=et(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:et},$u=N.__e;N.__e=function(e,t,n,r){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}$u(e,t,n,r)};var Pi=N.unmount;function oa(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,o){for(var i in o)r[i]=o[i];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 oa(r,t,n)})),e}function ia(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return ia(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 yn(){this.__u=0,this.o=null,this.__b=null}function sa(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function aa(e){var t,n,r;function o(i){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return p(n,i)}return o.displayName="Lazy",o.__f=!0,o}function Ut(){this.i=null,this.l=null}N.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Pi&&Pi(e)},(yn.prototype=new Ve).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=sa(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=ia(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)},yn.prototype.componentWillUnmount=function(){this.o=[]},yn.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]=oa(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&p(G,null,e.fallback);return o&&(o.__u&=-33),[p(G,null,t.__a?null:e.children),o]};var Di=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 Au(e){return this.getChildContext=function(){return e.context},e.children}function Iu(e){var t=this,n=e.h;t.componentWillUnmount=function(){pt(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,o){this.childNodes.push(r),t.h.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.h.removeChild(r)}}),pt(p(Au,{context:t.context},e.__v),t.v)}function jo(e,t){var n=p(Iu,{__v:e,h:t});return n.containerInfo=t,n}(Ut.prototype=new Ve).__a=function(e){var t=this,n=sa(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Di(t,e,r)):o()};n?n(i):i()}},Ut.prototype.render=function(e){this.i=null,this.l=new Map;var t=et(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},Ut.prototype.componentDidUpdate=Ut.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){Di(e,n,t)})};var la=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Nu=/^(?: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]/,Mu=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Fu=/[A-Z0-9]/g,Pu=typeof document<"u",Du=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function ua(e,t,n){return t.__k==null&&(t.textContent=""),pt(e,t),typeof n=="function"&&n(),e?e.__c:null}function ca(e,t,n){return Ao(e,t),typeof n=="function"&&n(),e?e.__c:null}Ve.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Ve.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Oi=N.event;function Ou(){}function Ru(){return this.cancelBubble}function Lu(){return this.defaultPrevented}N.event=function(e){return Oi&&(e=Oi(e)),e.persist=Ou,e.isPropagationStopped=Ru,e.isDefaultPrevented=Lu,e.nativeEvent=e};var Uo,Hu={enumerable:!1,configurable:!0,get:function(){return this.class}},Ri=N.vnode;N.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={},i=r.indexOf("-")===-1;for(var s in n){var a=n[s];if(!(s==="value"&&"defaultValue"in n&&a==null||Pu&&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"||Du(n.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":Mu.test(s)&&(s=l):l=s="oninput":i&&Nu.test(s)?s=s.replace(Fu,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&o[s=l]&&(s="oninputCapture"),o[s]=a}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=et(n.children).forEach(function(u){u.props.selected=o.value.indexOf(u.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=et(n.children).forEach(function(u){u.props.selected=o.multiple?o.defaultValue.indexOf(u.props.value)!=-1:o.defaultValue==u.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",Hu)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=la,Ri&&Ri(e)};var Li=N.__r;N.__r=function(e){Li&&Li(e),Uo=e.__c};var Hi=N.diffed;N.diffed=function(e){Hi&&Hi(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),Uo=null};var fa={ReactCurrentDispatcher:{current:{readContext:function(e){return Uo.__n[e.__c].props.value},useCallback:Le,useContext:me,useDebugValue:Po,useDeferredValue:Ro,useEffect:Q,useId:gt,useImperativeHandle:Fo,useInsertionEffect:Ho,useLayoutEffect:Mt,useMemo:ie,useReducer:kn,useRef:D,useState:X,useSyncExternalStore:_r,useTransition:Lo}}},Vu="18.3.1";function da(e){return p.bind(null,e)}function tn(e){return!!e&&e.$$typeof===la}function pa(e){return tn(e)&&e.type===G}function ha(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Go(e){return tn(e)?Io.apply(null,arguments):e}function ma(e){return!!e.__k&&(pt(null,e),!0)}function ga(e){return e&&(e.base||e.nodeType===1&&e)||null}var wa=function(e,t){return e(t)},_a=function(e,t){return e(t)},ya=G,ba=tn,$={useState:X,useId:gt,useReducer:kn,useEffect:Q,useLayoutEffect:Mt,useInsertionEffect:Ho,useTransition:Lo,useDeferredValue:Ro,useSyncExternalStore:_r,startTransition:Oo,useRef:D,useImperativeHandle:Fo,useMemo:ie,useCallback:Le,useContext:me,useDebugValue:Po,version:"18.3.1",Children:ra,render:ua,hydrate:ca,unmountComponentAtNode:ma,createPortal:jo,createElement:p,createContext:Ee,createFactory:da,cloneElement:Go,createRef:ko,Fragment:G,isValidElement:tn,isElement:ba,isFragment:pa,isMemo:ha,findDOMNode:ga,Component:Ve,PureComponent:tr,memo:na,forwardRef:Vo,flushSync:_a,unstable_batchedUpdates:wa,StrictMode:ya,Suspense:yn,SuspenseList:Ut,lazy:aa,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:fa};const io=Object.freeze(Object.defineProperty({__proto__:null,Children:ra,Component:Ve,Fragment:G,PureComponent:tr,StrictMode:ya,Suspense:yn,SuspenseList:Ut,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:fa,cloneElement:Go,createContext:Ee,createElement:p,createFactory:da,createPortal:jo,createRef:ko,default:$,findDOMNode:ga,flushSync:_a,forwardRef:Vo,hydrate:ca,isElement:ba,isFragment:pa,isMemo:ha,isValidElement:tn,lazy:aa,memo:na,render:ua,startTransition:Oo,unmountComponentAtNode:ma,unstable_batchedUpdates:wa,useCallback:Le,useContext:me,useDebugValue:Po,useDeferredValue:Ro,useEffect:Q,useErrorBoundary:Su,useId:gt,useImperativeHandle:Fo,useInsertionEffect:Ho,useLayoutEffect:Mt,useMemo:ie,useReducer:kn,useRef:D,useState:X,useSyncExternalStore:_r,useTransition:Lo,version:Vu},Symbol.toStringTag,{value:"Module"})),ju=`*,: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}.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}.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}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.mb-6{margin-bottom:1.5rem}.ml-3{margin-left:.75rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.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}.h-5{height:1.25rem}.h-\\[60px\\]{height:60px}.h-px{height:1px}.min-h-screen{min-height:100vh}.w-16{width:4rem}.w-5{width:1.25rem}.w-96{width:24rem}.w-\\[120px\\]{width:120px}.w-\\[480px\\]{width:480px}.w-\\[600px\\]{width:600px}.w-full{width:100%}.max-w-\\[640px\\]{max-width:640px}.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))}.cursor-pointer{cursor:pointer}.resize{resize:both}.list-disc{list-style-type:disc}.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}.justify-stretch{justify-content:stretch}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.self-stretch{align-self:stretch}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.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-dashed{border-style:dashed}.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-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-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-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.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-3{padding-left:.75rem;padding-right:.75rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.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}.pb-12{padding-bottom:3rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pl-3{padding-left:.75rem}.pr-3{padding-right:.75rem}.pt-1{padding-top:.25rem}.pt-1\\.5{padding-top:.375rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-6{padding-top:1.5rem}.pt-8{padding-top:2rem}.font-sonoma{font-family:BRSonoma}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.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-tight{line-height:1.25}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / 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-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-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-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}.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-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)}.outline{outline-style:solid}.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-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\\: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}`;function qe(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function Uu(e){return e!=null&&typeof e.GetEnumerator=="function"}function Gu(e){return e!=null&&typeof e.CompareTo=="function"}function Bu(e){return e!=null&&typeof e.Equals=="function"}function zu(e){return e!=null&&typeof e.GetHashCode=="function"}function so(e){return e!=null&&typeof e.Dispose=="function"}function Y(e){so(e)&&e.Dispose()}function rt(){return null}function nr(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 Wu{constructor(t){this.iter=t,this.current=rt()}"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 te(e){return Uu(e)?e.GetEnumerator():new Wu(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 j(e,t){return e.toString(10).padStart(t,"0")}function Vi(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function qu(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function We(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class ct{static id(t){return ct.idMap.has(t)||ct.idMap.set(t,++ct.count),ct.idMap.get(t)}}ct.idMap=new WeakMap;ct.count=0;function Bo(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function Ye(e){return e*2654435761|0}function Zu(e){return Bo(e.toString(32))}function Tn(e){let t=0;const n=e.length;for(let r=0;r<n;r++){const o=e[r];t=(t<<5)+t^o}return t}function Yu(e){return e.getTime()}function Ku(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=ot(e[r]);return Tn(n)}function ot(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Ye(e);case"bigint":return Zu(e);case"string":return Bo(e);default:{if(zu(e))return e.GetHashCode();if(qe(e))return Ku(e);if(e instanceof Date)return Yu(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>ot(r));return Tn(n)}else return Ye(ct.id(e))}}}function ao(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 va(e,t){return ao(e,t,je)}function Ju(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let o=0;o<n.length;o++)if(n[o]!==r[o]||!je(e[n[o]],t[r[o]]))return!1;return!0}function je(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:Bu(e)?e.Equals(t):qe(e)?qe(t)&&va(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&xa(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&Ju(e,t)}function xa(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+Vi(e),r=t.getTime()+Vi(t)),n===r?0:n<r?-1:1}function zo(e,t){return e===t?0:e<t?-1:1}function Xu(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,o=0;r<e.length;r++)if(o=n(e[r],t[r]),o!==0)return o;return 0}function Ca(e,t){return Xu(e,t,we)}function Qu(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 o=0,i=0;o<n.length;o++){const s=n[o];if(s!==r[o])return s<r[o]?-1:1;if(i=we(e[s],t[s]),i!==0)return i}return 0}function we(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:Gu(e)?e.CompareTo(t):qe(e)?qe(t)?Ca(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?xa(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?Qu(e,t):-1}function C(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function ec(e){qe(e)?e.splice(0):e.clear()}const br=new WeakMap;function K(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return br.set(t,e),t}function xt(e){return br.get(e)??(t=>n=>e(t,n))}function lo(e){if(e==null)return null;const t=(n,r,o)=>e(n)(r)(o);return br.set(t,e),t}function Gr(e){return br.get(e)??(t=>n=>r=>e(t,n,r))}function tc(e){let t=0,n="[";for(const r of e){if(t===0)n+=Ue(r);else if(t===100){n+="; ...";break}else n+="; "+Ue(r);t++}return n+"]"}function Ue(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 tc(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([o,i])=>o+" = "+Ue(i,t+1)).join(`
2
- `)+" }":(r==null?void 0:r.name)??""}}return String(e)}function nc(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=Ue(t[0]),r=n.indexOf(" ")>=0):n=t.map(o=>Ue(o)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class O{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return nc(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>ot(n));return t.splice(0,0,Ye(this.tag)),Tn(t)}Equals(t){return this===t?!0:nr(this,t)&&this.tag===t.tag?va(this.fields,t.fields):!1}CompareTo(t){return this===t?0:nr(this,t)?this.tag===t.tag?Ca(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function rc(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function oc(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+Ue(n)).join(`
3
- `)+" }"}function ic(e){const t=Object.values(e).map(n=>ot(n));return Tn(t)}function sc(e,t){if(e===t)return!0;if(nr(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!je(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function ac(e,t){if(e===t)return 0;if(nr(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=we(e[n[r]],t[n[r]]);if(o!==0)return o}return 0}else return-1}class B{toJSON(){return rc(this)}toString(){return oc(this)}GetHashCode(){return ic(this)}Equals(t){return sc(this,t)}CompareTo(t){return ac(this,t)}}class Ge{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 lc{constructor(t){this.message=t}}function uc(e){return e instanceof lc||e instanceof Error}function cc(e){return e instanceof Promise}function rr(e){return uc(e)||cc(e)?e:new Error(String(e))}const Wo=Ue(ju),nn=Symbol("numeric");function Sa(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[nn])}function fc(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function uo(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[nn]().multiply(t)}function Zn(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[nn]().toFixed(t)}function or(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[nn]().toPrecision(t)}function ir(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[nn]().toExponential(t)}function sr(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[nn]().toHex()}const dc=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],pc=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],hc=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],mc=["January","February","March","April","May","June","July","August","September","October","November","December"];function be(e,t,n){let r=0,o=t;for(;o<e.length&&e[o]===n;)o++,r++;return r}function ji(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function gc(e,t){let n=t;const r=e[t];let o="",i=!1;for(;t<e.length;){t++;const s=e[t];if(s===r){i=!0;break}else if(s==="\\")if(t<e.length)t++,o+=e[t];else throw new Error("Invalid string format");else o+=s}if(!i)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[o,t-n+1]}function qo(e,t,n){let r=0,o=0,i="";const s=n?$n(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(o=be(t,r,"d"),r+=o,o){case 1:i+=Gi(s);break;case 2:i+=j(Gi(s),2);break;case 3:i+=dc[Wi(s)];break;case 4:i+=pc[Wi(s)];break}break;case"f":if(o=be(t,r,"f"),r+=o,o<=3){const g=10**(3-o);i+=j(Math.floor(Gn(s)/g),o)}else o<=7&&(i+=(""+Gn(s)).padEnd(o,"0"));break;case"F":if(o=be(t,r,"F"),r+=o,o<=3){const g=10**(3-o),y=Math.floor(Gn(s)/g);y!=0&&(i+=j(y,o))}else if(o<=7){const g=Gn(s);g!=0&&(i+=j(g,3))}break;case"g":o=be(t,r,"g"),r+=o,o<=2&&(i+="A.D.");break;case"h":switch(o=be(t,r,"h"),r+=o,o){case 1:i+=Un(s)%12;break;case 2:i+=j(Un(s)%12,2);break}break;case"H":switch(o=be(t,r,"H"),r+=o,o){case 1:i+=Un(s);break;case 2:i+=j(Un(s),2);break}break;case"K":switch(o=be(t,r,"K"),r+=o,o){case 1:switch(Ui(s)){case 1:i+="Z";break;case 2:i+=Bt(s.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(o=be(t,r,"m"),r+=o,o){case 1:i+=Bi(s);break;case 2:i+=j(Bi(s),2);break}break;case"M":switch(o=be(t,r,"M"),r+=o,o){case 1:i+=Bn(s);break;case 2:i+=j(Bn(s),2);break;case 3:i+=hc[Bn(s)-1];break;case 4:i+=mc[Bn(s)-1];break}break;case"s":switch(o=be(t,r,"s"),r+=o,o){case 1:i+=zi(s);break;case 2:i+=j(zi(s),2);break}break;case"t":switch(o=be(t,r,"t"),r+=o,o){case 1:i+=s.getHours()<12?"A":"P";break;case 2:i+=s.getHours()<12?"AM":"PM";break}break;case"y":switch(o=be(t,r,"y"),r+=o,o){case 1:i+=s.getFullYear()%100;break;case 2:i+=j(s.getFullYear()%100,2);break;case 3:i+=j(s.getFullYear(),3);break;case 4:i+=j(s.getFullYear(),4);break;case 5:i+=j(s.getFullYear(),5);break}break;case"z":o=be(t,r,"z"),r+=o;let l="";switch(Ui(s)){case 1:l="+00:00";break;case 2:l=Bt(s.getTimezoneOffset()*-6e4);break;case 0:l=Bt(Ec(s).getTimezoneOffset()*-6e4);break}const u=l[0]==="-"?"-":"+",f=parseInt(l.substring(1,3),10),c=parseInt(l.substring(4,6),10);switch(o){case 1:i+=`${u}${f}`;break;case 2:i+=`${u}${j(f,2)}`;break;default:i+=`${u}${j(f,2)}:${j(c,2)}`;break}break;case":":i+=":",r++;break;case"/":i+="/",r++;break;case"'":case'"':const[h,d]=gc(t,r);i+=h,r+=d;break;case"%":const m=ji(t,r);if(m>=0&&m!==37)r+=2,i+=qo(s,String.fromCharCode(m),n);else throw new Error("Invalid format string");break;case"\\":const w=ji(t,r);if(w>=0)r+=2,i+=String.fromCharCode(w);else throw new Error("Invalid format string");break;default:r++,i+=a;break}}return i}function Ui(e){return e.kind||0}function Bt(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+j(n,2)+":"+j(r,2)}function ar(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 wc(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return j(e.getFullYear(),4)+"-"+j(e.getMonth()+1,2)+"-"+j(e.getDate(),2)+"T"+j(e.getHours(),2)+":"+j(e.getMinutes(),2)+":"+j(e.getSeconds(),2)+"."+j(e.getMilliseconds(),3)+(n?Bt(e.getTimezoneOffset()*-6e4):"")}}function _c(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+Bt(t)}function yc(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," ")+Bt(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return ar(n,"first");case"T":case"t":return ar(n,"second");case"O":case"o":return _c(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return qo(n,t,!0)}function bc(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?ar(e,"first"):e.toLocaleDateString();case"T":case"t":return n?ar(e,"second"):e.toLocaleTimeString();case"O":case"o":return wc(e,n);default:throw new Error("Unrecognized Date print format")}else return qo(e,t,n)}function vr(e,t,n){return e.offset!=null?yc(e,t):bc(e,t)}function $n(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function vc(){return $n(-621355968e5,1)}function Ea(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 o=/^\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(o!=null){let i,s=0;if(o[2]!=null){const a=o[2].split(":"),l=parseInt(a[0],10);s=l*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),o[3]!=null&&o[3].toUpperCase()==="PM"&&l<12&&(s+=720)}if(o[4]!=null){if(o[1]!=null)i=new Date(o[1]+" UTC");else{const a=new Date;i=new Date(a.getUTCFullYear()+"/"+(a.getUTCMonth()+1)+"/"+a.getUTCDate())}if(o[4]==="Z")r="Z";else{let a=parseInt(o[5],10)*60+parseInt(o[6]||"0",10);o[4][0]==="-"&&(a*=-1),r=a,s-=a*60}}else if(o[1]!=null)i=new Date(o[1]);else{const a=new Date;i=new Date(a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.getDate())}n=new Date(i.getTime()+s*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-i.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function xc(e,t=!1){const[n,r]=Ea(e),o=r!=null?t&&r==="Z"?1:2:0;return $n(n.getTime(),o)}function Cc(e,t){try{return t.contents=xc(e),!0}catch{return!1}}function Sc(e){return e.kind===1?e:$n(e.getTime(),1)}function Ec(e){return e.kind===2?e:$n(e.getTime(),2)}function Gi(e){return e.kind===1?e.getUTCDate():e.getDate()}function Un(e){return e.kind===1?e.getUTCHours():e.getHours()}function Gn(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function Bi(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function Bn(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function zi(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function Wi(e){return e.kind===1?e.getUTCDay():e.getDay()}function kc(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 ka(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function qi(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 o,i=-1;for(;(o=e.exec(t))!=null;)o.index===i?e.lastIndex++:(i=o.index,r.push(o));return r}function Tc(e,t,n,r,o=0){function i(){let s=arguments[0];if(r){r--;const a=[],l=arguments.length,u=typeof arguments[l-1]!="string";let f=u?l-3:l-2;for(let c=0;c<f;c++)a.push(arguments[c]);a.index=arguments[f++],a.input=arguments[f++],u&&(a.groups=arguments[f]),s=n(a)}return s}if(typeof e=="string"){const s=e;e=kc(t,r??0),t=s,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,o)+t.substring(o).replace(e,i);if(n=n.replace(/\$0/g,s=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let s;const a=t.substring(o),l=qi(e,a),u=qi.length>r?(s=l[r-1],a.substring(0,s.index+s[0].length)):a;return t.substring(0,o)+u.replace(e,n)+t.substring(o+u.length)}else return t.replace(e,n)}const hn=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,$c=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Ta(e,t){return fc(e,t)<0}function Xt(e){return{input:e,cont:Nc(e)}}function $a(e,t){return typeof t=="string"?e(t):t.cont(e)}function Cn(e){return $a(t=>t,e)}function Ac(e){return $a(t=>{throw new Error(t)},e)}function Ic(e,t,n,r,o){let i="";if(t=t||"",o=o||"",Sa(e))switch(o.toLowerCase()!=="x"&&(Ta(e,0)?(e=uo(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=r==null?null:parseInt(r,10),o){case"f":case"F":r=r??6,e=Zn(e,r);break;case"g":case"G":e=r!=null?or(e,r):or(e);break;case"e":case"E":e=r!=null?ir(e,r):ir(e);break;case"x":e=sr(e);break;case"X":e=sr(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=vr(e):e=Ue(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=i+e;else{const s=t.indexOf("0")>=0,a=t.indexOf("-")>=0,l=a||!s?" ":"0";l==="0"?(e=Sn(e,n-i.length,l,a),e=i+e):e=Sn(i+e,n,l,a)}return e}function Aa(e,t,n,r="",o=-1){return(...i)=>{let s=r;const a=t.slice(),l=n.slice();for(const u of i){const[,,f,c,h,d]=l[0];let m=c;if(o>=0)m=o,o=-1;else if(m==="*"){if(u<0)throw new Error("Non-negative number required");o=u;continue}s+=a[0],s+=Ic(u,f,m,h,d),a.splice(0,1),l.splice(0,1)}return l.length===0?(s+=a[0],e(s)):Aa(e,a,l,s,o)}}function Nc(e){return t=>{hn.lastIndex=0;const n=[],r=[];let o=0,i=hn.exec(e);for(;i;){const s=i.index+(i[1]||"").length;n.push(e.substring(o,s).replace(/%%/g,"%")),r.push(i),o=hn.lastIndex,hn.lastIndex-=1,i=hn.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(o).replace(/%%/g,"%")),Aa(t,n,r))}}function Mc(e,...t){let n;return n=e,n.replace($c,(r,o,i,s,a,l)=>{if(o<0||o>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let u=t[o];if(Sa(u))switch(a=a==null?null:parseInt(a,10),s){case"f":case"F":a=a??2,u=Zn(u,a);break;case"g":case"G":u=a!=null?or(u,a):or(u);break;case"e":case"E":u=a!=null?ir(u,a):ir(u);break;case"p":case"P":a=a??2,u=Zn(uo(u,100),a)+" %";break;case"d":case"D":u=a!=null?Br(String(u),a,"0"):String(u);break;case"x":case"X":u=a!=null?Br(sr(u),a,"0"):sr(u),s==="X"&&(u=u.toUpperCase());break;default:if(l){let f="";u=l.replace(/([0#,]+)(\.[0#]+)?/,(c,h,d)=>{Ta(u,0)&&(u=uo(u,-1),f="-"),d=d==null?"":d.substring(1),u=Zn(u,Math.max(d.length,0));let[m,w]=u.split(".");w||(w="");const g=h.replace(/,/g,"").replace(/^#+/,"").length;m=Br(m,g,"0");const y=d.replace(/#+$/,"").length;if(y>w.length?w=Pc(w,y,"0"):y<w.length&&(w=w.substring(0,y)+w.substring(y).replace(/0+$/,"")),h.indexOf(",")>0){const b=m.length%3,E=Math.floor(m.length/3);let I=b>0?m.substr(0,b)+(E>0?",":""):"";for(let V=0;V<E;V++)I+=m.substr(b+V*3,3)+(V<E-1?",":"");m=I}return w.length>0?m+"."+w:m}),u=f+u}}else u instanceof Date?u=vr(u,l||s):u=Ue(u);return i=parseInt((i||" ").substring(1),10),isNaN(i)||(u=Sn(String(u),Math.abs(i)," ",i<0)),u})}function Zo(e){return typeof e!="string"||e.length===0}function Fc(e){return typeof e!="string"||/^\s*$/.test(e)}function wt(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Sn(e,t,n,r){n=n||" ",t=t-e.length;for(let o=0;o<t;o++)e=r?e+n:n+e;return e}function Br(e,t,n){return Sn(e,t,n)}function Pc(e,t,n){return Sn(e,t,n,!0)}function Dc(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 o=(r&1)===1,i=(r&2)===2;t=t||[],t=t.filter(f=>f).map(ka),t=t.length>0?t:["\\s"];const s=[],a=new RegExp(t.join("|"),"g");let l=!0,u=0;do{const f=a.exec(e);if(f===null){const c=i?e.substring(u).trim():e.substring(u);(!o||c.length>0)&&s.push(c),l=!1}else{const c=i?e.substring(u,f.index).trim():e.substring(u,f.index);(!o||c.length>0)&&(n!=null&&s.length+1===n?(s.push(i?e.substring(u).trim():e.substring(u)),l=!1):s.push(c)),u=a.lastIndex}}while(l);return s}function Oc(e,...t){if(t.length===0)return e.trim();const n="["+ka(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}class $t{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return ot(this.value)}Equals(t){return t==null?!1:je(this.value,t instanceof $t?t.value:t)}CompareTo(t){return t==null?1:we(this.value,t instanceof $t?t.value:t)}}function x(e){if(e==null)throw new Error("Option has no value");return e instanceof $t?e.value:e}function Rc(e){return e instanceof $t?e.value:e}function Ie(e){return e==null||e instanceof $t?new $t(e):e}function Lc(e){return e==null?[]:[x(e)]}function Yo(e,t){return e!=null?x(e):t}function Ko(e,t){return t!=null?Ie(e(x(t))):void 0}class Hc{constructor(t,n,r,o){this.declaringType=t,this.tag=n,this.name=r,this.fields=o}}class Me{constructor(t,n,r,o,i,s,a){this.fullname=t,this.generics=n,this.construct=r,this.parent=o,this.fields=i,this.cases=s,this.enumCases=a}toString(){return le(this)}GetHashCode(){return Ia(this)}Equals(t){return co(this,t)}}function Ke(e){return e.generics!=null?e.generics:[]}function Ia(e){const t=Bo(e.fullname),n=Ke(e).map(Ia);return Tn([t,...n])}function co(e,t){return e.fullname===""?t.fullname===""&&ao(cr(e),cr(t),([n,r],[o,i])=>n===o&&co(r,i)):e.fullname===t.fullname&&ao(Ke(e),Ke(t),co)}function At(e,t,n,r){return new Me(e,t,n,r)}function Ft(e,t,n,r){return new Me(e,t,n,void 0,r)}function Na(e,t,n,r){const o=new Me(e,t,n,void 0,void 0,()=>{const i=n.prototype.cases();return r().map((s,a)=>new Hc(o,a,i[a],s))});return o}function zt(e){return new Me("Microsoft.FSharp.Core.FSharpOption`1",[e])}function lr(e){return new Me("Microsoft.FSharp.Collections.FSharpList`1",[e])}const Vc=new Me("System.Object"),ur=new Me("System.String"),Ae=new Me("System.Int32");function Jo(e){if(Array.isArray(e))return e[0];if(e instanceof Me){const t=xr(e);if(t!=null)return Jo(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function le(e){const t=xr(e);return t!=null?le(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>le(n)).join(",")+"]"}function jc(e){return xr(e)!=null}function xr(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function Uc(e){return e.generics!=null&&e.generics.length>0}function Ma(e){return e.enumCases!=null&&e.enumCases.length>0}function Gc(e){return e.generics==null?e:new Me(e.fullname,e.generics.map(()=>Vc))}function Bc(e){var t;return(t=e.generics)==null?void 0:t[0]}function Rt(e){if(Ma(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function zc(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 Lt(e,t){const n=parseInt(t,10);return zc(e,isNaN(n)?t:n)[1]}function Wc(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function cr(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function qc(e){if(Fa(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Zc(e){return e instanceof Me?e.cases!=null:e instanceof O}function Yc(e){return e instanceof Me?e.fields!=null:e instanceof B}function Fa(e){return e.fullname.startsWith("System.Tuple")}function Kc(e){return e.fields==null?[]:e.fields}function Jc(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 Xc(e,t){const n=cr(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,[o,i],s)=>(r[o]=t[s],r),{})}function Qc(e,t){return e}const Pa="Collection was empty.",ef="The input must be non-negative.",Da="The input sequence has an insufficient number of elements.";function Oa(e,t){return new Array(t)}function Zi(e,t){return e>t?e:t}function Yi(e,t){return e<t?e:t}function Xo(e,t,n,r){const o=t|0;return e.fill(r,o,o+n)}function Cr(e,t,n){const r=t.length|0,o=Oa(n,r);for(let i=0;i<=r-1;i++)ht(o,i,e(de(i,t)));return o}function tf(e,t){const n=Oa(t,1);return ht(n,0,e),n}function nf(e){return e.slice().reverse()}function rf(e,t){return t.find(e)}function of(e,t,n){const r=[];for(let o=0;o<=t.length-1;o++){const i=e(de(o,t));if(i!=null){const s=x(i);r.push(s)}}return je(n,rt())?r:Cr(o=>o,r,n)}function Sr(e,t,n){const r=e;return n.reduce(r,t)}function de(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 ht(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 Ra(e,t,n){return t.reduceRight((r,o)=>e(o,r),n)}class _e extends B{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+wt("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((o,i)=>{e:for(;;){const s=o,a=i,l=s.tail,u=a.tail;if(l!=null)if(u!=null){const f=x(l),c=x(u);if(je(s.head,a.head)){o=f,i=c;continue e}else return!1}else return!1;else return u==null}})(n,t)}GetHashCode(){return((r,o,i)=>{e:for(;;){const s=r,a=o,l=i,u=l.tail;if(u!=null){const f=x(u);if(s>18)return a|0;r=s+1,o=(a<<1)+ot(l.head)+631*s,i=f;continue e}else return a|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((o,i)=>{e:for(;;){const s=o,a=i,l=s.tail,u=a.tail;if(l!=null)if(u!=null){const f=x(l),c=x(u),h=we(s.head,a.head)|0;if(h===0){o=f,i=c;continue e}else return h|0}else return 1;else return u!=null?-1:0}})(this,t)|0}GetEnumerator(){return af(this)}[Symbol.iterator](){return yr(te(this))}"System.Collections.IEnumerable.GetEnumerator"(){return te(this)}}class sf{constructor(t){this.xs=t,this.it=this.xs,this.current=rt()}"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=x(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=rt()}Dispose(){}}function af(e){return new sf(e)}function re(){return new _e(rt(),void 0)}function An(e,t){return new _e(e,t)}function In(e){return e.tail==null}function La(e){return((n,r)=>{e:for(;;){const o=n,s=r.tail;if(s!=null){n=o+1,r=x(s);continue e}else return o|0}})(0,e)|0}function Qo(e){if(e.tail!=null)return e.head;throw new Error(Pa+"\\nParameter name: list")}function Ne(e){const t=e.tail;if(t!=null)return x(t);throw new Error(Pa+"\\nParameter name: list")}function se(){return re()}function $e(e,t){return An(e,t)}function U(e){return An(e,re())}function F(e){return In(e)}function Ha(e){return La(e)}function T(e){return Qo(e)}function M(e){return Ne(e)}function rn(e){const t=La(e)|0,n=Xo(new Array(t),0,t,null);return((o,i)=>{e:for(;;){const s=o,a=i;if(!In(a)){ht(n,s,Qo(a)),o=s+1,i=Ne(a);continue e}break}})(0,e),n}function at(e,t,n){let r=t,o=n;for(;!In(o);)r=e(r,T(o)),o=Ne(o);return r}function ei(e){return at((t,n)=>An(n,t),re(),e)}function lf(e,t,n){return Ra(e,rn(t),n)}function fr(e,t){at((n,r)=>{e(r)},void 0,t)}function W(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=An(de(r,e),n);return n}function v(e){return W(e,re())}function uf(e){let t,n;if(qe(e))return v(e);if(e instanceof _e)return e;{const r=re();let o=r;const i=te(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const l=i["System.Collections.Generic.IEnumerator`1.get_Current"]();o=(t=o,n=new _e(l,void 0),t.tail=n,n)}}finally{Y(i)}const s=o,a=re();return s.tail=a,Ne(r)}}function ti(e,t){return at((n,r)=>An(r,n),t,ei(e))}function ni(e,t){const n=re(),r=at((i,s)=>{const a=new _e(e(s),void 0);return i.tail=a,a},n,t),o=re();return r.tail=o,Ne(n)}function Va(e,t){const n=re(),r=at((i,s)=>{if(e(s)){const a=new _e(s,void 0);return i.tail=a,a}else return i},n,t),o=re();return r.tail=o,Ne(n)}function cf(e,t){const n=re(),r=re(),o=n,i=at((l,u)=>{let f,c;const h=l[0],d=l[1];return e(u)?[(f=new _e(u,void 0),h.tail=f,f),d]:[h,(c=new _e(u,void 0),d.tail=c,c)]},[o,r],t),s=re();i[0].tail=s;const a=re();return i[1].tail=a,[Ne(o),Ne(r)]}function ff(e,t){const n=re(),r=at((i,s)=>{const a=e(s);if(a==null)return i;{const l=new _e(x(a),void 0);return i.tail=l,l}},n,t),o=re();return r.tail=o,Ne(n)}function ja(e,t){const n=rn(t);return n.sort(e),v(n)}function df(e,t,n){return ja((r,o)=>n.Compare(e(r),e(o)),t)}function pf(e,t,n){return ja((r,o)=>n.Compare(e(r),e(o))*-1,t)}function hf(e,t){e:for(;;){const n=e,r=t;if(n<=0)return r;if(In(r))throw new Error(Da+"\\nParameter name: list");e=n-1,t=Ne(r);continue e}}function mf(e,t){if(e<0)throw new Error(ef+"\\nParameter name: count");const n=(s,a,l)=>{let u;e:for(;;){const f=s,c=a,h=l;if(f<=0)return c;if(In(h))throw new Error(Da+"\\nParameter name: list");s=f-1,a=(u=new _e(Qo(h),void 0),c.tail=u,u),l=Ne(h);continue e}},r=re(),o=n(e,r,t),i=re();return o.tail=i,Ne(r)}const S=$;function gf(e){const t=v([p("style",{children:[Wo]}),p("div",{className:"text-blue-500",children:`Welcome to apollo-import-workspace-app, with backend url ${e.backendUrl}`})]);return p("div",{children:S.Children.toArray(Array.from(t))})}class wf{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,o=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(o)}}}Dispose(){}}class ri extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,ri.prototype)}}class oi{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>oi.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function ft(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new ri);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(rr(n))}});else try{e(t)}catch(n){t.onError(rr(n))}}}function _f(e,t){return ft(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(o){n.onError(rr(o))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function yf(e){return ft(t=>t.onSuccess(e))}class bf{Bind(t,n){return _f(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return ft(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let o=r.next();return this.While(()=>!o.done,this.Delay(()=>{const i=n(o.value);return o=r.next(),i}))}Return(t){return yf(t)}ReturnFrom(t){return t}TryFinally(t,n){return ft(r=>{t({onSuccess:o=>{n(),r.onSuccess(o)},onError:o=>{n(),r.onError(o)},onCancel:o=>{n(),r.onCancel(o)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return ft(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:o=>{try{n(o)(r)}catch(i){r.onError(rr(i))}}})})}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 ft(t=>t.onSuccess(void 0))}}const Te=new bf;function vf(e){return new Ua(0,[e])}function xf(e){return new Ua(1,[e])}class Ua extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function Cf(e){return vf(e)}function Sf(e){return xf(e)}function zr(e){}const Ef=new wf;function kf(e){return ft(t=>{e({onSuccess:n=>t.onSuccess(Cf(n)),onError:n=>t.onSuccess(Sf(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function Tf(e){return ft(t=>e([t.onSuccess,t.onError,t.onCancel]))}function $f(e,t){return If(e,t)}function Af(e,t){return $f(e,t)}function If(e,t,n,r,o){typeof t!="function"&&(o=t,t=void 0);const i=new oi;e({onSuccess:t||zr,onError:zr,onCancel:zr,cancelToken:o||Ef,trampoline:i})}class Ga extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class Nf extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class ii extends B{constructor(t,n,r,o,i,s,a,l){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=o,this.overridenMimeType=i,this.overridenResponseType=s,this.timeout=a,this.content=l}}class Vt extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Ba extends B{constructor(t,n,r,o,i,s){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=o,this.responseHeaders=i,this.content=s}}function Mf(e){throw new Error(e)}const Ff="Enumeration already finished.",Pf="Enumeration has not started. Call MoveNext.",za="The input sequence has an insufficient number of elements.",Df="Reset is not supported on this enumerator.";function Of(){throw new Error(Df)}function si(){throw new Error(Pf)}function fo(){throw new Error(Ff)}class Rf{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const o=te(t);try{for(;n<4&&o["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+Ue(o["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{Y(o)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return yr(te(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function Lf(e){return new Rf(e)}class Hf{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"(){Of()}Dispose(){this.dispose()}}function Er(e,t,n){return new Hf(e,t,n)}function Vf(e){let t,n,r=!1,o=!1,i;const s=()=>{if(o=!0,n!=null){const a=x(n);try{Y(a)}finally{n=void 0}}if(t!=null){const a=x(t);try{Y(a)}finally{t=void 0}}};return Er(()=>(r?o&&fo():si(),i!=null?x(i):fo()),()=>{let a;if(r||(r=!0),o)return!1;{let l;for(;l==null;){const u=t,f=n;if(u!=null)if(f!=null){const c=x(f);if(c["System.Collections.IEnumerator.MoveNext"]())i=Ie(c["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{Y(c)}finally{n=void 0}}else{const c=x(u);c["System.Collections.IEnumerator.MoveNext"]()?n=(a=c["System.Collections.Generic.IEnumerator`1.get_Current"](),te(a)):(s(),l=!1)}else t=te(e)}return x(l)}},()=>{o||s()})}function jf(e,t){return Er(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{Y(t)}finally{}})}function Wa(e,t,n){let r=!1,o,i=Ie(e());const s=()=>{if(i!=null){const l=x(i);try{n(l)}finally{i=void 0}}},a=()=>{try{s()}finally{o=void 0}};return Er(()=>(r||si(),o!=null?x(o):fo()),()=>{if(r||(r=!0),i!=null){const l=x(i);let u;try{u=t(l)}catch(f){throw a(),f}return u!=null?(o=u,!0):(a(),!1)}else return!1},s)}function Uf(e,t){let n,r=t;return Er(()=>{if(n!=null){const o=x(n)[0];return x(n)[1],o}else return si()},()=>(n=e(r),n!=null?(x(n)[0],r=x(n)[1],!0):!1),()=>{})}function Gf(e,t){t==null&&Mf(e)}function on(e){return Lf(e)}function It(e){return Gf("source",e),te(e)}function oe(e){return on(()=>te(e()))}function qa(e){return on(()=>Vf(e))}function Bf(e,t){return on(()=>Uf(e,t))}function ue(e){return oe(()=>tf(e))}function zf(e){return e instanceof _e?rn(e):Array.from(e)}function Nn(e){return qe(e)?v(e):e instanceof _e?e:uf(e)}function Wf(e,t,n){return on(()=>Wa(e,t,n))}function qf(e,t,n){return on(()=>{let r=-1;return Wa(e,o=>(r=r+1|0,t(r,o)),n)})}function it(e,t){return qa([e,t])}function Zf(e,t,n){const r=It(t);try{const o=It(n);try{let i=0,s=r["System.Collections.IEnumerator.MoveNext"](),a=o["System.Collections.IEnumerator.MoveNext"]();for(;i===0&&s&&a;)i=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),o["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,i===0&&(s=r["System.Collections.IEnumerator.MoveNext"](),a=o["System.Collections.IEnumerator.MoveNext"]());return(i!==0?i:s?1:a?-1:0)|0}finally{Y(o)}}finally{Y(r)}}function Ht(e,t,n){const r=It(t);try{let o=!1;for(;!o&&r["System.Collections.IEnumerator.MoveNext"]();)o=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{Y(r)}}function Za(e,t,n){const r=It(n);try{let o=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)o=e(o,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{Y(r)}}function Ya(e,t){Za((n,r)=>{e(r)},void 0,t)}function Qe(e,t){return Wf(()=>It(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?Ie(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{Y(n)})}function Yf(e){return oe(()=>nf(zf(e)))}function Kf(e,t){return on(()=>{const n=It(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(za+"\\nParameter name: source");return jf(()=>{},n)}catch(r){throw Y(n),r}})}function Jf(e,t){return qf(()=>It(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return Ie(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(za+"\\nParameter name: source")}else return},n=>{Y(n)})}function Xf(e,t){return oe(()=>qa(Qe(e,t)))}class Ka{constructor(t,n){this.k=t,this.v=n}}function dr(e,t){return new Ka(e,t)}function pe(e){return e.k}function Ce(e){return e.v}class ee extends Ka{constructor(t,n,r,o,i){super(t,n),this.left=r,this.right=o,this.h=i|0}}function Yn(e,t,n,r,o){return new ee(e,t,n,r,o)}function ce(e){return e.left}function fe(e){return e.right}function Et(e){return e.h}function Ja(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=x(r);if(o instanceof ee){const i=o;e=Ja(n+1,ce(i)),t=fe(i);continue e}else return n+1|0}else return n|0}}function Qf(e){return Ja(0,e)}function Pe(e,t,n,r){let o,i,s;const a=e;if(a!=null){const c=x(a);s=c instanceof ee?(o=c,Et(o)):1}else s=0;let l;const u=r;if(u!=null){const c=x(u);l=c instanceof ee?(i=c,Et(i)):1}else l=0;const f=(s<l?l:s)|0;return f===0?dr(t,n):Yn(t,n,e,r,f+1)}function Ki(e,t,n,r){let o,i,s,a,l,u,f,c,h;const d=e;if(d!=null){const g=x(d);h=g instanceof ee?(o=g,Et(o)):1}else h=0;let m;const w=r;if(w!=null){const g=x(w);m=g instanceof ee?(i=g,Et(i)):1}else m=0;if(m>h+2){const g=x(r);if(g instanceof ee){const y=g;if(s=ce(y),(s!=null?(a=x(s),a instanceof ee?(l=a,Et(l)):1):0)>h+1){const b=x(ce(y));if(b instanceof ee){const E=b;return Pe(Pe(e,t,n,ce(E)),pe(E),Ce(E),Pe(fe(E),pe(y),Ce(y),fe(y)))}else throw new Error("internal error: Map.rebalance")}else return Pe(Pe(e,t,n,ce(y)),pe(y),Ce(y),fe(y))}else throw new Error("internal error: Map.rebalance")}else if(h>m+2){const g=x(e);if(g instanceof ee){const y=g;if(u=fe(y),(u!=null?(f=x(u),f instanceof ee?(c=f,Et(c)):1):0)>m+1){const b=x(fe(y));if(b instanceof ee){const E=b;return Pe(Pe(ce(y),pe(y),Ce(y),ce(E)),pe(E),Ce(E),Pe(fe(E),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Pe(ce(y),pe(y),Ce(y),Pe(fe(y),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Pe(e,t,n,r)}function Qt(e,t,n,r){if(r!=null){const o=x(r),i=e.Compare(t,pe(o))|0;if(o instanceof ee){const s=o;return i<0?Ki(Qt(e,t,n,ce(s)),pe(s),Ce(s),fe(s)):i===0?Yn(t,n,ce(s),fe(s),Et(s)):Ki(ce(s),pe(s),Ce(s),Qt(e,t,n,fe(s)))}else return i<0?Yn(t,n,void 0,r,2):i===0?dr(t,n):Yn(t,n,r,void 0,2)}else return dr(t,n)}function Xa(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=x(i),a=r.Compare(o,pe(s))|0;if(a===0)return Ie(Ce(s));if(s instanceof ee){const l=s;e=r,t=o,n=a<0?ce(l):fe(l);continue e}else return}else return}}function ed(e,t,n){const r=Xa(e,t,n);if(r==null)throw new Error;return x(r)}function td(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=x(i),a=r.Compare(o,pe(s))|0;if(s instanceof ee){const l=s;if(a<0){e=r,t=o,n=ce(l);continue e}else{if(a===0)return!0;e=r,t=o,n=fe(l);continue e}}else return a===0}else return!1}}function Qa(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=x(r);if(o instanceof ee){const i=o;Qa(n,ce(i)),n(pe(i),Ce(i)),e=n,t=fe(i);continue e}else n(pe(o),Ce(o))}break}}function nd(e,t){Qa(e,t)}function rd(e,t,n){let r=n;nd((o,i)=>{ht(t,r,[o,i]),r=r+1|0},e)}function od(e,t){return at((n,r)=>Qt(e,r[0],r[1],n),void 0,t)}function id(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){const s=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=Qt(r,s[0],s[1],o),n=i;continue e}else return o}}function sd(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=de(r,t);n=Qt(e,o[0],o[1],n)}return n}function el(e,t){if(qe(t))return sd(e,t);if(t instanceof _e)return od(e,t);{const n=te(t);try{return id(e,void 0,n)}finally{Y(n)}}}class ad extends B{constructor(t,n){super(),this.stack=t,this.started=n}}function tl(e){e:for(;;){const t=e;if(F(t))return se();{const n=M(t),r=T(t);if(r!=null){const o=x(r);if(o instanceof ee){const i=o;e=W([ce(i),dr(pe(i),Ce(i)),fe(i)],n);continue e}else return t}else{e=n;continue e}}}}function Ji(e){return new ad(tl(U(e)),!1)}function ld(){throw new Error("enumeration not started")}function ud(){throw new Error("enumeration already finished")}function Xi(e){if(e.started){const t=e.stack;if(F(t))return ud();if(T(t)!=null){const n=x(T(t));if(n instanceof ee)throw new Error("Please report error: Map iterator, unexpected stack for current");return[pe(n),Ce(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return ld()}function cd(e){if(e.started){const t=e.stack;if(F(t))return!1;if(T(t)!=null){if(x(T(t))instanceof ee)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=tl(M(t)),!F(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!F(e.stack)}function Qi(e){let t=Ji(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Xi(t)},"System.Collections.IEnumerator.get_Current"(){return Xi(t)},"System.Collections.IEnumerator.MoveNext"(){return cd(t)},"System.Collections.IEnumerator.Reset"(){t=Ji(e)},Dispose(){}}}class pr{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return hd(this)|0}Equals(t){const n=this;if(t instanceof pr){const r=t,o=te(n);try{const i=te(r);try{const s=()=>{const a=o["System.Collections.IEnumerator.MoveNext"]();if(a===i["System.Collections.IEnumerator.MoveNext"]())if(a){const l=o["System.Collections.Generic.IEnumerator`1.get_Current"](),u=i["System.Collections.Generic.IEnumerator`1.get_Current"]();return je(l[0],u[0])&&je(l[1],u[1])?s():!1}else return!0;else return!1};return s()}finally{Y(i)}}finally{Y(o)}}else return!1}toString(){return"map ["+wt("; ",Qe(n=>Mc("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return Qi(this.tree)}[Symbol.iterator](){return yr(te(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Qi(this.tree)}CompareTo(t){const n=this;if(t instanceof pr)return Zf((o,i)=>{const s=n.comparer.Compare(o[0],i[0])|0;return(s!==0?s:we(o[1],i[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 ts(n,t[0])&&je(es(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){rd(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Wr(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Wr(this)|0}get size(){return Wr(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return Qe(n=>[n[0],n[1]],this)}get(t){return es(this,t)}has(t){return ts(this,t)}keys(){return Qe(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return Qe(n=>n[1],this)}forEach(t,n){const r=this;Ya(o=>{t(o[1],o[0],r)},r)}}function kr(e,t){return new pr(e,t)}function fd(e){return kr(e,void 0)}function dd(e,t,n){return kr(e.comparer,Qt(e.comparer,t,n,e.tree))}function es(e,t){return ed(e.comparer,t,e.tree)}function Wr(e){return Qf(e.tree)}function ts(e,t){return td(e.comparer,t,e.tree)}function pd(e,t){return Xa(e.comparer,t,e.tree)}function hd(e){const t=(o,i)=>(o<<1)+i+631;let n=0;const r=te(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const o=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,ot(o[0]))|0,n=t(n,ot(o[1]))|0}}finally{Y(r)}return n|0}function md(e,t,n){return dd(n,e,t)}function gd(e,t){return pd(t,e)}function wd(e,t){return kr(t,el(t,e))}function _d(e,t){return kr(t,el(t,e))}function nl(e){return fd(e)}const yt=new ii("",new Ga(0,[]),se(),!1,void 0,void 0,void 0,new Nf(0,[]));new Ba(0,"","","",nl({Compare:zo}),new Vt(0,[""]));function ns(e,t){return Zo(t)?new Array(0):Dc(t,[e],void 0,0)}function yd(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 bd(e){return new ii(e,yt.method,yt.headers,yt.withCredentials,yt.overridenMimeType,yt.overridenResponseType,yt.timeout,yt.content)}function vd(e,t){return new ii(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function xd(e){return Tf(t=>{const n=new XMLHttpRequest;n.open(yd(e.method),e.url),n.onreadystatechange=()=>{let l,u,f,c,h,d,m;n.readyState===4&&t[0]((l=(u=n.responseType,u===""||u==="text"?n.responseText:""),f=n.status|0,c=n.responseType,h=(d=n.responseType,d===""?new Vt(0,[n.responseText]):d==="text"?new Vt(0,[n.responseText]):d==="arraybuffer"?new Vt(2,[n.response]):d==="blob"?new Vt(1,[n.response]):new Vt(3,[n.response])),m=_d(of(w=>{const g=v(ns(":",w));if(!F(g))return[T(g).toLocaleLowerCase(),wt(":",M(g)).trim()]},ns(`\r
4
- `,n.getAllResponseHeaders())),{Compare:zo}),new Ba(f,l,c,n.responseURL,m,h)))};const r=te(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{Y(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(o!=null){const l=o;n.overrideMimeType(l)}const i=e.overridenResponseType;if(i!=null)switch(i.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(Ie(a.fields[0]));break}case 3:{n.send(Ie(a.fields[0]));break}case 2:{n.send(Ie(a.fields[0]));break}default:n.send()}})}function Cd(e){return new _(0,[e])}function rl(e){return new _(1,[e])}class _ extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function st(e,t){return t.tag===0?Cd(e(t.fields[0])):rl(t.fields[0])}function Sd(e,t){return t.tag===0?e(t.fields[0]):rl(t.fields[0])}const Ct={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function qr(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 Ed(e,t){switch(t){case Ct.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case Ct.SnakeCase:return qr(e,"_");case Ct.SnakeCaseAllCaps:return qr(e,"_").toUpperCase();case Ct.KebabCase:return qr(e,"-");case Ct.None:default:return e}}function ai(e,t=Ct.None){const n={},r=t;function o(s){throw new Error("Cannot infer key and value of "+String(s))}function i(s,a,l){s=Ed(s,a),n[s]=l}for(let s of e){let a=Ct.None;if(s==null&&o(s),s instanceof O){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:o(s);break;case 1:i(s[0],a,!0);break;case 2:const l=s[1];i(s[0],a,l);break;default:i(s[0],a,s.slice(1))}else typeof s=="string"?i(s,a,!0):o(s)}return n}class k extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class ol extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function rs(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function kd(e,t){switch(e.tag){case 2:return Tc(rs(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return rs(t)}}const Td=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,os=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,$d=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Ad(e){function t(r){return r.replace(os,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Td.test(n))return Oc(n,"{","}","(",")");if(os.test(n))return t(n);if($d.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 Id(e,t){try{return t.contents=Ad(e),!0}catch{return!1}}var po;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(po||(po={}));function Nd(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}function is(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 Md(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 Fd(e,t){if(t&po.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 Pd(e,t,n){const o=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(o!=null){const[,,i,s]=o;if(n=n||Fd(i,t),!Md(n).test(s))return Nd(o,n)}return null}function Dd(e,t,n,r,o){const i=Pd(e,t,o);if(i!=null){let s=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(s)){const[a,l]=is(!0,r);!n&&i.radix!==10&&s>=a&&s<=l&&(s=s<<32-r>>32-r);const[u,f]=is(n,r);if(s>=u&&s<=f)return s}}throw new Error(`The input string ${e} was not in a correct format.`)}function sn(e,t,n,r,o){try{return o.contents=Dd(e,t,n,r),!0}catch{return!1}}function il(e,t){Od(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function Od(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 Rd(){return il(-621355968e5,0)}function Ld(e){const[t,n]=Ea(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return il(t.getTime(),r)}function Hd(e,t){try{return t.contents=Ld(e),!0}catch{return!1}}function ss(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return Vd(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],o=0;break}return e*864e5+t*36e5+n*6e4+r*1e3+o}function Vd(e){return Number(BigInt(e)/10000n)}function jd(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 ss(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 o=0,i=0,s=0;const a=r[1]!=null&&r[1]==="-"?-1:1,l=+r[4],u=+r[5];if(r[3]!=null&&(o=+r[3]),r[7]!=null&&(s=+r[7]),r[8]!=null)switch(r[8].length){case 1:i=+r[8]*100;break;case 2:i=+r[8]*10;break;case 3:i=+r[8];break;case 4:i=+r[8]/10;break;case 5:i=+r[8]/100;break;case 6:i=+r[8]/1e3;break;case 7:i=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return a*ss(o,l,u,s,i)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function Ud(e,t){try{return t.contents=jd(e),!0}catch{return!1}}class sl{constructor(t){this.k=t}}function ve(e){return new sl(e)}function A(e){return e.k}class P extends sl{constructor(t,n,r,o){super(t),this.left=n,this.right=r,this.h=o|0}}function xe(e,t,n,r){return new P(e,t,n,r)}function H(e){return e.left}function R(e){return e.right}function Gt(e){return e.h}function al(e,t){e:for(;;){const n=e,r=t;if(n!=null){const o=x(n);if(o instanceof P){const i=o;e=H(i),t=al(R(i),r+1);continue e}else return r+1|0}else return r|0}}function Gd(e){return al(e,0)}function De(e,t,n){let r,o,i;const s=e;if(s!=null){const f=x(s);i=f instanceof P?(r=f,Gt(r)):1}else i=0;let a;const l=n;if(l!=null){const f=x(l);a=f instanceof P?(o=f,Gt(o)):1}else a=0;const u=(i<a?a:i)|0;return u===0?ve(t):xe(t,e,n,u+1)}function as(e,t,n){let r,o,i,s,a,l,u,f,c;const h=e;if(h!=null){const w=x(h);c=w instanceof P?(r=w,Gt(r)):1}else c=0;let d;const m=n;if(m!=null){const w=x(m);d=w instanceof P?(o=w,Gt(o)):1}else d=0;if(d>c+2){const w=x(n);if(w instanceof P){const g=w;if(i=H(g),(i!=null?(s=x(i),s instanceof P?(a=s,Gt(a)):1):0)>c+1){const y=x(H(g));if(y instanceof P){const b=y;return De(De(e,t,H(b)),A(b),De(R(b),A(g),R(g)))}else throw new Error("internal error: Set.rebalance")}else return De(De(e,t,H(g)),A(g),R(g))}else throw new Error("internal error: Set.rebalance")}else if(c>d+2){const w=x(e);if(w instanceof P){const g=w;if(l=R(g),(l!=null?(u=x(l),u instanceof P?(f=u,Gt(f)):1):0)>d+1){const y=x(R(g));if(y instanceof P){const b=y;return De(De(H(g),A(g),H(b)),A(b),De(R(b),t,n))}else throw new Error("internal error: Set.rebalance")}else return De(H(g),A(g),De(R(g),t,n))}else throw new Error("internal error: Set.rebalance")}else return De(e,t,n)}function en(e,t,n){if(n!=null){const r=x(n),o=e.Compare(t,A(r))|0;if(r instanceof P){const i=r;return o<0?as(en(e,t,H(i)),A(i),R(i)):o===0?n:as(H(i),A(i),en(e,t,R(i)))}else{const i=e.Compare(t,A(r))|0;return i<0?xe(t,void 0,n,2):i===0?n:xe(t,n,void 0,2)}}else return ve(t)}function ll(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=x(i),a=r.Compare(o,A(s))|0;if(s instanceof P){const l=s;if(a<0){e=r,t=o,n=H(l);continue e}else{if(a===0)return!0;e=r,t=o,n=R(l);continue e}}else return a===0}else return!1}}function ul(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=x(r);if(o instanceof P){const i=o;ul(n,H(i)),n(A(i)),e=n,t=R(i);continue e}else n(A(o))}break}}class Bd extends B{constructor(t,n){super(),this.stack=t,this.started=n}}function cl(e){e:for(;;){const t=e;if(F(t))return se();{const n=T(t),r=M(t);if(n!=null){const o=x(n);if(o instanceof P){const i=o;e=W([H(i),ve(A(i)),R(i)],r);continue e}else return t}else{e=r;continue e}}}}function ls(e){return new Bd(cl(U(e)),!1)}function zd(){throw new Error("Enumeration not started")}function Wd(){throw new Error("Enumeration already started")}function us(e){if(e.started){const t=e.stack;if(F(t))return Wd();if(T(t)!=null){const n=x(T(t));return A(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return zd()}function qd(e){if(e.started){const t=e.stack;if(F(t))return!1;if(T(t)!=null){if(x(T(t))instanceof P)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=cl(M(t)),!F(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!F(e.stack)}function cs(e){let t=ls(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return us(t)},"System.Collections.IEnumerator.get_Current"(){return us(t)},"System.Collections.IEnumerator.MoveNext"(){return qd(t)},"System.Collections.IEnumerator.Reset"(){t=ls(e)},Dispose(){}}}function Zd(e,t,n){e:for(;;){const r=e,o=t,i=n;if(F(o))return F(i)?0:-1;if(F(i))return 1;if(T(i)!=null)if(T(o)!=null){const s=x(T(o)),a=x(T(i));if(s instanceof P){const l=s;if(H(l)==null)if(a instanceof P){const u=a;if(H(u)==null){const f=r.Compare(A(l),A(u))|0;if(f!==0)return f|0;e=r,t=$e(R(l),M(o)),n=$e(R(u),M(i));continue e}else{let f,c,h,d,m;switch(F(o)?F(i)?f=2:T(i)!=null?(f=1,d=M(i),m=x(T(i))):f=2:T(o)!=null?(f=0,c=M(o),h=x(T(o))):F(i)?f=2:T(i)!=null?(f=1,d=M(i),m=x(T(i))):f=2,f){case 0:if(h instanceof P){const w=h;e=r,t=W([H(w),xe(A(w),void 0,R(w),0)],c),n=i;continue e}else{e=r,t=W([void 0,ve(A(h))],c),n=i;continue e}case 1:if(m instanceof P){const w=m;e=r,t=o,n=W([H(w),xe(A(w),void 0,R(w),0)],d);continue e}else{e=r,t=o,n=W([void 0,ve(A(m))],d);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const u=r.Compare(A(l),A(a))|0;if(u!==0)return u|0;e=r,t=$e(R(l),M(o)),n=$e(void 0,M(i));continue e}else{let u,f,c,h,d;switch(F(o)?F(i)?u=2:T(i)!=null?(u=1,h=M(i),d=x(T(i))):u=2:T(o)!=null?(u=0,f=M(o),c=x(T(o))):F(i)?u=2:T(i)!=null?(u=1,h=M(i),d=x(T(i))):u=2,u){case 0:if(c instanceof P){const m=c;e=r,t=W([H(m),xe(A(m),void 0,R(m),0)],f),n=i;continue e}else{e=r,t=W([void 0,ve(A(c))],f),n=i;continue e}case 1:if(d instanceof P){const m=d;e=r,t=o,n=W([H(m),xe(A(m),void 0,R(m),0)],h);continue e}else{e=r,t=o,n=W([void 0,ve(A(d))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof P){const l=a;if(H(l)==null){const u=r.Compare(A(s),A(l))|0;if(u!==0)return u|0;e=r,t=$e(void 0,M(o)),n=$e(R(l),M(i));continue e}else{let u,f,c,h,d;switch(F(o)?F(i)?u=2:T(i)!=null?(u=1,h=M(i),d=x(T(i))):u=2:T(o)!=null?(u=0,f=M(o),c=x(T(o))):F(i)?u=2:T(i)!=null?(u=1,h=M(i),d=x(T(i))):u=2,u){case 0:if(c instanceof P){const m=c;e=r,t=W([H(m),xe(A(m),void 0,R(m),0)],f),n=i;continue e}else{e=r,t=W([void 0,ve(A(c))],f),n=i;continue e}case 1:if(d instanceof P){const m=d;e=r,t=o,n=W([H(m),xe(A(m),void 0,R(m),0)],h);continue e}else{e=r,t=o,n=W([void 0,ve(A(d))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(A(s),A(a))|0;if(l!==0)return l|0;e=r,t=M(o),n=M(i);continue e}}else{x(T(i));let s,a,l,u,f;switch(F(o)?F(i)?s=2:T(i)!=null?(s=1,u=M(i),f=x(T(i))):s=2:T(o)!=null?(s=0,a=M(o),l=x(T(o))):F(i)?s=2:T(i)!=null?(s=1,u=M(i),f=x(T(i))):s=2,s){case 0:if(l instanceof P){const c=l;e=r,t=W([H(c),xe(A(c),void 0,R(c),0)],a),n=i;continue e}else{e=r,t=W([void 0,ve(A(l))],a),n=i;continue e}case 1:if(f instanceof P){const c=f;e=r,t=o,n=W([H(c),xe(A(c),void 0,R(c),0)],u);continue e}else{e=r,t=o,n=W([void 0,ve(A(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(T(o)!=null){x(T(o));let s,a,l,u,f;switch(F(o)?F(i)?s=2:T(i)!=null?(s=1,u=M(i),f=x(T(i))):s=2:T(o)!=null?(s=0,a=M(o),l=x(T(o))):F(i)?s=2:T(i)!=null?(s=1,u=M(i),f=x(T(i))):s=2,s){case 0:if(l instanceof P){const c=l;e=r,t=W([H(c),xe(A(c),void 0,R(c),0)],a),n=i;continue e}else{e=r,t=W([void 0,ve(A(l))],a),n=i;continue e}case 1:if(f instanceof P){const c=f;e=r,t=o,n=W([H(c),xe(A(c),void 0,R(c),0)],u);continue e}else{e=r,t=o,n=W([void 0,ve(A(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=M(o),n=M(i);continue e}}}function fs(e,t,n){return t==null?n==null?0:-1:n==null?1:Zd(e,U(t),U(n))|0}function Yd(e,t,n){let r=n;ul(o=>{ht(t,r,o),r=r+1|0},e)}function Kd(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){e=r,t=en(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i;continue e}else return o}}function Jd(e,t){return Sr((n,r)=>en(e,r,n),void 0,t)}function Xd(e,t){return at((n,r)=>en(e,r,n),void 0,t)}function fl(e,t){if(qe(t))return Jd(e,t);if(t instanceof _e)return Xd(e,t);{const n=te(t);try{return Kd(e,void 0,n)}finally{Y(n)}}}class li{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return tp(this)|0}Equals(t){let n;const r=this;return t instanceof li&&(n=t,fs(Wt(r),Oe(r),Oe(n))===0)}toString(){return"set ["+wt("; ",Qe(n=>Ue(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return fs(Wt(n),Oe(n),Oe(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 ll(Wt(n),t,Oe(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Yd(Oe(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Zr(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Zr(this)|0}GetEnumerator(){return cs(Oe(this))}[Symbol.iterator](){return yr(te(this))}"System.Collections.IEnumerable.GetEnumerator"(){return cs(Oe(this))}get size(){return Zr(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 dl(this,t)}keys(){return Qe(n=>n,this)}values(){return Qe(n=>n,this)}entries(){return Qe(n=>[n,n],this)}forEach(t,n){const r=this;Ya(o=>{t(o,o,r)},r)}}function Tr(e,t){return new li(e,t)}function Wt(e){return e.comparer}function Oe(e){return e.tree}function Qd(e){return Tr(e,void 0)}function ep(e,t){return Tr(Wt(e),en(Wt(e),t,Oe(e)))}function Zr(e){return Gd(Oe(e))}function dl(e,t){return ll(Wt(e),t,Oe(e))}function tp(e){let t=0;const n=te(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+ot(r)+631|0}}finally{Y(n)}return Math.abs(t)|0}function ho(e,t){return dl(t,e)}function np(e,t){return ep(t,e)}function rp(e){return Qd(e)}function op(e,t){return Tr(t,fl(t,e))}function ip(e,t){return Tr(t,fl(t,e))}function mn(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
1
+ var Tn,I,qs,xt,vi,Zs,oo,Ao,io,so,Ys,Sn={},Ks=[],xu=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,br=Array.isArray;function Qe(e,t){for(var n in t)e[n]=t[n];return e}function Js(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function d(e,t,n){var r,o,i,s={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?Tn.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)s[i]===void 0&&(s[i]=e.defaultProps[i]);return bn(e,s,r,o,null)}function bn(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++qs,__i:-1,__u:0};return o==null&&I.vnode!=null&&I.vnode(i),i}function $o(){return{current:null}}function G(e){return e.children}function He(e,t){this.props=e,this.context=t}function Kt(e,t){if(t==null)return e.__?Kt(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"?Kt(e):null}function Xs(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 Xs(e)}}function ao(e){(!e.__d&&(e.__d=!0)&&xt.push(e)&&!nr.__r++||vi!==I.debounceRendering)&&((vi=I.debounceRendering)||Zs)(nr)}function nr(){var e,t,n,r,o,i,s,a;for(xt.sort(oo);e=xt.shift();)e.__d&&(t=xt.length,r=void 0,i=(o=(n=e).__v).__e,s=[],a=[],n.__P&&((r=Qe({},o)).__v=o.__v+1,I.vnode&&I.vnode(r),No(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[i]:null,s,i??Kt(o),!!(32&o.__u),a),r.__v=o.__v,r.__.__k[r.__i]=r,ta(s,r,a),r.__e!=i&&Xs(r)),xt.length>t&&xt.sort(oo));nr.__r=0}function Qs(e,t,n,r,o,i,s,a,l,u,f){var c,p,h,m,w,g=r&&r.__k||Ks,y=t.length;for(n.__d=l,Cu(n,t,g),l=n.__d,c=0;c<y;c++)(h=n.__k[c])!=null&&(p=h.__i===-1?Sn:g[h.__i]||Sn,h.__i=c,No(e,h,p,o,i,s,a,l,u,f),m=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&Io(p.ref,null,h),f.push(h.ref,h.__c||m,h)),w==null&&m!=null&&(w=m),65536&h.__u||p.__k===h.__k?l=ea(h,l,e):typeof h.type=="function"&&h.__d!==void 0?l=h.__d:m&&(l=m.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=l,n.__e=w}function Cu(e,t,n){var r,o,i,s,a,l=t.length,u=n.length,f=u,c=0;for(e.__k=[],r=0;r<l;r++)(o=t[r])!=null&&typeof o!="boolean"&&typeof o!="function"?(s=r+c,(o=e.__k[r]=typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?bn(null,o,null,null,null):br(o)?bn(G,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?bn(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,i=null,(a=o.__i=Su(o,n,s,f))!==-1&&(f--,(i=n[a])&&(i.__u|=131072)),i==null||i.__v===null?(a==-1&&c--,typeof o.type!="function"&&(o.__u|=65536)):a!==s&&(a==s-1?c--:a==s+1?c++:(a>s?c--:c++,o.__u|=65536))):o=e.__k[r]=null;if(f)for(r=0;r<u;r++)(i=n[r])!=null&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=Kt(i)),na(i,i))}function ea(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=ea(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Kt(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function tt(e,t){return t=t||[],e==null||typeof e=="boolean"||(br(e)?e.some(function(n){tt(n,t)}):t.push(e)),t}function Su(e,t,n,r){var o=e.key,i=e.type,s=n-1,a=n+1,l=t[n];if(l===null||l&&o==l.key&&i===l.type&&!(131072&l.__u))return n;if((typeof i!="function"||i===G||o)&&r>(l!=null&&!(131072&l.__u)?1:0))for(;s>=0||a<t.length;){if(s>=0){if((l=t[s])&&!(131072&l.__u)&&o==l.key&&i===l.type)return s;s--}if(a<t.length){if((l=t[a])&&!(131072&l.__u)&&o==l.key&&i===l.type)return a;a++}}return-1}function xi(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||xu.test(t)?n:n+"px"}function Gn(e,t,n,r,o){var i;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||xi(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||xi(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")i=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+i]=n,n?r?n.u=r.u:(n.u=Ao,e.addEventListener(t,i?so:io,i)):e.removeEventListener(t,i?so:io,i);else{if(o=="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 Ci(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Ao++;else if(t.t<n.u)return;return I.event&&(t=I.event(t)),"handleEvent"in n?n.handleEvent(t):n(t)}}}function No(e,t,n,r,o,i,s,a,l,u){var f,c,p,h,m,w,g,y,C,E,N,j,J,ae,Be,ut,W=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),i=[a=t.__e=n.__e]),(f=I.__b)&&f(t);e:if(typeof W=="function")try{if(y=t.props,C="prototype"in W&&W.prototype.render,E=(f=W.contextType)&&r[f.__c],N=f?E?E.props.value:f.__:r,n.__c?g=(c=t.__c=n.__c).__=c.__E:(C?t.__c=c=new W(y,N):(t.__c=c=new He(y,N),c.constructor=W,c.render=ku),E&&E.sub(c),c.props=y,c.state||(c.state={}),c.context=N,c.__n=r,p=c.__d=!0,c.__h=[],c._sb=[]),C&&c.__s==null&&(c.__s=c.state),C&&W.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=Qe({},c.__s)),Qe(c.__s,W.getDerivedStateFromProps(y,c.__s))),h=c.props,m=c.state,c.__v=t,p)C&&W.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),C&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(C&&W.getDerivedStateFromProps==null&&y!==h&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(y,N),!c.__e&&(c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(y,c.__s,N)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(c.props=y,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(Ee){Ee&&(Ee.__=t)}),j=0;j<c._sb.length;j++)c.__h.push(c._sb[j]);c._sb=[],c.__h.length&&s.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(y,c.__s,N),C&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(h,m,w)})}if(c.context=N,c.props=y,c.__P=e,c.__e=!1,J=I.__r,ae=0,C){for(c.state=c.__s,c.__d=!1,J&&J(t),f=c.render(c.props,c.state,c.context),Be=0;Be<c._sb.length;Be++)c.__h.push(c._sb[Be]);c._sb=[]}else do c.__d=!1,J&&J(t),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++ae<25);c.state=c.__s,c.getChildContext!=null&&(r=Qe(Qe({},r),c.getChildContext())),C&&!p&&c.getSnapshotBeforeUpdate!=null&&(w=c.getSnapshotBeforeUpdate(h,m)),Qs(e,br(ut=f!=null&&f.type===G&&f.key==null?f.props.children:f)?ut:[ut],t,n,r,o,i,s,a,l,u),c.base=t.__e,t.__u&=-161,c.__h.length&&s.push(c),g&&(c.__E=c.__=null)}catch(Ee){if(t.__v=null,l||i!=null){for(t.__u|=l?160:128;a&&a.nodeType===8&&a.nextSibling;)a=a.nextSibling;i[i.indexOf(a)]=null,t.__e=a}else t.__e=n.__e,t.__k=n.__k;I.__e(Ee,t,n)}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Eu(n.__e,t,n,r,o,i,s,l,u);(f=I.diffed)&&f(t)}function ta(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)Io(n[r],n[++r],n[++r]);I.__c&&I.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){I.__e(i,o.__v)}})}function Eu(e,t,n,r,o,i,s,a,l){var u,f,c,p,h,m,w,g=n.props,y=t.props,C=t.type;if(C==="svg"?o="http://www.w3.org/2000/svg":C==="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(u=0;u<i.length;u++)if((h=i[u])&&"setAttribute"in h==!!C&&(C?h.localName===C:h.nodeType===3)){e=h,i[u]=null;break}}if(e==null){if(C===null)return document.createTextNode(y);e=document.createElementNS(o,C,y.is&&y),a&&(I.__m&&I.__m(t,i),a=!1),i=null}if(C===null)g===y||a&&e.data===y||(e.data=y);else{if(i=i&&Tn.call(e.childNodes),g=n.props||Sn,!a&&i!=null)for(g={},u=0;u<e.attributes.length;u++)g[(h=e.attributes[u]).name]=h.value;for(u in g)if(h=g[u],u!="children"){if(u=="dangerouslySetInnerHTML")c=h;else if(!(u in y)){if(u=="value"&&"defaultValue"in y||u=="checked"&&"defaultChecked"in y)continue;Gn(e,u,null,h,o)}}for(u in y)h=y[u],u=="children"?p=h:u=="dangerouslySetInnerHTML"?f=h:u=="value"?m=h:u=="checked"?w=h:a&&typeof h!="function"||g[u]===h||Gn(e,u,h,g[u],o);if(f)a||c&&(f.__html===c.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(c&&(e.innerHTML=""),Qs(e,br(p)?p:[p],t,n,r,C==="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,s,i?i[0]:n.__k&&Kt(n,0),a,l),i!=null)for(u=i.length;u--;)Js(i[u]);a||(u="value",C==="progress"&&m==null?e.removeAttribute("value"):m!==void 0&&(m!==e[u]||C==="progress"&&!m||C==="option"&&m!==g[u])&&Gn(e,u,m,g[u],o),u="checked",w!==void 0&&w!==e[u]&&Gn(e,u,w,g[u],o))}return e}function Io(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(o){I.__e(o,n)}}function na(e,t,n){var r,o;if(I.unmount&&I.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Io(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){I.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&na(r[o],t,n||typeof e.type!="function");n||Js(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function ku(e,t,n){return this.constructor(e,n)}function pt(e,t,n){var r,o,i,s;I.__&&I.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],s=[],No(t,e=(!r&&n||t).__k=d(G,null,[e]),o||Sn,Sn,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?Tn.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,s),ta(i,e,s)}function Mo(e,t){pt(e,t,Mo)}function Fo(e,t,n){var r,o,i,s,a=Qe({},e.props);for(i in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i]===void 0&&s!==void 0?s[i]:t[i];return arguments.length>2&&(a.children=arguments.length>3?Tn.call(arguments,2):n),bn(e.type,a,r||e.key,o||e.ref,null)}function Se(e,t){var n={__c:t="__cC"+Ys++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,i;return this.getChildContext||(o=new Set,(i={})[t]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){o=null},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&o.forEach(function(a){a.__e=!0,ao(a)})},this.sub=function(s){o.add(s);var a=s.componentWillUnmount;s.componentWillUnmount=function(){o&&o.delete(s),a&&a.call(s)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}Tn=Ks.slice,I={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(a){e=a}throw e}},qs=0,He.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Qe({},this.state),typeof e=="function"&&(e=e(Qe({},n),this.props)),e&&Qe(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),ao(this))},He.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ao(this))},He.prototype.render=G,xt=[],Zs=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,oo=function(e,t){return e.__v.__b-t.__v.__b},nr.__r=0,Ao=0,io=Ci(!1),so=Ci(!0),Ys=0;function Po(){return(Po=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 Tu=["context","children"];function Au(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var i,s,a={},l=Object.keys(r);for(s=0;s<l.length;s++)o.indexOf(i=l[s])>=0||(a[i]=r[i]);return a}(e,Tu);return Fo(t,n)}function $u(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=d(Au,Po({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var o=[],i={},s=0,a=n.attributes,l=n.childNodes;for(s=a.length;s--;)a[s].name!=="slot"&&(i[a[s].name]=a[s].value,i[ra(a[s].name)]=a[s].value);for(s=l.length;s--;){var u=t(l[s],null),f=l[s].slot;f?i[f]=d(Si,{name:f},u):o[s]=u}var c=r?d(Si,null,o):o;return d(r||n.nodeName.toLowerCase(),i,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Mo:pt)(this._vdom,this._root)}function ra(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function Nu(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[ra(e)]=n,this._vdom=Fo(this._vdom,r),pt(this._vdom,this._root)}}function Iu(){pt(this._vdom=null,this._root)}function Si(e,t){var n=this;return d("slot",Po({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(o){o.stopPropagation(),o.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function Mu(e,t,n,r){function o(){var i=Reflect.construct(HTMLElement,[],o);return i._vdomComponent=e,i._root=i,i}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=$u,o.prototype.attributeChangedCallback=Nu,o.prototype.disconnectedCallback=Iu,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach(function(i){Object.defineProperty(o.prototype,i,{get:function(){return this._vdom.props[i]},set:function(s){this._vdom?this.attributeChangedCallback(i,null,s):(this._props||(this._props={}),this._props[i]=s,this.connectedCallback());var a=typeof s;s!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(i,s)}})}),customElements.define(t||e.tagName||e.displayName||e.name,o)}function Do(e,t){Mu(e,t)}var rt,H,zr,Ei,Jt=0,oa=[],q=I,ki=q.__b,Ti=q.__r,Ai=q.diffed,$i=q.__c,Ni=q.unmount,Ii=q.__;function Mt(e,t){q.__h&&q.__h(H,e,Jt||t),Jt=0;var n=H.__H||(H.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function X(e){return Jt=1,An(ia,e)}function An(e,t,n){var r=Mt(rt++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):ia(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=H,!H.u)){var o=function(a,l,u){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(p){return!!p.__c});if(f.every(function(p){return!p.__N}))return!i||i.call(this,a,l,u);var c=r.__c.props!==a;return f.forEach(function(p){if(p.__N){var h=p.__[0];p.__=p.__N,p.__N=void 0,h!==p.__[0]&&(c=!0)}}),i&&i.call(this,a,l,u)||c};H.u=!0;var i=H.shouldComponentUpdate,s=H.componentWillUpdate;H.componentWillUpdate=function(a,l,u){if(this.__e){var f=i;i=void 0,o(a,l,u),i=f}s&&s.call(this,a,l,u)},H.shouldComponentUpdate=o}return r.__N||r.__}function Q(e,t){var n=Mt(rt++,3);!q.__s&&Lo(n.__H,t)&&(n.__=e,n.i=t,H.__H.__h.push(n))}function Ft(e,t){var n=Mt(rt++,4);!q.__s&&Lo(n.__H,t)&&(n.__=e,n.i=t,H.__h.push(n))}function O(e){return Jt=5,ie(function(){return{current:e}},[])}function Oo(e,t,n){Jt=6,Ft(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=Mt(rt++,7);return Lo(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Re(e,t){return Jt=8,ie(function(){return e},t)}function me(e){var t=H.context[e.__c],n=Mt(rt++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(H)),t.props.value):e.__}function Ro(e,t){q.useDebugValue&&q.useDebugValue(t?t(e):e)}function Fu(e){var t=Mt(rt++,10),n=X();return t.__=e,H.componentDidCatch||(H.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function _t(){var e=Mt(rt++,11);if(!e.__){for(var t=H.__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 Pu(){for(var e;e=oa.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Yn),e.__H.__h.forEach(lo),e.__H.__h=[]}catch(t){e.__H.__h=[],q.__e(t,e.__v)}}q.__b=function(e){H=null,ki&&ki(e)},q.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Ii&&Ii(e,t)},q.__r=function(e){Ti&&Ti(e),rt=0;var t=(H=e.__c).__H;t&&(zr===H?(t.__h=[],H.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(Yn),t.__h.forEach(lo),t.__h=[],rt=0)),zr=H},q.diffed=function(e){Ai&&Ai(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(oa.push(t)!==1&&Ei===q.requestAnimationFrame||((Ei=q.requestAnimationFrame)||Du)(Pu)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),zr=H=null},q.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Yn),n.__h=n.__h.filter(function(r){return!r.__||lo(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],q.__e(r,n.__v)}}),$i&&$i(e,t)},q.unmount=function(e){Ni&&Ni(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Yn(r)}catch(o){t=o}}),n.__H=void 0,t&&q.__e(t,n.__v))};var Mi=typeof requestAnimationFrame=="function";function Du(e){var t,n=function(){clearTimeout(r),Mi&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Mi&&(t=requestAnimationFrame(n))}function Yn(e){var t=H,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),H=t}function lo(e){var t=H;e.__c=e.__(),H=t}function Lo(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function ia(e,t){return typeof t=="function"?t(e):t}function uo(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 vr(e,t){var n=t(),r=X({t:{__:n,u:t}}),o=r[0].t,i=r[1];return Ft(function(){o.__=n,o.u=t,qr(o)&&i({t:o})},[e,n,t]),Q(function(){return qr(o)&&i({t:o}),e(function(){qr(o)&&i({t:o})})},[e]),n}function qr(e){var t,n,r=e.u,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}function Ho(e){e()}function Vo(e){return e}function jo(){return[!1,Ho]}var Uo=Ft;function rr(e,t){this.props=e,this.context=t}function sa(e,t){function n(o){var i=this.props.ref,s=i==o.ref;return!s&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!s:uo(this.props,o)}function r(o){return this.shouldComponentUpdate=n,d(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(rr.prototype=new He).isPureReactComponent=!0,rr.prototype.shouldComponentUpdate=function(e,t){return uo(this.props,e)||uo(this.state,t)};var Fi=I.__b;I.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Fi&&Fi(e)};var Ou=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Go(e){function t(n){if(!("ref"in n))return e(n,null);var r=n.ref;delete n.ref;var o=e(n,r);return n.ref=r,o}return t.$$typeof=Ou,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Pi=function(e,t){return e==null?null:tt(tt(e).map(t))},aa={map:Pi,forEach:Pi,count:function(e){return e?tt(e).length:0},only:function(e){var t=tt(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:tt},Ru=I.__e;I.__e=function(e,t,n,r){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}Ru(e,t,n,r)};var Di=I.unmount;function la(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,o){for(var i in o)r[i]=o[i];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 la(r,t,n)})),e}function ua(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return ua(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 vn(){this.__u=0,this.o=null,this.__b=null}function ca(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function fa(e){var t,n,r;function o(i){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return d(n,i)}return o.displayName="Lazy",o.__f=!0,o}function Ut(){this.i=null,this.l=null}I.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Di&&Di(e)},(vn.prototype=new He).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=ca(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=ua(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)},vn.prototype.componentWillUnmount=function(){this.o=[]},vn.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]=la(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&d(G,null,e.fallback);return o&&(o.__u&=-33),[d(G,null,t.__a?null:e.children),o]};var Oi=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 Lu(e){return this.getChildContext=function(){return e.context},e.children}function Hu(e){var t=this,n=e.h;t.componentWillUnmount=function(){pt(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,o){this.childNodes.push(r),t.h.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.h.removeChild(r)}}),pt(d(Lu,{context:t.context},e.__v),t.v)}function Bo(e,t){var n=d(Hu,{__v:e,h:t});return n.containerInfo=t,n}(Ut.prototype=new He).__a=function(e){var t=this,n=ca(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Oi(t,e,r)):o()};n?n(i):i()}},Ut.prototype.render=function(e){this.i=null,this.l=new Map;var t=tt(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},Ut.prototype.componentDidUpdate=Ut.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){Oi(e,n,t)})};var da=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Vu=/^(?: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]/,ju=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Uu=/[A-Z0-9]/g,Gu=typeof document<"u",Bu=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function ha(e,t,n){return t.__k==null&&(t.textContent=""),pt(e,t),typeof n=="function"&&n(),e?e.__c:null}function pa(e,t,n){return Mo(e,t),typeof n=="function"&&n(),e?e.__c:null}He.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(He.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Ri=I.event;function Wu(){}function zu(){return this.cancelBubble}function qu(){return this.defaultPrevented}I.event=function(e){return Ri&&(e=Ri(e)),e.persist=Wu,e.isPropagationStopped=zu,e.isDefaultPrevented=qu,e.nativeEvent=e};var Wo,Zu={enumerable:!1,configurable:!0,get:function(){return this.class}},Li=I.vnode;I.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={},i=r.indexOf("-")===-1;for(var s in n){var a=n[s];if(!(s==="value"&&"defaultValue"in n&&a==null||Gu&&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"||Bu(n.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":ju.test(s)&&(s=l):l=s="oninput":i&&Vu.test(s)?s=s.replace(Uu,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&o[s=l]&&(s="oninputCapture"),o[s]=a}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=tt(n.children).forEach(function(u){u.props.selected=o.value.indexOf(u.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=tt(n.children).forEach(function(u){u.props.selected=o.multiple?o.defaultValue.indexOf(u.props.value)!=-1:o.defaultValue==u.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",Zu)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=da,Li&&Li(e)};var Hi=I.__r;I.__r=function(e){Hi&&Hi(e),Wo=e.__c};var Vi=I.diffed;I.diffed=function(e){Vi&&Vi(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),Wo=null};var ma={ReactCurrentDispatcher:{current:{readContext:function(e){return Wo.__n[e.__c].props.value},useCallback:Re,useContext:me,useDebugValue:Ro,useDeferredValue:Vo,useEffect:Q,useId:_t,useImperativeHandle:Oo,useInsertionEffect:Uo,useLayoutEffect:Ft,useMemo:ie,useReducer:An,useRef:O,useState:X,useSyncExternalStore:vr,useTransition:jo}}},Yu="18.3.1";function ga(e){return d.bind(null,e)}function tn(e){return!!e&&e.$$typeof===da}function wa(e){return tn(e)&&e.type===G}function _a(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function zo(e){return tn(e)?Fo.apply(null,arguments):e}function ya(e){return!!e.__k&&(pt(null,e),!0)}function ba(e){return e&&(e.base||e.nodeType===1&&e)||null}var va=function(e,t){return e(t)},xa=function(e,t){return e(t)},Ca=G,Sa=tn,A={useState:X,useId:_t,useReducer:An,useEffect:Q,useLayoutEffect:Ft,useInsertionEffect:Uo,useTransition:jo,useDeferredValue:Vo,useSyncExternalStore:vr,startTransition:Ho,useRef:O,useImperativeHandle:Oo,useMemo:ie,useCallback:Re,useContext:me,useDebugValue:Ro,version:"18.3.1",Children:aa,render:ha,hydrate:pa,unmountComponentAtNode:ya,createPortal:Bo,createElement:d,createContext:Se,createFactory:ga,cloneElement:zo,createRef:$o,Fragment:G,isValidElement:tn,isElement:Sa,isFragment:wa,isMemo:_a,findDOMNode:ba,Component:He,PureComponent:rr,memo:sa,forwardRef:Go,flushSync:xa,unstable_batchedUpdates:va,StrictMode:Ca,Suspense:vn,SuspenseList:Ut,lazy:fa,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ma};const co=Object.freeze(Object.defineProperty({__proto__:null,Children:aa,Component:He,Fragment:G,PureComponent:rr,StrictMode:Ca,Suspense:vn,SuspenseList:Ut,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ma,cloneElement:zo,createContext:Se,createElement:d,createFactory:ga,createPortal:Bo,createRef:$o,default:A,findDOMNode:ba,flushSync:xa,forwardRef:Go,hydrate:pa,isElement:Sa,isFragment:wa,isMemo:_a,isValidElement:tn,lazy:fa,memo:sa,render:ha,startTransition:Ho,unmountComponentAtNode:ya,unstable_batchedUpdates:va,useCallback:Re,useContext:me,useDebugValue:Ro,useDeferredValue:Vo,useEffect:Q,useErrorBoundary:Fu,useId:_t,useImperativeHandle:Oo,useInsertionEffect:Uo,useLayoutEffect:Ft,useMemo:ie,useReducer:An,useRef:O,useState:X,useSyncExternalStore:vr,useTransition:jo,version:Yu},Symbol.toStringTag,{value:"Module"})),Ku=`*,: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}.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}.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}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.mb-6{margin-bottom:1.5rem}.ml-3{margin-left:.75rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.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}.h-4{height:1rem}.h-5{height:1.25rem}.h-\\[120px\\]{height:120px}.h-\\[60px\\]{height:60px}.h-\\[72px\\]{height:72px}.h-px{height:1px}.min-h-screen{min-height:100vh}.w-16{width:4rem}.w-5{width:1.25rem}.w-96{width:24rem}.w-\\[120px\\]{width:120px}.w-\\[480px\\]{width:480px}.w-\\[600px\\]{width:600px}.w-full{width:100%}.max-w-\\[640px\\]{max-width:640px}.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}.cursor-pointer{cursor:pointer}.resize{resize:both}.list-disc{list-style-type:disc}.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}.justify-stretch{justify-content:stretch}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.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-stretch{align-self:stretch}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.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-dashed{border-style:dashed}.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-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-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.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-3{padding-left:.75rem;padding-right:.75rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.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}.pb-12{padding-bottom:3rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pl-3{padding-left:.75rem}.pr-3{padding-right:.75rem}.pt-1{padding-top:.25rem}.pt-1\\.5{padding-top:.375rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-6{padding-top:1.5rem}.pt-8{padding-top:2rem}.text-center{text-align:center}.font-sonoma{font-family:BRSonoma}.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-tight{line-height:1.25}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / 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-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-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-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}.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-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)}.outline{outline-style:solid}.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-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\\: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}`;function qe(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function Ju(e){return e!=null&&typeof e.GetEnumerator=="function"}function Xu(e){return e!=null&&typeof e.CompareTo=="function"}function Qu(e){return e!=null&&typeof e.Equals=="function"}function ec(e){return e!=null&&typeof e.GetHashCode=="function"}function fo(e){return e!=null&&typeof e.Dispose=="function"}function Y(e){fo(e)&&e.Dispose()}function ot(){return null}function or(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 tc{constructor(t){this.iter=t,this.current=ot()}"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 te(e){return Ju(e)?e.GetEnumerator():new tc(e[Symbol.iterator]())}function xr(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 U(e,t){return e.toString(10).padStart(t,"0")}function ji(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function nc(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function ze(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class ft{static id(t){return ft.idMap.has(t)||ft.idMap.set(t,++ft.count),ft.idMap.get(t)}}ft.idMap=new WeakMap;ft.count=0;function qo(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function Ke(e){return e*2654435761|0}function rc(e){return qo(e.toString(32))}function $n(e){let t=0;const n=e.length;for(let r=0;r<n;r++){const o=e[r];t=(t<<5)+t^o}return t}function oc(e){return e.getTime()}function ic(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=it(e[r]);return $n(n)}function it(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Ke(e);case"bigint":return rc(e);case"string":return qo(e);default:{if(ec(e))return e.GetHashCode();if(qe(e))return ic(e);if(e instanceof Date)return oc(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>it(r));return $n(n)}else return Ke(ft.id(e))}}}function ho(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 Ea(e,t){return ho(e,t,Ve)}function sc(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let o=0;o<n.length;o++)if(n[o]!==r[o]||!Ve(e[n[o]],t[r[o]]))return!1;return!0}function Ve(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:Qu(e)?e.Equals(t):qe(e)?qe(t)&&Ea(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&ka(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&sc(e,t)}function ka(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+ji(e),r=t.getTime()+ji(t)),n===r?0:n<r?-1:1}function Zo(e,t){return e===t?0:e<t?-1:1}function ac(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,o=0;r<e.length;r++)if(o=n(e[r],t[r]),o!==0)return o;return 0}function Ta(e,t){return ac(e,t,we)}function lc(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 o=0,i=0;o<n.length;o++){const s=n[o];if(s!==r[o])return s<r[o]?-1:1;if(i=we(e[s],t[s]),i!==0)return i}return 0}function we(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:Xu(e)?e.CompareTo(t):qe(e)?qe(t)?Ta(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?ka(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?lc(e,t):-1}function v(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function uc(e){qe(e)?e.splice(0):e.clear()}const Cr=new WeakMap;function K(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return Cr.set(t,e),t}function Ct(e){return Cr.get(e)??(t=>n=>e(t,n))}function po(e){if(e==null)return null;const t=(n,r,o)=>e(n)(r)(o);return Cr.set(t,e),t}function Zr(e){return Cr.get(e)??(t=>n=>r=>e(t,n,r))}function cc(e){let t=0,n="[";for(const r of e){if(t===0)n+=je(r);else if(t===100){n+="; ...";break}else n+="; "+je(r);t++}return n+"]"}function je(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 cc(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([o,i])=>o+" = "+je(i,t+1)).join(`
2
+ `)+" }":(r==null?void 0:r.name)??""}}return String(e)}function fc(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=je(t[0]),r=n.indexOf(" ")>=0):n=t.map(o=>je(o)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class M{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return fc(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>it(n));return t.splice(0,0,Ke(this.tag)),$n(t)}Equals(t){return this===t?!0:or(this,t)&&this.tag===t.tag?Ea(this.fields,t.fields):!1}CompareTo(t){return this===t?0:or(this,t)?this.tag===t.tag?Ta(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function dc(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function hc(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+je(n)).join(`
3
+ `)+" }"}function pc(e){const t=Object.values(e).map(n=>it(n));return $n(t)}function mc(e,t){if(e===t)return!0;if(or(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!Ve(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function gc(e,t){if(e===t)return 0;if(or(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=we(e[n[r]],t[n[r]]);if(o!==0)return o}return 0}else return-1}class B{toJSON(){return dc(this)}toString(){return hc(this)}GetHashCode(){return pc(this)}Equals(t){return mc(this,t)}CompareTo(t){return gc(this,t)}}class Ge{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 wc{constructor(t){this.message=t}}function _c(e){return e instanceof wc||e instanceof Error}function yc(e){return e instanceof Promise}function ir(e){return _c(e)||yc(e)?e:new Error(String(e))}const Yo=je(Ku),nn=Symbol("numeric");function Aa(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[nn])}function bc(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function mo(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[nn]().multiply(t)}function Kn(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[nn]().toFixed(t)}function sr(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[nn]().toPrecision(t)}function ar(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[nn]().toExponential(t)}function lr(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[nn]().toHex()}const vc=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],xc=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Cc=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Sc=["January","February","March","April","May","June","July","August","September","October","November","December"];function be(e,t,n){let r=0,o=t;for(;o<e.length&&e[o]===n;)o++,r++;return r}function Ui(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function Ec(e,t){let n=t;const r=e[t];let o="",i=!1;for(;t<e.length;){t++;const s=e[t];if(s===r){i=!0;break}else if(s==="\\")if(t<e.length)t++,o+=e[t];else throw new Error("Invalid string format");else o+=s}if(!i)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[o,t-n+1]}function Ko(e,t,n){let r=0,o=0,i="";const s=n?Nn(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(o=be(t,r,"d"),r+=o,o){case 1:i+=Bi(s);break;case 2:i+=U(Bi(s),2);break;case 3:i+=vc[qi(s)];break;case 4:i+=xc[qi(s)];break}break;case"f":if(o=be(t,r,"f"),r+=o,o<=3){const g=10**(3-o);i+=U(Math.floor(Wn(s)/g),o)}else o<=7&&(i+=(""+Wn(s)).padEnd(o,"0"));break;case"F":if(o=be(t,r,"F"),r+=o,o<=3){const g=10**(3-o),y=Math.floor(Wn(s)/g);y!=0&&(i+=U(y,o))}else if(o<=7){const g=Wn(s);g!=0&&(i+=U(g,3))}break;case"g":o=be(t,r,"g"),r+=o,o<=2&&(i+="A.D.");break;case"h":switch(o=be(t,r,"h"),r+=o,o){case 1:i+=Bn(s)%12;break;case 2:i+=U(Bn(s)%12,2);break}break;case"H":switch(o=be(t,r,"H"),r+=o,o){case 1:i+=Bn(s);break;case 2:i+=U(Bn(s),2);break}break;case"K":switch(o=be(t,r,"K"),r+=o,o){case 1:switch(Gi(s)){case 1:i+="Z";break;case 2:i+=Bt(s.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(o=be(t,r,"m"),r+=o,o){case 1:i+=Wi(s);break;case 2:i+=U(Wi(s),2);break}break;case"M":switch(o=be(t,r,"M"),r+=o,o){case 1:i+=zn(s);break;case 2:i+=U(zn(s),2);break;case 3:i+=Cc[zn(s)-1];break;case 4:i+=Sc[zn(s)-1];break}break;case"s":switch(o=be(t,r,"s"),r+=o,o){case 1:i+=zi(s);break;case 2:i+=U(zi(s),2);break}break;case"t":switch(o=be(t,r,"t"),r+=o,o){case 1:i+=s.getHours()<12?"A":"P";break;case 2:i+=s.getHours()<12?"AM":"PM";break}break;case"y":switch(o=be(t,r,"y"),r+=o,o){case 1:i+=s.getFullYear()%100;break;case 2:i+=U(s.getFullYear()%100,2);break;case 3:i+=U(s.getFullYear(),3);break;case 4:i+=U(s.getFullYear(),4);break;case 5:i+=U(s.getFullYear(),5);break}break;case"z":o=be(t,r,"z"),r+=o;let l="";switch(Gi(s)){case 1:l="+00:00";break;case 2:l=Bt(s.getTimezoneOffset()*-6e4);break;case 0:l=Bt(Pc(s).getTimezoneOffset()*-6e4);break}const u=l[0]==="-"?"-":"+",f=parseInt(l.substring(1,3),10),c=parseInt(l.substring(4,6),10);switch(o){case 1:i+=`${u}${f}`;break;case 2:i+=`${u}${U(f,2)}`;break;default:i+=`${u}${U(f,2)}:${U(c,2)}`;break}break;case":":i+=":",r++;break;case"/":i+="/",r++;break;case"'":case'"':const[p,h]=Ec(t,r);i+=p,r+=h;break;case"%":const m=Ui(t,r);if(m>=0&&m!==37)r+=2,i+=Ko(s,String.fromCharCode(m),n);else throw new Error("Invalid format string");break;case"\\":const w=Ui(t,r);if(w>=0)r+=2,i+=String.fromCharCode(w);else throw new Error("Invalid format string");break;default:r++,i+=a;break}}return i}function Gi(e){return e.kind||0}function Bt(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+U(n,2)+":"+U(r,2)}function ur(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 kc(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return U(e.getFullYear(),4)+"-"+U(e.getMonth()+1,2)+"-"+U(e.getDate(),2)+"T"+U(e.getHours(),2)+":"+U(e.getMinutes(),2)+":"+U(e.getSeconds(),2)+"."+U(e.getMilliseconds(),3)+(n?Bt(e.getTimezoneOffset()*-6e4):"")}}function Tc(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+Bt(t)}function Ac(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," ")+Bt(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return ur(n,"first");case"T":case"t":return ur(n,"second");case"O":case"o":return Tc(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return Ko(n,t,!0)}function $c(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?ur(e,"first"):e.toLocaleDateString();case"T":case"t":return n?ur(e,"second"):e.toLocaleTimeString();case"O":case"o":return kc(e,n);default:throw new Error("Unrecognized Date print format")}else return Ko(e,t,n)}function Sr(e,t,n){return e.offset!=null?Ac(e,t):$c(e,t)}function Nn(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function Nc(){return Nn(-621355968e5,1)}function $a(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 o=/^\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(o!=null){let i,s=0;if(o[2]!=null){const a=o[2].split(":"),l=parseInt(a[0],10);s=l*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),o[3]!=null&&o[3].toUpperCase()==="PM"&&l<12&&(s+=720)}if(o[4]!=null){if(o[1]!=null)i=new Date(o[1]+" UTC");else{const a=new Date;i=new Date(a.getUTCFullYear()+"/"+(a.getUTCMonth()+1)+"/"+a.getUTCDate())}if(o[4]==="Z")r="Z";else{let a=parseInt(o[5],10)*60+parseInt(o[6]||"0",10);o[4][0]==="-"&&(a*=-1),r=a,s-=a*60}}else if(o[1]!=null)i=new Date(o[1]);else{const a=new Date;i=new Date(a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.getDate())}n=new Date(i.getTime()+s*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-i.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function Ic(e,t=!1){const[n,r]=$a(e),o=r!=null?t&&r==="Z"?1:2:0;return Nn(n.getTime(),o)}function Mc(e,t){try{return t.contents=Ic(e),!0}catch{return!1}}function Fc(e){return e.kind===1?e:Nn(e.getTime(),1)}function Pc(e){return e.kind===2?e:Nn(e.getTime(),2)}function Bi(e){return e.kind===1?e.getUTCDate():e.getDate()}function Bn(e){return e.kind===1?e.getUTCHours():e.getHours()}function Wn(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function Wi(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function zn(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function zi(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function qi(e){return e.kind===1?e.getUTCDay():e.getDay()}function Dc(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 Na(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Zi(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 o,i=-1;for(;(o=e.exec(t))!=null;)o.index===i?e.lastIndex++:(i=o.index,r.push(o));return r}function Oc(e,t,n,r,o=0){function i(){let s=arguments[0];if(r){r--;const a=[],l=arguments.length,u=typeof arguments[l-1]!="string";let f=u?l-3:l-2;for(let c=0;c<f;c++)a.push(arguments[c]);a.index=arguments[f++],a.input=arguments[f++],u&&(a.groups=arguments[f]),s=n(a)}return s}if(typeof e=="string"){const s=e;e=Dc(t,r??0),t=s,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,o)+t.substring(o).replace(e,i);if(n=n.replace(/\$0/g,s=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let s;const a=t.substring(o),l=Zi(e,a),u=Zi.length>r?(s=l[r-1],a.substring(0,s.index+s[0].length)):a;return t.substring(0,o)+u.replace(e,n)+t.substring(o+u.length)}else return t.replace(e,n)}const gn=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,Rc=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Ia(e,t){return bc(e,t)<0}function Xt(e){return{input:e,cont:Vc(e)}}function Ma(e,t){return typeof t=="string"?e(t):t.cont(e)}function En(e){return Ma(t=>t,e)}function Lc(e){return Ma(t=>{throw new Error(t)},e)}function Hc(e,t,n,r,o){let i="";if(t=t||"",o=o||"",Aa(e))switch(o.toLowerCase()!=="x"&&(Ia(e,0)?(e=mo(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=r==null?null:parseInt(r,10),o){case"f":case"F":r=r??6,e=Kn(e,r);break;case"g":case"G":e=r!=null?sr(e,r):sr(e);break;case"e":case"E":e=r!=null?ar(e,r):ar(e);break;case"x":e=lr(e);break;case"X":e=lr(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=Sr(e):e=je(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=i+e;else{const s=t.indexOf("0")>=0,a=t.indexOf("-")>=0,l=a||!s?" ":"0";l==="0"?(e=kn(e,n-i.length,l,a),e=i+e):e=kn(i+e,n,l,a)}return e}function Fa(e,t,n,r="",o=-1){return(...i)=>{let s=r;const a=t.slice(),l=n.slice();for(const u of i){const[,,f,c,p,h]=l[0];let m=c;if(o>=0)m=o,o=-1;else if(m==="*"){if(u<0)throw new Error("Non-negative number required");o=u;continue}s+=a[0],s+=Hc(u,f,m,p,h),a.splice(0,1),l.splice(0,1)}return l.length===0?(s+=a[0],e(s)):Fa(e,a,l,s,o)}}function Vc(e){return t=>{gn.lastIndex=0;const n=[],r=[];let o=0,i=gn.exec(e);for(;i;){const s=i.index+(i[1]||"").length;n.push(e.substring(o,s).replace(/%%/g,"%")),r.push(i),o=gn.lastIndex,gn.lastIndex-=1,i=gn.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(o).replace(/%%/g,"%")),Fa(t,n,r))}}function jc(e,...t){let n;return n=e,n.replace(Rc,(r,o,i,s,a,l)=>{if(o<0||o>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let u=t[o];if(Aa(u))switch(a=a==null?null:parseInt(a,10),s){case"f":case"F":a=a??2,u=Kn(u,a);break;case"g":case"G":u=a!=null?sr(u,a):sr(u);break;case"e":case"E":u=a!=null?ar(u,a):ar(u);break;case"p":case"P":a=a??2,u=Kn(mo(u,100),a)+" %";break;case"d":case"D":u=a!=null?Yr(String(u),a,"0"):String(u);break;case"x":case"X":u=a!=null?Yr(lr(u),a,"0"):lr(u),s==="X"&&(u=u.toUpperCase());break;default:if(l){let f="";u=l.replace(/([0#,]+)(\.[0#]+)?/,(c,p,h)=>{Ia(u,0)&&(u=mo(u,-1),f="-"),h=h==null?"":h.substring(1),u=Kn(u,Math.max(h.length,0));let[m,w]=u.split(".");w||(w="");const g=p.replace(/,/g,"").replace(/^#+/,"").length;m=Yr(m,g,"0");const y=h.replace(/#+$/,"").length;if(y>w.length?w=Uc(w,y,"0"):y<w.length&&(w=w.substring(0,y)+w.substring(y).replace(/0+$/,"")),p.indexOf(",")>0){const C=m.length%3,E=Math.floor(m.length/3);let N=C>0?m.substr(0,C)+(E>0?",":""):"";for(let j=0;j<E;j++)N+=m.substr(C+j*3,3)+(j<E-1?",":"");m=N}return w.length>0?m+"."+w:m}),u=f+u}}else u instanceof Date?u=Sr(u,l||s):u=je(u);return i=parseInt((i||" ").substring(1),10),isNaN(i)||(u=kn(String(u),Math.abs(i)," ",i<0)),u})}function Jo(e){return typeof e!="string"||e.length===0}function Ze(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function kn(e,t,n,r){n=n||" ",t=t-e.length;for(let o=0;o<t;o++)e=r?e+n:n+e;return e}function Yr(e,t,n){return kn(e,t,n)}function Uc(e,t,n){return kn(e,t,n,!0)}function Gc(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 o=(r&1)===1,i=(r&2)===2;t=t||[],t=t.filter(f=>f).map(Na),t=t.length>0?t:["\\s"];const s=[],a=new RegExp(t.join("|"),"g");let l=!0,u=0;do{const f=a.exec(e);if(f===null){const c=i?e.substring(u).trim():e.substring(u);(!o||c.length>0)&&s.push(c),l=!1}else{const c=i?e.substring(u,f.index).trim():e.substring(u,f.index);(!o||c.length>0)&&(n!=null&&s.length+1===n?(s.push(i?e.substring(u).trim():e.substring(u)),l=!1):s.push(c)),u=a.lastIndex}}while(l);return s}function Bc(e,...t){if(t.length===0)return e.trim();const n="["+Na(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}class $t{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return it(this.value)}Equals(t){return t==null?!1:Ve(this.value,t instanceof $t?t.value:t)}CompareTo(t){return t==null?1:we(this.value,t instanceof $t?t.value:t)}}function S(e){if(e==null)throw new Error("Option has no value");return e instanceof $t?e.value:e}function Pa(e){return e instanceof $t?e.value:e}function $e(e){return e==null||e instanceof $t?new $t(e):e}function Wc(e){return e==null?[]:[S(e)]}function Er(e,t){return e!=null?S(e):t}function Xo(e,t){return t!=null?$e(e(S(t))):void 0}class zc{constructor(t,n,r,o){this.declaringType=t,this.tag=n,this.name=r,this.fields=o}}class Ie{constructor(t,n,r,o,i,s,a){this.fullname=t,this.generics=n,this.construct=r,this.parent=o,this.fields=i,this.cases=s,this.enumCases=a}toString(){return le(this)}GetHashCode(){return Da(this)}Equals(t){return go(this,t)}}function Je(e){return e.generics!=null?e.generics:[]}function Da(e){const t=qo(e.fullname),n=Je(e).map(Da);return $n([t,...n])}function go(e,t){return e.fullname===""?t.fullname===""&&ho(dr(e),dr(t),([n,r],[o,i])=>n===o&&go(r,i)):e.fullname===t.fullname&&ho(Je(e),Je(t),go)}function Nt(e,t,n,r){return new Ie(e,t,n,r)}function Pt(e,t,n,r){return new Ie(e,t,n,void 0,r)}function Oa(e,t,n,r){const o=new Ie(e,t,n,void 0,void 0,()=>{const i=n.prototype.cases();return r().map((s,a)=>new zc(o,a,i[a],s))});return o}function Wt(e){return new Ie("Microsoft.FSharp.Core.FSharpOption`1",[e])}function cr(e){return new Ie("Microsoft.FSharp.Collections.FSharpList`1",[e])}const qc=new Ie("System.Object"),fr=new Ie("System.String"),Ae=new Ie("System.Int32");function Qo(e){if(Array.isArray(e))return e[0];if(e instanceof Ie){const t=kr(e);if(t!=null)return Qo(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function le(e){const t=kr(e);return t!=null?le(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>le(n)).join(",")+"]"}function Zc(e){return kr(e)!=null}function kr(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function Yc(e){return e.generics!=null&&e.generics.length>0}function Ra(e){return e.enumCases!=null&&e.enumCases.length>0}function Kc(e){return e.generics==null?e:new Ie(e.fullname,e.generics.map(()=>qc))}function Jc(e){var t;return(t=e.generics)==null?void 0:t[0]}function Lt(e){if(Ra(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function Xc(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 Ht(e,t){const n=parseInt(t,10);return Xc(e,isNaN(n)?t:n)[1]}function Qc(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function dr(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function ef(e){if(La(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function tf(e){return e instanceof Ie?e.cases!=null:e instanceof M}function nf(e){return e instanceof Ie?e.fields!=null:e instanceof B}function La(e){return e.fullname.startsWith("System.Tuple")}function rf(e){return e.fields==null?[]:e.fields}function of(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 sf(e,t){const n=dr(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,[o,i],s)=>(r[o]=t[s],r),{})}function af(e,t){return e}const Ha="Collection was empty.",lf="The input must be non-negative.",Va="The input sequence has an insufficient number of elements.";function ja(e,t){return new Array(t)}function Yi(e,t){return e>t?e:t}function Ki(e,t){return e<t?e:t}function ei(e,t,n,r){const o=t|0;return e.fill(r,o,o+n)}function Tr(e,t,n){const r=t.length|0,o=ja(n,r);for(let i=0;i<=r-1;i++)mt(o,i,e(de(i,t)));return o}function uf(e,t){const n=ja(t,1);return mt(n,0,e),n}function cf(e){return e.slice().reverse()}function ff(e,t){return t.find(e)}function df(e,t,n){const r=[];for(let o=0;o<=t.length-1;o++){const i=e(de(o,t));if(i!=null){const s=S(i);r.push(s)}}return Ve(n,ot())?r:Tr(o=>o,r,n)}function Ar(e,t,n){const r=e;return n.reduce(r,t)}function de(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 mt(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 Ua(e,t,n){return t.reduceRight((r,o)=>e(o,r),n)}class _e extends B{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+Ze("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((o,i)=>{e:for(;;){const s=o,a=i,l=s.tail,u=a.tail;if(l!=null)if(u!=null){const f=S(l),c=S(u);if(Ve(s.head,a.head)){o=f,i=c;continue e}else return!1}else return!1;else return u==null}})(n,t)}GetHashCode(){return((r,o,i)=>{e:for(;;){const s=r,a=o,l=i,u=l.tail;if(u!=null){const f=S(u);if(s>18)return a|0;r=s+1,o=(a<<1)+it(l.head)+631*s,i=f;continue e}else return a|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((o,i)=>{e:for(;;){const s=o,a=i,l=s.tail,u=a.tail;if(l!=null)if(u!=null){const f=S(l),c=S(u),p=we(s.head,a.head)|0;if(p===0){o=f,i=c;continue e}else return p|0}else return 1;else return u!=null?-1:0}})(this,t)|0}GetEnumerator(){return pf(this)}[Symbol.iterator](){return xr(te(this))}"System.Collections.IEnumerable.GetEnumerator"(){return te(this)}}class hf{constructor(t){this.xs=t,this.it=this.xs,this.current=ot()}"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=S(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=ot()}Dispose(){}}function pf(e){return new hf(e)}function re(){return new _e(ot(),void 0)}function In(e,t){return new _e(e,t)}function Mn(e){return e.tail==null}function Ga(e){return((n,r)=>{e:for(;;){const o=n,s=r.tail;if(s!=null){n=o+1,r=S(s);continue e}else return o|0}})(0,e)|0}function ti(e){if(e.tail!=null)return e.head;throw new Error(Ha+"\\nParameter name: list")}function Ne(e){const t=e.tail;if(t!=null)return S(t);throw new Error(Ha+"\\nParameter name: list")}function se(){return re()}function Te(e,t){return In(e,t)}function L(e){return In(e,re())}function P(e){return Mn(e)}function Ba(e){return Ga(e)}function T(e){return ti(e)}function F(e){return Ne(e)}function rn(e){const t=Ga(e)|0,n=ei(new Array(t),0,t,null);return((o,i)=>{e:for(;;){const s=o,a=i;if(!Mn(a)){mt(n,s,ti(a)),o=s+1,i=Ne(a);continue e}break}})(0,e),n}function lt(e,t,n){let r=t,o=n;for(;!Mn(o);)r=e(r,T(o)),o=Ne(o);return r}function ni(e){return lt((t,n)=>In(n,t),re(),e)}function mf(e,t,n){return Ua(e,rn(t),n)}function hr(e,t){lt((n,r)=>{e(r)},void 0,t)}function z(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=In(de(r,e),n);return n}function b(e){return z(e,re())}function gf(e){let t,n;if(qe(e))return b(e);if(e instanceof _e)return e;{const r=re();let o=r;const i=te(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const l=i["System.Collections.Generic.IEnumerator`1.get_Current"]();o=(t=o,n=new _e(l,void 0),t.tail=n,n)}}finally{Y(i)}const s=o,a=re();return s.tail=a,Ne(r)}}function $r(e,t){return lt((n,r)=>In(r,n),t,ni(e))}function Fn(e,t){const n=re(),r=lt((i,s)=>{const a=new _e(e(s),void 0);return i.tail=a,a},n,t),o=re();return r.tail=o,Ne(n)}function Wa(e,t){const n=re(),r=lt((i,s)=>{if(e(s)){const a=new _e(s,void 0);return i.tail=a,a}else return i},n,t),o=re();return r.tail=o,Ne(n)}function wf(e,t){const n=re(),r=re(),o=n,i=lt((l,u)=>{let f,c;const p=l[0],h=l[1];return e(u)?[(f=new _e(u,void 0),p.tail=f,f),h]:[p,(c=new _e(u,void 0),h.tail=c,c)]},[o,r],t),s=re();i[0].tail=s;const a=re();return i[1].tail=a,[Ne(o),Ne(r)]}function _f(e,t){const n=re(),r=lt((i,s)=>{const a=e(s);if(a==null)return i;{const l=new _e(S(a),void 0);return i.tail=l,l}},n,t),o=re();return r.tail=o,Ne(n)}function za(e,t){const n=rn(t);return n.sort(e),b(n)}function yf(e,t,n){return za((r,o)=>n.Compare(e(r),e(o)),t)}function bf(e,t,n){return za((r,o)=>n.Compare(e(r),e(o))*-1,t)}function vf(e,t){e:for(;;){const n=e,r=t;if(n<=0)return r;if(Mn(r))throw new Error(Va+"\\nParameter name: list");e=n-1,t=Ne(r);continue e}}function xf(e,t){if(e<0)throw new Error(lf+"\\nParameter name: count");const n=(s,a,l)=>{let u;e:for(;;){const f=s,c=a,p=l;if(f<=0)return c;if(Mn(p))throw new Error(Va+"\\nParameter name: list");s=f-1,a=(u=new _e(ti(p),void 0),c.tail=u,u),l=Ne(p);continue e}},r=re(),o=n(e,r,t),i=re();return o.tail=i,Ne(r)}const x=A;function Cf(e){const t=b([d("style",{children:[Yo]}),d("div",{className:"text-blue-500",children:`Welcome to apollo-import-workspace-app, with backend url ${e.backendUrl}`})]);return d("div",{children:x.Children.toArray(Array.from(t))})}class Sf{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,o=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(o)}}}Dispose(){}}class ri extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,ri.prototype)}}class oi{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>oi.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function dt(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new ri);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(ir(n))}});else try{e(t)}catch(n){t.onError(ir(n))}}}function Ef(e,t){return dt(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(o){n.onError(ir(o))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function kf(e){return dt(t=>t.onSuccess(e))}class Tf{Bind(t,n){return Ef(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return dt(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let o=r.next();return this.While(()=>!o.done,this.Delay(()=>{const i=n(o.value);return o=r.next(),i}))}Return(t){return kf(t)}ReturnFrom(t){return t}TryFinally(t,n){return dt(r=>{t({onSuccess:o=>{n(),r.onSuccess(o)},onError:o=>{n(),r.onError(o)},onCancel:o=>{n(),r.onCancel(o)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return dt(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:o=>{try{n(o)(r)}catch(i){r.onError(ir(i))}}})})}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 dt(t=>t.onSuccess(void 0))}}const ke=new Tf;function Af(e){return new qa(0,[e])}function $f(e){return new qa(1,[e])}class qa extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function Nf(e){return Af(e)}function If(e){return $f(e)}function Kr(e){}const Mf=new Sf;function Ff(e){return dt(t=>{e({onSuccess:n=>t.onSuccess(Nf(n)),onError:n=>t.onSuccess(If(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function Pf(e){return dt(t=>e([t.onSuccess,t.onError,t.onCancel]))}function Df(e,t){return Rf(e,t)}function Of(e,t){return Df(e,t)}function Rf(e,t,n,r,o){typeof t!="function"&&(o=t,t=void 0);const i=new oi;e({onSuccess:t||Kr,onError:Kr,onCancel:Kr,cancelToken:o||Mf,trampoline:i})}class Za extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class Lf extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class ii extends B{constructor(t,n,r,o,i,s,a,l){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=o,this.overridenMimeType=i,this.overridenResponseType=s,this.timeout=a,this.content=l}}class jt extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Ya extends B{constructor(t,n,r,o,i,s){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=o,this.responseHeaders=i,this.content=s}}function Hf(e){throw new Error(e)}const Vf="Enumeration already finished.",jf="Enumeration has not started. Call MoveNext.",Ka="The input sequence has an insufficient number of elements.",Uf="Reset is not supported on this enumerator.";function Gf(){throw new Error(Uf)}function si(){throw new Error(jf)}function wo(){throw new Error(Vf)}class Bf{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const o=te(t);try{for(;n<4&&o["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+je(o["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{Y(o)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return xr(te(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function Wf(e){return new Bf(e)}class zf{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"(){Gf()}Dispose(){this.dispose()}}function Nr(e,t,n){return new zf(e,t,n)}function qf(e){let t,n,r=!1,o=!1,i;const s=()=>{if(o=!0,n!=null){const a=S(n);try{Y(a)}finally{n=void 0}}if(t!=null){const a=S(t);try{Y(a)}finally{t=void 0}}};return Nr(()=>(r?o&&wo():si(),i!=null?S(i):wo()),()=>{let a;if(r||(r=!0),o)return!1;{let l;for(;l==null;){const u=t,f=n;if(u!=null)if(f!=null){const c=S(f);if(c["System.Collections.IEnumerator.MoveNext"]())i=$e(c["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{Y(c)}finally{n=void 0}}else{const c=S(u);c["System.Collections.IEnumerator.MoveNext"]()?n=(a=c["System.Collections.Generic.IEnumerator`1.get_Current"](),te(a)):(s(),l=!1)}else t=te(e)}return S(l)}},()=>{o||s()})}function Zf(e,t){return Nr(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{Y(t)}finally{}})}function Ja(e,t,n){let r=!1,o,i=$e(e());const s=()=>{if(i!=null){const l=S(i);try{n(l)}finally{i=void 0}}},a=()=>{try{s()}finally{o=void 0}};return Nr(()=>(r||si(),o!=null?S(o):wo()),()=>{if(r||(r=!0),i!=null){const l=S(i);let u;try{u=t(l)}catch(f){throw a(),f}return u!=null?(o=u,!0):(a(),!1)}else return!1},s)}function Yf(e,t){let n,r=t;return Nr(()=>{if(n!=null){const o=S(n)[0];return S(n)[1],o}else return si()},()=>(n=e(r),n!=null?(S(n)[0],r=S(n)[1],!0):!1),()=>{})}function Kf(e,t){t==null&&Hf(e)}function on(e){return Wf(e)}function It(e){return Kf("source",e),te(e)}function oe(e){return on(()=>te(e()))}function Xa(e){return on(()=>qf(e))}function Jf(e,t){return on(()=>Yf(e,t))}function ue(e){return oe(()=>uf(e))}function Xf(e){return e instanceof _e?rn(e):Array.from(e)}function sn(e){return qe(e)?b(e):e instanceof _e?e:gf(e)}function Qf(e,t,n){return on(()=>Ja(e,t,n))}function ed(e,t,n){return on(()=>{let r=-1;return Ja(e,o=>(r=r+1|0,t(r,o)),n)})}function st(e,t){return Xa([e,t])}function td(e,t,n){const r=It(t);try{const o=It(n);try{let i=0,s=r["System.Collections.IEnumerator.MoveNext"](),a=o["System.Collections.IEnumerator.MoveNext"]();for(;i===0&&s&&a;)i=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),o["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,i===0&&(s=r["System.Collections.IEnumerator.MoveNext"](),a=o["System.Collections.IEnumerator.MoveNext"]());return(i!==0?i:s?1:a?-1:0)|0}finally{Y(o)}}finally{Y(r)}}function Vt(e,t,n){const r=It(t);try{let o=!1;for(;!o&&r["System.Collections.IEnumerator.MoveNext"]();)o=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{Y(r)}}function Qa(e,t,n){const r=It(n);try{let o=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)o=e(o,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{Y(r)}}function el(e,t){Qa((n,r)=>{e(r)},void 0,t)}function et(e,t){return Qf(()=>It(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?$e(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{Y(n)})}function nd(e){return oe(()=>cf(Xf(e)))}function rd(e,t){return on(()=>{const n=It(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Ka+"\\nParameter name: source");return Zf(()=>{},n)}catch(r){throw Y(n),r}})}function od(e,t){return ed(()=>It(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return $e(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(Ka+"\\nParameter name: source")}else return},n=>{Y(n)})}function id(e,t){return oe(()=>Xa(et(e,t)))}class tl{constructor(t,n){this.k=t,this.v=n}}function pr(e,t){return new tl(e,t)}function he(e){return e.k}function Ce(e){return e.v}class ee extends tl{constructor(t,n,r,o,i){super(t,n),this.left=r,this.right=o,this.h=i|0}}function Jn(e,t,n,r,o){return new ee(e,t,n,r,o)}function ce(e){return e.left}function fe(e){return e.right}function kt(e){return e.h}function nl(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=S(r);if(o instanceof ee){const i=o;e=nl(n+1,ce(i)),t=fe(i);continue e}else return n+1|0}else return n|0}}function sd(e){return nl(0,e)}function Fe(e,t,n,r){let o,i,s;const a=e;if(a!=null){const c=S(a);s=c instanceof ee?(o=c,kt(o)):1}else s=0;let l;const u=r;if(u!=null){const c=S(u);l=c instanceof ee?(i=c,kt(i)):1}else l=0;const f=(s<l?l:s)|0;return f===0?pr(t,n):Jn(t,n,e,r,f+1)}function Ji(e,t,n,r){let o,i,s,a,l,u,f,c,p;const h=e;if(h!=null){const g=S(h);p=g instanceof ee?(o=g,kt(o)):1}else p=0;let m;const w=r;if(w!=null){const g=S(w);m=g instanceof ee?(i=g,kt(i)):1}else m=0;if(m>p+2){const g=S(r);if(g instanceof ee){const y=g;if(s=ce(y),(s!=null?(a=S(s),a instanceof ee?(l=a,kt(l)):1):0)>p+1){const C=S(ce(y));if(C instanceof ee){const E=C;return Fe(Fe(e,t,n,ce(E)),he(E),Ce(E),Fe(fe(E),he(y),Ce(y),fe(y)))}else throw new Error("internal error: Map.rebalance")}else return Fe(Fe(e,t,n,ce(y)),he(y),Ce(y),fe(y))}else throw new Error("internal error: Map.rebalance")}else if(p>m+2){const g=S(e);if(g instanceof ee){const y=g;if(u=fe(y),(u!=null?(f=S(u),f instanceof ee?(c=f,kt(c)):1):0)>m+1){const C=S(fe(y));if(C instanceof ee){const E=C;return Fe(Fe(ce(y),he(y),Ce(y),ce(E)),he(E),Ce(E),Fe(fe(E),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Fe(ce(y),he(y),Ce(y),Fe(fe(y),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Fe(e,t,n,r)}function Qt(e,t,n,r){if(r!=null){const o=S(r),i=e.Compare(t,he(o))|0;if(o instanceof ee){const s=o;return i<0?Ji(Qt(e,t,n,ce(s)),he(s),Ce(s),fe(s)):i===0?Jn(t,n,ce(s),fe(s),kt(s)):Ji(ce(s),he(s),Ce(s),Qt(e,t,n,fe(s)))}else return i<0?Jn(t,n,void 0,r,2):i===0?pr(t,n):Jn(t,n,r,void 0,2)}else return pr(t,n)}function rl(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=S(i),a=r.Compare(o,he(s))|0;if(a===0)return $e(Ce(s));if(s instanceof ee){const l=s;e=r,t=o,n=a<0?ce(l):fe(l);continue e}else return}else return}}function ad(e,t,n){const r=rl(e,t,n);if(r==null)throw new Error;return S(r)}function ld(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=S(i),a=r.Compare(o,he(s))|0;if(s instanceof ee){const l=s;if(a<0){e=r,t=o,n=ce(l);continue e}else{if(a===0)return!0;e=r,t=o,n=fe(l);continue e}}else return a===0}else return!1}}function ol(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=S(r);if(o instanceof ee){const i=o;ol(n,ce(i)),n(he(i),Ce(i)),e=n,t=fe(i);continue e}else n(he(o),Ce(o))}break}}function ud(e,t){ol(e,t)}function cd(e,t,n){let r=n;ud((o,i)=>{mt(t,r,[o,i]),r=r+1|0},e)}function fd(e,t){return lt((n,r)=>Qt(e,r[0],r[1],n),void 0,t)}function dd(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){const s=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=Qt(r,s[0],s[1],o),n=i;continue e}else return o}}function hd(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=de(r,t);n=Qt(e,o[0],o[1],n)}return n}function il(e,t){if(qe(t))return hd(e,t);if(t instanceof _e)return fd(e,t);{const n=te(t);try{return dd(e,void 0,n)}finally{Y(n)}}}class pd extends B{constructor(t,n){super(),this.stack=t,this.started=n}}function sl(e){e:for(;;){const t=e;if(P(t))return se();{const n=F(t),r=T(t);if(r!=null){const o=S(r);if(o instanceof ee){const i=o;e=z([ce(i),pr(he(i),Ce(i)),fe(i)],n);continue e}else return t}else{e=n;continue e}}}}function Xi(e){return new pd(sl(L(e)),!1)}function md(){throw new Error("enumeration not started")}function gd(){throw new Error("enumeration already finished")}function Qi(e){if(e.started){const t=e.stack;if(P(t))return gd();if(T(t)!=null){const n=S(T(t));if(n instanceof ee)throw new Error("Please report error: Map iterator, unexpected stack for current");return[he(n),Ce(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return md()}function wd(e){if(e.started){const t=e.stack;if(P(t))return!1;if(T(t)!=null){if(S(T(t))instanceof ee)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=sl(F(t)),!P(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!P(e.stack)}function es(e){let t=Xi(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Qi(t)},"System.Collections.IEnumerator.get_Current"(){return Qi(t)},"System.Collections.IEnumerator.MoveNext"(){return wd(t)},"System.Collections.IEnumerator.Reset"(){t=Xi(e)},Dispose(){}}}class mr{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return vd(this)|0}Equals(t){const n=this;if(t instanceof mr){const r=t,o=te(n);try{const i=te(r);try{const s=()=>{const a=o["System.Collections.IEnumerator.MoveNext"]();if(a===i["System.Collections.IEnumerator.MoveNext"]())if(a){const l=o["System.Collections.Generic.IEnumerator`1.get_Current"](),u=i["System.Collections.Generic.IEnumerator`1.get_Current"]();return Ve(l[0],u[0])&&Ve(l[1],u[1])?s():!1}else return!0;else return!1};return s()}finally{Y(i)}}finally{Y(o)}}else return!1}toString(){return"map ["+Ze("; ",et(n=>jc("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return es(this.tree)}[Symbol.iterator](){return xr(te(this))}"System.Collections.IEnumerable.GetEnumerator"(){return es(this.tree)}CompareTo(t){const n=this;if(t instanceof mr)return td((o,i)=>{const s=n.comparer.Compare(o[0],i[0])|0;return(s!==0?s:we(o[1],i[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 ns(n,t[0])&&Ve(ts(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){cd(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Jr(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Jr(this)|0}get size(){return Jr(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return et(n=>[n[0],n[1]],this)}get(t){return ts(this,t)}has(t){return ns(this,t)}keys(){return et(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return et(n=>n[1],this)}forEach(t,n){const r=this;el(o=>{t(o[1],o[0],r)},r)}}function Ir(e,t){return new mr(e,t)}function _d(e){return Ir(e,void 0)}function yd(e,t,n){return Ir(e.comparer,Qt(e.comparer,t,n,e.tree))}function ts(e,t){return ad(e.comparer,t,e.tree)}function Jr(e){return sd(e.tree)}function ns(e,t){return ld(e.comparer,t,e.tree)}function bd(e,t){return rl(e.comparer,t,e.tree)}function vd(e){const t=(o,i)=>(o<<1)+i+631;let n=0;const r=te(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const o=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,it(o[0]))|0,n=t(n,it(o[1]))|0}}finally{Y(r)}return n|0}function xd(e,t,n){return yd(n,e,t)}function Cd(e,t){return bd(t,e)}function Sd(e,t){return Ir(t,il(t,e))}function Ed(e,t){return Ir(t,il(t,e))}function al(e){return _d(e)}const bt=new ii("",new Za(0,[]),se(),!1,void 0,void 0,void 0,new Lf(0,[]));new Ya(0,"","","",al({Compare:Zo}),new jt(0,[""]));function rs(e,t){return Jo(t)?new Array(0):Gc(t,[e],void 0,0)}function kd(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 Td(e){return new ii(e,bt.method,bt.headers,bt.withCredentials,bt.overridenMimeType,bt.overridenResponseType,bt.timeout,bt.content)}function Ad(e,t){return new ii(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function $d(e){return Pf(t=>{const n=new XMLHttpRequest;n.open(kd(e.method),e.url),n.onreadystatechange=()=>{let l,u,f,c,p,h,m;n.readyState===4&&t[0]((l=(u=n.responseType,u===""||u==="text"?n.responseText:""),f=n.status|0,c=n.responseType,p=(h=n.responseType,h===""?new jt(0,[n.responseText]):h==="text"?new jt(0,[n.responseText]):h==="arraybuffer"?new jt(2,[n.response]):h==="blob"?new jt(1,[n.response]):new jt(3,[n.response])),m=Ed(df(w=>{const g=b(rs(":",w));if(!P(g))return[T(g).toLocaleLowerCase(),Ze(":",F(g)).trim()]},rs(`\r
4
+ `,n.getAllResponseHeaders())),{Compare:Zo}),new Ya(f,l,c,n.responseURL,m,p)))};const r=te(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{Y(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(o!=null){const l=o;n.overrideMimeType(l)}const i=e.overridenResponseType;if(i!=null)switch(i.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($e(a.fields[0]));break}case 3:{n.send($e(a.fields[0]));break}case 2:{n.send($e(a.fields[0]));break}default:n.send()}})}function Nd(e){return new _(0,[e])}function ll(e){return new _(1,[e])}class _ extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function at(e,t){return t.tag===0?Nd(e(t.fields[0])):ll(t.fields[0])}function Id(e,t){return t.tag===0?e(t.fields[0]):ll(t.fields[0])}const St={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function Xr(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 Md(e,t){switch(t){case St.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case St.SnakeCase:return Xr(e,"_");case St.SnakeCaseAllCaps:return Xr(e,"_").toUpperCase();case St.KebabCase:return Xr(e,"-");case St.None:default:return e}}function ai(e,t=St.None){const n={},r=t;function o(s){throw new Error("Cannot infer key and value of "+String(s))}function i(s,a,l){s=Md(s,a),n[s]=l}for(let s of e){let a=St.None;if(s==null&&o(s),s instanceof M){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:o(s);break;case 1:i(s[0],a,!0);break;case 2:const l=s[1];i(s[0],a,l);break;default:i(s[0],a,s.slice(1))}else typeof s=="string"?i(s,a,!0):o(s)}return n}class k extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class ul extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function os(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Fd(e,t){switch(e.tag){case 2:return Oc(os(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return os(t)}}const Pd=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,is=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Dd=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Od(e){function t(r){return r.replace(is,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Pd.test(n))return Bc(n,"{","}","(",")");if(is.test(n))return t(n);if(Dd.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 Rd(e,t){try{return t.contents=Od(e),!0}catch{return!1}}var _o;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(_o||(_o={}));function Ld(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}function ss(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 Hd(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 Vd(e,t){if(t&_o.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 jd(e,t,n){const o=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(o!=null){const[,,i,s]=o;if(n=n||Vd(i,t),!Hd(n).test(s))return Ld(o,n)}return null}function Ud(e,t,n,r,o){const i=jd(e,t,o);if(i!=null){let s=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(s)){const[a,l]=ss(!0,r);!n&&i.radix!==10&&s>=a&&s<=l&&(s=s<<32-r>>32-r);const[u,f]=ss(n,r);if(s>=u&&s<=f)return s}}throw new Error(`The input string ${e} was not in a correct format.`)}function an(e,t,n,r,o){try{return o.contents=Ud(e,t,n,r),!0}catch{return!1}}function cl(e,t){Gd(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function Gd(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 Bd(){return cl(-621355968e5,0)}function Wd(e){const[t,n]=$a(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return cl(t.getTime(),r)}function zd(e,t){try{return t.contents=Wd(e),!0}catch{return!1}}function as(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return qd(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],o=0;break}return e*864e5+t*36e5+n*6e4+r*1e3+o}function qd(e){return Number(BigInt(e)/10000n)}function Zd(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 as(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 o=0,i=0,s=0;const a=r[1]!=null&&r[1]==="-"?-1:1,l=+r[4],u=+r[5];if(r[3]!=null&&(o=+r[3]),r[7]!=null&&(s=+r[7]),r[8]!=null)switch(r[8].length){case 1:i=+r[8]*100;break;case 2:i=+r[8]*10;break;case 3:i=+r[8];break;case 4:i=+r[8]/10;break;case 5:i=+r[8]/100;break;case 6:i=+r[8]/1e3;break;case 7:i=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return a*as(o,l,u,s,i)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function Yd(e,t){try{return t.contents=Zd(e),!0}catch{return!1}}class fl{constructor(t){this.k=t}}function ve(e){return new fl(e)}function $(e){return e.k}class D extends fl{constructor(t,n,r,o){super(t),this.left=n,this.right=r,this.h=o|0}}function xe(e,t,n,r){return new D(e,t,n,r)}function V(e){return e.left}function R(e){return e.right}function Gt(e){return e.h}function dl(e,t){e:for(;;){const n=e,r=t;if(n!=null){const o=S(n);if(o instanceof D){const i=o;e=V(i),t=dl(R(i),r+1);continue e}else return r+1|0}else return r|0}}function Kd(e){return dl(e,0)}function Pe(e,t,n){let r,o,i;const s=e;if(s!=null){const f=S(s);i=f instanceof D?(r=f,Gt(r)):1}else i=0;let a;const l=n;if(l!=null){const f=S(l);a=f instanceof D?(o=f,Gt(o)):1}else a=0;const u=(i<a?a:i)|0;return u===0?ve(t):xe(t,e,n,u+1)}function ls(e,t,n){let r,o,i,s,a,l,u,f,c;const p=e;if(p!=null){const w=S(p);c=w instanceof D?(r=w,Gt(r)):1}else c=0;let h;const m=n;if(m!=null){const w=S(m);h=w instanceof D?(o=w,Gt(o)):1}else h=0;if(h>c+2){const w=S(n);if(w instanceof D){const g=w;if(i=V(g),(i!=null?(s=S(i),s instanceof D?(a=s,Gt(a)):1):0)>c+1){const y=S(V(g));if(y instanceof D){const C=y;return Pe(Pe(e,t,V(C)),$(C),Pe(R(C),$(g),R(g)))}else throw new Error("internal error: Set.rebalance")}else return Pe(Pe(e,t,V(g)),$(g),R(g))}else throw new Error("internal error: Set.rebalance")}else if(c>h+2){const w=S(e);if(w instanceof D){const g=w;if(l=R(g),(l!=null?(u=S(l),u instanceof D?(f=u,Gt(f)):1):0)>h+1){const y=S(R(g));if(y instanceof D){const C=y;return Pe(Pe(V(g),$(g),V(C)),$(C),Pe(R(C),t,n))}else throw new Error("internal error: Set.rebalance")}else return Pe(V(g),$(g),Pe(R(g),t,n))}else throw new Error("internal error: Set.rebalance")}else return Pe(e,t,n)}function en(e,t,n){if(n!=null){const r=S(n),o=e.Compare(t,$(r))|0;if(r instanceof D){const i=r;return o<0?ls(en(e,t,V(i)),$(i),R(i)):o===0?n:ls(V(i),$(i),en(e,t,R(i)))}else{const i=e.Compare(t,$(r))|0;return i<0?xe(t,void 0,n,2):i===0?n:xe(t,n,void 0,2)}}else return ve(t)}function hl(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=S(i),a=r.Compare(o,$(s))|0;if(s instanceof D){const l=s;if(a<0){e=r,t=o,n=V(l);continue e}else{if(a===0)return!0;e=r,t=o,n=R(l);continue e}}else return a===0}else return!1}}function pl(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=S(r);if(o instanceof D){const i=o;pl(n,V(i)),n($(i)),e=n,t=R(i);continue e}else n($(o))}break}}class Jd extends B{constructor(t,n){super(),this.stack=t,this.started=n}}function ml(e){e:for(;;){const t=e;if(P(t))return se();{const n=T(t),r=F(t);if(n!=null){const o=S(n);if(o instanceof D){const i=o;e=z([V(i),ve($(i)),R(i)],r);continue e}else return t}else{e=r;continue e}}}}function us(e){return new Jd(ml(L(e)),!1)}function Xd(){throw new Error("Enumeration not started")}function Qd(){throw new Error("Enumeration already started")}function cs(e){if(e.started){const t=e.stack;if(P(t))return Qd();if(T(t)!=null){const n=S(T(t));return $(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return Xd()}function eh(e){if(e.started){const t=e.stack;if(P(t))return!1;if(T(t)!=null){if(S(T(t))instanceof D)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=ml(F(t)),!P(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!P(e.stack)}function fs(e){let t=us(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return cs(t)},"System.Collections.IEnumerator.get_Current"(){return cs(t)},"System.Collections.IEnumerator.MoveNext"(){return eh(t)},"System.Collections.IEnumerator.Reset"(){t=us(e)},Dispose(){}}}function th(e,t,n){e:for(;;){const r=e,o=t,i=n;if(P(o))return P(i)?0:-1;if(P(i))return 1;if(T(i)!=null)if(T(o)!=null){const s=S(T(o)),a=S(T(i));if(s instanceof D){const l=s;if(V(l)==null)if(a instanceof D){const u=a;if(V(u)==null){const f=r.Compare($(l),$(u))|0;if(f!==0)return f|0;e=r,t=Te(R(l),F(o)),n=Te(R(u),F(i));continue e}else{let f,c,p,h,m;switch(P(o)?P(i)?f=2:T(i)!=null?(f=1,h=F(i),m=S(T(i))):f=2:T(o)!=null?(f=0,c=F(o),p=S(T(o))):P(i)?f=2:T(i)!=null?(f=1,h=F(i),m=S(T(i))):f=2,f){case 0:if(p instanceof D){const w=p;e=r,t=z([V(w),xe($(w),void 0,R(w),0)],c),n=i;continue e}else{e=r,t=z([void 0,ve($(p))],c),n=i;continue e}case 1:if(m instanceof D){const w=m;e=r,t=o,n=z([V(w),xe($(w),void 0,R(w),0)],h);continue e}else{e=r,t=o,n=z([void 0,ve($(m))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const u=r.Compare($(l),$(a))|0;if(u!==0)return u|0;e=r,t=Te(R(l),F(o)),n=Te(void 0,F(i));continue e}else{let u,f,c,p,h;switch(P(o)?P(i)?u=2:T(i)!=null?(u=1,p=F(i),h=S(T(i))):u=2:T(o)!=null?(u=0,f=F(o),c=S(T(o))):P(i)?u=2:T(i)!=null?(u=1,p=F(i),h=S(T(i))):u=2,u){case 0:if(c instanceof D){const m=c;e=r,t=z([V(m),xe($(m),void 0,R(m),0)],f),n=i;continue e}else{e=r,t=z([void 0,ve($(c))],f),n=i;continue e}case 1:if(h instanceof D){const m=h;e=r,t=o,n=z([V(m),xe($(m),void 0,R(m),0)],p);continue e}else{e=r,t=o,n=z([void 0,ve($(h))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof D){const l=a;if(V(l)==null){const u=r.Compare($(s),$(l))|0;if(u!==0)return u|0;e=r,t=Te(void 0,F(o)),n=Te(R(l),F(i));continue e}else{let u,f,c,p,h;switch(P(o)?P(i)?u=2:T(i)!=null?(u=1,p=F(i),h=S(T(i))):u=2:T(o)!=null?(u=0,f=F(o),c=S(T(o))):P(i)?u=2:T(i)!=null?(u=1,p=F(i),h=S(T(i))):u=2,u){case 0:if(c instanceof D){const m=c;e=r,t=z([V(m),xe($(m),void 0,R(m),0)],f),n=i;continue e}else{e=r,t=z([void 0,ve($(c))],f),n=i;continue e}case 1:if(h instanceof D){const m=h;e=r,t=o,n=z([V(m),xe($(m),void 0,R(m),0)],p);continue e}else{e=r,t=o,n=z([void 0,ve($(h))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare($(s),$(a))|0;if(l!==0)return l|0;e=r,t=F(o),n=F(i);continue e}}else{S(T(i));let s,a,l,u,f;switch(P(o)?P(i)?s=2:T(i)!=null?(s=1,u=F(i),f=S(T(i))):s=2:T(o)!=null?(s=0,a=F(o),l=S(T(o))):P(i)?s=2:T(i)!=null?(s=1,u=F(i),f=S(T(i))):s=2,s){case 0:if(l instanceof D){const c=l;e=r,t=z([V(c),xe($(c),void 0,R(c),0)],a),n=i;continue e}else{e=r,t=z([void 0,ve($(l))],a),n=i;continue e}case 1:if(f instanceof D){const c=f;e=r,t=o,n=z([V(c),xe($(c),void 0,R(c),0)],u);continue e}else{e=r,t=o,n=z([void 0,ve($(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(T(o)!=null){S(T(o));let s,a,l,u,f;switch(P(o)?P(i)?s=2:T(i)!=null?(s=1,u=F(i),f=S(T(i))):s=2:T(o)!=null?(s=0,a=F(o),l=S(T(o))):P(i)?s=2:T(i)!=null?(s=1,u=F(i),f=S(T(i))):s=2,s){case 0:if(l instanceof D){const c=l;e=r,t=z([V(c),xe($(c),void 0,R(c),0)],a),n=i;continue e}else{e=r,t=z([void 0,ve($(l))],a),n=i;continue e}case 1:if(f instanceof D){const c=f;e=r,t=o,n=z([V(c),xe($(c),void 0,R(c),0)],u);continue e}else{e=r,t=o,n=z([void 0,ve($(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=F(o),n=F(i);continue e}}}function ds(e,t,n){return t==null?n==null?0:-1:n==null?1:th(e,L(t),L(n))|0}function nh(e,t,n){let r=n;pl(o=>{mt(t,r,o),r=r+1|0},e)}function rh(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){e=r,t=en(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i;continue e}else return o}}function oh(e,t){return Ar((n,r)=>en(e,r,n),void 0,t)}function ih(e,t){return lt((n,r)=>en(e,r,n),void 0,t)}function gl(e,t){if(qe(t))return oh(e,t);if(t instanceof _e)return ih(e,t);{const n=te(t);try{return rh(e,void 0,n)}finally{Y(n)}}}class li{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return lh(this)|0}Equals(t){let n;const r=this;return t instanceof li&&(n=t,ds(zt(r),De(r),De(n))===0)}toString(){return"set ["+Ze("; ",et(n=>je(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return ds(zt(n),De(n),De(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 hl(zt(n),t,De(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){nh(De(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Qr(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Qr(this)|0}GetEnumerator(){return fs(De(this))}[Symbol.iterator](){return xr(te(this))}"System.Collections.IEnumerable.GetEnumerator"(){return fs(De(this))}get size(){return Qr(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 wl(this,t)}keys(){return et(n=>n,this)}values(){return et(n=>n,this)}entries(){return et(n=>[n,n],this)}forEach(t,n){const r=this;el(o=>{t(o,o,r)},r)}}function Mr(e,t){return new li(e,t)}function zt(e){return e.comparer}function De(e){return e.tree}function sh(e){return Mr(e,void 0)}function ah(e,t){return Mr(zt(e),en(zt(e),t,De(e)))}function Qr(e){return Kd(De(e))}function wl(e,t){return hl(zt(e),t,De(e))}function lh(e){let t=0;const n=te(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+it(r)+631|0}}finally{Y(n)}return Math.abs(t)|0}function yo(e,t){return wl(t,e)}function uh(e,t){return ah(t,e)}function ch(e){return sh(e)}function fh(e,t){return Mr(t,gl(t,e))}function dh(e,t){return Mr(t,gl(t,e))}function wn(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 sp(e,t){const n=t.tag===2?mn(t.fields[0],t.fields[1],!0):t.tag===1?mn(t.fields[0],t.fields[1],!1)+`
7
- Reason: `+t.fields[2]:t.tag===3?mn(t.fields[0],t.fields[1],!0):t.tag===4?mn(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
6
+ `:" ")}}function hh(e,t){const n=t.tag===2?wn(t.fields[0],t.fields[1],!0):t.tag===1?wn(t.fields[0],t.fields[1],!1)+`
7
+ Reason: `+t.fields[2]:t.tag===3?wn(t.fields[0],t.fields[1],!0):t.tag===4?wn(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
- `+wt(`
10
+ `+Ze(`
11
11
 
12
- `,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:mn(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function pl(e,t,n){const r=t(e,n);if(r.tag===1){const o=r.fields[0];return new _(1,[sp(o[0],o[1])])}else return new _(0,[r.fields[0]])}function ap(e,t){try{return pl("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new _(1,["Given an invalid JSON: "+n.message]);throw n}}function hl(e,t){return typeof t=="string"?new _(0,[t]):new _(1,[[e,new k(0,["a string",t])]])}function lp(e,t){if(typeof t=="string"){const n=t;return n.length===1?new _(0,[n[0]]):new _(1,[[e,new k(0,["a single character string",t])]])}else return new _(1,[[e,new k(0,["a char",t])]])}function up(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[Id(t,new Ge(()=>r,o=>{r=o})),r],n[0]?new _(0,[n[1]]):new _(1,[[e,new k(0,["a guid",t])]])}else return new _(1,[[e,new k(0,["a guid",t])]])}function cp(e,t){return t==null?new _(0,[void 0]):new _(1,[[e,new k(0,["null",t])]])}const ds=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-128<=o&&o<=127?new _(0,[(o+128&255)-128]):new _(1,[[n,new k(1,["a sbyte",o,"Value was either too large or too small for a sbyte"])]]):new _(1,[[n,new k(1,["a sbyte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[sn(r,511,!1,8,new Ge(()=>i,s=>{i=s|0})),i],o[0]?new _(0,[o[1]]):new _(1,[[n,new k(0,["a sbyte",r])]])}else return new _(1,[[n,new k(0,["a sbyte",r])]])},ps=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=255?new _(0,[o&255]):new _(1,[[n,new k(1,["a byte",o,"Value was either too large or too small for a byte"])]]):new _(1,[[n,new k(1,["a byte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[sn(r,511,!0,8,new Ge(()=>i,s=>{i=s})),i],o[0]?new _(0,[o[1]]):new _(1,[[n,new k(0,["a byte",r])]])}else return new _(1,[[n,new k(0,["a byte",r])]])},hs=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-32768<=o&&o<=32767?new _(0,[(o+32768&65535)-32768]):new _(1,[[n,new k(1,["an int16",o,"Value was either too large or too small for an int16"])]]):new _(1,[[n,new k(1,["an int16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[sn(r,511,!1,16,new Ge(()=>i,s=>{i=s|0})),i],o[0]?new _(0,[o[1]]):new _(1,[[n,new k(0,["an int16",r])]])}else return new _(1,[[n,new k(0,["an int16",r])]])},ms=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=65535?new _(0,[o&65535]):new _(1,[[n,new k(1,["an uint16",o,"Value was either too large or too small for an uint16"])]]):new _(1,[[n,new k(1,["an uint16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[sn(r,511,!0,16,new Ge(()=>i,s=>{i=s})),i],o[0]?new _(0,[o[1]]):new _(1,[[n,new k(0,["an uint16",r])]])}else return new _(1,[[n,new k(0,["an uint16",r])]])},gs=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-2147483648<=o&&o<=2147483647?new _(0,[~~o]):new _(1,[[n,new k(1,["an int",o,"Value was either too large or too small for an int"])]]):new _(1,[[n,new k(1,["an int",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[sn(r,511,!1,32,new Ge(()=>i,s=>{i=s|0})),i],o[0]?new _(0,[o[1]]):new _(1,[[n,new k(0,["an int",r])]])}else return new _(1,[[n,new k(0,["an int",r])]])},ws=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=4294967295?new _(0,[o>>>0]):new _(1,[[n,new k(1,["an uint32",o,"Value was either too large or too small for an uint32"])]]):new _(1,[[n,new k(1,["an uint32",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[sn(r,511,!0,32,new Ge(()=>i,s=>{i=s})),i],o[0]?new _(0,[o[1]]):new _(1,[[n,new k(0,["an uint32",r])]])}else return new _(1,[[n,new k(0,["an uint32",r])]])};function fp(e,t){return typeof t=="boolean"?new _(0,[t]):new _(1,[[e,new k(0,["a boolean",t])]])}function dp(e,t){return typeof t=="number"?new _(0,[t]):new _(1,[[e,new k(0,["a float",t])]])}function pp(e,t){return typeof t=="number"?new _(0,[t]):new _(1,[[e,new k(0,["a float32",t])]])}function hp(e,t){if(typeof t=="string"){let n,r=vc();return n=[Cc(t,new Ge(()=>r,o=>{r=o})),r],n[0]?new _(0,[Sc(n[1])]):new _(1,[[e,new k(0,["a datetime",t])]])}else return new _(1,[[e,new k(0,["a datetime",t])]])}function mp(e,t){if(typeof t=="string"){let n,r=Rd();return n=[Hd(t,new Ge(()=>r,o=>{r=o})),r],n[0]?new _(0,[n[1]]):new _(1,[[e,new k(0,["a datetimeoffset",t])]])}else return new _(1,[[e,new k(0,["a datetime",t])]])}function gp(e,t){if(typeof t=="string"){let n,r=0;return n=[Ud(t,new Ge(()=>r,o=>{r=o})),r],n[0]?new _(0,[n[1]]):new _(1,[[e,new k(0,["a timespan",t])]])}else return new _(1,[[e,new k(0,["a timespan",t])]])}function _s(e,t,n,r){let o;const i=n+".["+We(e)+"]";if(Array.isArray(r)){const s=r;return e<s.length?t(i,de(e,s)):new _(1,[[i,new k(5,["a longer array. Need index `"+We(e)+"` but there are only `"+(o=s.length,We(o))+"` entries",r])]])}else return new _(1,[[i,new k(0,["an array",r])]])}function wp(e,t,n){return n==null?new _(0,[void 0]):st(Ie,e(t,n))}function ys(e,t,n){if(Array.isArray(n)){let r=-1;return st(ei,Sr((o,i)=>{if(r=r+1|0,o.tag===0){const s=e(t+".["+We(r)+"]",i);return s.tag===0?new _(0,[$e(s.fields[0],o.fields[0])]):new _(1,[s.fields[0]])}else return o},new _(0,[se()]),n))}else return new _(1,[[t,new k(0,["a list",n])]])}function _p(e,t,n){if(Array.isArray(n)){let r=-1;return st(Yf,Sr((o,i)=>{if(r=r+1|0,o.tag===0){const s=e(t+".["+We(r)+"]",i);return s.tag===0?new _(0,[it([s.fields[0]],o.fields[0])]):new _(1,[s.fields[0]])}else return o},new _(0,[[]]),n))}else return new _(1,[[t,new k(0,["a seq",n])]])}function bs(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return Sr((i,s)=>{if(r=r+1|0,i.tag===0){const a=i.fields[0],l=e(t+".["+We(r)+"]",s);return l.tag===0?(ht(a,r,l.fields[0]),new _(0,[a])):new _(1,[l.fields[0]])}else return i},new _(0,[Xo(new Array(o.length),0,o.length,null)]),o)}else return new _(1,[[t,new k(0,["an array",n])]])}function yp(e,t,n){return((o,i)=>{e:for(;;){const s=o,a=i;if(F(s))return new _(1,[[t,new k(7,[a])]]);{const l=pl(t,K(T(s)),n);if(l.tag===1){o=M(s),i=ti(a,U(l.fields[0]));continue e}else return new _(0,[l.fields[0]])}}})(e,se())}function bp(e,t,n){return new _(0,[e])}function vs(e,t,n,r){const o=t(n,r);return o.tag===0?e(o.fields[0],n,r):new _(1,[o.fields[0]])}function vp(e,t,n,r){const o=t(n,r);return o.tag===1?new _(1,[o.fields[0]]):new _(0,[e(o.fields[0])])}function xp(e,t){let n;const r=e;return n=o=>i=>_s(0,r,o,i),o=>i=>vs(lo(s=>{let a;const l=t;return a=u=>f=>_s(1,l,u,f),u=>f=>vs((c,h,d)=>bp([s,c]),K(a),u,f)}),K(n),o,i)}function Cp(e){return wd(e,{Compare:we})}function Sp(e){return ip(e,{Compare:we})}function Ep(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?Ra((r,o)=>{const i=r[0];return o.tag===0?st(s=>$e(s,o.fields[0]),r[1](t+"."+i)(n[i])):o},e,new _(0,[se()])):new _(1,[[t,new k(0,["an object",n])]])}function kp(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?Za((o,i)=>{if(o.tag===0){const s=e(n,i);if(s.tag===0){const a=t(n+"."+i,r[i]);return a.tag===0?new _(0,[$e([s.fields[0],a.fields[0]],o.fields[0])]):new _(1,[a.fields[0]])}else return new _(1,[s.fields[0]])}else return o},new _(0,[se()]),Object.keys(r)):new _(1,[[n,new k(0,["an object",r])]])}function ml(e,t,n,r){let o;const i=t.length+e|0;if(i!==r.length)return new _(1,[[n,new k(6,[(o=r.length|0,Cn(Xt("Expected array of length %i but got %i"))(i)(o))])]]);{let s=new _(0,[se()]);for(let a=e;a<=r.length-1;a++)if(s.tag===0){const l=s.fields[0],u=Cn(Xt("%s[%i]"))(n)(a),f=de(a-e,t),c=de(a,r);s=st(h=>$e(h,l),f(u)(c))}return st(ei,s)}}function xs(e,t,n,r,o,i){const s=rf(a=>Jo(a)===r,Wc(n));if(s!=null){const a=s,l=Cr(u=>Re(e,t,!1,u[1]),Kc(a));return st(u=>Jc(a,rn(u)),l.length===0&&i.length<=1?new _(0,[se()]):ml(1,l,o,i))}else return new _(1,[[o,new k(6,["Cannot find case "+r+" in "+le(n)])]])}function Cs(e,t,n,r){let o;const i=new Ge(rt());let s;const a=le(r);s=a===""?e:md(a,i,e);let l;if(Yc(r)){const u=Cr(f=>[kd(t,Jo(f)),Re(s,t,!1,f[1])],cr(r));l=f=>c=>st(h=>Xc(r,rn(h)),Ep(u,f,c))}else if(Zc(r))l=u=>f=>{if(typeof f=="string")return xs(s,t,r,f,u,[]);if(Array.isArray(f)){const c=f;return Sd(h=>xs(s,t,r,h,u,c),hl(u+"[0]",de(0,c)))}else return new _(1,[[u,new k(0,["a string or array",f])]])};else if(n)l=u=>f=>new _(1,[[u,new k(2,["an extra coder for "+le(r),f])]]);else throw new Error((o=le(r),Cn(Xt(`Cannot generate auto decoder for %s. Please pass an extra decoder.
12
+ `,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:wn(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function _l(e,t,n){const r=t(e,n);if(r.tag===1){const o=r.fields[0];return new _(1,[hh(o[0],o[1])])}else return new _(0,[r.fields[0]])}function ph(e,t){try{return _l("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new _(1,["Given an invalid JSON: "+n.message]);throw n}}function yl(e,t){return typeof t=="string"?new _(0,[t]):new _(1,[[e,new k(0,["a string",t])]])}function mh(e,t){if(typeof t=="string"){const n=t;return n.length===1?new _(0,[n[0]]):new _(1,[[e,new k(0,["a single character string",t])]])}else return new _(1,[[e,new k(0,["a char",t])]])}function gh(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[Rd(t,new Ge(()=>r,o=>{r=o})),r],n[0]?new _(0,[n[1]]):new _(1,[[e,new k(0,["a guid",t])]])}else return new _(1,[[e,new k(0,["a guid",t])]])}function wh(e,t){return t==null?new _(0,[void 0]):new _(1,[[e,new k(0,["null",t])]])}const hs=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-128<=o&&o<=127?new _(0,[(o+128&255)-128]):new _(1,[[n,new k(1,["a sbyte",o,"Value was either too large or too small for a sbyte"])]]):new _(1,[[n,new k(1,["a sbyte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[an(r,511,!1,8,new Ge(()=>i,s=>{i=s|0})),i],o[0]?new _(0,[o[1]]):new _(1,[[n,new k(0,["a sbyte",r])]])}else return new _(1,[[n,new k(0,["a sbyte",r])]])},ps=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=255?new _(0,[o&255]):new _(1,[[n,new k(1,["a byte",o,"Value was either too large or too small for a byte"])]]):new _(1,[[n,new k(1,["a byte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[an(r,511,!0,8,new Ge(()=>i,s=>{i=s})),i],o[0]?new _(0,[o[1]]):new _(1,[[n,new k(0,["a byte",r])]])}else return new _(1,[[n,new k(0,["a byte",r])]])},ms=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-32768<=o&&o<=32767?new _(0,[(o+32768&65535)-32768]):new _(1,[[n,new k(1,["an int16",o,"Value was either too large or too small for an int16"])]]):new _(1,[[n,new k(1,["an int16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[an(r,511,!1,16,new Ge(()=>i,s=>{i=s|0})),i],o[0]?new _(0,[o[1]]):new _(1,[[n,new k(0,["an int16",r])]])}else return new _(1,[[n,new k(0,["an int16",r])]])},gs=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=65535?new _(0,[o&65535]):new _(1,[[n,new k(1,["an uint16",o,"Value was either too large or too small for an uint16"])]]):new _(1,[[n,new k(1,["an uint16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[an(r,511,!0,16,new Ge(()=>i,s=>{i=s})),i],o[0]?new _(0,[o[1]]):new _(1,[[n,new k(0,["an uint16",r])]])}else return new _(1,[[n,new k(0,["an uint16",r])]])},ws=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-2147483648<=o&&o<=2147483647?new _(0,[~~o]):new _(1,[[n,new k(1,["an int",o,"Value was either too large or too small for an int"])]]):new _(1,[[n,new k(1,["an int",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[an(r,511,!1,32,new Ge(()=>i,s=>{i=s|0})),i],o[0]?new _(0,[o[1]]):new _(1,[[n,new k(0,["an int",r])]])}else return new _(1,[[n,new k(0,["an int",r])]])},_s=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=4294967295?new _(0,[o>>>0]):new _(1,[[n,new k(1,["an uint32",o,"Value was either too large or too small for an uint32"])]]):new _(1,[[n,new k(1,["an uint32",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[an(r,511,!0,32,new Ge(()=>i,s=>{i=s})),i],o[0]?new _(0,[o[1]]):new _(1,[[n,new k(0,["an uint32",r])]])}else return new _(1,[[n,new k(0,["an uint32",r])]])};function _h(e,t){return typeof t=="boolean"?new _(0,[t]):new _(1,[[e,new k(0,["a boolean",t])]])}function yh(e,t){return typeof t=="number"?new _(0,[t]):new _(1,[[e,new k(0,["a float",t])]])}function bh(e,t){return typeof t=="number"?new _(0,[t]):new _(1,[[e,new k(0,["a float32",t])]])}function vh(e,t){if(typeof t=="string"){let n,r=Nc();return n=[Mc(t,new Ge(()=>r,o=>{r=o})),r],n[0]?new _(0,[Fc(n[1])]):new _(1,[[e,new k(0,["a datetime",t])]])}else return new _(1,[[e,new k(0,["a datetime",t])]])}function xh(e,t){if(typeof t=="string"){let n,r=Bd();return n=[zd(t,new Ge(()=>r,o=>{r=o})),r],n[0]?new _(0,[n[1]]):new _(1,[[e,new k(0,["a datetimeoffset",t])]])}else return new _(1,[[e,new k(0,["a datetime",t])]])}function Ch(e,t){if(typeof t=="string"){let n,r=0;return n=[Yd(t,new Ge(()=>r,o=>{r=o})),r],n[0]?new _(0,[n[1]]):new _(1,[[e,new k(0,["a timespan",t])]])}else return new _(1,[[e,new k(0,["a timespan",t])]])}function ys(e,t,n,r){let o;const i=n+".["+ze(e)+"]";if(Array.isArray(r)){const s=r;return e<s.length?t(i,de(e,s)):new _(1,[[i,new k(5,["a longer array. Need index `"+ze(e)+"` but there are only `"+(o=s.length,ze(o))+"` entries",r])]])}else return new _(1,[[i,new k(0,["an array",r])]])}function Sh(e,t,n){return n==null?new _(0,[void 0]):at($e,e(t,n))}function bs(e,t,n){if(Array.isArray(n)){let r=-1;return at(ni,Ar((o,i)=>{if(r=r+1|0,o.tag===0){const s=e(t+".["+ze(r)+"]",i);return s.tag===0?new _(0,[Te(s.fields[0],o.fields[0])]):new _(1,[s.fields[0]])}else return o},new _(0,[se()]),n))}else return new _(1,[[t,new k(0,["a list",n])]])}function Eh(e,t,n){if(Array.isArray(n)){let r=-1;return at(nd,Ar((o,i)=>{if(r=r+1|0,o.tag===0){const s=e(t+".["+ze(r)+"]",i);return s.tag===0?new _(0,[st([s.fields[0]],o.fields[0])]):new _(1,[s.fields[0]])}else return o},new _(0,[[]]),n))}else return new _(1,[[t,new k(0,["a seq",n])]])}function vs(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return Ar((i,s)=>{if(r=r+1|0,i.tag===0){const a=i.fields[0],l=e(t+".["+ze(r)+"]",s);return l.tag===0?(mt(a,r,l.fields[0]),new _(0,[a])):new _(1,[l.fields[0]])}else return i},new _(0,[ei(new Array(o.length),0,o.length,null)]),o)}else return new _(1,[[t,new k(0,["an array",n])]])}function kh(e,t,n){return((o,i)=>{e:for(;;){const s=o,a=i;if(P(s))return new _(1,[[t,new k(7,[a])]]);{const l=_l(t,K(T(s)),n);if(l.tag===1){o=F(s),i=$r(a,L(l.fields[0]));continue e}else return new _(0,[l.fields[0]])}}})(e,se())}function Th(e,t,n){return new _(0,[e])}function xs(e,t,n,r){const o=t(n,r);return o.tag===0?e(o.fields[0],n,r):new _(1,[o.fields[0]])}function Ah(e,t,n,r){const o=t(n,r);return o.tag===1?new _(1,[o.fields[0]]):new _(0,[e(o.fields[0])])}function $h(e,t){let n;const r=e;return n=o=>i=>ys(0,r,o,i),o=>i=>xs(po(s=>{let a;const l=t;return a=u=>f=>ys(1,l,u,f),u=>f=>xs((c,p,h)=>Th([s,c]),K(a),u,f)}),K(n),o,i)}function Nh(e){return Sd(e,{Compare:we})}function Ih(e){return dh(e,{Compare:we})}function Mh(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?Ua((r,o)=>{const i=r[0];return o.tag===0?at(s=>Te(s,o.fields[0]),r[1](t+"."+i)(n[i])):o},e,new _(0,[se()])):new _(1,[[t,new k(0,["an object",n])]])}function Fh(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?Qa((o,i)=>{if(o.tag===0){const s=e(n,i);if(s.tag===0){const a=t(n+"."+i,r[i]);return a.tag===0?new _(0,[Te([s.fields[0],a.fields[0]],o.fields[0])]):new _(1,[a.fields[0]])}else return new _(1,[s.fields[0]])}else return o},new _(0,[se()]),Object.keys(r)):new _(1,[[n,new k(0,["an object",r])]])}function bl(e,t,n,r){let o;const i=t.length+e|0;if(i!==r.length)return new _(1,[[n,new k(6,[(o=r.length|0,En(Xt("Expected array of length %i but got %i"))(i)(o))])]]);{let s=new _(0,[se()]);for(let a=e;a<=r.length-1;a++)if(s.tag===0){const l=s.fields[0],u=En(Xt("%s[%i]"))(n)(a),f=de(a-e,t),c=de(a,r);s=at(p=>Te(p,l),f(u)(c))}return at(ni,s)}}function Cs(e,t,n,r,o,i){const s=ff(a=>Qo(a)===r,Qc(n));if(s!=null){const a=s,l=Tr(u=>Oe(e,t,!1,u[1]),rf(a));return at(u=>of(a,rn(u)),l.length===0&&i.length<=1?new _(0,[se()]):bl(1,l,o,i))}else return new _(1,[[o,new k(6,["Cannot find case "+r+" in "+le(n)])]])}function Ss(e,t,n,r){let o;const i=new Ge(ot());let s;const a=le(r);s=a===""?e:xd(a,i,e);let l;if(nf(r)){const u=Tr(f=>[Fd(t,Qo(f)),Oe(s,t,!1,f[1])],dr(r));l=f=>c=>at(p=>sf(r,rn(p)),Mh(u,f,c))}else if(tf(r))l=u=>f=>{if(typeof f=="string")return Cs(s,t,r,f,u,[]);if(Array.isArray(f)){const c=f;return Id(p=>Cs(s,t,r,p,u,c),yl(u+"[0]",de(0,c)))}else return new _(1,[[u,new k(0,["a string or array",f])]])};else if(n)l=u=>f=>new _(1,[[u,new k(2,["an extra coder for "+le(r),f])]]);else throw new Error((o=le(r),En(Xt(`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`))(o)));return i.contents=l,l}function Re(e,t,n,r){let o,i,s,a;const l=le(r),u=gd(l,e);if(u==null)if(jc(r)){const f=Re(e,t,!1,xr(r));return c=>h=>bs(K(f),c,h)}else if(Ma(r))switch(le(Bc(r))){case"System.SByte":return c=>h=>{const d=r,m=c,w=h,g=ds(m)(w);if(g.tag===1)return new _(1,[g.fields[0]]);{const y=g.fields[0]|0;return Ht(y,Rt(d),{Equals:(b,E)=>b===E,GetHashCode:Ye})?new _(0,[Lt(d,y.toString())]):new _(1,[[m,new k(1,[le(d),w,"Unkown value provided for the enum"])]])}};case"System.Byte":return c=>h=>{const d=r,m=c,w=h,g=ps(m)(w);if(g.tag===1)return new _(1,[g.fields[0]]);{const y=g.fields[0];return Ht(y,Rt(d),{Equals:(b,E)=>b===E,GetHashCode:Ye})?new _(0,[Lt(d,y.toString())]):new _(1,[[m,new k(1,[le(d),w,"Unkown value provided for the enum"])]])}};case"System.Int16":return c=>h=>{const d=r,m=c,w=h,g=hs(m)(w);if(g.tag===1)return new _(1,[g.fields[0]]);{const y=g.fields[0]|0;return Ht(y,Rt(d),{Equals:(b,E)=>b===E,GetHashCode:Ye})?new _(0,[Lt(d,qu(y))]):new _(1,[[m,new k(1,[le(d),w,"Unkown value provided for the enum"])]])}};case"System.UInt16":return c=>h=>{const d=r,m=c,w=h,g=ms(m)(w);if(g.tag===1)return new _(1,[g.fields[0]]);{const y=g.fields[0];return Ht(y,Rt(d),{Equals:(b,E)=>b===E,GetHashCode:Ye})?new _(0,[Lt(d,y.toString())]):new _(1,[[m,new k(1,[le(d),w,"Unkown value provided for the enum"])]])}};case"System.Int32":return c=>h=>{const d=r,m=c,w=h,g=gs(m)(w);if(g.tag===1)return new _(1,[g.fields[0]]);{const y=g.fields[0]|0;return Ht(y,Rt(d),{Equals:(b,E)=>b===E,GetHashCode:Ye})?new _(0,[Lt(d,We(y))]):new _(1,[[m,new k(1,[le(d),w,"Unkown value provided for the enum"])]])}};case"System.UInt32":return c=>h=>{const d=r,m=c,w=h,g=ws(m)(w);if(g.tag===1)return new _(1,[g.fields[0]]);{const y=g.fields[0];return Ht(y,Rt(d),{Equals:(b,E)=>b===E,GetHashCode:Ye})?new _(0,[Lt(d,y.toString())]):new _(1,[[m,new k(1,[le(d),w,"Unkown value provided for the enum"])]])}};default:{const c=le(r),h=Ac(Xt(`Cannot generate auto decoder for %s.
14
+ Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(o)));return i.contents=l,l}function Oe(e,t,n,r){let o,i,s,a;const l=le(r),u=Cd(l,e);if(u==null)if(Zc(r)){const f=Oe(e,t,!1,kr(r));return c=>p=>vs(K(f),c,p)}else if(Ra(r))switch(le(Jc(r))){case"System.SByte":return c=>p=>{const h=r,m=c,w=p,g=hs(m)(w);if(g.tag===1)return new _(1,[g.fields[0]]);{const y=g.fields[0]|0;return Vt(y,Lt(h),{Equals:(C,E)=>C===E,GetHashCode:Ke})?new _(0,[Ht(h,y.toString())]):new _(1,[[m,new k(1,[le(h),w,"Unkown value provided for the enum"])]])}};case"System.Byte":return c=>p=>{const h=r,m=c,w=p,g=ps(m)(w);if(g.tag===1)return new _(1,[g.fields[0]]);{const y=g.fields[0];return Vt(y,Lt(h),{Equals:(C,E)=>C===E,GetHashCode:Ke})?new _(0,[Ht(h,y.toString())]):new _(1,[[m,new k(1,[le(h),w,"Unkown value provided for the enum"])]])}};case"System.Int16":return c=>p=>{const h=r,m=c,w=p,g=ms(m)(w);if(g.tag===1)return new _(1,[g.fields[0]]);{const y=g.fields[0]|0;return Vt(y,Lt(h),{Equals:(C,E)=>C===E,GetHashCode:Ke})?new _(0,[Ht(h,nc(y))]):new _(1,[[m,new k(1,[le(h),w,"Unkown value provided for the enum"])]])}};case"System.UInt16":return c=>p=>{const h=r,m=c,w=p,g=gs(m)(w);if(g.tag===1)return new _(1,[g.fields[0]]);{const y=g.fields[0];return Vt(y,Lt(h),{Equals:(C,E)=>C===E,GetHashCode:Ke})?new _(0,[Ht(h,y.toString())]):new _(1,[[m,new k(1,[le(h),w,"Unkown value provided for the enum"])]])}};case"System.Int32":return c=>p=>{const h=r,m=c,w=p,g=ws(m)(w);if(g.tag===1)return new _(1,[g.fields[0]]);{const y=g.fields[0]|0;return Vt(y,Lt(h),{Equals:(C,E)=>C===E,GetHashCode:Ke})?new _(0,[Ht(h,ze(y))]):new _(1,[[m,new k(1,[le(h),w,"Unkown value provided for the enum"])]])}};case"System.UInt32":return c=>p=>{const h=r,m=c,w=p,g=_s(m)(w);if(g.tag===1)return new _(1,[g.fields[0]]);{const y=g.fields[0];return Vt(y,Lt(h),{Equals:(C,E)=>C===E,GetHashCode:Ke})?new _(0,[Ht(h,y.toString())]):new _(1,[[m,new k(1,[le(h),w,"Unkown value provided for the enum"])]])}};default:{const c=le(r),p=Lc(Xt(`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 d=>h(d)}}else if(Uc(r))if(Fa(r)){const f=Cr(c=>Re(e,t,!1,c),qc(r));return c=>h=>Array.isArray(h)?st(d=>Qc(rn(d)),ml(0,f,c,h)):new _(1,[[c,new k(0,["an array",h])]])}else switch(le(Gc(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return o=Re(e,t,!0,de(0,Ke(r))),c=>h=>wp(K(o),c,h);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return i=Re(e,t,!1,de(0,Ke(r))),c=>h=>ys(K(i),c,h);case"System.Collections.Generic.IEnumerable`1[System.Object]":return s=Re(e,t,!1,de(0,Ke(r))),c=>h=>_p(K(s),c,h);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const c=Re(e,t,!1,de(0,Ke(r))),h=Re(e,t,!1,de(1,Ke(r)));let d;const m=v([w=>g=>kp(K(c),K(h),w,g),(a=xp(K(c),K(h)),w=>g=>ys(K(a),w,g))]);return d=w=>g=>yp(m,w,g),w=>g=>vp(Cp,K(d),w,g)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const c=Re(e,t,!1,de(0,Ke(r)));return h=>d=>{const m=bs(K(c),h,d);return m.tag===0?new _(0,[Sp(m.fields[0])]):new _(1,[m.fields[0]])}}default:return Cs(e,t,n,r)}else switch(l){case"System.Boolean":return f=>c=>fp(f,c);case"Microsoft.FSharp.Core.Unit":return f=>c=>cp(f,c);case"System.String":return f=>c=>hl(f,c);case"System.Char":return f=>c=>lp(f,c);case"System.SByte":return ds;case"System.Byte":return ps;case"System.Int16":return hs;case"System.UInt16":return ms;case"System.Int32":return gs;case"System.UInt32":return ws;case"System.Double":return f=>c=>dp(f,c);case"System.Single":return f=>c=>pp(f,c);case"System.DateTime":return f=>c=>hp(f,c);case"System.DateTimeOffset":return f=>c=>mp(f,c);case"System.TimeSpan":return f=>c=>gp(f,c);case"System.Guid":return f=>c=>up(f,c);case"System.Object":return f=>c=>new _(0,[c]);default:return Cs(e,t,n,r)}else{const f=u;return c=>h=>f.contents(c)(h)}}function Tp(e){return nl({Compare:zo})}function $p(e,t,n){const r=Yo(t,new ol(0,[]));return Re(Tp(),r,!1,e)}class Ap extends B{constructor(t,n){super(),this.Name=t,this.Email=n}}function ui(){return Ft("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.UserDto",[],Ap,()=>[["Name",ur],["Email",zt(ur)]])}class Ip extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Profiles","Tax"]}}function gl(){return Na("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.ImportStageDto",[],Ip,()=>[[],[]])}class Np extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Invite","RevokeInvite"]}}function Mp(){return Na("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.BenefitsRequestTypeDto",[],Np,()=>[[],[]])}class Fp extends B{constructor(t,n,r,o){super(),this.User=t,this.ProfileCount=n|0,this.RequestType=r,this.RequestedAt=o}}function Pp(){return Ft("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.BenefitsRequestInfoDto",[],Fp,()=>[["User",ui()],["ProfileCount",Ae],["RequestType",Mp()],["RequestedAt",At("System.DateTime")]])}class Dp extends B{constructor(t,n,r,o,i,s){super(),this.Stage=t,this.InputRowCount=n|0,this.StartTime=r,this.SucceededRowCount=o,this.FailedRowCount=i,this.RemainingRowCount=s}}function Op(){return Ft("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.RunningStageDto",[],Dp,()=>[["Stage",gl()],["InputRowCount",Ae],["StartTime",At("System.DateTime")],["SucceededRowCount",zt(Ae)],["FailedRowCount",zt(Ae)],["RemainingRowCount",zt(Ae)]])}class Rp extends B{constructor(t,n,r,o,i,s){super(),this.Stage=t,this.InputRowCount=n|0,this.SucceededRowCount=r|0,this.FailedRowCount=o|0,this.StartTime=i,this.StopTime=s}}function wl(){return Ft("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.CompletedStageDto",[],Rp,()=>[["Stage",gl()],["InputRowCount",Ae],["SucceededRowCount",Ae],["FailedRowCount",Ae],["StartTime",At("System.DateTime")],["StopTime",At("System.DateTime")]])}class Lp extends B{constructor(t,n,r,o,i,s,a){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=o|0,this.CurrentStage=i,this.CompletedStages=s,this.StartTime=a}}function Hp(){return Ft("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.ActiveImportDto",[],Lp,()=>[["ImportId",Ae],["User",ui()],["Filename",ur],["NumberOfRecords",Ae],["CurrentStage",zt(Op())],["CompletedStages",lr(wl())],["StartTime",At("System.DateTime")]])}class Vp extends B{constructor(t,n,r,o,i,s,a,l){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=o|0,this.CompletedStages=i,this.BenefitsRequests=s,this.StartTime=a,this.StopTime=l}}function jp(){return Ft("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.PastImportDto",[],Vp,()=>[["ImportId",Ae],["User",ui()],["Filename",ur],["NumberOfRecords",Ae],["CompletedStages",lr(wl())],["BenefitsRequests",lr(Pp())],["StartTime",At("System.DateTime")],["StopTime",At("System.DateTime")]])}class Up extends B{constructor(t,n){super(),this.ActiveImport=t,this.ImportHistory=n}}function Gp(){return Ft("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.AccountImportsDto",[],Up,()=>[["ActiveImport",zt(Hp())],["ImportHistory",lr(jp())]])}class Bp{constructor(t){this.baseUrl=`${t}/import/workspace/v1.0/accounts/current/imports`}}function _l(e){return new Bp(e)}function yl(e){return Te.Delay(()=>{let t;const n=xd(vd(new Ga(0,[]),bd(e.baseUrl)));return t=Te.Bind(n,r=>Te.Return(new _(0,[r]))),Te.Bind(t,r=>{const o=r;if(o.tag===1)return Te.Return(new _(1,[o.fields[0]]));{const i=o.fields[0];switch(i.statusCode|0){case 200:{let a;const l=ap(K($p(Gp(),new ol(1,[]))),i.responseText);return a=l.tag===1?new _(1,[l.fields[0]]):new _(0,[l.fields[0]]),Te.Return(a)}case 404:return Te.Return(new _(0,[void 0]));default:return Te.Return(new _(1,["Failed to get account imports"]))}}})})}function zp(){return se()}function ci(e){return wt("/",e)}function Wp(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+ci(t),n])}function bl(e,t,n){try{Y(n)}catch(r){e(["Error stopping subscription: "+ci(t),r])}}function qp(e,t,n,r){try{return[n,r(t)]}catch(o){e(["Error starting subscription: "+ci(n),o]);return}}function Zp(e,t){fr(n=>{bl(e,n[0],n[1])},t)}function Ss(e,t,n,r,o,i){return fr(s=>{Wp(e,s)},n),fr(s=>{bl(e,s[0],s[1])},r),ti(o,ff(s=>qp(e,t,s[0],s[1]),i))}function Yp(){return[se(),rp({Compare:we}),se()]}function Kp(e,t,n,r,o){return ho(e,r)?[$e(e,n),r,o]:[n,np(e,r),$e([e,t],o)]}function Jp(e){return lf((t,n)=>Kp(t[0],t[1],n[0],n[1],n[2]),e,Yp())}const Xp=se();function Es(e,t){const n=op(ni(s=>s[0],e),{Compare:we}),r=Jp(t),o=r[1],i=r[0];if(n.Equals(o))return[i,se(),e,se()];{const s=cf(a=>ho(a[0],o),e);return[i,s[1],s[0],Va(a=>!ho(a[0],n),r[2])]}}class Qp{constructor(t,n,r){this.OnNext=t,this.OnError=n||(o=>{}),this.OnCompleted=r||(()=>{})}}function eh(e,t){t.Subscribe(new Qp(e))}class th{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 rh(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const o=n===void 0?t:(r=t,n);this.delegates.forEach(i=>{i(r,o)})}}let nh=class extends th{};function rh(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(o,i)=>n.OnNext(i);return e(r),{Dispose(){t(r)}}}}}class oh{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 nh}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 ih(e,t){console.error(Ie(e),t)}function sh(e,t){let n,r=new oh(e);r.AutoReset=!1,n=r,eh(t,n.Elapsed()),n.Enabled=!0,n.Start()}function ks(e,t,n){fr(r=>{try{r(t)}catch(o){e(o)}},n)}function Se(){return se()}function vl(e,t,n,r){return U(o=>{e(Te.Delay(()=>Te.Bind(kf(t(n)),i=>{const s=i;return s.tag===0&&o(r(s.fields[0])),Te.Zero()})))})}function xl(e){sh(1,t=>{Af(e)})}function ah(e,t,n,r){const o=we(e,n)|0;if(o===0)throw new Error("The step of a range cannot be zero");const i=o>0;return s=>{const a=we(s,t)|0;return i&&a<=0||!i&&a>=0?[s,r(s,e)]:void 0}}function lh(e,t,n,r,o){const i=ah(t,n,r,o);return oe(()=>Bf(i,e))}function uh(e,t,n){return lh(e,t,n,0,(r,o)=>r+o)}class qt extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class ch{constructor(t){this.state=new qt(0,[Xo(new Array(Zi(t,10)),0,Zi(t,10),null),0])}}function fh(e){return new ch(e)}function Ts(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,o=t.fields[0],i=(r+1)%o.length|0;return i===n?e.state=new qt(0,[o,n]):e.state=new qt(1,[o,n,i]),Ie(de(r,o))}else return}function dh(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,o=n.fields[2]|0,i=n.fields[0];ht(i,r,t);const s=(r+1)%i.length|0;s===o?e.state=new qt(1,[ph(e,o,i),i.length,0]):e.state=new qt(1,[i,s,o])}else{const r=n.fields[1]|0,o=n.fields[0];ht(o,r,t);const i=(r+1)%o.length|0;e.state=new qt(1,[o,i,r])}}function ph(e,t,n){return Array.from(oe(()=>it(Kf(t,n),oe(()=>it(Jf(t,n),oe(()=>Xf(r=>ue(rt()),uh(0,1,n.length))))))))}class fi extends B{constructor(t,n,r,o,i,s,a){super(),this.init=t,this.update=n,this.subscribe=r,this.view=o,this.setState=i,this.onError=s,this.termination=a}}function $r(e,t,n){return new fi(e,t,r=>zp(),n,K(r=>{const o=xt(n)(r);return i=>{o(i)}}),r=>{ih(r[0],r[1])},[r=>!1,r=>{}])}function hh(e,t){return new fi(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function mh(e){return e.init}function gh(e,t,n,r,o,i,s){const a=xt(e)(s.init),l=Gr(t)(xt(s.update)),u=Gr(n)(xt(s.view)),f=Gr(r)(xt(s.setState));return new fi(a,K(l),xt(o)(s.subscribe),K(u),K(f),s.onError,i(s.termination))}function wh(e,t,n){let r;const o=n.init(t),i=o[0],s=n.subscribe(i),a=n.termination,l=fh(10);let u=!1,f=i,c=Xp,h=!1;const d=g=>{h||(dh(l,g),u||(u=!0,w(),u=!1))},m=xt(e)(d),w=()=>{let g,y=Ts(l);for(;!h&&y!=null;){const b=x(y);if(a[0](b))Zp(n.onError,c),a[1](f),h=!0;else{const E=n.update(b,f),I=E[0],V=n.subscribe(I);n.setState(I,m),ks(J=>{n.onError([Cn(Xt("Error handling the message: %A"))(b),J])},m,E[1]),f=I,c=(g=Es(c,V),Ss(n.onError,m,g[0],g[1],g[2],g[3])),y=Ts(l)}}};u=!0,n.setState(i,m),ks(g=>{n.onError([Cn(Xt("Error intitializing:")),g])},m,o[1]),c=(r=Es(c,s),Ss(n.onError,m,r[0],r[1],r[2],r[3])),w(),u=!1}function _h(e,t){wh(K(n=>n),e,t)}function yh(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 o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Yr={exports:{}},Kr={};const bh=yh(io);/**
23
+ `))(c);return h=>p(h)}}else if(Yc(r))if(La(r)){const f=Tr(c=>Oe(e,t,!1,c),ef(r));return c=>p=>Array.isArray(p)?at(h=>af(rn(h)),bl(0,f,c,p)):new _(1,[[c,new k(0,["an array",p])]])}else switch(le(Kc(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return o=Oe(e,t,!0,de(0,Je(r))),c=>p=>Sh(K(o),c,p);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return i=Oe(e,t,!1,de(0,Je(r))),c=>p=>bs(K(i),c,p);case"System.Collections.Generic.IEnumerable`1[System.Object]":return s=Oe(e,t,!1,de(0,Je(r))),c=>p=>Eh(K(s),c,p);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const c=Oe(e,t,!1,de(0,Je(r))),p=Oe(e,t,!1,de(1,Je(r)));let h;const m=b([w=>g=>Fh(K(c),K(p),w,g),(a=$h(K(c),K(p)),w=>g=>bs(K(a),w,g))]);return h=w=>g=>kh(m,w,g),w=>g=>Ah(Nh,K(h),w,g)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const c=Oe(e,t,!1,de(0,Je(r)));return p=>h=>{const m=vs(K(c),p,h);return m.tag===0?new _(0,[Ih(m.fields[0])]):new _(1,[m.fields[0]])}}default:return Ss(e,t,n,r)}else switch(l){case"System.Boolean":return f=>c=>_h(f,c);case"Microsoft.FSharp.Core.Unit":return f=>c=>wh(f,c);case"System.String":return f=>c=>yl(f,c);case"System.Char":return f=>c=>mh(f,c);case"System.SByte":return hs;case"System.Byte":return ps;case"System.Int16":return ms;case"System.UInt16":return gs;case"System.Int32":return ws;case"System.UInt32":return _s;case"System.Double":return f=>c=>yh(f,c);case"System.Single":return f=>c=>bh(f,c);case"System.DateTime":return f=>c=>vh(f,c);case"System.DateTimeOffset":return f=>c=>xh(f,c);case"System.TimeSpan":return f=>c=>Ch(f,c);case"System.Guid":return f=>c=>gh(f,c);case"System.Object":return f=>c=>new _(0,[c]);default:return Ss(e,t,n,r)}else{const f=u;return c=>p=>f.contents(c)(p)}}function Ph(e){return al({Compare:Zo})}function Dh(e,t,n){const r=Er(t,new ul(0,[]));return Oe(Ph(),r,!1,e)}class Oh extends B{constructor(t,n){super(),this.Name=t,this.Email=n}}function ui(){return Pt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.UserDto",[],Oh,()=>[["Name",fr],["Email",Wt(fr)]])}class Rh extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Profiles","Tax"]}}function vl(){return Oa("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.ImportStageDto",[],Rh,()=>[[],[]])}class Lh extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Invite","RevokeInvite"]}}function Hh(){return Oa("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.BenefitsRequestTypeDto",[],Lh,()=>[[],[]])}class Vh extends B{constructor(t,n,r,o){super(),this.User=t,this.ProfileCount=n|0,this.RequestType=r,this.RequestedAt=o}}function jh(){return Pt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.BenefitsRequestInfoDto",[],Vh,()=>[["User",ui()],["ProfileCount",Ae],["RequestType",Hh()],["RequestedAt",Nt("System.DateTime")]])}class Uh extends B{constructor(t,n,r,o,i,s){super(),this.Stage=t,this.InputRowCount=n|0,this.StartTime=r,this.SucceededRowCount=o,this.FailedRowCount=i,this.RemainingRowCount=s}}function Gh(){return Pt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.RunningStageDto",[],Uh,()=>[["Stage",vl()],["InputRowCount",Ae],["StartTime",Nt("System.DateTime")],["SucceededRowCount",Wt(Ae)],["FailedRowCount",Wt(Ae)],["RemainingRowCount",Wt(Ae)]])}class Bh extends B{constructor(t,n,r,o,i,s){super(),this.Stage=t,this.InputRowCount=n|0,this.SucceededRowCount=r|0,this.FailedRowCount=o|0,this.StartTime=i,this.StopTime=s}}function xl(){return Pt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.CompletedStageDto",[],Bh,()=>[["Stage",vl()],["InputRowCount",Ae],["SucceededRowCount",Ae],["FailedRowCount",Ae],["StartTime",Nt("System.DateTime")],["StopTime",Nt("System.DateTime")]])}class Wh extends B{constructor(t,n,r,o,i,s,a){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=o|0,this.CurrentStage=i,this.CompletedStages=s,this.StartTime=a}}function zh(){return Pt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.ActiveImportDto",[],Wh,()=>[["ImportId",Ae],["User",ui()],["Filename",fr],["NumberOfRecords",Ae],["CurrentStage",Wt(Gh())],["CompletedStages",cr(xl())],["StartTime",Nt("System.DateTime")]])}class qh extends B{constructor(t,n,r,o,i,s,a,l){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=o|0,this.CompletedStages=i,this.BenefitsRequests=s,this.StartTime=a,this.StopTime=l}}function Zh(){return Pt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.PastImportDto",[],qh,()=>[["ImportId",Ae],["User",ui()],["Filename",fr],["NumberOfRecords",Ae],["CompletedStages",cr(xl())],["BenefitsRequests",cr(jh())],["StartTime",Nt("System.DateTime")],["StopTime",Nt("System.DateTime")]])}class Yh extends B{constructor(t,n){super(),this.ActiveImport=t,this.ImportHistory=n}}function Kh(){return Pt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.AccountImportsDto",[],Yh,()=>[["ActiveImport",Wt(zh())],["ImportHistory",cr(Zh())]])}class Jh{constructor(t){this.baseUrl=`${t}/import/workspace/v1.0/accounts/current/imports`}}function Cl(e){return new Jh(e)}function Sl(e){return ke.Delay(()=>{let t;const n=$d(Ad(new Za(0,[]),Td(e.baseUrl)));return t=ke.Bind(n,r=>ke.Return(new _(0,[r]))),ke.Bind(t,r=>{const o=r;if(o.tag===1)return ke.Return(new _(1,[o.fields[0]]));{const i=o.fields[0];switch(i.statusCode|0){case 200:{let a;const l=ph(K(Dh(Kh(),new ul(1,[]))),i.responseText);return a=l.tag===1?new _(1,[l.fields[0]]):new _(0,[l.fields[0]]),ke.Return(a)}case 404:return ke.Return(new _(0,[void 0]));default:return ke.Return(new _(1,["Failed to get account imports"]))}}})})}function Xh(){return se()}function ci(e){return Ze("/",e)}function Qh(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+ci(t),n])}function El(e,t,n){try{Y(n)}catch(r){e(["Error stopping subscription: "+ci(t),r])}}function ep(e,t,n,r){try{return[n,r(t)]}catch(o){e(["Error starting subscription: "+ci(n),o]);return}}function tp(e,t){hr(n=>{El(e,n[0],n[1])},t)}function Es(e,t,n,r,o,i){return hr(s=>{Qh(e,s)},n),hr(s=>{El(e,s[0],s[1])},r),$r(o,_f(s=>ep(e,t,s[0],s[1]),i))}function np(){return[se(),ch({Compare:we}),se()]}function rp(e,t,n,r,o){return yo(e,r)?[Te(e,n),r,o]:[n,uh(e,r),Te([e,t],o)]}function op(e){return mf((t,n)=>rp(t[0],t[1],n[0],n[1],n[2]),e,np())}const ip=se();function ks(e,t){const n=fh(Fn(s=>s[0],e),{Compare:we}),r=op(t),o=r[1],i=r[0];if(n.Equals(o))return[i,se(),e,se()];{const s=wf(a=>yo(a[0],o),e);return[i,s[1],s[0],Wa(a=>!yo(a[0],n),r[2])]}}class sp{constructor(t,n,r){this.OnNext=t,this.OnError=n||(o=>{}),this.OnCompleted=r||(()=>{})}}function ap(e,t){t.Subscribe(new sp(e))}class lp{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 cp(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const o=n===void 0?t:(r=t,n);this.delegates.forEach(i=>{i(r,o)})}}let up=class extends lp{};function cp(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(o,i)=>n.OnNext(i);return e(r),{Dispose(){t(r)}}}}}class fp{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 up}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 dp(e,t){console.error($e(e),t)}function hp(e,t){let n,r=new fp(e);r.AutoReset=!1,n=r,ap(t,n.Elapsed()),n.Enabled=!0,n.Start()}function Ts(e,t,n){hr(r=>{try{r(t)}catch(o){e(o)}},n)}function Ue(){return se()}function kl(e,t,n,r){return L(o=>{e(ke.Delay(()=>ke.Bind(Ff(t(n)),i=>{const s=i;return s.tag===0&&o(r(s.fields[0])),ke.Zero()})))})}function Tl(e){hp(1,t=>{Of(e)})}function pp(e,t,n,r){const o=we(e,n)|0;if(o===0)throw new Error("The step of a range cannot be zero");const i=o>0;return s=>{const a=we(s,t)|0;return i&&a<=0||!i&&a>=0?[s,r(s,e)]:void 0}}function mp(e,t,n,r,o){const i=pp(t,n,r,o);return oe(()=>Jf(i,e))}function Al(e,t,n){return mp(e,t,n,0,(r,o)=>r+o)}class qt extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class gp{constructor(t){this.state=new qt(0,[ei(new Array(Yi(t,10)),0,Yi(t,10),null),0])}}function wp(e){return new gp(e)}function As(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,o=t.fields[0],i=(r+1)%o.length|0;return i===n?e.state=new qt(0,[o,n]):e.state=new qt(1,[o,n,i]),$e(de(r,o))}else return}function _p(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,o=n.fields[2]|0,i=n.fields[0];mt(i,r,t);const s=(r+1)%i.length|0;s===o?e.state=new qt(1,[yp(e,o,i),i.length,0]):e.state=new qt(1,[i,s,o])}else{const r=n.fields[1]|0,o=n.fields[0];mt(o,r,t);const i=(r+1)%o.length|0;e.state=new qt(1,[o,i,r])}}function yp(e,t,n){return Array.from(oe(()=>st(rd(t,n),oe(()=>st(od(t,n),oe(()=>id(r=>ue(ot()),Al(0,1,n.length))))))))}class fi extends B{constructor(t,n,r,o,i,s,a){super(),this.init=t,this.update=n,this.subscribe=r,this.view=o,this.setState=i,this.onError=s,this.termination=a}}function Fr(e,t,n){return new fi(e,t,r=>Xh(),n,K(r=>{const o=Ct(n)(r);return i=>{o(i)}}),r=>{dp(r[0],r[1])},[r=>!1,r=>{}])}function bp(e,t){return new fi(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function vp(e){return e.init}function xp(e,t,n,r,o,i,s){const a=Ct(e)(s.init),l=Zr(t)(Ct(s.update)),u=Zr(n)(Ct(s.view)),f=Zr(r)(Ct(s.setState));return new fi(a,K(l),Ct(o)(s.subscribe),K(u),K(f),s.onError,i(s.termination))}function Cp(e,t,n){let r;const o=n.init(t),i=o[0],s=n.subscribe(i),a=n.termination,l=wp(10);let u=!1,f=i,c=ip,p=!1;const h=g=>{p||(_p(l,g),u||(u=!0,w(),u=!1))},m=Ct(e)(h),w=()=>{let g,y=As(l);for(;!p&&y!=null;){const C=S(y);if(a[0](C))tp(n.onError,c),a[1](f),p=!0;else{const E=n.update(C,f),N=E[0],j=n.subscribe(N);n.setState(N,m),Ts(J=>{n.onError([En(Xt("Error handling the message: %A"))(C),J])},m,E[1]),f=N,c=(g=ks(c,j),Es(n.onError,m,g[0],g[1],g[2],g[3])),y=As(l)}}};u=!0,n.setState(i,m),Ts(g=>{n.onError([En(Xt("Error intitializing:")),g])},m,o[1]),c=(r=ks(c,s),Es(n.onError,m,r[0],r[1],r[2],r[3])),w(),u=!1}function Sp(e,t){Cp(K(n=>n),e,t)}function Ep(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 o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var eo={exports:{}},to={};const kp=Ep(co);/**
24
24
  * @license React
25
25
  * use-sync-external-store-shim.production.min.js
26
26
  *
@@ -28,10 +28,10 @@ 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 $s;function vh(){if($s)return Kr;$s=1;var e=bh;function t(c,h){return c===h&&(c!==0||1/c===1/h)||c!==c&&h!==h}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,s=e.useDebugValue;function a(c,h){var d=h(),m=r({inst:{value:d,getSnapshot:h}}),w=m[0].inst,g=m[1];return i(function(){w.value=d,w.getSnapshot=h,l(w)&&g({inst:w})},[c,d,h]),o(function(){return l(w)&&g({inst:w}),c(function(){l(w)&&g({inst:w})})},[c]),s(d),d}function l(c){var h=c.getSnapshot;c=c.value;try{var d=h();return!n(c,d)}catch{return!0}}function u(c,h){return h()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:a;return Kr.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,Kr}var As;function xh(){return As||(As=1,Yr.exports=vh()),Yr.exports}var Ch=xh();class Sh{constructor(t,n,r){this.arg=n,this.dependencies=r;const o=t(),i=[];this.finalDispatch=void 0;let s;const a=mh(o)(this.arg);let l=a[0],u=a[1];s=[[l,f=>{const c=this.finalDispatch;c==null?i.push(f):c(f)},!1,i],u],this.state=s[0],this.cmd=s[1],this.subscribe=f=>{let c=!1;const h=so(this.state[0]);return _h(this.arg,hh((d,m)=>{const w=this.state;this.finalDispatch=m,this.state=[d,w[1],!0,i],d!==w[0]&&f()},gh((d,m)=>{const w=this.cmd;return this.cmd=Se(),[this.state[0],w]},(d,m,w)=>d(m)(this.state[0]),lo(d=>d),lo(d=>d),K(d=>d),d=>[m=>d[0](m)?!0:h&&c,m=>{const w=m;so(w)?Y(w):d[1](m)}],o))),()=>{c=!0}}}}function Is(e,t,n){return new Sh(e,t,n)}function Eh(e){return e.state}function kh(e){return e.subscribe}function Th(e,t,n){return je(e.arg,t)?!je(e.dependencies,n):!0}function Ar(e,t,n){const r=X(()=>Is(e,t,n)),o=r[0];Th(o,t,n)&&r[1](Is(e,t,n));const i=Ch.useSyncExternalStore(kh(o),()=>Eh(o)),s=i[2],a=i[3],l=i[1];return Q(()=>{if(s&&a.length>0){let u=te(a);try{for(;u["System.Collections.IEnumerator.MoveNext"]();){const f=u["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{l(f)})}}finally{Y(u)}ec(a)}},[s,a]),[i[0],l]}class mo extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Asc","Desc"]}}function $h(e){return e.tag===1?new mo(0,[]):new mo(1,[])}function Ah(e,t,n){return e.tag===1?pf(t,n,{Compare:we}):df(t,n,{Compare:we})}class Ir extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Requested","Finished"]}}let Kn=class extends B{constructor(t){super(),this.View=t}},Jn=class extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Loaded","Error"]}},Cl=class extends O{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["GetAccountImports"]}};function Ih(){return[new Kn(new Jn(0,[])),U(e=>{e(new Cl(new Ir(0,[void 0])))})]}function Nh(e,t,n){return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new Kn(new Jn(2,[t.fields[0].fields[0].fields[0]])),Se()]:[new Kn(new Jn(1,[t.fields[0].fields[0].fields[0]])),Se()]:[new Kn(new Jn(0,[])),vl(r=>{xl(r)},e,void 0,r=>new Cl(new Ir(1,[r])))]}class Mh extends B{constructor(t){super(),this.UserActivities=t}}class Ns extends B{constructor(t,n,r){super(),this.Timestamp=t,this.User=n,this.Activity=r}}function Fh(e,t){const n=t.toLocaleLowerCase();return e.Name.toLocaleLowerCase().indexOf(n)>=0?!0:Yo(Ko(r=>r.toLocaleLowerCase().indexOf(n)>=0,e.Email),!1)}function Ph(e){return ti(v(Lc(Ko(t=>new Ns(t.StartTime,t.User,`Added ${t.NumberOfRecords} users via Csv`),e.ActiveImport))),ni(t=>new Ns(t.StartTime,t.User,`Added ${t.NumberOfRecords} users via Csv`),e.ImportHistory))}function Dh(e){return new Mh(Yo(Ko(Ph,e),se()))}class Oh extends B{constructor(t,n){super(),this.Data=t,this.IsFiltered=n}}class Mn extends O{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["PaginatedList"]}}class Rh extends O{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["SortedList"]}}class Lh extends B{constructor(t,n){super(),this.SortInfo=t,this.SortDirectionToggledHandler=n}}class Sl extends B{constructor(t,n){super(),this.Column=t,this.Direction=n}}class Hh extends O{constructor(){super(),this.tag=0,this.fields=[]}cases(){return["Time"]}}class go extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NonEmptyPagingInfo","EmptyPagingInfo"]}}class Vh extends B{constructor(t,n,r,o,i){super(),this.CurrentPage=t|0,this.FirstRowIndex=n|0,this.LastRowIndex=r|0,this.TotalRecordsNumber=o|0,this.PageSize=i|0}}function jh(e){const t=di(Zh(),e);return new Mn([$l(Ha(e),5),t])}function Fn(e){return e.fields[0][1]}function El(e){return kl(Fn(e))}function Uh(e){return pi(Fn(e))}function an(e){return e.fields[0][0]}function Gh(e){const t=an(e);if(t.tag===0){const n=t.fields[0],r=hf(n.FirstRowIndex,Uh(e));return mf(n0(n),r)}else return se()}function Ms(e,t){const n=di(El(e),t);return new Mn([Qh(an(e),Ha(pi(n))),n])}function Bh(e){return new Mn([an(e),qh(Fn(e))])}function zh(e){return new Mn([Xh(an(e)),Fn(e)])}function Wh(e){return new Mn([Jh(an(e)),Fn(e)])}function di(e,t){return new Rh([e,Ah(e.Direction,n=>n.Timestamp,t)])}function pi(e){return e.fields[0][1]}function kl(e){return e.fields[0][0]}function qh(e){return di(Yh(kl(e)),pi(e))}function Zh(){return new Sl(new Hh,new mo(0,[]))}function Yh(e){return new Sl(e.Column,$h(e.Direction))}function Tl(e,t){return~~(e/t)+(e%t===0?0:1)}function Nr(e,t,n){if(e<=0)return new go(1,[]);{const r=Yi(n,Tl(e,t))|0,o=(r-1)*t|0;return new go(0,[new Vh(r,o,Yi(o+t-1,e-1),e,t)])}}function $l(e,t){return Nr(e,t,1)}function Kh(e){if(e.tag===0){const t=e.fields[0];return Tl(t.TotalRecordsNumber,t.PageSize)|0}else return 0}function Al(e){return e.tag===0?e.fields[0].CurrentPage<Kh(e):!1}function Il(e){return e.tag===0?e.fields[0].CurrentPage>1:!1}function Jh(e){const t=Il(e);let n;switch(t&&e.tag===0?n=0:n=1,n){case 0:{const r=e.fields[0];return Nr(r.TotalRecordsNumber,r.PageSize,r.CurrentPage-1)}default:return e}}function Xh(e){const t=Al(e);let n;switch(t&&e.tag===0?n=0:n=1,n){case 0:{const r=e.fields[0];return Nr(r.TotalRecordsNumber,r.PageSize,r.CurrentPage+1)}default:return e}}function Qh(e,t){return t<=0?new go(1,[]):e.tag===0?Nr(t,5,e.fields[0].CurrentPage):$l(t,5)}function e0(e){return e.FirstRowIndex+1}function t0(e){return e.LastRowIndex+1}function n0(e){return e.LastRowIndex-e.FirstRowIndex+1}let jt=class extends B{constructor(t,n,r){super(),this.ImportHistory=t,this.View=n,this.PaginatedList=r}},wo=class extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Default","Filtered"]}};function Nl(e){const t=e.View;return t.tag===1?t.fields[0]:""}function r0(e){return!Fc(Nl(e))}function o0(e){return new Oh(e.PaginatedList,r0(e))}let Zt=class extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ApplyFilter","ClearFilter","ToggleSortDirection","NextPage","PrevPage"]}};function i0(e){return[new jt(e,new wo(0,[]),jh(e.UserActivities)),Se()]}function s0(e,t){switch(e.tag){case 1:return[new jt(t.ImportHistory,new wo(0,[]),Ms(t.PaginatedList,t.ImportHistory.UserActivities)),Se()];case 2:return[new jt(t.ImportHistory,t.View,Bh(t.PaginatedList)),Se()];case 3:return[new jt(t.ImportHistory,t.View,zh(t.PaginatedList)),Se()];case 4:return[new jt(t.ImportHistory,t.View,Wh(t.PaginatedList)),Se()];default:{const n=e.fields[0];return Zo(n)?[t,U(r=>{r(new Zt(1,[]))})]:[new jt(t.ImportHistory,new wo(1,[n]),Ms(t.PaginatedList,Va(r=>Fh(r.User,n),t.ImportHistory.UserActivities))),Se()]}}}function a0(e,t){let n,r;return p("svg",C(v([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=U(p("path",C(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",S.Children.toArray(Array.from(n))])])))}function l0(e,t){let n,r;return p("svg",C(v([["width",e],["height",t],["viewBox","0 0 "+e+" "+t],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(n=U(p("path",C(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","#6B7280"]])))),["children",S.Children.toArray(Array.from(n))])])))}class Fs extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateFilter","ClearFilter"]}}function u0(e){let t,n;const r=e.actionHandler,o=e.value;return p("div",C(v([["className","self-stretch justify-start items-start gap-4 inline-flex"],(t=[p("div",C(v([["className",wt(" ",["relative w-96 overflow-hidden focus:outline-none focus:border-blue-600"])],(n=Nn(oe(()=>{let i;return it(ue(p("div",C(v([["className","pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3"],(i=[a0(20,20)],["children",S.Children.toArray(Array.from(i))])])))),oe(()=>{let s;return it(ue(p("input",C(v([(s="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",s]),["placeholder","Search actors..."],["autoComplete","off"],["onChange",a=>{r(new Fs(0,[a.target.value]))}],["value",o]])))),oe(()=>{let a;return Zo(o)?ue(rt()):ue(p("div",C(v([["onClick",l=>{r(new Fs(1,[]))}],["className","absolute inset-y-0 right-0 flex items-center pr-3 cursor-pointer"],(a=[l0(10,10)],["children",S.Children.toArray(Array.from(a))])]))))}))}))})),["children",S.Children.toArray(Array.from(n))])])))],["children",S.Children.toArray(Array.from(t))])])))}function c0(e,t){let n,r;return p("svg",C(v([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=U(p("path",C(v([(r="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",r]),["fill","#111827"]])))),["children",S.Children.toArray(Array.from(n))])])))}function f0(e){let t;const n=e.sortDirectionChangeHandler,r=e.sortDirection;return p("div",C(v([["className",wt(" ",Nn(oe(()=>it(ue("w-5 h-5 bg-gray-200 rounded overflow-hidden flex flex-col justify-center items-center"),oe(()=>r.tag===1?ue("rotate-180"):ue(""))))))],["onClick",o=>{n(void 0)}],(t=[c0(10,7)],["children",S.Children.toArray(Array.from(t))])])))}function d0(e){const t=e.toggleSortDirection,n=e.props;return p(f0,{sortDirection:n.Direction,sortDirectionChangeHandler:t})}function p0(e){let t,n,r,o;const i=p(d0,{props:e.SortInfo,toggleSortDirection:e.SortDirectionToggledHandler});return p("div",C(v([["className","grid grid-cols-7"],(t=[p("div",C(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=[p("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Time"}),i],["children",S.Children.toArray(Array.from(n))])]))),p("div",C(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=[p("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Actor"})],["children",S.Children.toArray(Array.from(r))])]))),p("div",C(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"],(o=[p("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Activity"})],["children",S.Children.toArray(Array.from(o))])])))],["children",S.Children.toArray(Array.from(t))])])))}function h0(e){return vr(e,"d MMM, yyyy")}function m0(e){return vr(e,"h:mm tt")}function g0(e){let t,n,r,o,i,s,a;return p("div",C(v([["className","grid grid-cols-7"],(t=[p("div",C(v([["className","col-span-1 px-6 py-4 bg-white border-b border-gray-200 flex justify-start items-center gap-4"],(n=[p("div",C(v([["className"," flex flex-col justify-center items-start"],(r=[p("div",C(v([["className","self-stretch justify-start items-center gap-2 inline-flex"],(o=[p("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:h0(e.Timestamp)})],["children",S.Children.toArray(Array.from(o))])]))),p("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:m0(e.Timestamp)})],["children",S.Children.toArray(Array.from(r))])])))],["children",S.Children.toArray(Array.from(n))])]))),p("div",C(v([["className","col-span-2 px-6 py-4 bg-white border-b border-gray-200 flex justify-start items-center gap-4"],(i=[p("div",C(v([["className","justify-center items-start flex flex-col"],(s=Nn(oe(()=>{let l;return it(ue(p("div",C(v([["className","self-stretch justify-start items-center gap-2 inline-flex"],(l=[p("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:e.User.Name})],["children",S.Children.toArray(Array.from(l))])])))),oe(()=>{const u=e.User.Email;return u==null?ue(rt()):ue(p("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:u}))}))})),["children",S.Children.toArray(Array.from(s))])])))],["children",S.Children.toArray(Array.from(i))])]))),p("div",C(v([["className","col-span-4 px-6 py-4 bg-white border-b border-gray-200 justify-start items-center gap-1 flex"],(a=[p("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:e.Activity})],["children",S.Children.toArray(Array.from(a))])])))],["children",S.Children.toArray(Array.from(t))])])))}function w0(e){const t=ni(n=>p(g0,n),e.Data);return p("div",{className:"grow flex flex-col justify-start items-stretch overflow-y-auto",children:S.Children.toArray(Array.from(t))})}class Ps extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Prev","Next"]}}function _0(e){let t,n;const r=e.pageChangedHandler,o=e.pagingInfo;return p("div",C(v([["className","h-[60px] bg-white flex-col justify-start items-start flex"],(t=[p("div",{className:"self-stretch h-px bg-gray-200"}),p("div",C(v([["className","self-stretch px-6 py-3 justify-between items-center inline-flex"],(n=Nn(oe(()=>{let i,s,a;return it((i=o,i.tag===1?ue(p("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:"No results found"})):(s=i.fields[0],ue((a=v([p("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:We(e0(s))}),p("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" to "}),p("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:We(t0(s))}),p("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" of "}),p("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:We(s.TotalRecordsNumber)}),p("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" results"})]),p("div",{children:S.Children.toArray(Array.from(a))}))))),oe(()=>{let l,u,f;return ue(p("div",C(v([["className","justify-start items-start gap-3 flex"],(l=[p("button",C(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 Ps(0,[]))}],["disabled",!Il(o)]]))),p("button",C(v([["type","button"],(f="ml-3 py-2 px-3 bg-white border border-gray-300 shadow-sm rounded-md text-sm font-medium text-gray-700 leading-4 disabled:cursor-not-allowed disabled:opacity-50 hover:bg-gray-50",["className",f]),["children","Next"],["onClick",c=>{r(new Ps(1,[]))}],["disabled",!Al(o)]])))],["children",S.Children.toArray(Array.from(l))])]))))}))})),["children",S.Children.toArray(Array.from(n))])])))],["children",S.Children.toArray(Array.from(t))])])))}class _o extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ToggleSortDirection","NextPage","PrevPage"]}}function y0(e,t){e(t.tag===0?new _o(2,[]):new _o(1,[]))}function b0(e){let t,n;const r=e.actionHandler,o=e.props;return p("div",C(v([(t="self-stretch grow bg-white rounded-lg shadow border border-gray-200 flex flex-col justify-start items-stretch",["className",t]),(n=[p(p0,new Lh(El(o.Data),()=>{r(new _o(0,[]))})),p(w0,{Data:Gh(o.Data)}),p(_0,{pagingInfo:an(o.Data),pageChangedHandler:i=>{y0(r,i)}})],["children",S.Children.toArray(Array.from(n))])])))}function v0(e,t){t.tag===0?e(new Zt(0,[t.fields[0]])):e(new Zt(1,[]))}function x0(e,t){switch(t.tag){case 2:{e(new Zt(4,[]));break}case 0:{e(new Zt(2,[]));break}default:e(new Zt(3,[]))}}function C0(e){let t,n;const r=i0(e);n=Ar(()=>$r(()=>r,s0,(s,a)=>{}),void 0,void 0);const o=n[0],i=n[1];return p("div",C(v([["className","self-stretch grow shrink basis-0 flex flex-col justify-start items-start gap-2"],(t=[p(u0,{value:Nl(o),actionHandler:s=>{v0(i,s)}}),p(b0,{props:o0(o),actionHandler:s=>{x0(i,s)}})],["children",S.Children.toArray(Array.from(t))])])))}function S0(e){const t=_l(e.backendUrl);let n;const r=Ar(()=>$r(Ih,(i,s)=>Nh(()=>yl(t),i),(i,s)=>{}),void 0,[])[0].View;n=r.tag===2?p("div",{children:[`Error: ${r.fields[0]}. Please try again`]}):r.tag===1?p(C0,Dh(r.fields[0])):p("div",{children:["Please wait..."]});const o=[p("style",{children:[Wo]}),n];return p(G,{},...o)}function E0(){Mo(e=>p(S0,e),"apollo-import-workspace-past-history")}let Xn=class extends B{constructor(t){super(),this.View=t}};class Qn extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Loaded","Error"]}}class Ml extends O{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["GetAccountImports"]}}function k0(){return[new Xn(new Qn(0,[])),U(e=>{e(new Ml(new Ir(0,[void 0])))})]}function T0(e,t,n){return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new Xn(new Qn(2,[t.fields[0].fields[0].fields[0]])),Se()]:[new Xn(new Qn(1,[t.fields[0].fields[0].fields[0]])),Se()]:[new Xn(new Qn(0,[])),vl(r=>{xl(r)},e,void 0,r=>new Ml(new Ir(1,[r])))]}var $0=Object.defineProperty,A0=(e,t,n)=>t in e?$0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Jr=(e,t,n)=>(A0(e,typeof t!="symbol"?t+"":t,n),n);let I0=class{constructor(){Jr(this,"current",this.detect()),Jr(this,"handoffState","pending"),Jr(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"}},Tt=new I0;function Mr(e){return Tt.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function Fr(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function _t(){let e=[],t={addEventListener(n,r,o,i){return n.addEventListener(r,o,i),t.add(()=>n.removeEventListener(r,o,i))},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 Fr(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let i=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:i})})},group(n){let r=_t();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 o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function hi(){let[e]=X(_t);return Q(()=>()=>e.dispose(),[e]),e}let he=(e,t)=>{Tt.isServer?Q(e,t):Mt(e,t)};function Pt(e){let t=D(e);return he(()=>{t.current=e},[e]),t}let Z=function(e){let t=Pt(e);return $.useCallback((...n)=>t.current(...n),[t])},N0=Ee(void 0);function M0(){return me(N0)}function yo(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function mt(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,mt),r}var hr=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(hr||{}),dt=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(dt||{});function Fe(){let e=P0();return Le(t=>F0({mergeRefs:e,...t}),[e])}function F0({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:s,mergeRefs:a}){a=a??D0;let l=Fl(t,e);if(i)return zn(l,n,r,s,a);let u=o??0;if(u&2){let{static:f=!1,...c}=l;if(f)return zn(c,n,r,s,a)}if(u&1){let{unmount:f=!0,...c}=l;return mt(f?0:1,{0(){return null},1(){return zn({...c,hidden:!0,style:{display:"none"}},n,r,s,a)}})}return zn(l,n,r,s,a)}function zn(e,t={},n,r,o){let{as:i=n,children:s,refName:a="ref",...l}=Xr(e,["unmount","static"]),u=e.ref!==void 0?{[a]:e.ref}:{},f=typeof s=="function"?s(t):s;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let c={};if(t){let h=!1,d=[];for(let[m,w]of Object.entries(t))typeof w=="boolean"&&(h=!0),w===!0&&d.push(m.replace(/([A-Z])/g,g=>`-${g.toLowerCase()}`));if(h){c["data-headlessui-state"]=d.join(" ");for(let m of d)c[`data-${m}`]=""}}if(i===G&&(Object.keys(bt(l)).length>0||Object.keys(bt(c)).length>0))if(!tn(f)||Array.isArray(f)&&f.length>1){if(Object.keys(bt(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(bt(l)).concat(Object.keys(bt(c))).map(h=>` - ${h}`).join(`
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(h=>` - ${h}`).join(`
31
+ */var $s;function Tp(){if($s)return to;$s=1;var e=kp;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,o=e.useEffect,i=e.useLayoutEffect,s=e.useDebugValue;function a(c,p){var h=p(),m=r({inst:{value:h,getSnapshot:p}}),w=m[0].inst,g=m[1];return i(function(){w.value=h,w.getSnapshot=p,l(w)&&g({inst:w})},[c,h,p]),o(function(){return l(w)&&g({inst:w}),c(function(){l(w)&&g({inst:w})})},[c]),s(h),h}function l(c){var p=c.getSnapshot;c=c.value;try{var h=p();return!n(c,h)}catch{return!0}}function u(c,p){return p()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:a;return to.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,to}var Ns;function Ap(){return Ns||(Ns=1,eo.exports=Tp()),eo.exports}var $p=Ap();class Np{constructor(t,n,r){this.arg=n,this.dependencies=r;const o=t(),i=[];this.finalDispatch=void 0;let s;const a=vp(o)(this.arg);let l=a[0],u=a[1];s=[[l,f=>{const c=this.finalDispatch;c==null?i.push(f):c(f)},!1,i],u],this.state=s[0],this.cmd=s[1],this.subscribe=f=>{let c=!1;const p=fo(this.state[0]);return Sp(this.arg,bp((h,m)=>{const w=this.state;this.finalDispatch=m,this.state=[h,w[1],!0,i],h!==w[0]&&f()},xp((h,m)=>{const w=this.cmd;return this.cmd=Ue(),[this.state[0],w]},(h,m,w)=>h(m)(this.state[0]),po(h=>h),po(h=>h),K(h=>h),h=>[m=>h[0](m)?!0:p&&c,m=>{const w=m;fo(w)?Y(w):h[1](m)}],o))),()=>{c=!0}}}}function Is(e,t,n){return new Np(e,t,n)}function Ip(e){return e.state}function Mp(e){return e.subscribe}function Fp(e,t,n){return Ve(e.arg,t)?!Ve(e.dependencies,n):!0}function Pr(e,t,n){const r=X(()=>Is(e,t,n)),o=r[0];Fp(o,t,n)&&r[1](Is(e,t,n));const i=$p.useSyncExternalStore(Mp(o),()=>Ip(o)),s=i[2],a=i[3],l=i[1];return Q(()=>{if(s&&a.length>0){let u=te(a);try{for(;u["System.Collections.IEnumerator.MoveNext"]();){const f=u["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{l(f)})}}finally{Y(u)}uc(a)}},[s,a]),[i[0],l]}class bo extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Asc","Desc"]}}function Pp(e){return e.tag===1?new bo(0,[]):new bo(1,[])}function Dp(e,t,n){return e.tag===1?bf(t,n,{Compare:we}):yf(t,n,{Compare:we})}class Dr extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Requested","Finished"]}}let Xn=class extends B{constructor(t){super(),this.View=t}},Qn=class extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Loaded","Error"]}},$l=class extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["GetAccountImports"]}};function Op(){return[new Xn(new Qn(0,[])),L(e=>{e(new $l(new Dr(0,[void 0])))})]}function Rp(e,t,n){return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new Xn(new Qn(2,[t.fields[0].fields[0].fields[0]])),Ue()]:[new Xn(new Qn(1,[t.fields[0].fields[0].fields[0]])),Ue()]:[new Xn(new Qn(0,[])),kl(r=>{Tl(r)},e,void 0,r=>new $l(new Dr(1,[r])))]}class Lp extends B{constructor(t){super(),this.UserActivities=t}}class Ms extends B{constructor(t,n,r){super(),this.Timestamp=t,this.User=n,this.Activity=r}}function Hp(e,t){const n=t.toLocaleLowerCase();return e.Name.toLocaleLowerCase().indexOf(n)>=0?!0:Er(Xo(r=>r.toLocaleLowerCase().indexOf(n)>=0,e.Email),!1)}function Vp(e){return $r(b(Wc(Xo(t=>new Ms(t.StartTime,t.User,`Added ${t.NumberOfRecords} users via Csv`),e.ActiveImport))),Fn(t=>new Ms(t.StartTime,t.User,`Added ${t.NumberOfRecords} users via Csv`),e.ImportHistory))}function jp(e){return new Lp(Er(Xo(Vp,e),se()))}class Fs extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Error","TableData"]}}class Up extends B{constructor(t,n){super(),this.Data=t,this.IsFiltered=n}}class Pn extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["PaginatedList"]}}class Gp extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["SortedList"]}}class Bp extends B{constructor(t,n){super(),this.SortInfo=t,this.SortDirectionToggledHandler=n}}class Nl extends B{constructor(t,n){super(),this.Column=t,this.Direction=n}}class Wp extends M{constructor(){super(),this.tag=0,this.fields=[]}cases(){return["Time"]}}class gr extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NonEmptyPagingInfo","EmptyPagingInfo"]}}class zp extends B{constructor(t,n,r,o,i){super(),this.CurrentPage=t|0,this.FirstRowIndex=n|0,this.LastRowIndex=r|0,this.TotalRecordsNumber=o|0,this.PageSize=i|0}}function qp(e){return e.tag===1?Il(e.fields[0].Data):Pl()}function Zp(e){return e.tag===1?ln(e.fields[0].Data):new gr(1,[])}function Yp(e){const t=di(Pl(),e);return new Pn([Ol(Ba(e),5),t])}function Dn(e){return e.fields[0][1]}function Il(e){return Fl(Dn(e))}function Kp(e){return hi(Dn(e))}function ln(e){return e.fields[0][0]}function Jp(e){const t=ln(e);if(t.tag===0){const n=t.fields[0],r=vf(n.FirstRowIndex,Kp(e));return xf(u0(n),r)}else return se()}function Ml(e,t){const n=di(Il(e),t);return new Pn([s0(ln(e),Ba(hi(n))),n])}function Xp(e){return new Pn([ln(e),t0(Dn(e))])}function Qp(e){return new Pn([i0(ln(e)),Dn(e)])}function e0(e){return new Pn([o0(ln(e)),Dn(e)])}function di(e,t){return new Gp([e,Dp(e.Direction,n=>n.Timestamp,t)])}function hi(e){return e.fields[0][1]}function Fl(e){return e.fields[0][0]}function t0(e){return di(n0(Fl(e)),hi(e))}function Pl(){return new Nl(new Wp,new bo(0,[]))}function n0(e){return new Nl(e.Column,Pp(e.Direction))}function Dl(e,t){return~~(e/t)+(e%t===0?0:1)}function Or(e,t,n){if(e<=0)return new gr(1,[]);{const r=Ki(n,Dl(e,t))|0,o=(r-1)*t|0;return new gr(0,[new zp(r,o,Ki(o+t-1,e-1),e,t)])}}function Ol(e,t){return Or(e,t,1)}function r0(e){if(e.tag===0){const t=e.fields[0];return Dl(t.TotalRecordsNumber,t.PageSize)|0}else return 0}function Rl(e){return e.tag===0?e.fields[0].CurrentPage<r0(e):!1}function Ll(e){return e.tag===0?e.fields[0].CurrentPage>1:!1}function o0(e){const t=Ll(e);let n;switch(t&&e.tag===0?n=0:n=1,n){case 0:{const r=e.fields[0];return Or(r.TotalRecordsNumber,r.PageSize,r.CurrentPage-1)}default:return e}}function i0(e){const t=Rl(e);let n;switch(t&&e.tag===0?n=0:n=1,n){case 0:{const r=e.fields[0];return Or(r.TotalRecordsNumber,r.PageSize,r.CurrentPage+1)}default:return e}}function s0(e,t){return t<=0?new gr(1,[]):e.tag===0?Or(t,5,e.fields[0].CurrentPage):Ol(t,5)}function a0(e){return e.FirstRowIndex+1}function l0(e){return e.LastRowIndex+1}function u0(e){return e.LastRowIndex-e.FirstRowIndex+1}let gt=class extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["LoadingError","ValidState"]}};class un extends B{constructor(t,n,r){super(),this.ImportHistory=t,this.View=n,this.PaginatedList=r}}let pi=class extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Default","Filtered"]}};function c0(e){if(e.tag===1)return Hl(e.fields[0])}function f0(e){return e.tag===0}function d0(e){return e.tag===1?new Fs(1,[y0(e.fields[0])]):new Fs(0,[])}function Hl(e){const t=e.View;if(t.tag===1)return t.fields[0]}function h0(e){return Hl(e)!=null}function p0(e,t){return new gt(1,[new un(e.ImportHistory,new pi(1,[t]),Ml(e.PaginatedList,Wa(n=>Hp(n.User,t),e.ImportHistory.UserActivities)))])}function m0(e){return new gt(1,[new un(e.ImportHistory,new pi(0,[]),Ml(e.PaginatedList,e.ImportHistory.UserActivities))])}function g0(e){return new gt(1,[new un(e.ImportHistory,e.View,Xp(e.PaginatedList))])}function w0(e){return new gt(1,[new un(e.ImportHistory,e.View,Qp(e.PaginatedList))])}function _0(e){return new gt(1,[new un(e.ImportHistory,e.View,e0(e.PaginatedList))])}function y0(e){return new Up(e.PaginatedList,h0(e))}let Zt=class extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ApplyFilter","ClearFilter","ToggleSortDirection","NextPage","PrevPage"]}};function b0(e){let t;return[e.tag===1?new gt(0,[]):(t=e.fields[0],new gt(1,[new un(t,new pi(0,[]),Yp(t.UserActivities))])),Ue()]}function Vl(e,t){return e.tag===1?t(e.fields[0]):[new gt(0,[]),Ue()]}function v0(e,t){return Vl(e,n=>[t(n),Ue()])}function x0(e,t){const n=r=>v0(t,r);switch(e.tag){case 1:return n(m0);case 2:return n(g0);case 3:return n(w0);case 4:return n(_0);default:{const r=e.fields[0];return Vl(t,o=>Jo(r)?[t,L(i=>{i(new Zt(1,[]))})]:[p0(o,r),Ue()])}}}function C0(e,t){let n,r;return d("svg",v(b([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=L(d("path",v(b([["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 S0(e,t){let n,r;return d("svg",v(b([["width",e],["height",t],["viewBox","0 0 "+e+" "+t],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(n=L(d("path",v(b([(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","#6B7280"]])))),["children",x.Children.toArray(Array.from(n))])])))}class Ps extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateFilter","ClearFilter"]}}function E0(e){let t,n;const r=Er(e.Value,"");return d("div",v(b([["className","self-stretch justify-start items-start gap-4 inline-flex"],(t=[d("div",v(b([["className",Ze(" ",["relative w-96 overflow-hidden focus:outline-none focus:border-blue-600"])],(n=sn(oe(()=>{let o;return st(ue(d("div",v(b([["className","pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3"],(o=[C0(20,20)],["children",x.Children.toArray(Array.from(o))])])))),oe(()=>{let i;return st(ue(d("input",v(b([(i="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",i]),["placeholder","Search actors..."],["autoComplete","off"],["onChange",s=>{e.ActionHandler(new Ps(0,[s.target.value]))}],["value",r],["disabled",e.Disabled]])))),oe(()=>{let s;return Jo(r)?ue(ot()):ue(d("div",v(b([["onClick",a=>{e.ActionHandler(new Ps(1,[]))}],["className","absolute inset-y-0 right-0 flex items-center pr-3 cursor-pointer"],(s=[S0(10,10)],["children",x.Children.toArray(Array.from(s))])]))))}))}))})),["children",x.Children.toArray(Array.from(n))])])))],["children",x.Children.toArray(Array.from(t))])])))}function k0(e){let t,n;const r=e.height,o=e.width;return d("svg",v(b([["fill","none"],["height",r],["width",o],["viewBox","0 0 "+o+" "+r],["xmlns","http://www.w3.org/2000/svg"],(t=L(d("path",v(b([(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 T0(e){let t;const n=e.sortDirectionChangeHandler,r=e.sortDirection;return d("div",v(b([["className",Ze(" ",sn(oe(()=>st(ue("w-5 h-5 bg-gray-200 rounded overflow-hidden flex flex-col justify-center items-center"),oe(()=>r.tag===1?ue("rotate-180"):ue(""))))))],["onClick",o=>{n(void 0)}],(t=[d(k0,{width:10,height:7})],["children",x.Children.toArray(Array.from(t))])])))}function A0(e){const t=e.toggleSortDirection,n=e.props;return d(T0,{sortDirection:n.Direction,sortDirectionChangeHandler:t})}function $0(e){let t,n,r,o;const i=d(A0,{props:e.SortInfo,toggleSortDirection:e.SortDirectionToggledHandler});return d("div",v(b([["className","grid grid-cols-7"],(t=[d("div",v(b([["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=[d("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Time"}),i],["children",x.Children.toArray(Array.from(n))])]))),d("div",v(b([["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=[d("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Actor"})],["children",x.Children.toArray(Array.from(r))])]))),d("div",v(b([["className","col-span-4 px-6 py-3.5 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 flex"],(o=[d("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Activity"})],["children",x.Children.toArray(Array.from(o))])])))],["children",x.Children.toArray(Array.from(t))])])))}function N0(e){return Sr(e,"d MMM, yyyy")}function I0(e){return Sr(e,"h:mm tt")}function M0(e){let t,n,r,o,i,s,a;return d("div",v(b([["className","grid grid-cols-7"],(t=[d("div",v(b([["className","col-span-1 px-6 py-4 bg-white border-b border-gray-200 flex justify-start items-center gap-4"],(n=[d("div",v(b([["className"," flex flex-col justify-center items-start"],(r=[d("div",v(b([["className","self-stretch justify-start items-center gap-2 inline-flex"],(o=[d("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:N0(e.Timestamp)})],["children",x.Children.toArray(Array.from(o))])]))),d("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:I0(e.Timestamp)})],["children",x.Children.toArray(Array.from(r))])])))],["children",x.Children.toArray(Array.from(n))])]))),d("div",v(b([["className","col-span-2 px-6 py-4 bg-white border-b border-gray-200 flex justify-start items-center gap-4"],(i=[d("div",v(b([["className","justify-center items-start flex flex-col"],(s=sn(oe(()=>{let l;return st(ue(d("div",v(b([["className","self-stretch justify-start items-center gap-2 inline-flex"],(l=[d("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:e.User.Name})],["children",x.Children.toArray(Array.from(l))])])))),oe(()=>{const u=e.User.Email;return u==null?ue(ot()):ue(d("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(i))])]))),d("div",v(b([["className","col-span-4 px-6 py-4 bg-white border-b border-gray-200 justify-start items-center gap-1 flex"],(a=[d("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 F0(e){const t=Fn(n=>d(M0,n),e.Data);return d("div",{className:"grow flex flex-col justify-start items-stretch overflow-y-auto",children:x.Children.toArray(Array.from(t))})}function P0(e){let t,n,r,o,i;const s=e.height,a=e.width;return d("svg",v(b([["width",a],["height",s],["viewBox","0 0 "+a+" "+s],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(t=b([d("path",v(b([(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)"]]))),d("path",{d:"M60 42V67",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),d("path",v(b([(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"]]))),(o=L(d("linearGradient",v(b([["id","paint0_linear_3770_593"],["x1",20],["y1",20],["x2",100],["y2",20],(i=b([d("stop",{offset:0,stopColor:"#FFD84D"}),d("stop",{offset:1,stopColor:"#FF876F"})]),["children",x.Children.toArray(Array.from(i))])])))),d("defs",{children:x.Children.toArray(Array.from(o))}))]),["children",x.Children.toArray(Array.from(t))])])))}function D0(){let e;return d("div",v(b([["className","w-[120px] h-[120px] flex flex-col justify-center items-center"],(e=[d(P0,{width:120,height:120})],["children",x.Children.toArray(Array.from(e))])])))}function O0(){let e,t,n,r;return d("div",v(b([["className","grow flex flex-col justify-center items-center overflow-y-auto"],(e=[d(D0,null),d("div",v(b([["className","flex-col justify-start items-center gap-6 inline-flex"],(t=[d("div",v(b([["className","self-stretch h-[72px] flex-col justify-start items-start gap-3 flex"],(n=[d("div",v(b([["className","h-[72px] flex-col justify-start items-center gap-1 flex"],(r=[d("div",{className:"self-stretch text-center text-gray-900 text-xl font-bold leading-7",children:"We couldn’t load your past activities"}),d("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 R0(e){return{Data:Jp(e.Data)}}function L0(e){const t=e.props;return t.tag===1?d(F0,R0(t.fields[0])):d(O0,null)}class Ds extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Prev","Next"]}}function H0(e){let t,n;const r=e.pageChangedHandler,o=e.pagingInfo;return d("div",v(b([["className","h-[60px] bg-white flex-col justify-start items-start flex"],(t=[d("div",{className:"self-stretch h-px bg-gray-200"}),d("div",v(b([["className","self-stretch px-6 py-3 justify-between items-center inline-flex"],(n=sn(oe(()=>{let i,s,a;return st((i=o,i.tag===1?ue(d("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:"No results found"})):(s=i.fields[0],ue((a=b([d("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:ze(a0(s))}),d("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" to "}),d("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:ze(l0(s))}),d("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" of "}),d("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:ze(s.TotalRecordsNumber)}),d("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" results"})]),d("div",{children:x.Children.toArray(Array.from(a))}))))),oe(()=>{let l,u,f;return ue(d("div",v(b([["className","justify-start items-start gap-3 flex"],(l=[d("button",v(b([["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 Ds(0,[]))}],["disabled",!Ll(o)]]))),d("button",v(b([["type","button"],(f="ml-3 py-2 px-3 bg-white border border-gray-300 shadow-sm rounded-md text-sm font-medium text-gray-700 leading-4 disabled:cursor-not-allowed disabled:opacity-50 hover:bg-gray-50",["className",f]),["children","Next"],["onClick",c=>{r(new Ds(1,[]))}],["disabled",!Rl(o)]])))],["children",x.Children.toArray(Array.from(l))])]))))}))})),["children",x.Children.toArray(Array.from(n))])])))],["children",x.Children.toArray(Array.from(t))])])))}class vo extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ToggleSortDirection","NextPage","PrevPage"]}}function V0(e,t){e(t.tag===0?new vo(2,[]):new vo(1,[]))}function j0(e){let t,n;const r=e.actionHandler,o=e.props;return d("div",v(b([(t="self-stretch grow bg-white rounded-lg shadow border border-gray-200 flex flex-col justify-center items-stretch",["className",t]),(n=[d($0,new Bp(qp(o),()=>{r(new vo(0,[]))})),d(L0,{props:o}),d(H0,{pagingInfo:Zp(o),pageChangedHandler:i=>{V0(r,i)}})],["children",x.Children.toArray(Array.from(n))])])))}function U0(e,t){t.tag===0?e(new Zt(0,[t.fields[0]])):e(new Zt(1,[]))}function G0(e,t){switch(t.tag){case 2:{e(new Zt(4,[]));break}case 0:{e(new Zt(2,[]));break}default:e(new Zt(3,[]))}}function Os(e){let t,n;const r=e.importHistory;let o;const i=b0(r);o=Pr(()=>Fr(()=>i,x0,(l,u)=>{}),void 0,void 0);const s=o[0],a=o[1];return d("div",v(b([["className","self-stretch grow shrink basis-0 flex flex-col justify-start items-start gap-2"],(t=[d(E0,(n=c0(s),{ActionHandler:l=>{U0(a,l)},Disabled:f0(s),Value:Pa(n)})),d(j0,{props:d0(s),actionHandler:l=>{G0(a,l)}})],["children",x.Children.toArray(Array.from(t))])])))}class Rs extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Header","Row"]}}function B0(e,t){let n;const r=e.tag===1?["bg-white","bg-gray-100","h-[72px]"]:["bg-gray-50","bg-gray-300",""];return d("div",v(b([["className",Ze(" ",["px-6 py-3.5 border-b border-gray-200 justify-start items-center gap-2 flex",r[0],r[2],t])],(n=[d("div",{className:Ze(" ",["w-full h-4 relative rounded",r[1]])})],["children",x.Children.toArray(Array.from(n))])])))}function Ls(e){const t=Fn(n=>B0(e,n),b(["col-span-1","col-span-2","col-span-4"]));return d("div",{className:"grid grid-cols-7",children:x.Children.toArray(Array.from(t))})}function W0(){let e,t;return d("div",v(b([(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=$r(L(Ls(new Rs(0,[]))),Fn(n=>Ls(new Rs(1,[])),sn(Al(1,1,5)))),["children",x.Children.toArray(Array.from(t))])])))}function z0(e){const t=Cl(e.backendUrl);let n;const r=Pr(()=>Fr(Op,(i,s)=>Rp(()=>Sl(t),i),(i,s)=>{}),void 0,[])[0].View;n=r.tag===2?d(Os,{importHistory:new _(1,[void 0])}):r.tag===1?d(Os,{importHistory:new _(0,[jp(r.fields[0])])}):d(W0,null);const o=[d("style",{children:[Yo]}),n];return d(G,{},...o)}function q0(){Do(e=>d(z0,e),"apollo-import-workspace-past-history")}let er=class extends B{constructor(t){super(),this.View=t}};class tr extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Loaded","Error"]}}class jl extends M{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["GetAccountImports"]}}function Z0(){return[new er(new tr(0,[])),L(e=>{e(new jl(new Dr(0,[void 0])))})]}function Y0(e,t,n){return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new er(new tr(2,[t.fields[0].fields[0].fields[0]])),Ue()]:[new er(new tr(1,[t.fields[0].fields[0].fields[0]])),Ue()]:[new er(new tr(0,[])),kl(r=>{Tl(r)},e,void 0,r=>new jl(new Dr(1,[r])))]}var K0=Object.defineProperty,J0=(e,t,n)=>t in e?K0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,no=(e,t,n)=>(J0(e,typeof t!="symbol"?t+"":t,n),n);let X0=class{constructor(){no(this,"current",this.detect()),no(this,"handoffState","pending"),no(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"}},At=new X0;function Rr(e){return At.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function Lr(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function yt(){let e=[],t={addEventListener(n,r,o,i){return n.addEventListener(r,o,i),t.add(()=>n.removeEventListener(r,o,i))},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 Lr(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let i=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:i})})},group(n){let r=yt();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 o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function mi(){let[e]=X(yt);return Q(()=>()=>e.dispose(),[e]),e}let pe=(e,t)=>{At.isServer?Q(e,t):Ft(e,t)};function Dt(e){let t=O(e);return pe(()=>{t.current=e},[e]),t}let Z=function(e){let t=Dt(e);return A.useCallback((...n)=>t.current(...n),[t])},Q0=Se(void 0);function em(){return me(Q0)}function xo(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function wt(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,wt),r}var wr=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(wr||{}),ht=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(ht||{});function Me(){let e=nm();return Re(t=>tm({mergeRefs:e,...t}),[e])}function tm({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:s,mergeRefs:a}){a=a??rm;let l=Ul(t,e);if(i)return qn(l,n,r,s,a);let u=o??0;if(u&2){let{static:f=!1,...c}=l;if(f)return qn(c,n,r,s,a)}if(u&1){let{unmount:f=!0,...c}=l;return wt(f?0:1,{0(){return null},1(){return qn({...c,hidden:!0,style:{display:"none"}},n,r,s,a)}})}return qn(l,n,r,s,a)}function qn(e,t={},n,r,o){let{as:i=n,children:s,refName:a="ref",...l}=ro(e,["unmount","static"]),u=e.ref!==void 0?{[a]:e.ref}:{},f=typeof s=="function"?s(t):s;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let c={};if(t){let p=!1,h=[];for(let[m,w]of Object.entries(t))typeof w=="boolean"&&(p=!0),w===!0&&h.push(m.replace(/([A-Z])/g,g=>`-${g.toLowerCase()}`));if(p){c["data-headlessui-state"]=h.join(" ");for(let m of h)c[`data-${m}`]=""}}if(i===G&&(Object.keys(vt(l)).length>0||Object.keys(vt(c)).length>0))if(!tn(f)||Array.isArray(f)&&f.length>1){if(Object.keys(vt(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(vt(l)).concat(Object.keys(vt(c))).map(p=>` - ${p}`).join(`
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 h=f.props,d=h==null?void 0:h.className,m=typeof d=="function"?(...y)=>yo(d(...y),l.className):yo(d,l.className),w=m?{className:m}:{},g=Fl(f.props,bt(Xr(l,["ref"])));for(let y in c)y in g&&delete c[y];return Go(f,Object.assign({},g,c,u,{ref:o(O0(f),u.ref)},w))}return p(i,Object.assign({},Xr(l,["ref"]),i!==G&&u,i!==G&&c),f)}function P0(){let e=D([]),t=Le(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 D0(...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 Fl(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[o=>{var i;return(i=o==null?void 0:o.preventDefault)==null?void 0:i.call(o)}]);for(let r in n)Object.assign(t,{[r](o,...i){let s=n[r];for(let a of s){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;a(o,...i)}}});return t}function ye(e){var t;return Object.assign(Vo(e),{displayName:(t=e.displayName)!=null?t:e.name})}function bt(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Xr(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function O0(e){return $.version.split(".")[0]>="19"?e.props.ref:e.ref}let R0="span";var mr=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(mr||{});function L0(e,t){var n;let{features:r=1,...o}=e,i={ref:t,"aria-hidden":(r&2)===2?!0:(n=o["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 Fe()({ourProps:i,theirProps:o,slot:{},defaultTag:R0,name:"Hidden"})}let bo=ye(L0),Pl=Symbol();function H0(e,t=!0){return Object.assign(e,{[Pl]:t})}function Ze(...e){let t=D(e);Q(()=>{t.current=e},[e]);let n=Z(r=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(r):o.current=r)});return e.every(r=>r==null||(r==null?void 0:r[Pl]))?void 0:n}let mi=Ee(null);mi.displayName="DescriptionContext";function Dl(){let e=me(mi);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,Dl),t}return e}function V0(){let[e,t]=X([]);return[e.length>0?e.join(" "):void 0,ie(()=>function(n){let r=Z(i=>(t(s=>[...s,i]),()=>t(s=>{let a=s.slice(),l=a.indexOf(i);return l!==-1&&a.splice(l,1),a}))),o=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 $.createElement(mi.Provider,{value:o},n.children)},[t])]}let j0="p";function U0(e,t){let n=gt(),r=M0(),{id:o=`headlessui-description-${n}`,...i}=e,s=Dl(),a=Ze(t);he(()=>s.register(o),[o,s.register]);let l=r||!1,u=ie(()=>({...s.slot,disabled:l}),[s.slot,l]),f={ref:a,...s.props,id:o};return Fe()({ourProps:f,theirProps:i,slot:u,defaultTag:j0,name:s.name||"Description"})}let G0=ye(U0),B0=Object.assign(G0,{});var Ol=(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))(Ol||{});let z0=Ee(()=>{});function W0({value:e,children:t}){return $.createElement(z0.Provider,{value:e},t)}let q0=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 Rl(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...i){let s=t[o].call(n,...i);s&&(n=s,r.forEach(a=>a()))}}}function Ll(e){return _r(e.subscribe,e.getSnapshot,e.getSnapshot)}let Z0=new q0(()=>Rl(()=>[],{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 ln(e,t){let n=Z0.get(t),r=gt(),o=Ll(n);if(he(()=>{if(e)return n.dispatch("ADD",r),()=>n.dispatch("REMOVE",r)},[n,e]),!e)return!1;let i=o.indexOf(r),s=o.length;return i===-1&&(i=s,s+=1),i===s-1}let vo=new Map,bn=new Map;function Ds(e){var t;let n=(t=bn.get(e))!=null?t:0;return bn.set(e,n+1),n!==0?()=>Os(e):(vo.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>Os(e))}function Os(e){var t;let n=(t=bn.get(e))!=null?t:1;if(n===1?bn.delete(e):bn.set(e,n-1),n!==1)return;let r=vo.get(e);r&&(r["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,vo.delete(e))}function Y0(e,{allowed:t,disallowed:n}={}){let r=ln(e,"inert-others");he(()=>{var o,i;if(!r)return;let s=_t();for(let l of(o=n==null?void 0:n())!=null?o:[])l&&s.add(Ds(l));let a=(i=t==null?void 0:t())!=null?i:[];for(let l of a){if(!l)continue;let u=Mr(l);if(!u)continue;let f=l.parentElement;for(;f&&f!==u.body;){for(let c of f.children)a.some(h=>c.contains(h))||s.add(Ds(c));f=f.parentElement}}return s.dispose},[r,t,n])}function K0(e,t,n){let r=Pt(o=>{let i=o.getBoundingClientRect();i.x===0&&i.y===0&&i.width===0&&i.height===0&&n()});Q(()=>{if(!e)return;let o=t===null?null:t instanceof HTMLElement?t:t.current;if(!o)return;let i=_t();if(typeof ResizeObserver<"u"){let s=new ResizeObserver(()=>r.current(o));s.observe(o),i.add(()=>s.disconnect())}if(typeof IntersectionObserver<"u"){let s=new IntersectionObserver(()=>r.current(o));s.observe(o),i.add(()=>s.disconnect())}return()=>i.dispose()},[t,r,e])}let gr=["[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(","),J0=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Je=(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))(Je||{}),xo=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(xo||{}),X0=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(X0||{});function Q0(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(gr)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}function em(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(J0)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Hl=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Hl||{});function tm(e,t=0){var n;return e===((n=Mr(e))==null?void 0:n.body)?!1:mt(t,{0(){return e.matches(gr)},1(){let r=e;for(;r!==null;){if(r.matches(gr))return!0;r=r.parentElement}return!1}})}var nm=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(nm||{});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 tt(e){e==null||e.focus({preventScroll:!0})}let rm=["textarea","input"].join(",");function om(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,rm))!=null?n:!1}function im(e,t=n=>n){return e.slice().sort((n,r)=>{let o=t(n),i=t(r);if(o===null||i===null)return 0;let s=o.compareDocumentPosition(i);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function vn(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,s=Array.isArray(e)?n?im(e):e:t&64?em(e):Q0(e);o.length>0&&s.length>1&&(s=s.filter(d=>!o.some(m=>m!=null&&"current"in m?(m==null?void 0:m.current)===d:m===d))),r=r??i.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}:{},f=0,c=s.length,h;do{if(f>=c||f+c<=0)return 0;let d=l+f;if(t&16)d=(d+c)%c;else{if(d<0)return 3;if(d>=c)return 1}h=s[d],h==null||h.focus(u),f+=a}while(h!==i.activeElement);return t&6&&om(h)&&h.select(),2}function Vl(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function sm(){return/Android/gi.test(window.navigator.userAgent)}function am(){return Vl()||sm()}function gn(e,t,n,r){let o=Pt(n);Q(()=>{if(!e)return;function i(s){o.current(s)}return document.addEventListener(t,i,r),()=>document.removeEventListener(t,i,r)},[e,t,r])}function jl(e,t,n,r){let o=Pt(n);Q(()=>{if(!e)return;function i(s){o.current(s)}return window.addEventListener(t,i,r),()=>window.removeEventListener(t,i,r)},[e,t,r])}const Rs=30;function lm(e,t,n){let r=ln(e,"outside-click"),o=Pt(n),i=Le(function(l,u){if(l.defaultPrevented)return;let f=u(l);if(f===null||!f.getRootNode().contains(f)||!f.isConnected)return;let c=function h(d){return typeof d=="function"?h(d()):Array.isArray(d)||d instanceof Set?d:[d]}(t);for(let h of c)if(h!==null&&(h.contains(f)||l.composed&&l.composedPath().includes(h)))return;return!tm(f,Hl.Loose)&&f.tabIndex!==-1&&l.preventDefault(),o.current(l,f)},[o,t]),s=D(null);gn(r,"pointerdown",l=>{var u,f;s.current=((f=(u=l.composedPath)==null?void 0:u.call(l))==null?void 0:f[0])||l.target},!0),gn(r,"mousedown",l=>{var u,f;s.current=((f=(u=l.composedPath)==null?void 0:u.call(l))==null?void 0:f[0])||l.target},!0),gn(r,"click",l=>{am()||s.current&&(i(l,()=>s.current),s.current=null)},!0);let a=D({x:0,y:0});gn(r,"touchstart",l=>{a.current.x=l.touches[0].clientX,a.current.y=l.touches[0].clientY},!0),gn(r,"touchend",l=>{let u={x:l.changedTouches[0].clientX,y:l.changedTouches[0].clientY};if(!(Math.abs(u.x-a.current.x)>=Rs||Math.abs(u.y-a.current.y)>=Rs))return i(l,()=>l.target instanceof HTMLElement?l.target:null)},!0),jl(r,"blur",l=>i(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Pn(...e){return ie(()=>Mr(...e),[...e])}function Ul(e,t,n,r){let o=Pt(n);Q(()=>{e=e??window;function i(s){o.current(s)}return e.addEventListener(t,i,r),()=>e.removeEventListener(t,i,r)},[e,t,r])}function um(){let e;return{before({doc:t}){var n;let r=t.documentElement,o=(n=t.defaultView)!=null?n:window;e=Math.max(0,o.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,o=Math.max(0,r.clientWidth-r.offsetWidth),i=Math.max(0,e-o);n.style(r,"paddingRight",`${i}px`)}}}function cm(){return Vl()?{before({doc:e,d:t,meta:n}){function r(o){return n.containers.flatMap(i=>i()).some(i=>i.contains(o))}t.microTask(()=>{var o;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let a=_t();a.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>a.dispose()))}let i=(o=window.scrollY)!=null?o: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),f=e.querySelector(u);f&&!r(f)&&(s=f)}catch{}},!0),t.addEventListener(e,"touchstart",a=>{if(a.target instanceof HTMLElement)if(r(a.target)){let l=a.target;for(;l.parentElement&&r(l.parentElement);)l=l.parentElement;t.style(l,"overscrollBehavior","contain")}else t.style(a.target,"touchAction","none")}),t.addEventListener(e,"touchmove",a=>{if(a.target instanceof HTMLElement){if(a.target.tagName==="INPUT")return;if(r(a.target)){let l=a.target;for(;l.parentElement&&l.dataset.headlessuiPortal!==""&&!(l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth);)l=l.parentElement;l.dataset.headlessuiPortal===""&&a.preventDefault()}else a.preventDefault()}},{passive:!1}),t.add(()=>{var a;let l=(a=window.scrollY)!=null?a:window.pageYOffset;i!==l&&window.scrollTo(0,i),s&&s.isConnected&&(s.scrollIntoView({block:"nearest"}),s=null)})})}}:{}}function fm(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function dm(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let kt=Rl(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:_t(),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:dm(n)},o=[cm(),um(),fm()];o.forEach(({before:i})=>i==null?void 0:i(r)),o.forEach(({after:i})=>i==null?void 0:i(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});kt.subscribe(()=>{let e=kt.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",o=n.count!==0;(o&&!r||!o&&r)&&kt.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&kt.dispatch("TEARDOWN",n)}});function pm(e,t,n=()=>({containers:[]})){let r=Ll(kt),o=t?r.get(t):void 0,i=o?o.count>0:!1;return he(()=>{if(!(!t||!e))return kt.dispatch("PUSH",t,n),()=>kt.dispatch("POP",t,n)},[e,t]),i}function hm(e,t,n=()=>[document.body]){let r=ln(e,"scroll-lock");pm(r,t,o=>{var i;return{containers:[...(i=o.containers)!=null?i:[],n]}})}function mm(e=0){let[t,n]=X(e),r=Le(l=>n(l),[t]),o=Le(l=>n(u=>u|l),[t]),i=Le(l=>(t&l)===l,[t]),s=Le(l=>n(u=>u&~l),[n]),a=Le(l=>n(u=>u^l),[n]);return{flags:t,setFlag:r,addFlag:o,hasFlag:i,removeFlag:s,toggleFlag:a}}var gm={},Ls,Hs;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((Ls=process==null?void 0:gm)==null?void 0:Ls.NODE_ENV)==="test"&&typeof((Hs=Element==null?void 0:Element.prototype)==null?void 0:Hs.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 wm=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(wm||{});function _m(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function ym(e,t,n,r){let[o,i]=X(n),{hasFlag:s,addFlag:a,removeFlag:l}=mm(e&&o?3:0),u=D(!1),f=D(!1),c=hi();return he(()=>{var h;if(e){if(n&&i(!0),!t){n&&a(3);return}return(h=r==null?void 0:r.start)==null||h.call(r,n),bm(t,{inFlight:u,prepare(){f.current?f.current=!1:f.current=u.current,u.current=!0,!f.current&&(n?(a(3),l(4)):(a(4),l(2)))},run(){f.current?n?(l(3),a(4)):(l(4),a(3)):n?l(1):a(1)},done(){var d;f.current&&typeof t.getAnimations=="function"&&t.getAnimations().length>0||(u.current=!1,l(7),n||i(!1),(d=r==null?void 0:r.end)==null||d.call(r,n))}})}},[e,n,t,c]),e?[o,{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 bm(e,{prepare:t,run:n,done:r,inFlight:o}){let i=_t();return xm(e,{prepare:t,inFlight:o}),i.nextFrame(()=>{n(),i.requestAnimationFrame(()=>{i.add(vm(e,r))})}),i.dispose}function vm(e,t){var n,r;let o=_t();if(!e)return o.dispose;let i=!1;o.add(()=>{i=!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(),o.dispose):(Promise.allSettled(s.map(a=>a.finished)).then(()=>{i||t()}),o.dispose)}function xm(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 gi(e,t){let n=D([]),r=Z(e);Q(()=>{let o=[...n.current];for(let[i,s]of t.entries())if(n.current[i]!==s){let a=r(t,o);return n.current=t,a}},[r,...t])}let Pr=Ee(null);Pr.displayName="OpenClosedContext";var He=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(He||{});function Dr(){return me(Pr)}function Cm({value:e,children:t}){return $.createElement(Pr.Provider,{value:e},t)}function Sm({children:e}){return $.createElement(Pr.Provider,{value:null},e)}function Em(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let ut=[];Em(()=>{function e(t){if(!(t.target instanceof HTMLElement)||t.target===document.body||ut[0]===t.target)return;let n=t.target;n=n.closest(gr),ut.unshift(n??t.target),ut=ut.filter(r=>r!=null&&r.isConnected),ut.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 Gl(e){let t=Z(e),n=D(!1);Q(()=>(n.current=!1,()=>{n.current=!0,Fr(()=>{n.current&&t()})}),[t])}function km(){let e=typeof document>"u";return"useSyncExternalStore"in io?(t=>t.useSyncExternalStore)(io)(()=>()=>{},()=>!1,()=>!e):!1}function Dn(){let e=km(),[t,n]=X(Tt.isHandoffComplete);return t&&Tt.isHandoffComplete===!1&&n(!1),Q(()=>{t!==!0&&n(!0)},[t]),Q(()=>Tt.handoff(),[]),e?!1:t}let Bl=Ee(!1);function Tm(){return me(Bl)}function Vs(e){return $.createElement(Bl.Provider,{value:e.force},e.children)}function $m(e){let t=Tm(),n=me(Wl),r=Pn(e),[o,i]=X(()=>{var s;if(!t&&n!==null)return(s=n.current)!=null?s:null;if(Tt.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 Q(()=>{o!==null&&(r!=null&&r.body.contains(o)||r==null||r.body.appendChild(o))},[o,r]),Q(()=>{t||n!==null&&i(n.current)},[n,i,t]),o}let zl=G,Am=ye(function(e,t){let n=e,r=D(null),o=Ze(H0(c=>{r.current=c}),t),i=Pn(r),s=$m(r),[a]=X(()=>{var c;return Tt.isServer?null:(c=i==null?void 0:i.createElement("div"))!=null?c:null}),l=me(Co),u=Dn();he(()=>{!s||!a||s.contains(a)||(a.setAttribute("data-headlessui-portal",""),s.appendChild(a))},[s,a]),he(()=>{if(a&&l)return l.register(a)},[l,a]),Gl(()=>{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 f=Fe();return u?!s||!a?null:jo(f({ourProps:{ref:o},theirProps:n,slot:{},defaultTag:zl,name:"Portal"}),a):null});function Im(e,t){let n=Ze(t),{enabled:r=!0,...o}=e,i=Fe();return r?$.createElement(Am,{...o,ref:n}):i({ourProps:{ref:n},theirProps:o,slot:{},defaultTag:zl,name:"Portal"})}let Nm=G,Wl=Ee(null);function Mm(e,t){let{target:n,...r}=e,o={ref:Ze(t)},i=Fe();return $.createElement(Wl.Provider,{value:n},i({ourProps:o,theirProps:r,defaultTag:Nm,name:"Popover.Group"}))}let Co=Ee(null);function Fm(){let e=me(Co),t=D([]),n=Z(i=>(t.current.push(i),e&&e.register(i),()=>r(i))),r=Z(i=>{let s=t.current.indexOf(i);s!==-1&&t.current.splice(s,1),e&&e.unregister(i)}),o=ie(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,ie(()=>function({children:i}){return $.createElement(Co.Provider,{value:o},i)},[o])]}let Pm=ye(Im),ql=ye(Mm),Dm=Object.assign(Pm,{Group:ql});function Om(e,t=typeof document<"u"?document.defaultView:null,n){let r=ln(e,"escape");Ul(t,"keydown",o=>{r&&(o.defaultPrevented||o.key===Ol.Escape&&n(o))})}function Rm(){var e;let[t]=X(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[n,r]=X((e=t==null?void 0:t.matches)!=null?e:!1);return he(()=>{if(!t)return;function o(i){r(i.matches)}return t.addEventListener("change",o),()=>t.removeEventListener("change",o)},[t]),n}function Lm({defaultContainers:e=[],portals:t,mainTreeNode:n}={}){let r=Pn(n),o=Z(()=>{var i,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(i=r==null?void 0:r.querySelectorAll("html > *, body > *"))!=null?i:[])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:o,contains:Z(i=>o().some(s=>s.contains(i)))}}let Zl=Ee(null);function js({children:e,node:t}){let[n,r]=X(null),o=Yl(t??n);return $.createElement(Zl.Provider,{value:o},e,o===null&&$.createElement(bo,{features:mr.Hidden,ref:i=>{var s,a;if(i){for(let l of(a=(s=Mr(i))==null?void 0:s.querySelectorAll("html > *, body > *"))!=null?a:[])if(l!==document.body&&l!==document.head&&l instanceof HTMLElement&&l!=null&&l.contains(i)){r(l);break}}}}))}function Yl(e=null){var t;return(t=me(Zl))!=null?t:e}function wi(){let e=D(!1);return he(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var wn=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(wn||{});function Hm(){let e=D(0);return jl(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function Kl(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 Vm="div";var St=(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))(St||{});function jm(e,t){let n=D(null),r=Ze(n,t),{initialFocus:o,initialFocusFallback:i,containers:s,features:a=15,...l}=e;Dn()||(a=0);let u=Pn(n);zm(a,{ownerDocument:u});let f=Wm(a,{ownerDocument:u,container:n,initialFocus:o,initialFocusFallback:i});qm(a,{ownerDocument:u,container:n,containers:s,previousActiveElement:f});let c=Hm(),h=Z(b=>{let E=n.current;E&&(I=>I())(()=>{mt(c.current,{[wn.Forwards]:()=>{vn(E,Je.First,{skipElements:[b.relatedTarget,i]})},[wn.Backwards]:()=>{vn(E,Je.Last,{skipElements:[b.relatedTarget,i]})}})})}),d=ln(!!(a&2),"focus-trap#tab-lock"),m=hi(),w=D(!1),g={ref:r,onKeyDown(b){b.key=="Tab"&&(w.current=!0,m.requestAnimationFrame(()=>{w.current=!1}))},onBlur(b){if(!(a&4))return;let E=Kl(s);n.current instanceof HTMLElement&&E.add(n.current);let I=b.relatedTarget;I instanceof HTMLElement&&I.dataset.headlessuiFocusGuard!=="true"&&(Jl(E,I)||(w.current?vn(n.current,mt(c.current,{[wn.Forwards]:()=>Je.Next,[wn.Backwards]:()=>Je.Previous})|Je.WrapAround,{relativeTo:b.target}):b.target instanceof HTMLElement&&tt(b.target)))}},y=Fe();return $.createElement($.Fragment,null,d&&$.createElement(bo,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:h,features:mr.Focusable}),y({ourProps:g,theirProps:l,defaultTag:Vm,name:"FocusTrap"}),d&&$.createElement(bo,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:h,features:mr.Focusable}))}let Um=ye(jm),Gm=Object.assign(Um,{features:St});function Bm(e=!0){let t=D(ut.slice());return gi(([n],[r])=>{r===!0&&n===!1&&Fr(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=ut.slice())},[e,ut,t]),Z(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function zm(e,{ownerDocument:t}){let n=!!(e&8),r=Bm(n);gi(()=>{n||(t==null?void 0:t.activeElement)===(t==null?void 0:t.body)&&tt(r())},[n]),Gl(()=>{n&&tt(r())})}function Wm(e,{ownerDocument:t,container:n,initialFocus:r,initialFocusFallback:o}){let i=D(null),s=ln(!!(e&1),"focus-trap#initial-focus"),a=wi();return gi(()=>{if(e===0)return;if(!s){o!=null&&o.current&&tt(o.current);return}let l=n.current;l&&Fr(()=>{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){i.current=u;return}}else if(l.contains(u)){i.current=u;return}if(r!=null&&r.current)tt(r.current);else{if(e&16){if(vn(l,Je.First|Je.AutoFocus)!==xo.Error)return}else if(vn(l,Je.First)!==xo.Error)return;if(o!=null&&o.current&&(tt(o.current),(t==null?void 0:t.activeElement)===o.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}i.current=t==null?void 0:t.activeElement})},[o,s,e]),i}function qm(e,{ownerDocument:t,container:n,containers:r,previousActiveElement:o}){let i=wi(),s=!!(e&4);Ul(t==null?void 0:t.defaultView,"focus",a=>{if(!s||!i.current)return;let l=Kl(r);n.current instanceof HTMLElement&&l.add(n.current);let u=o.current;if(!u)return;let f=a.target;f&&f instanceof HTMLElement?Jl(l,f)?(o.current=f,tt(f)):(a.preventDefault(),a.stopPropagation(),tt(u)):tt(o.current)},!0)}function Jl(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function Xl(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||((t=e.as)!=null?t:eu)!==G||$.Children.count(e.children)===1}let Or=Ee(null);Or.displayName="TransitionContext";var Zm=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Zm||{});function Ym(){let e=me(Or);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function Km(){let e=me(Rr);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Rr=Ee(null);Rr.displayName="NestingContext";function Lr(e){return"children"in e?Lr(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Ql(e,t){let n=Pt(e),r=D([]),o=wi(),i=hi(),s=Z((d,m=dt.Hidden)=>{let w=r.current.findIndex(({el:g})=>g===d);w!==-1&&(mt(m,{[dt.Unmount](){r.current.splice(w,1)},[dt.Hidden](){r.current[w].state="hidden"}}),i.microTask(()=>{var g;!Lr(r)&&o.current&&((g=n.current)==null||g.call(n))}))}),a=Z(d=>{let m=r.current.find(({el:w})=>w===d);return m?m.state!=="visible"&&(m.state="visible"):r.current.push({el:d,state:"visible"}),()=>s(d,dt.Unmount)}),l=D([]),u=D(Promise.resolve()),f=D({enter:[],leave:[]}),c=Z((d,m,w)=>{l.current.splice(0),t&&(t.chains.current[m]=t.chains.current[m].filter(([g])=>g!==d)),t==null||t.chains.current[m].push([d,new Promise(g=>{l.current.push(g)})]),t==null||t.chains.current[m].push([d,new Promise(g=>{Promise.all(f.current[m].map(([y,b])=>b)).then(()=>g())})]),m==="enter"?u.current=u.current.then(()=>t==null?void 0:t.wait.current).then(()=>w(m)):w(m)}),h=Z((d,m,w)=>{Promise.all(f.current[m].splice(0).map(([g,y])=>y)).then(()=>{var g;(g=l.current.shift())==null||g()}).then(()=>w(m))});return ie(()=>({children:r,register:a,unregister:s,onStart:c,onStop:h,wait:u,chains:f}),[a,s,r,c,h,f,u])}let eu=G,tu=hr.RenderStrategy;function Jm(e,t){var n,r;let{transition:o=!0,beforeEnter:i,afterEnter:s,beforeLeave:a,afterLeave:l,enter:u,enterFrom:f,enterTo:c,entered:h,leave:d,leaveFrom:m,leaveTo:w,...g}=e,[y,b]=X(null),E=D(null),I=Xl(e),V=Ze(...I?[E,t,b]:t===null?[]:[t]),J=(n=g.unmount)==null||n?dt.Unmount:dt.Hidden,{show:ae,appear:Be,initial:lt}=Ym(),[z,ke]=X(ae?"visible":"hidden"),un=Km(),{register:Dt,unregister:Ot}=un;he(()=>Dt(E),[Dt,E]),he(()=>{if(J===dt.Hidden&&E.current){if(ae&&z!=="visible"){ke("visible");return}return mt(z,{hidden:()=>Ot(E),visible:()=>Dt(E)})}},[z,E,Dt,Ot,ae,J]);let cn=Dn();he(()=>{if(I&&cn&&z==="visible"&&E.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[E,z,cn,I]);let On=lt&&!Be,Rn=Be&&ae&&lt,fn=D(!1),ze=Ql(()=>{fn.current||(ke("hidden"),Ot(E))},un),Ln=Z(Vr=>{fn.current=!0;let Vn=Vr?"enter":"leave";ze.onStart(E,Vn,pn=>{pn==="enter"?i==null||i():pn==="leave"&&(a==null||a())})}),ne=Z(Vr=>{let Vn=Vr?"enter":"leave";fn.current=!1,ze.onStop(E,Vn,pn=>{pn==="enter"?s==null||s():pn==="leave"&&(l==null||l())}),Vn==="leave"&&!Lr(ze)&&(ke("hidden"),Ot(E))});Q(()=>{I&&o||(Ln(ae),ne(ae))},[ae,I,o]);let Hn=!(!o||!I||!cn||On),[,ge]=ym(Hn,y,ae,{start:Ln,end:ne}),fu=bt({ref:V,className:((r=yo(g.className,Rn&&u,Rn&&f,ge.enter&&u,ge.enter&&ge.closed&&f,ge.enter&&!ge.closed&&c,ge.leave&&d,ge.leave&&!ge.closed&&m,ge.leave&&ge.closed&&w,!ge.transition&&ae&&h))==null?void 0:r.trim())||void 0,..._m(ge)}),dn=0;z==="visible"&&(dn|=He.Open),z==="hidden"&&(dn|=He.Closed),ge.enter&&(dn|=He.Opening),ge.leave&&(dn|=He.Closing);let du=Fe();return $.createElement(Rr.Provider,{value:ze},$.createElement(Cm,{value:dn},du({ourProps:fu,theirProps:g,defaultTag:eu,features:tu,visible:z==="visible",name:"Transition.Child"})))}function Xm(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,s=D(null),a=Xl(e),l=Ze(...a?[s,t]:t===null?[]:[t]);Dn();let u=Dr();if(n===void 0&&u!==null&&(n=(u&He.Open)===He.Open),n===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[f,c]=X(n?"visible":"hidden"),h=Ql(()=>{n||c("hidden")}),[d,m]=X(!0),w=D([n]);he(()=>{d!==!1&&w.current[w.current.length-1]!==n&&(w.current.push(n),m(!1))},[w,n]);let g=ie(()=>({show:n,appear:r,initial:d}),[n,r,d]);he(()=>{n?c("visible"):!Lr(h)&&s.current!==null&&c("hidden")},[n,h]);let y={unmount:o},b=Z(()=>{var V;d&&m(!1),(V=e.beforeEnter)==null||V.call(e)}),E=Z(()=>{var V;d&&m(!1),(V=e.beforeLeave)==null||V.call(e)}),I=Fe();return $.createElement(Rr.Provider,{value:h},$.createElement(Or.Provider,{value:g},I({ourProps:{...y,as:G,children:$.createElement(nu,{ref:l,...y,...i,beforeEnter:b,beforeLeave:E})},theirProps:{},defaultTag:G,features:tu,visible:f==="visible",name:"Transition"})))}function Qm(e,t){let n=me(Or)!==null,r=Dr()!==null;return $.createElement($.Fragment,null,!n&&r?$.createElement(So,{ref:t,...e}):$.createElement(nu,{ref:t,...e}))}let So=ye(Xm),nu=ye(Jm),_i=ye(Qm),eg=Object.assign(So,{Child:_i,Root:So});var tg=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(tg||{}),ng=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(ng||{});let rg={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},yi=Ee(null);yi.displayName="DialogContext";function Hr(e){let t=me(yi);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Hr),n}return t}function og(e,t){return mt(t.type,rg,e,t)}let Us=ye(function(e,t){let n=gt(),{id:r=`headlessui-dialog-${n}`,open:o,onClose:i,initialFocus:s,role:a="dialog",autoFocus:l=!0,__demoMode:u=!1,unmount:f=!1,...c}=e,h=D(!1);a=function(){return a==="dialog"||a==="alertdialog"?a:(h.current||(h.current=!0,console.warn(`Invalid role [${a}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let d=Dr();o===void 0&&d!==null&&(o=(d&He.Open)===He.Open);let m=D(null),w=Ze(m,t),g=Pn(m),y=o?0:1,[b,E]=kn(og,{titleId:null,descriptionId:null,panelRef:ko()}),I=Z(()=>i(!1)),V=Z(ne=>E({type:0,id:ne})),J=Dn()?y===0:!1,[ae,Be]=Fm(),lt={get current(){var ne;return(ne=b.panelRef.current)!=null?ne:m.current}},z=Yl(),{resolveContainers:ke}=Lm({mainTreeNode:z,portals:ae,defaultContainers:[lt]}),un=d!==null?(d&He.Closing)===He.Closing:!1;Y0(u||un?!1:J,{allowed:Z(()=>{var ne,Hn;return[(Hn=(ne=m.current)==null?void 0:ne.closest("[data-headlessui-portal]"))!=null?Hn:null]}),disallowed:Z(()=>{var ne;return[(ne=z==null?void 0:z.closest("body > *:not(#headlessui-portal-root)"))!=null?ne:null]})}),lm(J,ke,ne=>{ne.preventDefault(),I()}),Om(J,g==null?void 0:g.defaultView,ne=>{ne.preventDefault(),ne.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),I()}),hm(u||un?!1:J,g,ke),K0(J,m,I);let[Dt,Ot]=V0(),cn=ie(()=>[{dialogState:y,close:I,setTitleId:V,unmount:f},b],[y,b,I,V,f]),On=ie(()=>({open:y===0}),[y]),Rn={ref:w,id:r,role:a,tabIndex:-1,"aria-modal":u?void 0:y===0?!0:void 0,"aria-labelledby":b.titleId,"aria-describedby":Dt,unmount:f},fn=!Rm(),ze=St.None;J&&!u&&(ze|=St.RestoreFocus,ze|=St.TabLock,l&&(ze|=St.AutoFocus),fn&&(ze|=St.InitialFocus));let Ln=Fe();return $.createElement(Sm,null,$.createElement(Vs,{force:!0},$.createElement(Dm,null,$.createElement(yi.Provider,{value:cn},$.createElement(ql,{target:m},$.createElement(Vs,{force:!1},$.createElement(Ot,{slot:On},$.createElement(Be,null,$.createElement(Gm,{initialFocus:s,initialFocusFallback:m,containers:ke,features:ze},$.createElement(W0,{value:I},Ln({ourProps:Rn,theirProps:c,slot:On,defaultTag:ig,features:sg,visible:y===0,name:"Dialog"})))))))))))}),ig="div",sg=hr.RenderStrategy|hr.Static;function ag(e,t){let{transition:n=!1,open:r,...o}=e,i=Dr(),s=e.hasOwnProperty("open")||i!==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(!i&&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)&&!o.static?$.createElement(js,null,$.createElement(eg,{show:r,transition:n,unmount:o.unmount},$.createElement(Us,{ref:t,...o}))):$.createElement(js,null,$.createElement(Us,{ref:t,open:r,...o}))}let lg="div";function ug(e,t){let n=gt(),{id:r=`headlessui-dialog-panel-${n}`,transition:o=!1,...i}=e,[{dialogState:s,unmount:a},l]=Hr("Dialog.Panel"),u=Ze(t,l.panelRef),f=ie(()=>({open:s===0}),[s]),c=Z(g=>{g.stopPropagation()}),h={ref:u,id:r,onClick:c},d=o?_i:G,m=o?{unmount:a}:{},w=Fe();return $.createElement(d,{...m},w({ourProps:h,theirProps:i,slot:f,defaultTag:lg,name:"Dialog.Panel"}))}let cg="div";function fg(e,t){let{transition:n=!1,...r}=e,[{dialogState:o,unmount:i}]=Hr("Dialog.Backdrop"),s=ie(()=>({open:o===0}),[o]),a={ref:t,"aria-hidden":!0},l=n?_i:G,u=n?{unmount:i}:{},f=Fe();return $.createElement(l,{...u},f({ourProps:a,theirProps:r,slot:s,defaultTag:cg,name:"Dialog.Backdrop"}))}let dg="h2";function pg(e,t){let n=gt(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:i,setTitleId:s}]=Hr("Dialog.Title"),a=Ze(t);Q(()=>(s(r),()=>s(null)),[r,s]);let l=ie(()=>({open:i===0}),[i]),u={ref:a,id:r};return Fe()({ourProps:u,theirProps:o,slot:l,defaultTag:dg,name:"Dialog.Title"})}let hg=ye(ag),mg=ye(ug),gg=ye(fg),wg=ye(pg),ru=Object.assign(hg,{Panel:mg,Title:wg,Description:B0});class Yt extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Open","OnClose","Children"]}}function ou(e){return p(ru,ai(e,1))}class iu extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","ClassName","Children"]}}function su(e){return p(ru.Panel,ai(e,1))}class au extends O{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName"]}}function lu(e){return p(gg,ai(e,1))}function uu(e,t){let n;return p("svg",C(v([["width",e],["height",t],["viewBox","0 0 "+e+" "+t],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(n=U(p("path",{d:"M6 18L18 6M6 6L18 18",stroke:"#9CA3AF",strokeLinejoin:"round",strokeWidth:2,strokeLinecap:"round"})),["children",S.Children.toArray(Array.from(n))])])))}function cu(e,t){let n,r,o;return p("svg",C(v([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=v([p("path",C(v([(r="M11.6666 13.6667H2.33328C1.23062 13.6667 0.333282 12.7693 0.333282 11.6667V9H1.66662V11.6667C1.66662 12.034 1.96595 12.3333 2.33328 12.3333H11.6666C12.0339 12.3333 12.3333 12.034 12.3333 11.6667V9H13.6666V11.6667C13.6666 12.7693 12.7693 13.6667 11.6666 13.6667Z",["d",r]),["fill","#2E66F7"]]))),p("path",C(v([(o="M10.3333 4.72395L7.66667 7.39062V0.333282H6.33333V7.39062L3.66667 4.72395L2.724 5.66662L7 9.94262L11.276 5.66662L10.3333 4.72395Z",["d",o]),["fill","#2E66F7"]])))]),["children",S.Children.toArray(Array.from(n))])])))}class _g extends B{constructor(t){super(),this.AccountImports=t}}function yg(e){return[new _g(e),Se()]}function bg(e,t){return[t,Se()]}function vg(e,t){let n,r;return p("svg",C(v([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=v([p("path",C(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"]]))),p("path",{d:"M16.414 7L10 0.585999L3.586 7L5 8.414L9 4.414V15H11V4.414L15 8.414L16.414 7Z",fill:"#9CA3AF"})]),["children",S.Children.toArray(Array.from(n))])])))}function xg(e,t){let n,r;return p("svg",C(v([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=U(p("path",C(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",S.Children.toArray(Array.from(n))])])))}function Wn(e,t){return p("div",C(Nn(oe(()=>it(ue(t?["className","text-xs border-b-2 border-primary-600 pt-1 pb-3 text-primary-600"]:["className","text-xs pt-1 pb-3 text-gray-500"]),oe(()=>{let n;return ue((n=[p("span",{children:e})],["children",S.Children.toArray(Array.from(n))]))}))))))}function Cg(e,t){let n,r,o,i,s,a,l,u,f,c,h,d,m,w,g,y,b,E,I,V,J,ae;return ou(v([new Yt(3,[e]),new Yt(4,[t]),new Yt(5,[[lu(U(new au(2,["fixed inset-0 bg-gray-500/50"]))),p("div",C(v([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(n=[su(U(new iu(2,[[p("div",C(v([["className","flex flex-col mt-6 mb-6 px-6"],(r=[p("div",C(v([["className","flex flex-row justify-between"],(o=[p("span",{className:"text-gray-900 font-semibold text-lg",children:"What kind of data do I need?"}),p("button",C(v([["onClick",Be=>{t()}],["type","button"],(i=[uu(24,24)],["children",S.Children.toArray(Array.from(i))])])))],["children",S.Children.toArray(Array.from(o))])]))),p("div",C(v([["className","text-gray-600 text-sm pt-6"],(s=[p("span",{children:"Fields marked with "}),p("span",{className:"text-red-600",children:"*"}),p("span",C(U((a=" are required to create a user. While “Mobile number” and “Employment basis” are optional, they are recommended for improved searching and filtering.",["children",a]))))],["children",S.Children.toArray(Array.from(s))])]))),p("div",C(v([["className","grid grid-cols-2 mt-3"],(l=[p("span",{className:"text-gray-900 font-medium text-sm px-3 py-3.5 bg-gray-100 border",children:"Column fields"}),p("span",{className:"text-gray-900 font-medium text-sm px-3 py-3.5 bg-gray-100 border",children:"Accepted values"}),p("div",C(v([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(u=[p("span",{children:"First name "}),p("span",{className:"text-red-600",children:"*"})],["children",S.Children.toArray(Array.from(u))])]))),p("div",C(U((f=[p("div",C(v([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(c=[p("span",{children:"For example:"}),p("br",{}),p("span",{className:"italic",children:"Sam, Josh, Alex"})],["children",S.Children.toArray(Array.from(c))])])))],["children",S.Children.toArray(Array.from(f))])))),p("div",C(v([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(h=[p("span",{children:"Last name "}),p("span",{className:"text-red-600",children:"*"})],["children",S.Children.toArray(Array.from(h))])]))),p("div",C(U((d=[p("div",C(v([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(m=[p("span",{children:"For example:"}),p("br",{}),p("span",{className:"italic",children:"Smith, Doe, Williams"})],["children",S.Children.toArray(Array.from(m))])])))],["children",S.Children.toArray(Array.from(d))])))),p("div",C(v([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(w=[p("span",{children:"Email "}),p("span",{className:"text-red-600",children:"*"})],["children",S.Children.toArray(Array.from(w))])]))),p("div",C(U((g=[p("div",C(v([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(y=[p("span",{children:"For example:"}),p("br",{}),p("span",{className:"italic",children:"john.smith@mycompany.com"})],["children",S.Children.toArray(Array.from(y))])])))],["children",S.Children.toArray(Array.from(g))])))),p("span",{className:"text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border",children:"Mobile number"}),p("div",C(U((b=[p("div",C(v([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(E=[p("span",{children:"For example:"}),p("br",{}),p("span",{className:"italic",children:"+61432368712"})],["children",S.Children.toArray(Array.from(E))])])))],["children",S.Children.toArray(Array.from(b))])))),p("span",{className:"text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border",children:"Employment basis"}),p("div",C(U((I=[p("div",C(v([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(V=[p("span",{children:"One of the following options:"}),p("br",{}),p("ul",C(v([["className","italic list-disc px-3"],(J=[p("li",{children:"Full-time"}),p("li",{children:"Part-time"}),p("li",{children:"Labour hire"}),p("li",{children:"Casual"})],["children",S.Children.toArray(Array.from(J))])])))],["children",S.Children.toArray(Array.from(V))])])))],["children",S.Children.toArray(Array.from(I))])))),p("div",C(v([["className","flex flex-row items-end gap-1 pt-3"],(ae=[p("span",{className:"text-xs text-primary-600 font-medium",children:"Download template"}),cu(13,13)],["children",S.Children.toArray(Array.from(ae))])])))],["children",S.Children.toArray(Array.from(l))])])))],["children",S.Children.toArray(Array.from(r))])])))]])))],["children",S.Children.toArray(Array.from(n))])])))]])]))}function Sg(e,t){let n,r,o,i,s,a,l;return ou(v([new Yt(3,[e]),new Yt(4,[t]),new Yt(5,[[lu(U(new au(2,["fixed inset-0 bg-gray-500/50"]))),p("div",C(v([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(n=[su(U(new iu(2,[[p("div",C(v([["className","flex flex-col mt-6 mb-6 px-6"],(r=[p("div",C(v([["className","flex flex-row justify-between"],(o=[p("span",{className:"text-gray-900 font-semibold text-lg",children:"Frequently asked questions"}),p("button",C(v([["onClick",u=>{t()}],["type","button"],(i=[uu(24,24)],["children",S.Children.toArray(Array.from(i))])])))],["children",S.Children.toArray(Array.from(o))])]))),p("div",{className:"font-semibold text-sm pt-6",children:"What file format is accepted for bulk import?"}),p("div",{className:"text-sm text-gray-500 pt-2",children:"The only accepted file format for bulk import is CSV."}),p("div",{className:"font-semibold text-sm pt-6",children:"What is the maximum upload file size?"}),p("div",{className:"text-sm text-gray-500 pt-2",children:"The maximum upload file size is 10 MB."}),p("div",{className:"font-semibold text-sm pt-6",children:"What is the maximum number of rows supported for bulk import?"}),p("div",{className:"text-sm text-gray-500 pt-2",children:"The maximum number of rows you can upload is 5,000."}),p("div",{className:"font-semibold text-sm pt-6",children:"What information do I need to include in the CSV file?"}),p("div",C(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])]))),p("div",{className:"font-semibold text-sm pt-6",children:"How do I format the CSV file?"}),p("div",C(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.
36
- 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])]))),p("div",{className:"font-semibold text-sm pt-6",children:"What should I do if my CSV file contains errors?"}),p("div",C(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.
37
- If errors are detected during import, you can download a CSV file that lists all the rows with issues.`,["children",l])])))],["children",S.Children.toArray(Array.from(r))])])))]])))],["children",S.Children.toArray(Array.from(n))])])))]])]))}function Eg(e){let t,n,r,o,i,s,a,l,u,f,c,h;const d=e.accountImports,m=yg(d);Ar(()=>$r(()=>m,bg,(E,I)=>{}),void 0,void 0);const w=S.useState(!1),g=w[1],y=S.useState(!1),b=y[1];return p("div",C(U((t=[Cg(w[0],()=>{g(!1)}),Sg(y[0],()=>{b(!1)}),p("div",C(v([["className","flex flex-col"],(n=[p("div",C(v([["className","flex flex-row justify-between px-12 pt-8 pb-4"],(r=[p("span",{className:"font-sonoma text-gray-900 font-bold text-lg",children:"Import Users from CSV"}),p("button",{className:"rounded-md text-red-700 text-xs w-[120px] border font-medium px-3 py-2",onClick:E=>{},type:"button",children:S.Children.toArray(["Cancel import"])})],["children",S.Children.toArray(Array.from(r))])]))),p("div",C(v([["className","flex flex-row items-center px-12 gap-2"],(o=[Wn("1. Upload CSV",!0),p("hr",{className:"w-16 pt-1.5"}),Wn("2. Map fields",!1),p("hr",{className:"w-16 pt-1.5"}),Wn("3. Map values",!1),p("hr",{className:"w-16 pt-1.5"}),Wn("4. Review",!1)],["children",S.Children.toArray(Array.from(o))])]))),p("div",C(v([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12"],(i=[p("span",{className:"font-sonoma text-gray-900 font-semibold text-lg",children:"Upload CSV"}),p("span",{className:"text-xs pt-2",children:"Download and use our template, or upload your own CSV to get started."}),p("div",C(v([["className","flex flex-row items-end gap-1"],(s=[p("span",{className:"text-xs text-primary-600 pt-2",children:"Download sample CSV template"}),cu(13,13)],["children",S.Children.toArray(Array.from(s))])]))),p("div",C(v([["className","flex flex-row pt-3 gap-2"],(a=[p("button",{className:"rounded-2xl text-xs text-gray-600 border px-3.5 py-1.5",onClick:E=>{g(!0)},type:"button",children:S.Children.toArray(["What kind of data do I need?"])}),p("button",{className:"rounded-2xl text-xs text-gray-600 border px-3.5 py-1.5",onClick:E=>{b(!0)},type:"button",children:S.Children.toArray(["Frequently asked questions"])})],["children",S.Children.toArray(Array.from(a))])]))),p("div",C(v([["className","max-w-[640px] h-75 border-dashed border-2 rounded-md my-6"],(l=[p("div",C(v([["className","flex flex-col items-center px-2 py-6"],(u=[vg(20,21),p("span",{className:"text-xs mt-3",children:"Drag and drop CSV file here"}),p("button",{className:"rounded text-xs w-[120px] border px-3 py-2 mt-4 font-medium text-gray-700",onClick:E=>{},type:"button",children:S.Children.toArray(["Choose file"])}),p("span",{className:"text-xs mt-2 font-normal",children:"Maximum size: 10 MB"})],["children",S.Children.toArray(Array.from(u))])])))],["children",S.Children.toArray(Array.from(l))])]))),p("div",C(v([["className","w-[600px] flex flex-row justify-end gap-3"],(f=[p("button",{className:"rounded-md text-red-700 text-xs w-[120px] border font-medium px-3 py-2",onClick:E=>{},type:"button",children:S.Children.toArray(["Cancel import"])}),p("button",C(v([(c="inline-flex justify-center items-center gap-x-1 rounded-md text-white bg-primary-600 text-xs w-[120px] border font-medium px-3 py-2",["className",c]),["onClick",E=>{}],["type","button"],(h=["Map fields",xg(13,8)],["children",S.Children.toArray(Array.from(h))])])))],["children",S.Children.toArray(Array.from(f))])])))],["children",S.Children.toArray(Array.from(i))])])))],["children",S.Children.toArray(Array.from(n))])])))],["children",S.Children.toArray(Array.from(t))]))))}function kg(e){const t=_l(e.backendUrl);let n;const r=Ar(()=>$r(k0,(i,s)=>T0(()=>yl(t),i),(i,s)=>{}),void 0,[])[0].View;n=r.tag===2?p("div",{children:[`Error: ${r.fields[0]}`]}):r.tag===1?p(Eg,{accountImports:Rc(r.fields[0])}):p("div",{children:["Please wait..."]});const o=[p("style",{children:[Wo]}),n];return p(G,{},...o)}function Tg(){Mo(e=>p(kg,e),"apollo-import-workspace-wizard")}Mo(e=>p(gf,e),"apollo-import-workspace-app");E0();Tg();
34
+ `))}else{let p=f.props,h=p==null?void 0:p.className,m=typeof h=="function"?(...y)=>xo(h(...y),l.className):xo(h,l.className),w=m?{className:m}:{},g=Ul(f.props,vt(ro(l,["ref"])));for(let y in c)y in g&&delete c[y];return zo(f,Object.assign({},g,c,u,{ref:o(om(f),u.ref)},w))}return d(i,Object.assign({},ro(l,["ref"]),i!==G&&u,i!==G&&c),f)}function nm(){let e=O([]),t=Re(n=>{for(let r of e.current)r!=null&&(typeof r=="function"?r(n):r.current=n)},[]);return(...n)=>{if(!n.every(r=>r==null))return e.current=n,t}}function rm(...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 Ul(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[o=>{var i;return(i=o==null?void 0:o.preventDefault)==null?void 0:i.call(o)}]);for(let r in n)Object.assign(t,{[r](o,...i){let s=n[r];for(let a of s){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;a(o,...i)}}});return t}function ye(e){var t;return Object.assign(Go(e),{displayName:(t=e.displayName)!=null?t:e.name})}function vt(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function ro(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function om(e){return A.version.split(".")[0]>="19"?e.props.ref:e.ref}let im="span";var _r=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(_r||{});function sm(e,t){var n;let{features:r=1,...o}=e,i={ref:t,"aria-hidden":(r&2)===2?!0:(n=o["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 Me()({ourProps:i,theirProps:o,slot:{},defaultTag:im,name:"Hidden"})}let Co=ye(sm),Gl=Symbol();function am(e,t=!0){return Object.assign(e,{[Gl]:t})}function Ye(...e){let t=O(e);Q(()=>{t.current=e},[e]);let n=Z(r=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(r):o.current=r)});return e.every(r=>r==null||(r==null?void 0:r[Gl]))?void 0:n}let gi=Se(null);gi.displayName="DescriptionContext";function Bl(){let e=me(gi);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,Bl),t}return e}function lm(){let[e,t]=X([]);return[e.length>0?e.join(" "):void 0,ie(()=>function(n){let r=Z(i=>(t(s=>[...s,i]),()=>t(s=>{let a=s.slice(),l=a.indexOf(i);return l!==-1&&a.splice(l,1),a}))),o=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 A.createElement(gi.Provider,{value:o},n.children)},[t])]}let um="p";function cm(e,t){let n=_t(),r=em(),{id:o=`headlessui-description-${n}`,...i}=e,s=Bl(),a=Ye(t);pe(()=>s.register(o),[o,s.register]);let l=r||!1,u=ie(()=>({...s.slot,disabled:l}),[s.slot,l]),f={ref:a,...s.props,id:o};return Me()({ourProps:f,theirProps:i,slot:u,defaultTag:um,name:s.name||"Description"})}let fm=ye(cm),dm=Object.assign(fm,{});var Wl=(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))(Wl||{});let hm=Se(()=>{});function pm({value:e,children:t}){return A.createElement(hm.Provider,{value:e},t)}let mm=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 zl(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...i){let s=t[o].call(n,...i);s&&(n=s,r.forEach(a=>a()))}}}function ql(e){return vr(e.subscribe,e.getSnapshot,e.getSnapshot)}let gm=new mm(()=>zl(()=>[],{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 cn(e,t){let n=gm.get(t),r=_t(),o=ql(n);if(pe(()=>{if(e)return n.dispatch("ADD",r),()=>n.dispatch("REMOVE",r)},[n,e]),!e)return!1;let i=o.indexOf(r),s=o.length;return i===-1&&(i=s,s+=1),i===s-1}let So=new Map,xn=new Map;function Hs(e){var t;let n=(t=xn.get(e))!=null?t:0;return xn.set(e,n+1),n!==0?()=>Vs(e):(So.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>Vs(e))}function Vs(e){var t;let n=(t=xn.get(e))!=null?t:1;if(n===1?xn.delete(e):xn.set(e,n-1),n!==1)return;let r=So.get(e);r&&(r["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,So.delete(e))}function wm(e,{allowed:t,disallowed:n}={}){let r=cn(e,"inert-others");pe(()=>{var o,i;if(!r)return;let s=yt();for(let l of(o=n==null?void 0:n())!=null?o:[])l&&s.add(Hs(l));let a=(i=t==null?void 0:t())!=null?i:[];for(let l of a){if(!l)continue;let u=Rr(l);if(!u)continue;let f=l.parentElement;for(;f&&f!==u.body;){for(let c of f.children)a.some(p=>c.contains(p))||s.add(Hs(c));f=f.parentElement}}return s.dispose},[r,t,n])}function _m(e,t,n){let r=Dt(o=>{let i=o.getBoundingClientRect();i.x===0&&i.y===0&&i.width===0&&i.height===0&&n()});Q(()=>{if(!e)return;let o=t===null?null:t instanceof HTMLElement?t:t.current;if(!o)return;let i=yt();if(typeof ResizeObserver<"u"){let s=new ResizeObserver(()=>r.current(o));s.observe(o),i.add(()=>s.disconnect())}if(typeof IntersectionObserver<"u"){let s=new IntersectionObserver(()=>r.current(o));s.observe(o),i.add(()=>s.disconnect())}return()=>i.dispose()},[t,r,e])}let yr=["[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(","),ym=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Xe=(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))(Xe||{}),Eo=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Eo||{}),bm=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(bm||{});function vm(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(yr)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}function xm(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(ym)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Zl=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Zl||{});function Cm(e,t=0){var n;return e===((n=Rr(e))==null?void 0:n.body)?!1:wt(t,{0(){return e.matches(yr)},1(){let r=e;for(;r!==null;){if(r.matches(yr))return!0;r=r.parentElement}return!1}})}var Sm=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Sm||{});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 nt(e){e==null||e.focus({preventScroll:!0})}let Em=["textarea","input"].join(",");function km(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,Em))!=null?n:!1}function Tm(e,t=n=>n){return e.slice().sort((n,r)=>{let o=t(n),i=t(r);if(o===null||i===null)return 0;let s=o.compareDocumentPosition(i);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Cn(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,s=Array.isArray(e)?n?Tm(e):e:t&64?xm(e):vm(e);o.length>0&&s.length>1&&(s=s.filter(h=>!o.some(m=>m!=null&&"current"in m?(m==null?void 0:m.current)===h:m===h))),r=r??i.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}:{},f=0,c=s.length,p;do{if(f>=c||f+c<=0)return 0;let h=l+f;if(t&16)h=(h+c)%c;else{if(h<0)return 3;if(h>=c)return 1}p=s[h],p==null||p.focus(u),f+=a}while(p!==i.activeElement);return t&6&&km(p)&&p.select(),2}function Yl(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Am(){return/Android/gi.test(window.navigator.userAgent)}function $m(){return Yl()||Am()}function _n(e,t,n,r){let o=Dt(n);Q(()=>{if(!e)return;function i(s){o.current(s)}return document.addEventListener(t,i,r),()=>document.removeEventListener(t,i,r)},[e,t,r])}function Kl(e,t,n,r){let o=Dt(n);Q(()=>{if(!e)return;function i(s){o.current(s)}return window.addEventListener(t,i,r),()=>window.removeEventListener(t,i,r)},[e,t,r])}const js=30;function Nm(e,t,n){let r=cn(e,"outside-click"),o=Dt(n),i=Re(function(l,u){if(l.defaultPrevented)return;let f=u(l);if(f===null||!f.getRootNode().contains(f)||!f.isConnected)return;let c=function p(h){return typeof h=="function"?p(h()):Array.isArray(h)||h instanceof Set?h:[h]}(t);for(let p of c)if(p!==null&&(p.contains(f)||l.composed&&l.composedPath().includes(p)))return;return!Cm(f,Zl.Loose)&&f.tabIndex!==-1&&l.preventDefault(),o.current(l,f)},[o,t]),s=O(null);_n(r,"pointerdown",l=>{var u,f;s.current=((f=(u=l.composedPath)==null?void 0:u.call(l))==null?void 0:f[0])||l.target},!0),_n(r,"mousedown",l=>{var u,f;s.current=((f=(u=l.composedPath)==null?void 0:u.call(l))==null?void 0:f[0])||l.target},!0),_n(r,"click",l=>{$m()||s.current&&(i(l,()=>s.current),s.current=null)},!0);let a=O({x:0,y:0});_n(r,"touchstart",l=>{a.current.x=l.touches[0].clientX,a.current.y=l.touches[0].clientY},!0),_n(r,"touchend",l=>{let u={x:l.changedTouches[0].clientX,y:l.changedTouches[0].clientY};if(!(Math.abs(u.x-a.current.x)>=js||Math.abs(u.y-a.current.y)>=js))return i(l,()=>l.target instanceof HTMLElement?l.target:null)},!0),Kl(r,"blur",l=>i(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function On(...e){return ie(()=>Rr(...e),[...e])}function Jl(e,t,n,r){let o=Dt(n);Q(()=>{e=e??window;function i(s){o.current(s)}return e.addEventListener(t,i,r),()=>e.removeEventListener(t,i,r)},[e,t,r])}function Im(){let e;return{before({doc:t}){var n;let r=t.documentElement,o=(n=t.defaultView)!=null?n:window;e=Math.max(0,o.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,o=Math.max(0,r.clientWidth-r.offsetWidth),i=Math.max(0,e-o);n.style(r,"paddingRight",`${i}px`)}}}function Mm(){return Yl()?{before({doc:e,d:t,meta:n}){function r(o){return n.containers.flatMap(i=>i()).some(i=>i.contains(o))}t.microTask(()=>{var o;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let a=yt();a.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>a.dispose()))}let i=(o=window.scrollY)!=null?o: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),f=e.querySelector(u);f&&!r(f)&&(s=f)}catch{}},!0),t.addEventListener(e,"touchstart",a=>{if(a.target instanceof HTMLElement)if(r(a.target)){let l=a.target;for(;l.parentElement&&r(l.parentElement);)l=l.parentElement;t.style(l,"overscrollBehavior","contain")}else t.style(a.target,"touchAction","none")}),t.addEventListener(e,"touchmove",a=>{if(a.target instanceof HTMLElement){if(a.target.tagName==="INPUT")return;if(r(a.target)){let l=a.target;for(;l.parentElement&&l.dataset.headlessuiPortal!==""&&!(l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth);)l=l.parentElement;l.dataset.headlessuiPortal===""&&a.preventDefault()}else a.preventDefault()}},{passive:!1}),t.add(()=>{var a;let l=(a=window.scrollY)!=null?a:window.pageYOffset;i!==l&&window.scrollTo(0,i),s&&s.isConnected&&(s.scrollIntoView({block:"nearest"}),s=null)})})}}:{}}function Fm(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function Pm(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Tt=zl(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:yt(),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:Pm(n)},o=[Mm(),Im(),Fm()];o.forEach(({before:i})=>i==null?void 0:i(r)),o.forEach(({after:i})=>i==null?void 0:i(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Tt.subscribe(()=>{let e=Tt.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",o=n.count!==0;(o&&!r||!o&&r)&&Tt.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Tt.dispatch("TEARDOWN",n)}});function Dm(e,t,n=()=>({containers:[]})){let r=ql(Tt),o=t?r.get(t):void 0,i=o?o.count>0:!1;return pe(()=>{if(!(!t||!e))return Tt.dispatch("PUSH",t,n),()=>Tt.dispatch("POP",t,n)},[e,t]),i}function Om(e,t,n=()=>[document.body]){let r=cn(e,"scroll-lock");Dm(r,t,o=>{var i;return{containers:[...(i=o.containers)!=null?i:[],n]}})}function Rm(e=0){let[t,n]=X(e),r=Re(l=>n(l),[t]),o=Re(l=>n(u=>u|l),[t]),i=Re(l=>(t&l)===l,[t]),s=Re(l=>n(u=>u&~l),[n]),a=Re(l=>n(u=>u^l),[n]);return{flags:t,setFlag:r,addFlag:o,hasFlag:i,removeFlag:s,toggleFlag:a}}var Lm={},Us,Gs;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((Us=process==null?void 0:Lm)==null?void 0:Us.NODE_ENV)==="test"&&typeof((Gs=Element==null?void 0:Element.prototype)==null?void 0:Gs.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 Hm=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(Hm||{});function Vm(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function jm(e,t,n,r){let[o,i]=X(n),{hasFlag:s,addFlag:a,removeFlag:l}=Rm(e&&o?3:0),u=O(!1),f=O(!1),c=mi();return pe(()=>{var p;if(e){if(n&&i(!0),!t){n&&a(3);return}return(p=r==null?void 0:r.start)==null||p.call(r,n),Um(t,{inFlight:u,prepare(){f.current?f.current=!1:f.current=u.current,u.current=!0,!f.current&&(n?(a(3),l(4)):(a(4),l(2)))},run(){f.current?n?(l(3),a(4)):(l(4),a(3)):n?l(1):a(1)},done(){var h;f.current&&typeof t.getAnimations=="function"&&t.getAnimations().length>0||(u.current=!1,l(7),n||i(!1),(h=r==null?void 0:r.end)==null||h.call(r,n))}})}},[e,n,t,c]),e?[o,{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 Um(e,{prepare:t,run:n,done:r,inFlight:o}){let i=yt();return Bm(e,{prepare:t,inFlight:o}),i.nextFrame(()=>{n(),i.requestAnimationFrame(()=>{i.add(Gm(e,r))})}),i.dispose}function Gm(e,t){var n,r;let o=yt();if(!e)return o.dispose;let i=!1;o.add(()=>{i=!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(),o.dispose):(Promise.allSettled(s.map(a=>a.finished)).then(()=>{i||t()}),o.dispose)}function Bm(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 wi(e,t){let n=O([]),r=Z(e);Q(()=>{let o=[...n.current];for(let[i,s]of t.entries())if(n.current[i]!==s){let a=r(t,o);return n.current=t,a}},[r,...t])}let Hr=Se(null);Hr.displayName="OpenClosedContext";var Le=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Le||{});function Vr(){return me(Hr)}function Wm({value:e,children:t}){return A.createElement(Hr.Provider,{value:e},t)}function zm({children:e}){return A.createElement(Hr.Provider,{value:null},e)}function qm(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let ct=[];qm(()=>{function e(t){if(!(t.target instanceof HTMLElement)||t.target===document.body||ct[0]===t.target)return;let n=t.target;n=n.closest(yr),ct.unshift(n??t.target),ct=ct.filter(r=>r!=null&&r.isConnected),ct.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 Xl(e){let t=Z(e),n=O(!1);Q(()=>(n.current=!1,()=>{n.current=!0,Lr(()=>{n.current&&t()})}),[t])}function Zm(){let e=typeof document>"u";return"useSyncExternalStore"in co?(t=>t.useSyncExternalStore)(co)(()=>()=>{},()=>!1,()=>!e):!1}function Rn(){let e=Zm(),[t,n]=X(At.isHandoffComplete);return t&&At.isHandoffComplete===!1&&n(!1),Q(()=>{t!==!0&&n(!0)},[t]),Q(()=>At.handoff(),[]),e?!1:t}let Ql=Se(!1);function Ym(){return me(Ql)}function Bs(e){return A.createElement(Ql.Provider,{value:e.force},e.children)}function Km(e){let t=Ym(),n=me(tu),r=On(e),[o,i]=X(()=>{var s;if(!t&&n!==null)return(s=n.current)!=null?s:null;if(At.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 Q(()=>{o!==null&&(r!=null&&r.body.contains(o)||r==null||r.body.appendChild(o))},[o,r]),Q(()=>{t||n!==null&&i(n.current)},[n,i,t]),o}let eu=G,Jm=ye(function(e,t){let n=e,r=O(null),o=Ye(am(c=>{r.current=c}),t),i=On(r),s=Km(r),[a]=X(()=>{var c;return At.isServer?null:(c=i==null?void 0:i.createElement("div"))!=null?c:null}),l=me(ko),u=Rn();pe(()=>{!s||!a||s.contains(a)||(a.setAttribute("data-headlessui-portal",""),s.appendChild(a))},[s,a]),pe(()=>{if(a&&l)return l.register(a)},[l,a]),Xl(()=>{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 f=Me();return u?!s||!a?null:Bo(f({ourProps:{ref:o},theirProps:n,slot:{},defaultTag:eu,name:"Portal"}),a):null});function Xm(e,t){let n=Ye(t),{enabled:r=!0,...o}=e,i=Me();return r?A.createElement(Jm,{...o,ref:n}):i({ourProps:{ref:n},theirProps:o,slot:{},defaultTag:eu,name:"Portal"})}let Qm=G,tu=Se(null);function eg(e,t){let{target:n,...r}=e,o={ref:Ye(t)},i=Me();return A.createElement(tu.Provider,{value:n},i({ourProps:o,theirProps:r,defaultTag:Qm,name:"Popover.Group"}))}let ko=Se(null);function tg(){let e=me(ko),t=O([]),n=Z(i=>(t.current.push(i),e&&e.register(i),()=>r(i))),r=Z(i=>{let s=t.current.indexOf(i);s!==-1&&t.current.splice(s,1),e&&e.unregister(i)}),o=ie(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,ie(()=>function({children:i}){return A.createElement(ko.Provider,{value:o},i)},[o])]}let ng=ye(Xm),nu=ye(eg),rg=Object.assign(ng,{Group:nu});function og(e,t=typeof document<"u"?document.defaultView:null,n){let r=cn(e,"escape");Jl(t,"keydown",o=>{r&&(o.defaultPrevented||o.key===Wl.Escape&&n(o))})}function ig(){var e;let[t]=X(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[n,r]=X((e=t==null?void 0:t.matches)!=null?e:!1);return pe(()=>{if(!t)return;function o(i){r(i.matches)}return t.addEventListener("change",o),()=>t.removeEventListener("change",o)},[t]),n}function sg({defaultContainers:e=[],portals:t,mainTreeNode:n}={}){let r=On(n),o=Z(()=>{var i,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(i=r==null?void 0:r.querySelectorAll("html > *, body > *"))!=null?i:[])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:o,contains:Z(i=>o().some(s=>s.contains(i)))}}let ru=Se(null);function Ws({children:e,node:t}){let[n,r]=X(null),o=ou(t??n);return A.createElement(ru.Provider,{value:o},e,o===null&&A.createElement(Co,{features:_r.Hidden,ref:i=>{var s,a;if(i){for(let l of(a=(s=Rr(i))==null?void 0:s.querySelectorAll("html > *, body > *"))!=null?a:[])if(l!==document.body&&l!==document.head&&l instanceof HTMLElement&&l!=null&&l.contains(i)){r(l);break}}}}))}function ou(e=null){var t;return(t=me(ru))!=null?t:e}function _i(){let e=O(!1);return pe(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var yn=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(yn||{});function ag(){let e=O(0);return Kl(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function iu(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 lg="div";var Et=(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))(Et||{});function ug(e,t){let n=O(null),r=Ye(n,t),{initialFocus:o,initialFocusFallback:i,containers:s,features:a=15,...l}=e;Rn()||(a=0);let u=On(n);hg(a,{ownerDocument:u});let f=pg(a,{ownerDocument:u,container:n,initialFocus:o,initialFocusFallback:i});mg(a,{ownerDocument:u,container:n,containers:s,previousActiveElement:f});let c=ag(),p=Z(C=>{let E=n.current;E&&(N=>N())(()=>{wt(c.current,{[yn.Forwards]:()=>{Cn(E,Xe.First,{skipElements:[C.relatedTarget,i]})},[yn.Backwards]:()=>{Cn(E,Xe.Last,{skipElements:[C.relatedTarget,i]})}})})}),h=cn(!!(a&2),"focus-trap#tab-lock"),m=mi(),w=O(!1),g={ref:r,onKeyDown(C){C.key=="Tab"&&(w.current=!0,m.requestAnimationFrame(()=>{w.current=!1}))},onBlur(C){if(!(a&4))return;let E=iu(s);n.current instanceof HTMLElement&&E.add(n.current);let N=C.relatedTarget;N instanceof HTMLElement&&N.dataset.headlessuiFocusGuard!=="true"&&(su(E,N)||(w.current?Cn(n.current,wt(c.current,{[yn.Forwards]:()=>Xe.Next,[yn.Backwards]:()=>Xe.Previous})|Xe.WrapAround,{relativeTo:C.target}):C.target instanceof HTMLElement&&nt(C.target)))}},y=Me();return A.createElement(A.Fragment,null,h&&A.createElement(Co,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:_r.Focusable}),y({ourProps:g,theirProps:l,defaultTag:lg,name:"FocusTrap"}),h&&A.createElement(Co,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:_r.Focusable}))}let cg=ye(ug),fg=Object.assign(cg,{features:Et});function dg(e=!0){let t=O(ct.slice());return wi(([n],[r])=>{r===!0&&n===!1&&Lr(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=ct.slice())},[e,ct,t]),Z(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function hg(e,{ownerDocument:t}){let n=!!(e&8),r=dg(n);wi(()=>{n||(t==null?void 0:t.activeElement)===(t==null?void 0:t.body)&&nt(r())},[n]),Xl(()=>{n&&nt(r())})}function pg(e,{ownerDocument:t,container:n,initialFocus:r,initialFocusFallback:o}){let i=O(null),s=cn(!!(e&1),"focus-trap#initial-focus"),a=_i();return wi(()=>{if(e===0)return;if(!s){o!=null&&o.current&&nt(o.current);return}let l=n.current;l&&Lr(()=>{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){i.current=u;return}}else if(l.contains(u)){i.current=u;return}if(r!=null&&r.current)nt(r.current);else{if(e&16){if(Cn(l,Xe.First|Xe.AutoFocus)!==Eo.Error)return}else if(Cn(l,Xe.First)!==Eo.Error)return;if(o!=null&&o.current&&(nt(o.current),(t==null?void 0:t.activeElement)===o.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}i.current=t==null?void 0:t.activeElement})},[o,s,e]),i}function mg(e,{ownerDocument:t,container:n,containers:r,previousActiveElement:o}){let i=_i(),s=!!(e&4);Jl(t==null?void 0:t.defaultView,"focus",a=>{if(!s||!i.current)return;let l=iu(r);n.current instanceof HTMLElement&&l.add(n.current);let u=o.current;if(!u)return;let f=a.target;f&&f instanceof HTMLElement?su(l,f)?(o.current=f,nt(f)):(a.preventDefault(),a.stopPropagation(),nt(u)):nt(o.current)},!0)}function su(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function au(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||((t=e.as)!=null?t:uu)!==G||A.Children.count(e.children)===1}let jr=Se(null);jr.displayName="TransitionContext";var gg=(e=>(e.Visible="visible",e.Hidden="hidden",e))(gg||{});function wg(){let e=me(jr);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function _g(){let e=me(Ur);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Ur=Se(null);Ur.displayName="NestingContext";function Gr(e){return"children"in e?Gr(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function lu(e,t){let n=Dt(e),r=O([]),o=_i(),i=mi(),s=Z((h,m=ht.Hidden)=>{let w=r.current.findIndex(({el:g})=>g===h);w!==-1&&(wt(m,{[ht.Unmount](){r.current.splice(w,1)},[ht.Hidden](){r.current[w].state="hidden"}}),i.microTask(()=>{var g;!Gr(r)&&o.current&&((g=n.current)==null||g.call(n))}))}),a=Z(h=>{let m=r.current.find(({el:w})=>w===h);return m?m.state!=="visible"&&(m.state="visible"):r.current.push({el:h,state:"visible"}),()=>s(h,ht.Unmount)}),l=O([]),u=O(Promise.resolve()),f=O({enter:[],leave:[]}),c=Z((h,m,w)=>{l.current.splice(0),t&&(t.chains.current[m]=t.chains.current[m].filter(([g])=>g!==h)),t==null||t.chains.current[m].push([h,new Promise(g=>{l.current.push(g)})]),t==null||t.chains.current[m].push([h,new Promise(g=>{Promise.all(f.current[m].map(([y,C])=>C)).then(()=>g())})]),m==="enter"?u.current=u.current.then(()=>t==null?void 0:t.wait.current).then(()=>w(m)):w(m)}),p=Z((h,m,w)=>{Promise.all(f.current[m].splice(0).map(([g,y])=>y)).then(()=>{var g;(g=l.current.shift())==null||g()}).then(()=>w(m))});return ie(()=>({children:r,register:a,unregister:s,onStart:c,onStop:p,wait:u,chains:f}),[a,s,r,c,p,f,u])}let uu=G,cu=wr.RenderStrategy;function yg(e,t){var n,r;let{transition:o=!0,beforeEnter:i,afterEnter:s,beforeLeave:a,afterLeave:l,enter:u,enterFrom:f,enterTo:c,entered:p,leave:h,leaveFrom:m,leaveTo:w,...g}=e,[y,C]=X(null),E=O(null),N=au(e),j=Ye(...N?[E,t,C]:t===null?[]:[t]),J=(n=g.unmount)==null||n?ht.Unmount:ht.Hidden,{show:ae,appear:Be,initial:ut}=wg(),[W,Ee]=X(ae?"visible":"hidden"),fn=_g(),{register:Ot,unregister:Rt}=fn;pe(()=>Ot(E),[Ot,E]),pe(()=>{if(J===ht.Hidden&&E.current){if(ae&&W!=="visible"){Ee("visible");return}return wt(W,{hidden:()=>Rt(E),visible:()=>Ot(E)})}},[W,E,Ot,Rt,ae,J]);let dn=Rn();pe(()=>{if(N&&dn&&W==="visible"&&E.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[E,W,dn,N]);let Ln=ut&&!Be,Hn=Be&&ae&&ut,hn=O(!1),We=lu(()=>{hn.current||(Ee("hidden"),Rt(E))},fn),Vn=Z(Wr=>{hn.current=!0;let Un=Wr?"enter":"leave";We.onStart(E,Un,mn=>{mn==="enter"?i==null||i():mn==="leave"&&(a==null||a())})}),ne=Z(Wr=>{let Un=Wr?"enter":"leave";hn.current=!1,We.onStop(E,Un,mn=>{mn==="enter"?s==null||s():mn==="leave"&&(l==null||l())}),Un==="leave"&&!Gr(We)&&(Ee("hidden"),Rt(E))});Q(()=>{N&&o||(Vn(ae),ne(ae))},[ae,N,o]);let jn=!(!o||!N||!dn||Ln),[,ge]=jm(jn,y,ae,{start:Vn,end:ne}),bu=vt({ref:j,className:((r=xo(g.className,Hn&&u,Hn&&f,ge.enter&&u,ge.enter&&ge.closed&&f,ge.enter&&!ge.closed&&c,ge.leave&&h,ge.leave&&!ge.closed&&m,ge.leave&&ge.closed&&w,!ge.transition&&ae&&p))==null?void 0:r.trim())||void 0,...Vm(ge)}),pn=0;W==="visible"&&(pn|=Le.Open),W==="hidden"&&(pn|=Le.Closed),ge.enter&&(pn|=Le.Opening),ge.leave&&(pn|=Le.Closing);let vu=Me();return A.createElement(Ur.Provider,{value:We},A.createElement(Wm,{value:pn},vu({ourProps:bu,theirProps:g,defaultTag:uu,features:cu,visible:W==="visible",name:"Transition.Child"})))}function bg(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,s=O(null),a=au(e),l=Ye(...a?[s,t]:t===null?[]:[t]);Rn();let u=Vr();if(n===void 0&&u!==null&&(n=(u&Le.Open)===Le.Open),n===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[f,c]=X(n?"visible":"hidden"),p=lu(()=>{n||c("hidden")}),[h,m]=X(!0),w=O([n]);pe(()=>{h!==!1&&w.current[w.current.length-1]!==n&&(w.current.push(n),m(!1))},[w,n]);let g=ie(()=>({show:n,appear:r,initial:h}),[n,r,h]);pe(()=>{n?c("visible"):!Gr(p)&&s.current!==null&&c("hidden")},[n,p]);let y={unmount:o},C=Z(()=>{var j;h&&m(!1),(j=e.beforeEnter)==null||j.call(e)}),E=Z(()=>{var j;h&&m(!1),(j=e.beforeLeave)==null||j.call(e)}),N=Me();return A.createElement(Ur.Provider,{value:p},A.createElement(jr.Provider,{value:g},N({ourProps:{...y,as:G,children:A.createElement(fu,{ref:l,...y,...i,beforeEnter:C,beforeLeave:E})},theirProps:{},defaultTag:G,features:cu,visible:f==="visible",name:"Transition"})))}function vg(e,t){let n=me(jr)!==null,r=Vr()!==null;return A.createElement(A.Fragment,null,!n&&r?A.createElement(To,{ref:t,...e}):A.createElement(fu,{ref:t,...e}))}let To=ye(bg),fu=ye(yg),yi=ye(vg),xg=Object.assign(To,{Child:yi,Root:To});var Cg=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Cg||{}),Sg=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Sg||{});let Eg={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},bi=Se(null);bi.displayName="DialogContext";function Br(e){let t=me(bi);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Br),n}return t}function kg(e,t){return wt(t.type,Eg,e,t)}let zs=ye(function(e,t){let n=_t(),{id:r=`headlessui-dialog-${n}`,open:o,onClose:i,initialFocus:s,role:a="dialog",autoFocus:l=!0,__demoMode:u=!1,unmount:f=!1,...c}=e,p=O(!1);a=function(){return a==="dialog"||a==="alertdialog"?a:(p.current||(p.current=!0,console.warn(`Invalid role [${a}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let h=Vr();o===void 0&&h!==null&&(o=(h&Le.Open)===Le.Open);let m=O(null),w=Ye(m,t),g=On(m),y=o?0:1,[C,E]=An(kg,{titleId:null,descriptionId:null,panelRef:$o()}),N=Z(()=>i(!1)),j=Z(ne=>E({type:0,id:ne})),J=Rn()?y===0:!1,[ae,Be]=tg(),ut={get current(){var ne;return(ne=C.panelRef.current)!=null?ne:m.current}},W=ou(),{resolveContainers:Ee}=sg({mainTreeNode:W,portals:ae,defaultContainers:[ut]}),fn=h!==null?(h&Le.Closing)===Le.Closing:!1;wm(u||fn?!1:J,{allowed:Z(()=>{var ne,jn;return[(jn=(ne=m.current)==null?void 0:ne.closest("[data-headlessui-portal]"))!=null?jn:null]}),disallowed:Z(()=>{var ne;return[(ne=W==null?void 0:W.closest("body > *:not(#headlessui-portal-root)"))!=null?ne:null]})}),Nm(J,Ee,ne=>{ne.preventDefault(),N()}),og(J,g==null?void 0:g.defaultView,ne=>{ne.preventDefault(),ne.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),N()}),Om(u||fn?!1:J,g,Ee),_m(J,m,N);let[Ot,Rt]=lm(),dn=ie(()=>[{dialogState:y,close:N,setTitleId:j,unmount:f},C],[y,C,N,j,f]),Ln=ie(()=>({open:y===0}),[y]),Hn={ref:w,id:r,role:a,tabIndex:-1,"aria-modal":u?void 0:y===0?!0:void 0,"aria-labelledby":C.titleId,"aria-describedby":Ot,unmount:f},hn=!ig(),We=Et.None;J&&!u&&(We|=Et.RestoreFocus,We|=Et.TabLock,l&&(We|=Et.AutoFocus),hn&&(We|=Et.InitialFocus));let Vn=Me();return A.createElement(zm,null,A.createElement(Bs,{force:!0},A.createElement(rg,null,A.createElement(bi.Provider,{value:dn},A.createElement(nu,{target:m},A.createElement(Bs,{force:!1},A.createElement(Rt,{slot:Ln},A.createElement(Be,null,A.createElement(fg,{initialFocus:s,initialFocusFallback:m,containers:Ee,features:We},A.createElement(pm,{value:N},Vn({ourProps:Hn,theirProps:c,slot:Ln,defaultTag:Tg,features:Ag,visible:y===0,name:"Dialog"})))))))))))}),Tg="div",Ag=wr.RenderStrategy|wr.Static;function $g(e,t){let{transition:n=!1,open:r,...o}=e,i=Vr(),s=e.hasOwnProperty("open")||i!==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(!i&&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)&&!o.static?A.createElement(Ws,null,A.createElement(xg,{show:r,transition:n,unmount:o.unmount},A.createElement(zs,{ref:t,...o}))):A.createElement(Ws,null,A.createElement(zs,{ref:t,open:r,...o}))}let Ng="div";function Ig(e,t){let n=_t(),{id:r=`headlessui-dialog-panel-${n}`,transition:o=!1,...i}=e,[{dialogState:s,unmount:a},l]=Br("Dialog.Panel"),u=Ye(t,l.panelRef),f=ie(()=>({open:s===0}),[s]),c=Z(g=>{g.stopPropagation()}),p={ref:u,id:r,onClick:c},h=o?yi:G,m=o?{unmount:a}:{},w=Me();return A.createElement(h,{...m},w({ourProps:p,theirProps:i,slot:f,defaultTag:Ng,name:"Dialog.Panel"}))}let Mg="div";function Fg(e,t){let{transition:n=!1,...r}=e,[{dialogState:o,unmount:i}]=Br("Dialog.Backdrop"),s=ie(()=>({open:o===0}),[o]),a={ref:t,"aria-hidden":!0},l=n?yi:G,u=n?{unmount:i}:{},f=Me();return A.createElement(l,{...u},f({ourProps:a,theirProps:r,slot:s,defaultTag:Mg,name:"Dialog.Backdrop"}))}let Pg="h2";function Dg(e,t){let n=_t(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:i,setTitleId:s}]=Br("Dialog.Title"),a=Ye(t);Q(()=>(s(r),()=>s(null)),[r,s]);let l=ie(()=>({open:i===0}),[i]),u={ref:a,id:r};return Me()({ourProps:u,theirProps:o,slot:l,defaultTag:Pg,name:"Dialog.Title"})}let Og=ye($g),Rg=ye(Ig),Lg=ye(Fg),Hg=ye(Dg),du=Object.assign(Og,{Panel:Rg,Title:Hg,Description:dm});class Yt extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Open","OnClose","Children"]}}function hu(e){return d(du,ai(e,1))}class pu extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","ClassName","Children"]}}function mu(e){return d(du.Panel,ai(e,1))}class gu extends M{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName"]}}function wu(e){return d(Lg,ai(e,1))}function _u(e,t){let n;return d("svg",v(b([["width",e],["height",t],["viewBox","0 0 "+e+" "+t],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(n=L(d("path",{d:"M6 18L18 6M6 6L18 18",stroke:"#9CA3AF",strokeLinejoin:"round",strokeWidth:2,strokeLinecap:"round"})),["children",x.Children.toArray(Array.from(n))])])))}function yu(e,t){let n,r,o;return d("svg",v(b([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=b([d("path",v(b([(r="M11.6666 13.6667H2.33328C1.23062 13.6667 0.333282 12.7693 0.333282 11.6667V9H1.66662V11.6667C1.66662 12.034 1.96595 12.3333 2.33328 12.3333H11.6666C12.0339 12.3333 12.3333 12.034 12.3333 11.6667V9H13.6666V11.6667C13.6666 12.7693 12.7693 13.6667 11.6666 13.6667Z",["d",r]),["fill","#2E66F7"]]))),d("path",v(b([(o="M10.3333 4.72395L7.66667 7.39062V0.333282H6.33333V7.39062L3.66667 4.72395L2.724 5.66662L7 9.94262L11.276 5.66662L10.3333 4.72395Z",["d",o]),["fill","#2E66F7"]])))]),["children",x.Children.toArray(Array.from(n))])])))}class Vg extends B{constructor(t){super(),this.AccountImports=t}}function jg(e){return[new Vg(e),Ue()]}function Ug(e,t){return[t,Ue()]}function Gg(e,t){let n,r;return d("svg",v(b([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=b([d("path",v(b([(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"]]))),d("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 Bg(e,t){let n,r;return d("svg",v(b([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=L(d("path",v(b([(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 Zn(e,t){return d("div",v(sn(oe(()=>st(ue(t?["className","text-xs border-b-2 border-primary-600 pt-1 pb-3 text-primary-600"]:["className","text-xs pt-1 pb-3 text-gray-500"]),oe(()=>{let n;return ue((n=[d("span",{children:e})],["children",x.Children.toArray(Array.from(n))]))}))))))}function Wg(e,t){let n,r,o,i,s,a,l,u,f,c,p,h,m,w,g,y,C,E,N,j,J,ae;return hu(b([new Yt(3,[e]),new Yt(4,[t]),new Yt(5,[[wu(L(new gu(2,["fixed inset-0 bg-gray-500/50"]))),d("div",v(b([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(n=[mu(L(new pu(2,[[d("div",v(b([["className","flex flex-col mt-6 mb-6 px-6"],(r=[d("div",v(b([["className","flex flex-row justify-between"],(o=[d("span",{className:"text-gray-900 font-semibold text-lg",children:"What kind of data do I need?"}),d("button",v(b([["onClick",Be=>{t()}],["type","button"],(i=[_u(24,24)],["children",x.Children.toArray(Array.from(i))])])))],["children",x.Children.toArray(Array.from(o))])]))),d("div",v(b([["className","text-gray-600 text-sm pt-6"],(s=[d("span",{children:"Fields marked with "}),d("span",{className:"text-red-600",children:"*"}),d("span",v(L((a=" are required to create a user. While “Mobile number” and “Employment basis” are optional, they are recommended for improved searching and filtering.",["children",a]))))],["children",x.Children.toArray(Array.from(s))])]))),d("div",v(b([["className","grid grid-cols-2 mt-3"],(l=[d("span",{className:"text-gray-900 font-medium text-sm px-3 py-3.5 bg-gray-100 border",children:"Column fields"}),d("span",{className:"text-gray-900 font-medium text-sm px-3 py-3.5 bg-gray-100 border",children:"Accepted values"}),d("div",v(b([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(u=[d("span",{children:"First name "}),d("span",{className:"text-red-600",children:"*"})],["children",x.Children.toArray(Array.from(u))])]))),d("div",v(L((f=[d("div",v(b([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(c=[d("span",{children:"For example:"}),d("br",{}),d("span",{className:"italic",children:"Sam, Josh, Alex"})],["children",x.Children.toArray(Array.from(c))])])))],["children",x.Children.toArray(Array.from(f))])))),d("div",v(b([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(p=[d("span",{children:"Last name "}),d("span",{className:"text-red-600",children:"*"})],["children",x.Children.toArray(Array.from(p))])]))),d("div",v(L((h=[d("div",v(b([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(m=[d("span",{children:"For example:"}),d("br",{}),d("span",{className:"italic",children:"Smith, Doe, Williams"})],["children",x.Children.toArray(Array.from(m))])])))],["children",x.Children.toArray(Array.from(h))])))),d("div",v(b([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(w=[d("span",{children:"Email "}),d("span",{className:"text-red-600",children:"*"})],["children",x.Children.toArray(Array.from(w))])]))),d("div",v(L((g=[d("div",v(b([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(y=[d("span",{children:"For example:"}),d("br",{}),d("span",{className:"italic",children:"john.smith@mycompany.com"})],["children",x.Children.toArray(Array.from(y))])])))],["children",x.Children.toArray(Array.from(g))])))),d("span",{className:"text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border",children:"Mobile number"}),d("div",v(L((C=[d("div",v(b([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(E=[d("span",{children:"For example:"}),d("br",{}),d("span",{className:"italic",children:"+61432368712"})],["children",x.Children.toArray(Array.from(E))])])))],["children",x.Children.toArray(Array.from(C))])))),d("span",{className:"text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border",children:"Employment basis"}),d("div",v(L((N=[d("div",v(b([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(j=[d("span",{children:"One of the following options:"}),d("br",{}),d("ul",v(b([["className","italic list-disc px-3"],(J=[d("li",{children:"Full-time"}),d("li",{children:"Part-time"}),d("li",{children:"Labour hire"}),d("li",{children:"Casual"})],["children",x.Children.toArray(Array.from(J))])])))],["children",x.Children.toArray(Array.from(j))])])))],["children",x.Children.toArray(Array.from(N))])))),d("div",v(b([["className","flex flex-row items-end gap-1 pt-3"],(ae=[d("span",{className:"text-xs text-primary-600 font-medium",children:"Download template"}),yu(13,13)],["children",x.Children.toArray(Array.from(ae))])])))],["children",x.Children.toArray(Array.from(l))])])))],["children",x.Children.toArray(Array.from(r))])])))]])))],["children",x.Children.toArray(Array.from(n))])])))]])]))}function zg(e,t){let n,r,o,i,s,a,l;return hu(b([new Yt(3,[e]),new Yt(4,[t]),new Yt(5,[[wu(L(new gu(2,["fixed inset-0 bg-gray-500/50"]))),d("div",v(b([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(n=[mu(L(new pu(2,[[d("div",v(b([["className","flex flex-col mt-6 mb-6 px-6"],(r=[d("div",v(b([["className","flex flex-row justify-between"],(o=[d("span",{className:"text-gray-900 font-semibold text-lg",children:"Frequently asked questions"}),d("button",v(b([["onClick",u=>{t()}],["type","button"],(i=[_u(24,24)],["children",x.Children.toArray(Array.from(i))])])))],["children",x.Children.toArray(Array.from(o))])]))),d("div",{className:"font-semibold text-sm pt-6",children:"What file format is accepted for bulk import?"}),d("div",{className:"text-sm text-gray-500 pt-2",children:"The only accepted file format for bulk import is CSV."}),d("div",{className:"font-semibold text-sm pt-6",children:"What is the maximum upload file size?"}),d("div",{className:"text-sm text-gray-500 pt-2",children:"The maximum upload file size is 10 MB."}),d("div",{className:"font-semibold text-sm pt-6",children:"What is the maximum number of rows supported for bulk import?"}),d("div",{className:"text-sm text-gray-500 pt-2",children:"The maximum number of rows you can upload is 5,000."}),d("div",{className:"font-semibold text-sm pt-6",children:"What information do I need to include in the CSV file?"}),d("div",v(b([["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])]))),d("div",{className:"font-semibold text-sm pt-6",children:"How do I format the CSV file?"}),d("div",v(b([["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.
36
+ 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])]))),d("div",{className:"font-semibold text-sm pt-6",children:"What should I do if my CSV file contains errors?"}),d("div",v(b([["className","text-sm text-gray-500 pt-2"],(l=`We recommend checking for common issues, such as missing data or incorrect formatting before upload.
37
+ 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 qg(e){let t,n,r,o,i,s,a,l,u,f,c,p;const h=e.accountImports,m=jg(h);Pr(()=>Fr(()=>m,Ug,(E,N)=>{}),void 0,void 0);const w=x.useState(!1),g=w[1],y=x.useState(!1),C=y[1];return d("div",v(L((t=[Wg(w[0],()=>{g(!1)}),zg(y[0],()=>{C(!1)}),d("div",v(b([["className","flex flex-col"],(n=[d("div",v(b([["className","flex flex-row justify-between px-12 pt-8 pb-4"],(r=[d("span",{className:"font-sonoma text-gray-900 font-bold text-lg",children:"Import Users from CSV"}),d("button",{className:"rounded-md text-red-700 text-xs w-[120px] border font-medium px-3 py-2",onClick:E=>{},type:"button",children:x.Children.toArray(["Cancel import"])})],["children",x.Children.toArray(Array.from(r))])]))),d("div",v(b([["className","flex flex-row items-center px-12 gap-2"],(o=[Zn("1. Upload CSV",!0),d("hr",{className:"w-16 pt-1.5"}),Zn("2. Map fields",!1),d("hr",{className:"w-16 pt-1.5"}),Zn("3. Map values",!1),d("hr",{className:"w-16 pt-1.5"}),Zn("4. Review",!1)],["children",x.Children.toArray(Array.from(o))])]))),d("div",v(b([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12"],(i=[d("span",{className:"font-sonoma text-gray-900 font-semibold text-lg",children:"Upload CSV"}),d("span",{className:"text-xs pt-2",children:"Download and use our template, or upload your own CSV to get started."}),d("div",v(b([["className","flex flex-row items-end gap-1"],(s=[d("span",{className:"text-xs text-primary-600 pt-2",children:"Download sample CSV template"}),yu(13,13)],["children",x.Children.toArray(Array.from(s))])]))),d("div",v(b([["className","flex flex-row pt-3 gap-2"],(a=[d("button",{className:"rounded-2xl text-xs text-gray-600 border px-3.5 py-1.5",onClick:E=>{g(!0)},type:"button",children:x.Children.toArray(["What kind of data do I need?"])}),d("button",{className:"rounded-2xl text-xs text-gray-600 border px-3.5 py-1.5",onClick:E=>{C(!0)},type:"button",children:x.Children.toArray(["Frequently asked questions"])})],["children",x.Children.toArray(Array.from(a))])]))),d("div",v(b([["className","max-w-[640px] h-75 border-dashed border-2 rounded-md my-6"],(l=[d("div",v(b([["className","flex flex-col items-center px-2 py-6"],(u=[Gg(20,21),d("span",{className:"text-xs mt-3",children:"Drag and drop CSV file here"}),d("button",{className:"rounded text-xs w-[120px] border px-3 py-2 mt-4 font-medium text-gray-700",onClick:E=>{},type:"button",children:x.Children.toArray(["Choose file"])}),d("span",{className:"text-xs mt-2 font-normal",children:"Maximum size: 10 MB"})],["children",x.Children.toArray(Array.from(u))])])))],["children",x.Children.toArray(Array.from(l))])]))),d("div",v(b([["className","w-[600px] flex flex-row justify-end gap-3"],(f=[d("button",{className:"rounded-md text-red-700 text-xs w-[120px] border font-medium px-3 py-2",onClick:E=>{},type:"button",children:x.Children.toArray(["Cancel import"])}),d("button",v(b([(c="inline-flex justify-center items-center gap-x-1 rounded-md text-white bg-primary-600 text-xs w-[120px] border font-medium px-3 py-2",["className",c]),["onClick",E=>{}],["type","button"],(p=["Map fields",Bg(13,8)],["children",x.Children.toArray(Array.from(p))])])))],["children",x.Children.toArray(Array.from(f))])])))],["children",x.Children.toArray(Array.from(i))])])))],["children",x.Children.toArray(Array.from(n))])])))],["children",x.Children.toArray(Array.from(t))]))))}function Zg(e){const t=Cl(e.backendUrl);let n;const r=Pr(()=>Fr(Z0,(i,s)=>Y0(()=>Sl(t),i),(i,s)=>{}),void 0,[])[0].View;n=r.tag===2?d("div",{children:[`Error: ${r.fields[0]}`]}):r.tag===1?d(qg,{accountImports:Pa(r.fields[0])}):d("div",{children:["Please wait..."]});const o=[d("style",{children:[Yo]}),n];return d(G,{},...o)}function Yg(){Do(e=>d(Zg,e),"apollo-import-workspace-wizard")}Do(e=>d(Cf,e),"apollo-import-workspace-app");q0();Yg();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flarehr/apollo-import-workspace-app",
3
- "version": "0.1.384",
3
+ "version": "0.1.387",
4
4
  "description": "Apollo Import Workspace App",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",