@flarehr/apollo-import-workspace-app 0.22.0 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,17 +1,25 @@
|
|
|
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
|
|
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?`
|
|
1
|
+
var io,xe,Ed,ar,gu,Ad,Ra,dl,Fa,Pa,kd,Yi={},Nd=[],L0=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,_s=Array.isArray;function En(e,t){for(var n in t)e[n]=t[n];return e}function Td(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function c(e,t,n){var r,i,o,s={};for(o in t)o=="key"?r=t[o]:o=="ref"?i=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?io.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)s[o]===void 0&&(s[o]=e.defaultProps[o]);return Ui(e,s,r,i,null)}function Ui(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i??++Ed,__i:-1,__u:0};return i==null&&xe.vnode!=null&&xe.vnode(o),o}function xs(){return{current:null}}function Ue(e){return e.children}function un(e,t){this.props=e,this.context=t}function ri(e,t){if(t==null)return e.__?ri(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"?ri(e):null}function $d(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 $d(e)}}function La(e){(!e.__d&&(e.__d=!0)&&ar.push(e)&&!Ko.__r++||gu!==xe.debounceRendering)&&((gu=xe.debounceRendering)||Ad)(Ko)}function Ko(){var e,t,n,r,i,o,s,a;for(ar.sort(Ra);e=ar.shift();)e.__d&&(t=ar.length,r=void 0,o=(i=(n=e).__v).__e,s=[],a=[],n.__P&&((r=En({},i)).__v=i.__v+1,xe.vnode&&xe.vnode(r),fl(n.__P,r,i,n.__n,n.__P.namespaceURI,32&i.__u?[o]:null,s,o??ri(i),!!(32&i.__u),a),r.__v=i.__v,r.__.__k[r.__i]=r,Dd(s,r,a),r.__e!=o&&$d(r)),ar.length>t&&ar.sort(Ra));Ko.__r=0}function Md(e,t,n,r,i,o,s,a,l,u,f){var d,p,h,m,w,b=r&&r.__k||Nd,x=t.length;for(n.__d=l,V0(n,t,b),l=n.__d,d=0;d<x;d++)(h=n.__k[d])!=null&&(p=h.__i===-1?Yi:b[h.__i]||Yi,h.__i=d,fl(e,h,p,i,o,s,a,l,u,f),m=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&ml(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=Id(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 V0(e,t,n){var r,i,o,s,a,l=t.length,u=n.length,f=u,d=0;for(e.__k=[],r=0;r<l;r++)(i=t[r])!=null&&typeof i!="boolean"&&typeof i!="function"?(s=r+d,(i=e.__k[r]=typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?Ui(null,i,null,null,null):_s(i)?Ui(Ue,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?Ui(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=e,i.__b=e.__b+1,o=null,(a=i.__i=H0(i,n,s,f))!==-1&&(f--,(o=n[a])&&(o.__u|=131072)),o==null||o.__v===null?(a==-1&&d--,typeof i.type!="function"&&(i.__u|=65536)):a!==s&&(a==s-1?d--:a==s+1?d++:(a>s?d--:d++,i.__u|=65536))):i=e.__k[r]=null;if(f)for(r=0;r<u;r++)(o=n[r])!=null&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=ri(o)),Od(o,o))}function Id(e,t,n){var r,i;if(typeof e.type=="function"){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=Id(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=ri(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function Tn(e,t){return t=t||[],e==null||typeof e=="boolean"||(_s(e)?e.some(function(n){Tn(n,t)}):t.push(e)),t}function H0(e,t,n,r){var i=e.key,o=e.type,s=n-1,a=n+1,l=t[n];if(l===null||l&&i==l.key&&o===l.type&&!(131072&l.__u))return n;if((typeof o!="function"||o===Ue||i)&&r>(l!=null&&!(131072&l.__u)?1:0))for(;s>=0||a<t.length;){if(s>=0){if((l=t[s])&&!(131072&l.__u)&&i==l.key&&o===l.type)return s;s--}if(a<t.length){if((l=t[a])&&!(131072&l.__u)&&i==l.key&&o===l.type)return a;a++}}return-1}function yu(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||L0.test(t)?n:n+"px"}function ko(e,t,n,r,i){var o;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||yu(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||yu(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n.u=r.u:(n.u=dl,e.addEventListener(t,o?Pa:Fa,o)):e.removeEventListener(t,o?Pa:Fa,o);else{if(i=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function wu(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=dl++;else if(t.t<n.u)return;return xe.event&&(t=xe.event(t)),"handleEvent"in n?n.handleEvent(t):n(t)}}}function fl(e,t,n,r,i,o,s,a,l,u){var f,d,p,h,m,w,b,x,C,E,$,I,P,L,S,_,k=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),o=[a=t.__e=n.__e]),(f=xe.__b)&&f(t);e:if(typeof k=="function")try{if(x=t.props,C="prototype"in k&&k.prototype.render,E=(f=k.contextType)&&r[f.__c],$=f?E?E.props.value:f.__:r,n.__c?b=(d=t.__c=n.__c).__=d.__E:(C?t.__c=d=new k(x,$):(t.__c=d=new un(x,$),d.constructor=k,d.render=B0),E&&E.sub(d),d.props=x,d.state||(d.state={}),d.context=$,d.__n=r,p=d.__d=!0,d.__h=[],d._sb=[]),C&&d.__s==null&&(d.__s=d.state),C&&k.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=En({},d.__s)),En(d.__s,k.getDerivedStateFromProps(x,d.__s))),h=d.props,m=d.state,d.__v=t,p)C&&k.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),C&&d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(C&&k.getDerivedStateFromProps==null&&x!==h&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(x,$),!d.__e&&(d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(x,d.__s,$)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=x,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(T){T&&(T.__=t)}),I=0;I<d._sb.length;I++)d.__h.push(d._sb[I]);d._sb=[],d.__h.length&&s.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(x,d.__s,$),C&&d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(h,m,w)})}if(d.context=$,d.props=x,d.__P=e,d.__e=!1,P=xe.__r,L=0,C){for(d.state=d.__s,d.__d=!1,P&&P(t),f=d.render(d.props,d.state,d.context),S=0;S<d._sb.length;S++)d.__h.push(d._sb[S]);d._sb=[]}else do d.__d=!1,P&&P(t),f=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++L<25);d.state=d.__s,d.getChildContext!=null&&(r=En(En({},r),d.getChildContext())),C&&!p&&d.getSnapshotBeforeUpdate!=null&&(w=d.getSnapshotBeforeUpdate(h,m)),Md(e,_s(_=f!=null&&f.type===Ue&&f.key==null?f.props.children:f)?_:[_],t,n,r,i,o,s,a,l,u),d.base=t.__e,t.__u&=-161,d.__h.length&&s.push(d),b&&(d.__E=d.__=null)}catch(T){if(t.__v=null,l||o!=null){for(t.__u|=l?160:128;a&&a.nodeType===8&&a.nextSibling;)a=a.nextSibling;o[o.indexOf(a)]=null,t.__e=a}else t.__e=n.__e,t.__k=n.__k;xe.__e(T,t,n)}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=j0(n.__e,t,n,r,i,o,s,l,u);(f=xe.diffed)&&f(t)}function Dd(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)ml(n[r],n[++r],n[++r]);xe.__c&&xe.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){xe.__e(o,i.__v)}})}function j0(e,t,n,r,i,o,s,a,l){var u,f,d,p,h,m,w,b=n.props,x=t.props,C=t.type;if(C==="svg"?i="http://www.w3.org/2000/svg":C==="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(u=0;u<o.length;u++)if((h=o[u])&&"setAttribute"in h==!!C&&(C?h.localName===C:h.nodeType===3)){e=h,o[u]=null;break}}if(e==null){if(C===null)return document.createTextNode(x);e=document.createElementNS(i,C,x.is&&x),a&&(xe.__m&&xe.__m(t,o),a=!1),o=null}if(C===null)b===x||a&&e.data===x||(e.data=x);else{if(o=o&&io.call(e.childNodes),b=n.props||Yi,!a&&o!=null)for(b={},u=0;u<e.attributes.length;u++)b[(h=e.attributes[u]).name]=h.value;for(u in b)if(h=b[u],u!="children"){if(u=="dangerouslySetInnerHTML")d=h;else if(!(u in x)){if(u=="value"&&"defaultValue"in x||u=="checked"&&"defaultChecked"in x)continue;ko(e,u,null,h,i)}}for(u in x)h=x[u],u=="children"?p=h:u=="dangerouslySetInnerHTML"?f=h:u=="value"?m=h:u=="checked"?w=h:a&&typeof h!="function"||b[u]===h||ko(e,u,h,b[u],i);if(f)a||d&&(f.__html===d.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(d&&(e.innerHTML=""),Md(e,_s(p)?p:[p],t,n,r,C==="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,s,o?o[0]:n.__k&&ri(n,0),a,l),o!=null)for(u=o.length;u--;)Td(o[u]);a||(u="value",C==="progress"&&m==null?e.removeAttribute("value"):m!==void 0&&(m!==e[u]||C==="progress"&&!m||C==="option"&&m!==b[u])&&ko(e,u,m,b[u],i),u="checked",w!==void 0&&w!==e[u]&&ko(e,u,w,b[u],i))}return e}function ml(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(i){xe.__e(i,n)}}function Od(e,t,n){var r,i;if(xe.unmount&&xe.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||ml(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){xe.__e(o,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&Od(r[i],t,n||typeof e.type!="function");n||Td(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function B0(e,t,n){return this.constructor(e,n)}function Gn(e,t,n){var r,i,o,s;xe.__&&xe.__(e,t),i=(r=typeof n=="function")?null:n&&n.__k||t.__k,o=[],s=[],fl(t,e=(!r&&n||t).__k=c(Ue,null,[e]),i||Yi,Yi,t.namespaceURI,!r&&n?[n]:i?null:t.firstChild?io.call(t.childNodes):null,o,!r&&n?n:i?i.__e:t.firstChild,r,s),Dd(o,e,s)}function hl(e,t){Gn(e,t,hl)}function pl(e,t,n){var r,i,o,s,a=En({},e.props);for(o in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)o=="key"?r=t[o]:o=="ref"?i=t[o]:a[o]=t[o]===void 0&&s!==void 0?s[o]:t[o];return arguments.length>2&&(a.children=arguments.length>3?io.call(arguments,2):n),Ui(e.type,a,r||e.key,i||e.ref,null)}function Je(e,t){var n={__c:t="__cC"+kd++,__:e,Consumer:function(r,i){return r.children(i)},Provider:function(r){var i,o;return this.getChildContext||(i=new Set,(o={})[t]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){i=null},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&i.forEach(function(a){a.__e=!0,La(a)})},this.sub=function(s){i.add(s);var a=s.componentWillUnmount;s.componentWillUnmount=function(){i&&i.delete(s),a&&a.call(s)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}io=Nd.slice,xe={__e:function(e,t,n,r){for(var i,o,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),s=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),s=i.__d),s)return i.__E=i}catch(a){e=a}throw e}},Ed=0,un.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=En({},this.state),typeof e=="function"&&(e=e(En({},n),this.props)),e&&En(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),La(this))},un.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),La(this))},un.prototype.render=Ue,ar=[],Ad=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ra=function(e,t){return e.__v.__b-t.__v.__b},Ko.__r=0,dl=0,Fa=wu(!1),Pa=wu(!0),kd=0;function gl(){return(gl=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 U0=["context","children"];function W0(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,i){if(r==null)return{};var o,s,a={},l=Object.keys(r);for(s=0;s<l.length;s++)i.indexOf(o=l[s])>=0||(a[o]=r[o]);return a}(e,U0);return pl(t,n)}function G0(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=c(W0,gl({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var i=[],o={},s=0,a=n.attributes,l=n.childNodes;for(s=a.length;s--;)a[s].name!=="slot"&&(o[a[s].name]=a[s].value,o[Rd(a[s].name)]=a[s].value);for(s=l.length;s--;){var u=t(l[s],null),f=l[s].slot;f?o[f]=c(vu,{name:f},u):i[s]=u}var d=r?c(vu,null,i):i;return c(r||n.nodeName.toLowerCase(),o,d)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?hl:Gn)(this._vdom,this._root)}function Rd(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function z0(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[Rd(e)]=n,this._vdom=pl(this._vdom,r),Gn(this._vdom,this._root)}}function q0(){Gn(this._vdom=null,this._root)}function vu(e,t){var n=this;return c("slot",gl({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(i){i.stopPropagation(),i.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function Y0(e,t,n,r){function i(){var o=Reflect.construct(HTMLElement,[],i);return o._vdomComponent=e,o._root=o,o}return(i.prototype=Object.create(HTMLElement.prototype)).constructor=i,i.prototype.connectedCallback=G0,i.prototype.attributeChangedCallback=z0,i.prototype.disconnectedCallback=q0,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),i.observedAttributes=n,n.forEach(function(o){Object.defineProperty(i.prototype,o,{get:function(){return this._vdom.props[o]},set:function(s){this._vdom?this.attributeChangedCallback(o,null,s):(this._props||(this._props={}),this._props[o]=s,this.connectedCallback());var a=typeof s;s!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(o,s)}})}),customElements.define(t||e.tagName||e.displayName||e.name,i)}function yl(e,t){Y0(e,t)}var In,je,ua,bu,ii=0,Fd=[],Ze=xe,_u=Ze.__b,xu=Ze.__r,Cu=Ze.diffed,Su=Ze.__c,Eu=Ze.unmount,Au=Ze.__;function Nr(e,t){Ze.__h&&Ze.__h(je,e,ii||t),ii=0;var n=je.__H||(je.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ye(e){return ii=1,Tr(Pd,e)}function Tr(e,t,n){var r=Nr(In++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Pd(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=je,!je.u)){var i=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!o||o.call(this,a,l,u);var d=r.__c.props!==a;return f.forEach(function(p){if(p.__N){var h=p.__[0];p.__=p.__N,p.__N=void 0,h!==p.__[0]&&(d=!0)}}),o&&o.call(this,a,l,u)||d};je.u=!0;var o=je.shouldComponentUpdate,s=je.componentWillUpdate;je.componentWillUpdate=function(a,l,u){if(this.__e){var f=o;o=void 0,i(a,l,u),o=f}s&&s.call(this,a,l,u)},je.shouldComponentUpdate=i}return r.__N||r.__}function De(e,t){var n=Nr(In++,3);!Ze.__s&&bl(n.__H,t)&&(n.__=e,n.i=t,je.__H.__h.push(n))}function Rn(e,t){var n=Nr(In++,4);!Ze.__s&&bl(n.__H,t)&&(n.__=e,n.i=t,je.__h.push(n))}function se(e){return ii=5,de(function(){return{current:e}},[])}function wl(e,t,n){ii=6,Rn(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 de(e,t){var n=Nr(In++,7);return bl(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Te(e,t){return ii=8,de(function(){return e},t)}function Oe(e){var t=je.context[e.__c],n=Nr(In++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(je)),t.props.value):e.__}function vl(e,t){Ze.useDebugValue&&Ze.useDebugValue(t?t(e):e)}function Z0(e){var t=Nr(In++,10),n=ye();return t.__=e,je.componentDidCatch||(je.componentDidCatch=function(r,i){t.__&&t.__(r,i),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Jt(){var e=Nr(In++,11);if(!e.__){for(var t=je.__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 K0(){for(var e;e=Fd.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Bo),e.__H.__h.forEach(Va),e.__H.__h=[]}catch(t){e.__H.__h=[],Ze.__e(t,e.__v)}}Ze.__b=function(e){je=null,_u&&_u(e)},Ze.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Au&&Au(e,t)},Ze.__r=function(e){xu&&xu(e),In=0;var t=(je=e.__c).__H;t&&(ua===je?(t.__h=[],je.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(Bo),t.__h.forEach(Va),t.__h=[],In=0)),ua=je},Ze.diffed=function(e){Cu&&Cu(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Fd.push(t)!==1&&bu===Ze.requestAnimationFrame||((bu=Ze.requestAnimationFrame)||X0)(K0)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),ua=je=null},Ze.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Bo),n.__h=n.__h.filter(function(r){return!r.__||Va(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Ze.__e(r,n.__v)}}),Su&&Su(e,t)},Ze.unmount=function(e){Eu&&Eu(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Bo(r)}catch(i){t=i}}),n.__H=void 0,t&&Ze.__e(t,n.__v))};var ku=typeof requestAnimationFrame=="function";function X0(e){var t,n=function(){clearTimeout(r),ku&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);ku&&(t=requestAnimationFrame(n))}function Bo(e){var t=je,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),je=t}function Va(e){var t=je;e.__c=e.__(),je=t}function bl(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Pd(e,t){return typeof t=="function"?t(e):t}function Ha(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 Cs(e,t){var n=t(),r=ye({t:{__:n,u:t}}),i=r[0].t,o=r[1];return Rn(function(){i.__=n,i.u=t,ca(i)&&o({t:i})},[e,n,t]),De(function(){return ca(i)&&o({t:i}),e(function(){ca(i)&&o({t:i})})},[e]),n}function ca(e){var t,n,r=e.u,i=e.__;try{var o=r();return!((t=i)===(n=o)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}function _l(e){e()}function xl(e){return e}function Cl(){return[!1,_l]}var Sl=Rn;function Xo(e,t){this.props=e,this.context=t}function Ld(e,t){function n(i){var o=this.props.ref,s=o==i.ref;return!s&&o&&(o.call?o(null):o.current=null),t?!t(this.props,i)||!s:Ha(this.props,i)}function r(i){return this.shouldComponentUpdate=n,c(e,i)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Xo.prototype=new un).isPureReactComponent=!0,Xo.prototype.shouldComponentUpdate=function(e,t){return Ha(this.props,e)||Ha(this.state,t)};var Nu=xe.__b;xe.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Nu&&Nu(e)};var J0=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function El(e){function t(n){if(!("ref"in n))return e(n,null);var r=n.ref;delete n.ref;var i=e(n,r);return n.ref=r,i}return t.$$typeof=J0,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Tu=function(e,t){return e==null?null:Tn(Tn(e).map(t))},Vd={map:Tu,forEach:Tu,count:function(e){return e?Tn(e).length:0},only:function(e){var t=Tn(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Tn},Q0=xe.__e;xe.__e=function(e,t,n,r){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}Q0(e,t,n,r)};var $u=xe.unmount;function Hd(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=function(r,i){for(var o in i)r[o]=i[o];return r}({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Hd(r,t,n)})),e}function jd(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return jd(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 Wi(){this.__u=0,this.o=null,this.__b=null}function Bd(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ud(e){var t,n,r;function i(o){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return c(n,o)}return i.displayName="Lazy",i.__f=!0,i}function Gr(){this.i=null,this.l=null}xe.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),$u&&$u(e)},(Wi.prototype=new un).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var i=Bd(r.__v),o=!1,s=function(){o||(o=!0,n.__R=null,i?i(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=jd(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)},Wi.prototype.componentWillUnmount=function(){this.o=[]},Wi.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]=Hd(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&c(Ue,null,e.fallback);return i&&(i.__u&=-33),[c(Ue,null,t.__a?null:e.children),i]};var Mu=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 ep(e){return this.getChildContext=function(){return e.context},e.children}function tp(e){var t=this,n=e.h;t.componentWillUnmount=function(){Gn(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),t.v||(t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(r){this.childNodes.push(r),t.h.appendChild(r)},insertBefore:function(r,i){this.childNodes.push(r),t.h.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.h.removeChild(r)}}),Gn(c(ep,{context:t.context},e.__v),t.v)}function Ss(e,t){var n=c(tp,{__v:e,h:t});return n.containerInfo=t,n}(Gr.prototype=new un).__a=function(e){var t=this,n=Bd(t.__v),r=t.l.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),Mu(t,e,r)):i()};n?n(o):o()}},Gr.prototype.render=function(e){this.i=null,this.l=new Map;var t=Tn(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},Gr.prototype.componentDidUpdate=Gr.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){Mu(e,n,t)})};var Wd=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,np=/^(?: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]/,rp=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ip=/[A-Z0-9]/g,op=typeof document<"u",sp=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Gd(e,t,n){return t.__k==null&&(t.textContent=""),Gn(e,t),typeof n=="function"&&n(),e?e.__c:null}function zd(e,t,n){return hl(e,t),typeof n=="function"&&n(),e?e.__c:null}un.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(un.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Iu=xe.event;function ap(){}function lp(){return this.cancelBubble}function up(){return this.defaultPrevented}xe.event=function(e){return Iu&&(e=Iu(e)),e.persist=ap,e.isPropagationStopped=lp,e.isDefaultPrevented=up,e.nativeEvent=e};var Al,cp={enumerable:!1,configurable:!0,get:function(){return this.class}},Du=xe.vnode;xe.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,i={},o=r.indexOf("-")===-1;for(var s in n){var a=n[s];if(!(s==="value"&&"defaultValue"in n&&a==null||op&&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"||sp(n.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":rp.test(s)&&(s=l):l=s="oninput":o&&np.test(s)?s=s.replace(ip,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&i[s=l]&&(s="oninputCapture"),i[s]=a}}r=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=Tn(n.children).forEach(function(u){u.props.selected=i.value.indexOf(u.props.value)!=-1})),r=="select"&&i.defaultValue!=null&&(i.value=Tn(n.children).forEach(function(u){u.props.selected=i.multiple?i.defaultValue.indexOf(u.props.value)!=-1:i.defaultValue==u.props.value})),n.class&&!n.className?(i.class=n.class,Object.defineProperty(i,"className",cp)):(n.className&&!n.class||n.class&&n.className)&&(i.class=i.className=n.className),t.props=i}(e),e.$$typeof=Wd,Du&&Du(e)};var Ou=xe.__r;xe.__r=function(e){Ou&&Ou(e),Al=e.__c};var Ru=xe.diffed;xe.diffed=function(e){Ru&&Ru(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),Al=null};var qd={ReactCurrentDispatcher:{current:{readContext:function(e){return Al.__n[e.__c].props.value},useCallback:Te,useContext:Oe,useDebugValue:vl,useDeferredValue:xl,useEffect:De,useId:Jt,useImperativeHandle:wl,useInsertionEffect:Sl,useLayoutEffect:Rn,useMemo:de,useReducer:Tr,useRef:se,useState:ye,useSyncExternalStore:Cs,useTransition:Cl}}},dp="18.3.1";function Yd(e){return c.bind(null,e)}function fi(e){return!!e&&e.$$typeof===Wd}function Zd(e){return fi(e)&&e.type===Ue}function Kd(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function kl(e){return fi(e)?pl.apply(null,arguments):e}function Xd(e){return!!e.__k&&(Gn(null,e),!0)}function Jd(e){return e&&(e.base||e.nodeType===1&&e)||null}var Qd=function(e,t){return e(t)},Wt=function(e,t){return e(t)},ef=Ue,tf=fi,X={useState:ye,useId:Jt,useReducer:Tr,useEffect:De,useLayoutEffect:Rn,useInsertionEffect:Sl,useTransition:Cl,useDeferredValue:xl,useSyncExternalStore:Cs,startTransition:_l,useRef:se,useImperativeHandle:wl,useMemo:de,useCallback:Te,useContext:Oe,useDebugValue:vl,version:"18.3.1",Children:Vd,render:Gd,hydrate:zd,unmountComponentAtNode:Xd,createPortal:Ss,createElement:c,createContext:Je,createFactory:Yd,cloneElement:kl,createRef:xs,Fragment:Ue,isValidElement:fi,isElement:tf,isFragment:Zd,isMemo:Kd,findDOMNode:Jd,Component:un,PureComponent:Xo,memo:Ld,forwardRef:El,flushSync:Wt,unstable_batchedUpdates:Qd,StrictMode:ef,Suspense:Wi,SuspenseList:Gr,lazy:Ud,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:qd};const Jo=Object.freeze(Object.defineProperty({__proto__:null,Children:Vd,Component:un,Fragment:Ue,PureComponent:Xo,StrictMode:ef,Suspense:Wi,SuspenseList:Gr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:qd,cloneElement:kl,createContext:Je,createElement:c,createFactory:Yd,createPortal:Ss,createRef:xs,default:X,findDOMNode:Jd,flushSync:Wt,forwardRef:El,hydrate:zd,isElement:tf,isFragment:Zd,isMemo:Kd,isValidElement:fi,lazy:Ud,memo:Ld,render:Gd,startTransition:_l,unmountComponentAtNode:Xd,unstable_batchedUpdates:Qd,useCallback:Te,useContext:Oe,useDebugValue:vl,useDeferredValue:xl,useEffect:De,useErrorBoundary:Z0,useId:Jt,useImperativeHandle:wl,useInsertionEffect:Sl,useLayoutEffect:Rn,useMemo:de,useReducer:Tr,useRef:se,useState:ye,useSyncExternalStore:Cs,useTransition:Cl,version:dp},Symbol.toStringTag,{value:"Module"})),fp=`*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,input:where(:not([type])):focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=checkbox]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}@media (forced-colors: active){[type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}@font-face{font-family:BRSonoma;font-weight:900;src:url(/assets/BRSonoma-Black-Dd-41VER.otf) format("opentype")}@font-face{font-family:BRSonoma;font-weight:700;src:url(/assets/BRSonoma-Bold-ntHe2u-j.otf) format("opentype")}@font-face{font-family:BRSonoma;font-weight:500;src:url(/assets/BRSonoma-Medium-j1GGAHzV.otf) format("opentype")}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-y-0{top:0;bottom:0}.bottom-0{bottom:0}.left-0{left:0}.left-full{left:100%}.right-0{right:0}.top-0{top:0}.z-10{z-index:10}.col-span-1{grid-column:span 1 / span 1}.col-span-2{grid-column:span 2 / span 2}.col-span-4{grid-column:span 4 / span 4}.col-start-1{grid-column-start:1}.row-start-1{grid-row-start:1}.-my-3{margin-top:-.75rem;margin-bottom:-.75rem}.mx-12{margin-left:3rem;margin-right:3rem}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.-mt-\\[226px\\]{margin-top:-226px}.mb-12{margin-bottom:3rem}.mb-6{margin-bottom:1.5rem}.ml-1{margin-left:.25rem}.ml-3{margin-left:.75rem}.mt-0\\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.inline-table{display:inline-table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-column{display:table-column}.table-column-group{display:table-column-group}.table-footer-group{display:table-footer-group}.table-header-group{display:table-header-group}.table-row-group{display:table-row-group}.table-row{display:table-row}.flow-root{display:flow-root}.grid{display:grid}.inline-grid{display:inline-grid}.contents{display:contents}.list-item{display:list-item}.hidden{display:none}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.h-10{height:2.5rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-9{height:2.25rem}.h-\\[120px\\]{height:120px}.h-\\[34px\\]{height:34px}.h-\\[38px\\]{height:38px}.h-\\[52px\\]{height:52px}.h-\\[58px\\]{height:58px}.h-\\[60px\\]{height:60px}.h-\\[63px\\]{height:63px}.h-\\[72px\\]{height:72px}.h-full{height:100%}.h-px{height:1px}.max-h-48{max-height:12rem}.max-h-\\[470px\\]{max-height:470px}.w-16{width:4rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-60{width:15rem}.w-80{width:20rem}.w-96{width:24rem}.w-\\[1030px\\]{width:1030px}.w-\\[120px\\]{width:120px}.w-\\[128px\\]{width:128px}.w-\\[148px\\]{width:148px}.w-\\[206px\\]{width:206px}.w-\\[218px\\]{width:218px}.w-\\[230px\\]{width:230px}.w-\\[260px\\]{width:260px}.w-\\[480px\\]{width:480px}.w-\\[640px\\]{width:640px}.w-full{width:100%}.max-w-\\[640px\\]{max-width:640px}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-shrink,.shrink{flex-shrink:1}.flex-grow,.grow{flex-grow:1}.basis-0{flex-basis:0px}.-translate-y-1\\/4{--tw-translate-y: -25%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\\.5{gap:.375rem}.gap-12{gap:3rem}.gap-2{gap:.5rem}.gap-2\\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity, 1))}.divide-gray-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(209 213 219 / var(--tw-divide-opacity, 1))}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.self-center{align-self:center}.self-stretch{align-self:stretch}.justify-self-end{justify-self:end}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.text-wrap{text-wrap:wrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\\[10px\\]{border-radius:10px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-blue-300{--tw-border-opacity: 1;border-color:rgb(147 197 253 / var(--tw-border-opacity, 1))}.border-emerald-200{--tw-border-opacity: 1;border-color:rgb(167 243 208 / var(--tw-border-opacity, 1))}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-primary-600{border-color:var(--fl-color-primary-600)}.bg-amber-100{--tw-bg-opacity: 1;background-color:rgb(254 243 199 / var(--tw-bg-opacity, 1))}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.bg-emerald-100{--tw-bg-opacity: 1;background-color:rgb(209 250 229 / var(--tw-bg-opacity, 1))}.bg-emerald-50{--tw-bg-opacity: 1;background-color:rgb(236 253 245 / var(--tw-bg-opacity, 1))}.bg-emerald-600{--tw-bg-opacity: 1;background-color:rgb(5 150 105 / var(--tw-bg-opacity, 1))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-gray-500\\/50{background-color:#6b728080}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.bg-primary-600{background-color:var(--fl-color-primary-600)}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-2{padding:.5rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-0\\.5{padding-left:.125rem;padding-right:.125rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-12{padding-left:3rem;padding-right:3rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-\\[13px\\]{padding-left:13px;padding-right:13px}.px-\\[17px\\]{padding-left:17px;padding-right:17px}.px-\\[3px\\]{padding-left:3px;padding-right:3px}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-\\[0\\.5625rem\\]{padding-top:.5625rem;padding-bottom:.5625rem}.py-\\[5px\\]{padding-top:5px;padding-bottom:5px}.py-\\[9px\\]{padding-top:9px;padding-bottom:9px}.pb-10{padding-bottom:2.5rem}.pb-12{padding-bottom:3rem}.pb-2{padding-bottom:.5rem}.pb-24{padding-bottom:6rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pb-\\[3px\\]{padding-bottom:3px}.pl-1{padding-left:.25rem}.pl-2{padding-left:.5rem}.pl-2\\.5{padding-left:.625rem}.pl-3{padding-left:.75rem}.pl-\\[13px\\]{padding-left:13px}.pr-1\\.5{padding-right:.375rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-6{padding-right:1.5rem}.pr-\\[11px\\]{padding-right:11px}.pt-0\\.5{padding-top:.125rem}.pt-1{padding-top:.25rem}.pt-1\\.5{padding-top:.375rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.pt-6{padding-top:1.5rem}.pt-8{padding-top:2rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-sonoma{font-family:BRSonoma}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-sm\\/6{font-size:.875rem;line-height:1.5rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.leading-4{line-height:1rem}.leading-5{line-height:1.25rem}.leading-7{line-height:1.75rem}.leading-none{line-height:1}.leading-normal{line-height:1.5}.leading-tight{line-height:1.25}.text-amber-700{--tw-text-opacity: 1;color:rgb(180 83 9 / var(--tw-text-opacity, 1))}.text-amber-800{--tw-text-opacity: 1;color:rgb(146 64 14 / var(--tw-text-opacity, 1))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity, 1))}.text-emerald-700{--tw-text-opacity: 1;color:rgb(4 120 87 / var(--tw-text-opacity, 1))}.text-emerald-800{--tw-text-opacity: 1;color:rgb(6 95 70 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-primary-600{color:var(--fl-color-primary-600)}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-red-700{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity, 1))}.text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}.text-red-900{--tw-text-opacity: 1;color:rgb(127 29 29 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.overline{text-decoration-line:overline}.line-through{text-decoration-line:line-through}.opacity-50{opacity:.5}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-gray-300{--tw-shadow-color: #d1d5db;--tw-shadow: var(--tw-shadow-colored)}.outline{outline-style:solid}.outline-1{outline-width:1px}.-outline-offset-1{outline-offset:-1px}.outline-gray-300{outline-color:#d1d5db}.outline-red-300{outline-color:#fca5a5}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-inset{--tw-ring-inset: inset}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity, 1))}.ring-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity, 1))}.ring-opacity-5{--tw-ring-opacity: .05}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.sepia{--tw-sepia: sepia(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.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))}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:inset-1:before{content:var(--tw-content);top:.25rem;right:.25rem;bottom:.25rem;left:.25rem}.before\\:rounded-full:before{content:var(--tw-content);border-radius:9999px}.before\\:bg-white:before{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.checked\\:border-primary-600:checked{border-color:var(--fl-color-primary-600)}.checked\\:bg-primary-600:checked{background-color:var(--fl-color-primary-600)}.hover\\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.hover\\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.focus\\:border-blue-600:focus{--tw-border-opacity: 1;border-color:rgb(37 99 235 / var(--tw-border-opacity, 1))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:outline:focus{outline-style:solid}.focus\\:outline-2:focus{outline-width:2px}.focus\\:-outline-offset-2:focus{outline-offset:-2px}.focus\\:outline-blue-600:focus{outline-color:#2563eb}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-inset:focus{--tw-ring-inset: inset}.focus\\:ring-primary-600:focus{--tw-ring-color: var(--fl-color-primary-600)}.focus-visible\\:outline:focus-visible{outline-style:solid}.focus-visible\\:outline-2:focus-visible{outline-width:2px}.focus-visible\\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\\:outline-primary-600:focus-visible{outline-color:var(--fl-color-primary-600)}.hover\\:enabled\\:bg-emerald-700:enabled:hover{--tw-bg-opacity: 1;background-color:rgb(4 120 87 / var(--tw-bg-opacity, 1))}.hover\\:enabled\\:bg-gray-50:enabled:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.hover\\:enabled\\:bg-primary-700:enabled:hover{background-color:var(--fl-color-primary-700)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:border-gray-300:disabled{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.disabled\\:bg-gray-100:disabled{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:before\\:bg-gray-400:disabled:before{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}@media (min-width: 640px){.sm\\:size-4{width:1rem;height:1rem}}@media (forced-colors: active){.forced-colors\\:appearance-auto{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}.forced-colors\\:before\\:hidden:before{content:var(--tw-content);display:none}}.\\[\\&\\:not\\(\\:checked\\)\\]\\:before\\:hidden:not(:checked):before{content:var(--tw-content);display:none}`;function dn(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function mp(e){return e!=null&&typeof e.GetEnumerator=="function"}function hp(e){return e!=null&&typeof e.CompareTo=="function"}function pp(e){return e!=null&&typeof e.Equals=="function"}function nf(e){return e!=null&&typeof e.GetHashCode=="function"}function ja(e){return e!=null&&typeof e.Dispose=="function"}function $e(e){ja(e)&&e.Dispose()}function Ae(){return null}function Qo(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 gp{constructor(t){this.iter=t,this.current=Ae()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this.iter.next();return this.current=t.value,!t.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function Ie(e){return mp(e)?e.GetEnumerator():new gp(e[Symbol.iterator]())}function mi(e){return{next(){const t=e["System.Collections.IEnumerator.MoveNext"](),n=t?e["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0;return{done:!t,value:n}}}}class yp{constructor(t){this.factory=t,this.isValueCreated=!1}get Value(){return this.isValueCreated||(this.createdValue=this.factory(),this.isValueCreated=!0),this.createdValue}get IsValueCreated(){return this.isValueCreated}}function Pe(e,t){return e.toString(10).padStart(t,"0")}function wp(e,t,n){return e.toString(10).padStart(t,"0").padEnd(n,"0")}function Fu(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function vp(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function cn(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class An{static id(t){return An.idMap.has(t)||An.idMap.set(t,++An.count),An.idMap.get(t)}}An.idMap=new WeakMap;An.count=0;function Jn(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function sn(e){return e*2654435761|0}function rf(e){return Jn(e.toString(32))}function oo(e){let t=0;const n=e.length;for(let r=0;r<n;r++){const i=e[r];t=(t<<5)+t^i}return t}function bp(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return sn(e);case"bigint":return rf(e);case"string":return Jn(e);default:return sn(An.id(e))}}function _p(e){return nf(e)?e.GetHashCode():bp(e)}function xp(e){return e.getTime()}function Cp(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=Xt(e[r]);return oo(n)}function Xt(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return sn(e);case"bigint":return rf(e);case"string":return Jn(e);default:{if(nf(e))return e.GetHashCode();if(dn(e))return Cp(e);if(e instanceof Date)return xp(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>Xt(r));return oo(n)}else return sn(An.id(e))}}}function es(e){return _p(e)}function Ba(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 of(e,t){return Ba(e,t,ne)}function Sp(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let i=0;i<n.length;i++)if(n[i]!==r[i]||!ne(e[n[i]],t[r[i]]))return!1;return!0}function ne(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:pp(e)?e.Equals(t):dn(e)?dn(t)&&of(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&sf(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&Sp(e,t)}function sf(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+Fu(e),r=t.getTime()+Fu(t)),n===r?0:n<r?-1:1}function $r(e,t){return e===t?0:e<t?-1:1}function Ep(e,t,n){if(e==null)return t==null?0:1;if(t==null)return-1;if(e.length!==t.length)return e.length<t.length?-1:1;for(let r=0,i=0;r<e.length;r++)if(i=n(e[r],t[r]),i!==0)return i;return 0}function Nl(e,t){return Ep(e,t,vt)}function Ap(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return n.length<r.length?-1:1;n.sort(),r.sort();for(let i=0,o=0;i<n.length;i++){const s=n[i];if(s!==r[i])return s<r[i]?-1:1;if(o=vt(e[s],t[s]),o!==0)return o}return 0}function vt(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:hp(e)?e.CompareTo(t):dn(e)?dn(t)?Nl(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?sf(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?Ap(e,t):-1}function g(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function kp(e){dn(e)?e.splice(0):e.clear()}const Es=new WeakMap;function Qe(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return Es.set(t,e),t}function lr(e){return Es.get(e)??(t=>n=>e(t,n))}function Ua(e){if(e==null)return null;const t=(n,r,i)=>e(n)(r)(i);return Es.set(t,e),t}function da(e){return Es.get(e)??(t=>n=>r=>e(t,n,r))}function Np(e){let t=0,n="[";for(const r of e){if(t===0)n+=et(r);else if(t===100){n+="; ...";break}else n+="; "+et(r);t++}return n+"]"}function et(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 Np(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([i,o])=>i+" = "+et(o,t+1)).join(`
|
|
2
|
+
`)+" }":(r==null?void 0:r.name)??""}}return String(e)}function Tp(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=et(t[0]),r=n.indexOf(" ")>=0):n=t.map(i=>et(i)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class J{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return Tp(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>Xt(n));return t.splice(0,0,sn(this.tag)),oo(t)}Equals(t){return this===t?!0:Qo(this,t)&&this.tag===t.tag?of(this.fields,t.fields):!1}CompareTo(t){return this===t?0:Qo(this,t)?this.tag===t.tag?Nl(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function $p(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function Mp(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+et(n)).join(`
|
|
3
|
+
`)+" }"}function Ip(e){const t=Object.values(e).map(n=>Xt(n));return oo(t)}function Dp(e,t){if(e===t)return!0;if(Qo(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!ne(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function Op(e,t){if(e===t)return 0;if(Qo(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const i=vt(e[n[r]],t[n[r]]);if(i!==0)return i}return 0}else return-1}class Ce{toJSON(){return $p(this)}toString(){return Mp(this)}GetHashCode(){return Ip(this)}Equals(t){return Dp(this,t)}CompareTo(t){return Op(this,t)}}class yt{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 Rp{constructor(t){this.message=t}}function Fp(e){return e instanceof Rp||e instanceof Error}function Pp(e){return e instanceof Promise}function ts(e){return Fp(e)||Pp(e)?e:new Error(String(e))}const Tl=et(fp),hi=Symbol("numeric");function af(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[hi])}function Lp(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function Wa(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[hi]().multiply(t)}function Uo(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[hi]().toFixed(t)}function ns(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[hi]().toPrecision(t)}function rs(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[hi]().toExponential(t)}function is(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[hi]().toHex()}const Vp=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Hp=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],jp=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Bp=["January","February","March","April","May","June","July","August","September","October","November","December"];function Pt(e,t,n){let r=0,i=t;for(;i<e.length&&e[i]===n;)i++,r++;return r}function Pu(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function Up(e,t){let n=t;const r=e[t];let i="",o=!1;for(;t<e.length;){t++;const s=e[t];if(s===r){o=!0;break}else if(s==="\\")if(t<e.length)t++,i+=e[t];else throw new Error("Invalid string format");else i+=s}if(!o)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[i,t-n+1]}function $l(e,t,n){let r=0,i=0,o="";const s=n?so(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(i=Pt(t,r,"d"),r+=i,i){case 1:o+=Vu(s);break;case 2:o+=Pe(Vu(s),2);break;case 3:o+=Vp[Bu(s)];break;case 4:o+=Hp[Bu(s)];break}break;case"f":if(i=Pt(t,r,"f"),r+=i,i<=3){const b=10**(3-i);o+=Pe(Math.floor(To(s)/b),i)}else i<=7&&(o+=(""+To(s)).padEnd(i,"0"));break;case"F":if(i=Pt(t,r,"F"),r+=i,i<=3){const b=10**(3-i),x=Math.floor(To(s)/b);x!=0&&(o+=Pe(x,i))}else if(i<=7){const b=To(s);b!=0&&(o+=Pe(b,3))}break;case"g":i=Pt(t,r,"g"),r+=i,i<=2&&(o+="A.D.");break;case"h":switch(i=Pt(t,r,"h"),r+=i,i){case 1:o+=No(s)%12;break;case 2:o+=Pe(No(s)%12,2);break}break;case"H":switch(i=Pt(t,r,"H"),r+=i,i){case 1:o+=No(s);break;case 2:o+=Pe(No(s),2);break}break;case"K":switch(i=Pt(t,r,"K"),r+=i,i){case 1:switch(Lu(s)){case 1:o+="Z";break;case 2:o+=qr(s.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(i=Pt(t,r,"m"),r+=i,i){case 1:o+=Hu(s);break;case 2:o+=Pe(Hu(s),2);break}break;case"M":switch(i=Pt(t,r,"M"),r+=i,i){case 1:o+=$o(s);break;case 2:o+=Pe($o(s),2);break;case 3:o+=jp[$o(s)-1];break;case 4:o+=Bp[$o(s)-1];break}break;case"s":switch(i=Pt(t,r,"s"),r+=i,i){case 1:o+=ju(s);break;case 2:o+=Pe(ju(s),2);break}break;case"t":switch(i=Pt(t,r,"t"),r+=i,i){case 1:o+=s.getHours()<12?"A":"P";break;case 2:o+=s.getHours()<12?"AM":"PM";break}break;case"y":switch(i=Pt(t,r,"y"),r+=i,i){case 1:o+=s.getFullYear()%100;break;case 2:o+=Pe(s.getFullYear()%100,2);break;case 3:o+=Pe(s.getFullYear(),3);break;case 4:o+=Pe(s.getFullYear(),4);break;case 5:o+=Pe(s.getFullYear(),5);break}break;case"z":i=Pt(t,r,"z"),r+=i;let l="";switch(Lu(s)){case 1:l="+00:00";break;case 2:l=qr(s.getTimezoneOffset()*-6e4);break;case 0:l=qr(Jp(s).getTimezoneOffset()*-6e4);break}const u=l[0]==="-"?"-":"+",f=parseInt(l.substring(1,3),10),d=parseInt(l.substring(4,6),10);switch(i){case 1:o+=`${u}${f}`;break;case 2:o+=`${u}${Pe(f,2)}`;break;default:o+=`${u}${Pe(f,2)}:${Pe(d,2)}`;break}break;case":":o+=":",r++;break;case"/":o+="/",r++;break;case"'":case'"':const[p,h]=Up(t,r);o+=p,r+=h;break;case"%":const m=Pu(t,r);if(m>=0&&m!==37)r+=2,o+=$l(s,String.fromCharCode(m),n);else throw new Error("Invalid format string");break;case"\\":const w=Pu(t,r);if(w>=0)r+=2,o+=String.fromCharCode(w);else throw new Error("Invalid format string");break;default:r++,o+=a;break}}return o}function Lu(e){return e.kind||0}function qr(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+Pe(n,2)+":"+Pe(r,2)}function os(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 Wp(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return Pe(e.getFullYear(),4)+"-"+Pe(e.getMonth()+1,2)+"-"+Pe(e.getDate(),2)+"T"+Pe(e.getHours(),2)+":"+Pe(e.getMinutes(),2)+":"+Pe(e.getSeconds(),2)+"."+Pe(e.getMilliseconds(),3)+(n?qr(e.getTimezoneOffset()*-6e4):"")}}function Gp(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+qr(t)}function zp(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," ")+qr(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return os(n,"first");case"T":case"t":return os(n,"second");case"O":case"o":return Gp(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return $l(n,t,!0)}function qp(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?os(e,"first"):e.toLocaleDateString();case"T":case"t":return n?os(e,"second"):e.toLocaleTimeString();case"O":case"o":return Wp(e,n);default:throw new Error("Unrecognized Date print format")}else return $l(e,t,n)}function As(e,t,n){return e.offset!=null?zp(e,t):qp(e,t)}function so(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function Yp(){return so(-621355968e5,1)}function lf(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}(e==null||e.trim()==="")&&t(),e.length===10&&e[4]==="-"&&e[7]==="-"&&(e+="T00:00:00");let n=new Date(e),r=null;if(isNaN(n.getTime())){const i=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(i!=null){let o,s=0;if(i[2]!=null){const a=i[2].split(":"),l=parseInt(a[0],10);s=l*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),i[3]!=null&&i[3].toUpperCase()==="PM"&&l<12&&(s+=720)}if(i[4]!=null){if(i[1]!=null)o=new Date(i[1]+" UTC");else{const a=new Date;o=new Date(a.getUTCFullYear()+"/"+(a.getUTCMonth()+1)+"/"+a.getUTCDate())}if(i[4]==="Z")r="Z";else{let a=parseInt(i[5],10)*60+parseInt(i[6]||"0",10);i[4][0]==="-"&&(a*=-1),r=a,s-=a*60}}else if(i[1]!=null)o=new Date(i[1]);else{const a=new Date;o=new Date(a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.getDate())}n=new Date(o.getTime()+s*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-o.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function Zp(e,t=!1){const[n,r]=lf(e),i=r!=null?t&&r==="Z"?1:2:0;return so(n.getTime(),i)}function Kp(e,t){try{return t.contents=Zp(e),!0}catch{return!1}}function Xp(e){return e.kind===1?e:so(e.getTime(),1)}function Jp(e){return e.kind===2?e:so(e.getTime(),2)}function Vu(e){return e.kind===1?e.getUTCDate():e.getDate()}function No(e){return e.kind===1?e.getUTCHours():e.getHours()}function To(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function Hu(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function $o(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function ju(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function Bu(e){return e.kind===1?e.getUTCDay():e.getDay()}function Qp(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 ks(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Uu(e,t,n=0){if(t==null)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=n;const r=[];let i,o=-1;for(;(i=e.exec(t))!=null;)i.index===o?e.lastIndex++:(o=i.index,r.push(i));return r}function Ml(e,t,n,r,i=0){function o(){let s=arguments[0];if(r){r--;const a=[],l=arguments.length,u=typeof arguments[l-1]!="string";let f=u?l-3:l-2;for(let d=0;d<f;d++)a.push(arguments[d]);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=Qp(t,r??0),t=s,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,i)+t.substring(i).replace(e,o);if(n=n.replace(/\$0/g,s=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let s;const a=t.substring(i),l=Uu(e,a),u=Uu.length>r?(s=l[r-1],a.substring(0,s.index+s[0].length)):a;return t.substring(0,i)+u.replace(e,n)+t.substring(i+u.length)}else return t.replace(e,n)}const Ti=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,eg=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function uf(e,t){return Lp(e,t)<0}function Dn(e){return{input:e,cont:ng(e)}}function cf(e,t){return typeof t=="string"?e(t):t.cont(e)}function wr(e){return cf(t=>t,e)}function df(e){return cf(t=>{throw new Error(t)},e)}function tg(e,t,n,r,i){let o="";if(t=t||"",i=i||"",af(e))switch(i.toLowerCase()!=="x"&&(uf(e,0)?(e=Wa(e,-1),o="-"):t.indexOf(" ")>=0?o=" ":t.indexOf("+")>=0&&(o="+")),r=r==null?null:parseInt(r,10),i){case"f":case"F":r=r??6,e=Uo(e,r);break;case"g":case"G":e=r!=null?ns(e,r):ns(e);break;case"e":case"E":e=r!=null?rs(e,r):rs(e);break;case"x":e=is(e);break;case"X":e=is(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=As(e):e=et(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=o+e;else{const s=t.indexOf("0")>=0,a=t.indexOf("-")>=0,l=a||!s?" ":"0";l==="0"?(e=Zi(e,n-o.length,l,a),e=o+e):e=Zi(o+e,n,l,a)}return e}function ff(e,t,n,r="",i=-1){return(...o)=>{let s=r;const a=t.slice(),l=n.slice();for(const u of o){const[,,f,d,p,h]=l[0];let m=d;if(i>=0)m=i,i=-1;else if(m==="*"){if(u<0)throw new Error("Non-negative number required");i=u;continue}s+=a[0],s+=tg(u,f,m,p,h),a.splice(0,1),l.splice(0,1)}return l.length===0?(s+=a[0],e(s)):ff(e,a,l,s,i)}}function ng(e){return t=>{Ti.lastIndex=0;const n=[],r=[];let i=0,o=Ti.exec(e);for(;o;){const s=o.index+(o[1]||"").length;n.push(e.substring(i,s).replace(/%%/g,"%")),r.push(o),i=Ti.lastIndex,Ti.lastIndex-=1,o=Ti.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(i).replace(/%%/g,"%")),ff(t,n,r))}}function Il(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(eg,(r,i,o,s,a,l)=>{if(i<0||i>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let u=t[i];if(af(u))switch(a=a==null?null:parseInt(a,10),s){case"f":case"F":a=a??2,u=Uo(u,a);break;case"g":case"G":u=a!=null?ns(u,a):ns(u);break;case"e":case"E":u=a!=null?rs(u,a):rs(u);break;case"p":case"P":a=a??2,u=Uo(Wa(u,100),a)+" %";break;case"d":case"D":u=a!=null?fa(String(u),a,"0"):String(u);break;case"x":case"X":u=a!=null?fa(is(u),a,"0"):is(u),s==="X"&&(u=u.toUpperCase());break;default:if(l){let f="";u=l.replace(/([0#,]+)(\.[0#]+)?/,(d,p,h)=>{uf(u,0)&&(u=Wa(u,-1),f="-"),h=h==null?"":h.substring(1),u=Uo(u,Math.max(h.length,0));let[m,w]=u.split(".");w||(w="");const b=p.replace(/,/g,"").replace(/^#+/,"").length;m=fa(m,b,"0");const x=h.replace(/#+$/,"").length;if(x>w.length?w=rg(w,x,"0"):x<w.length&&(w=w.substring(0,x)+w.substring(x).replace(/0+$/,"")),p.indexOf(",")>0){const C=m.length%3,E=Math.floor(m.length/3);let $=C>0?m.substr(0,C)+(E>0?",":""):"";for(let I=0;I<E;I++)$+=m.substr(C+I*3,3)+(I<E-1?",":"");m=$}return w.length>0?m+"."+w:m}),u=f+u}}else u instanceof Date?u=As(u,l||s):u=et(u);return o=parseInt((o||" ").substring(1),10),isNaN(o)||(u=Zi(String(u),Math.abs(o)," ",o<0)),u})}function Dl(e){return typeof e!="string"||e.length===0}function ao(e){return typeof e!="string"||/^\s*$/.test(e)}function Ct(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Zi(e,t,n,r){n=n||" ",t=t-e.length;for(let i=0;i<t;i++)e=r?e+n:n+e;return e}function fa(e,t,n){return Zi(e,t,n)}function rg(e,t,n){return Zi(e,t,n,!0)}function mf(e,t,n){return e.replace(new RegExp(ks(t),"g"),n)}function ig(e,t,n,r){if(n=typeof n=="number"?n:void 0,r=typeof r=="number"?r:0,n&&n<0)throw new Error("Count cannot be less than zero");if(n===0)return[];const i=(r&1)===1,o=(r&2)===2;t=t||[],t=t.filter(f=>f).map(ks),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 d=o?e.substring(u).trim():e.substring(u);(!i||d.length>0)&&s.push(d),l=!1}else{const d=o?e.substring(u,f.index).trim():e.substring(u,f.index);(!i||d.length>0)&&(n!=null&&s.length+1===n?(s.push(o?e.substring(u).trim():e.substring(u)),l=!1):s.push(d)),u=a.lastIndex}}while(l);return s}function og(e,...t){if(t.length===0)return e.trim();const n="["+ks(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}function hf(e,...t){return t.length===0?e.trimEnd():e.replace(new RegExp("["+ks(t.join(""))+"]+$"),"")}class vr{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return Xt(this.value)}Equals(t){return t==null?!1:ne(this.value,t instanceof vr?t.value:t)}CompareTo(t){return t==null?1:vt(this.value,t instanceof vr?t.value:t)}}function V(e){if(e==null)throw new Error("Option has no value");return e instanceof vr?e.value:e}function Hi(e){return e instanceof vr?e.value:e}function ht(e){return e==null||e instanceof vr?new vr(e):e}function pf(e){return e==null?null:V(e)}function Ns(e){return e==null?[]:[V(e)]}function it(e,t){return e!=null?V(e):t}function sg(e,t){return e!=null?V(e):t()}function xt(e,t){return t!=null?ht(e(V(t))):void 0}function ag(e,t){return t!=null?e(V(t)):void 0}class lg{constructor(t,n,r,i){this.declaringType=t,this.tag=n,this.name=r,this.fields=i}}class zt{constructor(t,n,r,i,o,s,a){this.fullname=t,this.generics=n,this.construct=r,this.parent=i,this.fields=o,this.cases=s,this.enumCases=a}toString(){return We(this)}GetHashCode(){return gf(this)}Equals(t){return Ga(this,t)}}function Bt(e){return e.generics!=null?e.generics:[]}function gf(e){const t=Jn(e.fullname),n=Bt(e).map(gf);return oo([t,...n])}function Ga(e,t){return e.fullname===""?t.fullname===""&&Ba(Ki(e),Ki(t),([n,r],[i,o])=>n===i&&Ga(r,o)):e.fullname===t.fullname&&Ba(Bt(e),Bt(t),Ga)}function zn(e,t,n,r){return new zt(e,t,n,r)}function Qt(e,t,n,r){return new zt(e,t,n,void 0,r)}function yf(e,t,n,r){const i=new zt(e,t,n,void 0,void 0,()=>{const o=n.prototype.cases();return r().map((s,a)=>new lg(i,a,o[a],s))});return i}function Yr(e){return new zt("Microsoft.FSharp.Core.FSharpOption`1",[e])}function br(e){return new zt("Microsoft.FSharp.Collections.FSharpList`1",[e])}const ug=new zt("System.Object"),$n=new zt("System.String"),cg=new zt("System.Boolean"),Tt=new zt("System.Int32");function Zr(e){if(Array.isArray(e))return e[0];if(e instanceof zt){const t=lo(e);if(t!=null)return Zr(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function We(e){const t=lo(e);return t!=null?We(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>We(n)).join(",")+"]"}function wf(e){return lo(e)!=null}function lo(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function vf(e){return e.generics!=null&&e.generics.length>0}function Ol(e){return e.enumCases!=null&&e.enumCases.length>0}function bf(e){return e.generics==null?e:new zt(e.fullname,e.generics.map(()=>ug))}function _f(e){var t;return(t=e.generics)==null?void 0:t[0]}function Rr(e){if(Ol(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function dg(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 Fr(e,t){const n=parseInt(t,10);return dg(e,isNaN(n)?t:n)[1]}function xf(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Ki(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Cf(e){if(Rl(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Sf(e){return e instanceof zt?e.cases!=null:e instanceof J}function Ef(e){return e instanceof zt?e.fields!=null:e instanceof Ce}function Rl(e){return e.fullname.startsWith("System.Tuple")}function fg(e,t){const r=xf(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function Af(e){return e.fields==null?[]:e.fields}function mg(e,t){return e[t[0]]}function hg(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 pg(e,t){const n=Ki(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return e.construct!=null?new e.construct(...t):n.reduce((r,[i,o],s)=>(r[i]=t[s],r),{})}function gg(e,t){return e}const kf="Collection was empty.",yg="The input must be non-negative.",Nf="The input sequence has an insufficient number of elements.";function oi(e,t){return new Array(t)}function Wu(e,t){return e>t?e:t}function Gu(e,t){return e<t?e:t}function Tf(e,t,n){const r=e.length|0,i=t.length|0,o=oi(n,r+i);for(let s=0;s<=r-1;s++)St(o,s,we(s,e));for(let s=0;s<=i-1;s++)St(o,s+r,we(s,t));return o}function uo(e,t,n,r){const i=t|0;return e.fill(r,i,i+n)}function wg(e){if(e.length===0)throw new Error("The input array was empty\\nParameter name: array");return we(e.length-1,e)}function $f(e,t,n){const r=t.length|0,i=oi(n,r);for(let o=0;o<=r-1;o++)St(i,o,e(o,we(o,t)));return i}function Ge(e,t,n){const r=t.length|0,i=oi(n,r);for(let o=0;o<=r-1;o++)St(i,o,e(we(o,t)));return i}function ss(e,t){const n=Array.isArray(e)?e:Array.from(e);switch(n.length|0){case 0:return oi(t,0);case 1:return we(0,n);default:{let i=0,o=0;for(let a=0;a<=n.length-1;a++){const l=we(a,n);o=o+l.length|0}const s=oi(t,o);for(let a=0;a<=n.length-1;a++){const l=we(a,n);for(let u=0;u<=l.length-1;u++)St(s,i,we(u,l)),i=i+1|0}return s}}}function vg(e,t,n,r,i){const o=it(n,0)|0,s=it(xt(l=>o+l,r),e.length)|0;return(l=>{e:for(;;){const u=l;if(u>=s)return-1;if(i.Equals(t,we(u,e)))return u|0;l=u+1;continue e}})(o)|0}function pi(e,t,n){return vg(t,e,void 0,void 0,n)>=0}function bg(e,t){const n=oi(t,1);return St(n,0,e),n}function _g(e){return e.slice().reverse()}function Ts(e,t){return t.find(e)}function Ut(e,t,n){const r=[];for(let i=0;i<=t.length-1;i++){const o=e(we(i,t));if(o!=null){const s=V(o);r.push(s)}}return ne(n,Ae())?r:Ge(i=>i,r,n)}function $s(e,t,n){const r=e;return n.reduce(r,t)}function xg(e,t){const n=e.slice();return n.sort((r,i)=>t.Compare(r,i)),n}function Cg(e,t,n){const r=t.slice();return r.sort((i,o)=>n.Compare(e(i),e(o))),r}function co(e,t,n){if(t==null)return n==null;if(n==null)return!1;{let r=0,i=!0;const o=t.length|0,s=n.length|0;if(o>s)return!1;if(o<s)return!1;for(;r<o&&i;)i=e(we(r,t),we(r,n)),r=r+1|0;return i}}function zu(e){if(e.length===0)throw new Error("The input array was empty\\nParameter name: array");return we(0,e)}function Sg(e){if(e.length===0)throw new Error("Not enough elements\\nParameter name: array");return e.slice(1)}function we(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 St(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 Mf(e,t){if(!(e<0||e>=t.length))return ht(t[e])}function If(e,t,n){return t.reduceRight((r,i)=>e(i,r),n)}class Et extends Ce{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+Ct("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((i,o)=>{e:for(;;){const s=i,a=o,l=s.tail,u=a.tail;if(l!=null)if(u!=null){const f=V(l),d=V(u);if(ne(s.head,a.head)){i=f,o=d;continue e}else return!1}else return!1;else return u==null}})(n,t)}GetHashCode(){return((r,i,o)=>{e:for(;;){const s=r,a=i,l=o,u=l.tail;if(u!=null){const f=V(u);if(s>18)return a|0;r=s+1,i=(a<<1)+Xt(l.head)+631*s,o=f;continue e}else return a|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((i,o)=>{e:for(;;){const s=i,a=o,l=s.tail,u=a.tail;if(l!=null)if(u!=null){const f=V(l),d=V(u),p=vt(s.head,a.head)|0;if(p===0){i=f,o=d;continue e}else return p|0}else return 1;else return u!=null?-1:0}})(this,t)|0}GetEnumerator(){return Ag(this)}[Symbol.iterator](){return mi(Ie(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Ie(this)}}class Eg{constructor(t){this.xs=t,this.it=this.xs,this.current=Ae()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this,n=t.it.tail;if(n!=null){const r=V(n);return t.current=t.it.head,t.it=r,!0}else return!1}"System.Collections.IEnumerator.Reset"(){const t=this;t.it=t.xs,t.current=Ae()}Dispose(){}}function Ag(e){return new Eg(e)}function ot(){return new Et(Ae(),void 0)}function fo(e,t){return new Et(e,t)}function Qn(e){return e.tail==null}function Df(e){return((n,r)=>{e:for(;;){const i=n,s=r.tail;if(s!=null){n=i+1,r=V(s);continue e}else return i|0}})(0,e)|0}function gi(e){if(e.tail!=null)return e.head;throw new Error(kf+"\\nParameter name: list")}function At(e){const t=e.tail;if(t!=null)return V(t);throw new Error(kf+"\\nParameter name: list")}function ut(){return ot()}function Yt(e,t){return fo(e,t)}function me(e){return fo(e,ot())}function Se(e){return Qn(e)}function an(e){return Df(e)}function le(e){return gi(e)}function ke(e){return At(e)}function er(e){const t=Df(e)|0,n=uo(new Array(t),0,t,null);return((i,o)=>{e:for(;;){const s=i,a=o;if(!Qn(a)){St(n,s,gi(a)),i=s+1,o=At(a);continue e}break}})(0,e),n}function Fn(e,t,n){let r=t,i=n;for(;!Qn(i);)r=e(r,le(i)),i=At(i);return r}function Fl(e){return Fn((t,n)=>fo(n,t),ot(),e)}function kg(e,t,n){return If(e,er(t),n)}function Ng(e,t,n){return((i,o,s)=>{e:for(;;){const a=i,l=o,u=s;if(Qn(u))return l;i=a+1,o=e(a,l,gi(u)),s=At(u);continue e}})(0,t,n)}function as(e,t){Fn((n,r)=>{e(r)},void 0,t)}function Ye(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=fo(we(r,e),n);return n}function y(e){return Ye(e,ot())}function Tg(e){let t,n;if(dn(e))return y(e);if(e instanceof Et)return e;{const r=ot();let i=r;const o=Ie(e);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const l=o["System.Collections.Generic.IEnumerator`1.get_Current"]();i=(t=i,n=new Et(l,void 0),t.tail=n,n)}}finally{$e(o)}const s=i,a=ot();return s.tail=a,At(r)}}function mo(e,t){return Fn((n,r)=>fo(r,n),t,Fl(e))}function Of(e,t){const n=ot(),r=Ng((o,s,a)=>{const l=new Et(e(o,a),void 0);return s.tail=l,l},n,t),i=ot();return r.tail=i,At(n)}function _r(e,t){const n=ot(),r=Fn((o,s)=>{const a=new Et(e(s),void 0);return o.tail=a,a},n,t),i=ot();return r.tail=i,At(n)}function $g(e,t){return(r=>{e:for(;;){const i=r;if(Qn(i))return;{const o=e(gi(i));if(o==null){r=At(i);continue e}else return o}}})(t)}function Mg(e,t){return $g(n=>e(n)?ht(n):void 0,t)}function Ig(e,t){return((r,i)=>{e:for(;;){const o=r,s=i;if(Qn(s))return;if(e(gi(s)))return o;r=o+1,i=At(s);continue e}})(0,t)}function kn(e,t){const n=ot(),r=Fn((o,s)=>{if(e(s)){const a=new Et(s,void 0);return o.tail=a,a}else return o},n,t),i=ot();return r.tail=i,At(n)}function Dg(e,t){const n=ot(),r=ot(),i=n,o=Fn((l,u)=>{let f,d;const p=l[0],h=l[1];return e(u)?[(f=new Et(u,void 0),p.tail=f,f),h]:[p,(d=new Et(u,void 0),h.tail=d,d)]},[i,r],t),s=ot();o[0].tail=s;const a=ot();return o[1].tail=a,[At(i),At(r)]}function Og(e,t){const n=ot(),r=Fn((o,s)=>{const a=e(s);if(a==null)return o;{const l=new Et(V(a),void 0);return o.tail=l,l}},n,t),i=ot();return r.tail=i,At(n)}function Pl(e,t){return Ig(e,t)!=null}function Rf(e,t){const n=er(t);return n.sort(e),y(n)}function Rg(e,t,n){return Rf((r,i)=>n.Compare(e(r),e(i)),t)}function Fg(e,t,n){return Rf((r,i)=>n.Compare(e(r),e(i))*-1,t)}function Ff(e,t){e:for(;;){const n=e,r=t;if(n<=0)return r;if(Qn(r))throw new Error(Nf+"\\nParameter name: list");e=n-1,t=At(r);continue e}}function Pf(e,t){if(e<0)throw new Error(yg+"\\nParameter name: count");const n=(s,a,l)=>{let u;e:for(;;){const f=s,d=a,p=l;if(f<=0)return d;if(Qn(p))throw new Error(Nf+"\\nParameter name: list");s=f-1,a=(u=new Et(gi(p),void 0),d.tail=u,u),l=At(p);continue e}},r=ot(),i=n(e,r,t),o=ot();return i.tail=o,At(r)}function Pg(e,t,n){const r=an(n)|0;let i;const o=it(e,0)|0;i=o<0?0:o;let s;const a=it(t,r-1)|0;return s=a>=r?r-1:a,s<i?ot():Pf(s-i+1,Ff(i,n))}const v=X;function Lg(e){const t=y([c("style",{children:[Tl]}),c("div",{className:"text-blue-500",children:`Welcome to apollo-import-workspace-app, with backend url ${e.backendUrl}`})]);return c("div",{children:v.Children.toArray(Array.from(t))})}function Vg(e){throw new Error(e)}const Hg="Enumeration already finished.",jg="Enumeration has not started. Call MoveNext.",Lf="The input sequence has an insufficient number of elements.",Bg="Reset is not supported on this enumerator.";function Ug(){throw new Error(Bg)}function Ll(){throw new Error(jg)}function za(){throw new Error(Hg)}class Wg{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const i=Ie(t);try{for(;n<4&&i["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+et(i["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{$e(i)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return mi(Ie(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function Gg(e){return new Wg(e)}class zg{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"(){Ug()}Dispose(){this.dispose()}}function Ms(e,t,n){return new zg(e,t,n)}function qg(e){let t,n,r=!1,i=!1,o;const s=()=>{if(i=!0,n!=null){const a=V(n);try{$e(a)}finally{n=void 0}}if(t!=null){const a=V(t);try{$e(a)}finally{t=void 0}}};return Ms(()=>(r?i&&za():Ll(),o!=null?V(o):za()),()=>{let a;if(r||(r=!0),i)return!1;{let l;for(;l==null;){const u=t,f=n;if(u!=null)if(f!=null){const d=V(f);if(d["System.Collections.IEnumerator.MoveNext"]())o=ht(d["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{$e(d)}finally{n=void 0}}else{const d=V(u);d["System.Collections.IEnumerator.MoveNext"]()?n=(a=d["System.Collections.Generic.IEnumerator`1.get_Current"](),Ie(a)):(s(),l=!1)}else t=Ie(e)}return V(l)}},()=>{i||s()})}function Yg(e,t){return Ms(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{$e(t)}finally{}})}function Vf(e,t,n){let r=!1,i,o=ht(e());const s=()=>{if(o!=null){const l=V(o);try{n(l)}finally{o=void 0}}},a=()=>{try{s()}finally{i=void 0}};return Ms(()=>(r||Ll(),i!=null?V(i):za()),()=>{if(r||(r=!0),o!=null){const l=V(o);let u;try{u=t(l)}catch(f){throw a(),f}return u!=null?(i=u,!0):(a(),!1)}else return!1},s)}function Zg(e,t){let n,r=t;return Ms(()=>{if(n!=null){const i=V(n)[0];return V(n)[1],i}else return Ll()},()=>(n=e(r),n!=null?(V(n)[0],r=V(n)[1],!0):!1),()=>{})}function Kg(e,t){t==null&&Vg(e)}function yi(e){return Gg(e)}function gn(e){return Kg("source",e),Ie(e)}function N(e){return yi(()=>Ie(e()))}function Is(e){return yi(()=>qg(e))}function Xg(e,t){return yi(()=>Zg(e,t))}function at(){return N(()=>new Array(0))}function A(e){return N(()=>bg(e))}function qn(e){return e instanceof Et?er(e):Array.from(e)}function K(e){return dn(e)?y(e):e instanceof Et?e:Tg(e)}function Hf(e,t,n){return yi(()=>Vf(e,t,n))}function jf(e,t,n){return yi(()=>{let r=-1;return Vf(e,i=>(r=r+1|0,t(r,i)),n)})}function j(e,t){return Is([e,t])}function Jg(e,t){return Hf(()=>gn(t),n=>{let r;for(;r==null&&n["System.Collections.IEnumerator.MoveNext"]();)r=e(n["System.Collections.Generic.IEnumerator`1.get_Current"]());return r},n=>{$e(n)})}function Qg(e,t,n){const r=gn(t);try{const i=gn(n);try{let o=0,s=r["System.Collections.IEnumerator.MoveNext"](),a=i["System.Collections.IEnumerator.MoveNext"]();for(;o===0&&s&&a;)o=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),i["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,o===0&&(s=r["System.Collections.IEnumerator.MoveNext"](),a=i["System.Collections.IEnumerator.MoveNext"]());return(o!==0?o:s?1:a?-1:0)|0}finally{$e(i)}}finally{$e(r)}}function Pr(e,t,n){const r=gn(t);try{let i=!1;for(;!i&&r["System.Collections.IEnumerator.MoveNext"]();)i=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return i}finally{$e(r)}}function Vl(e,t){return Jg(n=>{if(e(n))return ht(n)},t)}function ho(e,t,n){const r=gn(n);try{let i=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)i=e(i,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return i}finally{$e(r)}}function Mr(e,t){ho((n,r)=>{e(r)},void 0,t)}function Bf(e,t){ho((n,r)=>(e(n,r),n+1|0),0,t)}function e1(e){if(dn(e))return e.length|0;if(e instanceof Et)return an(e)|0;{const t=gn(e);try{let n=0;for(;t["System.Collections.IEnumerator.MoveNext"]();)n=n+1|0;return n|0}finally{$e(t)}}}function Le(e,t){return Hf(()=>gn(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?ht(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{$e(n)})}function t1(e,t){return jf(()=>gn(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?ht(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{$e(n)})}function n1(e){return N(()=>_g(qn(e)))}function r1(e,t){return yi(()=>{const n=gn(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Lf+"\\nParameter name: source");return Yg(()=>{},n)}catch(r){throw $e(n),r}})}function i1(e,t){return jf(()=>gn(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return ht(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(Lf+"\\nParameter name: source")}else return},n=>{$e(n)})}function Ds(e,t){return N(()=>Is(Le(e,t)))}const ur={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function ma(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 o1(e,t){switch(t){case ur.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case ur.SnakeCase:return ma(e,"_");case ur.SnakeCaseAllCaps:return ma(e,"_").toUpperCase();case ur.KebabCase:return ma(e,"-");case ur.None:default:return e}}function Ir(e,t=ur.None){const n={},r=t;function i(s){throw new Error("Cannot infer key and value of "+String(s))}function o(s,a,l){s=o1(s,a),n[s]=l}for(let s of e){let a=ur.None;if(s==null&&i(s),s instanceof J){const l=s.cases()[s.tag];s=s.fields.length===0?l:[l].concat(s.fields),a=r}if(Array.isArray(s))switch(s.length){case 0:i(s);break;case 1:o(s[0],a,!0);break;case 2:const l=s[1];o(s[0],a,l);break;default:o(s[0],a,s.slice(1))}else typeof s=="string"?o(s,a,!0):i(s)}return n}function Hl(e,t,n){return e.has(t)?(n.contents=e.get(t),!0):!1}function Uf(e,t){return t.has(e)?!1:(t.add(e),!0)}function s1(e,t,n){if(e.has(t))throw new Error("An item with the same key has already been added. Key: "+t);e.set(t,n)}function Yn(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class Wf{constructor(t,n){const r=new yt(Ae());this.comparer=n,r.contents=this,this.hashMap=new Map([]),this["init@9"]=1;const i=Ie(t);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const o=i["System.Collections.Generic.IEnumerator`1.get_Current"]();ha(r.contents,o)}}finally{$e(i)}}get[Symbol.toStringTag](){return"HashSet"}toJSON(){const t=this;return Array.from(t)}"System.Collections.IEnumerable.GetEnumerator"(){return Ie(this)}GetEnumerator(){return Ie(Is(this.hashMap.values()))}[Symbol.iterator](){return mi(Ie(this))}"System.Collections.Generic.ICollection`1.Add2B595"(t){ha(this,t)}"System.Collections.Generic.ICollection`1.Clear"(){qu(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(t){return Zu(this,t)}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Bf((i,o)=>{St(t,n+i,o)},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return Yu(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(t){return Ku(this,t)}get size(){return Yu(this)|0}add(t){const n=this;return ha(n,t),n}clear(){qu(this)}delete(t){return Ku(this,t)}has(t){return Zu(this,t)}keys(){return Le(n=>n,this)}values(){return Le(n=>n,this)}entries(){return Le(n=>[n,n],this)}forEach(t,n){const r=this;Mr(i=>{t(i,i,r)},r)}}function jl(e,t){const n=e.comparer.GetHashCode(t)|0;let r,i=Ae();return r=[Hl(e.hashMap,n,new yt(()=>i,o=>{i=o})),i],r[0]?[!0,n,r[1].findIndex(o=>e.comparer.Equals(t,o))]:[!1,n,-1]}function qu(e){e.hashMap.clear()}function Yu(e){let t=0,n=Ie(e.hashMap.values());try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=t+r.length|0}}finally{$e(n)}return t|0}function ha(e,t){const n=jl(e,t);return n[0]?n[2]>-1?!1:(Yn(e.hashMap,n[1]).push(t),!0):(e.hashMap.set(n[1],[t]),!0)}function Zu(e,t){const n=jl(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return!0;default:return!1}}function Ku(e,t){const n=jl(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return Yn(e.hashMap,n[1]).splice(n[2],1),!0;default:return!1}}class Gf{constructor(t){this.k=t}}function Ht(e){return new Gf(e)}function ge(e){return e.k}class Me extends Gf{constructor(t,n,r,i){super(t),this.left=n,this.right=r,this.h=i|0}}function jt(e,t,n,r){return new Me(e,t,n,r)}function Be(e){return e.left}function He(e){return e.right}function zr(e){return e.h}function zf(e,t){e:for(;;){const n=e,r=t;if(n!=null){const i=V(n);if(i instanceof Me){const o=i;e=Be(o),t=zf(He(o),r+1);continue e}else return r+1|0}else return r|0}}function a1(e){return zf(e,0)}function nn(e,t,n){let r,i,o;const s=e;if(s!=null){const f=V(s);o=f instanceof Me?(r=f,zr(r)):1}else o=0;let a;const l=n;if(l!=null){const f=V(l);a=f instanceof Me?(i=f,zr(i)):1}else a=0;const u=(o<a?a:o)|0;return u===0?Ht(t):jt(t,e,n,u+1)}function Xu(e,t,n){let r,i,o,s,a,l,u,f,d;const p=e;if(p!=null){const w=V(p);d=w instanceof Me?(r=w,zr(r)):1}else d=0;let h;const m=n;if(m!=null){const w=V(m);h=w instanceof Me?(i=w,zr(i)):1}else h=0;if(h>d+2){const w=V(n);if(w instanceof Me){const b=w;if(o=Be(b),(o!=null?(s=V(o),s instanceof Me?(a=s,zr(a)):1):0)>d+1){const x=V(Be(b));if(x instanceof Me){const C=x;return nn(nn(e,t,Be(C)),ge(C),nn(He(C),ge(b),He(b)))}else throw new Error("internal error: Set.rebalance")}else return nn(nn(e,t,Be(b)),ge(b),He(b))}else throw new Error("internal error: Set.rebalance")}else if(d>h+2){const w=V(e);if(w instanceof Me){const b=w;if(l=He(b),(l!=null?(u=V(l),u instanceof Me?(f=u,zr(f)):1):0)>h+1){const x=V(He(b));if(x instanceof Me){const C=x;return nn(nn(Be(b),ge(b),Be(C)),ge(C),nn(He(C),t,n))}else throw new Error("internal error: Set.rebalance")}else return nn(Be(b),ge(b),nn(He(b),t,n))}else throw new Error("internal error: Set.rebalance")}else return nn(e,t,n)}function si(e,t,n){if(n!=null){const r=V(n),i=e.Compare(t,ge(r))|0;if(r instanceof Me){const o=r;return i<0?Xu(si(e,t,Be(o)),ge(o),He(o)):i===0?n:Xu(Be(o),ge(o),si(e,t,He(o)))}else{const o=e.Compare(t,ge(r))|0;return o<0?jt(t,void 0,n,2):o===0?n:jt(t,n,void 0,2)}}else return Ht(t)}function qf(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=V(o),a=r.Compare(i,ge(s))|0;if(s instanceof Me){const l=s;if(a<0){e=r,t=i,n=Be(l);continue e}else{if(a===0)return!0;e=r,t=i,n=He(l);continue e}}else return a===0}else return!1}}function Yf(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=V(r);if(i instanceof Me){const o=i;Yf(n,Be(o)),n(ge(o)),e=n,t=He(o);continue e}else n(ge(i))}break}}class l1 extends Ce{constructor(t,n){super(),this.stack=t,this.started=n}}function Zf(e){e:for(;;){const t=e;if(Se(t))return ut();{const n=le(t),r=ke(t);if(n!=null){const i=V(n);if(i instanceof Me){const o=i;e=Ye([Be(o),Ht(ge(o)),He(o)],r);continue e}else return t}else{e=r;continue e}}}}function Ju(e){return new l1(Zf(me(e)),!1)}function u1(){throw new Error("Enumeration not started")}function c1(){throw new Error("Enumeration already started")}function Qu(e){if(e.started){const t=e.stack;if(Se(t))return c1();if(le(t)!=null){const n=V(le(t));return ge(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return u1()}function d1(e){if(e.started){const t=e.stack;if(Se(t))return!1;if(le(t)!=null){if(V(le(t))instanceof Me)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Zf(ke(t)),!Se(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!Se(e.stack)}function ec(e){let t=Ju(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Qu(t)},"System.Collections.IEnumerator.get_Current"(){return Qu(t)},"System.Collections.IEnumerator.MoveNext"(){return d1(t)},"System.Collections.IEnumerator.Reset"(){t=Ju(e)},Dispose(){}}}function f1(e,t,n){e:for(;;){const r=e,i=t,o=n;if(Se(i))return Se(o)?0:-1;if(Se(o))return 1;if(le(o)!=null)if(le(i)!=null){const s=V(le(i)),a=V(le(o));if(s instanceof Me){const l=s;if(Be(l)==null)if(a instanceof Me){const u=a;if(Be(u)==null){const f=r.Compare(ge(l),ge(u))|0;if(f!==0)return f|0;e=r,t=Yt(He(l),ke(i)),n=Yt(He(u),ke(o));continue e}else{let f,d,p,h,m;switch(Se(i)?Se(o)?f=2:le(o)!=null?(f=1,h=ke(o),m=V(le(o))):f=2:le(i)!=null?(f=0,d=ke(i),p=V(le(i))):Se(o)?f=2:le(o)!=null?(f=1,h=ke(o),m=V(le(o))):f=2,f){case 0:if(p instanceof Me){const w=p;e=r,t=Ye([Be(w),jt(ge(w),void 0,He(w),0)],d),n=o;continue e}else{e=r,t=Ye([void 0,Ht(ge(p))],d),n=o;continue e}case 1:if(m instanceof Me){const w=m;e=r,t=i,n=Ye([Be(w),jt(ge(w),void 0,He(w),0)],h);continue e}else{e=r,t=i,n=Ye([void 0,Ht(ge(m))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const u=r.Compare(ge(l),ge(a))|0;if(u!==0)return u|0;e=r,t=Yt(He(l),ke(i)),n=Yt(void 0,ke(o));continue e}else{let u,f,d,p,h;switch(Se(i)?Se(o)?u=2:le(o)!=null?(u=1,p=ke(o),h=V(le(o))):u=2:le(i)!=null?(u=0,f=ke(i),d=V(le(i))):Se(o)?u=2:le(o)!=null?(u=1,p=ke(o),h=V(le(o))):u=2,u){case 0:if(d instanceof Me){const m=d;e=r,t=Ye([Be(m),jt(ge(m),void 0,He(m),0)],f),n=o;continue e}else{e=r,t=Ye([void 0,Ht(ge(d))],f),n=o;continue e}case 1:if(h instanceof Me){const m=h;e=r,t=i,n=Ye([Be(m),jt(ge(m),void 0,He(m),0)],p);continue e}else{e=r,t=i,n=Ye([void 0,Ht(ge(h))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof Me){const l=a;if(Be(l)==null){const u=r.Compare(ge(s),ge(l))|0;if(u!==0)return u|0;e=r,t=Yt(void 0,ke(i)),n=Yt(He(l),ke(o));continue e}else{let u,f,d,p,h;switch(Se(i)?Se(o)?u=2:le(o)!=null?(u=1,p=ke(o),h=V(le(o))):u=2:le(i)!=null?(u=0,f=ke(i),d=V(le(i))):Se(o)?u=2:le(o)!=null?(u=1,p=ke(o),h=V(le(o))):u=2,u){case 0:if(d instanceof Me){const m=d;e=r,t=Ye([Be(m),jt(ge(m),void 0,He(m),0)],f),n=o;continue e}else{e=r,t=Ye([void 0,Ht(ge(d))],f),n=o;continue e}case 1:if(h instanceof Me){const m=h;e=r,t=i,n=Ye([Be(m),jt(ge(m),void 0,He(m),0)],p);continue e}else{e=r,t=i,n=Ye([void 0,Ht(ge(h))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(ge(s),ge(a))|0;if(l!==0)return l|0;e=r,t=ke(i),n=ke(o);continue e}}else{V(le(o));let s,a,l,u,f;switch(Se(i)?Se(o)?s=2:le(o)!=null?(s=1,u=ke(o),f=V(le(o))):s=2:le(i)!=null?(s=0,a=ke(i),l=V(le(i))):Se(o)?s=2:le(o)!=null?(s=1,u=ke(o),f=V(le(o))):s=2,s){case 0:if(l instanceof Me){const d=l;e=r,t=Ye([Be(d),jt(ge(d),void 0,He(d),0)],a),n=o;continue e}else{e=r,t=Ye([void 0,Ht(ge(l))],a),n=o;continue e}case 1:if(f instanceof Me){const d=f;e=r,t=i,n=Ye([Be(d),jt(ge(d),void 0,He(d),0)],u);continue e}else{e=r,t=i,n=Ye([void 0,Ht(ge(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(le(i)!=null){V(le(i));let s,a,l,u,f;switch(Se(i)?Se(o)?s=2:le(o)!=null?(s=1,u=ke(o),f=V(le(o))):s=2:le(i)!=null?(s=0,a=ke(i),l=V(le(i))):Se(o)?s=2:le(o)!=null?(s=1,u=ke(o),f=V(le(o))):s=2,s){case 0:if(l instanceof Me){const d=l;e=r,t=Ye([Be(d),jt(ge(d),void 0,He(d),0)],a),n=o;continue e}else{e=r,t=Ye([void 0,Ht(ge(l))],a),n=o;continue e}case 1:if(f instanceof Me){const d=f;e=r,t=i,n=Ye([Be(d),jt(ge(d),void 0,He(d),0)],u);continue e}else{e=r,t=i,n=Ye([void 0,Ht(ge(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=ke(i),n=ke(o);continue e}}}function tc(e,t,n){return t==null?n==null?0:-1:n==null?1:f1(e,me(t),me(n))|0}function m1(e,t,n){let r=n;Yf(i=>{St(t,r,i),r=r+1|0},e)}function h1(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){e=r,t=si(r,o["System.Collections.Generic.IEnumerator`1.get_Current"](),i),n=o;continue e}else return i}}function p1(e,t){return $s((n,r)=>si(e,r,n),void 0,t)}function g1(e,t){return Fn((n,r)=>si(e,r,n),void 0,t)}function Kf(e,t){if(dn(t))return p1(e,t);if(t instanceof Et)return g1(e,t);{const n=Ie(t);try{return h1(e,void 0,n)}finally{$e(n)}}}class Bl{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return v1(this)|0}Equals(t){let n;const r=this;return t instanceof Bl&&(n=t,tc(Kr(r),rn(r),rn(n))===0)}toString(){return"set ["+Ct("; ",Le(n=>et(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return tc(Kr(n),rn(n),rn(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 qf(Kr(n),t,rn(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){m1(rn(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return pa(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return pa(this)|0}GetEnumerator(){return ec(rn(this))}[Symbol.iterator](){return mi(Ie(this))}"System.Collections.IEnumerable.GetEnumerator"(){return ec(rn(this))}get size(){return pa(this)|0}add(t){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(t){throw new Error("Set cannot be mutated")}has(t){return Xf(this,t)}keys(){return Le(n=>n,this)}values(){return Le(n=>n,this)}entries(){return Le(n=>[n,n],this)}forEach(t,n){const r=this;Mr(i=>{t(i,i,r)},r)}}function Os(e,t){return new Bl(e,t)}function Kr(e){return e.comparer}function rn(e){return e.tree}function y1(e){return Os(e,void 0)}function w1(e,t){return Os(Kr(e),si(Kr(e),t,rn(e)))}function pa(e){return a1(rn(e))}function Xf(e,t){return qf(Kr(e),t,rn(e))}function v1(e){let t=0;const n=Ie(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+Xt(r)+631|0}}finally{$e(n)}return Math.abs(t)|0}function qa(e,t){return Xf(t,e)}function b1(e,t){return w1(t,e)}function _1(e){return y1(e)}function x1(e,t){return Os(t,Kf(t,e))}function C1(e,t){return Os(t,Kf(t,e))}function S1(){return ut()}function Ul(e){return Ct("/",e)}function E1(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+Ul(t),n])}function Jf(e,t,n){try{$e(n)}catch(r){e(["Error stopping subscription: "+Ul(t),r])}}function A1(e,t,n,r){try{return[n,r(t)]}catch(i){e(["Error starting subscription: "+Ul(n),i]);return}}function k1(e,t){as(n=>{Jf(e,n[0],n[1])},t)}function nc(e,t,n,r,i,o){return as(s=>{E1(e,s)},n),as(s=>{Jf(e,s[0],s[1])},r),mo(i,Og(s=>A1(e,t,s[0],s[1]),o))}function N1(){return[ut(),_1({Compare:vt}),ut()]}function T1(e,t,n,r,i){return qa(e,r)?[Yt(e,n),r,i]:[n,b1(e,r),Yt([e,t],i)]}function $1(e){return kg((t,n)=>T1(t[0],t[1],n[0],n[1],n[2]),e,N1())}const M1=ut();function rc(e,t){const n=x1(_r(s=>s[0],e),{Compare:vt}),r=$1(t),i=r[1],o=r[0];if(n.Equals(i))return[o,ut(),e,ut()];{const s=Dg(a=>qa(a[0],i),e);return[o,s[1],s[0],kn(a=>!qa(a[0],n),r[2])]}}function I1(e){return new Qf(0,[e])}function D1(e){return new Qf(1,[e])}class Qf extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function O1(e){return I1(e)}function R1(e){return D1(e)}class F1{constructor(t,n,r){this.OnNext=t,this.OnError=n||(i=>{}),this.OnCompleted=r||(()=>{})}}function P1(e,t){t.Subscribe(new F1(e))}class L1{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 H1(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const i=n===void 0?t:(r=t,n);this.delegates.forEach(o=>{o(r,i)})}}let V1=class extends L1{};function H1(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(i,o)=>n.OnNext(o);return e(r),{Dispose(){t(r)}}}}}class j1{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 V1}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 B1(e,t){console.error(ht(e),t)}function U1(e,t){let n,r=new j1(e);r.AutoReset=!1,n=r,P1(t,n.Elapsed()),n.Enabled=!0,n.Start()}class W1{constructor(t=!1){this._id=0,this._cancelled=t,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,t]of this._listeners)t()}}addListener(t){const n=this._id;return this._listeners.set(this._id++,t),n}removeListener(t){return this._listeners.delete(t)}register(t,n){const r=this,i=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(i)}}}Dispose(){}}class Rs extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Rs.prototype)}}class Wl{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>Wl.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function Nn(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new Rs);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(ts(n))}});else try{e(t)}catch(n){t.onError(ts(n))}}}function G1(e,t){return Nn(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(i){n.onError(ts(i))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function z1(e){return Nn(t=>t.onSuccess(e))}class q1{Bind(t,n){return G1(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return Nn(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let i=r.next();return this.While(()=>!i.done,this.Delay(()=>{const o=n(i.value);return i=r.next(),o}))}Return(t){return z1(t)}ReturnFrom(t){return t}TryFinally(t,n){return Nn(r=>{t({onSuccess:i=>{n(),r.onSuccess(i)},onError:i=>{n(),r.onError(i)},onCancel:i=>{n(),r.onCancel(i)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return Nn(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:i=>{try{n(i)(r)}catch(o){r.onError(ts(o))}}})})}Using(t,n){return this.TryFinally(n(t),()=>t.Dispose())}While(t,n){return t()?this.Bind(n,()=>this.While(t,n)):this.Return(void 0)}Zero(){return Nn(t=>t.onSuccess(void 0))}}const Ne=new q1;function ga(e){}const Y1=new W1;function Z1(e){return Nn(t=>{e({onSuccess:n=>t.onSuccess(O1(n)),onError:n=>t.onSuccess(R1(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function K1(e){return Nn(t=>e([t.onSuccess,t.onError,t.onCancel]))}function X1(e){return Nn(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new Rs)})})}function J1(e,t){return Q1(e,t)}function em(e,t){return J1(e,t)}function Q1(e,t,n,r,i){typeof t!="function"&&(i=t,t=void 0);const o=new Wl;e({onSuccess:t||ga,onError:ga,onCancel:ga,cancelToken:i||Y1,trampoline:o})}function ic(e,t,n){as(r=>{try{r(t)}catch(i){e(i)}},n)}function Z(){return ut()}function tm(e){return me(e)}function nm(e,t,n,r){return me(i=>{e(Ne.Delay(()=>Ne.Bind(Z1(t(n)),o=>{const s=o;return s.tag===0&&i(r(s.fields[0])),Ne.Zero()})))})}function rm(e){U1(1,t=>{em(e)})}function ey(e,t,n,r){const i=vt(e,n)|0;if(i===0)throw new Error("The step of a range cannot be zero");const o=i>0;return s=>{const a=vt(s,t)|0;return o&&a<=0||!o&&a>=0?[s,r(s,e)]:void 0}}function ty(e,t,n,r,i){const o=ey(t,n,r,i);return N(()=>Xg(o,e))}function Gl(e,t,n){return ty(e,t,n,0,(r,i)=>r+i)}class Xr extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class ny{constructor(t){this.state=new Xr(0,[uo(new Array(Wu(t,10)),0,Wu(t,10),null),0])}}function ry(e){return new ny(e)}function oc(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,i=t.fields[0],o=(r+1)%i.length|0;return o===n?e.state=new Xr(0,[i,n]):e.state=new Xr(1,[i,n,o]),ht(we(r,i))}else return}function iy(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,i=n.fields[2]|0,o=n.fields[0];St(o,r,t);const s=(r+1)%o.length|0;s===i?e.state=new Xr(1,[oy(e,i,o),o.length,0]):e.state=new Xr(1,[o,s,i])}else{const r=n.fields[1]|0,i=n.fields[0];St(i,r,t);const o=(r+1)%i.length|0;e.state=new Xr(1,[i,o,r])}}function oy(e,t,n){return Array.from(N(()=>j(r1(t,n),N(()=>j(i1(t,n),N(()=>Ds(r=>A(Ae()),Gl(0,1,n.length))))))))}class zl extends Ce{constructor(t,n,r,i,o,s,a){super(),this.init=t,this.update=n,this.subscribe=r,this.view=i,this.setState=o,this.onError=s,this.termination=a}}function Dr(e,t,n){return new zl(e,t,r=>S1(),n,Qe(r=>{const i=lr(n)(r);return o=>{i(o)}}),r=>{B1(r[0],r[1])},[r=>!1,r=>{}])}function sy(e,t){return new zl(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function ay(e){return e.init}function ly(e,t,n,r,i,o,s){const a=lr(e)(s.init),l=da(t)(lr(s.update)),u=da(n)(lr(s.view)),f=da(r)(lr(s.setState));return new zl(a,Qe(l),lr(i)(s.subscribe),Qe(u),Qe(f),s.onError,o(s.termination))}function uy(e,t,n){let r;const i=n.init(t),o=i[0],s=n.subscribe(o),a=n.termination,l=ry(10);let u=!1,f=o,d=M1,p=!1;const h=b=>{p||(iy(l,b),u||(u=!0,w(),u=!1))},m=lr(e)(h),w=()=>{let b,x=oc(l);for(;!p&&x!=null;){const C=V(x);if(a[0](C))k1(n.onError,d),a[1](f),p=!0;else{const E=n.update(C,f),$=E[0],I=n.subscribe($);n.setState($,m),ic(P=>{n.onError([wr(Dn("Error handling the message: %A"))(C),P])},m,E[1]),f=$,d=(b=rc(d,I),nc(n.onError,m,b[0],b[1],b[2],b[3])),x=oc(l)}}};u=!0,n.setState(o,m),ic(b=>{n.onError([wr(Dn("Error intitializing:")),b])},m,i[1]),d=(r=rc(d,s),nc(n.onError,m,r[0],r[1],r[2],r[3])),w(),u=!1}function cy(e,t){uy(Qe(n=>n),e,t)}function dy(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var ya={exports:{}},wa={};const fy=dy(Jo);/**
|
|
4
|
+
* @license React
|
|
5
|
+
* use-sync-external-store-shim.production.min.js
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the MIT license found in the
|
|
10
|
+
* LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/var sc;function my(){if(sc)return wa;sc=1;var e=fy;function t(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,o=e.useLayoutEffect,s=e.useDebugValue;function a(d,p){var h=p(),m=r({inst:{value:h,getSnapshot:p}}),w=m[0].inst,b=m[1];return o(function(){w.value=h,w.getSnapshot=p,l(w)&&b({inst:w})},[d,h,p]),i(function(){return l(w)&&b({inst:w}),d(function(){l(w)&&b({inst:w})})},[d]),s(h),h}function l(d){var p=d.getSnapshot;d=d.value;try{var h=p();return!n(d,h)}catch{return!0}}function u(d,p){return p()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:a;return wa.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,wa}var ac;function hy(){return ac||(ac=1,ya.exports=my()),ya.exports}var py=hy();class gy{constructor(t,n,r){this.arg=n,this.dependencies=r;const i=t(),o=[];this.finalDispatch=void 0;let s;const a=ay(i)(this.arg);let l=a[0],u=a[1];s=[[l,f=>{const d=this.finalDispatch;d==null?o.push(f):d(f)},!1,o],u],this.state=s[0],this.cmd=s[1],this.subscribe=f=>{let d=!1;const p=ja(this.state[0]);return cy(this.arg,sy((h,m)=>{const w=this.state;this.finalDispatch=m,this.state=[h,w[1],!0,o],h!==w[0]&&f()},ly((h,m)=>{const w=this.cmd;return this.cmd=Z(),[this.state[0],w]},(h,m,w)=>h(m)(this.state[0]),Ua(h=>h),Ua(h=>h),Qe(h=>h),h=>[m=>h[0](m)?!0:p&&d,m=>{const w=m;ja(w)?$e(w):h[1](m)}],i))),()=>{d=!0}}}}function lc(e,t,n){return new gy(e,t,n)}function yy(e){return e.state}function wy(e){return e.subscribe}function vy(e,t,n){return ne(e.arg,t)?!ne(e.dependencies,n):!0}function Or(e,t,n){const r=ye(()=>lc(e,t,n)),i=r[0];vy(i,t,n)&&r[1](lc(e,t,n));const o=py.useSyncExternalStore(wy(i),()=>yy(i)),s=o[2],a=o[3],l=o[1];return De(()=>{if(s&&a.length>0){let u=Ie(a);try{for(;u["System.Collections.IEnumerator.MoveNext"]();){const f=u["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{l(f)})}}finally{$e(u)}kp(a)}},[s,a]),[o[0],l]}class by extends Ce{constructor(t,n){super(),this.Name=t,this.Email=n}}function ql(){return Qt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.UserDto",[],by,()=>[["Name",$n],["Email",Yr($n)]])}class _y extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Profiles","Tax"]}}function im(){return yf("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.ImportStageDto",[],_y,()=>[[],[]])}class xy extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Invite","RevokeInvite"]}}function Cy(){return yf("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.BenefitsRequestTypeDto",[],xy,()=>[[],[]])}class Sy extends Ce{constructor(t,n,r,i){super(),this.User=t,this.ProfileCount=n|0,this.RequestType=r,this.RequestedAt=i}}function Ey(){return Qt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.BenefitsRequestInfoDto",[],Sy,()=>[["User",ql()],["ProfileCount",Tt],["RequestType",Cy()],["RequestedAt",zn("System.DateTime")]])}class Ay extends Ce{constructor(t,n,r,i,o,s){super(),this.Stage=t,this.InputRowCount=n|0,this.StartTime=r,this.SucceededRowCount=i,this.FailedRowCount=o,this.RemainingRowCount=s}}function ky(){return Qt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.RunningStageDto",[],Ay,()=>[["Stage",im()],["InputRowCount",Tt],["StartTime",zn("System.DateTime")],["SucceededRowCount",Yr(Tt)],["FailedRowCount",Yr(Tt)],["RemainingRowCount",Yr(Tt)]])}class Ny extends Ce{constructor(t,n,r,i,o,s){super(),this.Stage=t,this.InputRowCount=n|0,this.SucceededRowCount=r|0,this.FailedRowCount=i|0,this.StartTime=o,this.StopTime=s}}function om(){return Qt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.CompletedStageDto",[],Ny,()=>[["Stage",im()],["InputRowCount",Tt],["SucceededRowCount",Tt],["FailedRowCount",Tt],["StartTime",zn("System.DateTime")],["StopTime",zn("System.DateTime")]])}class Ty extends Ce{constructor(t,n,r,i,o,s,a){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=i|0,this.CurrentStage=o,this.CompletedStages=s,this.StartTime=a}}function $y(){return Qt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.ActiveImportDto",[],Ty,()=>[["ImportId",Tt],["User",ql()],["Filename",$n],["NumberOfRecords",Tt],["CurrentStage",Yr(ky())],["CompletedStages",br(om())],["StartTime",zn("System.DateTime")]])}class My extends Ce{constructor(t,n,r,i,o,s,a,l){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=i|0,this.CompletedStages=o,this.BenefitsRequests=s,this.StartTime=a,this.StopTime=l}}function Iy(){return Qt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.PastImportDto",[],My,()=>[["ImportId",Tt],["User",ql()],["Filename",$n],["NumberOfRecords",Tt],["CompletedStages",br(om())],["BenefitsRequests",br(Ey())],["StartTime",zn("System.DateTime")],["StopTime",zn("System.DateTime")]])}class Dy extends Ce{constructor(t,n){super(),this.ActiveImport=t,this.ImportHistory=n}}function Oy(){return Qt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.AccountImportsDto",[],Dy,()=>[["ActiveImport",Yr($y())],["ImportHistory",br(Iy())]])}function Ry(e){return new M(0,[e])}function sm(e){return new M(1,[e])}class M extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function On(e,t){return t.tag===0?Ry(e(t.fields[0])):sm(t.fields[0])}function Fy(e,t){return t.tag===0?e(t.fields[0]):sm(t.fields[0])}class Ya extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Asc","Desc"]}}function Py(e){return e.tag===1?new Ya(0,[]):new Ya(1,[])}function Ly(e,t,n){return e.tag===1?Fg(t,n,{Compare:vt}):Rg(t,n,{Compare:vt})}class Fs extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Requested","Finished"]}}let Wo=class extends Ce{constructor(t){super(),this.View=t}},Go=class extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Loaded","Error"]}},am=class extends J{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["GetAccountImports"]}};function Vy(){return[new Wo(new Go(0,[])),me(e=>{e(new am(new Fs(0,[void 0])))})]}function Hy(e,t,n){return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new Wo(new Go(2,[t.fields[0].fields[0].fields[0]])),Z()]:[new Wo(new Go(1,[t.fields[0].fields[0].fields[0]])),Z()]:[new Wo(new Go(0,[])),nm(r=>{rm(r)},e,void 0,r=>new am(new Fs(1,[r])))]}class Yl extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class lm extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class Ps extends Ce{constructor(t,n,r,i,o,s,a,l){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=i,this.overridenMimeType=o,this.overridenResponseType=s,this.timeout=a,this.content=l}}class jr extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class um extends Ce{constructor(t,n,r,i,o,s){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=i,this.responseHeaders=o,this.content=s}}class cm{constructor(t,n){this.k=t,this.v=n}}function ai(e,t){return new cm(e,t)}function tt(e){return e.k}function lt(e){return e.v}class rt extends cm{constructor(t,n,r,i,o){super(t,n),this.left=r,this.right=i,this.h=o|0}}function gr(e,t,n,r,i){return new rt(e,t,n,r,i)}function Ke(e){return e.left}function Xe(e){return e.right}function Un(e){return e.h}function dm(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=V(r);if(i instanceof rt){const o=i;e=dm(n+1,Ke(o)),t=Xe(o);continue e}else return n+1|0}else return n|0}}function fm(e){return dm(0,e)}function Vt(e,t,n,r){let i,o,s;const a=e;if(a!=null){const d=V(a);s=d instanceof rt?(i=d,Un(i)):1}else s=0;let l;const u=r;if(u!=null){const d=V(u);l=d instanceof rt?(o=d,Un(o)):1}else l=0;const f=(s<l?l:s)|0;return f===0?ai(t,n):gr(t,n,e,r,f+1)}function ls(e,t,n,r){let i,o,s,a,l,u,f,d,p;const h=e;if(h!=null){const b=V(h);p=b instanceof rt?(i=b,Un(i)):1}else p=0;let m;const w=r;if(w!=null){const b=V(w);m=b instanceof rt?(o=b,Un(o)):1}else m=0;if(m>p+2){const b=V(r);if(b instanceof rt){const x=b;if(s=Ke(x),(s!=null?(a=V(s),a instanceof rt?(l=a,Un(l)):1):0)>p+1){const C=V(Ke(x));if(C instanceof rt){const E=C;return Vt(Vt(e,t,n,Ke(E)),tt(E),lt(E),Vt(Xe(E),tt(x),lt(x),Xe(x)))}else throw new Error("internal error: Map.rebalance")}else return Vt(Vt(e,t,n,Ke(x)),tt(x),lt(x),Xe(x))}else throw new Error("internal error: Map.rebalance")}else if(p>m+2){const b=V(e);if(b instanceof rt){const x=b;if(u=Xe(x),(u!=null?(f=V(u),f instanceof rt?(d=f,Un(d)):1):0)>m+1){const C=V(Xe(x));if(C instanceof rt){const E=C;return Vt(Vt(Ke(x),tt(x),lt(x),Ke(E)),tt(E),lt(E),Vt(Xe(E),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Vt(Ke(x),tt(x),lt(x),Vt(Xe(x),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Vt(e,t,n,r)}function li(e,t,n,r){if(r!=null){const i=V(r),o=e.Compare(t,tt(i))|0;if(i instanceof rt){const s=i;return o<0?ls(li(e,t,n,Ke(s)),tt(s),lt(s),Xe(s)):o===0?gr(t,n,Ke(s),Xe(s),Un(s)):ls(Ke(s),tt(s),lt(s),li(e,t,n,Xe(s)))}else return o<0?gr(t,n,void 0,r,2):o===0?ai(t,n):gr(t,n,r,void 0,2)}else return ai(t,n)}function Zl(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=V(o),a=r.Compare(i,tt(s))|0;if(a===0)return ht(lt(s));if(s instanceof rt){const l=s;e=r,t=i,n=a<0?Ke(l):Xe(l);continue e}else return}else return}}function jy(e,t,n){const r=Zl(e,t,n);if(r==null)throw new Error;return V(r)}function mm(e){if(e!=null){const t=V(e);if(t instanceof rt){const n=t;if(Ke(n)==null)return[tt(n),lt(n),Xe(n)];{const r=mm(Ke(n));return[r[0],r[1],Vt(r[2],tt(n),lt(n),Xe(n))]}}else return[tt(t),lt(t),void 0]}else throw new Error("internal error: Map.spliceOutSuccessor")}function Za(e,t,n,r){if(r!=null){const i=V(r);if(i instanceof rt){const o=i,s=e.Compare(t,tt(o))|0;if(s<0)return ls(Za(e,t,n,Ke(o)),tt(o),lt(o),Xe(o));if(s===0){const a=n(ht(lt(o)));if(a!=null)return gr(t,V(a),Ke(o),Xe(o),Un(o));if(Ke(o)==null)return Xe(o);if(Xe(o)==null)return Ke(o);{const l=mm(Xe(o));return Vt(Ke(o),l[0],l[1],l[2])}}else return ls(Ke(o),tt(o),lt(o),Za(e,t,n,Xe(o)))}else{const o=e.Compare(t,tt(i))|0;if(o<0){const s=n(void 0);return s!=null?gr(t,V(s),void 0,r,2):r}else if(o===0){const s=n(ht(lt(i)));return s!=null?ai(t,V(s)):void 0}else{const s=n(void 0);return s!=null?gr(t,V(s),r,void 0,2):r}}}else{const i=n(void 0);return i!=null?ai(t,V(i)):r}}function By(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=V(o),a=r.Compare(i,tt(s))|0;if(s instanceof rt){const l=s;if(a<0){e=r,t=i,n=Ke(l);continue e}else{if(a===0)return!0;e=r,t=i,n=Xe(l);continue e}}else return a===0}else return!1}}function hm(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=V(r);if(i instanceof rt){const o=i;hm(n,Ke(o)),n(tt(o),lt(o)),e=n,t=Xe(o);continue e}else n(tt(i),lt(i))}break}}function Uy(e,t){hm(e,t)}function pm(e,t,n){let r=n;Uy((i,o)=>{St(t,r,[i,o]),r=r+1|0},e)}function Wy(e){const t=fm(e)|0,n=uo(new Array(t),0,t,[null,null]);return pm(e,n,0),n}function Gy(e,t){return Fn((n,r)=>li(e,r[0],r[1],n),void 0,t)}function zy(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){const s=o["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=li(r,s[0],s[1],i),n=o;continue e}else return i}}function qy(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const i=we(r,t);n=li(e,i[0],i[1],n)}return n}function gm(e,t){if(dn(t))return qy(e,t);if(t instanceof Et)return Gy(e,t);{const n=Ie(t);try{return zy(e,void 0,n)}finally{$e(n)}}}class Yy extends Ce{constructor(t,n){super(),this.stack=t,this.started=n}}function ym(e){e:for(;;){const t=e;if(Se(t))return ut();{const n=ke(t),r=le(t);if(r!=null){const i=V(r);if(i instanceof rt){const o=i;e=Ye([Ke(o),ai(tt(o),lt(o)),Xe(o)],n);continue e}else return t}else{e=n;continue e}}}}function uc(e){return new Yy(ym(me(e)),!1)}function Zy(){throw new Error("enumeration not started")}function Ky(){throw new Error("enumeration already finished")}function cc(e){if(e.started){const t=e.stack;if(Se(t))return Ky();if(le(t)!=null){const n=V(le(t));if(n instanceof rt)throw new Error("Please report error: Map iterator, unexpected stack for current");return[tt(n),lt(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return Zy()}function Xy(e){if(e.started){const t=e.stack;if(Se(t))return!1;if(le(t)!=null){if(V(le(t))instanceof rt)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=ym(ke(t)),!Se(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!Se(e.stack)}function dc(e){let t=uc(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return cc(t)},"System.Collections.IEnumerator.get_Current"(){return cc(t)},"System.Collections.IEnumerator.MoveNext"(){return Xy(t)},"System.Collections.IEnumerator.Reset"(){t=uc(e)},Dispose(){}}}class us{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return nw(this)|0}Equals(t){const n=this;if(t instanceof us){const r=t,i=Ie(n);try{const o=Ie(r);try{const s=()=>{const a=i["System.Collections.IEnumerator.MoveNext"]();if(a===o["System.Collections.IEnumerator.MoveNext"]())if(a){const l=i["System.Collections.Generic.IEnumerator`1.get_Current"](),u=o["System.Collections.Generic.IEnumerator`1.get_Current"]();return ne(l[0],u[0])&&ne(l[1],u[1])?s():!1}else return!0;else return!1};return s()}finally{$e(o)}}finally{$e(i)}}else return!1}toString(){return"map ["+Ct("; ",Le(n=>Il("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return dc(this.tree)}[Symbol.iterator](){return mi(Ie(this))}"System.Collections.IEnumerable.GetEnumerator"(){return dc(this.tree)}CompareTo(t){const n=this;if(t instanceof us)return Qg((i,o)=>{const s=n.comparer.Compare(i[0],o[0])|0;return(s!==0?s:vt(i[1],o[1]))|0},n,t)|0;throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return fc(n,t[0])&&ne(xr(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){pm(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return va(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return va(this)|0}get size(){return va(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return Le(n=>[n[0],n[1]],this)}get(t){return xr(this,t)}has(t){return fc(this,t)}keys(){return Le(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return Le(n=>n[1],this)}forEach(t,n){const r=this;Mr(i=>{t(i[1],i[0],r)},r)}}function po(e,t){return new us(e,t)}function Jy(e){return po(e,void 0)}function Qy(e,t,n){return po(e.comparer,li(e.comparer,t,n,e.tree))}function ew(e,t,n){return po(e.comparer,Za(e.comparer,t,n,e.tree))}function xr(e,t){return jy(e.comparer,t,e.tree)}function va(e){return fm(e.tree)}function fc(e,t){return By(e.comparer,t,e.tree)}function tw(e,t,n){const r=Zl(e.comparer,t,e.tree);if(r==null)return!1;{const i=V(r);return n.contents=i,!0}}function mc(e){return Ge(t=>t[1],Wy(e.tree))}function mr(e,t){return Zl(e.comparer,t,e.tree)}function nw(e){const t=(i,o)=>(i<<1)+o+631;let n=0;const r=Ie(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const i=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,Xt(i[0]))|0,n=t(n,Xt(i[1]))|0}}finally{$e(r)}return n|0}function wm(e,t,n){return Qy(n,e,t)}function Mo(e,t,n){return ew(n,e,t)}function vm(e,t){return mr(t,e)}function rw(e){return Le(t=>[t[0],t[1]],e)}function Jr(e,t){return po(t,gm(t,e))}function iw(e,t){return po(t,gm(t,e))}function Kl(e){return Jy(e)}const rr=new Ps("",new Yl(0,[]),ut(),!1,void 0,void 0,void 0,new lm(0,[]));new um(0,"","","",Kl({Compare:$r}),new jr(0,[""]));function hc(e,t){return Dl(t)?new Array(0):ig(t,[e],void 0,0)}function ow(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 bm(e){return new Ps(e,rr.method,rr.headers,rr.withCredentials,rr.overridenMimeType,rr.overridenResponseType,rr.timeout,rr.content)}function _m(e,t){return new Ps(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function sw(e,t){return new Ps(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function pc(e){return K1(t=>{const n=new XMLHttpRequest;n.open(ow(e.method),e.url),n.onreadystatechange=()=>{let l,u,f,d,p,h,m;n.readyState===4&&t[0]((l=(u=n.responseType,u===""||u==="text"?n.responseText:""),f=n.status|0,d=n.responseType,p=(h=n.responseType,h===""?new jr(0,[n.responseText]):h==="text"?new jr(0,[n.responseText]):h==="arraybuffer"?new jr(2,[n.response]):h==="blob"?new jr(1,[n.response]):new jr(3,[n.response])),m=iw(Ut(w=>{const b=y(hc(":",w));if(!Se(b))return[le(b).toLocaleLowerCase(),Ct(":",ke(b)).trim()]},hc(`\r
|
|
12
|
+
`,n.getAllResponseHeaders())),{Compare:$r}),new um(f,l,d,n.responseURL,m,p)))};const r=Ie(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const l=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(l.fields[0],l.fields[1])}}finally{$e(r)}n.withCredentials=e.withCredentials;const i=e.overridenMimeType;if(i!=null){const l=i;n.overrideMimeType(l)}const o=e.overridenResponseType;if(o!=null)switch(o.tag){case 1:{n.responseType="blob";break}case 2:{n.responseType="arraybuffer";break}default:n.responseType="text"}const s=e.timeout;if(s!=null){const l=s|0;n.timeout=l|0}const a=e.content;switch(a.tag){case 1:{n.send(ht(a.fields[0]));break}case 3:{n.send(ht(a.fields[0]));break}case 2:{n.send(ht(a.fields[0]));break}default:n.send()}})}class oe extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Xi extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function gc(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function xm(e,t){switch(e.tag){case 2:return Ml(gc(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return gc(t)}}const aw=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,yc=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,lw=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function uw(e){function t(r){return r.replace(yc,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(aw.test(n))return og(n,"{","}","(",")");if(yc.test(n))return t(n);if(lw.test(n))return t(n.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}function cw(e,t){try{return t.contents=uw(e),!0}catch{return!1}}var Ka;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(Ka||(Ka={}));function dw(e,t){const[,n,r,i]=e;return{sign:n||"",prefix:r||"",digits:i,radix:t}}function wc(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 fw(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 mw(e,t){if(t&Ka.AllowHexSpecifier)return 16;switch(e){case"0b":case"0B":return 2;case"0o":case"0O":return 8;case"0x":case"0X":return 16;default:return 10}}function hw(e,t,n){const i=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(i!=null){const[,,o,s]=i;if(n=n||mw(o,t),!fw(n).test(s))return dw(i,n)}return null}function pw(e,t,n,r,i){const o=hw(e,t,i);if(o!=null){let s=Number.parseInt(o.sign+o.digits,o.radix);if(!Number.isNaN(s)){const[a,l]=wc(!0,r);!n&&o.radix!==10&&s>=a&&s<=l&&(s=s<<32-r>>32-r);const[u,f]=wc(n,r);if(s>=u&&s<=f)return s}}throw new Error(`The input string ${e} was not in a correct format.`)}function wi(e,t,n,r,i){try{return i.contents=pw(e,t,n,r),!0}catch{return!1}}function Cm(e,t){gw(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function gw(e){if(e!=null&&e!==0){if(e%6e4!==0)throw new Error("Offset must be specified in whole minutes.");if(Math.abs(e/36e5)>14)throw new Error("Offset must be within plus or minus 14 hours.")}}function yw(){return Cm(-621355968e5,0)}function ww(e){const[t,n]=lf(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return Cm(t.getTime(),r)}function vw(e,t){try{return t.contents=ww(e),!0}catch{return!1}}function go(e){return e<0?Math.ceil(e):Math.floor(e)}function vc(e=0,t=0,n=0,r=0,i=0){switch(arguments.length){case 1:return bw(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],i=0;break}return e*864e5+t*36e5+n*6e4+r*1e3+i}function bw(e){return Number(BigInt(e)/10000n)}function _w(e){return go(e/864e5)}function xw(e){return go(e%864e5/36e5)}function Cw(e){return go(e%36e5/6e4)}function Sw(e){return go(e%6e4/1e3)}function Ew(e){return go(e%1e3)}function Aw(e,t="c",n){if(["c","g","G"].indexOf(t)===-1)throw new Error("Custom formats are not supported");const r=Math.abs(_w(e)),i=Math.abs(xw(e)),o=Math.abs(Cw(e)),s=Math.abs(Sw(e)),a=Math.abs(Ew(e));return`${e<0?"-":""}${r===0&&(t==="c"||t==="g")?"":t==="c"?r+".":r+":"}${t==="g"?i:Pe(i,2)}:${Pe(o,2)}:${Pe(s,2)}${a===0&&(t==="c"||t==="g")?"":t==="g"?"."+Pe(a,3):"."+wp(a,3,7)}`}function kw(e){const t=e.search("\\."),n=e.search("\\:");if(t===-1&&n===-1){const r=parseInt(e,0);if(isNaN(r))throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`);return vc(r,0,0,0,0)}if(n>0){const r=/^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(e);if(r!=null&&r[4]!=null&&r[5]!=null){let i=0,o=0,s=0;const a=r[1]!=null&&r[1]==="-"?-1:1,l=+r[4],u=+r[5];if(r[3]!=null&&(i=+r[3]),r[7]!=null&&(s=+r[7]),r[8]!=null)switch(r[8].length){case 1:o=+r[8]*100;break;case 2:o=+r[8]*10;break;case 3:o=+r[8];break;case 4:o=+r[8]/10;break;case 5:o=+r[8]/100;break;case 6:o=+r[8]/1e3;break;case 7:o=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return a*vc(i,l,u,s,o)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function Nw(e,t){try{return t.contents=kw(e),!0}catch{return!1}}function $i(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
|
|
5
13
|
`:" ")+(JSON.stringify(t,null,4)+"")}catch{return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?`
|
|
6
|
-
`:" ")}}function
|
|
7
|
-
Reason: `+t.fields[2]:t.tag===3
|
|
14
|
+
`:" ")}}function Tw(e,t){const n=t.tag===2?$i(t.fields[0],t.fields[1],!0):t.tag===1?$i(t.fields[0],t.fields[1],!1)+`
|
|
15
|
+
Reason: `+t.fields[2]:t.tag===3?$i(t.fields[0],t.fields[1],!0):t.tag===4?$i(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
|
|
8
16
|
`+(JSON.stringify(t.fields[1],null,4)+""):t.tag===7?`The following errors were found:
|
|
9
17
|
|
|
10
|
-
`+
|
|
18
|
+
`+Ct(`
|
|
11
19
|
|
|
12
|
-
`,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]
|
|
20
|
+
`,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:$i(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function Sm(e,t,n){const r=t(e,n);if(r.tag===1){const i=r.fields[0];return new M(1,[Tw(i[0],i[1])])}else return new M(0,[r.fields[0]])}function Em(e,t){try{return Sm("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new M(1,["Given an invalid JSON: "+n.message]);throw n}}function Am(e,t){return typeof t=="string"?new M(0,[t]):new M(1,[[e,new oe(0,["a string",t])]])}function $w(e,t){if(typeof t=="string"){const n=t;return n.length===1?new M(0,[n[0]]):new M(1,[[e,new oe(0,["a single character string",t])]])}else return new M(1,[[e,new oe(0,["a char",t])]])}function Mw(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[cw(t,new yt(()=>r,i=>{r=i})),r],n[0]?new M(0,[n[1]]):new M(1,[[e,new oe(0,["a guid",t])]])}else return new M(1,[[e,new oe(0,["a guid",t])]])}function Iw(e,t){return t==null?new M(0,[void 0]):new M(1,[[e,new oe(0,["null",t])]])}const bc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?-128<=i&&i<=127?new M(0,[(i+128&255)-128]):new M(1,[[n,new oe(1,["a sbyte",i,"Value was either too large or too small for a sbyte"])]]):new M(1,[[n,new oe(1,["a sbyte",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[wi(r,511,!1,8,new yt(()=>o,s=>{o=s|0})),o],i[0]?new M(0,[i[1]]):new M(1,[[n,new oe(0,["a sbyte",r])]])}else return new M(1,[[n,new oe(0,["a sbyte",r])]])},_c=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=255?new M(0,[i&255]):new M(1,[[n,new oe(1,["a byte",i,"Value was either too large or too small for a byte"])]]):new M(1,[[n,new oe(1,["a byte",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[wi(r,511,!0,8,new yt(()=>o,s=>{o=s})),o],i[0]?new M(0,[i[1]]):new M(1,[[n,new oe(0,["a byte",r])]])}else return new M(1,[[n,new oe(0,["a byte",r])]])},xc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?-32768<=i&&i<=32767?new M(0,[(i+32768&65535)-32768]):new M(1,[[n,new oe(1,["an int16",i,"Value was either too large or too small for an int16"])]]):new M(1,[[n,new oe(1,["an int16",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[wi(r,511,!1,16,new yt(()=>o,s=>{o=s|0})),o],i[0]?new M(0,[i[1]]):new M(1,[[n,new oe(0,["an int16",r])]])}else return new M(1,[[n,new oe(0,["an int16",r])]])},Cc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=65535?new M(0,[i&65535]):new M(1,[[n,new oe(1,["an uint16",i,"Value was either too large or too small for an uint16"])]]):new M(1,[[n,new oe(1,["an uint16",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[wi(r,511,!0,16,new yt(()=>o,s=>{o=s})),o],i[0]?new M(0,[i[1]]):new M(1,[[n,new oe(0,["an uint16",r])]])}else return new M(1,[[n,new oe(0,["an uint16",r])]])},Sc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?-2147483648<=i&&i<=2147483647?new M(0,[~~i]):new M(1,[[n,new oe(1,["an int",i,"Value was either too large or too small for an int"])]]):new M(1,[[n,new oe(1,["an int",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[wi(r,511,!1,32,new yt(()=>o,s=>{o=s|0})),o],i[0]?new M(0,[i[1]]):new M(1,[[n,new oe(0,["an int",r])]])}else return new M(1,[[n,new oe(0,["an int",r])]])},Ec=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=4294967295?new M(0,[i>>>0]):new M(1,[[n,new oe(1,["an uint32",i,"Value was either too large or too small for an uint32"])]]):new M(1,[[n,new oe(1,["an uint32",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[wi(r,511,!0,32,new yt(()=>o,s=>{o=s})),o],i[0]?new M(0,[i[1]]):new M(1,[[n,new oe(0,["an uint32",r])]])}else return new M(1,[[n,new oe(0,["an uint32",r])]])};function Dw(e,t){return typeof t=="boolean"?new M(0,[t]):new M(1,[[e,new oe(0,["a boolean",t])]])}function Ow(e,t){return typeof t=="number"?new M(0,[t]):new M(1,[[e,new oe(0,["a float",t])]])}function Rw(e,t){return typeof t=="number"?new M(0,[t]):new M(1,[[e,new oe(0,["a float32",t])]])}function Fw(e,t){if(typeof t=="string"){let n,r=Yp();return n=[Kp(t,new yt(()=>r,i=>{r=i})),r],n[0]?new M(0,[Xp(n[1])]):new M(1,[[e,new oe(0,["a datetime",t])]])}else return new M(1,[[e,new oe(0,["a datetime",t])]])}function Pw(e,t){if(typeof t=="string"){let n,r=yw();return n=[vw(t,new yt(()=>r,i=>{r=i})),r],n[0]?new M(0,[n[1]]):new M(1,[[e,new oe(0,["a datetimeoffset",t])]])}else return new M(1,[[e,new oe(0,["a datetime",t])]])}function Lw(e,t){if(typeof t=="string"){let n,r=0;return n=[Nw(t,new yt(()=>r,i=>{r=i})),r],n[0]?new M(0,[n[1]]):new M(1,[[e,new oe(0,["a timespan",t])]])}else return new M(1,[[e,new oe(0,["a timespan",t])]])}function Ac(e,t,n,r){let i;const o=n+".["+cn(e)+"]";if(Array.isArray(r)){const s=r;return e<s.length?t(o,we(e,s)):new M(1,[[o,new oe(5,["a longer array. Need index `"+cn(e)+"` but there are only `"+(i=s.length,cn(i))+"` entries",r])]])}else return new M(1,[[o,new oe(0,["an array",r])]])}function Vw(e,t,n){return n==null?new M(0,[void 0]):On(ht,e(t,n))}function kc(e,t,n){if(Array.isArray(n)){let r=-1;return On(Fl,$s((i,o)=>{if(r=r+1|0,i.tag===0){const s=e(t+".["+cn(r)+"]",o);return s.tag===0?new M(0,[Yt(s.fields[0],i.fields[0])]):new M(1,[s.fields[0]])}else return i},new M(0,[ut()]),n))}else return new M(1,[[t,new oe(0,["a list",n])]])}function Hw(e,t,n){if(Array.isArray(n)){let r=-1;return On(n1,$s((i,o)=>{if(r=r+1|0,i.tag===0){const s=e(t+".["+cn(r)+"]",o);return s.tag===0?new M(0,[j([s.fields[0]],i.fields[0])]):new M(1,[s.fields[0]])}else return i},new M(0,[[]]),n))}else return new M(1,[[t,new oe(0,["a seq",n])]])}function Nc(e,t,n){if(Array.isArray(n)){let r=-1;const i=n;return $s((o,s)=>{if(r=r+1|0,o.tag===0){const a=o.fields[0],l=e(t+".["+cn(r)+"]",s);return l.tag===0?(St(a,r,l.fields[0]),new M(0,[a])):new M(1,[l.fields[0]])}else return o},new M(0,[uo(new Array(i.length),0,i.length,null)]),i)}else return new M(1,[[t,new oe(0,["an array",n])]])}function jw(e,t,n){return((i,o)=>{e:for(;;){const s=i,a=o;if(Se(s))return new M(1,[[t,new oe(7,[a])]]);{const l=Sm(t,Qe(le(s)),n);if(l.tag===1){i=ke(s),o=mo(a,me(l.fields[0]));continue e}else return new M(0,[l.fields[0]])}}})(e,ut())}function Bw(e,t,n){return new M(0,[e])}function Tc(e,t,n,r){const i=t(n,r);return i.tag===0?e(i.fields[0],n,r):new M(1,[i.fields[0]])}function Uw(e,t,n,r){const i=t(n,r);return i.tag===1?new M(1,[i.fields[0]]):new M(0,[e(i.fields[0])])}function Ww(e,t){let n;const r=e;return n=i=>o=>Ac(0,r,i,o),i=>o=>Tc(Ua(s=>{let a;const l=t;return a=u=>f=>Ac(1,l,u,f),u=>f=>Tc((d,p,h)=>Bw([s,d]),Qe(a),u,f)}),Qe(n),i,o)}function Gw(e){return Jr(e,{Compare:vt})}function zw(e){return C1(e,{Compare:vt})}function qw(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?If((r,i)=>{const o=r[0];return i.tag===0?On(s=>Yt(s,i.fields[0]),r[1](t+"."+o)(n[o])):i},e,new M(0,[ut()])):new M(1,[[t,new oe(0,["an object",n])]])}function Yw(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?ho((i,o)=>{if(i.tag===0){const s=e(n,o);if(s.tag===0){const a=t(n+"."+o,r[o]);return a.tag===0?new M(0,[Yt([s.fields[0],a.fields[0]],i.fields[0])]):new M(1,[a.fields[0]])}else return new M(1,[s.fields[0]])}else return i},new M(0,[ut()]),Object.keys(r)):new M(1,[[n,new oe(0,["an object",r])]])}function km(e,t,n,r){let i;const o=t.length+e|0;if(o!==r.length)return new M(1,[[n,new oe(6,[(i=r.length|0,wr(Dn("Expected array of length %i but got %i"))(o)(i))])]]);{let s=new M(0,[ut()]);for(let a=e;a<=r.length-1;a++)if(s.tag===0){const l=s.fields[0],u=wr(Dn("%s[%i]"))(n)(a),f=we(a-e,t),d=we(a,r);s=On(p=>Yt(p,l),f(u)(d))}return On(Fl,s)}}function $c(e,t,n,r,i,o){const s=Ts(a=>Zr(a)===r,xf(n));if(s!=null){const a=s,l=Ge(u=>on(e,t,!1,u[1]),Af(a));return On(u=>hg(a,er(u)),l.length===0&&o.length<=1?new M(0,[ut()]):km(1,l,i,o))}else return new M(1,[[i,new oe(6,["Cannot find case "+r+" in "+We(n)])]])}function Mc(e,t,n,r){let i;const o=new yt(Ae());let s;const a=We(r);s=a===""?e:wm(a,o,e);let l;if(Ef(r)){const u=Ge(f=>[xm(t,Zr(f)),on(s,t,!1,f[1])],Ki(r));l=f=>d=>On(p=>pg(r,er(p)),qw(u,f,d))}else if(Sf(r))l=u=>f=>{if(typeof f=="string")return $c(s,t,r,f,u,[]);if(Array.isArray(f)){const d=f;return Fy(p=>$c(s,t,r,p,u,d),Am(u+"[0]",we(0,d)))}else return new M(1,[[u,new oe(0,["a string or array",f])]])};else if(n)l=u=>f=>new M(1,[[u,new oe(2,["an extra coder for "+We(r),f])]]);else throw new Error((i=We(r),wr(Dn(`Cannot generate auto decoder for %s. Please pass an extra decoder.
|
|
13
21
|
|
|
14
|
-
Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(
|
|
22
|
+
Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(i)));return o.contents=l,l}function on(e,t,n,r){let i,o,s,a;const l=We(r),u=vm(l,e);if(u==null)if(wf(r)){const f=on(e,t,!1,lo(r));return d=>p=>Nc(Qe(f),d,p)}else if(Ol(r))switch(We(_f(r))){case"System.SByte":return d=>p=>{const h=r,m=d,w=p,b=bc(m)(w);if(b.tag===1)return new M(1,[b.fields[0]]);{const x=b.fields[0]|0;return Pr(x,Rr(h),{Equals:(C,E)=>C===E,GetHashCode:sn})?new M(0,[Fr(h,x.toString())]):new M(1,[[m,new oe(1,[We(h),w,"Unkown value provided for the enum"])]])}};case"System.Byte":return d=>p=>{const h=r,m=d,w=p,b=_c(m)(w);if(b.tag===1)return new M(1,[b.fields[0]]);{const x=b.fields[0];return Pr(x,Rr(h),{Equals:(C,E)=>C===E,GetHashCode:sn})?new M(0,[Fr(h,x.toString())]):new M(1,[[m,new oe(1,[We(h),w,"Unkown value provided for the enum"])]])}};case"System.Int16":return d=>p=>{const h=r,m=d,w=p,b=xc(m)(w);if(b.tag===1)return new M(1,[b.fields[0]]);{const x=b.fields[0]|0;return Pr(x,Rr(h),{Equals:(C,E)=>C===E,GetHashCode:sn})?new M(0,[Fr(h,vp(x))]):new M(1,[[m,new oe(1,[We(h),w,"Unkown value provided for the enum"])]])}};case"System.UInt16":return d=>p=>{const h=r,m=d,w=p,b=Cc(m)(w);if(b.tag===1)return new M(1,[b.fields[0]]);{const x=b.fields[0];return Pr(x,Rr(h),{Equals:(C,E)=>C===E,GetHashCode:sn})?new M(0,[Fr(h,x.toString())]):new M(1,[[m,new oe(1,[We(h),w,"Unkown value provided for the enum"])]])}};case"System.Int32":return d=>p=>{const h=r,m=d,w=p,b=Sc(m)(w);if(b.tag===1)return new M(1,[b.fields[0]]);{const x=b.fields[0]|0;return Pr(x,Rr(h),{Equals:(C,E)=>C===E,GetHashCode:sn})?new M(0,[Fr(h,cn(x))]):new M(1,[[m,new oe(1,[We(h),w,"Unkown value provided for the enum"])]])}};case"System.UInt32":return d=>p=>{const h=r,m=d,w=p,b=Ec(m)(w);if(b.tag===1)return new M(1,[b.fields[0]]);{const x=b.fields[0];return Pr(x,Rr(h),{Equals:(C,E)=>C===E,GetHashCode:sn})?new M(0,[Fr(h,x.toString())]):new M(1,[[m,new oe(1,[We(h),w,"Unkown value provided for the enum"])]])}};default:{const d=We(r),p=df(Dn(`Cannot generate auto decoder for %s.
|
|
15
23
|
Thoth.Json.Net only support the following enum types:
|
|
16
24
|
- sbyte
|
|
17
25
|
- byte
|
|
@@ -20,18 +28,40 @@ Thoth.Json.Net only support the following enum types:
|
|
|
20
28
|
- int
|
|
21
29
|
- uint32
|
|
22
30
|
If you can't use one of these types, please pass an extra decoder.
|
|
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
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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(`
|
|
31
|
+
`))(d);return h=>p(h)}}else if(vf(r))if(Rl(r)){const f=Ge(d=>on(e,t,!1,d),Cf(r));return d=>p=>Array.isArray(p)?On(h=>gg(er(h)),km(0,f,d,p)):new M(1,[[d,new oe(0,["an array",p])]])}else switch(We(bf(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return i=on(e,t,!0,we(0,Bt(r))),d=>p=>Vw(Qe(i),d,p);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return o=on(e,t,!1,we(0,Bt(r))),d=>p=>kc(Qe(o),d,p);case"System.Collections.Generic.IEnumerable`1[System.Object]":return s=on(e,t,!1,we(0,Bt(r))),d=>p=>Hw(Qe(s),d,p);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const d=on(e,t,!1,we(0,Bt(r))),p=on(e,t,!1,we(1,Bt(r)));let h;const m=y([w=>b=>Yw(Qe(d),Qe(p),w,b),(a=Ww(Qe(d),Qe(p)),w=>b=>kc(Qe(a),w,b))]);return h=w=>b=>jw(m,w,b),w=>b=>Uw(Gw,Qe(h),w,b)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const d=on(e,t,!1,we(0,Bt(r)));return p=>h=>{const m=Nc(Qe(d),p,h);return m.tag===0?new M(0,[zw(m.fields[0])]):new M(1,[m.fields[0]])}}default:return Mc(e,t,n,r)}else switch(l){case"System.Boolean":return f=>d=>Dw(f,d);case"Microsoft.FSharp.Core.Unit":return f=>d=>Iw(f,d);case"System.String":return f=>d=>Am(f,d);case"System.Char":return f=>d=>$w(f,d);case"System.SByte":return bc;case"System.Byte":return _c;case"System.Int16":return xc;case"System.UInt16":return Cc;case"System.Int32":return Sc;case"System.UInt32":return Ec;case"System.Double":return f=>d=>Ow(f,d);case"System.Single":return f=>d=>Rw(f,d);case"System.DateTime":return f=>d=>Fw(f,d);case"System.DateTimeOffset":return f=>d=>Pw(f,d);case"System.TimeSpan":return f=>d=>Lw(f,d);case"System.Guid":return f=>d=>Mw(f,d);case"System.Object":return f=>d=>new M(0,[d]);default:return Mc(e,t,n,r)}else{const f=u;return d=>p=>f.contents(d)(p)}}function Zw(e){return Kl({Compare:$r})}function Nm(e,t,n){const r=it(t,new Xi(0,[]));return on(Zw(),r,!1,e)}function Kw(e){return e}const Tm=Ae();function Io(e){return Array.from(e)}function Xw(e){return As(e,"O")}function Jw(e){return Aw(e)}function Qw(){return Ae()}function ev(e){return As(e,"O")}function tv(e,t){return JSON.stringify(t,void 0,ht(e))}function nv(e){return t=>sg(xt(e,t),()=>Tm)}function Ic(e,t,n,r){let i;const o=new yt(Ae());let s;const a=We(r);s=a===""?e:wm(a,o,e);let l;if(Ef(r)){const u=Ge(f=>{const d=xm(t,Zr(f)),p=Cn(s,t,n,f[1]);return h=>m=>{const w=mg(h,f);return(!n||n&&w!=null)&&(m[d]=p(w)),m}},Ki(r));l=f=>ho((d,p)=>p(f)(d),{},u)}else if(Sf(r))l=u=>{const f=fg(u,r),d=f[0],p=f[1],h=p.length|0;if(h===0)return Zr(d);{const m=h|0,w=Af(d),b=uo(new Array(m+1),0,m+1,null);St(b,0,Zr(d));for(let x=1;x<=m;x++){const C=Cn(s,t,n,we(x-1,w)[1]);St(b,x,C(we(x-1,p)))}return b}};else throw new Error((i=We(r),wr(Dn(`Cannot generate auto encoder for %s. Please pass an extra encoder.
|
|
32
|
+
|
|
33
|
+
Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(i)));return o.contents=l,l}function Cn(e,t,n,r){const i=We(r),o=vm(i,e);if(o==null)if(wf(r)){const s=Cn(e,t,n,lo(r));return a=>Io(Le(s,a))}else if(Ol(r))switch(We(_f(r))){case"System.SByte":return a=>a;case"System.Byte":return a=>a;case"System.Int16":return a=>a;case"System.UInt16":return a=>a;case"System.Int32":return a=>a;case"System.UInt32":return a=>a;default:{const a=We(r);return df(Dn(`Cannot generate auto encoder for %s.
|
|
34
|
+
Thoth.Json.Net only support the following enum types:
|
|
35
|
+
- sbyte
|
|
36
|
+
- byte
|
|
37
|
+
- int16
|
|
38
|
+
- uint16
|
|
39
|
+
- int
|
|
40
|
+
- uint32
|
|
41
|
+
|
|
42
|
+
If you can't use one of these types, please pass an extra encoder.
|
|
43
|
+
|
|
44
|
+
Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders
|
|
45
|
+
`))(a)}}else if(vf(r))if(Rl(r)){const s=Ge(a=>Cn(e,t,n,a),Cf(r));return a=>Io(t1((l,u)=>we(l,s)(u),a))}else{const s=We(bf(r));if(s==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]"){const a=new yp(()=>nv(Cn(e,t,n,we(0,Bt(r)))));return l=>l==null?Tm:a.Value(l)}else if(s==="Microsoft.FSharp.Collections.FSharpList`1[System.Object]"||s==="Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"||s==="System.Collections.Generic.IEnumerable`1[System.Object]"){const a=Cn(e,t,n,we(0,Bt(r)));return l=>Io(Le(a,l))}else if(s==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const a=we(0,Bt(r)),l=Cn(e,t,n,we(1,Bt(r)));if(We(a)==="System.String"||We(a)==="System.Guid")return u=>ho((f,d)=>{const p=d;return f[p[0]]=l(p[1]),f},{},u);{let u;return u=Cn(e,t,n,a),d=>Io(Le(p=>{const h=p;return[u(h[0]),l(h[1])]},d))}}else return Ic(e,t,n,r)}else switch(i){case"System.Boolean":return s=>s;case"Microsoft.FSharp.Core.Unit":return Qw;case"System.String":return s=>s;case"System.Char":return s=>s;case"System.SByte":return s=>s;case"System.Byte":return s=>s;case"System.Int16":return s=>s;case"System.UInt16":return s=>s;case"System.Int32":return s=>s;case"System.UInt32":return s=>s;case"System.Double":return s=>s;case"System.Single":return s=>s;case"System.DateTime":return ev;case"System.DateTimeOffset":return Xw;case"System.TimeSpan":return Jw;case"System.Guid":return Kw;case"System.Object":return s=>s;default:return Ic(e,t,n,r)}else{const s=o;return a=>s.contents(a)}}function rv(e){return Kl({Compare:$r})}function iv(e,t,n,r){const i=it(t,new Xi(0,[])),o=it(r,!0);return Cn(rv(),i,o,e)}class $m extends Ce{constructor(t,n){super(),this.RowId=t|0,this.Data=n}}function ov(){return Qt("Import.Dto.Shared.WorkspaceApi.ImportRowDataDto",[],$m,()=>[["RowId",Tt],["Data",zn("Microsoft.FSharp.Collections.FSharpMap`2",[$n,$n])]])}class Mm extends Ce{constructor(t,n){super(),this.IncludesEmploymentInfo=t,this.Data=n}}function sv(){return Qt("Import.Dto.Shared.WorkspaceApi.ValidateImportRequest.ImportDataDto",[],Mm,()=>[["IncludesEmploymentInfo",cg],["Data",br(ov())]])}class av extends Ce{constructor(t,n,r){super(),this.Column=t,this.PropName=n,this.Message=r}}function lv(){return Qt("Import.Dto.Shared.WorkspaceApi.ValidateImportResponse.FieldErrorDto",[],av,()=>[["Column",$n],["PropName",$n],["Message",$n]])}class uv extends Ce{constructor(t,n){super(),this.RowId=t|0,this.FieldErrors=n}}function cv(){return Qt("Import.Dto.Shared.WorkspaceApi.ValidateImportResponse.RowValidationErrorDto",[],uv,()=>[["RowId",Tt],["FieldErrors",br(lv())]])}class dv extends Ce{constructor(t,n){super(),this.Errors=t,this.DuplicateEmailCount=n|0}}function fv(){return Qt("Import.Dto.Shared.WorkspaceApi.ValidateImportResponse.ValidationResultDto",[],dv,()=>[["Errors",br(cv())],["DuplicateEmailCount",Tt]])}function Im(e){return`${e}/import/workspace/v1.0/accounts/current`}function Dm(e){return Ne.Delay(()=>{let t;const n=pc(e);return t=Ne.Bind(n,r=>Ne.Return(new M(0,[r]))),Ne.Bind(t,r=>{const i=r;if(i.tag===1)return Ne.Return(new M(1,[i.fields[0]]));{const o=i.fields[0];if(o.statusCode===429||o.statusCode>=500){const s=pc(e);return Ne.Bind(s,a=>Ne.Return(new M(0,[a])))}else return Ne.Return(new M(0,[o]))}})})}function mv(e,t){return Ne.Delay(()=>{const n=Dm(_m(new Yl(0,[]),bm(Im(e)+"/imports")));return Ne.Bind(n,r=>{const i=r;if(i.tag===1)return Ne.Return(new M(1,[i.fields[0]]));{const o=i.fields[0];switch(o.statusCode|0){case 200:{let a;const l=Em(Qe(Nm(Oy(),new Xi(1,[]))),o.responseText);return a=l.tag===1?new M(1,[l.fields[0]]):new M(0,[l.fields[0]]),Ne.Return(a)}case 404:return Ne.Return(new M(0,[void 0]));default:return Ne.Return(new M(1,["Failed to get account imports"]))}}})})}function hv(e,t){return Ne.Delay(()=>{let n;const r=Dm((n=_m(new Yl(1,[]),bm(Im(e)+"/import/validate")),sw(new lm(1,[tv(0,iv(sv(),new Xi(1,[]),void 0,void 0)(t))]),n)));return Ne.Bind(r,i=>{const o=i;if(o.tag===1)return Ne.Return(new M(1,[o.fields[0]]));{const s=o.fields[0];if(s.statusCode===200){const a=Em(Qe(Nm(fv(),new Xi(1,[]))),s.responseText);return Ne.Return(a)}else return Ne.Return(new M(1,[`Failed to validate: ${s.responseText}`]))}})})}class pv extends Ce{constructor(t){super(),this.UserActivities=t}}class Dc extends Ce{constructor(t,n,r){super(),this.Timestamp=t,this.User=n,this.Activity=r}}function gv(e,t){const n=t.toLocaleLowerCase();return e.Name.toLocaleLowerCase().indexOf(n)>=0?!0:it(xt(r=>r.toLocaleLowerCase().indexOf(n)>=0,e.Email),!1)}function yv(e){return mo(y(Ns(xt(t=>new Dc(t.StartTime,t.User,`Added ${t.NumberOfRecords} users via Csv`),e.ActiveImport))),_r(t=>new Dc(t.StartTime,t.User,`Added ${t.NumberOfRecords} users via Csv`),e.ImportHistory))}function wv(e){return new pv(it(xt(yv,e),ut()))}class Oc extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Error","TableData"]}}class vv extends Ce{constructor(t,n){super(),this.Data=t,this.IsFiltered=n}}class yo extends J{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["PaginatedList"]}}class bv extends J{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["SortedList"]}}class _v extends Ce{constructor(t,n){super(),this.SortInfo=t,this.SortDirectionToggledHandler=n}}class Om extends Ce{constructor(t,n){super(),this.Column=t,this.Direction=n}}class xv extends J{constructor(){super(),this.tag=0,this.fields=[]}cases(){return["Time"]}}class cs extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NonEmptyPagingInfo","EmptyPagingInfo"]}}class Cv extends Ce{constructor(t,n,r,i,o){super(),this.CurrentPage=t|0,this.FirstRowIndex=n|0,this.LastRowIndex=r|0,this.TotalRecordsNumber=i|0,this.PageSize=o|0}}function Sv(e){return e.tag===1?Rm(e.fields[0].Data):Lm()}function Ev(e){return e.tag===1?vi(e.fields[0].Data):new cs(1,[])}function Av(e){const t=Xl(Lm(),e);return new yo([Hm(an(e),20),t])}function wo(e){return e.fields[0][1]}function Rm(e){return Pm(wo(e))}function kv(e){return Jl(wo(e))}function vi(e){return e.fields[0][0]}function Nv(e){const t=vi(e);if(t.tag===0){const n=t.fields[0],r=Ff(n.FirstRowIndex,kv(e));return Pf(Hv(n),r)}else return ut()}function Fm(e,t){const n=Xl(Rm(e),t);return new yo([Pv(vi(e),an(Jl(n))),n])}function Tv(e){return new yo([vi(e),Iv(wo(e))])}function $v(e){return new yo([Fv(vi(e)),wo(e)])}function Mv(e){return new yo([Rv(vi(e)),wo(e)])}function Xl(e,t){return new bv([e,Ly(e.Direction,n=>n.Timestamp,t)])}function Jl(e){return e.fields[0][1]}function Pm(e){return e.fields[0][0]}function Iv(e){return Xl(Dv(Pm(e)),Jl(e))}function Lm(){return new Om(new xv,new Ya(0,[]))}function Dv(e){return new Om(e.Column,Py(e.Direction))}function Vm(e,t){return~~(e/t)+(e%t===0?0:1)}function Ls(e,t,n){if(e<=0)return new cs(1,[]);{const r=Gu(n,Vm(e,t))|0,i=(r-1)*t|0;return new cs(0,[new Cv(r,i,Gu(i+t-1,e-1),e,t)])}}function Hm(e,t){return Ls(e,t,1)}function Ov(e){if(e.tag===0){const t=e.fields[0];return Vm(t.TotalRecordsNumber,t.PageSize)|0}else return 0}function jm(e){return e.tag===0?e.fields[0].CurrentPage<Ov(e):!1}function Bm(e){return e.tag===0?e.fields[0].CurrentPage>1:!1}function Rv(e){const t=Bm(e);let n;switch(t&&e.tag===0?n=0:n=1,n){case 0:{const r=e.fields[0];return Ls(r.TotalRecordsNumber,r.PageSize,r.CurrentPage-1)}default:return e}}function Fv(e){const t=jm(e);let n;switch(t&&e.tag===0?n=0:n=1,n){case 0:{const r=e.fields[0];return Ls(r.TotalRecordsNumber,r.PageSize,r.CurrentPage+1)}default:return e}}function Pv(e,t){return t<=0?new cs(1,[]):e.tag===0?Ls(t,20,e.fields[0].CurrentPage):Hm(t,20)}function Lv(e){return e.FirstRowIndex+1}function Vv(e){return e.LastRowIndex+1}function Hv(e){return e.LastRowIndex-e.FirstRowIndex+1}let Zn=class extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["LoadingError","ValidState"]}};class bi extends Ce{constructor(t,n,r){super(),this.ImportHistory=t,this.View=n,this.PaginatedList=r}}class Ql extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Default","Filtered"]}}function jv(e){if(e.tag===1)return Um(e.fields[0])}function Bv(e){return e.tag===0}function Uv(e){return e.tag===1?new Oc(1,[Kv(e.fields[0])]):new Oc(0,[])}function Um(e){const t=e.View;if(t.tag===1)return t.fields[0]}function Wv(e){return Um(e)!=null}function Gv(e,t){return new Zn(1,[new bi(e.ImportHistory,new Ql(1,[t]),Fm(e.PaginatedList,kn(n=>gv(n.User,t),e.ImportHistory.UserActivities)))])}function zv(e){return new Zn(1,[new bi(e.ImportHistory,new Ql(0,[]),Fm(e.PaginatedList,e.ImportHistory.UserActivities))])}function qv(e){return new Zn(1,[new bi(e.ImportHistory,e.View,Tv(e.PaginatedList))])}function Yv(e){return new Zn(1,[new bi(e.ImportHistory,e.View,$v(e.PaginatedList))])}function Zv(e){return new Zn(1,[new bi(e.ImportHistory,e.View,Mv(e.PaginatedList))])}function Kv(e){return new vv(e.PaginatedList,Wv(e))}let Qr=class extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ApplyFilter","ClearFilter","ToggleSortDirection","NextPage","PrevPage"]}};function Xv(e){let t;return[e.tag===1?new Zn(0,[]):(t=e.fields[0],new Zn(1,[new bi(t,new Ql(0,[]),Av(t.UserActivities))])),Z()]}function Wm(e,t){return e.tag===1?t(e.fields[0]):[new Zn(0,[]),Z()]}function Jv(e,t){return Wm(e,n=>[t(n),Z()])}function Qv(e,t){const n=r=>Jv(t,r);switch(e.tag){case 1:return n(zv);case 2:return n(qv);case 3:return n(Yv);case 4:return n(Zv);default:{const r=e.fields[0];return Wm(t,i=>Dl(r)?[t,me(o=>{o(new Qr(1,[]))})]:[Gv(i,r),Z()])}}}function eb(e,t){let n,r;return c("svg",g(y([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",24],["xmlns","http://www.w3.org/2000/svg"],(n=me(c("path",g(y([(r="M6.77835 19.8844C6.74702 19.9444 6.7414 20.0146 6.76278 20.0789C6.78416 20.1432 6.83071 20.196 6.89177 20.2254L7.82464 20.6734C7.9462 20.7317 8.09214 20.6832 8.15452 20.5636L16.5023 4.56364C16.5337 4.50358 16.5393 4.43338 16.5179 4.3691C16.4965 4.30482 16.45 4.25197 16.3889 4.22264L15.4561 3.77464C15.3345 3.71627 15.1886 3.76481 15.1262 3.88436L6.77835 19.8844Z",["d",r]),["fill","#D1D5DB"],["stroke","#D1D5DB"],["strokeWidth",.5],["strokeLinejoin","round"]])))),["children",v.Children.toArray(Array.from(n))])])))}function tb(){let e,t,n;return c("div",g(y([["className","self-stretch px-12 pt-8 pb-4 bg-white justify-start items-end gap-6 inline-flex"],(e=[c("div",g(y([["className","grow shrink basis-0 h-[34px] rounded-md justify-start items-center gap-1 flex"],(t=[c("div",{className:"text-gray-900 text-2xl font-bold font-['BR Sonoma'] leading-7",children:"Users"}),c("div",g(y([["className","w-6 h-6 text-gray-900 relative overflow-hidden"],(n=[eb(24,24)],["children",v.Children.toArray(Array.from(n))])]))),c("div",{className:"text-gray-900 text-2xl font-bold font-['BR Sonoma'] leading-7",children:"Past activities"})],["children",v.Children.toArray(Array.from(t))])])))],["children",v.Children.toArray(Array.from(e))])])))}function nb(e,t){let n,r;return c("svg",g(y([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=me(c("path",g(y([["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",v.Children.toArray(Array.from(n))])])))}function Xa(e,t){let n,r;return c("svg",g(y([["width",e],["height",t],["viewBox","0 0 "+e+" "+t],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(n=me(c("path",g(y([(r="M9.70757 0.292433C9.52026 0.105188 9.26626 0 9.00142 0C8.73658 0 8.48257 0.105188 8.29527 0.292433L5.00624 3.58146L1.71721 0.292433C1.52884 0.110495 1.27654 0.00982222 1.01466 0.0120979C0.752781 0.0143736 0.502271 0.119416 0.317087 0.3046C0.131902 0.489785 0.0268602 0.740295 0.0245845 1.00218C0.0223088 1.26406 0.122982 1.51635 0.30492 1.70473L3.59395 4.99376L0.30492 8.28279C0.209525 8.37492 0.133435 8.48513 0.0810888 8.60699C0.028743 8.72885 0.00119014 8.85991 3.77112e-05 8.99253C-0.00111471 9.12515 0.0241565 9.25667 0.0743768 9.37942C0.124597 9.50216 0.19876 9.61368 0.29254 9.70746C0.386319 9.80124 0.497837 9.8754 0.620585 9.92562C0.743333 9.97584 0.874854 10.0011 1.00747 9.99996C1.14009 9.99881 1.27115 9.97126 1.39301 9.91891C1.51487 9.86657 1.62508 9.79047 1.71721 9.69508L5.00624 6.40605L8.29527 9.69508C8.48365 9.87702 8.73594 9.97769 8.99782 9.97542C9.25971 9.97314 9.51022 9.8681 9.6954 9.68291C9.88058 9.49773 9.98563 9.24722 9.9879 8.98534C9.99018 8.72346 9.88951 8.47116 9.70757 8.28279L6.41854 4.99376L9.70757 1.70473C9.89481 1.51743 10 1.26343 10 0.998581C10 0.733736 9.89481 0.479735 9.70757 0.292433Z",["d",r]),["fill","currentColor"]])))),["children",v.Children.toArray(Array.from(n))])])))}class Rc extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateFilter","ClearFilter"]}}function rb(e){let t,n;const r=it(e.Value,"");return c("div",g(y([["className","self-stretch justify-start items-start gap-4 inline-flex"],(t=[c("div",g(y([["className",Ct(" ",["relative w-96 overflow-hidden focus:outline-none focus:border-blue-600"])],(n=K(N(()=>{let i;return j(A(c("div",g(y([["className","pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3"],(i=[nb(20,20)],["children",v.Children.toArray(Array.from(i))])])))),N(()=>{let o;return j(A(c("input",g(y([(o="rounded-md border-0 py-[0.5625rem] px-10 ring-1 ring-inset ring-gray-300 placeholder:text-gray-500 text-gray-900 focus:ring-2 focus:ring-inset focus:ring-primary-600 bg-white text-sm w-full",["className",o]),["placeholder","Search actors..."],["autoComplete","off"],["onChange",s=>{e.ActionHandler(new Rc(0,[s.target.value]))}],["value",r],["disabled",e.Disabled]])))),N(()=>{let s;return Dl(r)?A(Ae()):A(c("div",g(y([["onClick",a=>{e.ActionHandler(new Rc(1,[]))}],["className","absolute inset-y-0 right-0 flex items-center pr-3 cursor-pointer text-gray-600"],(s=[Xa(10,10)],["children",v.Children.toArray(Array.from(s))])]))))}))}))})),["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))}function ib(e){let t,n;const r=e.height,i=e.width;return c("svg",g(y([["fill","none"],["height",r],["width",i],["viewBox","0 0 "+i+" "+r],["xmlns","http://www.w3.org/2000/svg"],(t=me(c("path",g(y([(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",v.Children.toArray(Array.from(t))])])))}function ob(e){let t;const n=e.sortDirectionChangeHandler,r=e.sortDirection;return c("div",g(y([["className",Ct(" ",K(N(()=>j(A("w-5 h-5 bg-gray-200 rounded overflow-hidden flex flex-col justify-center items-center"),N(()=>r.tag===1?A("rotate-180"):A(""))))))],["onClick",i=>{n(void 0)}],(t=[c(ib,{width:10,height:7})],["children",v.Children.toArray(Array.from(t))])])))}function sb(e){const t=e.toggleSortDirection,n=e.props;return c(ob,{sortDirection:n.Direction,sortDirectionChangeHandler:t})}function ab(e){let t,n,r,i;const o=c(sb,{props:e.SortInfo,toggleSortDirection:e.SortDirectionToggledHandler});return c("div",g(y([["className","flex-none grid grid-cols-7"],(t=[c("div",g(y([["className","col-span-1 px-6 py-3.5 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 flex"],(n=[c("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Time"}),o],["children",v.Children.toArray(Array.from(n))])]))),c("div",g(y([["className","col-span-2 px-6 py-3.5 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 flex"],(r=[c("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Actor"})],["children",v.Children.toArray(Array.from(r))])]))),c("div",g(y([["className","col-span-4 px-6 py-3.5 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 flex"],(i=[c("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Activity"})],["children",v.Children.toArray(Array.from(i))])])))],["children",v.Children.toArray(Array.from(t))])])))}function ds(e){"@babel/helpers - typeof";return ds=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ds(e)}function Cr(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function It(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function wn(e){It(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||ds(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function lb(e,t){It(2,arguments);var n=wn(e).getTime(),r=Cr(t);return new Date(n+r)}var ub={};function Vs(){return ub}function cb(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function db(e){return It(1,arguments),e instanceof Date||ds(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function fb(e){if(It(1,arguments),!db(e)&&typeof e!="number")return!1;var t=wn(e);return!isNaN(Number(t))}function mb(e,t){It(2,arguments);var n=Cr(t);return lb(e,-n)}var hb=864e5;function pb(e){It(1,arguments);var t=wn(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),i=n-r;return Math.floor(i/hb)+1}function fs(e){It(1,arguments);var t=1,n=wn(e),r=n.getUTCDay(),i=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function Gm(e){It(1,arguments);var t=wn(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=fs(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var s=fs(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function gb(e){It(1,arguments);var t=Gm(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=fs(n);return r}var yb=6048e5;function wb(e){It(1,arguments);var t=wn(e),n=fs(t).getTime()-gb(t).getTime();return Math.round(n/yb)+1}function ms(e,t){var n,r,i,o,s,a,l,u;It(1,arguments);var f=Vs(),d=Cr((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=wn(e),h=p.getUTCDay(),m=(h<d?7:0)+h-d;return p.setUTCDate(p.getUTCDate()-m),p.setUTCHours(0,0,0,0),p}function zm(e,t){var n,r,i,o,s,a,l,u;It(1,arguments);var f=wn(e),d=f.getUTCFullYear(),p=Vs(),h=Cr((n=(r=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:p.firstWeekContainsDate)!==null&&r!==void 0?r:(l=p.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(d+1,0,h),m.setUTCHours(0,0,0,0);var w=ms(m,t),b=new Date(0);b.setUTCFullYear(d,0,h),b.setUTCHours(0,0,0,0);var x=ms(b,t);return f.getTime()>=w.getTime()?d+1:f.getTime()>=x.getTime()?d:d-1}function vb(e,t){var n,r,i,o,s,a,l,u;It(1,arguments);var f=Vs(),d=Cr((n=(r=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:f.firstWeekContainsDate)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1),p=zm(e,t),h=new Date(0);h.setUTCFullYear(p,0,d),h.setUTCHours(0,0,0,0);var m=ms(h,t);return m}var bb=6048e5;function _b(e,t){It(1,arguments);var n=wn(e),r=ms(n,t).getTime()-vb(n,t).getTime();return Math.round(r/bb)+1}function Fe(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var Vn={y:function(t,n){var r=t.getUTCFullYear(),i=r>0?r:1-r;return Fe(n==="yy"?i%100:i,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):Fe(r+1,2)},d:function(t,n){return Fe(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return Fe(t.getUTCHours()%12||12,n.length)},H:function(t,n){return Fe(t.getUTCHours(),n.length)},m:function(t,n){return Fe(t.getUTCMinutes(),n.length)},s:function(t,n){return Fe(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,i=t.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,r-3));return Fe(o,n.length)}},Lr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},xb={G:function(t,n,r){var i=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var i=t.getUTCFullYear(),o=i>0?i:1-i;return r.ordinalNumber(o,{unit:"year"})}return Vn.y(t,n)},Y:function(t,n,r,i){var o=zm(t,i),s=o>0?o:1-o;if(n==="YY"){var a=s%100;return Fe(a,2)}return n==="Yo"?r.ordinalNumber(s,{unit:"year"}):Fe(s,n.length)},R:function(t,n){var r=Gm(t);return Fe(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return Fe(r,n.length)},Q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return Fe(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return Fe(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,n,r){var i=t.getUTCMonth();switch(n){case"M":case"MM":return Vn.M(t,n);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(t,n,r){var i=t.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return Fe(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(t,n,r,i){var o=_b(t,i);return n==="wo"?r.ordinalNumber(o,{unit:"week"}):Fe(o,n.length)},I:function(t,n,r){var i=wb(t);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):Fe(i,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):Vn.d(t,n)},D:function(t,n,r){var i=pb(t);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):Fe(i,n.length)},E:function(t,n,r){var i=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(t,n,r,i){var o=t.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(s);case"ee":return Fe(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(t,n,r,i){var o=t.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(s);case"cc":return Fe(s,n.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(t,n,r){var i=t.getUTCDay(),o=i===0?7:i;switch(n){case"i":return String(o);case"ii":return Fe(o,n.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(t,n,r){var i=t.getUTCHours(),o=i/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,n,r){var i=t.getUTCHours(),o;switch(i===12?o=Lr.noon:i===0?o=Lr.midnight:o=i/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,n,r){var i=t.getUTCHours(),o;switch(i>=17?o=Lr.evening:i>=12?o=Lr.afternoon:i>=4?o=Lr.morning:o=Lr.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var i=t.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return Vn.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Vn.H(t,n)},K:function(t,n,r){var i=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):Fe(i,n.length)},k:function(t,n,r){var i=t.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):Fe(i,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Vn.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Vn.s(t,n)},S:function(t,n){return Vn.S(t,n)},X:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();if(s===0)return"Z";switch(n){case"X":return Pc(s);case"XXXX":case"XX":return sr(s);case"XXXXX":case"XXX":default:return sr(s,":")}},x:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"x":return Pc(s);case"xxxx":case"xx":return sr(s);case"xxxxx":case"xxx":default:return sr(s,":")}},O:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+Fc(s,":");case"OOOO":default:return"GMT"+sr(s,":")}},z:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+Fc(s,":");case"zzzz":default:return"GMT"+sr(s,":")}},t:function(t,n,r,i){var o=i._originalDate||t,s=Math.floor(o.getTime()/1e3);return Fe(s,n.length)},T:function(t,n,r,i){var o=i._originalDate||t,s=o.getTime();return Fe(s,n.length)}};function Fc(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(o===0)return n+String(i);var s=t;return n+String(i)+s+Fe(o,2)}function Pc(e,t){if(e%60===0){var n=e>0?"-":"+";return n+Fe(Math.abs(e)/60,2)}return sr(e,t)}function sr(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),o=Fe(Math.floor(i/60),2),s=Fe(i%60,2);return r+o+n+s}var Lc=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},qm=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},Cb=function(t,n){var r=t.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return Lc(t,n);var s;switch(i){case"P":s=n.dateTime({width:"short"});break;case"PP":s=n.dateTime({width:"medium"});break;case"PPP":s=n.dateTime({width:"long"});break;case"PPPP":default:s=n.dateTime({width:"full"});break}return s.replace("{{date}}",Lc(i,n)).replace("{{time}}",qm(o,n))},Sb={p:qm,P:Cb},Eb=["D","DD"],Ab=["YY","YYYY"];function kb(e){return Eb.indexOf(e)!==-1}function Nb(e){return Ab.indexOf(e)!==-1}function Vc(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Tb={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},$b=function(t,n,r){var i,o=Tb[t];return typeof o=="string"?i=o:n===1?i=o.one:i=o.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};function ba(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var Mb={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ib={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Db={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ob={date:ba({formats:Mb,defaultWidth:"full"}),time:ba({formats:Ib,defaultWidth:"full"}),dateTime:ba({formats:Db,defaultWidth:"full"})},Rb={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Fb=function(t,n,r,i){return Rb[t]};function Mi(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):o;i=e.formattingValues[s]||e.formattingValues[o]}else{var a=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[a]}var u=e.argumentCallback?e.argumentCallback(t):t;return i[u]}}var Pb={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Lb={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Vb={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Hb={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},jb={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Bb={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Ub=function(t,n){var r=Number(t),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Wb={ordinalNumber:Ub,era:Mi({values:Pb,defaultWidth:"wide"}),quarter:Mi({values:Lb,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Mi({values:Vb,defaultWidth:"wide"}),day:Mi({values:Hb,defaultWidth:"wide"}),dayPeriod:Mi({values:jb,defaultWidth:"wide",formattingValues:Bb,defaultFormattingWidth:"wide"})};function Ii(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var s=o[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?zb(a,function(d){return d.test(s)}):Gb(a,function(d){return d.test(s)}),u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;var f=t.slice(s.length);return{value:u,rest:f}}}function Gb(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function zb(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function qb(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],o=t.match(e.parsePattern);if(!o)return null;var s=e.valueCallback?e.valueCallback(o[0]):o[0];s=n.valueCallback?n.valueCallback(s):s;var a=t.slice(i.length);return{value:s,rest:a}}}var Yb=/^(\d+)(th|st|nd|rd)?/i,Zb=/\d+/i,Kb={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Xb={any:[/^b/i,/^(a|c)/i]},Jb={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Qb={any:[/1/i,/2/i,/3/i,/4/i]},e_={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},t_={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},n_={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},r_={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},i_={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},o_={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},s_={ordinalNumber:qb({matchPattern:Yb,parsePattern:Zb,valueCallback:function(t){return parseInt(t,10)}}),era:Ii({matchPatterns:Kb,defaultMatchWidth:"wide",parsePatterns:Xb,defaultParseWidth:"any"}),quarter:Ii({matchPatterns:Jb,defaultMatchWidth:"wide",parsePatterns:Qb,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Ii({matchPatterns:e_,defaultMatchWidth:"wide",parsePatterns:t_,defaultParseWidth:"any"}),day:Ii({matchPatterns:n_,defaultMatchWidth:"wide",parsePatterns:r_,defaultParseWidth:"any"}),dayPeriod:Ii({matchPatterns:i_,defaultMatchWidth:"any",parsePatterns:o_,defaultParseWidth:"any"})},a_={code:"en-US",formatDistance:$b,formatLong:Ob,formatRelative:Fb,localize:Wb,match:s_,options:{weekStartsOn:0,firstWeekContainsDate:1}},l_=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,u_=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,c_=/^'([^]*?)'?$/,d_=/''/g,f_=/[a-zA-Z]/;function Ym(e,t,n){var r,i,o,s,a,l,u,f,d,p,h,m,w,b;It(2,arguments);var x=String(t),C=Vs(),E=(r=(i=void 0)!==null&&i!==void 0?i:C.locale)!==null&&r!==void 0?r:a_,$=Cr((o=(s=(a=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&a!==void 0?a:C.firstWeekContainsDate)!==null&&s!==void 0?s:(u=C.locale)===null||u===void 0||(f=u.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!($>=1&&$<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var I=Cr((d=(p=(h=(m=void 0)!==null&&m!==void 0?m:void 0)!==null&&h!==void 0?h:C.weekStartsOn)!==null&&p!==void 0?p:(w=C.locale)===null||w===void 0||(b=w.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&d!==void 0?d:0);if(!(I>=0&&I<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!E.localize)throw new RangeError("locale must contain localize property");if(!E.formatLong)throw new RangeError("locale must contain formatLong property");var P=wn(e);if(!fb(P))throw new RangeError("Invalid time value");var L=cb(P),S=mb(P,L),_={firstWeekContainsDate:$,weekStartsOn:I,locale:E,_originalDate:P},k=x.match(u_).map(function(T){var D=T[0];if(D==="p"||D==="P"){var O=Sb[D];return O(T,E.formatLong)}return T}).join("").match(l_).map(function(T){if(T==="''")return"'";var D=T[0];if(D==="'")return m_(T);var O=xb[D];if(O)return Nb(T)&&Vc(T,t,String(e)),kb(T)&&Vc(T,t,String(e)),O(S,T,E.localize,_);if(D.match(f_))throw new RangeError("Format string contains an unescaped latin alphabet character `"+D+"`");return T}).join("");return k}function m_(e){var t=e.match(c_);return t?t[1].replace(d_,"'"):e}function h_(e){return Ym(e,"d MMM, yyyy")}function p_(e){return Ym(e,"h:mm a")}function g_(e){let t,n,r,i,o,s,a;return c("div",g(y([["className","grid grid-cols-7"],(t=[c("div",g(y([["className","col-span-1 px-6 py-4 bg-white border-b border-gray-200 flex justify-start items-center gap-4"],(n=[c("div",g(y([["className"," flex flex-col justify-center items-start"],(r=[c("div",g(y([["className","self-stretch justify-start items-center gap-2 inline-flex"],(i=[c("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:h_(e.Timestamp)})],["children",v.Children.toArray(Array.from(i))])]))),c("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:p_(e.Timestamp)})],["children",v.Children.toArray(Array.from(r))])])))],["children",v.Children.toArray(Array.from(n))])]))),c("div",g(y([["className","col-span-2 px-6 py-4 bg-white border-b border-gray-200 flex justify-start items-start gap-4"],(o=[c("div",g(y([["className","justify-center items-start flex flex-col"],(s=K(N(()=>{let l;return j(A(c("div",g(y([["className","self-stretch justify-start items-center gap-2 inline-flex"],(l=[c("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:e.User.Name})],["children",v.Children.toArray(Array.from(l))])])))),N(()=>{const u=e.User.Email;return u==null?A(Ae()):A(c("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:u}))}))})),["children",v.Children.toArray(Array.from(s))])])))],["children",v.Children.toArray(Array.from(o))])]))),c("div",g(y([["className","col-span-4 px-6 py-4 bg-white border-b border-gray-200 justify-start items-center gap-1 flex"],(a=[c("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:e.Activity})],["children",v.Children.toArray(Array.from(a))])])))],["children",v.Children.toArray(Array.from(t))])])))}function y_(e){const t=_r(n=>c(g_,n),e.Data);return c("div",{className:"self-stretch flex flex-col justify-start items-stretch",children:v.Children.toArray(Array.from(t))})}function w_(e){let t,n,r,i,o;const s=e.height,a=e.width;return c("svg",g(y([["width",a],["height",s],["viewBox","0 0 "+a+" "+s],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(t=y([c("path",g(y([(n="M60 100C37.9441 100 20 82.0567 20 60C20 37.9433 37.9441 20 60 20C82.0559 20 100 37.9433 100 60C100 82.0567 82.0559 100 60 100Z",["d",n]),["fill","url(#paint0_linear_3770_593)"]]))),c("path",{d:"M60 42V67",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),c("path",g(y([(r="M60 76C60.5523 76 61 75.5523 61 75C61 74.4477 60.5523 74 60 74C59.4477 74 59 74.4477 59 75C59 75.5523 59.4477 76 60 76Z",["d",r]),["stroke","#111827"],["strokeWidth",2],["strokeLinecap","round"],["strokeLinejoin","round"]]))),(i=me(c("linearGradient",g(y([["id","paint0_linear_3770_593"],["x1",20],["y1",20],["x2",100],["y2",20],(o=y([c("stop",{offset:0,stopColor:"#FFD84D"}),c("stop",{offset:1,stopColor:"#FF876F"})]),["children",v.Children.toArray(Array.from(o))])])))),c("defs",{children:v.Children.toArray(Array.from(i))}))]),["children",v.Children.toArray(Array.from(t))])])))}function v_(){let e;return c("div",g(y([["className","w-[120px] h-[120px] flex flex-col justify-center items-center"],(e=[c(w_,{width:120,height:120})],["children",v.Children.toArray(Array.from(e))])])))}function b_(){let e,t,n,r;return c("div",g(y([["className","self-stretch grow shrink basis-0 flex flex-col justify-center items-center"],(e=[c(v_,null),c("div",g(y([["className","flex-col justify-start items-center gap-6 inline-flex"],(t=[c("div",g(y([["className","self-stretch h-[72px] flex-col justify-start items-start gap-3 flex"],(n=[c("div",g(y([["className","h-[72px] flex-col justify-start items-center gap-1 flex"],(r=[c("div",{className:"self-stretch text-center text-gray-900 text-xl font-bold leading-7",children:"We couldn’t load your past activities"}),c("div",{className:"self-stretch text-center text-gray-500 text-sm font-normal leading-tight",children:"Something went wrong while retrieving your activities. Please refresh the page to try again."})],["children",v.Children.toArray(Array.from(r))])])))],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))],["children",v.Children.toArray(Array.from(e))])])))}function __(e){return{Data:Nv(e.Data)}}function x_(e){let t;const n=e.props,r=n.tag===1?c(y_,__(n.fields[0])):c(b_,null);return c("div",g(y([["className","relative h-full grow"],(t=[c("div",{className:"overflow-y-auto self-stretch flex flex-col justify-start",style:{scrollbarWidth:"none"},children:v.Children.toArray([r])})],["children",v.Children.toArray(Array.from(t))])])))}class Hc extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Prev","Next"]}}function C_(e){let t,n;const r=e.pageChangedHandler,i=e.pagingInfo;return c("div",g(y([["className","flex-none h-[60px] bg-white flex-col justify-start items-start flex"],(t=[c("div",{className:"self-stretch h-px bg-gray-200"}),c("div",g(y([["className","self-stretch px-6 py-3 justify-between items-center inline-flex"],(n=K(N(()=>{let o,s,a;return j((o=i,o.tag===1?A(c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:"No results found"})):(s=o.fields[0],A((a=y([c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:cn(Lv(s))}),c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" to "}),c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:cn(Vv(s))}),c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" of "}),c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:cn(s.TotalRecordsNumber)}),c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" results"})]),c("div",{children:v.Children.toArray(Array.from(a))}))))),N(()=>{let l,u,f;return A(c("div",g(y([["className","justify-start items-start gap-3 flex"],(l=[c("button",g(y([["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",d=>{r(new Hc(0,[]))}],["disabled",!Bm(i)]]))),c("button",g(y([["type","button"],(f="ml-3 py-2 px-3 bg-white border border-gray-300 shadow-sm rounded-md text-sm font-medium text-gray-700 leading-4 disabled:cursor-not-allowed disabled:opacity-50 hover:bg-gray-50",["className",f]),["children","Next"],["onClick",d=>{r(new Hc(1,[]))}],["disabled",!jm(i)]])))],["children",v.Children.toArray(Array.from(l))])]))))}))})),["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))}class Ja extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ToggleSortDirection","NextPage","PrevPage"]}}function S_(e,t){e(t.tag===0?new Ja(2,[]):new Ja(1,[]))}function E_(e){let t,n;const r=e.actionHandler,i=e.props;return c("div",g(y([(t="self-stretch grow bg-white rounded-lg shadow border border-gray-200 flex flex-col justify-center items-stretch",["className",t]),(n=[c(ab,new _v(Sv(i),()=>{r(new Ja(0,[]))})),c(x_,{props:i}),c(C_,{pagingInfo:Ev(i),pageChangedHandler:o=>{S_(r,o)}})],["children",v.Children.toArray(Array.from(n))])])))}function A_(e,t){t.tag===0?e(new Qr(0,[t.fields[0]])):e(new Qr(1,[]))}function k_(e,t){switch(t.tag){case 2:{e(new Qr(4,[]));break}case 0:{e(new Qr(2,[]));break}default:e(new Qr(3,[]))}}function jc(e){let t,n;const r=e.importHistory;let i;const o=Xv(r);i=Or(()=>Dr(()=>o,Qv,(f,d)=>{}),void 0,void 0);const s=i[0],a=i[1];let l;const u=jv(s);return l={ActionHandler:f=>{A_(a,f)},Disabled:Bv(s),Value:Hi(u)},c("div",g(y([["className","self-stretch grow basis-0 flex flex-col justify-start items-start gap-2"],(t=[c(tb,null),c("div",g(y([["className","self-stretch grow shrink basis-0 px-12 pb-6 flex flex-col justify-start items-start gap-2"],(n=[c(rb,l),c(E_,{props:Uv(s),actionHandler:f=>{k_(a,f)}})],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))}class Bc extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Header","Row"]}}function N_(e,t){let n;const r=e.tag===1?["bg-white","bg-gray-100","h-[72px]"]:["bg-gray-50","bg-gray-300",""];return c("div",g(y([["className",Ct(" ",["px-6 py-3.5 border-b border-gray-200 justify-start items-center gap-2 flex",r[0],r[2],t])],(n=[c("div",{className:Ct(" ",["w-full h-4 relative rounded",r[1]])})],["children",v.Children.toArray(Array.from(n))])])))}function Uc(e){const t=_r(n=>N_(e,n),y(["col-span-1","col-span-2","col-span-4"]));return c("div",{className:"grid grid-cols-7",children:v.Children.toArray(Array.from(t))})}function T_(){let e,t;return c("div",g(y([(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=mo(me(Uc(new Bc(0,[]))),_r(n=>Uc(new Bc(1,[])),K(Gl(1,1,5)))),["children",v.Children.toArray(Array.from(t))])])))}function $_(e){let t;const n=Or(()=>Dr(Vy,(i,o)=>Hy(()=>mv(e.backendUrl),i),(i,o)=>{}),void 0,[])[0].View;t=n.tag===2?c(jc,{importHistory:new M(1,[void 0])}):n.tag===1?c(jc,{importHistory:new M(0,[wv(n.fields[0])])}):c(T_,null);const r=[c("style",{children:[Tl]}),t];return c(Ue,{},...r)}function M_(){yl(e=>c($_,e),"apollo-import-workspace-past-history")}class I_{constructor(t,n){const r=new yt(Ae());this.comparer=n,r.contents=this,this.hashMap=new Map([]),this["init@9"]=1;const i=Ie(t);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const o=i["System.Collections.Generic.IEnumerator`1.get_Current"]();_a(r.contents,o[0],o[1])}}finally{$e(i)}}get[Symbol.toStringTag](){return"Dictionary"}toJSON(){const t=this;return Array.from(t)}"System.Collections.IEnumerable.GetEnumerator"(){return Ie(this)}GetEnumerator(){return Ie(Is(this.hashMap.values()))}[Symbol.iterator](){return mi(Ie(this))}"System.Collections.Generic.ICollection`1.Add2B595"(t){_a(this,t[0],t[1])}"System.Collections.Generic.ICollection`1.Clear"(){Wc(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const r=zo(this,t[0]);let i;switch(r!=null&&ne(V(r)[1],t[1])?(i=0,V(r)):i=1,i){case 0:return!0;default:return!1}}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Bf((i,o)=>{St(t,n+i,o)},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return Gc(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(t){const n=this,r=zo(n,t[0]);return r!=null?(ne(V(r)[1],t[1])&&xa(n,t[0]),!0):!1}"System.Collections.Generic.IDictionary`2.Add5BDDA1"(t,n){_a(this,t,n)}"System.Collections.Generic.IDictionary`2.ContainsKey2B595"(t){return Yc(this,t)}"System.Collections.Generic.IDictionary`2.get_Item2B595"(t){return zc(this,t)}"System.Collections.Generic.IDictionary`2.set_Item5BDDA1"(t,n){qc(this,t,n)}"System.Collections.Generic.IDictionary`2.get_Keys"(){const t=this;return qn(N(()=>Le(n=>n[0],t)))}"System.Collections.Generic.IDictionary`2.Remove2B595"(t){return xa(this,t)}"System.Collections.Generic.IDictionary`2.TryGetValue6DC89625"(t,n){const i=zo(this,t);if(i!=null){const o=V(i);return n.contents=o[1],!0}else return!1}"System.Collections.Generic.IDictionary`2.get_Values"(){const t=this;return qn(N(()=>Le(n=>n[1],t)))}get size(){return Gc(this)|0}clear(){Wc(this)}delete(t){return xa(this,t)}entries(){return Le(n=>[n[0],n[1]],this)}get(t){return zc(this,t)}has(t){return Yc(this,t)}keys(){return Le(n=>n[0],this)}set(t,n){const r=this;return qc(r,t,n),r}values(){return Le(n=>n[1],this)}forEach(t,n){const r=this;Mr(i=>{t(i[1],i[0],r)},r)}}function vo(e,t){const n=e.comparer.GetHashCode(t)|0;let r,i=Ae();return r=[Hl(e.hashMap,n,new yt(()=>i,o=>{i=o})),i],r[0]?[!0,n,r[1].findIndex(o=>e.comparer.Equals(t,o[0]))]:[!1,n,-1]}function zo(e,t){const n=vo(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return Yn(e.hashMap,n[1])[n[2]];default:return}}function Wc(e){e.hashMap.clear()}function Gc(e){let t=0,n=Ie(e.hashMap.values());try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=t+r.length|0}}finally{$e(n)}return t|0}function zc(e,t){const n=zo(e,t);if(n!=null)return V(n)[1];throw new Error("The item was not found in collection")}function qc(e,t,n){const r=vo(e,t);r[0]?r[2]>-1?Yn(e.hashMap,r[1])[r[2]]=[t,n]:Yn(e.hashMap,r[1]).push([t,n]):e.hashMap.set(r[1],[[t,n]])}function _a(e,t,n){const r=vo(e,t);if(r[0]){if(r[2]>-1)throw new Error(Il("An item with the same key has already been added. Key: {0}",t));Yn(e.hashMap,r[1]).push([t,n])}else e.hashMap.set(r[1],[[t,n]])}function Yc(e,t){const n=vo(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return!0;default:return!1}}function xa(e,t){const n=vo(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return Yn(e.hashMap,n[1]).splice(n[2],1),!0;default:return!1}}function D_(e,t){return N(()=>{const n=new Wf([],t);return Vl(r=>Uf(r,n),e)})}function O_(e,t,n){return N(()=>{const r=new Wf(e,n);return Vl(i=>Uf(i,r),t)})}function R_(e,t,n){return N(()=>{const r=new I_([],n),i=[],o=Ie(t);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const s=o["System.Collections.Generic.IEnumerator`1.get_Current"](),a=e(s);let l,u=Ae();l=[Hl(r,a,new yt(()=>u,f=>{u=f})),u],l[0]?l[1].push(s):(s1(r,a,[s]),i.push(a))}}finally{$e(o)}return Le(s=>[s,Yn(r,s)],i)})}function Zm(e,t){return qn(D_(e,t))}function Km(e,t,n){return qn(O_(e,t,n))}function F_(e,t,n){return qn(Le(r=>[r[0],qn(r[1])],R_(e,t,n)))}class P_ extends J{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvColumnIndex"]}}class L_ extends Ce{constructor(t,n,r,i){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=i}}class V_ extends J{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisCsvColumnIndex"]}}class Gi extends Ce{constructor(t,n,r,i,o){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=i,this.EmploymentBasis=o}}new Gi(void 0,void 0,void 0,void 0,void 0);function Zc(e,t){return new Gi(e.FirstName,e.LastName,e.Email,e.MobilePhone,xt(n=>n.fields[0],t))}class H_ extends J{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisRawValue"]}}class st extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FullTime","PartTime","Casual","LabourHire"]}}function Xm(e){switch(e.tag){case 1:return"Part-time";case 2:return"Casual";case 3:return"Labour hire";default:return"Full-time"}}function j_(e){switch(e.tag){case 1:return"PartTime";case 2:return"Casual";case 3:return"LabourHire";default:return"FullTime"}}function B_(e){switch(e){case"FullTime":return new st(0,[]);case"PartTime":return new st(1,[]);case"Casual":return new st(2,[]);case"LabourHire":return new st(3,[]);default:return}}class U_ extends Ce{constructor(t,n){super(),this.Head=t,this.Tail=n}}function W_(e){return Jr(Ge(t=>[t[1].fields[0],j_(t[0])],Tf([e.Head],e.Tail)),{Compare:$r})}class G_ extends J{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisColumn"]}}class Vr extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["WithoutEmploymentBasis","WithEmploymentBasis"]}}class _n extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["DraftColumnMappings","ValidatedColumnMappings"]}}class z_ extends J{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvColumnName"]}}class q_ extends J{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvDataRow"]}}class Y_ extends J{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvDataRows"]}}function Z_(e,t){let n;return new G_(Ge(r=>new H_(r),Cg(r=>r,Zm((n=Ge(r=>we(t.fields[0].fields[0],r.fields[0]),e.fields[0]),n.filter(r=>!ao(r))),{Equals:(r,i)=>r===i,GetHashCode:Jn}),{Compare:$r})))}class Jm extends J{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FileName"]}}class K_ extends Ce{constructor(t,n,r,i){super(),this.Name=t,this.HeaderRow=n,this.DataRows=r,this.SizeInBytes=i|0}}class Nt extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["InviteNow","InviteLater"]}}class Do extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Draft","Valid"]}}class ae extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FirstName","LastName","Email","MobilePhone","EmploymentBasis"]}}function Ji(e){switch(e.tag){case 1:return"Last name";case 2:return"Email";case 3:return"Mobile phone";case 4:return"Employment basis";default:return"First name"}}function cr(e){switch(e.tag){case 1:return"lastName";case 2:return"email";case 3:return"mobileNumber";case 4:return"employmentBasis";default:return"firstName"}}function Qm(e){switch(e){case"firstName":return new ae(0,[]);case"lastName":return new ae(1,[]);case"email":return new ae(2,[]);case"mobileNumber":return new ae(3,[]);case"employmentBasis":return new ae(4,[]);default:return}}let ir=class extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Set","Clear","Preview"]}};class Di extends Ce{constructor(t,n){super(),this.ColumnIndex=t,this.IncomingFields=n}}class X_ extends J{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["IncomingFields"]}}class Sn extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Available","Unavailable"]}}let Br=class extends Ce{constructor(t,n,r,i,o,s,a,l,u,f){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=i,this.EmploymentBasis=o,this.Preview=s,this.NumberOfIncomingFields=a|0,this.NumberOfDestinationFieldsMapped=l|0,this.NumberOfIncomingFieldsDiscarded=u|0,this.Status=f}};function J_(e,t){const n=t.tag===1?["lastname","surname","familyname"]:t.tag===2?["email"]:t.tag===3?["mobilephone","mobilephonenumber","mobilenumber","mobile","phonenumber","phone"]:t.tag===4?["employmentbasis","employmenttype"]:["firstname","givenname","christianname","forename","baptismname","baptismalname"];return xt(r=>r[0],Ts(r=>pi(Ml(r[1].fields[0],"[^a-zA-Z]","").toLocaleLowerCase(),n,{Equals:(i,o)=>i===o,GetHashCode:Jn}),e))}function Q_(e,t){return new X_(Ge(n=>{const r=n[0];return[r,n[1],pi(r,t,{Equals:ne,GetHashCode:es})?new Sn(1,[]):new Sn(0,[])]},e))}function eh(e,t,n){switch(t.tag){case 1:return[e.FirstName.ColumnIndex,n,e.Email.ColumnIndex,e.MobilePhone.ColumnIndex,e.EmploymentBasis.ColumnIndex];case 2:return[e.FirstName.ColumnIndex,e.LastName.ColumnIndex,n,e.MobilePhone.ColumnIndex,e.EmploymentBasis.ColumnIndex];case 3:return[e.FirstName.ColumnIndex,e.LastName.ColumnIndex,e.Email.ColumnIndex,n,e.EmploymentBasis.ColumnIndex];case 4:return[e.FirstName.ColumnIndex,e.LastName.ColumnIndex,e.Email.ColumnIndex,e.MobilePhone.ColumnIndex,n];default:return[n,e.LastName.ColumnIndex,e.Email.ColumnIndex,e.MobilePhone.ColumnIndex,e.EmploymentBasis.ColumnIndex]}}function Ur(e,t){return Ut(n=>n,Ge(n=>Mf(e.fields[0],n.fields[0]),t.fields[0].slice(void 0,10)))}function eu(e,t,n,r,i,o,s){let a,l,u;const f=m=>Q_(e,m);let d;d=Ut(m=>m,[n,r,i,o,s]).length;const h=n!=null?r!=null?i!=null?(a=i,l=n,u=r,new Do(1,[new L_(l,u,a,o),xt(m=>new V_(m),s)])):new Do(0,[new Gi(n,r,i,o,s)]):new Do(0,[new Gi(n,r,i,o,s)]):new Do(0,[new Gi(n,r,i,o,s)]);return new Br(new Di(n,f(Ut(m=>m,[r,i,o,s]))),new Di(r,f(Ut(m=>m,[n,i,o,s]))),new Di(i,f(Ut(m=>m,[n,r,o,s]))),new Di(o,f(Ut(m=>m,[n,r,i,s]))),new Di(s,f(Ut(m=>m,[n,r,i,o]))),t,e.length,d,e.length-d,h)}function Oi(e,t,n,r,i){let o,s,a;const l=[r,i];return a=eh(n,l[0],l[1]),eu(e,(o=n.Preview,o!=null&&ne(o[0],r)?(s=o[0],[s,Ur(i,t)]):n.Preview),a[0],a[1],a[2],a[3],a[4])}function Ri(e,t,n){let r,i;const o=[n,void 0];return i=eh(t,o[0],o[1]),eu(e,(r=t.Preview,r!=null&&ne(r[0],n)?(r[0],void 0):t.Preview),i[0],i[1],i[2],i[3],i[4])}function th(e,t){switch(t.tag){case 1:return e.LastName.ColumnIndex!=null;case 2:return e.Email.ColumnIndex!=null;case 3:return e.MobilePhone.ColumnIndex!=null;case 4:return e.EmploymentBasis.ColumnIndex!=null;default:return e.FirstName.ColumnIndex!=null}}const e2=e=>t=>th(e,t);function t2(e,t){const n=th(e,t),r=e.Preview;let i;switch(n?r==null?i=2:ne(r[0],t)?(i=1,r[0]):i=2:i=0,i){case 0:return!1;case 1:return!1;default:return!0}}function n2(e,t){let n,r,i,o,s,a,l,u,f;const d=p=>J_(e,p);return[(n=t==null?(r=d(new ae(0,[])),i=d(new ae(1,[])),o=d(new ae(2,[])),s=d(new ae(3,[])),a=d(new ae(4,[])),l=Ut(p=>p,[r,i,o,s,a]),u=p=>{let h,m;switch(p!=null?(h=p,l.filter(w=>ne(w,h)).length>1?m=0:m=1):m=1,m){case 0:return;default:return p}},[u(r),u(i),u(o),u(s),u(a)]):(f=t,[f.FirstName,f.LastName,f.Email,f.MobilePhone,f.EmploymentBasis]),eu(e,void 0,n[0],n[1],n[2],n[3],n[4])),Z()]}function r2(e,t,n,r){let i,o,s,a,l,u,f,d,p,h,m,w,b,x,C,E,$,I,P,L,S;switch(n.tag){case 1:{switch(n.fields[0].tag){case 1:{r.LastName.ColumnIndex!=null?m=6:m=15;break}case 2:{r.Email.ColumnIndex!=null?m=7:m=15;break}case 3:{r.MobilePhone.ColumnIndex!=null?m=8:m=15;break}case 4:{r.EmploymentBasis.ColumnIndex!=null?m=9:m=15;break}default:r.FirstName.ColumnIndex!=null?m=5:m=15}break}case 2:{switch(n.fields[0].tag){case 1:{r.LastName.ColumnIndex!=null?(m=11,I=r.LastName.ColumnIndex):m=15;break}case 2:{r.Email.ColumnIndex!=null?(m=12,P=r.Email.ColumnIndex):m=15;break}case 3:{r.MobilePhone.ColumnIndex!=null?(m=13,L=r.MobilePhone.ColumnIndex):m=15;break}case 4:{r.EmploymentBasis.ColumnIndex!=null?(m=14,S=r.EmploymentBasis.ColumnIndex):m=15;break}default:r.FirstName.ColumnIndex!=null?(m=10,$=r.FirstName.ColumnIndex):m=15}break}default:switch(n.fields[0].tag){case 1:{u=n.fields[1],!ne(r.LastName.ColumnIndex,u)&&r.LastName.IncomingFields.fields[0].some(_=>ne(u,_[0])?ne(_[2],new Sn(0,[])):!1)?(m=1,r.LastName.ColumnIndex,r.LastName.IncomingFields.fields[0],b=n.fields[1]):m=15;break}case 2:{f=n.fields[1],!ne(r.Email.ColumnIndex,f)&&r.Email.IncomingFields.fields[0].some(_=>ne(f,_[0])?ne(_[2],new Sn(0,[])):!1)?(m=2,r.Email.ColumnIndex,r.Email.IncomingFields.fields[0],x=n.fields[1]):m=15;break}case 3:{d=n.fields[1],!ne(r.MobilePhone.ColumnIndex,d)&&r.MobilePhone.IncomingFields.fields[0].some(_=>ne(d,_[0])?ne(_[2],new Sn(0,[])):!1)?(m=3,r.MobilePhone.ColumnIndex,r.MobilePhone.IncomingFields.fields[0],C=n.fields[1]):m=15;break}case 4:{p=n.fields[1],!ne(r.EmploymentBasis.ColumnIndex,p)&&r.EmploymentBasis.IncomingFields.fields[0].some(_=>ne(p,_[0])?ne(_[2],new Sn(0,[])):!1)?(m=4,r.EmploymentBasis.ColumnIndex,r.EmploymentBasis.IncomingFields.fields[0],E=n.fields[1]):m=15;break}default:h=n.fields[1],!ne(r.FirstName.ColumnIndex,h)&&r.FirstName.IncomingFields.fields[0].some(_=>ne(h,_[0])?ne(_[2],new Sn(0,[])):!1)?(m=0,r.FirstName.ColumnIndex,r.FirstName.IncomingFields.fields[0],w=n.fields[1]):m=15}}switch(m){case 0:return[(i=[new ae(0,[]),w],Oi(e,t,r,i[0],i[1])),Z()];case 1:return[(o=[new ae(1,[]),b],Oi(e,t,r,o[0],o[1])),Z()];case 2:return[(s=[new ae(2,[]),x],Oi(e,t,r,s[0],s[1])),Z()];case 3:return[(a=[new ae(3,[]),C],Oi(e,t,r,a[0],a[1])),Z()];case 4:return[(l=[new ae(4,[]),E],Oi(e,t,r,l[0],l[1])),Z()];case 5:return[Ri(e,r,new ae(0,[])),Z()];case 6:return[Ri(e,r,new ae(1,[])),Z()];case 7:return[Ri(e,r,new ae(2,[])),Z()];case 8:return[Ri(e,r,new ae(3,[])),Z()];case 9:return[Ri(e,r,new ae(4,[])),Z()];case 10:return[new Br(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new ae(0,[]),Ur($,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),Z()];case 11:return[new Br(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new ae(1,[]),Ur(I,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),Z()];case 12:return[new Br(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new ae(2,[]),Ur(P,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),Z()];case 13:return[new Br(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new ae(3,[]),Ur(L,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),Z()];case 14:return[new Br(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new ae(4,[]),Ur(S,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),Z()];default:return[r,Z()]}}const nh=typeof document<"u"?X.useLayoutEffect:()=>{};function i2(e){const t=se(null);return nh(()=>{t.current=e},[e]),Te((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}const bo=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},hr=e=>e&&"window"in e&&e.window===e?e:bo(e).defaultView||window;function o2(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function s2(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function rh(e){let t=null;return()=>(t==null&&(t=e()),t)}const a2=rh(function(){return s2(/^Mac/i)}),l2=rh(function(){return o2(/Android/i)});function u2(e){return e.mozInputSource===0&&e.isTrusted?!0:l2()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}class c2{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function ih(e){let t=se({isFocused:!1,observer:null});nh(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=i2(r=>{e==null||e(r)});return Te(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,o=s=>{t.current.isFocused=!1,i.disabled&&n(new c2("blur",s)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let a=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function d2(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=Te(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),s=ih(o),a=Te(l=>{const u=bo(l.target);l.target===l.currentTarget&&u.activeElement===l.target&&(n&&n(l),i&&i(!0),s(l))},[i,n,s]);return{focusProps:{onFocus:!t&&(n||i||r)?a:void 0,onBlur:!t&&(r||i)?o:void 0}}}let _o=null,Qa=new Set,zi=new Map,Sr=!1,el=!1;const f2={Tab:!0,Escape:!0};function tu(e,t){for(let n of Qa)n(e,t)}function m2(e){return!(e.metaKey||!a2()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function hs(e){Sr=!0,m2(e)&&(_o="keyboard",tu("keyboard",e))}function Zt(e){_o="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Sr=!0,tu("pointer",e))}function oh(e){u2(e)&&(Sr=!0,_o="virtual")}function sh(e){e.target===window||e.target===document||(!Sr&&!el&&(_o="virtual",tu("virtual",e)),Sr=!1,el=!1)}function ah(){Sr=!1,el=!0}function tl(e){if(typeof window>"u"||zi.get(hr(e)))return;const t=hr(e),n=bo(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Sr=!0,r.apply(this,arguments)},n.addEventListener("keydown",hs,!0),n.addEventListener("keyup",hs,!0),n.addEventListener("click",oh,!0),t.addEventListener("focus",sh,!0),t.addEventListener("blur",ah,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Zt,!0),n.addEventListener("pointermove",Zt,!0),n.addEventListener("pointerup",Zt,!0)):(n.addEventListener("mousedown",Zt,!0),n.addEventListener("mousemove",Zt,!0),n.addEventListener("mouseup",Zt,!0)),t.addEventListener("beforeunload",()=>{lh(e)},{once:!0}),zi.set(t,{focus:r})}const lh=(e,t)=>{const n=hr(e),r=bo(e);t&&r.removeEventListener("DOMContentLoaded",t),zi.has(n)&&(n.HTMLElement.prototype.focus=zi.get(n).focus,r.removeEventListener("keydown",hs,!0),r.removeEventListener("keyup",hs,!0),r.removeEventListener("click",oh,!0),n.removeEventListener("focus",sh,!0),n.removeEventListener("blur",ah,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Zt,!0),r.removeEventListener("pointermove",Zt,!0),r.removeEventListener("pointerup",Zt,!0)):(r.removeEventListener("mousedown",Zt,!0),r.removeEventListener("mousemove",Zt,!0),r.removeEventListener("mouseup",Zt,!0)),zi.delete(n))};function h2(e){const t=bo(e);let n;return t.readyState!=="loading"?tl(e):(n=()=>{tl(e)},t.addEventListener("DOMContentLoaded",n)),()=>lh(e,n)}typeof document<"u"&&h2();function uh(){return _o!=="pointer"}const p2=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function g2(e,t,n){var r;const i=typeof window<"u"?hr(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,o=typeof window<"u"?hr(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?hr(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window<"u"?hr(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof i&&!p2.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof o||(n==null?void 0:n.target)instanceof s&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof a&&!f2[n.key])}function y2(e,t,n){tl(),De(()=>{let r=(i,o)=>{g2(!!(n!=null&&n.isTextInput),i,o)&&e(uh())};return Qa.add(r),()=>{Qa.delete(r)}},t)}function w2(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=se({isFocusWithin:!1}),s=Te(u=>{o.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,o]),a=ih(s),l=Te(u=>{!o.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),i&&i(!0),o.current.isFocusWithin=!0,a(u))},[r,i,a]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:s}}}let ps=!1,Ca=0;function nl(){ps=!0,setTimeout(()=>{ps=!1},50)}function Kc(e){e.pointerType==="touch"&&nl()}function v2(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Kc):document.addEventListener("touchend",nl),Ca++,()=>{Ca--,!(Ca>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Kc):document.removeEventListener("touchend",nl))}}function b2(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,s]=ye(!1),a=se({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;De(v2,[]);let{hoverProps:l,triggerHoverEnd:u}=de(()=>{let f=(h,m)=>{if(a.pointerType=m,i||m==="touch"||a.isHovered||!h.currentTarget.contains(h.target))return;a.isHovered=!0;let w=h.currentTarget;a.target=w,t&&t({type:"hoverstart",target:w,pointerType:m}),n&&n(!0),s(!0)},d=(h,m)=>{if(a.pointerType="",a.target=null,m==="touch"||!a.isHovered)return;a.isHovered=!1;let w=h.currentTarget;r&&r({type:"hoverend",target:w,pointerType:m}),n&&n(!1),s(!1)},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=h=>{ps&&h.pointerType==="mouse"||f(h,h.pointerType)},p.onPointerLeave=h=>{!i&&h.currentTarget.contains(h.target)&&d(h,h.pointerType)}):(p.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=h=>{!a.ignoreEmulatedMouseEvents&&!ps&&f(h,"mouse"),a.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=h=>{!i&&h.currentTarget.contains(h.target)&&d(h,"mouse")}),{hoverProps:p,triggerHoverEnd:d}},[t,n,r,i,a]);return De(()=>{i&&u({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:l,isHovered:o}}function _2(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=se({isFocused:!1,isFocusVisible:t||uh()}),[o,s]=ye(!1),[a,l]=ye(()=>i.current.isFocused&&i.current.isFocusVisible),u=Te(()=>l(i.current.isFocused&&i.current.isFocusVisible),[]),f=Te(h=>{i.current.isFocused=h,s(h),u()},[u]);y2(h=>{i.current.isFocusVisible=h,u()},[],{isTextInput:n});let{focusProps:d}=d2({isDisabled:r,onFocusChange:f}),{focusWithinProps:p}=w2({isDisabled:!r,onFocusWithinChange:f});return{isFocused:o,isFocusVisible:a,focusProps:r?p:d}}var x2=Object.defineProperty,C2=(e,t,n)=>t in e?x2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Sa=(e,t,n)=>(C2(e,typeof t!="symbol"?t+"":t,n),n);let S2=class{constructor(){Sa(this,"current",this.detect()),Sa(this,"handoffState","pending"),Sa(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"}},yr=new S2;function _i(e){return yr.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function Hs(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Pn(){let e=[],t={addEventListener(n,r,i,o){return n.addEventListener(r,i,o),t.add(()=>n.removeEventListener(r,i,o))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return Hs(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,i){let o=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:o})})},group(n){let r=Pn();return n(r),this.add(()=>r.dispose())},add(n){return e.includes(n)||e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let i of e.splice(r,1))i()}},dispose(){for(let n of e.splice(0))n()}};return t}function tr(){let[e]=ye(Pn);return De(()=>()=>e.dispose(),[e]),e}let ze=(e,t)=>{yr.isServer?De(e,t):Rn(e,t)};function nr(e){let t=se(e);return ze(()=>{t.current=e},[e]),t}let ue=function(e){let t=nr(e);return X.useCallback((...n)=>t.current(...n),[t])};function E2(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function A2(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function k2({disabled:e=!1}={}){let t=se(null),[n,r]=ye(!1),i=tr(),o=ue(()=>{t.current=null,r(!1),i.dispose()}),s=ue(a=>{if(i.dispose(),t.current===null){t.current=a.currentTarget,r(!0);{let l=_i(a.currentTarget);i.addEventListener(l,"pointerup",o,!1),i.addEventListener(l,"pointermove",u=>{if(t.current){let f=E2(u);r(A2(f,t.current.getBoundingClientRect()))}},!1),i.addEventListener(l,"pointercancel",o,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:s,onPointerUp:o,onClick:o}}}let N2=Je(void 0);function nu(){return Oe(N2)}function rl(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function Rt(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Rt),r}var ui=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(ui||{}),Wn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Wn||{});function wt(){let e=$2();return Te(t=>T2({mergeRefs:e,...t}),[e])}function T2({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:s,mergeRefs:a}){a=a??M2;let l=ch(t,e);if(o)return Oo(l,n,r,s,a);let u=i??0;if(u&2){let{static:f=!1,...d}=l;if(f)return Oo(d,n,r,s,a)}if(u&1){let{unmount:f=!0,...d}=l;return Rt(f?0:1,{0(){return null},1(){return Oo({...d,hidden:!0,style:{display:"none"}},n,r,s,a)}})}return Oo(l,n,r,s,a)}function Oo(e,t={},n,r,i){let{as:o=n,children:s,refName:a="ref",...l}=Ea(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 d={};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,b=>`-${b.toLowerCase()}`));if(p){d["data-headlessui-state"]=h.join(" ");for(let m of h)d[`data-${m}`]=""}}if(o===Ue&&(Object.keys(Hn(l)).length>0||Object.keys(Hn(d)).length>0))if(!fi(f)||Array.isArray(f)&&f.length>1){if(Object.keys(Hn(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(Hn(l)).concat(Object.keys(Hn(d))).map(p=>` - ${p}`).join(`
|
|
32
46
|
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(p=>` - ${p}`).join(`
|
|
33
47
|
`)].join(`
|
|
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
|
-
|
|
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();
|
|
48
|
+
`))}else{let p=f.props,h=p==null?void 0:p.className,m=typeof h=="function"?(...x)=>rl(h(...x),l.className):rl(h,l.className),w=m?{className:m}:{},b=ch(f.props,Hn(Ea(l,["ref"])));for(let x in d)x in b&&delete d[x];return kl(f,Object.assign({},b,d,u,{ref:i(I2(f),u.ref)},w))}return c(o,Object.assign({},Ea(l,["ref"]),o!==Ue&&u,o!==Ue&&d),f)}function $2(){let e=se([]),t=Te(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 M2(...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 ch(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[i=>{var o;return(o=i==null?void 0:i.preventDefault)==null?void 0:o.call(i)}]);for(let r in n)Object.assign(t,{[r](i,...o){let s=n[r];for(let a of s){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;a(i,...o)}}});return t}function dh(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];for(let r in n)Object.assign(t,{[r](...i){let o=n[r];for(let s of o)s==null||s(...i)}});return t}function ct(e){var t;return Object.assign(El(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Hn(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Ea(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function I2(e){return X.version.split(".")[0]>="19"?e.props.ref:e.ref}function D2(e,t,n){let[r,i]=ye(n),o=e!==void 0,s=se(o),a=se(!1),l=se(!1);return o&&!s.current&&!a.current?(a.current=!0,s.current=o,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!o&&s.current&&!l.current&&(l.current=!0,s.current=o,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[o?e:r,ue(u=>(o||i(u),t==null?void 0:t(u)))]}function O2(e){let[t]=ye(e);return t}function fh(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))hh(n,mh(t,r),i);return n}function mh(e,t){return e?e+"["+t+"]":t}function hh(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())hh(e,mh(t,r.toString()),i);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):fh(n,t,e)}function R2(e){var t,n;let r=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(r){for(let i of r.elements)if(i!==e&&(i.tagName==="INPUT"&&i.type==="submit"||i.tagName==="BUTTON"&&i.type==="submit"||i.nodeName==="INPUT"&&i.type==="image")){i.click();return}(n=r.requestSubmit)==null||n.call(r)}}let F2="span";var ci=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(ci||{});function P2(e,t){var n;let{features:r=1,...i}=e,o={ref:t,"aria-hidden":(r&2)===2?!0:(n=i["aria-hidden"])!=null?n:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return wt()({ourProps:o,theirProps:i,slot:{},defaultTag:F2,name:"Hidden"})}let Qi=ct(P2),L2=Je(null);function V2({children:e}){let t=Oe(L2);if(!t)return X.createElement(X.Fragment,null,e);let{target:n}=t;return n?Ss(X.createElement(X.Fragment,null,e),n):null}function H2({data:e,form:t,disabled:n,onReset:r,overrides:i}){let[o,s]=ye(null),a=tr();return De(()=>{if(r&&o)return a.addEventListener(o,"reset",r)},[o,t,r]),X.createElement(V2,null,X.createElement(j2,{setForm:s,formId:t}),fh(e).map(([l,u])=>X.createElement(Qi,{features:ci.Hidden,...Hn({key:l,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:l,value:u,...i})})))}function j2({setForm:e,formId:t}){return De(()=>{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:X.createElement(Qi,{features:ci.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:n=>{if(!n)return;let r=n.closest("form");r&&e(r)}})}let B2=Je(void 0);function ph(){return Oe(B2)}function U2(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&W2(n)?!1:r}function W2(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let gh=Symbol();function G2(e,t=!0){return Object.assign(e,{[gh]:t})}function kt(...e){let t=se(e);De(()=>{t.current=e},[e]);let n=ue(r=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(r):i.current=r)});return e.every(r=>r==null||(r==null?void 0:r[gh]))?void 0:n}let js=Je(null);js.displayName="DescriptionContext";function yh(){let e=Oe(js);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,yh),t}return e}function z2(){var e,t;return(t=(e=Oe(js))==null?void 0:e.value)!=null?t:void 0}function q2(){let[e,t]=ye([]);return[e.length>0?e.join(" "):void 0,de(()=>function(n){let r=ue(o=>(t(s=>[...s,o]),()=>t(s=>{let a=s.slice(),l=a.indexOf(o);return l!==-1&&a.splice(l,1),a}))),i=de(()=>({register:r,slot:n.slot,name:n.name,props:n.props,value:n.value}),[r,n.slot,n.name,n.props,n.value]);return X.createElement(js.Provider,{value:i},n.children)},[t])]}let Y2="p";function Z2(e,t){let n=Jt(),r=nu(),{id:i=`headlessui-description-${n}`,...o}=e,s=yh(),a=kt(t);ze(()=>s.register(i),[i,s.register]);let l=r||!1,u=de(()=>({...s.slot,disabled:l}),[s.slot,l]),f={ref:a,...s.props,id:i};return wt()({ourProps:f,theirProps:o,slot:u,defaultTag:Y2,name:s.name||"Description"})}let K2=ct(Z2),X2=Object.assign(K2,{});var ft=(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))(ft||{});let Bs=Je(null);Bs.displayName="LabelContext";function wh(){let e=Oe(Bs);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,wh),t}return e}function vh(e){var t,n,r;let i=(n=(t=Oe(Bs))==null?void 0:t.value)!=null?n:void 0;return((r=e==null?void 0:e.length)!=null?r:0)>0?[i,...e].filter(Boolean).join(" "):i}function J2({inherit:e=!1}={}){let t=vh(),[n,r]=ye([]),i=e?[t,...n].filter(Boolean):n;return[i.length>0?i.join(" "):void 0,de(()=>function(o){let s=ue(l=>(r(u=>[...u,l]),()=>r(u=>{let f=u.slice(),d=f.indexOf(l);return d!==-1&&f.splice(d,1),f}))),a=de(()=>({register:s,slot:o.slot,name:o.name,props:o.props,value:o.value}),[s,o.slot,o.name,o.props,o.value]);return X.createElement(Bs.Provider,{value:a},o.children)},[r])]}let Q2="label";function ex(e,t){var n;let r=Jt(),i=wh(),o=ph(),s=nu(),{id:a=`headlessui-label-${r}`,htmlFor:l=o??((n=i.props)==null?void 0:n.htmlFor),passive:u=!1,...f}=e,d=kt(t);ze(()=>i.register(a),[a,i.register]);let p=ue(b=>{let x=b.currentTarget;if(x instanceof HTMLLabelElement&&b.preventDefault(),i.props&&"onClick"in i.props&&typeof i.props.onClick=="function"&&i.props.onClick(b),x instanceof HTMLLabelElement){let C=document.getElementById(x.htmlFor);if(C){let E=C.getAttribute("disabled");if(E==="true"||E==="")return;let $=C.getAttribute("aria-disabled");if($==="true"||$==="")return;(C instanceof HTMLInputElement&&(C.type==="radio"||C.type==="checkbox")||C.role==="radio"||C.role==="checkbox"||C.role==="switch")&&C.click(),C.focus({preventScroll:!0})}}}),h=s||!1,m=de(()=>({...i.slot,disabled:h}),[i.slot,h]),w={ref:d,...i.props,id:a,htmlFor:l,onClick:p};return u&&("onClick"in w&&(delete w.htmlFor,delete w.onClick),"onClick"in f&&delete f.onClick),wt()({ourProps:w,theirProps:f,slot:m,defaultTag:l?Q2:"div",name:i.name||"Label"})}let tx=ct(ex),nx=Object.assign(tx,{}),rx=Je(()=>{});function ix({value:e,children:t}){return X.createElement(rx.Provider,{value:e},t)}function ox(e,t){return e!==null&&t!==null&&typeof e=="object"&&typeof t=="object"&&"id"in e&&"id"in t?e.id===t.id:e===t}function sx(e=ox){return Te((t,n)=>{if(typeof e=="string"){let r=e;return(t==null?void 0:t[r])===(n==null?void 0:n[r])}return e(t,n)},[e])}function ax(e){if(e===null)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function lx(e,t=!1){let[n,r]=Tr(()=>({}),{}),i=de(()=>ax(e),[e,n]);return ze(()=>{if(!e)return;let o=new ResizeObserver(r);return o.observe(e),()=>{o.disconnect()}},[e]),t?{width:`${i.width}px`,height:`${i.height}px`}:i}let ux=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 bh(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(i){return r.add(i),()=>r.delete(i)},dispatch(i,...o){let s=t[i].call(n,...o);s&&(n=s,r.forEach(a=>a()))}}}function _h(e){return Cs(e.subscribe,e.getSnapshot,e.getSnapshot)}let cx=new ux(()=>bh(()=>[],{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 xi(e,t){let n=cx.get(t),r=Jt(),i=_h(n);if(ze(()=>{if(e)return n.dispatch("ADD",r),()=>n.dispatch("REMOVE",r)},[n,e]),!e)return!1;let o=i.indexOf(r),s=i.length;return o===-1&&(o=s,s+=1),o===s-1}let il=new Map,qi=new Map;function Xc(e){var t;let n=(t=qi.get(e))!=null?t:0;return qi.set(e,n+1),n!==0?()=>Jc(e):(il.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>Jc(e))}function Jc(e){var t;let n=(t=qi.get(e))!=null?t:1;if(n===1?qi.delete(e):qi.set(e,n-1),n!==1)return;let r=il.get(e);r&&(r["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,il.delete(e))}function xh(e,{allowed:t,disallowed:n}={}){let r=xi(e,"inert-others");ze(()=>{var i,o;if(!r)return;let s=Pn();for(let l of(i=n==null?void 0:n())!=null?i:[])l&&s.add(Xc(l));let a=(o=t==null?void 0:t())!=null?o:[];for(let l of a){if(!l)continue;let u=_i(l);if(!u)continue;let f=l.parentElement;for(;f&&f!==u.body;){for(let d of f.children)a.some(p=>d.contains(p))||s.add(Xc(d));f=f.parentElement}}return s.dispose},[r,t,n])}function Ch(e,t,n){let r=nr(i=>{let o=i.getBoundingClientRect();o.x===0&&o.y===0&&o.width===0&&o.height===0&&n()});De(()=>{if(!e)return;let i=t===null?null:t instanceof HTMLElement?t:t.current;if(!i)return;let o=Pn();if(typeof ResizeObserver<"u"){let s=new ResizeObserver(()=>r.current(i));s.observe(i),o.add(()=>s.disconnect())}if(typeof IntersectionObserver<"u"){let s=new IntersectionObserver(()=>r.current(i));s.observe(i),o.add(()=>s.disconnect())}return()=>o.dispose()},[t,r,e])}let gs=["[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(","),dx=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var ln=(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))(ln||{}),ol=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(ol||{}),fx=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(fx||{});function Sh(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(gs)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}function mx(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(dx)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var ru=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(ru||{});function Eh(e,t=0){var n;return e===((n=_i(e))==null?void 0:n.body)?!1:Rt(t,{0(){return e.matches(gs)},1(){let r=e;for(;r!==null;){if(r.matches(gs))return!0;r=r.parentElement}return!1}})}var hx=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(hx||{});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 Mn(e){e==null||e.focus({preventScroll:!0})}let px=["textarea","input"].join(",");function gx(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,px))!=null?n:!1}function Ah(e,t=n=>n){return e.slice().sort((n,r)=>{let i=t(n),o=t(r);if(i===null||o===null)return 0;let s=i.compareDocumentPosition(o);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function yx(e,t){return ei(Sh(),t,{relativeTo:e})}function ei(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:i=[]}={}){let o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,s=Array.isArray(e)?n?Ah(e):e:t&64?mx(e):Sh(e);i.length>0&&s.length>1&&(s=s.filter(h=>!i.some(m=>m!=null&&"current"in m?(m==null?void 0:m.current)===h:m===h))),r=r??o.activeElement;let a=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,s.indexOf(r))-1;if(t&4)return Math.max(0,s.indexOf(r))+1;if(t&8)return s.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=t&32?{preventScroll:!0}:{},f=0,d=s.length,p;do{if(f>=d||f+d<=0)return 0;let h=l+f;if(t&16)h=(h+d)%d;else{if(h<0)return 3;if(h>=d)return 1}p=s[h],p==null||p.focus(u),f+=a}while(p!==o.activeElement);return t&6&&gx(p)&&p.select(),2}function kh(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function wx(){return/Android/gi.test(window.navigator.userAgent)}function vx(){return kh()||wx()}function Fi(e,t,n,r){let i=nr(n);De(()=>{if(!e)return;function o(s){i.current(s)}return document.addEventListener(t,o,r),()=>document.removeEventListener(t,o,r)},[e,t,r])}function Nh(e,t,n,r){let i=nr(n);De(()=>{if(!e)return;function o(s){i.current(s)}return window.addEventListener(t,o,r),()=>window.removeEventListener(t,o,r)},[e,t,r])}const Qc=30;function Th(e,t,n){let r=xi(e,"outside-click"),i=nr(n),o=Te(function(l,u){if(l.defaultPrevented)return;let f=u(l);if(f===null||!f.getRootNode().contains(f)||!f.isConnected)return;let d=function p(h){return typeof h=="function"?p(h()):Array.isArray(h)||h instanceof Set?h:[h]}(t);for(let p of d)if(p!==null&&(p.contains(f)||l.composed&&l.composedPath().includes(p)))return;return!Eh(f,ru.Loose)&&f.tabIndex!==-1&&l.preventDefault(),i.current(l,f)},[i,t]),s=se(null);Fi(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),Fi(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),Fi(r,"click",l=>{vx()||s.current&&(o(l,()=>s.current),s.current=null)},!0);let a=se({x:0,y:0});Fi(r,"touchstart",l=>{a.current.x=l.touches[0].clientX,a.current.y=l.touches[0].clientY},!0),Fi(r,"touchend",l=>{let u={x:l.changedTouches[0].clientX,y:l.changedTouches[0].clientY};if(!(Math.abs(u.x-a.current.x)>=Qc||Math.abs(u.y-a.current.y)>=Qc))return o(l,()=>l.target instanceof HTMLElement?l.target:null)},!0),Nh(r,"blur",l=>o(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Ci(...e){return de(()=>_i(...e),[...e])}function $h(e,t,n,r){let i=nr(n);De(()=>{e=e??window;function o(s){i.current(s)}return e.addEventListener(t,o,r),()=>e.removeEventListener(t,o,r)},[e,t,r])}function bx(e,t){return de(()=>{var n;if(e.type)return e.type;let r=(n=e.as)!=null?n:"button";if(typeof r=="string"&&r.toLowerCase()==="button"||(t==null?void 0:t.tagName)==="BUTTON"&&!t.hasAttribute("type"))return"button"},[e.type,e.as,t])}function _x(){let e;return{before({doc:t}){var n;let r=t.documentElement,i=(n=t.defaultView)!=null?n:window;e=Math.max(0,i.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,i=Math.max(0,r.clientWidth-r.offsetWidth),o=Math.max(0,e-i);n.style(r,"paddingRight",`${o}px`)}}}function xx(){return kh()?{before({doc:e,d:t,meta:n}){function r(i){return n.containers.flatMap(o=>o()).some(o=>o.contains(i))}t.microTask(()=>{var i;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let a=Pn();a.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>a.dispose()))}let o=(i=window.scrollY)!=null?i:window.pageYOffset,s=null;t.addEventListener(e,"click",a=>{if(a.target instanceof HTMLElement)try{let l=a.target.closest("a");if(!l)return;let{hash:u}=new URL(l.href),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;o!==l&&window.scrollTo(0,o),s&&s.isConnected&&(s.scrollIntoView({block:"nearest"}),s=null)})})}}:{}}function Cx(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function Sx(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let pr=bh(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Pn(),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:Sx(n)},i=[xx(),_x(),Cx()];i.forEach(({before:o})=>o==null?void 0:o(r)),i.forEach(({after:o})=>o==null?void 0:o(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});pr.subscribe(()=>{let e=pr.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",i=n.count!==0;(i&&!r||!i&&r)&&pr.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&pr.dispatch("TEARDOWN",n)}});function Ex(e,t,n=()=>({containers:[]})){let r=_h(pr),i=t?r.get(t):void 0,o=i?i.count>0:!1;return ze(()=>{if(!(!t||!e))return pr.dispatch("PUSH",t,n),()=>pr.dispatch("POP",t,n)},[e,t]),o}function Mh(e,t,n=()=>[document.body]){let r=xi(e,"scroll-lock");Ex(r,t,i=>{var o;return{containers:[...(o=i.containers)!=null?o:[],n]}})}function ed(e){return[e.screenX,e.screenY]}function Ax(){let e=se([-1,-1]);return{wasMoved(t){let n=ed(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=ed(t)}}}function kx(e=0){let[t,n]=ye(e),r=Te(l=>n(l),[t]),i=Te(l=>n(u=>u|l),[t]),o=Te(l=>(t&l)===l,[t]),s=Te(l=>n(u=>u&~l),[n]),a=Te(l=>n(u=>u^l),[n]);return{flags:t,setFlag:r,addFlag:i,hasFlag:o,removeFlag:s,toggleFlag:a}}var Nx={},td,nd;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((td=process==null?void 0:Nx)==null?void 0:td.NODE_ENV)==="test"&&typeof((nd=Element==null?void 0:Element.prototype)==null?void 0:nd.getAnimations)>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
|
|
49
|
+
`)),[]});var Tx=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(Tx||{});function Ih(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function Dh(e,t,n,r){let[i,o]=ye(n),{hasFlag:s,addFlag:a,removeFlag:l}=kx(e&&i?3:0),u=se(!1),f=se(!1),d=tr();return ze(()=>{var p;if(e){if(n&&o(!0),!t){n&&a(3);return}return(p=r==null?void 0:r.start)==null||p.call(r,n),$x(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||o(!1),(h=r==null?void 0:r.end)==null||h.call(r,n))}})}},[e,n,t,d]),e?[i,{closed:s(1),enter:s(2),leave:s(4),transition:s(2)||s(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function $x(e,{prepare:t,run:n,done:r,inFlight:i}){let o=Pn();return Ix(e,{prepare:t,inFlight:i}),o.nextFrame(()=>{n(),o.requestAnimationFrame(()=>{o.add(Mx(e,r))})}),o.dispose}function Mx(e,t){var n,r;let i=Pn();if(!e)return i.dispose;let o=!1;i.add(()=>{o=!0});let s=(r=(n=e.getAnimations)==null?void 0:n.call(e).filter(a=>a instanceof CSSTransition))!=null?r:[];return s.length===0?(t(),i.dispose):(Promise.allSettled(s.map(a=>a.finished)).then(()=>{o||t()}),i.dispose)}function Ix(e,{inFlight:t,prepare:n}){if(t!=null&&t.current){n();return}let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}function iu(e,t){let n=se([]),r=ue(e);De(()=>{let i=[...n.current];for(let[o,s]of t.entries())if(n.current[o]!==s){let a=r(t,i);return n.current=t,a}},[r,...t])}function Us(){return typeof window<"u"}function Si(e){return Oh(e)?(e.nodeName||"").toLowerCase():"#document"}function Gt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function vn(e){var t;return(t=(Oh(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Oh(e){return Us()?e instanceof Node||e instanceof Gt(e).Node:!1}function $t(e){return Us()?e instanceof Element||e instanceof Gt(e).Element:!1}function yn(e){return Us()?e instanceof HTMLElement||e instanceof Gt(e).HTMLElement:!1}function rd(e){return!Us()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Gt(e).ShadowRoot}function xo(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=fn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Dx(e){return["table","td","th"].includes(Si(e))}function Ws(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function ou(e){const t=su(),n=$t(e)?fn(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Ox(e){let t=Kn(e);for(;yn(t)&&!di(t);){if(ou(t))return t;if(Ws(t))return null;t=Kn(t)}return null}function su(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function di(e){return["html","body","#document"].includes(Si(e))}function fn(e){return Gt(e).getComputedStyle(e)}function Gs(e){return $t(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Kn(e){if(Si(e)==="html")return e;const t=e.assignedSlot||e.parentNode||rd(e)&&e.host||vn(e);return rd(t)?t.host:t}function Rh(e){const t=Kn(e);return di(t)?e.ownerDocument?e.ownerDocument.body:e.body:yn(t)&&xo(t)?t:Rh(t)}function eo(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Rh(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=Gt(i);if(o){const a=sl(s);return t.concat(s,s.visualViewport||[],xo(i)?i:[],a&&n?eo(a):[])}return t.concat(i,eo(i,[],n))}function sl(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Rx(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}const Er=Math.min,_t=Math.max,to=Math.round,Ro=Math.floor,pn=e=>({x:e,y:e}),Fx={left:"right",right:"left",bottom:"top",top:"bottom"},Px={start:"end",end:"start"};function id(e,t,n){return _t(e,Er(t,n))}function Ei(e,t){return typeof e=="function"?e(t):e}function Xn(e){return e.split("-")[0]}function Co(e){return e.split("-")[1]}function Fh(e){return e==="x"?"y":"x"}function Ph(e){return e==="y"?"height":"width"}function Ar(e){return["top","bottom"].includes(Xn(e))?"y":"x"}function Lh(e){return Fh(Ar(e))}function Lx(e,t,n){n===void 0&&(n=!1);const r=Co(e),i=Lh(e),o=Ph(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=ys(s)),[s,ys(s)]}function Vx(e){const t=ys(e);return[al(e),t,al(t)]}function al(e){return e.replace(/start|end/g,t=>Px[t])}function Hx(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:s;default:return[]}}function jx(e,t,n,r){const i=Co(e);let o=Hx(Xn(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(al)))),o}function ys(e){return e.replace(/left|right|bottom|top/g,t=>Fx[t])}function Bx(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ux(e){return typeof e!="number"?Bx(e):{top:e,right:e,bottom:e,left:e}}function ws(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function od(e,t,n){let{reference:r,floating:i}=e;const o=Ar(t),s=Lh(t),a=Ph(s),l=Xn(t),u=o==="y",f=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,p=r[a]/2-i[a]/2;let h;switch(l){case"top":h={x:f,y:r.y-i.height};break;case"bottom":h={x:f,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-i.width,y:d};break;default:h={x:r.x,y:r.y}}switch(Co(t)){case"start":h[s]-=p*(n&&u?-1:1);break;case"end":h[s]+=p*(n&&u?-1:1);break}return h}const Wx=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:d}=od(u,r,l),p=r,h={},m=0;for(let w=0;w<a.length;w++){const{name:b,fn:x}=a[w],{x:C,y:E,data:$,reset:I}=await x({x:f,y:d,initialPlacement:r,placement:p,strategy:i,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});f=C??f,d=E??d,h={...h,[b]:{...h[b],...$}},I&&m<=50&&(m++,typeof I=="object"&&(I.placement&&(p=I.placement),I.rects&&(u=I.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):I.rects),{x:f,y:d}=od(u,p,l)),w=-1)}return{x:f,y:d,placement:p,strategy:i,middlewareData:h}};async function zs(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=Ei(t,e),m=Ux(h),b=a[p?d==="floating"?"reference":"floating":d],x=ws(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(b)))==null||n?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:f,strategy:l})),C=d==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,E=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),$=await(o.isElement==null?void 0:o.isElement(E))?await(o.getScale==null?void 0:o.getScale(E))||{x:1,y:1}:{x:1,y:1},I=ws(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:C,offsetParent:E,strategy:l}):C);return{top:(x.top-I.top+m.top)/$.y,bottom:(I.bottom-x.bottom+m.bottom)/$.y,left:(x.left-I.left+m.left)/$.x,right:(I.right-x.right+m.right)/$.x}}const Gx=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:s,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:w=!0,...b}=Ei(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const x=Xn(i),C=Ar(a),E=Xn(a)===a,$=await(l.isRTL==null?void 0:l.isRTL(u.floating)),I=p||(E||!w?[ys(a)]:Vx(a)),P=m!=="none";!p&&P&&I.push(...jx(a,w,m,$));const L=[a,...I],S=await zs(t,b),_=[];let k=((r=o.flip)==null?void 0:r.overflows)||[];if(f&&_.push(S[x]),d){const q=Lx(i,s,$);_.push(S[q[0]],S[q[1]])}if(k=[...k,{placement:i,overflows:_}],!_.every(q=>q<=0)){var T,D;const q=(((T=o.flip)==null?void 0:T.index)||0)+1,he=L[q];if(he)return{data:{index:q,overflows:k},reset:{placement:he}};let Y=(D=k.filter(G=>G.overflows[0]<=0).sort((G,F)=>G.overflows[1]-F.overflows[1])[0])==null?void 0:D.placement;if(!Y)switch(h){case"bestFit":{var O;const G=(O=k.filter(F=>{if(P){const W=Ar(F.placement);return W===C||W==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(W=>W>0).reduce((W,B)=>W+B,0)]).sort((F,W)=>F[1]-W[1])[0])==null?void 0:O[0];G&&(Y=G);break}case"initialPlacement":Y=a;break}if(i!==Y)return{reset:{placement:Y}}}return{}}}};async function zx(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=Xn(n),a=Co(n),l=Ar(n)==="y",u=["left","top"].includes(s)?-1:1,f=o&&l?-1:1,d=Ei(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof m=="number"&&(h=a==="end"?m*-1:m),l?{x:h*f,y:p*u}:{x:p*u,y:h*f}}const qx=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:a}=t,l=await zx(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},Yx=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:b=>{let{x,y:C}=b;return{x,y:C}}},...l}=Ei(e,t),u={x:n,y:r},f=await zs(t,l),d=Ar(Xn(i)),p=Fh(d);let h=u[p],m=u[d];if(o){const b=p==="y"?"top":"left",x=p==="y"?"bottom":"right",C=h+f[b],E=h-f[x];h=id(C,h,E)}if(s){const b=d==="y"?"top":"left",x=d==="y"?"bottom":"right",C=m+f[b],E=m-f[x];m=id(C,m,E)}const w=a.fn({...t,[p]:h,[d]:m});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[p]:o,[d]:s}}}}}},Zx=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:s,elements:a}=t,{apply:l=()=>{},...u}=Ei(e,t),f=await zs(t,u),d=Xn(i),p=Co(i),h=Ar(i)==="y",{width:m,height:w}=o.floating;let b,x;d==="top"||d==="bottom"?(b=d,x=p===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(x=d,b=p==="end"?"top":"bottom");const C=w-f.top-f.bottom,E=m-f.left-f.right,$=Er(w-f[b],C),I=Er(m-f[x],E),P=!t.middlewareData.shift;let L=$,S=I;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(S=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(L=C),P&&!p){const k=_t(f.left,0),T=_t(f.right,0),D=_t(f.top,0),O=_t(f.bottom,0);h?S=m-2*(k!==0||T!==0?k+T:_t(f.left,f.right)):L=w-2*(D!==0||O!==0?D+O:_t(f.top,f.bottom))}await l({...t,availableWidth:S,availableHeight:L});const _=await s.getDimensions(a.floating);return m!==_.width||w!==_.height?{reset:{rects:!0}}:{}}}};function Vh(e){const t=fn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=yn(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=to(n)!==o||to(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function au(e){return $t(e)?e:e.contextElement}function ti(e){const t=au(e);if(!yn(t))return pn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Vh(t);let s=(o?to(n.width):n.width)/r,a=(o?to(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Kx=pn(0);function Hh(e){const t=Gt(e);return!su()||!t.visualViewport?Kx:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Xx(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Gt(e)?!1:t}function kr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=au(e);let s=pn(1);t&&(r?$t(r)&&(s=ti(r)):s=ti(e));const a=Xx(o,n,r)?Hh(o):pn(0);let l=(i.left+a.x)/s.x,u=(i.top+a.y)/s.y,f=i.width/s.x,d=i.height/s.y;if(o){const p=Gt(o),h=r&&$t(r)?Gt(r):r;let m=p,w=sl(m);for(;w&&r&&h!==m;){const b=ti(w),x=w.getBoundingClientRect(),C=fn(w),E=x.left+(w.clientLeft+parseFloat(C.paddingLeft))*b.x,$=x.top+(w.clientTop+parseFloat(C.paddingTop))*b.y;l*=b.x,u*=b.y,f*=b.x,d*=b.y,l+=E,u+=$,m=Gt(w),w=sl(m)}}return ws({width:f,height:d,x:l,y:u})}function lu(e,t){const n=Gs(e).scrollLeft;return t?t.left+n:kr(vn(e)).left+n}function jh(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:lu(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function Jx(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=vn(r),a=t?Ws(t.floating):!1;if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},u=pn(1);const f=pn(0),d=yn(r);if((d||!d&&!o)&&((Si(r)!=="body"||xo(s))&&(l=Gs(r)),yn(r))){const h=kr(r);u=ti(r),f.x=h.x+r.clientLeft,f.y=h.y+r.clientTop}const p=s&&!d&&!o?jh(s,l,!0):pn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+f.x+p.x,y:n.y*u.y-l.scrollTop*u.y+f.y+p.y}}function Qx(e){return Array.from(e.getClientRects())}function eC(e){const t=vn(e),n=Gs(e),r=e.ownerDocument.body,i=_t(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=_t(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+lu(e);const a=-n.scrollTop;return fn(r).direction==="rtl"&&(s+=_t(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}function tC(e,t){const n=Gt(e),r=vn(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;const u=su();(!u||u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a,y:l}}function nC(e,t){const n=kr(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=yn(e)?ti(e):pn(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=i*o.x,u=r*o.y;return{width:s,height:a,x:l,y:u}}function sd(e,t,n){let r;if(t==="viewport")r=tC(e,n);else if(t==="document")r=eC(vn(e));else if($t(t))r=nC(t,n);else{const i=Hh(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return ws(r)}function Bh(e,t){const n=Kn(e);return n===t||!$t(n)||di(n)?!1:fn(n).position==="fixed"||Bh(n,t)}function rC(e,t){const n=t.get(e);if(n)return n;let r=eo(e,[],!1).filter(a=>$t(a)&&Si(a)!=="body"),i=null;const o=fn(e).position==="fixed";let s=o?Kn(e):e;for(;$t(s)&&!di(s);){const a=fn(s),l=ou(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||xo(s)&&!l&&Bh(e,s))?r=r.filter(f=>f!==s):i=a,s=Kn(s)}return t.set(e,r),r}function iC(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?Ws(t)?[]:rC(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((u,f)=>{const d=sd(t,f,i);return u.top=_t(d.top,u.top),u.right=Er(d.right,u.right),u.bottom=Er(d.bottom,u.bottom),u.left=_t(d.left,u.left),u},sd(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function oC(e){const{width:t,height:n}=Vh(e);return{width:t,height:n}}function sC(e,t,n){const r=yn(t),i=vn(t),o=n==="fixed",s=kr(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=pn(0);if(r||!r&&!o)if((Si(t)!=="body"||xo(i))&&(a=Gs(t)),r){const p=kr(t,!0,o,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else i&&(l.x=lu(i));const u=i&&!r&&!o?jh(i,a):pn(0),f=s.left+a.scrollLeft-l.x-u.x,d=s.top+a.scrollTop-l.y-u.y;return{x:f,y:d,width:s.width,height:s.height}}function Aa(e){return fn(e).position==="static"}function ad(e,t){if(!yn(e)||fn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return vn(e)===n&&(n=n.ownerDocument.body),n}function Uh(e,t){const n=Gt(e);if(Ws(e))return n;if(!yn(e)){let i=Kn(e);for(;i&&!di(i);){if($t(i)&&!Aa(i))return i;i=Kn(i)}return n}let r=ad(e,t);for(;r&&Dx(r)&&Aa(r);)r=ad(r,t);return r&&di(r)&&Aa(r)&&!ou(r)?n:r||Ox(e)||n}const aC=async function(e){const t=this.getOffsetParent||Uh,n=this.getDimensions,r=await n(e.floating);return{reference:sC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function lC(e){return fn(e).direction==="rtl"}const uC={convertOffsetParentRelativeRectToViewportRelativeRect:Jx,getDocumentElement:vn,getClippingRect:iC,getOffsetParent:Uh,getElementRects:aC,getClientRects:Qx,getDimensions:oC,getScale:ti,isElement:$t,isRTL:lC};function Wh(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function cC(e,t){let n=null,r;const i=vn(e);function o(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const u=e.getBoundingClientRect(),{left:f,top:d,width:p,height:h}=u;if(a||t(),!p||!h)return;const m=Ro(d),w=Ro(i.clientWidth-(f+p)),b=Ro(i.clientHeight-(d+h)),x=Ro(f),E={rootMargin:-m+"px "+-w+"px "+-b+"px "+-x+"px",threshold:_t(0,Er(1,l))||1};let $=!0;function I(P){const L=P[0].intersectionRatio;if(L!==l){if(!$)return s();L?s(!1,L):r=setTimeout(()=>{s(!1,1e-7)},1e3)}L===1&&!Wh(u,e.getBoundingClientRect())&&s(),$=!1}try{n=new IntersectionObserver(I,{...E,root:i.ownerDocument})}catch{n=new IntersectionObserver(I,E)}n.observe(e)}return s(!0),o}function dC(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=au(e),f=i||o?[...u?eo(u):[],...eo(t)]:[];f.forEach(x=>{i&&x.addEventListener("scroll",n,{passive:!0}),o&&x.addEventListener("resize",n)});const d=u&&a?cC(u,n):null;let p=-1,h=null;s&&(h=new ResizeObserver(x=>{let[C]=x;C&&C.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var E;(E=h)==null||E.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let m,w=l?kr(e):null;l&&b();function b(){const x=kr(e);w&&!Wh(w,x)&&n(),w=x,m=requestAnimationFrame(b)}return n(),()=>{var x;f.forEach(C=>{i&&C.removeEventListener("scroll",n),o&&C.removeEventListener("resize",n)}),d==null||d(),(x=h)==null||x.disconnect(),h=null,l&&cancelAnimationFrame(m)}}const ka=zs,fC=qx,mC=Yx,hC=Gx,pC=Zx,gC=(e,t,n)=>{const r=new Map,i={platform:uC,...n},o={...i.platform,_c:r};return Wx(e,t,{...i,platform:o})};var qo=typeof document<"u"?Rn:De;function vs(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!vs(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!vs(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Gh(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ld(e,t){const n=Gh(e);return Math.round(t*n)/n}function Na(e){const t=se(e);return qo(()=>{t.current=e}),t}function yC(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[f,d]=ye({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=ye(r);vs(p,r)||h(r);const[m,w]=ye(null),[b,x]=ye(null),C=Te(F=>{F!==P.current&&(P.current=F,w(F))},[]),E=Te(F=>{F!==L.current&&(L.current=F,x(F))},[]),$=o||m,I=s||b,P=se(null),L=se(null),S=se(f),_=l!=null,k=Na(l),T=Na(i),D=Na(u),O=Te(()=>{if(!P.current||!L.current)return;const F={placement:t,strategy:n,middleware:p};T.current&&(F.platform=T.current),gC(P.current,L.current,F).then(W=>{const B={...W,isPositioned:D.current!==!1};q.current&&!vs(S.current,B)&&(S.current=B,Wt(()=>{d(B)}))})},[p,t,n,T,D]);qo(()=>{u===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,d(F=>({...F,isPositioned:!1})))},[u]);const q=se(!1);qo(()=>(q.current=!0,()=>{q.current=!1}),[]),qo(()=>{if($&&(P.current=$),I&&(L.current=I),$&&I){if(k.current)return k.current($,I,O);O()}},[$,I,O,k,_]);const he=de(()=>({reference:P,floating:L,setReference:C,setFloating:E}),[C,E]),Y=de(()=>({reference:$,floating:I}),[$,I]),G=de(()=>{const F={position:n,left:0,top:0};if(!Y.floating)return F;const W=ld(Y.floating,f.x),B=ld(Y.floating,f.y);return a?{...F,transform:"translate("+W+"px, "+B+"px)",...Gh(Y.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:W,top:B}},[n,a,Y.floating,f.x,f.y]);return de(()=>({...f,update:O,refs:he,elements:Y,floatingStyles:G}),[f,O,he,Y,G])}const zh=(e,t)=>({...fC(e),options:[e,t]}),wC=(e,t)=>({...mC(e),options:[e,t]}),vC=(e,t)=>({...hC(e),options:[e,t]}),bC=(e,t)=>({...pC(e),options:[e,t]}),qh={...Jo},_C=qh.useInsertionEffect,xC=_C||(e=>e());function Yh(e){const t=se(()=>{});return xC(()=>{t.current=e}),Te(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}var ll=typeof document<"u"?Rn:De;let ud=!1,CC=0;const cd=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+CC++;function SC(){const[e,t]=ye(()=>ud?cd():void 0);return ll(()=>{e==null&&t(cd())},[]),De(()=>{ud=!0},[]),e}const EC=qh.useId,AC=EC||SC;function kC(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const NC=Je(null),TC=Je(null),$C=()=>{var e;return((e=Oe(NC))==null?void 0:e.id)||null},MC=()=>Oe(TC),IC="data-floating-ui-focusable";function DC(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=AC(),o=se({}),[s]=ye(()=>kC()),a=$C()!=null,[l,u]=ye(r.reference),f=Yh((h,m,w)=>{o.current.openEvent=h?m:void 0,s.emit("openchange",{open:h,event:m,reason:w,nested:a}),n==null||n(h,m,w)}),d=de(()=>({setPositionReference:u}),[]),p=de(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return de(()=>({dataRef:o,open:t,onOpenChange:f,elements:p,events:s,floatingId:i,refs:d}),[t,f,p,s,i,d])}function OC(e){e===void 0&&(e={});const{nodeId:t}=e,n=DC({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,s]=ye(null),[a,l]=ye(null),f=(i==null?void 0:i.domReference)||o,d=se(null),p=MC();ll(()=>{f&&(d.current=f)},[f]);const h=yC({...e,elements:{...i,...a&&{reference:a}}}),m=Te(E=>{const $=$t(E)?{getBoundingClientRect:()=>E.getBoundingClientRect(),contextElement:E}:E;l($),h.refs.setReference($)},[h.refs]),w=Te(E=>{($t(E)||E===null)&&(d.current=E,s(E)),($t(h.refs.reference.current)||h.refs.reference.current===null||E!==null&&!$t(E))&&h.refs.setReference(E)},[h.refs]),b=de(()=>({...h.refs,setReference:w,setPositionReference:m,domReference:d}),[h.refs,w,m]),x=de(()=>({...h.elements,domReference:f}),[h.elements,f]),C=de(()=>({...h,...r,refs:b,elements:x,nodeId:t}),[h,b,x,t,r]);return ll(()=>{r.dataRef.current.floatingContext=C;const E=p==null?void 0:p.nodesRef.current.find($=>$.id===t);E&&(E.context=C)}),de(()=>({...h,context:C,refs:b,elements:x}),[h,b,x,C])}const dd="active",fd="selected";function Ta(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[dd]:s,[fd]:a,...l}=e;o=l}return{...n==="floating"&&{tabIndex:-1,[IC]:""},...o,...t.map(s=>{const a=s?s[n]:null;return typeof a=="function"?e?a(e):null:a}).concat(e).reduce((s,a)=>(a&&Object.entries(a).forEach(l=>{let[u,f]=l;if(!(i&&[dd,fd].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof f=="function"){var d;(d=r.get(u))==null||d.push(f),s[u]=function(){for(var p,h=arguments.length,m=new Array(h),w=0;w<h;w++)m[w]=arguments[w];return(p=r.get(u))==null?void 0:p.map(b=>b(...m)).find(b=>b!==void 0)}}}else s[u]=f}),s),{})}}function RC(e){e===void 0&&(e=[]);const t=e.map(a=>a==null?void 0:a.reference),n=e.map(a=>a==null?void 0:a.floating),r=e.map(a=>a==null?void 0:a.item),i=Te(a=>Ta(a,e,"reference"),t),o=Te(a=>Ta(a,e,"floating"),n),s=Te(a=>Ta(a,e,"item"),r);return de(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:s}),[i,o,s])}function md(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const FC=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:r,onFallbackChange:i,offset:o=0,index:s=0,minItemsVisible:a=4,referenceOverflowThreshold:l=0,scrollRef:u,...f}=Ei(e,t),{rects:d,elements:{floating:p}}=t,h=n.current[s],m=(u==null?void 0:u.current)||p,w=p.clientTop||m.clientTop,b=p.clientTop!==0,x=m.clientTop!==0,C=p===m;if(!h)return{};const E={...t,...await zh(-h.offsetTop-p.clientTop-d.reference.height/2-h.offsetHeight/2-o).fn(t)},$=await ka(md(E,m.scrollHeight+w+p.clientTop),f),I=await ka(E,{...f,elementContext:"reference"}),P=_t(0,$.top),L=E.y+P,k=(m.scrollHeight>m.clientHeight?T=>T:to)(_t(0,m.scrollHeight+(b&&C||x?w*2:0)-P-_t(0,$.bottom)));if(m.style.maxHeight=k+"px",m.scrollTop=P,i){const T=m.offsetHeight<h.offsetHeight*Er(a,n.current.length)-1||I.top>=-l||I.bottom>=-l;Wt(()=>i(T))}return r&&(r.current=await ka(md({...E,y:L},m.offsetHeight+w+p.clientTop),f)),{y:L}}});function PC(e,t){const{open:n,elements:r}=e,{enabled:i=!0,overflowRef:o,scrollRef:s,onChange:a}=t,l=Yh(a),u=se(!1),f=se(null),d=se(null);De(()=>{if(!i)return;function h(w){if(w.ctrlKey||!m||o.current==null)return;const b=w.deltaY,x=o.current.top>=-.5,C=o.current.bottom>=-.5,E=m.scrollHeight-m.clientHeight,$=b<0?-1:1,I=b<0?"max":"min";m.scrollHeight<=m.clientHeight||(!x&&b>0||!C&&b<0?(w.preventDefault(),Wt(()=>{l(P=>P+Math[I](b,E*$))})):/firefox/i.test(Rx())&&(m.scrollTop+=b))}const m=(s==null?void 0:s.current)||r.floating;if(n&&m)return m.addEventListener("wheel",h),requestAnimationFrame(()=>{f.current=m.scrollTop,o.current!=null&&(d.current={...o.current})}),()=>{f.current=null,d.current=null,m.removeEventListener("wheel",h)}},[i,n,r.floating,o,s,l]);const p=de(()=>({onKeyDown(){u.current=!0},onWheel(){u.current=!1},onPointerMove(){u.current=!1},onScroll(){const h=(s==null?void 0:s.current)||r.floating;if(!(!o.current||!h||!u.current)){if(f.current!==null){const m=h.scrollTop-f.current;(o.current.bottom<-.5&&m<-1||o.current.top<-.5&&m>1)&&Wt(()=>l(w=>w+m))}requestAnimationFrame(()=>{f.current=h.scrollTop})}}}),[r.floating,l,o,s]);return de(()=>i?{floating:p}:{},[i,p])}let Ai=Je({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});Ai.displayName="FloatingContext";let uu=Je(null);uu.displayName="PlacementContext";function LC(e){return de(()=>e?typeof e=="string"?{to:e}:e:null,[e])}function VC(){return Oe(Ai).setReference}function HC(){return Oe(Ai).getReferenceProps}function jC(){let{getFloatingProps:e,slot:t}=Oe(Ai);return Te((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}function BC(e=null){e===!1&&(e=null),typeof e=="string"&&(e={to:e});let t=Oe(uu),n=de(()=>e,[JSON.stringify(e,(i,o)=>{var s;return(s=o==null?void 0:o.outerHTML)!=null?s:o})]);ze(()=>{t==null||t(n??null)},[t,n]);let r=Oe(Ai);return de(()=>[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}let hd=4;function UC({children:e,enabled:t=!0}){let[n,r]=ye(null),[i,o]=ye(0),s=se(null),[a,l]=ye(null);WC(a);let u=t&&n!==null&&a!==null,{to:f="bottom",gap:d=0,offset:p=0,padding:h=0,inner:m}=GC(n,a),[w,b="center"]=f.split(" ");ze(()=>{u&&o(0)},[u]);let{refs:x,floatingStyles:C,context:E}=OC({open:u,placement:w==="selection"?b==="center"?"bottom":`bottom-${b}`:b==="center"?`${w}`:`${w}-${b}`,strategy:"absolute",transform:!1,middleware:[zh({mainAxis:w==="selection"?0:d,crossAxis:p}),wC({padding:h}),w!=="selection"&&vC({padding:h}),w==="selection"&&m?FC({...m,padding:h,overflowRef:s,offset:i,minItemsVisible:hd,referenceOverflowThreshold:h,onFallbackChange(T){var D,O;if(!T)return;let q=E.elements.floating;if(!q)return;let he=parseFloat(getComputedStyle(q).scrollPaddingBottom)||0,Y=Math.min(hd,q.childElementCount),G=0,F=0;for(let W of(O=(D=E.elements.floating)==null?void 0:D.childNodes)!=null?O:[])if(W instanceof HTMLElement){let B=W.offsetTop,fe=B+W.clientHeight+he,Q=q.scrollTop,R=Q+q.clientHeight;if(B>=Q&&fe<=R)Y--;else{F=Math.max(0,Math.min(fe,R)-Math.max(B,Q)),G=W.clientHeight;break}}Y>=1&&o(W=>{let B=G*Y-F+he;return W>=B?W:B})}}):null,bC({padding:h,apply({availableWidth:T,availableHeight:D,elements:O}){Object.assign(O.floating.style,{overflow:"auto",maxWidth:`${T}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${D}px)`})}})].filter(Boolean),whileElementsMounted:dC}),[$=w,I=b]=E.placement.split("-");w==="selection"&&($="selection");let P=de(()=>({anchor:[$,I].filter(Boolean).join(" ")}),[$,I]),L=PC(E,{overflowRef:s,onChange:o}),{getReferenceProps:S,getFloatingProps:_}=RC([L]),k=ue(T=>{l(T),x.setFloating(T)});return c(uu.Provider,{value:r},c(Ai.Provider,{value:{setFloating:k,setReference:x.setReference,styles:C,getReferenceProps:S,getFloatingProps:_,slot:P}},e))}function WC(e){ze(()=>{if(!e)return;let t=new MutationObserver(()=>{let n=window.getComputedStyle(e).maxHeight,r=parseFloat(n);if(isNaN(r))return;let i=parseInt(n);isNaN(i)||r!==i&&(e.style.maxHeight=`${Math.ceil(r)}px`)});return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}},[e])}function GC(e,t){var n,r,i;let o=$a((n=e==null?void 0:e.gap)!=null?n:"var(--anchor-gap, 0)",t),s=$a((r=e==null?void 0:e.offset)!=null?r:"var(--anchor-offset, 0)",t),a=$a((i=e==null?void 0:e.padding)!=null?i:"var(--anchor-padding, 0)",t);return{...e,gap:o,offset:s,padding:a}}function $a(e,t,n=void 0){let r=tr(),i=ue((l,u)=>{if(l==null)return[n,null];if(typeof l=="number")return[l,null];if(typeof l=="string"){if(!u)return[n,null];let f=pd(l,u);return[f,d=>{let p=Zh(l);{let h=p.map(m=>window.getComputedStyle(u).getPropertyValue(m));r.requestAnimationFrame(function m(){r.nextFrame(m);let w=!1;for(let[x,C]of p.entries()){let E=window.getComputedStyle(u).getPropertyValue(C);if(h[x]!==E){h[x]=E,w=!0;break}}if(!w)return;let b=pd(l,u);f!==b&&(d(b),f=b)})}return r.dispose}]}return[n,null]}),o=de(()=>i(e,t)[0],[e,t]),[s=o,a]=ye();return ze(()=>{let[l,u]=i(e,t);if(a(l),!!u)return u(a)},[e,t]),s}function Zh(e){let t=/var\((.*)\)/.exec(e);if(t){let n=t[1].indexOf(",");if(n===-1)return[t[1]];let r=t[1].slice(0,n).trim(),i=t[1].slice(n+1).trim();return i?[r,...Zh(i)]:[r]}return[]}function pd(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}function zC(e,t){let[n,r]=ye(t);return!e&&n!==t&&r(t),e?n:t}let qs=Je(null);qs.displayName="OpenClosedContext";var Mt=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Mt||{});function So(){return Oe(qs)}function Kh({value:e,children:t}){return X.createElement(qs.Provider,{value:e},t)}function qC({children:e}){return X.createElement(qs.Provider,{value:null},e)}function YC(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let jn=[];YC(()=>{function e(t){if(!(t.target instanceof HTMLElement)||t.target===document.body||jn[0]===t.target)return;let n=t.target;n=n.closest(gs),jn.unshift(n??t.target),jn=jn.filter(r=>r!=null&&r.isConnected),jn.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function ZC(e){throw new Error("Unexpected object: "+e)}var mt=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(mt||{});function Ma(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=r??-1;switch(e.focus){case 0:{for(let o=0;o<n.length;++o)if(!t.resolveDisabled(n[o],o,n))return o;return r}case 1:{i===-1&&(i=n.length);for(let o=i-1;o>=0;--o)if(!t.resolveDisabled(n[o],o,n))return o;return r}case 2:{for(let o=i+1;o<n.length;++o)if(!t.resolveDisabled(n[o],o,n))return o;return r}case 3:{for(let o=n.length-1;o>=0;--o)if(!t.resolveDisabled(n[o],o,n))return o;return r}case 4:{for(let o=0;o<n.length;++o)if(t.resolveId(n[o],o,n)===e.id)return o;return r}case 5:return null;default:ZC(e)}}function Xh(e){let t=ue(e),n=se(!1);De(()=>(n.current=!1,()=>{n.current=!0,Hs(()=>{n.current&&t()})}),[t])}function KC(){let e=typeof document>"u";return"useSyncExternalStore"in Jo?(t=>t.useSyncExternalStore)(Jo)(()=>()=>{},()=>!1,()=>!e):!1}function Eo(){let e=KC(),[t,n]=ye(yr.isHandoffComplete);return t&&yr.isHandoffComplete===!1&&n(!1),De(()=>{t!==!0&&n(!0)},[t]),De(()=>yr.handoff(),[]),e?!1:t}let Jh=Je(!1);function XC(){return Oe(Jh)}function gd(e){return X.createElement(Jh.Provider,{value:e.force},e.children)}function JC(e){let t=XC(),n=Oe(e0),r=Ci(e),[i,o]=ye(()=>{var s;if(!t&&n!==null)return(s=n.current)!=null?s:null;if(yr.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 De(()=>{i!==null&&(r!=null&&r.body.contains(i)||r==null||r.body.appendChild(i))},[i,r]),De(()=>{t||n!==null&&o(n.current)},[n,o,t]),i}let Qh=Ue,QC=ct(function(e,t){let n=e,r=se(null),i=kt(G2(d=>{r.current=d}),t),o=Ci(r),s=JC(r),[a]=ye(()=>{var d;return yr.isServer?null:(d=o==null?void 0:o.createElement("div"))!=null?d:null}),l=Oe(ul),u=Eo();ze(()=>{!s||!a||s.contains(a)||(a.setAttribute("data-headlessui-portal",""),s.appendChild(a))},[s,a]),ze(()=>{if(a&&l)return l.register(a)},[l,a]),Xh(()=>{var d;!s||!a||(a instanceof Node&&s.contains(a)&&s.removeChild(a),s.childNodes.length<=0&&((d=s.parentElement)==null||d.removeChild(s)))});let f=wt();return u?!s||!a?null:Ss(f({ourProps:{ref:i},theirProps:n,slot:{},defaultTag:Qh,name:"Portal"}),a):null});function e3(e,t){let n=kt(t),{enabled:r=!0,...i}=e,o=wt();return r?X.createElement(QC,{...i,ref:n}):o({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:Qh,name:"Portal"})}let t3=Ue,e0=Je(null);function n3(e,t){let{target:n,...r}=e,i={ref:kt(t)},o=wt();return X.createElement(e0.Provider,{value:n},o({ourProps:i,theirProps:r,defaultTag:t3,name:"Popover.Group"}))}let ul=Je(null);function r3(){let e=Oe(ul),t=se([]),n=ue(o=>(t.current.push(o),e&&e.register(o),()=>r(o))),r=ue(o=>{let s=t.current.indexOf(o);s!==-1&&t.current.splice(s,1),e&&e.unregister(o)}),i=de(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,de(()=>function({children:o}){return X.createElement(ul.Provider,{value:i},o)},[i])]}let i3=ct(e3),t0=ct(n3),n0=Object.assign(i3,{Group:t0});function o3(e,t=typeof document<"u"?document.defaultView:null,n){let r=xi(e,"escape");$h(t,"keydown",i=>{r&&(i.defaultPrevented||i.key===ft.Escape&&n(i))})}function s3(){var e;let[t]=ye(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[n,r]=ye((e=t==null?void 0:t.matches)!=null?e:!1);return ze(()=>{if(!t)return;function i(o){r(o.matches)}return t.addEventListener("change",i),()=>t.removeEventListener("change",i)},[t]),n}function a3({defaultContainers:e=[],portals:t,mainTreeNode:n}={}){let r=Ci(n),i=ue(()=>{var o,s;let a=[];for(let l of e)l!==null&&(l instanceof HTMLElement?a.push(l):"current"in l&&l.current instanceof HTMLElement&&a.push(l.current));if(t!=null&&t.current)for(let l of t.current)a.push(l);for(let l of(o=r==null?void 0:r.querySelectorAll("html > *, body > *"))!=null?o:[])l!==document.body&&l!==document.head&&l instanceof HTMLElement&&l.id!=="headlessui-portal-root"&&(n&&(l.contains(n)||l.contains((s=n==null?void 0:n.getRootNode())==null?void 0:s.host))||a.some(u=>l.contains(u))||a.push(l));return a});return{resolveContainers:i,contains:ue(o=>i().some(s=>s.contains(o)))}}let r0=Je(null);function yd({children:e,node:t}){let[n,r]=ye(null),i=i0(t??n);return X.createElement(r0.Provider,{value:i},e,i===null&&X.createElement(Qi,{features:ci.Hidden,ref:o=>{var s,a;if(o){for(let l of(a=(s=_i(o))==null?void 0:s.querySelectorAll("html > *, body > *"))!=null?a:[])if(l!==document.body&&l!==document.head&&l instanceof HTMLElement&&l!=null&&l.contains(o)){r(l);break}}}}))}function i0(e=null){var t;return(t=Oe(r0))!=null?t:e}function cu(){let e=se(!1);return ze(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var ji=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(ji||{});function l3(){let e=se(0);return Nh(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function o0(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 u3="div";var dr=(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))(dr||{});function c3(e,t){let n=se(null),r=kt(n,t),{initialFocus:i,initialFocusFallback:o,containers:s,features:a=15,...l}=e;Eo()||(a=0);let u=Ci(n);h3(a,{ownerDocument:u});let f=p3(a,{ownerDocument:u,container:n,initialFocus:i,initialFocusFallback:o});g3(a,{ownerDocument:u,container:n,containers:s,previousActiveElement:f});let d=l3(),p=ue(C=>{let E=n.current;E&&($=>$())(()=>{Rt(d.current,{[ji.Forwards]:()=>{ei(E,ln.First,{skipElements:[C.relatedTarget,o]})},[ji.Backwards]:()=>{ei(E,ln.Last,{skipElements:[C.relatedTarget,o]})}})})}),h=xi(!!(a&2),"focus-trap#tab-lock"),m=tr(),w=se(!1),b={ref:r,onKeyDown(C){C.key=="Tab"&&(w.current=!0,m.requestAnimationFrame(()=>{w.current=!1}))},onBlur(C){if(!(a&4))return;let E=o0(s);n.current instanceof HTMLElement&&E.add(n.current);let $=C.relatedTarget;$ instanceof HTMLElement&&$.dataset.headlessuiFocusGuard!=="true"&&(s0(E,$)||(w.current?ei(n.current,Rt(d.current,{[ji.Forwards]:()=>ln.Next,[ji.Backwards]:()=>ln.Previous})|ln.WrapAround,{relativeTo:C.target}):C.target instanceof HTMLElement&&Mn(C.target)))}},x=wt();return X.createElement(X.Fragment,null,h&&X.createElement(Qi,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:ci.Focusable}),x({ourProps:b,theirProps:l,defaultTag:u3,name:"FocusTrap"}),h&&X.createElement(Qi,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:ci.Focusable}))}let d3=ct(c3),f3=Object.assign(d3,{features:dr});function m3(e=!0){let t=se(jn.slice());return iu(([n],[r])=>{r===!0&&n===!1&&Hs(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=jn.slice())},[e,jn,t]),ue(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function h3(e,{ownerDocument:t}){let n=!!(e&8),r=m3(n);iu(()=>{n||(t==null?void 0:t.activeElement)===(t==null?void 0:t.body)&&Mn(r())},[n]),Xh(()=>{n&&Mn(r())})}function p3(e,{ownerDocument:t,container:n,initialFocus:r,initialFocusFallback:i}){let o=se(null),s=xi(!!(e&1),"focus-trap#initial-focus"),a=cu();return iu(()=>{if(e===0)return;if(!s){i!=null&&i.current&&Mn(i.current);return}let l=n.current;l&&Hs(()=>{if(!a.current)return;let u=t==null?void 0:t.activeElement;if(r!=null&&r.current){if((r==null?void 0:r.current)===u){o.current=u;return}}else if(l.contains(u)){o.current=u;return}if(r!=null&&r.current)Mn(r.current);else{if(e&16){if(ei(l,ln.First|ln.AutoFocus)!==ol.Error)return}else if(ei(l,ln.First)!==ol.Error)return;if(i!=null&&i.current&&(Mn(i.current),(t==null?void 0:t.activeElement)===i.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}o.current=t==null?void 0:t.activeElement})},[i,s,e]),o}function g3(e,{ownerDocument:t,container:n,containers:r,previousActiveElement:i}){let o=cu(),s=!!(e&4);$h(t==null?void 0:t.defaultView,"focus",a=>{if(!s||!o.current)return;let l=o0(r);n.current instanceof HTMLElement&&l.add(n.current);let u=i.current;if(!u)return;let f=a.target;f&&f instanceof HTMLElement?s0(l,f)?(i.current=f,Mn(f)):(a.preventDefault(),a.stopPropagation(),Mn(u)):Mn(i.current)},!0)}function s0(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function a0(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||((t=e.as)!=null?t:u0)!==Ue||X.Children.count(e.children)===1}let Ys=Je(null);Ys.displayName="TransitionContext";var y3=(e=>(e.Visible="visible",e.Hidden="hidden",e))(y3||{});function w3(){let e=Oe(Ys);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function v3(){let e=Oe(Zs);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Zs=Je(null);Zs.displayName="NestingContext";function Ks(e){return"children"in e?Ks(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function l0(e,t){let n=nr(e),r=se([]),i=cu(),o=tr(),s=ue((h,m=Wn.Hidden)=>{let w=r.current.findIndex(({el:b})=>b===h);w!==-1&&(Rt(m,{[Wn.Unmount](){r.current.splice(w,1)},[Wn.Hidden](){r.current[w].state="hidden"}}),o.microTask(()=>{var b;!Ks(r)&&i.current&&((b=n.current)==null||b.call(n))}))}),a=ue(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,Wn.Unmount)}),l=se([]),u=se(Promise.resolve()),f=se({enter:[],leave:[]}),d=ue((h,m,w)=>{l.current.splice(0),t&&(t.chains.current[m]=t.chains.current[m].filter(([b])=>b!==h)),t==null||t.chains.current[m].push([h,new Promise(b=>{l.current.push(b)})]),t==null||t.chains.current[m].push([h,new Promise(b=>{Promise.all(f.current[m].map(([x,C])=>C)).then(()=>b())})]),m==="enter"?u.current=u.current.then(()=>t==null?void 0:t.wait.current).then(()=>w(m)):w(m)}),p=ue((h,m,w)=>{Promise.all(f.current[m].splice(0).map(([b,x])=>x)).then(()=>{var b;(b=l.current.shift())==null||b()}).then(()=>w(m))});return de(()=>({children:r,register:a,unregister:s,onStart:d,onStop:p,wait:u,chains:f}),[a,s,r,d,p,f,u])}let u0=Ue,c0=ui.RenderStrategy;function b3(e,t){var n,r;let{transition:i=!0,beforeEnter:o,afterEnter:s,beforeLeave:a,afterLeave:l,enter:u,enterFrom:f,enterTo:d,entered:p,leave:h,leaveFrom:m,leaveTo:w,...b}=e,[x,C]=ye(null),E=se(null),$=a0(e),I=kt(...$?[E,t,C]:t===null?[]:[t]),P=(n=b.unmount)==null||n?Wn.Unmount:Wn.Hidden,{show:L,appear:S,initial:_}=w3(),[k,T]=ye(L?"visible":"hidden"),D=v3(),{register:O,unregister:q}=D;ze(()=>O(E),[O,E]),ze(()=>{if(P===Wn.Hidden&&E.current){if(L&&k!=="visible"){T("visible");return}return Rt(k,{hidden:()=>q(E),visible:()=>O(E)})}},[k,E,O,q,L,P]);let he=Eo();ze(()=>{if($&&he&&k==="visible"&&E.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[E,k,he,$]);let Y=_&&!S,G=S&&L&&_,F=se(!1),W=l0(()=>{F.current||(T("hidden"),q(E))},D),B=ue(Re=>{F.current=!0;let re=Re?"enter":"leave";W.onStart(E,re,ve=>{ve==="enter"?o==null||o():ve==="leave"&&(a==null||a())})}),fe=ue(Re=>{let re=Re?"enter":"leave";F.current=!1,W.onStop(E,re,ve=>{ve==="enter"?s==null||s():ve==="leave"&&(l==null||l())}),re==="leave"&&!Ks(W)&&(T("hidden"),q(E))});De(()=>{$&&i||(B(L),fe(L))},[L,$,i]);let Q=!(!i||!$||!he||Y),[,R]=Dh(Q,x,L,{start:B,end:fe}),ce=Hn({ref:I,className:((r=rl(b.className,G&&u,G&&f,R.enter&&u,R.enter&&R.closed&&f,R.enter&&!R.closed&&d,R.leave&&h,R.leave&&!R.closed&&m,R.leave&&R.closed&&w,!R.transition&&L&&p))==null?void 0:r.trim())||void 0,...Ih(R)}),te=0;k==="visible"&&(te|=Mt.Open),k==="hidden"&&(te|=Mt.Closed),R.enter&&(te|=Mt.Opening),R.leave&&(te|=Mt.Closing);let be=wt();return X.createElement(Zs.Provider,{value:W},X.createElement(Kh,{value:te},be({ourProps:ce,theirProps:b,defaultTag:u0,features:c0,visible:k==="visible",name:"Transition.Child"})))}function _3(e,t){let{show:n,appear:r=!1,unmount:i=!0,...o}=e,s=se(null),a=a0(e),l=kt(...a?[s,t]:t===null?[]:[t]);Eo();let u=So();if(n===void 0&&u!==null&&(n=(u&Mt.Open)===Mt.Open),n===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[f,d]=ye(n?"visible":"hidden"),p=l0(()=>{n||d("hidden")}),[h,m]=ye(!0),w=se([n]);ze(()=>{h!==!1&&w.current[w.current.length-1]!==n&&(w.current.push(n),m(!1))},[w,n]);let b=de(()=>({show:n,appear:r,initial:h}),[n,r,h]);ze(()=>{n?d("visible"):!Ks(p)&&s.current!==null&&d("hidden")},[n,p]);let x={unmount:i},C=ue(()=>{var I;h&&m(!1),(I=e.beforeEnter)==null||I.call(e)}),E=ue(()=>{var I;h&&m(!1),(I=e.beforeLeave)==null||I.call(e)}),$=wt();return X.createElement(Zs.Provider,{value:p},X.createElement(Ys.Provider,{value:b},$({ourProps:{...x,as:Ue,children:X.createElement(d0,{ref:l,...x,...o,beforeEnter:C,beforeLeave:E})},theirProps:{},defaultTag:Ue,features:c0,visible:f==="visible",name:"Transition"})))}function x3(e,t){let n=Oe(Ys)!==null,r=So()!==null;return X.createElement(X.Fragment,null,!n&&r?X.createElement(cl,{ref:t,...e}):X.createElement(d0,{ref:t,...e}))}let cl=ct(_3),d0=ct(b3),du=ct(x3),C3=Object.assign(cl,{Child:du,Root:cl});var S3=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(S3||{}),E3=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(E3||{});let A3={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},fu=Je(null);fu.displayName="DialogContext";function Xs(e){let t=Oe(fu);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Xs),n}return t}function k3(e,t){return Rt(t.type,A3,e,t)}let wd=ct(function(e,t){let n=Jt(),{id:r=`headlessui-dialog-${n}`,open:i,onClose:o,initialFocus:s,role:a="dialog",autoFocus:l=!0,__demoMode:u=!1,unmount:f=!1,...d}=e,p=se(!1);a=function(){return a==="dialog"||a==="alertdialog"?a:(p.current||(p.current=!0,console.warn(`Invalid role [${a}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let h=So();i===void 0&&h!==null&&(i=(h&Mt.Open)===Mt.Open);let m=se(null),w=kt(m,t),b=Ci(m),x=i?0:1,[C,E]=Tr(k3,{titleId:null,descriptionId:null,panelRef:xs()}),$=ue(()=>o(!1)),I=ue(fe=>E({type:0,id:fe})),P=Eo()?x===0:!1,[L,S]=r3(),_={get current(){var fe;return(fe=C.panelRef.current)!=null?fe:m.current}},k=i0(),{resolveContainers:T}=a3({mainTreeNode:k,portals:L,defaultContainers:[_]}),D=h!==null?(h&Mt.Closing)===Mt.Closing:!1;xh(u||D?!1:P,{allowed:ue(()=>{var fe,Q;return[(Q=(fe=m.current)==null?void 0:fe.closest("[data-headlessui-portal]"))!=null?Q:null]}),disallowed:ue(()=>{var fe;return[(fe=k==null?void 0:k.closest("body > *:not(#headlessui-portal-root)"))!=null?fe:null]})}),Th(P,T,fe=>{fe.preventDefault(),$()}),o3(P,b==null?void 0:b.defaultView,fe=>{fe.preventDefault(),fe.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),$()}),Mh(u||D?!1:P,b,T),Ch(P,m,$);let[O,q]=q2(),he=de(()=>[{dialogState:x,close:$,setTitleId:I,unmount:f},C],[x,C,$,I,f]),Y=de(()=>({open:x===0}),[x]),G={ref:w,id:r,role:a,tabIndex:-1,"aria-modal":u?void 0:x===0?!0:void 0,"aria-labelledby":C.titleId,"aria-describedby":O,unmount:f},F=!s3(),W=dr.None;P&&!u&&(W|=dr.RestoreFocus,W|=dr.TabLock,l&&(W|=dr.AutoFocus),F&&(W|=dr.InitialFocus));let B=wt();return X.createElement(qC,null,X.createElement(gd,{force:!0},X.createElement(n0,null,X.createElement(fu.Provider,{value:he},X.createElement(t0,{target:m},X.createElement(gd,{force:!1},X.createElement(q,{slot:Y},X.createElement(S,null,X.createElement(f3,{initialFocus:s,initialFocusFallback:m,containers:T,features:W},X.createElement(ix,{value:$},B({ourProps:G,theirProps:d,slot:Y,defaultTag:N3,features:T3,visible:x===0,name:"Dialog"})))))))))))}),N3="div",T3=ui.RenderStrategy|ui.Static;function $3(e,t){let{transition:n=!1,open:r,...i}=e,o=So(),s=e.hasOwnProperty("open")||o!==null,a=e.hasOwnProperty("onClose");if(!s&&!a)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!s)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!a)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!o&&typeof e.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if(typeof e.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return(r!==void 0||n)&&!i.static?X.createElement(yd,null,X.createElement(C3,{show:r,transition:n,unmount:i.unmount},X.createElement(wd,{ref:t,...i}))):X.createElement(yd,null,X.createElement(wd,{ref:t,open:r,...i}))}let M3="div";function I3(e,t){let n=Jt(),{id:r=`headlessui-dialog-panel-${n}`,transition:i=!1,...o}=e,[{dialogState:s,unmount:a},l]=Xs("Dialog.Panel"),u=kt(t,l.panelRef),f=de(()=>({open:s===0}),[s]),d=ue(b=>{b.stopPropagation()}),p={ref:u,id:r,onClick:d},h=i?du:Ue,m=i?{unmount:a}:{},w=wt();return X.createElement(h,{...m},w({ourProps:p,theirProps:o,slot:f,defaultTag:M3,name:"Dialog.Panel"}))}let D3="div";function O3(e,t){let{transition:n=!1,...r}=e,[{dialogState:i,unmount:o}]=Xs("Dialog.Backdrop"),s=de(()=>({open:i===0}),[i]),a={ref:t,"aria-hidden":!0},l=n?du:Ue,u=n?{unmount:o}:{},f=wt();return X.createElement(l,{...u},f({ourProps:a,theirProps:r,slot:s,defaultTag:D3,name:"Dialog.Backdrop"}))}let R3="h2";function F3(e,t){let n=Jt(),{id:r=`headlessui-dialog-title-${n}`,...i}=e,[{dialogState:o,setTitleId:s}]=Xs("Dialog.Title"),a=kt(t);De(()=>(s(r),()=>s(null)),[r,s]);let l=de(()=>({open:o===0}),[o]),u={ref:a,id:r};return wt()({ourProps:u,theirProps:i,slot:l,defaultTag:R3,name:"Dialog.Title"})}let P3=ct($3),L3=ct(I3),V3=ct(O3),H3=ct(F3),f0=Object.assign(P3,{Panel:L3,Title:H3,Description:X2});function j3(e,t){let n=se({left:0,top:0});if(ze(()=>{if(!t)return;let i=t.getBoundingClientRect();i&&(n.current=i)},[e,t]),t==null||!e||t===document.activeElement)return!1;let r=t.getBoundingClientRect();return r.top!==n.current.top||r.left!==n.current.left}let vd=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function bd(e){var t,n;let r=(t=e.innerText)!=null?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return r;let o=!1;for(let a of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))a.remove(),o=!0;let s=o?(n=i.innerText)!=null?n:"":r;return vd.test(s)&&(s=s.replace(vd,"")),s}function B3(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(i=>{let o=document.getElementById(i);if(o){let s=o.getAttribute("aria-label");return typeof s=="string"?s.trim():bd(o).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return bd(e).trim()}function U3(e){let t=se(""),n=se("");return ue(()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let o=B3(r).trim().toLowerCase();return t.current=i,n.current=o,o})}var W3=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(W3||{}),G3=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(G3||{}),z3=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(z3||{}),q3=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.SetButtonElement=7]="SetButtonElement",e[e.SetOptionsElement=8]="SetOptionsElement",e))(q3||{});function Ia(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=Ah(t(e.options.slice()),o=>o.dataRef.current.domRef.current),i=n?r.indexOf(n):null;return i===-1&&(i=null),{options:r,activeOptionIndex:i}}let Y3={1(e){return e.dataRef.current.disabled||e.listboxState===1?e:{...e,activeOptionIndex:null,listboxState:1,__demoMode:!1}},0(e){if(e.dataRef.current.disabled||e.listboxState===0)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex(i=>n(i.dataRef.current.value));return r!==-1&&(t=r),{...e,listboxState:0,activeOptionIndex:t,__demoMode:!1}},2(e,t){var n,r,i,o,s;if(e.dataRef.current.disabled||e.listboxState===1)return e;let a={...e,searchQuery:"",activationTrigger:(n=t.trigger)!=null?n:1,__demoMode:!1};if(t.focus===mt.Nothing)return{...a,activeOptionIndex:null};if(t.focus===mt.Specific)return{...a,activeOptionIndex:e.options.findIndex(f=>f.id===t.id)};if(t.focus===mt.Previous){let f=e.activeOptionIndex;if(f!==null){let d=e.options[f].dataRef.current.domRef,p=Ma(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:h=>h.id,resolveDisabled:h=>h.dataRef.current.disabled});if(p!==null){let h=e.options[p].dataRef.current.domRef;if(((r=d.current)==null?void 0:r.previousElementSibling)===h.current||((i=h.current)==null?void 0:i.previousElementSibling)===null)return{...a,activeOptionIndex:p}}}}else if(t.focus===mt.Next){let f=e.activeOptionIndex;if(f!==null){let d=e.options[f].dataRef.current.domRef,p=Ma(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:h=>h.id,resolveDisabled:h=>h.dataRef.current.disabled});if(p!==null){let h=e.options[p].dataRef.current.domRef;if(((o=d.current)==null?void 0:o.nextElementSibling)===h.current||((s=h.current)==null?void 0:s.nextElementSibling)===null)return{...a,activeOptionIndex:p}}}}let l=Ia(e),u=Ma(t,{resolveItems:()=>l.options,resolveActiveIndex:()=>l.activeOptionIndex,resolveId:f=>f.id,resolveDisabled:f=>f.dataRef.current.disabled});return{...a,...l,activeOptionIndex:u}},3:(e,t)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let n=e.searchQuery!==""?0:1,r=e.searchQuery+t.value.toLowerCase(),i=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(s=>{var a;return!s.dataRef.current.disabled&&((a=s.dataRef.current.textValue)==null?void 0:a.startsWith(r))}),o=i?e.options.indexOf(i):-1;return o===-1||o===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:o,activationTrigger:1}},4(e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:{...e,searchQuery:""}},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=Ia(e,i=>[...i,n]);return e.activeOptionIndex===null&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},6:(e,t)=>{let n=Ia(e,r=>{let i=r.findIndex(o=>o.id===t.id);return i!==-1&&r.splice(i,1),r});return{...e,...n,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element}},mu=Je(null);mu.displayName="ListboxActionsContext";function Js(e){let t=Oe(mu);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Js),n}return t}let Qs=Je(null);Qs.displayName="ListboxDataContext";function Ao(e){let t=Oe(Qs);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ao),n}return t}function Z3(e,t){return Rt(t.type,Y3,e,t)}let K3=Ue;function X3(e,t){var n;let r=nu(),{value:i,defaultValue:o,form:s,name:a,onChange:l,by:u,invalid:f=!1,disabled:d=r||!1,horizontal:p=!1,multiple:h=!1,__demoMode:m=!1,...w}=e;const b=p?"horizontal":"vertical";let x=kt(t),C=O2(o),[E=h?[]:void 0,$]=D2(i,l,C),[I,P]=Tr(Z3,{dataRef:xs(),listboxState:m?0:1,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,optionsVisible:!1,buttonElement:null,optionsElement:null,__demoMode:m}),L=se({static:!1,hold:!1}),S=se(new Map),_=sx(u),k=Te(H=>Rt(T.mode,{1:()=>E.some(U=>_(U,H)),0:()=>_(E,H)}),[E]),T=de(()=>({...I,value:E,disabled:d,invalid:f,mode:h?1:0,orientation:b,compare:_,isSelected:k,optionsPropsRef:L,listRef:S}),[E,d,f,h,I,S]);ze(()=>{I.dataRef.current=T},[T]);let D=T.listboxState===0;Th(D,[T.buttonElement,T.optionsElement],(H,U)=>{var ee;P({type:1}),Eh(U,ru.Loose)||(H.preventDefault(),(ee=T.buttonElement)==null||ee.focus())});let O=de(()=>({open:T.listboxState===0,disabled:d,invalid:f,value:E}),[T,d,E,f]),q=ue(H=>{let U=T.options.find(ee=>ee.id===H);U&&fe(U.dataRef.current.value)}),he=ue(()=>{if(T.activeOptionIndex!==null){let{dataRef:H,id:U}=T.options[T.activeOptionIndex];fe(H.current.value),P({type:2,focus:mt.Specific,id:U})}}),Y=ue(()=>P({type:0})),G=ue(()=>P({type:1})),F=tr(),W=ue((H,U,ee)=>{F.dispose(),F.microTask(()=>H===mt.Specific?P({type:2,focus:mt.Specific,id:U,trigger:ee}):P({type:2,focus:H,trigger:ee}))}),B=ue((H,U)=>(P({type:5,id:H,dataRef:U}),()=>P({type:6,id:H}))),fe=ue(H=>Rt(T.mode,{0(){return $==null?void 0:$(H)},1(){let U=T.value.slice(),ee=U.findIndex(ie=>_(ie,H));return ee===-1?U.push(H):U.splice(ee,1),$==null?void 0:$(U)}})),Q=ue(H=>P({type:3,value:H})),R=ue(()=>P({type:4})),ce=ue(H=>{P({type:7,element:H})}),te=ue(H=>{P({type:8,element:H})}),be=de(()=>({onChange:fe,registerOption:B,goToOption:W,closeListbox:G,openListbox:Y,selectActiveOption:he,selectOption:q,search:Q,clearSearch:R,setButtonElement:ce,setOptionsElement:te}),[]),[Re,re]=J2({inherit:!0}),ve={ref:x},_e=Te(()=>{if(C!==void 0)return $==null?void 0:$(C)},[$,C]),Ee=wt();return X.createElement(re,{value:Re,props:{htmlFor:(n=T.buttonElement)==null?void 0:n.id},slot:{open:T.listboxState===0,disabled:d}},X.createElement(UC,null,X.createElement(mu.Provider,{value:be},X.createElement(Qs.Provider,{value:T},X.createElement(Kh,{value:Rt(T.listboxState,{0:Mt.Open,1:Mt.Closed})},a!=null&&E!=null&&X.createElement(H2,{disabled:d,data:{[a]:E},form:s,onReset:_e}),Ee({ourProps:ve,theirProps:w,slot:O,defaultTag:K3,name:"Listbox"}))))))}let J3="button";function Q3(e,t){var n;let r=Ao("Listbox.Button"),i=Js("Listbox.Button"),o=Jt(),s=ph(),{id:a=s||`headlessui-listbox-button-${o}`,disabled:l=r.disabled||!1,autoFocus:u=!1,...f}=e,d=kt(t,VC(),i.setButtonElement),p=HC(),h=ue(T=>{switch(T.key){case ft.Enter:R2(T.currentTarget);break;case ft.Space:case ft.ArrowDown:T.preventDefault(),Wt(()=>i.openListbox()),r.value||i.goToOption(mt.First);break;case ft.ArrowUp:T.preventDefault(),Wt(()=>i.openListbox()),r.value||i.goToOption(mt.Last);break}}),m=ue(T=>{switch(T.key){case ft.Space:T.preventDefault();break}}),w=ue(T=>{var D;if(U2(T.currentTarget))return T.preventDefault();r.listboxState===0?(Wt(()=>i.closeListbox()),(D=r.buttonElement)==null||D.focus({preventScroll:!0})):(T.preventDefault(),i.openListbox())}),b=ue(T=>T.preventDefault()),x=vh([a]),C=z2(),{isFocusVisible:E,focusProps:$}=_2({autoFocus:u}),{isHovered:I,hoverProps:P}=b2({isDisabled:l}),{pressed:L,pressProps:S}=k2({disabled:l}),_=de(()=>({open:r.listboxState===0,active:L||r.listboxState===0,disabled:l,invalid:r.invalid,value:r.value,hover:I,focus:E,autofocus:u}),[r.listboxState,r.value,l,I,E,L,r.invalid,u]),k=dh(p(),{ref:d,id:a,type:bx(e,r.buttonElement),"aria-haspopup":"listbox","aria-controls":(n=r.optionsElement)==null?void 0:n.id,"aria-expanded":r.listboxState===0,"aria-labelledby":x,"aria-describedby":C,disabled:l||void 0,autoFocus:u,onKeyDown:h,onKeyUp:m,onKeyPress:b,onClick:w},$,P,S);return wt()({ourProps:k,theirProps:f,slot:_,defaultTag:J3,name:"Listbox.Button"})}let m0=Je(!1),e5="div",t5=ui.RenderStrategy|ui.Static;function n5(e,t){var n,r;let i=Jt(),{id:o=`headlessui-listbox-options-${i}`,anchor:s,portal:a=!1,modal:l=!0,transition:u=!1,...f}=e,d=LC(s),[p,h]=ye(null);d&&(a=!0);let m=Ao("Listbox.Options"),w=Js("Listbox.Options"),b=Ci(m.optionsElement),x=So(),[C,E]=Dh(u,p,x!==null?(x&Mt.Open)===Mt.Open:m.listboxState===0);Ch(C,m.buttonElement,w.closeListbox);let $=m.__demoMode?!1:l&&m.listboxState===0;Mh($,b);let I=m.__demoMode?!1:l&&m.listboxState===0;xh(I,{allowed:Te(()=>[m.buttonElement,m.optionsElement],[m.buttonElement,m.optionsElement])});let P=m.listboxState!==0,L=j3(P,m.buttonElement)?!1:C,S=C&&m.listboxState===1,_=zC(S,m.value),k=ue(R=>m.compare(_,R)),T=de(()=>{var R;if(d==null||!((R=d==null?void 0:d.to)!=null&&R.includes("selection")))return null;let ce=m.options.findIndex(te=>k(te.dataRef.current.value));return ce===-1&&(ce=0),ce},[d,m.options]),D=(()=>{if(d==null)return;if(T===null)return{...d,inner:void 0};let R=Array.from(m.listRef.current.values());return{...d,inner:{listRef:{current:R},index:T}}})(),[O,q]=BC(D),he=jC(),Y=kt(t,d?O:null,w.setOptionsElement,h),G=tr();De(()=>{var R;let ce=m.optionsElement;ce&&m.listboxState===0&&ce!==((R=_i(ce))==null?void 0:R.activeElement)&&(ce==null||ce.focus({preventScroll:!0}))},[m.listboxState,m.optionsElement]);let F=ue(R=>{var ce,te;switch(G.dispose(),R.key){case ft.Space:if(m.searchQuery!=="")return R.preventDefault(),R.stopPropagation(),w.search(R.key);case ft.Enter:if(R.preventDefault(),R.stopPropagation(),m.activeOptionIndex!==null){let{dataRef:be}=m.options[m.activeOptionIndex];w.onChange(be.current.value)}m.mode===0&&(Wt(()=>w.closeListbox()),(ce=m.buttonElement)==null||ce.focus({preventScroll:!0}));break;case Rt(m.orientation,{vertical:ft.ArrowDown,horizontal:ft.ArrowRight}):return R.preventDefault(),R.stopPropagation(),w.goToOption(mt.Next);case Rt(m.orientation,{vertical:ft.ArrowUp,horizontal:ft.ArrowLeft}):return R.preventDefault(),R.stopPropagation(),w.goToOption(mt.Previous);case ft.Home:case ft.PageUp:return R.preventDefault(),R.stopPropagation(),w.goToOption(mt.First);case ft.End:case ft.PageDown:return R.preventDefault(),R.stopPropagation(),w.goToOption(mt.Last);case ft.Escape:R.preventDefault(),R.stopPropagation(),Wt(()=>w.closeListbox()),(te=m.buttonElement)==null||te.focus({preventScroll:!0});return;case ft.Tab:R.preventDefault(),R.stopPropagation(),Wt(()=>w.closeListbox()),yx(m.buttonElement,R.shiftKey?ln.Previous:ln.Next);break;default:R.key.length===1&&(w.search(R.key),G.setTimeout(()=>w.clearSearch(),350));break}}),W=(n=m.buttonElement)==null?void 0:n.id,B=de(()=>({open:m.listboxState===0}),[m.listboxState]),fe=dh(d?he():{},{id:o,ref:Y,"aria-activedescendant":m.activeOptionIndex===null||(r=m.options[m.activeOptionIndex])==null?void 0:r.id,"aria-multiselectable":m.mode===1?!0:void 0,"aria-labelledby":W,"aria-orientation":m.orientation,onKeyDown:F,role:"listbox",tabIndex:m.listboxState===0?0:void 0,style:{...f.style,...q,"--button-width":lx(m.buttonElement,!0).width},...Ih(E)}),Q=wt();return X.createElement(n0,{enabled:a?e.static||C:!1},X.createElement(Qs.Provider,{value:m.mode===1?m:{...m,isSelected:k}},Q({ourProps:fe,theirProps:f,slot:B,defaultTag:e5,features:t5,visible:L,name:"Listbox.Options"})))}let r5="div";function i5(e,t){let n=Jt(),{id:r=`headlessui-listbox-option-${n}`,disabled:i=!1,value:o,...s}=e,a=Oe(m0)===!0,l=Ao("Listbox.Option"),u=Js("Listbox.Option"),f=l.activeOptionIndex!==null?l.options[l.activeOptionIndex].id===r:!1,d=l.isSelected(o),p=se(null),h=U3(p),m=nr({disabled:i,value:o,domRef:p,get textValue(){return h()}}),w=kt(t,p,_=>{_?l.listRef.current.set(r,_):l.listRef.current.delete(r)});ze(()=>{if(!l.__demoMode&&l.listboxState===0&&f&&l.activationTrigger!==0)return Pn().requestAnimationFrame(()=>{var _,k;(k=(_=p.current)==null?void 0:_.scrollIntoView)==null||k.call(_,{block:"nearest"})})},[p,f,l.__demoMode,l.listboxState,l.activationTrigger,l.activeOptionIndex]),ze(()=>{if(!a)return u.registerOption(r,m)},[m,r,a]);let b=ue(_=>{var k;if(i)return _.preventDefault();u.onChange(o),l.mode===0&&(Wt(()=>u.closeListbox()),(k=l.buttonElement)==null||k.focus({preventScroll:!0}))}),x=ue(()=>{if(i)return u.goToOption(mt.Nothing);u.goToOption(mt.Specific,r)}),C=Ax(),E=ue(_=>{C.update(_),!i&&(f||u.goToOption(mt.Specific,r,0))}),$=ue(_=>{C.wasMoved(_)&&(i||f||u.goToOption(mt.Specific,r,0))}),I=ue(_=>{C.wasMoved(_)&&(i||f&&u.goToOption(mt.Nothing))}),P=de(()=>({active:f,focus:f,selected:d,disabled:i,selectedOption:d&&a}),[f,d,i,a]),L=a?{}:{id:r,ref:w,role:"option",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-selected":d,disabled:void 0,onClick:b,onFocus:x,onPointerEnter:E,onMouseEnter:E,onPointerMove:$,onMouseMove:$,onPointerLeave:I,onMouseLeave:I},S=wt();return!d&&a?null:S({ourProps:L,theirProps:s,slot:P,defaultTag:r5,name:"Listbox.Option"})}let o5=Ue;function s5(e,t){let{options:n,placeholder:r,...i}=e,o={ref:kt(t)},s=Ao("ListboxSelectedOption"),a=de(()=>({}),[]),l=s.value===void 0||s.value===null||s.mode===1&&Array.isArray(s.value)&&s.value.length===0,u=wt();return X.createElement(m0.Provider,{value:!0},u({ourProps:o,theirProps:{...i,children:X.createElement(X.Fragment,null,r&&l?r:n)},slot:a,defaultTag:o5,name:"ListboxSelectedOption"}))}let a5=ct(X3),h0=ct(Q3),l5=nx,p0=ct(n5),g0=ct(i5),u5=ct(s5),c5=Object.assign(a5,{Button:h0,Label:l5,Options:p0,Option:g0,SelectedOption:u5}),Kt=class extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Open","OnClose","Children"]}};function ea(e){return c(f0,Ir(e,1))}class ta extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","ClassName","Children"]}}function na(e){return c(f0.Panel,Ir(e,1))}class ra extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName"]}}function ia(e){return c(V3,Ir(e,1))}function oa(e,t){let n;return c("svg",g(y([["width",e],["height",t],["viewBox","0 0 "+e+" "+t],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(n=me(c("path",{d:"M6 18L18 6M6 6L18 18",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2,strokeLinecap:"round"})),["children",v.Children.toArray(Array.from(n))])])))}function d5(e,t){let n,r,i,o,s;return ea(y([new Kt(3,[e]),new Kt(4,[t]),new Kt(5,[[ia(me(new ra(2,["fixed inset-0 bg-gray-500/50"]))),c("div",g(y([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(n=[na(me(new ta(2,[[c("div",g(y([["className","flex flex-col mt-6 mb-6 px-6"],(r=[c("div",g(y([["className","flex flex-row justify-between"],(i=[c("span",{className:"text-gray-900 font-semibold text-lg",children:"What is mapping and why is it important?"}),c("button",g(y([["onClick",a=>{t()}],["type","button"],["className","text-gray-700"],(o=[oa(24,24)],["children",v.Children.toArray(Array.from(o))])])))],["children",v.Children.toArray(Array.from(i))])]))),c("div",g(y([["className","text-sm text-gray-600 pt-6"],(s="Mapping involves pairing each incoming CSV field with its correct destination field. This step is important because it makes sure that your data is organised correctly, minimising the risk of errors and ensuring a smooth import process.",["children",s])])))],["children",v.Children.toArray(Array.from(r))])])))]])))],["children",v.Children.toArray(Array.from(n))])])))]])]))}function sa(e){return c("span",{className:"font-sonoma text-black font-semibold text-lg",children:e})}function aa(e){return c("span",{className:"text-sm font-normal pt-2",children:e})}function no(e,t){return c("button",{className:"rounded-2xl text-xs font-medium text-gray-600 border px-3.5 py-1.5 bg-white hover:bg-gray-50",onClick:n=>{t()},type:"button",children:v.Children.toArray([e])})}function f5(e,t){let n,r;return c("svg",g(y([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=me(c("path",g(y([["clipRule","evenodd"],["fill-rule","evenodd"],(r="M18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10ZM11 6C11 6.55228 10.5523 7 10 7C9.44772 7 9 6.55228 9 6C9 5.44772 9.44772 5 10 5C10.5523 5 11 5.44772 11 6ZM9 9C8.44772 9 8 9.44772 8 10C8 10.5523 8.44772 11 9 11V14C9 14.5523 9.44772 15 10 15H11C11.5523 15 12 14.5523 12 14C12 13.4477 11.5523 13 11 13V10C11 9.44772 10.5523 9 10 9H9Z",["d",r]),["fill","#60A5FA"]])))),["children",v.Children.toArray(Array.from(n))])])))}function y0(){let e,t,n;return c("div",g(y([["className","w-full p-4 bg-blue-50 rounded-md justify-start items-start gap-3 inline-flex"],(e=[f5(20,20),c("div",g(y([["className","grow shrink basis-0 h-[60px] justify-between items-center flex"],(t=[c("div",g(y([["className","grow shrink basis-0 text-blue-800 text-sm font-medium leading-tight"],(n="We’ve automatically pre-filled some options based on the matches found in your CSV. Please double-check to make sure they are correct and fill in any missing fields before continuing.",["children",n])])))],["children",v.Children.toArray(Array.from(t))])])))],["children",v.Children.toArray(Array.from(e))])])))}function w0(e,t){let n,r;return c("svg",g(y([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=me(c("path",g(y([(r="M15.8008 12.5263L9.48383 0.880306C9.32803 0.591371 9.09045 0.354828 8.80083 0.200306C8.40735 -0.0102628 7.94665 -0.0569536 7.51893 0.0703896C7.0912 0.197733 6.73106 0.488809 6.51683 0.880306L0.20083 12.5263C0.0627228 12.7826 -0.00633038 13.0704 0.00045607 13.3614C0.00724252 13.6525 0.0896351 13.9368 0.239538 14.1863C0.38944 14.4359 0.601694 14.6422 0.855444 14.7849C1.10919 14.9276 1.39571 15.0018 1.68683 15.0003H14.3148C14.5939 15.0003 14.8686 14.9316 15.1148 14.8003C15.3099 14.6968 15.4825 14.5556 15.6228 14.3851C15.763 14.2145 15.8681 14.0178 15.932 13.8064C15.9958 13.595 16.0172 13.373 15.9949 13.1533C15.9726 12.9336 15.9069 12.7205 15.8018 12.5263H15.8008ZM8.00083 13.0003C7.80305 13.0003 7.60971 12.9417 7.44526 12.8318C7.28081 12.7219 7.15264 12.5657 7.07695 12.383C7.00126 12.2003 6.98146 11.9992 7.02004 11.8052C7.05863 11.6112 7.15387 11.4331 7.29372 11.2932C7.43358 11.1533 7.61176 11.0581 7.80574 11.0195C7.99972 10.9809 8.20079 11.0007 8.38351 11.0764C8.56624 11.1521 8.72242 11.2803 8.8323 11.4447C8.94218 11.6092 9.00083 11.8025 9.00083 12.0003C9.00083 12.2655 8.89547 12.5199 8.70794 12.7074C8.5204 12.8949 8.26605 13.0003 8.00083 13.0003ZM9.00083 9.50031C9.00083 9.63291 8.94815 9.76009 8.85438 9.85386C8.76062 9.94763 8.63344 10.0003 8.50083 10.0003H7.50083C7.36822 10.0003 7.24104 9.94763 7.14728 9.85386C7.05351 9.76009 7.00083 9.63291 7.00083 9.50031V5.50031C7.00083 5.3677 7.05351 5.24052 7.14728 5.14675C7.24104 5.05298 7.36822 5.00031 7.50083 5.00031H8.50083C8.63344 5.00031 8.76062 5.05298 8.85438 5.14675C8.94815 5.24052 9.00083 5.3677 9.00083 5.50031V9.50031Z",["d",r]),["fill","#F87171"]])))),["children",v.Children.toArray(Array.from(n))])])))}function v0(e){let t,n;return c("div",g(y([["className","w-full h-[52px] p-4 bg-red-50 rounded-md justify-start items-start gap-3 inline-flex"],(t=[w0(16,15),c("div",g(y([["className","grow shrink basis-0 h-5 justify-between items-center flex"],(n=[c("div",{className:"grow shrink basis-0 text-red-800 text-sm font-medium leading-tight",children:e})],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))}function la(e,t){let n;return c("svg",g(y([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=y([c("path",{d:"M15 6H1",stroke:"#D1D5DB",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),c("path",{d:"M6 11L1 6L6 1",stroke:"#D1D5DB",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]),["children",v.Children.toArray(Array.from(n))])])))}class ni extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Value","OnChange","Children"]}}function b0(e){return c(c5,Ir(e,1))}class bs extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ClassName","Children"]}}function _0(e){return c(h0,Ir(e,1))}class x0 extends J{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ClassName"]}}function C0(e,t){return c(p0,Ir(e,1),...t)}class hn extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","Value","Disabled","ClassName","Children"]}}function S0(e){return c(g0,Ir(e,1))}function E0(e,t){let n,r;return c("svg",g(y([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=me(c("path",g(y([["clipRule","evenodd"],["fill-rule","evenodd"],(r="M5.29289 7.29289C5.68342 6.90237 6.31658 6.90237 6.7071 7.29289L9.99999 10.5858L13.2929 7.29289C13.6834 6.90237 14.3166 6.90237 14.7071 7.29289C15.0976 7.68342 15.0976 8.31658 14.7071 8.70711L10.7071 12.7071C10.3166 13.0976 9.68341 13.0976 9.29289 12.7071L5.29289 8.70711C4.90237 8.31658 4.90237 7.68342 5.29289 7.29289Z",["d",r]),["fill","#6B7280"]])))),["children",v.Children.toArray(Array.from(n))])])))}class Pi extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Below","Above"]}}function Li(e,t,n,r,i,o,s,a,l){let u,f,d,p,h,m,w;const b=i.fields[0],x=pf(xt(C=>C[1].fields[0],ag(C=>Mf(C.fields[0],b),r)));return c("div",g(y([["key",et(e)],["className","h-14 pr-3 py-2 rounded-lg justify-start items-center gap-2 inline-flex"],(u=[c("div",g(y([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(f=[c("div",g(K(N(()=>j(A(["className",`${r==null?"bg-gray-50 border-gray-200 text-gray-500":"bg-emerald-50 border-emerald-200 text-emerald-700"} px-2 py-1 rounded border justify-start items-center gap-1.5 flex overflow-hidden`]),N(()=>{let C;return A((C=K(N(()=>j(A(c("div",{className:"text-sm font-medium leading-tight",children:Ji(e)})),N(()=>A(t?c("div",{className:"text-red-500 text-sm font-medium leading-tight",children:"*"}):Ae()))))),["children",v.Children.toArray(Array.from(C))]))}))))))],["children",v.Children.toArray(Array.from(f))])]))),c("div",g(y([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(d=[la(16,12)],["children",v.Children.toArray(Array.from(d))])]))),c("div",g(y([["className","w-[230px] h-[38px] px-3 justify-start items-center gap-2 flex"],(p=[b0(y([new ni(0,[x]),new ni(1,[C=>{Mr(E=>{s(E[0])},Ns(Ts(E=>E[1].fields[0]===C?ne(E[2],new Sn(0,[])):!1,b)))}]),new ni(2,[[c("div",g(y([["className","relative w-full"],(h=[_0(K(N(()=>{let C;return j(A(new bs(0,[`${C=t&&n,C&&r==null?"outline-red-300":"outline-gray-300"} grid w-full grid-cols-1 rounded-md bg-white hover:bg-gray-50 py-1.5 pl-3 pr-2 text-left text-gray-900 text-sm outline outline-1 -outline-offset-1 focus:outline focus:outline-2 focus:outline-blue-600 focus:-outline-offset-2`])),N(()=>{let E;return A(new bs(1,[[c("span",g(K(N(()=>{let $;const I=t&&n;return $=r!=null?[x,""]:I?["Select a field","text-red-900"]:["Select a field","text-gray-500"],j(A(["className",`${$[1]} col-start-1 row-start-1 truncate pr-6`]),N(()=>A(["children",$[0]])))})))),c("span",g(y([["className","col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4"],(E=[E0(20,20)],["children",v.Children.toArray(Array.from(E))])])))]]))}))}))),C0(K(N(()=>A(new x0(`z-10 absolute ${o.tag===1?"-mt-[226px]":"mt-0.5"} max-h-48 w-full overflow-auto rounded-md border border-gray-300 shadow-gray-300 shadow-lg bg-white py-1 text-sm`)))),K(N(()=>Ds(C=>{const E=C[2],$=C[1].fields[0];return A(S0(y([new hn(0,[cn(C[0].fields[0])]),new hn(1,[$]),new hn(2,[ne(E,new Sn(1,[]))]),new hn(3,["relative select-none"]),new hn(4,[I=>[c("span",{className:"px-4 py-2 block truncate "+(E.tag===0?I.active?"bg-primary-600 text-white":"text-gray-700":"text-gray-700 opacity-50 cursor-not-allowed"),children:$})]])])))},b))))],["children",v.Children.toArray(Array.from(h))])])))]])]))],["children",v.Children.toArray(Array.from(p))])]))),c("div",g(y([(m="pl-1 justify-center items-center gap-2.5 flex text-gray-500 text-xs font-normal underline leading-none",["className",m]),(w=[c("button",g(K(N(()=>j(A(["children","Clear"]),N(()=>j(a==null?A(["className","opacity-50 cursor-not-allowed"]):A(["className","cursor-pointer py-3 hover:text-gray-700"]),N(()=>{const C=a;if(C==null)return at();{const E=C;return A(["onClick",$=>{E()}])}})))))))),c("button",g(K(N(()=>j(A(["children","Preview"]),N(()=>j(l==null?A(["className","opacity-50 cursor-not-allowed"]):A(["className","cursor-pointer py-3 hover:text-gray-700"]),N(()=>{const C=l;if(C==null)return at();{const E=C;return A(["onClick",$=>{E()}])}}))))))))],["children",v.Children.toArray(Array.from(w))])])))],["children",v.Children.toArray(Array.from(u))])])))}function A0(e,t){let n,r;return c("svg",g(y([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=me(c("path",g(y([["clipRule","evenodd"],["fill-rule","evenodd"],(r="M6.3001 1.40002C6.03495 1.40002 5.79257 1.54983 5.674 1.78697L5.16747 2.80002H2.8001C2.4135 2.80002 2.1001 3.11342 2.1001 3.50002C2.1001 3.88662 2.4135 4.20002 2.8001 4.20002L2.8001 11.2C2.8001 11.9732 3.4269 12.6 4.2001 12.6H9.80009C10.5733 12.6 11.2001 11.9732 11.2001 11.2V4.20002C11.5867 4.20002 11.9001 3.88662 11.9001 3.50002C11.9001 3.11342 11.5867 2.80002 11.2001 2.80002H8.83272L8.32619 1.78697C8.20762 1.54983 7.96523 1.40002 7.70009 1.40002H6.3001ZM4.9001 5.60002C4.9001 5.21342 5.2135 4.90002 5.60009 4.90002C5.98669 4.90002 6.30009 5.21342 6.30009 5.60002V9.80002C6.30009 10.1866 5.98669 10.5 5.60009 10.5C5.2135 10.5 4.9001 10.1866 4.9001 9.80002V5.60002ZM8.40009 4.90002C8.01349 4.90002 7.70009 5.21342 7.70009 5.60002V9.80002C7.70009 10.1866 8.01349 10.5 8.40009 10.5C8.78669 10.5 9.10009 10.1866 9.10009 9.80002V5.60002C9.10009 5.21342 8.78669 4.90002 8.40009 4.90002Z",["d",r]),["fill","#9CA3AF"]])))),["children",v.Children.toArray(Array.from(n))])])))}function hu(e,t){let n,r;return c("svg",g(y([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=me(c("path",g(y([(r="M9.99992 0.833328C4.94575 0.833328 0.833252 4.94583 0.833252 10C0.833252 15.0542 4.94575 19.1667 9.99992 19.1667C15.0541 19.1667 19.1666 15.0542 19.1666 10C19.1666 4.94583 15.0541 0.833328 9.99992 0.833328ZM8.37409 14.5525L4.65492 10.8333L5.83325 9.655L8.29242 12.1142L14.0883 5.49083L15.3424 6.58833L8.37409 14.5525Z",["d",r]),["fill","#10B981"]])))),["children",v.Children.toArray(Array.from(n))])])))}function k0(e){let t,n,r;return c("div",g(y([["className","w-full h-[52px] p-4 bg-emerald-50 rounded-md justify-start items-center gap-3 inline-flex"],(t=[c("span",g(y([["className","text-emerald-700"],(n=[hu(20,20)],["children",v.Children.toArray(Array.from(n))])]))),c("div",g(y([["className","grow shrink basis-0 h-5 justify-start items-center gap-3 flex"],(r=[c("div",{className:"grow shrink basis-0 text-emerald-800 text-sm font-medium leading-tight",children:e})],["children",v.Children.toArray(Array.from(r))])])))],["children",v.Children.toArray(Array.from(t))])])))}function pu(e,t){let n,r;return c("svg",g(y([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=me(c("path",g(y([(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",v.Children.toArray(Array.from(n))])])))}function m5(e){return e.startsWith("614")&&e.length===11?`+${e}`:e}function h5(e){return e.startsWith("04")&&e.length===10?`+614${e.slice(2,e.length)}`:e}function N0(e){return h5(m5(mf(e," ","")))}function p5(e,t){let n,r,i,o,s,a,l;return c("div",g(y([["className","w-80 py-6 justify-start items-center gap-2.5 flex"],(n=[c("div",g(y([(r="grow shrink basis-0 p-4 bg-white rounded-lg shadow-lg border border-gray-100 flex-col justify-start items-start gap-3 inline-flex overflow-hidden",["className",r]),(i=[c("div",g(y([["className","self-stretch justify-start items-center gap-2 inline-flex"],(o=[c("div",{className:"text-black text-base font-semibold leading-normal",children:`Previewing “${Ji(e)}”`})],["children",v.Children.toArray(Array.from(o))])]))),c("div",g(y([["className","self-stretch bg-white flex-col justify-start items-start flex overflow-hidden"],(s=[c("div",g(y([["className","self-stretch flex-col justify-center items-start flex"],(a=$f((u,f)=>c("div",g(K(N(()=>j(A(["className",`${u%2===0?"bg-white":"bg-gray-50"} self-stretch h-10 px-3 py-3.5 border-b border-gray-200 justify-start items-center gap-1 inline-flex overflow-hidden`]),N(()=>{let d;return A((d=K(N(()=>{const p=ao(f);return A(p?c("i",{className:"grow shrink text-gray-500 text-sm font-normal leading-tight",children:"(empty)"}):c("div",g(K(N(()=>j(A(["className","grow shrink text-gray-700 text-sm font-medium leading-tight"]),N(()=>e.tag===3?A(["children",N0(f)]):A(["children",f]))))))))})),["children",v.Children.toArray(Array.from(d))]))})))))),t),["children",v.Children.toArray(Array.from(a))])])))],["children",v.Children.toArray(Array.from(s))])]))),c("div",g(y([["className","self-stretch pt-2 justify-center items-center gap-2.5 inline-flex"],(l=[c("div",{className:"grow shrink basis-0 text-gray-500 text-sm font-normal leading-tight",children:"Showing first 10 rows only"})],["children",v.Children.toArray(Array.from(l))])])))],["children",v.Children.toArray(Array.from(i))])])))],["children",v.Children.toArray(Array.from(n))])])))}function g5(e){let t,n,r;const i=e.back,o=e.next,s=e.dataRows,a=e.headerRow,l=e.existingMappings;let u;const f=n2(a,l);u=Or(()=>Dr(()=>f,(E,$)=>r2(a,s,E,$),(E,$)=>{}),void 0,void 0);const d=u[0],p=u[1],h=v.useState(!1),m=h[1],w=v.useState(!1),b=w[0],x=E=>{if(e2(d)(E))return()=>{p(new ir(1,[E]))}},C=E=>{if(t2(d,E))return()=>{p(new ir(2,[E]))}};return c("div",g(y([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12 h-full"],(t=[d5(h[0],()=>{m(!1)}),sa("Map fields"),aa("Match the fields from your CSV to the corresponding destination fields."),c("div",g(y([["className","flex flex-row pt-3 gap-2"],(n=[no("What is mapping and why is it important?",()=>{m(!0)})],["children",v.Children.toArray(Array.from(n))])]))),c("div",g(y([["className","justify-start items-start gap-12 inline-flex"],(r=K(N(()=>{let E;return j(A(c("div",g(y([["className","w-[640px] pt-6 flex-col justify-start items-start gap-4 inline-flex"],(E=K(N(()=>j(l==null?A(y0()):A(Ae()),N(()=>j(b&&d.Status.tag===0?A(v0("Some required fields are incomplete. Fill in all required fields to continue.")):A(Ae()),N(()=>{let $,I,P,L,S,_,k,T;return A(c("div",g(y([["className","flex-col justify-start items-start inline-flex overflow-hidden"],($=[c("div",g(y([(I="w-[640px] h-16 pt-6 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 inline-flex",["className",I]),(P=[c("div",g(y([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(L=[c("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Destination fields"}),c("div",g(K(N(()=>j(A(["className",`${d.NumberOfDestinationFieldsMapped===5?"bg-emerald-100 text-emerald-800":"bg-blue-100 text-blue-800"} px-2.5 py-0.5 rounded-[10px] justify-center items-center flex`]),N(()=>{let D;return A((D=[c("div",{className:"text-center text-xs font-medium leading-none",children:`${d.NumberOfDestinationFieldsMapped} of 5 mapped`})],["children",v.Children.toArray(Array.from(D))]))}))))))],["children",v.Children.toArray(Array.from(L))])]))),c("div",{className:"w-5 h-5 px-3 py-3.5"}),c("div",g(y([["className","w-[260px] h-10 px-3 py-3.5 justify-start items-center gap-1 flex overflow-hidden"],(S=[c("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Incoming CSV fields"}),c("div",g(y([["className","px-2.5 py-0.5 bg-gray-100 rounded-[10px] justify-center items-center flex"],(_=[c("div",{className:"text-center text-gray-800 text-xs font-medium leading-none",children:`${d.NumberOfDestinationFieldsMapped} of ${d.NumberOfIncomingFields} used`})],["children",v.Children.toArray(Array.from(_))])])))],["children",v.Children.toArray(Array.from(S))])])))],["children",v.Children.toArray(Array.from(P))])]))),c("div",g(y([["className","w-[640px] pt-2 pb-24 flex-col justify-start items-start gap-2 flex overflow-hidden"],(k=[c("div",g(me((T=K(N(()=>j(A(Li(new ae(0,[]),!0,b,d.FirstName.ColumnIndex,d.FirstName.IncomingFields,new Pi(0,[]),D=>{let O;p((O=[new ae(0,[]),D],new ir(0,[O[0],O[1]])))},x(new ae(0,[])),C(new ae(0,[])))),N(()=>j(A(Li(new ae(1,[]),!0,b,d.LastName.ColumnIndex,d.LastName.IncomingFields,new Pi(0,[]),D=>{let O;p((O=[new ae(1,[]),D],new ir(0,[O[0],O[1]])))},x(new ae(1,[])),C(new ae(1,[])))),N(()=>j(A(Li(new ae(2,[]),!0,b,d.Email.ColumnIndex,d.Email.IncomingFields,new Pi(0,[]),D=>{let O;p((O=[new ae(2,[]),D],new ir(0,[O[0],O[1]])))},x(new ae(2,[])),C(new ae(2,[])))),N(()=>j(A(Li(new ae(3,[]),!1,b,d.MobilePhone.ColumnIndex,d.MobilePhone.IncomingFields,new Pi(0,[]),D=>{let O;p((O=[new ae(3,[]),D],new ir(0,[O[0],O[1]])))},x(new ae(3,[])),C(new ae(3,[])))),N(()=>j(A(Li(new ae(4,[]),!1,b,d.EmploymentBasis.ColumnIndex,d.EmploymentBasis.IncomingFields,new Pi(1,[]),D=>{let O;p((O=[new ae(4,[]),D],new ir(0,[O[0],O[1]])))},x(new ae(4,[])),C(new ae(4,[])))),N(()=>{let D,O,q,he,Y,G;return j(d.NumberOfIncomingFieldsDiscarded===0?A(Ae()):A(c("div",g(y([["className","h-16 pr-3 pt-2 pb-4 rounded-lg justify-start items-start gap-2 inline-flex"],(D=[c("div",g(y([["className","h-10 bg-gray-100 rounded-lg justify-start items-center gap-2 flex"],(O=[c("div",g(y([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(q=[A0(14,14),c("div",{className:"text-gray-500 text-sm font-medium leading-tight",children:"Discarded"})],["children",v.Children.toArray(Array.from(q))])]))),c("div",g(y([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(he=[la(16,12)],["children",v.Children.toArray(Array.from(he))])]))),c("div",g(y([["className","flex-col justify-start items-start gap-2 inline-flex"],(Y=[c("div",g(y([["className","w-[218px] pl-3 items-center inline-flex"],(G=[c("div",g(K(N(()=>j(A(["className","text-gray-500 text-sm font-medium"]),N(()=>{const F=d.NumberOfIncomingFieldsDiscarded|0;return A(F===1?["children","Remaining 1 unused field"]:["children",`Remaining ${F} unused fields`])}))))))],["children",v.Children.toArray(Array.from(G))])])))],["children",v.Children.toArray(Array.from(Y))])])))],["children",v.Children.toArray(Array.from(O))])])))],["children",v.Children.toArray(Array.from(D))])])))),N(()=>{let F;return A(c("div",g(y([["className","w-[640px] pt-4 border-t border-gray-200 flex-col justify-start items-start flex"],(F=K(N(()=>j(d.NumberOfDestinationFieldsMapped===5?A(k0("All destination fields have been mapped. You’re good to go.")):A(Ae()),N(()=>{let W,B,fe,Q,R,ce,te,be,Re;return A(c("div",g(y([["className","h-[58px] pt-2 justify-start items-end gap-2 inline-flex w-full"],(W=[c("div",g(y([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(B=[c("div",g(y([["className","grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"],(fe=[c("div",g(y([["className","grow shrink basis-0 text-right"],(Q=[c("span",{className:"text-gray-500 text-xs font-normal leading-none",children:"Destination fields marked with "}),c("span",{className:"text-red-600 text-xs font-normal leading-none",children:"*"}),c("span",{className:"text-gray-500 text-xs font-normal leading-none",children:" are required"})],["children",v.Children.toArray(Array.from(Q))])])))],["children",v.Children.toArray(Array.from(fe))])]))),c("div",g(y([["className","justify-start items-center gap-2 flex"],(R=[c("button",g(y([(ce="px-[13px] py-[9px] bg-white hover:bg-gray-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",ce]),["onClick",re=>{i(d.Status)}],(te=[c("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",v.Children.toArray(Array.from(te))])]))),c("button",g(y([(be="pl-[13px] pr-[11px] py-[9px] bg-primary-600 hover:enabled:bg-primary-700 disabled:opacity-50 rounded-md shadow-sm justify-center items-center gap-2 flex overflow-hidden",["className",be]),["disabled",b&&d.Status.tag===0],["onClick",re=>{const ve=d.Status;ve.tag===0?w[1](!0):o([ve.fields[0],ve.fields[1]])}],(Re=[c("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:"Next"}),pu(13,8)],["children",v.Children.toArray(Array.from(Re))])])))],["children",v.Children.toArray(Array.from(R))])])))],["children",v.Children.toArray(Array.from(B))])])))],["children",v.Children.toArray(Array.from(W))])]))))})))),["children",v.Children.toArray(Array.from(F))])]))))}))})))))))))))),["children",v.Children.toArray(Array.from(T))]))))],["children",v.Children.toArray(Array.from(k))])])))],["children",v.Children.toArray(Array.from($))])]))))})))))),["children",v.Children.toArray(Array.from(E))])])))),N(()=>{const $=d.Preview;return $==null?A(Ae()):A(p5($[0],$[1]))}))})),["children",v.Children.toArray(Array.from(r))])])))],["children",v.Children.toArray(Array.from(t))])])))}class Fo extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UploadingCsv","MappingColumns","MappingEmploymentBasis","Reviewing"]}}class Da extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Reviewing","MappingEmploymentBasis","MappingColumns"]}}let or=class extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Next","Back"]}},Po=class extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Add","Clear","Remove","Set"]}},y5=class extends Ce{constructor(t,n,r,i,o,s,a){super(),this.IncomingValues=t,this.Selections=n,this.NumberOfIncomingValuesUsed=r|0,this.NumberOfDestinationValuesMapped=i|0,this.DiscardedValues=o,this.ValidatedMappings=s,this.Prefilled=a}};class ro extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Available","Unavailable"]}}const Bn=[void 0];function T0(e,t,n){let r;const i=t.fields[0],o=Ut(s=>s,ss(mc(n)));return new y5(Ge(s=>[s,pi(s,o,{Equals:ne,GetHashCode:es})?new ro(1,[]):new ro(0,[])],i),n,o.length,e1(Vl(s=>{let a;return a=Ut(l=>l,s),a.length!==0},mc(n))),Km(o,i,{Equals:ne,GetHashCode:es}),(r=y(Ut(s=>s,ss(Le(s=>Ge(a=>{if(a!=null)return[s[0],a]},s[1]),n)))),Se(r)?void 0:new U_(le(r),er(ke(r)))),e)}function w5(e,t){const n=t.tag===1?["parttime"]:t.tag===2?["casual"]:t.tag===3?["labourhire"]:["fulltime"];return e.fields[0].filter(r=>pi(Ml(r.fields[0],"[^a-zA-Z]","").toLocaleLowerCase(),n,{Equals:(i,o)=>i===o,GetHashCode:Jn}))}function v5(e,t){let n;if(t==null){let r=!1;const i=o=>{const s=w5(e,o);return!co(ne,s,Ae())&&s.length===0?Bn:(r=!0,Ge(a=>a,s))};n=[Jr([[new st(0,[]),i(new st(0,[]))],[new st(1,[]),i(new st(1,[]))],[new st(2,[]),i(new st(2,[]))],[new st(3,[]),i(new st(3,[]))]],{Compare:vt}),r]}else{const r=t,i=Jr(Ge(o=>[o[0],Ge(s=>s[1],xg(o[1],{Compare:Nl}))],F_(o=>o[0],ss([r.Tail,[r.Head]]),{Equals:ne,GetHashCode:es})),{Compare:vt});n=[Jr([[new st(0,[]),it(mr(i,new st(0,[])),Bn)],[new st(1,[]),it(mr(i,new st(1,[])),Bn)],[new st(2,[]),it(mr(i,new st(2,[])),Bn)],[new st(3,[]),it(mr(i,new st(3,[])),Bn)]],{Compare:vt}),!1]}return[T0(n[1],e,n[0]),Z()]}function $0(e,t){const n=xr(e.Selections,t);let r;switch(!co(ne,n,Ae())&&n.length===1&&we(0,n)!=null?r=0:r=1,r){case 0:return!0;default:return!1}}function M0(e,t){let n;return e.DiscardedValues.length>0?(n=xr(e.Selections,t),!n.some(r=>r==null)):!1}function b5(e,t,n){const r=xr(e.Selections,t);return!co(ne,r,Ae())&&r.length===1?!1:pi(n,r,{Equals:ne,GetHashCode:Xt})}function _5(e,t,n,r){return!ne(n,r)&&e.IncomingValues.some(i=>ne(i[0],r)?ne(i[1],new ro(0,[])):!1)?pi(n,xr(e.Selections,t),{Equals:ne,GetHashCode:Xt}):!1}function x5(e,t,n){let r,i;const o=m=>T0(n.Prefilled,e,m);let s,a,l,u,f,d,p,h;switch(t.tag){case 1:{$0(n,t.fields[0])?(s=1,l=t.fields[0]):s=4;break}case 2:{b5(n,t.fields[0],t.fields[1])?(s=2,u=t.fields[0],f=t.fields[1]):s=4;break}case 3:{_5(n,t.fields[0],t.fields[1],t.fields[2])?(s=3,d=t.fields[0],p=t.fields[1],h=t.fields[2]):s=4;break}default:M0(n,t.fields[0])?(s=0,a=t.fields[0]):s=4}switch(s){case 0:return[o(Mo(a,m=>xt(w=>Tf(w,Bn),m),n.Selections)),Z()];case 1:return[o(Mo(l,m=>xt(w=>Bn,m),n.Selections)),Z()];case 2:return[o(Mo(u,(r=(i=[f],m=>Km(i,m,{Equals:ne,GetHashCode:Xt})),m=>xt(r,m)),n.Selections)),Z()];case 3:return[o(Mo(d,m=>xt(w=>Ge(b=>ne(b,p)?h:b,w),m),n.Selections)),Z()];default:return[n,Z()]}}function C5(e,t){let n,r;return c("svg",g(y([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=me(c("path",g(y([["clipRule","evenodd"],["fill-rule","evenodd"],(r="M6.9999 12.6C10.0927 12.6 12.5999 10.0928 12.5999 7.00002C12.5999 3.90723 10.0927 1.40002 6.9999 1.40002C3.90711 1.40002 1.3999 3.90723 1.3999 7.00002C1.3999 10.0928 3.90711 12.6 6.9999 12.6ZM7.6999 4.90002C7.6999 4.51342 7.3865 4.20002 6.9999 4.20002C6.6133 4.20002 6.2999 4.51342 6.2999 4.90002V6.30002H4.8999C4.5133 6.30002 4.1999 6.61342 4.1999 7.00002C4.1999 7.38662 4.5133 7.70002 4.8999 7.70002H6.2999V9.10002C6.2999 9.48662 6.6133 9.80002 6.9999 9.80002C7.3865 9.80002 7.6999 9.48662 7.6999 9.10002V7.70002H9.0999C9.4865 7.70002 9.7999 7.38662 9.7999 7.00002C9.7999 6.61342 9.4865 6.30002 9.0999 6.30002H7.6999V4.90002Z",["d",r]),["fill","currentColor"]])))),["children",v.Children.toArray(Array.from(n))])])))}function S5(e,t,n,r,i,o,s){let a,l,u,f,d,p;return c("div",g(y([["key",et(e)],["className","justify-start items-start gap-2 inline-flex"],(a=[c("div",g(y([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(l=[c("div",g(y([["className",Ct(" ",K(N(()=>j(co(ne,t,Bn)?A("bg-gray-50 border-gray-200 text-gray-500"):A("bg-emerald-50 border-emerald-200 text-emerald-700"),N(()=>A("px-2 py-1 rounded border justify-start items-center gap-1.5 flex overflow-hidden"))))))],(u=[c("div",{className:"text-sm font-medium leading-tight",children:Xm(e)})],["children",v.Children.toArray(Array.from(u))])])))],["children",v.Children.toArray(Array.from(l))])]))),c("div",g(y([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(f=[la(16,12)],["children",v.Children.toArray(Array.from(f))])]))),c("div",g(y([["className","px-3 justify-start items-center gap-2 flex flex-col"],(d=[c("div",g(me((p=K(N(()=>Le(h=>{let m,w,b;return c("div",g(y([["className","mt-1 justify-start items-start gap-2 flex flex-inline"],(m=[c("div",g(y([["className","justify-start items-end flex flex-col w-[206px]"],(w=K(N(()=>j(A(b0(K(N(()=>{const x=pf(xt(C=>C.fields[0],h));return j(A(new ni(0,[x])),N(()=>j(A(new ni(1,[C=>{Mr(E=>{s([h,E[0]])},Ns(Ts(E=>E[0].fields[0]===C?ne(E[1],new ro(0,[])):!1,n)))}])),N(()=>{let C,E;return A(new ni(2,[[c("div",g(y([["className","relative w-full"],(C=[_0(y([new bs(0,["outline-gray-300 grid w-full grid-cols-1 rounded-md bg-white hover:bg-gray-50 py-1.5 pl-3 pr-2 text-left text-gray-900 text-sm outline outline-1 -outline-offset-1 focus:outline focus:outline-2 focus:outline-blue-600 focus:-outline-offset-2"]),new bs(1,[[c("span",g(K(N(()=>{const $=h!=null?[x,""]:["Select a value","text-gray-500"];return j(A(["className",`${$[1]} col-start-1 row-start-1 truncate pr-6`]),N(()=>A(["children",$[0]])))})))),c("span",g(y([["className","col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4"],(E=[E0(20,20)],["children",v.Children.toArray(Array.from(E))])])))]])])),C0(me(new x0("z-10 absolute mt-0.5 max-h-48 w-full overflow-auto rounded-md border border-gray-300 shadow-gray-300 shadow-lg bg-white py-1 text-sm")),K(N(()=>Ds($=>{const I=$[1],P=$[0].fields[0];return A(S0(y([new hn(0,[P]),new hn(1,[P]),new hn(2,[ne(I,new ro(1,[]))&&P!==x]),new hn(3,["relative select-none"]),new hn(4,[L=>[c("span",{className:Ct(" ",K(N(()=>j(A("px-4 py-2 block truncate"),N(()=>{const S=L.active;let _;switch(L.selected?S?_=2:_=1:I.tag===1?_=0:S?_=2:_=1,_){case 0:return A("text-gray-700 opacity-50 cursor-not-allowed");case 1:return A("text-gray-700");default:return A("bg-primary-600 text-white")}}))))),children:P})]])])))},n))))],["children",v.Children.toArray(Array.from(C))])])))]]))}))))})))),N(()=>ne(h,wg(t))?A(c("button",g(K(N(()=>{let x;return j(A((x=[C5(14,14),c("span",{children:["Map additional value"]})],["children",v.Children.toArray(Array.from(x))])),N(()=>j(A(["className",Ct(" ",K(N(()=>j(A("py-2 justify-end items-center inline-flex text-gray-500 text-xs font-normal gap-1"),N(()=>i==null?A("opacity-50 cursor-not-allowed underline"):A("cursor-pointer underline hover:text-gray-700"))))))]),N(()=>{const C=i;if(C==null)return at();{const E=C;return A(["onClick",$=>{E()}])}}))))}))))):at())))),["children",v.Children.toArray(Array.from(w))])]))),c("div",g(y([["className","text-gray-500 text-xs font-normal pl-1"],(b=K(N(()=>{if(o!=null){const x=o;return A(c("button",{children:"Remove",className:"cursor-pointer underline py-2 hover:text-gray-700",onClick:C=>{x(h)}}))}else return A(c("button",g(K(N(()=>j(A(["children","Clear"]),N(()=>j(r==null?A(["className","opacity-50 underline cursor-not-allowed mt-2"]):A(["className","cursor-pointer underline py-2 hover:text-gray-700"]),N(()=>{const x=r;if(x==null)return at();{const C=x;return A(["onClick",E=>{C()}])}})))))))))})),["children",v.Children.toArray(Array.from(b))])])))],["children",v.Children.toArray(Array.from(m))])])))},t))),["children",v.Children.toArray(Array.from(p))]))))],["children",v.Children.toArray(Array.from(d))])])))],["children",v.Children.toArray(Array.from(a))])])))}function E5(e){let t,n,r;const i=e.back,o=e.next,s=e.employmentBasisColumn,a=e.existingMappings;let l;const u=v5(s,a);l=Or(()=>Dr(()=>u,(m,w)=>x5(s,m,w),(m,w)=>{}),void 0,void 0);const f=l[0],d=l[1],p=v.useState(!1),h=p[0];return c("div",g(y([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12 h-full"],(t=[sa("Map values - Employment basis"),aa("Match the values from your CSV to the corresponding destination values."),c("div",g(y([["className","justify-start items-start gap-12 inline-flex"],(n=[c("div",g(y([["className","w-[640px] pt-6 flex-col justify-start items-start gap-4 inline-flex"],(r=K(N(()=>j(f.Prefilled?A(y0()):A(Ae()),N(()=>j(h&&f.ValidatedMappings==null?A(v0("Map at least one value to continue.")):A(Ae()),N(()=>{let m,w,b,x,C,E,$,I,P;return A(c("div",g(y([["className","flex-col justify-start items-start inline-flex overflow-hidden"],(m=[c("div",g(y([(w="w-[640px] h-16 pt-6 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 inline-flex",["className",w]),(b=[c("div",g(y([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(x=[c("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Destination fields"}),c("div",g(y([["className",Ct(" ",K(N(()=>j(f.NumberOfDestinationValuesMapped===4?A("bg-emerald-100 text-emerald-800"):A("bg-blue-100 text-blue-800"),N(()=>A("px-2.5 py-0.5 rounded-[10px] justify-center items-center flex"))))))],(C=[c("div",{className:"text-center text-xs font-medium leading-none",children:`${f.NumberOfDestinationValuesMapped} of 4 mapped`})],["children",v.Children.toArray(Array.from(C))])])))],["children",v.Children.toArray(Array.from(x))])]))),c("div",{className:"w-5 h-5 px-3 py-3.5"}),c("div",g(y([["className","w-[260px] h-10 px-3 py-3.5 justify-start items-center gap-1 flex overflow-hidden"],(E=[c("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Incoming CSV values"}),c("div",g(y([["className","px-2.5 py-0.5 bg-gray-100 rounded-[10px] justify-center items-center flex"],($=[c("div",{className:"text-center text-gray-800 text-xs font-medium leading-none",children:`${f.NumberOfIncomingValuesUsed} of ${f.IncomingValues.length} used`})],["children",v.Children.toArray(Array.from($))])])))],["children",v.Children.toArray(Array.from(E))])])))],["children",v.Children.toArray(Array.from(b))])]))),c("div",g(y([["className","w-[640px] pt-2 pb-24 flex-col justify-start items-start gap-2 flex overflow-hidden"],(I=[c("div",g(me((P=K(N(()=>j(Ds(L=>{let S,_,k;const T=L[0];return A(S5(T,L[1],f.IncomingValues,(S=T,$0(f,S)?()=>{d(new Po(1,[S]))}:void 0),(_=T,M0(f,_)?()=>{d(new Po(0,[_]))}:void 0),(k=T,xr(f.Selections,k).length>1?D=>{let O;d((O=[k,D],new Po(2,[O[0],O[1]])))}:void 0),D=>{let O;d((O=[T,D[0],D[1]],new Po(3,[O[0],O[1],O[2]])))}))},rw(f.Selections)),N(()=>{let L,S,_,k,T,D;return j(f.DiscardedValues.length===0?A(Ae()):A(c("div",g(y([["className","pr-3 pt-2 pb-4 rounded-lg justify-start items-start gap-2 inline-flex"],(L=[c("div",g(y([["className","py-3 bg-gray-100 rounded-lg justify-start items-center gap-2 flex"],(S=[c("div",g(y([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(_=[A0(14,14),c("div",{className:"text-gray-500 text-sm font-medium leading-tight",children:"Discarded"})],["children",v.Children.toArray(Array.from(_))])]))),c("div",g(y([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(k=[la(16,12)],["children",v.Children.toArray(Array.from(k))])]))),c("div",g(y([["className","flex-col justify-start items-start gap-2 inline-flex"],(T=[c("div",g(y([["className","w-[218px] pl-3 flex flex-col text-gray-500 text-sm"],(D=K(N(()=>j(A(c("div",g(K(N(()=>j(A(["className","font-medium"]),N(()=>{const O=f.DiscardedValues.length|0;return A(O===1?["children","Remaining 1 unused field:"]:["children",`Remaining ${O} unused fields:`])}))))))),N(()=>{let O;return A(c("ul",g(y([["className","pl-2 font-normal overflow-hidden list-inside list-disc"],(O=Ge(q=>c("li",{children:[q]}),ss(qn(N(()=>j(A(Ge(q=>q.fields[0],f.DiscardedValues.slice(void 0,8))),N(()=>f.DiscardedValues.length>8?A(["... and 0 other values"]):at())))))),["children",v.Children.toArray(Array.from(O))])]))))})))),["children",v.Children.toArray(Array.from(D))])])))],["children",v.Children.toArray(Array.from(T))])])))],["children",v.Children.toArray(Array.from(S))])])))],["children",v.Children.toArray(Array.from(L))])])))),N(()=>{let O;return A(c("div",g(y([["className","w-[640px] pt-4 border-t border-gray-200 flex-col justify-start items-start flex"],(O=K(N(()=>j(f.DiscardedValues.length===0?A(k0("All incoming values have been mapped.")):A(Ae()),N(()=>{let q,he,Y,G,F,W,B;return A(c("div",g(y([["className","h-[58px] pt-2 justify-start items-end gap-2 inline-flex w-full"],(q=[c("div",g(y([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(he=[c("div",{className:"grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"}),c("div",g(y([["className","justify-start items-center gap-2 flex"],(Y=[c("button",g(y([(G="px-[13px] py-[9px] bg-white hover:bg-gray-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",G]),["onClick",fe=>{i(f.ValidatedMappings)}],(F=[c("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",v.Children.toArray(Array.from(F))])]))),c("button",g(y([(W="pl-[13px] pr-[11px] py-[9px] bg-primary-600 hover:enabled:bg-primary-700 disabled:opacity-50 rounded-md shadow-sm justify-center items-center gap-2 flex overflow-hidden",["className",W]),["disabled",h&&f.ValidatedMappings==null],["onClick",fe=>{const Q=f.ValidatedMappings;Q==null?p[1](!0):o(Q)}],(B=[c("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:"Next"}),pu(13,8)],["children",v.Children.toArray(Array.from(B))])])))],["children",v.Children.toArray(Array.from(Y))])])))],["children",v.Children.toArray(Array.from(he))])])))],["children",v.Children.toArray(Array.from(q))])]))))})))),["children",v.Children.toArray(Array.from(O))])]))))}))})))),["children",v.Children.toArray(Array.from(P))]))))],["children",v.Children.toArray(Array.from(I))])])))],["children",v.Children.toArray(Array.from(m))])]))))})))))),["children",v.Children.toArray(Array.from(r))])])))],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))}class A5 extends Ce{constructor(t,n,r,i,o,s,a,l,u){super(),this.RowNumber=t|0,this.FirstName=n,this.LastName=r,this.Email=i,this.MobilePhone=o,this.EmploymentBasis=s,this.HasDuplicateEmailError=a,this.HasErrorOtherThanDuplicateEmail=l,this.Errors=u}}class _d extends Ce{constructor(t,n){super(),this.Summary=t,this.Details=n}}function Lo(e){if(!ao(e))return e}function k5(e,t,n){const r=n!=null?[n[0].fields[0].fields[0],W_(n[1])]:void 0;return y(Ge(i=>{let o,s,a,l,u,f,d,p,h,m,w,b,x,C,E,$,I;const P=i.fields[0];return Jr(Ut(L=>L,[(o=Lo(we(t.FirstName.fields[0],P)),o==null?void 0:(s=o,[cr(new ae(0,[])),s])),(a=Lo(we(t.LastName.fields[0],P)),a==null?void 0:(l=a,[cr(new ae(1,[])),l])),(u=Lo(we(t.Email.fields[0],P)),u==null?void 0:(f=u,[cr(new ae(2,[])),f])),(d=(p=t.MobilePhone,p==null?void 0:(h=Lo(we(p.fields[0],P)),h==null?void 0:N0(h))),d==null?void 0:(m=d,[cr(new ae(3,[])),m])),(w=(b=r,b==null?void 0:(x=b,C=(E=we(x[0],P),$=Ae(),[tw(x[1],E,new yt(()=>$,L=>{$=L})),$]),C[0]?C[1]:void 0)),w==null?void 0:(I=w,[cr(new ae(4,[])),I]))]),{Compare:$r})},e.fields[0]))}function N5(e,t,n){const r=cr(n);return[mr(e.Data,r),!Pl(i=>i.PropName===r,t)]}function T5(e,t){const n=Qm(t.PropName);if(n==null)return["Invalid or missing field",!1];{const r=n,i=Ji(r).toLocaleLowerCase();if(mr(e.Data,cr(r))!=null){let s;switch(r.tag===2&&t.Message.startsWith("Duplicate")?s=0:s=1,s){case 0:return[`Duplicate ${i}`,!1];default:return[`Invalid ${i}`,!0]}}else return[`Missing ${i}`,!1]}}function xd(e){const t=Qm(e.PropName);if(t==null)return e.Message;{const n=t;let r;switch(n.tag===2&&e.Message.startsWith("Duplicate")?r=0:r=1,r){case 0:return`${Ji(n)} exists in multiple rows`;default:return mf(e.Message,e.Column,Ji(n))}}}function $5(e,t,n,r){return Ne.Delay(()=>Ne.TryWith(Ne.Delay(()=>{let i,o,s;return Ne.ReturnFrom((i=new Mm(r!=null,Of((a,l)=>new $m(a,l),(o=[t,n,r],k5(o[0],o[1],o[2])))),s=e(i),Ne.Bind(s,a=>{let l;const u=a;return l=u.tag===1?new M(1,[u.fields[0]]):new M(0,[_r(f=>{let d,p,h,m,w;const b=it((d=Mg(C=>C.RowId===f.RowId,u.fields[0].Errors),d==null?void 0:d.FieldErrors),ut()),x=C=>N5(f,b,C);return new A5(f.RowId+1,x(new ae(0,[])),x(new ae(1,[])),x(new ae(2,[])),x(new ae(3,[])),(p=x(new ae(4,[])),[(h=(m=p[0],m==null?void 0:B_(m)),h==null?void 0:Xm(h)),p[1]]),Pl(C=>C.Message.startsWith("Duplicate Email"),b),!Se(kn(C=>!C.Message.startsWith("Duplicate Email"),b)),Se(b)?void 0:Se(ke(b))?(w=T5(f,le(b)),new _d(w[0],w[1]?me(xd(le(b))):void 0)):new _d("Multiple invalid or missing fields",_r(xd,b)))},i.Data)]),Ne.Return(l)})))}),i=>Ne.Return(new M(1,[et(i)]))))}let Bi=class extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Validated","SetInviteTiming","ShowOnlyRowsWithErrors","PreviewNextPage","PreviewPreviousPage"]}},Wr=class extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Validating","Reviewing"]}};class Vi extends Ce{constructor(t,n,r,i,o,s,a,l,u,f,d,p,h){super(),this.Data=t,this.InviteTiming=n,this.DuplicateEmailCount=r|0,this.NumberOfRowsWithErrorsOtherThanDuplicateEmail=i|0,this.NumberOfInvalidRows=o|0,this.NumberOfRows=s|0,this.NumberOfValidRows=a|0,this.ShowingOnlyRowsWithErrors=l,this.HasErrors=u,this.RowFrom=f|0,this.RowTo=d|0,this.Page=p,this.PageNo=h|0}}function M5(e){return[new Wr(0,[]),nm(t=>{rm(t)},e,void 0,t=>new Bi(0,[t]))]}function Vo(e,t,n){const r=(e-1)*20|0,i=Pg(r,e*20-1,n?kn(o=>o.Errors!=null,t):t);if(Se(i))return[0,0,ut()];{const o=i;return[r+1,r+an(o),o]}}function I0(e){return e.PageNo>1}function D0(e){return e.ShowingOnlyRowsWithErrors?e.RowTo<e.NumberOfInvalidRows:e.RowTo<e.NumberOfRows}function I5(e,t){const n=kn(r=>r.Errors!=null,e.Data);return mo(me(`Error detail,First name,Last name,Email,Mobile phone${t?",Employment basis":""},Original row #
|
|
50
|
+
`),Of((r,i)=>{const o=it(xt(d=>d.Summary,i.Errors),""),s=it(i.FirstName[0],""),a=it(i.LastName[0],""),l=it(i.Email[0],""),u=it(i.MobilePhone[0],""),f=r===an(n)-1?"":`
|
|
51
|
+
`;return t?`${o},${s},${a},${l},${u},${it(i.EmploymentBasis[0],"")},${i.RowNumber}${f}`:`${o},${s},${a},${l},${u},${i.RowNumber}${f}`},n))}function D5(e,t,n){let r,i,o,s,a,l,u,f,d,p;switch(t.tag){case 1:{n.tag===1?(i=2,s=t.fields[0],a=n.fields[0]):(i=6,p=n);break}case 2:{n.tag===1?(r=n.fields[0],r.HasErrors&&r.ShowingOnlyRowsWithErrors!==t.fields[0]?(i=3,l=n.fields[0],u=t.fields[0]):(i=6,p=n)):(i=6,p=n);break}case 3:{n.tag===1&&D0(n.fields[0])?(i=4,f=n.fields[0]):(i=6,p=n);break}case 4:{n.tag===1&&I0(n.fields[0])?(i=5,d=n.fields[0]):(i=6,p=n);break}default:t.fields[0].tag===1?n.tag===0?i=1:(i=6,p=n):n.tag===0?(i=0,o=t.fields[0].fields[0]):(i=6,p=n)}switch(i){case 0:{let h;const m=[o,!1];return h=Vo(1,m[0],m[1]),[new Wr(1,[new Vi(o,new Nt(1,[]),an(kn(w=>w.HasDuplicateEmailError,o)),an(kn(w=>w.HasErrorOtherThanDuplicateEmail,o)),an(kn(w=>w.Errors!=null,o)),an(o),an(kn(w=>w.Errors==null,o)),!1,Pl(w=>w.Errors!=null,o),h[0],h[1],h[2],1)]),Z()]}case 1:return[n,tm(h=>{e()})];case 2:return[new Wr(1,[new Vi(a.Data,s,a.DuplicateEmailCount,a.NumberOfRowsWithErrorsOtherThanDuplicateEmail,a.NumberOfInvalidRows,a.NumberOfRows,a.NumberOfValidRows,a.ShowingOnlyRowsWithErrors,a.HasErrors,a.RowFrom,a.RowTo,a.Page,a.PageNo)]),Z()];case 3:{let h;const m=[l.Data,u];return h=Vo(1,m[0],m[1]),[new Wr(1,[new Vi(l.Data,l.InviteTiming,l.DuplicateEmailCount,l.NumberOfRowsWithErrorsOtherThanDuplicateEmail,l.NumberOfInvalidRows,l.NumberOfRows,l.NumberOfValidRows,u,l.HasErrors,h[0],h[1],h[2],1)]),Z()]}case 4:{const h=f.PageNo+1|0;let m;const w=[f.Data,f.ShowingOnlyRowsWithErrors];return m=Vo(h,w[0],w[1]),[new Wr(1,[new Vi(f.Data,f.InviteTiming,f.DuplicateEmailCount,f.NumberOfRowsWithErrorsOtherThanDuplicateEmail,f.NumberOfInvalidRows,f.NumberOfRows,f.NumberOfValidRows,f.ShowingOnlyRowsWithErrors,f.HasErrors,m[0],m[1],m[2],h)]),Z()]}case 5:{const h=d.PageNo-1|0;let m;const w=[d.Data,d.ShowingOnlyRowsWithErrors];return m=Vo(h,w[0],w[1]),[new Wr(1,[new Vi(d.Data,d.InviteTiming,d.DuplicateEmailCount,d.NumberOfRowsWithErrorsOtherThanDuplicateEmail,d.NumberOfInvalidRows,d.NumberOfRows,d.NumberOfValidRows,d.ShowingOnlyRowsWithErrors,d.HasErrors,m[0],m[1],m[2],h)]),Z()]}default:return[p,Z()]}}function O0(e,t){let n,r,i;return c("svg",g(y([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=y([c("path",g(y([(r="M12.6666 14.6667H3.33328C2.23062 14.6667 1.33328 13.7693 1.33328 12.6667V10H2.66662V12.6667C2.66662 13.034 2.96595 13.3333 3.33328 13.3333H12.6666C13.0339 13.3333 13.3333 13.034 13.3333 12.6667V10H14.6666V12.6667C14.6666 13.7693 13.7693 14.6667 12.6666 14.6667Z",["d",r]),["fill","#2E66F7"]]))),c("path",g(y([(i="M11.3333 5.72395L8.66667 8.39062V1.33328H7.33333V8.39062L4.66667 5.72395L3.724 6.66662L8 10.9426L12.276 6.66662L11.3333 5.72395Z",["d",i]),["fill","#2E66F7"]])))]),["children",v.Children.toArray(Array.from(n))])])))}function R0(e,t,n){let r,i,o,s,a,l,u,f,d,p,h,m,w,b,x,C,E,$,I,P,L,S;return ea(y([new Kt(3,[t]),new Kt(4,[n]),new Kt(5,[[ia(me(new ra(2,["fixed inset-0 bg-gray-500/50"]))),c("div",g(y([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(r=[na(me(new ta(2,[[c("div",g(y([["className","flex flex-col mt-6 mb-6 px-6"],(i=[c("div",g(y([["className","flex flex-row justify-between"],(o=[c("span",{className:"text-gray-900 font-semibold text-lg",children:"What kind of data do I need?"}),c("button",g(y([["onClick",_=>{n()}],["type","button"],["className","text-gray-600"],(s=[oa(24,24)],["children",v.Children.toArray(Array.from(s))])])))],["children",v.Children.toArray(Array.from(o))])]))),c("div",g(y([["className","text-gray-600 text-sm pt-6"],(a=[c("span",{children:"Fields marked with "}),c("span",{className:"text-red-600",children:"*"}),c("span",g(me((l=" are required to create a user. While “Mobile number” and “Employment basis” are optional, they are recommended for improved searching and filtering.",["children",l]))))],["children",v.Children.toArray(Array.from(a))])]))),c("div",g(y([["className","grid grid-cols-2 mt-3"],(u=[c("span",{className:"text-gray-900 font-medium text-sm px-3 py-3.5 bg-gray-100 border",children:"Column fields"}),c("span",{className:"text-gray-900 font-medium text-sm px-3 py-3.5 bg-gray-100 border",children:"Accepted values"}),c("div",g(y([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(f=[c("span",{children:"First name "}),c("span",{className:"text-red-600",children:"*"})],["children",v.Children.toArray(Array.from(f))])]))),c("div",g(me((d=[c("div",g(y([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(p=[c("span",{children:"For example:"}),c("br",{}),c("span",{className:"italic",children:"Sam, Josh, Alex"})],["children",v.Children.toArray(Array.from(p))])])))],["children",v.Children.toArray(Array.from(d))])))),c("div",g(y([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(h=[c("span",{children:"Last name "}),c("span",{className:"text-red-600",children:"*"})],["children",v.Children.toArray(Array.from(h))])]))),c("div",g(me((m=[c("div",g(y([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(w=[c("span",{children:"For example:"}),c("br",{}),c("span",{className:"italic",children:"Smith, Doe, Williams"})],["children",v.Children.toArray(Array.from(w))])])))],["children",v.Children.toArray(Array.from(m))])))),c("div",g(y([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(b=[c("span",{children:"Email "}),c("span",{className:"text-red-600",children:"*"})],["children",v.Children.toArray(Array.from(b))])]))),c("div",g(me((x=[c("div",g(y([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(C=[c("span",{children:"For example:"}),c("br",{}),c("span",{className:"italic",children:"john.smith@mycompany.com"})],["children",v.Children.toArray(Array.from(C))])])))],["children",v.Children.toArray(Array.from(x))])))),c("span",{className:"text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border",children:"Mobile number"}),c("div",g(me((E=[c("div",g(y([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],($=[c("span",{children:"For example:"}),c("br",{}),c("span",{className:"italic",children:"+61432368712"})],["children",v.Children.toArray(Array.from($))])])))],["children",v.Children.toArray(Array.from(E))])))),c("span",{className:"text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border",children:"Employment basis"}),c("div",g(me((I=[c("div",g(y([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(P=[c("span",{children:"One of the following options:"}),c("br",{}),c("ul",g(y([["className","italic list-disc px-3"],(L=[c("li",{children:"Full-time"}),c("li",{children:"Part-time"}),c("li",{children:"Labour hire"}),c("li",{children:"Casual"})],["children",v.Children.toArray(Array.from(L))])])))],["children",v.Children.toArray(Array.from(P))])])))],["children",v.Children.toArray(Array.from(I))])))),c("a",g(y([["className","flex flex-row items-end gap-1 pt-3"],["href",e],["download","import_users"],(S=[c("span",{className:"text-sm text-primary-600 font-medium",children:"Download template"}),O0(16,16)],["children",v.Children.toArray(Array.from(S))])])))],["children",v.Children.toArray(Array.from(u))])])))],["children",v.Children.toArray(Array.from(i))])])))]])))],["children",v.Children.toArray(Array.from(r))])])))]])]))}function O5(e,t){let n,r,i,o,s,a,l,u,f,d,p,h,m;return ea(y([new Kt(3,[e]),new Kt(4,[t]),new Kt(5,[[ia(me(new ra(2,["fixed inset-0 bg-gray-500/50"]))),c("div",g(y([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(n=[na(me(new ta(2,[[c("div",g(y([["className","flex flex-col mt-6 mb-6 px-6"],(r=[c("div",g(y([["className","flex flex-row justify-between"],(i=[c("span",{className:"text-gray-900 font-semibold text-lg",children:"What is workplace benefits?"}),c("button",g(y([["onClick",w=>{t()}],["type","button"],["className","text-gray-600"],(o=[oa(24,24)],["children",v.Children.toArray(Array.from(o))])])))],["children",v.Children.toArray(Array.from(i))])]))),c("div",g(y([["className","text-gray-500 text-sm font-normal pt-6"],(s=[c("p",g(me((a=[c("span",{children:["Workplace benefits is a"]}),c("span",{className:"font-semibold",children:" free platform "}),(l="for your entire workforce – including full-time, part-time, casual employees, and volunteers. It allows you to share company benefits while supporting employee wellbeing.",c("span",{children:[l]}))],["children",v.Children.toArray(Array.from(a))])))),c("p",g(y([["className","pt-3"],(u=[(f="With workplace benefits, your people can access everyday savings from top Australian brands like Woolworths, Kmart, Harvey Norman, The Iconic, and more – all through the ",c("span",{children:[f]})),c("span",{className:"font-semibold",children:" Flare App"}),c("span",{children:["."]})],["children",v.Children.toArray(Array.from(u))])]))),c("p",{className:"pt-3",children:"The program is designed to help employees make their pay go further through:"}),c("ul",g(y([["className","list-inside list-disc pt-3"],(d=[c("li",g(me((p=[c("span",{className:"font-semibold",children:"Savings "}),c("span",{children:["on essentials like food, fuel, and more."]})],["children",v.Children.toArray(Array.from(p))])))),c("li",g(y([["className","pt-2"],(h=[c("span",{className:"font-semibold",children:"Exclusive offers "}),c("span",{children:["from leading brands and retailers."]})],["children",v.Children.toArray(Array.from(h))])]))),c("li",g(y([["className","pt-2"],(m=[c("span",{className:"font-semibold",children:"Tax savings "}),c("span",{children:["with salary packaging."]})],["children",v.Children.toArray(Array.from(m))])])))],["children",v.Children.toArray(Array.from(d))])])))],["children",v.Children.toArray(Array.from(s))])])))],["children",v.Children.toArray(Array.from(r))])])))]])))],["children",v.Children.toArray(Array.from(n))])])))]])]))}function R5(e,t){let n,r;return c("svg",g(y([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=me(c("path",g(y([(r="M17.8008 14.5263L11.4838 2.88031C11.328 2.59137 11.0904 2.35483 10.8008 2.20031C10.4074 1.98974 9.94665 1.94305 9.51893 2.07039C9.0912 2.19773 8.73106 2.48881 8.51683 2.88031L2.20083 14.5263C2.06272 14.7826 1.99367 15.0704 2.00046 15.3614C2.00724 15.6525 2.08964 15.9368 2.23954 16.1863C2.38944 16.4359 2.60169 16.6422 2.85544 16.7849C3.10919 16.9276 3.39571 17.0018 3.68683 17.0003H16.3148C16.5939 17.0003 16.8686 16.9316 17.1148 16.8003C17.3099 16.6968 17.4825 16.5556 17.6228 16.3851C17.763 16.2145 17.8681 16.0178 17.932 15.8064C17.9958 15.595 18.0172 15.373 17.9949 15.1533C17.9726 14.9336 17.9069 14.7205 17.8018 14.5263H17.8008ZM10.0008 15.0003C9.80305 15.0003 9.60971 14.9417 9.44526 14.8318C9.28081 14.7219 9.15264 14.5657 9.07695 14.383C9.00126 14.2003 8.98146 13.9992 9.02004 13.8052C9.05863 13.6112 9.15387 13.4331 9.29372 13.2932C9.43358 13.1533 9.61176 13.0581 9.80574 13.0195C9.99972 12.9809 10.2008 13.0007 10.3835 13.0764C10.5662 13.1521 10.7224 13.2803 10.8323 13.4447C10.9422 13.6092 11.0008 13.8025 11.0008 14.0003C11.0008 14.2655 10.8955 14.5199 10.7079 14.7074C10.5204 14.8949 10.266 15.0003 10.0008 15.0003ZM11.0008 11.5003C11.0008 11.6329 10.9482 11.7601 10.8544 11.8539C10.7606 11.9476 10.6334 12.0003 10.5008 12.0003H9.50083C9.36822 12.0003 9.24104 11.9476 9.14728 11.8539C9.05351 11.7601 9.00083 11.6329 9.00083 11.5003V7.50031C9.00083 7.3677 9.05351 7.24052 9.14728 7.14675C9.24104 7.05298 9.36822 7.00031 9.50083 7.00031H10.5008C10.6334 7.00031 10.7606 7.05298 10.8544 7.14675C10.9482 7.24052 11.0008 7.3677 11.0008 7.50031V11.5003Z",["d",r]),["fill","#FBBF24"]])))),["children",v.Children.toArray(Array.from(n))])])))}function F5(e){return`${hf(e,".")}.`}function Cd(e){return hf(e,".")}function P5(e){let t;const n=e.children,r=e.text,i=v.useState(!1),o=i[1];return c("div",g(y([["className","relative inline-block"],["onMouseEnter",s=>{o(!0)}],["onMouseLeave",s=>{o(!1)}],(t=K(N(()=>j(n,N(()=>{let s,a;return i[0]?A(c("div",g(y([(s="absolute top-0 left-full -translate-y-1/4 ml-1 text-left text-white text-xs leading-5 font-medium ring-1 ring-black ring-opacity-5 shadow-md rounded-md bg-gray-900 px-3 py-2 w-60 text-wrap",["className",s]),(a=K(N(()=>{let l;return Se(r)?A(c("ul",g(y([["className","list-inside list-disc"],(l=K(N(()=>Le(u=>c("li",{children:[Cd(u)]}),r))),["children",v.Children.toArray(Array.from(l))])])))):Se(ke(r))?A(c("p",{children:[F5(le(r))]})):A(c("ul",g(y([["className","list-inside list-disc"],(l=K(N(()=>Le(u=>c("li",{children:[Cd(u)]}),r))),["children",v.Children.toArray(Array.from(l))])]))))})),["children",v.Children.toArray(Array.from(a))])])))):at()})))),["children",v.Children.toArray(Array.from(t))])])))}const L5=e=>c("svg",{width:48,height:54,viewBox:"0 0 48 54",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c("g",{id:"Group 67"},c("path",{id:"Vector",d:"M24.2605 17.5933C17.766 17.5933 12.5005 22.9015 12.5005 29.4469V53.1561H36.0205V29.4469C36.0205 22.8995 30.7549 17.5933 24.2605 17.5933Z",fill:"url(#paint0_linear_4467_4223)"}),c("g",{id:"Group",opacity:.95},c("path",{id:"Vector_2",d:"M35.76 35.646C29.2655 35.646 24 40.9115 24 47.406V53.1558H47.52V47.406C47.52 40.9115 42.2544 35.646 35.76 35.646Z",fill:"url(#paint1_linear_4467_4223)"})),c("path",{id:"Vector_3",opacity:.95,d:"M12.24 35.646C5.74553 35.646 0.47998 40.9115 0.47998 47.406V53.1558H24V47.406C24 40.9115 18.7344 35.646 12.24 35.646Z",fill:"url(#paint2_linear_4467_4223)"}),c("path",{id:"Vector_4",d:"M24.1303 16.8098C28.5328 16.8098 32.1018 13.2408 32.1018 8.83827C32.1018 4.43569 28.5328 0.866699 24.1303 0.866699C19.7277 0.866699 16.1587 4.43569 16.1587 8.83827C16.1587 13.2408 19.7277 16.8098 24.1303 16.8098Z",fill:"#0095F2"}),c("path",{id:"Vector_5",opacity:.93,d:"M13.1537 35.1253C17.5563 35.1253 21.1253 31.5563 21.1253 27.1537C21.1253 22.7511 17.5563 19.1821 13.1537 19.1821C8.75112 19.1821 5.18213 22.7511 5.18213 27.1537C5.18213 31.5563 8.75112 35.1253 13.1537 35.1253Z",fill:"#FF876F"}),c("path",{id:"Vector_6",opacity:.93,d:"M35.89 35.1253C40.2926 35.1253 43.8616 31.5563 43.8616 27.1537C43.8616 22.7511 40.2926 19.1821 35.89 19.1821C31.4875 19.1821 27.9185 22.7511 27.9185 27.1537C27.9185 31.5563 31.4875 35.1253 35.89 35.1253Z",fill:"#A650FF"})),c("defs",null,c("linearGradient",{id:"paint0_linear_4467_4223",x1:24.2605,y1:53.1561,x2:24.2605,y2:17.5933,gradientUnits:"userSpaceOnUse"},c("stop",{stopColor:"#161E37"}),c("stop",{offset:.11,stopColor:"#172243"}),c("stop",{offset:.31,stopColor:"#1B2E62"}),c("stop",{offset:.57,stopColor:"#214196"}),c("stop",{offset:.89,stopColor:"#2A5CDD"}),c("stop",{offset:1,stopColor:"#2E66F7"})),c("linearGradient",{id:"paint1_linear_4467_4223",x1:24,y1:44.4009,x2:47.52,y2:44.4009,gradientUnits:"userSpaceOnUse"},c("stop",{offset:.11,stopColor:"#FF876F"}),c("stop",{offset:.99,stopColor:"#A650FF"})),c("linearGradient",{id:"paint2_linear_4467_4223",x1:.47998,y1:44.4009,x2:24,y2:44.4009,gradientUnits:"userSpaceOnUse"},c("stop",{stopColor:"#0095F2"}),c("stop",{offset:.29,stopColor:"#307CF6"}),c("stop",{offset:.61,stopColor:"#6163FB"}),c("stop",{offset:.86,stopColor:"#7F54FD"}),c("stop",{offset:1,stopColor:"#8B4FFF"})))),V5=e=>c("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:12,viewBox:"0 0 12 12",fill:"none",...e},c("path",{d:"M6.00033 0.666504C3.05966 0.666504 0.666992 3.05917 0.666992 5.99984C0.666992 8.9405 3.05966 11.3332 6.00033 11.3332C8.94099 11.3332 11.3337 8.9405 11.3337 5.99984C11.3337 3.05917 8.94099 0.666504 6.00033 0.666504ZM6.50033 8.54584C6.50033 8.82184 6.27633 9.04584 6.00033 9.04584C5.72433 9.04584 5.50033 8.82184 5.50033 8.54584V5.49984C5.50033 5.22384 5.72433 4.99984 6.00033 4.99984C6.27633 4.99984 6.50033 5.22384 6.50033 5.49984V8.54584ZM6.00033 4.49984C5.63233 4.49984 5.33366 4.2005 5.33366 3.83317C5.33366 3.46584 5.63233 3.1665 6.00033 3.1665C6.36833 3.1665 6.66699 3.46584 6.66699 3.83317C6.66699 4.2005 6.36833 4.49984 6.00033 4.49984Z",fill:"currentColor"}));function F0(e,t){return v.createElement(e,g(t))}function H5(e){return F0(L5,e)}function j5(e){return F0(V5,e)}function Hr(e,t){let n;return c("div",g(y([["className",Ct(" ",["animate-pulse w-full relative",e,t])],(n=[c("div",{className:Ct(" ",["w-full left-0 top-0 absolute bg-gray-200 rounded",e])})],["children",v.Children.toArray(Array.from(n))])])))}function B5(){let e,t,n,r,i,o,s,a,l,u,f,d;return c("div",g(y([["className","flex-col justify-start items-start gap-6 inline-flex"],(e=[c("div",g(y([["className","flex-col justify-start items-end gap-4 inline-flex"],(t=[c("div",g(y([["className","justify-start items-center gap-2 inline-flex"],(n=[c("input",{type:"checkbox",defaultChecked:!1,disabled:!0,className:"rounded-sm border border-gray-300 bg-white"}),c("span",{className:"text-gray-400 text-sm font-normal leading-tight",children:"Show only rows with errors"})],["children",v.Children.toArray(Array.from(n))])]))),c("div",g(y([["className","px-4 pt-4 pb-2 bg-white rounded-lg border border-gray-200 flex-col"],(r=[c("div",g(y([["className","w-[1030px]"],(i=K(N(()=>{let p,h,m,w;return j(A(c("div",g(y([["className","bg-gray-100 flex"],(p=[c("div",g(y([["className","px-3 py-2.5 text-left w-[128px]"],(h=[Hr("h-5","w-full")],["children",v.Children.toArray(Array.from(h))])]))),c("div",g(y([["className","px-3 py-2.5 text-left w-[148px]"],(m=[Hr("h-5","w-full")],["children",v.Children.toArray(Array.from(m))])]))),c("div",g(y([["className","px-3 py-2.5 text-left flex-1"],(w=[Hr("h-5","w-full")],["children",v.Children.toArray(Array.from(w))])])))],["children",v.Children.toArray(Array.from(p))])])))),N(()=>Le(b=>c("div",g(K(N(()=>j(b%2===1?A(["className","bg-white border-t border-gray-200 flex"]):A(["className","bg-gray-50 border-t border-gray-200 flex"]),N(()=>{let x,C,E,$;return A((x=[c("div",g(y([["className","px-3 py-2.5 text-left w-[128px]"],(C=[Hr("h-5","w-full")],["children",v.Children.toArray(Array.from(C))])]))),c("div",g(y([["className","px-3 py-2.5 text-left w-[148px]"],(E=[Hr("h-5","w-full")],["children",v.Children.toArray(Array.from(E))])]))),c("div",g(y([["className","px-3 py-2.5 text-left flex-1"],($=[Hr("h-5","w-full")],["children",v.Children.toArray(Array.from($))])])))],["children",v.Children.toArray(Array.from(x))]))})))))),K(Gl(0,1,9)))))})),["children",v.Children.toArray(Array.from(i))])])))],["children",v.Children.toArray(Array.from(r))])])))],["children",v.Children.toArray(Array.from(t))])]))),c("div",g(y([["className","justify-start items-end gap-2 inline-flex w-full pb-2"],(o=[c("div",g(y([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(s=[c("div",{className:"grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"}),c("div",g(y([["className","justify-start items-center gap-2 flex"],(a=[c("button",g(y([(l="px-[13px] py-[9px] bg-white opacity-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex",["className",l]),["disabled",!0],(u=[c("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",v.Children.toArray(Array.from(u))])]))),c("button",g(y([(f="pl-[13px] pr-[11px] py-[9px] opacity-50 bg-emerald-600 rounded-md shadow-sm justify-center items-center gap-2 flex",["className",f]),["disabled",!0],(d=[c("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:"Import users"})],["children",v.Children.toArray(Array.from(d))])])))],["children",v.Children.toArray(Array.from(a))])])))],["children",v.Children.toArray(Array.from(s))])])))],["children",v.Children.toArray(Array.from(o))])])))],["children",v.Children.toArray(Array.from(e))])])))}function U5(e){const t=Ge(r=>r,er(e)),n=new Blob(t,{type:"text/csv;charset=utf-8;"});return window.URL.createObjectURL(n)}const W5=(()=>{const e=new Blob(["First name,Last name,Email,Mobile phone,Employment basis"],{type:"text/csv;charset=utf-8;"});return window.URL.createObjectURL(e)})();function G5(){window.location.replace(`${window.location.origin}/admin/app/oops`)}function z5(e){let t,n,r;const i=e.back,o=e.next,s=e.employmentBasis,a=e.baseColumnMappings,l=e.dataRows,u=e.apiCallAsync;let f;const d=M5(()=>$5(u,l,a,s));f=Or(()=>Dr(()=>d,(x,C)=>D5(()=>{G5()},x,C),(x,C)=>{}),void 0,void 0);const p=f[1],h=v.useState(!1),m=h[1],w=v.useState(!1),b=w[1];return c("div",g(y([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12 h-full"],(t=[R0(W5,h[0],()=>{m(!1)}),O5(w[0],()=>{b(!1)}),sa("Review"),aa("Preview your data and confirm that everything is mapped correctly."),c("div",g(y([["className","flex flex-row pt-3 gap-2"],(n=[no("What kind of data do I need?",()=>{m(!0)})],["children",v.Children.toArray(Array.from(n))])]))),c("div",g(y([["className","justify-start items-start gap-12 inline-flex"],(r=[c("div",g(K(N(()=>j(A(["className","pt-6 flex-col justify-start items-start gap-4 inline-flex"]),N(()=>{let x,C,E;const $=f[0];if($.tag===1){const I=$.fields[0],P=k=>{p(new Bi(1,[k]))},L=k=>{p(new Bi(2,[k]))},S=D0(I)?k=>{p(new Bi(3,[]))}:void 0,_=I0(I)?k=>{p(new Bi(4,[]))}:void 0;return A((x=[c("div",g(y([["className","flex-col justify-start items-start gap-6 inline-flex"],(C=K(N(()=>{let k,T,D,O,q,he,Y,G;return j(I.HasErrors?A(c("div",g(y([["className","p-4 bg-amber-50 rounded-md justify-start items-start gap-3 inline-flex"],(k=[R5(20,20),c("div",g(y([["className","flex-col justify-start items-start gap-2 inline-flex"],(T=[c("div",g(y([["className","self-stretch text-amber-800 text-sm font-medium leading-tight"],(D=[c("span",{children:[`We found some issues across ${I.NumberOfInvalidRows} rows in your CSV:`]})],["children",v.Children.toArray(Array.from(D))])]))),c("ul",g(y([["className","pl-2 font-normal overflow-hidden list-inside list-disc text-amber-700 text-sm"],(O=K(N(()=>{let F;return j(I.DuplicateEmailCount>0?A((F=y([c("span",{className:"font-medium",children:`${I.DuplicateEmailCount} rows `}),c("span",{children:["have "]}),c("span",{className:"font-medium",children:"duplicate email addresses"})]),c("li",{children:v.Children.toArray(Array.from(F))}))):at(),N(()=>{let W;return I.NumberOfRowsWithErrorsOtherThanDuplicateEmail>0?A((W=y([c("span",{className:"font-medium",children:`${I.NumberOfRowsWithErrorsOtherThanDuplicateEmail} rows `}),c("span",{children:["have "]}),c("span",{className:"font-medium",children:"missing or incorrectly formatted data"})]),c("li",{children:v.Children.toArray(Array.from(W))}))):at()}))})),["children",v.Children.toArray(Array.from(O))])]))),c("div",g(y([["className","px-2 py-1.5"],(q=[c("div",g(y([["className","text-amber-700 text-sm leading-tight"],(he=[c("span",{children:[`You can continue the import without these ${I.NumberOfInvalidRows} rows—we’ll automatically skip them. To import them later, download the error report, fix the issues, and re-upload your file as a new import.`]})],["children",v.Children.toArray(Array.from(he))])])))],["children",v.Children.toArray(Array.from(q))])]))),c("div",g(y([["className","px-2 py-1.5"],(Y=[c("a",{className:"text-amber-800 text-sm font-medium leading-tight",children:"Download Error Report (.csv)",href:U5((G=[I,s!=null],I5(G[0],G[1]))),download:"import_users_error_rows"})],["children",v.Children.toArray(Array.from(Y))])])))],["children",v.Children.toArray(Array.from(T))])])))],["children",v.Children.toArray(Array.from(k))])])))):at(),N(()=>{let F,W,B,fe,Q,R,ce,te,be,Re,re,ve,_e,Ee;return j(A(c("div",g(y([["className","w-full flex-col justify-start items-end gap-4 inline-flex"],(F=[c("div",g(y([["className","justify-start items-center gap-2 inline-flex py-3 -my-3"],["onClick",H=>{L(!I.ShowingOnlyRowsWithErrors)}],(W=[c("input",g(y([["type","checkbox"],["checked",I.ShowingOnlyRowsWithErrors],(B="rounded-sm border border-gray-300 bg-white checked:border-primary-600 checked:bg-primary-600 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600",["className",B]),["onKeyPress",H=>{H.preventDefault(),H.key==="Enter"&&L(!I.ShowingOnlyRowsWithErrors)}]]))),c("span",{className:"text-gray-900 text-sm font-normal leading-tight",children:"Show only rows with errors"})],["children",v.Children.toArray(Array.from(W))])]))),c("div",g(y([["className","w-full px-4 pt-4 pb-2 bg-white rounded-lg border border-gray-200 flex-col"],(fe=[c("div",g(me((Q=[c("div",g(y([["className","w-full max-h-[470px] overflow-auto"],(R=[c("table",g(y([["className","w-full divide-y divide-gray-300"],(ce=[c("thead",g(y([["className","bg-gray-100 border-b border-gray-200 text-sm text-gray-900 text-sm font-medium leading-tight"],(te=[(be=K(N(()=>j(A(c("th",{scope:"col",className:"px-3 py-2.5 text-left",children:"#"})),N(()=>j(A(c("th",{scope:"col",className:"px-3 py-2.5 text-left",children:"Error detail"})),N(()=>{let H;return j(A(c("th",g(y([["scope","col"],["className","px-3 py-2.5 text-left"],(H=[c("span",{children:["First name "]}),c("span",{className:"text-red-500",children:"*"})],["children",v.Children.toArray(Array.from(H))])])))),N(()=>{let U;return j(A(c("th",g(y([["scope","col"],["className","px-3 py-2.5 text-left"],(U=[c("span",{children:["Last name "]}),c("span",{className:"text-red-500",children:"*"})],["children",v.Children.toArray(Array.from(U))])])))),N(()=>{let ee;return j(A(c("th",g(y([["scope","col"],["className","px-3 py-2.5 text-left"],(ee=[c("span",{children:["Email "]}),c("span",{className:"text-red-500",children:"*"})],["children",v.Children.toArray(Array.from(ee))])])))),N(()=>j(A(c("th",{scope:"col",className:"px-3 py-2.5 text-left",children:"Mobile Phone"})),N(()=>s!=null?A(c("th",{scope:"col",className:"px-3 py-2.5 text-left",children:"Employment Basis"})):at()))))}))}))})))))),c("tr",{children:v.Children.toArray(Array.from(be))}))],["children",v.Children.toArray(Array.from(te))])]))),c("tbody",g(y([["className","divide-y divide-gray-200"],(Re=K(N(()=>Le(H=>c("tr",g(K(N(()=>j(A(["key",H.RowNumber]),N(()=>{let U;return j((U=H.RowNumber%2|0,H.Errors==null?A(U===1?["className","bg-white"]:["className","bg-gray-50"]):A(["className","bg-amber-50"])),N(()=>{let ee;return A((ee=K(N(()=>j(A(c("td",{className:"whitespace-nowrap px-3 py-2.5 text-sm text-gray-500",children:H.RowNumber})),N(()=>j(A(c("td",g(K(N(()=>j(A(["className","whitespace-nowrap px-3 py-2.5"]),N(()=>{let ie,pe,z;return H.Errors!=null?A((ie=[c("div",g(y([(pe="text-center text-amber-800 text-xs font-medium h-5 pl-2.5 pr-1.5 bg-amber-100 rounded justify-center items-center inline-flex",["className",pe]),(z=K(N(()=>j(A(c("span",{children:[V(H.Errors).Summary]})),N(()=>{let pt;const Ve=V(H.Errors).Details;return Ve==null?at():A(c("div",g(y([["className","pl-1 text-amber-700 items-center inline-flex"],(pt=[c(P5,{text:Ve,children:[j5([])]})],["children",v.Children.toArray(Array.from(pt))])]))))})))),["children",v.Children.toArray(Array.from(z))])])))],["children",v.Children.toArray(Array.from(ie))])):at()}))))))),N(()=>j(A(c("td",g(K(N(()=>{let ie,pe;const z=H.FirstName;return z[0]==null?at():z[1]?(ie=z[0],j(A(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),N(()=>A(["children",ie])))):(pe=z[0],j(A(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),N(()=>A(["children",pe]))))}))))),N(()=>j(A(c("td",g(K(N(()=>{let ie,pe;const z=H.LastName;return z[0]==null?at():z[1]?(ie=z[0],j(A(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),N(()=>A(["children",ie])))):(pe=z[0],j(A(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),N(()=>A(["children",pe]))))}))))),N(()=>j(A(c("td",g(K(N(()=>{let ie,pe;const z=H.Email;return z[0]==null?at():z[1]?(ie=z[0],j(A(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),N(()=>A(["children",ie])))):(pe=z[0],j(A(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),N(()=>A(["children",pe]))))}))))),N(()=>j(A(c("td",g(K(N(()=>{let ie,pe;const z=H.MobilePhone;return z[0]==null?at():z[1]?(ie=z[0],j(A(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),N(()=>A(["children",ie])))):(pe=z[0],j(A(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),N(()=>A(["children",pe]))))}))))),N(()=>s!=null?A(c("td",g(K(N(()=>{let ie,pe;const z=H.EmploymentBasis;return z[0]==null?at():z[1]?(ie=z[0],j(A(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),N(()=>A(["children",ie])))):(pe=z[0],j(A(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),N(()=>A(["children",pe]))))}))))):at())))))))))))))),["children",v.Children.toArray(Array.from(ee))]))}))})))))),I.Page))),["children",v.Children.toArray(Array.from(Re))])])))],["children",v.Children.toArray(Array.from(ce))])])))],["children",v.Children.toArray(Array.from(R))])]))),c("div",g(y([["className","h-[63px] w-full flex-col justify-start items-start inline-flex"],(re=[c("div",g(y([["className","self-stretch py-2.5 justify-between items-center inline-flex"],(ve=[(_e=y([c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:"Showing "}),c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:I.RowFrom}),c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" to "}),c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:I.RowTo}),c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" of "}),c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:I.ShowingOnlyRowsWithErrors?I.NumberOfInvalidRows:I.NumberOfRows}),c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" results"})]),c("div",{children:v.Children.toArray(Array.from(_e))})),c("div",g(y([["className","justify-start items-start gap-3 flex"],(Ee=[c("button",g(K(N(()=>{let H;return j((H=_,H==null?A(["disabled",!0]):A(["onClick",H])),N(()=>{let U;return j(A((U="px-[17px] py-[9px] disabled:opacity-50 bg-white hover:enabled:bg-gray-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",U])),N(()=>{let ee;return A((ee=[c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:"Previous"})],["children",v.Children.toArray(Array.from(ee))]))}))}))})))),c("button",g(K(N(()=>{let H;return j((H=S,H==null?A(["disabled",!0]):A(["onClick",H])),N(()=>{let U;return j(A((U="px-[17px] py-[9px] disabled:opacity-50 bg-white hover:enabled:bg-gray-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",U])),N(()=>{let ee;return A((ee=[c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:"Next"})],["children",v.Children.toArray(Array.from(ee))]))}))}))}))))],["children",v.Children.toArray(Array.from(Ee))])])))],["children",v.Children.toArray(Array.from(ve))])])))],["children",v.Children.toArray(Array.from(re))])])))],["children",v.Children.toArray(Array.from(Q))]))))],["children",v.Children.toArray(Array.from(fe))])])))],["children",v.Children.toArray(Array.from(F))])])))),N(()=>{let H,U,ee,ie,pe,z,pt,Ve,nt,mn,qt,gt,en,qe,Dt;return j(I.NumberOfValidRows>0?A(c("div",g(y([["className","pb-10 border-b border-gray-200 justify-start items-start gap-4 inline-flex w-full"],(H=[H5([]),c("div",g(y([["className","grow shrink basis-0 flex-col justify-center items-start gap-4 inline-flex"],(U=[c("div",g(y([["className","flex-col justify-start items-start gap-2 flex"],(ee=[c("div",{className:"text-gray-700 text-base font-semibold leading-normal",children:`Invite ${I.NumberOfValidRows} users to workplace benefits`})],["children",v.Children.toArray(Array.from(ee))])]))),no("What is workplace benefits?",()=>{b(!0)}),c("div",g(me((ie=[c("div",g(y([["className","flex-col justify-start items-start gap-2 flex"],(pe=[c("div",g(y([["key",et(new Nt(1,[]))],["className","relative flex items-start"],(z=[c("div",g(y([["className","flex h-6 items-center py-2"],["onClick",dt=>{P(new Nt(1,[]))}],(pt=[c("input",g(y([["id",et(new Nt(1,[]))],["name","InviteTiming"],["type","radio"],(Ve="relative size-4 appearance-none rounded-full border border-gray-300 bg-white before:absolute before:inset-1 before:rounded-full before:bg-white checked:border-primary-600 checked:bg-primary-600 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 disabled:border-gray-300 disabled:bg-gray-100 disabled:before:bg-gray-400 forced-colors:appearance-auto forced-colors:before:hidden [&:not(:checked)]:before:hidden",["className",Ve]),["checked",ne(I.InviteTiming,new Nt(1,[]))],["onChange",dt=>{dt.target.checked,P(new Nt(1,[]))}]])))],["children",v.Children.toArray(Array.from(pt))])]))),c("div",g(y([["className","ml-3 text-sm/6"],(nt=[c("label",{for:et(new Nt(1,[])),className:"text-gray-700 text-sm font-medium leading-tight",children:"Import now, Invite later"}),c("p",{id:`${et(new Nt(1,[]))}-description`,className:"text-gray-500 text-sm font-normal leading-tight",children:"We’ll import your users now. You can invite them to workplace benefits at any time later."})],["children",v.Children.toArray(Array.from(nt))])])))],["children",v.Children.toArray(Array.from(z))])])))],["children",v.Children.toArray(Array.from(pe))])]))),c("div",g(me((mn=[c("div",g(y([["key",et(new Nt(0,[]))],["className","relative flex items-start"],(qt=[c("div",g(y([["className","flex h-6 items-center py-2"],["onClick",dt=>{P(new Nt(0,[]))}],(gt=[c("input",g(y([["id",et(new Nt(0,[]))],["name","InviteTiming"],["type","radio"],(en="relative size-4 appearance-none rounded-full border border-gray-300 bg-white before:absolute before:inset-1 before:rounded-full before:bg-white checked:border-primary-600 checked:bg-primary-600 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 disabled:border-gray-300 disabled:bg-gray-100 disabled:before:bg-gray-400 forced-colors:appearance-auto forced-colors:before:hidden [&:not(:checked)]:before:hidden",["className",en]),["checked",ne(I.InviteTiming,new Nt(0,[]))],["onChange",dt=>{dt.target.checked,P(new Nt(0,[]))}]])))],["children",v.Children.toArray(Array.from(gt))])]))),c("div",g(y([["className","ml-3 text-sm/6"],(qe=[c("label",{for:et(new Nt(0,[])),className:"text-gray-700 text-sm font-medium leading-tight",children:"Import and invite now"}),c("p",g(y([["id",`${et(new Nt(0,[]))}-description`],["className","text-gray-500 text-sm font-normal leading-tight"],(Dt="We’ll import your users and send an email to help them set up workplace benefits and access the Flare app.",["children",Dt])])))],["children",v.Children.toArray(Array.from(qe))])])))],["children",v.Children.toArray(Array.from(qt))])])))],["children",v.Children.toArray(Array.from(mn))]))))],["children",v.Children.toArray(Array.from(ie))]))))],["children",v.Children.toArray(Array.from(U))])])))],["children",v.Children.toArray(Array.from(H))])])))):at(),N(()=>{let dt,tn,ki,bn,Ft,Ln,Ni;return A(c("div",g(y([["className","justify-start items-end gap-2 inline-flex w-full pb-2"],(dt=[c("div",g(y([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(tn=[c("div",{className:"grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"}),c("div",g(y([["className","justify-start items-center gap-2 flex"],(ki=[c("button",g(y([(bn="px-[13px] py-[9px] bg-white hover:bg-gray-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",bn]),["onClick",P0=>{i()}],(Ft=[c("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",v.Children.toArray(Array.from(Ft))])]))),c("button",g(y([(Ln="pl-[13px] pr-[11px] py-[9px] disabled:opacity-50 bg-emerald-600 hover:enabled:bg-emerald-700 rounded-md shadow-sm justify-center items-center gap-2 flex overflow-hidden",["className",Ln]),["onClick",P0=>{o(I.InviteTiming)}],["disabled",I.NumberOfValidRows===0],(Ni=[c("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:`Import ${I.NumberOfValidRows} users`})],["children",v.Children.toArray(Array.from(Ni))])])))],["children",v.Children.toArray(Array.from(ki))])])))],["children",v.Children.toArray(Array.from(tn))])])))],["children",v.Children.toArray(Array.from(dt))])]))))}))}))}))})),["children",v.Children.toArray(Array.from(C))])])))],["children",v.Children.toArray(Array.from(x))]))}else return A((E=[B5()],["children",v.Children.toArray(Array.from(E))]))}))))))],["children",v.Children.toArray(Array.from(r))])])))],["children",v.Children.toArray(Array.from(t))])])))}class xn extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UnsupportedFileType","TooLarge","NoData","MoreThan5000Rows","EmptyFieldNames","DuplicateFieldNames","InconsistentRowLengths","GenericParseError"]}}class Yo extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Parse","CancelParsing","Remove"]}}var Zo={exports:{}};/* @license
|
|
52
|
+
Papa Parse
|
|
53
|
+
v5.5.1
|
|
54
|
+
https://github.com/mholt/PapaParse
|
|
55
|
+
License: MIT
|
|
56
|
+
*/var q5=Zo.exports,Sd;function Y5(){return Sd||(Sd=1,function(e,t){((n,r)=>{e.exports=r()})(q5,function n(){var r=typeof self<"u"?self:typeof window<"u"?window:r!==void 0?r:{},i,o=!r.document&&!!r.postMessage,s=r.IS_PAPA_WORKER||!1,a={},l=0,u={};function f(S){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(_){var k=I(_);k.chunkSize=parseInt(k.chunkSize),_.step||_.chunk||(k.chunkSize=null),this._handle=new w(k),(this._handle.streamer=this)._config=k}).call(this,S),this.parseChunk=function(_,k){var T=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<T){let O=this._config.newline;O||(D=this._config.quoteChar||'"',O=this._handle.guessLineEndings(_,D)),_=[..._.split(O).slice(T)].join(O)}this.isFirstChunk&&L(this._config.beforeFirstChunk)&&(D=this._config.beforeFirstChunk(_))!==void 0&&(_=D),this.isFirstChunk=!1,this._halted=!1;var T=this._partialLine+_,D=(this._partialLine="",this._handle.parse(T,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(_=D.meta.cursor,T=(this._finished||(this._partialLine=T.substring(_-this._baseIndex),this._baseIndex=_),D&&D.data&&(this._rowCount+=D.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),s)r.postMessage({results:D,workerId:u.WORKER_ID,finished:T});else if(L(this._config.chunk)&&!k){if(this._config.chunk(D,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=D=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(D.data),this._completeResults.errors=this._completeResults.errors.concat(D.errors),this._completeResults.meta=D.meta),this._completed||!T||!L(this._config.complete)||D&&D.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),T||D&&D.meta.paused||this._nextChunk(),D}this._halted=!0},this._sendError=function(_){L(this._config.error)?this._config.error(_):s&&this._config.error&&r.postMessage({workerId:u.WORKER_ID,error:_,finished:!1})}}function d(S){var _;(S=S||{}).chunkSize||(S.chunkSize=u.RemoteChunkSize),f.call(this,S),this._nextChunk=o?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(k){this._input=k,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(_=new XMLHttpRequest,this._config.withCredentials&&(_.withCredentials=this._config.withCredentials),o||(_.onload=P(this._chunkLoaded,this),_.onerror=P(this._chunkError,this)),_.open(this._config.downloadRequestBody?"POST":"GET",this._input,!o),this._config.downloadRequestHeaders){var k,T=this._config.downloadRequestHeaders;for(k in T)_.setRequestHeader(k,T[k])}var D;this._config.chunkSize&&(D=this._start+this._config.chunkSize-1,_.setRequestHeader("Range","bytes="+this._start+"-"+D));try{_.send(this._config.downloadRequestBody)}catch(O){this._chunkError(O.message)}o&&_.status===0&&this._chunkError()}},this._chunkLoaded=function(){_.readyState===4&&(_.status<200||400<=_.status?this._chunkError():(this._start+=this._config.chunkSize||_.responseText.length,this._finished=!this._config.chunkSize||this._start>=(k=>(k=k.getResponseHeader("Content-Range"))!==null?parseInt(k.substring(k.lastIndexOf("/")+1)):-1)(_),this.parseChunk(_.responseText)))},this._chunkError=function(k){k=_.statusText||k,this._sendError(new Error(k))}}function p(S){(S=S||{}).chunkSize||(S.chunkSize=u.LocalChunkSize),f.call(this,S);var _,k,T=typeof FileReader<"u";this.stream=function(D){this._input=D,k=D.slice||D.webkitSlice||D.mozSlice,T?((_=new FileReader).onload=P(this._chunkLoaded,this),_.onerror=P(this._chunkError,this)):_=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var D=this._input,O=(this._config.chunkSize&&(O=Math.min(this._start+this._config.chunkSize,this._input.size),D=k.call(D,this._start,O)),_.readAsText(D,this._config.encoding));T||this._chunkLoaded({target:{result:O}})},this._chunkLoaded=function(D){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(D.target.result)},this._chunkError=function(){this._sendError(_.error)}}function h(S){var _;f.call(this,S=S||{}),this.stream=function(k){return _=k,this._nextChunk()},this._nextChunk=function(){var k,T;if(!this._finished)return k=this._config.chunkSize,_=k?(T=_.substring(0,k),_.substring(k)):(T=_,""),this._finished=!_,this.parseChunk(T)}}function m(S){f.call(this,S=S||{});var _=[],k=!0,T=!1;this.pause=function(){f.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){f.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(D){this._input=D,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){T&&_.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),_.length?this.parseChunk(_.shift()):k=!0},this._streamData=P(function(D){try{_.push(typeof D=="string"?D:D.toString(this._config.encoding)),k&&(k=!1,this._checkIsFinished(),this.parseChunk(_.shift()))}catch(O){this._streamError(O)}},this),this._streamError=P(function(D){this._streamCleanUp(),this._sendError(D)},this),this._streamEnd=P(function(){this._streamCleanUp(),T=!0,this._streamData("")},this),this._streamCleanUp=P(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function w(S){var _,k,T,D,O=Math.pow(2,53),q=-O,he=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,Y=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,G=this,F=0,W=0,B=!1,fe=!1,Q=[],R={data:[],errors:[],meta:{}};function ce(re){return S.skipEmptyLines==="greedy"?re.join("").trim()==="":re.length===1&&re[0].length===0}function te(){if(R&&T&&(Re("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+u.DefaultDelimiter+"'"),T=!1),S.skipEmptyLines&&(R.data=R.data.filter(function(H){return!ce(H)})),be()){let H=function(U,ee){L(S.transformHeader)&&(U=S.transformHeader(U,ee)),Q.push(U)};var Ee=H;if(R)if(Array.isArray(R.data[0])){for(var re=0;be()&&re<R.data.length;re++)R.data[re].forEach(H);R.data.splice(0,1)}else R.data.forEach(H)}function ve(H,U){for(var ee=S.header?{}:[],ie=0;ie<H.length;ie++){var pe=ie,z=H[ie],z=((pt,Ve)=>(nt=>(S.dynamicTypingFunction&&S.dynamicTyping[nt]===void 0&&(S.dynamicTyping[nt]=S.dynamicTypingFunction(nt)),(S.dynamicTyping[nt]||S.dynamicTyping)===!0))(pt)?Ve==="true"||Ve==="TRUE"||Ve!=="false"&&Ve!=="FALSE"&&((nt=>{if(he.test(nt)&&(nt=parseFloat(nt),q<nt&&nt<O))return 1})(Ve)?parseFloat(Ve):Y.test(Ve)?new Date(Ve):Ve===""?null:Ve):Ve)(pe=S.header?ie>=Q.length?"__parsed_extra":Q[ie]:pe,z=S.transform?S.transform(z,pe):z);pe==="__parsed_extra"?(ee[pe]=ee[pe]||[],ee[pe].push(z)):ee[pe]=z}return S.header&&(ie>Q.length?Re("FieldMismatch","TooManyFields","Too many fields: expected "+Q.length+" fields but parsed "+ie,W+U):ie<Q.length&&Re("FieldMismatch","TooFewFields","Too few fields: expected "+Q.length+" fields but parsed "+ie,W+U)),ee}var _e;R&&(S.header||S.dynamicTyping||S.transform)&&(_e=1,!R.data.length||Array.isArray(R.data[0])?(R.data=R.data.map(ve),_e=R.data.length):R.data=ve(R.data,0),S.header&&R.meta&&(R.meta.fields=Q),W+=_e)}function be(){return S.header&&Q.length===0}function Re(re,ve,_e,Ee){re={type:re,code:ve,message:_e},Ee!==void 0&&(re.row=Ee),R.errors.push(re)}L(S.step)&&(D=S.step,S.step=function(re){R=re,be()?te():(te(),R.data.length!==0&&(F+=re.data.length,S.preview&&F>S.preview?k.abort():(R.data=R.data[0],D(R,G))))}),this.parse=function(re,ve,_e){var Ee=S.quoteChar||'"',Ee=(S.newline||(S.newline=this.guessLineEndings(re,Ee)),T=!1,S.delimiter?L(S.delimiter)&&(S.delimiter=S.delimiter(re),R.meta.delimiter=S.delimiter):((Ee=((H,U,ee,ie,pe)=>{var z,pt,Ve,nt;pe=pe||[","," ","|",";",u.RECORD_SEP,u.UNIT_SEP];for(var mn=0;mn<pe.length;mn++){for(var qt,gt=pe[mn],en=0,qe=0,Dt=0,dt=(Ve=void 0,new x({comments:ie,delimiter:gt,newline:U,preview:10}).parse(H)),tn=0;tn<dt.data.length;tn++)ee&&ce(dt.data[tn])?Dt++:(qt=dt.data[tn].length,qe+=qt,Ve===void 0?Ve=qt:0<qt&&(en+=Math.abs(qt-Ve),Ve=qt));0<dt.data.length&&(qe/=dt.data.length-Dt),(pt===void 0||en<=pt)&&(nt===void 0||nt<qe)&&1.99<qe&&(pt=en,z=gt,nt=qe)}return{successful:!!(S.delimiter=z),bestDelimiter:z}})(re,S.newline,S.skipEmptyLines,S.comments,S.delimitersToGuess)).successful?S.delimiter=Ee.bestDelimiter:(T=!0,S.delimiter=u.DefaultDelimiter),R.meta.delimiter=S.delimiter),I(S));return S.preview&&S.header&&Ee.preview++,_=re,k=new x(Ee),R=k.parse(_,ve,_e),te(),B?{meta:{paused:!0}}:R||{meta:{paused:!1}}},this.paused=function(){return B},this.pause=function(){B=!0,k.abort(),_=L(S.chunk)?"":_.substring(k.getCharIndex())},this.resume=function(){G.streamer._halted?(B=!1,G.streamer.parseChunk(_,!0)):setTimeout(G.resume,3)},this.aborted=function(){return fe},this.abort=function(){fe=!0,k.abort(),R.meta.aborted=!0,L(S.complete)&&S.complete(R),_=""},this.guessLineEndings=function(H,Ee){H=H.substring(0,1048576);var Ee=new RegExp(b(Ee)+"([^]*?)"+b(Ee),"gm"),_e=(H=H.replace(Ee,"")).split("\r"),Ee=H.split(`
|
|
57
|
+
`),H=1<Ee.length&&Ee[0].length<_e[0].length;if(_e.length===1||H)return`
|
|
58
|
+
`;for(var U=0,ee=0;ee<_e.length;ee++)_e[ee][0]===`
|
|
59
|
+
`&&U++;return U>=_e.length/2?`\r
|
|
60
|
+
`:"\r"}}function b(S){return S.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function x(S){var _=(S=S||{}).delimiter,k=S.newline,T=S.comments,D=S.step,O=S.preview,q=S.fastMode,he=null,Y=S.quoteChar==null?'"':S.quoteChar,G=Y;if(S.escapeChar!==void 0&&(G=S.escapeChar),(typeof _!="string"||-1<u.BAD_DELIMITERS.indexOf(_))&&(_=","),T===_)throw new Error("Comment character same as delimiter");T===!0?T="#":(typeof T!="string"||-1<u.BAD_DELIMITERS.indexOf(T))&&(T=!1),k!==`
|
|
61
|
+
`&&k!=="\r"&&k!==`\r
|
|
62
|
+
`&&(k=`
|
|
63
|
+
`);var F=0,W=!1;this.parse=function(B,fe,Q){if(typeof B!="string")throw new Error("Input must be a string");var R=B.length,ce=_.length,te=k.length,be=T.length,Re=L(D),re=[],ve=[],_e=[],Ee=F=0;if(!B)return gt();if(q||q!==!1&&B.indexOf(Y)===-1){for(var H=B.split(k),U=0;U<H.length;U++){if(_e=H[U],F+=_e.length,U!==H.length-1)F+=k.length;else if(Q)return gt();if(!T||_e.substring(0,be)!==T){if(Re){if(re=[],Ve(_e.split(_)),en(),W)return gt()}else Ve(_e.split(_));if(O&&O<=U)return re=re.slice(0,O),gt(!0)}}return gt()}for(var ee=B.indexOf(_,F),ie=B.indexOf(k,F),pe=new RegExp(b(G)+b(Y),"g"),z=B.indexOf(Y,F);;)if(B[F]===Y)for(z=F,F++;;){if((z=B.indexOf(Y,z+1))===-1)return Q||ve.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:re.length,index:F}),mn();if(z===R-1)return mn(B.substring(F,z).replace(pe,Y));if(Y===G&&B[z+1]===G)z++;else if(Y===G||z===0||B[z-1]!==G){ee!==-1&&ee<z+1&&(ee=B.indexOf(_,z+1));var pt=nt((ie=ie!==-1&&ie<z+1?B.indexOf(k,z+1):ie)===-1?ee:Math.min(ee,ie));if(B.substr(z+1+pt,ce)===_){_e.push(B.substring(F,z).replace(pe,Y)),B[F=z+1+pt+ce]!==Y&&(z=B.indexOf(Y,F)),ee=B.indexOf(_,F),ie=B.indexOf(k,F);break}if(pt=nt(ie),B.substring(z+1+pt,z+1+pt+te)===k){if(_e.push(B.substring(F,z).replace(pe,Y)),qt(z+1+pt+te),ee=B.indexOf(_,F),z=B.indexOf(Y,F),Re&&(en(),W))return gt();if(O&&re.length>=O)return gt(!0);break}ve.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:re.length,index:F}),z++}}else if(T&&_e.length===0&&B.substring(F,F+be)===T){if(ie===-1)return gt();F=ie+te,ie=B.indexOf(k,F),ee=B.indexOf(_,F)}else if(ee!==-1&&(ee<ie||ie===-1))_e.push(B.substring(F,ee)),F=ee+ce,ee=B.indexOf(_,F);else{if(ie===-1)break;if(_e.push(B.substring(F,ie)),qt(ie+te),Re&&(en(),W))return gt();if(O&&re.length>=O)return gt(!0)}return mn();function Ve(qe){re.push(qe),Ee=F}function nt(qe){var Dt=0;return Dt=qe!==-1&&(qe=B.substring(z+1,qe))&&qe.trim()===""?qe.length:Dt}function mn(qe){return Q||(qe===void 0&&(qe=B.substring(F)),_e.push(qe),F=R,Ve(_e),Re&&en()),gt()}function qt(qe){F=qe,Ve(_e),_e=[],ie=B.indexOf(k,F)}function gt(qe){if(S.header&&!fe&&re.length){var Dt=re[0],dt={},tn=new Set(Dt);let ki=!1;for(let bn=0;bn<Dt.length;bn++){let Ft=Dt[bn];if(dt[Ft=L(S.transformHeader)?S.transformHeader(Ft,bn):Ft]){let Ln,Ni=dt[Ft];for(;Ln=Ft+"_"+Ni,Ni++,tn.has(Ln););tn.add(Ln),Dt[bn]=Ln,dt[Ft]++,ki=!0,(he=he===null?{}:he)[Ln]=Ft}else dt[Ft]=1,Dt[bn]=Ft;tn.add(Ft)}ki&&console.warn("Duplicate headers found and renamed.")}return{data:re,errors:ve,meta:{delimiter:_,linebreak:k,aborted:W,truncated:!!qe,cursor:Ee+(fe||0),renamedHeaders:he}}}function en(){D(gt()),re=[],ve=[]}},this.abort=function(){W=!0},this.getCharIndex=function(){return F}}function C(S){var _=S.data,k=a[_.workerId],T=!1;if(_.error)k.userError(_.error,_.file);else if(_.results&&_.results.data){var D={abort:function(){T=!0,E(_.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:$,resume:$};if(L(k.userStep)){for(var O=0;O<_.results.data.length&&(k.userStep({data:_.results.data[O],errors:_.results.errors,meta:_.results.meta},D),!T);O++);delete _.results}else L(k.userChunk)&&(k.userChunk(_.results,D,_.file),delete _.results)}_.finished&&!T&&E(_.workerId,_.results)}function E(S,_){var k=a[S];L(k.userComplete)&&k.userComplete(_),k.terminate(),delete a[S]}function $(){throw new Error("Not implemented.")}function I(S){if(typeof S!="object"||S===null)return S;var _,k=Array.isArray(S)?[]:{};for(_ in S)k[_]=I(S[_]);return k}function P(S,_){return function(){S.apply(_,arguments)}}function L(S){return typeof S=="function"}return u.parse=function(S,_){var k=(_=_||{}).dynamicTyping||!1;if(L(k)&&(_.dynamicTypingFunction=k,k={}),_.dynamicTyping=k,_.transform=!!L(_.transform)&&_.transform,!_.worker||!u.WORKERS_SUPPORTED)return k=null,u.NODE_STREAM_INPUT,typeof S=="string"?(S=(T=>T.charCodeAt(0)!==65279?T:T.slice(1))(S),k=new(_.download?d:h)(_)):S.readable===!0&&L(S.read)&&L(S.on)?k=new m(_):(r.File&&S instanceof File||S instanceof Object)&&(k=new p(_)),k.stream(S);(k=(()=>{var T;return!!u.WORKERS_SUPPORTED&&(T=(()=>{var D=r.URL||r.webkitURL||null,O=n.toString();return u.BLOB_URL||(u.BLOB_URL=D.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",O,")();"],{type:"text/javascript"})))})(),(T=new r.Worker(T)).onmessage=C,T.id=l++,a[T.id]=T)})()).userStep=_.step,k.userChunk=_.chunk,k.userComplete=_.complete,k.userError=_.error,_.step=L(_.step),_.chunk=L(_.chunk),_.complete=L(_.complete),_.error=L(_.error),delete _.worker,k.postMessage({input:S,config:_,workerId:k.id})},u.unparse=function(S,_){var k=!1,T=!0,D=",",O=`\r
|
|
64
|
+
`,q='"',he=q+q,Y=!1,G=null,F=!1,W=((()=>{if(typeof _=="object"){if(typeof _.delimiter!="string"||u.BAD_DELIMITERS.filter(function(Q){return _.delimiter.indexOf(Q)!==-1}).length||(D=_.delimiter),typeof _.quotes!="boolean"&&typeof _.quotes!="function"&&!Array.isArray(_.quotes)||(k=_.quotes),typeof _.skipEmptyLines!="boolean"&&typeof _.skipEmptyLines!="string"||(Y=_.skipEmptyLines),typeof _.newline=="string"&&(O=_.newline),typeof _.quoteChar=="string"&&(q=_.quoteChar),typeof _.header=="boolean"&&(T=_.header),Array.isArray(_.columns)){if(_.columns.length===0)throw new Error("Option columns is empty");G=_.columns}_.escapeChar!==void 0&&(he=_.escapeChar+q),_.escapeFormulae instanceof RegExp?F=_.escapeFormulae:typeof _.escapeFormulae=="boolean"&&_.escapeFormulae&&(F=/^[=+\-@\t\r].*$/)}})(),new RegExp(b(q),"g"));if(typeof S=="string"&&(S=JSON.parse(S)),Array.isArray(S)){if(!S.length||Array.isArray(S[0]))return B(null,S,Y);if(typeof S[0]=="object")return B(G||Object.keys(S[0]),S,Y)}else if(typeof S=="object")return typeof S.data=="string"&&(S.data=JSON.parse(S.data)),Array.isArray(S.data)&&(S.fields||(S.fields=S.meta&&S.meta.fields||G),S.fields||(S.fields=Array.isArray(S.data[0])?S.fields:typeof S.data[0]=="object"?Object.keys(S.data[0]):[]),Array.isArray(S.data[0])||typeof S.data[0]=="object"||(S.data=[S.data])),B(S.fields||[],S.data||[],Y);throw new Error("Unable to serialize unrecognized input");function B(Q,R,ce){var te="",be=(typeof Q=="string"&&(Q=JSON.parse(Q)),typeof R=="string"&&(R=JSON.parse(R)),Array.isArray(Q)&&0<Q.length),Re=!Array.isArray(R[0]);if(be&&T){for(var re=0;re<Q.length;re++)0<re&&(te+=D),te+=fe(Q[re],re);0<R.length&&(te+=O)}for(var ve=0;ve<R.length;ve++){var _e=(be?Q:R[ve]).length,Ee=!1,H=be?Object.keys(R[ve]).length===0:R[ve].length===0;if(ce&&!be&&(Ee=ce==="greedy"?R[ve].join("").trim()==="":R[ve].length===1&&R[ve][0].length===0),ce==="greedy"&&be){for(var U=[],ee=0;ee<_e;ee++){var ie=Re?Q[ee]:ee;U.push(R[ve][ie])}Ee=U.join("").trim()===""}if(!Ee){for(var pe=0;pe<_e;pe++){0<pe&&!H&&(te+=D);var z=be&&Re?Q[pe]:pe;te+=fe(R[ve][z],pe)}ve<R.length-1&&(!ce||0<_e&&!H)&&(te+=O)}}return te}function fe(Q,R){var ce,te;return Q==null?"":Q.constructor===Date?JSON.stringify(Q).slice(1,25):(te=!1,F&&typeof Q=="string"&&F.test(Q)&&(Q="'"+Q,te=!0),ce=Q.toString().replace(W,he),(te=te||k===!0||typeof k=="function"&&k(Q,R)||Array.isArray(k)&&k[R]||((be,Re)=>{for(var re=0;re<Re.length;re++)if(-1<be.indexOf(Re[re]))return!0;return!1})(ce,u.BAD_DELIMITERS)||-1<ce.indexOf(D)||ce.charAt(0)===" "||ce.charAt(ce.length-1)===" ")?q+ce+q:ce)}},u.RECORD_SEP="",u.UNIT_SEP="",u.BYTE_ORDER_MARK="\uFEFF",u.BAD_DELIMITERS=["\r",`
|
|
65
|
+
`,'"',u.BYTE_ORDER_MARK],u.WORKERS_SUPPORTED=!o&&!!r.Worker,u.NODE_STREAM_INPUT=1,u.LocalChunkSize=10485760,u.RemoteChunkSize=5242880,u.DefaultDelimiter=",",u.Parser=x,u.ParserHandle=w,u.NetworkStreamer=d,u.FileStreamer=p,u.StringStreamer=h,u.ReadableStreamStreamer=m,r.jQuery&&((i=r.jQuery).fn.parse=function(S){var _=S.config||{},k=[];return this.each(function(O){if(!(i(this).prop("tagName").toUpperCase()==="INPUT"&&i(this).attr("type").toLowerCase()==="file"&&r.FileReader)||!this.files||this.files.length===0)return!0;for(var q=0;q<this.files.length;q++)k.push({file:this.files[q],inputElem:this,instanceConfig:i.extend({},_)})}),T(),this;function T(){if(k.length===0)L(S.complete)&&S.complete();else{var O,q,he,Y,G=k[0];if(L(S.before)){var F=S.before(G.file,G.inputElem);if(typeof F=="object"){if(F.action==="abort")return O="AbortError",q=G.file,he=G.inputElem,Y=F.reason,void(L(S.error)&&S.error({name:O},q,he,Y));if(F.action==="skip")return void D();typeof F.config=="object"&&(G.instanceConfig=i.extend(G.instanceConfig,F.config))}else if(F==="skip")return void D()}var W=G.instanceConfig.complete;G.instanceConfig.complete=function(B){L(W)&&W(B,G.file,G.inputElem),D()},u.parse(G.file,G.instanceConfig)}}function D(){k.splice(0,1),T()}}),s&&(r.onmessage=function(S){S=S.data,u.WORKER_ID===void 0&&S&&(u.WORKER_ID=S.workerId),typeof S.input=="string"?r.postMessage({workerId:u.WORKER_ID,results:u.parse(S.input,S.config),finished:!0}):(r.File&&S.input instanceof File||S.input instanceof Object)&&(S=u.parse(S.input,S.config))&&r.postMessage({workerId:u.WORKER_ID,results:S,finished:!0})}),(d.prototype=Object.create(f.prototype)).constructor=d,(p.prototype=Object.create(f.prototype)).constructor=p,(h.prototype=Object.create(h.prototype)).constructor=h,(m.prototype=Object.create(f.prototype)).constructor=m,u})}(Zo)),Zo.exports}var Z5=Y5();const K5=e=>e.filter(n=>!ao(n)).length===0;function X5(e,t){const n=t.type==="text/csv",r=t.size<=10485760;if(n)if(r){const i={};i.complete=(o,s)=>{let a,l,u,f,d,p,h,m,w,b,x,C;e((a=o.errors,!co(ne,a,Ae())&&a.length===0?(l=(u=o.data,u.filter(E=>!K5(E))),f=l.length>1?new M(0,[void 0]):new M(1,[new xn(2,[])]),f.tag===1?new M(1,[f.fields[0]]):(d=l.length<=5001?new M(0,[void 0]):new M(1,[new xn(3,[])]),d.tag===1?new M(1,[d.fields[0]]):(p=zu(l),h=p.length|0,m=p.some(ao)?new M(1,[new xn(4,[])]):new M(0,[void 0]),m.tag===1?new M(1,[m.fields[0]]):(w=(b=Zm(Ge(E=>E.trim().toLocaleLowerCase(),p),{Equals:(E,$)=>E===$,GetHashCode:Jn}),b.length===h?new M(0,[void 0]):new M(1,[new xn(5,[])])),w.tag===1?new M(1,[w.fields[0]]):(x=(C=l.filter(E=>E.length!==h),C.length===0?new M(0,[void 0]):new M(1,[new xn(6,[])])),x.tag===1?new M(1,[x.fields[0]]):new M(0,[new K_(new Jm(t.name),$f((E,$)=>[new P_(E),new z_($.trim())],zu(l)),new Y_(Ge(E=>new q_(Ge($=>$.trim(),E)),Sg(l))),t.size)])))))):new M(1,[new xn(7,[we(0,o.errors).message])])))},i.error=(o,s)=>{e(new M(1,[new xn(7,[o])]))},i.worker=!0,Z5.parse(t,i)}else e(new M(1,[new xn(1,[])]));else e(new M(1,[new xn(0,[])]))}let fr=class extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NoFileSelected","ParsingFile","FileSelected"]}};function J5(e){return e==null?[new fr(0,[void 0]),Z()]:[new fr(2,[e]),Z()]}function Q5(e,t){let n,r,i,o,s;switch(e.tag){case 1:{t.tag===1?n=4:n=5;break}case 2:{t.tag===2?n=6:n=7;break}default:if(e.fields[0].tag===1)e.fields[0].fields[0].tag===1?t.tag===1?(n=2,s=e.fields[0].fields[0].fields[0]):n=3:t.tag===1?(n=1,o=e.fields[0].fields[0].fields[0]):n=3;else switch(t.tag){case 0:{n=0,r=e.fields[0].fields[0][0],i=e.fields[0].fields[0][1];break}case 2:{n=0,r=e.fields[0].fields[0][0],i=e.fields[0].fields[0][1];break}default:n=3}}switch(n){case 0:return[new fr(1,[r]),tm(i)];case 1:return[new fr(2,[o]),Z()];case 2:return[new fr(0,[s]),Z()];case 3:return[t,Z()];case 4:return[new fr(0,[void 0]),Z()];case 5:return[t,Z()];case 6:return[new fr(0,[void 0]),Z()];default:return[t,Z()]}}function e6(e,t){let n,r,i,o,s,a,l;return ea(y([new Kt(3,[e]),new Kt(4,[t]),new Kt(5,[[ia(me(new ra(2,["fixed inset-0 bg-gray-500/50"]))),c("div",g(y([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(n=[na(me(new ta(2,[[c("div",g(y([["className","flex flex-col mt-6 mb-6 px-6"],(r=[c("div",g(y([["className","flex flex-row justify-between"],(i=[c("span",{className:"text-gray-900 font-semibold text-lg",children:"Frequently asked questions"}),c("button",g(y([["onClick",u=>{t()}],["type","button"],["className","text-gray-700"],(o=[oa(24,24)],["children",v.Children.toArray(Array.from(o))])])))],["children",v.Children.toArray(Array.from(i))])]))),c("div",{className:"font-semibold text-sm pt-6",children:"What file format is accepted for bulk import?"}),c("div",{className:"text-sm text-gray-500 pt-2",children:"The only accepted file format for bulk import is CSV."}),c("div",{className:"font-semibold text-sm pt-6",children:"What is the maximum upload file size?"}),c("div",{className:"text-sm text-gray-500 pt-2",children:"The maximum upload file size is 10 MB."}),c("div",{className:"font-semibold text-sm pt-6",children:"What is the maximum number of rows supported for bulk import?"}),c("div",{className:"text-sm text-gray-500 pt-2",children:"The maximum number of rows you can upload is 5,000."}),c("div",{className:"font-semibold text-sm pt-6",children:"What information do I need to include in the CSV file?"}),c("div",g(y([["className","text-sm text-gray-500 pt-2"],(s="You must include the required fields: “First name,” “Last name,” and “Email” to create a profile. “Mobile number” and “Employment basis” are optional but recommended, as they can help with searching and filtering.",["children",s])]))),c("div",{className:"font-semibold text-sm pt-6",children:"How do I format the CSV file?"}),c("div",g(y([["className","text-sm text-gray-500 pt-2"],(a=`We recommend downloading and editing our sample CSV template, which includes all the necessary column headers and example values.
|
|
66
|
+
If you’re using your own CSV, ensure that your data is organised correctly and that there are no extra spaces or special characters.`,["children",a])]))),c("div",{className:"font-semibold text-sm pt-6",children:"What should I do if my CSV file contains errors?"}),c("div",g(y([["className","text-sm text-gray-500 pt-2"],(l=`We recommend checking for common issues, such as missing data or incorrect formatting before upload.
|
|
67
|
+
If errors are detected during import, you can download a CSV file that lists all the rows with issues.`,["children",l])])))],["children",v.Children.toArray(Array.from(r))])])))]])))],["children",v.Children.toArray(Array.from(n))])])))]])]))}function t6(e,t){let n,r,i;return c("svg",g(y([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=y([c("path",g(y([(r="M18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10ZM3.99743 10C3.99743 13.3151 6.68487 16.0026 10 16.0026C13.3151 16.0026 16.0026 13.3151 16.0026 10C16.0026 6.68487 13.3151 3.99743 10 3.99743C6.68487 3.99743 3.99743 6.68487 3.99743 10Z",["d",r]),["fill","#D6E2FC"]]))),c("path",g(y([(i="M10 3C10 2.44772 10.4494 1.99356 10.9974 2.06242C11.7053 2.15137 12.3996 2.3348 13.0615 2.60896C14.0321 3.011 14.914 3.60028 15.6569 4.34315C16.3997 5.08602 16.989 5.96793 17.391 6.93853C17.6652 7.60043 17.8486 8.29473 17.9376 9.0026C18.0064 9.55057 17.5523 10 17 10C16.4477 10 16.0085 9.54925 15.9169 9.00462C15.842 8.55939 15.7169 8.12298 15.5433 7.7039C15.2417 6.97595 14.7998 6.31451 14.2426 5.75736C13.6855 5.20021 13.0241 4.75825 12.2961 4.45672C11.877 4.28313 11.4406 4.15804 10.9954 4.08314C10.4508 3.99152 10 3.55228 10 3Z",["d",i]),["fill","#2E66F7"]])))]),["children",v.Children.toArray(Array.from(n))])])))}function n6(e,t){let n,r;return c("svg",g(y([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=y([c("path",g(y([(r="M17 21H3C1.346 21 0 19.654 0 18V14H2V18C2 18.551 2.448 19 3 19H17C17.552 19 18 18.551 18 18V14H20V18C20 19.654 18.654 21 17 21Z",["d",r]),["fill","#9CA3AF"]]))),c("path",{d:"M16.414 7L10 0.585999L3.586 7L5 8.414L9 4.414V15H11V4.414L15 8.414L16.414 7Z",fill:"#9CA3AF"})]),["children",v.Children.toArray(Array.from(n))])])))}function r6(e,t){em(Ne.Delay(()=>Ne.Bind(X1(1e3),()=>(X5(n=>{t(new Yo(0,[new Fs(1,[n])]))},e),Ne.Zero()))))}const Oa=(()=>{const e=new Blob(["First name,Last name,Email,Mobile phone,Employment basis"],{type:"text/csv;charset=utf-8;"});return window.URL.createObjectURL(e)})();function i6(e){let t,n,r,i,o,s,a,l;const u=e.cancel,f=e.next,d=e.existingCsvFile;let p;const h=J5(d);p=Or(()=>Dr(()=>h,Q5,(_,k)=>{}),void 0,void 0);const m=p[0],w=p[1],b=_=>{w(new Yo(0,[new Fs(0,[[new Jm(_.name),k=>{r6(_,k)}]])]))},x=v.useState(!1),C=x[1],E=v.useState(!1),$=E[1],I=v.useState(!1),P=I[1],L=v.useRef(void 0),S=m.tag===2;return c("div",g(y([["className","bg-gray-50 h-full"],(t=[c("div",g(y([["className","max-w-[640px] flex flex-col mx-12 mt-8 mb-12"],(n=[R0(Oa,x[0],()=>{C(!1)}),e6(I[0],()=>{P(!1)}),sa("Upload CSV"),aa("Download and use our template, or upload your own CSV to get started."),c("a",g(y([["className","flex flex-row items-end gap-1"],["href",Oa],["download","import_users"],(r=[c("span",{className:"text-sm font-medium text-primary-600 pt-2",children:"Download sample CSV template"}),O0(16,16)],["children",v.Children.toArray(Array.from(r))])]))),c("div",g(y([["className","flex flex-row pt-3 gap-2"],(i=[no("What kind of data do I need?",()=>{C(!0)}),no("Frequently asked questions",()=>{P(!0)})],["children",v.Children.toArray(Array.from(i))])]))),c("div",g(K(N(()=>j(E[0]?A(["className","h-75 border-gray-300 border-dashed border-2 rounded-md my-6 bg-blue-50 border-blue-300"]):A(["className","h-75 border-gray-300 border-dashed border-2 rounded-md my-6 hover:bg-gray-100"]),N(()=>{let _;return A((_=K(N(()=>{let k,T,D,O,q,he,Y,G,F,W,B,fe,Q,R;switch(m.tag){case 2:{let ce;const te=m.fields[0].SizeInBytes/1024/1024;return ce=te<.01?.01:te,A(c("div",g(y([["className","p-6 justify-between items-center inline-flex w-full"],(k=[c("div",g(y([["className","justify-start items-start gap-2 flex"],(T=[c("div",{className:"text-center text-gray-600 text-sm font-medium",children:m.fields[0].Name.fields[0]}),c("span",g(y([["className","text-emerald-700"],(D=[hu(20,20)],["children",v.Children.toArray(Array.from(D))])])))],["children",v.Children.toArray(Array.from(T))])]))),c("div",g(y([["className","justify-start items-start gap-3 flex"],(O=[c("div",{className:"text-center text-gray-500 text-sm font-medium",children:(q=Il("{0:F2}",ce),wr(Dn("%sMB"))(q))}),c("button",g(y([["className","justify-start items-center gap-1 flex text-red-600"],["onClick",be=>{w(new Yo(2,[]))}],(he=[c("div",{className:"text-center text-sm font-medium",children:"Remove"}),c("div",g(y([["className","w-4 h-4 justify-center items-center flex"],(Y=[Xa(10,10)],["children",v.Children.toArray(Array.from(Y))])])))],["children",v.Children.toArray(Array.from(he))])])))],["children",v.Children.toArray(Array.from(O))])])))],["children",v.Children.toArray(Array.from(k))])]))))}case 1:return A(c("div",g(y([["className","p-6 justify-between items-center inline-flex w-full"],(G=[c("div",g(y([["className","justify-start items-start gap-2 flex"],(F=[c("div",{className:"text-center text-gray-600 text-sm font-medium",children:m.fields[0].fields[0]}),c("span",g(y([["className","animate-spin"],(W=[t6(20,20)],["children",v.Children.toArray(Array.from(W))])])))],["children",v.Children.toArray(Array.from(F))])]))),c("div",g(y([["className","justify-start items-start gap-2 flex"],(B=[c("button",g(y([["className","justify-start items-center gap-1 flex text-red-600"],["onClick",ce=>{w(new Yo(1,[]))}],(fe=[c("div",{className:"text-center text-sm font-medium",children:"Cancel"}),c("div",g(y([["className","w-4 h-4 justify-center items-center flex"],(Q=[Xa(10,10)],["children",v.Children.toArray(Array.from(Q))])])))],["children",v.Children.toArray(Array.from(fe))])])))],["children",v.Children.toArray(Array.from(B))])])))],["children",v.Children.toArray(Array.from(G))])]))));default:{const ce=te=>{te.preventDefault(),te.stopPropagation()};return A(c("div",g(y([["className","flex flex-col items-center p-4"],["onDragEnter",te=>{ce(te),$(!0)}],["onDragLeave",te=>{ce(te),$(!1)}],["onDragOver",te=>{ce(te),$(!0)}],["onDrop",te=>{let be;ce(te),$(!1),b((be=te,be.dataTransfer).files.item(0))}],(R=K(N(()=>{let te,be,Re,re,ve,_e;return j((te=m.fields[0],te==null?A(Ae()):(be=te,A(c("div",g(y([["className","h-9 p-2 bg-red-50 rounded-md justify-start items-start gap-2 inline-flex w-full"],(Re=[c("div",g(y([["className","w-5 h-5 px-0.5 pt-0.5 pb-[3px] justify-center items-center flex"],(re=[w0(16,15)],["children",v.Children.toArray(Array.from(re))])]))),c("div",g(y([["className","grow shrink basis-0 flex-col justify-start items-start gap-2 inline-flex"],(ve=[c("div",g(y([["className","self-stretch text-red-800 text-sm font-normal"],(_e=K(N(()=>{let Ee;const H=ie=>c("span",{className:"font-medium",children:ie}),U=ie=>c("span",{children:[ie]}),ee=c("a",{className:"underline",children:"sample CSV",href:Oa,download:"import_users"});return A((Ee=be.tag===1?y([H("File is too large (over 10MB). "),U("Upload a "),H("smaller file"),U(".")]):be.tag===2?y([H("File is empty. "),U("Ensure your file contains data before uploading.")]):be.tag===3?y([H("Too many rows (5000+). "),U("Upload a "),H("file with fewer rows"),U(".")]):be.tag===4?y([H("Invalid CSV: Missing header field(s). "),U("Try using our "),ee,U(".")]):be.tag===5?y([H("Invalid CSV: Duplicate header fields. "),U("Try using our "),ee,U(".")]):be.tag===6?y([H("Invalid CSV: Rows have different lengths. "),U("Check for missing or extra columns.")]):be.tag===7?y([H("Invalid CSV format. "),U("Try using our "),ee,U(".")]):y([H("Unsupported file type. "),U("Upload a "),H(".csv file"),U(".")]),c("p",{children:v.Children.toArray(Array.from(Ee))})))})),["children",v.Children.toArray(Array.from(_e))])])))],["children",v.Children.toArray(Array.from(ve))])])))],["children",v.Children.toArray(Array.from(Re))])])))))),N(()=>{let Ee;return j(A(c("div",g(y([["className","pt-2"],(Ee=[n6(20,21)],["children",v.Children.toArray(Array.from(Ee))])])))),N(()=>j(A(c("input",{type:"file",onChange:H=>{const U=H.target.files;U!=null&&U.length>0&&b(U.item(0))},className:"hidden",ref:L})),N(()=>j(A(c("span",{className:"text-gray-600 text-sm font-medium mt-3",children:"Drag and drop CSV file here"})),N(()=>j(A(c("button",{className:"rounded text-sm w-[120px] border px-3 py-2 mt-4 font-medium text-gray-700 bg-white hover:bg-gray-50",onClick:H=>{Mr(U=>{U.click()},Ns(L.current))},type:"button",children:v.Children.toArray(["Choose file"])})),N(()=>A(c("span",{className:"text-gray-500 text-xs font-normal mt-2 font-normal pb-2",children:"Maximum size: 10 MB"}))))))))))}))})),["children",v.Children.toArray(Array.from(R))])]))))}}})),["children",v.Children.toArray(Array.from(_))]))})))))),c("div",g(y([["className","flex flex-row justify-end gap-3"],(o=[c("button",g(y([(s="bg-white hover:bg-gray-50 rounded-md text-red-700 shadow-sm text-sm border border-gray-300 font-medium px-3 py-2 w-[120px]",["className",s]),["onClick",_=>{u()}],["type","button"],["children",v.Children.toArray(["Cancel import"])]]))),c("button",g(y([(a="inline-flex justify-center items-center gap-x-1 rounded-md text-white bg-primary-600 hover:enabled:bg-primary-700 text-sm w-[120px] border font-medium px-3 py-2 disabled:opacity-50",["className",a]),["onClick",_=>{m.tag===2&&f(m.fields[0])}],["type","button"],["disabled",!S],(l=["Map fields",pu(13,8)],["children",v.Children.toArray(Array.from(l))])])))],["children",v.Children.toArray(Array.from(o))])])))],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))}class Lt extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UploadingCsv","MappingColumns","MappingEmploymentBasis","Reviewing"]}}class Ot extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Configuring","Importing"]}}function o6(){return[new Ot(0,[new Lt(0,[void 0])]),Z()]}function s6(e,t){let n,r,i,o,s,a,l,u,f,d,p,h,m,w,b,x,C,E,$,I,P,L,S,_,k,T,D,O,q,he,Y,G,F,W,B,fe,Q;if(e.tag===1)switch(e.fields[0].tag){case 1:{t.tag===0&&t.fields[0].tag===2?(n=13,T=t.fields[0].fields[0][1],D=t.fields[0].fields[0][0],O=t.fields[0].fields[0][2],q=e.fields[0].fields[0]):n=14;break}case 2:{e.fields[0].fields[0].tag===0?t.tag===0&&t.fields[0].tag===1?(n=17,fe=t.fields[0].fields[0][0],Q=e.fields[0].fields[0].fields[0]):n=18:e.fields[0].fields[0].fields[1]!=null?t.tag===0&&t.fields[0].tag===1?(n=16,G=e.fields[0].fields[0].fields[0],F=t.fields[0].fields[0][0],W=e.fields[0].fields[0].fields[1],B=t.fields[0].fields[0][1]):n=18:t.tag===0&&t.fields[0].tag===1?(n=15,he=e.fields[0].fields[0].fields[0],Y=t.fields[0].fields[0][0]):n=18;break}default:t.tag===0&&t.fields[0].tag===3?t.fields[0].fields[0][2]!=null?(n=11,L=t.fields[0].fields[0][1],S=t.fields[0].fields[0][0],_=t.fields[0].fields[0][2][0],k=t.fields[0].fields[0][2][1]):(n=10,I=t.fields[0].fields[0][1],P=t.fields[0].fields[0][0]):n=12}else switch(e.fields[0].tag){case 1:{e.fields[0].fields[1]!=null?t.tag===0&&t.fields[0].tag===1?(n=4,u=e.fields[0].fields[0],f=t.fields[0].fields[0][0],d=e.fields[0].fields[1],p=t.fields[0].fields[0][1]):n=5:t.tag===0&&t.fields[0].tag===1?(n=3,a=e.fields[0].fields[0],l=t.fields[0].fields[0][0]):n=5;break}case 2:{t.tag===0&&t.fields[0].tag===2?(n=6,h=t.fields[0].fields[0][1],m=t.fields[0].fields[0][0],w=t.fields[0].fields[0][2],b=e.fields[0].fields[0]):n=7;break}case 3:{t.tag===0&&t.fields[0].tag===3?(n=8,x=t.fields[0].fields[0][1],C=t.fields[0].fields[0][0],E=t.fields[0].fields[0][2],$=e.fields[0].fields[0]):n=9;break}default:t.tag===0&&t.fields[0].tag===0?t.fields[0].fields[0]!=null?(n=1,i=e.fields[0].fields[0],o=t.fields[0].fields[0][0],s=t.fields[0].fields[0][1]):(n=0,r=e.fields[0].fields[0]):n=2}switch(n){case 0:return[new Ot(0,[new Lt(1,[[r,new _n(0,[void 0])]])]),Z()];case 1:return ne(i,o)?[new Ot(0,[new Lt(1,[[o,s]])]),Z()]:[new Ot(0,[new Lt(1,[[i,new _n(0,[void 0])]])]),Z()];case 2:return[t,Z()];case 3:return[new Ot(0,[new Lt(3,[[l,a,void 0]])]),Z()];case 4:return[new Ot(0,[new Lt(2,[[f,u,d,p.tag===1&&p.fields[0].tag===1&&ne(d,p.fields[0].fields[1])?p.fields[0].fields[2]:void 0]])]),Z()];case 5:return[t,Z()];case 6:return[new Ot(0,[new Lt(3,[[m,h,[w,b]]])]),Z()];case 7:return[t,Z()];case 8:return[new Ot(1,[[C,x,E,$]]),Z()];case 9:return[t,Z()];case 10:return[new Ot(0,[new Lt(1,[[P,new _n(1,[new Vr(0,[I])])]])]),Z()];case 11:return[new Ot(0,[new Lt(2,[[S,L,_,k]])]),Z()];case 12:return[t,Z()];case 13:return[new Ot(0,[new Lt(1,[[D,new _n(1,[new Vr(1,[T,O,q])])]])]),Z()];case 14:return[t,Z()];case 15:return[new Ot(0,[new Lt(0,[[Y,new _n(1,[new Vr(0,[he])])]])]),Z()];case 16:return[new Ot(0,[new Lt(0,[[F,B.tag===1?B.fields[0].tag===1?ne(G,B.fields[0].fields[0])&&ne(W,B.fields[0].fields[1])?B:new _n(1,[new Vr(1,[G,W,void 0])]):new _n(1,[new Vr(1,[G,W,void 0])]):new _n(1,[new Vr(1,[G,W,void 0])])]])]),Z()];case 17:return[new Ot(0,[new Lt(0,[[fe,new _n(0,[Q])]])]),Z()];default:return[t,Z()]}}function a6(e,t,n,r,i,o,s){return c("div",{children:"Importing ..."})}class bt extends J{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Completed","Active","Disabled"]}}class Ho extends Ce{constructor(t,n,r,i){super(),this.UploadingCsv=t,this.MappingColumns=n,this.MappingEmploymentBasis=r,this.Reviewing=i}}function l6(e){switch(e.tag){case 1:return new Ho(new bt(0,[]),new bt(1,[]),new bt(2,[]),new bt(2,[]));case 2:return new Ho(new bt(0,[]),new bt(0,[]),new bt(1,[]),new bt(2,[]));case 3:return new Ho(new bt(0,[]),new bt(0,[]),new bt(0,[]),new bt(1,[]));default:return new Ho(new bt(1,[]),new bt(2,[]),new bt(2,[]),new bt(2,[]))}}function u6(e,t,n,r){switch(r.tag){case 1:{const i=r.fields[0],o=i[1].tag===1?i[1].fields[0].tag===1?[Zc(i[1].fields[0].fields[0],i[1].fields[0].fields[1]),i[0].HeaderRow,i[0].DataRows]:[Zc(i[1].fields[0].fields[0],void 0),i[0].HeaderRow,i[0].DataRows]:[i[1].fields[0],i[0].HeaderRow,i[0].DataRows];return c(g5,{existingMappings:Hi(o[0]),headerRow:o[1],dataRows:o[2],next:s=>{let a;n(new or(0,[(a=s,new Fo(1,[a[0],a[1]]))]))},back:s=>{n(new or(1,[new Da(2,[s])]))}})}case 2:{const i=Z_(r.fields[0][0].DataRows,r.fields[0][2]);return c(E5,{existingMappings:Hi(r.fields[0][3]),employmentBasisColumn:i,next:o=>{n(new or(0,[new Fo(2,[o])]))},back:o=>{n(new or(1,[new Da(1,[o])]))}})}case 3:return c(z5,{apiCallAsync:e,dataRows:r.fields[0][0].DataRows,baseColumnMappings:r.fields[0][1],employmentBasis:Hi(r.fields[0][2]),next:i=>{n(new or(0,[new Fo(3,[i])]))},back:()=>{n(new or(1,[new Da(0,[])]))}});default:{const i=xt(o=>o[0],r.fields[0]);return c(i6,{existingCsvFile:Hi(i),next:o=>{n(new or(0,[new Fo(0,[o])]))},cancel:t})}}}function jo(e,t){let n,r,i;switch(t.tag){case 1:return c("div",g(y([["className","text-sm font-medium border-b-2 border-primary-600 pt-1 pb-3 text-primary-600"],(n=[c("span",{children:e})],["children",v.Children.toArray(Array.from(n))])])));case 2:return c("div",g(y([["className","text-sm font-medium pt-1 pb-3 text-gray-500"],(r=[c("span",{children:e})],["children",v.Children.toArray(Array.from(r))])])));default:return c("div",g(y([["className","text-sm font-medium pt-1 pb-3 text-emerald-700 gap-2 inline-flex"],(i=[hu(20,20),c("span",{children:e})],["children",v.Children.toArray(Array.from(i))])])))}}function c6(e){let t,n,r,i,o;const s=o6();o=Or(()=>Dr(()=>s,s6,(d,p)=>{}),void 0,void 0);const a=o[0],l=v.useState(!1);let u;if(a.tag===0){const d=a.fields[0],p=()=>{l[0]||l[1](!0)},h=l6(d),m=u6(w=>hv(e.backendUrl,w),p,o[1],d);u=c("div",g(y([["className","flex flex-col h-full"],(t=[c("div",g(y([["className","flex flex-row justify-between px-12 pt-8 pb-4"],(n=[c("span",{className:"font-sonoma text-gray-900 font-bold text-lg",children:"Import Users from CSV"}),c("button",g(y([(r="bg-white hover:bg-gray-50 rounded-md text-red-700 shadow-sm text-sm border border-gray-300 font-medium px-3 py-2 w-[120px]",["className",r]),["onClick",w=>{p()}],["type","button"],["children",v.Children.toArray(["Cancel import"])]])))],["children",v.Children.toArray(Array.from(n))])]))),c("div",g(y([["className","flex flex-row items-center px-12 gap-2 border-b border-gray-200"],(i=[jo("1. Upload CSV",h.UploadingCsv),c("hr",{className:"w-16 pt-1.5"}),jo("2. Map fields",h.MappingColumns),c("hr",{className:"w-16 pt-1.5"}),jo("3. Map values",h.MappingEmploymentBasis),c("hr",{className:"w-16 pt-1.5"}),jo("4. Review",h.Reviewing)],["children",v.Children.toArray(Array.from(i))])]))),m],["children",v.Children.toArray(Array.from(t))])])))}else{const d=a.fields[0][0].DataRows;u=a6(a.fields[0][0].Name,a.fields[0][0].HeaderRow,d,a.fields[0][1],a.fields[0][2],a.fields[0][3])}const f=[c("style",{children:[Tl]}),u];return c(Ue,{},...f)}function d6(){yl(e=>c(c6,e),"apollo-import-workspace-wizard")}yl(e=>c(Lg,e),"apollo-import-workspace-app");M_();d6();
|