@flarehr/apollo-workplace-policies 0.1.179 → 0.1.181
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/assets/check-a011ef96.svg +11 -0
- package/dist/assets/chevron-left-64863ff6.svg +3 -0
- package/dist/assets/chevron-right-8ae85ae9.svg +3 -0
- package/dist/assets/launch-bd615c2a.svg +3 -0
- package/dist/assets/minus-1836ac6d.svg +3 -0
- package/dist/assets/plus-a8f169e6.svg +3 -0
- package/dist/index.html +42 -0
- package/dist/workplace-policies.js +54 -0
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_3040_23717)">
|
|
3
|
+
<path d="M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z" fill="currentColor"/>
|
|
4
|
+
<path d="M6 12L10 16L18 8" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5
|
+
</g>
|
|
6
|
+
<defs>
|
|
7
|
+
<clipPath id="clip0_3040_23717">
|
|
8
|
+
<rect width="24" height="24" fill="white"/>
|
|
9
|
+
</clipPath>
|
|
10
|
+
</defs>
|
|
11
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.5 4H15.5C15.6326 4 15.7597 4.05268 15.8535 4.14645C15.9473 4.24022 16 4.36739 16 4.5V9.5C15.9999 9.59894 15.9706 9.69565 15.9156 9.77789C15.8606 9.86013 15.7824 9.92421 15.691 9.962C15.6303 9.98677 15.5655 9.99967 15.5 10C15.4343 10.0001 15.3692 9.98729 15.3084 9.96223C15.2477 9.93718 15.1925 9.9004 15.146 9.854L13.354 8.061L10.707 10.707C10.6147 10.8025 10.5044 10.8787 10.3824 10.9311C10.2604 10.9835 10.1291 11.0111 9.99636 11.0123C9.86358 11.0134 9.7319 10.9881 9.609 10.9378C9.48611 10.8875 9.37446 10.8133 9.28056 10.7194C9.18667 10.6255 9.11242 10.5139 9.06214 10.391C9.01186 10.2681 8.98655 10.1364 8.98771 10.0036C8.98886 9.87082 9.01645 9.7396 9.06886 9.6176C9.12127 9.49559 9.19745 9.38525 9.29296 9.293L11.939 6.646L10.146 4.854C10.0759 4.78407 10.0281 4.6949 10.0087 4.59779C9.98935 4.50068 9.99926 4.40001 10.0372 4.30854C10.0751 4.21706 10.1393 4.13891 10.2217 4.08398C10.3041 4.02905 10.4009 3.99982 10.5 4ZM12 16H6C5.46957 16 4.96086 15.7893 4.58579 15.4142C4.21071 15.0391 4 14.5304 4 14V8C4 7.46957 4.21071 6.96086 4.58579 6.58579C4.96086 6.21071 5.46957 6 6 6H7C7.26522 6 7.51957 6.10536 7.70711 6.29289C7.89464 6.48043 8 6.73478 8 7C8 7.26522 7.89464 7.51957 7.70711 7.70711C7.51957 7.89464 7.26522 8 7 8H6V14H12V13C12 12.7348 12.1054 12.4804 12.2929 12.2929C12.4804 12.1054 12.7348 12 13 12C13.2652 12 13.5196 12.1054 13.7071 12.2929C13.8946 12.4804 14 12.7348 14 13V14C14 14.5304 13.7893 15.0391 13.4142 15.4142C13.0391 15.7893 12.5304 16 12 16Z" fill="currentColor"/>
|
|
3
|
+
</svg>
|
package/dist/index.html
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<!-- This index is for local development -->
|
|
2
|
+
<!DOCTYPE html>
|
|
3
|
+
<html>
|
|
4
|
+
<head>
|
|
5
|
+
<title>Workplace Policies Apps</title>
|
|
6
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
8
|
+
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
9
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
10
|
+
<link
|
|
11
|
+
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"
|
|
12
|
+
rel="stylesheet"
|
|
13
|
+
/>
|
|
14
|
+
<script type="module" crossorigin src="/workplace-policies.js"></script>
|
|
15
|
+
</head>
|
|
16
|
+
<style>
|
|
17
|
+
:root {
|
|
18
|
+
--fl-color-primary: #1890ff;
|
|
19
|
+
--fl-color-primary-light: #74c0ff;
|
|
20
|
+
--fl-color-primary-dark: #006bce;
|
|
21
|
+
--fl-color-primary-disabled: #f5f5f5;
|
|
22
|
+
--fl-color-primary-hover: #40a9ff;
|
|
23
|
+
--fl-color-primary-focus: #40a9ff;
|
|
24
|
+
--fl-color-primary-text: white;
|
|
25
|
+
--fl-color-secondary: #d3d3d3;
|
|
26
|
+
--fl-color-secondary-light: #e1e1e1;
|
|
27
|
+
--fl-color-secondary-dark: #cecece;
|
|
28
|
+
--fl-color-secondary-disabled: #f5f5f5;
|
|
29
|
+
--fl-color-secondary-hover: #ebebeb;
|
|
30
|
+
--fl-color-secondary-focus: #ebebeb;
|
|
31
|
+
--fl-color-secondary-text: #262626;
|
|
32
|
+
}
|
|
33
|
+
</style>
|
|
34
|
+
<body>
|
|
35
|
+
<apollo-workplace-policies-app
|
|
36
|
+
access-token="TOKEN_IGNORED_FOR_DEV"
|
|
37
|
+
backend-url="backend_url"
|
|
38
|
+
>
|
|
39
|
+
</apollo-workplace-policies-app>
|
|
40
|
+
|
|
41
|
+
</body>
|
|
42
|
+
</html>
|
|
@@ -0,0 +1,54 @@
|
|
|
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 Dt,S,Po,Ye,kr,Ao,Ln,Oo,at={},No=[],Di=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,_n=Array.isArray;function Ne(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 b(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?Dt.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 Mt(e,i,r,o,null)}function Mt(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??++Po};return o==null&&S.vnode!=null&&S.vnode(s),s}function Fo(){return{current:null}}function Ie(e){return e.children}function Ee(e,t){this.props=e,this.context=t}function nn(e,t){if(t==null)return e.__?nn(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"?nn(e):null}function Do(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 Do(e)}}function Hn(e){(!e.__d&&(e.__d=!0)&&Ye.push(e)&&!rn.__r++||kr!==S.debounceRendering)&&((kr=S.debounceRendering)||Ao)(rn)}function rn(){var e,t,n,r,o,s,i,l,c;for(Ye.sort(Ln);e=Ye.shift();)e.__d&&(t=Ye.length,r=void 0,o=void 0,s=void 0,l=(i=(n=e).__v).__e,(c=n.__P)&&(r=[],o=[],(s=Ne({},i)).__v=i.__v+1,er(c,i,s,n.__n,c.ownerSVGElement!==void 0,i.__h!=null?[l]:null,r,l??nn(i),i.__h,o),jo(r,i,o),i.__e!=l&&Do(i)),Ye.length>t&&Ye.sort(Ln));rn.__r=0}function Vo(e,t,n,r,o,s,i,l,c,a,f){var u,p,h,d,m,g,w,C,k,q,H=0,ee=r&&r.__k||No,Ze=ee.length,Je=Ze,te=t.length;for(n.__k=[],u=0;u<te;u++)(d=n.__k[u]=(d=t[u])==null||typeof d=="boolean"||typeof d=="function"?null:typeof d=="string"||typeof d=="number"||typeof d=="bigint"?Mt(null,d,null,null,d):_n(d)?Mt(Ie,{children:d},null,null,null):d.__b>0?Mt(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)!=null&&(d.__=n,d.__b=n.__b+1,(C=Vi(d,ee,w=u+H,Je))===-1?h=at:(h=ee[C]||at,ee[C]=void 0,Je--),er(e,d,h,o,s,i,l,c,a,f),m=d.__e,(p=d.ref)&&h.ref!=p&&(h.ref&&tr(h.ref,null,d),f.push(p,d.__c||m,d)),m!=null&&(g==null&&(g=m),q=!(k=h===at||h.__v===null)&&C===w,k?C==-1&&H--:C!==w&&(C===w+1?(H++,q=!0):C>w?Je>te-w?(H+=C-w,q=!0):H--:H=C<w&&C==w-1?C-w:0),w=u+H,q=q||C==u&&!k,typeof d.type!="function"||C===w&&h.__k!==d.__k?typeof d.type=="function"||q?d.__d!==void 0?(c=d.__d,d.__d=void 0):c=m.nextSibling:c=Ho(e,m,c):c=Lo(d,c,e),typeof n.type=="function"&&(n.__d=c)));for(n.__e=g,u=Ze;u--;)ee[u]!=null&&(typeof n.type=="function"&&ee[u].__e!=null&&ee[u].__e==n.__d&&(n.__d=ee[u].__e.nextSibling),Uo(ee[u],ee[u]))}function Lo(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"?Lo(r,t,n):Ho(n,r.__e,t));return t}function Re(e,t){return t=t||[],e==null||typeof e=="boolean"||(_n(e)?e.some(function(n){Re(n,t)}):t.push(e)),t}function Ho(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,l=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||l<t.length;){if(i>=0){if((c=t[i])&&o==c.key&&s===c.type)return i;i--}if(l<t.length){if((c=t[l])&&o==c.key&&s===c.type)return l;l++}}return-1}function Li(e,t,n,r,o){var s;for(s in n)s==="children"||s==="key"||s in t||on(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]||on(e,s,t[s],n[s],r)}function Tr(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Di.test(t)?n:n+"px"}function on(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||Tr(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Tr(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?Ir:$r,s):e.removeEventListener(t,s?Ir:$r,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 $r(e){return this.l[e.type+!1](S.event?S.event(e):e)}function Ir(e){return this.l[e.type+!0](S.event?S.event(e):e)}function er(e,t,n,r,o,s,i,l,c,a){var f,u,p,h,d,m,g,w,C,k,q,H,ee,Ze,Je,te=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(c=n.__h,l=t.__e=n.__e,t.__h=null,s=[l]),(f=S.__b)&&f(t);try{e:if(typeof te=="function"){if(w=t.props,C=(f=te.contextType)&&r[f.__c],k=f?C?C.props.value:f.__:r,n.__c?g=(u=t.__c=n.__c).__=u.__E:("prototype"in te&&te.prototype.render?t.__c=u=new te(w,k):(t.__c=u=new Ee(w,k),u.constructor=te,u.render=ji),C&&C.sub(u),u.props=w,u.state||(u.state={}),u.context=k,u.__n=r,p=u.__d=!0,u.__h=[],u._sb=[]),u.__s==null&&(u.__s=u.state),te.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Ne({},u.__s)),Ne(u.__s,te.getDerivedStateFromProps(w,u.__s))),h=u.props,d=u.state,u.__v=t,p)te.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(te.getDerivedStateFromProps==null&&w!==h&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(w,k),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(w,u.__s,k)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(u.props=w,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(Zt){Zt&&(Zt.__=t)}),q=0;q<u._sb.length;q++)u.__h.push(u._sb[q]);u._sb=[],u.__h.length&&i.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(w,u.__s,k),u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(h,d,m)})}if(u.context=k,u.props=w,u.__P=e,u.__e=!1,H=S.__r,ee=0,"prototype"in te&&te.prototype.render){for(u.state=u.__s,u.__d=!1,H&&H(t),f=u.render(u.props,u.state,u.context),Ze=0;Ze<u._sb.length;Ze++)u.__h.push(u._sb[Ze]);u._sb=[]}else do u.__d=!1,H&&H(t),f=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++ee<25);u.state=u.__s,u.getChildContext!=null&&(r=Ne(Ne({},r),u.getChildContext())),p||u.getSnapshotBeforeUpdate==null||(m=u.getSnapshotBeforeUpdate(h,d)),Vo(e,_n(Je=f!=null&&f.type===Ie&&f.key==null?f.props.children:f)?Je:[Je],t,n,r,o,s,i,l,c,a),u.base=t.__e,t.__h=null,u.__h.length&&i.push(u),g&&(u.__E=u.__=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=l,t.__h=!!c,s[s.indexOf(l)]=null),S.__e(Zt,t,n)}}function jo(e,t,n){for(var r=0;r<n.length;r++)tr(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,l,c){var a,f,u,p=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,l=!1}if(d===null)p===h||l&&e.data===h||(e.data=h);else{if(s=s&&Dt.call(e.childNodes),f=(p=n.props||at).dangerouslySetInnerHTML,u=h.dangerouslySetInnerHTML,!l){if(s!=null)for(p={},m=0;m<e.attributes.length;m++)p[e.attributes[m].name]=e.attributes[m].value;(u||f)&&(u&&(f&&u.__html==f.__html||u.__html===e.innerHTML)||(e.innerHTML=u&&u.__html||""))}if(Li(e,h,p,o,l),u)t.__k=[];else if(Vo(e,_n(m=t.props.children)?m:[m],t,n,r,o&&d!=="foreignObject",s,i,s?s[0]:n.__k&&nn(n,0),l,c),s!=null)for(m=s.length;m--;)s[m]!=null&&Ro(s[m]);l||("value"in h&&(m=h.value)!==void 0&&(m!==e.value||d==="progress"&&!m||d==="option"&&m!==p.value)&&on(e,"value",m,p.value,!1),"checked"in h&&(m=h.checked)!==void 0&&m!==e.checked&&on(e,"checked",m,p.checked,!1))}return e}function tr(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){S.__e(r,n)}}function Uo(e,t,n){var r,o;if(S.unmount&&S.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||tr(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]&&Uo(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 Ge(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=[],er(t,e=(!r&&n||t).__k=b(Ie,null,[e]),o||at,at,t.ownerSVGElement!==void 0,!r&&n?[n]:o?null:t.firstChild?Dt.call(t.childNodes):null,s,!r&&n?n:o?o.__e:t.firstChild,r,i),jo(s,e,i)}function nr(e,t){Ge(e,t,nr)}function rr(e,t,n){var r,o,s,i,l=Ne({},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]:l[s]=t[s]===void 0&&i!==void 0?i[s]:t[s];return arguments.length>2&&(l.children=arguments.length>3?Dt.call(arguments,2):n),Mt(e.type,l,r||e.key,o||e.ref,null)}function Bo(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(l){l.__e=!0,Hn(l)})},this.sub=function(i){o.push(i);var l=i.componentWillUnmount;i.componentWillUnmount=function(){o.splice(o.indexOf(i),1),l&&l.call(i)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}Dt=No.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(l){e=l}throw e}},Po=0,Ee.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Ne({},this.state),typeof e=="function"&&(e=e(Ne({},n),this.props)),e&&Ne(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Hn(this))},Ee.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Hn(this))},Ee.prototype.render=Ie,Ye=[],Ao=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ln=function(e,t){return e.__v.__b-t.__v.__b},rn.__r=0,Oo=0;var De,P,$n,Mr,_t=0,Go=[],Xt=[],Pr=S.__b,Ar=S.__r,Or=S.diffed,Nr=S.__c,Rr=S.unmount;function nt(e,t){S.__h&&S.__h(P,e,_t||t),_t=0;var n=P.__H||(P.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Xt}),n.__[e]}function Vt(e){return _t=1,or(Yo,e)}function or(e,t,n){var r=nt(De++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Yo(void 0,t),function(l){var c=r.__N?r.__N[0]:r.__[0],a=r.t(c,l);c!==a&&(r.__N=[a,r.__[1]],r.__c.setState({}))}],r.__c=P,!P.u)){var o=function(l,c,a){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(p){return p.__c});if(f.every(function(p){return!p.__N}))return!s||s.call(this,l,c,a);var u=!1;return f.forEach(function(p){if(p.__N){var h=p.__[0];p.__=p.__N,p.__N=void 0,h!==p.__[0]&&(u=!0)}}),!(!u&&r.__c.props===l)&&(!s||s.call(this,l,c,a))};P.u=!0;var s=P.shouldComponentUpdate,i=P.componentWillUpdate;P.componentWillUpdate=function(l,c,a){if(this.__e){var f=s;s=void 0,o(l,c,a),s=f}i&&i.call(this,l,c,a)},P.shouldComponentUpdate=o}return r.__N||r.__}function mn(e,t){var n=nt(De++,3);!S.__s&&sr(n.__H,t)&&(n.__=e,n.i=t,P.__H.__h.push(n))}function Lt(e,t){var n=nt(De++,4);!S.__s&&sr(n.__H,t)&&(n.__=e,n.i=t,P.__h.push(n))}function zo(e){return _t=5,gn(function(){return{current:e}},[])}function Wo(e,t,n){_t=6,Lt(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 gn(e,t){var n=nt(De++,7);return sr(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function qo(e,t){return _t=8,gn(function(){return e},t)}function Zo(e){var t=P.context[e.__c],n=nt(De++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(P)),t.props.value):e.__}function Jo(e,t){S.useDebugValue&&S.useDebugValue(t?t(e):e)}function Ui(e){var t=nt(De++,10),n=Vt();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 Ko(){var e=nt(De++,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=Go.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Qt),e.__H.__h.forEach(jn),e.__H.__h=[]}catch(t){e.__H.__h=[],S.__e(t,e.__v)}}S.__b=function(e){P=null,Pr&&Pr(e)},S.__r=function(e){Ar&&Ar(e),De=0;var t=(P=e.__c).__H;t&&($n===P?(t.__h=[],P.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Xt,n.__N=n.i=void 0})):(t.__h.forEach(Qt),t.__h.forEach(jn),t.__h=[],De=0)),$n=P},S.diffed=function(e){Or&&Or(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Go.push(t)!==1&&Mr===S.requestAnimationFrame||((Mr=S.requestAnimationFrame)||Gi)(Bi)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Xt&&(n.__=n.__V),n.i=void 0,n.__V=Xt})),$n=P=null},S.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Qt),n.__h=n.__h.filter(function(r){return!r.__||jn(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],S.__e(r,n.__v)}}),Nr&&Nr(e,t)},S.unmount=function(e){Rr&&Rr(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Qt(r)}catch(o){t=o}}),n.__H=void 0,t&&S.__e(t,n.__v))};var Fr=typeof requestAnimationFrame=="function";function Gi(e){var t,n=function(){clearTimeout(r),Fr&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Fr&&(t=requestAnimationFrame(n))}function Qt(e){var t=P,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),P=t}function jn(e){var t=P;e.__c=e.__(),P=t}function sr(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Yo(e,t){return typeof t=="function"?t(e):t}function Xo(e,t){for(var n in t)e[n]=t[n];return e}function Un(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 In(e,t){return e===t&&(e!==0||1/e==1/t)||e!=e&&t!=t}function sn(e){this.props=e}function Qo(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:Un(this.props,o)}function r(o){return this.shouldComponentUpdate=n,b(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(sn.prototype=new Ee).isPureReactComponent=!0,sn.prototype.shouldComponentUpdate=function(e,t){return Un(this.props,e)||Un(this.state,t)};var Dr=S.__b;S.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Dr&&Dr(e)};var zi=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function es(e){function t(n){var r=Xo({},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 Vr=function(e,t){return e==null?null:Re(Re(e).map(t))},ts={map:Vr,forEach:Vr,count:function(e){return e?Re(e).length:0},only:function(e){var t=Re(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Re},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 Lr=S.unmount;function ns(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=Xo({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return ns(r,t,n)})),e}function rs(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return rs(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 Pt(){this.__u=0,this.t=null,this.__b=null}function os(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function ss(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 b(n,s)}return o.displayName="Lazy",o.__f=!0,o}function lt(){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),Lr&&Lr(e)},(Pt.prototype=new Ee).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=os(r.__v),s=!1,i=function(){s||(s=!0,n.__R=null,o?o(l):l())};n.__R=i;var l=function(){if(!--r.__u){if(r.state.__a){var a=r.state.__a;r.__v.__k[0]=rs(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)},Pt.prototype.componentWillUnmount=function(){this.t=[]},Pt.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]=ns(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&b(Ie,null,e.fallback);return o&&(o.__h=null),[b(Ie,null,t.__a?null:e.children),o]};var Hr=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(){Ge(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)}}),Ge(b(qi,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function is(e,t){var n=b(Zi,{__v:e,i:t});return n.containerInfo=t,n}(lt.prototype=new Ee).__a=function(e){var t=this,n=os(t.__v),r=t.o.get(e);return r[0]++,function(o){var s=function(){t.props.revealOrder?(r.push(o),Hr(t,e,r)):o()};n?n(s):s()}},lt.prototype.render=function(e){this.u=null,this.o=new Map;var t=Re(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},lt.prototype.componentDidUpdate=lt.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){Hr(e,n,t)})};var ls=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=""),Ge(e,t),typeof n=="function"&&n(),e?e.__c:null}function cs(e,t,n){return nr(e,t),typeof n=="function"&&n(),e?e.__c:null}Ee.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Ee.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var jr=S.event;function el(){}function tl(){return this.cancelBubble}function nl(){return this.defaultPrevented}S.event=function(e){return jr&&(e=jr(e)),e.persist=el,e.isPropagationStopped=tl,e.isDefaultPrevented=nl,e.nativeEvent=e};var ir,rl={enumerable:!1,configurable:!0,get:function(){return this.class}},Ur=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 l=s.toLowerCase();s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&i===!0?i="":l==="ondoubleclick"?s="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||Qi(n.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":Ki.test(s)?s=l:r.indexOf("-")===-1&&Ji.test(s)?s=s.replace(Yi,"-$&").toLowerCase():i===null&&(i=void 0):l=s="oninput",l==="oninput"&&o[s=l]&&(s="oninputCapture"),o[s]=i}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=Re(n.children).forEach(function(c){c.props.selected=o.value.indexOf(c.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=Re(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",rl)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=ls,Ur&&Ur(e)};var Br=S.__r;S.__r=function(e){Br&&Br(e),ir=e.__c};var Gr=S.diffed;S.diffed=function(e){Gr&&Gr(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),ir=null};var as={ReactCurrentDispatcher:{current:{readContext:function(e){return ir.__n[e.__c].props.value}}}},ol="17.0.2";function fs(e){return b.bind(null,e)}function lr(e){return!!e&&e.$$typeof===ls}function ds(e){return lr(e)?rr.apply(null,arguments):e}function hs(e){return!!e.__k&&(Ge(null,e),!0)}function ps(e){return e&&(e.base||e.nodeType===1&&e)||null}var _s=function(e,t){return e(t)},ms=function(e,t){return e(t)},gs=Ie;function ur(e){e()}function ws(e){return e}function ys(){return[!1,ur]}var bs=Lt;function vs(e,t){var n=t(),r=Vt({h:{__:n,v:t}}),o=r[0].h,s=r[1];return Lt(function(){o.__=n,o.v=t,In(o.__,t())||s({h:o})},[e,n,t]),mn(function(){return In(o.__,o.v())||s({h:o}),e(function(){In(o.__,o.v())||s({h:o})})},[e]),n}var Ss={useState:Vt,useId:Ko,useReducer:or,useEffect:mn,useLayoutEffect:Lt,useInsertionEffect:bs,useTransition:ys,useDeferredValue:ws,useSyncExternalStore:vs,startTransition:ur,useRef:zo,useImperativeHandle:Wo,useMemo:gn,useCallback:qo,useContext:Zo,useDebugValue:Jo,version:"17.0.2",Children:ts,render:us,hydrate:cs,unmountComponentAtNode:hs,createPortal:is,createElement:b,createContext:Bo,createFactory:fs,cloneElement:ds,createRef:Fo,Fragment:Ie,isValidElement:lr,findDOMNode:ps,Component:Ee,PureComponent:sn,memo:Qo,forwardRef:es,flushSync:ms,unstable_batchedUpdates:_s,StrictMode:gs,Suspense:Pt,SuspenseList:lt,lazy:ss,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:as};const sl=Object.freeze(Object.defineProperty({__proto__:null,Children:ts,Component:Ee,Fragment:Ie,PureComponent:sn,StrictMode:gs,Suspense:Pt,SuspenseList:lt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:as,cloneElement:ds,createContext:Bo,createElement:b,createFactory:fs,createPortal:is,createRef:Fo,default:Ss,findDOMNode:ps,flushSync:ms,forwardRef:es,hydrate:cs,isValidElement:lr,lazy:ss,memo:Qo,render:us,startTransition:ur,unmountComponentAtNode:hs,unstable_batchedUpdates:_s,useCallback:qo,useContext:Zo,useDebugValue:Jo,useDeferredValue:ws,useEffect:mn,useErrorBoundary:Ui,useId:Ko,useImperativeHandle:Wo,useInsertionEffect:bs,useLayoutEffect:Lt,useMemo:gn,useReducer:or,useRef:zo,useState:Vt,useSyncExternalStore:vs,useTransition:ys,version:ol},Symbol.toStringTag,{value:"Module"}));function Me(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function il(e){return e!=null&&typeof e.GetEnumerator=="function"}function ll(e){return e!=null&&typeof e.CompareTo=="function"}function ul(e){return e!=null&&typeof e.Equals=="function"}function cl(e){return e!=null&&typeof e.GetHashCode=="function"}function Bn(e){return e!=null&&typeof e.Dispose=="function"}function F(e){Bn(e)&&e.Dispose()}function ke(){return null}function ln(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 al{constructor(t){this.iter=t,this.current=ke()}"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 G(e){return il(e)?e.GetEnumerator():new al(e[Symbol.iterator]())}function wn(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 fl{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 oe(e,t){let n=e.toString(10);for(;n.length<t;)n="0"+n;return n}function dl(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 zr(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function hl(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function et(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class je{static id(t){return je.idMap.has(t)||je.idMap.set(t,++je.count),je.idMap.get(t)}}je.idMap=new WeakMap;je.count=0;function cr(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function Ae(e){return e*2654435761|0}function pl(e){return cr(e.toString(32))}function Ht(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 _l(e){return e.getTime()}function ml(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=Ve(e[r]);return Ht(n)}function Ve(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Ae(e);case"bigint":return pl(e);case"string":return cr(e);default:{if(cl(e))return e.GetHashCode();if(Me(e))return ml(e);if(e instanceof Date)return _l(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>Ve(r));return Ht(n)}else return Ae(je.id(e))}}}function Gn(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 Cs(e,t){return Gn(e,t,re)}function gl(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]||!re(e[n[o]],t[r[o]]))return!1;return!0}function re(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:ul(e)?e.Equals(t):Me(e)?Me(t)&&Cs(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&xs(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&gl(e,t)}function xs(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+zr(e),r=t.getTime()+zr(t)),n===r?0:n<r?-1:1}function yn(e,t){return e===t?0:e<t?-1:1}function wl(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 wl(e,t,ye)}function yl(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=ye(e[i],t[i]),s!==0)return s}return 0}function ye(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:ll(e)?e.CompareTo(t):Me(e)?Me(t)?Es(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?xs(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?yl(e,t):-1}function K(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function bl(e){Me(e)?e.splice(0):e.clear()}const bn=new WeakMap;function V(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return bn.set(t,e),t}function Xe(e){return bn.get(e)??(t=>n=>e(t,n))}function zn(e){if(e==null)return null;const t=(n,r,o)=>e(n)(r)(o);return bn.set(t,e),t}function Mn(e){return bn.get(e)??(t=>n=>r=>e(t,n,r))}function vl(e){let t=0,n="[";for(const r of e){if(t===0)n+=Te(r);else if(t===100){n+="; ...";break}else n+="; "+Te(r);t++}return n+"]"}function Te(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 vl(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([o,s])=>o+" = "+Te(s,t+1)).join(`
|
|
2
|
+
`)+" }":(r==null?void 0:r.name)??""}}return String(e)}function Sl(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=Te(t[0]),r=n.indexOf(" ")>=0):n=t.map(o=>Te(o)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class W{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return Sl(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>Ve(n));return t.splice(0,0,Ae(this.tag)),Ht(t)}Equals(t){return this===t?!0:ln(this,t)&&this.tag===t.tag?Cs(this.fields,t.fields):!1}CompareTo(t){return this===t?0:ln(this,t)?this.tag===t.tag?Es(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function Cl(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function xl(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+Te(n)).join(`
|
|
3
|
+
`)+" }"}function El(e){const t=Object.values(e).map(n=>Ve(n));return Ht(t)}function kl(e,t){if(e===t)return!0;if(ln(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!re(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function Tl(e,t){if(e===t)return 0;if(ln(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=ye(e[n[r]],t[n[r]]);if(o!==0)return o}return 0}else return-1}class le{toJSON(){return Cl(this)}toString(){return xl(this)}GetHashCode(){return El(this)}Equals(t){return kl(this,t)}CompareTo(t){return Tl(this,t)}}class ue{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 $l{constructor(t){this.message=t}}function Il(e){return e instanceof $l||e instanceof Error}function Ml(e){return e instanceof Promise}function un(e){return Il(e)||Ml(e)?e:new Error(String(e))}const vt=Symbol("numeric");function ks(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[vt])}function Pl(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function Wn(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[vt]().multiply(t)}function en(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[vt]().toFixed(t)}function cn(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[vt]().toPrecision(t)}function an(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[vt]().toExponential(t)}function fn(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[vt]().toHex()}class Al{constructor(t,n,r,o){this.declaringType=t,this.tag=n,this.name=r,this.fields=o}}class be{constructor(t,n,r,o,s,i,l){this.fullname=t,this.generics=n,this.construct=r,this.parent=o,this.fields=s,this.cases=i,this.enumCases=l}toString(){return R(this)}GetHashCode(){return Ts(this)}Equals(t){return qn(this,t)}}function fe(e){return e.generics!=null?e.generics:[]}function Ts(e){const t=cr(e.fullname),n=fe(e).map(Ts);return Ht([t,...n])}function qn(e,t){return e.fullname===""?t.fullname===""&&Gn(Ot(e),Ot(t),([n,r],[o,s])=>n===o&&qn(r,s)):e.fullname===t.fullname&&Gn(fe(e),fe(t),qn)}function Ol(e,t,n,r){return new be(e,t,n,r)}function jt(e,t,n,r){return new be(e,t,n,void 0,r)}function Nl(...e){return new be("",void 0,void 0,void 0,()=>e)}function $s(e,t,n,r){const o=new be(e,t,n,void 0,void 0,()=>{const s=n.prototype.cases();return r().map((i,l)=>new Al(o,l,s[l],i))});return o}function Rl(e){return new be("Microsoft.FSharp.Collections.FSharpList`1",[e])}const Is=new be("System.Object"),tt=new be("System.String"),Fl=new be("System.Int32");function ft(e){if(Array.isArray(e))return e[0];if(e instanceof be){const t=Ut(e);if(t!=null)return ft(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function R(e){const t=Ut(e);return t!=null?R(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>R(n)).join(",")+"]"}function Ms(e){return Ut(e)!=null}function Ut(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function Ps(e){return e.generics!=null&&e.generics.length>0}function ar(e){return e.enumCases!=null&&e.enumCases.length>0}function As(e){return e.generics==null?e:new be(e.fullname,e.generics.map(()=>Is))}function Os(e){var t;return(t=e.generics)==null?void 0:t[0]}function rt(e){if(ar(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function Dl(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 ot(e,t){const n=parseInt(t,10);return Dl(e,isNaN(n)?t:n)[1]}function Ns(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Ot(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Rs(e){if(fr(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Fs(e){return e instanceof be?e.cases!=null:e instanceof W}function Ds(e){return e instanceof be?e.fields!=null:e instanceof le}function fr(e){return e.fullname.startsWith("System.Tuple")}function Vl(e,t){const r=Ns(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function Vs(e){return e.fields==null?[]:e.fields}function Ll(e,t){return e[t[0]]}function Hl(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 jl(e,t){const n=Ot(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 Ul(e,t){return e}class Bl{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 dr extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,dr.prototype)}}class hr{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>hr.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function Ue(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new dr);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(un(n))}});else try{e(t)}catch(n){t.onError(un(n))}}}function Gl(e,t){return Ue(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(o){n.onError(un(o))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function zl(e){return Ue(t=>t.onSuccess(e))}class Wl{Bind(t,n){return Gl(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return Ue(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 zl(t)}ReturnFrom(t){return t}TryFinally(t,n){return Ue(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 Ue(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:o=>{try{n(o)(r)}catch(s){r.onError(un(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 Ue(t=>t.onSuccess(void 0))}}const J=new Wl;class mt{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return Ve(this.value)}Equals(t){return t==null?!1:re(this.value,t instanceof mt?t.value:t)}CompareTo(t){return t==null?1:ye(this.value,t instanceof mt?t.value:t)}}function y(e){if(e==null)throw new Error("Option has no value");return e instanceof mt?e.value:e}function ie(e){return e==null||e instanceof mt?new mt(e):e}function Zn(e,t){return e!=null?y(e):t}function ql(e,t){return e!=null?y(e):t()}function Zl(e,t){return t!=null?ie(e(y(t))):void 0}function Jl(e){return new _(0,[e])}function Ls(e){return new _(1,[e])}class _ extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function we(e,t){return t.tag===0?Jl(e(t.fields[0])):Ls(t.fields[0])}function Kl(e,t){return t.tag===0?e(t.fields[0]):Ls(t.fields[0])}function Yl(e){return new Hs(0,[e])}function Xl(e){return new Hs(1,[e])}class Hs extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function Ql(e){return Yl(e)}function eu(e){return Xl(e)}function Pn(e){}const tu=new Bl;function nu(e){return Ue(t=>{e({onSuccess:n=>t.onSuccess(Ql(n)),onError:n=>t.onSuccess(eu(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function ru(e){return Ue(t=>e([t.onSuccess,t.onError,t.onCancel]))}function ou(e,t){return iu(e,t)}function su(e,t){return ou(e,t)}function iu(e,t,n,r,o){typeof t!="function"&&(o=t,t=void 0);const s=new hr;e({onSuccess:t||Pn,onError:n||Pn,onCancel:r||Pn,cancelToken:o||tu,trampoline:s})}class pr extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class js extends W{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class Us extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class Bt extends le{constructor(t,n,r,o,s,i,l,c){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=o,this.overridenMimeType=s,this.overridenResponseType=i,this.timeout=l,this.content=c}}class it extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Bs extends le{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 _r(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+oe(n,2)+":"+oe(r,2)}function dn(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 lu(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return oe(e.getFullYear(),4)+"-"+oe(e.getMonth()+1,2)+"-"+oe(e.getDate(),2)+"T"+oe(e.getHours(),2)+":"+oe(e.getMinutes(),2)+":"+oe(e.getSeconds(),2)+"."+oe(e.getMilliseconds(),3)+(n?_r(e.getTimezoneOffset()*-6e4):"")}}function uu(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+_r(t)}function Gs(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:oe(o,r.length)})}function cu(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," ")+_r(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return dn(n,"first");case"T":case"t":return dn(n,"second");case"O":case"o":return uu(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return Gs(n,t,!0)}function au(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?dn(e,"first"):e.toLocaleDateString();case"T":case"t":return n?dn(e,"second"):e.toLocaleTimeString();case"O":case"o":return lu(e,n);default:throw new Error("Unrecognized Date print format")}else return Gs(e,t,n)}function vn(e,t,n){return e.offset!=null?cu(e,t):au(e,t)}function mr(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function fu(){return mr(-621355968e5,0)}function zs(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 l=o[2].split(":");i=parseInt(l[0],10)*3600+parseInt(l[1]||"0",10)*60+parseFloat(l[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 l=new Date;s=new Date(l.getUTCFullYear()+"/"+(l.getUTCMonth()+1)+"/"+l.getUTCDate())}if(o[4]==="Z")r="Z";else{let l=parseInt(o[5],10)*60+parseInt(o[6]||"0",10);o[4][0]==="-"&&(l*=-1),r=l,i-=l*60}}else if(o[1]!=null)s=new Date(o[1]);else{const l=new Date;s=new Date(l.getFullYear()+"/"+(l.getMonth()+1)+"/"+l.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 du(e,t=!1){const[n,r]=zs(e),o=r!=null?t&&r==="Z"?1:2:0;return mr(n.getTime(),o)}function hu(e,t){try{return t.contents=du(e),!0}catch{return!1}}function pu(e){return e.kind===1?e:mr(e.getTime(),1)}function _u(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 Ws(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Wr(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 mu(e,t,n,r,o=0){function s(){let i=arguments[0];if(r){r--;const l=[],c=arguments.length,a=typeof arguments[c-1]!="string";let f=a?c-3:c-2;for(let u=0;u<f;u++)l.push(arguments[u]);l.index=arguments[f++],l.input=arguments[f++],a&&(l.groups=arguments[f]),i=n(l)}return i}if(typeof e=="string"){const i=e;e=_u(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 l=t.substring(o),c=Wr(e,l),a=Wr.length>r?(i=c[r-1],l.substring(0,i.index+i[0].length)):l;return t.substring(0,o)+a.replace(e,n)+t.substring(o+a.length)}else return t.replace(e,n)}const kt=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,gu=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function qs(e,t){return Pl(e,t)<0}function ze(e){return{input:e,cont:yu(e)}}function Zs(e,t){return typeof t=="string"?e(t):t.cont(e)}function gt(e){return Zs(t=>t,e)}function Js(e){return Zs(t=>{throw new Error(t)},e)}function wu(e,t,n,r,o){let s="";if(t=t||"",o=o||"",ks(e))switch(o.toLowerCase()!=="x"&&(qs(e,0)?(e=Wn(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=en(e,r);break;case"g":case"G":e=r!=null?cn(e,r):cn(e);break;case"e":case"E":e=r!=null?an(e,r):an(e);break;case"x":e=fn(e);break;case"X":e=fn(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=vn(e):e=Te(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=s+e;else{const i=t.indexOf("0")>=0,l=t.indexOf("-")>=0,c=l||!i?" ":"0";c==="0"?(e=Nt(e,n-s.length,c,l),e=s+e):e=Nt(s+e,n,c,l)}return e}function Ks(e,t,n,r="",o=-1){return(...s)=>{let i=r;const l=t.slice(),c=n.slice();for(const a of s){const[,,f,u,p,h]=c[0];let d=u;if(o>=0)d=o,o=-1;else if(d==="*"){if(a<0)throw new Error("Non-negative number required");o=a;continue}i+=l[0],i+=wu(a,f,d,p,h),l.splice(0,1),c.splice(0,1)}return c.length===0?(i+=l[0],e(i)):Ks(e,l,c,i,o)}}function yu(e){return t=>{kt.lastIndex=0;const n=[],r=[];let o=0,s=kt.exec(e);for(;s;){const i=s.index+(s[1]||"").length;n.push(e.substring(o,i).replace(/%%/g,"%")),r.push(s),o=kt.lastIndex,kt.lastIndex-=1,s=kt.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(o).replace(/%%/g,"%")),Ks(t,n,r))}}function bu(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(gu,(r,o,s,i,l,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(ks(a))switch(l=l==null?null:parseInt(l,10),i){case"f":case"F":l=l??2,a=en(a,l);break;case"g":case"G":a=l!=null?cn(a,l):cn(a);break;case"e":case"E":a=l!=null?an(a,l):an(a);break;case"p":case"P":l=l??2,a=en(Wn(a,100),l)+" %";break;case"d":case"D":a=l!=null?An(String(a),l,"0"):String(a);break;case"x":case"X":a=l!=null?An(fn(a),l,"0"):fn(a),i==="X"&&(a=a.toUpperCase());break;default:if(c){let f="";a=c.replace(/([0#,]+)(\.[0#]+)?/,(u,p,h)=>{qs(a,0)&&(a=Wn(a,-1),f="-"),h=h==null?"":h.substring(1),a=en(a,Math.max(h.length,0));let[d,m]=a.split(".");m||(m="");const g=p.replace(/,/g,"").replace(/^#+/,"").length;d=An(d,g,"0");const w=h.replace(/#+$/,"").length;if(w>m.length?m=Su(m,w,"0"):w<m.length&&(m=m.substring(0,w)+m.substring(w).replace(/0+$/,"")),p.indexOf(",")>0){const C=d.length%3,k=Math.floor(d.length/3);let q=C>0?d.substr(0,C)+(k>0?",":""):"";for(let H=0;H<k;H++)q+=d.substr(C+H*3,3)+(H<k-1?",":"");d=q}return m.length>0?d+"."+m:d}),a=f+a}}else a instanceof Date?a=vn(a,c||i):a=Te(a);return s=parseInt((s||" ").substring(1),10),isNaN(s)||(a=Nt(String(a),Math.abs(s)," ",s<0)),a})}function vu(e){return typeof e!="string"||e.length===0}function We(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Nt(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 An(e,t,n){return Nt(e,t,n)}function Su(e,t,n){return Nt(e,t,n,!0)}function Cu(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(Ws),t=t.length>0?t:["\\s"];const i=[],l=new RegExp(t.join("|"),"g");let c=!0,a=0;do{const f=l.exec(e);if(f===null){const u=s?e.substring(a).trim():e.substring(a);(!o||u.length>0)&&i.push(u),c=!1}else{const u=s?e.substring(a,f.index).trim():e.substring(a,f.index);(!o||u.length>0)&&(n!=null&&i.length+1===n?(i.push(s?e.substring(a).trim():e.substring(a)),c=!1):i.push(u)),a=l.lastIndex}}while(c);return i}function xu(e,...t){if(t.length===0)return e.trim();const n="["+Ws(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}const Ys="Collection was empty.";function Xs(e,t){return typeof e=="function"?new e(t):new Array(t)}function qr(e,t){return e>t?e:t}function Sn(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=Xs(n,r);for(let s=0;s<=r-1;s++)o[s]=e(t[s]);return o}function Eu(e,t){const n=Xs(t,1);return n[0]=e,n}function ku(e){return e.slice().reverse()}function Tu(e,t){return t.find(e)}function $u(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 re(n,ke())?r:St(o=>o,r,n)}function Cn(e,t,n){return n.reduce(e,t)}function Qs(e,t,n){return t.reduceRight((r,o)=>e(o,r),n)}class de extends le{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+We("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((o,s)=>{e:for(;;){const i=o,l=s,c=i.tail,a=l.tail;if(c!=null)if(a!=null){const f=y(c),u=y(a);if(re(i.head,l.head)){o=f,s=u;continue e}else return!1}else return!1;else return a==null}})(n,t)}GetHashCode(){return((r,o,s)=>{e:for(;;){const i=r,l=o,c=s,a=c.tail;if(a!=null){const f=y(a);if(i>18)return l|0;r=i+1,o=(l<<1)+Ve(c.head)+631*i,s=f;continue e}else return l|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((o,s)=>{e:for(;;){const i=o,l=s,c=i.tail,a=l.tail;if(c!=null)if(a!=null){const f=y(c),u=y(a),p=ye(i.head,l.head)|0;if(p===0){o=f,s=u;continue e}else return p|0}else return 1;else return a!=null?-1:0}})(this,t)|0}GetEnumerator(){return Mu(this)}[Symbol.iterator](){return wn(G(this))}"System.Collections.IEnumerable.GetEnumerator"(){return G(this)}}class Iu{constructor(t){this.xs=t,this.it=this.xs,this.current=ke()}"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=ke()}Dispose(){}}function Mu(e){return new Iu(e)}function Q(){return new de(ke(),void 0)}function Gt(e,t){return new de(e,t)}function gr(e){return e.tail==null}function Pu(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 ei(e){if(e.tail!=null)return e.head;throw new Error(Ys+"\\nParameter name: list")}function Le(e){const t=e.tail;if(t!=null)return y(t);throw new Error(Ys+"\\nParameter name: list")}function z(){return Q()}function _e(e,t){return Gt(e,t)}function se(e){return Gt(e,Q())}function $(e){return gr(e)}function x(e){return ei(e)}function T(e){return Le(e)}function zt(e){const t=Pu(e)|0,n=Sn(new Array(t),0,t,null);return((o,s)=>{e:for(;;){const i=o,l=s;if(!gr(l)){n[i]=ei(l),o=i+1,s=Le(l);continue e}break}})(0,e),n}function Pe(e,t,n){let r=t,o=n;for(;!gr(o);)r=e(r,x(o)),o=Le(o);return r}function wr(e){return Pe((t,n)=>Gt(n,t),Q(),e)}function Au(e,t,n){return Qs(e,zt(t),n)}function hn(e,t){Pe((n,r)=>{e(r)},void 0,t)}function D(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=Gt(e[r],n);return n}function j(e){return D(e,Q())}function Ou(e){let t,n;if(Me(e))return j(e);if(e instanceof de)return e;{const r=Q();let o=r;const s=G(e);try{for(;s["System.Collections.IEnumerator.MoveNext"]();){const c=s["System.Collections.Generic.IEnumerator`1.get_Current"]();o=(t=o,n=new de(c,void 0),t.tail=n,n)}}finally{F(s)}const i=o,l=Q();return i.tail=l,Le(r)}}function yr(e,t){return Pe((n,r)=>Gt(r,n),t,wr(e))}function ut(e,t){const n=Q(),r=Pe((s,i)=>{const l=new de(e(i),void 0);return s.tail=l,l},n,t),o=Q();return r.tail=o,Le(n)}function Nu(e,t){const n=Q(),r=Pe((s,i)=>{if(e(i)){const l=new de(i,void 0);return s.tail=l,l}else return s},n,t),o=Q();return r.tail=o,Le(n)}function Ru(e,t){const n=Q(),r=Q(),o=n,s=Pe((c,a)=>{let f,u;const p=c[0],h=c[1];return e(a)?[(f=new de(a,void 0),p.tail=f,f),h]:[p,(u=new de(a,void 0),h.tail=u,u)]},[o,r],t),i=Q();s[0].tail=i;const l=Q();return s[1].tail=l,[Le(o),Le(r)]}function Fu(e,t){const n=Q(),r=Pe((s,i)=>{const l=e(i);if(l==null)return s;{const c=new de(y(l),void 0);return s.tail=c,c}},n,t),o=Q();return r.tail=o,Le(n)}function Du(e,t){return Pe((n,r)=>n&&e(r),!0,t)}function Vu(e){throw new Error(e)}const Lu="Enumeration already finished.",Hu="Enumeration has not started. Call MoveNext.",ti="The input sequence has an insufficient number of elements.",ju="Reset is not supported on this enumerator.";function Uu(){throw new Error(ju)}function br(){throw new Error(Hu)}function Jn(){throw new Error(Lu)}class Bu{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const o=G(t);try{for(;n<4&&o["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+Te(o["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{F(o)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return wn(G(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function Gu(e){return new Bu(e)}class zu{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"(){Uu()}Dispose(){this.dispose()}}function xn(e,t,n){return new zu(e,t,n)}function Wu(e){let t,n,r=!1,o=!1,s;const i=()=>{if(o=!0,n!=null){const l=y(n);try{F(l)}finally{n=void 0}}if(t!=null){const l=y(t);try{F(l)}finally{t=void 0}}};return xn(()=>(r?o&&Jn():br(),s!=null?y(s):Jn()),()=>{let l;if(r||(r=!0),o)return!1;{let c;for(;c==null;){const a=t,f=n;if(a!=null)if(f!=null){const u=y(f);if(u["System.Collections.IEnumerator.MoveNext"]())s=ie(u["System.Collections.Generic.IEnumerator`1.get_Current"]()),c=!0;else try{F(u)}finally{n=void 0}}else{const u=y(a);u["System.Collections.IEnumerator.MoveNext"]()?n=(l=u["System.Collections.Generic.IEnumerator`1.get_Current"](),G(l)):(i(),c=!1)}else t=G(e)}return y(c)}},()=>{o||i()})}function qu(e,t){return xn(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{F(t)}finally{e()}})}function ni(e,t,n){let r=!1,o,s=ie(e());const i=()=>{if(s!=null){const c=y(s);try{n(c)}finally{s=void 0}}},l=()=>{try{i()}finally{o=void 0}};return xn(()=>(r||br(),o!=null?y(o):Jn()),()=>{if(r||(r=!0),s!=null){const c=y(s);let a;try{a=t(c)}catch(f){throw l(),f}return a!=null?(o=a,!0):(l(),!1)}else return!1},i)}function Zu(e,t){let n,r=t;return xn(()=>{if(n!=null){const o=y(n)[0];return y(n)[1],o}else return br()},()=>(n=e(r),n!=null?(y(n)[0],r=y(n)[1],!0):!1),()=>{})}function Ju(e,t){t==null&&Vu(e)}function Ct(e){return Gu(e)}function qe(e){return Ju("source",e),G(e)}function N(e){return Ct(()=>G(e()))}function ri(e){return Ct(()=>Wu(e))}function Ku(e,t){return Ct(()=>Zu(e,t))}function Yu(){return N(()=>new Array(0))}function O(e){return N(()=>Eu(e))}function Xu(e){return e instanceof de?zt(e):Array.from(e)}function Fe(e){return Me(e)?j(e):e instanceof de?e:Ou(e)}function Qu(e,t,n){return Ct(()=>ni(e,t,n))}function oi(e,t,n){return Ct(()=>{let r=-1;return ni(e,o=>(r=r+1|0,t(r,o)),n)})}function me(e,t){return ri([e,t])}function ec(e,t,n){const r=qe(t);try{const o=qe(n);try{let s=0,i=r["System.Collections.IEnumerator.MoveNext"](),l=o["System.Collections.IEnumerator.MoveNext"]();for(;s===0&&i&&l;)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"](),l=o["System.Collections.IEnumerator.MoveNext"]());return(s!==0?s:i?1:l?-1:0)|0}finally{F(o)}}finally{F(r)}}function st(e,t,n){const r=qe(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{F(r)}}function En(e,t,n){const r=qe(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{F(r)}}function si(e,t){En((n,r)=>{e(r)},void 0,t)}function ge(e,t){return Qu(()=>qe(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?ie(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{F(n)})}function tc(e,t){return oi(()=>qe(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?ie(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{F(n)})}function nc(e){return N(()=>ku(Xu(e)))}function rc(e,t){return Ct(()=>{const n=qe(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(ti+"\\nParameter name: source");return qu(()=>{},n)}catch(r){throw F(n),r}})}function oc(e,t){return oi(()=>qe(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return ie(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(ti+"\\nParameter name: source")}else return},n=>{F(n)})}function sc(e,t){return N(()=>ri(ge(e,t)))}class ii{constructor(t,n){this.k=t,this.v=n}}function Rt(e,t){return new ii(e,t)}function B(e){return e.k}function ne(e){return e.v}class U extends ii{constructor(t,n,r,o,s){super(t,n),this.left=r,this.right=o,this.h=s|0}}function At(e,t,n,r,o){return new U(e,t,n,r,o)}function Y(e){return e.left}function X(e){return e.right}function Be(e){return e.h}function li(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=y(r);if(o instanceof U){const s=o;e=li(n+1,Y(s)),t=X(s);continue e}else return n+1|0}else return n|0}}function ic(e){return li(0,e)}function ve(e,t,n,r){let o,s,i;const l=e;if(l!=null){const u=y(l);i=u instanceof U?(o=u,Be(o)):1}else i=0;let c;const a=r;if(a!=null){const u=y(a);c=u instanceof U?(s=u,Be(s)):1}else c=0;const f=(i<c?c:i)|0;return f===0?Rt(t,n):At(t,n,e,r,f+1)}function Zr(e,t,n,r){let o,s,i,l,c,a,f,u,p;const h=e;if(h!=null){const g=y(h);p=g instanceof U?(o=g,Be(o)):1}else p=0;let d;const m=r;if(m!=null){const g=y(m);d=g instanceof U?(s=g,Be(s)):1}else d=0;if(d>p+2){const g=y(r);if(g instanceof U){const w=g;if(i=Y(w),(i!=null?(l=y(i),l instanceof U?(c=l,Be(c)):1):0)>p+1){const C=y(Y(w));if(C instanceof U){const k=C;return ve(ve(e,t,n,Y(k)),B(k),ne(k),ve(X(k),B(w),ne(w),X(w)))}else throw new Error("internal error: Map.rebalance")}else return ve(ve(e,t,n,Y(w)),B(w),ne(w),X(w))}else throw new Error("internal error: Map.rebalance")}else if(p>d+2){const g=y(e);if(g instanceof U){const w=g;if(a=X(w),(a!=null?(f=y(a),f instanceof U?(u=f,Be(u)):1):0)>d+1){const C=y(X(w));if(C instanceof U){const k=C;return ve(ve(Y(w),B(w),ne(w),Y(k)),B(k),ne(k),ve(X(k),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return ve(Y(w),B(w),ne(w),ve(X(w),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return ve(e,t,n,r)}function wt(e,t,n,r){if(r!=null){const o=y(r),s=e.Compare(t,B(o))|0;if(o instanceof U){const i=o;return s<0?Zr(wt(e,t,n,Y(i)),B(i),ne(i),X(i)):s===0?At(t,n,Y(i),X(i),Be(i)):Zr(Y(i),B(i),ne(i),wt(e,t,n,X(i)))}else return s<0?At(t,n,void 0,r,2):s===0?Rt(t,n):At(t,n,r,void 0,2)}else return Rt(t,n)}function ui(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=y(s),l=r.Compare(o,B(i))|0;if(l===0)return ie(ne(i));if(i instanceof U){const c=i;e=r,t=o,n=l<0?Y(c):X(c);continue e}else return}else return}}function lc(e,t,n){const r=ui(e,t,n);if(r==null)throw new Error;return y(r)}function uc(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=y(s),l=r.Compare(o,B(i))|0;if(i instanceof U){const c=i;if(l<0){e=r,t=o,n=Y(c);continue e}else{if(l===0)return!0;e=r,t=o,n=X(c);continue e}}else return l===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 U){const s=o;ci(n,Y(s)),n(B(s),ne(s)),e=n,t=X(s);continue e}else n(B(o),ne(o))}break}}function cc(e,t){ci(e,t)}function Kn(e,t){if(t!=null){const n=y(t);if(n instanceof U){const r=n,o=Kn(e,Y(r)),s=e(B(r),ne(r)),i=Kn(e,X(r));return At(B(r),s,o,i,Be(r))}else return Rt(B(n),e(B(n),ne(n)))}else return void 0}function ac(e,t){return Kn(e,t)}function fc(e,t,n){let r=n;cc((o,s)=>{t[r]=[o,s],r=r+1|0},e)}function dc(e,t){return Pe((n,r)=>wt(e,r[0],r[1],n),void 0,t)}function hc(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 pc(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 ai(e,t){if(Me(t))return pc(e,t);if(t instanceof de)return dc(e,t);{const n=G(t);try{return hc(e,void 0,n)}finally{F(n)}}}class _c extends le{constructor(t,n){super(),this.stack=t,this.started=n}}function fi(e){e:for(;;){const t=e;if($(t))return z();{const n=T(t),r=x(t);if(r!=null){const o=y(r);if(o instanceof U){const s=o;e=D([Y(s),Rt(B(s),ne(s)),X(s)],n);continue e}else return t}else{e=n;continue e}}}}function Jr(e){return new _c(fi(se(e)),!1)}function mc(){throw new Error("enumeration not started")}function gc(){throw new Error("enumeration already finished")}function Kr(e){if(e.started){const t=e.stack;if($(t))return gc();if(x(t)!=null){const n=y(x(t));if(n instanceof U)throw new Error("Please report error: Map iterator, unexpected stack for current");return[B(n),ne(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return mc()}function wc(e){if(e.started){const t=e.stack;if($(t))return!1;if(x(t)!=null){if(y(x(t))instanceof U)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=fi(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 Yr(e){let t=Jr(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Kr(t)},"System.Collections.IEnumerator.get_Current"(){return Kr(t)},"System.Collections.IEnumerator.MoveNext"(){return wc(t)},"System.Collections.IEnumerator.Reset"(){t=Jr(e)},Dispose(){}}}class pn{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Cc(this)|0}Equals(t){const n=this;if(t instanceof pn){const r=t,o=G(n);try{const s=G(r);try{const i=()=>{const l=o["System.Collections.IEnumerator.MoveNext"]();if(l===s["System.Collections.IEnumerator.MoveNext"]())if(l){const c=o["System.Collections.Generic.IEnumerator`1.get_Current"](),a=s["System.Collections.Generic.IEnumerator`1.get_Current"]();return re(c[0],a[0])&&re(c[1],a[1])?i():!1}else return!0;else return!1};return i()}finally{F(s)}}finally{F(o)}}else return!1}toString(){return"map ["+We("; ",ge(n=>bu("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return Yr(this.tree)}[Symbol.iterator](){return wn(G(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Yr(this.tree)}CompareTo(t){const n=this;if(t instanceof pn)return ec((o,s)=>{const i=n.comparer.Compare(o[0],s[0])|0;return(i!==0?i:ye(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 Qr(n,t[0])&&re(Xr(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){fc(this.tree,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}get size(){return On(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return ge(n=>[n[0],n[1]],this)}get(t){return Xr(this,t)}has(t){return Qr(this,t)}keys(){return ge(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return ge(n=>n[1],this)}forEach(t,n){const r=this;si(o=>{t(o[1],o[0],r)},r)}}function Wt(e,t){return new pn(e,t)}function yc(e){return Wt(e,void 0)}function bc(e,t,n){return Wt(e.comparer,wt(e.comparer,t,n,e.tree))}function Xr(e,t){return lc(e.comparer,t,e.tree)}function vc(e,t){return Wt(e.comparer,ac(t,e.tree))}function On(e){return ic(e.tree)}function Qr(e,t){return uc(e.comparer,t,e.tree)}function Sc(e,t){return ui(e.comparer,t,e.tree)}function Cc(e){const t=(o,s)=>(o<<1)+s+631;let n=0;const r=G(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const o=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,Ve(o[0]))|0,n=t(n,Ve(o[1]))|0}}finally{F(r)}return n|0}function di(e,t,n){return bc(n,e,t)}function hi(e,t){return Sc(t,e)}function pi(e,t){return vc(t,e)}function xc(e,t){return Wt(t,ai(t,e))}function Ec(e,t){return Wt(t,ai(t,e))}function vr(e){return yc(e)}function kc(e){return new js("Content-Type",e)}function _i(e){return new js("Authorization",e)}const Ke=new Bt("",new pr(0,[]),z(),!1,void 0,void 0,void 0,new Us(0,[]));new Bs(0,"","","",vr({Compare:yn}),new it(0,[""]));function eo(e,t){return vu(t)?[t]:Cu(t,[e],void 0,0)}function Tc(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 mi(e){return new Bt(e,Ke.method,Ke.headers,Ke.withCredentials,Ke.overridenMimeType,Ke.overridenResponseType,Ke.timeout,Ke.content)}function gi(e,t){return new Bt(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Yn(e,t){return new Bt(t.url,t.method,yr(t.headers,se(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function $c(e,t){return new Bt(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function wi(e){return ru(t=>{const n=new XMLHttpRequest;n.open(Tc(e.method),e.url),n.onreadystatechange=()=>{let c,a,f,u,p,h,d;n.readyState===4&&t[0]((c=(a=n.responseType,a===""||a==="text"?n.responseText:""),f=n.status|0,u=n.responseType,p=(h=n.responseType,h===""?new it(0,[n.responseText]):h==="text"?new it(0,[n.responseText]):h==="arraybuffer"?new it(2,[n.response]):h==="blob"?new it(1,[n.response]):new it(3,[n.response])),d=Ec($u(m=>{const g=j(eo(":",m));if(!$(g))return[x(g).toLocaleLowerCase(),We(":",T(g)).trim()]},eo(`\r
|
|
4
|
+
`,n.getAllResponseHeaders())),{Compare:yn}),new Bs(f,c,u,n.responseURL,d,p)))};const r=G(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{F(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 l=e.content;switch(l.tag){case 1:{n.send(ie(l.fields[0]));break}case 3:{n.send(ie(l.fields[0]));break}case 2:{n.send(ie(l.fields[0]));break}default:n.send()}})}const Qe={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function Nn(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 Ic(e,t){switch(t){case Qe.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case Qe.SnakeCase:return Nn(e,"_");case Qe.SnakeCaseAllCaps:return Nn(e,"_").toUpperCase();case Qe.KebabCase:return Nn(e,"-");case Qe.None:default:return e}}function Mc(e,t=Qe.None){const n={},r=t;function o(i){throw new Error("Cannot infer key and value of "+String(i))}function s(i,l,c){i=Ic(i,l),n[i]=c}for(let i of e){let l=Qe.None;if(i==null&&o(i),i instanceof W){const c=i.cases()[i.tag];i=i.fields.length===0?c:[c].concat(i.fields),l=r}if(Array.isArray(i))switch(i.length){case 0:o(i);break;case 1:s(i[0],l,!0);break;case 2:const c=i[1];s(i[0],l,c);break;default:s(i[0],l,i.slice(1))}else typeof i=="string"?s(i,l,!0):o(i)}return n}class v extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class kn extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function to(e){return e.slice(void 0,0+1).toLowerCase()+e.slice(1,e.length)}function yi(e,t){switch(e.tag){case 2:return mu(to(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return to(t)}}const Pc=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,no=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Ac=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Oc(e){function t(r){return r.replace(no,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Pc.test(n))return xu(n,"{","}","(",")");if(no.test(n))return t(n);if(Ac.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 Nc(e,t){try{return t.contents=Oc(e),!0}catch{return!1}}var Xn;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(Xn||(Xn={}));function Rc(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}function ro(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 Fc(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 Dc(e,t){if(t&Xn.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 Vc(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||Dc(s,t),!Fc(n).test(i))return Rc(o,n)}return null}function Lc(e,t,n,r,o){const s=Vc(e,t,o);if(s!=null){let i=Number.parseInt(s.sign+s.digits,s.radix);if(!Number.isNaN(i)){const[l,c]=ro(!0,r);!n&&s.radix!==10&&i>=l&&i<=c&&(i=i<<32-r>>32-r);const[a,f]=ro(n,r);if(i>=a&&i<=f)return i}}throw new Error("Input string was not in a correct format.")}function xt(e,t,n,r,o){try{return o.contents=Lc(e,t,n,r),!0}catch{return!1}}function bi(e,t){Hc(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function Hc(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 jc(){return bi(-621355968e5,0)}function Uc(e){const[t,n]=zs(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return bi(t.getTime(),r)}function Bc(e,t){try{return t.contents=Uc(e),!0}catch{return!1}}function qt(e){return e<0?Math.ceil(e):Math.floor(e)}function oo(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return Gc(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 Gc(e){return Number(BigInt(e)/10000n)}function zc(e){return qt(e/864e5)}function Wc(e){return qt(e%864e5/36e5)}function qc(e){return qt(e%36e5/6e4)}function Zc(e){return qt(e%6e4/1e3)}function Jc(e){return qt(e%1e3)}function Kc(e,t="c",n){if(["c","g","G"].indexOf(t)===-1)throw new Error("Custom formats are not supported");const r=Math.abs(zc(e)),o=Math.abs(Wc(e)),s=Math.abs(qc(e)),i=Math.abs(Zc(e)),l=Math.abs(Jc(e));return`${e<0?"-":""}${r===0&&(t==="c"||t==="g")?"":t==="c"?r+".":r+":"}${t==="g"?o:oe(o,2)}:${oe(s,2)}:${oe(i,2)}${l===0&&(t==="c"||t==="g")?"":t==="g"?"."+oe(l,3):"."+dl(l,3,7)}`}function Yc(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 oo(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 l=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 l*oo(o,c,a,i,s)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function Xc(e,t){try{return t.contents=Yc(e),!0}catch{return!1}}class vi{constructor(t){this.k=t}}function ce(e){return new vi(e)}function E(e){return e.k}class I extends vi{constructor(t,n,r,o){super(t),this.left=n,this.right=r,this.h=o|0}}function ae(e,t,n,r){return new I(e,t,n,r)}function A(e){return e.left}function M(e){return e.right}function ct(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=A(s),t=Si(M(s),r+1);continue e}else return r+1|0}else return r|0}}function Qc(e){return Si(e,0)}function Se(e,t,n){let r,o,s;const i=e;if(i!=null){const f=y(i);s=f instanceof I?(r=f,ct(r)):1}else s=0;let l;const c=n;if(c!=null){const f=y(c);l=f instanceof I?(o=f,ct(o)):1}else l=0;const a=(s<l?l:s)|0;return a===0?ce(t):ae(t,e,n,a+1)}function so(e,t,n){let r,o,s,i,l,c,a,f,u;const p=e;if(p!=null){const m=y(p);u=m instanceof I?(r=m,ct(r)):1}else u=0;let h;const d=n;if(d!=null){const m=y(d);h=m instanceof I?(o=m,ct(o)):1}else h=0;if(h>u+2){const m=y(n);if(m instanceof I){const g=m;if(s=A(g),(s!=null?(i=y(s),i instanceof I?(l=i,ct(l)):1):0)>u+1){const w=y(A(g));if(w instanceof I){const C=w;return Se(Se(e,t,A(C)),E(C),Se(M(C),E(g),M(g)))}else throw new Error("internal error: Set.rebalance")}else return Se(Se(e,t,A(g)),E(g),M(g))}else throw new Error("internal error: Set.rebalance")}else if(u>h+2){const m=y(e);if(m instanceof I){const g=m;if(c=M(g),(c!=null?(a=y(c),a instanceof I?(f=a,ct(f)):1):0)>h+1){const w=y(M(g));if(w instanceof I){const C=w;return Se(Se(A(g),E(g),A(C)),E(C),Se(M(C),t,n))}else throw new Error("internal error: Set.rebalance")}else return Se(A(g),E(g),Se(M(g),t,n))}else throw new Error("internal error: Set.rebalance")}else return Se(e,t,n)}function yt(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?so(yt(e,t,A(s)),E(s),M(s)):o===0?n:so(A(s),E(s),yt(e,t,M(s)))}else{const s=e.Compare(t,E(r))|0;return s<0?ae(t,void 0,n,2):s===0?n:ae(t,n,void 0,2)}}else return ce(t)}function Ci(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=y(s),l=r.Compare(o,E(i))|0;if(i instanceof I){const c=i;if(l<0){e=r,t=o,n=A(c);continue e}else{if(l===0)return!0;e=r,t=o,n=M(c);continue e}}else return l===0}else return!1}}function xi(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=y(r);if(o instanceof I){const s=o;xi(n,A(s)),n(E(s)),e=n,t=M(s);continue e}else n(E(o))}break}}class ea extends le{constructor(t,n){super(),this.stack=t,this.started=n}}function Ei(e){e:for(;;){const t=e;if($(t))return z();{const n=x(t),r=T(t);if(n!=null){const o=y(n);if(o instanceof I){const s=o;e=D([A(s),ce(E(s)),M(s)],r);continue e}else return t}else{e=r;continue e}}}}function io(e){return new ea(Ei(se(e)),!1)}function ta(){throw new Error("Enumeration not started")}function na(){throw new Error("Enumeration already started")}function lo(e){if(e.started){const t=e.stack;if($(t))return na();if(x(t)!=null){const n=y(x(t));return E(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return ta()}function ra(e){if(e.started){const t=e.stack;if($(t))return!1;if(x(t)!=null){if(y(x(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 uo(e){let t=io(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return lo(t)},"System.Collections.IEnumerator.get_Current"(){return lo(t)},"System.Collections.IEnumerator.MoveNext"(){return ra(t)},"System.Collections.IEnumerator.Reset"(){t=io(e)},Dispose(){}}}function oa(e,t,n){e:for(;;){const r=e,o=t,s=n;if($(o))return $(s)?0:-1;if($(s))return 1;if(x(s)!=null)if(x(o)!=null){const i=y(x(o)),l=y(x(s));if(i instanceof I){const c=i;if(A(c)==null)if(l instanceof I){const a=l;if(A(a)==null){const f=r.Compare(E(c),E(a))|0;if(f!==0)return f|0;e=r,t=_e(M(c),T(o)),n=_e(M(a),T(s));continue e}else{let f,u,p,h,d;switch($(o)?$(s)?f=2:x(s)!=null?(f=1,h=T(s),d=y(x(s))):f=2:x(o)!=null?(f=0,u=T(o),p=y(x(o))):$(s)?f=2:x(s)!=null?(f=1,h=T(s),d=y(x(s))):f=2,f){case 0:if(p instanceof I){const m=p;e=r,t=D([A(m),ae(E(m),void 0,M(m),0)],u),n=s;continue e}else{e=r,t=D([void 0,ce(E(p))],u),n=s;continue e}case 1:if(d instanceof I){const m=d;e=r,t=o,n=D([A(m),ae(E(m),void 0,M(m),0)],h);continue e}else{e=r,t=o,n=D([void 0,ce(E(d))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const a=r.Compare(E(c),E(l))|0;if(a!==0)return a|0;e=r,t=_e(M(c),T(o)),n=_e(void 0,T(s));continue e}else{let a,f,u,p,h;switch($(o)?$(s)?a=2:x(s)!=null?(a=1,p=T(s),h=y(x(s))):a=2:x(o)!=null?(a=0,f=T(o),u=y(x(o))):$(s)?a=2:x(s)!=null?(a=1,p=T(s),h=y(x(s))):a=2,a){case 0:if(u instanceof I){const d=u;e=r,t=D([A(d),ae(E(d),void 0,M(d),0)],f),n=s;continue e}else{e=r,t=D([void 0,ce(E(u))],f),n=s;continue e}case 1:if(h instanceof I){const d=h;e=r,t=o,n=D([A(d),ae(E(d),void 0,M(d),0)],p);continue e}else{e=r,t=o,n=D([void 0,ce(E(h))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(l instanceof I){const c=l;if(A(c)==null){const a=r.Compare(E(i),E(c))|0;if(a!==0)return a|0;e=r,t=_e(void 0,T(o)),n=_e(M(c),T(s));continue e}else{let a,f,u,p,h;switch($(o)?$(s)?a=2:x(s)!=null?(a=1,p=T(s),h=y(x(s))):a=2:x(o)!=null?(a=0,f=T(o),u=y(x(o))):$(s)?a=2:x(s)!=null?(a=1,p=T(s),h=y(x(s))):a=2,a){case 0:if(u instanceof I){const d=u;e=r,t=D([A(d),ae(E(d),void 0,M(d),0)],f),n=s;continue e}else{e=r,t=D([void 0,ce(E(u))],f),n=s;continue e}case 1:if(h instanceof I){const d=h;e=r,t=o,n=D([A(d),ae(E(d),void 0,M(d),0)],p);continue e}else{e=r,t=o,n=D([void 0,ce(E(h))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const c=r.Compare(E(i),E(l))|0;if(c!==0)return c|0;e=r,t=T(o),n=T(s);continue e}}else{y(x(s));let i,l,c,a,f;switch($(o)?$(s)?i=2:x(s)!=null?(i=1,a=T(s),f=y(x(s))):i=2:x(o)!=null?(i=0,l=T(o),c=y(x(o))):$(s)?i=2:x(s)!=null?(i=1,a=T(s),f=y(x(s))):i=2,i){case 0:if(c instanceof I){const u=c;e=r,t=D([A(u),ae(E(u),void 0,M(u),0)],l),n=s;continue e}else{e=r,t=D([void 0,ce(E(c))],l),n=s;continue e}case 1:if(f instanceof I){const u=f;e=r,t=o,n=D([A(u),ae(E(u),void 0,M(u),0)],a);continue e}else{e=r,t=o,n=D([void 0,ce(E(f))],a);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(x(o)!=null){y(x(o));let i,l,c,a,f;switch($(o)?$(s)?i=2:x(s)!=null?(i=1,a=T(s),f=y(x(s))):i=2:x(o)!=null?(i=0,l=T(o),c=y(x(o))):$(s)?i=2:x(s)!=null?(i=1,a=T(s),f=y(x(s))):i=2,i){case 0:if(c instanceof I){const u=c;e=r,t=D([A(u),ae(E(u),void 0,M(u),0)],l),n=s;continue e}else{e=r,t=D([void 0,ce(E(c))],l),n=s;continue e}case 1:if(f instanceof I){const u=f;e=r,t=o,n=D([A(u),ae(E(u),void 0,M(u),0)],a);continue e}else{e=r,t=o,n=D([void 0,ce(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 co(e,t,n){return t==null?n==null?0:-1:n==null?1:oa(e,se(t),se(n))|0}function sa(e,t,n){let r=n;xi(o=>{t[r]=o,r=r+1|0},e)}function ia(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s["System.Collections.IEnumerator.MoveNext"]()){e=r,t=yt(r,s["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=s;continue e}else return o}}function la(e,t){return Cn((n,r)=>yt(e,r,n),void 0,t)}function ua(e,t){return Pe((n,r)=>yt(e,r,n),void 0,t)}function ki(e,t){if(Me(t))return la(e,t);if(t instanceof de)return ua(e,t);{const n=G(t);try{return ia(e,void 0,n)}finally{F(n)}}}class Sr{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return fa(this)|0}Equals(t){let n;const r=this;return t instanceof Sr&&(n=t,co(dt(r),Ce(r),Ce(n))===0)}toString(){return"set ["+We("; ",ge(n=>Te(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return co(dt(n),Ce(n),Ce(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 Ci(dt(n),t,Ce(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){sa(Ce(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Rn(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Rn(this)|0}GetEnumerator(){return uo(Ce(this))}[Symbol.iterator](){return wn(G(this))}"System.Collections.IEnumerable.GetEnumerator"(){return uo(Ce(this))}get size(){return Rn(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 Ti(this,t)}keys(){return ge(n=>n,this)}values(){return ge(n=>n,this)}entries(){return ge(n=>[n,n],this)}forEach(t,n){const r=this;si(o=>{t(o,o,r)},r)}}function Tn(e,t){return new Sr(e,t)}function dt(e){return e.comparer}function Ce(e){return e.tree}function ca(e){return Tn(e,void 0)}function aa(e,t){return Tn(dt(e),yt(dt(e),t,Ce(e)))}function Rn(e){return Qc(Ce(e))}function Ti(e,t){return Ci(dt(e),t,Ce(e))}function fa(e){let t=0;const n=G(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+Ve(r)+631|0}}finally{F(n)}return Math.abs(t)|0}function Qn(e,t){return Ti(t,e)}function da(e,t){return aa(t,e)}function ha(e){return ca(e)}function pa(e,t){return Tn(t,ki(t,e))}function _a(e,t){return Tn(t,ki(t,e))}function Tt(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
|
|
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 ma(e,t){const n=t.tag===2?Tt(t.fields[0],t.fields[1],!0):t.tag===1?Tt(t.fields[0],t.fields[1],!1)+`
|
|
7
|
+
Reason: `+t.fields[2]:t.tag===3?Tt(t.fields[0],t.fields[1],!0):t.tag===4?Tt(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
|
|
8
|
+
`+(JSON.stringify(t.fields[1],null,4)+""):t.tag===7?`The following errors were found:
|
|
9
|
+
|
|
10
|
+
`+We(`
|
|
11
|
+
|
|
12
|
+
`,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:Tt(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function $i(e,t,n){const r=t(e,n);if(r.tag===1){const o=r.fields[0];return new _(1,[ma(o[0],o[1])])}else return new _(0,[r.fields[0]])}function ga(e,t){try{return $i("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new _(1,["Given an invalid JSON: "+n.message]);throw n}}function Ii(e,t){return typeof t=="string"?new _(0,[t]):new _(1,[[e,new v(0,["a string",t])]])}function wa(e,t){if(typeof t=="string"){const n=t;return n.length===1?new _(0,[n[0]]):new _(1,[[e,new v(0,["a single character string",t])]])}else return new _(1,[[e,new v(0,["a char",t])]])}function ya(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[Nc(t,new ue(()=>r,o=>{r=o})),r],n[0]?new _(0,[n[1]]):new _(1,[[e,new v(0,["a guid",t])]])}else return new _(1,[[e,new v(0,["a guid",t])]])}function ba(e,t){return t==null?new _(0,[void 0]):new _(1,[[e,new v(0,["null",t])]])}const ao=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-128<=o&&o<=127?new _(0,[(o+128&255)-128]):new _(1,[[n,new v(1,["a sbyte",o,"Value was either too large or too small for a sbyte"])]]):new _(1,[[n,new v(1,["a sbyte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[xt(r,511,!1,8,new ue(()=>s,i=>{s=i|0})),s],o[0]?new _(0,[o[1]]):new _(1,[[n,new v(0,["a sbyte",r])]])}else return new _(1,[[n,new v(0,["a sbyte",r])]])},fo=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=255?new _(0,[o&255]):new _(1,[[n,new v(1,["a byte",o,"Value was either too large or too small for a byte"])]]):new _(1,[[n,new v(1,["a byte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[xt(r,511,!0,8,new ue(()=>s,i=>{s=i})),s],o[0]?new _(0,[o[1]]):new _(1,[[n,new v(0,["a byte",r])]])}else return new _(1,[[n,new v(0,["a byte",r])]])},ho=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-32768<=o&&o<=32767?new _(0,[(o+32768&65535)-32768]):new _(1,[[n,new v(1,["an int16",o,"Value was either too large or too small for an int16"])]]):new _(1,[[n,new v(1,["an int16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[xt(r,511,!1,16,new ue(()=>s,i=>{s=i|0})),s],o[0]?new _(0,[o[1]]):new _(1,[[n,new v(0,["an int16",r])]])}else return new _(1,[[n,new v(0,["an int16",r])]])},po=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=65535?new _(0,[o&65535]):new _(1,[[n,new v(1,["an uint16",o,"Value was either too large or too small for an uint16"])]]):new _(1,[[n,new v(1,["an uint16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[xt(r,511,!0,16,new ue(()=>s,i=>{s=i})),s],o[0]?new _(0,[o[1]]):new _(1,[[n,new v(0,["an uint16",r])]])}else return new _(1,[[n,new v(0,["an uint16",r])]])},_o=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-2147483648<=o&&o<=2147483647?new _(0,[~~o]):new _(1,[[n,new v(1,["an int",o,"Value was either too large or too small for an int"])]]):new _(1,[[n,new v(1,["an int",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[xt(r,511,!1,32,new ue(()=>s,i=>{s=i|0})),s],o[0]?new _(0,[o[1]]):new _(1,[[n,new v(0,["an int",r])]])}else return new _(1,[[n,new v(0,["an int",r])]])},mo=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=4294967295?new _(0,[o>>>0]):new _(1,[[n,new v(1,["an uint32",o,"Value was either too large or too small for an uint32"])]]):new _(1,[[n,new v(1,["an uint32",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[xt(r,511,!0,32,new ue(()=>s,i=>{s=i})),s],o[0]?new _(0,[o[1]]):new _(1,[[n,new v(0,["an uint32",r])]])}else return new _(1,[[n,new v(0,["an uint32",r])]])};function va(e,t){return typeof t=="boolean"?new _(0,[t]):new _(1,[[e,new v(0,["a boolean",t])]])}function Sa(e,t){return typeof t=="number"?new _(0,[t]):new _(1,[[e,new v(0,["a float",t])]])}function Ca(e,t){return typeof t=="number"?new _(0,[t]):new _(1,[[e,new v(0,["a float32",t])]])}function xa(e,t){if(typeof t=="string"){let n,r=fu();return n=[hu(t,new ue(()=>r,o=>{r=o})),r],n[0]?new _(0,[pu(n[1])]):new _(1,[[e,new v(0,["a datetime",t])]])}else return new _(1,[[e,new v(0,["a datetime",t])]])}function Ea(e,t){if(typeof t=="string"){let n,r=jc();return n=[Bc(t,new ue(()=>r,o=>{r=o})),r],n[0]?new _(0,[n[1]]):new _(1,[[e,new v(0,["a datetimeoffset",t])]])}else return new _(1,[[e,new v(0,["a datetime",t])]])}function ka(e,t){if(typeof t=="string"){let n,r=0;return n=[Xc(t,new ue(()=>r,o=>{r=o})),r],n[0]?new _(0,[n[1]]):new _(1,[[e,new v(0,["a timespan",t])]])}else return new _(1,[[e,new v(0,["a timespan",t])]])}function go(e,t,n,r){let o;const s=n+".["+et(e)+"]";if(Array.isArray(r)){const i=r;return e<i.length?t(s,i[e]):new _(1,[[s,new v(5,["a longer array. Need index `"+et(e)+"` but there are only `"+(o=i.length,et(o))+"` entries",r])]])}else return new _(1,[[s,new v(0,["an array",r])]])}function Ta(e,t,n){return n==null?new _(0,[void 0]):we(ie,e(t,n))}function wo(e,t,n){if(Array.isArray(n)){let r=-1;return we(wr,Cn((o,s)=>{if(r=r+1|0,o.tag===0){const i=e(t+".["+et(r)+"]",s);return i.tag===0?new _(0,[_e(i.fields[0],o.fields[0])]):new _(1,[i.fields[0]])}else return o},new _(0,[z()]),n))}else return new _(1,[[t,new v(0,["a list",n])]])}function $a(e,t,n){if(Array.isArray(n)){let r=-1;return we(nc,Cn((o,s)=>{if(r=r+1|0,o.tag===0){const i=e(t+".["+et(r)+"]",s);return i.tag===0?new _(0,[me([i.fields[0]],o.fields[0])]):new _(1,[i.fields[0]])}else return o},new _(0,[[]]),n))}else return new _(1,[[t,new v(0,["a seq",n])]])}function yo(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return Cn((s,i)=>{if(r=r+1|0,s.tag===0){const l=s.fields[0],c=e(t+".["+et(r)+"]",i);return c.tag===0?(l[r]=c.fields[0],new _(0,[l])):new _(1,[c.fields[0]])}else return s},new _(0,[Sn(new Array(o.length),0,o.length,null)]),o)}else return new _(1,[[t,new v(0,["an array",n])]])}function Ia(e,t,n){return((o,s)=>{e:for(;;){const i=o,l=s;if($(i))return new _(1,[[t,new v(7,[l])]]);{const c=$i(t,V(x(i)),n);if(c.tag===1){o=T(i),s=yr(l,se(c.fields[0]));continue e}else return new _(0,[c.fields[0]])}}})(e,z())}function Ma(e,t,n){return new _(0,[e])}function bo(e,t,n,r){const o=t(n,r);return o.tag===0?e(o.fields[0],n,r):new _(1,[o.fields[0]])}function Pa(e,t,n,r){const o=t(n,r);return o.tag===1?new _(1,[o.fields[0]]):new _(0,[e(o.fields[0])])}function Aa(e,t){let n;const r=e;return n=o=>s=>go(0,r,o,s),o=>s=>bo(zn(i=>{let l;const c=t;return l=a=>f=>go(1,c,a,f),a=>f=>bo((u,p,h)=>Ma([i,u]),V(l),a,f)}),V(n),o,s)}function Oa(e){return xc(e,{Compare:ye})}function Na(e){return _a(e,{Compare:ye})}function Ra(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?Qs((r,o)=>{const s=r[0];return o.tag===0?we(i=>_e(i,o.fields[0]),r[1](t+"."+s)(n[s])):o},e,new _(0,[z()])):new _(1,[[t,new v(0,["an object",n])]])}function Fa(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?En((o,s)=>{if(o.tag===0){const i=e(n,s);if(i.tag===0){const l=t(n+"."+s,r[s]);return l.tag===0?new _(0,[_e([i.fields[0],l.fields[0]],o.fields[0])]):new _(1,[l.fields[0]])}else return new _(1,[i.fields[0]])}else return o},new _(0,[z()]),Object.keys(r)):new _(1,[[n,new v(0,["an object",r])]])}function Mi(e,t,n,r){let o;const s=t.length+e|0;if(s!==r.length)return new _(1,[[n,new v(6,[(o=r.length|0,gt(ze("Expected array of length %i but got %i"))(s)(o))])]]);{let i=new _(0,[z()]);for(let l=e;l<=r.length-1;l++)if(i.tag===0){const c=i.fields[0],a=gt(ze("%s[%i]"))(n)(l),f=t[l-e],u=r[l];i=we(p=>_e(p,c),f(a)(u))}return we(wr,i)}}function vo(e,t,n,r,o,s){const i=Tu(l=>ft(l)===r,Ns(n));if(i!=null){const l=i,c=St(a=>xe(e,t,!1,a[1]),Vs(l));return we(a=>Hl(l,zt(a)),c.length===0&&s.length<=1?new _(0,[z()]):Mi(1,c,o,s))}else return new _(1,[[o,new v(6,["Cannot find case "+r+" in "+R(n)])]])}function So(e,t,n,r){let o;const s=new ue(ke());let i;const l=R(r);i=l===""?e:di(l,s,e);let c;if(Ds(r)){const a=St(f=>[yi(t,ft(f)),xe(i,t,!1,f[1])],Ot(r));c=f=>u=>we(p=>jl(r,zt(p)),Ra(a,f,u))}else if(Fs(r))c=a=>f=>{if(typeof f=="string")return vo(i,t,r,f,a,[]);if(Array.isArray(f)){const u=f;return Kl(p=>vo(i,t,r,p,a,u),Ii(a+"[0]",u[0]))}else return new _(1,[[a,new v(0,["a string or array",f])]])};else if(n)c=a=>f=>new _(1,[[a,new v(2,["an extra coder for "+R(r),f])]]);else throw new Error((o=R(r),gt(ze(`Cannot generate auto decoder for %s. Please pass an extra decoder.
|
|
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 xe(e,t,n,r){let o,s,i,l;const c=R(r),a=hi(c,e);if(a==null)if(Ms(r)){const f=xe(e,t,!1,Ut(r));return u=>p=>yo(V(f),u,p)}else if(ar(r))switch(R(Os(r))){case"System.SByte":return u=>p=>{const h=r,d=u,m=p,g=ao(d)(m);if(g.tag===1)return new _(1,[g.fields[0]]);{const w=g.fields[0]|0;return st(w,rt(h),{Equals:(C,k)=>C===k,GetHashCode:Ae})?new _(0,[ot(h,w.toString())]):new _(1,[[d,new v(1,[R(h),m,"Unkown value provided for the enum"])]])}};case"System.Byte":return u=>p=>{const h=r,d=u,m=p,g=fo(d)(m);if(g.tag===1)return new _(1,[g.fields[0]]);{const w=g.fields[0];return st(w,rt(h),{Equals:(C,k)=>C===k,GetHashCode:Ae})?new _(0,[ot(h,w.toString())]):new _(1,[[d,new v(1,[R(h),m,"Unkown value provided for the enum"])]])}};case"System.Int16":return u=>p=>{const h=r,d=u,m=p,g=ho(d)(m);if(g.tag===1)return new _(1,[g.fields[0]]);{const w=g.fields[0]|0;return st(w,rt(h),{Equals:(C,k)=>C===k,GetHashCode:Ae})?new _(0,[ot(h,hl(w))]):new _(1,[[d,new v(1,[R(h),m,"Unkown value provided for the enum"])]])}};case"System.UInt16":return u=>p=>{const h=r,d=u,m=p,g=po(d)(m);if(g.tag===1)return new _(1,[g.fields[0]]);{const w=g.fields[0];return st(w,rt(h),{Equals:(C,k)=>C===k,GetHashCode:Ae})?new _(0,[ot(h,w.toString())]):new _(1,[[d,new v(1,[R(h),m,"Unkown value provided for the enum"])]])}};case"System.Int32":return u=>p=>{const h=r,d=u,m=p,g=_o(d)(m);if(g.tag===1)return new _(1,[g.fields[0]]);{const w=g.fields[0]|0;return st(w,rt(h),{Equals:(C,k)=>C===k,GetHashCode:Ae})?new _(0,[ot(h,et(w))]):new _(1,[[d,new v(1,[R(h),m,"Unkown value provided for the enum"])]])}};case"System.UInt32":return u=>p=>{const h=r,d=u,m=p,g=mo(d)(m);if(g.tag===1)return new _(1,[g.fields[0]]);{const w=g.fields[0];return st(w,rt(h),{Equals:(C,k)=>C===k,GetHashCode:Ae})?new _(0,[ot(h,w.toString())]):new _(1,[[d,new v(1,[R(h),m,"Unkown value provided for the enum"])]])}};default:{const u=R(r),p=Js(ze(`Cannot generate auto decoder for %s.
|
|
15
|
+
Thoth.Json.Net only support the following enum types:
|
|
16
|
+
- sbyte
|
|
17
|
+
- byte
|
|
18
|
+
- int16
|
|
19
|
+
- uint16
|
|
20
|
+
- int
|
|
21
|
+
- uint32
|
|
22
|
+
If you can't use one of these types, please pass an extra decoder.
|
|
23
|
+
`))(u);return h=>p(h)}}else if(Ps(r))if(fr(r)){const f=St(u=>xe(e,t,!1,u),Rs(r));return u=>p=>Array.isArray(p)?we(h=>Ul(zt(h)),Mi(0,f,u,p)):new _(1,[[u,new v(0,["an array",p])]])}else switch(R(As(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return o=xe(e,t,!0,fe(r)[0]),u=>p=>Ta(V(o),u,p);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return s=xe(e,t,!1,fe(r)[0]),u=>p=>wo(V(s),u,p);case"System.Collections.Generic.IEnumerable`1[System.Object]":return i=xe(e,t,!1,fe(r)[0]),u=>p=>$a(V(i),u,p);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const u=xe(e,t,!1,fe(r)[0]),p=xe(e,t,!1,fe(r)[1]);let h;const d=j([m=>g=>Fa(V(u),V(p),m,g),(l=Aa(V(u),V(p)),m=>g=>wo(V(l),m,g))]);return h=m=>g=>Ia(d,m,g),m=>g=>Pa(Oa,V(h),m,g)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const u=xe(e,t,!1,fe(r)[0]);return p=>h=>{const d=yo(V(u),p,h);return d.tag===0?new _(0,[Na(d.fields[0])]):new _(1,[d.fields[0]])}}default:return So(e,t,n,r)}else switch(c){case"System.Boolean":return f=>u=>va(f,u);case"Microsoft.FSharp.Core.Unit":return f=>u=>ba(f,u);case"System.String":return f=>u=>Ii(f,u);case"System.Char":return f=>u=>wa(f,u);case"System.SByte":return ao;case"System.Byte":return fo;case"System.Int16":return ho;case"System.UInt16":return po;case"System.Int32":return _o;case"System.UInt32":return mo;case"System.Double":return f=>u=>Sa(f,u);case"System.Single":return f=>u=>Ca(f,u);case"System.DateTime":return f=>u=>xa(f,u);case"System.DateTimeOffset":return f=>u=>Ea(f,u);case"System.TimeSpan":return f=>u=>ka(f,u);case"System.Guid":return f=>u=>ya(f,u);case"System.Object":return f=>u=>new _(0,[u]);default:return So(e,t,n,r)}else{const f=a;return u=>p=>f.contents(u)(p)}}function Da(e){return e!=null?pi((t,n)=>new ue(n[1]),e.Coders):vr({Compare:yn})}function Va(e,t,n){const r=Zn(t,new kn(0,[]));return xe(Da(n),r,!1,e)}function La(e,t,n,r){const o=ye(e,n)|0;if(o===0)throw new Error("The step of a range cannot be zero");const s=o>0;return i=>{const l=ye(i,t)|0;return s&&l<=0||!s&&l>=0?[i,r(i,e)]:void 0}}function Ha(e,t,n,r,o){const s=La(t,n,r,o);return N(()=>Ku(s,e))}function ja(e,t,n){return Ha(e,t,n,0,(r,o)=>r+o)}class Ua extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BlobStorage","Unused"]}}function Ba(){return $s("WorkplacePolicies.Api.Shared.Common.PathDto",[],Ua,()=>[[["Item",tt]],[]])}class Ga extends le{constructor(t,n){super(),this.Name=t,this.Path=n}}function za(){return jt("WorkplacePolicies.Api.Shared.Common.FileDto",[],Ga,()=>[["Name",tt],["Path",Ba()]])}class Wa extends le{constructor(t,n){super(),this.Copy=t,this.Link=n}}function qa(){return jt("WorkplacePolicies.Api.Shared.Common.AboutDto",[],Wa,()=>[["Copy",tt],["Link",tt]])}class Za extends le{constructor(t,n){super(),this.PolicyId=t,this.VersionNumber=n|0}}function Ja(){return jt("WorkplacePolicies.Api.Shared.BackendApiModels.PolicyIdentifierDto",[],Za,()=>[["PolicyId",tt],["VersionNumber",Fl]])}class ht extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Presented","Opened","Accepted"]}}function Ka(){return $s("WorkplacePolicies.Api.Shared.BackendApiModels.PolicyReviewItemStatusDto",[],ht,()=>[[],[],[]])}function Fn(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 tn extends le{constructor(t,n){super(),this.Policy=t,this.Status=n}}function Ya(){return jt("WorkplacePolicies.Api.Shared.BackendApiModels.PolicyReviewItemDto",[],tn,()=>[["Policy",Nl(["About",qa()],["CreatedAt",Ol("System.DateTime")],["Description",tt],["File",za()],["Identifier",Ja()],["Title",tt])],["Status",Ka()]])}class Xa extends le{constructor(t){super(),this.PolicyReviewList=t}}function Qa(){return jt("WorkplacePolicies.Api.Shared.BackendApiModels.InitResponse",[],Xa,()=>[["PolicyReviewList",Rl(Ya())]])}class ef extends le{constructor(t){super(),this.Type=t}}class Jt extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Present","Open","Accept","Complete"]}}function tf(e){return e}const Pi=ke();function Kt(e){return Array.from(e)}function nf(e){return vn(e,"O")}function rf(e){return Kc(e)}function of(){return ke()}function sf(e){return vn(e,"O")}function lf(e,t){return JSON.stringify(t,void 0,ie(e))}function uf(e){return t=>ql(Zl(e,t),()=>Pi)}function Co(e,t,n,r){let o;const s=new ue(ke());let i;const l=R(r);i=l===""?e:di(l,s,e);let c;if(Ds(r)){const a=St(f=>{const u=yi(t,ft(f)),p=Oe(i,t,n,f[1]);return h=>d=>{const m=Ll(h,f);return(!n||n&&m!=null)&&(d[u]=p(m)),d}},Ot(r));c=f=>En((u,p)=>p(f)(u),{},a)}else if(Fs(r))c=a=>{const f=Vl(a,r),u=f[0],p=f[1],h=p.length|0;if(h===0)return ft(u);{const d=h|0,m=Vs(u),g=Sn(new Array(d+1),0,d+1,null);g[0]=ft(u);for(let w=1;w<=d;w++){const C=Oe(i,t,n,m[w-1][1]);g[w]=C(p[w-1])}return g}};else throw new Error((o=R(r),gt(ze(`Cannot generate auto encoder for %s. Please pass an extra encoder.
|
|
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 Oe(e,t,n,r){const o=R(r),s=hi(o,e);if(s==null)if(Ms(r)){const i=Oe(e,t,n,Ut(r));return l=>Kt(ge(i,l))}else if(ar(r))switch(R(Os(r))){case"System.SByte":return l=>l;case"System.Byte":return l=>l;case"System.Int16":return l=>l;case"System.UInt16":return l=>l;case"System.Int32":return l=>l;case"System.UInt32":return l=>l;default:{const l=R(r);return Js(ze(`Cannot generate auto encoder for %s.
|
|
26
|
+
Thoth.Json.Net only support the following enum types:
|
|
27
|
+
- sbyte
|
|
28
|
+
- byte
|
|
29
|
+
- int16
|
|
30
|
+
- uint16
|
|
31
|
+
- int
|
|
32
|
+
- uint32
|
|
33
|
+
|
|
34
|
+
If you can't use one of these types, please pass an extra encoder.
|
|
35
|
+
|
|
36
|
+
Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders
|
|
37
|
+
`))(l)}}else if(Ps(r))if(fr(r)){const i=St(l=>Oe(e,t,n,l),Rs(r));return l=>Kt(tc((c,a)=>i[c](a),l))}else{const i=R(As(r));if(i==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]"){const l=new fl(()=>uf(Oe(e,t,n,fe(r)[0])));return c=>c==null?Pi:l.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 l=Oe(e,t,n,fe(r)[0]);return c=>Kt(ge(l,c))}else if(i==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const l=fe(r)[0],c=Oe(e,t,n,fe(r)[1]);if(R(l)==="System.String"||R(l)==="System.Guid")return a=>En((f,u)=>{const p=u;return f[p[0]]=c(p[1]),f},{},a);{let a;return a=Oe(e,t,n,l),u=>Kt(ge(p=>{const h=p;return[a(h[0]),c(h[1])]},u))}}else return Co(e,t,n,r)}else switch(o){case"System.Boolean":return i=>i;case"Microsoft.FSharp.Core.Unit":return of;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 sf;case"System.DateTimeOffset":return nf;case"System.TimeSpan":return rf;case"System.Guid":return tf;case"System.Object":return i=>i;default:return Co(e,t,n,r)}else{const i=s;return l=>i.contents(l)}}function cf(e){return e!=null?pi((t,n)=>new ue(n[0]),e.Coders):vr({Compare:yn})}function af(e,t,n,r){const o=Zn(t,new kn(0,[])),s=Zn(r,!0);return Oe(cf(n),o,s,e)}class ff{constructor(t,n){this.accessToken=n,this.baseUrl=`${t}/workplace-policies/backend`}}function df(e,t){return new ff(e,t)}function hf(e){return J.Delay(()=>{let t,n;const r=wi((t=gi(new pr(0,[]),mi(`${e.baseUrl}/init`)),Yn(_i(`Bearer ${e.accessToken}`),t)));return n=J.Bind(r,o=>J.Return(new _(0,[o]))),J.Bind(n,o=>{const s=o;if(s.tag===1)return J.Return(new _(1,[s.fields[0]]));{const i=s.fields[0];if(i.statusCode===200){const l=ga(V(Va(Qa(),new kn(1,[]),void 0)),i.responseText);return J.Return(l)}else return J.Return(new _(1,["Init request error"]))}})})}function Yt(e,t){return J.Delay(()=>{let n,r,o;const s=new ef(t);let i;const l=wi((n=(r=(o=gi(new pr(1,[]),mi(`${e.baseUrl}/command`)),Yn(_i(`Bearer ${e.accessToken}`),o)),$c(new Us(1,[lf(0,af(Is,new kn(1,[]),void 0,void 0)(s))]),r)),Yn(kc("application/json"),n)));return i=J.Bind(l,c=>J.Return(new _(0,[c]))),J.Bind(i,c=>{const a=c;return a.tag===1?J.Return(new _(1,[a.fields[0]])):a.fields[0].statusCode===200?J.Return(new _(0,[void 0])):J.Return(new _(1,["Command request error"]))})})}function pf(){return z()}function Cr(e){return We("/",e)}function _f(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+Cr(t),n])}function Ai(e,t,n){try{F(n)}catch(r){e(["Error stopping subscription: "+Cr(t),r])}}function mf(e,t,n,r){try{return[n,r(t)]}catch(o){e(["Error starting subscription: "+Cr(n),o]);return}}function gf(e,t){hn(n=>{Ai(e,n[0],n[1])},t)}function xo(e,t,n,r,o,s){return hn(i=>{_f(e,i)},n),hn(i=>{Ai(e,i[0],i[1])},r),yr(o,Fu(i=>mf(e,t,i[0],i[1]),s))}function wf(){return[z(),ha({Compare:ye}),z()]}function yf(e,t,n,r,o){return Qn(e,r)?[_e(e,n),r,o]:[n,da(e,r),_e([e,t],o)]}function bf(e){return Au((t,n)=>yf(t[0],t[1],n[0],n[1],n[2]),e,wf())}const vf=z();function Eo(e,t){const n=pa(ut(i=>i[0],e),{Compare:ye}),r=bf(t),o=r[1],s=r[0];if(n.Equals(o))return[s,z(),e,z()];{const i=Ru(l=>Qn(l[0],o),e);return[s,i[1],i[0],Nu(l=>!Qn(l[0],n),r[2])]}}class Sf{constructor(t,n,r){this.OnNext=t,this.OnError=n||(o=>{}),this.OnCompleted=r||(()=>{})}}function Cf(e,t){t.Subscribe(new Sf(e))}class xf{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 kf(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 Ef extends xf{}function kf(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 Tf{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 Ef}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 $f=Tf;function If(e,t){console.error(ie(e),t)}function Mf(e,t){let n,r=new $f(e);r.AutoReset=!1,n=r,Cf(t,n.Elapsed()),n.Enabled=!0,n.Start()}function ko(e,t,n){hn(r=>{try{r(t)}catch(o){e(o)}},n)}function He(){return z()}function $t(e,t,n,r){return se(o=>{e(J.Delay(()=>J.Bind(nu(t(n)),s=>{const i=s;return i.tag===0&&o(r(i.fields[0])),J.Zero()})))})}function It(e){Mf(1,t=>{su(e)})}class pt extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class Pf{constructor(t){this.state=new pt(0,[Sn(new Array(qr(t,10)),0,qr(t,10),null),0])}}function Af(e){return new Pf(e)}function To(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 pt(0,[o,n]):e.state=new pt(1,[o,n,s]),ie(o[r])}else return}function Of(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 pt(1,[Nf(e,o,s),s.length,0]):e.state=new pt(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 pt(1,[o,s,r])}}function Nf(e,t,n){return Array.from(N(()=>me(rc(t,n),N(()=>me(oc(t,n),N(()=>sc(r=>O(ke()),ja(0,1,n.length))))))))}class xr extends le{constructor(t,n,r,o,s,i,l){super(),this.init=t,this.update=n,this.subscribe=r,this.view=o,this.setState=s,this.onError=i,this.termination=l}}function Rf(e,t,n){return new xr(e,t,r=>pf(),n,V(r=>{const o=Xe(n)(r);return s=>{o(s)}}),r=>{If(r[0],r[1])},[r=>!1,r=>{}])}function Ff(e,t){return new xr(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function Df(e){return e.init}function Vf(e,t,n,r,o,s,i){const l=Xe(e)(i.init),c=Mn(t)(Xe(i.update)),a=Mn(n)(Xe(i.view)),f=Mn(r)(Xe(i.setState));return new xr(l,V(c),Xe(o)(i.subscribe),V(a),V(f),i.onError,s(i.termination))}function Lf(e,t,n){let r;const o=n.init(t),s=o[0],i=n.subscribe(s),l=n.termination,c=Af(10);let a=!1,f=s,u=vf,p=!1;const h=g=>{p||(Of(c,g),a||(a=!0,m(),a=!1))},d=Xe(e)(h),m=()=>{let g,w=To(c);for(;!p&&w!=null;){const C=y(w);if(l[0](C))gf(n.onError,u),l[1](f),p=!0;else{const k=n.update(C,f),q=k[0],H=n.subscribe(q);n.setState(q,d),ko(ee=>{n.onError([gt(ze("Error handling the message: %A"))(C),ee])},d,k[1]),f=q,u=(g=Eo(u,H),xo(n.onError,d,g[0],g[1],g[2],g[3])),w=To(c)}}};a=!0,n.setState(s,d),ko(g=>{n.onError([gt(ze("Error intitializing:")),g])},d,o[1]),u=(r=Eo(u,i),xo(n.onError,d,r[0],r[1],r[2],r[3])),m(),a=!1}function Hf(e,t){Lf(V(n=>n),e,t)}function jf(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 Oi={exports:{}},Ni={};const Uf=jf(sl);/**
|
|
38
|
+
* @license React
|
|
39
|
+
* use-sync-external-store-shim.production.min.js
|
|
40
|
+
*
|
|
41
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
42
|
+
*
|
|
43
|
+
* This source code is licensed under the MIT license found in the
|
|
44
|
+
* LICENSE file in the root directory of this source tree.
|
|
45
|
+
*/var bt=Uf;function Bf(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Gf=typeof Object.is=="function"?Object.is:Bf,zf=bt.useState,Wf=bt.useEffect,qf=bt.useLayoutEffect,Zf=bt.useDebugValue;function Jf(e,t){var n=t(),r=zf({inst:{value:n,getSnapshot:t}}),o=r[0].inst,s=r[1];return qf(function(){o.value=n,o.getSnapshot=t,Dn(o)&&s({inst:o})},[e,n,t]),Wf(function(){return Dn(o)&&s({inst:o}),e(function(){Dn(o)&&s({inst:o})})},[e]),Zf(n),n}function Dn(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Gf(e,n)}catch{return!0}}function Kf(e,t){return t()}var Yf=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Kf:Jf;Ni.useSyncExternalStore=bt.useSyncExternalStore!==void 0?bt.useSyncExternalStore:Yf;Oi.exports=Ni;var Xf=Oi.exports;class Qf{constructor(t,n,r){this.arg=n,this.dependencies=r;const o=t(),s=[];let i;const l=Df(o)(this.arg);let c=l[0],a=l[1];i=[[c,f=>{s.push(f)},!1,s],a],this.state=i[0],this.cmd=i[1],this.subscribe=f=>{let u=!1;const p=Bn(this.state[0]);return Hf(this.arg,Ff((h,d)=>{const m=this.state;this.state=[h,d,!0,s],h!==m[0]&&f()},Vf((h,d)=>{const m=this.cmd;return this.cmd=He(),[this.state[0],m]},(h,d,m)=>h(d)(this.state[0]),zn(h=>h),zn(h=>h),V(h=>h),h=>[d=>h[0](d)?!0:p&&u,d=>{const m=d;Bn(m)?F(m):h[1](d)}],o))),()=>{u=!0}}}}function $o(e,t,n){return new Qf(e,t,n)}function ed(e){return e.state}function td(e){return e.subscribe}function nd(e,t,n){return re(e.arg,t)?!re(e.dependencies,n):!0}function rd(e,t,n){const r=Vt(()=>$o(e,t,n)),o=r[0];nd(o,t,n)&&r[1]($o(e,t,n));const s=Xf.useSyncExternalStore(td(o),()=>ed(o)),i=s[2],l=s[3],c=s[1];return mn(()=>{if(i&&l.length>0){let a=G(l);try{for(;a["System.Collections.IEnumerator.MoveNext"]();){const f=a["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{c(f)})}}finally{F(a)}bl(l)}},[i,l]),[s[0],c]}const Z=Ss;function od(e){return Z.useState(e)}class L extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function sd(e){return e.tag===1}function Io(e,t){switch(t.tag){case 1:return new L(1,[]);case 3:return new L(3,[t.fields[0]]);case 2:try{return new L(2,[e(t.fields[0])])}catch(n){return new L(3,[n])}default:return new L(0,[])}}function id(e){let t;t=new CustomEvent("step-completion",{bubbles:!0}),e.dispatchEvent(t)}class $e extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Requested","Finished"]}}class Ft extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Main","ReviewPolicy"]}}class he extends le{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 pe extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FetchReviewItemList","NavigatePage","PresentPolicies","OpenPolicy","AcceptPolicy","Continue"]}}function ld(){return[new he(new Ft(0,[]),new L(0,[]),new L(0,[]),new L(0,[]),new L(0,[]),new L(0,[])),se(e=>{e(new pe(0,[new $e(0,[])]))})]}function ud(e,t,n){let r,o;switch(t.tag){case 1:return[new he(t.fields[0],n.ReviewItemList,n.PresentPoliciesStatus,n.OpenPolicyStatus,new L(0,[]),n.ContinueStatus),t.fields[0].tag===1?se(s=>{s(new pe(3,[t.fields[0].fields[0],new $e(0,[])]))}):He()];case 2:return t.fields[1].tag===1?[new he(n.Page,n.ReviewItemList,new L(2,[t.fields[1].fields[0]]),n.OpenPolicyStatus,n.AcceptPolicyStatus,n.ContinueStatus),He()]:[new he(n.Page,n.ReviewItemList,new L(1,[]),n.OpenPolicyStatus,n.AcceptPolicyStatus,n.ContinueStatus),$t(s=>{It(s)},s=>Yt(e,s),new Jt(0,[{PolicyIdentifierList:ut(s=>s.Policy.Identifier,t.fields[0])}]),s=>{const i=[t.fields[0],new $e(1,[s])];return new pe(2,[i[0],i[1]])})];case 3:return t.fields[1].tag===1?[new he(n.Page,Io(s=>we(i=>ut(l=>re(t.fields[0].Policy.Identifier,l.Policy.Identifier)?new tn(l.Policy,Fn(l.Status,new ht(1,[]))):l,i),s),n.ReviewItemList),n.PresentPoliciesStatus,new L(2,[t.fields[1].fields[0]]),n.AcceptPolicyStatus,n.ContinueStatus),He()]:[new he(n.Page,n.ReviewItemList,n.PresentPoliciesStatus,new L(1,[]),n.AcceptPolicyStatus,n.ContinueStatus),$t(s=>{It(s)},s=>Yt(e,s),new Jt(1,[t.fields[0].Policy.Identifier]),s=>{const i=[t.fields[0],new $e(1,[s])];return new pe(3,[i[0],i[1]])})];case 4:if(t.fields[1].tag===1){const s=Io(i=>we(l=>ut(c=>re(t.fields[0].Policy.Identifier,c.Policy.Identifier)?new tn(c.Policy,Fn(c.Status,new ht(2,[]))):c,l),i),n.ReviewItemList);return[new he((r=n.Page,r.tag===1?(o=r.fields[0],new Ft(1,[new tn(o.Policy,Fn(o.Status,new ht(2,[])))])):new Ft(0,[])),s,n.PresentPoliciesStatus,n.OpenPolicyStatus,new L(2,[t.fields[1].fields[0]]),n.ContinueStatus),He()]}else return[new he(n.Page,n.ReviewItemList,n.PresentPoliciesStatus,n.OpenPolicyStatus,new L(1,[]),n.ContinueStatus),$t(s=>{It(s)},s=>Yt(e,s),new Jt(2,[t.fields[0].Policy.Identifier]),s=>{const i=[t.fields[0],new $e(1,[s])];return new pe(4,[i[0],i[1]])})];case 5:if(t.fields[1].tag===1)return id(document.querySelector("apollo-workplace-policies-app")),[new he(n.Page,n.ReviewItemList,n.PresentPoliciesStatus,n.OpenPolicyStatus,n.AcceptPolicyStatus,new L(2,[t.fields[1].fields[0]])),He()];switch(n.ContinueStatus.tag){case 0:case 2:case 3:return[new he(n.Page,n.ReviewItemList,n.PresentPoliciesStatus,n.OpenPolicyStatus,n.AcceptPolicyStatus,new L(1,[])),$t(i=>{It(i)},i=>Yt(e,i),new Jt(3,[{PolicyIdentifierList:ut(i=>i.Policy.Identifier,t.fields[0])}]),i=>{const l=[t.fields[0],new $e(1,[i])];return new pe(5,[l[0],l[1]])})];default:return[n,He()]}default:return t.fields[0].tag===1?[new he(n.Page,new L(2,[we(s=>s.PolicyReviewList,t.fields[0].fields[0])]),n.PresentPoliciesStatus,n.OpenPolicyStatus,n.AcceptPolicyStatus,n.ContinueStatus),t.fields[0].fields[0].tag===1?He():se(s=>{s(new pe(2,[t.fields[0].fields[0].fields[0].PolicyReviewList,new $e(0,[])]))})]:[new he(n.Page,new L(1,[]),n.PresentPoliciesStatus,n.OpenPolicyStatus,n.AcceptPolicyStatus,n.ContinueStatus),$t(s=>{It(s)},()=>hf(e),void 0,s=>new pe(0,[new $e(1,[s])]))]}}const cd=`*,: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}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.mr-4{margin-right:1rem}.mt-1{margin-top:.25rem}.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}.w-\\[4\\.75rem\\]{width:4.75rem}.w-full{width:100%}.cursor-pointer{cursor:pointer}.flex-col-reverse{flex-direction:column-reverse}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.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))}.p-1{padding:.25rem}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-3{padding-left:.75rem;padding-right:.75rem}.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\\:mr-2{margin-right:.5rem}.sm\\:mr-2\\.5{margin-right:.625rem}.sm\\:mt-0{margin-top:0}.sm\\:mt-10{margin-top:2.5rem}.sm\\:w-\\[12\\.5rem\\]{width:12.5rem}.sm\\:w-\\[35rem\\]{width:35rem}.sm\\:max-w-\\[57rem\\]{max-width:57rem}.sm\\:flex-row{flex-direction:row}.sm\\:p-5{padding:1.25rem}.sm\\:p-6{padding:1.5rem}.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-base{font-size:1rem;line-height:1.5rem}.sm\\:text-lg{font-size:1.125rem;line-height:1.75rem}.sm\\:leading-6{line-height:1.5rem}.sm\\:leading-7{line-height:1.75rem}.sm\\:leading-8{line-height:2rem}.sm\\:leading-9{line-height:2.25rem}}
|
|
46
|
+
`,ad=(()=>Te(cd))(),fd=e=>b("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b("g",{clipPath:"url(#clip0_3040_23717)"},b("path",{d:"M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",fill:"currentColor"}),b("path",{d:"M6 12L10 16L18 8",stroke:"white",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),b("defs",null,b("clipPath",{id:"clip0_3040_23717"},b("rect",{width:24,height:24,fill:"white"})))),dd=e=>b("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b("path",{d:"M9 6L15 12L9 18",stroke:"#9CA3AF",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),hd=e=>b("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b("path",{d:"M15 18L9 12L15 6",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),pd=e=>b("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 4H15.5C15.6326 4 15.7597 4.05268 15.8535 4.14645C15.9473 4.24022 16 4.36739 16 4.5V9.5C15.9999 9.59894 15.9706 9.69565 15.9156 9.77789C15.8606 9.86013 15.7824 9.92421 15.691 9.962C15.6303 9.98677 15.5655 9.99967 15.5 10C15.4343 10.0001 15.3692 9.98729 15.3084 9.96223C15.2477 9.93718 15.1925 9.9004 15.146 9.854L13.354 8.061L10.707 10.707C10.6147 10.8025 10.5044 10.8787 10.3824 10.9311C10.2604 10.9835 10.1291 11.0111 9.99636 11.0123C9.86358 11.0134 9.7319 10.9881 9.609 10.9378C9.48611 10.8875 9.37446 10.8133 9.28056 10.7194C9.18667 10.6255 9.11242 10.5139 9.06214 10.391C9.01186 10.2681 8.98655 10.1364 8.98771 10.0036C8.98886 9.87082 9.01645 9.7396 9.06886 9.6176C9.12127 9.49559 9.19745 9.38525 9.29296 9.293L11.939 6.646L10.146 4.854C10.0759 4.78407 10.0281 4.6949 10.0087 4.59779C9.98935 4.50068 9.99926 4.40001 10.0372 4.30854C10.0751 4.21706 10.1393 4.13891 10.2217 4.08398C10.3041 4.02905 10.4009 3.99982 10.5 4ZM12 16H6C5.46957 16 4.96086 15.7893 4.58579 15.4142C4.21071 15.0391 4 14.5304 4 14V8C4 7.46957 4.21071 6.96086 4.58579 6.58579C4.96086 6.21071 5.46957 6 6 6H7C7.26522 6 7.51957 6.10536 7.70711 6.29289C7.89464 6.48043 8 6.73478 8 7C8 7.26522 7.89464 7.51957 7.70711 7.70711C7.51957 7.89464 7.26522 8 7 8H6V14H12V13C12 12.7348 12.1054 12.4804 12.2929 12.2929C12.4804 12.1054 12.7348 12 13 12C13.2652 12 13.5196 12.1054 13.7071 12.2929C13.8946 12.4804 14 12.7348 14 13V14C14 14.5304 13.7893 15.0391 13.4142 15.4142C13.0391 15.7893 12.5304 16 12 16Z",fill:"currentColor"})),_d=e=>b("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b("path",{d:"M18 12H6",stroke:"#9CA3AF",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),md=e=>b("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b("path",{d:"M12 6V12M12 12V18M12 12H18M12 12L6 12",stroke:"#9CA3AF",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}));class Vn extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Height","Width","ClassName"]}}function Et(e,t){return Z.createElement(e,Mc(t,1))}function Ri(e){return Et(fd,e)}function gd(e){return Et(dd,e)}function wd(e){return Et(hd,e)}function yd(e){return Et(pd,e)}function bd(e){return Et(_d,e)}function vd(e){return Et(md,e)}function Sd(e){let t,n,r;const o=e.dispatch,s=e.acceptPolicyStatus,i=e.policyReviewItem,l=od(!1),c=l[0];return b("div",K(j([["className","w-full p-1 sm:p-5"],(t=[b("div",K(j([["className","flex justify-between items-center"],(n=Fe(N(()=>{let a,f;return me(O(b("div",K(j([["className","flex items-center"],(a=[b("div",K(j([["onClick",u=>{o(new pe(1,[new Ft(0,[])]))}],(f=[wd(se(new Vn(2,["cursor-pointer"])))],["children",Z.Children.toArray(Array.from(f))])]))),b("div",{className:"ml-1 mr-4 text-base sm:text-lg leading-6 sm:leading-7 font-semibold text-gray-900",children:i.Policy.Title})],["children",Z.Children.toArray(Array.from(a))])])))),N(()=>{let u,p;return i.Status.tag===2?O(b("div",K(j([["className","flex items-center flex-col-reverse sm:flex-row"],(u=[b("span",{className:"mt-1 sm:mt-0 sm:mr-2.5 text-sm leading-5 font-medium text-gray-500",children:"Accepted"}),Ri(se(new Vn(2,["text-primary-base"])))],["children",Z.Children.toArray(Array.from(u))])])))):O(b("button",K(j([["type","button"],["disabled",sd(s)],(p=`
|
|
47
|
+
shadow-sm w-[4.75rem] px-3 py-2 rounded-md flex justify-center items-center text-white
|
|
48
|
+
text-sm font-semibold leading-5 cursor-pointer disabled:cursor-not-allowed bg-primary-base
|
|
49
|
+
`,["className",p]),["onClick",h=>{o(new pe(4,[i,new $e(0,[])]))}],["children","Accept"]]))))}))})),["children",Z.Children.toArray(Array.from(n))])]))),b("div",K(j([["className","p-4 sm:p-6 rounded-lg shadow-sm border border-gray-300"],(r=Fe(N(()=>{let a;return me(O(b("div",K(j([["className","flex justify-between"],["onClick",f=>{l[1](!c)}],(a=Fe(N(()=>me(O(b("div",{className:"text-sm mr-4 sm:text-base leading-5 sm:leading-6 font-semibold text-gray-900",children:`About the ${i.Policy.Title}`})),N(()=>{const f=se(new Vn(2,["cursor-pointer"]));return O(c?bd(f):vd(f))})))),["children",Z.Children.toArray(Array.from(a))])])))),N(()=>{let f,u,p;return c?O(b("div",K(j([["className","mt-2 space-y-3 sm:max-w-[57rem]"],(f=[b("div",{className:"text-sm font-normal leading-6 text-gray-900",children:i.Policy.Description}),b("div",K(j([["className","flex text-sm font-medium leading-5 text-primary-base cursor-pointer"],(u=[b("a",{target:"_blank",rel:"noopener",href:i.Policy.About.Link,children:i.Policy.About.Link}),(p=se(yd(z())),b("span",{children:Z.Children.toArray(Array.from(p))}))],["children",Z.Children.toArray(Array.from(u))])])))],["children",Z.Children.toArray(Array.from(f))])])))):Yu()}))})),["children",Z.Children.toArray(Array.from(r))])])))],["children",Z.Children.toArray(Array.from(t))])])))}function Cd(e,t){let n,r,o;const s=re(t.Status,new ht(2,[]));return b("div",K(j([["key",t.Policy.Identifier.PolicyId],["onClick",i=>{e(new pe(1,[new Ft(1,[t])]))}],["className",We(" ",Fe(N(()=>me(O("py-6 px-4 sm:px-6 shadow-sm rounded-lg text-left"),N(()=>O(s?"border-2 border-primary-base":"border border-gray-300"))))))],(n=[b("div",K(j([["className","flex justify-between"],(r=[b("div",{className:"text-base leading-6 font-semibold text-gray-900 mr-4",children:t.Policy.Title}),b("div",K(j([["className",We(" ",Fe(N(()=>me(O("ml-2"),N(()=>O(s?"text-primary-base":"cursor-pointer"))))))],(o=Fe(N(()=>O(s?Ri(z()):gd(z())))),["children",Z.Children.toArray(Array.from(o))])])))],["children",Z.Children.toArray(Array.from(r))])]))),b("div",{className:"text-sm leading-5 font-normal text-gray-500 mt-2",children:t.Policy.Description}),b("div",{className:"text-sm leading-5 font-medium mt-3 text-primary-base cursor-pointer",children:"View document (PDF)"})],["children",Z.Children.toArray(Array.from(n))])])))}function xd(e){return Du(t=>re(t.Status,new ht(2,[])),e)}function Ed(e,t,n){let r,o;return b("div",K(j([["className","w-full sm:w-[35rem] text-center bg-white mx-auto px-1 py-5 sm:py-16"],(r=[b("div",{className:"text-gray-900 text-2xl sm:text-3xl leading-8 sm:leading-9 font-bold",children:"Employment information statements"}),b("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."}),b("div",K(j([["className","space-y-4 mt-8 sm:mt-10"],(o=Fe(N(()=>ut(s=>Cd(n,s),e))),["children",Z.Children.toArray(Array.from(o))])]))),b("button",K(Fe(N(()=>me(O(["disabled",t.tag===1?!0:!xd(e)]),N(()=>me(O(["type","button"]),N(()=>{let s;return me(O((s=`
|
|
50
|
+
mt-8 sm:mt-10 mx-auto shadow-sm w-full sm:w-[12.5rem] px-4 py-2
|
|
51
|
+
rounded-md flex justify-center items-center text-white disabled:text-gray-400
|
|
52
|
+
text-base font-semibold leading-6 cursor-pointer disabled:cursor-not-allowed
|
|
53
|
+
disabled:border disabled:border-gray-300 bg-primary-base disabled:bg-gray-100
|
|
54
|
+
`,["className",s])),N(()=>me(O(["onClick",i=>{n(new pe(5,[e,new $e(0,[])]))}]),N(()=>O(["children","Continue"])))))}))))))))],["children",Z.Children.toArray(Array.from(r))])])))}function Er(){return(Er=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 kd(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var s,i,l={},c=Object.keys(r);for(i=0;i<c.length;i++)o.indexOf(s=c[i])>=0||(l[s]=r[s]);return l}(e,["context","children"]);return rr(t,n)}function Td(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=b(kd,Er({},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,l=n.attributes,c=n.childNodes;for(i=l.length;i--;)l[i].name!=="slot"&&(s[l[i].name]=l[i].value,s[Fi(l[i].name)]=l[i].value);for(i=c.length;i--;){var a=t(c[i],null),f=c[i].slot;f?s[f]=b(Mo,{name:f},a):o[i]=a}var u=r?b(Mo,null,o):o;return b(r||n.nodeName.toLowerCase(),s,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?nr:Ge)(this._vdom,this._root)}function Fi(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function $d(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[Fi(e)]=n,this._vdom=rr(this._vdom,r),Ge(this._vdom,this._root)}}function Id(){Ge(this._vdom=null,this._root)}function Mo(e,t){var n=this;return b("slot",Er({},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 Md(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=Td,o.prototype.attributeChangedCallback=$d,o.prototype.disconnectedCallback=Id,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 l=typeof i;i!=null&&l!=="string"&&l!=="boolean"&&l!=="number"||this.setAttribute(s,i)}})}),customElements.define(t||e.tagName||e.displayName||e.name,o)}function Pd(e,t){Md(e,t,void 0,{shadow:!0})}function Ad(e){let t,n;const r=df(e.backendUrl,e.accessToken);n=rd(()=>Rf(ld,(l,c)=>ud(r,l,c),(l,c)=>{}),void 0,void 0);const o=n[0],s=n[1],i=[b("style",{children:[ad]}),b("div",K(j([["className","font-inter"],(t=Fe(N(()=>{const l=o.ReviewItemList,c=o.PresentPoliciesStatus;let a,f;switch(l.tag){case 1:{a=0;break}case 2:{switch(c.tag){case 2:{l.fields[0].tag===0&&c.fields[0].tag===0?(a=2,f=l.fields[0].fields[0]):a=1;break}case 3:{l.fields[0].tag,a=1;break}default:a=0}break}case 3:{switch(c.tag){case 2:{c.fields[0].tag,a=1;break}case 3:{a=1;break}default:a=0}break}default:a=0}switch(a){case 0:return O(ke());case 1:return O(b("div",{children:["Oops, we've encountered an error"]}));default:{const u=o.Page;return u.tag===1?O(b(Sd,{policyReviewItem:u.fields[0],acceptPolicyStatus:o.AcceptPolicyStatus,dispatch:s})):O(Ed(f,o.ContinueStatus,s))}}})),["children",Z.Children.toArray(Array.from(t))])])))];return b(Ie,{},...i)}Pd(e=>b(Ad,e),"apollo-workplace-policies-app");
|