@flarehr/apollo-workplace-policies 0.1.157 → 0.1.160
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.
- package/dist/workplace-policies.js +14 -14
- package/package.json +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();var Nt,S,Mo,Ze,Cr,Po,Rn,Oo,ut={},Ao=[],Di=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,dn=Array.isArray;function Ie(e,t){for(var n in t)e[n]=t[n];return e}function Ro(e){var t=e.parentNode;t&&t.removeChild(e)}function k(e,t,n){var r,o,s,i={};for(s in t)s=="key"?r=t[s]:s=="ref"?o=t[s]:i[s]=t[s];if(arguments.length>2&&(i.children=arguments.length>3?Nt.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(s in e.defaultProps)i[s]===void 0&&(i[s]=e.defaultProps[s]);return Tt(e,i,r,o,null)}function Tt(e,t,n,r,o){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:o??++Mo};return o==null&&S.vnode!=null&&S.vnode(s),s}function No(){return{current:null}}function ve(e){return e.children}function ye(e,t){this.props=e,this.context=t}function Qt(e,t){if(t==null)return e.__?Qt(e.__,e.__.__k.indexOf(e)+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"?Qt(e):null}function Fo(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 Fo(e)}}function Nn(e){(!e.__d&&(e.__d=!0)&&Ze.push(e)&&!en.__r++||Cr!==S.debounceRendering)&&((Cr=S.debounceRendering)||Po)(en)}function en(){var e,t,n,r,o,s,i,u,c;for(Ze.sort(Rn);e=Ze.shift();)e.__d&&(t=Ze.length,r=void 0,o=void 0,s=void 0,u=(i=(n=e).__v).__e,(c=n.__P)&&(r=[],o=[],(s=Ie({},i)).__v=i.__v+1,Kn(c,i,s,n.__n,c.ownerSVGElement!==void 0,i.__h!=null?[u]:null,r,u??Qt(i),i.__h,o),Ho(r,i,o),i.__e!=u&&Fo(i)),Ze.length>t&&Ze.sort(Rn));en.__r=0}function Do(e,t,n,r,o,s,i,u,c,a,f){var l,_,h,d,m,w,g,v,x,B,D=0,Y=r&&r.__k||Ao,Ge=Y.length,ze=Ge,X=t.length;for(n.__k=[],l=0;l<X;l++)(d=n.__k[l]=(d=t[l])==null||typeof d=="boolean"||typeof d=="function"?null:typeof d=="string"||typeof d=="number"||typeof d=="bigint"?Tt(null,d,null,null,d):dn(d)?Tt(ve,{children:d},null,null,null):d.__b>0?Tt(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)!=null&&(d.__=n,d.__b=n.__b+1,(v=Vi(d,Y,g=l+D,ze))===-1?h=ut:(h=Y[v]||ut,Y[v]=void 0,ze--),Kn(e,d,h,o,s,i,u,c,a,f),m=d.__e,(_=d.ref)&&h.ref!=_&&(h.ref&&Yn(h.ref,null,d),f.push(_,d.__c||m,d)),m!=null&&(w==null&&(w=m),B=!(x=h===ut||h.__v===null)&&v===g,x?v==-1&&D--:v!==g&&(v===g+1?(D++,B=!0):v>g?ze>X-g?(D+=v-g,B=!0):D--:D=v<g&&v==g-1?v-g:0),g=l+D,B=B||v==l&&!x,typeof d.type!="function"||v===g&&h.__k!==d.__k?typeof d.type=="function"||B?d.__d!==void 0?(c=d.__d,d.__d=void 0):c=m.nextSibling:c=Lo(e,m,c):c=Vo(d,c,e),typeof n.type=="function"&&(n.__d=c)));for(n.__e=w,l=Ge;l--;)Y[l]!=null&&(typeof n.type=="function"&&Y[l].__e!=null&&Y[l].__e==n.__d&&(n.__d=Y[l].__e.nextSibling),jo(Y[l],Y[l]))}function Vo(e,t,n){for(var r,o=e.__k,s=0;o&&s<o.length;s++)(r=o[s])&&(r.__=e,t=typeof r.type=="function"?Vo(r,t,n):Lo(n,r.__e,t));return t}function Me(e,t){return t=t||[],e==null||typeof e=="boolean"||(dn(e)?e.some(function(n){Me(n,t)}):t.push(e)),t}function Lo(e,t,n){return n==null||n.parentNode!==e?e.insertBefore(t,null):t==n&&t.parentNode!=null||e.insertBefore(t,n),t.nextSibling}function Vi(e,t,n,r){var o=e.key,s=e.type,i=n-1,u=n+1,c=t[n];if(c===null||c&&o==c.key&&s===c.type)return n;if(r>(c!=null?1:0))for(;i>=0||u<t.length;){if(i>=0){if((c=t[i])&&o==c.key&&s===c.type)return i;i--}if(u<t.length){if((c=t[u])&&o==c.key&&s===c.type)return u;u++}}return-1}function Li(e,t,n,r,o){var s;for(s in n)s==="children"||s==="key"||s in t||tn(e,s,null,n[s],r);for(s in t)o&&typeof t[s]!="function"||s==="children"||s==="key"||s==="value"||s==="checked"||n[s]===t[s]||tn(e,s,t[s],n[s],r)}function Er(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Di.test(t)?n:n+"px"}function tn(e,t,n,r,o){var s;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||Er(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Er(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")s=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?r||e.addEventListener(t,s?kr:xr,s):e.removeEventListener(t,s?kr:xr,s);else if(t!=="dangerouslySetInnerHTML"){if(o)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 in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function xr(e){return this.l[e.type+!1](S.event?S.event(e):e)}function kr(e){return this.l[e.type+!0](S.event?S.event(e):e)}function Kn(e,t,n,r,o,s,i,u,c,a){var f,l,_,h,d,m,w,g,v,x,B,D,Y,Ge,ze,X=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(c=n.__h,u=t.__e=n.__e,t.__h=null,s=[u]),(f=S.__b)&&f(t);try{e:if(typeof X=="function"){if(g=t.props,v=(f=X.contextType)&&r[f.__c],x=f?v?v.props.value:f.__:r,n.__c?w=(l=t.__c=n.__c).__=l.__E:("prototype"in X&&X.prototype.render?t.__c=l=new X(g,x):(t.__c=l=new ye(g,x),l.constructor=X,l.render=ji),v&&v.sub(l),l.props=g,l.state||(l.state={}),l.context=x,l.__n=r,_=l.__d=!0,l.__h=[],l._sb=[]),l.__s==null&&(l.__s=l.state),X.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=Ie({},l.__s)),Ie(l.__s,X.getDerivedStateFromProps(g,l.__s))),h=l.props,d=l.state,l.__v=t,_)X.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(X.getDerivedStateFromProps==null&&g!==h&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(g,x),!l.__e&&(l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(g,l.__s,x)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(l.props=g,l.state=l.__s,l.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(zt){zt&&(zt.__=t)}),B=0;B<l._sb.length;B++)l.__h.push(l._sb[B]);l._sb=[],l.__h.length&&i.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(g,l.__s,x),l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(h,d,m)})}if(l.context=x,l.props=g,l.__P=e,l.__e=!1,D=S.__r,Y=0,"prototype"in X&&X.prototype.render){for(l.state=l.__s,l.__d=!1,D&&D(t),f=l.render(l.props,l.state,l.context),Ge=0;Ge<l._sb.length;Ge++)l.__h.push(l._sb[Ge]);l._sb=[]}else do l.__d=!1,D&&D(t),f=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++Y<25);l.state=l.__s,l.getChildContext!=null&&(r=Ie(Ie({},r),l.getChildContext())),_||l.getSnapshotBeforeUpdate==null||(m=l.getSnapshotBeforeUpdate(h,d)),Do(e,dn(ze=f!=null&&f.type===ve&&f.key==null?f.props.children:f)?ze:[ze],t,n,r,o,s,i,u,c,a),l.base=t.__e,t.__h=null,l.__h.length&&i.push(l),w&&(l.__E=l.__=null)}else s==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Hi(n.__e,t,n,r,o,s,i,c,a);(f=S.diffed)&&f(t)}catch(zt){t.__v=null,(c||s!=null)&&(t.__e=u,t.__h=!!c,s[s.indexOf(u)]=null),S.__e(zt,t,n)}}function Ho(e,t,n){for(var r=0;r<n.length;r++)Yn(n[r],n[++r],n[++r]);S.__c&&S.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(s){s.call(o)})}catch(s){S.__e(s,o.__v)}})}function Hi(e,t,n,r,o,s,i,u,c){var a,f,l,_=n.props,h=t.props,d=t.type,m=0;if(d==="svg"&&(o=!0),s!=null){for(;m<s.length;m++)if((a=s[m])&&"setAttribute"in a==!!d&&(d?a.localName===d:a.nodeType===3)){e=a,s[m]=null;break}}if(e==null){if(d===null)return document.createTextNode(h);e=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,h.is&&h),s=null,u=!1}if(d===null)_===h||u&&e.data===h||(e.data=h);else{if(s=s&&Nt.call(e.childNodes),f=(_=n.props||ut).dangerouslySetInnerHTML,l=h.dangerouslySetInnerHTML,!u){if(s!=null)for(_={},m=0;m<e.attributes.length;m++)_[e.attributes[m].name]=e.attributes[m].value;(l||f)&&(l&&(f&&l.__html==f.__html||l.__html===e.innerHTML)||(e.innerHTML=l&&l.__html||""))}if(Li(e,h,_,o,u),l)t.__k=[];else if(Do(e,dn(m=t.props.children)?m:[m],t,n,r,o&&d!=="foreignObject",s,i,s?s[0]:n.__k&&Qt(n,0),u,c),s!=null)for(m=s.length;m--;)s[m]!=null&&Ro(s[m]);u||("value"in h&&(m=h.value)!==void 0&&(m!==e.value||d==="progress"&&!m||d==="option"&&m!==_.value)&&tn(e,"value",m,_.value,!1),"checked"in h&&(m=h.checked)!==void 0&&m!==e.checked&&tn(e,"checked",m,_.checked,!1))}return e}function Yn(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){S.__e(r,n)}}function jo(e,t,n){var r,o;if(S.unmount&&S.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Yn(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){S.__e(s,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&jo(r[o],t,n||typeof e.type!="function");n||e.__e==null||Ro(e.__e),e.__=e.__e=e.__d=void 0}function ji(e,t,n){return this.constructor(e,n)}function He(e,t,n){var r,o,s,i;S.__&&S.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,s=[],i=[],Kn(t,e=(!r&&n||t).__k=k(ve,null,[e]),o||ut,ut,t.ownerSVGElement!==void 0,!r&&n?[n]:o?null:t.firstChild?Nt.call(t.childNodes):null,s,!r&&n?n:o?o.__e:t.firstChild,r,i),Ho(s,e,i)}function Xn(e,t){He(e,t,Xn)}function Qn(e,t,n){var r,o,s,i,u=Ie({},e.props);for(s in e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)s=="key"?r=t[s]:s=="ref"?o=t[s]:u[s]=t[s]===void 0&&i!==void 0?i[s]:t[s];return arguments.length>2&&(u.children=arguments.length>3?Nt.call(arguments,2):n),Tt(e.type,u,r||e.key,o||e.ref,null)}function Uo(e,t){var n={__c:t="__cC"+Oo++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,s;return this.getChildContext||(o=[],(s={})[t]=this,this.getChildContext=function(){return s},this.shouldComponentUpdate=function(i){this.props.value!==i.value&&o.some(function(u){u.__e=!0,Nn(u)})},this.sub=function(i){o.push(i);var u=i.componentWillUnmount;i.componentWillUnmount=function(){o.splice(o.indexOf(i),1),u&&u.call(i)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}Nt=Ao.slice,S={__e:function(e,t,n,r){for(var o,s,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((s=o.constructor)&&s.getDerivedStateFromError!=null&&(o.setState(s.getDerivedStateFromError(e)),i=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),i=o.__d),i)return o.__E=o}catch(u){e=u}throw e}},Mo=0,ye.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Ie({},this.state),typeof e=="function"&&(e=e(Ie({},n),this.props)),e&&Ie(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Nn(this))},ye.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Nn(this))},ye.prototype.render=ve,Ze=[],Po=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Rn=function(e,t){return e.__v.__b-t.__v.__b},en.__r=0,Oo=0;var Pe,P,xn,Tr,ht=0,Bo=[],Kt=[],$r=S.__b,Ir=S.__r,Mr=S.diffed,Pr=S.__c,Or=S.unmount;function Qe(e,t){S.__h&&S.__h(P,e,ht||t),ht=0;var n=P.__H||(P.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Kt}),n.__[e]}function Ft(e){return ht=1,er(Ko,e)}function er(e,t,n){var r=Qe(Pe++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Ko(void 0,t),function(u){var c=r.__N?r.__N[0]:r.__[0],a=r.t(c,u);c!==a&&(r.__N=[a,r.__[1]],r.__c.setState({}))}],r.__c=P,!P.u)){var o=function(u,c,a){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(_){return _.__c});if(f.every(function(_){return!_.__N}))return!s||s.call(this,u,c,a);var l=!1;return f.forEach(function(_){if(_.__N){var h=_.__[0];_.__=_.__N,_.__N=void 0,h!==_.__[0]&&(l=!0)}}),!(!l&&r.__c.props===u)&&(!s||s.call(this,u,c,a))};P.u=!0;var s=P.shouldComponentUpdate,i=P.componentWillUpdate;P.componentWillUpdate=function(u,c,a){if(this.__e){var f=s;s=void 0,o(u,c,a),s=f}i&&i.call(this,u,c,a)},P.shouldComponentUpdate=o}return r.__N||r.__}function hn(e,t){var n=Qe(Pe++,3);!S.__s&&tr(n.__H,t)&&(n.__=e,n.i=t,P.__H.__h.push(n))}function Dt(e,t){var n=Qe(Pe++,4);!S.__s&&tr(n.__H,t)&&(n.__=e,n.i=t,P.__h.push(n))}function Go(e){return ht=5,pn(function(){return{current:e}},[])}function zo(e,t,n){ht=6,Dt(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 pn(e,t){var n=Qe(Pe++,7);return tr(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Wo(e,t){return ht=8,pn(function(){return e},t)}function qo(e){var t=P.context[e.__c],n=Qe(Pe++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(P)),t.props.value):e.__}function Zo(e,t){S.useDebugValue&&S.useDebugValue(t?t(e):e)}function Ui(e){var t=Qe(Pe++,10),n=Ft();return t.__=e,P.componentDidCatch||(P.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Jo(){var e=Qe(Pe++,11);if(!e.__){for(var t=P.__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 Bi(){for(var e;e=Bo.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Yt),e.__H.__h.forEach(Fn),e.__H.__h=[]}catch(t){e.__H.__h=[],S.__e(t,e.__v)}}S.__b=function(e){P=null,$r&&$r(e)},S.__r=function(e){Ir&&Ir(e),Pe=0;var t=(P=e.__c).__H;t&&(xn===P?(t.__h=[],P.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Kt,n.__N=n.i=void 0})):(t.__h.forEach(Yt),t.__h.forEach(Fn),t.__h=[],Pe=0)),xn=P},S.diffed=function(e){Mr&&Mr(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Bo.push(t)!==1&&Tr===S.requestAnimationFrame||((Tr=S.requestAnimationFrame)||Gi)(Bi)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Kt&&(n.__=n.__V),n.i=void 0,n.__V=Kt})),xn=P=null},S.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Yt),n.__h=n.__h.filter(function(r){return!r.__||Fn(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],S.__e(r,n.__v)}}),Pr&&Pr(e,t)},S.unmount=function(e){Or&&Or(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Yt(r)}catch(o){t=o}}),n.__H=void 0,t&&S.__e(t,n.__v))};var Ar=typeof requestAnimationFrame=="function";function Gi(e){var t,n=function(){clearTimeout(r),Ar&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Ar&&(t=requestAnimationFrame(n))}function Yt(e){var t=P,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),P=t}function Fn(e){var t=P;e.__c=e.__(),P=t}function tr(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Ko(e,t){return typeof t=="function"?t(e):t}function Yo(e,t){for(var n in t)e[n]=t[n];return e}function Dn(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 kn(e,t){return e===t&&(e!==0||1/e==1/t)||e!=e&&t!=t}function nn(e){this.props=e}function Xo(e,t){function n(o){var s=this.props.ref,i=s==o.ref;return!i&&s&&(s.call?s(null):s.current=null),t?!t(this.props,o)||!i:Dn(this.props,o)}function r(o){return this.shouldComponentUpdate=n,k(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(nn.prototype=new ye).isPureReactComponent=!0,nn.prototype.shouldComponentUpdate=function(e,t){return Dn(this.props,e)||Dn(this.state,t)};var Rr=S.__b;S.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Rr&&Rr(e)};var zi=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Qo(e){function t(n){var r=Yo({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=zi,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Nr=function(e,t){return e==null?null:Me(Me(e).map(t))},es={map:Nr,forEach:Nr,count:function(e){return e?Me(e).length:0},only:function(e){var t=Me(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Me},Wi=S.__e;S.__e=function(e,t,n,r){if(e.then){for(var o,s=t;s=s.__;)if((o=s.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}Wi(e,t,n,r)};var Fr=S.unmount;function ts(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=Yo({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return ts(r,t,n)})),e}function ns(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return ns(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function $t(){this.__u=0,this.t=null,this.__b=null}function rs(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function os(e){var t,n,r;function o(s){if(t||(t=e()).then(function(i){n=i.default||i},function(i){r=i}),r)throw r;if(!n)throw t;return k(n,s)}return o.displayName="Lazy",o.__f=!0,o}function ot(){this.u=null,this.o=null}S.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),Fr&&Fr(e)},($t.prototype=new ye).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=rs(r.__v),s=!1,i=function(){s||(s=!0,n.__R=null,o?o(u):u())};n.__R=i;var u=function(){if(!--r.__u){if(r.state.__a){var a=r.state.__a;r.__v.__k[0]=ns(a,a.__c.__P,a.__c.__O)}var f;for(r.setState({__a:r.__b=null});f=r.t.pop();)f.forceUpdate()}},c=t.__h===!0;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(i,i)},$t.prototype.componentWillUnmount=function(){this.t=[]},$t.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]=ts(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&k(ve,null,e.fallback);return o&&(o.__h=null),[k(ve,null,t.__a?null:e.children),o]};var Dr=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function qi(e){return this.getChildContext=function(){return e.context},e.children}function Zi(e){var t=this,n=e.i;t.componentWillUnmount=function(){He(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),He(k(qi,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function ss(e,t){var n=k(Zi,{__v:e,i:t});return n.containerInfo=t,n}(ot.prototype=new ye).__a=function(e){var t=this,n=rs(t.__v),r=t.o.get(e);return r[0]++,function(o){var s=function(){t.props.revealOrder?(r.push(o),Dr(t,e,r)):o()};n?n(s):s()}},ot.prototype.render=function(e){this.u=null,this.o=new Map;var t=Me(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},ot.prototype.componentDidUpdate=ot.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){Dr(e,n,t)})};var is=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Ji=/^(?: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]/,Ki=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Yi=/[A-Z0-9]/g,Xi=typeof document<"u",Qi=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function us(e,t,n){return t.__k==null&&(t.textContent=""),He(e,t),typeof n=="function"&&n(),e?e.__c:null}function ls(e,t,n){return Xn(e,t),typeof n=="function"&&n(),e?e.__c:null}ye.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ye.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Vr=S.event;function eu(){}function tu(){return this.cancelBubble}function nu(){return this.defaultPrevented}S.event=function(e){return Vr&&(e=Vr(e)),e.persist=eu,e.isPropagationStopped=tu,e.isDefaultPrevented=nu,e.nativeEvent=e};var nr,ru={enumerable:!1,configurable:!0,get:function(){return this.class}},Lr=S.vnode;S.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={};for(var s in n){var i=n[s];if(!(s==="value"&&"defaultValue"in n&&i==null||Xi&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var u=s.toLowerCase();s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&i===!0?i="":u==="ondoubleclick"?s="ondblclick":u!=="onchange"||r!=="input"&&r!=="textarea"||Qi(n.type)?u==="onfocus"?s="onfocusin":u==="onblur"?s="onfocusout":Ki.test(s)?s=u:r.indexOf("-")===-1&&Ji.test(s)?s=s.replace(Yi,"-$&").toLowerCase():i===null&&(i=void 0):u=s="oninput",u==="oninput"&&o[s=u]&&(s="oninputCapture"),o[s]=i}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=Me(n.children).forEach(function(c){c.props.selected=o.value.indexOf(c.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=Me(n.children).forEach(function(c){c.props.selected=o.multiple?o.defaultValue.indexOf(c.props.value)!=-1:o.defaultValue==c.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",ru)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=is,Lr&&Lr(e)};var Hr=S.__r;S.__r=function(e){Hr&&Hr(e),nr=e.__c};var jr=S.diffed;S.diffed=function(e){jr&&jr(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),nr=null};var cs={ReactCurrentDispatcher:{current:{readContext:function(e){return nr.__n[e.__c].props.value}}}},ou="17.0.2";function as(e){return k.bind(null,e)}function rr(e){return!!e&&e.$$typeof===is}function fs(e){return rr(e)?Qn.apply(null,arguments):e}function ds(e){return!!e.__k&&(He(null,e),!0)}function hs(e){return e&&(e.base||e.nodeType===1&&e)||null}var ps=function(e,t){return e(t)},_s=function(e,t){return e(t)},ms=ve;function or(e){e()}function ws(e){return e}function gs(){return[!1,or]}var ys=Dt;function bs(e,t){var n=t(),r=Ft({h:{__:n,v:t}}),o=r[0].h,s=r[1];return Dt(function(){o.__=n,o.v=t,kn(o.__,t())||s({h:o})},[e,n,t]),hn(function(){return kn(o.__,o.v())||s({h:o}),e(function(){kn(o.__,o.v())||s({h:o})})},[e]),n}var Ss={useState:Ft,useId:Jo,useReducer:er,useEffect:hn,useLayoutEffect:Dt,useInsertionEffect:ys,useTransition:gs,useDeferredValue:ws,useSyncExternalStore:bs,startTransition:or,useRef:Go,useImperativeHandle:zo,useMemo:pn,useCallback:Wo,useContext:qo,useDebugValue:Zo,version:"17.0.2",Children:es,render:us,hydrate:ls,unmountComponentAtNode:ds,createPortal:ss,createElement:k,createContext:Uo,createFactory:as,cloneElement:fs,createRef:No,Fragment:ve,isValidElement:rr,findDOMNode:hs,Component:ye,PureComponent:nn,memo:Xo,forwardRef:Qo,flushSync:_s,unstable_batchedUpdates:ps,StrictMode:ms,Suspense:$t,SuspenseList:ot,lazy:os,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:cs};const su=Object.freeze(Object.defineProperty({__proto__:null,Children:es,Component:ye,Fragment:ve,PureComponent:nn,StrictMode:ms,Suspense:$t,SuspenseList:ot,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:cs,cloneElement:fs,createContext:Uo,createElement:k,createFactory:as,createPortal:ss,createRef:No,default:Ss,findDOMNode:hs,flushSync:_s,forwardRef:Qo,hydrate:ls,isValidElement:rr,lazy:os,memo:Xo,render:us,startTransition:or,unmountComponentAtNode:ds,unstable_batchedUpdates:ps,useCallback:Wo,useContext:qo,useDebugValue:Zo,useDeferredValue:ws,useEffect:hn,useErrorBoundary:Ui,useId:Jo,useImperativeHandle:zo,useInsertionEffect:ys,useLayoutEffect:Dt,useMemo:pn,useReducer:er,useRef:Go,useState:Ft,useSyncExternalStore:bs,useTransition:gs,version:ou},Symbol.toStringTag,{value:"Module"}));function Ce(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function iu(e){return e!=null&&typeof e.GetEnumerator=="function"}function uu(e){return e!=null&&typeof e.CompareTo=="function"}function lu(e){return e!=null&&typeof e.Equals=="function"}function cu(e){return e!=null&&typeof e.GetHashCode=="function"}function Vn(e){return e!=null&&typeof e.Dispose=="function"}function R(e){Vn(e)&&e.Dispose()}function Ee(){return null}function rn(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 au{constructor(t){this.iter=t,this.current=Ee()}"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 j(e){return iu(e)?e.GetEnumerator():new au(e[Symbol.iterator]())}function _n(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 fu{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 te(e,t){let n=e.toString(10);for(;n.length<t;)n="0"+n;return n}function du(e,t,n){let r=e.toString(10);for(;r.length<t;)r="0"+r;for(;r.length<n;)r=r+"0";return r}function Ur(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function hu(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function Ye(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class Fe{static id(t){return Fe.idMap.has(t)||Fe.idMap.set(t,++Fe.count),Fe.idMap.get(t)}}Fe.idMap=new WeakMap;Fe.count=0;function sr(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function Te(e){return e*2654435761|0}function pu(e){return sr(e.toString(32))}function Vt(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 _u(e){return e.getTime()}function mu(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=Oe(e[r]);return Vt(n)}function Oe(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Te(e);case"bigint":return pu(e);case"string":return sr(e);default:{if(cu(e))return e.GetHashCode();if(Ce(e))return mu(e);if(e instanceof Date)return _u(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>Oe(r));return Vt(n)}else return Te(Fe.id(e))}}}function Ln(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 vs(e,t){return Ln(e,t,ee)}function wu(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]||!ee(e[n[o]],t[r[o]]))return!1;return!0}function ee(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:lu(e)?e.Equals(t):Ce(e)?Ce(t)&&vs(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&Cs(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&wu(e,t)}function Cs(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+Ur(e),r=t.getTime()+Ur(t)),n===r?0:n<r?-1:1}function mn(e,t){return e===t?0:e<t?-1:1}function gu(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 Es(e,t){return gu(e,t,he)}function yu(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,s=0;o<n.length;o++){const i=n[o];if(i!==r[o])return i<r[o]?-1:1;if(s=he(e[i],t[i]),s!==0)return s}return 0}function he(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:uu(e)?e.CompareTo(t):Ce(e)?Ce(t)?Es(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?Cs(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?yu(e,t):-1}function lt(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function bu(e){Ce(e)?e.splice(0):e.clear()}const wn=new WeakMap;function F(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return wn.set(t,e),t}function Je(e){return wn.get(e)??(t=>n=>e(t,n))}function Hn(e){if(e==null)return null;const t=(n,r,o)=>e(n)(r)(o);return wn.set(t,e),t}function Tn(e){return wn.get(e)??(t=>n=>r=>e(t,n,r))}function Su(e){let t=0,n="[";for(const r of e){if(t===0)n+=be(r);else if(t===100){n+="; ...";break}else n+="; "+be(r);t++}return n+"]"}function be(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 Su(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([o,s])=>o+" = "+be(s,t+1)).join(`
|
|
2
|
-
`)+" }":(r==null?void 0:r.name)??""}}return String(e)}function
|
|
3
|
-
`)+" }"}function xu(e){const t=Object.values(e).map(n=>Oe(n));return Vt(t)}function ku(e,t){if(e===t)return!0;if(rn(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!ee(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function Tu(e,t){if(e===t)return 0;if(rn(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=he(e[n[r]],t[n[r]]);if(o!==0)return o}return 0}else return-1}class pe{toJSON(){return Cu(this)}toString(){return Eu(this)}GetHashCode(){return xu(this)}Equals(t){return ku(this,t)}CompareTo(t){return Tu(this,t)}}class re{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 $u{constructor(t){this.message=t}}function Iu(e){return e instanceof $u||e instanceof Error}function Mu(e){return e instanceof Promise}function on(e){return Iu(e)||Mu(e)?e:new Error(String(e))}const yt=Symbol("numeric");function xs(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[yt])}function Pu(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function jn(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[yt]().multiply(t)}function Xt(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[yt]().toFixed(t)}function sn(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[yt]().toPrecision(t)}function un(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[yt]().toExponential(t)}function ln(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[yt]().toHex()}class Ou{constructor(t,n,r,o){this.declaringType=t,this.tag=n,this.name=r,this.fields=o}}class Se{constructor(t,n,r,o,s,i,u){this.fullname=t,this.generics=n,this.construct=r,this.parent=o,this.fields=s,this.cases=i,this.enumCases=u}toString(){return A(this)}GetHashCode(){return ks(this)}Equals(t){return Un(this,t)}}function ie(e){return e.generics!=null?e.generics:[]}function ks(e){const t=sr(e.fullname),n=ie(e).map(ks);return Vt([t,...n])}function Un(e,t){return e.fullname===""?t.fullname===""&&Ln(Pt(e),Pt(t),([n,r],[o,s])=>n===o&&Un(r,s)):e.fullname===t.fullname&&Ln(ie(e),ie(t),Un)}function ir(e,t,n,r){return new Se(e,t,n,void 0,r)}function Br(...e){return new Se("",void 0,void 0,void 0,()=>e)}function Ts(e,t,n,r){const o=new Se(e,t,n,void 0,void 0,()=>{const s=n.prototype.cases();return r().map((i,u)=>new Ou(o,u,s[u],i))});return o}function Au(e){return new Se("Microsoft.FSharp.Collections.FSharpList`1",[e])}const $s=new Se("System.Object"),It=new Se("System.String"),Ru=new Se("System.Int32");function ct(e){if(Array.isArray(e))return e[0];if(e instanceof Se){const t=Lt(e);if(t!=null)return ct(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function A(e){const t=Lt(e);return t!=null?A(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>A(n)).join(",")+"]"}function Is(e){return Lt(e)!=null}function Lt(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function Ms(e){return e.generics!=null&&e.generics.length>0}function ur(e){return e.enumCases!=null&&e.enumCases.length>0}function Ps(e){return e.generics==null?e:new Se(e.fullname,e.generics.map(()=>$s))}function Os(e){var t;return(t=e.generics)==null?void 0:t[0]}function et(e){if(ur(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function Nu(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 tt(e,t){const n=parseInt(t,10);return Nu(e,isNaN(n)?t:n)[1]}function As(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Pt(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Rs(e){if(lr(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Ns(e){return e instanceof Se?e.cases!=null:e instanceof U}function Fs(e){return e instanceof Se?e.fields!=null:e instanceof pe}function lr(e){return e.fullname.startsWith("System.Tuple")}function Fu(e,t){const r=As(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function Ds(e){return e.fields==null?[]:e.fields}function Du(e,t){return e[t[0]]}function Vu(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 Lu(e,t){const n=Pt(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,s],i)=>(r[o]=t[i],r),{})}function Hu(e,t){return e}class ju{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 cr extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,cr.prototype)}}class ar{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>ar.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function De(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new cr);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(on(n))}});else try{e(t)}catch(n){t.onError(on(n))}}}function Uu(e,t){return De(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(o){n.onError(on(o))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function Bu(e){return De(t=>t.onSuccess(e))}class Gu{Bind(t,n){return Uu(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return De(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let o=r.next();return this.While(()=>!o.done,this.Delay(()=>{const s=n(o.value);return o=r.next(),s}))}Return(t){return Bu(t)}ReturnFrom(t){return t}TryFinally(t,n){return De(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 De(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:o=>{try{n(o)(r)}catch(s){r.onError(on(s))}}})})}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 De(t=>t.onSuccess(void 0))}}const G=new Gu;class pt{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return Oe(this.value)}Equals(t){return t==null?!1:ee(this.value,t instanceof pt?t.value:t)}CompareTo(t){return t==null?1:he(this.value,t instanceof pt?t.value:t)}}function y(e){if(e==null)throw new Error("Option has no value");return e instanceof pt?e.value:e}function ne(e){return e==null||e instanceof pt?new pt(e):e}function Bn(e,t){return e!=null?y(e):t}function zu(e,t){return e!=null?y(e):t()}function Wu(e,t){return t!=null?ne(e(y(t))):void 0}function qu(e){return new p(0,[e])}function Vs(e){return new p(1,[e])}class p extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function de(e,t){return t.tag===0?qu(e(t.fields[0])):Vs(t.fields[0])}function Zu(e,t){return t.tag===0?e(t.fields[0]):Vs(t.fields[0])}function Ju(e){return new Ls(0,[e])}function Ku(e){return new Ls(1,[e])}class Ls extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function Yu(e){return Ju(e)}function Xu(e){return Ku(e)}function $n(e){}const Qu=new ju;function el(e){return De(t=>{e({onSuccess:n=>t.onSuccess(Yu(n)),onError:n=>t.onSuccess(Xu(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function tl(e){return De(t=>e([t.onSuccess,t.onError,t.onCancel]))}function nl(e,t){return ol(e,t)}function rl(e,t){return nl(e,t)}function ol(e,t,n,r,o){typeof t!="function"&&(o=t,t=void 0);const s=new ar;e({onSuccess:t||$n,onError:n||$n,onCancel:r||$n,cancelToken:o||Qu,trampoline:s})}class fr extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class Hs extends U{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class js extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class Ht extends pe{constructor(t,n,r,o,s,i,u,c){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=o,this.overridenMimeType=s,this.overridenResponseType=i,this.timeout=u,this.content=c}}class rt extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Us extends pe{constructor(t,n,r,o,s,i){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=o,this.responseHeaders=s,this.content=i}}function dr(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+te(n,2)+":"+te(r,2)}function cn(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 sl(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return te(e.getFullYear(),4)+"-"+te(e.getMonth()+1,2)+"-"+te(e.getDate(),2)+"T"+te(e.getHours(),2)+":"+te(e.getMinutes(),2)+":"+te(e.getSeconds(),2)+"."+te(e.getMilliseconds(),3)+(n?dr(e.getTimezoneOffset()*-6e4):"")}}function il(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+dr(t)}function Bs(e,t,n){return t.replace(/(\w)\1*/g,r=>{let o=Number.NaN;switch(r.substring(0,1)){case"y":const s=n?e.getUTCFullYear():e.getFullYear();o=r.length<4?s%100:s;break;case"M":o=(n?e.getUTCMonth():e.getMonth())+1;break;case"d":o=n?e.getUTCDate():e.getDate();break;case"H":o=n?e.getUTCHours():e.getHours();break;case"h":const i=n?e.getUTCHours():e.getHours();o=i>12?i%12:i;break;case"m":o=n?e.getUTCMinutes():e.getMinutes();break;case"s":o=n?e.getUTCSeconds():e.getSeconds();break;case"f":o=n?e.getUTCMilliseconds():e.getMilliseconds();break}return Number.isNaN(o)?r:te(o,r.length)})}function ul(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," ")+dr(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return cn(n,"first");case"T":case"t":return cn(n,"second");case"O":case"o":return il(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return Bs(n,t,!0)}function ll(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?cn(e,"first"):e.toLocaleDateString();case"T":case"t":return n?cn(e,"second"):e.toLocaleTimeString();case"O":case"o":return sl(e,n);default:throw new Error("Unrecognized Date print format")}else return Bs(e,t,n)}function gn(e,t,n){return e.offset!=null?ul(e,t):ll(e,t)}function hr(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function cl(){return hr(-621355968e5,0)}function Gs(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 s,i=0;if(o[2]!=null){const u=o[2].split(":");i=parseInt(u[0],10)*3600+parseInt(u[1]||"0",10)*60+parseFloat(u[2]||"0"),o[3]!=null&&o[3].toUpperCase()==="PM"&&(i+=720)}if(o[4]!=null){if(o[1]!=null)s=new Date(o[1]+" UTC");else{const u=new Date;s=new Date(u.getUTCFullYear()+"/"+(u.getUTCMonth()+1)+"/"+u.getUTCDate())}if(o[4]==="Z")r="Z";else{let u=parseInt(o[5],10)*60+parseInt(o[6]||"0",10);o[4][0]==="-"&&(u*=-1),r=u,i-=u*60}}else if(o[1]!=null)s=new Date(o[1]);else{const u=new Date;s=new Date(u.getFullYear()+"/"+(u.getMonth()+1)+"/"+u.getDate())}n=new Date(s.getTime()+i*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-s.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function al(e,t=!1){const[n,r]=Gs(e),o=r!=null?t&&r==="Z"?1:2:0;return hr(n.getTime(),o)}function fl(e,t){try{return t.contents=al(e),!0}catch{return!1}}function dl(e){return e.kind===1?e:hr(e.getTime(),1)}function hl(e,t=0){if(t&-284)throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let n="gu";return n+=t&1?"i":"",n+=t&2?"m":"",n+=t&16?"s":"",new RegExp(e,n)}function zs(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Gr(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,s=-1;for(;(o=e.exec(t))!=null;)o.index===s?e.lastIndex++:(s=o.index,r.push(o));return r}function pl(e,t,n,r,o=0){function s(){let i=arguments[0];if(r){r--;const u=[],c=arguments.length,a=typeof arguments[c-1]!="string";let f=a?c-3:c-2;for(let l=0;l<f;l++)u.push(arguments[l]);u.index=arguments[f++],u.input=arguments[f++],a&&(u.groups=arguments[f]),i=n(u)}return i}if(typeof e=="string"){const i=e;e=hl(t,r??0),t=i,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,o)+t.substring(o).replace(e,s);if(n=n.replace(/\$0/g,i=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let i;const u=t.substring(o),c=Gr(e,u),a=Gr.length>r?(i=c[r-1],u.substring(0,i.index+i[0].length)):u;return t.substring(0,o)+a.replace(e,n)+t.substring(o+a.length)}else return t.replace(e,n)}const Ct=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,_l=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Ws(e,t){return Pu(e,t)<0}function je(e){return{input:e,cont:wl(e)}}function qs(e,t){return typeof t=="string"?e(t):t.cont(e)}function _t(e){return qs(t=>t,e)}function Zs(e){return qs(t=>{throw new Error(t)},e)}function ml(e,t,n,r,o){let s="";if(t=t||"",o=o||"",xs(e))switch(o.toLowerCase()!=="x"&&(Ws(e,0)?(e=jn(e,-1),s="-"):t.indexOf(" ")>=0?s=" ":t.indexOf("+")>=0&&(s="+")),r=r==null?null:parseInt(r,10),o){case"f":case"F":r=r??6,e=Xt(e,r);break;case"g":case"G":e=r!=null?sn(e,r):sn(e);break;case"e":case"E":e=r!=null?un(e,r):un(e);break;case"x":e=ln(e);break;case"X":e=ln(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=gn(e):e=be(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=s+e;else{const i=t.indexOf("0")>=0,u=t.indexOf("-")>=0,c=u||!i?" ":"0";c==="0"?(e=Ot(e,n-s.length,c,u),e=s+e):e=Ot(s+e,n,c,u)}return e}function Js(e,t,n,r="",o=-1){return(...s)=>{let i=r;const u=t.slice(),c=n.slice();for(const a of s){const[,,f,l,_,h]=c[0];let d=l;if(o>=0)d=o,o=-1;else if(d==="*"){if(a<0)throw new Error("Non-negative number required");o=a;continue}i+=u[0],i+=ml(a,f,d,_,h),u.splice(0,1),c.splice(0,1)}return c.length===0?(i+=u[0],e(i)):Js(e,u,c,i,o)}}function wl(e){return t=>{Ct.lastIndex=0;const n=[],r=[];let o=0,s=Ct.exec(e);for(;s;){const i=s.index+(s[1]||"").length;n.push(e.substring(o,i).replace(/%%/g,"%")),r.push(s),o=Ct.lastIndex,Ct.lastIndex-=1,s=Ct.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(o).replace(/%%/g,"%")),Js(t,n,r))}}function gl(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(_l,(r,o,s,i,u,c)=>{if(o<0||o>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let a=t[o];if(xs(a))switch(u=u==null?null:parseInt(u,10),i){case"f":case"F":u=u??2,a=Xt(a,u);break;case"g":case"G":a=u!=null?sn(a,u):sn(a);break;case"e":case"E":a=u!=null?un(a,u):un(a);break;case"p":case"P":u=u??2,a=Xt(jn(a,100),u)+" %";break;case"d":case"D":a=u!=null?In(String(a),u,"0"):String(a);break;case"x":case"X":a=u!=null?In(ln(a),u,"0"):ln(a),i==="X"&&(a=a.toUpperCase());break;default:if(c){let f="";a=c.replace(/([0#,]+)(\.[0#]+)?/,(l,_,h)=>{Ws(a,0)&&(a=jn(a,-1),f="-"),h=h==null?"":h.substring(1),a=Xt(a,Math.max(h.length,0));let[d,m]=a.split(".");m||(m="");const w=_.replace(/,/g,"").replace(/^#+/,"").length;d=In(d,w,"0");const g=h.replace(/#+$/,"").length;if(g>m.length?m=bl(m,g,"0"):g<m.length&&(m=m.substring(0,g)+m.substring(g).replace(/0+$/,"")),_.indexOf(",")>0){const v=d.length%3,x=Math.floor(d.length/3);let B=v>0?d.substr(0,v)+(x>0?",":""):"";for(let D=0;D<x;D++)B+=d.substr(v+D*3,3)+(D<x-1?",":"");d=B}return m.length>0?d+"."+m:d}),a=f+a}}else a instanceof Date?a=gn(a,c||i):a=be(a);return s=parseInt((s||" ").substring(1),10),isNaN(s)||(a=Ot(String(a),Math.abs(s)," ",s<0)),a})}function yl(e){return typeof e!="string"||e.length===0}function Ue(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Ot(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 In(e,t,n){return Ot(e,t,n)}function bl(e,t,n){return Ot(e,t,n,!0)}function Sl(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,s=(r&2)===2;t=t||[],t=t.filter(f=>f).map(zs),t=t.length>0?t:["\\s"];const i=[],u=new RegExp(t.join("|"),"g");let c=!0,a=0;do{const f=u.exec(e);if(f===null){const l=s?e.substring(a).trim():e.substring(a);(!o||l.length>0)&&i.push(l),c=!1}else{const l=s?e.substring(a,f.index).trim():e.substring(a,f.index);(!o||l.length>0)&&(n!=null&&i.length+1===n?(i.push(s?e.substring(a).trim():e.substring(a)),c=!1):i.push(l)),a=u.lastIndex}}while(c);return i}function vl(e,...t){if(t.length===0)return e.trim();const n="["+zs(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}const Ks="Collection was empty.";function Ys(e,t){return typeof e=="function"?new e(t):new Array(t)}function zr(e,t){return e>t?e:t}function yn(e,t,n,r){const o=t|0;return e.fill(r,o,o+n)}function bt(e,t,n){const r=t.length|0,o=Ys(n,r);for(let s=0;s<=r-1;s++)o[s]=e(t[s]);return o}function Cl(e,t){const n=Ys(t,1);return n[0]=e,n}function El(e){return e.slice().reverse()}function xl(e,t){return t.find(e)}function kl(e,t,n){const r=[];for(let o=0;o<=t.length-1;o++){const s=e(t[o]);if(s!=null){const i=y(s);r.push(i)}}return ee(n,Ee())?r:bt(o=>o,r,n)}function bn(e,t,n){return n.reduce(e,t)}function Xs(e,t,n){return t.reduceRight((r,o)=>e(o,r),n)}class ue extends pe{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+Ue("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((o,s)=>{e:for(;;){const i=o,u=s,c=i.tail,a=u.tail;if(c!=null)if(a!=null){const f=y(c),l=y(a);if(ee(i.head,u.head)){o=f,s=l;continue e}else return!1}else return!1;else return a==null}})(n,t)}GetHashCode(){return((r,o,s)=>{e:for(;;){const i=r,u=o,c=s,a=c.tail;if(a!=null){const f=y(a);if(i>18)return u|0;r=i+1,o=(u<<1)+Oe(c.head)+631*i,s=f;continue e}else return u|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((o,s)=>{e:for(;;){const i=o,u=s,c=i.tail,a=u.tail;if(c!=null)if(a!=null){const f=y(c),l=y(a),_=he(i.head,u.head)|0;if(_===0){o=f,s=l;continue e}else return _|0}else return 1;else return a!=null?-1:0}})(this,t)|0}GetEnumerator(){return $l(this)}[Symbol.iterator](){return _n(j(this))}"System.Collections.IEnumerable.GetEnumerator"(){return j(this)}}class Tl{constructor(t){this.xs=t,this.it=this.xs,this.current=Ee()}"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=y(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=Ee()}Dispose(){}}function $l(e){return new Tl(e)}function J(){return new ue(Ee(),void 0)}function jt(e,t){return new ue(e,t)}function pr(e){return e.tail==null}function Il(e){return((n,r)=>{e:for(;;){const o=n,i=r.tail;if(i!=null){n=o+1,r=y(i);continue e}else return o|0}})(0,e)|0}function Qs(e){if(e.tail!=null)return e.head;throw new Error(Ks+"\\nParameter name: list")}function Ae(e){const t=e.tail;if(t!=null)return y(t);throw new Error(Ks+"\\nParameter name: list")}function K(){return J()}function ce(e,t){return jt(e,t)}function xe(e){return jt(e,J())}function $(e){return pr(e)}function C(e){return Qs(e)}function T(e){return Ae(e)}function Ut(e){const t=Il(e)|0,n=yn(new Array(t),0,t,null);return((o,s)=>{e:for(;;){const i=o,u=s;if(!pr(u)){n[i]=Qs(u),o=i+1,s=Ae(u);continue e}break}})(0,e),n}function ke(e,t,n){let r=t,o=n;for(;!pr(o);)r=e(r,C(o)),o=Ae(o);return r}function _r(e){return ke((t,n)=>jt(n,t),J(),e)}function Ml(e,t,n){return Xs(e,Ut(t),n)}function an(e,t){ke((n,r)=>{e(r)},void 0,t)}function N(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=jt(e[r],n);return n}function ae(e){return N(e,J())}function Pl(e){let t,n;if(Ce(e))return ae(e);if(e instanceof ue)return e;{const r=J();let o=r;const s=j(e);try{for(;s["System.Collections.IEnumerator.MoveNext"]();){const c=s["System.Collections.Generic.IEnumerator`1.get_Current"]();o=(t=o,n=new ue(c,void 0),t.tail=n,n)}}finally{R(s)}const i=o,u=J();return i.tail=u,Ae(r)}}function mr(e,t){return ke((n,r)=>jt(r,n),t,_r(e))}function st(e,t){const n=J(),r=ke((s,i)=>{const u=new ue(e(i),void 0);return s.tail=u,u},n,t),o=J();return r.tail=o,Ae(n)}function Ol(e,t){const n=J(),r=ke((s,i)=>{if(e(i)){const u=new ue(i,void 0);return s.tail=u,u}else return s},n,t),o=J();return r.tail=o,Ae(n)}function Al(e,t){const n=J(),r=J(),o=n,s=ke((c,a)=>{let f,l;const _=c[0],h=c[1];return e(a)?[(f=new ue(a,void 0),_.tail=f,f),h]:[_,(l=new ue(a,void 0),h.tail=l,l)]},[o,r],t),i=J();s[0].tail=i;const u=J();return s[1].tail=u,[Ae(o),Ae(r)]}function Rl(e,t){const n=J(),r=ke((s,i)=>{const u=e(i);if(u==null)return s;{const c=new ue(y(u),void 0);return s.tail=c,c}},n,t),o=J();return r.tail=o,Ae(n)}function Nl(e,t){return ke((n,r)=>n&&e(r),!0,t)}function Fl(e){throw new Error(e)}const Dl="Enumeration already finished.",Vl="Enumeration has not started. Call MoveNext.",ei="The input sequence has an insufficient number of elements.",Ll="Reset is not supported on this enumerator.";function Hl(){throw new Error(Ll)}function wr(){throw new Error(Vl)}function Gn(){throw new Error(Dl)}class jl{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const o=j(t);try{for(;n<4&&o["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+be(o["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{R(o)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return _n(j(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function Ul(e){return new jl(e)}class Bl{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"(){Hl()}Dispose(){this.dispose()}}function Sn(e,t,n){return new Bl(e,t,n)}function Gl(e){let t,n,r=!1,o=!1,s;const i=()=>{if(o=!0,n!=null){const u=y(n);try{R(u)}finally{n=void 0}}if(t!=null){const u=y(t);try{R(u)}finally{t=void 0}}};return Sn(()=>(r?o&&Gn():wr(),s!=null?y(s):Gn()),()=>{let u;if(r||(r=!0),o)return!1;{let c;for(;c==null;){const a=t,f=n;if(a!=null)if(f!=null){const l=y(f);if(l["System.Collections.IEnumerator.MoveNext"]())s=ne(l["System.Collections.Generic.IEnumerator`1.get_Current"]()),c=!0;else try{R(l)}finally{n=void 0}}else{const l=y(a);l["System.Collections.IEnumerator.MoveNext"]()?n=(u=l["System.Collections.Generic.IEnumerator`1.get_Current"](),j(u)):(i(),c=!1)}else t=j(e)}return y(c)}},()=>{o||i()})}function zl(e,t){return Sn(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{R(t)}finally{e()}})}function ti(e,t,n){let r=!1,o,s=ne(e());const i=()=>{if(s!=null){const c=y(s);try{n(c)}finally{s=void 0}}},u=()=>{try{i()}finally{o=void 0}};return Sn(()=>(r||wr(),o!=null?y(o):Gn()),()=>{if(r||(r=!0),s!=null){const c=y(s);let a;try{a=t(c)}catch(f){throw u(),f}return a!=null?(o=a,!0):(u(),!1)}else return!1},i)}function Wl(e,t){let n,r=t;return Sn(()=>{if(n!=null){const o=y(n)[0];return y(n)[1],o}else return wr()},()=>(n=e(r),n!=null?(y(n)[0],r=y(n)[1],!0):!1),()=>{})}function ql(e,t){t==null&&Fl(e)}function St(e){return Ul(e)}function Be(e){return ql("source",e),j(e)}function z(e){return St(()=>j(e()))}function ni(e){return St(()=>Gl(e))}function Zl(e,t){return St(()=>Wl(e,t))}function W(e){return z(()=>Cl(e))}function Jl(e){return e instanceof ue?Ut(e):Array.from(e)}function at(e){return Ce(e)?ae(e):e instanceof ue?e:Pl(e)}function Kl(e,t,n){return St(()=>ti(e,t,n))}function ri(e,t,n){return St(()=>{let r=-1;return ti(e,o=>(r=r+1|0,t(r,o)),n)})}function Le(e,t){return ni([e,t])}function Yl(e,t,n){const r=Be(t);try{const o=Be(n);try{let s=0,i=r["System.Collections.IEnumerator.MoveNext"](),u=o["System.Collections.IEnumerator.MoveNext"]();for(;s===0&&i&&u;)s=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),o["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,s===0&&(i=r["System.Collections.IEnumerator.MoveNext"](),u=o["System.Collections.IEnumerator.MoveNext"]());return(s!==0?s:i?1:u?-1:0)|0}finally{R(o)}}finally{R(r)}}function nt(e,t,n){const r=Be(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{R(r)}}function vn(e,t,n){const r=Be(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{R(r)}}function oi(e,t){vn((n,r)=>{e(r)},void 0,t)}function fe(e,t){return Kl(()=>Be(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?ne(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{R(n)})}function Xl(e,t){return ri(()=>Be(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?ne(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{R(n)})}function Ql(e){return z(()=>El(Jl(e)))}function ec(e,t){return St(()=>{const n=Be(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(ei+"\\nParameter name: source");return zl(()=>{},n)}catch(r){throw R(n),r}})}function tc(e,t){return ri(()=>Be(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return ne(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(ei+"\\nParameter name: source")}else return},n=>{R(n)})}function nc(e,t){return z(()=>ni(fe(e,t)))}class si{constructor(t,n){this.k=t,this.v=n}}function At(e,t){return new si(e,t)}function H(e){return e.k}function Q(e){return e.v}class L extends si{constructor(t,n,r,o,s){super(t,n),this.left=r,this.right=o,this.h=s|0}}function Mt(e,t,n,r,o){return new L(e,t,n,r,o)}function q(e){return e.left}function Z(e){return e.right}function Ve(e){return e.h}function ii(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=y(r);if(o instanceof L){const s=o;e=ii(n+1,q(s)),t=Z(s);continue e}else return n+1|0}else return n|0}}function rc(e){return ii(0,e)}function _e(e,t,n,r){let o,s,i;const u=e;if(u!=null){const l=y(u);i=l instanceof L?(o=l,Ve(o)):1}else i=0;let c;const a=r;if(a!=null){const l=y(a);c=l instanceof L?(s=l,Ve(s)):1}else c=0;const f=(i<c?c:i)|0;return f===0?At(t,n):Mt(t,n,e,r,f+1)}function Wr(e,t,n,r){let o,s,i,u,c,a,f,l,_;const h=e;if(h!=null){const w=y(h);_=w instanceof L?(o=w,Ve(o)):1}else _=0;let d;const m=r;if(m!=null){const w=y(m);d=w instanceof L?(s=w,Ve(s)):1}else d=0;if(d>_+2){const w=y(r);if(w instanceof L){const g=w;if(i=q(g),(i!=null?(u=y(i),u instanceof L?(c=u,Ve(c)):1):0)>_+1){const v=y(q(g));if(v instanceof L){const x=v;return _e(_e(e,t,n,q(x)),H(x),Q(x),_e(Z(x),H(g),Q(g),Z(g)))}else throw new Error("internal error: Map.rebalance")}else return _e(_e(e,t,n,q(g)),H(g),Q(g),Z(g))}else throw new Error("internal error: Map.rebalance")}else if(_>d+2){const w=y(e);if(w instanceof L){const g=w;if(a=Z(g),(a!=null?(f=y(a),f instanceof L?(l=f,Ve(l)):1):0)>d+1){const v=y(Z(g));if(v instanceof L){const x=v;return _e(_e(q(g),H(g),Q(g),q(x)),H(x),Q(x),_e(Z(x),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return _e(q(g),H(g),Q(g),_e(Z(g),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return _e(e,t,n,r)}function mt(e,t,n,r){if(r!=null){const o=y(r),s=e.Compare(t,H(o))|0;if(o instanceof L){const i=o;return s<0?Wr(mt(e,t,n,q(i)),H(i),Q(i),Z(i)):s===0?Mt(t,n,q(i),Z(i),Ve(i)):Wr(q(i),H(i),Q(i),mt(e,t,n,Z(i)))}else return s<0?Mt(t,n,void 0,r,2):s===0?At(t,n):Mt(t,n,r,void 0,2)}else return At(t,n)}function ui(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=y(s),u=r.Compare(o,H(i))|0;if(u===0)return ne(Q(i));if(i instanceof L){const c=i;e=r,t=o,n=u<0?q(c):Z(c);continue e}else return}else return}}function oc(e,t,n){const r=ui(e,t,n);if(r==null)throw new Error;return y(r)}function sc(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=y(s),u=r.Compare(o,H(i))|0;if(i instanceof L){const c=i;if(u<0){e=r,t=o,n=q(c);continue e}else{if(u===0)return!0;e=r,t=o,n=Z(c);continue e}}else return u===0}else return!1}}function li(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=y(r);if(o instanceof L){const s=o;li(n,q(s)),n(H(s),Q(s)),e=n,t=Z(s);continue e}else n(H(o),Q(o))}break}}function ic(e,t){li(e,t)}function zn(e,t){if(t!=null){const n=y(t);if(n instanceof L){const r=n,o=zn(e,q(r)),s=e(H(r),Q(r)),i=zn(e,Z(r));return Mt(H(r),s,o,i,Ve(r))}else return At(H(n),e(H(n),Q(n)))}else return void 0}function uc(e,t){return zn(e,t)}function lc(e,t,n){let r=n;ic((o,s)=>{t[r]=[o,s],r=r+1|0},e)}function cc(e,t){return ke((n,r)=>mt(e,r[0],r[1],n),void 0,t)}function ac(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s["System.Collections.IEnumerator.MoveNext"]()){const i=s["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=mt(r,i[0],i[1],o),n=s;continue e}else return o}}function fc(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=t[r];n=mt(e,o[0],o[1],n)}return n}function ci(e,t){if(Ce(t))return fc(e,t);if(t instanceof ue)return cc(e,t);{const n=j(t);try{return ac(e,void 0,n)}finally{R(n)}}}class dc extends pe{constructor(t,n){super(),this.stack=t,this.started=n}}function ai(e){e:for(;;){const t=e;if($(t))return K();{const n=T(t),r=C(t);if(r!=null){const o=y(r);if(o instanceof L){const s=o;e=N([q(s),At(H(s),Q(s)),Z(s)],n);continue e}else return t}else{e=n;continue e}}}}function qr(e){return new dc(ai(xe(e)),!1)}function hc(){throw new Error("enumeration not started")}function pc(){throw new Error("enumeration already finished")}function Zr(e){if(e.started){const t=e.stack;if($(t))return pc();if(C(t)!=null){const n=y(C(t));if(n instanceof L)throw new Error("Please report error: Map iterator, unexpected stack for current");return[H(n),Q(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return hc()}function _c(e){if(e.started){const t=e.stack;if($(t))return!1;if(C(t)!=null){if(y(C(t))instanceof L)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=ai(T(t)),!$(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!$(e.stack)}function Jr(e){let t=qr(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Zr(t)},"System.Collections.IEnumerator.get_Current"(){return Zr(t)},"System.Collections.IEnumerator.MoveNext"(){return _c(t)},"System.Collections.IEnumerator.Reset"(){t=qr(e)},Dispose(){}}}class fn{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return bc(this)|0}Equals(t){const n=this;if(t instanceof fn){const r=t,o=j(n);try{const s=j(r);try{const i=()=>{const u=o["System.Collections.IEnumerator.MoveNext"]();if(u===s["System.Collections.IEnumerator.MoveNext"]())if(u){const c=o["System.Collections.Generic.IEnumerator`1.get_Current"](),a=s["System.Collections.Generic.IEnumerator`1.get_Current"]();return ee(c[0],a[0])&&ee(c[1],a[1])?i():!1}else return!0;else return!1};return i()}finally{R(s)}}finally{R(o)}}else return!1}toString(){return"map ["+Ue("; ",fe(n=>gl("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return Jr(this.tree)}[Symbol.iterator](){return _n(j(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Jr(this.tree)}CompareTo(t){const n=this;if(t instanceof fn)return Yl((o,s)=>{const i=n.comparer.Compare(o[0],s[0])|0;return(i!==0?i:he(o[1],s[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 Yr(n,t[0])&&ee(Kr(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){lc(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Mn(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Mn(this)|0}get size(){return Mn(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return fe(n=>[n[0],n[1]],this)}get(t){return Kr(this,t)}has(t){return Yr(this,t)}keys(){return fe(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return fe(n=>n[1],this)}forEach(t,n){const r=this;oi(o=>{t(o[1],o[0],r)},r)}}function Bt(e,t){return new fn(e,t)}function mc(e){return Bt(e,void 0)}function wc(e,t,n){return Bt(e.comparer,mt(e.comparer,t,n,e.tree))}function Kr(e,t){return oc(e.comparer,t,e.tree)}function gc(e,t){return Bt(e.comparer,uc(t,e.tree))}function Mn(e){return rc(e.tree)}function Yr(e,t){return sc(e.comparer,t,e.tree)}function yc(e,t){return ui(e.comparer,t,e.tree)}function bc(e){const t=(o,s)=>(o<<1)+s+631;let n=0;const r=j(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const o=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,Oe(o[0]))|0,n=t(n,Oe(o[1]))|0}}finally{R(r)}return n|0}function fi(e,t,n){return wc(n,e,t)}function di(e,t){return yc(t,e)}function hi(e,t){return gc(t,e)}function Sc(e,t){return Bt(t,ci(t,e))}function vc(e,t){return Bt(t,ci(t,e))}function gr(e){return mc(e)}function Cc(e){return new Hs("Content-Type",e)}function pi(e){return new Hs("Authorization",e)}const We=new Ht("",new fr(0,[]),K(),!1,void 0,void 0,void 0,new js(0,[]));new Us(0,"","","",gr({Compare:mn}),new rt(0,[""]));function Xr(e,t){return yl(t)?[t]:Sl(t,[e],void 0,0)}function Ec(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 _i(e){return new Ht(e,We.method,We.headers,We.withCredentials,We.overridenMimeType,We.overridenResponseType,We.timeout,We.content)}function mi(e,t){return new Ht(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Wn(e,t){return new Ht(t.url,t.method,mr(t.headers,xe(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function xc(e,t){return new Ht(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function wi(e){return tl(t=>{const n=new XMLHttpRequest;n.open(Ec(e.method),e.url),n.onreadystatechange=()=>{let c,a,f,l,_,h,d;n.readyState===4&&t[0]((c=(a=n.responseType,a===""||a==="text"?n.responseText:""),f=n.status|0,l=n.responseType,_=(h=n.responseType,h===""?new rt(0,[n.responseText]):h==="text"?new rt(0,[n.responseText]):h==="arraybuffer"?new rt(2,[n.response]):h==="blob"?new rt(1,[n.response]):new rt(3,[n.response])),d=vc(kl(m=>{const w=ae(Xr(":",m));if(!$(w))return[C(w).toLocaleLowerCase(),Ue(":",T(w)).trim()]},Xr(`\r
|
|
4
|
-
`,n.getAllResponseHeaders())),{Compare:mn}),new Us(f,c,l,n.responseURL,d,_)))};const r=j(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const c=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(c.fields[0],c.fields[1])}}finally{R(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(o!=null){const c=o;n.overrideMimeType(c)}const s=e.overridenResponseType;if(s!=null)switch(s.tag){case 1:{n.responseType="blob";break}case 2:{n.responseType="arraybuffer";break}default:n.responseType="text"}const i=e.timeout;if(i!=null){const c=i|0;n.timeout=c|0}const u=e.content;switch(u.tag){case 1:{n.send(ne(u.fields[0]));break}case 3:{n.send(ne(u.fields[0]));break}case 2:{n.send(ne(u.fields[0]));break}default:n.send()}})}const Ke={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function Pn(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 kc(e,t){switch(t){case Ke.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case Ke.SnakeCase:return Pn(e,"_");case Ke.SnakeCaseAllCaps:return Pn(e,"_").toUpperCase();case Ke.KebabCase:return Pn(e,"-");case Ke.None:default:return e}}function Tc(e,t=Ke.None){const n={},r=t;function o(i){throw new Error("Cannot infer key and value of "+String(i))}function s(i,u,c){i=kc(i,u),n[i]=c}for(let i of e){let u=Ke.None;if(i==null&&o(i),i instanceof U){const c=i.cases()[i.tag];i=i.fields.length===0?c:[c].concat(i.fields),u=r}if(Array.isArray(i))switch(i.length){case 0:o(i);break;case 1:s(i[0],u,!0);break;case 2:const c=i[1];s(i[0],u,c);break;default:s(i[0],u,i.slice(1))}else typeof i=="string"?s(i,u,!0):o(i)}return n}class b extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Cn extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function Qr(e){return e.slice(void 0,0+1).toLowerCase()+e.slice(1,e.length)}function gi(e,t){switch(e.tag){case 2:return pl(Qr(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Qr(t)}}const $c=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,eo=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Ic=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Mc(e){function t(r){return r.replace(eo,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if($c.test(n))return vl(n,"{","}","(",")");if(eo.test(n))return t(n);if(Ic.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 Pc(e,t){try{return t.contents=Mc(e),!0}catch{return!1}}var qn;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(qn||(qn={}));function Oc(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}function to(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 Ac(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 Rc(e,t){if(t&qn.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 Nc(e,t,n){const o=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(o!=null){const[,,s,i]=o;if(n=n||Rc(s,t),!Ac(n).test(i))return Oc(o,n)}return null}function Fc(e,t,n,r,o){const s=Nc(e,t,o);if(s!=null){let i=Number.parseInt(s.sign+s.digits,s.radix);if(!Number.isNaN(i)){const[u,c]=to(!0,r);!n&&s.radix!==10&&i>=u&&i<=c&&(i=i<<32-r>>32-r);const[a,f]=to(n,r);if(i>=a&&i<=f)return i}}throw new Error("Input string was not in a correct format.")}function vt(e,t,n,r,o){try{return o.contents=Fc(e,t,n,r),!0}catch{return!1}}function yi(e,t){Dc(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function Dc(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 Vc(){return yi(-621355968e5,0)}function Lc(e){const[t,n]=Gs(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return yi(t.getTime(),r)}function Hc(e,t){try{return t.contents=Lc(e),!0}catch{return!1}}function Gt(e){return e<0?Math.ceil(e):Math.floor(e)}function no(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return jc(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 jc(e){return Number(BigInt(e)/10000n)}function Uc(e){return Gt(e/864e5)}function Bc(e){return Gt(e%864e5/36e5)}function Gc(e){return Gt(e%36e5/6e4)}function zc(e){return Gt(e%6e4/1e3)}function Wc(e){return Gt(e%1e3)}function qc(e,t="c",n){if(["c","g","G"].indexOf(t)===-1)throw new Error("Custom formats are not supported");const r=Math.abs(Uc(e)),o=Math.abs(Bc(e)),s=Math.abs(Gc(e)),i=Math.abs(zc(e)),u=Math.abs(Wc(e));return`${e<0?"-":""}${r===0&&(t==="c"||t==="g")?"":t==="c"?r+".":r+":"}${t==="g"?o:te(o,2)}:${te(s,2)}:${te(i,2)}${u===0&&(t==="c"||t==="g")?"":t==="g"?"."+te(u,3):"."+du(u,3,7)}`}function Zc(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 no(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,s=0,i=0;const u=r[1]!=null&&r[1]==="-"?-1:1,c=+r[4],a=+r[5];if(r[3]!=null&&(o=+r[3]),r[7]!=null&&(i=+r[7]),r[8]!=null)switch(r[8].length){case 1:s=+r[8]*100;break;case 2:s=+r[8]*10;break;case 3:s=+r[8];break;case 4:s=+r[8]/10;break;case 5:s=+r[8]/100;break;case 6:s=+r[8]/1e3;break;case 7:s=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return u*no(o,c,a,i,s)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function Jc(e,t){try{return t.contents=Zc(e),!0}catch{return!1}}class bi{constructor(t){this.k=t}}function oe(e){return new bi(e)}function E(e){return e.k}class I extends bi{constructor(t,n,r,o){super(t),this.left=n,this.right=r,this.h=o|0}}function se(e,t,n,r){return new I(e,t,n,r)}function O(e){return e.left}function M(e){return e.right}function it(e){return e.h}function Si(e,t){e:for(;;){const n=e,r=t;if(n!=null){const o=y(n);if(o instanceof I){const s=o;e=O(s),t=Si(M(s),r+1);continue e}else return r+1|0}else return r|0}}function Kc(e){return Si(e,0)}function me(e,t,n){let r,o,s;const i=e;if(i!=null){const f=y(i);s=f instanceof I?(r=f,it(r)):1}else s=0;let u;const c=n;if(c!=null){const f=y(c);u=f instanceof I?(o=f,it(o)):1}else u=0;const a=(s<u?u:s)|0;return a===0?oe(t):se(t,e,n,a+1)}function ro(e,t,n){let r,o,s,i,u,c,a,f,l;const _=e;if(_!=null){const m=y(_);l=m instanceof I?(r=m,it(r)):1}else l=0;let h;const d=n;if(d!=null){const m=y(d);h=m instanceof I?(o=m,it(o)):1}else h=0;if(h>l+2){const m=y(n);if(m instanceof I){const w=m;if(s=O(w),(s!=null?(i=y(s),i instanceof I?(u=i,it(u)):1):0)>l+1){const g=y(O(w));if(g instanceof I){const v=g;return me(me(e,t,O(v)),E(v),me(M(v),E(w),M(w)))}else throw new Error("internal error: Set.rebalance")}else return me(me(e,t,O(w)),E(w),M(w))}else throw new Error("internal error: Set.rebalance")}else if(l>h+2){const m=y(e);if(m instanceof I){const w=m;if(c=M(w),(c!=null?(a=y(c),a instanceof I?(f=a,it(f)):1):0)>h+1){const g=y(M(w));if(g instanceof I){const v=g;return me(me(O(w),E(w),O(v)),E(v),me(M(v),t,n))}else throw new Error("internal error: Set.rebalance")}else return me(O(w),E(w),me(M(w),t,n))}else throw new Error("internal error: Set.rebalance")}else return me(e,t,n)}function wt(e,t,n){if(n!=null){const r=y(n),o=e.Compare(t,E(r))|0;if(r instanceof I){const s=r;return o<0?ro(wt(e,t,O(s)),E(s),M(s)):o===0?n:ro(O(s),E(s),wt(e,t,M(s)))}else{const s=e.Compare(t,E(r))|0;return s<0?se(t,void 0,n,2):s===0?n:se(t,n,void 0,2)}}else return oe(t)}function vi(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=y(s),u=r.Compare(o,E(i))|0;if(i instanceof I){const c=i;if(u<0){e=r,t=o,n=O(c);continue e}else{if(u===0)return!0;e=r,t=o,n=M(c);continue e}}else return u===0}else return!1}}function Ci(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=y(r);if(o instanceof I){const s=o;Ci(n,O(s)),n(E(s)),e=n,t=M(s);continue e}else n(E(o))}break}}class Yc extends pe{constructor(t,n){super(),this.stack=t,this.started=n}}function Ei(e){e:for(;;){const t=e;if($(t))return K();{const n=C(t),r=T(t);if(n!=null){const o=y(n);if(o instanceof I){const s=o;e=N([O(s),oe(E(s)),M(s)],r);continue e}else return t}else{e=r;continue e}}}}function oo(e){return new Yc(Ei(xe(e)),!1)}function Xc(){throw new Error("Enumeration not started")}function Qc(){throw new Error("Enumeration already started")}function so(e){if(e.started){const t=e.stack;if($(t))return Qc();if(C(t)!=null){const n=y(C(t));return E(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return Xc()}function ea(e){if(e.started){const t=e.stack;if($(t))return!1;if(C(t)!=null){if(y(C(t))instanceof I)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Ei(T(t)),!$(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!$(e.stack)}function io(e){let t=oo(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return so(t)},"System.Collections.IEnumerator.get_Current"(){return so(t)},"System.Collections.IEnumerator.MoveNext"(){return ea(t)},"System.Collections.IEnumerator.Reset"(){t=oo(e)},Dispose(){}}}function ta(e,t,n){e:for(;;){const r=e,o=t,s=n;if($(o))return $(s)?0:-1;if($(s))return 1;if(C(s)!=null)if(C(o)!=null){const i=y(C(o)),u=y(C(s));if(i instanceof I){const c=i;if(O(c)==null)if(u instanceof I){const a=u;if(O(a)==null){const f=r.Compare(E(c),E(a))|0;if(f!==0)return f|0;e=r,t=ce(M(c),T(o)),n=ce(M(a),T(s));continue e}else{let f,l,_,h,d;switch($(o)?$(s)?f=2:C(s)!=null?(f=1,h=T(s),d=y(C(s))):f=2:C(o)!=null?(f=0,l=T(o),_=y(C(o))):$(s)?f=2:C(s)!=null?(f=1,h=T(s),d=y(C(s))):f=2,f){case 0:if(_ instanceof I){const m=_;e=r,t=N([O(m),se(E(m),void 0,M(m),0)],l),n=s;continue e}else{e=r,t=N([void 0,oe(E(_))],l),n=s;continue e}case 1:if(d instanceof I){const m=d;e=r,t=o,n=N([O(m),se(E(m),void 0,M(m),0)],h);continue e}else{e=r,t=o,n=N([void 0,oe(E(d))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const a=r.Compare(E(c),E(u))|0;if(a!==0)return a|0;e=r,t=ce(M(c),T(o)),n=ce(void 0,T(s));continue e}else{let a,f,l,_,h;switch($(o)?$(s)?a=2:C(s)!=null?(a=1,_=T(s),h=y(C(s))):a=2:C(o)!=null?(a=0,f=T(o),l=y(C(o))):$(s)?a=2:C(s)!=null?(a=1,_=T(s),h=y(C(s))):a=2,a){case 0:if(l instanceof I){const d=l;e=r,t=N([O(d),se(E(d),void 0,M(d),0)],f),n=s;continue e}else{e=r,t=N([void 0,oe(E(l))],f),n=s;continue e}case 1:if(h instanceof I){const d=h;e=r,t=o,n=N([O(d),se(E(d),void 0,M(d),0)],_);continue e}else{e=r,t=o,n=N([void 0,oe(E(h))],_);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(u instanceof I){const c=u;if(O(c)==null){const a=r.Compare(E(i),E(c))|0;if(a!==0)return a|0;e=r,t=ce(void 0,T(o)),n=ce(M(c),T(s));continue e}else{let a,f,l,_,h;switch($(o)?$(s)?a=2:C(s)!=null?(a=1,_=T(s),h=y(C(s))):a=2:C(o)!=null?(a=0,f=T(o),l=y(C(o))):$(s)?a=2:C(s)!=null?(a=1,_=T(s),h=y(C(s))):a=2,a){case 0:if(l instanceof I){const d=l;e=r,t=N([O(d),se(E(d),void 0,M(d),0)],f),n=s;continue e}else{e=r,t=N([void 0,oe(E(l))],f),n=s;continue e}case 1:if(h instanceof I){const d=h;e=r,t=o,n=N([O(d),se(E(d),void 0,M(d),0)],_);continue e}else{e=r,t=o,n=N([void 0,oe(E(h))],_);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const c=r.Compare(E(i),E(u))|0;if(c!==0)return c|0;e=r,t=T(o),n=T(s);continue e}}else{y(C(s));let i,u,c,a,f;switch($(o)?$(s)?i=2:C(s)!=null?(i=1,a=T(s),f=y(C(s))):i=2:C(o)!=null?(i=0,u=T(o),c=y(C(o))):$(s)?i=2:C(s)!=null?(i=1,a=T(s),f=y(C(s))):i=2,i){case 0:if(c instanceof I){const l=c;e=r,t=N([O(l),se(E(l),void 0,M(l),0)],u),n=s;continue e}else{e=r,t=N([void 0,oe(E(c))],u),n=s;continue e}case 1:if(f instanceof I){const l=f;e=r,t=o,n=N([O(l),se(E(l),void 0,M(l),0)],a);continue e}else{e=r,t=o,n=N([void 0,oe(E(f))],a);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(C(o)!=null){y(C(o));let i,u,c,a,f;switch($(o)?$(s)?i=2:C(s)!=null?(i=1,a=T(s),f=y(C(s))):i=2:C(o)!=null?(i=0,u=T(o),c=y(C(o))):$(s)?i=2:C(s)!=null?(i=1,a=T(s),f=y(C(s))):i=2,i){case 0:if(c instanceof I){const l=c;e=r,t=N([O(l),se(E(l),void 0,M(l),0)],u),n=s;continue e}else{e=r,t=N([void 0,oe(E(c))],u),n=s;continue e}case 1:if(f instanceof I){const l=f;e=r,t=o,n=N([O(l),se(E(l),void 0,M(l),0)],a);continue e}else{e=r,t=o,n=N([void 0,oe(E(f))],a);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=T(o),n=T(s);continue e}}}function uo(e,t,n){return t==null?n==null?0:-1:n==null?1:ta(e,xe(t),xe(n))|0}function na(e,t,n){let r=n;Ci(o=>{t[r]=o,r=r+1|0},e)}function ra(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s["System.Collections.IEnumerator.MoveNext"]()){e=r,t=wt(r,s["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=s;continue e}else return o}}function oa(e,t){return bn((n,r)=>wt(e,r,n),void 0,t)}function sa(e,t){return ke((n,r)=>wt(e,r,n),void 0,t)}function xi(e,t){if(Ce(t))return oa(e,t);if(t instanceof ue)return sa(e,t);{const n=j(t);try{return ra(e,void 0,n)}finally{R(n)}}}class yr{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return la(this)|0}Equals(t){let n;const r=this;return t instanceof yr&&(n=t,uo(ft(r),we(r),we(n))===0)}toString(){return"set ["+Ue("; ",fe(n=>be(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return uo(ft(n),we(n),we(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 vi(ft(n),t,we(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){na(we(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return On(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return On(this)|0}GetEnumerator(){return io(we(this))}[Symbol.iterator](){return _n(j(this))}"System.Collections.IEnumerable.GetEnumerator"(){return io(we(this))}get size(){return On(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 ki(this,t)}keys(){return fe(n=>n,this)}values(){return fe(n=>n,this)}entries(){return fe(n=>[n,n],this)}forEach(t,n){const r=this;oi(o=>{t(o,o,r)},r)}}function En(e,t){return new yr(e,t)}function ft(e){return e.comparer}function we(e){return e.tree}function ia(e){return En(e,void 0)}function ua(e,t){return En(ft(e),wt(ft(e),t,we(e)))}function On(e){return Kc(we(e))}function ki(e,t){return vi(ft(e),t,we(e))}function la(e){let t=0;const n=j(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+Oe(r)+631|0}}finally{R(n)}return Math.abs(t)|0}function Zn(e,t){return ki(t,e)}function ca(e,t){return ua(t,e)}function aa(e){return ia(e)}function fa(e,t){return En(t,xi(t,e))}function da(e,t){return En(t,xi(t,e))}function Et(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();var Nt,S,Io,Ze,Cr,Mo,Nn,Po,lt={},Oo=[],Fi=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,hn=Array.isArray;function Ie(e,t){for(var n in t)e[n]=t[n];return e}function Ao(e){var t=e.parentNode;t&&t.removeChild(e)}function k(e,t,n){var r,o,s,i={};for(s in t)s=="key"?r=t[s]:s=="ref"?o=t[s]:i[s]=t[s];if(arguments.length>2&&(i.children=arguments.length>3?Nt.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(s in e.defaultProps)i[s]===void 0&&(i[s]=e.defaultProps[s]);return $t(e,i,r,o,null)}function $t(e,t,n,r,o){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:o??++Io};return o==null&&S.vnode!=null&&S.vnode(s),s}function Ro(){return{current:null}}function ve(e){return e.children}function be(e,t){this.props=e,this.context=t}function en(e,t){if(t==null)return e.__?en(e.__,e.__.__k.indexOf(e)+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"?en(e):null}function No(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 No(e)}}function Fn(e){(!e.__d&&(e.__d=!0)&&Ze.push(e)&&!tn.__r++||Cr!==S.debounceRendering)&&((Cr=S.debounceRendering)||Mo)(tn)}function tn(){var e,t,n,r,o,s,i,u,c;for(Ze.sort(Nn);e=Ze.shift();)e.__d&&(t=Ze.length,r=void 0,o=void 0,s=void 0,u=(i=(n=e).__v).__e,(c=n.__P)&&(r=[],o=[],(s=Ie({},i)).__v=i.__v+1,Yn(c,i,s,n.__n,c.ownerSVGElement!==void 0,i.__h!=null?[u]:null,r,u??en(i),i.__h,o),Lo(r,i,o),i.__e!=u&&No(i)),Ze.length>t&&Ze.sort(Nn));tn.__r=0}function Fo(e,t,n,r,o,s,i,u,c,a,f){var l,_,h,d,m,w,g,v,x,B,D=0,Y=r&&r.__k||Oo,Ge=Y.length,ze=Ge,X=t.length;for(n.__k=[],l=0;l<X;l++)(d=n.__k[l]=(d=t[l])==null||typeof d=="boolean"||typeof d=="function"?null:typeof d=="string"||typeof d=="number"||typeof d=="bigint"?$t(null,d,null,null,d):hn(d)?$t(ve,{children:d},null,null,null):d.__b>0?$t(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)!=null&&(d.__=n,d.__b=n.__b+1,(v=Di(d,Y,g=l+D,ze))===-1?h=lt:(h=Y[v]||lt,Y[v]=void 0,ze--),Yn(e,d,h,o,s,i,u,c,a,f),m=d.__e,(_=d.ref)&&h.ref!=_&&(h.ref&&Xn(h.ref,null,d),f.push(_,d.__c||m,d)),m!=null&&(w==null&&(w=m),B=!(x=h===lt||h.__v===null)&&v===g,x?v==-1&&D--:v!==g&&(v===g+1?(D++,B=!0):v>g?ze>X-g?(D+=v-g,B=!0):D--:D=v<g&&v==g-1?v-g:0),g=l+D,B=B||v==l&&!x,typeof d.type!="function"||v===g&&h.__k!==d.__k?typeof d.type=="function"||B?d.__d!==void 0?(c=d.__d,d.__d=void 0):c=m.nextSibling:c=Vo(e,m,c):c=Do(d,c,e),typeof n.type=="function"&&(n.__d=c)));for(n.__e=w,l=Ge;l--;)Y[l]!=null&&(typeof n.type=="function"&&Y[l].__e!=null&&Y[l].__e==n.__d&&(n.__d=Y[l].__e.nextSibling),Ho(Y[l],Y[l]))}function Do(e,t,n){for(var r,o=e.__k,s=0;o&&s<o.length;s++)(r=o[s])&&(r.__=e,t=typeof r.type=="function"?Do(r,t,n):Vo(n,r.__e,t));return t}function Me(e,t){return t=t||[],e==null||typeof e=="boolean"||(hn(e)?e.some(function(n){Me(n,t)}):t.push(e)),t}function Vo(e,t,n){return n==null||n.parentNode!==e?e.insertBefore(t,null):t==n&&t.parentNode!=null||e.insertBefore(t,n),t.nextSibling}function Di(e,t,n,r){var o=e.key,s=e.type,i=n-1,u=n+1,c=t[n];if(c===null||c&&o==c.key&&s===c.type)return n;if(r>(c!=null?1:0))for(;i>=0||u<t.length;){if(i>=0){if((c=t[i])&&o==c.key&&s===c.type)return i;i--}if(u<t.length){if((c=t[u])&&o==c.key&&s===c.type)return u;u++}}return-1}function Vi(e,t,n,r,o){var s;for(s in n)s==="children"||s==="key"||s in t||nn(e,s,null,n[s],r);for(s in t)o&&typeof t[s]!="function"||s==="children"||s==="key"||s==="value"||s==="checked"||n[s]===t[s]||nn(e,s,t[s],n[s],r)}function Er(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Fi.test(t)?n:n+"px"}function nn(e,t,n,r,o){var s;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||Er(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Er(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")s=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?r||e.addEventListener(t,s?kr:xr,s):e.removeEventListener(t,s?kr:xr,s);else if(t!=="dangerouslySetInnerHTML"){if(o)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 in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function xr(e){return this.l[e.type+!1](S.event?S.event(e):e)}function kr(e){return this.l[e.type+!0](S.event?S.event(e):e)}function Yn(e,t,n,r,o,s,i,u,c,a){var f,l,_,h,d,m,w,g,v,x,B,D,Y,Ge,ze,X=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(c=n.__h,u=t.__e=n.__e,t.__h=null,s=[u]),(f=S.__b)&&f(t);try{e:if(typeof X=="function"){if(g=t.props,v=(f=X.contextType)&&r[f.__c],x=f?v?v.props.value:f.__:r,n.__c?w=(l=t.__c=n.__c).__=l.__E:("prototype"in X&&X.prototype.render?t.__c=l=new X(g,x):(t.__c=l=new be(g,x),l.constructor=X,l.render=Hi),v&&v.sub(l),l.props=g,l.state||(l.state={}),l.context=x,l.__n=r,_=l.__d=!0,l.__h=[],l._sb=[]),l.__s==null&&(l.__s=l.state),X.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=Ie({},l.__s)),Ie(l.__s,X.getDerivedStateFromProps(g,l.__s))),h=l.props,d=l.state,l.__v=t,_)X.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(X.getDerivedStateFromProps==null&&g!==h&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(g,x),!l.__e&&(l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(g,l.__s,x)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(l.props=g,l.state=l.__s,l.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(Wt){Wt&&(Wt.__=t)}),B=0;B<l._sb.length;B++)l.__h.push(l._sb[B]);l._sb=[],l.__h.length&&i.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(g,l.__s,x),l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(h,d,m)})}if(l.context=x,l.props=g,l.__P=e,l.__e=!1,D=S.__r,Y=0,"prototype"in X&&X.prototype.render){for(l.state=l.__s,l.__d=!1,D&&D(t),f=l.render(l.props,l.state,l.context),Ge=0;Ge<l._sb.length;Ge++)l.__h.push(l._sb[Ge]);l._sb=[]}else do l.__d=!1,D&&D(t),f=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++Y<25);l.state=l.__s,l.getChildContext!=null&&(r=Ie(Ie({},r),l.getChildContext())),_||l.getSnapshotBeforeUpdate==null||(m=l.getSnapshotBeforeUpdate(h,d)),Fo(e,hn(ze=f!=null&&f.type===ve&&f.key==null?f.props.children:f)?ze:[ze],t,n,r,o,s,i,u,c,a),l.base=t.__e,t.__h=null,l.__h.length&&i.push(l),w&&(l.__E=l.__=null)}else s==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Li(n.__e,t,n,r,o,s,i,c,a);(f=S.diffed)&&f(t)}catch(Wt){t.__v=null,(c||s!=null)&&(t.__e=u,t.__h=!!c,s[s.indexOf(u)]=null),S.__e(Wt,t,n)}}function Lo(e,t,n){for(var r=0;r<n.length;r++)Xn(n[r],n[++r],n[++r]);S.__c&&S.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(s){s.call(o)})}catch(s){S.__e(s,o.__v)}})}function Li(e,t,n,r,o,s,i,u,c){var a,f,l,_=n.props,h=t.props,d=t.type,m=0;if(d==="svg"&&(o=!0),s!=null){for(;m<s.length;m++)if((a=s[m])&&"setAttribute"in a==!!d&&(d?a.localName===d:a.nodeType===3)){e=a,s[m]=null;break}}if(e==null){if(d===null)return document.createTextNode(h);e=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,h.is&&h),s=null,u=!1}if(d===null)_===h||u&&e.data===h||(e.data=h);else{if(s=s&&Nt.call(e.childNodes),f=(_=n.props||lt).dangerouslySetInnerHTML,l=h.dangerouslySetInnerHTML,!u){if(s!=null)for(_={},m=0;m<e.attributes.length;m++)_[e.attributes[m].name]=e.attributes[m].value;(l||f)&&(l&&(f&&l.__html==f.__html||l.__html===e.innerHTML)||(e.innerHTML=l&&l.__html||""))}if(Vi(e,h,_,o,u),l)t.__k=[];else if(Fo(e,hn(m=t.props.children)?m:[m],t,n,r,o&&d!=="foreignObject",s,i,s?s[0]:n.__k&&en(n,0),u,c),s!=null)for(m=s.length;m--;)s[m]!=null&&Ao(s[m]);u||("value"in h&&(m=h.value)!==void 0&&(m!==e.value||d==="progress"&&!m||d==="option"&&m!==_.value)&&nn(e,"value",m,_.value,!1),"checked"in h&&(m=h.checked)!==void 0&&m!==e.checked&&nn(e,"checked",m,_.checked,!1))}return e}function Xn(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){S.__e(r,n)}}function Ho(e,t,n){var r,o;if(S.unmount&&S.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Xn(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){S.__e(s,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Ho(r[o],t,n||typeof e.type!="function");n||e.__e==null||Ao(e.__e),e.__=e.__e=e.__d=void 0}function Hi(e,t,n){return this.constructor(e,n)}function He(e,t,n){var r,o,s,i;S.__&&S.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,s=[],i=[],Yn(t,e=(!r&&n||t).__k=k(ve,null,[e]),o||lt,lt,t.ownerSVGElement!==void 0,!r&&n?[n]:o?null:t.firstChild?Nt.call(t.childNodes):null,s,!r&&n?n:o?o.__e:t.firstChild,r,i),Lo(s,e,i)}function Qn(e,t){He(e,t,Qn)}function er(e,t,n){var r,o,s,i,u=Ie({},e.props);for(s in e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)s=="key"?r=t[s]:s=="ref"?o=t[s]:u[s]=t[s]===void 0&&i!==void 0?i[s]:t[s];return arguments.length>2&&(u.children=arguments.length>3?Nt.call(arguments,2):n),$t(e.type,u,r||e.key,o||e.ref,null)}function jo(e,t){var n={__c:t="__cC"+Po++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,s;return this.getChildContext||(o=[],(s={})[t]=this,this.getChildContext=function(){return s},this.shouldComponentUpdate=function(i){this.props.value!==i.value&&o.some(function(u){u.__e=!0,Fn(u)})},this.sub=function(i){o.push(i);var u=i.componentWillUnmount;i.componentWillUnmount=function(){o.splice(o.indexOf(i),1),u&&u.call(i)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}Nt=Oo.slice,S={__e:function(e,t,n,r){for(var o,s,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((s=o.constructor)&&s.getDerivedStateFromError!=null&&(o.setState(s.getDerivedStateFromError(e)),i=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),i=o.__d),i)return o.__E=o}catch(u){e=u}throw e}},Io=0,be.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Ie({},this.state),typeof e=="function"&&(e=e(Ie({},n),this.props)),e&&Ie(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Fn(this))},be.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Fn(this))},be.prototype.render=ve,Ze=[],Mo=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Nn=function(e,t){return e.__v.__b-t.__v.__b},tn.__r=0,Po=0;var Pe,P,kn,Tr,pt=0,Uo=[],Yt=[],$r=S.__b,Ir=S.__r,Mr=S.diffed,Pr=S.__c,Or=S.unmount;function et(e,t){S.__h&&S.__h(P,e,pt||t),pt=0;var n=P.__H||(P.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Yt}),n.__[e]}function Ft(e){return pt=1,tr(Jo,e)}function tr(e,t,n){var r=et(Pe++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Jo(void 0,t),function(u){var c=r.__N?r.__N[0]:r.__[0],a=r.t(c,u);c!==a&&(r.__N=[a,r.__[1]],r.__c.setState({}))}],r.__c=P,!P.u)){var o=function(u,c,a){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(_){return _.__c});if(f.every(function(_){return!_.__N}))return!s||s.call(this,u,c,a);var l=!1;return f.forEach(function(_){if(_.__N){var h=_.__[0];_.__=_.__N,_.__N=void 0,h!==_.__[0]&&(l=!0)}}),!(!l&&r.__c.props===u)&&(!s||s.call(this,u,c,a))};P.u=!0;var s=P.shouldComponentUpdate,i=P.componentWillUpdate;P.componentWillUpdate=function(u,c,a){if(this.__e){var f=s;s=void 0,o(u,c,a),s=f}i&&i.call(this,u,c,a)},P.shouldComponentUpdate=o}return r.__N||r.__}function pn(e,t){var n=et(Pe++,3);!S.__s&&nr(n.__H,t)&&(n.__=e,n.i=t,P.__H.__h.push(n))}function Dt(e,t){var n=et(Pe++,4);!S.__s&&nr(n.__H,t)&&(n.__=e,n.i=t,P.__h.push(n))}function Bo(e){return pt=5,_n(function(){return{current:e}},[])}function Go(e,t,n){pt=6,Dt(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 _n(e,t){var n=et(Pe++,7);return nr(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function zo(e,t){return pt=8,_n(function(){return e},t)}function Wo(e){var t=P.context[e.__c],n=et(Pe++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(P)),t.props.value):e.__}function qo(e,t){S.useDebugValue&&S.useDebugValue(t?t(e):e)}function ji(e){var t=et(Pe++,10),n=Ft();return t.__=e,P.componentDidCatch||(P.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Zo(){var e=et(Pe++,11);if(!e.__){for(var t=P.__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 Ui(){for(var e;e=Uo.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Xt),e.__H.__h.forEach(Dn),e.__H.__h=[]}catch(t){e.__H.__h=[],S.__e(t,e.__v)}}S.__b=function(e){P=null,$r&&$r(e)},S.__r=function(e){Ir&&Ir(e),Pe=0;var t=(P=e.__c).__H;t&&(kn===P?(t.__h=[],P.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Yt,n.__N=n.i=void 0})):(t.__h.forEach(Xt),t.__h.forEach(Dn),t.__h=[],Pe=0)),kn=P},S.diffed=function(e){Mr&&Mr(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Uo.push(t)!==1&&Tr===S.requestAnimationFrame||((Tr=S.requestAnimationFrame)||Bi)(Ui)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Yt&&(n.__=n.__V),n.i=void 0,n.__V=Yt})),kn=P=null},S.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Xt),n.__h=n.__h.filter(function(r){return!r.__||Dn(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],S.__e(r,n.__v)}}),Pr&&Pr(e,t)},S.unmount=function(e){Or&&Or(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Xt(r)}catch(o){t=o}}),n.__H=void 0,t&&S.__e(t,n.__v))};var Ar=typeof requestAnimationFrame=="function";function Bi(e){var t,n=function(){clearTimeout(r),Ar&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Ar&&(t=requestAnimationFrame(n))}function Xt(e){var t=P,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),P=t}function Dn(e){var t=P;e.__c=e.__(),P=t}function nr(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Jo(e,t){return typeof t=="function"?t(e):t}function Ko(e,t){for(var n in t)e[n]=t[n];return e}function Vn(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 Tn(e,t){return e===t&&(e!==0||1/e==1/t)||e!=e&&t!=t}function rn(e){this.props=e}function Yo(e,t){function n(o){var s=this.props.ref,i=s==o.ref;return!i&&s&&(s.call?s(null):s.current=null),t?!t(this.props,o)||!i:Vn(this.props,o)}function r(o){return this.shouldComponentUpdate=n,k(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(rn.prototype=new be).isPureReactComponent=!0,rn.prototype.shouldComponentUpdate=function(e,t){return Vn(this.props,e)||Vn(this.state,t)};var Rr=S.__b;S.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Rr&&Rr(e)};var Gi=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Xo(e){function t(n){var r=Ko({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Gi,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Nr=function(e,t){return e==null?null:Me(Me(e).map(t))},Qo={map:Nr,forEach:Nr,count:function(e){return e?Me(e).length:0},only:function(e){var t=Me(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Me},zi=S.__e;S.__e=function(e,t,n,r){if(e.then){for(var o,s=t;s=s.__;)if((o=s.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}zi(e,t,n,r)};var Fr=S.unmount;function es(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=Ko({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return es(r,t,n)})),e}function ts(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return ts(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function It(){this.__u=0,this.t=null,this.__b=null}function ns(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function rs(e){var t,n,r;function o(s){if(t||(t=e()).then(function(i){n=i.default||i},function(i){r=i}),r)throw r;if(!n)throw t;return k(n,s)}return o.displayName="Lazy",o.__f=!0,o}function st(){this.u=null,this.o=null}S.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),Fr&&Fr(e)},(It.prototype=new be).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=ns(r.__v),s=!1,i=function(){s||(s=!0,n.__R=null,o?o(u):u())};n.__R=i;var u=function(){if(!--r.__u){if(r.state.__a){var a=r.state.__a;r.__v.__k[0]=ts(a,a.__c.__P,a.__c.__O)}var f;for(r.setState({__a:r.__b=null});f=r.t.pop();)f.forceUpdate()}},c=t.__h===!0;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(i,i)},It.prototype.componentWillUnmount=function(){this.t=[]},It.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]=es(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&k(ve,null,e.fallback);return o&&(o.__h=null),[k(ve,null,t.__a?null:e.children),o]};var Dr=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Wi(e){return this.getChildContext=function(){return e.context},e.children}function qi(e){var t=this,n=e.i;t.componentWillUnmount=function(){He(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),He(k(Wi,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function os(e,t){var n=k(qi,{__v:e,i:t});return n.containerInfo=t,n}(st.prototype=new be).__a=function(e){var t=this,n=ns(t.__v),r=t.o.get(e);return r[0]++,function(o){var s=function(){t.props.revealOrder?(r.push(o),Dr(t,e,r)):o()};n?n(s):s()}},st.prototype.render=function(e){this.u=null,this.o=new Map;var t=Me(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},st.prototype.componentDidUpdate=st.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){Dr(e,n,t)})};var ss=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Zi=/^(?: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]/,Ji=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Ki=/[A-Z0-9]/g,Yi=typeof document<"u",Xi=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function is(e,t,n){return t.__k==null&&(t.textContent=""),He(e,t),typeof n=="function"&&n(),e?e.__c:null}function us(e,t,n){return Qn(e,t),typeof n=="function"&&n(),e?e.__c:null}be.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(be.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Vr=S.event;function Qi(){}function eu(){return this.cancelBubble}function tu(){return this.defaultPrevented}S.event=function(e){return Vr&&(e=Vr(e)),e.persist=Qi,e.isPropagationStopped=eu,e.isDefaultPrevented=tu,e.nativeEvent=e};var rr,nu={enumerable:!1,configurable:!0,get:function(){return this.class}},Lr=S.vnode;S.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={};for(var s in n){var i=n[s];if(!(s==="value"&&"defaultValue"in n&&i==null||Yi&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var u=s.toLowerCase();s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&i===!0?i="":u==="ondoubleclick"?s="ondblclick":u!=="onchange"||r!=="input"&&r!=="textarea"||Xi(n.type)?u==="onfocus"?s="onfocusin":u==="onblur"?s="onfocusout":Ji.test(s)?s=u:r.indexOf("-")===-1&&Zi.test(s)?s=s.replace(Ki,"-$&").toLowerCase():i===null&&(i=void 0):u=s="oninput",u==="oninput"&&o[s=u]&&(s="oninputCapture"),o[s]=i}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=Me(n.children).forEach(function(c){c.props.selected=o.value.indexOf(c.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=Me(n.children).forEach(function(c){c.props.selected=o.multiple?o.defaultValue.indexOf(c.props.value)!=-1:o.defaultValue==c.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",nu)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=ss,Lr&&Lr(e)};var Hr=S.__r;S.__r=function(e){Hr&&Hr(e),rr=e.__c};var jr=S.diffed;S.diffed=function(e){jr&&jr(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),rr=null};var ls={ReactCurrentDispatcher:{current:{readContext:function(e){return rr.__n[e.__c].props.value}}}},ru="17.0.2";function cs(e){return k.bind(null,e)}function or(e){return!!e&&e.$$typeof===ss}function as(e){return or(e)?er.apply(null,arguments):e}function fs(e){return!!e.__k&&(He(null,e),!0)}function ds(e){return e&&(e.base||e.nodeType===1&&e)||null}var hs=function(e,t){return e(t)},ps=function(e,t){return e(t)},_s=ve;function sr(e){e()}function ms(e){return e}function ws(){return[!1,sr]}var gs=Dt;function ys(e,t){var n=t(),r=Ft({h:{__:n,v:t}}),o=r[0].h,s=r[1];return Dt(function(){o.__=n,o.v=t,Tn(o.__,t())||s({h:o})},[e,n,t]),pn(function(){return Tn(o.__,o.v())||s({h:o}),e(function(){Tn(o.__,o.v())||s({h:o})})},[e]),n}var bs={useState:Ft,useId:Zo,useReducer:tr,useEffect:pn,useLayoutEffect:Dt,useInsertionEffect:gs,useTransition:ws,useDeferredValue:ms,useSyncExternalStore:ys,startTransition:sr,useRef:Bo,useImperativeHandle:Go,useMemo:_n,useCallback:zo,useContext:Wo,useDebugValue:qo,version:"17.0.2",Children:Qo,render:is,hydrate:us,unmountComponentAtNode:fs,createPortal:os,createElement:k,createContext:jo,createFactory:cs,cloneElement:as,createRef:Ro,Fragment:ve,isValidElement:or,findDOMNode:ds,Component:be,PureComponent:rn,memo:Yo,forwardRef:Xo,flushSync:ps,unstable_batchedUpdates:hs,StrictMode:_s,Suspense:It,SuspenseList:st,lazy:rs,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ls};const ou=Object.freeze(Object.defineProperty({__proto__:null,Children:Qo,Component:be,Fragment:ve,PureComponent:rn,StrictMode:_s,Suspense:It,SuspenseList:st,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ls,cloneElement:as,createContext:jo,createElement:k,createFactory:cs,createPortal:os,createRef:Ro,default:bs,findDOMNode:ds,flushSync:ps,forwardRef:Xo,hydrate:us,isValidElement:or,lazy:rs,memo:Yo,render:is,startTransition:sr,unmountComponentAtNode:fs,unstable_batchedUpdates:hs,useCallback:zo,useContext:Wo,useDebugValue:qo,useDeferredValue:ms,useEffect:pn,useErrorBoundary:ji,useId:Zo,useImperativeHandle:Go,useInsertionEffect:gs,useLayoutEffect:Dt,useMemo:_n,useReducer:tr,useRef:Bo,useState:Ft,useSyncExternalStore:ys,useTransition:ws,version:ru},Symbol.toStringTag,{value:"Module"}));function Ce(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function su(e){return e!=null&&typeof e.GetEnumerator=="function"}function iu(e){return e!=null&&typeof e.CompareTo=="function"}function uu(e){return e!=null&&typeof e.Equals=="function"}function lu(e){return e!=null&&typeof e.GetHashCode=="function"}function Ln(e){return e!=null&&typeof e.Dispose=="function"}function R(e){Ln(e)&&e.Dispose()}function Ee(){return null}function on(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 cu{constructor(t){this.iter=t,this.current=Ee()}"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 j(e){return su(e)?e.GetEnumerator():new cu(e[Symbol.iterator]())}function mn(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 au{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 te(e,t){let n=e.toString(10);for(;n.length<t;)n="0"+n;return n}function fu(e,t,n){let r=e.toString(10);for(;r.length<t;)r="0"+r;for(;r.length<n;)r=r+"0";return r}function Ur(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function du(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function Ye(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class Fe{static id(t){return Fe.idMap.has(t)||Fe.idMap.set(t,++Fe.count),Fe.idMap.get(t)}}Fe.idMap=new WeakMap;Fe.count=0;function ir(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function Te(e){return e*2654435761|0}function hu(e){return ir(e.toString(32))}function Vt(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 pu(e){return e.getTime()}function _u(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=Oe(e[r]);return Vt(n)}function Oe(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Te(e);case"bigint":return hu(e);case"string":return ir(e);default:{if(lu(e))return e.GetHashCode();if(Ce(e))return _u(e);if(e instanceof Date)return pu(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>Oe(r));return Vt(n)}else return Te(Fe.id(e))}}}function Hn(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 Ss(e,t){return Hn(e,t,ee)}function mu(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]||!ee(e[n[o]],t[r[o]]))return!1;return!0}function ee(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:uu(e)?e.Equals(t):Ce(e)?Ce(t)&&Ss(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&vs(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&mu(e,t)}function vs(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+Ur(e),r=t.getTime()+Ur(t)),n===r?0:n<r?-1:1}function wn(e,t){return e===t?0:e<t?-1:1}function wu(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 Cs(e,t){return wu(e,t,pe)}function gu(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,s=0;o<n.length;o++){const i=n[o];if(i!==r[o])return i<r[o]?-1:1;if(s=pe(e[i],t[i]),s!==0)return s}return 0}function pe(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:iu(e)?e.CompareTo(t):Ce(e)?Ce(t)?Cs(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?vs(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?gu(e,t):-1}function ct(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function yu(e){Ce(e)?e.splice(0):e.clear()}const gn=new WeakMap;function F(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return gn.set(t,e),t}function Je(e){return gn.get(e)??(t=>n=>e(t,n))}function jn(e){if(e==null)return null;const t=(n,r,o)=>e(n)(r)(o);return gn.set(t,e),t}function $n(e){return gn.get(e)??(t=>n=>r=>e(t,n,r))}function bu(e){let t=0,n="[";for(const r of e){if(t===0)n+=Se(r);else if(t===100){n+="; ...";break}else n+="; "+Se(r);t++}return n+"]"}function Se(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 bu(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([o,s])=>o+" = "+Se(s,t+1)).join(`
|
|
2
|
+
`)+" }":(r==null?void 0:r.name)??""}}return String(e)}function Su(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=Se(t[0]),r=n.indexOf(" ")>=0):n=t.map(o=>Se(o)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class U{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return Su(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>Oe(n));return t.splice(0,0,Te(this.tag)),Vt(t)}Equals(t){return this===t?!0:on(this,t)&&this.tag===t.tag?Ss(this.fields,t.fields):!1}CompareTo(t){return this===t?0:on(this,t)?this.tag===t.tag?Cs(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function vu(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function Cu(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+Se(n)).join(`
|
|
3
|
+
`)+" }"}function Eu(e){const t=Object.values(e).map(n=>Oe(n));return Vt(t)}function xu(e,t){if(e===t)return!0;if(on(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!ee(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function ku(e,t){if(e===t)return 0;if(on(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=pe(e[n[r]],t[n[r]]);if(o!==0)return o}return 0}else return-1}class re{toJSON(){return vu(this)}toString(){return Cu(this)}GetHashCode(){return Eu(this)}Equals(t){return xu(this,t)}CompareTo(t){return ku(this,t)}}class oe{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 Tu{constructor(t){this.message=t}}function $u(e){return e instanceof Tu||e instanceof Error}function Iu(e){return e instanceof Promise}function sn(e){return $u(e)||Iu(e)?e:new Error(String(e))}const bt=Symbol("numeric");function Es(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[bt])}function Mu(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function Un(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[bt]().multiply(t)}function Qt(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[bt]().toFixed(t)}function un(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[bt]().toPrecision(t)}function ln(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[bt]().toExponential(t)}function cn(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[bt]().toHex()}class Pu{constructor(t,n,r,o){this.declaringType=t,this.tag=n,this.name=r,this.fields=o}}class _e{constructor(t,n,r,o,s,i,u){this.fullname=t,this.generics=n,this.construct=r,this.parent=o,this.fields=s,this.cases=i,this.enumCases=u}toString(){return A(this)}GetHashCode(){return xs(this)}Equals(t){return Bn(this,t)}}function ue(e){return e.generics!=null?e.generics:[]}function xs(e){const t=ir(e.fullname),n=ue(e).map(xs);return Vt([t,...n])}function Bn(e,t){return e.fullname===""?t.fullname===""&&Hn(Pt(e),Pt(t),([n,r],[o,s])=>n===o&&Bn(r,s)):e.fullname===t.fullname&&Hn(ue(e),ue(t),Bn)}function Ou(e,t,n,r){return new _e(e,t,n,r)}function Lt(e,t,n,r){return new _e(e,t,n,void 0,r)}function Au(...e){return new _e("",void 0,void 0,void 0,()=>e)}function ks(e,t,n,r){const o=new _e(e,t,n,void 0,void 0,()=>{const s=n.prototype.cases();return r().map((i,u)=>new Pu(o,u,s[u],i))});return o}function Ru(e){return new _e("Microsoft.FSharp.Collections.FSharpList`1",[e])}const Ts=new _e("System.Object"),Qe=new _e("System.String"),Nu=new _e("System.Int32");function at(e){if(Array.isArray(e))return e[0];if(e instanceof _e){const t=Ht(e);if(t!=null)return at(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function A(e){const t=Ht(e);return t!=null?A(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>A(n)).join(",")+"]"}function $s(e){return Ht(e)!=null}function Ht(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function Is(e){return e.generics!=null&&e.generics.length>0}function ur(e){return e.enumCases!=null&&e.enumCases.length>0}function Ms(e){return e.generics==null?e:new _e(e.fullname,e.generics.map(()=>Ts))}function Ps(e){var t;return(t=e.generics)==null?void 0:t[0]}function tt(e){if(ur(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function Fu(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 nt(e,t){const n=parseInt(t,10);return Fu(e,isNaN(n)?t:n)[1]}function Os(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Pt(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function As(e){if(lr(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Rs(e){return e instanceof _e?e.cases!=null:e instanceof U}function Ns(e){return e instanceof _e?e.fields!=null:e instanceof re}function lr(e){return e.fullname.startsWith("System.Tuple")}function Du(e,t){const r=Os(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function Fs(e){return e.fields==null?[]:e.fields}function Vu(e,t){return e[t[0]]}function Lu(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 Hu(e,t){const n=Pt(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,s],i)=>(r[o]=t[i],r),{})}function ju(e,t){return e}class Uu{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 cr extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,cr.prototype)}}class ar{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>ar.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function De(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new cr);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(sn(n))}});else try{e(t)}catch(n){t.onError(sn(n))}}}function Bu(e,t){return De(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(o){n.onError(sn(o))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function Gu(e){return De(t=>t.onSuccess(e))}class zu{Bind(t,n){return Bu(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return De(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let o=r.next();return this.While(()=>!o.done,this.Delay(()=>{const s=n(o.value);return o=r.next(),s}))}Return(t){return Gu(t)}ReturnFrom(t){return t}TryFinally(t,n){return De(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 De(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:o=>{try{n(o)(r)}catch(s){r.onError(sn(s))}}})})}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 De(t=>t.onSuccess(void 0))}}const G=new zu;class _t{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return Oe(this.value)}Equals(t){return t==null?!1:ee(this.value,t instanceof _t?t.value:t)}CompareTo(t){return t==null?1:pe(this.value,t instanceof _t?t.value:t)}}function y(e){if(e==null)throw new Error("Option has no value");return e instanceof _t?e.value:e}function ne(e){return e==null||e instanceof _t?new _t(e):e}function Gn(e,t){return e!=null?y(e):t}function Wu(e,t){return e!=null?y(e):t()}function qu(e,t){return t!=null?ne(e(y(t))):void 0}function Zu(e){return new p(0,[e])}function Ds(e){return new p(1,[e])}class p extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function he(e,t){return t.tag===0?Zu(e(t.fields[0])):Ds(t.fields[0])}function Ju(e,t){return t.tag===0?e(t.fields[0]):Ds(t.fields[0])}function Ku(e){return new Vs(0,[e])}function Yu(e){return new Vs(1,[e])}class Vs extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function Xu(e){return Ku(e)}function Qu(e){return Yu(e)}function In(e){}const el=new Uu;function tl(e){return De(t=>{e({onSuccess:n=>t.onSuccess(Xu(n)),onError:n=>t.onSuccess(Qu(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function nl(e){return De(t=>e([t.onSuccess,t.onError,t.onCancel]))}function rl(e,t){return sl(e,t)}function ol(e,t){return rl(e,t)}function sl(e,t,n,r,o){typeof t!="function"&&(o=t,t=void 0);const s=new ar;e({onSuccess:t||In,onError:n||In,onCancel:r||In,cancelToken:o||el,trampoline:s})}class fr extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class Ls extends U{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class Hs extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class jt extends re{constructor(t,n,r,o,s,i,u,c){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=o,this.overridenMimeType=s,this.overridenResponseType=i,this.timeout=u,this.content=c}}class ot extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class js extends re{constructor(t,n,r,o,s,i){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=o,this.responseHeaders=s,this.content=i}}function dr(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+te(n,2)+":"+te(r,2)}function an(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 il(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return te(e.getFullYear(),4)+"-"+te(e.getMonth()+1,2)+"-"+te(e.getDate(),2)+"T"+te(e.getHours(),2)+":"+te(e.getMinutes(),2)+":"+te(e.getSeconds(),2)+"."+te(e.getMilliseconds(),3)+(n?dr(e.getTimezoneOffset()*-6e4):"")}}function ul(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+dr(t)}function Us(e,t,n){return t.replace(/(\w)\1*/g,r=>{let o=Number.NaN;switch(r.substring(0,1)){case"y":const s=n?e.getUTCFullYear():e.getFullYear();o=r.length<4?s%100:s;break;case"M":o=(n?e.getUTCMonth():e.getMonth())+1;break;case"d":o=n?e.getUTCDate():e.getDate();break;case"H":o=n?e.getUTCHours():e.getHours();break;case"h":const i=n?e.getUTCHours():e.getHours();o=i>12?i%12:i;break;case"m":o=n?e.getUTCMinutes():e.getMinutes();break;case"s":o=n?e.getUTCSeconds():e.getSeconds();break;case"f":o=n?e.getUTCMilliseconds():e.getMilliseconds();break}return Number.isNaN(o)?r:te(o,r.length)})}function ll(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," ")+dr(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return an(n,"first");case"T":case"t":return an(n,"second");case"O":case"o":return ul(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return Us(n,t,!0)}function cl(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?an(e,"first"):e.toLocaleDateString();case"T":case"t":return n?an(e,"second"):e.toLocaleTimeString();case"O":case"o":return il(e,n);default:throw new Error("Unrecognized Date print format")}else return Us(e,t,n)}function yn(e,t,n){return e.offset!=null?ll(e,t):cl(e,t)}function hr(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function al(){return hr(-621355968e5,0)}function Bs(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 s,i=0;if(o[2]!=null){const u=o[2].split(":");i=parseInt(u[0],10)*3600+parseInt(u[1]||"0",10)*60+parseFloat(u[2]||"0"),o[3]!=null&&o[3].toUpperCase()==="PM"&&(i+=720)}if(o[4]!=null){if(o[1]!=null)s=new Date(o[1]+" UTC");else{const u=new Date;s=new Date(u.getUTCFullYear()+"/"+(u.getUTCMonth()+1)+"/"+u.getUTCDate())}if(o[4]==="Z")r="Z";else{let u=parseInt(o[5],10)*60+parseInt(o[6]||"0",10);o[4][0]==="-"&&(u*=-1),r=u,i-=u*60}}else if(o[1]!=null)s=new Date(o[1]);else{const u=new Date;s=new Date(u.getFullYear()+"/"+(u.getMonth()+1)+"/"+u.getDate())}n=new Date(s.getTime()+i*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-s.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function fl(e,t=!1){const[n,r]=Bs(e),o=r!=null?t&&r==="Z"?1:2:0;return hr(n.getTime(),o)}function dl(e,t){try{return t.contents=fl(e),!0}catch{return!1}}function hl(e){return e.kind===1?e:hr(e.getTime(),1)}function pl(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 Gs(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Br(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,s=-1;for(;(o=e.exec(t))!=null;)o.index===s?e.lastIndex++:(s=o.index,r.push(o));return r}function _l(e,t,n,r,o=0){function s(){let i=arguments[0];if(r){r--;const u=[],c=arguments.length,a=typeof arguments[c-1]!="string";let f=a?c-3:c-2;for(let l=0;l<f;l++)u.push(arguments[l]);u.index=arguments[f++],u.input=arguments[f++],a&&(u.groups=arguments[f]),i=n(u)}return i}if(typeof e=="string"){const i=e;e=pl(t,r??0),t=i,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,o)+t.substring(o).replace(e,s);if(n=n.replace(/\$0/g,i=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let i;const u=t.substring(o),c=Br(e,u),a=Br.length>r?(i=c[r-1],u.substring(0,i.index+i[0].length)):u;return t.substring(0,o)+a.replace(e,n)+t.substring(o+a.length)}else return t.replace(e,n)}const Et=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,ml=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function zs(e,t){return Mu(e,t)<0}function je(e){return{input:e,cont:gl(e)}}function Ws(e,t){return typeof t=="string"?e(t):t.cont(e)}function mt(e){return Ws(t=>t,e)}function qs(e){return Ws(t=>{throw new Error(t)},e)}function wl(e,t,n,r,o){let s="";if(t=t||"",o=o||"",Es(e))switch(o.toLowerCase()!=="x"&&(zs(e,0)?(e=Un(e,-1),s="-"):t.indexOf(" ")>=0?s=" ":t.indexOf("+")>=0&&(s="+")),r=r==null?null:parseInt(r,10),o){case"f":case"F":r=r??6,e=Qt(e,r);break;case"g":case"G":e=r!=null?un(e,r):un(e);break;case"e":case"E":e=r!=null?ln(e,r):ln(e);break;case"x":e=cn(e);break;case"X":e=cn(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=yn(e):e=Se(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=s+e;else{const i=t.indexOf("0")>=0,u=t.indexOf("-")>=0,c=u||!i?" ":"0";c==="0"?(e=Ot(e,n-s.length,c,u),e=s+e):e=Ot(s+e,n,c,u)}return e}function Zs(e,t,n,r="",o=-1){return(...s)=>{let i=r;const u=t.slice(),c=n.slice();for(const a of s){const[,,f,l,_,h]=c[0];let d=l;if(o>=0)d=o,o=-1;else if(d==="*"){if(a<0)throw new Error("Non-negative number required");o=a;continue}i+=u[0],i+=wl(a,f,d,_,h),u.splice(0,1),c.splice(0,1)}return c.length===0?(i+=u[0],e(i)):Zs(e,u,c,i,o)}}function gl(e){return t=>{Et.lastIndex=0;const n=[],r=[];let o=0,s=Et.exec(e);for(;s;){const i=s.index+(s[1]||"").length;n.push(e.substring(o,i).replace(/%%/g,"%")),r.push(s),o=Et.lastIndex,Et.lastIndex-=1,s=Et.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(o).replace(/%%/g,"%")),Zs(t,n,r))}}function yl(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(ml,(r,o,s,i,u,c)=>{if(o<0||o>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let a=t[o];if(Es(a))switch(u=u==null?null:parseInt(u,10),i){case"f":case"F":u=u??2,a=Qt(a,u);break;case"g":case"G":a=u!=null?un(a,u):un(a);break;case"e":case"E":a=u!=null?ln(a,u):ln(a);break;case"p":case"P":u=u??2,a=Qt(Un(a,100),u)+" %";break;case"d":case"D":a=u!=null?Mn(String(a),u,"0"):String(a);break;case"x":case"X":a=u!=null?Mn(cn(a),u,"0"):cn(a),i==="X"&&(a=a.toUpperCase());break;default:if(c){let f="";a=c.replace(/([0#,]+)(\.[0#]+)?/,(l,_,h)=>{zs(a,0)&&(a=Un(a,-1),f="-"),h=h==null?"":h.substring(1),a=Qt(a,Math.max(h.length,0));let[d,m]=a.split(".");m||(m="");const w=_.replace(/,/g,"").replace(/^#+/,"").length;d=Mn(d,w,"0");const g=h.replace(/#+$/,"").length;if(g>m.length?m=Sl(m,g,"0"):g<m.length&&(m=m.substring(0,g)+m.substring(g).replace(/0+$/,"")),_.indexOf(",")>0){const v=d.length%3,x=Math.floor(d.length/3);let B=v>0?d.substr(0,v)+(x>0?",":""):"";for(let D=0;D<x;D++)B+=d.substr(v+D*3,3)+(D<x-1?",":"");d=B}return m.length>0?d+"."+m:d}),a=f+a}}else a instanceof Date?a=yn(a,c||i):a=Se(a);return s=parseInt((s||" ").substring(1),10),isNaN(s)||(a=Ot(String(a),Math.abs(s)," ",s<0)),a})}function bl(e){return typeof e!="string"||e.length===0}function Ue(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Ot(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 Mn(e,t,n){return Ot(e,t,n)}function Sl(e,t,n){return Ot(e,t,n,!0)}function vl(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,s=(r&2)===2;t=t||[],t=t.filter(f=>f).map(Gs),t=t.length>0?t:["\\s"];const i=[],u=new RegExp(t.join("|"),"g");let c=!0,a=0;do{const f=u.exec(e);if(f===null){const l=s?e.substring(a).trim():e.substring(a);(!o||l.length>0)&&i.push(l),c=!1}else{const l=s?e.substring(a,f.index).trim():e.substring(a,f.index);(!o||l.length>0)&&(n!=null&&i.length+1===n?(i.push(s?e.substring(a).trim():e.substring(a)),c=!1):i.push(l)),a=u.lastIndex}}while(c);return i}function Cl(e,...t){if(t.length===0)return e.trim();const n="["+Gs(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}const Js="Collection was empty.";function Ks(e,t){return typeof e=="function"?new e(t):new Array(t)}function Gr(e,t){return e>t?e:t}function bn(e,t,n,r){const o=t|0;return e.fill(r,o,o+n)}function St(e,t,n){const r=t.length|0,o=Ks(n,r);for(let s=0;s<=r-1;s++)o[s]=e(t[s]);return o}function El(e,t){const n=Ks(t,1);return n[0]=e,n}function xl(e){return e.slice().reverse()}function kl(e,t){return t.find(e)}function Tl(e,t,n){const r=[];for(let o=0;o<=t.length-1;o++){const s=e(t[o]);if(s!=null){const i=y(s);r.push(i)}}return ee(n,Ee())?r:St(o=>o,r,n)}function Sn(e,t,n){return n.reduce(e,t)}function Ys(e,t,n){return t.reduceRight((r,o)=>e(o,r),n)}class le extends re{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+Ue("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((o,s)=>{e:for(;;){const i=o,u=s,c=i.tail,a=u.tail;if(c!=null)if(a!=null){const f=y(c),l=y(a);if(ee(i.head,u.head)){o=f,s=l;continue e}else return!1}else return!1;else return a==null}})(n,t)}GetHashCode(){return((r,o,s)=>{e:for(;;){const i=r,u=o,c=s,a=c.tail;if(a!=null){const f=y(a);if(i>18)return u|0;r=i+1,o=(u<<1)+Oe(c.head)+631*i,s=f;continue e}else return u|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((o,s)=>{e:for(;;){const i=o,u=s,c=i.tail,a=u.tail;if(c!=null)if(a!=null){const f=y(c),l=y(a),_=pe(i.head,u.head)|0;if(_===0){o=f,s=l;continue e}else return _|0}else return 1;else return a!=null?-1:0}})(this,t)|0}GetEnumerator(){return Il(this)}[Symbol.iterator](){return mn(j(this))}"System.Collections.IEnumerable.GetEnumerator"(){return j(this)}}class $l{constructor(t){this.xs=t,this.it=this.xs,this.current=Ee()}"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=y(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=Ee()}Dispose(){}}function Il(e){return new $l(e)}function J(){return new le(Ee(),void 0)}function Ut(e,t){return new le(e,t)}function pr(e){return e.tail==null}function Ml(e){return((n,r)=>{e:for(;;){const o=n,i=r.tail;if(i!=null){n=o+1,r=y(i);continue e}else return o|0}})(0,e)|0}function Xs(e){if(e.tail!=null)return e.head;throw new Error(Js+"\\nParameter name: list")}function Ae(e){const t=e.tail;if(t!=null)return y(t);throw new Error(Js+"\\nParameter name: list")}function K(){return J()}function ae(e,t){return Ut(e,t)}function xe(e){return Ut(e,J())}function $(e){return pr(e)}function C(e){return Xs(e)}function T(e){return Ae(e)}function Bt(e){const t=Ml(e)|0,n=bn(new Array(t),0,t,null);return((o,s)=>{e:for(;;){const i=o,u=s;if(!pr(u)){n[i]=Xs(u),o=i+1,s=Ae(u);continue e}break}})(0,e),n}function ke(e,t,n){let r=t,o=n;for(;!pr(o);)r=e(r,C(o)),o=Ae(o);return r}function _r(e){return ke((t,n)=>Ut(n,t),J(),e)}function Pl(e,t,n){return Ys(e,Bt(t),n)}function fn(e,t){ke((n,r)=>{e(r)},void 0,t)}function N(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=Ut(e[r],n);return n}function fe(e){return N(e,J())}function Ol(e){let t,n;if(Ce(e))return fe(e);if(e instanceof le)return e;{const r=J();let o=r;const s=j(e);try{for(;s["System.Collections.IEnumerator.MoveNext"]();){const c=s["System.Collections.Generic.IEnumerator`1.get_Current"]();o=(t=o,n=new le(c,void 0),t.tail=n,n)}}finally{R(s)}const i=o,u=J();return i.tail=u,Ae(r)}}function mr(e,t){return ke((n,r)=>Ut(r,n),t,_r(e))}function it(e,t){const n=J(),r=ke((s,i)=>{const u=new le(e(i),void 0);return s.tail=u,u},n,t),o=J();return r.tail=o,Ae(n)}function Al(e,t){const n=J(),r=ke((s,i)=>{if(e(i)){const u=new le(i,void 0);return s.tail=u,u}else return s},n,t),o=J();return r.tail=o,Ae(n)}function Rl(e,t){const n=J(),r=J(),o=n,s=ke((c,a)=>{let f,l;const _=c[0],h=c[1];return e(a)?[(f=new le(a,void 0),_.tail=f,f),h]:[_,(l=new le(a,void 0),h.tail=l,l)]},[o,r],t),i=J();s[0].tail=i;const u=J();return s[1].tail=u,[Ae(o),Ae(r)]}function Nl(e,t){const n=J(),r=ke((s,i)=>{const u=e(i);if(u==null)return s;{const c=new le(y(u),void 0);return s.tail=c,c}},n,t),o=J();return r.tail=o,Ae(n)}function Fl(e,t){return ke((n,r)=>n&&e(r),!0,t)}function Dl(e){throw new Error(e)}const Vl="Enumeration already finished.",Ll="Enumeration has not started. Call MoveNext.",Qs="The input sequence has an insufficient number of elements.",Hl="Reset is not supported on this enumerator.";function jl(){throw new Error(Hl)}function wr(){throw new Error(Ll)}function zn(){throw new Error(Vl)}class Ul{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const o=j(t);try{for(;n<4&&o["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+Se(o["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{R(o)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return mn(j(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function Bl(e){return new Ul(e)}class Gl{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"(){jl()}Dispose(){this.dispose()}}function vn(e,t,n){return new Gl(e,t,n)}function zl(e){let t,n,r=!1,o=!1,s;const i=()=>{if(o=!0,n!=null){const u=y(n);try{R(u)}finally{n=void 0}}if(t!=null){const u=y(t);try{R(u)}finally{t=void 0}}};return vn(()=>(r?o&&zn():wr(),s!=null?y(s):zn()),()=>{let u;if(r||(r=!0),o)return!1;{let c;for(;c==null;){const a=t,f=n;if(a!=null)if(f!=null){const l=y(f);if(l["System.Collections.IEnumerator.MoveNext"]())s=ne(l["System.Collections.Generic.IEnumerator`1.get_Current"]()),c=!0;else try{R(l)}finally{n=void 0}}else{const l=y(a);l["System.Collections.IEnumerator.MoveNext"]()?n=(u=l["System.Collections.Generic.IEnumerator`1.get_Current"](),j(u)):(i(),c=!1)}else t=j(e)}return y(c)}},()=>{o||i()})}function Wl(e,t){return vn(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{R(t)}finally{e()}})}function ei(e,t,n){let r=!1,o,s=ne(e());const i=()=>{if(s!=null){const c=y(s);try{n(c)}finally{s=void 0}}},u=()=>{try{i()}finally{o=void 0}};return vn(()=>(r||wr(),o!=null?y(o):zn()),()=>{if(r||(r=!0),s!=null){const c=y(s);let a;try{a=t(c)}catch(f){throw u(),f}return a!=null?(o=a,!0):(u(),!1)}else return!1},i)}function ql(e,t){let n,r=t;return vn(()=>{if(n!=null){const o=y(n)[0];return y(n)[1],o}else return wr()},()=>(n=e(r),n!=null?(y(n)[0],r=y(n)[1],!0):!1),()=>{})}function Zl(e,t){t==null&&Dl(e)}function vt(e){return Bl(e)}function Be(e){return Zl("source",e),j(e)}function z(e){return vt(()=>j(e()))}function ti(e){return vt(()=>zl(e))}function Jl(e,t){return vt(()=>ql(e,t))}function W(e){return z(()=>El(e))}function Kl(e){return e instanceof le?Bt(e):Array.from(e)}function ft(e){return Ce(e)?fe(e):e instanceof le?e:Ol(e)}function Yl(e,t,n){return vt(()=>ei(e,t,n))}function ni(e,t,n){return vt(()=>{let r=-1;return ei(e,o=>(r=r+1|0,t(r,o)),n)})}function Le(e,t){return ti([e,t])}function Xl(e,t,n){const r=Be(t);try{const o=Be(n);try{let s=0,i=r["System.Collections.IEnumerator.MoveNext"](),u=o["System.Collections.IEnumerator.MoveNext"]();for(;s===0&&i&&u;)s=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),o["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,s===0&&(i=r["System.Collections.IEnumerator.MoveNext"](),u=o["System.Collections.IEnumerator.MoveNext"]());return(s!==0?s:i?1:u?-1:0)|0}finally{R(o)}}finally{R(r)}}function rt(e,t,n){const r=Be(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{R(r)}}function Cn(e,t,n){const r=Be(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{R(r)}}function ri(e,t){Cn((n,r)=>{e(r)},void 0,t)}function de(e,t){return Yl(()=>Be(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?ne(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{R(n)})}function Ql(e,t){return ni(()=>Be(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?ne(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{R(n)})}function ec(e){return z(()=>xl(Kl(e)))}function tc(e,t){return vt(()=>{const n=Be(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Qs+"\\nParameter name: source");return Wl(()=>{},n)}catch(r){throw R(n),r}})}function nc(e,t){return ni(()=>Be(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return ne(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(Qs+"\\nParameter name: source")}else return},n=>{R(n)})}function rc(e,t){return z(()=>ti(de(e,t)))}class oi{constructor(t,n){this.k=t,this.v=n}}function At(e,t){return new oi(e,t)}function H(e){return e.k}function Q(e){return e.v}class L extends oi{constructor(t,n,r,o,s){super(t,n),this.left=r,this.right=o,this.h=s|0}}function Mt(e,t,n,r,o){return new L(e,t,n,r,o)}function q(e){return e.left}function Z(e){return e.right}function Ve(e){return e.h}function si(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=y(r);if(o instanceof L){const s=o;e=si(n+1,q(s)),t=Z(s);continue e}else return n+1|0}else return n|0}}function oc(e){return si(0,e)}function me(e,t,n,r){let o,s,i;const u=e;if(u!=null){const l=y(u);i=l instanceof L?(o=l,Ve(o)):1}else i=0;let c;const a=r;if(a!=null){const l=y(a);c=l instanceof L?(s=l,Ve(s)):1}else c=0;const f=(i<c?c:i)|0;return f===0?At(t,n):Mt(t,n,e,r,f+1)}function zr(e,t,n,r){let o,s,i,u,c,a,f,l,_;const h=e;if(h!=null){const w=y(h);_=w instanceof L?(o=w,Ve(o)):1}else _=0;let d;const m=r;if(m!=null){const w=y(m);d=w instanceof L?(s=w,Ve(s)):1}else d=0;if(d>_+2){const w=y(r);if(w instanceof L){const g=w;if(i=q(g),(i!=null?(u=y(i),u instanceof L?(c=u,Ve(c)):1):0)>_+1){const v=y(q(g));if(v instanceof L){const x=v;return me(me(e,t,n,q(x)),H(x),Q(x),me(Z(x),H(g),Q(g),Z(g)))}else throw new Error("internal error: Map.rebalance")}else return me(me(e,t,n,q(g)),H(g),Q(g),Z(g))}else throw new Error("internal error: Map.rebalance")}else if(_>d+2){const w=y(e);if(w instanceof L){const g=w;if(a=Z(g),(a!=null?(f=y(a),f instanceof L?(l=f,Ve(l)):1):0)>d+1){const v=y(Z(g));if(v instanceof L){const x=v;return me(me(q(g),H(g),Q(g),q(x)),H(x),Q(x),me(Z(x),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return me(q(g),H(g),Q(g),me(Z(g),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return me(e,t,n,r)}function wt(e,t,n,r){if(r!=null){const o=y(r),s=e.Compare(t,H(o))|0;if(o instanceof L){const i=o;return s<0?zr(wt(e,t,n,q(i)),H(i),Q(i),Z(i)):s===0?Mt(t,n,q(i),Z(i),Ve(i)):zr(q(i),H(i),Q(i),wt(e,t,n,Z(i)))}else return s<0?Mt(t,n,void 0,r,2):s===0?At(t,n):Mt(t,n,r,void 0,2)}else return At(t,n)}function ii(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=y(s),u=r.Compare(o,H(i))|0;if(u===0)return ne(Q(i));if(i instanceof L){const c=i;e=r,t=o,n=u<0?q(c):Z(c);continue e}else return}else return}}function sc(e,t,n){const r=ii(e,t,n);if(r==null)throw new Error;return y(r)}function ic(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=y(s),u=r.Compare(o,H(i))|0;if(i instanceof L){const c=i;if(u<0){e=r,t=o,n=q(c);continue e}else{if(u===0)return!0;e=r,t=o,n=Z(c);continue e}}else return u===0}else return!1}}function ui(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=y(r);if(o instanceof L){const s=o;ui(n,q(s)),n(H(s),Q(s)),e=n,t=Z(s);continue e}else n(H(o),Q(o))}break}}function uc(e,t){ui(e,t)}function Wn(e,t){if(t!=null){const n=y(t);if(n instanceof L){const r=n,o=Wn(e,q(r)),s=e(H(r),Q(r)),i=Wn(e,Z(r));return Mt(H(r),s,o,i,Ve(r))}else return At(H(n),e(H(n),Q(n)))}else return void 0}function lc(e,t){return Wn(e,t)}function cc(e,t,n){let r=n;uc((o,s)=>{t[r]=[o,s],r=r+1|0},e)}function ac(e,t){return ke((n,r)=>wt(e,r[0],r[1],n),void 0,t)}function fc(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s["System.Collections.IEnumerator.MoveNext"]()){const i=s["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=wt(r,i[0],i[1],o),n=s;continue e}else return o}}function dc(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=t[r];n=wt(e,o[0],o[1],n)}return n}function li(e,t){if(Ce(t))return dc(e,t);if(t instanceof le)return ac(e,t);{const n=j(t);try{return fc(e,void 0,n)}finally{R(n)}}}class hc extends re{constructor(t,n){super(),this.stack=t,this.started=n}}function ci(e){e:for(;;){const t=e;if($(t))return K();{const n=T(t),r=C(t);if(r!=null){const o=y(r);if(o instanceof L){const s=o;e=N([q(s),At(H(s),Q(s)),Z(s)],n);continue e}else return t}else{e=n;continue e}}}}function Wr(e){return new hc(ci(xe(e)),!1)}function pc(){throw new Error("enumeration not started")}function _c(){throw new Error("enumeration already finished")}function qr(e){if(e.started){const t=e.stack;if($(t))return _c();if(C(t)!=null){const n=y(C(t));if(n instanceof L)throw new Error("Please report error: Map iterator, unexpected stack for current");return[H(n),Q(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return pc()}function mc(e){if(e.started){const t=e.stack;if($(t))return!1;if(C(t)!=null){if(y(C(t))instanceof L)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=ci(T(t)),!$(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!$(e.stack)}function Zr(e){let t=Wr(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return qr(t)},"System.Collections.IEnumerator.get_Current"(){return qr(t)},"System.Collections.IEnumerator.MoveNext"(){return mc(t)},"System.Collections.IEnumerator.Reset"(){t=Wr(e)},Dispose(){}}}class dn{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Sc(this)|0}Equals(t){const n=this;if(t instanceof dn){const r=t,o=j(n);try{const s=j(r);try{const i=()=>{const u=o["System.Collections.IEnumerator.MoveNext"]();if(u===s["System.Collections.IEnumerator.MoveNext"]())if(u){const c=o["System.Collections.Generic.IEnumerator`1.get_Current"](),a=s["System.Collections.Generic.IEnumerator`1.get_Current"]();return ee(c[0],a[0])&&ee(c[1],a[1])?i():!1}else return!0;else return!1};return i()}finally{R(s)}}finally{R(o)}}else return!1}toString(){return"map ["+Ue("; ",de(n=>yl("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return Zr(this.tree)}[Symbol.iterator](){return mn(j(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Zr(this.tree)}CompareTo(t){const n=this;if(t instanceof dn)return Xl((o,s)=>{const i=n.comparer.Compare(o[0],s[0])|0;return(i!==0?i:pe(o[1],s[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 Kr(n,t[0])&&ee(Jr(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){cc(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Pn(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Pn(this)|0}get size(){return Pn(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return de(n=>[n[0],n[1]],this)}get(t){return Jr(this,t)}has(t){return Kr(this,t)}keys(){return de(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return de(n=>n[1],this)}forEach(t,n){const r=this;ri(o=>{t(o[1],o[0],r)},r)}}function Gt(e,t){return new dn(e,t)}function wc(e){return Gt(e,void 0)}function gc(e,t,n){return Gt(e.comparer,wt(e.comparer,t,n,e.tree))}function Jr(e,t){return sc(e.comparer,t,e.tree)}function yc(e,t){return Gt(e.comparer,lc(t,e.tree))}function Pn(e){return oc(e.tree)}function Kr(e,t){return ic(e.comparer,t,e.tree)}function bc(e,t){return ii(e.comparer,t,e.tree)}function Sc(e){const t=(o,s)=>(o<<1)+s+631;let n=0;const r=j(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const o=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,Oe(o[0]))|0,n=t(n,Oe(o[1]))|0}}finally{R(r)}return n|0}function ai(e,t,n){return gc(n,e,t)}function fi(e,t){return bc(t,e)}function di(e,t){return yc(t,e)}function vc(e,t){return Gt(t,li(t,e))}function Cc(e,t){return Gt(t,li(t,e))}function gr(e){return wc(e)}function Ec(e){return new Ls("Content-Type",e)}function hi(e){return new Ls("Authorization",e)}const We=new jt("",new fr(0,[]),K(),!1,void 0,void 0,void 0,new Hs(0,[]));new js(0,"","","",gr({Compare:wn}),new ot(0,[""]));function Yr(e,t){return bl(t)?[t]:vl(t,[e],void 0,0)}function xc(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 pi(e){return new jt(e,We.method,We.headers,We.withCredentials,We.overridenMimeType,We.overridenResponseType,We.timeout,We.content)}function _i(e,t){return new jt(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function qn(e,t){return new jt(t.url,t.method,mr(t.headers,xe(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function kc(e,t){return new jt(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function mi(e){return nl(t=>{const n=new XMLHttpRequest;n.open(xc(e.method),e.url),n.onreadystatechange=()=>{let c,a,f,l,_,h,d;n.readyState===4&&t[0]((c=(a=n.responseType,a===""||a==="text"?n.responseText:""),f=n.status|0,l=n.responseType,_=(h=n.responseType,h===""?new ot(0,[n.responseText]):h==="text"?new ot(0,[n.responseText]):h==="arraybuffer"?new ot(2,[n.response]):h==="blob"?new ot(1,[n.response]):new ot(3,[n.response])),d=Cc(Tl(m=>{const w=fe(Yr(":",m));if(!$(w))return[C(w).toLocaleLowerCase(),Ue(":",T(w)).trim()]},Yr(`\r
|
|
4
|
+
`,n.getAllResponseHeaders())),{Compare:wn}),new js(f,c,l,n.responseURL,d,_)))};const r=j(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const c=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(c.fields[0],c.fields[1])}}finally{R(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(o!=null){const c=o;n.overrideMimeType(c)}const s=e.overridenResponseType;if(s!=null)switch(s.tag){case 1:{n.responseType="blob";break}case 2:{n.responseType="arraybuffer";break}default:n.responseType="text"}const i=e.timeout;if(i!=null){const c=i|0;n.timeout=c|0}const u=e.content;switch(u.tag){case 1:{n.send(ne(u.fields[0]));break}case 3:{n.send(ne(u.fields[0]));break}case 2:{n.send(ne(u.fields[0]));break}default:n.send()}})}const Ke={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function On(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 Tc(e,t){switch(t){case Ke.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case Ke.SnakeCase:return On(e,"_");case Ke.SnakeCaseAllCaps:return On(e,"_").toUpperCase();case Ke.KebabCase:return On(e,"-");case Ke.None:default:return e}}function $c(e,t=Ke.None){const n={},r=t;function o(i){throw new Error("Cannot infer key and value of "+String(i))}function s(i,u,c){i=Tc(i,u),n[i]=c}for(let i of e){let u=Ke.None;if(i==null&&o(i),i instanceof U){const c=i.cases()[i.tag];i=i.fields.length===0?c:[c].concat(i.fields),u=r}if(Array.isArray(i))switch(i.length){case 0:o(i);break;case 1:s(i[0],u,!0);break;case 2:const c=i[1];s(i[0],u,c);break;default:s(i[0],u,i.slice(1))}else typeof i=="string"?s(i,u,!0):o(i)}return n}class b extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class En extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function Xr(e){return e.slice(void 0,0+1).toLowerCase()+e.slice(1,e.length)}function wi(e,t){switch(e.tag){case 2:return _l(Xr(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Xr(t)}}const Ic=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Qr=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Mc=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Pc(e){function t(r){return r.replace(Qr,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Ic.test(n))return Cl(n,"{","}","(",")");if(Qr.test(n))return t(n);if(Mc.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 Oc(e,t){try{return t.contents=Pc(e),!0}catch{return!1}}var Zn;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(Zn||(Zn={}));function Ac(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}function eo(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 Rc(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 Nc(e,t){if(t&Zn.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 Fc(e,t,n){const o=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(o!=null){const[,,s,i]=o;if(n=n||Nc(s,t),!Rc(n).test(i))return Ac(o,n)}return null}function Dc(e,t,n,r,o){const s=Fc(e,t,o);if(s!=null){let i=Number.parseInt(s.sign+s.digits,s.radix);if(!Number.isNaN(i)){const[u,c]=eo(!0,r);!n&&s.radix!==10&&i>=u&&i<=c&&(i=i<<32-r>>32-r);const[a,f]=eo(n,r);if(i>=a&&i<=f)return i}}throw new Error("Input string was not in a correct format.")}function Ct(e,t,n,r,o){try{return o.contents=Dc(e,t,n,r),!0}catch{return!1}}function gi(e,t){Vc(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function Vc(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 Lc(){return gi(-621355968e5,0)}function Hc(e){const[t,n]=Bs(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return gi(t.getTime(),r)}function jc(e,t){try{return t.contents=Hc(e),!0}catch{return!1}}function zt(e){return e<0?Math.ceil(e):Math.floor(e)}function to(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return Uc(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 Uc(e){return Number(BigInt(e)/10000n)}function Bc(e){return zt(e/864e5)}function Gc(e){return zt(e%864e5/36e5)}function zc(e){return zt(e%36e5/6e4)}function Wc(e){return zt(e%6e4/1e3)}function qc(e){return zt(e%1e3)}function Zc(e,t="c",n){if(["c","g","G"].indexOf(t)===-1)throw new Error("Custom formats are not supported");const r=Math.abs(Bc(e)),o=Math.abs(Gc(e)),s=Math.abs(zc(e)),i=Math.abs(Wc(e)),u=Math.abs(qc(e));return`${e<0?"-":""}${r===0&&(t==="c"||t==="g")?"":t==="c"?r+".":r+":"}${t==="g"?o:te(o,2)}:${te(s,2)}:${te(i,2)}${u===0&&(t==="c"||t==="g")?"":t==="g"?"."+te(u,3):"."+fu(u,3,7)}`}function Jc(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 to(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,s=0,i=0;const u=r[1]!=null&&r[1]==="-"?-1:1,c=+r[4],a=+r[5];if(r[3]!=null&&(o=+r[3]),r[7]!=null&&(i=+r[7]),r[8]!=null)switch(r[8].length){case 1:s=+r[8]*100;break;case 2:s=+r[8]*10;break;case 3:s=+r[8];break;case 4:s=+r[8]/10;break;case 5:s=+r[8]/100;break;case 6:s=+r[8]/1e3;break;case 7:s=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return u*to(o,c,a,i,s)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function Kc(e,t){try{return t.contents=Jc(e),!0}catch{return!1}}class yi{constructor(t){this.k=t}}function se(e){return new yi(e)}function E(e){return e.k}class I extends yi{constructor(t,n,r,o){super(t),this.left=n,this.right=r,this.h=o|0}}function ie(e,t,n,r){return new I(e,t,n,r)}function O(e){return e.left}function M(e){return e.right}function ut(e){return e.h}function bi(e,t){e:for(;;){const n=e,r=t;if(n!=null){const o=y(n);if(o instanceof I){const s=o;e=O(s),t=bi(M(s),r+1);continue e}else return r+1|0}else return r|0}}function Yc(e){return bi(e,0)}function we(e,t,n){let r,o,s;const i=e;if(i!=null){const f=y(i);s=f instanceof I?(r=f,ut(r)):1}else s=0;let u;const c=n;if(c!=null){const f=y(c);u=f instanceof I?(o=f,ut(o)):1}else u=0;const a=(s<u?u:s)|0;return a===0?se(t):ie(t,e,n,a+1)}function no(e,t,n){let r,o,s,i,u,c,a,f,l;const _=e;if(_!=null){const m=y(_);l=m instanceof I?(r=m,ut(r)):1}else l=0;let h;const d=n;if(d!=null){const m=y(d);h=m instanceof I?(o=m,ut(o)):1}else h=0;if(h>l+2){const m=y(n);if(m instanceof I){const w=m;if(s=O(w),(s!=null?(i=y(s),i instanceof I?(u=i,ut(u)):1):0)>l+1){const g=y(O(w));if(g instanceof I){const v=g;return we(we(e,t,O(v)),E(v),we(M(v),E(w),M(w)))}else throw new Error("internal error: Set.rebalance")}else return we(we(e,t,O(w)),E(w),M(w))}else throw new Error("internal error: Set.rebalance")}else if(l>h+2){const m=y(e);if(m instanceof I){const w=m;if(c=M(w),(c!=null?(a=y(c),a instanceof I?(f=a,ut(f)):1):0)>h+1){const g=y(M(w));if(g instanceof I){const v=g;return we(we(O(w),E(w),O(v)),E(v),we(M(v),t,n))}else throw new Error("internal error: Set.rebalance")}else return we(O(w),E(w),we(M(w),t,n))}else throw new Error("internal error: Set.rebalance")}else return we(e,t,n)}function gt(e,t,n){if(n!=null){const r=y(n),o=e.Compare(t,E(r))|0;if(r instanceof I){const s=r;return o<0?no(gt(e,t,O(s)),E(s),M(s)):o===0?n:no(O(s),E(s),gt(e,t,M(s)))}else{const s=e.Compare(t,E(r))|0;return s<0?ie(t,void 0,n,2):s===0?n:ie(t,n,void 0,2)}}else return se(t)}function Si(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=y(s),u=r.Compare(o,E(i))|0;if(i instanceof I){const c=i;if(u<0){e=r,t=o,n=O(c);continue e}else{if(u===0)return!0;e=r,t=o,n=M(c);continue e}}else return u===0}else return!1}}function vi(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=y(r);if(o instanceof I){const s=o;vi(n,O(s)),n(E(s)),e=n,t=M(s);continue e}else n(E(o))}break}}class Xc extends re{constructor(t,n){super(),this.stack=t,this.started=n}}function Ci(e){e:for(;;){const t=e;if($(t))return K();{const n=C(t),r=T(t);if(n!=null){const o=y(n);if(o instanceof I){const s=o;e=N([O(s),se(E(s)),M(s)],r);continue e}else return t}else{e=r;continue e}}}}function ro(e){return new Xc(Ci(xe(e)),!1)}function Qc(){throw new Error("Enumeration not started")}function ea(){throw new Error("Enumeration already started")}function oo(e){if(e.started){const t=e.stack;if($(t))return ea();if(C(t)!=null){const n=y(C(t));return E(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return Qc()}function ta(e){if(e.started){const t=e.stack;if($(t))return!1;if(C(t)!=null){if(y(C(t))instanceof I)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Ci(T(t)),!$(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!$(e.stack)}function so(e){let t=ro(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return oo(t)},"System.Collections.IEnumerator.get_Current"(){return oo(t)},"System.Collections.IEnumerator.MoveNext"(){return ta(t)},"System.Collections.IEnumerator.Reset"(){t=ro(e)},Dispose(){}}}function na(e,t,n){e:for(;;){const r=e,o=t,s=n;if($(o))return $(s)?0:-1;if($(s))return 1;if(C(s)!=null)if(C(o)!=null){const i=y(C(o)),u=y(C(s));if(i instanceof I){const c=i;if(O(c)==null)if(u instanceof I){const a=u;if(O(a)==null){const f=r.Compare(E(c),E(a))|0;if(f!==0)return f|0;e=r,t=ae(M(c),T(o)),n=ae(M(a),T(s));continue e}else{let f,l,_,h,d;switch($(o)?$(s)?f=2:C(s)!=null?(f=1,h=T(s),d=y(C(s))):f=2:C(o)!=null?(f=0,l=T(o),_=y(C(o))):$(s)?f=2:C(s)!=null?(f=1,h=T(s),d=y(C(s))):f=2,f){case 0:if(_ instanceof I){const m=_;e=r,t=N([O(m),ie(E(m),void 0,M(m),0)],l),n=s;continue e}else{e=r,t=N([void 0,se(E(_))],l),n=s;continue e}case 1:if(d instanceof I){const m=d;e=r,t=o,n=N([O(m),ie(E(m),void 0,M(m),0)],h);continue e}else{e=r,t=o,n=N([void 0,se(E(d))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const a=r.Compare(E(c),E(u))|0;if(a!==0)return a|0;e=r,t=ae(M(c),T(o)),n=ae(void 0,T(s));continue e}else{let a,f,l,_,h;switch($(o)?$(s)?a=2:C(s)!=null?(a=1,_=T(s),h=y(C(s))):a=2:C(o)!=null?(a=0,f=T(o),l=y(C(o))):$(s)?a=2:C(s)!=null?(a=1,_=T(s),h=y(C(s))):a=2,a){case 0:if(l instanceof I){const d=l;e=r,t=N([O(d),ie(E(d),void 0,M(d),0)],f),n=s;continue e}else{e=r,t=N([void 0,se(E(l))],f),n=s;continue e}case 1:if(h instanceof I){const d=h;e=r,t=o,n=N([O(d),ie(E(d),void 0,M(d),0)],_);continue e}else{e=r,t=o,n=N([void 0,se(E(h))],_);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(u instanceof I){const c=u;if(O(c)==null){const a=r.Compare(E(i),E(c))|0;if(a!==0)return a|0;e=r,t=ae(void 0,T(o)),n=ae(M(c),T(s));continue e}else{let a,f,l,_,h;switch($(o)?$(s)?a=2:C(s)!=null?(a=1,_=T(s),h=y(C(s))):a=2:C(o)!=null?(a=0,f=T(o),l=y(C(o))):$(s)?a=2:C(s)!=null?(a=1,_=T(s),h=y(C(s))):a=2,a){case 0:if(l instanceof I){const d=l;e=r,t=N([O(d),ie(E(d),void 0,M(d),0)],f),n=s;continue e}else{e=r,t=N([void 0,se(E(l))],f),n=s;continue e}case 1:if(h instanceof I){const d=h;e=r,t=o,n=N([O(d),ie(E(d),void 0,M(d),0)],_);continue e}else{e=r,t=o,n=N([void 0,se(E(h))],_);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const c=r.Compare(E(i),E(u))|0;if(c!==0)return c|0;e=r,t=T(o),n=T(s);continue e}}else{y(C(s));let i,u,c,a,f;switch($(o)?$(s)?i=2:C(s)!=null?(i=1,a=T(s),f=y(C(s))):i=2:C(o)!=null?(i=0,u=T(o),c=y(C(o))):$(s)?i=2:C(s)!=null?(i=1,a=T(s),f=y(C(s))):i=2,i){case 0:if(c instanceof I){const l=c;e=r,t=N([O(l),ie(E(l),void 0,M(l),0)],u),n=s;continue e}else{e=r,t=N([void 0,se(E(c))],u),n=s;continue e}case 1:if(f instanceof I){const l=f;e=r,t=o,n=N([O(l),ie(E(l),void 0,M(l),0)],a);continue e}else{e=r,t=o,n=N([void 0,se(E(f))],a);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(C(o)!=null){y(C(o));let i,u,c,a,f;switch($(o)?$(s)?i=2:C(s)!=null?(i=1,a=T(s),f=y(C(s))):i=2:C(o)!=null?(i=0,u=T(o),c=y(C(o))):$(s)?i=2:C(s)!=null?(i=1,a=T(s),f=y(C(s))):i=2,i){case 0:if(c instanceof I){const l=c;e=r,t=N([O(l),ie(E(l),void 0,M(l),0)],u),n=s;continue e}else{e=r,t=N([void 0,se(E(c))],u),n=s;continue e}case 1:if(f instanceof I){const l=f;e=r,t=o,n=N([O(l),ie(E(l),void 0,M(l),0)],a);continue e}else{e=r,t=o,n=N([void 0,se(E(f))],a);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=T(o),n=T(s);continue e}}}function io(e,t,n){return t==null?n==null?0:-1:n==null?1:na(e,xe(t),xe(n))|0}function ra(e,t,n){let r=n;vi(o=>{t[r]=o,r=r+1|0},e)}function oa(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s["System.Collections.IEnumerator.MoveNext"]()){e=r,t=gt(r,s["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=s;continue e}else return o}}function sa(e,t){return Sn((n,r)=>gt(e,r,n),void 0,t)}function ia(e,t){return ke((n,r)=>gt(e,r,n),void 0,t)}function Ei(e,t){if(Ce(t))return sa(e,t);if(t instanceof le)return ia(e,t);{const n=j(t);try{return oa(e,void 0,n)}finally{R(n)}}}class yr{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return ca(this)|0}Equals(t){let n;const r=this;return t instanceof yr&&(n=t,io(dt(r),ge(r),ge(n))===0)}toString(){return"set ["+Ue("; ",de(n=>Se(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return io(dt(n),ge(n),ge(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 Si(dt(n),t,ge(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){ra(ge(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return An(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return An(this)|0}GetEnumerator(){return so(ge(this))}[Symbol.iterator](){return mn(j(this))}"System.Collections.IEnumerable.GetEnumerator"(){return so(ge(this))}get size(){return An(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 xi(this,t)}keys(){return de(n=>n,this)}values(){return de(n=>n,this)}entries(){return de(n=>[n,n],this)}forEach(t,n){const r=this;ri(o=>{t(o,o,r)},r)}}function xn(e,t){return new yr(e,t)}function dt(e){return e.comparer}function ge(e){return e.tree}function ua(e){return xn(e,void 0)}function la(e,t){return xn(dt(e),gt(dt(e),t,ge(e)))}function An(e){return Yc(ge(e))}function xi(e,t){return Si(dt(e),t,ge(e))}function ca(e){let t=0;const n=j(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+Oe(r)+631|0}}finally{R(n)}return Math.abs(t)|0}function Jn(e,t){return xi(t,e)}function aa(e,t){return la(t,e)}function fa(e){return ua(e)}function da(e,t){return xn(t,Ei(t,e))}function ha(e,t){return xn(t,Ei(t,e))}function xt(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
|
|
5
5
|
`:" ")+(JSON.stringify(t,null,4)+"")}catch{return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?`
|
|
6
|
-
`:" ")}}function
|
|
7
|
-
Reason: `+t.fields[2]:t.tag===3?
|
|
6
|
+
`:" ")}}function pa(e,t){const n=t.tag===2?xt(t.fields[0],t.fields[1],!0):t.tag===1?xt(t.fields[0],t.fields[1],!1)+`
|
|
7
|
+
Reason: `+t.fields[2]:t.tag===3?xt(t.fields[0],t.fields[1],!0):t.tag===4?xt(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
|
|
8
8
|
`+(JSON.stringify(t.fields[1],null,4)+""):t.tag===7?`The following errors were found:
|
|
9
9
|
|
|
10
10
|
`+Ue(`
|
|
11
11
|
|
|
12
|
-
`,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:
|
|
12
|
+
`,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:xt(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function ki(e,t,n){const r=t(e,n);if(r.tag===1){const o=r.fields[0];return new p(1,[pa(o[0],o[1])])}else return new p(0,[r.fields[0]])}function _a(e,t){try{return ki("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new p(1,["Given an invalid JSON: "+n.message]);throw n}}function Ti(e,t){return typeof t=="string"?new p(0,[t]):new p(1,[[e,new b(0,["a string",t])]])}function ma(e,t){if(typeof t=="string"){const n=t;return n.length===1?new p(0,[n[0]]):new p(1,[[e,new b(0,["a single character string",t])]])}else return new p(1,[[e,new b(0,["a char",t])]])}function wa(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[Oc(t,new oe(()=>r,o=>{r=o})),r],n[0]?new p(0,[n[1]]):new p(1,[[e,new b(0,["a guid",t])]])}else return new p(1,[[e,new b(0,["a guid",t])]])}function ga(e,t){return t==null?new p(0,[void 0]):new p(1,[[e,new b(0,["null",t])]])}const uo=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-128<=o&&o<=127?new p(0,[(o+128&255)-128]):new p(1,[[n,new b(1,["a sbyte",o,"Value was either too large or too small for a sbyte"])]]):new p(1,[[n,new b(1,["a sbyte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[Ct(r,511,!1,8,new oe(()=>s,i=>{s=i|0})),s],o[0]?new p(0,[o[1]]):new p(1,[[n,new b(0,["a sbyte",r])]])}else return new p(1,[[n,new b(0,["a sbyte",r])]])},lo=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=255?new p(0,[o&255]):new p(1,[[n,new b(1,["a byte",o,"Value was either too large or too small for a byte"])]]):new p(1,[[n,new b(1,["a byte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[Ct(r,511,!0,8,new oe(()=>s,i=>{s=i})),s],o[0]?new p(0,[o[1]]):new p(1,[[n,new b(0,["a byte",r])]])}else return new p(1,[[n,new b(0,["a byte",r])]])},co=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-32768<=o&&o<=32767?new p(0,[(o+32768&65535)-32768]):new p(1,[[n,new b(1,["an int16",o,"Value was either too large or too small for an int16"])]]):new p(1,[[n,new b(1,["an int16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[Ct(r,511,!1,16,new oe(()=>s,i=>{s=i|0})),s],o[0]?new p(0,[o[1]]):new p(1,[[n,new b(0,["an int16",r])]])}else return new p(1,[[n,new b(0,["an int16",r])]])},ao=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=65535?new p(0,[o&65535]):new p(1,[[n,new b(1,["an uint16",o,"Value was either too large or too small for an uint16"])]]):new p(1,[[n,new b(1,["an uint16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[Ct(r,511,!0,16,new oe(()=>s,i=>{s=i})),s],o[0]?new p(0,[o[1]]):new p(1,[[n,new b(0,["an uint16",r])]])}else return new p(1,[[n,new b(0,["an uint16",r])]])},fo=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-2147483648<=o&&o<=2147483647?new p(0,[~~o]):new p(1,[[n,new b(1,["an int",o,"Value was either too large or too small for an int"])]]):new p(1,[[n,new b(1,["an int",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[Ct(r,511,!1,32,new oe(()=>s,i=>{s=i|0})),s],o[0]?new p(0,[o[1]]):new p(1,[[n,new b(0,["an int",r])]])}else return new p(1,[[n,new b(0,["an int",r])]])},ho=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=4294967295?new p(0,[o>>>0]):new p(1,[[n,new b(1,["an uint32",o,"Value was either too large or too small for an uint32"])]]):new p(1,[[n,new b(1,["an uint32",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[Ct(r,511,!0,32,new oe(()=>s,i=>{s=i})),s],o[0]?new p(0,[o[1]]):new p(1,[[n,new b(0,["an uint32",r])]])}else return new p(1,[[n,new b(0,["an uint32",r])]])};function ya(e,t){return typeof t=="boolean"?new p(0,[t]):new p(1,[[e,new b(0,["a boolean",t])]])}function ba(e,t){return typeof t=="number"?new p(0,[t]):new p(1,[[e,new b(0,["a float",t])]])}function Sa(e,t){return typeof t=="number"?new p(0,[t]):new p(1,[[e,new b(0,["a float32",t])]])}function va(e,t){if(typeof t=="string"){let n,r=al();return n=[dl(t,new oe(()=>r,o=>{r=o})),r],n[0]?new p(0,[hl(n[1])]):new p(1,[[e,new b(0,["a datetime",t])]])}else return new p(1,[[e,new b(0,["a datetime",t])]])}function Ca(e,t){if(typeof t=="string"){let n,r=Lc();return n=[jc(t,new oe(()=>r,o=>{r=o})),r],n[0]?new p(0,[n[1]]):new p(1,[[e,new b(0,["a datetimeoffset",t])]])}else return new p(1,[[e,new b(0,["a datetime",t])]])}function Ea(e,t){if(typeof t=="string"){let n,r=0;return n=[Kc(t,new oe(()=>r,o=>{r=o})),r],n[0]?new p(0,[n[1]]):new p(1,[[e,new b(0,["a timespan",t])]])}else return new p(1,[[e,new b(0,["a timespan",t])]])}function po(e,t,n,r){let o;const s=n+".["+Ye(e)+"]";if(Array.isArray(r)){const i=r;return e<i.length?t(s,i[e]):new p(1,[[s,new b(5,["a longer array. Need index `"+Ye(e)+"` but there are only `"+(o=i.length,Ye(o))+"` entries",r])]])}else return new p(1,[[s,new b(0,["an array",r])]])}function xa(e,t,n){return n==null?new p(0,[void 0]):he(ne,e(t,n))}function _o(e,t,n){if(Array.isArray(n)){let r=-1;return he(_r,Sn((o,s)=>{if(r=r+1|0,o.tag===0){const i=e(t+".["+Ye(r)+"]",s);return i.tag===0?new p(0,[ae(i.fields[0],o.fields[0])]):new p(1,[i.fields[0]])}else return o},new p(0,[K()]),n))}else return new p(1,[[t,new b(0,["a list",n])]])}function ka(e,t,n){if(Array.isArray(n)){let r=-1;return he(ec,Sn((o,s)=>{if(r=r+1|0,o.tag===0){const i=e(t+".["+Ye(r)+"]",s);return i.tag===0?new p(0,[Le([i.fields[0]],o.fields[0])]):new p(1,[i.fields[0]])}else return o},new p(0,[[]]),n))}else return new p(1,[[t,new b(0,["a seq",n])]])}function mo(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return Sn((s,i)=>{if(r=r+1|0,s.tag===0){const u=s.fields[0],c=e(t+".["+Ye(r)+"]",i);return c.tag===0?(u[r]=c.fields[0],new p(0,[u])):new p(1,[c.fields[0]])}else return s},new p(0,[bn(new Array(o.length),0,o.length,null)]),o)}else return new p(1,[[t,new b(0,["an array",n])]])}function Ta(e,t,n){return((o,s)=>{e:for(;;){const i=o,u=s;if($(i))return new p(1,[[t,new b(7,[u])]]);{const c=ki(t,F(C(i)),n);if(c.tag===1){o=T(i),s=mr(u,xe(c.fields[0]));continue e}else return new p(0,[c.fields[0]])}}})(e,K())}function $a(e,t,n){return new p(0,[e])}function wo(e,t,n,r){const o=t(n,r);return o.tag===0?e(o.fields[0],n,r):new p(1,[o.fields[0]])}function Ia(e,t,n,r){const o=t(n,r);return o.tag===1?new p(1,[o.fields[0]]):new p(0,[e(o.fields[0])])}function Ma(e,t){let n;const r=e;return n=o=>s=>po(0,r,o,s),o=>s=>wo(jn(i=>{let u;const c=t;return u=a=>f=>po(1,c,a,f),a=>f=>wo((l,_,h)=>$a([i,l]),F(u),a,f)}),F(n),o,s)}function Pa(e){return vc(e,{Compare:pe})}function Oa(e){return ha(e,{Compare:pe})}function Aa(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?Ys((r,o)=>{const s=r[0];return o.tag===0?he(i=>ae(i,o.fields[0]),r[1](t+"."+s)(n[s])):o},e,new p(0,[K()])):new p(1,[[t,new b(0,["an object",n])]])}function Ra(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?Cn((o,s)=>{if(o.tag===0){const i=e(n,s);if(i.tag===0){const u=t(n+"."+s,r[s]);return u.tag===0?new p(0,[ae([i.fields[0],u.fields[0]],o.fields[0])]):new p(1,[u.fields[0]])}else return new p(1,[i.fields[0]])}else return o},new p(0,[K()]),Object.keys(r)):new p(1,[[n,new b(0,["an object",r])]])}function $i(e,t,n,r){let o;const s=t.length+e|0;if(s!==r.length)return new p(1,[[n,new b(6,[(o=r.length|0,mt(je("Expected array of length %i but got %i"))(s)(o))])]]);{let i=new p(0,[K()]);for(let u=e;u<=r.length-1;u++)if(i.tag===0){const c=i.fields[0],a=mt(je("%s[%i]"))(n)(u),f=t[u-e],l=r[u];i=he(_=>ae(_,c),f(a)(l))}return he(_r,i)}}function go(e,t,n,r,o,s){const i=kl(u=>at(u)===r,Os(n));if(i!=null){const u=i,c=St(a=>ye(e,t,!1,a[1]),Fs(u));return he(a=>Lu(u,Bt(a)),c.length===0&&s.length<=1?new p(0,[K()]):$i(1,c,o,s))}else return new p(1,[[o,new b(6,["Cannot find case "+r+" in "+A(n)])]])}function yo(e,t,n,r){let o;const s=new oe(Ee());let i;const u=A(r);i=u===""?e:ai(u,s,e);let c;if(Ns(r)){const a=St(f=>[wi(t,at(f)),ye(i,t,!1,f[1])],Pt(r));c=f=>l=>he(_=>Hu(r,Bt(_)),Aa(a,f,l))}else if(Rs(r))c=a=>f=>{if(typeof f=="string")return go(i,t,r,f,a,[]);if(Array.isArray(f)){const l=f;return Ju(_=>go(i,t,r,_,a,l),Ti(a+"[0]",l[0]))}else return new p(1,[[a,new b(0,["a string or array",f])]])};else if(n)c=a=>f=>new p(1,[[a,new b(2,["an extra coder for "+A(r),f])]]);else throw new Error((o=A(r),mt(je(`Cannot generate auto decoder for %s. Please pass an extra decoder.
|
|
13
13
|
|
|
14
|
-
Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(o)));return s.contents=c,c}function
|
|
14
|
+
Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(o)));return s.contents=c,c}function ye(e,t,n,r){let o,s,i,u;const c=A(r),a=fi(c,e);if(a==null)if($s(r)){const f=ye(e,t,!1,Ht(r));return l=>_=>mo(F(f),l,_)}else if(ur(r))switch(A(Ps(r))){case"System.SByte":return l=>_=>{const h=r,d=l,m=_,w=uo(d)(m);if(w.tag===1)return new p(1,[w.fields[0]]);{const g=w.fields[0]|0;return rt(g,tt(h),{Equals:(v,x)=>v===x,GetHashCode:Te})?new p(0,[nt(h,g.toString())]):new p(1,[[d,new b(1,[A(h),m,"Unkown value provided for the enum"])]])}};case"System.Byte":return l=>_=>{const h=r,d=l,m=_,w=lo(d)(m);if(w.tag===1)return new p(1,[w.fields[0]]);{const g=w.fields[0];return rt(g,tt(h),{Equals:(v,x)=>v===x,GetHashCode:Te})?new p(0,[nt(h,g.toString())]):new p(1,[[d,new b(1,[A(h),m,"Unkown value provided for the enum"])]])}};case"System.Int16":return l=>_=>{const h=r,d=l,m=_,w=co(d)(m);if(w.tag===1)return new p(1,[w.fields[0]]);{const g=w.fields[0]|0;return rt(g,tt(h),{Equals:(v,x)=>v===x,GetHashCode:Te})?new p(0,[nt(h,du(g))]):new p(1,[[d,new b(1,[A(h),m,"Unkown value provided for the enum"])]])}};case"System.UInt16":return l=>_=>{const h=r,d=l,m=_,w=ao(d)(m);if(w.tag===1)return new p(1,[w.fields[0]]);{const g=w.fields[0];return rt(g,tt(h),{Equals:(v,x)=>v===x,GetHashCode:Te})?new p(0,[nt(h,g.toString())]):new p(1,[[d,new b(1,[A(h),m,"Unkown value provided for the enum"])]])}};case"System.Int32":return l=>_=>{const h=r,d=l,m=_,w=fo(d)(m);if(w.tag===1)return new p(1,[w.fields[0]]);{const g=w.fields[0]|0;return rt(g,tt(h),{Equals:(v,x)=>v===x,GetHashCode:Te})?new p(0,[nt(h,Ye(g))]):new p(1,[[d,new b(1,[A(h),m,"Unkown value provided for the enum"])]])}};case"System.UInt32":return l=>_=>{const h=r,d=l,m=_,w=ho(d)(m);if(w.tag===1)return new p(1,[w.fields[0]]);{const g=w.fields[0];return rt(g,tt(h),{Equals:(v,x)=>v===x,GetHashCode:Te})?new p(0,[nt(h,g.toString())]):new p(1,[[d,new b(1,[A(h),m,"Unkown value provided for the enum"])]])}};default:{const l=A(r),_=qs(je(`Cannot generate auto decoder for %s.
|
|
15
15
|
Thoth.Json.Net only support the following enum types:
|
|
16
16
|
- sbyte
|
|
17
17
|
- byte
|
|
@@ -20,9 +20,9 @@ Thoth.Json.Net only support the following enum types:
|
|
|
20
20
|
- int
|
|
21
21
|
- uint32
|
|
22
22
|
If you can't use one of these types, please pass an extra decoder.
|
|
23
|
-
`))(l);return h=>_(h)}}else if(
|
|
23
|
+
`))(l);return h=>_(h)}}else if(Is(r))if(lr(r)){const f=St(l=>ye(e,t,!1,l),As(r));return l=>_=>Array.isArray(_)?he(h=>ju(Bt(h)),$i(0,f,l,_)):new p(1,[[l,new b(0,["an array",_])]])}else switch(A(Ms(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return o=ye(e,t,!0,ue(r)[0]),l=>_=>xa(F(o),l,_);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return s=ye(e,t,!1,ue(r)[0]),l=>_=>_o(F(s),l,_);case"System.Collections.Generic.IEnumerable`1[System.Object]":return i=ye(e,t,!1,ue(r)[0]),l=>_=>ka(F(i),l,_);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const l=ye(e,t,!1,ue(r)[0]),_=ye(e,t,!1,ue(r)[1]);let h;const d=fe([m=>w=>Ra(F(l),F(_),m,w),(u=Ma(F(l),F(_)),m=>w=>_o(F(u),m,w))]);return h=m=>w=>Ta(d,m,w),m=>w=>Ia(Pa,F(h),m,w)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const l=ye(e,t,!1,ue(r)[0]);return _=>h=>{const d=mo(F(l),_,h);return d.tag===0?new p(0,[Oa(d.fields[0])]):new p(1,[d.fields[0]])}}default:return yo(e,t,n,r)}else switch(c){case"System.Boolean":return f=>l=>ya(f,l);case"Microsoft.FSharp.Core.Unit":return f=>l=>ga(f,l);case"System.String":return f=>l=>Ti(f,l);case"System.Char":return f=>l=>ma(f,l);case"System.SByte":return uo;case"System.Byte":return lo;case"System.Int16":return co;case"System.UInt16":return ao;case"System.Int32":return fo;case"System.UInt32":return ho;case"System.Double":return f=>l=>ba(f,l);case"System.Single":return f=>l=>Sa(f,l);case"System.DateTime":return f=>l=>va(f,l);case"System.DateTimeOffset":return f=>l=>Ca(f,l);case"System.TimeSpan":return f=>l=>Ea(f,l);case"System.Guid":return f=>l=>wa(f,l);case"System.Object":return f=>l=>new p(0,[l]);default:return yo(e,t,n,r)}else{const f=a;return l=>_=>f.contents(l)(_)}}function Na(e){return e!=null?di((t,n)=>new oe(n[1]),e.Coders):gr({Compare:wn})}function Fa(e,t,n){const r=Gn(t,new En(0,[]));return ye(Na(n),r,!1,e)}function Da(e,t,n,r){const o=pe(e,n)|0;if(o===0)throw new Error("The step of a range cannot be zero");const s=o>0;return i=>{const u=pe(i,t)|0;return s&&u<=0||!s&&u>=0?[i,r(i,e)]:void 0}}function Va(e,t,n,r,o){const s=Da(t,n,r,o);return z(()=>Jl(s,e))}function La(e,t,n){return Va(e,t,n,0,(r,o)=>r+o)}class Ha extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BlobStorage","Unused"]}}function ja(){return ks("WorkplacePolicies.Api.Shared.Common.PathDto",[],Ha,()=>[[["Item",Qe]],[]])}class Ua extends re{constructor(t,n){super(),this.Name=t,this.Path=n}}function Ba(){return Lt("WorkplacePolicies.Api.Shared.Common.FileDto",[],Ua,()=>[["Name",Qe],["Path",ja()]])}class Ga extends re{constructor(t,n){super(),this.Copy=t,this.Link=n}}function za(){return Lt("WorkplacePolicies.Api.Shared.Common.AboutDto",[],Ga,()=>[["Copy",Qe],["Link",Qe]])}class Wa extends re{constructor(t,n){super(),this.PolicyId=t,this.VersionNumber=n|0}}function qa(){return Lt("WorkplacePolicies.Api.Shared.BackendApiModels.PolicyIdentifierDto",[],Wa,()=>[["PolicyId",Qe],["VersionNumber",Nu]])}class Rt extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Presented","Opened","Accepted"]}}function Za(){return ks("WorkplacePolicies.Api.Shared.BackendApiModels.PolicyReviewItemStatusDto",[],Rt,()=>[[],[],[]])}function bo(e,t){let n;switch(e.tag){case 1:{switch(t.tag){case 0:{n=2;break}default:n=1}break}case 2:{n=3;break}default:n=0}switch(n){case 0:return t;case 1:return t;case 2:return e;default:return e}}class Kn extends re{constructor(t,n){super(),this.Policy=t,this.Status=n}}function Ja(){return Lt("WorkplacePolicies.Api.Shared.BackendApiModels.PolicyReviewItemDto",[],Kn,()=>[["Policy",Au(["About",za()],["CreatedAt",Ou("System.DateTime")],["Description",Qe],["File",Ba()],["Identifier",qa()],["Title",Qe])],["Status",Za()]])}class Ka extends re{constructor(t){super(),this.PolicyReviewList=t}}function Ya(){return Lt("WorkplacePolicies.Api.Shared.BackendApiModels.InitResponse",[],Ka,()=>[["PolicyReviewList",Ru(Ja())]])}class Xa extends re{constructor(t){super(),this.Type=t}}class qt extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Present","Open","Accept","Complete"]}}function Qa(e){return e}const Ii=Ee();function Zt(e){return Array.from(e)}function ef(e){return yn(e,"O")}function tf(e){return Zc(e)}function nf(){return Ee()}function rf(e){return yn(e,"O")}function of(e,t){return JSON.stringify(t,void 0,ne(e))}function sf(e){return t=>Wu(qu(e,t),()=>Ii)}function So(e,t,n,r){let o;const s=new oe(Ee());let i;const u=A(r);i=u===""?e:ai(u,s,e);let c;if(Ns(r)){const a=St(f=>{const l=wi(t,at(f)),_=$e(i,t,n,f[1]);return h=>d=>{const m=Vu(h,f);return(!n||n&&m!=null)&&(d[l]=_(m)),d}},Pt(r));c=f=>Cn((l,_)=>_(f)(l),{},a)}else if(Rs(r))c=a=>{const f=Du(a,r),l=f[0],_=f[1],h=_.length|0;if(h===0)return at(l);{const d=h|0,m=Fs(l),w=bn(new Array(d+1),0,d+1,null);w[0]=at(l);for(let g=1;g<=d;g++){const v=$e(i,t,n,m[g-1][1]);w[g]=v(_[g-1])}return w}};else throw new Error((o=A(r),mt(je(`Cannot generate auto encoder for %s. Please pass an extra encoder.
|
|
24
24
|
|
|
25
|
-
Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(o)));return s.contents=c,c}function $e(e,t,n,r){const o=A(r),s=
|
|
25
|
+
Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(o)));return s.contents=c,c}function $e(e,t,n,r){const o=A(r),s=fi(o,e);if(s==null)if($s(r)){const i=$e(e,t,n,Ht(r));return u=>Zt(de(i,u))}else if(ur(r))switch(A(Ps(r))){case"System.SByte":return u=>u;case"System.Byte":return u=>u;case"System.Int16":return u=>u;case"System.UInt16":return u=>u;case"System.Int32":return u=>u;case"System.UInt32":return u=>u;default:{const u=A(r);return qs(je(`Cannot generate auto encoder for %s.
|
|
26
26
|
Thoth.Json.Net only support the following enum types:
|
|
27
27
|
- sbyte
|
|
28
28
|
- byte
|
|
@@ -34,7 +34,7 @@ Thoth.Json.Net only support the following enum types:
|
|
|
34
34
|
If you can't use one of these types, please pass an extra encoder.
|
|
35
35
|
|
|
36
36
|
Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders
|
|
37
|
-
`))(u)}}else if(
|
|
37
|
+
`))(u)}}else if(Is(r))if(lr(r)){const i=St(u=>$e(e,t,n,u),As(r));return u=>Zt(Ql((c,a)=>i[c](a),u))}else{const i=A(Ms(r));if(i==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]"){const u=new au(()=>sf($e(e,t,n,ue(r)[0])));return c=>c==null?Ii:u.Value(c)}else if(i==="Microsoft.FSharp.Collections.FSharpList`1[System.Object]"||i==="Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"||i==="System.Collections.Generic.IEnumerable`1[System.Object]"){const u=$e(e,t,n,ue(r)[0]);return c=>Zt(de(u,c))}else if(i==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const u=ue(r)[0],c=$e(e,t,n,ue(r)[1]);if(A(u)==="System.String"||A(u)==="System.Guid")return a=>Cn((f,l)=>{const _=l;return f[_[0]]=c(_[1]),f},{},a);{let a;return a=$e(e,t,n,u),l=>Zt(de(_=>{const h=_;return[a(h[0]),c(h[1])]},l))}}else return So(e,t,n,r)}else switch(o){case"System.Boolean":return i=>i;case"Microsoft.FSharp.Core.Unit":return nf;case"System.String":return i=>i;case"System.Char":return i=>i;case"System.SByte":return i=>i;case"System.Byte":return i=>i;case"System.Int16":return i=>i;case"System.UInt16":return i=>i;case"System.Int32":return i=>i;case"System.UInt32":return i=>i;case"System.Double":return i=>i;case"System.Single":return i=>i;case"System.DateTime":return rf;case"System.DateTimeOffset":return ef;case"System.TimeSpan":return tf;case"System.Guid":return Qa;case"System.Object":return i=>i;default:return So(e,t,n,r)}else{const i=s;return u=>i.contents(u)}}function uf(e){return e!=null?di((t,n)=>new oe(n[0]),e.Coders):gr({Compare:wn})}function lf(e,t,n,r){const o=Gn(t,new En(0,[])),s=Gn(r,!0);return $e(uf(n),o,s,e)}class cf{constructor(t,n){this.accessToken=n,this.baseUrl=`${t}/workplace-policies/backend`}}function af(e,t){return new cf(e,t)}function ff(e){return G.Delay(()=>{let t,n;const r=mi((t=_i(new fr(0,[]),pi(`${e.baseUrl}/init`)),qn(hi(`Bearer ${e.accessToken}`),t)));return n=G.Bind(r,o=>G.Return(new p(0,[o]))),G.Bind(n,o=>{const s=o;if(s.tag===1)return G.Return(new p(1,[s.fields[0]]));{const i=s.fields[0];if(i.statusCode===200){const u=_a(F(Fa(Ya(),new En(1,[]),void 0)),i.responseText);return G.Return(u)}else return G.Return(new p(1,["Init request error"]))}})})}function Jt(e,t){return G.Delay(()=>{let n,r,o;const s=new Xa(t);let i;const u=mi((n=(r=(o=_i(new fr(1,[]),pi(`${e.baseUrl}/command`)),qn(hi(`Bearer ${e.accessToken}`),o)),kc(new Hs(1,[of(0,lf(Ts,new En(1,[]),void 0,void 0)(s))]),r)),qn(Ec("application/json"),n)));return i=G.Bind(u,c=>G.Return(new p(0,[c]))),G.Bind(i,c=>{const a=c;return a.tag===1?G.Return(new p(1,[a.fields[0]])):a.fields[0].statusCode===200?G.Return(new p(0,[void 0])):G.Return(new p(1,["Command request error"]))})})}function df(){return K()}function br(e){return Ue("/",e)}function hf(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+br(t),n])}function Mi(e,t,n){try{R(n)}catch(r){e(["Error stopping subscription: "+br(t),r])}}function pf(e,t,n,r){try{return[n,r(t)]}catch(o){e(["Error starting subscription: "+br(n),o]);return}}function _f(e,t){fn(n=>{Mi(e,n[0],n[1])},t)}function vo(e,t,n,r,o,s){return fn(i=>{hf(e,i)},n),fn(i=>{Mi(e,i[0],i[1])},r),mr(o,Nl(i=>pf(e,t,i[0],i[1]),s))}function mf(){return[K(),fa({Compare:pe}),K()]}function wf(e,t,n,r,o){return Jn(e,r)?[ae(e,n),r,o]:[n,aa(e,r),ae([e,t],o)]}function gf(e){return Pl((t,n)=>wf(t[0],t[1],n[0],n[1],n[2]),e,mf())}const yf=K();function Co(e,t){const n=da(it(i=>i[0],e),{Compare:pe}),r=gf(t),o=r[1],s=r[0];if(n.Equals(o))return[s,K(),e,K()];{const i=Rl(u=>Jn(u[0],o),e);return[s,i[1],i[0],Al(u=>!Jn(u[0],n),r[2])]}}class bf{constructor(t,n,r){this.OnNext=t,this.OnError=n||(o=>{}),this.OnCompleted=r||(()=>{})}}function Sf(e,t){t.Subscribe(new bf(e))}class vf{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 Ef(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(s=>{s(r,o)})}}class Cf extends vf{}function Ef(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(o,s)=>n.OnNext(s);return e(r),{Dispose(){t(r)}}}}}class xf{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 Cf}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}}const kf=xf;function Tf(e,t){console.error(ne(e),t)}function $f(e,t){let n,r=new kf(e);r.AutoReset=!1,n=r,Sf(t,n.Elapsed()),n.Enabled=!0,n.Start()}function Eo(e,t,n){fn(r=>{try{r(t)}catch(o){e(o)}},n)}function qe(){return K()}function kt(e,t,n,r){return xe(o=>{e(G.Delay(()=>G.Bind(tl(t(n)),s=>{const i=s;return i.tag===0&&o(r(i.fields[0])),G.Zero()})))})}function Tt(e){$f(1,t=>{ol(e)})}class ht extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class If{constructor(t){this.state=new ht(0,[bn(new Array(Gr(t,10)),0,Gr(t,10),null),0])}}function Mf(e){return new If(e)}function xo(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,o=t.fields[0],s=(r+1)%o.length|0;return s===n?e.state=new ht(0,[o,n]):e.state=new ht(1,[o,n,s]),ne(o[r])}else return}function Pf(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,o=n.fields[2]|0,s=n.fields[0];s[r]=t;const i=(r+1)%s.length|0;i===o?e.state=new ht(1,[Of(e,o,s),s.length,0]):e.state=new ht(1,[s,i,o])}else{const r=n.fields[1]|0,o=n.fields[0];o[r]=t;const s=(r+1)%o.length|0;e.state=new ht(1,[o,s,r])}}function Of(e,t,n){return Array.from(z(()=>Le(tc(t,n),z(()=>Le(nc(t,n),z(()=>rc(r=>W(Ee()),La(0,1,n.length))))))))}class Sr extends re{constructor(t,n,r,o,s,i,u){super(),this.init=t,this.update=n,this.subscribe=r,this.view=o,this.setState=s,this.onError=i,this.termination=u}}function Af(e,t,n){return new Sr(e,t,r=>df(),n,F(r=>{const o=Je(n)(r);return s=>{o(s)}}),r=>{Tf(r[0],r[1])},[r=>!1,r=>{}])}function Rf(e,t){return new Sr(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function Nf(e){return e.init}function Ff(e,t,n,r,o,s,i){const u=Je(e)(i.init),c=$n(t)(Je(i.update)),a=$n(n)(Je(i.view)),f=$n(r)(Je(i.setState));return new Sr(u,F(c),Je(o)(i.subscribe),F(a),F(f),i.onError,s(i.termination))}function Df(e,t,n){let r;const o=n.init(t),s=o[0],i=n.subscribe(s),u=n.termination,c=Mf(10);let a=!1,f=s,l=yf,_=!1;const h=w=>{_||(Pf(c,w),a||(a=!0,m(),a=!1))},d=Je(e)(h),m=()=>{let w,g=xo(c);for(;!_&&g!=null;){const v=y(g);if(u[0](v))_f(n.onError,l),u[1](f),_=!0;else{const x=n.update(v,f),B=x[0],D=n.subscribe(B);n.setState(B,d),Eo(Y=>{n.onError([mt(je("Error handling the message: %A"))(v),Y])},d,x[1]),f=B,l=(w=Co(l,D),vo(n.onError,d,w[0],w[1],w[2],w[3])),g=xo(c)}}};a=!0,n.setState(s,d),Eo(w=>{n.onError([mt(je("Error intitializing:")),w])},d,o[1]),l=(r=Co(l,i),vo(n.onError,d,r[0],r[1],r[2],r[3])),m(),a=!1}function Vf(e,t){Df(F(n=>n),e,t)}function Lf(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 Pi={exports:{}},Oi={};const Hf=Lf(ou);/**
|
|
38
38
|
* @license React
|
|
39
39
|
* use-sync-external-store-shim.production.min.js
|
|
40
40
|
*
|
|
@@ -42,10 +42,10 @@ Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation
|
|
|
42
42
|
*
|
|
43
43
|
* This source code is licensed under the MIT license found in the
|
|
44
44
|
* LICENSE file in the root directory of this source tree.
|
|
45
|
-
*/var gt=Nf;function Ff(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Df=typeof Object.is=="function"?Object.is:Ff,Vf=gt.useState,Lf=gt.useEffect,Hf=gt.useLayoutEffect,jf=gt.useDebugValue;function Uf(e,t){var n=t(),r=Vf({inst:{value:n,getSnapshot:t}}),o=r[0].inst,s=r[1];return Hf(function(){o.value=n,o.getSnapshot=t,An(o)&&s({inst:o})},[e,n,t]),Lf(function(){return An(o)&&s({inst:o}),e(function(){An(o)&&s({inst:o})})},[e]),jf(n),n}function An(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Df(e,n)}catch{return!0}}function Bf(e,t){return t()}var Gf=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Bf:Uf;Ai.useSyncExternalStore=gt.useSyncExternalStore!==void 0?gt.useSyncExternalStore:Gf;Oi.exports=Ai;var zf=Oi.exports;class Wf{constructor(t,n,r){this.arg=n,this.dependencies=r;const o=t(),s=[];let i;const u=Mf(o)(this.arg);let c=u[0],a=u[1];i=[[c,f=>{s.push(f)},!1,s],a],this.state=i[0],this.cmd=i[1],this.subscribe=f=>{let l=!1;const _=Vn(this.state[0]);return Af(this.arg,If((h,d)=>{const m=this.state;this.state=[h,d,!0,s],h!==m[0]&&f()},Pf((h,d)=>{const m=this.cmd;return this.cmd=qe(),[this.state[0],m]},(h,d,m)=>h(d)(this.state[0]),Hn(h=>h),Hn(h=>h),F(h=>h),h=>[d=>h[0](d)?!0:_&&l,d=>{const m=d;Vn(m)?R(m):h[1](d)}],o))),()=>{l=!0}}}}function To(e,t,n){return new Wf(e,t,n)}function qf(e){return e.state}function Zf(e){return e.subscribe}function Jf(e,t,n){return ee(e.arg,t)?!ee(e.dependencies,n):!0}function Kf(e,t,n){const r=Ft(()=>To(e,t,n)),o=r[0];Jf(o,t,n)&&r[1](To(e,t,n));const s=zf.useSyncExternalStore(Zf(o),()=>qf(o)),i=s[2],u=s[3],c=s[1];return hn(()=>{if(i&&u.length>0){let a=j(u);try{for(;a["System.Collections.IEnumerator.MoveNext"]();){const f=a["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{c(f)})}}finally{R(a)}bu(u)}},[i,u]),[s[0],c]}const Xe=Ss;class V extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function $o(e,t){switch(t.tag){case 1:return new V(1,[]);case 3:return new V(3,[t.fields[0]]);case 2:try{return new V(2,[e(t.fields[0])])}catch(n){return new V(3,[n])}default:return new V(0,[])}}function Yf(e){let t;t=new CustomEvent("step-completion",{bubbles:!0}),e.dispatchEvent(t)}class Re extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Requested","Finished"]}}class Ri extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Main","ReviewPolicy"]}}class le extends pe{constructor(t,n,r,o,s,i){super(),this.Page=t,this.ReviewItemList=n,this.PresentPoliciesStatus=r,this.OpenPolicyStatus=o,this.AcceptPolicyStatus=s,this.ContinueStatus=i}}class Ne extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FetchReviewItemList","GoToReviewPolicyPage","PresentPolicies","OpenPolicy","AcceptPolicy","Continue"]}}function Xf(){return[new le(new Ri(0,[]),new V(0,[]),new V(0,[]),new V(0,[]),new V(0,[]),new V(0,[])),xe(e=>{e(new Ne(0,[new Re(0,[])]))})]}function Qf(e,t,n){switch(t.tag){case 1:return[new le(new Ri(1,[t.fields[0]]),n.ReviewItemList,n.PresentPoliciesStatus,n.OpenPolicyStatus,n.AcceptPolicyStatus,n.ContinueStatus),xe(r=>{r(new Ne(3,[t.fields[0],new Re(0,[])]))})];case 2:return t.fields[1].tag===1?[new le(n.Page,n.ReviewItemList,new V(2,[t.fields[1].fields[0]]),n.OpenPolicyStatus,n.AcceptPolicyStatus,n.ContinueStatus),qe()]:[new le(n.Page,n.ReviewItemList,new V(1,[]),n.OpenPolicyStatus,n.AcceptPolicyStatus,n.ContinueStatus),xt(r=>{kt(r)},r=>Zt(e,r),new Wt(0,[{PolicyIdentifierList:st(r=>r.Policy.Identifier,t.fields[0])}]),r=>{const o=[t.fields[0],new Re(1,[r])];return new Ne(2,[o[0],o[1]])})];case 3:return t.fields[1].tag===1?[new le(n.Page,$o(r=>de(o=>st(s=>ee(t.fields[0].Policy.Identifier,s.Policy.Identifier)?new Jn(s.Policy,So(s.Status,new Rt(1,[]))):s,o),r),n.ReviewItemList),n.PresentPoliciesStatus,new V(2,[t.fields[1].fields[0]]),n.AcceptPolicyStatus,n.ContinueStatus),qe()]:[new le(n.Page,n.ReviewItemList,n.PresentPoliciesStatus,new V(1,[]),n.AcceptPolicyStatus,n.ContinueStatus),xt(r=>{kt(r)},r=>Zt(e,r),new Wt(1,[t.fields[0].Policy.Identifier]),r=>{const o=[t.fields[0],new Re(1,[r])];return new Ne(3,[o[0],o[1]])})];case 4:return t.fields[1].tag===1?[new le(n.Page,$o(r=>de(o=>st(s=>ee(t.fields[0].Policy.Identifier,s.Policy.Identifier)?new Jn(s.Policy,So(s.Status,new Rt(2,[]))):s,o),r),n.ReviewItemList),n.PresentPoliciesStatus,n.OpenPolicyStatus,new V(2,[t.fields[1].fields[0]]),n.ContinueStatus),qe()]:[new le(n.Page,n.ReviewItemList,n.PresentPoliciesStatus,n.OpenPolicyStatus,new V(1,[]),n.ContinueStatus),xt(r=>{kt(r)},r=>Zt(e,r),new Wt(2,[t.fields[0].Policy.Identifier]),r=>{const o=[t.fields[0],new Re(1,[r])];return new Ne(4,[o[0],o[1]])})];case 5:if(t.fields[1].tag===1)return Yf(document.querySelector("apollo-workplace-policies-app")),[new le(n.Page,n.ReviewItemList,n.PresentPoliciesStatus,n.OpenPolicyStatus,n.AcceptPolicyStatus,new V(2,[t.fields[1].fields[0]])),qe()];switch(n.ContinueStatus.tag){case 0:case 2:case 3:return[new le(n.Page,n.ReviewItemList,n.PresentPoliciesStatus,n.OpenPolicyStatus,n.AcceptPolicyStatus,new V(1,[])),xt(o=>{kt(o)},o=>Zt(e,o),new Wt(3,[{PolicyIdentifierList:st(o=>o.Policy.Identifier,t.fields[0])}]),o=>{const s=[t.fields[0],new Re(1,[o])];return new Ne(5,[s[0],s[1]])})];default:return[n,qe()]}default:return t.fields[0].tag===1?[new le(n.Page,new V(2,[de(r=>r.PolicyReviewList,t.fields[0].fields[0])]),n.PresentPoliciesStatus,n.OpenPolicyStatus,n.AcceptPolicyStatus,n.ContinueStatus),t.fields[0].fields[0].tag===1?qe():xe(r=>{r(new Ne(2,[t.fields[0].fields[0].fields[0].PolicyReviewList,new Re(0,[])]))})]:[new le(n.Page,new V(1,[]),n.PresentPoliciesStatus,n.OpenPolicyStatus,n.AcceptPolicyStatus,n.ContinueStatus),xt(r=>{kt(r)},()=>sf(e),void 0,r=>new Ne(0,[new Re(1,[r])]))]}}const ed=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}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-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;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[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]{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}::-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")}[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")}[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}[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}*,: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: }::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: }.mx-auto{margin-left:auto;margin-right:auto}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-8{margin-top:2rem}.inline{display:inline}.flex{display:flex}.h-6{height:1.5rem}.w-6{width:1.5rem}.w-full{width:100%}.flex-none{flex:none}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-primary-base{border-color:var(--fl-color-primary)}.bg-primary-base{background-color:var(--fl-color-primary)}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.px-1{padding-left:.25rem;padding-right:.25rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.font-inter{font-family:Inter,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.leading-8{line-height:2rem}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-primary-base{color:var(--fl-color-primary)}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.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)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:border:disabled{border-width:1px}.disabled\\:border-gray-300:disabled{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.disabled\\:bg-gray-100:disabled{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.disabled\\:text-gray-400:disabled{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}@media (min-width: 640px){.sm\\:mt-10{margin-top:2.5rem}.sm\\:w-\\[12\\.5rem\\]{width:12.5rem}.sm\\:w-\\[35rem\\]{width:35rem}.sm\\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\\:py-16{padding-top:4rem;padding-bottom:4rem}.sm\\:text-3xl{font-size:1.875rem;line-height:2.25rem}.sm\\:text-lg{font-size:1.125rem;line-height:1.75rem}.sm\\:leading-8{line-height:2rem}.sm\\:leading-9{line-height:2.25rem}}
|
|
46
|
-
`,
|
|
45
|
+
*/var yt=Hf;function jf(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Uf=typeof Object.is=="function"?Object.is:jf,Bf=yt.useState,Gf=yt.useEffect,zf=yt.useLayoutEffect,Wf=yt.useDebugValue;function qf(e,t){var n=t(),r=Bf({inst:{value:n,getSnapshot:t}}),o=r[0].inst,s=r[1];return zf(function(){o.value=n,o.getSnapshot=t,Rn(o)&&s({inst:o})},[e,n,t]),Gf(function(){return Rn(o)&&s({inst:o}),e(function(){Rn(o)&&s({inst:o})})},[e]),Wf(n),n}function Rn(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Uf(e,n)}catch{return!0}}function Zf(e,t){return t()}var Jf=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Zf:qf;Oi.useSyncExternalStore=yt.useSyncExternalStore!==void 0?yt.useSyncExternalStore:Jf;Pi.exports=Oi;var Kf=Pi.exports;class Yf{constructor(t,n,r){this.arg=n,this.dependencies=r;const o=t(),s=[];let i;const u=Nf(o)(this.arg);let c=u[0],a=u[1];i=[[c,f=>{s.push(f)},!1,s],a],this.state=i[0],this.cmd=i[1],this.subscribe=f=>{let l=!1;const _=Ln(this.state[0]);return Vf(this.arg,Rf((h,d)=>{const m=this.state;this.state=[h,d,!0,s],h!==m[0]&&f()},Ff((h,d)=>{const m=this.cmd;return this.cmd=qe(),[this.state[0],m]},(h,d,m)=>h(d)(this.state[0]),jn(h=>h),jn(h=>h),F(h=>h),h=>[d=>h[0](d)?!0:_&&l,d=>{const m=d;Ln(m)?R(m):h[1](d)}],o))),()=>{l=!0}}}}function ko(e,t,n){return new Yf(e,t,n)}function Xf(e){return e.state}function Qf(e){return e.subscribe}function ed(e,t,n){return ee(e.arg,t)?!ee(e.dependencies,n):!0}function td(e,t,n){const r=Ft(()=>ko(e,t,n)),o=r[0];ed(o,t,n)&&r[1](ko(e,t,n));const s=Kf.useSyncExternalStore(Qf(o),()=>Xf(o)),i=s[2],u=s[3],c=s[1];return pn(()=>{if(i&&u.length>0){let a=j(u);try{for(;a["System.Collections.IEnumerator.MoveNext"]();){const f=a["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{c(f)})}}finally{R(a)}yu(u)}},[i,u]),[s[0],c]}const Xe=bs;class V extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function To(e,t){switch(t.tag){case 1:return new V(1,[]);case 3:return new V(3,[t.fields[0]]);case 2:try{return new V(2,[e(t.fields[0])])}catch(n){return new V(3,[n])}default:return new V(0,[])}}function nd(e){let t;t=new CustomEvent("step-completion",{bubbles:!0}),e.dispatchEvent(t)}class Re extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Requested","Finished"]}}class Ai extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Main","ReviewPolicy"]}}class ce extends re{constructor(t,n,r,o,s,i){super(),this.Page=t,this.ReviewItemList=n,this.PresentPoliciesStatus=r,this.OpenPolicyStatus=o,this.AcceptPolicyStatus=s,this.ContinueStatus=i}}class Ne extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FetchReviewItemList","GoToReviewPolicyPage","PresentPolicies","OpenPolicy","AcceptPolicy","Continue"]}}function rd(){return[new ce(new Ai(0,[]),new V(0,[]),new V(0,[]),new V(0,[]),new V(0,[]),new V(0,[])),xe(e=>{e(new Ne(0,[new Re(0,[])]))})]}function od(e,t,n){switch(t.tag){case 1:return[new ce(new Ai(1,[t.fields[0]]),n.ReviewItemList,n.PresentPoliciesStatus,n.OpenPolicyStatus,n.AcceptPolicyStatus,n.ContinueStatus),xe(r=>{r(new Ne(3,[t.fields[0],new Re(0,[])]))})];case 2:return t.fields[1].tag===1?[new ce(n.Page,n.ReviewItemList,new V(2,[t.fields[1].fields[0]]),n.OpenPolicyStatus,n.AcceptPolicyStatus,n.ContinueStatus),qe()]:[new ce(n.Page,n.ReviewItemList,new V(1,[]),n.OpenPolicyStatus,n.AcceptPolicyStatus,n.ContinueStatus),kt(r=>{Tt(r)},r=>Jt(e,r),new qt(0,[{PolicyIdentifierList:it(r=>r.Policy.Identifier,t.fields[0])}]),r=>{const o=[t.fields[0],new Re(1,[r])];return new Ne(2,[o[0],o[1]])})];case 3:return t.fields[1].tag===1?[new ce(n.Page,To(r=>he(o=>it(s=>ee(t.fields[0].Policy.Identifier,s.Policy.Identifier)?new Kn(s.Policy,bo(s.Status,new Rt(1,[]))):s,o),r),n.ReviewItemList),n.PresentPoliciesStatus,new V(2,[t.fields[1].fields[0]]),n.AcceptPolicyStatus,n.ContinueStatus),qe()]:[new ce(n.Page,n.ReviewItemList,n.PresentPoliciesStatus,new V(1,[]),n.AcceptPolicyStatus,n.ContinueStatus),kt(r=>{Tt(r)},r=>Jt(e,r),new qt(1,[t.fields[0].Policy.Identifier]),r=>{const o=[t.fields[0],new Re(1,[r])];return new Ne(3,[o[0],o[1]])})];case 4:return t.fields[1].tag===1?[new ce(n.Page,To(r=>he(o=>it(s=>ee(t.fields[0].Policy.Identifier,s.Policy.Identifier)?new Kn(s.Policy,bo(s.Status,new Rt(2,[]))):s,o),r),n.ReviewItemList),n.PresentPoliciesStatus,n.OpenPolicyStatus,new V(2,[t.fields[1].fields[0]]),n.ContinueStatus),qe()]:[new ce(n.Page,n.ReviewItemList,n.PresentPoliciesStatus,n.OpenPolicyStatus,new V(1,[]),n.ContinueStatus),kt(r=>{Tt(r)},r=>Jt(e,r),new qt(2,[t.fields[0].Policy.Identifier]),r=>{const o=[t.fields[0],new Re(1,[r])];return new Ne(4,[o[0],o[1]])})];case 5:if(t.fields[1].tag===1)return nd(document.querySelector("apollo-workplace-policies-app")),[new ce(n.Page,n.ReviewItemList,n.PresentPoliciesStatus,n.OpenPolicyStatus,n.AcceptPolicyStatus,new V(2,[t.fields[1].fields[0]])),qe()];switch(n.ContinueStatus.tag){case 0:case 2:case 3:return[new ce(n.Page,n.ReviewItemList,n.PresentPoliciesStatus,n.OpenPolicyStatus,n.AcceptPolicyStatus,new V(1,[])),kt(o=>{Tt(o)},o=>Jt(e,o),new qt(3,[{PolicyIdentifierList:it(o=>o.Policy.Identifier,t.fields[0])}]),o=>{const s=[t.fields[0],new Re(1,[o])];return new Ne(5,[s[0],s[1]])})];default:return[n,qe()]}default:return t.fields[0].tag===1?[new ce(n.Page,new V(2,[he(r=>r.PolicyReviewList,t.fields[0].fields[0])]),n.PresentPoliciesStatus,n.OpenPolicyStatus,n.AcceptPolicyStatus,n.ContinueStatus),t.fields[0].fields[0].tag===1?qe():xe(r=>{r(new Ne(2,[t.fields[0].fields[0].fields[0].PolicyReviewList,new Re(0,[])]))})]:[new ce(n.Page,new V(1,[]),n.PresentPoliciesStatus,n.OpenPolicyStatus,n.AcceptPolicyStatus,n.ContinueStatus),kt(r=>{Tt(r)},()=>ff(e),void 0,r=>new Ne(0,[new Re(1,[r])]))]}}const sd=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}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-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;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[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]{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}::-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")}[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")}[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}[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}*,: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: }::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: }.mx-auto{margin-left:auto;margin-right:auto}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-8{margin-top:2rem}.inline{display:inline}.flex{display:flex}.h-6{height:1.5rem}.w-6{width:1.5rem}.w-full{width:100%}.flex-none{flex:none}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-primary-base{border-color:var(--fl-color-primary)}.bg-primary-base{background-color:var(--fl-color-primary)}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.px-1{padding-left:.25rem;padding-right:.25rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.font-inter{font-family:Inter,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.leading-8{line-height:2rem}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-primary-base{color:var(--fl-color-primary)}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.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)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:border:disabled{border-width:1px}.disabled\\:border-gray-300:disabled{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.disabled\\:bg-gray-100:disabled{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.disabled\\:text-gray-400:disabled{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}@media (min-width: 640px){.sm\\:mt-10{margin-top:2.5rem}.sm\\:w-\\[12\\.5rem\\]{width:12.5rem}.sm\\:w-\\[35rem\\]{width:35rem}.sm\\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\\:py-16{padding-top:4rem;padding-bottom:4rem}.sm\\:text-3xl{font-size:1.875rem;line-height:2.25rem}.sm\\:text-lg{font-size:1.125rem;line-height:1.75rem}.sm\\:leading-8{line-height:2rem}.sm\\:leading-9{line-height:2.25rem}}
|
|
46
|
+
`,id=(()=>Se(sd))(),ud=e=>k("svg",{width:8,height:14,viewBox:"0 0 8 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},k("path",{d:"M1 1L7 7L1 13",stroke:"#9CA3AF",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),ld=e=>k("svg",{width:14,height:10,viewBox:"0 0 14 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},k("path",{d:"M1 5L5 9L13 1",stroke:"white",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}));class Kt extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Height","Width"]}}function Ri(e,t){return Xe.createElement(e,$c(t,1))}function cd(e){return Ri(ud,e)}function ad(e){return Ri(ld,e)}function fd(e){let t,n,r;const o=ee(e.Status,new Rt(2,[]));return k("div",ct(fe([["key",e.Policy.Identifier.PolicyId],["className",Ue(" ",ft(z(()=>Le(W("py-6 px-4 sm:px-6 shadow-sm rounded-lg text-left flex justify-between"),z(()=>W(o?"border-2 border-primary-base":"border border-gray-300"))))))],(t=[(n=fe([k("div",{className:"text-base leading-6 font-semibold text-gray-900",children:e.Policy.Title}),k("div",{className:"text-sm leading-5 font-normal text-gray-500 mt-2",children:e.Policy.Description}),k("div",{className:"text-sm leading-5 font-medium mt-3 text-primary-base cursor-pointer",children:"View document (PDF)"})]),k("div",{children:Xe.Children.toArray(Array.from(n))})),k("div",ct(fe([["className",Ue(" ",ft(z(()=>Le(W("flex-none w-6 h-6 flex justify-center items-center"),z(()=>W(o?"rounded-full bg-primary-base":"cursor-pointer"))))))],(r=ft(z(()=>W(o?ad(fe([new Kt(0,[10]),new Kt(1,[14])])):cd(fe([new Kt(0,[14]),new Kt(1,[8])]))))),["children",Xe.Children.toArray(Array.from(r))])])))],["children",Xe.Children.toArray(Array.from(t))])])))}function dd(e){return Fl(t=>ee(t.Status,new Rt(2,[])),e)}function hd(e,t){let n,r;return k("div",ct(fe([["className","w-full sm:w-[35rem] text-center bg-white mx-auto"],(n=[k("div",{className:"text-gray-900 text-2xl sm:text-3xl leading-8 sm:leading-9 font-bold",children:"Employment information statements"}),k("div",{className:"text-gray-600 text-base sm:text-lg font-normal leading-7 sm:leading-8 mt-4",children:"Please read and accept the below information statements provided by the Fair Work Ombudsman."}),k("div",ct(fe([["className","space-y-4 mt-8 sm:mt-10"],(r=ft(z(()=>it(fd,e))),["children",Xe.Children.toArray(Array.from(r))])]))),k("button",ct(ft(z(()=>Le(W(["disabled",t.tag===1?!0:!dd(e)]),z(()=>Le(W(["type","button"]),z(()=>{let o;return Le(W((o=`
|
|
47
47
|
mt-8 sm:mt-10 mx-auto shadow-sm w-full sm:w-[12.5rem] px-4 py-2
|
|
48
48
|
rounded-md flex justify-center items-center text-white disabled:text-gray-400
|
|
49
49
|
text-base font-semibold leading-6 cursor-pointer disabled:cursor-not-allowed
|
|
50
50
|
disabled:border disabled:border-gray-300 bg-primary-base disabled:bg-gray-100
|
|
51
|
-
`,["className",o])),z(()=>W(["children","Continue"])))}))))))))],["children",Xe.Children.toArray(Array.from(n))])])))}function vr(){return(vr=Object.assign||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)}function
|
|
51
|
+
`,["className",o])),z(()=>W(["children","Continue"])))}))))))))],["children",Xe.Children.toArray(Array.from(n))])])))}function vr(){return(vr=Object.assign||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)}function pd(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var s,i,u={},c=Object.keys(r);for(i=0;i<c.length;i++)o.indexOf(s=c[i])>=0||(u[s]=r[s]);return u}(e,["context","children"]);return er(t,n)}function _d(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=k(pd,vr({},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=[],s={},i=0,u=n.attributes,c=n.childNodes;for(i=u.length;i--;)u[i].name!=="slot"&&(s[u[i].name]=u[i].value,s[Ni(u[i].name)]=u[i].value);for(i=c.length;i--;){var a=t(c[i],null),f=c[i].slot;f?s[f]=k($o,{name:f},a):o[i]=a}var l=r?k($o,null,o):o;return k(r||n.nodeName.toLowerCase(),s,l)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Qn:He)(this._vdom,this._root)}function Ni(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function md(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[Ni(e)]=n,this._vdom=er(this._vdom,r),He(this._vdom,this._root)}}function wd(){He(this._vdom=null,this._root)}function $o(e,t){var n=this;return k("slot",vr({},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 gd(e,t,n,r){function o(){var s=Reflect.construct(HTMLElement,[],o);return s._vdomComponent=e,s._root=r&&r.shadow?s.attachShadow({mode:"open"}):s,s}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=_d,o.prototype.attributeChangedCallback=md,o.prototype.disconnectedCallback=wd,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach(function(s){Object.defineProperty(o.prototype,s,{get:function(){return this._vdom.props[s]},set:function(i){this._vdom?this.attributeChangedCallback(s,null,i):(this._props||(this._props={}),this._props[s]=i,this.connectedCallback());var u=typeof i;i!=null&&u!=="string"&&u!=="boolean"&&u!=="number"||this.setAttribute(s,i)}})}),customElements.define(t||e.tagName||e.displayName||e.name,o)}function yd(e,t){gd(e,t,void 0,{shadow:!0})}function bd(e){let t,n;const r=(t=af(e.backendUrl,e.accessToken),td(()=>Af(rd,(s,i)=>od(t,s,i),(s,i)=>{}),void 0,void 0))[0],o=[k("style",{children:[id]}),k("div",ct(fe([["className","font-inter px-1 py-5 sm:py-16"],(n=ft(z(()=>{const s=r.ReviewItemList,i=r.PresentPoliciesStatus;let u,c;switch(s.tag){case 1:{u=0;break}case 2:{switch(i.tag){case 2:{s.fields[0].tag===0&&i.fields[0].tag===0?(u=2,c=s.fields[0].fields[0]):u=1;break}case 3:{s.fields[0].tag,u=1;break}default:u=0}break}case 3:{switch(i.tag){case 2:{i.fields[0].tag,u=1;break}case 3:{u=1;break}default:u=0}break}default:u=0}switch(u){case 0:return W(k("div",{children:["Please wait..."]}));case 1:return W(k("div",{children:["Oops, we've encountered an error"]}));default:return W(hd(c,r.ContinueStatus))}})),["children",Xe.Children.toArray(Array.from(n))])])))];return k(ve,{},...o)}yd(e=>k(bd,e),"apollo-workplace-policies-app");
|