@flarehr/workflows-progress-app 2.12.1 → 2.15.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see workflows-progress-app.js.LICENSE.txt */
2
- (()=>{var e={703:(e,t,n)=>{"use strict";var r=n(414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,s){if(s!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},697:(e,t,n)=>{e.exports=n(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e,t,r,o,i,s,a,u={},c=[],l=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function f(e,t){for(var n in t)e[n]=t[n];return e}function d(e){var t=e.parentNode;t&&t.removeChild(e)}function h(t,n,r){var o,i,s,a={};for(s in n)"key"==s?o=n[s]:"ref"==s?i=n[s]:a[s]=n[s];if(arguments.length>2&&(a.children=arguments.length>3?e.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(s in t.defaultProps)void 0===a[s]&&(a[s]=t.defaultProps[s]);return p(t,a,o,i,null)}function p(e,n,o,i,s){var a={type:e,props:n,key:o,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==s?++r:s};return null!=t.vnode&&t.vnode(a),a}function m(e){return e.children}function g(e,t){this.props=e,this.context=t}function w(e,t){if(null==t)return e.__?w(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?w(e):null}function y(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return y(e)}}function _(e){(!e.__d&&(e.__d=!0)&&o.push(e)&&!v.__r++||s!==t.debounceRendering)&&((s=t.debounceRendering)||i)(v)}function v(){for(var e;v.__r=o.length;)e=o.sort((function(e,t){return e.__v.__b-t.__v.__b})),o=[],e.some((function(e){var t,n,r,o,i,s;e.__d&&(i=(o=(t=e).__v).__e,(s=t.__P)&&(n=[],(r=f({},o)).__v=o.__v+1,T(s,o,r,t.__n,void 0!==s.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?w(o):i,o.__h),O(n,o),o.__e!=i&&y(o)))}))}function b(e,t,n,r,o,i,s,a,l,f){var d,h,g,y,_,v,b,S=r&&r.__k||c,E=S.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(y=n.__k[d]=null==(y=t[d])||"boolean"==typeof y?null:"string"==typeof y||"number"==typeof y||"bigint"==typeof y?p(null,y,null,null,y):Array.isArray(y)?p(m,{children:y},null,null,null):y.__b>0?p(y.type,y.props,y.key,null,y.__v):y)){if(y.__=n,y.__b=n.__b+1,null===(g=S[d])||g&&y.key==g.key&&y.type===g.type)S[d]=void 0;else for(h=0;h<E;h++){if((g=S[h])&&y.key==g.key&&y.type===g.type){S[h]=void 0;break}g=null}T(e,y,g=g||u,o,i,s,a,l,f),_=y.__e,(h=y.ref)&&g.ref!=h&&(b||(b=[]),g.ref&&b.push(g.ref,null,y),b.push(h,y.__c||_,y)),null!=_?(null==v&&(v=_),"function"==typeof y.type&&null!=y.__k&&y.__k===g.__k?y.__d=l=C(y,l,e):l=x(e,y,g,S,_,l),f||"option"!==n.type?"function"==typeof n.type&&(n.__d=l):e.value=""):l&&g.__e==l&&l.parentNode!=e&&(l=w(g))}for(n.__e=v,d=E;d--;)null!=S[d]&&("function"==typeof n.type&&null!=S[d].__e&&S[d].__e==n.__d&&(n.__d=w(r,d+1)),A(S[d],S[d]));if(b)for(d=0;d<b.length;d++)N(b[d],b[++d],b[++d])}function C(e,t,n){var r,o;for(r=0;r<e.__k.length;r++)(o=e.__k[r])&&(o.__=e,t="function"==typeof o.type?C(o,t,n):x(n,o,o,e.__k,o.__e,t));return t}function S(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){S(e,t)})):t.push(e)),t}function x(e,t,n,r,o,i){var s,a,u;if(void 0!==t.__d)s=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),s=null;else{for(a=i,u=0;(a=a.nextSibling)&&u<r.length;u+=2)if(a==o)break e;e.insertBefore(o,i),s=i}return void 0!==s?s:o.nextSibling}function E(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||l.test(t)?n:n+"px"}function k(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||E(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||E(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?I:M,i):e.removeEventListener(t,i?I:M,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function M(e){this.l[e.type+!1](t.event?t.event(e):e)}function I(e){this.l[e.type+!0](t.event?t.event(e):e)}function T(e,n,r,o,i,s,a,u,c){var l,d,h,p,w,y,_,v,C,S,x,E=n.type;if(void 0!==n.constructor)return null;null!=r.__h&&(c=r.__h,u=n.__e=r.__e,n.__h=null,s=[u]),(l=t.__b)&&l(n);try{e:if("function"==typeof E){if(v=n.props,C=(l=E.contextType)&&o[l.__c],S=l?C?C.props.value:l.__:o,r.__c?_=(d=n.__c=r.__c).__=d.__E:("prototype"in E&&E.prototype.render?n.__c=d=new E(v,S):(n.__c=d=new g(v,S),d.constructor=E,d.render=D),C&&C.sub(d),d.props=v,d.state||(d.state={}),d.context=S,d.__n=o,h=d.__d=!0,d.__h=[]),null==d.__s&&(d.__s=d.state),null!=E.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=f({},d.__s)),f(d.__s,E.getDerivedStateFromProps(v,d.__s))),p=d.props,w=d.state,h)null==E.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==E.getDerivedStateFromProps&&v!==p&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(v,S),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(v,d.__s,S)||n.__v===r.__v){d.props=v,d.state=d.__s,n.__v!==r.__v&&(d.__d=!1),d.__v=n,n.__e=r.__e,n.__k=r.__k,n.__k.forEach((function(e){e&&(e.__=n)})),d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(v,d.__s,S),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(p,w,y)}))}d.context=S,d.props=v,d.state=d.__s,(l=t.__r)&&l(n),d.__d=!1,d.__v=n,d.__P=e,l=d.render(d.props,d.state,d.context),d.state=d.__s,null!=d.getChildContext&&(o=f(f({},o),d.getChildContext())),h||null==d.getSnapshotBeforeUpdate||(y=d.getSnapshotBeforeUpdate(p,w)),x=null!=l&&l.type===m&&null==l.key?l.props.children:l,b(e,Array.isArray(x)?x:[x],n,r,o,i,s,a,u,c),d.base=n.__e,n.__h=null,d.__h.length&&a.push(d),_&&(d.__E=d.__=null),d.__e=!1}else null==s&&n.__v===r.__v?(n.__k=r.__k,n.__e=r.__e):n.__e=P(r.__e,n,r,o,i,s,a,c);(l=t.diffed)&&l(n)}catch(e){n.__v=null,(c||null!=s)&&(n.__e=u,n.__h=!!c,s[s.indexOf(u)]=null),t.__e(e,n,r)}}function O(e,n){t.__c&&t.__c(n,e),e.some((function(n){try{e=n.__h,n.__h=[],e.some((function(e){e.call(n)}))}catch(e){t.__e(e,n.__v)}}))}function P(t,n,r,o,i,s,a,c){var l,f,h,p=r.props,m=n.props,g=n.type,y=0;if("svg"===g&&(i=!0),null!=s)for(;y<s.length;y++)if((l=s[y])&&(l===t||(g?l.localName==g:3==l.nodeType))){t=l,s[y]=null;break}if(null==t){if(null===g)return document.createTextNode(m);t=i?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,m.is&&m),s=null,c=!1}if(null===g)p===m||c&&t.data===m||(t.data=m);else{if(s=s&&e.call(t.childNodes),f=(p=r.props||u).dangerouslySetInnerHTML,h=m.dangerouslySetInnerHTML,!c){if(null!=s)for(p={},y=0;y<t.attributes.length;y++)p[t.attributes[y].name]=t.attributes[y].value;(h||f)&&(h&&(f&&h.__html==f.__html||h.__html===t.innerHTML)||(t.innerHTML=h&&h.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||k(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||k(e,i,t[i],n[i],r)}(t,m,p,i,c),h)n.__k=[];else if(y=n.props.children,b(t,Array.isArray(y)?y:[y],n,r,o,i&&"foreignObject"!==g,s,a,s?s[0]:r.__k&&w(r,0),c),null!=s)for(y=s.length;y--;)null!=s[y]&&d(s[y]);c||("value"in m&&void 0!==(y=m.value)&&(y!==t.value||"progress"===g&&!y)&&k(t,"value",y,p.value,!1),"checked"in m&&void 0!==(y=m.checked)&&y!==t.checked&&k(t,"checked",y,p.checked,!1))}return t}function N(e,n,r){try{"function"==typeof e?e(n):e.current=n}catch(e){t.__e(e,r)}}function A(e,n,r){var o,i;if(t.unmount&&t.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||N(o,null,n)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){t.__e(e,n)}o.base=o.__P=null}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&A(o[i],n,"function"!=typeof e.type);r||null==e.__e||d(e.__e),e.__e=e.__d=void 0}function D(e,t,n){return this.constructor(e,n)}function j(n,r,o){var i,s,a;t.__&&t.__(n,r),s=(i="function"==typeof o)?null:o&&o.__k||r.__k,a=[],T(r,n=(!i&&o||r).__k=h(m,null,[n]),s||u,u,void 0!==r.ownerSVGElement,!i&&o?[o]:s?null:r.firstChild?e.call(r.childNodes):null,a,!i&&o?o:s?s.__e:r.firstChild,i),O(a,n)}function R(e,t){j(e,t,R)}function F(t,n,r){var o,i,s,a=f({},t.props);for(s in n)"key"==s?o=n[s]:"ref"==s?i=n[s]:a[s]=n[s];return arguments.length>2&&(a.children=arguments.length>3?e.call(arguments,2):r),p(t.type,a,o||t.key,i||t.ref,null)}e=c.slice,t={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(t){e=t}throw e}},r=0,g.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=f({},this.state),"function"==typeof e&&(e=e(f({},n),this.props)),e&&f(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),_(this))},g.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),_(this))},g.prototype.render=m,o=[],i="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,v.__r=0,a=0;var U,L,W,G=0,z=[],H=t.__b,B=t.__r,$=t.diffed,q=t.__c,V=t.unmount;function Y(e,n){t.__h&&t.__h(L,e,G||n),G=0;var r=L.__H||(L.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function J(e,t,n){var r=Y(U++,2);return r.t=e,r.__c||(r.__=[n?n(t):oe(void 0,t),function(e){var t=r.t(r.__[0],e);r.__[0]!==t&&(r.__=[t,r.__[1]],r.__c.setState({}))}],r.__c=L),r.__}function X(e,n){var r=Y(U++,3);!t.__s&&re(r.__H,n)&&(r.__=e,r.__H=n,L.__H.__h.push(r))}function Z(e,n){var r=Y(U++,4);!t.__s&&re(r.__H,n)&&(r.__=e,r.__H=n,L.__h.push(r))}function Q(e,t){var n=Y(U++,7);return re(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function K(){z.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(te),e.__H.__h.forEach(ne),e.__H.__h=[]}catch(n){e.__H.__h=[],t.__e(n,e.__v)}})),z=[]}t.__b=function(e){L=null,H&&H(e)},t.__r=function(e){B&&B(e),U=0;var t=(L=e.__c).__H;t&&(t.__h.forEach(te),t.__h.forEach(ne),t.__h=[])},t.diffed=function(e){$&&$(e);var n=e.__c;n&&n.__H&&n.__H.__h.length&&(1!==z.push(n)&&W===t.requestAnimationFrame||((W=t.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),ee&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);ee&&(t=requestAnimationFrame(n))})(K)),L=void 0},t.__c=function(e,n){n.some((function(e){try{e.__h.forEach(te),e.__h=e.__h.filter((function(e){return!e.__||ne(e)}))}catch(r){n.some((function(e){e.__h&&(e.__h=[])})),n=[],t.__e(r,e.__v)}})),q&&q(e,n)},t.unmount=function(e){V&&V(e);var n=e.__c;if(n&&n.__H)try{n.__H.__.forEach(te)}catch(e){t.__e(e,n.__v)}};var ee="function"==typeof requestAnimationFrame;function te(e){var t=L;"function"==typeof e.__c&&e.__c(),L=t}function ne(e){var t=L;e.__c=e.__(),L=t}function re(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function oe(e,t){return"function"==typeof t?t(e):t}function ie(e,t){for(var n in t)e[n]=t[n];return e}function se(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function ae(e){this.props=e}(ae.prototype=new g).isPureReactComponent=!0,ae.prototype.shouldComponentUpdate=function(e,t){return se(this.props,e)||se(this.state,t)};var ue=t.__b;t.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ue&&ue(e)};var ce="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,le=function(e,t){return null==e?null:S(S(e).map(t))},fe={map:le,forEach:le,count:function(e){return e?S(e).length:0},only:function(e){var t=S(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:S},de=t.__e;t.__e=function(e,t,n){if(e.then)for(var r,o=t;o=o.__;)if((r=o.__c)&&r.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t);de(e,t,n)};var he=t.unmount;function pe(){this.__u=0,this.t=null,this.__b=null}function me(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function ge(){this.u=null,this.o=null}t.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),he&&he(e)},(pe.prototype=new g).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=me(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__e){var e=r.state.__e;r.__v.__k[0]=function e(t,n,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)})),t.__c&&t.__c.__P===n&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__e:r.__b=null});t=r.t.pop();)t.forceUpdate()}},u=!0===t.__h;r.__u++||u||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(s,s)},pe.prototype.componentWillUnmount=function(){this.t=[]},pe.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]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=ie({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)}))),t}(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__e&&h(m,null,e.fallback);return o&&(o.__h=null),[h(m,null,t.__e?null:e.children),o]};var we=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!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 ye(e){return this.getChildContext=function(){return e.context},e.children}function _e(e){var t=this,n=e.i;t.componentWillUnmount=function(){j(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(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),j(h(ye,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}(ge.prototype=new g).__e=function(e){var t=this,n=me(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),we(t,e,r)):o()};n?n(i):i()}},ge.prototype.render=function(e){this.u=null,this.o=new Map;var t=S(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},ge.prototype.componentDidUpdate=ge.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){we(e,n,t)}))};var ve="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,be=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Ce=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};function Se(e,t,n){return null==t.__k&&(t.textContent=""),j(e,t),"function"==typeof n&&n(),e?e.__c:null}g.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(g.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var xe=t.event;function Ee(){}function ke(){return this.cancelBubble}function Me(){return this.defaultPrevented}t.event=function(e){return xe&&(e=xe(e)),e.persist=Ee,e.isPropagationStopped=ke,e.isDefaultPrevented=Me,e.nativeEvent=e};var Ie,Te={configurable:!0,get:function(){return this.class}},Oe=t.vnode;t.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){for(var o in r={},n){var i=n[o];"value"===o&&"defaultValue"in n&&null==i||("defaultValue"===o&&"value"in n&&null==n.value?o="value":"download"===o&&!0===i?i="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!Ce(n.type)?o="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(o)?o=o.toLowerCase():be.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===i&&(i=void 0),r[o]=i)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=S(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=S(n.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r}t&&n.class!=n.className&&(Te.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",Te)),e.$$typeof=ve,Oe&&Oe(e)};var Pe=t.__r;t.__r=function(e){Pe&&Pe(e),Ie=e.__c};var Ne={ReactCurrentDispatcher:{current:{readContext:function(e){return Ie.__n[e.__c].props.value}}}};function Ae(e){return!!e&&e.$$typeof===ve}const De={useState:function(e){return G=1,J(oe,e)},useReducer:J,useEffect:X,useLayoutEffect:Z,useRef:function(e){return G=5,Q((function(){return{current:e}}),[])},useImperativeHandle:function(e,t,n){G=6,Z((function(){"function"==typeof e?e(t()):e&&(e.current=t())}),null==n?n:n.concat(e))},useMemo:Q,useCallback:function(e,t){return G=8,Q((function(){return e}),t)},useContext:function(e){var t=L.context[e.__c],n=Y(U++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(L)),t.props.value):e.__},useDebugValue:function(e,n){t.useDebugValue&&t.useDebugValue(n?n(e):e)},version:"17.0.2",Children:fe,render:Se,hydrate:function(e,t,n){return R(e,t),"function"==typeof n&&n(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(j(null,e),!0)},createPortal:function(e,t){return h(_e,{__v:e,i:t})},createElement:h,createContext:function(e,t){var n={__c:t="__cC"+a++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(_)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},createFactory:function(e){return h.bind(null,e)},cloneElement:function(e){return Ae(e)?F.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:m,isValidElement:Ae,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:g,PureComponent:ae,memo:function(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:se(this.props,e)}function r(t){return this.shouldComponentUpdate=n,h(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:function(e){function t(t,n){var r=ie({},t);return delete r.ref,e(r,(n=t.ref||n)&&("object"!=typeof n||"current"in n)?n:null)}return t.$$typeof=ce,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t},flushSync:function(e,t){return e(t)},unstable_batchedUpdates:function(e,t){return e(t)},StrictMode:m,Suspense:pe,SuspenseList:ge,lazy:function(e){var t,n,r;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return h(n,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ne};function je(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function Re(e,t){return Object.getPrototypeOf(e).constructor===Object.getPrototypeOf(t).constructor}class Fe{constructor(e){this.iter=e}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const e=this.iter.next();return this.current=e.value,!e.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function Ue(e){return"function"==typeof e.GetEnumerator?e.GetEnumerator():new Fe(e[Symbol.iterator]())}function Le(e){return{[Symbol.iterator](){return this},next(){const t=e["System.Collections.IEnumerator.MoveNext"]();return{done:!t,value:t?e["System.Collections.IEnumerator.get_Current"]():void 0}}}}class We{constructor(e){this.factory=e,this.isValueCreated=!1}get Value(){return this.isValueCreated||(this.createdValue=this.factory(),this.isValueCreated=!0),this.createdValue}get IsValueCreated(){return this.isValueCreated}}function Ge(e,t){let n=e.toString(10);for(;n.length<t;)n="0"+n;return n}function ze(e){const t=e;return"number"==typeof t.offset?t.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function He(e,t){return(e=e<0&&null!=t&&10!==t?4294967295+e+1:e).toString(t)}class Be{static id(e){return Be.idMap.has(e)||Be.idMap.set(e,++Be.count),Be.idMap.get(e)}}function $e(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=33*n^e.charCodeAt(t++);return n}function qe(e){return 2654435761*e|0}function Ve(e){return 0===e.length?0:e.reduce(((e,t)=>(e<<5)+e^t))}function Ye(e){if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return qe(e);case"string":return $e(e);default:if(function(e){return"function"==typeof e.GetHashCode}(e))return e.GetHashCode();if(je(e))return function(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=Ye(e[r]);return Ve(n)}(e);if(e instanceof Date)return function(e){return e.getTime()}(e);if(Object.getPrototypeOf(e).constructor===Object){const t=Object.values(e).map((e=>Ye(e)));return Ve(t)}return qe(Be.id(e))}}function Je(e,t,n){if(null==e)return null==t;if(null==t)return!1;if(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 Xe(e,t){return Je(e,t,Ze)}function Ze(e,t){return e===t||(null==e?null==t:null!=t&&"object"==typeof e&&(function(e){return"function"==typeof e.Equals}(e)?e.Equals(t):je(e)?je(t)&&Xe(e,t):e instanceof Date?t instanceof Date&&0===Qe(e,t):Object.getPrototypeOf(e).constructor===Object&&function(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]||!Ze(e[n[o]],t[r[o]]))return!1;return!0}(e,t)))}function Qe(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+ze(e),r=t.getTime()+ze(t)),n===r?0:n<r?-1:1}function Ke(e,t){return e===t?0:e<t?-1:1}function et(e,t){return function(e,t,n){if(null==e)return null==t?0:1;if(null==t)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]),0!==o)return o;return 0}(e,t,tt)}function tt(e,t){return e===t?0:null==e?null==t?0:-1:null==t?1:"object"!=typeof e?e<t?-1:1:function(e){return"function"==typeof e.CompareTo}(e)?e.CompareTo(t):je(e)?je(t)?et(e,t):-1:e instanceof Date?t instanceof Date?Qe(e,t):-1:Object.getPrototypeOf(e).constructor===Object?function(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return n.length<r.length?-1:1;n.sort(),r.sort();for(let o=0,i=0;o<n.length;o++){const s=n[o];if(s!==r[o])return s<r[o]?-1:1;if(i=tt(e[s],t[s]),0!==i)return i}return 0}(e,t):-1}function nt(e,t,n){return e(t,n)>0?t:n}Be.idMap=new WeakMap,Be.count=0;const rt="__CURRIED__";function ot(e,t){if(null==t||t.length>1)return t;let n;switch(e){case 2:n=(e,n)=>t(e)(n);break;case 3:n=(e,n,r)=>t(e)(n)(r);break;case 4:n=(e,n,r,o)=>t(e)(n)(r)(o);break;case 5:n=(e,n,r,o,i)=>t(e)(n)(r)(o)(i);break;case 6:n=(e,n,r,o,i,s)=>t(e)(n)(r)(o)(i)(s);break;case 7:n=(e,n,r,o,i,s,a)=>t(e)(n)(r)(o)(i)(s)(a);break;case 8:n=(e,n,r,o,i,s,a,u)=>t(e)(n)(r)(o)(i)(s)(a)(u);break;default:throw new Error("Uncurrying to more than 8-arity is not supported: "+e)}return n.__CURRIED__=t,n}function it(e,t){if(null==t||1===t.length)return t;if(rt in t)return t.__CURRIED__;switch(e){case 2:return e=>n=>t(e,n);case 3:return e=>n=>r=>t(e,n,r);case 4:return e=>n=>r=>o=>t(e,n,r,o);case 5:return e=>n=>r=>o=>i=>t(e,n,r,o,i);case 6:return e=>n=>r=>o=>i=>s=>t(e,n,r,o,i,s);case 7:return e=>n=>r=>o=>i=>s=>a=>t(e,n,r,o,i,s,a);case 8:return e=>n=>r=>o=>i=>s=>a=>u=>t(e,n,r,o,i,s,a,u);default:throw new Error("Currying to more than 8-arity is not supported: "+e)}}function st(e,t){function n(e,t,r,o){const i=r[o];if(0!==i){const e=i[0],n=i[1];e>1&&(t=it(e,t)),n>1&&(t=ot(n,t))}const s=e(t);return o+1===r.length?s:e=>n(s,e,r,o+1)}return r=>n(e,r,t,0)}function at(e,t=0){if(null!=e&&"object"==typeof e){if("function"==typeof e.toString)return e.toString();if(Symbol.iterator in e)return function(e){let t=0,n="[";for(const r of e){if(0===t)n+=at(r);else{if(100===t){n+="; ...";break}n+="; "+at(r)}t++}return n+"]"}(e);{const n=Object.getPrototypeOf(e).constructor;return n===Object&&t<10?"{ "+Object.entries(e).map((([e,n])=>e+" = "+at(n,t+1))).join("\n ")+" }":n.name}}return String(e)}class ut{get name(){return this.cases()[this.tag]}toJSON(){return 0===this.fields.length?this.name:[this.name].concat(this.fields)}toString(){return function(e,t){if(0===t.length)return e;{let n="",r=!0;return 1===t.length?(n=at(t[0]),r=n.indexOf(" ")>=0):n=t.map((e=>at(e))).join(", "),e+(r?" (":" ")+n+(r?")":"")}}(this.name,this.fields)}GetHashCode(){const e=this.fields.map((e=>Ye(e)));return e.splice(0,0,qe(this.tag)),Ve(e)}Equals(e){return this===e||!!Re(this,e)&&this.tag===e.tag&&Xe(this.fields,e.fields)}CompareTo(e){return this===e?0:Re(this,e)?this.tag===e.tag?et(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}class ct{toJSON(){return function(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}(this)}toString(){return e=this,"{ "+Object.entries(e).map((([e,t])=>e+" = "+at(t))).join("\n ")+" }";var e}GetHashCode(){return function(e){const t=Object.values(e).map((e=>Ye(e)));return Ve(t)}(this)}Equals(e){return function(e,t){if(e===t)return!0;if(Re(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!Ze(e[n[r]],t[n[r]]))return!1;return!0}return!1}(this,e)}CompareTo(e){return function(e,t){if(e===t)return 0;if(Re(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=tt(e[n[r]],t[n[r]]);if(0!==o)return o}return 0}return-1}(this,e)}}class lt{constructor(e,t){"function"==typeof t?(this.getter=e,this.setter=t):(this.getter=()=>e,this.setter=t=>{e=t})}get contents(){return this.getter()}set contents(e){this.setter(e)}}class ft{constructor(e,t,n,r){this.declaringType=e,this.tag=t,this.name=n,this.fields=r}}class dt{constructor(e,t,n,r,o,i,s){this.fullname=e,this.generics=t,this.construct=n,this.parent=r,this.fields=o,this.cases=i,this.enumCases=s}toString(){return Et(this)}GetHashCode(){return pt(this)}Equals(e){return mt(this,e)}}function ht(e){return null!=e.generics?e.generics:[]}function pt(e){return Ve([$e(e.fullname),...ht(e).map(pt)])}function mt(e,t){return""===e.fullname?""===t.fullname&&Je(jt(e),jt(t),(([e,t],[n,r])=>e===n&&mt(t,r))):e.fullname===t.fullname&&Je(ht(e),ht(t),mt)}function gt(e,t,n,r){return new dt(e,t,n,r)}function wt(e,t,n,r){return new dt(e,t,n,void 0,r)}function yt(e,t,n,r){const o=new dt(e,t,n,void 0,void 0,(()=>{const e=n.prototype.cases();return r().map(((t,n)=>new ft(o,n,e[n],t)))}));return o}function _t(e){return new dt("Microsoft.FSharp.Core.FSharpOption`1",[e])}function vt(e){return new dt("Microsoft.FSharp.Collections.FSharpList`1",[e])}const bt=new dt("System.Object"),Ct=(new dt("Microsoft.FSharp.Core.Unit"),new dt("System.Char"),new dt("System.String")),St=(new dt("System.Boolean"),new dt("System.SByte"),new dt("System.Byte"),new dt("System.Int16"),new dt("System.UInt16"),new dt("System.Int32"),new dt("System.UInt32"),new dt("System.Single"),new dt("System.Double"));function xt(e){if(Array.isArray(e))return e[0];if(e instanceof ft)return e.name;{const t=e.fullname.lastIndexOf(".");return-1===t?e.fullname:e.fullname.substr(t+1)}}function Et(e){const t=null==e.generics||kt(e)?[]:e.generics;return t.length>0?e.fullname+"["+t.map((e=>Et(e))).join(",")+"]":e.fullname}function kt(e){return e.fullname.endsWith("[]")}function Mt(e){var t;return kt(e)?null===(t=e.generics)||void 0===t?void 0:t[0]:void 0}function It(e){return null!=e.generics&&e.generics.length>0}function Tt(e){return null!=e.enumCases&&e.enumCases.length>0}function Ot(e){return null==e.generics?e:new dt(e.fullname,e.generics.map((()=>bt)))}function Pt(e){var t;return null===(t=e.generics)||void 0===t?void 0:t[0]}function Nt(e){if(Tt(e)&&null!=e.enumCases)return e.enumCases.map((e=>e[1]));throw new Error(`${e.fullname} is not an enum type`)}function At(e,t){const n=parseInt(t,10);return function(e,t){if(null!=e.enumCases){if("string"==typeof t){for(const n of e.enumCases)if(n[0]===t)return n;throw new Error(`'${t}' was not found in ${e.fullname}`)}for(const n of e.enumCases)if(n[1]===t)return n;return["",t]}throw new Error(`${e.fullname} is not an enum type`)}(e,isNaN(n)?t:n)[1]}function Dt(e){if(null!=e.cases)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function jt(e){if(null!=e.fields)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Rt(e){if(Lt(e)&&null!=e.generics)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Ft(e){return e instanceof dt?null!=e.cases:e instanceof ut}function Ut(e){return e instanceof dt?null!=e.fields:e instanceof ct}function Lt(e){return e.fullname.startsWith("System.Tuple")&&!kt(e)}function Wt(e){return null==e.fields?[]:e.fields}function Gt(e,t){const n=(e.fields||[]).length;if(t.length!==n)throw new Error(`Expected an array of length ${n} but got ${t.length}`);return null!=e.declaringType.construct?new e.declaringType.construct(e.tag,...t):{}}new dt("System.Decimal");class zt{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return Ye(this.value)}Equals(e){return null!=e&&Ze(this.value,e instanceof zt?e.value:e)}CompareTo(e){return null==e?1:tt(this.value,e instanceof zt?e.value:e)}}function Ht(e){return null==e||e instanceof zt?new zt(e):e}function Bt(e){if(null==e)throw new Error("Option has no value");return e instanceof zt?e.value:e}function $t(e){return null==e?void 0:e}function qt(e){return null==e?[]:[Bt(e)]}function Vt(e,t){return null!=e?Bt(e):t}function Yt(e,t){return null!=t?Ht(e(Bt(t))):void 0}function Jt(e,t){return null!=t?e(Bt(t)):void 0}var Xt;function Zt(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 Qt(e,t,n,r,o){try{return o.contents=function(e,t,n,r,o){const i=function(e,t,n){const r=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(null!=r){const[,,e,o]=r;n=n||function(e,t){if(t&Xt.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}}(e,t);const i=function(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.")}}(n);if(!i.test(o))return function(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}(r,n)}return null}(e,t,void 0);if(null!=i){let e=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(e)){const[t,o]=Zt(!0,r);!n&&10!==i.radix&&e>=t&&e<=o&&(e=e<<32-r>>32-r);const[s,a]=Zt(n,r);if(e>=s&&e<=a)return e}}throw new Error("Input string was not in a correct format.")}(e,t,n,r),!0}catch(e){return!1}}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(Xt||(Xt={}));const Kt=Symbol("numeric");function en(e){return"number"==typeof e||(null==e?void 0:e[Kt])}function tn(e,t){return"number"==typeof e?e*t:e[Kt]().multiply(t)}function nn(e,t){return"number"==typeof e?e.toFixed(t):e[Kt]().toFixed(t)}function rn(e,t){return"number"==typeof e?e.toPrecision(t):e[Kt]().toPrecision(t)}function on(e,t){return"number"==typeof e?e.toExponential(t):e[Kt]().toExponential(t)}function sn(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[Kt]().toHex()}var an=null;try{an=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(u){}function un(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function cn(e){return!0===(e&&e.__isLong__)}un.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},un.prototype.Equals=function(e){return Rn(this,e)},un.prototype.CompareTo=function(e){return Wn(this,e)},un.prototype.toString=function(e){return Nn(this,e)},un.prototype.toJSON=function(){return Nn(this)},un.prototype[Kt]=function(){const e=this;return{multiply:t=>Bn(e,t),toPrecision:t=>String(e)+(0).toPrecision(t).substr(1),toExponential:t=>String(e)+(0).toExponential(t).substr(1),toFixed:t=>String(e)+(0).toFixed(t).substr(1),toHex:()=>{return Nn(e.unsigned?e:function(e,t,n){return n?function(e,t){return new un(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)}(e,t):function(e,t){return new un(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)}(e,t)}((t=e,n?function(e){var t=e.high,n=e.low;return[255&n,n>>>8&255,n>>>16&255,n>>>24,255&t,t>>>8&255,t>>>16&255,t>>>24]}(t):function(e){var t=e.high,n=e.low;return[t>>>24,t>>>16&255,t>>>8&255,255&t,n>>>24,n>>>16&255,n>>>8&255,255&n]}(t)),!0),16);var t,n}}},un.prototype.__isLong__,Object.defineProperty(un.prototype,"__isLong__",{value:!0});var ln={},fn={};function dn(e,t){var n,r,o;return t?(o=0<=(e>>>=0)&&e<256)&&(r=fn[e])?r:(n=pn(e,(0|e)<0?-1:0,!0),o&&(fn[e]=n),n):(o=-128<=(e|=0)&&e<128)&&(r=ln[e])?r:(n=pn(e,e<0?-1:0,!1),o&&(ln[e]=n),n)}function hn(e,t){if(isNaN(e))return t?Sn:Cn;if(t){if(e<0)return Sn;if(e>=_n)return In}else{if(e<=-vn)return Tn;if(e+1>=vn)return Mn}return e<0?Gn(hn(-e,t)):pn(e%yn|0,e/yn|0,t)}function pn(e,t,n){return new un(e,t,n)}var mn=Math.pow;function gn(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return Cn;if("number"==typeof t?(n=t,t=!1):t=!!t,(n=n||10)<2||36<n)throw RangeError("radix");var r=e.indexOf("-");if(r>0)throw Error("interior hyphen");if(0===r)return Gn(gn(e.substring(1),t,n));for(var o=hn(mn(n,8)),i=Cn,s=0;s<e.length;s+=8){var a=Math.min(8,e.length-s),u=parseInt(e.substring(s,s+a),n);i=zn(a<8?Bn(i,hn(mn(n,a))):i=Bn(i,o),hn(u))}return i.unsigned=t,i}function wn(e,t){return"number"==typeof e?hn(e,t):"string"==typeof e?gn(e,t):pn(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}var yn=4294967296,_n=yn*yn,vn=_n/2,bn=dn(1<<24),Cn=dn(0),Sn=dn(0,!0),xn=dn(1),En=dn(1,!0),kn=dn(-1),Mn=pn(-1,2147483647,!1),In=pn(-1,-1,!0),Tn=pn(0,-2147483648,!1);function On(e){return e.unsigned?e.low>>>0:e.low}function Pn(e){return e.unsigned?(e.high>>>0)*yn+(e.low>>>0):e.high*yn+(e.low>>>0)}function Nn(e,t){if((t=t||10)<2||36<t)throw RangeError("radix");if(An(e))return"0";if(Dn(e)){if(Rn(e,Tn)){var n=hn(t),r=$n(e,n),o=Hn(Bn(r,n),e);return Nn(r,t)+On(o).toString(t)}return"-"+Nn(Gn(e),t)}for(var i=hn(mn(t,6),e.unsigned),s=e,a="";;){var u=$n(s,i),c=(On(Hn(s,Bn(u,i)))>>>0).toString(t);if(An(s=u))return c+a;for(;c.length<6;)c="0"+c;a=""+c+a}}function An(e){return 0===e.high&&0===e.low}function Dn(e){return!e.unsigned&&e.high<0}function jn(e){return 1==(1&e.low)}function Rn(e,t){return cn(t)||(t=wn(t)),(e.unsigned===t.unsigned||e.high>>>31!=1||t.high>>>31!=1)&&e.high===t.high&&e.low===t.low}function Fn(e,t){return Wn(e,t)<0}function Un(e,t){return Wn(e,t)>0}function Ln(e,t){return Wn(e,t)>=0}function Wn(e,t){if(cn(t)||(t=wn(t)),Rn(e,t))return 0;var n=Dn(e),r=Dn(t);return n&&!r?-1:!n&&r?1:e.unsigned?t.high>>>0>e.high>>>0||t.high===e.high&&t.low>>>0>e.low>>>0?-1:1:Dn(Hn(e,t))?-1:1}function Gn(e){return!e.unsigned&&Rn(e,Tn)?Tn:zn(function(e){return pn(~e.low,~e.high,e.unsigned)}(e),xn)}function zn(e,t){cn(t)||(t=wn(t));var n=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=t.high>>>16,a=65535&t.high,u=t.low>>>16,c=0,l=0,f=0,d=0;return f+=(d+=i+(65535&t.low))>>>16,l+=(f+=o+u)>>>16,c+=(l+=r+a)>>>16,c+=n+s,pn((f&=65535)<<16|(d&=65535),(c&=65535)<<16|(l&=65535),e.unsigned)}function Hn(e,t){return cn(t)||(t=wn(t)),zn(e,Gn(t))}function Bn(e,t){if(An(e))return e.unsigned?Sn:Cn;if(cn(t)||(t=wn(t)),an)return pn(an.mul(e.low,e.high,t.low,t.high),an.get_high(),e.unsigned);if(An(t))return e.unsigned?Sn:Cn;if(Rn(e,Tn))return jn(t)?Tn:Cn;if(Rn(t,Tn))return jn(e)?Tn:Cn;if(Dn(e))return Dn(t)?Bn(Gn(e),Gn(t)):Gn(Bn(Gn(e),t));if(Dn(t))return Gn(Bn(e,Gn(t)));if(Fn(e,bn)&&Fn(t,bn))return hn(Pn(e)*Pn(t),e.unsigned);var n=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=t.high>>>16,a=65535&t.high,u=t.low>>>16,c=65535&t.low,l=0,f=0,d=0,h=0;return d+=(h+=i*c)>>>16,f+=(d+=o*c)>>>16,d&=65535,f+=(d+=i*u)>>>16,l+=(f+=r*c)>>>16,f&=65535,l+=(f+=o*u)>>>16,f&=65535,l+=(f+=i*a)>>>16,l+=n*c+r*u+o*a+i*s,pn((d&=65535)<<16|(h&=65535),(l&=65535)<<16|(f&=65535),e.unsigned)}function $n(e,t){if(cn(t)||(t=wn(t)),An(t))throw Error("division by zero");var n,r,o;if(an)return e.unsigned||-2147483648!==e.high||-1!==t.low||-1!==t.high?pn((e.unsigned?an.div_u:an.div_s)(e.low,e.high,t.low,t.high),an.get_high(),e.unsigned):e;if(An(e))return e.unsigned?Sn:Cn;if(e.unsigned){if(t.unsigned||(t=function(e){return e.unsigned?e:pn(e.low,e.high,!0)}(t)),Un(t,e))return Sn;if(Un(t,function(e,t){if(cn(t)&&(t=On(t)),0==(t&=63))return e;var n=e.high;return t<32?pn(e.low>>>t|n<<32-t,n>>>t,e.unsigned):pn(32===t?n:n>>>t-32,0,e.unsigned)}(e,1)))return En;o=Sn}else{if(Rn(e,Tn))return Rn(t,xn)||Rn(t,kn)?Tn:Rn(t,Tn)?xn:Rn(n=function(e,t){return cn(t)&&(t=On(t)),0==(t&=63)?e:t<32?pn(e.low<<t,e.high<<t|e.low>>>32-t,e.unsigned):pn(0,e.low<<t-32,e.unsigned)}($n(function(e,t){return cn(t)&&(t=On(t)),0==(t&=63)?e:t<32?pn(e.low>>>t|e.high<<32-t,e.high>>t,e.unsigned):pn(e.high>>t-32,e.high>=0?0:-1,e.unsigned)}(e,1),t),1),Cn)?Dn(t)?xn:kn:o=zn(n,$n(r=Hn(e,Bn(t,n)),t));if(Rn(t,Tn))return e.unsigned?Sn:Cn;if(Dn(e))return Dn(t)?$n(Gn(e),Gn(t)):Gn($n(Gn(e),t));if(Dn(t))return Gn($n(e,Gn(t)));o=Cn}for(r=e;Ln(r,t);){n=Math.max(1,Math.floor(Pn(r)/Pn(t)));for(var i=Math.ceil(Math.log(n)/Math.LN2),s=i<=48?1:mn(2,i-48),a=hn(n),u=Bn(a,t);Dn(u)||Un(u,r);)u=Bn(a=hn(n-=s,e.unsigned),t);An(a)&&(a=xn),o=zn(o,a),r=Hn(r,u)}return o}const qn=zn,Vn=Bn,Yn=$n,Jn=Gn,Xn=function(e,t){return cn(t)||(t=wn(t)),pn(e.low&t.low,e.high&t.high,e.unsigned)},Zn=Wn,Qn=pn,Kn=On,er=Pn;function tr(e,t,n){let r=e,o=0;switch(n){case 0:r=e<<24>>24,o=r;break;case 4:r=e<<24>>>24;break;case 1:r=e<<16>>16,o=r;break;case 5:r=e<<16>>>16;break;case 2:r=e>>0,o=r;break;case 6:r=e>>>0}return pn(r,o>>31,t)}const nr=/(?:Z|[+-](\d+):?([0-5]?\d)?)\s*$/;function rr(e){const t=e<0,n=(e=Math.abs(e))%36e5/6e4;return(t?"-":"+")+Ge(~~(e/36e5),2)+":"+Ge(n,2)}function or(e,t){const n=e.toISOString();return"first"===t?n.substring(0,n.indexOf("T")):n.substring(n.indexOf("T")+1,n.length-1)}function ir(e,t,n){return t.replace(/(\w)\1*/g,(t=>{let r=Number.NaN;switch(t.substring(0,1)){case"y":const o=n?e.getUTCFullYear():e.getFullYear();r=t.length<4?o%100:o;break;case"M":r=(n?e.getUTCMonth():e.getMonth())+1;break;case"d":r=n?e.getUTCDate():e.getDate();break;case"H":r=n?e.getUTCHours():e.getHours();break;case"h":const i=n?e.getUTCHours():e.getHours();r=i>12?i%12:i;break;case"m":r=n?e.getUTCMinutes():e.getMinutes();break;case"s":r=n?e.getUTCSeconds():e.getSeconds();break;case"f":r=n?e.getUTCMilliseconds():e.getMilliseconds()}return Number.isNaN(r)?t:r<10&&t.length>1?"0"+r:""+r}))}function sr(e,t,n){return null!=e.offset?function(e,t){var n,r,o;const i=new Date(e.getTime()+(null!==(n=e.offset)&&void 0!==n?n:0));if("string"!=typeof t)return i.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+rr(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==t.length)return ir(i,t,!0);switch(t){case"D":case"d":return or(i,"first");case"T":case"t":return or(i,"second");case"O":case"o":return function(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+rr(t)}(i,null!==(o=e.offset)&&void 0!==o?o:0);default:throw new Error("Unrecognized Date print format")}}(e,t):function(e,t){const n=1===e.kind;if("string"!=typeof t)return n?e.toUTCString():e.toLocaleString();if(1!==t.length)return ir(e,t,n);switch(t){case"D":case"d":return n?or(e,"first"):e.toLocaleDateString();case"T":case"t":return n?or(e,"second"):e.toLocaleTimeString();case"O":case"o":return function(e,t){if(t)return e.toISOString();{const t=null==e.kind||2===e.kind;return Ge(e.getFullYear(),4)+"-"+Ge(e.getMonth()+1,2)+"-"+Ge(e.getDate(),2)+"T"+Ge(e.getHours(),2)+":"+Ge(e.getMinutes(),2)+":"+Ge(e.getSeconds(),2)+"."+Ge(e.getMilliseconds(),3)+(t?rr(-6e4*e.getTimezoneOffset()):"")}}(e,n);default:throw new Error("Unrecognized Date print format")}}(e,t)}function ar(e,t){const n=new Date(e);return n.kind=0|(null==t?0:t),n}function ur(e){if(null===e)throw new Error("Value cannot be null when parsing DateTime");if(""===e.trim())throw new Error("An empty string is not recognized as a valid DateTime");let t=new Date(e);if(isNaN(t.getTime())){const n=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*([+-]\d+(?::\d+)?)?\s*$/.exec(e);if(null==n)throw new Error("The string is not a valid Date.");{let e,r=0;if(null!=n[2]){const e=n[2].split(":");r=3600*parseInt(e[0],10)+60*parseInt(e[1]||"0",10)+parseFloat(e[2]||"0"),null!=n[3]&&"PM"===n[3].toUpperCase()&&(r+=720)}if(null!=n[4]){if(null!=n[1])e=new Date(n[1]+" UTC");else{const t=new Date;e=new Date(t.getUTCFullYear()+"/"+(t.getUTCMonth()+1)+"/"+t.getUTCDate())}const t=n[4].substr(1).split(":");let o=60*parseInt(t[0],10)+parseInt(t[1]||"0",10);"+"===n[4][0]&&(o*=-1),r+=60*o}else if(null!=n[1])e=new Date(n[1]);else{const t=new Date;e=new Date(t.getFullYear()+"/"+(t.getMonth()+1)+"/"+t.getDate())}t=new Date(e.getTime()+1e3*r),t=new Date(t.getTime()+6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))}}return t}function cr(e,t){try{return t.contents=function(e,t=!1){const n=ur(e),r=nr.exec(e),o=null!=r?t&&"Z"===r[0]?1:2:0;return ar(n.getTime(),o)}(e),!0}catch(e){return!1}}function lr(){return ar(Date.now(),1)}function fr(){return function(e){return function(e,t,n,r=0,o=0,i=0,s=0,a){const u=1===a?Date.UTC(e,t-1,n,r,o,i,s):new Date(e,t-1,n,r,o,i,s).getTime();if(isNaN(u))throw new Error("The parameters describe an unrepresentable Date.");const c=ar(u,a);return e<=99&&c.setFullYear(e,t-1,n),c}(dr(e),function(e){return(1===e.kind?e.getUTCMonth():e.getMonth())+1}(e),function(e){return 1===e.kind?e.getUTCDate():e.getDate()}(e),0,0,0,0,e.kind)}(ar(Date.now(),2))}function dr(e){return 1===e.kind?e.getUTCFullYear():e.getFullYear()}function hr(e,t){return function(e,t){const n=ar(e.getTime()+t,e.kind);if(2===e.kind){const t=e.getTimezoneOffset(),r=n.getTimezoneOffset();return t!==r?ar(n.getTime()+6e4*(r-t),e.kind):n}return n}(e,864e5*t)}const pr=Qe;function mr(e,t=0){if(0!=(-276&t))throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Singleline and ECMAScript");let n="g";return n+=1&t?"i":"",n+=2&t?"m":"",n+=16&t?"s":"",new RegExp(e,n)}function gr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function wr(e,t,n=0){let r;if(r=e instanceof RegExp?(r=e,e=t,r.lastIndex=n,r):r=mr(t,n),!r.global)throw new Error("Non-global RegExp");let o=r.exec(e);const i=[];for(;null!==o;)i.push(o),o=r.exec(e);return i}const yr=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,_r=/(?:(^|[^%])%([0+\- ]*)(\d+)?(?:\.(\d+))?(\w))?%P\(\)/g,vr=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function br(e,t){return function(e,t){return"number"==typeof e?e<t?-1:e>t?1:0:e.CompareTo(t)}(e,t)<0}function Cr(e){return{input:e,cont:(t=e,e=>{yr.lastIndex=0;const n=[],r=[];let o=0,i=yr.exec(t);for(;i;){const e=i.index+(i[1]||"").length;n.push(t.substring(o,e).replace(/%%/g,"%")),r.push(i),o=yr.lastIndex,yr.lastIndex-=1,i=yr.exec(t)}return 0===n.length?e(t.replace(/%%/g,"%")):(n.push(t.substring(o).replace(/%%/g,"%")),Ir(e,n,r))})};var t}function Sr(e,t){let n=0,r=0,o="";_r.lastIndex=0;let i=_r.exec(e);for(;i;){const s=i.index+(i[1]||"").length;o+=e.substring(r,s).replace(/%%/g,"%");const[,,a,u,c,l]=i;o+=Mr(t[n++],a,u,c,l),r=_r.lastIndex,_r.lastIndex-=1,i=_r.exec(e)}return o+=e.substring(r).replace(/%%/g,"%"),o}function xr(e,t){return"string"==typeof t?e(t):t.cont(e)}function Er(e){return xr((e=>e),e)}function kr(e){return xr((e=>{throw new Error(e)}),e)}function Mr(e,t,n,r,o){let i="";if(t=t||"",o=o||"",en(e))switch("x"!==o.toLowerCase()&&(br(e,0)?(e=tn(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=null==r?null:parseInt(r,10),o){case"f":case"F":e=nn(e,r=null!=r?r:6);break;case"g":case"G":e=null!=r?rn(e,r):rn(e);break;case"e":case"E":e=null!=r?on(e,r):on(e);break;case"x":e=sn(e);break;case"X":e=sn(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?sr(e):at(e);if(n="number"==typeof n?n:parseInt(n,10),isNaN(n))e=i+e;else{const r=t.indexOf("0")>=0,o=t.indexOf("-")>=0,s=o||!r?" ":"0";e="0"===s?i+(e=Or(e,n-i.length,s,o)):Or(i+e,n,s,o)}return e}function Ir(e,t,n,r="",o=-1){return(...i)=>{let s=r;const a=t.slice(),u=n.slice();for(const e of i){const[,,t,n,r,i]=u[0];let c=n;if(o>=0)c=o,o=-1;else if("*"===c){if(e<0)throw new Error("Non-negative number required");o=e;continue}s+=a[0],s+=Mr(e,t,c,r,i),a.splice(0,1),u.splice(0,1)}return 0===u.length?(s+=a[0],e(s)):Ir(e,a,u,s,o)}}function Tr(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Or(e,t,n,r){n=n||" ",t-=e.length;for(let o=0;o<t;o++)e=r?e+n:n+e;return e}function Pr(e,t,n){if(t+(n||0)>e.length)throw new Error("Invalid startIndex and/or length");return null!=n?e.substr(t,n):e.substr(t)}function Nr(){return e=(e,t)=>tt(e,t),{Compare:(t,n)=>e(t,n)};var e}function Ar(e,t){return"function"==typeof e?new e(t):new Array(t)}function Dr(e,t,n,r){const o=0|t;return e.fill(r,o,o+n)}function jr(e,t,n){const r=0|t.length,o=Ar(n,r);for(let n=0;n<=r-1;n++)o[n]=e(t[n]);return o}function Rr(e,t,n){if(e<0)throw new Error("The input must be non-negative\\nParameter name: count");const r=Ar(n,e);for(let n=0;n<=e-1;n++)r[n]=t(n);return r}function Fr(e,t,n){return n.reduce(((t,n)=>e(t,n)),t)}function Ur(e,t,n){return 0===function(e,t,n){if(null==t)return null==n?0:-1;if(null==n)return 1;{let e=0,i=0;const s=0|t.length,a=0|n.length;if(s>a)return 1;if(s<a)return-1;for(;e<s&&0===i;)i=0|(r=t[e],o=n[e],tt(r,o)),e=e+1|0;return 0|i}var r,o}(0,t,n)}function Lr(e,t,n,r){return function(e,t,n,r){let o=r;t.length!==n.length&&function(){throw new Error("Arrays had different lengths")}();const i=0|t.length;for(let r=1;r<=i;r++)o=e(0,t[i-r],n[i-r],o);return o}(((t,n,r,o)=>e(n,r,o)),t,n,r)}class Wr extends ct{constructor(e,t){super(),this.head=e,this.tail=t}toString(){return"["+Tr("; ",this)+"]"}Equals(e){return this===e||((e,t)=>{e:for(;;){const n=e,r=t,o=[n.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const i=o[0],s=o[1];if(Ze(n.head,r.head)){e=i,t=s;continue e}return!1}return!1}return null==o[1]}})(this,e)}GetHashCode(){return 0|((e,t,n)=>{for(;;){const r=e,o=t,i=n,s=i.tail;if(null==s)return 0|o;{const a=s;if(r>18)return 0|o;e=r+1,t=(o<<1)+Ye(i.head)+631*r,n=a}}})(0,0,this)}toJSON(e){return Array.from(this)}CompareTo(e){return 0|((e,t)=>{e:for(;;){const n=e,r=t,o=[n.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const i=o[0],s=o[1],a=0|tt(n.head,r.head);if(0===a){e=i,t=s;continue e}return 0|a}return 1}return null!=o[1]?-1:0}})(this,e)}GetEnumerator(){return new Gr(this)}[Symbol.iterator](){return Le(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Ue(this)}}class Gr{constructor(e){this.xs=e,this.it=this.xs,this.current=null}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const e=this,t=e.it.tail;if(null!=t){const n=t;return e.current=e.it.head,e.it=n,!0}return!1}"System.Collections.IEnumerator.Reset"(){const e=this;e.it=e.xs,e.current=null}Dispose(){}}function zr(){return new Wr(null,void 0)}function Hr(e,t){return new Wr(e,t)}function Br(e){return null==e.tail}function $r(e){return 0|((e,t)=>{for(;;){const n=e,r=t.tail;if(null==r)return 0|n;e=n+1,t=r}})(0,e)}function qr(e){if(null!=e.tail)return e.head;throw new Error("List was empty\\nParameter name: list")}function Vr(e){const t=e.tail;if(null!=t)return t;throw new Error("List was empty\\nParameter name: list")}function Yr(){return zr()}function Jr(e,t){return Hr(e,t)}function Xr(e){return Hr(e,zr())}function Zr(e){return Br(e)}function Qr(e){return $r(e)}function Kr(e){return qr(e)}function eo(e){return Vr(e)}function to(e){const t=0|$r(e),n=Dr(new Array(t),0,t,null);return((e,t)=>{for(;;){const r=e,o=t;if(Br(o))break;n[r]=qr(o),e=r+1,t=Vr(o)}})(0,e),n}function no(e,t,n){let r=t,o=n;for(;!Br(o);)r=e(r,qr(o)),o=Vr(o);return r}function ro(e){return no(((e,t)=>Hr(t,e)),zr(),e)}function oo(e,t){no(((t,n)=>{e(n)}),void 0,t)}function io(e,t){let n=t;for(let t=e.length-1;t>=0;t--)n=Hr(e[t],n);return n}function so(e){return io(e,zr())}function ao(e,t){return no(((e,t)=>Hr(t,e)),t,ro(e))}function uo(e,t){let n,r;const o=zr();let i=o,s=t;for(;!Br(s);){let t=e(qr(s));for(;!Br(t);)n=i,r=new Wr(qr(t),void 0),n.tail=r,i=r,t=Vr(t);s=Vr(s)}const a=i,u=zr();return a.tail=u,Vr(o)}function co(e,t){const n=zr(),r=no(((t,n)=>{const r=new Wr(e(n),void 0);return t.tail=r,r}),n,t),o=zr();return r.tail=o,Vr(n)}function lo(e,t){return function(e,t){return(t=>{e:for(;;){const n=t;if(Br(n))return;{const r=e(qr(n));if(null==r){t=Vr(n);continue e}return r}}})(t)}((t=>e(t)?Ht(t):void 0),t)}function fo(e,t){const n=to(t);return n.sort(e),so(n)}const ho="The input sequence has an insufficient number of elements.";function po(){throw new Error("Enumeration has not started. Call MoveNext.")}function mo(){throw new Error("Enumeration already finished.")}class go{constructor(e){this.f=e}toString(){let e=0,t="seq [";const n=Ue(this);try{for(;e<4&&n["System.Collections.IEnumerator.MoveNext"]();)e>0&&(t+="; "),t+=at(n["System.Collections.Generic.IEnumerator`1.get_Current"]()),e=e+1|0;return 4===e&&(t+="; ..."),t+"]"}finally{n.Dispose()}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Le(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class wo{constructor(e,t,n){this.current=e,this.next=t,this.dispose=n}"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"(){!function(){throw new Error("Reset is not supported on this enumerator.")}()}Dispose(){this.dispose()}}function yo(e,t,n){return new wo(e,t,n)}function _o(e,t,n){let r,o=!1,i=Ht(e());const s=()=>{if(null!=i){const e=Bt(i);try{n(e)}finally{i=void 0}}},a=()=>{try{s()}finally{r=void 0}};return yo((()=>(o||po(),null!=r?Bt(r):mo())),(()=>{if(o||(o=!0),null!=i){const e=Bt(i);let n;try{n=t(e)}catch(e){throw a(),e}return null!=n?(r=n,!0):(a(),!1)}return!1}),s)}function vo(e){return function(e){return new go(e)}(e)}function bo(e){return t="source",null==e&&function(e){throw new Error(e)}(t),Ue(e);var t}function Co(e){return vo((()=>Ue(e())))}function So(e){return vo((()=>function(e){let t,n,r,o=!1,i=!1;const s=()=>{if(i=!0,null!=n){const e=n;try{e.Dispose()}finally{n=void 0}}if(null!=t){const e=t;try{e.Dispose()}finally{t=void 0}}};return yo((()=>(o?i&&mo():po(),null!=r?Bt(r):mo())),(()=>{let a;if(o||(o=!0),i)return!1;{let o;for(;null==o;){const i=[t,n];if(null!=i[0])if(null!=i[1]){const e=i[1];if(e["System.Collections.IEnumerator.MoveNext"]())r=Ht(e["System.Collections.Generic.IEnumerator`1.get_Current"]()),o=!0;else try{e.Dispose()}finally{n=void 0}}else{const e=i[0];e["System.Collections.IEnumerator.MoveNext"]()?(a=e["System.Collections.Generic.IEnumerator`1.get_Current"](),n=Ue(a)):(s(),o=!1)}else t=Ue(e)}return Bt(o)}}),(()=>{i||s()}))}(e)))}function xo(e){return Co((()=>function(e,t){const n=Ar(void 0,1);return n[0]=e,n}(e)))}function Eo(e){return je(e)?so(e):e instanceof Wr?e:function(e){let t,n;if(je(e))return so(e);if(e instanceof Wr)return e;{const r=zr();let o=r;const i=Ue(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const e=i["System.Collections.Generic.IEnumerator`1.get_Current"]();t=o,n=new Wr(e,void 0),t.tail=n,o=n}}finally{i.Dispose()}const s=o,a=zr();return s.tail=a,Vr(r)}}(e)}function ko(e,t,n){return vo((()=>_o(e,t,n)))}function Mo(e,t,n){return vo((()=>{let r=-1;return _o(e,(e=>(r=r+1|0,t(r,e))),n)}))}function Io(e,t){return So([e,t])}function To(e,t,n){const r=bo(t);try{let t=!1;for(;!t&&r["System.Collections.IEnumerator.MoveNext"]();)t=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return t}finally{r.Dispose()}}function Oo(e,t,n){const r=bo(n);try{let n=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)n=e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return n}finally{r.Dispose()}}function Po(e,t){Oo(((t,n)=>{e(n)}),void 0,t)}function No(e,t){return ko((()=>bo(t)),(t=>t["System.Collections.IEnumerator.MoveNext"]()?Ht(e(t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{e.Dispose()}))}function Ao(e,t){return vo((()=>{const n=bo(t);try{for(let t=1;t<=e;t++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(ho+"\\nParameter name: source");return function(e,t){return yo((()=>t["System.Collections.Generic.IEnumerator`1.get_Current"]()),(()=>t["System.Collections.IEnumerator.MoveNext"]()),(()=>{try{t.Dispose()}finally{e()}}))}((()=>{}),n)}catch(e){throw n.Dispose(),e}}))}function Do(e,t){return Co((()=>So(No(e,t))))}const jo=De,Ro=e=>{X((()=>{const t=e();return()=>{t.Dispose()}}))},Fo=(e,t)=>{X((()=>{const t=e();return()=>{t.Dispose()}}),t)};function Uo(e){return{Dispose(){e()}}}function Lo(e){Ro(e)}function Wo(e,t){Fo(e,t)}function Go(e){Ho(e,[])}function zo(e){Wo(e,[])}function Ho(e,t){Fo((t=>(e(),Uo((()=>{})))),t)}function Bo(e){return jo.useRef(e)}function $o(e,t){return jo.useMemo(e,Vt(t,[]))}function qo(e){const t=Bo(e),n=(r=e=>t.current(e),o=[],jo.useCallback(r,Vt(o,[])));var r,o,i,s;return i=()=>{t.current=e},s=e=>(i(),Uo((()=>{}))),Z((()=>{const e=s();return()=>{e.Dispose()}})),n}class Vo extends ut{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Ok","Error"]}}function Yo(e,t){return 0===t.tag?new Vo(0,e(t.fields[0])):new Vo(1,t.fields[0])}class Jo extends ut{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Choice1Of2","Choice2Of2"]}}class Xo extends ut{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Started","Finished"]}}class Zo extends ut{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AuthCode"]}}class Qo extends ct{constructor(e,t,n,r,o,i){super(),this.id_token=e,this.access_token=t,this.expires_in=n,this.refresh_token=r,this.scope=o,this.token_type=i}}function Ko(){return wt("Workflows.Progress.UI.Auth.Types.Credentials",[],Qo,(()=>[["id_token",Ct],["access_token",Ct],["expires_in",St],["refresh_token",_t(Ct)],["scope",Ct],["token_type",Ct]]))}class ei extends ut{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SignIn"]}}const ti=(()=>{try{"undefined"!=typeof window&&"function"==typeof window.addEventListener&&(window.addEventListener("testPassiveEventSupport",(e=>{}),{passive:!0}),window.removeEventListener("testPassiveEventSupport",(e=>{})))}catch(e){}return!1})();function ni(e){return Yt((e=>e.passive&&!ti?{capture:e.capture,once:e.once,passive:!1}:e),e)}function ri(e){return Jt((e=>e.capture?{capture:!0}:void 0),e)}const oi=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,ii=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,si=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function ai(e,t){try{return t.contents=function(e){function t(e){return e.replace(ii,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(oi.test(n))return function(e,...t){if(0===t.length)return e.trim();const n="["+gr(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}(n,"{","}","(",")");if(ii.test(n))return t(n);if(si.test(n))return t(n.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}(e),!0}catch(e){return!1}}var ui={GetHashCode(){return Ve([this.s,this.e].concat(this.c))},Equals(e){return!this.cmp(e)},CompareTo(e){return this.cmp(e)},[Kt](){const e=this;return{multiply:t=>e.mul(t),toPrecision:t=>e.toPrecision(t),toExponential:t=>e.toExponential(t),toFixed:t=>e.toFixed(t),toHex:()=>(Number(e)>>>0).toString(16)}}},ci=1e6,li="[big.js] ",fi=li+"Invalid ",di=fi+"decimal places",hi=li+"Division by zero",pi=void 0,mi=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function gi(e,t){var n,r,o;if(!mi.test(t))throw Error(fi+"number");for(e.s="-"==t.charAt(0)?(t=t.slice(1),-1):1,(n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),o=t.length,r=0;r<n&&r<o&&"0"==t.charAt(r);)++r;if(r==o)e.c=[e.e=0];else for(e.e=n-r-1,e.c=[],n=0;r<o;)e.c[n++]=+t.charAt(r++);return wi(e,_i.DP+1,_i.RM)}function wi(e,t,n,r){var o=e.c;if(n===pi&&(n=_i.RM),0!==n&&1!==n&&2!==n&&3!==n)throw Error("[big.js] Invalid rounding mode");if(t<1)r=3===n&&(r||!!o[0])||0===t&&(1===n&&o[0]>=5||2===n&&(o[0]>5||5===o[0]&&(r||o[1]!==pi))),o.length=1,r?(e.e=e.e-t+1,o[0]=1):o[0]=e.e=0;else if(t<o.length){const i=o.findIndex(((e,n)=>n>=t&&e>0))<0;if(r=1===n&&o[t]>=5||2===n&&(o[t]>5||5===o[t]&&(r||o[t+1]!==pi||1&o[t-1]))||3===n&&(r||!i),o.length=t--,r)for(;++o[t]>9;)o[t]=0,t--||(++e.e,o.unshift(1));for(t=o.length;!o[--t];)o.pop()}return e}function yi(e,t,n){var r=e.e,o=e.c.join(""),i=o.length;if(t)o=o.charAt(0)+(i>1?"."+o.slice(1):"")+(r<0?"e":"e+")+r;else if(r<0){for(;++r;)o="0"+o;o="0."+o}else if(r>0)if(++r>i)for(r-=i;r--;)o+="0";else r<i&&(o=o.slice(0,r)+"."+o.slice(r));else i>1&&(o=o.charAt(0)+"."+o.slice(1));return e.s<0&&n?"-"+o:o}ui.abs=function(){var e=new this.constructor(this);return e.s=1,e},ui.cmp=function(e){var t,n=this.constructor,r=new n(this),o=(e=new n(e),r.c),i=e.c,s=r.s,a=e.s,u=r.e,c=e.e;if(!o[0]||!i[0])return o[0]?s:i[0]?-a:0;if(s!=a)return s;if(t=s<0,u!=c)return u>c^t?1:-1;for(a=Math.max(o.length,i.length),s=0;s<a;s++)if((u=s<o.length?o[s]:0)!=(c=s<i.length?i[s]:0))return u>c^t?1:-1;return 0},ui.div=function(e){var t=this.constructor,n=new t(this),r=(e=new t(e),n.c),o=e.c,i=n.s==e.s?1:-1,s=t.DP;if(s!==~~s||s<0||s>ci)throw Error(di);if(!o[0])throw Error(hi);if(!r[0])return e.s=i,e.c=[e.e=0],e;var a,u,c,l,f,d=o.slice(),h=a=o.length,p=r.length,m=r.slice(0,a),g=m.length,w=e,y=w.c=[],_=0,v=s+(w.e=n.e-e.e)+1;for(w.s=i,i=v<0?0:v,d.unshift(0);g++<a;)m.push(0);do{for(c=0;c<10;c++){if(a!=(g=m.length))l=a>g?1:-1;else for(f=-1,l=0;++f<a;)if(o[f]!=m[f]){l=o[f]>m[f]?1:-1;break}if(!(l<0))break;for(u=g==a?o:d;g;){if(m[--g]<u[g]){for(f=g;f&&!m[--f];)m[f]=9;--m[f],m[g]+=10}m[g]-=u[g]}for(;!m[0];)m.shift()}y[_++]=l?c:++c,m[0]&&l?m[g]=r[h]||0:m=[r[h]]}while((h++<p||m[0]!==pi)&&i--);return y[0]||1==_||(y.shift(),w.e--,v--),_>v&&wi(w,v,t.RM,m[0]!==pi),w},ui.eq=function(e){return 0===this.cmp(e)},ui.gt=function(e){return this.cmp(e)>0},ui.gte=function(e){return this.cmp(e)>-1},ui.lt=function(e){return this.cmp(e)<0},ui.lte=function(e){return this.cmp(e)<1},ui.minus=ui.sub=function(e){var t,n,r,o,i=this.constructor,s=new i(this),a=(e=new i(e),s.s),u=e.s;if(a!=u)return e.s=-u,s.plus(e);var c=s.c.slice(),l=s.e,f=e.c,d=e.e;if(!c[0]||!f[0])return f[0]?e.s=-u:c[0]?e=new i(s):e.s=1,e;if(a=l-d){for((o=a<0)?(a=-a,r=c):(d=l,r=f),r.reverse(),u=a;u--;)r.push(0);r.reverse()}else for(n=((o=c.length<f.length)?c:f).length,a=u=0;u<n;u++)if(c[u]!=f[u]){o=c[u]<f[u];break}if(o&&(r=c,c=f,f=r,e.s=-e.s),(u=(n=f.length)-(t=c.length))>0)for(;u--;)c[t++]=0;for(u=t;n>a;){if(c[--n]<f[n]){for(t=n;t&&!c[--t];)c[t]=9;--c[t],c[n]+=10}c[n]-=f[n]}for(;0===c[--u];)c.pop();for(;0===c[0];)c.shift(),--d;return c[0]||(e.s=1,c=[d=0]),e.c=c,e.e=d,e},ui.mod=function(e){var t,n=this.constructor,r=new n(this),o=(e=new n(e),r.s),i=e.s;if(!e.c[0])throw Error(hi);return r.s=e.s=1,t=1==e.cmp(r),r.s=o,e.s=i,t?new n(r):(o=n.DP,i=n.RM,n.DP=n.RM=0,r=r.div(e),n.DP=o,n.RM=i,this.minus(r.times(e)))},ui.plus=ui.add=function(e){var t,n,r,o=this.constructor,i=new o(this);if(e=new o(e),i.s!=e.s)return e.s=-e.s,i.minus(e);var s=i.e,a=i.c,u=e.e,c=e.c;if(!a[0]||!c[0])return c[0]||(a[0]?e=new o(i):e.s=i.s),e;if(a=a.slice(),t=s-u){for(t>0?(u=s,r=c):(t=-t,r=a),r.reverse();t--;)r.push(0);r.reverse()}for(a.length-c.length<0&&(r=c,c=a,a=r),t=c.length,n=0;t;a[t]%=10)n=(a[--t]=a[t]+c[t]+n)/10|0;for(n&&(a.unshift(n),++u),t=a.length;0===a[--t];)a.pop();return e.c=a,e.e=u,e},ui.pow=function(e){var t=this.constructor,n=new t(this),r=new t("1"),o=new t("1"),i=e<0;if(e!==~~e||e<-1e6||e>1e6)throw Error(fi+"exponent");for(i&&(e=-e);1&e&&(r=r.times(n)),e>>=1;)n=n.times(n);return i?o.div(r):r},ui.prec=function(e,t){if(e!==~~e||e<1||e>ci)throw Error(fi+"precision");return wi(new this.constructor(this),e,t)},ui.round=function(e,t){if(e===pi)e=0;else if(e!==~~e||e<-ci||e>ci)throw Error(di);return wi(new this.constructor(this),e+this.e+1,t)},ui.sqrt=function(){var e,t,n,r=this.constructor,o=new r(this),i=o.s,s=o.e,a=new r("0.5");if(!o.c[0])return new r(o);if(i<0)throw Error(li+"No square root");0===(i=Math.sqrt(o+""))||i===1/0?((t=o.c.join("")).length+s&1||(t+="0"),s=((s+1)/2|0)-(s<0||1&s),e=new r(((i=Math.sqrt(t))==1/0?"5e":(i=i.toExponential()).slice(0,i.indexOf("e")+1))+s)):e=new r(i+""),s=e.e+(r.DP+=4);do{n=e,e=a.times(n.plus(o.div(n)))}while(n.c.slice(0,s).join("")!==e.c.slice(0,s).join(""));return wi(e,(r.DP-=4)+e.e+1,r.RM)},ui.times=ui.mul=function(e){var t,n=this.constructor,r=new n(this),o=(e=new n(e),r.c),i=e.c,s=o.length,a=i.length,u=r.e,c=e.e;if(e.s=r.s==e.s?1:-1,!o[0]||!i[0])return e.c=[e.e=0],e;for(e.e=u+c,s<a&&(t=o,o=i,i=t,c=s,s=a,a=c),t=new Array(c=s+a);c--;)t[c]=0;for(u=a;u--;){for(a=0,c=s+u;c>u;)a=t[c]+i[u]*o[c-u-1]+a,t[c--]=a%10,a=a/10|0;t[c]=a}for(a?++e.e:t.shift(),u=t.length;!t[--u];)t.pop();return e.c=t,e},ui.toExponential=function(e,t){var n=this,r=n.c[0];if(e!==pi){if(e!==~~e||e<0||e>ci)throw Error(di);for(n=wi(new n.constructor(n),++e,t);n.c.length<e;)n.c.push(0)}return yi(n,!0,!!r)},ui.toFixed=function(e,t){var n=this,r=n.c[0];if(e!==pi){if(e!==~~e||e<0||e>ci)throw Error(di);for(e=e+(n=wi(new n.constructor(n),e+n.e+1,t)).e+1;n.c.length<e;)n.c.push(0)}return yi(n,!1,!!r)},ui.toJSON=ui.toString=function(){var e=this,t=e.constructor;return yi(e,e.e<=t.NE||e.e>=t.PE,!!e.c[0])},ui.toNumber=function(){var e=Number(yi(this,!0,!0));if(!0===this.constructor.strict&&!this.eq(e.toString()))throw Error(li+"Imprecise conversion");return e},ui.toPrecision=function(e,t){var n=this,r=n.constructor,o=n.c[0];if(e!==pi){if(e!==~~e||e<1||e>ci)throw Error(fi+"precision");for(n=wi(new r(n),e,t);n.c.length<e;)n.c.push(0)}return yi(n,e<=n.e||n.e<=r.NE||n.e>=r.PE,!!o)},ui.valueOf=function(){var e=this,t=e.constructor;if(!0===t.strict)throw Error(li+"valueOf disallowed");return yi(e,e.e<=t.NE||e.e>=t.PE,!0)};var _i=function e(){function t(n){var r=this;if(!(r instanceof t))return n===pi?e():new t(n);if(n instanceof t)r.s=n.s,r.e=n.e,r.c=n.c.slice(),function(e){if(e.c.length>1&&!e.c[0]){let t=e.c.findIndex((e=>e));e.c=e.c.slice(t),e.e=e.e-t}}(r);else{if("string"!=typeof n){if(!0===t.strict)throw TypeError(fi+"number");n=0===n&&1/n<0?"-0":String(n)}gi(r,n)}r.constructor=t}return t.prototype=ui,t.DP=28,t.RM=1,t.NE=-29,t.PE=29,t.strict=!1,t}();const vi=_i;function bi(e,t){return 0===t.indexOf(e)?t:void 0}function Ci(e,t){return function(e,t){const n=e.lastIndexOf(t);return n>=0&&n===e.length-t.length}(t,e)?t:void 0}function Si(e,t){return function(e){return 1===e?e=>{let t,n,r,o,i,s;return t=bi("/",e),null!=t?(n=t,"#"+n):(r=bi("#/",e),null!=r?(o=r,o):(i=bi("#",e),null!=i?(s=i,"#/"+Pr(s,1,s.length-1)):"#/"+e))}:e=>{let t,n;return t=bi("/",e),null!=t?(n=t,n):"/"+e}}(t)(Tr("/",co((e=>e.indexOf("?")>=0||0===e.indexOf("#")||0===e.indexOf("/")?e:encodeURIComponent(e)),e)))}function xi(e,t){return uo((e=>{if("string"!=typeof(t=e)||/^\s*$/.test(t))return Yr();{const t=function(e,...t){return 0===t.length?e.trimEnd():e.replace(new RegExp("["+gr(t.join(""))+"]+$"),"")}(e,"#");if("?"===t)return Yr();if(null!=bi("?",t))return Xr(t);{const e=t.split("?");if(Ur(0,e,null)||1!==e.length){if(Ur(0,e,null)||2!==e.length)return Yr();if(""===e[1]){const t=e[0];return Xr(decodeURIComponent(t))}{const t=e[0],n=e[1];return so([decodeURIComponent(t),"?"+n])}}{const t=e[0];return Xr(decodeURIComponent(t))}}}var t}),so((null!=bi("#",e)?Pr(e,1,e.length-1):1!==t||null==Ci("#",e)&&null==Ci("#/",e)?e:"").split("/")))}new vi(0),new vi(1),new vi(-1),new vi("79228162514264337593543950335"),new vi("-79228162514264337593543950335");const Ei=function(e,t,n,r){const o=jo.memo(e,ot(2,Vt(it(2,n),null)));return Po((t=>{e.displayName=t}),qt(t)),e=>jo.createElement(o,function(e,t){if(null==e)return t;{const n=e;return t.key=n(t),t}}(r,e))}((e=>{const t=qo((t=>{const n=Vt(e.onUrlChanged,(e=>{}));!function(e,t,n){t(xi(2===e?window.location.pathname+window.location.search:window.location.hash,e))}(Vt(e.hashMode,1),n)}));if(window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0){const e="hashchange",n=e=>{t(e)},r=void 0,o=$o((()=>ni(r)),[r]),i=$o((()=>ri(r)),[r]),s=$o((()=>e=>{n(e)}),[n]);Lo(qo((()=>(null==o?window.addEventListener(e,s):window.addEventListener(e,s,o),Uo((()=>{null==i?window.removeEventListener(e,s):window.removeEventListener(e,s,i)}))))))}else{const e="popstate",n=t,r=void 0,o=$o((()=>ni(r)),[r]),i=$o((()=>ri(r)),[r]),s=$o((()=>e=>{n(e)}),[n]);Lo(qo((()=>(null==o?window.addEventListener(e,s):window.addEventListener(e,s,o),Uo((()=>{null==i?window.removeEventListener(e,s):window.removeEventListener(e,s,i)}))))))}const n="CUSTOM_NAVIGATION_EVENT",r=t,o=void 0,i=$o((()=>ni(o)),[o]),s=$o((()=>ri(o)),[o]),a=$o((()=>e=>{r(e)}),[r]);Lo(qo((()=>(null==i?window.addEventListener(n,a):window.addEventListener(n,a,i),Uo((()=>{null==s?window.removeEventListener(n,a):window.removeEventListener(n,a,s)}))))));const u=e.application;return null==u?null:u}),void 0,void 0,void 0);class ki{constructor(e=!1){this._id=0,this._cancelled=e,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,e]of this._listeners)e()}}addListener(e){const t=this._id;return this._listeners.set(this._id++,e),t}removeListener(e){return this._listeners.delete(e)}register(e,t){const n=this,r=this.addListener(null==t?e:()=>e(t));return{Dispose(){n.removeListener(r)}}}}class Mi extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Mi.prototype)}}class Ii{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>Ii.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function Ti(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new Mi);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack((()=>{try{e(t)}catch(e){t.onError(e)}}));else try{e(t)}catch(e){t.onError(e)}}}const Oi=new class{Bind(e,t){return function(e,t){return Ti((n=>{e({onSuccess:e=>{try{t(e)(n)}catch(e){n.onError(e)}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})}))}(e,t)}Combine(e,t){return this.Bind(e,(()=>t))}Delay(e){return Ti((t=>e()(t)))}For(e,t){const n=e[Symbol.iterator]();let r=n.next();return this.While((()=>!r.done),this.Delay((()=>{const e=t(r.value);return r=n.next(),e})))}Return(e){return function(e){return Ti((t=>t.onSuccess(e)))}(e)}ReturnFrom(e){return e}TryFinally(e,t){return Ti((n=>{e({onSuccess:e=>{t(),n.onSuccess(e)},onError:e=>{t(),n.onError(e)},onCancel:e=>{t(),n.onCancel(e)},cancelToken:n.cancelToken,trampoline:n.trampoline})}))}TryWith(e,t){return Ti((n=>{e({onSuccess:n.onSuccess,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline,onError:e=>{try{t(e)(n)}catch(e){n.onError(e)}}})}))}Using(e,t){return this.TryFinally(t(e),(()=>e.Dispose()))}While(e,t){return e()?this.Bind(t,(()=>this.While(e,t))):this.Return(void 0)}Zero(){return Ti((e=>e.onSuccess(void 0)))}};function Pi(e){}function Ni(e){const t=new ki("boolean"==typeof e&&e);return"number"==typeof e&&setTimeout((()=>{t.cancel()}),e),t}function Ai(e){e.cancel()}function Di(e){return null!=e&&e.isCancelled}const ji=new ki;function Ri(e,t){return function(e,t){return function(e,t,n,r,o){"function"!=typeof t&&(o=t,t=void 0);const i=new Ii;e({onSuccess:t||Pi,onError:n||Pi,onCancel:r||Pi,cancelToken:o||ji,trampoline:i})}(e,t)}(e,t)}class Fi{constructor(e,t){this.k=e,this.v=t}}function Ui(e,t){return new Fi(e,t)}function Li(e){return e.k}function Wi(e){return e.v}class Gi extends Fi{constructor(e,t,n,r,o){super(e,t),this.left=n,this.right=r,this.h=0|o}}function zi(e,t,n,r,o){return new Gi(e,t,n,r,o)}function Hi(e){return e.left}function Bi(e){return e.right}function $i(e){return e.h}function qi(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof Gi){e=qi(n+1,Hi(o)),t=Bi(o);continue e}return n+1|0}return 0|n}}function Vi(e){return qi(0,e)}function Yi(e,t,n,r){let o,i;if(null!=e){const t=e;o=t instanceof Gi?$i(t):1}else o=0;if(null!=r){const e=r;i=e instanceof Gi?$i(e):1}else i=0;const s=0|(o<i?i:o);return 0===s?Ui(t,n):zi(t,n,e,r,s+1)}function Ji(e,t,n,r){let o,i,s,a,u,c;if(null!=e){const t=e;u=t instanceof Gi?$i(t):1}else u=0;if(null!=r){const e=r;c=e instanceof Gi?$i(e):1}else c=0;if(c>u+2){const s=Bt(r);if(s instanceof Gi){if(o=Hi(s),(null!=o?(i=o,i instanceof Gi?$i(i):1):0)>u+1){const r=Bt(Hi(s));if(r instanceof Gi)return Yi(Yi(e,t,n,Hi(r)),Li(r),Wi(r),Yi(Bi(r),Li(s),Wi(s),Bi(s)));throw new Error("internal error: Map.rebalance")}return Yi(Yi(e,t,n,Hi(s)),Li(s),Wi(s),Bi(s))}throw new Error("internal error: Map.rebalance")}if(u>c+2){const o=Bt(e);if(o instanceof Gi){if(s=Bi(o),(null!=s?(a=s,a instanceof Gi?$i(a):1):0)>c+1){const e=Bt(Bi(o));if(e instanceof Gi)return Yi(Yi(Hi(o),Li(o),Wi(o),Hi(e)),Li(e),Wi(e),Yi(Bi(e),t,n,r));throw new Error("internal error: Map.rebalance")}return Yi(Hi(o),Li(o),Wi(o),Yi(Bi(o),t,n,r))}throw new Error("internal error: Map.rebalance")}return Yi(e,t,n,r)}function Xi(e,t,n,r){if(null!=r){const o=r,i=0|e.Compare(t,Li(o));return o instanceof Gi?i<0?Ji(Xi(e,t,n,Hi(o)),Li(o),Wi(o),Bi(o)):0===i?zi(t,n,Hi(o),Bi(o),$i(o)):Ji(Hi(o),Li(o),Wi(o),Xi(e,t,n,Bi(o))):i<0?zi(t,n,void 0,r,2):0===i?Ui(t,n):zi(t,n,r,void 0,2)}return Ui(t,n)}function Zi(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,a=0|r.Compare(o,Li(s));if(0===a)return Ht(Wi(s));if(s instanceof Gi){e=r,t=o,n=a<0?Hi(s):Bi(s);continue e}return}return}}function Qi(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof Gi){Qi(n,Hi(o)),n(Li(o),Wi(o)),e=n,t=Bi(o);continue e}n(Li(o),Wi(o))}break}}function Ki(e,t){Qi(e,t)}function es(e,t){if(null!=t){const n=t;if(n instanceof Gi){const t=es(e,Hi(n)),r=e(Li(n),Wi(n)),o=es(e,Bi(n));return zi(Li(n),r,t,o,$i(n))}return Ui(Li(n),e(Li(n),Wi(n)))}}function ts(e,t){return es(e,t)}function ns(e,t){let n;for(let r=0;r<=t.length-1;r++){const o=t[r];n=Xi(e,o[0],o[1],n)}return n}class rs extends ct{constructor(e,t){super(),this.stack=e,this.started=t}}function os(e){e:for(;;){const t=e;if(Zr(t))return Yr();{const n=eo(t),r=Kr(t);if(null!=r){const o=r;if(o instanceof Gi){e=io([Hi(o),Ui(Li(o),Wi(o)),Bi(o)],n);continue e}return t}e=n;continue e}}}function is(e){return new rs(os(Xr(e)),!1)}function ss(e){if(e.started){const t=e.stack;if(Zr(t))return function(){throw new Error("enumeration already finished")}();if(null!=Kr(t)){const e=Kr(t);if(e instanceof Gi)throw new Error("Please report error: Map iterator, unexpected stack for current");return[Li(e),Wi(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function as(e){let t=is(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>ss(t),"System.Collections.IEnumerator.get_Current":()=>ss(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(Zr(t))return!1;if(null!=Kr(t)){if(Kr(t)instanceof Gi)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=os(eo(t)),!Zr(e.stack)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!Zr(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=is(e)},Dispose(){}}}class us{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){const t=(e,t)=>(e<<1)+t+631;let n=0;const r=Ue(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=0|t(n,Ye(e[0])),n=0|t(n,Ye(e[1]))}}finally{r.Dispose()}return 0|n}(this)}Equals(e){if(!(e instanceof us))return!1;{const t=Ue(this);try{const n=Ue(e);try{const e=()=>{const r=t["System.Collections.IEnumerator.MoveNext"]();if(r===n["System.Collections.IEnumerator.MoveNext"]()){if(r){const r=t["System.Collections.Generic.IEnumerator`1.get_Current"](),o=n["System.Collections.Generic.IEnumerator`1.get_Current"]();return!(!Ze(r[0],o[0])||!Ze(r[1],o[1]))&&e()}return!0}return!1};return e()}finally{n.Dispose()}}finally{t.Dispose()}}}toString(){return"map ["+Tr("; ",No((e=>function(e,...t){return"object"==typeof e&&t.length>0&&(e=t[0],t.shift()),e.replace(vr,((e,n,r,o,i,s)=>{let a=t[n];if(en(a))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":a=nn(a,i=null!=i?i:2);break;case"g":case"G":a=null!=i?rn(a,i):rn(a);break;case"e":case"E":a=null!=i?on(a,i):on(a);break;case"p":case"P":i=null!=i?i:2,a=nn(tn(a,100),i)+" %";break;case"d":case"D":a=null!=i?Or(String(a),i,"0"):String(a);break;case"x":case"X":a=null!=i?Or(sn(a),i,"0"):sn(a),"X"===o&&(a=a.toUpperCase());break;default:if(s){let e="";a=s.replace(/(0+)(\.0+)?/,((t,n,r)=>(br(a,0)&&(a=tn(a,-1),e="-"),a=nn(a,null!=r?r.length-1:0),Or(a,(n||"").length-e.length+(null!=r?r.length:0),"0")))),a=e+a}}else a=a instanceof Date?sr(a,s||o):at(a);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(a=Or(String(a),Math.abs(r)," ",r<0)),a}))}("({0}, {1})",e[0],e[1])),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(e){return Array.from(this)}GetEnumerator(){return as(this.tree)}[Symbol.iterator](){return Le(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return as(this.tree)}CompareTo(e){const t=this;if(e instanceof us)return 0|function(e,t,n){const r=bo(t);try{const t=bo(n);try{let n=0,o=r["System.Collections.IEnumerator.MoveNext"](),i=t["System.Collections.IEnumerator.MoveNext"]();for(;0===n&&o&&i;)n=0|e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),t["System.Collections.Generic.IEnumerator`1.get_Current"]()),0===n&&(o=r["System.Collections.IEnumerator.MoveNext"](),i=t["System.Collections.IEnumerator.MoveNext"]());return 0|(0!==n?n:o?1:i?-1:0)}finally{t.Dispose()}}finally{r.Dispose()}}(((e,n)=>{const r=0|t.comparer.Compare(e[0],n[0]);return 0|(0!==r?r:tt(e[1],n[1]))}),t,e);throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(e){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"(e){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return!!hs(this,e[0])&&Ze(fs(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){!function(e,t,n){let r=n;Ki(((e,n)=>{t[r]=[e,n],r=r+1|0}),e)}(this.tree,e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|ds(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|ds(this)}get size(){return 0|ds(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return No((e=>[e[0],e[1]]),this)}get(e){return fs(this,e)}has(e){return hs(this,e)}keys(){return No((e=>e[0]),this)}set(e,t){throw new Error("Map cannot be mutated")}values(){return No((e=>e[1]),this)}forEach(e,t){const n=this;Po((t=>{e(t[1],t[0],n)}),n)}}function cs(e,t){return new us(e,t)}function ls(e){const t=Nr();return cs(t,function(e,t){if(je(t))return ns(e,t);if(t instanceof Wr)return function(e,t){return no(((t,n)=>Xi(e,n[0],n[1],t)),void 0,t)}(e,t);{const n=Ue(t);try{return function(e,t,n){for(;;){const r=e,o=t,i=n;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;{const s=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=Xi(r,s[0],s[1],o),n=i}}}(e,void 0,n)}finally{n.Dispose()}}}(t,e))}function fs(e,t){return function(e,t,n){const r=Zi(e,t,n);if(null==r)throw new Error;return Bt(r)}(e.comparer,t,e.tree)}function ds(e){return Vi(e.tree)}function hs(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,a=0|r.Compare(o,Li(s));if(s instanceof Gi){if(a<0){e=r,t=o,n=Hi(s);continue e}if(0===a)return!0;e=r,t=o,n=Bi(s);continue e}return 0===a}return!1}}(e.comparer,t,e.tree)}function ps(e,t,n){return function(e,t,n){return cs(e.comparer,Xi(e.comparer,t,n,e.tree))}(n,e,t)}function ms(e,t){return function(e,t){return Zi(e.comparer,t,e.tree)}(t,e)}function gs(e,t){return function(e,t){return cs(e.comparer,ts(t,e.tree))}(t,e)}function ws(){return us.empty}us.empty=cs(Nr(),void 0);class ys extends ut{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}const _s=document.getElementById("workflows-progress-app"),vs=_s.getAttribute("data-identity-url"),bs=_s.getAttribute("data-backend-url"),Cs=Si(so(["workflows","progress","app"]),2),Ss=Er(Sr("%P()//%P()%P()",[window.location.protocol,window.location.host,Cs]));class xs extends ut{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Embedded","Standalone"]}}class Es extends ut{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Home","AuthCodeExchange","LoggedOut"]}}function ks(e){let t,n;if(Zr(e))t=1;else if("workflows"===Kr(e))if(Zr(eo(e)))t=1;else if("progress"===Kr(eo(e)))if(Zr(eo(eo(e))))t=1;else if("app"===Kr(eo(eo(e))))if(Zr(eo(eo(eo(e)))))t=1;else{const r=function(e){try{const t=new URLSearchParams(e);return Eo(Co((()=>No((e=>[e[0],e[1]]),t.entries()))))}catch(e){return}}(Kr(eo(eo(eo(e)))));null!=r?Zr(r)?t=1:"code"===Kr(r)[0]?Zr(eo(r))?t=1:"scope"===Kr(eo(r))[0]?Zr(eo(eo(r)))?t=1:"session_state"===Kr(eo(eo(r)))[0]?Zr(eo(eo(eo(r))))?t=1:"token"===Kr(eo(eo(eo(r))))[0]&&Zr(eo(eo(eo(eo(r)))))&&Zr(eo(eo(eo(eo(e)))))?(t=0,n=Kr(r)[1]):t=1:t=1:t=1:t=1:t=1}else t=1;else t=1;else t=1;switch(t){case 0:return new Es(1,new Zo(0,n));case 1:return new Es(0)}}class Ms extends ct{constructor(e,t,n){super(),this.CurrentPage=e,this.Credentials=t,this.AppMode=n}}class Is extends ut{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["UrlChanged","AuthMsg","DisplayLoggedOut","ProgressComponentReadyEvent"]}}function Ts(){return h("div",{children:jo.Children.toArray([h("h4",{children:["You have been logged out due to inactivity."]})])})}new class{constructor(){}};function Os(e,t){return Oi.Delay(t)}new class{constructor(){}};class Ps extends ut{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class Ns extends ut{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Header"]}}class As extends ut{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Empty","Text","Binary","Form"]}}class Ds extends ct{constructor(e,t,n,r,o,i,s){super(),this.url=e,this.method=t,this.headers=n,this.withCredentials=r,this.overridenMimeType=o,this.overridenResponseType=i,this.content=s}}class js extends ut{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Rs extends ct{constructor(e,t,n,r,o){super(),this.statusCode=0|e,this.responseText=t,this.responseType=n,this.responseHeaders=r,this.content=o}}const Fs=new Ds("",new Ps(0),Yr(),!1,void 0,void 0,new As(0));function Us(e,t){return"string"!=typeof(n=t)||0===n.length?[t]:function(e,t,n,r){if(r="number"==typeof r?r:void 0,(n="number"==typeof n?n:void 0)&&n<0)throw new Error("Count cannot be less than zero");if(0===n)return[];if(!Array.isArray(t)){if(0===r)return e.split(t,n);const o=arguments.length;t=Array(o-1);for(let e=1;e<o;e++)t[e-1]=arguments[e]}t=t.map((e=>gr(e))),t=t.length>0?t:[" "];let o=0;const i=[],s=new RegExp(t.join("|"),"g");for(;null==n||n>1;){const t=s.exec(e);if(null===t)break;(!r||t.index-o>0)&&(n=null!=n?n-1:n,i.push(e.substring(o,t.index))),o=s.lastIndex}return(!r||e.length-o>0)&&i.push(e.substring(o)),i}(t,[e],null,0);var n}function Ls(e){return new Ds(e,Fs.method,Fs.headers,Fs.withCredentials,Fs.overridenMimeType,Fs.overridenResponseType,Fs.content)}function Ws(e,t){return new Ds(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.content)}function Gs(e,t){return new Ds(t.url,t.method,ao(t.headers,Xr(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.content)}function zs(e){return function(e){return Ti((t=>e([t.onSuccess,t.onError,t.onCancel])))}((t=>{const n=new XMLHttpRequest;n.open(function(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"}}(e.method),e.url),n.onreadystatechange=()=>{let e,r,o,i,s,a;4===n.readyState&&t[0]((r=n.responseType,e=""===r||"text"===r?n.responseText:"",o=0|n.status,i=n.responseType,a=n.responseType,s=""===a||"text"===a?new js(0,n.responseText):new js("arraybuffer"===a?2:"blob"===a?1:3,n.response),new Rs(o,e,i,function(e){const t=Nr();return cs(t,ns(t,e))}(function(e,t,n){const r=[];for(let n=0;n<=t.length-1;n++){const o=e(t[n]);if(null!=o){const e=Bt(o);r.push(e)}}return r}((e=>{const t=so(Us(":",e));return Zr(t)?void 0:[Kr(t).toLocaleLowerCase(),Tr(":",eo(t)).trim()]}),Us("\r\n",n.getAllResponseHeaders()))),s)))};const r=Ue(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(e.fields[0],e.fields[1])}}finally{r.Dispose()}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;null==o||n.overrideMimeType(o);const i=e.overridenResponseType;null==i||(1===i.tag?n.responseType="blob":2===i.tag?n.responseType="arraybuffer":n.responseType="text");const s=[e.method,e.content];0===s[0].tag?n.send(Ht(void 0)):1===s[1].tag||3===s[1].tag||2===s[1].tag?n.send(Ht(s[1].fields[0])):n.send(Ht(void 0))}))}function Hs(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}new Rs(0,"","",ws(),new js(0,""));class Bs extends ut{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class $s extends ut{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class qs{constructor(){this.cache=new Map([])}}function Vs(){return new qs}function Ys(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Js(e,t){switch(e.tag){case 2:return function(e,t,n,r,o=0){if("string"==typeof e){const n=e;e=mr(t,null!=r?r:0),t=n,r=void 0}if("function"==typeof n)return r=null==r?-1:r,t.substring(0,o)+t.substring(o).replace(e,(function(){let e=arguments[0];if(r){r--;const t=[],o=arguments.length,i="string"!=typeof arguments[o-1];let s=i?o-3:o-2;for(let e=0;e<s;e++)t.push(arguments[e]);t.index=arguments[s++],t.input=arguments[s++],i&&(t.groups=arguments[s]),e=n(t)}return e}));if(n=n.replace(/\$0/g,(e=>"$&")).replace(/\${([^}]+)}/g,"$<$1>"),null!=r){let i;const s=t.substring(o),a=wr(e,s),u=wr.length>r?(i=a[r-1],s.substring(0,i.index+i[0].length)):s;return t.substring(0,o)+u.replace(e,n)+t.substring(o+u.length)}return t.replace(e,n)}(Ys(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Ys(t)}}Vs(),Vs();class Xs extends ct{constructor(e,t){super(),this.bound=0|e,this.digits=t}}function Zs(e,t){for(;;){const n=e,r=t;if(0===r)return 1;if(r%2!=0)return n*Zs(n*n,~~(r/2))|0;e=n*n,t=~~(r/2)}}function Qs(e){return e.bound}function Ks(e,t){return e.digits[t]}function ea(e,t){return tr(Ks(e,t),!1,2)}function ta(e,t,n){e.digits[t]=0|n}function na(e,t){for(;;){const n=e,r=t;if(0===r)return Qn(1,0,!1);if(r%2!=0)return Vn(n,na(Vn(n,n),~~(r/2)));e=Vn(n,n),t=~~(r/2)}}function ra(e,t){for(;;){const n=e,r=t;if(0===r)return 1;if(r%2!=0)return n*ra(n*n,~~(r/2))|0;e=n*n,t=~~(r/2)}}Qn(2013265921,0,!1),Qn(2013265921,0,!0),Rr(28,(e=>Zs(2,e)),Int32Array);const oa=16777216,ia=Qn(16777216,0,!1),sa=Qn(16777215,0,!1);function aa(e){return new Xs(e,new Int32Array(e))}function ua(e){const t=0|((e,t)=>{for(;;){const n=e,r=t;if(-1===r||0!==n[r])return r+1|0;e=n,t=r-1}})(e.digits,e.bound-1);return e.bound=0|t,e}function ca(e){const t=0|(e<0?0:e);if(t<oa){const e=aa(1);return e.digits[0]=0|t,ua(e)}{const e=aa(2);for(let n=0;n<=1;n++)e.digits[n]=~~(t/ra(oa,n))%oa|0;return ua(e)}}function la(e){if(1===e.bound)return 0|e.digits[0];{let t=0;for(let n=e.bound-1;n>=0;n--)t=e.digits[n]+oa*t|0;return 0|t}}Qn(16777215,0,!0);const fa=ca(1),da=ca(0);function ha(e){return e.bound-1}function pa(e){return 0===e.bound}function ma(e,t){return-1===function(e,t){return e.bound<t.bound?-1:e.bound>t.bound?1:0|((e,t,n)=>{for(;;){const r=e,o=t,i=n;if(-1===i)return 0;if(r[i]!==o[i])return r[i]<o[i]?-1:1;e=r,t=o,n=i-1}})(e.digits,t.digits,e.bound-1)}(e,t)}function ga(e,t,n){for(;;){const r=e,o=t,i=n;if(!(Zn(o,Qn(0,0,!1))>0))break;{const s=qn(ea(r,i),o);ta(r,i,~~Kn(Xn(s,sa))),e=r,t=Yn(s,ia),n=i+1}}}function wa(e,t){const n=0|Qs(e),r=aa(n+1),o=tr(t,!1,2);let i=Qn(0,0,!1);for(let t=0;t<=n-1;t++){const n=qn(qn(i,ea(r,t)),Vn(ea(e,t),o));ta(r,t,~~Kn(Xn(n,sa))),i=Yn(n,ia)}return ga(r,i,n),ua(r)}class ya extends ct{constructor(e,t,n,r,o,i,s){super(),this.bigL=0|e,this.twoToBigL=0|t,this.k=0|n,this.bigK=0|r,this.bigN=0|o,this.split=0|i,this.splits=s}}function _a(e,t,n,r){return new ya(e,ra(2,e),t,n,r,~~(24/e),Rr(~~(24/e),(t=>ra(2,e*t)),Int32Array))}const va=[_a(1,28,268435456,268435456),_a(2,26,67108864,134217728),_a(3,24,16777216,50331648),_a(4,22,4194304,16777216),_a(5,20,1048576,5242880),_a(6,18,262144,1572864),_a(7,16,65536,458752),_a(8,14,16384,131072),_a(9,12,4096,36864),_a(10,10,1024,10240),_a(11,8,256,2816),_a(12,6,64,768),_a(13,4,16,208)];function ba(e,t){return function(e,t){const n=1===Qs(e),r=1===Qs(t);return n&&r?function(e,t){const n=aa(2),r=Vn(tr(e,!1,2),tr(t,!1,2));return ta(n,0,~~Kn(Xn(r,sa))),ta(n,1,~~Kn(Yn(r,ia))),ua(n)}(Ks(e,0),Ks(t,0)):n?wa(t,Ks(e,0)):r?wa(e,Ks(t,0)):function(e,t){const n=aa(e.bound+t.bound),r=n.digits;for(let o=0;o<=e.bound-1;o++){const i=tr(e.digits[o],!1,2);let s=Qn(0,0,!1),a=o;for(let e=0;e<=t.bound-1;e++){const n=tr(t.digits[e],!1,2),o=qn(qn(tr(r[a],!1,2),s),Vn(i,n));r[a]=0|~~Kn(Xn(o,sa)),s=Yn(o,ia),a=a+1|0}ga(n,s,a)}return ua(n)}(e,t)}(e,t)}function Ca(e,t,n,r){const o=[e.digits,ha(e)],i=o[0],s=[n.digits,ha(n)],a=0|s[1],u=s[0],c=tr(t,!1,2);let l=0,f=Vn(c,tr(u[0],!1,2));for(;Zn(f,Qn(0,0,!1))>0||l<a;){if(l>o[1])throw new Error("scaleSubInPlace: pre-condition did not apply, result would be -ve");let e=~~Kn(Xn(f,sa)),t=Yn(f,ia);e<=i[l+r]?i[l+r]=i[l+r]-e|0:(i[l+r]=i[l+r]+(oa-e)|0,t=qn(t,Qn(1,0,!1))),f=l<a?qn(t,Vn(c,tr(u[l+1],!1,2))):t,l=l+1|0}ua(e)}function Sa(e,t,n,r){const o=[e.digits,ha(e)],i=o[0],s=[n.digits,ha(n)],a=0|s[1],u=s[0],c=tr(t,!1,2);let l=0,f=Vn(c,tr(u[0],!1,2));for(;Zn(f,Qn(0,0,!1))>0||l<a;){if(l>o[1])throw new Error("scaleSubInPlace: pre-condition did not apply, result would be -ve");let e=~~Kn(Xn(f,sa)),t=Yn(f,ia);e<oa-i[l+r]?i[l+r]=i[l+r]+e|0:(i[l+r]=e-(oa-i[l+r])|0,t=qn(t,Qn(1,0,!1))),f=l<a?qn(t,Vn(c,tr(u[l+1],!1,2))):t,l=l+1|0}ua(e)}function xa(e,t,n){const r=[ha(t),ha(e)],o=0|r[1],i=0|r[0];if(o<i+n)return 0;{const r=[t.digits,e.digits],s=r[1],a=r[0],u=0|(0===i?o===n?~~(s[n]/a[0]):~~Kn(Yn(qn(Vn(tr(s[o],!1,2),ia),tr(s[o-1],!1,2)),tr(a[0],!1,2))):o===i+n?~~(s[o]/(a[i]+1)):~~Kn(Yn(qn(Vn(tr(s[o],!1,2),ia),tr(s[o-1],!1,2)),qn(tr(a[i],!1,2),Qn(1,0,!1)))));return 0===u?1!==function(e,t,n,r){if(e.bound+t<n.bound+0)return-1;if(e.bound+t>n.bound+t)return 1;return 0|((e,n,r)=>{e:for(;;){const o=e,i=n,s=r;if(-1===s)return 0;{const a=0|(s<t?0:o[s-t]),u=0|(s<0?0:i[s-0]);if(a===u){e=o,n=i,r=s-1;continue e}return a<u?-1:1}}})(e.digits,n.digits,e.bound+t-1)}(t,n,e)?1:0:0|u}}function Ea(e,t){if(pa(t))throw new Error;if(ha(e)<ha(t))return[da,e];{const n=function(e){return new Xs(e.bound,function(e){return e.slice()}(e.digits))}(e),r=aa(ha(e)-ha(t)+1+1);let o=ha(e);const i=0|ha(t);let s=o-i;const a=e=>{};let u=!1;for(;!u;){a([r,n,s,o]);const e=0|xa(n,t,s);e>0?(Ca(n,e,t,s),Sa(r,e,fa,s),a([r,n,s,o])):(u=0===e&&0===s,u||(o===i+s?(a([r,n,s-1,o]),s=s-1|0):(a([r,n,s-1,o-1]),s=s-1|0,o=o-1|0)))}return[ua(r),ua(n)]}}function ka(e){return ca(e)}function Ma(e){const t=0|ha(e),n=(e,t,r,o)=>{e:for(;;){const i=e,s=t,a=r,u=o;if(Zr(u)){const e=0|la(a);return i&&0===e?s:Jr(He(e),s)}{const c=eo(u),l=Ea(a,Kr(u)[1]),f=l[1],d=l[0];if(i&&pa(d)){e=i,t=s,r=f,o=c;continue e}e=i,t=n(!1,s,f,c),r=d,o=c;continue e}}},r=n(!0,Yr(),e,((e,n,r)=>{for(;;){const o=e,i=n,s=r;if(ha(s)>t)return Jr([i,s],o);e=Jr([i,s],o),n=i+1,r=ba(s,s)}})(Yr(),0,ca(10)));return Zr(r)?"0":Tr("",to(r))}function Ia(e){const t=e;return 0<t.bound?0|t.digits[0]:0}Rr(24,(e=>ra(2,e)-1),Int32Array),Rr(24,(e=>ra(2,e)),Int32Array),Rr(24,(e=>na(Qn(2,0,!1),e))),va[0].bigN,ca(2);class Ta extends ct{constructor(e,t){super(),this.signInt=0|e,this.v=t}toString(){const e=this;switch(0|Na(e)){case-1:return pa(Aa(e))?"0":"-"+Ma(Aa(e));case 0:return"0";case 1:return Ma(Aa(e));default:throw new Error("signs should be +/- 1 or 0")}}Equals(e){return e instanceof Ta&&Da(this,e)}GetHashCode(){return 0|function(e){return 0===Na(e)?1:Na(e)+function(e){let t=0;for(let n=0;n<=e.bound-1;n++)t=e.digits[n]+(t<<3)|0;return 0|t}(Aa(e))|0}(this)}toJSON(e){return at(this)}CompareTo(e){if(e instanceof Ta)return 0|function(e,t){return function(e,t){const n=[Na(e),Na(t)];let r;switch(r=-1===n[0]?-1===n[1]?1:0===n[1]?8:1===n[1]?3:9:0===n[0]?-1===n[1]?6:0===n[1]?4:1===n[1]?5:9:1===n[0]?-1===n[1]?2:0===n[1]?7:1===n[1]?0:9:9,r){case 0:return ma(Aa(e),Aa(t));case 1:return ma(Aa(t),Aa(e));case 2:case 4:case 6:case 7:return!1;case 3:return!pa(Aa(e))||!pa(Aa(t));case 5:return!pa(Aa(t));case 8:return!pa(Aa(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}(e,t)?-1:Da(e,t)?0:1}(this,e);throw new Error("the objects are not comparable\\nParameter name: obj")}}function Oa(e,t){return new Ta(e,t)}function Pa(e){return function(e){return e.bound<=1}(e)&&Ia(e)<Ta.smallLim?Ta.smallPosTab[Ia(e)]:e}function Na(e){return e.signInt}function Aa(e){return e.v}function Da(e,t){const n=[Na(e),Na(t)];let r;switch(r=-1===n[0]?-1===n[1]?1:0===n[1]?8:1===n[1]?3:9:0===n[0]?-1===n[1]?6:0===n[1]?4:1===n[1]?5:9:1===n[0]?-1===n[1]?2:0===n[1]?7:1===n[1]?0:9:9,r){case 0:case 1:return function(e,t){if(e.bound===t.bound)return((e,t,n)=>{for(;;){const r=e,o=t,i=n;if(-1===i)return!0;if(r[i]!==o[i])return!1;e=r,t=o,n=i-1}})(e.digits,t.digits,e.bound-1);return!1}(Aa(e),Aa(t));case 2:case 3:return!!pa(Aa(e))&&pa(Aa(t));case 4:return!0;case 5:case 6:return pa(Aa(t));case 7:case 8:return pa(Aa(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function ja(e){return e>=0?Oa(1,Pa(ka(e))):Oa(-1,Pa(-2147483648===e?function(e){return function(e){const t=Zn(e,Qn(0,0,!1))<0?Qn(0,0,!1):e,n=aa(3);for(let e=0;e<=2;e++)n.digits[e]=0|~~Kn((r=Yn(t,na(ia,e)),o=ia,cn(o)||(o=wn(o)),an?pn((r.unsigned?an.rem_u:an.rem_s)(r.low,r.high,o.low,o.high),an.get_high(),r.unsigned):Hn(r,Bn($n(r,o),o))));var r,o;return ua(n)}(e)}(Jn(tr(e,!1,2))):ka(function(e){return-2147483648===e?e:-e}(e))))}function Ra(){return Ta.one}function Fa(){return Ta.zero}function Ua(e,t){!function(e){if(null!=e&&0!==e){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.")}}(t);const n=new Date(e);return n.offset=null!=t?t:-6e4*(new Date).getTimezoneOffset(),n}function La(e,t){try{return t.contents=function(e){const t=ur(e),n=nr.exec(e),r=null==n?-6e4*t.getTimezoneOffset():"Z"===n[0]?0:36e5*parseInt(n[1],10)+6e4*parseInt(n[2],10);return Ua(t.getTime(),r)}(e),!0}catch(e){return!1}}function Wa(e){return e<0?Math.ceil(e):Math.floor(e)}function Ga(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return za(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],o=0}return 864e5*e+36e5*t+6e4*n+1e3*r+o}function za(e){return er(Yn(e,1e4))}function Ha(e,t){try{return t.contents=function(e){const t=e.search("\\."),n=e.search("\\:");if(-1===t&&-1===n){const t=parseInt(e,0);if(isNaN(t))throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`);return Ga(t,0,0,0,0)}if(n>0){const t=/^(-?)((\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(null!=t&&null!=t[4]&&null!=t[5]){let n=0,r=0,o=0;const i=null!=t[1]&&"-"===t[1]?-1:1,s=+t[4],a=+t[5];if(null!=t[3]&&(n=+t[3]),null!=t[7]&&(o=+t[7]),null!=t[8])switch(t[8].length){case 1:r=100*+t[8];break;case 2:r=10*+t[8];break;case 3:r=+t[8];break;case 4:r=+t[8]/10;break;case 5:r=+t[8]/100;break;case 6:r=+t[8]/1e3;break;case 7:r=+t[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return i*Ga(n,s,a,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}Ta.smallLim=4096,Ta.smallPosTab=Rr(Ta.smallLim,(e=>ka(e))),Ta.one=ja(1),Ta.two=ja(2),Ta.zero=ja(0),Fa(),Ra(),Ta.two,Fa(),Ra();class Ba{constructor(e){this.k=e}}function $a(e){return new Ba(e)}function qa(e){return e.k}class Va extends Ba{constructor(e,t,n,r){super(e),this.left=t,this.right=n,this.h=0|r}}function Ya(e,t,n,r){return new Va(e,t,n,r)}function Ja(e){return e.left}function Xa(e){return e.right}function Za(e){return e.h}function Qa(e,t){e:for(;;){const n=e,r=t;if(null!=n){const o=n;if(o instanceof Va){e=Ja(o),t=Qa(Xa(o),r+1);continue e}return r+1|0}return 0|r}}function Ka(e){return Qa(e,0)}function eu(e,t,n){let r,o;if(null!=e){const t=e;r=t instanceof Va?Za(t):1}else r=0;if(null!=n){const e=n;o=e instanceof Va?Za(e):1}else o=0;const i=0|(r<o?o:r);return 0===i?$a(t):Ya(t,e,n,i+1)}function tu(e,t,n){let r,o,i,s,a,u;if(null!=e){const t=e;a=t instanceof Va?Za(t):1}else a=0;if(null!=n){const e=n;u=e instanceof Va?Za(e):1}else u=0;if(u>a+2){const i=Bt(n);if(i instanceof Va){if(r=Ja(i),(null!=r?(o=r,o instanceof Va?Za(o):1):0)>a+1){const n=Bt(Ja(i));if(n instanceof Va)return eu(eu(e,t,Ja(n)),qa(n),eu(Xa(n),qa(i),Xa(i)));throw new Error("internal error: Set.rebalance")}return eu(eu(e,t,Ja(i)),qa(i),Xa(i))}throw new Error("internal error: Set.rebalance")}if(a>u+2){const r=Bt(e);if(r instanceof Va){if(i=Xa(r),(null!=i?(s=i,s instanceof Va?Za(s):1):0)>u+1){const e=Bt(Xa(r));if(e instanceof Va)return eu(eu(Ja(r),qa(r),Ja(e)),qa(e),eu(Xa(e),t,n));throw new Error("internal error: Set.rebalance")}return eu(Ja(r),qa(r),eu(Xa(r),t,n))}throw new Error("internal error: Set.rebalance")}return eu(e,t,n)}function nu(e,t,n){if(null!=n){const r=n,o=0|e.Compare(t,qa(r));if(r instanceof Va)return o<0?tu(nu(e,t,Ja(r)),qa(r),Xa(r)):0===o?n:tu(Ja(r),qa(r),nu(e,t,Xa(r)));{const o=0|e.Compare(t,qa(r));return o<0?Ya(t,void 0,n,2):0===o?n:Ya(t,n,void 0,2)}}return $a(t)}function ru(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,a=0|r.Compare(o,qa(s));if(s instanceof Va){if(a<0){e=r,t=o,n=Ja(s);continue e}if(0===a)return!0;e=r,t=o,n=Xa(s);continue e}return 0===a}return!1}}function ou(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof Va){ou(n,Ja(o)),n(qa(o)),e=n,t=Xa(o);continue e}n(qa(o))}break}}class iu extends ct{constructor(e,t){super(),this.stack=e,this.started=t}}function su(e){e:for(;;){const t=e;if(Zr(t))return Yr();{const n=Kr(t),r=eo(t);if(null!=n){const o=n;if(o instanceof Va){e=io([Ja(o),$a(qa(o)),Xa(o)],r);continue e}return t}e=r;continue e}}}function au(e){return new iu(su(Xr(e)),!1)}function uu(e){if(e.started){const t=e.stack;if(Zr(t))return function(){throw new Error("Enumeration already started")}();if(null!=Kr(t))return qa(Kr(t));throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function cu(e){let t=au(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>uu(t),"System.Collections.IEnumerator.get_Current":()=>uu(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(Zr(t))return!1;if(null!=Kr(t)){if(Kr(t)instanceof Va)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=su(eo(t)),!Zr(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!Zr(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=au(e)},Dispose(){}}}function lu(e,t,n){return null==t?null==n?0:-1:null==n?1:0|function(e,t,n){e:for(;;){const r=e,o=t,i=n,s=[o,i];if(Zr(s[0]))return Zr(s[1])?0:-1;if(Zr(s[1]))return 1;if(null!=Kr(s[1]))if(null!=Kr(s[0])){const a=Kr(s[0]),u=Kr(s[1]);if(a instanceof Va)if(null==Ja(a)){if(!(u instanceof Va)){const o=0|r.Compare(qa(a),qa(u));if(0!==o)return 0|o;e=r,t=Jr(Xa(a),eo(s[0])),n=Jr(void 0,eo(s[1]));continue e}if(null==Ja(u)){const o=0|r.Compare(qa(a),qa(u));if(0!==o)return 0|o;e=r,t=Jr(Xa(a),eo(s[0])),n=Jr(Xa(u),eo(s[1]));continue e}{const s=[o,i];let a,u,c,l,f;switch(Zr(s[0])?Zr(s[1])?a=2:null!=Kr(s[1])?(a=1,l=eo(s[1]),f=Kr(s[1])):a=2:null!=Kr(s[0])?(a=0,u=eo(s[0]),c=Kr(s[0])):Zr(s[1])?a=2:null!=Kr(s[1])?(a=1,l=eo(s[1]),f=Kr(s[1])):a=2,a){case 0:if(c instanceof Va){e=r,t=io([Ja(c),Ya(qa(c),void 0,Xa(c),0)],u),n=i;continue e}e=r,t=io([void 0,$a(qa(c))],u),n=i;continue e;case 1:if(f instanceof Va){e=r,t=o,n=io([Ja(f),Ya(qa(f),void 0,Xa(f),0)],l);continue e}e=r,t=o,n=io([void 0,$a(qa(f))],l);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const s=[o,i];let a,u,c,l,f;switch(Zr(s[0])?Zr(s[1])?a=2:null!=Kr(s[1])?(a=1,l=eo(s[1]),f=Kr(s[1])):a=2:null!=Kr(s[0])?(a=0,u=eo(s[0]),c=Kr(s[0])):Zr(s[1])?a=2:null!=Kr(s[1])?(a=1,l=eo(s[1]),f=Kr(s[1])):a=2,a){case 0:if(c instanceof Va){e=r,t=io([Ja(c),Ya(qa(c),void 0,Xa(c),0)],u),n=i;continue e}e=r,t=io([void 0,$a(qa(c))],u),n=i;continue e;case 1:if(f instanceof Va){e=r,t=o,n=io([Ja(f),Ya(qa(f),void 0,Xa(f),0)],l);continue e}e=r,t=o,n=io([void 0,$a(qa(f))],l);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(!(u instanceof Va)){const o=0|r.Compare(qa(a),qa(u));if(0!==o)return 0|o;e=r,t=eo(s[0]),n=eo(s[1]);continue e}if(null==Ja(u)){const o=0|r.Compare(qa(a),qa(u));if(0!==o)return 0|o;e=r,t=Jr(void 0,eo(s[0])),n=Jr(Xa(u),eo(s[1]));continue e}{const s=[o,i];let a,u,c,l,f;switch(Zr(s[0])?Zr(s[1])?a=2:null!=Kr(s[1])?(a=1,l=eo(s[1]),f=Kr(s[1])):a=2:null!=Kr(s[0])?(a=0,u=eo(s[0]),c=Kr(s[0])):Zr(s[1])?a=2:null!=Kr(s[1])?(a=1,l=eo(s[1]),f=Kr(s[1])):a=2,a){case 0:if(c instanceof Va){e=r,t=io([Ja(c),Ya(qa(c),void 0,Xa(c),0)],u),n=i;continue e}e=r,t=io([void 0,$a(qa(c))],u),n=i;continue e;case 1:if(f instanceof Va){e=r,t=o,n=io([Ja(f),Ya(qa(f),void 0,Xa(f),0)],l);continue e}e=r,t=o,n=io([void 0,$a(qa(f))],l);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{Kr(s[1]);const a=[o,i];let u,c,l,f,d;switch(Zr(a[0])?Zr(a[1])?u=2:null!=Kr(a[1])?(u=1,f=eo(a[1]),d=Kr(a[1])):u=2:null!=Kr(a[0])?(u=0,c=eo(a[0]),l=Kr(a[0])):Zr(a[1])?u=2:null!=Kr(a[1])?(u=1,f=eo(a[1]),d=Kr(a[1])):u=2,u){case 0:if(l instanceof Va){e=r,t=io([Ja(l),Ya(qa(l),void 0,Xa(l),0)],c),n=i;continue e}e=r,t=io([void 0,$a(qa(l))],c),n=i;continue e;case 1:if(d instanceof Va){e=r,t=o,n=io([Ja(d),Ya(qa(d),void 0,Xa(d),0)],f);continue e}e=r,t=o,n=io([void 0,$a(qa(d))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==Kr(s[0])){e=r,t=eo(s[0]),n=eo(s[1]);continue e}{Kr(s[0]);const a=[o,i];let u,c,l,f,d;switch(Zr(a[0])?Zr(a[1])?u=2:null!=Kr(a[1])?(u=1,f=eo(a[1]),d=Kr(a[1])):u=2:null!=Kr(a[0])?(u=0,c=eo(a[0]),l=Kr(a[0])):Zr(a[1])?u=2:null!=Kr(a[1])?(u=1,f=eo(a[1]),d=Kr(a[1])):u=2,u){case 0:if(l instanceof Va){e=r,t=io([Ja(l),Ya(qa(l),void 0,Xa(l),0)],c),n=i;continue e}e=r,t=io([void 0,$a(qa(l))],c),n=i;continue e;case 1:if(d instanceof Va){e=r,t=o,n=io([Ja(d),Ya(qa(d),void 0,Xa(d),0)],f);continue e}e=r,t=o,n=io([void 0,$a(qa(d))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,Xr(t),Xr(n))}function fu(e,t,n){let r=n;ou((e=>{t[r]=e,r=r+1|0}),e)}function du(e,t){if(je(t))return function(e,t){return Fr(((t,n)=>nu(e,n,t)),void 0,t)}(e,t);if(t instanceof Wr)return function(e,t){return no(((t,n)=>nu(e,n,t)),void 0,t)}(e,t);{const n=Ue(t);try{return function(e,t,n){for(;;){const r=e,o=t,i=n;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;e=r,t=nu(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i}}(e,void 0,n)}finally{n.Dispose()}}}class hu{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){let t,n=0;const r=Ue(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();)n=0|(t=0|Ye(r["System.Collections.Generic.IEnumerator`1.get_Current"]()),(n<<1)+t+631)}finally{r.Dispose()}return 0|Math.abs(n)}(this)}Equals(e){return e instanceof hu&&0===lu(pu(this),mu(this),mu(e))}toString(){return"set ["+Tr("; ",No((e=>at(e)),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(e){return Array.from(this)}CompareTo(e){return 0|lu(pu(this),mu(this),mu(e))}"System.Collections.Generic.ICollection`1.Add2B595"(e){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Remove2B595"(e){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return ru(pu(this),e,mu(this))}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){fu(mu(this),e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|gu(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|gu(this)}GetEnumerator(){return cu(mu(this))}[Symbol.iterator](){return Le(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return cu(mu(this))}get size(){return 0|gu(this)}add(e){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(e){throw new Error("Set cannot be mutated")}has(e){return function(e,t){return ru(pu(e),t,mu(e))}(this,e)}keys(){return No((e=>e),this)}values(){return No((e=>e),this)}entries(){return No((e=>[e,e]),this)}forEach(e,t){const n=this;Po((t=>{e(t,t,n)}),n)}}function pu(e){return e.comparer}function mu(e){return e.tree}function gu(e){return Ka(mu(e))}function wu(e,t){return function(e,t){return new hu(e,t)}(t,du(t,e))}function yu(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?"\n":" ")+JSON.stringify(t,null,4)}catch(t){return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?"\n":" ")}}function _u(e,t,n){const r=t(e,n);if(1===r.tag){const e=r.fields[0];return new Vo(1,function(e,t){const n=2===t.tag?yu(t.fields[0],t.fields[1],!0):1===t.tag?yu(t.fields[0],t.fields[1],!1)+"\nReason: "+t.fields[2]:3===t.tag?yu(t.fields[0],t.fields[1],!0):4===t.tag?yu(t.fields[0],t.fields[1],!0)+"\nNode `"+t.fields[2]+"` is unkown.":5===t.tag?"Expecting "+t.fields[0]+".\n"+JSON.stringify(t.fields[1],null,4):7===t.tag?"The following errors were found:\n\n"+Tr("\n\n",t.fields[0]):6===t.tag?"The following `failure` occurred with the decoder: "+t.fields[0]:yu(t.fields[0],t.fields[1],!1);return 7===t.tag?n:"Error at: `"+e+"`\n"+n}(e[0],e[1]))}return new Vo(0,r.fields[0])}const vu=e=>t=>{const n="a sbyte",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-128<=e&&e<=127?new Vo(0,(e+128&255)-128):new Vo(1,[r,new Bs(1,n,e,"Value was either too large or too small for a sbyte")]):new Vo(1,[r,new Bs(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[Qt(o,511,!1,8,new lt((()=>t),(e=>{t=0|e}))),t],e[0]?new Vo(0,e[1]):new Vo(1,[r,new Bs(0,n,o)])}return new Vo(1,[r,new Bs(0,n,o)])},bu=e=>t=>{const n="a byte",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=255?new Vo(0,255&e):new Vo(1,[r,new Bs(1,n,e,"Value was either too large or too small for a byte")]):new Vo(1,[r,new Bs(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[Qt(o,511,!0,8,new lt((()=>t),(e=>{t=e}))),t],e[0]?new Vo(0,e[1]):new Vo(1,[r,new Bs(0,n,o)])}return new Vo(1,[r,new Bs(0,n,o)])},Cu=e=>t=>{const n="an int16",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-32768<=e&&e<=32767?new Vo(0,(e+32768&65535)-32768):new Vo(1,[r,new Bs(1,n,e,"Value was either too large or too small for "+n)]):new Vo(1,[r,new Bs(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[Qt(o,511,!1,16,new lt((()=>t),(e=>{t=0|e}))),t],e[0]?new Vo(0,e[1]):new Vo(1,[r,new Bs(0,n,o)])}return new Vo(1,[r,new Bs(0,n,o)])},Su=e=>t=>{const n="an uint16",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=65535?new Vo(0,65535&e):new Vo(1,[r,new Bs(1,n,e,"Value was either too large or too small for "+n)]):new Vo(1,[r,new Bs(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[Qt(o,511,!0,16,new lt((()=>t),(e=>{t=e}))),t],e[0]?new Vo(0,e[1]):new Vo(1,[r,new Bs(0,n,o)])}return new Vo(1,[r,new Bs(0,n,o)])},xu=e=>t=>{const n="an int",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-2147483648<=e&&e<=2147483647?new Vo(0,~~e):new Vo(1,[r,new Bs(1,n,e,"Value was either too large or too small for an int")]):new Vo(1,[r,new Bs(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[Qt(o,511,!1,32,new lt((()=>t),(e=>{t=0|e}))),t],e[0]?new Vo(0,e[1]):new Vo(1,[r,new Bs(0,n,o)])}return new Vo(1,[r,new Bs(0,n,o)])},Eu=e=>t=>{const n="an uint32",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=4294967295?new Vo(0,e>>>0):new Vo(1,[r,new Bs(1,n,e,"Value was either too large or too small for "+n)]):new Vo(1,[r,new Bs(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[Qt(o,511,!0,32,new lt((()=>t),(e=>{t=e}))),t],e[0]?new Vo(0,e[1]):new Vo(1,[r,new Bs(0,n,o)])}return new Vo(1,[r,new Bs(0,n,o)])};function ku(e,t,n,r){let o;const i=n+".["+He(e)+"]";if(Array.isArray(r)){const n=r;return e<n.length?t(i,n[e]):new Vo(1,[i,new Bs(5,"a longer array. Need index `"+He(e)+"` but there are only `"+(o=n.length,He(o)+"` entries"),r)])}return new Vo(1,[i,new Bs(0,"an array",r)])}function Mu(e,t,n){if(Array.isArray(n)){let r=-1;return Yo((e=>ro(e)),Fr(((n,o)=>{if(r=r+1|0,0===n.tag){const i=e(t+".["+He(r)+"]",o);return 0===i.tag?new Vo(0,Jr(i.fields[0],n.fields[0])):new Vo(1,i.fields[0])}return n}),new Vo(0,Yr()),n))}return new Vo(1,[t,new Bs(0,"a list",n)])}function Iu(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return Fr(((n,o)=>{if(r=r+1|0,0===n.tag){const i=n.fields[0],s=e(t+".["+He(r)+"]",o);return 0===s.tag?(i[r]=s.fields[0],new Vo(0,i)):new Vo(1,s.fields[0])}return n}),new Vo(0,Dr(new Array(o.length),0,o.length,null)),o)}return new Vo(1,[t,new Bs(0,"an array",n)])}function Tu(e,t,n,r){const o=t(n,r);return 0===o.tag?e(o.fields[0],n,r):new Vo(1,o.fields[0])}function Ou(e,t){let n;const r=e;return n=e=>t=>ku(0,r,e,t),e=>r=>Tu(ot(3,(e=>{let n;const r=t;return n=e=>t=>ku(1,r,e,t),t=>r=>Tu(((t,n,r)=>new Vo(0,[e,t])),ot(2,n),t,r)})),ot(2,n),e,r)}function Pu(e,t,n,r){let o,i;return t.length!==r.length?new Vo(1,[n,new Bs(6,(o=0|r.length,i=0|t.length,Er(Cr("Expected %i %s but got %i"))(i)(e)(o)))]):Lr(ot(3,st((e=>t=>r=>0===r.tag?Yo((e=>Jr(e,r.fields[0])),t(n,e)):r),[0,[0,2],0])),r,t,new Vo(0,Yr()))}function Nu(e,t,n,r,o,i){const s=function(e,t){return t.find((e=>xt(e)===r))}(0,Dt(n));if(null!=s){const n=s;return 0===i.length?new Vo(0,Gt(n,[])):Yo((e=>Gt(n,to(e))),Pu("union fields",jr((n=>Du(e,t,!1,n[1])),Wt(n)),o,i))}return new Vo(1,[o,new Bs(6,"Cannot find case "+r+" in "+Et(n))])}function Au(e,t,n,r){const o=new lt(null),i=ps(Et(r),o,e);let s;if(Ut(r)){const e=jr((e=>[Js(t,xt(e)),Du(i,t,!1,e[1])]),jt(r));s=t=>n=>Yo((e=>function(e,t){const n=jt(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return null!=e.construct?new e.construct(...t):n.reduce(((e,[n,r],o)=>(e[n]=t[o],e)),{})}(r,to(e))),function(e,t,n){return null===n||Object.getPrototypeOf(n||!1)!==Object.prototype?new Vo(1,[t,new Bs(0,"an object",n)]):function(e,t,n){return t.reduceRight(((t,n)=>e(n,t)),n)}(ot(2,(e=>{const r=e[0];return o=>0===o.tag?Yo((e=>Jr(e,o.fields[0])),e[1](t+"."+r)(n[r])):o})),e,new Vo(0,Yr()))}(e,t,n))}else if(Ft(r))s=e=>n=>{if("string"==typeof n)return Nu(i,t,r,n,e,[]);if(Array.isArray(n)){const o=n;return Nu(i,t,r,o[0],e,o.slice(1,o.length))}return new Vo(1,[e,new Bs(0,"a string or array",n)])};else{if(!n){let e;const t=Et(r);throw e=Er(Cr("Cannot generate auto decoder for %s. Please pass an extra decoder."))(t),new Error(e)}s=e=>t=>new Vo(1,[e,new Bs(2,"an extra coder for "+Et(r),t)])}return o.contents=s,s}function Du(e,t,n,r){let o;const i=Et(r),s=ms(i,e);if(null==s){if(kt(r)){const n=Du(e,t,!1,Mt(r));return e=>t=>Iu(ot(2,n),e,t)}if(Tt(r)){const e=Et(Pt(r));if("System.SByte"===e)return e=>t=>{const n=r,o=e,i=t,s=vu(o)(i);if(1===s.tag)return new Vo(1,s.fields[0]);{const e=s.fields[0];return To(e,Nt(n),{Equals:(e,t)=>e===t,GetHashCode:e=>qe(e)})?new Vo(0,At(n,e.toString())):new Vo(1,[o,new Bs(1,Et(n),i,"Unkown value provided for the enum")])}};if("System.Byte"===e)return e=>t=>{const n=r,o=e,i=t,s=bu(o)(i);if(1===s.tag)return new Vo(1,s.fields[0]);{const e=s.fields[0];return To(e,Nt(n),{Equals:(e,t)=>e===t,GetHashCode:e=>qe(e)})?new Vo(0,At(n,e.toString())):new Vo(1,[o,new Bs(1,Et(n),i,"Unkown value provided for the enum")])}};if("System.Int16"===e)return e=>t=>{const n=r,o=e,i=t,s=Cu(o)(i);if(1===s.tag)return new Vo(1,s.fields[0]);{const e=s.fields[0];return To(e,Nt(n),{Equals:(e,t)=>e===t,GetHashCode:e=>qe(e)})?new Vo(0,At(n,e.toString(a))):new Vo(1,[o,new Bs(1,Et(n),i,"Unkown value provided for the enum")])}var a};if("System.UInt16"===e)return e=>t=>{const n=r,o=e,i=t,s=Su(o)(i);if(1===s.tag)return new Vo(1,s.fields[0]);{const e=s.fields[0];return To(e,Nt(n),{Equals:(e,t)=>e===t,GetHashCode:e=>qe(e)})?new Vo(0,At(n,e.toString())):new Vo(1,[o,new Bs(1,Et(n),i,"Unkown value provided for the enum")])}};if("System.Int32"===e)return e=>t=>{const n=r,o=e,i=t,s=xu(o)(i);if(1===s.tag)return new Vo(1,s.fields[0]);{const e=s.fields[0];return To(e,Nt(n),{Equals:(e,t)=>e===t,GetHashCode:e=>qe(e)})?new Vo(0,At(n,He(e))):new Vo(1,[o,new Bs(1,Et(n),i,"Unkown value provided for the enum")])}};if("System.UInt32"===e)return e=>t=>{const n=r,o=e,i=t,s=Eu(o)(i);if(1===s.tag)return new Vo(1,s.fields[0]);{const e=s.fields[0];return To(e,Nt(n),{Equals:(e,t)=>e===t,GetHashCode:e=>qe(e)})?new Vo(0,At(n,e.toString())):new Vo(1,[o,new Bs(1,Et(n),i,"Unkown value provided for the enum")])}};{const e=Et(r),t=kr(Cr("Cannot generate auto decoder for %s.\nThoth.Json.Net only support the folluwing enum types:\n- sbyte\n- byte\n- int16\n- uint16\n- int\n- uint32\nIf you can't use one of these types, please pass an extra decoder.\n "))(e);return e=>{const n=t(e);return e=>n(e)}}}if(It(r)){if(Lt(r)){const n=jr((n=>Du(e,t,!1,n)),Rt(r));return e=>t=>Array.isArray(t)?Yo((e=>to(e)),Pu("tuple elements",n,e,t)):new Vo(1,[e,new Bs(0,"an array",t)])}{const i=Et(Ot(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===i){const n=Du(e,t,!0,ht(r)[0]);return e=>t=>{return r=ot(2,n),o=e,null==(i=t)?new Vo(0,void 0):Yo((e=>Ht(e)),r(o,i));var r,o,i}}if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===i){const n=Du(e,t,!1,ht(r)[0]);return e=>t=>Mu(ot(2,n),e,t)}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===i){const n=Du(e,t,!1,ht(r)[0]),i=Du(e,t,!1,ht(r)[1]);let s;const a=so([e=>t=>function(e,t,n,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new Vo(1,[n,new Bs(0,"an object",r)]):Oo(((o,i)=>{if(0===o.tag){const s=e(n,i);if(0===s.tag){const e=t(n+"."+i,r[i]);return 0===e.tag?new Vo(0,Jr([s.fields[0],e.fields[0]],o.fields[0])):new Vo(1,e.fields[0])}return new Vo(1,s.fields[0])}return o}),new Vo(0,Yr()),Object.keys(r))}(ot(2,n),ot(2,i),e,t),(o=Ou(ot(2,n),ot(2,i)),e=>t=>Mu(ot(2,o),e,t))]);return s=e=>t=>{return n=e,r=t,((e,t)=>{e:for(;;){const o=e,i=t;if(Zr(o))return new Vo(1,[n,new Bs(7,i)]);{const s=_u(n,ot(2,Kr(o)),r);if(1===s.tag){e=eo(o),t=ao(i,Xr(s.fields[0]));continue e}return new Vo(0,s.fields[0])}}})(a,Yr());var n,r},e=>t=>function(e,t,n,r){const o=t(n,r);return 1===o.tag?new Vo(1,o.fields[0]):new Vo(0,e(o.fields[0]))}((e=>ls(e)),ot(2,s),e,t)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===i){const n=Du(e,t,!1,ht(r)[0]);return e=>t=>{const r=Iu(ot(2,n),e,t);return 0===r.tag?new Vo(0,wu(r.fields[0],{Compare:(e,t)=>tt(e,t)})):new Vo(1,r.fields[0])}}return Au(e,t,n,r)}}return"System.Boolean"===i?e=>t=>{return n=e,"boolean"==typeof(r=t)?new Vo(0,r):new Vo(1,[n,new Bs(0,"a boolean",r)]);var n,r}:"Microsoft.FSharp.Core.Unit"===i?e=>t=>{return n=e,null==(r=t)?new Vo(0,void 0):new Vo(1,[n,new Bs(0,"null",r)]);var n,r}:"System.String"===i?e=>t=>{return n=e,"string"==typeof(r=t)?new Vo(0,r):new Vo(1,[n,new Bs(0,"a string",r)]);var n,r}:"System.SByte"===i?vu:"System.Byte"===i?bu:"System.Int16"===i?Cu:"System.UInt16"===i?Su:"System.Int32"===i?xu:"System.UInt32"===i?Eu:"System.Double"===i?e=>t=>{return n=e,"number"==typeof(r=t)?new Vo(0,r):new Vo(1,[n,new Bs(0,"a float",r)]);var n,r}:"System.Single"===i?e=>t=>{return n=e,"number"==typeof(r=t)?new Vo(0,r):new Vo(1,[n,new Bs(0,"a float32",r)]);var n,r}:"System.DateTime"===i?e=>t=>function(e,t){if("string"==typeof t){let r,o=ar(-621355968e5,0);return r=[cr(t,new lt((()=>o),(e=>{o=e}))),o],r[0]?new Vo(0,1===(n=r[1]).kind?n:ar(n.getTime(),1)):new Vo(1,[e,new Bs(0,"a datetime",t)])}var n;return new Vo(1,[e,new Bs(0,"a datetime",t)])}(e,t):"System.DateTimeOffset"===i?e=>t=>function(e,t){if("string"==typeof t){let n,r=Ua(-621355968e5,0);return n=[La(t,new lt((()=>r),(e=>{r=e}))),r],n[0]?new Vo(0,n[1]):new Vo(1,[e,new Bs(0,"a datetimeoffset",t)])}return new Vo(1,[e,new Bs(0,"a datetime",t)])}(e,t):"System.TimeSpan"===i?e=>t=>function(e,t){if("string"==typeof t){let n,r=0;return n=[Ha(t,new lt((()=>r),(e=>{r=e}))),r],n[0]?new Vo(0,n[1]):new Vo(1,[e,new Bs(0,"a timespan",t)])}return new Vo(1,[e,new Bs(0,"a timespan",t)])}(e,t):"System.Guid"===i?e=>t=>function(e,t){if("string"==typeof t){let n,r="00000000-0000-0000-0000-000000000000";return n=[ai(t,new lt((()=>r),(e=>{r=e}))),r],n[0]?new Vo(0,n[1]):new Vo(1,[e,new Bs(0,"a guid",t)])}return new Vo(1,[e,new Bs(0,"a guid",t)])}(e,t):"System.Object"===i?e=>e=>new Vo(0,e):Au(e,t,n,r)}{const e=s;return t=>n=>e.contents(t)(n)}}function ju(e,t,n){const r=Vt(e,new $s(0)),o=Bt(n).ResolveType();return Du(function(e){return null!=e?gs(((e,t)=>new lt(t[1])),e.Coders):ws()}(t),r,!1,o)}function Ru(e,t,n,r){return function(e,t){try{return _u("$",e,JSON.parse(t))}catch(e){if(e instanceof SyntaxError)return new Vo(1,"Given an invalid JSON: "+e.message);throw e}}(ot(2,ju(t,n,r)),e)}new class{constructor(){}};class Fu extends ct{constructor(e,t,n,r,o,i,s){super(),this.Configuration=e,this.LastUpdated=t,this.Status=n,this.Invite=r,this.Creator=o,this.Profile=i,this.Tags=s}}class Uu extends ct{constructor(e,t){super(),this.Name=e,this.Steps=t}}class Lu extends ct{constructor(e,t){super(),this.Id=e,this.DisplayName=t}}class Wu extends ut{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Inactive","Active","Complete","Abandoned"]}}class Gu extends ct{constructor(e){super(),this.CompletedSteps=e}}class zu extends ct{constructor(e,t){super(),this.Type=e,this.Date=t}}class Hu extends ct{constructor(e){super(),this.DateIssued=e}}class Bu extends ct{constructor(e,t){super(),this.Name=e,this.Value=t}}class $u extends ct{constructor(e,t,n){super(),this.FirstName=e,this.LastName=t,this.Email=n}}class qu extends ct{constructor(e,t,n,r){super(),this.FirstName=e,this.LastName=t,this.Email=n,this.ExternalId=r}}class Vu extends ct{constructor(e){super(),this.Data=e}}function Yu(){return wt("Workflows.Api.Models.ProgressBackendModels.ProcessInstanceDetailList",[],Vu,(()=>[["Data",vt(wt("Workflows.Api.Models.ProgressBackendModels.ProcessInstanceDetail",[],Fu,(()=>[["Configuration",wt("Workflows.Api.Models.ProgressBackendModels.ProcessConfig",[],Uu,(()=>[["Name",Ct],["Steps",vt(wt("Workflows.Api.Models.ProgressBackendModels.ProcessStepConfig",[],Lu,(()=>[["Id",Ct],["DisplayName",Ct]])))]]))],["LastUpdated",gt("System.DateTime")],["Status",yt("Workflows.Api.Models.ProgressBackendModels.ProcessInstanceStatus",[],Wu,(()=>[[],[["Item",wt("Workflows.Api.Models.ProgressBackendModels.ActiveProcessInstance",[],Gu,(()=>[["CompletedSteps",vt(wt("Workflows.Api.Models.ProgressBackendModels.CompletedStep",[],zu,(()=>[["Type",Ct],["Date",gt("System.DateTime")]])))]]))]],[["Item",gt("System.DateTime")]],[["Item",gt("System.DateTime")]]]))],["Invite",_t(wt("Workflows.Api.Models.ProgressBackendModels.Invite",[],Hu,(()=>[["DateIssued",gt("System.DateTime")]])))],["Creator",_t(wt("Workflows.Api.Models.ProgressBackendModels.Creator",[],$u,(()=>[["FirstName",Ct],["LastName",Ct],["Email",Ct]])))],["Profile",wt("Workflows.Api.Models.ProgressBackendModels.Profile",[],qu,(()=>[["FirstName",Ct],["LastName",Ct],["Email",Ct],["ExternalId",_t(Ct)]]))],["Tags",vt(wt("Workflows.Api.Models.ProgressBackendModels.Tag",[],Bu,(()=>[["Name",Ct],["Value",Ct]])))]])))]]))}class Ju{constructor(e,t){this.accessToken=t,this.backendUrl=Er(Sr("%P()/workflows/progress-backend",[e]))}}function Xu(e){return Os(0,(()=>{let t,n;const r=(o=e,i=Ws(new Ps(0),Ls(Er(Sr("%P()/instances?dateFrom=%P()",[e.backendUrl,(n=lr(),t=hr(n,-30),sr(t,"o"))])))),Os(0,(()=>{const e=Gs((n=Er(Sr("Bearer %P()",[o.accessToken])),new Ns(0,"Authorization",n)),i),t=Oi.Bind(zs(e),(e=>Oi.Return(new Vo(0,e))));var n;return Oi.Delay((()=>Oi.Bind(t,(t=>{let n;const r=t;return 1===r.tag?Oi.Return(new Vo(1,r.fields[0])):Oi.ReturnFrom((n=r.fields[0],429===n.statusCode||n.statusCode>=500?Oi.Bind(zs(e),(e=>Oi.Return(new Vo(0,e)))):function(e,t){return Oi.Return(function(e,t){return new Vo(0,t)}(0,t))}(0,n)))}))))})));var o,i;return Oi.Delay((()=>Oi.Bind(r,(e=>{let t;const n=e;return 1===n.tag?Oi.Return(new Vo(1,n.fields[0])):Oi.ReturnFrom((t=n.fields[0],200===t.statusCode?Oi.Return(Ru(t.responseText,new $s(1),void 0,{ResolveType:Yu})):Oi.Return(new Vo(1,"Unexpected response from backend"))))}))))}))}function Zu(e,t,n,r,o){const i=function(e,t,n,r){const o=0|tt(e,n);if(0===o)throw new Error("The step of a range cannot be zero");const i=o>0;return n=>{const o=0|tt(n,t);return i&&o<=0||!i&&o>=0?[n,r(n,e)]:void 0}}(t,n,r,o);return Co((()=>{return t=i,n=e,vo((()=>function(e,t){let n,r=t;return yo((()=>{if(null!=n){const e=n[0];return n[1],e}return po()}),(()=>{if(n=e(r),null!=n){n[0];const e=n[1];return r=e,!0}return!1}),(()=>{}))}(t,n)));var t,n}))}function Qu(e,t,n){return t()?n.then((()=>Qu(e,t,n))):Promise.resolve(void 0)}function Ku(e,t){return{then:(e,n)=>{try{return t().then(e,n)}catch(e){if(Ze(n,null))return Promise.reject(e);try{return Promise.resolve(n(e))}catch(e){return Promise.reject(e)}}},catch:e=>{try{return t().catch(e)}catch(t){try{return Promise.resolve(e(t))}catch(e){return Promise.reject(e)}}}}}const ec=new class{constructor(){}};class tc extends ut{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class nc{constructor(e){this.state=new tc(0,Dr(new Array(nt(((e,t)=>Ke(e,t)),e,10)),0,nt(((e,t)=>Ke(e,t)),e,10),null),0)}}function rc(e){const t=e.state;if(1===t.tag){const n=0|t.fields[1],r=0|t.fields[2],o=t.fields[0],i=(r+1)%o.length|0;return e.state=i===n?new tc(0,o,n):new tc(1,o,n,i),Ht(o[r])}}function oc(e,t,n){const r=Bo(e[0]),o=Bo(new nc(10)),i=function(e){return jo.useState(e)}(e[0]);let s;const a=Bo(Ni()),u=Bo(a.current);zo((()=>Uo((()=>{Ai(a.current)})))),s=u;const c=()=>{setTimeout((()=>{let e;e=s.current,Di(e)||i[1](r.current)}),0)},l=e=>{const n=(i=Ku(0,(()=>{let n=Ht(e);return Qu(ec,(()=>{let e;return null!=n&&(e=s.current,!Di(e))}),Ku(0,(()=>{const e=t(Bt(n),r.current);return oo((e=>{e(l)}),e[1]),n=rc(o.current),r.current=e[0],c(),Promise.resolve()})))})),new Promise(((e,t)=>{try{Promise.resolve(i).then(e,t)}catch(e){t(e)}})));var i;n.then()},f=qo(l);var d;return Wo((()=>Uo((()=>{let e;Po((e=>{e.Dispose()}),qt((e=r.current,function(e){return null!=e&&"function"==typeof e.Dispose}(e)?e:void 0)))}))),n),Ho((()=>{r.current=e[0],c(),oo((e=>{e(f)}),e[1])}),n),d=()=>{Po(f,qt(rc(o.current)))},Ro((e=>(d(),Uo((()=>{}))))),[i[0],f]}class ic{constructor(e,t){const n=new lt(null);this.comparer=t,n.contents=this,this.hashMap=new Map([]),this["init@8-2"]=1;const r=Ue(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();)cc(n.contents,r["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{r.Dispose()}}get[Symbol.toStringTag](){return"HashSet"}toJSON(e){return Array.from(this)}"System.Collections.IEnumerable.GetEnumerator"(){return Ue(this)}GetEnumerator(){return Ue(So(this.hashMap.values()))}[Symbol.iterator](){return Le(this.GetEnumerator())}"System.Collections.Generic.ICollection`1.Add2B595"(e){cc(this,e)}"System.Collections.Generic.ICollection`1.Clear"(){ac(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return lc(this,e)}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){var n;n=(n,r)=>{e[t+n]=r},Oo(((e,t)=>(n(e,t),e+1|0)),0,this)}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|uc(this)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(e){return fc(this,e)}get size(){return 0|uc(this)}add(e){return cc(this,e),this}clear(){ac(this)}delete(e){return fc(this,e)}has(e){return lc(this,e)}keys(){return No((e=>e),this)}values(){return No((e=>e),this)}entries(){return No((e=>[e,e]),this)}forEach(e,t){const n=this;Po((t=>{e(t,t,n)}),n)}}function sc(e,t){const n=0|e.comparer.GetHashCode(t);let r,o=null;return r=[(i=e.hashMap,s=n,a=new lt((()=>o),(e=>{o=e})),!!i.has(s)&&(a.contents=i.get(s),!0)),o],r[0]?[!0,n,r[1].findIndex((n=>e.comparer.Equals(t,n)))]:[!1,n,-1];var i,s,a}function ac(e){e.hashMap.clear()}function uc(e){let t=0,n=Ue(e.hashMap.values());try{for(;n["System.Collections.IEnumerator.MoveNext"]();)t=t+n["System.Collections.Generic.IEnumerator`1.get_Current"]().length|0}finally{n.Dispose()}return 0|t}function cc(e,t){const n=sc(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return!1;case 1:return n[0]?(Hs(e.hashMap,n[1]).push(t),!0):(e.hashMap.set(n[1],[t]),!0)}}function lc(e,t){const n=sc(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return!0;case 1:return!1}}function fc(e,t){const n=sc(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return Hs(e.hashMap,n[1]).splice(n[2],1),!0;case 1:return!1}}function dc(e,t){return Co((()=>{const n=new ic([],t);return function(e,t){return function(e,t){return ko((()=>bo(t)),(t=>{let n;for(;null==n&&t["System.Collections.IEnumerator.MoveNext"]();)n=e(t["System.Collections.Generic.IEnumerator`1.get_Current"]());return n}),(e=>{e.Dispose()}))}((t=>e(t)?Ht(t):void 0),t)}((e=>function(e,t){return!t.has(e)&&(t.add(e),!0)}(e,n)),e)}))}Symbol.toStringTag,Symbol.iterator;class hc extends ut{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["All","Completed","InProgress","NotStarted"]}}function pc(e){switch(e.tag){case 1:return"Completed";case 2:return"In progress";case 3:return"Not started";default:return"All"}}class mc extends ut{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["GetInstanceListCallback","SelectStatusTab"]}}class gc extends ct{constructor(e,t){super(),this.ProcessInstanceList=e,this.SelectedStatusTab=t}}function wc(e){return function(e,t){return fo(((e,n)=>t.Compare(e,n)),e)}((t=co((e=>e.Name),uo((e=>e.Tags),e.Data)),n={Equals:(e,t)=>e===t,GetHashCode:e=>$e(e)},Eo(dc(t,n))),{Compare:(e,t)=>Ke(e,t)});var t,n}function yc(e,t){return Ze(e,new hc(0))?t:new Vu(function(e,t){const n=zr(),r=no(((t,n)=>{if(e(n)){const e=new Wr(n,void 0);return t.tail=e,e}return t}),n,t),o=zr();return r.tail=o,Vr(n)}((t=>{let n;return Ze((n=t.Status,1===n.tag?new hc(2):2===n.tag?new hc(1):3===n.tag?void 0:new hc(3)),e)}),t.Data))}class _c{constructor(e,t,n){this.OnNext=e,this.OnError=t||(e=>{}),this.OnCompleted=n||(()=>{})}}const vc=class{constructor(){this.delegates=[]}Add(e){this._addHandler(e)}get Publish(){return this}Trigger(e,t){let n,r;void 0===t?(n=null,r=e):(n=e,r=t),this.delegates.forEach((e=>1===e.length?e(r):e(n,r)))}AddHandler(e){this._addHandler(e)}RemoveHandler(e){this._removeHandler(e)}Subscribe(e){const t="function"==typeof e?e:e.OnNext;return this._addHandler(t),{Dispose:()=>{this._removeHandler(t)}}}_addHandler(e){this.delegates.push(e)}_removeHandler(e){const t=this.delegates.indexOf(e);t>-1&&this.delegates.splice(t,1)}};function bc(e,t){let n,r=new class{constructor(e){this._enabled=!1,this._isDisposed=!1,this._intervalId=0,this._timeoutId=0,this.Interval=e&&e>0?e:100,this.AutoReset=!0,this._elapsed=new vc}Elapsed(){return this._elapsed}get Enabled(){return this._enabled}set Enabled(e){this._isDisposed||this._enabled===e||(this._enabled=e,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}}(e);r.AutoReset=!1,n=r,function(e,t){t.Subscribe(new _c(e))}(t,n.Elapsed()),n.Enabled=!0,n.Start()}function Cc(e,t,n){oo((n=>{try{n(t)}catch(t){e(t)}}),n)}function Sc(){return Yr()}function xc(e,t){return co((t=>n=>{t((t=>{n(e(t))}))}),t)}function Ec(e){return Xr((t=>{t(e)}))}function kc(e,t,n,r,o){return Xr((i=>{e(Oi.Delay((()=>{return Oi.Bind((e=t(n),Ti((t=>{e({onSuccess:e=>t.onSuccess(function(e){return new Jo(0,e)}(e)),onError:e=>t.onSuccess(function(e){return new Jo(1,e)}(e)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})}))),(e=>{const t=e;return i(1===t.tag?o(t.fields[0]):r(t.fields[0])),Oi.Zero()}));var e})))}))}function Mc(){window.dispatchEvent(new CustomEvent("progressComponentReady",{}))}function Ic(){return[new gc(new ys(0),new hc(0)),Sc()]}function Tc(e){return Tc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tc(e)}function Oc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Pc(e,t,n[t])}))}return e}function Ac(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Dc=function(){},jc={},Rc={},Fc={mark:Dc,measure:Dc};try{"undefined"!=typeof window&&(jc=window),"undefined"!=typeof document&&(Rc=document),"undefined"!=typeof MutationObserver&&MutationObserver,"undefined"!=typeof performance&&(Fc=performance)}catch(u){}var Uc=(jc.navigator||{}).userAgent,Lc=void 0===Uc?"":Uc,Wc=jc,Gc=Rc,zc=Fc,Hc=(Wc.document,!!Gc.documentElement&&!!Gc.head&&"function"==typeof Gc.addEventListener&&"function"==typeof Gc.createElement),Bc=(~Lc.indexOf("MSIE")||Lc.indexOf("Trident/"),"svg-inline--fa"),$c=[1,2,3,4,5,6,7,8,9,10],qc=$c.concat([11,12,13,14,15,16,17,18,19,20]),Vc={GROUP:"group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Yc=(["xs","sm","lg","fw","ul","li","border","pull-left","pull-right","spin","pulse","rotate-90","rotate-180","rotate-270","flip-horizontal","flip-vertical","flip-both","stack","stack-1x","stack-2x","inverse","layers","layers-text","layers-counter",Vc.GROUP,Vc.SWAP_OPACITY,Vc.PRIMARY,Vc.SECONDARY].concat($c.map((function(e){return"".concat(e,"x")}))).concat(qc.map((function(e){return"w-".concat(e)}))),Wc.FontAwesomeConfig||{});Gc&&"function"==typeof Gc.querySelector&&[["data-family-prefix","familyPrefix"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((function(e){var t=Ac(e,2),n=t[0],r=t[1],o=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=Gc.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(n));null!=o&&(Yc[r]=o)}));var Jc=Nc({},{familyPrefix:"fa",replacementClass:Bc,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},Yc);Jc.autoReplaceSvg||(Jc.observeMutations=!1);var Xc=Nc({},Jc);Wc.FontAwesomeConfig=Xc;var Zc=Wc||{};Zc.___FONT_AWESOME___||(Zc.___FONT_AWESOME___={}),Zc.___FONT_AWESOME___.styles||(Zc.___FONT_AWESOME___.styles={}),Zc.___FONT_AWESOME___.hooks||(Zc.___FONT_AWESOME___.hooks={}),Zc.___FONT_AWESOME___.shims||(Zc.___FONT_AWESOME___.shims=[]);var Qc=Zc.___FONT_AWESOME___,Kc=[];Hc&&((Gc.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Gc.readyState)||Gc.addEventListener("DOMContentLoaded",(function e(){Gc.removeEventListener("DOMContentLoaded",e),Kc.map((function(e){return e()}))})));var el,tl="pending",nl="settled",rl="fulfilled",ol="rejected",il=function(){},sl=void 0!==n.g&&void 0!==n.g.process&&"function"==typeof n.g.process.emit,al="undefined"==typeof setImmediate?setTimeout:setImmediate,ul=[];function cl(){for(var e=0;e<ul.length;e++)ul[e][0](ul[e][1]);ul=[],el=!1}function ll(e,t){ul.push([e,t]),el||(el=!0,al(cl,0))}function fl(e){var t=e.owner,n=t._state,r=t._data,o=e[n],i=e.then;if("function"==typeof o){n=rl;try{r=o(r)}catch(e){ml(i,e)}}dl(i,r)||(n===rl&&hl(i,r),n===ol&&ml(i,r))}function dl(e,t){var n;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(t&&("function"==typeof t||"object"===Tc(t))){var r=t.then;if("function"==typeof r)return r.call(t,(function(r){n||(n=!0,t===r?pl(e,r):hl(e,r))}),(function(t){n||(n=!0,ml(e,t))})),!0}}catch(t){return n||ml(e,t),!0}return!1}function hl(e,t){e!==t&&dl(e,t)||pl(e,t)}function pl(e,t){e._state===tl&&(e._state=nl,e._data=t,ll(wl,e))}function ml(e,t){e._state===tl&&(e._state=nl,e._data=t,ll(yl,e))}function gl(e){e._then=e._then.forEach(fl)}function wl(e){e._state=rl,gl(e)}function yl(e){e._state=ol,gl(e),!e._handled&&sl&&n.g.process.emit("unhandledRejection",e._data,e)}function _l(e){n.g.process.emit("rejectionHandled",e)}function vl(e){if("function"!=typeof e)throw new TypeError("Promise resolver "+e+" is not a function");if(this instanceof vl==0)throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._then=[],function(e,t){function n(e){ml(t,e)}try{e((function(e){hl(t,e)}),n)}catch(e){n(e)}}(e,this)}vl.prototype={constructor:vl,_state:tl,_then:null,_data:void 0,_handled:!1,then:function(e,t){var n={owner:this,then:new this.constructor(il),fulfilled:e,rejected:t};return!t&&!e||this._handled||(this._handled=!0,this._state===ol&&sl&&ll(_l,this)),this._state===rl||this._state===ol?ll(fl,n):this._then.push(n),n.then},catch:function(e){return this.then(null,e)}},vl.all=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.all().");return new vl((function(t,n){var r=[],o=0;function i(e){return o++,function(n){r[e]=n,--o||t(r)}}for(var s,a=0;a<e.length;a++)(s=e[a])&&"function"==typeof s.then?s.then(i(a),n):r[a]=s;o||t(r)}))},vl.race=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.race().");return new vl((function(t,n){for(var r,o=0;o<e.length;o++)(r=e[o])&&"function"==typeof r.then?r.then(t,n):t(r)}))},vl.resolve=function(e){return e&&"object"===Tc(e)&&e.constructor===vl?e:new vl((function(t){t(e)}))},vl.reject=function(e){return new vl((function(t,n){n(e)}))};var bl={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Cl(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function Sl(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function xl(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,": ").concat(e[n],";")}),"")}function El(e){return e.size!==bl.size||e.x!==bl.x||e.y!==bl.y||e.rotate!==bl.rotate||e.flipX||e.flipY}function kl(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,o={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(32*t.x,", ").concat(32*t.y,") "),s="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)");return{outer:o,inner:{transform:"".concat(i," ").concat(s," ").concat(a)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}var Ml={x:0,y:0,width:"100%",height:"100%"};function Il(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function Tl(e){var t=e.icons,n=t.main,r=t.mask,o=e.prefix,i=e.iconName,s=e.transform,a=e.symbol,u=e.title,c=e.maskId,l=e.titleId,f=e.extra,d=e.watchable,h=void 0!==d&&d,p=r.found?r:n,m=p.width,g=p.height,w="fak"===o,y=w?"":"fa-w-".concat(Math.ceil(m/g*16)),_=[Xc.replacementClass,i?"".concat(Xc.familyPrefix,"-").concat(i):"",y].filter((function(e){return-1===f.classes.indexOf(e)})).filter((function(e){return""!==e||!!e})).concat(f.classes).join(" "),v={children:[],attributes:Nc({},f.attributes,{"data-prefix":o,"data-icon":i,class:_,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(m," ").concat(g)})},b=w&&!~f.classes.indexOf("fa-fw")?{width:"".concat(m/g*16*.0625,"em")}:{};h&&(v.attributes["data-fa-i2svg"]=""),u&&v.children.push({tag:"title",attributes:{id:v.attributes["aria-labelledby"]||"title-".concat(l||Cl())},children:[u]});var C=Nc({},v,{prefix:o,iconName:i,main:n,mask:r,maskId:c,transform:s,symbol:a,styles:Nc({},b,f.styles)}),S=r.found&&n.found?function(e){var t,n=e.children,r=e.attributes,o=e.main,i=e.mask,s=e.maskId,a=e.transform,u=o.width,c=o.icon,l=i.width,f=i.icon,d=kl({transform:a,containerWidth:l,iconWidth:u}),h={tag:"rect",attributes:Nc({},Ml,{fill:"white"})},p=c.children?{children:c.children.map(Il)}:{},m={tag:"g",attributes:Nc({},d.inner),children:[Il(Nc({tag:c.tag,attributes:Nc({},c.attributes,d.path)},p))]},g={tag:"g",attributes:Nc({},d.outer),children:[m]},w="mask-".concat(s||Cl()),y="clip-".concat(s||Cl()),_={tag:"mask",attributes:Nc({},Ml,{id:w,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[h,g]},v={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:(t=f,"g"===t.tag?t.children:[t])},_]};return n.push(v,{tag:"rect",attributes:Nc({fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(w,")")},Ml)}),{children:n,attributes:r}}(C):function(e){var t=e.children,n=e.attributes,r=e.main,o=e.transform,i=xl(e.styles);if(i.length>0&&(n.style=i),El(o)){var s=kl({transform:o,containerWidth:r.width,iconWidth:r.width});t.push({tag:"g",attributes:Nc({},s.outer),children:[{tag:"g",attributes:Nc({},s.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:Nc({},r.icon.attributes,s.path)}]}]})}else t.push(r.icon);return{children:t,attributes:n}}(C),x=S.children,E=S.attributes;return C.children=x,C.attributes=E,a?function(e){var t=e.prefix,n=e.iconName,r=e.children,o=e.attributes,i=e.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Nc({},o,{id:!0===i?"".concat(t,"-").concat(Xc.familyPrefix,"-").concat(n):i}),children:r}]}]}(C):function(e){var t=e.children,n=e.main,r=e.mask,o=e.attributes,i=e.styles,s=e.transform;if(El(s)&&n.found&&!r.found){var a={x:n.width/n.height/2,y:.5};o.style=xl(Nc({},i,{"transform-origin":"".concat(a.x+s.x/16,"em ").concat(a.y+s.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}(C)}var Ol=(Xc.measurePerformance&&zc&&zc.mark&&zc.measure,function(e,t,n,r){var o,i,s,a=Object.keys(e),u=a.length,c=void 0!==r?function(e,t){return function(n,r,o,i){return e.call(t,n,r,o,i)}}(t,r):t;for(void 0===n?(o=1,s=e[a[0]]):(o=0,s=n);o<u;o++)s=c(s,e[i=a[o]],i,e);return s});function Pl(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.skipHooks,o=void 0!==r&&r,i=Object.keys(t).reduce((function(e,n){var r=t[n];return r.icon?e[r.iconName]=r.icon:e[n]=r,e}),{});"function"!=typeof Qc.hooks.addPack||o?Qc.styles[e]=Nc({},Qc.styles[e]||{},i):Qc.hooks.addPack(e,i),"fas"===e&&Pl("fa",t)}var Nl=Qc.styles,Al=Qc.shims,Dl=function(){var e=function(e){return Ol(Nl,(function(t,n,r){return t[r]=Ol(n,e,{}),t}),{})};e((function(e,t,n){return t[3]&&(e[t[3]]=n),e})),e((function(e,t,n){var r=t[2];return e[n]=n,r.forEach((function(t){e[t]=n})),e}));var t="far"in Nl;Ol(Al,(function(e,n){var r=n[0],o=n[1],i=n[2];return"far"!==o||t||(o="fas"),e[r]={prefix:o,iconName:i},e}),{})};function jl(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}function Rl(e){var t=e.tag,n=e.attributes,r=void 0===n?{}:n,o=e.children,i=void 0===o?[]:o;return"string"==typeof e?Sl(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,'="').concat(Sl(e[n]),'" ')}),"").trim()}(r),">").concat(i.map(Rl).join(""),"</").concat(t,">")}Dl(),Qc.styles;function Fl(e){this.name="MissingIcon",this.message=e||"Icon unavailable",this.stack=(new Error).stack}Fl.prototype=Object.create(Error.prototype),Fl.prototype.constructor=Fl;var Ul={fill:"currentColor"},Ll={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},Wl=(Nc({},Ul,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}),Nc({},Ll,{attributeName:"opacity"}));function Gl(e){var t=e[0],n=e[1],r=Ac(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(Xc.familyPrefix,"-").concat(Vc.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Xc.familyPrefix,"-").concat(Vc.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(Xc.familyPrefix,"-").concat(Vc.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}Nc({},Ul,{cx:"256",cy:"364",r:"28"}),Nc({},Ll,{attributeName:"r",values:"28;14;28;28;14;28;"}),Nc({},Wl,{values:"1;0;1;1;0;1;"}),Nc({},Ul,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),Nc({},Wl,{values:"1;0;0;0;0;1;"}),Nc({},Ul,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),Nc({},Wl,{values:"0;0;1;1;0;0;"}),Qc.styles,Qc.styles;var zl=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}}var t,n;return t=e,n=[{key:"add",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n.reduce(this._pullDefinitions,{});Object.keys(o).forEach((function(t){e.definitions[t]=Nc({},e.definitions[t]||{},o[t]),Pl(t,o[t]),Dl()}))}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(e,t){var n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map((function(t){var r=n[t],o=r.prefix,i=r.iconName,s=r.icon;e[o]||(e[o]={}),e[o][i]=s})),e}}],n&&Oc(t.prototype,n),e}();function Hl(){Xc.autoAddCss&&!Yl&&(function(e){if(e&&Hc){var t=Gc.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=Gc.head.childNodes,r=null,o=n.length-1;o>-1;o--){var i=n[o],s=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(r=i)}Gc.head.insertBefore(t,r)}}(function(){var e="fa",t=Bc,n=Xc.familyPrefix,r=Xc.replacementClass,o='svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse {\n color: #fff;\n}';if(n!==e||r!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),s=new RegExp("\\--".concat(e,"\\-"),"g"),a=new RegExp("\\.".concat(t),"g");o=o.replace(i,".".concat(n,"-")).replace(s,"--".concat(n,"-")).replace(a,".".concat(r))}return o}()),Yl=!0)}function Bl(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return Rl(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(Hc){var t=Gc.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function $l(e){var t=e.prefix,n=void 0===t?"fa":t,r=e.iconName;if(r)return jl(Vl.definitions,n,r)||jl(Qc.styles,n,r)}var ql,Vl=new zl,Yl=!1,Jl={transform:function(e){return function(e){var t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e?e.toLowerCase().split(" ").reduce((function(e,t){var n=t.toLowerCase().split("-"),r=n[0],o=n.slice(1).join("-");if(r&&"h"===o)return e.flipX=!0,e;if(r&&"v"===o)return e.flipY=!0,e;if(o=parseFloat(o),isNaN(o))return e;switch(r){case"grow":e.size=e.size+o;break;case"shrink":e.size=e.size-o;break;case"left":e.x=e.x-o;break;case"right":e.x=e.x+o;break;case"up":e.y=e.y-o;break;case"down":e.y=e.y+o;break;case"rotate":e.rotate=e.rotate+o}return e}),t):t}(e)}},Xl=(ql=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?bl:n,o=t.symbol,i=void 0!==o&&o,s=t.mask,a=void 0===s?null:s,u=t.maskId,c=void 0===u?null:u,l=t.title,f=void 0===l?null:l,d=t.titleId,h=void 0===d?null:d,p=t.classes,m=void 0===p?[]:p,g=t.attributes,w=void 0===g?{}:g,y=t.styles,_=void 0===y?{}:y;if(e){var v=e.prefix,b=e.iconName,C=e.icon;return Bl(Nc({type:"icon"},e),(function(){return Hl(),Xc.autoA11y&&(f?w["aria-labelledby"]="".concat(Xc.replacementClass,"-title-").concat(h||Cl()):(w["aria-hidden"]="true",w.focusable="false")),Tl({icons:{main:Gl(C),mask:a?Gl(a.icon):{found:!1,width:null,height:null,icon:{}}},prefix:v,iconName:b,transform:Nc({},bl,r),symbol:i,title:f,maskId:c,titleId:h,extra:{attributes:w,styles:_,classes:m}})}))}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(e||{}).icon?e:$l(e||{}),r=t.mask;return r&&(r=(r||{}).icon?r:$l(r||{})),ql(n,Nc({},t,{mask:r}))}),Zl=n(697),Ql=n.n(Zl);function Kl(e){return Kl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kl(e)}function ef(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tf(Object(n),!0).forEach((function(t){ef(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rf(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function of(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function sf(e){return t=e,(t-=0)==t?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1);var t}function af(e){return e.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n,r=t.indexOf(":"),o=sf(t.slice(0,r)),i=t.slice(r+1).trim();return o.startsWith("webkit")?e[(n=o,n.charAt(0).toUpperCase()+n.slice(1))]=i:e[o]=i,e}),{})}var uf=!1;try{uf=!0}catch(u){}function cf(e){return e&&"object"===Kl(e)&&e.prefix&&e.iconName&&e.icon?e:Jl.icon?Jl.icon(e):null===e?null:e&&"object"===Kl(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:"fas",iconName:e}:void 0}function lf(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?ef({},e,t):{}}function ff(e){var t=e.forwardedRef,n=rf(e,["forwardedRef"]),r=n.icon,o=n.mask,i=n.symbol,s=n.className,a=n.title,u=n.titleId,c=cf(r),l=lf("classes",[].concat(of(function(e){var t,n=e.spin,r=e.pulse,o=e.fixedWidth,i=e.inverse,s=e.border,a=e.listItem,u=e.flip,c=e.size,l=e.rotation,f=e.pull,d=(ef(t={"fa-spin":n,"fa-pulse":r,"fa-fw":o,"fa-inverse":i,"fa-border":s,"fa-li":a,"fa-flip-horizontal":"horizontal"===u||"both"===u,"fa-flip-vertical":"vertical"===u||"both"===u},"fa-".concat(c),null!=c),ef(t,"fa-rotate-".concat(l),null!=l&&0!==l),ef(t,"fa-pull-".concat(f),null!=f),ef(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(d).map((function(e){return d[e]?e:null})).filter((function(e){return e}))}(n)),of(s.split(" ")))),f=lf("transform","string"==typeof n.transform?Jl.transform(n.transform):n.transform),d=lf("mask",cf(o)),h=Xl(c,nf({},l,{},f,{},d,{symbol:i,title:a,titleId:u}));if(!h)return function(){var e;!uf&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",c),null;var p=h.abstract,m={ref:t};return Object.keys(n).forEach((function(e){ff.defaultProps.hasOwnProperty(e)||(m[e]=n[e])})),df(p[0],m)}ff.displayName="FontAwesomeIcon",ff.propTypes={border:Ql().bool,className:Ql().string,mask:Ql().oneOfType([Ql().object,Ql().array,Ql().string]),fixedWidth:Ql().bool,inverse:Ql().bool,flip:Ql().oneOf(["horizontal","vertical","both"]),icon:Ql().oneOfType([Ql().object,Ql().array,Ql().string]),listItem:Ql().bool,pull:Ql().oneOf(["right","left"]),pulse:Ql().bool,rotation:Ql().oneOf([0,90,180,270]),size:Ql().oneOf(["lg","xs","sm","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:Ql().bool,symbol:Ql().oneOfType([Ql().bool,Ql().string]),title:Ql().string,transform:Ql().oneOfType([Ql().string,Ql().object]),swapOpacity:Ql().bool},ff.defaultProps={border:!1,className:"",mask:null,fixedWidth:!1,inverse:!1,flip:null,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,symbol:!1,title:"",transform:null,swapOpacity:!1};var df=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n)return n;var o=(n.children||[]).map((function(n){return e(t,n)})),i=Object.keys(n.attributes||{}).reduce((function(e,t){var r=n.attributes[t];switch(t){case"class":e.attrs.className=r,delete n.attributes.class;break;case"style":e.attrs.style=af(r);break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[sf(t)]=r}return e}),{attrs:{}}),s=r.style,a=void 0===s?{}:s,u=rf(r,["style"]);return i.attrs.style=nf({},i.attrs.style,{},a),t.apply(void 0,[n.tag,nf({},i.attrs,{},u)].concat(of(o)))}.bind(null,De.createElement);function hf(e){return h(ff,e)}const pf=hf({icon:{prefix:"fas",iconName:"user",icon:[448,512,[],"f007","M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"]}}),mf=hf({icon:{prefix:"fas",iconName:"check-circle",icon:[512,512,[],"f058","M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"]}}),gf=hf({icon:{prefix:"fas",iconName:"pen-square",icon:[448,512,[],"f14b","M400 480H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zM238.1 177.9L102.4 313.6l-6.3 57.1c-.8 7.6 5.6 14.1 13.3 13.3l57.1-6.3L302.2 242c2.3-2.3 2.3-6.1 0-8.5L246.7 178c-2.5-2.4-6.3-2.4-8.6-.1zM345 165.1L314.9 135c-9.4-9.4-24.6-9.4-33.9 0l-23.1 23.1c-2.3 2.3-2.3 6.1 0 8.5l55.5 55.5c2.3 2.3 6.1 2.3 8.5 0L345 199c9.3-9.3 9.3-24.5 0-33.9z"]}}),wf=hf({icon:{prefix:"fas",iconName:"hourglass-start",icon:[384,512,[],"f251","M360 0H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24zm-64 448H88c0-77.458 46.204-144 104-144 57.786 0 104 66.517 104 144z"]}});var yf={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function _f(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}const vf={date:_f({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:_f({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:_f({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var bf={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Cf(e){return function(t,n){var r,o=n||{};if("formatting"===(o.context?String(o.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,s=o.width?String(o.width):i;r=e.formattingValues[s]||e.formattingValues[i]}else{var a=e.defaultWidth,u=o.width?String(o.width):e.defaultWidth;r=e.values[u]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const Sf={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Cf({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Cf({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Cf({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Cf({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Cf({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function xf(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var s,a=i[0],u=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(u)?kf(u,(function(e){return e.test(a)})):Ef(u,(function(e){return e.test(a)}));s=e.valueCallback?e.valueCallback(c):c,s=n.valueCallback?n.valueCallback(s):s;var l=t.slice(a.length);return{value:s,rest:l}}}function Ef(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function kf(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}var Mf,If={ordinalNumber:(Mf={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(Mf.matchPattern);if(!n)return null;var r=n[0],o=e.match(Mf.parsePattern);if(!o)return null;var i=Mf.valueCallback?Mf.valueCallback(o[0]):o[0];i=t.valueCallback?t.valueCallback(i):i;var s=e.slice(r.length);return{value:i,rest:s}}),era:xf({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:xf({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:xf({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:xf({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:xf({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const Tf={code:"en-US",formatDistance:function(e,t,n){var r,o=yf[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:vf,formatRelative:function(e,t,n,r){return bf[e]},localize:Sf,match:If,options:{weekStartsOn:0,firstWeekContainsDate:1}};var Of=["years","months","weeks","days","hours","minutes","seconds"];function Pf(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only ".concat(arguments.length," present"));var n=(null==t?void 0:t.format)||Of,r=(null==t?void 0:t.locale)||Tf,o=(null==t?void 0:t.zero)||!1,i=(null==t?void 0:t.delimiter)||" ",s=n.reduce((function(t,n){var i="x".concat(n.replace(/(^.)/,(function(e){return e.toUpperCase()})));return"number"==typeof e[n]&&(o||e[n])?t.concat(r.formatDistance(i,e[n])):t}),[]).join(i);return s}function Nf(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Af(e){Nf(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function Df(e,t){Nf(2,arguments);var n=Af(e),r=Af(t),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}function jf(e,t){Nf(2,arguments);var n=Af(e),r=Af(t);return n.getFullYear()-r.getFullYear()}function Rf(e,t){Nf(2,arguments);var n=Af(e),r=Af(t),o=Df(n,r),i=Math.abs(jf(n,r));n.setFullYear(1584),r.setFullYear(1584);var s=Df(n,r)===-o,a=o*(i-Number(s));return 0===a?0:a}function Ff(e,t){Nf(2,arguments);var n=Af(e),r=Af(t),o=n.getFullYear()-r.getFullYear(),i=n.getMonth()-r.getMonth();return 12*o+i}function Uf(e){Nf(1,arguments);var t=Af(e);return t.setHours(23,59,59,999),t}function Lf(e){Nf(1,arguments);var t=Af(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function Wf(e){Nf(1,arguments);var t=Af(e);return Uf(t).getTime()===Lf(t).getTime()}function Gf(e,t){Nf(2,arguments);var n,r=Af(e),o=Af(t),i=Df(r,o),s=Math.abs(Ff(r,o));if(s<1)n=0;else{1===r.getMonth()&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-i*s);var a=Df(r,o)===-i;Wf(Af(e))&&1===s&&1===Df(e,o)&&(a=!1),n=i*(s-Number(a))}return 0===n?0:n}function zf(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Hf(e){Nf(1,arguments);var t=Af(e);return t.setHours(0,0,0,0),t}var Bf=864e5;function $f(e,t){Nf(2,arguments);var n=Hf(e),r=Hf(t),o=n.getTime()-zf(n),i=r.getTime()-zf(r);return Math.round((o-i)/Bf)}function qf(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function Vf(e,t){Nf(2,arguments);var n=Af(e),r=Af(t),o=qf(n,r),i=Math.abs($f(n,r));n.setDate(n.getDate()-o*i);var s=Number(qf(n,r)===-o),a=o*(i-s);return 0===a?0:a}Math.pow(10,8);var Yf=36e5;function Jf(e,t){return Nf(2,arguments),Af(e).getTime()-Af(t).getTime()}var Xf,Zf,Qf={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function Kf(e){return e?Qf[e]:Qf.trunc}function ed(e,t,n){Nf(2,arguments);var r=Jf(e,t)/Yf;return Kf(null==n?void 0:n.roundingMethod)(r)}function td(e,t,n){Nf(2,arguments);var r=Jf(e,t)/6e4;return Kf(null==n?void 0:n.roundingMethod)(r)}function nd(e,t,n){Nf(2,arguments);var r=Jf(e,t)/1e3;return Kf(null==n?void 0:n.roundingMethod)(r)}function rd(e){return Nf(1,arguments),e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function od(e){if(Nf(1,arguments),!rd(e)&&"number"!=typeof e)return!1;var t=Af(e);return!isNaN(Number(t))}function id(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function sd(e,t){Nf(2,arguments);var n=Af(e),r=id(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function ad(e,t){Nf(2,arguments);var n=id(t);return sd(e,-n)}function ud(e,t){Nf(2,arguments);var n=Af(e),r=id(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var s=i.getDate();return o>=s?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function cd(e,t){Nf(2,arguments);var n=id(t);return ud(e,-n)}function ld(e,t){if(Nf(2,arguments),!t||"object"!=typeof t)return new Date(NaN);var n=t.years?id(t.years):0,r=t.months?id(t.months):0,o=t.weeks?id(t.weeks):0,i=t.days?id(t.days):0,s=t.hours?id(t.hours):0,a=t.minutes?id(t.minutes):0,u=t.seconds?id(t.seconds):0,c=cd(e,r+12*n),l=ad(c,i+7*o),f=a+60*s,d=u+60*f,h=1e3*d,p=new Date(l.getTime()-h);return p}function fd(e){var t=e.start,n=e.end;Nf(1,arguments);var r=Af(t),o=Af(n);if(!od(r))throw new RangeError("Start Date is invalid");if(!od(o))throw new RangeError("End Date is invalid");var i={years:0,months:0,days:0,hours:0,minutes:0,seconds:0},s=Df(r,o);i.years=Math.abs(Rf(r,o));var a=ld(r,{years:s*i.years});i.months=Math.abs(Gf(a,o));var u=ld(a,{months:s*i.months});i.days=Math.abs(Vf(u,o));var c=ld(u,{days:s*i.days});i.hours=Math.abs(ed(c,o));var l=ld(c,{hours:s*i.hours});i.minutes=Math.abs(td(l,o));var f=ld(l,{minutes:s*i.minutes});return i.seconds=Math.abs(nd(f,o)),i}function dd(e){return e.years>0?{days:0,hours:0,minutes:0,months:0,seconds:0,weeks:0,years:e.years}:e.months>0?{days:0,hours:0,minutes:0,months:e.months,seconds:0,weeks:0,years:0}:e.weeks>0?{days:0,hours:0,minutes:0,months:0,seconds:0,weeks:e.weeks,years:0}:e.days>0?{days:e.days,hours:0,minutes:0,months:0,seconds:0,weeks:0,years:0}:e.hours>0?{days:0,hours:e.hours,minutes:0,months:0,seconds:0,weeks:0,years:0}:e.minutes>0?{days:0,hours:0,minutes:e.minutes,months:0,seconds:0,weeks:0,years:0}:e.seconds>0?{days:0,hours:0,minutes:0,months:0,seconds:e.seconds,weeks:0,years:0}:{days:0,hours:0,minutes:1,months:0,seconds:0,weeks:0,years:0}}function hd(e){const t=lr();return pr(e,t)>0?"1 minute ago":Er(Sr("%P() ago",[Pf(dd(fd({end:t,start:e})))]))}function pd(e){const t=e=>h("td",{className:Tr(" ",["px-6","py-4","whitespace-nowrap"]),children:jo.Children.toArray(Array.from(e))}),n=e=>h("div",{className:Tr(" ",["text-sm","text-gray-500"]),children:e}),r=e=>t([n(e)]),o=(e,r)=>t([h("div",{className:Tr(" ",["text-sm","text-gray-900"]),children:e}),n(r)]),i=r("---"),s=wc(e);return h("tbody",{className:Tr(" ",["bg-white","divide-y","divide-gray-200"]),children:jo.Children.toArray(Array.from(Eo(Co((()=>Do((e=>{let a;const u=0|Qr(e.Configuration.Steps);return a=1===u?"1 step":Er(Sr("%P() steps",[u])),xo(h("tr",{className:Tr(" ",["hover:bg-gray-50"]),children:jo.Children.toArray(Array.from(Eo(Co((()=>{let u;return Io((u=e.Profile.ExternalId,xo(null==u?i:r(u))),Co((()=>{let u;return Io(xo((u=Er(Sr("%P() %P()",[e.Profile.FirstName,e.Profile.LastName])),t([h("div",{className:Tr(" ",["text-sm","font-medium","text-gray-900"]),children:u}),n(e.Profile.Email)]))),Co((()=>{let n,u;return Io((n=e.Creator,null==n?xo(i):(u=n,xo(o(Er(Sr("%P() %P()",[u.FirstName,u.LastName])),u.Email)))),Co((()=>{let n,u,c,l;return Io(xo((n=e,u=function(e){switch(e.Status.tag){case 1:return"In progress";case 2:return"Completed";case 3:return"Abandoned";default:return"Not started"}}(n),l=n.Status,c=1===l.tag?so(["bg-blue-100","text-blue-800"]):2===l.tag?so(["bg-green-100","text-green-800"]):3===l.tag?so(["bg-gray-100","text-gray-800"]):so(["bg-yellow-100","text-yellow-800"]),t([h("span",{className:Tr(" ",Eo(Co((()=>Io(xo("px-2"),Co((()=>Io(xo("inline-flex"),Co((()=>Io(xo("text-xs"),Co((()=>Io(xo("leading-5"),Co((()=>Io(xo("font-semibold"),Co((()=>Io(xo("rounded"),Co((()=>c)))))))))))))))))))))),children:u})]))),Co((()=>Io(Do((t=>{const n=lo((e=>e.Name===t),e.Tags);return xo(null==n?i:r(n.Value))}),s),Co((()=>Io(xo(o(e.Configuration.Name,a)),Co((()=>{let t;return Io((t=e.Invite,xo(null==t?i:r(hd(t.DateIssued)))),Co((()=>Io(xo(r(hd(e.LastUpdated))),Co((()=>xo(r(function(e){const t=e.Status;switch(t.tag){case 1:{const n=function(e){e:for(;;){const t=e;if(Br(t))return;{const n=Vr(t);if(Br(n))return Ht(qr(t));e=n;continue e}}}(t.fields[0].CompletedSteps);if(null!=n){const t=n,r=lo((e=>e.Id===t.Type),e.Configuration.Steps);return null==r?"A step was completed":Er(Sr("%P() step completed",[r.DisplayName]))}return"Workflow started"}case 2:return"Workflow completed";case 3:return"Workflow abandoned";default:return null==e.Invite?"Workflow created":"Invite sent"}}(e)))))))))})))))))))})))})))})))})))))}))}),e.Data))))))})}function md(e){const t=(n=e.backendUrl,r=e.accessToken,new Ju(n,r));var n,r;const o=function(e,t,n){return oc($o(e,n),((e,t)=>function(e,t){if(1===e.tag)return[new gc(t.ProcessInstanceList,e.fields[0]),Sc()];{const i=e.fields[0];let s,a;switch(3===i.tag?s=1:0===i.tag?s=2:1===i.tag?s=3:1===i.fields[0].tag?s=1:(s=0,a=i.fields[0].fields[0]),s){case 0:return Mc(),[new gc(new ys(2,new Vu((n=e=>e.LastUpdated,r=a.Data,o={Compare:(e,t)=>pr(e,t)},fo(((e,t)=>-1*o.Compare(n(e),n(t))),r)))),t.SelectedStatusTab),Sc()];case 1:return Mc(),[new gc(new ys(3,new Error),t.SelectedStatusTab),Sc()];case 2:return[new gc(new ys(0),t.SelectedStatusTab),Sc()];case 3:return[new gc(new ys(1),t.SelectedStatusTab),Sc()]}}var n,r,o}(e,t)),n)}(Ic,0,[]),i=o[0],s=o[1];return Go(function(e,n){const r=Bo(Ni());return zo((()=>Uo((()=>{Ai(r.current)})))),qo((e=>{Di(r.current)||Ri(Oi.Delay((()=>Oi.TryWith(Oi.Delay((()=>(n(new ys(1)),Oi.Bind(Xu(t),(e=>(n(new ys(2,e)),Oi.Zero())))))),(e=>(n(new ys(3,e)),Oi.Zero()))))),r.current)}))}(0,(e=>{s(new mc(0,e))}))),h("div",{children:jo.Children.toArray(Array.from(Eo(Co((()=>{const e=i.ProcessInstanceList;switch(e.tag){default:return xo(h("p",{children:["Loading..."]}));case 2:{const t=e.fields[0];return Io(xo(function(e,t,n){const r=Xr(h("nav",{className:Tr(" ",["flex","space-x-4","p-1","mb-5","bg-gray-50"]),children:jo.Children.toArray(Array.from(Eo(Co((()=>co((r=>{let o;const i=0|Qr(yc(r,t).Data),s=h("span",{className:Tr(" ",Eo(Co((()=>Ze(r,e)?1===r.tag?xo("text-green-500"):2===r.tag?xo("text-blue-500"):3===r.tag?xo("text-yellow-500"):xo("text-gray-800"):Co((()=>new Array(0))))))),children:jo.Children.toArray(Array.from(Eo(Co((()=>1===r.tag?xo(mf):2===r.tag?xo(gf):3===r.tag?xo(wf):xo(pf))))))});return h("a",{className:Tr(" ",Eo(Co((()=>Io(xo("flex-1"),Co((()=>Io(xo("px-3"),Co((()=>Io(xo("py-2"),Co((()=>Io(xo("font-medium"),Co((()=>Io(xo("text-sm"),Co((()=>Io(xo("rounded-md"),Co((()=>Io(xo("text-center"),Co((()=>Io(xo("space-x-2"),Co((()=>Ze(r,e)?Io(xo("bg-white"),Co((()=>Io(xo("text-gray-800"),Co((()=>Io(xo("filter"),Co((()=>xo("drop-shadow")))))))))):Io(xo("text-gray-600"),Co((()=>Io(xo("hover:bg-gray-100"),Co((()=>xo("cursor-pointer"))))))))))))))))))))))))))))))))))),onClick:e=>{n(r)},children:jo.Children.toArray([s,(o=pc(r),h("span",{children:[o]})),h("span",{className:Tr(" ",["text-gray-400"]),children:Er(Sr("(%P())",[i]))})])})}),so([new hc(0),new hc(1),new hc(2),new hc(3)])))))))}));return h("div",{children:jo.Children.toArray(Array.from(r))})}(i.SelectedStatusTab,t,(e=>{s(new mc(1,e))}))),Co((()=>{const e=yc(i.SelectedStatusTab,t);return xo((n=function(e){let t;return h("thead",{className:Tr(" ",["bg-gray-50"]),children:jo.Children.toArray([(t=Eo(Co((()=>co((e=>h("th",{scope:"col",className:Tr(" ",["px-6","py-3","text-left","text-xs","font-medium","text-gray-500","uppercase","tracking-wider"]),children:e})),e)))),h("tr",{children:jo.Children.toArray(Array.from(t))}))])})}(Eo(Co((()=>Io(xo("Ext. ID"),Co((()=>Io(xo("Onboarder"),Co((()=>Io(xo("Manager"),Co((()=>Io(xo("Status"),Co((()=>Io(wc(e),Co((()=>Io(xo("Workflow"),Co((()=>Io(xo("Invited"),Co((()=>Io(xo("Updated"),Co((()=>xo("Last Action"))))))))))))))))))))))))))))),r=pd(e),h("div",{className:Tr(" ",["flex","flex-col"]),children:jo.Children.toArray([h("div",{className:Tr(" ",["-my-2","overflow-x-auto","sm:-mx-6","lg:-mx-8"]),children:jo.Children.toArray([h("div",{className:Tr(" ",["py-2","align-middle","inline-block","min-w-full","sm:px-6","lg:px-8"]),children:jo.Children.toArray([h("div",{className:Tr(" ",["shadow","overflow-hidden","border-b","border-gray-200","sm:rounded-lg"]),children:jo.Children.toArray([h("table",{className:Tr(" ",["min-w-full","divide-y","divide-gray-200"]),children:jo.Children.toArray([n,r])})])})])})])})])})));var n,r})))}case 3:return xo(h("p",{children:["There was an error loading. Please try refreshing this page."]}))}})))))})}class gd extends ut{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class wd{constructor(e){this.state=new gd(0,Dr(new Array(nt(((e,t)=>Ke(e,t)),e,10)),0,nt(((e,t)=>Ke(e,t)),e,10),null),0)}}function yd(e){const t=e.state;if(1===t.tag){const n=0|t.fields[1],r=0|t.fields[2],o=t.fields[0],i=(r+1)%o.length|0;return e.state=i===n?new gd(0,o,n):new gd(1,o,n,i),Ht(o[r])}}class _d extends ct{constructor(e,t,n,r,o,i,s){super(),this.init=e,this.update=t,this.subscribe=n,this.view=r,this.setState=o,this.onError=i,this.syncDispatch=s}}function vd(e,t){const n=t.init(e),r=n[0],o=new wd(10);let i=!1,s=r;const a=function(e,t,n){if(null!=t){if(rt in t){t=t.__CURRIED__;for(let e=0;e<n.length;e++)t=t(n[e]);return t}return e=>t.apply(void 0,n.concat([e]))}}(0,t.syncDispatch,[e=>{if(i)!function(e,t){const n=e.state;if(1===n.tag){const i=0|n.fields[1],s=0|n.fields[2],a=n.fields[0];a[i]=t;const u=(i+1)%a.length|0;e.state=u===s?new gd(1,(r=s,o=a,Array.from(Co((()=>Io(Ao(r,o),Co((()=>{return Io((e=r,t=o,Mo((()=>bo(t)),((t,n)=>{if(t<e){if(n["System.Collections.IEnumerator.MoveNext"]())return Ht(n["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(ho+"\\nParameter name: source")}}),(e=>{e.Dispose()}))),Co((()=>Do((e=>xo(null)),Zu(0,1,o.length,0,((e,t)=>e+t))))));var e,t}))))))),a.length,0):new gd(1,a,u,s)}else{const r=0|n.fields[1],o=n.fields[0];o[r]=t;const i=(r+1)%o.length|0;e.state=new gd(1,o,i,r)}var r,o}(o,e);else{i=!0;let n=Ht(e);for(;null!=n;){const e=Bt(n);try{const n=t.update(e,s),r=n[0];t.setState(r,a),Cc((n=>{t.onError([Er(Cr("Error in command while handling: %A"))(e),n])}),a,n[1]),s=r}catch(n){t.onError([Er(Cr("Unable to process the message: %A"))(e),n])}n=yd(o)}i=!1}}]);t.setState(r,a),Cc((e=>{t.onError(["Error intitializing:",e])}),a,function(e){const t=zr();let n=t;const r=e=>{n=no(((e,t)=>{const n=new Wr(t,void 0);return e.tail=n,n}),n,e)};if(je(e))e.forEach(r);else if(e instanceof Wr)oo(r,e);else{const t=Ue(e);try{for(;t["System.Collections.IEnumerator.MoveNext"]();)r(t["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{t.Dispose()}}const o=n,i=zr();return o.tail=i,Vr(t)}(so([(()=>{try{return t.subscribe(r)}catch(e){return t.onError(["Unable to subscribe:",e]),Sc()}})(),n[1]])))}class bd extends ct{constructor(e,t,n){super(),this.model=e,this.render=t,this.equal=n}}class Cd extends g{constructor(e){super(e)}shouldComponentUpdate(e,t){return!this.props.equal(this.props.model,e.model)}render(){return this.props.render()}}function Sd(e){return Array.from(e)}function xd(e){return String(e)}function Ed(e){return String(e)}function kd(e){return String(e)}function Md(e){return String(e)}function Id(){return null}function Td(e,t,n,r){const o=new lt(null),i=ps(Et(r),o,e);let s;if(Ut(r)){const e=jr((e=>{const r=Js(t,xt(e)),o=Od(i,t,n,e[1]);return t=>i=>{const s=function(e,t){return e[t[0]]}(t,e);return(!n||n&&null!=s)&&(i[r]=o(s)),i}}),jt(r));s=t=>Oo(ot(2,st((e=>n=>n(t,e)),[0,[0,2]])),{},e)}else{if(!Ft(r)){let e;const t=Et(r);throw e=Er(Cr("Cannot generate auto encoder for %s. Please pass an extra encoder."))(t),new Error(e)}s=e=>{const o=function(e,t){const n=Dt(t)[e.tag];if(null==n)throw new Error(`Cannot find case ${e.name} in union type`);return[n,e.fields]}(e,r),s=o[0],a=o[1],u=0|a.length;if(0===u)return xt(s);{const e=0|u,r=Wt(s),o=Dr(new Array(e+1),0,e+1,null);o[0]=xt(s);for(let s=1;s<=e;s++){const e=Od(i,t,n,r[s-1][1]);o[s]=e(a[s-1])}return o}}}return o.contents=s,s}function Od(e,t,n,r){const o=Et(r),i=ms(o,e);if(null==i){if(kt(r)){const o=Od(e,t,n,Mt(r));return e=>Sd(No(o,e))}if(Tt(r)){const e=Et(Pt(r));if("System.SByte"===e)return e=>xd(e);if("System.Byte"===e)return e=>Ed(e);if("System.Int16"===e)return e=>kd(e);if("System.UInt16"===e)return e=>Md(e);if("System.Int32"===e)return e=>e;if("System.UInt32"===e)return e=>e;{const e=Et(r),t=kr(Cr("Cannot generate auto encoder for %s.\nThoth.Json.Net only support the folluwing enum types:\n- sbyte\n- byte\n- int16\n- uint16\n- int\n- uint32\nIf you can't use one of these types, please pass an extra encoder.\n "))(e);return e=>t(e)}}if(It(r)){if(Lt(r)){const o=jr((r=>Od(e,t,n,r)),Rt(r));return e=>{return Sd((t=(e,t)=>o[e](t),n=e,Mo((()=>bo(n)),((e,n)=>n["System.Collections.IEnumerator.MoveNext"]()?Ht(t(e,n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{e.Dispose()}))));var t,n}}{const o=Et(Ot(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===o){const o=new We((()=>{return o=Od(e,t,n,ht(r)[0]),e=>{return null!=(t=Yt(o,e))?Bt(t):null;var t};var o}));return e=>null==e?null:o.Value(e)}if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===o||"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===o){const o=Od(e,t,n,ht(r)[0]);return e=>Sd(No(o,e))}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===o){const o=ht(r)[0],i=Od(e,t,n,ht(r)[1]);if("System.String"===Et(o)||"System.Guid"===Et(o))return e=>Oo(((e,t)=>{const n=t;return e[n[0]]=i(n[1]),e}),{},e);{let r;const s=Od(e,t,n,o);return r=e=>s(e),e=>Sd(No((e=>{const t=e;return[r(t[0]),i(t[1])]}),e))}}return Td(e,t,n,r)}}return"System.Boolean"===o?e=>e:"Microsoft.FSharp.Core.Unit"===o?Id:"System.String"===o?e=>e:"System.SByte"===o?e=>xd(e):"System.Byte"===o?e=>Ed(e):"System.Int16"===o?e=>kd(e):"System.UInt16"===o?e=>Md(e):"System.Int32"===o?e=>e:"System.UInt32"===o?e=>e:"System.Double"===o?e=>e:"System.Single"===o?e=>e:"System.DateTime"===o?e=>sr(e,"O"):"System.DateTimeOffset"===o?e=>sr(e,"O"):"System.TimeSpan"===o?e=>function(e,t="c",n){if(-1===["c","g","G"].indexOf(t))throw new Error("Custom formats are not supported");const r=Math.abs(function(e){return Wa(e/864e5)}(e)),o=Math.abs(function(e){return Wa(e%864e5/36e5)}(e)),i=Math.abs(function(e){return Wa(e%36e5/6e4)}(e)),s=Math.abs(function(e){return Wa(e%6e4/1e3)}(e)),a=Math.abs(function(e){return Wa(e%1e3)}(e));return`${e<0?"-":""}${0!==r||"c"!==t&&"g"!==t?"c"===t?r+".":r+":":""}${"g"===t?o:Ge(o,2)}:${Ge(i,2)}:${Ge(s,2)}${0!==a||"c"!==t&&"g"!==t?"g"===t?"."+Ge(a,3):"."+function(e,t,n){let r=e.toString(10);for(;r.length<3;)r="0"+r;for(;r.length<7;)r+="0";return r}(a):""}`}(e):"System.Guid"===o?e=>e:"System.Object"===o?e=>e:Td(e,t,n,r)}{const e=i;return t=>e.contents(t)}}function Pd(e,t,n,r,o,i){return function(e,t){return JSON.stringify(t,ot(2,null),Ht(e))}(e,function(e,t,n,r){const o=Vt(e,new $s(0)),i=Vt(n,!0),s=Bt(r).ResolveType();return Od(function(e){return null!=e?gs(((e,t)=>new lt(t[0])),e.Coders):ws()}(t),o,i,s)}(n,r,o,i)(t))}function Nd(e){const t=encodeURIComponent(e.fields[0]),n=encodeURIComponent("apollo-workflows-progress-app"),r=encodeURIComponent(Ss);return Os(0,(()=>{let e,o;const i=Oi.Bind(zs((o=Ws(new Ps(1),Ls(Er(Sr("%P()/connect/token",[vs])))),e=Gs(new Ns(0,"Content-Type","application/x-www-form-urlencoded"),o),s=new As(1,Er(Sr("grant_type=authorization_code&code=%P()&client_id=%P()&redirect_uri=%P()",[t,n,r]))),new Ds((a=e).url,a.method,a.headers,a.withCredentials,a.overridenMimeType,a.overridenResponseType,s))),(e=>Oi.Return(new Vo(0,e))));var s,a;return Oi.Delay((()=>Oi.Bind(i,(e=>{let t;const n=e;return 1===n.tag?Oi.Return(new Vo(1,n.fields[0])):Oi.ReturnFrom((t=n.fields[0],200===t.statusCode?Oi.Return(Ru(t.responseText,void 0,void 0,{ResolveType:Ko})):Oi.Return(new Vo(1,"Unexpected result from backend"))))}))))}))}function Ad(){Po((e=>{document.body.removeChild(e)}),qt($t(document.getElementById("external-loading-page-container"))))}function Dd(e,t){const n=function(e){return[new ys(0),Ec(new ei(0,new Xo(0),e))]}(t);return[new Ms(e.CurrentPage,n[0],e.AppMode),xc((e=>new Is(1,e)),n[1])]}function jd(e,t){switch(e.tag){case 1:{const n=function(e,t){let n;return 1===e.fields[0].tag?1===e.fields[0].fields[0].tag?[new ys(2,new Vo(1,Er(Sr("SignIn failed: %P()",[e.fields[0].fields[0].fields[0]])))),Sc()]:[new ys(2,new Vo(0,e.fields[0].fields[0].fields[0])),(n=window.location.pathname,Xr((e=>{!function(e,t,n){history.pushState(void 0,"",Si(e,2));const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)}(Xr(n))})))]:[new ys(1),kc((e=>{!function(e){bc(0,(t=>{Ri(e)}))}(e)}),(e=>Nd(e)),e.fields[1],(t=>{const n=[new Xo(1,t),e.fields[1]];return new ei(0,n[0],n[1])}),(t=>{const n=[new Xo(1,new Vo(1,t.message)),e.fields[1]];return new ei(0,n[0],n[1])}))]}(e.fields[0],t.Credentials),r=n[0],o=[r,t.AppMode];let i,s;return 2===o[0].tag&&0===o[0].fields[0].tag&&1===o[1].tag?(i=0,s=o[0].fields[0].fields[0]):i=1,0===i&&function(e){const t=["credentials",Pd(0,new Qo(e.id_token,e.access_token,e.expires_in,void 0,e.scope,e.token_type),void 0,void 0,void 0,{ResolveType:Ko})];window.sessionStorage.setItem(t[0],t[1])}(s),[new Ms(t.CurrentPage,r,t.AppMode),xc((e=>new Is(1,e)),n[1])]}case 2:return Ad(),[new Ms(new Es(2),t.Credentials,t.AppMode),Sc()];case 3:return Ad(),[t,Sc()];default:{const n=ks(e.fields[0]),r=new Ms(n,t.Credentials,t.AppMode);return 1===n.tag?Dd(r,n.fields[0]):[r,Sc()]}}}function Rd(e){const t=e.dispatch,n=e.state;Go((()=>{window.addEventListener("progressComponentReady",(e=>{t(new Is(3))}))}));const r=h("div",{className:Tr(" ",["bg-white","p-6","overflow-x-hidden"]),children:jo.Children.toArray(Array.from(Eo(Co((()=>{switch(n.CurrentPage.tag){case 1:return xo(function(){let e,t;return h("div",{className:Tr(" ",["container","vh-100","fade-in"]),children:jo.Children.toArray([h("div",{className:Tr(" ",["row","h-100","justify-content-center","align-items-center"]),children:jo.Children.toArray([h("div",{className:Tr(" ",["col","col-sm-10","col-md-8","col-lg-5","card","border-light","rounded-lg","shadow-sm"]),children:jo.Children.toArray([h("div",{className:"card-body",children:jo.Children.toArray([h("div",{className:Tr(" ",["pt-4","text-center"]),children:jo.Children.toArray([h("i",{className:Tr(" ",["fas","fa-5x","fa-shield-check","text-success"])}),h("h4",{className:Tr(" ",["my-4","font-weight-normal","text-success"]),children:"Your identity is confirmed"}),h("p",{className:Tr(" ",["mt-3","mb-5","text-muted"]),children:"You will be redirected in a moment."})])}),h("p",{className:Tr(" ",["mt-5","mb-0","text-black-50","text-right"]),children:jo.Children.toArray([(e=Er(Sr("Flare HR Pty Ltd © 2015-%P()",[(t=fr(),dr(t))])),h("small",{children:[e]}))])})])})])})])})])})}());case 2:return xo(h(Ts,null));default:{const e=n.Credentials;let t,r;switch(2===e.tag&&0===e.fields[0].tag?(t=0,r=e.fields[0].fields[0]):t=1,t){case 0:return xo(h(md,{accessToken:r.access_token,backendUrl:bs}));case 1:return xo(h("h1",{children:["There was an error signing you in. Please try sign in again."]}))}}}})))))});return Ei({hashMode:2,onUrlChanged:e=>{t(new Is(0,e))},application:h(m,{},r)})}!function(e){vd(void 0,e)}(("workflows-progress-app",Zf=(e,t)=>h(Rd,{state:e,dispatch:t}),Xf=new _d((function(){const e=ks(xi(window.location.pathname+window.location.search,2)),t=Ze(window.location,window.parent.location)?new xs(1):new xs(0),n=new Ms(e,new ys(0),t);let r;switch(r=1===e.tag?0:0===e.tag&&Ze(t,new xs(1))?1:2,r){case 0:return Dd(n,e.fields[0]);case 1:{const e=Jt((e=>{return 1===(t=Ru(e,void 0,void 0,{ResolveType:Ko})).tag?void 0:Ht(t.fields[0]);var t}),$t(window.sessionStorage.getItem("credentials")));return null==e?[n,Ec(new Is(2))]:[new Ms(n.CurrentPage,new ys(2,new Vo(0,e)),n.AppMode),Sc()]}case 2:return[n,Ec(new Is(2))]}}),((e,t)=>jd(e,t)),(e=>Sc()),Zf,((e,t)=>{Zf(e,t)}),(e=>{var t,n;t=e[0],n=e[1],console.error(Ht(t),n)}),ot(2,(e=>e))),function(e,t,n){return function(e,t){return new _d(t.init,t.update,t.subscribe,t.view,e,t.onError,t.syncDispatch)}(((r,o)=>{Se(e(((e,t)=>e===t),ot(2,function(e){return it(2,e.view)}(n)),r,o),document.getElementById(t))}),n)}(((e,t,n,r)=>function(e,t,n,r){return h(Cd,new bd(n,(()=>t(n,r)),e))}(e,t,n,r)),"workflows-progress-app",Xf)))})()})();
2
+ (()=>{var e={703:(e,t,n)=>{"use strict";var r=n(414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,s){if(s!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},697:(e,t,n)=>{e.exports=n(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e,t,r,o,i,s,a,u={},c=[],l=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function f(e,t){for(var n in t)e[n]=t[n];return e}function d(e){var t=e.parentNode;t&&t.removeChild(e)}function h(t,n,r){var o,i,s,a={};for(s in n)"key"==s?o=n[s]:"ref"==s?i=n[s]:a[s]=n[s];if(arguments.length>2&&(a.children=arguments.length>3?e.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(s in t.defaultProps)void 0===a[s]&&(a[s]=t.defaultProps[s]);return p(t,a,o,i,null)}function p(e,n,o,i,s){var a={type:e,props:n,key:o,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==s?++r:s};return null!=t.vnode&&t.vnode(a),a}function m(e){return e.children}function g(e,t){this.props=e,this.context=t}function w(e,t){if(null==t)return e.__?w(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?w(e):null}function y(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return y(e)}}function _(e){(!e.__d&&(e.__d=!0)&&o.push(e)&&!v.__r++||s!==t.debounceRendering)&&((s=t.debounceRendering)||i)(v)}function v(){for(var e;v.__r=o.length;)e=o.sort((function(e,t){return e.__v.__b-t.__v.__b})),o=[],e.some((function(e){var t,n,r,o,i,s;e.__d&&(i=(o=(t=e).__v).__e,(s=t.__P)&&(n=[],(r=f({},o)).__v=o.__v+1,T(s,o,r,t.__n,void 0!==s.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?w(o):i,o.__h),O(n,o),o.__e!=i&&y(o)))}))}function b(e,t,n,r,o,i,s,a,l,f){var d,h,g,y,_,v,b,S=r&&r.__k||c,E=S.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(y=n.__k[d]=null==(y=t[d])||"boolean"==typeof y?null:"string"==typeof y||"number"==typeof y||"bigint"==typeof y?p(null,y,null,null,y):Array.isArray(y)?p(m,{children:y},null,null,null):y.__b>0?p(y.type,y.props,y.key,null,y.__v):y)){if(y.__=n,y.__b=n.__b+1,null===(g=S[d])||g&&y.key==g.key&&y.type===g.type)S[d]=void 0;else for(h=0;h<E;h++){if((g=S[h])&&y.key==g.key&&y.type===g.type){S[h]=void 0;break}g=null}T(e,y,g=g||u,o,i,s,a,l,f),_=y.__e,(h=y.ref)&&g.ref!=h&&(b||(b=[]),g.ref&&b.push(g.ref,null,y),b.push(h,y.__c||_,y)),null!=_?(null==v&&(v=_),"function"==typeof y.type&&null!=y.__k&&y.__k===g.__k?y.__d=l=C(y,l,e):l=x(e,y,g,S,_,l),f||"option"!==n.type?"function"==typeof n.type&&(n.__d=l):e.value=""):l&&g.__e==l&&l.parentNode!=e&&(l=w(g))}for(n.__e=v,d=E;d--;)null!=S[d]&&("function"==typeof n.type&&null!=S[d].__e&&S[d].__e==n.__d&&(n.__d=w(r,d+1)),A(S[d],S[d]));if(b)for(d=0;d<b.length;d++)N(b[d],b[++d],b[++d])}function C(e,t,n){var r,o;for(r=0;r<e.__k.length;r++)(o=e.__k[r])&&(o.__=e,t="function"==typeof o.type?C(o,t,n):x(n,o,o,e.__k,o.__e,t));return t}function S(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){S(e,t)})):t.push(e)),t}function x(e,t,n,r,o,i){var s,a,u;if(void 0!==t.__d)s=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),s=null;else{for(a=i,u=0;(a=a.nextSibling)&&u<r.length;u+=2)if(a==o)break e;e.insertBefore(o,i),s=i}return void 0!==s?s:o.nextSibling}function E(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||l.test(t)?n:n+"px"}function k(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||E(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||E(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?I:M,i):e.removeEventListener(t,i?I:M,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function M(e){this.l[e.type+!1](t.event?t.event(e):e)}function I(e){this.l[e.type+!0](t.event?t.event(e):e)}function T(e,n,r,o,i,s,a,u,c){var l,d,h,p,w,y,_,v,C,S,x,E=n.type;if(void 0!==n.constructor)return null;null!=r.__h&&(c=r.__h,u=n.__e=r.__e,n.__h=null,s=[u]),(l=t.__b)&&l(n);try{e:if("function"==typeof E){if(v=n.props,C=(l=E.contextType)&&o[l.__c],S=l?C?C.props.value:l.__:o,r.__c?_=(d=n.__c=r.__c).__=d.__E:("prototype"in E&&E.prototype.render?n.__c=d=new E(v,S):(n.__c=d=new g(v,S),d.constructor=E,d.render=D),C&&C.sub(d),d.props=v,d.state||(d.state={}),d.context=S,d.__n=o,h=d.__d=!0,d.__h=[]),null==d.__s&&(d.__s=d.state),null!=E.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=f({},d.__s)),f(d.__s,E.getDerivedStateFromProps(v,d.__s))),p=d.props,w=d.state,h)null==E.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==E.getDerivedStateFromProps&&v!==p&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(v,S),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(v,d.__s,S)||n.__v===r.__v){d.props=v,d.state=d.__s,n.__v!==r.__v&&(d.__d=!1),d.__v=n,n.__e=r.__e,n.__k=r.__k,n.__k.forEach((function(e){e&&(e.__=n)})),d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(v,d.__s,S),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(p,w,y)}))}d.context=S,d.props=v,d.state=d.__s,(l=t.__r)&&l(n),d.__d=!1,d.__v=n,d.__P=e,l=d.render(d.props,d.state,d.context),d.state=d.__s,null!=d.getChildContext&&(o=f(f({},o),d.getChildContext())),h||null==d.getSnapshotBeforeUpdate||(y=d.getSnapshotBeforeUpdate(p,w)),x=null!=l&&l.type===m&&null==l.key?l.props.children:l,b(e,Array.isArray(x)?x:[x],n,r,o,i,s,a,u,c),d.base=n.__e,n.__h=null,d.__h.length&&a.push(d),_&&(d.__E=d.__=null),d.__e=!1}else null==s&&n.__v===r.__v?(n.__k=r.__k,n.__e=r.__e):n.__e=P(r.__e,n,r,o,i,s,a,c);(l=t.diffed)&&l(n)}catch(e){n.__v=null,(c||null!=s)&&(n.__e=u,n.__h=!!c,s[s.indexOf(u)]=null),t.__e(e,n,r)}}function O(e,n){t.__c&&t.__c(n,e),e.some((function(n){try{e=n.__h,n.__h=[],e.some((function(e){e.call(n)}))}catch(e){t.__e(e,n.__v)}}))}function P(t,n,r,o,i,s,a,c){var l,f,h,p=r.props,m=n.props,g=n.type,y=0;if("svg"===g&&(i=!0),null!=s)for(;y<s.length;y++)if((l=s[y])&&(l===t||(g?l.localName==g:3==l.nodeType))){t=l,s[y]=null;break}if(null==t){if(null===g)return document.createTextNode(m);t=i?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,m.is&&m),s=null,c=!1}if(null===g)p===m||c&&t.data===m||(t.data=m);else{if(s=s&&e.call(t.childNodes),f=(p=r.props||u).dangerouslySetInnerHTML,h=m.dangerouslySetInnerHTML,!c){if(null!=s)for(p={},y=0;y<t.attributes.length;y++)p[t.attributes[y].name]=t.attributes[y].value;(h||f)&&(h&&(f&&h.__html==f.__html||h.__html===t.innerHTML)||(t.innerHTML=h&&h.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||k(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||k(e,i,t[i],n[i],r)}(t,m,p,i,c),h)n.__k=[];else if(y=n.props.children,b(t,Array.isArray(y)?y:[y],n,r,o,i&&"foreignObject"!==g,s,a,s?s[0]:r.__k&&w(r,0),c),null!=s)for(y=s.length;y--;)null!=s[y]&&d(s[y]);c||("value"in m&&void 0!==(y=m.value)&&(y!==t.value||"progress"===g&&!y)&&k(t,"value",y,p.value,!1),"checked"in m&&void 0!==(y=m.checked)&&y!==t.checked&&k(t,"checked",y,p.checked,!1))}return t}function N(e,n,r){try{"function"==typeof e?e(n):e.current=n}catch(e){t.__e(e,r)}}function A(e,n,r){var o,i;if(t.unmount&&t.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||N(o,null,n)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){t.__e(e,n)}o.base=o.__P=null}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&A(o[i],n,"function"!=typeof e.type);r||null==e.__e||d(e.__e),e.__e=e.__d=void 0}function D(e,t,n){return this.constructor(e,n)}function j(n,r,o){var i,s,a;t.__&&t.__(n,r),s=(i="function"==typeof o)?null:o&&o.__k||r.__k,a=[],T(r,n=(!i&&o||r).__k=h(m,null,[n]),s||u,u,void 0!==r.ownerSVGElement,!i&&o?[o]:s?null:r.firstChild?e.call(r.childNodes):null,a,!i&&o?o:s?s.__e:r.firstChild,i),O(a,n)}function R(e,t){j(e,t,R)}function F(t,n,r){var o,i,s,a=f({},t.props);for(s in n)"key"==s?o=n[s]:"ref"==s?i=n[s]:a[s]=n[s];return arguments.length>2&&(a.children=arguments.length>3?e.call(arguments,2):r),p(t.type,a,o||t.key,i||t.ref,null)}e=c.slice,t={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(t){e=t}throw e}},r=0,g.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=f({},this.state),"function"==typeof e&&(e=e(f({},n),this.props)),e&&f(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),_(this))},g.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),_(this))},g.prototype.render=m,o=[],i="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,v.__r=0,a=0;var U,L,W,G=0,z=[],H=t.__b,B=t.__r,$=t.diffed,q=t.__c,V=t.unmount;function Y(e,n){t.__h&&t.__h(L,e,G||n),G=0;var r=L.__H||(L.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function J(e,t,n){var r=Y(U++,2);return r.t=e,r.__c||(r.__=[n?n(t):oe(void 0,t),function(e){var t=r.t(r.__[0],e);r.__[0]!==t&&(r.__=[t,r.__[1]],r.__c.setState({}))}],r.__c=L),r.__}function X(e,n){var r=Y(U++,3);!t.__s&&re(r.__H,n)&&(r.__=e,r.__H=n,L.__H.__h.push(r))}function Z(e,n){var r=Y(U++,4);!t.__s&&re(r.__H,n)&&(r.__=e,r.__H=n,L.__h.push(r))}function Q(e,t){var n=Y(U++,7);return re(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function K(){z.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(te),e.__H.__h.forEach(ne),e.__H.__h=[]}catch(n){e.__H.__h=[],t.__e(n,e.__v)}})),z=[]}t.__b=function(e){L=null,H&&H(e)},t.__r=function(e){B&&B(e),U=0;var t=(L=e.__c).__H;t&&(t.__h.forEach(te),t.__h.forEach(ne),t.__h=[])},t.diffed=function(e){$&&$(e);var n=e.__c;n&&n.__H&&n.__H.__h.length&&(1!==z.push(n)&&W===t.requestAnimationFrame||((W=t.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),ee&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);ee&&(t=requestAnimationFrame(n))})(K)),L=void 0},t.__c=function(e,n){n.some((function(e){try{e.__h.forEach(te),e.__h=e.__h.filter((function(e){return!e.__||ne(e)}))}catch(r){n.some((function(e){e.__h&&(e.__h=[])})),n=[],t.__e(r,e.__v)}})),q&&q(e,n)},t.unmount=function(e){V&&V(e);var n=e.__c;if(n&&n.__H)try{n.__H.__.forEach(te)}catch(e){t.__e(e,n.__v)}};var ee="function"==typeof requestAnimationFrame;function te(e){var t=L;"function"==typeof e.__c&&e.__c(),L=t}function ne(e){var t=L;e.__c=e.__(),L=t}function re(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function oe(e,t){return"function"==typeof t?t(e):t}function ie(e,t){for(var n in t)e[n]=t[n];return e}function se(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function ae(e){this.props=e}(ae.prototype=new g).isPureReactComponent=!0,ae.prototype.shouldComponentUpdate=function(e,t){return se(this.props,e)||se(this.state,t)};var ue=t.__b;t.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ue&&ue(e)};var ce="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,le=function(e,t){return null==e?null:S(S(e).map(t))},fe={map:le,forEach:le,count:function(e){return e?S(e).length:0},only:function(e){var t=S(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:S},de=t.__e;t.__e=function(e,t,n){if(e.then)for(var r,o=t;o=o.__;)if((r=o.__c)&&r.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t);de(e,t,n)};var he=t.unmount;function pe(){this.__u=0,this.t=null,this.__b=null}function me(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function ge(){this.u=null,this.o=null}t.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),he&&he(e)},(pe.prototype=new g).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=me(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__e){var e=r.state.__e;r.__v.__k[0]=function e(t,n,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)})),t.__c&&t.__c.__P===n&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__e:r.__b=null});t=r.t.pop();)t.forceUpdate()}},u=!0===t.__h;r.__u++||u||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(s,s)},pe.prototype.componentWillUnmount=function(){this.t=[]},pe.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]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=ie({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)}))),t}(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__e&&h(m,null,e.fallback);return o&&(o.__h=null),[h(m,null,t.__e?null:e.children),o]};var we=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!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 ye(e){return this.getChildContext=function(){return e.context},e.children}function _e(e){var t=this,n=e.i;t.componentWillUnmount=function(){j(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(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),j(h(ye,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}(ge.prototype=new g).__e=function(e){var t=this,n=me(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),we(t,e,r)):o()};n?n(i):i()}},ge.prototype.render=function(e){this.u=null,this.o=new Map;var t=S(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},ge.prototype.componentDidUpdate=ge.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){we(e,n,t)}))};var ve="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,be=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Ce=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};function Se(e,t,n){return null==t.__k&&(t.textContent=""),j(e,t),"function"==typeof n&&n(),e?e.__c:null}g.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(g.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var xe=t.event;function Ee(){}function ke(){return this.cancelBubble}function Me(){return this.defaultPrevented}t.event=function(e){return xe&&(e=xe(e)),e.persist=Ee,e.isPropagationStopped=ke,e.isDefaultPrevented=Me,e.nativeEvent=e};var Ie,Te={configurable:!0,get:function(){return this.class}},Oe=t.vnode;t.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){for(var o in r={},n){var i=n[o];"value"===o&&"defaultValue"in n&&null==i||("defaultValue"===o&&"value"in n&&null==n.value?o="value":"download"===o&&!0===i?i="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!Ce(n.type)?o="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(o)?o=o.toLowerCase():be.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===i&&(i=void 0),r[o]=i)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=S(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=S(n.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r}t&&n.class!=n.className&&(Te.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",Te)),e.$$typeof=ve,Oe&&Oe(e)};var Pe=t.__r;t.__r=function(e){Pe&&Pe(e),Ie=e.__c};var Ne={ReactCurrentDispatcher:{current:{readContext:function(e){return Ie.__n[e.__c].props.value}}}};function Ae(e){return!!e&&e.$$typeof===ve}const De={useState:function(e){return G=1,J(oe,e)},useReducer:J,useEffect:X,useLayoutEffect:Z,useRef:function(e){return G=5,Q((function(){return{current:e}}),[])},useImperativeHandle:function(e,t,n){G=6,Z((function(){"function"==typeof e?e(t()):e&&(e.current=t())}),null==n?n:n.concat(e))},useMemo:Q,useCallback:function(e,t){return G=8,Q((function(){return e}),t)},useContext:function(e){var t=L.context[e.__c],n=Y(U++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(L)),t.props.value):e.__},useDebugValue:function(e,n){t.useDebugValue&&t.useDebugValue(n?n(e):e)},version:"17.0.2",Children:fe,render:Se,hydrate:function(e,t,n){return R(e,t),"function"==typeof n&&n(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(j(null,e),!0)},createPortal:function(e,t){return h(_e,{__v:e,i:t})},createElement:h,createContext:function(e,t){var n={__c:t="__cC"+a++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(_)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},createFactory:function(e){return h.bind(null,e)},cloneElement:function(e){return Ae(e)?F.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:m,isValidElement:Ae,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:g,PureComponent:ae,memo:function(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:se(this.props,e)}function r(t){return this.shouldComponentUpdate=n,h(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:function(e){function t(t,n){var r=ie({},t);return delete r.ref,e(r,(n=t.ref||n)&&("object"!=typeof n||"current"in n)?n:null)}return t.$$typeof=ce,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t},flushSync:function(e,t){return e(t)},unstable_batchedUpdates:function(e,t){return e(t)},StrictMode:m,Suspense:pe,SuspenseList:ge,lazy:function(e){var t,n,r;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return h(n,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ne};function je(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function Re(e,t){return Object.getPrototypeOf(e).constructor===Object.getPrototypeOf(t).constructor}class Fe{constructor(e){this.iter=e}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const e=this.iter.next();return this.current=e.value,!e.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function Ue(e){return"function"==typeof e.GetEnumerator?e.GetEnumerator():new Fe(e[Symbol.iterator]())}function Le(e){return{[Symbol.iterator](){return this},next(){const t=e["System.Collections.IEnumerator.MoveNext"]();return{done:!t,value:t?e["System.Collections.IEnumerator.get_Current"]():void 0}}}}class We{constructor(e){this.factory=e,this.isValueCreated=!1}get Value(){return this.isValueCreated||(this.createdValue=this.factory(),this.isValueCreated=!0),this.createdValue}get IsValueCreated(){return this.isValueCreated}}function Ge(e,t){let n=e.toString(10);for(;n.length<t;)n="0"+n;return n}function ze(e){const t=e;return"number"==typeof t.offset?t.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function He(e,t){return(e=e<0&&null!=t&&10!==t?4294967295+e+1:e).toString(t)}class Be{static id(e){return Be.idMap.has(e)||Be.idMap.set(e,++Be.count),Be.idMap.get(e)}}function $e(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=33*n^e.charCodeAt(t++);return n}function qe(e){return 2654435761*e|0}function Ve(e){return 0===e.length?0:e.reduce(((e,t)=>(e<<5)+e^t))}function Ye(e){if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return qe(e);case"string":return $e(e);default:if(function(e){return"function"==typeof e.GetHashCode}(e))return e.GetHashCode();if(je(e))return function(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=Ye(e[r]);return Ve(n)}(e);if(e instanceof Date)return function(e){return e.getTime()}(e);if(Object.getPrototypeOf(e).constructor===Object){const t=Object.values(e).map((e=>Ye(e)));return Ve(t)}return qe(Be.id(e))}}function Je(e,t,n){if(null==e)return null==t;if(null==t)return!1;if(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 Xe(e,t){return Je(e,t,Ze)}function Ze(e,t){return e===t||(null==e?null==t:null!=t&&"object"==typeof e&&(function(e){return"function"==typeof e.Equals}(e)?e.Equals(t):je(e)?je(t)&&Xe(e,t):e instanceof Date?t instanceof Date&&0===Qe(e,t):Object.getPrototypeOf(e).constructor===Object&&function(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]||!Ze(e[n[o]],t[r[o]]))return!1;return!0}(e,t)))}function Qe(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+ze(e),r=t.getTime()+ze(t)),n===r?0:n<r?-1:1}function Ke(e,t){return e===t?0:e<t?-1:1}function et(e,t){return function(e,t,n){if(null==e)return null==t?0:1;if(null==t)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]),0!==o)return o;return 0}(e,t,tt)}function tt(e,t){return e===t?0:null==e?null==t?0:-1:null==t?1:"object"!=typeof e?e<t?-1:1:function(e){return"function"==typeof e.CompareTo}(e)?e.CompareTo(t):je(e)?je(t)?et(e,t):-1:e instanceof Date?t instanceof Date?Qe(e,t):-1:Object.getPrototypeOf(e).constructor===Object?function(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return n.length<r.length?-1:1;n.sort(),r.sort();for(let o=0,i=0;o<n.length;o++){const s=n[o];if(s!==r[o])return s<r[o]?-1:1;if(i=tt(e[s],t[s]),0!==i)return i}return 0}(e,t):-1}function nt(e,t,n){return e(t,n)>0?t:n}Be.idMap=new WeakMap,Be.count=0;const rt="__CURRIED__";function ot(e,t){if(null==t||t.length>1)return t;let n;switch(e){case 2:n=(e,n)=>t(e)(n);break;case 3:n=(e,n,r)=>t(e)(n)(r);break;case 4:n=(e,n,r,o)=>t(e)(n)(r)(o);break;case 5:n=(e,n,r,o,i)=>t(e)(n)(r)(o)(i);break;case 6:n=(e,n,r,o,i,s)=>t(e)(n)(r)(o)(i)(s);break;case 7:n=(e,n,r,o,i,s,a)=>t(e)(n)(r)(o)(i)(s)(a);break;case 8:n=(e,n,r,o,i,s,a,u)=>t(e)(n)(r)(o)(i)(s)(a)(u);break;default:throw new Error("Uncurrying to more than 8-arity is not supported: "+e)}return n.__CURRIED__=t,n}function it(e,t){if(null==t||1===t.length)return t;if(rt in t)return t.__CURRIED__;switch(e){case 2:return e=>n=>t(e,n);case 3:return e=>n=>r=>t(e,n,r);case 4:return e=>n=>r=>o=>t(e,n,r,o);case 5:return e=>n=>r=>o=>i=>t(e,n,r,o,i);case 6:return e=>n=>r=>o=>i=>s=>t(e,n,r,o,i,s);case 7:return e=>n=>r=>o=>i=>s=>a=>t(e,n,r,o,i,s,a);case 8:return e=>n=>r=>o=>i=>s=>a=>u=>t(e,n,r,o,i,s,a,u);default:throw new Error("Currying to more than 8-arity is not supported: "+e)}}function st(e,t){function n(e,t,r,o){const i=r[o];if(0!==i){const e=i[0],n=i[1];e>1&&(t=it(e,t)),n>1&&(t=ot(n,t))}const s=e(t);return o+1===r.length?s:e=>n(s,e,r,o+1)}return r=>n(e,r,t,0)}function at(e,t=0){if(null!=e&&"object"==typeof e){if("function"==typeof e.toString)return e.toString();if(Symbol.iterator in e)return function(e){let t=0,n="[";for(const r of e){if(0===t)n+=at(r);else{if(100===t){n+="; ...";break}n+="; "+at(r)}t++}return n+"]"}(e);{const n=Object.getPrototypeOf(e).constructor;return n===Object&&t<10?"{ "+Object.entries(e).map((([e,n])=>e+" = "+at(n,t+1))).join("\n ")+" }":n.name}}return String(e)}class ut{get name(){return this.cases()[this.tag]}toJSON(){return 0===this.fields.length?this.name:[this.name].concat(this.fields)}toString(){return function(e,t){if(0===t.length)return e;{let n="",r=!0;return 1===t.length?(n=at(t[0]),r=n.indexOf(" ")>=0):n=t.map((e=>at(e))).join(", "),e+(r?" (":" ")+n+(r?")":"")}}(this.name,this.fields)}GetHashCode(){const e=this.fields.map((e=>Ye(e)));return e.splice(0,0,qe(this.tag)),Ve(e)}Equals(e){return this===e||!!Re(this,e)&&this.tag===e.tag&&Xe(this.fields,e.fields)}CompareTo(e){return this===e?0:Re(this,e)?this.tag===e.tag?et(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}class ct{toJSON(){return function(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}(this)}toString(){return e=this,"{ "+Object.entries(e).map((([e,t])=>e+" = "+at(t))).join("\n ")+" }";var e}GetHashCode(){return function(e){const t=Object.values(e).map((e=>Ye(e)));return Ve(t)}(this)}Equals(e){return function(e,t){if(e===t)return!0;if(Re(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!Ze(e[n[r]],t[n[r]]))return!1;return!0}return!1}(this,e)}CompareTo(e){return function(e,t){if(e===t)return 0;if(Re(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=tt(e[n[r]],t[n[r]]);if(0!==o)return o}return 0}return-1}(this,e)}}class lt{constructor(e,t){"function"==typeof t?(this.getter=e,this.setter=t):(this.getter=()=>e,this.setter=t=>{e=t})}get contents(){return this.getter()}set contents(e){this.setter(e)}}class ft{constructor(e,t,n,r){this.declaringType=e,this.tag=t,this.name=n,this.fields=r}}class dt{constructor(e,t,n,r,o,i,s){this.fullname=e,this.generics=t,this.construct=n,this.parent=r,this.fields=o,this.cases=i,this.enumCases=s}toString(){return Et(this)}GetHashCode(){return pt(this)}Equals(e){return mt(this,e)}}function ht(e){return null!=e.generics?e.generics:[]}function pt(e){return Ve([$e(e.fullname),...ht(e).map(pt)])}function mt(e,t){return""===e.fullname?""===t.fullname&&Je(jt(e),jt(t),(([e,t],[n,r])=>e===n&&mt(t,r))):e.fullname===t.fullname&&Je(ht(e),ht(t),mt)}function gt(e,t,n,r){return new dt(e,t,n,r)}function wt(e,t,n,r){return new dt(e,t,n,void 0,r)}function yt(e,t,n,r){const o=new dt(e,t,n,void 0,void 0,(()=>{const e=n.prototype.cases();return r().map(((t,n)=>new ft(o,n,e[n],t)))}));return o}function _t(e){return new dt("Microsoft.FSharp.Core.FSharpOption`1",[e])}function vt(e){return new dt("Microsoft.FSharp.Collections.FSharpList`1",[e])}const bt=new dt("System.Object"),Ct=(new dt("Microsoft.FSharp.Core.Unit"),new dt("System.Char"),new dt("System.String")),St=(new dt("System.Boolean"),new dt("System.SByte"),new dt("System.Byte"),new dt("System.Int16"),new dt("System.UInt16"),new dt("System.Int32"),new dt("System.UInt32"),new dt("System.Single"),new dt("System.Double"));function xt(e){if(Array.isArray(e))return e[0];if(e instanceof ft)return e.name;{const t=e.fullname.lastIndexOf(".");return-1===t?e.fullname:e.fullname.substr(t+1)}}function Et(e){const t=null==e.generics||kt(e)?[]:e.generics;return t.length>0?e.fullname+"["+t.map((e=>Et(e))).join(",")+"]":e.fullname}function kt(e){return e.fullname.endsWith("[]")}function Mt(e){var t;return kt(e)?null===(t=e.generics)||void 0===t?void 0:t[0]:void 0}function It(e){return null!=e.generics&&e.generics.length>0}function Tt(e){return null!=e.enumCases&&e.enumCases.length>0}function Ot(e){return null==e.generics?e:new dt(e.fullname,e.generics.map((()=>bt)))}function Pt(e){var t;return null===(t=e.generics)||void 0===t?void 0:t[0]}function Nt(e){if(Tt(e)&&null!=e.enumCases)return e.enumCases.map((e=>e[1]));throw new Error(`${e.fullname} is not an enum type`)}function At(e,t){const n=parseInt(t,10);return function(e,t){if(null!=e.enumCases){if("string"==typeof t){for(const n of e.enumCases)if(n[0]===t)return n;throw new Error(`'${t}' was not found in ${e.fullname}`)}for(const n of e.enumCases)if(n[1]===t)return n;return["",t]}throw new Error(`${e.fullname} is not an enum type`)}(e,isNaN(n)?t:n)[1]}function Dt(e){if(null!=e.cases)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function jt(e){if(null!=e.fields)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Rt(e){if(Lt(e)&&null!=e.generics)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Ft(e){return e instanceof dt?null!=e.cases:e instanceof ut}function Ut(e){return e instanceof dt?null!=e.fields:e instanceof ct}function Lt(e){return e.fullname.startsWith("System.Tuple")&&!kt(e)}function Wt(e){return null==e.fields?[]:e.fields}function Gt(e,t){const n=(e.fields||[]).length;if(t.length!==n)throw new Error(`Expected an array of length ${n} but got ${t.length}`);return null!=e.declaringType.construct?new e.declaringType.construct(e.tag,...t):{}}new dt("System.Decimal");class zt{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return Ye(this.value)}Equals(e){return null!=e&&Ze(this.value,e instanceof zt?e.value:e)}CompareTo(e){return null==e?1:tt(this.value,e instanceof zt?e.value:e)}}function Ht(e){return null==e||e instanceof zt?new zt(e):e}function Bt(e){if(null==e)throw new Error("Option has no value");return e instanceof zt?e.value:e}function $t(e){return null==e?void 0:e}function qt(e){return null==e?[]:[Bt(e)]}function Vt(e,t){return null!=e?Bt(e):t}function Yt(e,t){return null!=t?Ht(e(Bt(t))):void 0}function Jt(e,t){return null!=t?e(Bt(t)):void 0}var Xt;function Zt(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 Qt(e,t,n,r,o){try{return o.contents=function(e,t,n,r,o){const i=function(e,t,n){const r=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(null!=r){const[,,e,o]=r;n=n||function(e,t){if(t&Xt.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}}(e,t);const i=function(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.")}}(n);if(!i.test(o))return function(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}(r,n)}return null}(e,t,void 0);if(null!=i){let e=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(e)){const[t,o]=Zt(!0,r);!n&&10!==i.radix&&e>=t&&e<=o&&(e=e<<32-r>>32-r);const[s,a]=Zt(n,r);if(e>=s&&e<=a)return e}}throw new Error("Input string was not in a correct format.")}(e,t,n,r),!0}catch(e){return!1}}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(Xt||(Xt={}));const Kt=Symbol("numeric");function en(e){return"number"==typeof e||(null==e?void 0:e[Kt])}function tn(e,t){return"number"==typeof e?e*t:e[Kt]().multiply(t)}function nn(e,t){return"number"==typeof e?e.toFixed(t):e[Kt]().toFixed(t)}function rn(e,t){return"number"==typeof e?e.toPrecision(t):e[Kt]().toPrecision(t)}function on(e,t){return"number"==typeof e?e.toExponential(t):e[Kt]().toExponential(t)}function sn(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[Kt]().toHex()}var an=null;try{an=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(u){}function un(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function cn(e){return!0===(e&&e.__isLong__)}un.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},un.prototype.Equals=function(e){return Rn(this,e)},un.prototype.CompareTo=function(e){return Wn(this,e)},un.prototype.toString=function(e){return Nn(this,e)},un.prototype.toJSON=function(){return Nn(this)},un.prototype[Kt]=function(){const e=this;return{multiply:t=>Bn(e,t),toPrecision:t=>String(e)+(0).toPrecision(t).substr(1),toExponential:t=>String(e)+(0).toExponential(t).substr(1),toFixed:t=>String(e)+(0).toFixed(t).substr(1),toHex:()=>{return Nn(e.unsigned?e:function(e,t,n){return n?function(e,t){return new un(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)}(e,t):function(e,t){return new un(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)}(e,t)}((t=e,n?function(e){var t=e.high,n=e.low;return[255&n,n>>>8&255,n>>>16&255,n>>>24,255&t,t>>>8&255,t>>>16&255,t>>>24]}(t):function(e){var t=e.high,n=e.low;return[t>>>24,t>>>16&255,t>>>8&255,255&t,n>>>24,n>>>16&255,n>>>8&255,255&n]}(t)),!0),16);var t,n}}},un.prototype.__isLong__,Object.defineProperty(un.prototype,"__isLong__",{value:!0});var ln={},fn={};function dn(e,t){var n,r,o;return t?(o=0<=(e>>>=0)&&e<256)&&(r=fn[e])?r:(n=pn(e,(0|e)<0?-1:0,!0),o&&(fn[e]=n),n):(o=-128<=(e|=0)&&e<128)&&(r=ln[e])?r:(n=pn(e,e<0?-1:0,!1),o&&(ln[e]=n),n)}function hn(e,t){if(isNaN(e))return t?Sn:Cn;if(t){if(e<0)return Sn;if(e>=_n)return In}else{if(e<=-vn)return Tn;if(e+1>=vn)return Mn}return e<0?Gn(hn(-e,t)):pn(e%yn|0,e/yn|0,t)}function pn(e,t,n){return new un(e,t,n)}var mn=Math.pow;function gn(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return Cn;if("number"==typeof t?(n=t,t=!1):t=!!t,(n=n||10)<2||36<n)throw RangeError("radix");var r=e.indexOf("-");if(r>0)throw Error("interior hyphen");if(0===r)return Gn(gn(e.substring(1),t,n));for(var o=hn(mn(n,8)),i=Cn,s=0;s<e.length;s+=8){var a=Math.min(8,e.length-s),u=parseInt(e.substring(s,s+a),n);i=zn(a<8?Bn(i,hn(mn(n,a))):i=Bn(i,o),hn(u))}return i.unsigned=t,i}function wn(e,t){return"number"==typeof e?hn(e,t):"string"==typeof e?gn(e,t):pn(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}var yn=4294967296,_n=yn*yn,vn=_n/2,bn=dn(1<<24),Cn=dn(0),Sn=dn(0,!0),xn=dn(1),En=dn(1,!0),kn=dn(-1),Mn=pn(-1,2147483647,!1),In=pn(-1,-1,!0),Tn=pn(0,-2147483648,!1);function On(e){return e.unsigned?e.low>>>0:e.low}function Pn(e){return e.unsigned?(e.high>>>0)*yn+(e.low>>>0):e.high*yn+(e.low>>>0)}function Nn(e,t){if((t=t||10)<2||36<t)throw RangeError("radix");if(An(e))return"0";if(Dn(e)){if(Rn(e,Tn)){var n=hn(t),r=$n(e,n),o=Hn(Bn(r,n),e);return Nn(r,t)+On(o).toString(t)}return"-"+Nn(Gn(e),t)}for(var i=hn(mn(t,6),e.unsigned),s=e,a="";;){var u=$n(s,i),c=(On(Hn(s,Bn(u,i)))>>>0).toString(t);if(An(s=u))return c+a;for(;c.length<6;)c="0"+c;a=""+c+a}}function An(e){return 0===e.high&&0===e.low}function Dn(e){return!e.unsigned&&e.high<0}function jn(e){return 1==(1&e.low)}function Rn(e,t){return cn(t)||(t=wn(t)),(e.unsigned===t.unsigned||e.high>>>31!=1||t.high>>>31!=1)&&e.high===t.high&&e.low===t.low}function Fn(e,t){return Wn(e,t)<0}function Un(e,t){return Wn(e,t)>0}function Ln(e,t){return Wn(e,t)>=0}function Wn(e,t){if(cn(t)||(t=wn(t)),Rn(e,t))return 0;var n=Dn(e),r=Dn(t);return n&&!r?-1:!n&&r?1:e.unsigned?t.high>>>0>e.high>>>0||t.high===e.high&&t.low>>>0>e.low>>>0?-1:1:Dn(Hn(e,t))?-1:1}function Gn(e){return!e.unsigned&&Rn(e,Tn)?Tn:zn(function(e){return pn(~e.low,~e.high,e.unsigned)}(e),xn)}function zn(e,t){cn(t)||(t=wn(t));var n=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=t.high>>>16,a=65535&t.high,u=t.low>>>16,c=0,l=0,f=0,d=0;return f+=(d+=i+(65535&t.low))>>>16,l+=(f+=o+u)>>>16,c+=(l+=r+a)>>>16,c+=n+s,pn((f&=65535)<<16|(d&=65535),(c&=65535)<<16|(l&=65535),e.unsigned)}function Hn(e,t){return cn(t)||(t=wn(t)),zn(e,Gn(t))}function Bn(e,t){if(An(e))return e.unsigned?Sn:Cn;if(cn(t)||(t=wn(t)),an)return pn(an.mul(e.low,e.high,t.low,t.high),an.get_high(),e.unsigned);if(An(t))return e.unsigned?Sn:Cn;if(Rn(e,Tn))return jn(t)?Tn:Cn;if(Rn(t,Tn))return jn(e)?Tn:Cn;if(Dn(e))return Dn(t)?Bn(Gn(e),Gn(t)):Gn(Bn(Gn(e),t));if(Dn(t))return Gn(Bn(e,Gn(t)));if(Fn(e,bn)&&Fn(t,bn))return hn(Pn(e)*Pn(t),e.unsigned);var n=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=t.high>>>16,a=65535&t.high,u=t.low>>>16,c=65535&t.low,l=0,f=0,d=0,h=0;return d+=(h+=i*c)>>>16,f+=(d+=o*c)>>>16,d&=65535,f+=(d+=i*u)>>>16,l+=(f+=r*c)>>>16,f&=65535,l+=(f+=o*u)>>>16,f&=65535,l+=(f+=i*a)>>>16,l+=n*c+r*u+o*a+i*s,pn((d&=65535)<<16|(h&=65535),(l&=65535)<<16|(f&=65535),e.unsigned)}function $n(e,t){if(cn(t)||(t=wn(t)),An(t))throw Error("division by zero");var n,r,o;if(an)return e.unsigned||-2147483648!==e.high||-1!==t.low||-1!==t.high?pn((e.unsigned?an.div_u:an.div_s)(e.low,e.high,t.low,t.high),an.get_high(),e.unsigned):e;if(An(e))return e.unsigned?Sn:Cn;if(e.unsigned){if(t.unsigned||(t=function(e){return e.unsigned?e:pn(e.low,e.high,!0)}(t)),Un(t,e))return Sn;if(Un(t,function(e,t){if(cn(t)&&(t=On(t)),0==(t&=63))return e;var n=e.high;return t<32?pn(e.low>>>t|n<<32-t,n>>>t,e.unsigned):pn(32===t?n:n>>>t-32,0,e.unsigned)}(e,1)))return En;o=Sn}else{if(Rn(e,Tn))return Rn(t,xn)||Rn(t,kn)?Tn:Rn(t,Tn)?xn:Rn(n=function(e,t){return cn(t)&&(t=On(t)),0==(t&=63)?e:t<32?pn(e.low<<t,e.high<<t|e.low>>>32-t,e.unsigned):pn(0,e.low<<t-32,e.unsigned)}($n(function(e,t){return cn(t)&&(t=On(t)),0==(t&=63)?e:t<32?pn(e.low>>>t|e.high<<32-t,e.high>>t,e.unsigned):pn(e.high>>t-32,e.high>=0?0:-1,e.unsigned)}(e,1),t),1),Cn)?Dn(t)?xn:kn:o=zn(n,$n(r=Hn(e,Bn(t,n)),t));if(Rn(t,Tn))return e.unsigned?Sn:Cn;if(Dn(e))return Dn(t)?$n(Gn(e),Gn(t)):Gn($n(Gn(e),t));if(Dn(t))return Gn($n(e,Gn(t)));o=Cn}for(r=e;Ln(r,t);){n=Math.max(1,Math.floor(Pn(r)/Pn(t)));for(var i=Math.ceil(Math.log(n)/Math.LN2),s=i<=48?1:mn(2,i-48),a=hn(n),u=Bn(a,t);Dn(u)||Un(u,r);)u=Bn(a=hn(n-=s,e.unsigned),t);An(a)&&(a=xn),o=zn(o,a),r=Hn(r,u)}return o}const qn=zn,Vn=Bn,Yn=$n,Jn=Gn,Xn=function(e,t){return cn(t)||(t=wn(t)),pn(e.low&t.low,e.high&t.high,e.unsigned)},Zn=Wn,Qn=pn,Kn=On,er=Pn;function tr(e,t,n){let r=e,o=0;switch(n){case 0:r=e<<24>>24,o=r;break;case 4:r=e<<24>>>24;break;case 1:r=e<<16>>16,o=r;break;case 5:r=e<<16>>>16;break;case 2:r=e>>0,o=r;break;case 6:r=e>>>0}return pn(r,o>>31,t)}const nr=/(?:Z|[+-](\d+):?([0-5]?\d)?)\s*$/;function rr(e){const t=e<0,n=(e=Math.abs(e))%36e5/6e4;return(t?"-":"+")+Ge(~~(e/36e5),2)+":"+Ge(n,2)}function or(e,t){const n=e.toISOString();return"first"===t?n.substring(0,n.indexOf("T")):n.substring(n.indexOf("T")+1,n.length-1)}function ir(e,t,n){return t.replace(/(\w)\1*/g,(t=>{let r=Number.NaN;switch(t.substring(0,1)){case"y":const o=n?e.getUTCFullYear():e.getFullYear();r=t.length<4?o%100:o;break;case"M":r=(n?e.getUTCMonth():e.getMonth())+1;break;case"d":r=n?e.getUTCDate():e.getDate();break;case"H":r=n?e.getUTCHours():e.getHours();break;case"h":const i=n?e.getUTCHours():e.getHours();r=i>12?i%12:i;break;case"m":r=n?e.getUTCMinutes():e.getMinutes();break;case"s":r=n?e.getUTCSeconds():e.getSeconds();break;case"f":r=n?e.getUTCMilliseconds():e.getMilliseconds()}return Number.isNaN(r)?t:r<10&&t.length>1?"0"+r:""+r}))}function sr(e,t,n){return null!=e.offset?function(e,t){var n,r,o;const i=new Date(e.getTime()+(null!==(n=e.offset)&&void 0!==n?n:0));if("string"!=typeof t)return i.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+rr(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==t.length)return ir(i,t,!0);switch(t){case"D":case"d":return or(i,"first");case"T":case"t":return or(i,"second");case"O":case"o":return function(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+rr(t)}(i,null!==(o=e.offset)&&void 0!==o?o:0);default:throw new Error("Unrecognized Date print format")}}(e,t):function(e,t){const n=1===e.kind;if("string"!=typeof t)return n?e.toUTCString():e.toLocaleString();if(1!==t.length)return ir(e,t,n);switch(t){case"D":case"d":return n?or(e,"first"):e.toLocaleDateString();case"T":case"t":return n?or(e,"second"):e.toLocaleTimeString();case"O":case"o":return function(e,t){if(t)return e.toISOString();{const t=null==e.kind||2===e.kind;return Ge(e.getFullYear(),4)+"-"+Ge(e.getMonth()+1,2)+"-"+Ge(e.getDate(),2)+"T"+Ge(e.getHours(),2)+":"+Ge(e.getMinutes(),2)+":"+Ge(e.getSeconds(),2)+"."+Ge(e.getMilliseconds(),3)+(t?rr(-6e4*e.getTimezoneOffset()):"")}}(e,n);default:throw new Error("Unrecognized Date print format")}}(e,t)}function ar(e,t){const n=new Date(e);return n.kind=0|(null==t?0:t),n}function ur(e){if(null===e)throw new Error("Value cannot be null when parsing DateTime");if(""===e.trim())throw new Error("An empty string is not recognized as a valid DateTime");let t=new Date(e);if(isNaN(t.getTime())){const n=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*([+-]\d+(?::\d+)?)?\s*$/.exec(e);if(null==n)throw new Error("The string is not a valid Date.");{let e,r=0;if(null!=n[2]){const e=n[2].split(":");r=3600*parseInt(e[0],10)+60*parseInt(e[1]||"0",10)+parseFloat(e[2]||"0"),null!=n[3]&&"PM"===n[3].toUpperCase()&&(r+=720)}if(null!=n[4]){if(null!=n[1])e=new Date(n[1]+" UTC");else{const t=new Date;e=new Date(t.getUTCFullYear()+"/"+(t.getUTCMonth()+1)+"/"+t.getUTCDate())}const t=n[4].substr(1).split(":");let o=60*parseInt(t[0],10)+parseInt(t[1]||"0",10);"+"===n[4][0]&&(o*=-1),r+=60*o}else if(null!=n[1])e=new Date(n[1]);else{const t=new Date;e=new Date(t.getFullYear()+"/"+(t.getMonth()+1)+"/"+t.getDate())}t=new Date(e.getTime()+1e3*r),t=new Date(t.getTime()+6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))}}return t}function cr(e,t){try{return t.contents=function(e,t=!1){const n=ur(e),r=nr.exec(e),o=null!=r?t&&"Z"===r[0]?1:2:0;return ar(n.getTime(),o)}(e),!0}catch(e){return!1}}function lr(){return ar(Date.now(),1)}function fr(){return function(e){return function(e,t,n,r=0,o=0,i=0,s=0,a){const u=1===a?Date.UTC(e,t-1,n,r,o,i,s):new Date(e,t-1,n,r,o,i,s).getTime();if(isNaN(u))throw new Error("The parameters describe an unrepresentable Date.");const c=ar(u,a);return e<=99&&c.setFullYear(e,t-1,n),c}(dr(e),function(e){return(1===e.kind?e.getUTCMonth():e.getMonth())+1}(e),function(e){return 1===e.kind?e.getUTCDate():e.getDate()}(e),0,0,0,0,e.kind)}(ar(Date.now(),2))}function dr(e){return 1===e.kind?e.getUTCFullYear():e.getFullYear()}function hr(e,t){return function(e,t){const n=ar(e.getTime()+t,e.kind);if(2===e.kind){const t=e.getTimezoneOffset(),r=n.getTimezoneOffset();return t!==r?ar(n.getTime()+6e4*(r-t),e.kind):n}return n}(e,864e5*t)}const pr=Qe;function mr(e,t=0){if(0!=(-276&t))throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Singleline and ECMAScript");let n="g";return n+=1&t?"i":"",n+=2&t?"m":"",n+=16&t?"s":"",new RegExp(e,n)}function gr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function wr(e,t,n=0){let r;if(r=e instanceof RegExp?(r=e,e=t,r.lastIndex=n,r):r=mr(t,n),!r.global)throw new Error("Non-global RegExp");let o=r.exec(e);const i=[];for(;null!==o;)i.push(o),o=r.exec(e);return i}const yr=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,_r=/(?:(^|[^%])%([0+\- ]*)(\d+)?(?:\.(\d+))?(\w))?%P\(\)/g,vr=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function br(e,t){return function(e,t){return"number"==typeof e?e<t?-1:e>t?1:0:e.CompareTo(t)}(e,t)<0}function Cr(e){return{input:e,cont:(t=e,e=>{yr.lastIndex=0;const n=[],r=[];let o=0,i=yr.exec(t);for(;i;){const e=i.index+(i[1]||"").length;n.push(t.substring(o,e).replace(/%%/g,"%")),r.push(i),o=yr.lastIndex,yr.lastIndex-=1,i=yr.exec(t)}return 0===n.length?e(t.replace(/%%/g,"%")):(n.push(t.substring(o).replace(/%%/g,"%")),Ir(e,n,r))})};var t}function Sr(e,t){let n=0,r=0,o="";_r.lastIndex=0;let i=_r.exec(e);for(;i;){const s=i.index+(i[1]||"").length;o+=e.substring(r,s).replace(/%%/g,"%");const[,,a,u,c,l]=i;o+=Mr(t[n++],a,u,c,l),r=_r.lastIndex,_r.lastIndex-=1,i=_r.exec(e)}return o+=e.substring(r).replace(/%%/g,"%"),o}function xr(e,t){return"string"==typeof t?e(t):t.cont(e)}function Er(e){return xr((e=>e),e)}function kr(e){return xr((e=>{throw new Error(e)}),e)}function Mr(e,t,n,r,o){let i="";if(t=t||"",o=o||"",en(e))switch("x"!==o.toLowerCase()&&(br(e,0)?(e=tn(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=null==r?null:parseInt(r,10),o){case"f":case"F":e=nn(e,r=null!=r?r:6);break;case"g":case"G":e=null!=r?rn(e,r):rn(e);break;case"e":case"E":e=null!=r?on(e,r):on(e);break;case"x":e=sn(e);break;case"X":e=sn(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?sr(e):at(e);if(n="number"==typeof n?n:parseInt(n,10),isNaN(n))e=i+e;else{const r=t.indexOf("0")>=0,o=t.indexOf("-")>=0,s=o||!r?" ":"0";e="0"===s?i+(e=Or(e,n-i.length,s,o)):Or(i+e,n,s,o)}return e}function Ir(e,t,n,r="",o=-1){return(...i)=>{let s=r;const a=t.slice(),u=n.slice();for(const e of i){const[,,t,n,r,i]=u[0];let c=n;if(o>=0)c=o,o=-1;else if("*"===c){if(e<0)throw new Error("Non-negative number required");o=e;continue}s+=a[0],s+=Mr(e,t,c,r,i),a.splice(0,1),u.splice(0,1)}return 0===u.length?(s+=a[0],e(s)):Ir(e,a,u,s,o)}}function Tr(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Or(e,t,n,r){n=n||" ",t-=e.length;for(let o=0;o<t;o++)e=r?e+n:n+e;return e}function Pr(e,t,n){if(t+(n||0)>e.length)throw new Error("Invalid startIndex and/or length");return null!=n?e.substr(t,n):e.substr(t)}function Nr(){return e=(e,t)=>tt(e,t),{Compare:(t,n)=>e(t,n)};var e}function Ar(e,t){return"function"==typeof e?new e(t):new Array(t)}function Dr(e,t,n,r){const o=0|t;return e.fill(r,o,o+n)}function jr(e,t,n){const r=0|t.length,o=Ar(n,r);for(let n=0;n<=r-1;n++)o[n]=e(t[n]);return o}function Rr(e,t,n){if(e<0)throw new Error("The input must be non-negative\\nParameter name: count");const r=Ar(n,e);for(let n=0;n<=e-1;n++)r[n]=t(n);return r}function Fr(e,t,n){return n.reduce(((t,n)=>e(t,n)),t)}function Ur(e,t,n){return 0===function(e,t,n){if(null==t)return null==n?0:-1;if(null==n)return 1;{let e=0,i=0;const s=0|t.length,a=0|n.length;if(s>a)return 1;if(s<a)return-1;for(;e<s&&0===i;)i=0|(r=t[e],o=n[e],tt(r,o)),e=e+1|0;return 0|i}var r,o}(0,t,n)}function Lr(e,t,n,r){return function(e,t,n,r){let o=r;t.length!==n.length&&function(){throw new Error("Arrays had different lengths")}();const i=0|t.length;for(let r=1;r<=i;r++)o=e(0,t[i-r],n[i-r],o);return o}(((t,n,r,o)=>e(n,r,o)),t,n,r)}class Wr extends ct{constructor(e,t){super(),this.head=e,this.tail=t}toString(){return"["+Tr("; ",this)+"]"}Equals(e){return this===e||((e,t)=>{e:for(;;){const n=e,r=t,o=[n.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const i=o[0],s=o[1];if(Ze(n.head,r.head)){e=i,t=s;continue e}return!1}return!1}return null==o[1]}})(this,e)}GetHashCode(){return 0|((e,t,n)=>{for(;;){const r=e,o=t,i=n,s=i.tail;if(null==s)return 0|o;{const a=s;if(r>18)return 0|o;e=r+1,t=(o<<1)+Ye(i.head)+631*r,n=a}}})(0,0,this)}toJSON(e){return Array.from(this)}CompareTo(e){return 0|((e,t)=>{e:for(;;){const n=e,r=t,o=[n.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const i=o[0],s=o[1],a=0|tt(n.head,r.head);if(0===a){e=i,t=s;continue e}return 0|a}return 1}return null!=o[1]?-1:0}})(this,e)}GetEnumerator(){return new Gr(this)}[Symbol.iterator](){return Le(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Ue(this)}}class Gr{constructor(e){this.xs=e,this.it=this.xs,this.current=null}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const e=this,t=e.it.tail;if(null!=t){const n=t;return e.current=e.it.head,e.it=n,!0}return!1}"System.Collections.IEnumerator.Reset"(){const e=this;e.it=e.xs,e.current=null}Dispose(){}}function zr(){return new Wr(null,void 0)}function Hr(e,t){return new Wr(e,t)}function Br(e){return null==e.tail}function $r(e){return 0|((e,t)=>{for(;;){const n=e,r=t.tail;if(null==r)return 0|n;e=n+1,t=r}})(0,e)}function qr(e){if(null!=e.tail)return e.head;throw new Error("List was empty\\nParameter name: list")}function Vr(e){const t=e.tail;if(null!=t)return t;throw new Error("List was empty\\nParameter name: list")}function Yr(){return zr()}function Jr(e,t){return Hr(e,t)}function Xr(e){return Hr(e,zr())}function Zr(e){return Br(e)}function Qr(e){return $r(e)}function Kr(e){return qr(e)}function eo(e){return Vr(e)}function to(e){const t=0|$r(e),n=Dr(new Array(t),0,t,null);return((e,t)=>{for(;;){const r=e,o=t;if(Br(o))break;n[r]=qr(o),e=r+1,t=Vr(o)}})(0,e),n}function no(e,t,n){let r=t,o=n;for(;!Br(o);)r=e(r,qr(o)),o=Vr(o);return r}function ro(e){return no(((e,t)=>Hr(t,e)),zr(),e)}function oo(e,t){no(((t,n)=>{e(n)}),void 0,t)}function io(e,t){let n=t;for(let t=e.length-1;t>=0;t--)n=Hr(e[t],n);return n}function so(e){return io(e,zr())}function ao(e,t){return no(((e,t)=>Hr(t,e)),t,ro(e))}function uo(e,t){let n,r;const o=zr();let i=o,s=t;for(;!Br(s);){let t=e(qr(s));for(;!Br(t);)n=i,r=new Wr(qr(t),void 0),n.tail=r,i=r,t=Vr(t);s=Vr(s)}const a=i,u=zr();return a.tail=u,Vr(o)}function co(e,t){const n=zr(),r=no(((t,n)=>{const r=new Wr(e(n),void 0);return t.tail=r,r}),n,t),o=zr();return r.tail=o,Vr(n)}function lo(e,t){return function(e,t){return(t=>{e:for(;;){const n=t;if(Br(n))return;{const r=e(qr(n));if(null==r){t=Vr(n);continue e}return r}}})(t)}((t=>e(t)?Ht(t):void 0),t)}function fo(e,t){const n=to(t);return n.sort(e),so(n)}const ho="The input sequence has an insufficient number of elements.";function po(){throw new Error("Enumeration has not started. Call MoveNext.")}function mo(){throw new Error("Enumeration already finished.")}class go{constructor(e){this.f=e}toString(){let e=0,t="seq [";const n=Ue(this);try{for(;e<4&&n["System.Collections.IEnumerator.MoveNext"]();)e>0&&(t+="; "),t+=at(n["System.Collections.Generic.IEnumerator`1.get_Current"]()),e=e+1|0;return 4===e&&(t+="; ..."),t+"]"}finally{n.Dispose()}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Le(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class wo{constructor(e,t,n){this.current=e,this.next=t,this.dispose=n}"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"(){!function(){throw new Error("Reset is not supported on this enumerator.")}()}Dispose(){this.dispose()}}function yo(e,t,n){return new wo(e,t,n)}function _o(e,t,n){let r,o=!1,i=Ht(e());const s=()=>{if(null!=i){const e=Bt(i);try{n(e)}finally{i=void 0}}},a=()=>{try{s()}finally{r=void 0}};return yo((()=>(o||po(),null!=r?Bt(r):mo())),(()=>{if(o||(o=!0),null!=i){const e=Bt(i);let n;try{n=t(e)}catch(e){throw a(),e}return null!=n?(r=n,!0):(a(),!1)}return!1}),s)}function vo(e){return function(e){return new go(e)}(e)}function bo(e){return t="source",null==e&&function(e){throw new Error(e)}(t),Ue(e);var t}function Co(e){return vo((()=>Ue(e())))}function So(e){return vo((()=>function(e){let t,n,r,o=!1,i=!1;const s=()=>{if(i=!0,null!=n){const e=n;try{e.Dispose()}finally{n=void 0}}if(null!=t){const e=t;try{e.Dispose()}finally{t=void 0}}};return yo((()=>(o?i&&mo():po(),null!=r?Bt(r):mo())),(()=>{let a;if(o||(o=!0),i)return!1;{let o;for(;null==o;){const i=[t,n];if(null!=i[0])if(null!=i[1]){const e=i[1];if(e["System.Collections.IEnumerator.MoveNext"]())r=Ht(e["System.Collections.Generic.IEnumerator`1.get_Current"]()),o=!0;else try{e.Dispose()}finally{n=void 0}}else{const e=i[0];e["System.Collections.IEnumerator.MoveNext"]()?(a=e["System.Collections.Generic.IEnumerator`1.get_Current"](),n=Ue(a)):(s(),o=!1)}else t=Ue(e)}return Bt(o)}}),(()=>{i||s()}))}(e)))}function xo(e){return Co((()=>function(e,t){const n=Ar(void 0,1);return n[0]=e,n}(e)))}function Eo(e){return je(e)?so(e):e instanceof Wr?e:function(e){let t,n;if(je(e))return so(e);if(e instanceof Wr)return e;{const r=zr();let o=r;const i=Ue(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const e=i["System.Collections.Generic.IEnumerator`1.get_Current"]();t=o,n=new Wr(e,void 0),t.tail=n,o=n}}finally{i.Dispose()}const s=o,a=zr();return s.tail=a,Vr(r)}}(e)}function ko(e,t,n){return vo((()=>_o(e,t,n)))}function Mo(e,t,n){return vo((()=>{let r=-1;return _o(e,(e=>(r=r+1|0,t(r,e))),n)}))}function Io(e,t){return So([e,t])}function To(e,t,n){const r=bo(t);try{let t=!1;for(;!t&&r["System.Collections.IEnumerator.MoveNext"]();)t=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return t}finally{r.Dispose()}}function Oo(e,t,n){const r=bo(n);try{let n=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)n=e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return n}finally{r.Dispose()}}function Po(e,t){Oo(((t,n)=>{e(n)}),void 0,t)}function No(e,t){return ko((()=>bo(t)),(t=>t["System.Collections.IEnumerator.MoveNext"]()?Ht(e(t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{e.Dispose()}))}function Ao(e,t){return vo((()=>{const n=bo(t);try{for(let t=1;t<=e;t++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(ho+"\\nParameter name: source");return function(e,t){return yo((()=>t["System.Collections.Generic.IEnumerator`1.get_Current"]()),(()=>t["System.Collections.IEnumerator.MoveNext"]()),(()=>{try{t.Dispose()}finally{e()}}))}((()=>{}),n)}catch(e){throw n.Dispose(),e}}))}function Do(e,t){return Co((()=>So(No(e,t))))}const jo=De,Ro=e=>{X((()=>{const t=e();return()=>{t.Dispose()}}))},Fo=(e,t)=>{X((()=>{const t=e();return()=>{t.Dispose()}}),t)};function Uo(e){return{Dispose(){e()}}}function Lo(e){Ro(e)}function Wo(e,t){Fo(e,t)}function Go(e){Ho(e,[])}function zo(e){Wo(e,[])}function Ho(e,t){Fo((t=>(e(),Uo((()=>{})))),t)}function Bo(e){return jo.useRef(e)}function $o(e,t){return jo.useMemo(e,Vt(t,[]))}function qo(e){const t=Bo(e),n=(r=e=>t.current(e),o=[],jo.useCallback(r,Vt(o,[])));var r,o,i,s;return i=()=>{t.current=e},s=e=>(i(),Uo((()=>{}))),Z((()=>{const e=s();return()=>{e.Dispose()}})),n}class Vo extends ut{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Ok","Error"]}}function Yo(e,t){return 0===t.tag?new Vo(0,e(t.fields[0])):new Vo(1,t.fields[0])}class Jo extends ut{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Choice1Of2","Choice2Of2"]}}class Xo extends ut{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Started","Finished"]}}class Zo extends ut{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AuthCode"]}}class Qo extends ct{constructor(e,t,n,r,o,i){super(),this.id_token=e,this.access_token=t,this.expires_in=n,this.refresh_token=r,this.scope=o,this.token_type=i}}function Ko(){return wt("Workflows.Progress.UI.Auth.Types.Credentials",[],Qo,(()=>[["id_token",Ct],["access_token",Ct],["expires_in",St],["refresh_token",_t(Ct)],["scope",Ct],["token_type",Ct]]))}class ei extends ut{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SignIn"]}}const ti=(()=>{try{"undefined"!=typeof window&&"function"==typeof window.addEventListener&&(window.addEventListener("testPassiveEventSupport",(e=>{}),{passive:!0}),window.removeEventListener("testPassiveEventSupport",(e=>{})))}catch(e){}return!1})();function ni(e){return Yt((e=>e.passive&&!ti?{capture:e.capture,once:e.once,passive:!1}:e),e)}function ri(e){return Jt((e=>e.capture?{capture:!0}:void 0),e)}const oi=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,ii=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,si=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function ai(e,t){try{return t.contents=function(e){function t(e){return e.replace(ii,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(oi.test(n))return function(e,...t){if(0===t.length)return e.trim();const n="["+gr(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}(n,"{","}","(",")");if(ii.test(n))return t(n);if(si.test(n))return t(n.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}(e),!0}catch(e){return!1}}var ui={GetHashCode(){return Ve([this.s,this.e].concat(this.c))},Equals(e){return!this.cmp(e)},CompareTo(e){return this.cmp(e)},[Kt](){const e=this;return{multiply:t=>e.mul(t),toPrecision:t=>e.toPrecision(t),toExponential:t=>e.toExponential(t),toFixed:t=>e.toFixed(t),toHex:()=>(Number(e)>>>0).toString(16)}}},ci=1e6,li="[big.js] ",fi=li+"Invalid ",di=fi+"decimal places",hi=li+"Division by zero",pi=void 0,mi=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function gi(e,t){var n,r,o;if(!mi.test(t))throw Error(fi+"number");for(e.s="-"==t.charAt(0)?(t=t.slice(1),-1):1,(n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),o=t.length,r=0;r<n&&r<o&&"0"==t.charAt(r);)++r;if(r==o)e.c=[e.e=0];else for(e.e=n-r-1,e.c=[],n=0;r<o;)e.c[n++]=+t.charAt(r++);return wi(e,_i.DP+1,_i.RM)}function wi(e,t,n,r){var o=e.c;if(n===pi&&(n=_i.RM),0!==n&&1!==n&&2!==n&&3!==n)throw Error("[big.js] Invalid rounding mode");if(t<1)r=3===n&&(r||!!o[0])||0===t&&(1===n&&o[0]>=5||2===n&&(o[0]>5||5===o[0]&&(r||o[1]!==pi))),o.length=1,r?(e.e=e.e-t+1,o[0]=1):o[0]=e.e=0;else if(t<o.length){const i=o.findIndex(((e,n)=>n>=t&&e>0))<0;if(r=1===n&&o[t]>=5||2===n&&(o[t]>5||5===o[t]&&(r||o[t+1]!==pi||1&o[t-1]))||3===n&&(r||!i),o.length=t--,r)for(;++o[t]>9;)o[t]=0,t--||(++e.e,o.unshift(1));for(t=o.length;!o[--t];)o.pop()}return e}function yi(e,t,n){var r=e.e,o=e.c.join(""),i=o.length;if(t)o=o.charAt(0)+(i>1?"."+o.slice(1):"")+(r<0?"e":"e+")+r;else if(r<0){for(;++r;)o="0"+o;o="0."+o}else if(r>0)if(++r>i)for(r-=i;r--;)o+="0";else r<i&&(o=o.slice(0,r)+"."+o.slice(r));else i>1&&(o=o.charAt(0)+"."+o.slice(1));return e.s<0&&n?"-"+o:o}ui.abs=function(){var e=new this.constructor(this);return e.s=1,e},ui.cmp=function(e){var t,n=this.constructor,r=new n(this),o=(e=new n(e),r.c),i=e.c,s=r.s,a=e.s,u=r.e,c=e.e;if(!o[0]||!i[0])return o[0]?s:i[0]?-a:0;if(s!=a)return s;if(t=s<0,u!=c)return u>c^t?1:-1;for(a=Math.max(o.length,i.length),s=0;s<a;s++)if((u=s<o.length?o[s]:0)!=(c=s<i.length?i[s]:0))return u>c^t?1:-1;return 0},ui.div=function(e){var t=this.constructor,n=new t(this),r=(e=new t(e),n.c),o=e.c,i=n.s==e.s?1:-1,s=t.DP;if(s!==~~s||s<0||s>ci)throw Error(di);if(!o[0])throw Error(hi);if(!r[0])return e.s=i,e.c=[e.e=0],e;var a,u,c,l,f,d=o.slice(),h=a=o.length,p=r.length,m=r.slice(0,a),g=m.length,w=e,y=w.c=[],_=0,v=s+(w.e=n.e-e.e)+1;for(w.s=i,i=v<0?0:v,d.unshift(0);g++<a;)m.push(0);do{for(c=0;c<10;c++){if(a!=(g=m.length))l=a>g?1:-1;else for(f=-1,l=0;++f<a;)if(o[f]!=m[f]){l=o[f]>m[f]?1:-1;break}if(!(l<0))break;for(u=g==a?o:d;g;){if(m[--g]<u[g]){for(f=g;f&&!m[--f];)m[f]=9;--m[f],m[g]+=10}m[g]-=u[g]}for(;!m[0];)m.shift()}y[_++]=l?c:++c,m[0]&&l?m[g]=r[h]||0:m=[r[h]]}while((h++<p||m[0]!==pi)&&i--);return y[0]||1==_||(y.shift(),w.e--,v--),_>v&&wi(w,v,t.RM,m[0]!==pi),w},ui.eq=function(e){return 0===this.cmp(e)},ui.gt=function(e){return this.cmp(e)>0},ui.gte=function(e){return this.cmp(e)>-1},ui.lt=function(e){return this.cmp(e)<0},ui.lte=function(e){return this.cmp(e)<1},ui.minus=ui.sub=function(e){var t,n,r,o,i=this.constructor,s=new i(this),a=(e=new i(e),s.s),u=e.s;if(a!=u)return e.s=-u,s.plus(e);var c=s.c.slice(),l=s.e,f=e.c,d=e.e;if(!c[0]||!f[0])return f[0]?e.s=-u:c[0]?e=new i(s):e.s=1,e;if(a=l-d){for((o=a<0)?(a=-a,r=c):(d=l,r=f),r.reverse(),u=a;u--;)r.push(0);r.reverse()}else for(n=((o=c.length<f.length)?c:f).length,a=u=0;u<n;u++)if(c[u]!=f[u]){o=c[u]<f[u];break}if(o&&(r=c,c=f,f=r,e.s=-e.s),(u=(n=f.length)-(t=c.length))>0)for(;u--;)c[t++]=0;for(u=t;n>a;){if(c[--n]<f[n]){for(t=n;t&&!c[--t];)c[t]=9;--c[t],c[n]+=10}c[n]-=f[n]}for(;0===c[--u];)c.pop();for(;0===c[0];)c.shift(),--d;return c[0]||(e.s=1,c=[d=0]),e.c=c,e.e=d,e},ui.mod=function(e){var t,n=this.constructor,r=new n(this),o=(e=new n(e),r.s),i=e.s;if(!e.c[0])throw Error(hi);return r.s=e.s=1,t=1==e.cmp(r),r.s=o,e.s=i,t?new n(r):(o=n.DP,i=n.RM,n.DP=n.RM=0,r=r.div(e),n.DP=o,n.RM=i,this.minus(r.times(e)))},ui.plus=ui.add=function(e){var t,n,r,o=this.constructor,i=new o(this);if(e=new o(e),i.s!=e.s)return e.s=-e.s,i.minus(e);var s=i.e,a=i.c,u=e.e,c=e.c;if(!a[0]||!c[0])return c[0]||(a[0]?e=new o(i):e.s=i.s),e;if(a=a.slice(),t=s-u){for(t>0?(u=s,r=c):(t=-t,r=a),r.reverse();t--;)r.push(0);r.reverse()}for(a.length-c.length<0&&(r=c,c=a,a=r),t=c.length,n=0;t;a[t]%=10)n=(a[--t]=a[t]+c[t]+n)/10|0;for(n&&(a.unshift(n),++u),t=a.length;0===a[--t];)a.pop();return e.c=a,e.e=u,e},ui.pow=function(e){var t=this.constructor,n=new t(this),r=new t("1"),o=new t("1"),i=e<0;if(e!==~~e||e<-1e6||e>1e6)throw Error(fi+"exponent");for(i&&(e=-e);1&e&&(r=r.times(n)),e>>=1;)n=n.times(n);return i?o.div(r):r},ui.prec=function(e,t){if(e!==~~e||e<1||e>ci)throw Error(fi+"precision");return wi(new this.constructor(this),e,t)},ui.round=function(e,t){if(e===pi)e=0;else if(e!==~~e||e<-ci||e>ci)throw Error(di);return wi(new this.constructor(this),e+this.e+1,t)},ui.sqrt=function(){var e,t,n,r=this.constructor,o=new r(this),i=o.s,s=o.e,a=new r("0.5");if(!o.c[0])return new r(o);if(i<0)throw Error(li+"No square root");0===(i=Math.sqrt(o+""))||i===1/0?((t=o.c.join("")).length+s&1||(t+="0"),s=((s+1)/2|0)-(s<0||1&s),e=new r(((i=Math.sqrt(t))==1/0?"5e":(i=i.toExponential()).slice(0,i.indexOf("e")+1))+s)):e=new r(i+""),s=e.e+(r.DP+=4);do{n=e,e=a.times(n.plus(o.div(n)))}while(n.c.slice(0,s).join("")!==e.c.slice(0,s).join(""));return wi(e,(r.DP-=4)+e.e+1,r.RM)},ui.times=ui.mul=function(e){var t,n=this.constructor,r=new n(this),o=(e=new n(e),r.c),i=e.c,s=o.length,a=i.length,u=r.e,c=e.e;if(e.s=r.s==e.s?1:-1,!o[0]||!i[0])return e.c=[e.e=0],e;for(e.e=u+c,s<a&&(t=o,o=i,i=t,c=s,s=a,a=c),t=new Array(c=s+a);c--;)t[c]=0;for(u=a;u--;){for(a=0,c=s+u;c>u;)a=t[c]+i[u]*o[c-u-1]+a,t[c--]=a%10,a=a/10|0;t[c]=a}for(a?++e.e:t.shift(),u=t.length;!t[--u];)t.pop();return e.c=t,e},ui.toExponential=function(e,t){var n=this,r=n.c[0];if(e!==pi){if(e!==~~e||e<0||e>ci)throw Error(di);for(n=wi(new n.constructor(n),++e,t);n.c.length<e;)n.c.push(0)}return yi(n,!0,!!r)},ui.toFixed=function(e,t){var n=this,r=n.c[0];if(e!==pi){if(e!==~~e||e<0||e>ci)throw Error(di);for(e=e+(n=wi(new n.constructor(n),e+n.e+1,t)).e+1;n.c.length<e;)n.c.push(0)}return yi(n,!1,!!r)},ui.toJSON=ui.toString=function(){var e=this,t=e.constructor;return yi(e,e.e<=t.NE||e.e>=t.PE,!!e.c[0])},ui.toNumber=function(){var e=Number(yi(this,!0,!0));if(!0===this.constructor.strict&&!this.eq(e.toString()))throw Error(li+"Imprecise conversion");return e},ui.toPrecision=function(e,t){var n=this,r=n.constructor,o=n.c[0];if(e!==pi){if(e!==~~e||e<1||e>ci)throw Error(fi+"precision");for(n=wi(new r(n),e,t);n.c.length<e;)n.c.push(0)}return yi(n,e<=n.e||n.e<=r.NE||n.e>=r.PE,!!o)},ui.valueOf=function(){var e=this,t=e.constructor;if(!0===t.strict)throw Error(li+"valueOf disallowed");return yi(e,e.e<=t.NE||e.e>=t.PE,!0)};var _i=function e(){function t(n){var r=this;if(!(r instanceof t))return n===pi?e():new t(n);if(n instanceof t)r.s=n.s,r.e=n.e,r.c=n.c.slice(),function(e){if(e.c.length>1&&!e.c[0]){let t=e.c.findIndex((e=>e));e.c=e.c.slice(t),e.e=e.e-t}}(r);else{if("string"!=typeof n){if(!0===t.strict)throw TypeError(fi+"number");n=0===n&&1/n<0?"-0":String(n)}gi(r,n)}r.constructor=t}return t.prototype=ui,t.DP=28,t.RM=1,t.NE=-29,t.PE=29,t.strict=!1,t}();const vi=_i;function bi(e,t){return 0===t.indexOf(e)?t:void 0}function Ci(e,t){return function(e,t){const n=e.lastIndexOf(t);return n>=0&&n===e.length-t.length}(t,e)?t:void 0}function Si(e,t){return function(e){return 1===e?e=>{let t,n,r,o,i,s;return t=bi("/",e),null!=t?(n=t,"#"+n):(r=bi("#/",e),null!=r?(o=r,o):(i=bi("#",e),null!=i?(s=i,"#/"+Pr(s,1,s.length-1)):"#/"+e))}:e=>{let t,n;return t=bi("/",e),null!=t?(n=t,n):"/"+e}}(t)(Tr("/",co((e=>e.indexOf("?")>=0||0===e.indexOf("#")||0===e.indexOf("/")?e:encodeURIComponent(e)),e)))}function xi(e,t){return uo((e=>{if("string"!=typeof(t=e)||/^\s*$/.test(t))return Yr();{const t=function(e,...t){return 0===t.length?e.trimEnd():e.replace(new RegExp("["+gr(t.join(""))+"]+$"),"")}(e,"#");if("?"===t)return Yr();if(null!=bi("?",t))return Xr(t);{const e=t.split("?");if(Ur(0,e,null)||1!==e.length){if(Ur(0,e,null)||2!==e.length)return Yr();if(""===e[1]){const t=e[0];return Xr(decodeURIComponent(t))}{const t=e[0],n=e[1];return so([decodeURIComponent(t),"?"+n])}}{const t=e[0];return Xr(decodeURIComponent(t))}}}var t}),so((null!=bi("#",e)?Pr(e,1,e.length-1):1!==t||null==Ci("#",e)&&null==Ci("#/",e)?e:"").split("/")))}new vi(0),new vi(1),new vi(-1),new vi("79228162514264337593543950335"),new vi("-79228162514264337593543950335");const Ei=function(e,t,n,r){const o=jo.memo(e,ot(2,Vt(it(2,n),null)));return Po((t=>{e.displayName=t}),qt(t)),e=>jo.createElement(o,function(e,t){if(null==e)return t;{const n=e;return t.key=n(t),t}}(r,e))}((e=>{const t=qo((t=>{const n=Vt(e.onUrlChanged,(e=>{}));!function(e,t,n){t(xi(2===e?window.location.pathname+window.location.search:window.location.hash,e))}(Vt(e.hashMode,1),n)}));if(window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0){const e="hashchange",n=e=>{t(e)},r=void 0,o=$o((()=>ni(r)),[r]),i=$o((()=>ri(r)),[r]),s=$o((()=>e=>{n(e)}),[n]);Lo(qo((()=>(null==o?window.addEventListener(e,s):window.addEventListener(e,s,o),Uo((()=>{null==i?window.removeEventListener(e,s):window.removeEventListener(e,s,i)}))))))}else{const e="popstate",n=t,r=void 0,o=$o((()=>ni(r)),[r]),i=$o((()=>ri(r)),[r]),s=$o((()=>e=>{n(e)}),[n]);Lo(qo((()=>(null==o?window.addEventListener(e,s):window.addEventListener(e,s,o),Uo((()=>{null==i?window.removeEventListener(e,s):window.removeEventListener(e,s,i)}))))))}const n="CUSTOM_NAVIGATION_EVENT",r=t,o=void 0,i=$o((()=>ni(o)),[o]),s=$o((()=>ri(o)),[o]),a=$o((()=>e=>{r(e)}),[r]);Lo(qo((()=>(null==i?window.addEventListener(n,a):window.addEventListener(n,a,i),Uo((()=>{null==s?window.removeEventListener(n,a):window.removeEventListener(n,a,s)}))))));const u=e.application;return null==u?null:u}),void 0,void 0,void 0);class ki{constructor(e=!1){this._id=0,this._cancelled=e,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,e]of this._listeners)e()}}addListener(e){const t=this._id;return this._listeners.set(this._id++,e),t}removeListener(e){return this._listeners.delete(e)}register(e,t){const n=this,r=this.addListener(null==t?e:()=>e(t));return{Dispose(){n.removeListener(r)}}}}class Mi extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Mi.prototype)}}class Ii{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>Ii.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function Ti(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new Mi);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack((()=>{try{e(t)}catch(e){t.onError(e)}}));else try{e(t)}catch(e){t.onError(e)}}}const Oi=new class{Bind(e,t){return function(e,t){return Ti((n=>{e({onSuccess:e=>{try{t(e)(n)}catch(e){n.onError(e)}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})}))}(e,t)}Combine(e,t){return this.Bind(e,(()=>t))}Delay(e){return Ti((t=>e()(t)))}For(e,t){const n=e[Symbol.iterator]();let r=n.next();return this.While((()=>!r.done),this.Delay((()=>{const e=t(r.value);return r=n.next(),e})))}Return(e){return function(e){return Ti((t=>t.onSuccess(e)))}(e)}ReturnFrom(e){return e}TryFinally(e,t){return Ti((n=>{e({onSuccess:e=>{t(),n.onSuccess(e)},onError:e=>{t(),n.onError(e)},onCancel:e=>{t(),n.onCancel(e)},cancelToken:n.cancelToken,trampoline:n.trampoline})}))}TryWith(e,t){return Ti((n=>{e({onSuccess:n.onSuccess,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline,onError:e=>{try{t(e)(n)}catch(e){n.onError(e)}}})}))}Using(e,t){return this.TryFinally(t(e),(()=>e.Dispose()))}While(e,t){return e()?this.Bind(t,(()=>this.While(e,t))):this.Return(void 0)}Zero(){return Ti((e=>e.onSuccess(void 0)))}};function Pi(e){}function Ni(e){const t=new ki("boolean"==typeof e&&e);return"number"==typeof e&&setTimeout((()=>{t.cancel()}),e),t}function Ai(e){e.cancel()}function Di(e){return null!=e&&e.isCancelled}const ji=new ki;function Ri(e,t){return function(e,t){return function(e,t,n,r,o){"function"!=typeof t&&(o=t,t=void 0);const i=new Ii;e({onSuccess:t||Pi,onError:n||Pi,onCancel:r||Pi,cancelToken:o||ji,trampoline:i})}(e,t)}(e,t)}class Fi{constructor(e,t){this.k=e,this.v=t}}function Ui(e,t){return new Fi(e,t)}function Li(e){return e.k}function Wi(e){return e.v}class Gi extends Fi{constructor(e,t,n,r,o){super(e,t),this.left=n,this.right=r,this.h=0|o}}function zi(e,t,n,r,o){return new Gi(e,t,n,r,o)}function Hi(e){return e.left}function Bi(e){return e.right}function $i(e){return e.h}function qi(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof Gi){e=qi(n+1,Hi(o)),t=Bi(o);continue e}return n+1|0}return 0|n}}function Vi(e){return qi(0,e)}function Yi(e,t,n,r){let o,i;if(null!=e){const t=e;o=t instanceof Gi?$i(t):1}else o=0;if(null!=r){const e=r;i=e instanceof Gi?$i(e):1}else i=0;const s=0|(o<i?i:o);return 0===s?Ui(t,n):zi(t,n,e,r,s+1)}function Ji(e,t,n,r){let o,i,s,a,u,c;if(null!=e){const t=e;u=t instanceof Gi?$i(t):1}else u=0;if(null!=r){const e=r;c=e instanceof Gi?$i(e):1}else c=0;if(c>u+2){const s=Bt(r);if(s instanceof Gi){if(o=Hi(s),(null!=o?(i=o,i instanceof Gi?$i(i):1):0)>u+1){const r=Bt(Hi(s));if(r instanceof Gi)return Yi(Yi(e,t,n,Hi(r)),Li(r),Wi(r),Yi(Bi(r),Li(s),Wi(s),Bi(s)));throw new Error("internal error: Map.rebalance")}return Yi(Yi(e,t,n,Hi(s)),Li(s),Wi(s),Bi(s))}throw new Error("internal error: Map.rebalance")}if(u>c+2){const o=Bt(e);if(o instanceof Gi){if(s=Bi(o),(null!=s?(a=s,a instanceof Gi?$i(a):1):0)>c+1){const e=Bt(Bi(o));if(e instanceof Gi)return Yi(Yi(Hi(o),Li(o),Wi(o),Hi(e)),Li(e),Wi(e),Yi(Bi(e),t,n,r));throw new Error("internal error: Map.rebalance")}return Yi(Hi(o),Li(o),Wi(o),Yi(Bi(o),t,n,r))}throw new Error("internal error: Map.rebalance")}return Yi(e,t,n,r)}function Xi(e,t,n,r){if(null!=r){const o=r,i=0|e.Compare(t,Li(o));return o instanceof Gi?i<0?Ji(Xi(e,t,n,Hi(o)),Li(o),Wi(o),Bi(o)):0===i?zi(t,n,Hi(o),Bi(o),$i(o)):Ji(Hi(o),Li(o),Wi(o),Xi(e,t,n,Bi(o))):i<0?zi(t,n,void 0,r,2):0===i?Ui(t,n):zi(t,n,r,void 0,2)}return Ui(t,n)}function Zi(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,a=0|r.Compare(o,Li(s));if(0===a)return Ht(Wi(s));if(s instanceof Gi){e=r,t=o,n=a<0?Hi(s):Bi(s);continue e}return}return}}function Qi(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof Gi){Qi(n,Hi(o)),n(Li(o),Wi(o)),e=n,t=Bi(o);continue e}n(Li(o),Wi(o))}break}}function Ki(e,t){Qi(e,t)}function es(e,t){if(null!=t){const n=t;if(n instanceof Gi){const t=es(e,Hi(n)),r=e(Li(n),Wi(n)),o=es(e,Bi(n));return zi(Li(n),r,t,o,$i(n))}return Ui(Li(n),e(Li(n),Wi(n)))}}function ts(e,t){return es(e,t)}function ns(e,t){let n;for(let r=0;r<=t.length-1;r++){const o=t[r];n=Xi(e,o[0],o[1],n)}return n}class rs extends ct{constructor(e,t){super(),this.stack=e,this.started=t}}function os(e){e:for(;;){const t=e;if(Zr(t))return Yr();{const n=eo(t),r=Kr(t);if(null!=r){const o=r;if(o instanceof Gi){e=io([Hi(o),Ui(Li(o),Wi(o)),Bi(o)],n);continue e}return t}e=n;continue e}}}function is(e){return new rs(os(Xr(e)),!1)}function ss(e){if(e.started){const t=e.stack;if(Zr(t))return function(){throw new Error("enumeration already finished")}();if(null!=Kr(t)){const e=Kr(t);if(e instanceof Gi)throw new Error("Please report error: Map iterator, unexpected stack for current");return[Li(e),Wi(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function as(e){let t=is(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>ss(t),"System.Collections.IEnumerator.get_Current":()=>ss(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(Zr(t))return!1;if(null!=Kr(t)){if(Kr(t)instanceof Gi)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=os(eo(t)),!Zr(e.stack)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!Zr(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=is(e)},Dispose(){}}}class us{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){const t=(e,t)=>(e<<1)+t+631;let n=0;const r=Ue(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=0|t(n,Ye(e[0])),n=0|t(n,Ye(e[1]))}}finally{r.Dispose()}return 0|n}(this)}Equals(e){if(!(e instanceof us))return!1;{const t=Ue(this);try{const n=Ue(e);try{const e=()=>{const r=t["System.Collections.IEnumerator.MoveNext"]();if(r===n["System.Collections.IEnumerator.MoveNext"]()){if(r){const r=t["System.Collections.Generic.IEnumerator`1.get_Current"](),o=n["System.Collections.Generic.IEnumerator`1.get_Current"]();return!(!Ze(r[0],o[0])||!Ze(r[1],o[1]))&&e()}return!0}return!1};return e()}finally{n.Dispose()}}finally{t.Dispose()}}}toString(){return"map ["+Tr("; ",No((e=>function(e,...t){return"object"==typeof e&&t.length>0&&(e=t[0],t.shift()),e.replace(vr,((e,n,r,o,i,s)=>{let a=t[n];if(en(a))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":a=nn(a,i=null!=i?i:2);break;case"g":case"G":a=null!=i?rn(a,i):rn(a);break;case"e":case"E":a=null!=i?on(a,i):on(a);break;case"p":case"P":i=null!=i?i:2,a=nn(tn(a,100),i)+" %";break;case"d":case"D":a=null!=i?Or(String(a),i,"0"):String(a);break;case"x":case"X":a=null!=i?Or(sn(a),i,"0"):sn(a),"X"===o&&(a=a.toUpperCase());break;default:if(s){let e="";a=s.replace(/(0+)(\.0+)?/,((t,n,r)=>(br(a,0)&&(a=tn(a,-1),e="-"),a=nn(a,null!=r?r.length-1:0),Or(a,(n||"").length-e.length+(null!=r?r.length:0),"0")))),a=e+a}}else a=a instanceof Date?sr(a,s||o):at(a);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(a=Or(String(a),Math.abs(r)," ",r<0)),a}))}("({0}, {1})",e[0],e[1])),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(e){return Array.from(this)}GetEnumerator(){return as(this.tree)}[Symbol.iterator](){return Le(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return as(this.tree)}CompareTo(e){const t=this;if(e instanceof us)return 0|function(e,t,n){const r=bo(t);try{const t=bo(n);try{let n=0,o=r["System.Collections.IEnumerator.MoveNext"](),i=t["System.Collections.IEnumerator.MoveNext"]();for(;0===n&&o&&i;)n=0|e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),t["System.Collections.Generic.IEnumerator`1.get_Current"]()),0===n&&(o=r["System.Collections.IEnumerator.MoveNext"](),i=t["System.Collections.IEnumerator.MoveNext"]());return 0|(0!==n?n:o?1:i?-1:0)}finally{t.Dispose()}}finally{r.Dispose()}}(((e,n)=>{const r=0|t.comparer.Compare(e[0],n[0]);return 0|(0!==r?r:tt(e[1],n[1]))}),t,e);throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(e){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"(e){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return!!hs(this,e[0])&&Ze(fs(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){!function(e,t,n){let r=n;Ki(((e,n)=>{t[r]=[e,n],r=r+1|0}),e)}(this.tree,e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|ds(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|ds(this)}get size(){return 0|ds(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return No((e=>[e[0],e[1]]),this)}get(e){return fs(this,e)}has(e){return hs(this,e)}keys(){return No((e=>e[0]),this)}set(e,t){throw new Error("Map cannot be mutated")}values(){return No((e=>e[1]),this)}forEach(e,t){const n=this;Po((t=>{e(t[1],t[0],n)}),n)}}function cs(e,t){return new us(e,t)}function ls(e){const t=Nr();return cs(t,function(e,t){if(je(t))return ns(e,t);if(t instanceof Wr)return function(e,t){return no(((t,n)=>Xi(e,n[0],n[1],t)),void 0,t)}(e,t);{const n=Ue(t);try{return function(e,t,n){for(;;){const r=e,o=t,i=n;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;{const s=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=Xi(r,s[0],s[1],o),n=i}}}(e,void 0,n)}finally{n.Dispose()}}}(t,e))}function fs(e,t){return function(e,t,n){const r=Zi(e,t,n);if(null==r)throw new Error;return Bt(r)}(e.comparer,t,e.tree)}function ds(e){return Vi(e.tree)}function hs(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,a=0|r.Compare(o,Li(s));if(s instanceof Gi){if(a<0){e=r,t=o,n=Hi(s);continue e}if(0===a)return!0;e=r,t=o,n=Bi(s);continue e}return 0===a}return!1}}(e.comparer,t,e.tree)}function ps(e,t,n){return function(e,t,n){return cs(e.comparer,Xi(e.comparer,t,n,e.tree))}(n,e,t)}function ms(e,t){return function(e,t){return Zi(e.comparer,t,e.tree)}(t,e)}function gs(e,t){return function(e,t){return cs(e.comparer,ts(t,e.tree))}(t,e)}function ws(){return us.empty}us.empty=cs(Nr(),void 0);class ys extends ut{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}const _s=document.getElementById("workflows-progress-app"),vs=_s.getAttribute("data-identity-url"),bs=_s.getAttribute("data-backend-url"),Cs=Si(so(["workflows","progress","app"]),2),Ss=Er(Sr("%P()//%P()%P()",[window.location.protocol,window.location.host,Cs]));class xs extends ut{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Embedded","Standalone"]}}class Es extends ut{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Home","AuthCodeExchange","LoggedOut"]}}function ks(e){let t,n;if(Zr(e))t=1;else if("workflows"===Kr(e))if(Zr(eo(e)))t=1;else if("progress"===Kr(eo(e)))if(Zr(eo(eo(e))))t=1;else if("app"===Kr(eo(eo(e))))if(Zr(eo(eo(eo(e)))))t=1;else{const r=function(e){try{const t=new URLSearchParams(e);return Eo(Co((()=>No((e=>[e[0],e[1]]),t.entries()))))}catch(e){return}}(Kr(eo(eo(eo(e)))));null!=r?Zr(r)?t=1:"code"===Kr(r)[0]?Zr(eo(r))?t=1:"scope"===Kr(eo(r))[0]?Zr(eo(eo(r)))?t=1:"session_state"===Kr(eo(eo(r)))[0]?Zr(eo(eo(eo(r))))?t=1:"token"===Kr(eo(eo(eo(r))))[0]&&Zr(eo(eo(eo(eo(r)))))&&Zr(eo(eo(eo(eo(e)))))?(t=0,n=Kr(r)[1]):t=1:t=1:t=1:t=1:t=1}else t=1;else t=1;else t=1;switch(t){case 0:return new Es(1,new Zo(0,n));case 1:return new Es(0)}}class Ms extends ct{constructor(e,t,n){super(),this.CurrentPage=e,this.Credentials=t,this.AppMode=n}}class Is extends ut{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["UrlChanged","AuthMsg","DisplayLoggedOut","ProgressComponentReadyEvent"]}}function Ts(){return h("div",{children:jo.Children.toArray([h("h4",{children:["You have been logged out due to inactivity."]})])})}new class{constructor(){}};function Os(e,t){return Oi.Delay(t)}new class{constructor(){}};class Ps extends ut{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class Ns extends ut{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Header"]}}class As extends ut{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Empty","Text","Binary","Form"]}}class Ds extends ct{constructor(e,t,n,r,o,i,s){super(),this.url=e,this.method=t,this.headers=n,this.withCredentials=r,this.overridenMimeType=o,this.overridenResponseType=i,this.content=s}}class js extends ut{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Rs extends ct{constructor(e,t,n,r,o){super(),this.statusCode=0|e,this.responseText=t,this.responseType=n,this.responseHeaders=r,this.content=o}}const Fs=new Ds("",new Ps(0),Yr(),!1,void 0,void 0,new As(0));function Us(e,t){return"string"!=typeof(n=t)||0===n.length?[t]:function(e,t,n,r){if(r="number"==typeof r?r:void 0,(n="number"==typeof n?n:void 0)&&n<0)throw new Error("Count cannot be less than zero");if(0===n)return[];if(!Array.isArray(t)){if(0===r)return e.split(t,n);const o=arguments.length;t=Array(o-1);for(let e=1;e<o;e++)t[e-1]=arguments[e]}t=t.map((e=>gr(e))),t=t.length>0?t:[" "];let o=0;const i=[],s=new RegExp(t.join("|"),"g");for(;null==n||n>1;){const t=s.exec(e);if(null===t)break;(!r||t.index-o>0)&&(n=null!=n?n-1:n,i.push(e.substring(o,t.index))),o=s.lastIndex}return(!r||e.length-o>0)&&i.push(e.substring(o)),i}(t,[e],null,0);var n}function Ls(e){return new Ds(e,Fs.method,Fs.headers,Fs.withCredentials,Fs.overridenMimeType,Fs.overridenResponseType,Fs.content)}function Ws(e,t){return new Ds(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.content)}function Gs(e,t){return new Ds(t.url,t.method,ao(t.headers,Xr(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.content)}function zs(e){return function(e){return Ti((t=>e([t.onSuccess,t.onError,t.onCancel])))}((t=>{const n=new XMLHttpRequest;n.open(function(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"}}(e.method),e.url),n.onreadystatechange=()=>{let e,r,o,i,s,a;4===n.readyState&&t[0]((r=n.responseType,e=""===r||"text"===r?n.responseText:"",o=0|n.status,i=n.responseType,a=n.responseType,s=""===a||"text"===a?new js(0,n.responseText):new js("arraybuffer"===a?2:"blob"===a?1:3,n.response),new Rs(o,e,i,function(e){const t=Nr();return cs(t,ns(t,e))}(function(e,t,n){const r=[];for(let n=0;n<=t.length-1;n++){const o=e(t[n]);if(null!=o){const e=Bt(o);r.push(e)}}return r}((e=>{const t=so(Us(":",e));return Zr(t)?void 0:[Kr(t).toLocaleLowerCase(),Tr(":",eo(t)).trim()]}),Us("\r\n",n.getAllResponseHeaders()))),s)))};const r=Ue(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(e.fields[0],e.fields[1])}}finally{r.Dispose()}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;null==o||n.overrideMimeType(o);const i=e.overridenResponseType;null==i||(1===i.tag?n.responseType="blob":2===i.tag?n.responseType="arraybuffer":n.responseType="text");const s=[e.method,e.content];0===s[0].tag?n.send(Ht(void 0)):1===s[1].tag||3===s[1].tag||2===s[1].tag?n.send(Ht(s[1].fields[0])):n.send(Ht(void 0))}))}function Hs(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}new Rs(0,"","",ws(),new js(0,""));class Bs extends ut{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class $s extends ut{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class qs{constructor(){this.cache=new Map([])}}function Vs(){return new qs}function Ys(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Js(e,t){switch(e.tag){case 2:return function(e,t,n,r,o=0){if("string"==typeof e){const n=e;e=mr(t,null!=r?r:0),t=n,r=void 0}if("function"==typeof n)return r=null==r?-1:r,t.substring(0,o)+t.substring(o).replace(e,(function(){let e=arguments[0];if(r){r--;const t=[],o=arguments.length,i="string"!=typeof arguments[o-1];let s=i?o-3:o-2;for(let e=0;e<s;e++)t.push(arguments[e]);t.index=arguments[s++],t.input=arguments[s++],i&&(t.groups=arguments[s]),e=n(t)}return e}));if(n=n.replace(/\$0/g,(e=>"$&")).replace(/\${([^}]+)}/g,"$<$1>"),null!=r){let i;const s=t.substring(o),a=wr(e,s),u=wr.length>r?(i=a[r-1],s.substring(0,i.index+i[0].length)):s;return t.substring(0,o)+u.replace(e,n)+t.substring(o+u.length)}return t.replace(e,n)}(Ys(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Ys(t)}}Vs(),Vs();class Xs extends ct{constructor(e,t){super(),this.bound=0|e,this.digits=t}}function Zs(e,t){for(;;){const n=e,r=t;if(0===r)return 1;if(r%2!=0)return n*Zs(n*n,~~(r/2))|0;e=n*n,t=~~(r/2)}}function Qs(e){return e.bound}function Ks(e,t){return e.digits[t]}function ea(e,t){return tr(Ks(e,t),!1,2)}function ta(e,t,n){e.digits[t]=0|n}function na(e,t){for(;;){const n=e,r=t;if(0===r)return Qn(1,0,!1);if(r%2!=0)return Vn(n,na(Vn(n,n),~~(r/2)));e=Vn(n,n),t=~~(r/2)}}function ra(e,t){for(;;){const n=e,r=t;if(0===r)return 1;if(r%2!=0)return n*ra(n*n,~~(r/2))|0;e=n*n,t=~~(r/2)}}Qn(2013265921,0,!1),Qn(2013265921,0,!0),Rr(28,(e=>Zs(2,e)),Int32Array);const oa=16777216,ia=Qn(16777216,0,!1),sa=Qn(16777215,0,!1);function aa(e){return new Xs(e,new Int32Array(e))}function ua(e){const t=0|((e,t)=>{for(;;){const n=e,r=t;if(-1===r||0!==n[r])return r+1|0;e=n,t=r-1}})(e.digits,e.bound-1);return e.bound=0|t,e}function ca(e){const t=0|(e<0?0:e);if(t<oa){const e=aa(1);return e.digits[0]=0|t,ua(e)}{const e=aa(2);for(let n=0;n<=1;n++)e.digits[n]=~~(t/ra(oa,n))%oa|0;return ua(e)}}function la(e){if(1===e.bound)return 0|e.digits[0];{let t=0;for(let n=e.bound-1;n>=0;n--)t=e.digits[n]+oa*t|0;return 0|t}}Qn(16777215,0,!0);const fa=ca(1),da=ca(0);function ha(e){return e.bound-1}function pa(e){return 0===e.bound}function ma(e,t){return-1===function(e,t){return e.bound<t.bound?-1:e.bound>t.bound?1:0|((e,t,n)=>{for(;;){const r=e,o=t,i=n;if(-1===i)return 0;if(r[i]!==o[i])return r[i]<o[i]?-1:1;e=r,t=o,n=i-1}})(e.digits,t.digits,e.bound-1)}(e,t)}function ga(e,t,n){for(;;){const r=e,o=t,i=n;if(!(Zn(o,Qn(0,0,!1))>0))break;{const s=qn(ea(r,i),o);ta(r,i,~~Kn(Xn(s,sa))),e=r,t=Yn(s,ia),n=i+1}}}function wa(e,t){const n=0|Qs(e),r=aa(n+1),o=tr(t,!1,2);let i=Qn(0,0,!1);for(let t=0;t<=n-1;t++){const n=qn(qn(i,ea(r,t)),Vn(ea(e,t),o));ta(r,t,~~Kn(Xn(n,sa))),i=Yn(n,ia)}return ga(r,i,n),ua(r)}class ya extends ct{constructor(e,t,n,r,o,i,s){super(),this.bigL=0|e,this.twoToBigL=0|t,this.k=0|n,this.bigK=0|r,this.bigN=0|o,this.split=0|i,this.splits=s}}function _a(e,t,n,r){return new ya(e,ra(2,e),t,n,r,~~(24/e),Rr(~~(24/e),(t=>ra(2,e*t)),Int32Array))}const va=[_a(1,28,268435456,268435456),_a(2,26,67108864,134217728),_a(3,24,16777216,50331648),_a(4,22,4194304,16777216),_a(5,20,1048576,5242880),_a(6,18,262144,1572864),_a(7,16,65536,458752),_a(8,14,16384,131072),_a(9,12,4096,36864),_a(10,10,1024,10240),_a(11,8,256,2816),_a(12,6,64,768),_a(13,4,16,208)];function ba(e,t){return function(e,t){const n=1===Qs(e),r=1===Qs(t);return n&&r?function(e,t){const n=aa(2),r=Vn(tr(e,!1,2),tr(t,!1,2));return ta(n,0,~~Kn(Xn(r,sa))),ta(n,1,~~Kn(Yn(r,ia))),ua(n)}(Ks(e,0),Ks(t,0)):n?wa(t,Ks(e,0)):r?wa(e,Ks(t,0)):function(e,t){const n=aa(e.bound+t.bound),r=n.digits;for(let o=0;o<=e.bound-1;o++){const i=tr(e.digits[o],!1,2);let s=Qn(0,0,!1),a=o;for(let e=0;e<=t.bound-1;e++){const n=tr(t.digits[e],!1,2),o=qn(qn(tr(r[a],!1,2),s),Vn(i,n));r[a]=0|~~Kn(Xn(o,sa)),s=Yn(o,ia),a=a+1|0}ga(n,s,a)}return ua(n)}(e,t)}(e,t)}function Ca(e,t,n,r){const o=[e.digits,ha(e)],i=o[0],s=[n.digits,ha(n)],a=0|s[1],u=s[0],c=tr(t,!1,2);let l=0,f=Vn(c,tr(u[0],!1,2));for(;Zn(f,Qn(0,0,!1))>0||l<a;){if(l>o[1])throw new Error("scaleSubInPlace: pre-condition did not apply, result would be -ve");let e=~~Kn(Xn(f,sa)),t=Yn(f,ia);e<=i[l+r]?i[l+r]=i[l+r]-e|0:(i[l+r]=i[l+r]+(oa-e)|0,t=qn(t,Qn(1,0,!1))),f=l<a?qn(t,Vn(c,tr(u[l+1],!1,2))):t,l=l+1|0}ua(e)}function Sa(e,t,n,r){const o=[e.digits,ha(e)],i=o[0],s=[n.digits,ha(n)],a=0|s[1],u=s[0],c=tr(t,!1,2);let l=0,f=Vn(c,tr(u[0],!1,2));for(;Zn(f,Qn(0,0,!1))>0||l<a;){if(l>o[1])throw new Error("scaleSubInPlace: pre-condition did not apply, result would be -ve");let e=~~Kn(Xn(f,sa)),t=Yn(f,ia);e<oa-i[l+r]?i[l+r]=i[l+r]+e|0:(i[l+r]=e-(oa-i[l+r])|0,t=qn(t,Qn(1,0,!1))),f=l<a?qn(t,Vn(c,tr(u[l+1],!1,2))):t,l=l+1|0}ua(e)}function xa(e,t,n){const r=[ha(t),ha(e)],o=0|r[1],i=0|r[0];if(o<i+n)return 0;{const r=[t.digits,e.digits],s=r[1],a=r[0],u=0|(0===i?o===n?~~(s[n]/a[0]):~~Kn(Yn(qn(Vn(tr(s[o],!1,2),ia),tr(s[o-1],!1,2)),tr(a[0],!1,2))):o===i+n?~~(s[o]/(a[i]+1)):~~Kn(Yn(qn(Vn(tr(s[o],!1,2),ia),tr(s[o-1],!1,2)),qn(tr(a[i],!1,2),Qn(1,0,!1)))));return 0===u?1!==function(e,t,n,r){if(e.bound+t<n.bound+0)return-1;if(e.bound+t>n.bound+t)return 1;return 0|((e,n,r)=>{e:for(;;){const o=e,i=n,s=r;if(-1===s)return 0;{const a=0|(s<t?0:o[s-t]),u=0|(s<0?0:i[s-0]);if(a===u){e=o,n=i,r=s-1;continue e}return a<u?-1:1}}})(e.digits,n.digits,e.bound+t-1)}(t,n,e)?1:0:0|u}}function Ea(e,t){if(pa(t))throw new Error;if(ha(e)<ha(t))return[da,e];{const n=function(e){return new Xs(e.bound,function(e){return e.slice()}(e.digits))}(e),r=aa(ha(e)-ha(t)+1+1);let o=ha(e);const i=0|ha(t);let s=o-i;const a=e=>{};let u=!1;for(;!u;){a([r,n,s,o]);const e=0|xa(n,t,s);e>0?(Ca(n,e,t,s),Sa(r,e,fa,s),a([r,n,s,o])):(u=0===e&&0===s,u||(o===i+s?(a([r,n,s-1,o]),s=s-1|0):(a([r,n,s-1,o-1]),s=s-1|0,o=o-1|0)))}return[ua(r),ua(n)]}}function ka(e){return ca(e)}function Ma(e){const t=0|ha(e),n=(e,t,r,o)=>{e:for(;;){const i=e,s=t,a=r,u=o;if(Zr(u)){const e=0|la(a);return i&&0===e?s:Jr(He(e),s)}{const c=eo(u),l=Ea(a,Kr(u)[1]),f=l[1],d=l[0];if(i&&pa(d)){e=i,t=s,r=f,o=c;continue e}e=i,t=n(!1,s,f,c),r=d,o=c;continue e}}},r=n(!0,Yr(),e,((e,n,r)=>{for(;;){const o=e,i=n,s=r;if(ha(s)>t)return Jr([i,s],o);e=Jr([i,s],o),n=i+1,r=ba(s,s)}})(Yr(),0,ca(10)));return Zr(r)?"0":Tr("",to(r))}function Ia(e){const t=e;return 0<t.bound?0|t.digits[0]:0}Rr(24,(e=>ra(2,e)-1),Int32Array),Rr(24,(e=>ra(2,e)),Int32Array),Rr(24,(e=>na(Qn(2,0,!1),e))),va[0].bigN,ca(2);class Ta extends ct{constructor(e,t){super(),this.signInt=0|e,this.v=t}toString(){const e=this;switch(0|Na(e)){case-1:return pa(Aa(e))?"0":"-"+Ma(Aa(e));case 0:return"0";case 1:return Ma(Aa(e));default:throw new Error("signs should be +/- 1 or 0")}}Equals(e){return e instanceof Ta&&Da(this,e)}GetHashCode(){return 0|function(e){return 0===Na(e)?1:Na(e)+function(e){let t=0;for(let n=0;n<=e.bound-1;n++)t=e.digits[n]+(t<<3)|0;return 0|t}(Aa(e))|0}(this)}toJSON(e){return at(this)}CompareTo(e){if(e instanceof Ta)return 0|function(e,t){return function(e,t){const n=[Na(e),Na(t)];let r;switch(r=-1===n[0]?-1===n[1]?1:0===n[1]?8:1===n[1]?3:9:0===n[0]?-1===n[1]?6:0===n[1]?4:1===n[1]?5:9:1===n[0]?-1===n[1]?2:0===n[1]?7:1===n[1]?0:9:9,r){case 0:return ma(Aa(e),Aa(t));case 1:return ma(Aa(t),Aa(e));case 2:case 4:case 6:case 7:return!1;case 3:return!pa(Aa(e))||!pa(Aa(t));case 5:return!pa(Aa(t));case 8:return!pa(Aa(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}(e,t)?-1:Da(e,t)?0:1}(this,e);throw new Error("the objects are not comparable\\nParameter name: obj")}}function Oa(e,t){return new Ta(e,t)}function Pa(e){return function(e){return e.bound<=1}(e)&&Ia(e)<Ta.smallLim?Ta.smallPosTab[Ia(e)]:e}function Na(e){return e.signInt}function Aa(e){return e.v}function Da(e,t){const n=[Na(e),Na(t)];let r;switch(r=-1===n[0]?-1===n[1]?1:0===n[1]?8:1===n[1]?3:9:0===n[0]?-1===n[1]?6:0===n[1]?4:1===n[1]?5:9:1===n[0]?-1===n[1]?2:0===n[1]?7:1===n[1]?0:9:9,r){case 0:case 1:return function(e,t){if(e.bound===t.bound)return((e,t,n)=>{for(;;){const r=e,o=t,i=n;if(-1===i)return!0;if(r[i]!==o[i])return!1;e=r,t=o,n=i-1}})(e.digits,t.digits,e.bound-1);return!1}(Aa(e),Aa(t));case 2:case 3:return!!pa(Aa(e))&&pa(Aa(t));case 4:return!0;case 5:case 6:return pa(Aa(t));case 7:case 8:return pa(Aa(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function ja(e){return e>=0?Oa(1,Pa(ka(e))):Oa(-1,Pa(-2147483648===e?function(e){return function(e){const t=Zn(e,Qn(0,0,!1))<0?Qn(0,0,!1):e,n=aa(3);for(let e=0;e<=2;e++)n.digits[e]=0|~~Kn((r=Yn(t,na(ia,e)),o=ia,cn(o)||(o=wn(o)),an?pn((r.unsigned?an.rem_u:an.rem_s)(r.low,r.high,o.low,o.high),an.get_high(),r.unsigned):Hn(r,Bn($n(r,o),o))));var r,o;return ua(n)}(e)}(Jn(tr(e,!1,2))):ka(function(e){return-2147483648===e?e:-e}(e))))}function Ra(){return Ta.one}function Fa(){return Ta.zero}function Ua(e,t){!function(e){if(null!=e&&0!==e){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.")}}(t);const n=new Date(e);return n.offset=null!=t?t:-6e4*(new Date).getTimezoneOffset(),n}function La(e,t){try{return t.contents=function(e){const t=ur(e),n=nr.exec(e),r=null==n?-6e4*t.getTimezoneOffset():"Z"===n[0]?0:36e5*parseInt(n[1],10)+6e4*parseInt(n[2],10);return Ua(t.getTime(),r)}(e),!0}catch(e){return!1}}function Wa(e){return e<0?Math.ceil(e):Math.floor(e)}function Ga(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return za(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],o=0}return 864e5*e+36e5*t+6e4*n+1e3*r+o}function za(e){return er(Yn(e,1e4))}function Ha(e,t){try{return t.contents=function(e){const t=e.search("\\."),n=e.search("\\:");if(-1===t&&-1===n){const t=parseInt(e,0);if(isNaN(t))throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`);return Ga(t,0,0,0,0)}if(n>0){const t=/^(-?)((\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(null!=t&&null!=t[4]&&null!=t[5]){let n=0,r=0,o=0;const i=null!=t[1]&&"-"===t[1]?-1:1,s=+t[4],a=+t[5];if(null!=t[3]&&(n=+t[3]),null!=t[7]&&(o=+t[7]),null!=t[8])switch(t[8].length){case 1:r=100*+t[8];break;case 2:r=10*+t[8];break;case 3:r=+t[8];break;case 4:r=+t[8]/10;break;case 5:r=+t[8]/100;break;case 6:r=+t[8]/1e3;break;case 7:r=+t[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return i*Ga(n,s,a,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}Ta.smallLim=4096,Ta.smallPosTab=Rr(Ta.smallLim,(e=>ka(e))),Ta.one=ja(1),Ta.two=ja(2),Ta.zero=ja(0),Fa(),Ra(),Ta.two,Fa(),Ra();class Ba{constructor(e){this.k=e}}function $a(e){return new Ba(e)}function qa(e){return e.k}class Va extends Ba{constructor(e,t,n,r){super(e),this.left=t,this.right=n,this.h=0|r}}function Ya(e,t,n,r){return new Va(e,t,n,r)}function Ja(e){return e.left}function Xa(e){return e.right}function Za(e){return e.h}function Qa(e,t){e:for(;;){const n=e,r=t;if(null!=n){const o=n;if(o instanceof Va){e=Ja(o),t=Qa(Xa(o),r+1);continue e}return r+1|0}return 0|r}}function Ka(e){return Qa(e,0)}function eu(e,t,n){let r,o;if(null!=e){const t=e;r=t instanceof Va?Za(t):1}else r=0;if(null!=n){const e=n;o=e instanceof Va?Za(e):1}else o=0;const i=0|(r<o?o:r);return 0===i?$a(t):Ya(t,e,n,i+1)}function tu(e,t,n){let r,o,i,s,a,u;if(null!=e){const t=e;a=t instanceof Va?Za(t):1}else a=0;if(null!=n){const e=n;u=e instanceof Va?Za(e):1}else u=0;if(u>a+2){const i=Bt(n);if(i instanceof Va){if(r=Ja(i),(null!=r?(o=r,o instanceof Va?Za(o):1):0)>a+1){const n=Bt(Ja(i));if(n instanceof Va)return eu(eu(e,t,Ja(n)),qa(n),eu(Xa(n),qa(i),Xa(i)));throw new Error("internal error: Set.rebalance")}return eu(eu(e,t,Ja(i)),qa(i),Xa(i))}throw new Error("internal error: Set.rebalance")}if(a>u+2){const r=Bt(e);if(r instanceof Va){if(i=Xa(r),(null!=i?(s=i,s instanceof Va?Za(s):1):0)>u+1){const e=Bt(Xa(r));if(e instanceof Va)return eu(eu(Ja(r),qa(r),Ja(e)),qa(e),eu(Xa(e),t,n));throw new Error("internal error: Set.rebalance")}return eu(Ja(r),qa(r),eu(Xa(r),t,n))}throw new Error("internal error: Set.rebalance")}return eu(e,t,n)}function nu(e,t,n){if(null!=n){const r=n,o=0|e.Compare(t,qa(r));if(r instanceof Va)return o<0?tu(nu(e,t,Ja(r)),qa(r),Xa(r)):0===o?n:tu(Ja(r),qa(r),nu(e,t,Xa(r)));{const o=0|e.Compare(t,qa(r));return o<0?Ya(t,void 0,n,2):0===o?n:Ya(t,n,void 0,2)}}return $a(t)}function ru(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,a=0|r.Compare(o,qa(s));if(s instanceof Va){if(a<0){e=r,t=o,n=Ja(s);continue e}if(0===a)return!0;e=r,t=o,n=Xa(s);continue e}return 0===a}return!1}}function ou(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof Va){ou(n,Ja(o)),n(qa(o)),e=n,t=Xa(o);continue e}n(qa(o))}break}}class iu extends ct{constructor(e,t){super(),this.stack=e,this.started=t}}function su(e){e:for(;;){const t=e;if(Zr(t))return Yr();{const n=Kr(t),r=eo(t);if(null!=n){const o=n;if(o instanceof Va){e=io([Ja(o),$a(qa(o)),Xa(o)],r);continue e}return t}e=r;continue e}}}function au(e){return new iu(su(Xr(e)),!1)}function uu(e){if(e.started){const t=e.stack;if(Zr(t))return function(){throw new Error("Enumeration already started")}();if(null!=Kr(t))return qa(Kr(t));throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function cu(e){let t=au(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>uu(t),"System.Collections.IEnumerator.get_Current":()=>uu(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(Zr(t))return!1;if(null!=Kr(t)){if(Kr(t)instanceof Va)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=su(eo(t)),!Zr(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!Zr(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=au(e)},Dispose(){}}}function lu(e,t,n){return null==t?null==n?0:-1:null==n?1:0|function(e,t,n){e:for(;;){const r=e,o=t,i=n,s=[o,i];if(Zr(s[0]))return Zr(s[1])?0:-1;if(Zr(s[1]))return 1;if(null!=Kr(s[1]))if(null!=Kr(s[0])){const a=Kr(s[0]),u=Kr(s[1]);if(a instanceof Va)if(null==Ja(a)){if(!(u instanceof Va)){const o=0|r.Compare(qa(a),qa(u));if(0!==o)return 0|o;e=r,t=Jr(Xa(a),eo(s[0])),n=Jr(void 0,eo(s[1]));continue e}if(null==Ja(u)){const o=0|r.Compare(qa(a),qa(u));if(0!==o)return 0|o;e=r,t=Jr(Xa(a),eo(s[0])),n=Jr(Xa(u),eo(s[1]));continue e}{const s=[o,i];let a,u,c,l,f;switch(Zr(s[0])?Zr(s[1])?a=2:null!=Kr(s[1])?(a=1,l=eo(s[1]),f=Kr(s[1])):a=2:null!=Kr(s[0])?(a=0,u=eo(s[0]),c=Kr(s[0])):Zr(s[1])?a=2:null!=Kr(s[1])?(a=1,l=eo(s[1]),f=Kr(s[1])):a=2,a){case 0:if(c instanceof Va){e=r,t=io([Ja(c),Ya(qa(c),void 0,Xa(c),0)],u),n=i;continue e}e=r,t=io([void 0,$a(qa(c))],u),n=i;continue e;case 1:if(f instanceof Va){e=r,t=o,n=io([Ja(f),Ya(qa(f),void 0,Xa(f),0)],l);continue e}e=r,t=o,n=io([void 0,$a(qa(f))],l);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const s=[o,i];let a,u,c,l,f;switch(Zr(s[0])?Zr(s[1])?a=2:null!=Kr(s[1])?(a=1,l=eo(s[1]),f=Kr(s[1])):a=2:null!=Kr(s[0])?(a=0,u=eo(s[0]),c=Kr(s[0])):Zr(s[1])?a=2:null!=Kr(s[1])?(a=1,l=eo(s[1]),f=Kr(s[1])):a=2,a){case 0:if(c instanceof Va){e=r,t=io([Ja(c),Ya(qa(c),void 0,Xa(c),0)],u),n=i;continue e}e=r,t=io([void 0,$a(qa(c))],u),n=i;continue e;case 1:if(f instanceof Va){e=r,t=o,n=io([Ja(f),Ya(qa(f),void 0,Xa(f),0)],l);continue e}e=r,t=o,n=io([void 0,$a(qa(f))],l);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(!(u instanceof Va)){const o=0|r.Compare(qa(a),qa(u));if(0!==o)return 0|o;e=r,t=eo(s[0]),n=eo(s[1]);continue e}if(null==Ja(u)){const o=0|r.Compare(qa(a),qa(u));if(0!==o)return 0|o;e=r,t=Jr(void 0,eo(s[0])),n=Jr(Xa(u),eo(s[1]));continue e}{const s=[o,i];let a,u,c,l,f;switch(Zr(s[0])?Zr(s[1])?a=2:null!=Kr(s[1])?(a=1,l=eo(s[1]),f=Kr(s[1])):a=2:null!=Kr(s[0])?(a=0,u=eo(s[0]),c=Kr(s[0])):Zr(s[1])?a=2:null!=Kr(s[1])?(a=1,l=eo(s[1]),f=Kr(s[1])):a=2,a){case 0:if(c instanceof Va){e=r,t=io([Ja(c),Ya(qa(c),void 0,Xa(c),0)],u),n=i;continue e}e=r,t=io([void 0,$a(qa(c))],u),n=i;continue e;case 1:if(f instanceof Va){e=r,t=o,n=io([Ja(f),Ya(qa(f),void 0,Xa(f),0)],l);continue e}e=r,t=o,n=io([void 0,$a(qa(f))],l);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{Kr(s[1]);const a=[o,i];let u,c,l,f,d;switch(Zr(a[0])?Zr(a[1])?u=2:null!=Kr(a[1])?(u=1,f=eo(a[1]),d=Kr(a[1])):u=2:null!=Kr(a[0])?(u=0,c=eo(a[0]),l=Kr(a[0])):Zr(a[1])?u=2:null!=Kr(a[1])?(u=1,f=eo(a[1]),d=Kr(a[1])):u=2,u){case 0:if(l instanceof Va){e=r,t=io([Ja(l),Ya(qa(l),void 0,Xa(l),0)],c),n=i;continue e}e=r,t=io([void 0,$a(qa(l))],c),n=i;continue e;case 1:if(d instanceof Va){e=r,t=o,n=io([Ja(d),Ya(qa(d),void 0,Xa(d),0)],f);continue e}e=r,t=o,n=io([void 0,$a(qa(d))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==Kr(s[0])){e=r,t=eo(s[0]),n=eo(s[1]);continue e}{Kr(s[0]);const a=[o,i];let u,c,l,f,d;switch(Zr(a[0])?Zr(a[1])?u=2:null!=Kr(a[1])?(u=1,f=eo(a[1]),d=Kr(a[1])):u=2:null!=Kr(a[0])?(u=0,c=eo(a[0]),l=Kr(a[0])):Zr(a[1])?u=2:null!=Kr(a[1])?(u=1,f=eo(a[1]),d=Kr(a[1])):u=2,u){case 0:if(l instanceof Va){e=r,t=io([Ja(l),Ya(qa(l),void 0,Xa(l),0)],c),n=i;continue e}e=r,t=io([void 0,$a(qa(l))],c),n=i;continue e;case 1:if(d instanceof Va){e=r,t=o,n=io([Ja(d),Ya(qa(d),void 0,Xa(d),0)],f);continue e}e=r,t=o,n=io([void 0,$a(qa(d))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,Xr(t),Xr(n))}function fu(e,t,n){let r=n;ou((e=>{t[r]=e,r=r+1|0}),e)}function du(e,t){if(je(t))return function(e,t){return Fr(((t,n)=>nu(e,n,t)),void 0,t)}(e,t);if(t instanceof Wr)return function(e,t){return no(((t,n)=>nu(e,n,t)),void 0,t)}(e,t);{const n=Ue(t);try{return function(e,t,n){for(;;){const r=e,o=t,i=n;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;e=r,t=nu(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i}}(e,void 0,n)}finally{n.Dispose()}}}class hu{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){let t,n=0;const r=Ue(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();)n=0|(t=0|Ye(r["System.Collections.Generic.IEnumerator`1.get_Current"]()),(n<<1)+t+631)}finally{r.Dispose()}return 0|Math.abs(n)}(this)}Equals(e){return e instanceof hu&&0===lu(pu(this),mu(this),mu(e))}toString(){return"set ["+Tr("; ",No((e=>at(e)),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(e){return Array.from(this)}CompareTo(e){return 0|lu(pu(this),mu(this),mu(e))}"System.Collections.Generic.ICollection`1.Add2B595"(e){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Remove2B595"(e){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return ru(pu(this),e,mu(this))}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){fu(mu(this),e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|gu(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|gu(this)}GetEnumerator(){return cu(mu(this))}[Symbol.iterator](){return Le(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return cu(mu(this))}get size(){return 0|gu(this)}add(e){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(e){throw new Error("Set cannot be mutated")}has(e){return function(e,t){return ru(pu(e),t,mu(e))}(this,e)}keys(){return No((e=>e),this)}values(){return No((e=>e),this)}entries(){return No((e=>[e,e]),this)}forEach(e,t){const n=this;Po((t=>{e(t,t,n)}),n)}}function pu(e){return e.comparer}function mu(e){return e.tree}function gu(e){return Ka(mu(e))}function wu(e,t){return function(e,t){return new hu(e,t)}(t,du(t,e))}function yu(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?"\n":" ")+JSON.stringify(t,null,4)}catch(t){return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?"\n":" ")}}function _u(e,t,n){const r=t(e,n);if(1===r.tag){const e=r.fields[0];return new Vo(1,function(e,t){const n=2===t.tag?yu(t.fields[0],t.fields[1],!0):1===t.tag?yu(t.fields[0],t.fields[1],!1)+"\nReason: "+t.fields[2]:3===t.tag?yu(t.fields[0],t.fields[1],!0):4===t.tag?yu(t.fields[0],t.fields[1],!0)+"\nNode `"+t.fields[2]+"` is unkown.":5===t.tag?"Expecting "+t.fields[0]+".\n"+JSON.stringify(t.fields[1],null,4):7===t.tag?"The following errors were found:\n\n"+Tr("\n\n",t.fields[0]):6===t.tag?"The following `failure` occurred with the decoder: "+t.fields[0]:yu(t.fields[0],t.fields[1],!1);return 7===t.tag?n:"Error at: `"+e+"`\n"+n}(e[0],e[1]))}return new Vo(0,r.fields[0])}const vu=e=>t=>{const n="a sbyte",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-128<=e&&e<=127?new Vo(0,(e+128&255)-128):new Vo(1,[r,new Bs(1,n,e,"Value was either too large or too small for a sbyte")]):new Vo(1,[r,new Bs(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[Qt(o,511,!1,8,new lt((()=>t),(e=>{t=0|e}))),t],e[0]?new Vo(0,e[1]):new Vo(1,[r,new Bs(0,n,o)])}return new Vo(1,[r,new Bs(0,n,o)])},bu=e=>t=>{const n="a byte",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=255?new Vo(0,255&e):new Vo(1,[r,new Bs(1,n,e,"Value was either too large or too small for a byte")]):new Vo(1,[r,new Bs(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[Qt(o,511,!0,8,new lt((()=>t),(e=>{t=e}))),t],e[0]?new Vo(0,e[1]):new Vo(1,[r,new Bs(0,n,o)])}return new Vo(1,[r,new Bs(0,n,o)])},Cu=e=>t=>{const n="an int16",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-32768<=e&&e<=32767?new Vo(0,(e+32768&65535)-32768):new Vo(1,[r,new Bs(1,n,e,"Value was either too large or too small for "+n)]):new Vo(1,[r,new Bs(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[Qt(o,511,!1,16,new lt((()=>t),(e=>{t=0|e}))),t],e[0]?new Vo(0,e[1]):new Vo(1,[r,new Bs(0,n,o)])}return new Vo(1,[r,new Bs(0,n,o)])},Su=e=>t=>{const n="an uint16",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=65535?new Vo(0,65535&e):new Vo(1,[r,new Bs(1,n,e,"Value was either too large or too small for "+n)]):new Vo(1,[r,new Bs(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[Qt(o,511,!0,16,new lt((()=>t),(e=>{t=e}))),t],e[0]?new Vo(0,e[1]):new Vo(1,[r,new Bs(0,n,o)])}return new Vo(1,[r,new Bs(0,n,o)])},xu=e=>t=>{const n="an int",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-2147483648<=e&&e<=2147483647?new Vo(0,~~e):new Vo(1,[r,new Bs(1,n,e,"Value was either too large or too small for an int")]):new Vo(1,[r,new Bs(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[Qt(o,511,!1,32,new lt((()=>t),(e=>{t=0|e}))),t],e[0]?new Vo(0,e[1]):new Vo(1,[r,new Bs(0,n,o)])}return new Vo(1,[r,new Bs(0,n,o)])},Eu=e=>t=>{const n="an uint32",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=4294967295?new Vo(0,e>>>0):new Vo(1,[r,new Bs(1,n,e,"Value was either too large or too small for "+n)]):new Vo(1,[r,new Bs(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[Qt(o,511,!0,32,new lt((()=>t),(e=>{t=e}))),t],e[0]?new Vo(0,e[1]):new Vo(1,[r,new Bs(0,n,o)])}return new Vo(1,[r,new Bs(0,n,o)])};function ku(e,t,n,r){let o;const i=n+".["+He(e)+"]";if(Array.isArray(r)){const n=r;return e<n.length?t(i,n[e]):new Vo(1,[i,new Bs(5,"a longer array. Need index `"+He(e)+"` but there are only `"+(o=n.length,He(o)+"` entries"),r)])}return new Vo(1,[i,new Bs(0,"an array",r)])}function Mu(e,t,n){if(Array.isArray(n)){let r=-1;return Yo((e=>ro(e)),Fr(((n,o)=>{if(r=r+1|0,0===n.tag){const i=e(t+".["+He(r)+"]",o);return 0===i.tag?new Vo(0,Jr(i.fields[0],n.fields[0])):new Vo(1,i.fields[0])}return n}),new Vo(0,Yr()),n))}return new Vo(1,[t,new Bs(0,"a list",n)])}function Iu(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return Fr(((n,o)=>{if(r=r+1|0,0===n.tag){const i=n.fields[0],s=e(t+".["+He(r)+"]",o);return 0===s.tag?(i[r]=s.fields[0],new Vo(0,i)):new Vo(1,s.fields[0])}return n}),new Vo(0,Dr(new Array(o.length),0,o.length,null)),o)}return new Vo(1,[t,new Bs(0,"an array",n)])}function Tu(e,t,n,r){const o=t(n,r);return 0===o.tag?e(o.fields[0],n,r):new Vo(1,o.fields[0])}function Ou(e,t){let n;const r=e;return n=e=>t=>ku(0,r,e,t),e=>r=>Tu(ot(3,(e=>{let n;const r=t;return n=e=>t=>ku(1,r,e,t),t=>r=>Tu(((t,n,r)=>new Vo(0,[e,t])),ot(2,n),t,r)})),ot(2,n),e,r)}function Pu(e,t,n,r){let o,i;return t.length!==r.length?new Vo(1,[n,new Bs(6,(o=0|r.length,i=0|t.length,Er(Cr("Expected %i %s but got %i"))(i)(e)(o)))]):Lr(ot(3,st((e=>t=>r=>0===r.tag?Yo((e=>Jr(e,r.fields[0])),t(n,e)):r),[0,[0,2],0])),r,t,new Vo(0,Yr()))}function Nu(e,t,n,r,o,i){const s=function(e,t){return t.find((e=>xt(e)===r))}(0,Dt(n));if(null!=s){const n=s;return 0===i.length?new Vo(0,Gt(n,[])):Yo((e=>Gt(n,to(e))),Pu("union fields",jr((n=>Du(e,t,!1,n[1])),Wt(n)),o,i))}return new Vo(1,[o,new Bs(6,"Cannot find case "+r+" in "+Et(n))])}function Au(e,t,n,r){const o=new lt(null),i=ps(Et(r),o,e);let s;if(Ut(r)){const e=jr((e=>[Js(t,xt(e)),Du(i,t,!1,e[1])]),jt(r));s=t=>n=>Yo((e=>function(e,t){const n=jt(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return null!=e.construct?new e.construct(...t):n.reduce(((e,[n,r],o)=>(e[n]=t[o],e)),{})}(r,to(e))),function(e,t,n){return null===n||Object.getPrototypeOf(n||!1)!==Object.prototype?new Vo(1,[t,new Bs(0,"an object",n)]):function(e,t,n){return t.reduceRight(((t,n)=>e(n,t)),n)}(ot(2,(e=>{const r=e[0];return o=>0===o.tag?Yo((e=>Jr(e,o.fields[0])),e[1](t+"."+r)(n[r])):o})),e,new Vo(0,Yr()))}(e,t,n))}else if(Ft(r))s=e=>n=>{if("string"==typeof n)return Nu(i,t,r,n,e,[]);if(Array.isArray(n)){const o=n;return Nu(i,t,r,o[0],e,o.slice(1,o.length))}return new Vo(1,[e,new Bs(0,"a string or array",n)])};else{if(!n){let e;const t=Et(r);throw e=Er(Cr("Cannot generate auto decoder for %s. Please pass an extra decoder."))(t),new Error(e)}s=e=>t=>new Vo(1,[e,new Bs(2,"an extra coder for "+Et(r),t)])}return o.contents=s,s}function Du(e,t,n,r){let o;const i=Et(r),s=ms(i,e);if(null==s){if(kt(r)){const n=Du(e,t,!1,Mt(r));return e=>t=>Iu(ot(2,n),e,t)}if(Tt(r)){const e=Et(Pt(r));if("System.SByte"===e)return e=>t=>{const n=r,o=e,i=t,s=vu(o)(i);if(1===s.tag)return new Vo(1,s.fields[0]);{const e=s.fields[0];return To(e,Nt(n),{Equals:(e,t)=>e===t,GetHashCode:e=>qe(e)})?new Vo(0,At(n,e.toString())):new Vo(1,[o,new Bs(1,Et(n),i,"Unkown value provided for the enum")])}};if("System.Byte"===e)return e=>t=>{const n=r,o=e,i=t,s=bu(o)(i);if(1===s.tag)return new Vo(1,s.fields[0]);{const e=s.fields[0];return To(e,Nt(n),{Equals:(e,t)=>e===t,GetHashCode:e=>qe(e)})?new Vo(0,At(n,e.toString())):new Vo(1,[o,new Bs(1,Et(n),i,"Unkown value provided for the enum")])}};if("System.Int16"===e)return e=>t=>{const n=r,o=e,i=t,s=Cu(o)(i);if(1===s.tag)return new Vo(1,s.fields[0]);{const e=s.fields[0];return To(e,Nt(n),{Equals:(e,t)=>e===t,GetHashCode:e=>qe(e)})?new Vo(0,At(n,e.toString(a))):new Vo(1,[o,new Bs(1,Et(n),i,"Unkown value provided for the enum")])}var a};if("System.UInt16"===e)return e=>t=>{const n=r,o=e,i=t,s=Su(o)(i);if(1===s.tag)return new Vo(1,s.fields[0]);{const e=s.fields[0];return To(e,Nt(n),{Equals:(e,t)=>e===t,GetHashCode:e=>qe(e)})?new Vo(0,At(n,e.toString())):new Vo(1,[o,new Bs(1,Et(n),i,"Unkown value provided for the enum")])}};if("System.Int32"===e)return e=>t=>{const n=r,o=e,i=t,s=xu(o)(i);if(1===s.tag)return new Vo(1,s.fields[0]);{const e=s.fields[0];return To(e,Nt(n),{Equals:(e,t)=>e===t,GetHashCode:e=>qe(e)})?new Vo(0,At(n,He(e))):new Vo(1,[o,new Bs(1,Et(n),i,"Unkown value provided for the enum")])}};if("System.UInt32"===e)return e=>t=>{const n=r,o=e,i=t,s=Eu(o)(i);if(1===s.tag)return new Vo(1,s.fields[0]);{const e=s.fields[0];return To(e,Nt(n),{Equals:(e,t)=>e===t,GetHashCode:e=>qe(e)})?new Vo(0,At(n,e.toString())):new Vo(1,[o,new Bs(1,Et(n),i,"Unkown value provided for the enum")])}};{const e=Et(r),t=kr(Cr("Cannot generate auto decoder for %s.\nThoth.Json.Net only support the folluwing enum types:\n- sbyte\n- byte\n- int16\n- uint16\n- int\n- uint32\nIf you can't use one of these types, please pass an extra decoder.\n "))(e);return e=>{const n=t(e);return e=>n(e)}}}if(It(r)){if(Lt(r)){const n=jr((n=>Du(e,t,!1,n)),Rt(r));return e=>t=>Array.isArray(t)?Yo((e=>to(e)),Pu("tuple elements",n,e,t)):new Vo(1,[e,new Bs(0,"an array",t)])}{const i=Et(Ot(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===i){const n=Du(e,t,!0,ht(r)[0]);return e=>t=>{return r=ot(2,n),o=e,null==(i=t)?new Vo(0,void 0):Yo((e=>Ht(e)),r(o,i));var r,o,i}}if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===i){const n=Du(e,t,!1,ht(r)[0]);return e=>t=>Mu(ot(2,n),e,t)}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===i){const n=Du(e,t,!1,ht(r)[0]),i=Du(e,t,!1,ht(r)[1]);let s;const a=so([e=>t=>function(e,t,n,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new Vo(1,[n,new Bs(0,"an object",r)]):Oo(((o,i)=>{if(0===o.tag){const s=e(n,i);if(0===s.tag){const e=t(n+"."+i,r[i]);return 0===e.tag?new Vo(0,Jr([s.fields[0],e.fields[0]],o.fields[0])):new Vo(1,e.fields[0])}return new Vo(1,s.fields[0])}return o}),new Vo(0,Yr()),Object.keys(r))}(ot(2,n),ot(2,i),e,t),(o=Ou(ot(2,n),ot(2,i)),e=>t=>Mu(ot(2,o),e,t))]);return s=e=>t=>{return n=e,r=t,((e,t)=>{e:for(;;){const o=e,i=t;if(Zr(o))return new Vo(1,[n,new Bs(7,i)]);{const s=_u(n,ot(2,Kr(o)),r);if(1===s.tag){e=eo(o),t=ao(i,Xr(s.fields[0]));continue e}return new Vo(0,s.fields[0])}}})(a,Yr());var n,r},e=>t=>function(e,t,n,r){const o=t(n,r);return 1===o.tag?new Vo(1,o.fields[0]):new Vo(0,e(o.fields[0]))}((e=>ls(e)),ot(2,s),e,t)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===i){const n=Du(e,t,!1,ht(r)[0]);return e=>t=>{const r=Iu(ot(2,n),e,t);return 0===r.tag?new Vo(0,wu(r.fields[0],{Compare:(e,t)=>tt(e,t)})):new Vo(1,r.fields[0])}}return Au(e,t,n,r)}}return"System.Boolean"===i?e=>t=>{return n=e,"boolean"==typeof(r=t)?new Vo(0,r):new Vo(1,[n,new Bs(0,"a boolean",r)]);var n,r}:"Microsoft.FSharp.Core.Unit"===i?e=>t=>{return n=e,null==(r=t)?new Vo(0,void 0):new Vo(1,[n,new Bs(0,"null",r)]);var n,r}:"System.String"===i?e=>t=>{return n=e,"string"==typeof(r=t)?new Vo(0,r):new Vo(1,[n,new Bs(0,"a string",r)]);var n,r}:"System.SByte"===i?vu:"System.Byte"===i?bu:"System.Int16"===i?Cu:"System.UInt16"===i?Su:"System.Int32"===i?xu:"System.UInt32"===i?Eu:"System.Double"===i?e=>t=>{return n=e,"number"==typeof(r=t)?new Vo(0,r):new Vo(1,[n,new Bs(0,"a float",r)]);var n,r}:"System.Single"===i?e=>t=>{return n=e,"number"==typeof(r=t)?new Vo(0,r):new Vo(1,[n,new Bs(0,"a float32",r)]);var n,r}:"System.DateTime"===i?e=>t=>function(e,t){if("string"==typeof t){let r,o=ar(-621355968e5,0);return r=[cr(t,new lt((()=>o),(e=>{o=e}))),o],r[0]?new Vo(0,1===(n=r[1]).kind?n:ar(n.getTime(),1)):new Vo(1,[e,new Bs(0,"a datetime",t)])}var n;return new Vo(1,[e,new Bs(0,"a datetime",t)])}(e,t):"System.DateTimeOffset"===i?e=>t=>function(e,t){if("string"==typeof t){let n,r=Ua(-621355968e5,0);return n=[La(t,new lt((()=>r),(e=>{r=e}))),r],n[0]?new Vo(0,n[1]):new Vo(1,[e,new Bs(0,"a datetimeoffset",t)])}return new Vo(1,[e,new Bs(0,"a datetime",t)])}(e,t):"System.TimeSpan"===i?e=>t=>function(e,t){if("string"==typeof t){let n,r=0;return n=[Ha(t,new lt((()=>r),(e=>{r=e}))),r],n[0]?new Vo(0,n[1]):new Vo(1,[e,new Bs(0,"a timespan",t)])}return new Vo(1,[e,new Bs(0,"a timespan",t)])}(e,t):"System.Guid"===i?e=>t=>function(e,t){if("string"==typeof t){let n,r="00000000-0000-0000-0000-000000000000";return n=[ai(t,new lt((()=>r),(e=>{r=e}))),r],n[0]?new Vo(0,n[1]):new Vo(1,[e,new Bs(0,"a guid",t)])}return new Vo(1,[e,new Bs(0,"a guid",t)])}(e,t):"System.Object"===i?e=>e=>new Vo(0,e):Au(e,t,n,r)}{const e=s;return t=>n=>e.contents(t)(n)}}function ju(e,t,n){const r=Vt(e,new $s(0)),o=Bt(n).ResolveType();return Du(function(e){return null!=e?gs(((e,t)=>new lt(t[1])),e.Coders):ws()}(t),r,!1,o)}function Ru(e,t,n,r){return function(e,t){try{return _u("$",e,JSON.parse(t))}catch(e){if(e instanceof SyntaxError)return new Vo(1,"Given an invalid JSON: "+e.message);throw e}}(ot(2,ju(t,n,r)),e)}new class{constructor(){}};class Fu extends ct{constructor(e,t,n,r,o,i,s){super(),this.Configuration=e,this.LastUpdated=t,this.Status=n,this.Invite=r,this.Creator=o,this.Profile=i,this.Tags=s}}class Uu extends ct{constructor(e,t){super(),this.Name=e,this.Steps=t}}class Lu extends ct{constructor(e,t){super(),this.Id=e,this.DisplayName=t}}class Wu extends ut{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Inactive","Active","Complete","Abandoned"]}}class Gu extends ct{constructor(e){super(),this.CompletedSteps=e}}class zu extends ct{constructor(e,t){super(),this.Type=e,this.Date=t}}class Hu extends ct{constructor(e){super(),this.DateIssued=e}}class Bu extends ct{constructor(e,t){super(),this.Name=e,this.Value=t}}class $u extends ct{constructor(e,t,n){super(),this.FirstName=e,this.LastName=t,this.Email=n}}class qu extends ct{constructor(e,t,n,r){super(),this.FirstName=e,this.LastName=t,this.Email=n,this.ExternalId=r}}class Vu extends ct{constructor(e){super(),this.Data=e}}function Yu(){return wt("Workflows.Api.Models.ProgressBackendModels.ProcessInstanceDetailList",[],Vu,(()=>[["Data",vt(wt("Workflows.Api.Models.ProgressBackendModels.ProcessInstanceDetail",[],Fu,(()=>[["Configuration",wt("Workflows.Api.Models.ProgressBackendModels.ProcessConfig",[],Uu,(()=>[["Name",Ct],["Steps",vt(wt("Workflows.Api.Models.ProgressBackendModels.ProcessStepConfig",[],Lu,(()=>[["Id",Ct],["DisplayName",Ct]])))]]))],["LastUpdated",gt("System.DateTime")],["Status",yt("Workflows.Api.Models.ProgressBackendModels.ProcessInstanceStatus",[],Wu,(()=>[[],[["Item",wt("Workflows.Api.Models.ProgressBackendModels.ActiveProcessInstance",[],Gu,(()=>[["CompletedSteps",vt(wt("Workflows.Api.Models.ProgressBackendModels.CompletedStep",[],zu,(()=>[["Type",Ct],["Date",gt("System.DateTime")]])))]]))]],[["Item",gt("System.DateTime")]],[["Item",gt("System.DateTime")]]]))],["Invite",_t(wt("Workflows.Api.Models.ProgressBackendModels.Invite",[],Hu,(()=>[["DateIssued",gt("System.DateTime")]])))],["Creator",_t(wt("Workflows.Api.Models.ProgressBackendModels.Creator",[],$u,(()=>[["FirstName",Ct],["LastName",Ct],["Email",Ct]])))],["Profile",wt("Workflows.Api.Models.ProgressBackendModels.Profile",[],qu,(()=>[["FirstName",Ct],["LastName",Ct],["Email",Ct],["ExternalId",_t(Ct)]]))],["Tags",vt(wt("Workflows.Api.Models.ProgressBackendModels.Tag",[],Bu,(()=>[["Name",Ct],["Value",Ct]])))]])))]]))}class Ju{constructor(e,t){this.accessToken=t,this.backendUrl=Er(Sr("%P()/workflows/progress-backend",[e]))}}function Xu(e){return Os(0,(()=>{let t,n;const r=(o=e,i=Ws(new Ps(0),Ls(Er(Sr("%P()/instances?dateFrom=%P()",[e.backendUrl,(n=lr(),t=hr(n,-30),sr(t,"o"))])))),Os(0,(()=>{const e=Gs((n=Er(Sr("Bearer %P()",[o.accessToken])),new Ns(0,"Authorization",n)),i),t=Oi.Bind(zs(e),(e=>Oi.Return(new Vo(0,e))));var n;return Oi.Delay((()=>Oi.Bind(t,(t=>{let n;const r=t;return 1===r.tag?Oi.Return(new Vo(1,r.fields[0])):Oi.ReturnFrom((n=r.fields[0],429===n.statusCode||n.statusCode>=500?Oi.Bind(zs(e),(e=>Oi.Return(new Vo(0,e)))):function(e,t){return Oi.Return(function(e,t){return new Vo(0,t)}(0,t))}(0,n)))}))))})));var o,i;return Oi.Delay((()=>Oi.Bind(r,(e=>{let t;const n=e;return 1===n.tag?Oi.Return(new Vo(1,n.fields[0])):Oi.ReturnFrom((t=n.fields[0],200===t.statusCode?Oi.Return(Ru(t.responseText,new $s(1),void 0,{ResolveType:Yu})):Oi.Return(new Vo(1,"Unexpected response from backend"))))}))))}))}function Zu(e,t,n,r,o){const i=function(e,t,n,r){const o=0|tt(e,n);if(0===o)throw new Error("The step of a range cannot be zero");const i=o>0;return n=>{const o=0|tt(n,t);return i&&o<=0||!i&&o>=0?[n,r(n,e)]:void 0}}(t,n,r,o);return Co((()=>{return t=i,n=e,vo((()=>function(e,t){let n,r=t;return yo((()=>{if(null!=n){const e=n[0];return n[1],e}return po()}),(()=>{if(n=e(r),null!=n){n[0];const e=n[1];return r=e,!0}return!1}),(()=>{}))}(t,n)));var t,n}))}function Qu(e,t,n){return t()?n.then((()=>Qu(e,t,n))):Promise.resolve(void 0)}function Ku(e,t){return{then:(e,n)=>{try{return t().then(e,n)}catch(e){if(Ze(n,null))return Promise.reject(e);try{return Promise.resolve(n(e))}catch(e){return Promise.reject(e)}}},catch:e=>{try{return t().catch(e)}catch(t){try{return Promise.resolve(e(t))}catch(e){return Promise.reject(e)}}}}}const ec=new class{constructor(){}};class tc extends ut{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class nc{constructor(e){this.state=new tc(0,Dr(new Array(nt(((e,t)=>Ke(e,t)),e,10)),0,nt(((e,t)=>Ke(e,t)),e,10),null),0)}}function rc(e){const t=e.state;if(1===t.tag){const n=0|t.fields[1],r=0|t.fields[2],o=t.fields[0],i=(r+1)%o.length|0;return e.state=i===n?new tc(0,o,n):new tc(1,o,n,i),Ht(o[r])}}function oc(e,t,n){const r=Bo(e[0]),o=Bo(new nc(10)),i=function(e){return jo.useState(e)}(e[0]);let s;const a=Bo(Ni()),u=Bo(a.current);zo((()=>Uo((()=>{Ai(a.current)})))),s=u;const c=()=>{setTimeout((()=>{let e;e=s.current,Di(e)||i[1](r.current)}),0)},l=e=>{const n=(i=Ku(0,(()=>{let n=Ht(e);return Qu(ec,(()=>{let e;return null!=n&&(e=s.current,!Di(e))}),Ku(0,(()=>{const e=t(Bt(n),r.current);return oo((e=>{e(l)}),e[1]),n=rc(o.current),r.current=e[0],c(),Promise.resolve()})))})),new Promise(((e,t)=>{try{Promise.resolve(i).then(e,t)}catch(e){t(e)}})));var i;n.then()},f=qo(l);var d;return Wo((()=>Uo((()=>{let e;Po((e=>{e.Dispose()}),qt((e=r.current,function(e){return null!=e&&"function"==typeof e.Dispose}(e)?e:void 0)))}))),n),Ho((()=>{r.current=e[0],c(),oo((e=>{e(f)}),e[1])}),n),d=()=>{Po(f,qt(rc(o.current)))},Ro((e=>(d(),Uo((()=>{}))))),[i[0],f]}class ic{constructor(e,t){const n=new lt(null);this.comparer=t,n.contents=this,this.hashMap=new Map([]),this["init@8-2"]=1;const r=Ue(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();)cc(n.contents,r["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{r.Dispose()}}get[Symbol.toStringTag](){return"HashSet"}toJSON(e){return Array.from(this)}"System.Collections.IEnumerable.GetEnumerator"(){return Ue(this)}GetEnumerator(){return Ue(So(this.hashMap.values()))}[Symbol.iterator](){return Le(this.GetEnumerator())}"System.Collections.Generic.ICollection`1.Add2B595"(e){cc(this,e)}"System.Collections.Generic.ICollection`1.Clear"(){ac(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return lc(this,e)}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){var n;n=(n,r)=>{e[t+n]=r},Oo(((e,t)=>(n(e,t),e+1|0)),0,this)}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|uc(this)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(e){return fc(this,e)}get size(){return 0|uc(this)}add(e){return cc(this,e),this}clear(){ac(this)}delete(e){return fc(this,e)}has(e){return lc(this,e)}keys(){return No((e=>e),this)}values(){return No((e=>e),this)}entries(){return No((e=>[e,e]),this)}forEach(e,t){const n=this;Po((t=>{e(t,t,n)}),n)}}function sc(e,t){const n=0|e.comparer.GetHashCode(t);let r,o=null;return r=[(i=e.hashMap,s=n,a=new lt((()=>o),(e=>{o=e})),!!i.has(s)&&(a.contents=i.get(s),!0)),o],r[0]?[!0,n,r[1].findIndex((n=>e.comparer.Equals(t,n)))]:[!1,n,-1];var i,s,a}function ac(e){e.hashMap.clear()}function uc(e){let t=0,n=Ue(e.hashMap.values());try{for(;n["System.Collections.IEnumerator.MoveNext"]();)t=t+n["System.Collections.Generic.IEnumerator`1.get_Current"]().length|0}finally{n.Dispose()}return 0|t}function cc(e,t){const n=sc(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return!1;case 1:return n[0]?(Hs(e.hashMap,n[1]).push(t),!0):(e.hashMap.set(n[1],[t]),!0)}}function lc(e,t){const n=sc(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return!0;case 1:return!1}}function fc(e,t){const n=sc(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return Hs(e.hashMap,n[1]).splice(n[2],1),!0;case 1:return!1}}function dc(e,t){return Co((()=>{const n=new ic([],t);return function(e,t){return function(e,t){return ko((()=>bo(t)),(t=>{let n;for(;null==n&&t["System.Collections.IEnumerator.MoveNext"]();)n=e(t["System.Collections.Generic.IEnumerator`1.get_Current"]());return n}),(e=>{e.Dispose()}))}((t=>e(t)?Ht(t):void 0),t)}((e=>function(e,t){return!t.has(e)&&(t.add(e),!0)}(e,n)),e)}))}Symbol.toStringTag,Symbol.iterator;class hc extends ut{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["All","Completed","InProgress","NotStarted"]}}function pc(e){switch(e.tag){case 1:return"Completed";case 2:return"In progress";case 3:return"Not started";default:return"All"}}class mc extends ut{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["GetInstanceListCallback","SelectStatusTab"]}}class gc extends ct{constructor(e,t){super(),this.ProcessInstanceList=e,this.SelectedStatusTab=t}}function wc(e){return function(e,t){return fo(((e,n)=>t.Compare(e,n)),e)}((t=co((e=>e.Name),uo((e=>e.Tags),e.Data)),n={Equals:(e,t)=>e===t,GetHashCode:e=>$e(e)},Eo(dc(t,n))),{Compare:(e,t)=>Ke(e,t)});var t,n}function yc(e,t){return Ze(e,new hc(0))?t:new Vu(function(e,t){const n=zr(),r=no(((t,n)=>{if(e(n)){const e=new Wr(n,void 0);return t.tail=e,e}return t}),n,t),o=zr();return r.tail=o,Vr(n)}((t=>{let n;return Ze((n=t.Status,1===n.tag?new hc(2):2===n.tag?new hc(1):3===n.tag?void 0:new hc(3)),e)}),t.Data))}class _c{constructor(e,t,n){this.OnNext=e,this.OnError=t||(e=>{}),this.OnCompleted=n||(()=>{})}}const vc=class{constructor(){this.delegates=[]}Add(e){this._addHandler(e)}get Publish(){return this}Trigger(e,t){let n,r;void 0===t?(n=null,r=e):(n=e,r=t),this.delegates.forEach((e=>1===e.length?e(r):e(n,r)))}AddHandler(e){this._addHandler(e)}RemoveHandler(e){this._removeHandler(e)}Subscribe(e){const t="function"==typeof e?e:e.OnNext;return this._addHandler(t),{Dispose:()=>{this._removeHandler(t)}}}_addHandler(e){this.delegates.push(e)}_removeHandler(e){const t=this.delegates.indexOf(e);t>-1&&this.delegates.splice(t,1)}};function bc(e,t){let n,r=new class{constructor(e){this._enabled=!1,this._isDisposed=!1,this._intervalId=0,this._timeoutId=0,this.Interval=e&&e>0?e:100,this.AutoReset=!0,this._elapsed=new vc}Elapsed(){return this._elapsed}get Enabled(){return this._enabled}set Enabled(e){this._isDisposed||this._enabled===e||(this._enabled=e,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}}(e);r.AutoReset=!1,n=r,function(e,t){t.Subscribe(new _c(e))}(t,n.Elapsed()),n.Enabled=!0,n.Start()}function Cc(e,t,n){oo((n=>{try{n(t)}catch(t){e(t)}}),n)}function Sc(){return Yr()}function xc(e,t){return co((t=>n=>{t((t=>{n(e(t))}))}),t)}function Ec(e){return Xr((t=>{t(e)}))}function kc(e,t,n,r,o){return Xr((i=>{e(Oi.Delay((()=>{return Oi.Bind((e=t(n),Ti((t=>{e({onSuccess:e=>t.onSuccess(function(e){return new Jo(0,e)}(e)),onError:e=>t.onSuccess(function(e){return new Jo(1,e)}(e)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})}))),(e=>{const t=e;return i(1===t.tag?o(t.fields[0]):r(t.fields[0])),Oi.Zero()}));var e})))}))}function Mc(){window.dispatchEvent(new CustomEvent("progressComponentReady",{}))}function Ic(){return[new gc(new ys(0),new hc(0)),Sc()]}function Tc(e){return Tc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tc(e)}function Oc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Pc(e,t,n[t])}))}return e}function Ac(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Dc=function(){},jc={},Rc={},Fc={mark:Dc,measure:Dc};try{"undefined"!=typeof window&&(jc=window),"undefined"!=typeof document&&(Rc=document),"undefined"!=typeof MutationObserver&&MutationObserver,"undefined"!=typeof performance&&(Fc=performance)}catch(u){}var Uc=(jc.navigator||{}).userAgent,Lc=void 0===Uc?"":Uc,Wc=jc,Gc=Rc,zc=Fc,Hc=(Wc.document,!!Gc.documentElement&&!!Gc.head&&"function"==typeof Gc.addEventListener&&"function"==typeof Gc.createElement),Bc=(~Lc.indexOf("MSIE")||Lc.indexOf("Trident/"),"svg-inline--fa"),$c=[1,2,3,4,5,6,7,8,9,10],qc=$c.concat([11,12,13,14,15,16,17,18,19,20]),Vc={GROUP:"group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Yc=(["xs","sm","lg","fw","ul","li","border","pull-left","pull-right","spin","pulse","rotate-90","rotate-180","rotate-270","flip-horizontal","flip-vertical","flip-both","stack","stack-1x","stack-2x","inverse","layers","layers-text","layers-counter",Vc.GROUP,Vc.SWAP_OPACITY,Vc.PRIMARY,Vc.SECONDARY].concat($c.map((function(e){return"".concat(e,"x")}))).concat(qc.map((function(e){return"w-".concat(e)}))),Wc.FontAwesomeConfig||{});Gc&&"function"==typeof Gc.querySelector&&[["data-family-prefix","familyPrefix"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((function(e){var t=Ac(e,2),n=t[0],r=t[1],o=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=Gc.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(n));null!=o&&(Yc[r]=o)}));var Jc=Nc({},{familyPrefix:"fa",replacementClass:Bc,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},Yc);Jc.autoReplaceSvg||(Jc.observeMutations=!1);var Xc=Nc({},Jc);Wc.FontAwesomeConfig=Xc;var Zc=Wc||{};Zc.___FONT_AWESOME___||(Zc.___FONT_AWESOME___={}),Zc.___FONT_AWESOME___.styles||(Zc.___FONT_AWESOME___.styles={}),Zc.___FONT_AWESOME___.hooks||(Zc.___FONT_AWESOME___.hooks={}),Zc.___FONT_AWESOME___.shims||(Zc.___FONT_AWESOME___.shims=[]);var Qc=Zc.___FONT_AWESOME___,Kc=[];Hc&&((Gc.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Gc.readyState)||Gc.addEventListener("DOMContentLoaded",(function e(){Gc.removeEventListener("DOMContentLoaded",e),Kc.map((function(e){return e()}))})));var el,tl="pending",nl="settled",rl="fulfilled",ol="rejected",il=function(){},sl=void 0!==n.g&&void 0!==n.g.process&&"function"==typeof n.g.process.emit,al="undefined"==typeof setImmediate?setTimeout:setImmediate,ul=[];function cl(){for(var e=0;e<ul.length;e++)ul[e][0](ul[e][1]);ul=[],el=!1}function ll(e,t){ul.push([e,t]),el||(el=!0,al(cl,0))}function fl(e){var t=e.owner,n=t._state,r=t._data,o=e[n],i=e.then;if("function"==typeof o){n=rl;try{r=o(r)}catch(e){ml(i,e)}}dl(i,r)||(n===rl&&hl(i,r),n===ol&&ml(i,r))}function dl(e,t){var n;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(t&&("function"==typeof t||"object"===Tc(t))){var r=t.then;if("function"==typeof r)return r.call(t,(function(r){n||(n=!0,t===r?pl(e,r):hl(e,r))}),(function(t){n||(n=!0,ml(e,t))})),!0}}catch(t){return n||ml(e,t),!0}return!1}function hl(e,t){e!==t&&dl(e,t)||pl(e,t)}function pl(e,t){e._state===tl&&(e._state=nl,e._data=t,ll(wl,e))}function ml(e,t){e._state===tl&&(e._state=nl,e._data=t,ll(yl,e))}function gl(e){e._then=e._then.forEach(fl)}function wl(e){e._state=rl,gl(e)}function yl(e){e._state=ol,gl(e),!e._handled&&sl&&n.g.process.emit("unhandledRejection",e._data,e)}function _l(e){n.g.process.emit("rejectionHandled",e)}function vl(e){if("function"!=typeof e)throw new TypeError("Promise resolver "+e+" is not a function");if(this instanceof vl==0)throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._then=[],function(e,t){function n(e){ml(t,e)}try{e((function(e){hl(t,e)}),n)}catch(e){n(e)}}(e,this)}vl.prototype={constructor:vl,_state:tl,_then:null,_data:void 0,_handled:!1,then:function(e,t){var n={owner:this,then:new this.constructor(il),fulfilled:e,rejected:t};return!t&&!e||this._handled||(this._handled=!0,this._state===ol&&sl&&ll(_l,this)),this._state===rl||this._state===ol?ll(fl,n):this._then.push(n),n.then},catch:function(e){return this.then(null,e)}},vl.all=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.all().");return new vl((function(t,n){var r=[],o=0;function i(e){return o++,function(n){r[e]=n,--o||t(r)}}for(var s,a=0;a<e.length;a++)(s=e[a])&&"function"==typeof s.then?s.then(i(a),n):r[a]=s;o||t(r)}))},vl.race=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.race().");return new vl((function(t,n){for(var r,o=0;o<e.length;o++)(r=e[o])&&"function"==typeof r.then?r.then(t,n):t(r)}))},vl.resolve=function(e){return e&&"object"===Tc(e)&&e.constructor===vl?e:new vl((function(t){t(e)}))},vl.reject=function(e){return new vl((function(t,n){n(e)}))};var bl={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Cl(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function Sl(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function xl(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,": ").concat(e[n],";")}),"")}function El(e){return e.size!==bl.size||e.x!==bl.x||e.y!==bl.y||e.rotate!==bl.rotate||e.flipX||e.flipY}function kl(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,o={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(32*t.x,", ").concat(32*t.y,") "),s="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)");return{outer:o,inner:{transform:"".concat(i," ").concat(s," ").concat(a)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}var Ml={x:0,y:0,width:"100%",height:"100%"};function Il(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function Tl(e){var t=e.icons,n=t.main,r=t.mask,o=e.prefix,i=e.iconName,s=e.transform,a=e.symbol,u=e.title,c=e.maskId,l=e.titleId,f=e.extra,d=e.watchable,h=void 0!==d&&d,p=r.found?r:n,m=p.width,g=p.height,w="fak"===o,y=w?"":"fa-w-".concat(Math.ceil(m/g*16)),_=[Xc.replacementClass,i?"".concat(Xc.familyPrefix,"-").concat(i):"",y].filter((function(e){return-1===f.classes.indexOf(e)})).filter((function(e){return""!==e||!!e})).concat(f.classes).join(" "),v={children:[],attributes:Nc({},f.attributes,{"data-prefix":o,"data-icon":i,class:_,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(m," ").concat(g)})},b=w&&!~f.classes.indexOf("fa-fw")?{width:"".concat(m/g*16*.0625,"em")}:{};h&&(v.attributes["data-fa-i2svg"]=""),u&&v.children.push({tag:"title",attributes:{id:v.attributes["aria-labelledby"]||"title-".concat(l||Cl())},children:[u]});var C=Nc({},v,{prefix:o,iconName:i,main:n,mask:r,maskId:c,transform:s,symbol:a,styles:Nc({},b,f.styles)}),S=r.found&&n.found?function(e){var t,n=e.children,r=e.attributes,o=e.main,i=e.mask,s=e.maskId,a=e.transform,u=o.width,c=o.icon,l=i.width,f=i.icon,d=kl({transform:a,containerWidth:l,iconWidth:u}),h={tag:"rect",attributes:Nc({},Ml,{fill:"white"})},p=c.children?{children:c.children.map(Il)}:{},m={tag:"g",attributes:Nc({},d.inner),children:[Il(Nc({tag:c.tag,attributes:Nc({},c.attributes,d.path)},p))]},g={tag:"g",attributes:Nc({},d.outer),children:[m]},w="mask-".concat(s||Cl()),y="clip-".concat(s||Cl()),_={tag:"mask",attributes:Nc({},Ml,{id:w,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[h,g]},v={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:(t=f,"g"===t.tag?t.children:[t])},_]};return n.push(v,{tag:"rect",attributes:Nc({fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(w,")")},Ml)}),{children:n,attributes:r}}(C):function(e){var t=e.children,n=e.attributes,r=e.main,o=e.transform,i=xl(e.styles);if(i.length>0&&(n.style=i),El(o)){var s=kl({transform:o,containerWidth:r.width,iconWidth:r.width});t.push({tag:"g",attributes:Nc({},s.outer),children:[{tag:"g",attributes:Nc({},s.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:Nc({},r.icon.attributes,s.path)}]}]})}else t.push(r.icon);return{children:t,attributes:n}}(C),x=S.children,E=S.attributes;return C.children=x,C.attributes=E,a?function(e){var t=e.prefix,n=e.iconName,r=e.children,o=e.attributes,i=e.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Nc({},o,{id:!0===i?"".concat(t,"-").concat(Xc.familyPrefix,"-").concat(n):i}),children:r}]}]}(C):function(e){var t=e.children,n=e.main,r=e.mask,o=e.attributes,i=e.styles,s=e.transform;if(El(s)&&n.found&&!r.found){var a={x:n.width/n.height/2,y:.5};o.style=xl(Nc({},i,{"transform-origin":"".concat(a.x+s.x/16,"em ").concat(a.y+s.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}(C)}var Ol=(Xc.measurePerformance&&zc&&zc.mark&&zc.measure,function(e,t,n,r){var o,i,s,a=Object.keys(e),u=a.length,c=void 0!==r?function(e,t){return function(n,r,o,i){return e.call(t,n,r,o,i)}}(t,r):t;for(void 0===n?(o=1,s=e[a[0]]):(o=0,s=n);o<u;o++)s=c(s,e[i=a[o]],i,e);return s});function Pl(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.skipHooks,o=void 0!==r&&r,i=Object.keys(t).reduce((function(e,n){var r=t[n];return r.icon?e[r.iconName]=r.icon:e[n]=r,e}),{});"function"!=typeof Qc.hooks.addPack||o?Qc.styles[e]=Nc({},Qc.styles[e]||{},i):Qc.hooks.addPack(e,i),"fas"===e&&Pl("fa",t)}var Nl=Qc.styles,Al=Qc.shims,Dl=function(){var e=function(e){return Ol(Nl,(function(t,n,r){return t[r]=Ol(n,e,{}),t}),{})};e((function(e,t,n){return t[3]&&(e[t[3]]=n),e})),e((function(e,t,n){var r=t[2];return e[n]=n,r.forEach((function(t){e[t]=n})),e}));var t="far"in Nl;Ol(Al,(function(e,n){var r=n[0],o=n[1],i=n[2];return"far"!==o||t||(o="fas"),e[r]={prefix:o,iconName:i},e}),{})};function jl(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}function Rl(e){var t=e.tag,n=e.attributes,r=void 0===n?{}:n,o=e.children,i=void 0===o?[]:o;return"string"==typeof e?Sl(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,'="').concat(Sl(e[n]),'" ')}),"").trim()}(r),">").concat(i.map(Rl).join(""),"</").concat(t,">")}Dl(),Qc.styles;function Fl(e){this.name="MissingIcon",this.message=e||"Icon unavailable",this.stack=(new Error).stack}Fl.prototype=Object.create(Error.prototype),Fl.prototype.constructor=Fl;var Ul={fill:"currentColor"},Ll={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},Wl=(Nc({},Ul,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}),Nc({},Ll,{attributeName:"opacity"}));function Gl(e){var t=e[0],n=e[1],r=Ac(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(Xc.familyPrefix,"-").concat(Vc.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Xc.familyPrefix,"-").concat(Vc.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(Xc.familyPrefix,"-").concat(Vc.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}Nc({},Ul,{cx:"256",cy:"364",r:"28"}),Nc({},Ll,{attributeName:"r",values:"28;14;28;28;14;28;"}),Nc({},Wl,{values:"1;0;1;1;0;1;"}),Nc({},Ul,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),Nc({},Wl,{values:"1;0;0;0;0;1;"}),Nc({},Ul,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),Nc({},Wl,{values:"0;0;1;1;0;0;"}),Qc.styles,Qc.styles;var zl=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}}var t,n;return t=e,n=[{key:"add",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n.reduce(this._pullDefinitions,{});Object.keys(o).forEach((function(t){e.definitions[t]=Nc({},e.definitions[t]||{},o[t]),Pl(t,o[t]),Dl()}))}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(e,t){var n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map((function(t){var r=n[t],o=r.prefix,i=r.iconName,s=r.icon;e[o]||(e[o]={}),e[o][i]=s})),e}}],n&&Oc(t.prototype,n),e}();function Hl(){Xc.autoAddCss&&!Yl&&(function(e){if(e&&Hc){var t=Gc.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=Gc.head.childNodes,r=null,o=n.length-1;o>-1;o--){var i=n[o],s=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(r=i)}Gc.head.insertBefore(t,r)}}(function(){var e="fa",t=Bc,n=Xc.familyPrefix,r=Xc.replacementClass,o='svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse {\n color: #fff;\n}';if(n!==e||r!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),s=new RegExp("\\--".concat(e,"\\-"),"g"),a=new RegExp("\\.".concat(t),"g");o=o.replace(i,".".concat(n,"-")).replace(s,"--".concat(n,"-")).replace(a,".".concat(r))}return o}()),Yl=!0)}function Bl(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return Rl(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(Hc){var t=Gc.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function $l(e){var t=e.prefix,n=void 0===t?"fa":t,r=e.iconName;if(r)return jl(Vl.definitions,n,r)||jl(Qc.styles,n,r)}var ql,Vl=new zl,Yl=!1,Jl={transform:function(e){return function(e){var t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e?e.toLowerCase().split(" ").reduce((function(e,t){var n=t.toLowerCase().split("-"),r=n[0],o=n.slice(1).join("-");if(r&&"h"===o)return e.flipX=!0,e;if(r&&"v"===o)return e.flipY=!0,e;if(o=parseFloat(o),isNaN(o))return e;switch(r){case"grow":e.size=e.size+o;break;case"shrink":e.size=e.size-o;break;case"left":e.x=e.x-o;break;case"right":e.x=e.x+o;break;case"up":e.y=e.y-o;break;case"down":e.y=e.y+o;break;case"rotate":e.rotate=e.rotate+o}return e}),t):t}(e)}},Xl=(ql=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?bl:n,o=t.symbol,i=void 0!==o&&o,s=t.mask,a=void 0===s?null:s,u=t.maskId,c=void 0===u?null:u,l=t.title,f=void 0===l?null:l,d=t.titleId,h=void 0===d?null:d,p=t.classes,m=void 0===p?[]:p,g=t.attributes,w=void 0===g?{}:g,y=t.styles,_=void 0===y?{}:y;if(e){var v=e.prefix,b=e.iconName,C=e.icon;return Bl(Nc({type:"icon"},e),(function(){return Hl(),Xc.autoA11y&&(f?w["aria-labelledby"]="".concat(Xc.replacementClass,"-title-").concat(h||Cl()):(w["aria-hidden"]="true",w.focusable="false")),Tl({icons:{main:Gl(C),mask:a?Gl(a.icon):{found:!1,width:null,height:null,icon:{}}},prefix:v,iconName:b,transform:Nc({},bl,r),symbol:i,title:f,maskId:c,titleId:h,extra:{attributes:w,styles:_,classes:m}})}))}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(e||{}).icon?e:$l(e||{}),r=t.mask;return r&&(r=(r||{}).icon?r:$l(r||{})),ql(n,Nc({},t,{mask:r}))}),Zl=n(697),Ql=n.n(Zl);function Kl(e){return Kl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kl(e)}function ef(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tf(Object(n),!0).forEach((function(t){ef(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rf(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function of(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function sf(e){return t=e,(t-=0)==t?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1);var t}function af(e){return e.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n,r=t.indexOf(":"),o=sf(t.slice(0,r)),i=t.slice(r+1).trim();return o.startsWith("webkit")?e[(n=o,n.charAt(0).toUpperCase()+n.slice(1))]=i:e[o]=i,e}),{})}var uf=!1;try{uf=!0}catch(u){}function cf(e){return e&&"object"===Kl(e)&&e.prefix&&e.iconName&&e.icon?e:Jl.icon?Jl.icon(e):null===e?null:e&&"object"===Kl(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:"fas",iconName:e}:void 0}function lf(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?ef({},e,t):{}}function ff(e){var t=e.forwardedRef,n=rf(e,["forwardedRef"]),r=n.icon,o=n.mask,i=n.symbol,s=n.className,a=n.title,u=n.titleId,c=cf(r),l=lf("classes",[].concat(of(function(e){var t,n=e.spin,r=e.pulse,o=e.fixedWidth,i=e.inverse,s=e.border,a=e.listItem,u=e.flip,c=e.size,l=e.rotation,f=e.pull,d=(ef(t={"fa-spin":n,"fa-pulse":r,"fa-fw":o,"fa-inverse":i,"fa-border":s,"fa-li":a,"fa-flip-horizontal":"horizontal"===u||"both"===u,"fa-flip-vertical":"vertical"===u||"both"===u},"fa-".concat(c),null!=c),ef(t,"fa-rotate-".concat(l),null!=l&&0!==l),ef(t,"fa-pull-".concat(f),null!=f),ef(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(d).map((function(e){return d[e]?e:null})).filter((function(e){return e}))}(n)),of(s.split(" ")))),f=lf("transform","string"==typeof n.transform?Jl.transform(n.transform):n.transform),d=lf("mask",cf(o)),h=Xl(c,nf({},l,{},f,{},d,{symbol:i,title:a,titleId:u}));if(!h)return function(){var e;!uf&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",c),null;var p=h.abstract,m={ref:t};return Object.keys(n).forEach((function(e){ff.defaultProps.hasOwnProperty(e)||(m[e]=n[e])})),df(p[0],m)}ff.displayName="FontAwesomeIcon",ff.propTypes={border:Ql().bool,className:Ql().string,mask:Ql().oneOfType([Ql().object,Ql().array,Ql().string]),fixedWidth:Ql().bool,inverse:Ql().bool,flip:Ql().oneOf(["horizontal","vertical","both"]),icon:Ql().oneOfType([Ql().object,Ql().array,Ql().string]),listItem:Ql().bool,pull:Ql().oneOf(["right","left"]),pulse:Ql().bool,rotation:Ql().oneOf([0,90,180,270]),size:Ql().oneOf(["lg","xs","sm","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:Ql().bool,symbol:Ql().oneOfType([Ql().bool,Ql().string]),title:Ql().string,transform:Ql().oneOfType([Ql().string,Ql().object]),swapOpacity:Ql().bool},ff.defaultProps={border:!1,className:"",mask:null,fixedWidth:!1,inverse:!1,flip:null,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,symbol:!1,title:"",transform:null,swapOpacity:!1};var df=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n)return n;var o=(n.children||[]).map((function(n){return e(t,n)})),i=Object.keys(n.attributes||{}).reduce((function(e,t){var r=n.attributes[t];switch(t){case"class":e.attrs.className=r,delete n.attributes.class;break;case"style":e.attrs.style=af(r);break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[sf(t)]=r}return e}),{attrs:{}}),s=r.style,a=void 0===s?{}:s,u=rf(r,["style"]);return i.attrs.style=nf({},i.attrs.style,{},a),t.apply(void 0,[n.tag,nf({},i.attrs,{},u)].concat(of(o)))}.bind(null,De.createElement);function hf(e){return h(ff,e)}const pf=hf({icon:{prefix:"fas",iconName:"user",icon:[448,512,[],"f007","M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"]}}),mf=hf({icon:{prefix:"fas",iconName:"check-circle",icon:[512,512,[],"f058","M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"]}}),gf=hf({icon:{prefix:"fas",iconName:"pen-square",icon:[448,512,[],"f14b","M400 480H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zM238.1 177.9L102.4 313.6l-6.3 57.1c-.8 7.6 5.6 14.1 13.3 13.3l57.1-6.3L302.2 242c2.3-2.3 2.3-6.1 0-8.5L246.7 178c-2.5-2.4-6.3-2.4-8.6-.1zM345 165.1L314.9 135c-9.4-9.4-24.6-9.4-33.9 0l-23.1 23.1c-2.3 2.3-2.3 6.1 0 8.5l55.5 55.5c2.3 2.3 6.1 2.3 8.5 0L345 199c9.3-9.3 9.3-24.5 0-33.9z"]}}),wf=hf({icon:{prefix:"fas",iconName:"hourglass-start",icon:[384,512,[],"f251","M360 0H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24zm-64 448H88c0-77.458 46.204-144 104-144 57.786 0 104 66.517 104 144z"]}});var yf={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function _f(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}const vf={date:_f({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:_f({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:_f({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var bf={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Cf(e){return function(t,n){var r,o=n||{};if("formatting"===(o.context?String(o.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,s=o.width?String(o.width):i;r=e.formattingValues[s]||e.formattingValues[i]}else{var a=e.defaultWidth,u=o.width?String(o.width):e.defaultWidth;r=e.values[u]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const Sf={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Cf({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Cf({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Cf({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Cf({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Cf({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function xf(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var s,a=i[0],u=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(u)?kf(u,(function(e){return e.test(a)})):Ef(u,(function(e){return e.test(a)}));s=e.valueCallback?e.valueCallback(c):c,s=n.valueCallback?n.valueCallback(s):s;var l=t.slice(a.length);return{value:s,rest:l}}}function Ef(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function kf(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}var Mf,If={ordinalNumber:(Mf={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(Mf.matchPattern);if(!n)return null;var r=n[0],o=e.match(Mf.parsePattern);if(!o)return null;var i=Mf.valueCallback?Mf.valueCallback(o[0]):o[0];i=t.valueCallback?t.valueCallback(i):i;var s=e.slice(r.length);return{value:i,rest:s}}),era:xf({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:xf({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:xf({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:xf({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:xf({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const Tf={code:"en-US",formatDistance:function(e,t,n){var r,o=yf[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:vf,formatRelative:function(e,t,n,r){return bf[e]},localize:Sf,match:If,options:{weekStartsOn:0,firstWeekContainsDate:1}};var Of=["years","months","weeks","days","hours","minutes","seconds"];function Pf(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only ".concat(arguments.length," present"));var n=(null==t?void 0:t.format)||Of,r=(null==t?void 0:t.locale)||Tf,o=(null==t?void 0:t.zero)||!1,i=(null==t?void 0:t.delimiter)||" ",s=n.reduce((function(t,n){var i="x".concat(n.replace(/(^.)/,(function(e){return e.toUpperCase()})));return"number"==typeof e[n]&&(o||e[n])?t.concat(r.formatDistance(i,e[n])):t}),[]).join(i);return s}function Nf(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Af(e){Nf(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function Df(e,t){Nf(2,arguments);var n=Af(e),r=Af(t),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}function jf(e,t){Nf(2,arguments);var n=Af(e),r=Af(t);return n.getFullYear()-r.getFullYear()}function Rf(e,t){Nf(2,arguments);var n=Af(e),r=Af(t),o=Df(n,r),i=Math.abs(jf(n,r));n.setFullYear(1584),r.setFullYear(1584);var s=Df(n,r)===-o,a=o*(i-Number(s));return 0===a?0:a}function Ff(e,t){Nf(2,arguments);var n=Af(e),r=Af(t),o=n.getFullYear()-r.getFullYear(),i=n.getMonth()-r.getMonth();return 12*o+i}function Uf(e){Nf(1,arguments);var t=Af(e);return t.setHours(23,59,59,999),t}function Lf(e){Nf(1,arguments);var t=Af(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function Wf(e){Nf(1,arguments);var t=Af(e);return Uf(t).getTime()===Lf(t).getTime()}function Gf(e,t){Nf(2,arguments);var n,r=Af(e),o=Af(t),i=Df(r,o),s=Math.abs(Ff(r,o));if(s<1)n=0;else{1===r.getMonth()&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-i*s);var a=Df(r,o)===-i;Wf(Af(e))&&1===s&&1===Df(e,o)&&(a=!1),n=i*(s-Number(a))}return 0===n?0:n}function zf(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Hf(e){Nf(1,arguments);var t=Af(e);return t.setHours(0,0,0,0),t}var Bf=864e5;function $f(e,t){Nf(2,arguments);var n=Hf(e),r=Hf(t),o=n.getTime()-zf(n),i=r.getTime()-zf(r);return Math.round((o-i)/Bf)}function qf(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function Vf(e,t){Nf(2,arguments);var n=Af(e),r=Af(t),o=qf(n,r),i=Math.abs($f(n,r));n.setDate(n.getDate()-o*i);var s=Number(qf(n,r)===-o),a=o*(i-s);return 0===a?0:a}Math.pow(10,8);var Yf=36e5;function Jf(e,t){return Nf(2,arguments),Af(e).getTime()-Af(t).getTime()}var Xf,Zf,Qf={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function Kf(e){return e?Qf[e]:Qf.trunc}function ed(e,t,n){Nf(2,arguments);var r=Jf(e,t)/Yf;return Kf(null==n?void 0:n.roundingMethod)(r)}function td(e,t,n){Nf(2,arguments);var r=Jf(e,t)/6e4;return Kf(null==n?void 0:n.roundingMethod)(r)}function nd(e,t,n){Nf(2,arguments);var r=Jf(e,t)/1e3;return Kf(null==n?void 0:n.roundingMethod)(r)}function rd(e){return Nf(1,arguments),e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function od(e){if(Nf(1,arguments),!rd(e)&&"number"!=typeof e)return!1;var t=Af(e);return!isNaN(Number(t))}function id(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function sd(e,t){Nf(2,arguments);var n=Af(e),r=id(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function ad(e,t){Nf(2,arguments);var n=id(t);return sd(e,-n)}function ud(e,t){Nf(2,arguments);var n=Af(e),r=id(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var s=i.getDate();return o>=s?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function cd(e,t){Nf(2,arguments);var n=id(t);return ud(e,-n)}function ld(e,t){if(Nf(2,arguments),!t||"object"!=typeof t)return new Date(NaN);var n=t.years?id(t.years):0,r=t.months?id(t.months):0,o=t.weeks?id(t.weeks):0,i=t.days?id(t.days):0,s=t.hours?id(t.hours):0,a=t.minutes?id(t.minutes):0,u=t.seconds?id(t.seconds):0,c=cd(e,r+12*n),l=ad(c,i+7*o),f=a+60*s,d=u+60*f,h=1e3*d,p=new Date(l.getTime()-h);return p}function fd(e){var t=e.start,n=e.end;Nf(1,arguments);var r=Af(t),o=Af(n);if(!od(r))throw new RangeError("Start Date is invalid");if(!od(o))throw new RangeError("End Date is invalid");var i={years:0,months:0,days:0,hours:0,minutes:0,seconds:0},s=Df(r,o);i.years=Math.abs(Rf(r,o));var a=ld(r,{years:s*i.years});i.months=Math.abs(Gf(a,o));var u=ld(a,{months:s*i.months});i.days=Math.abs(Vf(u,o));var c=ld(u,{days:s*i.days});i.hours=Math.abs(ed(c,o));var l=ld(c,{hours:s*i.hours});i.minutes=Math.abs(td(l,o));var f=ld(l,{minutes:s*i.minutes});return i.seconds=Math.abs(nd(f,o)),i}function dd(e){return e.years>0?{days:0,hours:0,minutes:0,months:0,seconds:0,weeks:0,years:e.years}:e.months>0?{days:0,hours:0,minutes:0,months:e.months,seconds:0,weeks:0,years:0}:e.weeks>0?{days:0,hours:0,minutes:0,months:0,seconds:0,weeks:e.weeks,years:0}:e.days>0?{days:e.days,hours:0,minutes:0,months:0,seconds:0,weeks:0,years:0}:e.hours>0?{days:0,hours:e.hours,minutes:0,months:0,seconds:0,weeks:0,years:0}:e.minutes>0?{days:0,hours:0,minutes:e.minutes,months:0,seconds:0,weeks:0,years:0}:e.seconds>0?{days:0,hours:0,minutes:0,months:0,seconds:e.seconds,weeks:0,years:0}:{days:0,hours:0,minutes:1,months:0,seconds:0,weeks:0,years:0}}function hd(e){const t=lr();return pr(e,t)>0?"1 minute ago":Er(Sr("%P() ago",[Pf(dd(fd({end:t,start:e})))]))}function pd(e){const t=e=>h("td",{className:Tr(" ",["px-6","py-4","whitespace-nowrap"]),children:jo.Children.toArray(Array.from(e))}),n=e=>h("div",{className:Tr(" ",["text-sm","text-gray-500"]),children:e}),r=e=>t([n(e)]),o=(e,r)=>t([h("div",{className:Tr(" ",["text-sm","text-gray-900"]),children:e}),n(r)]),i=r("---"),s=wc(e);return h("tbody",{className:Tr(" ",["bg-white","divide-y","divide-gray-200"]),children:jo.Children.toArray(Array.from(Eo(Co((()=>Do((e=>{let a;const u=0|Qr(e.Configuration.Steps);return a=1===u?"1 step":Er(Sr("%P() steps",[u])),xo(h("tr",{className:Tr(" ",["hover:bg-gray-50"]),children:jo.Children.toArray(Array.from(Eo(Co((()=>{let u;return Io((u=e.Profile.ExternalId,xo(null==u?i:r(u))),Co((()=>{let u;return Io(xo((u=Er(Sr("%P() %P()",[e.Profile.FirstName,e.Profile.LastName])),t([h("div",{className:Tr(" ",["text-sm","font-medium","text-gray-900"]),children:u}),n(e.Profile.Email)]))),Co((()=>{let n,u;return Io((n=e.Creator,null==n?xo(i):(u=n,xo(o(Er(Sr("%P() %P()",[u.FirstName,u.LastName])),u.Email)))),Co((()=>{let n,u,c,l;return Io(xo((n=e,u=function(e){switch(e.Status.tag){case 1:return"In progress";case 2:return"Completed";case 3:return"Abandoned";default:return"Not started"}}(n),l=n.Status,c=1===l.tag?so(["bg-blue-100","text-blue-800"]):2===l.tag?so(["bg-green-100","text-green-800"]):3===l.tag?so(["bg-gray-100","text-gray-800"]):so(["bg-yellow-100","text-yellow-800"]),t([h("span",{className:Tr(" ",Eo(Co((()=>Io(xo("px-2"),Co((()=>Io(xo("inline-flex"),Co((()=>Io(xo("text-xs"),Co((()=>Io(xo("leading-5"),Co((()=>Io(xo("font-semibold"),Co((()=>Io(xo("rounded"),Co((()=>c)))))))))))))))))))))),children:u})]))),Co((()=>Io(Do((t=>{const n=lo((e=>e.Name===t),e.Tags);return xo(null==n?i:r(n.Value))}),s),Co((()=>Io(xo(o(e.Configuration.Name,a)),Co((()=>{let t;return Io((t=e.Invite,xo(null==t?i:r(hd(t.DateIssued)))),Co((()=>Io(xo(r(hd(e.LastUpdated))),Co((()=>xo(r(function(e){const t=e.Status;switch(t.tag){case 1:{const n=function(e){e:for(;;){const t=e;if(Br(t))return;{const n=Vr(t);if(Br(n))return Ht(qr(t));e=n;continue e}}}(t.fields[0].CompletedSteps);if(null!=n){const t=n,r=lo((e=>e.Id===t.Type),e.Configuration.Steps);return null==r?"A step was completed":Er(Sr("%P() step completed",[r.DisplayName]))}return"Workflow started"}case 2:return"Workflow completed";case 3:return"Workflow abandoned";default:return null==e.Invite?"Workflow created":"Invite sent"}}(e)))))))))})))))))))})))})))})))})))))}))}),e.Data))))))})}function md(e){const t=(n=e.backendUrl,r=e.accessToken,new Ju(n,r));var n,r;const o=function(e,t,n){return oc($o(e,n),((e,t)=>function(e,t){if(1===e.tag)return[new gc(t.ProcessInstanceList,e.fields[0]),Sc()];{const i=e.fields[0];let s,a;switch(3===i.tag?s=1:0===i.tag?s=2:1===i.tag?s=3:1===i.fields[0].tag?s=1:(s=0,a=i.fields[0].fields[0]),s){case 0:return Mc(),[new gc(new ys(2,new Vu((n=e=>e.LastUpdated,r=a.Data,o={Compare:(e,t)=>pr(e,t)},fo(((e,t)=>-1*o.Compare(n(e),n(t))),r)))),t.SelectedStatusTab),Sc()];case 1:return Mc(),[new gc(new ys(3,new Error),t.SelectedStatusTab),Sc()];case 2:return[new gc(new ys(0),t.SelectedStatusTab),Sc()];case 3:return[new gc(new ys(1),t.SelectedStatusTab),Sc()]}}var n,r,o}(e,t)),n)}(Ic,0,[]),i=o[0],s=o[1];return Go(function(e,n){const r=Bo(Ni());return zo((()=>Uo((()=>{Ai(r.current)})))),qo((e=>{Di(r.current)||Ri(Oi.Delay((()=>Oi.TryWith(Oi.Delay((()=>(n(new ys(1)),Oi.Bind(Xu(t),(e=>(n(new ys(2,e)),Oi.Zero())))))),(e=>(n(new ys(3,e)),Oi.Zero()))))),r.current)}))}(0,(e=>{s(new mc(0,e))}))),h("div",{children:jo.Children.toArray(Array.from(Eo(Co((()=>{const e=i.ProcessInstanceList;switch(e.tag){default:return xo(h("p",{children:["Loading..."]}));case 2:{const t=e.fields[0];return Io(xo(function(e,t,n){const r=Xr(h("nav",{className:Tr(" ",["flex","space-x-4","p-1","mb-5","bg-gray-50"]),children:jo.Children.toArray(Array.from(Eo(Co((()=>co((r=>{let o;const i=0|Qr(yc(r,t).Data),s=h("span",{className:Tr(" ",Eo(Co((()=>Ze(r,e)?1===r.tag?xo("text-green-500"):2===r.tag?xo("text-blue-500"):3===r.tag?xo("text-yellow-500"):xo("text-gray-800"):Co((()=>new Array(0))))))),children:jo.Children.toArray(Array.from(Eo(Co((()=>1===r.tag?xo(mf):2===r.tag?xo(gf):3===r.tag?xo(wf):xo(pf))))))});return h("a",{className:Tr(" ",Eo(Co((()=>Io(xo("flex-1"),Co((()=>Io(xo("px-3"),Co((()=>Io(xo("py-2"),Co((()=>Io(xo("font-medium"),Co((()=>Io(xo("text-sm"),Co((()=>Io(xo("rounded-md"),Co((()=>Io(xo("text-center"),Co((()=>Io(xo("space-x-2"),Co((()=>Ze(r,e)?Io(xo("bg-white"),Co((()=>Io(xo("text-gray-800"),Co((()=>Io(xo("filter"),Co((()=>xo("drop-shadow")))))))))):Io(xo("text-gray-600"),Co((()=>Io(xo("hover:bg-gray-100"),Co((()=>xo("cursor-pointer"))))))))))))))))))))))))))))))))))),onClick:e=>{n(r)},children:jo.Children.toArray([s,(o=pc(r),h("span",{children:[o]})),h("span",{className:Tr(" ",["text-gray-400"]),children:Er(Sr("(%P())",[i]))})])})}),so([new hc(0),new hc(1),new hc(2),new hc(3)])))))))}));return h("div",{children:jo.Children.toArray(Array.from(r))})}(i.SelectedStatusTab,t,(e=>{s(new mc(1,e))}))),Co((()=>{const e=yc(i.SelectedStatusTab,t);return xo((n=function(e){let t;return h("thead",{className:Tr(" ",["bg-gray-50"]),children:jo.Children.toArray([(t=Eo(Co((()=>co((e=>h("th",{scope:"col",className:Tr(" ",["px-6","py-3","text-left","text-xs","font-medium","text-gray-500","uppercase","tracking-wider"]),children:e})),e)))),h("tr",{children:jo.Children.toArray(Array.from(t))}))])})}(Eo(Co((()=>Io(xo("Ext. ID"),Co((()=>Io(xo("Onboarder"),Co((()=>Io(xo("Manager"),Co((()=>Io(xo("Status"),Co((()=>Io(wc(e),Co((()=>Io(xo("Workflow"),Co((()=>Io(xo("Invited"),Co((()=>Io(xo("Updated"),Co((()=>xo("Last Action"))))))))))))))))))))))))))))),r=pd(e),h("div",{className:Tr(" ",["flex","flex-col"]),children:jo.Children.toArray([h("div",{className:Tr(" ",["-my-2","overflow-x-auto","-mx-6"]),children:jo.Children.toArray([h("div",{className:Tr(" ",["py-2","align-middle","inline-block","min-w-full","px-6"]),children:jo.Children.toArray([h("div",{className:Tr(" ",["shadow","overflow-hidden","border-b","border-gray-200","sm:rounded-lg"]),children:jo.Children.toArray([h("table",{className:Tr(" ",["min-w-full","divide-y","divide-gray-200"]),children:jo.Children.toArray([n,r])})])})])})])})])})));var n,r})))}case 3:return xo(h("p",{children:["There was an error loading. Please try refreshing this page."]}))}})))))})}class gd extends ut{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class wd{constructor(e){this.state=new gd(0,Dr(new Array(nt(((e,t)=>Ke(e,t)),e,10)),0,nt(((e,t)=>Ke(e,t)),e,10),null),0)}}function yd(e){const t=e.state;if(1===t.tag){const n=0|t.fields[1],r=0|t.fields[2],o=t.fields[0],i=(r+1)%o.length|0;return e.state=i===n?new gd(0,o,n):new gd(1,o,n,i),Ht(o[r])}}class _d extends ct{constructor(e,t,n,r,o,i,s){super(),this.init=e,this.update=t,this.subscribe=n,this.view=r,this.setState=o,this.onError=i,this.syncDispatch=s}}function vd(e,t){const n=t.init(e),r=n[0],o=new wd(10);let i=!1,s=r;const a=function(e,t,n){if(null!=t){if(rt in t){t=t.__CURRIED__;for(let e=0;e<n.length;e++)t=t(n[e]);return t}return e=>t.apply(void 0,n.concat([e]))}}(0,t.syncDispatch,[e=>{if(i)!function(e,t){const n=e.state;if(1===n.tag){const i=0|n.fields[1],s=0|n.fields[2],a=n.fields[0];a[i]=t;const u=(i+1)%a.length|0;e.state=u===s?new gd(1,(r=s,o=a,Array.from(Co((()=>Io(Ao(r,o),Co((()=>{return Io((e=r,t=o,Mo((()=>bo(t)),((t,n)=>{if(t<e){if(n["System.Collections.IEnumerator.MoveNext"]())return Ht(n["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(ho+"\\nParameter name: source")}}),(e=>{e.Dispose()}))),Co((()=>Do((e=>xo(null)),Zu(0,1,o.length,0,((e,t)=>e+t))))));var e,t}))))))),a.length,0):new gd(1,a,u,s)}else{const r=0|n.fields[1],o=n.fields[0];o[r]=t;const i=(r+1)%o.length|0;e.state=new gd(1,o,i,r)}var r,o}(o,e);else{i=!0;let n=Ht(e);for(;null!=n;){const e=Bt(n);try{const n=t.update(e,s),r=n[0];t.setState(r,a),Cc((n=>{t.onError([Er(Cr("Error in command while handling: %A"))(e),n])}),a,n[1]),s=r}catch(n){t.onError([Er(Cr("Unable to process the message: %A"))(e),n])}n=yd(o)}i=!1}}]);t.setState(r,a),Cc((e=>{t.onError(["Error intitializing:",e])}),a,function(e){const t=zr();let n=t;const r=e=>{n=no(((e,t)=>{const n=new Wr(t,void 0);return e.tail=n,n}),n,e)};if(je(e))e.forEach(r);else if(e instanceof Wr)oo(r,e);else{const t=Ue(e);try{for(;t["System.Collections.IEnumerator.MoveNext"]();)r(t["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{t.Dispose()}}const o=n,i=zr();return o.tail=i,Vr(t)}(so([(()=>{try{return t.subscribe(r)}catch(e){return t.onError(["Unable to subscribe:",e]),Sc()}})(),n[1]])))}class bd extends ct{constructor(e,t,n){super(),this.model=e,this.render=t,this.equal=n}}class Cd extends g{constructor(e){super(e)}shouldComponentUpdate(e,t){return!this.props.equal(this.props.model,e.model)}render(){return this.props.render()}}function Sd(e){return Array.from(e)}function xd(e){return String(e)}function Ed(e){return String(e)}function kd(e){return String(e)}function Md(e){return String(e)}function Id(){return null}function Td(e,t,n,r){const o=new lt(null),i=ps(Et(r),o,e);let s;if(Ut(r)){const e=jr((e=>{const r=Js(t,xt(e)),o=Od(i,t,n,e[1]);return t=>i=>{const s=function(e,t){return e[t[0]]}(t,e);return(!n||n&&null!=s)&&(i[r]=o(s)),i}}),jt(r));s=t=>Oo(ot(2,st((e=>n=>n(t,e)),[0,[0,2]])),{},e)}else{if(!Ft(r)){let e;const t=Et(r);throw e=Er(Cr("Cannot generate auto encoder for %s. Please pass an extra encoder."))(t),new Error(e)}s=e=>{const o=function(e,t){const n=Dt(t)[e.tag];if(null==n)throw new Error(`Cannot find case ${e.name} in union type`);return[n,e.fields]}(e,r),s=o[0],a=o[1],u=0|a.length;if(0===u)return xt(s);{const e=0|u,r=Wt(s),o=Dr(new Array(e+1),0,e+1,null);o[0]=xt(s);for(let s=1;s<=e;s++){const e=Od(i,t,n,r[s-1][1]);o[s]=e(a[s-1])}return o}}}return o.contents=s,s}function Od(e,t,n,r){const o=Et(r),i=ms(o,e);if(null==i){if(kt(r)){const o=Od(e,t,n,Mt(r));return e=>Sd(No(o,e))}if(Tt(r)){const e=Et(Pt(r));if("System.SByte"===e)return e=>xd(e);if("System.Byte"===e)return e=>Ed(e);if("System.Int16"===e)return e=>kd(e);if("System.UInt16"===e)return e=>Md(e);if("System.Int32"===e)return e=>e;if("System.UInt32"===e)return e=>e;{const e=Et(r),t=kr(Cr("Cannot generate auto encoder for %s.\nThoth.Json.Net only support the folluwing enum types:\n- sbyte\n- byte\n- int16\n- uint16\n- int\n- uint32\nIf you can't use one of these types, please pass an extra encoder.\n "))(e);return e=>t(e)}}if(It(r)){if(Lt(r)){const o=jr((r=>Od(e,t,n,r)),Rt(r));return e=>{return Sd((t=(e,t)=>o[e](t),n=e,Mo((()=>bo(n)),((e,n)=>n["System.Collections.IEnumerator.MoveNext"]()?Ht(t(e,n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{e.Dispose()}))));var t,n}}{const o=Et(Ot(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===o){const o=new We((()=>{return o=Od(e,t,n,ht(r)[0]),e=>{return null!=(t=Yt(o,e))?Bt(t):null;var t};var o}));return e=>null==e?null:o.Value(e)}if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===o||"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===o){const o=Od(e,t,n,ht(r)[0]);return e=>Sd(No(o,e))}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===o){const o=ht(r)[0],i=Od(e,t,n,ht(r)[1]);if("System.String"===Et(o)||"System.Guid"===Et(o))return e=>Oo(((e,t)=>{const n=t;return e[n[0]]=i(n[1]),e}),{},e);{let r;const s=Od(e,t,n,o);return r=e=>s(e),e=>Sd(No((e=>{const t=e;return[r(t[0]),i(t[1])]}),e))}}return Td(e,t,n,r)}}return"System.Boolean"===o?e=>e:"Microsoft.FSharp.Core.Unit"===o?Id:"System.String"===o?e=>e:"System.SByte"===o?e=>xd(e):"System.Byte"===o?e=>Ed(e):"System.Int16"===o?e=>kd(e):"System.UInt16"===o?e=>Md(e):"System.Int32"===o?e=>e:"System.UInt32"===o?e=>e:"System.Double"===o?e=>e:"System.Single"===o?e=>e:"System.DateTime"===o?e=>sr(e,"O"):"System.DateTimeOffset"===o?e=>sr(e,"O"):"System.TimeSpan"===o?e=>function(e,t="c",n){if(-1===["c","g","G"].indexOf(t))throw new Error("Custom formats are not supported");const r=Math.abs(function(e){return Wa(e/864e5)}(e)),o=Math.abs(function(e){return Wa(e%864e5/36e5)}(e)),i=Math.abs(function(e){return Wa(e%36e5/6e4)}(e)),s=Math.abs(function(e){return Wa(e%6e4/1e3)}(e)),a=Math.abs(function(e){return Wa(e%1e3)}(e));return`${e<0?"-":""}${0!==r||"c"!==t&&"g"!==t?"c"===t?r+".":r+":":""}${"g"===t?o:Ge(o,2)}:${Ge(i,2)}:${Ge(s,2)}${0!==a||"c"!==t&&"g"!==t?"g"===t?"."+Ge(a,3):"."+function(e,t,n){let r=e.toString(10);for(;r.length<3;)r="0"+r;for(;r.length<7;)r+="0";return r}(a):""}`}(e):"System.Guid"===o?e=>e:"System.Object"===o?e=>e:Td(e,t,n,r)}{const e=i;return t=>e.contents(t)}}function Pd(e,t,n,r,o,i){return function(e,t){return JSON.stringify(t,ot(2,null),Ht(e))}(e,function(e,t,n,r){const o=Vt(e,new $s(0)),i=Vt(n,!0),s=Bt(r).ResolveType();return Od(function(e){return null!=e?gs(((e,t)=>new lt(t[0])),e.Coders):ws()}(t),o,i,s)}(n,r,o,i)(t))}function Nd(e){const t=encodeURIComponent(e.fields[0]),n=encodeURIComponent("apollo-workflows-progress-app"),r=encodeURIComponent(Ss);return Os(0,(()=>{let e,o;const i=Oi.Bind(zs((o=Ws(new Ps(1),Ls(Er(Sr("%P()/connect/token",[vs])))),e=Gs(new Ns(0,"Content-Type","application/x-www-form-urlencoded"),o),s=new As(1,Er(Sr("grant_type=authorization_code&code=%P()&client_id=%P()&redirect_uri=%P()",[t,n,r]))),new Ds((a=e).url,a.method,a.headers,a.withCredentials,a.overridenMimeType,a.overridenResponseType,s))),(e=>Oi.Return(new Vo(0,e))));var s,a;return Oi.Delay((()=>Oi.Bind(i,(e=>{let t;const n=e;return 1===n.tag?Oi.Return(new Vo(1,n.fields[0])):Oi.ReturnFrom((t=n.fields[0],200===t.statusCode?Oi.Return(Ru(t.responseText,void 0,void 0,{ResolveType:Ko})):Oi.Return(new Vo(1,"Unexpected result from backend"))))}))))}))}function Ad(){Po((e=>{document.body.removeChild(e)}),qt($t(document.getElementById("external-loading-page-container"))))}function Dd(e,t){const n=function(e){return[new ys(0),Ec(new ei(0,new Xo(0),e))]}(t);return[new Ms(e.CurrentPage,n[0],e.AppMode),xc((e=>new Is(1,e)),n[1])]}function jd(e,t){switch(e.tag){case 1:{const n=function(e,t){let n;return 1===e.fields[0].tag?1===e.fields[0].fields[0].tag?[new ys(2,new Vo(1,Er(Sr("SignIn failed: %P()",[e.fields[0].fields[0].fields[0]])))),Sc()]:[new ys(2,new Vo(0,e.fields[0].fields[0].fields[0])),(n=window.location.pathname,Xr((e=>{!function(e,t,n){history.pushState(void 0,"",Si(e,2));const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)}(Xr(n))})))]:[new ys(1),kc((e=>{!function(e){bc(0,(t=>{Ri(e)}))}(e)}),(e=>Nd(e)),e.fields[1],(t=>{const n=[new Xo(1,t),e.fields[1]];return new ei(0,n[0],n[1])}),(t=>{const n=[new Xo(1,new Vo(1,t.message)),e.fields[1]];return new ei(0,n[0],n[1])}))]}(e.fields[0],t.Credentials),r=n[0],o=[r,t.AppMode];let i,s;return 2===o[0].tag&&0===o[0].fields[0].tag&&1===o[1].tag?(i=0,s=o[0].fields[0].fields[0]):i=1,0===i&&function(e){const t=["credentials",Pd(0,new Qo(e.id_token,e.access_token,e.expires_in,void 0,e.scope,e.token_type),void 0,void 0,void 0,{ResolveType:Ko})];window.sessionStorage.setItem(t[0],t[1])}(s),[new Ms(t.CurrentPage,r,t.AppMode),xc((e=>new Is(1,e)),n[1])]}case 2:return Ad(),[new Ms(new Es(2),t.Credentials,t.AppMode),Sc()];case 3:return Ad(),[t,Sc()];default:{const n=ks(e.fields[0]),r=new Ms(n,t.Credentials,t.AppMode);return 1===n.tag?Dd(r,n.fields[0]):[r,Sc()]}}}function Rd(e){const t=e.dispatch,n=e.state;Go((()=>{window.addEventListener("progressComponentReady",(e=>{t(new Is(3))}))}));const r=h("div",{className:Tr(" ",["bg-white","p-6","overflow-x-hidden"]),children:jo.Children.toArray(Array.from(Eo(Co((()=>{switch(n.CurrentPage.tag){case 1:return xo(function(){let e,t;return h("div",{className:Tr(" ",["container","vh-100","fade-in"]),children:jo.Children.toArray([h("div",{className:Tr(" ",["row","h-100","justify-content-center","align-items-center"]),children:jo.Children.toArray([h("div",{className:Tr(" ",["col","col-sm-10","col-md-8","col-lg-5","card","border-light","rounded-lg","shadow-sm"]),children:jo.Children.toArray([h("div",{className:"card-body",children:jo.Children.toArray([h("div",{className:Tr(" ",["pt-4","text-center"]),children:jo.Children.toArray([h("i",{className:Tr(" ",["fas","fa-5x","fa-shield-check","text-success"])}),h("h4",{className:Tr(" ",["my-4","font-weight-normal","text-success"]),children:"Your identity is confirmed"}),h("p",{className:Tr(" ",["mt-3","mb-5","text-muted"]),children:"You will be redirected in a moment."})])}),h("p",{className:Tr(" ",["mt-5","mb-0","text-black-50","text-right"]),children:jo.Children.toArray([(e=Er(Sr("Flare HR Pty Ltd © 2015-%P()",[(t=fr(),dr(t))])),h("small",{children:[e]}))])})])})])})])})])})}());case 2:return xo(h(Ts,null));default:{const e=n.Credentials;let t,r;switch(2===e.tag&&0===e.fields[0].tag?(t=0,r=e.fields[0].fields[0]):t=1,t){case 0:return xo(h(md,{accessToken:r.access_token,backendUrl:bs}));case 1:return xo(h("h1",{children:["There was an error signing you in. Please try sign in again."]}))}}}})))))});return Ei({hashMode:2,onUrlChanged:e=>{t(new Is(0,e))},application:h(m,{},r)})}!function(e){vd(void 0,e)}(("workflows-progress-app",Zf=(e,t)=>h(Rd,{state:e,dispatch:t}),Xf=new _d((function(){const e=ks(xi(window.location.pathname+window.location.search,2)),t=Ze(window.location,window.parent.location)?new xs(1):new xs(0),n=new Ms(e,new ys(0),t);let r;switch(r=1===e.tag?0:0===e.tag&&Ze(t,new xs(1))?1:2,r){case 0:return Dd(n,e.fields[0]);case 1:{const e=Jt((e=>{return 1===(t=Ru(e,void 0,void 0,{ResolveType:Ko})).tag?void 0:Ht(t.fields[0]);var t}),$t(window.sessionStorage.getItem("credentials")));return null==e?[n,Ec(new Is(2))]:[new Ms(n.CurrentPage,new ys(2,new Vo(0,e)),n.AppMode),Sc()]}case 2:return[n,Ec(new Is(2))]}}),((e,t)=>jd(e,t)),(e=>Sc()),Zf,((e,t)=>{Zf(e,t)}),(e=>{var t,n;t=e[0],n=e[1],console.error(Ht(t),n)}),ot(2,(e=>e))),function(e,t,n){return function(e,t){return new _d(t.init,t.update,t.subscribe,t.view,e,t.onError,t.syncDispatch)}(((r,o)=>{Se(e(((e,t)=>e===t),ot(2,function(e){return it(2,e.view)}(n)),r,o),document.getElementById(t))}),n)}(((e,t,n,r)=>function(e,t,n,r){return h(Cd,new bd(n,(()=>t(n,r)),e))}(e,t,n,r)),"workflows-progress-app",Xf)))})()})();